pptx-svelte-viewer 4.26.0 → 4.29.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 CHANGED
@@ -7,6 +7,87 @@ A release listed with no entries carried no Conventional Commit in this package'
7
7
  scope: scripts/release-plan.mjs releases whenever any published file changes, not only on
8
8
  conventional commits.
9
9
 
10
+ ## [4.29.0](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-svelte-viewer@4.29.0) - 2026-10-08
11
+
12
+ ### Features
13
+
14
+ - **xlsx:** Render imported manual legend layouts ([5173750](https://github.com/ChristopherVR/ooxml/commit/5173750a97a560e50d408d3f2f39df6d162d78d5))
15
+
16
+ ## [4.28.0](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-svelte-viewer@4.28.0) - 2026-10-07
17
+
18
+ ### Features
19
+
20
+ - **xlsx:** Author chart series gradients with shared controls ([a932dbd](https://github.com/ChristopherVR/ooxml/commit/a932dbd724eb5bcf6f34473bd5e6f1fc80c07849))
21
+ - **xlsx:** Edit gradient stop brightness with shared color logic ([a49baa4](https://github.com/ChristopherVR/ooxml/commit/a49baa4d275182dd89bb3bd61fd5b7c9e2e719db))
22
+ - **xlsx:** Add native named gradient preset gallery ([47ec692](https://github.com/ChristopherVR/ooxml/commit/47ec69208803df71d035ba191653134ec475ff26))
23
+ - **xlsx:** Add rectangular gradient geometry controls ([e10c21a](https://github.com/ChristopherVR/ooxml/commit/e10c21a08bf6fdc3238504d7434db3f0b2a8b68f))
24
+ - **xlsx:** Author radial and path fills on chart series ([2d3652a](https://github.com/ChristopherVR/ooxml/commit/2d3652ad10b2422302dbe457bb6899f2e56cb7bb))
25
+ - **xlsx:** Format chart and plot background fills ([9237f7f](https://github.com/ChristopherVR/ooxml/commit/9237f7f2ec5851088a28d2af5ca82d02806f5438))
26
+ - **visio:** Rotate shapes with shared pointer geometry ([407fa61](https://github.com/ChristopherVR/ooxml/commit/407fa614c7f919052d44d9e31f7abfbcfe6df50d))
27
+ - **xlsx:** Render and preserve mixed chart title text ([4f3f87e](https://github.com/ChristopherVR/ooxml/commit/4f3f87ea6eff2802393f24448a1b48931282d012))
28
+ - **xlsx:** Render and preserve chart title paragraph spacing ([4f0d619](https://github.com/ChristopherVR/ooxml/commit/4f0d6198d90ab3befbfa6b9806965f01492bce45))
29
+ - **xlsx:** Wrap chart titles with shared text flow ([14a33ed](https://github.com/ChristopherVR/ooxml/commit/14a33ed2ee58f8469e5d24a0a36923a3922f23c4))
30
+
31
+ ### Bug Fixes
32
+
33
+ - **chart:** Match native scaled linear gradient paint ([8bd1171](https://github.com/ChristopherVR/ooxml/commit/8bd1171809210e886f9a459a5d634b2109ad06e9))
34
+ - **chart:** Paint native rectangular path gradients ([af81015](https://github.com/ChristopherVR/ooxml/commit/af81015bca6823dc505c26c006b2a99eb2e85c8f))
35
+ - **xlsx:** Paint native circular chart backgrounds ([e2bddbf](https://github.com/ChristopherVR/ooxml/commit/e2bddbfdafdfe31792ec9f9e6e5002350e5d2f4f))
36
+ - **xlsx:** Preserve chart axis visibility on export ([da056bb](https://github.com/ChristopherVR/ooxml/commit/da056bb9ebbc70561d63b1dc9e1f558997c0f946))
37
+ - **xlsx:** Preserve direct chart fills on export ([c3b3491](https://github.com/ChristopherVR/ooxml/commit/c3b3491a109720a2e38599b3b5272e9d84964309))
38
+ - **pptx:** Copy owned package parts when duplicating slides ([6940f93](https://github.com/ChristopherVR/ooxml/commit/6940f936cc1f804a498aea941480357ad4236edb))
39
+ - **pptx:** Generate complete native 3d chart axes ([6de35d9](https://github.com/ChristopherVR/ooxml/commit/6de35d96c68b4c7a6118b7bcb2a9ac27fa7f3ecc))
40
+ - **pptx:** Write text properties before paragraph content ([a5fe6e7](https://github.com/ChristopherVR/ooxml/commit/a5fe6e78fe4889804f4a553dcbf4ce4a1c6c92e4))
41
+ - **xlsx:** Preserve native built-in chart text defaults ([f3b9335](https://github.com/ChristopherVR/ooxml/commit/f3b93358bc0fd123c1eb83cfba9237e183ae31e6))
42
+ - **xlsx:** Inherit and preserve chart text formatting ([b292d16](https://github.com/ChristopherVR/ooxml/commit/b292d167b07c6cebaa9168f7a01ab113135d3857))
43
+ - **xlsx:** Align chart title lines with measured font boxes ([8499a58](https://github.com/ChristopherVR/ooxml/commit/8499a584ea11a03cb25517f3d6dad3b16104b375))
44
+ - **pptx:** Project rectangular chart gradients in every binding ([8bc5ee3](https://github.com/ChristopherVR/ooxml/commit/8bc5ee3be9584e37a251ae72701ed9d2d392448f))
45
+ - **ci:** Clear lint errors in chart and drawing checks ([f331e67](https://github.com/ChristopherVR/ooxml/commit/f331e670ca9c52a76e048648e55d0660d925f7c4))
46
+ - **pptx:** Preserve rectangular chart gradient paths ([27c6ddb](https://github.com/ChristopherVR/ooxml/commit/27c6ddbf0b123266a67c794b4bbaa0b7c0d062ef))
47
+
48
+ ### Performance
49
+
50
+ - **pptx:** Share the engine and load metafile conversion lazily ([e00b1d7](https://github.com/ChristopherVR/ooxml/commit/e00b1d748b9adb79dac8579f67db24e75f0a7fe2))
51
+
52
+ ### Testing
53
+
54
+ - **xlsx:** Measure native linear gradient paint profiles ([ccc4ceb](https://github.com/ChristopherVR/ooxml/commit/ccc4cebc6408a47f73e85ce95262ebe61973deda))
55
+
56
+ ## [4.27.0](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-svelte-viewer@4.27.0) - 2026-10-07
57
+
58
+ ### Features
59
+
60
+ - **pptx:** Migrate shared renderer and editing into core and ui ([ba4cd0d](https://github.com/ChristopherVR/ooxml/commit/ba4cd0dc64707ed32d4386c14b80b0ad8a50300a))
61
+ - **pptx:** Move snapshots and cached drawing bounds into core ([f13d837](https://github.com/ChristopherVR/ooxml/commit/f13d83743ce937b5b8c5c66d0abc130d78da8dbb))
62
+ - **chart:** Share Office chart color palettes ([bd436dd](https://github.com/ChristopherVR/ooxml/commit/bd436dd9dc392805f84a2c483c67f09e424b2e5d))
63
+ - **visio:** Preserve page hatch orientation and tile phase ([8b13665](https://github.com/ChristopherVR/ooxml/commit/8b13665ad715f703a983938b47c6b82ba87a6aee))
64
+ - **xlsx:** Add shared Change Colors gallery and native palette edits ([c0e42f0](https://github.com/ChristopherVR/ooxml/commit/c0e42f0b611371ffef7334fa950db5ce9a98cbdd))
65
+ - **chart:** Share native chart style definitions ([f8a6c9e](https://github.com/ChristopherVR/ooxml/commit/f8a6c9eecc12432d91de025b355f8ab1e1e1a673))
66
+ - **xlsx:** Render imported native chart appearance ([c14f42d](https://github.com/ChristopherVR/ooxml/commit/c14f42d99db1aad93ff522a4436aab29606d52d6))
67
+ - **xlsx:** Preserve and render native chart series gradients ([50a9288](https://github.com/ChristopherVR/ooxml/commit/50a928804960c1ab373498a78ef3aab66ff5fbca))
68
+ - **xlsx:** Render imported native chart shadows ([ab83de0](https://github.com/ChristopherVR/ooxml/commit/ab83de0bc39002955cf915922d4b027f13da760e))
69
+ - **xlsx:** Honor native chart gap width and overlap ([42b7d63](https://github.com/ChristopherVR/ooxml/commit/42b7d63d9bd025ca0113b6f84c9f22ea37a986ab))
70
+ - **xlsx:** Add solid chart fill transparency controls ([60f5c51](https://github.com/ChristopherVR/ooxml/commit/60f5c51fcc46e8edd48d0a25c9189113d7e799b1))
71
+
72
+ ### Bug Fixes
73
+
74
+ - **pptx:** Retain grid policy until core exports are released ([82e0fd0](https://github.com/ChristopherVR/ooxml/commit/82e0fd07dddee8e06d8576b1ae017fafa939de57))
75
+ - **pptx:** Wrap text in static svg exports ([ece906e](https://github.com/ChristopherVR/ooxml/commit/ece906e50e8e19d41b062453ed0f898ea18abf77))
76
+ - **ci:** Allow migrated UI sources in viewer tests ([e1283a1](https://github.com/ChristopherVR/ooxml/commit/e1283a1ecb7b57db464f4356be2843b242300837))
77
+ - **pptx:** Preserve rich data label formatting when saving ([0cc1c69](https://github.com/ChristopherVR/ooxml/commit/0cc1c694ff9df5c5b88ce165f1d5602e29dd0da0))
78
+ - **pptx:** Finish migrated package dependency wiring ([ab8d12d](https://github.com/ChristopherVR/ooxml/commit/ab8d12dd241c131409a8ddf33548d2ffd92d3fdb))
79
+ - **docx:** Preserve tracked run formatting through text edits ([ecfde3c](https://github.com/ChristopherVR/ooxml/commit/ecfde3c526ce16a41246f1ec26b22fe0a1921463))
80
+ - **pptx:** Preserve combo chart formatting and table subscripts ([7518420](https://github.com/ChristopherVR/ooxml/commit/75184207b96f061a557f675ef061c4c9a838393a))
81
+ - **pptx:** Resolve chart text fonts across runs and scripts ([6d00580](https://github.com/ChristopherVR/ooxml/commit/6d00580398c698e2cf4140ed2f709883b29f475d))
82
+ - **pptx:** Include bullet text runs in paragraph strut sizing ([b10c8cd](https://github.com/ChristopherVR/ooxml/commit/b10c8cd89ae3ed4ee87cf1a38f7892928858bac1))
83
+ - **pptx:** Wrap Korean text at word boundaries ([cfa6b1d](https://github.com/ChristopherVR/ooxml/commit/cfa6b1d9d27b43685b6b5e1a6ef7cf7a63a73229))
84
+
85
+ ### Refactor
86
+
87
+ - **pptx:** Move chart grid editing policy into core ([0d8e23f](https://github.com/ChristopherVR/ooxml/commit/0d8e23f8cf62ed11d01d9ab0417df12d23b9b213))
88
+ - **crypto:** Share Office GUID generation ([7d4ceeb](https://github.com/ChristopherVR/ooxml/commit/7d4ceeb07fcad2f55eef2cba73514f01af7cc2f3))
89
+ - Use extensionless relative typescript imports ([ef81f39](https://github.com/ChristopherVR/ooxml/commit/ef81f394cd2f275bcc9db87830db24b0adb2ec8b))
90
+
10
91
  ## [4.26.0](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-svelte-viewer@4.26.0) - 2026-10-07
11
92
 
12
93
  ### Features
@@ -1,8 +1,9 @@
1
- import { E as V } from "./transition-overlay-BkW9yQMT.js";
2
- import { B as ce, C as pe, E as de, F as ve, H as Y, I as U, L as $, P as O, R as ue, S as he, T as _e, U as A, V as ge, _ as xe, b as fe, g as me, h as be, m as ye, v as ke, w as we, x as Ce, y as Me, z as ze } from "./export-iyQ8bG1f.js";
1
+ import { E as V } from "./transition-overlay-BVOi2jSD.js";
2
+ import { A as ce, C as R, D as pe, E as Y, M as A, O as de, T as O, j as $, k as ve, w as ue } from "./export-xE8Sl42M.js";
3
3
  import "svelte/internal/disclose-version";
4
4
  import * as e from "svelte/internal/client";
5
- import { onMount as Se, untrack as R } from "svelte";
5
+ import { onMount as he, untrack as U } from "svelte";
6
+ import { createAiChatHistoryController as _e, createAiChatSession as ge, deckIdFromBridge as xe, describeToolActivity as fe, focusTargetChips as me, humanizeDiffLine as be, isAiAvailable as ye, isTwoTableFocus as ke, mergeTablesDirective as we, summarizeToolArgs as Ce, toRenderableParts as Me, toolCanvasTarget as ze, toolLabel as Se } from "ooxml-ui/pptx/ai";
6
7
  var Pe = /* @__PURE__ */ new Set([
7
8
  "$$slots",
8
9
  "$$events",
@@ -234,13 +235,13 @@ function Be(s, t) {
234
235
  return i;
235
236
  } }));
236
237
  }
237
- var Ue = /* @__PURE__ */ new Set([
238
+ var Oe = /* @__PURE__ */ new Set([
238
239
  "$$slots",
239
240
  "$$events",
240
241
  "$$legacy"
241
242
  ]);
242
- function Re(s, t) {
243
- let a = e.rest_props(t, Ue);
243
+ function Ue(s, t) {
244
+ let a = e.rest_props(t, Oe);
244
245
  const i = {
245
246
  name: "move",
246
247
  size: 24,
@@ -257,13 +258,13 @@ function Re(s, t) {
257
258
  return i;
258
259
  } }));
259
260
  }
260
- var Oe = /* @__PURE__ */ new Set([
261
+ var Re = /* @__PURE__ */ new Set([
261
262
  "$$slots",
262
263
  "$$events",
263
264
  "$$legacy"
264
265
  ]);
265
266
  function We(s, t) {
266
- let a = e.rest_props(t, Oe);
267
+ let a = e.rest_props(t, Re);
267
268
  const i = {
268
269
  name: "navigation",
269
270
  size: 24,
@@ -542,8 +543,8 @@ function J(s, t) {
542
543
  }
543
544
  function ht(s) {
544
545
  let t = e.state(e.proxy([]));
545
- const a = R(() => ye({
546
- deckId: me(s.bridge),
546
+ const a = U(() => _e({
547
+ deckId: xe(s.bridge),
547
548
  store: s.store,
548
549
  getMessages: () => s.getMessages(),
549
550
  setMessages: s.setMessages,
@@ -552,7 +553,7 @@ function ht(s) {
552
553
  e.set(t, d, !0);
553
554
  }
554
555
  }));
555
- let i = e.state(e.proxy(R(() => a.activeChatId())));
556
+ let i = e.state(e.proxy(U(() => a.activeChatId())));
556
557
  const r = () => {
557
558
  e.set(i, a.activeChatId(), !0);
558
559
  };
@@ -625,11 +626,11 @@ var _t = class {
625
626
  async init() {
626
627
  this.initState = "checking", this.initError = void 0;
627
628
  try {
628
- if (!await (this.#t.checkAvailable ?? fe)()) {
629
+ if (!await (this.#t.checkAvailable ?? ye)()) {
629
630
  this.initState = "unavailable";
630
631
  return;
631
632
  }
632
- const s = await (this.#t.createSession ?? be)(this.#t.bridge, this.#t.config);
633
+ const s = await (this.#t.createSession ?? ge)(this.#t.bridge, this.#t.config);
633
634
  e.set(this.#a, s);
634
635
  const { Chat: t } = await import("@ai-sdk/svelte");
635
636
  e.set(this.#e, new t({
@@ -639,7 +640,7 @@ var _t = class {
639
640
  onToolCall: async ({ toolCall: a }) => {
640
641
  const { toolName: i, toolCallId: r, input: d } = a, z = e.get(this.#e);
641
642
  if (!z) return;
642
- this.#t.onToolTarget?.(_e(i, d));
643
+ this.#t.onToolTarget?.(ze(i, d));
643
644
  const f = z.addToolOutput;
644
645
  try {
645
646
  f({
@@ -756,7 +757,7 @@ e.delegate(["click"]);
756
757
  var kt = e.from_html('<span><span class="pptx-svelte-ai-focus-chip-label svelte-kjj0i7"> </span></span>'), wt = e.from_html('<span class="pptx-svelte-ai-focus-pinned svelte-kjj0i7"> </span>'), Ct = 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>'), Mt = 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>'), zt = 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>');
757
758
  function St(s, t) {
758
759
  e.push(t, !0);
759
- const a = V(), i = e.derived(() => ke(t.targets, t.slides)), r = e.derived(() => Ce(t.targets, t.slides));
760
+ const a = V(), i = e.derived(() => me(t.targets, t.slides)), r = e.derived(() => ke(t.targets, t.slides));
760
761
  var d = zt(), z = e.child(d), f = e.child(z), _ = e.only_child(f, !0), y = e.sibling(f, 2);
761
762
  e.each(y, 17, () => e.get(i), (n) => n.key, (n, c) => {
762
763
  var M = kt();
@@ -780,7 +781,7 @@ function St(s, t) {
780
781
  "aria-hidden": "true"
781
782
  });
782
783
  var S = e.sibling(M);
783
- e.reset(c), e.template_effect((D) => e.set_text(S, ` ${D ?? ""}`), [() => a("pptx.ai.mergeSelectedTables")]), e.delegated("click", c, () => t.onsenddirective(he(e.get(r).slideIndex, e.get(r).elementIdA, e.get(r).elementIdB))), e.append(n, c);
784
+ e.reset(c), e.template_effect((D) => e.set_text(S, ` ${D ?? ""}`), [() => a("pptx.ai.mergeSelectedTables")]), e.delegated("click", c, () => t.onsenddirective(we(e.get(r).slideIndex, e.get(r).elementIdA, e.get(r).elementIdB))), e.append(n, c);
784
785
  };
785
786
  e.if(g, (n) => {
786
787
  e.get(r) && n(k);
@@ -794,7 +795,7 @@ function St(s, t) {
794
795
  }), e.reset(w);
795
796
  var o = e.sibling(w, 2), l = (n) => {
796
797
  var c = Q(), M = e.child(c);
797
- O(M, {
798
+ R(M, {
798
799
  size: 14,
799
800
  "aria-hidden": "true"
800
801
  }), e.reset(c), e.template_effect((S, D) => {
@@ -862,7 +863,7 @@ function Dt(s, t) {
862
863
  }
863
864
  e.user_effect(() => (document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d)));
864
865
  var z = At(), f = e.child(z), _ = e.child(f), y = e.child(_);
865
- ue(y, {
866
+ pe(y, {
866
867
  size: 14,
867
868
  "aria-hidden": "true"
868
869
  });
@@ -874,13 +875,13 @@ function Dt(s, t) {
874
875
  "aria-hidden": "true"
875
876
  }), e.reset(x);
876
877
  var k = e.sibling(x, 2), w = e.child(k);
877
- U(w, {
878
+ O(w, {
878
879
  size: 14,
879
880
  "aria-hidden": "true"
880
881
  }), e.reset(k), e.reset(b), e.reset(f);
881
882
  var T = e.sibling(f, 2), u = (o) => {
882
883
  var l = jt(), v = e.child(l), C = e.child(v), P = e.only_child(C, !0), n = e.sibling(C, 2), c = e.child(n);
883
- ze(c, {
884
+ de(c, {
884
885
  size: 12,
885
886
  "aria-hidden": "true"
886
887
  });
@@ -895,14 +896,14 @@ function Dt(s, t) {
895
896
  var I = qt(), F = e.child(I);
896
897
  let N;
897
898
  var K = e.child(F);
898
- ce(K, {
899
+ ve(K, {
899
900
  size: 14,
900
901
  "aria-hidden": "true"
901
902
  });
902
903
  var G = e.sibling(K, 2), X = e.child(G), te = e.only_child(X, !0), ae = e.sibling(X, 2), se = e.only_child(ae, !0);
903
904
  e.reset(G), e.reset(F);
904
905
  var B = e.sibling(F, 2), ie = e.child(B);
905
- U(ie, {
906
+ O(ie, {
906
907
  size: 14,
907
908
  "aria-hidden": "true"
908
909
  }), e.reset(B), e.reset(I), e.template_effect((re, le, ne, oe) => {
@@ -948,21 +949,21 @@ var Et = e.from_html('<div class="pptx-svelte-ai-tool-error svelte-1878924"> </d
948
949
  function Lt(s, t) {
949
950
  e.push(t, !0);
950
951
  const a = V(), i = {
951
- view: ge,
952
- text: ve,
952
+ view: ce,
953
+ text: ue,
953
954
  shape: st,
954
955
  theme: Ge,
955
956
  table: ct,
956
957
  slide: Fe,
957
958
  chart: je,
958
- move: Re,
959
- delete: U,
959
+ move: Ue,
960
+ delete: O,
960
961
  search: $e,
961
962
  nav: We,
962
963
  animation: Ee,
963
964
  notes: nt,
964
965
  tool: J
965
- }, r = e.derived(() => t.part.state === "output-error"), d = e.derived(() => t.part.state === "output-available"), z = e.derived(() => !e.get(r) && !e.get(d)), f = e.derived(() => xe(t.part.toolName, t.part.input, e.get(z) ? "present" : "past")), _ = e.derived(() => i[e.get(f).icon] ?? J), y = e.derived(() => pe(t.part.input)), m = e.derived(() => e.get(r) ? a("pptx.ai.toolFailed") : e.get(d) ? a("pptx.ai.toolDone") : a("pptx.ai.toolRunning"));
966
+ }, r = e.derived(() => t.part.state === "output-error"), d = e.derived(() => t.part.state === "output-available"), z = e.derived(() => !e.get(r) && !e.get(d)), f = e.derived(() => fe(t.part.toolName, t.part.input, e.get(z) ? "present" : "past")), _ = e.derived(() => i[e.get(f).icon] ?? J), y = e.derived(() => Ce(t.part.input)), m = e.derived(() => e.get(r) ? a("pptx.ai.toolFailed") : e.get(d) ? a("pptx.ai.toolDone") : a("pptx.ai.toolRunning"));
966
967
  var b = Ht(), x = e.child(b), g = e.child(x);
967
968
  {
968
969
  let p = e.derived(() => e.get(r) ? "pptx-svelte-ai-tool-ic is-error" : "pptx-svelte-ai-tool-ic");
@@ -991,7 +992,7 @@ function Lt(s, t) {
991
992
  e.get(z) && p(v);
992
993
  });
993
994
  var C = e.sibling(l, 2), P = (p) => {
994
- Y(p, {
995
+ $(p, {
995
996
  size: 11,
996
997
  "aria-hidden": "true"
997
998
  });
@@ -1021,7 +1022,7 @@ function Lt(s, t) {
1021
1022
  var j = It(), E = e.child(j), H = e.only_child(E, !0), L = e.sibling(E, 2), I = e.only_child(L);
1022
1023
  e.reset(j), e.template_effect((F, N) => {
1023
1024
  e.set_text(H, F), e.set_text(I, `${N ?? ""}: ${e.get(y) ?? ""}`);
1024
- }, [() => a("pptx.ai.toolDetails"), () => de(t.part.toolName)]), e.append(p, j);
1025
+ }, [() => a("pptx.ai.toolDetails"), () => Se(t.part.toolName)]), e.append(p, j);
1025
1026
  };
1026
1027
  e.if(q, (p) => {
1027
1028
  e.get(y) && p(h);
@@ -1032,8 +1033,8 @@ function Lt(s, t) {
1032
1033
  }), e.set_text(M, ` ${e.get(m) ?? ""}`);
1033
1034
  }), e.append(s, b), e.pop();
1034
1035
  }
1035
- var Ft = e.from_html('<div class="pptx-svelte-ai-empty svelte-16qhgfb"><!> <p class="pptx-svelte-ai-empty-title svelte-16qhgfb"> </p> <p class="pptx-svelte-ai-empty-hint svelte-16qhgfb"> </p></div>'), Vt = e.from_html('<p class="pptx-svelte-ai-msg-text svelte-16qhgfb"> </p>'), Nt = e.from_html('<div class="pptx-svelte-ai-msg svelte-16qhgfb"><div><!></div> <div class="pptx-svelte-ai-msg-body svelte-16qhgfb"></div></div>'), Bt = e.from_html('<div class="pptx-svelte-ai-thinking svelte-16qhgfb"><span class="pptx-svelte-ai-dots svelte-16qhgfb"><span class="svelte-16qhgfb"></span><span class="svelte-16qhgfb"></span><span class="svelte-16qhgfb"></span></span> </div>'), Ut = e.from_html('<div class="pptx-svelte-ai-messages svelte-16qhgfb" role="log" aria-live="polite"><!> <!> <div class="svelte-16qhgfb"></div></div>');
1036
- function Rt(s, t) {
1036
+ var Ft = e.from_html('<div class="pptx-svelte-ai-empty svelte-16qhgfb"><!> <p class="pptx-svelte-ai-empty-title svelte-16qhgfb"> </p> <p class="pptx-svelte-ai-empty-hint svelte-16qhgfb"> </p></div>'), Vt = e.from_html('<p class="pptx-svelte-ai-msg-text svelte-16qhgfb"> </p>'), Nt = e.from_html('<div class="pptx-svelte-ai-msg svelte-16qhgfb"><div><!></div> <div class="pptx-svelte-ai-msg-body svelte-16qhgfb"></div></div>'), Bt = e.from_html('<div class="pptx-svelte-ai-thinking svelte-16qhgfb"><span class="pptx-svelte-ai-dots svelte-16qhgfb"><span class="svelte-16qhgfb"></span><span class="svelte-16qhgfb"></span><span class="svelte-16qhgfb"></span></span> </div>'), Ot = e.from_html('<div class="pptx-svelte-ai-messages svelte-16qhgfb" role="log" aria-live="polite"><!> <!> <div class="svelte-16qhgfb"></div></div>');
1037
+ function Ut(s, t) {
1037
1038
  e.push(t, !0);
1038
1039
  const a = V();
1039
1040
  let i = e.state(void 0);
@@ -1042,7 +1043,7 @@ function Rt(s, t) {
1042
1043
  });
1043
1044
  var r = e.comment(), d = e.first_child(r), z = (_) => {
1044
1045
  var y = Ft(), m = e.child(y);
1045
- $(m, {
1046
+ Y(m, {
1046
1047
  size: 26,
1047
1048
  "aria-hidden": "true"
1048
1049
  });
@@ -1051,9 +1052,9 @@ function Rt(s, t) {
1051
1052
  e.set_text(x, w), e.set_text(k, T);
1052
1053
  }, [() => a("pptx.ai.emptyTitle"), () => a("pptx.ai.emptyHint")]), e.append(_, y);
1053
1054
  }, f = (_) => {
1054
- var y = Ut(), m = e.child(y);
1055
+ var y = Ot(), m = e.child(y);
1055
1056
  e.each(m, 17, () => t.messages, (k) => k.id, (k, w) => {
1056
- const T = e.derived(() => e.get(w).role === "user"), u = e.derived(() => we(e.get(w)));
1057
+ const T = e.derived(() => e.get(w).role === "user"), u = e.derived(() => Me(e.get(w)));
1057
1058
  var o = e.comment(), l = e.first_child(o), v = (C) => {
1058
1059
  var P = Nt(), n = e.child(P);
1059
1060
  let c;
@@ -1106,14 +1107,14 @@ function Rt(s, t) {
1106
1107
  t.messages.length === 0 ? _(z) : _(f, -1);
1107
1108
  }), e.append(s, r), e.pop();
1108
1109
  }
1109
- var Ot = e.from_html('<li class="svelte-15p5728"> </li>'), Wt = e.from_html('<ul class="pptx-svelte-ai-proposal-summary svelte-15p5728"></ul>'), Kt = 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>');
1110
+ var Rt = e.from_html('<li class="svelte-15p5728"> </li>'), Wt = e.from_html('<ul class="pptx-svelte-ai-proposal-summary svelte-15p5728"></ul>'), Kt = 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>');
1110
1111
  function Gt(s, t) {
1111
1112
  e.push(t, !0);
1112
- const a = V(), i = e.derived(() => t.proposal.summary.map(Me));
1113
+ const a = V(), i = e.derived(() => t.proposal.summary.map(be));
1113
1114
  var r = Kt(), d = e.child(r), z = e.only_child(d, !0), f = e.sibling(d, 2), _ = e.only_child(f, !0), y = e.sibling(f, 2), m = (o) => {
1114
1115
  var l = Wt();
1115
1116
  e.each(l, 21, () => e.get(i), e.index, (v, C) => {
1116
- var P = Ot(), n = e.only_child(P, !0);
1117
+ var P = Rt(), n = e.only_child(P, !0);
1117
1118
  e.template_effect(() => e.set_text(n, e.get(C))), e.append(v, P);
1118
1119
  }), e.reset(l), e.append(o, l);
1119
1120
  };
@@ -1121,14 +1122,14 @@ function Gt(s, t) {
1121
1122
  e.get(i).length > 0 && o(m);
1122
1123
  });
1123
1124
  var b = e.sibling(y, 2), x = e.child(b), g = e.child(x);
1124
- Y(g, {
1125
+ $(g, {
1125
1126
  size: 13,
1126
1127
  "aria-hidden": "true"
1127
1128
  });
1128
1129
  var k = e.sibling(g);
1129
1130
  e.reset(x);
1130
1131
  var w = e.sibling(x, 2), T = e.child(w);
1131
- O(T, {
1132
+ R(T, {
1132
1133
  size: 13,
1133
1134
  "aria-hidden": "true"
1134
1135
  });
@@ -1172,13 +1173,13 @@ function Jt(s, t) {
1172
1173
  }
1173
1174
  e.delegate(["click"]);
1174
1175
  var Qt = e.from_html('<div class="pptx-svelte-ai-state svelte-nmv6mg"><!></div>'), Yt = e.from_html('<div class="pptx-svelte-ai-state svelte-nmv6mg"><!> <p class="pptx-svelte-ai-state-title svelte-nmv6mg"> </p> <p class="pptx-svelte-ai-state-hint svelte-nmv6mg"> </p></div>'), $t = e.from_html('<div class="pptx-svelte-ai-body svelte-nmv6mg"><!> <!> <!> <!> <!> <!></div>'), ea = e.from_html('<aside class="pptx-svelte-ai-panel svelte-nmv6mg" data-pptx-ai-panel=""><div class="pptx-svelte-ai-header svelte-nmv6mg"><!> <span class="pptx-svelte-ai-title svelte-nmv6mg"> </span> <button type="button" class="pptx-svelte-ai-close svelte-nmv6mg"><!></button></div> <!></aside>');
1175
- function ra(s, t) {
1176
+ function la(s, t) {
1176
1177
  e.push(t, !0);
1177
1178
  const a = V();
1178
1179
  function i(l) {
1179
1180
  l && l.slideIndex !== void 0 && t.bridge.goToSlide(l.slideIndex), t.aiPanel.flashToolTarget(l);
1180
1181
  }
1181
- const r = R(() => new _t({
1182
+ const r = U(() => new _t({
1182
1183
  bridge: t.bridge,
1183
1184
  config: t.config,
1184
1185
  onToolTarget: i
@@ -1202,17 +1203,17 @@ function ra(s, t) {
1202
1203
  setMessages: (l) => r.setMessages(l),
1203
1204
  getUntitledLabel: () => a("pptx.ai.untitledChat")
1204
1205
  });
1205
- Se(() => {
1206
+ he(() => {
1206
1207
  r.init();
1207
1208
  });
1208
1209
  var _ = ea(), y = e.child(_), m = e.child(y);
1209
- $(m, {
1210
+ Y(m, {
1210
1211
  size: 16,
1211
1212
  class: "pptx-svelte-ai-header-icon",
1212
1213
  "aria-hidden": "true"
1213
1214
  });
1214
1215
  var b = e.sibling(m, 2), x = e.only_child(b, !0), g = e.sibling(b, 2), k = e.child(g);
1215
- O(k, {
1216
+ R(k, {
1216
1217
  size: 16,
1217
1218
  "aria-hidden": "true"
1218
1219
  }), e.reset(g), e.reset(y);
@@ -1285,7 +1286,7 @@ function ra(s, t) {
1285
1286
  });
1286
1287
  }
1287
1288
  var n = e.sibling(P, 2);
1288
- Rt(n, {
1289
+ Ut(n, {
1289
1290
  get messages() {
1290
1291
  return r.messages;
1291
1292
  },
@@ -1347,5 +1348,5 @@ function ra(s, t) {
1347
1348
  }
1348
1349
  e.delegate(["click"]);
1349
1350
  export {
1350
- ra as default
1351
+ la as default
1351
1352
  };