@arbidocs/blocks 0.5.145 → 0.5.146
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/{ConnectedNativeDocxComparison-KKX27IGJ.cjs → ConnectedNativeDocxComparison-MG54YLSO.cjs} +10 -10
- package/dist/{ConnectedNativeDocxComparison-KKX27IGJ.cjs.map → ConnectedNativeDocxComparison-MG54YLSO.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-HAHRU4DQ.cjs → ConnectedStreamedWordArtifact-7KZGQECL.cjs} +10 -10
- package/dist/{ConnectedStreamedWordArtifact-HAHRU4DQ.cjs.map → ConnectedStreamedWordArtifact-7KZGQECL.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-VJYQ7XZA.cjs → FilesViewerDialog-FFPW7TIK.cjs} +8 -8
- package/dist/{FilesViewerDialog-VJYQ7XZA.cjs.map → FilesViewerDialog-FFPW7TIK.cjs.map} +1 -1
- package/dist/{NativeDocxEditor-7A3SYDAJ.cjs → NativeDocxEditor-R2OKJLRY.cjs} +6 -6
- package/dist/{NativeDocxEditor-7A3SYDAJ.cjs.map → NativeDocxEditor-R2OKJLRY.cjs.map} +1 -1
- package/dist/{chunk-6JLRF7N6.cjs → chunk-BD7P4KYQ.cjs} +5 -6
- package/dist/chunk-BD7P4KYQ.cjs.map +1 -0
- package/dist/{chunk-INNHU46B.cjs → chunk-BLJET4KG.cjs} +4 -4
- package/dist/{chunk-INNHU46B.cjs.map → chunk-BLJET4KG.cjs.map} +1 -1
- package/dist/{chunk-WQEWVZGO.cjs → chunk-BTAT3MJP.cjs} +5 -5
- package/dist/{chunk-WQEWVZGO.cjs.map → chunk-BTAT3MJP.cjs.map} +1 -1
- package/dist/chunk-G5YLJ2YT.cjs +18 -0
- package/dist/{chunk-S2NQS4RC.cjs.map → chunk-G5YLJ2YT.cjs.map} +1 -1
- package/dist/{chunk-I5L24HOC.cjs → chunk-HWZT24TD.cjs} +6 -6
- package/dist/{chunk-I5L24HOC.cjs.map → chunk-HWZT24TD.cjs.map} +1 -1
- package/dist/{chunk-A53YMUOX.cjs → chunk-LH3PDPJP.cjs} +3 -3
- package/dist/{chunk-A53YMUOX.cjs.map → chunk-LH3PDPJP.cjs.map} +1 -1
- package/dist/{chunk-TMZS7IKQ.cjs → chunk-N2OVF6SJ.cjs} +7 -7
- package/dist/{chunk-TMZS7IKQ.cjs.map → chunk-N2OVF6SJ.cjs.map} +1 -1
- package/dist/{chunk-UNBORYTW.cjs → chunk-N7AUJTU4.cjs} +4 -4
- package/dist/{chunk-UNBORYTW.cjs.map → chunk-N7AUJTU4.cjs.map} +1 -1
- package/dist/{chunk-464TFVQ7.cjs → chunk-UNWDR6GG.cjs} +6 -6
- package/dist/{chunk-464TFVQ7.cjs.map → chunk-UNWDR6GG.cjs.map} +1 -1
- package/dist/{chunk-O6OLY43S.cjs → chunk-WN6BLSAZ.cjs} +5 -5
- package/dist/{chunk-O6OLY43S.cjs.map → chunk-WN6BLSAZ.cjs.map} +1 -1
- package/dist/connect/docx.cjs +14 -14
- package/dist/connect/index.cjs +81 -81
- package/dist/connect/viewer.cjs +6 -6
- package/dist/docx/NativeDocxEditor.js +3 -4
- package/dist/docx/NativeDocxEditor.js.map +2 -2
- package/dist/docx/index.cjs +38 -38
- package/dist/index.cjs +55 -55
- package/dist/workflow-canvas/index.cjs +11 -11
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/chunk-6JLRF7N6.cjs.map +0 -1
- package/dist/chunk-S2NQS4RC.cjs +0 -18
package/dist/connect/index.cjs
CHANGED
|
@@ -9,8 +9,8 @@ var chunkMBXXWTKT_cjs = require('../chunk-MBXXWTKT.cjs');
|
|
|
9
9
|
var chunk2FA7UVLG_cjs = require('../chunk-2FA7UVLG.cjs');
|
|
10
10
|
var chunk5GCCUXMT_cjs = require('../chunk-5GCCUXMT.cjs');
|
|
11
11
|
var chunkNPRNR54M_cjs = require('../chunk-NPRNR54M.cjs');
|
|
12
|
+
var chunkBTAT3MJP_cjs = require('../chunk-BTAT3MJP.cjs');
|
|
12
13
|
var chunkWNAZM2YS_cjs = require('../chunk-WNAZM2YS.cjs');
|
|
13
|
-
var chunkWQEWVZGO_cjs = require('../chunk-WQEWVZGO.cjs');
|
|
14
14
|
var chunk32W2S6DE_cjs = require('../chunk-32W2S6DE.cjs');
|
|
15
15
|
var chunkKWJW5TMH_cjs = require('../chunk-KWJW5TMH.cjs');
|
|
16
16
|
var chunkP2AZ2HX7_cjs = require('../chunk-P2AZ2HX7.cjs');
|
|
@@ -41,11 +41,11 @@ require('../chunk-HYUKPHCT.cjs');
|
|
|
41
41
|
var chunkZPIZINH2_cjs = require('../chunk-ZPIZINH2.cjs');
|
|
42
42
|
var chunk223D4727_cjs = require('../chunk-223D4727.cjs');
|
|
43
43
|
var chunkSNUBQMIS_cjs = require('../chunk-SNUBQMIS.cjs');
|
|
44
|
-
var
|
|
45
|
-
var chunkOA3AN6WW_cjs = require('../chunk-OA3AN6WW.cjs');
|
|
46
|
-
var chunkFK7MBD5H_cjs = require('../chunk-FK7MBD5H.cjs');
|
|
44
|
+
var chunkHWZT24TD_cjs = require('../chunk-HWZT24TD.cjs');
|
|
47
45
|
var chunk4ONPEVTP_cjs = require('../chunk-4ONPEVTP.cjs');
|
|
48
46
|
require('../chunk-V3KLUWQQ.cjs');
|
|
47
|
+
var chunkOA3AN6WW_cjs = require('../chunk-OA3AN6WW.cjs');
|
|
48
|
+
var chunkFK7MBD5H_cjs = require('../chunk-FK7MBD5H.cjs');
|
|
49
49
|
var chunkLVIQWRC5_cjs = require('../chunk-LVIQWRC5.cjs');
|
|
50
50
|
var chunkF6F375V7_cjs = require('../chunk-F6F375V7.cjs');
|
|
51
51
|
require('../chunk-PBPO54KZ.cjs');
|
|
@@ -55,11 +55,11 @@ require('../chunk-OUYBYZ7Y.cjs');
|
|
|
55
55
|
var chunkQQMMCXBP_cjs = require('../chunk-QQMMCXBP.cjs');
|
|
56
56
|
require('../chunk-DTMBAFIL.cjs');
|
|
57
57
|
require('../chunk-7NJKDJVO.cjs');
|
|
58
|
-
var
|
|
58
|
+
var chunkN7AUJTU4_cjs = require('../chunk-N7AUJTU4.cjs');
|
|
59
59
|
var chunkEYXU32D7_cjs = require('../chunk-EYXU32D7.cjs');
|
|
60
60
|
require('../chunk-NEGFHF3V.cjs');
|
|
61
|
-
var chunkI6GEQWIV_cjs = require('../chunk-I6GEQWIV.cjs');
|
|
62
61
|
var chunkZ3LFF3YT_cjs = require('../chunk-Z3LFF3YT.cjs');
|
|
62
|
+
var chunkI6GEQWIV_cjs = require('../chunk-I6GEQWIV.cjs');
|
|
63
63
|
var chunk4B6HYQTW_cjs = require('../chunk-4B6HYQTW.cjs');
|
|
64
64
|
var chunkADMNU2CR_cjs = require('../chunk-ADMNU2CR.cjs');
|
|
65
65
|
require('../chunk-PCB2BPN3.cjs');
|
|
@@ -82,7 +82,7 @@ require('../chunk-SK6HQ46Q.cjs');
|
|
|
82
82
|
var chunkMNIQDXM6_cjs = require('../chunk-MNIQDXM6.cjs');
|
|
83
83
|
var chunkT6WA6S5T_cjs = require('../chunk-T6WA6S5T.cjs');
|
|
84
84
|
require('../chunk-TG2GM7WJ.cjs');
|
|
85
|
-
var
|
|
85
|
+
var chunkLH3PDPJP_cjs = require('../chunk-LH3PDPJP.cjs');
|
|
86
86
|
var chunkSD7GUB44_cjs = require('../chunk-SD7GUB44.cjs');
|
|
87
87
|
var chunkZU2B2RZK_cjs = require('../chunk-ZU2B2RZK.cjs');
|
|
88
88
|
var chunkNSD37OF5_cjs = require('../chunk-NSD37OF5.cjs');
|
|
@@ -265,7 +265,7 @@ function ConnectedWorkspaceActivity({
|
|
|
265
265
|
[feed.data]
|
|
266
266
|
);
|
|
267
267
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
268
|
-
|
|
268
|
+
chunkN7AUJTU4_cjs.WorkspaceActivityList,
|
|
269
269
|
{
|
|
270
270
|
...listProps,
|
|
271
271
|
items,
|
|
@@ -2100,7 +2100,7 @@ function ConnectedSkillsBrowser({
|
|
|
2100
2100
|
}
|
|
2101
2101
|
) }),
|
|
2102
2102
|
runSkillId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2103
|
-
|
|
2103
|
+
chunkBTAT3MJP_cjs.ConnectedTaskComposer,
|
|
2104
2104
|
{
|
|
2105
2105
|
kind: "workflow",
|
|
2106
2106
|
open: true,
|
|
@@ -2710,7 +2710,7 @@ function useMemoryCount(enabled) {
|
|
|
2710
2710
|
}
|
|
2711
2711
|
function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
2712
2712
|
const { notify: notify19, openConversation, openDocument } = chunkLIKDQBNJ_cjs.useBlocksEnvironment();
|
|
2713
|
-
const people =
|
|
2713
|
+
const people = chunkBTAT3MJP_cjs.useTaskPeople();
|
|
2714
2714
|
const canEditShared = react.useCanEditShared();
|
|
2715
2715
|
const isWorkspaceOwner = react.useIsWorkspaceOwner();
|
|
2716
2716
|
const { data: workflows = [] } = react.useWorkflows({ live: true });
|
|
@@ -2763,7 +2763,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
|
2763
2763
|
}
|
|
2764
2764
|
),
|
|
2765
2765
|
activityFor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2766
|
-
|
|
2766
|
+
chunkBTAT3MJP_cjs.ConnectedTaskActivityDialog,
|
|
2767
2767
|
{
|
|
2768
2768
|
conversationId: activityFor.external_id,
|
|
2769
2769
|
taskName: activityFor.title || l.untitledTask,
|
|
@@ -2922,7 +2922,7 @@ function ConnectedAgentsPageScope(props) {
|
|
|
2922
2922
|
children,
|
|
2923
2923
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedAgentCreator, { ...management.editorProps, ...agentOptions.creator }),
|
|
2924
2924
|
taskDialog && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2925
|
-
|
|
2925
|
+
chunkBTAT3MJP_cjs.ConnectedTaskComposer,
|
|
2926
2926
|
{
|
|
2927
2927
|
open: true,
|
|
2928
2928
|
onOpenChange: (open) => !open && setTaskDialog(null),
|
|
@@ -3079,7 +3079,7 @@ function AgentsSectionBody({ id }) {
|
|
|
3079
3079
|
) });
|
|
3080
3080
|
case "scheduled":
|
|
3081
3081
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-[min(32rem,70dvh)] min-h-64 flex-col", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3082
|
-
|
|
3082
|
+
chunkHWZT24TD_cjs.ConnectedWorkflowsTable,
|
|
3083
3083
|
{
|
|
3084
3084
|
filter: "scheduled",
|
|
3085
3085
|
onEdit: (w) => openWorkflow?.(w.external_id),
|
|
@@ -3383,7 +3383,7 @@ function ConnectedTagTable({
|
|
|
3383
3383
|
const fail2 = (fallback) => (e) => notify19(browser.refusalReason(e, fallback), "error");
|
|
3384
3384
|
const snapshot2 = (data) => {
|
|
3385
3385
|
const title = exportTitle ?? ui.tagKindTitle(kind, { plural: true });
|
|
3386
|
-
const bytes =
|
|
3386
|
+
const bytes = chunkN7AUJTU4_cjs.tagTableDocx(data, {
|
|
3387
3387
|
title,
|
|
3388
3388
|
nameOf: (id) => people.find((p) => p.value === id)?.label
|
|
3389
3389
|
});
|
|
@@ -3392,7 +3392,7 @@ function ConnectedTagTable({
|
|
|
3392
3392
|
return { blob: new Blob([bytes], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }), name };
|
|
3393
3393
|
};
|
|
3394
3394
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3395
|
-
|
|
3395
|
+
chunkN7AUJTU4_cjs.TagTable,
|
|
3396
3396
|
{
|
|
3397
3397
|
...props,
|
|
3398
3398
|
table,
|
|
@@ -4517,9 +4517,9 @@ function GlossaryExport({ labelId, nameOf }) {
|
|
|
4517
4517
|
const narrowed = agreements.find((a) => a.id === narrowTo);
|
|
4518
4518
|
const title = narrowed ? `Glossary - ${narrowed.name}` : "Glossary";
|
|
4519
4519
|
const download = (format) => {
|
|
4520
|
-
const entries =
|
|
4521
|
-
const blob = format === "docx" ? new Blob([
|
|
4522
|
-
documentTools.downloadBlob(blob,
|
|
4520
|
+
const entries = chunkN7AUJTU4_cjs.glossaryEntries(sources, { labelId: narrowed?.id });
|
|
4521
|
+
const blob = format === "docx" ? new Blob([chunkN7AUJTU4_cjs.glossaryDocx(entries, { title })], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }) : new Blob([chunkN7AUJTU4_cjs.glossaryMarkdown(entries, { title })], { type: "text/markdown" });
|
|
4522
|
+
documentTools.downloadBlob(blob, chunkN7AUJTU4_cjs.glossaryFileName(title, format));
|
|
4523
4523
|
};
|
|
4524
4524
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", "data-testid": "tags-glossary", children: [
|
|
4525
4525
|
agreements.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -5048,7 +5048,7 @@ function KindSection({
|
|
|
5048
5048
|
{
|
|
5049
5049
|
testId: `tags-kind-${kind}`,
|
|
5050
5050
|
title: ui.tagKindTitle(kind, { plural: true }),
|
|
5051
|
-
description:
|
|
5051
|
+
description: chunkN7AUJTU4_cjs.tagKindDescription(kind),
|
|
5052
5052
|
children: [
|
|
5053
5053
|
browser.isEntityTag({ kind }) && extractingCount > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5054
5054
|
"p",
|
|
@@ -5058,9 +5058,9 @@ function KindSection({
|
|
|
5058
5058
|
children: [
|
|
5059
5059
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin" }),
|
|
5060
5060
|
"Extracting ",
|
|
5061
|
-
|
|
5061
|
+
chunkN7AUJTU4_cjs.entitiesPhrase().toLowerCase(),
|
|
5062
5062
|
" from ",
|
|
5063
|
-
|
|
5063
|
+
chunkN7AUJTU4_cjs.documentCount(extractingCount),
|
|
5064
5064
|
"\u2026"
|
|
5065
5065
|
]
|
|
5066
5066
|
}
|
|
@@ -5078,7 +5078,7 @@ function KindSection({
|
|
|
5078
5078
|
onOpenTag: ctx.onOpenTag,
|
|
5079
5079
|
onOpenRow: ctx.onOpenTag,
|
|
5080
5080
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
5081
|
-
labels:
|
|
5081
|
+
labels: chunkN7AUJTU4_cjs.tagTableLabels(kind),
|
|
5082
5082
|
testId: `tags-table-${kind}`
|
|
5083
5083
|
}
|
|
5084
5084
|
)
|
|
@@ -5186,15 +5186,15 @@ function TagSection({
|
|
|
5186
5186
|
onOpenTag: ctx.onOpenTag,
|
|
5187
5187
|
onOpenRow: ctx.onOpenTag,
|
|
5188
5188
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
5189
|
-
labels:
|
|
5189
|
+
labels: chunkN7AUJTU4_cjs.tagTableLabels(tag.kind),
|
|
5190
5190
|
testId: "tags-rows"
|
|
5191
5191
|
}
|
|
5192
5192
|
),
|
|
5193
5193
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5194
|
-
|
|
5194
|
+
chunkN7AUJTU4_cjs.TagDetail,
|
|
5195
5195
|
{
|
|
5196
5196
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
5197
|
-
fieldLabels:
|
|
5197
|
+
fieldLabels: chunkN7AUJTU4_cjs.tagTableLabels(tag.kind),
|
|
5198
5198
|
row: detailRow,
|
|
5199
5199
|
fields: schema.data?.fields ?? [],
|
|
5200
5200
|
isLoading: detail.isLoading,
|
|
@@ -5208,7 +5208,7 @@ function TagSection({
|
|
|
5208
5208
|
throw e;
|
|
5209
5209
|
})
|
|
5210
5210
|
),
|
|
5211
|
-
labels:
|
|
5211
|
+
labels: chunkN7AUJTU4_cjs.tagDetailLabels(),
|
|
5212
5212
|
testId: "tags-detail"
|
|
5213
5213
|
}
|
|
5214
5214
|
)
|
|
@@ -5283,7 +5283,7 @@ function ConnectedTagsPage() {
|
|
|
5283
5283
|
const onDelete = async (t) => {
|
|
5284
5284
|
const nested = browser.getChildTags([...tags], t.external_id);
|
|
5285
5285
|
const uses = browser.tagUseCount(t);
|
|
5286
|
-
const n2 =
|
|
5286
|
+
const n2 = chunkN7AUJTU4_cjs.tagsPageNouns();
|
|
5287
5287
|
const tagNoun = (count2) => (count2 === 1 ? n2.tag : n2.tags).toLowerCase();
|
|
5288
5288
|
const carriers = uses === 1 ? `${n2.document}, ${n2.fact} or ${n2.thread}` : `${n2.documents}, ${n2.facts} and ${n2.threads}`;
|
|
5289
5289
|
const message = `Delete ${ui.tagKindNouns(t.kind).singular} "${t.name}"?` + (uses > 0 ? `
|
|
@@ -5304,11 +5304,11 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5304
5304
|
try {
|
|
5305
5305
|
await extract.mutateAsync(docIds);
|
|
5306
5306
|
notify19(
|
|
5307
|
-
`Extracting ${
|
|
5307
|
+
`Extracting ${chunkN7AUJTU4_cjs.entitiesPhrase().toLowerCase()} from ${chunkN7AUJTU4_cjs.documentCount(docIds.length)}. You will be notified when it is done.`,
|
|
5308
5308
|
"info"
|
|
5309
5309
|
);
|
|
5310
5310
|
} catch (error) {
|
|
5311
|
-
notify19(browser.refusalReason(error, `Could not extract ${
|
|
5311
|
+
notify19(browser.refusalReason(error, `Could not extract ${chunkN7AUJTU4_cjs.entitiesPhrase().toLowerCase()}`), "error");
|
|
5312
5312
|
throw error;
|
|
5313
5313
|
}
|
|
5314
5314
|
};
|
|
@@ -5322,10 +5322,10 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5322
5322
|
onOpenTag: openTag,
|
|
5323
5323
|
onOpenTaggedItems
|
|
5324
5324
|
};
|
|
5325
|
-
const n =
|
|
5325
|
+
const n = chunkN7AUJTU4_cjs.tagsPageNouns();
|
|
5326
5326
|
const action = view === "person" || view === "organisation" ? {
|
|
5327
5327
|
label: "Extract",
|
|
5328
|
-
title: `Extract ${
|
|
5328
|
+
title: `Extract ${chunkN7AUJTU4_cjs.entitiesPhrase().toLowerCase()} from ${n.documents.toLowerCase()}`,
|
|
5329
5329
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "h-4 w-4" }),
|
|
5330
5330
|
run: () => setExtracting(true),
|
|
5331
5331
|
testId: "tags-extract-entities"
|
|
@@ -5494,7 +5494,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5494
5494
|
}
|
|
5495
5495
|
),
|
|
5496
5496
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5497
|
-
|
|
5497
|
+
chunkN7AUJTU4_cjs.ExtractEntitiesDialog,
|
|
5498
5498
|
{
|
|
5499
5499
|
open: extracting,
|
|
5500
5500
|
onOpenChange: setExtracting,
|
|
@@ -8496,7 +8496,7 @@ function ConnectedFactsPage() {
|
|
|
8496
8496
|
onNewFact: composing && !editingId ? () => void 0 : composer.startNewFact,
|
|
8497
8497
|
navSlotRef: setNavSlot,
|
|
8498
8498
|
navigator: view === "table" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
8499
|
-
|
|
8499
|
+
chunkN7AUJTU4_cjs.GridRowNavigator,
|
|
8500
8500
|
{
|
|
8501
8501
|
gridApi,
|
|
8502
8502
|
selectedId: editingId,
|
|
@@ -13739,13 +13739,13 @@ function ConnectedWorkspaceSettings({
|
|
|
13739
13739
|
const [membersExpanded, setMembersExpanded] = react$1.useState(false);
|
|
13740
13740
|
const [shareOpen, setShareOpen] = react$1.useState(false);
|
|
13741
13741
|
if (!workspace) {
|
|
13742
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkWNAZM2YS_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13742
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkWNAZM2YS_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkN7AUJTU4_cjs.LoadingIndicator, { message: "Loading workspace..." }) });
|
|
13743
13743
|
}
|
|
13744
13744
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
13745
13745
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkWNAZM2YS_cjs.WorkspacePageFrame, { testId, children: [
|
|
13746
13746
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkWNAZM2YS_cjs.WorkspaceIdentityPanel, { children: [
|
|
13747
13747
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13748
|
-
|
|
13748
|
+
chunkN7AUJTU4_cjs.EntityIdentityBar,
|
|
13749
13749
|
{
|
|
13750
13750
|
testId: "workspace-identity-bar",
|
|
13751
13751
|
canEdit: isOwner,
|
|
@@ -13762,7 +13762,7 @@ function ConnectedWorkspaceSettings({
|
|
|
13762
13762
|
label: "Name",
|
|
13763
13763
|
value: workspace.name,
|
|
13764
13764
|
placeholder: "Untitled",
|
|
13765
|
-
maxLength:
|
|
13765
|
+
maxLength: chunkN7AUJTU4_cjs.IDENTITY_NAME_MAX_LENGTH,
|
|
13766
13766
|
valueClassName: "truncate text-base font-semibold",
|
|
13767
13767
|
testId: "workspace-home-title",
|
|
13768
13768
|
hideLabel: true,
|
|
@@ -18689,7 +18689,7 @@ function ConnectedWorkspaceList({
|
|
|
18689
18689
|
}
|
|
18690
18690
|
);
|
|
18691
18691
|
}
|
|
18692
|
-
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18692
|
+
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkN7AUJTU4_cjs.LoadingIndicator, { message: "Loading workspaces..." });
|
|
18693
18693
|
if (list.error) {
|
|
18694
18694
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18695
18695
|
chunkC6RJQQLG_cjs.HomeLoadError,
|
|
@@ -18762,7 +18762,7 @@ function ConnectedWorkspaceList({
|
|
|
18762
18762
|
workspaceState
|
|
18763
18763
|
}
|
|
18764
18764
|
) })
|
|
18765
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18765
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkN7AUJTU4_cjs.LoadingIndicator, { message: "Loading grid..." }), children: /* @__PURE__ */ jsxRuntime.jsx(chunkC6RJQQLG_cjs.HomeCenteredColumn, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18766
18766
|
WorkspaceTableView,
|
|
18767
18767
|
{
|
|
18768
18768
|
list,
|
|
@@ -18964,7 +18964,7 @@ function ConnectedProjectsListPage({
|
|
|
18964
18964
|
};
|
|
18965
18965
|
const { openProject } = chunkLIKDQBNJ_cjs.useBlocksEnvironment();
|
|
18966
18966
|
const [search, setSearch] = react$1.useState("");
|
|
18967
|
-
const { projects, isLoading } =
|
|
18967
|
+
const { projects, isLoading } = chunkBTAT3MJP_cjs.useProjectSummaries();
|
|
18968
18968
|
const rows = react$1.useMemo(() => {
|
|
18969
18969
|
const q = search.trim().toLowerCase();
|
|
18970
18970
|
if (!q) return projects;
|
|
@@ -19035,7 +19035,7 @@ function ConnectedProjectsListPage({
|
|
|
19035
19035
|
}
|
|
19036
19036
|
),
|
|
19037
19037
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19038
|
-
|
|
19038
|
+
chunkN7AUJTU4_cjs.Toolbar,
|
|
19039
19039
|
{
|
|
19040
19040
|
search,
|
|
19041
19041
|
onSearch: setSearch,
|
|
@@ -19097,7 +19097,7 @@ function ProjectDetailsForm({
|
|
|
19097
19097
|
const labels = { ...DEFAULT_PROJECT_DETAILS_LABELS, ...given };
|
|
19098
19098
|
const { notify: notify19 } = chunkLIKDQBNJ_cjs.useBlocksEnvironment();
|
|
19099
19099
|
const update = react.useUpdateProjectFields();
|
|
19100
|
-
const workspace =
|
|
19100
|
+
const workspace = chunkBTAT3MJP_cjs.primaryProjectWorkspace(project);
|
|
19101
19101
|
const { data: members = [] } = react.useWorkspaceUsers(workspace?.id);
|
|
19102
19102
|
const people = members.filter((m) => !m.user.external_id.startsWith("agt-"));
|
|
19103
19103
|
const currency = project.budget?.currency ?? "GBP";
|
|
@@ -19222,7 +19222,7 @@ var COMPACT_BELOW = 132;
|
|
|
19222
19222
|
var NO_DOCUMENTS = [];
|
|
19223
19223
|
function useFilesWorkspace() {
|
|
19224
19224
|
const { workspaceId, userId, live } = chunkYKOPKLYP_cjs.useConnectedWorkspace();
|
|
19225
|
-
const { members, role } =
|
|
19225
|
+
const { members, role } = chunkHWZT24TD_cjs.useConnectedWorkspaceRole();
|
|
19226
19226
|
const { data: workspaces } = react.useWorkspaces({ enabled: live });
|
|
19227
19227
|
const workspaceName = workspaces?.find((w) => w.external_id === workspaceId)?.name;
|
|
19228
19228
|
return {
|
|
@@ -20159,11 +20159,11 @@ function ConnectedProjectPage({
|
|
|
20159
20159
|
figures: { ...DEFAULT_PROJECT_PAGE_LABELS.figures, ...given?.figures },
|
|
20160
20160
|
threads: { ...DEFAULT_PROJECT_PAGE_LABELS.threads, ...given?.threads }
|
|
20161
20161
|
};
|
|
20162
|
-
const { project, usage, isLoading } =
|
|
20162
|
+
const { project, usage, isLoading } = chunkBTAT3MJP_cjs.useProjectSummary(projectId);
|
|
20163
20163
|
const { workspaceId } = chunkYKOPKLYP_cjs.useConnectedWorkspace();
|
|
20164
20164
|
const { notify: notify19 } = chunkLIKDQBNJ_cjs.useBlocksEnvironment();
|
|
20165
20165
|
const selectWorkspace = chunkOE36OY64_cjs.useSelectWorkspace();
|
|
20166
|
-
const workspace = project ?
|
|
20166
|
+
const workspace = project ? chunkBTAT3MJP_cjs.primaryProjectWorkspace(project) : void 0;
|
|
20167
20167
|
const open = !!workspace && workspace.id === workspaceId;
|
|
20168
20168
|
react$1.useEffect(() => {
|
|
20169
20169
|
if (!workspace || workspace.id === workspaceId) return;
|
|
@@ -26987,7 +26987,7 @@ function MailComposerForm({
|
|
|
26987
26987
|
"data-testid": "mail-word-body",
|
|
26988
26988
|
onSubmit: (event) => event.stopPropagation(),
|
|
26989
26989
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
26990
|
-
|
|
26990
|
+
chunkLH3PDPJP_cjs.NativeDocxEditor,
|
|
26991
26991
|
{
|
|
26992
26992
|
compact: true,
|
|
26993
26993
|
adapter: wordBody.adapter,
|
|
@@ -28499,7 +28499,7 @@ function ConnectedSecureMailClaimPage({
|
|
|
28499
28499
|
}
|
|
28500
28500
|
})();
|
|
28501
28501
|
}, [authenticated, claimId, key]);
|
|
28502
|
-
if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
28502
|
+
if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(chunkN7AUJTU4_cjs.LoadingIndicator, { variant: "splash" }) });
|
|
28503
28503
|
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: [
|
|
28504
28504
|
/* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", className: "mb-4 text-sm text-destructive", children: error }),
|
|
28505
28505
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -34629,7 +34629,7 @@ function useBatchCompleteToasts() {
|
|
|
34629
34629
|
}
|
|
34630
34630
|
}, AI_FIELDS_NOTICE_WINDOW_MS);
|
|
34631
34631
|
} else if (message.batch_type === "entity_extract") {
|
|
34632
|
-
say(`${
|
|
34632
|
+
say(`${chunkN7AUJTU4_cjs.entitiesPhrase()} extracted from ${chunkN7AUJTU4_cjs.documentCount(docIds.length)}`, "success", {
|
|
34633
34633
|
...openTags && { action: { label: "View", onClick: openTags } }
|
|
34634
34634
|
});
|
|
34635
34635
|
} else if (message.batch_type === "upload") {
|
|
@@ -35444,10 +35444,10 @@ var DocumentReviewCard = react$1.lazy(
|
|
|
35444
35444
|
() => import('../DocumentReviewCard-ENCPTGJE.cjs').then((module) => ({ default: module.DocumentReviewCard }))
|
|
35445
35445
|
);
|
|
35446
35446
|
var FilesViewerDialog = react$1.lazy(
|
|
35447
|
-
() => import('../FilesViewerDialog-
|
|
35447
|
+
() => import('../FilesViewerDialog-FFPW7TIK.cjs').then((module) => ({ default: module.FilesViewerDialog }))
|
|
35448
35448
|
);
|
|
35449
35449
|
function defaultReviewCard(props) {
|
|
35450
|
-
return /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
35450
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkN7AUJTU4_cjs.LoadingIndicator, { message: "Loading document viewer..." }), children: /* @__PURE__ */ jsxRuntime.jsx(DocumentReviewCard, { ...props }, `navigator-${props.currentDocument.external_id}`) });
|
|
35451
35451
|
}
|
|
35452
35452
|
function ConnectedFilesPage({
|
|
35453
35453
|
isModal = false,
|
|
@@ -35490,7 +35490,7 @@ function ConnectedFilesPage({
|
|
|
35490
35490
|
const deleteDocuments = react.useDeleteDocuments();
|
|
35491
35491
|
const isDocumentsPending = isLoading && documents.length === 0;
|
|
35492
35492
|
const { workspaceId, userId, live } = chunkYKOPKLYP_cjs.useConnectedWorkspace();
|
|
35493
|
-
const { role, members } =
|
|
35493
|
+
const { role, members } = chunkHWZT24TD_cjs.useConnectedWorkspaceRole();
|
|
35494
35494
|
const { data: workspaces } = react.useWorkspaces({ enabled: live });
|
|
35495
35495
|
const workspace = workspaces?.find((w) => w.external_id === workspaceId);
|
|
35496
35496
|
const workspaceName = workspace?.name;
|
|
@@ -36025,7 +36025,7 @@ function ConnectedFilesPage({
|
|
|
36025
36025
|
viewMode === "grid" ? (
|
|
36026
36026
|
// ‹ n / N › over the table's displayed rows; a step opens the document.
|
|
36027
36027
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
36028
|
-
|
|
36028
|
+
chunkN7AUJTU4_cjs.GridRowNavigator,
|
|
36029
36029
|
{
|
|
36030
36030
|
gridApi,
|
|
36031
36031
|
selectedId: viewingDocumentId ?? selectedDocumentIds[0] ?? null,
|
|
@@ -38543,7 +38543,7 @@ function GuidedRuns() {
|
|
|
38543
38543
|
chunkP2AZ2HX7_cjs.useRemoteControlSessionReset();
|
|
38544
38544
|
const { cursorMark } = chunkNZNBJF3M_cjs.useGuidedRuns();
|
|
38545
38545
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
38546
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
38546
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkN7AUJTU4_cjs.GuidedCursor, { markSrc: cursorMark }),
|
|
38547
38547
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedRemoteControlConsent, {})
|
|
38548
38548
|
] });
|
|
38549
38549
|
}
|
|
@@ -38577,7 +38577,7 @@ function ConnectedAppRuntime({
|
|
|
38577
38577
|
on("pageTransition") && /* @__PURE__ */ jsxRuntime.jsx(PageTransition, {}),
|
|
38578
38578
|
on("freshChatModel") && /* @__PURE__ */ jsxRuntime.jsx(FreshChatModel, {}),
|
|
38579
38579
|
on("workspaceOpenMetrics") && measure && /* @__PURE__ */ jsxRuntime.jsx(WorkspaceOpenMetrics, { measure }),
|
|
38580
|
-
on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...
|
|
38580
|
+
on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...chunkN7AUJTU4_cjs.KIT_CHUNK_LOADERS] }),
|
|
38581
38581
|
on("guidedRuns") && /* @__PURE__ */ jsxRuntime.jsx(GuidedRuns, {})
|
|
38582
38582
|
] });
|
|
38583
38583
|
}
|
|
@@ -44057,7 +44057,7 @@ function ConnectedConversationPage({
|
|
|
44057
44057
|
] })
|
|
44058
44058
|
}
|
|
44059
44059
|
),
|
|
44060
|
-
isInChat && /* @__PURE__ */ jsxRuntime.jsx(
|
|
44060
|
+
isInChat && /* @__PURE__ */ jsxRuntime.jsx(chunkBTAT3MJP_cjs.ConnectedThreadTaskBar, { conversationId: currentConversationId })
|
|
44061
44061
|
] }),
|
|
44062
44062
|
isInChat && /* @__PURE__ */ jsxRuntime.jsx(
|
|
44063
44063
|
ConversationThread,
|
|
@@ -44266,7 +44266,7 @@ function SsoResendVerificationButton({
|
|
|
44266
44266
|
onClick: async () => handleResendEmailVerification(),
|
|
44267
44267
|
disabled: loading || disabled,
|
|
44268
44268
|
"aria-label": "Resend verification email",
|
|
44269
|
-
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
44269
|
+
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkN7AUJTU4_cjs.LoadingIndicator, {}) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
44270
44270
|
"Didn't get a verification email? ",
|
|
44271
44271
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold", children: "Resend" })
|
|
44272
44272
|
] })
|
|
@@ -45737,7 +45737,7 @@ function ConnectedTipBar({
|
|
|
45737
45737
|
workspaceOpen,
|
|
45738
45738
|
...state
|
|
45739
45739
|
};
|
|
45740
|
-
const { tip, index, count: count2, previous, next, onHoverChange } =
|
|
45740
|
+
const { tip, index, count: count2, previous, next, onHoverChange } = chunkN7AUJTU4_cjs.useTipsPlacement({
|
|
45741
45741
|
registry,
|
|
45742
45742
|
context,
|
|
45743
45743
|
state: situation,
|
|
@@ -46157,83 +46157,83 @@ Object.defineProperty(exports, "useWorkspaceDocs", {
|
|
|
46157
46157
|
});
|
|
46158
46158
|
Object.defineProperty(exports, "ConnectedTaskActivityDialog", {
|
|
46159
46159
|
enumerable: true,
|
|
46160
|
-
get: function () { return
|
|
46160
|
+
get: function () { return chunkBTAT3MJP_cjs.ConnectedTaskActivityDialog; }
|
|
46161
46161
|
});
|
|
46162
46162
|
Object.defineProperty(exports, "ConnectedTaskComposer", {
|
|
46163
46163
|
enumerable: true,
|
|
46164
|
-
get: function () { return
|
|
46164
|
+
get: function () { return chunkBTAT3MJP_cjs.ConnectedTaskComposer; }
|
|
46165
46165
|
});
|
|
46166
46166
|
Object.defineProperty(exports, "ConnectedThreadTaskBar", {
|
|
46167
46167
|
enumerable: true,
|
|
46168
|
-
get: function () { return
|
|
46168
|
+
get: function () { return chunkBTAT3MJP_cjs.ConnectedThreadTaskBar; }
|
|
46169
46169
|
});
|
|
46170
46170
|
Object.defineProperty(exports, "ConnectedWorkflowHistory", {
|
|
46171
46171
|
enumerable: true,
|
|
46172
|
-
get: function () { return
|
|
46172
|
+
get: function () { return chunkBTAT3MJP_cjs.ConnectedWorkflowHistory; }
|
|
46173
46173
|
});
|
|
46174
46174
|
Object.defineProperty(exports, "ConnectedWorkflowRunPage", {
|
|
46175
46175
|
enumerable: true,
|
|
46176
|
-
get: function () { return
|
|
46176
|
+
get: function () { return chunkBTAT3MJP_cjs.ConnectedWorkflowRunPage; }
|
|
46177
46177
|
});
|
|
46178
46178
|
Object.defineProperty(exports, "ConnectedWorkflowRunner", {
|
|
46179
46179
|
enumerable: true,
|
|
46180
|
-
get: function () { return
|
|
46180
|
+
get: function () { return chunkBTAT3MJP_cjs.ConnectedWorkflowRunner; }
|
|
46181
46181
|
});
|
|
46182
46182
|
Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS", {
|
|
46183
46183
|
enumerable: true,
|
|
46184
|
-
get: function () { return
|
|
46184
|
+
get: function () { return chunkBTAT3MJP_cjs.DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS; }
|
|
46185
46185
|
});
|
|
46186
46186
|
Object.defineProperty(exports, "DEFAULT_WORKFLOW_RUN_PAGE_LABELS", {
|
|
46187
46187
|
enumerable: true,
|
|
46188
|
-
get: function () { return
|
|
46188
|
+
get: function () { return chunkBTAT3MJP_cjs.DEFAULT_WORKFLOW_RUN_PAGE_LABELS; }
|
|
46189
46189
|
});
|
|
46190
46190
|
Object.defineProperty(exports, "WorkflowRunThread", {
|
|
46191
46191
|
enumerable: true,
|
|
46192
|
-
get: function () { return
|
|
46192
|
+
get: function () { return chunkBTAT3MJP_cjs.WorkflowRunThread; }
|
|
46193
46193
|
});
|
|
46194
46194
|
Object.defineProperty(exports, "WorkflowRunWorkspaceChangedError", {
|
|
46195
46195
|
enumerable: true,
|
|
46196
|
-
get: function () { return
|
|
46196
|
+
get: function () { return chunkBTAT3MJP_cjs.WorkflowRunWorkspaceChangedError; }
|
|
46197
46197
|
});
|
|
46198
46198
|
Object.defineProperty(exports, "buildProjectSummaries", {
|
|
46199
46199
|
enumerable: true,
|
|
46200
|
-
get: function () { return
|
|
46200
|
+
get: function () { return chunkBTAT3MJP_cjs.buildProjectSummaries; }
|
|
46201
46201
|
});
|
|
46202
46202
|
Object.defineProperty(exports, "primaryProjectWorkspace", {
|
|
46203
46203
|
enumerable: true,
|
|
46204
|
-
get: function () { return
|
|
46204
|
+
get: function () { return chunkBTAT3MJP_cjs.primaryProjectWorkspace; }
|
|
46205
46205
|
});
|
|
46206
46206
|
Object.defineProperty(exports, "useEnsureRequiredLabels", {
|
|
46207
46207
|
enumerable: true,
|
|
46208
|
-
get: function () { return
|
|
46208
|
+
get: function () { return chunkBTAT3MJP_cjs.useEnsureRequiredLabels; }
|
|
46209
46209
|
});
|
|
46210
46210
|
Object.defineProperty(exports, "useProjectSummaries", {
|
|
46211
46211
|
enumerable: true,
|
|
46212
|
-
get: function () { return
|
|
46212
|
+
get: function () { return chunkBTAT3MJP_cjs.useProjectSummaries; }
|
|
46213
46213
|
});
|
|
46214
46214
|
Object.defineProperty(exports, "useProjectSummary", {
|
|
46215
46215
|
enumerable: true,
|
|
46216
|
-
get: function () { return
|
|
46216
|
+
get: function () { return chunkBTAT3MJP_cjs.useProjectSummary; }
|
|
46217
46217
|
});
|
|
46218
46218
|
Object.defineProperty(exports, "useRenderTaskPerson", {
|
|
46219
46219
|
enumerable: true,
|
|
46220
|
-
get: function () { return
|
|
46220
|
+
get: function () { return chunkBTAT3MJP_cjs.useRenderTaskPerson; }
|
|
46221
46221
|
});
|
|
46222
46222
|
Object.defineProperty(exports, "useRequiredLabels", {
|
|
46223
46223
|
enumerable: true,
|
|
46224
|
-
get: function () { return
|
|
46224
|
+
get: function () { return chunkBTAT3MJP_cjs.useRequiredLabels; }
|
|
46225
46225
|
});
|
|
46226
46226
|
Object.defineProperty(exports, "useTaskPeople", {
|
|
46227
46227
|
enumerable: true,
|
|
46228
|
-
get: function () { return
|
|
46228
|
+
get: function () { return chunkBTAT3MJP_cjs.useTaskPeople; }
|
|
46229
46229
|
});
|
|
46230
46230
|
Object.defineProperty(exports, "useWorkflowsPageState", {
|
|
46231
46231
|
enumerable: true,
|
|
46232
|
-
get: function () { return
|
|
46232
|
+
get: function () { return chunkBTAT3MJP_cjs.useWorkflowsPageState; }
|
|
46233
46233
|
});
|
|
46234
46234
|
Object.defineProperty(exports, "workflowRunView", {
|
|
46235
46235
|
enumerable: true,
|
|
46236
|
-
get: function () { return
|
|
46236
|
+
get: function () { return chunkBTAT3MJP_cjs.workflowRunView; }
|
|
46237
46237
|
});
|
|
46238
46238
|
Object.defineProperty(exports, "AgentSteps", {
|
|
46239
46239
|
enumerable: true,
|
|
@@ -46645,23 +46645,23 @@ Object.defineProperty(exports, "useDocumentFolders", {
|
|
|
46645
46645
|
});
|
|
46646
46646
|
Object.defineProperty(exports, "ConnectedWorkflowsTable", {
|
|
46647
46647
|
enumerable: true,
|
|
46648
|
-
get: function () { return
|
|
46648
|
+
get: function () { return chunkHWZT24TD_cjs.ConnectedWorkflowsTable; }
|
|
46649
46649
|
});
|
|
46650
46650
|
Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS", {
|
|
46651
46651
|
enumerable: true,
|
|
46652
|
-
get: function () { return
|
|
46652
|
+
get: function () { return chunkHWZT24TD_cjs.DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS; }
|
|
46653
46653
|
});
|
|
46654
46654
|
Object.defineProperty(exports, "useConnectedWorkspaceRole", {
|
|
46655
46655
|
enumerable: true,
|
|
46656
|
-
get: function () { return
|
|
46656
|
+
get: function () { return chunkHWZT24TD_cjs.useConnectedWorkspaceRole; }
|
|
46657
46657
|
});
|
|
46658
46658
|
Object.defineProperty(exports, "useDocxCommentTarget", {
|
|
46659
46659
|
enumerable: true,
|
|
46660
|
-
get: function () { return
|
|
46660
|
+
get: function () { return chunkHWZT24TD_cjs.useDocxCommentTarget; }
|
|
46661
46661
|
});
|
|
46662
46662
|
Object.defineProperty(exports, "useNativeDocxSupport", {
|
|
46663
46663
|
enumerable: true,
|
|
46664
|
-
get: function () { return
|
|
46664
|
+
get: function () { return chunkHWZT24TD_cjs.useNativeDocxSupport; }
|
|
46665
46665
|
});
|
|
46666
46666
|
Object.defineProperty(exports, "useOpenWorkflow", {
|
|
46667
46667
|
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 chunkN2OVF6SJ_cjs = require('../chunk-N2OVF6SJ.cjs');
|
|
5
5
|
require('../chunk-JITYC4OS.cjs');
|
|
6
6
|
require('../chunk-WVZLAAIZ.cjs');
|
|
7
7
|
require('../chunk-X7ALF4MP.cjs');
|
|
@@ -17,11 +17,11 @@ require('../chunk-HYUKPHCT.cjs');
|
|
|
17
17
|
require('../chunk-ZPIZINH2.cjs');
|
|
18
18
|
require('../chunk-223D4727.cjs');
|
|
19
19
|
require('../chunk-SNUBQMIS.cjs');
|
|
20
|
-
require('../chunk-
|
|
21
|
-
require('../chunk-OA3AN6WW.cjs');
|
|
22
|
-
require('../chunk-FK7MBD5H.cjs');
|
|
20
|
+
require('../chunk-HWZT24TD.cjs');
|
|
23
21
|
require('../chunk-4ONPEVTP.cjs');
|
|
24
22
|
require('../chunk-V3KLUWQQ.cjs');
|
|
23
|
+
require('../chunk-OA3AN6WW.cjs');
|
|
24
|
+
require('../chunk-FK7MBD5H.cjs');
|
|
25
25
|
require('../chunk-3RAW2ZH5.cjs');
|
|
26
26
|
require('../chunk-ETMSINQS.cjs');
|
|
27
27
|
require('../chunk-OUYBYZ7Y.cjs');
|
|
@@ -43,7 +43,7 @@ require('../chunk-SK6HQ46Q.cjs');
|
|
|
43
43
|
require('../chunk-MNIQDXM6.cjs');
|
|
44
44
|
require('../chunk-T6WA6S5T.cjs');
|
|
45
45
|
require('../chunk-TG2GM7WJ.cjs');
|
|
46
|
-
require('../chunk-
|
|
46
|
+
require('../chunk-LH3PDPJP.cjs');
|
|
47
47
|
require('../chunk-OEJQFPWO.cjs');
|
|
48
48
|
require('../chunk-OYXWQTHF.cjs');
|
|
49
49
|
require('../chunk-S237ORM3.cjs');
|
|
@@ -94,7 +94,7 @@ require('../chunk-PLIF5CUV.cjs');
|
|
|
94
94
|
|
|
95
95
|
Object.defineProperty(exports, "ConnectedDocumentViewer", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkN2OVF6SJ_cjs.ConnectedDocumentViewer; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "ConnectedDocumentToolsProvider", {
|
|
100
100
|
enumerable: true,
|
|
@@ -75,6 +75,7 @@ import {
|
|
|
75
75
|
import { HouseTemplatePanel } from "./template/HouseTemplatePanel.js";
|
|
76
76
|
import { DocxAuthorContext } from "./structural/useTrackedOrNoted.js";
|
|
77
77
|
import { contentPath } from "./content-path.js";
|
|
78
|
+
const VERSION_REFUSAL_ERROR = "The editor and collaboration server need matching versions. Download your DOCX before reloading to preserve any local edits.";
|
|
78
79
|
const drafts = /* @__PURE__ */ new Map();
|
|
79
80
|
const pendingRecoveryWrites = /* @__PURE__ */ new Map();
|
|
80
81
|
const failedRecoveryWrites = /* @__PURE__ */ new Set();
|
|
@@ -558,9 +559,7 @@ function NativeDocxEditor({
|
|
|
558
559
|
setOffline(disconnected);
|
|
559
560
|
if (s === "error") {
|
|
560
561
|
if (formatRefusal(detail)) {
|
|
561
|
-
setError(
|
|
562
|
-
"The editor and collaboration server need matching versions. Download your DOCX before reloading to preserve any local edits."
|
|
563
|
-
);
|
|
562
|
+
setError(VERSION_REFUSAL_ERROR);
|
|
564
563
|
setStatus("Update required");
|
|
565
564
|
return;
|
|
566
565
|
}
|
|
@@ -1067,7 +1066,7 @@ function NativeDocxEditor({
|
|
|
1067
1066
|
if (previous) await recovery.store.remove(recovery.workspaceId, documentId, previous);
|
|
1068
1067
|
} catch {
|
|
1069
1068
|
setError(
|
|
1070
|
-
"A local recovery copy could not be saved. Keep this editor open or download your DOCX."
|
|
1069
|
+
(current) => current === VERSION_REFUSAL_ERROR ? current : "A local recovery copy could not be saved. Keep this editor open or download your DOCX."
|
|
1071
1070
|
);
|
|
1072
1071
|
}
|
|
1073
1072
|
})();
|