@aussieljk/forkbook 0.0.0-stage → 0.0.1-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (598) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +77 -2
  3. package/assets/addon-vitest/templates/vitest.config.4.template.ts +36 -0
  4. package/assets/browser/favicon-wrapper.svg +46 -0
  5. package/assets/browser/favicon.svg +1 -0
  6. package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
  7. package/assets/browser/nunito-sans-bold.woff2 +0 -0
  8. package/assets/browser/nunito-sans-italic.woff2 +0 -0
  9. package/assets/browser/nunito-sans-regular.woff2 +0 -0
  10. package/assets/builder-vite/iframe.html +99 -0
  11. package/assets/create/rendererAssets/.eslintrc.json +16 -0
  12. package/assets/create/rendererAssets/common/Configure.mdx +388 -0
  13. package/assets/create/rendererAssets/common/assets/accessibility.png +0 -0
  14. package/assets/create/rendererAssets/common/assets/accessibility.svg +1 -0
  15. package/assets/create/rendererAssets/common/assets/addon-library.png +0 -0
  16. package/assets/create/rendererAssets/common/assets/assets.png +0 -0
  17. package/assets/create/rendererAssets/common/assets/avif-test-image.avif +0 -0
  18. package/assets/create/rendererAssets/common/assets/context.png +0 -0
  19. package/assets/create/rendererAssets/common/assets/discord.svg +1 -0
  20. package/assets/create/rendererAssets/common/assets/docs.png +0 -0
  21. package/assets/create/rendererAssets/common/assets/figma-plugin.png +0 -0
  22. package/assets/create/rendererAssets/common/assets/github.svg +1 -0
  23. package/assets/create/rendererAssets/common/assets/share.png +0 -0
  24. package/assets/create/rendererAssets/common/assets/styling.png +0 -0
  25. package/assets/create/rendererAssets/common/assets/testing.png +0 -0
  26. package/assets/create/rendererAssets/common/assets/theming.png +0 -0
  27. package/assets/create/rendererAssets/common/assets/tutorials.svg +1 -0
  28. package/assets/create/rendererAssets/common/assets/youtube.svg +1 -0
  29. package/assets/create/rendererAssets/common/button.css +30 -0
  30. package/assets/create/rendererAssets/common/header.css +32 -0
  31. package/assets/create/rendererAssets/common/page.css +68 -0
  32. package/assets/create/templates/react-native/index.expo.js +20 -0
  33. package/assets/create/templates/react-native/index.js +25 -0
  34. package/assets/docs/addon-backgrounds.gif +0 -0
  35. package/assets/docs/addon-controls-args-annotated.png +0 -0
  36. package/assets/docs/addon-controls-args-background-color.png +0 -0
  37. package/assets/docs/addon-controls-args-background-string.png +0 -0
  38. package/assets/docs/addon-controls-args-docs.png +0 -0
  39. package/assets/docs/addon-controls-args-logging.png +0 -0
  40. package/assets/docs/addon-controls-args-no-annotation.png +0 -0
  41. package/assets/docs/addon-controls-args-reflow-slider.png +0 -0
  42. package/assets/docs/addon-controls-args-reflow.png +0 -0
  43. package/assets/docs/addon-controls-args-template.png +0 -0
  44. package/assets/docs/addon-controls-expanded.png +0 -0
  45. package/assets/docs/addon-controls-hero.gif +0 -0
  46. package/assets/docs/addon-controls-install.png +0 -0
  47. package/assets/docs/hero.gif +0 -0
  48. package/assets/docs/highlight.png +0 -0
  49. package/assets/docs/message-reference.png +0 -0
  50. package/assets/docs/viewport.png +0 -0
  51. package/assets/react-native/metro-env.d.ts +69 -0
  52. package/assets/server/addon.tsconfig.json +6 -0
  53. package/assets/server/base-preview-body.html +116 -0
  54. package/assets/server/base-preview-head.html +494 -0
  55. package/assets/server/openBrowser.applescript +94 -0
  56. package/assets/server/template.ejs +87 -0
  57. package/dist/.build-stamp +0 -0
  58. package/dist/_browser-chunks/Color-OEKZ7XSW.js +1025 -0
  59. package/dist/_browser-chunks/DocsRenderer-JXND3PVQ.js +10 -0
  60. package/dist/_browser-chunks/WithTooltip-GZSSFOG3.js +1619 -0
  61. package/dist/_browser-chunks/chunk-2JDQ35OA.js +247 -0
  62. package/dist/_browser-chunks/chunk-2JT76G3E.js +104 -0
  63. package/dist/_browser-chunks/chunk-2MEPHP35.js +17 -0
  64. package/dist/_browser-chunks/chunk-2SCZVUKW.js +24 -0
  65. package/dist/_browser-chunks/chunk-46Z7NGAS.js +41 -0
  66. package/dist/_browser-chunks/chunk-4ATQOMJB.js +30 -0
  67. package/dist/_browser-chunks/chunk-52CW7FF7.js +49 -0
  68. package/dist/_browser-chunks/chunk-5I7E4GMO.js +62 -0
  69. package/dist/_browser-chunks/chunk-5P4QA6MY.js +20 -0
  70. package/dist/_browser-chunks/chunk-5WMXI5GW.js +816 -0
  71. package/dist/_browser-chunks/chunk-66OCZ54D.js +2604 -0
  72. package/dist/_browser-chunks/chunk-6SXYJQST.js +253 -0
  73. package/dist/_browser-chunks/chunk-73OX2G56.js +2943 -0
  74. package/dist/_browser-chunks/chunk-AYRF6EJB.js +36 -0
  75. package/dist/_browser-chunks/chunk-B4AUNNU4.js +156 -0
  76. package/dist/_browser-chunks/chunk-BCP2FFXF.js +369 -0
  77. package/dist/_browser-chunks/chunk-C3D4HEFY.js +3396 -0
  78. package/dist/_browser-chunks/chunk-CFAOWGL7.js +43 -0
  79. package/dist/_browser-chunks/chunk-CFWWCCZV.js +223 -0
  80. package/dist/_browser-chunks/chunk-CNED6RYH.js +18 -0
  81. package/dist/_browser-chunks/chunk-DRQKCCAG.js +136 -0
  82. package/dist/_browser-chunks/chunk-ECQ75MKQ.js +0 -0
  83. package/dist/_browser-chunks/chunk-EIYAKDGP.js +302 -0
  84. package/dist/_browser-chunks/chunk-ENKK74N4.js +12 -0
  85. package/dist/_browser-chunks/chunk-FENFYI4X.js +698 -0
  86. package/dist/_browser-chunks/chunk-FJGWSWL5.js +155 -0
  87. package/dist/_browser-chunks/chunk-FVSEPWWX.js +2810 -0
  88. package/dist/_browser-chunks/chunk-GNZY6LOW.js +10116 -0
  89. package/dist/_browser-chunks/chunk-IE4ULIOQ.js +14 -0
  90. package/dist/_browser-chunks/chunk-IMSF75WX.js +42 -0
  91. package/dist/_browser-chunks/chunk-IWQGIXJS.js +14 -0
  92. package/dist/_browser-chunks/chunk-JMC7AIKT.js +108 -0
  93. package/dist/_browser-chunks/chunk-JPUOQJUI.js +8 -0
  94. package/dist/_browser-chunks/chunk-JSBKXXXF.js +218 -0
  95. package/dist/_browser-chunks/chunk-JWSKPMPC.js +73 -0
  96. package/dist/_browser-chunks/chunk-KBK7GKBN.js +35 -0
  97. package/dist/_browser-chunks/chunk-LAWXTSXK.js +18 -0
  98. package/dist/_browser-chunks/chunk-LE2LTDW3.js +14 -0
  99. package/dist/_browser-chunks/chunk-LEVSOOLQ.js +48 -0
  100. package/dist/_browser-chunks/chunk-LV5PIKV4.js +93 -0
  101. package/dist/_browser-chunks/chunk-MDOL7KML.js +56 -0
  102. package/dist/_browser-chunks/chunk-MFMDGWP6.js +34 -0
  103. package/dist/_browser-chunks/chunk-MLBOOZL4.js +67 -0
  104. package/dist/_browser-chunks/chunk-NQUD4B7H.js +91 -0
  105. package/dist/_browser-chunks/chunk-NULBREPZ.js +43 -0
  106. package/dist/_browser-chunks/chunk-NZMVUW5T.js +7 -0
  107. package/dist/_browser-chunks/chunk-OD6IBQCC.js +117 -0
  108. package/dist/_browser-chunks/chunk-ODVJ3XZJ.js +157 -0
  109. package/dist/_browser-chunks/chunk-OQWFVDIN.js +386 -0
  110. package/dist/_browser-chunks/chunk-OVH3USFB.js +20 -0
  111. package/dist/_browser-chunks/chunk-OZZPSYQR.js +14 -0
  112. package/dist/_browser-chunks/chunk-PFRNG3UC.js +22 -0
  113. package/dist/_browser-chunks/chunk-PJSMZ27A.js +13 -0
  114. package/dist/_browser-chunks/chunk-PP4R7USA.js +2167 -0
  115. package/dist/_browser-chunks/chunk-QC4HFS6K.js +41 -0
  116. package/dist/_browser-chunks/chunk-QDXFODK4.js +274 -0
  117. package/dist/_browser-chunks/chunk-RBCHTR7C.js +28 -0
  118. package/dist/_browser-chunks/chunk-RMYQ3QN3.js +294 -0
  119. package/dist/_browser-chunks/chunk-RNTIV5CE.js +411 -0
  120. package/dist/_browser-chunks/chunk-RSPAQWVJ.js +80 -0
  121. package/dist/_browser-chunks/chunk-S6TK43XQ.js +836 -0
  122. package/dist/_browser-chunks/chunk-SC67XZST.js +18 -0
  123. package/dist/_browser-chunks/chunk-SFVA4SBT.js +683 -0
  124. package/dist/_browser-chunks/chunk-SZYFOQMT.js +25 -0
  125. package/dist/_browser-chunks/chunk-TBJCJXK4.js +18 -0
  126. package/dist/_browser-chunks/chunk-UMDO3KB7.js +205 -0
  127. package/dist/_browser-chunks/chunk-V2G23FV7.js +11 -0
  128. package/dist/_browser-chunks/chunk-V5M7Q4HT.js +88 -0
  129. package/dist/_browser-chunks/chunk-VVWPND3J.js +108 -0
  130. package/dist/_browser-chunks/chunk-W5M6NPS3.js +198 -0
  131. package/dist/_browser-chunks/chunk-W7NE2JXW.js +84 -0
  132. package/dist/_browser-chunks/chunk-WGVAAM43.js +1110 -0
  133. package/dist/_browser-chunks/chunk-WHQRNHXD.js +8 -0
  134. package/dist/_browser-chunks/chunk-WOSOWBCA.js +12 -0
  135. package/dist/_browser-chunks/chunk-WZ7KR7SH.js +85 -0
  136. package/dist/_browser-chunks/chunk-YEKO6BHJ.js +20 -0
  137. package/dist/_browser-chunks/chunk-YI2IBIQS.js +7 -0
  138. package/dist/_browser-chunks/chunk-YTIT5NA5.js +1966 -0
  139. package/dist/_browser-chunks/chunk-ZEHRUHTA.js +6 -0
  140. package/dist/_browser-chunks/chunk-ZTQ5MEJ5.js +203 -0
  141. package/dist/_browser-chunks/matchers-YLBYSYAF.js +1263 -0
  142. package/dist/_browser-chunks/react-dom-client-4OHE3QDV.js +9 -0
  143. package/dist/_node-chunks/attached-runtime-O4YTVUKE.js +282 -0
  144. package/dist/_node-chunks/builder-manager-FPV2L36T.js +1661 -0
  145. package/dist/_node-chunks/chunk-2BJIHWOK.js +25 -0
  146. package/dist/_node-chunks/chunk-2JSABFAM.js +148 -0
  147. package/dist/_node-chunks/chunk-2QTI45JU.js +1094 -0
  148. package/dist/_node-chunks/chunk-2UG3IYCC.js +26 -0
  149. package/dist/_node-chunks/chunk-2XDUXZGI.js +153 -0
  150. package/dist/_node-chunks/chunk-356LV3NX.js +36 -0
  151. package/dist/_node-chunks/chunk-3CLITGI2.js +121 -0
  152. package/dist/_node-chunks/chunk-4PK3LUHM.js +82 -0
  153. package/dist/_node-chunks/chunk-4TV3Z3S3.js +20 -0
  154. package/dist/_node-chunks/chunk-5BTU7UZ5.js +1877 -0
  155. package/dist/_node-chunks/chunk-5GN5N22E.js +989 -0
  156. package/dist/_node-chunks/chunk-5J3BMBMY.js +51 -0
  157. package/dist/_node-chunks/chunk-5J3O7EDY.js +21 -0
  158. package/dist/_node-chunks/chunk-5RNOGGO6.js +35 -0
  159. package/dist/_node-chunks/chunk-5WHA37KG.js +1297 -0
  160. package/dist/_node-chunks/chunk-6APBQVEX.js +611 -0
  161. package/dist/_node-chunks/chunk-6EJ5NPEM.js +98 -0
  162. package/dist/_node-chunks/chunk-7BVUZZIY.js +56 -0
  163. package/dist/_node-chunks/chunk-7DCDBICW.js +415 -0
  164. package/dist/_node-chunks/chunk-7LLQDMVS.js +223 -0
  165. package/dist/_node-chunks/chunk-7TSL7D5D.js +26 -0
  166. package/dist/_node-chunks/chunk-A724RK5H.js +168 -0
  167. package/dist/_node-chunks/chunk-AANHLH5M.js +87 -0
  168. package/dist/_node-chunks/chunk-ASJFOW6O.js +1133 -0
  169. package/dist/_node-chunks/chunk-AWJOXJAZ.js +144 -0
  170. package/dist/_node-chunks/chunk-AWXGCPW6.js +92 -0
  171. package/dist/_node-chunks/chunk-B6SKX4JF.js +414 -0
  172. package/dist/_node-chunks/chunk-BCRWDMAU.js +11 -0
  173. package/dist/_node-chunks/chunk-BE6ULVPN.js +662 -0
  174. package/dist/_node-chunks/chunk-BENYUF74.js +2107 -0
  175. package/dist/_node-chunks/chunk-CDRLLNRQ.js +209 -0
  176. package/dist/_node-chunks/chunk-CSXS6LVI.js +29 -0
  177. package/dist/_node-chunks/chunk-CWD5A6NI.js +45 -0
  178. package/dist/_node-chunks/chunk-CXLL2F6O.js +7162 -0
  179. package/dist/_node-chunks/chunk-CYPPELO4.js +1011 -0
  180. package/dist/_node-chunks/chunk-DUOXRUVQ.js +18 -0
  181. package/dist/_node-chunks/chunk-DWE36J35.js +3767 -0
  182. package/dist/_node-chunks/chunk-EWXASIWR.js +60 -0
  183. package/dist/_node-chunks/chunk-FUYZNTIS.js +23 -0
  184. package/dist/_node-chunks/chunk-G5OYQQDY.js +21 -0
  185. package/dist/_node-chunks/chunk-G6PUNHCI.js +33 -0
  186. package/dist/_node-chunks/chunk-GP5YLBNS.js +499 -0
  187. package/dist/_node-chunks/chunk-GSWBRZLU.js +110 -0
  188. package/dist/_node-chunks/chunk-GT5EHMNM.js +90 -0
  189. package/dist/_node-chunks/chunk-GVSFRNWZ.js +110 -0
  190. package/dist/_node-chunks/chunk-HKQEE62W.js +1193 -0
  191. package/dist/_node-chunks/chunk-HKUNJELN.js +132 -0
  192. package/dist/_node-chunks/chunk-I2ANCID7.js +3787 -0
  193. package/dist/_node-chunks/chunk-ICADUNQM.js +155 -0
  194. package/dist/_node-chunks/chunk-IJL5JOLL.js +95 -0
  195. package/dist/_node-chunks/chunk-ILVD64RB.js +844 -0
  196. package/dist/_node-chunks/chunk-ILWHW4HU.js +1218 -0
  197. package/dist/_node-chunks/chunk-IZISFDKM.js +7032 -0
  198. package/dist/_node-chunks/chunk-JBCKN6P4.js +59 -0
  199. package/dist/_node-chunks/chunk-JE6JEGXA.js +115 -0
  200. package/dist/_node-chunks/chunk-JEC2OK5B.js +5468 -0
  201. package/dist/_node-chunks/chunk-JVQYQTTM.js +1094 -0
  202. package/dist/_node-chunks/chunk-KGOAOPKR.js +35 -0
  203. package/dist/_node-chunks/chunk-M2BRIUUP.js +25 -0
  204. package/dist/_node-chunks/chunk-MDKFZRYG.js +80 -0
  205. package/dist/_node-chunks/chunk-MJ2UD7FU.js +26 -0
  206. package/dist/_node-chunks/chunk-NIHZECYO.js +48 -0
  207. package/dist/_node-chunks/chunk-NKAUZU4C.js +63 -0
  208. package/dist/_node-chunks/chunk-NZ3GOT7V.js +68 -0
  209. package/dist/_node-chunks/chunk-PBMWZVLD.js +49 -0
  210. package/dist/_node-chunks/chunk-PEIAGMSR.js +23 -0
  211. package/dist/_node-chunks/chunk-QMU5ODXZ.js +47 -0
  212. package/dist/_node-chunks/chunk-QVMUIU7S.js +40 -0
  213. package/dist/_node-chunks/chunk-R5FYRP6X.js +74 -0
  214. package/dist/_node-chunks/chunk-R7CY5LX6.js +33 -0
  215. package/dist/_node-chunks/chunk-RHG33T7C.js +688 -0
  216. package/dist/_node-chunks/chunk-RJUHZH32.js +20 -0
  217. package/dist/_node-chunks/chunk-RJXEPYEN.js +2700 -0
  218. package/dist/_node-chunks/chunk-RQVK2TOI.js +298 -0
  219. package/dist/_node-chunks/chunk-SRXCCL2O.js +194 -0
  220. package/dist/_node-chunks/chunk-SVZ6Q3CS.js +40 -0
  221. package/dist/_node-chunks/chunk-TB6Y6NSL.js +3837 -0
  222. package/dist/_node-chunks/chunk-U4GKV7GZ.js +4744 -0
  223. package/dist/_node-chunks/chunk-ULW4SLMN.js +2034 -0
  224. package/dist/_node-chunks/chunk-URRTQ2QM.js +104 -0
  225. package/dist/_node-chunks/chunk-US7L4S72.js +45 -0
  226. package/dist/_node-chunks/chunk-VQEQ7ZLS.js +4731 -0
  227. package/dist/_node-chunks/chunk-VXDWOVWD.js +52345 -0
  228. package/dist/_node-chunks/chunk-WQ7PSP6H.js +19 -0
  229. package/dist/_node-chunks/chunk-WVCU34IS.js +23 -0
  230. package/dist/_node-chunks/chunk-X6OWHTYE.js +20 -0
  231. package/dist/_node-chunks/chunk-XCGMRAV5.js +33 -0
  232. package/dist/_node-chunks/chunk-XJSYJTBD.js +59 -0
  233. package/dist/_node-chunks/chunk-XTTAS346.js +25 -0
  234. package/dist/_node-chunks/chunk-XURIZ7IC.js +32 -0
  235. package/dist/_node-chunks/chunk-Y2DEKWVE.js +3008 -0
  236. package/dist/_node-chunks/chunk-Y2GH4XO7.js +884 -0
  237. package/dist/_node-chunks/chunk-YWMICX2T.js +1986 -0
  238. package/dist/_node-chunks/chunk-ZBAIFZNB.js +5414 -0
  239. package/dist/_node-chunks/chunk-ZMEGPR47.js +79 -0
  240. package/dist/_node-chunks/dist-ZGSN23B7.js +16 -0
  241. package/dist/_node-chunks/globby-HWZL7XSQ.js +2884 -0
  242. package/dist/_node-chunks/jiti-GNDCTFYU.js +3848 -0
  243. package/dist/_node-chunks/lib-DI662U2R.js +366 -0
  244. package/dist/_node-chunks/local-runtime-4UNT5EZJ.js +78 -0
  245. package/dist/_node-chunks/mdx-plugin-ZY6XLLA4.js +5680 -0
  246. package/dist/_node-chunks/monorepo-B65J4UFS.js +121 -0
  247. package/dist/_node-chunks/monorepo-optimized-tests-relaxed-limits-no-story-deletion-45ZTNWJS.js +121 -0
  248. package/dist/_node-chunks/optimized-tests-ZMNICF4R.js +22 -0
  249. package/dist/_node-chunks/pattern-copy-play-LOHSM7ID.js +807 -0
  250. package/dist/_node-chunks/postinstallAddon-NT5XE7IT.js +20 -0
  251. package/dist/_node-chunks/rehype-external-links-22ZBI6K4.js +121 -0
  252. package/dist/_node-chunks/rehype-slug-ROZVEEFZ.js +52 -0
  253. package/dist/_node-chunks/relaxed-limits-EDE2B34G.js +117 -0
  254. package/dist/_node-chunks/run-372BSBV5.js +4532 -0
  255. package/dist/_node-chunks/run-IR3BRDJV.js +103 -0
  256. package/dist/_node-chunks/session-id-OO2WQF5N.js +23 -0
  257. package/dist/_node-chunks/setup-6TMCKUTA.js +278 -0
  258. package/dist/_node-chunks/vitest.config.4.template-QJBEVCKG.js +54 -0
  259. package/dist/actions/decorator.d.ts +7 -0
  260. package/dist/actions/decorator.js +43 -0
  261. package/dist/actions/index.d.ts +67 -0
  262. package/dist/actions/index.js +28 -0
  263. package/dist/addon-a11y/index.d.ts +52 -0
  264. package/dist/addon-a11y/index.js +16 -0
  265. package/dist/addon-a11y/manager.js +1429 -0
  266. package/dist/addon-a11y/preset.js +18 -0
  267. package/dist/addon-a11y/preview.d.ts +17 -0
  268. package/dist/addon-a11y/preview.js +15 -0
  269. package/dist/addon-docs/blocks.d.ts +1061 -0
  270. package/dist/addon-docs/blocks.js +2461 -0
  271. package/dist/addon-docs/index.d.ts +236 -0
  272. package/dist/addon-docs/index.js +16 -0
  273. package/dist/addon-docs/manager.js +90 -0
  274. package/dist/addon-docs/mdx-react-shim.d.ts +1 -0
  275. package/dist/addon-docs/mdx-react-shim.js +2 -0
  276. package/dist/addon-docs/preset.js +378 -0
  277. package/dist/addon-docs/preview.d.ts +4 -0
  278. package/dist/addon-docs/preview.js +7 -0
  279. package/dist/addon-links/index.d.ts +22 -0
  280. package/dist/addon-links/index.js +20 -0
  281. package/dist/addon-links/manager.js +14 -0
  282. package/dist/addon-links/preview.d.ts +6 -0
  283. package/dist/addon-links/preview.js +9 -0
  284. package/dist/addon-links/react/index.d.ts +25 -0
  285. package/dist/addon-links/react/index.js +52 -0
  286. package/dist/addon-mcp/preset.js +1345 -0
  287. package/dist/addon-mcp/preview.js +29 -0
  288. package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +1174 -0
  289. package/dist/addon-ondevice-actions/index.d.ts +4 -0
  290. package/dist/addon-ondevice-actions/index.js +7 -0
  291. package/dist/addon-ondevice-actions/register.js +7 -0
  292. package/dist/addon-ondevice-controls/index.d.ts +6 -0
  293. package/dist/addon-ondevice-controls/index.js +14 -0
  294. package/dist/addon-ondevice-controls/register.js +10 -0
  295. package/dist/addon-pseudo-states/index.d.ts +35 -0
  296. package/dist/addon-pseudo-states/index.js +15 -0
  297. package/dist/addon-pseudo-states/manager.js +53 -0
  298. package/dist/addon-pseudo-states/preview.d.ts +9 -0
  299. package/dist/addon-pseudo-states/preview.js +10 -0
  300. package/dist/addon-themes/index.d.ts +80 -0
  301. package/dist/addon-themes/index.js +104 -0
  302. package/dist/addon-themes/manager.js +97 -0
  303. package/dist/addon-themes/postinstall.js +33 -0
  304. package/dist/addon-themes/preview.d.ts +6 -0
  305. package/dist/addon-themes/preview.js +8 -0
  306. package/dist/addon-vitest/constants.d.ts +132 -0
  307. package/dist/addon-vitest/constants.js +66 -0
  308. package/dist/addon-vitest/index.d.ts +4 -0
  309. package/dist/addon-vitest/index.js +8 -0
  310. package/dist/addon-vitest/manager.js +665 -0
  311. package/dist/addon-vitest/node/coverage-reporter.js +1284 -0
  312. package/dist/addon-vitest/node/vitest.js +674 -0
  313. package/dist/addon-vitest/postinstall.js +24 -0
  314. package/dist/addon-vitest/preset.js +943 -0
  315. package/dist/addon-vitest/vitest-plugin/global-setup.js +162 -0
  316. package/dist/addon-vitest/vitest-plugin/index.d.ts +56 -0
  317. package/dist/addon-vitest/vitest-plugin/index.js +463 -0
  318. package/dist/addon-vitest/vitest-plugin/setup-file-with-project-annotations.js +9 -0
  319. package/dist/addon-vitest/vitest-plugin/setup-file.browser.4.js +20 -0
  320. package/dist/addon-vitest/vitest-plugin/setup-file.js +50 -0
  321. package/dist/addon-vitest/vitest-plugin/test-utils.js +128 -0
  322. package/dist/babel/index.d.ts +2301 -0
  323. package/dist/babel/index.js +61 -0
  324. package/dist/backgrounds/index.d.ts +6 -0
  325. package/dist/backgrounds/index.js +15 -0
  326. package/dist/bin/core.js +1705 -0
  327. package/dist/bin/dispatcher.js +43 -0
  328. package/dist/bin/loader.js +115 -0
  329. package/dist/builder-vite/index.d.ts +50 -0
  330. package/dist/builder-vite/index.js +245 -0
  331. package/dist/builder-vite/preset.js +27 -0
  332. package/dist/channels/index.d.ts +2 -0
  333. package/dist/channels/index.js +352 -0
  334. package/dist/chunk-B2t1tGRh.d.ts +284 -0
  335. package/dist/chunk-BCoJQE-f.d.ts +602 -0
  336. package/dist/chunk-BGkgZp-H.d.ts +214 -0
  337. package/dist/chunk-BTVrWliM.d.ts +115 -0
  338. package/dist/chunk-BXLImeLy.d.ts +197 -0
  339. package/dist/chunk-BfBzpgct.d.ts +916 -0
  340. package/dist/chunk-Bpi2tz-6.d.ts +511 -0
  341. package/dist/chunk-BxWufQms.d.ts +142 -0
  342. package/dist/chunk-C-bavsOH.d.ts +34 -0
  343. package/dist/chunk-C2p5r3Vt.d.ts +13001 -0
  344. package/dist/chunk-C6PAgHLT.d.ts +12 -0
  345. package/dist/chunk-CMeX4WRe.d.ts +179 -0
  346. package/dist/chunk-Ct9xd6IM.d.ts +65 -0
  347. package/dist/chunk-CwQKNaYL.d.ts +15 -0
  348. package/dist/chunk-D7DwV41f.d.ts +3622 -0
  349. package/dist/chunk-DEVFdzxR.d.ts +253 -0
  350. package/dist/chunk-DaVb55-_.d.ts +124 -0
  351. package/dist/chunk-DgRNfmj_.d.ts +40 -0
  352. package/dist/chunk-DoIGKY33.d.ts +666 -0
  353. package/dist/chunk-Dr3R0DXk.d.ts +40 -0
  354. package/dist/chunk-DtHByo32.d.ts +55 -0
  355. package/dist/chunk-Dw1z1Pki.d.ts +933 -0
  356. package/dist/chunk-DzuY9DXg.d.ts +79 -0
  357. package/dist/chunk-FjDVzZTj.d.ts +62 -0
  358. package/dist/chunk-Kt1tW-D1.d.ts +59 -0
  359. package/dist/chunk-XP8oHzpE.d.ts +6 -0
  360. package/dist/chunk-gCX81nOr.d.ts +61 -0
  361. package/dist/chunk-pcFXCimE.d.ts +741 -0
  362. package/dist/cli/index.d.ts +1174 -0
  363. package/dist/cli/index.js +5613 -0
  364. package/dist/cli/skills/content/index.d.ts +72 -0
  365. package/dist/cli/skills/content/index.js +335 -0
  366. package/dist/cli/tools/sdk/child-host.d.ts +61 -0
  367. package/dist/cli/tools/sdk/child-host.js +131 -0
  368. package/dist/cli/tools/sdk/index.d.ts +137 -0
  369. package/dist/cli/tools/sdk/index.js +44 -0
  370. package/dist/cli-commands/bin/index.js +25 -0
  371. package/dist/client-logger/index.d.ts +31 -0
  372. package/dist/client-logger/index.js +63 -0
  373. package/dist/common/index.d.ts +1103 -0
  374. package/dist/common/index.js +364 -0
  375. package/dist/components/index.d.ts +1924 -0
  376. package/dist/components/index.js +13759 -0
  377. package/dist/core-events/index.d.ts +155 -0
  378. package/dist/core-events/index.js +136 -0
  379. package/dist/core-server/index.d.ts +2200 -0
  380. package/dist/core-server/index.js +4165 -0
  381. package/dist/core-server/presets/common-manager.css +170 -0
  382. package/dist/core-server/presets/common-manager.js +4168 -0
  383. package/dist/core-server/presets/common-override-preset.js +81 -0
  384. package/dist/core-server/presets/common-preset.js +2187 -0
  385. package/dist/create/bin/index.js +23 -0
  386. package/dist/create/index.js +25 -0
  387. package/dist/csf/csf-utils.d.ts +2 -0
  388. package/dist/csf/csf-utils.js +19 -0
  389. package/dist/csf/index.d.ts +7 -0
  390. package/dist/csf/index.js +2142 -0
  391. package/dist/csf-tools/index.d.ts +1157 -0
  392. package/dist/csf-tools/index.js +736 -0
  393. package/dist/docs-tools/index.d.ts +197 -0
  394. package/dist/docs-tools/index.js +61 -0
  395. package/dist/highlight/index.d.ts +10 -0
  396. package/dist/highlight/index.js +15 -0
  397. package/dist/instrumenter/index.d.ts +113 -0
  398. package/dist/instrumenter/index.js +2595 -0
  399. package/dist/manager/_manager-chunks/globals-runtime-8HkdnU2F.js +6144 -0
  400. package/dist/manager/_manager-chunks/globals-runtime-B0I9dSVs.js +5564 -0
  401. package/dist/manager/_manager-chunks/globals-runtime-BIKBO23x.js +3389 -0
  402. package/dist/manager/_manager-chunks/globals-runtime-BQCkfH1B.js +121 -0
  403. package/dist/manager/_manager-chunks/globals-runtime-BdGkqNEt.js +45 -0
  404. package/dist/manager/_manager-chunks/globals-runtime-BmphMP6z.js +1190 -0
  405. package/dist/manager/_manager-chunks/globals-runtime-BvM-NY2g.js +13307 -0
  406. package/dist/manager/_manager-chunks/globals-runtime-C02fvgcd.js +9243 -0
  407. package/dist/manager/_manager-chunks/globals-runtime-CXoVXiJA.js +4468 -0
  408. package/dist/manager/_manager-chunks/globals-runtime-DkAPXCvc.js +9766 -0
  409. package/dist/manager/_manager-chunks/globals-runtime-DtcOnYHR.js +5357 -0
  410. package/dist/manager/_manager-chunks/globals-runtime-DwFqpqya.js +722 -0
  411. package/dist/manager/_manager-chunks/globals-runtime-FC201B7s.js +6837 -0
  412. package/dist/manager/_manager-chunks/globals-runtime-ZHrQFa3-.js +10463 -0
  413. package/dist/manager/_manager-chunks/globals-runtime-eLPTIfX-.js +7759 -0
  414. package/dist/manager/_manager-chunks/globals-runtime-f5oIrim0.js +5102 -0
  415. package/dist/manager/_manager-chunks/runtime-B1L9TH89.js +452 -0
  416. package/dist/manager/_manager-chunks/runtime-Bly6WJLN.js +998 -0
  417. package/dist/manager/_manager-chunks/runtime-Bry1Biu7.js +8936 -0
  418. package/dist/manager/_manager-chunks/runtime-D94Vq3oR.js +4014 -0
  419. package/dist/manager/_manager-chunks/runtime-DMig8mT7.js +77 -0
  420. package/dist/manager/_manager-chunks/runtime-DcJBhKG9.js +1408 -0
  421. package/dist/manager/_manager-chunks/runtime-DpgBAFGf.js +22 -0
  422. package/dist/manager/_manager-chunks/runtime-DtyerpFe.js +979 -0
  423. package/dist/manager/_manager-chunks/runtime-EITvVbkG.js +46 -0
  424. package/dist/manager/_manager-chunks/runtime-eDVAYF7N.js +6860 -0
  425. package/dist/manager/_manager-chunks/runtime-i-PDAHLR.js +2493 -0
  426. package/dist/manager/globals-runtime.js +2 -0
  427. package/dist/manager/globals.d.ts +23 -0
  428. package/dist/manager/globals.js +26 -0
  429. package/dist/manager/manager-stores.d.ts +2 -0
  430. package/dist/manager/manager-stores.js +19 -0
  431. package/dist/manager/runtime.js +2 -0
  432. package/dist/manager-api/index.d.ts +2 -0
  433. package/dist/manager-api/index.js +3257 -0
  434. package/dist/manager-errors.d.ts +89 -0
  435. package/dist/manager-errors.js +20 -0
  436. package/dist/mcp/index.d.ts +270 -0
  437. package/dist/mcp/index.js +305 -0
  438. package/dist/mocking-utils/index.d.ts +689 -0
  439. package/dist/mocking-utils/index.js +521 -0
  440. package/dist/mocking-utils/mocker-runtime.js +1254 -0
  441. package/dist/nextjs-vite/config/preview.js +3 -0
  442. package/dist/nextjs-vite/export-mocks/cache/index.d.ts +25 -0
  443. package/dist/nextjs-vite/export-mocks/cache/index.js +29 -0
  444. package/dist/nextjs-vite/export-mocks/headers/index.d.ts +37 -0
  445. package/dist/nextjs-vite/export-mocks/headers/index.js +54 -0
  446. package/dist/nextjs-vite/export-mocks/link/index.d.ts +9 -0
  447. package/dist/nextjs-vite/export-mocks/link/index.js +59 -0
  448. package/dist/nextjs-vite/export-mocks/navigation/index.d.ts +28 -0
  449. package/dist/nextjs-vite/export-mocks/navigation/index.js +58 -0
  450. package/dist/nextjs-vite/export-mocks/router/index.d.ts +34 -0
  451. package/dist/nextjs-vite/export-mocks/router/index.js +63 -0
  452. package/dist/nextjs-vite/index.d.ts +92 -0
  453. package/dist/nextjs-vite/index.js +58 -0
  454. package/dist/nextjs-vite/node/index.d.ts +6 -0
  455. package/dist/nextjs-vite/node/index.js +20 -0
  456. package/dist/nextjs-vite/preset.js +648 -0
  457. package/dist/nextjs-vite/preview.d.ts +20 -0
  458. package/dist/nextjs-vite/preview.js +11 -0
  459. package/dist/nextjs-vite/vite-plugin/index.d.ts +6 -0
  460. package/dist/nextjs-vite/vite-plugin/index.js +19 -0
  461. package/dist/nextjs-vite-plugin/index.d.ts +28 -0
  462. package/dist/nextjs-vite-plugin/index.js +923 -0
  463. package/dist/nextjs-vite-plugin/mocks/storybook.global.js +29 -0
  464. package/dist/nextjs-vite-plugin/plugins/next-image/alias/image-context.js +8 -0
  465. package/dist/nextjs-vite-plugin/plugins/next-image/alias/image-default-loader.js +23 -0
  466. package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-image.js +28 -0
  467. package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-legacy-image.js +17 -0
  468. package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/cache/index.js +29 -0
  469. package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/dynamic/index.js +40 -0
  470. package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/headers/index.js +55 -0
  471. package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/link/index.js +63 -0
  472. package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/navigation/index.js +71 -0
  473. package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +74 -0
  474. package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/rsc/server-only.js +7 -0
  475. package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/safe-stable-stringify/index.js +13 -0
  476. package/dist/nextjs-vite-plugin/plugins/next-mocks/compatibility/draft-mode.compat.js +7 -0
  477. package/dist/node-logger/index.d.ts +495 -0
  478. package/dist/node-logger/index.js +42 -0
  479. package/dist/oxc-parser/index.d.ts +99 -0
  480. package/dist/oxc-parser/index.js +275 -0
  481. package/dist/oxc-parser/worker.js +37 -0
  482. package/dist/preview/_chunks/runtime-BIzIdDbb.js +10263 -0
  483. package/dist/preview/_chunks/runtime-BTPtVY1p.js +1102 -0
  484. package/dist/preview/_chunks/runtime-BZSnICCg.js +8484 -0
  485. package/dist/preview/_chunks/runtime-BdGkqNEt.js +45 -0
  486. package/dist/preview/_chunks/runtime-BwSxqk3t.js +63 -0
  487. package/dist/preview/_chunks/runtime-CqHxptiK.js +6143 -0
  488. package/dist/preview/_chunks/runtime-CsV4HZPV.js +5064 -0
  489. package/dist/preview/_chunks/runtime-CxZK_Ln3.js +284 -0
  490. package/dist/preview/_chunks/runtime-DZToXfvO.js +9767 -0
  491. package/dist/preview/_chunks/runtime-DrTjJkPY.js +3872 -0
  492. package/dist/preview/_chunks/runtime-DuHdxMFA.js +387 -0
  493. package/dist/preview/_chunks/runtime-iXdo8CR8.js +3635 -0
  494. package/dist/preview/_chunks/runtime-q3wt0e_N.js +6838 -0
  495. package/dist/preview/globals.d.ts +16 -0
  496. package/dist/preview/globals.js +20 -0
  497. package/dist/preview/runtime.js +6 -0
  498. package/dist/preview-api/index.d.ts +4 -0
  499. package/dist/preview-api/index.js +147 -0
  500. package/dist/preview-errors.d.ts +186 -0
  501. package/dist/preview-errors.js +56 -0
  502. package/dist/react/docgen/docgen-worker.js +38 -0
  503. package/dist/react/entry-preview-argtypes.js +9 -0
  504. package/dist/react/entry-preview-docs.js +12 -0
  505. package/dist/react/entry-preview-rsc.js +11 -0
  506. package/dist/react/entry-preview.js +21 -0
  507. package/dist/react/index.d.ts +119 -0
  508. package/dist/react/index.js +26 -0
  509. package/dist/react/preset.js +301 -0
  510. package/dist/react/preview.d.ts +2 -0
  511. package/dist/react/preview.js +11 -0
  512. package/dist/react-native/bin/get-stories.js +34 -0
  513. package/dist/react-native/index.d.ts +160 -0
  514. package/dist/react-native/index.js +1547 -0
  515. package/dist/react-native/metro/node.d.ts +83 -0
  516. package/dist/react-native/metro/node.js +21 -0
  517. package/dist/react-native/metro/withStorybook.d.ts +2269 -0
  518. package/dist/react-native/metro/withStorybook.js +138 -0
  519. package/dist/react-native/preview.d.ts +6 -0
  520. package/dist/react-native/preview.js +20 -0
  521. package/dist/react-native/scripts/generate.d.ts +22 -0
  522. package/dist/react-native/scripts/generate.js +18 -0
  523. package/dist/react-native/stub.js +20 -0
  524. package/dist/react-native-theming/index.d.ts +175 -0
  525. package/dist/react-native-theming/index.js +2591 -0
  526. package/dist/react-native-ui/index.d.ts +130 -0
  527. package/dist/react-native-ui/index.js +1865 -0
  528. package/dist/react-native-ui-common/index.d.ts +230 -0
  529. package/dist/react-native-ui-common/index.js +514 -0
  530. package/dist/react-vite/index.d.ts +4 -0
  531. package/dist/react-vite/index.js +8 -0
  532. package/dist/react-vite/node/index.d.ts +6 -0
  533. package/dist/react-vite/node/index.js +20 -0
  534. package/dist/react-vite/preset.d.ts +6 -0
  535. package/dist/react-vite/preset.js +21 -0
  536. package/dist/router/index.d.ts +141 -0
  537. package/dist/router/index.js +1217 -0
  538. package/dist/server-errors.d.ts +2 -0
  539. package/dist/server-errors.js +149 -0
  540. package/dist/shared/open-service/index.d.ts +3 -0
  541. package/dist/shared/open-service/index.js +115 -0
  542. package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +75 -0
  543. package/dist/shared/open-service/toolsets/docs/public.d.ts +1296 -0
  544. package/dist/shared/open-service/toolsets/docs/public.js +991 -0
  545. package/dist/telemetry/index.d.ts +314 -0
  546. package/dist/telemetry/index.js +103 -0
  547. package/dist/test/index.d.ts +158 -0
  548. package/dist/test/index.js +19421 -0
  549. package/dist/theming/create.d.ts +15 -0
  550. package/dist/theming/create.js +11 -0
  551. package/dist/theming/index.d.ts +54 -0
  552. package/dist/theming/index.js +511 -0
  553. package/dist/types/index.d.ts +2 -0
  554. package/dist/types/index.js +48 -0
  555. package/dist/viewport/index.d.ts +275 -0
  556. package/dist/viewport/index.js +21 -0
  557. package/package.json +1075 -4
  558. package/template/nextjs-vite/cli/.eslintrc.json +6 -0
  559. package/template/nextjs-vite/cli/js/Button.jsx +42 -0
  560. package/template/nextjs-vite/cli/js/Button.stories.js +49 -0
  561. package/template/nextjs-vite/cli/js/Configure.mdx +470 -0
  562. package/template/nextjs-vite/cli/js/Header.jsx +58 -0
  563. package/template/nextjs-vite/cli/js/Header.stories.js +30 -0
  564. package/template/nextjs-vite/cli/js/Page.jsx +68 -0
  565. package/template/nextjs-vite/cli/js/Page.stories.js +28 -0
  566. package/template/nextjs-vite/cli/ts/Button.stories.ts +54 -0
  567. package/template/nextjs-vite/cli/ts/Button.tsx +39 -0
  568. package/template/nextjs-vite/cli/ts/Configure.mdx +446 -0
  569. package/template/nextjs-vite/cli/ts/Header.stories.ts +34 -0
  570. package/template/nextjs-vite/cli/ts/Header.tsx +54 -0
  571. package/template/nextjs-vite/cli/ts/Page.stories.ts +33 -0
  572. package/template/nextjs-vite/cli/ts/Page.tsx +73 -0
  573. package/template/react/cli/.eslintrc.json +5 -0
  574. package/template/react/cli/js/Button.jsx +39 -0
  575. package/template/react/cli/js/Button.stories.js +49 -0
  576. package/template/react/cli/js/Header.jsx +56 -0
  577. package/template/react/cli/js/Header.stories.js +29 -0
  578. package/template/react/cli/js/Page.jsx +69 -0
  579. package/template/react/cli/js/Page.stories.js +28 -0
  580. package/template/react/cli/ts/Button.stories.ts +54 -0
  581. package/template/react/cli/ts/Button.tsx +37 -0
  582. package/template/react/cli/ts/Header.stories.ts +34 -0
  583. package/template/react/cli/ts/Header.tsx +56 -0
  584. package/template/react/cli/ts/Page.stories.ts +33 -0
  585. package/template/react/cli/ts/Page.tsx +73 -0
  586. package/template/react-vite/cli/.eslintrc.json +5 -0
  587. package/template/react-vite/cli/js/Button.jsx +39 -0
  588. package/template/react-vite/cli/js/Button.stories.js +49 -0
  589. package/template/react-vite/cli/js/Header.jsx +56 -0
  590. package/template/react-vite/cli/js/Header.stories.js +29 -0
  591. package/template/react-vite/cli/js/Page.jsx +69 -0
  592. package/template/react-vite/cli/js/Page.stories.js +28 -0
  593. package/template/react-vite/cli/ts/Button.stories.ts +54 -0
  594. package/template/react-vite/cli/ts/Button.tsx +37 -0
  595. package/template/react-vite/cli/ts/Header.stories.ts +34 -0
  596. package/template/react-vite/cli/ts/Header.tsx +56 -0
  597. package/template/react-vite/cli/ts/Page.stories.ts +33 -0
  598. package/template/react-vite/cli/ts/Page.tsx +73 -0
