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
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Remap edited plain-text back onto original rich-text segments, preserving
|
|
3
|
+
* per-segment styles (font, size, colour, bold, italic, …). Pure,
|
|
4
|
+
* framework-agnostic logic shared by every binding (React / Vue / Angular).
|
|
5
|
+
*/
|
|
1
6
|
import { TextSegment, TextStyle } from "ooxml-core/pptx";
|
|
2
7
|
/**
|
|
3
8
|
* Strategy:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remap-text.d.ts","names":[],"sources":["../../../../pptx/editor/render/remap-text.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"remap-text.d.ts","names":[],"sources":["../../../../pptx/editor/render/remap-text.ts"],"mappings":";;;;;;;;;;;;;wBAiFgB,oBACf,iBACA,kBAAkB,2BAClB,kBAAkB,wBAChB"}
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* section-operations: Pure array-transformation functions for slide sections.
|
|
3
|
+
*
|
|
4
|
+
* Framework-agnostic (no framework imports). Each transform takes the current
|
|
5
|
+
* `sections` and `slides` arrays and returns a NEW `{ sections, slides }` pair;
|
|
6
|
+
* the inputs are never mutated. The React `useSectionOperations` hook and the
|
|
7
|
+
* Vue `useSectionOperations` composable both wire their reactive state through
|
|
8
|
+
* these transforms so the immutable section algorithms live in one place.
|
|
9
|
+
*
|
|
10
|
+
* Section ids are OOXML GUID-like strings. `addSection` generates one via the
|
|
11
|
+
* supplied `idGenerator` (default {@link generateSectionId}), keeping the
|
|
12
|
+
* transform overridable yet self-contained, matching the neighbouring shared
|
|
13
|
+
* editor modules.
|
|
14
|
+
*/
|
|
1
15
|
import { PptxSection, PptxSlide } from "ooxml-core/pptx";
|
|
2
16
|
/** The updated `sections` + `slides` pair produced by a section transform. */
|
|
3
17
|
export interface SectionMutationResult {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section-operations.d.ts","names":[],"sources":["../../../../pptx/editor/render/section-operations.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"section-operations.d.ts","names":[],"sources":["../../../../pptx/editor/render/section-operations.ts"],"mappings":";;;;;;;;;;;;;;;;iBAsBiB;EAChB,UAAU;EACV,QAAQ;;;iBAIQ;EAChB;EACA;EACA;EACA;;;iBAIgB,kBAAkB,iBAAiB,yBAAyB;EAC5E,SAAS;EACT,QAAQ;EACR;;;;;;;wBAYe;;;;;;;;;;;;;;;;;wBAwBA,eAAe,OAAO,uBAAuB;;;;;wBAY7C,qBAAqB,iBAAiB,wBACrD,mBAAmB,YACnB,iBAAiB,cACf,kBAAkB;;;;;;;wBA+CL,WACf,mBAAmB,eACnB,iBAAiB,aACjB,cACA,yBACA,6BACE;;wBAyCa,cACf,mBAAmB,eACnB,iBAAiB,aACjB,mBACA,kBACE;;;;;wBAWa,cACf,mBAAmB,eACnB,iBAAiB,aACjB,oBACE;;wBAiCa,cAAc,mBAAmB,eAAe,oBAAoB;;wBAWpE,gBACf,mBAAmB,eACnB,oBACE;;;;;wBAca,oBACf,mBAAmB,eACnB,iBAAiB,aACjB,iCACA,0BACE"}
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slide-background patch builders for the Format Background controls.
|
|
3
|
+
*
|
|
4
|
+
* The stage paints a slide's background facets with a fixed precedence (image
|
|
5
|
+
* over gradient over pattern over solid colour, see `slide-background.ts`).
|
|
6
|
+
* PowerPoint's Format Background pane is exclusive: choosing a solid fill
|
|
7
|
+
* REPLACES a picture or gradient fill, and choosing a picture replaces the
|
|
8
|
+
* gradient. The panels used to patch a single facet, so picking a colour on a
|
|
9
|
+
* slide that carried a picture background changed nothing visible (the
|
|
10
|
+
* picture stayed on top) and the deck saved with both, which PowerPoint then
|
|
11
|
+
* rendered the same way.
|
|
12
|
+
*
|
|
13
|
+
* Pure decision functions: each returns the `PptxSlide` patch a binding hands
|
|
14
|
+
* to its slide-update operation.
|
|
15
|
+
*/
|
|
1
16
|
import { PptxSlide } from "ooxml-core/pptx";
|
|
2
17
|
/** Fields a background choice replaces. */
|
|
3
18
|
export type SlideBackgroundPatch = Pick<PptxSlide, 'backgroundColor' | 'backgroundImage' | 'backgroundGradient' | 'backgroundPattern'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slide-background-patch.d.ts","names":[],"sources":["../../../../pptx/editor/render/slide-background-patch.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"slide-background-patch.d.ts","names":[],"sources":["../../../../pptx/editor/render/slide-background-patch.ts"],"mappings":";;;;;;;;;;;;;;;;;YAkBY,uBAAuB,KAClC;;;;;wBAQe,qBAAqB,cAAc;;;;;;wBAcnC,qBACf,kBACE,KAAK;;wBASQ,wBAAwB"}
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* slide-operations: Pure factory helpers for blank slides + slide ids.
|
|
3
|
+
*
|
|
4
|
+
* Framework-agnostic (no framework imports). The React `useSlideManagement`
|
|
5
|
+
* hook and the Vue `useSlideOperations` composable both call these so the
|
|
6
|
+
* blank-slide shape and id scheme live in one place.
|
|
7
|
+
*
|
|
8
|
+
* `makeSlideId` uses the `slide-${Date.now()}-${random}` pattern inside its
|
|
9
|
+
* function body (called at runtime, never at module-eval time) and accepts an
|
|
10
|
+
* optional `idGenerator` override, matching the neighbouring shared editor
|
|
11
|
+
* modules' id convention.
|
|
12
|
+
*/
|
|
1
13
|
import { PptxElement, PptxSlide } from "ooxml-core/pptx";
|
|
2
14
|
export interface SlidePasteRequest {
|
|
3
15
|
/** Independent slide copies with their new identities already assigned. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slide-operations.d.ts","names":[],"sources":["../../../../pptx/editor/render/slide-operations.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"slide-operations.d.ts","names":[],"sources":["../../../../pptx/editor/render/slide-operations.ts"],"mappings":";;;;;;;;;;;;;iBAgBiB;;WAEP,QAAQ;;WAER;;WAEA;;WAEA,kBAAkB;;wBAGZ,sBACf,iBAAiB,aACjB,yBACE;wBAOa,iBACf,oBAAoB,aACpB,kBACA,YAAW,eAAe,iBACxB;;wBAaa,iBACf,iBAAiB,aACjB,SAAS,oBACP;wBAYa,yBACf,SAAS,eAAe,gBACxB,SAAS,oBACP,eAAe;wBAQF,+BACf,SAAS,eAAe,gBACxB,yBACE,eAAe;;;;;;;;wBAWF,YAAY;;;;;;;;;wBAeZ,iBAAiB,qBAAqB,6BAA6B"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* slide-search.ts: Pure text-search helpers for PPTX slides.
|
|
3
|
+
*
|
|
4
|
+
* No framework imports; safe to use in web workers or server-side code. Shared
|
|
5
|
+
* across the React, Vue, and Angular bindings.
|
|
6
|
+
*/
|
|
1
7
|
import { PptxElement, PptxSlide } from "ooxml-core/pptx";
|
|
2
8
|
/**
|
|
3
9
|
* A single slide that matched a text search query.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slide-search.d.ts","names":[],"sources":["../../../../pptx/editor/render/slide-search.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"slide-search.d.ts","names":[],"sources":["../../../../pptx/editor/render/slide-search.ts"],"mappings":";;;;;;;;;;iBAYiB;;EAEhB;;EAEA;;;;;EAKA;;;;;;;;;;;wBA4Be,mBAAmB,SAAS;;;;wBA4C5B,iBAAiB,OAAO;;;;;;wBAwDxB,aAAa,iBAAiB,aAAa,gBAAgB"}
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* slide-size-rescale.ts: what happens to a deck's content when Design > Slide
|
|
3
|
+
* Size changes the canvas dimensions.
|
|
4
|
+
*
|
|
5
|
+
* PowerPoint offers two responses when a slide-size change no longer matches
|
|
6
|
+
* the existing content's aspect ratio:
|
|
7
|
+
* - "Maximize": scale content up to fill the new size (by the LARGER of the
|
|
8
|
+
* two axis ratios), which can push content outside the new slide bounds.
|
|
9
|
+
* - "Ensure Fit": scale content down to fit inside the new size (by the
|
|
10
|
+
* SMALLER of the two axis ratios), which can leave margins.
|
|
11
|
+
*
|
|
12
|
+
* Both scale uniformly (one factor, not independent X/Y stretch) and both
|
|
13
|
+
* centre the scaled content in the new canvas, which is why every element's
|
|
14
|
+
* position is re-derived from the same `(scale, offsetX, offsetY)` triple
|
|
15
|
+
* rather than each axis being handled independently.
|
|
16
|
+
*
|
|
17
|
+
* Framework-agnostic: no React, Vue, Angular, Svelte or DOM imports.
|
|
18
|
+
*/
|
|
1
19
|
import { PptxSlide } from "ooxml-core/pptx";
|
|
2
20
|
export type SlideSizeRescaleMode = 'maximize' | 'ensureFit';
|
|
3
21
|
export interface RescaleSlideSize {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slide-size-rescale.d.ts","names":[],"sources":["../../../../pptx/editor/render/slide-size-rescale.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"slide-size-rescale.d.ts","names":[],"sources":["../../../../pptx/editor/render/slide-size-rescale.ts"],"mappings":";;;;;;;;;;;;;;;;;;;YAuBY;iBAEK;WACP;WACA;;;;;;;;;iBAUO;WACP;WACA;WACA;;;;;;wBAOM,iCACf,SAAS,kBACT,SAAS,kBACT,MAAM,uBACJ;;;;;;wBA0Fa,yBACf,iBAAiB,aACjB,SAAS,kBACT,SAAS,kBACT,MAAM,uBACJ"}
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* slide-transition-edits: the write side of the inspector's slide-transition
|
|
3
|
+
* section (the read side, the option catalogue and direction grid, lives in
|
|
4
|
+
* `slide-transition-options`).
|
|
5
|
+
*
|
|
6
|
+
* WHY shared: a transition is a single OOXML element whose attributes are
|
|
7
|
+
* edited one control at a time, so every binding must MERGE each change onto
|
|
8
|
+
* the slide's existing transition. Replacing it wholesale is the bug this
|
|
9
|
+
* prevents: changing the duration would silently discard an authored sound,
|
|
10
|
+
* direction or spoke count the deck already carried. The numeric clamp is here
|
|
11
|
+
* for the same reason, so a duration typed into React and one typed into
|
|
12
|
+
* Angular round to the same stored value.
|
|
13
|
+
*
|
|
14
|
+
* @module render/slide-transition-edits
|
|
15
|
+
*/
|
|
1
16
|
import { PptxSlideTransition } from "ooxml-core/pptx";
|
|
2
17
|
/**
|
|
3
18
|
* Merge a partial change onto a slide's existing transition. Always yields a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slide-transition-edits.d.ts","names":[],"sources":["../../../../pptx/editor/render/slide-transition-edits.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"slide-transition-edits.d.ts","names":[],"sources":["../../../../pptx/editor/render/slide-transition-edits.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;wBAsBgB,qBACf,SAAS,iCACT,SAAS,QAAQ,uBACf;;;;;;wBASa,sBAAsB,aAAa,aAAa"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* table-cell-edit.ts: Pure, immutable table-cell editing helpers shared by
|
|
3
|
+
* every binding so inline cell editing is not reimplemented per framework.
|
|
4
|
+
*
|
|
5
|
+
* All functions return new objects and leave the input element unchanged.
|
|
6
|
+
*
|
|
7
|
+
* @module render/table-cell-edit
|
|
8
|
+
*/
|
|
1
9
|
import { PptxTableCell, PptxTableCellStyle, TablePptxElement } from "ooxml-core/pptx";
|
|
2
10
|
/**
|
|
3
11
|
* Replace one cell's plain text, DROPPING the per-run model that described the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-cell-edit.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-cell-edit.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"table-cell-edit.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-cell-edit.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAoCgB,aAAa,MAAM,eAAe,eAAe;;;;;;;;;;;;;wBAqBjD,cACf,MAAM,eACN,OAAO,QAAQ,sBACb;;;;;;;;;;;;;;;;;;;wBA6Ba,YACf,SAAS,kBACT,kBACA,kBACA,eACE;;;;;wBAqBa,YACf,SAAS,kBACT,kBACA"}
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* table-cell-merge.ts - framework-agnostic cursor-anchored cell merge helpers.
|
|
3
|
+
*
|
|
4
|
+
* These complement the selection-rectangle operations in `table-merge.ts`.
|
|
5
|
+
* Where `mergeCells` / `splitCell` operate on an arbitrary rectangular
|
|
6
|
+
* selection, the helpers here act relative to a single cursor cell:
|
|
7
|
+
* - merge the cell to its right (`computeMergeCellRight`),
|
|
8
|
+
* - merge the cell below it (`computeMergeCellDown`),
|
|
9
|
+
* - split the merged cell under the cursor (`computeSplitCell`).
|
|
10
|
+
*
|
|
11
|
+
* Each returns a new (immutable) `rows` array with the merge/split applied, or
|
|
12
|
+
* `null` when the operation is not valid at that position. Ported verbatim from
|
|
13
|
+
* the React viewer's `inspector/table-cell-merge-helpers.ts` so React, Vue, and
|
|
14
|
+
* Angular share one copy. No framework imports.
|
|
15
|
+
*/
|
|
1
16
|
import { PptxTableData } from "ooxml-core/pptx";
|
|
2
17
|
/**
|
|
3
18
|
* Merge the cell at `(rowIndex, columnIndex)` with the next cell to its right.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-cell-merge.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-cell-merge.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"table-cell-merge.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-cell-merge.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;wBAuBgB,sBACf,IAAI,eACJ,kBACA,sBACE;;;;;wBAkCa,qBACf,IAAI,eACJ,kBACA,sBACE;;;;;wBA6Ca,iBACf,IAAI,eACJ,kBACA,sBACE"}
|
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* table-data-grid-ops.ts: element-level, immutable row/column/cell operations
|
|
3
|
+
* behind the inspector's table data grid.
|
|
4
|
+
*
|
|
5
|
+
* Split out of `table-data-grid.ts` (which owns the render model and its types)
|
|
6
|
+
* to keep both files inside the repo's 300 LOC ceiling. Import either through
|
|
7
|
+
* the package barrel; they are one feature in two files.
|
|
8
|
+
*
|
|
9
|
+
* WHY these wrap the primitives in `table-layout` rather than calling them
|
|
10
|
+
* directly from a view:
|
|
11
|
+
*
|
|
12
|
+
* 1. **The "append / remove last" dance.** The grid's header buttons operate on
|
|
13
|
+
* the END of the table, but the primitives are positional
|
|
14
|
+
* (`insertTableRow(td, idx, 'below')`). Without these wrappers every binding
|
|
15
|
+
* re-writes the same `count - 1` clamp and gets it wrong for an empty table.
|
|
16
|
+
* 2. **rawXml synchronisation**, which is load-bearing: see {@link withTableData}.
|
|
17
|
+
*
|
|
18
|
+
* They take and return a whole `TablePptxElement` so an inspector can hand the
|
|
19
|
+
* result straight to the binding's `updateElement` edit path as a single history
|
|
20
|
+
* entry. The underlying transforms are the merge-AWARE ones in `table-layout`,
|
|
21
|
+
* so existing merge spans are adjusted rather than destroyed.
|
|
22
|
+
*
|
|
23
|
+
* Every function is pure: the input element is never mutated.
|
|
24
|
+
*
|
|
25
|
+
* @module render/table-data-grid-ops
|
|
26
|
+
*/
|
|
1
27
|
import { TablePptxElement } from "ooxml-core/pptx";
|
|
2
28
|
/**
|
|
3
29
|
* Set one cell's text, keeping `rawXml` in sync so the edit actually paints and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-data-grid-ops.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-data-grid-ops.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"table-data-grid-ops.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-data-grid-ops.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAsFgB,wBACf,SAAS,kBACT,kBACA,kBACA,eACE;;;;;;;;;wBAiBa,sBACf,SAAS,kBACT,gBACA,8BACE;;;;;;;;wBAea,sBAAsB,SAAS,kBAAkB,iBAAiB;;;;;;;;;wBAgBlE,yBACf,SAAS,kBACT,gBACA,6BACE;;;;;;;;wBAea,yBACf,SAAS,kBACT,iBACE;;;;;;;;;;wBAiBa,sBAAsB,SAAS,mBAAmB;;;;;;;wBAclD,0BAA0B,SAAS,mBAAmB;;;;;;;;;wBAgBtD,yBAAyB,SAAS,mBAAmB;;;;;;;wBAcrD,6BAA6B,SAAS,mBAAmB"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/** Shared logical table edits for the editor and the PPTX automation tools. */
|
|
2
|
+
import { jr as PptxTableData } from "../../chunks/presentation-Be108jrz.js";
|
|
3
|
+
import "../../chunks/index-cJSPBkU1.js";
|
|
2
4
|
/** Default pixel height assigned to a freshly inserted row. */
|
|
3
5
|
export declare const DEFAULT_INSERTED_ROW_HEIGHT = 40;
|
|
4
6
|
/** Insert a row and extend each vertical merge crossing the insertion point. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-layout.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-layout.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"table-layout.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-layout.ts"],"mappings":";;;;qBAKa;;wBAoFG,eACf,WAAW,eACX,gBACA,6BACA,gCACE;;wBAYa,eAAe,WAAW,eAAe,iBAAiB;;wBAW1D,kBACf,WAAW,eACX,gBACA,4BACA,gCACE;;wBAmBa,kBAAkB,WAAW,eAAe,iBAAiB"}
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* table-merge.ts - framework-agnostic table cell merge / split / selection math.
|
|
3
|
+
*
|
|
4
|
+
* Pure operations over the structured {@link PptxTableData} model: compute the
|
|
5
|
+
* bounding rectangle of a cell selection, expand it to cover any merge groups
|
|
6
|
+
* it overlaps, validate whether a selection can be merged or a cell split, and
|
|
7
|
+
* produce new (immutable) `PptxTableData` copies with the merge/split applied.
|
|
8
|
+
*
|
|
9
|
+
* Consolidated from the React viewer's:
|
|
10
|
+
* - `viewer/utils/table-merge-core.ts` → merge / split + rect helpers
|
|
11
|
+
* - `viewer/utils/table-selection-utils.ts` → selection rect / enumeration
|
|
12
|
+
*
|
|
13
|
+
* No framework imports - consumed by every binding (each re-exports these
|
|
14
|
+
* symbols through its own thin shim so colocated consumers keep their import
|
|
15
|
+
* paths unchanged).
|
|
16
|
+
*/
|
|
1
17
|
import { PptxTableData } from "ooxml-core/pptx";
|
|
2
18
|
/** A cell coordinate within a table (0-based). */
|
|
3
19
|
export interface CellCoord {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-merge.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-merge.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"table-merge.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-merge.ts"],"mappings":";;;;;;;;;;;;;;;;;;iBAyBiB;EAChB;EACA;;;iBAIgB;EAChB;EACA;EACA;EACA;;;;;;wBAWe,oBAAoB,OAAO,cAAc;;;;;;;;wBAmCzC,4BAA4B,MAAM,UAAU,WAAW,gBAAgB;;;;;;;wBAwFvE,cAAc,OAAO,aAAa,WAAW;;;;wBAmC7C,aAAa,aAAa,aAAa,WAAW;;;;;;;;;wBAsBlD,WAAW,OAAO,aAAa,WAAW,gBAAgB;;;;;;;;;wBA+G1D,UAAU,aAAa,aAAa,WAAW,gBAAgB;;;;;;wBAyD/D,qBACf,mBACA,mBACA,mBACA,mBACA,WAAW,gBACT;;wBAWa,YAAY,MAAM,WAAW;;wBAW7B,aAAa,aAAa,aAAa,MAAM"}
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A pure decision function for the table-style DEFINITION editor: given a
|
|
3
|
+
* loaded `ParsedTableStyleEntry` and the part the user has selected (one of
|
|
4
|
+
* the 13 `CT_TableStyle` sections, or the synthetic `'background'` part for
|
|
5
|
+
* `a:tblBg`), {@link describeTableStyleEditor} returns a framework-neutral
|
|
6
|
+
* descriptor of that part's editable fields (fill colour/ref, text
|
|
7
|
+
* bold/italic/underline/colour, per-side borders including both diagonals,
|
|
8
|
+
* and the rarely-used cell3D bevel). Every binding (react/vue/angular/
|
|
9
|
+
* svelte/vanilla) maps this descriptor onto its own template; none of them
|
|
10
|
+
* re-derive which facet lives on which section.
|
|
11
|
+
*
|
|
12
|
+
* @module render/table-style-editor-descriptor
|
|
13
|
+
*/
|
|
1
14
|
import { TableStyleBorderSide, TableStyleEditorPartId } from "./table-style-editor-parts.js";
|
|
2
15
|
import { ParsedTableStyleEntry, ParsedTableStyleFill, PptxThemeColorRef } from "ooxml-core/pptx";
|
|
3
16
|
/** A colour shown/edited by the panel: always a paintable hex, plus the theme ref when one applies. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-style-editor-descriptor.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-style-editor-descriptor.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"table-style-editor-descriptor.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-style-editor-descriptor.ts"],"mappings":";;;;;;;;;;;;;;;;iBA6BiB;WACP;WACA,KAAK;;;iBAIE;WACP,OAAO;WACP;;WAEA;;;iBAIO;WACP;WACA;WACA;WACA,OAAO;WACP;;;iBAIO;WACP,OAAO;WACP;WACA;WACA;WACA;;YAGE,+BAA+B,SAC1C,OAAO,sBAAsB;;iBAIb;WACP;WACA;WACA;WACA;;;iBAIO;WACP;WACA;WACA,cAAc;;WAEd;WACA,MAAM;WACN,MAAM;WACN,SAAS;WACT,QAAQ;;;wBA+BF,YAAY,aAAa,KAAK,gCAAgC;;;;;wBAiG9D,yBACf,OAAO,mCACP,cAAc,wBACd,eAAe,SAAS,sCACtB"}
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The write side of the table-style DEFINITION editor: a discriminated union
|
|
3
|
+
* of field-level edits a binding's panel can make, and
|
|
4
|
+
* {@link applyTableStyleFieldEdit}, the pure function that turns one such edit
|
|
5
|
+
* into both an updated {@link ParsedTableStyleEntry} (for the binding to store
|
|
6
|
+
* locally, e.g. React's `setTableStyleMap`) and a payload shaped exactly like
|
|
7
|
+
* the `set_table_style_section` MCP tool's `SetTableStyleSectionParams`
|
|
8
|
+
* (`packages/tools/src/tools/table-style-tools.ts`), so a host that DOES have
|
|
9
|
+
* a `ToolContext` (the AI bridge) can run the identical mutation through that
|
|
10
|
+
* tool instead of duplicating its merge logic.
|
|
11
|
+
*
|
|
12
|
+
* @module render/table-style-editor-edit
|
|
13
|
+
*/
|
|
1
14
|
import { TableStyleBorderSide, TableStyleEditorPartId } from "./table-style-editor-parts.js";
|
|
2
15
|
import { ParsedTableStyleBorders, ParsedTableStyleEntry, ParsedTableStyleFill, ParsedTableStyleText, PptxTableCell3D, PptxThemeColorRef, PptxThemeFormatScheme } from "ooxml-core/pptx";
|
|
3
16
|
export type TableStyleEditorFieldEdit = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-style-editor-edit.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-style-editor-edit.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"table-style-editor-edit.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-style-editor-edit.ts"],"mappings":";;;;;;;;;;;;;;;YA6BY;WAEA;WACA;WACA,KAAK;;WAEH;WAA2B;;WAC3B;WAA2B;;WAC3B;WAA6B;;WAC7B;WAAgC;;WAElC;WACA;WACA,KAAK;;WAGL;WACA,MAAM;WACN;WACA,KAAK;;WAEH;WAA8B,MAAM;WAA+B;;WACnE;WAA6B,MAAM;WAA+B;;WAClE;WAA6B,MAAM;WAA+B;;WAClE;WAAmC;;WACnC;WAAoC;;WACpC;WAAoC;;;iBAGjC;WACP;WACA;WACA,OAAO;WACP,OAAO;WACP,UAAU;WACV,SAAS;;iBAGF;;WAEP,OAAO;;WAEP,SAAS;;;iBAcF;;;;;;WAMP,eAAe;;;;;;;;;wBAwDT,yBACf,OAAO,uBACP,MAAM,wBACN,MAAM,2BACN,UAAS,wBACP"}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The 14 named parts a table style DEFINITION can be edited section-by-section:
|
|
3
|
+
* the 13 `CT_TableStyle` regions (`TABLE_STYLE_PART_SEQUENCE`, from core) plus
|
|
4
|
+
* the table-level `a:tblBg` background, which core models as a distinct field
|
|
5
|
+
* (`ParsedTableStyleEntry.tableBackground`) rather than a 14th
|
|
6
|
+
* `TableStylePartName`. Every binding's table-style editor UI walks this one
|
|
7
|
+
* list so a part's label and picker position are fixed in a single place.
|
|
8
|
+
*
|
|
9
|
+
* @module render/table-style-editor-parts
|
|
10
|
+
*/
|
|
1
11
|
import { TableStylePartName } from "ooxml-core/pptx";
|
|
2
12
|
/** A real `TableStylePartName`, plus the synthetic `'background'` part for `a:tblBg`. */
|
|
3
13
|
export type TableStyleEditorPartId = TableStylePartName | 'background';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-style-editor-parts.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-style-editor-parts.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"table-style-editor-parts.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-style-editor-parts.ts"],"mappings":";;;;;;;;;;;;YAcY,yBAAyB;;iBAGpB;WACP,IAAI;WACJ;;;;;;;;qBASG,mCAAmC;;wBAkBhC,qBAAqB,IAAI,yBAAyB,MAAM;;qBAK3D;YAWD,+BAA+B;;qBAG9B,oCAAoC,SAAS,OAAO;;qBAYpD"}
|
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure state-transition helpers for the table style DEFINITION editor's
|
|
3
|
+
* persistence plumbing: turning an editor "map changed" / "delete style"
|
|
4
|
+
* event into the next `{ tableStyleMap, tableStylesToDelete }` pair a
|
|
5
|
+
* binding's mutable viewer state should hold, and picking the three
|
|
6
|
+
* `ppt/tableStyles.xml` save option fields (`tableStyles`,
|
|
7
|
+
* `tableStylesDefaultId`, `tableStylesToDelete` on `PptxHandlerSaveOptions`)
|
|
8
|
+
* off that state for every `handler.save(...)` / `saveDeckWithPassword(...)`
|
|
9
|
+
* call.
|
|
10
|
+
*
|
|
11
|
+
* Deleting a style adds its id to `tableStylesToDelete` because core needs a
|
|
12
|
+
* separate opt-in list: a style id merely absent from `tableStyles` is
|
|
13
|
+
* "untouched", not "delete" (see `PptxHandlerSaveOptions.tableStyles`'s own
|
|
14
|
+
* doc comment in `ooxml-core/src/pptx/core/core/types.ts`). Adding a style
|
|
15
|
+
* back under the same id (e.g. re-creating one with the same GUID) drops it
|
|
16
|
+
* back out of `tableStylesToDelete`, since at that point it is no longer
|
|
17
|
+
* meant to be removed on save.
|
|
18
|
+
*
|
|
19
|
+
* @module render/table-style-map-edits
|
|
20
|
+
*/
|
|
1
21
|
import { DeckSaveOptions } from "./deck-save-encryption.js";
|
|
2
22
|
import { ParsedTableStyleMap } from "ooxml-core/pptx";
|
|
3
23
|
export interface TableStyleMapEditState {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-style-map-edits.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-style-map-edits.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"table-style-map-edits.d.ts","names":[],"sources":["../../../../pptx/editor/render/table-style-map-edits.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;iBAwBiB;WACP,eAAe;WACf;;iBAGO;WACP,eAAe;WACf;;;;;;;;wBASM,yBACf,OAAO,wBACP,SAAS,sBACP;;;;;;wBAYa,sBACf,OAAO,wBACP,kBACE;iBAWc;WACP,eAAe;WACf;WACA;;YAGE,wBAAwB,KACnC;;;;;;;;;wBAYe,sBAAsB,OAAO,6BAA6B;;;;;;;;;wBAkB1D,2BAA2B;EAAoB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { wc as TextSegment } from "../../chunks/presentation-Be108jrz.js";
|
|
2
|
+
import "../../chunks/index-cJSPBkU1.js";
|
|
2
3
|
/** The boolean run decorations the ribbon toggles. */
|
|
3
4
|
export type TextDecorationFlag = 'bold' | 'italic' | 'underline' | 'strikethrough';
|
|
4
5
|
export declare const TEXT_DECORATION_FLAGS: readonly TextDecorationFlag[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-content-style.d.ts","names":[],"sources":["../../../../pptx/editor/render/text-content-style.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-content-style.d.ts","names":[],"sources":["../../../../pptx/editor/render/text-content-style.ts"],"mappings":";;;YAIY;qBAEC,gCAAgC;;wBAQ7B,iBAAiB,SAAS"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { At as PptxElementWithText, Dt as PptxElement, Tc as TextStyle } from "../../chunks/presentation-Be108jrz.js";
|
|
2
|
+
import "../../chunks/index-cJSPBkU1.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,3 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THE shared predicate for "is this text segment a paragraph SEPARATOR",
|
|
3
|
+
* i.e. not renderable content of either paragraph it sits between.
|
|
4
|
+
*
|
|
5
|
+
* A segment produced by a post-edit remap is tagged `isParagraphBreak: true`
|
|
6
|
+
* explicitly. A segment produced by the initial slide-load parser
|
|
7
|
+
* (`PptxHandlerRuntimeShapeParagraphContentParsing` in `ooxml-core/pptx`)
|
|
8
|
+
* instead carries a bare `text: '\n'` with NO flag at all: the parser only
|
|
9
|
+
* tags a soft `<a:br/>` line break within a paragraph (`isLineBreak: true`,
|
|
10
|
+
* ALSO `text: '\n'`), never the terminator between two `<a:p>` paragraphs.
|
|
11
|
+
* Both shapes have to be recognised as "this is a break, not a glyph":
|
|
12
|
+
* checking `isParagraphBreak` alone misses the (far more common) slide-load
|
|
13
|
+
* case entirely.
|
|
14
|
+
*
|
|
15
|
+
* Every caller that groups a segment list into paragraphs must use this, not
|
|
16
|
+
* a local `isParagraphBreak` check: `text-warp.ts`'s `groupIntoParagraphs`
|
|
17
|
+
* used to check only `isParagraphBreak`, so a freshly-loaded (never
|
|
18
|
+
* edit-remapped) multi-paragraph WordArt block never split at all - its
|
|
19
|
+
* bare `'\n'` separator fell into the first paragraph's own run list and was
|
|
20
|
+
* measured and rendered as its own glyph, which also flipped the vertical
|
|
21
|
+
* ordering of a multi-line envelope (`buildGlyphEnvelope`'s `lineIndex`/
|
|
22
|
+
* `lineCount` slicing assumes ONE paragraph per line).
|
|
23
|
+
*/
|
|
1
24
|
import { TextSegment } from "ooxml-core/pptx";
|
|
2
25
|
export declare function isParagraphSeparatorSegment(segment: TextSegment): boolean;
|
|
3
26
|
//# sourceMappingURL=text-segment-paragraph-break.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-segment-paragraph-break.d.ts","names":[],"sources":["../../../../pptx/editor/render/text-segment-paragraph-break.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-segment-paragraph-break.d.ts","names":[],"sources":["../../../../pptx/editor/render/text-segment-paragraph-break.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;wBAyBgB,4BAA4B,SAAS"}
|
|
@@ -1,5 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Which `TextStyle` keys belong to the text BODY and which to a RUN.
|
|
3
|
+
*
|
|
4
|
+
* `TextStyle` is one bag for three OOXML levels (`a:bodyPr`, `a:pPr`, `a:rPr`).
|
|
5
|
+
* The block builder (`text-block-style.ts`, `text-body-layout.ts`) reads the
|
|
6
|
+
* body-level keys from `element.textStyle` only; a run's style never carries
|
|
7
|
+
* them anywhere the renderer looks. So when an inline selection is active and
|
|
8
|
+
* a binding routes the WHOLE update through the selected runs, an Increase
|
|
9
|
+
* Indent (`paragraphMarginLeft`) or a vertical-alignment change lands on run
|
|
10
|
+
* styles nobody reads and nothing happens on screen.
|
|
11
|
+
*
|
|
12
|
+
* `splitTextStyleUpdate` partitions an update so a binding can merge the body
|
|
13
|
+
* half into `element.textStyle` regardless of selection and scope only the
|
|
14
|
+
* run half to the selected characters. `reconcileDecorationFlags` keeps the
|
|
15
|
+
* body-level decoration honest after a run-scoped edit, so the block's CSS
|
|
16
|
+
* `text-decoration` cannot keep painting underline over a run that was just
|
|
17
|
+
* un-underlined.
|
|
18
|
+
*/
|
|
19
|
+
import { Dt as PptxElement, Tc as TextStyle, wc as TextSegment } from "../../chunks/presentation-Be108jrz.js";
|
|
20
|
+
import "../../chunks/index-cJSPBkU1.js";
|
|
3
21
|
import { TextDecorationFlag } from "./text-content-style.js";
|
|
4
22
|
/**
|
|
5
23
|
* Keys read from `element.textStyle` only: `a:bodyPr` attributes, the text
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-style-scope.d.ts","names":[],"sources":["../../../../pptx/editor/render/text-style-scope.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-style-scope.d.ts","names":[],"sources":["../../../../pptx/editor/render/text-style-scope.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;qBA8Ba,sBAAsB,kBAAkB;;wBAuDrC,mBAAmB;;iBAKlB;;EAEhB,MAAM,QAAQ;;EAEd,KAAK,QAAQ;;;wBAIE,qBAAqB,SAAS,QAAQ,aAAa;;;;;;;wBAenD,yBACf,mBAAmB,eACnB,WAAW,uBACX,gBAAgB;EACZ,WAAW;EAAW,cAAc;;;;;;;wBAqCzB,yBAAyB,SAAS,QAAQ,aAAa,QAAQ;;;;;;;;;;;;;;;wBAyB/D,4BACf,mBAAmB,eACnB,SAAS,QAAQ,YACjB,mBAAmB,yCACjB;;iBA6Cc;EAChB,eAAe;EACf;IAAqB;IAAqB;;;;;;;;;wBAS3B,yBACf,SAAS,aACT,SAAS,QAAQ,aACf,KAAK;;;;;;;wBAwBQ,uBACf,SAAS,aACT,SAAS,QAAQ,aACf"}
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PPTX document-theme font + colour resolution helpers.
|
|
3
|
+
*
|
|
4
|
+
* Resolves OOXML theme font tokens (`+mj-lt`, `+mn-lt`, etc.) to actual font
|
|
5
|
+
* families via the theme font scheme, and computes the PowerPoint-style theme
|
|
6
|
+
* colour picker grid (tint/shade variants of the 12 scheme colours).
|
|
7
|
+
*
|
|
8
|
+
* Distinct from the viewer-UI `ViewerTheme` (see `pptx-viewer-shared/theme`):
|
|
9
|
+
* that drives the UI chrome's CSS variables; this resolves the *document's*
|
|
10
|
+
* theme as parsed from `ppt/theme/themeN.xml`.
|
|
11
|
+
*/
|
|
1
12
|
import { PptxTheme, PptxThemeColorScheme, PptxThemeFontScheme } from "ooxml-core/pptx";
|
|
2
13
|
/**
|
|
3
14
|
* Resolve OOXML theme font tokens (`+mj-lt`, `+mn-lt`, etc.) to actual font
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-theme.d.ts","names":[],"sources":["../../../../pptx/editor/render/text-theme.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-theme.d.ts","names":[],"sources":["../../../../pptx/editor/render/text-theme.ts"],"mappings":";;;;;;;;;;;;;;;;;;wBAuBgB,iBACf,gCACA,YAAY;;;;;;;wBAqDG,UAAU,aAAa;;;;;;;wBAevB,WAAW,aAAa;;iBAMvB;;EAEhB;;EAEA;;EAEA,YAAY;;;;;;;;;;;qBAYA,uBAAuB,cAAc;;;;;;;;qBAoCrC,oBAAoB,aAAa;;;;;;;;;;wBAwB9B,oBACf,aAAa,sBACb,aAAa,yBACX,MACF;EACC;EACA,iBAAiB;EACjB;EACA;;;;;;wBAmBc,gBACf,WAAW,sBACX,aAAa;;;;;wBAWE,2BAA2B,OAAO"}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Theme-editor option data: the built-in Office preset palettes, the font
|
|
3
|
+
* dropdown list and the fallback scheme used to seed missing slots.
|
|
4
|
+
*
|
|
5
|
+
* This is pure data every binding's "Edit theme" panel needs (React, Vue,
|
|
6
|
+
* Angular, Svelte, Vanilla all render the same 12 colour slots and the same
|
|
7
|
+
* preset gallery), so it lives here rather than being copy-pasted per binding:
|
|
8
|
+
* a palette fixed in one binding must not silently differ in another.
|
|
9
|
+
*/
|
|
1
10
|
import { PptxThemeColorScheme } from "ooxml-core/pptx";
|
|
2
11
|
export interface PresetTheme {
|
|
3
12
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-editor-presets.d.ts","names":[],"sources":["../../../../pptx/editor/render/theme-editor-presets.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme-editor-presets.d.ts","names":[],"sources":["../../../../pptx/editor/render/theme-editor-presets.ts"],"mappings":";;;;;;;;;;iBAeiB;EAChB;EACA,aAAa;EACb;EACA;;qBAGY,eAAe;;;;;qBAqMf,4BAA4B;qBAM5B"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Tc as TextStyle, wc as TextSegment } from "../../chunks/presentation-Be108jrz.js";
|
|
2
|
+
import "../../chunks/index-cJSPBkU1.js";
|
|
2
3
|
/**
|
|
3
4
|
* Keep a runless paragraph's future body formatting in the same style edit.
|
|
4
5
|
* `options.inherited` is the text box style the run inherits unset fields
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-text-segment-style.d.ts","names":[],"sources":["../../../../pptx/editor/render/update-text-segment-style.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-text-segment-style.d.ts","names":[],"sources":["../../../../pptx/editor/render/update-text-segment-style.ts"],"mappings":";;;;;;;;wBAUgB,uBACf,SAAS,aACT,SAAS,QAAQ,YACjB;EAAW;EAA2B,YAAY;IAChD"}
|