@modern-js/module-tools-docs 2.2.1-beta.1 → 2.3.0

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.
Files changed (160) hide show
  1. package/docs/en/api/plugin-api/plugin-hooks.md +2 -10
  2. package/docs/en/guide/advance/in-depth-about-dev-command.md +0 -9
  3. package/docs/en/guide/basic/command-preview.md +1 -1
  4. package/docs/en/guide/basic/using-storybook.mdx +28 -6
  5. package/docs/en/guide/intro/getting-started.md +1 -1
  6. package/docs/en/index.md +14 -8
  7. package/docs/en/plugins/guide/getting-started.mdx +1 -1
  8. package/docs/zh/api/plugin-api/plugin-hooks.md +2 -10
  9. package/docs/zh/guide/advance/in-depth-about-dev-command.md +0 -8
  10. package/docs/zh/guide/basic/command-preview.md +1 -1
  11. package/docs/zh/guide/basic/using-storybook.mdx +28 -5
  12. package/docs/zh/index.md +16 -10
  13. package/docs/zh/plugins/guide/getting-started.mdx +1 -1
  14. package/modern.config.ts +4 -6
  15. package/package.json +4 -4
  16. package/doc_build/html/main/index.html +0 -16
  17. package/doc_build/route.json +0 -10
  18. package/doc_build/static/css/main.css +0 -2977
  19. package/doc_build/static/css/main.css.map +0 -1
  20. package/doc_build/static/css/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.css +0 -68
  21. package/doc_build/static/css/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.css.map +0 -1
  22. package/doc_build/static/js/async/en_api_config_build-config.js +0 -8406
  23. package/doc_build/static/js/async/en_api_config_build-config.js.map +0 -1
  24. package/doc_build/static/js/async/en_api_config_build-preset.js +0 -7865
  25. package/doc_build/static/js/async/en_api_config_build-preset.js.map +0 -1
  26. package/doc_build/static/js/async/en_api_config_design-system.js +0 -47805
  27. package/doc_build/static/js/async/en_api_config_design-system.js.map +0 -1
  28. package/doc_build/static/js/async/en_api_config_plugins.js +0 -1488
  29. package/doc_build/static/js/async/en_api_config_plugins.js.map +0 -1
  30. package/doc_build/static/js/async/en_api_config_testing.js +0 -2139
  31. package/doc_build/static/js/async/en_api_config_testing.js.map +0 -1
  32. package/doc_build/static/js/async/en_api_index.js +0 -51
  33. package/doc_build/static/js/async/en_api_index.js.map +0 -1
  34. package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.js +0 -14360
  35. package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.js.map +0 -1
  36. package/doc_build/static/js/async/en_guide_advance_asset.js +0 -3972
  37. package/doc_build/static/js/async/en_guide_advance_asset.js.map +0 -1
  38. package/doc_build/static/js/async/en_guide_advance_build-umd.js +0 -9857
  39. package/doc_build/static/js/async/en_guide_advance_build-umd.js.map +0 -1
  40. package/doc_build/static/js/async/en_guide_advance_copy.js +0 -6541
  41. package/doc_build/static/js/async/en_guide_advance_copy.js.map +0 -1
  42. package/doc_build/static/js/async/en_guide_advance_external-dependency.js +0 -3806
  43. package/doc_build/static/js/async/en_guide_advance_external-dependency.js.map +0 -1
  44. package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js +0 -5304
  45. package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js.map +0 -1
  46. package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js +0 -2526
  47. package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js.map +0 -1
  48. package/doc_build/static/js/async/en_guide_advance_theme-config.js +0 -2486
  49. package/doc_build/static/js/async/en_guide_advance_theme-config.js.map +0 -1
  50. package/doc_build/static/js/async/en_guide_basic_before-getting-started.js +0 -3720
  51. package/doc_build/static/js/async/en_guide_basic_before-getting-started.js.map +0 -1
  52. package/doc_build/static/js/async/en_guide_basic_command-preview.js +0 -3973
  53. package/doc_build/static/js/async/en_guide_basic_command-preview.js.map +0 -1
  54. package/doc_build/static/js/async/en_guide_basic_modify-output-product.js +0 -3137
  55. package/doc_build/static/js/async/en_guide_basic_modify-output-product.js.map +0 -1
  56. package/doc_build/static/js/async/en_guide_basic_publish-your-project.js +0 -2180
  57. package/doc_build/static/js/async/en_guide_basic_publish-your-project.js.map +0 -1
  58. package/doc_build/static/js/async/en_guide_basic_test-your-project.js +0 -3887
  59. package/doc_build/static/js/async/en_guide_basic_test-your-project.js.map +0 -1
  60. package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js +0 -2973
  61. package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js.map +0 -1
  62. package/doc_build/static/js/async/en_guide_basic_using-storybook.js +0 -4723
  63. package/doc_build/static/js/async/en_guide_basic_using-storybook.js.map +0 -1
  64. package/doc_build/static/js/async/en_guide_best-practices_components.js +0 -21400
  65. package/doc_build/static/js/async/en_guide_best-practices_components.js.map +0 -1
  66. package/doc_build/static/js/async/en_guide_intro_getting-started.js +0 -2149
  67. package/doc_build/static/js/async/en_guide_intro_getting-started.js.map +0 -1
  68. package/doc_build/static/js/async/en_guide_intro_welcome.js +0 -162
  69. package/doc_build/static/js/async/en_guide_intro_welcome.js.map +0 -1
  70. package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js +0 -96
  71. package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js.map +0 -1
  72. package/doc_build/static/js/async/en_index.js +0 -81
  73. package/doc_build/static/js/async/en_index.js.map +0 -1
  74. package/doc_build/static/js/async/en_plugins_guide_getting-started.js +0 -2556
  75. package/doc_build/static/js/async/en_plugins_guide_getting-started.js.map +0 -1
  76. package/doc_build/static/js/async/en_plugins_guide_plugin-object.js +0 -4173
  77. package/doc_build/static/js/async/en_plugins_guide_plugin-object.js.map +0 -1
  78. package/doc_build/static/js/async/en_plugins_guide_setup-function.js +0 -3815
  79. package/doc_build/static/js/async/en_plugins_guide_setup-function.js.map +0 -1
  80. package/doc_build/static/js/async/en_plugins_official-list_overview.js +0 -66
  81. package/doc_build/static/js/async/en_plugins_official-list_overview.js.map +0 -1
  82. package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js +0 -246
  83. package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js.map +0 -1
  84. package/doc_build/static/js/async/vendors-node_modules_pnpm_code-hike_mdx_0_7_4_react_18_2_0_node_modules_code-hike_mdx_dist_co-06dd41.js +0 -6656
  85. package/doc_build/static/js/async/vendors-node_modules_pnpm_code-hike_mdx_0_7_4_react_18_2_0_node_modules_code-hike_mdx_dist_co-06dd41.js.map +0 -1
  86. package/doc_build/static/js/async/vendors-node_modules_pnpm_flexsearch_0_6_32_node_modules_flexsearch_dist_flexsearch_min_js.js +0 -54
  87. package/doc_build/static/js/async/vendors-node_modules_pnpm_flexsearch_0_6_32_node_modules_flexsearch_dist_flexsearch_min_js.js.map +0 -1
  88. package/doc_build/static/js/async/zh_api_config_build-config.js +0 -11354
  89. package/doc_build/static/js/async/zh_api_config_build-config.js.map +0 -1
  90. package/doc_build/static/js/async/zh_api_config_build-preset.js +0 -7867
  91. package/doc_build/static/js/async/zh_api_config_build-preset.js.map +0 -1
  92. package/doc_build/static/js/async/zh_api_config_design-system.js +0 -48712
  93. package/doc_build/static/js/async/zh_api_config_design-system.js.map +0 -1
  94. package/doc_build/static/js/async/zh_api_config_plugins.js +0 -1488
  95. package/doc_build/static/js/async/zh_api_config_plugins.js.map +0 -1
  96. package/doc_build/static/js/async/zh_api_config_testing.js +0 -2132
  97. package/doc_build/static/js/async/zh_api_config_testing.js.map +0 -1
  98. package/doc_build/static/js/async/zh_api_index.js +0 -52
  99. package/doc_build/static/js/async/zh_api_index.js.map +0 -1
  100. package/doc_build/static/js/async/zh_api_plugin-api_plugin-hooks.js +0 -14392
  101. package/doc_build/static/js/async/zh_api_plugin-api_plugin-hooks.js.map +0 -1
  102. package/doc_build/static/js/async/zh_guide_advance_asset.js +0 -3972
  103. package/doc_build/static/js/async/zh_guide_advance_asset.js.map +0 -1
  104. package/doc_build/static/js/async/zh_guide_advance_build-umd.js +0 -9859
  105. package/doc_build/static/js/async/zh_guide_advance_build-umd.js.map +0 -1
  106. package/doc_build/static/js/async/zh_guide_advance_copy.js +0 -6541
  107. package/doc_build/static/js/async/zh_guide_advance_copy.js.map +0 -1
  108. package/doc_build/static/js/async/zh_guide_advance_external-dependency.js +0 -3808
  109. package/doc_build/static/js/async/zh_guide_advance_external-dependency.js.map +0 -1
  110. package/doc_build/static/js/async/zh_guide_advance_in-depth-about-build.js +0 -5304
  111. package/doc_build/static/js/async/zh_guide_advance_in-depth-about-build.js.map +0 -1
  112. package/doc_build/static/js/async/zh_guide_advance_in-depth-about-dev-command.js +0 -2526
  113. package/doc_build/static/js/async/zh_guide_advance_in-depth-about-dev-command.js.map +0 -1
  114. package/doc_build/static/js/async/zh_guide_advance_theme-config.js +0 -2477
  115. package/doc_build/static/js/async/zh_guide_advance_theme-config.js.map +0 -1
  116. package/doc_build/static/js/async/zh_guide_basic_before-getting-started.js +0 -3711
  117. package/doc_build/static/js/async/zh_guide_basic_before-getting-started.js.map +0 -1
  118. package/doc_build/static/js/async/zh_guide_basic_command-preview.js +0 -3805
  119. package/doc_build/static/js/async/zh_guide_basic_command-preview.js.map +0 -1
  120. package/doc_build/static/js/async/zh_guide_basic_modify-output-product.js +0 -3142
  121. package/doc_build/static/js/async/zh_guide_basic_modify-output-product.js.map +0 -1
  122. package/doc_build/static/js/async/zh_guide_basic_publish-your-project.js +0 -2241
  123. package/doc_build/static/js/async/zh_guide_basic_publish-your-project.js.map +0 -1
  124. package/doc_build/static/js/async/zh_guide_basic_test-your-project.js +0 -4286
  125. package/doc_build/static/js/async/zh_guide_basic_test-your-project.js.map +0 -1
  126. package/doc_build/static/js/async/zh_guide_basic_use-micro-generator.js +0 -2979
  127. package/doc_build/static/js/async/zh_guide_basic_use-micro-generator.js.map +0 -1
  128. package/doc_build/static/js/async/zh_guide_basic_using-storybook.js +0 -4760
  129. package/doc_build/static/js/async/zh_guide_basic_using-storybook.js.map +0 -1
  130. package/doc_build/static/js/async/zh_guide_best-practices_components.js +0 -21100
  131. package/doc_build/static/js/async/zh_guide_best-practices_components.js.map +0 -1
  132. package/doc_build/static/js/async/zh_guide_intro_getting-started.js +0 -2031
  133. package/doc_build/static/js/async/zh_guide_intro_getting-started.js.map +0 -1
  134. package/doc_build/static/js/async/zh_guide_intro_welcome.js +0 -162
  135. package/doc_build/static/js/async/zh_guide_intro_welcome.js.map +0 -1
  136. package/doc_build/static/js/async/zh_guide_intro_why-module-engineering-solution.js +0 -96
  137. package/doc_build/static/js/async/zh_guide_intro_why-module-engineering-solution.js.map +0 -1
  138. package/doc_build/static/js/async/zh_index.js +0 -81
  139. package/doc_build/static/js/async/zh_index.js.map +0 -1
  140. package/doc_build/static/js/async/zh_plugins_guide_getting-started.js +0 -2604
  141. package/doc_build/static/js/async/zh_plugins_guide_getting-started.js.map +0 -1
  142. package/doc_build/static/js/async/zh_plugins_guide_plugin-object.js +0 -4169
  143. package/doc_build/static/js/async/zh_plugins_guide_plugin-object.js.map +0 -1
  144. package/doc_build/static/js/async/zh_plugins_guide_setup-function.js +0 -3815
  145. package/doc_build/static/js/async/zh_plugins_guide_setup-function.js.map +0 -1
  146. package/doc_build/static/js/async/zh_plugins_official-list_overview.js +0 -66
  147. package/doc_build/static/js/async/zh_plugins_official-list_overview.js.map +0 -1
  148. package/doc_build/static/js/builder-runtime.js +0 -1375
  149. package/doc_build/static/js/builder-runtime.js.map +0 -1
  150. package/doc_build/static/js/lib-lodash.js +0 -4907
  151. package/doc_build/static/js/lib-lodash.js.map +0 -1
  152. package/doc_build/static/js/lib-polyfill.js +0 -11847
  153. package/doc_build/static/js/lib-polyfill.js.map +0 -1
  154. package/doc_build/static/js/lib-react.js +0 -39510
  155. package/doc_build/static/js/lib-react.js.map +0 -1
  156. package/doc_build/static/js/main.js +0 -8610
  157. package/doc_build/static/js/main.js.map +0 -1
  158. package/doc_build/static/js/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.js +0 -7328
  159. package/doc_build/static/js/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.js.map +0 -1
  160. package/doc_build/static/search_index.json +0 -1
