@beyondwork/docx-react-component 1.0.132 → 1.0.134
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/api/public-types.cjs +161 -68
- package/dist/api/public-types.d.cts +1 -1
- package/dist/api/public-types.d.ts +1 -1
- package/dist/api/public-types.js +3 -3
- package/dist/api/v3.cjs +9878 -7387
- package/dist/api/v3.d.cts +2 -2
- package/dist/api/v3.d.ts +2 -2
- package/dist/api/v3.js +10 -10
- package/dist/{chunk-QUTVR72L.js → chunk-3YR47WTD.js} +296 -587
- package/dist/{chunk-RYMMKOFI.js → chunk-5KTJKTNE.js} +32 -0
- package/dist/{chunk-UP2KDOYE.js → chunk-74R5B2EZ.js} +6 -2
- package/dist/{chunk-6736GA6J.js → chunk-7Y6JCIK3.js} +1 -1
- package/dist/{chunk-43JAPM2F.js → chunk-EBSI6VQX.js} +546 -144
- package/dist/{chunk-JVTDBX67.js → chunk-EFEW7BTT.js} +2 -2
- package/dist/{chunk-YUHNDEV5.js → chunk-ESEEWELA.js} +3534 -1870
- package/dist/{chunk-XYTWOJII.js → chunk-IJD6D7HU.js} +745 -103
- package/dist/{chunk-UFPBYJMA.js → chunk-INLRCC4N.js} +2 -2
- package/dist/{chunk-N5FTU4HZ.js → chunk-MQ5GAJ54.js} +68 -39
- package/dist/{chunk-W2I47J2Q.js → chunk-NJFKPDNG.js} +216 -2
- package/dist/{chunk-LPLJZJT2.js → chunk-O4EDZR44.js} +131 -70
- package/dist/{chunk-4HGFJ6Z2.js → chunk-PZIEOEJZ.js} +1 -1
- package/dist/{chunk-C5LXKR54.js → chunk-QTRJLKR2.js} +1 -1
- package/dist/{chunk-SZ6BJA4Q.js → chunk-REFHJ2FN.js} +3 -3
- package/dist/{chunk-ZDYGRO2Z.js → chunk-RP76USJE.js} +1 -1
- package/dist/{chunk-RBWJHRNP.js → chunk-T66OS7MN.js} +8 -3
- package/dist/{chunk-ALWXYGXP.js → chunk-V2JF42SI.js} +2 -2
- package/dist/{chunk-CDEZGLQ3.js → chunk-VA24T4EB.js} +1 -1
- package/dist/{chunk-6TLZ6CMP.js → chunk-WDDFU2N2.js} +2 -2
- package/dist/{chunk-U3UMKA7B.js → chunk-XBQFDBXE.js} +1 -1
- package/dist/core/commands/formatting-commands.d.cts +1 -1
- package/dist/core/commands/formatting-commands.d.ts +1 -1
- package/dist/core/commands/image-commands.cjs +32 -0
- package/dist/core/commands/image-commands.d.cts +1 -1
- package/dist/core/commands/image-commands.d.ts +1 -1
- package/dist/core/commands/image-commands.js +5 -5
- package/dist/core/commands/section-layout-commands.d.cts +1 -1
- package/dist/core/commands/section-layout-commands.d.ts +1 -1
- package/dist/core/commands/style-commands.d.cts +1 -1
- package/dist/core/commands/style-commands.d.ts +1 -1
- package/dist/core/commands/table-structure-commands.cjs +32 -0
- package/dist/core/commands/table-structure-commands.d.cts +1 -1
- package/dist/core/commands/table-structure-commands.d.ts +1 -1
- package/dist/core/commands/table-structure-commands.js +4 -4
- package/dist/core/commands/text-commands.cjs +99 -38
- package/dist/core/commands/text-commands.d.cts +12 -1
- package/dist/core/commands/text-commands.d.ts +12 -1
- package/dist/core/commands/text-commands.js +5 -5
- package/dist/core/selection/mapping.d.cts +1 -1
- package/dist/core/selection/mapping.d.ts +1 -1
- package/dist/core/state/editor-state.d.cts +1 -1
- package/dist/core/state/editor-state.d.ts +1 -1
- package/dist/index.cjs +5365 -2298
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +388 -63
- package/dist/io/docx-session.cjs +7 -2
- package/dist/io/docx-session.d.cts +3 -3
- package/dist/io/docx-session.d.ts +3 -3
- package/dist/io/docx-session.js +4 -4
- package/dist/legal.js +3 -3
- package/dist/{loader-MAa8VpzW.d.cts → loader-CK3lZy4h.d.cts} +2 -2
- package/dist/{loader-CfpeEPAa.d.ts → loader-CQXplstv.d.ts} +2 -2
- package/dist/{public-types-KBS6JnOs.d.cts → public-types-BR1SYK2F.d.cts} +783 -189
- package/dist/{public-types-Cjs8glST.d.ts → public-types-DXNZVKrS.d.ts} +783 -189
- package/dist/public-types.cjs +161 -68
- package/dist/public-types.d.cts +1 -1
- package/dist/public-types.d.ts +1 -1
- package/dist/public-types.js +3 -3
- package/dist/runtime/collab.d.cts +2 -2
- package/dist/runtime/collab.d.ts +2 -2
- package/dist/runtime/document-runtime.cjs +1597 -444
- package/dist/runtime/document-runtime.d.cts +1 -1
- package/dist/runtime/document-runtime.d.ts +1 -1
- package/dist/runtime/document-runtime.js +14 -14
- package/dist/{session-CkoH8FoY.d.ts → session-C9UjrhJF.d.ts} +2 -2
- package/dist/{session-wwe0Gib-.d.cts → session-CSbwkgII.d.cts} +2 -2
- package/dist/session.cjs +7 -2
- package/dist/session.d.cts +4 -4
- package/dist/session.d.ts +4 -4
- package/dist/session.js +5 -5
- package/dist/tailwind.cjs +451 -650
- package/dist/tailwind.d.cts +1 -1
- package/dist/tailwind.d.ts +1 -1
- package/dist/tailwind.js +7 -7
- package/dist/{types-B3SGRW0w.d.cts → types-CZtAueri.d.cts} +1 -1
- package/dist/{types-CH7NWqVL.d.ts → types-RzkCXDNV.d.ts} +1 -1
- package/dist/ui-tailwind/editor-surface/search-plugin.d.cts +2 -2
- package/dist/ui-tailwind/editor-surface/search-plugin.d.ts +2 -2
- package/dist/ui-tailwind/editor-surface/search-plugin.js +4 -4
- package/dist/ui-tailwind.cjs +451 -650
- package/dist/ui-tailwind.d.cts +3 -2
- package/dist/ui-tailwind.d.ts +3 -2
- package/dist/ui-tailwind.js +7 -7
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { gH as ActiveStoryTextCommand, gI as CommandAppliedMeta, gJ as CreateDocumentRuntimeOptions, gK as DocumentRuntime, gL as DocumentRuntimeEvent, gM as RemoteCommandEnvelope, gN as Unsubscribe, gO as __buildTocInlineNodes, gP as __collectFontLoaderInputUncached, gQ as __fontFamiliesEqual, gR as createDocumentRuntime, gS as getThemeColorResolver } from '../public-types-BR1SYK2F.cjs';
|
|
2
2
|
import '../canonical-document-CfZIc-fC.cjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'yjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { gH as ActiveStoryTextCommand, gI as CommandAppliedMeta, gJ as CreateDocumentRuntimeOptions, gK as DocumentRuntime, gL as DocumentRuntimeEvent, gM as RemoteCommandEnvelope, gN as Unsubscribe, gO as __buildTocInlineNodes, gP as __collectFontLoaderInputUncached, gQ as __fontFamiliesEqual, gR as createDocumentRuntime, gS as getThemeColorResolver } from '../public-types-DXNZVKrS.js';
|
|
2
2
|
import '../canonical-document-CfZIc-fC.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'yjs';
|
|
@@ -4,27 +4,27 @@ import {
|
|
|
4
4
|
__fontFamiliesEqual,
|
|
5
5
|
createDocumentRuntime,
|
|
6
6
|
getThemeColorResolver
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-EBSI6VQX.js";
|
|
8
8
|
import "../chunk-6EXNNAO6.js";
|
|
9
9
|
import "../chunk-M6XR534O.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-RP76USJE.js";
|
|
11
|
+
import "../chunk-REFHJ2FN.js";
|
|
12
12
|
import "../chunk-Y4XZCMCS.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-INLRCC4N.js";
|
|
14
|
+
import "../chunk-MQ5GAJ54.js";
|
|
15
|
+
import "../chunk-WDDFU2N2.js";
|
|
16
|
+
import "../chunk-QTRJLKR2.js";
|
|
17
|
+
import "../chunk-74R5B2EZ.js";
|
|
18
|
+
import "../chunk-IJD6D7HU.js";
|
|
19
|
+
import "../chunk-O4EDZR44.js";
|
|
20
20
|
import "../chunk-OVLZQ6FZ.js";
|
|
21
21
|
import "../chunk-QIO6V46H.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-XBQFDBXE.js";
|
|
23
23
|
import "../chunk-SYQWQ6FE.js";
|
|
24
24
|
import "../chunk-OYGMRRR7.js";
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-PZIEOEJZ.js";
|
|
26
|
+
import "../chunk-T66OS7MN.js";
|
|
27
|
+
import "../chunk-5KTJKTNE.js";
|
|
28
28
|
import "../chunk-FM4K4XFJ.js";
|
|
29
29
|
import "../chunk-IHE7YOAY.js";
|
|
30
30
|
import "../chunk-UTL65BUI.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as CanonicalDocument } from './canonical-document-CfZIc-fC.js';
|
|
2
|
-
import { a as EditorSessionState, c as ExportResult, P as PersistedEditorSnapshot } from './public-types-
|
|
3
|
-
import { O as OpenOptions, b as OpenResult, a as ExportOptions, R as ReopenBarrier, V as ValidateOptions, d as ValidationReport } from './types-
|
|
2
|
+
import { a as EditorSessionState, c as ExportResult, P as PersistedEditorSnapshot } from './public-types-DXNZVKrS.js';
|
|
3
|
+
import { O as OpenOptions, b as OpenResult, a as ExportOptions, R as ReopenBarrier, V as ValidateOptions, d as ValidationReport } from './types-RzkCXDNV.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* `DocxSession` — the Layer-01 package/session public entry class.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as CanonicalDocument } from './canonical-document-CfZIc-fC.cjs';
|
|
2
|
-
import { a as EditorSessionState, c as ExportResult, P as PersistedEditorSnapshot } from './public-types-
|
|
3
|
-
import { O as OpenOptions, b as OpenResult, a as ExportOptions, R as ReopenBarrier, V as ValidateOptions, d as ValidationReport } from './types-
|
|
2
|
+
import { a as EditorSessionState, c as ExportResult, P as PersistedEditorSnapshot } from './public-types-BR1SYK2F.cjs';
|
|
3
|
+
import { O as OpenOptions, b as OpenResult, a as ExportOptions, R as ReopenBarrier, V as ValidateOptions, d as ValidationReport } from './types-CZtAueri.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* `DocxSession` — the Layer-01 package/session public entry class.
|
package/dist/session.cjs
CHANGED
|
@@ -15360,7 +15360,7 @@ function readNumPicBullet(node, numPicBulletId, context, xmlPath) {
|
|
|
15360
15360
|
const rEmbed = blip?.attributes["r:embed"] ?? blip?.attributes.embed;
|
|
15361
15361
|
if (rEmbed) {
|
|
15362
15362
|
const rel = context.relationships.find((r) => r.id === rEmbed);
|
|
15363
|
-
if (rel) {
|
|
15363
|
+
if (isEmbeddedImageRelationship(rel)) {
|
|
15364
15364
|
const packagePartName = normalizePartPath(
|
|
15365
15365
|
resolveRelationshipTarget(context.partPath ?? "/word/numbering.xml", rel)
|
|
15366
15366
|
);
|
|
@@ -15378,7 +15378,7 @@ function readNumPicBullet(node, numPicBulletId, context, xmlPath) {
|
|
|
15378
15378
|
const rId = imagedata?.attributes["r:id"] ?? imagedata?.attributes.id;
|
|
15379
15379
|
if (rId && context?.relationships && context.relationships.length > 0) {
|
|
15380
15380
|
const rel = context.relationships.find((r) => r.id === rId);
|
|
15381
|
-
if (rel) {
|
|
15381
|
+
if (isEmbeddedImageRelationship(rel)) {
|
|
15382
15382
|
const packagePartName = normalizePartPath(
|
|
15383
15383
|
resolveRelationshipTarget(context.partPath ?? "/word/numbering.xml", rel)
|
|
15384
15384
|
);
|
|
@@ -15403,6 +15403,11 @@ function readNumPicBullet(node, numPicBulletId, context, xmlPath) {
|
|
|
15403
15403
|
...mediaId !== void 0 ? { mediaId } : {}
|
|
15404
15404
|
};
|
|
15405
15405
|
}
|
|
15406
|
+
function isEmbeddedImageRelationship(relationship) {
|
|
15407
|
+
return Boolean(
|
|
15408
|
+
relationship && relationship.targetMode === "internal" && relationship.type.endsWith("/image")
|
|
15409
|
+
);
|
|
15410
|
+
}
|
|
15406
15411
|
function toCanonicalAbstractNumberingId(value) {
|
|
15407
15412
|
return value.startsWith("abstract-num:") ? value : `abstract-num:${value}`;
|
|
15408
15413
|
}
|
package/dist/session.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-
|
|
2
|
-
export { L as LoadedDocxEditorSession, l as loadDocxSessionAsync } from './loader-
|
|
3
|
-
export { E as EmbeddedDocumentManifest, a as ExportOptions, O as OpenOptions, b as OpenResult, P as PreservationSnapshot, R as ReopenBarrier, V as ValidateOptions, c as ValidationFinding, d as ValidationReport, i as isReopenBarrier } from './types-
|
|
4
|
-
export { E as EditorHostAdapter, a as EditorSessionState, b as ExportDocxOptions, c as ExportResult, L as LoadStage, P as PersistedEditorSnapshot } from './public-types-
|
|
1
|
+
export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-CSbwkgII.cjs';
|
|
2
|
+
export { L as LoadedDocxEditorSession, l as loadDocxSessionAsync } from './loader-CK3lZy4h.cjs';
|
|
3
|
+
export { E as EmbeddedDocumentManifest, a as ExportOptions, O as OpenOptions, b as OpenResult, P as PreservationSnapshot, R as ReopenBarrier, V as ValidateOptions, c as ValidationFinding, d as ValidationReport, i as isReopenBarrier } from './types-CZtAueri.cjs';
|
|
4
|
+
export { E as EditorHostAdapter, a as EditorSessionState, b as ExportDocxOptions, c as ExportResult, L as LoadStage, P as PersistedEditorSnapshot } from './public-types-BR1SYK2F.cjs';
|
|
5
5
|
import './canonical-document-CfZIc-fC.cjs';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'yjs';
|
package/dist/session.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-
|
|
2
|
-
export { L as LoadedDocxEditorSession, l as loadDocxSessionAsync } from './loader-
|
|
3
|
-
export { E as EmbeddedDocumentManifest, a as ExportOptions, O as OpenOptions, b as OpenResult, P as PreservationSnapshot, R as ReopenBarrier, V as ValidateOptions, c as ValidationFinding, d as ValidationReport, i as isReopenBarrier } from './types-
|
|
4
|
-
export { E as EditorHostAdapter, a as EditorSessionState, b as ExportDocxOptions, c as ExportResult, L as LoadStage, P as PersistedEditorSnapshot } from './public-types-
|
|
1
|
+
export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-C9UjrhJF.js';
|
|
2
|
+
export { L as LoadedDocxEditorSession, l as loadDocxSessionAsync } from './loader-CQXplstv.js';
|
|
3
|
+
export { E as EmbeddedDocumentManifest, a as ExportOptions, O as OpenOptions, b as OpenResult, P as PreservationSnapshot, R as ReopenBarrier, V as ValidateOptions, c as ValidationFinding, d as ValidationReport, i as isReopenBarrier } from './types-RzkCXDNV.js';
|
|
4
|
+
export { E as EditorHostAdapter, a as EditorSessionState, b as ExportDocxOptions, c as ExportResult, L as LoadStage, P as PersistedEditorSnapshot } from './public-types-DXNZVKrS.js';
|
|
5
5
|
import './canonical-document-CfZIc-fC.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'yjs';
|
package/dist/session.js
CHANGED
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
SessionNotOpenError,
|
|
4
4
|
SessionNotWiredError,
|
|
5
5
|
isReopenBarrier
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-V2JF42SI.js";
|
|
7
7
|
import {
|
|
8
8
|
loadDocxSessionAsync
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-EFEW7BTT.js";
|
|
10
|
+
import "./chunk-PZIEOEJZ.js";
|
|
11
|
+
import "./chunk-T66OS7MN.js";
|
|
12
12
|
import "./chunk-4BJ6K26R.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-5KTJKTNE.js";
|
|
14
14
|
import "./chunk-WUDSNHWF.js";
|
|
15
15
|
import "./chunk-FM4K4XFJ.js";
|
|
16
16
|
import "./chunk-IHE7YOAY.js";
|