pptx-svelte-viewer 3.7.0 → 3.8.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 +15 -0
- package/dist/{AiChatPanel-vYzaXNFz.js → AiChatPanel-ByiDm0_K.js} +1 -1
- package/dist/{export-xK6ID6BD.js → export-yk0mo1AN.js} +30716 -29091
- package/dist/i18n.js +1 -1
- package/dist/index.d.ts +387 -18
- package/dist/index.js +2 -2
- package/dist/pptx-svelte-viewer.css +1 -1
- package/dist/{translator-DWcErYB3.js → translator-Bb6pIYyq.js} +2 -23
- package/dist/viewer/editor/editor-format-mutations.d.ts +10 -6
- package/dist/viewer/editor/editor-format-mutations.d.ts.map +1 -1
- package/dist/viewer/editor/editor-state.svelte.d.ts +6 -0
- package/dist/viewer/editor/editor-state.svelte.d.ts.map +1 -1
- package/dist/viewer/index.d.ts +425 -18
- package/dist/viewer/index.js +1 -1
- package/dist/viewer/presentation/animation-playback.svelte.d.ts.map +1 -1
- package/dist/viewer/render/smart-art-3d-view.d.ts.map +1 -1
- package/dist/viewer/render/smartart-view.d.ts +9 -6
- package/dist/viewer/render/smartart-view.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/viewer/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, M as a, c as s, d as t, f as i, gt as l, ht as S, i as n, j as o, l as v, m as d, n as p, o as b, p as g, r as c, s as x, t as m, u as w } from "../export-
|
|
1
|
+
import { A as e, M as a, c as s, d as t, f as i, gt as l, ht as S, i as n, j as o, l as v, m as d, n as p, o as b, p as g, r as c, s as x, t as m, u as w } from "../export-yk0mo1AN.js";
|
|
2
2
|
var T = a, A = o, P = e;
|
|
3
3
|
export {
|
|
4
4
|
m as PowerPointViewer,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animation-playback.svelte.d.ts","sourceRoot":"","sources":["../../../src/viewer/presentation/animation-playback.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAkB,qBAAqB,EAAmB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"animation-playback.svelte.d.ts","sourceRoot":"","sources":["../../../src/viewer/presentation/animation-playback.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAkB,qBAAqB,EAAmB,MAAM,oBAAoB,CAAC;AAajG;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,WAAW,qBAAqB;IACrC,oEAAoE;IACpE,QAAQ,IAAI,SAAS,GAAG,SAAS,CAAC;IAClC,wDAAwD;IACxD,oBAAoB,CAAC,IAAI,OAAO,GAAG,SAAS,CAAC;IAC7C,4EAA4E;IAC5E,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,WAAW,GAAG,IAAI,CAAC;CACrC;AAED,qBAAa,iBAAiB;;gBAwBjB,IAAI,EAAE,qBAAqB;IAevC,+EAA+E;IAC/E,IAAI,aAAa,IAAI,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAEtD;IAED,+DAA+D;IAC/D,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED,uEAAuE;IACvE,IAAI,0BAA0B,IAAI,WAAW,CAAC,MAAM,CAAC,CAEpD;IAED,2DAA2D;IAC3D,IAAI,oBAAoB,IAAI,WAAW,CAAC,MAAM,CAAC,CAE9C;IAED,mEAAmE;IACnE,IAAI,UAAU,IAAI,OAAO,CAExB;IAUD,iEAAiE;IACjE,WAAW,IAAI,IAAI;IAUnB,2EAA2E;IAC3E,IAAI,eAAe,IAAI,OAAO,CAE7B;IAED;;;;OAIG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI;IAyD9C;;;;OAIG;IACH,OAAO,IAAI,OAAO;IAWlB,0EAA0E;IAC1E,2BAA2B,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAYrD,mEAAmE;IACnE,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAkB1C,mEAAmE;IACnE,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;CAKrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smart-art-3d-view.d.ts","sourceRoot":"","sources":["../../../src/viewer/render/smart-art-3d-view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAiB,MAAM,kBAAkB,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"smart-art-3d-view.d.ts","sourceRoot":"","sources":["../../../src/viewer/render/smart-art-3d-view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAiB,MAAM,kBAAkB,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAQ1D;;;;;;;;GAQG;AAEH;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,WAAW,GAAG,eAAe,GAAG,SAAS,CAqB1F"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SmartArtPptxElement } from 'pptx-viewer-core';
|
|
2
|
-
import {
|
|
2
|
+
import { ElementAnimationState, RenderedNode, RenderedShape, SmartArtLayoutResult, SvgTextLine } from 'pptx-viewer-shared';
|
|
3
3
|
/**
|
|
4
4
|
* View-model resolution for `smartArt` elements (port of the vanilla
|
|
5
5
|
* binding's `renderSmartArtElement`). Palette / stroke / shadow / layout
|
|
@@ -38,12 +38,15 @@ export declare function smartArtAriaLabel(element: SmartArtPptxElement): string
|
|
|
38
38
|
* Pick the rendering path: pre-computed drawing shapes (preferred), the
|
|
39
39
|
* shared layout engine over the node tree, or an empty placeholder.
|
|
40
40
|
*
|
|
41
|
-
* `
|
|
42
|
-
*
|
|
43
|
-
* progress are revealed
|
|
44
|
-
*
|
|
41
|
+
* `animationState` is the active native-animation playback state, if any: when
|
|
42
|
+
* it carries a staged diagram build, only the leading nodes / drawing shapes
|
|
43
|
+
* for the current progress are revealed, preferring the AUTHORED per-node
|
|
44
|
+
* `p:graphicEl/@id` reveal set (`animationState.diagramReveal`) over the
|
|
45
|
+
* click-count estimate when available. The view box is still computed from the
|
|
46
|
+
* FULL shape set so the diagram does not rescale as it builds (mirrors
|
|
47
|
+
* React / Vue / Angular).
|
|
45
48
|
*/
|
|
46
|
-
export declare function buildSmartArtView(element: SmartArtPptxElement,
|
|
49
|
+
export declare function buildSmartArtView(element: SmartArtPptxElement, animationState?: Pick<ElementAnimationState, 'build' | 'diagramReveal'>): SmartArtView;
|
|
47
50
|
/**
|
|
48
51
|
* One rendered line of a multi-line SVG label. The fallback layout path gets
|
|
49
52
|
* its lines (already positioned, with the anchor and baseline resolved) from
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smartart-view.d.ts","sourceRoot":"","sources":["../../../src/viewer/render/smartart-view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,mBAAmB,EAAiB,MAAM,kBAAkB,CAAC;AAC7F,OAAO,KAAK,EACX,
|
|
1
|
+
{"version":3,"file":"smartart-view.d.ts","sourceRoot":"","sources":["../../../src/viewer/render/smartart-view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,mBAAmB,EAAiB,MAAM,kBAAkB,CAAC;AAC7F,OAAO,KAAK,EACX,qBAAqB,EACrB,YAAY,EACZ,aAAa,EACb,oBAAoB,EAEpB,WAAW,EACX,MAAM,oBAAoB,CAAC;AAiB5B;;;;;GAKG;AAEH,8EAA8E;AAC9E,eAAO,MAAM,kBAAkB,oEAAoE,CAAC;AAEpG,+EAA+E;AAC/E,MAAM,MAAM,YAAY,GACrB;IACA,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,sBAAsB,EAAE,CAAC;IACjC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,GACD;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,gBAAgB,CAAA;CAAE,GAC5C;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,CAAC;AAE3B,MAAM,MAAM,sBAAsB,GAAG,aAAa,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAC7F,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,oBAAoB,EAAE,OAAO,CAAC,GAAG;IACpE,KAAK,EAAE,KAAK,CAAC,YAAY,GAAG;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACrE,CAAC;AAMF,0EAA0E;AAC1E,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,mBAAmB,GAAG,MAAM,CAExE;AAED,4EAA4E;AAC5E,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,mBAAmB,GAAG,MAAM,GAAG,SAAS,CAElF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAChC,OAAO,EAAE,mBAAmB,EAC5B,cAAc,CAAC,EAAE,IAAI,CAAC,qBAAqB,EAAE,OAAO,GAAG,eAAe,CAAC,GACrE,YAAY,CAqEd;AAED;;;;;GAKG;AACH,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pptx-svelte-viewer",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"description": "Svelte 5 PowerPoint viewer and editor component: render, edit, present, and export PPTX slides in the browser.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"office",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"html2canvas-pro": "^2.3.2",
|
|
71
71
|
"jspdf": "^4.2.1",
|
|
72
72
|
"jszip": "^3.10.1",
|
|
73
|
-
"pptx-viewer-mcp": "^2.
|
|
73
|
+
"pptx-viewer-mcp": "^2.2.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@ai-sdk/svelte": "^5.0.31",
|