pptx-react-viewer 2.21.1 → 3.0.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 (112) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/{AiChatPanel-E4NQEMEI.mjs → AiChatPanel-DMBQPAGB.mjs} +3 -3
  3. package/dist/AiChatPanel-DMBQPAGB.mjs.br +0 -0
  4. package/dist/AiChatPanel-DMBQPAGB.mjs.gz +0 -0
  5. package/dist/{AiChatPanel-VKR2IFFC.js → AiChatPanel-NLIUZ5RI.js} +23 -23
  6. package/dist/AiChatPanel-NLIUZ5RI.js.br +0 -0
  7. package/dist/AiChatPanel-NLIUZ5RI.js.gz +0 -0
  8. package/dist/{Model3DScene-JZKLB5YT.js → Model3DScene-JNZN42TU.js} +2 -2
  9. package/dist/Model3DScene-JNZN42TU.js.br +0 -0
  10. package/dist/Model3DScene-JNZN42TU.js.gz +0 -0
  11. package/dist/{Model3DScene-65J6IE5Q.mjs → Model3DScene-ZO6U7YVU.mjs} +1 -1
  12. package/dist/Model3DScene-ZO6U7YVU.mjs.br +0 -0
  13. package/dist/Model3DScene-ZO6U7YVU.mjs.gz +0 -0
  14. package/dist/{PowerPointViewer-DVFkeluD.d.ts → PowerPointViewer-SkkxAGKa.d.ts} +2 -2
  15. package/dist/PowerPointViewer-SkkxAGKa.d.ts.map +1 -0
  16. package/dist/SurfaceChart3DScene-P6CVRWDQ.mjs +47 -0
  17. package/dist/SurfaceChart3DScene-P6CVRWDQ.mjs.br +0 -0
  18. package/dist/SurfaceChart3DScene-P6CVRWDQ.mjs.gz +0 -0
  19. package/dist/SurfaceChart3DScene-PGD4ZCLI.js +49 -0
  20. package/dist/SurfaceChart3DScene-PGD4ZCLI.js.br +0 -0
  21. package/dist/SurfaceChart3DScene-PGD4ZCLI.js.gz +0 -0
  22. package/dist/{audience-content-store-C4BFFhV5.d.ts → audience-content-store-Bx4Yj2pN.d.ts} +2 -2
  23. package/dist/{audience-content-store-C4BFFhV5.d.ts.map → audience-content-store-Bx4Yj2pN.d.ts.map} +1 -1
  24. package/dist/{chunk-GJHO6HPF.js → chunk-3MW6F3K7.js} +451 -399
  25. package/dist/chunk-3MW6F3K7.js.br +0 -0
  26. package/dist/chunk-3MW6F3K7.js.gz +0 -0
  27. package/dist/{chunk-2SNHVHHB.mjs → chunk-BGAJLL4N.mjs} +70 -18
  28. package/dist/chunk-BGAJLL4N.mjs.br +0 -0
  29. package/dist/chunk-BGAJLL4N.mjs.gz +0 -0
  30. package/dist/{chunk-CBGTLSY7.mjs → chunk-H2ONCGFZ.mjs} +218 -156
  31. package/dist/chunk-H2ONCGFZ.mjs.br +0 -0
  32. package/dist/chunk-H2ONCGFZ.mjs.gz +0 -0
  33. package/dist/{chunk-WRJ76D5S.mjs → chunk-OB4PKKIN.mjs} +1 -1
  34. package/dist/chunk-OB4PKKIN.mjs.br +0 -0
  35. package/dist/chunk-OB4PKKIN.mjs.gz +0 -0
  36. package/dist/{chunk-VWCUKKR3.mjs → chunk-OXPD2UYI.mjs} +14031 -7120
  37. package/dist/chunk-OXPD2UYI.mjs.br +0 -0
  38. package/dist/chunk-OXPD2UYI.mjs.gz +0 -0
  39. package/dist/{chunk-OSPNGQF3.js → chunk-RSEZYBKT.js} +2005 -1943
  40. package/dist/chunk-RSEZYBKT.js.br +0 -0
  41. package/dist/chunk-RSEZYBKT.js.gz +0 -0
  42. package/dist/{chunk-WX3HQHR5.mjs → chunk-S6PFSR7I.mjs} +108 -255
  43. package/dist/chunk-S6PFSR7I.mjs.br +0 -0
  44. package/dist/chunk-S6PFSR7I.mjs.gz +0 -0
  45. package/dist/{chunk-HYUJVSQJ.js → chunk-SDOQKSKI.js} +14051 -7126
  46. package/dist/chunk-SDOQKSKI.js.br +0 -0
  47. package/dist/chunk-SDOQKSKI.js.gz +0 -0
  48. package/dist/{chunk-C3JR7RMW.js → chunk-WFMSDYVQ.js} +3 -3
  49. package/dist/chunk-WFMSDYVQ.js.br +0 -0
  50. package/dist/chunk-WFMSDYVQ.js.gz +0 -0
  51. package/dist/{chunk-DA6DF3EU.js → chunk-XMLPTDPM.js} +248 -396
  52. package/dist/chunk-XMLPTDPM.js.br +0 -0
  53. package/dist/chunk-XMLPTDPM.js.gz +0 -0
  54. package/dist/index.d.ts +491 -20
  55. package/dist/index.js +45 -45
  56. package/dist/index.js.br +0 -0
  57. package/dist/index.js.gz +0 -0
  58. package/dist/index.mjs +5 -5
  59. package/dist/index.mjs.br +0 -0
  60. package/dist/index.mjs.gz +0 -0
  61. package/dist/internals.d.ts +498 -22
  62. package/dist/internals.d.ts.map +1 -1
  63. package/dist/internals.js +78 -78
  64. package/dist/internals.js.br +0 -0
  65. package/dist/internals.js.gz +0 -0
  66. package/dist/internals.mjs +3 -3
  67. package/dist/internals.mjs.br +0 -0
  68. package/dist/internals.mjs.gz +0 -0
  69. package/dist/pptx-viewer.css +1 -1
  70. package/dist/pptx-viewer.css.br +0 -0
  71. package/dist/pptx-viewer.css.gz +0 -0
  72. package/dist/{types-TCH6icpi.d.ts → types-kLpvSPxq.d.ts} +11 -1
  73. package/dist/{types-TCH6icpi.d.ts.map → types-kLpvSPxq.d.ts.map} +1 -1
  74. package/dist/{useViewerBuildingBlocks-BKb0qs1j.d.ts → useViewerBuildingBlocks-fh7rq4jc.d.ts} +2 -2
  75. package/dist/{useViewerBuildingBlocks-BKb0qs1j.d.ts.map → useViewerBuildingBlocks-fh7rq4jc.d.ts.map} +1 -1
  76. package/dist/viewer/index.d.ts +488 -18
  77. package/dist/viewer/index.js +26 -26
  78. package/dist/viewer/index.js.br +0 -0
  79. package/dist/viewer/index.js.gz +0 -0
  80. package/dist/viewer/index.mjs +5 -5
  81. package/dist/viewer/index.mjs.br +0 -0
  82. package/dist/viewer/index.mjs.gz +0 -0
  83. package/package.json +2 -2
  84. package/dist/AiChatPanel-E4NQEMEI.mjs.br +0 -0
  85. package/dist/AiChatPanel-E4NQEMEI.mjs.gz +0 -0
  86. package/dist/AiChatPanel-VKR2IFFC.js.br +0 -0
  87. package/dist/AiChatPanel-VKR2IFFC.js.gz +0 -0
  88. package/dist/Model3DScene-65J6IE5Q.mjs.br +0 -0
  89. package/dist/Model3DScene-65J6IE5Q.mjs.gz +0 -0
  90. package/dist/Model3DScene-JZKLB5YT.js.br +0 -0
  91. package/dist/Model3DScene-JZKLB5YT.js.gz +0 -0
  92. package/dist/PowerPointViewer-DVFkeluD.d.ts.map +0 -1
  93. package/dist/chunk-2SNHVHHB.mjs.br +0 -0
  94. package/dist/chunk-2SNHVHHB.mjs.gz +0 -0
  95. package/dist/chunk-C3JR7RMW.js.br +0 -0
  96. package/dist/chunk-C3JR7RMW.js.gz +0 -0
  97. package/dist/chunk-CBGTLSY7.mjs.br +0 -0
  98. package/dist/chunk-CBGTLSY7.mjs.gz +0 -0
  99. package/dist/chunk-DA6DF3EU.js.br +0 -0
  100. package/dist/chunk-DA6DF3EU.js.gz +0 -0
  101. package/dist/chunk-GJHO6HPF.js.br +0 -0
  102. package/dist/chunk-GJHO6HPF.js.gz +0 -0
  103. package/dist/chunk-HYUJVSQJ.js.br +0 -0
  104. package/dist/chunk-HYUJVSQJ.js.gz +0 -0
  105. package/dist/chunk-OSPNGQF3.js.br +0 -0
  106. package/dist/chunk-OSPNGQF3.js.gz +0 -0
  107. package/dist/chunk-VWCUKKR3.mjs.br +0 -0
  108. package/dist/chunk-VWCUKKR3.mjs.gz +0 -0
  109. package/dist/chunk-WRJ76D5S.mjs.br +0 -0
  110. package/dist/chunk-WRJ76D5S.mjs.gz +0 -0
  111. package/dist/chunk-WX3HQHR5.mjs.br +0 -0
  112. package/dist/chunk-WX3HQHR5.mjs.gz +0 -0
