storybook-addon-dependency-previews 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/README.md +192 -0
  2. package/dist/_virtual/_rolldown/runtime.cjs +29 -0
  3. package/dist/addon/index.cjs +12 -0
  4. package/dist/addon/index.cjs.map +1 -0
  5. package/dist/addon/index.d.cts +5 -0
  6. package/dist/addon/index.d.mts +5 -0
  7. package/dist/addon/index.mjs +11 -0
  8. package/dist/addon/index.mjs.map +1 -0
  9. package/dist/addon/preset.cjs +8 -0
  10. package/dist/addon/preset.cjs.map +1 -0
  11. package/dist/addon/preset.d.cts +5 -0
  12. package/dist/addon/preset.d.mts +5 -0
  13. package/dist/addon/preset.mjs +6 -0
  14. package/dist/addon/preset.mjs.map +1 -0
  15. package/dist/addon/vitePlugin.cjs +26 -0
  16. package/dist/addon/vitePlugin.cjs.map +1 -0
  17. package/dist/addon/vitePlugin.d.cts +9 -0
  18. package/dist/addon/vitePlugin.d.mts +9 -0
  19. package/dist/addon/vitePlugin.mjs +24 -0
  20. package/dist/addon/vitePlugin.mjs.map +1 -0
  21. package/dist/blocks/DependencyPreviews.cjs +102 -0
  22. package/dist/blocks/DependencyPreviews.cjs.map +1 -0
  23. package/dist/blocks/DependencyPreviews.d.cts +7 -0
  24. package/dist/blocks/DependencyPreviews.d.mts +7 -0
  25. package/dist/blocks/DependencyPreviews.mjs +100 -0
  26. package/dist/blocks/DependencyPreviews.mjs.map +1 -0
  27. package/dist/blocks/DependencyPreviews.module.css +14 -0
  28. package/dist/blocks/index.cjs +1 -0
  29. package/dist/blocks/index.d.cts +1 -0
  30. package/dist/blocks/index.d.mts +1 -0
  31. package/dist/blocks/index.mjs +1 -0
  32. package/dist/cli/sb-deps.cjs +321 -0
  33. package/dist/cli/sb-deps.cjs.map +1 -0
  34. package/dist/cli/sb-deps.d.cts +1 -0
  35. package/dist/cli/sb-deps.d.mts +1 -0
  36. package/dist/cli/sb-deps.mjs +319 -0
  37. package/dist/cli/sb-deps.mjs.map +1 -0
  38. package/dist/cli/scripts/depcruise.config.cjs +38 -0
  39. package/dist/cli/scripts/depcruise.config.cjs.map +1 -0
  40. package/dist/cli/scripts/depcruise.config.d.cts +6 -0
  41. package/dist/cli/scripts/depcruise.config.d.mts +7 -0
  42. package/dist/cli/scripts/depcruise.config.mjs +37 -0
  43. package/dist/cli/scripts/depcruise.config.mjs.map +1 -0
  44. package/dist/cli/scripts/postprocess.cjs +106 -0
  45. package/dist/cli/scripts/postprocess.cjs.map +1 -0
  46. package/dist/cli/scripts/postprocess.d.cts +1 -0
  47. package/dist/cli/scripts/postprocess.d.mts +1 -0
  48. package/dist/cli/scripts/postprocess.mjs +106 -0
  49. package/dist/cli/scripts/postprocess.mjs.map +1 -0
  50. package/dist/components/ComponentSourceLink.cjs +42 -0
  51. package/dist/components/ComponentSourceLink.cjs.map +1 -0
  52. package/dist/components/ComponentSourceLink.mjs +40 -0
  53. package/dist/components/ComponentSourceLink.mjs.map +1 -0
  54. package/dist/components/ComponentSourceLink.module.css +5 -0
  55. package/dist/components/CopyButton.cjs +112 -0
  56. package/dist/components/CopyButton.cjs.map +1 -0
  57. package/dist/components/CopyButton.mjs +110 -0
  58. package/dist/components/CopyButton.mjs.map +1 -0
  59. package/dist/components/CopyButton.module.css +76 -0
  60. package/dist/components/Expandable.cjs +51 -0
  61. package/dist/components/Expandable.cjs.map +1 -0
  62. package/dist/components/Expandable.mjs +49 -0
  63. package/dist/components/Expandable.mjs.map +1 -0
  64. package/dist/components/Expandable.module.css +110 -0
  65. package/dist/components/FullParityStory.cjs +47 -0
  66. package/dist/components/FullParityStory.cjs.map +1 -0
  67. package/dist/components/FullParityStory.mjs +44 -0
  68. package/dist/components/FullParityStory.mjs.map +1 -0
  69. package/dist/components/PathCopyMolecule.cjs +28 -0
  70. package/dist/components/PathCopyMolecule.cjs.map +1 -0
  71. package/dist/components/PathCopyMolecule.mjs +26 -0
  72. package/dist/components/PathCopyMolecule.mjs.map +1 -0
  73. package/dist/components/PathCopyMolecule.module.css +14 -0
  74. package/dist/components/PrimaryPreview.cjs +35 -0
  75. package/dist/components/PrimaryPreview.cjs.map +1 -0
  76. package/dist/components/PrimaryPreview.mjs +34 -0
  77. package/dist/components/PrimaryPreview.mjs.map +1 -0
  78. package/dist/components/SbHeading.cjs +18 -0
  79. package/dist/components/SbHeading.cjs.map +1 -0
  80. package/dist/components/SbHeading.mjs +16 -0
  81. package/dist/components/SbHeading.mjs.map +1 -0
  82. package/dist/components/SbHeading.module.css +23 -0
  83. package/dist/components/StoryLink.cjs +45 -0
  84. package/dist/components/StoryLink.cjs.map +1 -0
  85. package/dist/components/StoryLink.mjs +43 -0
  86. package/dist/components/StoryLink.mjs.map +1 -0
  87. package/dist/components/StoryLink.module.css +13 -0
  88. package/dist/components/TooltipTrigger.cjs +100 -0
  89. package/dist/components/TooltipTrigger.cjs.map +1 -0
  90. package/dist/components/TooltipTrigger.mjs +98 -0
  91. package/dist/components/TooltipTrigger.mjs.map +1 -0
  92. package/dist/components/TooltipTrigger.module.css +62 -0
  93. package/dist/components/icons/ArrowToRectangleIcon.cjs +19 -0
  94. package/dist/components/icons/ArrowToRectangleIcon.cjs.map +1 -0
  95. package/dist/components/icons/ArrowToRectangleIcon.mjs +18 -0
  96. package/dist/components/icons/ArrowToRectangleIcon.mjs.map +1 -0
  97. package/dist/components/icons/BuildIcon.cjs +19 -0
  98. package/dist/components/icons/BuildIcon.cjs.map +1 -0
  99. package/dist/components/icons/BuildIcon.mjs +18 -0
  100. package/dist/components/icons/BuildIcon.mjs.map +1 -0
  101. package/dist/components/icons/CopyIcon.cjs +19 -0
  102. package/dist/components/icons/CopyIcon.cjs.map +1 -0
  103. package/dist/components/icons/CopyIcon.mjs +18 -0
  104. package/dist/components/icons/CopyIcon.mjs.map +1 -0
  105. package/dist/components/icons/CubeIcon.cjs +19 -0
  106. package/dist/components/icons/CubeIcon.cjs.map +1 -0
  107. package/dist/components/icons/CubeIcon.mjs +18 -0
  108. package/dist/components/icons/CubeIcon.mjs.map +1 -0
  109. package/dist/components/icons/DoubleChevronDown.cjs +19 -0
  110. package/dist/components/icons/DoubleChevronDown.cjs.map +1 -0
  111. package/dist/components/icons/DoubleChevronDown.mjs +18 -0
  112. package/dist/components/icons/DoubleChevronDown.mjs.map +1 -0
  113. package/dist/components/icons/ExternalLinkIcon.cjs +19 -0
  114. package/dist/components/icons/ExternalLinkIcon.cjs.map +1 -0
  115. package/dist/components/icons/ExternalLinkIcon.mjs +18 -0
  116. package/dist/components/icons/ExternalLinkIcon.mjs.map +1 -0
  117. package/dist/components/icons/EyeOpen.cjs +23 -0
  118. package/dist/components/icons/EyeOpen.cjs.map +1 -0
  119. package/dist/components/icons/EyeOpen.mjs +22 -0
  120. package/dist/components/icons/EyeOpen.mjs.map +1 -0
  121. package/dist/components/icons/LoadingRipples.cjs +79 -0
  122. package/dist/components/icons/LoadingRipples.cjs.map +1 -0
  123. package/dist/components/icons/LoadingRipples.mjs +78 -0
  124. package/dist/components/icons/LoadingRipples.mjs.map +1 -0
  125. package/dist/components/icons/SquaresPlus.cjs +19 -0
  126. package/dist/components/icons/SquaresPlus.cjs.map +1 -0
  127. package/dist/components/icons/SquaresPlus.mjs +18 -0
  128. package/dist/components/icons/SquaresPlus.mjs.map +1 -0
  129. package/dist/components/icons/Svg.cjs +37 -0
  130. package/dist/components/icons/Svg.cjs.map +1 -0
  131. package/dist/components/icons/Svg.mjs +36 -0
  132. package/dist/components/icons/Svg.mjs.map +1 -0
  133. package/dist/components/icons/X.cjs +19 -0
  134. package/dist/components/icons/X.cjs.map +1 -0
  135. package/dist/components/icons/X.mjs +18 -0
  136. package/dist/components/icons/X.mjs.map +1 -0
  137. package/dist/constants.cjs +9 -0
  138. package/dist/constants.cjs.map +1 -0
  139. package/dist/constants.mjs +7 -0
  140. package/dist/constants.mjs.map +1 -0
  141. package/dist/hooks/useDependencyGraph.cjs +63 -0
  142. package/dist/hooks/useDependencyGraph.cjs.map +1 -0
  143. package/dist/hooks/useDependencyGraph.mjs +60 -0
  144. package/dist/hooks/useDependencyGraph.mjs.map +1 -0
  145. package/dist/hooks/useDynamicStory.cjs +83 -0
  146. package/dist/hooks/useDynamicStory.cjs.map +1 -0
  147. package/dist/hooks/useDynamicStory.mjs +82 -0
  148. package/dist/hooks/useDynamicStory.mjs.map +1 -0
  149. package/dist/hooks/useStoryParams.cjs +17 -0
  150. package/dist/hooks/useStoryParams.cjs.map +1 -0
  151. package/dist/hooks/useStoryParams.mjs +16 -0
  152. package/dist/hooks/useStoryParams.mjs.map +1 -0
  153. package/dist/index.cjs +15 -0
  154. package/dist/index.d.cts +6 -0
  155. package/dist/index.d.mts +6 -0
  156. package/dist/index.mjs +9 -0
  157. package/dist/manager.cjs +22 -0
  158. package/dist/manager.cjs.map +1 -0
  159. package/dist/manager.d.cts +1 -0
  160. package/dist/manager.d.mts +1 -0
  161. package/dist/manager.mjs +21 -0
  162. package/dist/manager.mjs.map +1 -0
  163. package/dist/panels/DefaultAutoDocsLayout.cjs +24 -0
  164. package/dist/panels/DefaultAutoDocsLayout.cjs.map +1 -0
  165. package/dist/panels/DefaultAutoDocsLayout.d.cts +10 -0
  166. package/dist/panels/DefaultAutoDocsLayout.d.mts +10 -0
  167. package/dist/panels/DefaultAutoDocsLayout.mjs +22 -0
  168. package/dist/panels/DefaultAutoDocsLayout.mjs.map +1 -0
  169. package/dist/panels/GraphView.cjs +78 -0
  170. package/dist/panels/GraphView.cjs.map +1 -0
  171. package/dist/panels/GraphView.d.cts +7 -0
  172. package/dist/panels/GraphView.d.mts +7 -0
  173. package/dist/panels/GraphView.mjs +77 -0
  174. package/dist/panels/GraphView.mjs.map +1 -0
  175. package/dist/panels/index.cjs +3 -0
  176. package/dist/panels/index.d.cts +3 -0
  177. package/dist/panels/index.d.mts +3 -0
  178. package/dist/panels/index.mjs +3 -0
  179. package/dist/preview.cjs +23 -0
  180. package/dist/preview.cjs.map +1 -0
  181. package/dist/preview.d.cts +9 -0
  182. package/dist/preview.d.mts +10 -0
  183. package/dist/preview.mjs +21 -0
  184. package/dist/preview.mjs.map +1 -0
  185. package/dist/types.cjs +0 -0
  186. package/dist/types.d.cts +104 -0
  187. package/dist/types.d.mts +104 -0
  188. package/dist/types.mjs +0 -0
  189. package/package.json +94 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preview.mjs","names":[],"sources":["../src/preview.tsx"],"sourcesContent":["// This runs in the Storybook preview (the iframe)\nimport '@iframe-resizer/child'\nimport { useEffect, useRef } from 'react'\nimport type { PartialStoryFn } from 'storybook/internal/csf'\n\nexport const decorators = [\n\t(Story: PartialStoryFn) => {\n\t\tconst ref = useRef<HTMLDivElement>(null)\n\n\t\tuseEffect(() => {\n\t\t\tref.current?.parentElement?.setAttribute('data-iframe-size', 'true')\n\t\t}, [])\n\n\t\treturn (\n\t\t\t<div className=\"iframe-size-child\" ref={ref}>\n\t\t\t\t<Story />\n\t\t\t</div>\n\t\t)\n\t},\n]\n\nexport const dependencyPreviewDecorators = decorators\n"],"mappings":";;;;;AAKA,MAAa,aAAa,EACxB,UAA0B;CAC1B,MAAM,MAAM,OAAuB,KAAK;AAExC,iBAAgB;AACf,MAAI,SAAS,eAAe,aAAa,oBAAoB,OAAO;IAClE,EAAE,CAAC;AAEN,QACC,oBAAC;EAAI,WAAU;EAAyB;YACvC,oBAAC,UAAQ;GACJ;EAGR;AAED,MAAa,8BAA8B"}
