@aussieljk/forkbook 0.0.1-11 → 0.0.1-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 (341) hide show
  1. package/README.md +1 -1
  2. package/assets/create/rendererAssets/common/button.css +6 -6
  3. package/assets/create/rendererAssets/common/header.css +5 -5
  4. package/assets/create/rendererAssets/common/page.css +10 -10
  5. package/dist/_browser-chunks/{Color-QLZNXLSV.js → Color-TA43572R.js} +2 -2
  6. package/dist/_browser-chunks/{DocsRenderer-JXND3PVQ.js → DocsRenderer-DKXSW2OY.js} +2 -2
  7. package/dist/_browser-chunks/{WithTooltip-GNLRTZDF.js → WithTooltip-66AWY4VQ.js} +5 -4
  8. package/dist/_browser-chunks/{chunk-RBCHTR7C.js → chunk-2ELGJRFZ.js} +1 -1
  9. package/dist/_browser-chunks/{chunk-DYNTDJ3O.js → chunk-2UKY4NXZ.js} +1 -1
  10. package/dist/_browser-chunks/{chunk-I4ATZPNZ.js → chunk-2WMECYEY.js} +3 -3
  11. package/dist/_browser-chunks/{chunk-6ELMKWKX.js → chunk-2WZWS7GJ.js} +1 -1
  12. package/dist/_browser-chunks/{chunk-N3NRW5XX.js → chunk-2YWS25WY.js} +1 -1
  13. package/dist/_browser-chunks/{chunk-NGMQJMCY.js → chunk-3O4QUF3D.js} +1 -1
  14. package/dist/_browser-chunks/{chunk-GNZY6LOW.js → chunk-5MRMYSUN.js} +4 -4
  15. package/dist/_browser-chunks/{chunk-RMYQ3QN3.js → chunk-5XGERZHU.js} +15 -12
  16. package/dist/_browser-chunks/{chunk-5WMXI5GW.js → chunk-AQVUHXWY.js} +6 -4
  17. package/dist/_browser-chunks/{chunk-ZHKZKFY4.js → chunk-ARZTIHZK.js} +6 -10
  18. package/dist/_browser-chunks/{chunk-DS2WQZGO.js → chunk-D2Z5KXPS.js} +12 -41
  19. package/dist/_browser-chunks/{chunk-EQKMUQF3.js → chunk-DT7BB545.js} +3 -2
  20. package/dist/_browser-chunks/{chunk-76222HQR.js → chunk-E6QKKKLO.js} +20 -5
  21. package/dist/_browser-chunks/{chunk-QU4RB2WU.js → chunk-F22A5EGD.js} +4 -4
  22. package/dist/_browser-chunks/{chunk-3M5T7BW4.js → chunk-GGALYEQS.js} +1 -1
  23. package/dist/_browser-chunks/{chunk-TTBPZQ24.js → chunk-HGIW4I4J.js} +11 -18
  24. package/dist/_browser-chunks/{chunk-46Z7NGAS.js → chunk-HX443LKV.js} +1 -1
  25. package/dist/_browser-chunks/{chunk-KYSD26D6.js → chunk-IGD46SQI.js} +90 -83
  26. package/dist/_browser-chunks/{chunk-WBLVFDJT.js → chunk-QSYOMLRG.js} +665 -622
  27. package/dist/_browser-chunks/{chunk-2JT76G3E.js → chunk-SBOQ4QPY.js} +15 -15
  28. package/dist/_browser-chunks/{chunk-O24AZJZ7.js → chunk-UDR26TXA.js} +2 -2
  29. package/dist/_browser-chunks/{chunk-5I7E4GMO.js → chunk-WY2LUGOH.js} +1 -1
  30. package/dist/_browser-chunks/{chunk-7DQREF4S.js → chunk-XV3AEPJW.js} +1 -1
  31. package/dist/_browser-chunks/{matchers-YLBYSYAF.js → matchers-2HVLNCVO.js} +4 -4
  32. package/dist/_browser-chunks/{react-dom-client-4OHE3QDV.js → react-dom-client-SLBUX3U3.js} +1 -1
  33. package/dist/_node-chunks/{attached-runtime-J2AKT5WI.js → attached-runtime-AU2RZM4Y.js} +28 -29
  34. package/dist/_node-chunks/{builder-manager-Z4RWF4ZH.js → builder-manager-UPXA2KKT.js} +39 -28
  35. package/dist/_node-chunks/{chunk-NIQSBBT2.js → chunk-22A63J7O.js} +7 -7
  36. package/dist/_node-chunks/{chunk-5P4N734V.js → chunk-22TWJGGQ.js} +28 -43
  37. package/dist/_node-chunks/{chunk-T6P2EJD2.js → chunk-2GJBHF56.js} +6 -6
  38. package/dist/_node-chunks/{chunk-GGCOG7OV.js → chunk-2MGPZNKV.js} +280 -306
  39. package/dist/_node-chunks/{chunk-36LPBTLF.js → chunk-2Q3YWQSK.js} +6 -6
  40. package/dist/_node-chunks/{chunk-OXT6T4AS.js → chunk-2W525A4I.js} +7 -7
  41. package/dist/_node-chunks/{chunk-55S3GGGC.js → chunk-2X3WAH7V.js} +7 -7
  42. package/dist/_node-chunks/{chunk-XH5CXH53.js → chunk-34DNGOCZ.js} +8 -8
  43. package/dist/_node-chunks/{chunk-A7GEBS3Q.js → chunk-3MJZ5GI2.js} +6 -6
  44. package/dist/_node-chunks/{chunk-46Y5H6X5.js → chunk-3X67K6EI.js} +136 -114
  45. package/dist/_node-chunks/{chunk-GMKLTDKN.js → chunk-5KMW5XXM.js} +6 -6
  46. package/dist/_node-chunks/{chunk-AVL7GUOZ.js → chunk-5MYXWAKD.js} +515 -1040
  47. package/dist/_node-chunks/{chunk-MI7WBXWX.js → chunk-5N7YRHXJ.js} +6 -6
  48. package/dist/_node-chunks/{chunk-LKITAODU.js → chunk-6772LYNF.js} +7 -7
  49. package/dist/_node-chunks/{chunk-IRPQQARO.js → chunk-76M6JG5T.js} +7 -7
  50. package/dist/_node-chunks/{chunk-YBG7HVP7.js → chunk-7F6TIY4T.js} +8 -8
  51. package/dist/_node-chunks/{chunk-IFAV3CER.js → chunk-7SBWGNA7.js} +10 -10
  52. package/dist/_node-chunks/{chunk-LHNHFYK3.js → chunk-ABCEMTIP.js} +6 -6
  53. package/dist/_node-chunks/{chunk-OPT5A55S.js → chunk-AHNN3TQH.js} +8 -8
  54. package/dist/_node-chunks/{chunk-76KKKLEE.js → chunk-BDATIKVV.js} +7 -7
  55. package/dist/_node-chunks/{chunk-SJXLINHV.js → chunk-BMM74ZQW.js} +6 -6
  56. package/dist/_node-chunks/{chunk-XSVOMORJ.js → chunk-BOWRRVJM.js} +6 -6
  57. package/dist/_node-chunks/{chunk-FB2BOL6I.js → chunk-BTDLJXAT.js} +6 -6
  58. package/dist/_node-chunks/{chunk-W7HY3ELZ.js → chunk-C2HVGXLD.js} +224 -181
  59. package/dist/_node-chunks/chunk-CWIJ2D5F.js +18 -0
  60. package/dist/_node-chunks/{chunk-BKND5XP2.js → chunk-DNX4BLMS.js} +7 -7
  61. package/dist/_node-chunks/{chunk-FTYDKQCO.js → chunk-DXR3YGRT.js} +6 -6
  62. package/dist/_node-chunks/{chunk-6E34W4UX.js → chunk-EFZAYIPN.js} +6 -6
  63. package/dist/_node-chunks/{chunk-54EHKXV7.js → chunk-FAR3NIPG.js} +8 -8
  64. package/dist/_node-chunks/{chunk-3EBGFRAH.js → chunk-FFUIQJRI.js} +32 -40
  65. package/dist/_node-chunks/{chunk-2WVLC5M2.js → chunk-FKI7K3GE.js} +6 -6
  66. package/dist/_node-chunks/{chunk-TAMTPVYZ.js → chunk-FR67COFW.js} +7 -7
  67. package/dist/_node-chunks/{chunk-IVAOJWPF.js → chunk-FUDG3QKB.js} +7 -7
  68. package/dist/_node-chunks/{chunk-XVOIYGTJ.js → chunk-G6GOV7H7.js} +6 -6
  69. package/dist/_node-chunks/{chunk-MW4OAPPD.js → chunk-H7UVQBCQ.js} +8 -8
  70. package/dist/_node-chunks/{chunk-PYVGF5F2.js → chunk-HMQUTLMS.js} +6 -6
  71. package/dist/_node-chunks/{chunk-NLNAIU4I.js → chunk-HPXM4SGT.js} +9 -9
  72. package/dist/_node-chunks/{chunk-APPFF22V.js → chunk-HW4T3OXA.js} +7 -7
  73. package/dist/_node-chunks/{chunk-FUG5LYKS.js → chunk-HW7RCOV4.js} +8 -8
  74. package/dist/_node-chunks/{chunk-PXOD36TR.js → chunk-IFHNMS7I.js} +19 -19
  75. package/dist/_node-chunks/{chunk-W3KFVTWV.js → chunk-IKUSSZJ3.js} +10 -10
  76. package/dist/_node-chunks/{chunk-C5OFHB3N.js → chunk-IOXDHKFF.js} +7 -7
  77. package/dist/_node-chunks/chunk-J3CNNXKQ.js +11 -0
  78. package/dist/_node-chunks/{chunk-2U5J7YTA.js → chunk-JB4457FJ.js} +6 -6
  79. package/dist/_node-chunks/{chunk-VZG3OKFO.js → chunk-JHX35YKT.js} +6 -6
  80. package/dist/_node-chunks/{chunk-LAIED5XU.js → chunk-JKPKEYSH.js} +6 -6
  81. package/dist/_node-chunks/{chunk-NLLM4MDK.js → chunk-JMFTALJW.js} +6 -6
  82. package/dist/_node-chunks/{chunk-AKMPPLT5.js → chunk-JXS4P2RM.js} +7 -7
  83. package/dist/_node-chunks/{chunk-6UASHVMR.js → chunk-K2K6KTBC.js} +8 -8
  84. package/dist/_node-chunks/{chunk-S3NDLFYL.js → chunk-KMC5WWQS.js} +7 -7
  85. package/dist/_node-chunks/{chunk-BBU2FUPC.js → chunk-KQTFSKC6.js} +8 -8
  86. package/dist/_node-chunks/{chunk-3IIQSDCO.js → chunk-KZPWZM2E.js} +37 -34
  87. package/dist/_node-chunks/{chunk-7YQTID2W.js → chunk-LTJ4AYDM.js} +6 -6
  88. package/dist/_node-chunks/{chunk-32FLWHUC.js → chunk-MNNESU33.js} +497 -475
  89. package/dist/_node-chunks/{chunk-WBCKO5LP.js → chunk-MNQVVJZN.js} +6 -6
  90. package/dist/_node-chunks/{chunk-MBIVTOJK.js → chunk-NO7MF6VR.js} +6 -6
  91. package/dist/_node-chunks/{chunk-BSQB5B57.js → chunk-NPSIAK46.js} +6 -6
  92. package/dist/_node-chunks/{chunk-DGWKJQ6G.js → chunk-NUSHY22I.js} +62 -7
  93. package/dist/_node-chunks/{chunk-OJWUUSA4.js → chunk-NXRZL2PR.js} +6 -6
  94. package/dist/_node-chunks/{chunk-FEC5PGJO.js → chunk-O2CCUB5T.js} +7 -7
  95. package/dist/_node-chunks/{chunk-6UAJLEIO.js → chunk-ORSH2FXG.js} +6 -6
  96. package/dist/_node-chunks/{chunk-GYFR2JLS.js → chunk-OSNOV4EH.js} +7 -7
  97. package/dist/_node-chunks/{chunk-GTXZNA2L.js → chunk-PHB6QBHM.js} +10 -10
  98. package/dist/_node-chunks/{chunk-WO4UEQI6.js → chunk-POA32M7F.js} +21 -21
  99. package/dist/_node-chunks/{chunk-GO3YSBPE.js → chunk-Q64ESHBN.js} +8 -8
  100. package/dist/_node-chunks/{chunk-RNRGXAFV.js → chunk-QBWGJYHY.js} +6 -6
  101. package/dist/_node-chunks/{chunk-ZEYODVQT.js → chunk-QSKVNZCF.js} +7 -7
  102. package/dist/_node-chunks/{chunk-D5ADPGA4.js → chunk-QX6RXAEU.js} +6 -6
  103. package/dist/_node-chunks/{chunk-PQTEFQIJ.js → chunk-R73PEGQU.js} +9 -9
  104. package/dist/_node-chunks/{chunk-Z2ZTDQDY.js → chunk-RHH7VDIY.js} +8 -8
  105. package/dist/_node-chunks/{chunk-R7VDUSKY.js → chunk-RMJNWFPV.js} +9 -9
  106. package/dist/_node-chunks/{chunk-5GOXN5M4.js → chunk-RT2LVWTC.js} +7 -7
  107. package/dist/_node-chunks/{chunk-XCJ2ZIQ4.js → chunk-SPCPGRYF.js} +7 -7
  108. package/dist/_node-chunks/{chunk-Y4W4B3E7.js → chunk-SUHBBHKR.js} +6 -6
  109. package/dist/_node-chunks/{chunk-VKRGTLQJ.js → chunk-TXZTC6LA.js} +22 -22
  110. package/dist/_node-chunks/{chunk-XO54HM4P.js → chunk-U5HVQTHI.js} +6 -6
  111. package/dist/_node-chunks/{chunk-XICRXTTE.js → chunk-UFZUSE3Y.js} +6 -6
  112. package/dist/_node-chunks/{chunk-ALGQMFMN.js → chunk-UGQFYYBC.js} +6 -6
  113. package/dist/_node-chunks/{chunk-ER3X3AQ7.js → chunk-UKLCYEZU.js} +7 -7
  114. package/dist/_node-chunks/{chunk-J3SM62J3.js → chunk-VJEN2JM3.js} +8 -8
  115. package/dist/_node-chunks/{chunk-7IOSIYW2.js → chunk-W5ZAUN5R.js} +7 -7
  116. package/dist/_node-chunks/{chunk-MXLHIEXC.js → chunk-WNEWL2PL.js} +6 -6
  117. package/dist/_node-chunks/{chunk-CEYSYQLV.js → chunk-WUVQ465T.js} +6 -6
  118. package/dist/_node-chunks/{chunk-REIDJUVJ.js → chunk-XCNYQV2M.js} +19 -15
  119. package/dist/_node-chunks/{chunk-TKMXEHM4.js → chunk-XOAWAXUH.js} +7 -7
  120. package/dist/_node-chunks/chunk-Y472MP5U.js +281 -0
  121. package/dist/_node-chunks/{chunk-NFDQT7UW.js → chunk-ZCKTYMZT.js} +320 -316
  122. package/dist/_node-chunks/{chunk-5JLVSH44.js → chunk-ZUK5ZLPP.js} +8 -8
  123. package/dist/_node-chunks/dist-2DPC664Y.js +27 -0
  124. package/dist/_node-chunks/dist-XBFUDMFQ.js +16 -0
  125. package/dist/_node-chunks/{local-runtime-YDAW5RJV.js → local-runtime-Z667YPXR.js} +19 -20
  126. package/dist/_node-chunks/{mdx-plugin-XLDET5LV.js → mdx-plugin-BPRPTZNP.js} +13 -13
  127. package/dist/_node-chunks/{monorepo-NWMAHGOM.js → monorepo-GO54BY34.js} +11 -11
  128. package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-4B6IZ7JD.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-PEHFNJQ5.js} +11 -11
  129. package/dist/_node-chunks/optimized-tests-W7U4ZRWX.js +22 -0
  130. package/dist/_node-chunks/{pattern-copy-play-PJC4PO6A.js → pattern-copy-play-64HQIVWK.js} +9 -9
  131. package/dist/_node-chunks/postinstallAddon-XM2BHKDN.js +20 -0
  132. package/dist/_node-chunks/{rehype-external-links-4CWXZ35U.js → rehype-external-links-2BSEZ7AC.js} +9 -9
  133. package/dist/_node-chunks/{rehype-slug-QZ2PWSJH.js → rehype-slug-6253EA36.js} +9 -9
  134. package/dist/_node-chunks/{relaxed-limits-ZQR4ER7L.js → relaxed-limits-4PAAPG3J.js} +11 -11
  135. package/dist/_node-chunks/{run-BMXB2BW2.js → run-3SQW3FRF.js} +18 -18
  136. package/dist/_node-chunks/{run-U63AXEKZ.js → run-XJT3YVMZ.js} +16 -16
  137. package/dist/_node-chunks/{setup-NCUTUBNN.js → setup-JIYCTADZ.js} +8 -8
  138. package/dist/_node-chunks/{vitest.config.4.template-4XHF7XPS.js → vitest.config.4.template-W74SGWHT.js} +7 -7
  139. package/dist/actions/decorator.js +12 -20
  140. package/dist/addon-a11y/index.js +2 -2
  141. package/dist/addon-a11y/manager.js +11 -11
  142. package/dist/addon-a11y/preset.js +7 -7
  143. package/dist/addon-a11y/preview.js +2 -2
  144. package/dist/addon-docs/blocks.d.ts +10 -6
  145. package/dist/addon-docs/blocks.js +29 -31
  146. package/dist/addon-docs/index.js +3 -3
  147. package/dist/addon-docs/manager.js +3 -3
  148. package/dist/addon-docs/preset.js +10 -10
  149. package/dist/addon-docs/preview.js +1 -1
  150. package/dist/addon-links/preview.d.ts +1 -1
  151. package/dist/addon-mcp/preset.js +9 -9
  152. package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +15 -15
  153. package/dist/addon-ondevice-controls/index.js +1 -1
  154. package/dist/addon-ondevice-controls/register.js +1 -1
  155. package/dist/addon-pseudo-states/index.js +1 -1
  156. package/dist/addon-pseudo-states/preview.js +1 -1
  157. package/dist/addon-themes/postinstall.js +7 -7
  158. package/dist/addon-vitest/constants.js +8 -8
  159. package/dist/addon-vitest/manager.js +18 -9
  160. package/dist/addon-vitest/node/coverage-reporter.js +11 -11
  161. package/dist/addon-vitest/node/vitest.js +28 -28
  162. package/dist/addon-vitest/postinstall.js +10 -10
  163. package/dist/addon-vitest/preset.js +15 -15
  164. package/dist/addon-vitest/vitest-plugin/global-setup.js +21 -21
  165. package/dist/addon-vitest/vitest-plugin/index.js +68 -58
  166. package/dist/babel/index.js +11 -11
  167. package/dist/bin/core.js +106 -88
  168. package/dist/bin/dispatcher.js +10 -10
  169. package/dist/bin/loader.js +8 -8
  170. package/dist/builder-vite/index.js +18 -18
  171. package/dist/builder-vite/preset.js +13 -13
  172. package/dist/channels/index.d.ts +1 -1
  173. package/dist/channels/index.js +1 -1
  174. package/dist/{chunk-Dr3R0DXk.d.ts → chunk-B-NVyPqN.d.ts} +2 -2
  175. package/dist/{chunk-Fg1Fm__9.d.ts → chunk-BmCH-L7_.d.ts} +393 -383
  176. package/dist/{chunk-CNqjcOmK.d.ts → chunk-Bn1RoGAP.d.ts} +1 -1
  177. package/dist/{chunk-BXLImeLy.d.ts → chunk-CfEntHiI.d.ts} +18 -3
  178. package/dist/{chunk-D0NUmzXp.d.ts → chunk-IMedIHPn.d.ts} +3 -3
  179. package/dist/{chunk-CYuvV2sR.d.ts → chunk-evfhuBNU.d.ts} +1 -1
  180. package/dist/cli/index.d.ts +2 -2
  181. package/dist/cli/index.js +25 -30
  182. package/dist/cli/tools/sdk/child-host.d.ts +1 -1
  183. package/dist/cli/tools/sdk/child-host.js +17 -17
  184. package/dist/cli/tools/sdk/index.d.ts +2 -2
  185. package/dist/cli/tools/sdk/index.js +18 -18
  186. package/dist/cli-commands/bin/index.js +7 -7
  187. package/dist/client-logger/index.js +2 -1
  188. package/dist/common/index.d.ts +5 -5
  189. package/dist/common/index.js +34 -35
  190. package/dist/components/index.d.ts +6 -6
  191. package/dist/components/index.js +154 -164
  192. package/dist/core-server/index.d.ts +5 -5
  193. package/dist/core-server/index.js +685 -152
  194. package/dist/core-server/presets/common-manager.js +229 -318
  195. package/dist/core-server/presets/common-override-preset.js +10 -10
  196. package/dist/core-server/presets/common-preset.js +73 -268
  197. package/dist/create/bin/index.js +7 -7
  198. package/dist/create/index.js +15 -15
  199. package/dist/csf/csf-utils.d.ts +1 -1
  200. package/dist/csf/index.d.ts +1 -1
  201. package/dist/csf/index.js +10 -10
  202. package/dist/csf-tools/index.d.ts +41 -37
  203. package/dist/csf-tools/index.js +13 -13
  204. package/dist/instrumenter/index.d.ts +1 -1
  205. package/dist/instrumenter/index.js +1 -1
  206. package/dist/manager/_manager-chunks/{globals-runtime-CHjExYMv.js → globals-runtime--RDllwDw.js} +629 -436
  207. package/dist/manager/_manager-chunks/{globals-runtime-DvV_TF3-.js → globals-runtime-B4NRbNSS.js} +2 -2
  208. package/dist/manager/_manager-chunks/{globals-runtime-wjkxyMn0.js → globals-runtime-BC43T1rL.js} +4150 -50
  209. package/dist/manager/_manager-chunks/{globals-runtime-C5gK7HhH.js → globals-runtime-BFVFUcji.js} +2 -2
  210. package/dist/manager/_manager-chunks/{globals-runtime-BSj0mCjE.js → globals-runtime-BWciJpaD.js} +94 -92
  211. package/dist/manager/_manager-chunks/{globals-runtime-CA8AuIRT.js → globals-runtime-BnQ7i5wq.js} +232 -228
  212. package/dist/manager/_manager-chunks/globals-runtime-BtduS2C2.js +10601 -0
  213. package/dist/manager/_manager-chunks/globals-runtime-BzuYs3dZ.js +1971 -0
  214. package/dist/manager/_manager-chunks/{globals-runtime-BY3epqww.js → globals-runtime-CS41oTca.js} +2 -1
  215. package/dist/manager/_manager-chunks/{globals-runtime-Bu9eGDTe.js → globals-runtime-CdLHkSK1.js} +260 -401
  216. package/dist/manager/_manager-chunks/globals-runtime-CoTrrHG3.js +1163 -0
  217. package/dist/manager/_manager-chunks/{globals-runtime-BweHuXkK.js → globals-runtime-DCmvKMN5.js} +2 -2
  218. package/dist/manager/_manager-chunks/globals-runtime-DgO0hT2p.js +32 -0
  219. package/dist/manager/_manager-chunks/{globals-runtime-C92M_Vnq.js → globals-runtime-DhygDQ09.js} +5 -5
  220. package/dist/manager/_manager-chunks/{globals-runtime-CCTA-XPa.js → globals-runtime-DweLlyBa.js} +5 -4
  221. package/dist/manager/_manager-chunks/globals-runtime-Me9Bl-sx.js +156 -0
  222. package/dist/manager/_manager-chunks/globals-runtime-nQMRiA0J.js +19 -0
  223. package/dist/manager/_manager-chunks/{globals-runtime-Bj5KDUJi.js → globals-runtime-oRjPg2jY.js} +1 -1
  224. package/dist/manager/_manager-chunks/{runtime-CJQZFUUj.js → runtime-1BcYUf7-.js} +26 -44
  225. package/dist/manager/_manager-chunks/{runtime-Dem2xJbS.js → runtime-B2VQIT0n.js} +739 -554
  226. package/dist/manager/_manager-chunks/runtime-BBaBlpAS.js +552 -0
  227. package/dist/manager/_manager-chunks/{runtime-DvB1axgp.js → runtime-BFgSyEE6.js} +13 -13
  228. package/dist/manager/_manager-chunks/{runtime-B6NL14pz.js → runtime-CE_oqcpl.js} +6 -6
  229. package/dist/manager/_manager-chunks/{runtime-BAsOe1C_.js → runtime-CRqm7NXD.js} +49 -49
  230. package/dist/manager/_manager-chunks/{runtime-EPerAEAs.js → runtime-CZtDJIYj.js} +3 -3
  231. package/dist/manager/_manager-chunks/{runtime-CgRqs_SK.js → runtime-D3Gk2bTl.js} +852 -841
  232. package/dist/manager/_manager-chunks/{runtime-Dtbhxq5m.js → runtime-Db8fJ2MP.js} +67 -500
  233. package/dist/manager/_manager-chunks/{runtime--hR2NZFd.js → runtime-Dj8tizGo.js} +103 -103
  234. package/dist/manager/globals-runtime.js +1 -1
  235. package/dist/manager/runtime.js +1 -1
  236. package/dist/manager-api/index.d.ts +1 -1
  237. package/dist/manager-api/index.js +444 -428
  238. package/dist/manager-errors.d.ts +1 -1
  239. package/dist/mcp/index.js +9 -9
  240. package/dist/mocking-utils/index.js +15 -19
  241. package/dist/nextjs-vite/export-mocks/router/index.js +1 -1
  242. package/dist/nextjs-vite/index.d.ts +1 -1
  243. package/dist/nextjs-vite/index.js +4 -4
  244. package/dist/nextjs-vite/node/index.js +7 -7
  245. package/dist/nextjs-vite/preset.js +12 -12
  246. package/dist/nextjs-vite/preview.js +1 -1
  247. package/dist/nextjs-vite/vite-plugin/index.d.ts +2 -2
  248. package/dist/nextjs-vite/vite-plugin/index.js +9 -9
  249. package/dist/nextjs-vite-plugin/index.js +15 -15
  250. package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
  251. package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +1 -1
  252. package/dist/node-logger/index.d.ts +16 -16
  253. package/dist/node-logger/index.js +9 -9
  254. package/dist/oxc-parser/index.js +14 -11
  255. package/dist/oxc-parser/worker.js +10 -10
  256. package/dist/preview/_chunks/{runtime-BJwGQok8.js → runtime-4BNaFIif.js} +180 -21
  257. package/dist/preview/_chunks/{runtime-BUnOhg9h.js → runtime-BSJ0Ov_b.js} +2 -2
  258. package/dist/preview/_chunks/{runtime-BhSZ1Mwt.js → runtime-Bjm1gBLN.js} +6 -19
  259. package/dist/preview/_chunks/{runtime-Bcv1hJky.js → runtime-CBKlMZg2.js} +4148 -48
  260. package/dist/preview/_chunks/{runtime-BPwAnlRx.js → runtime-CElbz0uN.js} +1 -1
  261. package/dist/preview/_chunks/{runtime-BZ4pNS3g.js → runtime-C_nyb8QT.js} +3 -3
  262. package/dist/preview/_chunks/{runtime-BgPhfM5P.js → runtime-CzTPeFXg.js} +676 -376
  263. package/dist/preview/_chunks/{runtime-WapFVPAh.js → runtime-DZ7fvh0y.js} +1 -1
  264. package/dist/preview/runtime.js +1 -1
  265. package/dist/preview-api/index.d.ts +2 -2
  266. package/dist/preview-api/index.js +5 -5
  267. package/dist/preview-errors.d.ts +1 -1
  268. package/dist/react/docgen/docgen-worker.js +11 -11
  269. package/dist/react/entry-preview-argtypes.js +1 -1
  270. package/dist/react/entry-preview-docs.js +1 -1
  271. package/dist/react/entry-preview.js +1 -1
  272. package/dist/react/index.d.ts +1 -1
  273. package/dist/react/index.js +5 -5
  274. package/dist/react/preset.js +13 -13
  275. package/dist/react/preview.js +4 -4
  276. package/dist/react-native/bin/get-stories.js +8 -8
  277. package/dist/react-native/index.d.ts +37 -36
  278. package/dist/react-native/index.js +30 -34
  279. package/dist/react-native/metro/node.d.ts +1 -1
  280. package/dist/react-native/metro/node.js +10 -10
  281. package/dist/react-native/metro/withForkbook.d.ts +7 -7
  282. package/dist/react-native/metro/withForkbook.js +14 -14
  283. package/dist/react-native/preview.js +4 -1
  284. package/dist/react-native/scripts/generate.js +8 -8
  285. package/dist/react-native/stub.js +1 -1
  286. package/dist/react-native-ui/index.d.ts +4 -3
  287. package/dist/react-native-ui/index.js +1 -8
  288. package/dist/react-native-ui-common/index.d.ts +7 -6
  289. package/dist/react-native-ui-common/index.js +6 -6
  290. package/dist/react-vite/node/index.js +7 -7
  291. package/dist/react-vite/preset.js +7 -7
  292. package/dist/server-errors.d.ts +1 -1
  293. package/dist/server-errors.js +9 -9
  294. package/dist/shared/open-service/index.d.ts +1 -1
  295. package/dist/shared/open-service/index.js +1 -1
  296. package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
  297. package/dist/shared/open-service/toolsets/docs/public.d.ts +2 -2
  298. package/dist/telemetry/index.d.ts +38 -274
  299. package/dist/telemetry/index.js +11 -66
  300. package/dist/test/index.js +125 -112
  301. package/dist/types/index.d.ts +1 -1
  302. package/dist/types/index.js +2 -2
  303. package/package.json +15 -15
  304. package/template/nextjs-vite/cli/js/Button.jsx +2 -2
  305. package/template/nextjs-vite/cli/js/Header.jsx +1 -1
  306. package/template/nextjs-vite/cli/js/Page.jsx +1 -1
  307. package/template/nextjs-vite/cli/ts/Button.tsx +2 -2
  308. package/template/nextjs-vite/cli/ts/Header.tsx +1 -1
  309. package/template/nextjs-vite/cli/ts/Page.tsx +1 -1
  310. package/template/react/cli/js/Button.jsx +2 -2
  311. package/template/react/cli/js/Header.jsx +1 -1
  312. package/template/react/cli/js/Page.jsx +1 -1
  313. package/template/react/cli/ts/Button.tsx +2 -2
  314. package/template/react/cli/ts/Header.tsx +1 -1
  315. package/template/react/cli/ts/Page.tsx +1 -1
  316. package/template/react-vite/cli/js/Button.jsx +2 -2
  317. package/template/react-vite/cli/js/Header.jsx +1 -1
  318. package/template/react-vite/cli/js/Page.jsx +1 -1
  319. package/template/react-vite/cli/ts/Button.tsx +2 -2
  320. package/template/react-vite/cli/ts/Header.tsx +1 -1
  321. package/template/react-vite/cli/ts/Page.tsx +1 -1
  322. package/dist/_node-chunks/chunk-2YNXKY72.js +0 -40
  323. package/dist/_node-chunks/chunk-3NST2GUZ.js +0 -33
  324. package/dist/_node-chunks/chunk-4D325SMT.js +0 -1359
  325. package/dist/_node-chunks/chunk-APXRPW7A.js +0 -11
  326. package/dist/_node-chunks/chunk-QHBQRPDP.js +0 -155
  327. package/dist/_node-chunks/chunk-SMBAR4G6.js +0 -18
  328. package/dist/_node-chunks/chunk-SRDKK3SG.js +0 -33
  329. package/dist/_node-chunks/chunk-V5IMPC3J.js +0 -33
  330. package/dist/_node-chunks/chunk-YIAUHGY2.js +0 -69
  331. package/dist/_node-chunks/dist-C5QIQD3G.js +0 -27
  332. package/dist/_node-chunks/dist-NBRPZCHX.js +0 -16
  333. package/dist/_node-chunks/optimized-tests-EIPJR7HA.js +0 -22
  334. package/dist/_node-chunks/postinstallAddon-EOAAURMG.js +0 -20
  335. package/dist/_node-chunks/session-id-HEW5JUNB.js +0 -23
  336. package/dist/manager/_manager-chunks/globals-runtime-Bs75QQ_I.js +0 -9987
  337. package/dist/manager/_manager-chunks/globals-runtime-WZKaeKm9.js +0 -4091
  338. package/dist/manager/_manager-chunks/runtime-5o_11Jae.js +0 -78
  339. package/dist/preview/_chunks/runtime-BsMjBzuq.js +0 -53
  340. package/dist/preview/_chunks/runtime-C1jgT6tJ.js +0 -4091
  341. package/dist/preview/_chunks/runtime-CkOhMcXf.js +0 -387
