@arbidocs/blocks 0.4.110 → 0.4.112
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-WODZAURG.cjs → NativeDocxEditor-AQZSUGET.cjs} +8 -8
- package/dist/{NativeDocxEditor-WODZAURG.cjs.map → NativeDocxEditor-AQZSUGET.cjs.map} +1 -1
- package/dist/{NativeDocxEditor-4PY4YZYC.js → NativeDocxEditor-MBCBXYDZ.js} +4 -4
- package/dist/{NativeDocxEditor-4PY4YZYC.js.map → NativeDocxEditor-MBCBXYDZ.js.map} +1 -1
- package/dist/agents/index.cjs +208 -208
- package/dist/agents/index.js +3 -3
- package/dist/calendar/EventEditor.d.ts +1 -1
- package/dist/calendar/draft.d.ts +7 -1
- package/dist/calendar/index.cjs +58 -10
- package/dist/calendar/index.cjs.map +1 -1
- package/dist/calendar/index.d.ts +1 -1
- package/dist/calendar/index.js +56 -11
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/types.d.ts +20 -0
- package/dist/calls/CallSidePanel.d.ts +16 -1
- package/dist/calls/ControlBar.d.ts +25 -3
- package/dist/calls/PreJoin.d.ts +6 -2
- package/dist/calls/cards.d.ts +6 -2
- package/dist/calls/index.cjs +1078 -47
- package/dist/calls/index.cjs.map +1 -1
- package/dist/calls/index.d.ts +4 -3
- package/dist/calls/index.js +1067 -51
- package/dist/calls/index.js.map +1 -1
- package/dist/calls/panels.d.ts +11 -0
- package/dist/calls/webinar/ChatPermissionSetting.d.ts +18 -0
- package/dist/calls/webinar/OnStageCheck.d.ts +23 -0
- package/dist/calls/webinar/QAPanel.d.ts +56 -0
- package/dist/calls/webinar/RaiseHandButton.d.ts +14 -0
- package/dist/calls/webinar/WebinarAudiencePanel.d.ts +23 -0
- package/dist/calls/webinar/WebinarViewer.d.ts +39 -0
- package/dist/calls/webinar/WebinarWaiting.d.ts +19 -0
- package/dist/calls/webinar/hooks.d.ts +13 -0
- package/dist/calls/webinar/index.d.ts +14 -0
- package/dist/calls/webinar/live.d.ts +43 -0
- package/dist/calls/webinar/types.d.ts +49 -0
- package/dist/{chunk-GKDWQLVU.js → chunk-3OT37I24.js} +165 -381
- package/dist/chunk-3OT37I24.js.map +1 -0
- package/dist/{chunk-2NIL2ASF.cjs → chunk-ETBB5KMN.cjs} +196 -400
- package/dist/chunk-ETBB5KMN.cjs.map +1 -0
- package/dist/{chunk-SQNAJPNR.js → chunk-GFYGYME3.js} +3 -3
- package/dist/{chunk-SQNAJPNR.js.map → chunk-GFYGYME3.js.map} +1 -1
- package/dist/{chunk-PEHLUB52.js → chunk-GIBRZ54P.js} +3 -3
- package/dist/{chunk-PEHLUB52.js.map → chunk-GIBRZ54P.js.map} +1 -1
- package/dist/chunk-GICUGQNN.cjs +76 -0
- package/dist/chunk-GICUGQNN.cjs.map +1 -0
- package/dist/{chunk-54WBIVHV.cjs → chunk-HF4PAYBM.cjs} +5 -5
- package/dist/{chunk-54WBIVHV.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-JJLMCV3T.js +73 -0
- package/dist/chunk-JJLMCV3T.js.map +1 -0
- package/dist/{chunk-W7ZDBPJ3.cjs → chunk-OR4CO743.cjs} +3 -3
- package/dist/{chunk-W7ZDBPJ3.cjs.map → chunk-OR4CO743.cjs.map} +1 -1
- package/dist/chunk-QXMR5YHC.js +80 -0
- package/dist/chunk-QXMR5YHC.js.map +1 -0
- package/dist/{chunk-ELDUWTRR.cjs → chunk-RUFNJRLW.cjs} +4 -4
- package/dist/{chunk-ELDUWTRR.cjs.map → chunk-RUFNJRLW.cjs.map} +1 -1
- package/dist/{chunk-JB32KYAH.js → chunk-TKJSCHSX.js} +3 -3
- package/dist/{chunk-JB32KYAH.js.map → chunk-TKJSCHSX.js.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-VZKBI2KJ.cjs → chunk-Z2NSU7D5.cjs} +4 -4
- package/dist/{chunk-VZKBI2KJ.cjs.map → chunk-Z2NSU7D5.cjs.map} +1 -1
- package/dist/{chunk-A35KT2II.js → chunk-ZP4IFW2E.js} +4 -4
- package/dist/{chunk-A35KT2II.js.map → chunk-ZP4IFW2E.js.map} +1 -1
- package/dist/collaboration/index.cjs +1 -1
- package/dist/collaboration/index.js +1 -1
- package/dist/connect/docx.cjs +7 -7
- package/dist/connect/docx.js +5 -5
- package/dist/connect/index.cjs +38 -38
- package/dist/connect/index.js +8 -8
- package/dist/docx/AgentUndo.d.ts +4 -0
- 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/facts/index.cjs +1 -1
- package/dist/facts/index.js +1 -1
- package/dist/files/index.cjs +1 -1
- package/dist/files/index.js +1 -1
- package/dist/index.cjs +278 -278
- package/dist/index.js +8 -8
- package/dist/settings/index.cjs +47 -101
- package/dist/settings/index.cjs.map +1 -1
- package/dist/settings/index.js +9 -69
- package/dist/settings/index.js.map +1 -1
- package/dist/shell/index.cjs +9 -9
- package/dist/shell/index.js +1 -1
- package/dist/tags/definitions.d.ts +4 -25
- package/dist/tags/ooxml.d.ts +1 -19
- package/dist/workflow-canvas/index.cjs +10 -10
- package/dist/workflow-canvas/index.js +3 -3
- package/node_modules/@arbidocs/coedit/dist/commands.cjs +866 -9
- package/node_modules/@arbidocs/coedit/dist/commands.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/commands.d.cts +342 -156
- package/node_modules/@arbidocs/coedit/dist/commands.d.ts +342 -156
- package/node_modules/@arbidocs/coedit/dist/commands.js +817 -11
- 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 +731 -65
- package/node_modules/@arbidocs/coedit/dist/server.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.d.cts +40 -1
- package/node_modules/@arbidocs/coedit/dist/server.d.ts +40 -1
- package/node_modules/@arbidocs/coedit/dist/server.js +730 -66
- 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-2NIL2ASF.cjs.map +0 -1
- package/dist/chunk-EPHGD4YV.js +0 -174
- package/dist/chunk-EPHGD4YV.js.map +0 -1
- package/dist/chunk-GKDWQLVU.js.map +0 -1
|
@@ -5,9 +5,9 @@ var chunkDJM7DLCT_cjs = require('../chunk-DJM7DLCT.cjs');
|
|
|
5
5
|
require('../chunk-7G2LJMUG.cjs');
|
|
6
6
|
var chunkU6MPHCEB_cjs = require('../chunk-U6MPHCEB.cjs');
|
|
7
7
|
var chunkVLCY46K6_cjs = require('../chunk-VLCY46K6.cjs');
|
|
8
|
-
require('../chunk-ULWRNGGE.cjs');
|
|
9
8
|
require('../chunk-C2CWWEHO.cjs');
|
|
10
9
|
require('../chunk-FX3K6LNZ.cjs');
|
|
10
|
+
require('../chunk-ULWRNGGE.cjs');
|
|
11
11
|
require('../chunk-MHVNT4J3.cjs');
|
|
12
12
|
require('../chunk-DES3K4SD.cjs');
|
|
13
13
|
|
|
@@ -3,9 +3,9 @@ export { ActionMenu, AddContactsForm, AddContactsResults, ContactCard, DEFAULT_A
|
|
|
3
3
|
import '../chunk-NBV56SGU.js';
|
|
4
4
|
export { MailDeliveryBadge, MailDeliveryList, MailDocumentPicker, MailGrid, MailMessagePreview, MailMessageView, NEEDS_CONNECTION, PlainMailBodyEditor, draftMailCompose, emptyMailCompose, hasCalendarPart, mailAddressLabel, parseMailRecipients, replyMailCompose } from '../chunk-IXTQYFIF.js';
|
|
5
5
|
export { DEFAULT_SHARE_CONTROL_LABELS, ShareControl } from '../chunk-K4BGOPGG.js';
|
|
6
|
-
import '../chunk-TX2ZICS7.js';
|
|
7
6
|
import '../chunk-N5YEF3LC.js';
|
|
8
7
|
import '../chunk-SLSBJRWW.js';
|
|
8
|
+
import '../chunk-TX2ZICS7.js';
|
|
9
9
|
import '../chunk-7F6CBP3Z.js';
|
|
10
10
|
import '../chunk-VUNV25KB.js';
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
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
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkOR4CO743_cjs = require('../chunk-OR4CO743.cjs');
|
|
5
5
|
var chunk2UAJVK3C_cjs = require('../chunk-2UAJVK3C.cjs');
|
|
6
|
-
var
|
|
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
17
|
var chunkXSUOEJB3_cjs = require('../chunk-XSUOEJB3.cjs');
|
|
18
18
|
require('../chunk-7D737FLE.cjs');
|
|
19
19
|
var chunkN26CXGXC_cjs = require('../chunk-N26CXGXC.cjs');
|
|
20
20
|
require('../chunk-DETZZBG2.cjs');
|
|
21
21
|
require('../chunk-32HW2Q33.cjs');
|
|
22
|
-
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
23
22
|
var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
|
|
24
23
|
require('../chunk-C2CWWEHO.cjs');
|
|
25
24
|
var chunkQVBZESYQ_cjs = require('../chunk-QVBZESYQ.cjs');
|
|
26
25
|
require('../chunk-ADOKTJHV.cjs');
|
|
27
|
-
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
28
26
|
var chunkVP4KJ4LK_cjs = require('../chunk-VP4KJ4LK.cjs');
|
|
29
27
|
require('../chunk-VGOFFCMT.cjs');
|
|
30
28
|
require('../chunk-B4SRYJLM.cjs');
|
|
31
29
|
require('../chunk-7UTB4PHM.cjs');
|
|
32
30
|
require('../chunk-FX3K6LNZ.cjs');
|
|
31
|
+
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
32
|
+
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
33
33
|
require('../chunk-PPCATBOY.cjs');
|
|
34
34
|
require('../chunk-MHVNT4J3.cjs');
|
|
35
35
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.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
|
{
|
|
@@ -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
|
}
|
|
@@ -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,
|
|
@@ -1353,12 +1353,12 @@ function ConnectedProfileCard({ notify: notify3, title = "Profile" }) {
|
|
|
1353
1353
|
}
|
|
1354
1354
|
});
|
|
1355
1355
|
const display = profile?.fullName || user?.name || "Unnamed";
|
|
1356
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1357
|
-
|
|
1356
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkOR4CO743_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UserCircle, {}), title, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1357
|
+
chunkOR4CO743_cjs.ProfileCard,
|
|
1358
1358
|
{
|
|
1359
1359
|
avatar: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1360
1360
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1361
|
-
|
|
1361
|
+
chunkOR4CO743_cjs.AvatarPicker,
|
|
1362
1362
|
{
|
|
1363
1363
|
pictureUrl: profile?.picture ?? user?.picture,
|
|
1364
1364
|
initials: chunkKDG6FER6_cjs.initials(display),
|
|
@@ -1400,9 +1400,9 @@ function ConnectedIdentityVerification({
|
|
|
1400
1400
|
onNameAccepted: () => notify3?.("Name updated to match your ID", "success")
|
|
1401
1401
|
});
|
|
1402
1402
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1403
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1403
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkOR4CO743_cjs.IdentityVerificationCard, { flow, labels }),
|
|
1404
1404
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1405
|
-
|
|
1405
|
+
chunkOR4CO743_cjs.IdentityVerificationDialog,
|
|
1406
1406
|
{
|
|
1407
1407
|
flow,
|
|
1408
1408
|
accountName: profile?.fullName ?? "",
|
|
@@ -1414,7 +1414,7 @@ function ConnectedIdentityVerification({
|
|
|
1414
1414
|
function ConnectedRequireVerified({ children, labels }) {
|
|
1415
1415
|
const { data: profile } = react$1.useProfile();
|
|
1416
1416
|
const flow = react$1.useIdentityVerification();
|
|
1417
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1417
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkOR4CO743_cjs.RequireVerified, { flow, accountName: profile?.fullName ?? "", labels, children });
|
|
1418
1418
|
}
|
|
1419
1419
|
function defaultUnmetPasswordRequirement(password) {
|
|
1420
1420
|
if (password.length < 8) return "Minimum 8 characters";
|
|
@@ -1439,10 +1439,10 @@ function ConnectedSecuritySection({
|
|
|
1439
1439
|
},
|
|
1440
1440
|
onClose: () => setOpen(false)
|
|
1441
1441
|
});
|
|
1442
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1443
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1442
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkOR4CO743_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.KeyRound, {}), title: "Security", children: [
|
|
1443
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkOR4CO743_cjs.SettingsCard, { padding: "sm", children: [
|
|
1444
1444
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1445
|
-
|
|
1445
|
+
chunkOR4CO743_cjs.SettingsActionRow,
|
|
1446
1446
|
{
|
|
1447
1447
|
title: "Change password",
|
|
1448
1448
|
description: "Used to sign in and to unlock your account key. Changing it keeps everything readable and re-encrypts nothing.",
|
|
@@ -1453,7 +1453,7 @@ function ConnectedSecuritySection({
|
|
|
1453
1453
|
children
|
|
1454
1454
|
] }),
|
|
1455
1455
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1456
|
-
|
|
1456
|
+
chunkOR4CO743_cjs.PasswordChangeDialog,
|
|
1457
1457
|
{
|
|
1458
1458
|
open,
|
|
1459
1459
|
onClose: form.onCancel,
|
|
@@ -1476,23 +1476,23 @@ function ConnectedSecuritySection({
|
|
|
1476
1476
|
] });
|
|
1477
1477
|
}
|
|
1478
1478
|
function ConnectedNotificationPreferences({
|
|
1479
|
-
categories =
|
|
1479
|
+
categories = chunkOR4CO743_cjs.EMAIL_NOTIFICATION_CATEGORIES,
|
|
1480
1480
|
title = "Notifications"
|
|
1481
1481
|
}) {
|
|
1482
1482
|
const keys = react.useMemo(
|
|
1483
|
-
() => categories ===
|
|
1483
|
+
() => categories === chunkOR4CO743_cjs.EMAIL_NOTIFICATION_CATEGORIES ? chunkOR4CO743_cjs.EMAIL_NOTIFICATION_KEYS : categories.map((c) => c.key),
|
|
1484
1484
|
[categories]
|
|
1485
1485
|
);
|
|
1486
1486
|
const prefs = react$1.useNotificationPreferences(keys);
|
|
1487
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1488
|
-
|
|
1487
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkOR4CO743_cjs.SettingsSection, { title, children: /* @__PURE__ */ jsxRuntime.jsx(chunkOR4CO743_cjs.SettingsCard, { className: "space-y-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1488
|
+
chunkOR4CO743_cjs.NotificationCategoryList,
|
|
1489
1489
|
{
|
|
1490
1490
|
masterId: "emailNotifications",
|
|
1491
1491
|
masterTitle: "Email Notifications",
|
|
1492
1492
|
masterDescription: "Email me about activity when I\u2019m away",
|
|
1493
1493
|
masterChecked: prefs.masterChecked,
|
|
1494
1494
|
onMasterChange: prefs.setAll,
|
|
1495
|
-
categories:
|
|
1495
|
+
categories: chunkOR4CO743_cjs.toNotificationCategories(prefs.checked, categories),
|
|
1496
1496
|
onCategoryChange: prefs.setCategory
|
|
1497
1497
|
}
|
|
1498
1498
|
) }) });
|
|
@@ -1506,14 +1506,14 @@ function ConnectedSessionsRow({
|
|
|
1506
1506
|
const sessions = react$1.useSessions({ enabled: open });
|
|
1507
1507
|
const currentSessionId = react$1.useCurrentSessionId();
|
|
1508
1508
|
const terminate = react$1.useTerminateSession();
|
|
1509
|
-
const views =
|
|
1509
|
+
const views = chunkOR4CO743_cjs.toActiveSessionViews(sessions.data ?? [], {
|
|
1510
1510
|
currentSessionId,
|
|
1511
1511
|
terminatingId: terminate.isPending ? terminate.variables : null,
|
|
1512
1512
|
renderIcon: renderSessionIcon
|
|
1513
1513
|
});
|
|
1514
1514
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1515
1515
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1516
|
-
|
|
1516
|
+
chunkOR4CO743_cjs.SettingsRow,
|
|
1517
1517
|
{
|
|
1518
1518
|
label: "Active sessions",
|
|
1519
1519
|
description: "Devices and agents currently signed in to your account.",
|
|
@@ -1535,7 +1535,7 @@ function ConnectedSessionsRow({
|
|
|
1535
1535
|
}
|
|
1536
1536
|
),
|
|
1537
1537
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1538
|
-
|
|
1538
|
+
chunkOR4CO743_cjs.ActiveSessionsDialog,
|
|
1539
1539
|
{
|
|
1540
1540
|
open,
|
|
1541
1541
|
onOpenChange: setOpen,
|
|
@@ -1570,7 +1570,7 @@ function ConnectedLogoutDialog({
|
|
|
1570
1570
|
const sessions = react$1.useSessions({ enabled: open });
|
|
1571
1571
|
const logoutAll = react$1.useLogoutAllSessions();
|
|
1572
1572
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1573
|
-
|
|
1573
|
+
chunkOR4CO743_cjs.LogoutDialog,
|
|
1574
1574
|
{
|
|
1575
1575
|
open,
|
|
1576
1576
|
onClose,
|
|
@@ -1584,7 +1584,7 @@ function ConnectedLogoutDialog({
|
|
|
1584
1584
|
},
|
|
1585
1585
|
canLogoutAll: true,
|
|
1586
1586
|
isOnline,
|
|
1587
|
-
sessions:
|
|
1587
|
+
sessions: chunkOR4CO743_cjs.toLogoutSessionViews(sessions.data ?? []),
|
|
1588
1588
|
renderSessionIcon
|
|
1589
1589
|
}
|
|
1590
1590
|
);
|
|
@@ -1603,7 +1603,7 @@ function ConnectedDangerZone({ notify: notify3, renderSubscriptionLink }) {
|
|
|
1603
1603
|
});
|
|
1604
1604
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1605
1605
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1606
|
-
|
|
1606
|
+
chunkOR4CO743_cjs.SettingsDangerZone,
|
|
1607
1607
|
{
|
|
1608
1608
|
isOpen: zoneOpen,
|
|
1609
1609
|
onToggle: () => setZoneOpen((o) => !o),
|
|
@@ -1623,12 +1623,12 @@ function ConnectedDangerZone({ notify: notify3, renderSubscriptionLink }) {
|
|
|
1623
1623
|
}
|
|
1624
1624
|
),
|
|
1625
1625
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1626
|
-
|
|
1626
|
+
chunkOR4CO743_cjs.DeleteAccountDialog,
|
|
1627
1627
|
{
|
|
1628
1628
|
open: dialogOpen,
|
|
1629
1629
|
onClose: flow.onClose,
|
|
1630
1630
|
step: flow.step,
|
|
1631
|
-
blockers:
|
|
1631
|
+
blockers: chunkOR4CO743_cjs.toDeleteBlockerViews(flow.blockers, renderSubscriptionLink),
|
|
1632
1632
|
onContinue: flow.onContinue,
|
|
1633
1633
|
onBack: flow.onBack,
|
|
1634
1634
|
userEmail: user?.email ?? "",
|
|
@@ -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: {
|
package/dist/connect/index.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
"use client";
|
|
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-
|
|
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
3
|
import { useWorkspaceDocs } from '../chunk-CXZ7FPTQ.js';
|
|
4
4
|
export { ConnectedAssistantDock, redlineStats, textToArtifact, toRedlineMarkdown, useConnectedAiTask, useConnectedChat, useSemanticSearch, useWorkspaceDocs } from '../chunk-CXZ7FPTQ.js';
|
|
5
|
-
import { ConnectedNativeDocxEditor } from '../chunk-
|
|
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
17
|
import { splitDocRef, WorkflowStepBar, stepLevels, WorkflowRunner, initialRunInputs, workflowSteps, fromPlanSteps, stepStatesFromActivity, toPlanSteps, runThreadTitle, useWorkflowView, stepFields } from '../chunk-AY32GGKU.js';
|
|
18
18
|
import '../chunk-XD2M6LIG.js';
|
|
19
19
|
import { TriStateFilterMenu } from '../chunk-6S5FLMWG.js';
|
|
20
20
|
import '../chunk-EVUEIBNU.js';
|
|
21
21
|
import '../chunk-AUS3KBHJ.js';
|
|
22
|
-
import { ModalScaffold } from '../chunk-TX2ZICS7.js';
|
|
23
22
|
import { FilterInput } from '../chunk-YU2KUMGE.js';
|
|
24
23
|
import '../chunk-N5YEF3LC.js';
|
|
25
24
|
import { StreamedArtifactFrame } from '../chunk-LOJVUGBJ.js';
|
|
26
25
|
import '../chunk-VILAPTCB.js';
|
|
27
|
-
import { TabHeader } from '../chunk-4WWM3GQ5.js';
|
|
28
26
|
import { ChatPage } from '../chunk-NRUPUDWB.js';
|
|
29
27
|
import '../chunk-KZJAG7T3.js';
|
|
30
28
|
import '../chunk-HOXKR26S.js';
|
|
31
29
|
import '../chunk-AA3PT6KR.js';
|
|
32
30
|
import '../chunk-SLSBJRWW.js';
|
|
31
|
+
import { TabHeader } from '../chunk-4WWM3GQ5.js';
|
|
32
|
+
import { ModalScaffold } from '../chunk-TX2ZICS7.js';
|
|
33
33
|
import '../chunk-NPLYHR2E.js';
|
|
34
34
|
import '../chunk-7F6CBP3Z.js';
|
|
35
35
|
import { initials } from '../chunk-OXF2IFXG.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: {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type * as Y from 'yjs';
|
|
2
|
+
/** The collaboration room's document, where the undo records live (none outside a room). */
|
|
3
|
+
export declare const AgentUndoRoom: import("react").Context<Y.Doc | null>;
|
|
4
|
+
export declare function AgentUndo(): import("react").JSX.Element | null;
|
|
@@ -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`).
|