pptx-react-viewer 4.65.0 → 4.66.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 +53 -0
- package/dist/{AiChatPanel-7AFFNYEN.js → AiChatPanel-DL7EBR2V.js} +19 -19
- package/dist/AiChatPanel-DL7EBR2V.js.br +0 -0
- package/dist/AiChatPanel-DL7EBR2V.js.gz +0 -0
- package/dist/{AiChatPanel-7U7IJRNY.mjs → AiChatPanel-JKWJQX4N.mjs} +1 -1
- package/dist/AiChatPanel-JKWJQX4N.mjs.br +0 -0
- package/dist/AiChatPanel-JKWJQX4N.mjs.gz +0 -0
- package/dist/ai.js +2 -2
- package/dist/ai.js.br +2 -1
- package/dist/ai.js.gz +0 -0
- package/dist/ai.mjs +1 -1
- package/dist/ai.mjs.br +0 -0
- package/dist/ai.mjs.gz +0 -0
- package/dist/{chunk-5DBKW7F3.js → chunk-73S5EOD3.js} +67 -735
- package/dist/chunk-73S5EOD3.js.br +0 -0
- package/dist/chunk-73S5EOD3.js.gz +0 -0
- package/dist/{chunk-5ZW3GP6C.mjs → chunk-A4K2TM2K.mjs} +68 -737
- package/dist/chunk-A4K2TM2K.mjs.br +0 -0
- package/dist/chunk-A4K2TM2K.mjs.gz +0 -0
- package/dist/{chunk-VMX3IDQB.mjs → chunk-DORVZDQT.mjs} +6 -5
- package/dist/chunk-DORVZDQT.mjs.br +0 -0
- package/dist/chunk-DORVZDQT.mjs.gz +0 -0
- package/dist/{chunk-LUKGXRHZ.js → chunk-QLXYEA54.js} +562 -561
- package/dist/chunk-QLXYEA54.js.br +0 -0
- package/dist/chunk-QLXYEA54.js.gz +0 -0
- package/dist/{chunk-WAIX4VJ2.mjs → chunk-SLFVXZHA.mjs} +1 -1
- package/dist/chunk-SLFVXZHA.mjs.br +0 -0
- package/dist/chunk-SLFVXZHA.mjs.gz +0 -0
- package/dist/{chunk-PNDORR6S.js → chunk-UC57KUGO.js} +1 -1
- package/dist/chunk-UC57KUGO.js.br +0 -0
- package/dist/chunk-UC57KUGO.js.gz +0 -0
- package/dist/{chunk-VGU5S37T.js → chunk-YQ67KAQR.js} +318 -329
- package/dist/chunk-YQ67KAQR.js.br +0 -0
- package/dist/chunk-YQ67KAQR.js.gz +0 -0
- package/dist/{chunk-G5JGUSBL.mjs → chunk-ZRU67AVX.mjs} +122 -133
- package/dist/chunk-ZRU67AVX.mjs.br +0 -0
- package/dist/chunk-ZRU67AVX.mjs.gz +0 -0
- package/dist/index.js +27 -27
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.js +81 -81
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +2 -2
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/viewer/index.js +21 -21
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +4 -4
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +3 -3
- package/dist/AiChatPanel-7AFFNYEN.js.br +0 -0
- package/dist/AiChatPanel-7AFFNYEN.js.gz +0 -0
- package/dist/AiChatPanel-7U7IJRNY.mjs.br +0 -0
- package/dist/AiChatPanel-7U7IJRNY.mjs.gz +0 -0
- package/dist/chunk-5DBKW7F3.js.br +0 -0
- package/dist/chunk-5DBKW7F3.js.gz +0 -0
- package/dist/chunk-5ZW3GP6C.mjs.br +0 -0
- package/dist/chunk-5ZW3GP6C.mjs.gz +0 -0
- package/dist/chunk-G5JGUSBL.mjs.br +0 -0
- package/dist/chunk-G5JGUSBL.mjs.gz +0 -0
- package/dist/chunk-LUKGXRHZ.js.br +0 -0
- package/dist/chunk-LUKGXRHZ.js.gz +0 -0
- package/dist/chunk-PNDORR6S.js.br +0 -0
- package/dist/chunk-PNDORR6S.js.gz +0 -0
- package/dist/chunk-VGU5S37T.js.br +0 -0
- package/dist/chunk-VGU5S37T.js.gz +0 -0
- package/dist/chunk-VMX3IDQB.mjs.br +0 -0
- package/dist/chunk-VMX3IDQB.mjs.gz +0 -0
- package/dist/chunk-WAIX4VJ2.mjs.br +0 -0
- package/dist/chunk-WAIX4VJ2.mjs.gz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,59 @@ 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.66.0](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-react-viewer@4.66.0) - 2026-11-06
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- **ui:** Paint shadow and glow along gradient, pattern and picture shapes ([2e81d32](https://github.com/ChristopherVR/ooxml/commit/2e81d325e92948d82a0f5e584e672349fbdf7ca0))
|
|
15
|
+
- **ui:** PowerPoint-style media control bar on the editor canvas ([7c71c7f](https://github.com/ChristopherVR/ooxml/commit/7c71c7fb6f8ea8346afc9281a86bba00eac64a74))
|
|
16
|
+
- **ui:** Draw the table style effectRef shadow on the table frame ([30b9df8](https://github.com/ChristopherVR/ooxml/commit/30b9df883501814c38d715a3795876bc4b7c97e3))
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
- **ui:** Stop table borders adding a pixel to every row ([dc2fdd7](https://github.com/ChristopherVR/ooxml/commit/dc2fdd7b5754c735a14c1b1a686122abdeea92dc))
|
|
21
|
+
- **ui:** Lay missing legacy East Asian fonts out on their named metrics ([adec110](https://github.com/ChristopherVR/ooxml/commit/adec11017ea2b59b0bb78248752c7ee2dac74e38))
|
|
22
|
+
- **ui:** Paint outer shadow and glow along non-rectangular shapes ([6d4cc12](https://github.com/ChristopherVR/ooxml/commit/6d4cc12f49235b799444706b3c3a0fa0c699be16))
|
|
23
|
+
- **ui:** Snap every rect edge to exact EMU and draw lines with flat caps ([3217686](https://github.com/ChristopherVR/ooxml/commit/32176861683f9e8dd566331bdae36a6e5135f7f1))
|
|
24
|
+
- **geometry:** Follow ecma-376 for curvedConnector3, 4 and 5 ([fb6b33f](https://github.com/ChristopherVR/ooxml/commit/fb6b33f867882e8ffd8617694977a45fd120d375))
|
|
25
|
+
- **ui:** Hit-test silhouette shapes on their geometry, not their box ([638f6bf](https://github.com/ChristopherVR/ooxml/commit/638f6bf73bffaa64d439caa23a45f7ae465cc5f8))
|
|
26
|
+
- **pptx:** Resolve an absolute layout-to-master relationship target ([03ed692](https://github.com/ChristopherVR/ooxml/commit/03ed692a1367546d7a92bccbf03fce01bdf16f86))
|
|
27
|
+
- **ui:** Match PowerPoint's dash lengths and cap handling ([6ff7e23](https://github.com/ChristopherVR/ooxml/commit/6ff7e23e91513260a7f2c52358d9261ce04667ad))
|
|
28
|
+
- **ui:** Match PowerPoint table style fills, double lines and tblBg span ([a30f8ca](https://github.com/ChristopherVR/ooxml/commit/a30f8ca02ef08ed6e056afec123d89add435c444))
|
|
29
|
+
- **react:** Lay out a pure equation box with the shared block style ([2495586](https://github.com/ChristopherVR/ooxml/commit/2495586bd203ce359e870ae08486e940ac83804b))
|
|
30
|
+
- **ui:** Snap group child strokes by their absolute position ([061ae7e](https://github.com/ChristopherVR/ooxml/commit/061ae7e5a6d6edbc1c431761e54732c25191d554))
|
|
31
|
+
- **geometry:** Match PowerPoint for about 55 preset shapes ([97f99e1](https://github.com/ChristopherVR/ooxml/commit/97f99e1ea2dc603684870a41905203bf341cf420))
|
|
32
|
+
- **ui:** Draw nineteen text warps as measured top and bottom paths ([01eb409](https://github.com/ChristopherVR/ooxml/commit/01eb409b2c24f2697d2c094ee2729b9193deb046))
|
|
33
|
+
- **ui:** Put the inner shadow on the edge the offset points to ([1983da4](https://github.com/ChristopherVR/ooxml/commit/1983da4650d9b80bd41eb0d7e222fb744b6136b7))
|
|
34
|
+
- **ui:** Keep the shadow and glow of a morphing shape painted as a silhouette ([0f8f76d](https://github.com/ChristopherVR/ooxml/commit/0f8f76d5fe5842503983c6e7a24a89ca48e19472))
|
|
35
|
+
- **ui:** Place table cell paragraphs on PowerPoint's baselines ([eb41b49](https://github.com/ChristopherVR/ooxml/commit/eb41b49d1ae40af08614dfcfcc2d01f65871a97e))
|
|
36
|
+
- **text:** Lay missing Office fonts out on their own metrics ([83c4f02](https://github.com/ChristopherVR/ooxml/commit/83c4f029a0c2975e62ca1ae7a50f5f58f13ad732))
|
|
37
|
+
- **ui:** Stroke split-layout presets along their stroked paths only ([68ad9aa](https://github.com/ChristopherVR/ooxml/commit/68ad9aa2f908a43fe9a0cfd0b24250b704bb1159))
|
|
38
|
+
- **react:** Inset raw-xml table cell margins by half the border ([7586b55](https://github.com/ChristopherVR/ooxml/commit/7586b558531ba54188968e79cda431907d7269aa))
|
|
39
|
+
- **ui:** Stop flowing a:linkedTxbx text, as PowerPoint ignores it ([2eeabbb](https://github.com/ChristopherVR/ooxml/commit/2eeabbbebfdd5e9f9a4d11848f3e655efe906ea8))
|
|
40
|
+
- **react:** Render a soft line break as a bare br like the other bindings ([f9c7bf1](https://github.com/ChristopherVR/ooxml/commit/f9c7bf1e053d11efe99025e2c9b24dff21fb1d87))
|
|
41
|
+
- **ui:** Start dashed closed outlines where powerpoint does ([7246a37](https://github.com/ChristopherVR/ooxml/commit/7246a37eef1465dfed5031387b948c62d0e71743))
|
|
42
|
+
- **react:** Put the table style shadow on the element frame ([a45cb2f](https://github.com/ChristopherVR/ooxml/commit/a45cb2f5df60957b63e1c69b597accf4a0410f4e))
|
|
43
|
+
- **geometry:** Rebuild the three circular arrows on the ECMA guide chain ([d3b7a1e](https://github.com/ChristopherVR/ooxml/commit/d3b7a1e9e196ef50b87dbe37289d35181a49e1f6))
|
|
44
|
+
- **geometry:** Rebuild ribbon, ribbon2, ellipse ribbons, left-right ribbon ([5a75fe1](https://github.com/ChristopherVR/ooxml/commit/5a75fe1a5bfef83e63105ce0a52e808e5212cf0c))
|
|
45
|
+
- **geometry:** Rebuild verticalScroll, horizontalScroll and funnel ([b14f7f2](https://github.com/ChristopherVR/ooxml/commit/b14f7f2b1ab9d030c09ba7e36d91172140635c34))
|
|
46
|
+
- **geometry:** Correct irregularSeal2, magnetic disk and multidocument ([60783a8](https://github.com/ChristopherVR/ooxml/commit/60783a8fdd0c99a54c9538d654def571d368bf97))
|
|
47
|
+
- **geometry:** Draw action button glyphs and fix cube and bevel shading ([6b7801f](https://github.com/ChristopherVR/ooxml/commit/6b7801fe2c4777dbf928300991d5dda5fd232562))
|
|
48
|
+
- **ui:** Veil lighten and darken sub-paths over gradient and picture fills ([d9d80ab](https://github.com/ChristopherVR/ooxml/commit/d9d80ab90f9d11b64f63b6ec902a9647902b39b6))
|
|
49
|
+
- **ui:** Paint gradients the way PowerPoint does and fix blank rect path ([0f1e8d8](https://github.com/ChristopherVR/ooxml/commit/0f1e8d877e87edeae94bbb59890a078ca581cbc6))
|
|
50
|
+
- **ui:** Give every painted copy of a slide its own svg def ids ([a58124a](https://github.com/ChristopherVR/ooxml/commit/a58124a1b0bbb8a8d0c45d92fdebc0d7001e5188))
|
|
51
|
+
|
|
52
|
+
### Refactor
|
|
53
|
+
|
|
54
|
+
- **ui:** Route embedded font injection through the shared sheet ([63263a2](https://github.com/ChristopherVR/ooxml/commit/63263a2f3fe808b7c0353395c407d611a5bf0e35))
|
|
55
|
+
- **ui:** Paint warped text runs with resolveWarpRunPaint everywhere ([c2b5281](https://github.com/ChristopherVR/ooxml/commit/c2b5281840d26bae691f7f9edfc38591c107aed3))
|
|
56
|
+
- **react:** Render every table from the shared table descriptors ([492e26e](https://github.com/ChristopherVR/ooxml/commit/492e26e086f996e7d3916e9589d5764427947b18))
|
|
57
|
+
|
|
58
|
+
### Testing
|
|
59
|
+
|
|
60
|
+
- **react:** Pin the measured powerpoint dash lengths in snapshots ([d5ea53f](https://github.com/ChristopherVR/ooxml/commit/d5ea53f9e1a9369e3d56e558f30790941640489d))
|
|
61
|
+
- **react:** Pin powerpoint's inner shadow blur and edge in color-core ([6c75692](https://github.com/ChristopherVR/ooxml/commit/6c75692a60b3060db0eef298fca2915d04d5ab30))
|
|
62
|
+
|
|
10
63
|
## [4.65.0](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-react-viewer@4.65.0) - 2026-11-06
|
|
11
64
|
|
|
12
65
|
### Features
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk73S5EOD3_js = require('./chunk-73S5EOD3.js');
|
|
4
4
|
require('./chunk-PIRHQTI4.js');
|
|
5
5
|
var react = require('react');
|
|
6
6
|
var lu = require('react-icons/lu');
|
|
@@ -301,7 +301,7 @@ function AiComposer({
|
|
|
301
301
|
prefillText,
|
|
302
302
|
prefillNonce
|
|
303
303
|
}) {
|
|
304
|
-
const { t } =
|
|
304
|
+
const { t } = chunk73S5EOD3_js.useTranslation();
|
|
305
305
|
const [value, setValue] = react.useState("");
|
|
306
306
|
const textareaRef = react.useRef(null);
|
|
307
307
|
const appliedNonce = react.useRef(void 0);
|
|
@@ -364,7 +364,7 @@ function AiComposer({
|
|
|
364
364
|
disabled: value.trim().length === 0,
|
|
365
365
|
title: t("pptx.ai.send"),
|
|
366
366
|
"aria-label": t("pptx.ai.send"),
|
|
367
|
-
className:
|
|
367
|
+
className: chunk73S5EOD3_js.cn(
|
|
368
368
|
"shrink-0 rounded-sm p-1.5 transition-colors",
|
|
369
369
|
value.trim().length === 0 ? "text-muted-foreground/50" : "bg-primary text-primary-foreground hover:bg-primary/90"
|
|
370
370
|
),
|
|
@@ -386,7 +386,7 @@ function AiFocusBar({
|
|
|
386
386
|
onStopPick,
|
|
387
387
|
onClearPicks
|
|
388
388
|
}) {
|
|
389
|
-
const { t } =
|
|
389
|
+
const { t } = chunk73S5EOD3_js.useTranslation();
|
|
390
390
|
const chips = ai.focusTargetChips(targets, slides);
|
|
391
391
|
const twoTables = ai.isTwoTableFocus(targets, slides);
|
|
392
392
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-b border-border bg-secondary/30", children: [
|
|
@@ -395,7 +395,7 @@ function AiFocusBar({
|
|
|
395
395
|
chips.map((chip) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
396
396
|
"span",
|
|
397
397
|
{
|
|
398
|
-
className:
|
|
398
|
+
className: chunk73S5EOD3_js.cn(
|
|
399
399
|
"inline-flex max-w-[10rem] items-center rounded-full px-2 py-0.5 text-[11px]",
|
|
400
400
|
hasPicks || isPinned ? "bg-primary/15 text-primary" : "bg-muted text-muted-foreground"
|
|
401
401
|
),
|
|
@@ -432,7 +432,7 @@ function AiFocusBar({
|
|
|
432
432
|
title: t("pptx.ai.pickElement"),
|
|
433
433
|
"aria-label": t("pptx.ai.pickAria"),
|
|
434
434
|
"aria-pressed": pickMode,
|
|
435
|
-
className:
|
|
435
|
+
className: chunk73S5EOD3_js.cn(
|
|
436
436
|
"rounded-sm p-1 max-md:min-w-[44px]! max-md:min-h-[44px]! flex items-center justify-center",
|
|
437
437
|
pickMode ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-accent"
|
|
438
438
|
),
|
|
@@ -501,7 +501,7 @@ function relativeTime(from, now = Date.now()) {
|
|
|
501
501
|
return `${weeks}w ago`;
|
|
502
502
|
}
|
|
503
503
|
function AiHistoryList({ chats, activeChatId, onResume, onDelete }) {
|
|
504
|
-
const { t } =
|
|
504
|
+
const { t } = chunk73S5EOD3_js.useTranslation();
|
|
505
505
|
if (chats.length === 0) {
|
|
506
506
|
return /* @__PURE__ */ jsxRuntime.jsx("p", { className: "px-3 py-4 text-center text-[12px] text-muted-foreground", children: t("pptx.ai.historyEmpty") });
|
|
507
507
|
}
|
|
@@ -511,7 +511,7 @@ function AiHistoryList({ chats, activeChatId, onResume, onDelete }) {
|
|
|
511
511
|
{
|
|
512
512
|
type: "button",
|
|
513
513
|
onClick: () => onResume(chat.id),
|
|
514
|
-
className:
|
|
514
|
+
className: chunk73S5EOD3_js.cn(
|
|
515
515
|
"flex min-w-0 flex-1 items-start gap-2 rounded-sm px-2 py-1.5 text-left hover:bg-accent",
|
|
516
516
|
chat.id === activeChatId && "bg-accent/60"
|
|
517
517
|
),
|
|
@@ -550,7 +550,7 @@ function AiHistoryMenu({
|
|
|
550
550
|
onNewChat,
|
|
551
551
|
onClose
|
|
552
552
|
}) {
|
|
553
|
-
const { t } =
|
|
553
|
+
const { t } = chunk73S5EOD3_js.useTranslation();
|
|
554
554
|
const ref = react.useRef(null);
|
|
555
555
|
react.useEffect(() => {
|
|
556
556
|
const handler = (e) => {
|
|
@@ -616,7 +616,7 @@ function appliedThemeFromPart(part) {
|
|
|
616
616
|
return { summary: out.summary ?? "Theme updated", previous: out.previous ?? {} };
|
|
617
617
|
}
|
|
618
618
|
function AiAppliedThemeCard({ summary, onUndo }) {
|
|
619
|
-
const { t } =
|
|
619
|
+
const { t } = chunk73S5EOD3_js.useTranslation();
|
|
620
620
|
const [undone, setUndone] = react.useState(false);
|
|
621
621
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5 rounded-md border border-primary/30 bg-primary/5 px-2.5 py-1.5 text-[12px]", children: [
|
|
622
622
|
/* @__PURE__ */ jsxRuntime.jsx(lu.LuPalette, { className: "w-3.5 h-3.5 shrink-0 text-primary" }),
|
|
@@ -662,7 +662,7 @@ var ICONS = {
|
|
|
662
662
|
tool: lu.LuWrench
|
|
663
663
|
};
|
|
664
664
|
function AiToolCallCard({ part }) {
|
|
665
|
-
const { t } =
|
|
665
|
+
const { t } = chunk73S5EOD3_js.useTranslation();
|
|
666
666
|
const failed = part.state === "output-error";
|
|
667
667
|
const done = part.state === "output-available";
|
|
668
668
|
const running = !failed && !done;
|
|
@@ -675,17 +675,17 @@ function AiToolCallCard({ part }) {
|
|
|
675
675
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
676
676
|
Icon,
|
|
677
677
|
{
|
|
678
|
-
className:
|
|
678
|
+
className: chunk73S5EOD3_js.cn(
|
|
679
679
|
"w-3.5 h-3.5 shrink-0",
|
|
680
680
|
failed ? "text-destructive" : "text-muted-foreground"
|
|
681
681
|
)
|
|
682
682
|
}
|
|
683
683
|
),
|
|
684
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
684
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: chunk73S5EOD3_js.cn("truncate", failed ? "text-destructive" : "text-foreground"), children: activity.label }),
|
|
685
685
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
686
686
|
"span",
|
|
687
687
|
{
|
|
688
|
-
className:
|
|
688
|
+
className: chunk73S5EOD3_js.cn(
|
|
689
689
|
"ml-auto inline-flex items-center gap-1 rounded-sm px-1.5 py-0.5 text-[10px]",
|
|
690
690
|
failed ? "bg-destructive/15 text-destructive" : done ? "bg-primary/10 text-primary" : "bg-muted text-muted-foreground"
|
|
691
691
|
),
|
|
@@ -710,7 +710,7 @@ function AiToolCallCard({ part }) {
|
|
|
710
710
|
] });
|
|
711
711
|
}
|
|
712
712
|
function AiMessageList({ messages, isStreaming, bridge }) {
|
|
713
|
-
const { t } =
|
|
713
|
+
const { t } = chunk73S5EOD3_js.useTranslation();
|
|
714
714
|
const endRef = react.useRef(null);
|
|
715
715
|
react.useEffect(() => {
|
|
716
716
|
endRef.current?.scrollIntoView({ block: "end" });
|
|
@@ -733,7 +733,7 @@ function AiMessageList({ messages, isStreaming, bridge }) {
|
|
|
733
733
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
734
734
|
"div",
|
|
735
735
|
{
|
|
736
|
-
className:
|
|
736
|
+
className: chunk73S5EOD3_js.cn(
|
|
737
737
|
"mt-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-full",
|
|
738
738
|
isUser ? "bg-secondary text-muted-foreground" : "bg-primary/15 text-primary"
|
|
739
739
|
),
|
|
@@ -779,7 +779,7 @@ function AiMessageList({ messages, isStreaming, bridge }) {
|
|
|
779
779
|
] });
|
|
780
780
|
}
|
|
781
781
|
function AiProposalCard({ proposal, onAccept, onReject }) {
|
|
782
|
-
const { t } =
|
|
782
|
+
const { t } = chunk73S5EOD3_js.useTranslation();
|
|
783
783
|
const lines = proposal.summary.map(ai.humanizeDiffLine);
|
|
784
784
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-md border border-primary/40 bg-primary/5 p-2.5", children: [
|
|
785
785
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-1.5 text-[11px] font-semibold uppercase tracking-wide text-primary", children: t("pptx.ai.proposedChange") }),
|
|
@@ -821,7 +821,7 @@ function AiConversation({
|
|
|
821
821
|
aiPanel,
|
|
822
822
|
deckId
|
|
823
823
|
}) {
|
|
824
|
-
const { t } =
|
|
824
|
+
const { t } = chunk73S5EOD3_js.useTranslation();
|
|
825
825
|
const chat = useAiConversation(useChat, session, config, bridge, {
|
|
826
826
|
// Live "AI as a collaborator" focus: as each tool runs, navigate to and
|
|
827
827
|
// highlight the slide / element(s) it touches so the canvas mirrors the
|
|
@@ -986,7 +986,7 @@ function AiChatPanel({
|
|
|
986
986
|
onClose,
|
|
987
987
|
panelWidth
|
|
988
988
|
}) {
|
|
989
|
-
const { t } =
|
|
989
|
+
const { t } = chunk73S5EOD3_js.useTranslation();
|
|
990
990
|
const { state, session, initError } = useAiChat(bridge, config);
|
|
991
991
|
const deckId = react.useMemo(() => ai.deckIdFromBridge(bridge), [bridge]);
|
|
992
992
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useTranslation, cn } from './chunk-
|
|
1
|
+
import { useTranslation, cn } from './chunk-A4K2TM2K.mjs';
|
|
2
2
|
import './chunk-UV2HVMKZ.mjs';
|
|
3
3
|
import { useMemo, useRef, useState, useEffect, useReducer, useCallback } from 'react';
|
|
4
4
|
import { LuSparkles, LuX, LuLoaderCircle, LuTriangleAlert, LuHistory, LuMessageSquarePlus, LuTrash2, LuPlus, LuGitMerge, LuCrosshair, LuPinOff, LuPin, LuUser, LuBot, LuCheck, LuSquare, LuSend, LuMessageSquare, LuPalette, LuUndo2, LuWrench, LuStickyNote, LuFilm, LuNavigation, LuSearch, LuMove, LuChartColumn, LuLayoutTemplate, LuTable, LuShapes, LuType, LuEye } from 'react-icons/lu';
|
|
Binary file
|
|
Binary file
|
package/dist/ai.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUC57KUGO_js = require('./chunk-UC57KUGO.js');
|
|
4
4
|
require('./chunk-PIRHQTI4.js');
|
|
5
5
|
|
|
6
6
|
// src/ai.ts
|
|
7
7
|
function createAiAssistant(config) {
|
|
8
|
-
return
|
|
8
|
+
return chunkUC57KUGO_js.aiAssistants.register(config, chunkUC57KUGO_js.AiChatPanelLazy);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
exports.createAiAssistant = createAiAssistant;
|
package/dist/ai.js.br
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
% ��tc/�:��^[�Sٸq:�
|
|
1
|
+
% ��tc/�:��^[�Sٸq:�3j�t�Pxz�J.�4
|
|
2
|
+
��@�v���o'����|�L0!�
|
package/dist/ai.js.gz
CHANGED
|
Binary file
|
package/dist/ai.mjs
CHANGED
package/dist/ai.mjs.br
CHANGED
|
Binary file
|
package/dist/ai.mjs.gz
CHANGED
|
Binary file
|