@xyd-js/storybook 0.0.1-xyd.1 → 0.0.1-xyd.12

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 (145) hide show
  1. package/.storybook/main.ts +172 -4
  2. package/.storybook/preview.ts +1 -2
  3. package/.storybook/styles.css +0 -5
  4. package/CHANGELOG.md +119 -0
  5. package/LICENSE +21 -0
  6. package/package.json +10 -6
  7. package/src/__fixtures__/atlas-index/package-index.mdx +194 -0
  8. package/src/__fixtures__/atlas-index/wip1.mdx +131 -0
  9. package/src/__fixtures__/atlas-index.mdx +53 -0
  10. package/src/__fixtures__/example-source-uniform.ts +41 -0
  11. package/src/{content → __fixtures__}/hello-world.mdx +1 -1
  12. package/src/components/DemoDocs.tsx +237 -0
  13. package/src/components/logo.tsx +37 -0
  14. package/src/decorators/DocsTemplate.tsx +23 -0
  15. package/src/docs/atlas/Atlas.stories.tsx +30 -26
  16. package/src/docs/components/coder/CodeSample.stories.tsx +6 -3
  17. package/src/docs/components/writer/Badge.stories.tsx +15 -28
  18. package/src/docs/components/writer/GuideCard.stories.tsx +2 -3
  19. package/src/docs/components/writer/Table.stories.tsx +23 -27
  20. package/src/docs/components/writer/Tabs.stories.tsx +55 -0
  21. package/src/docs/components/writer/TocCard.stories.tsx +30 -0
  22. package/src/docs/components/writer/UnderlineNav.stories.tsx +114 -0
  23. package/src/docs/components/writer/Update.stories.tsx +91 -0
  24. package/src/docs/components/writer/VideoGuide.stories.tsx +17 -0
  25. package/src/docs/themes/TODO.md +1 -0
  26. package/src/docs/themes/themes-designsystem.stories.tsx +3 -2
  27. package/src/docs/themes/themes.stories.tsx +35 -27
  28. package/src/docs/ui/Sidebar.stories.tsx +8 -2
  29. package/storybook-static/assets/Atlas.stories-CERP-lKH.js +153 -0
  30. package/storybook-static/assets/Badge.stories-DakswLpg.js +6 -0
  31. package/storybook-static/assets/Breadcrumbs.stories-wdrli8P8.js +21 -0
  32. package/storybook-static/assets/{Button.stories-DN0HVOTz.js → Button.stories-DnfjGLtF.js} +1 -1
  33. package/storybook-static/assets/CTABanner-DLG0_gv8-1gNhmGHe.js +4 -0
  34. package/storybook-static/assets/{CTABanner.stories-DzPZmZH5.js → CTABanner.stories-CmBj9U2A.js} +1 -1
  35. package/storybook-static/assets/Callout.stories-rp4kMO8N.js +16 -0
  36. package/storybook-static/assets/{CodeSample.stories-npLtCIKw.js → CodeSample.stories-R6WeHzql.js} +1 -1
  37. package/storybook-static/assets/CodeSample.stories-prKrGyG7.js +22 -0
  38. package/storybook-static/assets/Color-YHDXOIA2-D4kH6-fL.js +1 -0
  39. package/storybook-static/assets/DocsRenderer-CFRXHY34-DczdxYfS.js +575 -0
  40. package/storybook-static/assets/{GuideCard.stories-BD_08DOF.js → GuideCard.stories-D2fmdhxW.js} +2 -2
  41. package/storybook-static/assets/Heading.stories-BwtFnfuE.js +40 -0
  42. package/storybook-static/assets/Icons-CaV53C2x.js +1 -0
  43. package/storybook-static/assets/Nav.stories-DOdsEXEe.js +13 -0
  44. package/storybook-static/assets/NavLinks.stories-v2TFSIgK.js +19 -0
  45. package/storybook-static/assets/Pre.stories-bsCA3tqM.js +11 -0
  46. package/storybook-static/assets/Sidebar.stories-Bo8NQxnh.js +9 -0
  47. package/storybook-static/assets/Steps.stories-CuIyGdUg.js +16 -0
  48. package/storybook-static/assets/SubNav.stories-gbx99ZSe.js +19 -0
  49. package/storybook-static/assets/Table.stories-B4EyLt9m.js +38 -0
  50. package/storybook-static/assets/Tabs.stories-CBSgQj02.js +42 -0
  51. package/storybook-static/assets/TocCard.stories-BgvJ6BbB.js +7 -0
  52. package/storybook-static/assets/UnderlineNav.stories-CBzxJ_ET.js +96 -0
  53. package/storybook-static/assets/Update-D5e_yqty-DsN8mVwO.js +33 -0
  54. package/storybook-static/assets/Update.stories-FtwGebQp.js +56 -0
  55. package/storybook-static/assets/VideoGuide.stories-BRSeChyH.js +3 -0
  56. package/storybook-static/assets/__vite-browser-external-FmFgRqLi.js +1 -0
  57. package/storybook-static/assets/_rollupPluginBabelHelpers-CiqSP2w--CY8sTQTJ.js +4 -0
  58. package/storybook-static/assets/{browser.esm-CjKZlQaR.js → browser.esm-BWgQ7tuZ.js} +1 -1
  59. package/storybook-static/assets/chunk-NL6KNZEE-BC1iDMSp.js +3 -0
  60. package/storybook-static/assets/content-CLSEZPMe.js +8 -0
  61. package/storybook-static/assets/entry-preview-BQ1RV56y.js +2 -0
  62. package/storybook-static/assets/{entry-preview-docs-B1zb5AAd.js → entry-preview-docs-CxQPtM_Y.js} +1 -1
  63. package/storybook-static/assets/iframe-B1jb8VLQ.js +211 -0
  64. package/storybook-static/assets/{index-Ci6h_Amb.js → index-Bd6o6BX5.js} +2 -2
  65. package/storybook-static/assets/index-BsiG4v0x.js +3 -0
  66. package/storybook-static/assets/index-CXQShRbs.js +8 -0
  67. package/storybook-static/assets/index-CXwkSlW-.js +1 -0
  68. package/storybook-static/assets/index-CzKwSnp0.js +9 -0
  69. package/storybook-static/assets/index-D_kTjGoR.js +9 -0
  70. package/storybook-static/assets/index-DgnBCu_c.js +1 -0
  71. package/storybook-static/assets/{index-BxVt_j7t.js → index-H0MBf5rE.js} +1 -1
  72. package/storybook-static/assets/jsx-runtime-D_zvdyIk.js +9 -0
  73. package/storybook-static/assets/layouts-Jper_Qis.js +1 -0
  74. package/storybook-static/assets/preview-BBHl5jls.css +1 -0
  75. package/storybook-static/assets/preview-D6WjBDEw.js +2 -0
  76. package/storybook-static/assets/{preview-ik5anPOD.js → preview-N1j9pG9L.js} +1 -1
  77. package/storybook-static/assets/react-18-Tf4JhPOR.js +25 -0
  78. package/storybook-static/assets/test-utils-BaXAOqRT.js +9 -0
  79. package/storybook-static/assets/themes-designsystem.stories-COcmw0uR.js +11 -0
  80. package/storybook-static/assets/themes.stories-PoLDJGzT.js +41 -0
  81. package/storybook-static/assets/writer-2j4DdIYZ.js +1 -0
  82. package/storybook-static/iframe.html +1 -1
  83. package/storybook-static/index.html +1 -1
  84. package/storybook-static/index.json +1 -1
  85. package/storybook-static/project.json +1 -1
  86. package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js +15 -15
  87. package/storybook-static/sb-addons/docs-12/manager-bundle.js +34 -34
  88. package/storybook-static/sb-addons/essentials-actions-4/manager-bundle.js +1 -1
  89. package/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js +8 -8
  90. package/storybook-static/sb-addons/essentials-controls-3/manager-bundle.js +8 -8
  91. package/storybook-static/sb-addons/essentials-measure-8/manager-bundle.js +1 -1
  92. package/storybook-static/sb-addons/essentials-outline-9/manager-bundle.js +1 -1
  93. package/storybook-static/sb-addons/essentials-toolbars-7/manager-bundle.js +1 -1
  94. package/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js +1 -1
  95. package/storybook-static/sb-addons/interactions-11/manager-bundle.js +1 -1
  96. package/storybook-static/sb-addons/links-2/manager-bundle.js +1 -1
  97. package/storybook-static/sb-addons/onboarding-1/manager-bundle.js +5 -5
  98. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +1 -1
  99. package/storybook-static/sb-manager/globals-module-info.js +1 -0
  100. package/storybook-static/sb-manager/globals-runtime.js +10372 -9836
  101. package/storybook-static/sb-manager/runtime.js +119 -119
  102. package/tsconfig.json +33 -11
  103. package/vite.config.ts +1 -1
  104. package/storybook-static/assets/Atlas.stories-D5un33wq.js +0 -255
  105. package/storybook-static/assets/Badge.stories-CYqDghXe.js +0 -21
  106. package/storybook-static/assets/Breadcrumbs.stories-4uE3oXMP.js +0 -21
  107. package/storybook-static/assets/CTABanner-CAp2EJcY-D4ZzKv-X.js +0 -4
  108. package/storybook-static/assets/Callout.stories-B78pmczw.js +0 -16
  109. package/storybook-static/assets/CodeSample.stories-B8oGXilQ.js +0 -22
  110. package/storybook-static/assets/Color-YHDXOIA2-Zc6AbI-v.js +0 -1
  111. package/storybook-static/assets/DocsRenderer-CFRXHY34-Eqm2UMSC.js +0 -575
  112. package/storybook-static/assets/Heading.stories-Zf0yGs9N.js +0 -40
  113. package/storybook-static/assets/Nav.stories-DpHSEq4D.js +0 -13
  114. package/storybook-static/assets/NavLinks.stories-Dn8rkMsi.js +0 -19
  115. package/storybook-static/assets/Pre.stories-C5ZvjJNZ.js +0 -11
  116. package/storybook-static/assets/Sidebar.stories-Czn5gDax.js +0 -9
  117. package/storybook-static/assets/Steps.stories-DF1LEkVJ.js +0 -16
  118. package/storybook-static/assets/SubNav.stories-C6zqzDri.js +0 -19
  119. package/storybook-static/assets/Table.stories-B8fxPf6g.js +0 -43
  120. package/storybook-static/assets/UnderlineNav-4pD9CR2B-Cm0ZvG04.js +0 -41
  121. package/storybook-static/assets/_rollupPluginBabelHelpers-CDahOOgk-DyHbsKhl.js +0 -4
  122. package/storybook-static/assets/chevron-right-B9VhLASW.js +0 -31
  123. package/storybook-static/assets/chunk-GNGMS2XR-BcRZYG7M.js +0 -12
  124. package/storybook-static/assets/content-BPRhJd5I.js +0 -8
  125. package/storybook-static/assets/entry-preview-B6o8mmQF.js +0 -2
  126. package/storybook-static/assets/iframe-CQwnRjvS.js +0 -211
  127. package/storybook-static/assets/index-0nua7n0t.js +0 -1
  128. package/storybook-static/assets/index-B7gF9TUu.js +0 -9
  129. package/storybook-static/assets/index-C2_NlWRN.js +0 -8
  130. package/storybook-static/assets/index-D1ZprCIH.js +0 -9
  131. package/storybook-static/assets/index-UoN3NoLW.js +0 -17
  132. package/storybook-static/assets/jsx-runtime-BjG_zV1W.js +0 -9
  133. package/storybook-static/assets/layouts-CyY4vppc.js +0 -15
  134. package/storybook-static/assets/preview-B3IBgtzx.css +0 -1
  135. package/storybook-static/assets/preview-DbF9BiFG.js +0 -2
  136. package/storybook-static/assets/react-18-BsB9_d4u.js +0 -25
  137. package/storybook-static/assets/test-utils-CHVDXiZU.js +0 -9
  138. package/storybook-static/assets/themes-designsystem.stories-viVZlmij.js +0 -11
  139. package/storybook-static/assets/themes.stories-B-IUyI8I.js +0 -41
  140. package/storybook-static/assets/writer-sJckUxDD.js +0 -4
  141. package/tsconfig.app.json +0 -24
  142. package/tsconfig.node.json +0 -13
  143. /package/src/{content → __fixtures__}/Icons.tsx +0 -0
  144. /package/src/{content → __fixtures__}/code-sample.mdx +0 -0
  145. /package/storybook-static/assets/{preview-BRSmb3j6.js → preview-ppqJ5XSc.js} +0 -0
