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.
Files changed (208) hide show
  1. package/dist/pptx/automation/index.d.ts +5 -12
  2. package/dist/pptx/automation/index.d.ts.map +1 -1
  3. package/dist/pptx/automation/schemas/chart-formatting-schemas.d.ts +1 -1
  4. package/dist/pptx/automation/schemas/chart-formatting-schemas.d.ts.map +1 -1
  5. package/dist/pptx/automation/schemas/chart-schemas.d.ts +1 -1
  6. package/dist/pptx/automation/schemas/chart-schemas.d.ts.map +1 -1
  7. package/dist/pptx/automation/schemas/chart-user-shape-schemas.d.ts +1 -1
  8. package/dist/pptx/automation/schemas/chart-user-shape-schemas.d.ts.map +1 -1
  9. package/dist/pptx/automation/schemas/element-schemas.d.ts +1 -1
  10. package/dist/pptx/automation/schemas/element-schemas.d.ts.map +1 -1
  11. package/dist/pptx/automation/schemas/export-schemas.d.ts +1 -1
  12. package/dist/pptx/automation/schemas/export-schemas.d.ts.map +1 -1
  13. package/dist/pptx/automation/schemas/geometry-schemas.d.ts +1 -1
  14. package/dist/pptx/automation/schemas/geometry-schemas.d.ts.map +1 -1
  15. package/dist/pptx/automation/schemas/hyperlink-schemas.d.ts +1 -1
  16. package/dist/pptx/automation/schemas/hyperlink-schemas.d.ts.map +1 -1
  17. package/dist/pptx/automation/schemas/index.d.ts +8 -8
  18. package/dist/pptx/automation/schemas/index.d.ts.map +1 -1
  19. package/dist/pptx/automation/schemas/json-schemas.d.ts +1 -1
  20. package/dist/pptx/automation/schemas/json-schemas.d.ts.map +1 -1
  21. package/dist/pptx/automation/schemas/layout-schemas.d.ts +1 -1
  22. package/dist/pptx/automation/schemas/layout-schemas.d.ts.map +1 -1
  23. package/dist/pptx/automation/schemas/lock-schemas.d.ts +1 -1
  24. package/dist/pptx/automation/schemas/lock-schemas.d.ts.map +1 -1
  25. package/dist/pptx/automation/schemas/metadata-schemas.d.ts +1 -1
  26. package/dist/pptx/automation/schemas/metadata-schemas.d.ts.map +1 -1
  27. package/dist/pptx/automation/schemas/ole-schemas.d.ts +1 -1
  28. package/dist/pptx/automation/schemas/ole-schemas.d.ts.map +1 -1
  29. package/dist/pptx/automation/schemas/presentation-schemas.d.ts +1 -1
  30. package/dist/pptx/automation/schemas/presentation-schemas.d.ts.map +1 -1
  31. package/dist/pptx/automation/schemas/section-schemas.d.ts +1 -1
  32. package/dist/pptx/automation/schemas/section-schemas.d.ts.map +1 -1
  33. package/dist/pptx/automation/schemas/slide-schemas.d.ts +1 -1
  34. package/dist/pptx/automation/schemas/slide-schemas.d.ts.map +1 -1
  35. package/dist/pptx/automation/schemas/smartart-schemas.d.ts +1 -1
  36. package/dist/pptx/automation/schemas/smartart-schemas.d.ts.map +1 -1
  37. package/dist/pptx/automation/schemas/table-style-schemas.d.ts +1 -1
  38. package/dist/pptx/automation/schemas/table-style-schemas.d.ts.map +1 -1
  39. package/dist/pptx/automation/schemas/template-schemas.d.ts +1 -1
  40. package/dist/pptx/automation/schemas/template-schemas.d.ts.map +1 -1
  41. package/dist/pptx/automation/schemas/theme-schemas.d.ts +1 -1
  42. package/dist/pptx/automation/schemas/theme-schemas.d.ts.map +1 -1
  43. package/dist/pptx/automation/schemas/validation-schemas.d.ts +1 -1
  44. package/dist/pptx/automation/schemas/validation-schemas.d.ts.map +1 -1
  45. package/dist/pptx/chunks/color-primitives-DHyz14D9.d.ts +151 -0
  46. package/dist/pptx/chunks/color-primitives-DHyz14D9.d.ts.map +1 -0
  47. package/dist/pptx/chunks/{index-ClHCBGOf.d.ts → index-7tA9HqRL.d.ts} +10057 -1222
  48. package/dist/pptx/chunks/index-7tA9HqRL.d.ts.map +1 -0
  49. package/dist/pptx/chunks/{index-DqkBjVqR.d.ts → index-CAzt1jbx.d.ts} +4 -5
  50. package/dist/pptx/chunks/index-CAzt1jbx.d.ts.map +1 -0
  51. package/dist/pptx/chunks/{schemas-LHsDbVOw.d.ts → index-CyAgQ2zG.d.ts} +6 -2
  52. package/dist/pptx/chunks/index-CyAgQ2zG.d.ts.map +1 -0
  53. package/dist/pptx/chunks/index-cJSPBkU1.d.ts +185 -0
  54. package/dist/pptx/chunks/index-cJSPBkU1.d.ts.map +1 -0
  55. package/dist/pptx/chunks/index-cr_sgz1w.d.ts +94 -0
  56. package/dist/pptx/chunks/index-cr_sgz1w.d.ts.map +1 -0
  57. package/dist/pptx/chunks/presentation-Be108jrz.d.ts +12521 -0
  58. package/dist/pptx/chunks/presentation-Be108jrz.d.ts.map +1 -0
  59. package/dist/pptx/chunks/{inspection-status-TKac7eqb.d.ts → signature-inspection-status-TKac7eqb.d.ts} +1 -1
  60. package/dist/pptx/chunks/signature-inspection-status-TKac7eqb.d.ts.map +1 -0
  61. package/dist/pptx/chunks/text-operations-a1cqBYk9.d.ts +111 -0
  62. package/dist/pptx/chunks/text-operations-a1cqBYk9.d.ts.map +1 -0
  63. package/dist/pptx/cli/index.d.ts +17 -1
  64. package/dist/pptx/cli/index.d.ts.map +1 -1
  65. package/dist/pptx/converter/index.d.ts +1 -1
  66. package/dist/pptx/editor/ai/table-merge.d.ts +16 -0
  67. package/dist/pptx/editor/ai/table-merge.d.ts.map +1 -1
  68. package/dist/pptx/editor/loader/element-patch-walker.d.ts +15 -0
  69. package/dist/pptx/editor/loader/element-patch-walker.d.ts.map +1 -1
  70. package/dist/pptx/editor/loader/lazy-image-resolution.d.ts +15 -0
  71. package/dist/pptx/editor/loader/lazy-image-resolution.d.ts.map +1 -1
  72. package/dist/pptx/editor/loader/load-content-helpers.d.ts +7 -0
  73. package/dist/pptx/editor/loader/load-content-helpers.d.ts.map +1 -1
  74. package/dist/pptx/editor/loader/table-style-image-paths.d.ts +20 -0
  75. package/dist/pptx/editor/loader/table-style-image-paths.d.ts.map +1 -1
  76. package/dist/pptx/editor/loader/text-fill-image-paths.d.ts +19 -0
  77. package/dist/pptx/editor/loader/text-fill-image-paths.d.ts.map +1 -1
  78. package/dist/pptx/editor/render/bullet-autonum.d.ts +14 -0
  79. package/dist/pptx/editor/render/bullet-list.d.ts +8 -0
  80. package/dist/pptx/editor/render/bullet-list.d.ts.map +1 -1
  81. package/dist/pptx/editor/render/bullet-toggle.d.ts +4 -0
  82. package/dist/pptx/editor/render/bullet-toggle.d.ts.map +1 -1
  83. package/dist/pptx/editor/render/chart-user-shape-edit.d.ts +12 -0
  84. package/dist/pptx/editor/render/chart-user-shape-edit.d.ts.map +1 -1
  85. package/dist/pptx/editor/render/clone.d.ts +20 -0
  86. package/dist/pptx/editor/render/clone.d.ts.map +1 -1
  87. package/dist/pptx/editor/render/collaboration-assets.d.ts +17 -0
  88. package/dist/pptx/editor/render/collaboration-live-patch-target.d.ts +9 -0
  89. package/dist/pptx/editor/render/collaboration-live-patch-target.d.ts.map +1 -1
  90. package/dist/pptx/editor/render/collaboration-reconcile.d.ts +21 -0
  91. package/dist/pptx/editor/render/collaboration-reconcile.d.ts.map +1 -1
  92. package/dist/pptx/editor/render/collaboration-sync.d.ts +32 -4
  93. package/dist/pptx/editor/render/collaboration-sync.d.ts.map +1 -1
  94. package/dist/pptx/editor/render/collaboration-text-codec.d.ts +33 -2
  95. package/dist/pptx/editor/render/collaboration-text-codec.d.ts.map +1 -0
  96. package/dist/pptx/editor/render/collaboration-text-merge.d.ts +36 -2
  97. package/dist/pptx/editor/render/collaboration-text-merge.d.ts.map +1 -0
  98. package/dist/pptx/editor/render/collaboration-text-native-edit.d.ts +2 -2
  99. package/dist/pptx/editor/render/collaboration-text-positions.d.ts +34 -2
  100. package/dist/pptx/editor/render/collaboration-text-positions.d.ts.map +1 -0
  101. package/dist/pptx/editor/render/collaboration-text-projection.d.ts +1 -1
  102. package/dist/pptx/editor/render/collaboration-text-session-apply.d.ts +3 -3
  103. package/dist/pptx/editor/render/collaboration-text-session-delta.d.ts +36 -2
  104. package/dist/pptx/editor/render/collaboration-text-session-delta.d.ts.map +1 -0
  105. package/dist/pptx/editor/render/collaboration-text-session-paragraph.d.ts +1 -1
  106. package/dist/pptx/editor/render/collaboration-text-session.d.ts +40 -2
  107. package/dist/pptx/editor/render/collaboration-text-session.d.ts.map +1 -0
  108. package/dist/pptx/editor/render/collaboration-text-snapshot-positions.d.ts +2 -2
  109. package/dist/pptx/editor/render/custom-show-operations.d.ts +14 -0
  110. package/dist/pptx/editor/render/custom-show-operations.d.ts.map +1 -1
  111. package/dist/pptx/editor/render/deck-save-encryption.d.ts +24 -0
  112. package/dist/pptx/editor/render/deck-save-encryption.d.ts.map +1 -1
  113. package/dist/pptx/editor/render/element-locks.d.ts +25 -0
  114. package/dist/pptx/editor/render/element-locks.d.ts.map +1 -1
  115. package/dist/pptx/editor/render/element-operations.d.ts +11 -0
  116. package/dist/pptx/editor/render/element-operations.d.ts.map +1 -1
  117. package/dist/pptx/editor/render/element.d.ts +12 -0
  118. package/dist/pptx/editor/render/element.d.ts.map +1 -1
  119. package/dist/pptx/editor/render/find-replace.d.ts +8 -2
  120. package/dist/pptx/editor/render/find-replace.d.ts.map +1 -1
  121. package/dist/pptx/editor/render/font-family-update.d.ts +32 -1
  122. package/dist/pptx/editor/render/font-family-update.d.ts.map +1 -1
  123. package/dist/pptx/editor/render/group-drill.d.ts +26 -0
  124. package/dist/pptx/editor/render/group-drill.d.ts.map +1 -1
  125. package/dist/pptx/editor/render/group-ops.d.ts +24 -0
  126. package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts +21 -1
  127. package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts.map +1 -1
  128. package/dist/pptx/editor/render/remap-text.d.ts +5 -0
  129. package/dist/pptx/editor/render/remap-text.d.ts.map +1 -1
  130. package/dist/pptx/editor/render/section-operations.d.ts +14 -0
  131. package/dist/pptx/editor/render/section-operations.d.ts.map +1 -1
  132. package/dist/pptx/editor/render/slide-background-patch.d.ts +15 -0
  133. package/dist/pptx/editor/render/slide-background-patch.d.ts.map +1 -1
  134. package/dist/pptx/editor/render/slide-operations.d.ts +12 -0
  135. package/dist/pptx/editor/render/slide-operations.d.ts.map +1 -1
  136. package/dist/pptx/editor/render/slide-search.d.ts +6 -0
  137. package/dist/pptx/editor/render/slide-search.d.ts.map +1 -1
  138. package/dist/pptx/editor/render/slide-size-rescale.d.ts +18 -0
  139. package/dist/pptx/editor/render/slide-size-rescale.d.ts.map +1 -1
  140. package/dist/pptx/editor/render/slide-transition-edits.d.ts +15 -0
  141. package/dist/pptx/editor/render/slide-transition-edits.d.ts.map +1 -1
  142. package/dist/pptx/editor/render/table-cell-edit.d.ts +8 -0
  143. package/dist/pptx/editor/render/table-cell-edit.d.ts.map +1 -1
  144. package/dist/pptx/editor/render/table-cell-merge.d.ts +15 -0
  145. package/dist/pptx/editor/render/table-cell-merge.d.ts.map +1 -1
  146. package/dist/pptx/editor/render/table-data-grid-ops.d.ts +26 -0
  147. package/dist/pptx/editor/render/table-data-grid-ops.d.ts.map +1 -1
  148. package/dist/pptx/editor/render/table-layout.d.ts +3 -1
  149. package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
  150. package/dist/pptx/editor/render/table-merge.d.ts +16 -0
  151. package/dist/pptx/editor/render/table-merge.d.ts.map +1 -1
  152. package/dist/pptx/editor/render/table-style-editor-descriptor.d.ts +13 -0
  153. package/dist/pptx/editor/render/table-style-editor-descriptor.d.ts.map +1 -1
  154. package/dist/pptx/editor/render/table-style-editor-edit.d.ts +13 -0
  155. package/dist/pptx/editor/render/table-style-editor-edit.d.ts.map +1 -1
  156. package/dist/pptx/editor/render/table-style-editor-parts.d.ts +10 -0
  157. package/dist/pptx/editor/render/table-style-editor-parts.d.ts.map +1 -1
  158. package/dist/pptx/editor/render/table-style-map-edits.d.ts +20 -0
  159. package/dist/pptx/editor/render/table-style-map-edits.d.ts.map +1 -1
  160. package/dist/pptx/editor/render/text-content-style.d.ts +2 -1
  161. package/dist/pptx/editor/render/text-content-style.d.ts.map +1 -1
  162. package/dist/pptx/editor/render/text-runs-style-patch.d.ts +2 -2
  163. package/dist/pptx/editor/render/text-segment-paragraph-break.d.ts +23 -0
  164. package/dist/pptx/editor/render/text-segment-paragraph-break.d.ts.map +1 -1
  165. package/dist/pptx/editor/render/text-style-scope.d.ts +20 -2
  166. package/dist/pptx/editor/render/text-style-scope.d.ts.map +1 -1
  167. package/dist/pptx/editor/render/text-theme.d.ts +11 -0
  168. package/dist/pptx/editor/render/text-theme.d.ts.map +1 -1
  169. package/dist/pptx/editor/render/theme-editor-presets.d.ts +9 -0
  170. package/dist/pptx/editor/render/theme-editor-presets.d.ts.map +1 -1
  171. package/dist/pptx/editor/render/update-text-segment-style.d.ts +2 -1
  172. package/dist/pptx/editor/render/update-text-segment-style.d.ts.map +1 -1
  173. package/dist/pptx/index.d.ts +23 -9
  174. package/dist/pptx/node/index.d.ts +17 -1
  175. package/dist/pptx/node/index.d.ts.map +1 -1
  176. package/dist/pptx/signature-node/index.d.ts +8 -1
  177. package/dist/pptx/signature-node/index.d.ts.map +1 -1
  178. package/dist/pptx/smartart-layouts/index.d.ts +8 -1
  179. package/dist/pptx/smartart-layouts/index.d.ts.map +1 -1
  180. package/dist/pptx/ui/index.d.ts +2 -0
  181. package/dist/pptx/ui/index.d.ts.map +1 -1
  182. package/package.json +8 -8
  183. package/dist/pptx/chunks/collaboration-text-codec-1VmwD3yq.d.ts +0 -34
  184. package/dist/pptx/chunks/collaboration-text-codec-1VmwD3yq.d.ts.map +0 -1
  185. package/dist/pptx/chunks/collaboration-text-merge-B-tth-0W.d.ts +0 -19
  186. package/dist/pptx/chunks/collaboration-text-merge-B-tth-0W.d.ts.map +0 -1
  187. package/dist/pptx/chunks/collaboration-text-positions-D-1Jo1Fz.d.ts +0 -34
  188. package/dist/pptx/chunks/collaboration-text-positions-D-1Jo1Fz.d.ts.map +0 -1
  189. package/dist/pptx/chunks/collaboration-text-session-CWHTaWF4.d.ts +0 -41
  190. package/dist/pptx/chunks/collaboration-text-session-CWHTaWF4.d.ts.map +0 -1
  191. package/dist/pptx/chunks/collaboration-text-session-delta-Dxzybssp.d.ts +0 -37
  192. package/dist/pptx/chunks/collaboration-text-session-delta-Dxzybssp.d.ts.map +0 -1
  193. package/dist/pptx/chunks/elements-CValElsy.d.ts +0 -3568
  194. package/dist/pptx/chunks/elements-CValElsy.d.ts.map +0 -1
  195. package/dist/pptx/chunks/index-BaBgJR8i.d.ts +0 -9913
  196. package/dist/pptx/chunks/index-BaBgJR8i.d.ts.map +0 -1
  197. package/dist/pptx/chunks/index-ClHCBGOf.d.ts.map +0 -1
  198. package/dist/pptx/chunks/index-DqkBjVqR.d.ts.map +0 -1
  199. package/dist/pptx/chunks/inspection-status-TKac7eqb.d.ts.map +0 -1
  200. package/dist/pptx/chunks/schemas-LHsDbVOw.d.ts.map +0 -1
  201. package/dist/pptx/chunks/smart-art-DB37AsFP.d.ts +0 -1817
  202. package/dist/pptx/chunks/smart-art-DB37AsFP.d.ts.map +0 -1
  203. package/dist/pptx/chunks/table-DUO1H9-r.d.ts +0 -1798
  204. package/dist/pptx/chunks/table-DUO1H9-r.d.ts.map +0 -1
  205. package/dist/pptx/chunks/text-operations-B3lZjvs_.d.ts +0 -3363
  206. package/dist/pptx/chunks/text-operations-B3lZjvs_.d.ts.map +0 -1
  207. package/dist/pptx/chunks/text-t_wJ2OwM.d.ts +0 -1452
  208. package/dist/pptx/chunks/text-t_wJ2OwM.d.ts.map +0 -1
