ooxml-ui 1.48.0 → 1.49.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/dist/building-block-styles.d.ts +0 -1
- package/dist/chart/format-pane-axis.d.ts +1 -0
- package/dist/chart/format-pane-effects.d.ts +0 -1
- package/dist/chart/format-pane-model.d.ts +1 -0
- package/dist/chart/format-pane-types.d.ts +1 -0
- package/dist/chart/format-pane-view.d.ts +1 -0
- package/dist/chrome/find-replace-fields.d.ts +0 -1
- package/dist/form/color-input/live-color-input.d.ts +1 -0
- package/dist/form/range-control.d.ts +1 -0
- package/dist/pptx/{chunk-GYI2TFSW.cjs → chunk-2FKBWWSS.cjs} +8 -0
- package/dist/pptx/{chunk-JUEKQZSB.mjs → chunk-4OM7WS6M.mjs} +2 -2
- package/dist/pptx/{chunk-C4GZLKDW.mjs → chunk-JJP24O2L.mjs} +58 -3
- package/dist/pptx/{chunk-2C2C27ML.cjs → chunk-JOQIMYHE.cjs} +66 -5
- package/dist/pptx/{chunk-N5WPJIMK.cjs → chunk-Q6YXUH4R.cjs} +47 -47
- package/dist/pptx/{chunk-S6P7UWGZ.mjs → chunk-XLSW7WM3.mjs} +8 -0
- package/dist/pptx/dom/index.cjs +374 -371
- package/dist/pptx/dom/index.mjs +8 -5
- package/dist/pptx/dom/slide-stage.d.ts +8 -0
- package/dist/pptx/dom/slide-stage.d.ts.map +1 -1
- package/dist/pptx/export/css-preprocessing-flatten.d.ts.map +1 -1
- package/dist/pptx/export/html2canvas-clone.cjs +6 -6
- package/dist/pptx/export/html2canvas-clone.mjs +1 -1
- package/dist/pptx/index.cjs +3115 -3091
- package/dist/pptx/index.mjs +2 -2
- package/dist/pptx/render/canvas-element-node.d.ts +8 -7
- package/dist/pptx/render/canvas-element-node.d.ts.map +1 -1
- package/dist/pptx/render/editor-chrome/metrics.d.ts +12 -0
- package/dist/pptx/render/editor-chrome/metrics.d.ts.map +1 -1
- package/dist/pptx/render/index.d.ts +2 -0
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/slide-thumbnail-badge.d.ts +42 -0
- package/dist/pptx/render/slide-thumbnail-badge.d.ts.map +1 -0
- package/dist/pptx/render/stage-element-ids.d.ts +49 -0
- package/dist/pptx/render/stage-element-ids.d.ts.map +1 -0
- package/dist/pptx/{smartart-insert-preview-3BLHZGCE.cjs → smartart-insert-preview-I6S2OSWU.cjs} +4 -4
- package/dist/pptx/{smartart-insert-preview-WRSYENYB.mjs → smartart-insert-preview-KQJPGRDR.mjs} +3 -3
- package/dist/render-cache.d.ts +1 -0
- package/dist/theme-bridge.d.ts +1 -0
- package/dist/theme.d.ts +1 -0
- package/package.json +12 -12
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which slide stages keep the `data-element-id` markers, and the DOM pass that
|
|
3
|
+
* removes them from the others.
|
|
4
|
+
*
|
|
5
|
+
* Every element renderer stamps `data-element-id`, but the marker must be
|
|
6
|
+
* unique to the surface a user acts on: hit-testing, animation preview, paste
|
|
7
|
+
* anchoring and `[data-element-id]` queries take the first match, and the
|
|
8
|
+
* thumbnail rail sits ahead of the canvas in the DOM. So only three kinds of
|
|
9
|
+
* stage keep it:
|
|
10
|
+
*
|
|
11
|
+
* - the interactive editing canvas;
|
|
12
|
+
* - the live presentation stage (playback, triggers and builds select by it);
|
|
13
|
+
* - a transition layer that the show addresses by id (`preserveElementIds`).
|
|
14
|
+
* Every binding keeps it on Morph layers, whose per-element keyframe CSS is
|
|
15
|
+
* keyed on it. Angular also keeps it on its other transition layers, because
|
|
16
|
+
* they sit inside the show stage and the show applies build states to every
|
|
17
|
+
* `[data-element-id]` there; vanilla's layers are copies of the presenting
|
|
18
|
+
* stages and keep it too. Vue and Svelte strip their other transition layers.
|
|
19
|
+
*
|
|
20
|
+
* Every other stage (slides pane and host thumbnails, slide sorter, master and
|
|
21
|
+
* layout previews, slide template previews, presenter previews, reading view,
|
|
22
|
+
* export rasters) is static and carries none in all five bindings: React draws
|
|
23
|
+
* it with its static renderer, vanilla passes `exposeElementIds: false` to
|
|
24
|
+
* `renderSlideStage`, Vue's and Svelte's `SlideStage` decide it with
|
|
25
|
+
* {@link stageKeepsElementIds} and strip the assembled stage, and Angular's
|
|
26
|
+
* `SlideCanvasComponent` decides it with the same rule and hands it to every
|
|
27
|
+
* element renderer (`exposeElementId`), each per-type renderer included.
|
|
28
|
+
*
|
|
29
|
+
* @module render/stage-element-ids
|
|
30
|
+
*/
|
|
31
|
+
/** What decides whether a stage keeps its element id markers. */
|
|
32
|
+
export interface StageElementIdFlags {
|
|
33
|
+
/** The interactive editing canvas. */
|
|
34
|
+
readonly interactive?: boolean;
|
|
35
|
+
/** The live presentation stage. */
|
|
36
|
+
readonly presenting?: boolean;
|
|
37
|
+
/** A transition layer the show addresses by element id (Morph keyframe CSS, build states). */
|
|
38
|
+
readonly preserveElementIds?: boolean;
|
|
39
|
+
}
|
|
40
|
+
/** Whether a stage with these flags keeps its `data-element-id` markers. */
|
|
41
|
+
export declare function stageKeepsElementIds(flags: StageElementIdFlags): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Remove every `data-element-id` marker under `root` (and from `root` itself)
|
|
44
|
+
* and return how many were removed. Content and every other attribute stay.
|
|
45
|
+
* Run it after the stage is assembled: renderers that index their own subtree
|
|
46
|
+
* by id (group fills) need the markers while they build.
|
|
47
|
+
*/
|
|
48
|
+
export declare function stripElementIdMarkers(root: ParentNode): number;
|
|
49
|
+
//# sourceMappingURL=stage-element-ids.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stage-element-ids.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/stage-element-ids.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,iEAAiE;AACjE,MAAM,WAAW,mBAAmB;IACnC,sCAAsC;IACtC,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,mCAAmC;IACnC,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,8FAA8F;IAC9F,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CACtC;AAED,4EAA4E;AAC5E,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAExE;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAa9D"}
|
package/dist/pptx/{smartart-insert-preview-3BLHZGCE.cjs → smartart-insert-preview-I6S2OSWU.cjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkQ6YXUH4R_cjs = require('./chunk-Q6YXUH4R.cjs');
|
|
4
|
+
require('./chunk-JOQIMYHE.cjs');
|
|
5
5
|
require('./chunk-LOUVYGWX.cjs');
|
|
6
6
|
require('./chunk-XOAXPD2W.cjs');
|
|
7
7
|
require('./chunk-W3X2UVYQ.cjs');
|
|
@@ -25,7 +25,7 @@ require('./chunk-USBRSEJK.cjs');
|
|
|
25
25
|
require('./chunk-HTFYAGHG.cjs');
|
|
26
26
|
require('./chunk-FOE75Z6N.cjs');
|
|
27
27
|
require('./chunk-NTXHQHCS.cjs');
|
|
28
|
-
require('./chunk-
|
|
28
|
+
require('./chunk-2FKBWWSS.cjs');
|
|
29
29
|
require('./chunk-G4WRLFMJ.cjs');
|
|
30
30
|
require('./chunk-FI2ATACZ.cjs');
|
|
31
31
|
require('./chunk-HJ3JZXOL.cjs');
|
|
@@ -45,5 +45,5 @@ require('./chunk-PBZWDEXQ.cjs');
|
|
|
45
45
|
|
|
46
46
|
Object.defineProperty(exports, "buildSmartArtInsertPreview", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkQ6YXUH4R_cjs.buildSmartArtInsertPreview; }
|
|
49
49
|
});
|
package/dist/pptx/{smartart-insert-preview-WRSYENYB.mjs → smartart-insert-preview-KQJPGRDR.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { buildSmartArtInsertPreview } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { buildSmartArtInsertPreview } from './chunk-4OM7WS6M.mjs';
|
|
2
|
+
import './chunk-JJP24O2L.mjs';
|
|
3
3
|
import './chunk-3DJZBAQ2.mjs';
|
|
4
4
|
import './chunk-RQJOOXRG.mjs';
|
|
5
5
|
import './chunk-7BHPBO2O.mjs';
|
|
@@ -23,7 +23,7 @@ import './chunk-T7FRLIDM.mjs';
|
|
|
23
23
|
import './chunk-XL5AF4U3.mjs';
|
|
24
24
|
import './chunk-IB6ZM2E2.mjs';
|
|
25
25
|
import './chunk-JA7WYSRE.mjs';
|
|
26
|
-
import './chunk-
|
|
26
|
+
import './chunk-XLSW7WM3.mjs';
|
|
27
27
|
import './chunk-2V5ATMMB.mjs';
|
|
28
28
|
import './chunk-G5NEBI7N.mjs';
|
|
29
29
|
import './chunk-7JBQPQ6G.mjs';
|
package/dist/render-cache.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare const RENDER_CACHE_MAX_BYTES: number;
|
|
2
2
|
/** FIFO retention limit; oversized results still render, but are not memoised. */
|
|
3
3
|
export declare function setBoundedRenderCache<T>(cache: Map<string, T>, key: string, value: T, maxEntries: number): void;
|
|
4
|
+
//# sourceMappingURL=render-cache.d.ts.map
|
package/dist/theme-bridge.d.ts
CHANGED
|
@@ -54,3 +54,4 @@ export interface ShadcnBridgeOptions {
|
|
|
54
54
|
* (`prefix` includes the dashes, for example `'--dve-'` or `'--pptx-'`).
|
|
55
55
|
*/
|
|
56
56
|
export declare function shadcnBridge(selector: string, prefix: string, options?: ShadcnBridgeOptions): string;
|
|
57
|
+
//# sourceMappingURL=theme-bridge.d.ts.map
|
package/dist/theme.d.ts
CHANGED
|
@@ -15,3 +15,4 @@ export declare function installOfficeUiTheme(root?: Document | ShadowRoot | unde
|
|
|
15
15
|
export declare function installOfficeUiThemeFor(host: HTMLElement): boolean;
|
|
16
16
|
/** Marks only the library control's own root. Theme state and custom tokens stay on host scopes. */
|
|
17
17
|
export declare function prepareOfficeUiBlock(host: HTMLElement, kind: OfficeUiBlockKind, product?: OfficeUiProduct): void;
|
|
18
|
+
//# sourceMappingURL=theme.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ooxml-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.49.0",
|
|
4
4
|
"description": "Shared, format-neutral web components and styles for the Office viewers (Word, PowerPoint, Excel)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"custom-elements",
|
|
@@ -174,9 +174,9 @@
|
|
|
174
174
|
},
|
|
175
175
|
"dependencies": {
|
|
176
176
|
"dompurify": "^3.4.17",
|
|
177
|
-
"emf-converter": "4.25.
|
|
177
|
+
"emf-converter": "4.25.4",
|
|
178
178
|
"lit": "^3.3.3",
|
|
179
|
-
"ooxml-core": "^1.48.
|
|
179
|
+
"ooxml-core": "^1.48.1",
|
|
180
180
|
"opentype.js": "^2.0.0",
|
|
181
181
|
"prosemirror-collab": "^1.3.1",
|
|
182
182
|
"prosemirror-commands": "^1.7.2",
|
|
@@ -184,19 +184,19 @@
|
|
|
184
184
|
"prosemirror-keymap": "^1.2.3",
|
|
185
185
|
"prosemirror-model": "^1.25.12",
|
|
186
186
|
"prosemirror-state": "^1.4.4",
|
|
187
|
-
"prosemirror-transform": "^1.12.
|
|
187
|
+
"prosemirror-transform": "^1.12.5",
|
|
188
188
|
"prosemirror-view": "^1.42.8",
|
|
189
189
|
"yjs": "^13.6.33",
|
|
190
190
|
"zod": "^4.6.7"
|
|
191
191
|
},
|
|
192
192
|
"devDependencies": {
|
|
193
|
-
"@ai-sdk/openai-compatible": "^3.0.
|
|
193
|
+
"@ai-sdk/openai-compatible": "^3.0.85",
|
|
194
194
|
"@types/jsdom": "^30.0.0",
|
|
195
195
|
"@types/opentype.js": "^1.3.10",
|
|
196
196
|
"@types/react": "^19.3.0",
|
|
197
197
|
"@types/react-dom": "^19.3.0",
|
|
198
|
-
"@types/three": "^0.
|
|
199
|
-
"ai": "^7.0.
|
|
198
|
+
"@types/three": "^0.187.0",
|
|
199
|
+
"ai": "^7.0.163",
|
|
200
200
|
"fake-indexeddb": "^6.2.7",
|
|
201
201
|
"happy-dom": "^21.0.4",
|
|
202
202
|
"jsdom": "^30.1.3",
|
|
@@ -204,18 +204,18 @@
|
|
|
204
204
|
"react": "^19.3.1",
|
|
205
205
|
"react-dom": "^19.3.1",
|
|
206
206
|
"solid-js": "^1.9.18",
|
|
207
|
-
"tailwindcss": "^4.3.
|
|
208
|
-
"three": "^0.
|
|
207
|
+
"tailwindcss": "^4.3.4",
|
|
208
|
+
"three": "^0.187.0",
|
|
209
209
|
"tsup": "^9.0.0",
|
|
210
210
|
"typescript": "^7.0.2",
|
|
211
|
-
"vitest": "^5.0
|
|
212
|
-
"vue": "^3.5.
|
|
211
|
+
"vitest": "^5.1.0",
|
|
212
|
+
"vue": "^3.5.45"
|
|
213
213
|
},
|
|
214
214
|
"peerDependencies": {
|
|
215
215
|
"ai": ">=6.0.0 <8",
|
|
216
216
|
"react": ">=18",
|
|
217
217
|
"solid-js": "^1.9.0",
|
|
218
|
-
"three": "^0.
|
|
218
|
+
"three": "^0.187.0",
|
|
219
219
|
"vue": "^3.5.0"
|
|
220
220
|
},
|
|
221
221
|
"peerDependenciesMeta": {
|