@aussieljk/forkbook 0.0.1-7 → 0.0.1-9
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/assets/create/templates/react-native/index.expo.js +4 -4
- package/assets/create/templates/react-native/index.js +5 -5
- package/assets/server/template.ejs +13 -0
- package/dist/_browser-chunks/{Color-2YRIFQLC.js → Color-GEC6HRBY.js} +2 -2
- package/dist/_browser-chunks/{WithTooltip-4R5JMWZ7.js → WithTooltip-CS3HPMGA.js} +6 -4
- package/dist/_browser-chunks/{chunk-4EFKUJG2.js → chunk-6QEYM2YW.js} +25 -25
- package/dist/_browser-chunks/chunk-C5TKXHTM.js +82 -0
- package/dist/_browser-chunks/{chunk-WVF42CP2.js → chunk-DNJ3OSLB.js} +46 -52
- package/dist/_browser-chunks/{chunk-E47B5255.js → chunk-IFADVEQE.js} +63 -543
- package/dist/_browser-chunks/chunk-NPNIBOPF.js +18 -0
- package/dist/_browser-chunks/{chunk-YYWKZ7O3.js → chunk-NTUHL5NS.js} +5 -2
- package/dist/_browser-chunks/chunk-OOETBSA7.js +502 -0
- package/dist/_browser-chunks/{chunk-HTL5ODCB.js → chunk-PFCGVFP6.js} +3 -3
- package/dist/_browser-chunks/{chunk-H4ZHAXN3.js → chunk-V5U45XXZ.js} +1 -1
- package/dist/_browser-chunks/chunk-XKTORVEQ.js +255 -0
- package/dist/_browser-chunks/{chunk-DAUHYZUB.js → chunk-XTQCLWVH.js} +255 -494
- package/dist/_browser-chunks/{chunk-SFMQDIN2.js → chunk-ZHKZKFY4.js} +1 -1
- package/dist/_node-chunks/{attached-runtime-WFZCCGUB.js → attached-runtime-OI5IEIR7.js} +30 -30
- package/dist/_node-chunks/builder-manager-JEIVVV43.js +1139 -0
- package/dist/_node-chunks/{chunk-R6AKCXPH.js → chunk-2FWH7OUZ.js} +7 -7
- package/dist/_node-chunks/{chunk-MF5BYASO.js → chunk-2QPSOAHI.js} +6 -6
- package/dist/_node-chunks/{chunk-PQLXHVWK.js → chunk-2T2S3YYS.js} +6 -6
- package/dist/_node-chunks/{chunk-MF3AT3JQ.js → chunk-35JF5BS4.js} +6 -6
- package/dist/_node-chunks/{chunk-KHWCZDIW.js → chunk-3I43FMZC.js} +7 -7
- package/dist/_node-chunks/{chunk-7PMQPS5E.js → chunk-3R57KO3F.js} +10 -10
- package/dist/_node-chunks/chunk-4CWEAS2M.js +11 -0
- package/dist/_node-chunks/{chunk-CNMMDQC3.js → chunk-4HYKKRBM.js} +13 -15
- package/dist/_node-chunks/{chunk-CBBFNVFZ.js → chunk-4W6HJYYC.js} +7 -7
- package/dist/_node-chunks/{chunk-6K3ZE4HN.js → chunk-57BBVTHQ.js} +6 -6
- package/dist/_node-chunks/{chunk-RZ7UEP4N.js → chunk-5MDE2KCS.js} +6 -6
- package/dist/_node-chunks/{chunk-JPHSU5OI.js → chunk-5NCRCPYK.js} +6 -6
- package/dist/_node-chunks/{chunk-CENNLCU7.js → chunk-6O6BHNDO.js} +7 -7
- package/dist/_node-chunks/{chunk-LZYYZ62Y.js → chunk-7PZDRNVT.js} +6 -6
- package/dist/_node-chunks/{chunk-QSP42ZBM.js → chunk-7X5WP3UJ.js} +6 -6
- package/dist/_node-chunks/{chunk-JDKYP7FW.js → chunk-7XYURNT2.js} +10 -10
- package/dist/_node-chunks/{chunk-HUMAXGH2.js → chunk-AONRQAQP.js} +6 -6
- package/dist/_node-chunks/{chunk-KWER36VB.js → chunk-ASFRQHZH.js} +6 -6
- package/dist/_node-chunks/{chunk-UNCBLHIP.js → chunk-AUY6EZPA.js} +10 -10
- package/dist/_node-chunks/{chunk-P3GOMPP3.js → chunk-BCFTMBAH.js} +7 -7
- package/dist/_node-chunks/{chunk-MRWBN46D.js → chunk-BEHNZYWF.js} +8 -8
- package/dist/_node-chunks/{chunk-UPJMGWMZ.js → chunk-BZNVRJ6H.js} +7 -7
- package/dist/_node-chunks/{chunk-ZSGOW4WQ.js → chunk-CHLWJ5F5.js} +6 -6
- package/dist/_node-chunks/{chunk-F3SAYS4R.js → chunk-CMDR42D7.js} +6 -6
- package/dist/_node-chunks/{chunk-QWRQXG2V.js → chunk-CP646EXE.js} +8 -8
- package/dist/_node-chunks/chunk-DDRGY4RJ.js +57 -0
- package/dist/_node-chunks/{chunk-NQAFLS5U.js → chunk-DMDIIGJ4.js} +7 -7
- package/dist/_node-chunks/{chunk-WHOF2BJB.js → chunk-DTZELAXT.js} +7 -7
- package/dist/_node-chunks/{chunk-BQC6WCUS.js → chunk-ELMANXC3.js} +6 -6
- package/dist/_node-chunks/{chunk-SHH7JROR.js → chunk-ELXK72IJ.js} +6 -6
- package/dist/_node-chunks/{chunk-LJTP5PAJ.js → chunk-F6RXCQF6.js} +6 -6
- package/dist/_node-chunks/{chunk-M7ZVSBNU.js → chunk-FKQHIPUA.js} +6 -6
- package/dist/_node-chunks/{chunk-X63YMAHP.js → chunk-FPWDVE2V.js} +7 -7
- package/dist/_node-chunks/{chunk-J3Q56GX3.js → chunk-FVJLKXNS.js} +23 -23
- package/dist/_node-chunks/{chunk-NUYBFTOU.js → chunk-GABGLW7D.js} +7 -7
- package/dist/_node-chunks/{chunk-Y6G64J5S.js → chunk-GOZDHTIK.js} +6 -6
- package/dist/_node-chunks/{chunk-QWDR5OWQ.js → chunk-GPSR4MZL.js} +15 -15
- package/dist/_node-chunks/{chunk-JED5F3H2.js → chunk-GZ2YC6US.js} +6 -6
- package/dist/_node-chunks/chunk-H5HD6EW2.js +28 -0
- package/dist/_node-chunks/{chunk-I535GEPH.js → chunk-I6ANUF4J.js} +7 -7
- package/dist/_node-chunks/{chunk-MJFMB4WD.js → chunk-ICIP5FB5.js} +9 -9
- package/dist/_node-chunks/{chunk-O7VJA7SM.js → chunk-IK35TZRH.js} +7 -7
- package/dist/_node-chunks/{chunk-5PYQ573S.js → chunk-IOJ6NYLD.js} +7 -7
- package/dist/_node-chunks/{chunk-ESZIQTUH.js → chunk-IWEZ5KSJ.js} +7 -7
- package/dist/_node-chunks/{chunk-SWHTDOB4.js → chunk-JOOZKSBS.js} +7 -7
- package/dist/_node-chunks/{chunk-G2AANC4A.js → chunk-JXVJAA3U.js} +6 -6
- package/dist/_node-chunks/{chunk-ATX7SHS7.js → chunk-K6VX4GUH.js} +8 -8
- package/dist/_node-chunks/{chunk-ESCZ2NSB.js → chunk-L7US6VLX.js} +6 -6
- package/dist/_node-chunks/{chunk-UVV24PG4.js → chunk-LKMHU2P3.js} +7 -7
- package/dist/_node-chunks/{chunk-CDFQORVD.js → chunk-LMWS7NDR.js} +7 -7
- package/dist/_node-chunks/{chunk-WME5NEJA.js → chunk-LPDII6WJ.js} +6 -6
- package/dist/_node-chunks/{chunk-ZIDIYSJQ.js → chunk-MBJ2CUVU.js} +7 -7
- package/dist/_node-chunks/{chunk-6QZ3PX5R.js → chunk-MGXABKCL.js} +7 -7
- package/dist/_node-chunks/{chunk-BR4WDRY6.js → chunk-MHLTWQGQ.js} +8 -8
- package/dist/_node-chunks/{chunk-Q6QRFKHB.js → chunk-MMMKY3DA.js} +8 -8
- package/dist/_node-chunks/{chunk-WBB4NQ6H.js → chunk-MXNT3HBF.js} +6 -6
- package/dist/_node-chunks/{chunk-64JPAW3T.js → chunk-O7WMRMVJ.js} +6 -6
- package/dist/_node-chunks/{chunk-NSZGBFPR.js → chunk-OPLD7FOE.js} +6 -6
- package/dist/_node-chunks/{chunk-MBIIJTGQ.js → chunk-P4CWOISW.js} +7 -7
- package/dist/_node-chunks/{chunk-OGJ7LDX3.js → chunk-POXIO453.js} +7 -7
- package/dist/_node-chunks/{chunk-BRHJ4P3A.js → chunk-PRTTCG3N.js} +6 -6
- package/dist/_node-chunks/{chunk-K5RUOW42.js → chunk-QE3NKWUX.js} +7 -7
- package/dist/_node-chunks/{chunk-SZYMLCHF.js → chunk-QMERCCIQ.js} +6 -6
- package/dist/_node-chunks/{chunk-U3E7E4Q2.js → chunk-QVF2NJK4.js} +10 -10
- package/dist/_node-chunks/{chunk-YZWUD7I5.js → chunk-R33EXC6B.js} +50 -50
- package/dist/_node-chunks/{chunk-JQICISDD.js → chunk-R3BJJGEG.js} +6 -6
- package/dist/_node-chunks/chunk-REDMAZRP.js +18 -0
- package/dist/_node-chunks/{chunk-7V5AOV2J.js → chunk-RJV4QWRP.js} +7 -7
- package/dist/_node-chunks/{chunk-3ZCGT6VF.js → chunk-RXEMA2TT.js} +6 -6
- package/dist/_node-chunks/{chunk-S3HB4EWT.js → chunk-TKOUTJWX.js} +8 -8
- package/dist/_node-chunks/{chunk-TOGDRW2W.js → chunk-TRZWEDUE.js} +6 -6
- package/dist/_node-chunks/{chunk-YVIPYJ53.js → chunk-U3BEYEZ5.js} +8 -8
- package/dist/_node-chunks/{chunk-UF6Q6L5C.js → chunk-UI6NW64P.js} +125 -144
- package/dist/_node-chunks/chunk-UK2NKD4E.js +532 -0
- package/dist/_node-chunks/{chunk-JMS4H7QB.js → chunk-VF6725VX.js} +7 -7
- package/dist/_node-chunks/{chunk-7HVDL6M3.js → chunk-VJJTMS2R.js} +9 -9
- package/dist/_node-chunks/{chunk-7VHCAGBJ.js → chunk-VQBXHU2T.js} +8 -8
- package/dist/_node-chunks/{chunk-DT45EUDD.js → chunk-VZ3PQJKF.js} +27 -32
- package/dist/_node-chunks/{chunk-6CB3XSQ2.js → chunk-WI6FDUOM.js} +8 -8
- package/dist/_node-chunks/{chunk-U6DHF3RM.js → chunk-WTS7HYGM.js} +7 -7
- package/dist/_node-chunks/{chunk-OWT6AVWK.js → chunk-WXMIR2F2.js} +8 -8
- package/dist/_node-chunks/{chunk-FVFSSIGA.js → chunk-XA2UQNP3.js} +10 -10
- package/dist/_node-chunks/{chunk-FTUQ7T3V.js → chunk-Y2FWEOIW.js} +8 -8
- package/dist/_node-chunks/{chunk-EAL4RVEF.js → chunk-Y5JLYH6J.js} +6 -6
- package/dist/_node-chunks/{chunk-JOSJ64KD.js → chunk-YELBVH4K.js} +7 -7
- package/dist/_node-chunks/{chunk-MZQXEAI6.js → chunk-YK5N35SR.js} +9 -9
- package/dist/_node-chunks/{chunk-4HGC3G6B.js → chunk-YLXOGJX6.js} +21 -9
- package/dist/_node-chunks/{chunk-NLPC2DDQ.js → chunk-YSVJU5VZ.js} +6 -6
- package/dist/_node-chunks/{chunk-RCY7TLET.js → chunk-ZFTEHWNT.js} +8 -8
- package/dist/_node-chunks/{chunk-JTLOSDYL.js → chunk-ZLBDSC7U.js} +9 -9
- package/dist/_node-chunks/{chunk-UAG3XK32.js → chunk-ZMI35R7E.js} +47 -36
- package/dist/_node-chunks/{chunk-RKKMQA6N.js → chunk-ZOE2QQSS.js} +8 -8
- package/dist/_node-chunks/{chunk-DMDZPUHM.js → chunk-ZST2SPBX.js} +6 -6
- package/dist/_node-chunks/{chunk-Y2GHAOKI.js → chunk-ZUYRTHXN.js} +6 -6
- package/dist/_node-chunks/dist-FABQFQ76.js +27 -0
- package/dist/_node-chunks/dist-ZUXZVI3A.js +16 -0
- package/dist/_node-chunks/{local-runtime-UN5QK2SE.js → local-runtime-LKT5I6NG.js} +20 -20
- package/dist/_node-chunks/{mdx-plugin-6M6CMNL3.js → mdx-plugin-2YIBFVCV.js} +13 -13
- package/dist/_node-chunks/{monorepo-253VKW4B.js → monorepo-HROZW452.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-3ZOE54OQ.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-MUIOTVJR.js} +11 -11
- package/dist/_node-chunks/optimized-tests-EK5H7MUQ.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-CCCJRMSL.js → pattern-copy-play-VQNMME5S.js} +11 -11
- package/dist/_node-chunks/postinstallAddon-T4RENREB.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-LJTPLCGD.js → rehype-external-links-WXD3NVWK.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-KQI7ULEZ.js → rehype-slug-LWBEJBWR.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-MUE2NI7S.js → relaxed-limits-MKV6OE3S.js} +11 -11
- package/dist/_node-chunks/{run-SYLR25HA.js → run-A4A2HQDT.js} +17 -17
- package/dist/_node-chunks/{run-PGZMPNMS.js → run-UBPF7ZUG.js} +53 -26
- package/dist/_node-chunks/session-id-YZZIHNID.js +23 -0
- package/dist/_node-chunks/{setup-XZWSUYPG.js → setup-SMMCS2Q5.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-T25YYRGV.js → vitest.config.4.template-PYSDGPB4.js} +7 -7
- package/dist/addon-a11y/index.js +1 -1
- package/dist/addon-a11y/manager.js +19 -23
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.js +1 -1
- package/dist/addon-docs/blocks.js +21 -27
- package/dist/addon-docs/manager.js +2 -2
- package/dist/addon-docs/preset.js +10 -10
- package/dist/addon-links/index.js +4 -2
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-links/preview.js +4 -2
- package/dist/addon-links/react/index.js +3 -1
- package/dist/addon-mcp/preset.js +10 -10
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +8 -10
- package/dist/addon-pseudo-states/manager.js +2 -2
- package/dist/addon-themes/manager.js +3 -3
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +8 -8
- 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 +15 -15
- package/dist/addon-vitest/vitest-plugin/setup-file.js +1 -1
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +62 -62
- package/dist/bin/dispatcher.js +13 -16
- 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-B_ZhEPlo.d.ts → chunk-BhAPwdVB.d.ts} +1 -1
- package/dist/{chunk-DuDsmeM7.d.ts → chunk-CFk6djyM.d.ts} +4 -4
- package/dist/{chunk-CMaYrou5.d.ts → chunk-DXsI731B.d.ts} +1 -1
- package/dist/{chunk-BWzbIWPz.d.ts → chunk-Dw_4ad2Y.d.ts} +5 -5
- package/dist/{chunk-LrH1y9J2.d.ts → chunk-PdOIKm0H.d.ts} +42 -9
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +22 -22
- package/dist/cli/skills/content/index.d.ts +1 -1
- package/dist/cli/skills/content/index.js +2 -2
- 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 +14 -27
- package/dist/common/index.js +36 -40
- package/dist/components/index.d.ts +38 -1
- package/dist/components/index.js +597 -522
- package/dist/core-server/index.d.ts +6 -6
- package/dist/core-server/index.js +283 -174
- package/dist/core-server/presets/common-manager.js +492 -118
- package/dist/core-server/presets/common-override-preset.js +10 -10
- package/dist/core-server/presets/common-preset.js +51 -43
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf-tools/index.d.ts +3 -1
- package/dist/csf-tools/index.js +14 -12
- package/dist/manager/_manager-chunks/{globals-runtime-CI-C7ncS.js → globals-runtime-B1q30If4.js} +4 -4
- package/dist/manager/_manager-chunks/{globals-runtime-4fCHtNC6.js → globals-runtime-BY3epqww.js} +413 -2
- package/dist/manager/_manager-chunks/globals-runtime-Bj5KDUJi.js +8935 -0
- package/dist/manager/_manager-chunks/{globals-runtime-Bpc_ftuT.js → globals-runtime-Bs75QQ_I.js} +3 -1192
- package/dist/manager/_manager-chunks/{globals-runtime-D82vqOGq.js → globals-runtime-BweHuXkK.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-BKPOYSwp.js → globals-runtime-C4GdZS7_.js} +4 -4
- package/dist/manager/_manager-chunks/{globals-runtime-DB8fVA5g.js → globals-runtime-CA8AuIRT.js} +2 -1
- package/dist/manager/_manager-chunks/{globals-runtime-CzEhVGVp.js → globals-runtime-CnfHMZV0.js} +153 -27
- package/dist/manager/_manager-chunks/{globals-runtime-BMIT8BJb.js → globals-runtime-DgHSAUIB.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-kmPSyf3j.js → globals-runtime-DvV_TF3-.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-DMq1Phbl.js → globals-runtime-FcobHVj9.js} +480 -375
- package/dist/manager/_manager-chunks/{globals-runtime-CoCzM1V_.js → globals-runtime-WZKaeKm9.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-CI_p54Ha.js → globals-runtime-dh5vgpgm.js} +238 -232
- package/dist/manager/_manager-chunks/{globals-runtime-DOPUchia.js → globals-runtime-wjkxyMn0.js} +4 -3
- package/dist/manager/_manager-chunks/{runtime-Cf0p9DUx.js → runtime-BSkBrZa7.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-D09XMY6V.js → runtime-Bdda1ODD.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-B4U0u9p4.js → runtime-Bp_XtatN.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-D-nYLsdk.js → runtime-D-bkVc6v.js} +32 -31
- package/dist/manager/_manager-chunks/{runtime-DzxaTqVN.js → runtime-DP_7wWTN.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-BM30BmeT.js → runtime-DlX-MKi1.js} +335 -327
- package/dist/manager/_manager-chunks/{runtime-ecY5qnmo.js → runtime-TytMkKcC.js} +339 -240
- package/dist/manager/_manager-chunks/{runtime-DvrwKw7z.js → runtime-jOBCBZ66.js} +98 -61
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/globals.d.ts +1 -1
- package/dist/manager/globals.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 +34 -9
- 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/index.d.ts +2 -2
- package/dist/nextjs-vite/node/index.d.ts +2 -2
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/preset.js +11 -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-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 +12 -12
- package/dist/react-native/index.d.ts +8 -8
- package/dist/react-native/index.js +3 -3
- package/dist/react-native/metro/node.js +10 -10
- package/dist/react-native/metro/{withStorybook.d.ts → withForkbook.d.ts} +9 -9
- package/dist/react-native/metro/{withStorybook.js → withForkbook.js} +16 -16
- package/dist/react-native/scripts/generate.d.ts +1 -1
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-native/stub.js +1 -1
- package/dist/react-vite/index.d.ts +2 -2
- package/dist/react-vite/node/index.d.ts +3 -3
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +7 -7
- package/dist/router/index.d.ts +69 -1
- package/dist/router/index.js +48 -8
- 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.d.ts +3 -3
- package/dist/telemetry/index.js +43 -43
- package/dist/theming/index.js +13 -9
- package/dist/types/index.d.ts +2 -2
- package/package.json +7 -9
- package/dist/_node-chunks/builder-manager-DHKHRZK4.js +0 -1623
- package/dist/_node-chunks/chunk-EFFWFE6W.js +0 -11
- package/dist/_node-chunks/chunk-UGXN7JTT.js +0 -18
- package/dist/_node-chunks/dist-5EG56KTF.js +0 -16
- package/dist/_node-chunks/dist-UEXSNGGQ.js +0 -27
- package/dist/_node-chunks/optimized-tests-JSWLRMEI.js +0 -22
- package/dist/_node-chunks/postinstallAddon-VMANBHPR.js +0 -20
- package/dist/_node-chunks/session-id-J4A25UQ6.js +0 -23
- package/dist/manager/_manager-chunks/globals-runtime-BMCaBukU.js +0 -413
- package/dist/manager/_manager-chunks/globals-runtime-BO0pfoqL.js +0 -3414
- package/dist/manager/_manager-chunks/globals-runtime-BZKYJxYC.js +0 -2093
- package/dist/manager/_manager-chunks/globals-runtime-CTyYXvUm.js +0 -41
- package/dist/manager/_manager-chunks/globals-runtime-Dbt08xWQ.js +0 -1960
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as __esmMin } from "./runtime-BdGkqNEt.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as StatusTypeIdMismatchError$2, o as UniversalStoreFollowerTimeoutError, s as init_manager_errors } from "./runtime-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { $t as useStorybookApi, Dr as useEffect, Er as useDebugValue, Fr as useSyncExternalStore, L as Icons, Nr as useRef, Pr as useState, R as init_icon, St as init_components, Vt as init_manager_api, Xt as useGlobals, Yt as useGlobalTypes, jr as useMemo, mr as _storybook_global_react_default, ot as Select, st as Separator, wr as useCallback, xr as init__storybook_global_react } from "./runtime-DlX-MKi1.js";
|
|
3
|
+
import { a as init_constants$1 } from "./runtime-Bdda1ODD.js";
|
|
4
|
+
import { a as StatusTypeIdMismatchError$2, o as UniversalStoreFollowerTimeoutError, s as init_manager_errors } from "./runtime-TytMkKcC.js";
|
|
5
|
+
import { i as init_esm, r as dedent } from "./runtime-Bp_XtatN.js";
|
|
6
|
+
import { l as init_isEqual, u as isEqual } from "./runtime-BSkBrZa7.js";
|
|
7
7
|
//#region src/shared/global.ts
|
|
8
8
|
var global;
|
|
9
9
|
function init_global() {
|
|
@@ -231,6 +231,98 @@ function init_ToolbarManager() {
|
|
|
231
231
|
})))();
|
|
232
232
|
}
|
|
233
233
|
//#endregion
|
|
234
|
+
//#region src/shared/constants/iframe-resize.ts
|
|
235
|
+
var IFRAME_RESIZE_REQUEST_CONTEXT, isPositiveFinite, parseViewport, parseIframeResizeMessage, hasFixedViewportDimensions, iframeResizeViewportsEqual, iframeResizeDimensionsEqual;
|
|
236
|
+
function init_iframe_resize() {
|
|
237
|
+
return (init_iframe_resize = __esmMin((() => {
|
|
238
|
+
init_constants$1();
|
|
239
|
+
IFRAME_RESIZE_REQUEST_CONTEXT = "iframe.resize.request";
|
|
240
|
+
isPositiveFinite = (value) => typeof value === "number" && Number.isFinite(value) && value > 0;
|
|
241
|
+
parseViewport = (value) => {
|
|
242
|
+
if (!value || typeof value !== "object") return;
|
|
243
|
+
const viewport = value;
|
|
244
|
+
if (typeof viewport.name !== "string" || typeof viewport.value !== "string") return;
|
|
245
|
+
const parsed = {
|
|
246
|
+
name: viewport.name,
|
|
247
|
+
value: viewport.value
|
|
248
|
+
};
|
|
249
|
+
if (viewport.width !== void 0) {
|
|
250
|
+
if (!isPositiveFinite(viewport.width)) return;
|
|
251
|
+
parsed.width = viewport.width;
|
|
252
|
+
}
|
|
253
|
+
if (viewport.height !== void 0) {
|
|
254
|
+
if (!isPositiveFinite(viewport.height)) return;
|
|
255
|
+
parsed.height = viewport.height;
|
|
256
|
+
}
|
|
257
|
+
return parsed;
|
|
258
|
+
};
|
|
259
|
+
parseIframeResizeMessage = (data) => {
|
|
260
|
+
try {
|
|
261
|
+
const parsed = typeof data === "string" ? JSON.parse(data) : data;
|
|
262
|
+
if (parsed?.context !== "iframe.resize") return null;
|
|
263
|
+
if (!isPositiveFinite(parsed.width) || !isPositiveFinite(parsed.height)) return null;
|
|
264
|
+
const viewport = parseViewport(parsed.viewport);
|
|
265
|
+
if (parsed.viewport !== void 0 && viewport === void 0) return null;
|
|
266
|
+
return {
|
|
267
|
+
width: parsed.width,
|
|
268
|
+
height: parsed.height,
|
|
269
|
+
...viewport ? { viewport } : {}
|
|
270
|
+
};
|
|
271
|
+
} catch {
|
|
272
|
+
return null;
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
hasFixedViewportDimensions = (viewport) => !!viewport && viewport.value !== "100pct-100pct" && typeof viewport.width === "number" && viewport.width > 0 && typeof viewport.height === "number" && viewport.height > 0;
|
|
276
|
+
iframeResizeViewportsEqual = (left, right) => {
|
|
277
|
+
if (left === right) return true;
|
|
278
|
+
if (!left || !right) return !left && !right;
|
|
279
|
+
return left.name === right.name && left.value === right.value && left.width === right.width && left.height === right.height;
|
|
280
|
+
};
|
|
281
|
+
iframeResizeDimensionsEqual = (left, right) => {
|
|
282
|
+
if (!left) return false;
|
|
283
|
+
if (left.width !== right.width || left.height !== right.height) return false;
|
|
284
|
+
return iframeResizeViewportsEqual(left.viewport, right.viewport);
|
|
285
|
+
};
|
|
286
|
+
})))();
|
|
287
|
+
}
|
|
288
|
+
//#endregion
|
|
289
|
+
//#region src/shared/story-grid.ts
|
|
290
|
+
var isGridEntry, groupEntriesByComponent;
|
|
291
|
+
function init_story_grid() {
|
|
292
|
+
return (init_story_grid = __esmMin((() => {
|
|
293
|
+
isGridEntry = (entry, hiddenImportPath) => entry.importPath !== hiddenImportPath && (entry.type === "docs" || entry.type === "story" && entry.subtype !== "test");
|
|
294
|
+
groupEntriesByComponent = (entries, { hiddenImportPath } = {}) => {
|
|
295
|
+
const byTitle = /* @__PURE__ */ new Map();
|
|
296
|
+
for (const entry of entries) {
|
|
297
|
+
if (!isGridEntry(entry, hiddenImportPath)) continue;
|
|
298
|
+
let component = byTitle.get(entry.title);
|
|
299
|
+
if (!component) {
|
|
300
|
+
component = {
|
|
301
|
+
title: entry.title,
|
|
302
|
+
name: entry.title.split("/").pop() ?? entry.title,
|
|
303
|
+
entryId: entry.id,
|
|
304
|
+
viewMode: entry.type,
|
|
305
|
+
storyIds: []
|
|
306
|
+
};
|
|
307
|
+
byTitle.set(entry.title, component);
|
|
308
|
+
}
|
|
309
|
+
if (entry.type === "docs" && component.viewMode !== "docs") {
|
|
310
|
+
component.entryId = entry.id;
|
|
311
|
+
component.viewMode = "docs";
|
|
312
|
+
}
|
|
313
|
+
if (entry.type === "story") {
|
|
314
|
+
component.storyIds.push(entry.id);
|
|
315
|
+
if (!component.firstStoryId) {
|
|
316
|
+
component.firstStoryId = entry.id;
|
|
317
|
+
component.thumbnail = entry.thumbnail ?? component.thumbnail;
|
|
318
|
+
}
|
|
319
|
+
} else component.thumbnail ??= entry.thumbnail;
|
|
320
|
+
}
|
|
321
|
+
return [...byTitle.values()];
|
|
322
|
+
};
|
|
323
|
+
})))();
|
|
324
|
+
}
|
|
325
|
+
//#endregion
|
|
234
326
|
//#region src/shared/review/routes.ts
|
|
235
327
|
var REVIEW_COLLECTION_QUERY_PARAM, isReviewSummaryPath, isReviewCollectionStoryRoute;
|
|
236
328
|
function init_routes() {
|
|
@@ -396,61 +488,6 @@ function init_events() {
|
|
|
396
488
|
})))();
|
|
397
489
|
}
|
|
398
490
|
//#endregion
|
|
399
|
-
//#region src/shared/constants/iframe-resize.ts
|
|
400
|
-
var IFRAME_RESIZE_REQUEST_CONTEXT, isPositiveFinite, parseViewport, parseIframeResizeMessage, hasFixedViewportDimensions, iframeResizeViewportsEqual, iframeResizeDimensionsEqual;
|
|
401
|
-
function init_iframe_resize() {
|
|
402
|
-
return (init_iframe_resize = __esmMin((() => {
|
|
403
|
-
init_constants$1();
|
|
404
|
-
IFRAME_RESIZE_REQUEST_CONTEXT = "iframe.resize.request";
|
|
405
|
-
isPositiveFinite = (value) => typeof value === "number" && Number.isFinite(value) && value > 0;
|
|
406
|
-
parseViewport = (value) => {
|
|
407
|
-
if (!value || typeof value !== "object") return;
|
|
408
|
-
const viewport = value;
|
|
409
|
-
if (typeof viewport.name !== "string" || typeof viewport.value !== "string") return;
|
|
410
|
-
const parsed = {
|
|
411
|
-
name: viewport.name,
|
|
412
|
-
value: viewport.value
|
|
413
|
-
};
|
|
414
|
-
if (viewport.width !== void 0) {
|
|
415
|
-
if (!isPositiveFinite(viewport.width)) return;
|
|
416
|
-
parsed.width = viewport.width;
|
|
417
|
-
}
|
|
418
|
-
if (viewport.height !== void 0) {
|
|
419
|
-
if (!isPositiveFinite(viewport.height)) return;
|
|
420
|
-
parsed.height = viewport.height;
|
|
421
|
-
}
|
|
422
|
-
return parsed;
|
|
423
|
-
};
|
|
424
|
-
parseIframeResizeMessage = (data) => {
|
|
425
|
-
try {
|
|
426
|
-
const parsed = typeof data === "string" ? JSON.parse(data) : data;
|
|
427
|
-
if (parsed?.context !== "iframe.resize") return null;
|
|
428
|
-
if (!isPositiveFinite(parsed.width) || !isPositiveFinite(parsed.height)) return null;
|
|
429
|
-
const viewport = parseViewport(parsed.viewport);
|
|
430
|
-
if (parsed.viewport !== void 0 && viewport === void 0) return null;
|
|
431
|
-
return {
|
|
432
|
-
width: parsed.width,
|
|
433
|
-
height: parsed.height,
|
|
434
|
-
...viewport ? { viewport } : {}
|
|
435
|
-
};
|
|
436
|
-
} catch {
|
|
437
|
-
return null;
|
|
438
|
-
}
|
|
439
|
-
};
|
|
440
|
-
hasFixedViewportDimensions = (viewport) => !!viewport && viewport.value !== "100pct-100pct" && typeof viewport.width === "number" && viewport.width > 0 && typeof viewport.height === "number" && viewport.height > 0;
|
|
441
|
-
iframeResizeViewportsEqual = (left, right) => {
|
|
442
|
-
if (left === right) return true;
|
|
443
|
-
if (!left || !right) return !left && !right;
|
|
444
|
-
return left.name === right.name && left.value === right.value && left.width === right.width && left.height === right.height;
|
|
445
|
-
};
|
|
446
|
-
iframeResizeDimensionsEqual = (left, right) => {
|
|
447
|
-
if (!left) return false;
|
|
448
|
-
if (left.width !== right.width || left.height !== right.height) return false;
|
|
449
|
-
return iframeResizeViewportsEqual(left.viewport, right.viewport);
|
|
450
|
-
};
|
|
451
|
-
})))();
|
|
452
|
-
}
|
|
453
|
-
//#endregion
|
|
454
491
|
//#region src/shared/constants/tags.ts
|
|
455
492
|
var Tag, BUILT_IN_FILTERS, USER_TAG_FILTER;
|
|
456
493
|
function init_tags() {
|
|
@@ -1184,4 +1221,4 @@ function init_use_universal_store_manager() {
|
|
|
1184
1221
|
})))();
|
|
1185
1222
|
}
|
|
1186
1223
|
//#endregion
|
|
1187
|
-
export {
|
|
1224
|
+
export { init_story_grid as A, global as B, init_useCopyButton as C, isReviewCollectionStoryRoute as D, init_routes as E, parseIframeResizeMessage as F, ToolbarManager as I, init_ToolbarManager as L, hasFixedViewportDimensions as M, iframeResizeDimensionsEqual as N, isReviewSummaryPath as O, init_iframe_resize as P, TOOLBAR_ID as R, useSyncExternalStoreWithSelector as S, REVIEW_COLLECTION_QUERY_PARAM as T, init_global as V, init_tags as _, UNIVERSAL_STATUS_STORE_OPTIONS as a, init_events as b, init_status_store as c, StorybookError as d, init_storybook_error as f, USER_TAG_FILTER as g, BUILT_IN_FILTERS as h, init_universal_store as i, IFRAME_RESIZE_REQUEST_CONTEXT as j, groupEntriesByComponent as k, statusValueDescription as l, init_story_index_filters as m, useUniversalStore as n, countStatusesByValue as o, getActiveFilterCount as p, UniversalStore as r, createStatusStore as s, init_use_universal_store_manager as t, statusValueShortName as u, REVIEW_EVENTS as v, useCopyButton as w, init_with_selector as x, REVIEW_NAMESPACE as y, init_constants as z };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as init_globals_runtime } from "./_manager-chunks/globals-runtime-
|
|
1
|
+
import { t as init_globals_runtime } from "./_manager-chunks/globals-runtime-dh5vgpgm.js";
|
|
2
2
|
init_globals_runtime();
|
|
@@ -5,7 +5,7 @@ declare const globalsNameReferenceMap: {
|
|
|
5
5
|
readonly 'react/jsx-dev-runtime': '__REACT_JSX_DEV_RUNTIME__';
|
|
6
6
|
readonly 'react-dom': '__REACT_DOM__';
|
|
7
7
|
readonly 'react-dom/client': '__REACT_DOM_CLIENT__';
|
|
8
|
-
readonly '
|
|
8
|
+
readonly 'lucide-react': '__FORKBOOK_ICONS__';
|
|
9
9
|
readonly '@aussieljk/forkbook/manager-api': '__FORKBOOK_API__';
|
|
10
10
|
readonly '@aussieljk/forkbook/theming': '__FORKBOOK_THEMING__';
|
|
11
11
|
readonly '@aussieljk/forkbook/theming/create': '__FORKBOOK_THEMING_CREATE__';
|
package/dist/manager/globals.js
CHANGED
|
@@ -7,7 +7,7 @@ var globalsNameReferenceMap = {
|
|
|
7
7
|
"react/jsx-dev-runtime": "__REACT_JSX_DEV_RUNTIME__",
|
|
8
8
|
"react-dom": "__REACT_DOM__",
|
|
9
9
|
"react-dom/client": "__REACT_DOM_CLIENT__",
|
|
10
|
-
"
|
|
10
|
+
"lucide-react": "__FORKBOOK_ICONS__",
|
|
11
11
|
"@aussieljk/forkbook/manager-api": "__FORKBOOK_API__",
|
|
12
12
|
"@aussieljk/forkbook/theming": "__FORKBOOK_THEMING__",
|
|
13
13
|
"@aussieljk/forkbook/theming/create": "__FORKBOOK_THEMING_CREATE__",
|
package/dist/manager/runtime.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as init_runtime } from "./_manager-chunks/runtime-D-
|
|
1
|
+
import { t as init_runtime } from "./_manager-chunks/runtime-D-bkVc6v.js";
|
|
2
2
|
init_runtime();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $c as
|
|
1
|
+
import { $c as API_EventMap, Ac as universalTestProviderStore, Al as RequestResponseError, Bc as universalStatusStore, Bl as optionOrAltSymbol, Cl as useParameter, Dc as Tag, Dl as useStorybookState, El as useStorybookApi, Fl as controlOrMetaSymbol, Gl as AddonStore, Hc as MockUniversalStore, Hl as shortcutToAriaKeyshortcuts, Il as eventMatchesShortcut, Kl as Addon_Type, Ll as eventToShortcut, Ml as API_KeyCollection, Nl as KeyboardEventLike, Oc as fullTestProviderStore, Ol as _default, Pl as controlOrMetaKey, Qc as API_DocsEntry, Rc as fullStatusStore, Rl as isShortcutTaken, Sl as useGlobals, Tl as useStoryPrepared, Uc as useUniversalStore, Ul as shortcutToHumanString, Vc as useStatusStore, Vl as shortcutMatchesShortcut, Wc as UniversalStore, Wl as Options, Xc as API_ComponentEntry, Yc as API, Zc as API_ComposedRef, _l as useAddonState, al as API_RootEntry, ao as useServiceQuery, bl as useChannel, cl as Combo, dl as ManagerContext, el as API_GroupEntry, fl as ManagerProvider, gl as typesX, hl as combineParameters, il as API_Refs, io as registerService, jc as useTestProviderStore, jl as experimental_requestResponse, kc as getTestProviderStoreById, kl as isMacLike, ll as Listener, ml as State, nl as API_IndexHash, ol as API_StoryEntry, oo as useServiceCommand, pl as ManagerProviderProps, ql as addons, rl as API_LeafEntry, ro as getService, sl as ActiveTabs, tl as API_HashEntry, ul as ManagerConsumer, vl as useArgTypes, wl as useSharedState, xl as useGlobalTypes, yl as useArgs, zc as getStatusStoreByTypeId, zl as keyToSymbol } from "../chunk-PdOIKm0H.js";
|
|
2
2
|
export { API, API_EventMap, type API_KeyCollection, ActiveTabs, type Addon_Type as Addon, type AddonStore, type Listener as ChannelListener, Combo, type API_ComponentEntry as ComponentEntry, type API_ComposedRef as ComposedRef, ManagerConsumer as Consumer, type API_DocsEntry as DocsEntry, type API_GroupEntry as GroupEntry, type API_HashEntry as HashEntry, type API_IndexHash as IndexHash, type API_IndexHash as StoriesHash, KeyboardEventLike, type API_LeafEntry as LeafEntry, ManagerContext, ManagerProviderProps, ManagerProvider as Provider, type API_Refs as Refs, RequestResponseError, type API_RootEntry as RootEntry, State, type Options as StoreOptions, type API_StoryEntry as StoryEntry, Tag, addons, combineParameters, controlOrMetaKey, controlOrMetaSymbol, eventMatchesShortcut, eventToShortcut, MockUniversalStore as experimental_MockUniversalStore, getStatusStoreByTypeId as experimental_getStatusStore, getTestProviderStoreById as experimental_getTestProviderStore, experimental_requestResponse, useStatusStore as experimental_useStatusStore, useTestProviderStore as experimental_useTestProviderStore, getService, UniversalStore as internal_UniversalStore, fullStatusStore as internal_fullStatusStore, fullTestProviderStore as internal_fullTestProviderStore, universalStatusStore as internal_universalStatusStore, universalTestProviderStore as internal_universalTestProviderStore, useUniversalStore as internal_useUniversalStore, isMacLike, isShortcutTaken, keyToSymbol, _default as merge, optionOrAltSymbol, registerService, shortcutMatchesShortcut, shortcutToAriaKeyshortcuts, shortcutToHumanString, typesX as types, useAddonState, useArgTypes, useArgs, useChannel, useGlobalTypes, useGlobals, useParameter, useServiceCommand, useServiceQuery, useSharedState, useStoryPrepared, useStorybookApi, useStorybookState };
|
|
@@ -1383,7 +1383,7 @@ import {
|
|
|
1383
1383
|
OPEN_IN_EDITOR_REQUEST,
|
|
1384
1384
|
OPEN_IN_EDITOR_RESPONSE
|
|
1385
1385
|
} from "@aussieljk/forkbook/internal/core-events";
|
|
1386
|
-
import {
|
|
1386
|
+
import { CircleXIcon } from "lucide-react";
|
|
1387
1387
|
import { jsx } from "react/jsx-runtime";
|
|
1388
1388
|
var init7 = ({ provider, fullAPI }) => ({
|
|
1389
1389
|
api: {
|
|
@@ -1406,7 +1406,7 @@ var init7 = ({ provider, fullAPI }) => ({
|
|
|
1406
1406
|
headline: "Failed to open in editor",
|
|
1407
1407
|
subHeadline: payload.error || "Check the Forkbook process on the command line for more details."
|
|
1408
1408
|
},
|
|
1409
|
-
icon: jsx(
|
|
1409
|
+
icon: jsx(CircleXIcon, { color: color.negative }),
|
|
1410
1410
|
duration: 8e3
|
|
1411
1411
|
});
|
|
1412
1412
|
});
|
|
@@ -1803,7 +1803,12 @@ import {
|
|
|
1803
1803
|
UPDATE_STORY_ARGS
|
|
1804
1804
|
} from "@aussieljk/forkbook/internal/core-events";
|
|
1805
1805
|
import { sanitize as sanitize2, toId } from "@aussieljk/forkbook/internal/csf";
|
|
1806
|
-
import {
|
|
1806
|
+
import {
|
|
1807
|
+
fromUrlPath,
|
|
1808
|
+
queryFromLocation,
|
|
1809
|
+
setStoryPathEntries,
|
|
1810
|
+
toUrlPath
|
|
1811
|
+
} from "@aussieljk/forkbook/internal/router";
|
|
1807
1812
|
|
|
1808
1813
|
// src/manager-api/lib/url.ts
|
|
1809
1814
|
var buildNavigationUrl = (path, queryParams = {}) => {
|
|
@@ -1936,6 +1941,18 @@ var FILTER_KEYS = {
|
|
|
1936
1941
|
let navigateWithQueryParams = (path, options) => {
|
|
1937
1942
|
let { customQueryParams } = store2.getState();
|
|
1938
1943
|
navigate(buildNavigationUrl(path, customQueryParams ?? {}), options);
|
|
1944
|
+
}, canonicaliseUrl = () => {
|
|
1945
|
+
let { location: currentLocation, path, customQueryParams } = store2.getState(), pathname = currentLocation?.pathname;
|
|
1946
|
+
if (!pathname || queryFromLocation(currentLocation).path)
|
|
1947
|
+
return;
|
|
1948
|
+
let resolved = fromUrlPath(pathname);
|
|
1949
|
+
if (resolved === "/" || resolved === path && toUrlPath(resolved) === pathname)
|
|
1950
|
+
return;
|
|
1951
|
+
let target = buildNavigationUrl(
|
|
1952
|
+
`${resolved}${currentLocation.hash ?? ""}`,
|
|
1953
|
+
customQueryParams ?? {}
|
|
1954
|
+
);
|
|
1955
|
+
navigate(target, { replace: !0 });
|
|
1939
1956
|
}, persistFilters = (inputPatch) => store2.setState(inputPatch, {
|
|
1940
1957
|
persistence: "url",
|
|
1941
1958
|
serialize: (s) => {
|
|
@@ -2160,12 +2177,12 @@ var FILTER_KEYS = {
|
|
|
2160
2177
|
filters: {},
|
|
2161
2178
|
allStatuses
|
|
2162
2179
|
});
|
|
2163
|
-
await store2.setState({
|
|
2180
|
+
setStoryPathEntries(Object.values(input.entries)), await store2.setState({
|
|
2164
2181
|
internal_index: input,
|
|
2165
2182
|
filteredIndex: addPreparedStories(newFilteredHash, oldFilteredHash),
|
|
2166
2183
|
index: addPreparedStories(newHash, oldHash),
|
|
2167
2184
|
indexError: void 0
|
|
2168
|
-
});
|
|
2185
|
+
}), canonicaliseUrl();
|
|
2169
2186
|
},
|
|
2170
2187
|
// FIXME: is there a bug where filtered stories get added back in on updateStory???
|
|
2171
2188
|
updateStory: async (storyId, update2, ref) => {
|
|
@@ -2496,7 +2513,11 @@ import {
|
|
|
2496
2513
|
STORY_ARGS_UPDATED as STORY_ARGS_UPDATED2,
|
|
2497
2514
|
UPDATE_QUERY_PARAMS
|
|
2498
2515
|
} from "@aussieljk/forkbook/internal/core-events";
|
|
2499
|
-
import {
|
|
2516
|
+
import {
|
|
2517
|
+
buildArgsParam,
|
|
2518
|
+
buildManagerHref,
|
|
2519
|
+
queryFromLocation as queryFromLocation2
|
|
2520
|
+
} from "@aussieljk/forkbook/internal/router";
|
|
2500
2521
|
var parseBoolean = (value) => {
|
|
2501
2522
|
if (value === "true" || value === "1")
|
|
2502
2523
|
return !0;
|
|
@@ -2528,7 +2549,7 @@ var parseBoolean = (value) => {
|
|
|
2528
2549
|
}, init12 = (moduleArgs) => {
|
|
2529
2550
|
let { store: store2, navigate, provider, fullAPI } = moduleArgs, navigateTo = (path, queryParams = {}, options = {}) => navigate(buildNavigationUrl(path, queryParams), options), api = {
|
|
2530
2551
|
getStoryHrefs(storyId, options = {}) {
|
|
2531
|
-
let { id: currentStoryId, refId: currentRefId } = fullAPI.getCurrentStoryData() ?? {}, isCurrentStory = storyId === currentStoryId && options.refId === currentRefId, { customQueryParams,
|
|
2552
|
+
let { id: currentStoryId, refId: currentRefId } = fullAPI.getCurrentStoryData() ?? {}, isCurrentStory = storyId === currentStoryId && options.refId === currentRefId, { customQueryParams, refs } = store2.getState(), {
|
|
2532
2553
|
base,
|
|
2533
2554
|
inheritArgs = isCurrentStory,
|
|
2534
2555
|
inheritGlobals = !0,
|
|
@@ -2540,7 +2561,7 @@ var parseBoolean = (value) => {
|
|
|
2540
2561
|
} = options;
|
|
2541
2562
|
if (refId && !refs[refId])
|
|
2542
2563
|
throw new Error(`Invalid refId: ${refId}`);
|
|
2543
|
-
let pathname =
|
|
2564
|
+
let pathname = global.document?.baseURI ? new URL(".", global.document.baseURI).pathname : "/", originAddress = global.window.location.origin + pathname, networkAddress = global.FORKBOOK_NETWORK_ADDRESS ?? originAddress, managerBase = base === "origin" ? originAddress : base === "network" ? networkAddress : pathname, previewBaseUrl = base ? managerBase : global.document?.baseURI || originAddress, previewBase = refId ? refs[refId].url + "/iframe.html" : resolveIframeUrl(previewBaseUrl, { absolute: !!base }), refParam = refId ? `&refId=${encodeURIComponent(refId)}` : "", { args = "", globals = "", ...otherParams } = queryParams, argsParam = inheritArgs ? mergeSerializedParams(customQueryParams?.args ?? "", args) : args, globalsParam = inheritGlobals ? mergeSerializedParams(customQueryParams?.globals ?? "", globals) : globals, managerQueryParams = omit(otherParams, ["embed", "freeze"]), previewQueryParams = omit(otherParams, ["id", "viewMode", "embed", "freeze"]), customManagerParams = stringify(managerQueryParams, {
|
|
2544
2565
|
nesting: !0,
|
|
2545
2566
|
nestingSyntax: "js"
|
|
2546
2567
|
}), customPreviewParams = stringify(previewQueryParams, {
|
|
@@ -2550,7 +2571,11 @@ var parseBoolean = (value) => {
|
|
|
2550
2571
|
argsParam = argsParam && `&args=${argsParam}`, globalsParam = globalsParam && `&globals=${globalsParam}`, customManagerParams = customManagerParams && `&${customManagerParams}`, customPreviewParams = customPreviewParams && `&${customPreviewParams}`;
|
|
2551
2572
|
let embedParam = embed ? "&embed=true" : "", freezeParam = freeze ? "&freeze=finished" : "";
|
|
2552
2573
|
return {
|
|
2553
|
-
managerHref:
|
|
2574
|
+
managerHref: buildManagerHref(
|
|
2575
|
+
managerBase,
|
|
2576
|
+
`/${viewMode}/${refId ? `${refId}_` : ""}${storyId}`,
|
|
2577
|
+
`${argsParam}${globalsParam}${customManagerParams}`.replace(/^&/, "")
|
|
2578
|
+
),
|
|
2554
2579
|
previewHref: `${previewBase}?id=${storyId}&viewMode=${viewMode}${refParam}${argsParam}${refId ? "" : globalsParam}${customPreviewParams}${embedParam}${freezeParam}`
|
|
2555
2580
|
};
|
|
2556
2581
|
},
|
package/dist/manager-errors.d.ts
CHANGED
package/dist/mcp/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jjck69g4sd from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jjck69g4sd from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jjck69g4sd from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jjck69g4sd.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jjck69g4sd.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jjck69g4sd.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
|
package_default
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
15
|
-
import "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-4HYKKRBM.js";
|
|
15
|
+
import "../_node-chunks/chunk-YSVJU5VZ.js";
|
|
16
16
|
|
|
17
17
|
// src/mcp/index.ts
|
|
18
18
|
import { McpServer } from "tmcp";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jjck69g4sd from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jjck69g4sd from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jjck69g4sd from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jjck69g4sd.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jjck69g4sd.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jjck69g4sd.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
|
walk
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-2T2S3YYS.js";
|
|
15
15
|
import {
|
|
16
16
|
userModuleExtensions
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
18
|
-
import "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-RXEMA2TT.js";
|
|
18
|
+
import "../_node-chunks/chunk-YSVJU5VZ.js";
|
|
19
19
|
|
|
20
20
|
// src/mocking-utils/automock.ts
|
|
21
21
|
import MagicString from "magic-string";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as
|
|
1
|
+
import { i as NextJsTypes, n as FrameworkOptions, r as NextJsParameters, t as ForkbookConfig } from "../chunk-CFk6djyM.js";
|
|
2
2
|
import { AddonTypes, InferTypes, PreviewAddonEntry } from "@aussieljk/forkbook/internal/csf";
|
|
3
3
|
import { Args as Args$1, ComposedStoryFn, NamedOrDefaultProjectAnnotations, NormalizedProjectAnnotations, ProjectAnnotations as ProjectAnnotations$1, Store_CSFExports, StoriesWithPartialProps, StoryAnnotationsOrFn } from "@aussieljk/forkbook/internal/types";
|
|
4
4
|
import { Meta as Meta$1, ReactPreview, ReactRenderer, ReactTypes } from "@aussieljk/forkbook/react";
|
|
@@ -89,4 +89,4 @@ declare function definePreview<Addons extends PreviewAddonEntry[]>(preview: {
|
|
|
89
89
|
} & ProjectAnnotations$1<ReactTypes & NextJsTypes & InferTypes<Addons>>): NextPreview<InferTypes<Addons>>;
|
|
90
90
|
interface NextPreview<T extends AddonTypes> extends ReactPreview<NextJsTypes & T> {}
|
|
91
91
|
//#endregion
|
|
92
|
-
export { FrameworkOptions, NextJsParameters, NextJsTypes, NextPreview,
|
|
92
|
+
export { ForkbookConfig, FrameworkOptions, NextJsParameters, NextJsTypes, NextPreview, composeStories, composeStory, definePreview, setProjectAnnotations };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as ForkbookConfig } from "../../chunk-CFk6djyM.js";
|
|
2
2
|
|
|
3
3
|
//#region .dts-emit/code/core/src/nextjs-vite/node/index.d.ts
|
|
4
|
-
declare function defineMain(config:
|
|
4
|
+
declare function defineMain(config: ForkbookConfig): ForkbookConfig;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { defineMain };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jjck69g4sd from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jjck69g4sd from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jjck69g4sd from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jjck69g4sd.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jjck69g4sd.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jjck69g4sd.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-YSVJU5VZ.js";
|
|
13
13
|
|
|
14
14
|
// src/nextjs-vite/node/index.ts
|
|
15
15
|
function defineMain(config) {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jjck69g4sd from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jjck69g4sd from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jjck69g4sd from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jjck69g4sd.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jjck69g4sd.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jjck69g4sd.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
|
resolvePackageDir
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
15
|
-
import "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-JOOZKSBS.js";
|
|
15
|
+
import "../_node-chunks/chunk-RXEMA2TT.js";
|
|
16
16
|
import {
|
|
17
17
|
__commonJS,
|
|
18
18
|
__require,
|
|
19
19
|
__toESM
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-YSVJU5VZ.js";
|
|
21
21
|
|
|
22
22
|
// ../../node_modules/lilconfig/src/index.js
|
|
23
23
|
var require_src = __commonJS({
|
|
@@ -458,7 +458,7 @@ var require_src2 = __commonJS({
|
|
|
458
458
|
async function yamlLoader(_, content) {
|
|
459
459
|
if (!yaml)
|
|
460
460
|
try {
|
|
461
|
-
yaml = await import("../_node-chunks/dist-
|
|
461
|
+
yaml = await import("../_node-chunks/dist-ZUXZVI3A.js");
|
|
462
462
|
} catch (e) {
|
|
463
463
|
throw new Error(
|
|
464
464
|
`'yaml' is required for the YAML configuration files. Make sure it is installed
|
|
@@ -540,7 +540,7 @@ var STAND_INS = "@aussieljk/forkbook/nextjs-vite/node-stand-ins", TEXT_EXTENSION
|
|
|
540
540
|
".next",
|
|
541
541
|
"dist",
|
|
542
542
|
".git",
|
|
543
|
-
"
|
|
543
|
+
"forkbook-static",
|
|
544
544
|
"coverage"
|
|
545
545
|
], FS_IDS = /* @__PURE__ */ new Set(["fs", "node:fs", "fs/promises", "node:fs/promises"]), PATH_IDS = /* @__PURE__ */ new Set(["path", "node:path", "path/posix", "node:path/posix"]), PATH_EXPORTS = [
|
|
546
546
|
"sep",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jjck69g4sd from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jjck69g4sd from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jjck69g4sd from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jjck69g4sd.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jjck69g4sd.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jjck69g4sd.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-YSVJU5VZ.js";
|
|
13
13
|
|
|
14
14
|
// src/nextjs-vite/vite-plugin/index.ts
|
|
15
15
|
import vitePluginStorybookNextjs from "@aussieljk/forkbook/internal/nextjs-vite-plugin";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jjck69g4sd from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jjck69g4sd from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jjck69g4sd from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jjck69g4sd.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jjck69g4sd.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jjck69g4sd.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
getNextjsMajorVersion,
|
|
17
17
|
isVitestEnv,
|
|
18
18
|
vitePluginNextMocks
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
20
|
-
import "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-GOZDHTIK.js";
|
|
20
|
+
import "../_node-chunks/chunk-YSVJU5VZ.js";
|
|
21
21
|
|
|
22
22
|
// src/nextjs-vite-plugin/index.ts
|
|
23
23
|
import { dirname, resolve as resolve3 } from "pathe";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jjck69g4sd from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jjck69g4sd from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jjck69g4sd from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jjck69g4sd.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jjck69g4sd.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jjck69g4sd.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,8 +12,8 @@ var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
getAlias,
|
|
14
14
|
getAlias2
|
|
15
|
-
} from "../../_node-chunks/chunk-
|
|
16
|
-
import "../../_node-chunks/chunk-
|
|
15
|
+
} from "../../_node-chunks/chunk-GOZDHTIK.js";
|
|
16
|
+
import "../../_node-chunks/chunk-YSVJU5VZ.js";
|
|
17
17
|
|
|
18
18
|
// src/nextjs-vite-plugin/mocks/storybook.global.ts
|
|
19
19
|
import { createRequire } from "node:module";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jjck69g4sd from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jjck69g4sd from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jjck69g4sd from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jjck69g4sd.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jjck69g4sd.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jjck69g4sd.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -22,9 +22,9 @@ import {
|
|
|
22
22
|
prettyTime,
|
|
23
23
|
prompt,
|
|
24
24
|
protectUrls
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-U3BEYEZ5.js";
|
|
26
|
+
import "../_node-chunks/chunk-QE3NKWUX.js";
|
|
27
|
+
import "../_node-chunks/chunk-YSVJU5VZ.js";
|
|
28
28
|
export {
|
|
29
29
|
CLI_COLORS,
|
|
30
30
|
ConsoleLogger,
|