pptx-react-viewer 2.1.0 → 2.2.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 +6 -0
- package/dist/{AiChatPanel-RFBZWMUE.mjs → AiChatPanel-JFCJCR3O.mjs} +3 -3
- package/dist/AiChatPanel-JFCJCR3O.mjs.br +0 -0
- package/dist/AiChatPanel-JFCJCR3O.mjs.gz +0 -0
- package/dist/{AiChatPanel-VCCVHAAI.js → AiChatPanel-S3FWARWG.js} +11 -11
- package/dist/AiChatPanel-S3FWARWG.js.br +0 -0
- package/dist/AiChatPanel-S3FWARWG.js.gz +0 -0
- package/dist/{Model3DScene-RQIGSYGQ.js → Model3DScene-BZK4UHL4.js} +2 -2
- package/dist/Model3DScene-BZK4UHL4.js.br +0 -0
- package/dist/Model3DScene-BZK4UHL4.js.gz +0 -0
- package/dist/{Model3DScene-2M6HVWTE.mjs → Model3DScene-RCZCBW52.mjs} +1 -1
- package/dist/{Model3DScene-2M6HVWTE.mjs.br → Model3DScene-RCZCBW52.mjs.br} +0 -0
- package/dist/Model3DScene-RCZCBW52.mjs.gz +0 -0
- package/dist/{SurfaceChart3DScene-2FVASQGC.js → SurfaceChart3DScene-EGPAMPX4.js} +2 -2
- package/dist/SurfaceChart3DScene-EGPAMPX4.js.br +0 -0
- package/dist/SurfaceChart3DScene-EGPAMPX4.js.gz +0 -0
- package/dist/{SurfaceChart3DScene-EGMWY4CZ.mjs → SurfaceChart3DScene-IRLH4ADG.mjs} +1 -1
- package/dist/{SurfaceChart3DScene-EGMWY4CZ.mjs.br → SurfaceChart3DScene-IRLH4ADG.mjs.br} +0 -0
- package/dist/SurfaceChart3DScene-IRLH4ADG.mjs.gz +0 -0
- package/dist/{chunk-VHO53ZXZ.js → chunk-3KD6S6VM.js} +1102 -829
- package/dist/chunk-3KD6S6VM.js.br +0 -0
- package/dist/chunk-3KD6S6VM.js.gz +0 -0
- package/dist/{chunk-Y4OSELBT.mjs → chunk-6BUR4MJO.mjs} +348 -75
- package/dist/chunk-6BUR4MJO.mjs.br +0 -0
- package/dist/chunk-6BUR4MJO.mjs.gz +0 -0
- package/dist/{chunk-ZRY7NLKS.js → chunk-JPJBOVU7.js} +328 -334
- package/dist/chunk-JPJBOVU7.js.br +0 -0
- package/dist/chunk-JPJBOVU7.js.gz +0 -0
- package/dist/{chunk-NGE7YQTF.mjs → chunk-L4ETDT4F.mjs} +66 -72
- package/dist/chunk-L4ETDT4F.mjs.br +0 -0
- package/dist/chunk-L4ETDT4F.mjs.gz +0 -0
- package/dist/{chunk-2X72MOPZ.mjs → chunk-PZTPX3HK.mjs} +10 -1
- package/dist/chunk-PZTPX3HK.mjs.br +0 -0
- package/dist/chunk-PZTPX3HK.mjs.gz +0 -0
- package/dist/{chunk-27XBWVO5.mjs → chunk-RLK72AOU.mjs} +94 -1
- package/dist/chunk-RLK72AOU.mjs.br +0 -0
- package/dist/{chunk-27XBWVO5.mjs.gz → chunk-RLK72AOU.mjs.gz} +0 -0
- package/dist/{chunk-LDF77JJD.js → chunk-RNZJKGA7.js} +219 -219
- package/dist/chunk-RNZJKGA7.js.br +0 -0
- package/dist/chunk-RNZJKGA7.js.gz +0 -0
- package/dist/{chunk-7DQHWPIB.mjs → chunk-SOHIKHL4.mjs} +3 -3
- package/dist/chunk-SOHIKHL4.mjs.br +0 -0
- package/dist/chunk-SOHIKHL4.mjs.gz +0 -0
- package/dist/{chunk-46Z6MNRS.js → chunk-UTTXH3GH.js} +95 -0
- package/dist/chunk-UTTXH3GH.js.br +0 -0
- package/dist/{chunk-46Z6MNRS.js.gz → chunk-UTTXH3GH.js.gz} +0 -0
- package/dist/{chunk-CUUYYYC5.js → chunk-YIFO3WQO.js} +10 -1
- package/dist/chunk-YIFO3WQO.js.br +0 -0
- package/dist/chunk-YIFO3WQO.js.gz +0 -0
- package/dist/i18n.js +4 -4
- package/dist/i18n.js.br +0 -0
- package/dist/i18n.js.gz +0 -0
- package/dist/i18n.mjs +1 -1
- package/dist/i18n.mjs.br +0 -0
- package/dist/i18n.mjs.gz +0 -0
- package/dist/{index-nAyIdGqF.d.ts → index-CDCSXtK3.d.ts} +32 -16
- package/dist/index-CDCSXtK3.d.ts.map +1 -0
- package/dist/index.js +35 -35
- 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 +42 -14
- package/dist/internals.d.ts.map +1 -1
- package/dist/internals.js +79 -79
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +4 -4
- 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/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 +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-RFBZWMUE.mjs.br +0 -0
- package/dist/AiChatPanel-RFBZWMUE.mjs.gz +0 -0
- package/dist/AiChatPanel-VCCVHAAI.js.br +0 -0
- package/dist/AiChatPanel-VCCVHAAI.js.gz +0 -0
- package/dist/Model3DScene-2M6HVWTE.mjs.gz +0 -0
- package/dist/Model3DScene-RQIGSYGQ.js.br +0 -0
- package/dist/Model3DScene-RQIGSYGQ.js.gz +0 -0
- package/dist/SurfaceChart3DScene-2FVASQGC.js.br +0 -0
- package/dist/SurfaceChart3DScene-2FVASQGC.js.gz +0 -0
- package/dist/SurfaceChart3DScene-EGMWY4CZ.mjs.gz +0 -0
- package/dist/chunk-27XBWVO5.mjs.br +0 -0
- package/dist/chunk-2X72MOPZ.mjs.br +0 -0
- package/dist/chunk-2X72MOPZ.mjs.gz +0 -0
- package/dist/chunk-46Z6MNRS.js.br +0 -0
- package/dist/chunk-7DQHWPIB.mjs.br +0 -0
- package/dist/chunk-7DQHWPIB.mjs.gz +0 -0
- package/dist/chunk-CUUYYYC5.js.br +0 -0
- package/dist/chunk-CUUYYYC5.js.gz +0 -0
- package/dist/chunk-LDF77JJD.js.br +0 -0
- package/dist/chunk-LDF77JJD.js.gz +0 -0
- package/dist/chunk-NGE7YQTF.mjs.br +0 -0
- package/dist/chunk-NGE7YQTF.mjs.gz +0 -0
- package/dist/chunk-VHO53ZXZ.js.br +0 -0
- package/dist/chunk-VHO53ZXZ.js.gz +0 -0
- package/dist/chunk-Y4OSELBT.mjs.br +0 -0
- package/dist/chunk-Y4OSELBT.mjs.gz +0 -0
- package/dist/chunk-ZRY7NLKS.js.br +0 -0
- package/dist/chunk-ZRY7NLKS.js.gz +0 -0
- package/dist/index-nAyIdGqF.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ 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.1.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@2.1.0) - 2026-07-23
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **react:** Support React 18 alongside React 19 (by @ChristopherVR) ([21bc383](https://github.com/ChristopherVR/pptx-viewer/commit/21bc383f1d7b57541eb1b844cba1e5dfc5d8280c))
|
|
12
|
+
|
|
7
13
|
## [2.0.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@2.0.0) - 2026-07-23
|
|
8
14
|
|
|
9
15
|
### Features
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isAiAvailable, createAiChatSession, toolCanvasTarget, createChatHistoryStore, focusTargetChips, isTwoTableFocus, humanizeDiffLine, buildDeckContext, describeToolActivity, summarizeToolArgs, toolLabel } from './chunk-BHVCED34.mjs';
|
|
2
|
-
import { cn } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
2
|
+
import { cn } from './chunk-SOHIKHL4.mjs';
|
|
3
|
+
import './chunk-RLK72AOU.mjs';
|
|
4
|
+
import './chunk-PZTPX3HK.mjs';
|
|
5
5
|
import './chunk-6YXLGMTN.mjs';
|
|
6
6
|
import './chunk-XGB3TDIC.mjs';
|
|
7
7
|
import { useMemo, useRef, useState, useEffect, useReducer, useCallback } from 'react';
|
|
Binary file
|
|
Binary file
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkSYPHGLIB_js = require('./chunk-SYPHGLIB.js');
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
4
|
+
var chunkRNZJKGA7_js = require('./chunk-RNZJKGA7.js');
|
|
5
|
+
require('./chunk-UTTXH3GH.js');
|
|
6
|
+
require('./chunk-YIFO3WQO.js');
|
|
7
7
|
require('./chunk-CLNGAVNH.js');
|
|
8
8
|
require('./chunk-4VNS5WPM.js');
|
|
9
9
|
var react = require('react');
|
|
@@ -427,7 +427,7 @@ function AiComposer({
|
|
|
427
427
|
disabled: value.trim().length === 0,
|
|
428
428
|
title: t("pptx.ai.send"),
|
|
429
429
|
"aria-label": t("pptx.ai.send"),
|
|
430
|
-
className:
|
|
430
|
+
className: chunkRNZJKGA7_js.cn(
|
|
431
431
|
"shrink-0 rounded-sm p-1.5 transition-colors",
|
|
432
432
|
value.trim().length === 0 ? "text-muted-foreground/50" : "bg-primary text-primary-foreground hover:bg-primary/90"
|
|
433
433
|
),
|
|
@@ -461,7 +461,7 @@ function AiFocusBar({
|
|
|
461
461
|
chips.map((chip) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
462
462
|
"span",
|
|
463
463
|
{
|
|
464
|
-
className:
|
|
464
|
+
className: chunkRNZJKGA7_js.cn(
|
|
465
465
|
"inline-flex max-w-[10rem] items-center rounded-full px-2 py-0.5 text-[11px]",
|
|
466
466
|
hasPicks || isPinned ? "bg-primary/15 text-primary" : "bg-muted text-muted-foreground"
|
|
467
467
|
),
|
|
@@ -494,7 +494,7 @@ function AiFocusBar({
|
|
|
494
494
|
title: t("pptx.ai.pickElement"),
|
|
495
495
|
"aria-label": t("pptx.ai.pickAria"),
|
|
496
496
|
"aria-pressed": pickMode,
|
|
497
|
-
className:
|
|
497
|
+
className: chunkRNZJKGA7_js.cn(
|
|
498
498
|
"rounded-sm p-1",
|
|
499
499
|
pickMode ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-accent"
|
|
500
500
|
),
|
|
@@ -573,7 +573,7 @@ function AiHistoryList({ chats, activeChatId, onResume, onDelete }) {
|
|
|
573
573
|
{
|
|
574
574
|
type: "button",
|
|
575
575
|
onClick: () => onResume(chat.id),
|
|
576
|
-
className:
|
|
576
|
+
className: chunkRNZJKGA7_js.cn(
|
|
577
577
|
"flex min-w-0 flex-1 items-start gap-2 rounded-sm px-2 py-1.5 text-left hover:bg-accent",
|
|
578
578
|
chat.id === activeChatId && "bg-accent/60"
|
|
579
579
|
),
|
|
@@ -737,17 +737,17 @@ function AiToolCallCard({ part }) {
|
|
|
737
737
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
738
738
|
Icon,
|
|
739
739
|
{
|
|
740
|
-
className:
|
|
740
|
+
className: chunkRNZJKGA7_js.cn(
|
|
741
741
|
"w-3.5 h-3.5 shrink-0",
|
|
742
742
|
failed ? "text-destructive" : "text-muted-foreground"
|
|
743
743
|
)
|
|
744
744
|
}
|
|
745
745
|
),
|
|
746
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
746
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: chunkRNZJKGA7_js.cn("truncate", failed ? "text-destructive" : "text-foreground"), children: activity.label }),
|
|
747
747
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
748
748
|
"span",
|
|
749
749
|
{
|
|
750
|
-
className:
|
|
750
|
+
className: chunkRNZJKGA7_js.cn(
|
|
751
751
|
"ml-auto inline-flex items-center gap-1 rounded-sm px-1.5 py-0.5 text-[10px]",
|
|
752
752
|
failed ? "bg-destructive/15 text-destructive" : done ? "bg-primary/10 text-primary" : "bg-muted text-muted-foreground"
|
|
753
753
|
),
|
|
@@ -795,7 +795,7 @@ function AiMessageList({ messages, isStreaming, bridge }) {
|
|
|
795
795
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
796
796
|
"div",
|
|
797
797
|
{
|
|
798
|
-
className:
|
|
798
|
+
className: chunkRNZJKGA7_js.cn(
|
|
799
799
|
"mt-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-full",
|
|
800
800
|
isUser ? "bg-secondary text-muted-foreground" : "bg-primary/15 text-primary"
|
|
801
801
|
),
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUTTXH3GH_js = require('./chunk-UTTXH3GH.js');
|
|
4
4
|
require('./chunk-CLNGAVNH.js');
|
|
5
5
|
require('./chunk-4VNS5WPM.js');
|
|
6
6
|
var react = require('react');
|
|
@@ -15,7 +15,7 @@ function Model3DScene({ modelUrl, interactive, width, height }) {
|
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
17
|
let disposed = false;
|
|
18
|
-
void
|
|
18
|
+
void chunkUTTXH3GH_js.mountModel3D(container, modelUrl, { width, height, interactive }).then((handle) => {
|
|
19
19
|
if (disposed) {
|
|
20
20
|
handle.dispose();
|
|
21
21
|
} else {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUTTXH3GH_js = require('./chunk-UTTXH3GH.js');
|
|
4
4
|
require('./chunk-CLNGAVNH.js');
|
|
5
5
|
require('./chunk-4VNS5WPM.js');
|
|
6
6
|
var react = require('react');
|
|
@@ -26,7 +26,7 @@ function SurfaceChart3DScene({
|
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
28
|
let disposed = false;
|
|
29
|
-
void
|
|
29
|
+
void chunkUTTXH3GH_js.mountSurfaceChart3D(container, {
|
|
30
30
|
cols,
|
|
31
31
|
rows,
|
|
32
32
|
heightMap,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|