@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
|
@@ -1967,7 +1967,20 @@ function sourceJoinHash(refs) {
|
|
|
1967
1967
|
if (sourceIds.length === 0) return void 0;
|
|
1968
1968
|
return hashText(sourceIds.join("\0"));
|
|
1969
1969
|
}
|
|
1970
|
+
var numberingCatalogHashCache = /* @__PURE__ */ new WeakMap();
|
|
1971
|
+
var numberingTargetHashCache = /* @__PURE__ */ new WeakMap();
|
|
1970
1972
|
function createNumberingCatalogRevisionHash(doc) {
|
|
1973
|
+
const numbering = doc.numbering;
|
|
1974
|
+
if (numbering !== void 0) {
|
|
1975
|
+
const cached = numberingCatalogHashCache.get(numbering);
|
|
1976
|
+
if (cached !== void 0) return cached;
|
|
1977
|
+
const fresh = computeNumberingCatalogRevisionHash(doc);
|
|
1978
|
+
numberingCatalogHashCache.set(numbering, fresh);
|
|
1979
|
+
return fresh;
|
|
1980
|
+
}
|
|
1981
|
+
return computeNumberingCatalogRevisionHash(doc);
|
|
1982
|
+
}
|
|
1983
|
+
function computeNumberingCatalogRevisionHash(doc) {
|
|
1971
1984
|
const catalog = doc.numbering ?? { abstractDefinitions: {}, instances: {} };
|
|
1972
1985
|
const abstractDefinitions = catalog.abstractDefinitions ?? {};
|
|
1973
1986
|
const instances = catalog.instances ?? {};
|
|
@@ -2018,8 +2031,27 @@ function createNumberingCatalogRevisionHash(doc) {
|
|
|
2018
2031
|
}));
|
|
2019
2032
|
}
|
|
2020
2033
|
function createNumberingTargetRevisionHash(doc) {
|
|
2034
|
+
const numbering = doc.numbering;
|
|
2035
|
+
const styles = doc.styles;
|
|
2036
|
+
if (numbering !== void 0 && styles !== void 0) {
|
|
2037
|
+
let inner = numberingTargetHashCache.get(numbering);
|
|
2038
|
+
if (inner === void 0) {
|
|
2039
|
+
inner = /* @__PURE__ */ new WeakMap();
|
|
2040
|
+
numberingTargetHashCache.set(numbering, inner);
|
|
2041
|
+
}
|
|
2042
|
+
const cached = inner.get(styles);
|
|
2043
|
+
if (cached !== void 0) return cached;
|
|
2044
|
+
const fresh = computeNumberingTargetRevisionHash(doc);
|
|
2045
|
+
inner.set(styles, fresh);
|
|
2046
|
+
return fresh;
|
|
2047
|
+
}
|
|
2048
|
+
return computeNumberingTargetRevisionHash(doc);
|
|
2049
|
+
}
|
|
2050
|
+
function computeNumberingTargetRevisionHash(doc) {
|
|
2021
2051
|
const paragraphStyles = doc.styles?.paragraphs ?? {};
|
|
2022
2052
|
return hashText(JSON.stringify({
|
|
2053
|
+
// Reuses the memoized catalog hash on the hot path so a typing edit
|
|
2054
|
+
// pays for the catalog hash at most once across both helpers.
|
|
2023
2055
|
numberingCatalogHash: createNumberingCatalogRevisionHash(doc),
|
|
2024
2056
|
paragraphStyleNumbering: Object.keys(paragraphStyles).sort().map((styleId) => {
|
|
2025
2057
|
const style = paragraphStyles[styleId];
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PAGE_STACK_GAP_PX,
|
|
3
3
|
resolveDefaultZoom
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-O4EDZR44.js";
|
|
5
5
|
import {
|
|
6
6
|
MAIN_STORY_KEY,
|
|
7
7
|
collectCanonicalLayoutInputs,
|
|
8
8
|
collectStoryBlockContexts,
|
|
9
9
|
createHeaderFooterStoryKey,
|
|
10
10
|
createNoteStoryKey
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5KTJKTNE.js";
|
|
12
12
|
|
|
13
13
|
// src/runtime/geometry/geometry-index-queries.ts
|
|
14
14
|
function resolveHitTestFromGeometryIndex(index, point) {
|
|
@@ -1134,9 +1134,13 @@ function appendFragmentLayoutObjectSemanticEntries(input) {
|
|
|
1134
1134
|
numberingCanonicalAddressKey: numbering.canonicalAddressKey,
|
|
1135
1135
|
numberingListAddressKey: numbering.listAddressKey,
|
|
1136
1136
|
numberingMarkerText: numbering.markerText,
|
|
1137
|
+
numberingMarkerTextPosture: numbering.markerTextPosture,
|
|
1137
1138
|
numberingMarkerSuffix: numbering.markerSuffix,
|
|
1138
1139
|
numberingFormat: numbering.format,
|
|
1139
1140
|
numberingFormatPosture: numbering.formatPosture,
|
|
1141
|
+
numberingPicBulletId: numbering.picBulletId,
|
|
1142
|
+
numberingPicBulletMediaId: numbering.picBulletMediaId,
|
|
1143
|
+
numberingPictureBulletPosture: numbering.pictureBulletPosture,
|
|
1140
1144
|
numberingUnavailableReasons: numbering.unavailableReasons,
|
|
1141
1145
|
markerGlyphRect: markerProjection.rect,
|
|
1142
1146
|
markerLaneRect: markerProjection.markerLaneRect,
|