pptx-react-viewer 3.18.0 → 3.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +22 -0
  3. package/dist/{AiChatPanel-DDZC6IRK.mjs → AiChatPanel-3M7XWTVE.mjs} +3 -3
  4. package/dist/AiChatPanel-3M7XWTVE.mjs.br +0 -0
  5. package/dist/AiChatPanel-3M7XWTVE.mjs.gz +0 -0
  6. package/dist/{AiChatPanel-T2QSCUQR.js → AiChatPanel-WDVU4RIM.js} +24 -24
  7. package/dist/AiChatPanel-WDVU4RIM.js.br +0 -0
  8. package/dist/AiChatPanel-WDVU4RIM.js.gz +0 -0
  9. package/dist/{Area3DChartScene-WTKQDHC7.mjs → Area3DChartScene-CTVWVXNW.mjs} +1 -1
  10. package/dist/Area3DChartScene-CTVWVXNW.mjs.br +0 -0
  11. package/dist/Area3DChartScene-CTVWVXNW.mjs.gz +0 -0
  12. package/dist/{Area3DChartScene-WEU2MP3B.js → Area3DChartScene-N5KPQFC6.js} +2 -2
  13. package/dist/{Area3DChartScene-WEU2MP3B.js.br → Area3DChartScene-N5KPQFC6.js.br} +0 -0
  14. package/dist/Area3DChartScene-N5KPQFC6.js.gz +0 -0
  15. package/dist/{Bar3DChartScene-25G6TG53.js → Bar3DChartScene-3QRUPVPT.js} +2 -2
  16. package/dist/Bar3DChartScene-3QRUPVPT.js.br +0 -0
  17. package/dist/Bar3DChartScene-3QRUPVPT.js.gz +0 -0
  18. package/dist/{Bar3DChartScene-A5ICLHXS.mjs → Bar3DChartScene-PXFSFZRX.mjs} +1 -1
  19. package/dist/{Bar3DChartScene-A5ICLHXS.mjs.br → Bar3DChartScene-PXFSFZRX.mjs.br} +0 -0
  20. package/dist/Bar3DChartScene-PXFSFZRX.mjs.gz +0 -0
  21. package/dist/{Line3DChartScene-WRZ52Z2Z.js → Line3DChartScene-776WLKR5.js} +2 -2
  22. package/dist/Line3DChartScene-776WLKR5.js.br +0 -0
  23. package/dist/Line3DChartScene-776WLKR5.js.gz +0 -0
  24. package/dist/{Line3DChartScene-ARCDLHXQ.mjs → Line3DChartScene-LLL3BU4Q.mjs} +1 -1
  25. package/dist/{Line3DChartScene-ARCDLHXQ.mjs.br → Line3DChartScene-LLL3BU4Q.mjs.br} +0 -0
  26. package/dist/Line3DChartScene-LLL3BU4Q.mjs.gz +0 -0
  27. package/dist/{Model3DScene-JGUG5NPX.js → Model3DScene-7TM2XSJY.js} +2 -2
  28. package/dist/Model3DScene-7TM2XSJY.js.br +0 -0
  29. package/dist/Model3DScene-7TM2XSJY.js.gz +0 -0
  30. package/dist/{Model3DScene-PBKBL2YU.mjs → Model3DScene-FMQ4FDC5.mjs} +1 -1
  31. package/dist/Model3DScene-FMQ4FDC5.mjs.br +0 -0
  32. package/dist/Model3DScene-FMQ4FDC5.mjs.gz +0 -0
  33. package/dist/{PieChart3DScene-ZNKXS62H.mjs → PieChart3DScene-2YNQ5J7A.mjs} +1 -1
  34. package/dist/{PieChart3DScene-ZNKXS62H.mjs.br → PieChart3DScene-2YNQ5J7A.mjs.br} +0 -0
  35. package/dist/PieChart3DScene-2YNQ5J7A.mjs.gz +0 -0
  36. package/dist/{PieChart3DScene-S25DNSRS.js → PieChart3DScene-DZY4MQCG.js} +2 -2
  37. package/dist/{PieChart3DScene-S25DNSRS.js.br → PieChart3DScene-DZY4MQCG.js.br} +0 -0
  38. package/dist/PieChart3DScene-DZY4MQCG.js.gz +0 -0
  39. package/dist/{SurfaceChart3DScene-LXBC3HMV.js → SurfaceChart3DScene-G3MWPEL3.js} +2 -2
  40. package/dist/{SurfaceChart3DScene-LXBC3HMV.js.br → SurfaceChart3DScene-G3MWPEL3.js.br} +0 -0
  41. package/dist/SurfaceChart3DScene-G3MWPEL3.js.gz +0 -0
  42. package/dist/{SurfaceChart3DScene-EBT7RPCX.mjs → SurfaceChart3DScene-XJHLH2EM.mjs} +1 -1
  43. package/dist/SurfaceChart3DScene-XJHLH2EM.mjs.br +0 -0
  44. package/dist/SurfaceChart3DScene-XJHLH2EM.mjs.gz +0 -0
  45. package/dist/{chunk-WGBXO4LM.js → chunk-2QWLARCW.js} +7277 -1263
  46. package/dist/chunk-2QWLARCW.js.br +0 -0
  47. package/dist/chunk-2QWLARCW.js.gz +0 -0
  48. package/dist/{chunk-2LTTSFLD.js → chunk-36O4SE4R.js} +5 -5
  49. package/dist/chunk-36O4SE4R.js.br +0 -0
  50. package/dist/chunk-36O4SE4R.js.gz +0 -0
  51. package/dist/{chunk-5S3A6HL3.mjs → chunk-3R5A2E2K.mjs} +6211 -219
  52. package/dist/chunk-3R5A2E2K.mjs.br +0 -0
  53. package/dist/chunk-3R5A2E2K.mjs.gz +0 -0
  54. package/dist/{chunk-WRO37U2O.mjs → chunk-4KKKJ5MJ.mjs} +1 -1
  55. package/dist/chunk-4KKKJ5MJ.mjs.br +0 -0
  56. package/dist/chunk-4KKKJ5MJ.mjs.gz +0 -0
  57. package/dist/{chunk-6R2EUDJQ.js → chunk-6DYDAKHG.js} +1966 -7218
  58. package/dist/chunk-6DYDAKHG.js.br +0 -0
  59. package/dist/chunk-6DYDAKHG.js.gz +0 -0
  60. package/dist/{chunk-2OCTGK4L.mjs → chunk-7VFH2FRI.mjs} +61 -15
  61. package/dist/chunk-7VFH2FRI.mjs.br +0 -0
  62. package/dist/chunk-7VFH2FRI.mjs.gz +0 -0
  63. package/dist/{chunk-GNRVDNCV.mjs → chunk-F552WUJN.mjs} +4914 -2647
  64. package/dist/chunk-F552WUJN.mjs.br +0 -0
  65. package/dist/chunk-F552WUJN.mjs.gz +0 -0
  66. package/dist/{chunk-V32F4I45.js → chunk-LBMPJYAR.js} +4967 -2647
  67. package/dist/chunk-LBMPJYAR.js.br +0 -0
  68. package/dist/chunk-LBMPJYAR.js.gz +0 -0
  69. package/dist/{chunk-3KKPRPVE.mjs → chunk-V3BOQ52U.mjs} +158 -5410
  70. package/dist/chunk-V3BOQ52U.mjs.br +0 -0
  71. package/dist/chunk-V3BOQ52U.mjs.gz +0 -0
  72. package/dist/{chunk-LJ46KXUV.js → chunk-V6S72IRP.js} +226 -180
  73. package/dist/chunk-V6S72IRP.js.br +0 -0
  74. package/dist/chunk-V6S72IRP.js.gz +0 -0
  75. package/dist/i18n/de.cjs +3765 -0
  76. package/dist/i18n/de.cjs.br +0 -0
  77. package/dist/i18n/de.cjs.gz +0 -0
  78. package/dist/i18n/de.d.cts +3 -0
  79. package/dist/i18n/de.d.mts +3 -0
  80. package/dist/i18n/de.mjs +3738 -0
  81. package/dist/i18n/de.mjs.br +0 -0
  82. package/dist/i18n/de.mjs.gz +0 -0
  83. package/dist/i18n/es.cjs +3765 -0
  84. package/dist/i18n/es.cjs.br +0 -0
  85. package/dist/i18n/es.cjs.gz +0 -0
  86. package/dist/i18n/es.d.cts +3 -0
  87. package/dist/i18n/es.d.mts +3 -0
  88. package/dist/i18n/es.mjs +3738 -0
  89. package/dist/i18n/es.mjs.br +0 -0
  90. package/dist/i18n/es.mjs.gz +0 -0
  91. package/dist/i18n/fr.cjs +3765 -0
  92. package/dist/i18n/fr.cjs.br +0 -0
  93. package/dist/i18n/fr.cjs.gz +0 -0
  94. package/dist/i18n/fr.d.cts +3 -0
  95. package/dist/i18n/fr.d.mts +3 -0
  96. package/dist/i18n/fr.mjs +3738 -0
  97. package/dist/i18n/fr.mjs.br +0 -0
  98. package/dist/i18n/fr.mjs.gz +0 -0
  99. package/dist/i18n/zh-CN.cjs +3803 -0
  100. package/dist/i18n/zh-CN.cjs.br +0 -0
  101. package/dist/i18n/zh-CN.cjs.gz +0 -0
  102. package/dist/i18n/zh-CN.d.cts +3 -0
  103. package/dist/i18n/zh-CN.d.mts +3 -0
  104. package/dist/i18n/zh-CN.mjs +3776 -0
  105. package/dist/i18n/zh-CN.mjs.br +0 -0
  106. package/dist/i18n/zh-CN.mjs.gz +0 -0
  107. package/dist/index.d.ts +65 -4
  108. package/dist/index.js +49 -45
  109. package/dist/index.js.br +0 -0
  110. package/dist/index.js.gz +0 -0
  111. package/dist/index.mjs +5 -5
  112. package/dist/index.mjs.br +0 -0
  113. package/dist/index.mjs.gz +0 -0
  114. package/dist/internals.d.ts +2408 -2055
  115. package/dist/internals.js +182 -78
  116. package/dist/internals.js.br +0 -0
  117. package/dist/internals.js.gz +0 -0
  118. package/dist/internals.mjs +3 -3
  119. package/dist/internals.mjs.br +0 -0
  120. package/dist/internals.mjs.gz +0 -0
  121. package/dist/pptx-viewer.css +1 -1
  122. package/dist/pptx-viewer.css.br +0 -0
  123. package/dist/pptx-viewer.css.gz +0 -0
  124. package/dist/viewer/index.d.ts +13 -0
  125. package/dist/viewer/index.js +26 -26
  126. package/dist/viewer/index.js.br +0 -0
  127. package/dist/viewer/index.js.gz +0 -0
  128. package/dist/viewer/index.mjs +5 -5
  129. package/dist/viewer/index.mjs.br +0 -0
  130. package/dist/viewer/index.mjs.gz +0 -0
  131. package/package.json +44 -4
  132. package/dist/AiChatPanel-DDZC6IRK.mjs.br +0 -0
  133. package/dist/AiChatPanel-DDZC6IRK.mjs.gz +0 -0
  134. package/dist/AiChatPanel-T2QSCUQR.js.br +0 -0
  135. package/dist/AiChatPanel-T2QSCUQR.js.gz +0 -0
  136. package/dist/Area3DChartScene-WEU2MP3B.js.gz +0 -0
  137. package/dist/Area3DChartScene-WTKQDHC7.mjs.br +0 -0
  138. package/dist/Area3DChartScene-WTKQDHC7.mjs.gz +0 -0
  139. package/dist/Bar3DChartScene-25G6TG53.js.br +0 -0
  140. package/dist/Bar3DChartScene-25G6TG53.js.gz +0 -0
  141. package/dist/Bar3DChartScene-A5ICLHXS.mjs.gz +0 -0
  142. package/dist/Line3DChartScene-ARCDLHXQ.mjs.gz +0 -0
  143. package/dist/Line3DChartScene-WRZ52Z2Z.js.br +0 -0
  144. package/dist/Line3DChartScene-WRZ52Z2Z.js.gz +0 -0
  145. package/dist/Model3DScene-JGUG5NPX.js.br +0 -0
  146. package/dist/Model3DScene-JGUG5NPX.js.gz +0 -0
  147. package/dist/Model3DScene-PBKBL2YU.mjs.br +0 -0
  148. package/dist/Model3DScene-PBKBL2YU.mjs.gz +0 -0
  149. package/dist/PieChart3DScene-S25DNSRS.js.gz +0 -0
  150. package/dist/PieChart3DScene-ZNKXS62H.mjs.gz +0 -0
  151. package/dist/PowerPointViewer-Cde_wzd0.d.ts +0 -21
  152. package/dist/PowerPointViewer-Cde_wzd0.d.ts.map +0 -1
  153. package/dist/SurfaceChart3DScene-EBT7RPCX.mjs.br +0 -0
  154. package/dist/SurfaceChart3DScene-EBT7RPCX.mjs.gz +0 -0
  155. package/dist/SurfaceChart3DScene-LXBC3HMV.js.gz +0 -0
  156. package/dist/audience-content-store-A8Km8rBo.d.ts +0 -402
  157. package/dist/audience-content-store-A8Km8rBo.d.ts.map +0 -1
  158. package/dist/chunk-2LTTSFLD.js.br +0 -0
  159. package/dist/chunk-2LTTSFLD.js.gz +0 -0
  160. package/dist/chunk-2OCTGK4L.mjs.br +0 -0
  161. package/dist/chunk-2OCTGK4L.mjs.gz +0 -0
  162. package/dist/chunk-3KKPRPVE.mjs.br +0 -0
  163. package/dist/chunk-3KKPRPVE.mjs.gz +0 -0
  164. package/dist/chunk-5S3A6HL3.mjs.br +0 -0
  165. package/dist/chunk-5S3A6HL3.mjs.gz +0 -0
  166. package/dist/chunk-6R2EUDJQ.js.br +0 -0
  167. package/dist/chunk-6R2EUDJQ.js.gz +0 -0
  168. package/dist/chunk-GNRVDNCV.mjs.br +0 -0
  169. package/dist/chunk-GNRVDNCV.mjs.gz +0 -0
  170. package/dist/chunk-LJ46KXUV.js.br +0 -0
  171. package/dist/chunk-LJ46KXUV.js.gz +0 -0
  172. package/dist/chunk-V32F4I45.js.br +0 -0
  173. package/dist/chunk-V32F4I45.js.gz +0 -0
  174. package/dist/chunk-WGBXO4LM.js.br +0 -0
  175. package/dist/chunk-WGBXO4LM.js.gz +0 -0
  176. package/dist/chunk-WRO37U2O.mjs.br +0 -0
  177. package/dist/chunk-WRO37U2O.mjs.gz +0 -0
  178. package/dist/index-CGKutKk1.d.ts +0 -46
  179. package/dist/index-CGKutKk1.d.ts.map +0 -1
  180. package/dist/index.d.ts.map +0 -1
  181. package/dist/internals.d.ts.map +0 -1
  182. package/dist/types-BqB2ZCwS.d.ts +0 -836
  183. package/dist/types-BqB2ZCwS.d.ts.map +0 -1
  184. package/dist/useViewerBuildingBlocks-4Tj6P8Fm.d.ts +0 -523
  185. package/dist/useViewerBuildingBlocks-4Tj6P8Fm.d.ts.map +0 -1
  186. package/dist/viewer/index.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,43 @@ A release listed with no entries carried no Conventional Commit in this package'
