pptx-svelte-viewer 4.26.0 → 4.27.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 +35 -0
- package/dist/{AiChatPanel-DYLU7_DQ.js → AiChatPanel-BPHlD__Q.js} +47 -46
- package/dist/{UTIF-iSwpkksm.js → UTIF-sETUHJsd.js} +1 -1
- package/dist/export-C2-95xUb.js +29380 -0
- package/dist/i18n.d.ts +3 -44
- package/dist/i18n.js +9 -8
- package/dist/index.d.ts +8 -2854
- package/dist/index.js +52 -52
- package/dist/internals.d.ts +5 -1554
- package/dist/internals.js +25 -24
- package/dist/transition-overlay-C8b2R8nE.js +153784 -0
- package/dist/translator-2U8GG-ce.js +32 -0
- package/dist/viewer/index.d.ts +14 -4224
- package/dist/viewer/index.js +16 -16
- package/dist/{y-webrtc-DPABhqQq.js → y-webrtc-cC77K9vR.js} +3 -3
- package/package.json +4 -5
- package/dist/GLTFLoader-cXVvZ-Qt.js +0 -1429
- package/dist/OrbitControls-Dj3MmTu8.js +0 -450
- package/dist/export-iyQ8bG1f.js +0 -140583
- package/dist/rolldown-runtime--eTHp1Qs.js +0 -20
- package/dist/smartart-layouts-YQN30k2p.js +0 -2157
- package/dist/three.module-BP1MPwgf.js +0 -23177
- package/dist/transition-overlay-BkW9yQMT.js +0 -273918
- package/dist/translator-DwgZZEZm.js +0 -4070
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,41 @@ 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.27.0](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-svelte-viewer@4.27.0) - 2026-10-07
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- **pptx:** Migrate shared renderer and editing into core and ui ([ba4cd0d](https://github.com/ChristopherVR/ooxml/commit/ba4cd0dc64707ed32d4386c14b80b0ad8a50300a))
|
|
15
|
+
- **pptx:** Move snapshots and cached drawing bounds into core ([f13d837](https://github.com/ChristopherVR/ooxml/commit/f13d83743ce937b5b8c5c66d0abc130d78da8dbb))
|
|
16
|
+
- **chart:** Share Office chart color palettes ([bd436dd](https://github.com/ChristopherVR/ooxml/commit/bd436dd9dc392805f84a2c483c67f09e424b2e5d))
|
|
17
|
+
- **visio:** Preserve page hatch orientation and tile phase ([8b13665](https://github.com/ChristopherVR/ooxml/commit/8b13665ad715f703a983938b47c6b82ba87a6aee))
|
|
18
|
+
- **xlsx:** Add shared Change Colors gallery and native palette edits ([c0e42f0](https://github.com/ChristopherVR/ooxml/commit/c0e42f0b611371ffef7334fa950db5ce9a98cbdd))
|
|
19
|
+
- **chart:** Share native chart style definitions ([f8a6c9e](https://github.com/ChristopherVR/ooxml/commit/f8a6c9eecc12432d91de025b355f8ab1e1e1a673))
|
|
20
|
+
- **xlsx:** Render imported native chart appearance ([c14f42d](https://github.com/ChristopherVR/ooxml/commit/c14f42d99db1aad93ff522a4436aab29606d52d6))
|
|
21
|
+
- **xlsx:** Preserve and render native chart series gradients ([50a9288](https://github.com/ChristopherVR/ooxml/commit/50a928804960c1ab373498a78ef3aab66ff5fbca))
|
|
22
|
+
- **xlsx:** Render imported native chart shadows ([ab83de0](https://github.com/ChristopherVR/ooxml/commit/ab83de0bc39002955cf915922d4b027f13da760e))
|
|
23
|
+
- **xlsx:** Honor native chart gap width and overlap ([42b7d63](https://github.com/ChristopherVR/ooxml/commit/42b7d63d9bd025ca0113b6f84c9f22ea37a986ab))
|
|
24
|
+
- **xlsx:** Add solid chart fill transparency controls ([60f5c51](https://github.com/ChristopherVR/ooxml/commit/60f5c51fcc46e8edd48d0a25c9189113d7e799b1))
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
- **pptx:** Retain grid policy until core exports are released ([82e0fd0](https://github.com/ChristopherVR/ooxml/commit/82e0fd07dddee8e06d8576b1ae017fafa939de57))
|
|
29
|
+
- **pptx:** Wrap text in static svg exports ([ece906e](https://github.com/ChristopherVR/ooxml/commit/ece906e50e8e19d41b062453ed0f898ea18abf77))
|
|
30
|
+
- **ci:** Allow migrated UI sources in viewer tests ([e1283a1](https://github.com/ChristopherVR/ooxml/commit/e1283a1ecb7b57db464f4356be2843b242300837))
|
|
31
|
+
- **pptx:** Preserve rich data label formatting when saving ([0cc1c69](https://github.com/ChristopherVR/ooxml/commit/0cc1c694ff9df5c5b88ce165f1d5602e29dd0da0))
|
|
32
|
+
- **pptx:** Finish migrated package dependency wiring ([ab8d12d](https://github.com/ChristopherVR/ooxml/commit/ab8d12dd241c131409a8ddf33548d2ffd92d3fdb))
|
|
33
|
+
- **docx:** Preserve tracked run formatting through text edits ([ecfde3c](https://github.com/ChristopherVR/ooxml/commit/ecfde3c526ce16a41246f1ec26b22fe0a1921463))
|
|
34
|
+
- **pptx:** Preserve combo chart formatting and table subscripts ([7518420](https://github.com/ChristopherVR/ooxml/commit/75184207b96f061a557f675ef061c4c9a838393a))
|
|
35
|
+
- **pptx:** Resolve chart text fonts across runs and scripts ([6d00580](https://github.com/ChristopherVR/ooxml/commit/6d00580398c698e2cf4140ed2f709883b29f475d))
|
|
36
|
+
- **pptx:** Include bullet text runs in paragraph strut sizing ([b10c8cd](https://github.com/ChristopherVR/ooxml/commit/b10c8cd89ae3ed4ee87cf1a38f7892928858bac1))
|
|
37
|
+
- **pptx:** Wrap Korean text at word boundaries ([cfa6b1d](https://github.com/ChristopherVR/ooxml/commit/cfa6b1d9d27b43685b6b5e1a6ef7cf7a63a73229))
|
|
38
|
+
|
|
39
|
+
### Refactor
|
|
40
|
+
|
|
41
|
+
- **pptx:** Move chart grid editing policy into core ([0d8e23f](https://github.com/ChristopherVR/ooxml/commit/0d8e23f8cf62ed11d01d9ab0417df12d23b9b213))
|
|
42
|
+
- **crypto:** Share Office GUID generation ([7d4ceeb](https://github.com/ChristopherVR/ooxml/commit/7d4ceeb07fcad2f55eef2cba73514f01af7cc2f3))
|
|
43
|
+
- Use extensionless relative typescript imports ([ef81f39](https://github.com/ChristopherVR/ooxml/commit/ef81f394cd2f275bcc9db87830db24b0adb2ec8b))
|
|
44
|
+
|
|
10
45
|
## [4.26.0](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-svelte-viewer@4.26.0) - 2026-10-07
|
|
11
46
|
|
|
12
47
|
### Features
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { E as V } from "./transition-overlay-
|
|
2
|
-
import {
|
|
1
|
+
import { E as V } from "./transition-overlay-C8b2R8nE.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-C2-95xUb.js";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as e from "svelte/internal/client";
|
|
5
|
-
import { onMount as
|
|
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
|
|
238
|
+
var Oe = /* @__PURE__ */ new Set([
|
|
238
239
|
"$$slots",
|
|
239
240
|
"$$events",
|
|
240
241
|
"$$legacy"
|
|
241
242
|
]);
|
|
242
|
-
function
|
|
243
|
-
let a = e.rest_props(t,
|
|
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
|
|
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,
|
|
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 =
|
|
546
|
-
deckId:
|
|
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(
|
|
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 ??
|
|
629
|
+
if (!await (this.#t.checkAvailable ?? ye)()) {
|
|
629
630
|
this.initState = "unavailable";
|
|
630
631
|
return;
|
|
631
632
|
}
|
|
632
|
-
const s = await (this.#t.createSession ??
|
|
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?.(
|
|
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(() =>
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
952
|
-
text:
|
|
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:
|
|
959
|
-
delete:
|
|
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(() =>
|
|
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
|
-
|
|
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"), () =>
|
|
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>'),
|
|
1036
|
-
function
|
|
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
|
-
|
|
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 =
|
|
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(() =>
|
|
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
|
|
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(
|
|
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 =
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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 =
|
|
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
|
-
|
|
1206
|
+
he(() => {
|
|
1206
1207
|
r.init();
|
|
1207
1208
|
});
|
|
1208
1209
|
var _ = ea(), y = e.child(_), m = e.child(y);
|
|
1209
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1351
|
+
la as default
|
|
1351
1352
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _t as De, vt as e0 } from "./transition-overlay-C8b2R8nE.js";
|
|
2
2
|
var me = /* @__PURE__ */ De(((V) => {
|
|
3
3
|
var Q = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
|
|
4
4
|
function ee(p, $) {
|