@arbidocs/blocks 0.5.135 → 0.5.137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedCallDock-ZNS5BS2R.cjs → ConnectedCallDock-L27WYW4Y.cjs} +21 -21
- package/dist/{ConnectedCallDock-ZNS5BS2R.cjs.map → ConnectedCallDock-L27WYW4Y.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-ACNVSFH7.cjs → ConnectedCallRoom-ZXSS6CVG.cjs} +14 -14
- package/dist/{ConnectedCallRoom-ACNVSFH7.cjs.map → ConnectedCallRoom-ZXSS6CVG.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-W4KIGO54.cjs → ConnectedNativeDocxComparison-X2O5OIYZ.cjs} +16 -16
- package/dist/{ConnectedNativeDocxComparison-W4KIGO54.cjs.map → ConnectedNativeDocxComparison-X2O5OIYZ.cjs.map} +1 -1
- package/dist/{ConnectedPresentation-3JXN6SRT.cjs → ConnectedPresentation-XVCFF25X.cjs} +16 -16
- package/dist/{ConnectedPresentation-3JXN6SRT.cjs.map → ConnectedPresentation-XVCFF25X.cjs.map} +1 -1
- package/dist/{ConnectedProductionSetDialog-EOWZQ6J3.cjs → ConnectedProductionSetDialog-GM5D7IUG.cjs} +3 -3
- package/dist/{ConnectedProductionSetDialog-EOWZQ6J3.cjs.map → ConnectedProductionSetDialog-GM5D7IUG.cjs.map} +1 -1
- package/dist/{ConnectedSlidesTab-IECS2MJI.cjs → ConnectedSlidesTab-UG2NUFPS.cjs} +14 -14
- package/dist/{ConnectedSlidesTab-IECS2MJI.cjs.map → ConnectedSlidesTab-UG2NUFPS.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-764NSXPQ.cjs → ConnectedStreamedWordArtifact-BI6WFIAW.cjs} +16 -16
- package/dist/{ConnectedStreamedWordArtifact-764NSXPQ.cjs.map → ConnectedStreamedWordArtifact-BI6WFIAW.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-EM2AJUF3.cjs → DocumentReviewCard-SOWXEXMC.cjs} +15 -15
- package/dist/{DocumentReviewCard-EM2AJUF3.cjs.map → DocumentReviewCard-SOWXEXMC.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-IFF2JR2A.cjs → FilesViewerDialog-A5OAV2YP.cjs} +45 -45
- package/dist/{FilesViewerDialog-IFF2JR2A.cjs.map → FilesViewerDialog-A5OAV2YP.cjs.map} +1 -1
- package/dist/{WorkspaceTableView-HMQ6PXUC.cjs → WorkspaceTableView-B5FAVVVA.cjs} +8 -8
- package/dist/{WorkspaceTableView-HMQ6PXUC.cjs.map → WorkspaceTableView-B5FAVVVA.cjs.map} +1 -1
- package/dist/agents/index.cjs +297 -297
- package/dist/{ai-QEXZ4SYR.cjs → ai-XVDR2XYV.cjs} +25 -25
- package/dist/ai-XVDR2XYV.cjs.map +1 -0
- package/dist/calls/index.cjs +121 -121
- package/dist/chat/index.cjs +1 -1
- package/dist/{chunk-LG36LSVZ.cjs → chunk-2WHI2PAJ.cjs} +4 -4
- package/dist/{chunk-LG36LSVZ.cjs.map → chunk-2WHI2PAJ.cjs.map} +1 -1
- package/dist/{chunk-TOYKBRAU.cjs → chunk-6JI4AXAY.cjs} +12 -12
- package/dist/{chunk-TOYKBRAU.cjs.map → chunk-6JI4AXAY.cjs.map} +1 -1
- package/dist/{chunk-VCDD763Y.cjs → chunk-7HU2NQVO.cjs} +3 -3
- package/dist/{chunk-VCDD763Y.cjs.map → chunk-7HU2NQVO.cjs.map} +1 -1
- package/dist/{chunk-BN33PC5F.cjs → chunk-7QZ7F3YL.cjs} +76 -76
- package/dist/{chunk-BN33PC5F.cjs.map → chunk-7QZ7F3YL.cjs.map} +1 -1
- package/dist/{chunk-X46QYO4S.cjs → chunk-ALR6NCVR.cjs} +4 -4
- package/dist/{chunk-X46QYO4S.cjs.map → chunk-ALR6NCVR.cjs.map} +1 -1
- package/dist/{chunk-TXBXIUTX.cjs → chunk-CYA7MDHZ.cjs} +6 -6
- package/dist/{chunk-TXBXIUTX.cjs.map → chunk-CYA7MDHZ.cjs.map} +1 -1
- package/dist/{chunk-UWTCK5IN.cjs → chunk-DNWJUTK6.cjs} +6 -6
- package/dist/{chunk-UWTCK5IN.cjs.map → chunk-DNWJUTK6.cjs.map} +1 -1
- package/dist/{chunk-QFXOTJ6G.cjs → chunk-DT4ORVVI.cjs} +3 -3
- package/dist/{chunk-QFXOTJ6G.cjs.map → chunk-DT4ORVVI.cjs.map} +1 -1
- package/dist/{chunk-MEYQLQWS.cjs → chunk-EHFSR633.cjs} +13 -13
- package/dist/{chunk-MEYQLQWS.cjs.map → chunk-EHFSR633.cjs.map} +1 -1
- package/dist/{chunk-IFJBE7M5.cjs → chunk-EY23TOPI.cjs} +11 -11
- package/dist/{chunk-IFJBE7M5.cjs.map → chunk-EY23TOPI.cjs.map} +1 -1
- package/dist/{chunk-TENWM7BH.cjs → chunk-G7E5IJST.cjs} +5 -5
- package/dist/{chunk-TENWM7BH.cjs.map → chunk-G7E5IJST.cjs.map} +1 -1
- package/dist/{chunk-5GHGIDZP.cjs → chunk-GRRD7SEY.cjs} +15 -15
- package/dist/{chunk-5GHGIDZP.cjs.map → chunk-GRRD7SEY.cjs.map} +1 -1
- package/dist/{chunk-ZN2JXV65.cjs → chunk-HQ7M75LU.cjs} +64 -64
- package/dist/{chunk-ZN2JXV65.cjs.map → chunk-HQ7M75LU.cjs.map} +1 -1
- package/dist/{chunk-MMKMQZ2B.cjs → chunk-HVVD4YSE.cjs} +50 -50
- package/dist/{chunk-MMKMQZ2B.cjs.map → chunk-HVVD4YSE.cjs.map} +1 -1
- package/dist/{chunk-RSQGDXAF.cjs → chunk-K3WSXEEI.cjs} +3 -3
- package/dist/{chunk-RSQGDXAF.cjs.map → chunk-K3WSXEEI.cjs.map} +1 -1
- package/dist/{chunk-LLD4PNBW.cjs → chunk-K424CT35.cjs} +4 -4
- package/dist/{chunk-LLD4PNBW.cjs.map → chunk-K424CT35.cjs.map} +1 -1
- package/dist/{chunk-OOW7H2YD.cjs → chunk-KZWPBL2P.cjs} +6 -6
- package/dist/{chunk-OOW7H2YD.cjs.map → chunk-KZWPBL2P.cjs.map} +1 -1
- package/dist/{chunk-LFMOQALU.cjs → chunk-LWWPIYFD.cjs} +48 -48
- package/dist/{chunk-LFMOQALU.cjs.map → chunk-LWWPIYFD.cjs.map} +1 -1
- package/dist/{chunk-VPKKPHJY.cjs → chunk-M5EQGQRC.cjs} +4 -4
- package/dist/{chunk-VPKKPHJY.cjs.map → chunk-M5EQGQRC.cjs.map} +1 -1
- package/dist/{chunk-ECSOXKJQ.cjs → chunk-N5UI363Q.cjs} +3 -3
- package/dist/{chunk-ECSOXKJQ.cjs.map → chunk-N5UI363Q.cjs.map} +1 -1
- package/dist/{chunk-FYFL3CET.cjs → chunk-NB6XGPEB.cjs} +4 -4
- package/dist/{chunk-FYFL3CET.cjs.map → chunk-NB6XGPEB.cjs.map} +1 -1
- package/dist/{chunk-C5APAFUY.cjs → chunk-PA7YEXL3.cjs} +4 -4
- package/dist/{chunk-C5APAFUY.cjs.map → chunk-PA7YEXL3.cjs.map} +1 -1
- package/dist/{chunk-R5NTEW4L.cjs → chunk-PTLILY4Q.cjs} +27 -27
- package/dist/{chunk-R5NTEW4L.cjs.map → chunk-PTLILY4Q.cjs.map} +1 -1
- package/dist/{chunk-EYXU32D7.cjs → chunk-Q77OKXYM.cjs} +6 -6
- package/dist/{chunk-EYXU32D7.cjs.map → chunk-Q77OKXYM.cjs.map} +1 -1
- package/dist/{chunk-U6XMZG6G.cjs → chunk-RDBUQCAS.cjs} +3 -3
- package/dist/{chunk-U6XMZG6G.cjs.map → chunk-RDBUQCAS.cjs.map} +1 -1
- package/dist/{chunk-FABKMTAI.cjs → chunk-REP5GA2Z.cjs} +10 -10
- package/dist/{chunk-FABKMTAI.cjs.map → chunk-REP5GA2Z.cjs.map} +1 -1
- package/dist/{chunk-ZTHYJP4G.cjs → chunk-RFPZKHZ6.cjs} +7 -7
- package/dist/{chunk-ZTHYJP4G.cjs.map → chunk-RFPZKHZ6.cjs.map} +1 -1
- package/dist/{chunk-IEAZX7L6.cjs → chunk-RIONTVEH.cjs} +7 -7
- package/dist/{chunk-IEAZX7L6.cjs.map → chunk-RIONTVEH.cjs.map} +1 -1
- package/dist/{chunk-6CGMSJLB.cjs → chunk-RJE6KXJQ.cjs} +3 -3
- package/dist/{chunk-6CGMSJLB.cjs.map → chunk-RJE6KXJQ.cjs.map} +1 -1
- package/dist/{chunk-VIUEPJ3Y.cjs → chunk-RUKEMF6Q.cjs} +35 -35
- package/dist/{chunk-VIUEPJ3Y.cjs.map → chunk-RUKEMF6Q.cjs.map} +1 -1
- package/dist/{chunk-JJZOL5MG.cjs → chunk-RYVZDFVO.cjs} +3 -3
- package/dist/{chunk-JJZOL5MG.cjs.map → chunk-RYVZDFVO.cjs.map} +1 -1
- package/dist/{chunk-MMMGOZYH.cjs → chunk-SUPCMKLP.cjs} +4 -4
- package/dist/{chunk-MMMGOZYH.cjs.map → chunk-SUPCMKLP.cjs.map} +1 -1
- package/dist/{chunk-VF26CUE3.cjs → chunk-TCVDV5RF.cjs} +3 -3
- package/dist/{chunk-VF26CUE3.cjs.map → chunk-TCVDV5RF.cjs.map} +1 -1
- package/dist/{chunk-SK6LFIU2.cjs → chunk-TIBTTITZ.cjs} +3 -3
- package/dist/{chunk-SK6LFIU2.cjs.map → chunk-TIBTTITZ.cjs.map} +1 -1
- package/dist/{chunk-JYZ6UE5X.cjs → chunk-ZHGIAVAC.cjs} +28 -28
- package/dist/{chunk-JYZ6UE5X.cjs.map → chunk-ZHGIAVAC.cjs.map} +1 -1
- package/dist/connect/docx.cjs +19 -19
- package/dist/connect/index.cjs +991 -991
- package/dist/connect/viewer.cjs +33 -33
- package/dist/dashboards/index.cjs +1 -1
- package/dist/embed/index.cjs +39 -39
- package/dist/files/index.cjs +224 -224
- package/dist/index.cjs +1590 -1590
- package/dist/settings/index.cjs +146 -146
- package/dist/shell/index.cjs +87 -87
- package/dist/studio/index.cjs +28 -28
- package/dist/vite/index.cjs +11 -1
- package/dist/vite/index.cjs.map +1 -1
- package/dist/vite/index.d.ts +13 -0
- package/dist/vite/index.js +11 -1
- package/dist/vite/index.js.map +1 -1
- package/dist/workflow-canvas/index.cjs +53 -53
- package/node_modules/@arbidocs/coedit/dist/commands.cjs +18 -1
- package/node_modules/@arbidocs/coedit/dist/commands.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/commands.d.cts +2 -2
- package/node_modules/@arbidocs/coedit/dist/commands.d.ts +2 -2
- package/node_modules/@arbidocs/coedit/dist/commands.js +18 -1
- package/node_modules/@arbidocs/coedit/dist/commands.js.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/{port-BbN5OZHx.d.cts → port-DXBNxZYw.d.cts} +2 -0
- package/node_modules/@arbidocs/coedit/dist/{port-BbN5OZHx.d.ts → port-DXBNxZYw.d.ts} +2 -0
- package/node_modules/@arbidocs/coedit/dist/server.cjs +16 -0
- package/node_modules/@arbidocs/coedit/dist/server.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.d.cts +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.d.ts +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.js +16 -0
- package/node_modules/@arbidocs/coedit/dist/server.js.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +2 -2
- package/node_modules/@docx-editor.dev/core/README.md +25 -1
- package/node_modules/@docx-editor.dev/core/THIRD_PARTY_NOTICES.md +1 -0
- package/node_modules/@docx-editor.dev/core/dist/automation.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/automation.d.ts +21 -63
- package/node_modules/@docx-editor.dev/core/dist/automation.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/binding.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/binding.d.ts +49 -40
- package/node_modules/@docx-editor.dev/core/dist/binding.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/{chrome-print-CAs51cpq.d.ts → chrome-print-CrPI9ZQc.d.ts} +714 -290
- package/node_modules/@docx-editor.dev/core/dist/chunk-23MKR33J.js +4 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-2CWQY27B.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-2DEY5NUC.cjs +32 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-2DR4TH6B.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-2F2UEAE2.js +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-2GPGAFOJ.cjs +5 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-ALD626VU.cjs +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-AU33YWEJ.js +236 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-AXU63LYW.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-CM5VZRBV.js +32 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-D7FAFFTN.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-DYUVJNDD.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-ESYUKD5D.js +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-F7TGQMVR.js +5 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-FLW7KIQX.js +30 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-JG4A6W6I.js +7 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-JNGLSBPH.js +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-KE6ZWRIY.cjs +236 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-L3YXJDPX.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-LI42N7OW.cjs +4 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-PLKDS4JT.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-PXMTQ73F.cjs +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-R4R3AAE4.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-RFUNFTGV.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-SVM6PGMS.js +3 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-SZURLHR3.cjs +3 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-UYCGCVZ2.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-WN7ICTA5.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-X34QRAUU.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-XNBYG4XJ.cjs +30 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-ZDFJW5XS.cjs +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-ZWO4JHNN.cjs +7 -0
- package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.d.ts +29 -5
- package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/collaboration.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/collaboration.d.ts +5 -6
- package/node_modules/@docx-editor.dev/core/dist/collaboration.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/contracts/document.d.ts +3 -3
- package/node_modules/@docx-editor.dev/core/dist/contracts/editor.d.ts +13 -10
- package/node_modules/@docx-editor.dev/core/dist/contracts/interaction.d.ts +2 -2
- package/node_modules/@docx-editor.dev/core/dist/contracts/modules.d.ts +15 -13
- package/node_modules/@docx-editor.dev/core/dist/contracts/types.d.ts +135 -2
- package/node_modules/@docx-editor.dev/core/dist/{custom-node-writes-Bn6uciLb.d.ts → custom-node-writes-AqY5KpVx.d.ts} +7 -2
- package/node_modules/@docx-editor.dev/core/dist/diagnostic-context-CuzhOX0g.d.ts +98 -0
- package/node_modules/@docx-editor.dev/core/dist/{diagnostic-hints-BeVjfNOv.d.ts → diagnostic-hints-BtCaCqQC.d.ts} +14 -7
- package/node_modules/@docx-editor.dev/core/dist/{document-protection-CUb55pl_.d.ts → document-protection-BvbpSXbQ.d.ts} +1 -1
- package/node_modules/@docx-editor.dev/core/dist/drawing-graphic-kind-CXYGYbB3.d.ts +324 -0
- package/node_modules/@docx-editor.dev/core/dist/drawing-preview-package-B9lSLRg4.d.ts +115 -0
- package/node_modules/@docx-editor.dev/core/dist/{editor-CZQZmTIU.d.ts → editor-B7OOAAie.d.ts} +536 -283
- package/node_modules/@docx-editor.dev/core/dist/editor-fonts-D_-vjuJi.d.ts +53 -0
- package/node_modules/@docx-editor.dev/core/dist/editor-scope-CA6egMaK.d.ts +141 -0
- package/node_modules/@docx-editor.dev/core/dist/editor.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/editor.css +6 -4
- package/node_modules/@docx-editor.dev/core/dist/editor.d.ts +834 -34
- package/node_modules/@docx-editor.dev/core/dist/editor.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/export.cjs +2 -2
- package/node_modules/@docx-editor.dev/core/dist/export.d.ts +52 -21
- package/node_modules/@docx-editor.dev/core/dist/export.js +2 -2
- package/node_modules/@docx-editor.dev/core/dist/{failure-NS2lsya4.d.ts → failure-6KGFrDO9.d.ts} +1 -1
- package/node_modules/@docx-editor.dev/core/dist/{font-resolver-lSBLirLR.d.ts → font-resolver-Bm9XqTNO.d.ts} +15 -1
- package/node_modules/@docx-editor.dev/core/dist/font-shaping-policy-BvpkrfxM.d.ts +7 -0
- package/node_modules/@docx-editor.dev/core/dist/index.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/index.d.ts +44 -27
- package/node_modules/@docx-editor.dev/core/dist/index.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/{layout-shaping-BD-dF_rn.d.ts → layout-shaping-Ci_BTnSU.d.ts} +3 -2
- package/node_modules/@docx-editor.dev/core/dist/layout.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/layout.d.ts +276 -126
- package/node_modules/@docx-editor.dev/core/dist/layout.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/metafile-drawing-DtMFyMKq.d.ts +107 -0
- package/node_modules/@docx-editor.dev/core/dist/{note-properties-qQUjO1GQ.d.ts → note-properties-DCIJUKIy.d.ts} +1 -1
- package/node_modules/@docx-editor.dev/core/dist/output.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/output.d.ts +24 -10
- package/node_modules/@docx-editor.dev/core/dist/output.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/{protocol-DYzzz2ej.d.ts → protocol-Cp_QzVxS.d.ts} +167 -5
- package/node_modules/@docx-editor.dev/core/dist/{review-paragraph-order-CN_0l2Cb.d.ts → review-paragraph-order-BJQ43_r0.d.ts} +1 -1
- package/node_modules/@docx-editor.dev/core/dist/revision-projection-OVusTS77.d.ts +258 -0
- package/node_modules/@docx-editor.dev/core/dist/{semantic-cell-selection-eYag3P47.d.ts → semantic-cell-selection-CoI5hHBm.d.ts} +2 -2
- package/node_modules/@docx-editor.dev/core/dist/{semantic-interaction-kR_QB845.d.ts → semantic-interaction-BbA4dgEo.d.ts} +1 -1
- package/node_modules/@docx-editor.dev/core/dist/{semantic-paint-ZayFF3tD.d.ts → semantic-paint-B5JcIv9c.d.ts} +19 -9
- package/node_modules/@docx-editor.dev/core/dist/{semantic-record-queries-Bsgth6lv.d.ts → semantic-record-queries-DnO8J5_j.d.ts} +1 -1
- package/node_modules/@docx-editor.dev/core/dist/{semantic-records-DQmumPgL.d.ts → semantic-records-DoK0lNjS.d.ts} +697 -608
- package/node_modules/@docx-editor.dev/core/dist/store.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/store.d.ts +527 -123
- package/node_modules/@docx-editor.dev/core/dist/store.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/{types-barrel-DuC5QBNC.d.ts → tree-op-types-Df4oY2u4.d.ts} +1723 -765
- package/node_modules/@docx-editor.dev/core/dist/{tree-package-store-CovjNARF.d.ts → tree-package-store-DXhX1PE-.d.ts} +617 -428
- package/node_modules/@docx-editor.dev/core/dist/{tree-session-contract-CZVAGl51.d.ts → tree-session-contract-CF2625mv.d.ts} +28 -13
- package/node_modules/@docx-editor.dev/core/dist/unsupported-elements-CUojsaCr.d.ts +23 -0
- package/node_modules/@docx-editor.dev/core/docs/accept-reject-without-scrolling.md +95 -0
- package/node_modules/@docx-editor.dev/core/docs/comment-on-found-text.md +72 -0
- package/node_modules/@docx-editor.dev/core/docs/custom-review-cards.md +178 -0
- package/node_modules/@docx-editor.dev/core/docs/highlight-ranges.md +48 -0
- package/node_modules/@docx-editor.dev/core/docs/index.md +36 -0
- package/node_modules/@docx-editor.dev/core/docs/propose-rewrite.md +247 -0
- package/node_modules/@docx-editor.dev/core/docs/tracked-replacement.md +68 -0
- package/node_modules/@docx-editor.dev/core/licenses/ECMA-376.md +29 -0
- package/node_modules/@docx-editor.dev/core/package.json +3 -2
- package/node_modules/@docx-editor.dev/react/README.md +71 -0
- package/node_modules/@docx-editor.dev/react/dist/index.d.mts +936 -86
- package/node_modules/@docx-editor.dev/react/dist/index.d.ts +936 -86
- package/node_modules/@docx-editor.dev/react/dist/index.js +3 -3
- package/node_modules/@docx-editor.dev/react/dist/index.mjs +3 -3
- package/node_modules/@docx-editor.dev/react/docs/accept-reject-without-scrolling.md +72 -0
- package/node_modules/@docx-editor.dev/react/docs/comment-on-found-text.md +47 -0
- package/node_modules/@docx-editor.dev/react/docs/custom-review-cards.md +105 -0
- package/node_modules/@docx-editor.dev/react/docs/highlight-ranges.md +25 -0
- package/node_modules/@docx-editor.dev/react/docs/index.md +36 -0
- package/node_modules/@docx-editor.dev/react/docs/propose-rewrite.md +247 -0
- package/node_modules/@docx-editor.dev/react/docs/tracked-replacement.md +45 -0
- package/node_modules/@docx-editor.dev/react/package.json +4 -3
- package/package.json +8 -8
- package/dist/ai-QEXZ4SYR.cjs.map +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-236O4YQW.js +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-6JIJOZDW.js +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-6JPL6ZAS.cjs +0 -5
- package/node_modules/@docx-editor.dev/core/dist/chunk-6ZQP4HQ7.js +0 -3
- package/node_modules/@docx-editor.dev/core/dist/chunk-7WQ7AAHW.cjs +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-BCXH4BXB.js +0 -5
- package/node_modules/@docx-editor.dev/core/dist/chunk-BTQKU64Q.cjs +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-BY2ACZZ6.cjs +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-CAJEXXVG.cjs +0 -4
- package/node_modules/@docx-editor.dev/core/dist/chunk-CPWLFPWC.js +0 -30
- package/node_modules/@docx-editor.dev/core/dist/chunk-D7ZMDMPX.cjs +0 -3
- package/node_modules/@docx-editor.dev/core/dist/chunk-DOHF6FA7.cjs +0 -30
- package/node_modules/@docx-editor.dev/core/dist/chunk-DVX32P2P.js +0 -27
- package/node_modules/@docx-editor.dev/core/dist/chunk-E4LOMDNL.js +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-EKLM7NWB.cjs +0 -7
- package/node_modules/@docx-editor.dev/core/dist/chunk-G3K63G7P.cjs +0 -27
- package/node_modules/@docx-editor.dev/core/dist/chunk-G4HOFIKJ.js +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-JLVBDYVQ.cjs +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-LQX36Z5P.js +0 -7
- package/node_modules/@docx-editor.dev/core/dist/chunk-LSZ6KPKK.js +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-MM5QBMTE.cjs +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-OMCG63ZF.js +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-OSFOJTHU.cjs +0 -18
- package/node_modules/@docx-editor.dev/core/dist/chunk-RCLZXP3B.js +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-T6K2QYNZ.cjs +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-TRGAVV2Y.js +0 -4
- package/node_modules/@docx-editor.dev/core/dist/chunk-U4JZVSOE.js +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-UHHYFIDT.cjs +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-W35WTWAO.cjs +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-YQ5G6LC7.js +0 -18
- package/node_modules/@docx-editor.dev/core/dist/diagnostic-context-B8M79cfK.d.ts +0 -30
- package/node_modules/@docx-editor.dev/core/dist/editor-scope-7o9xweiJ.d.ts +0 -84
- package/node_modules/@docx-editor.dev/core/dist/headless-document-view-pp3q7wIh.d.ts +0 -143
- package/node_modules/@docx-editor.dev/core/dist/image-resources-tXLQShoC.d.ts +0 -211
- package/node_modules/@docx-editor.dev/core/dist/omml-equation-BUbU0utM.d.ts +0 -85
package/dist/shell/index.cjs
CHANGED
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
|
|
4
4
|
var chunkLIDXIX36_cjs = require('../chunk-LIDXIX36.cjs');
|
|
5
5
|
require('../chunk-34HQO4ZQ.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkCT3SLXB7_cjs = require('../chunk-CT3SLXB7.cjs');
|
|
7
|
+
var chunkEY23TOPI_cjs = require('../chunk-EY23TOPI.cjs');
|
|
7
8
|
var chunkK4763GD5_cjs = require('../chunk-K4763GD5.cjs');
|
|
8
9
|
var chunk2RLA6QO2_cjs = require('../chunk-2RLA6QO2.cjs');
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
require('../chunk-AHDJXIUB.cjs');
|
|
12
|
-
var chunk6UZC4XVV_cjs = require('../chunk-6UZC4XVV.cjs');
|
|
13
|
-
require('../chunk-OUGRCQM7.cjs');
|
|
14
|
-
var chunkKKYNTWDU_cjs = require('../chunk-KKYNTWDU.cjs');
|
|
15
|
-
require('../chunk-3YZKDCWY.cjs');
|
|
16
|
-
var chunkSJSGSHIT_cjs = require('../chunk-SJSGSHIT.cjs');
|
|
17
|
-
var chunkCT3SLXB7_cjs = require('../chunk-CT3SLXB7.cjs');
|
|
10
|
+
var chunk7HU2NQVO_cjs = require('../chunk-7HU2NQVO.cjs');
|
|
11
|
+
var chunkN5UI363Q_cjs = require('../chunk-N5UI363Q.cjs');
|
|
18
12
|
var chunkDEXUL3T6_cjs = require('../chunk-DEXUL3T6.cjs');
|
|
19
13
|
var chunkAFQTQC7A_cjs = require('../chunk-AFQTQC7A.cjs');
|
|
20
14
|
var chunkXJEXFEWG_cjs = require('../chunk-XJEXFEWG.cjs');
|
|
21
15
|
var chunkYZSQ7F5K_cjs = require('../chunk-YZSQ7F5K.cjs');
|
|
22
16
|
var chunkKQF7POTG_cjs = require('../chunk-KQF7POTG.cjs');
|
|
23
17
|
var chunkFX3K6LNZ_cjs = require('../chunk-FX3K6LNZ.cjs');
|
|
18
|
+
require('../chunk-AHDJXIUB.cjs');
|
|
19
|
+
var chunk6UZC4XVV_cjs = require('../chunk-6UZC4XVV.cjs');
|
|
20
|
+
require('../chunk-OUGRCQM7.cjs');
|
|
21
|
+
var chunkKKYNTWDU_cjs = require('../chunk-KKYNTWDU.cjs');
|
|
22
|
+
require('../chunk-3YZKDCWY.cjs');
|
|
23
|
+
var chunkSJSGSHIT_cjs = require('../chunk-SJSGSHIT.cjs');
|
|
24
24
|
require('../chunk-PPCATBOY.cjs');
|
|
25
25
|
require('../chunk-LIKDQBNJ.cjs');
|
|
26
26
|
require('../chunk-YZBDHBKI.cjs');
|
|
@@ -81,85 +81,93 @@ Object.defineProperty(exports, "useInstallPrompt", {
|
|
|
81
81
|
enumerable: true,
|
|
82
82
|
get: function () { return chunkLIDXIX36_cjs.useInstallPrompt; }
|
|
83
83
|
});
|
|
84
|
+
Object.defineProperty(exports, "DEFAULT_DOCK_WIDTH", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () { return chunkCT3SLXB7_cjs.DEFAULT_DOCK_WIDTH; }
|
|
87
|
+
});
|
|
88
|
+
Object.defineProperty(exports, "Toaster", {
|
|
89
|
+
enumerable: true,
|
|
90
|
+
get: function () { return chunkCT3SLXB7_cjs.Toaster; }
|
|
91
|
+
});
|
|
84
92
|
Object.defineProperty(exports, "ActionCluster", {
|
|
85
93
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkEY23TOPI_cjs.ActionCluster; }
|
|
87
95
|
});
|
|
88
96
|
Object.defineProperty(exports, "AskField", {
|
|
89
97
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkEY23TOPI_cjs.AskField; }
|
|
91
99
|
});
|
|
92
100
|
Object.defineProperty(exports, "AskRow", {
|
|
93
101
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkEY23TOPI_cjs.AskRow; }
|
|
95
103
|
});
|
|
96
104
|
Object.defineProperty(exports, "AskTrigger", {
|
|
97
105
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkEY23TOPI_cjs.AskTrigger; }
|
|
99
107
|
});
|
|
100
108
|
Object.defineProperty(exports, "DEFAULT_ASK_FIELD_LABELS", {
|
|
101
109
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkEY23TOPI_cjs.DEFAULT_ASK_FIELD_LABELS; }
|
|
103
111
|
});
|
|
104
112
|
Object.defineProperty(exports, "DEFAULT_OFFLINE_PILL_LABELS", {
|
|
105
113
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkEY23TOPI_cjs.DEFAULT_OFFLINE_PILL_LABELS; }
|
|
107
115
|
});
|
|
108
116
|
Object.defineProperty(exports, "DEFAULT_REMOTE_CONTROL_PILL_LABELS", {
|
|
109
117
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkEY23TOPI_cjs.DEFAULT_REMOTE_CONTROL_PILL_LABELS; }
|
|
111
119
|
});
|
|
112
120
|
Object.defineProperty(exports, "DEFAULT_TIP_CARD_LABELS", {
|
|
113
121
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkEY23TOPI_cjs.DEFAULT_TIP_CARD_LABELS; }
|
|
115
123
|
});
|
|
116
124
|
Object.defineProperty(exports, "DockZone", {
|
|
117
125
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkEY23TOPI_cjs.DockZone; }
|
|
119
127
|
});
|
|
120
128
|
Object.defineProperty(exports, "OfflinePill", {
|
|
121
129
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkEY23TOPI_cjs.OfflinePill; }
|
|
123
131
|
});
|
|
124
132
|
Object.defineProperty(exports, "RemoteControlPill", {
|
|
125
133
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkEY23TOPI_cjs.RemoteControlPill; }
|
|
127
135
|
});
|
|
128
136
|
Object.defineProperty(exports, "ShellSidebar", {
|
|
129
137
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkEY23TOPI_cjs.ShellSidebar; }
|
|
131
139
|
});
|
|
132
140
|
Object.defineProperty(exports, "SidebarRowAction", {
|
|
133
141
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkEY23TOPI_cjs.SidebarRowAction; }
|
|
135
143
|
});
|
|
136
144
|
Object.defineProperty(exports, "StatusBadge", {
|
|
137
145
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkEY23TOPI_cjs.StatusBadge; }
|
|
139
147
|
});
|
|
140
148
|
Object.defineProperty(exports, "StatusRow", {
|
|
141
149
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkEY23TOPI_cjs.StatusRow; }
|
|
143
151
|
});
|
|
144
152
|
Object.defineProperty(exports, "TipCard", {
|
|
145
153
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunkEY23TOPI_cjs.TipCard; }
|
|
147
155
|
});
|
|
148
156
|
Object.defineProperty(exports, "resolveSidebarLayout", {
|
|
149
157
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunkEY23TOPI_cjs.resolveSidebarLayout; }
|
|
151
159
|
});
|
|
152
160
|
Object.defineProperty(exports, "useCloseOnEscape", {
|
|
153
161
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunkEY23TOPI_cjs.useCloseOnEscape; }
|
|
155
163
|
});
|
|
156
164
|
Object.defineProperty(exports, "useSidebarController", {
|
|
157
165
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunkEY23TOPI_cjs.useSidebarController; }
|
|
159
167
|
});
|
|
160
168
|
Object.defineProperty(exports, "useSidebarSettle", {
|
|
161
169
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunkEY23TOPI_cjs.useSidebarSettle; }
|
|
163
171
|
});
|
|
164
172
|
Object.defineProperty(exports, "PanelModeSwitcher", {
|
|
165
173
|
enumerable: true,
|
|
@@ -179,123 +187,87 @@ Object.defineProperty(exports, "usePanelHostSupport", {
|
|
|
179
187
|
});
|
|
180
188
|
Object.defineProperty(exports, "DEFAULT_MOBILE_BARS_LABELS", {
|
|
181
189
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunk7HU2NQVO_cjs.DEFAULT_MOBILE_BARS_LABELS; }
|
|
183
191
|
});
|
|
184
192
|
Object.defineProperty(exports, "DEFAULT_WORKSPACE_KIND_LABELS", {
|
|
185
193
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunk7HU2NQVO_cjs.DEFAULT_WORKSPACE_KIND_LABELS; }
|
|
187
195
|
});
|
|
188
196
|
Object.defineProperty(exports, "DEFAULT_WORKSPACE_SWITCHER_LABELS", {
|
|
189
197
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunk7HU2NQVO_cjs.DEFAULT_WORKSPACE_SWITCHER_LABELS; }
|
|
191
199
|
});
|
|
192
200
|
Object.defineProperty(exports, "MobileAppBar", {
|
|
193
201
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunk7HU2NQVO_cjs.MobileAppBar; }
|
|
195
203
|
});
|
|
196
204
|
Object.defineProperty(exports, "MobileTabBar", {
|
|
197
205
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunk7HU2NQVO_cjs.MobileTabBar; }
|
|
199
207
|
});
|
|
200
208
|
Object.defineProperty(exports, "WorkspaceIdentity", {
|
|
201
209
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunk7HU2NQVO_cjs.WorkspaceIdentity; }
|
|
203
211
|
});
|
|
204
212
|
Object.defineProperty(exports, "WorkspaceSwitcher", {
|
|
205
213
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunk7HU2NQVO_cjs.WorkspaceSwitcher; }
|
|
207
215
|
});
|
|
208
216
|
Object.defineProperty(exports, "hasUnsavedInput", {
|
|
209
217
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunk7HU2NQVO_cjs.hasUnsavedInput; }
|
|
211
219
|
});
|
|
212
220
|
Object.defineProperty(exports, "installReloadPolicy", {
|
|
213
221
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunk7HU2NQVO_cjs.installReloadPolicy; }
|
|
215
223
|
});
|
|
216
224
|
Object.defineProperty(exports, "markBuildStale", {
|
|
217
225
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunk7HU2NQVO_cjs.markBuildStale; }
|
|
219
227
|
});
|
|
220
228
|
Object.defineProperty(exports, "prefetchChunk", {
|
|
221
229
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunk7HU2NQVO_cjs.prefetchChunk; }
|
|
223
231
|
});
|
|
224
232
|
Object.defineProperty(exports, "requestReload", {
|
|
225
233
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunk7HU2NQVO_cjs.requestReload; }
|
|
227
235
|
});
|
|
228
236
|
Object.defineProperty(exports, "workspaceKindColor", {
|
|
229
237
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunk7HU2NQVO_cjs.workspaceKindColor; }
|
|
231
239
|
});
|
|
232
240
|
Object.defineProperty(exports, "workspaceKindMeta", {
|
|
233
241
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
242
|
+
get: function () { return chunk7HU2NQVO_cjs.workspaceKindMeta; }
|
|
235
243
|
});
|
|
236
244
|
Object.defineProperty(exports, "DEFAULT_SIDEBAR_LABELS", {
|
|
237
245
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunkN5UI363Q_cjs.DEFAULT_SIDEBAR_LABELS; }
|
|
239
247
|
});
|
|
240
248
|
Object.defineProperty(exports, "SHELL_START_INSET_VAR", {
|
|
241
249
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
250
|
+
get: function () { return chunkN5UI363Q_cjs.SHELL_START_INSET_VAR; }
|
|
243
251
|
});
|
|
244
252
|
Object.defineProperty(exports, "Sidebar", {
|
|
245
253
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
254
|
+
get: function () { return chunkN5UI363Q_cjs.Sidebar; }
|
|
247
255
|
});
|
|
248
256
|
Object.defineProperty(exports, "SidebarBadgeRow", {
|
|
249
257
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
258
|
+
get: function () { return chunkN5UI363Q_cjs.SidebarBadgeRow; }
|
|
251
259
|
});
|
|
252
260
|
Object.defineProperty(exports, "SidebarRowHoverContext", {
|
|
253
261
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
262
|
+
get: function () { return chunkN5UI363Q_cjs.SidebarRowHoverContext; }
|
|
255
263
|
});
|
|
256
264
|
Object.defineProperty(exports, "useShellStartInset", {
|
|
257
265
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
266
|
+
get: function () { return chunkN5UI363Q_cjs.useShellStartInset; }
|
|
259
267
|
});
|
|
260
268
|
Object.defineProperty(exports, "useSidebarContext", {
|
|
261
269
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
263
|
-
});
|
|
264
|
-
Object.defineProperty(exports, "DEFAULT_FILTER_FIELDS", {
|
|
265
|
-
enumerable: true,
|
|
266
|
-
get: function () { return chunk6UZC4XVV_cjs.DEFAULT_FILTER_FIELDS; }
|
|
267
|
-
});
|
|
268
|
-
Object.defineProperty(exports, "DEFAULT_FILTER_INPUT_LABELS", {
|
|
269
|
-
enumerable: true,
|
|
270
|
-
get: function () { return chunk6UZC4XVV_cjs.DEFAULT_FILTER_INPUT_LABELS; }
|
|
271
|
-
});
|
|
272
|
-
Object.defineProperty(exports, "FilterInput", {
|
|
273
|
-
enumerable: true,
|
|
274
|
-
get: function () { return chunk6UZC4XVV_cjs.FilterInput; }
|
|
275
|
-
});
|
|
276
|
-
Object.defineProperty(exports, "getInstallInstructions", {
|
|
277
|
-
enumerable: true,
|
|
278
|
-
get: function () { return chunkKKYNTWDU_cjs.getInstallInstructions; }
|
|
279
|
-
});
|
|
280
|
-
Object.defineProperty(exports, "isIosDevice", {
|
|
281
|
-
enumerable: true,
|
|
282
|
-
get: function () { return chunkKKYNTWDU_cjs.isIosDevice; }
|
|
283
|
-
});
|
|
284
|
-
Object.defineProperty(exports, "DEFAULT_TAB_HEADER_LABELS", {
|
|
285
|
-
enumerable: true,
|
|
286
|
-
get: function () { return chunkSJSGSHIT_cjs.DEFAULT_TAB_HEADER_LABELS; }
|
|
287
|
-
});
|
|
288
|
-
Object.defineProperty(exports, "TabHeader", {
|
|
289
|
-
enumerable: true,
|
|
290
|
-
get: function () { return chunkSJSGSHIT_cjs.TabHeader; }
|
|
291
|
-
});
|
|
292
|
-
Object.defineProperty(exports, "DEFAULT_DOCK_WIDTH", {
|
|
293
|
-
enumerable: true,
|
|
294
|
-
get: function () { return chunkCT3SLXB7_cjs.DEFAULT_DOCK_WIDTH; }
|
|
295
|
-
});
|
|
296
|
-
Object.defineProperty(exports, "Toaster", {
|
|
297
|
-
enumerable: true,
|
|
298
|
-
get: function () { return chunkCT3SLXB7_cjs.Toaster; }
|
|
270
|
+
get: function () { return chunkN5UI363Q_cjs.useSidebarContext; }
|
|
299
271
|
});
|
|
300
272
|
Object.defineProperty(exports, "STATUS_ROW_BASE_CLASS", {
|
|
301
273
|
enumerable: true,
|
|
@@ -357,5 +329,33 @@ Object.defineProperty(exports, "useMediaQuery", {
|
|
|
357
329
|
enumerable: true,
|
|
358
330
|
get: function () { return chunkFX3K6LNZ_cjs.useMediaQuery; }
|
|
359
331
|
});
|
|
332
|
+
Object.defineProperty(exports, "DEFAULT_FILTER_FIELDS", {
|
|
333
|
+
enumerable: true,
|
|
334
|
+
get: function () { return chunk6UZC4XVV_cjs.DEFAULT_FILTER_FIELDS; }
|
|
335
|
+
});
|
|
336
|
+
Object.defineProperty(exports, "DEFAULT_FILTER_INPUT_LABELS", {
|
|
337
|
+
enumerable: true,
|
|
338
|
+
get: function () { return chunk6UZC4XVV_cjs.DEFAULT_FILTER_INPUT_LABELS; }
|
|
339
|
+
});
|
|
340
|
+
Object.defineProperty(exports, "FilterInput", {
|
|
341
|
+
enumerable: true,
|
|
342
|
+
get: function () { return chunk6UZC4XVV_cjs.FilterInput; }
|
|
343
|
+
});
|
|
344
|
+
Object.defineProperty(exports, "getInstallInstructions", {
|
|
345
|
+
enumerable: true,
|
|
346
|
+
get: function () { return chunkKKYNTWDU_cjs.getInstallInstructions; }
|
|
347
|
+
});
|
|
348
|
+
Object.defineProperty(exports, "isIosDevice", {
|
|
349
|
+
enumerable: true,
|
|
350
|
+
get: function () { return chunkKKYNTWDU_cjs.isIosDevice; }
|
|
351
|
+
});
|
|
352
|
+
Object.defineProperty(exports, "DEFAULT_TAB_HEADER_LABELS", {
|
|
353
|
+
enumerable: true,
|
|
354
|
+
get: function () { return chunkSJSGSHIT_cjs.DEFAULT_TAB_HEADER_LABELS; }
|
|
355
|
+
});
|
|
356
|
+
Object.defineProperty(exports, "TabHeader", {
|
|
357
|
+
enumerable: true,
|
|
358
|
+
get: function () { return chunkSJSGSHIT_cjs.TabHeader; }
|
|
359
|
+
});
|
|
360
360
|
//# sourceMappingURL=index.cjs.map
|
|
361
361
|
//# sourceMappingURL=index.cjs.map
|
package/dist/studio/index.cjs
CHANGED
|
@@ -1,24 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
4
|
+
var chunkDNWJUTK6_cjs = require('../chunk-DNWJUTK6.cjs');
|
|
5
|
+
require('../chunk-EHFSR633.cjs');
|
|
6
|
+
require('../chunk-6JI4AXAY.cjs');
|
|
7
|
+
require('../chunk-RJE6KXJQ.cjs');
|
|
8
|
+
require('../chunk-KZWPBL2P.cjs');
|
|
9
9
|
var chunkUOI6JJPG_cjs = require('../chunk-UOI6JJPG.cjs');
|
|
10
10
|
var chunkF6F375V7_cjs = require('../chunk-F6F375V7.cjs');
|
|
11
11
|
var chunkPBPO54KZ_cjs = require('../chunk-PBPO54KZ.cjs');
|
|
12
12
|
var chunk6RC6GYIW_cjs = require('../chunk-6RC6GYIW.cjs');
|
|
13
13
|
var chunkANWJG4A4_cjs = require('../chunk-ANWJG4A4.cjs');
|
|
14
14
|
var chunkICZSVCDT_cjs = require('../chunk-ICZSVCDT.cjs');
|
|
15
|
-
var
|
|
15
|
+
var chunkQ77OKXYM_cjs = require('../chunk-Q77OKXYM.cjs');
|
|
16
16
|
var chunkNEGFHF3V_cjs = require('../chunk-NEGFHF3V.cjs');
|
|
17
17
|
require('../chunk-ADMNU2CR.cjs');
|
|
18
18
|
var chunkPCB2BPN3_cjs = require('../chunk-PCB2BPN3.cjs');
|
|
19
|
+
require('../chunk-DGAGSP5G.cjs');
|
|
20
|
+
require('../chunk-OOHBXCDV.cjs');
|
|
21
|
+
require('../chunk-F6CEPWIF.cjs');
|
|
22
|
+
require('../chunk-5F4DCIHS.cjs');
|
|
19
23
|
var chunk34HQO4ZQ_cjs = require('../chunk-34HQO4ZQ.cjs');
|
|
20
|
-
require('../chunk-
|
|
24
|
+
require('../chunk-N5UI363Q.cjs');
|
|
21
25
|
require('../chunk-NWNVWO6L.cjs');
|
|
26
|
+
require('../chunk-AFQTQC7A.cjs');
|
|
27
|
+
require('../chunk-XJEXFEWG.cjs');
|
|
28
|
+
require('../chunk-YZSQ7F5K.cjs');
|
|
29
|
+
require('../chunk-MCXS6X37.cjs');
|
|
30
|
+
require('../chunk-KQF7POTG.cjs');
|
|
31
|
+
require('../chunk-75BNMCUX.cjs');
|
|
22
32
|
var chunkSD7GUB44_cjs = require('../chunk-SD7GUB44.cjs');
|
|
23
33
|
var chunkZU2B2RZK_cjs = require('../chunk-ZU2B2RZK.cjs');
|
|
24
34
|
var chunkNSD37OF5_cjs = require('../chunk-NSD37OF5.cjs');
|
|
@@ -26,33 +36,23 @@ require('../chunk-OEJQFPWO.cjs');
|
|
|
26
36
|
require('../chunk-I4IS6ST6.cjs');
|
|
27
37
|
require('../chunk-5A6T4W46.cjs');
|
|
28
38
|
require('../chunk-EVZH6Z5O.cjs');
|
|
39
|
+
require('../chunk-IN6ILI5A.cjs');
|
|
40
|
+
require('../chunk-VL7ZX4KQ.cjs');
|
|
29
41
|
require('../chunk-II2OEXHW.cjs');
|
|
30
|
-
require('../chunk-
|
|
42
|
+
require('../chunk-K3WSXEEI.cjs');
|
|
31
43
|
require('../chunk-AHDJXIUB.cjs');
|
|
32
44
|
require('../chunk-S5OGPQSB.cjs');
|
|
45
|
+
require('../chunk-EQTZQD66.cjs');
|
|
46
|
+
require('../chunk-JN5YMHGI.cjs');
|
|
47
|
+
require('../chunk-UDSHVNU3.cjs');
|
|
33
48
|
require('../chunk-OUGRCQM7.cjs');
|
|
49
|
+
var chunkIPSHAMO2_cjs = require('../chunk-IPSHAMO2.cjs');
|
|
34
50
|
require('../chunk-VZOOGA47.cjs');
|
|
35
51
|
require('../chunk-CENMN32L.cjs');
|
|
36
52
|
var chunkYKOPKLYP_cjs = require('../chunk-YKOPKLYP.cjs');
|
|
37
53
|
require('../chunk-3YZKDCWY.cjs');
|
|
38
|
-
var chunkZW6FPIFC_cjs = require('../chunk-ZW6FPIFC.cjs');
|
|
39
|
-
require('../chunk-DGAGSP5G.cjs');
|
|
40
|
-
require('../chunk-OOHBXCDV.cjs');
|
|
41
|
-
require('../chunk-F6CEPWIF.cjs');
|
|
42
|
-
require('../chunk-5F4DCIHS.cjs');
|
|
43
|
-
require('../chunk-AFQTQC7A.cjs');
|
|
44
|
-
require('../chunk-XJEXFEWG.cjs');
|
|
45
|
-
require('../chunk-YZSQ7F5K.cjs');
|
|
46
|
-
require('../chunk-MCXS6X37.cjs');
|
|
47
|
-
require('../chunk-KQF7POTG.cjs');
|
|
48
|
-
require('../chunk-75BNMCUX.cjs');
|
|
49
|
-
require('../chunk-IN6ILI5A.cjs');
|
|
50
|
-
require('../chunk-VL7ZX4KQ.cjs');
|
|
51
|
-
require('../chunk-EQTZQD66.cjs');
|
|
52
|
-
require('../chunk-JN5YMHGI.cjs');
|
|
53
|
-
require('../chunk-UDSHVNU3.cjs');
|
|
54
|
-
var chunkIPSHAMO2_cjs = require('../chunk-IPSHAMO2.cjs');
|
|
55
54
|
require('../chunk-PPCATBOY.cjs');
|
|
55
|
+
var chunkZW6FPIFC_cjs = require('../chunk-ZW6FPIFC.cjs');
|
|
56
56
|
var chunkLIKDQBNJ_cjs = require('../chunk-LIKDQBNJ.cjs');
|
|
57
57
|
require('../chunk-YZBDHBKI.cjs');
|
|
58
58
|
require('../chunk-CVPV4I7Z.cjs');
|
|
@@ -619,7 +619,7 @@ function StudioEditor({
|
|
|
619
619
|
className: "w-80 shrink-0 border-l border-border",
|
|
620
620
|
"data-testid": `${testIdPrefix}-theme-drawer`,
|
|
621
621
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
622
|
-
|
|
622
|
+
chunkQ77OKXYM_cjs.ThemeEditor,
|
|
623
623
|
{
|
|
624
624
|
bundle: themeBundle,
|
|
625
625
|
variant: "drawer",
|
|
@@ -992,7 +992,7 @@ function latestImageDocId(artifacts) {
|
|
|
992
992
|
return null;
|
|
993
993
|
}
|
|
994
994
|
function useImageGen() {
|
|
995
|
-
const task =
|
|
995
|
+
const task = chunkDNWJUTK6_cjs.useConnectedAiTask();
|
|
996
996
|
const { run } = task;
|
|
997
997
|
const generate = react.useCallback(
|
|
998
998
|
async (prompt, referenceDocIds = []) => {
|
|
@@ -3391,7 +3391,7 @@ function VerticalBuilder({
|
|
|
3391
3391
|
] })
|
|
3392
3392
|
] }),
|
|
3393
3393
|
/* @__PURE__ */ jsxRuntime.jsx(ui.TabsContent, { value: "theme", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3394
|
-
|
|
3394
|
+
chunkQ77OKXYM_cjs.ThemeEditor,
|
|
3395
3395
|
{
|
|
3396
3396
|
bundle: themeBundle,
|
|
3397
3397
|
variant: "panel",
|
package/dist/vite/index.cjs
CHANGED
|
@@ -34,7 +34,17 @@ function codeSplitting() {
|
|
|
34
34
|
return {
|
|
35
35
|
groups: [
|
|
36
36
|
{ name: "preload-helper", test: /vite\/preload-helper/, priority: 100 },
|
|
37
|
-
{ name: vendorChunkOf }
|
|
37
|
+
{ name: vendorChunkOf },
|
|
38
|
+
// Vite's build-import lexer has a fixed WASM heap: the combined Word editor
|
|
39
|
+
// can exceed it. Bound its chunks without pulling lazy editor code into an
|
|
40
|
+
// eager vendor group or capturing its shared React/runtime dependencies.
|
|
41
|
+
{
|
|
42
|
+
name: "docx-editor",
|
|
43
|
+
test: /node_modules\/@docx-editor\.dev\//,
|
|
44
|
+
entriesAware: true,
|
|
45
|
+
includeDependenciesRecursively: false,
|
|
46
|
+
maxSize: 2e6
|
|
47
|
+
}
|
|
38
48
|
]
|
|
39
49
|
};
|
|
40
50
|
}
|
package/dist/vite/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/vite/index.ts"],"names":["readdir","path","promisify","brotliCompress","gzip","readFile","constants","writeFile","require","createRequire","createReadStream"],"mappings":";;;;;;;;;;;;;;AAyBO,SAAS,cAAc,EAAA,EAA2B;AACvD,EAAA,IAAI,GAAG,QAAA,CAAS,qBAAqB,CAAA,IAAK,EAAA,CAAG,SAAS,yBAAyB,CAAA;AAC7E,IAAA,OAAO,YAAA;AACT,EAAA,IACE,GAAG,QAAA,CAAS,yBAAyB,KACrC,EAAA,CAAG,QAAA,CAAS,wCAAwC,CAAA,IACpD,EAAA,CAAG,QAAA,CAAS,oBAAoB,KAChC,EAAA,CAAG,QAAA,CAAS,8BAA8B,CAAA,IAC1C,EAAA,CAAG,SAAS,mCAAmC,CAAA;AAE/C,IAAA,OAAO,eAAA;AACT,EAAA,IAAI,GAAG,QAAA,CAAS,4BAA4B,CAAA,IAAK,EAAA,CAAG,SAAS,gCAAgC,CAAA;AAC3F,IAAA,OAAO,SAAA;AAET,EAAA,IACE,EAAA,CAAG,QAAA,CAAS,8BAA8B,CAAA,IACzC,EAAA,CAAG,SAAS,sBAAsB,CAAA,IAAK,CAAC,EAAA,CAAG,QAAA,CAAS,4BAA4B,KAChF,EAAA,CAAG,QAAA,CAAS,sBAAsB,CAAA,IAAK,CAAC,EAAA,CAAG,SAAS,2BAA2B,CAAA,IAChF,EAAA,CAAG,QAAA,CAAS,qBAAqB,CAAA;AAEjC,IAAA,OAAO,UAAA;AACT,EAAA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A,IACP,gBAAgB,MAAA,EAAQ;AACtB,MAAA,IAAI,IAAA;AACJ,MAAA,IAAI;AACF,QAAA,MAAMC,QAAAA,GAAUC,uBAAcR,qBAAA,CAAK,IAAA,CAAK,OAAO,MAAA,CAAO,IAAA,EAAM,cAAc,CAAC,CAAA;AAC3E,QAAA,IAAA,GAAOA,qBAAA,CAAK,KAAKA,qBAAA,CAAK,OAAA,CAAQO,SAAQ,OAAA,CAAQ,uBAAuB,CAAC,CAAA,EAAG,eAAe,CAAA;AAAA,MAC1F,CAAA,CAAA,MAAQ;AACN,QAAA;AAAA,MACF;AACA,MAAA,MAAA,CAAO,WAAA,CAAY,GAAA,CAAI,CAAC,GAAA,EAAK,KAAK,IAAA,KAAS;AACzC,QAAA,IAAI,CAAC,GAAA,CAAI,GAAA,EAAK,KAAA,CAAM,GAAG,CAAA,CAAE,CAAC,CAAA,CAAE,QAAA,CAAS,2BAA2B,CAAA,EAAG,OAAO,IAAA,EAAK;AAC/E,QAAA,GAAA,CAAI,SAAA,CAAU,gBAAgB,kBAAkB,CAAA;AAChD,QAAAE,mBAAA,CAAiB,IAAI,CAAA,CAAE,IAAA,CAAK,GAAG,CAAA;AAAA,MACjC,CAAC,CAAA;AAAA,IACH;AAAA,GACF;AACF;AAQO,SAAS,eAAA,CAAgB;AAAA,EAC9B,aAAa,QAAA,GAAW;AAC1B,CAAA,GAA4B,EAAC,EAAa;AACxC,EAAA,OAAO;AAAA,IACL,iBAAA,EAAkB;AAAA,IAClB,GAAI,QAAA,GAAW,CAAC,WAAA,CAAY,OAAO,QAAA,KAAa,QAAA,GAAW,QAAA,GAAW,EAAE,CAAC,CAAA,GAAI;AAAC,GAChF;AACF","file":"index.cjs","sourcesContent":["/**\n * `@arbidocs/blocks/vite`: the build settings every site built from the kits shares. Node only: a\n * site's `vite.config` imports it, never its browser code.\n *\n * In a site's `vite.config`: `plugins: [react(), ...arbiVitePlugins()]`, and the vendor groups as\n * `build.rolldownOptions.output.codeSplitting = codeSplitting()` (Vite 8) or\n * `build.rollupOptions.output.manualChunks = manualChunks` (Vite 6/7).\n *\n * The heavy kit parts (the Word editor, the PDF engine, the data grid, the calendar) are loaded on\n * demand by the kits themselves and get their own chunks without help. The vendor groups below\n * deliberately leave them out: pinning a lazily loaded library into a named chunk lets the bundler\n * park shared helpers there, and the sign-in page then downloads the whole library.\n */\nimport { createReadStream } from 'node:fs'\nimport { readdir, readFile, writeFile } from 'node:fs/promises'\nimport { createRequire } from 'node:module'\nimport path from 'node:path'\nimport { promisify } from 'node:util'\nimport { brotliCompress, constants, gzip } from 'node:zlib'\nimport type { Plugin } from 'vite'\n\n/**\n * The vendor chunk a module belongs to, or null (left to the bundler): libraries every page loads\n * and that rarely change, so they stay cached across a site's deploys.\n */\nexport function vendorChunkOf(id: string): string | null {\n if (id.includes('node_modules/react/') || id.includes('node_modules/react-dom/'))\n return 'react-core'\n if (\n id.includes('node_modules/@radix-ui/') ||\n id.includes('node_modules/class-variance-authority/') ||\n id.includes('node_modules/clsx/') ||\n id.includes('node_modules/tailwind-merge/') ||\n id.includes('node_modules/tailwindcss-animate/')\n )\n return 'ui-components'\n if (id.includes('node_modules/react-router/') || id.includes('node_modules/react-router-dom/'))\n return 'routing'\n // KaTeX (rehype-katex / remark-math) is loaded on demand when content has math: left out.\n if (\n id.includes('node_modules/react-markdown/') ||\n (id.includes('node_modules/rehype-') && !id.includes('node_modules/rehype-katex/')) ||\n (id.includes('node_modules/remark-') && !id.includes('node_modules/remark-math/')) ||\n id.includes('node_modules/shiki/')\n )\n return 'markdown'\n if (\n id.includes('node_modules/zustand/') ||\n id.includes('node_modules/immer/') ||\n id.includes('node_modules/remeda/') ||\n id.includes('node_modules/@tanstack/react-query/')\n )\n return 'state-utils'\n if (id.includes('node_modules/framer-motion/') || id.includes('node_modules/sonner/'))\n return 'animation'\n if (\n id.includes('node_modules/@auth0/') ||\n id.includes('node_modules/axios/') ||\n id.includes('node_modules/js-cookie/')\n )\n return 'auth-api'\n // The end-to-end encryption library: needed at sign-in, large, and it never changes.\n if (id.includes('node_modules/libsodium')) return 'sodium'\n return null\n}\n\n/**\n * Rolldown's (Vite 8) `build.rolldownOptions.output.codeSplitting`. Vite's dynamic-import preload\n * helper gets its own chunk: left unpinned, the bundler parks it in a chunk that also imports\n * lazily, and the entry then preloads that whole chunk before the page renders.\n */\nexport function codeSplitting() {\n return {\n groups: [\n { name: 'preload-helper', test: /vite\\/preload-helper/, priority: 100 },\n { name: vendorChunkOf },\n ],\n }\n}\n\n/** Rollup's (Vite 6/7) `build.rollupOptions.output.manualChunks`, with the same vendor groups. */\nexport function manualChunks(id: string): string | undefined {\n return vendorChunkOf(id) ?? undefined\n}\n\nconst COMPRESSIBLE = /\\.(?:m?js|css|html|json|svg|wasm|txt|xml|webmanifest|ttf|otf)$/\n\n/**\n * Files a deployment rewrites after `vite build` (a compressed copy would serve the stale bytes):\n * the service worker (stamped with the build), the runtime config and web manifests (rendered when\n * the container starts), and `index.html` (tiny, and never cached).\n */\nexport const PRECOMPRESS_EXCLUDE: readonly string[] = [\n 'sw.js',\n 'config.json',\n '*.webmanifest',\n 'asset-manifest.json',\n 'index.html',\n]\n\nexport interface PrecompressOptions {\n /** Smallest file compressed, in bytes. Default 1024. */\n minSize?: number\n /**\n * File names (or `*` patterns, matched against the file name) never compressed: anything the\n * deployment changes after the build. Default `PRECOMPRESS_EXCLUDE`; pass your own list to\n * replace it (`[...PRECOMPRESS_EXCLUDE, 'extra.json']` to extend it).\n */\n exclude?: readonly string[]\n}\n\nasync function filesUnder(dir: string): Promise<string[]> {\n const entries = await readdir(dir, { withFileTypes: true, recursive: true })\n return entries.filter((e) => e.isFile()).map((e) => path.join(e.parentPath, e.name))\n}\n\nconst toPattern = (glob: string) =>\n new RegExp(`^${glob.replace(/[.+?^${}()|[\\]\\\\]/g, '\\\\$&').replace(/\\*/g, '.*')}$`)\n\n/** Runs `task` over `items`, `limit` at a time. */\nasync function eachLimited<T>(\n items: readonly T[],\n limit: number,\n task: (item: T) => Promise<void>\n) {\n let next = 0\n const worker = async () => {\n while (next < items.length) await task(items[next++])\n }\n await Promise.all(Array.from({ length: Math.min(limit, items.length) }, worker))\n}\n\n/**\n * Writes `<file>.br` (brotli, quality 11) and `<file>.gz` (gzip, level 9) beside every compressible\n * file of the build, including those copied from `public/`, so the web server sends them as they\n * are (nginx `gzip_static` / `brotli_static`): the smallest transfer, at no cost per request. Files\n * the deployment rewrites later are left out (`exclude`).\n */\nexport function precompress({\n minSize = 1024,\n exclude = PRECOMPRESS_EXCLUDE,\n}: PrecompressOptions = {}): Plugin {\n const br = promisify(brotliCompress)\n const gz = promisify(gzip)\n const excluded = exclude.map(toPattern)\n let outDir = ''\n return {\n name: 'arbi-precompress',\n apply: 'build',\n enforce: 'post',\n configResolved(config) {\n outDir = path.resolve(config.root, config.build.outDir)\n },\n async closeBundle() {\n const files = (await filesUnder(outDir)).filter(\n (f) => COMPRESSIBLE.test(f) && !excluded.some((p) => p.test(path.basename(f)))\n )\n // Brotli at quality 11 is CPU-heavy: a few files at a time.\n await eachLimited(files, 6, async (file) => {\n const data = await readFile(file)\n if (data.length < minSize) return\n const [brotli, gzipped] = await Promise.all([\n br(data, {\n params: {\n [constants.BROTLI_PARAM_QUALITY]: 11,\n [constants.BROTLI_PARAM_SIZE_HINT]: data.length,\n },\n }),\n gz(data, { level: 9 }),\n ])\n await Promise.all([writeFile(`${file}.br`, brotli), writeFile(`${file}.gz`, gzipped)])\n })\n },\n }\n}\n\n/**\n * The Word editor's text shaping loads `harfbuzz.wasm` with `new URL('harfbuzz.wasm',\n * import.meta.url)`. A build emits that asset, but the dev server's pre-bundle moves the editor into\n * `.vite/deps`, where the URL has no file and the SPA fallback answers with HTML (\"HarfBuzz shaping\n * failed\"). Serves the installed package's binary at that address. Dev server only.\n */\nexport function serveHarfBuzzWasm(): Plugin {\n return {\n name: 'arbi-harfbuzz-wasm',\n apply: 'serve',\n configureServer(server) {\n let wasm: string\n try {\n const require = createRequire(path.join(server.config.root, 'package.json'))\n wasm = path.join(path.dirname(require.resolve('@docx-editor.dev/core')), 'harfbuzz.wasm')\n } catch {\n return // The site does not use the Word editor.\n }\n server.middlewares.use((req, res, next) => {\n if (!req.url?.split('?')[0].endsWith('/.vite/deps/harfbuzz.wasm')) return next()\n res.setHeader('Content-Type', 'application/wasm')\n createReadStream(wasm).pipe(res)\n })\n },\n }\n}\n\nexport interface ArbiVitePluginsOptions {\n /** Precompress the build (`.br` and `.gz`). Default on. */\n precompress?: boolean | PrecompressOptions\n}\n\n/** The plugins every kit-built site uses: precompression and the Word editor's wasm in dev. */\nexport function arbiVitePlugins({\n precompress: compress = true,\n}: ArbiVitePluginsOptions = {}): Plugin[] {\n return [\n serveHarfBuzzWasm(),\n ...(compress ? [precompress(typeof compress === 'object' ? compress : {})] : []),\n ]\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/vite/index.ts"],"names":["readdir","path","promisify","brotliCompress","gzip","readFile","constants","writeFile","require","createRequire","createReadStream"],"mappings":";;;;;;;;;;;;;;AAyBO,SAAS,cAAc,EAAA,EAA2B;AACvD,EAAA,IAAI,GAAG,QAAA,CAAS,qBAAqB,CAAA,IAAK,EAAA,CAAG,SAAS,yBAAyB,CAAA;AAC7E,IAAA,OAAO,YAAA;AACT,EAAA,IACE,GAAG,QAAA,CAAS,yBAAyB,KACrC,EAAA,CAAG,QAAA,CAAS,wCAAwC,CAAA,IACpD,EAAA,CAAG,QAAA,CAAS,oBAAoB,KAChC,EAAA,CAAG,QAAA,CAAS,8BAA8B,CAAA,IAC1C,EAAA,CAAG,SAAS,mCAAmC,CAAA;AAE/C,IAAA,OAAO,eAAA;AACT,EAAA,IAAI,GAAG,QAAA,CAAS,4BAA4B,CAAA,IAAK,EAAA,CAAG,SAAS,gCAAgC,CAAA;AAC3F,IAAA,OAAO,SAAA;AAET,EAAA,IACE,EAAA,CAAG,QAAA,CAAS,8BAA8B,CAAA,IACzC,EAAA,CAAG,SAAS,sBAAsB,CAAA,IAAK,CAAC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AAA,GAA4B,EAAC,EAAa;AACxC,EAAA,OAAO;AAAA,IACL,iBAAA,EAAkB;AAAA,IAClB,GAAI,QAAA,GAAW,CAAC,WAAA,CAAY,OAAO,QAAA,KAAa,QAAA,GAAW,QAAA,GAAW,EAAE,CAAC,CAAA,GAAI;AAAC,GAChF;AACF","file":"index.cjs","sourcesContent":["/**\n * `@arbidocs/blocks/vite`: the build settings every site built from the kits shares. Node only: a\n * site's `vite.config` imports it, never its browser code.\n *\n * In a site's `vite.config`: `plugins: [react(), ...arbiVitePlugins()]`, and the vendor groups as\n * `build.rolldownOptions.output.codeSplitting = codeSplitting()` (Vite 8) or\n * `build.rollupOptions.output.manualChunks = manualChunks` (Vite 6/7).\n *\n * The heavy kit parts (the Word editor, the PDF engine, the data grid, the calendar) are loaded on\n * demand by the kits themselves. Eager vendor groups leave them out: mixing shared helpers into\n * a lazy library chunk would make sign-in download the whole library. The Word editor has its\n * own size-bounded, entry-aware group that does not capture its shared dependencies.\n */\nimport { createReadStream } from 'node:fs'\nimport { readdir, readFile, writeFile } from 'node:fs/promises'\nimport { createRequire } from 'node:module'\nimport path from 'node:path'\nimport { promisify } from 'node:util'\nimport { brotliCompress, constants, gzip } from 'node:zlib'\nimport type { Plugin } from 'vite'\n\n/**\n * The vendor chunk a module belongs to, or null (left to the bundler): libraries every page loads\n * and that rarely change, so they stay cached across a site's deploys.\n */\nexport function vendorChunkOf(id: string): string | null {\n if (id.includes('node_modules/react/') || id.includes('node_modules/react-dom/'))\n return 'react-core'\n if (\n id.includes('node_modules/@radix-ui/') ||\n id.includes('node_modules/class-variance-authority/') ||\n id.includes('node_modules/clsx/') ||\n id.includes('node_modules/tailwind-merge/') ||\n id.includes('node_modules/tailwindcss-animate/')\n )\n return 'ui-components'\n if (id.includes('node_modules/react-router/') || id.includes('node_modules/react-router-dom/'))\n return 'routing'\n // KaTeX (rehype-katex / remark-math) is loaded on demand when content has math: left out.\n if (\n id.includes('node_modules/react-markdown/') ||\n (id.includes('node_modules/rehype-') && !id.includes('node_modules/rehype-katex/')) ||\n (id.includes('node_modules/remark-') && !id.includes('node_modules/remark-math/')) ||\n id.includes('node_modules/shiki/')\n )\n return 'markdown'\n if (\n id.includes('node_modules/zustand/') ||\n id.includes('node_modules/immer/') ||\n id.includes('node_modules/remeda/') ||\n id.includes('node_modules/@tanstack/react-query/')\n )\n return 'state-utils'\n if (id.includes('node_modules/framer-motion/') || id.includes('node_modules/sonner/'))\n return 'animation'\n if (\n id.includes('node_modules/@auth0/') ||\n id.includes('node_modules/axios/') ||\n id.includes('node_modules/js-cookie/')\n )\n return 'auth-api'\n // The end-to-end encryption library: needed at sign-in, large, and it never changes.\n if (id.includes('node_modules/libsodium')) return 'sodium'\n return null\n}\n\n/**\n * Rolldown's (Vite 8) `build.rolldownOptions.output.codeSplitting`. Vite's dynamic-import preload\n * helper gets its own chunk: left unpinned, the bundler parks it in a chunk that also imports\n * lazily, and the entry then preloads that whole chunk before the page renders.\n */\nexport function codeSplitting() {\n return {\n groups: [\n { name: 'preload-helper', test: /vite\\/preload-helper/, priority: 100 },\n { name: vendorChunkOf },\n // Vite's build-import lexer has a fixed WASM heap: the combined Word editor\n // can exceed it. Bound its chunks without pulling lazy editor code into an\n // eager vendor group or capturing its shared React/runtime dependencies.\n {\n name: 'docx-editor',\n test: /node_modules\\/@docx-editor\\.dev\\//,\n entriesAware: true,\n includeDependenciesRecursively: false,\n maxSize: 2_000_000,\n },\n ],\n }\n}\n\n/** Rollup's (Vite 6/7) `build.rollupOptions.output.manualChunks`, with the same vendor groups. */\nexport function manualChunks(id: string): string | undefined {\n return vendorChunkOf(id) ?? undefined\n}\n\nconst COMPRESSIBLE = /\\.(?:m?js|css|html|json|svg|wasm|txt|xml|webmanifest|ttf|otf)$/\n\n/**\n * Files a deployment rewrites after `vite build` (a compressed copy would serve the stale bytes):\n * the service worker (stamped with the build), the runtime config and web manifests (rendered when\n * the container starts), and `index.html` (tiny, and never cached).\n */\nexport const PRECOMPRESS_EXCLUDE: readonly string[] = [\n 'sw.js',\n 'config.json',\n '*.webmanifest',\n 'asset-manifest.json',\n 'index.html',\n]\n\nexport interface PrecompressOptions {\n /** Smallest file compressed, in bytes. Default 1024. */\n minSize?: number\n /**\n * File names (or `*` patterns, matched against the file name) never compressed: anything the\n * deployment changes after the build. Default `PRECOMPRESS_EXCLUDE`; pass your own list to\n * replace it (`[...PRECOMPRESS_EXCLUDE, 'extra.json']` to extend it).\n */\n exclude?: readonly string[]\n}\n\nasync function filesUnder(dir: string): Promise<string[]> {\n const entries = await readdir(dir, { withFileTypes: true, recursive: true })\n return entries.filter((e) => e.isFile()).map((e) => path.join(e.parentPath, e.name))\n}\n\nconst toPattern = (glob: string) =>\n new RegExp(`^${glob.replace(/[.+?^${}()|[\\]\\\\]/g, '\\\\$&').replace(/\\*/g, '.*')}$`)\n\n/** Runs `task` over `items`, `limit` at a time. */\nasync function eachLimited<T>(\n items: readonly T[],\n limit: number,\n task: (item: T) => Promise<void>\n) {\n let next = 0\n const worker = async () => {\n while (next < items.length) await task(items[next++])\n }\n await Promise.all(Array.from({ length: Math.min(limit, items.length) }, worker))\n}\n\n/**\n * Writes `<file>.br` (brotli, quality 11) and `<file>.gz` (gzip, level 9) beside every compressible\n * file of the build, including those copied from `public/`, so the web server sends them as they\n * are (nginx `gzip_static` / `brotli_static`): the smallest transfer, at no cost per request. Files\n * the deployment rewrites later are left out (`exclude`).\n */\nexport function precompress({\n minSize = 1024,\n exclude = PRECOMPRESS_EXCLUDE,\n}: PrecompressOptions = {}): Plugin {\n const br = promisify(brotliCompress)\n const gz = promisify(gzip)\n const excluded = exclude.map(toPattern)\n let outDir = ''\n return {\n name: 'arbi-precompress',\n apply: 'build',\n enforce: 'post',\n configResolved(config) {\n outDir = path.resolve(config.root, config.build.outDir)\n },\n async closeBundle() {\n const files = (await filesUnder(outDir)).filter(\n (f) => COMPRESSIBLE.test(f) && !excluded.some((p) => p.test(path.basename(f)))\n )\n // Brotli at quality 11 is CPU-heavy: a few files at a time.\n await eachLimited(files, 6, async (file) => {\n const data = await readFile(file)\n if (data.length < minSize) return\n const [brotli, gzipped] = await Promise.all([\n br(data, {\n params: {\n [constants.BROTLI_PARAM_QUALITY]: 11,\n [constants.BROTLI_PARAM_SIZE_HINT]: data.length,\n },\n }),\n gz(data, { level: 9 }),\n ])\n await Promise.all([writeFile(`${file}.br`, brotli), writeFile(`${file}.gz`, gzipped)])\n })\n },\n }\n}\n\n/**\n * The Word editor's text shaping loads `harfbuzz.wasm` with `new URL('harfbuzz.wasm',\n * import.meta.url)`. A build emits that asset, but the dev server's pre-bundle moves the editor into\n * `.vite/deps`, where the URL has no file and the SPA fallback answers with HTML (\"HarfBuzz shaping\n * failed\"). Serves the installed package's binary at that address. Dev server only.\n */\nexport function serveHarfBuzzWasm(): Plugin {\n return {\n name: 'arbi-harfbuzz-wasm',\n apply: 'serve',\n configureServer(server) {\n let wasm: string\n try {\n const require = createRequire(path.join(server.config.root, 'package.json'))\n wasm = path.join(path.dirname(require.resolve('@docx-editor.dev/core')), 'harfbuzz.wasm')\n } catch {\n return // The site does not use the Word editor.\n }\n server.middlewares.use((req, res, next) => {\n if (!req.url?.split('?')[0].endsWith('/.vite/deps/harfbuzz.wasm')) return next()\n res.setHeader('Content-Type', 'application/wasm')\n createReadStream(wasm).pipe(res)\n })\n },\n }\n}\n\nexport interface ArbiVitePluginsOptions {\n /** Precompress the build (`.br` and `.gz`). Default on. */\n precompress?: boolean | PrecompressOptions\n}\n\n/** The plugins every kit-built site uses: precompression and the Word editor's wasm in dev. */\nexport function arbiVitePlugins({\n precompress: compress = true,\n}: ArbiVitePluginsOptions = {}): Plugin[] {\n return [\n serveHarfBuzzWasm(),\n ...(compress ? [precompress(typeof compress === 'object' ? compress : {})] : []),\n ]\n}\n"]}
|
package/dist/vite/index.d.ts
CHANGED
|
@@ -14,10 +14,23 @@ export declare function codeSplitting(): {
|
|
|
14
14
|
name: string;
|
|
15
15
|
test: RegExp;
|
|
16
16
|
priority: number;
|
|
17
|
+
entriesAware?: undefined;
|
|
18
|
+
includeDependenciesRecursively?: undefined;
|
|
19
|
+
maxSize?: undefined;
|
|
17
20
|
} | {
|
|
18
21
|
name: typeof vendorChunkOf;
|
|
19
22
|
test?: undefined;
|
|
20
23
|
priority?: undefined;
|
|
24
|
+
entriesAware?: undefined;
|
|
25
|
+
includeDependenciesRecursively?: undefined;
|
|
26
|
+
maxSize?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
name: string;
|
|
29
|
+
test: RegExp;
|
|
30
|
+
entriesAware: boolean;
|
|
31
|
+
includeDependenciesRecursively: boolean;
|
|
32
|
+
maxSize: number;
|
|
33
|
+
priority?: undefined;
|
|
21
34
|
})[];
|
|
22
35
|
};
|
|
23
36
|
/** Rollup's (Vite 6/7) `build.rollupOptions.output.manualChunks`, with the same vendor groups. */
|
package/dist/vite/index.js
CHANGED
|
@@ -28,7 +28,17 @@ function codeSplitting() {
|
|
|
28
28
|
return {
|
|
29
29
|
groups: [
|
|
30
30
|
{ name: "preload-helper", test: /vite\/preload-helper/, priority: 100 },
|
|
31
|
-
{ name: vendorChunkOf }
|
|
31
|
+
{ name: vendorChunkOf },
|
|
32
|
+
// Vite's build-import lexer has a fixed WASM heap: the combined Word editor
|
|
33
|
+
// can exceed it. Bound its chunks without pulling lazy editor code into an
|
|
34
|
+
// eager vendor group or capturing its shared React/runtime dependencies.
|
|
35
|
+
{
|
|
36
|
+
name: "docx-editor",
|
|
37
|
+
test: /node_modules\/@docx-editor\.dev\//,
|
|
38
|
+
entriesAware: true,
|
|
39
|
+
includeDependenciesRecursively: false,
|
|
40
|
+
maxSize: 2e6
|
|
41
|
+
}
|
|
32
42
|
]
|
|
33
43
|
};
|
|
34
44
|
}
|
package/dist/vite/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/vite/index.ts"],"names":["require"],"mappings":";;;;;;;;AAyBO,SAAS,cAAc,EAAA,EAA2B;AACvD,EAAA,IAAI,GA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GAAG,CAAA,CAAE,CAAC,CAAA,CAAE,QAAA,CAAS,2BAA2B,CAAA,EAAG,OAAO,IAAA,EAAK;AAC/E,QAAA,GAAA,CAAI,SAAA,CAAU,gBAAgB,kBAAkB,CAAA;AAChD,QAAA,gBAAA,CAAiB,IAAI,CAAA,CAAE,IAAA,CAAK,GAAG,CAAA;AAAA,MACjC,CAAC,CAAA;AAAA,IACH;AAAA,GACF;AACF;AAQO,SAAS,eAAA,CAAgB;AAAA,EAC9B,aAAa,QAAA,GAAW;AAC1B,CAAA,GAA4B,EAAC,EAAa;AACxC,EAAA,OAAO;AAAA,IACL,iBAAA,EAAkB;AAAA,IAClB,GAAI,QAAA,GAAW,CAAC,WAAA,CAAY,OAAO,QAAA,KAAa,QAAA,GAAW,QAAA,GAAW,EAAE,CAAC,CAAA,GAAI;AAAC,GAChF;AACF","file":"index.js","sourcesContent":["/**\n * `@arbidocs/blocks/vite`: the build settings every site built from the kits shares. Node only: a\n * site's `vite.config` imports it, never its browser code.\n *\n * In a site's `vite.config`: `plugins: [react(), ...arbiVitePlugins()]`, and the vendor groups as\n * `build.rolldownOptions.output.codeSplitting = codeSplitting()` (Vite 8) or\n * `build.rollupOptions.output.manualChunks = manualChunks` (Vite 6/7).\n *\n * The heavy kit parts (the Word editor, the PDF engine, the data grid, the calendar) are loaded on\n * demand by the kits themselves and get their own chunks without help. The vendor groups below\n * deliberately leave them out: pinning a lazily loaded library into a named chunk lets the bundler\n * park shared helpers there, and the sign-in page then downloads the whole library.\n */\nimport { createReadStream } from 'node:fs'\nimport { readdir, readFile, writeFile } from 'node:fs/promises'\nimport { createRequire } from 'node:module'\nimport path from 'node:path'\nimport { promisify } from 'node:util'\nimport { brotliCompress, constants, gzip } from 'node:zlib'\nimport type { Plugin } from 'vite'\n\n/**\n * The vendor chunk a module belongs to, or null (left to the bundler): libraries every page loads\n * and that rarely change, so they stay cached across a site's deploys.\n */\nexport function vendorChunkOf(id: string): string | null {\n if (id.includes('node_modules/react/') || id.includes('node_modules/react-dom/'))\n return 'react-core'\n if (\n id.includes('node_modules/@radix-ui/') ||\n id.includes('node_modules/class-variance-authority/') ||\n id.includes('node_modules/clsx/') ||\n id.includes('node_modules/tailwind-merge/') ||\n id.includes('node_modules/tailwindcss-animate/')\n )\n return 'ui-components'\n if (id.includes('node_modules/react-router/') || id.includes('node_modules/react-router-dom/'))\n return 'routing'\n // KaTeX (rehype-katex / remark-math) is loaded on demand when content has math: left out.\n if (\n id.includes('node_modules/react-markdown/') ||\n (id.includes('node_modules/rehype-') && !id.includes('node_modules/rehype-katex/')) ||\n (id.includes('node_modules/remark-') && !id.includes('node_modules/remark-math/')) ||\n id.includes('node_modules/shiki/')\n )\n return 'markdown'\n if (\n id.includes('node_modules/zustand/') ||\n id.includes('node_modules/immer/') ||\n id.includes('node_modules/remeda/') ||\n id.includes('node_modules/@tanstack/react-query/')\n )\n return 'state-utils'\n if (id.includes('node_modules/framer-motion/') || id.includes('node_modules/sonner/'))\n return 'animation'\n if (\n id.includes('node_modules/@auth0/') ||\n id.includes('node_modules/axios/') ||\n id.includes('node_modules/js-cookie/')\n )\n return 'auth-api'\n // The end-to-end encryption library: needed at sign-in, large, and it never changes.\n if (id.includes('node_modules/libsodium')) return 'sodium'\n return null\n}\n\n/**\n * Rolldown's (Vite 8) `build.rolldownOptions.output.codeSplitting`. Vite's dynamic-import preload\n * helper gets its own chunk: left unpinned, the bundler parks it in a chunk that also imports\n * lazily, and the entry then preloads that whole chunk before the page renders.\n */\nexport function codeSplitting() {\n return {\n groups: [\n { name: 'preload-helper', test: /vite\\/preload-helper/, priority: 100 },\n { name: vendorChunkOf },\n ],\n }\n}\n\n/** Rollup's (Vite 6/7) `build.rollupOptions.output.manualChunks`, with the same vendor groups. */\nexport function manualChunks(id: string): string | undefined {\n return vendorChunkOf(id) ?? undefined\n}\n\nconst COMPRESSIBLE = /\\.(?:m?js|css|html|json|svg|wasm|txt|xml|webmanifest|ttf|otf)$/\n\n/**\n * Files a deployment rewrites after `vite build` (a compressed copy would serve the stale bytes):\n * the service worker (stamped with the build), the runtime config and web manifests (rendered when\n * the container starts), and `index.html` (tiny, and never cached).\n */\nexport const PRECOMPRESS_EXCLUDE: readonly string[] = [\n 'sw.js',\n 'config.json',\n '*.webmanifest',\n 'asset-manifest.json',\n 'index.html',\n]\n\nexport interface PrecompressOptions {\n /** Smallest file compressed, in bytes. Default 1024. */\n minSize?: number\n /**\n * File names (or `*` patterns, matched against the file name) never compressed: anything the\n * deployment changes after the build. Default `PRECOMPRESS_EXCLUDE`; pass your own list to\n * replace it (`[...PRECOMPRESS_EXCLUDE, 'extra.json']` to extend it).\n */\n exclude?: readonly string[]\n}\n\nasync function filesUnder(dir: string): Promise<string[]> {\n const entries = await readdir(dir, { withFileTypes: true, recursive: true })\n return entries.filter((e) => e.isFile()).map((e) => path.join(e.parentPath, e.name))\n}\n\nconst toPattern = (glob: string) =>\n new RegExp(`^${glob.replace(/[.+?^${}()|[\\]\\\\]/g, '\\\\$&').replace(/\\*/g, '.*')}$`)\n\n/** Runs `task` over `items`, `limit` at a time. */\nasync function eachLimited<T>(\n items: readonly T[],\n limit: number,\n task: (item: T) => Promise<void>\n) {\n let next = 0\n const worker = async () => {\n while (next < items.length) await task(items[next++])\n }\n await Promise.all(Array.from({ length: Math.min(limit, items.length) }, worker))\n}\n\n/**\n * Writes `<file>.br` (brotli, quality 11) and `<file>.gz` (gzip, level 9) beside every compressible\n * file of the build, including those copied from `public/`, so the web server sends them as they\n * are (nginx `gzip_static` / `brotli_static`): the smallest transfer, at no cost per request. Files\n * the deployment rewrites later are left out (`exclude`).\n */\nexport function precompress({\n minSize = 1024,\n exclude = PRECOMPRESS_EXCLUDE,\n}: PrecompressOptions = {}): Plugin {\n const br = promisify(brotliCompress)\n const gz = promisify(gzip)\n const excluded = exclude.map(toPattern)\n let outDir = ''\n return {\n name: 'arbi-precompress',\n apply: 'build',\n enforce: 'post',\n configResolved(config) {\n outDir = path.resolve(config.root, config.build.outDir)\n },\n async closeBundle() {\n const files = (await filesUnder(outDir)).filter(\n (f) => COMPRESSIBLE.test(f) && !excluded.some((p) => p.test(path.basename(f)))\n )\n // Brotli at quality 11 is CPU-heavy: a few files at a time.\n await eachLimited(files, 6, async (file) => {\n const data = await readFile(file)\n if (data.length < minSize) return\n const [brotli, gzipped] = await Promise.all([\n br(data, {\n params: {\n [constants.BROTLI_PARAM_QUALITY]: 11,\n [constants.BROTLI_PARAM_SIZE_HINT]: data.length,\n },\n }),\n gz(data, { level: 9 }),\n ])\n await Promise.all([writeFile(`${file}.br`, brotli), writeFile(`${file}.gz`, gzipped)])\n })\n },\n }\n}\n\n/**\n * The Word editor's text shaping loads `harfbuzz.wasm` with `new URL('harfbuzz.wasm',\n * import.meta.url)`. A build emits that asset, but the dev server's pre-bundle moves the editor into\n * `.vite/deps`, where the URL has no file and the SPA fallback answers with HTML (\"HarfBuzz shaping\n * failed\"). Serves the installed package's binary at that address. Dev server only.\n */\nexport function serveHarfBuzzWasm(): Plugin {\n return {\n name: 'arbi-harfbuzz-wasm',\n apply: 'serve',\n configureServer(server) {\n let wasm: string\n try {\n const require = createRequire(path.join(server.config.root, 'package.json'))\n wasm = path.join(path.dirname(require.resolve('@docx-editor.dev/core')), 'harfbuzz.wasm')\n } catch {\n return // The site does not use the Word editor.\n }\n server.middlewares.use((req, res, next) => {\n if (!req.url?.split('?')[0].endsWith('/.vite/deps/harfbuzz.wasm')) return next()\n res.setHeader('Content-Type', 'application/wasm')\n createReadStream(wasm).pipe(res)\n })\n },\n }\n}\n\nexport interface ArbiVitePluginsOptions {\n /** Precompress the build (`.br` and `.gz`). Default on. */\n precompress?: boolean | PrecompressOptions\n}\n\n/** The plugins every kit-built site uses: precompression and the Word editor's wasm in dev. */\nexport function arbiVitePlugins({\n precompress: compress = true,\n}: ArbiVitePluginsOptions = {}): Plugin[] {\n return [\n serveHarfBuzzWasm(),\n ...(compress ? [precompress(typeof compress === 'object' ? compress : {})] : []),\n ]\n}\n"]}
|
|
1
|
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AK,KAAK,IAAA,CAAK,OAAA,CAAQA,SAAQ,OAAA,CAAQ,uBAAuB,CAAC,CAAA,EAAG,eAAe,CAAA;AAAA,MAC1F,CAAA,CAAA,MAAQ;AACN,QAAA;AAAA,MACF;AACA,MAAA,MAAA,CAAO,WAAA,CAAY,GAAA,CAAI,CAAC,GAAA,EAAK,KAAK,IAAA,KAAS;AACzC,QAAA,IAAI,CAAC,GAAA,CAAI,GAAA,EAAK,KAAA,CAAM,GAAG,CAAA,CAAE,CAAC,CAAA,CAAE,QAAA,CAAS,2BAA2B,CAAA,EAAG,OAAO,IAAA,EAAK;AAC/E,QAAA,GAAA,CAAI,SAAA,CAAU,gBAAgB,kBAAkB,CAAA;AAChD,QAAA,gBAAA,CAAiB,IAAI,CAAA,CAAE,IAAA,CAAK,GAAG,CAAA;AAAA,MACjC,CAAC,CAAA;AAAA,IACH;AAAA,GACF;AACF;AAQO,SAAS,eAAA,CAAgB;AAAA,EAC9B,aAAa,QAAA,GAAW;AAC1B,CAAA,GAA4B,EAAC,EAAa;AACxC,EAAA,OAAO;AAAA,IACL,iBAAA,EAAkB;AAAA,IAClB,GAAI,QAAA,GAAW,CAAC,WAAA,CAAY,OAAO,QAAA,KAAa,QAAA,GAAW,QAAA,GAAW,EAAE,CAAC,CAAA,GAAI;AAAC,GAChF;AACF","file":"index.js","sourcesContent":["/**\n * `@arbidocs/blocks/vite`: the build settings every site built from the kits shares. Node only: a\n * site's `vite.config` imports it, never its browser code.\n *\n * In a site's `vite.config`: `plugins: [react(), ...arbiVitePlugins()]`, and the vendor groups as\n * `build.rolldownOptions.output.codeSplitting = codeSplitting()` (Vite 8) or\n * `build.rollupOptions.output.manualChunks = manualChunks` (Vite 6/7).\n *\n * The heavy kit parts (the Word editor, the PDF engine, the data grid, the calendar) are loaded on\n * demand by the kits themselves. Eager vendor groups leave them out: mixing shared helpers into\n * a lazy library chunk would make sign-in download the whole library. The Word editor has its\n * own size-bounded, entry-aware group that does not capture its shared dependencies.\n */\nimport { createReadStream } from 'node:fs'\nimport { readdir, readFile, writeFile } from 'node:fs/promises'\nimport { createRequire } from 'node:module'\nimport path from 'node:path'\nimport { promisify } from 'node:util'\nimport { brotliCompress, constants, gzip } from 'node:zlib'\nimport type { Plugin } from 'vite'\n\n/**\n * The vendor chunk a module belongs to, or null (left to the bundler): libraries every page loads\n * and that rarely change, so they stay cached across a site's deploys.\n */\nexport function vendorChunkOf(id: string): string | null {\n if (id.includes('node_modules/react/') || id.includes('node_modules/react-dom/'))\n return 'react-core'\n if (\n id.includes('node_modules/@radix-ui/') ||\n id.includes('node_modules/class-variance-authority/') ||\n id.includes('node_modules/clsx/') ||\n id.includes('node_modules/tailwind-merge/') ||\n id.includes('node_modules/tailwindcss-animate/')\n )\n return 'ui-components'\n if (id.includes('node_modules/react-router/') || id.includes('node_modules/react-router-dom/'))\n return 'routing'\n // KaTeX (rehype-katex / remark-math) is loaded on demand when content has math: left out.\n if (\n id.includes('node_modules/react-markdown/') ||\n (id.includes('node_modules/rehype-') && !id.includes('node_modules/rehype-katex/')) ||\n (id.includes('node_modules/remark-') && !id.includes('node_modules/remark-math/')) ||\n id.includes('node_modules/shiki/')\n )\n return 'markdown'\n if (\n id.includes('node_modules/zustand/') ||\n id.includes('node_modules/immer/') ||\n id.includes('node_modules/remeda/') ||\n id.includes('node_modules/@tanstack/react-query/')\n )\n return 'state-utils'\n if (id.includes('node_modules/framer-motion/') || id.includes('node_modules/sonner/'))\n return 'animation'\n if (\n id.includes('node_modules/@auth0/') ||\n id.includes('node_modules/axios/') ||\n id.includes('node_modules/js-cookie/')\n )\n return 'auth-api'\n // The end-to-end encryption library: needed at sign-in, large, and it never changes.\n if (id.includes('node_modules/libsodium')) return 'sodium'\n return null\n}\n\n/**\n * Rolldown's (Vite 8) `build.rolldownOptions.output.codeSplitting`. Vite's dynamic-import preload\n * helper gets its own chunk: left unpinned, the bundler parks it in a chunk that also imports\n * lazily, and the entry then preloads that whole chunk before the page renders.\n */\nexport function codeSplitting() {\n return {\n groups: [\n { name: 'preload-helper', test: /vite\\/preload-helper/, priority: 100 },\n { name: vendorChunkOf },\n // Vite's build-import lexer has a fixed WASM heap: the combined Word editor\n // can exceed it. Bound its chunks without pulling lazy editor code into an\n // eager vendor group or capturing its shared React/runtime dependencies.\n {\n name: 'docx-editor',\n test: /node_modules\\/@docx-editor\\.dev\\//,\n entriesAware: true,\n includeDependenciesRecursively: false,\n maxSize: 2_000_000,\n },\n ],\n }\n}\n\n/** Rollup's (Vite 6/7) `build.rollupOptions.output.manualChunks`, with the same vendor groups. */\nexport function manualChunks(id: string): string | undefined {\n return vendorChunkOf(id) ?? undefined\n}\n\nconst COMPRESSIBLE = /\\.(?:m?js|css|html|json|svg|wasm|txt|xml|webmanifest|ttf|otf)$/\n\n/**\n * Files a deployment rewrites after `vite build` (a compressed copy would serve the stale bytes):\n * the service worker (stamped with the build), the runtime config and web manifests (rendered when\n * the container starts), and `index.html` (tiny, and never cached).\n */\nexport const PRECOMPRESS_EXCLUDE: readonly string[] = [\n 'sw.js',\n 'config.json',\n '*.webmanifest',\n 'asset-manifest.json',\n 'index.html',\n]\n\nexport interface PrecompressOptions {\n /** Smallest file compressed, in bytes. Default 1024. */\n minSize?: number\n /**\n * File names (or `*` patterns, matched against the file name) never compressed: anything the\n * deployment changes after the build. Default `PRECOMPRESS_EXCLUDE`; pass your own list to\n * replace it (`[...PRECOMPRESS_EXCLUDE, 'extra.json']` to extend it).\n */\n exclude?: readonly string[]\n}\n\nasync function filesUnder(dir: string): Promise<string[]> {\n const entries = await readdir(dir, { withFileTypes: true, recursive: true })\n return entries.filter((e) => e.isFile()).map((e) => path.join(e.parentPath, e.name))\n}\n\nconst toPattern = (glob: string) =>\n new RegExp(`^${glob.replace(/[.+?^${}()|[\\]\\\\]/g, '\\\\$&').replace(/\\*/g, '.*')}$`)\n\n/** Runs `task` over `items`, `limit` at a time. */\nasync function eachLimited<T>(\n items: readonly T[],\n limit: number,\n task: (item: T) => Promise<void>\n) {\n let next = 0\n const worker = async () => {\n while (next < items.length) await task(items[next++])\n }\n await Promise.all(Array.from({ length: Math.min(limit, items.length) }, worker))\n}\n\n/**\n * Writes `<file>.br` (brotli, quality 11) and `<file>.gz` (gzip, level 9) beside every compressible\n * file of the build, including those copied from `public/`, so the web server sends them as they\n * are (nginx `gzip_static` / `brotli_static`): the smallest transfer, at no cost per request. Files\n * the deployment rewrites later are left out (`exclude`).\n */\nexport function precompress({\n minSize = 1024,\n exclude = PRECOMPRESS_EXCLUDE,\n}: PrecompressOptions = {}): Plugin {\n const br = promisify(brotliCompress)\n const gz = promisify(gzip)\n const excluded = exclude.map(toPattern)\n let outDir = ''\n return {\n name: 'arbi-precompress',\n apply: 'build',\n enforce: 'post',\n configResolved(config) {\n outDir = path.resolve(config.root, config.build.outDir)\n },\n async closeBundle() {\n const files = (await filesUnder(outDir)).filter(\n (f) => COMPRESSIBLE.test(f) && !excluded.some((p) => p.test(path.basename(f)))\n )\n // Brotli at quality 11 is CPU-heavy: a few files at a time.\n await eachLimited(files, 6, async (file) => {\n const data = await readFile(file)\n if (data.length < minSize) return\n const [brotli, gzipped] = await Promise.all([\n br(data, {\n params: {\n [constants.BROTLI_PARAM_QUALITY]: 11,\n [constants.BROTLI_PARAM_SIZE_HINT]: data.length,\n },\n }),\n gz(data, { level: 9 }),\n ])\n await Promise.all([writeFile(`${file}.br`, brotli), writeFile(`${file}.gz`, gzipped)])\n })\n },\n }\n}\n\n/**\n * The Word editor's text shaping loads `harfbuzz.wasm` with `new URL('harfbuzz.wasm',\n * import.meta.url)`. A build emits that asset, but the dev server's pre-bundle moves the editor into\n * `.vite/deps`, where the URL has no file and the SPA fallback answers with HTML (\"HarfBuzz shaping\n * failed\"). Serves the installed package's binary at that address. Dev server only.\n */\nexport function serveHarfBuzzWasm(): Plugin {\n return {\n name: 'arbi-harfbuzz-wasm',\n apply: 'serve',\n configureServer(server) {\n let wasm: string\n try {\n const require = createRequire(path.join(server.config.root, 'package.json'))\n wasm = path.join(path.dirname(require.resolve('@docx-editor.dev/core')), 'harfbuzz.wasm')\n } catch {\n return // The site does not use the Word editor.\n }\n server.middlewares.use((req, res, next) => {\n if (!req.url?.split('?')[0].endsWith('/.vite/deps/harfbuzz.wasm')) return next()\n res.setHeader('Content-Type', 'application/wasm')\n createReadStream(wasm).pipe(res)\n })\n },\n }\n}\n\nexport interface ArbiVitePluginsOptions {\n /** Precompress the build (`.br` and `.gz`). Default on. */\n precompress?: boolean | PrecompressOptions\n}\n\n/** The plugins every kit-built site uses: precompression and the Word editor's wasm in dev. */\nexport function arbiVitePlugins({\n precompress: compress = true,\n}: ArbiVitePluginsOptions = {}): Plugin[] {\n return [\n serveHarfBuzzWasm(),\n ...(compress ? [precompress(typeof compress === 'object' ? compress : {})] : []),\n ]\n}\n"]}
|