pptx-react-viewer 3.0.3 → 3.1.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.
Files changed (155) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/{AiChatPanel-DYOBY6OG.mjs → AiChatPanel-5LCCN7FG.mjs} +4 -4
  3. package/dist/AiChatPanel-5LCCN7FG.mjs.br +0 -0
  4. package/dist/AiChatPanel-5LCCN7FG.mjs.gz +0 -0
  5. package/dist/{AiChatPanel-235ZZA3Y.js → AiChatPanel-WVORGKRT.js} +24 -24
  6. package/dist/AiChatPanel-WVORGKRT.js.br +0 -0
  7. package/dist/AiChatPanel-WVORGKRT.js.gz +0 -0
  8. package/dist/Area3DChartScene-DY5CSLE2.js +47 -0
  9. package/dist/Area3DChartScene-DY5CSLE2.js.br +0 -0
  10. package/dist/Area3DChartScene-DY5CSLE2.js.gz +0 -0
  11. package/dist/Area3DChartScene-W6UZTRDP.mjs +45 -0
  12. package/dist/Area3DChartScene-W6UZTRDP.mjs.br +0 -0
  13. package/dist/Area3DChartScene-W6UZTRDP.mjs.gz +0 -0
  14. package/dist/Bar3DChartScene-7HZSPYG4.js +47 -0
  15. package/dist/Bar3DChartScene-7HZSPYG4.js.br +0 -0
  16. package/dist/Bar3DChartScene-7HZSPYG4.js.gz +0 -0
  17. package/dist/Bar3DChartScene-FCWQEQLH.mjs +45 -0
  18. package/dist/Bar3DChartScene-FCWQEQLH.mjs.br +0 -0
  19. package/dist/Bar3DChartScene-FCWQEQLH.mjs.gz +0 -0
  20. package/dist/Line3DChartScene-BKO24WYO.js +47 -0
  21. package/dist/Line3DChartScene-BKO24WYO.js.br +0 -0
  22. package/dist/Line3DChartScene-BKO24WYO.js.gz +0 -0
  23. package/dist/Line3DChartScene-EPPWQOHS.mjs +45 -0
  24. package/dist/Line3DChartScene-EPPWQOHS.mjs.br +0 -0
  25. package/dist/Line3DChartScene-EPPWQOHS.mjs.gz +0 -0
  26. package/dist/{Model3DScene-A3652H7T.mjs → Model3DScene-IAY33GO2.mjs} +1 -1
  27. package/dist/Model3DScene-IAY33GO2.mjs.br +0 -0
  28. package/dist/Model3DScene-IAY33GO2.mjs.gz +0 -0
  29. package/dist/{Model3DScene-5QDYQF55.js → Model3DScene-JFVRE5VL.js} +2 -2
  30. package/dist/Model3DScene-JFVRE5VL.js.br +0 -0
  31. package/dist/Model3DScene-JFVRE5VL.js.gz +0 -0
  32. package/dist/PieChart3DScene-IPH7GLKU.js +47 -0
  33. package/dist/PieChart3DScene-IPH7GLKU.js.br +0 -0
  34. package/dist/PieChart3DScene-IPH7GLKU.js.gz +0 -0
  35. package/dist/PieChart3DScene-ZP5TSL62.mjs +45 -0
  36. package/dist/PieChart3DScene-ZP5TSL62.mjs.br +0 -0
  37. package/dist/PieChart3DScene-ZP5TSL62.mjs.gz +0 -0
  38. package/dist/{PowerPointViewer-SkkxAGKa.d.ts → PowerPointViewer-Cl6jBPNw.d.ts} +2 -2
  39. package/dist/PowerPointViewer-Cl6jBPNw.d.ts.map +1 -0
  40. package/dist/{SurfaceChart3DScene-N66TY4SW.mjs → SurfaceChart3DScene-DOMJGPAD.mjs} +1 -1
  41. package/dist/SurfaceChart3DScene-DOMJGPAD.mjs.br +0 -0
  42. package/dist/SurfaceChart3DScene-DOMJGPAD.mjs.gz +0 -0
  43. package/dist/{SurfaceChart3DScene-QHENN3AF.js → SurfaceChart3DScene-TGDBVJSW.js} +2 -2
  44. package/dist/SurfaceChart3DScene-TGDBVJSW.js.br +0 -0
  45. package/dist/SurfaceChart3DScene-TGDBVJSW.js.gz +0 -0
  46. package/dist/{audience-content-store-Bx4Yj2pN.d.ts → audience-content-store-bR7Gs_1S.d.ts} +2 -2
  47. package/dist/{audience-content-store-Bx4Yj2pN.d.ts.map → audience-content-store-bR7Gs_1S.d.ts.map} +1 -1
  48. package/dist/{chunk-UU6NFFRR.js → chunk-7JZLE56X.js} +170 -169
  49. package/dist/chunk-7JZLE56X.js.br +0 -0
  50. package/dist/chunk-7JZLE56X.js.gz +0 -0
  51. package/dist/{chunk-Z4RY432D.js → chunk-A5EUD6UU.js} +2575 -1965
  52. package/dist/chunk-A5EUD6UU.js.br +0 -0
  53. package/dist/chunk-A5EUD6UU.js.gz +0 -0
  54. package/dist/{chunk-M2TISD4A.mjs → chunk-BP2L2KOZ.mjs} +6183 -2447
  55. package/dist/chunk-BP2L2KOZ.mjs.br +0 -0
  56. package/dist/chunk-BP2L2KOZ.mjs.gz +0 -0
  57. package/dist/{chunk-L5MNLIQF.mjs → chunk-MKPSUHUH.mjs} +25 -0
  58. package/dist/chunk-MKPSUHUH.mjs.br +0 -0
  59. package/dist/chunk-MKPSUHUH.mjs.gz +0 -0
  60. package/dist/{chunk-U6A5FWWE.js → chunk-PIUB7R2K.js} +25 -0
  61. package/dist/chunk-PIUB7R2K.js.br +0 -0
  62. package/dist/chunk-PIUB7R2K.js.gz +0 -0
  63. package/dist/{chunk-7HUYHWQS.js → chunk-POAZ53L5.js} +480 -532
  64. package/dist/chunk-POAZ53L5.js.br +0 -0
  65. package/dist/chunk-POAZ53L5.js.gz +0 -0
  66. package/dist/{chunk-EVXT7HLY.mjs → chunk-PQNZCSB7.mjs} +1 -1
  67. package/dist/chunk-PQNZCSB7.mjs.br +0 -0
  68. package/dist/{chunk-EVXT7HLY.mjs.gz → chunk-PQNZCSB7.mjs.gz} +0 -0
  69. package/dist/{chunk-QG7TXWXP.mjs → chunk-SNWAM2XJ.mjs} +17 -16
  70. package/dist/chunk-SNWAM2XJ.mjs.br +0 -0
  71. package/dist/chunk-SNWAM2XJ.mjs.gz +0 -0
  72. package/dist/{chunk-35YJ5RLU.js → chunk-T7BAPZBY.js} +6214 -2447
  73. package/dist/chunk-T7BAPZBY.js.br +0 -0
  74. package/dist/chunk-T7BAPZBY.js.gz +0 -0
  75. package/dist/{chunk-CY24IMMZ.mjs → chunk-TIEUZCYQ.mjs} +761 -151
  76. package/dist/chunk-TIEUZCYQ.mjs.br +0 -0
  77. package/dist/chunk-TIEUZCYQ.mjs.gz +0 -0
  78. package/dist/{chunk-YISXETNN.mjs → chunk-VMLKJDA5.mjs} +97 -149
  79. package/dist/chunk-VMLKJDA5.mjs.br +0 -0
  80. package/dist/chunk-VMLKJDA5.mjs.gz +0 -0
  81. package/dist/{chunk-GJ7E44BG.js → chunk-VQVC27WL.js} +3 -3
  82. package/dist/chunk-VQVC27WL.js.br +0 -0
  83. package/dist/chunk-VQVC27WL.js.gz +0 -0
  84. package/dist/i18n.js +4 -4
  85. package/dist/i18n.js.br +0 -0
  86. package/dist/i18n.js.gz +0 -0
  87. package/dist/i18n.mjs +1 -1
  88. package/dist/i18n.mjs.br +0 -0
  89. package/dist/i18n.mjs.gz +0 -0
  90. package/dist/index.d.ts +202 -9
  91. package/dist/index.js +47 -47
  92. package/dist/index.js.br +0 -0
  93. package/dist/index.js.gz +0 -0
  94. package/dist/index.mjs +6 -6
  95. package/dist/index.mjs.br +0 -0
  96. package/dist/index.mjs.gz +0 -0
  97. package/dist/internals.d.ts +164 -20
  98. package/dist/internals.d.ts.map +1 -1
  99. package/dist/internals.js +79 -79
  100. package/dist/internals.js.br +7 -3
  101. package/dist/internals.js.gz +0 -0
  102. package/dist/internals.mjs +4 -4
  103. package/dist/internals.mjs.br +0 -0
  104. package/dist/internals.mjs.gz +0 -0
  105. package/dist/pptx-viewer.css +1 -1
  106. package/dist/pptx-viewer.css.br +0 -0
  107. package/dist/pptx-viewer.css.gz +0 -0
  108. package/dist/{types-kLpvSPxq.d.ts → types-Bzdkiakq.d.ts} +44 -1
  109. package/dist/{types-kLpvSPxq.d.ts.map → types-Bzdkiakq.d.ts.map} +1 -1
  110. package/dist/{useViewerBuildingBlocks-fh7rq4jc.d.ts → useViewerBuildingBlocks-DC1O_op4.d.ts} +2 -2
  111. package/dist/{useViewerBuildingBlocks-fh7rq4jc.d.ts.map → useViewerBuildingBlocks-DC1O_op4.d.ts.map} +1 -1
  112. package/dist/viewer/index.d.ts +196 -6
  113. package/dist/viewer/index.js +27 -27
  114. package/dist/viewer/index.js.br +0 -0
  115. package/dist/viewer/index.js.gz +0 -0
  116. package/dist/viewer/index.mjs +6 -6
  117. package/dist/viewer/index.mjs.br +0 -0
  118. package/dist/viewer/index.mjs.gz +0 -0
  119. package/package.json +5 -5
  120. package/dist/AiChatPanel-235ZZA3Y.js.br +0 -0
  121. package/dist/AiChatPanel-235ZZA3Y.js.gz +0 -0
  122. package/dist/AiChatPanel-DYOBY6OG.mjs.br +0 -0
  123. package/dist/AiChatPanel-DYOBY6OG.mjs.gz +0 -0
  124. package/dist/Model3DScene-5QDYQF55.js.br +0 -0
  125. package/dist/Model3DScene-5QDYQF55.js.gz +0 -0
  126. package/dist/Model3DScene-A3652H7T.mjs.br +0 -0
  127. package/dist/Model3DScene-A3652H7T.mjs.gz +0 -0
  128. package/dist/PowerPointViewer-SkkxAGKa.d.ts.map +0 -1
  129. package/dist/SurfaceChart3DScene-N66TY4SW.mjs.br +0 -0
  130. package/dist/SurfaceChart3DScene-N66TY4SW.mjs.gz +0 -0
  131. package/dist/SurfaceChart3DScene-QHENN3AF.js.br +0 -0
  132. package/dist/SurfaceChart3DScene-QHENN3AF.js.gz +0 -0
  133. package/dist/chunk-35YJ5RLU.js.br +0 -0
  134. package/dist/chunk-35YJ5RLU.js.gz +0 -0
  135. package/dist/chunk-7HUYHWQS.js.br +0 -0
  136. package/dist/chunk-7HUYHWQS.js.gz +0 -0
  137. package/dist/chunk-CY24IMMZ.mjs.br +0 -0
  138. package/dist/chunk-CY24IMMZ.mjs.gz +0 -0
  139. package/dist/chunk-EVXT7HLY.mjs.br +0 -0
  140. package/dist/chunk-GJ7E44BG.js.br +0 -0
  141. package/dist/chunk-GJ7E44BG.js.gz +0 -0
  142. package/dist/chunk-L5MNLIQF.mjs.br +0 -0
  143. package/dist/chunk-L5MNLIQF.mjs.gz +0 -0
  144. package/dist/chunk-M2TISD4A.mjs.br +0 -0
  145. package/dist/chunk-M2TISD4A.mjs.gz +0 -0
  146. package/dist/chunk-QG7TXWXP.mjs.br +0 -0
  147. package/dist/chunk-QG7TXWXP.mjs.gz +0 -0
  148. package/dist/chunk-U6A5FWWE.js.br +0 -0
  149. package/dist/chunk-U6A5FWWE.js.gz +0 -0
  150. package/dist/chunk-UU6NFFRR.js.br +0 -0
  151. package/dist/chunk-UU6NFFRR.js.gz +0 -0
  152. package/dist/chunk-YISXETNN.mjs.br +0 -0
  153. package/dist/chunk-YISXETNN.mjs.gz +0 -0
  154. package/dist/chunk-Z4RY432D.js.br +0 -0
  155. package/dist/chunk-Z4RY432D.js.gz +0 -0
