pptx-svelte-viewer 2.5.0 → 2.5.2
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 +4 -0
- package/dist/{AiChatPanel-D2xEoaRP.js → AiChatPanel-DV_Xzl4K.js} +1 -1
- package/dist/{export-Doev_dGg.js → export-D_C_PvFa.js} +5 -4
- package/dist/index.js +1 -1
- package/dist/viewer/collab/components/remote-selection.d.ts +2 -0
- package/dist/viewer/collab/components/remote-selection.d.ts.map +1 -1
- package/dist/viewer/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ All notable changes to this project are documented here.
|
|
|
4
4
|
This file is generated from [Conventional Commits](https://www.conventionalcommits.org)
|
|
5
5
|
by [git-cliff](https://git-cliff.org); do not edit it by hand.
|
|
6
6
|
|
|
7
|
+
## [2.5.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-svelte-viewer@2.5.1) - 2026-07-26
|
|
8
|
+
|
|
9
|
+
## [2.5.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-svelte-viewer@2.5.0) - 2026-07-26
|
|
10
|
+
|
|
7
11
|
## [2.4.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-svelte-viewer@2.4.0) - 2026-07-25
|
|
8
12
|
|
|
9
13
|
### Bug Fixes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as te, F as se, G as ae, J as ie, K as re, N as Q, P as le, Q as ne, V as oe, X as pe, Y as ce, Z as de, ct as B, et as ve, i as ue, n as he, nt as Y, q as ge, r as _e, rt as N, tt as G } from "./export-
|
|
1
|
+
import { $ as te, F as se, G as ae, J as ie, K as re, N as Q, P as le, Q as ne, V as oe, X as pe, Y as ce, Z as de, ct as B, et as ve, i as ue, n as he, nt as Y, q as ge, r as _e, rt as N, tt as G } from "./export-D_C_PvFa.js";
|
|
2
2
|
import "svelte/internal/disclose-version";
|
|
3
3
|
import * as e from "svelte/internal/client";
|
|
4
4
|
import { onMount as fe, untrack as O } from "svelte";
|
|
@@ -106238,7 +106238,7 @@ function M6e(t, e) {
|
|
|
106238
106238
|
var A6e = r.from_html('<button type="button"></button>'), J2 = r.from_html('<p class="svelte-dgy1er"> </p>'), I6e = r.from_html('<p class="notice svelte-dgy1er"> </p>'), E6e = r.from_html('<p class="svelte-dgy1er"> </p> <button type="button" class="primary svelte-dgy1er"> </button>', 1), L6e = r.from_html('<section class="card svelte-dgy1er"><h2 class="svelte-dgy1er"> </h2> <!></section>'), R6e = r.from_html('<div class="pptx-svelte-account svelte-dgy1er"><section class="card svelte-dgy1er"><h2 class="svelte-dgy1er"> </h2> <div class="profile-row svelte-dgy1er"><span class="avatar svelte-dgy1er"> </span> <label class="name-field svelte-dgy1er"><span> </span> <input type="text" class="svelte-dgy1er"/></label></div> <span class="swatches-label svelte-dgy1er"> </span> <div class="swatch-row svelte-dgy1er" role="group"></div></section> <section class="card svelte-dgy1er"><h2 class="svelte-dgy1er"> </h2> <!> <button type="button" class="secondary svelte-dgy1er"> </button> <!> <p class="muted svelte-dgy1er"> </p></section> <section class="card svelte-dgy1er"><h2 class="svelte-dgy1er"> </h2> <p class="svelte-dgy1er">pptx-svelte-viewer</p> <p class="muted svelte-dgy1er"> </p></section> <!></div>');
|
|
106239
106239
|
function F6e(t, e) {
|
|
106240
106240
|
r.push(e, !0);
|
|
106241
|
-
const n = me(), i = "2.
|
|
106241
|
+
const n = me(), i = "2.5.1";
|
|
106242
106242
|
let a = r.state(r.proxy(Gc().profile ?? { ...AT })), o = r.state(void 0), s = r.state(!1);
|
|
106243
106243
|
async function l() {
|
|
106244
106244
|
r.set(o, await Rbe(), !0);
|
|
@@ -109931,7 +109931,7 @@ function c7e(t, e) {
|
|
|
109931
109931
|
r.reset(l);
|
|
109932
109932
|
var d = r.sibling(l, 2), u = r.child(d, !0);
|
|
109933
109933
|
r.reset(d), r.reset(s), r.template_effect((p, h) => {
|
|
109934
|
-
r.set_attribute(s, "data-client-id", r.get(o).clientId), r.set_style(s, p), r.set_attribute(c, "fill", r.get(o).color), r.set_style(d, `background-color: ${r.get(o).color}`), r.set_text(u, h);
|
|
109934
|
+
r.set_attribute(s, "data-client-id", r.get(o).clientId), r.set_attribute(s, "data-pptx-remote-cursor", r.get(o).clientId), r.set_style(s, p), r.set_attribute(c, "fill", r.get(o).color), r.set_style(d, `background-color: ${r.get(o).color}`), r.set_text(u, h);
|
|
109935
109935
|
}, [() => `transform: ${n(r.get(o))}`, () => yL(r.get(o).userName)]), r.append(a, s);
|
|
109936
109936
|
}), r.reset(i), r.append(t, i), r.pop();
|
|
109937
109937
|
}
|
|
@@ -109944,6 +109944,7 @@ function d7e(t, e, n) {
|
|
|
109944
109944
|
const s = i.get(o.selectedElementId);
|
|
109945
109945
|
s && a.push({
|
|
109946
109946
|
key: `${o.clientId}-${s.id}`,
|
|
109947
|
+
elementId: s.id,
|
|
109947
109948
|
userName: o.userName,
|
|
109948
109949
|
color: o.userColor,
|
|
109949
109950
|
x: s.x,
|
|
@@ -109970,7 +109971,7 @@ function h7e(t, e) {
|
|
|
109970
109971
|
r.each(a, 21, () => r.get(n), (o) => o.key, (o, s) => {
|
|
109971
109972
|
var l = u7e(), c = r.child(l), d = r.child(c, !0);
|
|
109972
109973
|
r.reset(c), r.reset(l), r.template_effect((u, p) => {
|
|
109973
|
-
r.set_attribute(l, "data-selection-key", r.get(s).key), r.set_style(l, u), r.set_style(c, `background-color: ${r.get(s).color}`), r.set_text(d, p);
|
|
109974
|
+
r.set_attribute(l, "data-selection-key", r.get(s).key), r.set_attribute(l, "data-pptx-remote-selection", r.get(s).elementId), r.set_style(l, u), r.set_style(c, `background-color: ${r.get(s).color}`), r.set_text(d, p);
|
|
109974
109975
|
}, [() => i(r.get(s)), () => yL(r.get(s).userName)]), r.append(o, l);
|
|
109975
109976
|
}), r.reset(a), r.append(t, a), r.pop();
|
|
109976
109977
|
}
|
|
@@ -114815,7 +114816,7 @@ function $Xe(t, e) {
|
|
|
114815
114816
|
}
|
|
114816
114817
|
var KR = r.sibling(Sx, 2), ZR = (xe) => {
|
|
114817
114818
|
var je = GXe(), Dt = r.child(je);
|
|
114818
|
-
r.await(Dt, () => import("./AiChatPanel-
|
|
114819
|
+
r.await(Dt, () => import("./AiChatPanel-DV_Xzl4K.js"), null, (Yt, Ba) => {
|
|
114819
114820
|
var wl = r.derived(() => {
|
|
114820
114821
|
var { default: $t } = r.get(Ba);
|
|
114821
114822
|
return { AiChatPanel: $t };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as e, Ct as t, S as a, St as o, _t as i, b as r, bt as l, dt as n, ft as S, gt as m, ht as d, lt as v, mt as p, t as g, ut as h, vt as u, w as T, x, xt as C, yt as f } from "./export-
|
|
1
|
+
import { C as e, Ct as t, S as a, St as o, _t as i, b as r, bt as l, dt as n, ft as S, gt as m, ht as d, lt as v, mt as p, t as g, ut as h, vt as u, w as T, x, xt as C, yt as f } from "./export-D_C_PvFa.js";
|
|
2
2
|
import { i as b } from "./translator-DL83W_OP.js";
|
|
3
3
|
import "./i18n.js";
|
|
4
4
|
export {
|
|
@@ -9,6 +9,8 @@ import { SanitizedPresence } from 'pptx-viewer-shared';
|
|
|
9
9
|
export interface RemoteSelectionBox {
|
|
10
10
|
/** Stable key (peer clientId + element id). */
|
|
11
11
|
key: string;
|
|
12
|
+
/** Id of the outlined element (framework-neutral e2e contract). */
|
|
13
|
+
elementId: string;
|
|
12
14
|
/** Peer display name shown in the label chip. */
|
|
13
15
|
userName: string;
|
|
14
16
|
/** Outline + chip colour. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-selection.d.ts","sourceRoot":"","sources":["../../../../src/viewer/collab/components/remote-selection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D;;;;GAIG;AAEH,6EAA6E;AAC7E,MAAM,WAAW,kBAAkB;IAClC,+CAA+C;IAC/C,GAAG,EAAE,MAAM,CAAC;IACZ,iDAAiD;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAC1C,SAAS,EAAE,SAAS,iBAAiB,EAAE,EACvC,QAAQ,EAAE,SAAS,WAAW,EAAE,EAChC,gBAAgB,EAAE,MAAM,GACtB,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"remote-selection.d.ts","sourceRoot":"","sources":["../../../../src/viewer/collab/components/remote-selection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D;;;;GAIG;AAEH,6EAA6E;AAC7E,MAAM,WAAW,kBAAkB;IAClC,+CAA+C;IAC/C,GAAG,EAAE,MAAM,CAAC;IACZ,mEAAmE;IACnE,SAAS,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAC1C,SAAS,EAAE,SAAS,iBAAiB,EAAE,EACvC,QAAQ,EAAE,SAAS,WAAW,EAAE,EAChC,gBAAgB,EAAE,MAAM,GACtB,kBAAkB,EAAE,CA0BtB"}
|
package/dist/viewer/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as M, B as T, C as ce, D as P, E as O, H as R, I as U, L as F, M as H, O as D, R as W, S as de, T as I, U as V, W as N, _, a as ue, at as z, b as Se, c as B, d as ve, f as pe, g as k, h as K, it as L, j as $, k as q, l as fe, m as G, o as Z, ot as j, p as he, pt as J, s as Q, st as X, t as we, u as Y, v as ee, w as me, x as be, y as te, z as re } from "../export-
|
|
1
|
+
import { A as M, B as T, C as ce, D as P, E as O, H as R, I as U, L as F, M as H, O as D, R as W, S as de, T as I, U as V, W as N, _, a as ue, at as z, b as Se, c as B, d as ve, f as pe, g as k, h as K, it as L, j as $, k as q, l as fe, m as G, o as Z, ot as j, p as he, pt as J, s as Q, st as X, t as we, u as Y, v as ee, w as me, x as be, y as te, z as re } from "../export-D_C_PvFa.js";
|
|
2
2
|
import * as e from "svelte/internal/client";
|
|
3
3
|
import { onDestroy as ne, onMount as oe } from "svelte";
|
|
4
4
|
var Ee = H, Ae = P, ye = D;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pptx-svelte-viewer",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.2",
|
|
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.2.4",
|
|
71
71
|
"jspdf": "^4.2.1",
|
|
72
72
|
"jszip": "^3.10.1",
|
|
73
|
-
"pptx-viewer-mcp": "
|
|
73
|
+
"pptx-viewer-mcp": "^2.0.1"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@ai-sdk/svelte": "^5.0.31",
|