pptx-svelte-viewer 2.5.2 → 2.6.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 +18 -0
- package/dist/{AiChatPanel-DV_Xzl4K.js → AiChatPanel-BV_qenGD.js} +1 -1
- package/dist/{export-D_C_PvFa.js → export-MFtOAwV3.js} +16452 -15726
- package/dist/index.d.ts +15 -0
- package/dist/index.js +1 -1
- package/dist/viewer/index.d.ts +15 -0
- package/dist/viewer/index.js +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -6049,6 +6049,14 @@ type PptxTransitionSpeed = 'slow' | 'med' | 'fast';
|
|
|
6049
6049
|
* // => { type: "fade", durationMs: 700, advanceOnClick: true, advanceAfterMs: 5000 }
|
|
6050
6050
|
* ```
|
|
6051
6051
|
*/
|
|
6052
|
+
/**
|
|
6053
|
+
* Morph granularity (`<p159:morph @option>`).
|
|
6054
|
+
*
|
|
6055
|
+
* - `byObject` - match whole shapes (PowerPoint's default)
|
|
6056
|
+
* - `byWord` - additionally morph text word by word
|
|
6057
|
+
* - `byChar` - additionally morph text character by character
|
|
6058
|
+
*/
|
|
6059
|
+
type PptxMorphOption = 'byObject' | 'byWord' | 'byChar';
|
|
6052
6060
|
interface PptxSlideTransition {
|
|
6053
6061
|
type: PptxTransitionType;
|
|
6054
6062
|
/** Schema-defined transition speed. Defaults to `fast` when omitted. */
|
|
@@ -6065,6 +6073,13 @@ interface PptxSlideTransition {
|
|
|
6065
6073
|
thruBlk?: boolean;
|
|
6066
6074
|
/** Split orientation (horz/vert) parsed from `@_orient`. */
|
|
6067
6075
|
orient?: PptxSplitOrientation;
|
|
6076
|
+
/**
|
|
6077
|
+
* Morph granularity from `<p159:morph @option>`: how finely PowerPoint
|
|
6078
|
+
* matches content between the two slides. Only meaningful when
|
|
6079
|
+
* {@link type} is `morph`; defaults to `byObject` when the attribute is
|
|
6080
|
+
* absent, matching PowerPoint's own default.
|
|
6081
|
+
*/
|
|
6082
|
+
morphOption?: PptxMorphOption;
|
|
6068
6083
|
/** Relationship ID of transition sound from `p:sndAc/p:stSnd/@r:embed` when present. */
|
|
6069
6084
|
soundRId?: string;
|
|
6070
6085
|
/** Embedded WAV display name from `p:stSnd/p:snd/@name`. */
|
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-MFtOAwV3.js";
|
|
2
2
|
import { i as b } from "./translator-DL83W_OP.js";
|
|
3
3
|
import "./i18n.js";
|
|
4
4
|
export {
|
package/dist/viewer/index.d.ts
CHANGED
|
@@ -6060,6 +6060,14 @@ type PptxTransitionSpeed = 'slow' | 'med' | 'fast';
|
|
|
6060
6060
|
* // => { type: "fade", durationMs: 700, advanceOnClick: true, advanceAfterMs: 5000 }
|
|
6061
6061
|
* ```
|
|
6062
6062
|
*/
|
|
6063
|
+
/**
|
|
6064
|
+
* Morph granularity (`<p159:morph @option>`).
|
|
6065
|
+
*
|
|
6066
|
+
* - `byObject` - match whole shapes (PowerPoint's default)
|
|
6067
|
+
* - `byWord` - additionally morph text word by word
|
|
6068
|
+
* - `byChar` - additionally morph text character by character
|
|
6069
|
+
*/
|
|
6070
|
+
type PptxMorphOption = 'byObject' | 'byWord' | 'byChar';
|
|
6063
6071
|
interface PptxSlideTransition {
|
|
6064
6072
|
type: PptxTransitionType;
|
|
6065
6073
|
/** Schema-defined transition speed. Defaults to `fast` when omitted. */
|
|
@@ -6076,6 +6084,13 @@ interface PptxSlideTransition {
|
|
|
6076
6084
|
thruBlk?: boolean;
|
|
6077
6085
|
/** Split orientation (horz/vert) parsed from `@_orient`. */
|
|
6078
6086
|
orient?: PptxSplitOrientation;
|
|
6087
|
+
/**
|
|
6088
|
+
* Morph granularity from `<p159:morph @option>`: how finely PowerPoint
|
|
6089
|
+
* matches content between the two slides. Only meaningful when
|
|
6090
|
+
* {@link type} is `morph`; defaults to `byObject` when the attribute is
|
|
6091
|
+
* absent, matching PowerPoint's own default.
|
|
6092
|
+
*/
|
|
6093
|
+
morphOption?: PptxMorphOption;
|
|
6079
6094
|
/** Relationship ID of transition sound from `p:sndAc/p:stSnd/@r:embed` when present. */
|
|
6080
6095
|
soundRId?: string;
|
|
6081
6096
|
/** Embedded WAV display name from `p:stSnd/p:snd/@name`. */
|
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-MFtOAwV3.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.
|
|
3
|
+
"version": "2.6.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",
|
|
@@ -65,12 +65,12 @@
|
|
|
65
65
|
"pack": "bun run build && bun pm pack"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@lucide/svelte": "^1.
|
|
68
|
+
"@lucide/svelte": "^1.27.0",
|
|
69
69
|
"fast-xml-parser": "^5.10.1",
|
|
70
|
-
"html2canvas-pro": "^2.2
|
|
70
|
+
"html2canvas-pro": "^2.3.2",
|
|
71
71
|
"jspdf": "^4.2.1",
|
|
72
72
|
"jszip": "^3.10.1",
|
|
73
|
-
"pptx-viewer-mcp": "^2.0.
|
|
73
|
+
"pptx-viewer-mcp": "^2.0.2"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@ai-sdk/svelte": "^5.0.31",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@sveltejs/vite-plugin-svelte": "^7.2.0",
|
|
79
79
|
"ai": ">=6 <8",
|
|
80
80
|
"happy-dom": "^20.11.1",
|
|
81
|
-
"rollup": "^4.62.
|
|
81
|
+
"rollup": "^4.62.3",
|
|
82
82
|
"rollup-plugin-dts": "^6.4.1",
|
|
83
83
|
"svelte": "^5.56.6",
|
|
84
84
|
"svelte-check": "^4.7.3",
|