package/README.md CHANGED
@@ -47,7 +47,7 @@ Replace the packages with `@aussieljk/forkbook` and change the imports. See [for
47
47
 
48
48
  ## Notes
49
49
 
50
- - Telemetry: Forkbook sends nothing. To send traces and logs to your own OpenTelemetry server, set `OTEL_EXPORTER_OTLP_ENDPOINT` ([telemetry](https://forkbook.ljk.dev/docs/configure/telemetry)).
50
+ - Telemetry: Forkbook sends nothing to Storybook. By default it sends error reports to the Forkbook Sentry project. To stop them, set `FORKBOOK_SENTRY_DSN=""` or `FORKBOOK_DISABLE_TELEMETRY=true`. To send traces and logs to your own OpenTelemetry server, set `OTEL_EXPORTER_OTLP_ENDPOINT` ([telemetry](https://forkbook.ljk.dev/docs/configure/telemetry)).
51
51
 
52
52
  ## Links
53
53
 
@@ -1,4 +1,4 @@
1
- .storybook-button {
1
+ .forkbook-button {
2
2
  display: inline-block;
3
3
  cursor: pointer;
4
4
  border: 0;
@@ -7,24 +7,24 @@
7
7
  line-height: 1;
8
8
  font-family: 'Inter Variable', 'Helvetica Neue', Helvetica, Arial, sans-serif;
9
9
  }
10
- .storybook-button--primary {
10
+ .forkbook-button--primary {
11
11
  background-color: #555ab9;
12
12
  color: white;
13
13
  }
14
- .storybook-button--secondary {
14
+ .forkbook-button--secondary {
15
15
  box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px inset;
16
16
  background-color: transparent;
17
17
  color: #333;
18
18
  }
19
- .storybook-button--small {
19
+ .forkbook-button--small {
20
20
  padding: 10px 16px;
21
21
  font-size: 12px;
22
22
  }
23
- .storybook-button--medium {
23
+ .forkbook-button--medium {
24
24
  padding: 11px 20px;
25
25
  font-size: 14px;
26
26
  }
27
- .storybook-button--large {
27
+ .forkbook-button--large {
28
28
  padding: 12px 24px;
29
29
  font-size: 16px;
30
30
  }
@@ -1,4 +1,4 @@
1
- .storybook-header {
1
+ .forkbook-header {
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  align-items: center;
@@ -7,12 +7,12 @@
7
7
  font-family: 'Inter Variable', 'Helvetica Neue', Helvetica, Arial, sans-serif;
8
8
  }
9
9
 
10
- .storybook-header svg {
10
+ .forkbook-header svg {
11
11
  display: inline-block;
12
12
  vertical-align: top;
13
13
  }
14
14
 
15
- .storybook-header h1 {
15
+ .forkbook-header h1 {
16
16
  display: inline-block;
17
17
  vertical-align: top;
18
18
  margin: 6px 0 6px 10px;
@@ -21,11 +21,11 @@
21
21
  line-height: 1;
22
22
  }
23
23
 
24
- .storybook-header button + button {
24
+ .forkbook-header button + button {
25
25
  margin-left: 10px;
26
26
  }
27
27
 
28
- .storybook-header .welcome {
28
+ .forkbook-header .welcome {
29
29
  margin-right: 10px;
30
30
  color: #333;
31
31
  font-size: 14px;
@@ -1,4 +1,4 @@
1
- .storybook-page {
1
+ .forkbook-page {
2
2
  margin: 0 auto;
3
3
  padding: 48px 20px;
4
4
  max-width: 600px;
@@ -8,7 +8,7 @@
8
8
  font-family: 'Inter Variable', 'Helvetica Neue', Helvetica, Arial, sans-serif;
9
9
  }
10
10
 
11
- .storybook-page h2 {
11
+ .forkbook-page h2 {
12
12
  display: inline-block;
13
13
  vertical-align: top;
14
14
  margin: 0 0 4px;
@@ -17,24 +17,24 @@
17
17
  line-height: 1;
18
18
  }
19
19
 
20
- .storybook-page p {
20
+ .forkbook-page p {
21
21
  margin: 1em 0;
22
22
  }
23
23
 
24
- .storybook-page a {
24
+ .forkbook-page a {
25
25
  color: inherit;
26
26
  }
27
27
 
28
- .storybook-page ul {
28
+ .forkbook-page ul {
29
29
  margin: 1em 0;
30
30
  padding-left: 30px;
31
31
  }
32
32
 
33
- .storybook-page li {
33
+ .forkbook-page li {
34
34
  margin-bottom: 8px;
35
35
  }
36
36
 
37
- .storybook-page .tip {
37
+ .forkbook-page .tip {
38
38
  display: inline-block;
39
39
  vertical-align: top;
40
40
  margin-right: 10px;
@@ -47,14 +47,14 @@
47
47
  line-height: 12px;
48
48
  }
49
49
 
50
- .storybook-page .tip-wrapper {
50
+ .forkbook-page .tip-wrapper {
51
51
  margin-top: 40px;
52
52
  margin-bottom: 40px;
53
53
  font-size: 13px;
54
54
  line-height: 20px;
55
55
  }
56
56
 
57
- .storybook-page .tip-wrapper svg {
57
+ .forkbook-page .tip-wrapper svg {
58
58
  display: inline-block;
59
59
  vertical-align: top;
60
60
  margin-top: 3px;
@@ -63,6 +63,6 @@
63
63
  height: 12px;
64
64
  }
65
65
 
66
- .storybook-page .tip-wrapper svg path {
66
+ .forkbook-page .tip-wrapper svg path {
67
67
  fill: #007aff;
68
68
  }
@@ -796,13 +796,13 @@ var xe = { defaultColor: "rgba(0, 0, 0, 1)", toHsva: j, fromHsva: function(e2) {
796
796
  return e.createElement(re, l({}, r2, { colorModel: xe }));
797
797
  };
798
798
 
799
- // storybook-css:/home/runner/work/forkbook/forkbook/code/core/src/addon-docs/blocks/controls/Color.module.css
799
+ // forkbook-css:/home/runner/work/forkbook/forkbook/code/core/src/addon-docs/blocks/controls/Color.module.css
800
800
  var id = "core/src/addon-docs/blocks/controls/Color.module.css";
801
801
  if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id}"]`)) {
802
802
  let style = document.createElement("style");
803
803
  style.setAttribute("data-fb-css", id), style.textContent = '.fb-jgXPQa-wrapper{max-width:250px;position:relative}.fb-jgXPQa-tooltipContent{width:200px;margin:5px;& .react-colorful__saturation{border-radius:4px 4px 0 0}& .react-colorful__hue{box-shadow:inset 0 0 0 1px #0000000d}& .react-colorful__last-control{border-radius:0 0 4px 4px}}.fb-jgXPQa-swatches{grid-template-columns:repeat(9,16px);gap:6px;width:200px;margin-top:5px;padding:3px;display:grid}.fb-jgXPQa-swatch{--checkers:url("data:image/svg+xml;charset=utf-8,<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"16\\" height=\\"16\\" fill-opacity=\\"0.05\\" fill=\\"black\\"><path d=\\"M8 0h8v8H8zM0 8h8v8H0z\\"/></svg>");width:16px;height:16px;box-shadow:var(--fb-app-border-color) 0 0 0 1px inset;border-radius:var(--fb-app-border-radius);border:none;&,&:hover{background:unset;background-color:unset;background-image:linear-gradient(var(--fb-swatch-color), var(--fb-swatch-color)), var(--checkers)}&[data-selected]{box-shadow:var(--fb-app-border-color) 0 0 0 1px inset, rgb(from var(--fb-text-muted-color) r g b / .31) 0 0 0 4px}}:where([data-fb-theme=dark]) .fb-jgXPQa-swatch{--checkers:url("data:image/svg+xml;charset=utf-8,<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"16\\" height=\\"16\\" fill-opacity=\\"0.05\\" fill=\\"white\\"><path d=\\"M8 0h8v8H8zM0 8h8v8H0z\\"/></svg>")}.fb-jgXPQa-input{box-sizing:border-box;width:100%;font-family:var(--fb-font-base);padding-left:30px;padding-right:30px;[aria-readonly=true]>&{background:var(--fb-color-lighter)}}:where([data-fb-theme=dark]) [aria-readonly=true]>.fb-jgXPQa-input{background:0 0}.fb-jgXPQa-popoverTrigger{z-index:1;cursor:pointer;position:absolute;top:4px;left:4px;&:disabled,&[aria-disabled=true]{cursor:not-allowed}}.fb-jgXPQa-cycleColorSpaceButton{z-index:1;box-sizing:border-box;cursor:pointer;width:20px;height:20px;color:var(--fb-input-color);padding:4px;position:absolute;top:6px;right:7px}', document.head.appendChild(style);
804
804
  }
805
- var Color_default = { cycleColorSpaceButton: "fb-jgXPQa-cycleColorSpaceButton", swatches: "fb-jgXPQa-swatches", tooltipContent: "fb-jgXPQa-tooltipContent", wrapper: "fb-jgXPQa-wrapper", swatch: "fb-jgXPQa-swatch", input: "fb-jgXPQa-input", popoverTrigger: "fb-jgXPQa-popoverTrigger" };
805
+ var Color_default = { input: "fb-jgXPQa-input", cycleColorSpaceButton: "fb-jgXPQa-cycleColorSpaceButton", swatches: "fb-jgXPQa-swatches", popoverTrigger: "fb-jgXPQa-popoverTrigger", wrapper: "fb-jgXPQa-wrapper", tooltipContent: "fb-jgXPQa-tooltipContent", swatch: "fb-jgXPQa-swatch" };
806
806
 
807
807
  // src/addon-docs/blocks/controls/Color.tsx
808
808
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  DocsRenderer,
3
3
  defaultComponents
4
- } from "./chunk-5I7E4GMO.js";
5
- import "./chunk-46Z7NGAS.js";
4
+ } from "./chunk-WY2LUGOH.js";
5
+ import "./chunk-HX443LKV.js";
6
6
  import "./chunk-IMSF75WX.js";
7
7
  export {
8
8
  DocsRenderer,
@@ -15,13 +15,13 @@ import "./chunk-IMSF75WX.js";
15
15
  import React, { useCallback, useContext, useEffect, useId, useState } from "react";
16
16
  import { deprecate } from "@aussieljk/forkbook/internal/client-logger";
17
17
 
18
- // storybook-css:/home/runner/work/forkbook/forkbook/code/core/src/components/components/tooltip/WithTooltip.module.css
18
+ // forkbook-css:/home/runner/work/forkbook/forkbook/code/core/src/components/components/tooltip/WithTooltip.module.css
19
19
  var id = "core/src/components/components/tooltip/WithTooltip.module.css";
20
20
  if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id}"]`)) {
21
21
  let style = document.createElement("style");
22
22
  style.setAttribute("data-fb-css", id), style.textContent = ".fb-QoytUq-wrapper{--tooltip-bg:#fffffff2;z-index:2147483647;color-scheme:light dark;display:inline-block;&[data-chrome]{background:var(--tooltip-bg);filter:drop-shadow(0 5px 5px #0000000d)drop-shadow(0 1px 3px #0000001a);border-radius:calc(var(--fb-app-border-radius) + 2px);font-family:var(--fb-font-base);font-size:var(--fb-size-s1)}}:where([data-fb-theme=dark]) .fb-QoytUq-wrapper:not([data-color]){--tooltip-bg:var(--fb-background-app)}.fb-QoytUq-arrow{border:8px solid #0000;position:absolute;inset:auto;&[data-side=top]{border-bottom-width:0;border-top-color:var(--tooltip-bg);bottom:-8px;transform:translate(8px)}&[data-side=bottom]{border-top-width:0;border-bottom-color:var(--tooltip-bg);top:-8px;transform:translate(8px)}&[data-side=left]{border-right-width:0;border-left-color:var(--tooltip-bg);right:-8px;transform:translateY(8px)}&[data-side=right]{border-left-width:0;border-right-color:var(--tooltip-bg);left:-8px;transform:translateY(8px)}}.fb-QoytUq-target{cursor:pointer;display:inline-block;&[data-hover]{cursor:default}}.fb-QoytUq-targetSvg{cursor:pointer;&[data-hover]{cursor:default}}", document.head.appendChild(style);
23
23
  }
24
- var WithTooltip_default = { wrapper: "fb-QoytUq-wrapper", targetSvg: "fb-QoytUq-targetSvg", target: "fb-QoytUq-target", arrow: "fb-QoytUq-arrow" };
24
+ var WithTooltip_default = { target: "fb-QoytUq-target", wrapper: "fb-QoytUq-wrapper", arrow: "fb-QoytUq-arrow", targetSvg: "fb-QoytUq-targetSvg" };
25
25
 
26
26
  // src/components/components/tooltip/WithTooltip.tsx
27
27
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -167,9 +167,10 @@ var toSideAndAlign = (placement) => {
167
167
  return iframes.forEach((iframe) => {
168
168
  let bind = () => {
169
169
  try {
170
- iframe.contentWindow.document && (iframe.contentWindow.document.addEventListener("click", hide), unbinders.push(() => {
170
+ let iframeDocument = iframe.contentWindow?.document;
171
+ iframeDocument && (iframeDocument.addEventListener("click", hide), unbinders.push(() => {
171
172
  try {
172
- iframe.contentWindow.document.removeEventListener("click", hide);
173
+ iframeDocument.removeEventListener("click", hide);
173
174
  } catch {
174
175
  }
175
176
  }));
@@ -13,7 +13,7 @@ var excludeTags = Object.entries(globalThis.TAGS_OPTIONS ?? {}).reduce(
13
13
  ), parameters = {
14
14
  docs: {
15
15
  renderer: async () => {
16
- let { DocsRenderer } = await import("./DocsRenderer-JXND3PVQ.js");
16
+ let { DocsRenderer } = await import("./DocsRenderer-DKXSW2OY.js");
17
17
  return new DocsRenderer();
18
18
  },
19
19
  stories: {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-LYYXDWR2.js";
4
4
  import {
5
5
  StatusTypeIdMismatchError
6
- } from "./chunk-76222HQR.js";
6
+ } from "./chunk-E6QKKKLO.js";
7
7
  import {
8
8
  StatusTypeIdMismatchError as StatusTypeIdMismatchError2
9
9
  } from "./chunk-BNP234B4.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  entry_preview_docs_exports
3
- } from "./chunk-5WMXI5GW.js";
3
+ } from "./chunk-AQVUHXWY.js";
4
4
  import {
5
5
  entry_preview_argtypes_exports
6
- } from "./chunk-GNZY6LOW.js";
6
+ } from "./chunk-5MRMYSUN.js";
7
7
  import {
8
8
  entry_preview_exports
9
- } from "./chunk-EQKMUQF3.js";
9
+ } from "./chunk-DT7BB545.js";
10
10
 
11
11
  // src/react/preview.tsx
12
12
  import { definePreview as definePreviewBase } from "@aussieljk/forkbook/internal/csf";
@@ -5,7 +5,7 @@ import {
5
5
  // src/addon-docs/blocks/components/EmptyBlock.tsx
6
6
  import { withReset } from "@aussieljk/forkbook/internal/components";
7
7
 
8
- // storybook-css:/home/runner/work/forkbook/forkbook/code/core/src/addon-docs/blocks/components/EmptyBlock.module.css
8
+ // forkbook-css:/home/runner/work/forkbook/forkbook/code/core/src/addon-docs/blocks/components/EmptyBlock.module.css
9
9
  var id = "core/src/addon-docs/blocks/components/EmptyBlock.module.css";
10
10
  if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id}"]`)) {
11
11
  let style = document.createElement("style");
@@ -1,5 +1,5 @@
1
1
  // src/channels/main.ts
2
- var isMulti = (args) => args.transports !== void 0, generateRandomId = () => Math.random().toString(16).slice(2), Channel = class {
2
+ var isMulti = (args) => "transports" in args && args.transports !== void 0, generateRandomId = () => Math.random().toString(16).slice(2), Channel = class {
3
3
  constructor(input = {}) {
4
4
  this.sender = generateRandomId();
5
5
  this.events = {};
@@ -2,7 +2,7 @@ import {
2
2
  createBrowserStaticLoader,
3
3
  getService,
4
4
  registerService
5
- } from "./chunk-KYSD26D6.js";
5
+ } from "./chunk-IGD46SQI.js";
6
6
  import {
7
7
  seedQueryState
8
8
  } from "./chunk-QC4HFS6K.js";
@@ -9821,7 +9821,7 @@ base.MethodDefinition = base.Property = function(node, st, c) {
9821
9821
 
9822
9822
  // src/react/docs/lib/inspection/acornParser.ts
9823
9823
  var ACORN_WALK_VISITORS = {
9824
- // @ts-expect-error (Converted from ts-ignore)
9824
+ // @ts-expect-error `base` exists at runtime, but the acorn-walk types do not export it.
9825
9825
  ...base,
9826
9826
  JSXElement: () => {
9827
9827
  }
@@ -9835,7 +9835,7 @@ function filterAncestors(ancestors) {
9835
9835
  function calculateNodeDepth(node) {
9836
9836
  let depths = [];
9837
9837
  return ancestor(
9838
- // @ts-expect-error (Converted from ts-ignore)
9838
+ // @ts-expect-error acorn-walk wants acorn nodes, and these are ESTree nodes.
9839
9839
  node,
9840
9840
  {
9841
9841
  ObjectExpression(_, ancestors) {
@@ -9866,7 +9866,7 @@ function parseLiteral(literalNode) {
9866
9866
  function parseFunction(funcNode) {
9867
9867
  let innerJsxElementNode;
9868
9868
  simple(
9869
- // @ts-expect-error (Converted from ts-ignore)
9869
+ // @ts-expect-error acorn-walk wants acorn nodes, and these are ESTree nodes.
9870
9870
  funcNode.body,
9871
9871
  {
9872
9872
  JSXElement(node) {
@@ -9888,7 +9888,7 @@ function parseFunction(funcNode) {
9888
9888
  function parseClass(classNode) {
9889
9889
  let innerJsxElementNode;
9890
9890
  return simple(
9891
- // @ts-expect-error (Converted from ts-ignore)
9891
+ // @ts-expect-error acorn-walk wants acorn nodes, and these are ESTree nodes.
9892
9892
  classNode.body,
9893
9893
  {
9894
9894
  JSXElement(node) {
@@ -171,13 +171,13 @@ var pseudoStates = Object.values(PSEUDO_STATES), selectorStartPattern = /[|>+~,\
171
171
  } catch (e) {
172
172
  return String(e).includes("cssRules") ? warnOnce(`Can't access cssRules, likely due to CORS restrictions: ${sheet.href}`) : console.error(e, sheet.href), !1;
173
173
  }
174
- }, rewriteRuleContainer = (ruleContainer, rewriteLimit, forShadowDOM) => {
174
+ }, rewrittenCountByRule = /* @__PURE__ */ new WeakMap(), rewriteRuleContainer = (ruleContainer, rewriteLimit, forShadowDOM) => {
175
175
  let count = 0, index = -1;
176
176
  for (let cssRule of ruleContainer.cssRules) {
177
177
  index++;
178
- let numRewritten = 0;
179
- if (cssRule.__processed)
180
- numRewritten = cssRule.__pseudoStatesRewrittenCount;
178
+ let numRewritten = 0, processedCount = rewrittenCountByRule.get(cssRule);
179
+ if (processedCount !== void 0)
180
+ numRewritten = processedCount;
181
181
  else {
182
182
  let styleRules = [cssRule];
183
183
  if ("selectorText" in styleRules[0]) {
@@ -193,9 +193,9 @@ var pseudoStates = Object.values(PSEUDO_STATES), selectorStartPattern = /[|>+~,\
193
193
  styleRule,
194
194
  remainingRewriteLimit,
195
195
  forShadowDOM
196
- )), styleRule.__processed = !0;
196
+ ));
197
197
  }), numRewritten = rewrittenCounts.reduce((sum, value) => sum + value, 0), styleRules.forEach((styleRule, styleRuleIndex) => {
198
- styleRule.__pseudoStatesRewrittenCount = styleRuleIndex === 0 ? numRewritten : 0;
198
+ rewrittenCountByRule.set(styleRule, styleRuleIndex === 0 ? numRewritten : 0);
199
199
  });
200
200
  }
201
201
  if (count += numRewritten, count >= rewriteLimit)
@@ -275,12 +275,15 @@ channel.on(GLOBALS_UPDATED, () => rewriteStyleSheets());
275
275
  channel.on(FORCE_RE_RENDER, () => rewriteStyleSheets());
276
276
  channel.on(FORCE_REMOUNT, () => rewriteStyleSheets());
277
277
  channel.on(DOCS_RENDERED, () => rewriteStyleSheets());
278
- Element.prototype.attachShadow && (Element.prototype._attachShadow = Element.prototype.attachShadow, Element.prototype.attachShadow = function(init) {
279
- let shadowRoot = this._attachShadow({ ...init, mode: "open" });
280
- return requestAnimationFrame(() => {
281
- rewriteStyleSheets(shadowRoot), shadowHosts.has(shadowRoot.host) && updateShadowHost(shadowRoot.host);
282
- }), shadowRoot;
283
- });
278
+ if (Element.prototype.attachShadow) {
279
+ let originalAttachShadow = Element.prototype.attachShadow;
280
+ Element.prototype.attachShadow = function(init) {
281
+ let shadowRoot = originalAttachShadow.call(this, { ...init, mode: "open" });
282
+ return requestAnimationFrame(() => {
283
+ rewriteStyleSheets(shadowRoot), shadowHosts.has(shadowRoot.host) && updateShadowHost(shadowRoot.host);
284
+ }), shadowRoot;
285
+ };
286
+ }
284
287
 
285
288
  // src/addon-pseudo-states/preview.ts
286
289
  var decorators = [withPseudoState], initialGlobals = {
@@ -713,7 +713,7 @@ var renderJsx = (code, options) => {
713
713
  if (typeof code > "u")
714
714
  return logger.warn("Too many skip or undefined component"), null;
715
715
  let renderedJSX = code, Type = renderedJSX.type;
716
- for (let i = 0; i < options?.skip; i += 1) {
716
+ for (let i = 0; i < (options?.skip ?? 0); i += 1) {
717
717
  if (typeof renderedJSX > "u")
718
718
  return logger.warn("Cannot skip undefined element"), null;
719
719
  if (React2.Children.count(renderedJSX) > 1)
@@ -755,8 +755,8 @@ var renderJsx = (code, options) => {
755
755
  ...options
756
756
  };
757
757
  return React2.Children.map(code, (c) => {
758
- let child = typeof c == "number" ? c.toString() : c, string = (typeof reactElementToJSXString == "function" ? reactElementToJSXString : (
759
- // @ts-expect-error (Converted from ts-ignore)
758
+ let child = typeof c == "number" ? String(c) : c, string = (typeof reactElementToJSXString == "function" ? reactElementToJSXString : (
759
+ // CJS interop: the module can be the namespace object.
760
760
  reactElementToJSXString.default
761
761
  ))(simplifyNodeForStringify(child), opts);
762
762
  if (string.indexOf("&quot;") > -1) {
@@ -797,7 +797,9 @@ var renderJsx = (code, options) => {
797
797
 
798
798
  // src/react/docs/applyDecorators.ts
799
799
  var applyDecorators2 = (storyFn, decorators2) => {
800
- let jsxIndex = decorators2.findIndex((d) => d.originalFn === jsxDecorator), reorderedDecorators = jsxIndex === -1 ? decorators2 : [...decorators2.splice(jsxIndex, 1), ...decorators2];
800
+ let jsxIndex = decorators2.findIndex(
801
+ (d) => d.originalFn === jsxDecorator
802
+ ), reorderedDecorators = jsxIndex === -1 ? decorators2 : [...decorators2.splice(jsxIndex, 1), ...decorators2];
801
803
  return applyDecorators(storyFn, reorderedDecorators);
802
804
  };
803
805
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  filterDefs,
3
3
  filters
4
- } from "./chunk-2JT76G3E.js";
4
+ } from "./chunk-SBOQ4QPY.js";
5
5
  import {
6
6
  EVENTS,
7
7
  PANEL_ID
@@ -76,7 +76,7 @@ var { document: document3 } = global, channel = addons.getChannel(), DEFAULT_PAR
76
76
  throw new ElementA11yParameterError();
77
77
  let context = {
78
78
  include: document3?.body,
79
- exclude: [".fb-wrapper", "#storybook-docs", "#storybook-highlights-root"]
79
+ exclude: [".fb-wrapper", "#storybook-docs", "#forkbook-highlights-root"]
80
80
  // Internal Forkbook elements that are always in the document
81
81
  };
82
82
  if (input.context) {
@@ -91,7 +91,7 @@ var { document: document3 } = global, channel = addons.getChannel(), DEFAULT_PAR
91
91
  axe.configure(configWithDefault);
92
92
  let optionsWithDisabledRules = mergeDisabledRulesIntoRunOptions(options, configWithDefault);
93
93
  return new Promise((resolve, reject) => {
94
- let highlightsRoot = document3?.getElementById("storybook-highlights-root");
94
+ let highlightsRoot = document3?.getElementById("forkbook-highlights-root");
95
95
  highlightsRoot && (highlightsRoot.style.display = "none");
96
96
  let task = async () => {
97
97
  try {
@@ -116,11 +116,7 @@ channel.on(EVENTS.MANUAL, async (storyId, input = DEFAULT_PARAMETERS) => {
116
116
 
117
117
  // src/addon-a11y/utils.ts
118
118
  function getIsVitestStandaloneRun() {
119
- try {
120
- return import.meta.env.VITEST_STORYBOOK === "false";
121
- } catch {
122
- return !1;
123
- }
119
+ return import.meta.env?.VITEST_STORYBOOK === "false";
124
120
  }
125
121
 
126
122
  // src/addon-a11y/withVisionSimulator.ts
@@ -136,7 +132,7 @@ var knownFilters = Object.values(filters).map((f) => f.filter), knownFiltersRegE
136
132
  cleanup(), observer.disconnect();
137
133
  };
138
134
  }, [applyVisionFilter]), useEffect(() => (document.body.insertAdjacentHTML("beforeend", filterDefs), () => {
139
- let filterDefsElement = document.getElementById("storybook-a11y-vision-filters");
135
+ let filterDefsElement = document.getElementById("forkbook-a11y-vision-filters");
140
136
  filterDefsElement?.parentElement?.removeChild(filterDefsElement);
141
137
  }), []), StoryFn();
142
138
  };
@@ -162,7 +158,7 @@ var vitestMatchersExtended = !1, decorators = [withVisionSimulator], afterEach =
162
158
  status: hasViolations ? getMode() : "passed"
163
159
  }), getIsVitestStandaloneRun() && hasViolations && getMode() === "failed") {
164
160
  if (!vitestMatchersExtended) {
165
- let { toHaveNoViolations } = await import("./matchers-YLBYSYAF.js");
161
+ let { toHaveNoViolations } = await import("./matchers-2HVLNCVO.js");
166
162
  expect.extend({ toHaveNoViolations }), vitestMatchersExtended = !0;
167
163
  }
168
164
  expect(result).toHaveNoViolations();