12082 Commits

Author SHA1 Message Date
John Schulz
be6791693c
Display functions as variables not invocations
Given this story

```jsx
import { storiesOf } from '@storybook/react'
import { action } from '@storybook/addon-actions'
import Component from '.'

const logClick = action('clicked')

storiesOf('Component', module)
  .add('plain', () =>
    <Component onClick={logClick}>Hello Button</Component>
  )
```

the add-on currently displays

```jsx
<Component onClick={logClick()}>Hello Button</Component>
```

which isn't accurate and makes the "copy" feature less useful. This PR will output:

```jsx
<Component onClick={logClick}>Hello Button</Component>
```

which matches the story
2018-06-13 18:03:43 -07:00
Igor
86f37ebb14
Merge pull request #3747 from storybooks/storyshots-advanced-config
Storyshots advanced config options
2018-06-12 21:35:46 +03:00
Igor
5180de59c4
Merge pull request #3745 from storybooks/storyshots-refactoring
Storyshots addon refactoring
2018-06-12 21:34:06 +03:00
Daniel Duan
e4c07048f4
add browserstack placeholder 2018-06-12 12:08:12 -04:00
igor-dv
3063a776d7 MIGRATION.md and README.md improvements 2018-06-12 17:03:22 +03:00
Hypnosphi
826a91f2ee Fix branch filter 2018-06-12 17:03:17 +03:00
Hypnosphi
3e103228eb TeamCity: enable all branches 2018-06-12 16:34:13 +03:00
filipp.riabchun
1b7b926a8b TeamCity change in 'Open-source projects :: Storybook' project: triggers of 'Build' build configuration were updated 2018-06-12 13:33:10 +00:00
Hypnosphi
f07040acb8 TeamCity: enable all branches 2018-06-12 16:29:13 +03:00
filipp.riabchun
1779b9b709 TeamCity change in 'Open-source projects :: Storybook' project: triggers of 'Build' build configuration were updated 2018-06-12 13:27:57 +00:00
evgeniy.koshkin
16a92b9b32 TeamCity change in 'Open-source projects :: Storybook' project: Invitation added 2018-06-12 11:13:08 +00:00
igor-dv
1a9a227a40 Merge remote-tracking branch 'origin/storyshots-refactoring' into storyshots-advanced-config 2018-06-11 23:45:19 +03:00
igor-dv
f45a3cce7f Merge remote-tracking branch 'origin/master' into storyshots-refactoring 2018-06-11 22:59:17 +03:00
Daniel Duan
b21660fe29
Merge pull request #3748 from storybooks/try-to-fix-marko-linter-issue
Try to fix linter issues
2018-06-11 15:32:07 -04:00
Daniel Duan
0e0b509c59
Merge pull request #3751 from storybooks/angular-cli-assets-fix
angular-cli 6 assets as a glob-object compatibility fix
2018-06-11 15:30:00 -04:00
igor-dv
37e1966d6b Update lock file 2018-06-11 14:29:57 +03:00
igor-dv
f1b44e66e6 Add marko deps to the root pkg.json 2018-06-11 14:24:28 +03:00
igor-dv
56d030ebc3 Remove eslint from the marko-cli project 2018-06-11 14:21:40 +03:00
igor-dv
3e4d442c60 Check if the assetPattern is already an object 2018-06-11 13:57:57 +03:00
igor-dv
86ea3168be Add marko-cli to build and cache 2018-06-11 13:55:45 +03:00
igor-dv
f621d129be Temporary disable the rule 2018-06-11 13:29:00 +03:00
igor-dv
8d832f1c3e Allow commonjs in import/no-unresolved 2018-06-11 11:41:36 +03:00
igor-dv
696bc642e6 Refresh core-dist cache 2018-06-11 10:15:57 +03:00
igor-dv
c19e141147 Change version of the marko-widgets to 7.0.1 2018-06-11 10:01:23 +03:00
igor-dv
f04b952d70 Ignore global require 2018-06-11 09:31:22 +03:00
igor-dv
0c98009520 Add custom config implementation + allow configPath to point on config.js file 2018-06-11 02:51:24 +03:00
igor-dv
e43a73314e Mention about imageSnapshot in the MIGRATION.md 2018-06-11 02:12:25 +03:00
igor-dv
6644743ce3 Fix README.md 2018-06-10 23:59:25 +03:00
igor-dv
fce815a371 Add docs for the stories2snapsConverters 2018-06-10 23:57:10 +03:00
igor-dv
0fbb935ee1 Move appOptions imports to the load methods 2018-06-10 22:52:35 +03:00
Filipp Riabchun
21911319b0
Merge pull request #3741 from pascalduez/hotfix/addon-info-readme
[documentation] Update and fix addon-info options documentation
2018-06-10 22:18:11 +03:00
Filipp Riabchun
9924c26f01
Merge pull request #3742 from storybooks/storyshots-separation
Extract imageSnapshots to a separate package
2018-06-10 22:01:09 +03:00
igor-dv
52ef4c4fd3 Import framework loaders dynamically 2018-06-10 20:05:52 +03:00
igor-dv
36d6a9c69f Change "export * from x" to manually importing and exporting named exports. 2018-06-10 19:59:11 +03:00
igor-dv
120af7cedb Few minor cleanups 2018-06-10 19:31:37 +03:00
igor-dv
19b269eb01 WIP restructuring 2018-06-10 19:28:30 +03:00
igor-dv
e46dada83c Create and expose Stories2SnapsConverter to support customization of the snapshot files + extract api to a separate dir structure 2018-06-10 19:13:11 +03:00
igor-dv
93c5f24306 try to refresh the cache of the core-dependencies 2018-06-10 18:53:23 +03:00
igor-dv
9368287043 Common storyshots README.md improvements 2018-06-10 16:43:58 +03:00
igor-dv
a87798b2dc Common storyshots README.md improvements 2018-06-10 16:42:39 +03:00
igor-dv
4af0f09e97 Use $LERNA_ROOT_PATH in the build-packs script 2018-06-10 15:03:30 +03:00
igor-dv
e319885ff0 Merge remote-tracking branch 'origin/master' into storyshots-separation
# Conflicts:
#	addons/storyshots/storyshots-core/package.json
#	examples/official-storybook/package.json
2018-06-10 14:51:06 +03:00
igor-dv
77998b803f minor 2018-06-10 14:38:38 +03:00
igor-dv
0478125ae3 Extract imageSnapshots to a separate package 2018-06-10 14:34:45 +03:00
Pascal Duez
6e3f8d3618 Update and fix addon-info options documentation 2018-06-10 12:52:54 +02:00
Michael Shilman
ddaf500c34 4.0.0-alpha.9 changelog 2018-06-10 15:53:13 +08:00
Michael Shilman
1a03042590 v4.0.0-alpha.9 v4.0.0-alpha.9 2018-06-10 15:42:04 +08:00
Michael Shilman
e1dff53d61 4.0.0-alpha.9 changelog 2018-06-10 13:44:02 +08:00
Michael Shilman
06bf67e470 3.4.7 changelog 2018-06-10 13:30:13 +08:00
Filipp Riabchun
4a250fb7da
Merge pull request #3697 from Keraito/info-params
Use parameters for info addon
2018-06-09 20:40:34 +02:00