@arbidocs/blocks 0.4.111 → 0.4.113
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/{NativeDocxEditor-AQKRZBIU.cjs → NativeDocxEditor-AQZSUGET.cjs} +8 -8
- package/dist/{NativeDocxEditor-AQKRZBIU.cjs.map → NativeDocxEditor-AQZSUGET.cjs.map} +1 -1
- package/dist/{NativeDocxEditor-IN2HEO5I.js → NativeDocxEditor-MBCBXYDZ.js} +4 -4
- package/dist/{NativeDocxEditor-IN2HEO5I.js.map → NativeDocxEditor-MBCBXYDZ.js.map} +1 -1
- package/dist/chat/index.cjs +131 -131
- package/dist/chat/index.js +4 -4
- package/dist/{chunk-2C7TCVQZ.js → chunk-3OT37I24.js} +30 -297
- package/dist/chunk-3OT37I24.js.map +1 -0
- package/dist/{chunk-HBBJYRGI.cjs → chunk-5U4WY2VW.cjs} +9 -9
- package/dist/{chunk-HBBJYRGI.cjs.map → chunk-5U4WY2VW.cjs.map} +1 -1
- package/dist/{chunk-XKSFJYOD.cjs → chunk-5UHAWSEX.cjs} +4 -4
- package/dist/{chunk-XKSFJYOD.cjs.map → chunk-5UHAWSEX.cjs.map} +1 -1
- package/dist/{chunk-KZJAG7T3.js → chunk-7XF5SFJ2.js} +3 -3
- package/dist/{chunk-KZJAG7T3.js.map → chunk-7XF5SFJ2.js.map} +1 -1
- package/dist/{chunk-VGOFFCMT.cjs → chunk-B6MVQCXW.cjs} +3 -3
- package/dist/{chunk-VGOFFCMT.cjs.map → chunk-B6MVQCXW.cjs.map} +1 -1
- package/dist/{chunk-VLOPZHFH.js → chunk-D3N67Q4D.js} +3 -3
- package/dist/{chunk-VLOPZHFH.js.map → chunk-D3N67Q4D.js.map} +1 -1
- package/dist/{chunk-XIGWUDOD.cjs → chunk-ETBB5KMN.cjs} +61 -316
- package/dist/chunk-ETBB5KMN.cjs.map +1 -0
- package/dist/{chunk-Q6B77ZWZ.js → chunk-GIBRZ54P.js} +3 -3
- package/dist/{chunk-Q6B77ZWZ.js.map → chunk-GIBRZ54P.js.map} +1 -1
- package/dist/{chunk-2WO5L7YT.cjs → chunk-HF4PAYBM.cjs} +5 -5
- package/dist/{chunk-2WO5L7YT.cjs.map → chunk-HF4PAYBM.cjs.map} +1 -1
- package/dist/chunk-I2QSDQQV.cjs +126 -0
- package/dist/chunk-I2QSDQQV.cjs.map +1 -0
- package/dist/{chunk-BV7FEMSI.js → chunk-OKERRHLH.js} +3 -3
- package/dist/{chunk-BV7FEMSI.js.map → chunk-OKERRHLH.js.map} +1 -1
- package/dist/{chunk-CXZ7FPTQ.js → chunk-PKZYL2KU.js} +3 -3
- package/dist/{chunk-CXZ7FPTQ.js.map → chunk-PKZYL2KU.js.map} +1 -1
- package/dist/{chunk-NRUPUDWB.js → chunk-PXE5BNK6.js} +3 -3
- package/dist/{chunk-NRUPUDWB.js.map → chunk-PXE5BNK6.js.map} +1 -1
- package/dist/chunk-QXMR5YHC.js +80 -0
- package/dist/chunk-QXMR5YHC.js.map +1 -0
- package/dist/{chunk-TF47ATYS.cjs → chunk-RUFNJRLW.cjs} +4 -4
- package/dist/{chunk-TF47ATYS.cjs.map → chunk-RUFNJRLW.cjs.map} +1 -1
- package/dist/{chunk-HBF4BDRU.cjs → chunk-S6BOINC4.cjs} +7 -7
- package/dist/{chunk-HBF4BDRU.cjs.map → chunk-S6BOINC4.cjs.map} +1 -1
- package/dist/{chunk-6RHHMBZ5.js → chunk-TAXKPPNC.js} +5 -5
- package/dist/{chunk-6RHHMBZ5.js.map → chunk-TAXKPPNC.js.map} +1 -1
- package/dist/{chunk-WTM65ZNG.js → chunk-TKJSCHSX.js} +3 -3
- package/dist/{chunk-WTM65ZNG.js.map → chunk-TKJSCHSX.js.map} +1 -1
- package/dist/{chunk-2UAJVK3C.cjs → chunk-UAMZXRYJ.cjs} +4 -4
- package/dist/{chunk-2UAJVK3C.cjs.map → chunk-UAMZXRYJ.cjs.map} +1 -1
- package/dist/{chunk-WPVIOGDG.cjs → chunk-US5ASM4G.cjs} +22 -22
- package/dist/{chunk-WPVIOGDG.cjs.map → chunk-US5ASM4G.cjs.map} +1 -1
- package/dist/{chunk-CECWAIHL.js → chunk-XFZ7HNPG.js} +3 -3
- package/dist/{chunk-CECWAIHL.js.map → chunk-XFZ7HNPG.js.map} +1 -1
- package/dist/{chunk-VP4KJ4LK.cjs → chunk-XZB2QP76.cjs} +7 -7
- package/dist/{chunk-VP4KJ4LK.cjs.map → chunk-XZB2QP76.cjs.map} +1 -1
- package/dist/connect/docx.cjs +7 -7
- package/dist/connect/docx.js +5 -5
- package/dist/connect/index.cjs +29 -29
- package/dist/connect/index.js +11 -11
- package/dist/docx/definitions/commands.d.ts +3 -52
- package/dist/docx/definitions/fragment.d.ts +5 -31
- package/dist/docx/definitions/port.d.ts +2 -22
- package/dist/docx/index.cjs +47 -47
- package/dist/docx/index.js +4 -4
- package/dist/docx/references/commands.d.ts +3 -89
- package/dist/docx/references/port.d.ts +2 -11
- package/dist/index.cjs +386 -386
- package/dist/index.js +13 -13
- package/dist/settings/index.cjs +1 -1
- package/dist/settings/index.js +1 -1
- package/dist/shell/Shell.d.ts +5 -0
- package/dist/shell/index.cjs +60 -60
- package/dist/shell/index.js +3 -3
- package/dist/studio/index.cjs +4 -4
- package/dist/studio/index.js +3 -3
- package/dist/tags/definitions.d.ts +4 -25
- package/dist/tags/ooxml.d.ts +1 -19
- package/node_modules/@arbidocs/coedit/dist/commands.cjs +687 -0
- package/node_modules/@arbidocs/coedit/dist/commands.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/commands.d.cts +263 -157
- package/node_modules/@arbidocs/coedit/dist/commands.d.ts +263 -157
- package/node_modules/@arbidocs/coedit/dist/commands.js +646 -2
- package/node_modules/@arbidocs/coedit/dist/commands.js.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/port-ip7WByvH.d.cts +188 -0
- package/node_modules/@arbidocs/coedit/dist/port-ip7WByvH.d.ts +188 -0
- package/node_modules/@arbidocs/coedit/dist/server.cjs +675 -65
- package/node_modules/@arbidocs/coedit/dist/server.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.d.cts +15 -4
- package/node_modules/@arbidocs/coedit/dist/server.d.ts +15 -4
- package/node_modules/@arbidocs/coedit/dist/server.js +676 -67
- package/node_modules/@arbidocs/coedit/dist/server.js.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/template.d.cts +3 -17
- package/node_modules/@arbidocs/coedit/dist/template.d.ts +3 -17
- package/node_modules/@arbidocs/coedit/dist/track-eYC94jTp.d.cts +17 -0
- package/node_modules/@arbidocs/coedit/dist/track-eYC94jTp.d.ts +17 -0
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +4 -4
- package/dist/chunk-2A4MDHJR.cjs +0 -198
- package/dist/chunk-2A4MDHJR.cjs.map +0 -1
- package/dist/chunk-2C7TCVQZ.js.map +0 -1
- package/dist/chunk-EPHGD4YV.js +0 -174
- package/dist/chunk-EPHGD4YV.js.map +0 -1
- package/dist/chunk-XIGWUDOD.cjs.map +0 -1
package/dist/connect/docx.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkRUFNJRLW_cjs = require('../chunk-RUFNJRLW.cjs');
|
|
5
5
|
require('../chunk-MUMH3Z6K.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkHF4PAYBM_cjs = require('../chunk-HF4PAYBM.cjs');
|
|
7
7
|
require('../chunk-S24XEVPS.cjs');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-ETBB5KMN.cjs');
|
|
9
9
|
require('../chunk-5FYU7ZIU.cjs');
|
|
10
|
-
require('../chunk-
|
|
10
|
+
require('../chunk-I2QSDQQV.cjs');
|
|
11
11
|
require('../chunk-RC25WMVB.cjs');
|
|
12
12
|
require('../chunk-7UTB4PHM.cjs');
|
|
13
13
|
require('../chunk-MHVNT4J3.cjs');
|
|
@@ -18,13 +18,13 @@ function ConnectedStreamedWordArtifact({
|
|
|
18
18
|
fontBaseUrl,
|
|
19
19
|
...props
|
|
20
20
|
}) {
|
|
21
|
-
const adapter =
|
|
22
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21
|
+
const adapter = chunkRUFNJRLW_cjs.useConnectedNativeDocxAdapter(fontBaseUrl);
|
|
22
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkHF4PAYBM_cjs.StreamedWordArtifact, { ...props, adapter });
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
Object.defineProperty(exports, "ConnectedNativeDocxEditor", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkRUFNJRLW_cjs.ConnectedNativeDocxEditor; }
|
|
28
28
|
});
|
|
29
29
|
exports.ConnectedStreamedWordArtifact = ConnectedStreamedWordArtifact;
|
|
30
30
|
//# sourceMappingURL=docx.cjs.map
|
package/dist/connect/docx.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useConnectedNativeDocxAdapter } from '../chunk-
|
|
3
|
-
export { ConnectedNativeDocxEditor } from '../chunk-
|
|
2
|
+
import { useConnectedNativeDocxAdapter } from '../chunk-GIBRZ54P.js';
|
|
3
|
+
export { ConnectedNativeDocxEditor } from '../chunk-GIBRZ54P.js';
|
|
4
4
|
import '../chunk-OYMWV45N.js';
|
|
5
|
-
import { StreamedWordArtifact } from '../chunk-
|
|
5
|
+
import { StreamedWordArtifact } from '../chunk-TKJSCHSX.js';
|
|
6
6
|
import '../chunk-GYAUJ4KT.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-3OT37I24.js';
|
|
8
8
|
import '../chunk-HFZ45FD3.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-QXMR5YHC.js';
|
|
10
10
|
import '../chunk-AF6RDAJF.js';
|
|
11
11
|
import '../chunk-AA3PT6KR.js';
|
|
12
12
|
import '../chunk-7F6CBP3Z.js';
|
package/dist/connect/index.cjs
CHANGED
|
@@ -2,20 +2,18 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkOR4CO743_cjs = require('../chunk-OR4CO743.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkUAMZXRYJ_cjs = require('../chunk-UAMZXRYJ.cjs');
|
|
6
|
+
var chunkRUFNJRLW_cjs = require('../chunk-RUFNJRLW.cjs');
|
|
7
7
|
var chunkMUMH3Z6K_cjs = require('../chunk-MUMH3Z6K.cjs');
|
|
8
8
|
var chunkJH6JTI76_cjs = require('../chunk-JH6JTI76.cjs');
|
|
9
9
|
require('../chunk-S24XEVPS.cjs');
|
|
10
|
-
require('../chunk-
|
|
10
|
+
require('../chunk-ETBB5KMN.cjs');
|
|
11
11
|
require('../chunk-5FYU7ZIU.cjs');
|
|
12
12
|
var chunkO4YPVYPO_cjs = require('../chunk-O4YPVYPO.cjs');
|
|
13
|
-
var
|
|
13
|
+
var chunkUS5ASM4G_cjs = require('../chunk-US5ASM4G.cjs');
|
|
14
14
|
var chunkU6MPHCEB_cjs = require('../chunk-U6MPHCEB.cjs');
|
|
15
|
-
var
|
|
15
|
+
var chunkI2QSDQQV_cjs = require('../chunk-I2QSDQQV.cjs');
|
|
16
16
|
require('../chunk-RC25WMVB.cjs');
|
|
17
|
-
var chunkQVBZESYQ_cjs = require('../chunk-QVBZESYQ.cjs');
|
|
18
|
-
require('../chunk-ADOKTJHV.cjs');
|
|
19
17
|
var chunkXSUOEJB3_cjs = require('../chunk-XSUOEJB3.cjs');
|
|
20
18
|
require('../chunk-7D737FLE.cjs');
|
|
21
19
|
var chunkN26CXGXC_cjs = require('../chunk-N26CXGXC.cjs');
|
|
@@ -23,10 +21,12 @@ require('../chunk-DETZZBG2.cjs');
|
|
|
23
21
|
require('../chunk-32HW2Q33.cjs');
|
|
24
22
|
var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
|
|
25
23
|
require('../chunk-C2CWWEHO.cjs');
|
|
24
|
+
var chunkQVBZESYQ_cjs = require('../chunk-QVBZESYQ.cjs');
|
|
25
|
+
require('../chunk-ADOKTJHV.cjs');
|
|
26
26
|
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
27
27
|
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
28
|
-
var
|
|
29
|
-
require('../chunk-
|
|
28
|
+
var chunkXZB2QP76_cjs = require('../chunk-XZB2QP76.cjs');
|
|
29
|
+
require('../chunk-B6MVQCXW.cjs');
|
|
30
30
|
require('../chunk-B4SRYJLM.cjs');
|
|
31
31
|
require('../chunk-7UTB4PHM.cjs');
|
|
32
32
|
require('../chunk-FX3K6LNZ.cjs');
|
|
@@ -122,7 +122,7 @@ function ConnectedWorkspaceActivity({
|
|
|
122
122
|
[feed.data]
|
|
123
123
|
);
|
|
124
124
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
125
|
-
|
|
125
|
+
chunkUS5ASM4G_cjs.WorkspaceActivityList,
|
|
126
126
|
{
|
|
127
127
|
...listProps,
|
|
128
128
|
items,
|
|
@@ -148,7 +148,7 @@ function ConnectedWorkspaceNotificationMenu({
|
|
|
148
148
|
});
|
|
149
149
|
if (!workspaceId) return null;
|
|
150
150
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
151
|
-
|
|
151
|
+
chunkUS5ASM4G_cjs.WorkspaceNotificationMenu,
|
|
152
152
|
{
|
|
153
153
|
...menuProps,
|
|
154
154
|
level,
|
|
@@ -167,7 +167,7 @@ function ConnectedThreadFollow({
|
|
|
167
167
|
enabled: status === "authenticated"
|
|
168
168
|
});
|
|
169
169
|
if (!conversationId) return null;
|
|
170
|
-
const Control = as === "menu-item" ?
|
|
170
|
+
const Control = as === "menu-item" ? chunkUS5ASM4G_cjs.ThreadFollowMenuItem : chunkUS5ASM4G_cjs.ThreadFollowButton;
|
|
171
171
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
172
172
|
Control,
|
|
173
173
|
{
|
|
@@ -328,7 +328,7 @@ function useAnswerRetry(missing, refetch) {
|
|
|
328
328
|
function useWorkflowThread(workflow, options = {}) {
|
|
329
329
|
const arbi = react$1.useArbi();
|
|
330
330
|
const { ensureWorkspaceOpen, status } = chunkMUMH3Z6K_cjs.useConnection();
|
|
331
|
-
const { wsId } =
|
|
331
|
+
const { wsId } = chunkUAMZXRYJ_cjs.useWorkspaceDocs();
|
|
332
332
|
const [threadId, setThreadId] = react.useState(options.conversationId);
|
|
333
333
|
const [localInputs, setLocalInputs] = react.useState(
|
|
334
334
|
() => chunkXSUOEJB3_cjs.initialRunInputs(workflow, options.initialInputs)
|
|
@@ -541,7 +541,7 @@ function WorkflowRunThread({
|
|
|
541
541
|
if (listed && activeThreadId !== conversationId) selectThread(conversationId);
|
|
542
542
|
}, [listed, activeThreadId, conversationId, selectThread]);
|
|
543
543
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
544
|
-
|
|
544
|
+
chunkXZB2QP76_cjs.ChatPage,
|
|
545
545
|
{
|
|
546
546
|
chat: { ...chat, threads: chat.threads.filter((t) => t.id === conversationId) },
|
|
547
547
|
singleThread: true,
|
|
@@ -666,7 +666,7 @@ function WorkflowWordDialog({
|
|
|
666
666
|
title: title ?? labels.wordTitle,
|
|
667
667
|
size: "xl",
|
|
668
668
|
testId: "workflow-word-dialog",
|
|
669
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
669
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(chunkRUFNJRLW_cjs.ConnectedNativeDocxEditor, { documentId: id, title: title ?? labels.wordTitle }) })
|
|
670
670
|
}
|
|
671
671
|
);
|
|
672
672
|
}
|
|
@@ -806,7 +806,7 @@ function ConnectedWorkflowRunner({
|
|
|
806
806
|
const dl = { ...DEFAULT_WORKFLOW_RUNNER_DIALOG_LABELS, ...dialogLabels };
|
|
807
807
|
const arbi = react$1.useArbi();
|
|
808
808
|
const { ensureWorkspaceOpen, user } = chunkMUMH3Z6K_cjs.useConnection();
|
|
809
|
-
const { wsId } =
|
|
809
|
+
const { wsId } = chunkUAMZXRYJ_cjs.useWorkspaceDocs();
|
|
810
810
|
const { data: docs = [], refetch } = react$1.useDocuments(wsId);
|
|
811
811
|
const [sending, setSending] = react.useState([]);
|
|
812
812
|
const [added, setAdded] = react.useState({});
|
|
@@ -1205,17 +1205,17 @@ function ConnectedTagTable({
|
|
|
1205
1205
|
const fail = (e) => setError(e instanceof Error ? e.message : String(e));
|
|
1206
1206
|
const snapshot = (data) => {
|
|
1207
1207
|
const title = exportTitle ?? KIND_TITLES[kind];
|
|
1208
|
-
const bytes =
|
|
1208
|
+
const bytes = chunkUS5ASM4G_cjs.tagTableDocx(data, {
|
|
1209
1209
|
title,
|
|
1210
1210
|
nameOf: (id) => people.find((p) => p.value === id)?.label
|
|
1211
1211
|
});
|
|
1212
1212
|
const stamp = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
1213
1213
|
const name = `${title.replace(/[\\/:*?"<>|]+/g, "-")} (${stamp}).docx`;
|
|
1214
|
-
return { blob: new Blob([bytes], { type:
|
|
1214
|
+
return { blob: new Blob([bytes], { type: chunkI2QSDQQV_cjs.DOCX_MIME_TYPE }), name };
|
|
1215
1215
|
};
|
|
1216
1216
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
1217
1217
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1218
|
-
|
|
1218
|
+
chunkUS5ASM4G_cjs.TagTable,
|
|
1219
1219
|
{
|
|
1220
1220
|
...props,
|
|
1221
1221
|
table,
|
|
@@ -2147,7 +2147,7 @@ var MailBodyEditor = react.lazy(
|
|
|
2147
2147
|
}))
|
|
2148
2148
|
);
|
|
2149
2149
|
var NativeDocxEditor = react.lazy(
|
|
2150
|
-
() => import('../NativeDocxEditor-
|
|
2150
|
+
() => import('../NativeDocxEditor-AQZSUGET.cjs').then((m) => ({ default: m.NativeDocxEditor }))
|
|
2151
2151
|
);
|
|
2152
2152
|
var NO_WORD = {
|
|
2153
2153
|
adapter: {
|
|
@@ -3638,7 +3638,7 @@ function ConnectedMailMessage({
|
|
|
3638
3638
|
function ActiveChat({ agentId, workspaceId }) {
|
|
3639
3639
|
const chat = react$1.useArbiChat({ agentId, workspaceId });
|
|
3640
3640
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3641
|
-
|
|
3641
|
+
chunkXZB2QP76_cjs.ChatPage,
|
|
3642
3642
|
{
|
|
3643
3643
|
chat: { ...chat, assistantMode: void 0, setAssistantMode: void 0 },
|
|
3644
3644
|
documentsRequired: false,
|
|
@@ -3700,35 +3700,35 @@ function ConnectedAgentChatPanel({
|
|
|
3700
3700
|
|
|
3701
3701
|
Object.defineProperty(exports, "ConnectedAssistantDock", {
|
|
3702
3702
|
enumerable: true,
|
|
3703
|
-
get: function () { return
|
|
3703
|
+
get: function () { return chunkUAMZXRYJ_cjs.ConnectedAssistantDock; }
|
|
3704
3704
|
});
|
|
3705
3705
|
Object.defineProperty(exports, "redlineStats", {
|
|
3706
3706
|
enumerable: true,
|
|
3707
|
-
get: function () { return
|
|
3707
|
+
get: function () { return chunkUAMZXRYJ_cjs.redlineStats; }
|
|
3708
3708
|
});
|
|
3709
3709
|
Object.defineProperty(exports, "textToArtifact", {
|
|
3710
3710
|
enumerable: true,
|
|
3711
|
-
get: function () { return
|
|
3711
|
+
get: function () { return chunkUAMZXRYJ_cjs.textToArtifact; }
|
|
3712
3712
|
});
|
|
3713
3713
|
Object.defineProperty(exports, "toRedlineMarkdown", {
|
|
3714
3714
|
enumerable: true,
|
|
3715
|
-
get: function () { return
|
|
3715
|
+
get: function () { return chunkUAMZXRYJ_cjs.toRedlineMarkdown; }
|
|
3716
3716
|
});
|
|
3717
3717
|
Object.defineProperty(exports, "useConnectedAiTask", {
|
|
3718
3718
|
enumerable: true,
|
|
3719
|
-
get: function () { return
|
|
3719
|
+
get: function () { return chunkUAMZXRYJ_cjs.useConnectedAiTask; }
|
|
3720
3720
|
});
|
|
3721
3721
|
Object.defineProperty(exports, "useConnectedChat", {
|
|
3722
3722
|
enumerable: true,
|
|
3723
|
-
get: function () { return
|
|
3723
|
+
get: function () { return chunkUAMZXRYJ_cjs.useConnectedChat; }
|
|
3724
3724
|
});
|
|
3725
3725
|
Object.defineProperty(exports, "useSemanticSearch", {
|
|
3726
3726
|
enumerable: true,
|
|
3727
|
-
get: function () { return
|
|
3727
|
+
get: function () { return chunkUAMZXRYJ_cjs.useSemanticSearch; }
|
|
3728
3728
|
});
|
|
3729
3729
|
Object.defineProperty(exports, "useWorkspaceDocs", {
|
|
3730
3730
|
enumerable: true,
|
|
3731
|
-
get: function () { return
|
|
3731
|
+
get: function () { return chunkUAMZXRYJ_cjs.useWorkspaceDocs; }
|
|
3732
3732
|
});
|
|
3733
3733
|
Object.defineProperty(exports, "ConnectionProvider", {
|
|
3734
3734
|
enumerable: true,
|
package/dist/connect/index.js
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { SettingsSection, ProfileCard, AvatarPicker, IdentityVerificationCard, IdentityVerificationDialog, RequireVerified, SettingsCard, SettingsActionRow, PasswordChangeDialog, EMAIL_NOTIFICATION_KEYS, EMAIL_NOTIFICATION_CATEGORIES, NotificationCategoryList, toNotificationCategories, toActiveSessionViews, SettingsRow, ActiveSessionsDialog, LogoutDialog, toLogoutSessionViews, SettingsDangerZone, DeleteAccountDialog, toDeleteBlockerViews } from '../chunk-GFYGYME3.js';
|
|
3
|
-
import { useWorkspaceDocs } from '../chunk-
|
|
4
|
-
export { ConnectedAssistantDock, redlineStats, textToArtifact, toRedlineMarkdown, useConnectedAiTask, useConnectedChat, useSemanticSearch, useWorkspaceDocs } from '../chunk-
|
|
5
|
-
import { ConnectedNativeDocxEditor } from '../chunk-
|
|
3
|
+
import { useWorkspaceDocs } from '../chunk-PKZYL2KU.js';
|
|
4
|
+
export { ConnectedAssistantDock, redlineStats, textToArtifact, toRedlineMarkdown, useConnectedAiTask, useConnectedChat, useSemanticSearch, useWorkspaceDocs } from '../chunk-PKZYL2KU.js';
|
|
5
|
+
import { ConnectedNativeDocxEditor } from '../chunk-GIBRZ54P.js';
|
|
6
6
|
import { ConnectionProvider, useConnection } from '../chunk-OYMWV45N.js';
|
|
7
7
|
export { ConnectionProvider, SESSION_EXPIRED_MESSAGE, isAuthenticated, useConnection } from '../chunk-OYMWV45N.js';
|
|
8
8
|
import { SignDocumentDialog } from '../chunk-2YOVK524.js';
|
|
9
9
|
import '../chunk-GYAUJ4KT.js';
|
|
10
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-3OT37I24.js';
|
|
11
11
|
import '../chunk-HFZ45FD3.js';
|
|
12
12
|
import { FilesFilterBar, FolderFilterButton, FolderPickerRow } from '../chunk-7RJTEWYM.js';
|
|
13
|
-
import { WorkspaceActivityList, WorkspaceNotificationMenu, ThreadFollowMenuItem, ThreadFollowButton, TagTable, tagTableDocx } from '../chunk-
|
|
13
|
+
import { WorkspaceActivityList, WorkspaceNotificationMenu, ThreadFollowMenuItem, ThreadFollowButton, TagTable, tagTableDocx } from '../chunk-XFZ7HNPG.js';
|
|
14
14
|
import { PlainMailBodyEditor, draftMailCompose, replyMailCompose, emptyMailCompose, MailGrid, MailMessageView, MailDocumentPicker, parseMailRecipients } from '../chunk-IXTQYFIF.js';
|
|
15
|
-
import { DOCX_MIME_TYPE } from '../chunk-
|
|
15
|
+
import { DOCX_MIME_TYPE } from '../chunk-QXMR5YHC.js';
|
|
16
16
|
import '../chunk-AF6RDAJF.js';
|
|
17
|
-
import { StreamedArtifactFrame } from '../chunk-LOJVUGBJ.js';
|
|
18
|
-
import '../chunk-VILAPTCB.js';
|
|
19
17
|
import { splitDocRef, WorkflowStepBar, stepLevels, WorkflowRunner, initialRunInputs, workflowSteps, fromPlanSteps, stepStatesFromActivity, toPlanSteps, runThreadTitle, useWorkflowView, stepFields } from '../chunk-AY32GGKU.js';
|
|
20
18
|
import '../chunk-XD2M6LIG.js';
|
|
21
19
|
import { TriStateFilterMenu } from '../chunk-6S5FLMWG.js';
|
|
@@ -23,10 +21,12 @@ import '../chunk-EVUEIBNU.js';
|
|
|
23
21
|
import '../chunk-AUS3KBHJ.js';
|
|
24
22
|
import { FilterInput } from '../chunk-YU2KUMGE.js';
|
|
25
23
|
import '../chunk-N5YEF3LC.js';
|
|
24
|
+
import { StreamedArtifactFrame } from '../chunk-LOJVUGBJ.js';
|
|
25
|
+
import '../chunk-VILAPTCB.js';
|
|
26
26
|
import { TabHeader } from '../chunk-4WWM3GQ5.js';
|
|
27
27
|
import { ModalScaffold } from '../chunk-TX2ZICS7.js';
|
|
28
|
-
import { ChatPage } from '../chunk-
|
|
29
|
-
import '../chunk-
|
|
28
|
+
import { ChatPage } from '../chunk-PXE5BNK6.js';
|
|
29
|
+
import '../chunk-7XF5SFJ2.js';
|
|
30
30
|
import '../chunk-HOXKR26S.js';
|
|
31
31
|
import '../chunk-AA3PT6KR.js';
|
|
32
32
|
import '../chunk-SLSBJRWW.js';
|
|
@@ -2147,7 +2147,7 @@ var MailBodyEditor = lazy(
|
|
|
2147
2147
|
}))
|
|
2148
2148
|
);
|
|
2149
2149
|
var NativeDocxEditor = lazy(
|
|
2150
|
-
() => import('../NativeDocxEditor-
|
|
2150
|
+
() => import('../NativeDocxEditor-MBCBXYDZ.js').then((m) => ({ default: m.NativeDocxEditor }))
|
|
2151
2151
|
);
|
|
2152
2152
|
var NO_WORD = {
|
|
2153
2153
|
adapter: {
|
|
@@ -1,54 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The defined-term commands:
|
|
3
|
-
*
|
|
4
|
-
* {@link DefinitionsPort}, so they run on the live editor and on the in-memory model the tests use
|
|
5
|
-
* alike.
|
|
6
|
-
*
|
|
7
|
-
* Where the Definitions section is: the first top-level paragraph titled "Definitions",
|
|
8
|
-
* "Definitions and interpretation", "Interpretation", "Defined terms" or "Glossary" (clause numbers
|
|
9
|
-
* ignored), up to the next heading. A document without one gets a "Definitions" heading at its end:
|
|
10
|
-
* appended, it never splits the clause being drafted, and it is where a reader of a draft looks
|
|
11
|
-
* for a schedule of terms. Inside the section, definitions are kept in alphabetical order.
|
|
2
|
+
* The defined-term commands: shared with the collaboration service, see
|
|
3
|
+
* `@arbidocs/coedit/commands` (`definitions.ts`).
|
|
12
4
|
*/
|
|
13
|
-
|
|
14
|
-
import type { DefinitionsPort, DocParagraph, DocPoint } from './port';
|
|
15
|
-
/** Title of a Definitions section the commands create. */
|
|
16
|
-
export declare const DEFINITIONS_HEADING = "Definitions";
|
|
17
|
-
/** Whether a paragraph titles a Definitions section. */
|
|
18
|
-
export declare function isDefinitionsTitle(paragraph: DocParagraph): boolean;
|
|
19
|
-
/** The Definitions section: its title's index and the paragraphs after it, up to the next heading. */
|
|
20
|
-
export interface DefinitionsSection {
|
|
21
|
-
title: number;
|
|
22
|
-
/** First paragraph after the title. */
|
|
23
|
-
start: number;
|
|
24
|
-
/** Index after the section's last paragraph (the next heading, a table, or the end). */
|
|
25
|
-
end: number;
|
|
26
|
-
}
|
|
27
|
-
export declare function findDefinitionsSection(paragraphs: readonly DocParagraph[]): DefinitionsSection | null;
|
|
28
|
-
/**
|
|
29
|
-
* Where a definition of `term` goes in the section, alphabetically: before the first definition
|
|
30
|
-
* whose term sorts after it, else after the last definition (else right after the title).
|
|
31
|
-
*/
|
|
32
|
-
export declare function insertionIndex(paragraphs: readonly DocParagraph[], section: DefinitionsSection, term: string, skip?: ReadonlySet<string>): number;
|
|
33
|
-
/**
|
|
34
|
-
* Add a definition paragraph to the Definitions section (made at the end of the document when there
|
|
35
|
-
* is none), in alphabetical order. Answers where `keep` moved to.
|
|
36
|
-
*/
|
|
37
|
-
export declare function addDefinition(port: DefinitionsPort, definition: Definition, keep?: DocPoint): DocPoint | undefined;
|
|
38
|
-
export interface InsertTermResult {
|
|
39
|
-
/** The definition was not in the document yet and was added to its Definitions section. */
|
|
40
|
-
addedDefinition: boolean;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Insert a defined term at the caret: the term as an internal link to its definition's bookmark
|
|
44
|
-
* (its definition as the link's tooltip), the definition added to the Definitions section first
|
|
45
|
-
* when the document does not have it. `replace` characters before the caret (a typed `@@query`)
|
|
46
|
-
* are removed first. The caret ends after the term.
|
|
47
|
-
*/
|
|
48
|
-
export declare function insertDefinedTerm(port: DefinitionsPort, definition: Definition, options?: {
|
|
49
|
-
replace?: number;
|
|
50
|
-
}): InsertTermResult;
|
|
51
|
-
/** Term groups keyed for quick lookup of the definition a bookmark points at. */
|
|
52
|
-
export declare function definitionsById(definitions: readonly Definition[]): Map<string, Definition>;
|
|
53
|
-
/** The definition an internal link points at, from its bookmark name. */
|
|
54
|
-
export declare function definitionOfAnchor(anchor: string, definitions: ReadonlyMap<string, Definition>): Definition | undefined;
|
|
5
|
+
export { DEFINITIONS_HEADING, addDefinition, definitionOfAnchor, definitionsById, findDefinitionsSection, insertDefinedTerm, insertionIndex, isDefinitionsTitle, type DefinitionsSection, type InsertTermResult, } from '@arbidocs/coedit/commands';
|
|
@@ -1,42 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Defined-term content as WordprocessingML, and the clipboard
|
|
3
|
-
*
|
|
4
|
-
* fragment with everything in it — `w:bookmarkStart`/`w:bookmarkEnd` and `w:hyperlink w:anchor`
|
|
5
|
-
* included — freshening bookmark ids as it goes. So the term link, the bookmarked definition and a
|
|
6
|
-
* new Definitions heading are written here and pasted.
|
|
2
|
+
* Defined-term content as WordprocessingML, and the clipboard HTML that carries it into the editor:
|
|
3
|
+
* shared with the collaboration service (see `@arbidocs/coedit/commands`).
|
|
7
4
|
*/
|
|
8
|
-
import type {
|
|
9
|
-
|
|
10
|
-
import { BROKEN_CROSS_REFERENCE_STYLE, CROSS_REFERENCE_STYLE, DEFINED_TERM_STYLE } from '@arbidocs/coedit/commands';
|
|
11
|
-
export { BROKEN_CROSS_REFERENCE_STYLE, CROSS_REFERENCE_STYLE, DEFINED_TERM_STYLE };
|
|
12
|
-
/**
|
|
13
|
-
* The character styles the inserted content uses. A paste brings a style the document does not
|
|
14
|
-
* define; one it already defines (a house template's) is used as it is, so only the missing ones
|
|
15
|
-
* go into a fragment (see {@link stylesUsed}).
|
|
16
|
-
*/
|
|
17
|
-
export declare const CHARACTER_STYLES: Record<string, string>;
|
|
18
|
-
/** The character styles a fragment's runs use (`w:rStyle`), as ids. */
|
|
19
|
-
export declare function stylesUsed(body: string): string[];
|
|
20
|
-
/** What Word shows on hover over a term: its definition, as one line of at most 255 characters. */
|
|
21
|
-
export declare function definitionTooltip(definition: Pick<Definition, 'term' | 'rest'>): string;
|
|
22
|
-
/** The definition paragraph's text as the document shows it: `“Shares” means the issued shares.` */
|
|
23
|
-
export declare const definitionParagraphText: (definition: Pick<Definition, "term" | "rest">) => string;
|
|
24
|
-
/**
|
|
25
|
-
* A definition paragraph: the quoted term in bold, bookmarked (`bookmark`), then the definition as
|
|
26
|
-
* the fact writes it. `id` is the bookmark id inside the fragment; the paste renumbers it.
|
|
27
|
-
*/
|
|
28
|
-
export declare function definitionParagraphXml(definition: Pick<Definition, 'term' | 'rest'>, bookmark: string, id?: number): string;
|
|
29
|
-
/** A heading paragraph: the document's own heading style when it has one, else bold text. */
|
|
30
|
-
export declare function headingParagraphXml(text: string, styleId?: string): string;
|
|
31
|
-
/** The term as an internal link to its definition's bookmark, with the definition as its tooltip. */
|
|
32
|
-
export declare function termLinkXml(term: string, bookmark: string, tooltip: string): string;
|
|
5
|
+
import type { Revision } from '@arbidocs/coedit/template';
|
|
6
|
+
export { BROKEN_CROSS_REFERENCE_STYLE, CHARACTER_STYLES, CROSS_REFERENCE_STYLE, DEFINED_TERM_STYLE, definitionParagraphText, definitionParagraphXml, definitionTooltip, headingParagraphXml, stylesUsed, termLinkXml, } from '@arbidocs/coedit/commands';
|
|
33
7
|
/**
|
|
34
8
|
* Clipboard HTML carrying `body` (paragraph XML) as the editor's own fragment. `covered` says the
|
|
35
9
|
* last paragraph mark is part of it: the paste then ends with a whole paragraph (a block inserted
|
|
36
10
|
* before the caret's paragraph) instead of running into the text after the caret (inline).
|
|
37
11
|
* With a `revision`, the fragment is one tracked insertion by it.
|
|
38
12
|
*/
|
|
39
|
-
export declare function fragmentHtml(body: string, covered: boolean,
|
|
13
|
+
export declare function fragmentHtml(body: string, covered: boolean, options?: {
|
|
40
14
|
revision?: Revision | null;
|
|
41
15
|
/** Relationships the body refers to (a hyperlink's target). */
|
|
42
16
|
relationships?: string;
|
|
@@ -4,28 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import type { DocxEditorInstance } from '@docx-editor.dev/core';
|
|
6
6
|
import type { Revision } from '@arbidocs/coedit/template';
|
|
7
|
-
import { type
|
|
8
|
-
export { FIELD_ATOM, WATCHED_STYLES, readParagraphs, type DocField, type DocLink, type DocMark, type DocNote, type DocParagraph, type DocPoint, type OoxmlNodeLike, } from '@arbidocs/coedit/commands';
|
|
9
|
-
export interface DefinitionsPort {
|
|
10
|
-
/** Every body paragraph, in document order (table cells included, `topLevel: false`). */
|
|
11
|
-
paragraphs(): DocParagraph[];
|
|
12
|
-
/** The caret, or `null` when the selection is a range or there is none. */
|
|
13
|
-
caret(): DocPoint | null;
|
|
14
|
-
setCaret(point: DocPoint): void;
|
|
15
|
-
/** Delete everything between two points (across paragraphs: the marks between them go too). */
|
|
16
|
-
deleteRange(from: DocPoint, to: DocPoint): void;
|
|
17
|
-
/**
|
|
18
|
-
* Paste paragraph XML at the caret. `covered`: the fragment ends with a whole paragraph, so at
|
|
19
|
-
* the start of a paragraph it lands as paragraphs before it. Otherwise it runs inline.
|
|
20
|
-
*/
|
|
21
|
-
paste(body: string, text: string, covered: boolean, relationships?: string): boolean;
|
|
22
|
-
/** Split the caret's paragraph (Enter), the caret moving into the new one. */
|
|
23
|
-
splitParagraph(): void;
|
|
24
|
-
/** Type plain text at the caret. */
|
|
25
|
-
typeText(text: string): void;
|
|
26
|
-
}
|
|
27
|
-
/** The style ids a document's styles part defines. */
|
|
28
|
-
export declare function documentStyleIds(root: OoxmlNodeLike | null | undefined): Set<string>;
|
|
7
|
+
import { type DefinitionsPort } from '@arbidocs/coedit/commands';
|
|
8
|
+
export { FIELD_ATOM, WATCHED_STYLES, documentStyleIds, readParagraphs, type DefinitionsPort, type DocField, type DocLink, type DocMark, type DocNote, type DocParagraph, type DocPoint, type OoxmlNodeLike, } from '@arbidocs/coedit/commands';
|
|
29
9
|
/**
|
|
30
10
|
* The port over a live editor. Writes go through the editor's own commands and paste; with a
|
|
31
11
|
* `revision`, what it pastes is a tracked insertion by it (see `trackedOrNoted`).
|