@aussieljk/forkbook 0.0.1-7 → 0.0.1-8

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 (230) hide show
  1. package/assets/create/templates/react-native/index.expo.js +4 -4
  2. package/assets/create/templates/react-native/index.js +5 -5
  3. package/dist/_browser-chunks/{Color-2YRIFQLC.js → Color-ZG7LKYDZ.js} +1 -1
  4. package/dist/_browser-chunks/{WithTooltip-4R5JMWZ7.js → WithTooltip-YZ36EZ4X.js} +1 -1
  5. package/dist/_browser-chunks/{chunk-4EFKUJG2.js → chunk-MZVQEZOB.js} +10 -10
  6. package/dist/_browser-chunks/{chunk-HTL5ODCB.js → chunk-SK6S7ZXD.js} +1 -1
  7. package/dist/_node-chunks/{attached-runtime-WFZCCGUB.js → attached-runtime-SRP2RPCT.js} +30 -30
  8. package/dist/_node-chunks/{builder-manager-DHKHRZK4.js → builder-manager-V7M6SFEM.js} +12 -12
  9. package/dist/_node-chunks/chunk-27KT3BJI.js +25 -0
  10. package/dist/_node-chunks/{chunk-K5RUOW42.js → chunk-27R37QFW.js} +7 -7
  11. package/dist/_node-chunks/{chunk-X63YMAHP.js → chunk-2WPUJ7UM.js} +7 -7
  12. package/dist/_node-chunks/{chunk-YVIPYJ53.js → chunk-2ZB3ZVDY.js} +8 -8
  13. package/dist/_node-chunks/{chunk-3ZCGT6VF.js → chunk-3KKSPEAE.js} +6 -6
  14. package/dist/_node-chunks/{chunk-I535GEPH.js → chunk-3KY2GA5X.js} +7 -7
  15. package/dist/_node-chunks/{chunk-QWDR5OWQ.js → chunk-3NXJBXBF.js} +15 -15
  16. package/dist/_node-chunks/{chunk-U3E7E4Q2.js → chunk-4CPTSXU6.js} +10 -10
  17. package/dist/_node-chunks/{chunk-U6DHF3RM.js → chunk-4QYNOSOA.js} +7 -7
  18. package/dist/_node-chunks/{chunk-M7ZVSBNU.js → chunk-4T3WPVSQ.js} +6 -6
  19. package/dist/_node-chunks/{chunk-BRHJ4P3A.js → chunk-4U5ZQZJ4.js} +6 -6
  20. package/dist/_node-chunks/chunk-4XNKH2BY.js +18 -0
  21. package/dist/_node-chunks/{chunk-EAL4RVEF.js → chunk-526SOV2Y.js} +6 -6
  22. package/dist/_node-chunks/{chunk-UNCBLHIP.js → chunk-54WGE5OK.js} +10 -10
  23. package/dist/_node-chunks/{chunk-DT45EUDD.js → chunk-5BQKMZYJ.js} +27 -32
  24. package/dist/_node-chunks/{chunk-7VHCAGBJ.js → chunk-62PEOH4P.js} +8 -8
  25. package/dist/_node-chunks/{chunk-UAG3XK32.js → chunk-6DCYMQX2.js} +29 -29
  26. package/dist/_node-chunks/{chunk-JTLOSDYL.js → chunk-6DZY675E.js} +9 -9
  27. package/dist/_node-chunks/{chunk-MRWBN46D.js → chunk-6GBMB2E4.js} +8 -8
  28. package/dist/_node-chunks/{chunk-BQC6WCUS.js → chunk-6YDXCU32.js} +6 -6
  29. package/dist/_node-chunks/{chunk-ESZIQTUH.js → chunk-77YIWZPS.js} +7 -7
  30. package/dist/_node-chunks/{chunk-MF3AT3JQ.js → chunk-7GLNBVQO.js} +6 -6
  31. package/dist/_node-chunks/{chunk-Q6QRFKHB.js → chunk-7YBOQWWR.js} +8 -8
  32. package/dist/_node-chunks/{chunk-R6AKCXPH.js → chunk-A73YRJPA.js} +7 -7
  33. package/dist/_node-chunks/{chunk-NSZGBFPR.js → chunk-BLAPFOIX.js} +6 -6
  34. package/dist/_node-chunks/{chunk-Y6G64J5S.js → chunk-BPMXWGDX.js} +6 -6
  35. package/dist/_node-chunks/{chunk-BR4WDRY6.js → chunk-BY65FGKD.js} +8 -8
  36. package/dist/_node-chunks/{chunk-5PYQ573S.js → chunk-CHPKBTH7.js} +7 -7
  37. package/dist/_node-chunks/{chunk-O7VJA7SM.js → chunk-CL4T6DGA.js} +7 -7
  38. package/dist/_node-chunks/chunk-CT3L2NXZ.js +20 -0
  39. package/dist/_node-chunks/{chunk-MJFMB4WD.js → chunk-CZDEJ7DD.js} +9 -9
  40. package/dist/_node-chunks/{chunk-F3SAYS4R.js → chunk-D4IL5V6A.js} +6 -6
  41. package/dist/_node-chunks/{chunk-WHOF2BJB.js → chunk-DADJTKJT.js} +7 -7
  42. package/dist/_node-chunks/{chunk-MF5BYASO.js → chunk-DGA2Q7TE.js} +6 -6
  43. package/dist/_node-chunks/{chunk-JDKYP7FW.js → chunk-DSWCMXKR.js} +10 -10
  44. package/dist/_node-chunks/{chunk-7V5AOV2J.js → chunk-DVSKRIH3.js} +7 -7
  45. package/dist/_node-chunks/{chunk-RCY7TLET.js → chunk-F2XPZVCK.js} +8 -8
  46. package/dist/_node-chunks/{chunk-FVFSSIGA.js → chunk-G3J2VAY4.js} +10 -10
  47. package/dist/_node-chunks/{chunk-6CB3XSQ2.js → chunk-G6UTEYYQ.js} +8 -8
  48. package/dist/_node-chunks/{chunk-ATX7SHS7.js → chunk-GUKZDREX.js} +8 -8
  49. package/dist/_node-chunks/{chunk-LJTP5PAJ.js → chunk-GXSB54NU.js} +6 -6
  50. package/dist/_node-chunks/{chunk-UF6Q6L5C.js → chunk-HF6FRLS6.js} +125 -144
  51. package/dist/_node-chunks/{chunk-J3Q56GX3.js → chunk-HNMHTOKI.js} +23 -23
  52. package/dist/_node-chunks/{chunk-G2AANC4A.js → chunk-I26RWAW3.js} +6 -6
  53. package/dist/_node-chunks/{chunk-P3GOMPP3.js → chunk-I5Y7NDAM.js} +7 -7
  54. package/dist/_node-chunks/{chunk-Y2GHAOKI.js → chunk-IAYHJZOR.js} +6 -6
  55. package/dist/_node-chunks/{chunk-NUYBFTOU.js → chunk-ICGRYYV7.js} +7 -7
  56. package/dist/_node-chunks/{chunk-OGJ7LDX3.js → chunk-IFF53QVX.js} +7 -7
  57. package/dist/_node-chunks/{chunk-JMS4H7QB.js → chunk-II4SIIJW.js} +7 -7
  58. package/dist/_node-chunks/{chunk-CDFQORVD.js → chunk-IVU4D6LF.js} +7 -7
  59. package/dist/_node-chunks/{chunk-KHWCZDIW.js → chunk-JB5Q4WGX.js} +7 -7
  60. package/dist/_node-chunks/{chunk-UVV24PG4.js → chunk-JCLP42A7.js} +7 -7
  61. package/dist/_node-chunks/{chunk-6QZ3PX5R.js → chunk-KQBTXUT5.js} +7 -7
  62. package/dist/_node-chunks/{chunk-QWRQXG2V.js → chunk-LF7EC235.js} +8 -8
  63. package/dist/_node-chunks/{chunk-64JPAW3T.js → chunk-LPLXO4HE.js} +6 -6
  64. package/dist/_node-chunks/{chunk-TOGDRW2W.js → chunk-LSKOVF6F.js} +6 -6
  65. package/dist/_node-chunks/{chunk-SZYMLCHF.js → chunk-LYMYDMEK.js} +6 -6
  66. package/dist/_node-chunks/{chunk-WME5NEJA.js → chunk-M3F5R2JO.js} +6 -6
  67. package/dist/_node-chunks/{chunk-QSP42ZBM.js → chunk-M74NU6PU.js} +6 -6
  68. package/dist/_node-chunks/{chunk-RZ7UEP4N.js → chunk-MGFH4KGP.js} +6 -6
  69. package/dist/_node-chunks/chunk-NORBEBNM.js +19 -0
  70. package/dist/_node-chunks/{chunk-WBB4NQ6H.js → chunk-NV6HM53D.js} +6 -6
  71. package/dist/_node-chunks/{chunk-DMDZPUHM.js → chunk-OFZX45ZR.js} +6 -6
  72. package/dist/_node-chunks/{chunk-NLPC2DDQ.js → chunk-OZBNKCKM.js} +6 -6
  73. package/dist/_node-chunks/{chunk-CENNLCU7.js → chunk-QEDRYWP7.js} +7 -7
  74. package/dist/_node-chunks/{chunk-MZQXEAI6.js → chunk-QQ7GEJNY.js} +9 -9
  75. package/dist/_node-chunks/{chunk-PQLXHVWK.js → chunk-QQKVXB5Q.js} +6 -6
  76. package/dist/_node-chunks/{chunk-RKKMQA6N.js → chunk-QVIC3UDL.js} +8 -8
  77. package/dist/_node-chunks/{chunk-ZIDIYSJQ.js → chunk-RR3WLRNQ.js} +7 -7
  78. package/dist/_node-chunks/chunk-SBNQ6YGM.js +11 -0
  79. package/dist/_node-chunks/{chunk-HUMAXGH2.js → chunk-SNQKCFKN.js} +6 -6
  80. package/dist/_node-chunks/{chunk-JED5F3H2.js → chunk-T62LXT34.js} +6 -6
  81. package/dist/_node-chunks/{chunk-JPHSU5OI.js → chunk-TBLZESXE.js} +6 -6
  82. package/dist/_node-chunks/{chunk-CNMMDQC3.js → chunk-TLB2LNUO.js} +12 -14
  83. package/dist/_node-chunks/{chunk-SWHTDOB4.js → chunk-UBEILYLL.js} +7 -7
  84. package/dist/_node-chunks/{chunk-NQAFLS5U.js → chunk-UCBUYT7S.js} +7 -7
  85. package/dist/_node-chunks/{chunk-4HGC3G6B.js → chunk-UEWCGYSE.js} +8 -8
  86. package/dist/_node-chunks/{chunk-ESCZ2NSB.js → chunk-VPGX2PAB.js} +6 -6
  87. package/dist/_node-chunks/{chunk-OWT6AVWK.js → chunk-VQ2NW4OR.js} +8 -8
  88. package/dist/_node-chunks/{chunk-SHH7JROR.js → chunk-VTLGMRU5.js} +6 -6
  89. package/dist/_node-chunks/{chunk-FTUQ7T3V.js → chunk-VTVQ5TKB.js} +8 -8
  90. package/dist/_node-chunks/{chunk-6K3ZE4HN.js → chunk-VV6CPF3T.js} +6 -6
  91. package/dist/_node-chunks/{chunk-7PMQPS5E.js → chunk-WF7RDUU7.js} +10 -10
  92. package/dist/_node-chunks/{chunk-JOSJ64KD.js → chunk-X5IJ42Q2.js} +7 -7
  93. package/dist/_node-chunks/{chunk-S3HB4EWT.js → chunk-XGMO4SW2.js} +8 -8
  94. package/dist/_node-chunks/{chunk-MBIIJTGQ.js → chunk-XTCOGCTP.js} +7 -7
  95. package/dist/_node-chunks/{chunk-YZWUD7I5.js → chunk-Y2HWZ262.js} +50 -50
  96. package/dist/_node-chunks/{chunk-CBBFNVFZ.js → chunk-YBRV5FIK.js} +7 -7
  97. package/dist/_node-chunks/chunk-YHWOGAFM.js +20 -0
  98. package/dist/_node-chunks/{chunk-7HVDL6M3.js → chunk-YMVL55QY.js} +9 -9
  99. package/dist/_node-chunks/{chunk-JQICISDD.js → chunk-ZKS2H56J.js} +6 -6
  100. package/dist/_node-chunks/dist-GJ53PFWF.js +27 -0
  101. package/dist/_node-chunks/dist-TLMACGH6.js +16 -0
  102. package/dist/_node-chunks/{local-runtime-UN5QK2SE.js → local-runtime-Y6OH2SFM.js} +20 -20
  103. package/dist/_node-chunks/{mdx-plugin-6M6CMNL3.js → mdx-plugin-R6GNGQP2.js} +13 -13
  104. package/dist/_node-chunks/{monorepo-253VKW4B.js → monorepo-R2CLQIWG.js} +11 -11
  105. package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-3ZOE54OQ.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-PTWFSPXD.js} +11 -11
  106. package/dist/_node-chunks/optimized-tests-DIPB4OM6.js +22 -0
  107. package/dist/_node-chunks/{pattern-copy-play-CCCJRMSL.js → pattern-copy-play-5VCD6ED3.js} +11 -11
  108. package/dist/_node-chunks/postinstallAddon-PSN7XRSV.js +20 -0
  109. package/dist/_node-chunks/{rehype-external-links-LJTPLCGD.js → rehype-external-links-SKSQEDUP.js} +9 -9
  110. package/dist/_node-chunks/{rehype-slug-KQI7ULEZ.js → rehype-slug-27WNXM7U.js} +9 -9
  111. package/dist/_node-chunks/{relaxed-limits-MUE2NI7S.js → relaxed-limits-PDGCGDW4.js} +11 -11
  112. package/dist/_node-chunks/{run-SYLR25HA.js → run-BD52SWQC.js} +17 -17
  113. package/dist/_node-chunks/{run-PGZMPNMS.js → run-IKBDOUY2.js} +53 -26
  114. package/dist/_node-chunks/session-id-K7PM5ZGL.js +23 -0
  115. package/dist/_node-chunks/{setup-XZWSUYPG.js → setup-7ECNMG4A.js} +8 -8
  116. package/dist/_node-chunks/{vitest.config.4.template-T25YYRGV.js → vitest.config.4.template-J4YODMMP.js} +7 -7
  117. package/dist/addon-a11y/manager.js +5 -5
  118. package/dist/addon-a11y/preset.js +7 -7
  119. package/dist/addon-docs/blocks.js +9 -9
  120. package/dist/addon-docs/manager.js +2 -2
  121. package/dist/addon-docs/preset.js +10 -10
  122. package/dist/addon-links/preview.d.ts +1 -1
  123. package/dist/addon-mcp/preset.js +10 -10
  124. package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +6 -8
  125. package/dist/addon-themes/postinstall.js +7 -7
  126. package/dist/addon-vitest/constants.js +8 -8
  127. package/dist/addon-vitest/manager.js +3 -3
  128. package/dist/addon-vitest/node/coverage-reporter.js +8 -8
  129. package/dist/addon-vitest/node/vitest.js +16 -16
  130. package/dist/addon-vitest/postinstall.js +10 -10
  131. package/dist/addon-vitest/preset.js +14 -14
  132. package/dist/addon-vitest/vitest-plugin/global-setup.js +7 -7
  133. package/dist/addon-vitest/vitest-plugin/index.js +15 -15
  134. package/dist/babel/index.js +11 -11
  135. package/dist/bin/core.js +62 -62
  136. package/dist/bin/dispatcher.js +13 -16
  137. package/dist/bin/loader.js +8 -8
  138. package/dist/builder-vite/index.js +15 -15
  139. package/dist/builder-vite/preset.js +13 -13
  140. package/dist/{chunk-DuDsmeM7.d.ts → chunk-CFk6djyM.d.ts} +4 -4
  141. package/dist/{chunk-B_ZhEPlo.d.ts → chunk-CJY2njs4.d.ts} +1 -1
  142. package/dist/{chunk-LrH1y9J2.d.ts → chunk-DktrsDd6.d.ts} +8 -8
  143. package/dist/{chunk-BWzbIWPz.d.ts → chunk-Dw_4ad2Y.d.ts} +5 -5
  144. package/dist/{chunk-CMaYrou5.d.ts → chunk-pFH9P91a.d.ts} +1 -1
  145. package/dist/cli/index.d.ts +1 -1
  146. package/dist/cli/index.js +22 -22
  147. package/dist/cli/skills/content/index.d.ts +1 -1
  148. package/dist/cli/skills/content/index.js +2 -2
  149. package/dist/cli/tools/sdk/child-host.d.ts +1 -1
  150. package/dist/cli/tools/sdk/child-host.js +17 -17
  151. package/dist/cli/tools/sdk/index.d.ts +1 -1
  152. package/dist/cli/tools/sdk/index.js +18 -18
  153. package/dist/cli-commands/bin/index.js +7 -7
  154. package/dist/common/index.d.ts +14 -27
  155. package/dist/common/index.js +36 -40
  156. package/dist/components/index.js +25 -25
  157. package/dist/core-server/index.d.ts +6 -6
  158. package/dist/core-server/index.js +69 -69
  159. package/dist/core-server/presets/common-manager.js +7 -7
  160. package/dist/core-server/presets/common-override-preset.js +10 -10
  161. package/dist/core-server/presets/common-preset.js +39 -39
  162. package/dist/create/bin/index.js +7 -7
  163. package/dist/create/index.js +15 -15
  164. package/dist/csf-tools/index.js +12 -12
  165. package/dist/manager/_manager-chunks/{globals-runtime-BKPOYSwp.js → globals-runtime-BKW-4ztO.js} +2 -2
  166. package/dist/manager/_manager-chunks/{globals-runtime-CI_p54Ha.js → globals-runtime-CIcNS9TG.js} +4 -4
  167. package/dist/manager/_manager-chunks/{globals-runtime-CzEhVGVp.js → globals-runtime-DZN_3ZLm.js} +2 -2
  168. package/dist/manager/_manager-chunks/{globals-runtime-DMq1Phbl.js → globals-runtime-DgUeynuu.js} +66 -66
  169. package/dist/manager/_manager-chunks/{globals-runtime-BMIT8BJb.js → globals-runtime-WhJXr5R1.js} +1 -1
  170. package/dist/manager/_manager-chunks/{globals-runtime-CI-C7ncS.js → globals-runtime-z143vedu.js} +2 -2
  171. package/dist/manager/_manager-chunks/{runtime-ecY5qnmo.js → runtime-B_U-7omv.js} +124 -124
  172. package/dist/manager/_manager-chunks/{runtime-DvrwKw7z.js → runtime-BrlctLSK.js} +7 -7
  173. package/dist/manager/_manager-chunks/{runtime-D-nYLsdk.js → runtime-BrwmuSZ1.js} +20 -20
  174. package/dist/manager/_manager-chunks/{runtime-D09XMY6V.js → runtime-C-s1miBr.js} +1 -1
  175. package/dist/manager/_manager-chunks/{runtime-DzxaTqVN.js → runtime-CHQZzIX6.js} +2 -2
  176. package/dist/manager/_manager-chunks/{runtime-Cf0p9DUx.js → runtime-DEHcqyTM.js} +3 -3
  177. package/dist/manager/_manager-chunks/{runtime-BM30BmeT.js → runtime-Dtpc5s3G.js} +1 -1
  178. package/dist/manager/_manager-chunks/{runtime-B4U0u9p4.js → runtime-DuptfEhw.js} +2 -2
  179. package/dist/manager/globals-runtime.js +1 -1
  180. package/dist/manager/runtime.js +1 -1
  181. package/dist/manager-api/index.d.ts +1 -1
  182. package/dist/manager-errors.d.ts +1 -1
  183. package/dist/mcp/index.js +8 -8
  184. package/dist/mocking-utils/index.js +9 -9
  185. package/dist/nextjs-vite/index.d.ts +2 -2
  186. package/dist/nextjs-vite/node/index.d.ts +2 -2
  187. package/dist/nextjs-vite/node/index.js +7 -7
  188. package/dist/nextjs-vite/preset.js +11 -11
  189. package/dist/nextjs-vite/vite-plugin/index.js +7 -7
  190. package/dist/nextjs-vite-plugin/index.js +8 -8
  191. package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
  192. package/dist/node-logger/index.js +9 -9
  193. package/dist/oxc-parser/index.js +10 -10
  194. package/dist/oxc-parser/worker.js +10 -10
  195. package/dist/preview-api/index.d.ts +1 -1
  196. package/dist/preview-errors.d.ts +1 -1
  197. package/dist/react/docgen/docgen-worker.js +11 -11
  198. package/dist/react/preset.js +13 -13
  199. package/dist/react-native/bin/get-stories.js +12 -12
  200. package/dist/react-native/index.d.ts +8 -8
  201. package/dist/react-native/index.js +3 -3
  202. package/dist/react-native/metro/node.js +10 -10
  203. package/dist/react-native/metro/{withStorybook.d.ts → withForkbook.d.ts} +9 -9
  204. package/dist/react-native/metro/{withStorybook.js → withForkbook.js} +16 -16
  205. package/dist/react-native/scripts/generate.d.ts +1 -1
  206. package/dist/react-native/scripts/generate.js +8 -8
  207. package/dist/react-native/stub.js +1 -1
  208. package/dist/react-vite/index.d.ts +2 -2
  209. package/dist/react-vite/node/index.d.ts +3 -3
  210. package/dist/react-vite/node/index.js +7 -7
  211. package/dist/react-vite/preset.js +7 -7
  212. package/dist/server-errors.d.ts +1 -1
  213. package/dist/server-errors.js +9 -9
  214. package/dist/shared/open-service/index.d.ts +1 -1
  215. package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
  216. package/dist/telemetry/index.d.ts +3 -3
  217. package/dist/telemetry/index.js +43 -43
  218. package/dist/types/index.d.ts +2 -2
  219. package/package.json +6 -8
  220. package/dist/_node-chunks/chunk-EFFWFE6W.js +0 -11
  221. package/dist/_node-chunks/chunk-KWER36VB.js +0 -20
  222. package/dist/_node-chunks/chunk-LZYYZ62Y.js +0 -19
  223. package/dist/_node-chunks/chunk-UGXN7JTT.js +0 -18
  224. package/dist/_node-chunks/chunk-UPJMGWMZ.js +0 -25
  225. package/dist/_node-chunks/chunk-ZSGOW4WQ.js +0 -20
  226. package/dist/_node-chunks/dist-5EG56KTF.js +0 -16
  227. package/dist/_node-chunks/dist-UEXSNGGQ.js +0 -27
  228. package/dist/_node-chunks/optimized-tests-JSWLRMEI.js +0 -22
  229. package/dist/_node-chunks/postinstallAddon-VMANBHPR.js +0 -20
  230. package/dist/_node-chunks/session-id-J4A25UQ6.js +0 -23
