ooxml-core 1.46.0 → 1.48.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-6UQWMUVU.cjs +14 -0
- package/dist/{PptxHandler-HWEOIHEA.mjs → PptxHandler-PLSH2BAS.mjs} +2 -2
- package/dist/PptxHandler-QLKZVYCG.mjs +5 -0
- package/dist/{PresentationBuilder-66RV4F45.mjs → PresentationBuilder-3QXOJNRO.mjs} +2 -2
- package/dist/{PresentationBuilder-2BCCMZW7.cjs → PresentationBuilder-CRBFFHNW.cjs} +6 -6
- package/dist/{PresentationBuilder-AFD72LIG.mjs → PresentationBuilder-DQ3XFU4R.mjs} +3 -3
- package/dist/{chunk-G6LEU3Y5.mjs → chunk-32K7JG2Z.mjs} +1 -1
- package/dist/{chunk-5TOVSCVT.cjs → chunk-7RCBSNXT.cjs} +3 -3
- package/dist/{chunk-EI6555OK.mjs → chunk-CXIDPUT6.mjs} +1 -1
- package/dist/{chunk-E2TTMUKU.mjs → chunk-EKEE6BTU.mjs} +745 -65
- package/dist/{chunk-QUAFASFC.cjs → chunk-HBQBS7PO.cjs} +65 -0
- package/dist/{chunk-LXVE2VKR.mjs → chunk-I5REMIZR.mjs} +65 -1
- package/dist/{chunk-L6MJGE3Q.mjs → chunk-IKFTITJ7.mjs} +5 -5
- package/dist/{chunk-X2DC7XRL.mjs → chunk-K5G6MV37.mjs} +66 -2
- package/dist/{chunk-IBRV3AK3.cjs → chunk-RRA262A6.cjs} +2032 -1340
- package/dist/{chunk-H43QQVJU.mjs → chunk-WAYEYX4G.mjs} +1 -1
- package/dist/{chunk-HH3AYM63.mjs → chunk-WLKOLTBH.mjs} +760 -68
- package/dist/pptx/automation/index.cjs +45721 -44894
- package/dist/pptx/automation/index.d.ts +6 -6
- package/dist/pptx/automation/index.mjs +5 -5
- package/dist/pptx/chunks/{elements-B4Z6N-Gz.d.ts → elements-CValElsy.d.ts} +3 -428
- package/dist/pptx/chunks/elements-CValElsy.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-DtFoPmk7.d.ts → index-BaBgJR8i.d.ts} +203 -15
- package/dist/pptx/chunks/index-BaBgJR8i.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-BPGaFlm5.d.ts → index-ClHCBGOf.d.ts} +10 -8
- package/dist/pptx/chunks/{index-BPGaFlm5.d.ts.map → index-ClHCBGOf.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-D4-WJQ1r.d.ts → index-DqkBjVqR.d.ts} +4 -4
- package/dist/pptx/chunks/{index-D4-WJQ1r.d.ts.map → index-DqkBjVqR.d.ts.map} +1 -1
- package/dist/pptx/chunks/{table-BfgZfw5R.d.ts → table-DUO1H9-r.d.ts} +441 -2
- package/dist/pptx/chunks/table-DUO1H9-r.d.ts.map +1 -0
- package/dist/pptx/chunks/{text-operations-CVHXOSit.d.ts → text-operations-B3lZjvs_.d.ts} +3 -3
- package/dist/pptx/chunks/{text-operations-CVHXOSit.d.ts.map → text-operations-B3lZjvs_.d.ts.map} +1 -1
- package/dist/pptx/cli/index.cjs +1047 -220
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +2 -2
- 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/editor/render/table-layout.d.ts +1 -1
- package/dist/pptx/editor/render/text-runs-style-patch.d.ts +1 -1
- package/dist/pptx/editor/render/text-style-scope.d.ts +1 -1
- package/dist/pptx/index.cjs +51837 -51026
- package/dist/pptx/index.d.ts +7 -7
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/node/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/PptxHandler-FZ43IJFP.mjs +0 -5
- package/dist/PptxHandler-XAUKKK36.cjs +0 -14
- package/dist/pptx/chunks/elements-B4Z6N-Gz.d.ts.map +0 -1
- package/dist/pptx/chunks/index-DtFoPmk7.d.ts.map +0 -1
- package/dist/pptx/chunks/table-BfgZfw5R.d.ts.map +0 -1
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-B3lZjvs_.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-32K7JG2Z.mjs';
|
|
3
|
+
import { PptxMarkdownConverter } from '../../chunk-WAYEYX4G.mjs';
|
|
4
|
+
import { PptxHandler } from '../../chunk-EKEE6BTU.mjs';
|
|
5
|
+
import { SvgExporter, isImageLikeElement, blobUrlToDataUrl } from '../../chunk-K5G6MV37.mjs';
|
|
6
6
|
import '../../chunk-EYCM7RVL.mjs';
|
|
7
7
|
import '../../chunk-2N7RZQLC.mjs';
|
|
8
8
|
import '../../chunk-VDUNZTJC.mjs';
|
|
@@ -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-DqkBjVqR.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-WAYEYX4G.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-K5G6MV37.mjs';
|
|
4
4
|
import '../../chunk-EYCM7RVL.mjs';
|
|
5
5
|
import '../../chunk-VDUNZTJC.mjs';
|
|
6
6
|
import '../../chunk-7DJEJTN7.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHBQBS7PO_cjs = require('../../../chunk-HBQBS7PO.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 = chunkHBQBS7PO_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 chunk7RCBSNXT_cjs = require('../../../chunk-7RCBSNXT.cjs');
|
|
4
|
+
var chunkHBQBS7PO_cjs = require('../../../chunk-HBQBS7PO.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 = chunk7RCBSNXT_cjs.getTblFromRawXml(rawXml);
|
|
150
|
+
const row = chunk7RCBSNXT_cjs.ensureArray(table?.["a:tr"])[rowIndex];
|
|
151
|
+
const cell = chunk7RCBSNXT_cjs.ensureArray(row?.["a:tc"])[colIndex];
|
|
152
|
+
const paragraphs = chunk7RCBSNXT_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 = chunk7RCBSNXT_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 ? chunkHBQBS7PO_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) : chunk7RCBSNXT_cjs.updateCellTextInRawXml(element, rowIndex, colIndex, text);
|
|
257
257
|
if (rawXml) {
|
|
258
|
-
const table =
|
|
259
|
-
const xmlRow =
|
|
260
|
-
const xmlCell =
|
|
261
|
-
text =
|
|
258
|
+
const table = chunk7RCBSNXT_cjs.getTblFromRawXml(rawXml);
|
|
259
|
+
const xmlRow = chunk7RCBSNXT_cjs.ensureArray(table?.["a:tr"])[rowIndex];
|
|
260
|
+
const xmlCell = chunk7RCBSNXT_cjs.ensureArray(xmlRow?.["a:tc"])[colIndex];
|
|
261
|
+
text = chunk7RCBSNXT_cjs.flattenCellTxBodyText(
|
|
262
262
|
xmlCell?.["a:txBody"],
|
|
263
|
-
(value) =>
|
|
263
|
+
(value) => chunk7RCBSNXT_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 = chunkHBQBS7PO_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-ClHCBGOf.js";
|
|
2
|
+
import { C as PptxSlide } from "../../chunks/text-operations-B3lZjvs_.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-CXIDPUT6.mjs';
|
|
2
|
+
import { updateSmartArtNodeText, reconcileSmartArtTextParagraphs } from '../../../chunk-I5REMIZR.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-RRA262A6.cjs');
|
|
4
|
+
require('../../../chunk-7RCBSNXT.cjs');
|
|
5
|
+
var chunkHBQBS7PO_cjs = require('../../../chunk-HBQBS7PO.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 = chunkHBQBS7PO_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 ? [chunkHBQBS7PO_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(chunkHBQBS7PO_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(chunkHBQBS7PO_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(chunkHBQBS7PO_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(chunkHBQBS7PO_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-WLKOLTBH.mjs';
|
|
2
|
+
import '../../../chunk-CXIDPUT6.mjs';
|
|
3
|
+
import { cloneSlide, cloneElement } from '../../../chunk-I5REMIZR.mjs';
|
|
4
4
|
import '../../../chunk-GXHKNSZX.mjs';
|
|
5
5
|
import '../../../chunk-CA7KCNL3.mjs';
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as PptxTableData } from "../../chunks/table-
|
|
1
|
+
import { v as PptxTableData } from "../../chunks/table-DUO1H9-r.js";
|
|
2
2
|
/** Default pixel height assigned to a freshly inserted row. */
|
|
3
3
|
export declare const DEFAULT_INSERTED_ROW_HEIGHT = 40;
|
|
4
4
|
/** Insert a row and extend each vertical merge crossing the insertion point. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as TextStyle } from "../../chunks/text-t_wJ2OwM.js";
|
|
2
|
-
import { _ as PptxElementWithText, m as PptxElement } from "../../chunks/elements-
|
|
2
|
+
import { _ as PptxElementWithText, m as PptxElement } from "../../chunks/elements-CValElsy.js";
|
|
3
3
|
/** Immutable whole-text edit, using the pre-edit body style for run inheritance. */
|
|
4
4
|
export declare function textRunsStylePatch(element: PptxElement, updates: Partial<TextStyle>): Pick<Partial<PptxElementWithText>, 'textStyle' | 'textSegments'>;
|
|
5
5
|
//# sourceMappingURL=text-runs-style-patch.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as TextStyle, r as TextSegment } from "../../chunks/text-t_wJ2OwM.js";
|
|
2
|
-
import { m as PptxElement } from "../../chunks/elements-
|
|
2
|
+
import { m as PptxElement } from "../../chunks/elements-CValElsy.js";
|
|
3
3
|
import { TextDecorationFlag } from "./text-content-style.js";
|
|
4
4
|
/**
|
|
5
5
|
* Keys read from `element.textStyle` only: `a:bodyPr` attributes, the text
|