pptx-react-viewer 4.34.0 → 4.36.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 (87) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/{AiChatPanel-CYD46SEM.mjs → AiChatPanel-CX74JT77.mjs} +1 -1
  3. package/dist/AiChatPanel-CX74JT77.mjs.br +0 -0
  4. package/dist/AiChatPanel-CX74JT77.mjs.gz +0 -0
  5. package/dist/{AiChatPanel-ONHWZEPV.js → AiChatPanel-PVRSPIAY.js} +9 -9
  6. package/dist/AiChatPanel-PVRSPIAY.js.br +0 -0
  7. package/dist/AiChatPanel-PVRSPIAY.js.gz +0 -0
  8. package/dist/{chunk-7DGKSEIU.js → chunk-4MGJUBY7.js} +2 -1
  9. package/dist/chunk-4MGJUBY7.js.br +0 -0
  10. package/dist/chunk-4MGJUBY7.js.gz +0 -0
  11. package/dist/{chunk-LNL6PAGZ.js → chunk-N67PQUQN.js} +1390 -1362
  12. package/dist/chunk-N67PQUQN.js.br +0 -0
  13. package/dist/chunk-N67PQUQN.js.gz +0 -0
  14. package/dist/{chunk-OWXES7IA.mjs → chunk-ON2ZUQWJ.mjs} +125 -97
  15. package/dist/chunk-ON2ZUQWJ.mjs.br +0 -0
  16. package/dist/chunk-ON2ZUQWJ.mjs.gz +0 -0
  17. package/dist/{chunk-LGZOY6W6.mjs → chunk-ORJPFBVE.mjs} +53 -44
  18. package/dist/chunk-ORJPFBVE.mjs.br +0 -0
  19. package/dist/chunk-ORJPFBVE.mjs.gz +0 -0
  20. package/dist/{chunk-K4UXDQZ6.mjs → chunk-SMPZ552M.mjs} +2 -1
  21. package/dist/chunk-SMPZ552M.mjs.br +0 -0
  22. package/dist/chunk-SMPZ552M.mjs.gz +0 -0
  23. package/dist/{chunk-XXGYLCRT.js → chunk-X5CTZHOP.js} +296 -287
  24. package/dist/chunk-X5CTZHOP.js.br +0 -0
  25. package/dist/chunk-X5CTZHOP.js.gz +0 -0
  26. package/dist/i18n/de.cjs +1 -0
  27. package/dist/i18n/de.cjs.br +0 -0
  28. package/dist/i18n/de.cjs.gz +0 -0
  29. package/dist/i18n/de.mjs +1 -0
  30. package/dist/i18n/de.mjs.br +0 -0
  31. package/dist/i18n/de.mjs.gz +0 -0
  32. package/dist/i18n/es.cjs +1 -0
  33. package/dist/i18n/es.cjs.br +0 -0
  34. package/dist/i18n/es.cjs.gz +0 -0
  35. package/dist/i18n/es.mjs +1 -0
  36. package/dist/i18n/es.mjs.br +0 -0
  37. package/dist/i18n/es.mjs.gz +0 -0
  38. package/dist/i18n/fr.cjs +1 -0
  39. package/dist/i18n/fr.cjs.br +0 -0
  40. package/dist/i18n/fr.cjs.gz +0 -0
  41. package/dist/i18n/fr.mjs +1 -0
  42. package/dist/i18n/fr.mjs.br +0 -0
  43. package/dist/i18n/fr.mjs.gz +0 -0
  44. package/dist/i18n/zh-CN.cjs +1 -0
  45. package/dist/i18n/zh-CN.cjs.br +0 -0
  46. package/dist/i18n/zh-CN.cjs.gz +0 -0
  47. package/dist/i18n/zh-CN.mjs +1 -0
  48. package/dist/i18n/zh-CN.mjs.br +0 -0
  49. package/dist/i18n/zh-CN.mjs.gz +0 -0
  50. package/dist/index.d.ts +2 -0
  51. package/dist/index.js +24 -24
  52. package/dist/index.js.br +0 -0
  53. package/dist/index.js.gz +0 -0
  54. package/dist/index.mjs +3 -3
  55. package/dist/index.mjs.br +0 -0
  56. package/dist/index.mjs.gz +0 -0
  57. package/dist/internals.d.ts +6 -2
  58. package/dist/internals.js +81 -81
  59. package/dist/internals.js.br +0 -0
  60. package/dist/internals.js.gz +0 -0
  61. package/dist/internals.mjs +2 -2
  62. package/dist/internals.mjs.br +0 -0
  63. package/dist/internals.mjs.gz +0 -0
  64. package/dist/viewer/index.d.ts +2 -0
  65. package/dist/viewer/index.js +19 -19
  66. package/dist/viewer/index.js.br +0 -0
  67. package/dist/viewer/index.js.gz +0 -0
  68. package/dist/viewer/index.mjs +3 -3
  69. package/dist/viewer/index.mjs.br +0 -0
  70. package/dist/viewer/index.mjs.gz +0 -0
  71. package/package.json +6 -6
  72. package/dist/AiChatPanel-CYD46SEM.mjs.br +0 -0
  73. package/dist/AiChatPanel-CYD46SEM.mjs.gz +0 -0
  74. package/dist/AiChatPanel-ONHWZEPV.js.br +0 -0
  75. package/dist/AiChatPanel-ONHWZEPV.js.gz +0 -0
  76. package/dist/chunk-7DGKSEIU.js.br +0 -0
  77. package/dist/chunk-7DGKSEIU.js.gz +0 -0
  78. package/dist/chunk-K4UXDQZ6.mjs.br +0 -0
  79. package/dist/chunk-K4UXDQZ6.mjs.gz +0 -0
  80. package/dist/chunk-LGZOY6W6.mjs.br +0 -0
  81. package/dist/chunk-LGZOY6W6.mjs.gz +0 -0
  82. package/dist/chunk-LNL6PAGZ.js.br +0 -0
  83. package/dist/chunk-LNL6PAGZ.js.gz +0 -0
  84. package/dist/chunk-OWXES7IA.mjs.br +0 -0
  85. package/dist/chunk-OWXES7IA.mjs.gz +0 -0
  86. package/dist/chunk-XXGYLCRT.js.br +0 -0
  87. package/dist/chunk-XXGYLCRT.js.gz +0 -0
