@aussieljk/forkbook 0.0.1-13 → 0.0.1-15
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.
- package/dist/_browser-chunks/{Color-2EUQ6NXV.js → Color-OSKHEBLS.js} +1 -1
- package/dist/_browser-chunks/{WithTooltip-QCFTNB6P.js → WithTooltip-IPJFQHVQ.js} +1 -1
- package/dist/_browser-chunks/chunk-4ZGQ4YQ2.js +20 -0
- package/dist/_browser-chunks/{chunk-ZF5SPY56.js → chunk-74S4GA34.js} +1 -1
- package/dist/_browser-chunks/{chunk-S7N7Z5TY.js → chunk-TRXLBGLS.js} +21 -2
- package/dist/_browser-chunks/{chunk-UH3XTEOQ.js → chunk-XRILAR4S.js} +13 -13
- package/dist/_node-chunks/{attached-runtime-7IRDQUTZ.js → attached-runtime-5ABH72AY.js} +28 -28
- package/dist/_node-chunks/{builder-manager-YTALSWKQ.js → builder-manager-4T5FVGUR.js} +18 -15
- package/dist/_node-chunks/{chunk-LR4W5G37.js → chunk-2FWG2MQN.js} +6 -6
- package/dist/_node-chunks/chunk-2YVNFDPN.js +18 -0
- package/dist/_node-chunks/{chunk-TSJ3JCNN.js → chunk-33IC7FUB.js} +9 -9
- package/dist/_node-chunks/{chunk-SXX75O2D.js → chunk-46E6YIPW.js} +7 -7
- package/dist/_node-chunks/{chunk-OH5M2YER.js → chunk-4BWBFTBZ.js} +7 -7
- package/dist/_node-chunks/{chunk-ADCQYK3Z.js → chunk-4ELXERU6.js} +6 -6
- package/dist/_node-chunks/{chunk-4CZJ4SFH.js → chunk-4GGXQOD4.js} +8 -8
- package/dist/_node-chunks/{chunk-PGIDRLZ5.js → chunk-4ISTQSCO.js} +19 -7
- package/dist/_node-chunks/{chunk-OSIENBU6.js → chunk-4XKLH4I3.js} +6 -6
- package/dist/_node-chunks/{chunk-TQ5YAQ4Y.js → chunk-56L6SVSQ.js} +6 -6
- package/dist/_node-chunks/{chunk-XC7K4QEX.js → chunk-5NWCUFPU.js} +6 -6
- package/dist/_node-chunks/{chunk-DIC4T2UO.js → chunk-5Y53QRNN.js} +6 -6
- package/dist/_node-chunks/{chunk-BFQJF3ID.js → chunk-6DHYHTHM.js} +8 -8
- package/dist/_node-chunks/{chunk-LMGI47HP.js → chunk-6H3FQSQV.js} +52 -22
- package/dist/_node-chunks/{chunk-ST3KB36E.js → chunk-6WHTGFDB.js} +6 -6
- package/dist/_node-chunks/{chunk-VJLLEKWR.js → chunk-767UK7PX.js} +9 -9
- package/dist/_node-chunks/{chunk-GRN6WQC3.js → chunk-7IYNKFXW.js} +10 -10
- package/dist/_node-chunks/{chunk-6JSZY5TJ.js → chunk-7LYHZMJO.js} +6 -6
- package/dist/_node-chunks/{chunk-GQZZQB4K.js → chunk-7RE5WNOM.js} +7 -7
- package/dist/_node-chunks/{chunk-I26RGEVQ.js → chunk-A3EPCOVV.js} +7 -7
- package/dist/_node-chunks/chunk-AK4RPNTY.js +137 -0
- package/dist/_node-chunks/{chunk-MK2RPLWT.js → chunk-AUUVNECB.js} +7 -7
- package/dist/_node-chunks/{chunk-EM6AYELK.js → chunk-B6JJQARD.js} +9 -9
- package/dist/_node-chunks/chunk-BVF25DJF.js +20 -0
- package/dist/_node-chunks/{chunk-EFX2VA4Q.js → chunk-DASUWWHV.js} +6 -6
- package/dist/_node-chunks/{chunk-NDVIMCIX.js → chunk-DJPS7LWH.js} +7 -7
- package/dist/_node-chunks/{chunk-K6TEIAKH.js → chunk-DTFPS5QE.js} +7 -7
- package/dist/_node-chunks/{chunk-O46DZ2KC.js → chunk-EHPAFXPB.js} +8 -8
- package/dist/_node-chunks/{chunk-KUZSE7ZD.js → chunk-FFE4YDDE.js} +9 -9
- package/dist/_node-chunks/{chunk-4YWZLOAF.js → chunk-FJE2XPLI.js} +6 -6
- package/dist/_node-chunks/{chunk-7SPDKMDQ.js → chunk-FSSOM72N.js} +14 -14
- package/dist/_node-chunks/{chunk-BZQF5KUE.js → chunk-FVHSCRCK.js} +7 -7
- package/dist/_node-chunks/{chunk-F2AFT3P7.js → chunk-G6M5USWY.js} +8 -8
- package/dist/_node-chunks/{chunk-OVJZBW54.js → chunk-G7NZ27DS.js} +7 -7
- package/dist/_node-chunks/{chunk-E56UKDJR.js → chunk-GRJPH3NW.js} +8 -8
- package/dist/_node-chunks/{chunk-KEXQ3BON.js → chunk-H4IDYTC4.js} +7 -7
- package/dist/_node-chunks/{chunk-NRP4FGRT.js → chunk-H5AAYJZE.js} +8 -8
- package/dist/_node-chunks/{chunk-PUBZLLNL.js → chunk-HK47D3O3.js} +7 -7
- package/dist/_node-chunks/{chunk-M4MRBEJI.js → chunk-J2ZTT2OP.js} +33 -23
- package/dist/_node-chunks/{chunk-NIOVXWQZ.js → chunk-JAPFAHXG.js} +6 -6
- package/dist/_node-chunks/{chunk-3F3673RQ.js → chunk-JC4I7ZVM.js} +7 -7
- package/dist/_node-chunks/{chunk-7YLKDHLZ.js → chunk-JCQU3LND.js} +7 -7
- package/dist/_node-chunks/{chunk-33T4HNF2.js → chunk-JQKD337A.js} +6 -6
- package/dist/_node-chunks/{chunk-4IIWFG7O.js → chunk-JYQSJLIK.js} +8 -8
- package/dist/_node-chunks/{chunk-HCMHVV7N.js → chunk-KFZRX33G.js} +8 -8
- package/dist/_node-chunks/{chunk-PQXP5FZ2.js → chunk-KIAQML4H.js} +8 -8
- package/dist/_node-chunks/{chunk-Y64FM6U7.js → chunk-LHRQTTE7.js} +8 -8
- package/dist/_node-chunks/{chunk-NSNBFXVB.js → chunk-LNMVMXBN.js} +7 -7
- package/dist/_node-chunks/chunk-M6LN66WA.js +20 -0
- package/dist/_node-chunks/{chunk-SHP6447T.js → chunk-M75NG64K.js} +7 -7
- package/dist/_node-chunks/{chunk-YDM7NH4T.js → chunk-MBTS4OBP.js} +6 -6
- package/dist/_node-chunks/chunk-MBTTUFUX.js +11 -0
- package/dist/_node-chunks/{chunk-JUVUVVHI.js → chunk-MLJPAH4O.js} +6 -6
- package/dist/_node-chunks/{chunk-RMUBUNBY.js → chunk-NGFVR7UO.js} +6 -6
- package/dist/_node-chunks/{chunk-3FLRYZLJ.js → chunk-ONKMPF4O.js} +6 -6
- package/dist/_node-chunks/{chunk-B4XAZ2OC.js → chunk-OS6P62RS.js} +16 -20
- package/dist/_node-chunks/{chunk-GC7NA2Y7.js → chunk-QAQWINPN.js} +7 -7
- package/dist/_node-chunks/{chunk-IDPQ3CVN.js → chunk-QF4WUMRT.js} +10 -10
- package/dist/_node-chunks/{chunk-I36FPWMO.js → chunk-QF5RQWCH.js} +6 -6
- package/dist/_node-chunks/{chunk-BSXI35KM.js → chunk-QZR6HJVD.js} +7 -7
- package/dist/_node-chunks/chunk-R5H4DAON.js +19 -0
- package/dist/_node-chunks/{chunk-MWQIBOUB.js → chunk-RENIT4CI.js} +6 -6
- package/dist/_node-chunks/{chunk-4B52HLKK.js → chunk-SJVTZ4IO.js} +23 -23
- package/dist/_node-chunks/{chunk-ALHQVE5R.js → chunk-SL53Q3H4.js} +6 -6
- package/dist/_node-chunks/{chunk-7YQIVUEK.js → chunk-T34DVPWM.js} +6 -6
- package/dist/_node-chunks/{chunk-WWJKLYU5.js → chunk-TVDV6YAE.js} +8 -8
- package/dist/_node-chunks/{chunk-26ERGIQH.js → chunk-U6T34IDM.js} +6 -6
- package/dist/_node-chunks/{chunk-GLNHSUKT.js → chunk-UAU6RMOS.js} +19 -19
- package/dist/_node-chunks/{chunk-ZHVOUP6D.js → chunk-UMWJISED.js} +6 -6
- package/dist/_node-chunks/{chunk-LPIPPSMS.js → chunk-UO3EXKJC.js} +6 -6
- package/dist/_node-chunks/{chunk-NTUTJAD4.js → chunk-VCKRLODV.js} +8 -8
- package/dist/_node-chunks/{chunk-CESXIP3N.js → chunk-VS4AUXP2.js} +6 -6
- package/dist/_node-chunks/{chunk-PU33WSBW.js → chunk-VUHK6VXL.js} +12 -12
- package/dist/_node-chunks/{chunk-PJCSZR4T.js → chunk-VUP4EHUR.js} +8 -8
- package/dist/_node-chunks/{chunk-3L2QRDKH.js → chunk-VXDKI65K.js} +26 -26
- package/dist/_node-chunks/{chunk-DTNEHO4J.js → chunk-W32FBKF3.js} +10 -10
- package/dist/_node-chunks/{chunk-DY7F7B6V.js → chunk-W6AOA2O5.js} +7 -7
- package/dist/_node-chunks/{chunk-QWZZX2HN.js → chunk-W7352H3Q.js} +6 -6
- package/dist/_node-chunks/{chunk-S33FEPQ3.js → chunk-WMUNVUVG.js} +6 -6
- package/dist/_node-chunks/{chunk-M7BVABR2.js → chunk-WTZ24FWN.js} +8 -8
- package/dist/_node-chunks/{chunk-NAXIA2JI.js → chunk-X3BAGYZJ.js} +8 -8
- package/dist/_node-chunks/{chunk-3ZAENV5A.js → chunk-XERNMHVC.js} +6 -6
- package/dist/_node-chunks/chunk-XU6HITGZ.js +25 -0
- package/dist/_node-chunks/chunk-XV76A4CX.js +47 -0
- package/dist/_node-chunks/{chunk-CEIESR4U.js → chunk-XWHHBYMV.js} +6 -6
- package/dist/_node-chunks/{chunk-UYEX6LW6.js → chunk-Y3FJT543.js} +7 -7
- package/dist/_node-chunks/{chunk-DAEUTT3I.js → chunk-YHYL4HYS.js} +6 -6
- package/dist/_node-chunks/{chunk-DPOWAA4P.js → chunk-ZNT3JZI2.js} +7 -7
- package/dist/_node-chunks/{chunk-GIKCT5KG.js → chunk-ZPWEQZYR.js} +7 -7
- package/dist/_node-chunks/{chunk-3NH7IHUS.js → chunk-ZSTCVYOA.js} +6 -6
- package/dist/_node-chunks/dist-2H6YEUMD.js +16 -0
- package/dist/_node-chunks/dist-HL4THRGZ.js +27 -0
- package/dist/_node-chunks/{local-runtime-BKID5MBG.js → local-runtime-W3N7O65Q.js} +19 -19
- package/dist/_node-chunks/{mdx-plugin-7BOUDCZB.js → mdx-plugin-NVSAW2N3.js} +13 -13
- package/dist/_node-chunks/{monorepo-FRHSAJB7.js → monorepo-JDWM46J3.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-7BHSAJP4.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-56HEREMG.js} +11 -11
- package/dist/_node-chunks/optimized-tests-VZGTWCG4.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-6TGV6WS4.js → pattern-copy-play-ZWHYXQK5.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-5TRUTJXJ.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-EE2HT4QP.js → rehype-external-links-ME2XNDXH.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-ZKRW2V6Z.js → rehype-slug-2UJLYPC6.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-6Q7VRQC5.js → relaxed-limits-XWE3S456.js} +11 -11
- package/dist/_node-chunks/{run-EBHIAT35.js → run-5YG73LXV.js} +17 -17
- package/dist/_node-chunks/{run-6Y3ZTASZ.js → run-DNDPGCFE.js} +15 -15
- package/dist/_node-chunks/{setup-6XIF77JT.js → setup-MDNSLQIJ.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-GMQNQ4UW.js → vitest.config.4.template-TXAUMPSS.js} +7 -7
- package/dist/addon-a11y/manager.js +4 -4
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-comments/manager.js +346 -0
- package/dist/addon-comments/preset.js +52 -0
- package/dist/addon-comments/preview.js +101 -0
- package/dist/addon-docs/blocks.js +10 -10
- package/dist/addon-docs/manager.js +2 -2
- package/dist/addon-docs/preset.js +10 -10
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-mcp/preset.js +138 -38
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +13 -1
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +3 -3
- package/dist/addon-vitest/node/coverage-reporter.js +8 -8
- package/dist/addon-vitest/node/vitest.js +16 -16
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +14 -14
- package/dist/addon-vitest/vitest-plugin/global-setup.js +7 -7
- package/dist/addon-vitest/vitest-plugin/index.js +12 -12
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +56 -56
- package/dist/bin/dispatcher.js +10 -10
- package/dist/bin/loader.js +8 -8
- package/dist/builder-vite/index.js +15 -15
- package/dist/builder-vite/preset.js +13 -13
- package/dist/channels/index.d.ts +2 -2
- package/dist/channels/index.js +68 -17
- package/dist/{chunk-BCG2ui5q.d.ts → chunk-BRMwIGWt.d.ts} +14 -3
- package/dist/{chunk-LWwxlbee.d.ts → chunk-C4-cnJ1R.d.ts} +1 -1
- package/dist/{chunk-u_gGuTrz.d.ts → chunk-QtkUsZCs.d.ts} +27 -2
- package/dist/{chunk-BV_hETtB.d.ts → chunk-s5Ka0eSs.d.ts} +1 -1
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +21 -21
- package/dist/cli/tools/sdk/child-host.d.ts +1 -1
- package/dist/cli/tools/sdk/child-host.js +17 -17
- package/dist/cli/tools/sdk/index.d.ts +2 -2
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/common/index.d.ts +3 -3
- package/dist/common/index.js +34 -34
- package/dist/components/index.js +29 -29
- package/dist/core-events/index.d.ts +3 -2
- package/dist/core-events/index.js +3 -1
- package/dist/core-server/index.d.ts +23 -3
- package/dist/core-server/index.js +206 -103
- package/dist/core-server/presets/common-manager.js +18 -10
- package/dist/core-server/presets/common-override-preset.js +10 -10
- package/dist/core-server/presets/common-preset.js +38 -38
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf/index.js +1 -1
- package/dist/csf-tools/index.js +12 -12
- package/dist/manager/_manager-chunks/{globals-runtime-UFDJQlo-.js → globals-runtime-BUEqXras.js} +4 -4
- package/dist/manager/_manager-chunks/{globals-runtime-Ddp2jFET.js → globals-runtime-BsHjh8rR.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-CCZrdft6.js → globals-runtime-CQ0Et7dZ.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-C59T0h-j.js → globals-runtime-DChrMWvh.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-Cccwtspx.js → globals-runtime-DiIxNujJ.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-BgWmCsA7.js → globals-runtime-DjkYleFR.js} +163 -93
- package/dist/manager/_manager-chunks/{runtime-Db8fJ2MP.js → runtime-BMoEpoix.js} +24 -21
- package/dist/manager/_manager-chunks/{runtime-DC3oEVlM.js → runtime-BWASr_zc.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-D_FDSHFG.js → runtime-B_e-Zdqt.js} +12 -8
- package/dist/manager/_manager-chunks/{runtime-lPbyY_f5.js → runtime-CEi1oIg2.js} +405 -311
- package/dist/manager/_manager-chunks/{runtime-td6oYfU6.js → runtime-CLIeRJL-.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-AvqHE9rM.js → runtime-CWZ9qCi4.js} +54 -27
- package/dist/manager/_manager-chunks/{runtime-D8QxTQiI.js → runtime-CXOuNYw-.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-4wMiTjjZ.js → runtime-C_H6vGzi.js} +6 -5
- package/dist/manager/_manager-chunks/{runtime-DCOIOn4T.js → runtime-Dn2myy1z.js} +8 -8
- package/dist/manager/_manager-chunks/{runtime-CZtDJIYj.js → runtime-TSEq5lJd.js} +1 -1
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-errors.d.ts +1 -1
- package/dist/mcp/index.js +8 -8
- package/dist/mocking-utils/index.js +9 -9
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/preset.js +15 -11
- package/dist/nextjs-vite/vite-plugin/index.js +7 -7
- package/dist/nextjs-vite-plugin/index.js +8 -8
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/oxc-parser/index.js +10 -10
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview/_chunks/{runtime-tyJLgv6h.js → runtime-COMyPEkR.js} +97 -27
- package/dist/preview/_chunks/{runtime-CdZ1yk7m.js → runtime-CqTqsVg2.js} +2 -2
- package/dist/preview/_chunks/{runtime-U1Ycy25F.js → runtime-CrKf1OM4.js} +2 -2
- package/dist/preview/_chunks/{runtime-CsO4apr9.js → runtime-YJlypwja.js} +30 -5
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +2 -2
- package/dist/preview-api/index.js +1 -1
- package/dist/preview-errors.d.ts +1 -1
- package/dist/react/docgen/docgen-worker.js +11 -11
- package/dist/react/preset.js +13 -13
- package/dist/react-native/bin/get-stories.js +8 -8
- package/dist/react-native/metro/node.js +10 -10
- package/dist/react-native/metro/withForkbook.js +13 -13
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.d.ts +3 -1
- package/dist/react-vite/preset.js +16 -9
- package/dist/server-errors.d.ts +1 -1
- package/dist/server-errors.js +9 -9
- package/dist/shared/open-service/index.d.ts +1 -1
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/telemetry/index.js +11 -11
- package/dist/types/index.d.ts +2 -2
- package/package.json +13 -1
- package/dist/_node-chunks/chunk-5A5XOSRM.js +0 -19
- package/dist/_node-chunks/chunk-5T6Q7HT3.js +0 -11
- package/dist/_node-chunks/chunk-6DRDJF2Q.js +0 -20
- package/dist/_node-chunks/chunk-HJVZQS65.js +0 -25
- package/dist/_node-chunks/chunk-LJ5JRR5Q.js +0 -18
- package/dist/_node-chunks/chunk-MKSEM5C2.js +0 -20
- package/dist/_node-chunks/dist-CFCU4PZG.js +0 -27
- package/dist/_node-chunks/dist-PFMT5YJK.js +0 -16
- package/dist/_node-chunks/optimized-tests-F5LCOTXH.js +0 -22
- package/dist/_node-chunks/postinstallAddon-4RININ5C.js +0 -20
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -14,22 +14,22 @@ import {
|
|
|
14
14
|
FORKBOOK_CORE_RENDER_ANALYSIS_PROVIDE_KEY,
|
|
15
15
|
FORKBOOK_TEST_FEATURES_PROVIDE_KEY,
|
|
16
16
|
FORKBOOK_TEST_INITIAL_GLOBALS_PROVIDE_KEY
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-VS4AUXP2.js";
|
|
18
18
|
import {
|
|
19
19
|
withoutVitePlugins
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-UO3EXKJC.js";
|
|
21
21
|
import {
|
|
22
22
|
require_build
|
|
23
|
-
} from "../../_node-chunks/chunk-
|
|
23
|
+
} from "../../_node-chunks/chunk-4BWBFTBZ.js";
|
|
24
24
|
import {
|
|
25
25
|
require_picocolors
|
|
26
|
-
} from "../../_node-chunks/chunk-
|
|
26
|
+
} from "../../_node-chunks/chunk-M75NG64K.js";
|
|
27
27
|
import {
|
|
28
28
|
require_picomatch
|
|
29
|
-
} from "../../_node-chunks/chunk-
|
|
29
|
+
} from "../../_node-chunks/chunk-W6AOA2O5.js";
|
|
30
30
|
import {
|
|
31
31
|
__toESM
|
|
32
|
-
} from "../../_node-chunks/chunk-
|
|
32
|
+
} from "../../_node-chunks/chunk-7LYHZMJO.js";
|
|
33
33
|
|
|
34
34
|
// src/addon-vitest/vitest-plugin/index.ts
|
|
35
35
|
var import_picomatch = __toESM(require_picomatch(), 1), import_picocolors = __toESM(require_picocolors(), 1), import_sirv = __toESM(require_build(), 1);
|
package/dist/babel/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -28,11 +28,11 @@ import {
|
|
|
28
28
|
traverse,
|
|
29
29
|
types,
|
|
30
30
|
unwrapTSExpression
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
32
|
-
import "../_node-chunks/chunk-
|
|
33
|
-
import "../_node-chunks/chunk-
|
|
34
|
-
import "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-33IC7FUB.js";
|
|
32
|
+
import "../_node-chunks/chunk-VCKRLODV.js";
|
|
33
|
+
import "../_node-chunks/chunk-JC4I7ZVM.js";
|
|
34
|
+
import "../_node-chunks/chunk-M75NG64K.js";
|
|
35
|
+
import "../_node-chunks/chunk-7LYHZMJO.js";
|
|
36
36
|
export {
|
|
37
37
|
babelParse,
|
|
38
38
|
babelParseExpression,
|
package/dist/bin/core.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,96 +12,96 @@ var require = CJS_COMPAT_NODE_MODULE_sfnpbdazcnb.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
readRegistry,
|
|
14
14
|
selectInstances
|
|
15
|
-
} from "../_node-chunks/chunk-
|
|
15
|
+
} from "../_node-chunks/chunk-TVDV6YAE.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveStorybookConfigDir
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
18
|
+
} from "../_node-chunks/chunk-NGFVR7UO.js";
|
|
19
19
|
import {
|
|
20
20
|
instructions
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-LHRQTTE7.js";
|
|
22
22
|
import {
|
|
23
23
|
isReactProject
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
25
|
-
import "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-VUP4EHUR.js";
|
|
25
|
+
import "../_node-chunks/chunk-ONKMPF4O.js";
|
|
26
|
+
import "../_node-chunks/chunk-2FWG2MQN.js";
|
|
27
|
+
import "../_node-chunks/chunk-MBTTUFUX.js";
|
|
28
28
|
import {
|
|
29
29
|
createTools,
|
|
30
30
|
reportToolsCommandEvent,
|
|
31
31
|
sanitizeNamePart,
|
|
32
32
|
toCatalogEntry
|
|
33
|
-
} from "../_node-chunks/chunk-
|
|
33
|
+
} from "../_node-chunks/chunk-FSSOM72N.js";
|
|
34
34
|
import {
|
|
35
35
|
formatMultiInstanceNotice
|
|
36
|
-
} from "../_node-chunks/chunk-
|
|
36
|
+
} from "../_node-chunks/chunk-UMWJISED.js";
|
|
37
37
|
import {
|
|
38
38
|
ToolsRuntimeError,
|
|
39
39
|
attachGateReasonFromError,
|
|
40
40
|
isAttachGateError
|
|
41
|
-
} from "../_node-chunks/chunk-
|
|
41
|
+
} from "../_node-chunks/chunk-46E6YIPW.js";
|
|
42
42
|
import {
|
|
43
43
|
detectLanguage,
|
|
44
44
|
getStorybookData,
|
|
45
45
|
globalSettings
|
|
46
|
-
} from "../_node-chunks/chunk-
|
|
46
|
+
} from "../_node-chunks/chunk-DTFPS5QE.js";
|
|
47
47
|
import {
|
|
48
48
|
isClaudePreviewLaunch,
|
|
49
49
|
resolveSkillInputs
|
|
50
|
-
} from "../_node-chunks/chunk-
|
|
51
|
-
import "../_node-chunks/chunk-
|
|
50
|
+
} from "../_node-chunks/chunk-W32FBKF3.js";
|
|
51
|
+
import "../_node-chunks/chunk-R5H4DAON.js";
|
|
52
52
|
import {
|
|
53
53
|
frameworkToRendererMap
|
|
54
|
-
} from "../_node-chunks/chunk-
|
|
54
|
+
} from "../_node-chunks/chunk-4ELXERU6.js";
|
|
55
55
|
import {
|
|
56
56
|
version
|
|
57
|
-
} from "../_node-chunks/chunk-
|
|
57
|
+
} from "../_node-chunks/chunk-2YVNFDPN.js";
|
|
58
58
|
import {
|
|
59
59
|
detectAgent
|
|
60
|
-
} from "../_node-chunks/chunk-
|
|
61
|
-
import "../_node-chunks/chunk-
|
|
62
|
-
import "../_node-chunks/chunk-
|
|
63
|
-
import "../_node-chunks/chunk-
|
|
64
|
-
import "../_node-chunks/chunk-
|
|
65
|
-
import "../_node-chunks/chunk-
|
|
66
|
-
import "../_node-chunks/chunk-
|
|
60
|
+
} from "../_node-chunks/chunk-XU6HITGZ.js";
|
|
61
|
+
import "../_node-chunks/chunk-JAPFAHXG.js";
|
|
62
|
+
import "../_node-chunks/chunk-6DHYHTHM.js";
|
|
63
|
+
import "../_node-chunks/chunk-UAU6RMOS.js";
|
|
64
|
+
import "../_node-chunks/chunk-FJE2XPLI.js";
|
|
65
|
+
import "../_node-chunks/chunk-X3BAGYZJ.js";
|
|
66
|
+
import "../_node-chunks/chunk-XWHHBYMV.js";
|
|
67
67
|
import {
|
|
68
68
|
leven
|
|
69
|
-
} from "../_node-chunks/chunk-
|
|
69
|
+
} from "../_node-chunks/chunk-U6T34IDM.js";
|
|
70
70
|
import {
|
|
71
71
|
getRegisteredToolsets
|
|
72
|
-
} from "../_node-chunks/chunk-
|
|
73
|
-
import "../_node-chunks/chunk-
|
|
72
|
+
} from "../_node-chunks/chunk-EHPAFXPB.js";
|
|
73
|
+
import "../_node-chunks/chunk-QZR6HJVD.js";
|
|
74
74
|
import {
|
|
75
75
|
getToolName,
|
|
76
76
|
parseToolsetMethodId,
|
|
77
77
|
toCliMethodName
|
|
78
|
-
} from "../_node-chunks/chunk-
|
|
78
|
+
} from "../_node-chunks/chunk-DJPS7LWH.js";
|
|
79
79
|
import {
|
|
80
80
|
escapeRegExp
|
|
81
|
-
} from "../_node-chunks/chunk-
|
|
81
|
+
} from "../_node-chunks/chunk-BVF25DJF.js";
|
|
82
82
|
import {
|
|
83
83
|
getService
|
|
84
|
-
} from "../_node-chunks/chunk-
|
|
85
|
-
import "../_node-chunks/chunk-
|
|
86
|
-
import "../_node-chunks/chunk-
|
|
87
|
-
import "../_node-chunks/chunk-
|
|
88
|
-
import "../_node-chunks/chunk-
|
|
89
|
-
import "../_node-chunks/chunk-
|
|
90
|
-
import "../_node-chunks/chunk-
|
|
91
|
-
import "../_node-chunks/chunk-
|
|
92
|
-
import "../_node-chunks/chunk-
|
|
93
|
-
import "../_node-chunks/chunk-
|
|
94
|
-
import "../_node-chunks/chunk-
|
|
95
|
-
import "../_node-chunks/chunk-
|
|
84
|
+
} from "../_node-chunks/chunk-7IYNKFXW.js";
|
|
85
|
+
import "../_node-chunks/chunk-767UK7PX.js";
|
|
86
|
+
import "../_node-chunks/chunk-AUUVNECB.js";
|
|
87
|
+
import "../_node-chunks/chunk-MLJPAH4O.js";
|
|
88
|
+
import "../_node-chunks/chunk-5NWCUFPU.js";
|
|
89
|
+
import "../_node-chunks/chunk-T34DVPWM.js";
|
|
90
|
+
import "../_node-chunks/chunk-RENIT4CI.js";
|
|
91
|
+
import "../_node-chunks/chunk-4XKLH4I3.js";
|
|
92
|
+
import "../_node-chunks/chunk-QF5RQWCH.js";
|
|
93
|
+
import "../_node-chunks/chunk-Y3FJT543.js";
|
|
94
|
+
import "../_node-chunks/chunk-JQKD337A.js";
|
|
95
|
+
import "../_node-chunks/chunk-G6M5USWY.js";
|
|
96
96
|
import {
|
|
97
97
|
require_picocolors
|
|
98
|
-
} from "../_node-chunks/chunk-
|
|
99
|
-
import "../_node-chunks/chunk-
|
|
100
|
-
import "../_node-chunks/chunk-
|
|
101
|
-
import "../_node-chunks/chunk-
|
|
98
|
+
} from "../_node-chunks/chunk-M75NG64K.js";
|
|
99
|
+
import "../_node-chunks/chunk-M6LN66WA.js";
|
|
100
|
+
import "../_node-chunks/chunk-KFZRX33G.js";
|
|
101
|
+
import "../_node-chunks/chunk-W6AOA2O5.js";
|
|
102
102
|
import {
|
|
103
103
|
__toESM
|
|
104
|
-
} from "../_node-chunks/chunk-
|
|
104
|
+
} from "../_node-chunks/chunk-7LYHZMJO.js";
|
|
105
105
|
|
|
106
106
|
// src/bin/core.ts
|
|
107
107
|
import {
|
|
@@ -146,12 +146,12 @@ function getProjectOverview(projectInfo) {
|
|
|
146
146
|
var DEFAULT_PROMPT_NAME = "optimized-tests", CURRENTLY_USED_PROMPT = {
|
|
147
147
|
[DEFAULT_PROMPT_NAME]: instructions
|
|
148
148
|
}, FORMERLY_USED_PROMPTS = {
|
|
149
|
-
monorepo: async () => (await import("../_node-chunks/monorepo-
|
|
150
|
-
"optimized-tests": async () => (await import("../_node-chunks/optimized-tests-
|
|
151
|
-
"relaxed-limits": async () => (await import("../_node-chunks/relaxed-limits-
|
|
152
|
-
setup: async () => (await import("../_node-chunks/setup-
|
|
153
|
-
"pattern-copy-play": async () => (await import("../_node-chunks/pattern-copy-play-
|
|
154
|
-
"monorepo-optimized-tests-relaxed-limits-no-story-deletion": async () => (await import("../_node-chunks/monorepo-optimized-tests-relaxed-limits-no-story-deletion-
|
|
149
|
+
monorepo: async () => (await import("../_node-chunks/monorepo-JDWM46J3.js")).instructions,
|
|
150
|
+
"optimized-tests": async () => (await import("../_node-chunks/optimized-tests-VZGTWCG4.js")).instructions,
|
|
151
|
+
"relaxed-limits": async () => (await import("../_node-chunks/relaxed-limits-XWE3S456.js")).instructions,
|
|
152
|
+
setup: async () => (await import("../_node-chunks/setup-MDNSLQIJ.js")).instructions,
|
|
153
|
+
"pattern-copy-play": async () => (await import("../_node-chunks/pattern-copy-play-ZWHYXQK5.js")).instructions,
|
|
154
|
+
"monorepo-optimized-tests-relaxed-limits-no-story-deletion": async () => (await import("../_node-chunks/monorepo-optimized-tests-relaxed-limits-no-story-deletion-56HEREMG.js")).instructions
|
|
155
155
|
}, PROMPT_NAMES = [
|
|
156
156
|
...Object.keys(CURRENTLY_USED_PROMPT),
|
|
157
157
|
...Object.keys(FORMERLY_USED_PROMPTS)
|
package/dist/bin/dispatcher.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.createRequire(import.meta.url);
|
|
9
9
|
|
|
10
10
|
// ------------------------------------------------------------
|
|
11
11
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -13,12 +13,12 @@ var require = CJS_COMPAT_NODE_MODULE_sfnpbdazcnb.createRequire(import.meta.url);
|
|
|
13
13
|
import {
|
|
14
14
|
MIN_SUPPORTED_NODE_DESCRIPTION,
|
|
15
15
|
isNodeVersionSupported
|
|
16
|
-
} from "../_node-chunks/chunk-
|
|
16
|
+
} from "../_node-chunks/chunk-YHYL4HYS.js";
|
|
17
17
|
import {
|
|
18
18
|
resolvePackageDir
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
20
|
-
import "../_node-chunks/chunk-
|
|
21
|
-
import "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-Y3FJT543.js";
|
|
20
|
+
import "../_node-chunks/chunk-JQKD337A.js";
|
|
21
|
+
import "../_node-chunks/chunk-7LYHZMJO.js";
|
|
22
22
|
|
|
23
23
|
// src/bin/dispatcher.ts
|
|
24
24
|
import Module from "node:module";
|
package/dist/bin/loader.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.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
|
NODE_TARGET
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
15
|
-
import "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-SL53Q3H4.js";
|
|
15
|
+
import "../_node-chunks/chunk-7LYHZMJO.js";
|
|
16
16
|
|
|
17
17
|
// src/bin/loader.ts
|
|
18
18
|
import { readFileSync, readdirSync } from "node:fs";
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.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
|
withoutVitePlugins
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-UO3EXKJC.js";
|
|
15
15
|
import {
|
|
16
16
|
commonConfig
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
18
|
-
import "../_node-chunks/chunk-
|
|
19
|
-
import "../_node-chunks/chunk-
|
|
20
|
-
import "../_node-chunks/chunk-
|
|
21
|
-
import "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-J2ZTT2OP.js";
|
|
18
|
+
import "../_node-chunks/chunk-FVHSCRCK.js";
|
|
19
|
+
import "../_node-chunks/chunk-4XKLH4I3.js";
|
|
20
|
+
import "../_node-chunks/chunk-Y3FJT543.js";
|
|
21
|
+
import "../_node-chunks/chunk-JQKD337A.js";
|
|
22
22
|
import {
|
|
23
23
|
require_picocolors
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
25
|
-
import "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-M75NG64K.js";
|
|
25
|
+
import "../_node-chunks/chunk-M6LN66WA.js";
|
|
26
26
|
import {
|
|
27
27
|
__toESM
|
|
28
|
-
} from "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-7LYHZMJO.js";
|
|
29
29
|
|
|
30
30
|
// src/builder-vite/index.ts
|
|
31
31
|
import { readFile } from "node:fs/promises";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wr9w1e50s8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wr9w1e50s8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wr9w1e50s8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wr9w1e50s8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wr9w1e50s8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wr9w1e50s8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
optimizeViteDeps,
|
|
14
14
|
staticDirs,
|
|
15
15
|
viteCorePlugins
|
|
16
|
-
} from "../_node-chunks/chunk-
|
|
17
|
-
import "../_node-chunks/chunk-
|
|
18
|
-
import "../_node-chunks/chunk-
|
|
19
|
-
import "../_node-chunks/chunk-
|
|
20
|
-
import "../_node-chunks/chunk-
|
|
21
|
-
import "../_node-chunks/chunk-
|
|
22
|
-
import "../_node-chunks/chunk-
|
|
16
|
+
} from "../_node-chunks/chunk-J2ZTT2OP.js";
|
|
17
|
+
import "../_node-chunks/chunk-FVHSCRCK.js";
|
|
18
|
+
import "../_node-chunks/chunk-4XKLH4I3.js";
|
|
19
|
+
import "../_node-chunks/chunk-Y3FJT543.js";
|
|
20
|
+
import "../_node-chunks/chunk-JQKD337A.js";
|
|
21
|
+
import "../_node-chunks/chunk-M6LN66WA.js";
|
|
22
|
+
import "../_node-chunks/chunk-7LYHZMJO.js";
|
|
23
23
|
export {
|
|
24
24
|
optimizeViteDeps,
|
|
25
25
|
staticDirs,
|
package/dist/channels/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
export { Channel, Channel as default, type ChannelEvent, type ChannelHandler, type ChannelLike, type ChannelTransport, type ChannelWebSocket, HEARTBEAT_INTERVAL, type Listener, PostMessageTransport, SERVER_CHANNEL_PATH, WebsocketTransport, clearChannel, createBrowserChannel, ensureChannel, getChannel, installNoopChannel, requireChannel, setChannel };
|
|
1
|
+
import { _ as ChannelHandler, a as HEARTBEAT_INTERVAL, b as Listener, c as PostMessageTransport, d as getChannel, f as installNoopChannel, g as ChannelEvent, h as Channel, i as ChannelWebSocket, l as clearChannel, m as setChannel, n as fetchCurrentWsToken, o as SERVER_CHANNEL_PATH, p as requireChannel, r as parseWsToken, s as WebsocketTransport, t as createBrowserChannel, u as ensureChannel, v as ChannelLike, y as ChannelTransport } from "../chunk-QtkUsZCs.js";
|
|
2
|
+
export { Channel, Channel as default, type ChannelEvent, type ChannelHandler, type ChannelLike, type ChannelTransport, type ChannelWebSocket, HEARTBEAT_INTERVAL, type Listener, PostMessageTransport, SERVER_CHANNEL_PATH, WebsocketTransport, clearChannel, createBrowserChannel, ensureChannel, fetchCurrentWsToken, getChannel, installNoopChannel, parseWsToken, requireChannel, setChannel };
|
package/dist/channels/index.js
CHANGED
|
@@ -274,29 +274,59 @@ var { document: document2, location } = globalThis, KEY = "storybook-channel", C
|
|
|
274
274
|
|
|
275
275
|
// src/channels/websocket/index.ts
|
|
276
276
|
import * as EVENTS2 from "@aussieljk/forkbook/internal/core-events";
|
|
277
|
-
var HEARTBEAT_INTERVAL = 15e3, SERVER_CHANNEL_PATH = "/storybook-server-channel", CHANNEL_OPTIONS2 = globalThis.CHANNEL_OPTIONS || {}, WebsocketTransport = class {
|
|
278
|
-
constructor({ url, onError, page, createSocket }) {
|
|
277
|
+
var HEARTBEAT_INTERVAL = 15e3, SERVER_CHANNEL_PATH = "/storybook-server-channel", RECONNECT_INITIAL_DELAY = 500, RECONNECT_MAX_DELAY = 5e3, MAX_BUFFER = 500, CHANNEL_OPTIONS2 = globalThis.CHANNEL_OPTIONS || {}, WebsocketTransport = class {
|
|
278
|
+
constructor({ url, onError, page, createSocket, reconnect }) {
|
|
279
279
|
this.buffer = [];
|
|
280
280
|
this.isReady = !1;
|
|
281
281
|
this.isClosed = !1;
|
|
282
|
-
this.
|
|
283
|
-
|
|
284
|
-
|
|
282
|
+
this.hasDisconnected = !1;
|
|
283
|
+
this.attempt = 0;
|
|
284
|
+
this.url = url, this.page = page || "preview", this.onError = onError, this.createSocket = createSocket ?? ((socketUrl) => new WebSocket(socketUrl)), this.reconnect = reconnect === !0 ? {} : reconnect || void 0, this.socket = this.connect(url);
|
|
285
|
+
}
|
|
286
|
+
connect(url) {
|
|
287
|
+
let socket = this.createSocket(url);
|
|
288
|
+
return socket.onopen = () => {
|
|
289
|
+
this.isReady = !0, this.attempt = 0, this.flush(), this.hasDisconnected && (this.hasDisconnected = !1, this.handler?.({ type: EVENTS2.CHANNEL_WS_RECONNECT, args: [], from: this.page }));
|
|
290
|
+
}, socket.onmessage = ({ data }) => {
|
|
285
291
|
let event = typeof data == "string" && isJSON(data) ? parse(data) : data;
|
|
286
292
|
if (invariant(this.handler, "WebsocketTransport handler should be set"), event.type === "ping") {
|
|
287
293
|
this.send({ type: "pong" });
|
|
288
294
|
return;
|
|
289
295
|
}
|
|
290
296
|
this.handler(event);
|
|
291
|
-
},
|
|
292
|
-
onError && onError(e);
|
|
293
|
-
},
|
|
294
|
-
|
|
297
|
+
}, socket.onerror = (e) => {
|
|
298
|
+
this.onError && this.onError(e);
|
|
299
|
+
}, socket.onclose = (ev) => {
|
|
300
|
+
let wasOpen = this.isReady;
|
|
301
|
+
if (this.isReady = !1, !this.reconnect) {
|
|
302
|
+
invariant(this.handler, "WebsocketTransport handler should be set"), this.handler({
|
|
303
|
+
type: EVENTS2.CHANNEL_WS_DISCONNECT,
|
|
304
|
+
args: [{ reason: ev.reason, code: ev.code }],
|
|
305
|
+
from: this.page
|
|
306
|
+
}), this.isClosed = !0;
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
(wasOpen || !this.hasDisconnected) && (this.hasDisconnected = !0, this.handler?.({
|
|
295
310
|
type: EVENTS2.CHANNEL_WS_DISCONNECT,
|
|
296
|
-
args: [{ reason: ev.reason, code: ev.code }],
|
|
297
|
-
from: page
|
|
298
|
-
}), this.
|
|
299
|
-
};
|
|
311
|
+
args: [{ reason: ev.reason, code: ev.code, reconnecting: !0 }],
|
|
312
|
+
from: this.page
|
|
313
|
+
})), this.scheduleReconnect();
|
|
314
|
+
}, socket;
|
|
315
|
+
}
|
|
316
|
+
scheduleReconnect() {
|
|
317
|
+
let {
|
|
318
|
+
initialDelay = RECONNECT_INITIAL_DELAY,
|
|
319
|
+
maxDelay = RECONNECT_MAX_DELAY,
|
|
320
|
+
getUrl
|
|
321
|
+
} = this.reconnect ?? {}, delay = Math.min(initialDelay * 2 ** this.attempt, maxDelay);
|
|
322
|
+
this.attempt += 1, setTimeout(async () => {
|
|
323
|
+
let nextUrl = this.url;
|
|
324
|
+
try {
|
|
325
|
+
nextUrl = getUrl ? await getUrl() : this.url;
|
|
326
|
+
} catch {
|
|
327
|
+
}
|
|
328
|
+
this.socket = this.connect(nextUrl);
|
|
329
|
+
}, delay);
|
|
300
330
|
}
|
|
301
331
|
setHandler(handler) {
|
|
302
332
|
this.handler = handler;
|
|
@@ -305,7 +335,7 @@ var HEARTBEAT_INTERVAL = 15e3, SERVER_CHANNEL_PATH = "/storybook-server-channel"
|
|
|
305
335
|
this.isClosed || (this.isReady ? this.sendNow(event) : this.sendLater(event));
|
|
306
336
|
}
|
|
307
337
|
sendLater(event) {
|
|
308
|
-
this.buffer.push(event);
|
|
338
|
+
event.type !== "pong" && (this.buffer.push(event), this.buffer.length > MAX_BUFFER && this.buffer.shift());
|
|
309
339
|
}
|
|
310
340
|
sendNow(event) {
|
|
311
341
|
let data = stringify(event, {
|
|
@@ -325,9 +355,19 @@ var channels_default = Channel;
|
|
|
325
355
|
function createBrowserChannel({ page, extraTransports = [] }) {
|
|
326
356
|
let transports = [new PostMessageTransport({ page }), ...extraTransports];
|
|
327
357
|
if (globalThis.CONFIG_TYPE === "DEVELOPMENT") {
|
|
328
|
-
let protocol = window.location.protocol === "http:" ? "ws" : "wss", { hostname, port } = window.location,
|
|
329
|
-
transports.push(
|
|
330
|
-
|
|
358
|
+
let protocol = window.location.protocol === "http:" ? "ws" : "wss", { hostname, port } = window.location, urlFor = (token) => `${protocol}://${hostname}:${port}${SERVER_CHANNEL_PATH}?token=${token}&page=${page}`, { wsToken } = globalThis.CHANNEL_OPTIONS || {};
|
|
359
|
+
transports.push(
|
|
360
|
+
new WebsocketTransport({
|
|
361
|
+
url: urlFor(wsToken),
|
|
362
|
+
onError: () => {
|
|
363
|
+
},
|
|
364
|
+
page,
|
|
365
|
+
reconnect: {
|
|
366
|
+
// A restarted dev server makes a new token. Read it from the page HTML again.
|
|
367
|
+
getUrl: async () => urlFor(await fetchCurrentWsToken() ?? wsToken)
|
|
368
|
+
}
|
|
369
|
+
})
|
|
370
|
+
);
|
|
331
371
|
}
|
|
332
372
|
let channel = new Channel({ transports });
|
|
333
373
|
return UniversalStore.__prepare(
|
|
@@ -335,6 +375,15 @@ function createBrowserChannel({ page, extraTransports = [] }) {
|
|
|
335
375
|
page === "manager" ? UniversalStore.Environment.MANAGER : UniversalStore.Environment.PREVIEW
|
|
336
376
|
), channel;
|
|
337
377
|
}
|
|
378
|
+
async function fetchCurrentWsToken() {
|
|
379
|
+
try {
|
|
380
|
+
let response = await fetch(window.location.href, { cache: "no-store" });
|
|
381
|
+
return response.ok ? parseWsToken(await response.text()) : void 0;
|
|
382
|
+
} catch {
|
|
383
|
+
return;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
var parseWsToken = (html) => /"wsToken"\s*:\s*"([^"]+)"/.exec(html)?.[1];
|
|
338
387
|
export {
|
|
339
388
|
Channel,
|
|
340
389
|
HEARTBEAT_INTERVAL,
|
|
@@ -345,8 +394,10 @@ export {
|
|
|
345
394
|
createBrowserChannel,
|
|
346
395
|
channels_default as default,
|
|
347
396
|
ensureChannel,
|
|
397
|
+
fetchCurrentWsToken,
|
|
348
398
|
getChannel,
|
|
349
399
|
installNoopChannel,
|
|
400
|
+
parseWsToken,
|
|
350
401
|
requireChannel,
|
|
351
402
|
setChannel
|
|
352
403
|
};
|