@@ -1,8 +1,13 @@
1
+ import {join, dirname} from "path";
2
+
3
+ import React from "react";
1
4
  import type {StorybookConfig} from "@storybook/react-vite";
2
5
  import remarkGfm from 'remark-gfm';
6
+ import remarkDirective from 'remark-directive';
3
7
  import {visit} from 'unist-util-visit';
4
-
5
- import {join, dirname} from "path";
8
+ import {unified} from 'unified';
9
+ import remarkParse from 'remark-parse';
10
+ import remarkMdx from 'remark-mdx';
6
11
 
7
12
  /**
8
13
  * This function is used to resolve the absolute path of a package.
@@ -26,6 +31,166 @@ function remarkInjectMeta() { // TODO: move to @xyd-js/content
26
31
  };
27
32
  }
28
33
 
34
+ export function mdCodeGroup() {
35
+ return (tree: any) => {
36
+ visit(tree, 'containerDirective', (node) => {
37
+ if (node.name !== 'code-group') return;
38
+
39
+ const description = node.attributes?.title || '';
40
+ const codeblocks = [];
41
+
42
+ for (const child of node.children) {
43
+ if (child.type === 'code') {
44
+ const meta = child.meta || '';
45
+ const value = child.value || '';
46
+ const lang = child.lang || '';
47
+
48
+ codeblocks.push({value, lang, meta});
49
+ }
50
+ }
51
+
52
+ // Add metadata to the node
53
+ node.data = {
54
+ hName: 'DirectiveCodeSample',
55
+ hProperties: {
56
+ description,
57
+ codeblocks: JSON.stringify(codeblocks),
58
+ },
59
+ };
60
+
61
+ node.children = [];
62
+ });
63
+ };
64
+ }
65
+
66
+ function toPascalCase(str) {
67
+ return str
68
+ .replace(/([a-z])([A-Z])/g, "$1 $2") // Add space before capital letters
69
+ .replace(/[^a-zA-Z0-9]/g, " ") // Replace special characters with space
70
+ .split(" ") // Split by space
71
+ .map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()) // Capitalize first letter
72
+ .join("");
73
+ }
74
+
75
+
76
+ const supportedDirectives = {
77
+ Details: true,
78
+ details: true,
79
+ Table: true
80
+ }
81
+
82
+ const tableComponents: { [key: string]: boolean } = {
83
+ Table: true
84
+ }
85
+
86
+ const parseMarkdown = (content: string) => {
87
+ const ast = unified()
88
+ .use(remarkParse)
89
+ .use(remarkMdx)
90
+ .parse(content);
91
+ return ast.children;
92
+ };
93
+
94
+ export function remarkDirectiveWithMarkdown() {
95
+ return (tree) => {
96
+ visit(tree, 'containerDirective', (node) => {
97
+ if (!supportedDirectives[node.name]) {
98
+ return;
99
+ }
100
+
101
+ const isTable = tableComponents[node.name];
102
+ const attributes = [];
103
+
104
+ // TODO: MORE GENERIC CUZ IT HAS IMPL DETAILS OF TABLE
105
+ if (isTable) {
106
+ // TODO: support tsx tables like: [<>`Promise<Reference[]>`</>] ?
107
+ const tableData = JSON.parse(node.children[0].value);
108
+ const [header, ...rows] = tableData;
109
+
110
+ const jsxNode = {
111
+ type: 'mdxJsxFlowElement',
112
+ name: 'Table',
113
+ attributes: [],
114
+ children: [
115
+ {
116
+ type: 'mdxJsxFlowElement',
117
+ name: 'Table.Head',
118
+ attributes: [],
119
+ children: [
120
+ {
121
+ type: 'mdxJsxFlowElement',
122
+ name: 'Table.Tr',
123
+ attributes: [],
124
+ children: header.map((cell: string) => ({
125
+ type: 'mdxJsxFlowElement',
126
+ name: 'Table.Th',
127
+ attributes: [],
128
+ children: parseMarkdown(cell)
129
+ }))
130
+ }
131
+ ]
132
+ },
133
+ ...rows.map((row: string[]) => ({
134
+ type: 'mdxJsxFlowElement',
135
+ name: 'Table.Tr',
136
+ attributes: [],
137
+ children: row.map((cell: string) => ({
138
+ type: 'mdxJsxFlowElement',
139
+ name: 'Table.Td',
140
+ attributes: [],
141
+ children: parseMarkdown(cell)
142
+ }))
143
+ }))
144
+ ]
145
+ };
146
+
147
+ Object.assign(node, jsxNode);
148
+ return;
149
+ }
150
+
151
+ if (node.attributes) {
152
+ const jsxProps = []
153
+
154
+ for (let [key, value] of Object.entries(node.attributes)) {
155
+ if (typeof value === "string" && !value.startsWith("<")) {
156
+ attributes.push({
157
+ type: 'mdxJsxAttribute',
158
+ name: key,
159
+ value: value
160
+ });
161
+ } else {
162
+ jsxProps.push(`${key}={${value}}`)
163
+
164
+ }
165
+ }
166
+
167
+ const mdxString = `<Fragment ${jsxProps.join(" ")}></Fragment>`
168
+
169
+ const ast = unified()
170
+ .use(remarkParse)
171
+ .use(remarkMdx)
172
+ .parse(mdxString);
173
+
174
+ if (ast && ast.children[0] && ast.children[0].attributes) {
175
+ for (const attr of ast.children[0].attributes) {
176
+ // TODO: support markdown also e.g Hello `World` - currently it mus be: Hello <code>World</code>
177
+ attributes.push(attr);
178
+ }
179
+ }
180
+ }
181
+
182
+ const jsxNode = {
183
+ type: 'mdxJsxFlowElement',
184
+ name: toPascalCase(node.name),
185
+ attributes: attributes,
186
+ children: node.children
187
+ };
188
+
189
+ Object.assign(node, jsxNode);
190
+ });
191
+ };
192
+ }
193
+
29
194
  const config: StorybookConfig = {
30
195
  stories: ["../src/docs/**/*.mdx", "../src/docs/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
