@beyondwork/docx-react-component 1.0.128 → 1.0.129
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 +215 -61
- package/dist/api/public-types.d.cts +2 -2
- package/dist/api/public-types.d.ts +2 -2
- package/dist/api/public-types.js +2 -2
- package/dist/api/v3.cjs +896 -71
- package/dist/api/v3.d.cts +3 -3
- package/dist/api/v3.d.ts +3 -3
- package/dist/api/v3.js +8 -8
- package/dist/{canonical-document-CXCFCbAz.d.cts → canonical-document-BMtONpgf.d.cts} +6 -0
- package/dist/{canonical-document-CXCFCbAz.d.ts → canonical-document-BMtONpgf.d.ts} +6 -0
- package/dist/{chunk-KV435YXO.js → chunk-5DSHUYSY.js} +1 -1
- package/dist/{chunk-TQDQU2E3.js → chunk-63FYIGCT.js} +2 -2
- package/dist/{chunk-ZDOAUP3V.js → chunk-DDN2AIGE.js} +1 -1
- package/dist/{chunk-6F5QW44A.js → chunk-DJU2W4E4.js} +2 -2
- package/dist/{chunk-4EENH4FG.js → chunk-EZKJXIPH.js} +1 -1
- package/dist/{chunk-CXSYRB37.js → chunk-HUIHBBAQ.js} +166 -49
- package/dist/{chunk-ESJ2MES5.js → chunk-JJGVE5J7.js} +1 -1
- package/dist/{chunk-LZVBNDGU.js → chunk-LJH64PV3.js} +3 -3
- package/dist/{chunk-MWSBGJQO.js → chunk-OTQIW2TC.js} +2 -2
- package/dist/{chunk-2QL5DAKF.js → chunk-PGKUJZXV.js} +3 -3
- package/dist/{chunk-6EROGFUF.js → chunk-PRAZBHNF.js} +441 -128
- package/dist/{chunk-4YJVRIUB.js → chunk-Q3QYGKFE.js} +51 -8
- package/dist/{chunk-YHZHPXDB.js → chunk-RMRTQGW3.js} +50 -13
- package/dist/{chunk-XRACP43Q.js → chunk-SKPTKQHF.js} +351 -13
- package/dist/{chunk-D5HYZQTG.js → chunk-VNLDQJ47.js} +1 -1
- package/dist/{chunk-BYSRJ4FE.js → chunk-W34X3KBR.js} +1 -1
- package/dist/{chunk-V6XVZFFH.js → chunk-XMHSGPLN.js} +2 -2
- package/dist/{chunk-LCYYR57Q.js → chunk-XQCAMKIQ.js} +421 -6
- package/dist/{chunk-YD2JE54B.js → chunk-YZDZ4FGR.js} +1 -1
- package/dist/compare.d.cts +1 -1
- package/dist/compare.d.ts +1 -1
- package/dist/core/commands/formatting-commands.d.cts +2 -2
- package/dist/core/commands/formatting-commands.d.ts +2 -2
- package/dist/core/commands/image-commands.cjs +166 -49
- package/dist/core/commands/image-commands.d.cts +2 -2
- package/dist/core/commands/image-commands.d.ts +2 -2
- package/dist/core/commands/image-commands.js +4 -4
- package/dist/core/commands/section-layout-commands.d.cts +2 -2
- package/dist/core/commands/section-layout-commands.d.ts +2 -2
- package/dist/core/commands/style-commands.d.cts +2 -2
- package/dist/core/commands/style-commands.d.ts +2 -2
- package/dist/core/commands/table-structure-commands.cjs +166 -49
- package/dist/core/commands/table-structure-commands.d.cts +2 -2
- package/dist/core/commands/table-structure-commands.d.ts +2 -2
- package/dist/core/commands/table-structure-commands.js +3 -3
- package/dist/core/commands/text-commands.cjs +166 -49
- package/dist/core/commands/text-commands.d.cts +2 -2
- package/dist/core/commands/text-commands.d.ts +2 -2
- package/dist/core/commands/text-commands.js +4 -4
- package/dist/core/selection/mapping.d.cts +2 -2
- package/dist/core/selection/mapping.d.ts +2 -2
- package/dist/core/state/editor-state.d.cts +2 -2
- package/dist/core/state/editor-state.d.ts +2 -2
- package/dist/index.cjs +1486 -211
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +46 -22
- package/dist/io/docx-session.cjs +51 -8
- package/dist/io/docx-session.d.cts +4 -4
- package/dist/io/docx-session.d.ts +4 -4
- package/dist/io/docx-session.js +3 -3
- package/dist/legal.d.cts +1 -1
- package/dist/legal.d.ts +1 -1
- package/dist/legal.js +2 -2
- package/dist/{loader-19ct2Be0.d.ts → loader-4qsw4eIU.d.ts} +3 -3
- package/dist/{loader-CoXQ2wGd.d.cts → loader-B8TKhmQi.d.cts} +3 -3
- package/dist/{public-types-B-CskQen.d.cts → public-types-B5CRoR6f.d.cts} +128 -1
- package/dist/{public-types-7KZsNGE2.d.ts → public-types-p9b8rfy8.d.ts} +128 -1
- package/dist/public-types.cjs +215 -61
- package/dist/public-types.d.cts +2 -2
- package/dist/public-types.d.ts +2 -2
- package/dist/public-types.js +2 -2
- package/dist/runtime/collab.d.cts +3 -3
- package/dist/runtime/collab.d.ts +3 -3
- package/dist/runtime/document-runtime.cjs +980 -185
- package/dist/runtime/document-runtime.d.cts +2 -2
- package/dist/runtime/document-runtime.d.ts +2 -2
- package/dist/runtime/document-runtime.js +13 -13
- package/dist/{session-B5015J4v.d.cts → session-BnGIjaex.d.cts} +3 -3
- package/dist/{session-C2i8-d6v.d.ts → session-vEYKf-w3.d.ts} +3 -3
- package/dist/session.cjs +51 -8
- package/dist/session.d.cts +5 -5
- package/dist/session.d.ts +5 -5
- package/dist/session.js +4 -4
- package/dist/tailwind.cjs +215 -61
- package/dist/tailwind.d.cts +2 -2
- package/dist/tailwind.d.ts +2 -2
- package/dist/tailwind.js +5 -5
- package/dist/{types-DNhN0WeN.d.cts → types-BLuvZ6cQ.d.cts} +2 -2
- package/dist/{types-yvrQuGX9.d.ts → types-Dutlyj0T.d.ts} +2 -2
- package/dist/ui-tailwind/editor-surface/search-plugin.d.cts +3 -3
- package/dist/ui-tailwind/editor-surface/search-plugin.d.ts +3 -3
- package/dist/ui-tailwind/editor-surface/search-plugin.js +3 -3
- package/dist/ui-tailwind.cjs +215 -61
- package/dist/ui-tailwind.d.cts +3 -3
- package/dist/ui-tailwind.d.ts +3 -3
- package/dist/ui-tailwind.js +5 -5
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { gz as ActiveStoryTextCommand, gA as CommandAppliedMeta, gB as CreateDocumentRuntimeOptions, gC as DocumentRuntime, gD as DocumentRuntimeEvent, gE as RemoteCommandEnvelope, gF as Unsubscribe, gG as __buildTocInlineNodes, gH as __collectFontLoaderInputUncached, gI as __fontFamiliesEqual, gJ as createDocumentRuntime, gK as getThemeColorResolver } from '../public-types-
|
|
2
|
-
import '../canonical-document-
|
|
1
|
+
export { gz as ActiveStoryTextCommand, gA as CommandAppliedMeta, gB as CreateDocumentRuntimeOptions, gC as DocumentRuntime, gD as DocumentRuntimeEvent, gE as RemoteCommandEnvelope, gF as Unsubscribe, gG as __buildTocInlineNodes, gH as __collectFontLoaderInputUncached, gI as __fontFamiliesEqual, gJ as createDocumentRuntime, gK as getThemeColorResolver } from '../public-types-B5CRoR6f.cjs';
|
|
2
|
+
import '../canonical-document-BMtONpgf.cjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'yjs';
|
|
5
5
|
import 'y-protocols/awareness';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { gz as ActiveStoryTextCommand, gA as CommandAppliedMeta, gB as CreateDocumentRuntimeOptions, gC as DocumentRuntime, gD as DocumentRuntimeEvent, gE as RemoteCommandEnvelope, gF as Unsubscribe, gG as __buildTocInlineNodes, gH as __collectFontLoaderInputUncached, gI as __fontFamiliesEqual, gJ as createDocumentRuntime, gK as getThemeColorResolver } from '../public-types-
|
|
2
|
-
import '../canonical-document-
|
|
1
|
+
export { gz as ActiveStoryTextCommand, gA as CommandAppliedMeta, gB as CreateDocumentRuntimeOptions, gC as DocumentRuntime, gD as DocumentRuntimeEvent, gE as RemoteCommandEnvelope, gF as Unsubscribe, gG as __buildTocInlineNodes, gH as __collectFontLoaderInputUncached, gI as __fontFamiliesEqual, gJ as createDocumentRuntime, gK as getThemeColorResolver } from '../public-types-p9b8rfy8.js';
|
|
2
|
+
import '../canonical-document-BMtONpgf.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'yjs';
|
|
5
5
|
import 'y-protocols/awareness';
|
|
@@ -4,26 +4,26 @@ import {
|
|
|
4
4
|
__fontFamiliesEqual,
|
|
5
5
|
createDocumentRuntime,
|
|
6
6
|
getThemeColorResolver
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-PRAZBHNF.js";
|
|
8
8
|
import "../chunk-6EXNNAO6.js";
|
|
9
9
|
import "../chunk-M6XR534O.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-YZDZ4FGR.js";
|
|
11
|
+
import "../chunk-LJH64PV3.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-DJU2W4E4.js";
|
|
14
|
+
import "../chunk-5DSHUYSY.js";
|
|
15
|
+
import "../chunk-DDN2AIGE.js";
|
|
16
|
+
import "../chunk-W34X3KBR.js";
|
|
17
|
+
import "../chunk-OTQIW2TC.js";
|
|
18
|
+
import "../chunk-SKPTKQHF.js";
|
|
19
|
+
import "../chunk-RMRTQGW3.js";
|
|
20
20
|
import "../chunk-KFCQYZXR.js";
|
|
21
21
|
import "../chunk-QIO6V46H.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-HUIHBBAQ.js";
|
|
23
23
|
import "../chunk-CX42VC67.js";
|
|
24
24
|
import "../chunk-OYGMRRR7.js";
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-JJGVE5J7.js";
|
|
26
|
+
import "../chunk-Q3QYGKFE.js";
|
|
27
27
|
import "../chunk-5DGKFNQT.js";
|
|
28
28
|
import "../chunk-EB6M3GE6.js";
|
|
29
29
|
import "../chunk-IHE7YOAY.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CanonicalDocument } from './canonical-document-
|
|
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-
|
|
1
|
+
import { C as CanonicalDocument } from './canonical-document-BMtONpgf.cjs';
|
|
2
|
+
import { a as EditorSessionState, c as ExportResult, P as PersistedEditorSnapshot } from './public-types-B5CRoR6f.cjs';
|
|
3
|
+
import { O as OpenOptions, b as OpenResult, a as ExportOptions, R as ReopenBarrier, V as ValidateOptions, d as ValidationReport } from './types-BLuvZ6cQ.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* `DocxSession` — the Layer-01 package/session public entry class.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CanonicalDocument } from './canonical-document-
|
|
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-
|
|
1
|
+
import { C as CanonicalDocument } from './canonical-document-BMtONpgf.js';
|
|
2
|
+
import { a as EditorSessionState, c as ExportResult, P as PersistedEditorSnapshot } from './public-types-p9b8rfy8.js';
|
|
3
|
+
import { O as OpenOptions, b as OpenResult, a as ExportOptions, R as ReopenBarrier, V as ValidateOptions, d as ValidationReport } from './types-Dutlyj0T.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* `DocxSession` — the Layer-01 package/session public entry class.
|
package/dist/session.cjs
CHANGED
|
@@ -15268,7 +15268,7 @@ function parseNumberingXml(xml, context) {
|
|
|
15268
15268
|
abstractDefinitions[abstractNumberingId] = {
|
|
15269
15269
|
abstractNumberingId,
|
|
15270
15270
|
...context?.partPath !== void 0 ? { sourceRef: createNumberingSourceRef(context.partPath, "abstractNum", rawId, childXmlPath) } : {},
|
|
15271
|
-
levels: readLevels(child),
|
|
15271
|
+
levels: readLevels(child, context, childXmlPath, rawId),
|
|
15272
15272
|
...nsid ? { nsid } : {},
|
|
15273
15273
|
...multiLevelType ? { multiLevelType } : {},
|
|
15274
15274
|
...tplc ? { tplc } : {},
|
|
@@ -15289,7 +15289,7 @@ function parseNumberingXml(xml, context) {
|
|
|
15289
15289
|
numberingInstanceId,
|
|
15290
15290
|
...context?.partPath !== void 0 ? { sourceRef: createNumberingSourceRef(context.partPath, "num", rawId, childXmlPath) } : {},
|
|
15291
15291
|
abstractNumberingId: toCanonicalAbstractNumberingId(rawAbstractId),
|
|
15292
|
-
overrides: readOverrides(child)
|
|
15292
|
+
overrides: readOverrides(child, context, childXmlPath, rawId)
|
|
15293
15293
|
};
|
|
15294
15294
|
break;
|
|
15295
15295
|
}
|
|
@@ -15310,6 +15310,16 @@ function createNumberingSourceRef(partPath, element, rawId, xmlPath) {
|
|
|
15310
15310
|
...xmlPath !== void 0 ? { xmlPath } : {}
|
|
15311
15311
|
};
|
|
15312
15312
|
}
|
|
15313
|
+
function createNumberingChildSourceRef(partPath, element, sourceIdSuffix, xmlPath) {
|
|
15314
|
+
if (partPath === void 0) return void 0;
|
|
15315
|
+
return {
|
|
15316
|
+
sourceId: `part:${partPath}#${sourceIdSuffix}`,
|
|
15317
|
+
partPath,
|
|
15318
|
+
storyKind: "numbering",
|
|
15319
|
+
element,
|
|
15320
|
+
...xmlPath !== void 0 ? { xmlPath } : {}
|
|
15321
|
+
};
|
|
15322
|
+
}
|
|
15313
15323
|
function readNumPicBullet(node, numPicBulletId, context, xmlPath) {
|
|
15314
15324
|
let widthEmu;
|
|
15315
15325
|
let heightEmu;
|
|
@@ -15386,18 +15396,29 @@ function toCanonicalAbstractNumberingId(value) {
|
|
|
15386
15396
|
function toCanonicalNumberingInstanceId(value) {
|
|
15387
15397
|
return value.startsWith("num:") ? value : `num:${value}`;
|
|
15388
15398
|
}
|
|
15389
|
-
function readLevels(abstractNode) {
|
|
15399
|
+
function readLevels(abstractNode, context, abstractXmlPath, rawAbstractId) {
|
|
15390
15400
|
const levels = [];
|
|
15401
|
+
let levelOrdinal = 0;
|
|
15391
15402
|
for (const child of abstractNode.children) {
|
|
15392
15403
|
if (child.type !== "element" || localName(child.name) !== "lvl") {
|
|
15393
15404
|
continue;
|
|
15394
15405
|
}
|
|
15406
|
+
levelOrdinal += 1;
|
|
15395
15407
|
const rawLevel = readStringAttr(child, "w:ilvl");
|
|
15396
15408
|
const level = rawLevel === void 0 ? void 0 : parseInteger(rawLevel);
|
|
15397
15409
|
if (level === void 0) {
|
|
15398
15410
|
continue;
|
|
15399
15411
|
}
|
|
15400
|
-
const definition = readLevelDefinition(
|
|
15412
|
+
const definition = readLevelDefinition(
|
|
15413
|
+
child,
|
|
15414
|
+
level,
|
|
15415
|
+
createNumberingChildSourceRef(
|
|
15416
|
+
context?.partPath,
|
|
15417
|
+
"lvl",
|
|
15418
|
+
`abstractNum:${rawAbstractId}:lvl:${level}`,
|
|
15419
|
+
`${abstractXmlPath}/lvl[${levelOrdinal}]`
|
|
15420
|
+
)
|
|
15421
|
+
);
|
|
15401
15422
|
if (!definition) {
|
|
15402
15423
|
continue;
|
|
15403
15424
|
}
|
|
@@ -15405,12 +15426,14 @@ function readLevels(abstractNode) {
|
|
|
15405
15426
|
}
|
|
15406
15427
|
return levels.sort((left, right) => left.level - right.level);
|
|
15407
15428
|
}
|
|
15408
|
-
function readOverrides(numNode) {
|
|
15429
|
+
function readOverrides(numNode, context, numXmlPath, rawNumId) {
|
|
15409
15430
|
const overrides = [];
|
|
15431
|
+
let overrideOrdinal = 0;
|
|
15410
15432
|
for (const child of numNode.children) {
|
|
15411
15433
|
if (child.type !== "element" || localName(child.name) !== "lvlOverride") {
|
|
15412
15434
|
continue;
|
|
15413
15435
|
}
|
|
15436
|
+
overrideOrdinal += 1;
|
|
15414
15437
|
const rawLevel = readStringAttr(child, "w:ilvl");
|
|
15415
15438
|
const level = rawLevel === void 0 ? void 0 : parseInteger(rawLevel);
|
|
15416
15439
|
if (level === void 0) {
|
|
@@ -15420,8 +15443,26 @@ function readOverrides(numNode) {
|
|
|
15420
15443
|
const rawStart = startOverrideNode ? readStringAttr(startOverrideNode, "w:val") : void 0;
|
|
15421
15444
|
const startAt = rawStart === void 0 ? void 0 : parseInteger(rawStart);
|
|
15422
15445
|
const levelDefinitionNode = findChildElementOptional2(child, "lvl");
|
|
15423
|
-
const
|
|
15446
|
+
const overrideXmlPath = `${numXmlPath}/lvlOverride[${overrideOrdinal}]`;
|
|
15447
|
+
const levelDefinition = levelDefinitionNode ? readLevelOverrideDefinition(
|
|
15448
|
+
levelDefinitionNode,
|
|
15449
|
+
level,
|
|
15450
|
+
createNumberingChildSourceRef(
|
|
15451
|
+
context?.partPath,
|
|
15452
|
+
"lvl",
|
|
15453
|
+
`num:${rawNumId}:lvlOverride:${level}:lvl`,
|
|
15454
|
+
`${overrideXmlPath}/lvl[1]`
|
|
15455
|
+
)
|
|
15456
|
+
) : void 0;
|
|
15424
15457
|
overrides.push({
|
|
15458
|
+
...context?.partPath !== void 0 ? {
|
|
15459
|
+
sourceRef: createNumberingChildSourceRef(
|
|
15460
|
+
context.partPath,
|
|
15461
|
+
"lvlOverride",
|
|
15462
|
+
`num:${rawNumId}:lvlOverride:${level}`,
|
|
15463
|
+
overrideXmlPath
|
|
15464
|
+
)
|
|
15465
|
+
} : {},
|
|
15425
15466
|
level,
|
|
15426
15467
|
...startAt !== void 0 ? { startAt } : {},
|
|
15427
15468
|
...levelDefinition ? { levelDefinition } : {}
|
|
@@ -15429,7 +15470,7 @@ function readOverrides(numNode) {
|
|
|
15429
15470
|
}
|
|
15430
15471
|
return overrides.sort((left, right) => left.level - right.level);
|
|
15431
15472
|
}
|
|
15432
|
-
function readLevelDefinition(levelNode, fallbackLevel) {
|
|
15473
|
+
function readLevelDefinition(levelNode, fallbackLevel, sourceRef) {
|
|
15433
15474
|
const rawLevel = readStringAttr(levelNode, "w:ilvl");
|
|
15434
15475
|
const level = rawLevel === void 0 ? fallbackLevel : parseInteger(rawLevel);
|
|
15435
15476
|
if (level === void 0) {
|
|
@@ -15459,6 +15500,7 @@ function readLevelDefinition(levelNode, fallbackLevel) {
|
|
|
15459
15500
|
const lvlPicBulletNode = findChildElementOptional2(levelNode, "lvlPicBulletId");
|
|
15460
15501
|
const picBulletId = lvlPicBulletNode ? readStringAttr(lvlPicBulletNode, "w:val") : void 0;
|
|
15461
15502
|
return {
|
|
15503
|
+
...sourceRef ? { sourceRef } : {},
|
|
15462
15504
|
level,
|
|
15463
15505
|
format,
|
|
15464
15506
|
text,
|
|
@@ -15472,7 +15514,7 @@ function readLevelDefinition(levelNode, fallbackLevel) {
|
|
|
15472
15514
|
...picBulletId !== void 0 ? { picBulletId } : {}
|
|
15473
15515
|
};
|
|
15474
15516
|
}
|
|
15475
|
-
function readLevelOverrideDefinition(levelNode, fallbackLevel) {
|
|
15517
|
+
function readLevelOverrideDefinition(levelNode, fallbackLevel, sourceRef) {
|
|
15476
15518
|
const rawLevel = readStringAttr(levelNode, "w:ilvl");
|
|
15477
15519
|
const level = rawLevel === void 0 ? fallbackLevel : parseInteger(rawLevel);
|
|
15478
15520
|
if (level === void 0) {
|
|
@@ -15506,6 +15548,7 @@ function readLevelOverrideDefinition(levelNode, fallbackLevel) {
|
|
|
15506
15548
|
return void 0;
|
|
15507
15549
|
}
|
|
15508
15550
|
return {
|
|
15551
|
+
...sourceRef ? { sourceRef } : {},
|
|
15509
15552
|
level,
|
|
15510
15553
|
...startAt !== void 0 ? { startAt } : {},
|
|
15511
15554
|
...format !== void 0 ? { format } : {},
|
package/dist/session.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
5
|
-
import './canonical-document-
|
|
1
|
+
export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-BnGIjaex.cjs';
|
|
2
|
+
export { L as LoadedDocxEditorSession, l as loadDocxSessionAsync } from './loader-B8TKhmQi.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-BLuvZ6cQ.cjs';
|
|
4
|
+
export { E as EditorHostAdapter, a as EditorSessionState, b as ExportDocxOptions, c as ExportResult, L as LoadStage, P as PersistedEditorSnapshot } from './public-types-B5CRoR6f.cjs';
|
|
5
|
+
import './canonical-document-BMtONpgf.cjs';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'yjs';
|
|
8
8
|
import 'y-protocols/awareness';
|
package/dist/session.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
5
|
-
import './canonical-document-
|
|
1
|
+
export { D as DocxSession, S as SessionNotOpenError, a as SessionNotWiredError } from './session-vEYKf-w3.js';
|
|
2
|
+
export { L as LoadedDocxEditorSession, l as loadDocxSessionAsync } from './loader-4qsw4eIU.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-Dutlyj0T.js';
|
|
4
|
+
export { E as EditorHostAdapter, a as EditorSessionState, b as ExportDocxOptions, c as ExportResult, L as LoadStage, P as PersistedEditorSnapshot } from './public-types-p9b8rfy8.js';
|
|
5
|
+
import './canonical-document-BMtONpgf.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'yjs';
|
|
8
8
|
import 'y-protocols/awareness';
|
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-63FYIGCT.js";
|
|
7
7
|
import {
|
|
8
8
|
loadDocxSessionAsync
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-XMHSGPLN.js";
|
|
10
|
+
import "./chunk-JJGVE5J7.js";
|
|
11
|
+
import "./chunk-Q3QYGKFE.js";
|
|
12
12
|
import "./chunk-4BJ6K26R.js";
|
|
13
13
|
import "./chunk-5DGKFNQT.js";
|
|
14
14
|
import "./chunk-OL2UEHRP.js";
|
package/dist/tailwind.cjs
CHANGED
|
@@ -10572,12 +10572,13 @@ function getLevelStartAt(level, levelDefinitions) {
|
|
|
10572
10572
|
return levelDefinitions.get(level)?.startAt ?? DEFAULT_NUMBERING_START_AT;
|
|
10573
10573
|
}
|
|
10574
10574
|
function getNumberingFormatPosture(format, value) {
|
|
10575
|
-
|
|
10575
|
+
const registryEntry = getNumberingFormatRegistryEntry(format);
|
|
10576
|
+
if (!registryEntry || registryEntry.renderSupport === "approximated") {
|
|
10576
10577
|
return {
|
|
10577
10578
|
status: "approximated",
|
|
10578
10579
|
requestedFormat: format,
|
|
10579
10580
|
renderedFormat: "decimal",
|
|
10580
|
-
reason: "unsupported-numbering-format-decimal-fallback"
|
|
10581
|
+
reason: registryEntry?.fallbackReason ?? "unsupported-numbering-format-decimal-fallback"
|
|
10581
10582
|
};
|
|
10582
10583
|
}
|
|
10583
10584
|
if (value !== void 0 && ((format === "upperRoman" || format === "lowerRoman") && (value <= 0 || value >= 4e3) || (format === "cardinalText" || format === "ordinalText") && (!Number.isInteger(value) || value < 1 || value > 999) || (format === "upperLetter" || format === "lowerLetter" || format === "chicago") && value < 1)) {
|
|
@@ -10608,56 +10609,148 @@ function renderLevelText(text, counters, levelDefinitions) {
|
|
|
10608
10609
|
});
|
|
10609
10610
|
return rendered.trim().length > 0 ? rendered : null;
|
|
10610
10611
|
}
|
|
10611
|
-
var SUPPORTED_NUMBERING_FORMATS = /* @__PURE__ */ new Set([
|
|
10612
|
-
"decimal",
|
|
10613
|
-
"decimalZero",
|
|
10614
|
-
"upperLetter",
|
|
10615
|
-
"lowerLetter",
|
|
10616
|
-
"upperRoman",
|
|
10617
|
-
"lowerRoman",
|
|
10618
|
-
"hex",
|
|
10619
|
-
"ordinal",
|
|
10620
|
-
"cardinalText",
|
|
10621
|
-
"ordinalText",
|
|
10622
|
-
"chicago",
|
|
10623
|
-
"bullet",
|
|
10624
|
-
"none"
|
|
10625
|
-
]);
|
|
10626
10612
|
function isSupportedNumberingFormat(format) {
|
|
10627
|
-
return
|
|
10613
|
+
return getNumberingFormatRegistryEntry(format)?.renderSupport === "supported";
|
|
10614
|
+
}
|
|
10615
|
+
function getNumberingFormatRegistryEntry(format) {
|
|
10616
|
+
return NUMBERING_FORMAT_REGISTRY.get(format);
|
|
10628
10617
|
}
|
|
10629
10618
|
function formatCounter(value, format) {
|
|
10630
|
-
|
|
10631
|
-
case "decimal":
|
|
10632
|
-
return String(value);
|
|
10633
|
-
case "decimalZero":
|
|
10634
|
-
return String(value).padStart(2, "0");
|
|
10635
|
-
case "upperLetter":
|
|
10636
|
-
return toAlphabetic2(value).toUpperCase();
|
|
10637
|
-
case "lowerLetter":
|
|
10638
|
-
return toAlphabetic2(value).toLowerCase();
|
|
10639
|
-
case "upperRoman":
|
|
10640
|
-
return toRoman2(value).toUpperCase();
|
|
10641
|
-
case "lowerRoman":
|
|
10642
|
-
return toRoman2(value).toLowerCase();
|
|
10643
|
-
case "hex":
|
|
10644
|
-
return value >= 0 ? value.toString(16).toUpperCase() : String(value);
|
|
10645
|
-
case "ordinal":
|
|
10646
|
-
return toOrdinal2(value);
|
|
10647
|
-
case "cardinalText":
|
|
10648
|
-
return toCardinalText2(value);
|
|
10649
|
-
case "ordinalText":
|
|
10650
|
-
return toOrdinalText2(value);
|
|
10651
|
-
case "chicago":
|
|
10652
|
-
return toChicago2(value);
|
|
10653
|
-
case "bullet":
|
|
10654
|
-
return "";
|
|
10655
|
-
case "none":
|
|
10656
|
-
return "";
|
|
10657
|
-
default:
|
|
10658
|
-
return String(value);
|
|
10659
|
-
}
|
|
10619
|
+
return getNumberingFormatRegistryEntry(format)?.render(value) ?? String(value);
|
|
10660
10620
|
}
|
|
10621
|
+
var exactNumberingFormatEntries = [
|
|
10622
|
+
{
|
|
10623
|
+
format: "decimal",
|
|
10624
|
+
renderSupport: "supported",
|
|
10625
|
+
renderedFormat: "decimal",
|
|
10626
|
+
supportsMutation: true,
|
|
10627
|
+
render: (value) => String(value)
|
|
10628
|
+
},
|
|
10629
|
+
{
|
|
10630
|
+
format: "decimalZero",
|
|
10631
|
+
renderSupport: "supported",
|
|
10632
|
+
renderedFormat: "decimalZero",
|
|
10633
|
+
supportsMutation: true,
|
|
10634
|
+
render: (value) => String(value).padStart(2, "0")
|
|
10635
|
+
},
|
|
10636
|
+
{
|
|
10637
|
+
format: "upperLetter",
|
|
10638
|
+
renderSupport: "supported",
|
|
10639
|
+
renderedFormat: "upperLetter",
|
|
10640
|
+
supportsMutation: true,
|
|
10641
|
+
render: (value) => toAlphabetic2(value).toUpperCase()
|
|
10642
|
+
},
|
|
10643
|
+
{
|
|
10644
|
+
format: "lowerLetter",
|
|
10645
|
+
renderSupport: "supported",
|
|
10646
|
+
renderedFormat: "lowerLetter",
|
|
10647
|
+
supportsMutation: true,
|
|
10648
|
+
render: (value) => toAlphabetic2(value).toLowerCase()
|
|
10649
|
+
},
|
|
10650
|
+
{
|
|
10651
|
+
format: "upperRoman",
|
|
10652
|
+
renderSupport: "supported",
|
|
10653
|
+
renderedFormat: "upperRoman",
|
|
10654
|
+
supportsMutation: true,
|
|
10655
|
+
render: (value) => toRoman2(value).toUpperCase()
|
|
10656
|
+
},
|
|
10657
|
+
{
|
|
10658
|
+
format: "lowerRoman",
|
|
10659
|
+
renderSupport: "supported",
|
|
10660
|
+
renderedFormat: "lowerRoman",
|
|
10661
|
+
supportsMutation: true,
|
|
10662
|
+
render: (value) => toRoman2(value).toLowerCase()
|
|
10663
|
+
},
|
|
10664
|
+
{
|
|
10665
|
+
format: "hex",
|
|
10666
|
+
renderSupport: "supported",
|
|
10667
|
+
renderedFormat: "hex",
|
|
10668
|
+
supportsMutation: true,
|
|
10669
|
+
render: (value) => value >= 0 ? value.toString(16).toUpperCase() : String(value)
|
|
10670
|
+
},
|
|
10671
|
+
{
|
|
10672
|
+
format: "ordinal",
|
|
10673
|
+
renderSupport: "supported",
|
|
10674
|
+
renderedFormat: "ordinal",
|
|
10675
|
+
supportsMutation: true,
|
|
10676
|
+
render: toOrdinal2
|
|
10677
|
+
},
|
|
10678
|
+
{
|
|
10679
|
+
format: "cardinalText",
|
|
10680
|
+
renderSupport: "supported",
|
|
10681
|
+
renderedFormat: "cardinalText",
|
|
10682
|
+
supportsMutation: true,
|
|
10683
|
+
render: toCardinalText2
|
|
10684
|
+
},
|
|
10685
|
+
{
|
|
10686
|
+
format: "ordinalText",
|
|
10687
|
+
renderSupport: "supported",
|
|
10688
|
+
renderedFormat: "ordinalText",
|
|
10689
|
+
supportsMutation: true,
|
|
10690
|
+
render: toOrdinalText2
|
|
10691
|
+
},
|
|
10692
|
+
{
|
|
10693
|
+
format: "chicago",
|
|
10694
|
+
renderSupport: "supported",
|
|
10695
|
+
renderedFormat: "chicago",
|
|
10696
|
+
supportsMutation: true,
|
|
10697
|
+
render: toChicago2
|
|
10698
|
+
},
|
|
10699
|
+
{
|
|
10700
|
+
format: "bullet",
|
|
10701
|
+
renderSupport: "supported",
|
|
10702
|
+
renderedFormat: "bullet",
|
|
10703
|
+
supportsMutation: true,
|
|
10704
|
+
render: () => ""
|
|
10705
|
+
},
|
|
10706
|
+
{
|
|
10707
|
+
format: "none",
|
|
10708
|
+
renderSupport: "supported",
|
|
10709
|
+
renderedFormat: "none",
|
|
10710
|
+
supportsMutation: true,
|
|
10711
|
+
render: () => ""
|
|
10712
|
+
}
|
|
10713
|
+
];
|
|
10714
|
+
var approximatedDecimalFormats = [
|
|
10715
|
+
"decimalEnclosedCircle",
|
|
10716
|
+
"decimalEnclosedFullstop",
|
|
10717
|
+
"decimalEnclosedParen",
|
|
10718
|
+
"decimalFullWidth",
|
|
10719
|
+
"decimalHalfWidth",
|
|
10720
|
+
"aiueo",
|
|
10721
|
+
"iroha",
|
|
10722
|
+
"ganada",
|
|
10723
|
+
"chosung",
|
|
10724
|
+
"russianLower",
|
|
10725
|
+
"russianUpper",
|
|
10726
|
+
"hebrew1",
|
|
10727
|
+
"hebrew2",
|
|
10728
|
+
"arabicAlpha",
|
|
10729
|
+
"arabicAbjad",
|
|
10730
|
+
"thaiLetters",
|
|
10731
|
+
"thaiNumbers",
|
|
10732
|
+
"hindiLetters",
|
|
10733
|
+
"hindiNumbers",
|
|
10734
|
+
"ideographDigital",
|
|
10735
|
+
"ideographTraditional",
|
|
10736
|
+
"chineseCounting",
|
|
10737
|
+
"japaneseCounting",
|
|
10738
|
+
"japaneseLegal"
|
|
10739
|
+
];
|
|
10740
|
+
var approximatedNumberingFormatEntries = approximatedDecimalFormats.map((format) => ({
|
|
10741
|
+
format,
|
|
10742
|
+
renderSupport: "approximated",
|
|
10743
|
+
renderedFormat: "decimal",
|
|
10744
|
+
supportsMutation: false,
|
|
10745
|
+
fallbackReason: "unsupported-numbering-format-decimal-fallback",
|
|
10746
|
+
render: (value) => String(value)
|
|
10747
|
+
}));
|
|
10748
|
+
var NUMBERING_FORMAT_REGISTRY = new Map(
|
|
10749
|
+
[...exactNumberingFormatEntries, ...approximatedNumberingFormatEntries].map((entry) => [
|
|
10750
|
+
entry.format,
|
|
10751
|
+
entry
|
|
10752
|
+
])
|
|
10753
|
+
);
|
|
10661
10754
|
function toOrdinal2(value) {
|
|
10662
10755
|
if (value <= 0) return String(value);
|
|
10663
10756
|
const lastTwo = value % 100;
|
|
@@ -11311,12 +11404,36 @@ var DEFAULT_HYPERLINK_COLOR_HEX = "0563C1";
|
|
|
11311
11404
|
function resolveHyperlinkRunFormatting(input, catalog, resolver) {
|
|
11312
11405
|
const augmentedInput = input.characterStyleId === void 0 ? { ...input, characterStyleId: HYPERLINK_CHARACTER_STYLE_ID } : input;
|
|
11313
11406
|
const cascade = resolveEffectiveRunFormatting(augmentedInput, catalog);
|
|
11314
|
-
const resolvedColor = resolveHyperlinkColorHex(
|
|
11407
|
+
const resolvedColor = resolveHyperlinkColorHex(
|
|
11408
|
+
stripInheritedColorHexForImplicitHyperlink(input, catalog, cascade),
|
|
11409
|
+
resolver
|
|
11410
|
+
);
|
|
11315
11411
|
if (resolvedColor && resolvedColor !== cascade.colorHex) {
|
|
11316
11412
|
return { ...cascade, colorHex: resolvedColor };
|
|
11317
11413
|
}
|
|
11318
11414
|
return cascade;
|
|
11319
11415
|
}
|
|
11416
|
+
function hasDirectNonAutoColor(input) {
|
|
11417
|
+
return Boolean(input.direct?.colorHex && input.direct.colorHex !== "auto");
|
|
11418
|
+
}
|
|
11419
|
+
function characterStyleDeclaresColorHex(styleId, catalog) {
|
|
11420
|
+
if (!catalog) return false;
|
|
11421
|
+
const chain = resolveCharacterStyleChain(styleId, catalog);
|
|
11422
|
+
return chain.some((chainStyleId) => {
|
|
11423
|
+
const colorHex = catalog.characters[chainStyleId]?.runProperties?.colorHex;
|
|
11424
|
+
return Boolean(colorHex && colorHex !== "auto");
|
|
11425
|
+
});
|
|
11426
|
+
}
|
|
11427
|
+
function stripInheritedColorHexForImplicitHyperlink(originalInput, catalog, cascade) {
|
|
11428
|
+
if (originalInput.characterStyleId !== void 0 || hasDirectNonAutoColor(originalInput) || !cascade.colorHex || cascade.colorHex === "auto" || characterStyleDeclaresColorHex(HYPERLINK_CHARACTER_STYLE_ID, catalog)) {
|
|
11429
|
+
return cascade;
|
|
11430
|
+
}
|
|
11431
|
+
const inheritedCascade = resolveEffectiveRunFormatting(originalInput, catalog);
|
|
11432
|
+
if (inheritedCascade.colorHex !== cascade.colorHex) {
|
|
11433
|
+
return cascade;
|
|
11434
|
+
}
|
|
11435
|
+
return { ...cascade, colorHex: void 0 };
|
|
11436
|
+
}
|
|
11320
11437
|
function resolveHyperlinkColorHex(cascade, resolver) {
|
|
11321
11438
|
if (cascade.colorHex && cascade.colorHex !== "auto") {
|
|
11322
11439
|
return cascade.colorHex;
|
|
@@ -16526,6 +16643,14 @@ function paginateSectionBlocksWithSplits(section, blocks, layout, footnotes, mea
|
|
|
16526
16643
|
pushPage(block.from);
|
|
16527
16644
|
continue;
|
|
16528
16645
|
}
|
|
16646
|
+
if (isStandalonePageBreakParagraph(block)) {
|
|
16647
|
+
if (columnHeight > 0) {
|
|
16648
|
+
pushPage(nextBoundary);
|
|
16649
|
+
} else {
|
|
16650
|
+
pageStart = Math.max(pageStart, Math.min(nextBoundary, section.end));
|
|
16651
|
+
}
|
|
16652
|
+
break;
|
|
16653
|
+
}
|
|
16529
16654
|
const effectiveNoteHeight = estimateFootnoteReservation(
|
|
16530
16655
|
block,
|
|
16531
16656
|
footnotes,
|
|
@@ -16700,6 +16825,21 @@ function hasPageBreak(block) {
|
|
|
16700
16825
|
}
|
|
16701
16826
|
return nestedBlocks(block).some(hasPageBreak);
|
|
16702
16827
|
}
|
|
16828
|
+
function isStandalonePageBreakParagraph(block) {
|
|
16829
|
+
if (block.kind !== "paragraph") return false;
|
|
16830
|
+
let sawPageBreak = false;
|
|
16831
|
+
for (const segment of block.segments) {
|
|
16832
|
+
if (segment.kind === "opaque_inline" && segment.label === "Page break") {
|
|
16833
|
+
sawPageBreak = true;
|
|
16834
|
+
continue;
|
|
16835
|
+
}
|
|
16836
|
+
if (segment.kind === "text" && segment.text.trim().length === 0) {
|
|
16837
|
+
continue;
|
|
16838
|
+
}
|
|
16839
|
+
return false;
|
|
16840
|
+
}
|
|
16841
|
+
return sawPageBreak;
|
|
16842
|
+
}
|
|
16703
16843
|
function nestedBlocks(block) {
|
|
16704
16844
|
if (block.kind === "sdt_block") {
|
|
16705
16845
|
return block.children;
|
|
@@ -18161,6 +18301,9 @@ function projectSurfaceBlocksToPageFragments(surface, pages, splits, columnByBlo
|
|
|
18161
18301
|
for (let blockIndex = 0; blockIndex < surface.blocks.length; blockIndex += 1) {
|
|
18162
18302
|
const block = surface.blocks[blockIndex];
|
|
18163
18303
|
const blockPath = `main/block[${blockIndex}]`;
|
|
18304
|
+
if (isStandalonePageBreakParagraph2(block)) {
|
|
18305
|
+
continue;
|
|
18306
|
+
}
|
|
18164
18307
|
if (block.kind === "table") {
|
|
18165
18308
|
const tableSliceList = splits?.tablesByBlockId.get(block.blockId);
|
|
18166
18309
|
if (tableSliceList && tableSliceList.length > 1) {
|
|
@@ -18246,6 +18389,23 @@ function projectSurfaceBlocksToPageFragments(surface, pages, splits, columnByBlo
|
|
|
18246
18389
|
}
|
|
18247
18390
|
return byPage;
|
|
18248
18391
|
}
|
|
18392
|
+
function isStandalonePageBreakParagraph2(block) {
|
|
18393
|
+
if (block.kind !== "paragraph") {
|
|
18394
|
+
return false;
|
|
18395
|
+
}
|
|
18396
|
+
let sawPageBreak = false;
|
|
18397
|
+
for (const segment of block.segments) {
|
|
18398
|
+
if (segment.kind === "opaque_inline" && segment.label === "Page break") {
|
|
18399
|
+
sawPageBreak = true;
|
|
18400
|
+
continue;
|
|
18401
|
+
}
|
|
18402
|
+
if (segment.kind === "text" && segment.text.trim().length === 0) {
|
|
18403
|
+
continue;
|
|
18404
|
+
}
|
|
18405
|
+
return false;
|
|
18406
|
+
}
|
|
18407
|
+
return sawPageBreak;
|
|
18408
|
+
}
|
|
18249
18409
|
function projectLineBoxesForPageFragments(pages, fragmentsByPageIndex, fragmentMeasurementsByPageIndex, surface) {
|
|
18250
18410
|
const byPage = /* @__PURE__ */ new Map();
|
|
18251
18411
|
const blocksById = surface ? new Map(surface.blocks.map((block) => [block.blockId, block])) : /* @__PURE__ */ new Map();
|
|
@@ -18758,13 +18918,11 @@ function buildBookmarkRanges(targets) {
|
|
|
18758
18918
|
}
|
|
18759
18919
|
var EMPTY_NUMBERING_INPUT_INDEX = {
|
|
18760
18920
|
byNumberingKey: /* @__PURE__ */ new Map(),
|
|
18761
|
-
byBlockPath: /* @__PURE__ */ new Map()
|
|
18762
|
-
byParagraphIndex: /* @__PURE__ */ new Map()
|
|
18921
|
+
byBlockPath: /* @__PURE__ */ new Map()
|
|
18763
18922
|
};
|
|
18764
18923
|
function buildNumberingInputIndex(numberingInputs) {
|
|
18765
18924
|
const byNumberingKey = /* @__PURE__ */ new Map();
|
|
18766
18925
|
const byBlockPath = /* @__PURE__ */ new Map();
|
|
18767
|
-
const byParagraph = /* @__PURE__ */ new Map();
|
|
18768
18926
|
for (const input of numberingInputs) {
|
|
18769
18927
|
if (!byNumberingKey.has(input.numberingKey)) {
|
|
18770
18928
|
byNumberingKey.set(input.numberingKey, input);
|
|
@@ -18772,11 +18930,8 @@ function buildNumberingInputIndex(numberingInputs) {
|
|
|
18772
18930
|
if (!byBlockPath.has(input.blockPath)) {
|
|
18773
18931
|
byBlockPath.set(input.blockPath, input);
|
|
18774
18932
|
}
|
|
18775
|
-
if (!byParagraph.has(input.paragraphIndex)) {
|
|
18776
|
-
byParagraph.set(input.paragraphIndex, input);
|
|
18777
|
-
}
|
|
18778
18933
|
}
|
|
18779
|
-
return { byNumberingKey, byBlockPath
|
|
18934
|
+
return { byNumberingKey, byBlockPath };
|
|
18780
18935
|
}
|
|
18781
18936
|
function collectBookmarkRangeLayoutFacts(fragmentId, blockPath, bookmarkRanges) {
|
|
18782
18937
|
if (!blockPath || !bookmarkRanges || bookmarkRanges.length === 0) return [];
|
|
@@ -18896,8 +19051,7 @@ function collectNumberingLayoutFactsForBlock(block, blockPath, numberingIndex, n
|
|
|
18896
19051
|
const canonical = lookupNumberingInput(
|
|
18897
19052
|
numberingIndex,
|
|
18898
19053
|
numberingKey,
|
|
18899
|
-
context.path
|
|
18900
|
-
paragraphIndex
|
|
19054
|
+
context.path
|
|
18901
19055
|
);
|
|
18902
19056
|
const target = findNumberingTarget(numberingTargets, context.path);
|
|
18903
19057
|
const numberingLayoutId = numberingKey ?? [
|
|
@@ -18937,7 +19091,7 @@ function findNumberingTarget(numberingTargets, blockPath) {
|
|
|
18937
19091
|
if (blockPath === void 0) return void 0;
|
|
18938
19092
|
return numberingTargets.find((target) => target.blockPath === blockPath);
|
|
18939
19093
|
}
|
|
18940
|
-
function lookupNumberingInput(numberingIndex, numberingKey, blockPath
|
|
19094
|
+
function lookupNumberingInput(numberingIndex, numberingKey, blockPath) {
|
|
18941
19095
|
if (!numberingIndex) return void 0;
|
|
18942
19096
|
if (numberingKey !== void 0) {
|
|
18943
19097
|
const byKey = numberingIndex.byNumberingKey.get(numberingKey);
|
|
@@ -18947,7 +19101,7 @@ function lookupNumberingInput(numberingIndex, numberingKey, blockPath, paragraph
|
|
|
18947
19101
|
const byPath = numberingIndex.byBlockPath.get(blockPath);
|
|
18948
19102
|
if (byPath !== void 0) return byPath;
|
|
18949
19103
|
}
|
|
18950
|
-
return
|
|
19104
|
+
return void 0;
|
|
18951
19105
|
}
|
|
18952
19106
|
function collectNumberingUnavailableReasons(numbering, canonical) {
|
|
18953
19107
|
const reasons = [];
|
|
@@ -19338,7 +19492,7 @@ function createEmpiricalProvider() {
|
|
|
19338
19492
|
}
|
|
19339
19493
|
|
|
19340
19494
|
// src/runtime/layout/layout-engine-version.ts
|
|
19341
|
-
var LAYOUT_ENGINE_VERSION =
|
|
19495
|
+
var LAYOUT_ENGINE_VERSION = 89;
|
|
19342
19496
|
|
|
19343
19497
|
// src/runtime/layout/layout-engine-instance.ts
|
|
19344
19498
|
var FULL_VIEWPORT_WINDOW_KEY = "full";
|
package/dist/tailwind.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { BreakpointMap, CollabAudienceChip, CollabAudienceChipProps, CollabNegotiationActionBar, CollabNegotiationActionBarProps, CollabPresenceStrip, CollabPresenceStripProps, CollabRoleChip, CollabRoleChipProps, CollabSendToSupplierButton, CollabSendToSupplierButtonProps, CollabSendToSupplierModal, CollabSendToSupplierModalProps, CollabSendToSupplierSubmitArgs, CollabTamperBanner, CollabTamperBannerProps, CommandPaletteGroup, CommandPaletteItem, CommentDecorationModel, CommentMarkdownRenderer, CommentMarkdownRendererProps, EditorKeyboardCallbacks, EditorKeyboardContext, MarkupDisplay, RailCardAvatar, RailCardCounter, RailCardProgress, RailCardTone, ReviewRailTab, RevisionDecorationModel, ShellHeaderIconAction, ShellHeaderMode, ShellHeaderModeOption, ShellHeaderPrimaryAction, TwAlertBanner, TwChromeOverlay, TwChromeOverlayProps, TwCommandPalette, TwCommandPaletteMount, TwCommandPaletteMountProps, TwCommandPaletteProps, TwCommentSidebar, TwCommentSidebarProps, TwEditorSurface, TwEditorSurfaceProps, TwHealthPanel, TwInlineToken, TwOpaqueBlock, TwParagraphBlock, TwPasteDropToast, TwPasteDropToastProps, TwRailCard, TwRailCardProps, TwReviewRail, TwReviewRailFooter, TwReviewRailFooterProps, TwReviewRailProps, TwReviewWorkspace, TwReviewWorkspaceProps, TwRevisionSidebar, TwScopeRailLayer, TwScopeRailLayerProps, TwSegmentView, TwSelectionToolbar, TwShellHeader, TwShellHeaderProps, TwStatusBar, TwToolbar, TwToolbarIconButton, TwToolbarProps, TwWorkflowTab, TwWorkflowTabProps, createCommentDecorationModel, createEditorKeyboardHandler, createRevisionDecorationModel, createSelectionSnapshot, getCommentHighlightClass, getCommentRangeState, getRevisionHighlightClass, getRevisionRangeState, isCommandPaletteOpenShortcut, renderTwCaret, resolveBreakpoint, selectionTouchesRange, shouldHideInCleanMode, useContainerBreakpoint } from './ui-tailwind.cjs';
|
|
2
|
-
export { e_ as SessionCapabilities, eI as WorkspaceMode, eJ as ZoomLevel, fh as deriveCapabilities } from './public-types-
|
|
2
|
+
export { e_ as SessionCapabilities, eI as WorkspaceMode, eJ as ZoomLevel, fh as deriveCapabilities } from './public-types-B5CRoR6f.cjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'yjs';
|
|
6
6
|
import 'y-protocols/awareness';
|
|
7
|
-
import './canonical-document-
|
|
7
|
+
import './canonical-document-BMtONpgf.cjs';
|
|
8
8
|
import 'prosemirror-state';
|
|
9
9
|
import 'prosemirror-model';
|