7
7
  scope: scripts/release-plan.mjs re-releases a package whenever any of its files
8
8
  change, not only on conventional ones.
9
9
 
10
+ ## [3.18.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@3.18.0) - 2026-09-14
11
+
12
+ ### Features
13
+
14
+ - **i18n:** Add Simplified Chinese reference locale (by @yunfeizhu) ([4f65031](https://github.com/ChristopherVR/pptx-viewer/commit/4f650313634f2dd3f9ca30a01f742ea4a5349b0f))
15
+ - **core:** Preserve smart art diagram parts (by @ChristopherVR) ([187e0e1](https://github.com/ChristopherVR/pptx-viewer/commit/187e0e17c4e8446fb1b745bb77e96fd44710ed34))
16
+
17
+ ### Bug Fixes
18
+
19
+ - **shared:** Retain list state after upstream rebase (by @ChristopherVR) ([268a1f1](https://github.com/ChristopherVR/pptx-viewer/commit/268a1f132b664a6fec4df127a3588cf0e7748ff1))
20
+ - **core:** Retain original duplicate shape ids (by @ChristopherVR) ([74d595c](https://github.com/ChristopherVR/pptx-viewer/commit/74d595cbc380af69faf6cd47932475d33b139943))
21
+ - **shared:** Restore paragraph remap helpers (by @ChristopherVR) ([e07554c](https://github.com/ChristopherVR/pptx-viewer/commit/e07554c9bffbd86a4a1c273a35572f2a3a77e0bf))
22
+ - **shared:** Expose freeform geometry helpers (by @ChristopherVR) ([96e54a5](https://github.com/ChristopherVR/pptx-viewer/commit/96e54a523e185a09e94d8d15ed5cf8b06b47a8b8))
23
+ - **core:** Evaluate connector and cloud preset geometry (by @ChristopherVR) ([5f34ed5](https://github.com/ChristopherVR/pptx-viewer/commit/5f34ed520cc1c86721b059d5b9a5e7e1e6277b49))
24
+ - **core:** Evaluate connector and cloud preset geometry (by @ChristopherVR) ([8e2608a](https://github.com/ChristopherVR/pptx-viewer/commit/8e2608a397160c8640bb6801da6cfdc273beb60a))
25
+ - **shared:** Remove code scanning findings (by @ChristopherVR) ([ccf02f2](https://github.com/ChristopherVR/pptx-viewer/commit/ccf02f2d1065e4fda3233fe517e06d95ec1a5c0e))
26
+ - **ui:** Keep ribbon controls compact across bindings (by @ChristopherVR) ([79ec521](https://github.com/ChristopherVR/pptx-viewer/commit/79ec5212c41796b9a73cc6bf5d918ea8e8d51c51))
27
+ - **core:** Avoid namespace scan backtracking (by @ChristopherVR) ([2c3f038](https://github.com/ChristopherVR/pptx-viewer/commit/2c3f038420d96af57c01a26da5fbc5752c1147c9))
28
+
29
+ ### Documentation
30
+
31
+ - **repo:** Sync guides and references with implementation (by @ChristopherVR) ([70440f6](https://github.com/ChristopherVR/pptx-viewer/commit/70440f6f10297ba7847662361c6d6f23d35ad9e2))
32
+
33
+ ### Testing
34
+
35
+ - **core:** Stabilize the Vitest 5 suite (by @ChristopherVR) ([83b4cc5](https://github.com/ChristopherVR/pptx-viewer/commit/83b4cc53b4846da72494e4b81d8530546e9ad888))
36
+ - **repo:** Stabilize Vitest 5 concurrency (by @ChristopherVR) ([6b151b3](https://github.com/ChristopherVR/pptx-viewer/commit/6b151b352ba8c7b78013696e91c3040fb95a929f))
37
+
38
+ ### Dependencies
39
+
40
+ - **deps:** Bump the minor-and-patch group with 2 updates (by @dependabot[bot]) ([7bed5e5](https://github.com/ChristopherVR/pptx-viewer/commit/7bed5e56a34cbffbe7e8604a76344a33a05e7f12))
41
+ - **deps:** Rebase lint-staged update (by @ChristopherVR) ([c2a649e](https://github.com/ChristopherVR/pptx-viewer/commit/c2a649ee2df1e29a963aec29cb109d9c70ead6ff))
42
+
43
+ ### Chores
44
+
45
+ - **deps-dev:** Bump vitest from 4.1.11 to 5.0.0 (by @dependabot[bot]) ([5f8fe4f](https://github.com/ChristopherVR/pptx-viewer/commit/5f8fe4f851d33a02545556fd63238a55cf5f868a))
46
+
10
47
  ## [3.17.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@3.17.1) - 2026-09-14
11
48
 
12
49
  ### Bug Fixes
package/README.md CHANGED
@@ -264,10 +264,32 @@ You only need the `<PowerPointViewer>` component; everything else is internal. B
264
264
 
265
265
  A small curated set of those hooks is exported from `pptx-react-viewer/viewer` with a stable API; the complete set (80+) is also importable from `pptx-react-viewer/internals` for advanced integrations. The `internals` subpath is **not covered by semver**: prefer the stable root exports. See the [Hooks reference](https://christophervr.github.io/pptx-viewer/react/hooks-reference) for the full list.
266
266
 
267
+ The bulk of that cross-framework logic (colour/geometry/connector/animation/chart math, slide
268
+ transitions, and more) actually lives in `pptx-viewer-shared`, an internal package that is
269
+ **never published to npm**. If you need one of those framework-neutral helpers directly, for
270
+ example the slide-transition resolver/keyframes (`resolveSlideTransition`,
271
+ `resolveTransitionDurationMs`, `SLIDE_TRANSITION_KEYFRAMES`) or the `PresentationTransitionOverlay`
272
+ component behind presentation mode, they are re-exported from `pptx-react-viewer/internals` too,
273
+ so you never need `pptx-viewer-shared` yourself.
274
+
267
275
  ## Limitations
268
276
 
269
277
  CSS-based rendering trades a few visual effects for crisp text, accessibility, and DOM interactivity: `backdrop-filter` becomes semi-transparent backgrounds and path gradients approximate as elliptical radials, while `mix-blend-mode` and CSS 3D transforms render natively on screen but flatten in raster export. Text uses fonts available in the browser (embedded fonts are injected when present). Media playback depends on browser codec support. SmartArt is decomposed into editable shapes with a live reflow engine for structural edits. Charts are editable directly on the canvas (hover a mark for its tooltip, click to select, drag it to a new value, double-click the title to rename), except for stacked/percent-stacked, pie, radar, surface and map kinds, which are click-to-select and edited in the inspector data grid. 3D models need the optional Three.js peer. See the [full docs](https://christophervr.github.io/pptx-viewer/) for the complete list.
270
278
 
279
+ ## Reference translations
280
+
281
+ Optional French, Spanish, German, and Simplified Chinese dictionaries ship with
282
+ this package. Import only the language you need:
283
+
284
+ ```ts
285
+ import { translationsZhCN } from 'pptx-react-viewer/i18n/zh-CN';
286
+ ```
287
+
288
+ The other subpaths are `i18n/fr` (`translationsFr`), `i18n/es`
289
+ (`translationsEs`), and `i18n/de` (`translationsDe`). See the
290
+ [localization guide](https://christophervr.github.io/pptx-viewer/guide/localization)
291
+ for registration and runtime switching. Existing English imports are unchanged.
292
+
271
293
  ## License
272
294
 
273
295
  [Apache-2.0](LICENSE). Please keep the [`NOTICE`](NOTICE) file with redistributions.
@@ -1,6 +1,6 @@
1
- import { deckIdFromBridge, isAiAvailable, createAiChatSession, toolCanvasTarget, createChatHistoryStore, focusTargetChips, isTwoTableFocus, mergeTablesDirective, humanizeDiffLine, buildDeckContext, describeToolActivity, summarizeToolArgs, toolLabel } from './chunk-WRO37U2O.mjs';
2
- import { cn } from './chunk-2OCTGK4L.mjs';
3
- import './chunk-GNRVDNCV.mjs';
1
+ import { deckIdFromBridge, isAiAvailable, createAiChatSession, toolCanvasTarget, createChatHistoryStore, focusTargetChips, isTwoTableFocus, mergeTablesDirective, humanizeDiffLine, buildDeckContext, describeToolActivity, summarizeToolArgs, toolLabel } from './chunk-4KKKJ5MJ.mjs';
2
+ import { cn } from './chunk-7VFH2FRI.mjs';
3
+ import './chunk-F552WUJN.mjs';
4
4
  import './chunk-MQUTXOET.mjs';
5
5
  import './chunk-XGB3TDIC.mjs';
6
6
  import { useMemo, useRef, useState, useEffect, useReducer, useCallback } from 'react';
Binary file
Binary file
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunk2LTTSFLD_js = require('./chunk-2LTTSFLD.js');
4
- var chunkLJ46KXUV_js = require('./chunk-LJ46KXUV.js');
5
- require('./chunk-V32F4I45.js');
3
+ var chunk36O4SE4R_js = require('./chunk-36O4SE4R.js');
4
+ var chunkV6S72IRP_js = require('./chunk-V6S72IRP.js');
5
+ require('./chunk-LBMPJYAR.js');
6
6
  require('./chunk-BRJN3ZMG.js');
7
7
  require('./chunk-4VNS5WPM.js');
8
8
  var react = require('react');
@@ -23,7 +23,7 @@ function useAiChat(bridge, config) {
23
23
  setInitError(void 0);
24
24
  void (async () => {
25
25
  try {
26
- const available = await chunk2LTTSFLD_js.isAiAvailable();
26
+ const available = await chunk36O4SE4R_js.isAiAvailable();
27
27
  if (cancelled) {
28
28
  return;
29
29
  }
@@ -31,7 +31,7 @@ function useAiChat(bridge, config) {
31
31
  setState("unavailable");
32
32
  return;
33
33
  }
34
- const built = await chunk2LTTSFLD_js.createAiChatSession(bridge, configRef.current);
34
+ const built = await chunk36O4SE4R_js.createAiChatSession(bridge, configRef.current);
35
35
  if (cancelled) {
36
36
  return;
37
37
  }
@@ -137,7 +137,7 @@ function withDeckContext(inner, bridge, strategy) {
137
137
  }
138
138
  let context = "";
139
139
  try {
140
- context = await chunk2LTTSFLD_js.buildDeckContext(bridge, { strategy, focus: {} });
140
+ context = await chunk36O4SE4R_js.buildDeckContext(bridge, { strategy, focus: {} });
141
141
  } catch {
142
142
  context = "";
143
143
  }
@@ -200,7 +200,7 @@ function useAiConversation(useChat, session, config, bridge, options = {}) {
200
200
  continue;
201
201
  }
202
202
  seen.add(call.toolCallId);
203
- onToolTargetRef.current?.(chunk2LTTSFLD_js.toolCanvasTarget(call.toolName, call.input));
203
+ onToolTargetRef.current?.(chunk36O4SE4R_js.toolCanvasTarget(call.toolName, call.input));
204
204
  }
205
205
  }, [chat.messages]);
206
206
  const send = react.useCallback(
@@ -276,7 +276,7 @@ function deriveTitle(messages) {
276
276
  }
277
277
  function useAiHistory(input) {
278
278
  const { deckId, messages, setMessages } = input;
279
- const store = react.useMemo(() => input.store ?? chunk2LTTSFLD_js.createChatHistoryStore(), [input.store]);
279
+ const store = react.useMemo(() => input.store ?? chunk36O4SE4R_js.createChatHistoryStore(), [input.store]);
280
280
  const [activeChatId, setActiveChatId] = react.useState(newChatId);
281
281
  const [chats, setChats] = react.useState([]);
282
282
  const createdAtRef = react.useRef(Date.now());
@@ -419,7 +419,7 @@ function AiComposer({
419
419
  disabled: value.trim().length === 0,
420
420
  title: t("pptx.ai.send"),
421
421
  "aria-label": t("pptx.ai.send"),
422
- className: chunkLJ46KXUV_js.cn(
422
+ className: chunkV6S72IRP_js.cn(
423
423
  "shrink-0 rounded-sm p-1.5 transition-colors",
424
424
  value.trim().length === 0 ? "text-muted-foreground/50" : "bg-primary text-primary-foreground hover:bg-primary/90"
425
425
  ),
@@ -442,15 +442,15 @@ function AiFocusBar({
442
442
  onClearPicks
443
443
  }) {
444
444
  const { t } = reactI18next.useTranslation();
445
- const chips = chunk2LTTSFLD_js.focusTargetChips(targets, slides);
446
- const twoTables = chunk2LTTSFLD_js.isTwoTableFocus(targets, slides);
445
+ const chips = chunk36O4SE4R_js.focusTargetChips(targets, slides);
446
+ const twoTables = chunk36O4SE4R_js.isTwoTableFocus(targets, slides);
447
447
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-b border-border bg-secondary/30", children: [
448
448
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-1 px-2.5 py-1.5", children: [
449
449
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[10px] font-semibold uppercase tracking-wide text-muted-foreground", children: t("pptx.ai.focusScope") }),
450
450
  chips.map((chip) => /* @__PURE__ */ jsxRuntime.jsx(
451
451
  "span",
452
452
  {
453
- className: chunkLJ46KXUV_js.cn(
453
+ className: chunkV6S72IRP_js.cn(
454
454
  "inline-flex max-w-[10rem] items-center rounded-full px-2 py-0.5 text-[11px]",
455
455
  hasPicks || isPinned ? "bg-primary/15 text-primary" : "bg-muted text-muted-foreground"
456
456
  ),
@@ -466,7 +466,7 @@ function AiFocusBar({
466
466
  {
467
467
  type: "button",
468
468
  onClick: () => onSendDirective(
469
- chunk2LTTSFLD_js.mergeTablesDirective(
469
+ chunk36O4SE4R_js.mergeTablesDirective(
470
470
  twoTables.slideIndex,
471
471
  twoTables.elementIdA,
472
472
  twoTables.elementIdB
@@ -487,7 +487,7 @@ function AiFocusBar({
487
487
  title: t("pptx.ai.pickElement"),
488
488
  "aria-label": t("pptx.ai.pickAria"),
489
489
  "aria-pressed": pickMode,
490
- className: chunkLJ46KXUV_js.cn(
490
+ className: chunkV6S72IRP_js.cn(
491
491
  "rounded-sm p-1 max-md:min-w-[44px]! max-md:min-h-[44px]! flex items-center justify-center",
492
492
  pickMode ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-accent"
493
493
  ),
@@ -566,7 +566,7 @@ function AiHistoryList({ chats, activeChatId, onResume, onDelete }) {
566
566
  {
567
567
  type: "button",
568
568
  onClick: () => onResume(chat.id),
569
- className: chunkLJ46KXUV_js.cn(
569
+ className: chunkV6S72IRP_js.cn(
570
570
  "flex min-w-0 flex-1 items-start gap-2 rounded-sm px-2 py-1.5 text-left hover:bg-accent",
571
571
  chat.id === activeChatId && "bg-accent/60"
572
572
  ),
@@ -721,26 +721,26 @@ function AiToolCallCard({ part }) {
721
721
  const failed = part.state === "output-error";
722
722
  const done = part.state === "output-available";
723
723
  const running = !failed && !done;
724
- const activity = chunk2LTTSFLD_js.describeToolActivity(part.toolName, part.input, running ? "present" : "past");
724
+ const activity = chunk36O4SE4R_js.describeToolActivity(part.toolName, part.input, running ? "present" : "past");
725
725
  const Icon = ICONS[activity.icon] ?? lu.LuWrench;
726
- const rawSummary = chunk2LTTSFLD_js.summarizeToolArgs(part.input);
726
+ const rawSummary = chunk36O4SE4R_js.summarizeToolArgs(part.input);
727
727
  const statusLabel = failed ? t("pptx.ai.toolFailed") : done ? t("pptx.ai.toolDone") : t("pptx.ai.toolRunning");
728
728
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-[12px]", children: [
729
729
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5", children: [
730
730
  /* @__PURE__ */ jsxRuntime.jsx(
731
731
  Icon,
732
732
  {
733
- className: chunkLJ46KXUV_js.cn(
733
+ className: chunkV6S72IRP_js.cn(
734
734
  "w-3.5 h-3.5 shrink-0",
735
735
  failed ? "text-destructive" : "text-muted-foreground"
736
736
  )
737
737
  }
738
738
  ),
739
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: chunkLJ46KXUV_js.cn("truncate", failed ? "text-destructive" : "text-foreground"), children: activity.label }),
739
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: chunkV6S72IRP_js.cn("truncate", failed ? "text-destructive" : "text-foreground"), children: activity.label }),
740
740
  /* @__PURE__ */ jsxRuntime.jsxs(
741
741
  "span",
742
742
  {
743
- className: chunkLJ46KXUV_js.cn(
743
+ className: chunkV6S72IRP_js.cn(
744
744
  "ml-auto inline-flex items-center gap-1 rounded-sm px-1.5 py-0.5 text-[10px]",
745
745
  failed ? "bg-destructive/15 text-destructive" : done ? "bg-primary/10 text-primary" : "bg-muted text-muted-foreground"
746
746
  ),
@@ -757,7 +757,7 @@ function AiToolCallCard({ part }) {
757
757
  rawSummary && /* @__PURE__ */ jsxRuntime.jsxs("details", { className: "group mt-0.5 pl-5", children: [
758
758
  /* @__PURE__ */ jsxRuntime.jsx("summary", { className: "cursor-pointer list-none text-[10px] text-muted-foreground/70 hover:text-muted-foreground", children: t("pptx.ai.toolDetails") }),
759
759
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-0.5 break-words font-mono text-[10px] text-muted-foreground/80", children: [
760
- chunk2LTTSFLD_js.toolLabel(part.toolName),
760
+ chunk36O4SE4R_js.toolLabel(part.toolName),
761
761
  ": ",
762
762
  rawSummary
763
763
  ] })
@@ -788,7 +788,7 @@ function AiMessageList({ messages, isStreaming, bridge }) {
788
788
  /* @__PURE__ */ jsxRuntime.jsx(
789
789
  "div",
790
790
  {
791
- className: chunkLJ46KXUV_js.cn(
791
+ className: chunkV6S72IRP_js.cn(
792
792
  "mt-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-full",
793
793
  isUser ? "bg-secondary text-muted-foreground" : "bg-primary/15 text-primary"
794
794
  ),
@@ -835,7 +835,7 @@ function AiMessageList({ messages, isStreaming, bridge }) {
835
835
  }
836
836
  function AiProposalCard({ proposal, onAccept, onReject }) {
837
837
  const { t } = reactI18next.useTranslation();
838
- const lines = proposal.summary.map(chunk2LTTSFLD_js.humanizeDiffLine);
838
+ const lines = proposal.summary.map(chunk36O4SE4R_js.humanizeDiffLine);
839
839
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-md border border-primary/40 bg-primary/5 p-2.5", children: [
840
840
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-1.5 text-[11px] font-semibold uppercase tracking-wide text-primary", children: t("pptx.ai.proposedChange") }),
841
841
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-[12px] font-medium text-foreground", children: proposal.label }),
@@ -1043,7 +1043,7 @@ function AiChatPanel({
1043
1043
  }) {
1044
1044
  const { t } = reactI18next.useTranslation();
1045
1045
  const { state, session, initError } = useAiChat(bridge, config);
1046
- const deckId = react.useMemo(() => chunk2LTTSFLD_js.deckIdFromBridge(bridge), [bridge]);
1046
+ const deckId = react.useMemo(() => chunk36O4SE4R_js.deckIdFromBridge(bridge), [bridge]);
1047
1047
  return /* @__PURE__ */ jsxRuntime.jsxs(
1048
1048
  "div",
1049
1049
  {
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  import { useStableChart3DInteraction, useLatestRef } from './chunk-T6GFCLSM.mjs';
2
- import { mountAreaChart3D } from './chunk-GNRVDNCV.mjs';
2
+ import { mountAreaChart3D } from './chunk-F552WUJN.mjs';
3
3
  import './chunk-XGB3TDIC.mjs';
4
4
  import { useRef, useEffect } from 'react';
5
5
  import { jsx } from 'react/jsx-runtime';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkDNR6CH6I_js = require('./chunk-DNR6CH6I.js');
4
- var chunkV32F4I45_js = require('./chunk-V32F4I45.js');
4
+ var chunkLBMPJYAR_js = require('./chunk-LBMPJYAR.js');
5
5
  require('./chunk-4VNS5WPM.js');
6
6
  var react = require('react');
7
7
  var jsxRuntime = require('react/jsx-runtime');
@@ -23,7 +23,7 @@ function Area3DChartScene({
23
23
  return;
24
24
  }
25
25
  let disposed = false;
26
- void chunkV32F4I45_js.mountAreaChart3D(container, options, stableInteraction).then((handle) => {
26
+ void chunkLBMPJYAR_js.mountAreaChart3D(container, options, stableInteraction).then((handle) => {
27
27
  if (disposed) {
28
28
  handle.dispose();
29
29
  } else {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkDNR6CH6I_js = require('./chunk-DNR6CH6I.js');
4
- var chunkV32F4I45_js = require('./chunk-V32F4I45.js');
4
+ var chunkLBMPJYAR_js = require('./chunk-LBMPJYAR.js');
5
5
  require('./chunk-4VNS5WPM.js');
6
6
  var react = require('react');
7
7
  var jsxRuntime = require('react/jsx-runtime');
@@ -23,7 +23,7 @@ function Bar3DChartScene({
23
23
  return;
24
24
  }
25
25
  let disposed = false;
26
- void chunkV32F4I45_js.mountBarChart3D(container, options, stableInteraction).then((handle) => {
26
+ void chunkLBMPJYAR_js.mountBarChart3D(container, options, stableInteraction).then((handle) => {
27
27
  if (disposed) {
28
28
  handle.dispose();
29
29
  } else {
@@ -1,5 +1,5 @@
1
1
  import { useStableChart3DInteraction, useLatestRef } from './chunk-T6GFCLSM.mjs';
2
- import { mountBarChart3D } from './chunk-GNRVDNCV.mjs';
2
+ import { mountBarChart3D } from './chunk-F552WUJN.mjs';
3
3
  import './chunk-XGB3TDIC.mjs';
4
4
  import { useRef, useEffect } from 'react';
5
5
  import { jsx } from 'react/jsx-runtime';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkDNR6CH6I_js = require('./chunk-DNR6CH6I.js');
4
- var chunkV32F4I45_js = require('./chunk-V32F4I45.js');
4
+ var chunkLBMPJYAR_js = require('./chunk-LBMPJYAR.js');
5
5
  require('./chunk-4VNS5WPM.js');
6
6
  var react = require('react');
7
7
  var jsxRuntime = require('react/jsx-runtime');
@@ -23,7 +23,7 @@ function Line3DChartScene({
23
23
  return;
24
24
  }
25
25
  let disposed = false;
26
- void chunkV32F4I45_js.mountLineChart3D(container, options, stableInteraction).then((handle) => {
26
+ void chunkLBMPJYAR_js.mountLineChart3D(container, options, stableInteraction).then((handle) => {
27
27
  if (disposed) {
28
28
  handle.dispose();
29
29
  } else {
@@ -1,5 +1,5 @@
1
1
  import { useStableChart3DInteraction, useLatestRef } from './chunk-T6GFCLSM.mjs';
2
- import { mountLineChart3D } from './chunk-GNRVDNCV.mjs';
2
+ import { mountLineChart3D } from './chunk-F552WUJN.mjs';
3
3
  import './chunk-XGB3TDIC.mjs';
4
4
  import { useRef, useEffect } from 'react';
5
5
  import { jsx } from 'react/jsx-runtime';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkV32F4I45_js = require('./chunk-V32F4I45.js');
3
+ var chunkLBMPJYAR_js = require('./chunk-LBMPJYAR.js');
4
4
  require('./chunk-4VNS5WPM.js');
5
5
  var react = require('react');
6
6
  var jsxRuntime = require('react/jsx-runtime');
@@ -14,7 +14,7 @@ function Model3DScene({ modelUrl, interactive, width, height }) {
14
14
  return;
15
15
  }
16
16
  let disposed = false;
17
- void chunkV32F4I45_js.mountModel3D(container, modelUrl, { width, height, interactive }).then((handle) => {
17
+ void chunkLBMPJYAR_js.mountModel3D(container, modelUrl, { width, height, interactive }).then((handle) => {
18
18
  if (disposed) {
19
19
  handle.dispose();
20
20
  } else {
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import { mountModel3D } from './chunk-GNRVDNCV.mjs';
1
+ import { mountModel3D } from './chunk-F552WUJN.mjs';
2
2
  import './chunk-XGB3TDIC.mjs';
3
3
  import { useRef, useEffect } from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
@@ -1,5 +1,5 @@
1
1
  import { useStableChart3DInteraction, useLatestRef } from './chunk-T6GFCLSM.mjs';
2
- import { mountPieChart3D } from './chunk-GNRVDNCV.mjs';
2
+ import { mountPieChart3D } from './chunk-F552WUJN.mjs';
3
3
  import './chunk-XGB3TDIC.mjs';
4
4
  import { useRef, useEffect } from 'react';
5
5
  import { jsx } from 'react/jsx-runtime';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkDNR6CH6I_js = require('./chunk-DNR6CH6I.js');
4
- var chunkV32F4I45_js = require('./chunk-V32F4I45.js');
4
+ var chunkLBMPJYAR_js = require('./chunk-LBMPJYAR.js');
5
5
  require('./chunk-4VNS5WPM.js');
6
6
  var react = require('react');
7
7
  var jsxRuntime = require('react/jsx-runtime');
@@ -21,7 +21,7 @@ function PieChart3DScene({
21
21
  return;
22
22
  }
23
23
  let disposed = false;
24
- void chunkV32F4I45_js.mountPieChart3D(container, options, stableInteraction).then((handle) => {
24
+ void chunkLBMPJYAR_js.mountPieChart3D(container, options, stableInteraction).then((handle) => {
25
25
  if (disposed) {
26
26
  handle.dispose();
27
27
  } else {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkDNR6CH6I_js = require('./chunk-DNR6CH6I.js');
4
- var chunkV32F4I45_js = require('./chunk-V32F4I45.js');
4
+ var chunkLBMPJYAR_js = require('./chunk-LBMPJYAR.js');
5
5
  require('./chunk-4VNS5WPM.js');
6
6
  var react = require('react');
7
7
  var jsxRuntime = require('react/jsx-runtime');
@@ -23,7 +23,7 @@ function SurfaceChart3DScene({
23
23
  return;
24
24
  }
25
25
  let disposed = false;
26
- void chunkV32F4I45_js.mountSurfaceChart3D(container, options, stableInteraction).then((handle) => {
26
+ void chunkLBMPJYAR_js.mountSurfaceChart3D(container, options, stableInteraction).then((handle) => {
27
27
  if (disposed) {
28
28
  handle.dispose();
29
29
  } else {
@@ -1,5 +1,5 @@
1
1
  import { useStableChart3DInteraction, useLatestRef } from './chunk-T6GFCLSM.mjs';
2
- import { mountSurfaceChart3D } from './chunk-GNRVDNCV.mjs';
2
+ import { mountSurfaceChart3D } from './chunk-F552WUJN.mjs';
3
3
  import './chunk-XGB3TDIC.mjs';
4
4
  import { useRef, useEffect } from 'react';
5
5
  import { jsx } from 'react/jsx-runtime';