@aussieljk/forkbook 0.0.1-11 → 0.0.1-13
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/README.md +1 -1
- package/assets/create/rendererAssets/common/button.css +6 -6
- package/assets/create/rendererAssets/common/header.css +5 -5
- package/assets/create/rendererAssets/common/page.css +10 -10
- package/dist/_browser-chunks/{Color-QLZNXLSV.js → Color-2EUQ6NXV.js} +2 -2
- package/dist/_browser-chunks/{DocsRenderer-JXND3PVQ.js → DocsRenderer-DKXSW2OY.js} +2 -2
- package/dist/_browser-chunks/{WithTooltip-GNLRTZDF.js → WithTooltip-QCFTNB6P.js} +5 -4
- package/dist/_browser-chunks/{chunk-RBCHTR7C.js → chunk-2ELGJRFZ.js} +1 -1
- package/dist/_browser-chunks/{chunk-6ELMKWKX.js → chunk-2WZWS7GJ.js} +1 -1
- package/dist/_browser-chunks/{chunk-FRAOQJDI.js → chunk-3QPZOXB7.js} +1 -5
- package/dist/_browser-chunks/{chunk-GRO2ZYEJ.js → chunk-4BOJAE7P.js} +12 -8
- package/dist/_browser-chunks/{chunk-ZHKZKFY4.js → chunk-6SL45YM3.js} +9 -13
- package/dist/_browser-chunks/{chunk-DS2WQZGO.js → chunk-BLCZ3C5M.js} +41 -62
- package/dist/_browser-chunks/{chunk-7DQREF4S.js → chunk-DHTLVXAL.js} +37 -44
- package/dist/_browser-chunks/{chunk-GNZY6LOW.js → chunk-DISGPOF4.js} +54 -51
- package/dist/_browser-chunks/{chunk-76222HQR.js → chunk-E6QKKKLO.js} +20 -5
- package/dist/_browser-chunks/{chunk-DYNTDJ3O.js → chunk-EBSOKHFG.js} +8 -2
- package/dist/_browser-chunks/{chunk-3M5T7BW4.js → chunk-ECMVTOVD.js} +1 -1
- package/dist/_browser-chunks/{chunk-EQKMUQF3.js → chunk-ENHFQXYS.js} +5 -4
- package/dist/_browser-chunks/{chunk-KYSD26D6.js → chunk-EW2M3URL.js} +90 -83
- package/dist/_browser-chunks/{chunk-I4ATZPNZ.js → chunk-FCULT3AE.js} +3 -3
- package/dist/_browser-chunks/{chunk-46Z7NGAS.js → chunk-HX443LKV.js} +1 -1
- package/dist/_browser-chunks/{chunk-NGMQJMCY.js → chunk-HZFHNYRC.js} +1 -1
- package/dist/_browser-chunks/{chunk-5H4KFI44.js → chunk-KQJ4T6JL.js} +30 -24
- package/dist/_browser-chunks/{chunk-RMYQ3QN3.js → chunk-NK5SGJNG.js} +22 -17
- package/dist/_browser-chunks/{chunk-N3NRW5XX.js → chunk-PQRPDA4U.js} +3 -3
- package/dist/_browser-chunks/{chunk-2JDQ35OA.js → chunk-PU7D2WDP.js} +0 -11
- package/dist/_browser-chunks/{chunk-5WMXI5GW.js → chunk-QFO2B4X2.js} +31 -28
- package/dist/_browser-chunks/{chunk-TTBPZQ24.js → chunk-S7N7Z5TY.js} +47 -43
- package/dist/_browser-chunks/{chunk-2JT76G3E.js → chunk-SBOQ4QPY.js} +15 -15
- package/dist/_browser-chunks/{chunk-WBLVFDJT.js → chunk-UH3XTEOQ.js} +716 -658
- package/dist/_browser-chunks/{chunk-5I7E4GMO.js → chunk-WY2LUGOH.js} +1 -1
- package/dist/_browser-chunks/{chunk-O24AZJZ7.js → chunk-YJO5BK52.js} +7 -3
- package/dist/_browser-chunks/{chunk-3HM3VWJS.js → chunk-ZF37BMDS.js} +6 -2
- package/dist/_browser-chunks/{chunk-QU4RB2WU.js → chunk-ZF5SPY56.js} +4 -4
- 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-J2AKT5WI.js → attached-runtime-7IRDQUTZ.js} +28 -29
- package/dist/_node-chunks/{builder-manager-Z4RWF4ZH.js → builder-manager-YTALSWKQ.js} +39 -28
- package/dist/_node-chunks/{chunk-2WVLC5M2.js → chunk-26ERGIQH.js} +6 -6
- package/dist/_node-chunks/{chunk-VZG3OKFO.js → chunk-33T4HNF2.js} +6 -6
- package/dist/_node-chunks/{chunk-ZEYODVQT.js → chunk-3F3673RQ.js} +7 -7
- package/dist/_node-chunks/{chunk-Y4W4B3E7.js → chunk-3FLRYZLJ.js} +6 -6
- package/dist/_node-chunks/{chunk-AVL7GUOZ.js → chunk-3L2QRDKH.js} +522 -1045
- package/dist/_node-chunks/{chunk-XO54HM4P.js → chunk-3NH7IHUS.js} +6 -6
- package/dist/_node-chunks/{chunk-GMKLTDKN.js → chunk-3ZAENV5A.js} +6 -6
- package/dist/_node-chunks/{chunk-3IIQSDCO.js → chunk-4B52HLKK.js} +53 -55
- package/dist/_node-chunks/chunk-4CZJ4SFH.js +281 -0
- package/dist/_node-chunks/{chunk-BBU2FUPC.js → chunk-4IIWFG7O.js} +13 -11
- package/dist/_node-chunks/{chunk-2U5J7YTA.js → chunk-4YWZLOAF.js} +6 -6
- package/dist/_node-chunks/{chunk-XVOIYGTJ.js → chunk-5A5XOSRM.js} +6 -6
- package/dist/_node-chunks/chunk-5T6Q7HT3.js +11 -0
- package/dist/_node-chunks/{chunk-MI7WBXWX.js → chunk-6DRDJF2Q.js} +6 -6
- package/dist/_node-chunks/{chunk-WBCKO5LP.js → chunk-6JSZY5TJ.js} +6 -6
- package/dist/_node-chunks/{chunk-3EBGFRAH.js → chunk-7SPDKMDQ.js} +32 -40
- package/dist/_node-chunks/{chunk-IRPQQARO.js → chunk-7YLKDHLZ.js} +7 -7
- package/dist/_node-chunks/{chunk-BSQB5B57.js → chunk-7YQIVUEK.js} +6 -6
- package/dist/_node-chunks/{chunk-PYVGF5F2.js → chunk-ADCQYK3Z.js} +6 -6
- package/dist/_node-chunks/{chunk-7YQTID2W.js → chunk-ALHQVE5R.js} +6 -6
- package/dist/_node-chunks/{chunk-MW4OAPPD.js → chunk-B4XAZ2OC.js} +8 -8
- package/dist/_node-chunks/{chunk-GGCOG7OV.js → chunk-BFQJF3ID.js} +283 -306
- package/dist/_node-chunks/{chunk-5GOXN5M4.js → chunk-BSXI35KM.js} +7 -7
- package/dist/_node-chunks/{chunk-TAMTPVYZ.js → chunk-BZQF5KUE.js} +7 -7
- package/dist/_node-chunks/{chunk-5JLVSH44.js → chunk-CEIESR4U.js} +8 -8
- package/dist/_node-chunks/{chunk-OJWUUSA4.js → chunk-CESXIP3N.js} +6 -6
- package/dist/_node-chunks/{chunk-CEYSYQLV.js → chunk-DAEUTT3I.js} +6 -6
- package/dist/_node-chunks/{chunk-FB2BOL6I.js → chunk-DIC4T2UO.js} +6 -6
- package/dist/_node-chunks/{chunk-LKITAODU.js → chunk-DPOWAA4P.js} +37 -31
- package/dist/_node-chunks/{chunk-W3KFVTWV.js → chunk-DTNEHO4J.js} +10 -10
- package/dist/_node-chunks/{chunk-C5OFHB3N.js → chunk-DY7F7B6V.js} +7 -7
- package/dist/_node-chunks/{chunk-FUG5LYKS.js → chunk-E56UKDJR.js} +8 -8
- package/dist/_node-chunks/{chunk-A7GEBS3Q.js → chunk-EFX2VA4Q.js} +6 -6
- package/dist/_node-chunks/{chunk-PQTEFQIJ.js → chunk-EM6AYELK.js} +10 -12
- package/dist/_node-chunks/{chunk-32FLWHUC.js → chunk-F2AFT3P7.js} +497 -475
- package/dist/_node-chunks/{chunk-OXT6T4AS.js → chunk-GC7NA2Y7.js} +7 -7
- package/dist/_node-chunks/{chunk-55S3GGGC.js → chunk-GIKCT5KG.js} +7 -7
- package/dist/_node-chunks/{chunk-PXOD36TR.js → chunk-GLNHSUKT.js} +20 -20
- package/dist/_node-chunks/{chunk-BKND5XP2.js → chunk-GQZZQB4K.js} +7 -7
- package/dist/_node-chunks/{chunk-GTXZNA2L.js → chunk-GRN6WQC3.js} +10 -10
- package/dist/_node-chunks/{chunk-6UASHVMR.js → chunk-HCMHVV7N.js} +8 -8
- package/dist/_node-chunks/{chunk-IVAOJWPF.js → chunk-HJVZQS65.js} +7 -7
- package/dist/_node-chunks/{chunk-ER3X3AQ7.js → chunk-I26RGEVQ.js} +7 -7
- package/dist/_node-chunks/{chunk-LAIED5XU.js → chunk-I36FPWMO.js} +6 -6
- package/dist/_node-chunks/{chunk-W7HY3ELZ.js → chunk-IDPQ3CVN.js} +474 -479
- package/dist/_node-chunks/{chunk-36LPBTLF.js → chunk-JUVUVVHI.js} +6 -6
- package/dist/_node-chunks/{chunk-DGWKJQ6G.js → chunk-K6TEIAKH.js} +62 -7
- package/dist/_node-chunks/{chunk-7IOSIYW2.js → chunk-KEXQ3BON.js} +7 -7
- package/dist/_node-chunks/{chunk-NLNAIU4I.js → chunk-KUZSE7ZD.js} +9 -9
- package/dist/_node-chunks/chunk-LJ5JRR5Q.js +18 -0
- package/dist/_node-chunks/{chunk-YBG7HVP7.js → chunk-LMGI47HP.js} +8 -8
- package/dist/_node-chunks/{chunk-6E34W4UX.js → chunk-LPIPPSMS.js} +6 -6
- package/dist/_node-chunks/{chunk-XICRXTTE.js → chunk-LR4W5G37.js} +6 -6
- package/dist/_node-chunks/{chunk-VKRGTLQJ.js → chunk-M4MRBEJI.js} +27 -23
- package/dist/_node-chunks/{chunk-REIDJUVJ.js → chunk-M7BVABR2.js} +20 -16
- package/dist/_node-chunks/{chunk-XCJ2ZIQ4.js → chunk-MK2RPLWT.js} +7 -7
- package/dist/_node-chunks/{chunk-LHNHFYK3.js → chunk-MKSEM5C2.js} +6 -6
- package/dist/_node-chunks/{chunk-RNRGXAFV.js → chunk-MWQIBOUB.js} +6 -6
- package/dist/_node-chunks/{chunk-NFDQT7UW.js → chunk-NAXIA2JI.js} +320 -316
- package/dist/_node-chunks/{chunk-GYFR2JLS.js → chunk-NDVIMCIX.js} +7 -7
- package/dist/_node-chunks/{chunk-D5ADPGA4.js → chunk-NIOVXWQZ.js} +6 -6
- package/dist/_node-chunks/{chunk-54EHKXV7.js → chunk-NRP4FGRT.js} +15 -9
- package/dist/_node-chunks/{chunk-NIQSBBT2.js → chunk-NSNBFXVB.js} +7 -7
- package/dist/_node-chunks/{chunk-Z2ZTDQDY.js → chunk-NTUTJAD4.js} +8 -8
- package/dist/_node-chunks/{chunk-XH5CXH53.js → chunk-O46DZ2KC.js} +8 -8
- package/dist/_node-chunks/{chunk-S3NDLFYL.js → chunk-OH5M2YER.js} +7 -7
- package/dist/_node-chunks/{chunk-FTYDKQCO.js → chunk-OSIENBU6.js} +6 -6
- package/dist/_node-chunks/{chunk-76KKKLEE.js → chunk-OVJZBW54.js} +7 -7
- package/dist/_node-chunks/{chunk-WO4UEQI6.js → chunk-PGIDRLZ5.js} +22 -22
- package/dist/_node-chunks/{chunk-J3SM62J3.js → chunk-PJCSZR4T.js} +8 -8
- package/dist/_node-chunks/{chunk-OPT5A55S.js → chunk-PQXP5FZ2.js} +8 -8
- package/dist/_node-chunks/{chunk-5P4N734V.js → chunk-PU33WSBW.js} +34 -52
- package/dist/_node-chunks/{chunk-APPFF22V.js → chunk-PUBZLLNL.js} +7 -7
- package/dist/_node-chunks/{chunk-ALGQMFMN.js → chunk-QWZZX2HN.js} +6 -6
- package/dist/_node-chunks/{chunk-NLLM4MDK.js → chunk-RMUBUNBY.js} +6 -6
- package/dist/_node-chunks/{chunk-SJXLINHV.js → chunk-S33FEPQ3.js} +6 -6
- package/dist/_node-chunks/{chunk-FEC5PGJO.js → chunk-SHP6447T.js} +7 -7
- package/dist/_node-chunks/{chunk-MBIVTOJK.js → chunk-ST3KB36E.js} +6 -6
- package/dist/_node-chunks/{chunk-AKMPPLT5.js → chunk-SXX75O2D.js} +7 -7
- package/dist/_node-chunks/{chunk-6UAJLEIO.js → chunk-TQ5YAQ4Y.js} +6 -6
- package/dist/_node-chunks/{chunk-R7VDUSKY.js → chunk-TSJ3JCNN.js} +16 -10
- package/dist/_node-chunks/{chunk-TKMXEHM4.js → chunk-UYEX6LW6.js} +7 -7
- package/dist/_node-chunks/{chunk-46Y5H6X5.js → chunk-VJLLEKWR.js} +138 -116
- package/dist/_node-chunks/{chunk-IFAV3CER.js → chunk-WWJKLYU5.js} +10 -10
- package/dist/_node-chunks/{chunk-MXLHIEXC.js → chunk-XC7K4QEX.js} +6 -6
- package/dist/_node-chunks/{chunk-GO3YSBPE.js → chunk-Y64FM6U7.js} +8 -8
- package/dist/_node-chunks/{chunk-T6P2EJD2.js → chunk-YDM7NH4T.js} +6 -6
- package/dist/_node-chunks/{chunk-XSVOMORJ.js → chunk-ZHVOUP6D.js} +6 -6
- package/dist/_node-chunks/dist-CFCU4PZG.js +27 -0
- package/dist/_node-chunks/dist-PFMT5YJK.js +16 -0
- package/dist/_node-chunks/{local-runtime-YDAW5RJV.js → local-runtime-BKID5MBG.js} +19 -20
- package/dist/_node-chunks/{mdx-plugin-XLDET5LV.js → mdx-plugin-7BOUDCZB.js} +13 -13
- package/dist/_node-chunks/{monorepo-NWMAHGOM.js → monorepo-FRHSAJB7.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-4B6IZ7JD.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-7BHSAJP4.js} +11 -11
- package/dist/_node-chunks/optimized-tests-F5LCOTXH.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-PJC4PO6A.js → pattern-copy-play-6TGV6WS4.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-4RININ5C.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-4CWXZ35U.js → rehype-external-links-EE2HT4QP.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-QZ2PWSJH.js → rehype-slug-ZKRW2V6Z.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-ZQR4ER7L.js → relaxed-limits-6Q7VRQC5.js} +11 -11
- package/dist/_node-chunks/{run-U63AXEKZ.js → run-6Y3ZTASZ.js} +23 -21
- package/dist/_node-chunks/{run-BMXB2BW2.js → run-EBHIAT35.js} +18 -18
- package/dist/_node-chunks/{setup-NCUTUBNN.js → setup-6XIF77JT.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-4XHF7XPS.js → vitest.config.4.template-GMQNQ4UW.js} +7 -7
- package/dist/actions/decorator.js +16 -21
- package/dist/actions/index.d.ts +3 -3
- package/dist/actions/index.js +1 -1
- package/dist/addon-a11y/index.js +2 -2
- package/dist/addon-a11y/manager.js +11 -11
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.d.ts +8 -2
- package/dist/addon-a11y/preview.js +2 -2
- package/dist/addon-docs/blocks.d.ts +104 -85
- package/dist/addon-docs/blocks.js +30 -32
- package/dist/addon-docs/index.d.ts +2 -2
- package/dist/addon-docs/index.js +3 -3
- package/dist/addon-docs/manager.js +4 -4
- 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/preview.d.ts +1 -1
- package/dist/addon-mcp/preset.js +11 -11
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +16 -16
- package/dist/addon-ondevice-controls/index.js +1 -1
- package/dist/addon-ondevice-controls/register.js +1 -1
- package/dist/addon-pseudo-states/index.js +1 -1
- 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 +6 -5
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +18 -9
- package/dist/addon-vitest/node/coverage-reporter.js +11 -11
- package/dist/addon-vitest/node/vitest.js +34 -34
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +21 -20
- package/dist/addon-vitest/vitest-plugin/global-setup.js +22 -22
- package/dist/addon-vitest/vitest-plugin/index.js +69 -59
- package/dist/babel/index.d.ts +209 -212
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +110 -89
- package/dist/bin/dispatcher.js +10 -10
- package/dist/bin/loader.js +8 -8
- package/dist/builder-vite/index.d.ts +1 -1
- package/dist/builder-vite/index.js +18 -18
- package/dist/builder-vite/preset.js +13 -13
- package/dist/channels/index.d.ts +1 -1
- package/dist/channels/index.js +2 -2
- package/dist/{chunk-Dr3R0DXk.d.ts → chunk-B-NVyPqN.d.ts} +2 -2
- package/dist/{chunk-Fg1Fm__9.d.ts → chunk-BCG2ui5q.d.ts} +671 -674
- package/dist/{chunk-DoIGKY33.d.ts → chunk-BLZXEm1K.d.ts} +6 -8
- package/dist/{chunk-CYuvV2sR.d.ts → chunk-BNRZY6Jq.d.ts} +3 -3
- package/dist/{chunk-CNqjcOmK.d.ts → chunk-BV_hETtB.d.ts} +2 -2
- package/dist/chunk-BcYKnZln.d.ts +10 -0
- 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-pcFXCimE.d.ts → chunk-CmV7WZzR.d.ts} +124 -2
- package/dist/{chunk-BGkgZp-H.d.ts → chunk-D3uSIa6H.d.ts} +9 -1
- package/dist/{chunk-DROZ9oel.d.ts → chunk-DNCU78oW.d.ts} +110 -9
- package/dist/{chunk-D0NUmzXp.d.ts → chunk-LWwxlbee.d.ts} +4 -4
- package/dist/{chunk-BXLImeLy.d.ts → chunk-u_gGuTrz.d.ts} +23 -8
- package/dist/cli/index.d.ts +3 -3
- package/dist/cli/index.js +25 -30
- package/dist/cli/skills/content/index.d.ts +1 -1
- 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 +2 -1
- package/dist/common/index.d.ts +13 -13
- package/dist/common/index.js +34 -35
- package/dist/components/index.d.ts +46 -35
- package/dist/components/index.js +194 -205
- package/dist/core-events/index.d.ts +2 -2
- package/dist/core-server/index.d.ts +15 -10
- package/dist/core-server/index.js +706 -165
- package/dist/core-server/presets/common-manager.js +254 -336
- package/dist/core-server/presets/common-override-preset.js +10 -10
- package/dist/core-server/presets/common-preset.js +83 -275
- 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 +3 -3
- package/dist/csf/index.js +40 -43
- package/dist/csf-tools/index.d.ts +52 -44
- package/dist/csf-tools/index.js +13 -13
- package/dist/docs-tools/index.d.ts +332 -16
- package/dist/docs-tools/index.js +3 -3
- package/dist/instrumenter/index.d.ts +5 -5
- package/dist/instrumenter/index.js +25 -15
- package/dist/manager/_manager-chunks/{globals-runtime-DvV_TF3-.js → globals-runtime-B4NRbNSS.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-wjkxyMn0.js → globals-runtime-BC43T1rL.js} +4150 -50
- package/dist/manager/_manager-chunks/{globals-runtime-BSj0mCjE.js → globals-runtime-BgWmCsA7.js} +114 -110
- package/dist/manager/_manager-chunks/{globals-runtime-CA8AuIRT.js → globals-runtime-BnQ7i5wq.js} +232 -228
- package/dist/manager/_manager-chunks/globals-runtime-BtduS2C2.js +10601 -0
- package/dist/manager/_manager-chunks/globals-runtime-BzuYs3dZ.js +1971 -0
- package/dist/manager/_manager-chunks/{globals-runtime-C5gK7HhH.js → globals-runtime-C59T0h-j.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-CCTA-XPa.js → globals-runtime-CCZrdft6.js} +5 -4
- package/dist/manager/_manager-chunks/{globals-runtime-BY3epqww.js → globals-runtime-CS41oTca.js} +2 -1
- package/dist/manager/_manager-chunks/{globals-runtime-Bu9eGDTe.js → globals-runtime-Cccwtspx.js} +288 -420
- package/dist/manager/_manager-chunks/globals-runtime-CoTrrHG3.js +1163 -0
- package/dist/manager/_manager-chunks/{globals-runtime-BweHuXkK.js → globals-runtime-DCmvKMN5.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-C92M_Vnq.js → globals-runtime-Ddp2jFET.js} +5 -5
- 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-CHjExYMv.js → globals-runtime-UFDJQlo-.js} +741 -540
- package/dist/manager/_manager-chunks/globals-runtime-nQMRiA0J.js +19 -0
- package/dist/manager/_manager-chunks/{globals-runtime-Bj5KDUJi.js → globals-runtime-oRjPg2jY.js} +1 -1
- package/dist/manager/_manager-chunks/runtime-4wMiTjjZ.js +552 -0
- package/dist/manager/_manager-chunks/{runtime--hR2NZFd.js → runtime-AvqHE9rM.js} +112 -109
- package/dist/manager/_manager-chunks/{runtime-EPerAEAs.js → runtime-CZtDJIYj.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-B6NL14pz.js → runtime-D8QxTQiI.js} +6 -6
- package/dist/manager/_manager-chunks/{runtime-BAsOe1C_.js → runtime-DC3oEVlM.js} +49 -49
- package/dist/manager/_manager-chunks/{runtime-CJQZFUUj.js → runtime-DCOIOn4T.js} +46 -56
- package/dist/manager/_manager-chunks/{runtime-DvB1axgp.js → runtime-D_FDSHFG.js} +13 -13
- package/dist/manager/_manager-chunks/{runtime-Dtbhxq5m.js → runtime-Db8fJ2MP.js} +67 -500
- package/dist/manager/_manager-chunks/{runtime-CgRqs_SK.js → runtime-lPbyY_f5.js} +882 -869
- package/dist/manager/_manager-chunks/{runtime-Dem2xJbS.js → runtime-td6oYfU6.js} +739 -554
- 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 +479 -464
- package/dist/manager-errors.d.ts +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +9 -9
- package/dist/mocking-utils/index.d.ts +5 -3
- package/dist/mocking-utils/index.js +21 -26
- 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 +2 -2
- package/dist/nextjs-vite/index.js +9 -5
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/preset.js +12 -12
- 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.js +17 -27
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +10 -6
- package/dist/node-logger/index.d.ts +18 -18
- package/dist/node-logger/index.js +9 -9
- package/dist/oxc-parser/index.js +14 -11
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview/_chunks/{runtime-Bcv1hJky.js → runtime-BYRCSYBN.js} +4148 -48
- package/dist/preview/_chunks/{runtime-WapFVPAh.js → runtime-Bvh_rfnQ.js} +2 -37
- package/dist/preview/_chunks/{runtime-BZ4pNS3g.js → runtime-CdZ1yk7m.js} +3 -3
- package/dist/preview/_chunks/{runtime-BhSZ1Mwt.js → runtime-CsO4apr9.js} +38 -42
- package/dist/preview/_chunks/{runtime-BUnOhg9h.js → runtime-D2MPrqbU.js} +2 -2
- package/dist/preview/_chunks/{runtime-BPwAnlRx.js → runtime-DS0s7U3c.js} +1 -1
- package/dist/preview/_chunks/{runtime-BgPhfM5P.js → runtime-U1Ycy25F.js} +736 -428
- package/dist/preview/_chunks/{runtime-BJwGQok8.js → runtime-tyJLgv6h.js} +221 -60
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +3 -3
- package/dist/preview-api/index.js +8 -8
- package/dist/preview-errors.d.ts +1 -1
- package/dist/react/docgen/docgen-worker.js +11 -11
- package/dist/react/entry-preview-argtypes.js +1 -1
- package/dist/react/entry-preview-docs.js +1 -1
- package/dist/react/entry-preview.js +1 -1
- package/dist/react/index.d.ts +5 -7
- package/dist/react/index.js +5 -5
- package/dist/react/preset.js +13 -13
- package/dist/react/preview.js +4 -4
- package/dist/react-native/bin/get-stories.js +8 -8
- package/dist/react-native/index.d.ts +37 -36
- package/dist/react-native/index.js +38 -38
- package/dist/react-native/metro/node.d.ts +1 -1
- package/dist/react-native/metro/node.js +10 -10
- package/dist/react-native/metro/withForkbook.d.ts +7 -7
- package/dist/react-native/metro/withForkbook.js +16 -16
- package/dist/react-native/preview.js +4 -1
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-native/stub.js +1 -1
- package/dist/react-native-ui/index.d.ts +8 -7
- package/dist/react-native-ui/index.js +1 -8
- package/dist/react-native-ui-common/index.d.ts +30 -9
- package/dist/react-native-ui-common/index.js +26 -31
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +7 -7
- package/dist/router/index.d.ts +2 -2
- package/dist/router/index.js +4 -2
- 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 +1 -1
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/shared/open-service/toolsets/docs/public.d.ts +7 -7
- package/dist/telemetry/index.d.ts +38 -274
- package/dist/telemetry/index.js +11 -66
- package/dist/test/index.d.ts +2 -2
- package/dist/test/index.js +139 -120
- package/dist/theming/create.d.ts +1 -1
- package/dist/theming/index.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +2 -2
- package/package.json +16 -16
- package/template/nextjs-vite/cli/js/Button.jsx +2 -2
- package/template/nextjs-vite/cli/js/Header.jsx +1 -1
- package/template/nextjs-vite/cli/js/Page.jsx +1 -1
- package/template/nextjs-vite/cli/ts/Button.tsx +2 -2
- package/template/nextjs-vite/cli/ts/Header.tsx +1 -1
- package/template/nextjs-vite/cli/ts/Page.tsx +1 -1
- package/template/react/cli/js/Button.jsx +2 -2
- package/template/react/cli/js/Header.jsx +1 -1
- package/template/react/cli/js/Page.jsx +1 -1
- package/template/react/cli/ts/Button.tsx +2 -2
- package/template/react/cli/ts/Header.tsx +1 -1
- package/template/react/cli/ts/Page.tsx +1 -1
- package/template/react-vite/cli/js/Button.jsx +2 -2
- package/template/react-vite/cli/js/Header.jsx +1 -1
- package/template/react-vite/cli/js/Page.jsx +1 -1
- package/template/react-vite/cli/ts/Button.tsx +2 -2
- package/template/react-vite/cli/ts/Header.tsx +1 -1
- package/template/react-vite/cli/ts/Page.tsx +1 -1
- package/dist/_node-chunks/chunk-2YNXKY72.js +0 -40
- package/dist/_node-chunks/chunk-3NST2GUZ.js +0 -33
- package/dist/_node-chunks/chunk-4D325SMT.js +0 -1359
- package/dist/_node-chunks/chunk-APXRPW7A.js +0 -11
- package/dist/_node-chunks/chunk-QHBQRPDP.js +0 -155
- package/dist/_node-chunks/chunk-SMBAR4G6.js +0 -18
- package/dist/_node-chunks/chunk-SRDKK3SG.js +0 -33
- package/dist/_node-chunks/chunk-V5IMPC3J.js +0 -33
- package/dist/_node-chunks/chunk-YIAUHGY2.js +0 -69
- package/dist/_node-chunks/dist-C5QIQD3G.js +0 -27
- package/dist/_node-chunks/dist-NBRPZCHX.js +0 -16
- package/dist/_node-chunks/optimized-tests-EIPJR7HA.js +0 -22
- package/dist/_node-chunks/postinstallAddon-EOAAURMG.js +0 -20
- package/dist/_node-chunks/session-id-HEW5JUNB.js +0 -23
- package/dist/chunk-BGhyFTJO.d.ts +0 -115
- package/dist/chunk-DaVb55-_.d.ts +0 -124
- package/dist/manager/_manager-chunks/globals-runtime-Bs75QQ_I.js +0 -9987
- package/dist/manager/_manager-chunks/globals-runtime-WZKaeKm9.js +0 -4091
- package/dist/manager/_manager-chunks/runtime-5o_11Jae.js +0 -78
- package/dist/preview/_chunks/runtime-BsMjBzuq.js +0 -53
- package/dist/preview/_chunks/runtime-C1jgT6tJ.js +0 -4091
- package/dist/preview/_chunks/runtime-CkOhMcXf.js +0 -387
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as __toESM, n as __esmMin } from "./runtime-BdGkqNEt.js";
|
|
2
|
-
import {
|
|
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-
|
|
4
|
-
import { C as UpgradeBlock, c as init_IconSymbols, d as init_menu, f as menuTool, n as
|
|
5
|
-
import {
|
|
6
|
-
import { c as init_clsx, s as clsx } from "./runtime-
|
|
2
|
+
import { Ba as CHANNEL_WS_DISCONNECT, C as Route, D as init_router, Dt as addons, E as getBasename, 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 init_channels, Ra as init__forkbook_global_lucide_react, Rt as shortcutToHumanString, So as useState, St as init_theming, Tn as CheckIcon, Tt as Consumer, Vn as CircleXIcon, W as ForkbookLogo, Xa as init_core_events, Z as ScrollArea, Za as createBrowserChannel, a as init_types, b as Location, cr as EyeIcon, ct as TabsView, eo as Component, fo as useCallback, fr as FileTextIcon, ft as TooltipProvider, ho as useEffect, i as REVIEW_STATUS_TYPE_ID, lo as init__forkbook_global_react, lr as EyeOffIcon, mt as init_components, n as CHANGE_DETECTION_STATUS_TYPE_ID, no as _forkbook_global_react_default, q as Link, r as NON_AGGREGATED_STATUS_TYPE_IDS, t as Addon_TypesEnum, to as Fragment, ut as Tooltip, va as TriangleAlertIcon, vt as color, w as buildManagerHref, wr as GitForkIcon, wt as useTheme, yo as useMemo, za as CHANNEL_CREATED, zt as types } from "./runtime-Db8fJ2MP.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-DCOIOn4T.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-lPbyY_f5.js";
|
|
5
|
+
import { c as require_memoizerific, o as curriedTransparentize$1, s as init_polished_esm } from "./runtime-td6oYfU6.js";
|
|
6
|
+
import { c as init_clsx, s as clsx } from "./runtime-D8QxTQiI.js";
|
|
7
7
|
//#region src/manager/utils/root-page.ts
|
|
8
8
|
var getRootPage, thumbnailSrc;
|
|
9
9
|
function init_root_page() {
|
|
@@ -21,7 +21,7 @@ function init_root_page() {
|
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/manager/utils/tree.ts
|
|
23
23
|
function getPath(item, ref) {
|
|
24
|
-
const parent = item.type !== "root" && item.parent ? ref.index[item.parent] : null;
|
|
24
|
+
const parent = item.type !== "root" && item.parent ? ref.index?.[item.parent] : null;
|
|
25
25
|
if (parent) return [...getPath(parent, ref), parent.name];
|
|
26
26
|
return ref.id === "storybook_internal" ? [] : [ref.title || ref.id];
|
|
27
27
|
}
|
|
@@ -186,7 +186,7 @@ function getChangeDetectionStatus(statuses) {
|
|
|
186
186
|
}
|
|
187
187
|
function getGroupStatus(collapsedData, allStatuses) {
|
|
188
188
|
return Object.values(collapsedData).reduce((acc, item) => {
|
|
189
|
-
if (item.type === "group" || item.type === "component" || item.type === "story") {
|
|
189
|
+
if (item.id && (item.type === "group" || item.type === "component" || item.type === "story")) {
|
|
190
190
|
const leafs = getDescendantIds(collapsedData, item.id, false).map((id) => collapsedData[id]).filter((i) => i.type === "story");
|
|
191
191
|
const combinedStatus = getMostCriticalStatusValue(statusesExcludingReview(leafs.flatMap((story) => Object.values(allStatuses[story.id] || {}))).map((s) => s.value));
|
|
192
192
|
if (combinedStatus) acc[item.id] = combinedStatus;
|
|
@@ -196,7 +196,7 @@ function getGroupStatus(collapsedData, allStatuses) {
|
|
|
196
196
|
}
|
|
197
197
|
function getGroupDualStatus(collapsedData, allStatuses) {
|
|
198
198
|
return Object.values(collapsedData).reduce((acc, item) => {
|
|
199
|
-
if (item.type === "group" || item.type === "component" || item.type === "story") {
|
|
199
|
+
if (item.id && (item.type === "group" || item.type === "component" || item.type === "story")) {
|
|
200
200
|
const allDescendantStatuses = getDescendantIds(collapsedData, item.id, false).map((id) => collapsedData[id]).filter((i) => i.type === "story").flatMap((story) => Object.values(allStatuses[story.id] || {}));
|
|
201
201
|
const changeValues = allDescendantStatuses.filter((s) => s.typeId === CHANGE_DETECTION_STATUS_TYPE_ID).map((s) => s.value);
|
|
202
202
|
const testValues = allDescendantStatuses.filter(isAggregatedTestStatus).map((s) => s.value);
|
|
@@ -211,9 +211,9 @@ function getGroupDualStatus(collapsedData, allStatuses) {
|
|
|
211
211
|
var import_memoizerific, statusPriority, getStatus, shouldShowChangeStatus, isAggregatedTestStatus, getMostCriticalStatusValue, statusesExcludingReview;
|
|
212
212
|
function init_status() {
|
|
213
213
|
return (init_status = __esmMin((() => {
|
|
214
|
-
|
|
214
|
+
init__forkbook_global_react();
|
|
215
215
|
init_types();
|
|
216
|
-
|
|
216
|
+
init__forkbook_global_lucide_react();
|
|
217
217
|
import_memoizerific = /* @__PURE__ */ __toESM(require_memoizerific(), 1);
|
|
218
218
|
init_polished_esm();
|
|
219
219
|
init_IconSymbols();
|
|
@@ -239,7 +239,7 @@ function init_status() {
|
|
|
239
239
|
textColor: null
|
|
240
240
|
},
|
|
241
241
|
"status-value:pending": {
|
|
242
|
-
icon: /* @__PURE__ */
|
|
242
|
+
icon: /* @__PURE__ */ _forkbook_global_react_default.createElement(CircleIcon, {
|
|
243
243
|
key: "icon",
|
|
244
244
|
className: status_module_default.loadingIcon
|
|
245
245
|
}),
|
|
@@ -247,72 +247,72 @@ function init_status() {
|
|
|
247
247
|
textColor: "currentColor"
|
|
248
248
|
},
|
|
249
249
|
"status-value:success": {
|
|
250
|
-
icon: /* @__PURE__ */
|
|
250
|
+
icon: /* @__PURE__ */ _forkbook_global_react_default.createElement("svg", {
|
|
251
251
|
key: "icon",
|
|
252
252
|
viewBox: "0 0 14 14",
|
|
253
253
|
width: "14",
|
|
254
254
|
height: "14"
|
|
255
|
-
}, /* @__PURE__ */
|
|
255
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(UseSymbol, { type: "success" })),
|
|
256
256
|
iconColor: theme.color.positive,
|
|
257
257
|
textColor: "currentColor"
|
|
258
258
|
},
|
|
259
259
|
"status-value:new": {
|
|
260
|
-
icon: /* @__PURE__ */
|
|
260
|
+
icon: /* @__PURE__ */ _forkbook_global_react_default.createElement("svg", {
|
|
261
261
|
key: "icon",
|
|
262
262
|
viewBox: "0 0 14 14",
|
|
263
263
|
width: "14",
|
|
264
264
|
height: "14"
|
|
265
|
-
}, /* @__PURE__ */
|
|
265
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(UseSymbol, { type: "new" })),
|
|
266
266
|
iconColor: theme.fgColor.accent,
|
|
267
267
|
textColor: null
|
|
268
268
|
},
|
|
269
269
|
"status-value:modified": {
|
|
270
|
-
icon: /* @__PURE__ */
|
|
270
|
+
icon: /* @__PURE__ */ _forkbook_global_react_default.createElement("svg", {
|
|
271
271
|
key: "icon",
|
|
272
272
|
viewBox: "0 0 14 14",
|
|
273
273
|
width: "14",
|
|
274
274
|
height: "14"
|
|
275
|
-
}, /* @__PURE__ */
|
|
275
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(UseSymbol, { type: "modified" })),
|
|
276
276
|
iconColor: theme.fgColor.accent,
|
|
277
277
|
textColor: null
|
|
278
278
|
},
|
|
279
279
|
"status-value:affected": {
|
|
280
|
-
icon: /* @__PURE__ */
|
|
280
|
+
icon: /* @__PURE__ */ _forkbook_global_react_default.createElement("svg", {
|
|
281
281
|
key: "icon",
|
|
282
282
|
viewBox: "0 0 14 14",
|
|
283
283
|
width: "14",
|
|
284
284
|
height: "14"
|
|
285
|
-
}, /* @__PURE__ */
|
|
285
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(UseSymbol, { type: "affected" })),
|
|
286
286
|
iconColor: theme.fgColor.accent,
|
|
287
287
|
textColor: null
|
|
288
288
|
},
|
|
289
289
|
"status-value:reviewing": {
|
|
290
|
-
icon: /* @__PURE__ */
|
|
290
|
+
icon: /* @__PURE__ */ _forkbook_global_react_default.createElement("svg", {
|
|
291
291
|
key: "icon",
|
|
292
292
|
viewBox: "0 0 14 14",
|
|
293
293
|
width: "14",
|
|
294
294
|
height: "14"
|
|
295
|
-
}, /* @__PURE__ */
|
|
295
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(UseSymbol, { type: "reviewing" })),
|
|
296
296
|
iconColor: theme.fgColor.agentic,
|
|
297
297
|
textColor: null
|
|
298
298
|
},
|
|
299
299
|
"status-value:warning": {
|
|
300
|
-
icon: /* @__PURE__ */
|
|
300
|
+
icon: /* @__PURE__ */ _forkbook_global_react_default.createElement("svg", {
|
|
301
301
|
key: "icon",
|
|
302
302
|
viewBox: "0 0 14 14",
|
|
303
303
|
width: "14",
|
|
304
304
|
height: "14"
|
|
305
|
-
}, /* @__PURE__ */
|
|
305
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(UseSymbol, { type: "warning" })),
|
|
306
306
|
iconColor: theme.color.warning,
|
|
307
307
|
textColor: theme.fgColor.warning
|
|
308
308
|
},
|
|
309
309
|
"status-value:error": {
|
|
310
|
-
icon: /* @__PURE__ */
|
|
310
|
+
icon: /* @__PURE__ */ _forkbook_global_react_default.createElement("svg", {
|
|
311
311
|
key: "icon",
|
|
312
312
|
viewBox: "0 0 14 14",
|
|
313
313
|
width: "14",
|
|
314
314
|
height: "14"
|
|
315
|
-
}, /* @__PURE__ */
|
|
315
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(UseSymbol, { type: "error" })),
|
|
316
316
|
iconColor: theme.color.negative,
|
|
317
317
|
textColor: theme.fgColor.negative
|
|
318
318
|
}
|
|
@@ -366,8 +366,10 @@ var Provider;
|
|
|
366
366
|
function init_provider() {
|
|
367
367
|
return (init_provider = __esmMin((() => {
|
|
368
368
|
Provider = class {
|
|
369
|
-
|
|
370
|
-
|
|
369
|
+
constructor() {
|
|
370
|
+
this.getElements = () => {
|
|
371
|
+
throw new Error("Provider.getElements() is not implemented!");
|
|
372
|
+
};
|
|
371
373
|
}
|
|
372
374
|
handleAPI(_api) {
|
|
373
375
|
throw new Error("Provider.handleAPI() is not implemented!");
|
|
@@ -393,10 +395,10 @@ function init_About_module() {
|
|
|
393
395
|
}
|
|
394
396
|
About_module_default = {
|
|
395
397
|
"container": "fb-v5QLGG-container",
|
|
396
|
-
"
|
|
398
|
+
"header": "fb-v5QLGG-header",
|
|
397
399
|
"footer": "fb-v5QLGG-footer",
|
|
398
|
-
"
|
|
399
|
-
"
|
|
400
|
+
"link": "fb-v5QLGG-link",
|
|
401
|
+
"actions": "fb-v5QLGG-actions"
|
|
400
402
|
};
|
|
401
403
|
})))();
|
|
402
404
|
}
|
|
@@ -405,25 +407,25 @@ function init_About_module() {
|
|
|
405
407
|
var AboutScreen;
|
|
406
408
|
function init_About() {
|
|
407
409
|
return (init_About = __esmMin((() => {
|
|
408
|
-
|
|
410
|
+
init__forkbook_global_react();
|
|
409
411
|
init_components();
|
|
410
|
-
|
|
412
|
+
init__forkbook_global_lucide_react();
|
|
411
413
|
init_UpgradeBlock();
|
|
412
414
|
init_About_module();
|
|
413
415
|
AboutScreen = ({ onNavigateToWhatsNew }) => {
|
|
414
|
-
return /* @__PURE__ */
|
|
416
|
+
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, {
|
|
415
417
|
ariaLabel: false,
|
|
416
418
|
asChild: true
|
|
417
|
-
}, /* @__PURE__ */
|
|
419
|
+
}, /* @__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, {
|
|
418
420
|
ariaLabel: false,
|
|
419
421
|
asChild: true
|
|
420
|
-
}, /* @__PURE__ */
|
|
422
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement("a", { href: "https://forkbook.ljk.dev/docs" }, /* @__PURE__ */ _forkbook_global_react_default.createElement(FileTextIcon, { style: {
|
|
421
423
|
display: "inline",
|
|
422
424
|
marginRight: 5
|
|
423
|
-
} }), "Documentation"))), /* @__PURE__ */
|
|
425
|
+
} }), "Documentation"))), /* @__PURE__ */ _forkbook_global_react_default.createElement("div", null, "Open source software maintained by", " ", /* @__PURE__ */ _forkbook_global_react_default.createElement(Link, {
|
|
424
426
|
className: About_module_default.link,
|
|
425
427
|
href: "https://www.chromatic.com/"
|
|
426
|
-
}, "Chromatic"), " ", "and the", " ", /* @__PURE__ */
|
|
428
|
+
}, "Chromatic"), " ", "and the", " ", /* @__PURE__ */ _forkbook_global_react_default.createElement(Link, {
|
|
427
429
|
className: About_module_default.link,
|
|
428
430
|
href: "https://github.com/aussieljk/forkbook/graphs/contributors"
|
|
429
431
|
}, "Forkbook Community"))));
|
|
@@ -435,7 +437,7 @@ function init_About() {
|
|
|
435
437
|
var NotificationClearer, AboutPage;
|
|
436
438
|
function init_AboutPage() {
|
|
437
439
|
return (init_AboutPage = __esmMin((() => {
|
|
438
|
-
|
|
440
|
+
init__forkbook_global_react();
|
|
439
441
|
init_manager_api();
|
|
440
442
|
init_About();
|
|
441
443
|
NotificationClearer = class extends Component {
|
|
@@ -454,10 +456,10 @@ function init_AboutPage() {
|
|
|
454
456
|
const onNavigateToWhatsNew = useCallback(() => {
|
|
455
457
|
api.changeSettingsTab("whats-new");
|
|
456
458
|
}, [api]);
|
|
457
|
-
return /* @__PURE__ */
|
|
459
|
+
return /* @__PURE__ */ _forkbook_global_react_default.createElement(NotificationClearer, {
|
|
458
460
|
api,
|
|
459
461
|
notificationId: "update"
|
|
460
|
-
}, /* @__PURE__ */
|
|
462
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(AboutScreen, { onNavigateToWhatsNew: state.whatsNewData?.status === "SUCCESS" ? onNavigateToWhatsNew : void 0 }));
|
|
461
463
|
};
|
|
462
464
|
})))();
|
|
463
465
|
}
|
|
@@ -481,24 +483,24 @@ function init_SettingsFooter_module() {
|
|
|
481
483
|
var SettingsFooter;
|
|
482
484
|
function init_SettingsFooter() {
|
|
483
485
|
return (init_SettingsFooter = __esmMin((() => {
|
|
484
|
-
|
|
486
|
+
init__forkbook_global_react();
|
|
485
487
|
init_components();
|
|
486
488
|
init_clsx();
|
|
487
489
|
init_SettingsFooter_module();
|
|
488
|
-
SettingsFooter = ({ className, ...props }) => /* @__PURE__ */
|
|
490
|
+
SettingsFooter = ({ className, ...props }) => /* @__PURE__ */ _forkbook_global_react_default.createElement("div", {
|
|
489
491
|
className: clsx(SettingsFooter_module_default.footer, className),
|
|
490
492
|
...props
|
|
491
|
-
}, /* @__PURE__ */
|
|
493
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(Link, {
|
|
492
494
|
secondary: true,
|
|
493
495
|
href: "https://forkbook.ljk.dev",
|
|
494
496
|
cancel: false,
|
|
495
497
|
target: "_blank"
|
|
496
|
-
}, "Docs"), /* @__PURE__ */
|
|
498
|
+
}, "Docs"), /* @__PURE__ */ _forkbook_global_react_default.createElement(Link, {
|
|
497
499
|
secondary: true,
|
|
498
500
|
href: "https://github.com/aussieljk/forkbook",
|
|
499
501
|
cancel: false,
|
|
500
502
|
target: "_blank"
|
|
501
|
-
}, "GitHub"), /* @__PURE__ */
|
|
503
|
+
}, "GitHub"), /* @__PURE__ */ _forkbook_global_react_default.createElement(Link, {
|
|
502
504
|
secondary: true,
|
|
503
505
|
href: "https://forkbook.ljk.dev/community#support",
|
|
504
506
|
cancel: false,
|
|
@@ -519,17 +521,17 @@ function init_shortcuts_module() {
|
|
|
519
521
|
document.head.appendChild(style);
|
|
520
522
|
}
|
|
521
523
|
shortcuts_module_default = {
|
|
522
|
-
"gridHeaderRow": "fb-5Bi54W-gridHeaderRow",
|
|
523
|
-
"fade": "fb-5Bi54W-fade",
|
|
524
|
-
"container": "fb-5Bi54W-container",
|
|
525
|
-
"gridWrapper": "fb-5Bi54W-gridWrapper",
|
|
526
524
|
"description": "fb-5Bi54W-description",
|
|
527
|
-
"row": "fb-5Bi54W-row",
|
|
528
|
-
"jiggle": "fb-5Bi54W-jiggle",
|
|
529
525
|
"textInput": "fb-5Bi54W-textInput",
|
|
526
|
+
"container": "fb-5Bi54W-container",
|
|
527
|
+
"row": "fb-5Bi54W-row",
|
|
528
|
+
"fade": "fb-5Bi54W-fade",
|
|
530
529
|
"header": "fb-5Bi54W-header",
|
|
530
|
+
"jiggle": "fb-5Bi54W-jiggle",
|
|
531
|
+
"headerItem": "fb-5Bi54W-headerItem",
|
|
531
532
|
"successIcon": "fb-5Bi54W-successIcon",
|
|
532
|
-
"
|
|
533
|
+
"gridHeaderRow": "fb-5Bi54W-gridHeaderRow",
|
|
534
|
+
"gridWrapper": "fb-5Bi54W-gridWrapper"
|
|
533
535
|
};
|
|
534
536
|
})))();
|
|
535
537
|
}
|
|
@@ -547,14 +549,14 @@ function toShortcutState(shortcutKeys) {
|
|
|
547
549
|
var TextInput, shortcutLabels, hardcodedShortcuts, ShortcutsScreen;
|
|
548
550
|
function init_shortcuts() {
|
|
549
551
|
return (init_shortcuts = __esmMin((() => {
|
|
550
|
-
|
|
552
|
+
init__forkbook_global_react();
|
|
551
553
|
init_components();
|
|
552
|
-
|
|
554
|
+
init__forkbook_global_lucide_react();
|
|
553
555
|
init_manager_api();
|
|
554
556
|
init_clsx();
|
|
555
557
|
init_SettingsFooter();
|
|
556
558
|
init_shortcuts_module();
|
|
557
|
-
TextInput = ({ valid, className, ...props }) => /* @__PURE__ */
|
|
559
|
+
TextInput = ({ valid, className, ...props }) => /* @__PURE__ */ _forkbook_global_react_default.createElement(Form.Input, {
|
|
558
560
|
className: clsx(shortcuts_module_default.textInput, className),
|
|
559
561
|
"data-valid": valid,
|
|
560
562
|
...props
|
|
@@ -590,6 +592,7 @@ function init_shortcuts() {
|
|
|
590
592
|
super(props);
|
|
591
593
|
this.onKeyDown = (e) => {
|
|
592
594
|
const { activeFeature, shortcutKeys } = this.state;
|
|
595
|
+
if (!activeFeature) return false;
|
|
593
596
|
if (e.key === "Backspace") return this.restoreDefault();
|
|
594
597
|
const shortcut = eventToShortcut(e);
|
|
595
598
|
if (!shortcut) return false;
|
|
@@ -618,7 +621,7 @@ function init_shortcuts() {
|
|
|
618
621
|
};
|
|
619
622
|
this.onBlur = async () => {
|
|
620
623
|
const { shortcutKeys, activeFeature } = this.state;
|
|
621
|
-
if (shortcutKeys[activeFeature]) {
|
|
624
|
+
if (activeFeature && shortcutKeys[activeFeature]) {
|
|
622
625
|
const { shortcut, error } = shortcutKeys[activeFeature];
|
|
623
626
|
if (!shortcut || error) return this.restoreDefault();
|
|
624
627
|
return this.saveShortcut();
|
|
@@ -628,6 +631,7 @@ function init_shortcuts() {
|
|
|
628
631
|
this.saveShortcut = async () => {
|
|
629
632
|
const { activeFeature, shortcutKeys } = this.state;
|
|
630
633
|
const { setShortcut } = this.props;
|
|
634
|
+
if (!activeFeature) return;
|
|
631
635
|
await setShortcut(activeFeature, shortcutKeys[activeFeature].shortcut);
|
|
632
636
|
this.setState({ successField: activeFeature });
|
|
633
637
|
};
|
|
@@ -639,6 +643,7 @@ function init_shortcuts() {
|
|
|
639
643
|
this.restoreDefault = async () => {
|
|
640
644
|
const { activeFeature, shortcutKeys } = this.state;
|
|
641
645
|
const { restoreDefaultShortcut } = this.props;
|
|
646
|
+
if (!activeFeature) return;
|
|
642
647
|
const defaultShortcut = await restoreDefaultShortcut(activeFeature);
|
|
643
648
|
return this.setState({ shortcutKeys: {
|
|
644
649
|
...shortcutKeys,
|
|
@@ -655,18 +660,18 @@ function init_shortcuts() {
|
|
|
655
660
|
};
|
|
656
661
|
this.renderKeyInput = () => {
|
|
657
662
|
const { shortcutKeys, addonsShortcutLabels } = this.state;
|
|
658
|
-
return Object.entries(shortcutKeys).filter(([feature]) => shortcutLabels[feature] !== void 0 || addonsShortcutLabels && addonsShortcutLabels[feature]).map(([feature, { shortcut, hardcoded }]) => /* @__PURE__ */
|
|
663
|
+
return Object.entries(shortcutKeys).filter(([feature]) => shortcutLabels[feature] !== void 0 || addonsShortcutLabels && addonsShortcutLabels[feature]).map(([feature, { shortcut, hardcoded }]) => /* @__PURE__ */ _forkbook_global_react_default.createElement("div", {
|
|
659
664
|
className: shortcuts_module_default.row,
|
|
660
665
|
key: feature
|
|
661
|
-
}, /* @__PURE__ */
|
|
662
|
-
tooltip: /* @__PURE__ */
|
|
666
|
+
}, /* @__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, {
|
|
667
|
+
tooltip: /* @__PURE__ */ _forkbook_global_react_default.createElement(Tooltip, { hasChrome: true }, "This shortcut cannot be changed."),
|
|
663
668
|
placement: "right"
|
|
664
|
-
}, /* @__PURE__ */
|
|
669
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(TextInput, {
|
|
665
670
|
"aria-disabled": true,
|
|
666
671
|
readOnly: true,
|
|
667
672
|
valid: void 0,
|
|
668
673
|
value: shortcut ? shortcutToHumanString(shortcut) : ""
|
|
669
|
-
}))) : /* @__PURE__ */
|
|
674
|
+
}))) : /* @__PURE__ */ _forkbook_global_react_default.createElement(TextInput, {
|
|
670
675
|
spellCheck: "false",
|
|
671
676
|
valid: this.displayError(feature),
|
|
672
677
|
className: "modalInput",
|
|
@@ -676,12 +681,12 @@ function init_shortcuts() {
|
|
|
676
681
|
value: shortcut ? shortcutToHumanString(shortcut) : "",
|
|
677
682
|
placeholder: "Type keys",
|
|
678
683
|
readOnly: true
|
|
679
|
-
}), /* @__PURE__ */
|
|
684
|
+
}), /* @__PURE__ */ _forkbook_global_react_default.createElement(CheckIcon, {
|
|
680
685
|
className: shortcuts_module_default.successIcon,
|
|
681
686
|
"data-valid": this.displaySuccessMessage(feature)
|
|
682
687
|
})));
|
|
683
688
|
};
|
|
684
|
-
this.renderKeyForm = () => /* @__PURE__ */
|
|
689
|
+
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());
|
|
685
690
|
this.state = {
|
|
686
691
|
activeFeature: void 0,
|
|
687
692
|
successField: void 0,
|
|
@@ -691,13 +696,13 @@ function init_shortcuts() {
|
|
|
691
696
|
}
|
|
692
697
|
render() {
|
|
693
698
|
const layout = this.renderKeyForm();
|
|
694
|
-
return /* @__PURE__ */
|
|
699
|
+
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, {
|
|
695
700
|
ariaLabel: false,
|
|
696
701
|
variant: "outline",
|
|
697
702
|
size: "small",
|
|
698
703
|
id: "restoreDefaultsHotkeys",
|
|
699
704
|
onClick: this.restoreDefaults
|
|
700
|
-
}, "Restore defaults"), /* @__PURE__ */
|
|
705
|
+
}, "Restore defaults"), /* @__PURE__ */ _forkbook_global_react_default.createElement(SettingsFooter, null));
|
|
701
706
|
}
|
|
702
707
|
};
|
|
703
708
|
})))();
|
|
@@ -707,10 +712,10 @@ function init_shortcuts() {
|
|
|
707
712
|
var ShortcutsPage;
|
|
708
713
|
function init_ShortcutsPage() {
|
|
709
714
|
return (init_ShortcutsPage = __esmMin((() => {
|
|
710
|
-
|
|
715
|
+
init__forkbook_global_react();
|
|
711
716
|
init_manager_api();
|
|
712
717
|
init_shortcuts();
|
|
713
|
-
ShortcutsPage = () => /* @__PURE__ */
|
|
718
|
+
ShortcutsPage = () => /* @__PURE__ */ _forkbook_global_react_default.createElement(Consumer, null, ({ api: { getShortcutKeys, getAddonsShortcutLabels, setShortcut, restoreDefaultShortcut, restoreAllDefaultShortcuts } }) => /* @__PURE__ */ _forkbook_global_react_default.createElement(ShortcutsScreen, {
|
|
714
719
|
shortcutKeys: getShortcutKeys(),
|
|
715
720
|
addonsShortcutLabels: getAddonsShortcutLabels(),
|
|
716
721
|
setShortcut,
|
|
@@ -732,12 +737,12 @@ function init_whats_new_module() {
|
|
|
732
737
|
document.head.appendChild(style);
|
|
733
738
|
}
|
|
734
739
|
whats_new_module_default = {
|
|
735
|
-
"centered": "fb-wRVF8a-centered",
|
|
736
|
-
"message": "fb-wRVF8a-message",
|
|
737
740
|
"loaderWrapper": "fb-wRVF8a-loaderWrapper",
|
|
738
741
|
"footer": "fb-wRVF8a-footer",
|
|
739
742
|
"iframe": "fb-wRVF8a-iframe",
|
|
740
|
-
"alertIcon": "fb-wRVF8a-alertIcon"
|
|
743
|
+
"alertIcon": "fb-wRVF8a-alertIcon",
|
|
744
|
+
"message": "fb-wRVF8a-message",
|
|
745
|
+
"centered": "fb-wRVF8a-centered"
|
|
741
746
|
};
|
|
742
747
|
})))();
|
|
743
748
|
}
|
|
@@ -746,10 +751,10 @@ function init_whats_new_module() {
|
|
|
746
751
|
var WhatsNewFooter, WhatsNewLoader, MaxWaitTimeMessaging, PureWhatsNewScreen, MAX_WAIT_TIME, WhatsNewScreen;
|
|
747
752
|
function init_whats_new() {
|
|
748
753
|
return (init_whats_new = __esmMin((() => {
|
|
749
|
-
|
|
754
|
+
init__forkbook_global_react();
|
|
750
755
|
init_components();
|
|
751
756
|
init_global();
|
|
752
|
-
|
|
757
|
+
init__forkbook_global_lucide_react();
|
|
753
758
|
init_manager_api();
|
|
754
759
|
init_theming();
|
|
755
760
|
init_useCopyButton();
|
|
@@ -760,35 +765,35 @@ function init_whats_new() {
|
|
|
760
765
|
children: "Copy Link",
|
|
761
766
|
content: copyContent
|
|
762
767
|
});
|
|
763
|
-
return /* @__PURE__ */
|
|
768
|
+
return /* @__PURE__ */ _forkbook_global_react_default.createElement("div", { className: whats_new_module_default.footer }, /* @__PURE__ */ _forkbook_global_react_default.createElement("div", { style: {
|
|
764
769
|
display: "flex",
|
|
765
770
|
alignItems: "center",
|
|
766
771
|
gap: 10
|
|
767
|
-
} }, /* @__PURE__ */
|
|
772
|
+
} }, /* @__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, {
|
|
768
773
|
size: "small",
|
|
769
774
|
variant: "ghost",
|
|
770
775
|
...copyButtonProps
|
|
771
|
-
}, copyText)), isNotificationsEnabled ? /* @__PURE__ */
|
|
776
|
+
}, copyText)), isNotificationsEnabled ? /* @__PURE__ */ _forkbook_global_react_default.createElement(Button, {
|
|
772
777
|
ariaLabel: false,
|
|
773
778
|
size: "small",
|
|
774
779
|
variant: "ghost",
|
|
775
780
|
onClick: onToggleNotifications
|
|
776
|
-
}, /* @__PURE__ */
|
|
781
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(EyeOffIcon, null), "Hide notifications") : /* @__PURE__ */ _forkbook_global_react_default.createElement(Button, {
|
|
777
782
|
ariaLabel: false,
|
|
778
783
|
size: "small",
|
|
779
784
|
variant: "ghost",
|
|
780
785
|
onClick: onToggleNotifications
|
|
781
|
-
}, /* @__PURE__ */
|
|
786
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(EyeIcon, null), "Show notifications"));
|
|
782
787
|
};
|
|
783
|
-
WhatsNewLoader = () => /* @__PURE__ */
|
|
784
|
-
MaxWaitTimeMessaging = () => /* @__PURE__ */
|
|
785
|
-
PureWhatsNewScreen = ({ didHitMaxWaitTime, isLoaded, onLoad, url, copyContent, onToggleNotifications, isNotificationsEnabled }) => /* @__PURE__ */
|
|
788
|
+
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..."));
|
|
789
|
+
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."));
|
|
790
|
+
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", {
|
|
786
791
|
className: whats_new_module_default.iframe,
|
|
787
792
|
"data-loaded": isLoaded || void 0,
|
|
788
793
|
onLoad,
|
|
789
794
|
src: url,
|
|
790
795
|
title: `What's new?`
|
|
791
|
-
}), /* @__PURE__ */
|
|
796
|
+
}), /* @__PURE__ */ _forkbook_global_react_default.createElement(WhatsNewFooter, {
|
|
792
797
|
isNotificationsEnabled,
|
|
793
798
|
onToggleNotifications,
|
|
794
799
|
copyContent
|
|
@@ -805,7 +810,7 @@ function init_whats_new() {
|
|
|
805
810
|
}, [isLoaded]);
|
|
806
811
|
if (whatsNewData?.status !== "SUCCESS") return null;
|
|
807
812
|
const isNotificationsEnabled = !whatsNewData.disableWhatsNewNotifications;
|
|
808
|
-
return /* @__PURE__ */
|
|
813
|
+
return /* @__PURE__ */ _forkbook_global_react_default.createElement(PureWhatsNewScreen, {
|
|
809
814
|
didHitMaxWaitTime,
|
|
810
815
|
isLoaded,
|
|
811
816
|
onLoad: () => {
|
|
@@ -829,10 +834,10 @@ function init_whats_new() {
|
|
|
829
834
|
var WhatsNewPage;
|
|
830
835
|
function init_whats_new_page() {
|
|
831
836
|
return (init_whats_new_page = __esmMin((() => {
|
|
832
|
-
|
|
837
|
+
init__forkbook_global_react();
|
|
833
838
|
init_whats_new();
|
|
834
839
|
WhatsNewPage = () => {
|
|
835
|
-
return /* @__PURE__ */
|
|
840
|
+
return /* @__PURE__ */ _forkbook_global_react_default.createElement(WhatsNewScreen, null);
|
|
836
841
|
};
|
|
837
842
|
})))();
|
|
838
843
|
}
|
|
@@ -849,8 +854,8 @@ function init_index_module() {
|
|
|
849
854
|
document.head.appendChild(style);
|
|
850
855
|
}
|
|
851
856
|
index_module_default = {
|
|
852
|
-
"
|
|
853
|
-
"
|
|
857
|
+
"sidebarToggle": "fb-eGKmTG-sidebarToggle",
|
|
858
|
+
"content": "fb-eGKmTG-content"
|
|
854
859
|
};
|
|
855
860
|
})))();
|
|
856
861
|
}
|
|
@@ -859,12 +864,12 @@ function init_index_module() {
|
|
|
859
864
|
var document$2, RouteWrapper, Pages, SettingsPages, settingsPageAddon;
|
|
860
865
|
function init_settings() {
|
|
861
866
|
return (init_settings = __esmMin((() => {
|
|
862
|
-
|
|
867
|
+
init__forkbook_global_react();
|
|
863
868
|
init_components();
|
|
864
869
|
init_router();
|
|
865
870
|
init_types();
|
|
866
871
|
init_global();
|
|
867
|
-
|
|
872
|
+
init__forkbook_global_lucide_react();
|
|
868
873
|
init_manager_api();
|
|
869
874
|
init_menu();
|
|
870
875
|
init_keybinding();
|
|
@@ -874,14 +879,14 @@ function init_settings() {
|
|
|
874
879
|
init_index_module();
|
|
875
880
|
({document: document$2} = global);
|
|
876
881
|
RouteWrapper = ({ children, path }) => {
|
|
877
|
-
return /* @__PURE__ */
|
|
882
|
+
return /* @__PURE__ */ _forkbook_global_react_default.createElement(ScrollArea, {
|
|
878
883
|
className: index_module_default.content,
|
|
879
884
|
vertical: true,
|
|
880
885
|
horizontal: false
|
|
881
|
-
}, /* @__PURE__ */
|
|
886
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(Route, { path }, children));
|
|
882
887
|
};
|
|
883
888
|
Pages = ({ changeTab, onClose, enableShortcuts = true, enableWhatsNew }) => {
|
|
884
|
-
|
|
889
|
+
_forkbook_global_react_default.useEffect(() => {
|
|
885
890
|
const handleEscape = (event) => {
|
|
886
891
|
if (!enableShortcuts || event.repeat) return;
|
|
887
892
|
if (matchesModifiers(false, event) && matchesKeyCode("Escape", event)) {
|
|
@@ -898,25 +903,25 @@ function init_settings() {
|
|
|
898
903
|
const tabsToInclude = [{
|
|
899
904
|
id: "about",
|
|
900
905
|
title: "About",
|
|
901
|
-
children: /* @__PURE__ */
|
|
906
|
+
children: /* @__PURE__ */ _forkbook_global_react_default.createElement(RouteWrapper, { path: "about" }, /* @__PURE__ */ _forkbook_global_react_default.createElement(AboutPage, { key: "about" }))
|
|
902
907
|
}];
|
|
903
908
|
tabsToInclude.push({
|
|
904
909
|
id: "shortcuts",
|
|
905
910
|
title: "Keyboard shortcuts",
|
|
906
|
-
children: /* @__PURE__ */
|
|
911
|
+
children: /* @__PURE__ */ _forkbook_global_react_default.createElement(RouteWrapper, { path: "shortcuts" }, /* @__PURE__ */ _forkbook_global_react_default.createElement(ShortcutsPage, { key: "shortcuts" }))
|
|
907
912
|
});
|
|
908
913
|
if (enableWhatsNew) tabsToInclude.push({
|
|
909
914
|
id: "whats-new",
|
|
910
915
|
title: "What's new?",
|
|
911
|
-
children: /* @__PURE__ */
|
|
916
|
+
children: /* @__PURE__ */ _forkbook_global_react_default.createElement(RouteWrapper, { path: "whats-new" }, /* @__PURE__ */ _forkbook_global_react_default.createElement(WhatsNewPage, { key: "whats-new" }))
|
|
912
917
|
});
|
|
913
918
|
return tabsToInclude;
|
|
914
919
|
}, [enableWhatsNew]);
|
|
915
|
-
return /* @__PURE__ */
|
|
920
|
+
return /* @__PURE__ */ _forkbook_global_react_default.createElement(Location, null, ({ path }) => {
|
|
916
921
|
const selected = tabs.find((tab) => path.includes(`settings/${tab.id}`))?.id;
|
|
917
|
-
return /* @__PURE__ */
|
|
922
|
+
return /* @__PURE__ */ _forkbook_global_react_default.createElement(TabsView, {
|
|
918
923
|
tabs,
|
|
919
|
-
tools: /* @__PURE__ */
|
|
924
|
+
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, {
|
|
920
925
|
padding: "small",
|
|
921
926
|
variant: "ghost",
|
|
922
927
|
onClick: (e) => {
|
|
@@ -924,7 +929,7 @@ function init_settings() {
|
|
|
924
929
|
return onClose();
|
|
925
930
|
},
|
|
926
931
|
ariaLabel: "Close settings page"
|
|
927
|
-
}, /* @__PURE__ */
|
|
932
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(XIcon, null))),
|
|
928
933
|
selected,
|
|
929
934
|
onSelectionChange: changeTab
|
|
930
935
|
});
|
|
@@ -934,7 +939,7 @@ function init_settings() {
|
|
|
934
939
|
const api = useStorybookApi();
|
|
935
940
|
const state = useStorybookState();
|
|
936
941
|
const changeTab = (tab) => api.changeSettingsTab(tab);
|
|
937
|
-
return /* @__PURE__ */
|
|
942
|
+
return /* @__PURE__ */ _forkbook_global_react_default.createElement(Pages, {
|
|
938
943
|
enableWhatsNew: state.whatsNewData?.status === "SUCCESS",
|
|
939
944
|
enableShortcuts: state.ui.enableShortcuts,
|
|
940
945
|
changeTab,
|
|
@@ -946,10 +951,10 @@ function init_settings() {
|
|
|
946
951
|
url: "/settings/",
|
|
947
952
|
title: "Settings",
|
|
948
953
|
type: types.experimental_PAGE,
|
|
949
|
-
render: () => /* @__PURE__ */
|
|
954
|
+
render: () => /* @__PURE__ */ _forkbook_global_react_default.createElement(Route, {
|
|
950
955
|
path: "/settings/",
|
|
951
956
|
startsWith: true
|
|
952
|
-
}, /* @__PURE__ */
|
|
957
|
+
}, /* @__PURE__ */ _forkbook_global_react_default.createElement(SettingsPages, null))
|
|
953
958
|
};
|
|
954
959
|
})))();
|
|
955
960
|
}
|
|
@@ -958,11 +963,11 @@ function init_settings() {
|
|
|
958
963
|
var WS_DISCONNECTED_NOTIFICATION_ID, channel, ReactProvider, document$1, rootEl;
|
|
959
964
|
function init_runtime() {
|
|
960
965
|
return (init_runtime = __esmMin((() => {
|
|
961
|
-
|
|
966
|
+
init__forkbook_global_react();
|
|
962
967
|
init_channels();
|
|
963
968
|
init_core_events();
|
|
964
969
|
init_global();
|
|
965
|
-
|
|
970
|
+
init__forkbook_global_lucide_react();
|
|
966
971
|
init_manager_api();
|
|
967
972
|
init_theming();
|
|
968
973
|
init_ToolbarManager();
|
|
@@ -974,7 +979,7 @@ function init_runtime() {
|
|
|
974
979
|
addons.register(TOOLBAR_ID, () => addons.add(TOOLBAR_ID, {
|
|
975
980
|
title: TOOLBAR_ID,
|
|
976
981
|
type: types.TOOL,
|
|
977
|
-
render: () => /* @__PURE__ */
|
|
982
|
+
render: () => /* @__PURE__ */ _forkbook_global_react_default.createElement(ToolbarManager, null)
|
|
978
983
|
}));
|
|
979
984
|
addons.register("forkbook/root-page", (api) => {
|
|
980
985
|
const { mdxImportPath } = getRootPage();
|
|
@@ -989,9 +994,7 @@ function init_runtime() {
|
|
|
989
994
|
this.addons = addons;
|
|
990
995
|
this.channel = channel;
|
|
991
996
|
this.wsDisconnected = false;
|
|
992
|
-
|
|
993
|
-
getElements(type) {
|
|
994
|
-
return this.addons.getElements(type);
|
|
997
|
+
this.getElements = (type) => this.addons.getElements(type);
|
|
995
998
|
}
|
|
996
999
|
getConfig() {
|
|
997
1000
|
return this.addons.getConfig();
|
|
@@ -1006,7 +1009,7 @@ function init_runtime() {
|
|
|
1006
1009
|
headline: "Connection lost",
|
|
1007
1010
|
subHeadline: "Please restart your Forkbook server and reload the page"
|
|
1008
1011
|
},
|
|
1009
|
-
icon: /* @__PURE__ */
|
|
1012
|
+
icon: /* @__PURE__ */ _forkbook_global_react_default.createElement(CircleXIcon, { color: color.negative }),
|
|
1010
1013
|
link: void 0
|
|
1011
1014
|
});
|
|
1012
1015
|
});
|
|
@@ -1015,7 +1018,7 @@ function init_runtime() {
|
|
|
1015
1018
|
({document: document$1} = global);
|
|
1016
1019
|
rootEl = document$1.getElementById("root");
|
|
1017
1020
|
setTimeout(() => {
|
|
1018
|
-
|
|
1021
|
+
renderForkbookUI(rootEl, new ReactProvider());
|
|
1019
1022
|
}, 0);
|
|
1020
1023
|
})))();
|
|
1021
1024
|
}
|