@aussieljk/forkbook 0.0.1-2 → 0.0.1-20
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/LICENSE +1 -1
- package/README.md +35 -53
- package/assets/addon-vitest/templates/vitest.config.4.template.ts +2 -2
- package/assets/browser/favicon-wrapper.svg +4 -4
- package/assets/browser/favicon.svg +1 -1
- package/assets/browser/inter-LICENSE.txt +92 -0
- package/assets/browser/inter-variable-italic.woff2 +0 -0
- package/assets/browser/inter-variable.woff2 +0 -0
- package/assets/browser/mirror-ball.png +0 -0
- package/assets/builder-vite/iframe.html +8 -24
- package/assets/create/rendererAssets/common/Configure.mdx +100 -100
- package/assets/create/rendererAssets/common/button.css +7 -7
- package/assets/create/rendererAssets/common/header.css +6 -6
- package/assets/create/rendererAssets/common/page.css +12 -12
- package/assets/create/templates/react-native/index.expo.js +4 -4
- package/assets/create/templates/react-native/index.js +5 -5
- package/assets/server/base-preview-body.html +32 -32
- package/assets/server/base-preview-head.html +86 -86
- package/assets/server/template.ejs +31 -26
- package/dist/_browser-chunks/{Color-PCLE2J36.js → Color-KALNKPOV.js} +8 -8
- package/dist/_browser-chunks/{DocsRenderer-JXND3PVQ.js → DocsRenderer-DKXSW2OY.js} +2 -2
- package/dist/_browser-chunks/WithTooltip-66AWY4VQ.js +199 -0
- package/dist/_browser-chunks/{chunk-RBCHTR7C.js → chunk-2ELGJRFZ.js} +1 -1
- package/dist/_browser-chunks/{chunk-PFRNG3UC.js → chunk-2WZWS7GJ.js} +5 -5
- package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-3QNZOMD7.js} +8 -3
- package/dist/_browser-chunks/{chunk-LV5PIKV4.js → chunk-3QPZOXB7.js} +6 -8
- package/dist/_browser-chunks/{chunk-ODVJ3XZJ.js → chunk-4BOJAE7P.js} +14 -10
- package/dist/_browser-chunks/{chunk-2MEPHP35.js → chunk-4KIQBRD2.js} +1 -1
- package/dist/_browser-chunks/chunk-4ZGQ4YQ2.js +20 -0
- package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
- package/dist/_browser-chunks/{chunk-W5M6NPS3.js → chunk-6SL45YM3.js} +15 -18
- package/dist/_browser-chunks/{chunk-2SCZVUKW.js → chunk-AN2LJG5I.js} +1 -1
- package/dist/_browser-chunks/{chunk-P6PK47TQ.js → chunk-BLCZ3C5M.js} +48 -83
- package/dist/_browser-chunks/{chunk-RSPAQWVJ.js → chunk-BNP234B4.js} +1 -1
- package/dist/_browser-chunks/{chunk-JYVGARBG.js → chunk-CX37N6FG.js} +770 -720
- package/dist/_browser-chunks/{chunk-JSBKXXXF.js → chunk-DHTLVXAL.js} +38 -45
- package/dist/_browser-chunks/{chunk-GNZY6LOW.js → chunk-DISGPOF4.js} +54 -51
- package/dist/_browser-chunks/chunk-DNJ3OSLB.js +6021 -0
- package/dist/_browser-chunks/{chunk-6SXYJQST.js → chunk-E6QKKKLO.js} +21 -6
- package/dist/_browser-chunks/{chunk-FJGWSWL5.js → chunk-EBSOKHFG.js} +10 -4
- package/dist/_browser-chunks/{chunk-CFAOWGL7.js → chunk-ECMVTOVD.js} +1 -1
- package/dist/_browser-chunks/{chunk-CFWWCCZV.js → chunk-ENHFQXYS.js} +9 -7
- package/dist/_browser-chunks/{chunk-YTIT5NA5.js → chunk-EW2M3URL.js} +91 -84
- package/dist/_browser-chunks/{chunk-MFMDGWP6.js → chunk-FCULT3AE.js} +3 -3
- package/dist/_browser-chunks/{chunk-46Z7NGAS.js → chunk-HX443LKV.js} +1 -1
- package/dist/_browser-chunks/chunk-HZFHNYRC.js +53 -0
- package/dist/_browser-chunks/chunk-IFADVEQE.js +669 -0
- package/dist/_browser-chunks/{chunk-OQWFVDIN.js → chunk-KQJ4T6JL.js} +31 -25
- package/dist/_browser-chunks/{chunk-RNTIV5CE.js → chunk-LYYXDWR2.js} +9 -9
- package/dist/_browser-chunks/{chunk-V5M7Q4HT.js → chunk-MJIDTL3X.js} +4 -14
- package/dist/_browser-chunks/{chunk-V2G23FV7.js → chunk-N5WQGLI7.js} +1 -1
- package/dist/_browser-chunks/{chunk-EIYAKDGP.js → chunk-NA4ITZTK.js} +127 -105
- package/dist/_browser-chunks/{chunk-RMYQ3QN3.js → chunk-NK5SGJNG.js} +22 -17
- package/dist/_browser-chunks/chunk-NPNIBOPF.js +18 -0
- package/dist/_browser-chunks/{chunk-YEKO6BHJ.js → chunk-ONTSNQON.js} +1 -1
- package/dist/_browser-chunks/chunk-OOETBSA7.js +502 -0
- package/dist/_browser-chunks/{chunk-KQ7CRO2B.js → chunk-OWWV6YG7.js} +12 -12
- package/dist/_browser-chunks/chunk-PFYL47RM.js +45 -0
- package/dist/_browser-chunks/{chunk-OD6IBQCC.js → chunk-PQRPDA4U.js} +5 -5
- package/dist/_browser-chunks/{chunk-2JDQ35OA.js → chunk-PU7D2WDP.js} +0 -11
- package/dist/_browser-chunks/chunk-PZQRXPVR.js +21 -0
- package/dist/_browser-chunks/{chunk-5WMXI5GW.js → chunk-QFO2B4X2.js} +31 -28
- package/dist/_browser-chunks/{chunk-2JT76G3E.js → chunk-SBOQ4QPY.js} +15 -15
- package/dist/_browser-chunks/{chunk-C3D4HEFY.js → chunk-TRXLBGLS.js} +344 -166
- package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
- package/dist/_browser-chunks/{chunk-5I7E4GMO.js → chunk-WY2LUGOH.js} +1 -1
- package/dist/_browser-chunks/chunk-XKTORVEQ.js +255 -0
- package/dist/_browser-chunks/chunk-XSVERCGB.js +91 -0
- package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-XTQCLWVH.js} +325 -1635
- package/dist/_browser-chunks/{chunk-MDOL7KML.js → chunk-YJO5BK52.js} +7 -3
- package/dist/_browser-chunks/{chunk-66OCZ54D.js → chunk-ZF37BMDS.js} +6 -2
- package/dist/_browser-chunks/{matchers-YLBYSYAF.js → matchers-2HVLNCVO.js} +4 -4
- package/dist/_browser-chunks/{react-dom-client-4OHE3QDV.js → react-dom-client-SLBUX3U3.js} +1 -1
- package/dist/_node-chunks/{attached-runtime-I2G4WLJI.js → attached-runtime-YD6HKC4B.js} +33 -31
- package/dist/_node-chunks/builder-manager-UNJGYVTD.js +1176 -0
- package/dist/_node-chunks/chunk-25A7444H.js +47 -0
- package/dist/_node-chunks/{chunk-U5W53R2J.js → chunk-2CNN3CRI.js} +506 -494
- package/dist/_node-chunks/{chunk-VLOXOXXE.js → chunk-2GA4VQCS.js} +9 -9
- package/dist/_node-chunks/{chunk-YZFWBA5L.js → chunk-2VJHCGAK.js} +368 -321
- package/dist/_node-chunks/{chunk-FK7KGTV7.js → chunk-33I6AQU7.js} +7 -7
- package/dist/_node-chunks/{chunk-6YKBRP72.js → chunk-3CQI3JH5.js} +6 -6
- package/dist/_node-chunks/{chunk-IK4FGZLR.js → chunk-3ZOSFS7G.js} +6 -6
- package/dist/_node-chunks/{chunk-DUR55DJJ.js → chunk-4BE3LRIQ.js} +86 -67
- package/dist/_node-chunks/{chunk-Q7QNUM5H.js → chunk-5LFJQCYN.js} +6 -6
- package/dist/_node-chunks/{chunk-3Y6AAY5H.js → chunk-65X3MXFT.js} +8 -8
- package/dist/_node-chunks/chunk-6FWJWEAG.js +52 -0
- package/dist/_node-chunks/{chunk-UVINFLGY.js → chunk-6NLQCV6A.js} +7 -7
- package/dist/_node-chunks/{chunk-KISMCCP5.js → chunk-6OQKMJJA.js} +474 -479
- package/dist/_node-chunks/{chunk-XLP2ZKXV.js → chunk-6RYD6ENB.js} +7 -7
- package/dist/_node-chunks/{chunk-V2DY426G.js → chunk-75TTPKEA.js} +283 -306
- package/dist/_node-chunks/{chunk-3W7F2B7P.js → chunk-7CWDZLIZ.js} +6 -6
- package/dist/_node-chunks/{chunk-FPZB5OI7.js → chunk-7M3TOE4F.js} +6 -6
- package/dist/_node-chunks/{chunk-DC7DKR5K.js → chunk-AGLGQNTY.js} +6 -6
- package/dist/_node-chunks/{chunk-NIBT7XDZ.js → chunk-AOYLA323.js} +9 -6
- package/dist/_node-chunks/{chunk-RRN2V55B.js → chunk-AP4HJ3I3.js} +7 -7
- package/dist/_node-chunks/chunk-AVHJZUTH.js +2613 -0
- package/dist/_node-chunks/{chunk-H32DYT6P.js → chunk-B2EEX2SZ.js} +6 -6
- package/dist/_node-chunks/chunk-CGVVOUBC.js +18 -0
- package/dist/_node-chunks/{chunk-B5J7Q7J4.js → chunk-CJDYU653.js} +6 -6
- package/dist/_node-chunks/{chunk-XHL2LVBM.js → chunk-CPDP5SQS.js} +14 -16
- package/dist/_node-chunks/{chunk-LO56I6E2.js → chunk-DAYTIH6Z.js} +10 -10
- package/dist/_node-chunks/{chunk-FW2HQUBQ.js → chunk-DO3CPQAZ.js} +6 -6
- package/dist/_node-chunks/chunk-DQEUNKLX.js +347 -0
- package/dist/_node-chunks/{chunk-BS2WMZMR.js → chunk-EFCBUWOB.js} +7 -7
- package/dist/_node-chunks/{chunk-OWNFOGTA.js → chunk-EG2WLN5V.js} +7 -7
- package/dist/_node-chunks/{chunk-LCK4ZQKG.js → chunk-EKYNX5NX.js} +9 -9
- package/dist/_node-chunks/{chunk-TNJIXE37.js → chunk-F762PHMI.js} +6 -6
- package/dist/_node-chunks/{chunk-ET7PWEO7.js → chunk-FC3V4KZO.js} +14 -13
- package/dist/_node-chunks/chunk-FXW52X4U.js +281 -0
- package/dist/_node-chunks/{chunk-TD5PLLQG.js → chunk-GEJBTN76.js} +62 -7
- package/dist/_node-chunks/chunk-GFEH7IBP.js +620 -0
- package/dist/_node-chunks/{chunk-TWI4GVH7.js → chunk-GWT4HQZU.js} +6 -6
- package/dist/_node-chunks/{chunk-4FEANXWU.js → chunk-HHM5X5RQ.js} +140 -118
- package/dist/_node-chunks/{chunk-MA24JW6C.js → chunk-IBLUURAJ.js} +25 -8
- package/dist/_node-chunks/{chunk-2BUPBPFB.js → chunk-IENHXJVB.js} +7 -7
- package/dist/_node-chunks/{chunk-EWOX7HPJ.js → chunk-IIGBIVK3.js} +6 -6
- package/dist/_node-chunks/{chunk-XGIUVY52.js → chunk-J6FGP2VM.js} +7 -7
- package/dist/_node-chunks/chunk-JOX7OETB.js +534 -0
- package/dist/_node-chunks/{chunk-RXNJDRGO.js → chunk-JR7ZCQ77.js} +21 -25
- package/dist/_node-chunks/{chunk-OISX4AGQ.js → chunk-JXZONVHW.js} +37 -31
- package/dist/_node-chunks/{chunk-34EO2PUT.js → chunk-KAALBGRE.js} +6 -6
- package/dist/_node-chunks/{chunk-SLWQNBGO.js → chunk-L52VGA36.js} +34 -949
- package/dist/_node-chunks/chunk-LAJIVWUF.js +497 -0
- package/dist/_node-chunks/{chunk-JGGFYIG5.js → chunk-LCNF6BLP.js} +7 -7
- package/dist/_node-chunks/chunk-LGHTKFSF.js +405 -0
- package/dist/_node-chunks/{chunk-WCULS5TP.js → chunk-LNGSV5UI.js} +7 -7
- package/dist/_node-chunks/{chunk-HMP2G23X.js → chunk-MC4BFUVH.js} +6 -6
- package/dist/_node-chunks/{chunk-SWO5CDYU.js → chunk-MWKSSYPG.js} +8 -8
- package/dist/_node-chunks/{chunk-2DSIDINN.js → chunk-N25CZ3RC.js} +650 -9
- package/dist/_node-chunks/{chunk-WZJF2OUH.js → chunk-N4LNGTYL.js} +7 -7
- package/dist/_node-chunks/{chunk-XI6B6P47.js → chunk-N5WU4BEY.js} +6 -6
- package/dist/_node-chunks/{chunk-TINO74G5.js → chunk-NRXCMSAI.js} +6 -6
- package/dist/_node-chunks/{chunk-E6YESGLX.js → chunk-NZWK62R5.js} +542 -1049
- package/dist/_node-chunks/{chunk-DHJFTB4K.js → chunk-OBPVOYJA.js} +7 -7
- package/dist/_node-chunks/{chunk-6KEHV53S.js → chunk-OMMQME7G.js} +33 -41
- package/dist/_node-chunks/chunk-PJRPETSU.js +62 -0
- package/dist/_node-chunks/{chunk-7GUDZVRQ.js → chunk-QDVIQG3B.js} +6 -6
- package/dist/_node-chunks/{chunk-OUW6R7C3.js → chunk-QEYWG5C7.js} +6 -6
- package/dist/_node-chunks/{chunk-GRBLDJCR.js → chunk-QQNRWEHL.js} +132 -149
- package/dist/_node-chunks/{chunk-EHUNOMDD.js → chunk-RAIWLNFA.js} +29849 -51588
- package/dist/_node-chunks/{chunk-JZOO7GGC.js → chunk-S7RGKBGT.js} +6 -6
- package/dist/_node-chunks/{chunk-GEFQN7K3.js → chunk-SFXFL4TP.js} +8 -8
- package/dist/_node-chunks/{chunk-JDXXX6LB.js → chunk-SPAHK37C.js} +6 -6
- package/dist/_node-chunks/chunk-SUQ4OM7Y.js +49 -0
- package/dist/_node-chunks/chunk-U54Q3F7E.js +20 -0
- package/dist/_node-chunks/{chunk-RWFIFGO5.js → chunk-UZH2V3WY.js} +8 -8
- package/dist/_node-chunks/{chunk-SVTBJ7Q3.js → chunk-VIMGLCNZ.js} +6 -6
- package/dist/_node-chunks/{chunk-BSKFCWQD.js → chunk-VNZF62KE.js} +7 -7
- package/dist/_node-chunks/{chunk-CCOTJ4FC.js → chunk-VPFU5CEP.js} +10 -10
- package/dist/_node-chunks/{chunk-RZMQ7S3L.js → chunk-VYCVBW5Q.js} +8 -8
- package/dist/_node-chunks/{chunk-ICPBH3E7.js → chunk-WDANLGYN.js} +7 -7
- package/dist/_node-chunks/{chunk-UMUBKI6E.js → chunk-WMZJ2WK4.js} +96 -177
- package/dist/_node-chunks/{chunk-LXBD4UL4.js → chunk-WTPHQ2NG.js} +8 -8
- package/dist/_node-chunks/chunk-WYCITRIE.js +11 -0
- package/dist/_node-chunks/chunk-WYRBOMQF.js +137 -0
- package/dist/_node-chunks/{chunk-ZWBCQ4MJ.js → chunk-WZBMPROH.js} +9 -17
- package/dist/_node-chunks/{chunk-CXRU72ET.js → chunk-X2GGQZIN.js} +6 -6
- package/dist/_node-chunks/chunk-X6OGIC2G.js +28 -0
- package/dist/_node-chunks/{chunk-42UWAGPW.js → chunk-XF7H5GZM.js} +52 -22
- package/dist/_node-chunks/{chunk-WNZ2UMFM.js → chunk-XUZB4FIX.js} +15 -9
- package/dist/_node-chunks/{chunk-3SDUYDXH.js → chunk-XVSUIOZA.js} +7 -7
- package/dist/_node-chunks/{chunk-TFEWM4E3.js → chunk-Z665R6AF.js} +75 -75
- package/dist/_node-chunks/{chunk-H4PPVMP5.js → chunk-ZEYZWDOS.js} +6 -6
- package/dist/_node-chunks/{chunk-UBOGWBEA.js → chunk-ZHRCL7PG.js} +10 -10
- package/dist/_node-chunks/chunk-ZLC4JSBV.js +25 -0
- package/dist/_node-chunks/{chunk-F3ZFKBHY.js → chunk-ZN6YOIB2.js} +8 -8
- package/dist/_node-chunks/{chunk-YCMRA6RX.js → chunk-ZX32M4O7.js} +7 -7
- package/dist/_node-chunks/{chunk-NDWKJ4CL.js → chunk-ZZ5XMIGW.js} +97 -111
- package/dist/_node-chunks/dist-HBFOS25E.js +16 -0
- package/dist/_node-chunks/dist-Q2XNFC24.js +27 -0
- package/dist/_node-chunks/{local-runtime-NTKIN2QT.js → local-runtime-4ETW6QTI.js} +19 -20
- package/dist/_node-chunks/{mdx-plugin-MWISDWDQ.js → mdx-plugin-OOYTYMVU.js} +2263 -130
- package/dist/_node-chunks/{monorepo-LIRFMQXE.js → monorepo-3AWUYNFD.js} +12 -12
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-CPDW4XTW.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-ORY3BAP5.js} +12 -12
- package/dist/_node-chunks/optimized-tests-DOKSUJAM.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-EKHIUAU2.js → pattern-copy-play-AY4DE7ME.js} +12 -12
- package/dist/_node-chunks/postinstallAddon-L46G75CD.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-BUN3HUCO.js → rehype-external-links-FGVC633L.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-PLADX223.js → rehype-slug-2AZLMC5G.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-GBHW6KIQ.js → relaxed-limits-QI3YR6CU.js} +12 -12
- package/dist/_node-chunks/{run-NL66VTNR.js → run-QJJ4FOF3.js} +281 -19
- package/dist/_node-chunks/{run-KDTIZNSY.js → run-WFJZYNZN.js} +18 -18
- package/dist/_node-chunks/{setup-MGC7BQO6.js → setup-V5CRAJMV.js} +9 -9
- package/dist/_node-chunks/{vitest.config.4.template-JH2THZFG.js → vitest.config.4.template-LECBBF3L.js} +9 -9
- package/dist/actions/decorator.js +18 -22
- package/dist/actions/index.d.ts +4 -4
- package/dist/actions/index.js +3 -2
- package/dist/addon-a11y/index.d.ts +3 -3
- package/dist/addon-a11y/index.js +3 -2
- package/dist/addon-a11y/manager.js +41 -38
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.d.ts +8 -2
- package/dist/addon-a11y/preview.js +3 -2
- package/dist/addon-comments/manager.js +353 -0
- package/dist/addon-comments/preset.js +52 -0
- package/dist/addon-comments/preview.js +101 -0
- package/dist/addon-docs/blocks.d.ts +123 -85
- package/dist/addon-docs/blocks.js +159 -85
- package/dist/addon-docs/index.d.ts +21 -21
- package/dist/addon-docs/index.js +3 -3
- package/dist/addon-docs/manager.js +6 -6
- package/dist/addon-docs/preset.js +12 -12
- package/dist/addon-docs/preview.d.ts +3 -1
- package/dist/addon-docs/preview.js +1 -1
- package/dist/addon-links/index.d.ts +2 -1
- package/dist/addon-links/index.js +5 -2
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-links/preview.js +5 -2
- package/dist/addon-links/react/index.js +4 -1
- package/dist/addon-mcp/preset.js +176 -57
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +70 -70
- package/dist/addon-ondevice-actions/index.js +5 -1
- package/dist/addon-ondevice-actions/register.js +5 -1
- package/dist/addon-ondevice-controls/index.js +1 -1
- package/dist/addon-ondevice-controls/register.js +1 -1
- package/dist/addon-pseudo-states/index.d.ts +1 -1
- package/dist/addon-pseudo-states/index.js +1 -1
- package/dist/addon-pseudo-states/manager.js +2 -2
- package/dist/addon-pseudo-states/preview.d.ts +1 -1
- package/dist/addon-pseudo-states/preview.js +1 -1
- package/dist/addon-themes/index.d.ts +7 -6
- package/dist/addon-themes/index.js +2 -2
- package/dist/addon-themes/manager.js +4 -4
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-themes/preview.js +2 -2
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +32 -23
- package/dist/addon-vitest/node/coverage-reporter.js +11 -11
- package/dist/addon-vitest/node/vitest.js +35 -35
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +22 -22
- package/dist/addon-vitest/vitest-plugin/global-setup.js +22 -22
- package/dist/addon-vitest/vitest-plugin/index.js +78 -68
- package/dist/addon-vitest/vitest-plugin/setup-file-with-project-annotations.js +3 -3
- package/dist/addon-vitest/vitest-plugin/setup-file.js +1 -1
- package/dist/babel/index.d.ts +241 -995
- package/dist/babel/index.js +13 -19
- package/dist/backgrounds/index.d.ts +1 -1
- package/dist/bin/core.js +118 -95
- package/dist/bin/dispatcher.js +18 -16
- package/dist/bin/loader.js +17 -16
- package/dist/builder-next/index.d.ts +59 -0
- package/dist/builder-next/index.js +201 -0
- package/dist/builder-vite/index.d.ts +8 -3
- package/dist/builder-vite/index.js +80 -25
- package/dist/builder-vite/preset.js +13 -13
- package/dist/channels/index.d.ts +3 -2
- package/dist/channels/index.js +97 -24
- package/dist/{chunk-Dr3R0DXk.d.ts → chunk-B-NVyPqN.d.ts} +2 -2
- package/dist/{chunk-DoIGKY33.d.ts → chunk-BLZXEm1K.d.ts} +6 -8
- package/dist/chunk-BcYKnZln.d.ts +10 -0
- package/dist/{chunk-DEVFdzxR.d.ts → chunk-BsO65uOb.d.ts} +4 -4
- package/dist/{chunk-BCoJQE-f.d.ts → chunk-BtKww7r1.d.ts} +6 -4
- package/dist/{chunk-Bpi2tz-6.d.ts → chunk-Bubi-WAs.d.ts} +20 -17
- package/dist/chunk-CDMZhRke.d.ts +30 -0
- package/dist/chunk-CFhJCPSB.d.ts +48 -0
- package/dist/{chunk-DtHByo32.d.ts → chunk-CFk6djyM.d.ts} +5 -5
- package/dist/{chunk-CMeX4WRe.d.ts → chunk-CT2iXaHz.d.ts} +1 -1
- package/dist/{chunk-pcFXCimE.d.ts → chunk-CmV7WZzR.d.ts} +124 -2
- package/dist/{chunk-B2t1tGRh.d.ts → chunk-D2CQlXaR.d.ts} +13 -15
- package/dist/{chunk-BGkgZp-H.d.ts → chunk-D3uSIa6H.d.ts} +9 -1
- package/dist/{chunk-DzuY9DXg.d.ts → chunk-DDd8BhTY.d.ts} +2 -2
- package/dist/{chunk-Dw1z1Pki.d.ts → chunk-DNCU78oW.d.ts} +160 -323
- package/dist/chunk-DVIvUVkS.d.ts +195 -0
- package/dist/{chunk-gCX81nOr.d.ts → chunk-DgzPaTw9.d.ts} +3 -3
- package/dist/{chunk-Kt1tW-D1.d.ts → chunk-Dm-iHJ-s.d.ts} +3 -3
- package/dist/{chunk-C-bavsOH.d.ts → chunk-Dw_4ad2Y.d.ts} +6 -6
- package/dist/{chunk-CwQKNaYL.d.ts → chunk-OksNJcvJ.d.ts} +2 -2
- package/dist/chunk-Susgfkap.d.ts +20 -0
- package/dist/{chunk-C2p5r3Vt.d.ts → chunk-ge-rSPy0.d.ts} +818 -701
- package/dist/{chunk-BXLImeLy.d.ts → chunk-r-Vjut9o.d.ts} +52 -11
- package/dist/cli/index.d.ts +14 -867
- package/dist/cli/index.js +47 -4962
- package/dist/cli/skills/content/index.d.ts +2 -2
- 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 +3 -3
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/client-logger/index.d.ts +20 -21
- package/dist/client-logger/index.js +5 -2
- package/dist/common/index.d.ts +27 -39
- package/dist/common/index.js +35 -42
- package/dist/components/index.d.ts +86 -272
- package/dist/components/index.js +2759 -8547
- package/dist/core-events/index.d.ts +6 -4
- package/dist/core-events/index.js +5 -1
- package/dist/core-server/index.d.ts +58 -17
- package/dist/core-server/index.js +1500 -382
- package/dist/core-server/presets/common-manager.js +836 -1334
- package/dist/core-server/presets/common-override-preset.js +12 -10
- package/dist/core-server/presets/common-preset.js +100 -282
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf/csf-utils.d.ts +1 -1
- package/dist/csf/index.d.ts +6 -6
- package/dist/csf/index.js +86 -154
- package/dist/csf-tools/index.d.ts +66 -54
- package/dist/csf-tools/index.js +18 -16
- package/dist/docs-tools/index.d.ts +332 -16
- package/dist/docs-tools/index.js +3 -3
- package/dist/highlight/index.d.ts +1 -1
- package/dist/instrumenter/index.d.ts +5 -5
- package/dist/instrumenter/index.js +31 -19
- package/dist/manager/_manager-chunks/{globals-runtime-BvM-NY2g.js → globals-runtime-B4NRbNSS.js} +638 -1731
- package/dist/{preview/_chunks/runtime-CqHxptiK.js → manager/_manager-chunks/globals-runtime-BC43T1rL.js} +3413 -173
- package/dist/manager/_manager-chunks/{globals-runtime-sGpNlIJ1.js → globals-runtime-BDkYPr00.js} +715 -620
- package/dist/manager/_manager-chunks/{globals-runtime-eLPTIfX-.js → globals-runtime-BnQ7i5wq.js} +232 -370
- package/dist/manager/_manager-chunks/{globals-runtime-Rp_zjGnh.js → globals-runtime-BnWjPJUH.js} +2 -2
- package/dist/manager/_manager-chunks/globals-runtime-BtduS2C2.js +10601 -0
- package/dist/manager/_manager-chunks/{globals-runtime-C02fvgcd.js → globals-runtime-Bv2PBsx6.js} +411 -379
- package/dist/manager/_manager-chunks/globals-runtime-BzuYs3dZ.js +1971 -0
- package/dist/manager/_manager-chunks/globals-runtime-CBviMKtt.js +446 -0
- package/dist/manager/_manager-chunks/globals-runtime-CS41oTca.js +1808 -0
- package/dist/manager/_manager-chunks/globals-runtime-CoTrrHG3.js +1163 -0
- package/dist/manager/_manager-chunks/{globals-runtime-qKvCZHFY.js → globals-runtime-D6tkG2NO.js} +1033 -621
- package/dist/manager/_manager-chunks/{globals-runtime-BmphMP6z.js → globals-runtime-D9zzVzSP.js} +11 -11
- package/dist/manager/_manager-chunks/{globals-runtime-FC201B7s.js → globals-runtime-DCmvKMN5.js} +2 -1
- package/dist/manager/_manager-chunks/{globals-runtime-DpNYC-qi.js → globals-runtime-DafcXCKU.js} +1013 -778
- package/dist/manager/_manager-chunks/globals-runtime-DgO0hT2p.js +32 -0
- package/dist/manager/_manager-chunks/globals-runtime-Me9Bl-sx.js +156 -0
- package/dist/manager/_manager-chunks/globals-runtime-nQMRiA0J.js +19 -0
- package/dist/manager/_manager-chunks/globals-runtime-oRjPg2jY.js +8935 -0
- package/dist/manager/_manager-chunks/{runtime-EITvVbkG.js → runtime-BdGkqNEt.js} +1 -2
- package/dist/manager/_manager-chunks/runtime-BhfRBP4G.js +294 -0
- package/dist/manager/_manager-chunks/runtime-BuPcYKCO.js +737 -0
- package/dist/manager/_manager-chunks/{runtime-eDVAYF7N.js → runtime-CGaGp83p.js} +57 -76
- package/dist/manager/_manager-chunks/{runtime-BhkT2CXl.js → runtime-CXROgt6G.js} +220 -406
- package/dist/manager/_manager-chunks/{runtime-i-PDAHLR.js → runtime-Cn5PJT3-.js} +741 -698
- package/dist/manager/_manager-chunks/{runtime-cp5pazY2.js → runtime-DJlTd1qE.js} +1717 -1536
- package/dist/manager/_manager-chunks/{runtime-D0UOWx0U.js → runtime-DTUm5K9J.js} +232 -158
- package/dist/manager/_manager-chunks/{runtime-D94Vq3oR.js → runtime-Dc6lf19c.js} +8 -534
- package/dist/manager/_manager-chunks/runtime-DmpQacrn.js +553 -0
- package/dist/manager/_manager-chunks/runtime-P663lpsR.js +528 -0
- package/dist/manager/_manager-chunks/runtime-mjv_40eH.js +201 -0
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/globals.d.ts +12 -12
- package/dist/manager/globals.js +12 -12
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +537 -527
- package/dist/manager-errors.d.ts +1 -1
- package/dist/manager-errors.js +2 -2
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +9 -9
- package/dist/mocking-utils/index.d.ts +7 -5
- package/dist/mocking-utils/index.js +34 -34
- package/dist/mocking-utils/mocker-runtime.js +2 -2
- package/dist/next/index.d.ts +231 -0
- package/dist/next/index.js +398 -0
- package/dist/nextjs-vite/export-mocks/headers/index.js +3 -1
- package/dist/nextjs-vite/export-mocks/link/index.d.ts +4 -1
- package/dist/nextjs-vite/export-mocks/navigation/index.d.ts +9 -1
- package/dist/nextjs-vite/export-mocks/router/index.js +13 -7
- package/dist/nextjs-vite/index.d.ts +4 -4
- package/dist/nextjs-vite/index.js +10 -5
- package/dist/nextjs-vite/node/index.d.ts +2 -2
- 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 +117 -15
- package/dist/nextjs-vite/preview.d.ts +2 -1
- package/dist/nextjs-vite/preview.js +1 -1
- package/dist/nextjs-vite/vite-plugin/index.d.ts +2 -2
- package/dist/nextjs-vite/vite-plugin/index.js +9 -9
- package/dist/nextjs-vite-plugin/index.d.ts +2 -3
- package/dist/nextjs-vite-plugin/index.js +24 -49
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-image.js +2 -2
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-legacy-image.js +2 -2
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +10 -6
- package/dist/node-logger/index.d.ts +83 -90
- package/dist/node-logger/index.js +11 -12
- package/dist/oxc-parser/index.js +15 -14
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/{manager/_manager-chunks/globals-runtime-8HkdnU2F.js → preview/_chunks/runtime-BYRCSYBN.js} +4440 -179
- package/dist/preview/_chunks/{runtime-CsV4HZPV.js → runtime-BiYuZt-X.js} +392 -173
- package/dist/preview/_chunks/{runtime-BZSnICCg.js → runtime-Bvh_rfnQ.js} +29 -64
- package/dist/preview/_chunks/{runtime-iXdo8CR8.js → runtime-C88AzFBv.js} +772 -418
- package/dist/preview/_chunks/{runtime-DrTjJkPY.js → runtime-Cpzxe5eK.js} +447 -151
- package/dist/preview/_chunks/{runtime-q3wt0e_N.js → runtime-D2MPrqbU.js} +2 -2
- package/dist/preview/_chunks/{runtime-BIzIdDbb.js → runtime-DS0s7U3c.js} +482 -334
- package/dist/preview/_chunks/{runtime-CxZK_Ln3.js → runtime-MYVHRAoo.js} +3 -3
- package/dist/preview/globals.d.ts +10 -10
- package/dist/preview/globals.js +10 -10
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +3 -3
- package/dist/preview-api/index.js +12 -10
- package/dist/preview-errors.d.ts +1 -1
- package/dist/preview-errors.js +2 -2
- package/dist/react/docgen/docgen-worker.js +11 -12
- package/dist/react/entry-preview-argtypes.js +1 -1
- package/dist/react/entry-preview-docs.js +1 -1
- package/dist/react/entry-preview.js +2 -1
- package/dist/react/index.d.ts +9 -11
- package/dist/react/index.js +8 -6
- package/dist/react/preset.js +13 -14
- package/dist/react/preview.d.ts +1 -1
- package/dist/react/preview.js +5 -4
- package/dist/react-native/bin/get-stories.js +12 -12
- package/dist/react-native/index.d.ts +48 -47
- package/dist/react-native/index.js +64 -249
- package/dist/react-native/metro/node.d.ts +3 -3
- package/dist/react-native/metro/node.js +10 -9
- package/dist/react-native/metro/{withStorybook.d.ts → withForkbook.d.ts} +18 -18
- package/dist/react-native/metro/{withStorybook.js → withForkbook.js} +27 -26
- package/dist/react-native/preview.js +4 -1
- 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-native-theming/index.d.ts +2 -58
- package/dist/react-native-theming/index.js +63 -2338
- package/dist/react-native-ui/index.d.ts +14 -14
- package/dist/react-native-ui/index.js +8 -15
- package/dist/react-native-ui-common/index.d.ts +32 -12
- package/dist/react-native-ui-common/index.js +26 -31
- 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.d.ts +3 -1
- package/dist/react-vite/preset.js +16 -9
- package/dist/router/index.d.ts +80 -3
- package/dist/router/index.js +66 -12
- package/dist/server-errors.d.ts +1 -1
- package/dist/server-errors.js +9 -9
- package/dist/shared/open-service/index.d.ts +3 -3
- package/dist/shared/open-service/index.js +2 -2
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/shared/open-service/toolsets/docs/public.d.ts +28 -28
- package/dist/telemetry/index.d.ts +38 -274
- package/dist/telemetry/index.js +11 -68
- package/dist/test/index.d.ts +2 -2
- package/dist/test/index.js +765 -511
- package/dist/theming/create.d.ts +1 -1
- package/dist/theming/create.js +2 -1
- package/dist/theming/index.d.ts +6 -6
- package/dist/theming/index.js +41 -16
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +5 -5
- package/dist/viewport/index.d.ts +1 -1
- package/package.json +69 -69
- package/skills/setup/SKILL.md +14 -0
- package/skills/stories/SKILL.md +21 -0
- package/skills/write-story/SKILL.md +14 -0
- package/template/nextjs-vite/cli/js/Button.jsx +2 -2
- package/template/nextjs-vite/cli/js/Button.stories.js +6 -6
- package/template/nextjs-vite/cli/js/Configure.mdx +100 -100
- package/template/nextjs-vite/cli/js/Header.jsx +1 -1
- package/template/nextjs-vite/cli/js/Header.stories.js +2 -2
- package/template/nextjs-vite/cli/js/Page.jsx +3 -3
- package/template/nextjs-vite/cli/js/Page.stories.js +2 -2
- package/template/nextjs-vite/cli/ts/Button.stories.ts +6 -6
- package/template/nextjs-vite/cli/ts/Button.tsx +2 -2
- package/template/nextjs-vite/cli/ts/Configure.mdx +84 -84
- package/template/nextjs-vite/cli/ts/Header.stories.ts +2 -2
- package/template/nextjs-vite/cli/ts/Header.tsx +1 -1
- package/template/nextjs-vite/cli/ts/Page.stories.ts +2 -2
- package/template/nextjs-vite/cli/ts/Page.tsx +3 -3
- package/template/react/cli/js/Button.jsx +2 -2
- package/template/react/cli/js/Button.stories.js +6 -6
- package/template/react/cli/js/Header.jsx +1 -1
- package/template/react/cli/js/Header.stories.js +2 -2
- package/template/react/cli/js/Page.jsx +3 -3
- package/template/react/cli/js/Page.stories.js +2 -2
- package/template/react/cli/ts/Button.stories.ts +6 -6
- package/template/react/cli/ts/Button.tsx +2 -2
- package/template/react/cli/ts/Header.stories.ts +2 -2
- package/template/react/cli/ts/Header.tsx +1 -1
- package/template/react/cli/ts/Page.stories.ts +2 -2
- package/template/react/cli/ts/Page.tsx +3 -3
- package/template/react-vite/cli/js/Button.jsx +2 -2
- package/template/react-vite/cli/js/Button.stories.js +6 -6
- package/template/react-vite/cli/js/Header.jsx +1 -1
- package/template/react-vite/cli/js/Header.stories.js +2 -2
- package/template/react-vite/cli/js/Page.jsx +3 -3
- package/template/react-vite/cli/js/Page.stories.js +2 -2
- package/template/react-vite/cli/ts/Button.stories.ts +6 -6
- package/template/react-vite/cli/ts/Button.tsx +2 -2
- package/template/react-vite/cli/ts/Header.stories.ts +2 -2
- package/template/react-vite/cli/ts/Header.tsx +1 -1
- package/template/react-vite/cli/ts/Page.stories.ts +2 -2
- package/template/react-vite/cli/ts/Page.tsx +3 -3
- package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-bold.woff2 +0 -0
- package/assets/browser/nunito-sans-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-regular.woff2 +0 -0
- package/dist/_browser-chunks/WithTooltip-XSQFTBMB.js +0 -1619
- package/dist/_browser-chunks/chunk-5P4QA6MY.js +0 -20
- package/dist/_browser-chunks/chunk-JMC7AIKT.js +0 -108
- package/dist/_node-chunks/builder-manager-VVHYQXCH.js +0 -1661
- package/dist/_node-chunks/chunk-2RU7BKEW.js +0 -23
- package/dist/_node-chunks/chunk-3BKIBF5S.js +0 -3008
- package/dist/_node-chunks/chunk-3T4ZSNPH.js +0 -662
- package/dist/_node-chunks/chunk-5DQFEZEA.js +0 -40
- package/dist/_node-chunks/chunk-6LMWA44H.js +0 -3837
- package/dist/_node-chunks/chunk-BXVYT7SB.js +0 -36
- package/dist/_node-chunks/chunk-CQKMLL5J.js +0 -33
- package/dist/_node-chunks/chunk-FY6UXW6G.js +0 -11
- package/dist/_node-chunks/chunk-IDEL2J23.js +0 -23
- package/dist/_node-chunks/chunk-JPAZLYJ3.js +0 -29
- package/dist/_node-chunks/chunk-MK2KYAI6.js +0 -5414
- package/dist/_node-chunks/chunk-NPO45IMH.js +0 -33
- package/dist/_node-chunks/chunk-QEQLR22M.js +0 -1877
- package/dist/_node-chunks/chunk-SIEXZVCR.js +0 -51
- package/dist/_node-chunks/chunk-TEQGGSP7.js +0 -33
- package/dist/_node-chunks/chunk-TFCEV2XX.js +0 -155
- package/dist/_node-chunks/chunk-W4OMYLSP.js +0 -1297
- package/dist/_node-chunks/chunk-WAXVSN3O.js +0 -18
- package/dist/_node-chunks/chunk-ZMAMXQKP.js +0 -4731
- package/dist/_node-chunks/dist-VTSTZKUB.js +0 -16
- package/dist/_node-chunks/globby-OEMHPBFY.js +0 -2884
- package/dist/_node-chunks/jiti-NFX6UU74.js +0 -3848
- package/dist/_node-chunks/lib-MDVARD7W.js +0 -366
- package/dist/_node-chunks/optimized-tests-HDOLR3EY.js +0 -22
- package/dist/_node-chunks/postinstallAddon-GYGMWDL6.js +0 -20
- package/dist/_node-chunks/session-id-KIIVOQLR.js +0 -23
- package/dist/chunk-BTVrWliM.d.ts +0 -115
- package/dist/chunk-BfBzpgct.d.ts +0 -916
- package/dist/chunk-BxWufQms.d.ts +0 -142
- package/dist/chunk-DaVb55-_.d.ts +0 -124
- package/dist/core-server/presets/common-manager.css +0 -170
- package/dist/manager/_manager-chunks/globals-runtime-BIKBO23x.js +0 -3389
- package/dist/manager/_manager-chunks/globals-runtime-DkAPXCvc.js +0 -9766
- package/dist/manager/_manager-chunks/globals-runtime-DtcOnYHR.js +0 -5357
- package/dist/manager/_manager-chunks/globals-runtime-ZHrQFa3-.js +0 -10463
- package/dist/manager/_manager-chunks/runtime-B1L9TH89.js +0 -452
- package/dist/manager/_manager-chunks/runtime-BK0zF7FN.js +0 -22
- package/dist/manager/_manager-chunks/runtime-Bly6WJLN.js +0 -998
- package/dist/manager/_manager-chunks/runtime-DMig8mT7.js +0 -77
- package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
- package/dist/preview/_chunks/runtime-BwSxqk3t.js +0 -63
- package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
- package/dist/preview/_chunks/runtime-DuHdxMFA.js +0 -387
|
@@ -1,13 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { c as
|
|
7
|
-
|
|
1
|
+
import { a as __toESM, n as __esmMin } from "./runtime-BdGkqNEt.js";
|
|
2
|
+
import { $a as init_channels, Ba as CHANNEL_WS_DISCONNECT, C as Route, Co as useState, D as init_router, Dt as addons, E as getBasename, Fi as RefreshCwIcon, G as Form, Gt as useStorybookApi, J as Loader, Kt as useStorybookState, L as Button, Lt as shortcutMatchesShortcut, Mr as HeartIcon, Na as XIcon, Nt as init_manager_api, Ot as eventToShortcut, Pn as CircleIcon, Qa as createBrowserChannel, Ra as init__forkbook_global_lucide_react, Rt as shortcutToHumanString, St as init_theming, Tn as CheckIcon, Tt as Consumer, Va as CHANNEL_WS_RECONNECT, Vn as CircleXIcon, W as ForkbookLogo, Z as ScrollArea, Za as init_core_events, b as Location, bo as useMemo, c as Addon_TypesEnum, cr as EyeIcon, ct as TabsView, d as REVIEW_STATUS_TYPE_ID, f as init_types, fr as FileTextIcon, ft as TooltipProvider, go as useEffect, l as CHANGE_DETECTION_STATUS_TYPE_ID, lr as EyeOffIcon, mt as init_components, no as Fragment, po as useCallback, q as Link, ro as _forkbook_global_react_default, to as Component, u as NON_AGGREGATED_STATUS_TYPE_IDS, uo as init__forkbook_global_react, ut as Tooltip, va as TriangleAlertIcon, vt as color, w as buildManagerHref, wr as GitForkIcon, wt as useTheme, za as CHANNEL_CREATED, zt as types } from "./runtime-BuPcYKCO.js";
|
|
3
|
+
import { A as isThumbnailUrl, B as TOOLBAR_ID, C as init_useCopyButton, H as global, R as ToolbarManager, U as init_global, V as init_constants, k as init_thumbnails, w as useCopyButton, z as init_ToolbarManager } from "./runtime-CXROgt6G.js";
|
|
4
|
+
import { C as UpgradeBlock, c as init_IconSymbols, d as init_menu, f as menuTool, n as renderForkbookUI, o as init_Sidebar, s as UseSymbol, t as init_manager, w as init_UpgradeBlock } from "./runtime-DJlTd1qE.js";
|
|
5
|
+
import { c as require_memoizerific, o as curriedTransparentize$1, s as init_polished_esm } from "./runtime-Cn5PJT3-.js";
|
|
6
|
+
import { c as init_clsx, s as clsx } from "./runtime-Dc6lf19c.js";
|
|
7
|
+
//#region src/manager/utils/root-page.ts
|
|
8
|
+
var getRootPage, thumbnailSrc;
|
|
9
|
+
function init_root_page() {
|
|
10
|
+
return (init_root_page = __esmMin((() => {
|
|
11
|
+
init_router();
|
|
12
|
+
init_global();
|
|
13
|
+
init_thumbnails();
|
|
14
|
+
getRootPage = () => global.FORKBOOK_ROOT ?? {
|
|
15
|
+
enabled: false,
|
|
16
|
+
mode: "above"
|
|
17
|
+
};
|
|
18
|
+
thumbnailSrc = (thumbnail, base = getBasename()) => isThumbnailUrl(thumbnail) ? thumbnail : `${base}/${thumbnail.replace(/^\.?\/+/, "")}`;
|
|
19
|
+
})))();
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/manager/utils/visible-panels.ts
|
|
23
|
+
var getVisiblePanels;
|
|
24
|
+
function init_visible_panels() {
|
|
25
|
+
return (init_visible_panels = __esmMin((() => {
|
|
26
|
+
getVisiblePanels = (allPanels, entry) => {
|
|
27
|
+
if (!allPanels || entry?.type !== "story") return allPanels;
|
|
28
|
+
const { parameters } = entry;
|
|
29
|
+
const filtered = {};
|
|
30
|
+
Object.entries(allPanels).forEach(([id, p]) => {
|
|
31
|
+
const panelParameter = p.paramKey ? parameters?.[p.paramKey] : void 0;
|
|
32
|
+
if (typeof panelParameter === "object" && panelParameter !== null && "disable" in panelParameter && panelParameter.disable) return;
|
|
33
|
+
if (p.disabled === true || typeof p.disabled === "function" && p.disabled(parameters, entry)) return;
|
|
34
|
+
filtered[id] = p;
|
|
35
|
+
});
|
|
36
|
+
return filtered;
|
|
37
|
+
};
|
|
38
|
+
})))();
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
8
41
|
//#region src/manager/utils/tree.ts
|
|
9
42
|
function getPath(item, ref) {
|
|
10
|
-
const parent = item.type !== "root" && item.parent ? ref.index[item.parent] : null;
|
|
43
|
+
const parent = item.type !== "root" && item.parent ? ref.index?.[item.parent] : null;
|
|
11
44
|
if (parent) return [...getPath(parent, ref), parent.name];
|
|
12
45
|
return ref.id === "storybook_internal" ? [] : [ref.title || ref.id];
|
|
13
46
|
}
|
|
@@ -17,16 +50,17 @@ function cycle(array, index, delta) {
|
|
|
17
50
|
if (next >= array.length) next -= array.length;
|
|
18
51
|
return next;
|
|
19
52
|
}
|
|
20
|
-
var import_memoizerific$1, document$3, globalWindow, createId, getLink, get, getParent, getParents, getAncestorIds, getDescendantIds, searchItem, scrollIntoView, getStateType, isAncestor, removeNoiseFromName, isStoryHoistable;
|
|
53
|
+
var import_memoizerific$1, document$3, globalWindow, createId, getLink, get, getParent, getParents, getAncestorIds, getDescendantIds, searchItem, scrollIntoView, getStateType, isAncestor, removeNoiseFromName, isStoryHoistable, getHoistedComponents;
|
|
21
54
|
function init_tree() {
|
|
22
55
|
return (init_tree = __esmMin((() => {
|
|
23
|
-
|
|
56
|
+
init_global();
|
|
24
57
|
import_memoizerific$1 = /* @__PURE__ */ __toESM(require_memoizerific(), 1);
|
|
58
|
+
init_router();
|
|
25
59
|
init_Sidebar();
|
|
26
|
-
({document: document$3, window: globalWindow} =
|
|
60
|
+
({document: document$3, window: globalWindow} = global);
|
|
27
61
|
createId = (itemId, refId) => !refId || refId === "storybook_internal" ? itemId : `${refId}_${itemId}`;
|
|
28
62
|
getLink = (item, refId) => {
|
|
29
|
-
return `${
|
|
63
|
+
return buildManagerHref(`${getBasename()}/`, `/${item.type}/${createId(item.id, refId)}`);
|
|
30
64
|
};
|
|
31
65
|
get = (0, import_memoizerific$1.default)(1e3)((id, dataset) => dataset[id]);
|
|
32
66
|
getParent = (0, import_memoizerific$1.default)(1e3)((id, dataset) => {
|
|
@@ -77,6 +111,30 @@ function init_tree() {
|
|
|
77
111
|
};
|
|
78
112
|
removeNoiseFromName = (storyName) => storyName.replaceAll(/(\s|-|_)/gi, "");
|
|
79
113
|
isStoryHoistable = (storyName, componentName) => removeNoiseFromName(storyName) === removeNoiseFromName(componentName);
|
|
114
|
+
getHoistedComponents = (data) => {
|
|
115
|
+
const hoisted = {};
|
|
116
|
+
const hiddenIds = [];
|
|
117
|
+
Object.values(data).forEach((entry) => {
|
|
118
|
+
if (entry.type !== "component") return;
|
|
119
|
+
const children = (entry.children ?? []).map((id) => data[id]).filter(Boolean);
|
|
120
|
+
const stories = children.filter((child) => child.type === "story");
|
|
121
|
+
const docs = children.filter((child) => child.type === "docs");
|
|
122
|
+
if (children.length === 1 && docs.length === 1) {
|
|
123
|
+
hoisted[entry.id] = docs[0].id;
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
const [story] = stories;
|
|
127
|
+
const autodocs = docs.filter((child) => child.tags?.includes("autodocs"));
|
|
128
|
+
if (stories.length === 1 && story.type === "story" && story.subtype === "story" && docs.length === autodocs.length && children.length === 1 + docs.length && docs.length <= 1 && isStoryHoistable(story.name, entry.name)) {
|
|
129
|
+
hoisted[entry.id] = story.id;
|
|
130
|
+
hiddenIds.push(...docs.map((child) => child.id));
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
return {
|
|
134
|
+
hoisted,
|
|
135
|
+
hiddenIds
|
|
136
|
+
};
|
|
137
|
+
};
|
|
80
138
|
})))();
|
|
81
139
|
}
|
|
82
140
|
//#endregion
|
|
@@ -85,15 +143,15 @@ var id$5, status_module_default;
|
|
|
85
143
|
function init_status_module() {
|
|
86
144
|
return (init_status_module = __esmMin((() => {
|
|
87
145
|
id$5 = "core/src/manager/utils/status.module.css";
|
|
88
|
-
if (typeof document !== "undefined" && !document.querySelector(`style[data-
|
|
146
|
+
if (typeof document !== "undefined" && !document.querySelector(`style[data-fb-css="${id$5}"]`)) {
|
|
89
147
|
const style = document.createElement("style");
|
|
90
|
-
style.setAttribute("data-
|
|
91
|
-
style.textContent = ".
|
|
148
|
+
style.setAttribute("data-fb-css", id$5);
|
|
149
|
+
style.textContent = ".fb-HwMO1a-loadingIcon.fb-HwMO1a-loadingIcon.fb-HwMO1a-loadingIcon{width:6px;height:6px}.fb-HwMO1a-loadingIcon{animation:1.5s ease-in-out infinite fb-HwMO1a-glow}@keyframes fb-HwMO1a-glow{0%,to{opacity:1}50%{opacity:.4}}";
|
|
92
150
|
document.head.appendChild(style);
|
|
93
151
|
}
|
|
94
152
|
status_module_default = {
|
|
95
|
-
"
|
|
96
|
-
"
|
|
153
|
+
"glow": "fb-HwMO1a-glow",
|
|
154
|
+
"loadingIcon": "fb-HwMO1a-loadingIcon"
|
|
97
155
|
};
|
|
98
156
|
})))();
|
|
99
157
|
}
|
|
@@ -147,7 +205,7 @@ function getChangeDetectionStatus(statuses) {
|
|
|
147
205
|
}
|
|
148
206
|
function getGroupStatus(collapsedData, allStatuses) {
|
|
149
207
|
return Object.values(collapsedData).reduce((acc, item) => {
|
|
150
|
-
if (item.type === "group" || item.type === "component" || item.type === "story") {
|
|
208
|
+
if (item.id && (item.type === "group" || item.type === "component" || item.type === "story")) {
|
|
151
209
|
const leafs = getDescendantIds(collapsedData, item.id, false).map((id) => collapsedData[id]).filter((i) => i.type === "story");
|
|
152
210
|
const combinedStatus = getMostCriticalStatusValue(statusesExcludingReview(leafs.flatMap((story) => Object.values(allStatuses[story.id] || {}))).map((s) => s.value));
|
|
153
211
|
if (combinedStatus) acc[item.id] = combinedStatus;
|
|
@@ -157,7 +215,7 @@ function getGroupStatus(collapsedData, allStatuses) {
|
|
|
157
215
|
}
|
|
158
216
|
function getGroupDualStatus(collapsedData, allStatuses) {
|
|
159
217
|
return Object.values(collapsedData).reduce((acc, item) => {
|
|
160
|
-
if (item.type === "group" || item.type === "component" || item.type === "story") {
|
|
218
|
+
if (item.id && (item.type === "group" || item.type === "component" || item.type === "story")) {
|
|
161
219
|
const allDescendantStatuses = getDescendantIds(collapsedData, item.id, false).map((id) => collapsedData[id]).filter((i) => i.type === "story").flatMap((story) => Object.values(allStatuses[story.id] || {}));
|
|
162
220
|
const changeValues = allDescendantStatuses.filter((s) => s.typeId === CHANGE_DETECTION_STATUS_TYPE_ID).map((s) => s.value);
|
|
163
221
|
const testValues = allDescendantStatuses.filter(isAggregatedTestStatus).map((s) => s.value);
|
|
@@ -172,9 +230,9 @@ function getGroupDualStatus(collapsedData, allStatuses) {
|
|
|
172
230
|
var import_memoizerific, statusPriority, getStatus, shouldShowChangeStatus, isAggregatedTestStatus, getMostCriticalStatusValue, statusesExcludingReview;
|
|
173
231
|
function init_status() {
|
|
174
232
|
return (init_status = __esmMin((() => {
|
|
175
|
-
|
|
233
|
+
init__forkbook_global_react();
|
|
176
234
|
init_types();
|
|
177
|
-
|
|
235
|
+
init__forkbook_global_lucide_react();
|
|
178
236
|
import_memoizerific = /* @__PURE__ */ __toESM(require_memoizerific(), 1);
|
|
179
237
|
init_polished_esm();
|
|
180
238
|
init_IconSymbols();
|
|
@@ -200,7 +258,7 @@ function init_status() {
|
|
|
200
258
|
textColor: null
|
|
201
259
|
},
|
|
202
260
|
"status-value:pending": {
|
|
203
|
-
icon: /* @__PURE__ */
|
|
261
|
+
icon: /* @__PURE__ */ _forkbook_global_react_default.createElement(CircleIcon, {
|
|
204
262
|
key: "icon",
|
|
205
263
|
className: status_module_default.loadingIcon
|
|
206
264
|
}),
|
|
@@ -208,72 +266,72 @@ function init_status() {
|
|
|
208
266
|
textColor: "currentColor"
|
|
209
267
|
},
|
|
210
268
|
"status-value:success": {
|
|
211
|
-
icon: /* @__PURE__ */
|
|
269
|
+
icon: /* @__PURE__ */ _forkbook_global_react_default.createElement("svg", {
|
|
212
270
|
key: "icon",
|
|
213
271
|
viewBox: "0 0 14 14",
|
|
214
272
|
width: "14",
|
|
215
273
|
height: "14"
|
|
216
|
-
}, /* @__PURE__ */
|
|
274
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(UseSymbol, { type: "success" })),
|
|
217
275
|
iconColor: theme.color.positive,
|
|
218
276
|
textColor: "currentColor"
|
|
219
277
|
},
|
|
220
278
|
"status-value:new": {
|
|
221
|
-
icon: /* @__PURE__ */
|
|
279
|
+
icon: /* @__PURE__ */ _forkbook_global_react_default.createElement("svg", {
|
|
222
280
|
key: "icon",
|
|
223
281
|
viewBox: "0 0 14 14",
|
|
224
282
|
width: "14",
|
|
225
283
|
height: "14"
|
|
226
|
-
}, /* @__PURE__ */
|
|
284
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(UseSymbol, { type: "new" })),
|
|
227
285
|
iconColor: theme.fgColor.accent,
|
|
228
286
|
textColor: null
|
|
229
287
|
},
|
|
230
288
|
"status-value:modified": {
|
|
231
|
-
icon: /* @__PURE__ */
|
|
289
|
+
icon: /* @__PURE__ */ _forkbook_global_react_default.createElement("svg", {
|
|
232
290
|
key: "icon",
|
|
233
291
|
viewBox: "0 0 14 14",
|
|
234
292
|
width: "14",
|
|
235
293
|
height: "14"
|
|
236
|
-
}, /* @__PURE__ */
|
|
294
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(UseSymbol, { type: "modified" })),
|
|
237
295
|
iconColor: theme.fgColor.accent,
|
|
238
296
|
textColor: null
|
|
239
297
|
},
|
|
240
298
|
"status-value:affected": {
|
|
241
|
-
icon: /* @__PURE__ */
|
|
299
|
+
icon: /* @__PURE__ */ _forkbook_global_react_default.createElement("svg", {
|
|
242
300
|
key: "icon",
|
|
243
301
|
viewBox: "0 0 14 14",
|
|
244
302
|
width: "14",
|
|
245
303
|
height: "14"
|
|
246
|
-
}, /* @__PURE__ */
|
|
304
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(UseSymbol, { type: "affected" })),
|
|
247
305
|
iconColor: theme.fgColor.accent,
|
|
248
306
|
textColor: null
|
|
249
307
|
},
|
|
250
308
|
"status-value:reviewing": {
|
|
251
|
-
icon: /* @__PURE__ */
|
|
309
|
+
icon: /* @__PURE__ */ _forkbook_global_react_default.createElement("svg", {
|
|
252
310
|
key: "icon",
|
|
253
311
|
viewBox: "0 0 14 14",
|
|
254
312
|
width: "14",
|
|
255
313
|
height: "14"
|
|
256
|
-
}, /* @__PURE__ */
|
|
314
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(UseSymbol, { type: "reviewing" })),
|
|
257
315
|
iconColor: theme.fgColor.agentic,
|
|
258
316
|
textColor: null
|
|
259
317
|
},
|
|
260
318
|
"status-value:warning": {
|
|
261
|
-
icon: /* @__PURE__ */
|
|
319
|
+
icon: /* @__PURE__ */ _forkbook_global_react_default.createElement("svg", {
|
|
262
320
|
key: "icon",
|
|
263
321
|
viewBox: "0 0 14 14",
|
|
264
322
|
width: "14",
|
|
265
323
|
height: "14"
|
|
266
|
-
}, /* @__PURE__ */
|
|
324
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(UseSymbol, { type: "warning" })),
|
|
267
325
|
iconColor: theme.color.warning,
|
|
268
326
|
textColor: theme.fgColor.warning
|
|
269
327
|
},
|
|
270
328
|
"status-value:error": {
|
|
271
|
-
icon: /* @__PURE__ */
|
|
329
|
+
icon: /* @__PURE__ */ _forkbook_global_react_default.createElement("svg", {
|
|
272
330
|
key: "icon",
|
|
273
331
|
viewBox: "0 0 14 14",
|
|
274
332
|
width: "14",
|
|
275
333
|
height: "14"
|
|
276
|
-
}, /* @__PURE__ */
|
|
334
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(UseSymbol, { type: "error" })),
|
|
277
335
|
iconColor: theme.color.negative,
|
|
278
336
|
textColor: theme.fgColor.negative
|
|
279
337
|
}
|
|
@@ -327,8 +385,10 @@ var Provider;
|
|
|
327
385
|
function init_provider() {
|
|
328
386
|
return (init_provider = __esmMin((() => {
|
|
329
387
|
Provider = class {
|
|
330
|
-
|
|
331
|
-
|
|
388
|
+
constructor() {
|
|
389
|
+
this.getElements = () => {
|
|
390
|
+
throw new Error("Provider.getElements() is not implemented!");
|
|
391
|
+
};
|
|
332
392
|
}
|
|
333
393
|
handleAPI(_api) {
|
|
334
394
|
throw new Error("Provider.handleAPI() is not implemented!");
|
|
@@ -346,18 +406,18 @@ var id$4, About_module_default;
|
|
|
346
406
|
function init_About_module() {
|
|
347
407
|
return (init_About_module = __esmMin((() => {
|
|
348
408
|
id$4 = "core/src/manager/settings/About.module.css";
|
|
349
|
-
if (typeof document !== "undefined" && !document.querySelector(`style[data-
|
|
409
|
+
if (typeof document !== "undefined" && !document.querySelector(`style[data-fb-css="${id$4}"]`)) {
|
|
350
410
|
const style = document.createElement("style");
|
|
351
|
-
style.setAttribute("data-
|
|
352
|
-
style.textContent = ".
|
|
411
|
+
style.setAttribute("data-fb-css", id$4);
|
|
412
|
+
style.textContent = ".fb-v5QLGG-container{flex-direction:column;align-items:center;margin-top:40px;display:flex}.fb-v5QLGG-header{align-items:center;margin-bottom:32px;display:flex;&>svg{width:auto;height:48px;margin-right:8px}}.fb-v5QLGG-footer{color:var(--fb-color-dark);font-weight:var(--fb-weight-regular);font-size:var(--fb-size-s2);flex-direction:column;align-items:center;margin-bottom:24px;display:flex}.fb-v5QLGG-actions{flex-direction:row;align-items:center;gap:16px;margin-top:24px;margin-bottom:24px;display:flex}.fb-v5QLGG-link.fb-v5QLGG-link{font-weight:var(--fb-weight-bold);color:var(--fb-color-dark)}.fb-v5QLGG-link:hover{color:var(--fb-color-darkest)}:where([data-fb-theme=dark]){& .fb-v5QLGG-footer{color:var(--fb-color-lightest)}& .fb-v5QLGG-link.fb-v5QLGG-link{color:var(--fb-color-light)}& .fb-v5QLGG-link:hover{color:var(--fb-color-lightest)}}";
|
|
353
413
|
document.head.appendChild(style);
|
|
354
414
|
}
|
|
355
415
|
About_module_default = {
|
|
356
|
-
"footer": "
|
|
357
|
-
"
|
|
358
|
-
"
|
|
359
|
-
"
|
|
360
|
-
"
|
|
416
|
+
"footer": "fb-v5QLGG-footer",
|
|
417
|
+
"link": "fb-v5QLGG-link",
|
|
418
|
+
"container": "fb-v5QLGG-container",
|
|
419
|
+
"header": "fb-v5QLGG-header",
|
|
420
|
+
"actions": "fb-v5QLGG-actions"
|
|
361
421
|
};
|
|
362
422
|
})))();
|
|
363
423
|
}
|
|
@@ -366,27 +426,27 @@ function init_About_module() {
|
|
|
366
426
|
var AboutScreen;
|
|
367
427
|
function init_About() {
|
|
368
428
|
return (init_About = __esmMin((() => {
|
|
369
|
-
|
|
429
|
+
init__forkbook_global_react();
|
|
370
430
|
init_components();
|
|
371
|
-
|
|
431
|
+
init__forkbook_global_lucide_react();
|
|
372
432
|
init_UpgradeBlock();
|
|
373
433
|
init_About_module();
|
|
374
434
|
AboutScreen = ({ onNavigateToWhatsNew }) => {
|
|
375
|
-
return /* @__PURE__ */
|
|
435
|
+
return /* @__PURE__ */ _forkbook_global_react_default.createElement("div", { className: About_module_default.container }, /* @__PURE__ */ _forkbook_global_react_default.createElement("header", { className: About_module_default.header }, /* @__PURE__ */ _forkbook_global_react_default.createElement(ForkbookLogo, { alt: "Forkbook" })), /* @__PURE__ */ _forkbook_global_react_default.createElement(UpgradeBlock, { onNavigateToWhatsNew }), /* @__PURE__ */ _forkbook_global_react_default.createElement("div", { className: About_module_default.footer }, /* @__PURE__ */ _forkbook_global_react_default.createElement("div", { className: About_module_default.actions }, /* @__PURE__ */ _forkbook_global_react_default.createElement(Button, {
|
|
376
436
|
ariaLabel: false,
|
|
377
437
|
asChild: true
|
|
378
|
-
}, /* @__PURE__ */
|
|
438
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement("a", { href: "https://github.com/aussieljk/forkbook" }, /* @__PURE__ */ _forkbook_global_react_default.createElement(GitForkIcon, null), "GitHub")), /* @__PURE__ */ _forkbook_global_react_default.createElement(Button, {
|
|
379
439
|
ariaLabel: false,
|
|
380
440
|
asChild: true
|
|
381
|
-
}, /* @__PURE__ */
|
|
441
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement("a", { href: "https://forkbook.ljk.dev/docs" }, /* @__PURE__ */ _forkbook_global_react_default.createElement(FileTextIcon, { style: {
|
|
382
442
|
display: "inline",
|
|
383
443
|
marginRight: 5
|
|
384
|
-
} }), "Documentation"))), /* @__PURE__ */
|
|
444
|
+
} }), "Documentation"))), /* @__PURE__ */ _forkbook_global_react_default.createElement("div", null, "Open source software maintained by", " ", /* @__PURE__ */ _forkbook_global_react_default.createElement(Link, {
|
|
385
445
|
className: About_module_default.link,
|
|
386
446
|
href: "https://www.chromatic.com/"
|
|
387
|
-
}, "Chromatic"), " ", "and the", " ", /* @__PURE__ */
|
|
447
|
+
}, "Chromatic"), " ", "and the", " ", /* @__PURE__ */ _forkbook_global_react_default.createElement(Link, {
|
|
388
448
|
className: About_module_default.link,
|
|
389
|
-
href: "https://github.com/
|
|
449
|
+
href: "https://github.com/aussieljk/forkbook/graphs/contributors"
|
|
390
450
|
}, "Forkbook Community"))));
|
|
391
451
|
};
|
|
392
452
|
})))();
|
|
@@ -396,7 +456,7 @@ function init_About() {
|
|
|
396
456
|
var NotificationClearer, AboutPage;
|
|
397
457
|
function init_AboutPage() {
|
|
398
458
|
return (init_AboutPage = __esmMin((() => {
|
|
399
|
-
|
|
459
|
+
init__forkbook_global_react();
|
|
400
460
|
init_manager_api();
|
|
401
461
|
init_About();
|
|
402
462
|
NotificationClearer = class extends Component {
|
|
@@ -415,10 +475,10 @@ function init_AboutPage() {
|
|
|
415
475
|
const onNavigateToWhatsNew = useCallback(() => {
|
|
416
476
|
api.changeSettingsTab("whats-new");
|
|
417
477
|
}, [api]);
|
|
418
|
-
return /* @__PURE__ */
|
|
478
|
+
return /* @__PURE__ */ _forkbook_global_react_default.createElement(NotificationClearer, {
|
|
419
479
|
api,
|
|
420
480
|
notificationId: "update"
|
|
421
|
-
}, /* @__PURE__ */
|
|
481
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(AboutScreen, { onNavigateToWhatsNew: state.whatsNewData?.status === "SUCCESS" ? onNavigateToWhatsNew : void 0 }));
|
|
422
482
|
};
|
|
423
483
|
})))();
|
|
424
484
|
}
|
|
@@ -428,13 +488,13 @@ var id$3, SettingsFooter_module_default;
|
|
|
428
488
|
function init_SettingsFooter_module() {
|
|
429
489
|
return (init_SettingsFooter_module = __esmMin((() => {
|
|
430
490
|
id$3 = "core/src/manager/settings/SettingsFooter.module.css";
|
|
431
|
-
if (typeof document !== "undefined" && !document.querySelector(`style[data-
|
|
491
|
+
if (typeof document !== "undefined" && !document.querySelector(`style[data-fb-css="${id$3}"]`)) {
|
|
432
492
|
const style = document.createElement("style");
|
|
433
|
-
style.setAttribute("data-
|
|
434
|
-
style.textContent = ".
|
|
493
|
+
style.setAttribute("data-fb-css", id$3);
|
|
494
|
+
style.textContent = ".fb-17hQlG-footer{border-top:1px solid var(--fb-app-border-color);font-weight:var(--fb-weight-bold);margin-top:20px;padding-top:20px;display:flex;&>*+*{margin-left:20px}}";
|
|
435
495
|
document.head.appendChild(style);
|
|
436
496
|
}
|
|
437
|
-
SettingsFooter_module_default = { "footer": "
|
|
497
|
+
SettingsFooter_module_default = { "footer": "fb-17hQlG-footer" };
|
|
438
498
|
})))();
|
|
439
499
|
}
|
|
440
500
|
//#endregion
|
|
@@ -442,26 +502,26 @@ function init_SettingsFooter_module() {
|
|
|
442
502
|
var SettingsFooter;
|
|
443
503
|
function init_SettingsFooter() {
|
|
444
504
|
return (init_SettingsFooter = __esmMin((() => {
|
|
445
|
-
|
|
505
|
+
init__forkbook_global_react();
|
|
446
506
|
init_components();
|
|
447
507
|
init_clsx();
|
|
448
508
|
init_SettingsFooter_module();
|
|
449
|
-
SettingsFooter = ({ className, ...props }) => /* @__PURE__ */
|
|
509
|
+
SettingsFooter = ({ className, ...props }) => /* @__PURE__ */ _forkbook_global_react_default.createElement("div", {
|
|
450
510
|
className: clsx(SettingsFooter_module_default.footer, className),
|
|
451
511
|
...props
|
|
452
|
-
}, /* @__PURE__ */
|
|
512
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(Link, {
|
|
453
513
|
secondary: true,
|
|
454
|
-
href: "https://
|
|
514
|
+
href: "https://forkbook.ljk.dev",
|
|
455
515
|
cancel: false,
|
|
456
516
|
target: "_blank"
|
|
457
|
-
}, "Docs"), /* @__PURE__ */
|
|
517
|
+
}, "Docs"), /* @__PURE__ */ _forkbook_global_react_default.createElement(Link, {
|
|
458
518
|
secondary: true,
|
|
459
|
-
href: "https://github.com/
|
|
519
|
+
href: "https://github.com/aussieljk/forkbook",
|
|
460
520
|
cancel: false,
|
|
461
521
|
target: "_blank"
|
|
462
|
-
}, "GitHub"), /* @__PURE__ */
|
|
522
|
+
}, "GitHub"), /* @__PURE__ */ _forkbook_global_react_default.createElement(Link, {
|
|
463
523
|
secondary: true,
|
|
464
|
-
href: "https://
|
|
524
|
+
href: "https://forkbook.ljk.dev/community#support",
|
|
465
525
|
cancel: false,
|
|
466
526
|
target: "_blank"
|
|
467
527
|
}, "Support"));
|
|
@@ -473,24 +533,24 @@ var id$2, shortcuts_module_default;
|
|
|
473
533
|
function init_shortcuts_module() {
|
|
474
534
|
return (init_shortcuts_module = __esmMin((() => {
|
|
475
535
|
id$2 = "core/src/manager/settings/shortcuts.module.css";
|
|
476
|
-
if (typeof document !== "undefined" && !document.querySelector(`style[data-
|
|
536
|
+
if (typeof document !== "undefined" && !document.querySelector(`style[data-fb-css="${id$2}"]`)) {
|
|
477
537
|
const style = document.createElement("style");
|
|
478
|
-
style.setAttribute("data-
|
|
479
|
-
style.textContent = ".
|
|
538
|
+
style.setAttribute("data-fb-css", id$2);
|
|
539
|
+
style.textContent = ".fb-5Bi54W-header{font-size:var(--fb-size-m3);font-weight:var(--fb-weight-bold);align-items:center;margin-bottom:20px;display:flex}.fb-5Bi54W-headerItem{font-weight:var(--fb-weight-bold)}.fb-5Bi54W-gridHeaderRow{grid-template-columns:1fr 1fr 12px;align-self:flex-end;margin:10px 0;display:grid;&>:last-of-type{grid-area:1/2/auto/2;justify-self:flex-end}}.fb-5Bi54W-row{border-top:1px solid var(--fb-app-border-color);grid-template-columns:1fr 1fr 0;padding:6px 0;display:grid}.fb-5Bi54W-gridWrapper{grid-template-columns:1fr;grid-auto-rows:minmax(auto,auto);margin-bottom:20px;display:grid}.fb-5Bi54W-description{align-self:center}.fb-5Bi54W-textInput{text-align:center;flex-direction:column;justify-self:flex-end;width:80px;padding-left:4px;padding-right:4px;display:flex;&[data-valid=error]{animation:.7s ease-out fb-5Bi54W-jiggle}}.fb-5Bi54W-successIcon{opacity:0;align-self:center;width:14px;height:14px;margin-left:10px;display:flex;&[data-valid=valid]{opacity:1;color:var(--fb-color-positive);animation:2s forwards fb-5Bi54W-fade}}.fb-5Bi54W-container{font-size:var(--fb-size-s2);max-width:600px;margin:0 auto;padding:3rem 20px}@keyframes fb-5Bi54W-fade{0%,to{opacity:0}50%{opacity:1}}@keyframes fb-5Bi54W-jiggle{0%,to{transform:translate(0,0)}12.5%,62.5%{transform:translate(-4px)}37.5%,87.5%{transform:translate(4px)}}";
|
|
480
540
|
document.head.appendChild(style);
|
|
481
541
|
}
|
|
482
542
|
shortcuts_module_default = {
|
|
483
|
-
"
|
|
484
|
-
"
|
|
485
|
-
"
|
|
486
|
-
"
|
|
487
|
-
"
|
|
488
|
-
"
|
|
489
|
-
"
|
|
490
|
-
"
|
|
491
|
-
"
|
|
492
|
-
"
|
|
493
|
-
"
|
|
543
|
+
"description": "fb-5Bi54W-description",
|
|
544
|
+
"fade": "fb-5Bi54W-fade",
|
|
545
|
+
"gridWrapper": "fb-5Bi54W-gridWrapper",
|
|
546
|
+
"row": "fb-5Bi54W-row",
|
|
547
|
+
"jiggle": "fb-5Bi54W-jiggle",
|
|
548
|
+
"container": "fb-5Bi54W-container",
|
|
549
|
+
"gridHeaderRow": "fb-5Bi54W-gridHeaderRow",
|
|
550
|
+
"textInput": "fb-5Bi54W-textInput",
|
|
551
|
+
"header": "fb-5Bi54W-header",
|
|
552
|
+
"headerItem": "fb-5Bi54W-headerItem",
|
|
553
|
+
"successIcon": "fb-5Bi54W-successIcon"
|
|
494
554
|
};
|
|
495
555
|
})))();
|
|
496
556
|
}
|
|
@@ -508,14 +568,14 @@ function toShortcutState(shortcutKeys) {
|
|
|
508
568
|
var TextInput, shortcutLabels, hardcodedShortcuts, ShortcutsScreen;
|
|
509
569
|
function init_shortcuts() {
|
|
510
570
|
return (init_shortcuts = __esmMin((() => {
|
|
511
|
-
|
|
571
|
+
init__forkbook_global_react();
|
|
512
572
|
init_components();
|
|
513
|
-
|
|
573
|
+
init__forkbook_global_lucide_react();
|
|
514
574
|
init_manager_api();
|
|
515
575
|
init_clsx();
|
|
516
576
|
init_SettingsFooter();
|
|
517
577
|
init_shortcuts_module();
|
|
518
|
-
TextInput = ({ valid, className, ...props }) => /* @__PURE__ */
|
|
578
|
+
TextInput = ({ valid, className, ...props }) => /* @__PURE__ */ _forkbook_global_react_default.createElement(Form.Input, {
|
|
519
579
|
className: clsx(shortcuts_module_default.textInput, className),
|
|
520
580
|
"data-valid": valid,
|
|
521
581
|
...props
|
|
@@ -551,6 +611,7 @@ function init_shortcuts() {
|
|
|
551
611
|
super(props);
|
|
552
612
|
this.onKeyDown = (e) => {
|
|
553
613
|
const { activeFeature, shortcutKeys } = this.state;
|
|
614
|
+
if (!activeFeature) return false;
|
|
554
615
|
if (e.key === "Backspace") return this.restoreDefault();
|
|
555
616
|
const shortcut = eventToShortcut(e);
|
|
556
617
|
if (!shortcut) return false;
|
|
@@ -579,7 +640,7 @@ function init_shortcuts() {
|
|
|
579
640
|
};
|
|
580
641
|
this.onBlur = async () => {
|
|
581
642
|
const { shortcutKeys, activeFeature } = this.state;
|
|
582
|
-
if (shortcutKeys[activeFeature]) {
|
|
643
|
+
if (activeFeature && shortcutKeys[activeFeature]) {
|
|
583
644
|
const { shortcut, error } = shortcutKeys[activeFeature];
|
|
584
645
|
if (!shortcut || error) return this.restoreDefault();
|
|
585
646
|
return this.saveShortcut();
|
|
@@ -589,6 +650,7 @@ function init_shortcuts() {
|
|
|
589
650
|
this.saveShortcut = async () => {
|
|
590
651
|
const { activeFeature, shortcutKeys } = this.state;
|
|
591
652
|
const { setShortcut } = this.props;
|
|
653
|
+
if (!activeFeature) return;
|
|
592
654
|
await setShortcut(activeFeature, shortcutKeys[activeFeature].shortcut);
|
|
593
655
|
this.setState({ successField: activeFeature });
|
|
594
656
|
};
|
|
@@ -600,6 +662,7 @@ function init_shortcuts() {
|
|
|
600
662
|
this.restoreDefault = async () => {
|
|
601
663
|
const { activeFeature, shortcutKeys } = this.state;
|
|
602
664
|
const { restoreDefaultShortcut } = this.props;
|
|
665
|
+
if (!activeFeature) return;
|
|
603
666
|
const defaultShortcut = await restoreDefaultShortcut(activeFeature);
|
|
604
667
|
return this.setState({ shortcutKeys: {
|
|
605
668
|
...shortcutKeys,
|
|
@@ -616,18 +679,18 @@ function init_shortcuts() {
|
|
|
616
679
|
};
|
|
617
680
|
this.renderKeyInput = () => {
|
|
618
681
|
const { shortcutKeys, addonsShortcutLabels } = this.state;
|
|
619
|
-
return Object.entries(shortcutKeys).filter(([feature]) => shortcutLabels[feature] !== void 0 || addonsShortcutLabels && addonsShortcutLabels[feature]).map(([feature, { shortcut, hardcoded }]) => /* @__PURE__ */
|
|
682
|
+
return Object.entries(shortcutKeys).filter(([feature]) => shortcutLabels[feature] !== void 0 || addonsShortcutLabels && addonsShortcutLabels[feature]).map(([feature, { shortcut, hardcoded }]) => /* @__PURE__ */ _forkbook_global_react_default.createElement("div", {
|
|
620
683
|
className: shortcuts_module_default.row,
|
|
621
684
|
key: feature
|
|
622
|
-
}, /* @__PURE__ */
|
|
623
|
-
tooltip: /* @__PURE__ */
|
|
685
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement("div", { className: shortcuts_module_default.description }, shortcutLabels[feature] || addonsShortcutLabels?.[feature]), hardcoded ? /* @__PURE__ */ _forkbook_global_react_default.createElement(_forkbook_global_react_default.Fragment, null, /* @__PURE__ */ _forkbook_global_react_default.createElement(TooltipProvider, {
|
|
686
|
+
tooltip: /* @__PURE__ */ _forkbook_global_react_default.createElement(Tooltip, { hasChrome: true }, "This shortcut cannot be changed."),
|
|
624
687
|
placement: "right"
|
|
625
|
-
}, /* @__PURE__ */
|
|
688
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(TextInput, {
|
|
626
689
|
"aria-disabled": true,
|
|
627
690
|
readOnly: true,
|
|
628
691
|
valid: void 0,
|
|
629
692
|
value: shortcut ? shortcutToHumanString(shortcut) : ""
|
|
630
|
-
}))) : /* @__PURE__ */
|
|
693
|
+
}))) : /* @__PURE__ */ _forkbook_global_react_default.createElement(TextInput, {
|
|
631
694
|
spellCheck: "false",
|
|
632
695
|
valid: this.displayError(feature),
|
|
633
696
|
className: "modalInput",
|
|
@@ -637,12 +700,12 @@ function init_shortcuts() {
|
|
|
637
700
|
value: shortcut ? shortcutToHumanString(shortcut) : "",
|
|
638
701
|
placeholder: "Type keys",
|
|
639
702
|
readOnly: true
|
|
640
|
-
}), /* @__PURE__ */
|
|
703
|
+
}), /* @__PURE__ */ _forkbook_global_react_default.createElement(CheckIcon, {
|
|
641
704
|
className: shortcuts_module_default.successIcon,
|
|
642
705
|
"data-valid": this.displaySuccessMessage(feature)
|
|
643
706
|
})));
|
|
644
707
|
};
|
|
645
|
-
this.renderKeyForm = () => /* @__PURE__ */
|
|
708
|
+
this.renderKeyForm = () => /* @__PURE__ */ _forkbook_global_react_default.createElement("div", { className: shortcuts_module_default.gridWrapper }, /* @__PURE__ */ _forkbook_global_react_default.createElement("div", { className: shortcuts_module_default.gridHeaderRow }, /* @__PURE__ */ _forkbook_global_react_default.createElement("div", { className: shortcuts_module_default.headerItem }, "Commands"), /* @__PURE__ */ _forkbook_global_react_default.createElement("div", { className: shortcuts_module_default.headerItem }, "Shortcut")), this.renderKeyInput());
|
|
646
709
|
this.state = {
|
|
647
710
|
activeFeature: void 0,
|
|
648
711
|
successField: void 0,
|
|
@@ -652,13 +715,13 @@ function init_shortcuts() {
|
|
|
652
715
|
}
|
|
653
716
|
render() {
|
|
654
717
|
const layout = this.renderKeyForm();
|
|
655
|
-
return /* @__PURE__ */
|
|
718
|
+
return /* @__PURE__ */ _forkbook_global_react_default.createElement("div", { className: shortcuts_module_default.container }, /* @__PURE__ */ _forkbook_global_react_default.createElement("header", { className: shortcuts_module_default.header }, "Keyboard shortcuts"), layout, /* @__PURE__ */ _forkbook_global_react_default.createElement(Button, {
|
|
656
719
|
ariaLabel: false,
|
|
657
720
|
variant: "outline",
|
|
658
721
|
size: "small",
|
|
659
722
|
id: "restoreDefaultsHotkeys",
|
|
660
723
|
onClick: this.restoreDefaults
|
|
661
|
-
}, "Restore defaults"), /* @__PURE__ */
|
|
724
|
+
}, "Restore defaults"), /* @__PURE__ */ _forkbook_global_react_default.createElement(SettingsFooter, null));
|
|
662
725
|
}
|
|
663
726
|
};
|
|
664
727
|
})))();
|
|
@@ -668,10 +731,10 @@ function init_shortcuts() {
|
|
|
668
731
|
var ShortcutsPage;
|
|
669
732
|
function init_ShortcutsPage() {
|
|
670
733
|
return (init_ShortcutsPage = __esmMin((() => {
|
|
671
|
-
|
|
734
|
+
init__forkbook_global_react();
|
|
672
735
|
init_manager_api();
|
|
673
736
|
init_shortcuts();
|
|
674
|
-
ShortcutsPage = () => /* @__PURE__ */
|
|
737
|
+
ShortcutsPage = () => /* @__PURE__ */ _forkbook_global_react_default.createElement(Consumer, null, ({ api: { getShortcutKeys, getAddonsShortcutLabels, setShortcut, restoreDefaultShortcut, restoreAllDefaultShortcuts } }) => /* @__PURE__ */ _forkbook_global_react_default.createElement(ShortcutsScreen, {
|
|
675
738
|
shortcutKeys: getShortcutKeys(),
|
|
676
739
|
addonsShortcutLabels: getAddonsShortcutLabels(),
|
|
677
740
|
setShortcut,
|
|
@@ -686,19 +749,19 @@ var id$1, whats_new_module_default;
|
|
|
686
749
|
function init_whats_new_module() {
|
|
687
750
|
return (init_whats_new_module = __esmMin((() => {
|
|
688
751
|
id$1 = "core/src/manager/settings/whats_new.module.css";
|
|
689
|
-
if (typeof document !== "undefined" && !document.querySelector(`style[data-
|
|
752
|
+
if (typeof document !== "undefined" && !document.querySelector(`style[data-fb-css="${id$1}"]`)) {
|
|
690
753
|
const style = document.createElement("style");
|
|
691
|
-
style.setAttribute("data-
|
|
692
|
-
style.textContent = ".
|
|
754
|
+
style.setAttribute("data-fb-css", id$1);
|
|
755
|
+
style.textContent = ".fb-wRVF8a-centered{text-align:center;width:100%;position:absolute;top:50%;transform:translateY(-50%)}.fb-wRVF8a-loaderWrapper{height:32px;position:relative}.fb-wRVF8a-message{color:var(--fb-text-muted-color);max-width:295px;font-size:var(--fb-size-s1);margin:0 auto;padding-top:12px;line-height:16px}.fb-wRVF8a-footer{background:var(--fb-background-bar);width:100%;height:40px;font-size:var(--fb-size-s2);border-top:1px solid var(--fb-color-border);justify-content:space-between;align-items:center;padding:0 10px 0 15px;display:flex;position:absolute;bottom:0}.fb-wRVF8a-iframe{visibility:hidden;background:#fff;border:0;width:100%;height:calc(100% - 40px);margin:0;padding:0;position:absolute;inset:0;&[data-loaded]{visibility:visible}}.fb-wRVF8a-alertIcon{color:var(--fb-text-muted-color);width:32px;height:32px;margin:0 auto}";
|
|
693
756
|
document.head.appendChild(style);
|
|
694
757
|
}
|
|
695
758
|
whats_new_module_default = {
|
|
696
|
-
"
|
|
697
|
-
"
|
|
698
|
-
"
|
|
699
|
-
"
|
|
700
|
-
"
|
|
701
|
-
"
|
|
759
|
+
"iframe": "fb-wRVF8a-iframe",
|
|
760
|
+
"alertIcon": "fb-wRVF8a-alertIcon",
|
|
761
|
+
"loaderWrapper": "fb-wRVF8a-loaderWrapper",
|
|
762
|
+
"centered": "fb-wRVF8a-centered",
|
|
763
|
+
"message": "fb-wRVF8a-message",
|
|
764
|
+
"footer": "fb-wRVF8a-footer"
|
|
702
765
|
};
|
|
703
766
|
})))();
|
|
704
767
|
}
|
|
@@ -707,10 +770,10 @@ function init_whats_new_module() {
|
|
|
707
770
|
var WhatsNewFooter, WhatsNewLoader, MaxWaitTimeMessaging, PureWhatsNewScreen, MAX_WAIT_TIME, WhatsNewScreen;
|
|
708
771
|
function init_whats_new() {
|
|
709
772
|
return (init_whats_new = __esmMin((() => {
|
|
710
|
-
|
|
773
|
+
init__forkbook_global_react();
|
|
711
774
|
init_components();
|
|
712
|
-
|
|
713
|
-
|
|
775
|
+
init_global();
|
|
776
|
+
init__forkbook_global_lucide_react();
|
|
714
777
|
init_manager_api();
|
|
715
778
|
init_theming();
|
|
716
779
|
init_useCopyButton();
|
|
@@ -721,35 +784,35 @@ function init_whats_new() {
|
|
|
721
784
|
children: "Copy Link",
|
|
722
785
|
content: copyContent
|
|
723
786
|
});
|
|
724
|
-
return /* @__PURE__ */
|
|
787
|
+
return /* @__PURE__ */ _forkbook_global_react_default.createElement("div", { className: whats_new_module_default.footer }, /* @__PURE__ */ _forkbook_global_react_default.createElement("div", { style: {
|
|
725
788
|
display: "flex",
|
|
726
789
|
alignItems: "center",
|
|
727
790
|
gap: 10
|
|
728
|
-
} }, /* @__PURE__ */
|
|
791
|
+
} }, /* @__PURE__ */ _forkbook_global_react_default.createElement(HeartIcon, { color: theme.color.mediumdark }), /* @__PURE__ */ _forkbook_global_react_default.createElement("div", null, "Share this with your team."), /* @__PURE__ */ _forkbook_global_react_default.createElement(Button, {
|
|
729
792
|
size: "small",
|
|
730
793
|
variant: "ghost",
|
|
731
794
|
...copyButtonProps
|
|
732
|
-
}, copyText)), isNotificationsEnabled ? /* @__PURE__ */
|
|
795
|
+
}, copyText)), isNotificationsEnabled ? /* @__PURE__ */ _forkbook_global_react_default.createElement(Button, {
|
|
733
796
|
ariaLabel: false,
|
|
734
797
|
size: "small",
|
|
735
798
|
variant: "ghost",
|
|
736
799
|
onClick: onToggleNotifications
|
|
737
|
-
}, /* @__PURE__ */
|
|
800
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(EyeOffIcon, null), "Hide notifications") : /* @__PURE__ */ _forkbook_global_react_default.createElement(Button, {
|
|
738
801
|
ariaLabel: false,
|
|
739
802
|
size: "small",
|
|
740
803
|
variant: "ghost",
|
|
741
804
|
onClick: onToggleNotifications
|
|
742
|
-
}, /* @__PURE__ */
|
|
805
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(EyeIcon, null), "Show notifications"));
|
|
743
806
|
};
|
|
744
|
-
WhatsNewLoader = () => /* @__PURE__ */
|
|
745
|
-
MaxWaitTimeMessaging = () => /* @__PURE__ */
|
|
746
|
-
PureWhatsNewScreen = ({ didHitMaxWaitTime, isLoaded, onLoad, url, copyContent, onToggleNotifications, isNotificationsEnabled }) => /* @__PURE__ */
|
|
807
|
+
WhatsNewLoader = () => /* @__PURE__ */ _forkbook_global_react_default.createElement("div", { className: whats_new_module_default.centered }, /* @__PURE__ */ _forkbook_global_react_default.createElement("div", { className: whats_new_module_default.loaderWrapper }, /* @__PURE__ */ _forkbook_global_react_default.createElement(Loader, null)), /* @__PURE__ */ _forkbook_global_react_default.createElement("div", { className: whats_new_module_default.message }, "Loading..."));
|
|
808
|
+
MaxWaitTimeMessaging = () => /* @__PURE__ */ _forkbook_global_react_default.createElement("div", { className: whats_new_module_default.centered }, /* @__PURE__ */ _forkbook_global_react_default.createElement(TriangleAlertIcon, { className: whats_new_module_default.alertIcon }), /* @__PURE__ */ _forkbook_global_react_default.createElement("div", { className: whats_new_module_default.message }, "The page couldn't be loaded. Check your internet connection and try again."));
|
|
809
|
+
PureWhatsNewScreen = ({ didHitMaxWaitTime, isLoaded, onLoad, url, copyContent, onToggleNotifications, isNotificationsEnabled }) => /* @__PURE__ */ _forkbook_global_react_default.createElement(Fragment, null, !isLoaded && !didHitMaxWaitTime && /* @__PURE__ */ _forkbook_global_react_default.createElement(WhatsNewLoader, null), didHitMaxWaitTime ? /* @__PURE__ */ _forkbook_global_react_default.createElement(MaxWaitTimeMessaging, null) : /* @__PURE__ */ _forkbook_global_react_default.createElement(_forkbook_global_react_default.Fragment, null, /* @__PURE__ */ _forkbook_global_react_default.createElement("iframe", {
|
|
747
810
|
className: whats_new_module_default.iframe,
|
|
748
811
|
"data-loaded": isLoaded || void 0,
|
|
749
812
|
onLoad,
|
|
750
813
|
src: url,
|
|
751
814
|
title: `What's new?`
|
|
752
|
-
}), /* @__PURE__ */
|
|
815
|
+
}), /* @__PURE__ */ _forkbook_global_react_default.createElement(WhatsNewFooter, {
|
|
753
816
|
isNotificationsEnabled,
|
|
754
817
|
onToggleNotifications,
|
|
755
818
|
copyContent
|
|
@@ -766,7 +829,7 @@ function init_whats_new() {
|
|
|
766
829
|
}, [isLoaded]);
|
|
767
830
|
if (whatsNewData?.status !== "SUCCESS") return null;
|
|
768
831
|
const isNotificationsEnabled = !whatsNewData.disableWhatsNewNotifications;
|
|
769
|
-
return /* @__PURE__ */
|
|
832
|
+
return /* @__PURE__ */ _forkbook_global_react_default.createElement(PureWhatsNewScreen, {
|
|
770
833
|
didHitMaxWaitTime,
|
|
771
834
|
isLoaded,
|
|
772
835
|
onLoad: () => {
|
|
@@ -778,7 +841,7 @@ function init_whats_new() {
|
|
|
778
841
|
copyContent: whatsNewData.blogUrl ?? whatsNewData.url,
|
|
779
842
|
onToggleNotifications: () => {
|
|
780
843
|
if (isNotificationsEnabled) {
|
|
781
|
-
if (
|
|
844
|
+
if (global.confirm("All update notifications will no longer be shown. Are you sure?")) api.toggleWhatsNewNotifications();
|
|
782
845
|
} else api.toggleWhatsNewNotifications();
|
|
783
846
|
}
|
|
784
847
|
});
|
|
@@ -790,10 +853,10 @@ function init_whats_new() {
|
|
|
790
853
|
var WhatsNewPage;
|
|
791
854
|
function init_whats_new_page() {
|
|
792
855
|
return (init_whats_new_page = __esmMin((() => {
|
|
793
|
-
|
|
856
|
+
init__forkbook_global_react();
|
|
794
857
|
init_whats_new();
|
|
795
858
|
WhatsNewPage = () => {
|
|
796
|
-
return /* @__PURE__ */
|
|
859
|
+
return /* @__PURE__ */ _forkbook_global_react_default.createElement(WhatsNewScreen, null);
|
|
797
860
|
};
|
|
798
861
|
})))();
|
|
799
862
|
}
|
|
@@ -803,15 +866,15 @@ var id, index_module_default;
|
|
|
803
866
|
function init_index_module() {
|
|
804
867
|
return (init_index_module = __esmMin((() => {
|
|
805
868
|
id = "core/src/manager/settings/index.module.css";
|
|
806
|
-
if (typeof document !== "undefined" && !document.querySelector(`style[data-
|
|
869
|
+
if (typeof document !== "undefined" && !document.querySelector(`style[data-fb-css="${id}"]`)) {
|
|
807
870
|
const style = document.createElement("style");
|
|
808
|
-
style.setAttribute("data-
|
|
809
|
-
style.textContent = ".
|
|
871
|
+
style.setAttribute("data-fb-css", id);
|
|
872
|
+
style.textContent = ".fb-eGKmTG-content{background:var(--fb-background-content)}.fb-eGKmTG-sidebarToggle.fb-eGKmTG-sidebarToggle:has(*){order:0;align-items:center;gap:6px;margin-left:10px;margin-right:6px;display:flex}";
|
|
810
873
|
document.head.appendChild(style);
|
|
811
874
|
}
|
|
812
875
|
index_module_default = {
|
|
813
|
-
"sidebarToggle": "
|
|
814
|
-
"content": "
|
|
876
|
+
"sidebarToggle": "fb-eGKmTG-sidebarToggle",
|
|
877
|
+
"content": "fb-eGKmTG-content"
|
|
815
878
|
};
|
|
816
879
|
})))();
|
|
817
880
|
}
|
|
@@ -820,12 +883,12 @@ function init_index_module() {
|
|
|
820
883
|
var document$2, RouteWrapper, Pages, SettingsPages, settingsPageAddon;
|
|
821
884
|
function init_settings() {
|
|
822
885
|
return (init_settings = __esmMin((() => {
|
|
823
|
-
|
|
886
|
+
init__forkbook_global_react();
|
|
824
887
|
init_components();
|
|
825
888
|
init_router();
|
|
826
889
|
init_types();
|
|
827
|
-
|
|
828
|
-
|
|
890
|
+
init_global();
|
|
891
|
+
init__forkbook_global_lucide_react();
|
|
829
892
|
init_manager_api();
|
|
830
893
|
init_menu();
|
|
831
894
|
init_keybinding();
|
|
@@ -833,16 +896,16 @@ function init_settings() {
|
|
|
833
896
|
init_ShortcutsPage();
|
|
834
897
|
init_whats_new_page();
|
|
835
898
|
init_index_module();
|
|
836
|
-
({document: document$2} =
|
|
899
|
+
({document: document$2} = global);
|
|
837
900
|
RouteWrapper = ({ children, path }) => {
|
|
838
|
-
return /* @__PURE__ */
|
|
901
|
+
return /* @__PURE__ */ _forkbook_global_react_default.createElement(ScrollArea, {
|
|
839
902
|
className: index_module_default.content,
|
|
840
903
|
vertical: true,
|
|
841
904
|
horizontal: false
|
|
842
|
-
}, /* @__PURE__ */
|
|
905
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(Route, { path }, children));
|
|
843
906
|
};
|
|
844
907
|
Pages = ({ changeTab, onClose, enableShortcuts = true, enableWhatsNew }) => {
|
|
845
|
-
|
|
908
|
+
_forkbook_global_react_default.useEffect(() => {
|
|
846
909
|
const handleEscape = (event) => {
|
|
847
910
|
if (!enableShortcuts || event.repeat) return;
|
|
848
911
|
if (matchesModifiers(false, event) && matchesKeyCode("Escape", event)) {
|
|
@@ -859,25 +922,25 @@ function init_settings() {
|
|
|
859
922
|
const tabsToInclude = [{
|
|
860
923
|
id: "about",
|
|
861
924
|
title: "About",
|
|
862
|
-
children: /* @__PURE__ */
|
|
925
|
+
children: /* @__PURE__ */ _forkbook_global_react_default.createElement(RouteWrapper, { path: "about" }, /* @__PURE__ */ _forkbook_global_react_default.createElement(AboutPage, { key: "about" }))
|
|
863
926
|
}];
|
|
864
927
|
tabsToInclude.push({
|
|
865
928
|
id: "shortcuts",
|
|
866
929
|
title: "Keyboard shortcuts",
|
|
867
|
-
children: /* @__PURE__ */
|
|
930
|
+
children: /* @__PURE__ */ _forkbook_global_react_default.createElement(RouteWrapper, { path: "shortcuts" }, /* @__PURE__ */ _forkbook_global_react_default.createElement(ShortcutsPage, { key: "shortcuts" }))
|
|
868
931
|
});
|
|
869
932
|
if (enableWhatsNew) tabsToInclude.push({
|
|
870
933
|
id: "whats-new",
|
|
871
934
|
title: "What's new?",
|
|
872
|
-
children: /* @__PURE__ */
|
|
935
|
+
children: /* @__PURE__ */ _forkbook_global_react_default.createElement(RouteWrapper, { path: "whats-new" }, /* @__PURE__ */ _forkbook_global_react_default.createElement(WhatsNewPage, { key: "whats-new" }))
|
|
873
936
|
});
|
|
874
937
|
return tabsToInclude;
|
|
875
938
|
}, [enableWhatsNew]);
|
|
876
|
-
return /* @__PURE__ */
|
|
939
|
+
return /* @__PURE__ */ _forkbook_global_react_default.createElement(Location, null, ({ path }) => {
|
|
877
940
|
const selected = tabs.find((tab) => path.includes(`settings/${tab.id}`))?.id;
|
|
878
|
-
return /* @__PURE__ */
|
|
941
|
+
return /* @__PURE__ */ _forkbook_global_react_default.createElement(TabsView, {
|
|
879
942
|
tabs,
|
|
880
|
-
tools: /* @__PURE__ */
|
|
943
|
+
tools: /* @__PURE__ */ _forkbook_global_react_default.createElement(_forkbook_global_react_default.Fragment, null, /* @__PURE__ */ _forkbook_global_react_default.createElement("div", { className: index_module_default.sidebarToggle }, /* @__PURE__ */ _forkbook_global_react_default.createElement(menuTool.render, null)), toolsExtra.map((item) => /* @__PURE__ */ _forkbook_global_react_default.createElement(item.render, { key: item.id })), /* @__PURE__ */ _forkbook_global_react_default.createElement(Button, {
|
|
881
944
|
padding: "small",
|
|
882
945
|
variant: "ghost",
|
|
883
946
|
onClick: (e) => {
|
|
@@ -885,7 +948,7 @@ function init_settings() {
|
|
|
885
948
|
return onClose();
|
|
886
949
|
},
|
|
887
950
|
ariaLabel: "Close settings page"
|
|
888
|
-
}, /* @__PURE__ */
|
|
951
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(XIcon, null))),
|
|
889
952
|
selected,
|
|
890
953
|
onSelectionChange: changeTab
|
|
891
954
|
});
|
|
@@ -895,7 +958,7 @@ function init_settings() {
|
|
|
895
958
|
const api = useStorybookApi();
|
|
896
959
|
const state = useStorybookState();
|
|
897
960
|
const changeTab = (tab) => api.changeSettingsTab(tab);
|
|
898
|
-
return /* @__PURE__ */
|
|
961
|
+
return /* @__PURE__ */ _forkbook_global_react_default.createElement(Pages, {
|
|
899
962
|
enableWhatsNew: state.whatsNewData?.status === "SUCCESS",
|
|
900
963
|
enableShortcuts: state.ui.enableShortcuts,
|
|
901
964
|
changeTab,
|
|
@@ -907,10 +970,10 @@ function init_settings() {
|
|
|
907
970
|
url: "/settings/",
|
|
908
971
|
title: "Settings",
|
|
909
972
|
type: types.experimental_PAGE,
|
|
910
|
-
render: () => /* @__PURE__ */
|
|
973
|
+
render: () => /* @__PURE__ */ _forkbook_global_react_default.createElement(Route, {
|
|
911
974
|
path: "/settings/",
|
|
912
975
|
startsWith: true
|
|
913
|
-
}, /* @__PURE__ */
|
|
976
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(SettingsPages, null))
|
|
914
977
|
};
|
|
915
978
|
})))();
|
|
916
979
|
}
|
|
@@ -919,23 +982,28 @@ function init_settings() {
|
|
|
919
982
|
var WS_DISCONNECTED_NOTIFICATION_ID, channel, ReactProvider, document$1, rootEl;
|
|
920
983
|
function init_runtime() {
|
|
921
984
|
return (init_runtime = __esmMin((() => {
|
|
922
|
-
|
|
985
|
+
init__forkbook_global_react();
|
|
923
986
|
init_channels();
|
|
924
987
|
init_core_events();
|
|
925
|
-
|
|
926
|
-
|
|
988
|
+
init_global();
|
|
989
|
+
init__forkbook_global_lucide_react();
|
|
927
990
|
init_manager_api();
|
|
928
991
|
init_theming();
|
|
929
992
|
init_ToolbarManager();
|
|
930
993
|
init_constants();
|
|
931
994
|
init_manager();
|
|
995
|
+
init_root_page();
|
|
932
996
|
init_provider();
|
|
933
997
|
WS_DISCONNECTED_NOTIFICATION_ID = "CORE/WS_DISCONNECTED";
|
|
934
998
|
addons.register(TOOLBAR_ID, () => addons.add(TOOLBAR_ID, {
|
|
935
999
|
title: TOOLBAR_ID,
|
|
936
1000
|
type: types.TOOL,
|
|
937
|
-
render: () => /* @__PURE__ */
|
|
1001
|
+
render: () => /* @__PURE__ */ _forkbook_global_react_default.createElement(ToolbarManager, null)
|
|
938
1002
|
}));
|
|
1003
|
+
addons.register("forkbook/root-page", (api) => {
|
|
1004
|
+
const { mdxImportPath } = getRootPage();
|
|
1005
|
+
if (mdxImportPath) api.setFilter("forkbook-root-mdx", (entry) => entry.importPath !== mdxImportPath);
|
|
1006
|
+
});
|
|
939
1007
|
channel = createBrowserChannel({ page: "manager" });
|
|
940
1008
|
addons.setChannel(channel);
|
|
941
1009
|
channel.emit(CHANNEL_CREATED);
|
|
@@ -945,35 +1013,41 @@ function init_runtime() {
|
|
|
945
1013
|
this.addons = addons;
|
|
946
1014
|
this.channel = channel;
|
|
947
1015
|
this.wsDisconnected = false;
|
|
948
|
-
|
|
949
|
-
getElements(type) {
|
|
950
|
-
return this.addons.getElements(type);
|
|
1016
|
+
this.getElements = (type) => this.addons.getElements(type);
|
|
951
1017
|
}
|
|
952
1018
|
getConfig() {
|
|
953
1019
|
return this.addons.getConfig();
|
|
954
1020
|
}
|
|
955
1021
|
handleAPI(api) {
|
|
956
1022
|
this.addons.loadAddons(api);
|
|
957
|
-
this.channel.on(CHANNEL_WS_DISCONNECT, () => {
|
|
1023
|
+
this.channel.on(CHANNEL_WS_DISCONNECT, (event) => {
|
|
958
1024
|
this.wsDisconnected = true;
|
|
959
1025
|
api.addNotification({
|
|
960
1026
|
id: WS_DISCONNECTED_NOTIFICATION_ID,
|
|
961
|
-
content: {
|
|
1027
|
+
content: event?.reconnecting ? {
|
|
1028
|
+
headline: "Reconnecting",
|
|
1029
|
+
subHeadline: "Lost the connection to the Forkbook server. Trying again."
|
|
1030
|
+
} : {
|
|
962
1031
|
headline: "Connection lost",
|
|
963
1032
|
subHeadline: "Please restart your Forkbook server and reload the page"
|
|
964
1033
|
},
|
|
965
|
-
icon: /* @__PURE__ */
|
|
1034
|
+
icon: event?.reconnecting ? /* @__PURE__ */ _forkbook_global_react_default.createElement(RefreshCwIcon, { color: color.warning }) : /* @__PURE__ */ _forkbook_global_react_default.createElement(CircleXIcon, { color: color.negative }),
|
|
966
1035
|
link: void 0
|
|
967
1036
|
});
|
|
968
1037
|
});
|
|
1038
|
+
this.channel.on(CHANNEL_WS_RECONNECT, () => {
|
|
1039
|
+
this.wsDisconnected = false;
|
|
1040
|
+
api.clearNotification(WS_DISCONNECTED_NOTIFICATION_ID);
|
|
1041
|
+
api.fetchIndex();
|
|
1042
|
+
});
|
|
969
1043
|
}
|
|
970
1044
|
};
|
|
971
|
-
({document: document$1} =
|
|
1045
|
+
({document: document$1} = global);
|
|
972
1046
|
rootEl = document$1.getElementById("root");
|
|
973
1047
|
setTimeout(() => {
|
|
974
|
-
|
|
1048
|
+
renderForkbookUI(rootEl, new ReactProvider());
|
|
975
1049
|
}, 0);
|
|
976
1050
|
})))();
|
|
977
1051
|
}
|
|
978
1052
|
//#endregion
|
|
979
|
-
export {
|
|
1053
|
+
export { init_visible_panels as A, getLink as C, scrollIntoView as D, isAncestor as E, init_root_page as M, thumbnailSrc as N, searchItem as O, getHoistedComponents as S, init_tree as T, statusPriority as _, init_provider as a, getAncestorIds as b, matchesModifiers as c, getGroupStatus as d, getMostCriticalStatusValue as f, shouldShowChangeStatus as g, init_status as h, Provider as i, getRootPage as j, getVisiblePanels as k, getChangeDetectionStatus as l, getStatus as m, init_settings as n, init_keybinding as o, getSidebarVisibleStatus as p, settingsPageAddon as r, matchesKeyCode as s, init_runtime as t, getGroupDualStatus as u, createId as v, getStateType as w, getDescendantIds as x, cycle as y };
|