@@ -0,0 +1,1061 @@
1
+ import { a as TableOfContents, i as DocsContextProps, n as DocsContainerProps, r as DocsContext, t as DocsContainer } from "../chunk-Ct9xd6IM.js";
2
+ import { Renderer } from "@aussieljk/forkbook/internal/csf";
3
+ import * as React$1 from "react";
4
+ import React, { ComponentProps, Context, FC, FunctionComponent, PropsWithChildren, ReactElement, ReactNode } from "react";
5
+ import { Args as Args$1, BaseAnnotations, ComponentTitle, Conditional, DocsContextProps as DocsContextProps$1, ModuleExport, ModuleExports, Parameters as Parameters$1, PreparedStory, Renderer as Renderer$1, ResolvedModuleExportFromType, ResolvedModuleExportType, StoryId as StoryId$1 } from "@aussieljk/forkbook/internal/types";
6
+ import { PropDescriptor } from "@aussieljk/forkbook/preview-api";
7
+ import { ActionItem, SupportedLanguage as SupportedLanguage$1, SyntaxHighlighter, SyntaxHighlighterFormatTypes } from "@aussieljk/forkbook/internal/components";
8
+ import { SourceType, anchorBlockIdFromId } from "@aussieljk/forkbook/internal/docs-tools";
9
+
10
+ //#region .dts-emit/code/core/src/addon-docs/blocks/components/Source.d.ts
11
+ declare enum SourceError {
12
+ NO_STORY = "There\u2019s no story here.",
13
+ SOURCE_UNAVAILABLE = "Oh no! The source is not available."
14
+ }
15
+ interface SourceCodeProps {
16
+ /** The language the syntax highlighter uses for your story’s code */
17
+ language?: SupportedLanguage$1;
18
+ /** Use this to override the content of the source block. */
19
+ code?: string;
20
+ /** The formatter the syntax highlighter uses for your story’s code. */
21
+ format?: ComponentProps<typeof SyntaxHighlighter>['format'];
22
+ /** Display the source snippet in a dark mode. */
23
+ dark?: boolean;
24
+ /** Whether to show the copy button. Defaults to true. */
25
+ copyable?: boolean;
26
+ }
27
+ interface SourceProps$1 extends SourceCodeProps {
28
+ isLoading?: boolean;
29
+ error?: SourceError;
30
+ /** Why the snippet is an incomplete example, when it is one; see `StoryDoc.warning`. */
31
+ warning?: string;
32
+ /** Replaces the `docblock-source` class names of the code block. */
33
+ className?: string;
34
+ }
35
+ /** Syntax-highlighted source code for a component (or anything!) */
36
+ declare const Source$1: FunctionComponent<SourceProps$1>;
37
+ //#endregion
38
+ //#region .dts-emit/code/core/src/addon-docs/blocks/components/Preview.d.ts
39
+ type PreviewProps = PropsWithChildren<{
40
+ isLoading?: true;
41
+ layout?: Layout;
42
+ inline?: boolean;
43
+ isColumn?: boolean;
44
+ columns?: number;
45
+ withSource?: SourceProps$1;
46
+ isExpanded?: boolean;
47
+ withToolbar?: boolean;
48
+ className?: string;
49
+ additionalActions?: ActionItem[];
50
+ onReloadStory?: () => void;
51
+ }>;
52
+ type Layout = 'padded' | 'fullscreen' | 'centered';
53
+ //#endregion
54
+ //#region .dts-emit/code/core/src/addon-docs/blocks/components/ArgsTable/types.d.ts
55
+ interface ArgType {
56
+ name?: string;
57
+ description?: string;
58
+ if?: Conditional;
59
+ table?: {
60
+ category?: string;
61
+ disable?: boolean;
62
+ subcategory?: string;
63
+ defaultValue?: {
64
+ summary?: string | undefined;
65
+ detail?: string | undefined;
66
+ };
67
+ type?: {
68
+ summary?: string | undefined;
69
+ detail?: string | undefined;
70
+ };
71
+ readonly?: boolean;
72
+ [key: string]: any;
73
+ };
74
+ [key: string]: any;
75
+ }
76
+ interface ArgTypes$3 {
77
+ [key: string]: ArgType;
78
+ }
79
+ interface Args$2 {
80
+ [key: string]: any;
81
+ }
82
+ type Globals$2 = {
83
+ [name: string]: any;
84
+ };
85
+ //#endregion
86
+ //#region .dts-emit/code/core/src/addon-docs/blocks/components/ArgsTable/ArgsTable.d.ts
87
+ declare enum ArgsTableError {
88
+ NO_COMPONENT = "No component found.",
89
+ ARGS_UNSUPPORTED = "Args unsupported. See Args documentation for your framework.",
90
+ NOT_A_STORY_COMPONENT = "No docs found for this component on this page. Import the story file whose meta.component is this component, or pass `of={ComponentStories}`."
91
+ }
92
+ type SortType = 'alpha' | 'requiredFirst' | 'none';
93
+ interface ArgsTableOptionProps {
94
+ children?: React.ReactNode;
95
+ updateArgs?: (args: Args$2) => void;
96
+ resetArgs?: (argNames?: string[]) => void;
97
+ compact?: boolean;
98
+ inAddonPanel?: boolean;
99
+ inTabPanel?: boolean;
100
+ initialExpandedArgs?: boolean;
101
+ isLoading?: boolean;
102
+ sort?: SortType;
103
+ storyId?: string;
104
+ controlsId?: string;
105
+ docsLang?: string;
106
+ }
107
+ interface ArgsTableDataProps {
108
+ rows: ArgTypes$3;
109
+ args?: Args$2;
110
+ globals?: Globals$2;
111
+ }
112
+ interface ArgsTableErrorProps {
113
+ error: ArgsTableError;
114
+ }
115
+ interface ArgsTableLoadingProps {
116
+ isLoading: boolean;
117
+ }
118
+ type ArgsTableProps = ArgsTableOptionProps & (ArgsTableDataProps | ArgsTableErrorProps | ArgsTableLoadingProps);
119
+ /**
120
+ * Display the props for a component as a props table. Each row is a collection of ArgDefs, usually
121
+ * derived from docgen info for the component.
122
+ */
123
+ declare const ArgsTable: FC<ArgsTableProps>;
124
+ //#endregion
125
+ //#region .dts-emit/code/core/src/addon-docs/blocks/components/Story.d.ts
126
+ interface CommonProps {
127
+ story: PreparedStory;
128
+ inline: boolean;
129
+ primary: boolean;
130
+ }
131
+ interface InlineStoryProps extends CommonProps {
132
+ inline: true;
133
+ height?: string;
134
+ autoplay: boolean;
135
+ forceInitialArgs: boolean;
136
+ renderStoryToElement: DocsContextProps$1['renderStoryToElement'];
137
+ }
138
+ interface IFrameStoryProps extends CommonProps {
139
+ inline: false;
140
+ height: string;
141
+ }
142
+ type StoryProps$1 = InlineStoryProps | IFrameStoryProps;
143
+ /** A story element, either rendered inline or in an iframe, with configurable height. */
144
+ declare const Story$2: FunctionComponent<StoryProps$1>;
145
+ //#endregion
146
+ //#region .dts-emit/code/core/src/addon-docs/blocks/components/Typeset.d.ts
147
+ interface TypesetProps {
148
+ fontFamily?: string;
149
+ fontSizes: (string | number)[];
150
+ fontWeight?: number;
151
+ sampleText?: string;
152
+ }
153
+ /**
154
+ * Convenient styleguide documentation showing examples of type with different sizes and weights and
155
+ * configurable sample text.
156
+ */
157
+ declare const Typeset: FC<TypesetProps>;
158
+ //#endregion
159
+ //#region .dts-emit/code/core/src/addon-docs/blocks/components/ColorPalette.d.ts
160
+ type Colors = string[] | {
161
+ [key: string]: string;
162
+ };
163
+ interface ColorItemProps {
164
+ title: string;
165
+ subtitle: string;
166
+ colors: Colors;
167
+ }
168
+ /**
169
+ * A single color row your styleguide showing title, subtitle and one or more colors, used as a
170
+ * child of `ColorPalette`.
171
+ */
172
+ declare const ColorItem: FunctionComponent<ColorItemProps>;
173
+ interface ColorPaletteProps {
174
+ children?: React.ReactNode;
175
+ }
176
+ /**
177
+ * Styleguide documentation for colors, including names, captions, and color swatches, all specified
178
+ * as `ColorItem` children of this wrapper component.
179
+ */
180
+ declare const ColorPalette: FunctionComponent<ColorPaletteProps>;
181
+ //#endregion
182
+ //#region .dts-emit/code/core/src/addon-docs/blocks/components/IconGallery.d.ts
183
+ interface IconItemProps {
184
+ name: string;
185
+ children?: React.ReactNode;
186
+ }
187
+ /** An individual icon with a caption and an example (passed as `children`). */
188
+ declare const IconItem: FunctionComponent<IconItemProps>;
189
+ interface IconGalleryProps {
190
+ children?: React.ReactNode;
191
+ }
192
+ /** Show a grid of icons, as specified by `IconItem`. */
193
+ declare const IconGallery: FunctionComponent<IconGalleryProps>;
194
+ //#endregion
195
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/Anchor.d.ts
196
+ interface AnchorProps {
197
+ storyId: string;
198
+ }
199
+ declare const Anchor: FC<PropsWithChildren<AnchorProps>>;
200
+ //#endregion
201
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/ArgTypes.d.ts
202
+ type ArgTypesParameters = {
203
+ include?: PropDescriptor;
204
+ exclude?: PropDescriptor;
205
+ sort?: SortType;
206
+ };
207
+ type ArgTypesProps = ArgTypesParameters & {
208
+ of?: Renderer['component'] | ModuleExports;
209
+ };
210
+ declare const ArgTypes: React.ComponentType<ArgTypesProps>;
211
+ //#endregion
212
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/SourceContainer.d.ts
213
+ type ArgsHash = string;
214
+ declare function argsHash(args: Args$1): ArgsHash;
215
+ interface SourceItem {
216
+ code: string;
217
+ format?: SyntaxHighlighterFormatTypes;
218
+ /** Why `code` is an incomplete example, when it is one; see `StoryDoc.warning`. */
219
+ warning?: string;
220
+ }
221
+ type StorySources = Record<StoryId$1, Record<ArgsHash, SourceItem>>;
222
+ interface SourceContextProps {
223
+ sources: StorySources;
224
+ setSource?: (id: StoryId$1, item: SourceItem) => void;
225
+ }
226
+ declare const SourceContext: Context<SourceContextProps>;
227
+ declare const UNKNOWN_ARGS_HASH = "--unknown--";
228
+ declare const SourceContainer: FC<PropsWithChildren<{
229
+ channel: DocsContextProps$1['channel'];
230
+ }>>;
231
+ //#endregion
232
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/Source.d.ts
233
+ type SourceParameters = SourceCodeProps & {
234
+ /** Where to read the source code from, see `SourceType` */type?: SourceType; /** Transform the detected source for display */
235
+ transform?: (code: string, storyContext: ReturnType<DocsContextProps['getStoryContext']>) => string | Promise<string>; /** Internal: set by our CSF loader (`enrichCsf` in `@aussieljk/forkbook/internal/csf-tools`). */
236
+ originalSource?: string;
237
+ };
238
+ type SourceProps = SourceParameters & {
239
+ /**
240
+ * Pass the export defining a story to render its source
241
+ *
242
+ * ```jsx
243
+ * import { Source } from '@aussieljk/forkbook/addon-docs/blocks';
244
+ * import * as ButtonStories from './Button.stories';
245
+ *
246
+ * <Source of={ButtonStories.Primary} />;
247
+ * ```
248
+ */
249
+ of?: ModuleExport; /** Internal prop to control if a story re-renders on args updates */
250
+ __forceInitialArgs?: boolean;
251
+ };
252
+ type PureSourceProps = ComponentProps<typeof Source$1>;
253
+ declare const useSourceProps: (props: SourceProps, docsContext: DocsContextProps, sourceContext: SourceContextProps, serviceSnippet?: string, serviceWarning?: string) => PureSourceProps;
254
+ declare const Source: React.ComponentType<SourceProps>;
255
+ //#endregion
256
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/Story.d.ts
257
+ type PureStoryProps = ComponentProps<typeof Story$2>;
258
+ /** Props to reference another story */
259
+ type StoryRefProps = {
260
+ /**
261
+ * Pass the export defining a story to render that story
262
+ *
263
+ * ```jsx
264
+ * import { Meta, Story } from '@aussieljk/forkbook/addon-docs/blocks';
265
+ * import * as ButtonStories from './Button.stories';
266
+ *
267
+ * <Meta of={ButtonStories} />
268
+ * <Story of={ButtonStories.Primary} />
269
+ * ```
270
+ */
271
+ of?: ModuleExport;
272
+ /**
273
+ * Pass all exports of the CSF file if this MDX file is unattached
274
+ *
275
+ * ```jsx
276
+ * import { Story } from '@aussieljk/forkbook/addon-docs/blocks';
277
+ * import * as ButtonStories from './Button.stories';
278
+ *
279
+ * <Story of={ButtonStories.Primary} meta={ButtonStories} />;
280
+ * ```
281
+ */
282
+ meta?: ModuleExports;
283
+ };
284
+ type StoryParameters = {
285
+ /** Render the story inline or in an iframe */inline?: boolean; /** When rendering in an iframe (`inline={false}`), set the story height */
286
+ height?: string; /** Whether to run the story's play function */
287
+ autoplay?: boolean; /** Internal prop to control if a story re-renders on args updates */
288
+ __forceInitialArgs?: boolean; /** Internal prop if this story is the primary story */
289
+ __primary?: boolean;
290
+ };
291
+ type StoryProps = StoryRefProps & StoryParameters;
292
+ declare const getStoryId: (props: StoryProps, context: DocsContextProps) => StoryId$1;
293
+ declare const getStoryProps: <TFramework extends Renderer$1>(props: StoryParameters, story: PreparedStory<TFramework>, context: DocsContextProps<TFramework>) => PureStoryProps;
294
+ declare const Story: React.ComponentType<StoryProps>;
295
+ //#endregion
296
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/Canvas.d.ts
297
+ type CanvasProps = Pick<PreviewProps, 'withToolbar' | 'additionalActions' | 'className'> & {
298
+ /**
299
+ * Pass the export defining a story to render that story
300
+ *
301
+ * ```jsx
302
+ * import { Meta, Canvas } from '@aussieljk/forkbook/addon-docs/blocks';
303
+ * import * as ButtonStories from './Button.stories';
304
+ *
305
+ * <Meta of={ButtonStories} />
306
+ * <Canvas of={ButtonStories.Primary} />
307
+ * ```
308
+ */
309
+ of?: ModuleExport;
310
+ /**
311
+ * Pass all exports of the CSF file if this MDX file is unattached
312
+ *
313
+ * ```jsx
314
+ * import { Canvas } from '@aussieljk/forkbook/addon-docs/blocks';
315
+ * import * as ButtonStories from './Button.stories';
316
+ *
317
+ * <Canvas of={ButtonStories.Primary} meta={ButtonStories} />;
318
+ * ```
319
+ */
320
+ meta?: ModuleExports;
321
+ /**
322
+ * Specify the initial state of the source panel hidden: the source panel is hidden by default
323
+ * shown: the source panel is shown by default none: the source panel is not available and the
324
+ * button to show it is hidden
325
+ *
326
+ * @default 'hidden'
327
+ */
328
+ sourceState?: 'hidden' | 'shown' | 'none';
329
+ /**
330
+ * How to layout the story within the canvas padded: the story has padding within the canvas
331
+ * fullscreen: the story is rendered edge to edge within the canvas centered: the story is
332
+ * centered within the canvas
333
+ *
334
+ * @default 'padded'
335
+ */
336
+ layout?: Layout; /** @see {SourceProps} */
337
+ source?: Omit<SourceProps, 'dark'>; /** @see {StoryProps} */
338
+ story?: Pick<StoryProps, 'inline' | 'height' | 'autoplay' | '__forceInitialArgs' | '__primary'>;
339
+ };
340
+ declare const Canvas: React.ComponentType<CanvasProps>;
341
+ //#endregion
342
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/Controls.d.ts
343
+ type ControlsParameters = {
344
+ include?: PropDescriptor;
345
+ exclude?: PropDescriptor;
346
+ sort?: SortType;
347
+ };
348
+ type ControlsProps = ControlsParameters & {
349
+ of?: Renderer['component'] | ModuleExports;
350
+ };
351
+ declare const Controls: React.ComponentType<ControlsProps>;
352
+ //#endregion
353
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/useOf.d.ts
354
+ type Of = Parameters<DocsContextProps$1['resolveOf']>[0];
355
+ /**
356
+ * A hook to resolve the `of` prop passed to a block. will return the resolved module if the
357
+ * resolved module is a meta it will include a preparedMeta property similar to a preparedStory if
358
+ * the resolved module is a component it will include the project annotations
359
+ */
360
+ declare const useOf: <TType extends ResolvedModuleExportType>(moduleExportOrType: Of, validTypes?: TType[]) => ResolvedModuleExportFromType<TType>;
361
+ //#endregion
362
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/Description.d.ts
363
+ declare enum DescriptionType {
364
+ INFO = "info",
365
+ NOTES = "notes",
366
+ DOCGEN = "docgen",
367
+ AUTO = "auto"
368
+ }
369
+ interface DescriptionProps {
370
+ /**
371
+ * Specify where to get the description from. Can be a component, a CSF file or a story. If not
372
+ * specified, the description will be extracted from the meta of the attached CSF file.
373
+ */
374
+ of?: Of;
375
+ }
376
+ declare const Description: React.ComponentType<DescriptionProps>;
377
+ //#endregion
378
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/Docs.d.ts
379
+ type DocsProps<TRenderer extends Renderer$1 = Renderer$1> = {
380
+ docsParameter: Parameters$1;
381
+ context: DocsContextProps<TRenderer>;
382
+ };
383
+ declare function Docs<TRenderer extends Renderer$1 = Renderer$1>({
384
+ context,
385
+ docsParameter
386
+ }: DocsProps<TRenderer>): React.JSX.Element;
387
+ //#endregion
388
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/DocsPage.d.ts
389
+ declare const DocsPage: FC;
390
+ //#endregion
391
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/types.d.ts
392
+ declare const PRIMARY_STORY = "^";
393
+ type Component = any;
394
+ type DocsStoryProps = {
395
+ of: ModuleExport;
396
+ expanded?: boolean;
397
+ withToolbar?: boolean;
398
+ __forceInitialArgs?: boolean;
399
+ __primary?: boolean;
400
+ };
401
+ //#endregion
402
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/DocsStory.d.ts
403
+ declare const DocsStory: React.ComponentType<DocsStoryProps>;
404
+ //#endregion
405
+ //#region ../../node_modules/github-slugger/index.d.ts
406
+ /**
407
+ * Slugger.
408
+ */
409
+ declare class BananaSlug {
410
+ /** @type {Record<string, number>} */
411
+ occurrences: Record<string, number>;
412
+ /**
413
+ * Generate a unique slug.
414
+ *
415
+ * Tracks previously generated slugs: repeated calls with the same value
416
+ * will result in different slugs.
417
+ * Use the `slug` function to get same slugs.
418
+ *
419
+ * @param {string} value
420
+ * String of text to slugify
421
+ * @param {boolean} [maintainCase=false]
422
+ * Keep the current case, otherwise make all lowercase
423
+ * @return {string}
424
+ * A unique slug string
425
+ */
426
+ slug(value: string, maintainCase?: boolean | undefined): string;
427
+ /**
428
+ * Reset - Forget all previous slugs
429
+ *
430
+ * @return void
431
+ */
432
+ reset(): void;
433
+ }
434
+ //#endregion
435
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/Heading.d.ts
436
+ interface HeadingProps {
437
+ disableAnchor?: boolean;
438
+ }
439
+ declare const slugs: BananaSlug;
440
+ declare const Heading: React.ComponentType<PropsWithChildren<HeadingProps>>;
441
+ //#endregion
442
+ //#region ../../node_modules/markdown-to-jsx/dist/index.d.ts
443
+ /**
444
+ * Analogous to `node.type`. Please note that the values here may change at any time,
445
+ * so do not hard code against the value directly.
446
+ */
447
+ declare const RuleType: {
448
+ readonly blockQuote: "0";
449
+ readonly breakLine: "1";
450
+ readonly breakThematic: "2";
451
+ readonly codeBlock: "3";
452
+ readonly codeFenced: "4";
453
+ readonly codeInline: "5";
454
+ readonly footnote: "6";
455
+ readonly footnoteReference: "7";
456
+ readonly gfmTask: "8";
457
+ readonly heading: "9";
458
+ readonly headingSetext: "10"; /** only available if not `disableHTMLParsing` */
459
+ readonly htmlBlock: "11";
460
+ readonly htmlComment: "12"; /** only available if not `disableHTMLParsing` */
461
+ readonly htmlSelfClosing: "13";
462
+ readonly image: "14";
463
+ readonly link: "15"; /** emits a `link` 'node', does not render directly */
464
+ readonly linkAngleBraceStyleDetector: "16"; /** emits a `link` 'node', does not render directly */
465
+ readonly linkBareUrlDetector: "17";
466
+ /** @deprecated merged into linkAngleBraceStyleDetector
467
+ *
468
+ * emits a `link` 'node', does not render directly */
469
+ readonly linkMailtoDetector: "18";
470
+ readonly newlineCoalescer: "19";
471
+ readonly orderedList: "20";
472
+ readonly paragraph: "21";
473
+ readonly ref: "22";
474
+ readonly refImage: "23";
475
+ readonly refLink: "24";
476
+ readonly table: "25";
477
+ readonly tableSeparator: "26";
478
+ readonly text: "27";
479
+ readonly textBolded: "28";
480
+ readonly textEmphasized: "29";
481
+ readonly textEscaped: "30";
482
+ readonly textMarked: "31";
483
+ readonly textStrikethroughed: "32";
484
+ readonly unorderedList: "33";
485
+ };
486
+ type RuleType = (typeof RuleType)[keyof typeof RuleType];
487
+ declare const Priority: {
488
+ /**
489
+ * anything that must scan the tree before everything else
490
+ */
491
+ MAX: number;
492
+ /**
493
+ * scans for block-level constructs
494
+ */
495
+ HIGH: number;
496
+ /**
497
+ * inline w/ more priority than other inline
498
+ */
499
+ MED: number;
500
+ /**
501
+ * inline elements
502
+ */
503
+ LOW: number;
504
+ /**
505
+ * bare text and stuff that is considered leftovers
506
+ */
507
+ MIN: number;
508
+ };
509
+ declare namespace MarkdownToJSX {
510
+ /**
511
+ * RequireAtLeastOne<{ ... }> <- only requires at least one key
512
+ */
513
+ type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & { [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>> }[Keys];
514
+ export type CreateElement = typeof React$1.createElement;
515
+ export type HTMLTags = keyof React$1.JSX.IntrinsicElements;
516
+ export type State = {
517
+ /** true if the current content is inside anchor link grammar */inAnchor?: boolean; /** true if parsing in an HTML context */
518
+ inHTML?: boolean; /** true if parsing in an inline context (subset of rules around formatting and links) */
519
+ inline?: boolean; /** true if in a table */
520
+ inTable?: boolean; /** use this for the `key` prop */
521
+ key?: React$1.Key; /** true if in a list */
522
+ list?: boolean; /** used for lookbacks */
523
+ prevCapture?: string; /** true if parsing in inline context w/o links */
524
+ simple?: boolean;
525
+ };
526
+ export interface BlockQuoteNode {
527
+ alert?: string;
528
+ children: MarkdownToJSX.ParserResult[];
529
+ type: typeof RuleType.blockQuote;
530
+ }
531
+ export interface BreakLineNode {
532
+ type: typeof RuleType.breakLine;
533
+ }
534
+ export interface BreakThematicNode {
535
+ type: typeof RuleType.breakThematic;
536
+ }
537
+ export interface CodeBlockNode {
538
+ type: typeof RuleType.codeBlock;
539
+ attrs?: React$1.JSX.IntrinsicAttributes;
540
+ lang?: string;
541
+ text: string;
542
+ }
543
+ export interface CodeFencedNode {
544
+ type: typeof RuleType.codeFenced;
545
+ }
546
+ export interface CodeInlineNode {
547
+ type: typeof RuleType.codeInline;
548
+ text: string;
549
+ }
550
+ export interface FootnoteNode {
551
+ type: typeof RuleType.footnote;
552
+ }
553
+ export interface FootnoteReferenceNode {
554
+ type: typeof RuleType.footnoteReference;
555
+ target: string;
556
+ text: string;
557
+ }
558
+ export interface GFMTaskNode {
559
+ type: typeof RuleType.gfmTask;
560
+ completed: boolean;
561
+ }
562
+ export interface HeadingNode {
563
+ type: typeof RuleType.heading;
564
+ children: MarkdownToJSX.ParserResult[];
565
+ id: string;
566
+ level: 1 | 2 | 3 | 4 | 5 | 6;
567
+ }
568
+ export interface HeadingSetextNode {
569
+ type: typeof RuleType.headingSetext;
570
+ }
571
+ export interface HTMLCommentNode {
572
+ type: typeof RuleType.htmlComment;
573
+ }
574
+ export interface ImageNode {
575
+ type: typeof RuleType.image;
576
+ alt?: string;
577
+ target: string;
578
+ title?: string;
579
+ }
580
+ export interface LinkNode {
581
+ type: typeof RuleType.link;
582
+ children: MarkdownToJSX.ParserResult[];
583
+ target: string;
584
+ title?: string;
585
+ }
586
+ export interface LinkAngleBraceNode {
587
+ type: typeof RuleType.linkAngleBraceStyleDetector;
588
+ }
589
+ export interface LinkBareURLNode {
590
+ type: typeof RuleType.linkBareUrlDetector;
591
+ }
592
+ export interface LinkMailtoNode {
593
+ type: typeof RuleType.linkMailtoDetector;
594
+ }
595
+ export interface OrderedListNode {
596
+ type: typeof RuleType.orderedList;
597
+ items: MarkdownToJSX.ParserResult[][];
598
+ ordered: true;
599
+ start?: number;
600
+ }
601
+ export interface UnorderedListNode {
602
+ type: typeof RuleType.unorderedList;
603
+ items: MarkdownToJSX.ParserResult[][];
604
+ ordered: false;
605
+ }
606
+ export interface NewlineNode {
607
+ type: typeof RuleType.newlineCoalescer;
608
+ }
609
+ export interface ParagraphNode {
610
+ type: typeof RuleType.paragraph;
611
+ children: MarkdownToJSX.ParserResult[];
612
+ }
613
+ export interface ReferenceNode {
614
+ type: typeof RuleType.ref;
615
+ }
616
+ export interface ReferenceImageNode {
617
+ type: typeof RuleType.refImage;
618
+ alt?: string;
619
+ ref: string;
620
+ }
621
+ export interface ReferenceLinkNode {
622
+ type: typeof RuleType.refLink;
623
+ children: MarkdownToJSX.ParserResult[];
624
+ fallbackChildren: string;
625
+ ref: string;
626
+ }
627
+ export interface TableNode {
628
+ type: typeof RuleType.table;
629
+ /**
630
+ * alignment for each table column
631
+ */
632
+ align: ('left' | 'right' | 'center')[];
633
+ cells: MarkdownToJSX.ParserResult[][][];
634
+ header: MarkdownToJSX.ParserResult[][];
635
+ }
636
+ export interface TableSeparatorNode {
637
+ type: typeof RuleType.tableSeparator;
638
+ }
639
+ export interface TextNode {
640
+ type: typeof RuleType.text;
641
+ text: string;
642
+ }
643
+ export interface BoldTextNode {
644
+ type: typeof RuleType.textBolded;
645
+ children: MarkdownToJSX.ParserResult[];
646
+ }
647
+ export interface ItalicTextNode {
648
+ type: typeof RuleType.textEmphasized;
649
+ children: MarkdownToJSX.ParserResult[];
650
+ }
651
+ export interface EscapedTextNode {
652
+ type: typeof RuleType.textEscaped;
653
+ }
654
+ export interface MarkedTextNode {
655
+ type: typeof RuleType.textMarked;
656
+ children: MarkdownToJSX.ParserResult[];
657
+ }
658
+ export interface StrikethroughTextNode {
659
+ type: typeof RuleType.textStrikethroughed;
660
+ children: MarkdownToJSX.ParserResult[];
661
+ }
662
+ export interface HTMLNode {
663
+ type: typeof RuleType.htmlBlock;
664
+ attrs: React$1.JSX.IntrinsicAttributes;
665
+ children?: ReturnType<MarkdownToJSX.NestedParser> | undefined;
666
+ noInnerParse: Boolean;
667
+ tag: MarkdownToJSX.HTMLTags;
668
+ text?: string | undefined;
669
+ }
670
+ export interface HTMLSelfClosingNode {
671
+ type: typeof RuleType.htmlSelfClosing;
672
+ attrs: React$1.JSX.IntrinsicAttributes;
673
+ tag: string;
674
+ }
675
+ export type ParserResult = BlockQuoteNode | BreakLineNode | BreakThematicNode | CodeBlockNode | CodeFencedNode | CodeInlineNode | FootnoteNode | FootnoteReferenceNode | GFMTaskNode | HeadingNode | HeadingSetextNode | HTMLCommentNode | ImageNode | LinkNode | LinkAngleBraceNode | LinkBareURLNode | LinkMailtoNode | OrderedListNode | UnorderedListNode | NewlineNode | ParagraphNode | ReferenceNode | ReferenceImageNode | ReferenceLinkNode | TableNode | TableSeparatorNode | TextNode | BoldTextNode | ItalicTextNode | EscapedTextNode | MarkedTextNode | StrikethroughTextNode | HTMLNode | HTMLSelfClosingNode;
676
+ export type NestedParser = (input: string, state?: MarkdownToJSX.State) => MarkdownToJSX.ParserResult[];
677
+ export type Parser<ParserOutput> = (capture: RegExpMatchArray, nestedParse: NestedParser, state?: MarkdownToJSX.State) => ParserOutput;
678
+ export type RuleOutput = (ast: MarkdownToJSX.ParserResult | MarkdownToJSX.ParserResult[], state: MarkdownToJSX.State) => React$1.ReactNode;
679
+ export type Rule<ParserOutput = MarkdownToJSX.ParserResult> = {
680
+ _match: (source: string, state: MarkdownToJSX.State, prevCapturedString?: string) => RegExpMatchArray;
681
+ _order: (typeof Priority)[keyof typeof Priority];
682
+ _parse: MarkdownToJSX.Parser<Omit<ParserOutput, 'type'>>;
683
+ /**
684
+ * Optional fast check that can quickly determine if this rule
685
+ * should even be attempted. Should check the start of the source string
686
+ * for quick patterns without expensive regex operations.
687
+ *
688
+ * @param source The input source string (already trimmed of leading whitespace)
689
+ * @param state Current parser state
690
+ * @returns true if the rule should be attempted, false to skip
691
+ */
692
+ _qualify?: string[] | ((source: string, state: MarkdownToJSX.State) => boolean);
693
+ _render?: (node: ParserOutput,
694
+ /**
695
+ * Continue rendering AST nodes if applicable.
696
+ */
697
+
698
+ render: RuleOutput, state?: MarkdownToJSX.State) => React$1.ReactNode;
699
+ };
700
+ export type Rules = { [K in ParserResult['type']]: K extends typeof RuleType.table ? Rule<Extract<ParserResult, {
701
+ type: K | typeof RuleType.paragraph;
702
+ }>> : Rule<Extract<ParserResult, {
703
+ type: K;
704
+ }>> };
705
+ export type Override = RequireAtLeastOne<{
706
+ component: React$1.ElementType;
707
+ props: Object;
708
+ }> | React$1.ElementType;
709
+ export type Overrides = { [tag in HTMLTags]?: Override } & {
710
+ [customComponent: string]: Override;
711
+ };
712
+ export type Options = Partial<{
713
+ /**
714
+ * Ultimate control over the output of all rendered JSX.
715
+ */
716
+ createElement: (tag: Parameters<CreateElement>[0], props: React$1.JSX.IntrinsicAttributes, ...children: React$1.ReactNode[]) => React$1.ReactNode;
717
+ /**
718
+ * The library automatically generates an anchor tag for bare URLs included in the markdown
719
+ * document, but this behavior can be disabled if desired.
720
+ */
721
+ disableAutoLink: boolean;
722
+ /**
723
+ * Disable the compiler's best-effort transcription of provided raw HTML
724
+ * into JSX-equivalent. This is the functionality that prevents the need to
725
+ * use `dangerouslySetInnerHTML` in React.
726
+ */
727
+ disableParsingRawHTML: boolean;
728
+ /**
729
+ * Forces the compiler to have space between hash sign and the header text which
730
+ * is explicitly stated in the most of the markdown specs.
731
+ * https://github.github.com/gfm/#atx-heading
732
+ * `The opening sequence of # characters must be followed by a space or by the end of line.`
733
+ */
734
+ enforceAtxHeadings: boolean;
735
+ /**
736
+ * Forces the compiler to always output content with a block-level wrapper
737
+ * (`<p>` or any block-level syntax your markdown already contains.)
738
+ */
739
+ forceBlock: boolean;
740
+ /**
741
+ * Forces the compiler to always output content with an inline wrapper (`<span>`)
742
+ */
743
+ forceInline: boolean;
744
+ /**
745
+ * Forces the compiler to wrap results, even if there is only a single
746
+ * child or no children.
747
+ */
748
+ forceWrapper: boolean;
749
+ /**
750
+ * Supply additional HTML entity: unicode replacement mappings.
751
+ *
752
+ * Pass only the inner part of the entity as the key,
753
+ * e.g. `&le;` -> `{ "le": "\u2264" }`
754
+ *
755
+ * By default
756
+ * the following entities are replaced with their unicode equivalents:
757
+ *
758
+ * ```
759
+ * &amp;
760
+ * &apos;
761
+ * &gt;
762
+ * &lt;
763
+ * &nbsp;
764
+ * &quot;
765
+ * ```
766
+ */
767
+ namedCodesToUnicode: {
768
+ [key: string]: string;
769
+ };
770
+ /**
771
+ * Selectively control the output of particular HTML tags as they would be
772
+ * emitted by the compiler.
773
+ */
774
+ overrides: Overrides;
775
+ /**
776
+ * Allows for full control over rendering of particular rules.
777
+ * For example, to implement a LaTeX renderer such as `react-katex`:
778
+ *
779
+ * ```
780
+ * renderRule(next, node, renderChildren, state) {
781
+ * if (node.type === RuleType.codeBlock && node.lang === 'latex') {
782
+ * return (
783
+ * <TeX as="div" key={state.key}>
784
+ * {String.raw`${node.text}`}
785
+ * </TeX>
786
+ * )
787
+ * }
788
+ *
789
+ * return next();
790
+ * }
791
+ * ```
792
+ *
793
+ * Thar be dragons obviously, but you can do a lot with this
794
+ * (have fun!) To see how things work internally, check the `render`
795
+ * method in source for a particular rule.
796
+ */
797
+ renderRule: (/** Resume normal processing, call this function as a fallback if you are not returning custom JSX. */
798
+
799
+ next: () => React$1.ReactNode, /** the current AST node, use `RuleType` against `node.type` for identification */
800
+
801
+ node: ParserResult, /** use as `renderChildren(node.children)` for block nodes */
802
+
803
+ renderChildren: RuleOutput, /** contains `key` which should be supplied to the topmost JSX element */
804
+
805
+ state: State) => React$1.ReactNode;
806
+ /**
807
+ * Override the built-in sanitizer function for URLs, etc if desired. The built-in version is available as a library export called `sanitizer`.
808
+ */
809
+ sanitizer: (value: string, tag: HTMLTags, attribute: string) => string | null;
810
+ /**
811
+ * Override normalization of non-URI-safe characters for use in generating
812
+ * HTML IDs for anchor linking purposes.
813
+ */
814
+ slugify: (input: string, defaultFn: (input: string) => string) => string;
815
+ /**
816
+ * Declare the type of the wrapper to be used when there are multiple
817
+ * children to render. Set to `null` to get an array of children back
818
+ * without any wrapper, or use `React.Fragment` to get a React element
819
+ * that won't show up in the DOM.
820
+ */
821
+ wrapper: React$1.ElementType | null;
822
+ }>;
823
+ export {};
824
+ }
825
+ //#endregion
826
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/Markdown.d.ts
827
+ declare const Markdown: React.ComponentType<Omit<React.HTMLAttributes<Element>, "children"> & {
828
+ children: string;
829
+ options?: MarkdownToJSX.Options;
830
+ }>;
831
+ //#endregion
832
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/Meta.d.ts
833
+ type MetaProps = BaseAnnotations & {
834
+ of?: ModuleExports;
835
+ title?: string;
836
+ };
837
+ /**
838
+ * This component is used to declare component metadata in docs and gets transformed into a default
839
+ * export underneath the hood.
840
+ */
841
+ declare const Meta: FC<MetaProps>;
842
+ //#endregion
843
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/Primary.d.ts
844
+ declare const Primary: React.ComponentType<{}>;
845
+ //#endregion
846
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/Stories.d.ts
847
+ interface StoriesProps {
848
+ title?: ReactElement | string;
849
+ includePrimary?: boolean;
850
+ }
851
+ declare const Stories: React.ComponentType<StoriesProps>;
852
+ //#endregion
853
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/Subheading.d.ts
854
+ declare const Subheading: React.ComponentType<PropsWithChildren<HeadingProps>>;
855
+ //#endregion
856
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/Subtitle.d.ts
857
+ interface SubtitleProps {
858
+ children?: ReactNode;
859
+ /**
860
+ * Specify where to get the subtitle from. If not specified, the subtitle will be extracted from
861
+ * the meta of the attached CSF file.
862
+ */
863
+ of?: Of;
864
+ }
865
+ declare const Subtitle: React.ComponentType<SubtitleProps>;
866
+ //#endregion
867
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/Title.d.ts
868
+ interface TitleProps {
869
+ /**
870
+ * Specify where to get the title from. Must be a CSF file's default export. If not specified, the
871
+ * title will be read from children, or extracted from the meta of the attached CSF file.
872
+ */
873
+ of?: Of;
874
+ /** Specify content to display as the title. */
875
+ children?: ReactNode;
876
+ }
877
+ declare const extractTitle: (title: ComponentTitle) => string;
878
+ declare const Title: React.ComponentType<TitleProps>;
879
+ //#endregion
880
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/Unstyled.d.ts
881
+ declare const Unstyled: React.ComponentType<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
882
+ //#endregion
883
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/Wrapper.d.ts
884
+ declare const Wrapper: React.ComponentType<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
885
+ //#endregion
886
+ //#region .dts-emit/code/core/src/addon-docs/blocks/blocks/mdx.d.ts
887
+ declare const assertIsFn: (val: any) => any;
888
+ declare const AddContext: FC<PropsWithChildren<DocsContextProps>>;
889
+ interface CodeOrSourceMdxProps {
890
+ className?: string;
891
+ }
892
+ declare const CodeOrSourceMdx: FC<PropsWithChildren<CodeOrSourceMdxProps>>;
893
+ interface AnchorMdxProps {
894
+ href: string;
895
+ target: string;
896
+ }
897
+ declare const AnchorMdx: FC<PropsWithChildren<AnchorMdxProps>>;
898
+ interface HeaderMdxProps {
899
+ as: string;
900
+ id: string;
901
+ }
902
+ declare const HeaderMdx: FC<PropsWithChildren<HeaderMdxProps>>;
903
+ declare const HeadersMdx: {};
904
+ //#endregion
905
+ //#region .dts-emit/code/core/src/addon-docs/blocks/controls/types.d.ts
906
+ interface ControlProps<T> {
907
+ name: string;
908
+ storyId?: string;
909
+ controlsId?: string;
910
+ value?: T;
911
+ defaultValue?: T;
912
+ argType?: ArgType;
913
+ /** Whether the underlying arg is required; surfaced as `aria-required` on the control's input. */
914
+ required?: boolean;
915
+ onChange: (value?: T) => T | void;
916
+ onFocus?: (evt: any) => void;
917
+ onBlur?: (evt: any) => void;
918
+ }
919
+ type BooleanValue = boolean;
920
+ interface BooleanConfig {}
921
+ type ColorValue = string;
922
+ type PresetColor = ColorValue | {
923
+ color: ColorValue;
924
+ title?: string;
925
+ };
926
+ interface ColorConfig {
927
+ presetColors?: PresetColor[];
928
+ /**
929
+ * Maximum number of preset colors shown in the color picker. When the number of presets exceeds
930
+ * this value, the oldest presets are removed first (most-recently-used order). Set to `Infinity`
931
+ * or `0` to disable the limit and show all presets.
932
+ *
933
+ * @default 27
934
+ */
935
+ maxPresetColors?: number;
936
+ /**
937
+ * Whether the color picker should be open by default when rendered.
938
+ *
939
+ * @default false
940
+ */
941
+ startOpen?: boolean;
942
+ }
943
+ type DateValue = Date | number;
944
+ interface DateConfig {}
945
+ type NumberValue = number;
946
+ interface NumberConfig {
947
+ min?: number;
948
+ max?: number;
949
+ step?: number;
950
+ }
951
+ type RangeConfig = NumberConfig;
952
+ type ObjectValue = any;
953
+ interface ObjectConfig {}
954
+ type OptionsSingleSelection = any;
955
+ type OptionsMultiSelection = any[];
956
+ type OptionsSelection = OptionsSingleSelection | OptionsMultiSelection;
957
+ type OptionsArray = any[];
958
+ type OptionsObject = Record<string, any>;
959
+ type Options = OptionsArray | OptionsObject;
960
+ type OptionsControlType = 'radio' | 'inline-radio' | 'check' | 'inline-check' | 'select' | 'multi-select';
961
+ interface OptionsConfig {
962
+ labels?: Record<any, string>;
963
+ type: OptionsControlType;
964
+ }
965
+ interface NormalizedOptionsConfig {
966
+ options: OptionsObject;
967
+ }
968
+ type TextValue = string;
969
+ interface TextConfig {
970
+ maxLength?: number;
971
+ }
972
+ type ControlType = 'array' | 'boolean' | 'color' | 'date' | 'number' | 'range' | 'object' | OptionsControlType | 'text';
973
+ type Control = BooleanConfig | ColorConfig | DateConfig | NumberConfig | ObjectConfig | OptionsConfig | RangeConfig | TextConfig;
974
+ //#endregion
975
+ //#region .dts-emit/code/core/src/addon-docs/blocks/controls/Color.d.ts
976
+ type ColorControlProps = ControlProps<ColorValue> & ColorConfig;
977
+ //#endregion
978
+ //#region .dts-emit/code/core/src/addon-docs/blocks/controls/Boolean.d.ts
979
+ type BooleanProps = ControlProps<BooleanValue> & BooleanConfig;
980
+ /**
981
+ * # Boolean Control
982
+ *
983
+ * Renders a switch toggle with "True" or "False". or if the value is `undefined`, renders a button
984
+ * to set the boolean.
985
+ *
986
+ * ## Example usage
987
+ *
988
+ * ```
989
+ * <BooleanControl name="isTrue" value={value} onChange={handleValueChange} />;
990
+ * ```
991
+ */
992
+ declare const BooleanControl: FC<BooleanProps>;
993
+ //#endregion
994
+ //#region .dts-emit/code/core/src/addon-docs/blocks/controls/Date.d.ts
995
+ declare const parseDate: (value: string) => Date;
996
+ declare const parseTime: (value: string) => Date;
997
+ declare const formatDate: (value: Date | number) => string;
998
+ declare const formatTime: (value: Date | number) => string;
999
+ type DateProps = ControlProps<DateValue> & DateConfig;
1000
+ declare const DateControl: FC<DateProps>;
1001
+ //#endregion
1002
+ //#region .dts-emit/code/core/src/addon-docs/blocks/controls/Number.d.ts
1003
+ type NumberProps = ControlProps<NumberValue | null> & NumberConfig;
1004
+ declare const parse: (value: string) => number | undefined;
1005
+ declare const format: (value: NumberValue) => string;
1006
+ declare const NumberControl: FC<NumberProps>;
1007
+ //#endregion
1008
+ //#region .dts-emit/code/core/src/addon-docs/blocks/controls/options/Options.d.ts
1009
+ /**
1010
+ * Options can accept `options` in two formats:
1011
+ *
1012
+ * - Array: ['a', 'b', 'c'] OR
1013
+ * - Object: { a: 1, b: 2, c: 3 } (deprecated)
1014
+ *
1015
+ * We always normalize to the more generalized object format and ONLY handle the object format in
1016
+ * the underlying control implementations.
1017
+ *
1018
+ * While non-primitive values are deprecated, they might still not be valid object keys, so the
1019
+ * resulting object is a Label -> Value mapping.
1020
+ */
1021
+ declare const normalizeOptions: (options: Options, labels?: Record<any, string>) => any;
1022
+ type OptionsProps = ControlProps<OptionsSelection> & OptionsConfig;
1023
+ declare const OptionsControl: FC<OptionsProps>;
1024
+ //#endregion
1025
+ //#region .dts-emit/code/core/src/addon-docs/blocks/controls/Object.d.ts
1026
+ type ObjectProps = ControlProps<ObjectValue> & ObjectConfig;
1027
+ declare const ObjectControl: FC<ObjectProps>;
1028
+ //#endregion
1029
+ //#region .dts-emit/code/core/src/addon-docs/blocks/controls/Range.d.ts
1030
+ type RangeProps = ControlProps<NumberValue | null> & RangeConfig;
1031
+ declare const RangeControl: FC<RangeProps>;
1032
+ //#endregion
1033
+ //#region .dts-emit/code/core/src/addon-docs/blocks/controls/Text.d.ts
1034
+ type TextProps = ControlProps<TextValue | undefined> & TextConfig;
1035
+ declare const TextControl: FC<TextProps>;
1036
+ //#endregion
1037
+ //#region .dts-emit/code/core/src/addon-docs/blocks/controls/Files.d.ts
1038
+ interface FilesControlProps extends ControlProps<string[]> {
1039
+ /**
1040
+ * The accept attribute value is a string that defines the file types the file input should
1041
+ * accept. This string is a comma-separated list of unique file type specifiers.
1042
+ *
1043
+ * @example _/_
1044
+ *
1045
+ * @example .webm,video/webm
1046
+ *
1047
+ * @example .doc,.docx,application/msword
1048
+ *
1049
+ * @defaultValue `image/*`
1050
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept
1051
+ */
1052
+ accept?: string;
1053
+ }
1054
+ declare const FilesControl: FC<FilesControlProps>;
1055
+ //#endregion
1056
+ //#region .dts-emit/code/core/src/addon-docs/blocks/controls/index.d.ts
1057
+ type ColorProps = ColorControlProps;
1058
+ declare const LazyColorControl: React.LazyExoticComponent<React.FC<ColorControlProps>>;
1059
+ declare const ColorControl: (props: ComponentProps<typeof LazyColorControl>) => React.JSX.Element;
1060
+ //#endregion
1061
+ export { AddContext, Anchor, AnchorMdx, AnchorProps, ArgTypes, BooleanConfig, BooleanControl, BooleanProps, BooleanValue, Canvas, CodeOrSourceMdx, ColorConfig, ColorControl, ColorItem, ColorPalette, ColorProps, ColorValue, Component, Control, ControlProps, ControlType, Controls, DateConfig, DateControl, DateProps, DateValue, Description, DescriptionType, Docs, DocsContainer, DocsContainerProps, DocsContext, type DocsContextProps, DocsPage, DocsProps, DocsStory, DocsStoryProps, FilesControl, FilesControlProps, HeaderMdx, HeadersMdx, Heading, HeadingProps, IconGallery, IconItem, Markdown, Meta, NormalizedOptionsConfig, NumberConfig, NumberControl, NumberValue, ObjectConfig, ObjectControl, ObjectProps, ObjectValue, Of, Options, OptionsArray, OptionsConfig, OptionsControl, OptionsControlType, OptionsMultiSelection, OptionsObject, OptionsProps, OptionsSelection, OptionsSingleSelection, PRIMARY_STORY, PresetColor, Primary, ArgsTable as PureArgsTable, RangeConfig, RangeControl, type SortType, Source, SourceContainer, SourceContext, SourceContextProps, SourceItem, SourceParameters, SourceProps, Stories, Story, StoryProps, StorySources, Subheading, Subtitle, TableOfContents, TextConfig, TextControl, TextProps, TextValue, Title, Typeset, UNKNOWN_ARGS_HASH, Unstyled, Wrapper, anchorBlockIdFromId, argsHash, assertIsFn, extractTitle, format, formatDate, formatTime, getStoryId, getStoryProps, normalizeOptions, parse, parseDate, parseTime, slugs, useOf, useSourceProps };