@@ -1,4760 +0,0 @@
1
- "use strict";
2
- (self["webpackChunk_modern_js_module_tools_docs"] = self["webpackChunk_modern_js_module_tools_docs"] || []).push([["zh_guide_basic_using-storybook"],{
3
-
4
- /***/ "./docs/zh/guide/basic/using-storybook.mdx":
5
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6
-
7
- __webpack_require__.r(__webpack_exports__);
8
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9
- /* harmony export */ "CH": function() { return /* binding */ CH; },
10
- /* harmony export */ "chCodeConfig": function() { return /* binding */ chCodeConfig; },
11
- /* harmony export */ "content": function() { return /* binding */ content; },
12
- /* harmony export */ "frontmatter": function() { return /* binding */ frontmatter; },
13
- /* harmony export */ "title": function() { return /* binding */ title; },
14
- /* harmony export */ "toc": function() { return /* binding */ toc; }
15
- /* harmony export */ });
16
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js");
17
- /* harmony import */ var _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@code-hike+mdx@0.7.4_react@18.2.0/node_modules/@code-hike/mdx/dist/components.esm.mjs");
18
- /*@jsxRuntime automatic @jsxImportSource react*/
19
-
20
-
21
- const CH = {
22
- annotations: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.annotations,
23
- Spotlight: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.Spotlight,
24
- CodeSlot: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.CodeSlot,
25
- Code: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.Code
26
- };
27
- const chCodeConfig = {
28
- "staticMediaQuery": "not screen, (max-width: 768px)",
29
- "theme": {
30
- "name": "nord",
31
- "type": "dark",
32
- "semanticHighlighting": true,
33
- "colors": {
34
- "focusBorder": "#3b4252",
35
- "foreground": "#d8dee9",
36
- "activityBar.background": "#2e3440",
37
- "activityBar.dropBackground": "#3b4252",
38
- "activityBar.foreground": "#d8dee9",
39
- "activityBar.activeBorder": "#88c0d0",
40
- "activityBar.activeBackground": "#3b4252",
41
- "activityBarBadge.background": "#88c0d0",
42
- "activityBarBadge.foreground": "#2e3440",
43
- "badge.foreground": "#2e3440",
44
- "badge.background": "#88c0d0",
45
- "button.background": "#88c0d0ee",
46
- "button.foreground": "#2e3440",
47
- "button.hoverBackground": "#88c0d0",
48
- "button.secondaryBackground": "#434c5e",
49
- "button.secondaryForeground": "#d8dee9",
50
- "button.secondaryHoverBackground": "#4c566a",
51
- "charts.red": "#bf616a",
52
- "charts.blue": "#81a1c1",
53
- "charts.yellow": "#ebcb8b",
54
- "charts.orange": "#d08770",
55
- "charts.green": "#a3be8c",
56
- "charts.purple": "#b48ead",
57
- "charts.foreground": "#d8dee9",
58
- "charts.lines": "#88c0d0",
59
- "debugConsole.infoForeground": "#88c0d0",
60
- "debugConsole.warningForeground": "#ebcb8b",
61
- "debugConsole.errorForeground": "#bf616a",
62
- "debugConsole.sourceForeground": "#616e88",
63
- "debugConsoleInputIcon.foreground": "#81a1c1",
64
- "debugExceptionWidget.background": "#4c566a",
65
- "debugExceptionWidget.border": "#2e3440",
66
- "debugToolBar.background": "#3b4252",
67
- "descriptionForeground": "#d8dee9e6",
68
- "diffEditor.insertedTextBackground": "#81a1c133",
69
- "diffEditor.removedTextBackground": "#bf616a4d",
70
- "dropdown.background": "#3b4252",
71
- "dropdown.border": "#3b4252",
72
- "dropdown.foreground": "#d8dee9",
73
- "editorActiveLineNumber.foreground": "#d8dee9cc",
74
- "editorCursor.foreground": "#d8dee9",
75
- "editorHint.border": "#ebcb8b00",
76
- "editorHint.foreground": "#ebcb8b",
77
- "editorIndentGuide.background": "#434c5eb3",
78
- "editorIndentGuide.activeBackground": "#4c566a",
79
- "editorInlayHint.background": "#434c5e",
80
- "editorInlayHint.foreground": "#d8dee9",
81
- "editorLineNumber.foreground": "#4c566a",
82
- "editorLineNumber.activeForeground": "#d8dee9",
83
- "editorWhitespace.foreground": "#4c566ab3",
84
- "editorWidget.background": "#2e3440",
85
- "editorWidget.border": "#3b4252",
86
- "editor.background": "#2e3440",
87
- "editor.foreground": "#d8dee9",
88
- "editor.hoverHighlightBackground": "#3b4252",
89
- "editor.findMatchBackground": "#88c0d066",
90
- "editor.findMatchHighlightBackground": "#88c0d033",
91
- "editor.findRangeHighlightBackground": "#88c0d033",
92
- "editor.lineHighlightBackground": "#3b4252",
93
- "editor.lineHighlightBorder": "#3b4252",
94
- "editor.inactiveSelectionBackground": "#434c5ecc",
95
- "editor.inlineValuesBackground": "#4c566a",
96
- "editor.inlineValuesForeground": "#eceff4",
97
- "editor.selectionBackground": "#434c5ecc",
98
- "editor.selectionHighlightBackground": "#434c5ecc",
99
- "editor.rangeHighlightBackground": "#434c5e52",
100
- "editor.wordHighlightBackground": "#81a1c166",
101
- "editor.wordHighlightStrongBackground": "#81a1c199",
102
- "editor.stackFrameHighlightBackground": "#5e81ac",
103
- "editor.focusedStackFrameHighlightBackground": "#5e81ac",
104
- "editorError.foreground": "#bf616a",
105
- "editorError.border": "#bf616a00",
106
- "editorWarning.foreground": "#ebcb8b",
107
- "editorWarning.border": "#ebcb8b00",
108
- "editorBracketMatch.background": "#2e344000",
109
- "editorBracketMatch.border": "#88c0d0",
110
- "editorBracketHighlight.foreground1": "#8fbcbb",
111
- "editorBracketHighlight.foreground2": "#88c0d0",
112
- "editorBracketHighlight.foreground3": "#81a1c1",
113
- "editorBracketHighlight.foreground4": "#5e81ac",
114
- "editorBracketHighlight.foreground5": "#8fbcbb",
115
- "editorBracketHighlight.foreground6": "#88c0d0",
116
- "editorBracketHighlight.unexpectedBracket.foreground": "#bf616a",
117
- "editorCodeLens.foreground": "#4c566a",
118
- "editorGroup.background": "#2e3440",
119
- "editorGroup.border": "#3b425201",
120
- "editorGroup.dropBackground": "#3b425299",
121
- "editorGroupHeader.border": "#3b425200",
122
- "editorGroupHeader.noTabsBackground": "#2e3440",
123
- "editorGroupHeader.tabsBackground": "#2e3440",
124
- "editorGroupHeader.tabsBorder": "#3b425200",
125
- "editorGutter.background": "#2e3440",
126
- "editorGutter.modifiedBackground": "#ebcb8b",
127
- "editorGutter.addedBackground": "#a3be8c",
128
- "editorGutter.deletedBackground": "#bf616a",
129
- "editorHoverWidget.background": "#3b4252",
130
- "editorHoverWidget.border": "#3b4252",
131
- "editorLink.activeForeground": "#88c0d0",
132
- "editorMarkerNavigation.background": "#5e81acc0",
133
- "editorMarkerNavigationError.background": "#bf616ac0",
134
- "editorMarkerNavigationWarning.background": "#ebcb8bc0",
135
- "editorOverviewRuler.border": "#3b4252",
136
- "editorOverviewRuler.currentContentForeground": "#3b4252",
137
- "editorOverviewRuler.incomingContentForeground": "#3b4252",
138
- "editorOverviewRuler.findMatchForeground": "#88c0d066",
139
- "editorOverviewRuler.rangeHighlightForeground": "#88c0d066",
140
- "editorOverviewRuler.selectionHighlightForeground": "#88c0d066",
141
- "editorOverviewRuler.wordHighlightForeground": "#88c0d066",
142
- "editorOverviewRuler.wordHighlightStrongForeground": "#88c0d066",
143
- "editorOverviewRuler.modifiedForeground": "#ebcb8b",
144
- "editorOverviewRuler.addedForeground": "#a3be8c",
145
- "editorOverviewRuler.deletedForeground": "#bf616a",
146
- "editorOverviewRuler.errorForeground": "#bf616a",
147
- "editorOverviewRuler.warningForeground": "#ebcb8b",
148
- "editorOverviewRuler.infoForeground": "#81a1c1",
149
- "editorRuler.foreground": "#434c5e",
150
- "editorSuggestWidget.background": "#2e3440",
151
- "editorSuggestWidget.border": "#3b4252",
152
- "editorSuggestWidget.foreground": "#d8dee9",
153
- "editorSuggestWidget.focusHighlightForeground": "#88c0d0",
154
- "editorSuggestWidget.highlightForeground": "#88c0d0",
155
- "editorSuggestWidget.selectedBackground": "#434c5e",
156
- "editorSuggestWidget.selectedForeground": "#d8dee9",
157
- "extensionButton.prominentForeground": "#d8dee9",
158
- "extensionButton.prominentBackground": "#434c5e",
159
- "extensionButton.prominentHoverBackground": "#4c566a",
160
- "errorForeground": "#bf616a",
161
- "gitDecoration.modifiedResourceForeground": "#ebcb8b",
162
- "gitDecoration.deletedResourceForeground": "#bf616a",
163
- "gitDecoration.untrackedResourceForeground": "#a3be8c",
164
- "gitDecoration.ignoredResourceForeground": "#d8dee966",
165
- "gitDecoration.conflictingResourceForeground": "#5e81ac",
166
- "gitDecoration.submoduleResourceForeground": "#8fbcbb",
167
- "gitDecoration.stageDeletedResourceForeground": "#bf616a",
168
- "gitDecoration.stageModifiedResourceForeground": "#ebcb8b",
169
- "input.background": "#3b4252",
170
- "input.foreground": "#d8dee9",
171
- "input.placeholderForeground": "#d8dee999",
172
- "input.border": "#3b4252",
173
- "inputOption.activeBackground": "#5e81ac",
174
- "inputOption.activeBorder": "#5e81ac",
175
- "inputOption.activeForeground": "#eceff4",
176
- "inputValidation.errorBackground": "#bf616a",
177
- "inputValidation.errorBorder": "#bf616a",
178
- "inputValidation.infoBackground": "#81a1c1",
179
- "inputValidation.infoBorder": "#81a1c1",
180
- "inputValidation.warningBackground": "#d08770",
181
- "inputValidation.warningBorder": "#d08770",
182
- "keybindingLabel.background": "#4c566a",
183
- "keybindingLabel.border": "#4c566a",
184
- "keybindingLabel.bottomBorder": "#4c566a",
185
- "keybindingLabel.foreground": "#d8dee9",
186
- "list.activeSelectionBackground": "#88c0d0",
187
- "list.activeSelectionForeground": "#2e3440",
188
- "list.inactiveSelectionBackground": "#434c5e",
189
- "list.inactiveSelectionForeground": "#d8dee9",
190
- "list.inactiveFocusBackground": "#434c5ecc",
191
- "list.hoverForeground": "#eceff4",
192
- "list.focusForeground": "#d8dee9",
193
- "list.focusBackground": "#88c0d099",
194
- "list.focusHighlightForeground": "#eceff4",
195
- "list.hoverBackground": "#3b4252",
196
- "list.dropBackground": "#88c0d099",
197
- "list.highlightForeground": "#88c0d0",
198
- "list.errorForeground": "#bf616a",
199
- "list.warningForeground": "#ebcb8b",
200
- "merge.currentHeaderBackground": "#81a1c166",
201
- "merge.currentContentBackground": "#81a1c14d",
202
- "merge.incomingHeaderBackground": "#8fbcbb66",
203
- "merge.incomingContentBackground": "#8fbcbb4d",
204
- "merge.border": "#3b425200",
205
- "minimap.background": "#2e3440",
206
- "minimap.errorHighlight": "#bf616acc",
207
- "minimap.findMatchHighlight": "#88c0d0",
208
- "minimap.selectionHighlight": "#88c0d0cc",
209
- "minimap.warningHighlight": "#ebcb8bcc",
210
- "minimapGutter.addedBackground": "#a3be8c",
211
- "minimapGutter.deletedBackground": "#bf616a",
212
- "minimapGutter.modifiedBackground": "#ebcb8b",
213
- "minimapSlider.activeBackground": "#434c5eaa",
214
- "minimapSlider.background": "#434c5e99",
215
- "minimapSlider.hoverBackground": "#434c5eaa",
216
- "notification.background": "#3b4252",
217
- "notification.buttonBackground": "#434c5e",
218
- "notification.buttonForeground": "#d8dee9",
219
- "notification.buttonHoverBackground": "#4c566a",
220
- "notification.errorBackground": "#bf616a",
221
- "notification.errorForeground": "#2e3440",
222
- "notification.foreground": "#d8dee9",
223
- "notification.infoBackground": "#88c0d0",
224
- "notification.infoForeground": "#2e3440",
225
- "notification.warningBackground": "#ebcb8b",
226
- "notification.warningForeground": "#2e3440",
227
- "notificationCenter.border": "#3b425200",
228
- "notificationCenterHeader.background": "#2e3440",
229
- "notificationCenterHeader.foreground": "#88c0d0",
230
- "notificationLink.foreground": "#88c0d0",
231
- "notifications.background": "#3b4252",
232
- "notifications.border": "#2e3440",
233
- "notifications.foreground": "#d8dee9",
234
- "notificationToast.border": "#3b425200",
235
- "panel.background": "#2e3440",
236
- "panel.border": "#3b4252",
237
- "panelTitle.activeBorder": "#88c0d000",
238
- "panelTitle.activeForeground": "#88c0d0",
239
- "panelTitle.inactiveForeground": "#d8dee9",
240
- "peekView.border": "#4c566a",
241
- "peekViewEditor.background": "#2e3440",
242
- "peekViewEditorGutter.background": "#2e3440",
243
- "peekViewEditor.matchHighlightBackground": "#88c0d04d",
244
- "peekViewResult.background": "#2e3440",
245
- "peekViewResult.fileForeground": "#88c0d0",
246
- "peekViewResult.lineForeground": "#d8dee966",
247
- "peekViewResult.matchHighlightBackground": "#88c0d0cc",
248
- "peekViewResult.selectionBackground": "#434c5e",
249
- "peekViewResult.selectionForeground": "#d8dee9",
250
- "peekViewTitle.background": "#3b4252",
251
- "peekViewTitleDescription.foreground": "#d8dee9",
252
- "peekViewTitleLabel.foreground": "#88c0d0",
253
- "pickerGroup.border": "#3b4252",
254
- "pickerGroup.foreground": "#88c0d0",
255
- "progressBar.background": "#88c0d0",
256
- "quickInputList.focusBackground": "#88c0d0",
257
- "quickInputList.focusForeground": "#2e3440",
258
- "sash.hoverBorder": "#88c0d0",
259
- "scrollbar.shadow": "#00000066",
260
- "scrollbarSlider.activeBackground": "#434c5eaa",
261
- "scrollbarSlider.background": "#434c5e99",
262
- "scrollbarSlider.hoverBackground": "#434c5eaa",
263
- "selection.background": "#88c0d099",
264
- "sideBar.background": "#2e3440",
265
- "sideBar.foreground": "#d8dee9",
266
- "sideBar.border": "#3b4252",
267
- "sideBarSectionHeader.background": "#3b4252",
268
- "sideBarSectionHeader.foreground": "#d8dee9",
269
- "sideBarTitle.foreground": "#d8dee9",
270
- "statusBar.background": "#3b4252",
271
- "statusBar.debuggingBackground": "#5e81ac",
272
- "statusBar.debuggingForeground": "#d8dee9",
273
- "statusBar.noFolderForeground": "#d8dee9",
274
- "statusBar.noFolderBackground": "#3b4252",
275
- "statusBar.foreground": "#d8dee9",
276
- "statusBarItem.activeBackground": "#4c566a",
277
- "statusBarItem.hoverBackground": "#434c5e",
278
- "statusBarItem.prominentBackground": "#3b4252",
279
- "statusBarItem.prominentHoverBackground": "#434c5e",
280
- "statusBarItem.errorBackground": "#3b4252",
281
- "statusBarItem.errorForeground": "#bf616a",
282
- "statusBarItem.warningBackground": "#ebcb8b",
283
- "statusBarItem.warningForeground": "#2e3440",
284
- "statusBar.border": "#3b425200",
285
- "tab.activeBackground": "#3b4252",
286
- "tab.activeForeground": "#d8dee9",
287
- "tab.border": "#3b425200",
288
- "tab.activeBorder": "#88c0d000",
289
- "tab.unfocusedActiveBorder": "#88c0d000",
290
- "tab.inactiveBackground": "#2e3440",
291
- "tab.inactiveForeground": "#d8dee966",
292
- "tab.unfocusedActiveForeground": "#d8dee999",
293
- "tab.unfocusedInactiveForeground": "#d8dee966",
294
- "tab.hoverBackground": "#3b4252cc",
295
- "tab.unfocusedHoverBackground": "#3b4252b3",
296
- "tab.hoverBorder": "#88c0d000",
297
- "tab.unfocusedHoverBorder": "#88c0d000",
298
- "tab.activeBorderTop": "#88c0d000",
299
- "tab.unfocusedActiveBorderTop": "#88c0d000",
300
- "tab.lastPinnedBorder": "#4c566a",
301
- "terminal.background": "#2e3440",
302
- "terminal.foreground": "#d8dee9",
303
- "terminal.ansiBlack": "#3b4252",
304
- "terminal.ansiRed": "#bf616a",
305
- "terminal.ansiGreen": "#a3be8c",
306
- "terminal.ansiYellow": "#ebcb8b",
307
- "terminal.ansiBlue": "#81a1c1",
308
- "terminal.ansiMagenta": "#b48ead",
309
- "terminal.ansiCyan": "#88c0d0",
310
- "terminal.ansiWhite": "#e5e9f0",
311
- "terminal.ansiBrightBlack": "#4c566a",
312
- "terminal.ansiBrightRed": "#bf616a",
313
- "terminal.ansiBrightGreen": "#a3be8c",
314
- "terminal.ansiBrightYellow": "#ebcb8b",
315
- "terminal.ansiBrightBlue": "#81a1c1",
316
- "terminal.ansiBrightMagenta": "#b48ead",
317
- "terminal.ansiBrightCyan": "#8fbcbb",
318
- "terminal.ansiBrightWhite": "#eceff4",
319
- "terminal.tab.activeBorder": "#88c0d0",
320
- "textBlockQuote.background": "#3b4252",
321
- "textBlockQuote.border": "#81a1c1",
322
- "textCodeBlock.background": "#4c566a",
323
- "textLink.activeForeground": "#88c0d0",
324
- "textLink.foreground": "#88c0d0",
325
- "textPreformat.foreground": "#8fbcbb",
326
- "textSeparator.foreground": "#eceff4",
327
- "titleBar.activeBackground": "#2e3440",
328
- "titleBar.activeForeground": "#d8dee9",
329
- "titleBar.border": "#2e344000",
330
- "titleBar.inactiveBackground": "#2e3440",
331
- "titleBar.inactiveForeground": "#d8dee966",
332
- "tree.indentGuidesStroke": "#616e88",
333
- "walkThrough.embeddedEditorBackground": "#2e3440",
334
- "welcomePage.buttonBackground": "#434c5e",
335
- "welcomePage.buttonHoverBackground": "#4c566a",
336
- "widget.shadow": "#00000066"
337
- },
338
- "tokenColors": [{
339
- "settings": {
340
- "foreground": "#d8dee9ff",
341
- "background": "#2e3440ff"
342
- }
343
- }, {
344
- "scope": "emphasis",
345
- "settings": {
346
- "fontStyle": "italic"
347
- }
348
- }, {
349
- "scope": "strong",
350
- "settings": {
351
- "fontStyle": "bold"
352
- }
353
- }, {
354
- "name": "Comment",
355
- "scope": "comment",
356
- "settings": {
357
- "foreground": "#616E88"
358
- }
359
- }, {
360
- "name": "Constant Character",
361
- "scope": "constant.character",
362
- "settings": {
363
- "foreground": "#EBCB8B"
364
- }
365
- }, {
366
- "name": "Constant Character Escape",
367
- "scope": "constant.character.escape",
368
- "settings": {
369
- "foreground": "#EBCB8B"
370
- }
371
- }, {
372
- "name": "Constant Language",
373
- "scope": "constant.language",
374
- "settings": {
375
- "foreground": "#81A1C1"
376
- }
377
- }, {
378
- "name": "Constant Numeric",
379
- "scope": "constant.numeric",
380
- "settings": {
381
- "foreground": "#B48EAD"
382
- }
383
- }, {
384
- "name": "Constant Regexp",
385
- "scope": "constant.regexp",
386
- "settings": {
387
- "foreground": "#EBCB8B"
388
- }
389
- }, {
390
- "name": "Entity Name Class/Type",
391
- "scope": ["entity.name.class", "entity.name.type.class"],
392
- "settings": {
393
- "foreground": "#8FBCBB"
394
- }
395
- }, {
396
- "name": "Entity Name Function",
397
- "scope": "entity.name.function",
398
- "settings": {
399
- "foreground": "#88C0D0"
400
- }
401
- }, {
402
- "name": "Entity Name Tag",
403
- "scope": "entity.name.tag",
404
- "settings": {
405
- "foreground": "#81A1C1"
406
- }
407
- }, {
408
- "name": "Entity Other Attribute Name",
409
- "scope": "entity.other.attribute-name",
410
- "settings": {
411
- "foreground": "#8FBCBB"
412
- }
413
- }, {
414
- "name": "Entity Other Inherited Class",
415
- "scope": "entity.other.inherited-class",
416
- "settings": {
417
- "fontStyle": "bold",
418
- "foreground": "#8FBCBB"
419
- }
420
- }, {
421
- "name": "Invalid Deprecated",
422
- "scope": "invalid.deprecated",
423
- "settings": {
424
- "foreground": "#D8DEE9",
425
- "background": "#EBCB8B"
426
- }
427
- }, {
428
- "name": "Invalid Illegal",
429
- "scope": "invalid.illegal",
430
- "settings": {
431
- "foreground": "#D8DEE9",
432
- "background": "#BF616A"
433
- }
434
- }, {
435
- "name": "Keyword",
436
- "scope": "keyword",
437
- "settings": {
438
- "foreground": "#81A1C1"
439
- }
440
- }, {
441
- "name": "Keyword Operator",
442
- "scope": "keyword.operator",
443
- "settings": {
444
- "foreground": "#81A1C1"
445
- }
446
- }, {
447
- "name": "Keyword Other New",
448
- "scope": "keyword.other.new",
449
- "settings": {
450
- "foreground": "#81A1C1"
451
- }
452
- }, {
453
- "name": "Markup Bold",
454
- "scope": "markup.bold",
455
- "settings": {
456
- "fontStyle": "bold"
457
- }
458
- }, {
459
- "name": "Markup Changed",
460
- "scope": "markup.changed",
461
- "settings": {
462
- "foreground": "#EBCB8B"
463
- }
464
- }, {
465
- "name": "Markup Deleted",
466
- "scope": "markup.deleted",
467
- "settings": {
468
- "foreground": "#BF616A"
469
- }
470
- }, {
471
- "name": "Markup Inserted",
472
- "scope": "markup.inserted",
473
- "settings": {
474
- "foreground": "#A3BE8C"
475
- }
476
- }, {
477
- "name": "Meta Preprocessor",
478
- "scope": "meta.preprocessor",
479
- "settings": {
480
- "foreground": "#5E81AC"
481
- }
482
- }, {
483
- "name": "Punctuation",
484
- "scope": "punctuation",
485
- "settings": {
486
- "foreground": "#ECEFF4"
487
- }
488
- }, {
489
- "name": "Punctuation Definition Parameters",
490
- "scope": ["punctuation.definition.method-parameters", "punctuation.definition.function-parameters", "punctuation.definition.parameters"],
491
- "settings": {
492
- "foreground": "#ECEFF4"
493
- }
494
- }, {
495
- "name": "Punctuation Definition Tag",
496
- "scope": "punctuation.definition.tag",
497
- "settings": {
498
- "foreground": "#81A1C1"
499
- }
500
- }, {
501
- "name": "Punctuation Definition Comment",
502
- "scope": ["punctuation.definition.comment", "punctuation.end.definition.comment", "punctuation.start.definition.comment"],
503
- "settings": {
504
- "foreground": "#616E88"
505
- }
506
- }, {
507
- "name": "Punctuation Section",
508
- "scope": "punctuation.section",
509
- "settings": {
510
- "foreground": "#ECEFF4"
511
- }
512
- }, {
513
- "name": "Punctuation Section Embedded",
514
- "scope": ["punctuation.section.embedded.begin", "punctuation.section.embedded.end"],
515
- "settings": {
516
- "foreground": "#81A1C1"
517
- }
518
- }, {
519
- "name": "Punctuation Terminator",
520
- "scope": "punctuation.terminator",
521
- "settings": {
522
- "foreground": "#81A1C1"
523
- }
524
- }, {
525
- "name": "Punctuation Variable",
526
- "scope": "punctuation.definition.variable",
527
- "settings": {
528
- "foreground": "#81A1C1"
529
- }
530
- }, {
531
- "name": "Storage",
532
- "scope": "storage",
533
- "settings": {
534
- "foreground": "#81A1C1"
535
- }
536
- }, {
537
- "name": "String",
538
- "scope": "string",
539
- "settings": {
540
- "foreground": "#A3BE8C"
541
- }
542
- }, {
543
- "name": "String Regexp",
544
- "scope": "string.regexp",
545
- "settings": {
546
- "foreground": "#EBCB8B"
547
- }
548
- }, {
549
- "name": "Support Class",
550
- "scope": "support.class",
551
- "settings": {
552
- "foreground": "#8FBCBB"
553
- }
554
- }, {
555
- "name": "Support Constant",
556
- "scope": "support.constant",
557
- "settings": {
558
- "foreground": "#81A1C1"
559
- }
560
- }, {
561
- "name": "Support Function",
562
- "scope": "support.function",
563
- "settings": {
564
- "foreground": "#88C0D0"
565
- }
566
- }, {
567
- "name": "Support Function Construct",
568
- "scope": "support.function.construct",
569
- "settings": {
570
- "foreground": "#81A1C1"
571
- }
572
- }, {
573
- "name": "Support Type",
574
- "scope": "support.type",
575
- "settings": {
576
- "foreground": "#8FBCBB"
577
- }
578
- }, {
579
- "name": "Support Type Exception",
580
- "scope": "support.type.exception",
581
- "settings": {
582
- "foreground": "#8FBCBB"
583
- }
584
- }, {
585
- "name": "Token Debug",
586
- "scope": "token.debug-token",
587
- "settings": {
588
- "foreground": "#b48ead"
589
- }
590
- }, {
591
- "name": "Token Error",
592
- "scope": "token.error-token",
593
- "settings": {
594
- "foreground": "#bf616a"
595
- }
596
- }, {
597
- "name": "Token Info",
598
- "scope": "token.info-token",
599
- "settings": {
600
- "foreground": "#88c0d0"
601
- }
602
- }, {
603
- "name": "Token Warning",
604
- "scope": "token.warn-token",
605
- "settings": {
606
- "foreground": "#ebcb8b"
607
- }
608
- }, {
609
- "name": "Variable",
610
- "scope": "variable.other",
611
- "settings": {
612
- "foreground": "#D8DEE9"
613
- }
614
- }, {
615
- "name": "Variable Language",
616
- "scope": "variable.language",
617
- "settings": {
618
- "foreground": "#81A1C1"
619
- }
620
- }, {
621
- "name": "Variable Parameter",
622
- "scope": "variable.parameter",
623
- "settings": {
624
- "foreground": "#D8DEE9"
625
- }
626
- }, {
627
- "name": "[C/CPP] Punctuation Separator Pointer-Access",
628
- "scope": "punctuation.separator.pointer-access.c",
629
- "settings": {
630
- "foreground": "#81A1C1"
631
- }
632
- }, {
633
- "name": "[C/CPP] Meta Preprocessor Include",
634
- "scope": ["source.c meta.preprocessor.include", "source.c string.quoted.other.lt-gt.include"],
635
- "settings": {
636
- "foreground": "#8FBCBB"
637
- }
638
- }, {
639
- "name": "[C/CPP] Conditional Directive",
640
- "scope": ["source.cpp keyword.control.directive.conditional", "source.cpp punctuation.definition.directive", "source.c keyword.control.directive.conditional", "source.c punctuation.definition.directive"],
641
- "settings": {
642
- "foreground": "#5E81AC",
643
- "fontStyle": "bold"
644
- }
645
- }, {
646
- "name": "[CSS] Constant Other Color RGB Value",
647
- "scope": "source.css constant.other.color.rgb-value",
648
- "settings": {
649
- "foreground": "#B48EAD"
650
- }
651
- }, {
652
- "name": "[CSS](Function) Meta Property-Value",
653
- "scope": "source.css meta.property-value",
654
- "settings": {
655
- "foreground": "#88C0D0"
656
- }
657
- }, {
658
- "name": "[CSS] Media Queries",
659
- "scope": ["source.css keyword.control.at-rule.media", "source.css keyword.control.at-rule.media punctuation.definition.keyword"],
660
- "settings": {
661
- "foreground": "#D08770"
662
- }
663
- }, {
664
- "name": "[CSS] Punctuation Definition Keyword",
665
- "scope": "source.css punctuation.definition.keyword",
666
- "settings": {
667
- "foreground": "#81A1C1"
668
- }
669
- }, {
670
- "name": "[CSS] Support Type Property Name",
671
- "scope": "source.css support.type.property-name",
672
- "settings": {
673
- "foreground": "#D8DEE9"
674
- }
675
- }, {
676
- "name": "[diff] Meta Range Context",
677
- "scope": "source.diff meta.diff.range.context",
678
- "settings": {
679
- "foreground": "#8FBCBB"
680
- }
681
- }, {
682
- "name": "[diff] Meta Header From-File",
683
- "scope": "source.diff meta.diff.header.from-file",
684
- "settings": {
685
- "foreground": "#8FBCBB"
686
- }
687
- }, {
688
- "name": "[diff] Punctuation Definition From-File",
689
- "scope": "source.diff punctuation.definition.from-file",
690
- "settings": {
691
- "foreground": "#8FBCBB"
692
- }
693
- }, {
694
- "name": "[diff] Punctuation Definition Range",
695
- "scope": "source.diff punctuation.definition.range",
696
- "settings": {
697
- "foreground": "#8FBCBB"
698
- }
699
- }, {
700
- "name": "[diff] Punctuation Definition Separator",
701
- "scope": "source.diff punctuation.definition.separator",
702
- "settings": {
703
- "foreground": "#81A1C1"
704
- }
705
- }, {
706
- "name": "[Elixir](JakeBecker.elixir-ls) module names",
707
- "scope": "entity.name.type.module.elixir",
708
- "settings": {
709
- "foreground": "#8FBCBB"
710
- }
711
- }, {
712
- "name": "[Elixir](JakeBecker.elixir-ls) module attributes",
713
- "scope": "variable.other.readwrite.module.elixir",
714
- "settings": {
715
- "foreground": "#D8DEE9",
716
- "fontStyle": "bold"
717
- }
718
- }, {
719
- "name": "[Elixir](JakeBecker.elixir-ls) atoms",
720
- "scope": "constant.other.symbol.elixir",
721
- "settings": {
722
- "foreground": "#D8DEE9",
723
- "fontStyle": "bold"
724
- }
725
- }, {
726
- "name": "[Elixir](JakeBecker.elixir-ls) modules",
727
- "scope": "variable.other.constant.elixir",
728
- "settings": {
729
- "foreground": "#8FBCBB"
730
- }
731
- }, {
732
- "name": "[Go] String Format Placeholder",
733
- "scope": "source.go constant.other.placeholder.go",
734
- "settings": {
735
- "foreground": "#EBCB8B"
736
- }
737
- }, {
738
- "name": "[Java](JavaDoc) Comment Block Documentation HTML Entities",
739
- "scope": "source.java comment.block.documentation.javadoc punctuation.definition.entity.html",
740
- "settings": {
741
- "foreground": "#81A1C1"
742
- }
743
- }, {
744
- "name": "[Java](JavaDoc) Constant Other",
745
- "scope": "source.java constant.other",
746
- "settings": {
747
- "foreground": "#D8DEE9"
748
- }
749
- }, {
750
- "name": "[Java](JavaDoc) Keyword Other Documentation",
751
- "scope": "source.java keyword.other.documentation",
752
- "settings": {
753
- "foreground": "#8FBCBB"
754
- }
755
- }, {
756
- "name": "[Java](JavaDoc) Keyword Other Documentation Author",
757
- "scope": "source.java keyword.other.documentation.author.javadoc",
758
- "settings": {
759
- "foreground": "#8FBCBB"
760
- }
761
- }, {
762
- "name": "[Java](JavaDoc) Keyword Other Documentation Directive/Custom",
763
- "scope": ["source.java keyword.other.documentation.directive", "source.java keyword.other.documentation.custom"],
764
- "settings": {
765
- "foreground": "#8FBCBB"
766
- }
767
- }, {
768
- "name": "[Java](JavaDoc) Keyword Other Documentation See",
769
- "scope": "source.java keyword.other.documentation.see.javadoc",
770
- "settings": {
771
- "foreground": "#8FBCBB"
772
- }
773
- }, {
774
- "name": "[Java] Meta Method-Call",
775
- "scope": "source.java meta.method-call meta.method",
776
- "settings": {
777
- "foreground": "#88C0D0"
778
- }
779
- }, {
780
- "name": "[Java](JavaDoc) Meta Tag Template Link",
781
- "scope": ["source.java meta.tag.template.link.javadoc", "source.java string.other.link.title.javadoc"],
782
- "settings": {
783
- "foreground": "#8FBCBB"
784
- }
785
- }, {
786
- "name": "[Java](JavaDoc) Meta Tag Template Value",
787
- "scope": "source.java meta.tag.template.value.javadoc",
788
- "settings": {
789
- "foreground": "#88C0D0"
790
- }
791
- }, {
792
- "name": "[Java](JavaDoc) Punctuation Definition Keyword",
793
- "scope": "source.java punctuation.definition.keyword.javadoc",
794
- "settings": {
795
- "foreground": "#8FBCBB"
796
- }
797
- }, {
798
- "name": "[Java](JavaDoc) Punctuation Definition Tag",
799
- "scope": ["source.java punctuation.definition.tag.begin.javadoc", "source.java punctuation.definition.tag.end.javadoc"],
800
- "settings": {
801
- "foreground": "#616E88"
802
- }
803
- }, {
804
- "name": "[Java] Storage Modifier Import",
805
- "scope": "source.java storage.modifier.import",
806
- "settings": {
807
- "foreground": "#8FBCBB"
808
- }
809
- }, {
810
- "name": "[Java] Storage Modifier Package",
811
- "scope": "source.java storage.modifier.package",
812
- "settings": {
813
- "foreground": "#8FBCBB"
814
- }
815
- }, {
816
- "name": "[Java] Storage Type",
817
- "scope": "source.java storage.type",
818
- "settings": {
819
- "foreground": "#8FBCBB"
820
- }
821
- }, {
822
- "name": "[Java] Storage Type Annotation",
823
- "scope": "source.java storage.type.annotation",
824
- "settings": {
825
- "foreground": "#D08770"
826
- }
827
- }, {
828
- "name": "[Java] Storage Type Generic",
829
- "scope": "source.java storage.type.generic",
830
- "settings": {
831
- "foreground": "#8FBCBB"
832
- }
833
- }, {
834
- "name": "[Java] Storage Type Primitive",
835
- "scope": "source.java storage.type.primitive",
836
- "settings": {
837
- "foreground": "#81A1C1"
838
- }
839
- }, {
840
- "name": "[JavaScript] Decorator",
841
- "scope": ["source.js punctuation.decorator", "source.js meta.decorator variable.other.readwrite", "source.js meta.decorator entity.name.function"],
842
- "settings": {
843
- "foreground": "#D08770"
844
- }
845
- }, {
846
- "name": "[JavaScript] Meta Object-Literal Key",
847
- "scope": "source.js meta.object-literal.key",
848
- "settings": {
849
- "foreground": "#88C0D0"
850
- }
851
- }, {
852
- "name": "[JavaScript](JSDoc) Storage Type Class",
853
- "scope": "source.js storage.type.class.jsdoc",
854
- "settings": {
855
- "foreground": "#8FBCBB"
856
- }
857
- }, {
858
- "name": "[JavaScript] String Template Literals Punctuation",
859
- "scope": ["source.js string.quoted.template punctuation.quasi.element.begin", "source.js string.quoted.template punctuation.quasi.element.end", "source.js string.template punctuation.definition.template-expression"],
860
- "settings": {
861
- "foreground": "#81A1C1"
862
- }
863
- }, {
864
- "name": "[JavaScript] Interpolated String Template Punctuation Functions",
865
- "scope": "source.js string.quoted.template meta.method-call.with-arguments",
866
- "settings": {
867
- "foreground": "#ECEFF4"
868
- }
869
- }, {
870
- "name": "[JavaScript] String Template Literal Variable",
871
- "scope": ["source.js string.template meta.template.expression support.variable.property", "source.js string.template meta.template.expression variable.other.object"],
872
- "settings": {
873
- "foreground": "#D8DEE9"
874
- }
875
- }, {
876
- "name": "[JavaScript] Support Type Primitive",
877
- "scope": "source.js support.type.primitive",
878
- "settings": {
879
- "foreground": "#81A1C1"
880
- }
881
- }, {
882
- "name": "[JavaScript] Variable Other Object",
883
- "scope": "source.js variable.other.object",
884
- "settings": {
885
- "foreground": "#D8DEE9"
886
- }
887
- }, {
888
- "name": "[JavaScript] Variable Other Read-Write Alias",
889
- "scope": "source.js variable.other.readwrite.alias",
890
- "settings": {
891
- "foreground": "#8FBCBB"
892
- }
893
- }, {
894
- "name": "[JavaScript] Parentheses in Template Strings",
895
- "scope": ["source.js meta.embedded.line meta.brace.square", "source.js meta.embedded.line meta.brace.round", "source.js string.quoted.template meta.brace.square", "source.js string.quoted.template meta.brace.round"],
896
- "settings": {
897
- "foreground": "#ECEFF4"
898
- }
899
- }, {
900
- "name": "[HTML] Constant Character Entity",
901
- "scope": "text.html.basic constant.character.entity.html",
902
- "settings": {
903
- "foreground": "#EBCB8B"
904
- }
905
- }, {
906
- "name": "[HTML] Constant Other Inline-Data",
907
- "scope": "text.html.basic constant.other.inline-data",
908
- "settings": {
909
- "foreground": "#D08770",
910
- "fontStyle": "italic"
911
- }
912
- }, {
913
- "name": "[HTML] Meta Tag SGML Doctype",
914
- "scope": "text.html.basic meta.tag.sgml.doctype",
915
- "settings": {
916
- "foreground": "#5E81AC"
917
- }
918
- }, {
919
- "name": "[HTML] Punctuation Definition Entity",
920
- "scope": "text.html.basic punctuation.definition.entity",
921
- "settings": {
922
- "foreground": "#81A1C1"
923
- }
924
- }, {
925
- "name": "[INI] Entity Name Section Group-Title",
926
- "scope": "source.properties entity.name.section.group-title.ini",
927
- "settings": {
928
- "foreground": "#88C0D0"
929
- }
930
- }, {
931
- "name": "[INI] Punctuation Separator Key-Value",
932
- "scope": "source.properties punctuation.separator.key-value.ini",
933
- "settings": {
934
- "foreground": "#81A1C1"
935
- }
936
- }, {
937
- "name": "[Markdown] Markup Fenced Code Block",
938
- "scope": ["text.html.markdown markup.fenced_code.block", "text.html.markdown markup.fenced_code.block punctuation.definition"],
939
- "settings": {
940
- "foreground": "#8FBCBB"
941
- }
942
- }, {
943
- "name": "[Markdown] Markup Heading",
944
- "scope": "markup.heading",
945
- "settings": {
946
- "foreground": "#88C0D0"
947
- }
948
- }, {
949
- "name": "[Markdown] Markup Inline",
950
- "scope": ["text.html.markdown markup.inline.raw", "text.html.markdown markup.inline.raw punctuation.definition.raw"],
951
- "settings": {
952
- "foreground": "#8FBCBB"
953
- }
954
- }, {
955
- "name": "[Markdown] Markup Italic",
956
- "scope": "text.html.markdown markup.italic",
957
- "settings": {
958
- "fontStyle": "italic"
959
- }
960
- }, {
961
- "name": "[Markdown] Markup Link",
962
- "scope": "text.html.markdown markup.underline.link",
963
- "settings": {
964
- "fontStyle": "underline"
965
- }
966
- }, {
967
- "name": "[Markdown] Markup List Numbered/Unnumbered",
968
- "scope": "text.html.markdown beginning.punctuation.definition.list",
969
- "settings": {
970
- "foreground": "#81A1C1"
971
- }
972
- }, {
973
- "name": "[Markdown] Markup Quote Punctuation Definition",
974
- "scope": "text.html.markdown beginning.punctuation.definition.quote",
975
- "settings": {
976
- "foreground": "#8FBCBB"
977
- }
978
- }, {
979
- "name": "[Markdown] Markup Quote Punctuation Definition",
980
- "scope": "text.html.markdown markup.quote",
981
- "settings": {
982
- "foreground": "#616E88"
983
- }
984
- }, {
985
- "name": "[Markdown] Markup Math Constant",
986
- "scope": "text.html.markdown constant.character.math.tex",
987
- "settings": {
988
- "foreground": "#81A1C1"
989
- }
990
- }, {
991
- "name": "[Markdown] Markup Math Definition Marker",
992
- "scope": ["text.html.markdown punctuation.definition.math.begin", "text.html.markdown punctuation.definition.math.end"],
993
- "settings": {
994
- "foreground": "#5E81AC"
995
- }
996
- }, {
997
- "name": "[Markdown] Markup Math Function Definition Marker",
998
- "scope": "text.html.markdown punctuation.definition.function.math.tex",
999
- "settings": {
1000
- "foreground": "#88C0D0"
1001
- }
1002
- }, {
1003
- "name": "[Markdown] Markup Math Operator",
1004
- "scope": "text.html.markdown punctuation.math.operator.latex",
1005
- "settings": {
1006
- "foreground": "#81A1C1"
1007
- }
1008
- }, {
1009
- "name": "[Markdown] Punctuation Definition Heading",
1010
- "scope": "text.html.markdown punctuation.definition.heading",
1011
- "settings": {
1012
- "foreground": "#81A1C1"
1013
- }
1014
- }, {
1015
- "name": "[Markdown] Punctuation Definition Constant/String",
1016
- "scope": ["text.html.markdown punctuation.definition.constant", "text.html.markdown punctuation.definition.string"],
1017
- "settings": {
1018
- "foreground": "#81A1C1"
1019
- }
1020
- }, {
1021
- "name": "[Markdown] String Other Link Description/Title",
1022
- "scope": ["text.html.markdown constant.other.reference.link", "text.html.markdown string.other.link.description", "text.html.markdown string.other.link.title"],
1023
- "settings": {
1024
- "foreground": "#88C0D0"
1025
- }
1026
- }, {
1027
- "name": "[Perl] Perl Sigils",
1028
- "scope": "source.perl punctuation.definition.variable",
1029
- "settings": {
1030
- "foreground": "#D8DEE9"
1031
- }
1032
- }, {
1033
- "name": "[PHP] Meta Function-Call Object",
1034
- "scope": ["source.php meta.function-call", "source.php meta.function-call.object"],
1035
- "settings": {
1036
- "foreground": "#88C0D0"
1037
- }
1038
- }, {
1039
- "name": "[Python] Decorator",
1040
- "scope": ["source.python entity.name.function.decorator", "source.python meta.function.decorator support.type"],
1041
- "settings": {
1042
- "foreground": "#D08770"
1043
- }
1044
- }, {
1045
- "name": "[Python] Function Call",
1046
- "scope": "source.python meta.function-call.generic",
1047
- "settings": {
1048
- "foreground": "#88C0D0"
1049
- }
1050
- }, {
1051
- "name": "[Python] Support Type",
1052
- "scope": "source.python support.type",
1053
- "settings": {
1054
- "foreground": "#88C0D0"
1055
- }
1056
- }, {
1057
- "name": "[Python] Function Parameter",
1058
- "scope": ["source.python variable.parameter.function.language"],
1059
- "settings": {
1060
- "foreground": "#D8DEE9"
1061
- }
1062
- }, {
1063
- "name": "[Python] Function Parameter Special",
1064
- "scope": ["source.python meta.function.parameters variable.parameter.function.language.special.self"],
1065
- "settings": {
1066
- "foreground": "#81A1C1"
1067
- }
1068
- }, {
1069
- "name": "[Rust] Entity types",
1070
- "scope": "source.rust entity.name.type",
1071
- "settings": {
1072
- "foreground": "#8FBCBB"
1073
- }
1074
- }, {
1075
- "name": "[Rust] Macro",
1076
- "scope": "source.rust meta.macro entity.name.function",
1077
- "settings": {
1078
- "fontStyle": "bold",
1079
- "foreground": "#88C0D0"
1080
- }
1081
- }, {
1082
- "name": "[Rust] Attributes",
1083
- "scope": ["source.rust meta.attribute", "source.rust meta.attribute punctuation", "source.rust meta.attribute keyword.operator"],
1084
- "settings": {
1085
- "foreground": "#5E81AC"
1086
- }
1087
- }, {
1088
- "name": "[Rust] Traits",
1089
- "scope": "source.rust entity.name.type.trait",
1090
- "settings": {
1091
- "fontStyle": "bold"
1092
- }
1093
- }, {
1094
- "name": "[Rust] Interpolation Bracket Curly",
1095
- "scope": "source.rust punctuation.definition.interpolation",
1096
- "settings": {
1097
- "foreground": "#EBCB8B"
1098
- }
1099
- }, {
1100
- "name": "[SCSS] Punctuation Definition Interpolation Bracket Curly",
1101
- "scope": ["source.css.scss punctuation.definition.interpolation.begin.bracket.curly", "source.css.scss punctuation.definition.interpolation.end.bracket.curly"],
1102
- "settings": {
1103
- "foreground": "#81A1C1"
1104
- }
1105
- }, {
1106
- "name": "[SCSS] Variable Interpolation",
1107
- "scope": "source.css.scss variable.interpolation",
1108
- "settings": {
1109
- "foreground": "#D8DEE9",
1110
- "fontStyle": "italic"
1111
- }
1112
- }, {
1113
- "name": "[TypeScript] Decorators",
1114
- "scope": ["source.ts punctuation.decorator", "source.ts meta.decorator variable.other.readwrite", "source.ts meta.decorator entity.name.function", "source.tsx punctuation.decorator", "source.tsx meta.decorator variable.other.readwrite", "source.tsx meta.decorator entity.name.function"],
1115
- "settings": {
1116
- "foreground": "#D08770"
1117
- }
1118
- }, {
1119
- "name": "[TypeScript] Object-literal keys",
1120
- "scope": ["source.ts meta.object-literal.key", "source.tsx meta.object-literal.key"],
1121
- "settings": {
1122
- "foreground": "#D8DEE9"
1123
- }
1124
- }, {
1125
- "name": "[TypeScript] Object-literal functions",
1126
- "scope": ["source.ts meta.object-literal.key entity.name.function", "source.tsx meta.object-literal.key entity.name.function"],
1127
- "settings": {
1128
- "foreground": "#88C0D0"
1129
- }
1130
- }, {
1131
- "name": "[TypeScript] Type/Class",
1132
- "scope": ["source.ts support.class", "source.ts support.type", "source.ts entity.name.type", "source.ts entity.name.class", "source.tsx support.class", "source.tsx support.type", "source.tsx entity.name.type", "source.tsx entity.name.class"],
1133
- "settings": {
1134
- "foreground": "#8FBCBB"
1135
- }
1136
- }, {
1137
- "name": "[TypeScript] Static Class Support",
1138
- "scope": ["source.ts support.constant.math", "source.ts support.constant.dom", "source.ts support.constant.json", "source.tsx support.constant.math", "source.tsx support.constant.dom", "source.tsx support.constant.json"],
1139
- "settings": {
1140
- "foreground": "#8FBCBB"
1141
- }
1142
- }, {
1143
- "name": "[TypeScript] Variables",
1144
- "scope": ["source.ts support.variable", "source.tsx support.variable"],
1145
- "settings": {
1146
- "foreground": "#D8DEE9"
1147
- }
1148
- }, {
1149
- "name": "[TypeScript] Parentheses in Template Strings",
1150
- "scope": ["source.ts meta.embedded.line meta.brace.square", "source.ts meta.embedded.line meta.brace.round", "source.tsx meta.embedded.line meta.brace.square", "source.tsx meta.embedded.line meta.brace.round"],
1151
- "settings": {
1152
- "foreground": "#ECEFF4"
1153
- }
1154
- }, {
1155
- "name": "[XML] Entity Name Tag Namespace",
1156
- "scope": "text.xml entity.name.tag.namespace",
1157
- "settings": {
1158
- "foreground": "#8FBCBB"
1159
- }
1160
- }, {
1161
- "name": "[XML] Keyword Other Doctype",
1162
- "scope": "text.xml keyword.other.doctype",
1163
- "settings": {
1164
- "foreground": "#5E81AC"
1165
- }
1166
- }, {
1167
- "name": "[XML] Meta Tag Preprocessor",
1168
- "scope": "text.xml meta.tag.preprocessor entity.name.tag",
1169
- "settings": {
1170
- "foreground": "#5E81AC"
1171
- }
1172
- }, {
1173
- "name": "[XML] Entity Name Tag Namespace",
1174
- "scope": ["text.xml string.unquoted.cdata", "text.xml string.unquoted.cdata punctuation.definition.string"],
1175
- "settings": {
1176
- "foreground": "#D08770",
1177
- "fontStyle": "italic"
1178
- }
1179
- }, {
1180
- "name": "[YAML] Entity Name Tag",
1181
- "scope": "source.yaml entity.name.tag",
1182
- "settings": {
1183
- "foreground": "#8FBCBB"
1184
- }
1185
- }]
1186
- },
1187
- "autoImport": true,
1188
- "showCopyButton": true,
1189
- "skipLanguages": [],
1190
- "filepath": "/Users/bytedance/github/targeral/modern-dev/website/module-tools/docs/zh/guide/basic/using-storybook.mdx"
1191
- };
1192
- const frontmatter = {
1193
- "sidebar_position": 5
1194
- };
1195
- const toc = [{
1196
- "id": "调试代码",
1197
- "text": "调试代码",
1198
- "depth": 2
1199
- }, {
1200
- "id": "引用组件产物",
1201
- "text": "引用组件产物",
1202
- "depth": 3
1203
- }, {
1204
- "id": "引用组件源码",
1205
- "text": "引用组件源码",
1206
- "depth": 3
1207
- }, {
1208
- "id": "配置-storybook",
1209
- "text": "配置 Storybook",
1210
- "depth": 2
1211
- }, {
1212
- "id": "构建-storybook-产物",
1213
- "text": "构建 Storybook 产物",
1214
- "depth": 2
1215
- }];
1216
- const title = `使用 Storybook`;
1217
- const content = "\"---\\nsidebar_position: 5\\n---\\n\\n# 使用 Storybook\\n\\n首先如果没有看过以下内容的话,可以先花几分钟先了解一下:\\n\\n- [使用微生成器开启 Storybook 调试](/guide/basic/use-micro-generator#storybook-调试)\\n- [`modern dev`](/guide/basic/command-preview#modern-dev)\\n\\n[Storybook](https://storybook.js.org/) 是一个专门用于组件调试的工具,围绕着组件开发提供了:\\n\\n- 丰富多样的调试能力\\n- 可与一些测试工具结合使用\\n- 可重复使用的文档内容\\n- 可分享能力\\n- 工作流程自动化\\n\\n因此它是一个复杂且功能强大的工具。\\n\\n模块工程解决方案集成了 Storybook,因此你几乎可以按照 Storybook 官方文档的内容进行使用。不过依然有一些地方需要注意,接下来讲解一下。\\n\\n## 调试代码\\n\\n在调试代码过程中需要引入项目代码,目前可以通过两种方式引入项目代码:\\n\\n- 引用项目产物\\n- 引用项目源码\\n\\n我们更推荐使用第一种“**引用项目产物**”的方式。因为它更接近真实的使用场景,不仅可以对组件功能进行调试,同时也对构建产物的正确性进行了验证。\\n\\n接下来我们分别讲一下这两种方式具体如何使用。\\n\\n### 引用组件产物\\n\\n假如存在 TypeScript 项目 `foo`:\\n\\n<CH.Spotlight>\\n\\n```json package.json\\n{\\n \\\"name\\\": \\\"foo\\\",\\n \\\"main\\\": \\\"./dist/index.js\\\",\\n \\\"types\\\": \\\"./dist/types/index.d.ts\\\"\\n}\\n```\\n\\n---\\n\\n确保 `package.json` 的 `main` 和 `types`\\n的值为正确的产物路径。\\n\\n```json package.json\\n{\\n \\\"name\\\": \\\"foo\\\",\\n \\\"main\\\": \\\"./dist/index.js\\\",\\n \\\"types\\\": \\\"./dist/types/index.d.ts\\\"\\n}\\n```\\n\\n---\\n\\n`foo` 项目的源码。\\n\\n```typescript src/index.ts\\nexport const content = 'hello world';\\n```\\n\\n---\\n\\n确保在 `stories/tsconfig.json` 中设置了指向项目根目录的 `paths` 配置。\\n`paths` 的 `key` 与项目名称相同,这样在编译过程中以及在代码中不会出现问题。\\n\\n```json stories/tsconfig.json focus=5:7\\n{\\n \\\"extends\\\": \\\"../tsconfig.json\\\",\\n \\\"compilerOptions\\\": {\\n \\\"baseUrl\\\": \\\"../\\\",\\n \\\"paths\\\": {\\n \\\"foo\\\": [\\\".\\\"],\\n \\\"foo/*\\\": [\\\"./*\\\"]\\n }\\n },\\n \\\"include\\\": [\\n \\\"**/*\\\"\\n ]\\n}\\n```\\n\\n---\\n\\n最后在 Story 代码中直接以项目名称的方式引用。\\n\\n```tsx stories/index.stories.tsx focus=1:1\\nimport { content } from 'foo';\\n\\nconst Component = () => <div>this is a Story Component {content}</div>;\\n\\nexport const YourStory = () => <Component />;\\n\\nexport default {\\n title: 'Your Stories',\\n};\\n```\\n\\n</CH.Spotlight>\\n\\n:::info\\n在开发过程中,可能会遇到无法实时获得类型定义的情况。因为只有当保存代码后,产物目录下的类型文件才会更新。此时:\\n\\n对于 `pnpm` 的项目,可以按照下面的内容对 `package.json` 进行修改:\\n\\n```ts focus=4:7\\n{\\n \\\"name\\\": \\\"foo\\\",\\n \\\"main\\\": \\\"./dist/index.js\\\",\\n \\\"types\\\": \\\"./src/index.ts\\\",\\n \\\"publishConfig\\\": {\\n \\\"types\\\": \\\"./dist/index.d.ts\\\",\\n }\\n}\\n```\\n\\n> 关于 pnpm 的 `publishConfig` 的使用,可以阅读下面这个[链接](https://pnpm.io/package_json#publishconfig)。\\n\\n而对于 npm 和 Yarn 的项目,则只能通过手动的方式在**开发阶段**和**发布阶段**对 `package.json` 的 `types` 的值进行修改。\\n:::\\n\\n那么为什么可以直接引用产物呢?\\n\\n1. 在执行 `modern dev storybook` 命令之前,会自动执行 `modern build` 命令,保证项目构建产物的存在。\\n2. 在 Storybook 内部增加了针对 `tsconfig.json` 文件或者以项目名称作为别名的处理,保证能够**根据 `package.json` 解析出项目的产物路径**。\\n\\n### 引用组件源码\\n\\n引用组件的源码可以通过相对路径的方式:\\n\\n```ts ./stories/index.tsx\\nimport { content } from '../src';\\n\\nconst Component = () => <div>this is a Story Component {content}</div>;\\n\\nexport const YourStory = () => <Component />;\\n\\nexport default {\\n title: 'Your Stories',\\n};\\n```\\n\\n那么为什么不推荐使用源码的方式呢?\\n\\n不仅仅是因为使用组件源码无法验证组件产物是否正确,**同时模块工程对于构建产物支持的一些配置无法完全转换为 Storybook\\n内部的配置**。如果某些配置无法进行相互转换的话,就会在 Storybook 调试过程中出现不符合预期的结果。\\n\\n## 配置 Storybook\\n\\nStorybook 官方通过一个名为 `.storybook` 的文件夹来进行项目配置,其中包含各种配置文件。**在模块工程方案中,可以在项目的 `config/storybook` 目录下增加 Storybook 配置文件。**\\n\\n关于 Storybook 各种配置文件的使用方式,可以查看下面的链接:\\n\\n- [Configure Storybook](https://storybook.js.org/docs/react/configure/overview)\\n\\n**不过在模块项目里进行 Storybook 存在一些限制**:\\n\\n- 目前不能修改 Story 文件存放的位置,即无法在 `main.js` 文件里修改 `stories` 配置。\\n- 目前不能修改 Webpack 和 Babel 相关的配置,即无法在 `main.js` 文件里修改 `webpackFinal` 和 `babel` 配置。\\n\\n在未来我们会考虑这些配置是否可以允许修改,不过目前为了减少不可预知的问题暂时限制使用这些配置。\\n\\n\\n## 构建 Storybook 产物\\n\\n除了可以对组件或者普通的模块进行 Storybook 调试,还可以通过下面的命令来执行 Storybook 的构建任务。\\n\\n```bash\\nmodern build --platform storybook\\n```\\n\\n关于 `modern build --platform` 命令可以查看:\\n\\n- [`modern build`](/guide/basic/command-preview#modern-build)\\n\\n构建完成后,可以在 `dist/storybook-static` 目录看到构建产物文件。\\n\"";
1218
- function _createMdxContent(props) {
1219
- const _components = Object.assign({
1220
- h1: "h1",
1221
- a: "a",
1222
- p: "p",
1223
- ul: "ul",
1224
- li: "li",
1225
- code: "code",
1226
- h2: "h2",
1227
- strong: "strong",
1228
- h3: "h3",
1229
- div: "div",
1230
- blockquote: "blockquote",
1231
- ol: "ol"
1232
- }, props.components);
1233
- if (!CH) _missingMdxReference("CH", false, "39:1-107:16");
1234
- if (!CH.Code) _missingMdxReference("CH.Code", true, "114:1-123:4");
1235
- if (!CH.CodeSlot) _missingMdxReference("CH.CodeSlot", true);
1236
- if (!CH.Spotlight) _missingMdxReference("CH.Spotlight", true, "39:1-107:16");
1237
- return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
1238
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h1, {
1239
- id: "使用-storybook",
1240
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1241
- className: "header-anchor",
1242
- "aria-hidden": "true",
1243
- href: "#使用-storybook",
1244
- children: "#"
1245
- }), "使用 Storybook"]
1246
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1247
- children: "首先如果没有看过以下内容的话,可以先花几分钟先了解一下:"
1248
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
1249
- children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1250
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1251
- href: "/module-tools/guide/basic/use-micro-generator.html#storybook-%E8%B0%83%E8%AF%95",
1252
- children: "使用微生成器开启 Storybook 调试"
1253
- })
1254
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1255
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1256
- href: "/module-tools/guide/basic/command-preview.html#modern-dev",
1257
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1258
- children: "modern dev"
1259
- })
1260
- })
1261
- }), "\n"]
1262
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1263
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1264
- href: "https://storybook.js.org/",
1265
- target: "_blank",
1266
- rel: "nofollow",
1267
- children: "Storybook"
1268
- }), " 是一个专门用于组件调试的工具,围绕着组件开发提供了:"]
1269
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
1270
- children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1271
- children: "丰富多样的调试能力"
1272
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1273
- children: "可与一些测试工具结合使用"
1274
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1275
- children: "可重复使用的文档内容"
1276
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1277
- children: "可分享能力"
1278
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1279
- children: "工作流程自动化"
1280
- }), "\n"]
1281
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1282
- children: "因此它是一个复杂且功能强大的工具。"
1283
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1284
- children: "模块工程解决方案集成了 Storybook,因此你几乎可以按照 Storybook 官方文档的内容进行使用。不过依然有一些地方需要注意,接下来讲解一下。"
1285
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
1286
- id: "调试代码",
1287
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1288
- className: "header-anchor",
1289
- "aria-hidden": "true",
1290
- href: "#调试代码",
1291
- children: "#"
1292
- }), "调试代码"]
1293
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1294
- children: "在调试代码过程中需要引入项目代码,目前可以通过两种方式引入项目代码:"
1295
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
1296
- children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1297
- children: "引用项目产物"
1298
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1299
- children: "引用项目源码"
1300
- }), "\n"]
1301
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1302
- children: ["我们更推荐使用第一种“", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
1303
- children: "引用项目产物"
1304
- }), "”的方式。因为它更接近真实的使用场景,不仅可以对组件功能进行调试,同时也对构建产物的正确性进行了验证。"]
1305
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1306
- children: "接下来我们分别讲一下这两种方式具体如何使用。"
1307
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h3, {
1308
- id: "引用组件产物",
1309
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1310
- className: "header-anchor",
1311
- "aria-hidden": "true",
1312
- href: "#引用组件产物",
1313
- children: "#"
1314
- }), "引用组件产物"]
1315
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1316
- children: ["假如存在 TypeScript 项目 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1317
- children: "foo"
1318
- }), ":"]
1319
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(CH.Spotlight, {
1320
- codeConfig: chCodeConfig,
1321
- editorSteps: [{
1322
- "northPanel": {
1323
- "tabs": ["package.json"],
1324
- "active": "package.json",
1325
- "heightRatio": 1
1326
- },
1327
- "files": [{
1328
- "name": "package.json",
1329
- "focus": "",
1330
- "code": {
1331
- "lines": [{
1332
- "tokens": [{
1333
- "content": "{",
1334
- "props": {
1335
- "style": {
1336
- "color": "#ECEFF4"
1337
- }
1338
- }
1339
- }]
1340
- }, {
1341
- "tokens": [{
1342
- "content": " ",
1343
- "props": {
1344
- "style": {
1345
- "color": "#D8DEE9FF"
1346
- }
1347
- }
1348
- }, {
1349
- "content": "\"",
1350
- "props": {
1351
- "style": {
1352
- "color": "#ECEFF4"
1353
- }
1354
- }
1355
- }, {
1356
- "content": "name",
1357
- "props": {
1358
- "style": {
1359
- "color": "#8FBCBB"
1360
- }
1361
- }
1362
- }, {
1363
- "content": "\"",
1364
- "props": {
1365
- "style": {
1366
- "color": "#ECEFF4"
1367
- }
1368
- }
1369
- }, {
1370
- "content": ":",
1371
- "props": {
1372
- "style": {
1373
- "color": "#ECEFF4"
1374
- }
1375
- }
1376
- }, {
1377
- "content": " ",
1378
- "props": {
1379
- "style": {
1380
- "color": "#D8DEE9FF"
1381
- }
1382
- }
1383
- }, {
1384
- "content": "\"",
1385
- "props": {
1386
- "style": {
1387
- "color": "#ECEFF4"
1388
- }
1389
- }
1390
- }, {
1391
- "content": "foo",
1392
- "props": {
1393
- "style": {
1394
- "color": "#A3BE8C"
1395
- }
1396
- }
1397
- }, {
1398
- "content": "\"",
1399
- "props": {
1400
- "style": {
1401
- "color": "#ECEFF4"
1402
- }
1403
- }
1404
- }, {
1405
- "content": ",",
1406
- "props": {
1407
- "style": {
1408
- "color": "#ECEFF4"
1409
- }
1410
- }
1411
- }]
1412
- }, {
1413
- "tokens": [{
1414
- "content": " ",
1415
- "props": {
1416
- "style": {
1417
- "color": "#D8DEE9FF"
1418
- }
1419
- }
1420
- }, {
1421
- "content": "\"",
1422
- "props": {
1423
- "style": {
1424
- "color": "#ECEFF4"
1425
- }
1426
- }
1427
- }, {
1428
- "content": "main",
1429
- "props": {
1430
- "style": {
1431
- "color": "#8FBCBB"
1432
- }
1433
- }
1434
- }, {
1435
- "content": "\"",
1436
- "props": {
1437
- "style": {
1438
- "color": "#ECEFF4"
1439
- }
1440
- }
1441
- }, {
1442
- "content": ":",
1443
- "props": {
1444
- "style": {
1445
- "color": "#ECEFF4"
1446
- }
1447
- }
1448
- }, {
1449
- "content": " ",
1450
- "props": {
1451
- "style": {
1452
- "color": "#D8DEE9FF"
1453
- }
1454
- }
1455
- }, {
1456
- "content": "\"",
1457
- "props": {
1458
- "style": {
1459
- "color": "#ECEFF4"
1460
- }
1461
- }
1462
- }, {
1463
- "content": "./dist/index.js",
1464
- "props": {
1465
- "style": {
1466
- "color": "#A3BE8C"
1467
- }
1468
- }
1469
- }, {
1470
- "content": "\"",
1471
- "props": {
1472
- "style": {
1473
- "color": "#ECEFF4"
1474
- }
1475
- }
1476
- }, {
1477
- "content": ",",
1478
- "props": {
1479
- "style": {
1480
- "color": "#ECEFF4"
1481
- }
1482
- }
1483
- }]
1484
- }, {
1485
- "tokens": [{
1486
- "content": " ",
1487
- "props": {
1488
- "style": {
1489
- "color": "#D8DEE9FF"
1490
- }
1491
- }
1492
- }, {
1493
- "content": "\"",
1494
- "props": {
1495
- "style": {
1496
- "color": "#ECEFF4"
1497
- }
1498
- }
1499
- }, {
1500
- "content": "types",
1501
- "props": {
1502
- "style": {
1503
- "color": "#8FBCBB"
1504
- }
1505
- }
1506
- }, {
1507
- "content": "\"",
1508
- "props": {
1509
- "style": {
1510
- "color": "#ECEFF4"
1511
- }
1512
- }
1513
- }, {
1514
- "content": ":",
1515
- "props": {
1516
- "style": {
1517
- "color": "#ECEFF4"
1518
- }
1519
- }
1520
- }, {
1521
- "content": " ",
1522
- "props": {
1523
- "style": {
1524
- "color": "#D8DEE9FF"
1525
- }
1526
- }
1527
- }, {
1528
- "content": "\"",
1529
- "props": {
1530
- "style": {
1531
- "color": "#ECEFF4"
1532
- }
1533
- }
1534
- }, {
1535
- "content": "./dist/types/index.d.ts",
1536
- "props": {
1537
- "style": {
1538
- "color": "#A3BE8C"
1539
- }
1540
- }
1541
- }, {
1542
- "content": "\"",
1543
- "props": {
1544
- "style": {
1545
- "color": "#ECEFF4"
1546
- }
1547
- }
1548
- }]
1549
- }, {
1550
- "tokens": [{
1551
- "content": "}",
1552
- "props": {
1553
- "style": {
1554
- "color": "#ECEFF4"
1555
- }
1556
- }
1557
- }]
1558
- }],
1559
- "lang": "json"
1560
- },
1561
- "annotations": []
1562
- }]
1563
- }, {
1564
- "northPanel": {
1565
- "tabs": ["package.json"],
1566
- "active": "package.json",
1567
- "heightRatio": 1
1568
- },
1569
- "files": [{
1570
- "name": "package.json",
1571
- "focus": "",
1572
- "code": {
1573
- "lines": [{
1574
- "tokens": [{
1575
- "content": "{",
1576
- "props": {
1577
- "style": {
1578
- "color": "#ECEFF4"
1579
- }
1580
- }
1581
- }]
1582
- }, {
1583
- "tokens": [{
1584
- "content": " ",
1585
- "props": {
1586
- "style": {
1587
- "color": "#D8DEE9FF"
1588
- }
1589
- }
1590
- }, {
1591
- "content": "\"",
1592
- "props": {
1593
- "style": {
1594
- "color": "#ECEFF4"
1595
- }
1596
- }
1597
- }, {
1598
- "content": "name",
1599
- "props": {
1600
- "style": {
1601
- "color": "#8FBCBB"
1602
- }
1603
- }
1604
- }, {
1605
- "content": "\"",
1606
- "props": {
1607
- "style": {
1608
- "color": "#ECEFF4"
1609
- }
1610
- }
1611
- }, {
1612
- "content": ":",
1613
- "props": {
1614
- "style": {
1615
- "color": "#ECEFF4"
1616
- }
1617
- }
1618
- }, {
1619
- "content": " ",
1620
- "props": {
1621
- "style": {
1622
- "color": "#D8DEE9FF"
1623
- }
1624
- }
1625
- }, {
1626
- "content": "\"",
1627
- "props": {
1628
- "style": {
1629
- "color": "#ECEFF4"
1630
- }
1631
- }
1632
- }, {
1633
- "content": "foo",
1634
- "props": {
1635
- "style": {
1636
- "color": "#A3BE8C"
1637
- }
1638
- }
1639
- }, {
1640
- "content": "\"",
1641
- "props": {
1642
- "style": {
1643
- "color": "#ECEFF4"
1644
- }
1645
- }
1646
- }, {
1647
- "content": ",",
1648
- "props": {
1649
- "style": {
1650
- "color": "#ECEFF4"
1651
- }
1652
- }
1653
- }]
1654
- }, {
1655
- "tokens": [{
1656
- "content": " ",
1657
- "props": {
1658
- "style": {
1659
- "color": "#D8DEE9FF"
1660
- }
1661
- }
1662
- }, {
1663
- "content": "\"",
1664
- "props": {
1665
- "style": {
1666
- "color": "#ECEFF4"
1667
- }
1668
- }
1669
- }, {
1670
- "content": "main",
1671
- "props": {
1672
- "style": {
1673
- "color": "#8FBCBB"
1674
- }
1675
- }
1676
- }, {
1677
- "content": "\"",
1678
- "props": {
1679
- "style": {
1680
- "color": "#ECEFF4"
1681
- }
1682
- }
1683
- }, {
1684
- "content": ":",
1685
- "props": {
1686
- "style": {
1687
- "color": "#ECEFF4"
1688
- }
1689
- }
1690
- }, {
1691
- "content": " ",
1692
- "props": {
1693
- "style": {
1694
- "color": "#D8DEE9FF"
1695
- }
1696
- }
1697
- }, {
1698
- "content": "\"",
1699
- "props": {
1700
- "style": {
1701
- "color": "#ECEFF4"
1702
- }
1703
- }
1704
- }, {
1705
- "content": "./dist/index.js",
1706
- "props": {
1707
- "style": {
1708
- "color": "#A3BE8C"
1709
- }
1710
- }
1711
- }, {
1712
- "content": "\"",
1713
- "props": {
1714
- "style": {
1715
- "color": "#ECEFF4"
1716
- }
1717
- }
1718
- }, {
1719
- "content": ",",
1720
- "props": {
1721
- "style": {
1722
- "color": "#ECEFF4"
1723
- }
1724
- }
1725
- }]
1726
- }, {
1727
- "tokens": [{
1728
- "content": " ",
1729
- "props": {
1730
- "style": {
1731
- "color": "#D8DEE9FF"
1732
- }
1733
- }
1734
- }, {
1735
- "content": "\"",
1736
- "props": {
1737
- "style": {
1738
- "color": "#ECEFF4"
1739
- }
1740
- }
1741
- }, {
1742
- "content": "types",
1743
- "props": {
1744
- "style": {
1745
- "color": "#8FBCBB"
1746
- }
1747
- }
1748
- }, {
1749
- "content": "\"",
1750
- "props": {
1751
- "style": {
1752
- "color": "#ECEFF4"
1753
- }
1754
- }
1755
- }, {
1756
- "content": ":",
1757
- "props": {
1758
- "style": {
1759
- "color": "#ECEFF4"
1760
- }
1761
- }
1762
- }, {
1763
- "content": " ",
1764
- "props": {
1765
- "style": {
1766
- "color": "#D8DEE9FF"
1767
- }
1768
- }
1769
- }, {
1770
- "content": "\"",
1771
- "props": {
1772
- "style": {
1773
- "color": "#ECEFF4"
1774
- }
1775
- }
1776
- }, {
1777
- "content": "./dist/types/index.d.ts",
1778
- "props": {
1779
- "style": {
1780
- "color": "#A3BE8C"
1781
- }
1782
- }
1783
- }, {
1784
- "content": "\"",
1785
- "props": {
1786
- "style": {
1787
- "color": "#ECEFF4"
1788
- }
1789
- }
1790
- }]
1791
- }, {
1792
- "tokens": [{
1793
- "content": "}",
1794
- "props": {
1795
- "style": {
1796
- "color": "#ECEFF4"
1797
- }
1798
- }
1799
- }]
1800
- }],
1801
- "lang": "json"
1802
- },
1803
- "annotations": []
1804
- }],
1805
- "southPanel": undefined
1806
- }, {
1807
- "northPanel": {
1808
- "tabs": ["package.json", "src/index.ts"],
1809
- "active": "src/index.ts",
1810
- "heightRatio": 1
1811
- },
1812
- "files": [{
1813
- "name": "package.json",
1814
- "focus": "",
1815
- "code": {
1816
- "lines": [{
1817
- "tokens": [{
1818
- "content": "{",
1819
- "props": {
1820
- "style": {
1821
- "color": "#ECEFF4"
1822
- }
1823
- }
1824
- }]
1825
- }, {
1826
- "tokens": [{
1827
- "content": " ",
1828
- "props": {
1829
- "style": {
1830
- "color": "#D8DEE9FF"
1831
- }
1832
- }
1833
- }, {
1834
- "content": "\"",
1835
- "props": {
1836
- "style": {
1837
- "color": "#ECEFF4"
1838
- }
1839
- }
1840
- }, {
1841
- "content": "name",
1842
- "props": {
1843
- "style": {
1844
- "color": "#8FBCBB"
1845
- }
1846
- }
1847
- }, {
1848
- "content": "\"",
1849
- "props": {
1850
- "style": {
1851
- "color": "#ECEFF4"
1852
- }
1853
- }
1854
- }, {
1855
- "content": ":",
1856
- "props": {
1857
- "style": {
1858
- "color": "#ECEFF4"
1859
- }
1860
- }
1861
- }, {
1862
- "content": " ",
1863
- "props": {
1864
- "style": {
1865
- "color": "#D8DEE9FF"
1866
- }
1867
- }
1868
- }, {
1869
- "content": "\"",
1870
- "props": {
1871
- "style": {
1872
- "color": "#ECEFF4"
1873
- }
1874
- }
1875
- }, {
1876
- "content": "foo",
1877
- "props": {
1878
- "style": {
1879
- "color": "#A3BE8C"
1880
- }
1881
- }
1882
- }, {
1883
- "content": "\"",
1884
- "props": {
1885
- "style": {
1886
- "color": "#ECEFF4"
1887
- }
1888
- }
1889
- }, {
1890
- "content": ",",
1891
- "props": {
1892
- "style": {
1893
- "color": "#ECEFF4"
1894
- }
1895
- }
1896
- }]
1897
- }, {
1898
- "tokens": [{
1899
- "content": " ",
1900
- "props": {
1901
- "style": {
1902
- "color": "#D8DEE9FF"
1903
- }
1904
- }
1905
- }, {
1906
- "content": "\"",
1907
- "props": {
1908
- "style": {
1909
- "color": "#ECEFF4"
1910
- }
1911
- }
1912
- }, {
1913
- "content": "main",
1914
- "props": {
1915
- "style": {
1916
- "color": "#8FBCBB"
1917
- }
1918
- }
1919
- }, {
1920
- "content": "\"",
1921
- "props": {
1922
- "style": {
1923
- "color": "#ECEFF4"
1924
- }
1925
- }
1926
- }, {
1927
- "content": ":",
1928
- "props": {
1929
- "style": {
1930
- "color": "#ECEFF4"
1931
- }
1932
- }
1933
- }, {
1934
- "content": " ",
1935
- "props": {
1936
- "style": {
1937
- "color": "#D8DEE9FF"
1938
- }
1939
- }
1940
- }, {
1941
- "content": "\"",
1942
- "props": {
1943
- "style": {
1944
- "color": "#ECEFF4"
1945
- }
1946
- }
1947
- }, {
1948
- "content": "./dist/index.js",
1949
- "props": {
1950
- "style": {
1951
- "color": "#A3BE8C"
1952
- }
1953
- }
1954
- }, {
1955
- "content": "\"",
1956
- "props": {
1957
- "style": {
1958
- "color": "#ECEFF4"
1959
- }
1960
- }
1961
- }, {
1962
- "content": ",",
1963
- "props": {
1964
- "style": {
1965
- "color": "#ECEFF4"
1966
- }
1967
- }
1968
- }]
1969
- }, {
1970
- "tokens": [{
1971
- "content": " ",
1972
- "props": {
1973
- "style": {
1974
- "color": "#D8DEE9FF"
1975
- }
1976
- }
1977
- }, {
1978
- "content": "\"",
1979
- "props": {
1980
- "style": {
1981
- "color": "#ECEFF4"
1982
- }
1983
- }
1984
- }, {
1985
- "content": "types",
1986
- "props": {
1987
- "style": {
1988
- "color": "#8FBCBB"
1989
- }
1990
- }
1991
- }, {
1992
- "content": "\"",
1993
- "props": {
1994
- "style": {
1995
- "color": "#ECEFF4"
1996
- }
1997
- }
1998
- }, {
1999
- "content": ":",
2000
- "props": {
2001
- "style": {
2002
- "color": "#ECEFF4"
2003
- }
2004
- }
2005
- }, {
2006
- "content": " ",
2007
- "props": {
2008
- "style": {
2009
- "color": "#D8DEE9FF"
2010
- }
2011
- }
2012
- }, {
2013
- "content": "\"",
2014
- "props": {
2015
- "style": {
2016
- "color": "#ECEFF4"
2017
- }
2018
- }
2019
- }, {
2020
- "content": "./dist/types/index.d.ts",
2021
- "props": {
2022
- "style": {
2023
- "color": "#A3BE8C"
2024
- }
2025
- }
2026
- }, {
2027
- "content": "\"",
2028
- "props": {
2029
- "style": {
2030
- "color": "#ECEFF4"
2031
- }
2032
- }
2033
- }]
2034
- }, {
2035
- "tokens": [{
2036
- "content": "}",
2037
- "props": {
2038
- "style": {
2039
- "color": "#ECEFF4"
2040
- }
2041
- }
2042
- }]
2043
- }],
2044
- "lang": "json"
2045
- },
2046
- "annotations": []
2047
- }, {
2048
- "name": "src/index.ts",
2049
- "focus": "",
2050
- "code": {
2051
- "lines": [{
2052
- "tokens": [{
2053
- "content": "export",
2054
- "props": {
2055
- "style": {
2056
- "color": "#81A1C1"
2057
- }
2058
- }
2059
- }, {
2060
- "content": " ",
2061
- "props": {
2062
- "style": {
2063
- "color": "#D8DEE9FF"
2064
- }
2065
- }
2066
- }, {
2067
- "content": "const",
2068
- "props": {
2069
- "style": {
2070
- "color": "#81A1C1"
2071
- }
2072
- }
2073
- }, {
2074
- "content": " ",
2075
- "props": {
2076
- "style": {
2077
- "color": "#D8DEE9FF"
2078
- }
2079
- }
2080
- }, {
2081
- "content": "content",
2082
- "props": {
2083
- "style": {
2084
- "color": "#D8DEE9"
2085
- }
2086
- }
2087
- }, {
2088
- "content": " ",
2089
- "props": {
2090
- "style": {
2091
- "color": "#D8DEE9FF"
2092
- }
2093
- }
2094
- }, {
2095
- "content": "=",
2096
- "props": {
2097
- "style": {
2098
- "color": "#81A1C1"
2099
- }
2100
- }
2101
- }, {
2102
- "content": " ",
2103
- "props": {
2104
- "style": {
2105
- "color": "#D8DEE9FF"
2106
- }
2107
- }
2108
- }, {
2109
- "content": "'",
2110
- "props": {
2111
- "style": {
2112
- "color": "#ECEFF4"
2113
- }
2114
- }
2115
- }, {
2116
- "content": "hello world",
2117
- "props": {
2118
- "style": {
2119
- "color": "#A3BE8C"
2120
- }
2121
- }
2122
- }, {
2123
- "content": "'",
2124
- "props": {
2125
- "style": {
2126
- "color": "#ECEFF4"
2127
- }
2128
- }
2129
- }, {
2130
- "content": ";",
2131
- "props": {
2132
- "style": {
2133
- "color": "#81A1C1"
2134
- }
2135
- }
2136
- }]
2137
- }],
2138
- "lang": "typescript"
2139
- },
2140
- "annotations": []
2141
- }],
2142
- "southPanel": undefined
2143
- }, {
2144
- "northPanel": {
2145
- "tabs": ["package.json", "stories/tsconfig.json"],
2146
- "active": "stories/tsconfig.json",
2147
- "heightRatio": 1
2148
- },
2149
- "files": [{
2150
- "name": "package.json",
2151
- "focus": "",
2152
- "code": {
2153
- "lines": [{
2154
- "tokens": [{
2155
- "content": "{",
2156
- "props": {
2157
- "style": {
2158
- "color": "#ECEFF4"
2159
- }
2160
- }
2161
- }]
2162
- }, {
2163
- "tokens": [{
2164
- "content": " ",
2165
- "props": {
2166
- "style": {
2167
- "color": "#D8DEE9FF"
2168
- }
2169
- }
2170
- }, {
2171
- "content": "\"",
2172
- "props": {
2173
- "style": {
2174
- "color": "#ECEFF4"
2175
- }
2176
- }
2177
- }, {
2178
- "content": "name",
2179
- "props": {
2180
- "style": {
2181
- "color": "#8FBCBB"
2182
- }
2183
- }
2184
- }, {
2185
- "content": "\"",
2186
- "props": {
2187
- "style": {
2188
- "color": "#ECEFF4"
2189
- }
2190
- }
2191
- }, {
2192
- "content": ":",
2193
- "props": {
2194
- "style": {
2195
- "color": "#ECEFF4"
2196
- }
2197
- }
2198
- }, {
2199
- "content": " ",
2200
- "props": {
2201
- "style": {
2202
- "color": "#D8DEE9FF"
2203
- }
2204
- }
2205
- }, {
2206
- "content": "\"",
2207
- "props": {
2208
- "style": {
2209
- "color": "#ECEFF4"
2210
- }
2211
- }
2212
- }, {
2213
- "content": "foo",
2214
- "props": {
2215
- "style": {
2216
- "color": "#A3BE8C"
2217
- }
2218
- }
2219
- }, {
2220
- "content": "\"",
2221
- "props": {
2222
- "style": {
2223
- "color": "#ECEFF4"
2224
- }
2225
- }
2226
- }, {
2227
- "content": ",",
2228
- "props": {
2229
- "style": {
2230
- "color": "#ECEFF4"
2231
- }
2232
- }
2233
- }]
2234
- }, {
2235
- "tokens": [{
2236
- "content": " ",
2237
- "props": {
2238
- "style": {
2239
- "color": "#D8DEE9FF"
2240
- }
2241
- }
2242
- }, {
2243
- "content": "\"",
2244
- "props": {
2245
- "style": {
2246
- "color": "#ECEFF4"
2247
- }
2248
- }
2249
- }, {
2250
- "content": "main",
2251
- "props": {
2252
- "style": {
2253
- "color": "#8FBCBB"
2254
- }
2255
- }
2256
- }, {
2257
- "content": "\"",
2258
- "props": {
2259
- "style": {
2260
- "color": "#ECEFF4"
2261
- }
2262
- }
2263
- }, {
2264
- "content": ":",
2265
- "props": {
2266
- "style": {
2267
- "color": "#ECEFF4"
2268
- }
2269
- }
2270
- }, {
2271
- "content": " ",
2272
- "props": {
2273
- "style": {
2274
- "color": "#D8DEE9FF"
2275
- }
2276
- }
2277
- }, {
2278
- "content": "\"",
2279
- "props": {
2280
- "style": {
2281
- "color": "#ECEFF4"
2282
- }
2283
- }
2284
- }, {
2285
- "content": "./dist/index.js",
2286
- "props": {
2287
- "style": {
2288
- "color": "#A3BE8C"
2289
- }
2290
- }
2291
- }, {
2292
- "content": "\"",
2293
- "props": {
2294
- "style": {
2295
- "color": "#ECEFF4"
2296
- }
2297
- }
2298
- }, {
2299
- "content": ",",
2300
- "props": {
2301
- "style": {
2302
- "color": "#ECEFF4"
2303
- }
2304
- }
2305
- }]
2306
- }, {
2307
- "tokens": [{
2308
- "content": " ",
2309
- "props": {
2310
- "style": {
2311
- "color": "#D8DEE9FF"
2312
- }
2313
- }
2314
- }, {
2315
- "content": "\"",
2316
- "props": {
2317
- "style": {
2318
- "color": "#ECEFF4"
2319
- }
2320
- }
2321
- }, {
2322
- "content": "types",
2323
- "props": {
2324
- "style": {
2325
- "color": "#8FBCBB"
2326
- }
2327
- }
2328
- }, {
2329
- "content": "\"",
2330
- "props": {
2331
- "style": {
2332
- "color": "#ECEFF4"
2333
- }
2334
- }
2335
- }, {
2336
- "content": ":",
2337
- "props": {
2338
- "style": {
2339
- "color": "#ECEFF4"
2340
- }
2341
- }
2342
- }, {
2343
- "content": " ",
2344
- "props": {
2345
- "style": {
2346
- "color": "#D8DEE9FF"
2347
- }
2348
- }
2349
- }, {
2350
- "content": "\"",
2351
- "props": {
2352
- "style": {
2353
- "color": "#ECEFF4"
2354
- }
2355
- }
2356
- }, {
2357
- "content": "./dist/types/index.d.ts",
2358
- "props": {
2359
- "style": {
2360
- "color": "#A3BE8C"
2361
- }
2362
- }
2363
- }, {
2364
- "content": "\"",
2365
- "props": {
2366
- "style": {
2367
- "color": "#ECEFF4"
2368
- }
2369
- }
2370
- }]
2371
- }, {
2372
- "tokens": [{
2373
- "content": "}",
2374
- "props": {
2375
- "style": {
2376
- "color": "#ECEFF4"
2377
- }
2378
- }
2379
- }]
2380
- }],
2381
- "lang": "json"
2382
- },
2383
- "annotations": []
2384
- }, {
2385
- "name": "stories/tsconfig.json",
2386
- "focus": "5:7",
2387
- "code": {
2388
- "lines": [{
2389
- "tokens": [{
2390
- "content": "{",
2391
- "props": {
2392
- "style": {
2393
- "color": "#ECEFF4"
2394
- }
2395
- }
2396
- }]
2397
- }, {
2398
- "tokens": [{
2399
- "content": " ",
2400
- "props": {
2401
- "style": {
2402
- "color": "#D8DEE9FF"
2403
- }
2404
- }
2405
- }, {
2406
- "content": "\"",
2407
- "props": {
2408
- "style": {
2409
- "color": "#ECEFF4"
2410
- }
2411
- }
2412
- }, {
2413
- "content": "extends",
2414
- "props": {
2415
- "style": {
2416
- "color": "#8FBCBB"
2417
- }
2418
- }
2419
- }, {
2420
- "content": "\"",
2421
- "props": {
2422
- "style": {
2423
- "color": "#ECEFF4"
2424
- }
2425
- }
2426
- }, {
2427
- "content": ":",
2428
- "props": {
2429
- "style": {
2430
- "color": "#ECEFF4"
2431
- }
2432
- }
2433
- }, {
2434
- "content": " ",
2435
- "props": {
2436
- "style": {
2437
- "color": "#D8DEE9FF"
2438
- }
2439
- }
2440
- }, {
2441
- "content": "\"",
2442
- "props": {
2443
- "style": {
2444
- "color": "#ECEFF4"
2445
- }
2446
- }
2447
- }, {
2448
- "content": "../tsconfig.json",
2449
- "props": {
2450
- "style": {
2451
- "color": "#A3BE8C"
2452
- }
2453
- }
2454
- }, {
2455
- "content": "\"",
2456
- "props": {
2457
- "style": {
2458
- "color": "#ECEFF4"
2459
- }
2460
- }
2461
- }, {
2462
- "content": ",",
2463
- "props": {
2464
- "style": {
2465
- "color": "#ECEFF4"
2466
- }
2467
- }
2468
- }]
2469
- }, {
2470
- "tokens": [{
2471
- "content": " ",
2472
- "props": {
2473
- "style": {
2474
- "color": "#D8DEE9FF"
2475
- }
2476
- }
2477
- }, {
2478
- "content": "\"",
2479
- "props": {
2480
- "style": {
2481
- "color": "#ECEFF4"
2482
- }
2483
- }
2484
- }, {
2485
- "content": "compilerOptions",
2486
- "props": {
2487
- "style": {
2488
- "color": "#8FBCBB"
2489
- }
2490
- }
2491
- }, {
2492
- "content": "\"",
2493
- "props": {
2494
- "style": {
2495
- "color": "#ECEFF4"
2496
- }
2497
- }
2498
- }, {
2499
- "content": ":",
2500
- "props": {
2501
- "style": {
2502
- "color": "#ECEFF4"
2503
- }
2504
- }
2505
- }, {
2506
- "content": " ",
2507
- "props": {
2508
- "style": {
2509
- "color": "#D8DEE9FF"
2510
- }
2511
- }
2512
- }, {
2513
- "content": "{",
2514
- "props": {
2515
- "style": {
2516
- "color": "#ECEFF4"
2517
- }
2518
- }
2519
- }]
2520
- }, {
2521
- "tokens": [{
2522
- "content": " ",
2523
- "props": {
2524
- "style": {
2525
- "color": "#D8DEE9FF"
2526
- }
2527
- }
2528
- }, {
2529
- "content": "\"",
2530
- "props": {
2531
- "style": {
2532
- "color": "#ECEFF4"
2533
- }
2534
- }
2535
- }, {
2536
- "content": "baseUrl",
2537
- "props": {
2538
- "style": {
2539
- "color": "#8FBCBB"
2540
- }
2541
- }
2542
- }, {
2543
- "content": "\"",
2544
- "props": {
2545
- "style": {
2546
- "color": "#ECEFF4"
2547
- }
2548
- }
2549
- }, {
2550
- "content": ":",
2551
- "props": {
2552
- "style": {
2553
- "color": "#ECEFF4"
2554
- }
2555
- }
2556
- }, {
2557
- "content": " ",
2558
- "props": {
2559
- "style": {
2560
- "color": "#D8DEE9FF"
2561
- }
2562
- }
2563
- }, {
2564
- "content": "\"",
2565
- "props": {
2566
- "style": {
2567
- "color": "#ECEFF4"
2568
- }
2569
- }
2570
- }, {
2571
- "content": "../",
2572
- "props": {
2573
- "style": {
2574
- "color": "#A3BE8C"
2575
- }
2576
- }
2577
- }, {
2578
- "content": "\"",
2579
- "props": {
2580
- "style": {
2581
- "color": "#ECEFF4"
2582
- }
2583
- }
2584
- }, {
2585
- "content": ",",
2586
- "props": {
2587
- "style": {
2588
- "color": "#ECEFF4"
2589
- }
2590
- }
2591
- }]
2592
- }, {
2593
- "tokens": [{
2594
- "content": " ",
2595
- "props": {
2596
- "style": {
2597
- "color": "#D8DEE9FF"
2598
- }
2599
- }
2600
- }, {
2601
- "content": "\"",
2602
- "props": {
2603
- "style": {
2604
- "color": "#ECEFF4"
2605
- }
2606
- }
2607
- }, {
2608
- "content": "paths",
2609
- "props": {
2610
- "style": {
2611
- "color": "#8FBCBB"
2612
- }
2613
- }
2614
- }, {
2615
- "content": "\"",
2616
- "props": {
2617
- "style": {
2618
- "color": "#ECEFF4"
2619
- }
2620
- }
2621
- }, {
2622
- "content": ":",
2623
- "props": {
2624
- "style": {
2625
- "color": "#ECEFF4"
2626
- }
2627
- }
2628
- }, {
2629
- "content": " ",
2630
- "props": {
2631
- "style": {
2632
- "color": "#D8DEE9FF"
2633
- }
2634
- }
2635
- }, {
2636
- "content": "{",
2637
- "props": {
2638
- "style": {
2639
- "color": "#ECEFF4"
2640
- }
2641
- }
2642
- }]
2643
- }, {
2644
- "tokens": [{
2645
- "content": " ",
2646
- "props": {
2647
- "style": {
2648
- "color": "#D8DEE9FF"
2649
- }
2650
- }
2651
- }, {
2652
- "content": "\"",
2653
- "props": {
2654
- "style": {
2655
- "color": "#ECEFF4"
2656
- }
2657
- }
2658
- }, {
2659
- "content": "foo",
2660
- "props": {
2661
- "style": {
2662
- "color": "#8FBCBB"
2663
- }
2664
- }
2665
- }, {
2666
- "content": "\"",
2667
- "props": {
2668
- "style": {
2669
- "color": "#ECEFF4"
2670
- }
2671
- }
2672
- }, {
2673
- "content": ":",
2674
- "props": {
2675
- "style": {
2676
- "color": "#ECEFF4"
2677
- }
2678
- }
2679
- }, {
2680
- "content": " ",
2681
- "props": {
2682
- "style": {
2683
- "color": "#D8DEE9FF"
2684
- }
2685
- }
2686
- }, {
2687
- "content": "[",
2688
- "props": {
2689
- "style": {
2690
- "color": "#ECEFF4"
2691
- }
2692
- }
2693
- }, {
2694
- "content": "\"",
2695
- "props": {
2696
- "style": {
2697
- "color": "#ECEFF4"
2698
- }
2699
- }
2700
- }, {
2701
- "content": ".",
2702
- "props": {
2703
- "style": {
2704
- "color": "#A3BE8C"
2705
- }
2706
- }
2707
- }, {
2708
- "content": "\"",
2709
- "props": {
2710
- "style": {
2711
- "color": "#ECEFF4"
2712
- }
2713
- }
2714
- }, {
2715
- "content": "],",
2716
- "props": {
2717
- "style": {
2718
- "color": "#ECEFF4"
2719
- }
2720
- }
2721
- }]
2722
- }, {
2723
- "tokens": [{
2724
- "content": " ",
2725
- "props": {
2726
- "style": {
2727
- "color": "#D8DEE9FF"
2728
- }
2729
- }
2730
- }, {
2731
- "content": "\"",
2732
- "props": {
2733
- "style": {
2734
- "color": "#ECEFF4"
2735
- }
2736
- }
2737
- }, {
2738
- "content": "foo/*",
2739
- "props": {
2740
- "style": {
2741
- "color": "#8FBCBB"
2742
- }
2743
- }
2744
- }, {
2745
- "content": "\"",
2746
- "props": {
2747
- "style": {
2748
- "color": "#ECEFF4"
2749
- }
2750
- }
2751
- }, {
2752
- "content": ":",
2753
- "props": {
2754
- "style": {
2755
- "color": "#ECEFF4"
2756
- }
2757
- }
2758
- }, {
2759
- "content": " ",
2760
- "props": {
2761
- "style": {
2762
- "color": "#D8DEE9FF"
2763
- }
2764
- }
2765
- }, {
2766
- "content": "[",
2767
- "props": {
2768
- "style": {
2769
- "color": "#ECEFF4"
2770
- }
2771
- }
2772
- }, {
2773
- "content": "\"",
2774
- "props": {
2775
- "style": {
2776
- "color": "#ECEFF4"
2777
- }
2778
- }
2779
- }, {
2780
- "content": "./*",
2781
- "props": {
2782
- "style": {
2783
- "color": "#A3BE8C"
2784
- }
2785
- }
2786
- }, {
2787
- "content": "\"",
2788
- "props": {
2789
- "style": {
2790
- "color": "#ECEFF4"
2791
- }
2792
- }
2793
- }, {
2794
- "content": "]",
2795
- "props": {
2796
- "style": {
2797
- "color": "#ECEFF4"
2798
- }
2799
- }
2800
- }]
2801
- }, {
2802
- "tokens": [{
2803
- "content": " ",
2804
- "props": {
2805
- "style": {
2806
- "color": "#D8DEE9FF"
2807
- }
2808
- }
2809
- }, {
2810
- "content": "}",
2811
- "props": {
2812
- "style": {
2813
- "color": "#ECEFF4"
2814
- }
2815
- }
2816
- }]
2817
- }, {
2818
- "tokens": [{
2819
- "content": " ",
2820
- "props": {
2821
- "style": {
2822
- "color": "#D8DEE9FF"
2823
- }
2824
- }
2825
- }, {
2826
- "content": "},",
2827
- "props": {
2828
- "style": {
2829
- "color": "#ECEFF4"
2830
- }
2831
- }
2832
- }]
2833
- }, {
2834
- "tokens": [{
2835
- "content": " ",
2836
- "props": {
2837
- "style": {
2838
- "color": "#D8DEE9FF"
2839
- }
2840
- }
2841
- }, {
2842
- "content": "\"",
2843
- "props": {
2844
- "style": {
2845
- "color": "#ECEFF4"
2846
- }
2847
- }
2848
- }, {
2849
- "content": "include",
2850
- "props": {
2851
- "style": {
2852
- "color": "#8FBCBB"
2853
- }
2854
- }
2855
- }, {
2856
- "content": "\"",
2857
- "props": {
2858
- "style": {
2859
- "color": "#ECEFF4"
2860
- }
2861
- }
2862
- }, {
2863
- "content": ":",
2864
- "props": {
2865
- "style": {
2866
- "color": "#ECEFF4"
2867
- }
2868
- }
2869
- }, {
2870
- "content": " ",
2871
- "props": {
2872
- "style": {
2873
- "color": "#D8DEE9FF"
2874
- }
2875
- }
2876
- }, {
2877
- "content": "[",
2878
- "props": {
2879
- "style": {
2880
- "color": "#ECEFF4"
2881
- }
2882
- }
2883
- }]
2884
- }, {
2885
- "tokens": [{
2886
- "content": " ",
2887
- "props": {
2888
- "style": {
2889
- "color": "#D8DEE9FF"
2890
- }
2891
- }
2892
- }, {
2893
- "content": "\"",
2894
- "props": {
2895
- "style": {
2896
- "color": "#ECEFF4"
2897
- }
2898
- }
2899
- }, {
2900
- "content": "**/*",
2901
- "props": {
2902
- "style": {
2903
- "color": "#A3BE8C"
2904
- }
2905
- }
2906
- }, {
2907
- "content": "\"",
2908
- "props": {
2909
- "style": {
2910
- "color": "#ECEFF4"
2911
- }
2912
- }
2913
- }]
2914
- }, {
2915
- "tokens": [{
2916
- "content": " ",
2917
- "props": {
2918
- "style": {
2919
- "color": "#D8DEE9FF"
2920
- }
2921
- }
2922
- }, {
2923
- "content": "]",
2924
- "props": {
2925
- "style": {
2926
- "color": "#ECEFF4"
2927
- }
2928
- }
2929
- }]
2930
- }, {
2931
- "tokens": [{
2932
- "content": "}",
2933
- "props": {
2934
- "style": {
2935
- "color": "#ECEFF4"
2936
- }
2937
- }
2938
- }]
2939
- }],
2940
- "lang": "json"
2941
- },
2942
- "annotations": []
2943
- }],
2944
- "southPanel": undefined
2945
- }, {
2946
- "northPanel": {
2947
- "tabs": ["package.json", "stories/index.stories.tsx"],
2948
- "active": "stories/index.stories.tsx",
2949
- "heightRatio": 1
2950
- },
2951
- "files": [{
2952
- "name": "package.json",
2953
- "focus": "",
2954
- "code": {
2955
- "lines": [{
2956
- "tokens": [{
2957
- "content": "{",
2958
- "props": {
2959
- "style": {
2960
- "color": "#ECEFF4"
2961
- }
2962
- }
2963
- }]
2964
- }, {
2965
- "tokens": [{
2966
- "content": " ",
2967
- "props": {
2968
- "style": {
2969
- "color": "#D8DEE9FF"
2970
- }
2971
- }
2972
- }, {
2973
- "content": "\"",
2974
- "props": {
2975
- "style": {
2976
- "color": "#ECEFF4"
2977
- }
2978
- }
2979
- }, {
2980
- "content": "name",
2981
- "props": {
2982
- "style": {
2983
- "color": "#8FBCBB"
2984
- }
2985
- }
2986
- }, {
2987
- "content": "\"",
2988
- "props": {
2989
- "style": {
2990
- "color": "#ECEFF4"
2991
- }
2992
- }
2993
- }, {
2994
- "content": ":",
2995
- "props": {
2996
- "style": {
2997
- "color": "#ECEFF4"
2998
- }
2999
- }
3000
- }, {
3001
- "content": " ",
3002
- "props": {
3003
- "style": {
3004
- "color": "#D8DEE9FF"
3005
- }
3006
- }
3007
- }, {
3008
- "content": "\"",
3009
- "props": {
3010
- "style": {
3011
- "color": "#ECEFF4"
3012
- }
3013
- }
3014
- }, {
3015
- "content": "foo",
3016
- "props": {
3017
- "style": {
3018
- "color": "#A3BE8C"
3019
- }
3020
- }
3021
- }, {
3022
- "content": "\"",
3023
- "props": {
3024
- "style": {
3025
- "color": "#ECEFF4"
3026
- }
3027
- }
3028
- }, {
3029
- "content": ",",
3030
- "props": {
3031
- "style": {
3032
- "color": "#ECEFF4"
3033
- }
3034
- }
3035
- }]
3036
- }, {
3037
- "tokens": [{
3038
- "content": " ",
3039
- "props": {
3040
- "style": {
3041
- "color": "#D8DEE9FF"
3042
- }
3043
- }
3044
- }, {
3045
- "content": "\"",
3046
- "props": {
3047
- "style": {
3048
- "color": "#ECEFF4"
3049
- }
3050
- }
3051
- }, {
3052
- "content": "main",
3053
- "props": {
3054
- "style": {
3055
- "color": "#8FBCBB"
3056
- }
3057
- }
3058
- }, {
3059
- "content": "\"",
3060
- "props": {
3061
- "style": {
3062
- "color": "#ECEFF4"
3063
- }
3064
- }
3065
- }, {
3066
- "content": ":",
3067
- "props": {
3068
- "style": {
3069
- "color": "#ECEFF4"
3070
- }
3071
- }
3072
- }, {
3073
- "content": " ",
3074
- "props": {
3075
- "style": {
3076
- "color": "#D8DEE9FF"
3077
- }
3078
- }
3079
- }, {
3080
- "content": "\"",
3081
- "props": {
3082
- "style": {
3083
- "color": "#ECEFF4"
3084
- }
3085
- }
3086
- }, {
3087
- "content": "./dist/index.js",
3088
- "props": {
3089
- "style": {
3090
- "color": "#A3BE8C"
3091
- }
3092
- }
3093
- }, {
3094
- "content": "\"",
3095
- "props": {
3096
- "style": {
3097
- "color": "#ECEFF4"
3098
- }
3099
- }
3100
- }, {
3101
- "content": ",",
3102
- "props": {
3103
- "style": {
3104
- "color": "#ECEFF4"
3105
- }
3106
- }
3107
- }]
3108
- }, {
3109
- "tokens": [{
3110
- "content": " ",
3111
- "props": {
3112
- "style": {
3113
- "color": "#D8DEE9FF"
3114
- }
3115
- }
3116
- }, {
3117
- "content": "\"",
3118
- "props": {
3119
- "style": {
3120
- "color": "#ECEFF4"
3121
- }
3122
- }
3123
- }, {
3124
- "content": "types",
3125
- "props": {
3126
- "style": {
3127
- "color": "#8FBCBB"
3128
- }
3129
- }
3130
- }, {
3131
- "content": "\"",
3132
- "props": {
3133
- "style": {
3134
- "color": "#ECEFF4"
3135
- }
3136
- }
3137
- }, {
3138
- "content": ":",
3139
- "props": {
3140
- "style": {
3141
- "color": "#ECEFF4"
3142
- }
3143
- }
3144
- }, {
3145
- "content": " ",
3146
- "props": {
3147
- "style": {
3148
- "color": "#D8DEE9FF"
3149
- }
3150
- }
3151
- }, {
3152
- "content": "\"",
3153
- "props": {
3154
- "style": {
3155
- "color": "#ECEFF4"
3156
- }
3157
- }
3158
- }, {
3159
- "content": "./dist/types/index.d.ts",
3160
- "props": {
3161
- "style": {
3162
- "color": "#A3BE8C"
3163
- }
3164
- }
3165
- }, {
3166
- "content": "\"",
3167
- "props": {
3168
- "style": {
3169
- "color": "#ECEFF4"
3170
- }
3171
- }
3172
- }]
3173
- }, {
3174
- "tokens": [{
3175
- "content": "}",
3176
- "props": {
3177
- "style": {
3178
- "color": "#ECEFF4"
3179
- }
3180
- }
3181
- }]
3182
- }],
3183
- "lang": "json"
3184
- },
3185
- "annotations": []
3186
- }, {
3187
- "name": "stories/index.stories.tsx",
3188
- "focus": "1:1",
3189
- "code": {
3190
- "lines": [{
3191
- "tokens": [{
3192
- "content": "import",
3193
- "props": {
3194
- "style": {
3195
- "color": "#81A1C1"
3196
- }
3197
- }
3198
- }, {
3199
- "content": " ",
3200
- "props": {
3201
- "style": {
3202
- "color": "#D8DEE9FF"
3203
- }
3204
- }
3205
- }, {
3206
- "content": "{",
3207
- "props": {
3208
- "style": {
3209
- "color": "#ECEFF4"
3210
- }
3211
- }
3212
- }, {
3213
- "content": " ",
3214
- "props": {
3215
- "style": {
3216
- "color": "#D8DEE9FF"
3217
- }
3218
- }
3219
- }, {
3220
- "content": "content",
3221
- "props": {
3222
- "style": {
3223
- "color": "#D8DEE9"
3224
- }
3225
- }
3226
- }, {
3227
- "content": " ",
3228
- "props": {
3229
- "style": {
3230
- "color": "#D8DEE9FF"
3231
- }
3232
- }
3233
- }, {
3234
- "content": "}",
3235
- "props": {
3236
- "style": {
3237
- "color": "#ECEFF4"
3238
- }
3239
- }
3240
- }, {
3241
- "content": " ",
3242
- "props": {
3243
- "style": {
3244
- "color": "#D8DEE9FF"
3245
- }
3246
- }
3247
- }, {
3248
- "content": "from",
3249
- "props": {
3250
- "style": {
3251
- "color": "#81A1C1"
3252
- }
3253
- }
3254
- }, {
3255
- "content": " ",
3256
- "props": {
3257
- "style": {
3258
- "color": "#D8DEE9FF"
3259
- }
3260
- }
3261
- }, {
3262
- "content": "'",
3263
- "props": {
3264
- "style": {
3265
- "color": "#ECEFF4"
3266
- }
3267
- }
3268
- }, {
3269
- "content": "foo",
3270
- "props": {
3271
- "style": {
3272
- "color": "#A3BE8C"
3273
- }
3274
- }
3275
- }, {
3276
- "content": "'",
3277
- "props": {
3278
- "style": {
3279
- "color": "#ECEFF4"
3280
- }
3281
- }
3282
- }, {
3283
- "content": ";",
3284
- "props": {
3285
- "style": {
3286
- "color": "#81A1C1"
3287
- }
3288
- }
3289
- }]
3290
- }, {
3291
- "tokens": []
3292
- }, {
3293
- "tokens": [{
3294
- "content": "const",
3295
- "props": {
3296
- "style": {
3297
- "color": "#81A1C1"
3298
- }
3299
- }
3300
- }, {
3301
- "content": " ",
3302
- "props": {
3303
- "style": {
3304
- "color": "#D8DEE9FF"
3305
- }
3306
- }
3307
- }, {
3308
- "content": "Component",
3309
- "props": {
3310
- "style": {
3311
- "color": "#88C0D0"
3312
- }
3313
- }
3314
- }, {
3315
- "content": " ",
3316
- "props": {
3317
- "style": {
3318
- "color": "#D8DEE9FF"
3319
- }
3320
- }
3321
- }, {
3322
- "content": "=",
3323
- "props": {
3324
- "style": {
3325
- "color": "#81A1C1"
3326
- }
3327
- }
3328
- }, {
3329
- "content": " ",
3330
- "props": {
3331
- "style": {
3332
- "color": "#D8DEE9FF"
3333
- }
3334
- }
3335
- }, {
3336
- "content": "()",
3337
- "props": {
3338
- "style": {
3339
- "color": "#ECEFF4"
3340
- }
3341
- }
3342
- }, {
3343
- "content": " ",
3344
- "props": {
3345
- "style": {
3346
- "color": "#D8DEE9FF"
3347
- }
3348
- }
3349
- }, {
3350
- "content": "=>",
3351
- "props": {
3352
- "style": {
3353
- "color": "#81A1C1"
3354
- }
3355
- }
3356
- }, {
3357
- "content": " ",
3358
- "props": {
3359
- "style": {
3360
- "color": "#D8DEE9FF"
3361
- }
3362
- }
3363
- }, {
3364
- "content": "<div>",
3365
- "props": {
3366
- "style": {
3367
- "color": "#81A1C1"
3368
- }
3369
- }
3370
- }, {
3371
- "content": "this is a Story Component ",
3372
- "props": {
3373
- "style": {
3374
- "color": "#D8DEE9FF"
3375
- }
3376
- }
3377
- }, {
3378
- "content": "{",
3379
- "props": {
3380
- "style": {
3381
- "color": "#81A1C1"
3382
- }
3383
- }
3384
- }, {
3385
- "content": "content",
3386
- "props": {
3387
- "style": {
3388
- "color": "#D8DEE9"
3389
- }
3390
- }
3391
- }, {
3392
- "content": "}</div>;",
3393
- "props": {
3394
- "style": {
3395
- "color": "#81A1C1"
3396
- }
3397
- }
3398
- }]
3399
- }, {
3400
- "tokens": []
3401
- }, {
3402
- "tokens": [{
3403
- "content": "export",
3404
- "props": {
3405
- "style": {
3406
- "color": "#81A1C1"
3407
- }
3408
- }
3409
- }, {
3410
- "content": " ",
3411
- "props": {
3412
- "style": {
3413
- "color": "#D8DEE9FF"
3414
- }
3415
- }
3416
- }, {
3417
- "content": "const",
3418
- "props": {
3419
- "style": {
3420
- "color": "#81A1C1"
3421
- }
3422
- }
3423
- }, {
3424
- "content": " ",
3425
- "props": {
3426
- "style": {
3427
- "color": "#D8DEE9FF"
3428
- }
3429
- }
3430
- }, {
3431
- "content": "YourStory",
3432
- "props": {
3433
- "style": {
3434
- "color": "#88C0D0"
3435
- }
3436
- }
3437
- }, {
3438
- "content": " ",
3439
- "props": {
3440
- "style": {
3441
- "color": "#D8DEE9FF"
3442
- }
3443
- }
3444
- }, {
3445
- "content": "=",
3446
- "props": {
3447
- "style": {
3448
- "color": "#81A1C1"
3449
- }
3450
- }
3451
- }, {
3452
- "content": " ",
3453
- "props": {
3454
- "style": {
3455
- "color": "#D8DEE9FF"
3456
- }
3457
- }
3458
- }, {
3459
- "content": "()",
3460
- "props": {
3461
- "style": {
3462
- "color": "#ECEFF4"
3463
- }
3464
- }
3465
- }, {
3466
- "content": " ",
3467
- "props": {
3468
- "style": {
3469
- "color": "#D8DEE9FF"
3470
- }
3471
- }
3472
- }, {
3473
- "content": "=>",
3474
- "props": {
3475
- "style": {
3476
- "color": "#81A1C1"
3477
- }
3478
- }
3479
- }, {
3480
- "content": " ",
3481
- "props": {
3482
- "style": {
3483
- "color": "#D8DEE9FF"
3484
- }
3485
- }
3486
- }, {
3487
- "content": "<",
3488
- "props": {
3489
- "style": {
3490
- "color": "#81A1C1"
3491
- }
3492
- }
3493
- }, {
3494
- "content": "Component",
3495
- "props": {
3496
- "style": {
3497
- "color": "#8FBCBB"
3498
- }
3499
- }
3500
- }, {
3501
- "content": " ",
3502
- "props": {
3503
- "style": {
3504
- "color": "#D8DEE9FF"
3505
- }
3506
- }
3507
- }, {
3508
- "content": "/>;",
3509
- "props": {
3510
- "style": {
3511
- "color": "#81A1C1"
3512
- }
3513
- }
3514
- }]
3515
- }, {
3516
- "tokens": []
3517
- }, {
3518
- "tokens": [{
3519
- "content": "export",
3520
- "props": {
3521
- "style": {
3522
- "color": "#81A1C1"
3523
- }
3524
- }
3525
- }, {
3526
- "content": " ",
3527
- "props": {
3528
- "style": {
3529
- "color": "#D8DEE9FF"
3530
- }
3531
- }
3532
- }, {
3533
- "content": "default",
3534
- "props": {
3535
- "style": {
3536
- "color": "#81A1C1"
3537
- }
3538
- }
3539
- }, {
3540
- "content": " ",
3541
- "props": {
3542
- "style": {
3543
- "color": "#D8DEE9FF"
3544
- }
3545
- }
3546
- }, {
3547
- "content": "{",
3548
- "props": {
3549
- "style": {
3550
- "color": "#ECEFF4"
3551
- }
3552
- }
3553
- }]
3554
- }, {
3555
- "tokens": [{
3556
- "content": " ",
3557
- "props": {
3558
- "style": {
3559
- "color": "#D8DEE9FF"
3560
- }
3561
- }
3562
- }, {
3563
- "content": "title",
3564
- "props": {
3565
- "style": {
3566
- "color": "#D8DEE9"
3567
- }
3568
- }
3569
- }, {
3570
- "content": ":",
3571
- "props": {
3572
- "style": {
3573
- "color": "#ECEFF4"
3574
- }
3575
- }
3576
- }, {
3577
- "content": " ",
3578
- "props": {
3579
- "style": {
3580
- "color": "#D8DEE9FF"
3581
- }
3582
- }
3583
- }, {
3584
- "content": "'",
3585
- "props": {
3586
- "style": {
3587
- "color": "#ECEFF4"
3588
- }
3589
- }
3590
- }, {
3591
- "content": "Your Stories",
3592
- "props": {
3593
- "style": {
3594
- "color": "#A3BE8C"
3595
- }
3596
- }
3597
- }, {
3598
- "content": "'",
3599
- "props": {
3600
- "style": {
3601
- "color": "#ECEFF4"
3602
- }
3603
- }
3604
- }, {
3605
- "content": ",",
3606
- "props": {
3607
- "style": {
3608
- "color": "#ECEFF4"
3609
- }
3610
- }
3611
- }]
3612
- }, {
3613
- "tokens": [{
3614
- "content": "}",
3615
- "props": {
3616
- "style": {
3617
- "color": "#ECEFF4"
3618
- }
3619
- }
3620
- }, {
3621
- "content": ";",
3622
- "props": {
3623
- "style": {
3624
- "color": "#81A1C1"
3625
- }
3626
- }
3627
- }]
3628
- }],
3629
- "lang": "tsx"
3630
- },
3631
- "annotations": []
3632
- }],
3633
- "southPanel": undefined
3634
- }],
3635
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
3636
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})
3637
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
3638
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3639
- children: ["确保 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3640
- children: "package.json"
3641
- }), " 的 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3642
- children: "main"
3643
- }), " 和 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3644
- children: "types"
3645
- }), "\n的值为正确的产物路径。"]
3646
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})]
3647
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
3648
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3649
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3650
- children: "foo"
3651
- }), " 项目的源码。"]
3652
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})]
3653
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
3654
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3655
- children: ["确保在 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3656
- children: "stories/tsconfig.json"
3657
- }), " 中设置了指向项目根目录的 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3658
- children: "paths"
3659
- }), " 配置。\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3660
- children: "paths"
3661
- }), " 的 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3662
- children: "key"
3663
- }), " 与项目名称相同,这样在编译过程中以及在代码中不会出现问题。"]
3664
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})]
3665
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
3666
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
3667
- children: "最后在 Story 代码中直接以项目名称的方式引用。"
3668
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})]
3669
- })]
3670
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.div, {
3671
- className: "modern-directive info",
3672
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
3673
- className: "modern-directive-title",
3674
- children: "INFO"
3675
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.div, {
3676
- className: "modern-directive-content",
3677
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
3678
- children: "\n在开发过程中,可能会遇到无法实时获得类型定义的情况。因为只有当保存代码后,产物目录下的类型文件才会更新。此时:"
3679
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3680
- children: ["对于 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3681
- children: "pnpm"
3682
- }), " 的项目,可以按照下面的内容对 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3683
- children: "package.json"
3684
- }), " 进行修改:"]
3685
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
3686
- codeConfig: chCodeConfig,
3687
- northPanel: {
3688
- "tabs": [""],
3689
- "active": "",
3690
- "heightRatio": 1
3691
- },
3692
- files: [{
3693
- "name": "",
3694
- "focus": "4:7",
3695
- "code": {
3696
- "lines": [{
3697
- "tokens": [{
3698
- "content": "{",
3699
- "props": {
3700
- "style": {
3701
- "color": "#ECEFF4"
3702
- }
3703
- }
3704
- }]
3705
- }, {
3706
- "tokens": [{
3707
- "content": " ",
3708
- "props": {
3709
- "style": {
3710
- "color": "#D8DEE9FF"
3711
- }
3712
- }
3713
- }, {
3714
- "content": "\"",
3715
- "props": {
3716
- "style": {
3717
- "color": "#ECEFF4"
3718
- }
3719
- }
3720
- }, {
3721
- "content": "name",
3722
- "props": {
3723
- "style": {
3724
- "color": "#A3BE8C"
3725
- }
3726
- }
3727
- }, {
3728
- "content": "\"",
3729
- "props": {
3730
- "style": {
3731
- "color": "#ECEFF4"
3732
- }
3733
- }
3734
- }, {
3735
- "content": ": ",
3736
- "props": {
3737
- "style": {
3738
- "color": "#D8DEE9FF"
3739
- }
3740
- }
3741
- }, {
3742
- "content": "\"",
3743
- "props": {
3744
- "style": {
3745
- "color": "#ECEFF4"
3746
- }
3747
- }
3748
- }, {
3749
- "content": "foo",
3750
- "props": {
3751
- "style": {
3752
- "color": "#A3BE8C"
3753
- }
3754
- }
3755
- }, {
3756
- "content": "\"",
3757
- "props": {
3758
- "style": {
3759
- "color": "#ECEFF4"
3760
- }
3761
- }
3762
- }, {
3763
- "content": ",",
3764
- "props": {
3765
- "style": {
3766
- "color": "#ECEFF4"
3767
- }
3768
- }
3769
- }]
3770
- }, {
3771
- "tokens": [{
3772
- "content": " ",
3773
- "props": {
3774
- "style": {
3775
- "color": "#D8DEE9FF"
3776
- }
3777
- }
3778
- }, {
3779
- "content": "\"",
3780
- "props": {
3781
- "style": {
3782
- "color": "#ECEFF4"
3783
- }
3784
- }
3785
- }, {
3786
- "content": "main",
3787
- "props": {
3788
- "style": {
3789
- "color": "#A3BE8C"
3790
- }
3791
- }
3792
- }, {
3793
- "content": "\"",
3794
- "props": {
3795
- "style": {
3796
- "color": "#ECEFF4"
3797
- }
3798
- }
3799
- }, {
3800
- "content": ": ",
3801
- "props": {
3802
- "style": {
3803
- "color": "#D8DEE9FF"
3804
- }
3805
- }
3806
- }, {
3807
- "content": "\"",
3808
- "props": {
3809
- "style": {
3810
- "color": "#ECEFF4"
3811
- }
3812
- }
3813
- }, {
3814
- "content": "./dist/index.js",
3815
- "props": {
3816
- "style": {
3817
- "color": "#A3BE8C"
3818
- }
3819
- }
3820
- }, {
3821
- "content": "\"",
3822
- "props": {
3823
- "style": {
3824
- "color": "#ECEFF4"
3825
- }
3826
- }
3827
- }, {
3828
- "content": ",",
3829
- "props": {
3830
- "style": {
3831
- "color": "#ECEFF4"
3832
- }
3833
- }
3834
- }]
3835
- }, {
3836
- "tokens": [{
3837
- "content": " ",
3838
- "props": {
3839
- "style": {
3840
- "color": "#D8DEE9FF"
3841
- }
3842
- }
3843
- }, {
3844
- "content": "\"",
3845
- "props": {
3846
- "style": {
3847
- "color": "#ECEFF4"
3848
- }
3849
- }
3850
- }, {
3851
- "content": "types",
3852
- "props": {
3853
- "style": {
3854
- "color": "#A3BE8C"
3855
- }
3856
- }
3857
- }, {
3858
- "content": "\"",
3859
- "props": {
3860
- "style": {
3861
- "color": "#ECEFF4"
3862
- }
3863
- }
3864
- }, {
3865
- "content": ": ",
3866
- "props": {
3867
- "style": {
3868
- "color": "#D8DEE9FF"
3869
- }
3870
- }
3871
- }, {
3872
- "content": "\"",
3873
- "props": {
3874
- "style": {
3875
- "color": "#ECEFF4"
3876
- }
3877
- }
3878
- }, {
3879
- "content": "./src/index.ts",
3880
- "props": {
3881
- "style": {
3882
- "color": "#A3BE8C"
3883
- }
3884
- }
3885
- }, {
3886
- "content": "\"",
3887
- "props": {
3888
- "style": {
3889
- "color": "#ECEFF4"
3890
- }
3891
- }
3892
- }, {
3893
- "content": ",",
3894
- "props": {
3895
- "style": {
3896
- "color": "#ECEFF4"
3897
- }
3898
- }
3899
- }]
3900
- }, {
3901
- "tokens": [{
3902
- "content": " ",
3903
- "props": {
3904
- "style": {
3905
- "color": "#D8DEE9FF"
3906
- }
3907
- }
3908
- }, {
3909
- "content": "\"",
3910
- "props": {
3911
- "style": {
3912
- "color": "#ECEFF4"
3913
- }
3914
- }
3915
- }, {
3916
- "content": "publishConfig",
3917
- "props": {
3918
- "style": {
3919
- "color": "#A3BE8C"
3920
- }
3921
- }
3922
- }, {
3923
- "content": "\"",
3924
- "props": {
3925
- "style": {
3926
- "color": "#ECEFF4"
3927
- }
3928
- }
3929
- }, {
3930
- "content": ": ",
3931
- "props": {
3932
- "style": {
3933
- "color": "#D8DEE9FF"
3934
- }
3935
- }
3936
- }, {
3937
- "content": "{",
3938
- "props": {
3939
- "style": {
3940
- "color": "#ECEFF4"
3941
- }
3942
- }
3943
- }]
3944
- }, {
3945
- "tokens": [{
3946
- "content": " ",
3947
- "props": {
3948
- "style": {
3949
- "color": "#D8DEE9FF"
3950
- }
3951
- }
3952
- }, {
3953
- "content": "\"",
3954
- "props": {
3955
- "style": {
3956
- "color": "#ECEFF4"
3957
- }
3958
- }
3959
- }, {
3960
- "content": "types",
3961
- "props": {
3962
- "style": {
3963
- "color": "#A3BE8C"
3964
- }
3965
- }
3966
- }, {
3967
- "content": "\"",
3968
- "props": {
3969
- "style": {
3970
- "color": "#ECEFF4"
3971
- }
3972
- }
3973
- }, {
3974
- "content": ":",
3975
- "props": {
3976
- "style": {
3977
- "color": "#ECEFF4"
3978
- }
3979
- }
3980
- }, {
3981
- "content": " ",
3982
- "props": {
3983
- "style": {
3984
- "color": "#D8DEE9FF"
3985
- }
3986
- }
3987
- }, {
3988
- "content": "\"",
3989
- "props": {
3990
- "style": {
3991
- "color": "#ECEFF4"
3992
- }
3993
- }
3994
- }, {
3995
- "content": "./dist/index.d.ts",
3996
- "props": {
3997
- "style": {
3998
- "color": "#A3BE8C"
3999
- }
4000
- }
4001
- }, {
4002
- "content": "\"",
4003
- "props": {
4004
- "style": {
4005
- "color": "#ECEFF4"
4006
- }
4007
- }
4008
- }, {
4009
- "content": ",",
4010
- "props": {
4011
- "style": {
4012
- "color": "#ECEFF4"
4013
- }
4014
- }
4015
- }]
4016
- }, {
4017
- "tokens": [{
4018
- "content": " ",
4019
- "props": {
4020
- "style": {
4021
- "color": "#D8DEE9FF"
4022
- }
4023
- }
4024
- }, {
4025
- "content": "}",
4026
- "props": {
4027
- "style": {
4028
- "color": "#ECEFF4"
4029
- }
4030
- }
4031
- }]
4032
- }, {
4033
- "tokens": [{
4034
- "content": "}",
4035
- "props": {
4036
- "style": {
4037
- "color": "#ECEFF4"
4038
- }
4039
- }
4040
- }]
4041
- }],
4042
- "lang": "ts"
4043
- },
4044
- "annotations": []
4045
- }]
4046
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.blockquote, {
4047
- children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
4048
- children: ["关于 pnpm 的 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
4049
- children: "publishConfig"
4050
- }), " 的使用,可以阅读下面这个", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
4051
- href: "https://pnpm.io/package_json#publishconfig",
4052
- target: "_blank",
4053
- rel: "nofollow",
4054
- children: "链接"
4055
- }), "。"]
4056
- }), "\n"]
4057
- }), "而对于 npm 和 Yarn 的项目,则只能通过手动的方式在", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
4058
- children: "开发阶段"
4059
- }), "和", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
4060
- children: "发布阶段"
4061
- }), "对 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
4062
- children: "package.json"
4063
- }), " 的 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
4064
- children: "types"
4065
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
4066
- children: "的值进行修改。"
4067
- })]
4068
- })]
4069
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
4070
- children: "那么为什么可以直接引用产物呢?"
4071
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ol, {
4072
- children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
4073
- children: ["在执行 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
4074
- children: "modern dev storybook"
4075
- }), " 命令之前,会自动执行 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
4076
- children: "modern build"
4077
- }), " 命令,保证项目构建产物的存在。"]
4078
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
4079
- children: ["在 Storybook 内部增加了针对 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
4080
- children: "tsconfig.json"
4081
- }), " 文件或者以项目名称作为别名的处理,保证能够", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.strong, {
4082
- children: ["根据 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
4083
- children: "package.json"
4084
- }), " 解析出项目的产物路径"]
4085
- }), "。"]
4086
- }), "\n"]
4087
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h3, {
4088
- id: "引用组件源码",
4089
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
4090
- className: "header-anchor",
4091
- "aria-hidden": "true",
4092
- href: "#引用组件源码",
4093
- children: "#"
4094
- }), "引用组件源码"]
4095
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
4096
- children: "引用组件的源码可以通过相对路径的方式:"
4097
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
4098
- codeConfig: chCodeConfig,
4099
- northPanel: {
4100
- "tabs": ["./stories/index.tsx"],
4101
- "active": "./stories/index.tsx",
4102
- "heightRatio": 1
4103
- },
4104
- files: [{
4105
- "name": "./stories/index.tsx",
4106
- "focus": "",
4107
- "code": {
4108
- "lines": [{
4109
- "tokens": [{
4110
- "content": "import",
4111
- "props": {
4112
- "style": {
4113
- "color": "#81A1C1"
4114
- }
4115
- }
4116
- }, {
4117
- "content": " ",
4118
- "props": {
4119
- "style": {
4120
- "color": "#D8DEE9FF"
4121
- }
4122
- }
4123
- }, {
4124
- "content": "{",
4125
- "props": {
4126
- "style": {
4127
- "color": "#ECEFF4"
4128
- }
4129
- }
4130
- }, {
4131
- "content": " ",
4132
- "props": {
4133
- "style": {
4134
- "color": "#D8DEE9FF"
4135
- }
4136
- }
4137
- }, {
4138
- "content": "content",
4139
- "props": {
4140
- "style": {
4141
- "color": "#D8DEE9"
4142
- }
4143
- }
4144
- }, {
4145
- "content": " ",
4146
- "props": {
4147
- "style": {
4148
- "color": "#D8DEE9FF"
4149
- }
4150
- }
4151
- }, {
4152
- "content": "}",
4153
- "props": {
4154
- "style": {
4155
- "color": "#ECEFF4"
4156
- }
4157
- }
4158
- }, {
4159
- "content": " ",
4160
- "props": {
4161
- "style": {
4162
- "color": "#D8DEE9FF"
4163
- }
4164
- }
4165
- }, {
4166
- "content": "from",
4167
- "props": {
4168
- "style": {
4169
- "color": "#81A1C1"
4170
- }
4171
- }
4172
- }, {
4173
- "content": " ",
4174
- "props": {
4175
- "style": {
4176
- "color": "#D8DEE9FF"
4177
- }
4178
- }
4179
- }, {
4180
- "content": "'",
4181
- "props": {
4182
- "style": {
4183
- "color": "#ECEFF4"
4184
- }
4185
- }
4186
- }, {
4187
- "content": "../src",
4188
- "props": {
4189
- "style": {
4190
- "color": "#A3BE8C"
4191
- }
4192
- }
4193
- }, {
4194
- "content": "'",
4195
- "props": {
4196
- "style": {
4197
- "color": "#ECEFF4"
4198
- }
4199
- }
4200
- }, {
4201
- "content": ";",
4202
- "props": {
4203
- "style": {
4204
- "color": "#81A1C1"
4205
- }
4206
- }
4207
- }]
4208
- }, {
4209
- "tokens": []
4210
- }, {
4211
- "tokens": [{
4212
- "content": "const",
4213
- "props": {
4214
- "style": {
4215
- "color": "#81A1C1"
4216
- }
4217
- }
4218
- }, {
4219
- "content": " ",
4220
- "props": {
4221
- "style": {
4222
- "color": "#D8DEE9FF"
4223
- }
4224
- }
4225
- }, {
4226
- "content": "Component",
4227
- "props": {
4228
- "style": {
4229
- "color": "#88C0D0"
4230
- }
4231
- }
4232
- }, {
4233
- "content": " ",
4234
- "props": {
4235
- "style": {
4236
- "color": "#D8DEE9FF"
4237
- }
4238
- }
4239
- }, {
4240
- "content": "=",
4241
- "props": {
4242
- "style": {
4243
- "color": "#81A1C1"
4244
- }
4245
- }
4246
- }, {
4247
- "content": " ",
4248
- "props": {
4249
- "style": {
4250
- "color": "#D8DEE9FF"
4251
- }
4252
- }
4253
- }, {
4254
- "content": "()",
4255
- "props": {
4256
- "style": {
4257
- "color": "#ECEFF4"
4258
- }
4259
- }
4260
- }, {
4261
- "content": " ",
4262
- "props": {
4263
- "style": {
4264
- "color": "#D8DEE9FF"
4265
- }
4266
- }
4267
- }, {
4268
- "content": "=>",
4269
- "props": {
4270
- "style": {
4271
- "color": "#81A1C1"
4272
- }
4273
- }
4274
- }, {
4275
- "content": " <",
4276
- "props": {
4277
- "style": {
4278
- "color": "#D8DEE9FF"
4279
- }
4280
- }
4281
- }, {
4282
- "content": "div",
4283
- "props": {
4284
- "style": {
4285
- "color": "#8FBCBB"
4286
- }
4287
- }
4288
- }, {
4289
- "content": ">",
4290
- "props": {
4291
- "style": {
4292
- "color": "#D8DEE9FF"
4293
- }
4294
- }
4295
- }, {
4296
- "content": "this",
4297
- "props": {
4298
- "style": {
4299
- "color": "#81A1C1"
4300
- }
4301
- }
4302
- }, {
4303
- "content": " ",
4304
- "props": {
4305
- "style": {
4306
- "color": "#D8DEE9FF"
4307
- }
4308
- }
4309
- }, {
4310
- "content": "is",
4311
- "props": {
4312
- "style": {
4313
- "color": "#D8DEE9"
4314
- }
4315
- }
4316
- }, {
4317
- "content": " ",
4318
- "props": {
4319
- "style": {
4320
- "color": "#D8DEE9FF"
4321
- }
4322
- }
4323
- }, {
4324
- "content": "a",
4325
- "props": {
4326
- "style": {
4327
- "color": "#D8DEE9"
4328
- }
4329
- }
4330
- }, {
4331
- "content": " ",
4332
- "props": {
4333
- "style": {
4334
- "color": "#D8DEE9FF"
4335
- }
4336
- }
4337
- }, {
4338
- "content": "Story",
4339
- "props": {
4340
- "style": {
4341
- "color": "#D8DEE9"
4342
- }
4343
- }
4344
- }, {
4345
- "content": " ",
4346
- "props": {
4347
- "style": {
4348
- "color": "#D8DEE9FF"
4349
- }
4350
- }
4351
- }, {
4352
- "content": "Component",
4353
- "props": {
4354
- "style": {
4355
- "color": "#D8DEE9"
4356
- }
4357
- }
4358
- }, {
4359
- "content": " ",
4360
- "props": {
4361
- "style": {
4362
- "color": "#D8DEE9FF"
4363
- }
4364
- }
4365
- }, {
4366
- "content": "{",
4367
- "props": {
4368
- "style": {
4369
- "color": "#ECEFF4"
4370
- }
4371
- }
4372
- }, {
4373
- "content": "content",
4374
- "props": {
4375
- "style": {
4376
- "color": "#D8DEE9"
4377
- }
4378
- }
4379
- }, {
4380
- "content": "}",
4381
- "props": {
4382
- "style": {
4383
- "color": "#ECEFF4"
4384
- }
4385
- }
4386
- }, {
4387
- "content": "</",
4388
- "props": {
4389
- "style": {
4390
- "color": "#81A1C1"
4391
- }
4392
- }
4393
- }, {
4394
- "content": "div",
4395
- "props": {
4396
- "style": {
4397
- "color": "#D8DEE9"
4398
- }
4399
- }
4400
- }, {
4401
- "content": ">;",
4402
- "props": {
4403
- "style": {
4404
- "color": "#81A1C1"
4405
- }
4406
- }
4407
- }]
4408
- }, {
4409
- "tokens": []
4410
- }, {
4411
- "tokens": [{
4412
- "content": "export",
4413
- "props": {
4414
- "style": {
4415
- "color": "#81A1C1"
4416
- }
4417
- }
4418
- }, {
4419
- "content": " ",
4420
- "props": {
4421
- "style": {
4422
- "color": "#D8DEE9FF"
4423
- }
4424
- }
4425
- }, {
4426
- "content": "const",
4427
- "props": {
4428
- "style": {
4429
- "color": "#81A1C1"
4430
- }
4431
- }
4432
- }, {
4433
- "content": " ",
4434
- "props": {
4435
- "style": {
4436
- "color": "#D8DEE9FF"
4437
- }
4438
- }
4439
- }, {
4440
- "content": "YourStory",
4441
- "props": {
4442
- "style": {
4443
- "color": "#88C0D0"
4444
- }
4445
- }
4446
- }, {
4447
- "content": " ",
4448
- "props": {
4449
- "style": {
4450
- "color": "#D8DEE9FF"
4451
- }
4452
- }
4453
- }, {
4454
- "content": "=",
4455
- "props": {
4456
- "style": {
4457
- "color": "#81A1C1"
4458
- }
4459
- }
4460
- }, {
4461
- "content": " ",
4462
- "props": {
4463
- "style": {
4464
- "color": "#D8DEE9FF"
4465
- }
4466
- }
4467
- }, {
4468
- "content": "()",
4469
- "props": {
4470
- "style": {
4471
- "color": "#ECEFF4"
4472
- }
4473
- }
4474
- }, {
4475
- "content": " ",
4476
- "props": {
4477
- "style": {
4478
- "color": "#D8DEE9FF"
4479
- }
4480
- }
4481
- }, {
4482
- "content": "=>",
4483
- "props": {
4484
- "style": {
4485
- "color": "#81A1C1"
4486
- }
4487
- }
4488
- }, {
4489
- "content": " <",
4490
- "props": {
4491
- "style": {
4492
- "color": "#D8DEE9FF"
4493
- }
4494
- }
4495
- }, {
4496
- "content": "Component",
4497
- "props": {
4498
- "style": {
4499
- "color": "#8FBCBB"
4500
- }
4501
- }
4502
- }, {
4503
- "content": " />",
4504
- "props": {
4505
- "style": {
4506
- "color": "#D8DEE9FF"
4507
- }
4508
- }
4509
- }, {
4510
- "content": ";",
4511
- "props": {
4512
- "style": {
4513
- "color": "#81A1C1"
4514
- }
4515
- }
4516
- }]
4517
- }, {
4518
- "tokens": []
4519
- }, {
4520
- "tokens": [{
4521
- "content": "export",
4522
- "props": {
4523
- "style": {
4524
- "color": "#81A1C1"
4525
- }
4526
- }
4527
- }, {
4528
- "content": " ",
4529
- "props": {
4530
- "style": {
4531
- "color": "#D8DEE9FF"
4532
- }
4533
- }
4534
- }, {
4535
- "content": "default",
4536
- "props": {
4537
- "style": {
4538
- "color": "#81A1C1"
4539
- }
4540
- }
4541
- }, {
4542
- "content": " ",
4543
- "props": {
4544
- "style": {
4545
- "color": "#D8DEE9FF"
4546
- }
4547
- }
4548
- }, {
4549
- "content": "{",
4550
- "props": {
4551
- "style": {
4552
- "color": "#ECEFF4"
4553
- }
4554
- }
4555
- }]
4556
- }, {
4557
- "tokens": [{
4558
- "content": " ",
4559
- "props": {
4560
- "style": {
4561
- "color": "#D8DEE9FF"
4562
- }
4563
- }
4564
- }, {
4565
- "content": "title",
4566
- "props": {
4567
- "style": {
4568
- "color": "#D8DEE9"
4569
- }
4570
- }
4571
- }, {
4572
- "content": ":",
4573
- "props": {
4574
- "style": {
4575
- "color": "#ECEFF4"
4576
- }
4577
- }
4578
- }, {
4579
- "content": " ",
4580
- "props": {
4581
- "style": {
4582
- "color": "#D8DEE9FF"
4583
- }
4584
- }
4585
- }, {
4586
- "content": "'",
4587
- "props": {
4588
- "style": {
4589
- "color": "#ECEFF4"
4590
- }
4591
- }
4592
- }, {
4593
- "content": "Your Stories",
4594
- "props": {
4595
- "style": {
4596
- "color": "#A3BE8C"
4597
- }
4598
- }
4599
- }, {
4600
- "content": "'",
4601
- "props": {
4602
- "style": {
4603
- "color": "#ECEFF4"
4604
- }
4605
- }
4606
- }, {
4607
- "content": ",",
4608
- "props": {
4609
- "style": {
4610
- "color": "#ECEFF4"
4611
- }
4612
- }
4613
- }]
4614
- }, {
4615
- "tokens": [{
4616
- "content": "}",
4617
- "props": {
4618
- "style": {
4619
- "color": "#ECEFF4"
4620
- }
4621
- }
4622
- }, {
4623
- "content": ";",
4624
- "props": {
4625
- "style": {
4626
- "color": "#81A1C1"
4627
- }
4628
- }
4629
- }]
4630
- }],
4631
- "lang": "ts"
4632
- },
4633
- "annotations": []
4634
- }]
4635
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
4636
- children: "那么为什么不推荐使用源码的方式呢?"
4637
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
4638
- children: ["不仅仅是因为使用组件源码无法验证组件产物是否正确,", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
4639
- children: "同时模块工程对于构建产物支持的一些配置无法完全转换为 Storybook\n内部的配置"
4640
- }), "。如果某些配置无法进行相互转换的话,就会在 Storybook 调试过程中出现不符合预期的结果。"]
4641
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
4642
- id: "配置-storybook",
4643
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
4644
- className: "header-anchor",
4645
- "aria-hidden": "true",
4646
- href: "#配置-storybook",
4647
- children: "#"
4648
- }), "配置 Storybook"]
4649
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
4650
- children: ["Storybook 官方通过一个名为 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
4651
- children: ".storybook"
4652
- }), " 的文件夹来进行项目配置,其中包含各种配置文件。", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.strong, {
4653
- children: ["在模块工程方案中,可以在项目的 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
4654
- children: "config/storybook"
4655
- }), " 目录下增加 Storybook 配置文件。"]
4656
- })]
4657
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
4658
- children: "关于 Storybook 各种配置文件的使用方式,可以查看下面的链接:"
4659
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
4660
- children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
4661
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
4662
- href: "https://storybook.js.org/docs/react/configure/overview",
4663
- target: "_blank",
4664
- rel: "nofollow",
4665
- children: "Configure Storybook"
4666
- })
4667
- }), "\n"]
4668
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
4669
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
4670
- children: "不过在模块项目里进行 Storybook 存在一些限制"
4671
- }), ":"]
4672
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
4673
- children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
4674
- children: ["目前不能修改 Story 文件存放的位置,即无法在 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
4675
- children: "main.js"
4676
- }), " 文件里修改 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
4677
- children: "stories"
4678
- }), " 配置。"]
4679
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
4680
- children: ["目前不能修改 Webpack 和 Babel 相关的配置,即无法在 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
4681
- children: "main.js"
4682
- }), " 文件里修改 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
4683
- children: "webpackFinal"
4684
- }), " 和 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
4685
- children: "babel"
4686
- }), " 配置。"]
4687
- }), "\n"]
4688
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
4689
- children: "在未来我们会考虑这些配置是否可以允许修改,不过目前为了减少不可预知的问题暂时限制使用这些配置。"
4690
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
4691
- id: "构建-storybook-产物",
4692
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
4693
- className: "header-anchor",
4694
- "aria-hidden": "true",
4695
- href: "#构建-storybook-产物",
4696
- children: "#"
4697
- }), "构建 Storybook 产物"]
4698
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
4699
- children: "除了可以对组件或者普通的模块进行 Storybook 调试,还可以通过下面的命令来执行 Storybook 的构建任务。"
4700
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
4701
- codeConfig: chCodeConfig,
4702
- northPanel: {
4703
- "tabs": [""],
4704
- "active": "",
4705
- "heightRatio": 1
4706
- },
4707
- files: [{
4708
- "name": "",
4709
- "focus": "",
4710
- "code": {
4711
- "lines": [{
4712
- "tokens": [{
4713
- "content": "modern build --platform storybook",
4714
- "props": {
4715
- "style": {
4716
- "color": "#D8DEE9FF"
4717
- }
4718
- }
4719
- }]
4720
- }],
4721
- "lang": "bash"
4722
- },
4723
- "annotations": []
4724
- }]
4725
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
4726
- children: ["关于 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
4727
- children: "modern build --platform"
4728
- }), " 命令可以查看:"]
4729
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
4730
- children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
4731
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
4732
- href: "/module-tools/guide/basic/command-preview.html#modern-build",
4733
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
4734
- children: "modern build"
4735
- })
4736
- })
4737
- }), "\n"]
4738
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
4739
- children: ["构建完成后,可以在 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
4740
- children: "dist/storybook-static"
4741
- }), " 目录看到构建产物文件。"]
4742
- })]
4743
- });
4744
- }
4745
- function MDXContent(props = {}) {
4746
- const {wrapper: MDXLayout} = props.components || ({});
4747
- return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
4748
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
4749
- })) : _createMdxContent(props);
4750
- }
4751
- /* harmony default export */ __webpack_exports__["default"] = (MDXContent);
4752
- function _missingMdxReference(id, component, place) {
4753
- throw new Error("Expected " + (component ? "component" : "object") + " `" + id + "` to be defined: you likely forgot to import, pass, or provide it." + (place ? "\nIt’s referenced in your code at `" + place + "` in `/Users/bytedance/github/targeral/modern-dev/website/module-tools/docs/zh/guide/basic/using-storybook.mdx`" : ""));
4754
- }
4755
-
4756
-
4757
- /***/ })
4758
-
4759
- }]);
4760
- //# sourceMappingURL=zh_guide_basic_using-storybook.js.map