@@ -1,63 +1,132 @@
1
- import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_b2whu6ooy6h from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_b2whu6ooy6h from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_b2whu6ooy6h from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_b2whu6ooy6h.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_b2whu6ooy6h.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_b2whu6ooy6h.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Forkbook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  RN_FORKBOOK_DIR
14
- } from "./chunk-CENNLCU7.js";
14
+ } from "./chunk-QEDRYWP7.js";
15
15
  import {
16
16
  createModuleResolver
17
- } from "./chunk-4HGC3G6B.js";
17
+ } from "./chunk-UEWCGYSE.js";
18
18
  import {
19
19
  detectIndent
20
- } from "./chunk-JPHSU5OI.js";
20
+ } from "./chunk-TBLZESXE.js";
21
21
  import {
22
22
  findFilesUp,
23
23
  getProjectRoot
24
- } from "./chunk-7PMQPS5E.js";
24
+ } from "./chunk-WF7RDUU7.js";
25
25
  import {
26
26
  up2 as up
27
- } from "./chunk-BRHJ4P3A.js";
27
+ } from "./chunk-4U5ZQZJ4.js";
28
28
  import {
29
29
  invariant
30
- } from "./chunk-M7ZVSBNU.js";
30
+ } from "./chunk-4T3WPVSQ.js";
31
31
  import {
32
32
  importModule
33
- } from "./chunk-SWHTDOB4.js";
33
+ } from "./chunk-UBEILYLL.js";
34
34
  import {
35
35
  storybookConfigExtensions
36
- } from "./chunk-3ZCGT6VF.js";
36
+ } from "./chunk-3KKSPEAE.js";
37
37
  import {
38
38
  require_picocolors
39
- } from "./chunk-K5RUOW42.js";
39
+ } from "./chunk-27R37QFW.js";
40
40
  import {
41
41
  slash
42
- } from "./chunk-ZSGOW4WQ.js";
42
+ } from "./chunk-CT3L2NXZ.js";
43
43
  import {
44
44
  glob,
45
45
  globSync
46
- } from "./chunk-RKKMQA6N.js";
46
+ } from "./chunk-QVIC3UDL.js";
47
47
  import {
48
48
  __toESM
49
- } from "./chunk-NLPC2DDQ.js";
49
+ } from "./chunk-OZBNKCKM.js";
50
50
 
