@aussieljk/forkbook 0.0.1-6 → 0.0.1-7
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-2BMQTRYG.js → Color-2YRIFQLC.js} +1 -1
- package/dist/_browser-chunks/{WithTooltip-GJACFWKM.js → WithTooltip-4R5JMWZ7.js} +3 -3
- package/dist/_browser-chunks/{chunk-6IKB2UHQ.js → chunk-4EFKUJG2.js} +12 -12
- package/dist/_browser-chunks/{chunk-X7D777E6.js → chunk-DAUHYZUB.js} +4 -0
- package/dist/_browser-chunks/{chunk-6EJEEII7.js → chunk-E47B5255.js} +2 -2
- package/dist/_browser-chunks/{chunk-QAHDGPZ7.js → chunk-HTL5ODCB.js} +1 -1
- package/dist/_browser-chunks/{chunk-DPRGR3QP.js → chunk-WVF42CP2.js} +38 -6
- package/dist/_node-chunks/{attached-runtime-EBWIOQZN.js → attached-runtime-WFZCCGUB.js} +29 -29
- package/dist/_node-chunks/{builder-manager-ETBLZ2RH.js → builder-manager-DHKHRZK4.js} +69 -46
- package/dist/_node-chunks/{chunk-TPSJW4CQ.js → chunk-3ZCGT6VF.js} +6 -6
- package/dist/_node-chunks/{chunk-GQ3HJNIH.js → chunk-4HGC3G6B.js} +44 -10
- package/dist/_node-chunks/{chunk-3UWWRDA5.js → chunk-5PYQ573S.js} +7 -7
- package/dist/_node-chunks/{chunk-DCNZ6SFN.js → chunk-64JPAW3T.js} +6 -6
- package/dist/_node-chunks/{chunk-2DBJWMYE.js → chunk-6CB3XSQ2.js} +8 -8
- package/dist/_node-chunks/{chunk-LFIFBDMS.js → chunk-6K3ZE4HN.js} +6 -6
- package/dist/_node-chunks/{chunk-LWKLJYYQ.js → chunk-6QZ3PX5R.js} +6 -6
- package/dist/_node-chunks/{chunk-DDGW2EBW.js → chunk-7HVDL6M3.js} +9 -9
- package/dist/_node-chunks/{chunk-XOGU5PWI.js → chunk-7PMQPS5E.js} +10 -10
- package/dist/_node-chunks/{chunk-FIFCNBTL.js → chunk-7V5AOV2J.js} +7 -7
- package/dist/_node-chunks/{chunk-P65JVLO3.js → chunk-7VHCAGBJ.js} +8 -8
- package/dist/_node-chunks/{chunk-ALHPFKVB.js → chunk-ATX7SHS7.js} +8 -8
- package/dist/_node-chunks/{chunk-FQWTUSYB.js → chunk-BQC6WCUS.js} +6 -6
- package/dist/_node-chunks/{chunk-SLZV7PTQ.js → chunk-BR4WDRY6.js} +8 -8
- package/dist/_node-chunks/{chunk-BLUMKQQB.js → chunk-BRHJ4P3A.js} +6 -6
- package/dist/_node-chunks/{chunk-X3RTVNRN.js → chunk-CBBFNVFZ.js} +7 -7
- package/dist/_node-chunks/{chunk-ZCITDAV4.js → chunk-CDFQORVD.js} +7 -7
- package/dist/_node-chunks/{chunk-Q4BEWGMK.js → chunk-CENNLCU7.js} +6 -6
- package/dist/_node-chunks/{chunk-MZ2GSR3G.js → chunk-CNMMDQC3.js} +12 -7
- package/dist/_node-chunks/{chunk-WRG3CFGS.js → chunk-DMDZPUHM.js} +6 -6
- package/dist/_node-chunks/{chunk-JPXJI6QR.js → chunk-DT45EUDD.js} +23 -23
- package/dist/_node-chunks/{chunk-4MJIPOJ5.js → chunk-EAL4RVEF.js} +6 -6
- package/dist/_node-chunks/chunk-EFFWFE6W.js +11 -0
- package/dist/_node-chunks/{chunk-GOFK4EKU.js → chunk-ESCZ2NSB.js} +6 -6
- package/dist/_node-chunks/{chunk-HUPRQZ3I.js → chunk-ESZIQTUH.js} +7 -7
- package/dist/_node-chunks/{chunk-TN3ULFFZ.js → chunk-F3SAYS4R.js} +6 -6
- package/dist/_node-chunks/{chunk-VPU4E7DI.js → chunk-FTUQ7T3V.js} +8 -8
- package/dist/_node-chunks/{chunk-E3O7VAPG.js → chunk-FVFSSIGA.js} +10 -10
- package/dist/_node-chunks/{chunk-IFPMZ247.js → chunk-G2AANC4A.js} +6 -6
- package/dist/_node-chunks/{chunk-GGTXOH3W.js → chunk-HUMAXGH2.js} +6 -6
- package/dist/_node-chunks/{chunk-644CUCK5.js → chunk-I535GEPH.js} +7 -7
- package/dist/_node-chunks/{chunk-ZSH6BUCW.js → chunk-J3Q56GX3.js} +23 -23
- package/dist/_node-chunks/{chunk-I7HRDCNY.js → chunk-JDKYP7FW.js} +10 -10
- package/dist/_node-chunks/{chunk-PLWLCVP2.js → chunk-JED5F3H2.js} +6 -6
- package/dist/_node-chunks/{chunk-Z4NZLBOX.js → chunk-JMS4H7QB.js} +7 -7
- package/dist/_node-chunks/{chunk-7E27CGRU.js → chunk-JOSJ64KD.js} +7 -7
- package/dist/_node-chunks/{chunk-LXVSVTQ3.js → chunk-JPHSU5OI.js} +6 -6
- package/dist/_node-chunks/{chunk-JS2J2SKX.js → chunk-JQICISDD.js} +6 -6
- package/dist/_node-chunks/{chunk-NZ7EQWYA.js → chunk-JTLOSDYL.js} +9 -9
- package/dist/_node-chunks/{chunk-MQFB44YS.js → chunk-K5RUOW42.js} +7 -7
- package/dist/_node-chunks/{chunk-OLGIDCVD.js → chunk-KHWCZDIW.js} +7 -7
- package/dist/_node-chunks/chunk-KWER36VB.js +20 -0
- package/dist/_node-chunks/{chunk-TMXWDY2O.js → chunk-LJTP5PAJ.js} +6 -6
- package/dist/_node-chunks/chunk-LZYYZ62Y.js +19 -0
- package/dist/_node-chunks/{chunk-WIQ6Y3NX.js → chunk-M7ZVSBNU.js} +6 -6
- package/dist/_node-chunks/{chunk-TIRP5JQM.js → chunk-MBIIJTGQ.js} +7 -7
- package/dist/_node-chunks/{chunk-L4JGWK4K.js → chunk-MF3AT3JQ.js} +6 -6
- package/dist/_node-chunks/{chunk-N7HEOGTM.js → chunk-MF5BYASO.js} +6 -6
- package/dist/_node-chunks/{chunk-YHH57LHY.js → chunk-MJFMB4WD.js} +9 -9
- package/dist/_node-chunks/{chunk-ZC3ZZKMS.js → chunk-MRWBN46D.js} +8 -8
- package/dist/_node-chunks/{chunk-KF3FT3NI.js → chunk-MZQXEAI6.js} +9 -9
- package/dist/_node-chunks/{chunk-A35J7YYA.js → chunk-NLPC2DDQ.js} +6 -6
- package/dist/_node-chunks/{chunk-5Z6MT4RI.js → chunk-NQAFLS5U.js} +7 -7
- package/dist/_node-chunks/{chunk-C5JG7EKF.js → chunk-NSZGBFPR.js} +6 -6
- package/dist/_node-chunks/{chunk-MFN2XBPL.js → chunk-NUYBFTOU.js} +7 -7
- package/dist/_node-chunks/{chunk-GRTI5653.js → chunk-O7VJA7SM.js} +7 -7
- package/dist/_node-chunks/{chunk-PAN35AYX.js → chunk-OGJ7LDX3.js} +7 -7
- package/dist/_node-chunks/{chunk-NX6CSWF3.js → chunk-OWT6AVWK.js} +8 -8
- package/dist/_node-chunks/{chunk-G6YNW4FK.js → chunk-P3GOMPP3.js} +7 -7
- package/dist/_node-chunks/{chunk-ZTFNOXZF.js → chunk-PQLXHVWK.js} +6 -6
- package/dist/_node-chunks/{chunk-CGVPHZVD.js → chunk-Q6QRFKHB.js} +8 -8
- package/dist/_node-chunks/{chunk-HWRHYM7Z.js → chunk-QSP42ZBM.js} +6 -6
- package/dist/_node-chunks/{chunk-25PXULSJ.js → chunk-QWDR5OWQ.js} +14 -14
- package/dist/_node-chunks/{chunk-4WLIN3VZ.js → chunk-QWRQXG2V.js} +8 -8
- package/dist/_node-chunks/{chunk-YPGVYNJB.js → chunk-R6AKCXPH.js} +6 -6
- package/dist/_node-chunks/{chunk-ANDQVXYX.js → chunk-RCY7TLET.js} +8 -8
- package/dist/_node-chunks/{chunk-YCXTTQ7K.js → chunk-RKKMQA6N.js} +8 -8
- package/dist/_node-chunks/{chunk-JZWF3XLN.js → chunk-RZ7UEP4N.js} +6 -6
- package/dist/_node-chunks/{chunk-GDFQQO5U.js → chunk-S3HB4EWT.js} +6 -6
- package/dist/_node-chunks/{chunk-XWGMQW2H.js → chunk-SHH7JROR.js} +6 -6
- package/dist/_node-chunks/{chunk-DRLBJM6X.js → chunk-SWHTDOB4.js} +7 -7
- package/dist/_node-chunks/{chunk-YMZ2SGFK.js → chunk-SZYMLCHF.js} +6 -6
- package/dist/_node-chunks/{chunk-HKL3VOYX.js → chunk-TOGDRW2W.js} +6 -6
- package/dist/_node-chunks/{chunk-5T635FTI.js → chunk-U3E7E4Q2.js} +10 -10
- package/dist/_node-chunks/{chunk-YQDBSAXW.js → chunk-U6DHF3RM.js} +7 -7
- package/dist/_node-chunks/{chunk-R5DWO2S2.js → chunk-UAG3XK32.js} +27 -27
- package/dist/_node-chunks/{chunk-CF7KLGUW.js → chunk-UF6Q6L5C.js} +19 -19
- package/dist/_node-chunks/chunk-UGXN7JTT.js +18 -0
- package/dist/_node-chunks/{chunk-J6M5CRYZ.js → chunk-UNCBLHIP.js} +8 -8
- package/dist/_node-chunks/chunk-UPJMGWMZ.js +25 -0
- package/dist/_node-chunks/{chunk-MDW3GSU3.js → chunk-UVV24PG4.js} +7 -7
- package/dist/_node-chunks/{chunk-4XNPO23I.js → chunk-WBB4NQ6H.js} +6 -6
- package/dist/_node-chunks/{chunk-YNENOZRY.js → chunk-WHOF2BJB.js} +7 -7
- package/dist/_node-chunks/{chunk-QNUXGVZZ.js → chunk-WME5NEJA.js} +6 -6
- package/dist/_node-chunks/{chunk-4KCQYJT6.js → chunk-X63YMAHP.js} +7 -7
- package/dist/_node-chunks/{chunk-ZNSGFYAT.js → chunk-Y2GHAOKI.js} +6 -6
- package/dist/_node-chunks/{chunk-CBUQY454.js → chunk-Y6G64J5S.js} +6 -6
- package/dist/_node-chunks/{chunk-KWPWQA7G.js → chunk-YVIPYJ53.js} +8 -8
- package/dist/_node-chunks/{chunk-NUAQC3XP.js → chunk-YZWUD7I5.js} +12 -12
- package/dist/_node-chunks/{chunk-252Y5WHZ.js → chunk-ZIDIYSJQ.js} +7 -7
- package/dist/_node-chunks/chunk-ZSGOW4WQ.js +20 -0
- package/dist/_node-chunks/dist-5EG56KTF.js +16 -0
- package/dist/_node-chunks/dist-UEXSNGGQ.js +27 -0
- package/dist/_node-chunks/{local-runtime-BUTEKJYV.js → local-runtime-UN5QK2SE.js} +20 -20
- package/dist/_node-chunks/{mdx-plugin-7WXQIHPV.js → mdx-plugin-6M6CMNL3.js} +13 -13
- package/dist/_node-chunks/{monorepo-NCD3X2BR.js → monorepo-253VKW4B.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-SD3B272K.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-3ZOE54OQ.js} +11 -11
- package/dist/_node-chunks/optimized-tests-JSWLRMEI.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-3QJANDJD.js → pattern-copy-play-CCCJRMSL.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-VMANBHPR.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-4LR5BDR2.js → rehype-external-links-LJTPLCGD.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-PWFRGOEV.js → rehype-slug-KQI7ULEZ.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-VNNWUW7X.js → relaxed-limits-MUE2NI7S.js} +11 -11
- package/dist/_node-chunks/{run-RUAAWEQT.js → run-PGZMPNMS.js} +246 -13
- package/dist/_node-chunks/{run-YK6ARCWS.js → run-SYLR25HA.js} +17 -17
- package/dist/_node-chunks/session-id-J4A25UQ6.js +23 -0
- package/dist/_node-chunks/{setup-4QKCICV6.js → setup-XZWSUYPG.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-WVFLIXN7.js → vitest.config.4.template-T25YYRGV.js} +7 -7
- package/dist/addon-a11y/manager.js +6 -6
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-docs/blocks.js +9 -9
- package/dist/addon-docs/manager.js +1 -1
- package/dist/addon-docs/preset.js +10 -10
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-mcp/preset.js +8 -8
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +6 -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 +13 -13
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +59 -59
- package/dist/bin/dispatcher.js +16 -11
- 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/{chunk-CVY28Ngy.d.ts → chunk-B_ZhEPlo.d.ts} +1 -1
- package/dist/{chunk-ClI-HEh5.d.ts → chunk-CMaYrou5.d.ts} +1 -1
- package/dist/{chunk-CzmZhVrn.d.ts → chunk-LrH1y9J2.d.ts} +5 -0
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +22 -22
- 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 +1 -1
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/common/index.d.ts +2 -2
- package/dist/common/index.js +35 -35
- package/dist/components/index.js +27 -27
- package/dist/core-server/index.d.ts +2 -2
- package/dist/core-server/index.js +68 -68
- package/dist/core-server/presets/common-manager.js +8 -8
- package/dist/core-server/presets/common-override-preset.js +10 -10
- package/dist/core-server/presets/common-preset.js +39 -39
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf-tools/index.d.ts +12 -0
- package/dist/csf-tools/index.js +12 -12
- package/dist/manager/_manager-chunks/{globals-runtime-BUP5e_t9.js → globals-runtime-4fCHtNC6.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-CdgVeAbk.js → globals-runtime-BKPOYSwp.js} +7 -7
- package/dist/manager/_manager-chunks/{globals-runtime-B5-0Ccbv.js → globals-runtime-BMIT8BJb.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-DedfO-DP.js → globals-runtime-BO0pfoqL.js} +4 -4
- package/dist/manager/_manager-chunks/{globals-runtime-C7mqoHpE.js → globals-runtime-BZKYJxYC.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-CrIF09P8.js → globals-runtime-Bpc_ftuT.js} +8 -2
- package/dist/manager/_manager-chunks/{globals-runtime-Cqn8KdSZ.js → globals-runtime-CI-C7ncS.js} +10 -10
- package/dist/manager/_manager-chunks/{globals-runtime-B-IeQLQu.js → globals-runtime-CI_p54Ha.js} +12 -12
- package/dist/manager/_manager-chunks/{globals-runtime-XSxCU7PR.js → globals-runtime-CTyYXvUm.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-B71TiXST.js → globals-runtime-CoCzM1V_.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-DUK6bGcb.js → globals-runtime-CzEhVGVp.js} +99 -39
- package/dist/manager/_manager-chunks/{globals-runtime-DMBjo1QS.js → globals-runtime-D82vqOGq.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-CYNosEiD.js → globals-runtime-DB8fVA5g.js} +2 -144
- package/dist/manager/_manager-chunks/{globals-runtime-DqhIYwLp.js → globals-runtime-DMq1Phbl.js} +72 -72
- package/dist/manager/_manager-chunks/{globals-runtime-CvyFEPIY.js → globals-runtime-DOPUchia.js} +3 -3
- package/dist/manager/_manager-chunks/{globals-runtime-C_evJrEn.js → globals-runtime-Dbt08xWQ.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-Ct1kY4wb.js → globals-runtime-kmPSyf3j.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-CqItbdKW.js → runtime-5o_11Jae.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-CHI-LHF1.js → runtime-B4U0u9p4.js} +5 -147
- package/dist/manager/_manager-chunks/{runtime-MAf7Wpk5.js → runtime-BM30BmeT.js} +501 -43
- package/dist/manager/_manager-chunks/{runtime-EITvVbkG.js → runtime-BdGkqNEt.js} +1 -2
- package/dist/manager/_manager-chunks/{runtime-D4ZOOIV0.js → runtime-Cf0p9DUx.js} +4 -4
- package/dist/manager/_manager-chunks/{runtime-DrTLBe7a.js → runtime-D-nYLsdk.js} +43 -19
- package/dist/manager/_manager-chunks/runtime-D09XMY6V.js +294 -0
- package/dist/manager/_manager-chunks/{runtime-BgYvp1WN.js → runtime-DvrwKw7z.js} +84 -303
- package/dist/manager/_manager-chunks/{runtime-DER98nV0.js → runtime-DzxaTqVN.js} +9 -12
- package/dist/manager/_manager-chunks/{runtime-CaU1DSEZ.js → runtime-P663lpsR.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-CUymj6EY.js → runtime-ecY5qnmo.js} +126 -134
- 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-api/index.js +2 -2
- 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/node-stand-ins/index.d.ts +68 -0
- package/dist/nextjs-vite/node-stand-ins/index.js +145 -0
- package/dist/nextjs-vite/preset.js +92 -13
- 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-api/index.d.ts +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/withStorybook.js +11 -11
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +7 -7
- 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 +43 -43
- package/dist/types/index.d.ts +1 -1
- package/package.json +6 -1
- package/dist/_node-chunks/chunk-AS4SFRCZ.js +0 -20
- package/dist/_node-chunks/chunk-DABFUVLR.js +0 -20
- package/dist/_node-chunks/chunk-GIOREKIG.js +0 -25
- package/dist/_node-chunks/chunk-TYBPAV3X.js +0 -19
- package/dist/_node-chunks/chunk-UUE3PSJB.js +0 -11
- package/dist/_node-chunks/chunk-VKNRNBTB.js +0 -18
- package/dist/_node-chunks/dist-GGTGKXZA.js +0 -27
- package/dist/_node-chunks/dist-NS676VJR.js +0 -16
- package/dist/_node-chunks/optimized-tests-ITVOHEOA.js +0 -22
- package/dist/_node-chunks/postinstallAddon-LEUHOKX6.js +0 -20
- package/dist/_node-chunks/session-id-JJYVZAKO.js +0 -23
- package/dist/manager/_manager-chunks/runtime-BR5z0WoJ.js +0 -456
- package/dist/manager/_manager-chunks/runtime-cVFIMcca.js +0 -22
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -37,13 +37,13 @@ import {
|
|
|
37
37
|
verifyStep,
|
|
38
38
|
vitestPassesStrictDOD,
|
|
39
39
|
writeStoriesStep
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-UNCBLHIP.js";
|
|
41
41
|
import {
|
|
42
42
|
getDocsMarkdownUrl
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-WME5NEJA.js";
|
|
44
|
+
import "./chunk-SHH7JROR.js";
|
|
45
|
+
import "./chunk-HUMAXGH2.js";
|
|
46
|
+
import "./chunk-NLPC2DDQ.js";
|
|
47
47
|
|
|
48
48
|
// src/cli/skills/content/setup-prompts/relaxed-limits.ts
|
|
49
49
|
import { dedent } from "ts-dedent";
|
|
@@ -1,33 +1,37 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
postinstallAddon
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WHOF2BJB.js";
|
|
15
15
|
import {
|
|
16
16
|
version
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UGXN7JTT.js";
|
|
18
18
|
import {
|
|
19
19
|
leven
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-QSP42ZBM.js";
|
|
21
|
+
import "./chunk-SWHTDOB4.js";
|
|
22
|
+
import "./chunk-3ZCGT6VF.js";
|
|
23
23
|
import {
|
|
24
24
|
require_picocolors
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-K5RUOW42.js";
|
|
26
|
+
import {
|
|
27
|
+
glob
|
|
28
|
+
} from "./chunk-RKKMQA6N.js";
|
|
29
|
+
import "./chunk-CDFQORVD.js";
|
|
26
30
|
import {
|
|
27
31
|
__commonJS,
|
|
28
32
|
__require,
|
|
29
33
|
__toESM
|
|
30
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-NLPC2DDQ.js";
|
|
31
35
|
|
|
32
36
|
// ../../node_modules/envinfo/dist/envinfo.js
|
|
33
37
|
var require_envinfo = __commonJS({
|
|
@@ -4435,6 +4439,221 @@ function isValidVersion(version2) {
|
|
|
4435
4439
|
return SemVer.valid(version2) || version2.match(/^\d+$/);
|
|
4436
4440
|
}
|
|
4437
4441
|
|
|
4442
|
+
// src/cli-commands/migrate.ts
|
|
4443
|
+
import { existsSync } from "node:fs";
|
|
4444
|
+
import { readFile, writeFile } from "node:fs/promises";
|
|
4445
|
+
import { join, relative as relative2 } from "node:path";
|
|
4446
|
+
var IMPORT_RULES = [
|
|
4447
|
+
[/(['"])@storybook\/([a-z-]+)/g, "$1@aussieljk/forkbook/$2"],
|
|
4448
|
+
[/(['"])storybook\//g, "$1@aussieljk/forkbook/"]
|
|
4449
|
+
], ENV_RULE = [/(?<![A-Za-z0-9])(_*)STORYBOOK_/g, "$1FORKBOOK_"], CSS_RULE = [/(?<![\w-])(--)?sb-(?=[a-z])/g, "$1fb-"], SOURCE_GLOBS = ["**/*.{js,jsx,ts,tsx,mjs,cjs,mts,cts,mdx,css,scss,sass,less,html}", ".env*"], IGNORE = [
|
|
4450
|
+
"**/node_modules/**",
|
|
4451
|
+
"**/dist/**",
|
|
4452
|
+
"**/build/**",
|
|
4453
|
+
"**/.next/**",
|
|
4454
|
+
"**/storybook-static/**"
|
|
4455
|
+
], isStorybookPackage = (name) => name === "storybook" || name.startsWith("@storybook/");
|
|
4456
|
+
function apply(text, rules) {
|
|
4457
|
+
return rules.reduce((out, [pattern, replacement]) => out.replace(pattern, replacement), text);
|
|
4458
|
+
}
|
|
4459
|
+
function migrateSource(text) {
|
|
4460
|
+
return apply(text, [...IMPORT_RULES, ENV_RULE, CSS_RULE]);
|
|
4461
|
+
}
|
|
4462
|
+
function installCommand(cwd) {
|
|
4463
|
+
return existsSync(join(cwd, "pnpm-lock.yaml")) ? "pnpm install" : existsSync(join(cwd, "yarn.lock")) ? "yarn install" : existsSync(join(cwd, "package-lock.json")) ? "npm install" : "bun install";
|
|
4464
|
+
}
|
|
4465
|
+
async function migrate({
|
|
4466
|
+
cwd = process.cwd(),
|
|
4467
|
+
dryRun = !1,
|
|
4468
|
+
version: version2
|
|
4469
|
+
}) {
|
|
4470
|
+
let changedFiles = [], removedPackages = [], packageJsonPath = join(cwd, "package.json"), packageJson = JSON.parse(await readFile(packageJsonPath, "utf8"));
|
|
4471
|
+
for (let field of [
|
|
4472
|
+
"dependencies",
|
|
4473
|
+
"devDependencies",
|
|
4474
|
+
"peerDependencies",
|
|
4475
|
+
"optionalDependencies"
|
|
4476
|
+
]) {
|
|
4477
|
+
let deps = packageJson[field];
|
|
4478
|
+
for (let name of Object.keys(deps ?? {}))
|
|
4479
|
+
deps && isStorybookPackage(name) && (delete deps[name], removedPackages.push(name));
|
|
4480
|
+
}
|
|
4481
|
+
packageJson.devDependencies = {
|
|
4482
|
+
...packageJson.devDependencies,
|
|
4483
|
+
"@aussieljk/forkbook": `^${version2}`
|
|
4484
|
+
};
|
|
4485
|
+
for (let [name, script] of Object.entries(packageJson.scripts ?? {}))
|
|
4486
|
+
packageJson.scripts[name] = apply(script, [ENV_RULE]);
|
|
4487
|
+
let before = await readFile(packageJsonPath, "utf8"), after = `${JSON.stringify(packageJson, null, 2)}
|
|
4488
|
+
`;
|
|
4489
|
+
after !== before && (changedFiles.push("package.json"), dryRun || await writeFile(packageJsonPath, after));
|
|
4490
|
+
let files = await glob(SOURCE_GLOBS, { cwd, dot: !0, ignore: IGNORE, absolute: !0 });
|
|
4491
|
+
for (let file of files.sort()) {
|
|
4492
|
+
let text = await readFile(file, "utf8"), next = migrateSource(text);
|
|
4493
|
+
next !== text && (changedFiles.push(relative2(cwd, file)), dryRun || await writeFile(file, next));
|
|
4494
|
+
}
|
|
4495
|
+
return {
|
|
4496
|
+
removedPackages,
|
|
4497
|
+
addedPackage: `@aussieljk/forkbook@^${version2}`,
|
|
4498
|
+
changedFiles,
|
|
4499
|
+
installCommand: installCommand(cwd)
|
|
4500
|
+
};
|
|
4501
|
+
}
|
|
4502
|
+
|
|
4503
|
+
// src/cli-commands/pages.ts
|
|
4504
|
+
import { existsSync as existsSync2 } from "node:fs";
|
|
4505
|
+
import { mkdir, readFile as readFile2, writeFile as writeFile2 } from "node:fs/promises";
|
|
4506
|
+
import { dirname, join as join2, relative as relative3 } from "node:path";
|
|
4507
|
+
var HELPER_FILE = "page.tsx";
|
|
4508
|
+
function routeFromPage(pagePath) {
|
|
4509
|
+
return `/${dirname(pagePath).split("/").filter((segment) => segment !== "." && !/^\(.*\)$/.test(segment) && !segment.startsWith("@")).join("/")}`;
|
|
4510
|
+
}
|
|
4511
|
+
function isRedirectOnly(source) {
|
|
4512
|
+
return /\b(redirect|permanentRedirect)\s*\(/.test(source) && !/<[A-Za-z]/.test(source);
|
|
4513
|
+
}
|
|
4514
|
+
var hasStaticParams = (source) => /export\s+(async\s+)?function\s+generateStaticParams\b|export\s+(const|let)\s+generateStaticParams\b/.test(
|
|
4515
|
+
source
|
|
4516
|
+
), importPath = (from, to) => {
|
|
4517
|
+
let path = relative3(dirname(from), to).replace(/\.tsx?$/, "");
|
|
4518
|
+
return path.startsWith(".") ? path : `./${path}`;
|
|
4519
|
+
};
|
|
4520
|
+
function pageStory({
|
|
4521
|
+
storyPath,
|
|
4522
|
+
helperPath,
|
|
4523
|
+
route,
|
|
4524
|
+
withStaticParams
|
|
4525
|
+
}) {
|
|
4526
|
+
let title = route === "/" ? "index" : route.slice(1), name = title.split("/").at(-1), pageImport = withStaticParams ? "Page, { generateStaticParams }" : "Page", options = withStaticParams ? ", { generateStaticParams }" : "";
|
|
4527
|
+
return `import type { Meta, StoryObj } from '@aussieljk/forkbook/nextjs-vite';
|
|
4528
|
+
|
|
4529
|
+
import { page } from '${importPath(storyPath, helperPath)}';
|
|
4530
|
+
import ${pageImport} from './page';
|
|
4531
|
+
|
|
4532
|
+
const meta = {
|
|
4533
|
+
title: ${JSON.stringify(title)},
|
|
4534
|
+
tags: ['!autodocs'],
|
|
4535
|
+
...page(${JSON.stringify(route)}, Page${options}),
|
|
4536
|
+
} satisfies Meta;
|
|
4537
|
+
|
|
4538
|
+
export default meta;
|
|
4539
|
+
|
|
4540
|
+
export const Default: StoryObj = { name: ${JSON.stringify(name)} };
|
|
4541
|
+
`;
|
|
4542
|
+
}
|
|
4543
|
+
function pageHelper({
|
|
4544
|
+
helperPath,
|
|
4545
|
+
layoutPath
|
|
4546
|
+
}) {
|
|
4547
|
+
return `import { Children, Fragment, cloneElement, isValidElement } from 'react';
|
|
4548
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
4549
|
+
|
|
4550
|
+
${layoutPath ? `import RootLayout from '${importPath(helperPath, layoutPath)}';
|
|
4551
|
+
` : ""}
|
|
4552
|
+
type Params = Record<string, string | string[]>;
|
|
4553
|
+
|
|
4554
|
+
interface PageOptions {
|
|
4555
|
+
generateStaticParams?: () => Params[] | Promise<Params[]>;
|
|
4556
|
+
}
|
|
4557
|
+
|
|
4558
|
+
const SLOT = '__forkbook_page_slot__';
|
|
4559
|
+
|
|
4560
|
+
const isAsync = (component: unknown) =>
|
|
4561
|
+
Object.prototype.toString.call(component) === '[object AsyncFunction]';
|
|
4562
|
+
|
|
4563
|
+
/** Puts \`params\` into the dynamic segments of a route: \`/blog/[slug]\` to \`/blog/hello\`. */
|
|
4564
|
+
function fillRoute(route: string, params: Params) {
|
|
4565
|
+
return route.replace(/\\[{1,2}(?:\\.\\.\\.)?([^\\]]+)\\]{1,2}/g, (_, key: string) => {
|
|
4566
|
+
const value = params[key];
|
|
4567
|
+
return Array.isArray(value) ? value.join('/') : (value ?? key);
|
|
4568
|
+
});
|
|
4569
|
+
}
|
|
4570
|
+
|
|
4571
|
+
/** Keeps the layout chrome (header, footer) and removes \`<html>\` and \`<body>\`. */
|
|
4572
|
+
function chrome(node: ReactNode, page: ReactNode): ReactNode {
|
|
4573
|
+
return Children.map(node, (child) => {
|
|
4574
|
+
if (!isValidElement<{ children?: ReactNode }>(child)) {
|
|
4575
|
+
return child;
|
|
4576
|
+
}
|
|
4577
|
+
if (child.type === SLOT) {
|
|
4578
|
+
return page;
|
|
4579
|
+
}
|
|
4580
|
+
const children = chrome(child.props.children, page);
|
|
4581
|
+
if (child.type === 'html' || child.type === 'body') {
|
|
4582
|
+
return <Fragment key={child.key}>{children}</Fragment>;
|
|
4583
|
+
}
|
|
4584
|
+
return child.props.children === undefined ? child : cloneElement(child, undefined, children);
|
|
4585
|
+
});
|
|
4586
|
+
}
|
|
4587
|
+
|
|
4588
|
+
/** Makes the meta for a story of a Next.js App Router page. Written by \`forkbook init --pages\`. */
|
|
4589
|
+
export function page(route: string, Page: ComponentType<any>, options: PageOptions = {}) {
|
|
4590
|
+
const Layout: ComponentType<any> | undefined = ${layoutPath ? "RootLayout" : "undefined"};
|
|
4591
|
+
return {
|
|
4592
|
+
component: Page,
|
|
4593
|
+
parameters: {
|
|
4594
|
+
layout: 'fullscreen',
|
|
4595
|
+
nextjs: { appDirectory: true, navigation: { pathname: route, segments: [] } },
|
|
4596
|
+
},
|
|
4597
|
+
loaders: [
|
|
4598
|
+
async (context: any) => {
|
|
4599
|
+
const params = (await options.generateStaticParams?.())?.[0] ?? {};
|
|
4600
|
+
// The Next.js decorator reads the navigation parameters when it renders, after the loaders.
|
|
4601
|
+
context.parameters.nextjs.navigation = {
|
|
4602
|
+
pathname: fillRoute(route, params),
|
|
4603
|
+
segments: Object.entries(params),
|
|
4604
|
+
};
|
|
4605
|
+
const props = { params: Promise.resolve(params), searchParams: Promise.resolve({}) };
|
|
4606
|
+
const pageNode = isAsync(Page) ? await Page(props) : <Page {...props} />;
|
|
4607
|
+
const slot = <SLOT />;
|
|
4608
|
+
const layoutNode = Layout
|
|
4609
|
+
? isAsync(Layout)
|
|
4610
|
+
? await (Layout as any)({ children: slot, params: props.params })
|
|
4611
|
+
: (Layout as any)({ children: slot, params: props.params })
|
|
4612
|
+
: slot;
|
|
4613
|
+
return { pageNode, layoutNode };
|
|
4614
|
+
},
|
|
4615
|
+
],
|
|
4616
|
+
render: (_args: unknown, { loaded }: any) => chrome(loaded.layoutNode, loaded.pageNode),
|
|
4617
|
+
};
|
|
4618
|
+
}
|
|
4619
|
+
`;
|
|
4620
|
+
}
|
|
4621
|
+
async function pages({
|
|
4622
|
+
cwd = process.cwd(),
|
|
4623
|
+
dryRun = !1
|
|
4624
|
+
} = {}) {
|
|
4625
|
+
let appDir = ["app", "src/app"].find((dir) => existsSync2(join2(cwd, dir)));
|
|
4626
|
+
if (!appDir)
|
|
4627
|
+
throw new Error(
|
|
4628
|
+
"No `app` or `src/app` folder found. This command is for the Next.js App Router."
|
|
4629
|
+
);
|
|
4630
|
+
let result = { written: [], skipped: [] }, helperFile = join2(
|
|
4631
|
+
existsSync2(join2(cwd, ".forkbook")) ? ".forkbook" : ".storybook",
|
|
4632
|
+
HELPER_FILE
|
|
4633
|
+
), helperPath = join2(cwd, helperFile), layoutPath = (await glob(`${appDir}/layout.{tsx,jsx,ts,js}`, { cwd, absolute: !0 }))[0], pageFiles = await glob(`${appDir}/**/page.{tsx,jsx}`, {
|
|
4634
|
+
cwd,
|
|
4635
|
+
ignore: ["**/node_modules/**"]
|
|
4636
|
+
});
|
|
4637
|
+
for (let pageFile of pageFiles.sort()) {
|
|
4638
|
+
let storyFile = join2(cwd, dirname(pageFile), "page.stories.tsx");
|
|
4639
|
+
if ((await glob("page.stories.*", { cwd: join2(cwd, dirname(pageFile)) })).length > 0)
|
|
4640
|
+
continue;
|
|
4641
|
+
let source = await readFile2(join2(cwd, pageFile), "utf8");
|
|
4642
|
+
if (isRedirectOnly(source)) {
|
|
4643
|
+
result.skipped.push(pageFile);
|
|
4644
|
+
continue;
|
|
4645
|
+
}
|
|
4646
|
+
let story = pageStory({
|
|
4647
|
+
storyPath: storyFile,
|
|
4648
|
+
helperPath,
|
|
4649
|
+
route: routeFromPage(relative3(appDir, pageFile)),
|
|
4650
|
+
withStaticParams: hasStaticParams(source)
|
|
4651
|
+
});
|
|
4652
|
+
result.written.push(relative3(cwd, storyFile)), dryRun || await writeFile2(storyFile, story);
|
|
4653
|
+
}
|
|
4654
|
+
return result.written.length > 0 && !existsSync2(helperPath) && (result.helper = helperFile, dryRun || (await mkdir(dirname(helperPath), { recursive: !0 }), await writeFile2(helperPath, pageHelper({ helperPath, layoutPath })))), result;
|
|
4655
|
+
}
|
|
4656
|
+
|
|
4438
4657
|
// src/cli-commands/bin/run.ts
|
|
4439
4658
|
addToGlobalContext("cliVersion", versions["@aussieljk/forkbook"]);
|
|
4440
4659
|
var handleCommandFailure = (logFilePath) => async (error) => {
|
|
@@ -4506,6 +4725,20 @@ command("remove <addon>").description("Remove an addon from your Forkbook").addO
|
|
|
4506
4725
|
}), await telemetry("remove", { addon: addonName, source: "cli" }), logger.outro("Done!");
|
|
4507
4726
|
}).catch(handleCommandFailure(options.logfile))
|
|
4508
4727
|
);
|
|
4728
|
+
command("migrate").description("Move a Storybook project to Forkbook").option("--dry-run", "Print the changes, but do not write them").action(async (options) => {
|
|
4729
|
+
let result = await migrate({ dryRun: options.dryRun, version: String(version) }), verb = options.dryRun ? "Would change" : "Changed";
|
|
4730
|
+
logger.log(`Removed packages: ${result.removedPackages.join(", ") || "none"}`), logger.log(`Added package: ${result.addedPackage}`), logger.log(`${verb} ${result.changedFiles.length} files:`);
|
|
4731
|
+
for (let file of result.changedFiles)
|
|
4732
|
+
logger.log(` ${file}`);
|
|
4733
|
+
logger.log(`Now run ${import_picocolors.default.bold(result.installCommand)}, then read the diff.`);
|
|
4734
|
+
});
|
|
4735
|
+
command("pages").description("Write a story for each Next.js App Router page (also `init --pages`)").option("--dry-run", "Print the files, but do not write them").action(async (options) => {
|
|
4736
|
+
let result = await pages({ dryRun: options.dryRun });
|
|
4737
|
+
for (let file of [result.helper, ...result.written].filter(Boolean))
|
|
4738
|
+
logger.log(`${options.dryRun ? "Would write" : "Wrote"} ${file}`);
|
|
4739
|
+
for (let file of result.skipped)
|
|
4740
|
+
logger.log(`Skipped ${file} (redirect only)`);
|
|
4741
|
+
});
|
|
4509
4742
|
command("info").description("Prints debugging information about the local environment").action(async () => {
|
|
4510
4743
|
logger.log(import_picocolors.default.bold(`
|
|
4511
4744
|
Storybook Environment Info:`));
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
initiate
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-YZWUD7I5.js";
|
|
15
|
+
import "./chunk-JTLOSDYL.js";
|
|
16
|
+
import "./chunk-F3SAYS4R.js";
|
|
17
17
|
import {
|
|
18
18
|
version
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UGXN7JTT.js";
|
|
20
20
|
import {
|
|
21
21
|
e,
|
|
22
22
|
i
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-EAL4RVEF.js";
|
|
24
|
+
import "./chunk-CENNLCU7.js";
|
|
25
|
+
import "./chunk-BRHJ4P3A.js";
|
|
26
|
+
import "./chunk-M7ZVSBNU.js";
|
|
27
|
+
import "./chunk-SWHTDOB4.js";
|
|
28
|
+
import "./chunk-3ZCGT6VF.js";
|
|
29
|
+
import "./chunk-NLPC2DDQ.js";
|
|
30
30
|
|
|
31
31
|
// src/create/bin/run.ts
|
|
32
32
|
import { ProjectType } from "@aussieljk/forkbook/internal/cli";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
SESSION_TIMEOUT,
|
|
14
|
+
getSessionId,
|
|
15
|
+
resetSessionIdForTest
|
|
16
|
+
} from "./chunk-ZIDIYSJQ.js";
|
|
17
|
+
import "./chunk-MF3AT3JQ.js";
|
|
18
|
+
import "./chunk-NLPC2DDQ.js";
|
|
19
|
+
export {
|
|
20
|
+
SESSION_TIMEOUT,
|
|
21
|
+
getSessionId,
|
|
22
|
+
resetSessionIdForTest
|
|
23
|
+
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
getTypeImportSource
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-SHH7JROR.js";
|
|
15
|
+
import "./chunk-NLPC2DDQ.js";
|
|
16
16
|
|
|
17
17
|
// src/cli/skills/content/setup-prompts/setup.ts
|
|
18
18
|
import { getVitestStorybookRunCommand } from "@aussieljk/forkbook/internal/common";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-NLPC2DDQ.js";
|
|
13
13
|
|
|
14
14
|
// raw:../../assets/addon-vitest/templates/vitest.config.4.template.ts
|
|
15
15
|
var vitest_config_4_template_default = `import path from 'node:path';
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
} from "../_browser-chunks/chunk-OZZPSYQR.js";
|
|
15
15
|
import {
|
|
16
16
|
index_parts_exports
|
|
17
|
-
} from "../_browser-chunks/chunk-
|
|
18
|
-
import "../_browser-chunks/chunk-
|
|
17
|
+
} from "../_browser-chunks/chunk-E47B5255.js";
|
|
18
|
+
import "../_browser-chunks/chunk-DAUHYZUB.js";
|
|
19
19
|
import "../_browser-chunks/chunk-IMSF75WX.js";
|
|
20
20
|
|
|
21
21
|
// src/addon-a11y/manager.tsx
|
|
@@ -905,7 +905,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id}"]
|
|
|
905
905
|
let style = document.createElement("style");
|
|
906
906
|
style.setAttribute("data-fb-css", id), style.textContent = ".fb-fcntIq-syntaxHighlighter{font-size:var(--fb-size-s1)}.fb-fcntIq-info{flex-direction:column;display:flex}.fb-fcntIq-ruleId{color:var(--fb-text-muted-color);font-family:var(--fb-font-mono);font-size:var(--fb-size-s1);margin-top:-8px;margin-bottom:12px;display:block;@container (width>=800px){display:none}}.fb-fcntIq-description{margin:0}.fb-fcntIq-wrapper{flex-direction:column;gap:20px;padding:0 15px 20px;display:flex}.fb-fcntIq-columns{gap:15px;@container (width>=800px){grid-template-columns:50% 50%;display:grid}}.fb-fcntIq-content{border-left:none;flex-direction:column;gap:15px;margin:0;padding:0;display:none;&[data-side=left]{border-left:1px solid var(--fb-color-border);margin:15px 0;padding:0 15px;display:flex}&:focus-visible{box-shadow:0 0 0 1px inset var(--fb-color-secondary);border-radius:4px;outline:none}@container (width>=800px){display:flex;&[data-side=left]{display:none}}}.fb-fcntIq-item{font-family:var(--fb-font-mono);font-weight:var(--fb-weight-regular);color:var(--fb-text-muted-color);text-overflow:ellipsis;white-space:nowrap;text-align:left;width:100%;height:40px;padding:0 12px;display:block;overflow:hidden;&[data-active]{color:var(--fb-color-secondary);background-color:var(--fb-background-hoverable)}}.fb-fcntIq-messages{flex-direction:column;gap:10px;display:flex}.fb-fcntIq-actions{gap:10px;display:flex}", document.head.appendChild(style);
|
|
907
907
|
}
|
|
908
|
-
var Details_default = {
|
|
908
|
+
var Details_default = { columns: "fb-fcntIq-columns", info: "fb-fcntIq-info", messages: "fb-fcntIq-messages", ruleId: "fb-fcntIq-ruleId", actions: "fb-fcntIq-actions", syntaxHighlighter: "fb-fcntIq-syntaxHighlighter", content: "fb-fcntIq-content", wrapper: "fb-fcntIq-wrapper", item: "fb-fcntIq-item", description: "fb-fcntIq-description" };
|
|
909
909
|
|
|
910
910
|
// src/addon-a11y/components/Report/Details.tsx
|
|
911
911
|
import { Fragment as Fragment2, jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
@@ -1025,7 +1025,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id2}"
|
|
|
1025
1025
|
let style = document.createElement("style");
|
|
1026
1026
|
style.setAttribute("data-fb-css", id2), style.textContent = ".fb-Rcvs-q-wrapper{border-bottom:1px solid var(--fb-app-border-color);width:100%;font-size:var(--fb-size-s2);flex-direction:column;display:flex;container-type:inline-size}.fb-Rcvs-q-icon{transition:transform .1s ease-in-out}.fb-Rcvs-q-headerBar{min-height:40px;color:inherit;text-align:left;cursor:pointer;background:0 0;justify-content:space-between;align-items:center;gap:6px;width:100%;padding:6px 10px 6px 15px;display:flex;&:hover{color:var(--fb-color-secondary)}}.fb-Rcvs-q-title{font-size:var(--fb-size-s2);flex-grow:1;align-items:baseline;gap:8px;display:flex}.fb-Rcvs-q-ruleId{color:var(--fb-text-muted-color);font-family:var(--fb-font-mono);font-size:var(--fb-size-s1);display:none;@container (width>=800px){display:block}}.fb-Rcvs-q-count{color:var(--fb-text-muted-color);justify-content:center;align-items:center;width:28px;height:28px;display:flex}", document.head.appendChild(style);
|
|
1027
1027
|
}
|
|
1028
|
-
var Report_default = {
|
|
1028
|
+
var Report_default = { headerBar: "fb-Rcvs-q-headerBar", title: "fb-Rcvs-q-title", wrapper: "fb-Rcvs-q-wrapper", count: "fb-Rcvs-q-count", icon: "fb-Rcvs-q-icon", ruleId: "fb-Rcvs-q-ruleId" };
|
|
1029
1029
|
|
|
1030
1030
|
// src/addon-a11y/components/Report/Report.tsx
|
|
1031
1031
|
import { Fragment as Fragment3, jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
@@ -1113,7 +1113,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id3}"
|
|
|
1113
1113
|
let style = document.createElement("style");
|
|
1114
1114
|
style.setAttribute("data-fb-css", id3), style.textContent = ".fb-bXrCLq-container{flex-direction:column;width:100%;height:100%;display:flex;position:relative;overflow:hidden}.fb-bXrCLq-actions{justify-content:flex-end;gap:6px;display:flex}", document.head.appendChild(style);
|
|
1115
1115
|
}
|
|
1116
|
-
var Tabs_default = {
|
|
1116
|
+
var Tabs_default = { container: "fb-bXrCLq-container", actions: "fb-bXrCLq-actions" };
|
|
1117
1117
|
|
|
1118
1118
|
// src/addon-a11y/components/Tabs.tsx
|
|
1119
1119
|
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
@@ -1222,7 +1222,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id5}"
|
|
|
1222
1222
|
let style = document.createElement("style");
|
|
1223
1223
|
style.setAttribute("data-fb-css", id5), style.textContent = ".fb-qxvdxW-rotatingIcon{margin:4px;animation:1s linear infinite fb-qxvdxW-rotate360}@keyframes fb-qxvdxW-rotate360{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.fb-qxvdxW-tab{align-items:center;gap:6px;display:flex}.fb-qxvdxW-centered{text-align:center;font-size:var(--fb-size-s2);flex-direction:column;justify-content:center;align-items:center;gap:24px;height:100%;display:flex;& div{flex-direction:column;align-items:center;gap:8px;display:flex}& p{color:var(--fb-text-muted-color);margin:0}& code{font-size:calc(var(--fb-size-s2) - 1px);background-color:var(--fb-background-app);border:1px solid var(--fb-color-border);border-radius:4px;padding:2px 3px;display:inline-block}}", document.head.appendChild(style);
|
|
1224
1224
|
}
|
|
1225
|
-
var A11YPanel_default = { tab: "fb-qxvdxW-tab",
|
|
1225
|
+
var A11YPanel_default = { tab: "fb-qxvdxW-tab", rotatingIcon: "fb-qxvdxW-rotatingIcon", rotate360: "fb-qxvdxW-rotate360", centered: "fb-qxvdxW-centered" };
|
|
1226
1226
|
|
|
1227
1227
|
// src/addon-a11y/components/A11YPanel.tsx
|
|
1228
1228
|
import { Fragment as Fragment4, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j88npgqhy9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j88npgqhy9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j88npgqhy9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j88npgqhy9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j88npgqhy9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
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-NLPC2DDQ.js";
|
|
13
13
|
|
|
14
14
|
// src/addon-a11y/preset.ts
|
|
15
15
|
var isAddonA11yEnabled = !0;
|