package/CHANGELOG.md CHANGED
@@ -7,6 +7,31 @@ 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
+ ## [2.22.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@2.22.0) - 2026-08-21
11
+
12
+ ### Features
13
+
14
+ - **shared,react:** Wire interactive 3D surface chart scene (opt-in) (by @ChristopherVR) ([78587a4](https://github.com/ChristopherVR/pptx-viewer/commit/78587a4b2b34f745bd71a29d8952621eec31d3b9))
15
+
16
+ ### Bug Fixes
17
+
18
+ - **shared:** Compute elbow/curved connector routing from actual shape geometry (by @ChristopherVR) ([eecc519](https://github.com/ChristopherVR/pptx-viewer/commit/eecc519961d0a825f550c5d1b6c41f55b1d101ae))
19
+ - **core,vue:** Compute elbow/curved connector routing from actual shape geometry (by @ChristopherVR) ([f2882a1](https://github.com/ChristopherVR/pptx-viewer/commit/f2882a11d16253683c82b04463442f6e80b7d507))
20
+
21
+ ### Documentation
22
+
23
+ - **core:** Correct stale OLE and SmartArt capability text (by @ChristopherVR) ([0c7e68d](https://github.com/ChristopherVR/pptx-viewer/commit/0c7e68d66cf27fdc35f31d9fa06faab0d287a16c))
24
+ - **core:** Certify DrawingML line/stroke properties in the OpenXML coverage manifest (by @ChristopherVR) ([caa2570](https://github.com/ChristopherVR/pptx-viewer/commit/caa2570d508b4904d8f541a392933da7be50dc32))
25
+
26
+ ## [2.21.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@2.21.1) - 2026-08-21
27
+
28
+ ### Bug Fixes
29
+
30
+ - **core:** Restore mc:AlternateContent envelope on passthrough template save (by @ChristopherVR) ([1659244](https://github.com/ChristopherVR/pptx-viewer/commit/165924427f0a2e1f834e1b24d7237a1c0125d8f6))
31
+ - **core:** Stop baking theme effectRef into a literal effectLst on save (by @ChristopherVR) ([59a5566](https://github.com/ChristopherVR/pptx-viewer/commit/59a5566aef9304d4f2a31c6b4e2f95f86841dd8f))
32
+ - **core:** Read line-family chart series colors on any chart, not just combo (by @ChristopherVR) ([e62dfcf](https://github.com/ChristopherVR/pptx-viewer/commit/e62dfcf2a6850a86944730f752b321c08b44e477))
33
+ - **core:** Write line-family chart series colors into a:ln, not a corrupting spPr (by @ChristopherVR) ([5b54357](https://github.com/ChristopherVR/pptx-viewer/commit/5b54357646ca63723944bbf44f8ac7c23912e035))
34
+
10
35
  ## [2.21.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@2.21.0) - 2026-08-21
11
36
 
12
37
  ### Features
@@ -1,7 +1,7 @@
1
- import { deckIdFromBridge, isAiAvailable, createAiChatSession, toolCanvasTarget, createChatHistoryStore, focusTargetChips, isTwoTableFocus, humanizeDiffLine, buildDeckContext, describeToolActivity, summarizeToolArgs, toolLabel } from './chunk-WRJ76D5S.mjs';
2
- import { cn } from './chunk-WX3HQHR5.mjs';
1
+ import { deckIdFromBridge, isAiAvailable, createAiChatSession, toolCanvasTarget, createChatHistoryStore, focusTargetChips, isTwoTableFocus, humanizeDiffLine, buildDeckContext, describeToolActivity, summarizeToolArgs, toolLabel } from './chunk-OB4PKKIN.mjs';
2
+ import { cn } from './chunk-S6PFSR7I.mjs';
3
3
  import './chunk-L5MNLIQF.mjs';
4
- import './chunk-VWCUKKR3.mjs';
4
+ import './chunk-OXPD2UYI.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 chunkC3JR7RMW_js = require('./chunk-C3JR7RMW.js');
4
- var chunkDA6DF3EU_js = require('./chunk-DA6DF3EU.js');
3
+ var chunkWFMSDYVQ_js = require('./chunk-WFMSDYVQ.js');
4
+ var chunkXMLPTDPM_js = require('./chunk-XMLPTDPM.js');
5
5
  require('./chunk-U6A5FWWE.js');
6
- require('./chunk-HYUJVSQJ.js');
6
+ require('./chunk-SDOQKSKI.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 chunkC3JR7RMW_js.isAiAvailable();
26
+ const available = await chunkWFMSDYVQ_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 chunkC3JR7RMW_js.createAiChatSession(bridge, configRef.current);
34
+ const built = await chunkWFMSDYVQ_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 chunkC3JR7RMW_js.buildDeckContext(bridge, { strategy, focus: {} });
140
+ context = await chunkWFMSDYVQ_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?.(chunkC3JR7RMW_js.toolCanvasTarget(call.toolName, call.input));
203
+ onToolTargetRef.current?.(chunkWFMSDYVQ_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 ?? chunkC3JR7RMW_js.createChatHistoryStore(), [input.store]);
279
+ const store = react.useMemo(() => input.store ?? chunkWFMSDYVQ_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: chunkDA6DF3EU_js.cn(
422
+ className: chunkXMLPTDPM_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 = chunkC3JR7RMW_js.focusTargetChips(targets, slides);
449
- const twoTables = chunkC3JR7RMW_js.isTwoTableFocus(targets, slides);
448
+ const chips = chunkWFMSDYVQ_js.focusTargetChips(targets, slides);
449
+ const twoTables = chunkWFMSDYVQ_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: chunkDA6DF3EU_js.cn(
456
+ className: chunkXMLPTDPM_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: chunkDA6DF3EU_js.cn(
489
+ className: chunkXMLPTDPM_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: chunkDA6DF3EU_js.cn(
568
+ className: chunkXMLPTDPM_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 = chunkC3JR7RMW_js.describeToolActivity(part.toolName, part.input, running ? "present" : "past");
723
+ const activity = chunkWFMSDYVQ_js.describeToolActivity(part.toolName, part.input, running ? "present" : "past");
724
724
  const Icon = ICONS[activity.icon] ?? lu.LuWrench;
725
- const rawSummary = chunkC3JR7RMW_js.summarizeToolArgs(part.input);
725
+ const rawSummary = chunkWFMSDYVQ_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: chunkDA6DF3EU_js.cn(
732
+ className: chunkXMLPTDPM_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: chunkDA6DF3EU_js.cn("truncate", failed ? "text-destructive" : "text-foreground"), children: activity.label }),
738
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: chunkXMLPTDPM_js.cn("truncate", failed ? "text-destructive" : "text-foreground"), children: activity.label }),
739
739
  /* @__PURE__ */ jsxRuntime.jsxs(
740
740
  "span",
741
741
  {
742
- className: chunkDA6DF3EU_js.cn(
742
+ className: chunkXMLPTDPM_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
- chunkC3JR7RMW_js.toolLabel(part.toolName),
759
+ chunkWFMSDYVQ_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: chunkDA6DF3EU_js.cn(
790
+ className: chunkXMLPTDPM_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(chunkC3JR7RMW_js.humanizeDiffLine);
837
+ const lines = proposal.summary.map(chunkWFMSDYVQ_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(() => chunkC3JR7RMW_js.deckIdFromBridge(bridge), [bridge]);
1045
+ const deckId = react.useMemo(() => chunkWFMSDYVQ_js.deckIdFromBridge(bridge), [bridge]);
1046
1046
  return /* @__PURE__ */ jsxRuntime.jsxs(
1047
1047
  "div",
1048
1048
  {
Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkHYUJVSQJ_js = require('./chunk-HYUJVSQJ.js');
3
+ var chunkSDOQKSKI_js = require('./chunk-SDOQKSKI.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 chunkHYUJVSQJ_js.mountModel3D(container, modelUrl, { width, height, interactive }).then((handle) => {
17
+ void chunkSDOQKSKI_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,4 +1,4 @@
1
- import { mountModel3D } from './chunk-VWCUKKR3.mjs';
1
+ import { mountModel3D } from './chunk-OXPD2UYI.mjs';
2
2
  import './chunk-XGB3TDIC.mjs';
3
3
  import { useRef, useEffect } from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
@@ -1,4 +1,4 @@
1
- import { f as PowerPointViewerHandle, p as PowerPointViewerProps } from "./types-TCH6icpi.js";
1
+ import { f as PowerPointViewerHandle, p as PowerPointViewerProps } from "./types-kLpvSPxq.js";
2
2
  import { PptxAnimationPreset, PptxNativeAnimation } from "pptx-viewer-core";
3
3
  import "pptx-viewer-shared";
4
4
  import React from "react";
@@ -18,4 +18,4 @@ declare function getAnimationInitialStyle(preset: PptxAnimationPreset | undefine
18
18
  declare const PowerPointViewer: import("react").ForwardRefExoticComponent<PowerPointViewerProps & import("react").RefAttributes<PowerPointViewerHandle>>;
19
19
  //#endregion
20
20
  export { getAnimationInitialStyle as n, PowerPointViewer as t };
21
- //# sourceMappingURL=PowerPointViewer-DVFkeluD.d.ts.map
21
+ //# sourceMappingURL=PowerPointViewer-SkkxAGKa.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PowerPointViewer-SkkxAGKa.d.ts","names":[],"sources":["../src/viewer/utils/animation-effects.ts","../src/viewer/PowerPointViewer.tsx"],"mappings":";;;;;iBAmBgB,yBACf,QAAQ,iCACR,kBAAkB,sBAChB,MAAM;;;;;;;;;;;;cCmGI,kCAAgB,0BAAA,wCAAA,cAAA"}
@@ -0,0 +1,47 @@
1
+ import { mountSurfaceChart3D } from './chunk-OXPD2UYI.mjs';
2
+ import './chunk-XGB3TDIC.mjs';
3
+ import { useRef, useEffect } from 'react';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ function SurfaceChart3DScene({
7
+ options
8
+ }) {
9
+ const containerRef = useRef(null);
10
+ const handleRef = useRef(null);
11
+ useEffect(() => {
12
+ const container = containerRef.current;
13
+ if (!container) {
14
+ return;
15
+ }
16
+ let disposed = false;
17
+ void mountSurfaceChart3D(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
+ useEffect(() => {
32
+ handleRef.current?.resize(options.width, options.height);
33
+ }, [options.width, options.height]);
34
+ return /* @__PURE__ */ 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
+ export { SurfaceChart3DScene as default };
@@ -0,0 +1,49 @@
1
+ 'use strict';
2
+
3
+ var chunkSDOQKSKI_js = require('./chunk-SDOQKSKI.js');
4
+ require('./chunk-4VNS5WPM.js');
5
+ var react = require('react');
6
+ var jsxRuntime = require('react/jsx-runtime');
7
+
8
+ function SurfaceChart3DScene({
9
+ options
10
+ }) {
11
+ const containerRef = react.useRef(null);
12
+ const handleRef = react.useRef(null);
13
+ react.useEffect(() => {
14
+ const container = containerRef.current;
15
+ if (!container) {
16
+ return;
17
+ }
18
+ let disposed = false;
19
+ void chunkSDOQKSKI_js.mountSurfaceChart3D(container, options).then((handle) => {
20
+ if (disposed) {
21
+ handle.dispose();
22
+ } else {
23
+ handleRef.current = handle;
24
+ }
25
+ return void 0;
26
+ });
27
+ return () => {
28
+ disposed = true;
29
+ handleRef.current?.dispose();
30
+ handleRef.current = null;
31
+ };
32
+ }, [options]);
33
+ react.useEffect(() => {
34
+ handleRef.current?.resize(options.width, options.height);
35
+ }, [options.width, options.height]);
36
+ return /* @__PURE__ */ jsxRuntime.jsx(
37
+ "div",
38
+ {
39
+ ref: containerRef,
40
+ style: {
41
+ width: options.width,
42
+ height: options.height,
43
+ willChange: "transform"
44
+ }
45
+ }
46
+ );
47
+ }
48
+
49
+ module.exports = SurfaceChart3DScene;
@@ -1,4 +1,4 @@
1
- import { C as CollaborationConfig$1, D as UserPresence, E as ConnectionStatus, w as CollaborationContextValue } from "./types-TCH6icpi.js";
1
+ import { C as CollaborationConfig$1, D as UserPresence, E as ConnectionStatus, w as CollaborationContextValue } from "./types-kLpvSPxq.js";
2
2
  import { PptxData, PptxElement, PptxHandler, PptxSlide, PptxThemeColorScheme, PptxThemeFontScheme, PptxThemePreset } from "pptx-viewer-core";
3
3
  import { CollabLoadOrigin, CollaborationConfig, CollaborationLivePatcher, PresentationSnapshot, clearAudienceContent, loadAudienceContent, storeAudienceContent } from "pptx-viewer-shared";
4
4
  import { RefObject } from "react";
@@ -390,4 +390,4 @@ interface UsePresenterWindowResult {
390
390
  declare function usePresenterWindow(input: UsePresenterWindowInput): UsePresenterWindowResult;
391
391
  //#endregion
392
392
  export { usePresenceTracking as C, ThemeSwitchingResult as D, useYjsProvider as E, UseThemeSwitchingInput as O, UsePresenceTrackingResult as S, UseYjsProviderResult as T, UseCollaborativeHistoryResult as _, UsePresenterWindowResult as a, useCollaborativeState as b, usePresenterWindow as c, useFollowMode as d, UseBroadcastFollowerInput as f, UseCollaborativeHistoryInput as g, useYjsDocumentSync as h, UsePresenterWindowInput as i, useThemeSwitching as k, UseFollowModeInput as l, UseYjsDocumentSyncInput as m, loadAudienceContent as n, isAudienceTab as o, useBroadcastFollower as p, storeAudienceContent as r, parseAudienceNonce as s, clearAudienceContent as t, UseFollowModeResult as u, useCollaborativeHistory as v, UseYjsProviderInput as w, UsePresenceTrackingInput as x, UseCollaborativeStateInput as y };
393
- //# sourceMappingURL=audience-content-store-C4BFFhV5.d.ts.map
393
+ //# sourceMappingURL=audience-content-store-Bx4Yj2pN.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"audience-content-store-C4BFFhV5.d.ts","names":[],"sources":["../src/viewer/hooks/useThemeSwitching.ts","../../../node_modules/.bun/lib0@0.2.117/node_modules/lib0/observable.d.ts","../../../node_modules/.bun/y-protocols@1.0.7+48ebd0cf55a3d4ab/node_modules/y-protocols/awareness.d.ts","../src/viewer/hooks/collaboration/useYjsProvider.ts","../src/viewer/hooks/collaboration/usePresenceTracking.ts","../src/viewer/hooks/collaboration/useCollaborativeState.ts","../src/viewer/hooks/collaboration/useCollaborativeHistory.ts","../src/viewer/hooks/collaboration/useYjsDocumentSync.ts","../src/viewer/hooks/collaboration/useBroadcastFollower.ts","../src/viewer/hooks/collaboration/useFollowMode.ts","../src/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hB;;EAEA;;EAEA;;EAEA;;EAEA;;UAGgB;;EAEhB;;EAEA;;EAEA;;EAEA;;iBAOe,0BACf,eAAe,gBACf,YACA,YACA,SACA,WACE,+BAA+B;;;UCpBjB;;EAEhB,KAAK;;EAEL,QAAQ;;EAER,2BAA2B,eAAe;;EAE1C,WAAW,MAAM,SAAS,MAAM,eAAe;;EAE/C;;;;;;;EAOA;;EAEA,SAAS,KAAK;;;;;EAKd,uBAAuB;;;;;;;;EAQvB;;;;;;;EAOA,aAAa;;iBAGE,qBACf,KACA,QACA,2BACA,WACA,aACA,UACA,QACA,gBACA,aACA,cACE;;;UCpEc;;EAEhB,QAAQ;;EAER;;EAEA,sBAAsB;;EAEtB;;;;;EAKA;;iBAOe,uBACf,QACA,kBACA,qBACA,YACA,UACE;;;UCzBc;;EAEhB,QAAQ;;EAER;;EAEA,sBAAsB;;EAEtB;;UAGgB;;EAEhB;;EAEA,aAAa;;iBAOE,gBACf,QACA,kBACA,qBACA,cACE,qBAAqB;;;;;;;iBCgBR;;iBAkDA;UAQC;EAChB;EACA;;EAEA,UAAU,cAAc;EACxB,UAAU;;UAGM;EAChB;EACA;EACA;EACA,sBAAsB;EACtB,sBAAsB,UAAU;EAChC,oBAAoB;;iBAOL,mBAAmB,OAAO,0BAA0B"}
1
+ {"version":3,"file":"audience-content-store-Bx4Yj2pN.d.ts","names":[],"sources":["../src/viewer/hooks/useThemeSwitching.ts","../../../node_modules/.bun/lib0@0.2.117/node_modules/lib0/observable.d.ts","../../../node_modules/.bun/y-protocols@1.0.7+48ebd0cf55a3d4ab/node_modules/y-protocols/awareness.d.ts","../src/viewer/hooks/collaboration/useYjsProvider.ts","../src/viewer/hooks/collaboration/usePresenceTracking.ts","../src/viewer/hooks/collaboration/useCollaborativeState.ts","../src/viewer/hooks/collaboration/useCollaborativeHistory.ts","../src/viewer/hooks/collaboration/useYjsDocumentSync.ts","../src/viewer/hooks/collaboration/useBroadcastFollower.ts","../src/viewer/hooks/collaboration/useFollowM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