@arbidocs/blocks 0.5.115 → 0.5.116
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/{ConnectedNativeDocxComparison-YXMYJWXY.cjs → ConnectedNativeDocxComparison-546ILGLW.cjs} +8 -8
- package/dist/{ConnectedNativeDocxComparison-YXMYJWXY.cjs.map → ConnectedNativeDocxComparison-546ILGLW.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-2RTCHVPI.cjs → ConnectedStreamedWordArtifact-S2ZFZLZQ.cjs} +8 -8
- package/dist/{ConnectedStreamedWordArtifact-2RTCHVPI.cjs.map → ConnectedStreamedWordArtifact-S2ZFZLZQ.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-I5QIHQZT.cjs → FilesViewerDialog-6UKR5WEF.cjs} +6 -6
- package/dist/{FilesViewerDialog-I5QIHQZT.cjs.map → FilesViewerDialog-6UKR5WEF.cjs.map} +1 -1
- package/dist/{NativeDocxEditor-H6TAEVGY.cjs → NativeDocxEditor-2LQY2CTV.cjs} +6 -6
- package/dist/{NativeDocxEditor-H6TAEVGY.cjs.map → NativeDocxEditor-2LQY2CTV.cjs.map} +1 -1
- package/dist/{chunk-M6IKVKU5.cjs → chunk-2CSLFAGF.cjs} +392 -149
- package/dist/chunk-2CSLFAGF.cjs.map +1 -0
- package/dist/{chunk-24EDG4PC.cjs → chunk-B2HNNG25.cjs} +5 -5
- package/dist/{chunk-24EDG4PC.cjs.map → chunk-B2HNNG25.cjs.map} +1 -1
- package/dist/{chunk-IW7CDJTA.cjs → chunk-COD5ENHK.cjs} +4 -4
- package/dist/{chunk-IW7CDJTA.cjs.map → chunk-COD5ENHK.cjs.map} +1 -1
- package/dist/chunk-HB2O4THB.cjs +18 -0
- package/dist/{chunk-CIHERNDO.cjs.map → chunk-HB2O4THB.cjs.map} +1 -1
- package/dist/{chunk-WR2SF44W.cjs → chunk-NIE3N6OM.cjs} +4 -4
- package/dist/{chunk-WR2SF44W.cjs.map → chunk-NIE3N6OM.cjs.map} +1 -1
- package/dist/{chunk-ZTXQIIFV.cjs → chunk-QHOHDNBU.cjs} +6 -6
- package/dist/{chunk-ZTXQIIFV.cjs.map → chunk-QHOHDNBU.cjs.map} +1 -1
- package/dist/{chunk-A3T3IC3K.cjs → chunk-SB4M3ITT.cjs} +190 -36
- package/dist/chunk-SB4M3ITT.cjs.map +1 -0
- package/dist/{chunk-X5LANJDZ.cjs → chunk-VGCTYTEW.cjs} +14 -6
- package/dist/chunk-VGCTYTEW.cjs.map +1 -0
- package/dist/{chunk-3A7QWUAW.cjs → chunk-VKH3BEZE.cjs} +3 -3
- package/dist/{chunk-3A7QWUAW.cjs.map → chunk-VKH3BEZE.cjs.map} +1 -1
- package/dist/{chunk-42TURFHF.cjs → chunk-YGBHY67W.cjs} +5 -5
- package/dist/{chunk-42TURFHF.cjs.map → chunk-YGBHY67W.cjs.map} +1 -1
- package/dist/connect/docx.cjs +12 -12
- package/dist/connect/index.cjs +78 -78
- package/dist/connect/viewer.cjs +4 -4
- package/dist/connection/docx/ConnectedNativeDocxEditor.js +10 -2
- package/dist/connection/docx/ConnectedNativeDocxEditor.js.map +2 -2
- package/dist/connection/viewer/ConnectedDocumentViewer.js +124 -21
- package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
- package/dist/connection/viewer/VersionDropdown.d.ts +9 -0
- package/dist/connection/viewer/VersionDropdown.js +39 -0
- package/dist/connection/viewer/VersionDropdown.js.map +7 -0
- package/dist/connection/viewer/ViewerPdfPane.js +4 -1
- package/dist/connection/viewer/ViewerPdfPane.js.map +2 -2
- package/dist/connection/viewer/useViewerBlobs.d.ts +3 -1
- package/dist/connection/viewer/useViewerBlobs.js +14 -8
- package/dist/connection/viewer/useViewerBlobs.js.map +2 -2
- package/dist/connection/viewer/useViewerTabs.js +10 -0
- package/dist/connection/viewer/useViewerTabs.js.map +2 -2
- package/dist/docx/DocxCommandMenu.d.ts +8 -0
- package/dist/docx/DocxCommandMenu.js +202 -0
- package/dist/docx/DocxCommandMenu.js.map +7 -0
- package/dist/docx/NativeDocxEditor.d.ts +4 -2
- package/dist/docx/NativeDocxEditor.js +51 -12
- package/dist/docx/NativeDocxEditor.js.map +2 -2
- package/dist/docx/RibbonMenu.d.ts +3 -1
- package/dist/docx/RibbonMenu.js +10 -3
- package/dist/docx/RibbonMenu.js.map +2 -2
- package/dist/docx/RibbonOverflow.d.ts +3 -0
- package/dist/docx/RibbonOverflow.js +24 -1
- package/dist/docx/RibbonOverflow.js.map +2 -2
- package/dist/docx/index.cjs +38 -38
- package/dist/docx/signatures/SignatureFields.d.ts +3 -1
- package/dist/docx/signatures/SignatureFields.js +17 -8
- package/dist/docx/signatures/SignatureFields.js.map +2 -2
- package/dist/index.cjs +50 -50
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/index.cjs +9 -9
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/src/docx/styles.css +94 -0
- package/dist/chunk-A3T3IC3K.cjs.map +0 -1
- package/dist/chunk-CIHERNDO.cjs +0 -18
- package/dist/chunk-M6IKVKU5.cjs.map +0 -1
- package/dist/chunk-X5LANJDZ.cjs.map +0 -1
package/dist/connect/index.cjs
CHANGED
|
@@ -7,7 +7,7 @@ var chunkCPG7II4E_cjs = require('../chunk-CPG7II4E.cjs');
|
|
|
7
7
|
var chunkT23UTIRI_cjs = require('../chunk-T23UTIRI.cjs');
|
|
8
8
|
var chunkPSIKUQYM_cjs = require('../chunk-PSIKUQYM.cjs');
|
|
9
9
|
var chunkKTQOGT2L_cjs = require('../chunk-KTQOGT2L.cjs');
|
|
10
|
-
var
|
|
10
|
+
var chunkB2HNNG25_cjs = require('../chunk-B2HNNG25.cjs');
|
|
11
11
|
var chunkCMGNRMPA_cjs = require('../chunk-CMGNRMPA.cjs');
|
|
12
12
|
var chunkYZ6YOOTF_cjs = require('../chunk-YZ6YOOTF.cjs');
|
|
13
13
|
var chunkKWJW5TMH_cjs = require('../chunk-KWJW5TMH.cjs');
|
|
@@ -35,7 +35,7 @@ var chunkNJCK6V6U_cjs = require('../chunk-NJCK6V6U.cjs');
|
|
|
35
35
|
var chunkNNUK5ZM7_cjs = require('../chunk-NNUK5ZM7.cjs');
|
|
36
36
|
var chunk223D4727_cjs = require('../chunk-223D4727.cjs');
|
|
37
37
|
var chunkSNUBQMIS_cjs = require('../chunk-SNUBQMIS.cjs');
|
|
38
|
-
var
|
|
38
|
+
var chunkVGCTYTEW_cjs = require('../chunk-VGCTYTEW.cjs');
|
|
39
39
|
var chunk4ONPEVTP_cjs = require('../chunk-4ONPEVTP.cjs');
|
|
40
40
|
require('../chunk-V3KLUWQQ.cjs');
|
|
41
41
|
var chunkP5AQYC4D_cjs = require('../chunk-P5AQYC4D.cjs');
|
|
@@ -49,7 +49,7 @@ require('../chunk-JH6JTI76.cjs');
|
|
|
49
49
|
var chunkQQMMCXBP_cjs = require('../chunk-QQMMCXBP.cjs');
|
|
50
50
|
require('../chunk-DTMBAFIL.cjs');
|
|
51
51
|
require('../chunk-ZESMRGDV.cjs');
|
|
52
|
-
var
|
|
52
|
+
var chunkNIE3N6OM_cjs = require('../chunk-NIE3N6OM.cjs');
|
|
53
53
|
var chunkSGYSDABK_cjs = require('../chunk-SGYSDABK.cjs');
|
|
54
54
|
require('../chunk-NEGFHF3V.cjs');
|
|
55
55
|
var chunkZ3LFF3YT_cjs = require('../chunk-Z3LFF3YT.cjs');
|
|
@@ -74,7 +74,7 @@ require('../chunk-SK6HQ46Q.cjs');
|
|
|
74
74
|
var chunkMNIQDXM6_cjs = require('../chunk-MNIQDXM6.cjs');
|
|
75
75
|
var chunkE3Y7RI3J_cjs = require('../chunk-E3Y7RI3J.cjs');
|
|
76
76
|
require('../chunk-VLCY46K6.cjs');
|
|
77
|
-
var
|
|
77
|
+
var chunkVKH3BEZE_cjs = require('../chunk-VKH3BEZE.cjs');
|
|
78
78
|
var chunkULPTSXXO_cjs = require('../chunk-ULPTSXXO.cjs');
|
|
79
79
|
var chunkZU2B2RZK_cjs = require('../chunk-ZU2B2RZK.cjs');
|
|
80
80
|
var chunkNSD37OF5_cjs = require('../chunk-NSD37OF5.cjs');
|
|
@@ -256,7 +256,7 @@ function ConnectedWorkspaceActivity({
|
|
|
256
256
|
[feed.data]
|
|
257
257
|
);
|
|
258
258
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
259
|
-
|
|
259
|
+
chunkNIE3N6OM_cjs.WorkspaceActivityList,
|
|
260
260
|
{
|
|
261
261
|
...listProps,
|
|
262
262
|
items,
|
|
@@ -2083,7 +2083,7 @@ function ConnectedSkillsBrowser({
|
|
|
2083
2083
|
}
|
|
2084
2084
|
) }),
|
|
2085
2085
|
runSkillId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2086
|
-
|
|
2086
|
+
chunkB2HNNG25_cjs.ConnectedTaskComposer,
|
|
2087
2087
|
{
|
|
2088
2088
|
kind: "workflow",
|
|
2089
2089
|
open: true,
|
|
@@ -2693,7 +2693,7 @@ function useMemoryCount(enabled) {
|
|
|
2693
2693
|
}
|
|
2694
2694
|
function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
2695
2695
|
const { notify: notify19, openConversation, openDocument } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
2696
|
-
const people =
|
|
2696
|
+
const people = chunkB2HNNG25_cjs.useTaskPeople();
|
|
2697
2697
|
const canEditShared = react.useCanEditShared();
|
|
2698
2698
|
const isWorkspaceOwner = react.useIsWorkspaceOwner();
|
|
2699
2699
|
const { data: workflows = [] } = react.useWorkflows({ live: true });
|
|
@@ -2746,7 +2746,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
|
2746
2746
|
}
|
|
2747
2747
|
),
|
|
2748
2748
|
activityFor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2749
|
-
|
|
2749
|
+
chunkB2HNNG25_cjs.ConnectedTaskActivityDialog,
|
|
2750
2750
|
{
|
|
2751
2751
|
conversationId: activityFor.external_id,
|
|
2752
2752
|
taskName: activityFor.title || l.untitledTask,
|
|
@@ -2905,7 +2905,7 @@ function ConnectedAgentsPageScope(props) {
|
|
|
2905
2905
|
children,
|
|
2906
2906
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedAgentCreator, { ...management.editorProps, ...agentOptions.creator }),
|
|
2907
2907
|
taskDialog && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2908
|
-
|
|
2908
|
+
chunkB2HNNG25_cjs.ConnectedTaskComposer,
|
|
2909
2909
|
{
|
|
2910
2910
|
open: true,
|
|
2911
2911
|
onOpenChange: (open) => !open && setTaskDialog(null),
|
|
@@ -3062,7 +3062,7 @@ function AgentsSectionBody({ id }) {
|
|
|
3062
3062
|
) });
|
|
3063
3063
|
case "scheduled":
|
|
3064
3064
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-[min(32rem,70dvh)] min-h-64 flex-col", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3065
|
-
|
|
3065
|
+
chunkVGCTYTEW_cjs.ConnectedWorkflowsTable,
|
|
3066
3066
|
{
|
|
3067
3067
|
filter: "scheduled",
|
|
3068
3068
|
onEdit: (w) => openWorkflow?.(w.external_id),
|
|
@@ -3366,7 +3366,7 @@ function ConnectedTagTable({
|
|
|
3366
3366
|
const fail2 = (fallback) => (e) => notify19(browser.refusalReason(e, fallback), "error");
|
|
3367
3367
|
const snapshot2 = (data) => {
|
|
3368
3368
|
const title = exportTitle ?? ui.tagKindTitle(kind, { plural: true });
|
|
3369
|
-
const bytes =
|
|
3369
|
+
const bytes = chunkNIE3N6OM_cjs.tagTableDocx(data, {
|
|
3370
3370
|
title,
|
|
3371
3371
|
nameOf: (id) => people.find((p) => p.value === id)?.label
|
|
3372
3372
|
});
|
|
@@ -3375,7 +3375,7 @@ function ConnectedTagTable({
|
|
|
3375
3375
|
return { blob: new Blob([bytes], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }), name };
|
|
3376
3376
|
};
|
|
3377
3377
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3378
|
-
|
|
3378
|
+
chunkNIE3N6OM_cjs.TagTable,
|
|
3379
3379
|
{
|
|
3380
3380
|
...props,
|
|
3381
3381
|
table,
|
|
@@ -3752,9 +3752,9 @@ function GlossaryExport({ labelId, nameOf }) {
|
|
|
3752
3752
|
const narrowed = agreements.find((a) => a.id === narrowTo);
|
|
3753
3753
|
const title = narrowed ? `Glossary - ${narrowed.name}` : "Glossary";
|
|
3754
3754
|
const download = (format) => {
|
|
3755
|
-
const entries =
|
|
3756
|
-
const blob = format === "docx" ? new Blob([
|
|
3757
|
-
documentTools.downloadBlob(blob,
|
|
3755
|
+
const entries = chunkNIE3N6OM_cjs.glossaryEntries(sources, { labelId: narrowed?.id });
|
|
3756
|
+
const blob = format === "docx" ? new Blob([chunkNIE3N6OM_cjs.glossaryDocx(entries, { title })], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }) : new Blob([chunkNIE3N6OM_cjs.glossaryMarkdown(entries, { title })], { type: "text/markdown" });
|
|
3757
|
+
documentTools.downloadBlob(blob, chunkNIE3N6OM_cjs.glossaryFileName(title, format));
|
|
3758
3758
|
};
|
|
3759
3759
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", "data-testid": "tags-glossary", children: [
|
|
3760
3760
|
agreements.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -4283,7 +4283,7 @@ function KindSection({
|
|
|
4283
4283
|
{
|
|
4284
4284
|
testId: `tags-kind-${kind}`,
|
|
4285
4285
|
title: ui.tagKindTitle(kind, { plural: true }),
|
|
4286
|
-
description:
|
|
4286
|
+
description: chunkNIE3N6OM_cjs.tagKindDescription(kind),
|
|
4287
4287
|
children: [
|
|
4288
4288
|
browser.isEntityTag({ kind }) && extractingCount > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4289
4289
|
"p",
|
|
@@ -4293,9 +4293,9 @@ function KindSection({
|
|
|
4293
4293
|
children: [
|
|
4294
4294
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin" }),
|
|
4295
4295
|
"Extracting ",
|
|
4296
|
-
|
|
4296
|
+
chunkNIE3N6OM_cjs.entitiesPhrase().toLowerCase(),
|
|
4297
4297
|
" from ",
|
|
4298
|
-
|
|
4298
|
+
chunkNIE3N6OM_cjs.documentCount(extractingCount),
|
|
4299
4299
|
"\u2026"
|
|
4300
4300
|
]
|
|
4301
4301
|
}
|
|
@@ -4313,7 +4313,7 @@ function KindSection({
|
|
|
4313
4313
|
onOpenTag: ctx.onOpenTag,
|
|
4314
4314
|
onOpenRow: ctx.onOpenTag,
|
|
4315
4315
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4316
|
-
labels:
|
|
4316
|
+
labels: chunkNIE3N6OM_cjs.tagTableLabels(kind),
|
|
4317
4317
|
testId: `tags-table-${kind}`
|
|
4318
4318
|
}
|
|
4319
4319
|
)
|
|
@@ -4421,15 +4421,15 @@ function TagSection({
|
|
|
4421
4421
|
onOpenTag: ctx.onOpenTag,
|
|
4422
4422
|
onOpenRow: ctx.onOpenTag,
|
|
4423
4423
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4424
|
-
labels:
|
|
4424
|
+
labels: chunkNIE3N6OM_cjs.tagTableLabels(tag.kind),
|
|
4425
4425
|
testId: "tags-rows"
|
|
4426
4426
|
}
|
|
4427
4427
|
),
|
|
4428
4428
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4429
|
-
|
|
4429
|
+
chunkNIE3N6OM_cjs.TagDetail,
|
|
4430
4430
|
{
|
|
4431
4431
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4432
|
-
fieldLabels:
|
|
4432
|
+
fieldLabels: chunkNIE3N6OM_cjs.tagTableLabels(tag.kind),
|
|
4433
4433
|
row: detailRow,
|
|
4434
4434
|
fields: schema.data?.fields ?? [],
|
|
4435
4435
|
isLoading: detail.isLoading,
|
|
@@ -4443,7 +4443,7 @@ function TagSection({
|
|
|
4443
4443
|
throw e;
|
|
4444
4444
|
})
|
|
4445
4445
|
),
|
|
4446
|
-
labels:
|
|
4446
|
+
labels: chunkNIE3N6OM_cjs.tagDetailLabels(),
|
|
4447
4447
|
testId: "tags-detail"
|
|
4448
4448
|
}
|
|
4449
4449
|
)
|
|
@@ -4518,7 +4518,7 @@ function ConnectedTagsPage() {
|
|
|
4518
4518
|
const onDelete = async (t) => {
|
|
4519
4519
|
const nested = browser.getChildTags([...tags], t.external_id);
|
|
4520
4520
|
const uses = browser.tagUseCount(t);
|
|
4521
|
-
const n2 =
|
|
4521
|
+
const n2 = chunkNIE3N6OM_cjs.tagsPageNouns();
|
|
4522
4522
|
const tagNoun = (count2) => (count2 === 1 ? n2.tag : n2.tags).toLowerCase();
|
|
4523
4523
|
const carriers = uses === 1 ? `${n2.document}, ${n2.fact} or ${n2.thread}` : `${n2.documents}, ${n2.facts} and ${n2.threads}`;
|
|
4524
4524
|
const message = `Delete ${ui.tagKindNouns(t.kind).singular} "${t.name}"?` + (uses > 0 ? `
|
|
@@ -4539,11 +4539,11 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
4539
4539
|
try {
|
|
4540
4540
|
await extract.mutateAsync(docIds);
|
|
4541
4541
|
notify19(
|
|
4542
|
-
`Extracting ${
|
|
4542
|
+
`Extracting ${chunkNIE3N6OM_cjs.entitiesPhrase().toLowerCase()} from ${chunkNIE3N6OM_cjs.documentCount(docIds.length)}. You will be notified when it is done.`,
|
|
4543
4543
|
"info"
|
|
4544
4544
|
);
|
|
4545
4545
|
} catch (error) {
|
|
4546
|
-
notify19(browser.refusalReason(error, `Could not extract ${
|
|
4546
|
+
notify19(browser.refusalReason(error, `Could not extract ${chunkNIE3N6OM_cjs.entitiesPhrase().toLowerCase()}`), "error");
|
|
4547
4547
|
throw error;
|
|
4548
4548
|
}
|
|
4549
4549
|
};
|
|
@@ -4557,10 +4557,10 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
4557
4557
|
onOpenTag: openTag,
|
|
4558
4558
|
onOpenTaggedItems
|
|
4559
4559
|
};
|
|
4560
|
-
const n =
|
|
4560
|
+
const n = chunkNIE3N6OM_cjs.tagsPageNouns();
|
|
4561
4561
|
const action = view === "person" || view === "organisation" ? {
|
|
4562
4562
|
label: "Extract",
|
|
4563
|
-
title: `Extract ${
|
|
4563
|
+
title: `Extract ${chunkNIE3N6OM_cjs.entitiesPhrase().toLowerCase()} from ${n.documents.toLowerCase()}`,
|
|
4564
4564
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "h-4 w-4" }),
|
|
4565
4565
|
run: () => setExtracting(true),
|
|
4566
4566
|
testId: "tags-extract-entities"
|
|
@@ -4729,7 +4729,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
4729
4729
|
}
|
|
4730
4730
|
),
|
|
4731
4731
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4732
|
-
|
|
4732
|
+
chunkNIE3N6OM_cjs.ExtractEntitiesDialog,
|
|
4733
4733
|
{
|
|
4734
4734
|
open: extracting,
|
|
4735
4735
|
onOpenChange: setExtracting,
|
|
@@ -7849,7 +7849,7 @@ function ConnectedFactsPage() {
|
|
|
7849
7849
|
onNewFact: composing && !editingId ? () => void 0 : composer.startNewFact,
|
|
7850
7850
|
navSlotRef: setNavSlot,
|
|
7851
7851
|
navigator: view === "table" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7852
|
-
|
|
7852
|
+
chunkNIE3N6OM_cjs.GridRowNavigator,
|
|
7853
7853
|
{
|
|
7854
7854
|
gridApi,
|
|
7855
7855
|
selectedId: editingId,
|
|
@@ -12870,13 +12870,13 @@ function ConnectedWorkspaceSettings({
|
|
|
12870
12870
|
const [membersExpanded, setMembersExpanded] = react$1.useState(false);
|
|
12871
12871
|
const [shareOpen, setShareOpen] = react$1.useState(false);
|
|
12872
12872
|
if (!workspace) {
|
|
12873
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkCMGNRMPA_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12873
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkCMGNRMPA_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkNIE3N6OM_cjs.LoadingIndicator, { message: "Loading workspace..." }) });
|
|
12874
12874
|
}
|
|
12875
12875
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
12876
12876
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkCMGNRMPA_cjs.WorkspacePageFrame, { testId, children: [
|
|
12877
12877
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkCMGNRMPA_cjs.WorkspaceIdentityPanel, { children: [
|
|
12878
12878
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12879
|
-
|
|
12879
|
+
chunkNIE3N6OM_cjs.EntityIdentityBar,
|
|
12880
12880
|
{
|
|
12881
12881
|
testId: "workspace-identity-bar",
|
|
12882
12882
|
canEdit: isOwner,
|
|
@@ -12893,7 +12893,7 @@ function ConnectedWorkspaceSettings({
|
|
|
12893
12893
|
label: "Name",
|
|
12894
12894
|
value: workspace.name,
|
|
12895
12895
|
placeholder: "Untitled",
|
|
12896
|
-
maxLength:
|
|
12896
|
+
maxLength: chunkNIE3N6OM_cjs.IDENTITY_NAME_MAX_LENGTH,
|
|
12897
12897
|
valueClassName: "truncate text-base font-semibold",
|
|
12898
12898
|
testId: "workspace-home-title",
|
|
12899
12899
|
hideLabel: true,
|
|
@@ -17341,7 +17341,7 @@ function ConnectedWorkspaceList({
|
|
|
17341
17341
|
}
|
|
17342
17342
|
);
|
|
17343
17343
|
}
|
|
17344
|
-
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17344
|
+
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkNIE3N6OM_cjs.LoadingIndicator, { message: "Loading workspaces..." });
|
|
17345
17345
|
if (list.error) {
|
|
17346
17346
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17347
17347
|
chunkH7PHOTX2_cjs.HomeLoadError,
|
|
@@ -17414,7 +17414,7 @@ function ConnectedWorkspaceList({
|
|
|
17414
17414
|
workspaceState
|
|
17415
17415
|
}
|
|
17416
17416
|
) })
|
|
17417
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
17417
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkNIE3N6OM_cjs.LoadingIndicator, { message: "Loading grid..." }), children: /* @__PURE__ */ jsxRuntime.jsx(chunkH7PHOTX2_cjs.HomeCenteredColumn, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
17418
17418
|
WorkspaceTableView,
|
|
17419
17419
|
{
|
|
17420
17420
|
list,
|
|
@@ -17604,7 +17604,7 @@ function ConnectedProjectsListPage({
|
|
|
17604
17604
|
};
|
|
17605
17605
|
const { openProject } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
17606
17606
|
const [search, setSearch] = react$1.useState("");
|
|
17607
|
-
const { projects, isLoading } =
|
|
17607
|
+
const { projects, isLoading } = chunkB2HNNG25_cjs.useProjectSummaries();
|
|
17608
17608
|
const rows = react$1.useMemo(() => {
|
|
17609
17609
|
const q = search.trim().toLowerCase();
|
|
17610
17610
|
if (!q) return projects;
|
|
@@ -17675,7 +17675,7 @@ function ConnectedProjectsListPage({
|
|
|
17675
17675
|
}
|
|
17676
17676
|
),
|
|
17677
17677
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17678
|
-
|
|
17678
|
+
chunkNIE3N6OM_cjs.Toolbar,
|
|
17679
17679
|
{
|
|
17680
17680
|
search,
|
|
17681
17681
|
onSearch: setSearch,
|
|
@@ -17737,7 +17737,7 @@ function ProjectDetailsForm({
|
|
|
17737
17737
|
const labels = { ...DEFAULT_PROJECT_DETAILS_LABELS, ...given };
|
|
17738
17738
|
const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
17739
17739
|
const update = react.useUpdateProjectFields();
|
|
17740
|
-
const workspace =
|
|
17740
|
+
const workspace = chunkB2HNNG25_cjs.primaryProjectWorkspace(project);
|
|
17741
17741
|
const { data: members = [] } = react.useWorkspaceUsers(workspace?.id);
|
|
17742
17742
|
const people = members.filter((m) => !m.user.external_id.startsWith("agt-"));
|
|
17743
17743
|
const currency = project.budget?.currency ?? "GBP";
|
|
@@ -17862,7 +17862,7 @@ var COMPACT_BELOW = 132;
|
|
|
17862
17862
|
var NO_DOCUMENTS = [];
|
|
17863
17863
|
function useFilesWorkspace() {
|
|
17864
17864
|
const { workspaceId, userId, live } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
|
|
17865
|
-
const { members, role } =
|
|
17865
|
+
const { members, role } = chunkVGCTYTEW_cjs.useConnectedWorkspaceRole();
|
|
17866
17866
|
const { data: workspaces } = react.useWorkspaces({ enabled: live });
|
|
17867
17867
|
const workspaceName = workspaces?.find((w) => w.external_id === workspaceId)?.name;
|
|
17868
17868
|
return {
|
|
@@ -18799,11 +18799,11 @@ function ConnectedProjectPage({
|
|
|
18799
18799
|
figures: { ...DEFAULT_PROJECT_PAGE_LABELS.figures, ...given?.figures },
|
|
18800
18800
|
threads: { ...DEFAULT_PROJECT_PAGE_LABELS.threads, ...given?.threads }
|
|
18801
18801
|
};
|
|
18802
|
-
const { project, usage, isLoading } =
|
|
18802
|
+
const { project, usage, isLoading } = chunkB2HNNG25_cjs.useProjectSummary(projectId);
|
|
18803
18803
|
const { workspaceId } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
|
|
18804
18804
|
const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
18805
18805
|
const selectWorkspace = chunkY24V6HPR_cjs.useSelectWorkspace();
|
|
18806
|
-
const workspace = project ?
|
|
18806
|
+
const workspace = project ? chunkB2HNNG25_cjs.primaryProjectWorkspace(project) : void 0;
|
|
18807
18807
|
const open = !!workspace && workspace.id === workspaceId;
|
|
18808
18808
|
react$1.useEffect(() => {
|
|
18809
18809
|
if (!workspace || workspace.id === workspaceId) return;
|
|
@@ -25578,7 +25578,7 @@ function MailComposerForm({
|
|
|
25578
25578
|
"data-testid": "mail-word-body",
|
|
25579
25579
|
onSubmit: (event) => event.stopPropagation(),
|
|
25580
25580
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
25581
|
-
|
|
25581
|
+
chunkVKH3BEZE_cjs.NativeDocxEditor,
|
|
25582
25582
|
{
|
|
25583
25583
|
compact: true,
|
|
25584
25584
|
adapter: wordBody.adapter,
|
|
@@ -27090,7 +27090,7 @@ function ConnectedSecureMailClaimPage({
|
|
|
27090
27090
|
}
|
|
27091
27091
|
})();
|
|
27092
27092
|
}, [authenticated, claimId, key]);
|
|
27093
|
-
if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
27093
|
+
if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(chunkNIE3N6OM_cjs.LoadingIndicator, { variant: "splash" }) });
|
|
27094
27094
|
return /* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex min-h-screen items-center justify-center bg-background p-6", children: /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "w-full max-w-md rounded-lg border border-border bg-card p-6", children: [
|
|
27095
27095
|
/* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", className: "mb-4 text-sm text-destructive", children: error }),
|
|
27096
27096
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -33213,7 +33213,7 @@ function useBatchCompleteToasts() {
|
|
|
33213
33213
|
}
|
|
33214
33214
|
}, AI_FIELDS_NOTICE_WINDOW_MS);
|
|
33215
33215
|
} else if (message.batch_type === "entity_extract") {
|
|
33216
|
-
say(`${
|
|
33216
|
+
say(`${chunkNIE3N6OM_cjs.entitiesPhrase()} extracted from ${chunkNIE3N6OM_cjs.documentCount(docIds.length)}`, "success", {
|
|
33217
33217
|
...openTags && { action: { label: "View", onClick: openTags } }
|
|
33218
33218
|
});
|
|
33219
33219
|
} else if (message.batch_type === "upload") {
|
|
@@ -34039,10 +34039,10 @@ var DocumentReviewCard = react$1.lazy(
|
|
|
34039
34039
|
() => import('../DocumentReviewCard-ZSBZBGFK.cjs').then((module) => ({ default: module.DocumentReviewCard }))
|
|
34040
34040
|
);
|
|
34041
34041
|
var FilesViewerDialog = react$1.lazy(
|
|
34042
|
-
() => import('../FilesViewerDialog-
|
|
34042
|
+
() => import('../FilesViewerDialog-6UKR5WEF.cjs').then((module) => ({ default: module.FilesViewerDialog }))
|
|
34043
34043
|
);
|
|
34044
34044
|
function defaultReviewCard(props) {
|
|
34045
|
-
return /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
34045
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkNIE3N6OM_cjs.LoadingIndicator, { message: "Loading document viewer..." }), children: /* @__PURE__ */ jsxRuntime.jsx(DocumentReviewCard, { ...props }, `navigator-${props.currentDocument.external_id}`) });
|
|
34046
34046
|
}
|
|
34047
34047
|
function ConnectedFilesPage({
|
|
34048
34048
|
isModal = false,
|
|
@@ -34085,7 +34085,7 @@ function ConnectedFilesPage({
|
|
|
34085
34085
|
const deleteDocuments = react.useDeleteDocuments();
|
|
34086
34086
|
const isDocumentsPending = isLoading && documents.length === 0;
|
|
34087
34087
|
const { workspaceId, userId, live } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
|
|
34088
|
-
const { role, members } =
|
|
34088
|
+
const { role, members } = chunkVGCTYTEW_cjs.useConnectedWorkspaceRole();
|
|
34089
34089
|
const { data: workspaces } = react.useWorkspaces({ enabled: live });
|
|
34090
34090
|
const workspace = workspaces?.find((w) => w.external_id === workspaceId);
|
|
34091
34091
|
const workspaceName = workspace?.name;
|
|
@@ -34620,7 +34620,7 @@ function ConnectedFilesPage({
|
|
|
34620
34620
|
viewMode === "grid" ? (
|
|
34621
34621
|
// ‹ n / N › over the table's displayed rows; a step opens the document.
|
|
34622
34622
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
34623
|
-
|
|
34623
|
+
chunkNIE3N6OM_cjs.GridRowNavigator,
|
|
34624
34624
|
{
|
|
34625
34625
|
gridApi,
|
|
34626
34626
|
selectedId: viewingDocumentId ?? selectedDocumentIds[0] ?? null,
|
|
@@ -37057,7 +37057,7 @@ function GuidedRuns() {
|
|
|
37057
37057
|
chunkOEREKAAP_cjs.useRemoteControlSessionReset();
|
|
37058
37058
|
const { cursorMark } = chunkORELHENJ_cjs.useGuidedRuns();
|
|
37059
37059
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
37060
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37060
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNIE3N6OM_cjs.GuidedCursor, { markSrc: cursorMark }),
|
|
37061
37061
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedRemoteControlConsent, {})
|
|
37062
37062
|
] });
|
|
37063
37063
|
}
|
|
@@ -37091,7 +37091,7 @@ function ConnectedAppRuntime({
|
|
|
37091
37091
|
on("pageTransition") && /* @__PURE__ */ jsxRuntime.jsx(PageTransition, {}),
|
|
37092
37092
|
on("freshChatModel") && /* @__PURE__ */ jsxRuntime.jsx(FreshChatModel, {}),
|
|
37093
37093
|
on("workspaceOpenMetrics") && measure && /* @__PURE__ */ jsxRuntime.jsx(WorkspaceOpenMetrics, { measure }),
|
|
37094
|
-
on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...
|
|
37094
|
+
on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...chunkNIE3N6OM_cjs.KIT_CHUNK_LOADERS] }),
|
|
37095
37095
|
on("guidedRuns") && /* @__PURE__ */ jsxRuntime.jsx(GuidedRuns, {})
|
|
37096
37096
|
] });
|
|
37097
37097
|
}
|
|
@@ -41824,7 +41824,7 @@ function ConnectedConversationPage({
|
|
|
41824
41824
|
] })
|
|
41825
41825
|
}
|
|
41826
41826
|
),
|
|
41827
|
-
isInChat && /* @__PURE__ */ jsxRuntime.jsx(
|
|
41827
|
+
isInChat && /* @__PURE__ */ jsxRuntime.jsx(chunkB2HNNG25_cjs.ConnectedThreadTaskBar, { conversationId: currentConversationId })
|
|
41828
41828
|
] }),
|
|
41829
41829
|
isInChat && /* @__PURE__ */ jsxRuntime.jsx(
|
|
41830
41830
|
ConversationThread,
|
|
@@ -42033,7 +42033,7 @@ function SsoResendVerificationButton({
|
|
|
42033
42033
|
onClick: async () => handleResendEmailVerification(),
|
|
42034
42034
|
disabled: loading || disabled,
|
|
42035
42035
|
"aria-label": "Resend verification email",
|
|
42036
|
-
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
42036
|
+
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkNIE3N6OM_cjs.LoadingIndicator, {}) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
42037
42037
|
"Didn't get a verification email? ",
|
|
42038
42038
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold", children: "Resend" })
|
|
42039
42039
|
] })
|
|
@@ -43433,7 +43433,7 @@ function ConnectedTipBar({
|
|
|
43433
43433
|
workspaceOpen,
|
|
43434
43434
|
...state
|
|
43435
43435
|
};
|
|
43436
|
-
const { tip, index, count: count2, previous, next, onHoverChange } =
|
|
43436
|
+
const { tip, index, count: count2, previous, next, onHoverChange } = chunkNIE3N6OM_cjs.useTipsPlacement({
|
|
43437
43437
|
registry,
|
|
43438
43438
|
context,
|
|
43439
43439
|
state: situation,
|
|
@@ -43845,83 +43845,83 @@ Object.defineProperty(exports, "useWorkspaceDocs", {
|
|
|
43845
43845
|
});
|
|
43846
43846
|
Object.defineProperty(exports, "ConnectedTaskActivityDialog", {
|
|
43847
43847
|
enumerable: true,
|
|
43848
|
-
get: function () { return
|
|
43848
|
+
get: function () { return chunkB2HNNG25_cjs.ConnectedTaskActivityDialog; }
|
|
43849
43849
|
});
|
|
43850
43850
|
Object.defineProperty(exports, "ConnectedTaskComposer", {
|
|
43851
43851
|
enumerable: true,
|
|
43852
|
-
get: function () { return
|
|
43852
|
+
get: function () { return chunkB2HNNG25_cjs.ConnectedTaskComposer; }
|
|
43853
43853
|
});
|
|
43854
43854
|
Object.defineProperty(exports, "ConnectedThreadTaskBar", {
|
|
43855
43855
|
enumerable: true,
|
|
43856
|
-
get: function () { return
|
|
43856
|
+
get: function () { return chunkB2HNNG25_cjs.ConnectedThreadTaskBar; }
|
|
43857
43857
|
});
|
|
43858
43858
|
Object.defineProperty(exports, "ConnectedWorkflowHistory", {
|
|
43859
43859
|
enumerable: true,
|
|
43860
|
-
get: function () { return
|
|
43860
|
+
get: function () { return chunkB2HNNG25_cjs.ConnectedWorkflowHistory; }
|
|
43861
43861
|
});
|
|
43862
43862
|
Object.defineProperty(exports, "ConnectedWorkflowRunPage", {
|
|
43863
43863
|
enumerable: true,
|
|
43864
|
-
get: function () { return
|
|
43864
|
+
get: function () { return chunkB2HNNG25_cjs.ConnectedWorkflowRunPage; }
|
|
43865
43865
|
});
|
|
43866
43866
|
Object.defineProperty(exports, "ConnectedWorkflowRunner", {
|
|
43867
43867
|
enumerable: true,
|
|
43868
|
-
get: function () { return
|
|
43868
|
+
get: function () { return chunkB2HNNG25_cjs.ConnectedWorkflowRunner; }
|
|
43869
43869
|
});
|
|
43870
43870
|
Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS", {
|
|
43871
43871
|
enumerable: true,
|
|
43872
|
-
get: function () { return
|
|
43872
|
+
get: function () { return chunkB2HNNG25_cjs.DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS; }
|
|
43873
43873
|
});
|
|
43874
43874
|
Object.defineProperty(exports, "DEFAULT_WORKFLOW_RUN_PAGE_LABELS", {
|
|
43875
43875
|
enumerable: true,
|
|
43876
|
-
get: function () { return
|
|
43876
|
+
get: function () { return chunkB2HNNG25_cjs.DEFAULT_WORKFLOW_RUN_PAGE_LABELS; }
|
|
43877
43877
|
});
|
|
43878
43878
|
Object.defineProperty(exports, "WorkflowRunThread", {
|
|
43879
43879
|
enumerable: true,
|
|
43880
|
-
get: function () { return
|
|
43880
|
+
get: function () { return chunkB2HNNG25_cjs.WorkflowRunThread; }
|
|
43881
43881
|
});
|
|
43882
43882
|
Object.defineProperty(exports, "WorkflowRunWorkspaceChangedError", {
|
|
43883
43883
|
enumerable: true,
|
|
43884
|
-
get: function () { return
|
|
43884
|
+
get: function () { return chunkB2HNNG25_cjs.WorkflowRunWorkspaceChangedError; }
|
|
43885
43885
|
});
|
|
43886
43886
|
Object.defineProperty(exports, "buildProjectSummaries", {
|
|
43887
43887
|
enumerable: true,
|
|
43888
|
-
get: function () { return
|
|
43888
|
+
get: function () { return chunkB2HNNG25_cjs.buildProjectSummaries; }
|
|
43889
43889
|
});
|
|
43890
43890
|
Object.defineProperty(exports, "primaryProjectWorkspace", {
|
|
43891
43891
|
enumerable: true,
|
|
43892
|
-
get: function () { return
|
|
43892
|
+
get: function () { return chunkB2HNNG25_cjs.primaryProjectWorkspace; }
|
|
43893
43893
|
});
|
|
43894
43894
|
Object.defineProperty(exports, "useEnsureRequiredLabels", {
|
|
43895
43895
|
enumerable: true,
|
|
43896
|
-
get: function () { return
|
|
43896
|
+
get: function () { return chunkB2HNNG25_cjs.useEnsureRequiredLabels; }
|
|
43897
43897
|
});
|
|
43898
43898
|
Object.defineProperty(exports, "useProjectSummaries", {
|
|
43899
43899
|
enumerable: true,
|
|
43900
|
-
get: function () { return
|
|
43900
|
+
get: function () { return chunkB2HNNG25_cjs.useProjectSummaries; }
|
|
43901
43901
|
});
|
|
43902
43902
|
Object.defineProperty(exports, "useProjectSummary", {
|
|
43903
43903
|
enumerable: true,
|
|
43904
|
-
get: function () { return
|
|
43904
|
+
get: function () { return chunkB2HNNG25_cjs.useProjectSummary; }
|
|
43905
43905
|
});
|
|
43906
43906
|
Object.defineProperty(exports, "useRenderTaskPerson", {
|
|
43907
43907
|
enumerable: true,
|
|
43908
|
-
get: function () { return
|
|
43908
|
+
get: function () { return chunkB2HNNG25_cjs.useRenderTaskPerson; }
|
|
43909
43909
|
});
|
|
43910
43910
|
Object.defineProperty(exports, "useRequiredLabels", {
|
|
43911
43911
|
enumerable: true,
|
|
43912
|
-
get: function () { return
|
|
43912
|
+
get: function () { return chunkB2HNNG25_cjs.useRequiredLabels; }
|
|
43913
43913
|
});
|
|
43914
43914
|
Object.defineProperty(exports, "useTaskPeople", {
|
|
43915
43915
|
enumerable: true,
|
|
43916
|
-
get: function () { return
|
|
43916
|
+
get: function () { return chunkB2HNNG25_cjs.useTaskPeople; }
|
|
43917
43917
|
});
|
|
43918
43918
|
Object.defineProperty(exports, "useWorkflowsPageState", {
|
|
43919
43919
|
enumerable: true,
|
|
43920
|
-
get: function () { return
|
|
43920
|
+
get: function () { return chunkB2HNNG25_cjs.useWorkflowsPageState; }
|
|
43921
43921
|
});
|
|
43922
43922
|
Object.defineProperty(exports, "workflowRunView", {
|
|
43923
43923
|
enumerable: true,
|
|
43924
|
-
get: function () { return
|
|
43924
|
+
get: function () { return chunkB2HNNG25_cjs.workflowRunView; }
|
|
43925
43925
|
});
|
|
43926
43926
|
Object.defineProperty(exports, "AgentSteps", {
|
|
43927
43927
|
enumerable: true,
|
|
@@ -44333,23 +44333,23 @@ Object.defineProperty(exports, "useDocumentFolders", {
|
|
|
44333
44333
|
});
|
|
44334
44334
|
Object.defineProperty(exports, "ConnectedWorkflowsTable", {
|
|
44335
44335
|
enumerable: true,
|
|
44336
|
-
get: function () { return
|
|
44336
|
+
get: function () { return chunkVGCTYTEW_cjs.ConnectedWorkflowsTable; }
|
|
44337
44337
|
});
|
|
44338
44338
|
Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS", {
|
|
44339
44339
|
enumerable: true,
|
|
44340
|
-
get: function () { return
|
|
44340
|
+
get: function () { return chunkVGCTYTEW_cjs.DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS; }
|
|
44341
44341
|
});
|
|
44342
44342
|
Object.defineProperty(exports, "useConnectedWorkspaceRole", {
|
|
44343
44343
|
enumerable: true,
|
|
44344
|
-
get: function () { return
|
|
44344
|
+
get: function () { return chunkVGCTYTEW_cjs.useConnectedWorkspaceRole; }
|
|
44345
44345
|
});
|
|
44346
44346
|
Object.defineProperty(exports, "useDocxCommentTarget", {
|
|
44347
44347
|
enumerable: true,
|
|
44348
|
-
get: function () { return
|
|
44348
|
+
get: function () { return chunkVGCTYTEW_cjs.useDocxCommentTarget; }
|
|
44349
44349
|
});
|
|
44350
44350
|
Object.defineProperty(exports, "useNativeDocxSupport", {
|
|
44351
44351
|
enumerable: true,
|
|
44352
|
-
get: function () { return
|
|
44352
|
+
get: function () { return chunkVGCTYTEW_cjs.useNativeDocxSupport; }
|
|
44353
44353
|
});
|
|
44354
44354
|
Object.defineProperty(exports, "useOpenWorkflow", {
|
|
44355
44355
|
enumerable: true,
|
package/dist/connect/viewer.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkSB4M3ITT_cjs = require('../chunk-SB4M3ITT.cjs');
|
|
5
5
|
require('../chunk-4CIVQWAX.cjs');
|
|
6
6
|
var chunkPL7HUTM3_cjs = require('../chunk-PL7HUTM3.cjs');
|
|
7
7
|
require('../chunk-YGXOKB5Z.cjs');
|
|
@@ -11,7 +11,7 @@ require('../chunk-NJCK6V6U.cjs');
|
|
|
11
11
|
require('../chunk-NNUK5ZM7.cjs');
|
|
12
12
|
require('../chunk-223D4727.cjs');
|
|
13
13
|
require('../chunk-SNUBQMIS.cjs');
|
|
14
|
-
require('../chunk-
|
|
14
|
+
require('../chunk-VGCTYTEW.cjs');
|
|
15
15
|
require('../chunk-4ONPEVTP.cjs');
|
|
16
16
|
require('../chunk-V3KLUWQQ.cjs');
|
|
17
17
|
require('../chunk-P5AQYC4D.cjs');
|
|
@@ -35,7 +35,7 @@ require('../chunk-SK6HQ46Q.cjs');
|
|
|
35
35
|
require('../chunk-MNIQDXM6.cjs');
|
|
36
36
|
require('../chunk-E3Y7RI3J.cjs');
|
|
37
37
|
require('../chunk-VLCY46K6.cjs');
|
|
38
|
-
require('../chunk-
|
|
38
|
+
require('../chunk-VKH3BEZE.cjs');
|
|
39
39
|
require('../chunk-OEJQFPWO.cjs');
|
|
40
40
|
require('../chunk-OYXWQTHF.cjs');
|
|
41
41
|
require('../chunk-S237ORM3.cjs');
|
|
@@ -85,7 +85,7 @@ require('../chunk-PLIF5CUV.cjs');
|
|
|
85
85
|
|
|
86
86
|
Object.defineProperty(exports, "ConnectedDocumentViewer", {
|
|
87
87
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkSB4M3ITT_cjs.ConnectedDocumentViewer; }
|
|
89
89
|
});
|
|
90
90
|
Object.defineProperty(exports, "ConnectedDocumentToolsProvider", {
|
|
91
91
|
enumerable: true,
|
|
@@ -106,8 +106,16 @@ function useConnectedNativeDocxAdapter(fontBaseUrl = "/native-docx/fonts") {
|
|
|
106
106
|
onDirtyChange: support.onDirtyChange,
|
|
107
107
|
// The document's row moves to the saved version in place: through the host when it keeps
|
|
108
108
|
// the lists (its document tools refresh them), else here.
|
|
109
|
-
onVersionSaved: async (id) => {
|
|
110
|
-
|
|
109
|
+
onVersionSaved: async (id, version) => {
|
|
110
|
+
if (onDocumentsChanged) await onDocumentsChanged([id], "version");
|
|
111
|
+
if (version || !onDocumentsChanged) {
|
|
112
|
+
const fresh = await refreshDocuments(queries, arbi, [id]);
|
|
113
|
+
if (version && !fresh.some((doc) => doc.external_id === id && (doc.current_version ?? 0) >= version)) {
|
|
114
|
+
throw new Error(
|
|
115
|
+
"The version was saved, but its current status could not be confirmed. Please try again."
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
111
119
|
},
|
|
112
120
|
notify,
|
|
113
121
|
mentions: members?.map(({ user: member }) => ({
|