ooxml-core 1.45.0 → 1.47.0
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/PptxHandler-JX62VKU4.cjs +14 -0
- package/dist/{PptxHandler-FXLXIOLT.mjs → PptxHandler-NXHZ6ITL.mjs} +2 -2
- package/dist/PptxHandler-SUGLNSZI.mjs +5 -0
- package/dist/{PresentationBuilder-CSKLG64K.cjs → PresentationBuilder-IK6NIK6T.cjs} +6 -6
- package/dist/{PresentationBuilder-DDYHRV26.mjs → PresentationBuilder-LHQ333UL.mjs} +3 -3
- package/dist/{PresentationBuilder-3FKFRSSV.mjs → PresentationBuilder-URSPID7L.mjs} +2 -2
- package/dist/automation/index.cjs +12 -7
- package/dist/automation/index.mjs +12 -7
- package/dist/chart/edit/group-options.d.ts +4 -0
- package/dist/chart/edit/group-options.d.ts.map +1 -1
- package/dist/chart/edit/new-chart-minimal.d.ts +13 -0
- package/dist/chart/edit/new-chart-minimal.d.ts.map +1 -0
- package/dist/chart/edit/new-chart.d.ts +34 -1
- package/dist/chart/edit/new-chart.d.ts.map +1 -1
- package/dist/chart/edit/secondary-axis.d.ts +8 -1
- package/dist/chart/edit/secondary-axis.d.ts.map +1 -1
- package/dist/chart/edit/type.d.ts +2 -0
- package/dist/chart/edit/type.d.ts.map +1 -1
- package/dist/chart/index.cjs +414 -263
- package/dist/chart/index.mjs +412 -264
- package/dist/{chunk-YBSNMVSN.cjs → chunk-4GPLQEEC.cjs} +1604 -1324
- package/dist/{chunk-U5BXJQZG.mjs → chunk-553WFEHD.mjs} +332 -53
- package/dist/{chunk-RVYGAYCP.mjs → chunk-5HNRZOBX.mjs} +1 -1
- package/dist/{chunk-VKFKEVHK.mjs → chunk-6MU4WKHS.mjs} +1 -1
- package/dist/{chunk-GXYK3H4O.mjs → chunk-7L6ZAA5Y.mjs} +82 -17
- package/dist/{chunk-3J6VIKLP.cjs → chunk-APCA7N6Q.cjs} +3 -3
- package/dist/{chunk-IPV3J3I5.mjs → chunk-DEDK2J57.mjs} +68 -1
- package/dist/{chunk-7T3SJQA6.cjs → chunk-E5TGYYKO.cjs} +1 -0
- package/dist/{chunk-R7NS42KQ.mjs → chunk-FKU2Z6ZB.mjs} +1 -1
- package/dist/{chunk-GGJUWJXB.mjs → chunk-QHR726W3.mjs} +1 -1
- package/dist/{chunk-XTUX5RMG.cjs → chunk-T4BVZTII.cjs} +9 -9
- package/dist/{chunk-QZPOPUI5.cjs → chunk-WFN6ZU7N.cjs} +69 -0
- package/dist/{chunk-LCXBTJXE.mjs → chunk-XVEJS7HN.mjs} +5 -5
- package/dist/{chunk-CVJX6NNO.mjs → chunk-Z734BYYR.mjs} +334 -54
- package/dist/{chunk-OORQCSVA.mjs → chunk-ZLUHU2SU.mjs} +1 -0
- package/dist/docx/index.cjs +300 -144
- package/dist/docx/index.mjs +300 -144
- package/dist/index.cjs +484 -333
- package/dist/index.mjs +484 -333
- package/dist/pptx/automation/index.cjs +2207 -1825
- package/dist/pptx/automation/index.d.ts +4 -4
- package/dist/pptx/automation/index.mjs +5 -5
- package/dist/pptx/chunks/{index-6Ot1b-4U.d.ts → index--HBUyILF.d.ts} +5 -5
- package/dist/pptx/chunks/{index-6Ot1b-4U.d.ts.map → index--HBUyILF.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-DGKI80Hj.d.ts → index-BDVzSboe.d.ts} +71 -7
- package/dist/pptx/chunks/{index-DGKI80Hj.d.ts.map → index-BDVzSboe.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-jdZUtLGB.d.ts → index-Dr3iIPt9.d.ts} +3 -3
- package/dist/pptx/chunks/{index-jdZUtLGB.d.ts.map → index-Dr3iIPt9.d.ts.map} +1 -1
- package/dist/pptx/chunks/{text-operations-Mek86RBL.d.ts → text-operations-CVHXOSit.d.ts} +18 -3
- package/dist/pptx/chunks/{text-operations-Mek86RBL.d.ts.map → text-operations-CVHXOSit.d.ts.map} +1 -1
- package/dist/pptx/cli/index.cjs +608 -226
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.cjs +1 -0
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/collaboration-live-patch-target.cjs +4 -4
- package/dist/pptx/editor/render/collaboration-live-patch-target.mjs +2 -2
- package/dist/pptx/editor/render/collaboration-reconcile.cjs +8 -8
- package/dist/pptx/editor/render/collaboration-reconcile.mjs +2 -2
- package/dist/pptx/editor/render/collaboration-sync.cjs +14 -14
- package/dist/pptx/editor/render/collaboration-sync.d.ts.map +1 -1
- package/dist/pptx/editor/render/collaboration-sync.mjs +1 -1
- package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
- package/dist/pptx/editor/render/find-replace.cjs +15 -15
- package/dist/pptx/editor/render/find-replace.d.ts +2 -2
- package/dist/pptx/editor/render/find-replace.mjs +2 -2
- package/dist/pptx/editor/render/slide-operations.cjs +9 -9
- package/dist/pptx/editor/render/slide-operations.mjs +3 -3
- package/dist/pptx/index.cjs +2605 -2226
- package/dist/pptx/index.d.ts +5 -5
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/node/index.d.ts +1 -1
- package/dist/xlsx/index.cjs +12 -7
- package/dist/xlsx/index.mjs +12 -7
- package/dist/xlsx/ui/index.cjs +12 -7
- package/dist/xlsx/ui/index.mjs +12 -7
- package/package.json +1 -1
- package/dist/PptxHandler-3RDVJFQV.cjs +0 -14
- package/dist/PptxHandler-EI6DMHPM.mjs +0 -5
package/dist/pptx/cli/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as MergeOptions, t as FindResult } from "../chunks/text-operations-
|
|
1
|
+
import { a as MergeOptions, t as FindResult } from "../chunks/text-operations-CVHXOSit.js";
|
|
2
2
|
/** Result from the `info` command. */
|
|
3
3
|
interface InfoResult {
|
|
4
4
|
slideCount: number;
|
package/dist/pptx/cli/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { replaceText, findText, mergePresentation } from '../../chunk-
|
|
3
|
-
import { PptxMarkdownConverter } from '../../chunk-
|
|
4
|
-
import { PptxHandler } from '../../chunk-
|
|
5
|
-
import { SvgExporter, isImageLikeElement, blobUrlToDataUrl } from '../../chunk-
|
|
2
|
+
import { replaceText, findText, mergePresentation } from '../../chunk-QHR726W3.mjs';
|
|
3
|
+
import { PptxMarkdownConverter } from '../../chunk-5HNRZOBX.mjs';
|
|
4
|
+
import { PptxHandler } from '../../chunk-553WFEHD.mjs';
|
|
5
|
+
import { SvgExporter, isImageLikeElement, blobUrlToDataUrl } from '../../chunk-7L6ZAA5Y.mjs';
|
|
6
6
|
import '../../chunk-EYCM7RVL.mjs';
|
|
7
7
|
import '../../chunk-2N7RZQLC.mjs';
|
|
8
8
|
import '../../chunk-VDUNZTJC.mjs';
|
|
@@ -12436,6 +12436,7 @@ var init_collaboration_field_schema = __esm({
|
|
|
12436
12436
|
backgroundImage: "scalar",
|
|
12437
12437
|
backgroundImageProperties: "complex",
|
|
12438
12438
|
backgroundGradient: "scalar",
|
|
12439
|
+
backgroundGradientFill: "complex",
|
|
12439
12440
|
backgroundStyleRef: "complex",
|
|
12440
12441
|
backgroundPattern: "complex",
|
|
12441
12442
|
backgroundShadeToTitle: "scalar",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as SlideProcessor, B as generateMediaFilename, C as PptxJsonAssetStats, D as SvgExportOptions, E as isPptxJsonText, F as deriveOutputPath, H as ConversionResult, I as getDirectory, L as normalizePath, M as PptxConverterOptions, N as PptxMarkdownConverter, O as SvgExporter, P as DocumentConverter, R as MediaContext, S as PPTX_JSON_VERSION, T as decodePptxJsonText, U as FileSystemAdapter, V as ConversionOptions, _ as decodeJsonValue, a as deserializePptxFromJson, b as PPTX_JSON_FORMAT, c as pptxDataFromJsonDocument, d as serializePptxToJson, f as PRESENTATION_FIELD_KEYS, g as bytesToBase64, h as base64ToBytes, i as PptxJsonFormatError, j as SlideProcessorOptions, k as SlideMetadataRenderer, l as PptxJsonSerializeOptions, m as JsonAssetAccumulator, n as PptxJsonConverterOptions, o as parsePptxJson, p as PRESENTATION_FIELD_NAMES, r as applyImportedPptxData, s as parsePptxJsonDocument, t as PptxJsonConverter, u as buildPptxJsonDocument, v as encodeJsonValue, w as PptxJsonDocument, x as PPTX_JSON_MIME_TYPE, y as PPTX_JSON_FILE_EXTENSION, z as dataUrlToMediaBytes } from "../chunks/index-
|
|
1
|
+
import { A as SlideProcessor, B as generateMediaFilename, C as PptxJsonAssetStats, D as SvgExportOptions, E as isPptxJsonText, F as deriveOutputPath, H as ConversionResult, I as getDirectory, L as normalizePath, M as PptxConverterOptions, N as PptxMarkdownConverter, O as SvgExporter, P as DocumentConverter, R as MediaContext, S as PPTX_JSON_VERSION, T as decodePptxJsonText, U as FileSystemAdapter, V as ConversionOptions, _ as decodeJsonValue, a as deserializePptxFromJson, b as PPTX_JSON_FORMAT, c as pptxDataFromJsonDocument, d as serializePptxToJson, f as PRESENTATION_FIELD_KEYS, g as bytesToBase64, h as base64ToBytes, i as PptxJsonFormatError, j as SlideProcessorOptions, k as SlideMetadataRenderer, l as PptxJsonSerializeOptions, m as JsonAssetAccumulator, n as PptxJsonConverterOptions, o as parsePptxJson, p as PRESENTATION_FIELD_NAMES, r as applyImportedPptxData, s as parsePptxJsonDocument, t as PptxJsonConverter, u as buildPptxJsonDocument, v as encodeJsonValue, w as PptxJsonDocument, x as PPTX_JSON_MIME_TYPE, y as PPTX_JSON_FILE_EXTENSION, z as dataUrlToMediaBytes } from "../chunks/index-Dr3iIPt9.js";
|
|
2
2
|
export { type ConversionOptions, type ConversionResult, DocumentConverter, type FileSystemAdapter, type JsonAssetAccumulator, MediaContext, PPTX_JSON_FILE_EXTENSION, PPTX_JSON_FORMAT, PPTX_JSON_MIME_TYPE, PPTX_JSON_VERSION, PRESENTATION_FIELD_KEYS, PRESENTATION_FIELD_NAMES, type PptxConverterOptions, type PptxJsonAssetStats, PptxJsonConverter, type PptxJsonConverterOptions, type PptxJsonDocument, PptxJsonFormatError, type PptxJsonSerializeOptions, PptxMarkdownConverter, SlideMetadataRenderer, SlideProcessor, type SlideProcessorOptions, type SvgExportOptions, SvgExporter, applyImportedPptxData, base64ToBytes, buildPptxJsonDocument, bytesToBase64, dataUrlToMediaBytes, decodeJsonValue, decodePptxJsonText, deriveOutputPath, deserializePptxFromJson, encodeJsonValue, generateMediaFilename, getDirectory, isPptxJsonText, normalizePath, parsePptxJson, parsePptxJsonDocument, pptxDataFromJsonDocument, serializePptxToJson };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../chunk-6Q7TP72Y.mjs';
|
|
2
|
-
export { DocumentConverter, MediaContext, PptxMarkdownConverter, SlideMetadataRenderer, SlideProcessor, dataUrlToMediaBytes, deriveOutputPath, generateMediaFilename, getDirectory, normalizePath } from '../../chunk-
|
|
3
|
-
export { PPTX_JSON_FILE_EXTENSION, PPTX_JSON_FORMAT, PPTX_JSON_MIME_TYPE, PPTX_JSON_VERSION, PRESENTATION_FIELD_KEYS, PRESENTATION_FIELD_NAMES, PptxJsonConverter, PptxJsonFormatError, SvgExporter, applyImportedPptxData, base64ToBytes, buildPptxJsonDocument, bytesToBase64, decodeJsonValue, decodePptxJsonText, deserializePptxFromJson, encodeJsonValue, isPptxJsonText, parsePptxJson, parsePptxJsonDocument, pptxDataFromJsonDocument, serializePptxToJson } from '../../chunk-
|
|
2
|
+
export { DocumentConverter, MediaContext, PptxMarkdownConverter, SlideMetadataRenderer, SlideProcessor, dataUrlToMediaBytes, deriveOutputPath, generateMediaFilename, getDirectory, normalizePath } from '../../chunk-5HNRZOBX.mjs';
|
|
3
|
+
export { PPTX_JSON_FILE_EXTENSION, PPTX_JSON_FORMAT, PPTX_JSON_MIME_TYPE, PPTX_JSON_VERSION, PRESENTATION_FIELD_KEYS, PRESENTATION_FIELD_NAMES, PptxJsonConverter, PptxJsonFormatError, SvgExporter, applyImportedPptxData, base64ToBytes, buildPptxJsonDocument, bytesToBase64, decodeJsonValue, decodePptxJsonText, deserializePptxFromJson, encodeJsonValue, isPptxJsonText, parsePptxJson, parsePptxJsonDocument, pptxDataFromJsonDocument, serializePptxToJson } from '../../chunk-7L6ZAA5Y.mjs';
|
|
4
4
|
import '../../chunk-EYCM7RVL.mjs';
|
|
5
5
|
import '../../chunk-VDUNZTJC.mjs';
|
|
6
6
|
import '../../chunk-7DJEJTN7.mjs';
|
|
@@ -4,8 +4,8 @@ var chunkAWIDASUW_cjs = require('../../../chunk-AWIDASUW.cjs');
|
|
|
4
4
|
require('../../../chunk-7IUNOWFJ.cjs');
|
|
5
5
|
require('../../../chunk-Y6665UXH.cjs');
|
|
6
6
|
require('../../../chunk-RGLJ6BCK.cjs');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
7
|
+
var chunkT4BVZTII_cjs = require('../../../chunk-T4BVZTII.cjs');
|
|
8
|
+
var chunkE5TGYYKO_cjs = require('../../../chunk-E5TGYYKO.cjs');
|
|
9
9
|
require('../../../chunk-RFL5HLP6.cjs');
|
|
10
10
|
require('../../../chunk-ZSUFA6L4.cjs');
|
|
11
11
|
require('../../../chunk-D5CSDEDP.cjs');
|
|
@@ -22,7 +22,7 @@ var MAX_LIVE_TEXT_LENGTH = 1e5;
|
|
|
22
22
|
var asMap = (value) => typeof value === "object" && value !== null && typeof value.get === "function" ? value : void 0;
|
|
23
23
|
var asArray = (value) => typeof value === "object" && value !== null && typeof value.get === "function" ? value : void 0;
|
|
24
24
|
function findElementYMap(doc, slideId, elementId) {
|
|
25
|
-
const slidesArr = doc.getArray(
|
|
25
|
+
const slidesArr = doc.getArray(chunkE5TGYYKO_cjs.YDOC_SLIDES_KEY);
|
|
26
26
|
for (let i = 0; i < slidesArr.length; i++) {
|
|
27
27
|
const slideMap = asMap(slidesArr.get(i));
|
|
28
28
|
if (!slideMap || slideId !== void 0 && slideMap.get("id") !== slideId) {
|
|
@@ -63,7 +63,7 @@ function applyLivePatch(doc, factories, patch, textPatchLimit) {
|
|
|
63
63
|
ymap.set("text", value);
|
|
64
64
|
}
|
|
65
65
|
const segments = chunkAWIDASUW_cjs.remapTextToSegments(value, source.textSegments, source.textStyle);
|
|
66
|
-
|
|
66
|
+
chunkT4BVZTII_cjs.reconcileElementTextBody(ymap, { textSegments: segments }, factories);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -2,8 +2,8 @@ import { remapTextToSegments } from '../../../chunk-CBNKBVX5.mjs';
|
|
|
2
2
|
import '../../../chunk-F4TB6B32.mjs';
|
|
3
3
|
import '../../../chunk-3E6KBUG5.mjs';
|
|
4
4
|
import '../../../chunk-3GAQLUP6.mjs';
|
|
5
|
-
import { reconcileElementTextBody } from '../../../chunk-
|
|
6
|
-
import { YDOC_SLIDES_KEY } from '../../../chunk-
|
|
5
|
+
import { reconcileElementTextBody } from '../../../chunk-FKU2Z6ZB.mjs';
|
|
6
|
+
import { YDOC_SLIDES_KEY } from '../../../chunk-ZLUHU2SU.mjs';
|
|
7
7
|
import '../../../chunk-F3JOHFHA.mjs';
|
|
8
8
|
import '../../../chunk-T6ASUOBQ.mjs';
|
|
9
9
|
import '../../../chunk-3XT4X5IU.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-
|
|
3
|
+
var chunkT4BVZTII_cjs = require('../../../chunk-T4BVZTII.cjs');
|
|
4
|
+
require('../../../chunk-E5TGYYKO.cjs');
|
|
5
5
|
require('../../../chunk-RFL5HLP6.cjs');
|
|
6
6
|
require('../../../chunk-ZSUFA6L4.cjs');
|
|
7
7
|
require('../../../chunk-D5CSDEDP.cjs');
|
|
@@ -16,25 +16,25 @@ require('../../../chunk-V33BRBWQ.cjs');
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, "LOCAL_SYNC_ORIGIN", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkT4BVZTII_cjs.LOCAL_SYNC_ORIGIN; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "reconcileElementTextBody", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkT4BVZTII_cjs.reconcileElementTextBody; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "reconcileElementYMap", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkT4BVZTII_cjs.reconcileElementYMap; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "reconcileSlideYMap", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkT4BVZTII_cjs.reconcileSlideYMap; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "reconcileSlidesInYDoc", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkT4BVZTII_cjs.reconcileSlidesInYDoc; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "removeDuplicateSlidesInYDoc", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkT4BVZTII_cjs.removeDuplicateSlidesInYDoc; }
|
|
40
40
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { LOCAL_SYNC_ORIGIN, reconcileElementTextBody, reconcileElementYMap, reconcileSlideYMap, reconcileSlidesInYDoc, removeDuplicateSlidesInYDoc } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
1
|
+
export { LOCAL_SYNC_ORIGIN, reconcileElementTextBody, reconcileElementYMap, reconcileSlideYMap, reconcileSlidesInYDoc, removeDuplicateSlidesInYDoc } from '../../../chunk-FKU2Z6ZB.mjs';
|
|
2
|
+
import '../../../chunk-ZLUHU2SU.mjs';
|
|
3
3
|
import '../../../chunk-F3JOHFHA.mjs';
|
|
4
4
|
import '../../../chunk-T6ASUOBQ.mjs';
|
|
5
5
|
import '../../../chunk-3XT4X5IU.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkE5TGYYKO_cjs = require('../../../chunk-E5TGYYKO.cjs');
|
|
4
4
|
require('../../../chunk-ZSUFA6L4.cjs');
|
|
5
5
|
var chunk3SSJL53G_cjs = require('../../../chunk-3SSJL53G.cjs');
|
|
6
6
|
require('../../../chunk-R6Z5C4DA.cjs');
|
|
@@ -13,55 +13,55 @@ require('../../../chunk-V33BRBWQ.cjs');
|
|
|
13
13
|
|
|
14
14
|
Object.defineProperty(exports, "COMPLEX_ELEMENT_FIELDS", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkE5TGYYKO_cjs.COMPLEX_ELEMENT_FIELDS; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "COMPLEX_SLIDE_FIELDS", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkE5TGYYKO_cjs.COMPLEX_SLIDE_FIELDS; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "SCALAR_ELEMENT_KEYS", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkE5TGYYKO_cjs.SCALAR_ELEMENT_KEYS; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "SCALAR_SLIDE_KEYS", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkE5TGYYKO_cjs.SCALAR_SLIDE_KEYS; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "YDOC_META_KEY", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkE5TGYYKO_cjs.YDOC_META_KEY; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "YDOC_SLIDES_KEY", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkE5TGYYKO_cjs.YDOC_SLIDES_KEY; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "observeYDocSlides", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkE5TGYYKO_cjs.observeYDocSlides; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "readElementFromYMap", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkE5TGYYKO_cjs.readElementFromYMap; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "readSlideFromYMap", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkE5TGYYKO_cjs.readSlideFromYMap; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "readSlidesFromYDoc", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkE5TGYYKO_cjs.readSlidesFromYDoc; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "writeElementToYMap", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkE5TGYYKO_cjs.writeElementToYMap; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "writeSlideToYMap", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkE5TGYYKO_cjs.writeSlideToYMap; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "writeSlidesToYDoc", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkE5TGYYKO_cjs.writeSlidesToYDoc; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "decodeDelta", {
|
|
67
67
|
enumerable: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collaboration-sync.d.ts","names":[],"sources":["../../../../pptx/editor/render/collaboration-sync.ts","../../../../pptx/editor/render/collaboration-assets.ts"],"mappings":";;;;;iBAsDiB;EAChB,MAAM;EACN,MAAM,aAAa;EACnB,SAAS;EACT,UAAU,KAAK,gBAAgB;;;iBAIf;EAChB;;YAGW,iBAAiB,kBAAkB,cAAc;iBAE5C;WACP;EACT,MAAM;EACN,OAAO;EACP,SAAS,eAAe;EACxB,SAAS,eAAe;EACxB;EACA,UAAU;EACV,YAAY;EACZ,cAAc,SAAS;EACvB,gBAAgB,SAAS;;iBAGT;EAChB,SAAS,iBAAiB;EAC1B,WAAW,iBAAiB;EAC5B,WAAW,gBAAgB;;iBAGX;EAChB,iBAAiB;EACjB,mBAAmB;EACnB,kBAAkB;;EAElB,uBAAuB,MAAM,sBAAsB,qBAAqB;;qBAO5D;qBACA;qBAEA,qBAAqB;qBA2HrB,wBAAwB,SAAS;qBA8CjC,mBAAmB;qBA0BnB,sBAAsB,SAAS;
|
|
1
|
+
{"version":3,"file":"collaboration-sync.d.ts","names":[],"sources":["../../../../pptx/editor/render/collaboration-sync.ts","../../../../pptx/editor/render/collaboration-assets.ts"],"mappings":";;;;;iBAsDiB;EAChB,MAAM;EACN,MAAM,aAAa;EACnB,SAAS;EACT,UAAU,KAAK,gBAAgB;;;iBAIf;EAChB;;YAGW,iBAAiB,kBAAkB,cAAc;iBAE5C;WACP;EACT,MAAM;EACN,OAAO;EACP,SAAS,eAAe;EACxB,SAAS,eAAe;EACxB;EACA,UAAU;EACV,YAAY;EACZ,cAAc,SAAS;EACvB,gBAAgB,SAAS;;iBAGT;EAChB,SAAS,iBAAiB;EAC1B,WAAW,iBAAiB;EAC5B,WAAW,gBAAgB;;iBAGX;EAChB,iBAAiB;EACjB,mBAAmB;EACnB,kBAAkB;;EAElB,uBAAuB,MAAM,sBAAsB,qBAAqB;;qBAO5D;qBACA;qBAEA,qBAAqB;qBA2HrB,wBAAwB,SAAS;qBA8CjC,mBAAmB;qBA0BnB,sBAAsB,SAAS;wBAiC5B,mBACf,SAAS,aACT,MAAM,UACN,WAAW,cACX,QAAQ;wBAwBO,oBAAoB,MAAM,UAAU,QAAQ,WAAW;wBAkCvD,iBACf,OAAO,WACP,MAAM,UACN,WAAW,cACX,QAAQ;wBAsBO,kBAAkB,MAAM,UAAU,QAAQ,WAAW;;;;;;wBAsCrD,kBACf,QAAQ,aACR,MAAM,UACN,WAAW,cACX;;;;;;wBAqBe,mBAAmB,MAAM,WAAW;;;;;;;wBAyBpC,kBAAkB,MAAM,UAAU,UAAU;qBCte/C;;;;;;;wBAQG,eAAe;;;;;qBAQlB,sBAAsB;wBA+BnB,gBAAgB;;wBAKhB,kBAAkB;wBAOlB,SAAS,mBAAmB;wBAI5B,aAAa,MAAM,WAAW;;wBAK9B,cAAc;;;;;;;;;wBAYd,iBACf,mBACA,KAAK,yBACL,MAAM,UACN,QAAQ;;;;;;;wBAoBO,qBACf,mBACA,KAAK,yBACL,MAAM,UACN,QAAQ;;wBAmCO,gBACf,MAAM,UACN,QAAQ,UACR,SAAS"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { COMPLEX_ELEMENT_FIELDS, COMPLEX_SLIDE_FIELDS, SCALAR_ELEMENT_KEYS, SCALAR_SLIDE_KEYS, YDOC_META_KEY, YDOC_SLIDES_KEY, observeYDocSlides, readElementFromYMap, readSlideFromYMap, readSlidesFromYDoc, writeElementToYMap, writeSlideToYMap, writeSlidesToYDoc } from '../../../chunk-
|
|
1
|
+
export { COMPLEX_ELEMENT_FIELDS, COMPLEX_SLIDE_FIELDS, SCALAR_ELEMENT_KEYS, SCALAR_SLIDE_KEYS, YDOC_META_KEY, YDOC_SLIDES_KEY, observeYDocSlides, readElementFromYMap, readSlideFromYMap, readSlidesFromYDoc, writeElementToYMap, writeSlideToYMap, writeSlidesToYDoc } from '../../../chunk-ZLUHU2SU.mjs';
|
|
2
2
|
import '../../../chunk-T6ASUOBQ.mjs';
|
|
3
3
|
export { decodeDelta, decodeTextBody, encodeSegmentsToDelta, encodeTextBody, isYTextLike } from '../../../chunk-ML62L5KL.mjs';
|
|
4
4
|
import '../../../chunk-LRKFBOAA.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWFN6ZU7N_cjs = require('../../../chunk-WFN6ZU7N.cjs');
|
|
4
4
|
require('../../../chunk-XZPZHXV4.cjs');
|
|
5
5
|
require('../../../chunk-5W2QL4SB.cjs');
|
|
6
6
|
|
|
@@ -114,7 +114,7 @@ function customShowSlides(show, slides) {
|
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
function clearCustomShowActions(slides, id) {
|
|
117
|
-
const result =
|
|
117
|
+
const result = chunkWFN6ZU7N_cjs.mapCustomShowActions(slides, (target) => target === id ? null : target);
|
|
118
118
|
return { slides: result.slides, cleared: result.changed };
|
|
119
119
|
}
|
|
120
120
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkAPCA7N6Q_cjs = require('../../../chunk-APCA7N6Q.cjs');
|
|
4
|
+
var chunkWFN6ZU7N_cjs = require('../../../chunk-WFN6ZU7N.cjs');
|
|
5
5
|
var chunkXZPZHXV4_cjs = require('../../../chunk-XZPZHXV4.cjs');
|
|
6
6
|
require('../../../chunk-5W2QL4SB.cjs');
|
|
7
7
|
var chunkAWIDASUW_cjs = require('../../../chunk-AWIDASUW.cjs');
|
|
@@ -146,10 +146,10 @@ function* findSlideTextTargets(slide, includeNotes = false, includeChartTitles =
|
|
|
146
146
|
function patchTableXml(element, rowIndex, colIndex, original, runs) {
|
|
147
147
|
if (!element.rawXml) return void 0;
|
|
148
148
|
const rawXml = structuredClone(element.rawXml);
|
|
149
|
-
const table =
|
|
150
|
-
const row =
|
|
151
|
-
const cell =
|
|
152
|
-
const paragraphs =
|
|
149
|
+
const table = chunkAPCA7N6Q_cjs.getTblFromRawXml(rawXml);
|
|
150
|
+
const row = chunkAPCA7N6Q_cjs.ensureArray(table?.["a:tr"])[rowIndex];
|
|
151
|
+
const cell = chunkAPCA7N6Q_cjs.ensureArray(row?.["a:tc"])[colIndex];
|
|
152
|
+
const paragraphs = chunkAPCA7N6Q_cjs.ensureArray(
|
|
153
153
|
cell?.["a:txBody"]?.["a:p"]
|
|
154
154
|
);
|
|
155
155
|
let paragraphIndex = 0, runIndex = 0, fieldIndex = 0;
|
|
@@ -164,7 +164,7 @@ function patchTableXml(element, rowIndex, colIndex, original, runs) {
|
|
|
164
164
|
if (previous.isLineBreak) continue;
|
|
165
165
|
const paragraph = paragraphs[paragraphIndex];
|
|
166
166
|
const key = previous.isField ? "a:fld" : "a:r";
|
|
167
|
-
const xmlRun =
|
|
167
|
+
const xmlRun = chunkAPCA7N6Q_cjs.ensureArray(paragraph?.[key])[previous.isField ? fieldIndex++ : runIndex++];
|
|
168
168
|
if (!xmlRun) return void 0;
|
|
169
169
|
if (previous.text !== runs[index].text) xmlRun["a:t"] = runs[index].text;
|
|
170
170
|
}
|
|
@@ -174,7 +174,7 @@ function updateNode(nodes, nodeId, text) {
|
|
|
174
174
|
return nodes.map((node) => {
|
|
175
175
|
if (node.id === nodeId) {
|
|
176
176
|
const originalParagraphs = node.paragraphs ?? (node.runs?.length ? [{ items: node.runs.map((run) => ({ kind: "run", run })) }] : void 0);
|
|
177
|
-
const paragraphs = originalParagraphs ?
|
|
177
|
+
const paragraphs = originalParagraphs ? chunkWFN6ZU7N_cjs.reconcileSmartArtTextParagraphs(originalParagraphs, text) : void 0;
|
|
178
178
|
return { ...node, text, ...paragraphs ? { paragraphs } : {} };
|
|
179
179
|
}
|
|
180
180
|
if (!node.children) return node;
|
|
@@ -253,14 +253,14 @@ function replaceLeaf(element, match, replacement) {
|
|
|
253
253
|
);
|
|
254
254
|
if (!runs) return element;
|
|
255
255
|
let text = runs.map((run) => run.isParagraphBreak ? "\n" : run.isLineBreak ? "" : run.text).join("");
|
|
256
|
-
let rawXml = cell.textRuns?.length ? patchTableXml(element, rowIndex, colIndex, original2, runs) :
|
|
256
|
+
let rawXml = cell.textRuns?.length ? patchTableXml(element, rowIndex, colIndex, original2, runs) : chunkAPCA7N6Q_cjs.updateCellTextInRawXml(element, rowIndex, colIndex, text);
|
|
257
257
|
if (rawXml) {
|
|
258
|
-
const table =
|
|
259
|
-
const xmlRow =
|
|
260
|
-
const xmlCell =
|
|
261
|
-
text =
|
|
258
|
+
const table = chunkAPCA7N6Q_cjs.getTblFromRawXml(rawXml);
|
|
259
|
+
const xmlRow = chunkAPCA7N6Q_cjs.ensureArray(table?.["a:tr"])[rowIndex];
|
|
260
|
+
const xmlCell = chunkAPCA7N6Q_cjs.ensureArray(xmlRow?.["a:tc"])[colIndex];
|
|
261
|
+
text = chunkAPCA7N6Q_cjs.flattenCellTxBodyText(
|
|
262
262
|
xmlCell?.["a:txBody"],
|
|
263
|
-
(value) =>
|
|
263
|
+
(value) => chunkAPCA7N6Q_cjs.ensureArray(value)
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
const rows = [...element.tableData.rows], cells = [...row.cells];
|
|
@@ -274,7 +274,7 @@ function replaceLeaf(element, match, replacement) {
|
|
|
274
274
|
if (!node || match.startOffset < 0 || match.startOffset + match.length > node.text.length)
|
|
275
275
|
return element;
|
|
276
276
|
const text = node.text.slice(0, match.startOffset) + replacement + node.text.slice(match.startOffset + match.length);
|
|
277
|
-
const next =
|
|
277
|
+
const next = chunkWFN6ZU7N_cjs.updateSmartArtNodeText({ ...data, nodes }, node.id, text);
|
|
278
278
|
const drawingShapes = next.drawingShapes?.map((shape, index) => {
|
|
279
279
|
if (shape === data.drawingShapes?.[index] || !shape.textSegments) return shape;
|
|
280
280
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../chunks/index
|
|
2
|
-
import { C as PptxSlide } from "../../chunks/text-operations-
|
|
1
|
+
import "../../chunks/index--HBUyILF.js";
|
|
2
|
+
import { C as PptxSlide } from "../../chunks/text-operations-CVHXOSit.js";
|
|
3
3
|
/** Identifies a single match of the find query at segment-level precision. */
|
|
4
4
|
export interface FindResult {
|
|
5
5
|
/** Zero-based index of the slide in the slides array. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { updateCellTextInRawXml, getTblFromRawXml, ensureArray, flattenCellTxBodyText } from '../../../chunk-
|
|
2
|
-
import { updateSmartArtNodeText, reconcileSmartArtTextParagraphs } from '../../../chunk-
|
|
1
|
+
import { updateCellTextInRawXml, getTblFromRawXml, ensureArray, flattenCellTxBodyText } from '../../../chunk-6MU4WKHS.mjs';
|
|
2
|
+
import { updateSmartArtNodeText, reconcileSmartArtTextParagraphs } from '../../../chunk-DEDK2J57.mjs';
|
|
3
3
|
import { hasTextProperties } from '../../../chunk-GXHKNSZX.mjs';
|
|
4
4
|
import '../../../chunk-CA7KCNL3.mjs';
|
|
5
5
|
import { remapTextToSegments } from '../../../chunk-CBNKBVX5.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../../../chunk-
|
|
4
|
-
require('../../../chunk-
|
|
5
|
-
var
|
|
3
|
+
require('../../../chunk-4GPLQEEC.cjs');
|
|
4
|
+
require('../../../chunk-APCA7N6Q.cjs');
|
|
5
|
+
var chunkWFN6ZU7N_cjs = require('../../../chunk-WFN6ZU7N.cjs');
|
|
6
6
|
require('../../../chunk-XZPZHXV4.cjs');
|
|
7
7
|
require('../../../chunk-5W2QL4SB.cjs');
|
|
8
8
|
|
|
@@ -21,7 +21,7 @@ function reassignElementId(element) {
|
|
|
21
21
|
return newElement;
|
|
22
22
|
}
|
|
23
23
|
function duplicateSlide(slide, newSlideNumber) {
|
|
24
|
-
const cloned =
|
|
24
|
+
const cloned = chunkWFN6ZU7N_cjs.cloneSlide(slide);
|
|
25
25
|
cloned.sourceSlideId = slide.id.startsWith("ppt/slides/") ? slide.id : slide.sourceSlideId ?? slide.id;
|
|
26
26
|
cloned.id = `slide${newSlideNumber}`;
|
|
27
27
|
cloned.rId = `rId${newSlideNumber + 1}`;
|
|
@@ -51,7 +51,7 @@ function duplicateSlide(slide, newSlideNumber) {
|
|
|
51
51
|
function captureSlideClipboard(slides, ids) {
|
|
52
52
|
return ids.flatMap((id) => {
|
|
53
53
|
const slide = slides.find((candidate) => candidate.id === id);
|
|
54
|
-
return slide ? [
|
|
54
|
+
return slide ? [chunkWFN6ZU7N_cjs.cloneSlide(slide)] : [];
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
function createSlidePaste(clipboard, insertAt, templates = {}) {
|
|
@@ -62,14 +62,14 @@ function createSlidePaste(clipboard, insertAt, templates = {}) {
|
|
|
62
62
|
})),
|
|
63
63
|
sourceIds: clipboard.map((slide) => slide.id),
|
|
64
64
|
insertAt,
|
|
65
|
-
templateElements: clipboard.map((slide) => (templates[slide.id] ?? []).map(
|
|
65
|
+
templateElements: clipboard.map((slide) => (templates[slide.id] ?? []).map(chunkWFN6ZU7N_cjs.cloneElement))
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
function insertSlidePaste(slides, request) {
|
|
69
69
|
const index = Math.max(0, Math.min(slides.length, request.insertAt));
|
|
70
70
|
const next = [
|
|
71
71
|
...slides.slice(0, index),
|
|
72
|
-
...request.copies.map(
|
|
72
|
+
...request.copies.map(chunkWFN6ZU7N_cjs.cloneSlide),
|
|
73
73
|
...slides.slice(index)
|
|
74
74
|
];
|
|
75
75
|
return next.map(
|
|
@@ -79,12 +79,12 @@ function insertSlidePaste(slides, request) {
|
|
|
79
79
|
function applySlidePasteTemplates(mapping, request) {
|
|
80
80
|
const next = { ...mapping };
|
|
81
81
|
request.copies.forEach((copy, index) => {
|
|
82
|
-
next[copy.id] = (request.templateElements[index] ?? []).map(
|
|
82
|
+
next[copy.id] = (request.templateElements[index] ?? []).map(chunkWFN6ZU7N_cjs.cloneElement);
|
|
83
83
|
});
|
|
84
84
|
return next;
|
|
85
85
|
}
|
|
86
86
|
function captureSlideClipboardTemplates(mapping, ids) {
|
|
87
|
-
return Object.fromEntries(ids.map((id) => [id, (mapping[id] ?? []).map(
|
|
87
|
+
return Object.fromEntries(ids.map((id) => [id, (mapping[id] ?? []).map(chunkWFN6ZU7N_cjs.cloneElement)]));
|
|
88
88
|
}
|
|
89
89
|
function makeSlideId(idGenerator) {
|
|
90
90
|
if (idGenerator) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import { cloneSlide, cloneElement } from '../../../chunk-
|
|
1
|
+
import '../../../chunk-Z734BYYR.mjs';
|
|
2
|
+
import '../../../chunk-6MU4WKHS.mjs';
|
|
3
|
+
import { cloneSlide, cloneElement } from '../../../chunk-DEDK2J57.mjs';
|
|
4
4
|
import '../../../chunk-GXHKNSZX.mjs';
|
|
5
5
|
import '../../../chunk-CA7KCNL3.mjs';
|
|
6
6
|
|