@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,20 +1,20 @@
|
|
|
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
|
oxcParse
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
15
|
-
import "../_node-chunks/chunk-
|
|
16
|
-
import "../_node-chunks/chunk-
|
|
17
|
-
import "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-ZPWEQZYR.js";
|
|
15
|
+
import "../_node-chunks/chunk-G6M5USWY.js";
|
|
16
|
+
import "../_node-chunks/chunk-M75NG64K.js";
|
|
17
|
+
import "../_node-chunks/chunk-7LYHZMJO.js";
|
|
18
18
|
|
|
19
19
|
// src/oxc-parser/worker.ts
|
|
20
20
|
import { parentPort } from "node:worker_threads";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as __esmMin, r as __exportAll } from "./runtime-BdGkqNEt.js";
|
|
2
2
|
import { J as isEqual, at as parse, ct as init_esm, it as isJSON, nt as invariant, ot as stringify, q as init_isEqual, rt as init_dist, st as dedent, tt as init_tiny_invariant } from "./runtime-Bvh_rfnQ.js";
|
|
3
|
-
import { B as matchesHostname, C as init_test, E as onMockCall, G as init_universal_store, I as formatIssues, K as StorybookError, R as LOOPBACK_HOSTNAMES, U as init_global, V as global, W as UniversalStore, _ as preview_default$8, g as init_preview$8, h as preview_default$6, m as init_preview$6, q as init_storybook_error, v as init_preview$7, y as preview_default$7, z as init_local_hosts } from "./runtime-
|
|
4
|
-
import { c as useMemo, d as ImplicitActionsDuringRendering, f as InvalidChannelPageError, l as addons$1, p as init_preview_errors, r as init_preview_api$1, s as useEffect } from "./runtime-
|
|
5
|
-
import { o as init_preview$9, s as preview_default$9 } from "./runtime-
|
|
3
|
+
import { B as matchesHostname, C as init_test, E as onMockCall, G as init_universal_store, I as formatIssues, K as StorybookError, R as LOOPBACK_HOSTNAMES, U as init_global, V as global, W as UniversalStore, _ as preview_default$8, g as init_preview$8, h as preview_default$6, m as init_preview$6, q as init_storybook_error, v as init_preview$7, y as preview_default$7, z as init_local_hosts } from "./runtime-CrKf1OM4.js";
|
|
4
|
+
import { c as useMemo, d as ImplicitActionsDuringRendering, f as InvalidChannelPageError, l as addons$1, p as init_preview_errors, r as init_preview_api$1, s as useEffect } from "./runtime-YJlypwja.js";
|
|
5
|
+
import { o as init_preview$9, s as preview_default$9 } from "./runtime-CqTqsVg2.js";
|
|
6
6
|
import { h as processError, m as init_error } from "./runtime-D2MPrqbU.js";
|
|
7
7
|
//#region src/manager-errors.ts
|
|
8
8
|
var UniversalStoreFollowerTimeoutError, OpenServiceStaticSnapshotLoadError, OpenServiceStaticSnapshotInvalidError;
|
|
@@ -240,6 +240,7 @@ var core_events_exports = /* @__PURE__ */ __exportAll({
|
|
|
240
240
|
ARGTYPES_INFO_RESPONSE: () => ARGTYPES_INFO_RESPONSE,
|
|
241
241
|
CHANNEL_CREATED: () => CHANNEL_CREATED,
|
|
242
242
|
CHANNEL_WS_DISCONNECT: () => CHANNEL_WS_DISCONNECT,
|
|
243
|
+
CHANNEL_WS_RECONNECT: () => CHANNEL_WS_RECONNECT,
|
|
243
244
|
CONFIG_ERROR: () => CONFIG_ERROR,
|
|
244
245
|
CURRENT_STORY_WAS_SET: () => CURRENT_STORY_WAS_SET,
|
|
245
246
|
DOCS_PAGE_IN_VIEW: () => DOCS_PAGE_IN_VIEW,
|
|
@@ -300,11 +301,12 @@ var core_events_exports = /* @__PURE__ */ __exportAll({
|
|
|
300
301
|
UPDATE_STORY_ARGS: () => UPDATE_STORY_ARGS,
|
|
301
302
|
default: () => events
|
|
302
303
|
});
|
|
303
|
-
var events, CHANNEL_WS_DISCONNECT, CHANNEL_CREATED, CONFIG_ERROR, CURRENT_STORY_WAS_SET, DOCS_PREPARED, DOCS_RENDERED, DOCS_PAGE_IN_VIEW, FORCE_RE_RENDER, FORCE_REMOUNT, GLOBALS_UPDATED, NAVIGATE_URL, PLAY_FUNCTION_THREW_EXCEPTION, UNHANDLED_ERRORS_WHILE_PLAYING, PRELOAD_ENTRIES, PREVIEW_INITIALIZED, PREVIEW_BUILDER_PROGRESS, PREVIEW_KEYDOWN, REGISTER_SUBSCRIPTION, RESET_STORY_ARGS, SELECT_STORY, SET_CONFIG, SET_CURRENT_STORY, SET_FILTER, SET_GLOBALS, SET_INDEX, SET_STORIES, SHARED_STATE_CHANGED, SHARED_STATE_SET, STORIES_COLLAPSE_ALL, STORIES_EXPAND_ALL, STORY_ARGS_UPDATED, STORY_CHANGED, STORY_ERRORED, STORY_INDEX_INVALIDATED, STORY_MISSING, STORY_PREPARED, STORY_RENDER_PHASE_CHANGED, STORY_RENDERED, STORY_FINISHED, STORY_SPECIFIED, STORY_THREW_EXCEPTION, STORY_UNCHANGED, STORY_HOT_UPDATED, UPDATE_GLOBALS, UPDATE_QUERY_PARAMS, UPDATE_STORY_ARGS, REQUEST_WHATS_NEW_DATA, RESULT_WHATS_NEW_DATA, SET_WHATS_NEW_CACHE, TOGGLE_WHATS_NEW_NOTIFICATIONS, TELEMETRY_ERROR, SAVE_STORY_REQUEST, SAVE_STORY_RESPONSE, ARGTYPES_INFO_REQUEST, ARGTYPES_INFO_RESPONSE, GHOST_STORIES_REQUEST, GHOST_STORIES_RESPONSE, AI_SETUP_ANALYTICS_RESPONSE, AI_SETUP_ANALYTICS_REQUEST, OPEN_IN_EDITOR_REQUEST, OPEN_IN_EDITOR_RESPONSE, MANAGER_INERT_ATTRIBUTE_CHANGED, SHARE_ISOLATE_MODE, AI_PROMPT_NUDGE, SIDEBAR_FILTER_CHANGED;
|
|
304
|
+
var events, CHANNEL_WS_DISCONNECT, CHANNEL_WS_RECONNECT, CHANNEL_CREATED, CONFIG_ERROR, CURRENT_STORY_WAS_SET, DOCS_PREPARED, DOCS_RENDERED, DOCS_PAGE_IN_VIEW, FORCE_RE_RENDER, FORCE_REMOUNT, GLOBALS_UPDATED, NAVIGATE_URL, PLAY_FUNCTION_THREW_EXCEPTION, UNHANDLED_ERRORS_WHILE_PLAYING, PRELOAD_ENTRIES, PREVIEW_INITIALIZED, PREVIEW_BUILDER_PROGRESS, PREVIEW_KEYDOWN, REGISTER_SUBSCRIPTION, RESET_STORY_ARGS, SELECT_STORY, SET_CONFIG, SET_CURRENT_STORY, SET_FILTER, SET_GLOBALS, SET_INDEX, SET_STORIES, SHARED_STATE_CHANGED, SHARED_STATE_SET, STORIES_COLLAPSE_ALL, STORIES_EXPAND_ALL, STORY_ARGS_UPDATED, STORY_CHANGED, STORY_ERRORED, STORY_INDEX_INVALIDATED, STORY_MISSING, STORY_PREPARED, STORY_RENDER_PHASE_CHANGED, STORY_RENDERED, STORY_FINISHED, STORY_SPECIFIED, STORY_THREW_EXCEPTION, STORY_UNCHANGED, STORY_HOT_UPDATED, UPDATE_GLOBALS, UPDATE_QUERY_PARAMS, UPDATE_STORY_ARGS, REQUEST_WHATS_NEW_DATA, RESULT_WHATS_NEW_DATA, SET_WHATS_NEW_CACHE, TOGGLE_WHATS_NEW_NOTIFICATIONS, TELEMETRY_ERROR, SAVE_STORY_REQUEST, SAVE_STORY_RESPONSE, ARGTYPES_INFO_REQUEST, ARGTYPES_INFO_RESPONSE, GHOST_STORIES_REQUEST, GHOST_STORIES_RESPONSE, AI_SETUP_ANALYTICS_RESPONSE, AI_SETUP_ANALYTICS_REQUEST, OPEN_IN_EDITOR_REQUEST, OPEN_IN_EDITOR_RESPONSE, MANAGER_INERT_ATTRIBUTE_CHANGED, SHARE_ISOLATE_MODE, AI_PROMPT_NUDGE, SIDEBAR_FILTER_CHANGED;
|
|
304
305
|
function init_core_events() {
|
|
305
306
|
return (init_core_events = __esmMin((() => {
|
|
306
307
|
events = /* @__PURE__ */ function(events) {
|
|
307
308
|
events["CHANNEL_WS_DISCONNECT"] = "channelWSDisconnect";
|
|
309
|
+
events["CHANNEL_WS_RECONNECT"] = "channelWSReconnect";
|
|
308
310
|
events["CHANNEL_CREATED"] = "channelCreated";
|
|
309
311
|
events["CONFIG_ERROR"] = "configError";
|
|
310
312
|
events["STORY_INDEX_INVALIDATED"] = "storyIndexInvalidated";
|
|
@@ -371,7 +373,7 @@ function init_core_events() {
|
|
|
371
373
|
events["SIDEBAR_FILTER_CHANGED"] = "sidebarFilterChanged";
|
|
372
374
|
return events;
|
|
373
375
|
}(events || {});
|
|
374
|
-
({CHANNEL_WS_DISCONNECT, CHANNEL_CREATED, CONFIG_ERROR, CURRENT_STORY_WAS_SET, DOCS_PREPARED, DOCS_RENDERED, DOCS_PAGE_IN_VIEW, FORCE_RE_RENDER, FORCE_REMOUNT, GLOBALS_UPDATED, NAVIGATE_URL, PLAY_FUNCTION_THREW_EXCEPTION, UNHANDLED_ERRORS_WHILE_PLAYING, PRELOAD_ENTRIES, PREVIEW_INITIALIZED, PREVIEW_BUILDER_PROGRESS, PREVIEW_KEYDOWN, REGISTER_SUBSCRIPTION, RESET_STORY_ARGS, SELECT_STORY, SET_CONFIG, SET_CURRENT_STORY, SET_FILTER, SET_GLOBALS, SET_INDEX, SET_STORIES, SHARED_STATE_CHANGED, SHARED_STATE_SET, STORIES_COLLAPSE_ALL, STORIES_EXPAND_ALL, STORY_ARGS_UPDATED, STORY_CHANGED, STORY_ERRORED, STORY_INDEX_INVALIDATED, STORY_MISSING, STORY_PREPARED, STORY_RENDER_PHASE_CHANGED, STORY_RENDERED, STORY_FINISHED, STORY_SPECIFIED, STORY_THREW_EXCEPTION, STORY_UNCHANGED, STORY_HOT_UPDATED, UPDATE_GLOBALS, UPDATE_QUERY_PARAMS, UPDATE_STORY_ARGS, REQUEST_WHATS_NEW_DATA, RESULT_WHATS_NEW_DATA, SET_WHATS_NEW_CACHE, TOGGLE_WHATS_NEW_NOTIFICATIONS, TELEMETRY_ERROR, SAVE_STORY_REQUEST, SAVE_STORY_RESPONSE, ARGTYPES_INFO_REQUEST, ARGTYPES_INFO_RESPONSE, GHOST_STORIES_REQUEST, GHOST_STORIES_RESPONSE, AI_SETUP_ANALYTICS_RESPONSE, AI_SETUP_ANALYTICS_REQUEST, OPEN_IN_EDITOR_REQUEST, OPEN_IN_EDITOR_RESPONSE, MANAGER_INERT_ATTRIBUTE_CHANGED, SHARE_ISOLATE_MODE, AI_PROMPT_NUDGE, SIDEBAR_FILTER_CHANGED} = events);
|
|
376
|
+
({CHANNEL_WS_DISCONNECT, CHANNEL_WS_RECONNECT, CHANNEL_CREATED, CONFIG_ERROR, CURRENT_STORY_WAS_SET, DOCS_PREPARED, DOCS_RENDERED, DOCS_PAGE_IN_VIEW, FORCE_RE_RENDER, FORCE_REMOUNT, GLOBALS_UPDATED, NAVIGATE_URL, PLAY_FUNCTION_THREW_EXCEPTION, UNHANDLED_ERRORS_WHILE_PLAYING, PRELOAD_ENTRIES, PREVIEW_INITIALIZED, PREVIEW_BUILDER_PROGRESS, PREVIEW_KEYDOWN, REGISTER_SUBSCRIPTION, RESET_STORY_ARGS, SELECT_STORY, SET_CONFIG, SET_CURRENT_STORY, SET_FILTER, SET_GLOBALS, SET_INDEX, SET_STORIES, SHARED_STATE_CHANGED, SHARED_STATE_SET, STORIES_COLLAPSE_ALL, STORIES_EXPAND_ALL, STORY_ARGS_UPDATED, STORY_CHANGED, STORY_ERRORED, STORY_INDEX_INVALIDATED, STORY_MISSING, STORY_PREPARED, STORY_RENDER_PHASE_CHANGED, STORY_RENDERED, STORY_FINISHED, STORY_SPECIFIED, STORY_THREW_EXCEPTION, STORY_UNCHANGED, STORY_HOT_UPDATED, UPDATE_GLOBALS, UPDATE_QUERY_PARAMS, UPDATE_STORY_ARGS, REQUEST_WHATS_NEW_DATA, RESULT_WHATS_NEW_DATA, SET_WHATS_NEW_CACHE, TOGGLE_WHATS_NEW_NOTIFICATIONS, TELEMETRY_ERROR, SAVE_STORY_REQUEST, SAVE_STORY_RESPONSE, ARGTYPES_INFO_REQUEST, ARGTYPES_INFO_RESPONSE, GHOST_STORIES_REQUEST, GHOST_STORIES_RESPONSE, AI_SETUP_ANALYTICS_RESPONSE, AI_SETUP_ANALYTICS_REQUEST, OPEN_IN_EDITOR_REQUEST, OPEN_IN_EDITOR_RESPONSE, MANAGER_INERT_ATTRIBUTE_CHANGED, SHARE_ISOLATE_MODE, AI_PROMPT_NUDGE, SIDEBAR_FILTER_CHANGED} = events);
|
|
375
377
|
})))();
|
|
376
378
|
}
|
|
377
379
|
//#endregion
|
|
@@ -640,7 +642,7 @@ function init_postmessage() {
|
|
|
640
642
|
}
|
|
641
643
|
//#endregion
|
|
642
644
|
//#region src/channels/websocket/index.ts
|
|
643
|
-
var HEARTBEAT_INTERVAL, SERVER_CHANNEL_PATH, CHANNEL_OPTIONS, WebsocketTransport;
|
|
645
|
+
var HEARTBEAT_INTERVAL, SERVER_CHANNEL_PATH, RECONNECT_MAX_DELAY, MAX_BUFFER, CHANNEL_OPTIONS, WebsocketTransport;
|
|
644
646
|
function init_websocket() {
|
|
645
647
|
return (init_websocket = __esmMin((() => {
|
|
646
648
|
init_core_events();
|
|
@@ -648,18 +650,39 @@ function init_websocket() {
|
|
|
648
650
|
init_tiny_invariant();
|
|
649
651
|
HEARTBEAT_INTERVAL = 15e3;
|
|
650
652
|
SERVER_CHANNEL_PATH = "/storybook-server-channel";
|
|
653
|
+
RECONNECT_MAX_DELAY = 5e3;
|
|
654
|
+
MAX_BUFFER = 500;
|
|
651
655
|
CHANNEL_OPTIONS = globalThis.CHANNEL_OPTIONS || {};
|
|
652
656
|
WebsocketTransport = class {
|
|
653
|
-
constructor({ url, onError, page, createSocket }) {
|
|
657
|
+
constructor({ url, onError, page, createSocket, reconnect }) {
|
|
654
658
|
this.buffer = [];
|
|
655
659
|
this.isReady = false;
|
|
656
660
|
this.isClosed = false;
|
|
657
|
-
this.
|
|
658
|
-
this.
|
|
661
|
+
this.hasDisconnected = false;
|
|
662
|
+
this.attempt = 0;
|
|
663
|
+
this.url = url;
|
|
664
|
+
this.page = page || "preview";
|
|
665
|
+
this.onError = onError;
|
|
666
|
+
this.createSocket = createSocket ?? ((socketUrl) => new WebSocket(socketUrl));
|
|
667
|
+
this.reconnect = reconnect === true ? {} : reconnect || void 0;
|
|
668
|
+
this.socket = this.connect(url);
|
|
669
|
+
}
|
|
670
|
+
connect(url) {
|
|
671
|
+
const socket = this.createSocket(url);
|
|
672
|
+
socket.onopen = () => {
|
|
659
673
|
this.isReady = true;
|
|
674
|
+
this.attempt = 0;
|
|
660
675
|
this.flush();
|
|
676
|
+
if (this.hasDisconnected) {
|
|
677
|
+
this.hasDisconnected = false;
|
|
678
|
+
this.handler?.({
|
|
679
|
+
type: CHANNEL_WS_RECONNECT,
|
|
680
|
+
args: [],
|
|
681
|
+
from: this.page
|
|
682
|
+
});
|
|
683
|
+
}
|
|
661
684
|
};
|
|
662
|
-
|
|
685
|
+
socket.onmessage = ({ data }) => {
|
|
663
686
|
const event = typeof data === "string" && isJSON(data) ? parse(data) : data;
|
|
664
687
|
invariant(this.handler, "WebsocketTransport handler should be set");
|
|
665
688
|
if (event.type === "ping") {
|
|
@@ -668,21 +691,52 @@ function init_websocket() {
|
|
|
668
691
|
}
|
|
669
692
|
this.handler(event);
|
|
670
693
|
};
|
|
671
|
-
|
|
672
|
-
if (onError) onError(e);
|
|
694
|
+
socket.onerror = (e) => {
|
|
695
|
+
if (this.onError) this.onError(e);
|
|
673
696
|
};
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
this.
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
697
|
+
socket.onclose = (ev) => {
|
|
698
|
+
const wasOpen = this.isReady;
|
|
699
|
+
this.isReady = false;
|
|
700
|
+
if (!this.reconnect) {
|
|
701
|
+
invariant(this.handler, "WebsocketTransport handler should be set");
|
|
702
|
+
this.handler({
|
|
703
|
+
type: CHANNEL_WS_DISCONNECT,
|
|
704
|
+
args: [{
|
|
705
|
+
reason: ev.reason,
|
|
706
|
+
code: ev.code
|
|
707
|
+
}],
|
|
708
|
+
from: this.page
|
|
709
|
+
});
|
|
710
|
+
this.isClosed = true;
|
|
711
|
+
return;
|
|
712
|
+
}
|
|
713
|
+
if (wasOpen || !this.hasDisconnected) {
|
|
714
|
+
this.hasDisconnected = true;
|
|
715
|
+
this.handler?.({
|
|
716
|
+
type: CHANNEL_WS_DISCONNECT,
|
|
717
|
+
args: [{
|
|
718
|
+
reason: ev.reason,
|
|
719
|
+
code: ev.code,
|
|
720
|
+
reconnecting: true
|
|
721
|
+
}],
|
|
722
|
+
from: this.page
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
this.scheduleReconnect();
|
|
685
726
|
};
|
|
727
|
+
return socket;
|
|
728
|
+
}
|
|
729
|
+
scheduleReconnect() {
|
|
730
|
+
const { initialDelay = 500, maxDelay = RECONNECT_MAX_DELAY, getUrl } = this.reconnect ?? {};
|
|
731
|
+
const delay = Math.min(initialDelay * 2 ** this.attempt, maxDelay);
|
|
732
|
+
this.attempt += 1;
|
|
733
|
+
setTimeout(async () => {
|
|
734
|
+
let nextUrl = this.url;
|
|
735
|
+
try {
|
|
736
|
+
nextUrl = getUrl ? await getUrl() : this.url;
|
|
737
|
+
} catch {}
|
|
738
|
+
this.socket = this.connect(nextUrl);
|
|
739
|
+
}, delay);
|
|
686
740
|
}
|
|
687
741
|
setHandler(handler) {
|
|
688
742
|
this.handler = handler;
|
|
@@ -694,7 +748,9 @@ function init_websocket() {
|
|
|
694
748
|
}
|
|
695
749
|
}
|
|
696
750
|
sendLater(event) {
|
|
751
|
+
if (event.type === "pong") return;
|
|
697
752
|
this.buffer.push(event);
|
|
753
|
+
if (this.buffer.length > MAX_BUFFER) this.buffer.shift();
|
|
698
754
|
}
|
|
699
755
|
sendNow(event) {
|
|
700
756
|
const data = stringify(event, {
|
|
@@ -781,8 +837,10 @@ var channels_exports = /* @__PURE__ */ __exportAll({
|
|
|
781
837
|
createBrowserChannel: () => createBrowserChannel,
|
|
782
838
|
default: () => channels_default,
|
|
783
839
|
ensureChannel: () => ensureChannel,
|
|
840
|
+
fetchCurrentWsToken: () => fetchCurrentWsToken,
|
|
784
841
|
getChannel: () => getChannel,
|
|
785
842
|
installNoopChannel: () => installNoopChannel,
|
|
843
|
+
parseWsToken: () => parseWsToken,
|
|
786
844
|
requireChannel: () => requireChannel,
|
|
787
845
|
setChannel: () => setChannel
|
|
788
846
|
});
|
|
@@ -800,19 +858,30 @@ function createBrowserChannel({ page, extraTransports = [] }) {
|
|
|
800
858
|
if (globalThis.CONFIG_TYPE === "DEVELOPMENT") {
|
|
801
859
|
const protocol = window.location.protocol === "http:" ? "ws" : "wss";
|
|
802
860
|
const { hostname, port } = window.location;
|
|
861
|
+
const urlFor = (token) => `${protocol}://${hostname}:${port}${SERVER_CHANNEL_PATH}?token=${token}&page=${page}`;
|
|
803
862
|
const { wsToken } = globalThis.CHANNEL_OPTIONS || {};
|
|
804
|
-
const channelUrl = `${protocol}://${hostname}:${port}${SERVER_CHANNEL_PATH}?token=${wsToken}&page=${page}`;
|
|
805
863
|
transports.push(new WebsocketTransport({
|
|
806
|
-
url:
|
|
864
|
+
url: urlFor(wsToken),
|
|
807
865
|
onError: () => {},
|
|
808
|
-
page
|
|
866
|
+
page,
|
|
867
|
+
reconnect: { getUrl: async () => urlFor(await fetchCurrentWsToken() ?? wsToken) }
|
|
809
868
|
}));
|
|
810
869
|
}
|
|
811
870
|
const channel = new Channel({ transports });
|
|
812
871
|
UniversalStore.__prepare(channel, page === "manager" ? UniversalStore.Environment.MANAGER : UniversalStore.Environment.PREVIEW);
|
|
813
872
|
return channel;
|
|
814
873
|
}
|
|
815
|
-
|
|
874
|
+
/** Reads the channel token from the HTML of the current page, as the dev server serves it now. */
|
|
875
|
+
async function fetchCurrentWsToken() {
|
|
876
|
+
try {
|
|
877
|
+
const response = await fetch(window.location.href, { cache: "no-store" });
|
|
878
|
+
if (!response.ok) return;
|
|
879
|
+
return parseWsToken(await response.text());
|
|
880
|
+
} catch {
|
|
881
|
+
return;
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
var channels_default, parseWsToken;
|
|
816
885
|
function init_channels() {
|
|
817
886
|
return (init_channels = __esmMin((() => {
|
|
818
887
|
init_universal_store();
|
|
@@ -821,6 +890,7 @@ function init_channels() {
|
|
|
821
890
|
init_websocket();
|
|
822
891
|
init_channel_slot();
|
|
823
892
|
channels_default = Channel;
|
|
893
|
+
parseWsToken = (html) => /"wsToken"\s*:\s*"([^"]+)"/.exec(html)?.[1];
|
|
824
894
|
})))();
|
|
825
895
|
}
|
|
826
896
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __esmMin, r as __exportAll } from "./runtime-BdGkqNEt.js";
|
|
2
|
-
import { A as REVIEW_NAMESPACE, F as init_status_store, M as CHANGE_DETECTION_STATUS_TYPE_ID, N as NON_AGGREGATED_STATUS_TYPE_IDS, P as REVIEW_STATUS_TYPE_ID, j as init_events, k as REVIEW_EVENTS } from "./runtime-
|
|
3
|
-
import { r as definePreviewAddon } from "./runtime-
|
|
2
|
+
import { A as REVIEW_NAMESPACE, F as init_status_store, M as CHANGE_DETECTION_STATUS_TYPE_ID, N as NON_AGGREGATED_STATUS_TYPE_IDS, P as REVIEW_STATUS_TYPE_ID, j as init_events, k as REVIEW_EVENTS } from "./runtime-CrKf1OM4.js";
|
|
3
|
+
import { r as definePreviewAddon } from "./runtime-COMyPEkR.js";
|
|
4
4
|
//#region src/types/modules/addons.ts
|
|
5
5
|
var Addon_TypesEnum;
|
|
6
6
|
function init_addons() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as __esmMin, r as __exportAll } from "./runtime-BdGkqNEt.js";
|
|
2
2
|
import { A as variant, B as T, C as pipe, D as string, E as safeParse, J as isEqual, M as init_index_browser, N as nanoid, O as undefined_, S as optional, T as safeInteger, V as init_dist, _ as looseObject, b as number, c as slash, ct as init_esm, d as l, f as array, g as literal, h as init_dist$1, j as void_, k as unknown, l as g, m as custom, p as check, q as init_isEqual, st as dedent, u as init_deepsignal_core_module, v as minLength, w as record, x as object, y as minValue } from "./runtime-Bvh_rfnQ.js";
|
|
3
|
-
import { A as OpenServiceAsyncRecipeError, B as OpenServiceRemoteCommandDisconnectedError, Bt as init_client_logger, F as OpenServiceLoadedDrainExceededError, Gt as UniversalStoreFollowerTimeoutError, H as OpenServiceUnimplementedOperationError, Ht as once, I as OpenServiceMissingChannelError, Kt as init_manager_errors, L as OpenServiceMissingServiceError, M as OpenServiceCyclicStateError, N as OpenServiceInternalServiceError, P as OpenServiceInvalidStaticPathError, R as OpenServiceOperationNameCollisionError, U as OpenServiceValidationError, Ut as OpenServiceStaticSnapshotInvalidError, V as OpenServiceRemoteCommandUnhandledError, Vt as logger, W as init_open_service, Wt as OpenServiceStaticSnapshotLoadError, X as init_channel_slot, Y as getChannel, _ as instrument, f as init_storyDocsCodePanel, g as init_instrumenter, j as OpenServiceAsyncSchemaError, p as shouldSkipStoryDocsEmit, r as definePreviewAddon, z as OpenServiceRemoteCommandConfigDriftError } from "./runtime-
|
|
4
|
-
import { i as emitTransformCode, r as init_preview_api } from "./runtime-
|
|
3
|
+
import { A as OpenServiceAsyncRecipeError, B as OpenServiceRemoteCommandDisconnectedError, Bt as init_client_logger, F as OpenServiceLoadedDrainExceededError, Gt as UniversalStoreFollowerTimeoutError, H as OpenServiceUnimplementedOperationError, Ht as once, I as OpenServiceMissingChannelError, Kt as init_manager_errors, L as OpenServiceMissingServiceError, M as OpenServiceCyclicStateError, N as OpenServiceInternalServiceError, P as OpenServiceInvalidStaticPathError, R as OpenServiceOperationNameCollisionError, U as OpenServiceValidationError, Ut as OpenServiceStaticSnapshotInvalidError, V as OpenServiceRemoteCommandUnhandledError, Vt as logger, W as init_open_service, Wt as OpenServiceStaticSnapshotLoadError, X as init_channel_slot, Y as getChannel, _ as instrument, f as init_storyDocsCodePanel, g as init_instrumenter, j as OpenServiceAsyncSchemaError, p as shouldSkipStoryDocsEmit, r as definePreviewAddon, z as OpenServiceRemoteCommandConfigDriftError } from "./runtime-COMyPEkR.js";
|
|
4
|
+
import { i as emitTransformCode, r as init_preview_api } from "./runtime-YJlypwja.js";
|
|
5
5
|
import { a as customMatchers, c as setState, d as isMockFunction, f as mocks, i as JestExtend, l as fn$1, n as JestAsymmetricMatchers, o as getState, p as spyOn$1, r as JestChaiExpect, s as init_dist$2, t as GLOBAL_EXPECT, u as init_dist$3 } from "./runtime-D2MPrqbU.js";
|
|
6
6
|
import { a as Assertion, c as init_chai, l as use, o as assert, s as expect$2, u as utils_exports } from "./runtime-DS0s7U3c.js";
|
|
7
7
|
import { c as init_esm$1, d as dom_esm_exports, f as init_dom_esm, i as j, m as matchers_exports, n as g$1, o as n, p as init_matchers, r as init_signals_core_module, s as y, t as f, u as userEvent$1 } from "./runtime-BYRCSYBN.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as __toESM, n as __esmMin, r as __exportAll } from "./runtime-BdGkqNEt.js";
|
|
2
2
|
import { $ as isPlainObject, J as isEqual, Y as require_memoizerific, Z as mapValues, ct as init_esm, i as stringify, n as init_main$1, nt as invariant, o as parse, q as init_isEqual, st as dedent, tt as init_tiny_invariant } from "./runtime-Bvh_rfnQ.js";
|
|
3
|
-
import { C as init_test, D as Tag, H as global_exports, K as StorybookError, O as init_tags, S as registerService, U as init_global, V as global, a as groupEntriesByComponent, b as getService, c as isMdxEntry, d as init_autoTitle, f as userOrAutoTitle, i as init_iframe_resize, l as init_sortStories, o as init_story_grid, p as userOrAutoTitleFromSpecifier, q as init_storybook_error, r as iframeResizeViewportsEqual, s as init_story_index_filters, t as IFRAME_RESIZE_CONTEXT, u as sortStoriesV7, w as test_exports, x as init_preview } from "./runtime-
|
|
4
|
-
import { $ as ARGTYPES_INFO_REQUEST, At as STORY_UNCHANGED, Bt as init_client_logger, C as toId, Ct as STORY_INDEX_INVALIDATED, D as storyNameFromExport, Dt as STORY_RENDER_PHASE_CHANGED, E as isExportStory, Et as STORY_RENDERED, Ft as UPDATE_STORY_ARGS, G as channels_exports, Ht as once, It as core_events_exports, J as ensureChannel, K as init_channels, Lt as init_core_events, Mt as UNHANDLED_ERRORS_WHILE_PLAYING, Nt as UPDATE_GLOBALS, O as init_mock_channel, Ot as STORY_SPECIFIED, Pt as UPDATE_QUERY_PARAMS, Q as setChannel, Rt as client_logger_exports, S as sanitize, St as STORY_HOT_UPDATED, T as init_export_story, Tt as STORY_PREPARED, Vt as logger, X as init_channel_slot, Y as getChannel, Z as installNoopChannel, _t as SET_GLOBALS, at as DOCS_RENDERED, b as combineTags, bt as STORY_ERRORED, c as getCoreAnnotations, ct as GLOBALS_UPDATED, d as markAsComposedWithCoreAnnotations, dt as PLAY_FUNCTION_THREW_EXCEPTION, et as ARGTYPES_INFO_RESPONSE, ft as PRELOAD_ENTRIES, gt as SET_CURRENT_STORY, h as init_shared, ht as RESET_STORY_ARGS, i as getStoryChildren, it as DOCS_PREPARED, jt as TELEMETRY_ERROR, k as mockChannel, kt as STORY_THREW_EXCEPTION, l as hasCoreAnnotations, lt as MANAGER_INERT_ATTRIBUTE_CHANGED, m as SNIPPET_RENDERED, mt as PREVIEW_KEYDOWN, n as init_actions, nt as CURRENT_STORY_WAS_SET, o as isMeta, ot as FORCE_REMOUNT, pt as PREVIEW_INITIALIZED, q as clearChannel, rt as DOCS_PAGE_IN_VIEW, s as isStory, st as FORCE_RE_RENDER, t as actions_exports, tt as CONFIG_ERROR, u as init_core_annotations, ut as NAVIGATE_URL, v as includeConditionalArg, vt as STORY_ARGS_UPDATED, w as toTestId, wt as STORY_MISSING, x as init_csf_utils, xt as STORY_FINISHED, y as init_includeConditionalArg, yt as STORY_CHANGED, zt as deprecate } from "./runtime-
|
|
5
|
-
import { a as init_defaults, c as PARAM_KEY, d as types_exports, i as MINIMAL_VIEWPORTS, l as init_constants, n as resolveViewport, r as toResolvedViewportDimensions, t as init_resolveViewport, u as init_types } from "./runtime-
|
|
3
|
+
import { C as init_test, D as Tag, H as global_exports, K as StorybookError, O as init_tags, S as registerService, U as init_global, V as global, a as groupEntriesByComponent, b as getService, c as isMdxEntry, d as init_autoTitle, f as userOrAutoTitle, i as init_iframe_resize, l as init_sortStories, o as init_story_grid, p as userOrAutoTitleFromSpecifier, q as init_storybook_error, r as iframeResizeViewportsEqual, s as init_story_index_filters, t as IFRAME_RESIZE_CONTEXT, u as sortStoriesV7, w as test_exports, x as init_preview } from "./runtime-CrKf1OM4.js";
|
|
4
|
+
import { $ as ARGTYPES_INFO_REQUEST, At as STORY_UNCHANGED, Bt as init_client_logger, C as toId, Ct as STORY_INDEX_INVALIDATED, D as storyNameFromExport, Dt as STORY_RENDER_PHASE_CHANGED, E as isExportStory, Et as STORY_RENDERED, Ft as UPDATE_STORY_ARGS, G as channels_exports, Ht as once, It as core_events_exports, J as ensureChannel, K as init_channels, Lt as init_core_events, Mt as UNHANDLED_ERRORS_WHILE_PLAYING, Nt as UPDATE_GLOBALS, O as init_mock_channel, Ot as STORY_SPECIFIED, Pt as UPDATE_QUERY_PARAMS, Q as setChannel, Rt as client_logger_exports, S as sanitize, St as STORY_HOT_UPDATED, T as init_export_story, Tt as STORY_PREPARED, Vt as logger, X as init_channel_slot, Y as getChannel, Z as installNoopChannel, _t as SET_GLOBALS, at as DOCS_RENDERED, b as combineTags, bt as STORY_ERRORED, c as getCoreAnnotations, ct as GLOBALS_UPDATED, d as markAsComposedWithCoreAnnotations, dt as PLAY_FUNCTION_THREW_EXCEPTION, et as ARGTYPES_INFO_RESPONSE, ft as PRELOAD_ENTRIES, gt as SET_CURRENT_STORY, h as init_shared, ht as RESET_STORY_ARGS, i as getStoryChildren, it as DOCS_PREPARED, jt as TELEMETRY_ERROR, k as mockChannel, kt as STORY_THREW_EXCEPTION, l as hasCoreAnnotations, lt as MANAGER_INERT_ATTRIBUTE_CHANGED, m as SNIPPET_RENDERED, mt as PREVIEW_KEYDOWN, n as init_actions, nt as CURRENT_STORY_WAS_SET, o as isMeta, ot as FORCE_REMOUNT, pt as PREVIEW_INITIALIZED, q as clearChannel, rt as DOCS_PAGE_IN_VIEW, s as isStory, st as FORCE_RE_RENDER, t as actions_exports, tt as CONFIG_ERROR, u as init_core_annotations, ut as NAVIGATE_URL, v as includeConditionalArg, vt as STORY_ARGS_UPDATED, w as toTestId, wt as STORY_MISSING, x as init_csf_utils, xt as STORY_FINISHED, y as init_includeConditionalArg, yt as STORY_CHANGED, zt as deprecate } from "./runtime-COMyPEkR.js";
|
|
5
|
+
import { a as init_defaults, c as PARAM_KEY, d as types_exports, i as MINIMAL_VIEWPORTS, l as init_constants, n as resolveViewport, r as toResolvedViewportDimensions, t as init_resolveViewport, u as init_types } from "./runtime-CqTqsVg2.js";
|
|
6
6
|
import { n as require_ansi_to_html, t as require_browser_dtector_umd_min } from "./runtime-DS0s7U3c.js";
|
|
7
7
|
//#region src/preview-errors.ts
|
|
8
8
|
var preview_errors_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -4152,6 +4152,26 @@ function init_setupContentResizeBroadcast() {
|
|
|
4152
4152
|
})))();
|
|
4153
4153
|
}
|
|
4154
4154
|
//#endregion
|
|
4155
|
+
//#region src/preview-api/modules/preview-web/withFilePath.ts
|
|
4156
|
+
/**
|
|
4157
|
+
* Adds the story file path below the first line of an error message, so the error display in the
|
|
4158
|
+
* preview says which file to fix. The view shows the first line as the heading and the rest as
|
|
4159
|
+
* detail, so the stack moves into the detail.
|
|
4160
|
+
*/
|
|
4161
|
+
function withFilePath(error, importPath) {
|
|
4162
|
+
const message = error.message || String(error);
|
|
4163
|
+
const stack = error.stack ?? "";
|
|
4164
|
+
if (!importPath || message.includes(importPath)) return {
|
|
4165
|
+
message,
|
|
4166
|
+
stack
|
|
4167
|
+
};
|
|
4168
|
+
const [header, ...rest] = message.split("\n");
|
|
4169
|
+
return {
|
|
4170
|
+
message: `${header}\nIn ${importPath}\n\n${rest.length ? rest.join("\n").replace(/^\n/, "") : stack}`.trimEnd(),
|
|
4171
|
+
stack
|
|
4172
|
+
};
|
|
4173
|
+
}
|
|
4174
|
+
//#endregion
|
|
4155
4175
|
//#region src/preview-api/modules/preview-web/PreviewWithSelection.tsx
|
|
4156
4176
|
function focusInInput(event) {
|
|
4157
4177
|
const target = event.composedPath && event.composedPath()[0] || event.target;
|
|
@@ -4461,9 +4481,14 @@ function init_PreviewWithSelection() {
|
|
|
4461
4481
|
this.view.showNoPreview();
|
|
4462
4482
|
this.channel.emit(STORY_MISSING);
|
|
4463
4483
|
}
|
|
4484
|
+
/** The story file of a story, so an error can say which file to fix. */
|
|
4485
|
+
importPathOf(storySpecifier) {
|
|
4486
|
+
if (typeof storySpecifier !== "string") return;
|
|
4487
|
+
return this.storyStoreValue?.storyIndex.entries[storySpecifier]?.importPath;
|
|
4488
|
+
}
|
|
4464
4489
|
renderStoryLoadingException(storySpecifier, err) {
|
|
4465
4490
|
logger.error(err);
|
|
4466
|
-
this.view.showErrorDisplay(err);
|
|
4491
|
+
this.view.showErrorDisplay(withFilePath(err, this.importPathOf(storySpecifier)));
|
|
4467
4492
|
this.channel.emit(STORY_MISSING, storySpecifier);
|
|
4468
4493
|
}
|
|
4469
4494
|
renderException(storyId, error) {
|
|
@@ -4479,7 +4504,7 @@ function init_PreviewWithSelection() {
|
|
|
4479
4504
|
renderId,
|
|
4480
4505
|
storyId
|
|
4481
4506
|
});
|
|
4482
|
-
this.view.showErrorDisplay(error);
|
|
4507
|
+
this.view.showErrorDisplay(withFilePath(error, this.importPathOf(storyId)));
|
|
4483
4508
|
logger.error(`Error rendering story '${storyId}':`);
|
|
4484
4509
|
logger.error(error);
|
|
4485
4510
|
}
|
package/dist/preview/runtime.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as decorateStory, Bt as setDefaultProjectAnnotations, Ct as SelectionStore, Dt as userOrAutoTitle, Et as sortStoriesV7, Ft as filterArgTypes, Gt as normalizeProjectAnnotations, Ht as composeStepRunners, It as combineParameters, Jt as addons, Kt as normalizeStory, Lt as getCsfFactoryAnnotations, Mt as sanitizeStoryContextUpdate, Nt as inferControls, Ot as userOrAutoTitleFromSpecifier, Pt as PropDescriptor, Rt as composeStories, St as View, Tt as DocsContext, Ut as composeConfigs, Vt as setProjectAnnotations, Wt as normalizeArrays,
|
|
2
|
-
import {
|
|
1
|
+
import { At as decorateStory, Bt as setDefaultProjectAnnotations, Ct as SelectionStore, Dt as userOrAutoTitle, Et as sortStoriesV7, Ft as filterArgTypes, Gt as normalizeProjectAnnotations, Ht as composeStepRunners, It as combineParameters, Jt as addons, Kt as normalizeStory, Lt as getCsfFactoryAnnotations, Mt as sanitizeStoryContextUpdate, Nt as inferControls, Ot as userOrAutoTitleFromSpecifier, Pt as PropDescriptor, Qs as Tag, Rt as composeStories, St as View, Tt as DocsContext, Ut as composeConfigs, Vt as setProjectAnnotations, Wt as normalizeArrays, _t as simulatePageLoad, bt as PreviewWeb, dt as getService, ft as registerService, gt as simulateDOMContentLoaded, ht as emitTransformCode, jt as defaultDecorateStory, kt as combineArgs, mt as waitForAnimations, pt as pauseAnimations, qt as makeDecorator, vt as WebView, wt as Preview, xt as PreviewWithSelection, yt as UrlStore, zt as composeStory } from "../chunk-BRMwIGWt.js";
|
|
2
|
+
import { d as getChannel, f as installNoopChannel, l as clearChannel, m as setChannel, u as ensureChannel } from "../chunk-QtkUsZCs.js";
|
|
3
3
|
import { C as useStoryContext, S as useState, _ as useGlobals, a as StoryStore, b as useReducer, c as prepareMeta, d as HooksContext, f as applyHooks, g as useEffect, h as useChannel, l as prepareStory, m as useCallback, o as Report, p as useArgs, s as ReporterAPI, v as useMemo, x as useRef, y as useParameter } from "../chunk-Bubi-WAs.js";
|
|
4
4
|
export { DocsContext, HooksContext, Preview, PreviewWeb, PreviewWithSelection, type PropDescriptor, type Report, ReporterAPI, type SelectionStore, StoryStore, Tag, UrlStore, type View, WebView, addons, applyHooks, clearChannel, combineArgs, combineParameters, composeConfigs, composeStepRunners, composeStories, composeStory, decorateStory, defaultDecorateStory, emitTransformCode, ensureChannel, filterArgTypes, getChannel, getCsfFactoryAnnotations, getService, inferControls, installNoopChannel, makeDecorator, normalizeArrays, normalizeProjectAnnotations, normalizeStory, pauseAnimations, prepareMeta, prepareStory, registerService, sanitizeStoryContextUpdate, setChannel, setDefaultProjectAnnotations, setProjectAnnotations, simulateDOMContentLoaded, simulatePageLoad, sortStoriesV7, useArgs, useCallback, useChannel, useEffect, useGlobals, useMemo, useParameter, useReducer, useRef, useState, useStoryContext, userOrAutoTitle, userOrAutoTitleFromSpecifier, waitForAnimations };
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
useStoryContext,
|
|
47
47
|
userOrAutoTitle,
|
|
48
48
|
userOrAutoTitleFromSpecifier
|
|
49
|
-
} from "../_browser-chunks/chunk-
|
|
49
|
+
} from "../_browser-chunks/chunk-TRXLBGLS.js";
|
|
50
50
|
import "../_browser-chunks/chunk-PZQRXPVR.js";
|
|
51
51
|
import "../_browser-chunks/chunk-IWQGIXJS.js";
|
|
52
52
|
import "../_browser-chunks/chunk-FENFYI4X.js";
|
package/dist/preview-errors.d.ts
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,11 +12,11 @@ var require = CJS_COMPAT_NODE_MODULE_sfnpbdazcnb.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
ComponentMetaManager,
|
|
14
14
|
buildDocgenPayload
|
|
15
|
-
} from "../../_node-chunks/chunk-
|
|
16
|
-
import "../../_node-chunks/chunk-
|
|
17
|
-
import "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
19
|
-
import "../../_node-chunks/chunk-
|
|
15
|
+
} from "../../_node-chunks/chunk-QF4WUMRT.js";
|
|
16
|
+
import "../../_node-chunks/chunk-7RE5WNOM.js";
|
|
17
|
+
import "../../_node-chunks/chunk-H4IDYTC4.js";
|
|
18
|
+
import "../../_node-chunks/chunk-4XKLH4I3.js";
|
|
19
|
+
import "../../_node-chunks/chunk-7LYHZMJO.js";
|
|
20
20
|
|
|
21
21
|
// src/react/docgen/docgen-worker.ts
|
|
22
22
|
import { createLazyDocgenMiddleware } from "@aussieljk/forkbook/internal/common";
|
package/dist/react/preset.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
|
|
@@ -17,15 +17,15 @@ import {
|
|
|
17
17
|
getCodeSnippet,
|
|
18
18
|
invalidateCache,
|
|
19
19
|
resolveStoryFileComponents
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
21
|
-
import "../_node-chunks/chunk-
|
|
22
|
-
import "../_node-chunks/chunk-
|
|
23
|
-
import "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-QF4WUMRT.js";
|
|
21
|
+
import "../_node-chunks/chunk-7RE5WNOM.js";
|
|
22
|
+
import "../_node-chunks/chunk-H4IDYTC4.js";
|
|
23
|
+
import "../_node-chunks/chunk-4XKLH4I3.js";
|
|
24
24
|
import {
|
|
25
25
|
resolvePackageDir
|
|
26
|
-
} from "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
28
|
-
import "../_node-chunks/chunk-
|
|
26
|
+
} from "../_node-chunks/chunk-Y3FJT543.js";
|
|
27
|
+
import "../_node-chunks/chunk-JQKD337A.js";
|
|
28
|
+
import "../_node-chunks/chunk-7LYHZMJO.js";
|
|
29
29
|
|
|
30
30
|
// src/react/preset.ts
|
|
31
31
|
import path3, { join as join2 } from "node:path";
|
|
@@ -1,19 +1,19 @@
|
|
|
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
|
|
12
12
|
// ------------------------------------------------------------
|
|
13
13
|
import {
|
|
14
14
|
generate
|
|
15
|
-
} from "../../_node-chunks/chunk-
|
|
16
|
-
import "../../_node-chunks/chunk-
|
|
15
|
+
} from "../../_node-chunks/chunk-OS6P62RS.js";
|
|
16
|
+
import "../../_node-chunks/chunk-7LYHZMJO.js";
|
|
17
17
|
|
|
18
18
|
// src/react-native/bin/get-stories.ts
|
|
19
19
|
import { program } from "commander";
|
|
@@ -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,10 +12,10 @@ var require = CJS_COMPAT_NODE_MODULE_sfnpbdazcnb.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
buildIndex,
|
|
14
14
|
createChannelServer
|
|
15
|
-
} from "../../_node-chunks/chunk-
|
|
16
|
-
import "../../_node-chunks/chunk-
|
|
17
|
-
import "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
15
|
+
} from "../../_node-chunks/chunk-QAQWINPN.js";
|
|
16
|
+
import "../../_node-chunks/chunk-KFZRX33G.js";
|
|
17
|
+
import "../../_node-chunks/chunk-W6AOA2O5.js";
|
|
18
|
+
import "../../_node-chunks/chunk-7LYHZMJO.js";
|
|
19
19
|
export {
|
|
20
20
|
buildIndex,
|
|
21
21
|
createChannelServer
|
|
@@ -1,23 +1,23 @@
|
|
|
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
|
-
import {
|
|
13
|
-
createChannelServer
|
|
14
|
-
} from "../../_node-chunks/chunk-GC7NA2Y7.js";
|
|
15
12
|
import {
|
|
16
13
|
generate
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
} from "../../_node-chunks/chunk-OS6P62RS.js";
|
|
15
|
+
import {
|
|
16
|
+
createChannelServer
|
|
17
|
+
} from "../../_node-chunks/chunk-QAQWINPN.js";
|
|
18
|
+
import "../../_node-chunks/chunk-KFZRX33G.js";
|
|
19
|
+
import "../../_node-chunks/chunk-W6AOA2O5.js";
|
|
20
|
+
import "../../_node-chunks/chunk-7LYHZMJO.js";
|
|
21
21
|
|
|
22
22
|
// src/react-native/metro/withForkbook.ts
|
|
23
23
|
import { createRequire } from "node:module";
|
|
@@ -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
|
generate
|
|
14
|
-
} from "../../_node-chunks/chunk-
|
|
15
|
-
import "../../_node-chunks/chunk-
|
|
14
|
+
} from "../../_node-chunks/chunk-OS6P62RS.js";
|
|
15
|
+
import "../../_node-chunks/chunk-7LYHZMJO.js";
|
|
16
16
|
export {
|
|
17
17
|
generate
|
|
18
18
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
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
|
-
import "../../_node-chunks/chunk-
|
|
12
|
+
import "../../_node-chunks/chunk-7LYHZMJO.js";
|
|
13
13
|
|
|
14
14
|
// src/react-vite/node/index.ts
|
|
15
15
|
function defineMain(config) {
|