pptx-react-viewer 2.16.4 → 2.16.6
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-7DDN4QUA.mjs → AiChatPanel-NQFSMKIJ.mjs} +3 -3
- package/dist/AiChatPanel-NQFSMKIJ.mjs.br +0 -0
- package/dist/AiChatPanel-NQFSMKIJ.mjs.gz +0 -0
- package/dist/{AiChatPanel-KEORKCTT.js → AiChatPanel-T6UN6LME.js} +22 -22
- package/dist/AiChatPanel-T6UN6LME.js.br +0 -0
- package/dist/AiChatPanel-T6UN6LME.js.gz +0 -0
- package/dist/{Model3DScene-DEAQMMUS.mjs → Model3DScene-4D4GSRIB.mjs} +1 -1
- package/dist/Model3DScene-4D4GSRIB.mjs.br +0 -0
- package/dist/Model3DScene-4D4GSRIB.mjs.gz +0 -0
- package/dist/{Model3DScene-SBUYEWHL.js → Model3DScene-SIST7CIH.js} +2 -2
- package/dist/Model3DScene-SIST7CIH.js.br +0 -0
- package/dist/Model3DScene-SIST7CIH.js.gz +0 -0
- package/dist/PowerPointViewer-Du7u4INi.d.ts.map +1 -1
- package/dist/{SurfaceChart3DScene-I5D54YQ3.js → SurfaceChart3DScene-GRM24VBC.js} +2 -2
- package/dist/SurfaceChart3DScene-GRM24VBC.js.br +0 -0
- package/dist/SurfaceChart3DScene-GRM24VBC.js.gz +0 -0
- package/dist/{SurfaceChart3DScene-TXGS2PBK.mjs → SurfaceChart3DScene-ZT7L27U4.mjs} +1 -1
- package/dist/{SurfaceChart3DScene-TXGS2PBK.mjs.br → SurfaceChart3DScene-ZT7L27U4.mjs.br} +0 -0
- package/dist/SurfaceChart3DScene-ZT7L27U4.mjs.gz +0 -0
- package/dist/{chunk-PLBS7OL2.mjs → chunk-6F76GHPE.mjs} +14 -7
- package/dist/chunk-6F76GHPE.mjs.br +0 -0
- package/dist/chunk-6F76GHPE.mjs.gz +0 -0
- package/dist/{chunk-FQ3FTNKV.js → chunk-DYGKE2LY.js} +1086 -1056
- package/dist/chunk-DYGKE2LY.js.br +0 -0
- package/dist/chunk-DYGKE2LY.js.gz +0 -0
- package/dist/{chunk-RBQUSVYR.js → chunk-GUDJDY4J.js} +348 -342
- package/dist/chunk-GUDJDY4J.js.br +0 -0
- package/dist/chunk-GUDJDY4J.js.gz +0 -0
- package/dist/{chunk-HAQDKQ52.js → chunk-H36QL5T5.js} +267 -260
- package/dist/chunk-H36QL5T5.js.br +0 -0
- package/dist/chunk-H36QL5T5.js.gz +0 -0
- package/dist/{chunk-LLTUDPRE.mjs → chunk-NI5GSVZU.mjs} +10 -4
- package/dist/chunk-NI5GSVZU.mjs.br +0 -0
- package/dist/chunk-NI5GSVZU.mjs.gz +0 -0
- package/dist/{chunk-23WSCMWN.mjs → chunk-PUBYHZYJ.mjs} +322 -151
- package/dist/chunk-PUBYHZYJ.mjs.br +0 -0
- package/dist/chunk-PUBYHZYJ.mjs.gz +0 -0
- package/dist/{chunk-MZ47MV52.js → chunk-RZYOOWZN.js} +323 -150
- package/dist/chunk-RZYOOWZN.js.br +0 -0
- package/dist/chunk-RZYOOWZN.js.gz +0 -0
- package/dist/{chunk-J4QZVO3S.mjs → chunk-VDQD3ZOU.mjs} +1 -1
- package/dist/chunk-VDQD3ZOU.mjs.br +0 -0
- package/dist/{chunk-J4QZVO3S.mjs.gz → chunk-VDQD3ZOU.mjs.gz} +0 -0
- package/dist/{chunk-GZ2V3PWN.js → chunk-YDYAOW6D.js} +3 -3
- package/dist/chunk-YDYAOW6D.js.br +0 -0
- package/dist/{chunk-GZ2V3PWN.js.gz → chunk-YDYAOW6D.js.gz} +0 -0
- package/dist/{chunk-GSAOP4Z4.mjs → chunk-YZHBUMVU.mjs} +41 -11
- package/dist/chunk-YZHBUMVU.mjs.br +0 -0
- package/dist/chunk-YZHBUMVU.mjs.gz +0 -0
- package/dist/index.d.ts +19 -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 -4
- package/dist/internals.d.ts.map +1 -1
- package/dist/internals.js +78 -78
- package/dist/internals.js.br +0 -0
- 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/{useViewerBuildingBlocks-CBZrHhxl.d.ts → useViewerBuildingBlocks-DpzU8NZ_.d.ts} +3 -1
- package/dist/useViewerBuildingBlocks-DpzU8NZ_.d.ts.map +1 -0
- package/dist/viewer/index.d.ts +17 -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-7DDN4QUA.mjs.br +0 -0
- package/dist/AiChatPanel-7DDN4QUA.mjs.gz +0 -0
- package/dist/AiChatPanel-KEORKCTT.js.br +0 -0
- package/dist/AiChatPanel-KEORKCTT.js.gz +0 -0
- package/dist/Model3DScene-DEAQMMUS.mjs.br +0 -0
- package/dist/Model3DScene-DEAQMMUS.mjs.gz +0 -0
- package/dist/Model3DScene-SBUYEWHL.js.br +0 -0
- package/dist/Model3DScene-SBUYEWHL.js.gz +0 -0
- package/dist/SurfaceChart3DScene-I5D54YQ3.js.br +0 -0
- package/dist/SurfaceChart3DScene-I5D54YQ3.js.gz +0 -0
- package/dist/SurfaceChart3DScene-TXGS2PBK.mjs.gz +0 -0
- package/dist/chunk-23WSCMWN.mjs.br +0 -0
- package/dist/chunk-23WSCMWN.mjs.gz +0 -0
- package/dist/chunk-FQ3FTNKV.js.br +0 -0
- package/dist/chunk-FQ3FTNKV.js.gz +0 -0
- package/dist/chunk-GSAOP4Z4.mjs.br +0 -0
- package/dist/chunk-GSAOP4Z4.mjs.gz +0 -0
- package/dist/chunk-GZ2V3PWN.js.br +0 -0
- package/dist/chunk-HAQDKQ52.js.br +0 -0
- package/dist/chunk-HAQDKQ52.js.gz +0 -0
- package/dist/chunk-J4QZVO3S.mjs.br +0 -0
- package/dist/chunk-LLTUDPRE.mjs.br +0 -0
- package/dist/chunk-LLTUDPRE.mjs.gz +0 -0
- package/dist/chunk-MZ47MV52.js.br +0 -0
- package/dist/chunk-MZ47MV52.js.gz +0 -0
- package/dist/chunk-PLBS7OL2.mjs.br +0 -0
- package/dist/chunk-PLBS7OL2.mjs.gz +0 -0
- package/dist/chunk-RBQUSVYR.js.br +0 -0
- package/dist/chunk-RBQUSVYR.js.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.5](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@2.16.5) - 2026-08-10
|
|
8
|
+
|
|
9
|
+
## [2.16.4](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@2.16.4) - 2026-08-10
|
|
10
|
+
|
|
7
11
|
## [2.16.3](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@2.16.3) - 2026-08-10
|
|
8
12
|
|
|
9
13
|
### Dependencies
|
|
@@ -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 { isAiAvailable, createAiChatSession, toolCanvasTarget, createChatHistoryStore, focusTargetChips, isTwoTableFocus, humanizeDiffLine, buildDeckContext, describeToolActivity, summarizeToolArgs, toolLabel } from './chunk-VDQD3ZOU.mjs';
|
|
2
|
+
import { cn } from './chunk-6F76GHPE.mjs';
|
|
3
3
|
import './chunk-5IUEPQTK.mjs';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-PUBYHZYJ.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';
|
|
Binary file
|
|
Binary file
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkYDYAOW6D_js = require('./chunk-YDYAOW6D.js');
|
|
4
|
+
var chunkH36QL5T5_js = require('./chunk-H36QL5T5.js');
|
|
5
5
|
require('./chunk-DVZF4ARG.js');
|
|
6
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-RZYOOWZN.js');
|
|
7
7
|
require('./chunk-4VNS5WPM.js');
|
|
8
8
|
var react = require('react');
|
|
9
9
|
var reactI18next = require('react-i18next');
|
|
@@ -29,7 +29,7 @@ function useAiChat(bridge, config) {
|
|
|
29
29
|
setInitError(void 0);
|
|
30
30
|
void (async () => {
|
|
31
31
|
try {
|
|
32
|
-
const available = await
|
|
32
|
+
const available = await chunkYDYAOW6D_js.isAiAvailable();
|
|
33
33
|
if (cancelled) {
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
@@ -37,7 +37,7 @@ function useAiChat(bridge, config) {
|
|
|
37
37
|
setState("unavailable");
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
|
-
const built = await
|
|
40
|
+
const built = await chunkYDYAOW6D_js.createAiChatSession(bridge, configRef.current);
|
|
41
41
|
if (cancelled) {
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
@@ -143,7 +143,7 @@ function withDeckContext(inner, bridge, strategy) {
|
|
|
143
143
|
}
|
|
144
144
|
let context = "";
|
|
145
145
|
try {
|
|
146
|
-
context = await
|
|
146
|
+
context = await chunkYDYAOW6D_js.buildDeckContext(bridge, { strategy, focus: {} });
|
|
147
147
|
} catch {
|
|
148
148
|
context = "";
|
|
149
149
|
}
|
|
@@ -206,7 +206,7 @@ function useAiConversation(useChat, session, config, bridge, options = {}) {
|
|
|
206
206
|
continue;
|
|
207
207
|
}
|
|
208
208
|
seen.add(call.toolCallId);
|
|
209
|
-
onToolTargetRef.current?.(
|
|
209
|
+
onToolTargetRef.current?.(chunkYDYAOW6D_js.toolCanvasTarget(call.toolName, call.input));
|
|
210
210
|
}
|
|
211
211
|
}, [chat.messages]);
|
|
212
212
|
const send = react.useCallback(
|
|
@@ -282,7 +282,7 @@ function deriveTitle(messages) {
|
|
|
282
282
|
}
|
|
283
283
|
function useAiHistory(input) {
|
|
284
284
|
const { deckId, messages, setMessages } = input;
|
|
285
|
-
const store = react.useMemo(() => input.store ??
|
|
285
|
+
const store = react.useMemo(() => input.store ?? chunkYDYAOW6D_js.createChatHistoryStore(), [input.store]);
|
|
286
286
|
const [activeChatId, setActiveChatId] = react.useState(newChatId);
|
|
287
287
|
const [chats, setChats] = react.useState([]);
|
|
288
288
|
const createdAtRef = react.useRef(Date.now());
|
|
@@ -425,7 +425,7 @@ function AiComposer({
|
|
|
425
425
|
disabled: value.trim().length === 0,
|
|
426
426
|
title: t("pptx.ai.send"),
|
|
427
427
|
"aria-label": t("pptx.ai.send"),
|
|
428
|
-
className:
|
|
428
|
+
className: chunkH36QL5T5_js.cn(
|
|
429
429
|
"shrink-0 rounded-sm p-1.5 transition-colors",
|
|
430
430
|
value.trim().length === 0 ? "text-muted-foreground/50" : "bg-primary text-primary-foreground hover:bg-primary/90"
|
|
431
431
|
),
|
|
@@ -451,15 +451,15 @@ function AiFocusBar({
|
|
|
451
451
|
onClearPicks
|
|
452
452
|
}) {
|
|
453
453
|
const { t } = reactI18next.useTranslation();
|
|
454
|
-
const chips =
|
|
455
|
-
const twoTables =
|
|
454
|
+
const chips = chunkYDYAOW6D_js.focusTargetChips(targets, slides);
|
|
455
|
+
const twoTables = chunkYDYAOW6D_js.isTwoTableFocus(targets, slides);
|
|
456
456
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-b border-border bg-secondary/30", children: [
|
|
457
457
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-1 px-2.5 py-1.5", children: [
|
|
458
458
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[10px] font-semibold uppercase tracking-wide text-muted-foreground", children: t("pptx.ai.focusScope") }),
|
|
459
459
|
chips.map((chip) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
460
460
|
"span",
|
|
461
461
|
{
|
|
462
|
-
className:
|
|
462
|
+
className: chunkH36QL5T5_js.cn(
|
|
463
463
|
"inline-flex max-w-[10rem] items-center rounded-full px-2 py-0.5 text-[11px]",
|
|
464
464
|
hasPicks || isPinned ? "bg-primary/15 text-primary" : "bg-muted text-muted-foreground"
|
|
465
465
|
),
|
|
@@ -492,7 +492,7 @@ function AiFocusBar({
|
|
|
492
492
|
title: t("pptx.ai.pickElement"),
|
|
493
493
|
"aria-label": t("pptx.ai.pickAria"),
|
|
494
494
|
"aria-pressed": pickMode,
|
|
495
|
-
className:
|
|
495
|
+
className: chunkH36QL5T5_js.cn(
|
|
496
496
|
"rounded-sm p-1",
|
|
497
497
|
pickMode ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-accent"
|
|
498
498
|
),
|
|
@@ -571,7 +571,7 @@ function AiHistoryList({ chats, activeChatId, onResume, onDelete }) {
|
|
|
571
571
|
{
|
|
572
572
|
type: "button",
|
|
573
573
|
onClick: () => onResume(chat.id),
|
|
574
|
-
className:
|
|
574
|
+
className: chunkH36QL5T5_js.cn(
|
|
575
575
|
"flex min-w-0 flex-1 items-start gap-2 rounded-sm px-2 py-1.5 text-left hover:bg-accent",
|
|
576
576
|
chat.id === activeChatId && "bg-accent/60"
|
|
577
577
|
),
|
|
@@ -726,26 +726,26 @@ function AiToolCallCard({ part }) {
|
|
|
726
726
|
const failed = part.state === "output-error";
|
|
727
727
|
const done = part.state === "output-available";
|
|
728
728
|
const running = !failed && !done;
|
|
729
|
-
const activity =
|
|
729
|
+
const activity = chunkYDYAOW6D_js.describeToolActivity(part.toolName, part.input, running ? "present" : "past");
|
|
730
730
|
const Icon = ICONS[activity.icon] ?? lu.LuWrench;
|
|
731
|
-
const rawSummary =
|
|
731
|
+
const rawSummary = chunkYDYAOW6D_js.summarizeToolArgs(part.input);
|
|
732
732
|
const statusLabel = failed ? t("pptx.ai.toolFailed") : done ? t("pptx.ai.toolDone") : t("pptx.ai.toolRunning");
|
|
733
733
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-[12px]", children: [
|
|
734
734
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
735
735
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
736
736
|
Icon,
|
|
737
737
|
{
|
|
738
|
-
className:
|
|
738
|
+
className: chunkH36QL5T5_js.cn(
|
|
739
739
|
"w-3.5 h-3.5 shrink-0",
|
|
740
740
|
failed ? "text-destructive" : "text-muted-foreground"
|
|
741
741
|
)
|
|
742
742
|
}
|
|
743
743
|
),
|
|
744
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
744
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: chunkH36QL5T5_js.cn("truncate", failed ? "text-destructive" : "text-foreground"), children: activity.label }),
|
|
745
745
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
746
746
|
"span",
|
|
747
747
|
{
|
|
748
|
-
className:
|
|
748
|
+
className: chunkH36QL5T5_js.cn(
|
|
749
749
|
"ml-auto inline-flex items-center gap-1 rounded-sm px-1.5 py-0.5 text-[10px]",
|
|
750
750
|
failed ? "bg-destructive/15 text-destructive" : done ? "bg-primary/10 text-primary" : "bg-muted text-muted-foreground"
|
|
751
751
|
),
|
|
@@ -762,7 +762,7 @@ function AiToolCallCard({ part }) {
|
|
|
762
762
|
rawSummary && /* @__PURE__ */ jsxRuntime.jsxs("details", { className: "group mt-0.5 pl-5", children: [
|
|
763
763
|
/* @__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
764
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-0.5 break-words font-mono text-[10px] text-muted-foreground/80", children: [
|
|
765
|
-
|
|
765
|
+
chunkYDYAOW6D_js.toolLabel(part.toolName),
|
|
766
766
|
": ",
|
|
767
767
|
rawSummary
|
|
768
768
|
] })
|
|
@@ -793,7 +793,7 @@ function AiMessageList({ messages, isStreaming, bridge }) {
|
|
|
793
793
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
794
794
|
"div",
|
|
795
795
|
{
|
|
796
|
-
className:
|
|
796
|
+
className: chunkH36QL5T5_js.cn(
|
|
797
797
|
"mt-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-full",
|
|
798
798
|
isUser ? "bg-secondary text-muted-foreground" : "bg-primary/15 text-primary"
|
|
799
799
|
),
|
|
@@ -840,7 +840,7 @@ function AiMessageList({ messages, isStreaming, bridge }) {
|
|
|
840
840
|
}
|
|
841
841
|
function AiProposalCard({ proposal, onAccept, onReject }) {
|
|
842
842
|
const { t } = reactI18next.useTranslation();
|
|
843
|
-
const lines = proposal.summary.map(
|
|
843
|
+
const lines = proposal.summary.map(chunkYDYAOW6D_js.humanizeDiffLine);
|
|
844
844
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-md border border-primary/40 bg-primary/5 p-2.5", children: [
|
|
845
845
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-1.5 text-[11px] font-semibold uppercase tracking-wide text-primary", children: t("pptx.ai.proposedChange") }),
|
|
846
846
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-[12px] font-medium text-foreground", children: proposal.label }),
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRZYOOWZN_js = require('./chunk-RZYOOWZN.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 chunkRZYOOWZN_js.mountModel3D(container, modelUrl, { width, height, interactive }).then((handle) => {
|
|
18
18
|
if (disposed) {
|
|
19
19
|
handle.dispose();
|
|
20
20
|
} else {
|
|
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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRZYOOWZN_js = require('./chunk-RZYOOWZN.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 chunkRZYOOWZN_js.mountSurfaceChart3D(container, {
|
|
29
29
|
cols,
|
|
30
30
|
rows,
|
|
31
31
|
heightMap,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { translationsEn } from './chunk-5IUEPQTK.mjs';
|
|
2
|
-
import { SHAPE_PRESET_DEFS, computeValueRangeForChart, VIEWER_SHORTCUT_REFERENCE, getAnimationInitialStyle, cloneHistorySnapshot, hasShapeProperties, isTemplateElement, getImageFitStyle, isImageLikeElement, runMediaCommand, findMediaElementByElementId, mediaPlaybackAttributes, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, getKinsokuLineBreakStyles, buildTextBody3DSceneStyle, resolveParagraphRtl, resolveParagraphAlign, resolveCssTextAlign, resolveParagraphStrutFontSize, colorWithOpacity, normalizeHexColor, build3DExtrusionData, isIdentityRectClip, getResolvedShapeClipPath, isStrokeOnlyPresetElement, normalizeStrokeDashType, buildCssGradientFromShapeStyle, buildShadowCssFromShapeStyle, buildInnerShadowCssFromShapeStyle, suppressesCssBorder, buildMultiLayerShadowCss, buildGlowBoxShadow, getCompoundLineBoxShadow, getSoftEdgeFilterId, getEffectDagFilter, buildPatternFillCss, buildReflectionCss, getCssBorderDashStyle, getCompoundLineBorderWidth, getSvgStrokeDasharray, buildSvgGradientDef, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, computeSelectionRect, DEFAULT_FONT_FAMILY, rectToCells, isCellInRect, buildChartViewModel, buildNotesPdfBytes, buildSlidesPdfBytes, buildPreviewAnimation, buildMotionPathPreview, getRoundRectRadiusPx2, mediaFallbackVisual, registerPersistentAudio, proportionalLineHeight, substituteFieldText, resolveUnderlineDecorationStyle, resolveAutoFitFontScale, getSubstituteFontFamily, parsePanoseString, hasDistinctScriptFonts, pieceLetterSpacing, resolveMetricTrackingPx, buildTextReflectionCss, getTextAlphaOpacity, buildTextRunFilterChain, buildTextShadowCss, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, sanitizeGradientStops, getGradientTileFlipCss, getGradientTileRectCss, apply3dEffects, clampUnitInterval, customGeometryPathsToSvgSubpaths, svgGradientFillRef, computeColumnBoundaries, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, getPatternSvg, ooxmlDashToCssBorderStyle, cell3DBevelCss, getChartStylePalette, chartAreaFill, computeLayout, valueToY, formatAxisValue, computeLayoutOptions, splitSeriesByAxis, computeValueRange, getSecondaryValueAxis, seriesColor, paletteColor, resolveRegionCode, normalizeValue, sequentialColorScale, mediaFallbackIcon, mediaFallbackLabelKey, MEDIA_CHROME_ATTRIBUTE, convertOmmlToMathMl, sanitizeMathMl, buildTextFillCss, resolvePictureBullet, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, resolveFontRefIdx, tintColor2, shadeColor2, ooxmlGradientAngleToCssDegrees, generateLogTicks, formatAxisValueWithUnits, getDisplayUnitLabel, splitRunForMetrics, hexToRgbChannels, chartPartToAttrs, segmentByScript, resolveFontForScript } from './chunk-
|
|
2
|
+
import { SHAPE_PRESET_DEFS, computeValueRangeForChart, VIEWER_SHORTCUT_REFERENCE, getAnimationInitialStyle, cloneHistorySnapshot, hasShapeProperties, isTemplateElement, getImageFitStyle, isImageLikeElement, runMediaCommand, findMediaElementByElementId, mediaPlaybackAttributes, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, getKinsokuLineBreakStyles, buildTextBody3DSceneStyle, resolveParagraphRtl, resolveParagraphAlign, resolveCssTextAlign, resolveParagraphStrutFontSize, colorWithOpacity, normalizeHexColor, build3DExtrusionData, isIdentityRectClip, getResolvedShapeClipPath, isStrokeOnlyPresetElement, normalizeStrokeDashType, buildCssGradientFromShapeStyle, buildShadowCssFromShapeStyle, buildInnerShadowCssFromShapeStyle, suppressesCssBorder, buildMultiLayerShadowCss, buildGlowBoxShadow, getCompoundLineBoxShadow, getSoftEdgeFilterId, getEffectDagFilter, buildPatternFillCss, buildReflectionCss, getCssBorderDashStyle, getCompoundLineBorderWidth, getSvgStrokeDasharray, buildSvgGradientDef, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, computeSelectionRect, DEFAULT_FONT_FAMILY, rectToCells, isCellInRect, buildChartViewModel, centeredSvgTextLines, buildNotesPdfBytes, buildSlidesPdfBytes, buildPreviewAnimation, buildMotionPathPreview, getRoundRectRadiusPx2, mediaFallbackVisual, registerPersistentAudio, proportionalLineHeight, substituteFieldText, resolveUnderlineDecorationStyle, resolveAutoFitFontScale, getSubstituteFontFamily, parsePanoseString, hasDistinctScriptFonts, pieceLetterSpacing, resolveMetricTrackingPx, buildTextReflectionCss, getTextAlphaOpacity, buildTextRunFilterChain, buildTextShadowCss, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, sanitizeGradientStops, getGradientTileFlipCss, getGradientTileRectCss, apply3dEffects, clampUnitInterval, customGeometryPathsToSvgSubpaths, svgGradientFillRef, computeColumnBoundaries, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, getPatternSvg, ooxmlDashToCssBorderStyle, cell3DBevelCss, getChartStylePalette, chartAreaFill, computeLayout, valueToY, formatAxisValue, computeLayoutOptions, splitSeriesByAxis, computeValueRange, getSecondaryValueAxis, seriesColor, paletteColor, resolveRegionCode, normalizeValue, sequentialColorScale, mediaFallbackIcon, mediaFallbackLabelKey, MEDIA_CHROME_ATTRIBUTE, convertOmmlToMathMl, sanitizeMathMl, buildTextFillCss, resolvePictureBullet, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, resolveFontRefIdx, tintColor2, shadeColor2, ooxmlGradientAngleToCssDegrees, generateLogTicks, formatAxisValueWithUnits, getDisplayUnitLabel, splitRunForMetrics, hexToRgbChannels, chartPartToAttrs, segmentByScript, resolveFontForScript } from './chunk-PUBYHZYJ.mjs';
|
|
3
3
|
import { clsx } from 'clsx';
|
|
4
4
|
import { twMerge } from 'tailwind-merge';
|
|
5
5
|
import React6, { useState, useEffect, useMemo, Suspense, useRef, useCallback, useLayoutEffect } from 'react';
|
|
@@ -3527,9 +3527,12 @@ function getTableCellBandStyle(element, rowIndex, cellIndex, rowCount, columnCou
|
|
|
3527
3527
|
}
|
|
3528
3528
|
if (td.firstRowHeader && rowIndex === 0) {
|
|
3529
3529
|
style.fontWeight = 700;
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3530
|
+
if (styleEntry?.firstRowFill?.noFill) {
|
|
3531
|
+
style.backgroundColor = "transparent";
|
|
3532
|
+
} else {
|
|
3533
|
+
style.backgroundColor = resolveFill(styleEntry?.firstRowFill, "rgba(68, 114, 196, 0.85)");
|
|
3534
|
+
style.color = "#ffffff";
|
|
3535
|
+
}
|
|
3533
3536
|
applyTableStyleText(styleEntry?.firstRowText, colorScheme, style, fontScheme);
|
|
3534
3537
|
applied = true;
|
|
3535
3538
|
}
|
|
@@ -6181,7 +6184,7 @@ function FailedToLoad() {
|
|
|
6181
6184
|
var LazySurfaceChart3DScene = React6.lazy(
|
|
6182
6185
|
async () => {
|
|
6183
6186
|
try {
|
|
6184
|
-
return await import('./SurfaceChart3DScene-
|
|
6187
|
+
return await import('./SurfaceChart3DScene-ZT7L27U4.mjs');
|
|
6185
6188
|
} catch {
|
|
6186
6189
|
return { default: FailedToLoad };
|
|
6187
6190
|
}
|
|
@@ -6992,6 +6995,7 @@ function layoutToCategory(layout) {
|
|
|
6992
6995
|
};
|
|
6993
6996
|
return map[layout] ?? "list";
|
|
6994
6997
|
}
|
|
6998
|
+
var LABEL_WIDTH_FRACTION = 0.82;
|
|
6995
6999
|
function smartArtNodeGroupProps(nodeId, shadow, label2) {
|
|
6996
7000
|
const props = {
|
|
6997
7001
|
"data-smartart-node-id": nodeId,
|
|
@@ -7042,9 +7046,12 @@ function SmartArtNodeText({
|
|
|
7042
7046
|
fontWeight,
|
|
7043
7047
|
fontStyle,
|
|
7044
7048
|
className,
|
|
7045
|
-
anchor = "middle"
|
|
7049
|
+
anchor = "middle",
|
|
7050
|
+
maxWidth
|
|
7046
7051
|
}) {
|
|
7047
|
-
const lines = text
|
|
7052
|
+
const lines = maxWidth !== void 0 ? centeredSvgTextLines(text, fontSize, { maxWidth: maxWidth * LABEL_WIDTH_FRACTION }).map(
|
|
7053
|
+
(line) => line.text
|
|
7054
|
+
) : text.split("\n").filter((l) => l.length > 0);
|
|
7048
7055
|
const lineHeight = fontSize * 1.2;
|
|
7049
7056
|
let startY;
|
|
7050
7057
|
let dominantBaseline;
|
|
Binary file
|
|
Binary file
|