@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
|
@@ -14,6 +14,11 @@ export declare function useLoginActions({ formState, formActions, }: {
|
|
|
14
14
|
handleSsoLogin: (connection?: string) => void;
|
|
15
15
|
handleLocalLogin: (opts?: {
|
|
16
16
|
isFreshRegistration?: boolean;
|
|
17
|
+
/** Sign in with these, not the form's (a sign-in link's). */
|
|
18
|
+
credentials?: {
|
|
19
|
+
email: string;
|
|
20
|
+
password: string;
|
|
21
|
+
};
|
|
17
22
|
}) => Promise<void>;
|
|
18
23
|
handleRegister: (saveRecoveryKey?: boolean) => Promise<void>;
|
|
19
24
|
handleRequestVerificationCode: () => Promise<void>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The dialog shown when a project's AI usage for the month is used up (a 402 `QUOTA_EXCEEDED`: an
|
|
3
3
|
* API call, a chat send, a document's processing). The host decides when (`info`), and what a Box
|
|
4
|
-
* deployment's admin opens (`
|
|
4
|
+
* deployment's admin opens the portal (`runtimeConfig.licenceUrl`); billing opens through
|
|
5
|
+
* `environment.openProject`.
|
|
5
6
|
*
|
|
6
7
|
* One sentence and the actions that get the user going again, by project (the add-on state is only
|
|
7
8
|
* visible to the owner of a Pro project). The usage cap limits automatic top-ups only, so adding AI
|
|
@@ -11,8 +12,8 @@
|
|
|
11
12
|
* - Pro, cap reached → "Usage cap reached: no more automatic top-ups this month." / Add and "Raise cap".
|
|
12
13
|
* - Pro otherwise (the automatic top-up failed) → the billing error / Add.
|
|
13
14
|
* - Free (or not the owner) → "Upgrade", which opens the plan picker of the project.
|
|
14
|
-
* - Box deployment
|
|
15
|
-
* "Open the ARBI portal"
|
|
15
|
+
* - Box deployment → members: "Ask your Box admin to add more." (no purchase); Box admins:
|
|
16
|
+
* "Open the ARBI portal", where the Box is administered. No Box billing here.
|
|
16
17
|
*/
|
|
17
18
|
/** What used up: the project's spend against its budget (£), and the server's message. */
|
|
18
19
|
export interface QuotaExceededInfo {
|
|
@@ -21,18 +22,9 @@ export interface QuotaExceededInfo {
|
|
|
21
22
|
projectExtId: string | null;
|
|
22
23
|
message?: string;
|
|
23
24
|
}
|
|
24
|
-
/** A Box deployment: its AI usage is the firm's, administered in the ARBI portal. */
|
|
25
|
-
export interface QuotaDialogBox {
|
|
26
|
-
/** The viewer administers the Box (else they ask their admin). */
|
|
27
|
-
isAdmin: boolean;
|
|
28
|
-
/** The Box's licence page in the portal. */
|
|
29
|
-
portalUrl: string;
|
|
30
|
-
}
|
|
31
25
|
export interface ConnectedQuotaDialogProps {
|
|
32
26
|
/** Open with what was used up; `null`: closed. */
|
|
33
27
|
info: QuotaExceededInfo | null;
|
|
34
28
|
onClose: () => void;
|
|
35
|
-
/** On a Box deployment. Absent: a project's own billing. */
|
|
36
|
-
box?: QuotaDialogBox;
|
|
37
29
|
}
|
|
38
|
-
export declare function ConnectedQuotaDialog({ info, onClose: close
|
|
30
|
+
export declare function ConnectedQuotaDialog({ info, onClose: close }: ConnectedQuotaDialogProps): import("react").JSX.Element;
|
|
@@ -2,17 +2,20 @@
|
|
|
2
2
|
* ProjectUsageContent — inline AI usage breakdown for a project.
|
|
3
3
|
*
|
|
4
4
|
* SVG line chart with composite color-coded lines.
|
|
5
|
-
* Toggle between breakdowns: User (default), Workspace, Model Tier.
|
|
5
|
+
* Toggle between breakdowns: User (default), Workspace, Model Tier, and (opt in) Feature.
|
|
6
6
|
* Resolves usr-xxx / wrk-xxx IDs to real names via workspace data.
|
|
7
7
|
* Data from LiteLLM via /v1/user/projects/{id}/usage.
|
|
8
8
|
*
|
|
9
9
|
* Rendered inline in the project card expander (no dialog).
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
/** What the breakdown groups AI usage by. */
|
|
12
|
+
export type UsageBreakdownKey = 'user' | 'workspace' | 'model' | 'feature';
|
|
13
|
+
export interface ProjectUsageContentProps {
|
|
12
14
|
projectExtId: string;
|
|
13
15
|
projectName: string;
|
|
14
16
|
/** Monthly AI usage quota in £ (quotas.ai_usage.limit) — enables the % indicator */
|
|
15
17
|
aiUsageLimit?: number;
|
|
18
|
+
/** The breakdowns offered, the first selected. Default: user, workspace, model tier. */
|
|
19
|
+
breakdowns?: readonly UsageBreakdownKey[];
|
|
16
20
|
}
|
|
17
|
-
export declare function ProjectUsageContent({ projectExtId, projectName, aiUsageLimit, }: ProjectUsageContentProps): import("react").JSX.Element;
|
|
18
|
-
export {};
|
|
21
|
+
export declare function ProjectUsageContent({ projectExtId, projectName, aiUsageLimit, breakdowns, }: ProjectUsageContentProps): import("react").JSX.Element;
|
|
@@ -20,5 +20,6 @@ export { REFERRAL_OFFER, useReferralReward } from './referral-reward';
|
|
|
20
20
|
export { isProProject, planBadgeView, planName } from './plan-badge';
|
|
21
21
|
export { aiUsageResetTimestamp, formatResetDate, getQuotaItems } from './quota-items';
|
|
22
22
|
export { CAP_REACHED_MESSAGE, ZERO_BUDGET_MESSAGE, isAddonBudgetZero } from './addon-pricing';
|
|
23
|
-
export { ConnectedQuotaDialog, type ConnectedQuotaDialogProps, type
|
|
23
|
+
export { ConnectedQuotaDialog, type ConnectedQuotaDialogProps, type QuotaExceededInfo, } from './ConnectedQuotaDialog';
|
|
24
24
|
export { ConnectedWelcomeDialog, type ConnectedWelcomeDialogProps } from './ConnectedWelcomeDialog';
|
|
25
|
+
export { ProjectUsageContent, type ProjectUsageContentProps, type UsageBreakdownKey, } from './ProjectUsageContent';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SharePoint org admin-consent page — PUBLIC (no sign-in). Requests go to the environment's API
|
|
3
|
+
* base URL (`runtimeConfig.apiBaseUrl`).
|
|
4
|
+
*
|
|
5
|
+
* The enterprise story: a user wants SharePoint sync, but their Microsoft
|
|
6
|
+
* tenant requires an IT admin to approve the app's Sites.Read.All scope. The
|
|
7
|
+
* admin almost never has (or wants) an ARBI account, so this page gives them a
|
|
8
|
+
* standalone place to grant the org-wide consent:
|
|
9
|
+
*
|
|
10
|
+
* 1. A user copies this page's link from the SharePoint connector row and
|
|
11
|
+
* sends it to their admin.
|
|
12
|
+
* 2. The admin opens it, reviews what will be granted, and clicks Approve —
|
|
13
|
+
* which redirects to Microsoft's admin-consent screen
|
|
14
|
+
* (GET /v1/connectors/microsoft_sharepoint/admin-consent, public endpoint).
|
|
15
|
+
* 3. Microsoft sends them back here with ?result=granted|declined and this
|
|
16
|
+
* page shows the outcome.
|
|
17
|
+
*
|
|
18
|
+
* After the grant, users in that tenant connect SharePoint themselves — this
|
|
19
|
+
* page only unlocks the org-level permission wall; it grants no data access by
|
|
20
|
+
* itself (per-user OAuth + sealed tokens still gate every mailbox/site).
|
|
21
|
+
*/
|
|
22
|
+
export interface ConnectedSharePointAdminConsentPageProps {
|
|
23
|
+
/** The outcome Microsoft sends back (`?result=granted|declined`). Default: the page's query. */
|
|
24
|
+
result?: string | null;
|
|
25
|
+
}
|
|
26
|
+
export declare function ConnectedSharePointAdminConsentPage({ result: givenResult, }?: ConnectedSharePointAdminConsentPageProps): import("react").JSX.Element;
|
|
@@ -2,3 +2,4 @@ export { ConnectedAppsSettings, type ConnectedAppsSettingsProps } from './Connec
|
|
|
2
2
|
export { ConnectedMailboxSyncDialog, type ConnectedMailboxSyncDialogProps, } from './ConnectedMailboxSyncDialog';
|
|
3
3
|
export { ConnectedDriveSyncDialog, type ConnectedDriveSyncDialogProps, } from './ConnectedDriveSyncDialog';
|
|
4
4
|
export { BACKFILL_OPTIONS, windowLabel } from './sync-labels';
|
|
5
|
+
export { ConnectedSharePointAdminConsentPage, type ConnectedSharePointAdminConsentPageProps, } from './ConnectedSharePointAdminConsentPage';
|
|
@@ -6,4 +6,4 @@ export interface DefaultHostOptions {
|
|
|
6
6
|
queryClient?: QueryClient;
|
|
7
7
|
}
|
|
8
8
|
/** `arbi` and the sign-in layer (`connection`) for `<ArbiHost config>`. Call it once per site. */
|
|
9
|
-
export declare function defaultHost(config: ArbiConnectionConfig, { queryClient }?: DefaultHostOptions): Pick<ArbiHostConfig, 'arbi' | 'connection'>;
|
|
9
|
+
export declare function defaultHost(config: ArbiConnectionConfig, { queryClient }?: DefaultHostOptions): Pick<ArbiHostConfig, 'arbi' | 'connection' | 'documents'>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A project, connected: the shared project pill (`ProjectEntity` in `@arbidocs/react/ui`), marked
|
|
3
|
+
* paid when its subscription is active and this site sells plans (`billing.stripeEnabled`).
|
|
4
|
+
*/
|
|
5
|
+
import type { ComponentProps } from 'react';
|
|
6
|
+
import { ProjectEntity } from '@arbidocs/react/ui';
|
|
7
|
+
export type ConnectedProjectEntityProps = Omit<ComponentProps<typeof ProjectEntity>, 'isPaid'>;
|
|
8
|
+
export declare function ConnectedProjectEntity({ subscription, ...props }: ConnectedProjectEntityProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { components } from '@arbidocs/client';
|
|
2
|
+
type UserResponse = components['schemas']['UserResponse'];
|
|
3
|
+
export interface ConnectedUserEntityProps {
|
|
4
|
+
user?: UserResponse | null;
|
|
5
|
+
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
6
|
+
variant?: 'icon' | 'pill';
|
|
7
|
+
className?: string;
|
|
8
|
+
/** Hovering shows their card (default true). */
|
|
9
|
+
showTooltip?: boolean;
|
|
10
|
+
/** The presence dot (default true). */
|
|
11
|
+
showPresence?: boolean;
|
|
12
|
+
/** A click opens the chat with them, or your settings (default true). */
|
|
13
|
+
interactive?: boolean;
|
|
14
|
+
/** An unread mark on the chat icon. */
|
|
15
|
+
hasUnreadMessages?: boolean;
|
|
16
|
+
/** Your own label in place of "You" (e.g. "Ada Lovelace (me)" in a call). */
|
|
17
|
+
selfLabel?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const ConnectedUserEntity: import("react").NamedExoticComponent<ConnectedUserEntityProps>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A workspace, connected: its shield (in its status colour: private, shared or common) and name,
|
|
3
|
+
* with a hover card of its type, counts, storage and last update. A click on the pill opens the
|
|
4
|
+
* workspace (`useConnectedWorkspace().openWorkspace`: selected first under the sign-in layer, then
|
|
5
|
+
* the host's `openWorkspace`).
|
|
6
|
+
*/
|
|
7
|
+
import { type ComponentProps, type JSX } from 'react';
|
|
8
|
+
import { ShieldIcon } from '@arbidocs/react/ui';
|
|
9
|
+
import type { components } from '@arbidocs/client';
|
|
10
|
+
type Workspace = components['schemas']['WorkspaceResponse'];
|
|
11
|
+
export interface ConnectedWorkspaceEntityProps extends Omit<ComponentProps<typeof ShieldIcon>, 'char' | 'workspaceColor'> {
|
|
12
|
+
workspace: Workspace;
|
|
13
|
+
size?: number;
|
|
14
|
+
isSelected?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
/** `icon`: the shield alone; `pill` (default): the shield and the name. */
|
|
17
|
+
variant?: 'icon' | 'pill';
|
|
18
|
+
/** The pill's size: `sm` (default) for compact rows, `base` for tab headers. */
|
|
19
|
+
pillSize?: 'sm' | 'base';
|
|
20
|
+
/** A click on the pill opens the workspace (default true). */
|
|
21
|
+
interactive?: boolean;
|
|
22
|
+
/** Hovering shows its card (default true). */
|
|
23
|
+
showTooltip?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The label's max-width class. Default `max-w-[10ch]`, a compact badge in dense rows; a wider
|
|
26
|
+
* class for primary listings, or `max-w-full` to truncate against a narrow parent.
|
|
27
|
+
*/
|
|
28
|
+
labelMaxWidth?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare function ConnectedWorkspaceEntity({ workspace, size, isSelected, className, variant, pillSize, interactive, showTooltip, labelMaxWidth, ...shieldProps }: ConnectedWorkspaceEntityProps): JSX.Element;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** People, workspaces and projects, connected to the session (presence, "You", open on click). */
|
|
2
|
+
export { ConnectedUserEntity, type ConnectedUserEntityProps } from './ConnectedUserEntity';
|
|
3
|
+
export { ConnectedWorkspaceEntity, type ConnectedWorkspaceEntityProps, } from './ConnectedWorkspaceEntity';
|
|
4
|
+
export { ConnectedProjectEntity, type ConnectedProjectEntityProps } from './ConnectedProjectEntity';
|
|
5
|
+
export { renderConnectedUser } from './renderConnectedUser';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DocumentsSupport } from '@arbidocs/react';
|
|
2
|
+
/**
|
|
3
|
+
* People in the document kits (a version's author, a comment, an activity entry) as connected
|
|
4
|
+
* entities: the host configuration's `documents.renderUser`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const renderConnectedUser: NonNullable<DocumentsSupport['renderUser']>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The Account section of a settings page, bound to the signed-in account: profile and ID check,
|
|
3
|
-
* security, the session card (server connection, active sessions, sign
|
|
3
|
+
* a Box admin's portal link, security, the session card (server connection, active sessions, sign
|
|
4
|
+
* out) and the danger zone.
|
|
4
5
|
* What only the host knows is a prop: the recovery-key download, its admin links, its socket and
|
|
5
6
|
* its billing page.
|
|
6
7
|
*/
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Account settings, Box admins only: one row linking to the Box's page in the ARBI portal
|
|
3
|
+
* (`runtimeConfig.licenceUrl`), where the Box is administered (users, storage, AI usage, budget,
|
|
4
|
+
* billing). Nothing for anyone else, or where the host gives no portal.
|
|
5
|
+
*/
|
|
6
|
+
export declare function ConnectedBoxPortalSection(): import("react").JSX.Element | null;
|
|
@@ -4,3 +4,4 @@ export { ConnectedMailSettings, type ConnectedMailSettingsProps } from './Connec
|
|
|
4
4
|
export { ConnectedPrivacySettings, type ConnectedPrivacySettingsProps, } from './ConnectedPrivacySettings';
|
|
5
5
|
export { ConnectedPremiumModels } from './ConnectedPremiumModels';
|
|
6
6
|
export { SessionStatusIcon, renderSessionStatusIcon } from './SessionStatusIcon';
|
|
7
|
+
export { usageSettingsSection, connectionSettingsSection, organisationSettingsSection, type UsageSettingsSectionOptions, type ConnectionSettingsSectionOptions, type OrganisationSettingsSectionOptions, } from './sections';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Settings sections a site adds as data (`ConnectedSettingsPage sections`): the signed-in user's AI
|
|
3
|
+
* usage today, the connection to the backend (a `defaultHost` site's sign-in layer), and the site's
|
|
4
|
+
* own organisation details from config. Each is a factory returning a `SettingsPageSection`; a
|
|
5
|
+
* site's words (its brand, "Firm", a regulator's number) come in through the options.
|
|
6
|
+
*/
|
|
7
|
+
import type { ReactNode } from 'react';
|
|
8
|
+
import type { SettingsPageSection } from '../../settings/SettingsPage';
|
|
9
|
+
export interface UsageSettingsSectionOptions {
|
|
10
|
+
/** The section's icon (a site's accent). Default: a gauge. */
|
|
11
|
+
icon?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
/** Usage: the signed-in user's AI usage today, in £ ex VAT. */
|
|
14
|
+
export declare function usageSettingsSection({ icon, }?: UsageSettingsSectionOptions): SettingsPageSection;
|
|
15
|
+
export interface ConnectionSettingsSectionOptions {
|
|
16
|
+
/** The tab's and the section's name. Default: "Connection". */
|
|
17
|
+
label?: string;
|
|
18
|
+
/** More rows under the connection's own (what the site states about its backend). */
|
|
19
|
+
rows?: ReactNode;
|
|
20
|
+
/** The section's icon (a site's accent). Default: a cloud. */
|
|
21
|
+
icon?: ReactNode;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Connection: whether the site is connected to its backend, the backend's URL, who is signed in
|
|
25
|
+
* and the selected workspace. For a site on `defaultHost`'s sign-in layer; empty without one.
|
|
26
|
+
*/
|
|
27
|
+
export declare function connectionSettingsSection({ label, rows, icon, }?: ConnectionSettingsSectionOptions): SettingsPageSection;
|
|
28
|
+
export interface OrganisationSettingsSectionOptions {
|
|
29
|
+
/** The tab's name. Default: "Organisation". */
|
|
30
|
+
label?: string;
|
|
31
|
+
/** The section's heading. Default: the label. */
|
|
32
|
+
title?: string;
|
|
33
|
+
/** A line under the heading (a regulatory statement, say). */
|
|
34
|
+
description?: ReactNode;
|
|
35
|
+
/** The section's icon. Default: a building. */
|
|
36
|
+
icon?: ReactNode;
|
|
37
|
+
/** The details, in order: a label and its value. */
|
|
38
|
+
rows: {
|
|
39
|
+
label: string;
|
|
40
|
+
value: ReactNode;
|
|
41
|
+
}[];
|
|
42
|
+
}
|
|
43
|
+
/** The site's own organisation details, from its config (name, registration, address…). */
|
|
44
|
+
export declare function organisationSettingsSection({ label, title, description, icon, rows, }: OrganisationSettingsSectionOptions): SettingsPageSection;
|
package/dist/facts/index.cjs
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var chunkYD3RN2FY_cjs = require('../chunk-YD3RN2FY.cjs');
|
|
5
5
|
require('../chunk-2WLXQGWC.cjs');
|
|
6
6
|
var chunk5FYU7ZIU_cjs = require('../chunk-5FYU7ZIU.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkYBTKLOGG_cjs = require('../chunk-YBTKLOGG.cjs');
|
|
8
8
|
require('../chunk-VPPX5XUF.cjs');
|
|
9
9
|
var chunkRC25WMVB_cjs = require('../chunk-RC25WMVB.cjs');
|
|
10
10
|
require('../chunk-V4ISCZJ7.cjs');
|
|
@@ -15,7 +15,7 @@ require('../chunk-MEMWZ72Y.cjs');
|
|
|
15
15
|
var chunkUFEXJIEY_cjs = require('../chunk-UFEXJIEY.cjs');
|
|
16
16
|
require('../chunk-FX3K6LNZ.cjs');
|
|
17
17
|
require('../chunk-PPCATBOY.cjs');
|
|
18
|
-
require('../chunk-
|
|
18
|
+
require('../chunk-2QQUGL2V.cjs');
|
|
19
19
|
require('../chunk-SI222Z3A.cjs');
|
|
20
20
|
require('../chunk-ULWRNGGE.cjs');
|
|
21
21
|
var chunkMHVNT4J3_cjs = require('../chunk-MHVNT4J3.cjs');
|
|
@@ -331,7 +331,7 @@ function FactSearchResult({
|
|
|
331
331
|
}
|
|
332
332
|
),
|
|
333
333
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
334
|
-
|
|
334
|
+
chunkYBTKLOGG_cjs.SearchHit,
|
|
335
335
|
{
|
|
336
336
|
className: "min-w-0 flex-1",
|
|
337
337
|
testId: chunkMHVNT4J3_cjs.testIdOr(testIds?.hit?.(id), { testId: `facts-smart-search-hit-${id}` }),
|
package/dist/facts/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { DEFAULT_FACT_COLUMN_LABELS, createFactColumns, FactRowActions } from '.
|
|
|
3
3
|
export { DEFAULT_FACTS_BULK_BAR_LABELS, DEFAULT_FACTS_EMPTY_STATE_LABELS, DEFAULT_FACTS_FIELDS_BUTTON_LABELS, DEFAULT_FACTS_TOOLBAR_LABELS, DEFAULT_FACTS_VIEW_TOGGLE_LABELS, DEFAULT_FACT_COLUMN_LABELS, DEFAULT_FACT_COLUMN_ORDER, DEFAULT_FACT_COMPOSER_LABELS, DEFAULT_FACT_DATE_INPUT_LABELS, DEFAULT_FACT_LABELS_CELL_LABELS, DEFAULT_FACT_ROW_ACTIONS_LABELS, DEFAULT_FACT_SOURCES_ROW_LABELS, DEFAULT_FACT_SOURCE_GROUP_LABELS, DEFAULT_FACT_TIMELINE_LABELS, EMPTY_FACT_DATE_FIELDS, FactComposer, FactDateInput, FactFieldRow, FactLabelsCell, FactRowActions, FactSourceGroup, FactSourcesRow, FactsBulkBar, FactsCalendar, FactsEmptyState, FactsFieldsButton, FactsGanttPane, FactsLoadError, FactsLoading, FactsToolbar, FactsViewToggle, ISO_DATE_FILTER_PARAMS, buildFactCitations, chronologyFactBodies, chunkIdsOf, citedVersionRef, createFactColumns, docIdsOf, enableFactTableColumnResize, factDateFieldsToSpan, factDateSpanToFields, hasChunk, isWholeDoc, parseChronologyDate, sourceDocCount, toFactCitations, withChunk, withDoc, withoutChunk, withoutDoc } from '../chunk-75Z5AUMM.js';
|
|
4
4
|
import '../chunk-JJA6GQKH.js';
|
|
5
5
|
export { DEFAULT_FACT_PASSAGES_LABELS, FactPassageItem, FactSourcesPanel, renderPreviewInline, toPreviewLine } from '../chunk-HFZ45FD3.js';
|
|
6
|
-
import { SearchHit } from '../chunk-
|
|
6
|
+
import { SearchHit } from '../chunk-V5HVPQP7.js';
|
|
7
7
|
import '../chunk-4EZVCGRL.js';
|
|
8
8
|
export { decodeWhitespaceEntities } from '../chunk-AF6RDAJF.js';
|
|
9
9
|
import '../chunk-NUNKSZKU.js';
|
|
@@ -14,7 +14,7 @@ import '../chunk-ABEKUV6L.js';
|
|
|
14
14
|
import { initials } from '../chunk-5VYJP6XD.js';
|
|
15
15
|
import '../chunk-SLSBJRWW.js';
|
|
16
16
|
import '../chunk-NPLYHR2E.js';
|
|
17
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-GRT4EH76.js';
|
|
18
18
|
import '../chunk-U4HWVCRN.js';
|
|
19
19
|
import '../chunk-TX2ZICS7.js';
|
|
20
20
|
import { testIdOr } from '../chunk-7F6CBP3Z.js';
|