@@ -1,7 +1,35 @@
1
- import { a as encodeSegmentsToDelta, i as decodeTextBody, n as YTextLike, o as encodeTextBody, r as decodeDelta, s as isYTextLike, t as DeltaOp } from "../../chunks/collaboration-text-codec-1VmwD3yq.js";
2
- import { t as YTextEditableLike } from "../../chunks/collaboration-text-merge-B-tth-0W.js";
3
- import { n as TrackedTextPosition } from "../../chunks/collaboration-text-positions-D-1Jo1Fz.js";
4
- import { r as TextSessionPositions } from "../../chunks/collaboration-text-session-CWHTaWF4.js";
1
+ /**
2
+ * collaboration-sync.ts: Framework-agnostic CRDT sync utilities for the
3
+ * pptx-viewer collaboration stack (Yjs backend).
4
+ *
5
+ * Exports:
6
+ * - Structural Yjs interfaces (no hard yjs import - bindings pass live instances)
7
+ * - YjsFactories: factory interface bindings implement using `new Y.Map()` etc.
8
+ * - writeElementToYMap / readElementFromYMap: PptxElement <-> YMapLike
9
+ * - writeSlideToYMap / readSlideFromYMap: PptxSlide <-> YMapLike
10
+ * - writeSlidesToYDoc / readSlidesFromYDoc: PptxSlide[] <-> Y.Doc
11
+ * - observeYDocSlides: register a change listener on the pptx:slides array
12
+ * - re-exports of the text codec (collaboration-text-codec.ts)
13
+ *
14
+ * Y.Doc schema:
15
+ * pptx:slides - Y.Array of slide Y.Maps
16
+ * Each slide Y.Map has scalar keys + `_`-prefixed JSON blobs + `elements`
17
+ * Each element Y.Map has scalar keys + `_`-prefixed JSON blobs + `textBody`
18
+ * textBody is a Y.Text with one delta-op per TextSegment
19
+ *
20
+ * NOTE: packages/tools' pptx-codec.ts implements a similar schema but with
21
+ * different complex-field key prefixes (e.g. `_textStyle` vs `_ts` here); the
22
+ * two doc layouts are NOT interchangeable on the same Y.Doc.
23
+ *
24
+ * Prefer `reconcileSlidesInYDoc` (collaboration-reconcile.ts) over
25
+ * `writeSlidesToYDoc` for live editing: it updates only what changed instead
26
+ * of replacing the whole slides array, so concurrent edits merge per
27
+ * slide/element/field rather than colliding at document granularity.
28
+ */
29
+ import { DeltaOp, YTextLike, decodeDelta, decodeTextBody, encodeSegmentsToDelta, encodeTextBody, isYTextLike } from "./collaboration-text-codec.js";
30
+ import { YTextEditableLike } from "./collaboration-text-merge.js";
31
+ import { TrackedTextPosition } from "./collaboration-text-positions.js";
32
+ import { TextSessionPositions } from "./collaboration-text-session.js";
5
33
  import { PptxElement, PptxSlide } from "ooxml-core/pptx";