package/CHANGELOG.md CHANGED
@@ -7,6 +7,55 @@ A release listed with no entries carried no Conventional Commit in this package'
7
7
  scope: scripts/release-plan.mjs releases whenever any published file changes, not only on
8
8
  conventional commits.
9
9
 
10
+ ## [4.36.0](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-react-viewer@4.36.0) - 2026-10-13
11
+
12
+ ### Features
13
+
14
+ - **ui:** Customize inspector startup and deck card visibility ([ada4979](https://github.com/ChristopherVR/ooxml/commit/ada49799906e5ed99159b1f326ae0cb1c737017e))
15
+
16
+ ### Bug Fixes
17
+
18
+ - **pptx:** Honor bounded native visibility timing ([a9a70ee](https://github.com/ChristopherVR/ooxml/commit/a9a70ee8c87abfb32ab3d6999c633073bf5e3ddd))
19
+ - **pptx:** Separate inherited paragraph spacing from direct values ([0c23aac](https://github.com/ChristopherVR/ooxml/commit/0c23aac22831cff4dd4a7dcce79d48ffdaab27b4))
20
+ - **pptx:** Apply explicit line spacing over inherited paragraphs ([aad8c3d](https://github.com/ChristopherVR/ooxml/commit/aad8c3deba0eb8d4034b208e732136a5fc24cc92))
21
+
22
+ ### Refactor
23
+
24
+ - **pptx:** Move native effect timing decisions into core ([61e030a](https://github.com/ChristopherVR/ooxml/commit/61e030a0ae01032d36da6211577bf340187052c8))
25
+ - **pptx:** Share font and whole-text edits in core ([94be138](https://github.com/ChristopherVR/ooxml/commit/94be138efc09b3eb881436eb07be54af0460fb45))
26
+ - **pptx:** Move paragraph and run style scope into core ([3ba3c32](https://github.com/ChristopherVR/ooxml/commit/3ba3c321af80efed2da4c6d58a377070c59b7c07))
27
+ - **pptx:** Move paragraph geometry cascade into core ([2dfc204](https://github.com/ChristopherVR/ooxml/commit/2dfc204f3ae6a84fed476073b3aefae261ab8d6b))
28
+
29
+ ### Dependencies
30
+
31
+ - **deps:** Update production dependencies ([bbd7b53](https://github.com/ChristopherVR/ooxml/commit/bbd7b530c7a15ae48c0c0a2ff4ea7dcdfe2aa9d3))
32
+
33
+ ## [4.35.0](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-react-viewer@4.35.0) - 2026-10-13
34
+
35
+ ### Features
36
+
37
+ - **ui:** Add a Size group with Crop to the Picture Format tab ([58f5906](https://github.com/ChristopherVR/ooxml/commit/58f5906b157cf2503b9348f671da76c591117cc6))
38
+ - **pptx:** Support native whole-shape fixed opacity ([7b0372e](https://github.com/ChristopherVR/ooxml/commit/7b0372ed918da963bf662a302334e68ccae972e2))
39
+ - **pptx:** Expose supported imported after-effect clearing ([936e248](https://github.com/ChristopherVR/ooxml/commit/936e248374a57fa90882879ab0a2ea607b4a4796))
40
+
41
+ ### Bug Fixes
42
+
43
+ - **pptx:** Paint animated picture frames above their images ([55ac6e8](https://github.com/ChristopherVR/ooxml/commit/55ac6e8d9ae5b4c74d0f1bd18b783864c9d446c1))
44
+ - **pptx:** Animate shape backgrounds independently of text ([1c2568b](https://github.com/ChristopherVR/ooxml/commit/1c2568b9fc5712ae34b9e0a11f530d4b298eb8a7))
45
+ - **core:** Keep custom-geometry command order through undo and copies ([3ea38e4](https://github.com/ChristopherVR/ooxml/commit/3ea38e4e1bda2a59e7677b3c1783d53a89d1ab75))
46
+ - **ui:** Keep spaces and line breaks in a wrap="none" text body ([12297d1](https://github.com/ChristopherVR/ooxml/commit/12297d13787c6230e406ab52d53c07365bcae185))
47
+ - **pptx:** Bound legacy opacity image hint admission ([a37cf62](https://github.com/ChristopherVR/ooxml/commit/a37cf62761132b312825d3fe9d317a28317c7e85))
48
+ - **pptx:** Refuse unresolved opacity parent timing ([8d71f85](https://github.com/ChristopherVR/ooxml/commit/8d71f852f4f0f4305cf18dbafcb151f6c7fac280))
49
+ - **pptx:** Preserve native after-state and honor explicit clears ([aed6a6d](https://github.com/ChristopherVR/ooxml/commit/aed6a6d03410a3487589edfa6f57bde243885a45))
50
+ - **pptx:** Number slide-number fields from the deck's firstSlideNum ([ec9b18d](https://github.com/ChristopherVR/ooxml/commit/ec9b18da409c971d08491b612db228fa32608c8b))
51
+ - **pptx:** Keep a:br line breaks soft through an inline text edit ([02e40ae](https://github.com/ChristopherVR/ooxml/commit/02e40aed4dc8388676d5b852d73e5065d1b3846f))
52
+ - **pptx:** Drop cleared cell fills and borders when the style changes ([99dbeba](https://github.com/ChristopherVR/ooxml/commit/99dbebabe7fd885998c52360610781e10ad3bca4))
53
+ - **ui:** Apply a picked font family to the whole text box ([5c20e49](https://github.com/ChristopherVR/ooxml/commit/5c20e4945a8b35bf68169715f3f4bd926ecfac86))
54
+
55
+ ### Testing
56
+
57
+ - **pptx:** Restore React translation state between files ([8994960](https://github.com/ChristopherVR/ooxml/commit/899496055fad208de2f65b96ab628d38b064bdcf))
58
+
10
59
  ## [4.34.0](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-react-viewer@4.34.0) - 2026-10-13
11
60
 
12
61
  ### Features
@@ -1,4 +1,4 @@
1
- import { cn } from './chunk-K4UXDQZ6.mjs';
1
+ import { cn } from './chunk-SMPZ552M.mjs';
2
2
  import './chunk-Q3DHYOLK.mjs';
3
3
  import { useMemo, useRef, useState, useEffect, useReducer, useCallback } from 'react';
4
4
  import { useTranslation } from 'react-i18next';
Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk7DGKSEIU_js = require('./chunk-7DGKSEIU.js');
3
+ var chunk4MGJUBY7_js = require('./chunk-4MGJUBY7.js');
4
4
  require('./chunk-W2IMY5SY.js');
5
5
  var react = require('react');
6
6
  var reactI18next = require('react-i18next');
@@ -365,7 +365,7 @@ function AiComposer({
365
365
  disabled: value.trim().length === 0,
366
366
  title: t("pptx.ai.send"),
367
367
  "aria-label": t("pptx.ai.send"),
368
- className: chunk7DGKSEIU_js.cn(
368
+ className: chunk4MGJUBY7_js.cn(
369
369
  "shrink-0 rounded-sm p-1.5 transition-colors",
370
370
  value.trim().length === 0 ? "text-muted-foreground/50" : "bg-primary text-primary-foreground hover:bg-primary/90"
371
371
  ),
@@ -396,7 +396,7 @@ function AiFocusBar({
396
396
  chips.map((chip) => /* @__PURE__ */ jsxRuntime.jsx(
397
397
  "span",
398
398
  {
399
- className: chunk7DGKSEIU_js.cn(
399
+ className: chunk4MGJUBY7_js.cn(
400
400
  "inline-flex max-w-[10rem] items-center rounded-full px-2 py-0.5 text-[11px]",
401
401
  hasPicks || isPinned ? "bg-primary/15 text-primary" : "bg-muted text-muted-foreground"
402
402
  ),
@@ -433,7 +433,7 @@ function AiFocusBar({
433
433
  title: t("pptx.ai.pickElement"),
434
434
  "aria-label": t("pptx.ai.pickAria"),
435
435
  "aria-pressed": pickMode,
436
- className: chunk7DGKSEIU_js.cn(
436
+ className: chunk4MGJUBY7_js.cn(
437
437
  "rounded-sm p-1 max-md:min-w-[44px]! max-md:min-h-[44px]! flex items-center justify-center",
438
438
  pickMode ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-accent"
439
439
  ),
@@ -512,7 +512,7 @@ function AiHistoryList({ chats, activeChatId, onResume, onDelete }) {
512
512
  {
513
513
  type: "button",
514
514
  onClick: () => onResume(chat.id),
515
- className: chunk7DGKSEIU_js.cn(
515
+ className: chunk4MGJUBY7_js.cn(
516
516
  "flex min-w-0 flex-1 items-start gap-2 rounded-sm px-2 py-1.5 text-left hover:bg-accent",
517
517
  chat.id === activeChatId && "bg-accent/60"
518
518
  ),
@@ -676,17 +676,17 @@ function AiToolCallCard({ part }) {
676
676
  /* @__PURE__ */ jsxRuntime.jsx(
677
677
  Icon,
678
678
  {
679
- className: chunk7DGKSEIU_js.cn(
679
+ className: chunk4MGJUBY7_js.cn(
680
680
  "w-3.5 h-3.5 shrink-0",
681
681
  failed ? "text-destructive" : "text-muted-foreground"
682
682
  )
683
683
  }
684
684
  ),
685
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: chunk7DGKSEIU_js.cn("truncate", failed ? "text-destructive" : "text-foreground"), children: activity.label }),
685
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: chunk4MGJUBY7_js.cn("truncate", failed ? "text-destructive" : "text-foreground"), children: activity.label }),
686
686
  /* @__PURE__ */ jsxRuntime.jsxs(
687
687
  "span",
688
688
  {
689
- className: chunk7DGKSEIU_js.cn(
689
+ className: chunk4MGJUBY7_js.cn(
690
690
  "ml-auto inline-flex items-center gap-1 rounded-sm px-1.5 py-0.5 text-[10px]",
691
691
  failed ? "bg-destructive/15 text-destructive" : done ? "bg-primary/10 text-primary" : "bg-muted text-muted-foreground"
692
692
  ),
@@ -734,7 +734,7 @@ function AiMessageList({ messages, isStreaming, bridge }) {
734
734
  /* @__PURE__ */ jsxRuntime.jsx(
735
735
  "div",
736
736
  {
737
- className: chunk7DGKSEIU_js.cn(
737
+ className: chunk4MGJUBY7_js.cn(
738
738
  "mt-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-full",
739
739
  isUser ? "bg-secondary text-muted-foreground" : "bg-primary/15 text-primary"
740
740
  ),
Binary file
Binary file
@@ -844,8 +844,9 @@ function getTextLayoutStyle(element) {
844
844
  wordBreak: textWrapNone ? "normal" : "break-word",
845
845
  overflow: "visible"
846
846
  } : {},
847
+ // `pre`, not `nowrap`, which also collapses runs of spaces (shared rule).
847
848
  ...textWrapNone ? {
848
- whiteSpace: "nowrap",
849
+ whiteSpace: "pre",
849
850
  overflow: "visible"
850
851
  } : {}
851
852
  };
Binary file
Binary file