51
51
  // src/common/versions.ts
52
- var versions_default = { "@aussieljk/forkbook": "0.0.1-7" };
52
+ var versions_default = { "@aussieljk/forkbook": "0.0.1-8" };
53
53
 
54
- // src/common/utils/HandledError.ts
55
- var HandledError = class extends Error {
56
- constructor(error) {
57
- super(String(error));
58
- this.handled = !0;
59
- typeof error != "string" && (this.cause = error);
54
+ // src/common/utils/interpret-files.ts
55
+ import { existsSync } from "node:fs";
56
+ import { extname } from "node:path";
57
+ var typescriptFallbackExtensions = {
58
+ ".js": [".ts", ".tsx"],
59
+ ".mjs": [".mts"],
60
+ ".cjs": [".cts"],
61
+ ".jsx": [".tsx"]
62
+ }, supportedExtensions = storybookConfigExtensions;
63
+ function getInterpretedFile(pathToFile) {
64
+ return supportedExtensions.map((ext) => pathToFile.endsWith(ext) ? pathToFile : `${pathToFile}${ext}`).find((candidate) => existsSync(candidate));
65
+ }
66
+ var importResolver = createModuleResolver({
67
+ extensions: [...supportedExtensions],
68
+ mainFields: ["module", "main"]
69
+ });
70
+ function resolveImport(id, options) {
71
+ try {
72
+ return resolveSync(id, options.basedir);
73
+ } catch (error) {
74
+ let ext = extname(id), fallbackExtensions = typescriptFallbackExtensions[ext];
75
+ if (!fallbackExtensions)
76
+ throw error;
77
+ let fallbackError = error, baseId = id.slice(0, -ext.length);
78
+ for (let fallbackExtension of fallbackExtensions)
79
+ try {
80
+ return resolveSync(`${baseId}${fallbackExtension}`, options.basedir);
81
+ } catch (err) {
82
+ fallbackError = err;
83
+ }
84
+ throw fallbackError;
60
85
  }
86
+ }
87
+ function resolveSync(id, basedir) {
88
+ return importResolver.resolveSync(basedir, id);
89
+ }
90
+
91
+ // src/common/utils/validate-configuration-files.ts
92
+ import { resolve } from "node:path";
93
+ import { once } from "@aussieljk/forkbook/internal/node-logger";
94
+ import { MainFileMissingError } from "@aussieljk/forkbook/internal/server-errors";
95
+ import { dedent } from "ts-dedent";
96
+ async function validateConfigurationFiles(configDir, cwd) {
97
+ let extensionsPattern = `{${Array.from(supportedExtensions).join(",")}}`, mainConfigMatches = await glob(slash(resolve(configDir, `main${extensionsPattern}`)), {
98
+ cwd: cwd ?? process.cwd(),
99
+ expandDirectories: !1
100
+ }), [mainConfigPath] = mainConfigMatches;
101
+ if (mainConfigMatches.length > 1 && once.warn(dedent`
102
+ Multiple main files found in your configDir (${resolve(configDir)}).
103
+ Forkbook will use the first one found and ignore the others. Please remove the extra files.
104
+ `), !mainConfigPath)
105
+ throw new MainFileMissingError({ location: configDir });
106
+ }
107
+
108
+ // src/common/utils/default-config-dir.ts
109
+ function defaultConfigDir() {
110
+ return ".forkbook";
111
+ }
112
+
113
+ // src/common/utils/framework.ts
114
+ import {
115
+ SupportedBuilder,
116
+ SupportedFramework,
117
+ SupportedRenderer
118
+ } from "@aussieljk/forkbook/internal/types";
119
+ var frameworkToRenderer = {
120
+ // frameworks
121
+ [SupportedFramework.NEXTJS_VITE]: SupportedRenderer.REACT,
122
+ [SupportedFramework.REACT_VITE]: SupportedRenderer.REACT,
123
+ // renderers
124
+ [SupportedRenderer.REACT_NATIVE]: SupportedRenderer.REACT_NATIVE,
125
+ [SupportedRenderer.REACT]: SupportedRenderer.REACT
126
+ }, frameworkToBuilder = {
127
+ // frameworks
128
+ [SupportedFramework.NEXTJS_VITE]: SupportedBuilder.VITE,
129
+ [SupportedFramework.REACT_VITE]: SupportedBuilder.VITE
61
130
  };
62
131
 
63
132
  // src/common/utils/get-pkg-pr-new-package-specifier.ts
@@ -71,6 +140,15 @@ var PKG_PR_NEW_FORKBOOK_SPECIFIER_RE = /^(https?:\/\/[^/\s]*pkg\.pr\.new\/(?:[^@
71
140
  return `${prefix}${packageName}${suffix}`;
72
141
  };
73
142
 
143
+ // src/common/utils/HandledError.ts
144
+ var HandledError = class extends Error {
145
+ constructor(error) {
146
+ super(String(error));
147
+ this.handled = !0;
148
+ typeof error != "string" && (this.cause = error);
149
+ }
150
+ };
151
+
74
152
  // src/common/js-package-manager/util.ts
75
153
  import { gt, prerelease, valid } from "semver";
76
154
  var FORKBOOK_PACKAGE_PATTERNS = [
@@ -162,7 +240,7 @@ function clearVitePlusCache() {
162
240
 
163
241
  // src/common/js-package-manager/JsPackageManager.ts
164
242
  import { readFileSync, writeFileSync } from "node:fs";
165
- import { dirname, isAbsolute, join, normalize, resolve } from "node:path";
243
+ import { dirname, isAbsolute, join, normalize, resolve as resolve2 } from "node:path";
166
244
  import { logger as logger2, prompt } from "@aussieljk/forkbook/internal/node-logger";
167
245
  var import_picocolors = __toESM(require_picocolors(), 1);
168
246
  import { coerce, gt as gt2, satisfies, validRange } from "semver";
@@ -249,7 +327,7 @@ ${tail}`)), error;
249
327
  }
250
328
  /** Read the `package.json` file available in the provided directory */
251
329
  static getPackageJson(packageJsonPath) {
252
- let absolutePath = normalize(resolve(packageJsonPath)), cached = _JsPackageManager.packageJsonCache.get(absolutePath);
330
+ let absolutePath = normalize(resolve2(packageJsonPath)), cached = _JsPackageManager.packageJsonCache.get(absolutePath);
253
331
  if (cached)
254
332
  return logger2.debug(`Using cached package.json for ${absolutePath}...`), cached;
255
333
  let jsonContent = readFileSync(absolutePath, "utf8"), packageJSON = JSON.parse(jsonContent);
@@ -274,7 +352,7 @@ ${tail}`)), error;
274
352
  ["dependencies", "devDependencies", "peerDependencies"].forEach((type) => {
275
353
  packageJsonToWrite[type] && Object.keys(packageJsonToWrite[type]).length === 0 && delete packageJsonToWrite[type];
276
354
  });
277
- let filePath = join(directory, "package.json"), indent = this.#getIndent(filePath), packageJsonPath = normalize(resolve(directory, "package.json")), content = `${JSON.stringify(packageJsonToWrite, null, indent)}
355
+ let filePath = join(directory, "package.json"), indent = this.#getIndent(filePath), packageJsonPath = normalize(resolve2(directory, "package.json")), content = `${JSON.stringify(packageJsonToWrite, null, indent)}
278
356
  `;
279
357
  writeFileSync(packageJsonPath, content, "utf8");
280
358
  let cachedPackageJson = packageJsonToWrite;
@@ -592,7 +670,7 @@ An error occurred while adding dependencies to your package.json:`), logger2.log
592
670
  for (let packageJsonPath of this.packageJsonPaths)
593
671
  if (_JsPackageManager.hasStorybookDependency(packageJsonPath))
594
672
  return packageJsonPath;
595
- return this.packageJsonPaths[0] ?? resolve(this.cwd, "package.json");
673
+ return this.packageJsonPaths[0] ?? resolve2(this.cwd, "package.json");
596
674
  }
597
675
  /** List all package.json files starting from the given directory and stopping at the project root. */
598
676
  static listAllPackageJsonPaths(instanceDir, storiesPaths) {
@@ -632,25 +710,6 @@ An error occurred while adding dependencies to your package.json:`), logger2.log
632
710
  }
633
711
  };
634
712
 
635
- // src/common/utils/framework.ts
636
- import {
637
- SupportedBuilder,
638
- SupportedFramework,
639
- SupportedRenderer
640
- } from "@aussieljk/forkbook/internal/types";
641
- var frameworkToRenderer = {
642
- // frameworks
643
- [SupportedFramework.NEXTJS_VITE]: SupportedRenderer.REACT,
644
- [SupportedFramework.REACT_VITE]: SupportedRenderer.REACT,
645
- // renderers
646
- [SupportedRenderer.REACT_NATIVE]: SupportedRenderer.REACT_NATIVE,
647
- [SupportedRenderer.REACT]: SupportedRenderer.REACT
648
- }, frameworkToBuilder = {
649
- // frameworks
650
- [SupportedFramework.NEXTJS_VITE]: SupportedBuilder.VITE,
651
- [SupportedFramework.REACT_VITE]: SupportedBuilder.VITE
652
- };
653
-
654
713
  // src/common/utils/normalize-path.ts
655
714
  import { posix } from "node:path";
656
715
  function normalizePath(p) {
@@ -664,19 +723,12 @@ var normalizeAddonName = (addon) => {
664
723
  return name = normalizePath(name), name = name.replace(/.*node_modules\//, ""), name.replace(/\/dist\/.*$/, "").replace(/\.[mc]?[tj]?sx?$/, "").replace(/\/register$/, "").replace(/\/manager$/, "").replace(/\/preset$/, "");
665
724
  }, getAddonNames = (mainConfig) => (mainConfig.addons || []).map(normalizeAddonName).filter((item) => item != null);
666
725
 
667
- // src/common/utils/default-config-dir.ts
668
- import { existsSync } from "node:fs";
669
- import { join as join2 } from "node:path";
670
- function defaultConfigDir(cwd = process.cwd()) {
671
- return !existsSync(join2(cwd, ".forkbook")) && existsSync(join2(cwd, ".storybook")) ? ".storybook" : ".forkbook";
672
- }
673
-
674
726
  // src/common/utils/get-framework-name.ts
675
727
  import { dedent as dedent3 } from "ts-dedent";
676
728
 
677
729
  // src/common/utils/get-storybook-info.ts
678
- import { existsSync as existsSync3, readFileSync as readFileSync2 } from "node:fs";
679
- import { basename, dirname as dirname2, join as join4 } from "node:path";
730
+ import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
731
+ import { basename, dirname as dirname2, join as join3 } from "node:path";
680
732
  import {
681
733
  SupportedBuilder as SupportedBuilder2,
682
734
  SupportedFramework as SupportedFramework2,
@@ -693,66 +745,10 @@ function getStorybookConfiguration(storybookScript, shortName, longName) {
693
745
 
694
746
  // src/common/utils/load-main-config.ts
695
747
  import { readFile, rm, writeFile } from "node:fs/promises";
696
- import { join as join3, parse, relative, resolve as resolve3 } from "node:path";
748
+ import { join as join2, parse, relative, resolve as resolve3 } from "node:path";
697
749
  import { logger as logger3 } from "@aussieljk/forkbook/internal/node-logger";
698
750
  import { MainFileEvaluationError } from "@aussieljk/forkbook/internal/server-errors";
699
751
  import { dedent as dedent2 } from "ts-dedent";
700
-
701
- // src/common/utils/interpret-files.ts
702
- import { existsSync as existsSync2 } from "node:fs";
703
- import { extname } from "node:path";
704
- var typescriptFallbackExtensions = {
705
- ".js": [".ts", ".tsx"],
706
- ".mjs": [".mts"],
707
- ".cjs": [".cts"],
708
- ".jsx": [".tsx"]
709
- }, supportedExtensions = storybookConfigExtensions;
710
- function getInterpretedFile(pathToFile) {
711
- return supportedExtensions.map((ext) => pathToFile.endsWith(ext) ? pathToFile : `${pathToFile}${ext}`).find((candidate) => existsSync2(candidate));
712
- }
713
- var importResolver = createModuleResolver({
714
- extensions: [...supportedExtensions],
715
- mainFields: ["module", "main"]
716
- });
717
- function resolveImport(id, options) {
718
- try {
719
- return resolveSync(id, options.basedir);
720
- } catch (error) {
721
- let ext = extname(id), fallbackExtensions = typescriptFallbackExtensions[ext];
722
- if (!fallbackExtensions)
723
- throw error;
724
- let fallbackError = error, baseId = id.slice(0, -ext.length);
725
- for (let fallbackExtension of fallbackExtensions)
726
- try {
727
- return resolveSync(`${baseId}${fallbackExtension}`, options.basedir);
728
- } catch (err) {
729
- fallbackError = err;
730
- }
731
- throw fallbackError;
732
- }
733
- }
734
- function resolveSync(id, basedir) {
735
- return importResolver.resolveSync(basedir, id);
736
- }
737
-
738
- // src/common/utils/validate-configuration-files.ts
739
- import { resolve as resolve2 } from "node:path";
740
- import { once } from "@aussieljk/forkbook/internal/node-logger";
741
- import { MainFileMissingError } from "@aussieljk/forkbook/internal/server-errors";
742
- import { dedent } from "ts-dedent";
743
- async function validateConfigurationFiles(configDir, cwd) {
744
- let extensionsPattern = `{${Array.from(supportedExtensions).join(",")}}`, mainConfigMatches = await glob(slash(resolve2(configDir, `main${extensionsPattern}`)), {
745
- cwd: cwd ?? process.cwd(),
746
- expandDirectories: !1
747
- }), [mainConfigPath] = mainConfigMatches;
748
- if (mainConfigMatches.length > 1 && once.warn(dedent`
749
- Multiple main files found in your configDir (${resolve2(configDir)}).
750
- Forkbook will use the first one found and ignore the others. Please remove the extra files.
751
- `), !mainConfigPath)
752
- throw new MainFileMissingError({ location: configDir });
753
- }
754
-
755
- // src/common/utils/load-main-config.ts
756
752
  async function loadMainConfig({
757
753
  configDir = defaultConfigDir(),
758
754
  cwd,
@@ -761,8 +757,7 @@ async function loadMainConfig({
761
757
  await validateConfigurationFiles(configDir, cwd);
762
758
  let mainPath = getInterpretedFile(resolve3(configDir, "main"));
763
759
  try {
764
- let out = await importModule(mainPath, { skipCache });
765
- return withForkbookFramework(out);
760
+ return await importModule(mainPath, { skipCache });
766
761
  } catch (e) {
767
762
  if (!(e instanceof Error))
768
763
  throw e;
@@ -780,7 +775,7 @@ async function loadMainConfig({
780
775
  const __filename = fileURLToPath(import.meta.url);
781
776
  const __dirname = dirname(__filename);
782
777
  const require = createRequire(import.meta.url);
783
- `, { ext, name, dir } = parse(mainPath), modifiedMainPath = join3(dir, `${name}.tmp.${ext}`);
778
+ `, { ext, name, dir } = parse(mainPath), modifiedMainPath = join2(dir, `${name}.tmp.${ext}`);
784
779
  await writeFile(modifiedMainPath, [header, comment, content].join(`
785
780
 
786
781
  `));
@@ -790,7 +785,7 @@ async function loadMainConfig({
790
785
  } finally {
791
786
  await rm(modifiedMainPath);
792
787
  }
793
- return withForkbookFramework(out);
788
+ return out;
794
789
  }
795
790
  }
796
791
  throw new MainFileEvaluationError({
@@ -824,14 +819,14 @@ var rendererPackages = {
824
819
  return version;
825
820
  }
826
821
  }, findConfigFile = (prefix, configDir) => {
827
- let filePrefix = join4(configDir, prefix), extension = storybookConfigExtensions.find((ext) => existsSync3(`${filePrefix}${ext}`));
822
+ let filePrefix = join3(configDir, prefix), extension = storybookConfigExtensions.find((ext) => existsSync2(`${filePrefix}${ext}`));
828
823
  return extension ? `${filePrefix}${extension}` : null;
829
824
  }, getConfigInfo = (configDir) => {
830
825
  let storybookConfigDir = configDir ?? defaultConfigDir();
831
- if (!existsSync3(storybookConfigDir)) {
826
+ if (!existsSync2(storybookConfigDir)) {
832
827
  let packageJsonPaths = JsPackageManager.listAllPackageJsonPaths(storybookConfigDir);
833
828
  for (let packageJsonPath of packageJsonPaths) {
834
- let packageJson = JSON.parse(readFileSync2(packageJsonPath, "utf-8")), storybookScript = packageJson.scripts?.forkbook ?? packageJson.scripts?.storybook;
829
+ let storybookScript = JSON.parse(readFileSync2(packageJsonPath, "utf-8")).scripts?.forkbook;
835
830
  if (storybookScript && !configDir) {
836
831
  let configParam = getStorybookConfiguration(storybookScript, "-c", "--config-dir");
837
832
  if (configParam) {
@@ -912,20 +907,8 @@ async function getFrameworkName(options) {
912
907
  `);
913
908
  return typeof framework == "object" ? framework.name : framework;
914
909
  }
915
- var storybookFrameworkNames = {
916
- "@storybook/react-vite": "@aussieljk/forkbook/react-vite",
917
- "@storybook/nextjs-vite": "@aussieljk/forkbook/nextjs-vite"
918
- };
919
- function forkbookFramework(framework) {
920
- let name = typeof framework == "string" ? framework : framework?.name, forkbookName = name ? storybookFrameworkNames[name] : void 0;
921
- return forkbookName ? typeof framework == "string" ? forkbookName : { ...framework, name: forkbookName } : framework;
922
- }
923
- function withForkbookFramework(config) {
924
- let framework = forkbookFramework(config?.framework);
925
- return framework === config?.framework ? config : { ...config, framework };
926
- }
927
910
  var extractFrameworkPackageName = (framework) => {
928
- let normalizedPath = normalizePath(forkbookFramework(framework));
911
+ let normalizedPath = normalizePath(framework);
929
912
  return Object.keys(frameworkPackages).find((pkg) => normalizedPath.endsWith(pkg)) ?? framework;
930
913
  };
931
914
 
@@ -941,9 +924,16 @@ async function extractRenderer(frameworkName) {
941
924
 
942
925
  export {
943
926
  versions_default,
944
- HandledError,
927
+ supportedExtensions,
928
+ getInterpretedFile,
929
+ resolveImport,
930
+ validateConfigurationFiles,
931
+ defaultConfigDir,
932
+ frameworkToRenderer,
933
+ frameworkToBuilder,
945
934
  isPkgPrNewVersionSpecifier,
946
935
  getPkgPrNewPackageSpecifier,
936
+ HandledError,
947
937
  FORKBOOK_PACKAGE_PATTERNS,
948
938
  hasStorybookMinimumAgeExclusions,
949
939
  parsePackageData,
@@ -965,18 +955,11 @@ export {
965
955
  getPrettyPackageManagerName,
966
956
  getPackageDetails,
967
957
  JsPackageManager,
968
- frameworkToRenderer,
969
- frameworkToBuilder,
970
958
  normalizeAddonName,
971
959
  getAddonNames,
972
- defaultConfigDir,
973
960
  getRendererName,
974
961
  extractRenderer,
975
962
  getStorybookConfiguration,
976
- supportedExtensions,
977
- getInterpretedFile,
978
- resolveImport,
979
- validateConfigurationFiles,
980
963
  loadMainConfig,
981
964
  rendererPackages,
982
965
  frameworkPackages,
@@ -985,7 +968,5 @@ export {
985
968
  getConfigInfo,
986
969
  getStorybookInfo,
987
970
  getFrameworkName,
988
- forkbookFramework,
989
- withForkbookFramework,
990
971
  extractFrameworkPackageName
991
972
  };
@@ -1,42 +1,42 @@
1
- import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_b2whu6ooy6h from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_b2whu6ooy6h from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_b2whu6ooy6h from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_b2whu6ooy6h.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_b2whu6ooy6h.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_b2whu6ooy6h.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Forkbook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  getSessionId
14
- } from "./chunk-ZIDIYSJQ.js";
14
+ } from "./chunk-RR3WLRNQ.js";
15
15
  import {
16
16
  getMonorepoType
17
- } from "./chunk-DMDZPUHM.js";
17
+ } from "./chunk-OFZX45ZR.js";
18
18
  import {
19
19
  version
20
- } from "./chunk-UGXN7JTT.js";
20
+ } from "./chunk-4XNKH2BY.js";
21
21
  import {
22
22
  detectAgent
23
- } from "./chunk-UPJMGWMZ.js";
23
+ } from "./chunk-27KT3BJI.js";
24
24
  import {
25
25
  createFileSystemCache,
26
26
  resolvePathInStorybookCache
27
- } from "./chunk-DT45EUDD.js";
27
+ } from "./chunk-5BQKMZYJ.js";
28
28
  import {
29
29
  require_dist
30
- } from "./chunk-7V5AOV2J.js";
30
+ } from "./chunk-DVSKRIH3.js";
31
31
  import {
32
32
  up
33
- } from "./chunk-O7VJA7SM.js";
33
+ } from "./chunk-CL4T6DGA.js";
34
34
  import {
35
35
  RN_FORKBOOK_DIR
36
- } from "./chunk-CENNLCU7.js";
36
+ } from "./chunk-QEDRYWP7.js";
37
37
  import {
38
38
  globalSettings
39
- } from "./chunk-UVV24PG4.js";
39
+ } from "./chunk-JCLP42A7.js";
40
40
  import {
41
41
  BUNDLER_PACKAGES,
42
42
  DATA_FETCHING_PACKAGES,
@@ -47,25 +47,25 @@ import {
47
47
  TEST_PACKAGES,
48
48
  UI_LIBRARY_PACKAGES,
49
49
  matchesPackagePattern
50
- } from "./chunk-NSZGBFPR.js";
50
+ } from "./chunk-BLAPFOIX.js";
51
51
  import {
52
52
  exec
53
- } from "./chunk-6CB3XSQ2.js";
53
+ } from "./chunk-G6UTEYYQ.js";
54
54
  import {
55
55
  getProjectRoot
56
- } from "./chunk-7PMQPS5E.js";
56
+ } from "./chunk-WF7RDUU7.js";
57
57
  import {
58
58
  nanoid
59
- } from "./chunk-MF3AT3JQ.js";
59
+ } from "./chunk-7GLNBVQO.js";
60
60
  import {
61
61
  resolvePackageDir
62
- } from "./chunk-SWHTDOB4.js";
62
+ } from "./chunk-UBEILYLL.js";
63
63
  import {
64
64
  slash
65
- } from "./chunk-ZSGOW4WQ.js";
65
+ } from "./chunk-CT3L2NXZ.js";
66
66
  import {
67
67
  __toESM
68
- } from "./chunk-NLPC2DDQ.js";
68
+ } from "./chunk-OZBNKCKM.js";
69
69
 