6
34
  export interface YMapLike {
7
35
  get: (key: string) => unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"collaboration-sync.d.ts","names":[],"sources":["../../../../pptx/editor/render/collaboration-sync.ts","../../../../pptx/editor/render/collaboration-assets.ts"],"mappings":";;;;;iBAsDiB;EAChB,MAAM;EACN,MAAM,aAAa;EACnB,SAAS;EACT,UAAU,KAAK,gBAAgB;;;iBAIf;EAChB;;YAGW,iBAAiB,kBAAkB,cAAc;iBAE5C;WACP;EACT,MAAM;EACN,OAAO;EACP,SAAS,eAAe;EACxB,SAAS,eAAe;EACxB;EACA,UAAU;EACV,YAAY;EACZ,cAAc,SAAS;EACvB,gBAAgB,SAAS;;iBAGT;EAChB,SAAS,iBAAiB;EAC1B,WAAW,iBAAiB;EAC5B,WAAW,gBAAgB;;iBAGX;EAChB,iBAAiB;EACjB,mBAAmB;EACnB,kBAAkB;;EAElB,uBAAuB,MAAM,sBAAsB,qBAAqB;;qBAO5D;qBACA;qBAEA,qBAAqB;qBA2HrB,wBAAwB,SAAS;qBA8CjC,mBAAmB;qBA0BnB,sBAAsB,SAAS;wBAiC5B,mBACf,SAAS,aACT,MAAM,UACN,WAAW,cACX,QAAQ;wBAwBO,oBAAoB,MAAM,UAAU,QAAQ,WAAW;wBAkCvD,iBACf,OAAO,WACP,MAAM,UACN,WAAW,cACX,QAAQ;wBAsBO,kBAAkB,MAAM,UAAU,QAAQ,WAAW;;;;;;wBAsCrD,kBACf,QAAQ,aACR,MAAM,UACN,WAAW,cACX;;;;;;wBAqBe,mBAAmB,MAAM,WAAW;;;;;;;wBAyBpC,kBAAkB,MAAM,UAAU,UAAU;qBCte/C;;;;;;;wBAQG,eAAe;;;;;qBAQlB,sBAAsB;wBA+BnB,gBAAgB;;wBAKhB,kBAAkB;wBAOlB,SAAS,mBAAmB;wBAI5B,aAAa,MAAM,WAAW;;wBAK9B,cAAc;;;;;;;;;wBAYd,iBACf,mBACA,KAAK,yBACL,MAAM,UACN,QAAQ;;;;;;;wBAoBO,qBACf,mBACA,KAAK,yBACL,MAAM,UACN,QAAQ;;wBAmCO,gBACf,MAAM,UACN,QAAQ,UACR,SAAS"}
