@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,9 @@
|
|
|
1
|
-
import { n as __esmMin } from "./runtime-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { n as init_preview_errors, t as StatusTypeIdMismatchError$2 } from "./runtime-cVFIMcca.js";
|
|
1
|
+
import { n as __esmMin } from "./runtime-BdGkqNEt.js";
|
|
2
|
+
import { Dr as useState, Er as useRef, Ht as useGlobalTypes, Kt as useStorybookApi, M as init_icon, Or as useSyncExternalStore, Pt as init_manager_api, Ut as useGlobals, _r as useCallback, br as useEffect, et as Select, ht as init_components, j as Icons, mr as init__storybook_global_react, sr as _storybook_global_react_default, tt as Separator, wr as useMemo, yr as useDebugValue } from "./runtime-BM30BmeT.js";
|
|
3
|
+
import { i as init_esm, r as dedent } from "./runtime-B4U0u9p4.js";
|
|
4
|
+
import { a as StatusTypeIdMismatchError$2, o as UniversalStoreFollowerTimeoutError, s as init_manager_errors } from "./runtime-ecY5qnmo.js";
|
|
5
|
+
import { l as init_isEqual, u as isEqual } from "./runtime-Cf0p9DUx.js";
|
|
6
|
+
import { a as init_constants$1 } from "./runtime-D09XMY6V.js";
|
|
8
7
|
//#region src/shared/global.ts
|
|
9
8
|
var global;
|
|
10
9
|
function init_global() {
|
|
@@ -100,8 +99,8 @@ function init_ToolbarMenuSelect_module() {
|
|
|
100
99
|
document.head.appendChild(style);
|
|
101
100
|
}
|
|
102
101
|
ToolbarMenuSelect_module_default = {
|
|
103
|
-
"
|
|
104
|
-
"
|
|
102
|
+
"item": "fb-FCSgfW-item",
|
|
103
|
+
"itemMiddle": "fb-FCSgfW-itemMiddle"
|
|
105
104
|
};
|
|
106
105
|
})))();
|
|
107
106
|
}
|
|
@@ -334,6 +333,60 @@ function init_useCopyButton() {
|
|
|
334
333
|
})))();
|
|
335
334
|
}
|
|
336
335
|
//#endregion
|
|
336
|
+
//#region src/shared/use-sync-external-store/with-selector.ts
|
|
337
|
+
function useSyncExternalStoreWithSelector(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
|
|
338
|
+
const instRef = useRef(null);
|
|
339
|
+
if (instRef.current === null) instRef.current = {
|
|
340
|
+
hasValue: false,
|
|
341
|
+
value: null
|
|
342
|
+
};
|
|
343
|
+
const inst = instRef.current;
|
|
344
|
+
const [getSelection, getServerSelection] = useMemo(() => {
|
|
345
|
+
let hasMemo = false;
|
|
346
|
+
let memoizedSnapshot;
|
|
347
|
+
let memoizedSelection;
|
|
348
|
+
const memoizedSelector = (nextSnapshot) => {
|
|
349
|
+
if (!hasMemo) {
|
|
350
|
+
hasMemo = true;
|
|
351
|
+
memoizedSnapshot = nextSnapshot;
|
|
352
|
+
const nextSelection = selector(nextSnapshot);
|
|
353
|
+
if (isEqual !== void 0 && inst.hasValue) {
|
|
354
|
+
const currentSelection = inst.value;
|
|
355
|
+
if (isEqual(currentSelection, nextSelection)) return memoizedSelection = currentSelection;
|
|
356
|
+
}
|
|
357
|
+
return memoizedSelection = nextSelection;
|
|
358
|
+
}
|
|
359
|
+
const currentSelection = memoizedSelection;
|
|
360
|
+
if (Object.is(memoizedSnapshot, nextSnapshot)) return currentSelection;
|
|
361
|
+
const nextSelection = selector(nextSnapshot);
|
|
362
|
+
if (isEqual !== void 0 && isEqual(currentSelection, nextSelection)) {
|
|
363
|
+
memoizedSnapshot = nextSnapshot;
|
|
364
|
+
return currentSelection;
|
|
365
|
+
}
|
|
366
|
+
memoizedSnapshot = nextSnapshot;
|
|
367
|
+
return memoizedSelection = nextSelection;
|
|
368
|
+
};
|
|
369
|
+
return [() => memoizedSelector(getSnapshot()), getServerSnapshot == null ? void 0 : () => memoizedSelector(getServerSnapshot())];
|
|
370
|
+
}, [
|
|
371
|
+
getSnapshot,
|
|
372
|
+
getServerSnapshot,
|
|
373
|
+
selector,
|
|
374
|
+
isEqual
|
|
375
|
+
]);
|
|
376
|
+
const value = useSyncExternalStore(subscribe, getSelection, getServerSelection);
|
|
377
|
+
useEffect(() => {
|
|
378
|
+
inst.hasValue = true;
|
|
379
|
+
inst.value = value;
|
|
380
|
+
}, [value]);
|
|
381
|
+
useDebugValue(value);
|
|
382
|
+
return value;
|
|
383
|
+
}
|
|
384
|
+
function init_with_selector() {
|
|
385
|
+
return (init_with_selector = __esmMin((() => {
|
|
386
|
+
init__storybook_global_react();
|
|
387
|
+
})))();
|
|
388
|
+
}
|
|
389
|
+
//#endregion
|
|
337
390
|
//#region src/shared/review/events.ts
|
|
338
391
|
var REVIEW_NAMESPACE, REVIEW_EVENTS;
|
|
339
392
|
function init_events() {
|
|
@@ -343,16 +396,6 @@ function init_events() {
|
|
|
343
396
|
})))();
|
|
344
397
|
}
|
|
345
398
|
//#endregion
|
|
346
|
-
//#region src/viewport/constants.ts
|
|
347
|
-
var ADDON_ID, PARAM_KEY, RESPONSIVE_VIEWPORT_VALUE;
|
|
348
|
-
function init_constants$1() {
|
|
349
|
-
return (init_constants$1 = __esmMin((() => {
|
|
350
|
-
ADDON_ID = "@aussieljk/forkbook/viewport";
|
|
351
|
-
PARAM_KEY = "viewport";
|
|
352
|
-
RESPONSIVE_VIEWPORT_VALUE = "100pct-100pct";
|
|
353
|
-
})))();
|
|
354
|
-
}
|
|
355
|
-
//#endregion
|
|
356
399
|
//#region src/shared/constants/iframe-resize.ts
|
|
357
400
|
var IFRAME_RESIZE_REQUEST_CONTEXT, isPositiveFinite, parseViewport, parseIframeResizeMessage, hasFixedViewportDimensions, iframeResizeViewportsEqual, iframeResizeDimensionsEqual;
|
|
358
401
|
function init_iframe_resize() {
|
|
@@ -408,287 +451,6 @@ function init_iframe_resize() {
|
|
|
408
451
|
})))();
|
|
409
452
|
}
|
|
410
453
|
//#endregion
|
|
411
|
-
//#region src/viewport/defaults.ts
|
|
412
|
-
var MINIMAL_VIEWPORTS;
|
|
413
|
-
function init_defaults() {
|
|
414
|
-
return (init_defaults = __esmMin((() => {
|
|
415
|
-
MINIMAL_VIEWPORTS = {
|
|
416
|
-
mobile1: {
|
|
417
|
-
name: "Small mobile",
|
|
418
|
-
styles: {
|
|
419
|
-
height: "568px",
|
|
420
|
-
width: "320px"
|
|
421
|
-
},
|
|
422
|
-
type: "mobile"
|
|
423
|
-
},
|
|
424
|
-
mobile2: {
|
|
425
|
-
name: "Large mobile",
|
|
426
|
-
styles: {
|
|
427
|
-
height: "896px",
|
|
428
|
-
width: "414px"
|
|
429
|
-
},
|
|
430
|
-
type: "mobile"
|
|
431
|
-
},
|
|
432
|
-
tablet: {
|
|
433
|
-
name: "Tablet",
|
|
434
|
-
styles: {
|
|
435
|
-
height: "1112px",
|
|
436
|
-
width: "834px"
|
|
437
|
-
},
|
|
438
|
-
type: "tablet"
|
|
439
|
-
},
|
|
440
|
-
desktop: {
|
|
441
|
-
name: "Desktop",
|
|
442
|
-
styles: {
|
|
443
|
-
height: "1024px",
|
|
444
|
-
width: "1280px"
|
|
445
|
-
},
|
|
446
|
-
type: "desktop"
|
|
447
|
-
}
|
|
448
|
-
};
|
|
449
|
-
})))();
|
|
450
|
-
}
|
|
451
|
-
//#endregion
|
|
452
|
-
//#region src/viewport/resolveViewport.ts
|
|
453
|
-
var URL_VALUE_PATTERN, normalizeGlobal$1, resolveViewport;
|
|
454
|
-
function init_resolveViewport() {
|
|
455
|
-
return (init_resolveViewport = __esmMin((() => {
|
|
456
|
-
init_constants$1();
|
|
457
|
-
URL_VALUE_PATTERN = /^([0-9]{1,4})([a-z]{0,4})-([0-9]{1,4})([a-z]{0,4})$/;
|
|
458
|
-
normalizeGlobal$1 = (value, defaultIsRotated) => typeof value === "string" ? {
|
|
459
|
-
value,
|
|
460
|
-
isRotated: defaultIsRotated
|
|
461
|
-
} : {
|
|
462
|
-
value: value?.value,
|
|
463
|
-
isRotated: value?.isRotated ?? defaultIsRotated
|
|
464
|
-
};
|
|
465
|
-
resolveViewport = ({ globals, storyGlobals, userGlobals, options, lastSelectedOption, disable = false, viewMode }) => {
|
|
466
|
-
if (viewMode !== "story") return {
|
|
467
|
-
name: "Responsive",
|
|
468
|
-
type: "desktop",
|
|
469
|
-
width: "100%",
|
|
470
|
-
height: "100%",
|
|
471
|
-
value: RESPONSIVE_VIEWPORT_VALUE,
|
|
472
|
-
option: void 0,
|
|
473
|
-
isCustom: false,
|
|
474
|
-
isDefault: true,
|
|
475
|
-
isLocked: true,
|
|
476
|
-
isRotated: false
|
|
477
|
-
};
|
|
478
|
-
const global = normalizeGlobal$1(globals?.[PARAM_KEY]);
|
|
479
|
-
const userGlobal = normalizeGlobal$1(userGlobals?.[PARAM_KEY]);
|
|
480
|
-
const storyGlobal = normalizeGlobal$1(storyGlobals?.[PARAM_KEY]);
|
|
481
|
-
const storyHasViewport = PARAM_KEY in storyGlobals;
|
|
482
|
-
const primaryGlobal = storyHasViewport ? storyGlobal : userGlobal;
|
|
483
|
-
const secondaryGlobal = storyHasViewport ? userGlobal : storyGlobal;
|
|
484
|
-
const value = primaryGlobal?.value ?? secondaryGlobal?.value ?? global?.value;
|
|
485
|
-
const isRotated = primaryGlobal?.isRotated ?? secondaryGlobal?.isRotated ?? global?.isRotated ?? false;
|
|
486
|
-
const keys = Object.keys(options);
|
|
487
|
-
const isLocked = disable || "viewport" in storyGlobals || !keys.length;
|
|
488
|
-
const [match, vx, ux, vy, uy] = value?.match(URL_VALUE_PATTERN) || [];
|
|
489
|
-
if (match) {
|
|
490
|
-
const x = ux && ux !== "px" ? vx : Math.max(Number(vx), 40);
|
|
491
|
-
const y = uy && uy !== "px" ? vy : Math.max(Number(vy), 40);
|
|
492
|
-
const width = `${x}${ux === "pct" ? "%" : ux || "px"}`;
|
|
493
|
-
const height = `${y}${uy === "pct" ? "%" : uy || "px"}`;
|
|
494
|
-
const selection = lastSelectedOption ? options[lastSelectedOption] : void 0;
|
|
495
|
-
return {
|
|
496
|
-
name: selection?.name ?? "Custom",
|
|
497
|
-
type: selection?.type ?? "other",
|
|
498
|
-
width: isRotated ? height : width,
|
|
499
|
-
height: isRotated ? width : height,
|
|
500
|
-
value: match,
|
|
501
|
-
option: void 0,
|
|
502
|
-
isCustom: true,
|
|
503
|
-
isDefault: false,
|
|
504
|
-
isLocked,
|
|
505
|
-
isRotated
|
|
506
|
-
};
|
|
507
|
-
}
|
|
508
|
-
if (value && keys.length) {
|
|
509
|
-
const { name, styles, type = "other" } = options[value] ?? options[keys[0]];
|
|
510
|
-
return {
|
|
511
|
-
name,
|
|
512
|
-
type,
|
|
513
|
-
width: isRotated ? styles.height : styles.width,
|
|
514
|
-
height: isRotated ? styles.width : styles.height,
|
|
515
|
-
value,
|
|
516
|
-
option: value,
|
|
517
|
-
isCustom: false,
|
|
518
|
-
isDefault: false,
|
|
519
|
-
isLocked,
|
|
520
|
-
isRotated
|
|
521
|
-
};
|
|
522
|
-
}
|
|
523
|
-
return {
|
|
524
|
-
name: "Responsive",
|
|
525
|
-
type: "desktop",
|
|
526
|
-
width: "100%",
|
|
527
|
-
height: "100%",
|
|
528
|
-
value: RESPONSIVE_VIEWPORT_VALUE,
|
|
529
|
-
option: void 0,
|
|
530
|
-
isCustom: false,
|
|
531
|
-
isDefault: true,
|
|
532
|
-
isLocked,
|
|
533
|
-
isRotated: false
|
|
534
|
-
};
|
|
535
|
-
};
|
|
536
|
-
})))();
|
|
537
|
-
}
|
|
538
|
-
//#endregion
|
|
539
|
-
//#region src/viewport/useViewport.ts
|
|
540
|
-
var cycle, normalizeGlobal, useViewport;
|
|
541
|
-
function init_useViewport() {
|
|
542
|
-
return (init_useViewport = __esmMin((() => {
|
|
543
|
-
init__storybook_global_react();
|
|
544
|
-
init_manager_api();
|
|
545
|
-
init_constants$1();
|
|
546
|
-
init_defaults();
|
|
547
|
-
init_resolveViewport();
|
|
548
|
-
cycle = (viewports, current, direction = 1) => {
|
|
549
|
-
const keys = Object.keys(viewports);
|
|
550
|
-
const nextIndex = (current ? keys.indexOf(current) : -1) + direction;
|
|
551
|
-
return nextIndex < 0 ? keys[keys.length - 1] : nextIndex >= keys.length ? keys[0] : keys[nextIndex];
|
|
552
|
-
};
|
|
553
|
-
normalizeGlobal = (value, defaultIsRotated) => typeof value === "string" ? {
|
|
554
|
-
value,
|
|
555
|
-
isRotated: defaultIsRotated
|
|
556
|
-
} : {
|
|
557
|
-
value: value?.value,
|
|
558
|
-
isRotated: value?.isRotated ?? defaultIsRotated
|
|
559
|
-
};
|
|
560
|
-
useViewport = () => {
|
|
561
|
-
const api = useStorybookApi();
|
|
562
|
-
const { viewMode } = api.getUrlState();
|
|
563
|
-
const lastSelectedOption = useRef();
|
|
564
|
-
const parameter = useParameter(PARAM_KEY);
|
|
565
|
-
const [globals, updateGlobals, storyGlobals, userGlobals] = useGlobals();
|
|
566
|
-
const { options = MINIMAL_VIEWPORTS, disable = false } = parameter || {};
|
|
567
|
-
const { name, type, width, height, value, option, isCustom, isDefault, isLocked, isRotated } = resolveViewport({
|
|
568
|
-
globals,
|
|
569
|
-
storyGlobals,
|
|
570
|
-
userGlobals,
|
|
571
|
-
options,
|
|
572
|
-
lastSelectedOption: lastSelectedOption.current,
|
|
573
|
-
disable,
|
|
574
|
-
viewMode
|
|
575
|
-
});
|
|
576
|
-
const update = useCallback((input) => updateGlobals({ [PARAM_KEY]: normalizeGlobal(input, false) }), [updateGlobals]);
|
|
577
|
-
const resize = useCallback((width, height) => {
|
|
578
|
-
const w = width.replace(/px$/, "").replace(/%$/, "pct");
|
|
579
|
-
const h = height.replace(/px$/, "").replace(/%$/, "pct");
|
|
580
|
-
const value = isRotated ? `${h}-${w}` : `${w}-${h}`;
|
|
581
|
-
update({
|
|
582
|
-
value,
|
|
583
|
-
isRotated
|
|
584
|
-
});
|
|
585
|
-
}, [update, isRotated]);
|
|
586
|
-
useEffect(() => {
|
|
587
|
-
if (!parameter) return;
|
|
588
|
-
if (option) {
|
|
589
|
-
if (Object.hasOwn(options, option)) lastSelectedOption.current = option;
|
|
590
|
-
else {
|
|
591
|
-
lastSelectedOption.current = void 0;
|
|
592
|
-
if (!("viewport" in storyGlobals)) update({
|
|
593
|
-
value: void 0,
|
|
594
|
-
isRotated: false
|
|
595
|
-
});
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
}, [
|
|
599
|
-
parameter,
|
|
600
|
-
storyGlobals,
|
|
601
|
-
options,
|
|
602
|
-
option,
|
|
603
|
-
update
|
|
604
|
-
]);
|
|
605
|
-
useEffect(() => {
|
|
606
|
-
api.setAddonShortcut(ADDON_ID, {
|
|
607
|
-
label: "Next viewport",
|
|
608
|
-
defaultShortcut: ["alt", "V"],
|
|
609
|
-
actionName: "next",
|
|
610
|
-
action: () => update({
|
|
611
|
-
value: cycle(options, lastSelectedOption.current),
|
|
612
|
-
isRotated
|
|
613
|
-
})
|
|
614
|
-
});
|
|
615
|
-
api.setAddonShortcut(ADDON_ID, {
|
|
616
|
-
label: "Previous viewport",
|
|
617
|
-
defaultShortcut: [
|
|
618
|
-
"alt",
|
|
619
|
-
"shift",
|
|
620
|
-
"V"
|
|
621
|
-
],
|
|
622
|
-
actionName: "previous",
|
|
623
|
-
action: () => update({
|
|
624
|
-
value: cycle(options, lastSelectedOption.current, -1),
|
|
625
|
-
isRotated
|
|
626
|
-
})
|
|
627
|
-
});
|
|
628
|
-
api.setAddonShortcut(ADDON_ID, {
|
|
629
|
-
label: "Reset viewport",
|
|
630
|
-
defaultShortcut: [
|
|
631
|
-
"alt",
|
|
632
|
-
"control",
|
|
633
|
-
"V"
|
|
634
|
-
],
|
|
635
|
-
actionName: "reset",
|
|
636
|
-
action: () => update({
|
|
637
|
-
value: void 0,
|
|
638
|
-
isRotated: false
|
|
639
|
-
})
|
|
640
|
-
});
|
|
641
|
-
}, [
|
|
642
|
-
api,
|
|
643
|
-
update,
|
|
644
|
-
options,
|
|
645
|
-
isRotated
|
|
646
|
-
]);
|
|
647
|
-
return useMemo(() => ({
|
|
648
|
-
name,
|
|
649
|
-
type,
|
|
650
|
-
width,
|
|
651
|
-
height,
|
|
652
|
-
value,
|
|
653
|
-
option,
|
|
654
|
-
isCustom,
|
|
655
|
-
isDefault,
|
|
656
|
-
isLocked,
|
|
657
|
-
isRotated,
|
|
658
|
-
options,
|
|
659
|
-
lastSelectedOption: lastSelectedOption.current,
|
|
660
|
-
resize,
|
|
661
|
-
reset: () => update({
|
|
662
|
-
value: void 0,
|
|
663
|
-
isRotated: false
|
|
664
|
-
}),
|
|
665
|
-
rotate: () => update({
|
|
666
|
-
value,
|
|
667
|
-
isRotated: !isRotated
|
|
668
|
-
}),
|
|
669
|
-
select: (value) => update({
|
|
670
|
-
value,
|
|
671
|
-
isRotated
|
|
672
|
-
})
|
|
673
|
-
}), [
|
|
674
|
-
name,
|
|
675
|
-
type,
|
|
676
|
-
width,
|
|
677
|
-
height,
|
|
678
|
-
value,
|
|
679
|
-
option,
|
|
680
|
-
isCustom,
|
|
681
|
-
isDefault,
|
|
682
|
-
isRotated,
|
|
683
|
-
isLocked,
|
|
684
|
-
options,
|
|
685
|
-
resize,
|
|
686
|
-
update
|
|
687
|
-
]);
|
|
688
|
-
};
|
|
689
|
-
})))();
|
|
690
|
-
}
|
|
691
|
-
//#endregion
|
|
692
454
|
//#region src/shared/constants/tags.ts
|
|
693
455
|
var Tag, BUILT_IN_FILTERS, USER_TAG_FILTER;
|
|
694
456
|
function init_tags() {
|
|
@@ -779,6 +541,25 @@ function init_storybook_error() {
|
|
|
779
541
|
})))();
|
|
780
542
|
}
|
|
781
543
|
//#endregion
|
|
544
|
+
//#region src/preview-errors.ts
|
|
545
|
+
var StatusTypeIdMismatchError$1;
|
|
546
|
+
function init_preview_errors() {
|
|
547
|
+
return (init_preview_errors = __esmMin((() => {
|
|
548
|
+
init_storybook_error();
|
|
549
|
+
StatusTypeIdMismatchError$1 = class extends StorybookError {
|
|
550
|
+
constructor(data) {
|
|
551
|
+
super({
|
|
552
|
+
name: "StatusTypeIdMismatchError",
|
|
553
|
+
category: "PREVIEW_API",
|
|
554
|
+
code: 16,
|
|
555
|
+
message: `Status has typeId "${data.status.typeId}" but was added to store with typeId "${data.typeId}". Full status: ${JSON.stringify(data.status, null, 2)}`
|
|
556
|
+
});
|
|
557
|
+
this.data = data;
|
|
558
|
+
}
|
|
559
|
+
};
|
|
560
|
+
})))();
|
|
561
|
+
}
|
|
562
|
+
//#endregion
|
|
782
563
|
//#region src/server-errors.ts
|
|
783
564
|
var StatusTypeIdMismatchError;
|
|
784
565
|
function init_server_errors() {
|
|
@@ -863,11 +644,11 @@ function createStatusStore({ universalStatusStore, useUniversalStore, environmen
|
|
|
863
644
|
status,
|
|
864
645
|
typeId
|
|
865
646
|
});
|
|
866
|
-
case "manager": throw new StatusTypeIdMismatchError$
|
|
647
|
+
case "manager": throw new StatusTypeIdMismatchError$2({
|
|
867
648
|
status,
|
|
868
649
|
typeId
|
|
869
650
|
});
|
|
870
|
-
default: throw new StatusTypeIdMismatchError$
|
|
651
|
+
default: throw new StatusTypeIdMismatchError$1({
|
|
871
652
|
status,
|
|
872
653
|
typeId
|
|
873
654
|
});
|
|
@@ -1403,4 +1184,4 @@ function init_use_universal_store_manager() {
|
|
|
1403
1184
|
})))();
|
|
1404
1185
|
}
|
|
1405
1186
|
//#endregion
|
|
1406
|
-
export {
|
|
1187
|
+
export { REVIEW_COLLECTION_QUERY_PARAM as A, REVIEW_EVENTS as C, useSyncExternalStoreWithSelector as D, init_with_selector as E, init_ToolbarManager as F, TOOLBAR_ID as I, init_constants as L, isReviewCollectionStoryRoute as M, isReviewSummaryPath as N, init_useCopyButton as O, ToolbarManager as P, global as R, parseIframeResizeMessage as S, init_events as T, init_tags as _, UNIVERSAL_STATUS_STORE_OPTIONS as a, iframeResizeDimensionsEqual 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, init_routes as j, useCopyButton 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, IFRAME_RESIZE_REQUEST_CONTEXT as v, REVIEW_NAMESPACE as w, init_iframe_resize as x, hasFixedViewportDimensions as y, init_global as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as __esmMin } from "./runtime-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { n as __esmMin } from "./runtime-BdGkqNEt.js";
|
|
2
|
+
import { Cr as useLayoutEffect, Dr as useState, Er as useRef, Or as useSyncExternalStore, Sr as useImperativeHandle, _r as useCallback, br as useEffect, c as createPortal, cr as _storybook_global_react_exports, d as init_jsx_runtime, dr as createElement, f as jsx, fr as createRef, hr as isValidElement, ir as Children, kr as version, l as flushSync, lr as cloneElement, mr as init__storybook_global_react, or as Fragment, p as jsxs, pr as forwardRef, u as init__storybook_global_react_dom, ur as createContext, vr as useContext, wr as useMemo, yr as useDebugValue } from "./runtime-BM30BmeT.js";
|
|
3
|
+
import { D as useSyncExternalStoreWithSelector, E as init_with_selector } from "./runtime-DvrwKw7z.js";
|
|
4
4
|
//#region ../../node_modules/@base-ui/utils/useRefWithInit.mjs
|
|
5
5
|
/**
|
|
6
6
|
* A React.useRef() that is initialized with a function. Note that it accepts an optional
|
|
@@ -3052,7 +3052,7 @@ function useStoreR19(store, selector, a1, a2, a3) {
|
|
|
3052
3052
|
a2,
|
|
3053
3053
|
a3
|
|
3054
3054
|
]);
|
|
3055
|
-
return
|
|
3055
|
+
return useSyncExternalStore(store.subscribe, getSelection, getSelection);
|
|
3056
3056
|
}
|
|
3057
3057
|
function useStoreFast(store, selector, a1, a2, a3) {
|
|
3058
3058
|
const instance = getInstance();
|
|
@@ -3085,14 +3085,13 @@ function useStoreFast(store, selector, a1, a2, a3) {
|
|
|
3085
3085
|
return hook.value;
|
|
3086
3086
|
}
|
|
3087
3087
|
function useStoreLegacy(store, selector, a1, a2, a3) {
|
|
3088
|
-
return
|
|
3088
|
+
return useSyncExternalStoreWithSelector(store.subscribe, store.getSnapshot, store.getSnapshot, (state) => selector(state, a1, a2, a3));
|
|
3089
3089
|
}
|
|
3090
|
-
var
|
|
3090
|
+
var useStoreImplementation;
|
|
3091
3091
|
function init_useStore() {
|
|
3092
3092
|
return (init_useStore = __esmMin((() => {
|
|
3093
3093
|
init__storybook_global_react();
|
|
3094
|
-
|
|
3095
|
-
import_with_selector = require_with_selector();
|
|
3094
|
+
init_with_selector();
|
|
3096
3095
|
init_reactVersion();
|
|
3097
3096
|
init_fastHooks();
|
|
3098
3097
|
useStoreImplementation = isReactVersionAtLeast(19) ? useStoreFast : useStoreLegacy;
|
|
@@ -3132,7 +3131,7 @@ function init_useStore() {
|
|
|
3132
3131
|
};
|
|
3133
3132
|
};
|
|
3134
3133
|
}
|
|
3135
|
-
|
|
3134
|
+
useSyncExternalStore(instance.subscribe, instance.getSnapshot, instance.getSnapshot);
|
|
3136
3135
|
}
|
|
3137
3136
|
}
|
|
3138
3137
|
});
|
|
@@ -3596,13 +3595,11 @@ function usePopupHandleStore(handle) {
|
|
|
3596
3595
|
const getSnapshot = useCallback(() => {
|
|
3597
3596
|
return handle === void 0 ? void 0 : handle.store;
|
|
3598
3597
|
}, [handle]);
|
|
3599
|
-
return
|
|
3598
|
+
return useSyncExternalStore(subscribe, getSnapshot, () => handle?.serverStore);
|
|
3600
3599
|
}
|
|
3601
|
-
var import_shim;
|
|
3602
3600
|
function init_usePopupHandleStore() {
|
|
3603
3601
|
return (init_usePopupHandleStore = __esmMin((() => {
|
|
3604
3602
|
init__storybook_global_react();
|
|
3605
|
-
import_shim = require_shim();
|
|
3606
3603
|
init_empty();
|
|
3607
3604
|
})))();
|
|
3608
3605
|
}
|