Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

v1.0.0 #66

Merged
merged 94 commits into from
Mar 6, 2019
Merged
Changes from 1 commit
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
80269aa
[chore] Update Node version to current stable
pocka Jan 10, 2019
36e8582
[chore] Use Yarn instead of npm
pocka Jan 10, 2019
1c35d53
[tests] Fix JSDom+Jest error
pocka Jan 10, 2019
1def5fc
[fix] Follow Vue typing's update
pocka Jan 10, 2019
e2960c3
[chore] Fix conflict with eslint plugins for Vue
pocka Jan 10, 2019
040d7c3
[nits] Format codes
pocka Jan 10, 2019
49066b9
[chore] Move ESLint config into package.json
pocka Jan 10, 2019
69d933b
[chore] Use <package.json>.files instead of npmignore
pocka Jan 10, 2019
31bfc77
[nits] Update gitignore
pocka Jan 10, 2019
8a806f3
[chore] Use Yarn in all commands
pocka Jan 10, 2019
5023f6e
[ci] Use Yarn on TravisCI
pocka Jan 10, 2019
20a89e9
[docs] Add logo
pocka Jan 21, 2019
7839eaf
[docs] Style README
pocka Jan 21, 2019
4525add
[docs] Add spaces to README
pocka Jan 21, 2019
2652b30
Merge branch 'master' into release/v1.0
pocka Jan 22, 2019
1a82d80
Merge branch 'release/v1.0' of github.com:pocka/storybook-addon-vue-i…
pocka Jan 22, 2019
c4f8c70
WIP: [refactor] Refactor index.js
pocka Jan 26, 2019
92d5615
[refactor] Refactor whole code base, change options
pocka Jan 27, 2019
c6bad7f
[docs] Update REAMDE
pocka Jan 27, 2019
cb52f1a
[chore] Update editorconfig
pocka Jan 27, 2019
ae47828
[refactor] Refactor files related options
pocka Jan 27, 2019
6d6adb6
[chore] Update example command
pocka Jan 27, 2019
e34a0e7
1.0.0-alpha.0
pocka Jan 27, 2019
d40522f
[nits] Fix lint errors
pocka Jan 27, 2019
02fd29d
[chore] Update example
pocka Jan 27, 2019
e5fefb4
[nits] Format README with Prettier
pocka Jan 27, 2019
d11151d
[fix] Support for new decorator interface
pocka Jan 28, 2019
aab9ea8
1.0.0-alpha.1
pocka Jan 28, 2019
f887501
[nits] Fix lint error
pocka Jan 28, 2019
3a77492
[docs] Deprecated decorator usage
pocka Jan 28, 2019
2e8877b
[feat] Add docgen loader
pocka Jan 28, 2019
a0335db
[nits] Fix lint errors
pocka Jan 28, 2019
1acd129
[feat] Add option to turn on/off using docgen result
pocka Jan 29, 2019
8399113
[nits] Do not emit sourcemap
pocka Jan 29, 2019
0476101
[docs] Add docs for docgen loader
pocka Jan 29, 2019
b7670f5
Merge pull request #67 from pocka/feature/docgen-loader
pocka Jan 29, 2019
738fed8
[chore] Renew/Cleanup examples
pocka Jan 29, 2019
947697f
v1.0.0-alpha.2
pocka Jan 29, 2019
5ecd604
[chore] Ignore log files
pocka Jan 29, 2019
fee045c
[test] Add live test for #59
pocka Jan 29, 2019
f1415ff
v1.0.0-alpha.3
pocka Jan 29, 2019
0dd6140
[chore] Add postcss plugin
pocka Jan 31, 2019
bcf2de5
[chore] Add typing for .css files
pocka Jan 31, 2019
8fdd1c3
[chore] Add storybook for preview addon own components
pocka Jan 31, 2019
09fdcc6
[fix] Fix all css's treated as CSS modules in SB
pocka Jan 31, 2019
8ba03a9
[feat] Renew design
pocka Jan 31, 2019
534269f
[nits] Fix lint errors
pocka Jan 31, 2019
df924a5
[chore] Switch back to npm
pocka Feb 1, 2019
52131e8
[feat] Replace styles option with wrapperComponent
pocka Feb 1, 2019
a4ebc19
[chore] Change example command
pocka Feb 1, 2019
dd9811a
Revert "[chore] Change example command"
pocka Feb 1, 2019
005cf05
[chore] Ignore package-lock.json in example
pocka Feb 1, 2019
7fd95ae
Merge pull request #69 from pocka/feature/renew-design
pocka Feb 1, 2019
0fdeac5
v1.0.0-alpha.4
pocka Feb 1, 2019
c10fc46
[nits] Improve props default values
pocka Feb 1, 2019
2742a87
[test] Add test case for error on prop default (#63)
pocka Feb 1, 2019
c238569
[nits] Refactor example stories
pocka Feb 1, 2019
f4bd85d
v1.0.0-alpha.5
pocka Feb 1, 2019
e9af387
[refactor] Remove unused import
pocka Feb 1, 2019
8921c12
[feat] Add docs for events and slots
pocka Feb 1, 2019
54f84cd
[nits] Format code
pocka Feb 1, 2019
b554864
v1.0.0-alpha.6
pocka Feb 1, 2019
5392284
[refactor] Refactor example/issues files
pocka Feb 1, 2019
5493caa
[feat] Add docs in panel mode
pocka Feb 1, 2019
d4266d7
[nits] Update examples for docs in panel mode
pocka Feb 1, 2019
042c8be
[refactor] Fix lint errors
pocka Feb 1, 2019
a45527c
Merge pull request #70 from pocka/feature/docs-in-panel
pocka Feb 2, 2019
4121f5b
v1.0.0-alpha.7
pocka Feb 2, 2019
c6938f5
[fix] Add null guards for props and events
pocka Feb 2, 2019
627c553
v1.0.0-alpha.8
pocka Feb 2, 2019
65983db
[refactor] Rename example stories
pocka Feb 2, 2019
f524556
[nits] Add compats examples with official addons
pocka Feb 2, 2019
27d8cf3
[nits] Remove background from docs container
pocka Feb 2, 2019
4074512
[feat] Use decorator API
pocka Feb 3, 2019
3bed50f
[nits] Update examples to use decorator API
pocka Feb 3, 2019
7c4f7b8
[docs] Update README to use decorator API
pocka Feb 3, 2019
faed231
Merge pull request #74 from pocka/feature/decorator-api
pocka Feb 4, 2019
439438d
[docs] Update README
pocka Feb 5, 2019
7b3f5f3
[docs] Replace live examples URL in README
pocka Feb 5, 2019
05d6a53
[docs] Update README
pocka Feb 5, 2019
e672f15
v1.0.0-alpha.9
pocka Feb 5, 2019
e709456
Merge branch 'release/v1.0' of github.com:pocka/storybook-addon-vue-i…
pocka Feb 5, 2019
ce68d3b
[nits] Delete screenshot
pocka Feb 5, 2019
2626611
v1.0.0-beta.0
pocka Feb 5, 2019
8a9dab0
[docs] Beta
pocka Feb 5, 2019
4f8c814
[docs] Fix link for live examples
pocka Feb 5, 2019
573c4bc
[docs] Update README
pocka Feb 6, 2019
4dd389f
[nits] Move @storybook/addons into peerDependencies
pocka Mar 6, 2019
1c3a09b
v1.0.0-beta.1
pocka Mar 6, 2019
75c3098
[nits] Bump Storybook version (4->5)
pocka Mar 6, 2019
66dd6ea
[docs] Remove beta tag from install section
pocka Mar 6, 2019
e6cf58d
[chore] Update Issue Template
pocka Mar 6, 2019
a3afbf3
[docs] Update live example link
pocka Mar 6, 2019
57f5589
[nits] Migration example stories
pocka Mar 6, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[nits] Format codes
pocka committed Jan 10, 2019

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit 040d7c3c9d768301e0c5823756b0d7f5af4e3fed
6 changes: 1 addition & 5 deletions src/components/InfoDescription.vue
Original file line number Diff line number Diff line change
@@ -9,12 +9,8 @@ export default {
}
</script>


<template>
<p
class="summary"
v-html="descriptionHtml"
/>
<p class="summary" v-html="descriptionHtml" />
</template>

<style scoped>
19 changes: 3 additions & 16 deletions src/components/InfoHeader.vue
Original file line number Diff line number Diff line change
@@ -18,22 +18,9 @@ export default {
</script>

<template>
<div
:style="userStyle.body"
class="info-header"
>
<h1
:style="userStyle.h1"
class="title"
>
{{ title }}
</h1>
<h2
:style="userStyle.h2"
class="story-title"
>
{{ subtitle }}
</h2>
<div :style="userStyle.body" class="info-header">
<h1 :style="userStyle.h1" class="title">{{ title }}</h1>
<h2 :style="userStyle.h2" class="story-title">{{ subtitle }}</h2>
</div>
</template>

17 changes: 3 additions & 14 deletions src/components/InfoView.vue
Original file line number Diff line number Diff line change
@@ -57,28 +57,17 @@ export default {
</script>

<template>
<div
:style="userStyle.info"
class="vue-info"
>
<div :style="userStyle.info" class="vue-info">
<info-header
v-if="showHeader"
:user-style="userStyle.header"
:title="storyKind"
:subtitle="storyTitle"
/>

<div
:style="userStyle.infoContent"
class="info-content"
>
<slot/>
</div>
<div :style="userStyle.infoContent" class="info-content"><slot /></div>

<info-description
v-if="summary"
:description-html="summary"
/>
<info-description v-if="summary" :description-html="summary" />

<story-source
v-if="showSource"
5 changes: 1 addition & 4 deletions src/components/PropsTable.vue
Original file line number Diff line number Diff line change
@@ -18,10 +18,7 @@ export default {

<template>
<div>
<h3
v-if="componentName"
class="component-name"
>
<h3 v-if="componentName" class="component-name">
"{{ componentName }}" Component
</h3>

5 changes: 1 addition & 4 deletions src/components/PropsTableRow.vue
Original file line number Diff line number Diff line change
@@ -14,10 +14,7 @@ export default {

<template>
<tr class="props-table-row">
<td>
{{ prop.name }}
<tag v-if="prop.required">required</tag>
</td>
<td>{{ prop.name }} <tag v-if="prop.required">required</tag></td>
<td>{{ prop.type }}</td>
<td>{{ prop.default }}</td>
<td>{{ prop.description }}</td>
4 changes: 1 addition & 3 deletions src/components/SectionTitle.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<template>
<h2 class="section-title">
<slot/>
</h2>
<h2 class="section-title"><slot /></h2>
</template>

<style scoped>
3 changes: 1 addition & 2 deletions src/components/StorySource.vue
Original file line number Diff line number Diff line change
@@ -60,8 +60,7 @@ export default {
</div>
</template>

<style src="../../node_modules/highlight.js/styles/github.css">
</style>
<style src="../../node_modules/highlight.js/styles/github.css"></style>

<style scoped>
.code {
4 changes: 1 addition & 3 deletions src/components/Tag.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<template>
<span class="tag">
<slot/>
</span>
<span class="tag"> <slot /> </span>
</template>

<style scoped>
4 changes: 2 additions & 2 deletions src/utils/getJSXFromRenderFn.ts
Original file line number Diff line number Diff line change
@@ -111,5 +111,5 @@ const formatProp = (k: string, v: any): string =>
typeof v === 'string'
? `${k}="${v}"`
: typeof v === 'function'
? `${k}={${v.toString()}}`
: `${k}={${JSON.stringify(v)}}`
? `${k}={${v.toString()}}`
: `${k}={${JSON.stringify(v)}}`
33 changes: 15 additions & 18 deletions src/withInfo/index.ts
Original file line number Diff line number Diff line change
@@ -59,21 +59,19 @@ function withInfo(options: Partial<InfoAddonOptions> | string): WithInfo {

// Components shown in props tables
let propTablesComponents = opts.propTables
? opts.propTables.map(
c =>
typeof c === 'string'
? lookupComponent(c, story.components as RuntimeComponents)
: RuntimeComponent.toInfo(c as RuntimeComponent)
? opts.propTables.map(c =>
typeof c === 'string'
? lookupComponent(c, story.components as RuntimeComponents)
: RuntimeComponent.toInfo(c as RuntimeComponent)
)
: parseStoryComponent(story)

const propTablesExcludeComponents = opts.propTablesExclude
? opts.propTablesExclude
.map(
c =>
typeof c === 'string'
? lookupComponent(c, story.components as RuntimeComponents)
: RuntimeComponent.toInfo(c as RuntimeComponent)
.map(c =>
typeof c === 'string'
? lookupComponent(c, story.components as RuntimeComponents)
: RuntimeComponent.toInfo(c as RuntimeComponent)
)
.map(c => c && c.name)
: []
@@ -112,14 +110,13 @@ function withInfo(options: Partial<InfoAddonOptions> | string): WithInfo {

// Component details to be passed to <props-table>
const componentDetails = propTablesComponents
.map(
(c, i) =>
!c || c.name
? c
: {
...c,
name: `<anonymous>propTables[${i}]`
}
.map((c, i) =>
!c || c.name
? c
: {
...c,
name: `<anonymous>propTables[${i}]`
}
)
.filter(c => c !== null)
.map(c => ({