1
+ {"version":3,"file":"collaboration-sync.d.ts","names":[],"sources":["../../../../pptx/editor/render/collaboration-sync.ts","../../../../pptx/editor/render/collaboration-assets.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsDiB;EAChB,MAAM;EACN,MAAM,aAAa;EACnB,SAAS;EACT,UAAU,KAAK,gBAAgB;;;iBAIf;EAChB;;YAGW,iBAAiB,kBAAkB,cAAc;iBAE5C;WACP;EACT,MAAM;EACN,OAAO;EACP,SAAS,eAAe;EACxB,SAAS,eAAe;EACxB;EACA,UAAU;EACV,YAAY;EACZ,cAAc,SAAS;EACvB,gBAAgB,SAAS;;iBAGT;EAChB,SAAS,iBAAiB;EAC1B,WAAW,iBAAiB;EAC5B,WAAW,gBAAgB;;iBAGX;EAChB,iBAAiB;EACjB,mBAAmB;EACnB,kBAAkB;;EAElB,uBAAuB,MAAM,sBAAsB,qBAAqB;;qBAO5D;qBACA;qBAEA,qBAAqB;qBA2HrB,wBAAwB,SAAS;qBA8CjC,mBAAmB;qBA0BnB,sBAAsB,SAAS;wBAiC5B,mBACf,SAAS,aACT,MAAM,UACN,WAAW,cACX,QAAQ;wBAwBO,oBAAoB,MAAM,UAAU,QAAQ,WAAW;wBAkCvD,iBACf,OAAO,WACP,MAAM,UACN,WAAW,cACX,QAAQ;wBAsBO,kBAAkB,MAAM,UAAU,QAAQ,WAAW;;;;;;wBAsCrD,kBACf,QAAQ,aACR,MAAM,UACN,WAAW,cACX;;;;;;wBAqBe,mBAAmB,MAAM,WAAW;;;;;;;wBAyBpC,kBAAkB,MAAM,UAAU,UAAU;qBCte/C;;;;;;;wBAQG,eAAe;;;;;qBAQlB,sBAAsB;wBA+BnB,gBAAgB;;wBAKhB,kBAAkB;wBAOlB,SAAS,mBAAmB;wBAI5B,aAAa,MAAM,WAAW;;wBAK9B,cAAc;;;;;;;;;wBAYd,iBACf,mBACA,KAAK,yBACL,MAAM,UACN,QAAQ;;;;;;;wBAoBO,qBACf,mBACA,KAAK,yBACL,MAAM,UACN,QAAQ;;wBAmCO,gBACf,MAAM,UACN,QAAQ,UACR,SAAS"}
@@ -1,2 +1,33 @@
1
- import { a as encodeSegmentsToDelta, i as decodeTextBody, n as YTextLike, o as encodeTextBody, r as decodeDelta, s as isYTextLike, t as DeltaOp } from "../../chunks/collaboration-text-codec-1VmwD3yq.js";
2
- export { DeltaOp, YTextLike, decodeDelta, decodeTextBody, encodeSegmentsToDelta, encodeTextBody, isYTextLike };
1
+ /**
2
+ * collaboration-text-codec.ts: TextSegment[] <-> Y.Text delta codec used by the
3
+ * collaboration sync layer. Split out of collaboration-sync.ts to keep both
4
+ * modules focused.
5
+ *
6
+ * Exports:
7
+ * - DeltaOp / YTextLike: structural Yjs text interfaces (no yjs import)
8
+ * - encodeTextBody: write TextSegment[] into a live YTextLike
9
+ * - encodeSegmentsToDelta: pure simulation of the delta Y.Text would produce
10
+ * - decodeDelta / decodeTextBody: delta -> TextSegment[]
11
+ * - isYTextLike: runtime guard
12
+ */
13
+ export interface DeltaOp {
14
+ insert?: unknown;
15
+ attributes?: Record<string, unknown>;
16
+ }
17
+ export interface YTextLike {
18
+ insert: (index: number, text: string, attrs?: Record<string, string>) => void;
19
+ toDelta: () => DeltaOp[];
20
+ toString: () => string;
21
+ }
22
+ export declare function isYTextLike(value: unknown): value is YTextLike;
23
+ export declare function encodeTextBody(segments: unknown[], ytext: YTextLike): void;
24
+ /**
25
+ * Pure simulation of the delta a Y.Text produces after `encodeTextBody`:
26
+ * adjacent runs with identical attribute maps merge into one op, matching
27
+ * Yjs run-merging. Used to compare desired segments against a live Y.Text
28
+ * without instantiating one.
29
+ */
30
+ export declare function encodeSegmentsToDelta(segments: unknown[]): DeltaOp[];
31
+ export declare function decodeDelta(delta: DeltaOp[]): Record<string, unknown>[];
32
+ export declare function decodeTextBody(ytext: YTextLike): Record<string, unknown>[];
33
+ //# sourceMappingURL=collaboration-text-codec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collaboration-text-codec.d.ts","names":[],"sources":["../../../../pptx/editor/render/collaboration-text-codec.ts"],"mappings":";;;;;;;;;;;;iBAaiB;EAChB;EACA,aAAa;;iBAGG;EAChB,SAAS,eAAe,cAAc,QAAQ;EAC9C,eAAe;EACf;;wBAGe,YAAY,iBAAiB,SAAS;wBAsFtC,eAAe,qBAAqB,OAAO;;;;;;;wBAoB3C,sBAAsB,sBAAsB;wBAqB5C,YAAY,OAAO,YAAY;wBAiI/B,eAAe,OAAO,YAAY"}
@@ -1,2 +1,36 @@
1
- import { a as mergeDeltaIntoYText, i as isYTextEditable, n as commonPrefixLength, r as commonSuffixLength, t as YTextEditableLike } from "../../chunks/collaboration-text-merge-B-tth-0W.js";
2
- export { YTextEditableLike, commonPrefixLength, commonSuffixLength, isYTextEditable, mergeDeltaIntoYText };
1
+ /**
2
+ * collaboration-text-merge.ts: character-level in-place merging of a desired
3
+ * text state into a live Y.Text.
4
+ *
5
+ * `reconcileTextBody` used to replace the whole Y.Text whenever the canonical
6
+ * decoded form differed, which made concurrent edits to the SAME text element
7
+ * collide at element granularity (last writer wins). This module instead
8
+ * applies a minimal edit script to the existing Y.Text:
9
+ *
10
+ * - plain-text diff via common prefix/suffix (surrogate-pair safe): one
11
+ * delete + attributed inserts for the changed middle span
12
+ * - attribute reconcile: walk the current and desired attribute runs by
13
+ * position and `format()` only the ranges whose attributes differ
14
+ *
15
+ * Because each peer submits a minimal delta, Yjs merges concurrent edits to
16
+ * the same run at character granularity (e.g. one peer prepends while another
17
+ * appends, both survive).
18
+ */
19
+ import { DeltaOp, YTextLike } from "./collaboration-text-codec.js";
20
+ /** Y.Text surface needed for in-place edits (delete/format on top of insert). */
21
+ export interface YTextEditableLike extends YTextLike {
22
+ delete: (index: number, length: number) => void;
23
+ format: (index: number, length: number, attributes: Record<string, string | null>) => void;
24
+ }
25
+ export declare function isYTextEditable(value: unknown): value is YTextEditableLike;
26
+ export declare function commonPrefixLength(a: string, b: string): number;
27
+ export declare function commonSuffixLength(a: string, b: string, prefix: number): number;
28
+ /**
29
+ * Apply the minimal edit script that turns the live `ytext` into the state
30
+ * described by `desiredOps`. Returns false (leaving the caller to fall back
31
+ * to wholesale replacement) if the text diff did not converge.
32
+ *
33
+ * Must be called inside a Y.Doc transaction when the text is integrated.
34
+ */
35
+ export declare function mergeDeltaIntoYText(ytext: YTextEditableLike, desiredOps: DeltaOp[]): boolean;
36
+ //# sourceMappingURL=collaboration-text-merge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collaboration-text-merge.d.ts","names":[],"sources":["../../../../pptx/editor/render/collaboration-text-merge.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;iBAuBiB,0BAA0B;EAC1C,SAAS,eAAe;EACxB,SAAS,eAAe,gBAAgB,YAAY;;wBAGrC,gBAAgB,iBAAiB,SAAS;wBAqB1C,mBAAmB,WAAW;wBAa9B,mBAAmB,WAAW,WAAW;;;;;;;;wBAsGzC,oBAAoB,OAAO,mBAAmB,YAAY"}
@@ -1,5 +1,5 @@
1
- import { t as DeltaOp } from "../../chunks/collaboration-text-codec-1VmwD3yq.js";
2
- import { n as LocalTextReplacement, r as TextSessionCorrespondence } from "../../chunks/collaboration-text-session-delta-Dxzybssp.js";
1
+ import { DeltaOp } from "./collaboration-text-codec.js";
2
+ import { LocalTextReplacement, TextSessionCorrespondence } from "./collaboration-text-session-delta.js";
3
3
  import { TextSegment } from "ooxml-core/pptx";
4
4
  interface NativeTextSnapshot {
5
5
  segments: readonly TextSegment[];
@@ -1,2 +1,34 @@
1
- import { n as TrackedTextPosition, r as createTextPositionTracker, t as TextPositionChange } from "../../chunks/collaboration-text-positions-D-1Jo1Fz.js";
2
- export { TextPositionChange, TrackedTextPosition, createTextPositionTracker };
1
+ /** Identity-preserving changes from a CRDT snapshot, not a plain-text diff. */
2
+ export interface TextPositionChange {
3
+ retain?: number;
4
+ delete?: number;
5
+ insert?: string;
6
+ }
7
+ interface TextPositionCell {
8
+ index: number;
9
+ left?: TextPositionCell;
10
+ right?: TextPositionCell;
11
+ }
12
+ export interface TrackedTextPosition {
13
+ /** Internal identity, shared by snapshots that observed the same character. */
14
+ readonly cell: TextPositionCell;
15
+ readonly association: number;
16
+ }
17
+ /**
18
+ * Keep observed character identities without a Yjs index scan per character.
19
+ * Removed characters point to surviving neighbours; resolving their start/end
20
+ * cannot include new text inserted into the deleted gap. This uses explicit gap
21
+ * affinity, not Yjs's historical tombstone ordering or collaborative undo.
22
+ *
23
+ * A bridge must provide complete identity-preserving changes before capture or
24
+ * resolution, including local writes. Unordered/lazy observer deltas are not a
25
+ * sufficient source when host observers can change the document themselves.
26
+ */
27
+ export declare function createTextPositionTracker(length: number): {
28
+ capture(index: number, association: number): TrackedTextPosition;
29
+ resolve(position: TrackedTextPosition): number | null;
30
+ apply(changes: readonly TextPositionChange[]): boolean;
31
+ dispose: () => void;
32
+ };
33
+ export {};
34
+ //# sourceMappingURL=collaboration-text-positions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collaboration-text-positions.d.ts","names":[],"sources":["../../../../pptx/editor/render/collaboration-text-positions.ts"],"mappings":";iBACiB;EAChB;EACA;EACA;;UAGS;EACT;EACA,OAAO;EACP,QAAQ;;iBAGQ;;WAEP,MAAM;WACN;;;;;;;;;;;;wBAaM,0BAA0B;EAqBzB,QAAA,eAAM,sBAAwB;EAS3B,QAAA,UAAA;EASH,MAAA,kBAAS;EAlCL"}
@@ -1,4 +1,4 @@
1
- import { t as DeltaOp } from "../../chunks/collaboration-text-codec-1VmwD3yq.js";
1
+ import { DeltaOp } from "./collaboration-text-codec.js";
2
2
  import { TextSegment } from "ooxml-core/pptx";
3
3
  export interface CollaborationTextSpan {
4
4
  readonly segmentIndex: number;
@@ -1,6 +1,6 @@
1
- import { t as YTextEditableLike } from "../../chunks/collaboration-text-merge-B-tth-0W.js";
2
- import { i as TextSessionUnit } from "../../chunks/collaboration-text-session-delta-Dxzybssp.js";
3
- import { r as TextSessionPositions } from "../../chunks/collaboration-text-session-CWHTaWF4.js";
1
+ import { YTextEditableLike } from "./collaboration-text-merge.js";
2
+ import { TextSessionPositions } from "./collaboration-text-session.js";
3
+ import { TextSessionUnit } from "./collaboration-text-session-delta.js";
4
4
  export interface ObservedTextSessionUnit<Position> extends TextSessionUnit {
5
5
  start: Position;
6
6
  end: Position;
@@ -1,2 +1,36 @@
1
- import { a as mergeTextSessionObjectAttribute, c as textSessionDeltaSupported, d as textSessionRetainedIndices, f as textSessionUnits, i as TextSessionUnit, l as textSessionPlan, n as LocalTextReplacement, o as textSessionAttributePatch, r as TextSessionCorrespondence, s as textSessionAttributesEqual, t as LocalTextEdit, u as textSessionReplacementSpan } from "../../chunks/collaboration-text-session-delta-Dxzybssp.js";
2
- export { LocalTextEdit, LocalTextReplacement, TextSessionCorrespondence, TextSessionUnit, mergeTextSessionObjectAttribute, textSessionAttributePatch, textSessionAttributesEqual, textSessionDeltaSupported, textSessionPlan, textSessionReplacementSpan, textSessionRetainedIndices, textSessionUnits };
1
+ import { DeltaOp } from "./collaboration-text-codec.js";
2
+ export interface TextSessionUnit {
3
+ text: string;
4
+ attributes: Record<string, string>;
5
+ }
6
+ /** Browser edit range mapped to the editor's pre-input encoded coordinates. */
7
+ export interface LocalTextReplacement {
8
+ from: number;
9
+ to: number;
10
+ }
11
+ /** Desired UTF-16 units mapped to the editor's previously observed identities. */
12
+ export interface TextSessionCorrespondence {
13
+ readonly retainedIndices: readonly (number | null)[];
14
+ /** Old carriers for known paragraph attributes, independently of character identity. */
15
+ readonly paragraphSources?: readonly (number | null)[];
16
+ }
17
+ export type LocalTextEdit = LocalTextReplacement | TextSessionCorrespondence;
18
+ /** A range disambiguates repeated text; reject a draft that changed outside it. */
19
+ export declare function textSessionReplacementSpan(before: string, after: string, { from, to }: LocalTextReplacement): {
20
+ prefix: number;
21
+ suffix: number;
22
+ } | undefined;
23
+ /** Validate all identities before writes; null units are explicit new insertions. */
24
+ export declare function textSessionRetainedIndices(before: string, after: string, edit?: LocalTextEdit): (number | null)[] | undefined;
25
+ /** Copy and validate optional carrier provenance before entering a transaction. */
26
+ export declare function textSessionPlan(before: string, after: string, edit?: LocalTextEdit): TextSessionCorrespondence | undefined;
27
+ export declare function textSessionAttributesEqual(a: Record<string, string>, b: Record<string, string>): boolean;
28
+ /** Encoded Y.Text coordinates, not native editor/body offsets. */
29
+ export declare function textSessionDeltaSupported(delta: readonly DeltaOp[]): boolean;
30
+ /** Expand validated encoded runs into UTF-16 character identities. */
31
+ export declare function textSessionUnits(delta: readonly DeltaOp[]): TextSessionUnit[] | undefined;
32
+ /** Preserve remote keys when the local draft did not change them. */
33
+ export declare function textSessionAttributePatch(before: Record<string, string>, after: Record<string, string>, current: Record<string, string>): Record<string, string | null>;
34
+ /** Codec JSON objects merge local property changes without overwriting peer keys. */
35
+ export declare function mergeTextSessionObjectAttribute(before: string | undefined, after: string | undefined, current: string | undefined): string | null;
36
+ //# sourceMappingURL=collaboration-text-session-delta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collaboration-text-session-delta.d.ts","names":[],"sources":["../../../../pptx/editor/render/collaboration-text-session-delta.ts"],"mappings":";iBAGiB;EAChB;EACA,YAAY;;;iBAII;EAChB;EACA;;;iBAIgB;WACP;;WAEA;;YAGE,gBAAgB,uBAAuB;;wBAWnC,2BACf,gBACA,iBACE,MAAM,MAAM;EACV;EAAgB;;;wBAoBL,2BACf,gBACA,eACA,OAAO;;wBA8CQ,gBACf,gBACA,eACA,OAAO,gBACL;wBAsBa,2BACf,GAAG,wBACH,GAAG;;wBASY,0BAA0B,gBAAgB;;wBAS1C,iBAAiB,gBAAgB,YAAY;;wBAqB7C,0BACf,QAAQ,wBACR,OAAO,wBACP,SAAS,yBACP;;wBAmDa,gCACf,4BACA,2BACA"}
@@ -1,4 +1,4 @@
1
- import { i as TextSessionUnit } from "../../chunks/collaboration-text-session-delta-Dxzybssp.js";
1
+ import { TextSessionUnit } from "./collaboration-text-session-delta.js";
2
2
  type ParagraphPatch = Record<string, string | null>;
3
3
  /** Read source identities before deletion; character/run attributes never relocate. */
4
4
  export declare function textSessionParagraphPatches(previous: readonly TextSessionUnit[], desired: readonly TextSessionUnit[], sources: readonly (number | null)[] | undefined, readCurrent: (source: number) => Record<string, string> | undefined): Map<number, ParagraphPatch>;
@@ -1,2 +1,40 @@
1
- import { i as createCollaborationTextSession, n as CollaborationTextSnapshot, r as TextSessionPositions, t as CollaborationTextSession } from "../../chunks/collaboration-text-session-CWHTaWF4.js";
2
- export { CollaborationTextSession, CollaborationTextSnapshot, TextSessionPositions, createCollaborationTextSession };
1
+ import { DeltaOp } from "./collaboration-text-codec.js";
2
+ import { YTextEditableLike } from "./collaboration-text-merge.js";
3
+ import { LocalTextEdit } from "./collaboration-text-session-delta.js";
4
+ /** Supplied by the binding's existing Yjs runtime, bound to this exact Y.Text. */
5
+ export interface TextSessionPositions<Position> {
6
+ capture: (index: number, association: number) => Position;
7
+ resolve: (position: Position) => number | null;
8
+ /** Synchronize tracked positions once per batch, including in-transaction writes. */
9
+ refresh?: () => boolean | void;
10
+ /** Release only resources created for this session. */
11
+ dispose?: () => void;
12
+ }
13
+ /** Opaque acknowledgement identity for an exact remote snapshot painted by an adapter. */
14
+ export interface CollaborationTextSnapshot {
15
+ readonly delta: readonly DeltaOp[];
16
+ }
17
+ export interface CollaborationTextSession {
18
+ applyLocalDelta: (delta: readonly DeltaOp[], edit?: LocalTextEdit) => boolean;
19
+ readMerged: () => CollaborationTextSnapshot | undefined;
20
+ adoptMerged: (snapshot: CollaborationTextSnapshot) => boolean;
21
+ /** Capture an offset in the last painted/local draft, not the newer remote string. */
22
+ bookmark: (index: number, association: number) => () => number | null;
23
+ dispose: () => void;
24
+ }
25
+ /**
26
+ * Rebase an active editor's local intent onto an integrated Y.Text.
27
+ *
28
+ * This primitive uses encoded deltas, including the codec's break and empty-run
29
+ * carriers. Adapters must map native body offsets, initialize legacy plain-text
30
+ * inputs, and apply/acknowledge remote DOM snapshots separately. It does not
31
+ * reinterpret scalar text, own host resources or schedule delayed whole drafts.
32
+ */
33
+ export declare function createCollaborationTextSession<Position>({ text, positions, transact, isCurrent }: {
34
+ text: YTextEditableLike;
35
+ positions: TextSessionPositions<Position>;
36
+ transact: (callback: () => void) => void;
37
+ /** Checks edit permission and the exact document/element/text identity. */
38
+ isCurrent: () => boolean;
39
+ }): CollaborationTextSession | undefined;
40
+ //# sourceMappingURL=collaboration-text-session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collaboration-text-session.d.ts","names":[],"sources":["../../../../pptx/editor/render/collaboration-text-session.ts"],"mappings":";;;;iBAaiB,qBAAqB;EACrC,UAAU,eAAe,wBAAwB;EACjD,UAAU,UAAU;;EAEpB;;EAEA;;;iBAIgB;WACP,gBAAgB;;iBAGT;EAChB,kBAAkB,gBAAgB,WAAW,OAAO;EACpD,kBAAkB;EAClB,cAAc,UAAU;;EAExB,WAAW,eAAe;EAC1B;;;;;;;;;;wBAWe,+BAA+B,YAC9C,MACA,WACA,UACA;EAEA,MAAM;EACN,WAAW,qBAAqB;EAChC,WAAW;;EAEX;IACG"}
@@ -1,5 +1,5 @@
1
- import { t as DeltaOp } from "../../chunks/collaboration-text-codec-1VmwD3yq.js";
2
- import { n as TrackedTextPosition } from "../../chunks/collaboration-text-positions-D-1Jo1Fz.js";
1
+ import { TrackedTextPosition } from "./collaboration-text-positions.js";
2
+ import { DeltaOp } from "./collaboration-text-codec.js";
3
3
  /** Public snapshot operations supplied by the binding's existing Yjs runtime. */
4
4
  export interface TextPositionSnapshots<Snapshot> {
5
5
  read: () => Snapshot;
@@ -1,3 +1,17 @@
1
+ /**
2
+ * custom-show-operations: pure edits of the `p:custShowLst` model.
3
+ *
4
+ * Mirrors PowerPoint's Slide Show > Custom Slide Show > Custom Shows dialog:
5
+ * New, Edit (name, add slides, remove, reorder), Copy and Remove. Every function
6
+ * takes the current shows and returns NEW values; inputs are never mutated.
7
+ *
8
+ * A show lists slides by relationship id (`PptxSlide.rId`, `p:sld/@r:id`), may
9
+ * repeat a slide (PowerPoint allows it), and is identified by an
10
+ * `xsd:unsignedInt` id that hyperlinks and actions name with
11
+ * `ppaction://customshow?id=N`. Slide deletion and reordering are reconciled
12
+ * by the save pipeline (`applyCustomShows` remaps and prunes by rId); use
13
+ * {@link pruneCustomShowSlides} to keep the in-memory model in step.
14
+ */
1
15
  import { PptxCustomShow, PptxSlide } from "ooxml-core/pptx";
2
16
  /** Result of an edit that targets one show. `show` is undefined when the id is unknown. */
3
17
  export interface CustomShowEditResult {
@@ -1 +1 @@
1
- {"version":3,"file":"custom-show-operations.d.ts","names":[],"sources":["../../../../pptx/editor/render/custom-show-operations.ts"],"mappings":";;iBAmBiB;EAChB,OAAO;EACP,MAAM;;;wBAIS,iBAAiB,gBAAgB;;wBAYjC,qBACf,gBAAgB,kBAChB,cACA;;wBAkCe,iBACf,gBAAgB,kBAChB,cACA,gCACE;;wBAUa,iBACf,gBAAgB,kBAChB,YACA,eACE;;wBAQa,oBACf,gBAAgB,kBAChB,YACA,+BACE;;wBAKa,sBACf,gBAAgB,kBAChB,YACA,8BACA,iBACE;;wBAUa,2BACf,gBAAgB,kBAChB,YACA,+BACE;;wBASa,oBACf,gBAAgB,kBAChB,YACA,cACA,aACE;;wBAaa,eACf,gBAAgB,kBAChB,YACA,gBACE;;wBAea,iBACf,gBAAgB,kBAChB,aACE;;wBAMa,sBACf,gBAAgB,kBAChB,iBAAiB,KAAK,sBACpB;;wBAUa,iBAAiB,UAAU,KAAK,mBAC/C,MAAM,gBACN,iBAAiB,MACf;;;;;;wBAaa,uBACf,iBAAiB,aACjB;EACI,QAAQ;EAAa"}
1
+ {"version":3,"file":"custom-show-operations.d.ts","names":[],"sources":["../../../../pptx/editor/render/custom-show-operations.ts"],"mappings":";;;;;;;;;;;;;;;;iBAmBiB;EAChB,OAAO;EACP,MAAM;;;wBAIS,iBAAiB,gBAAgB;;wBAYjC,qBACf,gBAAgB,kBAChB,cACA;;wBAkCe,iBACf,gBAAgB,kBAChB,cACA,gCACE;;wBAUa,iBACf,gBAAgB,kBAChB,YACA,eACE;;wBAQa,oBACf,gBAAgB,kBAChB,YACA,+BACE;;wBAKa,sBACf,gBAAgB,kBAChB,YACA,8BACA,iBACE;;wBAUa,2BACf,gBAAgB,kBAChB,YACA,+BACE;;wBASa,oBACf,gBAAgB,kBAChB,YACA,cACA,aACE;;wBAaa,eACf,gBAAgB,kBAChB,YACA,gBACE;;wBAea,iBACf,gBAAgB,kBAChB,aACE;;wBAMa,sBACf,gBAAgB,kBAChB,iBAAiB,KAAK,sBACpB;;wBAUa,iBAAiB,UAAU,KAAK,mBAC/C,MAAM,gBACN,iBAAiB,MACf;;;;;;wBAaa,uBACf,iBAAiB,aACjB;EACI,QAAQ;EAAa"}
@@ -1,3 +1,27 @@
1
+ /**
2
+ * deck-save-encryption: the single place that decides whether a deck save
3
+ * produces a plain OOXML ZIP or an encrypted OLE/CFB container.
4
+ *
5
+ * "Encrypt with Password" (File > Info > Protect Presentation) captures a
6
+ * secret in every binding. Whether that secret reaches the serialiser used to
7
+ * be re-decided per binding, and four of the five never decided it at all:
8
+ * they stored the password, showed a "protected" badge, and wrote a plaintext
9
+ * `.pptx`. That is a security-facing lie, so the decision now lives here as a
10
+ * pure function and every binding routes its save through
11
+ * {@link saveDeckWithPassword}.
12
+ *
13
+ * The rule is deliberately trivial: a non-empty password means
14
+ * `PptxHandler.saveEncrypted` (ECMA-376 agile encryption inside an OLE2
15
+ * compound file with `EncryptionInfo` + `EncryptedPackage` streams), anything
16
+ * else means `PptxHandler.save` (a `PK\x03\x04` ZIP). What matters is that it
17
+ * is decided ONCE.
18
+ *
19
+ * The one exception is the save PURPOSE (see {@link DeckSavePurpose}): bytes the
20
+ * viewer writes only so it can read them back itself - the crash-recovery
21
+ * autosave snapshot, and the re-serialise-then-reload cycle behind "apply
22
+ * theme" - are never encrypted, because nothing on the way back in has a
23
+ * password to offer.
24
+ */
1
25
  import { PptxHandler, PptxSlide } from "ooxml-core/pptx";
2
26
  /**
3
27
  * The slice of `PptxHandler` a deck save needs. Bindings pass the live handler;
@@ -1 +1 @@
1
- {"version":3,"file":"deck-save-encryption.d.ts","names":[],"sources":["../../../../pptx/editor/render/deck-save-encryption.ts"],"mappings":";;;;;YAgCY,qBAAqB,KAAK;;YAG1B,kBAAkB,YAAY,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA8CzC;;;;;;;;;;;iBAYK;EAChB;EACA;EACA,UAAU;;;;;;YAOC;WACE;WAA6B;;WAC7B;WAAsC;WAA0B;;;;;;;;;;;;;;;;;;;;wBAsB9D,aAAa,QAAQ,6CAA6C;;;;;;;;;;;;;;;;;;wBAqClE,uBACf,SAAS,iCACP;EAAmB;;;;;;;;;;;;;;;;;wBAuBA,qBACrB,YAAY,oBACZ,QAAQ,aACR,SAAS,6BACT,QAAQ,6CACN,QAAQ;;;;;;;;;wBAgBK,qBAAqB,OAAO,aAAa"}
1
+ {"version":3,"file":"deck-save-encryption.d.ts","names":[],"sources":["../../../../pptx/editor/render/deck-save-encryption.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAgCY,qBAAqB,KAAK;;YAG1B,kBAAkB,YAAY,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA8CzC;;;;;;;;;;;iBAYK;EAChB;EACA;EACA,UAAU;;;;;;YAOC;WACE;WAA6B;;WAC7B;WAAsC;WAA0B;;;;;;;;;;;;;;;;;;;;wBAsB9D,aAAa,QAAQ,6CAA6C;;;;;;;;;;;;;;;;;;wBAqClE,uBACf,SAAS,iCACP;EAAmB;;;;;;;;;;;;;;;;;wBAuBA,qBACrB,YAAY,oBACZ,QAAQ,aACR,SAAS,6BACT,QAAQ,6CACN,QAAQ;;;;;;;;;wBAgBK,qBAAqB,OAAO,aAAa"}
@@ -1,3 +1,28 @@
1
+ /**
2
+ * `element-locks`: whether an authored `a:spLocks` lets a gesture proceed.
3
+ *
4
+ * PowerPoint stores per-shape interaction locks on the non-visual properties
5
+ * node (`p:cNvSpPr/a:spLocks`, and the `a:cxnSpLocks` / `a:picLocks` /
6
+ * `a:grpSpLocks` / `a:graphicFrameLocks` variants), and the parser folds all of
7
+ * them into one {@link PptxShapeLocks} bag on the element. A locked shape in a
8
+ * real deck is a template guardrail: the author is saying "the reader may not
9
+ * drag this masthead off the slide".
10
+ *
11
+ * Enforcement used to be spread across the bindings by hand, which is how the
12
+ * repo ended up shipping a Lock button in the Vue and Angular inspectors that
13
+ * wrote `locks` nothing on the canvas ever read. This module is the single
14
+ * decision function: give it an element and it returns a framework-neutral
15
+ * descriptor of what the user may still do to it, and every binding maps that
16
+ * descriptor onto its own pointer wiring.
17
+ *
18
+ * Composition rules (PowerPoint's, not ours):
19
+ * - `noSelect` subsumes everything. A shape you cannot select is a shape you
20
+ * cannot move, resize, rotate, adjust or edit, whatever the other flags say.
21
+ * - every other flag gates exactly one gesture, so a shape can be pinned in
22
+ * place (`noMove`) and still be resized, which is what PowerPoint does.
23
+ *
24
+ * @module render/element-locks
25
+ */
1
26
  import { PptxElement, PptxShapeLocks } from "ooxml-core/pptx";
2
27
  /** A single on-canvas gesture a lock may forbid. */
3
28
  export type ElementInteraction = 'select' | 'move' | 'resize' | 'rotate' | 'textEdit' | 'group' | 'changeAspect' | 'adjustHandle' | 'editPoints' | 'changeArrowheads' | 'changeShapeType' | 'crop' | 'drilldown';
@@ -1 +1 @@
1
- {"version":3,"file":"element-locks.d.ts","names":[],"sources":["../../../../pptx/editor/render/element-locks.ts"],"mappings":";;YA4BY;;;;;;;;;iBAuBK;;EAEhB;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;;;;;;EAQA;;;;;;;;wBA2Ce,gBACf,SAAS,iCACP;;;;;;;;wBAWa,4BACf,SAAS,iCACP;;;;;;;;wBAiDa,uBACf,SAAS,gCACT,aAAa;;;;;;;;;;;wBAeE,aAAa,SAAS;;wBAKtB,2BACf,SAAS,gCACT,aAAa;;;;;;;wBAWE,gBAAgB,SAAS;;;;;;;;;;;;;wBAoBzB,uBAAuB,sBAAsB;;;;;;;;wBAW7C,sBACf,wBACA,SAAS,eAAe,gCACxB,aAAa"}
1
+ {"version":3,"file":"element-locks.d.ts","names":[],"sources":["../../../../pptx/editor/render/element-locks.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;YA4BY;;;;;;;;;iBAuBK;;EAEhB;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;;;;;;EAQA;;;;;;;;wBA2Ce,gBACf,SAAS,iCACP;;;;;;;;wBAWa,4BACf,SAAS,iCACP;;;;;;;;wBAiDa,uBACf,SAAS,gCACT,aAAa;;;;;;;;;;;wBAeE,aAAa,SAAS;;wBAKtB,2BACf,SAAS,gCACT,aAAa;;;;;;;wBAWE,gBAAgB,SAAS;;;;;;;;;;;;;wBAoBzB,uBAAuB,sBAAsB;;;;;;;;wBAW7C,sBACf,wBACA,SAAS,eAAe,gCACxB,aAAa"}
@@ -1,3 +1,14 @@
1
+ /**
2
+ * element-operations: Pure array-transformation functions for slide elements.
3
+ *
4
+ * All functions are framework-agnostic (no framework imports). Each takes a
5
+ * `readonly PptxElement[]` representing the ordered element list for a slide
6
+ * (array index 0 = back, last index = front/top in paint order) and returns a
7
+ * NEW array; the input is never mutated.
8
+ *
9
+ * Callers supply a `newId` wherever a new element identity is needed, keeping
10
+ * these functions deterministic and side-effect-free.
11
+ */
1
12
  import { PptxElement } from "ooxml-core/pptx";
2
13
  /**
3
14
  * Shallow-merge `patch` onto the element with `id`.
@@ -1 +1 @@
1
- {"version":3,"file":"element-operations.d.ts","names":[],"sources":["../../../../pptx/editor/render/element-operations.ts"],"mappings":";;;;;;;;wBAqEgB,kBACf,mBAAmB,eACnB,YACA,OAAO,QAAQ,eACb;;;;;;;wBAUa,cACf,mBAAmB,eACnB,YACA,YACA,aACE;;;;;;;wBAUa,mBACf,mBAAmB,eACnB,YACA,WACA,YACE;;;;;;;;wBAWa,cACf,mBAAmB,eACnB,YACA,eACA,iBACE;;;;;;;;wBAaa,oBACf,mBAAmB,eACnB,yBACE;;;;;;;;;;;;wBAmBa,qBACf,mBAAmB,eACnB,YACA,eACA,kBACE;;;;;;;wBAuBa,aAAa,mBAAmB,eAAe,aAAa;;;;;;;wBAgB5D,WAAW,mBAAmB,eAAe,aAAa;;;;;;;;wBAiB1D,aAAa,mBAAmB,eAAe,aAAa;;;;;;;;wBAmB5D,aAAa,mBAAmB,eAAe,aAAa"}
1
+ {"version":3,"file":"element-operations.d.ts","names":[],"sources":["../../../../pptx/editor/render/element-operations.ts"],"mappings":";;;;;;;;;;;;;;;;;;;wBAqEgB,kBACf,mBAAmB,eACnB,YACA,OAAO,QAAQ,eACb;;;;;;;wBAUa,cACf,mBAAmB,eACnB,YACA,YACA,aACE;;;;;;;wBAUa,mBACf,mBAAmB,eACnB,YACA,WACA,YACE;;;;;;;;wBAWa,cACf,mBAAmB,eACnB,YACA,eACA,iBACE;;;;;;;;wBAaa,oBACf,mBAAmB,eACnB,yBACE;;;;;;;;;;;;wBAmBa,qBACf,mBAAmB,eACnB,YACA,eACA,kBACE;;;;;;;wBAuBa,aAAa,mBAAmB,eAAe,aAAa;;;;;;;wBAgB5D,WAAW,mBAAmB,eAAe,aAAa;;;;;;;;wBAiB1D,aAAa,mBAAmB,eAAe,aAAa;;;;;;;;wBAmB5D,aAAa,mBAAmB,eAAe,aAAa"}
@@ -1,3 +1,15 @@
1
+ /**
2
+ * element.ts: framework-agnostic element helpers for the viewer/editor.
3
+ *
4
+ * Template-origin detection, inline-text eligibility, display labels, comment
5
+ * timestamp formatting + marker positioning, and connection-site geometry. All
6
+ * pure (only `ooxml-core/pptx` types), shared by every binding.
7
+ *
8
+ * Note: `isConnectorOrLineElement` stays in each binding because it depends on
9
+ * that binding's shape-type classifier (not a core export).
10
+ *
11
+ * @module render/element
12
+ */
1
13
  import { PptxComment, PptxElement, PptxElementWithText } from "ooxml-core/pptx";
2
14
  /**
3
15
  * Checks whether an element originates from a slide layout or slide master.
@@ -1 +1 @@
1
- {"version":3,"file":"element.d.ts","names":[],"sources":["../../../../pptx/editor/render/element.ts"],"mappings":";;;;;wBAwBgB,kBAAkB,SAAS;;;;wBAO3B,oBAAoB;;;;;;wBASpB,sBAAsB,SAAS,cAAc,WAAW;;;;;wBAexD,gBAAgB,SAAS;;;;;wBAmDzB,uBAAuB;;;;;;wBAuBvB,yBACf,SAAS,aACT,eACA,eACA;EACI;EAAW;;;;;;;;;;wBAoBA,0BACf,SAAS,aACT;EACI;EAAW"}
1
+ {"version":3,"file":"element.d.ts","names":[],"sources":["../../../../pptx/editor/render/element.ts"],"mappings":";;;;;;;;;;;;;;;;;wBAwBgB,kBAAkB,SAAS;;;;wBAO3B,oBAAoB;;;;;;wBASpB,sBAAsB,SAAS,cAAc,WAAW;;;;;wBAexD,gBAAgB,SAAS;;;;;wBAmDzB,uBAAuB;;;;;;wBAuBvB,yBACf,SAAS,aACT,eACA,eACA;EACI;EAAW;;;;;;;;;;wBAoBA,0BACf,SAAS,aACT;EACI;EAAW"}
@@ -1,5 +1,11 @@
1
- import "../../chunks/index-ClHCBGOf.js";
2
- import { C as PptxSlide } from "../../chunks/text-operations-B3lZjvs_.js";
1
+ /**
2
+ * Pure find & replace helpers for PPTX slides, shared by every binding.
3
+ *
4
+ * All functions are immutable; they never mutate their input arrays. No
5
+ * framework imports, so this is safe to use in web workers or server-side code.
6
+ */
7
+ import { _ as PptxSlide } from "../../chunks/presentation-Be108jrz.js";
8
+ import "../../chunks/index-cr_sgz1w.js";
3
9
  /** Identifies a single match of the find query at segment-level precision. */
4
10
  export interface FindResult {
5
11
  /** Zero-based index of the slide in the slides array. */
@@ -1 +1 @@
1
- {"version":3,"file":"find-replace.d.ts","names":[],"sources":["../../../../pptx/editor/render/find-replace.ts"],"mappings":";;;iBAiBiB;;EAEhB;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;IAAc;IAAkB;;;EAEhC;;EAEA;;EAEA;;EAEA;EACA;EACA;;EAEA;;;iBAIgB;;EAEhB;;EAEA;;EAEA;;EAEA;;;iBAIgB;;EAEhB,iBAAiB;;EAEjB;;;wBAIe,4BACf,kBAAkB,KAAK,2BACvB;;;;;;;;;;;;;;wBAuBe,aACf,iBAAiB,aACjB,eACA,OAAM,cACJ;;;;;;;;;;wBA4Ea,sBACf,iBAAiB,aACjB,oBAAoB,cACpB,sBACE;;;;;;;;;wBAuHa,aACf,iBAAiB,aACjB,qBAAqB,cACrB,oBACA,sBACE;;;;;;;wBAca,gBACf,iBAAiB,aACjB,eACA,qBACA,OAAM,cACJ"}
1
+ {"version":3,"file":"find-replace.d.ts","names":[],"sources":["../../../../pptx/editor/render/find-replace.ts"],"mappings":";;;;;;;;;iBAiBiB;;EAEhB;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;IAAc;IAAkB;;;EAEhC;;EAEA;;EAEA;;EAEA;EACA;EACA;;EAEA;;;iBAIgB;;EAEhB;;EAEA;;EAEA;;EAEA;;;iBAIgB;;EAEhB,iBAAiB;;EAEjB;;;wBAIe,4BACf,kBAAkB,KAAK,2BACvB;;;;;;;;;;;;;;wBAuBe,aACf,iBAAiB,aACjB,eACA,OAAM,cACJ;;;;;;;;;;wBA4Ea,sBACf,iBAAiB,aACjB,oBAAoB,cACpB,sBACE;;;;;;;;;wBAuHa,aACf,iBAAiB,aACjB,qBAAqB,cACrB,oBACA,sBACE;;;;;;;wBAca,gBACf,iBAAiB,aACjB,eACA,qBACA,OAAM,cACJ"}
@@ -1,4 +1,35 @@
1
- import { i as TextStyle } from "../../chunks/text-t_wJ2OwM.js";
1
+ /**
2
+ * What picking a font family in the ribbon or the inspector writes to a run.
3
+ *
4
+ * A run names up to four faces (`a:latin`, `a:ea`, `a:cs`, `a:sym`) and the
5
+ * renderer paints each script in its own face (`text-script-fonts.ts`). The
6
+ * font picker only ever set `fontFamily` (the `a:latin` face), so a run whose
7
+ * `a:ea` named the same font as its `a:latin` kept painting Hangul, kana and
8
+ * Han in the old face: on a Korean or Japanese slide choosing a font changed
9
+ * nothing visible. A deck written by PowerPoint for a CJK locale, or by most
10
+ * converters, gives every slot the same face, so this is the common case.
11
+ *
12
+ * The rule kept here is deliberately narrow: an east Asian or complex script
13
+ * face follows the new family only when it was the same face as the old
14
+ * `a:latin`, i.e. the deck treated the slots as one font. A run with a
15
+ * distinct Asian face (`a:latin` Arial with `a:ea` Meiryo, or a theme whose
16
+ * minor east Asian font differs from its minor Latin font) keeps it, since
17
+ * the picker cannot tell whether the new font covers the script. PowerPoint
18
+ * makes the same call: a Latin font picked from the font box leaves `a:ea`
19
+ * alone.
20
+ *
21
+ * A concrete family also drops the theme token of each face it replaces. The
22
+ * writer prefers the token (`+mn-lt`) over the concrete name, so leaving it in
23
+ * place lost the choice on save.
24
+ *
25
+ * "Same face" is judged against the run's EFFECTIVE Latin face: a run with no
26
+ * `fontFamily` of its own inherits it from the text box, so the caller passes
27
+ * the box's (pre-edit) style as `inherited`. A script slot matches when its
28
+ * concrete face equals that Latin face or its theme token equals the Latin
29
+ * theme token (a token-only slot has no concrete face to compare).
30
+ */
31
+ import { Tc as TextStyle } from "../../chunks/presentation-Be108jrz.js";
32
+ import "../../chunks/index-cJSPBkU1.js";
2
33
  /**
3
34
  * Expand a style update for `style`: when it sets a concrete `fontFamily`,
4
35
  * carry the change to the script faces that were the same face as the old
@@ -1 +1 @@
1
- {"version":3,"file":"font-family-update.d.ts","names":[],"sources":["../../../../pptx/editor/render/font-family-update.ts"],"mappings":";;;;;;;;wBAgDgB,uBACf,OAAO,uBACP,SAAS,QAAQ,YACjB,YAAY,YACV,QAAQ;;;;;wBAmCK,qBACf,OAAO,uBACP,SAAS,QAAQ,YACjB,YAAY,YACV"}
1
+ {"version":3,"file":"font-family-update.d.ts","names":[],"sources":["../../../../pptx/editor/render/font-family-update.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgDgB,uBACf,OAAO,uBACP,SAAS,QAAQ,YACjB,YAAY,YACV,QAAQ;;;;;wBAmCK,qBACf,OAAO,uBACP,SAAS,QAAQ,YACjB,YAAY,YACV"}
@@ -1,3 +1,29 @@
1
+ /**
2
+ * Selecting inside a group, the way PowerPoint does: the first click selects
3
+ * the group, a click on one of its members while the group is selected selects
4
+ * that member, a click on another member of the same group moves the selection
5
+ * to it, a double-click goes straight to the innermost shape (so its text can
6
+ * be edited without ungrouping), and Escape steps back out one level.
7
+ *
8
+ * Group members are stored relative to their group (the parser subtracts the
9
+ * parent's offset, see `PptxHandlerRuntimeGroupParsing`), and every binding's
10
+ * lookups, selection chrome and update paths only know top-level elements. So
11
+ * this module gives the bindings three things, framework-free:
12
+ *
13
+ * - the decision (which id a click, double-click or Escape selects);
14
+ * - a geometric hit-test, because grouped children render with
15
+ * `pointer-events: none` and a click's DOM target is always the group;
16
+ * - a slide-space view of a member (absolute x/y) for the chrome, drag and
17
+ * inline editor, and the reverse: an update in slide space written back
18
+ * into the group's coordinate space.
19
+ *
20
+ * Only groups that are neither rotated nor flipped are entered: their members'
21
+ * slide-space box is then a plain offset, and anything else keeps today's
22
+ * behaviour (the group selects as one) instead of drawing chrome in the wrong
23
+ * place.
24
+ *
25
+ * @module render/group-drill
26
+ */
1
27
  import { GroupPptxElement, PptxElement } from "ooxml-core/pptx";
2
28
  /** A group whose members can be selected one by one (see the module note). */
3
29
  export declare function isEnterableGroup(el: PptxElement): el is GroupPptxElement;
@@ -1 +1 @@
1
- {"version":3,"file":"group-drill.d.ts","names":[],"sources":["../../../../pptx/editor/render/group-drill.ts"],"mappings":";;wBAqCgB,iBAAiB,IAAI,cAAc,MAAM;;;;;wBAUzC,gBACf,mBAAmB,eACnB,aACE;;wBAgBa,cAAc,mBAAmB,eAAe;;;;;;;wBA6BhD,kBACf,mBAAmB,eACnB,aACE;;;;;;wBAqBa,kBAAkB,mBAAmB,gBAAgB,YAAY;;;;;;;;;wBA2BjE,oBACf,UAAU,eACV,YACA,SAAS,QAAQ,eACf;;;;;;;;;wBAwCa,mBACf,mBAAmB,eACnB,eACA;EAAS;EAAW;;;;;;;;;;;;;;;;wBAmDL,uBACf,0BACA,uBAAuB;;wBA8BR,6BAA6B;;;;;;wBAS7B,gBACf,mBAAmB,eACnB"}
1
+ {"version":3,"file":"group-drill.d.ts","names":[],"sources":["../../../../pptx/editor/render/group-drill.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAqCgB,iBAAiB,IAAI,cAAc,MAAM;;;;;wBAUzC,gBACf,mBAAmB,eACnB,aACE;;wBAgBa,cAAc,mBAAmB,eAAe;;;;;;;wBA6BhD,kBACf,mBAAmB,eACnB,aACE;;;;;;wBAqBa,kBAAkB,mBAAmB,gBAAgB,YAAY;;;;;;;;;wBA2BjE,oBACf,UAAU,eACV,YACA,SAAS,QAAQ,eACf;;;;;;;;;wBAwCa,mBACf,mBAAmB,eACnB,eACA;EAAS;EAAW;;;;;;;;;;;;;;;;wBAmDL,uBACf,0BACA,uBAAuB;;wBA8BR,6BAA6B;;;;;;wBAS7B,gBACf,mBAAmB,eACnB"}
@@ -1,2 +1,26 @@
1
+ /**
2
+ * group-ops: pure, immutable group/ungroup operations for the slide element
3
+ * tree, shared by every binding's editor.
4
+ *
5
+ * The implementation itself lives in `ooxml-core/pptx`
6
+ * (`core/utils/group-ops`) and is re-exported here unchanged, because the
7
+ * `pptx-viewer-mcp` tool set that backs the AI panel needs the SAME operation
8
+ * and cannot import this package: `pptx-viewer-mcp` is published, this one is
9
+ * private and already imports it. Core is the only module all three consumers
10
+ * reach, and one implementation cannot drift from itself: the MCP copy had
11
+ * already drifted into appending a grouped selection to the front of the paint
12
+ * order and re-iding nothing when promoting a nested group.
13
+ *
14
+ * Coordinate system (verified from the renderer):
15
+ * - The group <div> is positioned at (group.x, group.y) in slide space.
16
+ * - Each child is positioned at (child.x, child.y) RELATIVE to the group's
17
+ * top-left corner inside that div.
18
+ *
19
+ * Therefore:
20
+ * - grouping -> child slide-absolute -> child group-relative:
21
+ * childRelX = childAbsX - groupX
22
+ * - ungrouping -> child group-relative -> child slide-absolute:
23
+ * childAbsX = childRelX + groupX
24
+ */
1
25
  import { GroupResult, UngroupOptions, UngroupResult, groupElements, ungroupElements } from "ooxml-core/pptx";
2
26
  export { type GroupResult, type UngroupOptions, type UngroupResult, groupElements, ungroupElements };
@@ -1,4 +1,24 @@
1
- import { i as TextStyle } from "../../chunks/text-t_wJ2OwM.js";
1
+ /**
2
+ * Per-paragraph overrides of the kinsoku / font-alignment / tab-default
3
+ * geometry that `resolveShapeParagraphStyle` (core) otherwise collapses to
4
+ * whichever paragraph authors it FIRST in the shape.
5
+ *
6
+ * Core keeps a single shape-scope `TextStyle` object it mutates across every
7
+ * paragraph, first-wins (`if (textStyle.eaLineBreak === undefined) {...}`):
8
+ * paragraph 1's own `a:pPr/@eaLnBrk`/`@latinLnBrk`/`@fontAlgn`/
9
+ * `@hangingPunct`/`@defTabSz` becomes every OTHER paragraph's resolved value
10
+ * too, because they all read the SAME mutated object. Each paragraph's own
11
+ * authored value is still captured separately, strictly, on
12
+ * `TextSegment.paragraphProperties` (`extractParagraphOwnProperties`) for
13
+ * round-trip - just never consulted at render. This module is the render-side
14
+ * fix: it resolves this paragraph's OWN value first, falling back to the
15
+ * text body's resolved (first-paragraph-collapsed) value exactly like
16
+ * `resolveParagraphSpacing` already does for spacing.
17
+ *
18
+ * @module render/paragraph-geometry-overrides
19
+ */
20
+ import { Tc as TextStyle } from "../../chunks/presentation-Be108jrz.js";
21
+ import "../../chunks/index-cJSPBkU1.js";
2
22
  /** The geometry keys a paragraph may override independently of the body. */
3
23
  export type ParagraphGeometryOverrides = Pick<TextStyle, 'eaLineBreak' | 'latinLineBreak' | 'hangingPunctuation' | 'fontAlignment' | 'defaultTabSize'>;
4
24
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"paragraph-geometry-overrides.d.ts","names":[],"sources":["../../../../pptx/editor/render/paragraph-geometry-overrides.ts"],"mappings":";;YAuBY,6BAA6B,KACxC;;;;;;;;;;;wBAce,kCACf,WAAW,uBACX,WAAW,wBACT"}
1
+ {"version":3,"file":"paragraph-geometry-overrides.d.ts","names":[],"sources":["../../../../pptx/editor/render/paragraph-geometry-overrides.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;YAuBY,6BAA6B,KACxC;;;;;;;;;;;wBAce,kCACf,WAAW,uBACX,WAAW,wBACT"}