package/CHANGELOG.md CHANGED
@@ -7,6 +7,25 @@ A release listed with no entries carried no Conventional Commit in this package'
7
7
  scope: scripts/release-plan.mjs re-releases a package whenever any of its files
8
8
  change, not only on conventional ones.
9
9
 
10
+ ## [3.0.4](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@3.0.4) - 2026-08-26
11
+
12
+ ### Bug Fixes
13
+
14
+ - Stop duplicate inline-edit text render and fix ribbon popup clipping (by @ChristopherVR) ([f084c64](https://github.com/ChristopherVR/pptx-viewer/commit/f084c64c6bb69135b60f083200180933a7f770f7))
15
+ - Derive mobile chrome from the browser viewport, not the container (by @ChristopherVR) ([29e5ea1](https://github.com/ChristopherVR/pptx-viewer/commit/29e5ea17b87411fa2058e2d0a25a2323ce6a1133))
16
+
17
+ ### Dependencies
18
+
19
+ - **deps:** Bump @ai-sdk/react from 4.0.80 to 4.0.76 ([#180](https://github.com/ChristopherVR/pptx-viewer/issues/180)) (by @dependabot[bot]) ([52c368d](https://github.com/ChristopherVR/pptx-viewer/commit/52c368d47e20e8afc977b4374ee59c594071c89b))
20
+ - **deps:** Update fast-xml-parser requirement from ^5.10.1 to ^5.11.0 ([#177](https://github.com/ChristopherVR/pptx-viewer/issues/177)) (by @dependabot[bot]) ([a876e0f](https://github.com/ChristopherVR/pptx-viewer/commit/a876e0f5fd07fd2e7063619882313cc23c4a0162))
21
+ - **deps:** Update dompurify requirement from ^3.4.13 to ^3.4.14 ([#173](https://github.com/ChristopherVR/pptx-viewer/issues/173)) (by @dependabot[bot]) ([19afbe1](https://github.com/ChristopherVR/pptx-viewer/commit/19afbe117520bbdeb2c8e930332ae5133df21c30))
22
+
23
+ ## [3.0.3](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@3.0.3) - 2026-08-22
24
+
25
+ ### Bug Fixes
26
+
27
+ - **react:** Stop the handle overlay shadowing the element's own id (by @ChristopherVR) ([19ed4de](https://github.com/ChristopherVR/pptx-viewer/commit/19ed4deda9c716c6179e7509fadcfbcf71fe501f))
28
+
10
29
  ## [3.0.2](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@3.0.2) - 2026-08-22
11
30
 
12
31
  ### Bug Fixes
@@ -1,7 +1,7 @@
1
- import { deckIdFromBridge, isAiAvailable, createAiChatSession, toolCanvasTarget, createChatHistoryStore, focusTargetChips, isTwoTableFocus, humanizeDiffLine, buildDeckContext, describeToolActivity, summarizeToolArgs, toolLabel } from './chunk-EVXT7HLY.mjs';
2
- import { cn } from './chunk-QG7TXWXP.mjs';
3
- import './chunk-L5MNLIQF.mjs';
4
- import './chunk-M2TISD4A.mjs';
1
+ import { deckIdFromBridge, isAiAvailable, createAiChatSession, toolCanvasTarget, createChatHistoryStore, focusTargetChips, isTwoTableFocus, humanizeDiffLine, buildDeckContext, describeToolActivity, summarizeToolArgs, toolLabel } from './chunk-PQNZCSB7.mjs';
2
+ import { cn } from './chunk-SNWAM2XJ.mjs';
3
+ import './chunk-MKPSUHUH.mjs';
4
+ import './chunk-BP2L2KOZ.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 chunkGJ7E44BG_js = require('./chunk-GJ7E44BG.js');
4
- var chunkUU6NFFRR_js = require('./chunk-UU6NFFRR.js');
5
- require('./chunk-U6A5FWWE.js');
6
- require('./chunk-35YJ5RLU.js');
3
+ var chunkVQVC27WL_js = require('./chunk-VQVC27WL.js');
4
+ var chunk7JZLE56X_js = require('./chunk-7JZLE56X.js');
5
+ require('./chunk-PIUB7R2K.js');
6
+ require('./chunk-T7BAPZBY.js');
7
7
  require('./chunk-4VNS5WPM.js');
8
8
  var react = require('react');
9
9
  var reactI18next = require('react-i18next');
@@ -23,7 +23,7 @@ function useAiChat(bridge, config) {
23
23
  setInitError(void 0);
24
24
  void (async () => {
25
25
  try {
26
- const available = await chunkGJ7E44BG_js.isAiAvailable();
26
+ const available = await chunkVQVC27WL_js.isAiAvailable();
27
27
  if (cancelled) {
28
28
  return;
29
29
  }
@@ -31,7 +31,7 @@ function useAiChat(bridge, config) {
31
31
  setState("unavailable");
32
32
  return;
33
33
  }
34
- const built = await chunkGJ7E44BG_js.createAiChatSession(bridge, configRef.current);
34
+ const built = await chunkVQVC27WL_js.createAiChatSession(bridge, configRef.current);
35
35
  if (cancelled) {
36
36
  return;
37
37
  }
@@ -137,7 +137,7 @@ function withDeckContext(inner, bridge, strategy) {
137
137
  }
138
138
  let context = "";
139
139
  try {
140
- context = await chunkGJ7E44BG_js.buildDeckContext(bridge, { strategy, focus: {} });
140
+ context = await chunkVQVC27WL_js.buildDeckContext(bridge, { strategy, focus: {} });
141
141
  } catch {
142
142
  context = "";
143
143
  }
@@ -200,7 +200,7 @@ function useAiConversation(useChat, session, config, bridge, options = {}) {
200
200
  continue;
201
201
  }
202
202
  seen.add(call.toolCallId);
203
- onToolTargetRef.current?.(chunkGJ7E44BG_js.toolCanvasTarget(call.toolName, call.input));
203
+ onToolTargetRef.current?.(chunkVQVC27WL_js.toolCanvasTarget(call.toolName, call.input));
204
204
  }
205
205
  }, [chat.messages]);
206
206
  const send = react.useCallback(
@@ -276,7 +276,7 @@ function deriveTitle(messages) {
276
276
  }
277
277
  function useAiHistory(input) {
278
278
  const { deckId, messages, setMessages } = input;
279
- const store = react.useMemo(() => input.store ?? chunkGJ7E44BG_js.createChatHistoryStore(), [input.store]);
279
+ const store = react.useMemo(() => input.store ?? chunkVQVC27WL_js.createChatHistoryStore(), [input.store]);
280
280
  const [activeChatId, setActiveChatId] = react.useState(newChatId);
281
281
  const [chats, setChats] = react.useState([]);
282
282
  const createdAtRef = react.useRef(Date.now());
@@ -419,7 +419,7 @@ function AiComposer({
419
419
  disabled: value.trim().length === 0,
420
420
  title: t("pptx.ai.send"),
421
421
  "aria-label": t("pptx.ai.send"),
422
- className: chunkUU6NFFRR_js.cn(
422
+ className: chunk7JZLE56X_js.cn(
423
423
  "shrink-0 rounded-sm p-1.5 transition-colors",
424
424
  value.trim().length === 0 ? "text-muted-foreground/50" : "bg-primary text-primary-foreground hover:bg-primary/90"
425
425
  ),
@@ -445,15 +445,15 @@ function AiFocusBar({
445
445
  onClearPicks
446
446
  }) {
447
447
  const { t } = reactI18next.useTranslation();
448
- const chips = chunkGJ7E44BG_js.focusTargetChips(targets, slides);
449
- const twoTables = chunkGJ7E44BG_js.isTwoTableFocus(targets, slides);
448
+ const chips = chunkVQVC27WL_js.focusTargetChips(targets, slides);
449
+ const twoTables = chunkVQVC27WL_js.isTwoTableFocus(targets, slides);
450
450
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-b border-border bg-secondary/30", children: [
451
451
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-1 px-2.5 py-1.5", children: [
452
452
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[10px] font-semibold uppercase tracking-wide text-muted-foreground", children: t("pptx.ai.focusScope") }),
453
453
  chips.map((chip) => /* @__PURE__ */ jsxRuntime.jsx(
454
454
  "span",
455
455
  {
456
- className: chunkUU6NFFRR_js.cn(
456
+ className: chunk7JZLE56X_js.cn(
457
457
  "inline-flex max-w-[10rem] items-center rounded-full px-2 py-0.5 text-[11px]",
458
458
  hasPicks || isPinned ? "bg-primary/15 text-primary" : "bg-muted text-muted-foreground"
459
459
  ),
@@ -486,7 +486,7 @@ function AiFocusBar({
486
486
  title: t("pptx.ai.pickElement"),
487
487
  "aria-label": t("pptx.ai.pickAria"),
488
488
  "aria-pressed": pickMode,
489
- className: chunkUU6NFFRR_js.cn(
489
+ className: chunk7JZLE56X_js.cn(
490
490
  "rounded-sm p-1",
491
491
  pickMode ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-accent"
492
492
  ),
@@ -565,7 +565,7 @@ function AiHistoryList({ chats, activeChatId, onResume, onDelete }) {
565
565
  {
566
566
  type: "button",
567
567
  onClick: () => onResume(chat.id),
568
- className: chunkUU6NFFRR_js.cn(
568
+ className: chunk7JZLE56X_js.cn(
569
569
  "flex min-w-0 flex-1 items-start gap-2 rounded-sm px-2 py-1.5 text-left hover:bg-accent",
570
570
  chat.id === activeChatId && "bg-accent/60"
571
571
  ),
@@ -720,26 +720,26 @@ function AiToolCallCard({ part }) {
720
720
  const failed = part.state === "output-error";
721
721
  const done = part.state === "output-available";
722
722
  const running = !failed && !done;
723
- const activity = chunkGJ7E44BG_js.describeToolActivity(part.toolName, part.input, running ? "present" : "past");
723
+ const activity = chunkVQVC27WL_js.describeToolActivity(part.toolName, part.input, running ? "present" : "past");
724
724
  const Icon = ICONS[activity.icon] ?? lu.LuWrench;
725
- const rawSummary = chunkGJ7E44BG_js.summarizeToolArgs(part.input);
725
+ const rawSummary = chunkVQVC27WL_js.summarizeToolArgs(part.input);
726
726
  const statusLabel = failed ? t("pptx.ai.toolFailed") : done ? t("pptx.ai.toolDone") : t("pptx.ai.toolRunning");
727
727
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-[12px]", children: [
728
728
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5", children: [
729
729
  /* @__PURE__ */ jsxRuntime.jsx(
730
730
  Icon,
731
731
  {
732
- className: chunkUU6NFFRR_js.cn(
732
+ className: chunk7JZLE56X_js.cn(
733
733
  "w-3.5 h-3.5 shrink-0",
734
734
  failed ? "text-destructive" : "text-muted-foreground"
735
735
  )
736
736
  }
737
737
  ),
738
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: chunkUU6NFFRR_js.cn("truncate", failed ? "text-destructive" : "text-foreground"), children: activity.label }),
738
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: chunk7JZLE56X_js.cn("truncate", failed ? "text-destructive" : "text-foreground"), children: activity.label }),
739
739
  /* @__PURE__ */ jsxRuntime.jsxs(
740
740
  "span",
741
741
  {
742
- className: chunkUU6NFFRR_js.cn(
742
+ className: chunk7JZLE56X_js.cn(
743
743
  "ml-auto inline-flex items-center gap-1 rounded-sm px-1.5 py-0.5 text-[10px]",
744
744
  failed ? "bg-destructive/15 text-destructive" : done ? "bg-primary/10 text-primary" : "bg-muted text-muted-foreground"
745
745
  ),
@@ -756,7 +756,7 @@ function AiToolCallCard({ part }) {
756
756
  rawSummary && /* @__PURE__ */ jsxRuntime.jsxs("details", { className: "group mt-0.5 pl-5", children: [
757
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") }),
758
758
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-0.5 break-words font-mono text-[10px] text-muted-foreground/80", children: [
759
- chunkGJ7E44BG_js.toolLabel(part.toolName),
759
+ chunkVQVC27WL_js.toolLabel(part.toolName),
760
760
  ": ",
761
761
  rawSummary
762
762
  ] })
@@ -787,7 +787,7 @@ function AiMessageList({ messages, isStreaming, bridge }) {
787
787
  /* @__PURE__ */ jsxRuntime.jsx(
788
788
  "div",
789
789
  {
790
- className: chunkUU6NFFRR_js.cn(
790
+ className: chunk7JZLE56X_js.cn(
791
791
  "mt-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-full",
792
792
  isUser ? "bg-secondary text-muted-foreground" : "bg-primary/15 text-primary"
793
793
  ),
@@ -834,7 +834,7 @@ function AiMessageList({ messages, isStreaming, bridge }) {
834
834
  }
835
835
  function AiProposalCard({ proposal, onAccept, onReject }) {
836
836
  const { t } = reactI18next.useTranslation();
837
- const lines = proposal.summary.map(chunkGJ7E44BG_js.humanizeDiffLine);
837
+ const lines = proposal.summary.map(chunkVQVC27WL_js.humanizeDiffLine);
838
838
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-md border border-primary/40 bg-primary/5 p-2.5", children: [
839
839
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-1.5 text-[11px] font-semibold uppercase tracking-wide text-primary", children: t("pptx.ai.proposedChange") }),
840
840
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-[12px] font-medium text-foreground", children: proposal.label }),
@@ -1042,7 +1042,7 @@ function AiChatPanel({
1042
1042
  }) {
1043
1043
  const { t } = reactI18next.useTranslation();
1044
1044
  const { state, session, initError } = useAiChat(bridge, config);
1045
- const deckId = react.useMemo(() => chunkGJ7E44BG_js.deckIdFromBridge(bridge), [bridge]);
1045
+ const deckId = react.useMemo(() => chunkVQVC27WL_js.deckIdFromBridge(bridge), [bridge]);
1046
1046
  return /* @__PURE__ */ jsxRuntime.jsxs(
1047
1047
  "div",
1048
1048
  {
Binary file
Binary file
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+ var chunkT7BAPZBY_js = require('./chunk-T7BAPZBY.js');
4
+ require('./chunk-4VNS5WPM.js');
5
+ var react = require('react');
6
+ var jsxRuntime = require('react/jsx-runtime');
7
+
8
+ function Area3DChartScene({ options }) {
9
+ const containerRef = react.useRef(null);
10
+ const handleRef = react.useRef(null);
11
+ react.useEffect(() => {
12
+ const container = containerRef.current;
13
+ if (!container) {
14
+ return;
15
+ }
16
+ let disposed = false;
17
+ void chunkT7BAPZBY_js.mountAreaChart3D(container, options).then((handle) => {
18
+ if (disposed) {
19
+ handle.dispose();
20
+ } else {
21
+ handleRef.current = handle;
22
+ }
23
+ return void 0;
24
+ });
25
+ return () => {
26
+ disposed = true;
27
+ handleRef.current?.dispose();
28
+ handleRef.current = null;
29
+ };
30
+ }, [options]);
31
+ react.useEffect(() => {
32
+ handleRef.current?.resize(options.width, options.height);
33
+ }, [options.width, options.height]);
34
+ return /* @__PURE__ */ jsxRuntime.jsx(
35
+ "div",
36
+ {
37
+ ref: containerRef,
38
+ style: {
39
+ width: options.width,
40
+ height: options.height,
41
+ willChange: "transform"
42
+ }
43
+ }
44
+ );
45
+ }
46
+
47
+ module.exports = Area3DChartScene;
@@ -0,0 +1,45 @@
1
+ import { mountAreaChart3D } from './chunk-BP2L2KOZ.mjs';
2
+ import './chunk-XGB3TDIC.mjs';
3
+ import { useRef, useEffect } from 'react';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ function Area3DChartScene({ options }) {
7
+ const containerRef = useRef(null);
8
+ const handleRef = useRef(null);
9
+ useEffect(() => {
10
+ const container = containerRef.current;
11
+ if (!container) {
12
+ return;
13
+ }
14
+ let disposed = false;
15
+ void mountAreaChart3D(container, options).then((handle) => {
16
+ if (disposed) {
17
+ handle.dispose();
18
+ } else {
19
+ handleRef.current = handle;
20
+ }
21
+ return void 0;
22
+ });
23
+ return () => {
24
+ disposed = true;
25
+ handleRef.current?.dispose();
26
+ handleRef.current = null;
27
+ };
28
+ }, [options]);
29
+ useEffect(() => {
30
+ handleRef.current?.resize(options.width, options.height);
31
+ }, [options.width, options.height]);
32
+ return /* @__PURE__ */ jsx(
33
+ "div",
34
+ {
35
+ ref: containerRef,
36
+ style: {
37
+ width: options.width,
38
+ height: options.height,
39
+ willChange: "transform"
40
+ }
41
+ }
42
+ );
43
+ }
44
+
45
+ export { Area3DChartScene as default };
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+ var chunkT7BAPZBY_js = require('./chunk-T7BAPZBY.js');
4
+ require('./chunk-4VNS5WPM.js');
5
+ var react = require('react');
6
+ var jsxRuntime = require('react/jsx-runtime');
7
+
8
+ function Bar3DChartScene({ options }) {
9
+ const containerRef = react.useRef(null);
10
+ const handleRef = react.useRef(null);
11
+ react.useEffect(() => {
12
+ const container = containerRef.current;
13
+ if (!container) {
14
+ return;
15
+ }
16
+ let disposed = false;
17
+ void chunkT7BAPZBY_js.mountBarChart3D(container, options).then((handle) => {
18
+ if (disposed) {
19
+ handle.dispose();
20
+ } else {
21
+ handleRef.current = handle;
22
+ }
23
+ return void 0;
24
+ });
25
+ return () => {
26
+ disposed = true;
27
+ handleRef.current?.dispose();
28
+ handleRef.current = null;
29
+ };
30
+ }, [options]);
31
+ react.useEffect(() => {
32
+ handleRef.current?.resize(options.width, options.height);
33
+ }, [options.width, options.height]);
34
+ return /* @__PURE__ */ jsxRuntime.jsx(
35
+ "div",
36
+ {
37
+ ref: containerRef,
38
+ style: {
39
+ width: options.width,
40
+ height: options.height,
41
+ willChange: "transform"
42
+ }
43
+ }
44
+ );
45
+ }
46
+
47
+ module.exports = Bar3DChartScene;
@@ -0,0 +1,45 @@
1
+ import { mountBarChart3D } from './chunk-BP2L2KOZ.mjs';
2
+ import './chunk-XGB3TDIC.mjs';
3
+ import { useRef, useEffect } from 'react';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ function Bar3DChartScene({ options }) {
7
+ const containerRef = useRef(null);
8
+ const handleRef = useRef(null);
9
+ useEffect(() => {
10
+ const container = containerRef.current;
11
+ if (!container) {
12
+ return;
13
+ }
14
+ let disposed = false;
15
+ void mountBarChart3D(container, options).then((handle) => {
16
+ if (disposed) {
17
+ handle.dispose();
18
+ } else {
19
+ handleRef.current = handle;
20
+ }
21
+ return void 0;
22
+ });
23
+ return () => {
24
+ disposed = true;
25
+ handleRef.current?.dispose();
26
+ handleRef.current = null;
27
+ };
28
+ }, [options]);
29
+ useEffect(() => {
30
+ handleRef.current?.resize(options.width, options.height);
31
+ }, [options.width, options.height]);
32
+ return /* @__PURE__ */ jsx(
33
+ "div",
34
+ {
35
+ ref: containerRef,
36
+ style: {
37
+ width: options.width,
38
+ height: options.height,
39
+ willChange: "transform"
40
+ }
41
+ }
42
+ );
43
+ }
44
+
45
+ export { Bar3DChartScene as default };
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+ var chunkT7BAPZBY_js = require('./chunk-T7BAPZBY.js');
4
+ require('./chunk-4VNS5WPM.js');
5
+ var react = require('react');
6
+ var jsxRuntime = require('react/jsx-runtime');
7
+
8
+ function Line3DChartScene({ options }) {
9
+ const containerRef = react.useRef(null);
10
+ const handleRef = react.useRef(null);
11
+ react.useEffect(() => {
12
+ const container = containerRef.current;
13
+ if (!container) {
14
+ return;
15
+ }
16
+ let disposed = false;
17
+ void chunkT7BAPZBY_js.mountLineChart3D(container, options).then((handle) => {
18
+ if (disposed) {
19
+ handle.dispose();
20
+ } else {
21
+ handleRef.current = handle;
22
+ }
23
+ return void 0;
24
+ });
25
+ return () => {
26
+ disposed = true;
27
+ handleRef.current?.dispose();
28
+ handleRef.current = null;
29
+ };
30
+ }, [options]);
31
+ react.useEffect(() => {
32
+ handleRef.current?.resize(options.width, options.height);
33
+ }, [options.width, options.height]);
34
+ return /* @__PURE__ */ jsxRuntime.jsx(
35
+ "div",
36
+ {
37
+ ref: containerRef,
38
+ style: {
39
+ width: options.width,
40
+ height: options.height,
41
+ willChange: "transform"
42
+ }
43
+ }
44
+ );
45
+ }
46
+
47
+ module.exports = Line3DChartScene;
@@ -0,0 +1,45 @@
1
+ import { mountLineChart3D } from './chunk-BP2L2KOZ.mjs';
2
+ import './chunk-XGB3TDIC.mjs';
3
+ import { useRef, useEffect } from 'react';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ function Line3DChartScene({ options }) {
7
+ const containerRef = useRef(null);
8
+ const handleRef = useRef(null);
9
+ useEffect(() => {
10
+ const container = containerRef.current;
11
+ if (!container) {
12
+ return;
13
+ }
14
+ let disposed = false;
15
+ void mountLineChart3D(container, options).then((handle) => {
16
+ if (disposed) {
17
+ handle.dispose();
18
+ } else {
19
+ handleRef.current = handle;
20
+ }
21
+ return void 0;
22
+ });
23
+ return () => {
24
+ disposed = true;
25
+ handleRef.current?.dispose();
26
+ handleRef.current = null;
27
+ };
28
+ }, [options]);
29
+ useEffect(() => {
30
+ handleRef.current?.resize(options.width, options.height);
31
+ }, [options.width, options.height]);
32
+ return /* @__PURE__ */ jsx(
33
+ "div",
34
+ {
35
+ ref: containerRef,
36
+ style: {
37
+ width: options.width,
38
+ height: options.height,
39
+ willChange: "transform"
40
+ }
41
+ }
42
+ );
43
+ }
44
+
45
+ export { Line3DChartScene as default };
@@ -1,4 +1,4 @@
1
- import { mountModel3D } from './chunk-M2TISD4A.mjs';
1
+ import { mountModel3D } from './chunk-BP2L2KOZ.mjs';
2
2
  import './chunk-XGB3TDIC.mjs';
3
3
  import { useRef, useEffect } from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk35YJ5RLU_js = require('./chunk-35YJ5RLU.js');
3
+ var chunkT7BAPZBY_js = require('./chunk-T7BAPZBY.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 chunk35YJ5RLU_js.mountModel3D(container, modelUrl, { width, height, interactive }).then((handle) => {
17
+ void chunkT7BAPZBY_js.mountModel3D(container, modelUrl, { width, height, interactive }).then((handle) => {
18
18
  if (disposed) {
19
19
  handle.dispose();
20
20
  } else {
Binary file
Binary file
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+ var chunkT7BAPZBY_js = require('./chunk-T7BAPZBY.js');
4
+ require('./chunk-4VNS5WPM.js');
5
+ var react = require('react');
6
+ var jsxRuntime = require('react/jsx-runtime');
7
+
8
+ function PieChart3DScene({ options }) {
9
+ const containerRef = react.useRef(null);
10
+ const handleRef = react.useRef(null);
11
+ react.useEffect(() => {
12
+ const container = containerRef.current;
13
+ if (!container) {
14
+ return;
15
+ }
16
+ let disposed = false;
17
+ void chunkT7BAPZBY_js.mountPieChart3D(container, options).then((handle) => {
18
+ if (disposed) {
19
+ handle.dispose();
20
+ } else {
21
+ handleRef.current = handle;
22
+ }
23
+ return void 0;
24
+ });
25
+ return () => {
26
+ disposed = true;
27
+ handleRef.current?.dispose();
28
+ handleRef.current = null;
29
+ };
30
+ }, [options]);
31
+ react.useEffect(() => {
32
+ handleRef.current?.resize(options.width, options.height);
33
+ }, [options.width, options.height]);
34
+ return /* @__PURE__ */ jsxRuntime.jsx(
35
+ "div",
36
+ {
37
+ ref: containerRef,
38
+ style: {
39
+ width: options.width,
40
+ height: options.height,
41
+ willChange: "transform"
42
+ }
43
+ }
44
+ );
45
+ }
46
+
47
+ module.exports = PieChart3DScene;
@@ -0,0 +1,45 @@
1
+ import { mountPieChart3D } from './chunk-BP2L2KOZ.mjs';
2
+ import './chunk-XGB3TDIC.mjs';
3
+ import { useRef, useEffect } from 'react';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ function PieChart3DScene({ options }) {
7
+ const containerRef = useRef(null);
8
+ const handleRef = useRef(null);
9
+ useEffect(() => {
10
+ const container = containerRef.current;
11
+ if (!container) {
12
+ return;
13
+ }
14
+ let disposed = false;
15
+ void mountPieChart3D(container, options).then((handle) => {
16
+ if (disposed) {
17
+ handle.dispose();
18
+ } else {
19
+ handleRef.current = handle;
20
+ }
21
+ return void 0;
22
+ });
23
+ return () => {
24
+ disposed = true;
25
+ handleRef.current?.dispose();
26
+ handleRef.current = null;
27
+ };
28
+ }, [options]);
29
+ useEffect(() => {
30
+ handleRef.current?.resize(options.width, options.height);
31
+ }, [options.width, options.height]);
32
+ return /* @__PURE__ */ jsx(
33
+ "div",
34
+ {
35
+ ref: containerRef,
36
+ style: {
37
+ width: options.width,
38
+ height: options.height,
39
+ willChange: "transform"
40
+ }
41
+ }
42
+ );
43
+ }
44
+
45
+ export { PieChart3DScene as default };