@beyondwork/docx-react-component 1.0.123 → 1.0.124
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/v3.cjs +15 -7
- package/dist/api/v3.js +6 -6
- package/dist/{chunk-E5IBDE5E.js → chunk-4B74ETJI.js} +2 -2
- package/dist/{chunk-NNPVA5VL.js → chunk-7PC6XUNO.js} +2 -2
- package/dist/{chunk-MB7RJBSN.js → chunk-A74Y5NE4.js} +15 -7
- package/dist/{chunk-SGSJ4DQA.js → chunk-MPH4ZQS4.js} +4 -4
- package/dist/{chunk-RWERZWHR.js → chunk-NAMAWCXN.js} +1 -1
- package/dist/{chunk-UHJLCPLU.js → chunk-Q76XPPTA.js} +2 -2
- package/dist/{chunk-ML4A4WUN.js → chunk-TY4DIJO3.js} +1 -1
- package/dist/{chunk-H2YQKA55.js → chunk-ZMRO6P3A.js} +3 -3
- package/dist/index.cjs +15 -7
- package/dist/index.js +8 -8
- package/dist/io/docx-session.cjs +15 -7
- package/dist/io/docx-session.js +3 -3
- package/dist/legal.cjs +15 -7
- package/dist/legal.js +2 -2
- package/dist/runtime/document-runtime.js +5 -5
- package/dist/session.cjs +15 -7
- package/dist/session.js +4 -4
- package/package.json +2 -2
package/dist/api/v3.cjs
CHANGED
|
@@ -18405,6 +18405,7 @@ function resolveContentType(path, contentTypes) {
|
|
|
18405
18405
|
// src/io/ooxml/parse-bookmark-references.ts
|
|
18406
18406
|
var HYPERLINK_ANCHOR_RE = /<(?:\w+:)?hyperlink\b[^>]*\bw:anchor\s*=\s*"([^"]*)"/gi;
|
|
18407
18407
|
var INSTR_TEXT_RE = /<(?:\w+:)?instrText\b[^>]*>([\s\S]*?)<\/(?:\w+:)?instrText>/gi;
|
|
18408
|
+
var FLD_SIMPLE_INSTR_RE = /<(?:\w+:)?fldSimple\b[^>]*(?:\bw:instr|\binstr)\s*=\s*(["'])([\s\S]*?)\1/gi;
|
|
18408
18409
|
var TOC_FIELD_RE = /\bTOC\b/;
|
|
18409
18410
|
var REFLIKE_FIELD_RE = /\b(?:HYPERLINK|REF|PAGEREF|NOTEREF)\s+([A-Za-z0-9_:.\-]+)/g;
|
|
18410
18411
|
var DATA_BINDING_RE = /<(?:\w+:)?dataBinding\b/i;
|
|
@@ -18423,13 +18424,11 @@ function scanBookmarkReferences(documentXml, callerAllowlist = []) {
|
|
|
18423
18424
|
}
|
|
18424
18425
|
INSTR_TEXT_RE.lastIndex = 0;
|
|
18425
18426
|
while ((m = INSTR_TEXT_RE.exec(documentXml)) !== null) {
|
|
18426
|
-
|
|
18427
|
-
|
|
18428
|
-
|
|
18429
|
-
|
|
18430
|
-
|
|
18431
|
-
if (r[1]) retained.add(r[1]);
|
|
18432
|
-
}
|
|
18427
|
+
if (scanInstructionText(m[1] ?? "", retained)) retainAllToc = true;
|
|
18428
|
+
}
|
|
18429
|
+
FLD_SIMPLE_INSTR_RE.lastIndex = 0;
|
|
18430
|
+
while ((m = FLD_SIMPLE_INSTR_RE.exec(documentXml)) !== null) {
|
|
18431
|
+
if (scanInstructionText(m[2] ?? "", retained)) retainAllToc = true;
|
|
18433
18432
|
}
|
|
18434
18433
|
retainRevisionBoundedBookmarks(documentXml, retained);
|
|
18435
18434
|
return {
|
|
@@ -18438,6 +18437,15 @@ function scanBookmarkReferences(documentXml, callerAllowlist = []) {
|
|
|
18438
18437
|
retainAll
|
|
18439
18438
|
};
|
|
18440
18439
|
}
|
|
18440
|
+
function scanInstructionText(instrText, retained) {
|
|
18441
|
+
const hasTocField = TOC_FIELD_RE.test(instrText);
|
|
18442
|
+
REFLIKE_FIELD_RE.lastIndex = 0;
|
|
18443
|
+
let r;
|
|
18444
|
+
while ((r = REFLIKE_FIELD_RE.exec(instrText)) !== null) {
|
|
18445
|
+
if (r[1]) retained.add(r[1]);
|
|
18446
|
+
}
|
|
18447
|
+
return hasTocField;
|
|
18448
|
+
}
|
|
18441
18449
|
function retainRevisionBoundedBookmarks(documentXml, retained) {
|
|
18442
18450
|
const starts = /* @__PURE__ */ new Map();
|
|
18443
18451
|
BOOKMARK_START_RE.lastIndex = 0;
|
package/dist/api/v3.js
CHANGED
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
mockId,
|
|
6
6
|
mockPayload,
|
|
7
7
|
validateApiV3Metadata
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-ZMRO6P3A.js";
|
|
9
|
+
import "../chunk-Q76XPPTA.js";
|
|
10
10
|
import "../chunk-C2LWJ4CZ.js";
|
|
11
11
|
import {
|
|
12
12
|
createUiApi,
|
|
@@ -17,10 +17,10 @@ import "../chunk-KFCQYZXR.js";
|
|
|
17
17
|
import "../chunk-QIO6V46H.js";
|
|
18
18
|
import "../chunk-H6IL5ABU.js";
|
|
19
19
|
import "../chunk-OYGMRRR7.js";
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-7PC6XUNO.js";
|
|
21
|
+
import "../chunk-4B74ETJI.js";
|
|
22
|
+
import "../chunk-TY4DIJO3.js";
|
|
23
|
+
import "../chunk-A74Y5NE4.js";
|
|
24
24
|
import "../chunk-4BJ6K26R.js";
|
|
25
25
|
import "../chunk-FNWKE74J.js";
|
|
26
26
|
import "../chunk-OL2UEHRP.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
getRevisionActionability,
|
|
9
9
|
normalizeParsedTextDocument,
|
|
10
10
|
normalizeParsedTextDocumentAsync
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TY4DIJO3.js";
|
|
12
12
|
import {
|
|
13
13
|
OLE_RELATIONSHIP_TYPES,
|
|
14
14
|
buildFieldRegistry,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
resolveHighlightColor,
|
|
60
60
|
setActiveParseTelemetryBus,
|
|
61
61
|
toCanonicalNumberingInstanceId
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-A74Y5NE4.js";
|
|
63
63
|
import {
|
|
64
64
|
createPersistedSourcePackage,
|
|
65
65
|
decodeBytesBase64,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadDocxSessionAsync
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4B74ETJI.js";
|
|
4
4
|
import {
|
|
5
5
|
buildCompatibilityReport,
|
|
6
6
|
createLoadScheduler
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TY4DIJO3.js";
|
|
8
8
|
import {
|
|
9
9
|
decodePersistedSourcePackageBytes,
|
|
10
10
|
hasValidPersistedSourcePackageDigest,
|
|
@@ -1487,6 +1487,7 @@ function parseInteger(value) {
|
|
|
1487
1487
|
// src/io/ooxml/parse-bookmark-references.ts
|
|
1488
1488
|
var HYPERLINK_ANCHOR_RE = /<(?:\w+:)?hyperlink\b[^>]*\bw:anchor\s*=\s*"([^"]*)"/gi;
|
|
1489
1489
|
var INSTR_TEXT_RE = /<(?:\w+:)?instrText\b[^>]*>([\s\S]*?)<\/(?:\w+:)?instrText>/gi;
|
|
1490
|
+
var FLD_SIMPLE_INSTR_RE = /<(?:\w+:)?fldSimple\b[^>]*(?:\bw:instr|\binstr)\s*=\s*(["'])([\s\S]*?)\1/gi;
|
|
1490
1491
|
var TOC_FIELD_RE = /\bTOC\b/;
|
|
1491
1492
|
var REFLIKE_FIELD_RE = /\b(?:HYPERLINK|REF|PAGEREF|NOTEREF)\s+([A-Za-z0-9_:.\-]+)/g;
|
|
1492
1493
|
var DATA_BINDING_RE = /<(?:\w+:)?dataBinding\b/i;
|
|
@@ -1505,13 +1506,11 @@ function scanBookmarkReferences(documentXml, callerAllowlist = []) {
|
|
|
1505
1506
|
}
|
|
1506
1507
|
INSTR_TEXT_RE.lastIndex = 0;
|
|
1507
1508
|
while ((m = INSTR_TEXT_RE.exec(documentXml)) !== null) {
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
if (r[1]) retained.add(r[1]);
|
|
1514
|
-
}
|
|
1509
|
+
if (scanInstructionText(m[1] ?? "", retained)) retainAllToc = true;
|
|
1510
|
+
}
|
|
1511
|
+
FLD_SIMPLE_INSTR_RE.lastIndex = 0;
|
|
1512
|
+
while ((m = FLD_SIMPLE_INSTR_RE.exec(documentXml)) !== null) {
|
|
1513
|
+
if (scanInstructionText(m[2] ?? "", retained)) retainAllToc = true;
|
|
1515
1514
|
}
|
|
1516
1515
|
retainRevisionBoundedBookmarks(documentXml, retained);
|
|
1517
1516
|
return {
|
|
@@ -1520,6 +1519,15 @@ function scanBookmarkReferences(documentXml, callerAllowlist = []) {
|
|
|
1520
1519
|
retainAll
|
|
1521
1520
|
};
|
|
1522
1521
|
}
|
|
1522
|
+
function scanInstructionText(instrText, retained) {
|
|
1523
|
+
const hasTocField = TOC_FIELD_RE.test(instrText);
|
|
1524
|
+
REFLIKE_FIELD_RE.lastIndex = 0;
|
|
1525
|
+
let r;
|
|
1526
|
+
while ((r = REFLIKE_FIELD_RE.exec(instrText)) !== null) {
|
|
1527
|
+
if (r[1]) retained.add(r[1]);
|
|
1528
|
+
}
|
|
1529
|
+
return hasTocField;
|
|
1530
|
+
}
|
|
1523
1531
|
function retainRevisionBoundedBookmarks(documentXml, retained) {
|
|
1524
1532
|
const starts = /* @__PURE__ */ new Map();
|
|
1525
1533
|
BOOKMARK_START_RE.lastIndex = 0;
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-M6XR534O.js";
|
|
12
12
|
import {
|
|
13
13
|
buildBookmarkNameMap
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NAMAWCXN.js";
|
|
15
15
|
import {
|
|
16
16
|
deleteSelectionOrBackward,
|
|
17
17
|
deleteSelectionOrForward,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
resolveHeadingPath,
|
|
75
75
|
resolveScope,
|
|
76
76
|
serializeFragmentToWordML
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-Q76XPPTA.js";
|
|
78
78
|
import {
|
|
79
79
|
ISSUE_METADATA_ID,
|
|
80
80
|
LAYOUT_ENGINE_VERSION,
|
|
@@ -152,12 +152,12 @@ import {
|
|
|
152
152
|
persistedSnapshotFromEditorSessionState,
|
|
153
153
|
remapRevisionStore,
|
|
154
154
|
setRevisionStatus
|
|
155
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-TY4DIJO3.js";
|
|
156
156
|
import {
|
|
157
157
|
isSupportedFieldFamily,
|
|
158
158
|
parseTocLevelRange,
|
|
159
159
|
resolveRefFieldText
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-A74Y5NE4.js";
|
|
161
161
|
import {
|
|
162
162
|
collectEditableTargetRefs,
|
|
163
163
|
collectEditableTargetRefsForStoryBlockRanges,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
} from "./chunk-OYGMRRR7.js";
|
|
19
19
|
import {
|
|
20
20
|
normalizeParsedTextDocument
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-TY4DIJO3.js";
|
|
22
22
|
import {
|
|
23
23
|
buildFieldRegistry,
|
|
24
24
|
parseMainDocumentXml,
|
|
25
25
|
parseTocLevelRange
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-A74Y5NE4.js";
|
|
27
27
|
import {
|
|
28
28
|
collectEditableTargetRefs,
|
|
29
29
|
validateEditableTargetRef
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
resolveScopeRange,
|
|
18
18
|
scopeSpecificity,
|
|
19
19
|
searchDocument
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-Q76XPPTA.js";
|
|
21
21
|
import {
|
|
22
22
|
BROADCAST_COMMAND_TYPES,
|
|
23
23
|
COMMAND_EVENT_SCHEMA_VERSION,
|
|
@@ -46,13 +46,13 @@ import {
|
|
|
46
46
|
} from "./chunk-OYGMRRR7.js";
|
|
47
47
|
import {
|
|
48
48
|
DocxSession
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-7PC6XUNO.js";
|
|
50
50
|
import {
|
|
51
51
|
WORKFLOW_PAYLOAD_PART_PATH,
|
|
52
52
|
buildEditorStateXml,
|
|
53
53
|
parseEditorStateXml,
|
|
54
54
|
parseWorkflowPayloadEnvelopeFromPackage
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-4B74ETJI.js";
|
|
56
56
|
import {
|
|
57
57
|
EMU_PER_PX,
|
|
58
58
|
GRADIENT_STOP_UNITS,
|
package/dist/index.cjs
CHANGED
|
@@ -58602,6 +58602,7 @@ async function collectEditorStateForSerialize(args) {
|
|
|
58602
58602
|
// src/io/ooxml/parse-bookmark-references.ts
|
|
58603
58603
|
var HYPERLINK_ANCHOR_RE = /<(?:\w+:)?hyperlink\b[^>]*\bw:anchor\s*=\s*"([^"]*)"/gi;
|
|
58604
58604
|
var INSTR_TEXT_RE = /<(?:\w+:)?instrText\b[^>]*>([\s\S]*?)<\/(?:\w+:)?instrText>/gi;
|
|
58605
|
+
var FLD_SIMPLE_INSTR_RE = /<(?:\w+:)?fldSimple\b[^>]*(?:\bw:instr|\binstr)\s*=\s*(["'])([\s\S]*?)\1/gi;
|
|
58605
58606
|
var TOC_FIELD_RE = /\bTOC\b/;
|
|
58606
58607
|
var REFLIKE_FIELD_RE = /\b(?:HYPERLINK|REF|PAGEREF|NOTEREF)\s+([A-Za-z0-9_:.\-]+)/g;
|
|
58607
58608
|
var DATA_BINDING_RE = /<(?:\w+:)?dataBinding\b/i;
|
|
@@ -58620,13 +58621,11 @@ function scanBookmarkReferences(documentXml, callerAllowlist = []) {
|
|
|
58620
58621
|
}
|
|
58621
58622
|
INSTR_TEXT_RE.lastIndex = 0;
|
|
58622
58623
|
while ((m = INSTR_TEXT_RE.exec(documentXml)) !== null) {
|
|
58623
|
-
|
|
58624
|
-
|
|
58625
|
-
|
|
58626
|
-
|
|
58627
|
-
|
|
58628
|
-
if (r[1]) retained.add(r[1]);
|
|
58629
|
-
}
|
|
58624
|
+
if (scanInstructionText(m[1] ?? "", retained)) retainAllToc = true;
|
|
58625
|
+
}
|
|
58626
|
+
FLD_SIMPLE_INSTR_RE.lastIndex = 0;
|
|
58627
|
+
while ((m = FLD_SIMPLE_INSTR_RE.exec(documentXml)) !== null) {
|
|
58628
|
+
if (scanInstructionText(m[2] ?? "", retained)) retainAllToc = true;
|
|
58630
58629
|
}
|
|
58631
58630
|
retainRevisionBoundedBookmarks(documentXml, retained);
|
|
58632
58631
|
return {
|
|
@@ -58635,6 +58634,15 @@ function scanBookmarkReferences(documentXml, callerAllowlist = []) {
|
|
|
58635
58634
|
retainAll
|
|
58636
58635
|
};
|
|
58637
58636
|
}
|
|
58637
|
+
function scanInstructionText(instrText, retained) {
|
|
58638
|
+
const hasTocField = TOC_FIELD_RE.test(instrText);
|
|
58639
|
+
REFLIKE_FIELD_RE.lastIndex = 0;
|
|
58640
|
+
let r;
|
|
58641
|
+
while ((r = REFLIKE_FIELD_RE.exec(instrText)) !== null) {
|
|
58642
|
+
if (r[1]) retained.add(r[1]);
|
|
58643
|
+
}
|
|
58644
|
+
return hasTocField;
|
|
58645
|
+
}
|
|
58638
58646
|
function retainRevisionBoundedBookmarks(documentXml, retained) {
|
|
58639
58647
|
const starts = /* @__PURE__ */ new Map();
|
|
58640
58648
|
BOOKMARK_START_RE.lastIndex = 0;
|
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
splitListParagraph,
|
|
27
27
|
toggleBulletedList,
|
|
28
28
|
toggleNumberedList
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-MPH4ZQS4.js";
|
|
30
30
|
import {
|
|
31
31
|
applyParagraphStyleToDocument
|
|
32
32
|
} from "./chunk-6EXNNAO6.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
setSectionPageNumberingAtSectionIndex,
|
|
38
38
|
updateSectionLayoutAtSectionIndex
|
|
39
39
|
} from "./chunk-M6XR534O.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-NAMAWCXN.js";
|
|
41
41
|
import {
|
|
42
42
|
createRuntimeCollabSync,
|
|
43
43
|
createRuntimeCommandAppliedBridge
|
|
@@ -106,12 +106,12 @@ import {
|
|
|
106
106
|
resolveColor,
|
|
107
107
|
tryReadLaycacheEnvelope,
|
|
108
108
|
writeEnvelopeToOpcPackage
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-ZMRO6P3A.js";
|
|
110
110
|
import {
|
|
111
111
|
findTextMatches,
|
|
112
112
|
parseCanonicalFragmentFromWordML,
|
|
113
113
|
searchDocument
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-Q76XPPTA.js";
|
|
115
115
|
import {
|
|
116
116
|
clearLocalCursorState,
|
|
117
117
|
getCursorColorForUser,
|
|
@@ -156,14 +156,14 @@ import {
|
|
|
156
156
|
SessionNotOpenError,
|
|
157
157
|
SessionNotWiredError,
|
|
158
158
|
isReopenBarrier
|
|
159
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-7PC6XUNO.js";
|
|
160
160
|
import {
|
|
161
161
|
createHmacSigner,
|
|
162
162
|
createHmacVerifier,
|
|
163
163
|
loadDocxSessionSync,
|
|
164
164
|
signWorkflowPayloadXml,
|
|
165
165
|
verifyWorkflowPayloadXml
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-4B74ETJI.js";
|
|
167
167
|
import {
|
|
168
168
|
EDITOR_SESSION_STATE_VERSION,
|
|
169
169
|
assertEditorSessionState,
|
|
@@ -172,8 +172,8 @@ import {
|
|
|
172
172
|
editorSessionStateFromPersistedSnapshot,
|
|
173
173
|
persistedSnapshotFromEditorSessionState,
|
|
174
174
|
validateEditorSessionState
|
|
175
|
-
} from "./chunk-
|
|
176
|
-
import "./chunk-
|
|
175
|
+
} from "./chunk-TY4DIJO3.js";
|
|
176
|
+
import "./chunk-A74Y5NE4.js";
|
|
177
177
|
import {
|
|
178
178
|
decodePersistedSourcePackageBytes,
|
|
179
179
|
hasValidPersistedSourcePackageDigest
|
package/dist/io/docx-session.cjs
CHANGED
|
@@ -14149,6 +14149,7 @@ function resolveContentType(path, contentTypes) {
|
|
|
14149
14149
|
// src/io/ooxml/parse-bookmark-references.ts
|
|
14150
14150
|
var HYPERLINK_ANCHOR_RE = /<(?:\w+:)?hyperlink\b[^>]*\bw:anchor\s*=\s*"([^"]*)"/gi;
|
|
14151
14151
|
var INSTR_TEXT_RE = /<(?:\w+:)?instrText\b[^>]*>([\s\S]*?)<\/(?:\w+:)?instrText>/gi;
|
|
14152
|
+
var FLD_SIMPLE_INSTR_RE = /<(?:\w+:)?fldSimple\b[^>]*(?:\bw:instr|\binstr)\s*=\s*(["'])([\s\S]*?)\1/gi;
|
|
14152
14153
|
var TOC_FIELD_RE = /\bTOC\b/;
|
|
14153
14154
|
var REFLIKE_FIELD_RE = /\b(?:HYPERLINK|REF|PAGEREF|NOTEREF)\s+([A-Za-z0-9_:.\-]+)/g;
|
|
14154
14155
|
var DATA_BINDING_RE = /<(?:\w+:)?dataBinding\b/i;
|
|
@@ -14167,13 +14168,11 @@ function scanBookmarkReferences(documentXml, callerAllowlist = []) {
|
|
|
14167
14168
|
}
|
|
14168
14169
|
INSTR_TEXT_RE.lastIndex = 0;
|
|
14169
14170
|
while ((m = INSTR_TEXT_RE.exec(documentXml)) !== null) {
|
|
14170
|
-
|
|
14171
|
-
|
|
14172
|
-
|
|
14173
|
-
|
|
14174
|
-
|
|
14175
|
-
if (r[1]) retained.add(r[1]);
|
|
14176
|
-
}
|
|
14171
|
+
if (scanInstructionText(m[1] ?? "", retained)) retainAllToc = true;
|
|
14172
|
+
}
|
|
14173
|
+
FLD_SIMPLE_INSTR_RE.lastIndex = 0;
|
|
14174
|
+
while ((m = FLD_SIMPLE_INSTR_RE.exec(documentXml)) !== null) {
|
|
14175
|
+
if (scanInstructionText(m[2] ?? "", retained)) retainAllToc = true;
|
|
14177
14176
|
}
|
|
14178
14177
|
retainRevisionBoundedBookmarks(documentXml, retained);
|
|
14179
14178
|
return {
|
|
@@ -14182,6 +14181,15 @@ function scanBookmarkReferences(documentXml, callerAllowlist = []) {
|
|
|
14182
14181
|
retainAll
|
|
14183
14182
|
};
|
|
14184
14183
|
}
|
|
14184
|
+
function scanInstructionText(instrText, retained) {
|
|
14185
|
+
const hasTocField = TOC_FIELD_RE.test(instrText);
|
|
14186
|
+
REFLIKE_FIELD_RE.lastIndex = 0;
|
|
14187
|
+
let r;
|
|
14188
|
+
while ((r = REFLIKE_FIELD_RE.exec(instrText)) !== null) {
|
|
14189
|
+
if (r[1]) retained.add(r[1]);
|
|
14190
|
+
}
|
|
14191
|
+
return hasTocField;
|
|
14192
|
+
}
|
|
14185
14193
|
function retainRevisionBoundedBookmarks(documentXml, retained) {
|
|
14186
14194
|
const starts = /* @__PURE__ */ new Map();
|
|
14187
14195
|
BOOKMARK_START_RE.lastIndex = 0;
|
package/dist/io/docx-session.js
CHANGED
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
loadDocxSessionAsync,
|
|
3
3
|
normalizeImportedCommentThreads,
|
|
4
4
|
stripCommentMarkup
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-4B74ETJI.js";
|
|
6
|
+
import "../chunk-TY4DIJO3.js";
|
|
7
|
+
import "../chunk-A74Y5NE4.js";
|
|
8
8
|
import "../chunk-4BJ6K26R.js";
|
|
9
9
|
import "../chunk-FNWKE74J.js";
|
|
10
10
|
import "../chunk-OL2UEHRP.js";
|
package/dist/legal.cjs
CHANGED
|
@@ -1017,6 +1017,7 @@ var SCOPE_MARKER_BOOKMARK_PREFIX = "bw:scope:";
|
|
|
1017
1017
|
// src/io/ooxml/parse-bookmark-references.ts
|
|
1018
1018
|
var HYPERLINK_ANCHOR_RE = /<(?:\w+:)?hyperlink\b[^>]*\bw:anchor\s*=\s*"([^"]*)"/gi;
|
|
1019
1019
|
var INSTR_TEXT_RE = /<(?:\w+:)?instrText\b[^>]*>([\s\S]*?)<\/(?:\w+:)?instrText>/gi;
|
|
1020
|
+
var FLD_SIMPLE_INSTR_RE = /<(?:\w+:)?fldSimple\b[^>]*(?:\bw:instr|\binstr)\s*=\s*(["'])([\s\S]*?)\1/gi;
|
|
1020
1021
|
var TOC_FIELD_RE = /\bTOC\b/;
|
|
1021
1022
|
var REFLIKE_FIELD_RE = /\b(?:HYPERLINK|REF|PAGEREF|NOTEREF)\s+([A-Za-z0-9_:.\-]+)/g;
|
|
1022
1023
|
var DATA_BINDING_RE = /<(?:\w+:)?dataBinding\b/i;
|
|
@@ -1035,13 +1036,11 @@ function scanBookmarkReferences(documentXml, callerAllowlist = []) {
|
|
|
1035
1036
|
}
|
|
1036
1037
|
INSTR_TEXT_RE.lastIndex = 0;
|
|
1037
1038
|
while ((m = INSTR_TEXT_RE.exec(documentXml)) !== null) {
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
if (r[1]) retained.add(r[1]);
|
|
1044
|
-
}
|
|
1039
|
+
if (scanInstructionText(m[1] ?? "", retained)) retainAllToc = true;
|
|
1040
|
+
}
|
|
1041
|
+
FLD_SIMPLE_INSTR_RE.lastIndex = 0;
|
|
1042
|
+
while ((m = FLD_SIMPLE_INSTR_RE.exec(documentXml)) !== null) {
|
|
1043
|
+
if (scanInstructionText(m[2] ?? "", retained)) retainAllToc = true;
|
|
1045
1044
|
}
|
|
1046
1045
|
retainRevisionBoundedBookmarks(documentXml, retained);
|
|
1047
1046
|
return {
|
|
@@ -1050,6 +1049,15 @@ function scanBookmarkReferences(documentXml, callerAllowlist = []) {
|
|
|
1050
1049
|
retainAll
|
|
1051
1050
|
};
|
|
1052
1051
|
}
|
|
1052
|
+
function scanInstructionText(instrText, retained) {
|
|
1053
|
+
const hasTocField = TOC_FIELD_RE.test(instrText);
|
|
1054
|
+
REFLIKE_FIELD_RE.lastIndex = 0;
|
|
1055
|
+
let r;
|
|
1056
|
+
while ((r = REFLIKE_FIELD_RE.exec(instrText)) !== null) {
|
|
1057
|
+
if (r[1]) retained.add(r[1]);
|
|
1058
|
+
}
|
|
1059
|
+
return hasTocField;
|
|
1060
|
+
}
|
|
1053
1061
|
function retainRevisionBoundedBookmarks(documentXml, retained) {
|
|
1054
1062
|
const starts = /* @__PURE__ */ new Map();
|
|
1055
1063
|
BOOKMARK_START_RE.lastIndex = 0;
|
package/dist/legal.js
CHANGED
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
isHiddenBookmarkName,
|
|
5
5
|
parseBookmarksFromDocumentXml,
|
|
6
6
|
resolveWalkableRoot
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NAMAWCXN.js";
|
|
8
8
|
import {
|
|
9
9
|
extractComplexFieldsFromBodyXml,
|
|
10
10
|
parseFieldsFromParagraphXml,
|
|
11
11
|
parseMainDocumentXml
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-A74Y5NE4.js";
|
|
13
13
|
import "./chunk-FNWKE74J.js";
|
|
14
14
|
import "./chunk-IHE7YOAY.js";
|
|
15
15
|
import "./chunk-UTL65BUI.js";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
__fontFamiliesEqual,
|
|
5
5
|
createDocumentRuntime,
|
|
6
6
|
getThemeColorResolver
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-MPH4ZQS4.js";
|
|
8
8
|
import "../chunk-6EXNNAO6.js";
|
|
9
9
|
import "../chunk-M6XR534O.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-NAMAWCXN.js";
|
|
11
11
|
import "../chunk-BOHHIVQ2.js";
|
|
12
12
|
import "../chunk-Y4XZCMCS.js";
|
|
13
13
|
import "../chunk-RSYN6FTS.js";
|
|
@@ -15,15 +15,15 @@ import "../chunk-IR7QV2BX.js";
|
|
|
15
15
|
import "../chunk-LGWNN3L2.js";
|
|
16
16
|
import "../chunk-KOHQFZMM.js";
|
|
17
17
|
import "../chunk-N4VIXI2Z.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-Q76XPPTA.js";
|
|
19
19
|
import "../chunk-ZRHLLPSJ.js";
|
|
20
20
|
import "../chunk-KFCQYZXR.js";
|
|
21
21
|
import "../chunk-QIO6V46H.js";
|
|
22
22
|
import "../chunk-H6IL5ABU.js";
|
|
23
23
|
import "../chunk-CX42VC67.js";
|
|
24
24
|
import "../chunk-OYGMRRR7.js";
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-TY4DIJO3.js";
|
|
26
|
+
import "../chunk-A74Y5NE4.js";
|
|
27
27
|
import "../chunk-FNWKE74J.js";
|
|
28
28
|
import "../chunk-EB6M3GE6.js";
|
|
29
29
|
import "../chunk-IHE7YOAY.js";
|
package/dist/session.cjs
CHANGED
|
@@ -14825,6 +14825,7 @@ function resolveContentType(path, contentTypes) {
|
|
|
14825
14825
|
// src/io/ooxml/parse-bookmark-references.ts
|
|
14826
14826
|
var HYPERLINK_ANCHOR_RE = /<(?:\w+:)?hyperlink\b[^>]*\bw:anchor\s*=\s*"([^"]*)"/gi;
|
|
14827
14827
|
var INSTR_TEXT_RE = /<(?:\w+:)?instrText\b[^>]*>([\s\S]*?)<\/(?:\w+:)?instrText>/gi;
|
|
14828
|
+
var FLD_SIMPLE_INSTR_RE = /<(?:\w+:)?fldSimple\b[^>]*(?:\bw:instr|\binstr)\s*=\s*(["'])([\s\S]*?)\1/gi;
|
|
14828
14829
|
var TOC_FIELD_RE = /\bTOC\b/;
|
|
14829
14830
|
var REFLIKE_FIELD_RE = /\b(?:HYPERLINK|REF|PAGEREF|NOTEREF)\s+([A-Za-z0-9_:.\-]+)/g;
|
|
14830
14831
|
var DATA_BINDING_RE = /<(?:\w+:)?dataBinding\b/i;
|
|
@@ -14843,13 +14844,11 @@ function scanBookmarkReferences(documentXml, callerAllowlist = []) {
|
|
|
14843
14844
|
}
|
|
14844
14845
|
INSTR_TEXT_RE.lastIndex = 0;
|
|
14845
14846
|
while ((m = INSTR_TEXT_RE.exec(documentXml)) !== null) {
|
|
14846
|
-
|
|
14847
|
-
|
|
14848
|
-
|
|
14849
|
-
|
|
14850
|
-
|
|
14851
|
-
if (r[1]) retained.add(r[1]);
|
|
14852
|
-
}
|
|
14847
|
+
if (scanInstructionText(m[1] ?? "", retained)) retainAllToc = true;
|
|
14848
|
+
}
|
|
14849
|
+
FLD_SIMPLE_INSTR_RE.lastIndex = 0;
|
|
14850
|
+
while ((m = FLD_SIMPLE_INSTR_RE.exec(documentXml)) !== null) {
|
|
14851
|
+
if (scanInstructionText(m[2] ?? "", retained)) retainAllToc = true;
|
|
14853
14852
|
}
|
|
14854
14853
|
retainRevisionBoundedBookmarks(documentXml, retained);
|
|
14855
14854
|
return {
|
|
@@ -14858,6 +14857,15 @@ function scanBookmarkReferences(documentXml, callerAllowlist = []) {
|
|
|
14858
14857
|
retainAll
|
|
14859
14858
|
};
|
|
14860
14859
|
}
|
|
14860
|
+
function scanInstructionText(instrText, retained) {
|
|
14861
|
+
const hasTocField = TOC_FIELD_RE.test(instrText);
|
|
14862
|
+
REFLIKE_FIELD_RE.lastIndex = 0;
|
|
14863
|
+
let r;
|
|
14864
|
+
while ((r = REFLIKE_FIELD_RE.exec(instrText)) !== null) {
|
|
14865
|
+
if (r[1]) retained.add(r[1]);
|
|
14866
|
+
}
|
|
14867
|
+
return hasTocField;
|
|
14868
|
+
}
|
|
14861
14869
|
function retainRevisionBoundedBookmarks(documentXml, retained) {
|
|
14862
14870
|
const starts = /* @__PURE__ */ new Map();
|
|
14863
14871
|
BOOKMARK_START_RE.lastIndex = 0;
|
package/dist/session.js
CHANGED
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
SessionNotOpenError,
|
|
4
4
|
SessionNotWiredError,
|
|
5
5
|
isReopenBarrier
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7PC6XUNO.js";
|
|
7
7
|
import {
|
|
8
8
|
loadDocxSessionAsync
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-4B74ETJI.js";
|
|
10
|
+
import "./chunk-TY4DIJO3.js";
|
|
11
|
+
import "./chunk-A74Y5NE4.js";
|
|
12
12
|
import "./chunk-4BJ6K26R.js";
|
|
13
13
|
import "./chunk-FNWKE74J.js";
|
|
14
14
|
import "./chunk-OL2UEHRP.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beyondwork/docx-react-component",
|
|
3
3
|
"publisher": "beyondwork",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.124",
|
|
5
5
|
"description": "Embeddable React Word (docx) editor with review, comments, tracked changes, and round-trip OOXML fidelity.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
"ship:preview:audit": "node scripts/ship-preview.mjs --audit",
|
|
215
215
|
"ship:preview:prune": "node scripts/ship-preview.mjs --prune",
|
|
216
216
|
"test": "bash scripts/run-workspace-tests.sh",
|
|
217
|
-
"test:repo": "
|
|
217
|
+
"test:repo": "node scripts/run-ci-repo-suite.mjs standard",
|
|
218
218
|
"test:repo:ship": "node scripts/ci-check-layout-engine-version.mjs && node scripts/ci-check-chrome-composition.mjs && node scripts/ci-check-headless-example-imports.mjs && node scripts/ci-check-chrome-smoke-isolation.mjs && node scripts/ci-check-no-legacy-presentation.mjs && node scripts/ci-check-layer-11-boundary.mjs && node scripts/run-repo-tests.mjs ship",
|
|
219
219
|
"test:repo:full": "node scripts/run-repo-tests.mjs full",
|
|
220
220
|
"test:repo:all": "node scripts/run-repo-tests.mjs standard",
|