31
196
  addons: [
@@ -41,8 +206,11 @@ const config: StorybookConfig = {
41
206
  mdxCompileOptions: {
42
207
  remarkPlugins: [
43
208
  remarkGfm,
44
- remarkInjectMeta
45
- ],
209
+ remarkDirective,
210
+ mdCodeGroup,
211
+ remarkDirectiveWithMarkdown,
212
+ // mdComponentDirective
213
+ ]
46
214
  },
47
215
  },
48
216
  },
@@ -1,7 +1,6 @@
1
1
  import type {Preview} from "@storybook/react";
2
2
 
3
- import "@xyd-js/atlas/index.css"
4
- import "@xyd-js/fable-wiki/theme.css"
3
+ import "@xyd-js/theme-poetry/index.css" // TODO: in the future configurable themes via UI?
5
4
 
6
5
  import './styles.css'
7
6
 
@@ -1,5 +0,0 @@
1
- :root {
2
- --headingEffect-color-tertiary: rgba(23, 119, 184, 0.5);
3
- --headingEffect-color-secondary: rgb(121, 85, 241);
4
- --headingEffect-color-primary: rgb(255, 105, 180);
5
- }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,124 @@
1
1
  # @xyd-js/storybook
2
2
 
3
+ ## 0.0.1-xyd.12
4
+
5
+ ### Patch Changes
6
+
7
+ - test
8
+ - Updated dependencies
9
+ - @xyd-js/atlas@0.1.0-xyd.18
10
+ - @xyd-js/components@0.1.0-xyd.13
11
+ - @xyd-js/content@0.1.0-xyd.16
12
+ - @xyd-js/theme-poetry@0.1.0-xyd.29
13
+ - @xyd-js/ui@0.1.0-xyd.18
14
+
15
+ ## 0.0.1-xyd.11
16
+
17
+ ### Patch Changes
18
+
19
+ - update packages
20
+ - Updated dependencies
21
+ - @xyd-js/atlas@0.1.0-xyd.17
22
+ - @xyd-js/components@0.1.0-xyd.12
23
+ - @xyd-js/content@0.1.0-xyd.15
24
+ - @xyd-js/theme-poetry@0.1.0-xyd.28
25
+ - @xyd-js/ui@0.1.0-xyd.17
26
+
27
+ ## 0.0.1-xyd.10
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies
32
+ - @xyd-js/atlas@0.1.0-xyd.16
33
+ - @xyd-js/components@0.1.0-xyd.11
34
+ - @xyd-js/content@0.1.0-xyd.14
35
+ - @xyd-js/theme-poetry@0.1.0-xyd.27
36
+ - @xyd-js/ui@0.1.0-xyd.16
37
+ - @xyd-js/fable-wiki@0.1.0-xyd.14
38
+
39
+ ## 0.0.1-xyd.9
40
+
41
+ ### Patch Changes
42
+
43
+ - Updated dependencies
44
+ - @xyd-js/atlas@0.1.0-xyd.15
45
+ - @xyd-js/components@0.1.0-xyd.10
46
+ - @xyd-js/content@0.1.0-xyd.13
47
+ - @xyd-js/theme-poetry@0.1.0-xyd.26
48
+ - @xyd-js/ui@0.1.0-xyd.15
49
+ - @xyd-js/fable-wiki@0.1.0-xyd.13
50
+
51
+ ## 0.0.1-xyd.8
52
+
53
+ ### Patch Changes
54
+
55
+ - Updated dependencies
56
+ - @xyd-js/atlas@0.1.0-xyd.14
57
+ - @xyd-js/components@0.1.0-xyd.9
58
+ - @xyd-js/content@0.1.0-xyd.12
59
+ - @xyd-js/theme-poetry@0.1.0-xyd.25
60
+ - @xyd-js/ui@0.1.0-xyd.14
61
+ - @xyd-js/fable-wiki@0.1.0-xyd.12
62
+
63
+ ## 0.0.1-xyd.7
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies
68
+ - @xyd-js/atlas@0.1.0-xyd.13
69
+ - @xyd-js/components@0.1.0-xyd.8
70
+ - @xyd-js/content@0.1.0-xyd.11
71
+ - @xyd-js/theme-poetry@0.1.0-xyd.24
72
+ - @xyd-js/ui@0.1.0-xyd.13
73
+ - @xyd-js/fable-wiki@0.1.0-xyd.11
74
+
75
+ ## 0.0.1-xyd.6
76
+
77
+ ### Patch Changes
78
+
79
+ - @xyd-js/fable-wiki@0.1.0-xyd.10
80
+
81
+ ## 0.0.1-xyd.5
82
+
83
+ ### Patch Changes
84
+
85
+ - Updated dependencies
86
+ - @xyd-js/atlas@0.1.0-xyd.12
87
+ - @xyd-js/components@0.1.0-xyd.7
88
+ - @xyd-js/content@0.1.0-xyd.10
89
+ - @xyd-js/ui@0.1.0-xyd.12
90
+ - @xyd-js/fable-wiki@0.1.0-xyd.9
91
+
92
+ ## 0.0.1-xyd.4
93
+
94
+ ### Patch Changes
95
+
96
+ - Updated dependencies
97
+ - @xyd-js/atlas@0.1.0-xyd.11
98
+ - @xyd-js/components@0.1.0-xyd.6
99
+ - @xyd-js/ui@0.1.0-xyd.11
100
+ - @xyd-js/fable-wiki@0.1.0-xyd.8
101
+
102
+ ## 0.0.1-xyd.3
103
+
104
+ ### Patch Changes
105
+
106
+ - Updated dependencies
107
+ - @xyd-js/atlas@0.1.0-xyd.10
108
+ - @xyd-js/components@0.1.0-xyd.5
109
+ - @xyd-js/ui@0.1.0-xyd.10
110
+ - @xyd-js/fable-wiki@0.1.0-xyd.7
111
+
112
+ ## 0.0.1-xyd.2
113
+
114
+ ### Patch Changes
115
+
116
+ - Updated dependencies
117
+ - @xyd-js/atlas@0.1.0-xyd.9
118
+ - @xyd-js/components@0.1.0-xyd.4
119
+ - @xyd-js/ui@0.1.0-xyd.9
120
+ - @xyd-js/fable-wiki@0.1.0-xyd.6
121
+
3
122
  ## 0.0.1-xyd.1