70
70
  // src/telemetry/index.ts
71
71
  import { logger as logger3 } from "@aussieljk/forkbook/internal/node-logger";
@@ -1126,7 +1126,7 @@ async function isWithinInitialSession(events) {
1126
1126
  let eventTypes = Array.isArray(events) ? events : [events], lastEvents = await getLastEvents(), lastRelevantEvent = lastEvent(lastEvents, eventTypes);
1127
1127
  if (!lastRelevantEvent)
1128
1128
  return !1;
1129
- let { getSessionId: getSessionId2 } = await import("./session-id-J4A25UQ6.js"), sessionId = await getSessionId2();
1129
+ let { getSessionId: getSessionId2 } = await import("./session-id-K7PM5ZGL.js"), sessionId = await getSessionId2();
1130
1130
  return !(lastRelevantEvent.body?.sessionId && lastRelevantEvent.body.sessionId !== sessionId);
1131
1131
  } catch {
1132
1132
  return !1;
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_b2whu6ooy6h from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_b2whu6ooy6h from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_b2whu6ooy6h from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_b2whu6ooy6h.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_b2whu6ooy6h.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_b2whu6ooy6h.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Forkbook's esbuild configuration
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_b2whu6ooy6h from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_b2whu6ooy6h from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_b2whu6ooy6h from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_b2whu6ooy6h.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_b2whu6ooy6h.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_b2whu6ooy6h.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Forkbook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  slash
14
- } from "./chunk-JED5F3H2.js";
14
+ } from "./chunk-T62LXT34.js";
15
15
 
