@arbidocs/blocks 0.5.21 → 0.5.23
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-ZWNWGEST.js → ConnectedCallDock-AQ33U57C.js} +7 -7
- package/dist/{ConnectedCallDock-ZWNWGEST.js.map → ConnectedCallDock-AQ33U57C.js.map} +1 -1
- package/dist/{ConnectedCallDock-7FPHYOMU.cjs → ConnectedCallDock-JRWGC6UT.cjs} +8 -8
- package/dist/{ConnectedCallDock-7FPHYOMU.cjs.map → ConnectedCallDock-JRWGC6UT.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-QAF3ZOEC.js → ConnectedCallRoom-5YNFPS6E.js} +7 -7
- package/dist/{ConnectedCallRoom-QAF3ZOEC.js.map → ConnectedCallRoom-5YNFPS6E.js.map} +1 -1
- package/dist/{ConnectedCallRoom-HSLYF6YL.cjs → ConnectedCallRoom-CCEIJAOG.cjs} +8 -8
- package/dist/{ConnectedCallRoom-HSLYF6YL.cjs.map → ConnectedCallRoom-CCEIJAOG.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-4X7H57LE.js → ConnectedNativeDocxComparison-GMQHSY3Z.js} +10 -10
- package/dist/{ConnectedNativeDocxComparison-4X7H57LE.js.map → ConnectedNativeDocxComparison-GMQHSY3Z.js.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-7WTVHEKI.cjs → ConnectedNativeDocxComparison-HH3PHNXU.cjs} +11 -11
- package/dist/{ConnectedNativeDocxComparison-7WTVHEKI.cjs.map → ConnectedNativeDocxComparison-HH3PHNXU.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxEditor-I6RQUSR3.js → ConnectedNativeDocxEditor-4IAKVBEF.js} +9 -9
- package/dist/{ConnectedNativeDocxEditor-I6RQUSR3.js.map → ConnectedNativeDocxEditor-4IAKVBEF.js.map} +1 -1
- package/dist/{ConnectedNativeDocxEditor-PZ2ASQO3.cjs → ConnectedNativeDocxEditor-JNHNZG3P.cjs} +11 -11
- package/dist/{ConnectedNativeDocxEditor-PZ2ASQO3.cjs.map → ConnectedNativeDocxEditor-JNHNZG3P.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-Q5KC4W7O.cjs → ConnectedStreamedWordArtifact-CZZOH667.cjs} +11 -11
- package/dist/ConnectedStreamedWordArtifact-CZZOH667.cjs.map +1 -0
- package/dist/{ConnectedStreamedWordArtifact-KCYSJ3B2.js → ConnectedStreamedWordArtifact-GLJCJPTP.js} +10 -10
- package/dist/ConnectedStreamedWordArtifact-GLJCJPTP.js.map +1 -0
- package/dist/agents/index.cjs +328 -328
- package/dist/agents/index.js +6 -6
- package/dist/auth/index.cjs +47 -47
- package/dist/auth/index.js +2 -2
- package/dist/calls/index.cjs +39 -39
- package/dist/calls/index.js +7 -7
- package/dist/chat/index.cjs +145 -145
- package/dist/chat/index.js +4 -4
- package/dist/{chunk-R2HXGTVB.cjs → chunk-2QQUGL2V.cjs} +2 -2
- package/dist/{chunk-R2HXGTVB.cjs.map → chunk-2QQUGL2V.cjs.map} +1 -1
- package/dist/{chunk-DTENNALR.js → chunk-44FPFTU2.js} +6 -6
- package/dist/{chunk-DTENNALR.js.map → chunk-44FPFTU2.js.map} +1 -1
- package/dist/{chunk-MJT7KHHT.cjs → chunk-75UVQKQ5.cjs} +52 -52
- package/dist/{chunk-MJT7KHHT.cjs.map → chunk-75UVQKQ5.cjs.map} +1 -1
- package/dist/{chunk-GK2U3VU6.cjs → chunk-7DDMF3DZ.cjs} +4 -4
- package/dist/{chunk-GK2U3VU6.cjs.map → chunk-7DDMF3DZ.cjs.map} +1 -1
- package/dist/{chunk-JWUUGVQR.js → chunk-7JJ7LU3T.js} +5 -5
- package/dist/{chunk-JWUUGVQR.js.map → chunk-7JJ7LU3T.js.map} +1 -1
- package/dist/{chunk-YT5OOFK3.js → chunk-7S76Q5RK.js} +3 -3
- package/dist/{chunk-YT5OOFK3.js.map → chunk-7S76Q5RK.js.map} +1 -1
- package/dist/{chunk-S5XIMM27.cjs → chunk-7ZHPLTGK.cjs} +9 -9
- package/dist/{chunk-S5XIMM27.cjs.map → chunk-7ZHPLTGK.cjs.map} +1 -1
- package/dist/{chunk-F6LC2CRB.js → chunk-AAVFCPKD.js} +6 -6
- package/dist/{chunk-F6LC2CRB.js.map → chunk-AAVFCPKD.js.map} +1 -1
- package/dist/{chunk-ZMYK7XTS.js → chunk-AF24CV6J.js} +3 -3
- package/dist/{chunk-ZMYK7XTS.js.map → chunk-AF24CV6J.js.map} +1 -1
- package/dist/{chunk-EW2ZGGWH.cjs → chunk-ASTMGLHT.cjs} +7 -7
- package/dist/{chunk-EW2ZGGWH.cjs.map → chunk-ASTMGLHT.cjs.map} +1 -1
- package/dist/{chunk-T4OJYZSY.cjs → chunk-B26FXLMG.cjs} +5 -5
- package/dist/{chunk-T4OJYZSY.cjs.map → chunk-B26FXLMG.cjs.map} +1 -1
- package/dist/{chunk-PFVCOUU6.cjs → chunk-BL74GYSA.cjs} +26 -26
- package/dist/{chunk-PFVCOUU6.cjs.map → chunk-BL74GYSA.cjs.map} +1 -1
- package/dist/{chunk-K237IYOD.cjs → chunk-BYJUI4AT.cjs} +54 -2
- package/dist/chunk-BYJUI4AT.cjs.map +1 -0
- package/dist/{chunk-F7IQGPZH.js → chunk-C6P2QW36.js} +5 -5
- package/dist/{chunk-F7IQGPZH.js.map → chunk-C6P2QW36.js.map} +1 -1
- package/dist/{chunk-KILCORJ7.js → chunk-DHPEUC6H.js} +3 -3
- package/dist/{chunk-KILCORJ7.js.map → chunk-DHPEUC6H.js.map} +1 -1
- package/dist/{chunk-MSPNYW6Z.cjs → chunk-DTLVC6MN.cjs} +2 -53
- package/dist/chunk-DTLVC6MN.cjs.map +1 -0
- package/dist/{chunk-MSCDYRSA.cjs → chunk-DXO2RXVQ.cjs} +4 -4
- package/dist/{chunk-MSCDYRSA.cjs.map → chunk-DXO2RXVQ.cjs.map} +1 -1
- package/dist/{chunk-FOW7TRQR.js → chunk-ENAXJ63V.js} +3 -3
- package/dist/{chunk-FOW7TRQR.js.map → chunk-ENAXJ63V.js.map} +1 -1
- package/dist/{chunk-MCU4HJDM.cjs → chunk-EWWVKXEQ.cjs} +4 -4
- package/dist/{chunk-MCU4HJDM.cjs.map → chunk-EWWVKXEQ.cjs.map} +1 -1
- package/dist/{chunk-UEDM2NNI.cjs → chunk-FCWS7I5C.cjs} +9 -9
- package/dist/{chunk-UEDM2NNI.cjs.map → chunk-FCWS7I5C.cjs.map} +1 -1
- package/dist/{chunk-525U3M3N.js → chunk-FUOCCKE4.js} +3 -3
- package/dist/{chunk-525U3M3N.js.map → chunk-FUOCCKE4.js.map} +1 -1
- package/dist/{chunk-BQQTLZBN.js → chunk-GRT4EH76.js} +2 -2
- package/dist/{chunk-BQQTLZBN.js.map → chunk-GRT4EH76.js.map} +1 -1
- package/dist/{chunk-YRHQ7OLG.cjs → chunk-I5RK4WAE.cjs} +8 -8
- package/dist/{chunk-YRHQ7OLG.cjs.map → chunk-I5RK4WAE.cjs.map} +1 -1
- package/dist/{chunk-YFLXVKMR.js → chunk-IKTPM73F.js} +4 -4
- package/dist/{chunk-YFLXVKMR.js.map → chunk-IKTPM73F.js.map} +1 -1
- package/dist/{chunk-YQJOWQDJ.cjs → chunk-IWT4QVQL.cjs} +4 -4
- package/dist/{chunk-YQJOWQDJ.cjs.map → chunk-IWT4QVQL.cjs.map} +1 -1
- package/dist/{chunk-5ZU2XYXO.cjs → chunk-KJVDYWAM.cjs} +30 -4
- package/dist/chunk-KJVDYWAM.cjs.map +1 -0
- package/dist/{chunk-CQU37FNV.cjs → chunk-KKT53TZQ.cjs} +5 -5
- package/dist/{chunk-CQU37FNV.cjs.map → chunk-KKT53TZQ.cjs.map} +1 -1
- package/dist/{chunk-RJY5NX72.cjs → chunk-KXSXIQSW.cjs} +12 -12
- package/dist/{chunk-RJY5NX72.cjs.map → chunk-KXSXIQSW.cjs.map} +1 -1
- package/dist/{chunk-SPSODKUF.js → chunk-M4FLTGFM.js} +5 -5
- package/dist/{chunk-SPSODKUF.js.map → chunk-M4FLTGFM.js.map} +1 -1
- package/dist/{chunk-K35WQH42.js → chunk-MD2XJASR.js} +3 -3
- package/dist/{chunk-K35WQH42.js.map → chunk-MD2XJASR.js.map} +1 -1
- package/dist/{chunk-KMF3ORIV.js → chunk-MQEN62NR.js} +3 -3
- package/dist/{chunk-KMF3ORIV.js.map → chunk-MQEN62NR.js.map} +1 -1
- package/dist/{chunk-J5J5JRPL.js → chunk-MUF3RFJZ.js} +4 -4
- package/dist/{chunk-J5J5JRPL.js.map → chunk-MUF3RFJZ.js.map} +1 -1
- package/dist/{chunk-K4PGCNCI.cjs → chunk-O4TCX6PD.cjs} +5 -5
- package/dist/{chunk-K4PGCNCI.cjs.map → chunk-O4TCX6PD.cjs.map} +1 -1
- package/dist/{chunk-KL6XOSEN.js → chunk-PLAGIVFF.js} +4 -52
- package/dist/chunk-PLAGIVFF.js.map +1 -0
- package/dist/{chunk-D3BHUDOU.js → chunk-PZRTRYPD.js} +3 -3
- package/dist/{chunk-D3BHUDOU.js.map → chunk-PZRTRYPD.js.map} +1 -1
- package/dist/{chunk-4C2S3Z3I.cjs → chunk-QW3SVHGM.cjs} +4 -4
- package/dist/{chunk-4C2S3Z3I.cjs.map → chunk-QW3SVHGM.cjs.map} +1 -1
- package/dist/{chunk-F4AJTY45.cjs → chunk-R7M5LN7D.cjs} +4 -4
- package/dist/{chunk-F4AJTY45.cjs.map → chunk-R7M5LN7D.cjs.map} +1 -1
- package/dist/{chunk-UNZUM76L.js → chunk-RRIXIUYD.js} +3 -3
- package/dist/{chunk-UNZUM76L.js.map → chunk-RRIXIUYD.js.map} +1 -1
- package/dist/{chunk-FQIJICZE.cjs → chunk-S4G3DNMA.cjs} +18 -18
- package/dist/{chunk-FQIJICZE.cjs.map → chunk-S4G3DNMA.cjs.map} +1 -1
- package/dist/{chunk-ML62FUHZ.js → chunk-SUDPZ5IQ.js} +3 -3
- package/dist/{chunk-ML62FUHZ.js.map → chunk-SUDPZ5IQ.js.map} +1 -1
- package/dist/{chunk-I3G7DQJH.cjs → chunk-T3VDKPKH.cjs} +18 -18
- package/dist/{chunk-I3G7DQJH.cjs.map → chunk-T3VDKPKH.cjs.map} +1 -1
- package/dist/{chunk-G2XAACRG.cjs → chunk-TATPWHHN.cjs} +5 -5
- package/dist/{chunk-G2XAACRG.cjs.map → chunk-TATPWHHN.cjs.map} +1 -1
- package/dist/{chunk-IJQ5DIZT.cjs → chunk-TTJGCJWX.cjs} +5 -5
- package/dist/{chunk-IJQ5DIZT.cjs.map → chunk-TTJGCJWX.cjs.map} +1 -1
- package/dist/{chunk-WYUFBKQ4.js → chunk-V5HVPQP7.js} +3 -3
- package/dist/{chunk-WYUFBKQ4.js.map → chunk-V5HVPQP7.js.map} +1 -1
- package/dist/{chunk-IXBJEQH5.js → chunk-VN4FSGBR.js} +53 -4
- package/dist/chunk-VN4FSGBR.js.map +1 -0
- package/dist/{chunk-BITGO5LI.cjs → chunk-VNHLFS6T.cjs} +4 -4
- package/dist/{chunk-BITGO5LI.cjs.map → chunk-VNHLFS6T.cjs.map} +1 -1
- package/dist/{chunk-CHHE2UNJ.js → chunk-WNC5INOD.js} +4 -4
- package/dist/{chunk-CHHE2UNJ.js.map → chunk-WNC5INOD.js.map} +1 -1
- package/dist/{chunk-6EGWPMPU.cjs → chunk-WPOQLGKJ.cjs} +14 -14
- package/dist/{chunk-6EGWPMPU.cjs.map → chunk-WPOQLGKJ.cjs.map} +1 -1
- package/dist/{chunk-FERNQVSH.js → chunk-X4Y7ZHFB.js} +30 -5
- package/dist/chunk-X4Y7ZHFB.js.map +1 -0
- package/dist/{chunk-UAFP562F.js → chunk-XL55UDLO.js} +3 -3
- package/dist/{chunk-UAFP562F.js.map → chunk-XL55UDLO.js.map} +1 -1
- package/dist/{chunk-P3HSWP2P.js → chunk-XVGUR746.js} +3 -3
- package/dist/{chunk-P3HSWP2P.js.map → chunk-XVGUR746.js.map} +1 -1
- package/dist/{chunk-YVA6SCVO.js → chunk-Y5ER2GAU.js} +3 -3
- package/dist/{chunk-YVA6SCVO.js.map → chunk-Y5ER2GAU.js.map} +1 -1
- package/dist/{chunk-O3TAF4ZM.js → chunk-Y7DWW5XD.js} +3 -3
- package/dist/{chunk-O3TAF4ZM.js.map → chunk-Y7DWW5XD.js.map} +1 -1
- package/dist/{chunk-APVKLXM5.cjs → chunk-YBTKLOGG.cjs} +4 -4
- package/dist/{chunk-APVKLXM5.cjs.map → chunk-YBTKLOGG.cjs.map} +1 -1
- package/dist/{chunk-YVEMNMIA.cjs → chunk-YOMT5FFH.cjs} +6 -6
- package/dist/{chunk-YVEMNMIA.cjs.map → chunk-YOMT5FFH.cjs.map} +1 -1
- package/dist/{chunk-VFZLZSJ3.js → chunk-ZYGQFD5Y.js} +3 -3
- package/dist/{chunk-VFZLZSJ3.js.map → chunk-ZYGQFD5Y.js.map} +1 -1
- package/dist/citations/index.cjs +10 -10
- package/dist/citations/index.js +2 -2
- package/dist/connect/docx.cjs +13 -13
- package/dist/connect/docx.js +9 -9
- package/dist/connect/index.cjs +1393 -866
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +1 -0
- package/dist/connect/index.js +575 -57
- package/dist/connect/index.js.map +1 -1
- package/dist/connect/viewer.cjs +77 -77
- package/dist/connect/viewer.js +12 -12
- package/dist/connection/auth/support.d.ts +17 -0
- package/dist/connection/auth/useLoginActions.d.ts +5 -0
- package/dist/connection/billing/ConnectedQuotaDialog.d.ts +5 -13
- package/dist/connection/billing/ProjectUsageContent.d.ts +7 -4
- package/dist/connection/billing/index.d.ts +2 -1
- package/dist/connection/connectors/ConnectedSharePointAdminConsentPage.d.ts +26 -0
- package/dist/connection/connectors/index.d.ts +1 -0
- package/dist/connection/defaultHost.d.ts +1 -1
- package/dist/connection/entities/ConnectedProjectEntity.d.ts +8 -0
- package/dist/connection/entities/ConnectedUserEntity.d.ts +20 -0
- package/dist/connection/entities/ConnectedWorkspaceEntity.d.ts +31 -0
- package/dist/connection/entities/index.d.ts +5 -0
- package/dist/connection/entities/renderConnectedUser.d.ts +6 -0
- package/dist/connection/settings-page/ConnectedAccountSettings.d.ts +2 -1
- package/dist/connection/settings-page/ConnectedBoxPortalSection.d.ts +6 -0
- package/dist/connection/settings-page/index.d.ts +1 -0
- package/dist/connection/settings-page/sections.d.ts +44 -0
- package/dist/facts/index.cjs +3 -3
- package/dist/facts/index.js +2 -2
- package/dist/files/index.cjs +223 -223
- package/dist/files/index.js +3 -3
- package/dist/home/index.cjs +30 -30
- package/dist/home/index.js +5 -5
- package/dist/index.cjs +643 -643
- package/dist/index.js +18 -18
- package/dist/provider/environment.d.ts +2 -0
- package/dist/retrieval/index.cjs +4 -4
- package/dist/retrieval/index.js +2 -2
- package/dist/shell/index.cjs +46 -46
- package/dist/shell/index.js +3 -3
- package/dist/studio/index.cjs +14 -14
- package/dist/studio/index.js +6 -6
- package/dist/workflow-canvas/index.cjs +26 -26
- package/dist/workflow-canvas/index.js +8 -8
- package/dist/workspaces/WorkspaceTypeBadge.d.ts +14 -0
- package/dist/workspaces/index.cjs +32 -28
- package/dist/workspaces/index.d.ts +1 -0
- package/dist/workspaces/index.js +4 -4
- package/node_modules/@arbidocs/coedit/dist/encoding.cjs +54 -56
- package/node_modules/@arbidocs/coedit/dist/encoding.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/encoding.d.cts +50 -14
- package/node_modules/@arbidocs/coedit/dist/encoding.d.ts +50 -14
- package/node_modules/@arbidocs/coedit/dist/encoding.js +54 -57
- package/node_modules/@arbidocs/coedit/dist/encoding.js.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.cjs +211 -109
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.js +211 -109
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.js.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/index.cjs +210 -108
- package/node_modules/@arbidocs/coedit/dist/index.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/index.d.cts +1 -1
- package/node_modules/@arbidocs/coedit/dist/index.d.ts +1 -1
- package/node_modules/@arbidocs/coedit/dist/index.js +210 -108
- package/node_modules/@arbidocs/coedit/dist/index.js.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.cjs +214 -112
- 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 +214 -112
- package/node_modules/@arbidocs/coedit/dist/server.js.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/template.cjs +3 -2
- package/node_modules/@arbidocs/coedit/dist/template.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/template.d.cts +5 -0
- package/node_modules/@arbidocs/coedit/dist/template.d.ts +5 -0
- package/node_modules/@arbidocs/coedit/dist/template.js +3 -2
- package/node_modules/@arbidocs/coedit/dist/template.js.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/{versions-DXiFQMA6.d.ts → versions-XSYTVmOU.d.cts} +1 -1
- package/node_modules/@arbidocs/coedit/dist/{versions-DXiFQMA6.d.cts → versions-XSYTVmOU.d.ts} +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/ConnectedStreamedWordArtifact-KCYSJ3B2.js.map +0 -1
- package/dist/ConnectedStreamedWordArtifact-Q5KC4W7O.cjs.map +0 -1
- package/dist/chunk-5ZU2XYXO.cjs.map +0 -1
- package/dist/chunk-FERNQVSH.js.map +0 -1
- package/dist/chunk-IXBJEQH5.js.map +0 -1
- package/dist/chunk-K237IYOD.cjs.map +0 -1
- package/dist/chunk-KL6XOSEN.js.map +0 -1
- package/dist/chunk-MSPNYW6Z.cjs.map +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunk75UVQKQ5_cjs = require('../chunk-75UVQKQ5.cjs');
|
|
5
|
+
var chunkS4G3DNMA_cjs = require('../chunk-S4G3DNMA.cjs');
|
|
6
6
|
require('../chunk-RFIBUWLF.cjs');
|
|
7
|
-
var
|
|
8
|
-
require('../chunk-
|
|
7
|
+
var chunkI5RK4WAE_cjs = require('../chunk-I5RK4WAE.cjs');
|
|
8
|
+
require('../chunk-KKT53TZQ.cjs');
|
|
9
9
|
require('../chunk-AQPZ4QMV.cjs');
|
|
10
10
|
require('../chunk-SIB6C7P7.cjs');
|
|
11
11
|
require('../chunk-DVUZTGVL.cjs');
|
|
12
12
|
require('../chunk-V4ISCZJ7.cjs');
|
|
13
13
|
require('../chunk-AHDJXIUB.cjs');
|
|
14
14
|
require('../chunk-2EI7NCUA.cjs');
|
|
15
|
-
require('../chunk-
|
|
15
|
+
require('../chunk-QW3SVHGM.cjs');
|
|
16
16
|
require('../chunk-LKK52DEY.cjs');
|
|
17
17
|
require('../chunk-VZOOGA47.cjs');
|
|
18
|
-
var
|
|
19
|
-
var
|
|
18
|
+
var chunkYOMT5FFH_cjs = require('../chunk-YOMT5FFH.cjs');
|
|
19
|
+
var chunkIWT4QVQL_cjs = require('../chunk-IWT4QVQL.cjs');
|
|
20
20
|
require('../chunk-MB3S2ETI.cjs');
|
|
21
21
|
require('../chunk-MEMWZ72Y.cjs');
|
|
22
22
|
require('../chunk-ZW6FPIFC.cjs');
|
|
@@ -27,7 +27,7 @@ require('../chunk-UFEXJIEY.cjs');
|
|
|
27
27
|
require('../chunk-FX3K6LNZ.cjs');
|
|
28
28
|
require('../chunk-CQ2YSHIF.cjs');
|
|
29
29
|
require('../chunk-PPCATBOY.cjs');
|
|
30
|
-
var
|
|
30
|
+
var chunk2QQUGL2V_cjs = require('../chunk-2QQUGL2V.cjs');
|
|
31
31
|
require('../chunk-SI222Z3A.cjs');
|
|
32
32
|
require('../chunk-ULWRNGGE.cjs');
|
|
33
33
|
require('../chunk-MHVNT4J3.cjs');
|
|
@@ -322,9 +322,9 @@ function SignalsEditor({
|
|
|
322
322
|
{
|
|
323
323
|
className: ui.cn(
|
|
324
324
|
"space-y-1.5 rounded-md border p-2",
|
|
325
|
-
|
|
325
|
+
chunkS4G3DNMA_cjs.isIncompleteSignal(signal) ? "border-destructive/50" : "border-border"
|
|
326
326
|
),
|
|
327
|
-
"data-incomplete":
|
|
327
|
+
"data-incomplete": chunkS4G3DNMA_cjs.isIncompleteSignal(signal) || void 0,
|
|
328
328
|
"data-testid": `${testId}-${i}`,
|
|
329
329
|
children: [
|
|
330
330
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -1610,7 +1610,7 @@ function triggerFields(trigger, clearOthers) {
|
|
|
1610
1610
|
return {
|
|
1611
1611
|
timezone: trigger.timezone,
|
|
1612
1612
|
rrule: trigger.start === "repeat" ? trigger.rrule.trim() : none,
|
|
1613
|
-
run_at: trigger.start === "once" ?
|
|
1613
|
+
run_at: trigger.start === "once" ? chunkS4G3DNMA_cjs.localInputToIso(trigger.runAt) : none,
|
|
1614
1614
|
event_kind: trigger.start === "event" ? trigger.eventKind.trim() : none,
|
|
1615
1615
|
// A step signal is `workflow_signal` narrowed to one signal name.
|
|
1616
1616
|
event_filter: filter ?? none,
|
|
@@ -1626,7 +1626,7 @@ function plan(value, options) {
|
|
|
1626
1626
|
criteria: [],
|
|
1627
1627
|
max_passes: 3,
|
|
1628
1628
|
documents: [],
|
|
1629
|
-
steps:
|
|
1629
|
+
steps: chunkS4G3DNMA_cjs.toPlanSteps(value.workflow, options)
|
|
1630
1630
|
};
|
|
1631
1631
|
}
|
|
1632
1632
|
function builderToWorkflowRequest(value, workspaceId, options = {}) {
|
|
@@ -1661,7 +1661,7 @@ function builderToWorkflowUpdate(value, options = {}) {
|
|
|
1661
1661
|
}
|
|
1662
1662
|
function workflowRecordToBuilder(record) {
|
|
1663
1663
|
const planned = record.plan?.steps ?? [];
|
|
1664
|
-
const steps = planned.length ?
|
|
1664
|
+
const steps = planned.length ? chunkS4G3DNMA_cjs.fromPlanSteps(planned) : record.prompt || record.skill_ref ? [
|
|
1665
1665
|
{
|
|
1666
1666
|
id: "work",
|
|
1667
1667
|
kind: "agent",
|
|
@@ -1669,7 +1669,7 @@ function workflowRecordToBuilder(record) {
|
|
|
1669
1669
|
...record.skill_ref ? { workflow: record.skill_ref } : { run: { kind: "prompt", promptTemplate: record.prompt } }
|
|
1670
1670
|
}
|
|
1671
1671
|
] : [];
|
|
1672
|
-
const when =
|
|
1672
|
+
const when = chunkS4G3DNMA_cjs.workflowWhen(record);
|
|
1673
1673
|
return {
|
|
1674
1674
|
workflow: {
|
|
1675
1675
|
id: record.external_id,
|
|
@@ -1678,12 +1678,12 @@ function workflowRecordToBuilder(record) {
|
|
|
1678
1678
|
inputs: [],
|
|
1679
1679
|
landing: "chat",
|
|
1680
1680
|
schedulable: false,
|
|
1681
|
-
run: { kind: "steps", steps, layout:
|
|
1681
|
+
run: { kind: "steps", steps, layout: chunkS4G3DNMA_cjs.layoutFromPlanSteps(planned ?? []) }
|
|
1682
1682
|
},
|
|
1683
1683
|
trigger: {
|
|
1684
1684
|
...DEFAULT_WORKFLOW_TRIGGER,
|
|
1685
1685
|
start: when === "now" ? "manual" : when,
|
|
1686
|
-
runAt:
|
|
1686
|
+
runAt: chunkS4G3DNMA_cjs.isoToLocalInput(record.run_at),
|
|
1687
1687
|
rrule: record.rrule ?? "",
|
|
1688
1688
|
timezone: record.timezone || DEFAULT_WORKFLOW_TRIGGER.timezone,
|
|
1689
1689
|
eventKind: record.event_kind ?? "",
|
|
@@ -1739,7 +1739,7 @@ function triggerSummary(trigger, options = {}) {
|
|
|
1739
1739
|
case "once":
|
|
1740
1740
|
return trigger.runAt ? new Date(trigger.runAt).toLocaleString() : l.starts.once;
|
|
1741
1741
|
case "repeat":
|
|
1742
|
-
return trigger.rrule ?
|
|
1742
|
+
return trigger.rrule ? chunkS4G3DNMA_cjs.describeRRule(trigger.rrule) : l.starts.repeat;
|
|
1743
1743
|
case "event":
|
|
1744
1744
|
if (isSignalTrigger(trigger))
|
|
1745
1745
|
return trigger.signal ? l.signalSummary.replace("{signal}", trigger.signal) : l.stepSignals;
|
|
@@ -1798,7 +1798,7 @@ function TriggerInspector({
|
|
|
1798
1798
|
}
|
|
1799
1799
|
)
|
|
1800
1800
|
] }),
|
|
1801
|
-
trigger.start === "repeat" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1801
|
+
trigger.start === "repeat" && /* @__PURE__ */ jsxRuntime.jsx(chunkS4G3DNMA_cjs.RecurrenceBuilder, { rrule: trigger.rrule, onChange: (rrule) => set({ rrule }) }),
|
|
1802
1802
|
trigger.start === "event" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
|
|
1803
1803
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs", children: l.event }),
|
|
1804
1804
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -1850,7 +1850,7 @@ function TriggerInspector({
|
|
|
1850
1850
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
|
|
1851
1851
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs", children: l.agent }),
|
|
1852
1852
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1853
|
-
|
|
1853
|
+
chunkI5RK4WAE_cjs.AgentSelect,
|
|
1854
1854
|
{
|
|
1855
1855
|
agents,
|
|
1856
1856
|
value: trigger.agentId,
|
|
@@ -2687,13 +2687,13 @@ function WorkflowPreview({
|
|
|
2687
2687
|
renderIcon,
|
|
2688
2688
|
testId
|
|
2689
2689
|
}) {
|
|
2690
|
-
const run =
|
|
2690
|
+
const run = chunk75UVQKQ5_cjs.useWorkflowPreview(workflow, {
|
|
2691
2691
|
resolveWorkflow: (id) => workflows.find((w) => w.id === id),
|
|
2692
2692
|
compose,
|
|
2693
2693
|
answer
|
|
2694
2694
|
});
|
|
2695
2695
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2696
|
-
|
|
2696
|
+
chunkS4G3DNMA_cjs.WorkflowRunner,
|
|
2697
2697
|
{
|
|
2698
2698
|
workflow,
|
|
2699
2699
|
run,
|
|
@@ -2769,14 +2769,14 @@ function ConnectedWorkflowBuilder({
|
|
|
2769
2769
|
...builderProps
|
|
2770
2770
|
}) {
|
|
2771
2771
|
const l = { ...DEFAULT_CONNECTED_WORKFLOW_BUILDER_LABELS, ...connectedLabels };
|
|
2772
|
-
const { notify, openConversation } =
|
|
2773
|
-
const { workspaceId, live, ensureWorkspaceOpen } =
|
|
2772
|
+
const { notify, openConversation } = chunk2QQUGL2V_cjs.useBlocksEnvironment();
|
|
2773
|
+
const { workspaceId, live, ensureWorkspaceOpen } = chunkIWT4QVQL_cjs.useConnectedWorkspace();
|
|
2774
2774
|
const members = react$2.useWorkspaceUsers(workspaceId ?? void 0, {
|
|
2775
2775
|
enabled: live && !!workspaceId,
|
|
2776
2776
|
beforeFetch: ensureWorkspaceOpen
|
|
2777
2777
|
});
|
|
2778
|
-
const { data: tagList } =
|
|
2779
|
-
const { data: docList } =
|
|
2778
|
+
const { data: tagList } = chunkYOMT5FFH_cjs.useConnectedTags();
|
|
2779
|
+
const { data: docList } = chunkYOMT5FFH_cjs.useListedDocuments();
|
|
2780
2780
|
const people = (members.data ?? []).map((m) => ({
|
|
2781
2781
|
value: m.user.external_id,
|
|
2782
2782
|
label: [m.user.given_name, m.user.family_name].filter(Boolean).join(" ") || m.user.email
|
|
@@ -2789,7 +2789,7 @@ function ConnectedWorkflowBuilder({
|
|
|
2789
2789
|
const saved = react$2.useWorkflows();
|
|
2790
2790
|
const skills = react$2.useSkills();
|
|
2791
2791
|
const agentsQuery = react$2.useAgents();
|
|
2792
|
-
const { data: conversations } =
|
|
2792
|
+
const { data: conversations } = chunkYOMT5FFH_cjs.useConnectedConversations();
|
|
2793
2793
|
const create = react$2.useCreateWorkflow();
|
|
2794
2794
|
const update = react$2.useUpdateWorkflow();
|
|
2795
2795
|
const run = react$2.useRunWorkflow();
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useWorkflowPreview } from '../chunk-
|
|
3
|
-
import { isIncompleteSignal, fromPlanSteps, workflowWhen, isoToLocalInput, layoutFromPlanSteps, describeRRule, RecurrenceBuilder, WorkflowRunner, toPlanSteps, localInputToIso } from '../chunk-
|
|
2
|
+
import { useWorkflowPreview } from '../chunk-C6P2QW36.js';
|
|
3
|
+
import { isIncompleteSignal, fromPlanSteps, workflowWhen, isoToLocalInput, layoutFromPlanSteps, describeRRule, RecurrenceBuilder, WorkflowRunner, toPlanSteps, localInputToIso } from '../chunk-44FPFTU2.js';
|
|
4
4
|
import '../chunk-CQCC7LE7.js';
|
|
5
|
-
import { AgentSelect } from '../chunk-
|
|
6
|
-
import '../chunk-
|
|
5
|
+
import { AgentSelect } from '../chunk-7S76Q5RK.js';
|
|
6
|
+
import '../chunk-MQEN62NR.js';
|
|
7
7
|
import '../chunk-G4GLDQLY.js';
|
|
8
8
|
import '../chunk-M4S75AEJ.js';
|
|
9
9
|
import '../chunk-5LXQPP2K.js';
|
|
10
10
|
import '../chunk-NUNKSZKU.js';
|
|
11
11
|
import '../chunk-RLWIUUQ5.js';
|
|
12
12
|
import '../chunk-YU2KUMGE.js';
|
|
13
|
-
import '../chunk-
|
|
13
|
+
import '../chunk-SUDPZ5IQ.js';
|
|
14
14
|
import '../chunk-7F5Z4K5W.js';
|
|
15
15
|
import '../chunk-WNDIVNPT.js';
|
|
16
|
-
import { useConnectedTags, useListedDocuments, useConnectedConversations } from '../chunk-
|
|
17
|
-
import { useConnectedWorkspace } from '../chunk-
|
|
16
|
+
import { useConnectedTags, useListedDocuments, useConnectedConversations } from '../chunk-DHPEUC6H.js';
|
|
17
|
+
import { useConnectedWorkspace } from '../chunk-RRIXIUYD.js';
|
|
18
18
|
import '../chunk-T4P237N6.js';
|
|
19
19
|
import '../chunk-ABEKUV6L.js';
|
|
20
20
|
import '../chunk-P6GHJSLR.js';
|
|
@@ -25,7 +25,7 @@ import '../chunk-5VYJP6XD.js';
|
|
|
25
25
|
import '../chunk-SLSBJRWW.js';
|
|
26
26
|
import '../chunk-GAGYAHYO.js';
|
|
27
27
|
import '../chunk-NPLYHR2E.js';
|
|
28
|
-
import { useBlocksEnvironment } from '../chunk-
|
|
28
|
+
import { useBlocksEnvironment } from '../chunk-GRT4EH76.js';
|
|
29
29
|
import '../chunk-U4HWVCRN.js';
|
|
30
30
|
import '../chunk-TX2ZICS7.js';
|
|
31
31
|
import '../chunk-7F6CBP3Z.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WorkspaceTypeBadge: a workspace's type badge (private, shared or public: icon, colour, label).
|
|
3
|
+
*/
|
|
4
|
+
import type { components } from '@arbidocs/client';
|
|
5
|
+
type Workspace = Pick<components['schemas']['WorkspaceResponse'], 'is_public' | 'users'>;
|
|
6
|
+
export interface WorkspaceTypeBadgeProps {
|
|
7
|
+
workspace: Workspace;
|
|
8
|
+
showTooltip?: boolean;
|
|
9
|
+
size?: 'sm' | 'md';
|
|
10
|
+
isSelected?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function WorkspaceTypeBadge({ workspace, showTooltip, size, isSelected, className, }: WorkspaceTypeBadgeProps): import("react").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkKJVDYWAM_cjs = require('../chunk-KJVDYWAM.cjs');
|
|
5
5
|
var chunkJUUOJP7I_cjs = require('../chunk-JUUOJP7I.cjs');
|
|
6
6
|
require('../chunk-UAEYU2NN.cjs');
|
|
7
7
|
require('../chunk-C2ECYOPP.cjs');
|
|
8
8
|
var chunk7G2LJMUG_cjs = require('../chunk-7G2LJMUG.cjs');
|
|
9
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-QW3SVHGM.cjs');
|
|
10
10
|
require('../chunk-UFEXJIEY.cjs');
|
|
11
|
-
require('../chunk-
|
|
11
|
+
require('../chunk-2QQUGL2V.cjs');
|
|
12
12
|
require('../chunk-SI222Z3A.cjs');
|
|
13
13
|
require('../chunk-ULWRNGGE.cjs');
|
|
14
14
|
require('../chunk-MHVNT4J3.cjs');
|
|
@@ -63,7 +63,7 @@ function WorkspaceGallery({
|
|
|
63
63
|
const opening = workspace.id === activeOpeningId;
|
|
64
64
|
const state = { current, opening };
|
|
65
65
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
66
|
-
|
|
66
|
+
chunkKJVDYWAM_cjs.WorkspaceCard,
|
|
67
67
|
{
|
|
68
68
|
workspace,
|
|
69
69
|
current,
|
|
@@ -86,99 +86,103 @@ function WorkspaceGallery({
|
|
|
86
86
|
|
|
87
87
|
Object.defineProperty(exports, "CommonWorkspaceToggle", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkKJVDYWAM_cjs.CommonWorkspaceToggle; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "DEFAULT_WORKSPACE_CARD_LABELS", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkKJVDYWAM_cjs.DEFAULT_WORKSPACE_CARD_LABELS; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "ExpandableSection", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkKJVDYWAM_cjs.ExpandableSection; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "FormActions", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkKJVDYWAM_cjs.FormActions; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "FormErrorBanner", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkKJVDYWAM_cjs.FormErrorBanner; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "ItalicNone", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkKJVDYWAM_cjs.ItalicNone; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "LeaveFooter", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkKJVDYWAM_cjs.LeaveFooter; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "ModalActionRow", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkKJVDYWAM_cjs.ModalActionRow; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "PageLoading", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkKJVDYWAM_cjs.PageLoading; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "ProjectActionButton", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkKJVDYWAM_cjs.ProjectActionButton; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "ProjectOptionRow", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkKJVDYWAM_cjs.ProjectOptionRow; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "ProjectPicker", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkKJVDYWAM_cjs.ProjectPicker; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "WorkspaceAudienceLine", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkKJVDYWAM_cjs.WorkspaceAudienceLine; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "WorkspaceCard", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkKJVDYWAM_cjs.WorkspaceCard; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "WorkspaceFieldsView", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkKJVDYWAM_cjs.WorkspaceFieldsView; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "WorkspaceFormModal", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkKJVDYWAM_cjs.WorkspaceFormModal; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "WorkspaceGroup", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkKJVDYWAM_cjs.WorkspaceGroup; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "WorkspaceIdentityPanel", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkKJVDYWAM_cjs.WorkspaceIdentityPanel; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "WorkspaceList", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkKJVDYWAM_cjs.WorkspaceList; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "WorkspacePageFrame", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkKJVDYWAM_cjs.WorkspacePageFrame; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "WorkspaceProjectSlot", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkKJVDYWAM_cjs.WorkspaceProjectSlot; }
|
|
170
|
+
});
|
|
171
|
+
Object.defineProperty(exports, "WorkspaceTypeBadge", {
|
|
172
|
+
enumerable: true,
|
|
173
|
+
get: function () { return chunkKJVDYWAM_cjs.WorkspaceTypeBadge; }
|
|
170
174
|
});
|
|
171
175
|
Object.defineProperty(exports, "formatRole", {
|
|
172
176
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkKJVDYWAM_cjs.formatRole; }
|
|
174
178
|
});
|
|
175
179
|
Object.defineProperty(exports, "getRoleBadgeClass", {
|
|
176
180
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkKJVDYWAM_cjs.getRoleBadgeClass; }
|
|
178
182
|
});
|
|
179
183
|
Object.defineProperty(exports, "getRoleDescription", {
|
|
180
184
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkKJVDYWAM_cjs.getRoleDescription; }
|
|
182
186
|
});
|
|
183
187
|
Object.defineProperty(exports, "NO_PROJECT_GROUP_KEY", {
|
|
184
188
|
enumerable: true,
|
|
@@ -8,6 +8,7 @@ export { WorkspacePageFrame, WorkspaceIdentityPanel, WorkspaceProjectSlot, Itali
|
|
|
8
8
|
export type { WorkspaceProjectSlotProps, WorkspaceAudienceLineProps, LeaveFooterProps, } from './WorkspaceSettingsParts';
|
|
9
9
|
export { RoleBadge, WorkspaceTypeBadgeView } from './WorkspaceBadges';
|
|
10
10
|
export type { RoleBadgeProps, WorkspaceTypeBadgeViewProps } from './WorkspaceBadges';
|
|
11
|
+
export { WorkspaceTypeBadge, type WorkspaceTypeBadgeProps } from './WorkspaceTypeBadge';
|
|
11
12
|
export { FormErrorBanner, FormActions, ModalActionRow, WorkspaceFormModal, ProjectOptionRow, ProjectPicker, ProjectActionButton, WorkspaceFieldsView, type WorkspaceFormModalProps, type ProjectPickerOption, type ProjectPickerProps, type WorkspaceFieldsViewProps, type WorkspaceFieldsLabels, } from './WorkspaceFormParts';
|
|
12
13
|
export { getHumanUserCount, getWorkspaceTypeInfo, getVariantBgClass, getVariantBorderClass, type WorkspaceVariant, } from './workspace-type';
|
|
13
14
|
export { CommonWorkspaceToggle, type CommonWorkspaceToggleProps } from './CommonWorkspaceToggle';
|
package/dist/workspaces/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { WorkspaceCard } from '../chunk-
|
|
3
|
-
export { CommonWorkspaceToggle, DEFAULT_WORKSPACE_CARD_LABELS, ExpandableSection, FormActions, FormErrorBanner, ItalicNone, LeaveFooter, ModalActionRow, PageLoading, ProjectActionButton, ProjectOptionRow, ProjectPicker, WorkspaceAudienceLine, WorkspaceCard, WorkspaceFieldsView, WorkspaceFormModal, WorkspaceGroup, WorkspaceIdentityPanel, WorkspaceList, WorkspacePageFrame, WorkspaceProjectSlot, formatRole, getRoleBadgeClass, getRoleDescription } from '../chunk-
|
|
2
|
+
import { WorkspaceCard } from '../chunk-X4Y7ZHFB.js';
|
|
3
|
+
export { CommonWorkspaceToggle, DEFAULT_WORKSPACE_CARD_LABELS, ExpandableSection, FormActions, FormErrorBanner, ItalicNone, LeaveFooter, ModalActionRow, PageLoading, ProjectActionButton, ProjectOptionRow, ProjectPicker, WorkspaceAudienceLine, WorkspaceCard, WorkspaceFieldsView, WorkspaceFormModal, WorkspaceGroup, WorkspaceIdentityPanel, WorkspaceList, WorkspacePageFrame, WorkspaceProjectSlot, WorkspaceTypeBadge, formatRole, getRoleBadgeClass, getRoleDescription } from '../chunk-X4Y7ZHFB.js';
|
|
4
4
|
export { NO_PROJECT_GROUP_KEY, WORKSPACE_CATEGORY_FILTERS, byRecentUpdate, getHumanUserCount, getVariantBgClass, getVariantBorderClass, getWorkspaceTypeInfo, groupWorkspacesByProject, isAgentAccount, isListedWorkspace, projectFilterId, workspaceConversationCount, workspaceDocumentCount, workspaceFilterAttributes, workspaceGroupStats } from '../chunk-BTF4AZMG.js';
|
|
5
5
|
import '../chunk-WZ63HE2C.js';
|
|
6
6
|
import '../chunk-FUPAGAZB.js';
|
|
7
7
|
export { RoleBadge, WorkspaceTypeBadgeView } from '../chunk-NBV56SGU.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-SUDPZ5IQ.js';
|
|
9
9
|
import '../chunk-5VYJP6XD.js';
|
|
10
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-GRT4EH76.js';
|
|
11
11
|
import '../chunk-U4HWVCRN.js';
|
|
12
12
|
import '../chunk-TX2ZICS7.js';
|
|
13
13
|
import '../chunk-7F6CBP3Z.js';
|
|
@@ -334,6 +334,20 @@ function writeUnits(text, units) {
|
|
|
334
334
|
function isRichParagraph(map) {
|
|
335
335
|
return map.has("inline");
|
|
336
336
|
}
|
|
337
|
+
var PACKED = "xml";
|
|
338
|
+
function isPackedElement(map) {
|
|
339
|
+
return map.has(PACKED);
|
|
340
|
+
}
|
|
341
|
+
var TEXT_BEARING = /* @__PURE__ */ new Set(["p", "t", "delText", "instrText", "delInstrText"]);
|
|
342
|
+
function packable(xml) {
|
|
343
|
+
if (xml.ns === WML && TEXT_BEARING.has(xml.local)) return false;
|
|
344
|
+
return xml.children.every((c) => typeof c === "string" || packable(c));
|
|
345
|
+
}
|
|
346
|
+
function createPacked(xml, scope) {
|
|
347
|
+
const map = new Y__namespace.Map();
|
|
348
|
+
map.set(PACKED, serializeXml(xml, scope));
|
|
349
|
+
return map;
|
|
350
|
+
}
|
|
337
351
|
function isParagraphEl(el) {
|
|
338
352
|
return el.ns === WML && el.local === "p";
|
|
339
353
|
}
|
|
@@ -353,57 +367,47 @@ function newText(value) {
|
|
|
353
367
|
text.insert(0, value);
|
|
354
368
|
return text;
|
|
355
369
|
}
|
|
356
|
-
function createRichParagraph(xml, encoded) {
|
|
370
|
+
function createRichParagraph(xml, encoded, scope = /* @__PURE__ */ new Map()) {
|
|
357
371
|
const map = new Y__namespace.Map();
|
|
358
372
|
fieldsOf(map, xml);
|
|
373
|
+
const inner = withBindings(scope, xml.bindings);
|
|
359
374
|
const children = new Y__namespace.Array();
|
|
360
|
-
children.push(encoded.head.map((el) => xmlToLive(el)));
|
|
375
|
+
children.push(encoded.head.map((el) => xmlToLive(el, inner)));
|
|
361
376
|
map.set("children", children);
|
|
362
377
|
const inline = new Y__namespace.Text();
|
|
363
378
|
writeUnits(inline, encoded.units);
|
|
364
379
|
map.set("inline", inline);
|
|
365
380
|
return map;
|
|
366
381
|
}
|
|
367
|
-
function
|
|
382
|
+
function withBindings(scope, bindings) {
|
|
383
|
+
const inner = new Map(scope);
|
|
384
|
+
for (const b of bindings) inner.set(b.prefix, b.ns);
|
|
385
|
+
return inner;
|
|
386
|
+
}
|
|
387
|
+
function xmlToLive(xml, scope = /* @__PURE__ */ new Map(), root = false) {
|
|
368
388
|
if (isParagraphEl(xml)) {
|
|
369
389
|
const encoded = encodeParagraph(xml.children);
|
|
370
|
-
if (encoded) return createRichParagraph(xml, encoded);
|
|
390
|
+
if (encoded) return createRichParagraph(xml, encoded, scope);
|
|
371
391
|
}
|
|
372
|
-
return
|
|
373
|
-
}
|
|
374
|
-
function xmlToGenericLive(xml) {
|
|
392
|
+
if (!root && packable(xml)) return createPacked(xml, scope);
|
|
375
393
|
const map = new Y__namespace.Map();
|
|
376
394
|
fieldsOf(map, xml);
|
|
395
|
+
const inner = withBindings(scope, xml.bindings);
|
|
377
396
|
const children = new Y__namespace.Array();
|
|
378
|
-
children.push(xml.children.map((c) => typeof c === "string" ? newText(c) : xmlToLive(c)));
|
|
397
|
+
children.push(xml.children.map((c) => typeof c === "string" ? newText(c) : xmlToLive(c, inner)));
|
|
379
398
|
map.set("children", children);
|
|
380
399
|
return map;
|
|
381
400
|
}
|
|
382
|
-
function liveToXml(map) {
|
|
383
|
-
const prefix = map.get("prefix");
|
|
384
|
-
const stored = map.get("children").toArray().map((child) => child instanceof Y__namespace.Text ? child.toString() : liveToXml(child));
|
|
385
|
-
const children = isRichParagraph(map) ? [...stored, ...decodeInline(readUnits(map.get("inline")))] : stored;
|
|
386
|
-
const xml = {
|
|
387
|
-
ns: map.get("ns"),
|
|
388
|
-
local: map.get("local"),
|
|
389
|
-
attrs: map.get("attrs").toArray().map((a) => ({ ...a })),
|
|
390
|
-
bindings: map.get("bindings").toArray().map((b) => ({ ...b })),
|
|
391
|
-
children
|
|
392
|
-
};
|
|
393
|
-
if (prefix !== void 0) xml.prefix = prefix;
|
|
394
|
-
return xml;
|
|
395
|
-
}
|
|
396
401
|
var escapeText = (value) => value.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
397
402
|
var escapeAttr = (value) => value.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/\t/g, "	").replace(/\n/g, " ").replace(/\r/g, " ");
|
|
398
403
|
var qualified = (prefix, local) => prefix ? `${prefix}:${local}` : local;
|
|
399
|
-
function
|
|
400
|
-
const inScope =
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
for (const b of el.bindings) {
|
|
404
|
+
function startTag(prefix, local, bindings, attrs, scope) {
|
|
405
|
+
const inScope = withBindings(scope, bindings);
|
|
406
|
+
let out = `<${qualified(prefix, local)}`;
|
|
407
|
+
for (const b of bindings) {
|
|
404
408
|
out += b.prefix === "" ? ` xmlns="${escapeAttr(b.ns)}"` : ` xmlns:${b.prefix}="${escapeAttr(b.ns)}"`;
|
|
405
409
|
}
|
|
406
|
-
for (const a of
|
|
410
|
+
for (const a of attrs) {
|
|
407
411
|
let p = a.prefix;
|
|
408
412
|
if (a.ns !== "" && !p) {
|
|
409
413
|
for (const [candidate, uri] of inScope) {
|
|
@@ -415,48 +419,41 @@ function serializeXml(el, scope) {
|
|
|
415
419
|
}
|
|
416
420
|
out += ` ${qualified(p, a.local)}="${escapeAttr(a.value)}"`;
|
|
417
421
|
}
|
|
422
|
+
return [out, inScope];
|
|
423
|
+
}
|
|
424
|
+
function serializeXml(el, scope) {
|
|
425
|
+
const [out, inScope] = startTag(el.prefix, el.local, el.bindings, el.attrs, scope);
|
|
418
426
|
if (el.children.length === 0) return `${out}/>`;
|
|
419
|
-
|
|
427
|
+
let body = "";
|
|
420
428
|
for (const child of el.children) {
|
|
421
|
-
|
|
429
|
+
body += typeof child === "string" ? escapeText(child) : serializeXml(child, inScope);
|
|
422
430
|
}
|
|
423
|
-
return `${out}</${qualified(el.prefix, el.local)}>`;
|
|
431
|
+
return `${out}>${body}</${qualified(el.prefix, el.local)}>`;
|
|
424
432
|
}
|
|
425
433
|
function serializeLive(el, scope) {
|
|
426
|
-
if (
|
|
434
|
+
if (isPackedElement(el)) return el.get(PACKED);
|
|
427
435
|
const prefix = el.get("prefix");
|
|
428
436
|
const local = el.get("local");
|
|
429
437
|
const bindings = el.get("bindings").toArray();
|
|
430
438
|
const attrs = el.get("attrs").toArray();
|
|
431
439
|
const children = el.get("children").toArray();
|
|
432
|
-
const inScope =
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
out += b.prefix === "" ? ` xmlns="${escapeAttr(b.ns)}"` : ` xmlns:${b.prefix}="${escapeAttr(b.ns)}"`;
|
|
437
|
-
}
|
|
438
|
-
for (const a of attrs) {
|
|
439
|
-
let p = a.prefix;
|
|
440
|
-
if (a.ns !== "" && !p) {
|
|
441
|
-
for (const [candidate, uri] of inScope) {
|
|
442
|
-
if (candidate !== "" && uri === a.ns) {
|
|
443
|
-
p = candidate;
|
|
444
|
-
break;
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
out += ` ${qualified(p, a.local)}="${escapeAttr(a.value)}"`;
|
|
449
|
-
}
|
|
450
|
-
if (children.length === 0) return `${out}/>`;
|
|
451
|
-
out += ">";
|
|
440
|
+
const [out, inScope] = startTag(prefix, local, bindings, attrs, scope);
|
|
441
|
+
const inline = isRichParagraph(el) ? decodeInline(readUnits(el.get("inline"))) : [];
|
|
442
|
+
if (children.length === 0 && inline.length === 0) return `${out}/>`;
|
|
443
|
+
let body = "";
|
|
452
444
|
for (const child of children) {
|
|
453
|
-
|
|
445
|
+
body += child instanceof Y__namespace.Text ? escapeText(child.toString()) : serializeLive(child, inScope);
|
|
454
446
|
}
|
|
455
|
-
|
|
447
|
+
for (const child of inline) body += serializeXml(child, inScope);
|
|
448
|
+
return `${out}>${body}</${qualified(prefix, local)}>`;
|
|
456
449
|
}
|
|
457
450
|
|
|
458
451
|
// src/encoding.ts
|
|
459
|
-
var COLLAB_FORMAT = "arbi-docx/
|
|
452
|
+
var COLLAB_FORMAT = "arbi-docx/2";
|
|
453
|
+
var READABLE_FORMATS = /* @__PURE__ */ new Set(["arbi-docx/1", COLLAB_FORMAT]);
|
|
454
|
+
function isReadableFormat(format) {
|
|
455
|
+
return format !== void 0 && READABLE_FORMATS.has(format);
|
|
456
|
+
}
|
|
460
457
|
function isText(node) {
|
|
461
458
|
return node.kind === "textValue";
|
|
462
459
|
}
|
|
@@ -477,7 +474,7 @@ function canonicalToXml(node) {
|
|
|
477
474
|
return xml;
|
|
478
475
|
}
|
|
479
476
|
function encodeElement(el) {
|
|
480
|
-
return xmlToLive(canonicalToXml(el));
|
|
477
|
+
return xmlToLive(canonicalToXml(el), /* @__PURE__ */ new Map(), true);
|
|
481
478
|
}
|
|
482
479
|
function encodeText(value) {
|
|
483
480
|
return newText(value);
|
|
@@ -742,6 +739,7 @@ exports.contentTypeOf = contentTypeOf;
|
|
|
742
739
|
exports.encodeElement = encodeElement;
|
|
743
740
|
exports.encodeText = encodeText;
|
|
744
741
|
exports.isBootstrapped = isBootstrapped;
|
|
742
|
+
exports.isReadableFormat = isReadableFormat;
|
|
745
743
|
exports.materialize = materialize;
|
|
746
744
|
exports.materializeBytes = materializeBytes;
|
|
747
745
|
exports.readFormat = readFormat;
|