4
123
 
5
124
  ### Patch Changes
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 xyd
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json CHANGED
@@ -1,17 +1,21 @@
1
1
  {
2
2
  "name": "@xyd-js/storybook",
3
- "version": "0.0.1-xyd.1",
3
+ "version": "0.0.1-xyd.12",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@mdx-js/react": "^3.0.1",
7
7
  "@mdx-js/rollup": "^3.0.1",
8
+ "acorn": "^8.14.1",
9
+ "acorn-jsx": "^5.3.2",
8
10
  "react": "^19.0.0",
9
11
  "react-dom": "^19.0.0",
12
+ "rehype-stringify": "^10.0.1",
10
13
  "remark-gfm": "^4.0.0",
11
- "@xyd-js/components": "0.1.0-xyd.3",
12
- "@xyd-js/fable-wiki": "0.1.0-xyd.5",
13
- "@xyd-js/ui": "0.1.0-xyd.8",
14
- "@xyd-js/atlas": "0.1.0-xyd.8"
14
+ "@xyd-js/atlas": "0.1.0-xyd.18",
15
+ "@xyd-js/theme-poetry": "0.1.0-xyd.29",
16
+ "@xyd-js/ui": "0.1.0-xyd.18",
17
+ "@xyd-js/components": "0.1.0-xyd.13",
18
+ "@xyd-js/content": "0.1.0-xyd.16"
15
19
  },