16
16
  // src/shared/open-service/services/module-graph/types.ts
17
17
  import { posix, win32 } from "node:path";
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_b2whu6ooy6h from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_b2whu6ooy6h from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_b2whu6ooy6h from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_b2whu6ooy6h.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_b2whu6ooy6h.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_b2whu6ooy6h.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Forkbook's esbuild configuration
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_b2whu6ooy6h from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_b2whu6ooy6h from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_b2whu6ooy6h from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_b2whu6ooy6h.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_b2whu6ooy6h.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_b2whu6ooy6h.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Forkbook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  kebabCase
14
- } from "./chunk-LJTP5PAJ.js";
14
+ } from "./chunk-GXSB54NU.js";
15
15
 
16
16
  // src/shared/open-service/toolset-names.ts
17
17
  function parseToolsetMethodId(methodId) {
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_b2whu6ooy6h from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_b2whu6ooy6h from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_b2whu6ooy6h from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_b2whu6ooy6h.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_b2whu6ooy6h.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_b2whu6ooy6h.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Forkbook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  StorybookError
14
- } from "./chunk-OWT6AVWK.js";
14
+ } from "./chunk-VQ2NW4OR.js";
15
15
 
16
16
  // src/manager-errors.ts
17
17
  var StatusTypeIdMismatchError = class extends StorybookError {