@modern-js/module-tools-docs 2.0.1 → 2.0.2

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