ooxml-core 1.48.0 → 1.48.1
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/pptx/automation/index.d.ts +5 -12
- package/dist/pptx/automation/index.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/chart-formatting-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/chart-formatting-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/chart-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/chart-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/chart-user-shape-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/chart-user-shape-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/element-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/element-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/export-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/export-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/geometry-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/geometry-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/hyperlink-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/hyperlink-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/index.d.ts +8 -8
- package/dist/pptx/automation/schemas/index.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/json-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/json-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/layout-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/layout-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/lock-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/lock-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/metadata-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/metadata-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/ole-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/ole-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/presentation-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/presentation-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/section-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/section-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/slide-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/slide-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/smartart-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/smartart-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/table-style-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/table-style-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/template-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/template-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/theme-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/theme-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/validation-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/validation-schemas.d.ts.map +1 -1
- package/dist/pptx/chunks/color-primitives-DHyz14D9.d.ts +151 -0
- package/dist/pptx/chunks/color-primitives-DHyz14D9.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-ClHCBGOf.d.ts → index-7tA9HqRL.d.ts} +10057 -1222
- package/dist/pptx/chunks/index-7tA9HqRL.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-DqkBjVqR.d.ts → index-CAzt1jbx.d.ts} +4 -5
- package/dist/pptx/chunks/index-CAzt1jbx.d.ts.map +1 -0
- package/dist/pptx/chunks/{schemas-LHsDbVOw.d.ts → index-CyAgQ2zG.d.ts} +6 -2
- package/dist/pptx/chunks/index-CyAgQ2zG.d.ts.map +1 -0
- package/dist/pptx/chunks/index-cJSPBkU1.d.ts +185 -0
- package/dist/pptx/chunks/index-cJSPBkU1.d.ts.map +1 -0
- package/dist/pptx/chunks/index-cr_sgz1w.d.ts +94 -0
- package/dist/pptx/chunks/index-cr_sgz1w.d.ts.map +1 -0
- package/dist/pptx/chunks/presentation-Be108jrz.d.ts +12521 -0
- package/dist/pptx/chunks/presentation-Be108jrz.d.ts.map +1 -0
- package/dist/pptx/chunks/{inspection-status-TKac7eqb.d.ts → signature-inspection-status-TKac7eqb.d.ts} +1 -1
- package/dist/pptx/chunks/signature-inspection-status-TKac7eqb.d.ts.map +1 -0
- package/dist/pptx/chunks/text-operations-a1cqBYk9.d.ts +111 -0
- package/dist/pptx/chunks/text-operations-a1cqBYk9.d.ts.map +1 -0
- package/dist/pptx/cli/index.d.ts +17 -1
- package/dist/pptx/cli/index.d.ts.map +1 -1
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/editor/ai/table-merge.d.ts +16 -0
- package/dist/pptx/editor/ai/table-merge.d.ts.map +1 -1
- package/dist/pptx/editor/loader/element-patch-walker.d.ts +15 -0
- package/dist/pptx/editor/loader/element-patch-walker.d.ts.map +1 -1
- package/dist/pptx/editor/loader/lazy-image-resolution.d.ts +15 -0
- package/dist/pptx/editor/loader/lazy-image-resolution.d.ts.map +1 -1
- package/dist/pptx/editor/loader/load-content-helpers.d.ts +7 -0
- package/dist/pptx/editor/loader/load-content-helpers.d.ts.map +1 -1
- package/dist/pptx/editor/loader/table-style-image-paths.d.ts +20 -0
- package/dist/pptx/editor/loader/table-style-image-paths.d.ts.map +1 -1
- package/dist/pptx/editor/loader/text-fill-image-paths.d.ts +19 -0
- package/dist/pptx/editor/loader/text-fill-image-paths.d.ts.map +1 -1
- package/dist/pptx/editor/render/bullet-autonum.d.ts +14 -0
- package/dist/pptx/editor/render/bullet-list.d.ts +8 -0
- package/dist/pptx/editor/render/bullet-list.d.ts.map +1 -1
- package/dist/pptx/editor/render/bullet-toggle.d.ts +4 -0
- package/dist/pptx/editor/render/bullet-toggle.d.ts.map +1 -1
- package/dist/pptx/editor/render/chart-user-shape-edit.d.ts +12 -0
- package/dist/pptx/editor/render/chart-user-shape-edit.d.ts.map +1 -1
- package/dist/pptx/editor/render/clone.d.ts +20 -0
- package/dist/pptx/editor/render/clone.d.ts.map +1 -1
- package/dist/pptx/editor/render/collaboration-assets.d.ts +17 -0
- package/dist/pptx/editor/render/collaboration-live-patch-target.d.ts +9 -0
- package/dist/pptx/editor/render/collaboration-live-patch-target.d.ts.map +1 -1
- package/dist/pptx/editor/render/collaboration-reconcile.d.ts +21 -0
- package/dist/pptx/editor/render/collaboration-reconcile.d.ts.map +1 -1
- package/dist/pptx/editor/render/collaboration-sync.d.ts +32 -4
- package/dist/pptx/editor/render/collaboration-sync.d.ts.map +1 -1
- package/dist/pptx/editor/render/collaboration-text-codec.d.ts +33 -2
- package/dist/pptx/editor/render/collaboration-text-codec.d.ts.map +1 -0
- package/dist/pptx/editor/render/collaboration-text-merge.d.ts +36 -2
- package/dist/pptx/editor/render/collaboration-text-merge.d.ts.map +1 -0
- package/dist/pptx/editor/render/collaboration-text-native-edit.d.ts +2 -2
- package/dist/pptx/editor/render/collaboration-text-positions.d.ts +34 -2
- package/dist/pptx/editor/render/collaboration-text-positions.d.ts.map +1 -0
- package/dist/pptx/editor/render/collaboration-text-projection.d.ts +1 -1
- package/dist/pptx/editor/render/collaboration-text-session-apply.d.ts +3 -3
- package/dist/pptx/editor/render/collaboration-text-session-delta.d.ts +36 -2
- package/dist/pptx/editor/render/collaboration-text-session-delta.d.ts.map +1 -0
- package/dist/pptx/editor/render/collaboration-text-session-paragraph.d.ts +1 -1
- package/dist/pptx/editor/render/collaboration-text-session.d.ts +40 -2
- package/dist/pptx/editor/render/collaboration-text-session.d.ts.map +1 -0
- package/dist/pptx/editor/render/collaboration-text-snapshot-positions.d.ts +2 -2
- package/dist/pptx/editor/render/custom-show-operations.d.ts +14 -0
- package/dist/pptx/editor/render/custom-show-operations.d.ts.map +1 -1
- package/dist/pptx/editor/render/deck-save-encryption.d.ts +24 -0
- package/dist/pptx/editor/render/deck-save-encryption.d.ts.map +1 -1
- package/dist/pptx/editor/render/element-locks.d.ts +25 -0
- package/dist/pptx/editor/render/element-locks.d.ts.map +1 -1
- package/dist/pptx/editor/render/element-operations.d.ts +11 -0
- package/dist/pptx/editor/render/element-operations.d.ts.map +1 -1
- package/dist/pptx/editor/render/element.d.ts +12 -0
- package/dist/pptx/editor/render/element.d.ts.map +1 -1
- package/dist/pptx/editor/render/find-replace.d.ts +8 -2
- package/dist/pptx/editor/render/find-replace.d.ts.map +1 -1
- package/dist/pptx/editor/render/font-family-update.d.ts +32 -1
- package/dist/pptx/editor/render/font-family-update.d.ts.map +1 -1
- package/dist/pptx/editor/render/group-drill.d.ts +26 -0
- package/dist/pptx/editor/render/group-drill.d.ts.map +1 -1
- package/dist/pptx/editor/render/group-ops.d.ts +24 -0
- package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts +21 -1
- package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts.map +1 -1
- package/dist/pptx/editor/render/remap-text.d.ts +5 -0
- package/dist/pptx/editor/render/remap-text.d.ts.map +1 -1
- package/dist/pptx/editor/render/section-operations.d.ts +14 -0
- package/dist/pptx/editor/render/section-operations.d.ts.map +1 -1
- package/dist/pptx/editor/render/slide-background-patch.d.ts +15 -0
- package/dist/pptx/editor/render/slide-background-patch.d.ts.map +1 -1
- package/dist/pptx/editor/render/slide-operations.d.ts +12 -0
- package/dist/pptx/editor/render/slide-operations.d.ts.map +1 -1
- package/dist/pptx/editor/render/slide-search.d.ts +6 -0
- package/dist/pptx/editor/render/slide-search.d.ts.map +1 -1
- package/dist/pptx/editor/render/slide-size-rescale.d.ts +18 -0
- package/dist/pptx/editor/render/slide-size-rescale.d.ts.map +1 -1
- package/dist/pptx/editor/render/slide-transition-edits.d.ts +15 -0
- package/dist/pptx/editor/render/slide-transition-edits.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-cell-edit.d.ts +8 -0
- package/dist/pptx/editor/render/table-cell-edit.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-cell-merge.d.ts +15 -0
- package/dist/pptx/editor/render/table-cell-merge.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-data-grid-ops.d.ts +26 -0
- package/dist/pptx/editor/render/table-data-grid-ops.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-layout.d.ts +3 -1
- package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-merge.d.ts +16 -0
- package/dist/pptx/editor/render/table-merge.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-style-editor-descriptor.d.ts +13 -0
- package/dist/pptx/editor/render/table-style-editor-descriptor.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-style-editor-edit.d.ts +13 -0
- package/dist/pptx/editor/render/table-style-editor-edit.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-style-editor-parts.d.ts +10 -0
- package/dist/pptx/editor/render/table-style-editor-parts.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-style-map-edits.d.ts +20 -0
- package/dist/pptx/editor/render/table-style-map-edits.d.ts.map +1 -1
- package/dist/pptx/editor/render/text-content-style.d.ts +2 -1
- package/dist/pptx/editor/render/text-content-style.d.ts.map +1 -1
- package/dist/pptx/editor/render/text-runs-style-patch.d.ts +2 -2
- package/dist/pptx/editor/render/text-segment-paragraph-break.d.ts +23 -0
- package/dist/pptx/editor/render/text-segment-paragraph-break.d.ts.map +1 -1
- package/dist/pptx/editor/render/text-style-scope.d.ts +20 -2
- package/dist/pptx/editor/render/text-style-scope.d.ts.map +1 -1
- package/dist/pptx/editor/render/text-theme.d.ts +11 -0
- package/dist/pptx/editor/render/text-theme.d.ts.map +1 -1
- package/dist/pptx/editor/render/theme-editor-presets.d.ts +9 -0
- package/dist/pptx/editor/render/theme-editor-presets.d.ts.map +1 -1
- package/dist/pptx/editor/render/update-text-segment-style.d.ts +2 -1
- package/dist/pptx/editor/render/update-text-segment-style.d.ts.map +1 -1
- package/dist/pptx/index.d.ts +23 -9
- package/dist/pptx/node/index.d.ts +17 -1
- package/dist/pptx/node/index.d.ts.map +1 -1
- package/dist/pptx/signature-node/index.d.ts +8 -1
- package/dist/pptx/signature-node/index.d.ts.map +1 -1
- package/dist/pptx/smartart-layouts/index.d.ts +8 -1
- package/dist/pptx/smartart-layouts/index.d.ts.map +1 -1
- package/dist/pptx/ui/index.d.ts +2 -0
- package/dist/pptx/ui/index.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/pptx/chunks/collaboration-text-codec-1VmwD3yq.d.ts +0 -34
- package/dist/pptx/chunks/collaboration-text-codec-1VmwD3yq.d.ts.map +0 -1
- package/dist/pptx/chunks/collaboration-text-merge-B-tth-0W.d.ts +0 -19
- package/dist/pptx/chunks/collaboration-text-merge-B-tth-0W.d.ts.map +0 -1
- package/dist/pptx/chunks/collaboration-text-positions-D-1Jo1Fz.d.ts +0 -34
- package/dist/pptx/chunks/collaboration-text-positions-D-1Jo1Fz.d.ts.map +0 -1
- package/dist/pptx/chunks/collaboration-text-session-CWHTaWF4.d.ts +0 -41
- package/dist/pptx/chunks/collaboration-text-session-CWHTaWF4.d.ts.map +0 -1
- package/dist/pptx/chunks/collaboration-text-session-delta-Dxzybssp.d.ts +0 -37
- package/dist/pptx/chunks/collaboration-text-session-delta-Dxzybssp.d.ts.map +0 -1
- package/dist/pptx/chunks/elements-CValElsy.d.ts +0 -3568
- package/dist/pptx/chunks/elements-CValElsy.d.ts.map +0 -1
- package/dist/pptx/chunks/index-BaBgJR8i.d.ts +0 -9913
- package/dist/pptx/chunks/index-BaBgJR8i.d.ts.map +0 -1
- package/dist/pptx/chunks/index-ClHCBGOf.d.ts.map +0 -1
- package/dist/pptx/chunks/index-DqkBjVqR.d.ts.map +0 -1
- package/dist/pptx/chunks/inspection-status-TKac7eqb.d.ts.map +0 -1
- package/dist/pptx/chunks/schemas-LHsDbVOw.d.ts.map +0 -1
- package/dist/pptx/chunks/smart-art-DB37AsFP.d.ts +0 -1817
- package/dist/pptx/chunks/smart-art-DB37AsFP.d.ts.map +0 -1
- package/dist/pptx/chunks/table-DUO1H9-r.d.ts +0 -1798
- package/dist/pptx/chunks/table-DUO1H9-r.d.ts.map +0 -1
- package/dist/pptx/chunks/text-operations-B3lZjvs_.d.ts +0 -3363
- package/dist/pptx/chunks/text-operations-B3lZjvs_.d.ts.map +0 -1
- package/dist/pptx/chunks/text-t_wJ2OwM.d.ts +0 -1452
- package/dist/pptx/chunks/text-t_wJ2OwM.d.ts.map +0 -1
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { At as PptxElementWithText, Dt as PptxElement, Ft as ShapePptxElement, Mt as PptxImageLikeElement, Vt as ZoomPptxElement, _ as PptxSlide, bt as InkPptxElement, ht as ConnectorPptxElement, kt as PptxElementWithShapeStyle, rt as PptxThemeColorScheme, st as PptxThemeFontScheme, zt as TextPptxElement } from "./presentation-Be108jrz.js";
|
|
2
|
+
import "./color-ref-CwUQoKPJ.js";
|
|
3
|
+
/**
|
|
4
|
+
* Narrows a {@link PptxElement} to {@link TextPptxElement}.
|
|
5
|
+
*
|
|
6
|
+
* @param element - Any PPTX element.
|
|
7
|
+
* @returns `true` when `element.type === "text"`.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* if (isTextElement(el)) {
|
|
12
|
+
* // => true when el.type === "text"
|
|
13
|
+
* console.log(el.text, el.textSegments);
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
declare function isTextElement(element: PptxElement): element is TextPptxElement;
|
|
18
|
+
/**
|
|
19
|
+
* Narrows a {@link PptxElement} to {@link ShapePptxElement}.
|
|
20
|
+
*
|
|
21
|
+
* @param element - Any PPTX element.
|
|
22
|
+
* @returns `true` when `element.type === "shape"`.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* if (isShapeElement(el)) {
|
|
27
|
+
* // => true when el.type === "shape"
|
|
28
|
+
* console.log(el.shapeType, el.shapeStyle);
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
declare function isShapeElement(element: PptxElement): element is ShapePptxElement;
|
|
33
|
+
/**
|
|
34
|
+
* Narrows a {@link PptxElement} to {@link ConnectorPptxElement}.
|
|
35
|
+
*
|
|
36
|
+
* @param element - Any PPTX element.
|
|
37
|
+
* @returns `true` when `element.type === "connector"`.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* if (isConnectorElement(el)) {
|
|
42
|
+
* // => true when el.type === "connector"
|
|
43
|
+
* console.log(el.connectionStart, el.connectionEnd);
|
|
44
|
+
* }
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
declare function isConnectorElement(element: PptxElement): element is ConnectorPptxElement;
|
|
48
|
+
/**
|
|
49
|
+
* Narrows a {@link PptxElement} to {@link PptxImageLikeElement}
|
|
50
|
+
* (image or picture).
|
|
51
|
+
*
|
|
52
|
+
* @param element - Any PPTX element.
|
|
53
|
+
* @returns `true` when `element.type` is `"image"` or `"picture"`.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* if (isImageLikeElement(el)) {
|
|
58
|
+
* // => true when el.type === "image" or "picture"
|
|
59
|
+
* console.log(el.imagePath, el.altText);
|
|
60
|
+
* }
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
declare function isImageLikeElement(element: PptxElement): element is PptxImageLikeElement;
|
|
64
|
+
/**
|
|
65
|
+
* Narrows a {@link PptxElement} to {@link InkPptxElement}.
|
|
66
|
+
*
|
|
67
|
+
* @param element - Any PPTX element.
|
|
68
|
+
* @returns `true` when `element.type === "ink"`.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* if (isInkElement(el)) {
|
|
73
|
+
* // => true when el.type === "ink"
|
|
74
|
+
* console.log(el.inkSvg);
|
|
75
|
+
* }
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
declare function isInkElement(element: PptxElement): element is InkPptxElement;
|
|
79
|
+
/**
|
|
80
|
+
* Narrows a {@link PptxElement} to {@link ZoomPptxElement}.
|
|
81
|
+
*
|
|
82
|
+
* @param element - Any PPTX element.
|
|
83
|
+
* @returns `true` when `element.type === "zoom"`.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* if (isZoomElement(el)) {
|
|
88
|
+
* // => true when el.type === "zoom"
|
|
89
|
+
* console.log(el.zoomType, el.targetSlideIndex);
|
|
90
|
+
* }
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
declare function isZoomElement(element: PptxElement): element is ZoomPptxElement;
|
|
94
|
+
/**
|
|
95
|
+
* Narrows to elements that have `text`, `textStyle`, and `textSegments`
|
|
96
|
+
* properties (text, shape, or connector elements).
|
|
97
|
+
*
|
|
98
|
+
* @param element - Any PPTX element.
|
|
99
|
+
* @returns `true` when the element carries text properties.
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```ts
|
|
103
|
+
* if (hasTextProperties(el)) {
|
|
104
|
+
* // => true for text, shape, or connector elements
|
|
105
|
+
* console.log(el.text, el.textStyle, el.textSegments);
|
|
106
|
+
* }
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
109
|
+
declare function hasTextProperties(element: PptxElement): element is PptxElementWithText;
|
|
110
|
+
/**
|
|
111
|
+
* Narrows to elements that have `shapeStyle`, `shapeType`, and
|
|
112
|
+
* `shapeAdjustments` properties (text, shape, connector, image, or picture).
|
|
113
|
+
*
|
|
114
|
+
* @param element - Any PPTX element.
|
|
115
|
+
* @returns `true` when the element carries shape-style properties.
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* ```ts
|
|
119
|
+
* if (hasShapeProperties(el)) {
|
|
120
|
+
* // => true for text, shape, connector, image, or picture elements
|
|
121
|
+
* console.log(el.shapeStyle, el.shapeType);
|
|
122
|
+
* }
|
|
123
|
+
* ```
|
|
124
|
+
*/
|
|
125
|
+
declare function hasShapeProperties(element: PptxElement): element is PptxElementWithShapeStyle;
|
|
126
|
+
/**
|
|
127
|
+
* A complete theme preset that can be applied to a presentation.
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* ```ts
|
|
131
|
+
* import { THEME_PRESETS } from "pptx-viewer-core";
|
|
132
|
+
*
|
|
133
|
+
* const office = THEME_PRESETS.find(p => p.id === "office");
|
|
134
|
+
* await handler.switchTheme(office.colorScheme, office.fontScheme, office.name);
|
|
135
|
+
* ```
|
|
136
|
+
*/
|
|
137
|
+
interface PptxThemePreset {
|
|
138
|
+
/** Unique identifier for the preset. */
|
|
139
|
+
id: string;
|
|
140
|
+
/** Human-readable display name. */
|
|
141
|
+
name: string;
|
|
142
|
+
/** The 12-colour scheme. */
|
|
143
|
+
colorScheme: PptxThemeColorScheme;
|
|
144
|
+
/** Heading and body font families. */
|
|
145
|
+
fontScheme: PptxThemeFontScheme;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* All built-in theme presets.
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* ```ts
|
|
152
|
+
* import { THEME_PRESETS } from "pptx-viewer-core";
|
|
153
|
+
*
|
|
154
|
+
* // List available theme names
|
|
155
|
+
* console.log(THEME_PRESETS.map(p => p.name));
|
|
156
|
+
* // => ["Office", "Facet", "Integral", "Ion", "Organic", "Retrospect", "Slate", "Metropolitan"]
|
|
157
|
+
*
|
|
158
|
+
* // Apply a preset
|
|
159
|
+
* const preset = THEME_PRESETS.find(p => p.id === "ion");
|
|
160
|
+
* if (preset) {
|
|
161
|
+
* await handler.switchTheme(preset.colorScheme, preset.fontScheme, preset.name);
|
|
162
|
+
* }
|
|
163
|
+
* ```
|
|
164
|
+
*/
|
|
165
|
+
declare const THEME_PRESETS: readonly PptxThemePreset[];
|
|
166
|
+
/** Union of every key present on any `PptxElement` variant (not just the common base). */
|
|
167
|
+
type AnyElementKey = PptxElement extends (infer E) ? (E extends object ? keyof E : never) : never;
|
|
168
|
+
/**
|
|
169
|
+
* How a codec should carry a field across the wire:
|
|
170
|
+
* - `scalar`: primitive-ish value written/read as-is (`ymap.set(key, value)`).
|
|
171
|
+
* - `complex`: structured value serialized as a JSON-string blob.
|
|
172
|
+
* - `asset`: binary/base64 payload that a live-collaboration transport
|
|
173
|
+
* should route through a separate asset map instead of embedding inline
|
|
174
|
+
* (see `pptx-viewer-shared`'s `collaboration-assets.ts`); a full-file
|
|
175
|
+
* codec like `pptx-codec.ts` may still embed it as a JSON blob.
|
|
176
|
+
* - `text`: rich text handled via a dedicated `Y.Text`/delta codec, not the
|
|
177
|
+
* scalar/complex JSON path.
|
|
178
|
+
* - `nested`: a nested collection (e.g. a slide's `elements`) built as its
|
|
179
|
+
* own Y.Array of Y.Maps via the same codec, not a JSON blob.
|
|
180
|
+
*/
|
|
181
|
+
type CollabFieldKind = 'scalar' | 'complex' | 'asset' | 'text' | 'nested';
|
|
182
|
+
declare const ELEMENT_FIELD_KIND: Record<AnyElementKey, CollabFieldKind>;
|
|
183
|
+
declare const SLIDE_FIELD_KIND: Record<keyof PptxSlide, CollabFieldKind>;
|
|
184
|
+
export { THEME_PRESETS as a, isConnectorElement as c, isShapeElement as d, isTextElement as f, PptxThemePreset as i, isImageLikeElement as l, ELEMENT_FIELD_KIND as n, hasShapeProperties as o, isZoomElement as p, SLIDE_FIELD_KIND as r, hasTextProperties as s, CollabFieldKind as t, isInkElement as u };
|
|
185
|
+
//# sourceMappingURL=index-cJSPBkU1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-cJSPBkU1.d.ts","names":[],"sources":["../../../pptx/core/types/type-guards.ts","../../../pptx/core/types/theme-presets.ts","../../../pptx/core/types/collaboration-field-schema.ts"],"mappings":";;;;;;;;;;;;;;;;iBAoCgB,cAAc,SAAS,cAAc,WAAW;;;;;;;;;;;;;;;iBAkBhD,eAAe,SAAS,cAAc,WAAW;;;;;;;;;;;;;;;iBAkBjD,mBAAmB,SAAS,cAAc,WAAW;;;;;;;;;;;;;;;;iBAmBrD,mBAAmB,SAAS,cAAc,WAAW;;;;;;;;;;;;;;;iBAkBrD,aAAa,SAAS,cAAc,WAAW;;;;;;;;;;;;;;;iBAkB/C,cAAc,SAAS,cAAc,WAAW;;;;;;;;;;;;;;;;iBAmBhD,kBAAkB,SAAS,cAAc,WAAW;;;;;;;;;;;;;;;;iBAmBpD,mBAAmB,SAAS,cAAc,WAAW;;;;;;;;;;;;UCrIpD;;EAEhB;;EAEA;;EAEA,aAAa;;EAEb,YAAY;;;;;;;;;;;;;;;;;;;;cAyOA,wBAAwB;;KC1PhC,gBAAgB,2BAA0B,MAAK,yBAAyB;;;;;;;;;;;;;;KAejE;cAEC,oBAAoB,OAAO,eAAe;cAuL1C,kBAAkB,aAAa,WAAW"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import "./index-7tA9HqRL.js";
|
|
2
|
+
import "./index-CAzt1jbx.js";
|
|
3
|
+
import "./index-cJSPBkU1.js";
|
|
4
|
+
type SnapshotMergeResult = {
|
|
5
|
+
status: 'merged';
|
|
6
|
+
bytes: Uint8Array;
|
|
7
|
+
} | {
|
|
8
|
+
status: 'unresolved';
|
|
9
|
+
issues: readonly string[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Merge independent edits to source-backed PPTX snapshots sharing a common base. Stable cNvPr
|
|
13
|
+
* shape IDs align text and geometry/property edits without replacing unrelated slide content.
|
|
14
|
+
* Repeated unkeyed text structures require unchanged alignment; ambiguous edits stay unresolved.
|
|
15
|
+
* This is snapshot reconciliation, not a replacement for a live collaboration operation log.
|
|
16
|
+
*/
|
|
17
|
+
declare function mergePptxSnapshots(base: Uint8Array, local: Uint8Array, remote: Uint8Array): Promise<SnapshotMergeResult>;
|
|
18
|
+
/** Bounded text-only inspection for hosts; binary media never enters the AI context. */
|
|
19
|
+
declare function inspectPresentationText(bytes: Uint8Array): Promise<{
|
|
20
|
+
slides: {
|
|
21
|
+
index: number;
|
|
22
|
+
elements: {
|
|
23
|
+
id: string;
|
|
24
|
+
type: "connector" | "shape" | "text";
|
|
25
|
+
text: string;
|
|
26
|
+
runs: {
|
|
27
|
+
runIndex: number;
|
|
28
|
+
text: string;
|
|
29
|
+
}[] | undefined;
|
|
30
|
+
}[];
|
|
31
|
+
}[];
|
|
32
|
+
}>;
|
|
33
|
+
/** Change one existing run and preserve all other runs, styles and document parts. */
|
|
34
|
+
declare function setPresentationRunText(bytes: Uint8Array, slideIndex: number, elementId: string, runIndex: number, text: string): Promise<Uint8Array<ArrayBufferLike>>;
|
|
35
|
+
interface PresentationOutlineSlide {
|
|
36
|
+
title: string;
|
|
37
|
+
/** Body paragraphs, drawn as a bulleted list under the title. */
|
|
38
|
+
bullets?: readonly string[];
|
|
39
|
+
notes?: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* A new 16:9 deck from slide titles and bullet points: a title slide when the first entry has no
|
|
43
|
+
* bullets, then one title-and-content slide per entry. Text boxes stay ordinary editable text.
|
|
44
|
+
*/
|
|
45
|
+
declare function createPresentationFromOutline(slides: readonly PresentationOutlineSlide[], options?: {
|
|
46
|
+
title?: string;
|
|
47
|
+
}): Promise<Uint8Array>;
|
|
48
|
+
/**
|
|
49
|
+
* Route the ELEMENT-scope paragraph geometry to the slot OOXML actually
|
|
50
|
+
* provides for it: `p:txBody > a:lstStyle > a:lvl1pPr`.
|
|
51
|
+
*
|
|
52
|
+
* ## The problem this solves
|
|
53
|
+
*
|
|
54
|
+
* `element.textStyle` carries one alignment, one `marL`/`indent`, one line
|
|
55
|
+
* spacing and one space-before/after for the whole text body. That is a
|
|
56
|
+
* *shape-level* statement, but the writer had nowhere to put it except each
|
|
57
|
+
* paragraph's own `a:pPr`, so it stamped all of them. Two things went wrong:
|
|
58
|
+
*
|
|
59
|
+
* 1. Values the loader had merely RESOLVED (from the shape's `a:lstStyle`, the
|
|
60
|
+
* layout placeholder, the master `p:txStyles`) came back as explicitly
|
|
61
|
+
* authored per-paragraph values, so re-theming or re-laying-out the deck in
|
|
62
|
+
* PowerPoint no longer moved the text.
|
|
63
|
+
* 2. Stamping beat per-paragraph inheritance: a level-3 bullet was re-indented
|
|
64
|
+
* to whatever `marL` the shape had resolved for level 1.
|
|
65
|
+
*
|
|
66
|
+
* A sibling closed most of (2) by only writing a key the paragraph itself
|
|
67
|
+
* authored, but could not close the last case: a level-0 paragraph with no
|
|
68
|
+
* `a:pPr` at all is indistinguishable, at the `a:pPr` writer, from SDK-built
|
|
69
|
+
* text where the element style is the ONLY description of the paragraph. One
|
|
70
|
+
* needs the value dropped, the other needs it written.
|
|
71
|
+
*
|
|
72
|
+
* ## Why `a:lstStyle` resolves it
|
|
73
|
+
*
|
|
74
|
+
* The dilemma is an artefact of writing shape-scope state into paragraph
|
|
75
|
+
* scope. `a:lstStyle/a:lvl1pPr` IS shape scope: it sits above the
|
|
76
|
+
* layout/master cascade and below any paragraph's own `a:pPr`
|
|
77
|
+
* (ECMA-376 §21.1.2.4.12), so writing it once
|
|
78
|
+
*
|
|
79
|
+
* - keeps an element-level edit (the shared `textAdvancedPatch` / `alignPatch`
|
|
80
|
+
* panels write ONLY `element.textStyle`, never `segment.paragraphProperties`,
|
|
81
|
+
* so dropping it would silently discard the user's change),
|
|
82
|
+
* - leaves every level above 1 to inherit exactly as authored,
|
|
83
|
+
* - leaves each paragraph's own `a:pPr` to override it, and
|
|
84
|
+
* - stops repeating the same statement on every paragraph of the body.
|
|
85
|
+
*/
|
|
86
|
+
/**
|
|
87
|
+
* Paragraph-scope keys that describe the WHOLE body rather than one paragraph,
|
|
88
|
+
* i.e. everything `buildParagraphPropertiesXml` can emit from an element-level
|
|
89
|
+
* style. `a:defRPr` and `a:extLst` are deliberately absent: they are opaque
|
|
90
|
+
* subtrees captured per paragraph and are left on the paragraph writer.
|
|
91
|
+
*/
|
|
92
|
+
declare const ELEMENT_PARAGRAPH_GEOMETRY_KEYS: readonly ["align", "rtl", "paragraphMarginLeft", "paragraphMarginRight", "paragraphIndent", "defaultTabSize", "eaLineBreak", "latinLineBreak", "fontAlignment", "hangingPunctuation", "lineSpacing", "lineSpacingExactPt", "paragraphSpacingBefore", "paragraphSpacingAfter", "tabStops"];
|
|
93
|
+
export { setPresentationRunText as a, inspectPresentationText as i, PresentationOutlineSlide as n, mergePptxSnapshots as o, createPresentationFromOutline as r, ELEMENT_PARAGRAPH_GEOMETRY_KEYS as t };
|
|
94
|
+
//# sourceMappingURL=index-cr_sgz1w.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-cr_sgz1w.d.ts","names":[],"sources":["../../../opc/merge-snapshots.ts","../../../pptx/merge-snapshots.ts","../../../pptx/core/utils/suite-text.ts","../../../pptx/core/core/runtime/element-paragraph-geometry.ts"],"mappings":";;;KAIY;EACP;EAAkB,OAAO;;EACzB;EAAsB;;;;;;;;iBCqBX,mBACf,MAAM,YACN,OAAO,YACP,QAAQ,aACN,QAAQ;;iBC5BW,wBAAwB,OAAO,aAAU;;;;;;;;;;;;;;;iBA4BzC,uBACrB,OAAO,YACP,oBACA,mBACA,kBACA,eAAY,QAAA,WAAA;UAqBI;EAChB;;EAEA;EACA;;;;;;iBAOqB,8BACrB,iBAAiB,4BACjB;EAAW;IACT,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cCxBE"}
|