@arbidocs/blocks 0.4.114 → 0.4.115
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-MBCBXYDZ.js → NativeDocxEditor-6SCZDPKK.js} +3 -3
- package/dist/{NativeDocxEditor-MBCBXYDZ.js.map → NativeDocxEditor-6SCZDPKK.js.map} +1 -1
- package/dist/{NativeDocxEditor-AQZSUGET.cjs → NativeDocxEditor-BBTLE23K.cjs} +7 -7
- package/dist/{NativeDocxEditor-AQZSUGET.cjs.map → NativeDocxEditor-BBTLE23K.cjs.map} +1 -1
- package/dist/{chunk-RUFNJRLW.cjs → chunk-ES4H653I.cjs} +4 -4
- package/dist/{chunk-RUFNJRLW.cjs.map → chunk-ES4H653I.cjs.map} +1 -1
- package/dist/{chunk-GIBRZ54P.js → chunk-FEODWQLH.js} +3 -3
- package/dist/{chunk-GIBRZ54P.js.map → chunk-FEODWQLH.js.map} +1 -1
- package/dist/{chunk-3OT37I24.js → chunk-GMDAQIRC.js} +49 -17
- package/dist/chunk-GMDAQIRC.js.map +1 -0
- package/dist/{chunk-ETBB5KMN.cjs → chunk-NL7M7VQ2.cjs} +48 -16
- package/dist/chunk-NL7M7VQ2.cjs.map +1 -0
- package/dist/{chunk-HF4PAYBM.cjs → chunk-QZLK3F2E.cjs} +5 -5
- package/dist/{chunk-HF4PAYBM.cjs.map → chunk-QZLK3F2E.cjs.map} +1 -1
- package/dist/{chunk-TKJSCHSX.js → chunk-TKI34NP5.js} +3 -3
- package/dist/{chunk-TKJSCHSX.js.map → chunk-TKI34NP5.js.map} +1 -1
- package/dist/connect/docx.cjs +6 -6
- package/dist/connect/docx.js +4 -4
- package/dist/connect/index.cjs +4 -4
- package/dist/connect/index.js +3 -3
- package/dist/docx/NativeDocxEditor.d.ts +1 -1
- package/dist/docx/index.cjs +46 -46
- package/dist/docx/index.js +3 -3
- package/dist/docx/review/author.d.ts +4 -0
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +4 -4
- package/src/docx/styles.css +13 -1
- package/dist/chunk-3OT37I24.js.map +0 -1
- package/dist/chunk-ETBB5KMN.cjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkNL7M7VQ2_cjs = require('./chunk-NL7M7VQ2.cjs');
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
|
|
7
7
|
function StreamedWordArtifact({
|
|
@@ -15,7 +15,7 @@ function StreamedWordArtifact({
|
|
|
15
15
|
}) {
|
|
16
16
|
if (!busy && documentId) {
|
|
17
17
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18
|
-
|
|
18
|
+
chunkNL7M7VQ2_cjs.NativeDocxEditor,
|
|
19
19
|
{
|
|
20
20
|
adapter,
|
|
21
21
|
documentId,
|
|
@@ -26,7 +26,7 @@ function StreamedWordArtifact({
|
|
|
26
26
|
);
|
|
27
27
|
}
|
|
28
28
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
29
|
-
|
|
29
|
+
chunkNL7M7VQ2_cjs.NativeDocxEditor,
|
|
30
30
|
{
|
|
31
31
|
adapter,
|
|
32
32
|
documentId: "stream-preview",
|
|
@@ -39,5 +39,5 @@ function StreamedWordArtifact({
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
exports.StreamedWordArtifact = StreamedWordArtifact;
|
|
42
|
-
//# sourceMappingURL=chunk-
|
|
43
|
-
//# sourceMappingURL=chunk-
|
|
42
|
+
//# sourceMappingURL=chunk-QZLK3F2E.cjs.map
|
|
43
|
+
//# sourceMappingURL=chunk-QZLK3F2E.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/docx/StreamedWordArtifact.tsx"],"names":["jsx","NativeDocxEditor"],"mappings":";;;;;AAmBO,SAAS,oBAAA,CAAqB;AAAA,EACnC,OAAA;AAAA,EACA,OAAA;AAAA,EACA,KAAA;AAAA,EACA,IAAA;AAAA,EACA,KAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF,CAAA,EAA8B;AAC5B,EAAA,IAAI,CAAC,QAAQ,UAAA,EAAY;AACvB,IAAA,uBACEA,cAAA;AAAA,MAACC,kCAAA;AAAA,MAAA;AAAA,QAEC,OAAA;AAAA,QACA,UAAA;AAAA,QACA,KAAA;AAAA,QACA;AAAA,OAAA;AAAA,MAJK;AAAA,KAKP;AAAA,EAEJ;AACA,EAAA,uBACED,cAAA;AAAA,IAACC,kCAAA;AAAA,IAAA;AAAA,MAEC,OAAA;AAAA,MACA,UAAA,EAAW,gBAAA;AAAA,MACX,KAAA;AAAA,MACA,YAAA,EAAa,EAAA;AAAA,MACb,MAAA,EAAQ,EAAE,OAAA,EAAS,IAAA,EAAM,KAAA;AAAM,KAAA;AAAA,IAL3B;AAAA,GAMN;AAEJ","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../src/docx/StreamedWordArtifact.tsx"],"names":["jsx","NativeDocxEditor"],"mappings":";;;;;AAmBO,SAAS,oBAAA,CAAqB;AAAA,EACnC,OAAA;AAAA,EACA,OAAA;AAAA,EACA,KAAA;AAAA,EACA,IAAA;AAAA,EACA,KAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF,CAAA,EAA8B;AAC5B,EAAA,IAAI,CAAC,QAAQ,UAAA,EAAY;AACvB,IAAA,uBACEA,cAAA;AAAA,MAACC,kCAAA;AAAA,MAAA;AAAA,QAEC,OAAA;AAAA,QACA,UAAA;AAAA,QACA,KAAA;AAAA,QACA;AAAA,OAAA;AAAA,MAJK;AAAA,KAKP;AAAA,EAEJ;AACA,EAAA,uBACED,cAAA;AAAA,IAACC,kCAAA;AAAA,IAAA;AAAA,MAEC,OAAA;AAAA,MACA,UAAA,EAAW,gBAAA;AAAA,MACX,KAAA;AAAA,MACA,YAAA,EAAa,EAAA;AAAA,MACb,MAAA,EAAQ,EAAE,OAAA,EAAS,IAAA,EAAM,KAAA;AAAM,KAAA;AAAA,IAL3B;AAAA,GAMN;AAEJ","file":"chunk-QZLK3F2E.cjs","sourcesContent":["import { NativeDocxEditor, type NativeDocxAdapter } from './NativeDocxEditor'\n\nexport interface StreamedWordArtifactProps {\n adapter: NativeDocxAdapter\n /** Streamed Markdown, shown as a read-only preview while the draft is generated. */\n content: string\n title: string\n busy: boolean\n error?: string | null\n /** The DOCX draft the server stored for this generation (`doc-…`), once known. */\n documentId?: string\n onSaved?: (documentId: string) => void\n}\n\n/**\n * One drafting surface for an AI document draft. The server stores every draft as DOCX, so\n * this component never creates a document: it previews the streamed Markdown until generation\n * ends and the stored DOCX is known, then opens that DOCX in the live collaborative editor.\n */\nexport function StreamedWordArtifact({\n adapter,\n content,\n title,\n busy,\n error,\n documentId,\n onSaved,\n}: StreamedWordArtifactProps) {\n if (!busy && documentId) {\n return (\n <NativeDocxEditor\n key={documentId}\n adapter={adapter}\n documentId={documentId}\n title={title}\n onSaved={onSaved}\n />\n )\n }\n return (\n <NativeDocxEditor\n key=\"stream-preview\"\n adapter={adapter}\n documentId=\"stream-preview\"\n title={title}\n draftContent=\"\"\n stream={{ content, busy, error }}\n />\n )\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { NativeDocxEditor } from './chunk-
|
|
2
|
+
import { NativeDocxEditor } from './chunk-GMDAQIRC.js';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
function StreamedWordArtifact({
|
|
@@ -37,5 +37,5 @@ function StreamedWordArtifact({
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export { StreamedWordArtifact };
|
|
40
|
-
//# sourceMappingURL=chunk-
|
|
41
|
-
//# sourceMappingURL=chunk-
|
|
40
|
+
//# sourceMappingURL=chunk-TKI34NP5.js.map
|
|
41
|
+
//# sourceMappingURL=chunk-TKI34NP5.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/docx/StreamedWordArtifact.tsx"],"names":[],"mappings":";;;AAmBO,SAAS,oBAAA,CAAqB;AAAA,EACnC,OAAA;AAAA,EACA,OAAA;AAAA,EACA,KAAA;AAAA,EACA,IAAA;AAAA,EACA,KAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF,CAAA,EAA8B;AAC5B,EAAA,IAAI,CAAC,QAAQ,UAAA,EAAY;AACvB,IAAA,uBACE,GAAA;AAAA,MAAC,gBAAA;AAAA,MAAA;AAAA,QAEC,OAAA;AAAA,QACA,UAAA;AAAA,QACA,KAAA;AAAA,QACA;AAAA,OAAA;AAAA,MAJK;AAAA,KAKP;AAAA,EAEJ;AACA,EAAA,uBACE,GAAA;AAAA,IAAC,gBAAA;AAAA,IAAA;AAAA,MAEC,OAAA;AAAA,MACA,UAAA,EAAW,gBAAA;AAAA,MACX,KAAA;AAAA,MACA,YAAA,EAAa,EAAA;AAAA,MACb,MAAA,EAAQ,EAAE,OAAA,EAAS,IAAA,EAAM,KAAA;AAAM,KAAA;AAAA,IAL3B;AAAA,GAMN;AAEJ","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../src/docx/StreamedWordArtifact.tsx"],"names":[],"mappings":";;;AAmBO,SAAS,oBAAA,CAAqB;AAAA,EACnC,OAAA;AAAA,EACA,OAAA;AAAA,EACA,KAAA;AAAA,EACA,IAAA;AAAA,EACA,KAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF,CAAA,EAA8B;AAC5B,EAAA,IAAI,CAAC,QAAQ,UAAA,EAAY;AACvB,IAAA,uBACE,GAAA;AAAA,MAAC,gBAAA;AAAA,MAAA;AAAA,QAEC,OAAA;AAAA,QACA,UAAA;AAAA,QACA,KAAA;AAAA,QACA;AAAA,OAAA;AAAA,MAJK;AAAA,KAKP;AAAA,EAEJ;AACA,EAAA,uBACE,GAAA;AAAA,IAAC,gBAAA;AAAA,IAAA;AAAA,MAEC,OAAA;AAAA,MACA,UAAA,EAAW,gBAAA;AAAA,MACX,KAAA;AAAA,MACA,YAAA,EAAa,EAAA;AAAA,MACb,MAAA,EAAQ,EAAE,OAAA,EAAS,IAAA,EAAM,KAAA;AAAM,KAAA;AAAA,IAL3B;AAAA,GAMN;AAEJ","file":"chunk-TKI34NP5.js","sourcesContent":["import { NativeDocxEditor, type NativeDocxAdapter } from './NativeDocxEditor'\n\nexport interface StreamedWordArtifactProps {\n adapter: NativeDocxAdapter\n /** Streamed Markdown, shown as a read-only preview while the draft is generated. */\n content: string\n title: string\n busy: boolean\n error?: string | null\n /** The DOCX draft the server stored for this generation (`doc-…`), once known. */\n documentId?: string\n onSaved?: (documentId: string) => void\n}\n\n/**\n * One drafting surface for an AI document draft. The server stores every draft as DOCX, so\n * this component never creates a document: it previews the streamed Markdown until generation\n * ends and the stored DOCX is known, then opens that DOCX in the live collaborative editor.\n */\nexport function StreamedWordArtifact({\n adapter,\n content,\n title,\n busy,\n error,\n documentId,\n onSaved,\n}: StreamedWordArtifactProps) {\n if (!busy && documentId) {\n return (\n <NativeDocxEditor\n key={documentId}\n adapter={adapter}\n documentId={documentId}\n title={title}\n onSaved={onSaved}\n />\n )\n }\n return (\n <NativeDocxEditor\n key=\"stream-preview\"\n adapter={adapter}\n documentId=\"stream-preview\"\n title={title}\n draftContent=\"\"\n stream={{ content, busy, error }}\n />\n )\n}\n"]}
|
package/dist/connect/docx.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkES4H653I_cjs = require('../chunk-ES4H653I.cjs');
|
|
5
5
|
require('../chunk-MUMH3Z6K.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkQZLK3F2E_cjs = require('../chunk-QZLK3F2E.cjs');
|
|
7
7
|
require('../chunk-S24XEVPS.cjs');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-NL7M7VQ2.cjs');
|
|
9
9
|
require('../chunk-5FYU7ZIU.cjs');
|
|
10
10
|
require('../chunk-I2QSDQQV.cjs');
|
|
11
11
|
require('../chunk-RC25WMVB.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 = chunkES4H653I_cjs.useConnectedNativeDocxAdapter(fontBaseUrl);
|
|
22
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQZLK3F2E_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 chunkES4H653I_cjs.ConnectedNativeDocxEditor; }
|
|
28
28
|
});
|
|
29
29
|
exports.ConnectedStreamedWordArtifact = ConnectedStreamedWordArtifact;
|
|
30
30
|
//# sourceMappingURL=docx.cjs.map
|
package/dist/connect/docx.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useConnectedNativeDocxAdapter } from '../chunk-
|
|
3
|
-
export { ConnectedNativeDocxEditor } from '../chunk-
|
|
2
|
+
import { useConnectedNativeDocxAdapter } from '../chunk-FEODWQLH.js';
|
|
3
|
+
export { ConnectedNativeDocxEditor } from '../chunk-FEODWQLH.js';
|
|
4
4
|
import '../chunk-OYMWV45N.js';
|
|
5
|
-
import { StreamedWordArtifact } from '../chunk-
|
|
5
|
+
import { StreamedWordArtifact } from '../chunk-TKI34NP5.js';
|
|
6
6
|
import '../chunk-GYAUJ4KT.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-GMDAQIRC.js';
|
|
8
8
|
import '../chunk-HFZ45FD3.js';
|
|
9
9
|
import '../chunk-QXMR5YHC.js';
|
|
10
10
|
import '../chunk-AF6RDAJF.js';
|
package/dist/connect/index.cjs
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
var chunkOR4CO743_cjs = require('../chunk-OR4CO743.cjs');
|
|
5
5
|
var chunkUDK553WP_cjs = require('../chunk-UDK553WP.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkES4H653I_cjs = require('../chunk-ES4H653I.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-NL7M7VQ2.cjs');
|
|
11
11
|
require('../chunk-5FYU7ZIU.cjs');
|
|
12
12
|
var chunkO4YPVYPO_cjs = require('../chunk-O4YPVYPO.cjs');
|
|
13
13
|
var chunkUS5ASM4G_cjs = require('../chunk-US5ASM4G.cjs');
|
|
@@ -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(chunkES4H653I_cjs.ConnectedNativeDocxEditor, { documentId: id, title: title ?? labels.wordTitle }) })
|
|
670
670
|
}
|
|
671
671
|
);
|
|
672
672
|
}
|
|
@@ -2147,7 +2147,7 @@ var MailBodyEditor = react.lazy(
|
|
|
2147
2147
|
}))
|
|
2148
2148
|
);
|
|
2149
2149
|
var NativeDocxEditor = react.lazy(
|
|
2150
|
-
() => import('../NativeDocxEditor-
|
|
2150
|
+
() => import('../NativeDocxEditor-BBTLE23K.cjs').then((m) => ({ default: m.NativeDocxEditor }))
|
|
2151
2151
|
);
|
|
2152
2152
|
var NO_WORD = {
|
|
2153
2153
|
adapter: {
|
package/dist/connect/index.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
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
3
|
import { useWorkspaceDocs } from '../chunk-WN64RF46.js';
|
|
4
4
|
export { ConnectedAssistantDock, redlineStats, textToArtifact, toRedlineMarkdown, useConnectedAiTask, useConnectedChat, useSemanticSearch, useWorkspaceDocs } from '../chunk-WN64RF46.js';
|
|
5
|
-
import { ConnectedNativeDocxEditor } from '../chunk-
|
|
5
|
+
import { ConnectedNativeDocxEditor } from '../chunk-FEODWQLH.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-GMDAQIRC.js';
|
|
11
11
|
import '../chunk-HFZ45FD3.js';
|
|
12
12
|
import { FilesFilterBar, FolderFilterButton, FolderPickerRow } from '../chunk-7RJTEWYM.js';
|
|
13
13
|
import { WorkspaceActivityList, WorkspaceNotificationMenu, ThreadFollowMenuItem, ThreadFollowButton, TagTable, tagTableDocx } from '../chunk-XFZ7HNPG.js';
|
|
@@ -2147,7 +2147,7 @@ var MailBodyEditor = lazy(
|
|
|
2147
2147
|
}))
|
|
2148
2148
|
);
|
|
2149
2149
|
var NativeDocxEditor = lazy(
|
|
2150
|
-
() => import('../NativeDocxEditor-
|
|
2150
|
+
() => import('../NativeDocxEditor-6SCZDPKK.js').then((m) => ({ default: m.NativeDocxEditor }))
|
|
2151
2151
|
);
|
|
2152
2152
|
var NO_WORD = {
|
|
2153
2153
|
adapter: {
|
|
@@ -95,7 +95,7 @@ export declare function DocxRibbon({ onSave, badge, imageGeneration, }: {
|
|
|
95
95
|
onSave: () => void;
|
|
96
96
|
/** Insert › Generate image, when the host can generate images. */
|
|
97
97
|
imageGeneration?: DocxImageGeneration;
|
|
98
|
-
/** A short state label at the end of the row, such as "Co-
|
|
98
|
+
/** A short state label at the end of the row, such as "Co-editing". */
|
|
99
99
|
badge?: React.ReactNode;
|
|
100
100
|
}): React.JSX.Element;
|
|
101
101
|
export declare function NativeDocxEditor({ documentId, title, draftContent, initialCommentId, snapshot, onSaved, stream, adapter, compact, stateRef, }: NativeDocxEditorProps): React.JSX.Element;
|
package/dist/docx/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkQZLK3F2E_cjs = require('../chunk-QZLK3F2E.cjs');
|
|
5
5
|
var chunkS24XEVPS_cjs = require('../chunk-S24XEVPS.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkNL7M7VQ2_cjs = require('../chunk-NL7M7VQ2.cjs');
|
|
7
7
|
require('../chunk-5FYU7ZIU.cjs');
|
|
8
8
|
require('../chunk-I2QSDQQV.cjs');
|
|
9
9
|
require('../chunk-RC25WMVB.cjs');
|
|
@@ -62,7 +62,7 @@ function NativeDocxComparison({
|
|
|
62
62
|
if (!documentId)
|
|
63
63
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "native-docx-error", role: "status", children: "Comparing Word documents\u2026" });
|
|
64
64
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
65
|
-
|
|
65
|
+
chunkNL7M7VQ2_cjs.NativeDocxEditor,
|
|
66
66
|
{
|
|
67
67
|
adapter,
|
|
68
68
|
documentId,
|
|
@@ -74,7 +74,7 @@ function NativeDocxComparison({
|
|
|
74
74
|
|
|
75
75
|
Object.defineProperty(exports, "StreamedWordArtifact", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkQZLK3F2E_cjs.StreamedWordArtifact; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "loadDocxFonts", {
|
|
80
80
|
enumerable: true,
|
|
@@ -82,171 +82,171 @@ Object.defineProperty(exports, "loadDocxFonts", {
|
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "BUILTIN_TEMPLATE_NAME", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkNL7M7VQ2_cjs.BUILTIN_TEMPLATE_NAME; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "CrossReferenceDialog", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkNL7M7VQ2_cjs.CrossReferenceDialog; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "CrossReferencesProvider", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkNL7M7VQ2_cjs.CrossReferencesProvider; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "DEFAULT_CROSS_REFERENCES_LABELS", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkNL7M7VQ2_cjs.DEFAULT_CROSS_REFERENCES_LABELS; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "DEFAULT_DEFINED_TERMS_LABELS", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkNL7M7VQ2_cjs.DEFAULT_DEFINED_TERMS_LABELS; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "DEFINED_TERM_TRIGGER", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkNL7M7VQ2_cjs.DEFINED_TERM_TRIGGER; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "DefinedTermsProvider", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkNL7M7VQ2_cjs.DefinedTermsProvider; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "DocxAuthorContext", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkNL7M7VQ2_cjs.DocxAuthorContext; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "DocxCommentActivity", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkNL7M7VQ2_cjs.DocxCommentActivity; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "DocxEditorReview", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkNL7M7VQ2_cjs.DocxEditorReview; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "DocxMentions", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkNL7M7VQ2_cjs.DocxMentions; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "DocxParticipants", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkNL7M7VQ2_cjs.DocxParticipants; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "DocxRibbon", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkNL7M7VQ2_cjs.DocxRibbon; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "GenerateImageButton", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkNL7M7VQ2_cjs.GenerateImageButton; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "HouseTemplateProvider", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkNL7M7VQ2_cjs.HouseTemplateProvider; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "LinkHoverCard", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkNL7M7VQ2_cjs.LinkHoverCard; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "NativeDocxEditor", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkNL7M7VQ2_cjs.NativeDocxEditor; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "builtinHouseTemplate", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkNL7M7VQ2_cjs.builtinHouseTemplate; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "contentPath", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkNL7M7VQ2_cjs.contentPath; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "editorPort", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkNL7M7VQ2_cjs.editorPort; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "findDefinitionsSection", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkNL7M7VQ2_cjs.findDefinitionsSection; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "insertCrossReference", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkNL7M7VQ2_cjs.insertCrossReference; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "insertDefinedTerm", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkNL7M7VQ2_cjs.insertDefinedTerm; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "insertDocumentReference", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkNL7M7VQ2_cjs.insertDocumentReference; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "listTargets", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkNL7M7VQ2_cjs.listTargets; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "normalizeDocxExport", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkNL7M7VQ2_cjs.normalizeDocxExport; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "paragraphNumber", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkNL7M7VQ2_cjs.paragraphNumber; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "referenceText", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkNL7M7VQ2_cjs.referenceText; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "referencesPort", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkNL7M7VQ2_cjs.referencesPort; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "resolveHouseTemplate", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkNL7M7VQ2_cjs.resolveHouseTemplate; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "reviewModule", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkNL7M7VQ2_cjs.reviewModule; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "shortTitle", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkNL7M7VQ2_cjs.shortTitle; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "structuralPort", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkNL7M7VQ2_cjs.structuralPort; }
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "templateFileName", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkNL7M7VQ2_cjs.templateFileName; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "trackedOrNoted", {
|
|
220
220
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkNL7M7VQ2_cjs.trackedOrNoted; }
|
|
222
222
|
});
|
|
223
223
|
Object.defineProperty(exports, "useCrossReferences", {
|
|
224
224
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkNL7M7VQ2_cjs.useCrossReferences; }
|
|
226
226
|
});
|
|
227
227
|
Object.defineProperty(exports, "useDefinedTerms", {
|
|
228
228
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkNL7M7VQ2_cjs.useDefinedTerms; }
|
|
230
230
|
});
|
|
231
231
|
Object.defineProperty(exports, "useHouseTemplate", {
|
|
232
232
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkNL7M7VQ2_cjs.useHouseTemplate; }
|
|
234
234
|
});
|
|
235
235
|
Object.defineProperty(exports, "useReview", {
|
|
236
236
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkNL7M7VQ2_cjs.useReview; }
|
|
238
238
|
});
|
|
239
239
|
Object.defineProperty(exports, "useReviewItem", {
|
|
240
240
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkNL7M7VQ2_cjs.useReviewItem; }
|
|
242
242
|
});
|
|
243
243
|
Object.defineProperty(exports, "useTrackedOrNoted", {
|
|
244
244
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkNL7M7VQ2_cjs.useTrackedOrNoted; }
|
|
246
246
|
});
|
|
247
247
|
Object.defineProperty(exports, "withDirectEditing", {
|
|
248
248
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkNL7M7VQ2_cjs.withDirectEditing; }
|
|
250
250
|
});
|
|
251
251
|
Object.defineProperty(exports, "DocxEditor", {
|
|
252
252
|
enumerable: true,
|
package/dist/docx/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { StreamedWordArtifact } from '../chunk-
|
|
2
|
+
export { StreamedWordArtifact } from '../chunk-TKI34NP5.js';
|
|
3
3
|
export { loadDocxFonts } from '../chunk-GYAUJ4KT.js';
|
|
4
|
-
import { NativeDocxEditor } from '../chunk-
|
|
5
|
-
export { BUILTIN_TEMPLATE_NAME, CrossReferenceDialog, CrossReferencesProvider, DEFAULT_CROSS_REFERENCES_LABELS, DEFAULT_DEFINED_TERMS_LABELS, DEFINED_TERM_TRIGGER, DefinedTermsProvider, DocxAuthorContext, DocxCommentActivity, DocxEditorReview, DocxMentions, DocxParticipants, DocxRibbon, GenerateImageButton, HouseTemplateProvider, LinkHoverCard, NativeDocxEditor, builtinHouseTemplate, contentPath, editorPort, findDefinitionsSection, insertCrossReference, insertDefinedTerm, insertDocumentReference, listTargets, normalizeDocxExport, paragraphNumber, referenceText, referencesPort, resolveHouseTemplate, reviewModule, shortTitle, structuralPort, templateFileName, trackedOrNoted, useCrossReferences, useDefinedTerms, useHouseTemplate, useReview, useReviewItem, useTrackedOrNoted, withDirectEditing } from '../chunk-
|
|
4
|
+
import { NativeDocxEditor } from '../chunk-GMDAQIRC.js';
|
|
5
|
+
export { BUILTIN_TEMPLATE_NAME, CrossReferenceDialog, CrossReferencesProvider, DEFAULT_CROSS_REFERENCES_LABELS, DEFAULT_DEFINED_TERMS_LABELS, DEFINED_TERM_TRIGGER, DefinedTermsProvider, DocxAuthorContext, DocxCommentActivity, DocxEditorReview, DocxMentions, DocxParticipants, DocxRibbon, GenerateImageButton, HouseTemplateProvider, LinkHoverCard, NativeDocxEditor, builtinHouseTemplate, contentPath, editorPort, findDefinitionsSection, insertCrossReference, insertDefinedTerm, insertDocumentReference, listTargets, normalizeDocxExport, paragraphNumber, referenceText, referencesPort, resolveHouseTemplate, reviewModule, shortTitle, structuralPort, templateFileName, trackedOrNoted, useCrossReferences, useDefinedTerms, useHouseTemplate, useReview, useReviewItem, useTrackedOrNoted, withDirectEditing } from '../chunk-GMDAQIRC.js';
|
|
6
6
|
import '../chunk-HFZ45FD3.js';
|
|
7
7
|
import '../chunk-QXMR5YHC.js';
|
|
8
8
|
import '../chunk-AF6RDAJF.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbidocs/coedit",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.115",
|
|
4
4
|
"description": "Real-time collaboration for the ARBI native DOCX editor: a Yjs mirror of the canonical OOXML package, session, and server runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbidocs/blocks",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.115",
|
|
4
4
|
"description": "Composable, domain-neutral UI blocks for ARBI apps, organised by capability (retrieval, facts, agents, workspaces, citations, collaboration) plus shell, theme and site primitives, on top of @arbidocs/react.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -280,8 +280,8 @@
|
|
|
280
280
|
"example:test:e2e": "playwright test -c examples/custom-ui/playwright.config.ts"
|
|
281
281
|
},
|
|
282
282
|
"dependencies": {
|
|
283
|
-
"@arbidocs/client": "0.4.
|
|
284
|
-
"@arbidocs/coedit": "0.4.
|
|
283
|
+
"@arbidocs/client": "0.4.115",
|
|
284
|
+
"@arbidocs/coedit": "0.4.115",
|
|
285
285
|
"@dnd-kit/core": "^6.3.1",
|
|
286
286
|
"@dnd-kit/sortable": "^10.0.0",
|
|
287
287
|
"@dnd-kit/utilities": "^3.2.2",
|
|
@@ -323,7 +323,7 @@
|
|
|
323
323
|
"y-protocols": "^1.0.6"
|
|
324
324
|
},
|
|
325
325
|
"peerDependencies": {
|
|
326
|
-
"@arbidocs/react": "0.4.
|
|
326
|
+
"@arbidocs/react": "0.4.115",
|
|
327
327
|
"@lexical/html": "0.35.0",
|
|
328
328
|
"@lexical/link": "0.35.0",
|
|
329
329
|
"@lexical/list": "0.35.0",
|
package/src/docx/styles.css
CHANGED
|
@@ -244,6 +244,14 @@
|
|
|
244
244
|
.native-docx-ribbon .docx-toolbar > * {
|
|
245
245
|
flex-shrink: 0;
|
|
246
246
|
}
|
|
247
|
+
.native-docx-ribbon-badge:empty {
|
|
248
|
+
display: none;
|
|
249
|
+
}
|
|
250
|
+
.native-docx-ribbon-badge:has([data-state='read-only']),
|
|
251
|
+
.native-docx-ribbon-badge:has([data-state='draft']) {
|
|
252
|
+
background: hsl(var(--muted));
|
|
253
|
+
color: hsl(var(--muted-foreground));
|
|
254
|
+
}
|
|
247
255
|
.native-docx-ribbon-badge {
|
|
248
256
|
flex: none;
|
|
249
257
|
margin: 0 8px 0 4px;
|
|
@@ -618,6 +626,10 @@
|
|
|
618
626
|
font-weight: 600;
|
|
619
627
|
letter-spacing: 0.02em;
|
|
620
628
|
}
|
|
629
|
+
.native-docx-review-avatar[data-arbi] {
|
|
630
|
+
background: hsl(var(--background));
|
|
631
|
+
box-shadow: inset 0 0 0 1px hsl(var(--border));
|
|
632
|
+
}
|
|
621
633
|
.native-docx-review-who {
|
|
622
634
|
display: flex;
|
|
623
635
|
flex-direction: column;
|
|
@@ -974,7 +986,7 @@
|
|
|
974
986
|
.native-docx-review-bubble {
|
|
975
987
|
position: absolute;
|
|
976
988
|
z-index: 30;
|
|
977
|
-
right:
|
|
989
|
+
right: 0;
|
|
978
990
|
box-sizing: border-box;
|
|
979
991
|
max-height: min(70vh, 520px);
|
|
980
992
|
overflow: auto;
|