pptx-svelte-viewer 3.2.3 → 3.4.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 +39 -0
- package/dist/{AiChatPanel-ll_EeEu6.js → AiChatPanel-DjHkDmi9.js} +11 -11
- package/dist/{export-DGmRuakg.js → export-Bb3HzTLw.js} +35256 -30910
- package/dist/i18n.js +1 -1
- package/dist/index.d.ts +170 -17
- package/dist/index.js +2 -2
- package/dist/pptx-svelte-viewer.css +1 -1
- package/dist/{translator-Cvwv7iQG.js → translator-vErJ1kUG.js} +48 -5
- package/dist/viewer/ai/ai-panel-controller.svelte.d.ts +2 -8
- package/dist/viewer/ai/ai-panel-controller.svelte.d.ts.map +1 -1
- package/dist/viewer/components/inspector/animation-panel-helpers.d.ts.map +1 -1
- package/dist/viewer/components/props-elements.d.ts +9 -0
- package/dist/viewer/components/props-elements.d.ts.map +1 -1
- package/dist/viewer/components/props-stage.d.ts +2 -0
- package/dist/viewer/components/props-stage.d.ts.map +1 -1
- package/dist/viewer/editor/editor-arrange-ops.d.ts.map +1 -1
- package/dist/viewer/editor/editor-background-controller.d.ts.map +1 -1
- package/dist/viewer/editor/editor-clipboard.d.ts.map +1 -1
- package/dist/viewer/editor/editor-controller-deps.d.ts +2 -5
- package/dist/viewer/editor/editor-controller-deps.d.ts.map +1 -1
- package/dist/viewer/editor/editor-controller-wiring.d.ts +1 -2
- package/dist/viewer/editor/editor-controller-wiring.d.ts.map +1 -1
- package/dist/viewer/editor/editor-controller.svelte.d.ts.map +1 -1
- package/dist/viewer/editor/editor-document-state.d.ts.map +1 -1
- package/dist/viewer/editor/editor-element-controller.d.ts +1 -1
- package/dist/viewer/editor/editor-element-controller.d.ts.map +1 -1
- package/dist/viewer/editor/editor-handle-handlers.d.ts +1 -2
- package/dist/viewer/editor/editor-handle-handlers.d.ts.map +1 -1
- package/dist/viewer/editor/editor-ink-controller.svelte.d.ts.map +1 -1
- package/dist/viewer/editor/editor-insert.d.ts.map +1 -1
- package/dist/viewer/editor/editor-selection-gestures.d.ts +1 -2
- package/dist/viewer/editor/editor-selection-gestures.d.ts.map +1 -1
- package/dist/viewer/editor/editor-state.svelte.d.ts +1 -2
- package/dist/viewer/editor/editor-state.svelte.d.ts.map +1 -1
- package/dist/viewer/editor/editor-transition-controller.d.ts.map +1 -1
- package/dist/viewer/editor/editor-zorder.d.ts +2 -2
- package/dist/viewer/editor/editor-zorder.d.ts.map +1 -1
- package/dist/viewer/editor/index.d.ts +4 -5
- package/dist/viewer/editor/index.d.ts.map +1 -1
- package/dist/viewer/editor/inline-text.d.ts +1 -6
- package/dist/viewer/editor/inline-text.d.ts.map +1 -1
- package/dist/viewer/index.d.ts +233 -53
- package/dist/viewer/index.js +13 -13
- package/dist/viewer/presentation/animation-playback.svelte.d.ts +3 -2
- package/dist/viewer/presentation/animation-playback.svelte.d.ts.map +1 -1
- package/dist/viewer/presentation/presentation-controller.svelte.d.ts +8 -0
- package/dist/viewer/presentation/presentation-controller.svelte.d.ts.map +1 -1
- package/dist/viewer/render/media-view.d.ts +1 -13
- package/dist/viewer/render/media-view.d.ts.map +1 -1
- package/dist/viewer/render/ole-view.d.ts +2 -8
- package/dist/viewer/render/ole-view.d.ts.map +1 -1
- package/dist/viewer/state/create-viewer-state-presentation.svelte.d.ts.map +1 -1
- package/dist/viewer/state/google-webfonts.d.ts +23 -0
- package/dist/viewer/state/google-webfonts.d.ts.map +1 -0
- package/dist/viewer/state/loader-helpers.d.ts.map +1 -1
- package/dist/viewer/state/viewer-effects.svelte.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/viewer/ai/ai-log-export.d.ts +0 -71
- package/dist/viewer/ai/ai-log-export.d.ts.map +0 -1
- package/dist/viewer/ai/focus-targets.d.ts +0 -36
- package/dist/viewer/ai/focus-targets.d.ts.map +0 -1
- package/dist/viewer/editor/editor-geometry.d.ts +0 -29
- package/dist/viewer/editor/editor-geometry.d.ts.map +0 -1
- package/dist/viewer/editor/editor-gestures.d.ts +0 -55
- package/dist/viewer/editor/editor-gestures.d.ts.map +0 -1
- package/dist/viewer/editor/editor-mutations.d.ts +0 -59
- package/dist/viewer/editor/editor-mutations.d.ts.map +0 -1
- package/dist/viewer/presentation/animation-playback-helpers.d.ts +0 -43
- package/dist/viewer/presentation/animation-playback-helpers.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,45 @@ 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.3.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-svelte-viewer@3.3.0) - 2026-09-02
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- **core:** Parse and save bar3D shape, radar style and surface wireframe (by @ChristopherVR) ([1f46205](https://github.com/ChristopherVR/pptx-viewer/commit/1f46205a1f1280df55baf990a3ed496e308233a2))
|
|
15
|
+
- **shared:** Google fonts webfont fallback for referenced families (by @nikko82) ([49571a5](https://github.com/ChristopherVR/pptx-viewer/commit/49571a5d192d54f992dd34cfdf3b60d8780c79ad))
|
|
16
|
+
- **svelte:** Load google-hosted webfonts for missing families (by @nikko82) ([a5f86bc](https://github.com/ChristopherVR/pptx-viewer/commit/a5f86bcedc5d4329f3c8b0472508fc287f40b3fc))
|
|
17
|
+
- **shared:** Morph matching heuristics for media, twins, and group twins (by @nikko82) ([d5ba90b](https://github.com/ChristopherVR/pptx-viewer/commit/d5ba90b2bbc4ed8866e2367bb7751c00a3cc9f8f))
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
- **core:** Close OpenXML round-trip gaps in charts, pictures, tables, text and structure (by @ChristopherVR) ([9780265](https://github.com/ChristopherVR/pptx-viewer/commit/9780265ead99aba7f9e3fde80c0527eaed4f8d17))
|
|
22
|
+
- **shared:** Equation reverse conversion, chart manual layout and editor decision helpers (by @ChristopherVR) ([bffc2b3](https://github.com/ChristopherVR/pptx-viewer/commit/bffc2b380f125787cd39b20096127ab4eb9d6bbf))
|
|
23
|
+
- **shared:** Stop the webfont resolver dropping families the injected stylesheet satisfied (by @ChristopherVR) ([25a9a78](https://github.com/ChristopherVR/pptx-viewer/commit/25a9a781ade7bb3f2dc79847f2ade3284237b7c5))
|
|
24
|
+
- **core:** Write gridline elements on generated chart axes (by @ChristopherVR) ([0d03c1a](https://github.com/ChristopherVR/pptx-viewer/commit/0d03c1a17c29499e234cc7e836a55e2d29bd2716))
|
|
25
|
+
- **shared:** Honour c:majorGridlines when drawing value-axis gridlines (by @ChristopherVR) ([8b9dd88](https://github.com/ChristopherVR/pptx-viewer/commit/8b9dd88cbe32f873ed8246903105aba0a7ad7e3b))
|
|
26
|
+
- **core:** Snapshot baked-in a14 corrections next to the live values (by @ChristopherVR) ([9e6cc01](https://github.com/ChristopherVR/pptx-viewer/commit/9e6cc01181e481d6e3132cc086c6f85c1c80fd44))
|
|
27
|
+
- **shared:** Stop re-applying a14 corrections PowerPoint already baked in (by @ChristopherVR) ([52766e7](https://github.com/ChristopherVR/pptx-viewer/commit/52766e78250805a4a03353dc22b1ed637f0c750f))
|
|
28
|
+
|
|
29
|
+
### Refactor
|
|
30
|
+
|
|
31
|
+
- **shared:** Extract binding-duplicated engines, option lists and parity descriptors (by @ChristopherVR) ([b0acb02](https://github.com/ChristopherVR/pptx-viewer/commit/b0acb02210b17266f44eed013c2d801d3992257e))
|
|
32
|
+
|
|
33
|
+
### Testing
|
|
34
|
+
|
|
35
|
+
- **e2e:** Pin the webfont fallback probe across the five bindings (by @nikko82) ([aabb9dd](https://github.com/ChristopherVR/pptx-viewer/commit/aabb9dd226fc08df63f270aef080936d9f602268))
|
|
36
|
+
|
|
37
|
+
## [3.2.3](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-svelte-viewer@3.2.3) - 2026-09-01
|
|
38
|
+
|
|
39
|
+
### Dependencies
|
|
40
|
+
|
|
41
|
+
- **deps:** Bump @lucide/svelte from 1.37.0 to 1.34.0 ([#192](https://github.com/ChristopherVR/pptx-viewer/issues/192)) (by @dependabot[bot]) ([351c48f](https://github.com/ChristopherVR/pptx-viewer/commit/351c48f954cf88fa2f1c1202bda5083e9f0e5da4))
|
|
42
|
+
|
|
43
|
+
### Chores
|
|
44
|
+
|
|
45
|
+
- **deps-dev:** Bump the minor-and-patch group with 2 updates ([#186](https://github.com/ChristopherVR/pptx-viewer/issues/186)) (by @dependabot[bot]) ([effb251](https://github.com/ChristopherVR/pptx-viewer/commit/effb2510e3a6cf633ceb3dd0c1234bb0998c275c))
|
|
46
|
+
- **deps-dev:** Bump happy-dom from 20.12.0 to 20.11.12 ([#187](https://github.com/ChristopherVR/pptx-viewer/issues/187)) (by @dependabot[bot]) ([f386308](https://github.com/ChristopherVR/pptx-viewer/commit/f386308f2a1fd66c7a080628e4ce91b33247f685))
|
|
47
|
+
- **deps-dev:** Bump rollup from 4.63.1 to 4.63.0 ([#190](https://github.com/ChristopherVR/pptx-viewer/issues/190)) (by @dependabot[bot]) ([8ea2abc](https://github.com/ChristopherVR/pptx-viewer/commit/8ea2abc51966c761fd3cb552201443a4dc04f5b9))
|
|
48
|
+
|
|
10
49
|
## [3.2.2](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-svelte-viewer@3.2.2) - 2026-08-29
|
|
11
50
|
|
|
12
51
|
### Bug Fixes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as ce, C as pe, D as de, E as ve, F as ue, H as A, I as he, L as O, N as $, O as ge, P as ee, R as W, S as _e, T as xe, U as V, V as fe,
|
|
1
|
+
import { B as ce, C as pe, D as de, E as ve, F as ue, H as A, I as he, L as O, N as $, O as ge, P as ee, R as W, S as _e, T as xe, U as V, V as fe, _ as me, b as be, g as ye, h as ke, k as we, v as Ce, w as Me, x as Se, y as Pe, z as Ne } from "./export-Bb3HzTLw.js";
|
|
2
2
|
import "svelte/internal/disclose-version";
|
|
3
3
|
import * as e from "svelte/internal/client";
|
|
4
4
|
import { onMount as qe, untrack as R } from "svelte";
|
|
@@ -33,7 +33,7 @@ function K(a, t) {
|
|
|
33
33
|
function je(a) {
|
|
34
34
|
let t = e.state(e.proxy([]));
|
|
35
35
|
const s = R(() => me({
|
|
36
|
-
deckId:
|
|
36
|
+
deckId: Pe(a.bridge),
|
|
37
37
|
store: a.store,
|
|
38
38
|
getMessages: () => a.getMessages(),
|
|
39
39
|
setMessages: a.setMessages,
|
|
@@ -115,11 +115,11 @@ var Ae = class {
|
|
|
115
115
|
async init() {
|
|
116
116
|
this.initState = "checking", this.initError = void 0;
|
|
117
117
|
try {
|
|
118
|
-
if (!await (this.#t.checkAvailable ??
|
|
118
|
+
if (!await (this.#t.checkAvailable ?? pe)()) {
|
|
119
119
|
this.initState = "unavailable";
|
|
120
120
|
return;
|
|
121
121
|
}
|
|
122
|
-
const a = await (this.#t.createSession ??
|
|
122
|
+
const a = await (this.#t.createSession ?? Ce)(this.#t.bridge, this.#t.config);
|
|
123
123
|
e.set(this.#s, a);
|
|
124
124
|
const { Chat: t } = await import("@ai-sdk/svelte");
|
|
125
125
|
e.set(this.#e, new t({
|
|
@@ -373,7 +373,7 @@ function Je(a, t) {
|
|
|
373
373
|
var Qe = e.from_html('<span><span class="pptx-svelte-ai-focus-chip-label svelte-kjj0i7"> </span></span>'), Ye = e.from_html('<span class="pptx-svelte-ai-focus-pinned svelte-kjj0i7"> </span>'), $e = e.from_html('<button type="button" class="pptx-svelte-ai-focus-merge svelte-kjj0i7"><!> </button>'), Q = e.from_html('<button type="button" class="pptx-svelte-ai-focus-btn svelte-kjj0i7"><!></button>'), et = e.from_html('<div class="pptx-svelte-ai-focus-hint svelte-kjj0i7"><!> <span class="svelte-kjj0i7"> </span> <button type="button" class="pptx-svelte-ai-focus-done svelte-kjj0i7"> </button></div>'), tt = e.from_html('<div class="pptx-svelte-ai-focus svelte-kjj0i7"><div class="pptx-svelte-ai-focus-row svelte-kjj0i7"><span class="pptx-svelte-ai-focus-scope svelte-kjj0i7"> </span> <!> <!> <div class="pptx-svelte-ai-focus-actions svelte-kjj0i7"><!> <button type="button"><!></button> <!></div></div> <!></div>');
|
|
374
374
|
function st(a, t) {
|
|
375
375
|
e.push(t, !0);
|
|
376
|
-
const s = V(), i = e.derived(() =>
|
|
376
|
+
const s = V(), i = e.derived(() => Se(t.targets, t.slides)), r = e.derived(() => Me(t.targets, t.slides));
|
|
377
377
|
var c = tt(), M = e.child(c), f = e.child(M), g = e.child(f, !0);
|
|
378
378
|
e.reset(f);
|
|
379
379
|
var k = e.sibling(f, 2);
|
|
@@ -399,7 +399,7 @@ function st(a, t) {
|
|
|
399
399
|
"aria-hidden": "true"
|
|
400
400
|
});
|
|
401
401
|
var P = e.sibling(S);
|
|
402
|
-
e.reset(o), e.template_effect((j) => e.set_text(P, ` ${j ?? ""}`), [() => s("pptx.ai.mergeSelectedTables")]), e.delegated("click", o, () => t.onsenddirective(
|
|
402
|
+
e.reset(o), e.template_effect((j) => e.set_text(P, ` ${j ?? ""}`), [() => s("pptx.ai.mergeSelectedTables")]), e.delegated("click", o, () => t.onsenddirective(xe(e.get(r).slideIndex, e.get(r).elementIdA, e.get(r).elementIdB))), e.append(n, o);
|
|
403
403
|
};
|
|
404
404
|
e.if(x, (n) => {
|
|
405
405
|
e.get(r) && n(y);
|
|
@@ -499,7 +499,7 @@ function pt(a, t) {
|
|
|
499
499
|
}
|
|
500
500
|
e.user_effect(() => (document.addEventListener("mousedown", c), () => document.removeEventListener("mousedown", c)));
|
|
501
501
|
var M = ct(), f = e.child(M), g = e.child(f), k = e.child(g);
|
|
502
|
-
|
|
502
|
+
ye(k, {
|
|
503
503
|
size: 14,
|
|
504
504
|
"aria-hidden": "true"
|
|
505
505
|
});
|
|
@@ -838,7 +838,7 @@ var jt = e.from_html('<div class="pptx-svelte-ai-tool-error svelte-1878924"> </d
|
|
|
838
838
|
function It(a, t) {
|
|
839
839
|
e.push(t, !0);
|
|
840
840
|
const s = V(), i = {
|
|
841
|
-
view:
|
|
841
|
+
view: ke,
|
|
842
842
|
text: ue,
|
|
843
843
|
shape: Nt,
|
|
844
844
|
theme: St,
|
|
@@ -852,7 +852,7 @@ function It(a, t) {
|
|
|
852
852
|
animation: ft,
|
|
853
853
|
notes: Ne,
|
|
854
854
|
tool: Y
|
|
855
|
-
}, r = e.derived(() => t.part.state === "output-error"), c = e.derived(() => t.part.state === "output-available"), M = e.derived(() => !e.get(r) && !e.get(c)), f = e.derived(() =>
|
|
855
|
+
}, r = e.derived(() => t.part.state === "output-error"), c = e.derived(() => t.part.state === "output-available"), M = e.derived(() => !e.get(r) && !e.get(c)), f = e.derived(() => be(t.part.toolName, t.part.input, e.get(M) ? "present" : "past")), g = e.derived(() => i[e.get(f).icon] ?? Y), k = e.derived(() => ve(t.part.input)), m = e.derived(() => e.get(r) ? s("pptx.ai.toolFailed") : e.get(c) ? s("pptx.ai.toolDone") : s("pptx.ai.toolRunning"));
|
|
856
856
|
var _ = Et(), b = e.child(_), x = e.child(b);
|
|
857
857
|
{
|
|
858
858
|
let d = e.derived(() => e.get(r) ? "pptx-svelte-ai-tool-ic is-error" : "pptx-svelte-ai-tool-ic");
|
|
@@ -915,7 +915,7 @@ function It(a, t) {
|
|
|
915
915
|
var I = e.sibling(E, 2), L = e.child(I);
|
|
916
916
|
e.reset(I), e.reset(T), e.template_effect((H, D) => {
|
|
917
917
|
e.set_text(F, H), e.set_text(L, `${D ?? ""}: ${e.get(k) ?? ""}`);
|
|
918
|
-
}, [() => s("pptx.ai.toolDetails"), () =>
|
|
918
|
+
}, [() => s("pptx.ai.toolDetails"), () => we(t.part.toolName)]), e.append(d, T);
|
|
919
919
|
};
|
|
920
920
|
e.if(q, (d) => {
|
|
921
921
|
e.get(k) && d(h);
|
|
@@ -1005,7 +1005,7 @@ function Bt(a, t) {
|
|
|
1005
1005
|
var Ut = e.from_html('<li class="svelte-15p5728"> </li>'), Ot = e.from_html('<ul class="pptx-svelte-ai-proposal-summary svelte-15p5728"></ul>'), Rt = e.from_html('<div class="pptx-svelte-ai-proposal svelte-15p5728"><div class="pptx-svelte-ai-proposal-tag svelte-15p5728"> </div> <div class="pptx-svelte-ai-proposal-label svelte-15p5728"> </div> <!> <div class="pptx-svelte-ai-proposal-actions svelte-15p5728"><button type="button" class="pptx-svelte-ai-proposal-btn is-accept svelte-15p5728"><!> </button> <button type="button" class="pptx-svelte-ai-proposal-btn is-reject svelte-15p5728"><!> </button></div></div>');
|
|
1006
1006
|
function Wt(a, t) {
|
|
1007
1007
|
e.push(t, !0);
|
|
1008
|
-
const s = V(), i = e.derived(() => t.proposal.summary.map(
|
|
1008
|
+
const s = V(), i = e.derived(() => t.proposal.summary.map(_e));
|
|
1009
1009
|
var r = Rt(), c = e.child(r), M = e.child(c, !0);
|
|
1010
1010
|
e.reset(c);
|
|
1011
1011
|
var f = e.sibling(c, 2), g = e.child(f, !0);
|