pptx-react-viewer 2.16.5 → 2.16.7
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 +4 -0
- package/dist/{AiChatPanel-6B26AZGA.mjs → AiChatPanel-2YYL6AKX.mjs} +3 -9
- package/dist/AiChatPanel-2YYL6AKX.mjs.br +0 -0
- package/dist/AiChatPanel-2YYL6AKX.mjs.gz +0 -0
- package/dist/{AiChatPanel-FGEIZQCD.js → AiChatPanel-XSXMU2Q5.js} +23 -29
- package/dist/AiChatPanel-XSXMU2Q5.js.br +0 -0
- package/dist/AiChatPanel-XSXMU2Q5.js.gz +0 -0
- package/dist/{Model3DScene-2JX5CUPK.js → Model3DScene-36UJZLCO.js} +2 -2
- package/dist/Model3DScene-36UJZLCO.js.br +0 -0
- package/dist/Model3DScene-36UJZLCO.js.gz +0 -0
- package/dist/{Model3DScene-NKYNKUPP.mjs → Model3DScene-NVFP3JBJ.mjs} +1 -1
- package/dist/Model3DScene-NVFP3JBJ.mjs.br +0 -0
- package/dist/Model3DScene-NVFP3JBJ.mjs.gz +0 -0
- package/dist/PowerPointViewer-Du7u4INi.d.ts.map +1 -1
- package/dist/{SurfaceChart3DScene-TTL2FTEG.mjs → SurfaceChart3DScene-BMFEDBLF.mjs} +1 -1
- package/dist/{SurfaceChart3DScene-TTL2FTEG.mjs.br → SurfaceChart3DScene-BMFEDBLF.mjs.br} +0 -0
- package/dist/SurfaceChart3DScene-BMFEDBLF.mjs.gz +0 -0
- package/dist/{SurfaceChart3DScene-AE5SKG7U.js → SurfaceChart3DScene-W6I255VU.js} +2 -2
- package/dist/SurfaceChart3DScene-W6I255VU.js.br +0 -0
- package/dist/SurfaceChart3DScene-W6I255VU.js.gz +0 -0
- package/dist/{chunk-LCWZ4TD4.js → chunk-77TMRPDU.js} +2144 -1527
- package/dist/chunk-77TMRPDU.js.br +0 -0
- package/dist/chunk-77TMRPDU.js.gz +0 -0
- package/dist/{chunk-247XH4EN.mjs → chunk-D5TAZ5NL.mjs} +1214 -53
- package/dist/chunk-D5TAZ5NL.mjs.br +0 -0
- package/dist/chunk-D5TAZ5NL.mjs.gz +0 -0
- package/dist/{chunk-EFZ4K6V5.mjs → chunk-J56KVWI5.mjs} +1132 -515
- package/dist/chunk-J56KVWI5.mjs.br +0 -0
- package/dist/chunk-J56KVWI5.mjs.gz +0 -0
- package/dist/{chunk-5YGTUHNO.mjs → chunk-J5V7UCD2.mjs} +15 -1403
- package/dist/chunk-J5V7UCD2.mjs.br +0 -0
- package/dist/chunk-J5V7UCD2.mjs.gz +0 -0
- package/dist/{chunk-VZI35LEF.js → chunk-JSJZWA43.js} +9 -3
- package/dist/chunk-JSJZWA43.js.br +0 -0
- package/dist/chunk-JSJZWA43.js.gz +0 -0
- package/dist/{chunk-Y6W5LGTR.mjs → chunk-KVNZGR3L.mjs} +14 -93
- package/dist/chunk-KVNZGR3L.mjs.br +0 -0
- package/dist/chunk-KVNZGR3L.mjs.gz +0 -0
- package/dist/{chunk-P65VL2I6.js → chunk-NFJLF7TX.js} +258 -1676
- package/dist/chunk-NFJLF7TX.js.br +0 -0
- package/dist/chunk-NFJLF7TX.js.gz +0 -0
- package/dist/{chunk-MZN2UIYT.mjs → chunk-QNKJUUKD.mjs} +7 -2
- package/dist/chunk-QNKJUUKD.mjs.br +0 -0
- package/dist/chunk-QNKJUUKD.mjs.gz +0 -0
- package/dist/{chunk-UNWU6D2M.js → chunk-S7HPAJRX.js} +350 -429
- package/dist/chunk-S7HPAJRX.js.br +0 -0
- package/dist/chunk-S7HPAJRX.js.gz +0 -0
- package/dist/{chunk-6QGTRYSC.js → chunk-USAJMMF2.js} +1248 -59
- package/dist/chunk-USAJMMF2.js.br +0 -0
- package/dist/chunk-USAJMMF2.js.gz +0 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +39 -39
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +37 -7
- package/dist/internals.d.ts.map +1 -1
- package/dist/internals.js +78 -78
- package/dist/internals.js.br +5 -4
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +3 -3
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/pptx-viewer.css +1 -1
- package/dist/pptx-viewer.css.br +0 -0
- package/dist/pptx-viewer.css.gz +0 -0
- package/dist/{useViewerBuildingBlocks-CBZrHhxl.d.ts → useViewerBuildingBlocks-Xddn6SFj.d.ts} +15 -1
- package/dist/useViewerBuildingBlocks-Xddn6SFj.d.ts.map +1 -0
- package/dist/viewer/index.js +26 -26
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +5 -5
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +1 -1
- package/dist/AiChatPanel-6B26AZGA.mjs.br +0 -0
- package/dist/AiChatPanel-6B26AZGA.mjs.gz +0 -0
- package/dist/AiChatPanel-FGEIZQCD.js.br +0 -0
- package/dist/AiChatPanel-FGEIZQCD.js.gz +0 -0
- package/dist/Model3DScene-2JX5CUPK.js.br +0 -0
- package/dist/Model3DScene-2JX5CUPK.js.gz +0 -0
- package/dist/Model3DScene-NKYNKUPP.mjs.br +0 -0
- package/dist/Model3DScene-NKYNKUPP.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-AE5SKG7U.js.br +0 -0
- package/dist/SurfaceChart3DScene-AE5SKG7U.js.gz +0 -0
- package/dist/SurfaceChart3DScene-TTL2FTEG.mjs.gz +0 -0
- package/dist/chunk-247XH4EN.mjs.br +0 -0
- package/dist/chunk-247XH4EN.mjs.gz +0 -0
- package/dist/chunk-5YGTUHNO.mjs.br +0 -0
- package/dist/chunk-5YGTUHNO.mjs.gz +0 -0
- package/dist/chunk-6QGTRYSC.js.br +0 -0
- package/dist/chunk-6QGTRYSC.js.gz +0 -0
- package/dist/chunk-EFZ4K6V5.mjs.br +0 -0
- package/dist/chunk-EFZ4K6V5.mjs.gz +0 -0
- package/dist/chunk-LCWZ4TD4.js.br +0 -0
- package/dist/chunk-LCWZ4TD4.js.gz +0 -0
- package/dist/chunk-MZN2UIYT.mjs.br +0 -0
- package/dist/chunk-MZN2UIYT.mjs.gz +0 -0
- package/dist/chunk-P65VL2I6.js.br +0 -0
- package/dist/chunk-P65VL2I6.js.gz +0 -0
- package/dist/chunk-UNWU6D2M.js.br +0 -0
- package/dist/chunk-UNWU6D2M.js.gz +0 -0
- package/dist/chunk-VZI35LEF.js.br +0 -0
- package/dist/chunk-VZI35LEF.js.gz +0 -0
- package/dist/chunk-Y6W5LGTR.mjs.br +0 -0
- package/dist/chunk-Y6W5LGTR.mjs.gz +0 -0
- package/dist/useViewerBuildingBlocks-CBZrHhxl.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ All notable changes to this project are documented here.
|
|
|
4
4
|
This file is generated from [Conventional Commits](https://www.conventionalcommits.org)
|
|
5
5
|
by [git-cliff](https://git-cliff.org); do not edit it by hand.
|
|
6
6
|
|
|
7
|
+
## [2.16.6](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@2.16.6) - 2026-08-10
|
|
8
|
+
|
|
9
|
+
## [2.16.5](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@2.16.5) - 2026-08-10
|
|
10
|
+
|
|
7
11
|
## [2.16.4](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@2.16.4) - 2026-08-10
|
|
8
12
|
|
|
9
13
|
## [2.16.3](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@2.16.3) - 2026-08-10
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { isAiAvailable, createAiChatSession, toolCanvasTarget, createChatHistoryStore, focusTargetChips, isTwoTableFocus, humanizeDiffLine, buildDeckContext, describeToolActivity, summarizeToolArgs, toolLabel } from './chunk-
|
|
2
|
-
import { cn } from './chunk-
|
|
1
|
+
import { deckIdFromBridge, isAiAvailable, createAiChatSession, toolCanvasTarget, createChatHistoryStore, focusTargetChips, isTwoTableFocus, humanizeDiffLine, buildDeckContext, describeToolActivity, summarizeToolArgs, toolLabel } from './chunk-QNKJUUKD.mjs';
|
|
2
|
+
import { cn } from './chunk-J5V7UCD2.mjs';
|
|
3
3
|
import './chunk-5IUEPQTK.mjs';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-D5TAZ5NL.mjs';
|
|
5
5
|
import './chunk-XGB3TDIC.mjs';
|
|
6
6
|
import { useMemo, useRef, useState, useEffect, useReducer, useCallback } from 'react';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
@@ -9,12 +9,6 @@ import { LuSparkles, LuX, LuLoaderCircle, LuTriangleAlert, LuHistory, LuMessageS
|
|
|
9
9
|
import { isToolUIPart, isDynamicToolUIPart, getToolOrDynamicToolName, isTextUIPart } from 'ai';
|
|
10
10
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
11
11
|
|
|
12
|
-
// src/viewer/hooks/ai/ai-deck-id.ts
|
|
13
|
-
function deckIdFromBridge(bridge) {
|
|
14
|
-
const meta = bridge.getDeckMeta();
|
|
15
|
-
const title = (meta.title ?? "deck").trim().toLowerCase().replace(/\s+/gu, "-").slice(0, 60);
|
|
16
|
-
return `${title || "deck"}::${meta.slideCount}`;
|
|
17
|
-
}
|
|
18
12
|
function useAiChat(bridge, config) {
|
|
19
13
|
const configRef = useRef(config);
|
|
20
14
|
const [state, setState] = useState("checking");
|
|
Binary file
|
|
Binary file
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkJSJZWA43_js = require('./chunk-JSJZWA43.js');
|
|
4
|
+
var chunkNFJLF7TX_js = require('./chunk-NFJLF7TX.js');
|
|
5
5
|
require('./chunk-DVZF4ARG.js');
|
|
6
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-USAJMMF2.js');
|
|
7
7
|
require('./chunk-4VNS5WPM.js');
|
|
8
8
|
var react = require('react');
|
|
9
9
|
var reactI18next = require('react-i18next');
|
|
@@ -11,12 +11,6 @@ var lu = require('react-icons/lu');
|
|
|
11
11
|
var ai = require('ai');
|
|
12
12
|
var jsxRuntime = require('react/jsx-runtime');
|
|
13
13
|
|
|
14
|
-
// src/viewer/hooks/ai/ai-deck-id.ts
|
|
15
|
-
function deckIdFromBridge(bridge) {
|
|
16
|
-
const meta = bridge.getDeckMeta();
|
|
17
|
-
const title = (meta.title ?? "deck").trim().toLowerCase().replace(/\s+/gu, "-").slice(0, 60);
|
|
18
|
-
return `${title || "deck"}::${meta.slideCount}`;
|
|
19
|
-
}
|
|
20
14
|
function useAiChat(bridge, config) {
|
|
21
15
|
const configRef = react.useRef(config);
|
|
22
16
|
const [state, setState] = react.useState("checking");
|
|
@@ -29,7 +23,7 @@ function useAiChat(bridge, config) {
|
|
|
29
23
|
setInitError(void 0);
|
|
30
24
|
void (async () => {
|
|
31
25
|
try {
|
|
32
|
-
const available = await
|
|
26
|
+
const available = await chunkJSJZWA43_js.isAiAvailable();
|
|
33
27
|
if (cancelled) {
|
|
34
28
|
return;
|
|
35
29
|
}
|
|
@@ -37,7 +31,7 @@ function useAiChat(bridge, config) {
|
|
|
37
31
|
setState("unavailable");
|
|
38
32
|
return;
|
|
39
33
|
}
|
|
40
|
-
const built = await
|
|
34
|
+
const built = await chunkJSJZWA43_js.createAiChatSession(bridge, configRef.current);
|
|
41
35
|
if (cancelled) {
|
|
42
36
|
return;
|
|
43
37
|
}
|
|
@@ -143,7 +137,7 @@ function withDeckContext(inner, bridge, strategy) {
|
|
|
143
137
|
}
|
|
144
138
|
let context = "";
|
|
145
139
|
try {
|
|
146
|
-
context = await
|
|
140
|
+
context = await chunkJSJZWA43_js.buildDeckContext(bridge, { strategy, focus: {} });
|
|
147
141
|
} catch {
|
|
148
142
|
context = "";
|
|
149
143
|
}
|
|
@@ -206,7 +200,7 @@ function useAiConversation(useChat, session, config, bridge, options = {}) {
|
|
|
206
200
|
continue;
|
|
207
201
|
}
|
|
208
202
|
seen.add(call.toolCallId);
|
|
209
|
-
onToolTargetRef.current?.(
|
|
203
|
+
onToolTargetRef.current?.(chunkJSJZWA43_js.toolCanvasTarget(call.toolName, call.input));
|
|
210
204
|
}
|
|
211
205
|
}, [chat.messages]);
|
|
212
206
|
const send = react.useCallback(
|
|
@@ -282,7 +276,7 @@ function deriveTitle(messages) {
|
|
|
282
276
|
}
|
|
283
277
|
function useAiHistory(input) {
|
|
284
278
|
const { deckId, messages, setMessages } = input;
|
|
285
|
-
const store = react.useMemo(() => input.store ??
|
|
279
|
+
const store = react.useMemo(() => input.store ?? chunkJSJZWA43_js.createChatHistoryStore(), [input.store]);
|
|
286
280
|
const [activeChatId, setActiveChatId] = react.useState(newChatId);
|
|
287
281
|
const [chats, setChats] = react.useState([]);
|
|
288
282
|
const createdAtRef = react.useRef(Date.now());
|
|
@@ -425,7 +419,7 @@ function AiComposer({
|
|
|
425
419
|
disabled: value.trim().length === 0,
|
|
426
420
|
title: t("pptx.ai.send"),
|
|
427
421
|
"aria-label": t("pptx.ai.send"),
|
|
428
|
-
className:
|
|
422
|
+
className: chunkNFJLF7TX_js.cn(
|
|
429
423
|
"shrink-0 rounded-sm p-1.5 transition-colors",
|
|
430
424
|
value.trim().length === 0 ? "text-muted-foreground/50" : "bg-primary text-primary-foreground hover:bg-primary/90"
|
|
431
425
|
),
|
|
@@ -451,15 +445,15 @@ function AiFocusBar({
|
|
|
451
445
|
onClearPicks
|
|
452
446
|
}) {
|
|
453
447
|
const { t } = reactI18next.useTranslation();
|
|
454
|
-
const chips =
|
|
455
|
-
const twoTables =
|
|
448
|
+
const chips = chunkJSJZWA43_js.focusTargetChips(targets, slides);
|
|
449
|
+
const twoTables = chunkJSJZWA43_js.isTwoTableFocus(targets, slides);
|
|
456
450
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-b border-border bg-secondary/30", children: [
|
|
457
451
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-1 px-2.5 py-1.5", children: [
|
|
458
452
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[10px] font-semibold uppercase tracking-wide text-muted-foreground", children: t("pptx.ai.focusScope") }),
|
|
459
453
|
chips.map((chip) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
460
454
|
"span",
|
|
461
455
|
{
|
|
462
|
-
className:
|
|
456
|
+
className: chunkNFJLF7TX_js.cn(
|
|
463
457
|
"inline-flex max-w-[10rem] items-center rounded-full px-2 py-0.5 text-[11px]",
|
|
464
458
|
hasPicks || isPinned ? "bg-primary/15 text-primary" : "bg-muted text-muted-foreground"
|
|
465
459
|
),
|
|
@@ -492,7 +486,7 @@ function AiFocusBar({
|
|
|
492
486
|
title: t("pptx.ai.pickElement"),
|
|
493
487
|
"aria-label": t("pptx.ai.pickAria"),
|
|
494
488
|
"aria-pressed": pickMode,
|
|
495
|
-
className:
|
|
489
|
+
className: chunkNFJLF7TX_js.cn(
|
|
496
490
|
"rounded-sm p-1",
|
|
497
491
|
pickMode ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-accent"
|
|
498
492
|
),
|
|
@@ -571,7 +565,7 @@ function AiHistoryList({ chats, activeChatId, onResume, onDelete }) {
|
|
|
571
565
|
{
|
|
572
566
|
type: "button",
|
|
573
567
|
onClick: () => onResume(chat.id),
|
|
574
|
-
className:
|
|
568
|
+
className: chunkNFJLF7TX_js.cn(
|
|
575
569
|
"flex min-w-0 flex-1 items-start gap-2 rounded-sm px-2 py-1.5 text-left hover:bg-accent",
|
|
576
570
|
chat.id === activeChatId && "bg-accent/60"
|
|
577
571
|
),
|
|
@@ -726,26 +720,26 @@ function AiToolCallCard({ part }) {
|
|
|
726
720
|
const failed = part.state === "output-error";
|
|
727
721
|
const done = part.state === "output-available";
|
|
728
722
|
const running = !failed && !done;
|
|
729
|
-
const activity =
|
|
723
|
+
const activity = chunkJSJZWA43_js.describeToolActivity(part.toolName, part.input, running ? "present" : "past");
|
|
730
724
|
const Icon = ICONS[activity.icon] ?? lu.LuWrench;
|
|
731
|
-
const rawSummary =
|
|
725
|
+
const rawSummary = chunkJSJZWA43_js.summarizeToolArgs(part.input);
|
|
732
726
|
const statusLabel = failed ? t("pptx.ai.toolFailed") : done ? t("pptx.ai.toolDone") : t("pptx.ai.toolRunning");
|
|
733
727
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-[12px]", children: [
|
|
734
728
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
735
729
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
736
730
|
Icon,
|
|
737
731
|
{
|
|
738
|
-
className:
|
|
732
|
+
className: chunkNFJLF7TX_js.cn(
|
|
739
733
|
"w-3.5 h-3.5 shrink-0",
|
|
740
734
|
failed ? "text-destructive" : "text-muted-foreground"
|
|
741
735
|
)
|
|
742
736
|
}
|
|
743
737
|
),
|
|
744
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
738
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: chunkNFJLF7TX_js.cn("truncate", failed ? "text-destructive" : "text-foreground"), children: activity.label }),
|
|
745
739
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
746
740
|
"span",
|
|
747
741
|
{
|
|
748
|
-
className:
|
|
742
|
+
className: chunkNFJLF7TX_js.cn(
|
|
749
743
|
"ml-auto inline-flex items-center gap-1 rounded-sm px-1.5 py-0.5 text-[10px]",
|
|
750
744
|
failed ? "bg-destructive/15 text-destructive" : done ? "bg-primary/10 text-primary" : "bg-muted text-muted-foreground"
|
|
751
745
|
),
|
|
@@ -762,7 +756,7 @@ function AiToolCallCard({ part }) {
|
|
|
762
756
|
rawSummary && /* @__PURE__ */ jsxRuntime.jsxs("details", { className: "group mt-0.5 pl-5", children: [
|
|
763
757
|
/* @__PURE__ */ jsxRuntime.jsx("summary", { className: "cursor-pointer list-none text-[10px] text-muted-foreground/70 hover:text-muted-foreground", children: t("pptx.ai.toolDetails") }),
|
|
764
758
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-0.5 break-words font-mono text-[10px] text-muted-foreground/80", children: [
|
|
765
|
-
|
|
759
|
+
chunkJSJZWA43_js.toolLabel(part.toolName),
|
|
766
760
|
": ",
|
|
767
761
|
rawSummary
|
|
768
762
|
] })
|
|
@@ -793,7 +787,7 @@ function AiMessageList({ messages, isStreaming, bridge }) {
|
|
|
793
787
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
794
788
|
"div",
|
|
795
789
|
{
|
|
796
|
-
className:
|
|
790
|
+
className: chunkNFJLF7TX_js.cn(
|
|
797
791
|
"mt-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-full",
|
|
798
792
|
isUser ? "bg-secondary text-muted-foreground" : "bg-primary/15 text-primary"
|
|
799
793
|
),
|
|
@@ -840,7 +834,7 @@ function AiMessageList({ messages, isStreaming, bridge }) {
|
|
|
840
834
|
}
|
|
841
835
|
function AiProposalCard({ proposal, onAccept, onReject }) {
|
|
842
836
|
const { t } = reactI18next.useTranslation();
|
|
843
|
-
const lines = proposal.summary.map(
|
|
837
|
+
const lines = proposal.summary.map(chunkJSJZWA43_js.humanizeDiffLine);
|
|
844
838
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-md border border-primary/40 bg-primary/5 p-2.5", children: [
|
|
845
839
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-1.5 text-[11px] font-semibold uppercase tracking-wide text-primary", children: t("pptx.ai.proposedChange") }),
|
|
846
840
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-[12px] font-medium text-foreground", children: proposal.label }),
|
|
@@ -1048,7 +1042,7 @@ function AiChatPanel({
|
|
|
1048
1042
|
}) {
|
|
1049
1043
|
const { t } = reactI18next.useTranslation();
|
|
1050
1044
|
const { state, session, initError } = useAiChat(bridge, config);
|
|
1051
|
-
const deckId = react.useMemo(() => deckIdFromBridge(bridge), [bridge]);
|
|
1045
|
+
const deckId = react.useMemo(() => chunkJSJZWA43_js.deckIdFromBridge(bridge), [bridge]);
|
|
1052
1046
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1053
1047
|
"div",
|
|
1054
1048
|
{
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUSAJMMF2_js = require('./chunk-USAJMMF2.js');
|
|
4
4
|
require('./chunk-4VNS5WPM.js');
|
|
5
5
|
var react = require('react');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -14,7 +14,7 @@ function Model3DScene({ modelUrl, interactive, width, height }) {
|
|
|
14
14
|
return;
|
|
15
15
|
}
|
|
16
16
|
let disposed = false;
|
|
17
|
-
void
|
|
17
|
+
void chunkUSAJMMF2_js.mountModel3D(container, modelUrl, { width, height, interactive }).then((handle) => {
|
|
18
18
|
if (disposed) {
|
|
19
19
|
handle.dispose();
|
|
20
20
|
} else {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PowerPointViewer-Du7u4INi.d.ts","names":[],"sources":["../src/viewer/utils/animation-effects.ts","../src/viewer/PowerPointViewer.tsx"],"mappings":";;;;;iBAmBgB,yBACf,QAAQ,iCACR,kBAAkB,sBAChB,MAAM;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"PowerPointViewer-Du7u4INi.d.ts","names":[],"sources":["../src/viewer/utils/animation-effects.ts","../src/viewer/PowerPointViewer.tsx"],"mappings":";;;;;iBAmBgB,yBACf,QAAQ,iCACR,kBAAkB,sBAChB,MAAM;;;;;;;;;;;;cCyFI,kCAAgB,0BAAA,wCAAA,cAAA"}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUSAJMMF2_js = require('./chunk-USAJMMF2.js');
|
|
4
4
|
require('./chunk-4VNS5WPM.js');
|
|
5
5
|
var react = require('react');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -25,7 +25,7 @@ function SurfaceChart3DScene({
|
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
27
|
let disposed = false;
|
|
28
|
-
void
|
|
28
|
+
void chunkUSAJMMF2_js.mountSurfaceChart3D(container, {
|
|
29
29
|
cols,
|
|
30
30
|
rows,
|
|
31
31
|
heightMap,
|
|
Binary file
|
|
Binary file
|