16
20
  "devDependencies": {
17
21
  "@chromatic-com/storybook": "^1.9.0",
@@ -35,7 +39,7 @@
35
39
  "storybook": "^8.3.5",
36
40
  "typescript": "^5.5.3",
37
41
  "typescript-eslint": "^8.7.0",
38
- "vite": "^5.4.8"
42
+ "vite": "^6.1.0"
39
43
  },
40
44
  "eslintConfig": {
41
45
  "extends": [
@@ -0,0 +1,194 @@
1
+ # Package Index
2
+
3
+ These are all the API packages. See all [API symbols](#).
4
+
5
+ <Table>
6
+ <Table.Head>
7
+ <Table.Tr>
8
+ <Table.Th>Package</Table.Th>
9
+ <Table.Th numeric>Description</Table.Th>
10
+ </Table.Tr>
11
+ </Table.Head>
12
+ <Table.Body>
13
+ <Table.Tr>
14
+ <Table.Td>
15
+ <Table.ModelCell>
16
+ [`@xyd-js/atlas`](#)
17
+ </Table.ModelCell>
18
+ </Table.Td>
19
+ <Table.Td numeric muted>
20
+ <Table.Cell>
21
+ API Reference template
22
+ </Table.Cell>
23
+ </Table.Td>
24
+ </Table.Tr>
25
+ <Table.Tr>
26
+ <Table.Td>
27
+ <Table.ModelCell>
28
+ [`@xyd-js/cli`](#)
29
+ </Table.ModelCell>
30
+ </Table.Td>
31
+ <Table.Td numeric muted>
32
+ <Table.Cell>
33
+ Command line interface tools
34
+ </Table.Cell>
35
+ </Table.Td>
36
+ </Table.Tr>
37
+ <Table.Tr>
38
+ <Table.Td>
39
+ <Table.ModelCell>
40
+ [`@xyd-js/components`](#)
41
+ </Table.ModelCell>
42
+ </Table.Td>
43
+ <Table.Td numeric muted>
44
+ <Table.Cell>
45
+ Shared React components library
46
+ </Table.Cell>
47
+ </Table.Td>
48
+ </Table.Tr>
49
+ <Table.Tr>
50
+ <Table.Td>
51
+ <Table.ModelCell>
52
+ [`@xyd-js/content`](#)
53
+ </Table.ModelCell>
54
+ </Table.Td>
55
+ <Table.Td numeric muted>
56
+ <Table.Cell>
57
+ Content management and MDX utilities
58
+ </Table.Cell>
59
+ </Table.Td>
60
+ </Table.Tr>
61
+ <Table.Tr>
62
+ <Table.Td>
63
+ <Table.ModelCell>
64
+ [`@xyd-js/core`](#)
65
+ </Table.ModelCell>
66
+ </Table.Td>
67
+ <Table.Td numeric muted>
68
+ <Table.Cell>
69
+ Core utilities and shared functionality
70
+ </Table.Cell>
71
+ </Table.Td>
72
+ </Table.Tr>
73
+ <Table.Tr>
74
+ <Table.Td>
75
+ <Table.ModelCell>
76
+ [`@xyd-js/documan`](#)
77
+ </Table.ModelCell>
78
+ </Table.Td>
79
+ <Table.Td numeric muted>
80
+ <Table.Cell>
81
+ Documentation sever runner
82
+ </Table.Cell>
83
+ </Table.Td>
84
+ </Table.Tr>
85
+ <Table.Tr>
86
+ <Table.Td>
87
+ <Table.ModelCell>
88
+ [`@xyd-js/framework`](#)
89
+ </Table.ModelCell>
90
+ </Table.Td>
91
+ <Table.Td numeric muted>
92
+ <Table.Cell>
93
+ Bridge between core logic and ui
94
+ </Table.Cell>
95
+ </Table.Td>
96
+ </Table.Tr>
97
+ <Table.Tr>
98
+ <Table.Td>
99
+ <Table.ModelCell>
100
+ [`@xyd-js/gql`](#)
101
+ </Table.ModelCell>
102
+ </Table.Td>
103
+ <Table.Td numeric muted>
104
+ <Table.Cell>
105
+ GraphQL utilities and tools
106
+ </Table.Cell>
107
+ </Table.Td>
108
+ </Table.Tr>
109
+ <Table.Tr>
110
+ <Table.Td>
111
+ <Table.ModelCell>
112
+ [`@xyd-js/openapi`](#)
113
+ </Table.ModelCell>
114
+ </Table.Td>
115
+ <Table.Td numeric muted>
116
+ <Table.Cell>
117
+ OpenAPI specification tools
118
+ </Table.Cell>
119
+ </Table.Td>
120
+ </Table.Tr>
121
+ <Table.Tr>
122
+ <Table.Td>
123
+ <Table.ModelCell>
124
+ [`@xyd-js/plugin-docs`](#)
125
+ </Table.ModelCell>
126
+ </Table.Td>
127
+ <Table.Td numeric muted>
128
+ <Table.Cell>
129
+ Core documentation plugin
130
+ </Table.Cell>
131
+ </Table.Td>
132
+ </Table.Tr>
133
+ <Table.Tr>
134
+ <Table.Td>
135
+ <Table.ModelCell>
136
+ [`@xyd-js/storybook`](#)
137
+ </Table.ModelCell>
138
+ </Table.Td>
139
+ <Table.Td numeric muted>
140
+ <Table.Cell>
141
+ Component documentation and testing
142
+ </Table.Cell>
143
+ </Table.Td>
144
+ </Table.Tr>
145
+ <Table.Tr>
146
+ <Table.Td>
147
+ <Table.ModelCell>
148
+ [`@xyd-js/theme-poetry`](#)
149
+ </Table.ModelCell>
150
+ </Table.Td>
151
+ <Table.Td numeric muted>
152
+ <Table.Cell>
153
+ On of the default themes
154
+ </Table.Cell>
155
+ </Table.Td>
156
+ </Table.Tr>
157
+ <Table.Tr>
158
+ <Table.Td>
159
+ <Table.ModelCell>
160
+ [`@xyd-js/ui`](#)
161
+ </Table.ModelCell>
162
+ </Table.Td>
163
+ <Table.Td numeric muted>
164
+ <Table.Cell>
165
+ Core documentations ui elements
166
+ </Table.Cell>
167
+ </Table.Td>
168
+ </Table.Tr>
169
+ <Table.Tr>
170
+ <Table.Td>
171
+ <Table.ModelCell>
172
+ [`@xyd-js/uniform`](#)
173
+ </Table.ModelCell>
174
+ </Table.Td>
175
+ <Table.Td numeric muted>
176
+ <Table.Cell>
177
+ Unified formatting for API references
178
+ </Table.Cell>
179
+ </Table.Td>
180
+ </Table.Tr>
181
+ <Table.Tr>
182
+ <Table.Td>
183
+ <Table.ModelCell>
184
+ [`@xyd-js/xtokens`](#)
185
+ </Table.ModelCell>
186
+ </Table.Td>
187
+ <Table.Td numeric muted>
188
+ <Table.Cell>
189
+ Design tokens and theming system
190
+ </Table.Cell>
191
+ </Table.Td>
192
+ </Table.Tr>
193
+ </Table.Body>
194
+ </Table>