@storybook/addon-docs 6.5.0-alpha.7 → 6.5.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -13
- package/angular/README.md +0 -6
- package/angular/index.d.ts +1 -1
- package/angular/index.js +7 -1
- package/dist/cjs/blocks/Anchor.js +1 -1
- package/dist/cjs/blocks/ArgsTable.js +49 -13
- package/dist/cjs/blocks/Canvas.js +13 -11
- package/dist/cjs/blocks/Description.js +10 -10
- package/dist/cjs/blocks/DocsContainer.js +8 -6
- package/dist/cjs/blocks/DocsContext.js +2 -2
- package/dist/cjs/blocks/Heading.js +2 -2
- package/dist/cjs/blocks/Meta.js +8 -6
- package/dist/cjs/blocks/Primary.js +7 -7
- package/dist/cjs/blocks/Source.js +23 -10
- package/dist/cjs/blocks/SourceContainer.js +28 -18
- package/dist/cjs/blocks/Stories.js +14 -7
- package/dist/cjs/blocks/Story.js +12 -30
- package/dist/cjs/blocks/Subheading.js +2 -2
- package/dist/cjs/blocks/Subtitle.js +5 -5
- package/dist/cjs/blocks/Title.js +8 -8
- package/dist/cjs/blocks/enhanceSource.js +5 -5
- package/dist/cjs/blocks/index.js +6 -4
- package/dist/cjs/blocks/mdx.js +18 -10
- package/dist/cjs/blocks/useStory.js +8 -6
- package/dist/cjs/blocks/utils.js +3 -3
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/{register.js → manager.js} +0 -0
- package/dist/cjs/preset.js +226 -0
- package/dist/cjs/{frameworks/common/config.js → preview.js} +11 -17
- package/dist/esm/blocks/ArgsTable.js +39 -6
- package/dist/esm/blocks/Canvas.js +5 -3
- package/dist/esm/blocks/Description.js +1 -1
- package/dist/esm/blocks/DocsContainer.js +3 -2
- package/dist/esm/blocks/DocsContext.js +2 -2
- package/dist/esm/blocks/Heading.js +1 -1
- package/dist/esm/blocks/Meta.js +3 -2
- package/dist/esm/blocks/Primary.js +1 -0
- package/dist/esm/blocks/Source.js +16 -2
- package/dist/esm/blocks/SourceContainer.js +22 -13
- package/dist/esm/blocks/Stories.js +7 -0
- package/dist/esm/blocks/Story.js +6 -25
- package/dist/esm/blocks/Subheading.js +1 -1
- package/dist/esm/blocks/Title.js +1 -1
- package/dist/esm/blocks/enhanceSource.js +3 -3
- package/dist/esm/blocks/mdx.js +16 -9
- package/dist/esm/blocks/useStory.js +15 -15
- package/dist/esm/blocks/utils.js +1 -1
- package/dist/esm/{register.js → manager.js} +0 -0
- package/dist/esm/preset.js +197 -0
- package/dist/esm/{frameworks/common/config.js → preview.js} +5 -9
- package/dist/modern/blocks/ArgsTable.js +24 -3
- package/dist/modern/blocks/Canvas.js +3 -1
- package/dist/modern/blocks/Description.js +1 -1
- package/dist/modern/blocks/DocsContext.js +2 -2
- package/dist/modern/blocks/Source.js +17 -2
- package/dist/modern/blocks/SourceContainer.js +18 -12
- package/dist/modern/blocks/Stories.js +5 -0
- package/dist/modern/blocks/Story.js +2 -24
- package/dist/modern/blocks/mdx.js +13 -8
- package/dist/modern/{register.js → manager.js} +0 -0
- package/dist/modern/{frameworks/common/preset.js → preset.js} +16 -17
- package/dist/modern/preview.js +6 -0
- package/dist/ts3.4/blocks/Source.d.ts +5 -3
- package/dist/ts3.4/blocks/SourceContainer.d.ts +5 -1
- package/dist/ts3.4/{register.d.ts → manager.d.ts} +0 -0
- package/dist/ts3.4/preset.d.ts +11 -0
- package/dist/ts3.4/preview.d.ts +6 -0
- package/dist/ts3.9/blocks/DocsContext.d.ts +2 -2
- package/dist/ts3.9/blocks/Source.d.ts +5 -3
- package/dist/ts3.9/blocks/SourceContainer.d.ts +6 -2
- package/dist/ts3.9/blocks/enhanceSource.d.ts +2 -2
- package/dist/ts3.9/blocks/useStory.d.ts +2 -2
- package/dist/ts3.9/{register.d.ts → manager.d.ts} +0 -0
- package/dist/ts3.9/preset.d.ts +11 -0
- package/dist/ts3.9/preview.d.ts +6 -0
- package/ember/index.js +6 -1
- package/jest-transform-mdx.js +2 -5
- package/manager.js +1 -0
- package/mdx-compiler-plugin.js +1 -1
- package/package.json +24 -118
- package/preset.js +1 -16
- package/preview.js +1 -0
- package/register.js +6 -1
- package/{dist/cjs/frameworks/svelte → svelte}/HOC.svelte +0 -0
- package/common-preset.js +0 -19
- package/dist/cjs/frameworks/angular/compodoc.js +0 -397
- package/dist/cjs/frameworks/angular/config.js +0 -31
- package/dist/cjs/frameworks/angular/index.js +0 -22
- package/dist/cjs/frameworks/angular/prepareForInline.js +0 -96
- package/dist/cjs/frameworks/angular/sourceDecorator.js +0 -159
- package/dist/cjs/frameworks/angular/types.js +0 -1
- package/dist/cjs/frameworks/common/enhanceArgTypes.js +0 -21
- package/dist/cjs/frameworks/common/preset.js +0 -187
- package/dist/cjs/frameworks/ember/config.js +0 -17
- package/dist/cjs/frameworks/ember/index.js +0 -13
- package/dist/cjs/frameworks/ember/jsondoc.js +0 -87
- package/dist/cjs/frameworks/html/config.js +0 -26
- package/dist/cjs/frameworks/html/prepareForInline.js +0 -29
- package/dist/cjs/frameworks/html/sourceDecorator.js +0 -67
- package/dist/cjs/frameworks/react/config.js +0 -27
- package/dist/cjs/frameworks/react/extractArgTypes.js +0 -52
- package/dist/cjs/frameworks/react/extractProps.js +0 -77
- package/dist/cjs/frameworks/react/jsxDecorator.js +0 -277
- package/dist/cjs/frameworks/react/lib/captions.js +0 -18
- package/dist/cjs/frameworks/react/lib/componentTypes.js +0 -24
- package/dist/cjs/frameworks/react/lib/defaultValues/createDefaultValue.js +0 -81
- package/dist/cjs/frameworks/react/lib/defaultValues/createFromRawDefaultProp.js +0 -225
- package/dist/cjs/frameworks/react/lib/defaultValues/generateArray.js +0 -29
- package/dist/cjs/frameworks/react/lib/defaultValues/generateObject.js +0 -29
- package/dist/cjs/frameworks/react/lib/defaultValues/index.js +0 -35
- package/dist/cjs/frameworks/react/lib/defaultValues/prettyIdentifier.js +0 -34
- package/dist/cjs/frameworks/react/lib/generateCode.js +0 -89
- package/dist/cjs/frameworks/react/lib/index.js +0 -61
- package/dist/cjs/frameworks/react/lib/inspection/acornParser.js +0 -254
- package/dist/cjs/frameworks/react/lib/inspection/index.js +0 -35
- package/dist/cjs/frameworks/react/lib/inspection/inspectValue.js +0 -26
- package/dist/cjs/frameworks/react/lib/inspection/types.js +0 -19
- package/dist/cjs/frameworks/react/lib/isHtmlTag.js +0 -18
- package/dist/cjs/frameworks/react/propTypes/createType.js +0 -467
- package/dist/cjs/frameworks/react/propTypes/generateFuncSignature.js +0 -78
- package/dist/cjs/frameworks/react/propTypes/handleProp.js +0 -54
- package/dist/cjs/frameworks/react/propTypes/rawDefaultPropResolvers.js +0 -47
- package/dist/cjs/frameworks/react/propTypes/sortProps.js +0 -35
- package/dist/cjs/frameworks/react/react-argtypes.stories.js +0 -153
- package/dist/cjs/frameworks/react/typeScript/handleProp.js +0 -38
- package/dist/cjs/frameworks/svelte/config.js +0 -26
- package/dist/cjs/frameworks/svelte/extractArgTypes.js +0 -159
- package/dist/cjs/frameworks/svelte/extractComponentDescription.js +0 -21
- package/dist/cjs/frameworks/svelte/prepareForInline.js +0 -35
- package/dist/cjs/frameworks/svelte/preset.js +0 -54
- package/dist/cjs/frameworks/svelte/sample/MockButton.svelte +0 -45
- package/dist/cjs/frameworks/svelte/sourceDecorator.js +0 -262
- package/dist/cjs/frameworks/svelte/svelte-docgen-loader.js +0 -191
- package/dist/cjs/frameworks/vue/config.js +0 -26
- package/dist/cjs/frameworks/vue/extractArgTypes.js +0 -153
- package/dist/cjs/frameworks/vue/prepareForInline.js +0 -56
- package/dist/cjs/frameworks/vue/preset.js +0 -43
- package/dist/cjs/frameworks/vue/sourceDecorator.js +0 -343
- package/dist/cjs/frameworks/vue3/config.js +0 -22
- package/dist/cjs/frameworks/vue3/extractArgTypes.js +0 -62
- package/dist/cjs/frameworks/vue3/prepareForInline.js +0 -61
- package/dist/cjs/frameworks/vue3/preset.js +0 -43
- package/dist/cjs/frameworks/web-components/config.js +0 -30
- package/dist/cjs/frameworks/web-components/custom-elements.js +0 -163
- package/dist/cjs/frameworks/web-components/prepareForInline.js +0 -96
- package/dist/cjs/frameworks/web-components/sourceDecorator.js +0 -60
- package/dist/cjs/lib/convert/flow/convert.js +0 -112
- package/dist/cjs/lib/convert/flow/index.js +0 -35
- package/dist/cjs/lib/convert/flow/types.js +0 -1
- package/dist/cjs/lib/convert/index.js +0 -24
- package/dist/cjs/lib/convert/proptypes/convert.js +0 -135
- package/dist/cjs/lib/convert/proptypes/index.js +0 -35
- package/dist/cjs/lib/convert/proptypes/types.js +0 -1
- package/dist/cjs/lib/convert/typescript/convert.js +0 -82
- package/dist/cjs/lib/convert/typescript/index.js +0 -35
- package/dist/cjs/lib/convert/typescript/types.js +0 -1
- package/dist/cjs/lib/convert/utils.js +0 -18
- package/dist/cjs/lib/docgen/PropDef.js +0 -1
- package/dist/cjs/lib/docgen/createPropDef.js +0 -171
- package/dist/cjs/lib/docgen/extractDocgenProps.js +0 -113
- package/dist/cjs/lib/docgen/flow/createDefaultValue.js +0 -24
- package/dist/cjs/lib/docgen/flow/createPropDef.js +0 -30
- package/dist/cjs/lib/docgen/flow/createType.js +0 -119
- package/dist/cjs/lib/docgen/index.js +0 -48
- package/dist/cjs/lib/docgen/typeScript/createDefaultValue.js +0 -24
- package/dist/cjs/lib/docgen/typeScript/createPropDef.js +0 -28
- package/dist/cjs/lib/docgen/typeScript/createType.js +0 -30
- package/dist/cjs/lib/docgen/types.js +0 -17
- package/dist/cjs/lib/docgen/utils/defaultValue.js +0 -13
- package/dist/cjs/lib/docgen/utils/docgenInfo.js +0 -34
- package/dist/cjs/lib/docgen/utils/index.js +0 -48
- package/dist/cjs/lib/docgen/utils/string.js +0 -20
- package/dist/cjs/lib/index.js +0 -22
- package/dist/cjs/lib/jsdocParser.js +0 -229
- package/dist/cjs/lib/utils.js +0 -45
- package/dist/cjs/typings.d.js +0 -1
- package/dist/esm/frameworks/angular/compodoc.js +0 -347
- package/dist/esm/frameworks/angular/config.js +0 -18
- package/dist/esm/frameworks/angular/index.js +0 -1
- package/dist/esm/frameworks/angular/prepareForInline.js +0 -75
- package/dist/esm/frameworks/angular/sourceDecorator.js +0 -116
- package/dist/esm/frameworks/angular/types.js +0 -0
- package/dist/esm/frameworks/common/enhanceArgTypes.js +0 -11
- package/dist/esm/frameworks/common/preset.js +0 -161
- package/dist/esm/frameworks/ember/config.js +0 -8
- package/dist/esm/frameworks/ember/index.js +0 -1
- package/dist/esm/frameworks/ember/jsondoc.js +0 -66
- package/dist/esm/frameworks/html/config.js +0 -14
- package/dist/esm/frameworks/html/prepareForInline.js +0 -19
- package/dist/esm/frameworks/html/sourceDecorator.js +0 -56
- package/dist/esm/frameworks/react/config.js +0 -15
- package/dist/esm/frameworks/react/extractArgTypes.js +0 -38
- package/dist/esm/frameworks/react/extractProps.js +0 -53
- package/dist/esm/frameworks/react/jsxDecorator.js +0 -218
- package/dist/esm/frameworks/react/lib/captions.js +0 -6
- package/dist/esm/frameworks/react/lib/componentTypes.js +0 -9
- package/dist/esm/frameworks/react/lib/defaultValues/createDefaultValue.js +0 -67
- package/dist/esm/frameworks/react/lib/defaultValues/createFromRawDefaultProp.js +0 -191
- package/dist/esm/frameworks/react/lib/defaultValues/generateArray.js +0 -19
- package/dist/esm/frameworks/react/lib/defaultValues/generateObject.js +0 -19
- package/dist/esm/frameworks/react/lib/defaultValues/index.js +0 -2
- package/dist/esm/frameworks/react/lib/defaultValues/prettyIdentifier.js +0 -22
- package/dist/esm/frameworks/react/lib/generateCode.js +0 -68
- package/dist/esm/frameworks/react/lib/index.js +0 -4
- package/dist/esm/frameworks/react/lib/inspection/acornParser.js +0 -213
- package/dist/esm/frameworks/react/lib/inspection/index.js +0 -2
- package/dist/esm/frameworks/react/lib/inspection/inspectValue.js +0 -16
- package/dist/esm/frameworks/react/lib/inspection/types.js +0 -12
- package/dist/esm/frameworks/react/lib/isHtmlTag.js +0 -6
- package/dist/esm/frameworks/react/propTypes/createType.js +0 -448
- package/dist/esm/frameworks/react/propTypes/generateFuncSignature.js +0 -62
- package/dist/esm/frameworks/react/propTypes/handleProp.js +0 -39
- package/dist/esm/frameworks/react/propTypes/rawDefaultPropResolvers.js +0 -32
- package/dist/esm/frameworks/react/propTypes/sortProps.js +0 -23
- package/dist/esm/frameworks/react/react-argtypes.stories.js +0 -122
- package/dist/esm/frameworks/react/typeScript/handleProp.js +0 -27
- package/dist/esm/frameworks/svelte/HOC.svelte +0 -7
- package/dist/esm/frameworks/svelte/config.js +0 -13
- package/dist/esm/frameworks/svelte/extractArgTypes.js +0 -138
- package/dist/esm/frameworks/svelte/extractComponentDescription.js +0 -12
- package/dist/esm/frameworks/svelte/prepareForInline.js +0 -20
- package/dist/esm/frameworks/svelte/preset.js +0 -42
- package/dist/esm/frameworks/svelte/sample/MockButton.svelte +0 -45
- package/dist/esm/frameworks/svelte/sourceDecorator.js +0 -232
- package/dist/esm/frameworks/svelte/svelte-docgen-loader.js +0 -142
- package/dist/esm/frameworks/vue/config.js +0 -13
- package/dist/esm/frameworks/vue/extractArgTypes.js +0 -128
- package/dist/esm/frameworks/vue/prepareForInline.js +0 -39
- package/dist/esm/frameworks/vue/preset.js +0 -31
- package/dist/esm/frameworks/vue/sourceDecorator.js +0 -292
- package/dist/esm/frameworks/vue3/config.js +0 -11
- package/dist/esm/frameworks/vue3/extractArgTypes.js +0 -45
- package/dist/esm/frameworks/vue3/prepareForInline.js +0 -22
- package/dist/esm/frameworks/vue3/preset.js +0 -31
- package/dist/esm/frameworks/web-components/config.js +0 -17
- package/dist/esm/frameworks/web-components/custom-elements.js +0 -139
- package/dist/esm/frameworks/web-components/prepareForInline.js +0 -74
- package/dist/esm/frameworks/web-components/sourceDecorator.js +0 -50
- package/dist/esm/lib/convert/flow/convert.js +0 -98
- package/dist/esm/lib/convert/flow/index.js +0 -2
- package/dist/esm/lib/convert/flow/types.js +0 -0
- package/dist/esm/lib/convert/index.js +0 -12
- package/dist/esm/lib/convert/proptypes/convert.js +0 -116
- package/dist/esm/lib/convert/proptypes/index.js +0 -2
- package/dist/esm/lib/convert/proptypes/types.js +0 -0
- package/dist/esm/lib/convert/typescript/convert.js +0 -70
- package/dist/esm/lib/convert/typescript/index.js +0 -2
- package/dist/esm/lib/convert/typescript/types.js +0 -0
- package/dist/esm/lib/convert/utils.js +0 -6
- package/dist/esm/lib/docgen/PropDef.js +0 -0
- package/dist/esm/lib/docgen/createPropDef.js +0 -141
- package/dist/esm/lib/docgen/extractDocgenProps.js +0 -87
- package/dist/esm/lib/docgen/flow/createDefaultValue.js +0 -14
- package/dist/esm/lib/docgen/flow/createPropDef.js +0 -17
- package/dist/esm/lib/docgen/flow/createType.js +0 -106
- package/dist/esm/lib/docgen/index.js +0 -3
- package/dist/esm/lib/docgen/typeScript/createDefaultValue.js +0 -15
- package/dist/esm/lib/docgen/typeScript/createPropDef.js +0 -15
- package/dist/esm/lib/docgen/typeScript/createType.js +0 -19
- package/dist/esm/lib/docgen/types.js +0 -10
- package/dist/esm/lib/docgen/utils/defaultValue.js +0 -6
- package/dist/esm/lib/docgen/utils/docgenInfo.js +0 -18
- package/dist/esm/lib/docgen/utils/index.js +0 -3
- package/dist/esm/lib/docgen/utils/string.js +0 -11
- package/dist/esm/lib/index.js +0 -1
- package/dist/esm/lib/jsdocParser.js +0 -207
- package/dist/esm/lib/utils.js +0 -25
- package/dist/esm/typings.d.js +0 -0
- package/dist/modern/frameworks/angular/compodoc.js +0 -296
- package/dist/modern/frameworks/angular/config.js +0 -18
- package/dist/modern/frameworks/angular/index.js +0 -1
- package/dist/modern/frameworks/angular/prepareForInline.js +0 -36
- package/dist/modern/frameworks/angular/sourceDecorator.js +0 -81
- package/dist/modern/frameworks/angular/types.js +0 -0
- package/dist/modern/frameworks/common/config.js +0 -10
- package/dist/modern/frameworks/common/enhanceArgTypes.js +0 -16
- package/dist/modern/frameworks/ember/config.js +0 -8
- package/dist/modern/frameworks/ember/index.js +0 -1
- package/dist/modern/frameworks/ember/jsondoc.js +0 -57
- package/dist/modern/frameworks/html/config.js +0 -14
- package/dist/modern/frameworks/html/prepareForInline.js +0 -17
- package/dist/modern/frameworks/html/sourceDecorator.js +0 -56
- package/dist/modern/frameworks/react/config.js +0 -13
- package/dist/modern/frameworks/react/extractArgTypes.js +0 -38
- package/dist/modern/frameworks/react/extractProps.js +0 -41
- package/dist/modern/frameworks/react/jsxDecorator.js +0 -176
- package/dist/modern/frameworks/react/lib/captions.js +0 -6
- package/dist/modern/frameworks/react/lib/componentTypes.js +0 -2
- package/dist/modern/frameworks/react/lib/defaultValues/createDefaultValue.js +0 -72
- package/dist/modern/frameworks/react/lib/defaultValues/createFromRawDefaultProp.js +0 -181
- package/dist/modern/frameworks/react/lib/defaultValues/generateArray.js +0 -21
- package/dist/modern/frameworks/react/lib/defaultValues/generateObject.js +0 -21
- package/dist/modern/frameworks/react/lib/defaultValues/index.js +0 -2
- package/dist/modern/frameworks/react/lib/defaultValues/prettyIdentifier.js +0 -24
- package/dist/modern/frameworks/react/lib/generateCode.js +0 -59
- package/dist/modern/frameworks/react/lib/index.js +0 -4
- package/dist/modern/frameworks/react/lib/inspection/acornParser.js +0 -212
- package/dist/modern/frameworks/react/lib/inspection/index.js +0 -2
- package/dist/modern/frameworks/react/lib/inspection/inspectValue.js +0 -15
- package/dist/modern/frameworks/react/lib/inspection/types.js +0 -12
- package/dist/modern/frameworks/react/lib/isHtmlTag.js +0 -4
- package/dist/modern/frameworks/react/propTypes/createType.js +0 -446
- package/dist/modern/frameworks/react/propTypes/generateFuncSignature.js +0 -57
- package/dist/modern/frameworks/react/propTypes/handleProp.js +0 -39
- package/dist/modern/frameworks/react/propTypes/rawDefaultPropResolvers.js +0 -31
- package/dist/modern/frameworks/react/propTypes/sortProps.js +0 -14
- package/dist/modern/frameworks/react/react-argtypes.stories.js +0 -78
- package/dist/modern/frameworks/react/typeScript/handleProp.js +0 -28
- package/dist/modern/frameworks/svelte/HOC.svelte +0 -7
- package/dist/modern/frameworks/svelte/config.js +0 -13
- package/dist/modern/frameworks/svelte/extractArgTypes.js +0 -118
- package/dist/modern/frameworks/svelte/extractComponentDescription.js +0 -10
- package/dist/modern/frameworks/svelte/prepareForInline.js +0 -18
- package/dist/modern/frameworks/svelte/preset.js +0 -11
- package/dist/modern/frameworks/svelte/sample/MockButton.svelte +0 -45
- package/dist/modern/frameworks/svelte/sourceDecorator.js +0 -187
- package/dist/modern/frameworks/svelte/svelte-docgen-loader.js +0 -89
- package/dist/modern/frameworks/vue/config.js +0 -13
- package/dist/modern/frameworks/vue/extractArgTypes.js +0 -103
- package/dist/modern/frameworks/vue/prepareForInline.js +0 -40
- package/dist/modern/frameworks/vue/preset.js +0 -24
- package/dist/modern/frameworks/vue/sourceDecorator.js +0 -195
- package/dist/modern/frameworks/vue3/config.js +0 -11
- package/dist/modern/frameworks/vue3/extractArgTypes.js +0 -43
- package/dist/modern/frameworks/vue3/prepareForInline.js +0 -22
- package/dist/modern/frameworks/vue3/preset.js +0 -24
- package/dist/modern/frameworks/web-components/config.js +0 -17
- package/dist/modern/frameworks/web-components/custom-elements.js +0 -125
- package/dist/modern/frameworks/web-components/prepareForInline.js +0 -23
- package/dist/modern/frameworks/web-components/sourceDecorator.js +0 -47
- package/dist/modern/lib/convert/flow/convert.js +0 -89
- package/dist/modern/lib/convert/flow/index.js +0 -2
- package/dist/modern/lib/convert/flow/types.js +0 -0
- package/dist/modern/lib/convert/index.js +0 -14
- package/dist/modern/lib/convert/proptypes/convert.js +0 -102
- package/dist/modern/lib/convert/proptypes/index.js +0 -2
- package/dist/modern/lib/convert/proptypes/types.js +0 -0
- package/dist/modern/lib/convert/typescript/convert.js +0 -67
- package/dist/modern/lib/convert/typescript/index.js +0 -2
- package/dist/modern/lib/convert/typescript/types.js +0 -0
- package/dist/modern/lib/convert/utils.js +0 -2
- package/dist/modern/lib/docgen/PropDef.js +0 -0
- package/dist/modern/lib/docgen/createPropDef.js +0 -142
- package/dist/modern/lib/docgen/extractDocgenProps.js +0 -80
- package/dist/modern/lib/docgen/flow/createDefaultValue.js +0 -15
- package/dist/modern/lib/docgen/flow/createPropDef.js +0 -17
- package/dist/modern/lib/docgen/flow/createType.js +0 -103
- package/dist/modern/lib/docgen/index.js +0 -3
- package/dist/modern/lib/docgen/typeScript/createDefaultValue.js +0 -17
- package/dist/modern/lib/docgen/typeScript/createPropDef.js +0 -15
- package/dist/modern/lib/docgen/typeScript/createType.js +0 -16
- package/dist/modern/lib/docgen/types.js +0 -10
- package/dist/modern/lib/docgen/utils/defaultValue.js +0 -4
- package/dist/modern/lib/docgen/utils/docgenInfo.js +0 -14
- package/dist/modern/lib/docgen/utils/index.js +0 -3
- package/dist/modern/lib/docgen/utils/string.js +0 -11
- package/dist/modern/lib/index.js +0 -1
- package/dist/modern/lib/jsdocParser.js +0 -195
- package/dist/modern/lib/utils.js +0 -21
- package/dist/modern/typings.d.js +0 -0
- package/dist/ts3.4/frameworks/angular/compodoc.d.ts +0 -18
- package/dist/ts3.4/frameworks/angular/config.d.ts +0 -15
- package/dist/ts3.4/frameworks/angular/index.d.ts +0 -1
- package/dist/ts3.4/frameworks/angular/prepareForInline.d.ts +0 -7
- package/dist/ts3.4/frameworks/angular/sourceDecorator.d.ts +0 -9
- package/dist/ts3.4/frameworks/angular/types.d.ts +0 -102
- package/dist/ts3.4/frameworks/common/config.d.ts +0 -10
- package/dist/ts3.4/frameworks/common/enhanceArgTypes.d.ts +0 -2
- package/dist/ts3.4/frameworks/common/preset.d.ts +0 -1
- package/dist/ts3.4/frameworks/html/config.d.ts +0 -14
- package/dist/ts3.4/frameworks/html/prepareForInline.d.ts +0 -2
- package/dist/ts3.4/frameworks/html/sourceDecorator.d.ts +0 -3
- package/dist/ts3.4/frameworks/react/config.d.ts +0 -12
- package/dist/ts3.4/frameworks/react/extractArgTypes.d.ts +0 -2
- package/dist/ts3.4/frameworks/react/extractProps.d.ts +0 -5
- package/dist/ts3.4/frameworks/react/jsxDecorator.d.ts +0 -23
- package/dist/ts3.4/frameworks/react/lib/captions.d.ts +0 -6
- package/dist/ts3.4/frameworks/react/lib/componentTypes.d.ts +0 -2
- package/dist/ts3.4/frameworks/react/lib/defaultValues/createDefaultValue.d.ts +0 -2
- package/dist/ts3.4/frameworks/react/lib/defaultValues/createFromRawDefaultProp.d.ts +0 -12
- package/dist/ts3.4/frameworks/react/lib/defaultValues/generateArray.d.ts +0 -3
- package/dist/ts3.4/frameworks/react/lib/defaultValues/generateObject.d.ts +0 -3
- package/dist/ts3.4/frameworks/react/lib/defaultValues/index.d.ts +0 -2
- package/dist/ts3.4/frameworks/react/lib/defaultValues/prettyIdentifier.d.ts +0 -4
- package/dist/ts3.4/frameworks/react/lib/generateCode.d.ts +0 -3
- package/dist/ts3.4/frameworks/react/lib/index.d.ts +0 -4
- package/dist/ts3.4/frameworks/react/lib/inspection/acornParser.d.ts +0 -7
- package/dist/ts3.4/frameworks/react/lib/inspection/index.d.ts +0 -2
- package/dist/ts3.4/frameworks/react/lib/inspection/inspectValue.d.ts +0 -2
- package/dist/ts3.4/frameworks/react/lib/inspection/types.d.ts +0 -50
- package/dist/ts3.4/frameworks/react/lib/isHtmlTag.d.ts +0 -1
- package/dist/ts3.4/frameworks/react/propTypes/createType.d.ts +0 -3
- package/dist/ts3.4/frameworks/react/propTypes/generateFuncSignature.d.ts +0 -4
- package/dist/ts3.4/frameworks/react/propTypes/handleProp.d.ts +0 -4
- package/dist/ts3.4/frameworks/react/propTypes/rawDefaultPropResolvers.d.ts +0 -1
- package/dist/ts3.4/frameworks/react/propTypes/sortProps.d.ts +0 -3
- package/dist/ts3.4/frameworks/react/typeScript/handleProp.d.ts +0 -3
- package/dist/ts3.4/frameworks/svelte/config.d.ts +0 -11
- package/dist/ts3.4/frameworks/svelte/extractArgTypes.d.ts +0 -5
- package/dist/ts3.4/frameworks/svelte/extractComponentDescription.d.ts +0 -2
- package/dist/ts3.4/frameworks/svelte/prepareForInline.d.ts +0 -3
- package/dist/ts3.4/frameworks/svelte/preset.d.ts +0 -3
- package/dist/ts3.4/frameworks/svelte/sourceDecorator.d.ts +0 -16
- package/dist/ts3.4/frameworks/svelte/svelte-docgen-loader.d.ts +0 -5
- package/dist/ts3.4/frameworks/vue/config.d.ts +0 -11
- package/dist/ts3.4/frameworks/vue/extractArgTypes.d.ts +0 -2
- package/dist/ts3.4/frameworks/vue/prepareForInline.d.ts +0 -4
- package/dist/ts3.4/frameworks/vue/preset.d.ts +0 -2
- package/dist/ts3.4/frameworks/vue/sourceDecorator.d.ts +0 -5
- package/dist/ts3.4/frameworks/vue3/config.d.ts +0 -10
- package/dist/ts3.4/frameworks/vue3/extractArgTypes.d.ts +0 -2
- package/dist/ts3.4/frameworks/vue3/prepareForInline.d.ts +0 -4
- package/dist/ts3.4/frameworks/vue3/preset.d.ts +0 -2
- package/dist/ts3.4/frameworks/web-components/config.d.ts +0 -18
- package/dist/ts3.4/frameworks/web-components/custom-elements.d.ts +0 -36
- package/dist/ts3.4/frameworks/web-components/prepareForInline.d.ts +0 -4
- package/dist/ts3.4/frameworks/web-components/sourceDecorator.d.ts +0 -3
- package/dist/ts3.4/lib/convert/flow/convert.d.ts +0 -3
- package/dist/ts3.4/lib/convert/flow/index.d.ts +0 -2
- package/dist/ts3.4/lib/convert/flow/types.d.ts +0 -43
- package/dist/ts3.4/lib/convert/index.d.ts +0 -2
- package/dist/ts3.4/lib/convert/proptypes/convert.d.ts +0 -3
- package/dist/ts3.4/lib/convert/proptypes/index.d.ts +0 -2
- package/dist/ts3.4/lib/convert/proptypes/types.d.ts +0 -11
- package/dist/ts3.4/lib/convert/typescript/convert.d.ts +0 -3
- package/dist/ts3.4/lib/convert/typescript/index.d.ts +0 -2
- package/dist/ts3.4/lib/convert/typescript/types.d.ts +0 -39
- package/dist/ts3.4/lib/convert/utils.d.ts +0 -1
- package/dist/ts3.4/lib/docgen/PropDef.d.ts +0 -26
- package/dist/ts3.4/lib/docgen/createPropDef.d.ts +0 -8
- package/dist/ts3.4/lib/docgen/extractDocgenProps.d.ts +0 -14
- package/dist/ts3.4/lib/docgen/flow/createDefaultValue.d.ts +0 -3
- package/dist/ts3.4/lib/docgen/flow/createPropDef.d.ts +0 -2
- package/dist/ts3.4/lib/docgen/flow/createType.d.ts +0 -3
- package/dist/ts3.4/lib/docgen/index.d.ts +0 -3
- package/dist/ts3.4/lib/docgen/typeScript/createDefaultValue.d.ts +0 -3
- package/dist/ts3.4/lib/docgen/typeScript/createPropDef.d.ts +0 -2
- package/dist/ts3.4/lib/docgen/typeScript/createType.d.ts +0 -3
- package/dist/ts3.4/lib/docgen/types.d.ts +0 -46
- package/dist/ts3.4/lib/docgen/utils/defaultValue.d.ts +0 -1
- package/dist/ts3.4/lib/docgen/utils/docgenInfo.d.ts +0 -5
- package/dist/ts3.4/lib/docgen/utils/index.d.ts +0 -3
- package/dist/ts3.4/lib/docgen/utils/string.d.ts +0 -1
- package/dist/ts3.4/lib/index.d.ts +0 -1
- package/dist/ts3.4/lib/jsdocParser.d.ts +0 -28
- package/dist/ts3.4/lib/utils.d.ts +0 -7
- package/dist/ts3.9/frameworks/angular/compodoc.d.ts +0 -18
- package/dist/ts3.9/frameworks/angular/config.d.ts +0 -15
- package/dist/ts3.9/frameworks/angular/index.d.ts +0 -1
- package/dist/ts3.9/frameworks/angular/prepareForInline.d.ts +0 -7
- package/dist/ts3.9/frameworks/angular/sourceDecorator.d.ts +0 -9
- package/dist/ts3.9/frameworks/angular/types.d.ts +0 -102
- package/dist/ts3.9/frameworks/common/config.d.ts +0 -10
- package/dist/ts3.9/frameworks/common/enhanceArgTypes.d.ts +0 -2
- package/dist/ts3.9/frameworks/common/preset.d.ts +0 -1
- package/dist/ts3.9/frameworks/html/config.d.ts +0 -14
- package/dist/ts3.9/frameworks/html/prepareForInline.d.ts +0 -2
- package/dist/ts3.9/frameworks/html/sourceDecorator.d.ts +0 -3
- package/dist/ts3.9/frameworks/react/config.d.ts +0 -12
- package/dist/ts3.9/frameworks/react/extractArgTypes.d.ts +0 -2
- package/dist/ts3.9/frameworks/react/extractProps.d.ts +0 -5
- package/dist/ts3.9/frameworks/react/jsxDecorator.d.ts +0 -23
- package/dist/ts3.9/frameworks/react/lib/captions.d.ts +0 -6
- package/dist/ts3.9/frameworks/react/lib/componentTypes.d.ts +0 -2
- package/dist/ts3.9/frameworks/react/lib/defaultValues/createDefaultValue.d.ts +0 -2
- package/dist/ts3.9/frameworks/react/lib/defaultValues/createFromRawDefaultProp.d.ts +0 -12
- package/dist/ts3.9/frameworks/react/lib/defaultValues/generateArray.d.ts +0 -3
- package/dist/ts3.9/frameworks/react/lib/defaultValues/generateObject.d.ts +0 -3
- package/dist/ts3.9/frameworks/react/lib/defaultValues/index.d.ts +0 -2
- package/dist/ts3.9/frameworks/react/lib/defaultValues/prettyIdentifier.d.ts +0 -4
- package/dist/ts3.9/frameworks/react/lib/generateCode.d.ts +0 -3
- package/dist/ts3.9/frameworks/react/lib/index.d.ts +0 -4
- package/dist/ts3.9/frameworks/react/lib/inspection/acornParser.d.ts +0 -7
- package/dist/ts3.9/frameworks/react/lib/inspection/index.d.ts +0 -2
- package/dist/ts3.9/frameworks/react/lib/inspection/inspectValue.d.ts +0 -2
- package/dist/ts3.9/frameworks/react/lib/inspection/types.d.ts +0 -50
- package/dist/ts3.9/frameworks/react/lib/isHtmlTag.d.ts +0 -1
- package/dist/ts3.9/frameworks/react/propTypes/createType.d.ts +0 -3
- package/dist/ts3.9/frameworks/react/propTypes/generateFuncSignature.d.ts +0 -4
- package/dist/ts3.9/frameworks/react/propTypes/handleProp.d.ts +0 -4
- package/dist/ts3.9/frameworks/react/propTypes/rawDefaultPropResolvers.d.ts +0 -1
- package/dist/ts3.9/frameworks/react/propTypes/sortProps.d.ts +0 -3
- package/dist/ts3.9/frameworks/react/typeScript/handleProp.d.ts +0 -3
- package/dist/ts3.9/frameworks/svelte/config.d.ts +0 -11
- package/dist/ts3.9/frameworks/svelte/extractArgTypes.d.ts +0 -5
- package/dist/ts3.9/frameworks/svelte/extractComponentDescription.d.ts +0 -2
- package/dist/ts3.9/frameworks/svelte/prepareForInline.d.ts +0 -3
- package/dist/ts3.9/frameworks/svelte/preset.d.ts +0 -3
- package/dist/ts3.9/frameworks/svelte/sourceDecorator.d.ts +0 -16
- package/dist/ts3.9/frameworks/svelte/svelte-docgen-loader.d.ts +0 -5
- package/dist/ts3.9/frameworks/vue/config.d.ts +0 -11
- package/dist/ts3.9/frameworks/vue/extractArgTypes.d.ts +0 -2
- package/dist/ts3.9/frameworks/vue/prepareForInline.d.ts +0 -4
- package/dist/ts3.9/frameworks/vue/preset.d.ts +0 -2
- package/dist/ts3.9/frameworks/vue/sourceDecorator.d.ts +0 -5
- package/dist/ts3.9/frameworks/vue3/config.d.ts +0 -10
- package/dist/ts3.9/frameworks/vue3/extractArgTypes.d.ts +0 -2
- package/dist/ts3.9/frameworks/vue3/prepareForInline.d.ts +0 -4
- package/dist/ts3.9/frameworks/vue3/preset.d.ts +0 -2
- package/dist/ts3.9/frameworks/web-components/config.d.ts +0 -18
- package/dist/ts3.9/frameworks/web-components/custom-elements.d.ts +0 -35
- package/dist/ts3.9/frameworks/web-components/prepareForInline.d.ts +0 -4
- package/dist/ts3.9/frameworks/web-components/sourceDecorator.d.ts +0 -3
- package/dist/ts3.9/lib/convert/flow/convert.d.ts +0 -3
- package/dist/ts3.9/lib/convert/flow/index.d.ts +0 -2
- package/dist/ts3.9/lib/convert/flow/types.d.ts +0 -43
- package/dist/ts3.9/lib/convert/index.d.ts +0 -2
- package/dist/ts3.9/lib/convert/proptypes/convert.d.ts +0 -3
- package/dist/ts3.9/lib/convert/proptypes/index.d.ts +0 -2
- package/dist/ts3.9/lib/convert/proptypes/types.d.ts +0 -11
- package/dist/ts3.9/lib/convert/typescript/convert.d.ts +0 -3
- package/dist/ts3.9/lib/convert/typescript/index.d.ts +0 -2
- package/dist/ts3.9/lib/convert/typescript/types.d.ts +0 -39
- package/dist/ts3.9/lib/convert/utils.d.ts +0 -1
- package/dist/ts3.9/lib/docgen/PropDef.d.ts +0 -26
- package/dist/ts3.9/lib/docgen/createPropDef.d.ts +0 -8
- package/dist/ts3.9/lib/docgen/extractDocgenProps.d.ts +0 -14
- package/dist/ts3.9/lib/docgen/flow/createDefaultValue.d.ts +0 -3
- package/dist/ts3.9/lib/docgen/flow/createPropDef.d.ts +0 -2
- package/dist/ts3.9/lib/docgen/flow/createType.d.ts +0 -3
- package/dist/ts3.9/lib/docgen/index.d.ts +0 -3
- package/dist/ts3.9/lib/docgen/typeScript/createDefaultValue.d.ts +0 -3
- package/dist/ts3.9/lib/docgen/typeScript/createPropDef.d.ts +0 -2
- package/dist/ts3.9/lib/docgen/typeScript/createType.d.ts +0 -3
- package/dist/ts3.9/lib/docgen/types.d.ts +0 -46
- package/dist/ts3.9/lib/docgen/utils/defaultValue.d.ts +0 -1
- package/dist/ts3.9/lib/docgen/utils/docgenInfo.d.ts +0 -5
- package/dist/ts3.9/lib/docgen/utils/index.d.ts +0 -3
- package/dist/ts3.9/lib/docgen/utils/string.d.ts +0 -1
- package/dist/ts3.9/lib/index.d.ts +0 -1
- package/dist/ts3.9/lib/jsdocParser.d.ts +0 -28
- package/dist/ts3.9/lib/utils.d.ts +0 -7
|
@@ -11,25 +11,31 @@ export const SourceContainer = ({
|
|
|
11
11
|
const [sources, setSources] = useState({});
|
|
12
12
|
const channel = addons.getChannel();
|
|
13
13
|
useEffect(() => {
|
|
14
|
-
const handleSnippetRendered = (id,
|
|
15
|
-
if
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
});
|
|
14
|
+
const handleSnippetRendered = (id, newSource, format = false) => {
|
|
15
|
+
// optimization: if the source is the same, ignore the incoming event
|
|
16
|
+
if (sources[id] && sources[id].code === newSource) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
setSources(current => {
|
|
21
|
+
const newSources = Object.assign({}, current, {
|
|
22
|
+
[id]: {
|
|
23
|
+
code: newSource,
|
|
24
|
+
format
|
|
23
25
|
}
|
|
24
|
-
|
|
25
|
-
return current;
|
|
26
26
|
});
|
|
27
|
-
|
|
27
|
+
|
|
28
|
+
if (!deepEqual(current, newSources)) {
|
|
29
|
+
return newSources;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return current;
|
|
33
|
+
});
|
|
28
34
|
};
|
|
29
35
|
|
|
30
36
|
channel.on(SNIPPET_RENDERED, handleSnippetRendered);
|
|
31
37
|
return () => channel.off(SNIPPET_RENDERED, handleSnippetRendered);
|
|
32
|
-
});
|
|
38
|
+
}, []);
|
|
33
39
|
return /*#__PURE__*/React.createElement(SourceContext.Provider, {
|
|
34
40
|
value: {
|
|
35
41
|
sources
|
|
@@ -12,6 +12,11 @@ export const Stories = ({
|
|
|
12
12
|
componentStories
|
|
13
13
|
} = useContext(DocsContext);
|
|
14
14
|
let stories = componentStories();
|
|
15
|
+
stories = stories.filter(story => {
|
|
16
|
+
var _story$parameters, _story$parameters$doc;
|
|
17
|
+
|
|
18
|
+
return !((_story$parameters = story.parameters) !== null && _story$parameters !== void 0 && (_story$parameters$doc = _story$parameters.docs) !== null && _story$parameters$doc !== void 0 && _story$parameters$doc.disable);
|
|
19
|
+
});
|
|
15
20
|
if (!includePrimary) stories = stories.slice(1);
|
|
16
21
|
|
|
17
22
|
if (!stories || stories.length === 0) {
|
|
@@ -95,30 +95,8 @@ const Story = props => {
|
|
|
95
95
|
let cleanup;
|
|
96
96
|
|
|
97
97
|
if (story && storyRef.current) {
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
id,
|
|
101
|
-
title,
|
|
102
|
-
name
|
|
103
|
-
} = story;
|
|
104
|
-
const renderContext = {
|
|
105
|
-
componentId,
|
|
106
|
-
title,
|
|
107
|
-
kind: title,
|
|
108
|
-
id,
|
|
109
|
-
name,
|
|
110
|
-
story: name,
|
|
111
|
-
// TODO what to do when these fail?
|
|
112
|
-
showMain: () => {},
|
|
113
|
-
showError: () => {},
|
|
114
|
-
showException: () => {}
|
|
115
|
-
};
|
|
116
|
-
cleanup = context.renderStoryToElement({
|
|
117
|
-
story,
|
|
118
|
-
renderContext,
|
|
119
|
-
element: storyRef.current,
|
|
120
|
-
viewMode: 'docs'
|
|
121
|
-
});
|
|
98
|
+
const element = storyRef.current;
|
|
99
|
+
cleanup = context.renderStoryToElement(story, element);
|
|
122
100
|
setShowLoader(false);
|
|
123
101
|
}
|
|
124
102
|
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
const _excluded = ["children"],
|
|
2
|
+
_excluded2 = ["className", "children"],
|
|
3
|
+
_excluded3 = ["href", "target", "children"],
|
|
4
|
+
_excluded4 = ["as", "id", "children"],
|
|
5
|
+
_excluded5 = ["as", "id", "children"];
|
|
1
6
|
import "core-js/modules/es.array.reduce.js";
|
|
2
7
|
|
|
3
8
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -27,19 +32,19 @@ export const AddContext = props => {
|
|
|
27
32
|
const {
|
|
28
33
|
children
|
|
29
34
|
} = props,
|
|
30
|
-
rest = _objectWithoutPropertiesLoose(props,
|
|
35
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded);
|
|
31
36
|
|
|
32
37
|
const parentContext = React.useContext(DocsContext);
|
|
33
38
|
return /*#__PURE__*/React.createElement(DocsContext.Provider, {
|
|
34
39
|
value: Object.assign({}, parentContext, rest)
|
|
35
40
|
}, children);
|
|
36
41
|
};
|
|
37
|
-
export const CodeOrSourceMdx =
|
|
42
|
+
export const CodeOrSourceMdx = _ref => {
|
|
38
43
|
let {
|
|
39
44
|
className,
|
|
40
45
|
children
|
|
41
46
|
} = _ref,
|
|
42
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
47
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded2);
|
|
43
48
|
|
|
44
49
|
// markdown-to-jsx does not add className to inline code
|
|
45
50
|
if (typeof className !== 'string' && (typeof children !== 'string' || !children.match(/[\n\r]/g))) {
|
|
@@ -84,7 +89,7 @@ export const AnchorMdx = props => {
|
|
|
84
89
|
target,
|
|
85
90
|
children
|
|
86
91
|
} = props,
|
|
87
|
-
rest = _objectWithoutPropertiesLoose(props,
|
|
92
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded3);
|
|
88
93
|
|
|
89
94
|
if (href) {
|
|
90
95
|
// Enable scrolling for in-page anchors.
|
|
@@ -95,7 +100,7 @@ export const AnchorMdx = props => {
|
|
|
95
100
|
} // Links to other pages of SB should use the base URL of the top level iframe instead of the base URL of the preview iframe.
|
|
96
101
|
|
|
97
102
|
|
|
98
|
-
if (target !== '_blank') {
|
|
103
|
+
if (target !== '_blank' && !href.startsWith('https://')) {
|
|
99
104
|
return /*#__PURE__*/React.createElement(A, _extends({
|
|
100
105
|
href: href,
|
|
101
106
|
onClick: event => {
|
|
@@ -132,13 +137,13 @@ const OcticonAnchor = styled.a(() => ({
|
|
|
132
137
|
color: 'inherit'
|
|
133
138
|
}));
|
|
134
139
|
|
|
135
|
-
const HeaderWithOcticonAnchor =
|
|
140
|
+
const HeaderWithOcticonAnchor = _ref2 => {
|
|
136
141
|
let {
|
|
137
142
|
as,
|
|
138
143
|
id,
|
|
139
144
|
children
|
|
140
145
|
} = _ref2,
|
|
141
|
-
rest = _objectWithoutPropertiesLoose(_ref2,
|
|
146
|
+
rest = _objectWithoutPropertiesLoose(_ref2, _excluded4);
|
|
142
147
|
|
|
143
148
|
// @ts-ignore
|
|
144
149
|
const OcticonHeader = OcticonHeaders[as];
|
|
@@ -176,7 +181,7 @@ export const HeaderMdx = props => {
|
|
|
176
181
|
id,
|
|
177
182
|
children
|
|
178
183
|
} = props,
|
|
179
|
-
rest = _objectWithoutPropertiesLoose(props,
|
|
184
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded5); // An id should have been added on every header by the "remark-slug" plugin.
|
|
180
185
|
|
|
181
186
|
|
|
182
187
|
if (id) {
|
|
File without changes
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
2
|
import remarkSlug from 'remark-slug';
|
|
3
|
-
import remarkExternalLinks from 'remark-external-links';
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
const resolvedBabelLoader = require.resolve('babel-loader', {
|
|
8
|
-
paths: [require.resolve('@storybook/builder-webpack4')] // FIXME!!!
|
|
9
|
-
|
|
10
|
-
}); // for frameworks that are not working with react, we need to configure
|
|
3
|
+
import remarkExternalLinks from 'remark-external-links';
|
|
4
|
+
import global from 'global';
|
|
5
|
+
import { logger } from '@storybook/node-logger'; // for frameworks that are not working with react, we need to configure
|
|
11
6
|
// the jsx to transpile mdx, for now there will be a flag for that
|
|
12
7
|
// for more complex solutions we can find alone that we need to add '@babel/plugin-transform-react-jsx'
|
|
13
8
|
|
|
14
|
-
|
|
15
9
|
function createBabelOptions({
|
|
16
10
|
babelOptions,
|
|
17
11
|
mdxBabelOptions,
|
|
@@ -32,7 +26,11 @@ function createBabelOptions({
|
|
|
32
26
|
});
|
|
33
27
|
}
|
|
34
28
|
|
|
35
|
-
export function webpack(webpackConfig = {}, options
|
|
29
|
+
export async function webpack(webpackConfig = {}, options) {
|
|
30
|
+
var _global$FEATURES, _global$FEATURES2;
|
|
31
|
+
|
|
32
|
+
const resolvedBabelLoader = require.resolve('babel-loader');
|
|
33
|
+
|
|
36
34
|
const {
|
|
37
35
|
module = {}
|
|
38
36
|
} = webpackConfig; // it will reuse babel options that are already in use in storybook
|
|
@@ -48,8 +46,12 @@ export function webpack(webpackConfig = {}, options = {}) {
|
|
|
48
46
|
transcludeMarkdown = false
|
|
49
47
|
} = options;
|
|
50
48
|
const mdxLoaderOptions = {
|
|
49
|
+
skipCsf: true,
|
|
51
50
|
remarkPlugins: [remarkSlug, remarkExternalLinks]
|
|
52
|
-
};
|
|
51
|
+
};
|
|
52
|
+
const mdxVersion = (_global$FEATURES = global.FEATURES) !== null && _global$FEATURES !== void 0 && _global$FEATURES.previewMdx2 ? 'MDX2' : 'MDX1';
|
|
53
|
+
logger.info(`Addon-docs: using ${mdxVersion}`);
|
|
54
|
+
const mdxLoader = (_global$FEATURES2 = global.FEATURES) !== null && _global$FEATURES2 !== void 0 && _global$FEATURES2.previewMdx2 ? require.resolve('@storybook/mdx2-csf/loader') : require.resolve('@storybook/mdx1-csf/loader'); // set `sourceLoaderOptions` to `null` to disable for manual configuration
|
|
53
55
|
|
|
54
56
|
const sourceLoader = sourceLoaderOptions ? [{
|
|
55
57
|
test: /\.(stories|story)\.[tj]sx?$/,
|
|
@@ -76,7 +78,7 @@ export function webpack(webpackConfig = {}, options = {}) {
|
|
|
76
78
|
configureJSX
|
|
77
79
|
})
|
|
78
80
|
}, {
|
|
79
|
-
loader:
|
|
81
|
+
loader: mdxLoader,
|
|
80
82
|
options: mdxLoaderOptions
|
|
81
83
|
}]
|
|
82
84
|
}];
|
|
@@ -105,10 +107,7 @@ export function webpack(webpackConfig = {}, options = {}) {
|
|
|
105
107
|
configureJSX
|
|
106
108
|
})
|
|
107
109
|
}, {
|
|
108
|
-
loader:
|
|
109
|
-
options: Object.assign({
|
|
110
|
-
compilers: [createCompiler(options)]
|
|
111
|
-
}, mdxLoaderOptions)
|
|
110
|
+
loader: mdxLoader
|
|
112
111
|
}]
|
|
113
112
|
}, {
|
|
114
113
|
test: /\.mdx$/,
|
|
@@ -121,7 +120,7 @@ export function webpack(webpackConfig = {}, options = {}) {
|
|
|
121
120
|
configureJSX
|
|
122
121
|
})
|
|
123
122
|
}, {
|
|
124
|
-
loader:
|
|
123
|
+
loader: mdxLoader,
|
|
125
124
|
options: mdxLoaderOptions
|
|
126
125
|
}]
|
|
127
126
|
}, ...sourceLoader]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentProps, FC } from 'react';
|
|
2
|
+
import { Source as PureSource } from '@storybook/components';
|
|
3
3
|
import { DocsContextProps } from './DocsContext';
|
|
4
4
|
import { SourceContextProps } from './SourceContainer';
|
|
5
5
|
export declare enum SourceState {
|
|
@@ -10,6 +10,7 @@ export declare enum SourceState {
|
|
|
10
10
|
interface CommonProps {
|
|
11
11
|
language?: string;
|
|
12
12
|
dark?: boolean;
|
|
13
|
+
format?: PureSourceProps['format'];
|
|
13
14
|
code?: string;
|
|
14
15
|
}
|
|
15
16
|
declare type SingleSourceProps = {
|
|
@@ -26,11 +27,12 @@ declare type SourceProps = SingleSourceProps | MultiSourceProps | CodeProps | No
|
|
|
26
27
|
declare type SourceStateProps = {
|
|
27
28
|
state: SourceState;
|
|
28
29
|
};
|
|
30
|
+
declare type PureSourceProps = ComponentProps<typeof PureSource>;
|
|
29
31
|
export declare const getSourceProps: (props: SourceProps, docsContext: DocsContextProps<any>, sourceContext: SourceContextProps) => PureSourceProps & SourceStateProps;
|
|
30
32
|
/**
|
|
31
33
|
* Story source doc block renders source code if provided,
|
|
32
34
|
* or the source for a story if `storyId` is provided, or
|
|
33
35
|
* the source for the current story if nothing is provided.
|
|
34
36
|
*/
|
|
35
|
-
export declare const Source: FC<
|
|
37
|
+
export declare const Source: FC<PureSourceProps>;
|
|
36
38
|
export {};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { FC, Context } from 'react';
|
|
2
|
+
import { SyntaxHighlighterFormatTypes } from '@storybook/components';
|
|
2
3
|
import { StoryId } from '@storybook/api';
|
|
3
|
-
export
|
|
4
|
+
export interface SourceItem {
|
|
5
|
+
code: string;
|
|
6
|
+
format: SyntaxHighlighterFormatTypes;
|
|
7
|
+
}
|
|
4
8
|
export declare type StorySources = Record<StoryId, SourceItem>;
|
|
5
9
|
export interface SourceContextProps {
|
|
6
10
|
sources: StorySources;
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Options } from '@storybook/core-common';
|
|
2
|
+
declare type BabelParams = {
|
|
3
|
+
babelOptions?: any;
|
|
4
|
+
mdxBabelOptions?: any;
|
|
5
|
+
configureJSX?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare function webpack(webpackConfig: any, options: Options & BabelParams & {
|
|
8
|
+
sourceLoaderOptions: any;
|
|
9
|
+
transcludeMarkdown: boolean;
|
|
10
|
+
}): Promise<any>;
|
|
11
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Context } from 'react';
|
|
2
|
-
import { DocsContextProps } from '@storybook/preview-web';
|
|
3
|
-
import { AnyFramework } from '@storybook/csf';
|
|
2
|
+
import type { DocsContextProps } from '@storybook/preview-web';
|
|
3
|
+
import type { AnyFramework } from '@storybook/csf';
|
|
4
4
|
export type { DocsContextProps };
|
|
5
5
|
export declare const DocsContext: Context<DocsContextProps<AnyFramework>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentProps, FC } from 'react';
|
|
2
|
+
import { Source as PureSource } from '@storybook/components';
|
|
3
3
|
import { DocsContextProps } from './DocsContext';
|
|
4
4
|
import { SourceContextProps } from './SourceContainer';
|
|
5
5
|
export declare enum SourceState {
|
|
@@ -10,6 +10,7 @@ export declare enum SourceState {
|
|
|
10
10
|
interface CommonProps {
|
|
11
11
|
language?: string;
|
|
12
12
|
dark?: boolean;
|
|
13
|
+
format?: PureSourceProps['format'];
|
|
13
14
|
code?: string;
|
|
14
15
|
}
|
|
15
16
|
declare type SingleSourceProps = {
|
|
@@ -26,11 +27,12 @@ declare type SourceProps = SingleSourceProps | MultiSourceProps | CodeProps | No
|
|
|
26
27
|
declare type SourceStateProps = {
|
|
27
28
|
state: SourceState;
|
|
28
29
|
};
|
|
30
|
+
declare type PureSourceProps = ComponentProps<typeof PureSource>;
|
|
29
31
|
export declare const getSourceProps: (props: SourceProps, docsContext: DocsContextProps<any>, sourceContext: SourceContextProps) => PureSourceProps & SourceStateProps;
|
|
30
32
|
/**
|
|
31
33
|
* Story source doc block renders source code if provided,
|
|
32
34
|
* or the source for a story if `storyId` is provided, or
|
|
33
35
|
* the source for the current story if nothing is provided.
|
|
34
36
|
*/
|
|
35
|
-
export declare const Source: FC<
|
|
37
|
+
export declare const Source: FC<PureSourceProps>;
|
|
36
38
|
export {};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { FC, Context } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import type { SyntaxHighlighterFormatTypes } from '@storybook/components';
|
|
3
|
+
import type { StoryId } from '@storybook/api';
|
|
4
|
+
export interface SourceItem {
|
|
5
|
+
code: string;
|
|
6
|
+
format: SyntaxHighlighterFormatTypes;
|
|
7
|
+
}
|
|
4
8
|
export declare type StorySources = Record<StoryId, SourceItem>;
|
|
5
9
|
export interface SourceContextProps {
|
|
6
10
|
sources: StorySources;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Parameters } from '@storybook/addons';
|
|
2
|
-
import { Story } from '@storybook/store';
|
|
1
|
+
import type { Parameters } from '@storybook/addons';
|
|
2
|
+
import type { Story } from '@storybook/store';
|
|
3
3
|
export declare const enhanceSource: (story: Story<any>) => Parameters;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StoryId, AnyFramework } from '@storybook/csf';
|
|
2
|
-
import { Story } from '@storybook/store';
|
|
1
|
+
import type { StoryId, AnyFramework } from '@storybook/csf';
|
|
2
|
+
import type { Story } from '@storybook/store';
|
|
3
3
|
import { DocsContextProps } from './DocsContext';
|
|
4
4
|
export declare function useStory<TFramework extends AnyFramework = AnyFramework>(storyId: StoryId, context: DocsContextProps<TFramework>): Story<TFramework> | void;
|
|
5
5
|
export declare function useStories<TFramework extends AnyFramework = AnyFramework>(storyIds: StoryId[], context: DocsContextProps<TFramework>): (Story<TFramework> | void)[];
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Options } from '@storybook/core-common';
|
|
2
|
+
declare type BabelParams = {
|
|
3
|
+
babelOptions?: any;
|
|
4
|
+
mdxBabelOptions?: any;
|
|
5
|
+
configureJSX?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare function webpack(webpackConfig: any, options: Options & BabelParams & {
|
|
8
|
+
sourceLoaderOptions: any;
|
|
9
|
+
transcludeMarkdown: boolean;
|
|
10
|
+
}): Promise<any>;
|
|
11
|
+
export {};
|
package/ember/index.js
CHANGED
package/jest-transform-mdx.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
|
-
const mdx = require('@mdx-js/mdx');
|
|
3
2
|
const { ScriptTransformer } = require('@jest/transform');
|
|
4
3
|
const { dedent } = require('ts-dedent');
|
|
5
4
|
|
|
6
|
-
const {
|
|
7
|
-
|
|
8
|
-
const compilers = [createCompiler({})];
|
|
5
|
+
const { compileSync } = require('@storybook/mdx1-csf');
|
|
9
6
|
|
|
10
7
|
module.exports = {
|
|
11
8
|
process(src, filename, config, { instrument }) {
|
|
@@ -13,7 +10,7 @@ module.exports = {
|
|
|
13
10
|
/* @jsx mdx */
|
|
14
11
|
import React from 'react'
|
|
15
12
|
import { mdx } from '@mdx-js/react'
|
|
16
|
-
${
|
|
13
|
+
${compileSync(src, { filepath: filename })}
|
|
17
14
|
`;
|
|
18
15
|
|
|
19
16
|
const extension = path.extname(filename);
|
package/manager.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './dist/esm/manager';
|
package/mdx-compiler-plugin.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = require('@storybook/csf
|
|
1
|
+
module.exports = require('@storybook/mdx1-csf').createCompiler;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-docs",
|
|
3
|
-
"version": "6.5.0-
|
|
3
|
+
"version": "6.5.0-beta.1",
|
|
4
4
|
"description": "Document component usage and properties in Markdown",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"addon",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"common/**/*",
|
|
41
41
|
"ember/**/*",
|
|
42
42
|
"html/**/*",
|
|
43
|
+
"svelte/**/*",
|
|
43
44
|
"postinstall/**/*",
|
|
44
45
|
"react/**/*",
|
|
45
46
|
"vue/**/*",
|
|
@@ -54,47 +55,29 @@
|
|
|
54
55
|
"prepare": "node ../../scripts/prepare.js"
|
|
55
56
|
},
|
|
56
57
|
"dependencies": {
|
|
57
|
-
"@babel/core": "^7.12.10",
|
|
58
|
-
"@babel/generator": "^7.12.11",
|
|
59
|
-
"@babel/parser": "^7.12.11",
|
|
60
58
|
"@babel/plugin-transform-react-jsx": "^7.12.12",
|
|
61
59
|
"@babel/preset-env": "^7.12.11",
|
|
62
60
|
"@jest/transform": "^26.6.2",
|
|
63
|
-
"@mdx-js/loader": "^1.6.22",
|
|
64
|
-
"@mdx-js/mdx": "^1.6.22",
|
|
65
61
|
"@mdx-js/react": "^1.6.22",
|
|
66
|
-
"@storybook/addons": "6.5.0-
|
|
67
|
-
"@storybook/api": "6.5.0-
|
|
68
|
-
"@storybook/
|
|
69
|
-
"@storybook/
|
|
70
|
-
"@storybook/
|
|
71
|
-
"@storybook/
|
|
72
|
-
"@storybook/
|
|
73
|
-
"@storybook/csf": "
|
|
74
|
-
"@storybook/
|
|
75
|
-
"@storybook/
|
|
76
|
-
"@storybook/
|
|
77
|
-
"@storybook/
|
|
78
|
-
"@storybook/
|
|
79
|
-
"@storybook/
|
|
80
|
-
"
|
|
81
|
-
"acorn": "^7.4.1",
|
|
82
|
-
"acorn-jsx": "^5.3.1",
|
|
83
|
-
"acorn-walk": "^7.2.0",
|
|
62
|
+
"@storybook/addons": "6.5.0-beta.1",
|
|
63
|
+
"@storybook/api": "6.5.0-beta.1",
|
|
64
|
+
"@storybook/components": "6.5.0-beta.1",
|
|
65
|
+
"@storybook/core-common": "6.5.0-beta.1",
|
|
66
|
+
"@storybook/core-events": "6.5.0-beta.1",
|
|
67
|
+
"@storybook/csf": "0.0.2--canary.4566f4d.1",
|
|
68
|
+
"@storybook/docs-tools": "6.5.0-beta.1",
|
|
69
|
+
"@storybook/mdx1-csf": "canary",
|
|
70
|
+
"@storybook/node-logger": "6.5.0-beta.1",
|
|
71
|
+
"@storybook/postinstall": "6.5.0-beta.1",
|
|
72
|
+
"@storybook/preview-web": "6.5.0-beta.1",
|
|
73
|
+
"@storybook/source-loader": "6.5.0-beta.1",
|
|
74
|
+
"@storybook/store": "6.5.0-beta.1",
|
|
75
|
+
"@storybook/theming": "6.5.0-beta.1",
|
|
76
|
+
"babel-loader": "^8.0.0",
|
|
84
77
|
"core-js": "^3.8.2",
|
|
85
|
-
"doctrine": "^3.0.0",
|
|
86
|
-
"escodegen": "^2.0.0",
|
|
87
78
|
"fast-deep-equal": "^3.1.3",
|
|
88
79
|
"global": "^4.4.0",
|
|
89
|
-
"html-tags": "^3.1.0",
|
|
90
|
-
"js-string-escape": "^1.0.1",
|
|
91
|
-
"loader-utils": "^2.0.0",
|
|
92
80
|
"lodash": "^4.17.21",
|
|
93
|
-
"nanoid": "^3.1.23",
|
|
94
|
-
"p-limit": "^3.1.0",
|
|
95
|
-
"prettier": "^2.2.1",
|
|
96
|
-
"prop-types": "^15.7.2",
|
|
97
|
-
"react-element-to-jsx-string": "^14.3.4",
|
|
98
81
|
"regenerator-runtime": "^0.13.7",
|
|
99
82
|
"remark-external-links": "^8.0.0",
|
|
100
83
|
"remark-slug": "^6.0.0",
|
|
@@ -102,82 +85,17 @@
|
|
|
102
85
|
"util-deprecate": "^1.0.2"
|
|
103
86
|
},
|
|
104
87
|
"devDependencies": {
|
|
105
|
-
"@angular/core": "^11.2.14",
|
|
106
88
|
"@babel/core": "^7.12.10",
|
|
107
|
-
"@
|
|
108
|
-
"@
|
|
109
|
-
"@storybook/angular": "6.5.0-alpha.7",
|
|
110
|
-
"@storybook/html": "6.5.0-alpha.7",
|
|
111
|
-
"@storybook/react": "6.5.0-alpha.7",
|
|
112
|
-
"@storybook/vue": "6.5.0-alpha.7",
|
|
113
|
-
"@storybook/web-components": "6.5.0-alpha.7",
|
|
114
|
-
"@types/cross-spawn": "^6.0.2",
|
|
115
|
-
"@types/doctrine": "^0.0.3",
|
|
116
|
-
"@types/enzyme": "^3.10.8",
|
|
117
|
-
"@types/estree": "^0.0.44",
|
|
118
|
-
"@types/jest": "^26.0.16",
|
|
119
|
-
"@types/loader-utils": "^2.0.0",
|
|
120
|
-
"@types/prop-types": "^15.7.3",
|
|
121
|
-
"@types/tmp": "^0.2.0",
|
|
122
|
-
"@types/util-deprecate": "^1.0.0",
|
|
123
|
-
"babel-loader": "^8.0.0",
|
|
124
|
-
"babel-plugin-react-docgen": "^4.2.1",
|
|
125
|
-
"cross-spawn": "^7.0.3",
|
|
126
|
-
"fs-extra": "^9.0.1",
|
|
127
|
-
"jest": "^26.6.3",
|
|
128
|
-
"jest-specific-snapshot": "^4.0.0",
|
|
129
|
-
"lit-element": "^3.0.2",
|
|
130
|
-
"lit-html": "^2.0.2",
|
|
131
|
-
"require-from-string": "^2.0.2",
|
|
132
|
-
"rxjs": "^6.6.3",
|
|
133
|
-
"styled-components": "^5.2.1",
|
|
134
|
-
"terser-webpack-plugin": "^5.0.3",
|
|
135
|
-
"tmp": "^0.2.1",
|
|
136
|
-
"tslib": "^2.1.0",
|
|
137
|
-
"vue": "^2.6.10",
|
|
138
|
-
"web-component-analyzer": "^1.1.6",
|
|
139
|
-
"webpack": "4",
|
|
140
|
-
"zone.js": "^0.11.3"
|
|
89
|
+
"@storybook/mdx2-csf": "canary",
|
|
90
|
+
"@types/util-deprecate": "^1.0.0"
|
|
141
91
|
},
|
|
142
92
|
"peerDependencies": {
|
|
143
|
-
"@storybook/
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"@storybook/vue": "6.5.0-alpha.7",
|
|
147
|
-
"@storybook/vue3": "6.5.0-alpha.7",
|
|
148
|
-
"@storybook/web-components": "6.5.0-alpha.7",
|
|
149
|
-
"lit": "^2.0.0",
|
|
150
|
-
"lit-html": "^1.4.1 || ^2.0.0",
|
|
151
|
-
"react": "^16.8.0 || ^17.0.0",
|
|
152
|
-
"react-dom": "^16.8.0 || ^17.0.0",
|
|
153
|
-
"svelte": "^3.31.2",
|
|
154
|
-
"sveltedoc-parser": "^4.1.0",
|
|
155
|
-
"vue": "^2.6.10 || ^3.0.0",
|
|
156
|
-
"webpack": "*"
|
|
93
|
+
"@storybook/mdx2-csf": "*",
|
|
94
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
95
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
157
96
|
},
|
|
158
97
|
"peerDependenciesMeta": {
|
|
159
|
-
"@storybook/
|
|
160
|
-
"optional": true
|
|
161
|
-
},
|
|
162
|
-
"@storybook/html": {
|
|
163
|
-
"optional": true
|
|
164
|
-
},
|
|
165
|
-
"@storybook/react": {
|
|
166
|
-
"optional": true
|
|
167
|
-
},
|
|
168
|
-
"@storybook/vue": {
|
|
169
|
-
"optional": true
|
|
170
|
-
},
|
|
171
|
-
"@storybook/vue3": {
|
|
172
|
-
"optional": true
|
|
173
|
-
},
|
|
174
|
-
"@storybook/web-components": {
|
|
175
|
-
"optional": true
|
|
176
|
-
},
|
|
177
|
-
"lit": {
|
|
178
|
-
"optional": true
|
|
179
|
-
},
|
|
180
|
-
"lit-html": {
|
|
98
|
+
"@storybook/mdx2-csf": {
|
|
181
99
|
"optional": true
|
|
182
100
|
},
|
|
183
101
|
"react": {
|
|
@@ -185,24 +103,12 @@
|
|
|
185
103
|
},
|
|
186
104
|
"react-dom": {
|
|
187
105
|
"optional": true
|
|
188
|
-
},
|
|
189
|
-
"svelte": {
|
|
190
|
-
"optional": true
|
|
191
|
-
},
|
|
192
|
-
"sveltedoc-parser": {
|
|
193
|
-
"optional": true
|
|
194
|
-
},
|
|
195
|
-
"vue": {
|
|
196
|
-
"optional": true
|
|
197
|
-
},
|
|
198
|
-
"webpack": {
|
|
199
|
-
"optional": true
|
|
200
106
|
}
|
|
201
107
|
},
|
|
202
108
|
"publishConfig": {
|
|
203
109
|
"access": "public"
|
|
204
110
|
},
|
|
205
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "85bcae3041a0664d7c0ee4756241e29ad1063a9a",
|
|
206
112
|
"sbmodern": "dist/modern/index.js",
|
|
207
113
|
"storybook": {
|
|
208
114
|
"displayName": "Docs",
|