package/dist/types.cjs ADDED
File without changes
@@ -0,0 +1,104 @@
1
+ import { ComponentType, ReactNode } from "react";
2
+ import { ProjectAnnotations, Renderer, StoryContext } from "storybook/internal/types";
3
+
4
+ //#region src/types.d.ts
5
+ type StorybookParameters = ProjectAnnotations<Renderer>['parameters'];
6
+ type StoryModules = Record<string, () => Promise<unknown>>;
7
+ type LayoutOptions = 'padded' | 'centered' | 'fullscreen';
8
+ type StoryParameters = StorybookParameters & {
9
+ /**
10
+ * Determine how the component is displayed in the preview area.
11
+ *
12
+ * Options are:
13
+ * - `'padded'` - adds padding around the component in the preview area (good for most components)
14
+ * - `'centered'` - centers the component in the preview area (good for small components like buttons and icons)
15
+ * - `'fullscreen'` - makes the component take up the entire preview area (good for components that take up the entire screen like pages and modals)
16
+ *
17
+ * @default 'padded'
18
+ */
19
+ layout?: LayoutOptions;
20
+ /**
21
+ * A required property in all component story files. This is used to determine the path to the story.
22
+ *
23
+ * Use the following as the value for this property:
24
+ *
25
+ * ```ts
26
+ * import.meta.url
27
+ * ```
28
+ */
29
+ __filePath: string;
30
+ };
31
+ type DependencyPreviewStorybookParameters = Omit<StoryParameters, '__filePath'> & {
32
+ /** Preview settings used by the dependency-previews storybook add-on */
33
+ dependencyPreviews: {
34
+ /**
35
+ * A mapping of story module importers, used to dynamically load story modules in the preview area.
36
+ *
37
+ * Use the following as the value for this property:
38
+ * ```ts
39
+ * import.meta.glob('/src/**\/*.stories.@(tsx|ts|jsx|js|svelte)', { eager: false });
40
+ * ``` */
41
+ storyModules: StoryModules;
42
+ /**
43
+ * Point to the root folder of your project source control.
44
+ *
45
+ * This allows the addon to link to the source code of your components.
46
+ *
47
+ * @example "https://github.com/Dan503/storybook-addon-dependency-previews/blob/main/example-site"
48
+ */
49
+ sourceRootUrl: string;
50
+ /**
51
+ * Specify the absolute path of the root folder of your project source code.
52
+ * This is used to open files in VS Code from the Storybook UI.
53
+ *
54
+ * @example "C:/Users/your-user-name/projects/your-project-name"
55
+ *
56
+ * // If you are using Vite, and the config you are writing is stored in the `.storybook` folder, you can use:
57
+ *
58
+ * @example new URL('..', import.meta.url).pathname
59
+ */
60
+ projectRootPath: string;
61
+ /**
62
+ * The imported dependency-previews.json file.
63
+ *
64
+ * You will need to set `"resolveJsonModule"` to `true` in tsConfig.json to import this file.
65
+ */
66
+ dependenciesJson: Graph;
67
+ };
68
+ };
69
+ type StorybookPreviewConfig = ProjectAnnotations<Renderer> & {
70
+ parameters: DependencyPreviewStorybookParameters;
71
+ };
72
+ type Graph = Record<string, Deps>;
73
+ interface Deps extends StoryInfo {
74
+ builtWith: Array<StoryInfo>;
75
+ usedIn: Array<StoryInfo>;
76
+ }
77
+ interface StoryInfo {
78
+ componentPath: string;
79
+ storyId?: string | null;
80
+ storyTitle?: string | null;
81
+ storyTitlePath?: string | null;
82
+ storyFilePath?: string | null;
83
+ }
84
+ type CsfModule = {
85
+ default?: {
86
+ title?: string;
87
+ component?: ComponentType<any>;
88
+ args?: AnyObj;
89
+ parameters?: AnyObj;
90
+ decorators?: DecoratorFn[];
91
+ };
92
+ __namedExportsOrder?: string[];
93
+ [k: string]: any;
94
+ };
95
+ type AnyObj = Record<string, any>;
96
+ type StoryExport = ((args: AnyObj, context?: StoryContext) => ReactNode) | {
97
+ render?: (args: AnyObj, context?: StoryContext) => ReactNode;
98
+ args?: AnyObj;
99
+ decorators?: DecoratorFn[];
100
+ };
101
+ type DecoratorFn = (Story: (ctx: StoryContext) => ReactNode, ctx: StoryContext) => ReactNode;
102
+ //#endregion
103
+ export { AnyObj, CsfModule, DecoratorFn, DependencyPreviewStorybookParameters, Deps, Graph, StoryExport, StoryInfo, StoryModules, StoryParameters, StorybookParameters, StorybookPreviewConfig };
104
+ //# sourceMappingURL=types.d.cts.map
@@ -0,0 +1,104 @@
1
+ import { ComponentType, ReactNode } from "react";
2
+ import { ProjectAnnotations, Renderer, StoryContext } from "storybook/internal/types";
3
+
4
+ //#region src/types.d.ts
5
+ type StorybookParameters = ProjectAnnotations<Renderer>['parameters'];
6
+ type StoryModules = Record<string, () => Promise<unknown>>;
7
+ type LayoutOptions = 'padded' | 'centered' | 'fullscreen';
8
+ type StoryParameters = StorybookParameters & {
9
+ /**
10
+ * Determine how the component is displayed in the preview area.
11
+ *
12
+ * Options are:
13
+ * - `'padded'` - adds padding around the component in the preview area (good for most components)
14
+ * - `'centered'` - centers the component in the preview area (good for small components like buttons and icons)
15
+ * - `'fullscreen'` - makes the component take up the entire preview area (good for components that take up the entire screen like pages and modals)
16
+ *
17
+ * @default 'padded'
18
+ */
19
+ layout?: LayoutOptions;
20
+ /**
21
+ * A required property in all component story files. This is used to determine the path to the story.
22
+ *
23
+ * Use the following as the value for this property:
24
+ *
25
+ * ```ts
26
+ * import.meta.url
27
+ * ```
28
+ */
29
+ __filePath: string;
30
+ };
31
+ type DependencyPreviewStorybookParameters = Omit<StoryParameters, '__filePath'> & {
32
+ /** Preview settings used by the dependency-previews storybook add-on */
33
+ dependencyPreviews: {
34
+ /**
35
+ * A mapping of story module importers, used to dynamically load story modules in the preview area.
36
+ *
37
+ * Use the following as the value for this property:
38
+ * ```ts
39
+ * import.meta.glob('/src/**\/*.stories.@(tsx|ts|jsx|js|svelte)', { eager: false });
40
+ * ``` */
41
+ storyModules: StoryModules;
42
+ /**
43
+ * Point to the root folder of your project source control.
44
+ *
45
+ * This allows the addon to link to the source code of your components.
46
+ *
47
+ * @example "https://github.com/Dan503/storybook-addon-dependency-previews/blob/main/example-site"
48
+ */
49
+ sourceRootUrl: string;
50
+ /**
51
+ * Specify the absolute path of the root folder of your project source code.
52
+ * This is used to open files in VS Code from the Storybook UI.
53
+ *
54
+ * @example "C:/Users/your-user-name/projects/your-project-name"
55
+ *
56
+ * // If you are using Vite, and the config you are writing is stored in the `.storybook` folder, you can use:
57
+ *
58
+ * @example new URL('..', import.meta.url).pathname
59
+ */
60
+ projectRootPath: string;
61
+ /**
62
+ * The imported dependency-previews.json file.
63
+ *
64
+ * You will need to set `"resolveJsonModule"` to `true` in tsConfig.json to import this file.
65
+ */
66
+ dependenciesJson: Graph;
67
+ };
68
+ };
69
+ type StorybookPreviewConfig = ProjectAnnotations<Renderer> & {
70
+ parameters: DependencyPreviewStorybookParameters;
71
+ };
72
+ type Graph = Record<string, Deps>;
73
+ interface Deps extends StoryInfo {
74
+ builtWith: Array<StoryInfo>;
75
+ usedIn: Array<StoryInfo>;
76
+ }
77
+ interface StoryInfo {
78
+ componentPath: string;
79
+ storyId?: string | null;
80
+ storyTitle?: string | null;
81
+ storyTitlePath?: string | null;
82
+ storyFilePath?: string | null;
83
+ }
84
+ type CsfModule = {
85
+ default?: {
86
+ title?: string;
87
+ component?: ComponentType<any>;
88
+ args?: AnyObj;
89
+ parameters?: AnyObj;
90
+ decorators?: DecoratorFn[];
91
+ };
92
+ __namedExportsOrder?: string[];
93
+ [k: string]: any;
94
+ };
95
+ type AnyObj = Record<string, any>;
96
+ type StoryExport = ((args: AnyObj, context?: StoryContext) => ReactNode) | {
97
+ render?: (args: AnyObj, context?: StoryContext) => ReactNode;
98
+ args?: AnyObj;
99
+ decorators?: DecoratorFn[];
100
+ };
101
+ type DecoratorFn = (Story: (ctx: StoryContext) => ReactNode, ctx: StoryContext) => ReactNode;
102
+ //#endregion
103
+ export { AnyObj, CsfModule, DecoratorFn, DependencyPreviewStorybookParameters, Deps, Graph, StoryExport, StoryInfo, StoryModules, StoryParameters, StorybookParameters, StorybookPreviewConfig };
104
+ //# sourceMappingURL=types.d.mts.map
package/dist/types.mjs ADDED
File without changes
package/package.json ADDED
@@ -0,0 +1,94 @@
1
+ {
2
+ "name": "storybook-addon-dependency-previews",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "type": "module",
6
+ "main": "dist/index.cjs",
7
+ "module": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.cjs",
13
+ "types": "./dist/index.d.mts"
14
+ },
15
+ "./addon": {
16
+ "import": "./dist/addon/index.mjs",
17
+ "require": "./dist/addon/index.cjs",
18
+ "types": "./dist/addon/index.d.mts"
19
+ },
20
+ "./cli/sb-deps": {
21
+ "import": "./dist/cli/sb-deps.mjs",
22
+ "require": "./dist/cli/sb-deps.cjs",
23
+ "types": "./dist/cli/sb-deps.d.mts"
24
+ }
25
+ },
26
+ "bin": {
27
+ "sb-deps": "./dist/cli/sb-deps.cjs"
28
+ },
29
+ "typesVersions": {
30
+ "*": {
31
+ "blocks": [
32
+ "dist/blocks/index.d.ts"
33
+ ]
34
+ }
35
+ },
36
+ "sideEffects": [
37
+ "**/*.css"
38
+ ],
39
+ "files": [
40
+ "dist/**"
41
+ ],
42
+ "scripts": {
43
+ "copy-css": "cpx \"src/**/*.module.css\" dist",
44
+ "build": "rm -rf dist && tsdown && npm run copy-css && npm run typecheck",
45
+ "dev": "npm-watch",
46
+ "typecheck": "cross-env FORCE_COLOR=1 npm_config_color=always tsc -p tsconfig.json --noEmit --pretty true && tsc -p ./cli/tsconfig.json --noEmit --pretty true"
47
+ },
48
+ "watch": {
49
+ "build": {
50
+ "patterns": [
51
+ "src",
52
+ "cli"
53
+ ],
54
+ "extensions": "ts,tsx,css",
55
+ "delay": 200
56
+ }
57
+ },
58
+ "peerDependencies": {
59
+ "@storybook/addon-docs": "^10.0.2",
60
+ "@storybook/addon-links": "^10.0.2",
61
+ "react": ">=18",
62
+ "react-dom": ">=18",
63
+ "storybook": "^10.0.2",
64
+ "dependency-cruiser": "^17.3.6"
65
+ },
66
+ "devDependencies": {
67
+ "@storybook/csf": "^0.1.13",
68
+ "@types/cross-spawn": "^6.0.6",
69
+ "@types/micromatch": "^4.0.9",
70
+ "@types/node": "^24.7.2",
71
+ "@types/react": "^19.1.13",
72
+ "@types/react-dom": "^19.1.9",
73
+ "concurrently": "^9.2.1",
74
+ "cpx2": "^8.0.0",
75
+ "cross-env": "^10.1.0",
76
+ "cross-spawn": "^7.0.6",
77
+ "npm-watch": "^0.13.0",
78
+ "storybook": "^10.0.2",
79
+ "ts-dedent": "^2.2.0",
80
+ "tsdown": "^0.15.7",
81
+ "typescript": "^5.6.3",
82
+ "vite": "^7.1.7",
83
+ "dependency-cruiser": "^17.3.6"
84
+ },
85
+ "dependencies": {
86
+ "@iframe-resizer/child": "^5.5.7",
87
+ "@iframe-resizer/react": "^5.5.7",
88
+ "@parcel/watcher": "^2.5.1",
89
+ "micromatch": "^4.0.8"
90
+ },
91
+ "storybook-addon": {
92
+ "preset": "dist/addon/preset.cjs"
93
+ }
94
+ }