pptx-vanilla-viewer 3.53.0 → 3.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +121 -0
- package/README.md +1 -1
- package/dist/ai.cjs +1 -0
- package/dist/ai.d.ts +13 -0
- package/dist/ai.d.ts.map +1 -0
- package/dist/ai.js +1 -0
- package/dist/chunk-5TJJZ2IN.js +1 -0
- package/dist/chunk-AI7HWZUE.cjs +4 -0
- package/dist/chunk-GWNYL52M.js +4 -0
- package/dist/chunk-PCF72CT4.cjs +1 -0
- package/dist/i18n/de.cjs +421 -1
- package/dist/i18n/de.mjs +421 -1
- package/dist/i18n/es.cjs +421 -1
- package/dist/i18n/es.mjs +421 -1
- package/dist/i18n/fr.cjs +421 -1
- package/dist/i18n/fr.mjs +421 -1
- package/dist/i18n/zh-CN.cjs +421 -1
- package/dist/i18n/zh-CN.mjs +421 -1
- package/dist/index.cjs +68 -68
- package/dist/index.d.ts +149 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +64 -64
- package/dist/internals.cjs +1 -1
- package/dist/internals.js +1 -1
- package/package.json +8 -3
- package/dist/chunk-PAIIPQF2.cjs +0 -4
- package/dist/chunk-V4HWAAUI.js +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,127 @@ A release listed with no entries carried no Conventional Commit in this package'
|
|
|
7
7
|
scope: scripts/release-plan.mjs releases whenever any published file changes, not only on
|
|
8
8
|
conventional commits.
|
|
9
9
|
|
|
10
|
+
## [3.55.0](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-vanilla-viewer@3.55.0) - 2026-10-28
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- **pptx:** Expose the slide thumbnail rail as a building block in every binding ([#228](https://github.com/ChristopherVR/ooxml/issues/228)) ([2b77f02](https://github.com/ChristopherVR/ooxml/commit/2b77f026e1e26e6a5fe3c52f275608f39bc0ea8e))
|
|
15
|
+
- **text:** Share font selection with word script layout ([59ad0a2](https://github.com/ChristopherVR/ooxml/commit/59ad0a2e8249d3ffc9be34c2c9e6f9ffe8b3b07a))
|
|
16
|
+
- **chart:** Share manual plot layout across chart painters ([18b79c0](https://github.com/ChristopherVR/ooxml/commit/18b79c04bb1d2aa914630453413d995d0bb54922))
|
|
17
|
+
- **chart:** Share smooth series paths and authored strokes ([7329e5c](https://github.com/ChristopherVR/ooxml/commit/7329e5cbb546a041c0e67417fbe84e9d3dc415a2))
|
|
18
|
+
- **chart:** Share point label offsets and pie leader lines ([861f78f](https://github.com/ChristopherVR/ooxml/commit/861f78f5d9ba0fa93ed6e85ddfc209fd2bf828ca))
|
|
19
|
+
- **drawingml:** Render guide-driven custom shapes in word ([81558e6](https://github.com/ChristopherVR/ooxml/commit/81558e6fcfdb2a64ced22661410cbdfba954cea2))
|
|
20
|
+
- **drawingml:** Share picture crop with excel ([f093c0f](https://github.com/ChristopherVR/ooxml/commit/f093c0f6d1c2ea96736613990e870143d770774e))
|
|
21
|
+
- **chart:** Share calendar date axis rendering ([474de5c](https://github.com/ChristopherVR/ooxml/commit/474de5c4f2418ee7b67ec34a5e08c8eefa4bb992))
|
|
22
|
+
- **chart:** Share chart data table layout and rendering ([09fbdf1](https://github.com/ChristopherVR/ooxml/commit/09fbdf1ec8016b376b67053d8a5575fc3d1ef145))
|
|
23
|
+
- **drawingml:** Share ordered picture effects with excel ([b669575](https://github.com/ChristopherVR/ooxml/commit/b669575a041ab25169a7c83757075fe9dffe390a))
|
|
24
|
+
- **chart:** Share funnel geometry and neutral rendering ([28f6ce3](https://github.com/ChristopherVR/ooxml/commit/28f6ce302fa5791a11819209d6501e97e971b80b))
|
|
25
|
+
- **chart:** Share box distributions and neutral rendering ([6390e30](https://github.com/ChristopherVR/ooxml/commit/6390e30ac6994e6891f8324e4264949f66e0a0a0))
|
|
26
|
+
- **diagram:** Paint cached pictures in word and excel ([f254d51](https://github.com/ChristopherVR/ooxml/commit/f254d51eeed81279dd9f971cb7ac496364738ec2))
|
|
27
|
+
- **drawingml:** Share source-backed text body 3d codecs ([bcf2a0a](https://github.com/ChristopherVR/ooxml/commit/bcf2a0a491c6e4dc4e5fd4f5b615f3673285cadf))
|
|
28
|
+
- **pptx:** Add an /ai entry and createAiAssistant to every binding ([#219](https://github.com/ChristopherVR/ooxml/issues/219)) ([ecd4d43](https://github.com/ChristopherVR/ooxml/commit/ecd4d43acfc0133c2f9c1e3320f366244ba3bba3))
|
|
29
|
+
- **visio:** Improve selection dragging and resizing ([60cf8dd](https://github.com/ChristopherVR/ooxml/commit/60cf8dd9c547f16e114b98ae01fed0968aca5866))
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
- **pptx:** Scope collaboration undo to the local participant ([55b8bad](https://github.com/ChristopherVR/ooxml/commit/55b8badcf0ec06a7294debff8deff844dcfafb62))
|
|
34
|
+
- **pptx:** Autocorrect only the text typed in this edit ([0e5a85e](https://github.com/ChristopherVR/ooxml/commit/0e5a85e496e0d53e36c00e6fdfd5dd3749337d8a))
|
|
35
|
+
- **pptx:** Keep browser-local blob URLs out of the collaboration room ([433891b](https://github.com/ChristopherVR/ooxml/commit/433891b1db9a173780e6ad59cad56d92a5a0e929))
|
|
36
|
+
- **chart:** Resolve chartex axes by position to avoid prototype pollution ([16edc2f](https://github.com/ChristopherVR/ooxml/commit/16edc2fd96b261ecbfbe388491fe12494be15b89))
|
|
37
|
+
- **pptx:** Wait out the entry transition before a timed slide advances ([a4707a6](https://github.com/ChristopherVR/ooxml/commit/a4707a6e694d26e32af0375ee06d600541a1236a))
|
|
38
|
+
- **drawingml:** Separate guide and path coordinate spaces ([4db9fe1](https://github.com/ChristopherVR/ooxml/commit/4db9fe140ec43aae8cac6cae8846ccf4dad9ba58))
|
|
39
|
+
- **chart:** Export shared date format tokenizer ([b928657](https://github.com/ChristopherVR/ooxml/commit/b928657532d41bec6a83a5969c03be922ef0a90a))
|
|
40
|
+
- **drawingml:** Bound picture luminance and report extensions ([a36e847](https://github.com/ChristopherVR/ooxml/commit/a36e84725c483815ae7508872dd4d89c5a8375b2))
|
|
41
|
+
- **chart:** Paint date ticks over plot backgrounds ([e3fad37](https://github.com/ChristopherVR/ooxml/commit/e3fad379f6d990c1ad85658e751cb84176ca7852))
|
|
42
|
+
- **docx:** Load media for cached smartart pictures ([149b350](https://github.com/ChristopherVR/ooxml/commit/149b35025750b5189813e34cfa33cd1ff5757a17))
|
|
43
|
+
- **chart:** Retain table names and exclude hidden box series ([292dc25](https://github.com/ChristopherVR/ooxml/commit/292dc25c22544d9179d5c0fd31327a3d0aafb462))
|
|
44
|
+
- **chart:** Match native funnel label and box mean defaults ([06bbf26](https://github.com/ChristopherVR/ooxml/commit/06bbf26e496f00270eca67472087454496217cc1))
|
|
45
|
+
- **drawingml:** Preserve anchors and guard text 3d edits ([617a029](https://github.com/ChristopherVR/ooxml/commit/617a02979d5cdae5e3818afd8fb79af367de25eb))
|
|
46
|
+
- **drawingml:** Preserve omitted picture source formatting ([5e2d57d](https://github.com/ChristopherVR/ooxml/commit/5e2d57dfe0b3076be7c6cb5b086c596643eb5203))
|
|
47
|
+
|
|
48
|
+
### Refactor
|
|
49
|
+
|
|
50
|
+
- **opc:** Share hyperlink policy with explicit host protocols ([5f8ac72](https://github.com/ChristopherVR/ooxml/commit/5f8ac72edbe4fff4d2fa303ed3ce8a471762bd12))
|
|
51
|
+
|
|
52
|
+
### Documentation
|
|
53
|
+
|
|
54
|
+
- Record further shared office capability delivery ([845ee99](https://github.com/ChristopherVR/ooxml/commit/845ee99bdc290e148c485c87e64d853a5884e7f8))
|
|
55
|
+
|
|
56
|
+
### Testing
|
|
57
|
+
|
|
58
|
+
- **diagram:** Guard optional word media in picture assertion ([c8f5d14](https://github.com/ChristopherVR/ooxml/commit/c8f5d14ddcdef1ee04de6d4f3e557d1719eae5e8))
|
|
59
|
+
|
|
60
|
+
### Chores
|
|
61
|
+
|
|
62
|
+
- Prepare shared capability implementation worktree ([b36e947](https://github.com/ChristopherVR/ooxml/commit/b36e9472aa94839f82fcfe7e9a9569da7f5c1c52))
|
|
63
|
+
- Integrate current main for reuse verification ([a22d5f5](https://github.com/ChristopherVR/ooxml/commit/a22d5f53406330909d3853ab64a4d850bc3c0ad1))
|
|
64
|
+
- Integrate main before shared capability push ([9dc78da](https://github.com/ChristopherVR/ooxml/commit/9dc78da5262a854807b9fc8395f1fd97f71c2eb4))
|
|
65
|
+
|
|
66
|
+
## [3.54.0](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-vanilla-viewer@3.54.0) - 2026-10-28
|
|
67
|
+
|
|
68
|
+
### Features
|
|
69
|
+
|
|
70
|
+
- **pptx:** Save chart labels and series colours through core ([4b25d98](https://github.com/ChristopherVR/ooxml/commit/4b25d98dc70d336d400e185d2af60b190889c4fe))
|
|
71
|
+
- **chart:** Share rich title and axis save semantics ([d55e49d](https://github.com/ChristopherVR/ooxml/commit/d55e49da53b2beef0e8215d76376b42bb74e16cd))
|
|
72
|
+
- **drawingml:** Share outlines effects and theme style matrices ([1bcb6c2](https://github.com/ChristopherVR/ooxml/commit/1bcb6c228370994984ecc277f2d456705fae1134))
|
|
73
|
+
- **drawingml:** Preserve and author pattern and picture fills ([b30778e](https://github.com/ChristopherVR/ooxml/commit/b30778e085f626605c3c42edd1e966733dc77d78))
|
|
74
|
+
- **diagram:** Share interpreted SmartArt previews across products ([f9dd019](https://github.com/ChristopherVR/ooxml/commit/f9dd0197da1871da3178a2d3ee880fe27266f0c0))
|
|
75
|
+
- **chart:** Add safe hierarchical ChartEx editing primitives ([1759131](https://github.com/ChristopherVR/ooxml/commit/17591312e4b41bdf6a10873f54d43bea979cfcc6))
|
|
76
|
+
- **chart:** Bind ChartEx edits to Word and Excel storage ([8443244](https://github.com/ChristopherVR/ooxml/commit/8443244f5520e967b5ddda797b27ddf5929b7eb7))
|
|
77
|
+
- **chart:** Preserve hidden labels and edit cell label ranges ([b17afec](https://github.com/ChristopherVR/ooxml/commit/b17afecadcfc83aa94431d3cf89e8e7621c67ec2))
|
|
78
|
+
- **chart:** Add shared advanced formatting intents ([c4d6fa1](https://github.com/ChristopherVR/ooxml/commit/c4d6fa115445ef6bc99b341c92a46941a326859a))
|
|
79
|
+
- **chart:** Allocate fresh embedded workbook data sheets ([909bc58](https://github.com/ChristopherVR/ooxml/commit/909bc582f793e08b63671d82abe70440a49afdfd))
|
|
80
|
+
- **diagram:** Share SmartArt style and color authoring ([86b43a4](https://github.com/ChristopherVR/ooxml/commit/86b43a497b5effa071b25e73dab91ab4bb18c296))
|
|
81
|
+
- **chart:** Save structural edits with fresh workbook ranges ([99d0a3e](https://github.com/ChristopherVR/ooxml/commit/99d0a3e11ff95d002feb3a6060faa2eac3f6057b))
|
|
82
|
+
- **chart:** Share resolved appearance conversions across hosts ([f26c9ff](https://github.com/ChristopherVR/ooxml/commit/f26c9ffa072db97ae8632c5e97de960821d3cf8f))
|
|
83
|
+
- **chart:** Support structural ChartEx data edits across hosts ([8fd8d15](https://github.com/ChristopherVR/ooxml/commit/8fd8d15729d3c8347c8090451f2fefd420e03c4a))
|
|
84
|
+
- **chart:** Share standalone rich text formatting edits ([829764b](https://github.com/ChristopherVR/ooxml/commit/829764b41480dd4f91f7609cfc1d1071e6117de6))
|
|
85
|
+
- **chart:** Share appearance and chart family save operations ([e1b4f4a](https://github.com/ChristopherVR/ooxml/commit/e1b4f4ae337a2b0b99b9a127219dbbd4e7392109))
|
|
86
|
+
- **ui:** Edit ChartEx charts in Word and Excel ([35ca2bd](https://github.com/ChristopherVR/ooxml/commit/35ca2bd824525a67220c533b6487b604118526b2))
|
|
87
|
+
- **diagram:** Attach generated caches in Word and Excel ([0ba0947](https://github.com/ChristopherVR/ooxml/commit/0ba09477b7c5a6b251dd607d0775feec4655abf0))
|
|
88
|
+
- **chart:** Share chart text layout and point label saves ([a638df2](https://github.com/ChristopherVR/ooxml/commit/a638df2ea8d702b1595b96bddf668a94dc9946dc))
|
|
89
|
+
- **chart:** Split secondary series without changing targets ([cd1d2d5](https://github.com/ChristopherVR/ooxml/commit/cd1d2d5e3fb74bdb1ae7b05f1b2a0836e7ae34c2))
|
|
90
|
+
- **chart:** Share chart chrome and protection edits ([9d59053](https://github.com/ChristopherVR/ooxml/commit/9d590537db83f652b66a8e7c9431ca6b0f640c86))
|
|
91
|
+
- **chart:** Create extended charts through shared operations ([5a8ece7](https://github.com/ChristopherVR/ooxml/commit/5a8ece72b122382e57f8648c8c58a17dec8e5a09))
|
|
92
|
+
- **pptx:** Save extended chart families through the core ([f5c1091](https://github.com/ChristopherVR/ooxml/commit/f5c10914458e9cd31e92d6efdfd156f77de40dd0))
|
|
93
|
+
- **pptx:** Plan shared analysis and point chart saves ([3ab4c64](https://github.com/ChristopherVR/ooxml/commit/3ab4c6462e18ef7a24f35322f7b424337a668384))
|
|
94
|
+
- **chart:** Preserve series targets across combo type edits ([d991ecb](https://github.com/ChristopherVR/ooxml/commit/d991ecb51d855cec58efd752f7c959a8d5346f32))
|
|
95
|
+
- **chart:** Share axis labels and plot decorations ([0838fa8](https://github.com/ChristopherVR/ooxml/commit/0838fa8e6832d6442cec0f9a71e0a83051a5581d))
|
|
96
|
+
- **chart:** Edit rich title runs and typed data vectors ([a3b688e](https://github.com/ChristopherVR/ooxml/commit/a3b688e38ccecdf64d99856df1bed8a33e2866e6))
|
|
97
|
+
- **chart:** Share extended chart style and axis editing ([906594d](https://github.com/ChristopherVR/ooxml/commit/906594d527d0c472cd5435f60049fe0f3e1e4a2b))
|
|
98
|
+
|
|
99
|
+
### Bug Fixes
|
|
100
|
+
|
|
101
|
+
- **chart:** Preserve source content across chart consumers ([1ce74e9](https://github.com/ChristopherVR/ooxml/commit/1ce74e92f8864a046f3ef756b35bf8568c685c5b))
|
|
102
|
+
- **diagram:** Report partial interpreted preview capabilities ([ea9e474](https://github.com/ChristopherVR/ooxml/commit/ea9e4746aa826a00a8bc49ac58852687e62eaf12))
|
|
103
|
+
- **chart:** Preserve resolved gradient focus geometry ([0db31bf](https://github.com/ChristopherVR/ooxml/commit/0db31bf6be311d50eceb9aae66b809c15a9ca48c))
|
|
104
|
+
- **chart:** Retain histogram semantics when switching layouts ([95e9a75](https://github.com/ChristopherVR/ooxml/commit/95e9a75440adaf743bc3c76d399f2b39e40b662e))
|
|
105
|
+
- **pptx:** Preserve chart label defaults and retry workbook writes ([78e8efb](https://github.com/ChristopherVR/ooxml/commit/78e8efbe56ff2000e4d189657d7cc972057fd50f))
|
|
106
|
+
- **pptx:** Save ChartEx label content flags through the core ([88309ed](https://github.com/ChristopherVR/ooxml/commit/88309edce7d247d068fd9934cbf79990b40ea081))
|
|
107
|
+
- **chart:** Preserve source attributes and reuse workbook writes ([4a5f40b](https://github.com/ChristopherVR/ooxml/commit/4a5f40b51644afcb8fdc8690e14a89c41fc5b5bd))
|
|
108
|
+
- **pptx:** Refresh chart adapters after saving shared models ([fdebf79](https://github.com/ChristopherVR/ooxml/commit/fdebf796a8168693c678a9889d2b9b1135079f1e))
|
|
109
|
+
- **chart:** Activate newly allocated workbook data sheets ([7767080](https://github.com/ChristopherVR/ooxml/commit/77670803f1e87ffdab709138f57f4850e2946e50))
|
|
110
|
+
- **pptx:** Declare chart refresh across runtime mixins ([5f880e6](https://github.com/ChristopherVR/ooxml/commit/5f880e639b16111c9b591a6cb909a07d6d3f5607))
|
|
111
|
+
- **chart:** Accept host-allocated picture preview sources ([08fe91b](https://github.com/ChristopherVR/ooxml/commit/08fe91b613a007141ec2291a458a6d02cb6f61ab))
|
|
112
|
+
- **chart:** Preserve authored paint and typed category edits ([547e5c0](https://github.com/ChristopherVR/ooxml/commit/547e5c069fdbeb351e5a8fcddbcb67f790a2b677))
|
|
113
|
+
- **chart:** Preserve rich axis title style projection ([b5d5b7a](https://github.com/ChristopherVR/ooxml/commit/b5d5b7a728785576550957ecd07c202ad36ede0e))
|
|
114
|
+
- **pptx:** Default SmartArt reflow to its local origin ([ae8a59b](https://github.com/ChristopherVR/ooxml/commit/ae8a59b43dbf4dcfdec3d199cc0735b09f1d65ec))
|
|
115
|
+
- **pptx:** Morph offstage text size changes and keep run alpha ([75749c0](https://github.com/ChristopherVR/ooxml/commit/75749c0618fe24714d9f086ca7248f9f3e41e729))
|
|
116
|
+
- **pptx:** Converge when two clients seed an empty room ([#217](https://github.com/ChristopherVR/ooxml/issues/217)) ([ee06f53](https://github.com/ChristopherVR/ooxml/commit/ee06f5389a9f277704640e4efaa567b3d5718507))
|
|
117
|
+
|
|
118
|
+
### Refactor
|
|
119
|
+
|
|
120
|
+
- **pptx:** Read ChartEx facts through the neutral model ([f78b582](https://github.com/ChristopherVR/ooxml/commit/f78b58266a5819121f92b9f954fdd5162b4c0eff))
|
|
121
|
+
- **pptx:** Project classic chart paint from neutral models ([76dbdc6](https://github.com/ChristopherVR/ooxml/commit/76dbdc6dc0ba1c3afc8fe98ba92f482abfdcccd2))
|
|
122
|
+
|
|
123
|
+
### Testing
|
|
124
|
+
|
|
125
|
+
- **pptx:** Compare authored ChartEx visibility and scaling ([5748e23](https://github.com/ChristopherVR/ooxml/commit/5748e234bbe1919b522479f440440457267c4abf))
|
|
126
|
+
|
|
127
|
+
### Styling
|
|
128
|
+
|
|
129
|
+
- **chart:** Apply workspace formatting to chart tests ([b3f3a08](https://github.com/ChristopherVR/ooxml/commit/b3f3a0887eaff025d3fd7bf88cd288977df4121f))
|
|
130
|
+
|
|
10
131
|
## [3.53.0](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-vanilla-viewer@3.53.0) - 2026-10-26
|
|
11
132
|
|
|
12
133
|
### Features
|
package/README.md
CHANGED
|
@@ -125,7 +125,7 @@ shown above:
|
|
|
125
125
|
| `registry` | `ElementRendererRegistry` | - | Custom element-renderer registry (see [Element coverage](#element-coverage)). |
|
|
126
126
|
| `smartArt3D` | `boolean` | `false` | Opt-in Three.js 3D SmartArt renderer (optional `three` peer, lazily imported). |
|
|
127
127
|
| `surfaceChart3D`, `barChart3D`, `lineChart3D`, `areaChart3D`, `pieChart3D` | `boolean` | `false` | Independently opt in to interactive Three.js renderers for the matching 3D chart kinds; each falls back to SVG when WebGL is unavailable. |
|
|
128
|
-
| `ai` | `PptxAiConfig`
|
|
128
|
+
| `ai` | `PptxAiAssistant \| PptxAiConfig` | - | Optional AI assistant: a handle from `createAiAssistant` (`pptx-vanilla-viewer/ai`), or a plain config. The SDK peer loads only when its panel is opened. See the [AI assistant guide](https://christophervr.github.io/ooxml/pptx/guide/ai-assistant#ai-entry). |
|
|
129
129
|
| `autosave` | `boolean` | `true` | Crash-recovery autosave to IndexedDB, written while there are unsaved edits. |
|
|
130
130
|
| `autosaveIntervalMs` | `number` | File > Options cadence | Interval between recovery snapshots while there are unsaved edits. |
|
|
131
131
|
| `autosaveFilePath` | `string` | `'presentation.pptx'` | IndexedDB recovery key for autosave snapshots. |
|
package/dist/ai.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkPCF72CT4_cjs=require('./chunk-PCF72CT4.cjs');require('./chunk-FRJYQEIV.cjs');var o=()=>import('./ai-panel-O7CUMECB.cjs');function e(i){return chunkPCF72CT4_cjs.a.register(i,o)}exports.createAiAssistant=e;
|
package/dist/ai.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PptxAiBridge, PptxAiConfig, PptxAiConfig as PptxAiConfig$1, PptxAiConnection, PptxAiContextStrategy, PptxAiToolName, PptxAiWritePolicy } from "ooxml-ui/pptx/ai";
|
|
2
|
+
import { PptxAiAssistant, PptxAiAssistant as PptxAiAssistant$1 } from "ooxml-ui/pptx/ai/host";
|
|
3
|
+
//#region src/ai.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Create an AI assistant for the viewer's `ai` option from a `PptxAiConfig`.
|
|
6
|
+
*
|
|
7
|
+
* The handle is opaque and loads nothing. It keeps `config` by reference; create a new
|
|
8
|
+
* handle to change it. Every handle carries the same panel loader.
|
|
9
|
+
*/
|
|
10
|
+
export declare function createAiAssistant(config: PptxAiConfig$1): PptxAiAssistant$1;
|
|
11
|
+
//#endregion
|
|
12
|
+
export type { PptxAiAssistant, PptxAiBridge, PptxAiConfig, PptxAiConnection, PptxAiContextStrategy, PptxAiToolName, PptxAiWritePolicy };
|
|
13
|
+
//# sourceMappingURL=ai.d.ts.map
|
package/dist/ai.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai.d.ts","names":["PptxAiConfig","PptxAiAssistant"],"sources":["../src/ai.ts"],"mappings":";;;;;;;;;wBA4BgB,kBAAkB,QAAQA,iBAAeC"}
|
package/dist/ai.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a}from'./chunk-5TJJZ2IN.js';import'./chunk-CNU4N4AY.js';var o=()=>import('./ai-panel-XT74GHCZ.js');function e(i){return a.register(i,o)}export{e as createAiAssistant};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {createAiAssistantRegistry}from'ooxml-ui/pptx/ai/host';var o=createAiAssistantRegistry({owner:"pptx-vanilla-viewer"});export{o as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
'use strict';var pptx=require('ooxml-ui/pptx'),dom=require('ooxml-ui/pptx/dom');var h="data-pptx-text-style-override";function q(n,o,a){dom.applyThreeViewTextStyle(n,a?.textStyle);let i=pptx.buildTextStyleOverrideCss(o,a?.textStyle),e=n.querySelector(`:scope > style[${h}]`);if(!i){e?.remove();return}e||(e=n.ownerDocument.createElement("style"),e.setAttribute(h,""),n.prepend(e)),e.textContent=i;}var v="pptx-vanilla-presentation-keyframes",H="pptx-vanilla-slide-keyframes";function O(n){if(n.getElementById(v))return;let o=n.createElement("style");o.id=v,o.textContent=`${pptx.ANIMATION_KEYFRAMES_CSS}
|
|
2
|
+
${pptx.SLIDE_TRANSITION_KEYFRAMES_CSS}
|
|
3
|
+
${pptx.PRESENTATION_HIT_TEST_CSS}`,(n.head??n.documentElement).appendChild(o);}function re(n,o){let a=n.getElementById(H);if(!o){a?.remove();return}a||(a=n.createElement("style"),a.id=H,(n.head??n.documentElement).appendChild(a)),a.textContent=o;}function ae(n,o,a,i){n.querySelectorAll("[data-element-id]").forEach(e=>{let t=e.dataset.elementId;if(!t)return;let r=o.get(t);pptx.applyAnimationOpacity(e,r),e.style.animation=r?.cssAnimation??"",e.style.visibility=r?.visible===false?"hidden":"";let l=a.has(t)||i.has(t);e.style.cursor=l?"pointer":"",e.toggleAttribute(pptx.PRESENTATION_ANIM_TRIGGER_ATTRIBUTE,l),q(e,t,r);}),n.querySelectorAll("[data-anim-id]").forEach(e=>{let t=e.dataset.animId;if(!t)return;let r=o.get(t);pptx.applyAnimationOpacity(e,r),e.style.animation=r?.cssAnimation??"",e.style.visibility=r?.visible===false?"hidden":"";});}function T(n,o,a,i,e){let t=n.createElement("div");t.className="pptxv-transition-layer",t.dataset.pptxTransitionLayer=e,t.dataset.pptxTransitionFragments=a.keyframesName,t.style.position="absolute",t.style.inset="0",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex=String(i);for(let r of a.fragments)t.appendChild($(n,o,a,r));return t}function $(n,o,a,i){let e=n.createElement("div");e.dataset.pptxTransitionFragment=i.id,e.style.position="absolute",e.style.inset="0",e.style.clipPath=i.clipPath,e.style.transformOrigin=i.transformOrigin,e.style.animationName=a.keyframesName,e.style.animationDuration=`${a.durationMs}ms`,e.style.animationTimingFunction=a.easing,e.style.animationDelay=`${i.delayMs}ms`,e.style.animationFillMode="forwards",e.style.willChange="transform, opacity";for(let[t,r]of Object.entries(i.vars))e.style.setProperty(t,r);return e.appendChild(o.cloneNode(true)),e}function u(n,o,a,i,e){let t=n.createElement("div");return t.className="pptxv-transition-layer",t.dataset.pptxTransitionLayer=e,t.style.position="absolute",t.style.inset="0",t.style.overflow="hidden",t.style.zIndex=String(a),t.style.willChange="transform, opacity, clip-path, filter",i!=="none"&&(t.style.animation=i),t.appendChild(o),t}function C(n,o){n.style.background="none",n.style.backgroundColor="transparent";let a=new Set(o),i=new Set;for(let e of n.querySelectorAll("[data-element-id]")){let t=e.dataset.elementId;if(!(t===void 0||!a.has(t))){for(let r=e;r&&r!==n;)i.add(r),r=r.parentElement;for(let r of e.querySelectorAll("[data-element-id]"))i.add(r);}}for(let e of [...n.querySelectorAll("[data-element-id]")])i.has(e)||e.remove();return n}function B(n,o){return o.forEach((a,i)=>{let e=n.querySelector(`[data-element-id="${CSS.escape(a)}"]`);e&&(e.style.zIndex=String(i+1));}),n}function V(n,o,a){for(let[i,e]of a??[]){let t=n.querySelector(`[data-element-id="${CSS.escape(i)}"]`),r=o.querySelector(`[data-element-id="${CSS.escape(e)}"]`);if(!t||!r)continue;let l=r.cloneNode(true);l.dataset.elementId=i,l.style.left=t.style.left,l.style.top=t.style.top,t.replaceWith(l);}}var A=2;function I(n,o,a,i){return (i?.overlayLayers??[]).map((e,t)=>{let r=e.side==="outgoing"?o:a,l=e.elements.map(d=>d.id),m=r.cloneNode(true);e.side==="outgoing"&&V(m,a,i?.outgoingTextReplacements);let s=u(n,B(C(m,l),l),A+t,"none",e.side==="outgoing"?"outgoing":"lifted");return e.side==="outgoing"?s.dataset.pptxMorphOutgoing="true":s.dataset.pptxMorphLifted="true",s})}function b(n,o,a,i){return i?i.crossfadeGroups.map((e,t)=>{let r=n.createElement("div");r.dataset.pptxMorphCrossfade=e.incoming.id,r.style.cssText=pptx.MORPH_CROSSFADE_GROUP_CSS_TEXT,r.style.zIndex=String(A+i.overlayLayers.length+t);let l=(m,s,d,y,g)=>{let p=u(n,C(m,[s]),y,g??"none",d);return d==="outgoing"?p.dataset.pptxMorphOutgoing="true":p.dataset.pptxMorphLifted="true",p.style.mixBlendMode=pptx.MORPH_CROSSFADE_HALF_BLEND_MODE,p};return r.append(l(o.cloneNode(true),e.outgoing.id,"outgoing",0,e.outgoingAnimation),l(a.cloneNode(true),e.incoming.id,"lifted",1,e.incomingAnimation)),r}):[]}function Ee(n){let{doc:o,stageWrap:a,outgoing:i,incoming:e,transition:t}=n;O(o);let r=pptx.resolveSlideTransition(t),l=pptx.resolveTransitionDurationMs(t),m=pptx.getFragmentedTransitionDescriptor(t.type,l,t.direction,t.spokes,t.pattern),s=o.createElement("div");s.className="pptxv-transition-overlay",s.dataset.pptxTransitionOverlay="",s.dataset.pptxTransitionOverlay="",s.style.position="absolute",s.style.inset="0",s.style.overflow="hidden",s.style.pointerEvents="none",s.style.zIndex="30";let d=t.type==="morph"?pptx.buildMorphTransitionPlan(n.outgoingSlide,n.incomingSlide,l,pptx.morphOptionToMode(t.morphOption)):void 0,y=r.outgoingOnTop?2:1,g=d||r.outgoingOnTop?1:2,p=I(o,i,e,d),_=!d&&m?.outgoing?T(o,i,m.outgoing,y,"outgoing"):u(o,i,y,r.outgoing,"outgoing"),f=!d&&m?.incoming?T(o,e,m.incoming,g,"incoming"):u(o,e,g,d?"none":r.incoming,"incoming"),D=b(o,i,e,d);if(d){f.dataset.pptxMorphIncoming="true";let c=o.createElement("style");c.textContent=[pptx.buildMorphScopedCss(d,"data-pptx-morph-incoming","incoming"),pptx.buildMorphScopedCss(d,"data-pptx-morph-outgoing","outgoing"),pptx.buildMorphScopedCss(d,"data-pptx-morph-lifted","lifted")].join(`
|
|
4
|
+
`),s.appendChild(c);}d?s.appendChild(f):s.append(_,f);for(let c of p)s.appendChild(c);for(let c of D)s.appendChild(c);a.appendChild(s);let M=false,S=()=>{M||(M=true,clearTimeout(R),s.remove(),n.onDone());},R=setTimeout(S,Math.max(0,l)+50);return S}exports.a=O;exports.b=re;exports.c=ae;exports.d=Ee;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import {ANIMATION_KEYFRAMES_CSS,SLIDE_TRANSITION_KEYFRAMES_CSS,PRESENTATION_HIT_TEST_CSS,applyAnimationOpacity,PRESENTATION_ANIM_TRIGGER_ATTRIBUTE,resolveSlideTransition,resolveTransitionDurationMs,getFragmentedTransitionDescriptor,buildMorphTransitionPlan,morphOptionToMode,buildMorphScopedCss,buildTextStyleOverrideCss,MORPH_CROSSFADE_GROUP_CSS_TEXT,MORPH_CROSSFADE_HALF_BLEND_MODE}from'ooxml-ui/pptx';import {applyThreeViewTextStyle}from'ooxml-ui/pptx/dom';var h="data-pptx-text-style-override";function q(n,o,a){applyThreeViewTextStyle(n,a?.textStyle);let i=buildTextStyleOverrideCss(o,a?.textStyle),e=n.querySelector(`:scope > style[${h}]`);if(!i){e?.remove();return}e||(e=n.ownerDocument.createElement("style"),e.setAttribute(h,""),n.prepend(e)),e.textContent=i;}var v="pptx-vanilla-presentation-keyframes",H="pptx-vanilla-slide-keyframes";function O(n){if(n.getElementById(v))return;let o=n.createElement("style");o.id=v,o.textContent=`${ANIMATION_KEYFRAMES_CSS}
|
|
2
|
+
${SLIDE_TRANSITION_KEYFRAMES_CSS}
|
|
3
|
+
${PRESENTATION_HIT_TEST_CSS}`,(n.head??n.documentElement).appendChild(o);}function re(n,o){let a=n.getElementById(H);if(!o){a?.remove();return}a||(a=n.createElement("style"),a.id=H,(n.head??n.documentElement).appendChild(a)),a.textContent=o;}function ae(n,o,a,i){n.querySelectorAll("[data-element-id]").forEach(e=>{let t=e.dataset.elementId;if(!t)return;let r=o.get(t);applyAnimationOpacity(e,r),e.style.animation=r?.cssAnimation??"",e.style.visibility=r?.visible===false?"hidden":"";let l=a.has(t)||i.has(t);e.style.cursor=l?"pointer":"",e.toggleAttribute(PRESENTATION_ANIM_TRIGGER_ATTRIBUTE,l),q(e,t,r);}),n.querySelectorAll("[data-anim-id]").forEach(e=>{let t=e.dataset.animId;if(!t)return;let r=o.get(t);applyAnimationOpacity(e,r),e.style.animation=r?.cssAnimation??"",e.style.visibility=r?.visible===false?"hidden":"";});}function T(n,o,a,i,e){let t=n.createElement("div");t.className="pptxv-transition-layer",t.dataset.pptxTransitionLayer=e,t.dataset.pptxTransitionFragments=a.keyframesName,t.style.position="absolute",t.style.inset="0",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex=String(i);for(let r of a.fragments)t.appendChild($(n,o,a,r));return t}function $(n,o,a,i){let e=n.createElement("div");e.dataset.pptxTransitionFragment=i.id,e.style.position="absolute",e.style.inset="0",e.style.clipPath=i.clipPath,e.style.transformOrigin=i.transformOrigin,e.style.animationName=a.keyframesName,e.style.animationDuration=`${a.durationMs}ms`,e.style.animationTimingFunction=a.easing,e.style.animationDelay=`${i.delayMs}ms`,e.style.animationFillMode="forwards",e.style.willChange="transform, opacity";for(let[t,r]of Object.entries(i.vars))e.style.setProperty(t,r);return e.appendChild(o.cloneNode(true)),e}function u(n,o,a,i,e){let t=n.createElement("div");return t.className="pptxv-transition-layer",t.dataset.pptxTransitionLayer=e,t.style.position="absolute",t.style.inset="0",t.style.overflow="hidden",t.style.zIndex=String(a),t.style.willChange="transform, opacity, clip-path, filter",i!=="none"&&(t.style.animation=i),t.appendChild(o),t}function C(n,o){n.style.background="none",n.style.backgroundColor="transparent";let a=new Set(o),i=new Set;for(let e of n.querySelectorAll("[data-element-id]")){let t=e.dataset.elementId;if(!(t===void 0||!a.has(t))){for(let r=e;r&&r!==n;)i.add(r),r=r.parentElement;for(let r of e.querySelectorAll("[data-element-id]"))i.add(r);}}for(let e of [...n.querySelectorAll("[data-element-id]")])i.has(e)||e.remove();return n}function B(n,o){return o.forEach((a,i)=>{let e=n.querySelector(`[data-element-id="${CSS.escape(a)}"]`);e&&(e.style.zIndex=String(i+1));}),n}function V(n,o,a){for(let[i,e]of a??[]){let t=n.querySelector(`[data-element-id="${CSS.escape(i)}"]`),r=o.querySelector(`[data-element-id="${CSS.escape(e)}"]`);if(!t||!r)continue;let l=r.cloneNode(true);l.dataset.elementId=i,l.style.left=t.style.left,l.style.top=t.style.top,t.replaceWith(l);}}var A=2;function I(n,o,a,i){return (i?.overlayLayers??[]).map((e,t)=>{let r=e.side==="outgoing"?o:a,l=e.elements.map(d=>d.id),m=r.cloneNode(true);e.side==="outgoing"&&V(m,a,i?.outgoingTextReplacements);let s=u(n,B(C(m,l),l),A+t,"none",e.side==="outgoing"?"outgoing":"lifted");return e.side==="outgoing"?s.dataset.pptxMorphOutgoing="true":s.dataset.pptxMorphLifted="true",s})}function b(n,o,a,i){return i?i.crossfadeGroups.map((e,t)=>{let r=n.createElement("div");r.dataset.pptxMorphCrossfade=e.incoming.id,r.style.cssText=MORPH_CROSSFADE_GROUP_CSS_TEXT,r.style.zIndex=String(A+i.overlayLayers.length+t);let l=(m,s,d,y,g)=>{let p=u(n,C(m,[s]),y,g??"none",d);return d==="outgoing"?p.dataset.pptxMorphOutgoing="true":p.dataset.pptxMorphLifted="true",p.style.mixBlendMode=MORPH_CROSSFADE_HALF_BLEND_MODE,p};return r.append(l(o.cloneNode(true),e.outgoing.id,"outgoing",0,e.outgoingAnimation),l(a.cloneNode(true),e.incoming.id,"lifted",1,e.incomingAnimation)),r}):[]}function Ee(n){let{doc:o,stageWrap:a,outgoing:i,incoming:e,transition:t}=n;O(o);let r=resolveSlideTransition(t),l=resolveTransitionDurationMs(t),m=getFragmentedTransitionDescriptor(t.type,l,t.direction,t.spokes,t.pattern),s=o.createElement("div");s.className="pptxv-transition-overlay",s.dataset.pptxTransitionOverlay="",s.dataset.pptxTransitionOverlay="",s.style.position="absolute",s.style.inset="0",s.style.overflow="hidden",s.style.pointerEvents="none",s.style.zIndex="30";let d=t.type==="morph"?buildMorphTransitionPlan(n.outgoingSlide,n.incomingSlide,l,morphOptionToMode(t.morphOption)):void 0,y=r.outgoingOnTop?2:1,g=d||r.outgoingOnTop?1:2,p=I(o,i,e,d),_=!d&&m?.outgoing?T(o,i,m.outgoing,y,"outgoing"):u(o,i,y,r.outgoing,"outgoing"),f=!d&&m?.incoming?T(o,e,m.incoming,g,"incoming"):u(o,e,g,d?"none":r.incoming,"incoming"),D=b(o,i,e,d);if(d){f.dataset.pptxMorphIncoming="true";let c=o.createElement("style");c.textContent=[buildMorphScopedCss(d,"data-pptx-morph-incoming","incoming"),buildMorphScopedCss(d,"data-pptx-morph-outgoing","outgoing"),buildMorphScopedCss(d,"data-pptx-morph-lifted","lifted")].join(`
|
|
4
|
+
`),s.appendChild(c);}d?s.appendChild(f):s.append(_,f);for(let c of p)s.appendChild(c);for(let c of D)s.appendChild(c);a.appendChild(s);let M=false,S=()=>{M||(M=true,clearTimeout(R),s.remove(),n.onDone());},R=setTimeout(S,Math.max(0,l)+50);return S}export{O as a,re as b,ae as c,Ee as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var host=require('ooxml-ui/pptx/ai/host');var o=host.createAiAssistantRegistry({owner:"pptx-vanilla-viewer"});exports.a=o;
|