pptx-svelte-viewer 2.12.1 → 2.13.1

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/index.d.ts CHANGED
@@ -2485,6 +2485,14 @@ interface PptxChartSeries {
2485
2485
  * `c:dispBlanksAs` (gap / zero / span) using this mask.
2486
2486
  */
2487
2487
  blanks?: boolean[];
2488
+ /**
2489
+ * ECMA-376 number-format code for this series' values, resolved from
2490
+ * `c:ser/c:dLbls/c:numFmt/@formatCode` and falling back to the value cache's
2491
+ * own `c:numCache/c:formatCode` (which is what `@sourceLinked="1"` means).
2492
+ * Data labels render through it: a percentage series caches fractions, so
2493
+ * without the code `0.52` reaches the label where PowerPoint shows `52%`.
2494
+ */
2495
+ numberFormat?: string;
2488
2496
  color?: string;
2489
2497
  trendlines?: PptxChartTrendline[];
2490
2498
  errBars?: PptxChartErrBars[];
@@ -2591,6 +2599,16 @@ interface PptxChartStyle {
2591
2599
  hasTitle?: boolean;
2592
2600
  /** Whether gridlines are visible. */
2593
2601
  hasGridlines?: boolean;
2602
+ /**
2603
+ * Chart-area fill from `c:chartSpace/c:spPr`: a resolved colour, or the
2604
+ * literal `'none'` when the source declares `<a:noFill/>`. Absent when the
2605
+ * chart says nothing, in which case the renderer picks its own default.
2606
+ * PowerPoint decks routinely set `a:noFill` so the chart floats on the slide
2607
+ * background; painting a panel behind it boxes the chart in.
2608
+ */
2609
+ chartAreaFill?: string;
2610
+ /** Plot-area fill from `c:plotArea/c:spPr`. See {@link chartAreaFill}. */
2611
+ plotAreaFill?: string;
2594
2612
  /** Whether data labels are shown. */
2595
2613
  hasDataLabels?: boolean;
2596
2614
  /** Chart-level data-label content/position options (when `hasDataLabels`). */
@@ -3116,6 +3134,20 @@ interface PptxImageProperties {
3116
3134
  cropRight?: number;
3117
3135
  /** Crop from bottom edge as 0..1 fraction (OOXML `a:srcRect/@b`). */
3118
3136
  cropBottom?: number;
3137
+ /**
3138
+ * Stretch target inset from the left frame edge as a signed fraction
3139
+ * (OOXML `a:stretch/a:fillRect/@l`). Unlike `cropLeft` (which selects a
3140
+ * region of the SOURCE bitmap), a fill-rect selects the region of the
3141
+ * FRAME the whole image is stretched into; negative values push the
3142
+ * image beyond the frame edge, and the overflow is clipped.
3143
+ */
3144
+ fillRectLeft?: number;
3145
+ /** Stretch target inset from the top frame edge (`a:fillRect/@t`). */
3146
+ fillRectTop?: number;
3147
+ /** Stretch target inset from the right frame edge (`a:fillRect/@r`). */
3148
+ fillRectRight?: number;
3149
+ /** Stretch target inset from the bottom frame edge (`a:fillRect/@b`). */
3150
+ fillRectBottom?: number;
3119
3151
  /** Image tiling offset X in px. */
3120
3152
  tileOffsetX?: number;
3121
3153
  /** Image tiling offset Y in px. */
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as e, G as a, H as o, J as t, K as i, Q as r, U as l, V as n, W as m, X as S, Y as d, Z as p, a as v, c as g, l as h, o as T, q as u, s as x, t as A, z as f } from "./export-DpdIHj93.js";
1
+ import { B as e, G as a, H as o, J as t, K as i, Q as r, U as l, V as n, W as m, X as S, Y as d, Z as p, a as v, c as g, l as h, o as T, q as u, s as x, t as A, z as f } from "./export-DzDS_XYb.js";
2
2
  import { i as P } from "./translator-DqUAMimH.js";
3
3
  import "./i18n.js";
4
4
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"chat.svelte.d.ts","sourceRoot":"","sources":["../../../src/viewer/ai/chat.svelte.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAErC,OAAO,KAAK,EACX,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,MAAM,uBAAuB,CAAC;AAE/B,6CAA6C;AAC7C,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,aAAa,GAAG,OAAO,GAAG,OAAO,CAAC;AAkB7E,oEAAo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I;IAK/B,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAKhC,kBAAkB,IAAI,IAAI;CAI1B"}
@@ -2486,6 +2486,14 @@ interface PptxChartSeries {
2486
2486
  * `c:dispBlanksAs` (gap / zero / span) using this mask.
2487
2487
  */
2488
2488
  blanks?: boolean[];
2489
+ /**
2490
+ * ECMA-376 number-format code for this series' values, resolved from
2491
+ * `c:ser/c:dLbls/c:numFmt/@formatCode` and falling back to the value cache's
2492
+ * own `c:numCache/c:formatCode` (which is what `@sourceLinked="1"` means).
2493
+ * Data labels render through it: a percentage series caches fractions, so
2494
+ * without the code `0.52` reaches the label where PowerPoint shows `52%`.
2495
+ */
2496
+ numberFormat?: string;
2489
2497
  color?: string;
2490
2498
  trendlines?: PptxChartTrendline[];
2491
2499
  errBars?: PptxChartErrBars[];
@@ -2592,6 +2600,16 @@ interface PptxChartStyle {
2592
2600
  hasTitle?: boolean;
2593
2601
  /** Whether gridlines are visible. */
2594
2602
  hasGridlines?: boolean;
2603
+ /**
2604
+ * Chart-area fill from `c:chartSpace/c:spPr`: a resolved colour, or the
2605
+ * literal `'none'` when the source declares `<a:noFill/>`. Absent when the
2606
+ * chart says nothing, in which case the renderer picks its own default.
2607
+ * PowerPoint decks routinely set `a:noFill` so the chart floats on the slide
2608
+ * background; painting a panel behind it boxes the chart in.
2609
+ */
2610
+ chartAreaFill?: string;
2611
+ /** Plot-area fill from `c:plotArea/c:spPr`. See {@link chartAreaFill}. */
2612
+ plotAreaFill?: string;
2595
2613
  /** Whether data labels are shown. */
2596
2614
  hasDataLabels?: boolean;
2597
2615
  /** Chart-level data-label content/position options (when `hasDataLabels`). */
@@ -3117,6 +3135,20 @@ interface PptxImageProperties {
3117
3135
  cropRight?: number;
3118
3136
  /** Crop from bottom edge as 0..1 fraction (OOXML `a:srcRect/@b`). */
3119
3137
  cropBottom?: number;
3138
+ /**
3139
+ * Stretch target inset from the left frame edge as a signed fraction
3140
+ * (OOXML `a:stretch/a:fillRect/@l`). Unlike `cropLeft` (which selects a
3141
+ * region of the SOURCE bitmap), a fill-rect selects the region of the
3142
+ * FRAME the whole image is stretched into; negative values push the
3143
+ * image beyond the frame edge, and the overflow is clipped.
3144
+ */
3145
+ fillRectLeft?: number;
3146
+ /** Stretch target inset from the top frame edge (`a:fillRect/@t`). */
3147
+ fillRectTop?: number;
3148
+ /** Stretch target inset from the right frame edge (`a:fillRect/@r`). */
3149
+ fillRectRight?: number;
3150
+ /** Stretch target inset from the bottom frame edge (`a:fillRect/@b`). */
3151
+ fillRectBottom?: number;
3120
3152
  /** Image tiling offset X in px. */
3121
3153
  tileOffsetX?: number;
3122
3154
  /** Image tiling offset Y in px. */
@@ -1,4 +1,4 @@
1
- import { $ as s, D as e, O as a, a as i, c as t, d as l, et as S, f as n, g as v, i as d, k as o, l as b, n as g, o as p, r as c, s as x, t as w, u as T } from "../export-DpdIHj93.js";
1
+ import { $ as s, D as e, O as a, a as i, c as t, d as l, et as S, f as n, g as v, i as d, k as o, l as b, n as g, o as p, r as c, s as x, t as w, u as T } from "../export-DzDS_XYb.js";
2
2
  var m = o, P = a, V = e;
3
3
  export {
4
4
  w as PowerPointViewer,
@@ -33,4 +33,23 @@ export interface SlideAutoAdvanceInput {
33
33
  * mode, on the end-of-show screen, or in manual-advance mode.
34
34
  */
35
35
  export declare function resolveSlideAutoAdvanceMs(input: SlideAutoAdvanceInput): number | undefined;
36
+ /**
37
+ * The show's timed auto-advance, as an object so it can be cancelled and
38
+ * re-armed from OUTSIDE the `$effect` that schedules it: the presentation
39
+ * visibility handler cancels the pending tick while the tab is hidden (the
40
+ * deck must not run on unseen) and re-arms the current slide's full delay once
41
+ * the tab is visible again. Pure timers (no runes), unit-testable on its own;
42
+ * `presentation-effects` owns the reactive scheduling.
43
+ */
44
+ export declare class ShowAutoAdvanceTimer {
45
+ #private;
46
+ private readonly advance;
47
+ constructor(advance: () => void);
48
+ /** Adopt the current slide's resolved delay and (re)arm from scratch. */
49
+ schedule(delayMs: number | undefined): void;
50
+ /** (Re)start the pending tick for the last scheduled delay. */
51
+ arm(): void;
52
+ /** Cancel the pending tick without forgetting the scheduled delay. */
53
+ cancel(): void;
54
+ }
36
55
  //# sourceMappingURL=presentation-auto-advance.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"presentation-auto-advance.d.ts","sourceRoot":"","sources":["../../../src/viewer/presentation/presentation-auto-advance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGlD;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,qBAAqB;IACrC,2EAA2E;IAC3E,UAAU,EAAE,OAAO,CAAC;IACpB,qCAAqC;IACrC,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;IAC7B;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB,6DAA6D;IAC7D,SAAS,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,qBAAqB,GAAG,MAAM,GAAG,SAAS,CAK1F"}
1
+ {"version":3,"file":"presentation-auto-advance.d.ts","sourceRoot":"","sources":["../../../src/viewer/presentation/presentation-auto-advance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGlD;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,qBAAqB;IACrC,2EAA2E;IAC3E,UAAU,EAAE,OAAO,CAAC;IACpB,qCAAqC;IACrC,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;IAC7B;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB,6DAA6D;IAC7D,SAAS,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,qBAAqB,GAAG,MAAM,GAAG,SAAS,CAK1F;AAED;;;;;;;GAOG;AACH,qBAAa,oBAAoB;;IAIpB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,MAAM,IAAI;IAEhD,yEAAyE;IACzE,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAK3C,+DAA+D;IAC/D,GAAG,IAAI,IAAI;IAaX,sEAAsE;IACtE,MAAM,IAAI,IAAI;CAMd"}
@@ -1 +1 @@
1
- {"version":3,"file":"presentation-controller.svelte.d.ts","sourceRoot":"","sources":["../../../src/viewer/presentation/presentation-controller.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAWvE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEhE,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAGhE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,eAAe;IAC/B,iEAAiE;IACjE,QAAQ,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC,gEAAgE;IAChE,QAAQ,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC,6EAA6E;IAC7E,UAAU,EAAE,mBAAmB,CAAC;CAChC;AAED,MAAM,WAAW,0BAA0B;IAC1C,+DAA+D;IAC/D,SAAS,IAAI,SAAS,EAAE,CAAC;IACzB,wCAAwC;IACxC,eAAe,IAAI,MAAM,CAAC;IAC1B,wEAAwE;IACxE,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,wDAAwD;IACxD,oBAAoB,CAAC,IAAI,OAAO,GAAG,SAAS,CAAC;IAC7C,4EAA4E;IAC5E,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,2EAA2E;IAC3E,YAAY,CAAC,IAAI,WAAW,GAAG,IAAI,CAAC;IACpC,oDAAoD;IACpD,IAAI,CAAC,IAAI,IAAI,CAAC;IACd,0EAA0E;IAC1E,oBAAoB,C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AA0E;IAC1E,IAAI,IAAI,IAAI;IAOZ;;;OAGG;IACH,aAAa,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;IAe7D,8DAA8D;IAC9D,aAAa,IAAI,IAAI;CAGrB"}
1
+ {"version":3,"file":"presentation-controller.svelte.d.ts","sourceRoot":"","sources":["../../../src/viewer/presentation/presentation-controller.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAYvE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEhE,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAGhE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,eAAe;IAC/B,iEAAiE;IACjE,QAAQ,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC,gEAAgE;IAChE,QAAQ,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC,6EAA6E;IAC7E,UAAU,EAAE,mBAAmB,CAAC;CAChC;AAED,MAAM,WAAW,0BAA0B;IAC1C,+DAA+D;IAC/D,SAAS,IAAI,SAAS,EAAE,CAAC;IACzB,wCAAwC;IACxC,eAAe,IAAI,MAAM,CAAC;IAC1B,wEAAwE;IACxE,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,wDAAwD;IACxD,oBAAoB,CAAC,IAAI,OAAO,GAAG,SAAS,CAAC;IAC7C,4EAA4E;IAC5E,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,2EAA2E;IAC3E,YAAY,CAAC,IAAI,WAAW,GAAG,IAAI,CAAC;IACpC,oDAAoD;IACpD,IAAI,CAAC,IAAI,IAAI,CAAC;IACd,0EAA0E;IAC1E,oBAAoB,CAAC,IAAI,OAAO,GAAG,SAAS,CAAC;IAC7C;;;OAGG;IACH,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a,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;IAe7D,8DAA8D;IAC9D,aAAa,IAAI,IAAI;CAGrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"presentation-effects.svelte.d.ts","sourceRoot":"","sources":["../../../src/viewer/presentation/presentation-effects.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAOlD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAG/E;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,uBAAuB;IACvC,UAAU,EAAE,sBAAsB,CAAC;IACnC,sEAAsE;IACtE,aAAa,IAAI,OAAO,CAAC;IACzB,wCAAwC;IACxC,eAAe,IAAI,MAAM,CAAC;IAC1B,+EAA+E;IAC/E,cAAc,IAAI,SAAS,GAAG,SAAS,CAAC;IACxC,wEAAwE;IACxE,YAAY,IAAI,WAAW,GAAG,IAAI,CAAC;IACnC;;;;OAIG;IACH,aAAa,CAAC,IAAI,OAAO,CAAC;CAC1B;AAID,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,uBAAuB,GAAG,IAAI,CA4F1E"}
1
+ {"version":3,"file":"presentation-effects.svelte.d.ts","sourceRoot":"","sources":["../../../src/viewer/presentation/presentation-effects.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAQlD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAG/E;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,uBAAuB;IACvC,UAAU,EAAE,sBAAsB,CAAC;IACnC,sEAAsE;IACtE,aAAa,IAAI,OAAO,CAAC;IACzB,wCAAwC;IACxC,eAAe,IAAI,MAAM,CAAC;IAC1B,+EAA+E;IAC/E,cAAc,IAAI,SAAS,GAAG,SAAS,CAAC;IACxC,wEAAwE;IACxE,YAAY,IAAI,WAAW,GAAG,IAAI,CAAC;IACnC;;;;OAIG;IACH,aAAa,CAAC,IAAI,OAAO,CAAC;CAC1B;AAID,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,uBAAuB,GAAG,IAAI,CA8G1E"}
@@ -12,7 +12,7 @@ export { buildSmartArtView, SMARTART_CONNECTOR_STROKE, SMARTART_SVG_STYLE, smart
12
12
  export type { SmartArtView, SvgTextLine } from './smartart-view';
13
13
  export { buildInkStrokes, inkViewBox } from './ink-view';
14
14
  export type { InkStrokeView } from './ink-view';
15
- export { resolveMediaView } from './media-view';
15
+ export { registerCrossSlideAudio, resolveMediaView } from './media-view';
16
16
  export type { MediaView } from './media-view';
17
17
  export { buildOleView, getOleIconShapes } from './ole-view';
18
18
  export type { OleIconShape, OleView } from './ole-view';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/viewer/render/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAChG,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EACN,iBAAiB,EACjB,yBAAyB,EACzB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,GACZ,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACzD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,gBAAgB,E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B,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACzE,YAAY,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC5D,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACjF,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -14,4 +14,17 @@ export interface MediaView {
14
14
  }
15
15
  /** Resolve the playable and poster sources for a media element. */
16
16
  export declare function resolveMediaView(element: MediaPptxElement, mediaDataUrls: Map<string, string>): MediaView;
17
+ /**
18
+ * Register a `playAcrossSlides` audio element with the shared persistent-audio
19
+ * manager, using the same resolved source, loop, volume and trim start the
20
+ * slide-local element would have used. PowerPoint keeps such background audio
21
+ * playing when the show advances, but the slide-local `<audio>` dies with its
22
+ * slide's DOM; the manager's hidden document-level element survives it.
23
+ *
24
+ * Returns true when the persistent element owns playback, in which case the
25
+ * slide-local media node must stay silent or the track doubles. Idempotent per
26
+ * element id (the manager no-ops a re-register), so re-entering the owning
27
+ * slide does not restart the track.
28
+ */
29
+ export declare function registerCrossSlideAudio(element: MediaPptxElement, src: string | undefined): boolean;
17
30
  //# sourceMappingURL=media-view.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"media-view.d.ts","sourceRoot":"","sources":["../../../src/viewer/render/media-view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGzD;;;;;;GAMG;AACH,MAAM,WAAW,SAAS;IACzB,uDAAuD;IACvD,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,qDAAqD;IACrD,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B;AAED,mEAAmE;AACnE,wBAAgB,gBAAgB,CAC/B,OAAO,EAAE,gBAAgB,EACzB,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAChC,SAAS,CAMX"}
1
+ {"version":3,"file":"media-view.d.ts","sourceRoot":"","sources":["../../../src/viewer/render/media-view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGzD;;;;;;GAMG;AACH,MAAM,WAAW,SAAS;IACzB,uDAAuD;IACvD,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,qDAAqD;IACrD,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B;AAED,mEAAmE;AACnE,wBAAgB,gBAAgB,CAC/B,OAAO,EAAE,gBAAgB,EACzB,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAChC,SAAS,CAMX;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CACtC,OAAO,EAAE,gBAAgB,EACzB,GAAG,EAAE,MAAM,GAAG,SAAS,GACrB,OAAO,CAcT"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-svelte-viewer",
3
- "version": "2.12.1",
3
+ "version": "2.13.1",
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,7 +65,7 @@
65
65
  "pack": "bun run build && bun pm pack"
66
66
  },
67
67
  "dependencies": {
68
- "@lucide/svelte": "^1.27.0",
68
+ "@lucide/svelte": "^1.28.0",
69
69
  "fast-xml-parser": "^5.10.1",
70
70
  "html2canvas-pro": "^2.3.2",
71
71
  "jspdf": "^4.2.1",
@@ -83,7 +83,7 @@
83
83
  "svelte": "^5.56.6",
84
84
  "svelte-check": "^4.7.3",
85
85
  "typescript": "6.0.3",
86
- "vite": "^8.1.5",
86
+ "vite": "^8.2.0",
87
87
  "vite-plugin-dts": "^5.0.3",
88
88
  "vitest": "^4.1.10",
89
89
  "y-webrtc": "^10.3.0",