@arbidocs/blocks 0.4.93 → 0.4.94
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/agents/index.cjs +283 -283
- package/dist/agents/index.js +7 -7
- package/dist/{chunk-6XS5IJ5R.cjs → chunk-3OXWJ3CZ.cjs} +5 -5
- package/dist/{chunk-6XS5IJ5R.cjs.map → chunk-3OXWJ3CZ.cjs.map} +1 -1
- package/dist/{chunk-3WW32OUU.cjs → chunk-3US5OIDQ.cjs} +3 -3
- package/dist/{chunk-3WW32OUU.cjs.map → chunk-3US5OIDQ.cjs.map} +1 -1
- package/dist/chunk-AF6RDAJF.js +14 -0
- package/dist/chunk-AF6RDAJF.js.map +1 -0
- package/dist/chunk-AOFATOT3.cjs +196 -0
- package/dist/chunk-AOFATOT3.cjs.map +1 -0
- package/dist/chunk-D3QPYKZG.js +173 -0
- package/dist/chunk-D3QPYKZG.js.map +1 -0
- package/dist/{chunk-2ZDFVRGV.cjs → chunk-E2AAIMXO.cjs} +975 -61
- package/dist/chunk-E2AAIMXO.cjs.map +1 -0
- package/dist/{chunk-MROSCSPW.cjs → chunk-KKU7MUWE.cjs} +46 -46
- package/dist/{chunk-MROSCSPW.cjs.map → chunk-KKU7MUWE.cjs.map} +1 -1
- package/dist/{chunk-AMC5PMJ3.cjs → chunk-LENXDIMY.cjs} +36 -68
- package/dist/chunk-LENXDIMY.cjs.map +1 -0
- package/dist/{chunk-SF4BDUZS.js → chunk-PGDL26TQ.js} +3 -3
- package/dist/{chunk-SF4BDUZS.js.map → chunk-PGDL26TQ.js.map} +1 -1
- package/dist/chunk-RC25WMVB.cjs +16 -0
- package/dist/chunk-RC25WMVB.cjs.map +1 -0
- package/dist/{chunk-5YXG342J.cjs → chunk-RPCQBET5.cjs} +3 -3
- package/dist/{chunk-5YXG342J.cjs.map → chunk-RPCQBET5.cjs.map} +1 -1
- package/dist/{chunk-YFPIJUV3.cjs → chunk-RZGVMV6B.cjs} +5 -5
- package/dist/{chunk-YFPIJUV3.cjs.map → chunk-RZGVMV6B.cjs.map} +1 -1
- package/dist/{chunk-W2R7YVFM.js → chunk-WXLKMEMB.js} +970 -65
- package/dist/chunk-WXLKMEMB.js.map +1 -0
- package/dist/{chunk-BX62HJZU.js → chunk-YPKSLTL5.js} +3 -3
- package/dist/{chunk-BX62HJZU.js.map → chunk-YPKSLTL5.js.map} +1 -1
- package/dist/{chunk-UO74FLRK.js → chunk-Z3G65XHZ.js} +22 -53
- package/dist/chunk-Z3G65XHZ.js.map +1 -0
- package/dist/{chunk-W7NZRZ54.js → chunk-Z7OMEYDG.js} +3 -3
- package/dist/{chunk-W7NZRZ54.js.map → chunk-Z7OMEYDG.js.map} +1 -1
- package/dist/{chunk-UDLMLU6T.js → chunk-ZNDAXSDP.js} +3 -3
- package/dist/{chunk-UDLMLU6T.js.map → chunk-ZNDAXSDP.js.map} +1 -1
- package/dist/{chunk-SJVUKXS6.js → chunk-ZNGDEQBN.js} +8 -8
- package/dist/{chunk-SJVUKXS6.js.map → chunk-ZNGDEQBN.js.map} +1 -1
- package/dist/connect/docx.cjs +8 -6
- package/dist/connect/docx.cjs.map +1 -1
- package/dist/connect/docx.js +6 -4
- package/dist/connect/docx.js.map +1 -1
- package/dist/connect/index.cjs +55 -53
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +11 -9
- package/dist/connect/index.js.map +1 -1
- package/dist/docx/NativeDocxEditor.d.ts +6 -0
- package/dist/docx/definitions/DefinedTerms.d.ts +50 -0
- package/dist/docx/definitions/commands.d.ts +78 -0
- package/dist/docx/definitions/fragment.d.ts +29 -0
- package/dist/docx/definitions/port.d.ts +76 -0
- package/dist/docx/index.cjs +53 -15
- package/dist/docx/index.cjs.map +1 -1
- package/dist/docx/index.d.ts +3 -0
- package/dist/docx/index.js +5 -3
- package/dist/docx/index.js.map +1 -1
- package/dist/facts/index.cjs +9 -14
- package/dist/facts/index.cjs.map +1 -1
- package/dist/facts/index.js +5 -12
- package/dist/facts/index.js.map +1 -1
- package/dist/files/index.cjs +2 -2
- package/dist/files/index.js +2 -2
- package/dist/home/index.cjs +1 -1
- package/dist/home/index.js +1 -1
- package/dist/index.cjs +914 -774
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +102 -15
- package/dist/index.js.map +1 -1
- package/dist/settings/index.cjs +35 -35
- package/dist/settings/index.js +3 -3
- package/dist/shell/index.cjs +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/studio/index.cjs +1 -1
- package/dist/studio/index.js +1 -1
- package/dist/tags/definitions.d.ts +92 -0
- package/dist/tags/glossary.d.ts +44 -0
- package/dist/tags/index.d.ts +2 -0
- package/dist/tags/ooxml.d.ts +46 -0
- package/dist/tags/tagTableDocx.d.ts +1 -1
- package/dist/workflow-canvas/index.cjs +50 -50
- package/dist/workflow-canvas/index.js +7 -7
- package/dist/workspaces/index.cjs +1 -1
- package/dist/workspaces/index.js +1 -1
- package/package.json +4 -4
- package/src/docx/README.md +11 -0
- package/dist/chunk-2ZDFVRGV.cjs.map +0 -1
- package/dist/chunk-AMC5PMJ3.cjs.map +0 -1
- package/dist/chunk-UO74FLRK.js.map +0 -1
- package/dist/chunk-W2R7YVFM.js.map +0 -1
package/dist/connect/docx.cjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkRZGVMV6B_cjs = require('../chunk-RZGVMV6B.cjs');
|
|
5
5
|
require('../chunk-MUMH3Z6K.cjs');
|
|
6
|
-
var
|
|
7
|
-
require('../chunk-
|
|
6
|
+
var chunk3OXWJ3CZ_cjs = require('../chunk-3OXWJ3CZ.cjs');
|
|
7
|
+
require('../chunk-E2AAIMXO.cjs');
|
|
8
|
+
require('../chunk-AOFATOT3.cjs');
|
|
9
|
+
require('../chunk-RC25WMVB.cjs');
|
|
8
10
|
require('../chunk-7UTB4PHM.cjs');
|
|
9
11
|
require('../chunk-MHVNT4J3.cjs');
|
|
10
12
|
require('../chunk-DES3K4SD.cjs');
|
|
@@ -14,13 +16,13 @@ function ConnectedStreamedWordArtifact({
|
|
|
14
16
|
fontBaseUrl,
|
|
15
17
|
...props
|
|
16
18
|
}) {
|
|
17
|
-
const adapter =
|
|
18
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
19
|
+
const adapter = chunkRZGVMV6B_cjs.useConnectedNativeDocxAdapter(fontBaseUrl);
|
|
20
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk3OXWJ3CZ_cjs.StreamedWordArtifact, { ...props, adapter });
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
Object.defineProperty(exports, "ConnectedNativeDocxEditor", {
|
|
22
24
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkRZGVMV6B_cjs.ConnectedNativeDocxEditor; }
|
|
24
26
|
});
|
|
25
27
|
exports.ConnectedStreamedWordArtifact = ConnectedStreamedWordArtifact;
|
|
26
28
|
//# sourceMappingURL=docx.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/connection/ConnectedStreamedWordArtifact.tsx"],"names":["useConnectedNativeDocxAdapter","jsx","StreamedWordArtifact"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/connection/ConnectedStreamedWordArtifact.tsx"],"names":["useConnectedNativeDocxAdapter","jsx","StreamedWordArtifact"],"mappings":";;;;;;;;;;;;;AAGO,SAAS,6BAAA,CAA8B;AAAA,EAC5C,WAAA;AAAA,EACA,GAAG;AACL,CAAA,EAA0E;AACxE,EAAA,MAAM,OAAA,GAAUA,gDAA8B,WAAW,CAAA;AACzD,EAAA,uBAAOC,cAAA,CAACC,sCAAA,EAAA,EAAsB,GAAG,KAAA,EAAO,OAAA,EAAkB,CAAA;AAC5D","file":"docx.cjs","sourcesContent":["import { useConnectedNativeDocxAdapter } from './ConnectedNativeDocxEditor'\nimport { StreamedWordArtifact, type StreamedWordArtifactProps } from '../docx/StreamedWordArtifact'\n\nexport function ConnectedStreamedWordArtifact({\n fontBaseUrl,\n ...props\n}: Omit<StreamedWordArtifactProps, 'adapter'> & { fontBaseUrl?: string }) {\n const adapter = useConnectedNativeDocxAdapter(fontBaseUrl)\n return <StreamedWordArtifact {...props} adapter={adapter} />\n}\n"]}
|
package/dist/connect/docx.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useConnectedNativeDocxAdapter } from '../chunk-
|
|
3
|
-
export { ConnectedNativeDocxEditor } from '../chunk-
|
|
2
|
+
import { useConnectedNativeDocxAdapter } from '../chunk-ZNDAXSDP.js';
|
|
3
|
+
export { ConnectedNativeDocxEditor } from '../chunk-ZNDAXSDP.js';
|
|
4
4
|
import '../chunk-OYMWV45N.js';
|
|
5
|
-
import { StreamedWordArtifact } from '../chunk-
|
|
6
|
-
import '../chunk-
|
|
5
|
+
import { StreamedWordArtifact } from '../chunk-YPKSLTL5.js';
|
|
6
|
+
import '../chunk-WXLKMEMB.js';
|
|
7
|
+
import '../chunk-D3QPYKZG.js';
|
|
8
|
+
import '../chunk-AF6RDAJF.js';
|
|
7
9
|
import '../chunk-AA3PT6KR.js';
|
|
8
10
|
import '../chunk-7F6CBP3Z.js';
|
|
9
11
|
import '../chunk-VUNV25KB.js';
|
package/dist/connect/docx.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/connection/ConnectedStreamedWordArtifact.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/connection/ConnectedStreamedWordArtifact.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAGO,SAAS,6BAAA,CAA8B;AAAA,EAC5C,WAAA;AAAA,EACA,GAAG;AACL,CAAA,EAA0E;AACxE,EAAA,MAAM,OAAA,GAAU,8BAA8B,WAAW,CAAA;AACzD,EAAA,uBAAO,GAAA,CAAC,oBAAA,EAAA,EAAsB,GAAG,KAAA,EAAO,OAAA,EAAkB,CAAA;AAC5D","file":"docx.js","sourcesContent":["import { useConnectedNativeDocxAdapter } from './ConnectedNativeDocxEditor'\nimport { StreamedWordArtifact, type StreamedWordArtifactProps } from '../docx/StreamedWordArtifact'\n\nexport function ConnectedStreamedWordArtifact({\n fontBaseUrl,\n ...props\n}: Omit<StreamedWordArtifactProps, 'adapter'> & { fontBaseUrl?: string }) {\n const adapter = useConnectedNativeDocxAdapter(fontBaseUrl)\n return <StreamedWordArtifact {...props} adapter={adapter} />\n}\n"]}
|
package/dist/connect/index.cjs
CHANGED
|
@@ -1,32 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkRPCQBET5_cjs = require('../chunk-RPCQBET5.cjs');
|
|
5
5
|
var chunkXMBYDLZQ_cjs = require('../chunk-XMBYDLZQ.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkRZGVMV6B_cjs = require('../chunk-RZGVMV6B.cjs');
|
|
7
7
|
var chunkMUMH3Z6K_cjs = require('../chunk-MUMH3Z6K.cjs');
|
|
8
8
|
var chunkJH6JTI76_cjs = require('../chunk-JH6JTI76.cjs');
|
|
9
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-E2AAIMXO.cjs');
|
|
10
10
|
var chunkO4YPVYPO_cjs = require('../chunk-O4YPVYPO.cjs');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
11
|
+
var chunkLENXDIMY_cjs = require('../chunk-LENXDIMY.cjs');
|
|
12
|
+
var chunkAOFATOT3_cjs = require('../chunk-AOFATOT3.cjs');
|
|
13
|
+
require('../chunk-RC25WMVB.cjs');
|
|
14
|
+
var chunk3US5OIDQ_cjs = require('../chunk-3US5OIDQ.cjs');
|
|
13
15
|
var chunkN26CXGXC_cjs = require('../chunk-N26CXGXC.cjs');
|
|
14
16
|
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
15
|
-
require('../chunk-7D737FLE.cjs');
|
|
16
17
|
require('../chunk-DETZZBG2.cjs');
|
|
17
18
|
require('../chunk-32HW2Q33.cjs');
|
|
18
19
|
var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
|
|
20
|
+
require('../chunk-7D737FLE.cjs');
|
|
19
21
|
var chunkQVBZESYQ_cjs = require('../chunk-QVBZESYQ.cjs');
|
|
20
22
|
require('../chunk-ADOKTJHV.cjs');
|
|
23
|
+
var chunk3R6XBYL7_cjs = require('../chunk-3R6XBYL7.cjs');
|
|
24
|
+
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
25
|
+
require('../chunk-IXALYQT7.cjs');
|
|
21
26
|
var chunkMP6FK43E_cjs = require('../chunk-MP6FK43E.cjs');
|
|
22
27
|
require('../chunk-VGOFFCMT.cjs');
|
|
23
28
|
require('../chunk-B4SRYJLM.cjs');
|
|
24
29
|
require('../chunk-7UTB4PHM.cjs');
|
|
25
30
|
require('../chunk-PPCATBOY.cjs');
|
|
26
31
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
27
|
-
var chunk3R6XBYL7_cjs = require('../chunk-3R6XBYL7.cjs');
|
|
28
|
-
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
29
|
-
require('../chunk-IXALYQT7.cjs');
|
|
30
32
|
require('../chunk-FX3K6LNZ.cjs');
|
|
31
33
|
require('../chunk-MHVNT4J3.cjs');
|
|
32
34
|
require('../chunk-DES3K4SD.cjs');
|
|
@@ -117,7 +119,7 @@ function ConnectedWorkspaceActivity({
|
|
|
117
119
|
[feed.data]
|
|
118
120
|
);
|
|
119
121
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
120
|
-
|
|
122
|
+
chunkLENXDIMY_cjs.WorkspaceActivityList,
|
|
121
123
|
{
|
|
122
124
|
...listProps,
|
|
123
125
|
items,
|
|
@@ -143,7 +145,7 @@ function ConnectedWorkspaceNotificationMenu({
|
|
|
143
145
|
});
|
|
144
146
|
if (!workspaceId) return null;
|
|
145
147
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
146
|
-
|
|
148
|
+
chunkLENXDIMY_cjs.WorkspaceNotificationMenu,
|
|
147
149
|
{
|
|
148
150
|
...menuProps,
|
|
149
151
|
level,
|
|
@@ -162,7 +164,7 @@ function ConnectedThreadFollow({
|
|
|
162
164
|
enabled: status === "authenticated"
|
|
163
165
|
});
|
|
164
166
|
if (!conversationId) return null;
|
|
165
|
-
const Control = as === "menu-item" ?
|
|
167
|
+
const Control = as === "menu-item" ? chunkLENXDIMY_cjs.ThreadFollowMenuItem : chunkLENXDIMY_cjs.ThreadFollowButton;
|
|
166
168
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
167
169
|
Control,
|
|
168
170
|
{
|
|
@@ -288,7 +290,7 @@ function StreamedArtifact({
|
|
|
288
290
|
}
|
|
289
291
|
var STARTING = /* @__PURE__ */ new Set(["pending", "running"]);
|
|
290
292
|
function formValues(step, inputs) {
|
|
291
|
-
const fields =
|
|
293
|
+
const fields = chunk3US5OIDQ_cjs.stepFields(step);
|
|
292
294
|
if (!fields.length) return void 0;
|
|
293
295
|
if (step.kind === "form")
|
|
294
296
|
return Object.fromEntries(fields.map((f) => [f.name, inputs[f.name] ?? ""]));
|
|
@@ -326,7 +328,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
326
328
|
const { wsId } = chunkXMBYDLZQ_cjs.useWorkspaceDocs();
|
|
327
329
|
const [threadId, setThreadId] = react.useState(options.conversationId);
|
|
328
330
|
const [localInputs, setLocalInputs] = react.useState(
|
|
329
|
-
() =>
|
|
331
|
+
() => chunk3US5OIDQ_cjs.initialRunInputs(workflow, options.initialInputs)
|
|
330
332
|
);
|
|
331
333
|
const [edits, setEdits] = react.useState({});
|
|
332
334
|
const [localStates, setLocalStates] = react.useState({});
|
|
@@ -346,12 +348,12 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
346
348
|
);
|
|
347
349
|
const conversation = conversations.data?.find((c) => c.external_id === threadId);
|
|
348
350
|
const steps = react.useMemo(
|
|
349
|
-
() =>
|
|
351
|
+
() => chunk3US5OIDQ_cjs.workflowSteps(workflow).length > 0 ? chunk3US5OIDQ_cjs.workflowSteps(workflow) : chunk3US5OIDQ_cjs.fromPlanSteps(conversation?.plan?.steps ?? []),
|
|
350
352
|
[workflow, conversation?.plan?.steps]
|
|
351
353
|
);
|
|
352
354
|
const activity = react$1.useConversationActivity(threadId, { live: !!threadId });
|
|
353
355
|
const serverStates = react.useMemo(
|
|
354
|
-
() =>
|
|
356
|
+
() => chunk3US5OIDQ_cjs.stepStatesFromActivity(activity.data ?? []),
|
|
355
357
|
[activity.data]
|
|
356
358
|
);
|
|
357
359
|
const working = steps.some(
|
|
@@ -394,7 +396,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
394
396
|
async (values, done) => {
|
|
395
397
|
await ensureWorkspaceOpen();
|
|
396
398
|
const created = await createWork.mutateAsync({
|
|
397
|
-
title:
|
|
399
|
+
title: chunk3US5OIDQ_cjs.runThreadTitle(workflow, values).slice(0, 60),
|
|
398
400
|
description: workflow.description || null,
|
|
399
401
|
prompt: null,
|
|
400
402
|
skill_ref: null,
|
|
@@ -406,7 +408,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
406
408
|
criteria: [],
|
|
407
409
|
max_passes: 3,
|
|
408
410
|
documents: [],
|
|
409
|
-
steps:
|
|
411
|
+
steps: chunk3US5OIDQ_cjs.toPlanSteps(workflow, {
|
|
410
412
|
inputs: values,
|
|
411
413
|
resolveWorkflow: options.resolveWorkflow,
|
|
412
414
|
compose: options.compose
|
|
@@ -493,7 +495,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
493
495
|
const anyRunning = Object.values(states).some((s) => s.status === "running");
|
|
494
496
|
const needsStart = !threadId || idle && !anyRunning;
|
|
495
497
|
const runError = idle ? conversation?.last_error ?? null : null;
|
|
496
|
-
const view =
|
|
498
|
+
const view = chunk3US5OIDQ_cjs.useWorkflowView({
|
|
497
499
|
steps,
|
|
498
500
|
states,
|
|
499
501
|
inputs,
|
|
@@ -574,7 +576,7 @@ function WorkflowSignDialog({
|
|
|
574
576
|
const arbi = react$1.useArbi();
|
|
575
577
|
const { user, ensureWorkspaceOpen } = chunkMUMH3Z6K_cjs.useConnection();
|
|
576
578
|
const tools = documentTools.useOptionalDocumentTools();
|
|
577
|
-
const { id, version: stepVersion } =
|
|
579
|
+
const { id, version: stepVersion } = chunk3US5OIDQ_cjs.splitDocRef(docRef);
|
|
578
580
|
const [version, setVersion] = react.useState(stepVersion);
|
|
579
581
|
const [pdf, setPdf] = react.useState(null);
|
|
580
582
|
const [preparing, setPreparing] = react.useState(false);
|
|
@@ -652,7 +654,7 @@ function WorkflowWordDialog({
|
|
|
652
654
|
onClose,
|
|
653
655
|
labels
|
|
654
656
|
}) {
|
|
655
|
-
const { id } =
|
|
657
|
+
const { id } = chunk3US5OIDQ_cjs.splitDocRef(docRef);
|
|
656
658
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
657
659
|
chunkULWRNGGE_cjs.ModalScaffold,
|
|
658
660
|
{
|
|
@@ -661,7 +663,7 @@ function WorkflowWordDialog({
|
|
|
661
663
|
title: title ?? labels.wordTitle,
|
|
662
664
|
size: "xl",
|
|
663
665
|
testId: "workflow-word-dialog",
|
|
664
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
666
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(chunkRZGVMV6B_cjs.ConnectedNativeDocxEditor, { documentId: id, title: title ?? labels.wordTitle }) })
|
|
665
667
|
}
|
|
666
668
|
);
|
|
667
669
|
}
|
|
@@ -824,7 +826,7 @@ function ConnectedWorkflowRunner({
|
|
|
824
826
|
() => ({
|
|
825
827
|
me: user?.externalId,
|
|
826
828
|
openDocument: onOpenDocument && ((ref) => {
|
|
827
|
-
const { id, version } =
|
|
829
|
+
const { id, version } = chunk3US5OIDQ_cjs.splitDocRef(ref);
|
|
828
830
|
onOpenDocument(id, version);
|
|
829
831
|
}),
|
|
830
832
|
openDraft: onOpenDraft && ((draftId) => onOpenDraft(draftId)),
|
|
@@ -834,7 +836,7 @@ function ConnectedWorkflowRunner({
|
|
|
834
836
|
const w = state.waiting;
|
|
835
837
|
if (w?.doc_ext_id) setDialog({ kind: "sign", docRef: w.doc_ext_id });
|
|
836
838
|
}),
|
|
837
|
-
openRedline: hostActions?.openRedline ?? ((ref) => setDialog({ kind: "word", docRef: ref, title: nameOfDoc(
|
|
839
|
+
openRedline: hostActions?.openRedline ?? ((ref) => setDialog({ kind: "word", docRef: ref, title: nameOfDoc(chunk3US5OIDQ_cjs.splitDocRef(ref).id) ?? "" })),
|
|
838
840
|
openReview: hostActions?.openReview ?? ((tags, documents) => setDialog({ kind: "review", tags, documents }))
|
|
839
841
|
}),
|
|
840
842
|
[user?.externalId, onOpenDocument, onOpenDraft, onOpenMessage, hostActions, nameOfDoc, inThread]
|
|
@@ -970,7 +972,7 @@ function ConnectedWorkflowRunner({
|
|
|
970
972
|
);
|
|
971
973
|
};
|
|
972
974
|
const runner = (compact) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
973
|
-
|
|
975
|
+
chunk3US5OIDQ_cjs.WorkflowRunner,
|
|
974
976
|
{
|
|
975
977
|
people,
|
|
976
978
|
...runnerProps,
|
|
@@ -1016,10 +1018,10 @@ function ConnectedWorkflowRunner({
|
|
|
1016
1018
|
) }),
|
|
1017
1019
|
inThread && conversationId ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1018
1020
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1019
|
-
|
|
1021
|
+
chunk3US5OIDQ_cjs.WorkflowStepBar,
|
|
1020
1022
|
{
|
|
1021
1023
|
run: view,
|
|
1022
|
-
levels:
|
|
1024
|
+
levels: chunk3US5OIDQ_cjs.stepLevels(view.steps),
|
|
1023
1025
|
doneTitle: (workflow.run.kind === "steps" ? workflow.run.completion?.title : void 0) ?? runnerProps.labels?.complete ?? "Done",
|
|
1024
1026
|
icon: (key) => key && runnerProps.renderIcon ? runnerProps.renderIcon(key) : void 0,
|
|
1025
1027
|
tid: (suffix) => `${testIdPrefix}-${suffix}`
|
|
@@ -1200,17 +1202,17 @@ function ConnectedTagTable({
|
|
|
1200
1202
|
const fail = (e) => setError(e instanceof Error ? e.message : String(e));
|
|
1201
1203
|
const snapshot = (data) => {
|
|
1202
1204
|
const title = exportTitle ?? KIND_TITLES[kind];
|
|
1203
|
-
const bytes =
|
|
1205
|
+
const bytes = chunkLENXDIMY_cjs.tagTableDocx(data, {
|
|
1204
1206
|
title,
|
|
1205
1207
|
nameOf: (id) => people.find((p) => p.value === id)?.label
|
|
1206
1208
|
});
|
|
1207
1209
|
const stamp = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
1208
1210
|
const name = `${title.replace(/[\\/:*?"<>|]+/g, "-")} (${stamp}).docx`;
|
|
1209
|
-
return { blob: new Blob([bytes], { type:
|
|
1211
|
+
return { blob: new Blob([bytes], { type: chunkAOFATOT3_cjs.DOCX_MIME_TYPE }), name };
|
|
1210
1212
|
};
|
|
1211
1213
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
1212
1214
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1213
|
-
|
|
1215
|
+
chunkLENXDIMY_cjs.TagTable,
|
|
1214
1216
|
{
|
|
1215
1217
|
...props,
|
|
1216
1218
|
table,
|
|
@@ -1348,12 +1350,12 @@ function ConnectedProfileCard({ notify: notify3, title = "Profile" }) {
|
|
|
1348
1350
|
}
|
|
1349
1351
|
});
|
|
1350
1352
|
const display = profile?.fullName || user?.name || "Unnamed";
|
|
1351
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1352
|
-
|
|
1353
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkRPCQBET5_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UserCircle, {}), title, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1354
|
+
chunkRPCQBET5_cjs.ProfileCard,
|
|
1353
1355
|
{
|
|
1354
1356
|
avatar: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1355
1357
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1356
|
-
|
|
1358
|
+
chunkRPCQBET5_cjs.AvatarPicker,
|
|
1357
1359
|
{
|
|
1358
1360
|
pictureUrl: profile?.picture ?? user?.picture,
|
|
1359
1361
|
initials: chunkKDG6FER6_cjs.initials(display),
|
|
@@ -1395,9 +1397,9 @@ function ConnectedIdentityVerification({
|
|
|
1395
1397
|
onNameAccepted: () => notify3?.("Name updated to match your ID", "success")
|
|
1396
1398
|
});
|
|
1397
1399
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1398
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1400
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkRPCQBET5_cjs.IdentityVerificationCard, { flow, labels }),
|
|
1399
1401
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1400
|
-
|
|
1402
|
+
chunkRPCQBET5_cjs.IdentityVerificationDialog,
|
|
1401
1403
|
{
|
|
1402
1404
|
flow,
|
|
1403
1405
|
accountName: profile?.fullName ?? "",
|
|
@@ -1409,7 +1411,7 @@ function ConnectedIdentityVerification({
|
|
|
1409
1411
|
function ConnectedRequireVerified({ children, labels }) {
|
|
1410
1412
|
const { data: profile } = react$1.useProfile();
|
|
1411
1413
|
const flow = react$1.useIdentityVerification();
|
|
1412
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1414
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkRPCQBET5_cjs.RequireVerified, { flow, accountName: profile?.fullName ?? "", labels, children });
|
|
1413
1415
|
}
|
|
1414
1416
|
function defaultUnmetPasswordRequirement(password) {
|
|
1415
1417
|
if (password.length < 8) return "Minimum 8 characters";
|
|
@@ -1434,10 +1436,10 @@ function ConnectedSecuritySection({
|
|
|
1434
1436
|
},
|
|
1435
1437
|
onClose: () => setOpen(false)
|
|
1436
1438
|
});
|
|
1437
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1438
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1439
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkRPCQBET5_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.KeyRound, {}), title: "Security", children: [
|
|
1440
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkRPCQBET5_cjs.SettingsCard, { padding: "sm", children: [
|
|
1439
1441
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1440
|
-
|
|
1442
|
+
chunkRPCQBET5_cjs.SettingsActionRow,
|
|
1441
1443
|
{
|
|
1442
1444
|
title: "Change password",
|
|
1443
1445
|
description: "Used to sign in and to unlock your account key. Changing it keeps everything readable and re-encrypts nothing.",
|
|
@@ -1448,7 +1450,7 @@ function ConnectedSecuritySection({
|
|
|
1448
1450
|
children
|
|
1449
1451
|
] }),
|
|
1450
1452
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1451
|
-
|
|
1453
|
+
chunkRPCQBET5_cjs.PasswordChangeDialog,
|
|
1452
1454
|
{
|
|
1453
1455
|
open,
|
|
1454
1456
|
onClose: form.onCancel,
|
|
@@ -1471,23 +1473,23 @@ function ConnectedSecuritySection({
|
|
|
1471
1473
|
] });
|
|
1472
1474
|
}
|
|
1473
1475
|
function ConnectedNotificationPreferences({
|
|
1474
|
-
categories =
|
|
1476
|
+
categories = chunkRPCQBET5_cjs.EMAIL_NOTIFICATION_CATEGORIES,
|
|
1475
1477
|
title = "Notifications"
|
|
1476
1478
|
}) {
|
|
1477
1479
|
const keys = react.useMemo(
|
|
1478
|
-
() => categories ===
|
|
1480
|
+
() => categories === chunkRPCQBET5_cjs.EMAIL_NOTIFICATION_CATEGORIES ? chunkRPCQBET5_cjs.EMAIL_NOTIFICATION_KEYS : categories.map((c) => c.key),
|
|
1479
1481
|
[categories]
|
|
1480
1482
|
);
|
|
1481
1483
|
const prefs = react$1.useNotificationPreferences(keys);
|
|
1482
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1483
|
-
|
|
1484
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkRPCQBET5_cjs.SettingsSection, { title, children: /* @__PURE__ */ jsxRuntime.jsx(chunkRPCQBET5_cjs.SettingsCard, { className: "space-y-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1485
|
+
chunkRPCQBET5_cjs.NotificationCategoryList,
|
|
1484
1486
|
{
|
|
1485
1487
|
masterId: "emailNotifications",
|
|
1486
1488
|
masterTitle: "Email Notifications",
|
|
1487
1489
|
masterDescription: "Email me about activity when I\u2019m away",
|
|
1488
1490
|
masterChecked: prefs.masterChecked,
|
|
1489
1491
|
onMasterChange: prefs.setAll,
|
|
1490
|
-
categories:
|
|
1492
|
+
categories: chunkRPCQBET5_cjs.toNotificationCategories(prefs.checked, categories),
|
|
1491
1493
|
onCategoryChange: prefs.setCategory
|
|
1492
1494
|
}
|
|
1493
1495
|
) }) });
|
|
@@ -1501,14 +1503,14 @@ function ConnectedSessionsRow({
|
|
|
1501
1503
|
const sessions = react$1.useSessions({ enabled: open });
|
|
1502
1504
|
const currentSessionId = react$1.useCurrentSessionId();
|
|
1503
1505
|
const terminate = react$1.useTerminateSession();
|
|
1504
|
-
const views =
|
|
1506
|
+
const views = chunkRPCQBET5_cjs.toActiveSessionViews(sessions.data ?? [], {
|
|
1505
1507
|
currentSessionId,
|
|
1506
1508
|
terminatingId: terminate.isPending ? terminate.variables : null,
|
|
1507
1509
|
renderIcon: renderSessionIcon
|
|
1508
1510
|
});
|
|
1509
1511
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1510
1512
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1511
|
-
|
|
1513
|
+
chunkRPCQBET5_cjs.SettingsRow,
|
|
1512
1514
|
{
|
|
1513
1515
|
label: "Active sessions",
|
|
1514
1516
|
description: "Devices and agents currently signed in to your account.",
|
|
@@ -1530,7 +1532,7 @@ function ConnectedSessionsRow({
|
|
|
1530
1532
|
}
|
|
1531
1533
|
),
|
|
1532
1534
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1533
|
-
|
|
1535
|
+
chunkRPCQBET5_cjs.ActiveSessionsDialog,
|
|
1534
1536
|
{
|
|
1535
1537
|
open,
|
|
1536
1538
|
onOpenChange: setOpen,
|
|
@@ -1565,7 +1567,7 @@ function ConnectedLogoutDialog({
|
|
|
1565
1567
|
const sessions = react$1.useSessions({ enabled: open });
|
|
1566
1568
|
const logoutAll = react$1.useLogoutAllSessions();
|
|
1567
1569
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1568
|
-
|
|
1570
|
+
chunkRPCQBET5_cjs.LogoutDialog,
|
|
1569
1571
|
{
|
|
1570
1572
|
open,
|
|
1571
1573
|
onClose,
|
|
@@ -1579,7 +1581,7 @@ function ConnectedLogoutDialog({
|
|
|
1579
1581
|
},
|
|
1580
1582
|
canLogoutAll: true,
|
|
1581
1583
|
isOnline,
|
|
1582
|
-
sessions:
|
|
1584
|
+
sessions: chunkRPCQBET5_cjs.toLogoutSessionViews(sessions.data ?? []),
|
|
1583
1585
|
renderSessionIcon
|
|
1584
1586
|
}
|
|
1585
1587
|
);
|
|
@@ -1598,7 +1600,7 @@ function ConnectedDangerZone({ notify: notify3, renderSubscriptionLink }) {
|
|
|
1598
1600
|
});
|
|
1599
1601
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1600
1602
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1601
|
-
|
|
1603
|
+
chunkRPCQBET5_cjs.SettingsDangerZone,
|
|
1602
1604
|
{
|
|
1603
1605
|
isOpen: zoneOpen,
|
|
1604
1606
|
onToggle: () => setZoneOpen((o) => !o),
|
|
@@ -1618,12 +1620,12 @@ function ConnectedDangerZone({ notify: notify3, renderSubscriptionLink }) {
|
|
|
1618
1620
|
}
|
|
1619
1621
|
),
|
|
1620
1622
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1621
|
-
|
|
1623
|
+
chunkRPCQBET5_cjs.DeleteAccountDialog,
|
|
1622
1624
|
{
|
|
1623
1625
|
open: dialogOpen,
|
|
1624
1626
|
onClose: flow.onClose,
|
|
1625
1627
|
step: flow.step,
|
|
1626
|
-
blockers:
|
|
1628
|
+
blockers: chunkRPCQBET5_cjs.toDeleteBlockerViews(flow.blockers, renderSubscriptionLink),
|
|
1627
1629
|
onContinue: flow.onContinue,
|
|
1628
1630
|
onBack: flow.onBack,
|
|
1629
1631
|
userEmail: user?.email ?? "",
|