pptx-react-viewer 1.16.2 → 1.17.1

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 (130) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/{Model3DScene-DI6FSWDL.mjs → Model3DScene-QHDYQXL2.mjs} +2 -2
  3. package/dist/Model3DScene-QHDYQXL2.mjs.br +0 -0
  4. package/dist/Model3DScene-QHDYQXL2.mjs.gz +0 -0
  5. package/dist/{Model3DScene-PE7L24QK.js → Model3DScene-YA4F63DT.js} +3 -3
  6. package/dist/Model3DScene-YA4F63DT.js.br +0 -0
  7. package/dist/Model3DScene-YA4F63DT.js.gz +0 -0
  8. package/dist/PowerPointViewer-C4d7SKZf.d.ts +21 -0
  9. package/dist/PowerPointViewer-C4d7SKZf.d.ts.map +1 -0
  10. package/dist/{SurfaceChart3DScene-NMLG3BQK.mjs → SurfaceChart3DScene-GUAS2NWQ.mjs} +2 -2
  11. package/dist/SurfaceChart3DScene-GUAS2NWQ.mjs.br +0 -0
  12. package/dist/SurfaceChart3DScene-GUAS2NWQ.mjs.gz +0 -0
  13. package/dist/{SurfaceChart3DScene-AJLD3VW6.js → SurfaceChart3DScene-TGNJHTJQ.js} +3 -3
  14. package/dist/SurfaceChart3DScene-TGNJHTJQ.js.br +0 -0
  15. package/dist/SurfaceChart3DScene-TGNJHTJQ.js.gz +0 -0
  16. package/dist/{chunk-HJQZJ3VE.mjs → chunk-5CD34U2V.mjs} +1 -1
  17. package/dist/chunk-5CD34U2V.mjs.br +0 -0
  18. package/dist/chunk-5CD34U2V.mjs.gz +0 -0
  19. package/dist/{chunk-46HNHBHF.mjs → chunk-G22EWPLH.mjs} +134 -4
  20. package/dist/chunk-G22EWPLH.mjs.br +0 -0
  21. package/dist/chunk-G22EWPLH.mjs.gz +0 -0
  22. package/dist/{chunk-JBCVQFWI.mjs → chunk-HN7CPQUG.mjs} +5 -5
  23. package/dist/chunk-HN7CPQUG.mjs.br +0 -0
  24. package/dist/chunk-HN7CPQUG.mjs.gz +0 -0
  25. package/dist/{chunk-WGLJ32FW.js → chunk-IZXN663G.js} +1 -1
  26. package/dist/chunk-IZXN663G.js.br +0 -0
  27. package/dist/chunk-IZXN663G.js.gz +0 -0
  28. package/dist/{chunk-WMRS37KQ.js → chunk-JWS3RQKN.js} +160 -28
  29. package/dist/chunk-JWS3RQKN.js.br +0 -0
  30. package/dist/chunk-JWS3RQKN.js.gz +0 -0
  31. package/dist/{chunk-YAQOTVZT.js → chunk-MGLRKGCH.js} +146 -66
  32. package/dist/chunk-MGLRKGCH.js.br +0 -0
  33. package/dist/chunk-MGLRKGCH.js.gz +0 -0
  34. package/dist/{chunk-DZF4BNRP.mjs → chunk-PCQH2UBR.mjs} +230 -232
  35. package/dist/chunk-PCQH2UBR.mjs.br +0 -0
  36. package/dist/chunk-PCQH2UBR.mjs.gz +0 -0
  37. package/dist/{chunk-MZYQUURK.js → chunk-SXCO5HHN.js} +438 -438
  38. package/dist/chunk-SXCO5HHN.js.br +0 -0
  39. package/dist/chunk-SXCO5HHN.js.gz +0 -0
  40. package/dist/{chunk-VRASDGWX.js → chunk-WH7YXV3I.js} +1026 -1028
  41. package/dist/chunk-WH7YXV3I.js.br +0 -0
  42. package/dist/chunk-WH7YXV3I.js.gz +0 -0
  43. package/dist/{chunk-X7ILBQEY.mjs → chunk-XRYREYXC.mjs} +146 -66
  44. package/dist/chunk-XRYREYXC.mjs.br +0 -0
  45. package/dist/chunk-XRYREYXC.mjs.gz +0 -0
  46. package/dist/{dist-VMFNUFUX.js → dist-2ZAH7U6U.js} +507 -507
  47. package/dist/dist-2ZAH7U6U.js.br +0 -0
  48. package/dist/dist-2ZAH7U6U.js.gz +0 -0
  49. package/dist/{dist-JJ2NI2O3.mjs → dist-MXDC6YTS.mjs} +1 -1
  50. package/dist/dist-MXDC6YTS.mjs.br +0 -0
  51. package/dist/dist-MXDC6YTS.mjs.gz +0 -0
  52. package/dist/hooks-unstable.d.ts +9683 -1886
  53. package/dist/hooks-unstable.d.ts.map +1 -0
  54. package/dist/hooks-unstable.js +75 -75
  55. package/dist/hooks-unstable.js.br +0 -0
  56. package/dist/hooks-unstable.js.gz +0 -0
  57. package/dist/hooks-unstable.mjs +4 -4
  58. package/dist/hooks-unstable.mjs.br +0 -0
  59. package/dist/hooks-unstable.mjs.gz +0 -0
  60. package/dist/i18n.d.ts +27 -1
  61. package/dist/i18n.d.ts.map +1 -0
  62. package/dist/i18n.js +3 -3
  63. package/dist/i18n.js.br +1 -1
  64. package/dist/i18n.js.gz +0 -0
  65. package/dist/i18n.mjs +1 -1
  66. package/dist/i18n.mjs.br +0 -0
  67. package/dist/i18n.mjs.gz +0 -0
  68. package/dist/index-XGt7MZpa.d.ts +607 -0
  69. package/dist/index-XGt7MZpa.d.ts.map +1 -0
  70. package/dist/index.d.ts +4753 -10
  71. package/dist/index.d.ts.map +1 -0
  72. package/dist/index.js +19 -19
  73. package/dist/index.js.br +0 -0
  74. package/dist/index.js.gz +0 -0
  75. package/dist/index.mjs +5 -5
  76. package/dist/index.mjs.br +0 -0
  77. package/dist/index.mjs.gz +0 -0
  78. package/dist/types-BK7Nt13M.d.ts +483 -0
  79. package/dist/types-BK7Nt13M.d.ts.map +1 -0
  80. package/dist/viewer/index.d.ts +8008 -88
  81. package/dist/viewer/index.d.ts.map +1 -0
  82. package/dist/viewer/index.js +20 -20
  83. package/dist/viewer/index.js.br +0 -0
  84. package/dist/viewer/index.js.gz +0 -0
  85. package/dist/viewer/index.mjs +5 -5
  86. package/dist/viewer/index.mjs.br +0 -0
  87. package/dist/viewer/index.mjs.gz +0 -0
  88. package/package.json +6 -5
  89. package/dist/Model3DScene-DI6FSWDL.mjs.br +0 -0
  90. package/dist/Model3DScene-DI6FSWDL.mjs.gz +0 -0
  91. package/dist/Model3DScene-PE7L24QK.js.br +0 -0
  92. package/dist/Model3DScene-PE7L24QK.js.gz +0 -0
  93. package/dist/PowerPointViewer-BsaUH3ZT.d.ts +0 -26
  94. package/dist/PowerPointViewer-Nxku67uL.d.mts +0 -26
  95. package/dist/SurfaceChart3DScene-AJLD3VW6.js.br +0 -0
  96. package/dist/SurfaceChart3DScene-AJLD3VW6.js.gz +0 -0
  97. package/dist/SurfaceChart3DScene-NMLG3BQK.mjs.br +0 -0
  98. package/dist/SurfaceChart3DScene-NMLG3BQK.mjs.gz +0 -0
  99. package/dist/chunk-46HNHBHF.mjs.br +0 -0
  100. package/dist/chunk-46HNHBHF.mjs.gz +0 -0
  101. package/dist/chunk-DZF4BNRP.mjs.br +0 -0
  102. package/dist/chunk-DZF4BNRP.mjs.gz +0 -0
  103. package/dist/chunk-HJQZJ3VE.mjs.br +0 -0
  104. package/dist/chunk-HJQZJ3VE.mjs.gz +0 -0
  105. package/dist/chunk-JBCVQFWI.mjs.br +0 -0
  106. package/dist/chunk-JBCVQFWI.mjs.gz +0 -0
  107. package/dist/chunk-MZYQUURK.js.br +0 -0
  108. package/dist/chunk-MZYQUURK.js.gz +0 -0
  109. package/dist/chunk-VRASDGWX.js.br +0 -0
  110. package/dist/chunk-VRASDGWX.js.gz +0 -0
  111. package/dist/chunk-WGLJ32FW.js.br +0 -0
  112. package/dist/chunk-WGLJ32FW.js.gz +0 -0
  113. package/dist/chunk-WMRS37KQ.js.br +0 -0
  114. package/dist/chunk-WMRS37KQ.js.gz +0 -0
  115. package/dist/chunk-X7ILBQEY.mjs.br +0 -0
  116. package/dist/chunk-X7ILBQEY.mjs.gz +0 -0
  117. package/dist/chunk-YAQOTVZT.js.br +0 -0
  118. package/dist/chunk-YAQOTVZT.js.gz +0 -0
  119. package/dist/dist-JJ2NI2O3.mjs.br +0 -0
  120. package/dist/dist-JJ2NI2O3.mjs.gz +0 -0
  121. package/dist/dist-VMFNUFUX.js.br +0 -0
  122. package/dist/dist-VMFNUFUX.js.gz +0 -0
  123. package/dist/hooks-unstable.d.mts +0 -2300
  124. package/dist/i18n.d.mts +0 -1
  125. package/dist/index.d.mts +0 -46
  126. package/dist/types-ui-NG29h55h.d.mts +0 -712
  127. package/dist/types-ui-NG29h55h.d.ts +0 -712
  128. package/dist/usePresenterWindow-DToCijGy.d.ts +0 -1619
  129. package/dist/usePresenterWindow-DeTm-unp.d.mts +0 -1619
  130. package/dist/viewer/index.d.mts +0 -129
package/CHANGELOG.md CHANGED
@@ -4,6 +4,22 @@ 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
+ ## [1.17.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@1.17.0) - 2026-07-13
8
+
9
+ ### Bug Fixes
10
+
11
+ - **build:** Restore compatibility after dependency updates (by @ChristopherVR) ([ddbfae6](https://github.com/ChristopherVR/pptx-viewer/commit/ddbfae687669b9e6c64fd3c3b16a592623b79c10))
12
+
13
+ ### Dependencies
14
+
15
+ - **deps:** Update html2canvas-pro to 2.2.3 (by @dependabot[bot]) ([0fe015b](https://github.com/ChristopherVR/pptx-viewer/commit/0fe015b83722534f14864b2054ce6561b09386ca))
16
+ - **deps:** Update fast-xml-parser to 5.10.0 (by @dependabot[bot]) ([6080273](https://github.com/ChristopherVR/pptx-viewer/commit/6080273f6a6f603d10d69a71d54faad1e6d9bf05))
17
+ - **deps:** Update dompurify to 3.4.12 (by @dependabot[bot]) ([00a6ca4](https://github.com/ChristopherVR/pptx-viewer/commit/00a6ca49609d5a0e922a9e20447460b11ec690ba))
18
+ - **deps:** Update minor and patch dependencies (by @dependabot[bot]) ([5cd81fb](https://github.com/ChristopherVR/pptx-viewer/commit/5cd81fb0c8708e53990ac4858660d0b6a4b17a7a))
19
+ - **deps:** Update typescript to 7.0.2 (by @dependabot[bot]) ([0a7c1f1](https://github.com/ChristopherVR/pptx-viewer/commit/0a7c1f1f7f0ccdee9537f1e11177b6a39839d221))
20
+
21
+ ## [1.16.2](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@1.16.2) - 2026-07-13
22
+
7
23
  ## [1.16.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@1.16.1) - 2026-07-12
8
24
 
9
25
  ## [1.16.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@1.16.0) - 2026-07-11
@@ -1,5 +1,5 @@
1
- import { mountModel3D } from './chunk-46HNHBHF.mjs';
2
- import './chunk-X7ILBQEY.mjs';
1
+ import { mountModel3D } from './chunk-G22EWPLH.mjs';
2
+ import './chunk-XRYREYXC.mjs';
3
3
  import './chunk-6DZX6EAA.mjs';
4
4
  import { useRef, useEffect } from 'react';
5
5
  import { jsx } from 'react/jsx-runtime';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkWMRS37KQ_js = require('./chunk-WMRS37KQ.js');
4
- require('./chunk-YAQOTVZT.js');
3
+ var chunkJWS3RQKN_js = require('./chunk-JWS3RQKN.js');
4
+ require('./chunk-MGLRKGCH.js');
5
5
  require('./chunk-QGM4M3NI.js');
6
6
  var react = require('react');
7
7
  var jsxRuntime = require('react/jsx-runtime');
@@ -15,7 +15,7 @@ function Model3DScene({ modelUrl, interactive, width, height }) {
15
15
  return;
16
16
  }
17
17
  let disposed = false;
18
- void chunkWMRS37KQ_js.mountModel3D(container, modelUrl, { width, height, interactive }).then((handle) => {
18
+ void chunkJWS3RQKN_js.mountModel3D(container, modelUrl, { width, height, interactive }).then((handle) => {
19
19
  if (disposed) {
20
20
  handle.dispose();
21
21
  } else {
Binary file
Binary file
@@ -0,0 +1,21 @@
1
+ import { f as PowerPointViewerHandle, p as PowerPointViewerProps } from "./types-BK7Nt13M.js";
2
+ import { PptxAnimationPreset, PptxNativeAnimation } from "pptx-viewer-core";
3
+ import "pptx-viewer-shared";
4
+ import React from "react";
5
+ //#region src/viewer/utils/animation-effects.d.ts
6
+ declare function getAnimationInitialStyle(preset: PptxAnimationPreset | undefined, nativeAnimation?: PptxNativeAnimation): React.CSSProperties;
7
+ //#endregion
8
+ //#region src/viewer/PowerPointViewer.d.ts
9
+ /**
10
+ * Root React component for the PowerPoint viewer/editor.
11
+ *
12
+ * Accepts binary `.pptx` content and renders a full-featured editor with
13
+ * slide canvas, toolbar, inspector panels, presentation mode, and more.
14
+ *
15
+ * Uses `forwardRef` to expose a `PowerPointViewerHandle` for imperative
16
+ * access (e.g. serialising the current content for saving).
17
+ */
18
+ declare const PowerPointViewer: import("react").ForwardRefExoticComponent<PowerPointViewerProps & import("react").RefAttributes<PowerPointViewerHandle>>;
19
+ //#endregion
20
+ export { getAnimationInitialStyle as n, PowerPointViewer as t };
21
+ //# sourceMappingURL=PowerPointViewer-C4d7SKZf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PowerPointViewer-C4d7SKZf.d.ts","names":[],"sources":["../src/viewer/utils/animation-effects.ts","../src/viewer/PowerPointViewer.tsx"],"mappings":";;;;;iBAmBgB,yBACf,QAAQ,iCACR,kBAAkB,sBAChB,MAAM;;;;;;;;;;;;cC2DI,kCAAgB,0BAAA,wCAAA,cAAA"}
@@ -1,5 +1,5 @@
1
- import { mountSurfaceChart3D } from './chunk-46HNHBHF.mjs';
2
- import './chunk-X7ILBQEY.mjs';
1
+ import { mountSurfaceChart3D } from './chunk-G22EWPLH.mjs';
2
+ import './chunk-XRYREYXC.mjs';
3
3
  import './chunk-6DZX6EAA.mjs';
4
4
  import { useRef, useEffect } from 'react';
5
5
  import { jsxs, jsx } from 'react/jsx-runtime';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkWMRS37KQ_js = require('./chunk-WMRS37KQ.js');
4
- require('./chunk-YAQOTVZT.js');
3
+ var chunkJWS3RQKN_js = require('./chunk-JWS3RQKN.js');
4
+ require('./chunk-MGLRKGCH.js');
5
5
  require('./chunk-QGM4M3NI.js');
6
6
  var react = require('react');
7
7
  var jsxRuntime = require('react/jsx-runtime');
@@ -26,7 +26,7 @@ function SurfaceChart3DScene({
26
26
  return;
27
27
  }
28
28
  let disposed = false;
29
- void chunkWMRS37KQ_js.mountSurfaceChart3D(container, {
29
+ void chunkJWS3RQKN_js.mountSurfaceChart3D(container, {
30
30
  cols,
31
31
  rows,
32
32
  heightMap,
@@ -155,7 +155,7 @@ var translationsEn = {
155
155
  "pptx.collaboration.status.connecting": "Connecting...",
156
156
  "pptx.collaboration.status.disconnected": "Disconnected",
157
157
  "pptx.collaboration.status.error": "Connection error",
158
- "pptx.collaboration.statusAriaLabel": "Collaboration: {{status}}. {{count}} user(s) connected.",
158
+ "pptx.collaboration.statusAriaLabel": "Collaboration: {{status}}",
159
159
  "pptx.collaboration.userCount": "{{count}} user(s)",
160
160
  "pptx.collaboration.youLabel": "{{name}} (you)",
161
161
  "pptx.collaboration.usersConnected": "{{count}} user(s) connected",
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import { MIN_ELEMENT_SIZE, guideEmuToPx, THEME_COLOR_SCHEME_KEYS, hasShapeProperties, hasTextProperties, createChartElement, getShapeClipPath, getAdjustmentAwareShapeClipPath, getShapeClipPathFromPreset, getCloudPathForRendering, hslToRgb, PRESET_COLOR_MAP, isImageLikeElement, applyDrawingColorTransforms } from './chunk-X7ILBQEY.mjs';
1
+ import { MIN_ELEMENT_SIZE, guideEmuToPx, THEME_COLOR_SCHEME_KEYS, hasShapeProperties, hasTextProperties, createChartElement, getShapeClipPath, getAdjustmentAwareShapeClipPath, getShapeClipPathFromPreset, getCloudPathForRendering, hslToRgb, PRESET_COLOR_MAP, isImageLikeElement, applyDrawingColorTransforms } from './chunk-XRYREYXC.mjs';
2
2
  import DOMPurify from 'dompurify';
3
3
 
4
4
  var defaultThemeColors = {
@@ -2018,6 +2018,68 @@ function buildWarpPath(preset, width, height, lineIndex, lineCount, adj, adj2) {
2018
2018
  return `M 0,${y} L ${width},${y}`;
2019
2019
  }
2020
2020
  var getWarpPath = buildWarpPath;
2021
+ function getOmmlMathColor(node) {
2022
+ if (!node || typeof node !== "object") {
2023
+ return void 0;
2024
+ }
2025
+ const drawingRunProperties = node["a:rPr"];
2026
+ if (drawingRunProperties && typeof drawingRunProperties === "object") {
2027
+ const solidFill = drawingRunProperties["a:solidFill"];
2028
+ const srgbColor = solidFill && typeof solidFill === "object" ? solidFill["a:srgbClr"] : void 0;
2029
+ const value = srgbColor?.["@_val"];
2030
+ if (typeof value === "string" && /^[0-9a-f]{6}$/iu.test(value)) {
2031
+ return `#${value.toUpperCase()}`;
2032
+ }
2033
+ }
2034
+ for (const value of Object.values(node)) {
2035
+ if (Array.isArray(value)) {
2036
+ for (const child2 of value) {
2037
+ if (child2 && typeof child2 === "object") {
2038
+ const color = getOmmlMathColor(child2);
2039
+ if (color) {
2040
+ return color;
2041
+ }
2042
+ }
2043
+ }
2044
+ } else if (value && typeof value === "object") {
2045
+ const color = getOmmlMathColor(value);
2046
+ if (color) {
2047
+ return color;
2048
+ }
2049
+ }
2050
+ }
2051
+ return void 0;
2052
+ }
2053
+ function getOmmlMathFontSize(node) {
2054
+ if (!node || typeof node !== "object") {
2055
+ return void 0;
2056
+ }
2057
+ const drawingRunProperties = node["a:rPr"];
2058
+ if (drawingRunProperties && typeof drawingRunProperties === "object") {
2059
+ const size = Number(drawingRunProperties["@_sz"]);
2060
+ if (Number.isFinite(size) && size > 0) {
2061
+ return size / 100;
2062
+ }
2063
+ }
2064
+ for (const value of Object.values(node)) {
2065
+ if (Array.isArray(value)) {
2066
+ for (const child2 of value) {
2067
+ if (child2 && typeof child2 === "object") {
2068
+ const size = getOmmlMathFontSize(child2);
2069
+ if (size) {
2070
+ return size;
2071
+ }
2072
+ }
2073
+ }
2074
+ } else if (value && typeof value === "object") {
2075
+ const size = getOmmlMathFontSize(value);
2076
+ if (size) {
2077
+ return size;
2078
+ }
2079
+ }
2080
+ }
2081
+ return void 0;
2082
+ }
2021
2083
  function child(node, key) {
2022
2084
  if (!node) {
2023
2085
  return {};
@@ -2487,7 +2549,11 @@ function convertOmmlToMathMl(ommlNode) {
2487
2549
  if (inner.length === 0) {
2488
2550
  return "";
2489
2551
  }
2490
- return `<math xmlns="http://www.w3.org/1998/Math/MathML" display="inline">${inner}</math>`;
2552
+ const color = getOmmlMathColor(ommlNode);
2553
+ const colorAttribute = color ? ` mathcolor="${color}"` : "";
2554
+ const fontSize = getOmmlMathFontSize(ommlNode);
2555
+ const sizeAttribute = fontSize ? ` mathsize="${fontSize}pt"` : "";
2556
+ return `<math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"${colorAttribute}${sizeAttribute}>${inner}</math>`;
2491
2557
  }
2492
2558
  var GREEK_MAP = {
2493
2559
  "\\alpha": "\u03B1",
@@ -10267,6 +10333,21 @@ function groupElements(elements, ids, groupId) {
10267
10333
  ];
10268
10334
  return { elements: result, groupId };
10269
10335
  }
10336
+ var DEFAULT_SLIDE_BACKGROUND = "#ffffff";
10337
+ function getSlideBackgroundStyle(slide) {
10338
+ const style = {};
10339
+ const pattern = slide?.backgroundPattern;
10340
+ const solid = slide?.backgroundColor && slide.backgroundColor !== "transparent" ? slide.backgroundColor : void 0;
10341
+ style["background-color"] = pattern?.bgColor ?? solid ?? DEFAULT_SLIDE_BACKGROUND;
10342
+ if (slide?.backgroundImage) {
10343
+ style["background-image"] = `url(${slide.backgroundImage})`;
10344
+ style["background-size"] = "100% 100%";
10345
+ style["background-repeat"] = "no-repeat";
10346
+ } else if (slide?.backgroundGradient) {
10347
+ style["background-image"] = slide.backgroundGradient;
10348
+ }
10349
+ return style;
10350
+ }
10270
10351
  var DEFAULT_X = 100;
10271
10352
  var TABLE_WIDTH = 600;
10272
10353
  var TABLE_HEIGHT = 250;
@@ -11612,7 +11693,11 @@ function sanitizeMarkupOrEmpty(markup, config) {
11612
11693
  return sanitize ? sanitize(markup, config) : "";
11613
11694
  }
11614
11695
  function sanitizeMathMl(markup) {
11615
- return sanitizeMarkupOrRaw(markup, { USE_PROFILES: { mathMl: true, svg: true } });
11696
+ const sanitized = sanitizeMarkupOrRaw(markup, { USE_PROFILES: { mathMl: true, svg: true } });
11697
+ if (/<math(?:\s|>)/iu.test(markup) && !/<math(?:\s|>)/iu.test(sanitized) && sanitized) {
11698
+ return `<math xmlns="http://www.w3.org/1998/Math/MathML" display="inline">${sanitized}</math>`;
11699
+ }
11700
+ return sanitized;
11616
11701
  }
11617
11702
  function hexToRgb6(hex) {
11618
11703
  const clean = hex.replace(/^#/u, "");
@@ -15636,6 +15721,51 @@ async function mountSurfaceChart3D(container, options) {
15636
15721
  }
15637
15722
  };
15638
15723
  }
15724
+ var FONT_NAME_UNSAFE_CHARS = /["\\\n\r;}<>]/u;
15725
+ var FONT_FORMAT_ALLOWED = /* @__PURE__ */ new Set(["truetype", "opentype", "woff", "woff2"]);
15726
+ var FONT_DATA_URL_PATTERN = /^data:font\/[a-z0-9+.-]+(?:;charset=[a-z0-9-]+)?;base64,[a-z0-9+/=]+$/iu;
15727
+ var DEFAULT_FONT_FORMAT = "truetype";
15728
+ function isInjectableUrl(url) {
15729
+ if (typeof url !== "string" || url.length === 0) {
15730
+ return false;
15731
+ }
15732
+ if (url.startsWith("blob:")) {
15733
+ return true;
15734
+ }
15735
+ return FONT_DATA_URL_PATTERN.test(url);
15736
+ }
15737
+ function normalizeFontFormat(format) {
15738
+ return typeof format === "string" && FONT_FORMAT_ALLOWED.has(format) ? format : DEFAULT_FONT_FORMAT;
15739
+ }
15740
+ function buildFontFaceRule(variant) {
15741
+ return [
15742
+ "@font-face {",
15743
+ ` font-family: "${variant.name}";`,
15744
+ ` src: url("${variant.url}") format("${variant.format}");`,
15745
+ ` font-weight: ${variant.weight};`,
15746
+ ` font-style: ${variant.style};`,
15747
+ " font-display: swap;",
15748
+ "}"
15749
+ ].join("\n");
15750
+ }
15751
+ function buildUserFontFaceStyles(fonts) {
15752
+ const rules = [];
15753
+ for (const font of fonts ?? []) {
15754
+ const family = typeof font.family === "string" ? font.family.trim() : "";
15755
+ const src = typeof font.src === "string" ? font.src.trim() : "";
15756
+ const isRemoteUrl = /^https?:\/\/[^"\\\n\r{};]+$/iu.test(src);
15757
+ if (!family || FONT_NAME_UNSAFE_CHARS.test(family) || !(isInjectableUrl(src) || isRemoteUrl)) {
15758
+ continue;
15759
+ }
15760
+ const format = normalizeFontFormat(font.format);
15761
+ const weight = typeof font.weight === "number" || typeof font.weight === "string" ? font.weight : "400";
15762
+ const style = font.style === "italic" ? "italic" : "normal";
15763
+ rules.push(
15764
+ buildFontFaceRule({ name: family, url: src, format, weight: String(weight), style })
15765
+ );
15766
+ }
15767
+ return rules.join("\n\n");
15768
+ }
15639
15769
  var EXPORT_ASSEMBLING_PERCENT = 95;
15640
15770
  var EXPORT_DONE_PERCENT = 100;
15641
15771
  function clampPercent(value) {
@@ -19198,4 +19328,4 @@ function segmentFrameCount(durationMs, fps) {
19198
19328
  return Math.max(1, Math.ceil(durationMs / (1e3 / fps)));
19199
19329
  }
19200
19330
 
19201
- export { ACTION_BUTTON_PRESETS, ARTISTIC_EFFECTS, BROADCAST_THROTTLE_MS, CATEGORIES, CONNECTION_TIMEOUT_MS, DEFAULT_BROADCAST_SERVER_URL, DEFAULT_COLOR_CHANGE_TOLERANCE, DEFAULT_INSERT_CHART_TYPE, DEFAULT_ROW_HEIGHT, DIRECTIONAL_PRESETS, DUOTONE_PRESETS, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, FILL_MODE_OPTIONS, GRADIENT_TYPE_OPTIONS, HANDOUT_OPTIONS, INK_REPLAY_KEYFRAMES, INSERT_CHART_TYPES, LBL, LOCAL_SYNC_ORIGIN, MOBILE_BREAKPOINT, NOTES_FONT_SIZE_DEFAULT, NOTES_FONT_SIZE_MAX, NOTES_FONT_SIZE_MIN, NOTES_FONT_SIZE_STEP, NUM, PATTERN_OPTIONS, PRESETS, RULER_FONT_SIZE, RULER_THICKNESS, SECTION_HEADING, SEL, SHAPE_PRESET_DEFS, SLIDE_TRANSITION_KEYFRAMES, TABLET_BREAKPOINT, TABLE_STYLE_PRESETS, TAB_ROW_ACTION_CLASSES, TEXT_BUILD_ID_SEP, THEME_COLOR_LABELS, TITLE_BAR_CLASSES, TITLE_BAR_DEFAULT_FILE_KEY, TimelineEngine, WEBM_MIME_CANDIDATES, addSection, alignElements, apply3dEffects, applyCaseTransformToSegments, applyColorChange, applyDuotone, applyFormatToElement, applyReroutedConnectors, applyResize, applyStyleToSelectedSegments, bringForward, bringToFront, build3DExtrusionData, buildBroadcastViewerUrl, buildCacheKey, buildChartViewModel, buildCssGradientFromShapeStyle, buildDuotoneCacheKey, buildElementClipboardPayload, buildGlowBoxShadow, buildHandoutsHtml, buildInitialGuides, buildInnerShadowCssFromShapeStyle, buildMultiLayerShadowCss, buildNotesHtml, buildNotesPdfBytes, buildOutlineHtml, buildPatternFillCss, buildPreviewAnimation, buildPrintDocument, buildPrintHtmlDocument, buildReflectionCss, buildShadowCssFromShapeStyle, buildSlidesHtml, buildSlidesPdfBytes, buildSmartArt3DModel, buildSmartArtA11y, buildSmartArtPresetData, buildTextBody3DSceneStyle, buildTextFillCss, buildTextReflectionCss, buildTextRunFilterChain, buildTextShadowCss, buildThemeColorGrid, canvasToJpegData, chartPartToAttrs, clampCropValue, clampNotesFontSize, clampPercent, clampUnitInterval, cloneElementForPaste, cloneHistorySnapshot, cloneSlide, cloneTemplateElementsBySlideId, collectImagePaths, collectMediaElements, colorWithOpacity, comparePresentation, computeAllNotesPages, computeAutoFitTextStyle, computeColumnBoundaries, computeHandoutLayout, computeInlineEditorRect, computeKeyboardInset, computeLayout, computeLayoutOptions, computeMarqueeHitIds, computeMergeCellDown, computeMergeCellRight, computeResizedColumnWidths, computeResizedRowHeight, computeScrollDelta, computeSelectionRect, computeSmartArtLayout, computeSnapToShape, computeSplitCell, computeValueRange, computeValueRangeForChart, convertLatexToOmml, convertOmmlToLatex, convertOmmlToMathMl, copyFormatFromElement, countTextSegments, createBlankSlide, createDefaultChartElement, createSyncGate, createTouchGestureRecognizer, defaultCssVars, defaultRadius, defaultThemeColors, deleteSection, deleteTableColumn, deleteTableRow, derivePresenceList, detectOrientation, detectTouchDevice, distributeElements, downloadBlob, downloadDataUrl, dragAnchorViewY, dragValueForPart, encodeGif, expandTextBuildAnimations, extractPathPoints, filterCommands, findChartPartTarget, findSmartArtNodeText, formatAxisValue, formatAxisValueWithUnits, formatBytes, formatCommentTimestamp, formatElapsed, formatMobileElapsed, formatRelativeTime, formatSlideCounter, formatTime, formatVersionTimestamp, fpsToFrameIntervalMs, generateBroadcastRoomId, generateElementId, generateLogTicks, generateNoteLineCount, generatePressureCircles, generateTicks, getAnimationInitialStyle, getAriaLabel, getAriaRole, getAriaRoleDescription, getCachedResult, getChartStylePalette, getCommentMarkerPosition, getCompoundLineBorderWidth, getCompoundLineBoxShadow, getCompoundLineOffsets, getCompoundLineWidths, getConnectionSites, getContentPartReplayStyles, getCssBorderDashStyle, getDisplayUnitLabel, getDuotoneCachedResult, getEffectDagFilter, getElementLabel, getElementTransform, getElementTransformWithoutRotation, getImageEffectsFilter, getImageEffectsOpacity, getInkReplayStyles, getInlineEditorSelection, getKinsokuLineBreakStyles, getNotesPrintableArea, getOleBadgeLabel, getOleTypeColor, getOleTypeLabel, getPatternSvg, getPendingSelectionRestore, getPrintableArea, getResolvedShapeClipPath, getRoundRectRadiusPx, getSecondaryValueAxis, getShapeAdjustmentHandleDescriptor, getSlideTransitionAnimations, getSvgStrokeDasharray, getTextAlphaOpacity, getTextCompensationTransform, getWarpPath, groupElements, groupIntoParagraphs, hasCopyableFormat, hasDistinctScriptFonts, hasPressureVariation, insertTableColumn, insertTableRow, isBrowserOpenableMime, isCellInRect, isEditableTextElement, isExportAbortError, isFirstSlide, isKeyboardOpen, isLastSlide, isMixedContentBlocked, isMobileViewport, isPpactionUrl, isTemplateElement, isTemplateElementId, isUrlSafe, makeCloneId, makeSlideId, mergeAdditiveSelection, mergeCells, mobileElapsedSince, mobileSlideCounter, mountModel3D, mountSurfaceChart3D, moveSectionDown, moveSectionUp, moveSlidesToSection, newTableElement, normalizeColorsForCapture, normalizeHexColor, normalizeStrokeDashType, normalizeValue, notesSegmentsToSpans, observeYDocSlides, ooxmlDashToCssBorderStyle, openPptxFile, openUrlInNewTab, paletteColor, parseDrawingColor, parseDrawingColorOpacity, parsePpactionUrl, pickSupportedMimeType, preprocessCssForCapture, pressuresToWidths, readSlidesFromYDoc, readViewportMetrics, rebuildDrawingShapesIfCleared, reconcileSlidesInYDoc, recordProgressPercent, rectToCells, remapTextToSegments, renameSection, rerouteConnectorsForMovedElements, resolveCssTextAlign, resolveDrawingShapeNodeId, resolveFontForScript, resolveInkColor, resolveInkOpacity, resolveInkWidth, resolveLineHeight, resolveOleType, resolveParagraphAlign, resolveParagraphRtl, resolveRegionCode, resolveTitleBarStatusKey, resolveTransitionDurationMs, resolveTransportForServerUrl, resolveUnderlineDecorationStyle, restoreSegmentSelection, safeOpenUrl, sanitizeColor, sanitizeDownloadFilename, sanitizeMathMl, saveAutosaveSnapshot, secureRandomUuid, segmentByScript, segmentFrameCount, sendBackward, sendToBack, sequentialColorScale, seriesColor, setCachedResult, setDuotoneCachedResult, setPendingSelectionRestore, shadeColor2, shouldCommitSmartArtNodeText, shouldUseSvgWarp, slideProgressPercent, slideStatusLabel, snapBoxToGrid, splitCell, splitSeriesByAxis, substituteFieldText, svgLineCap, themeToCssVars, tintColor2, toCssTextOrientation, toCssVerticalDirection, toCssWritingMode, transformTextCase, validateRoomId, valueToY, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, withChartPointValue, withChartTitle };
19331
+ export { ACTION_BUTTON_PRESETS, ARTISTIC_EFFECTS, BROADCAST_THROTTLE_MS, CATEGORIES, CONNECTION_TIMEOUT_MS, DEFAULT_BROADCAST_SERVER_URL, DEFAULT_COLOR_CHANGE_TOLERANCE, DEFAULT_INSERT_CHART_TYPE, DEFAULT_ROW_HEIGHT, DIRECTIONAL_PRESETS, DUOTONE_PRESETS, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, FILL_MODE_OPTIONS, GRADIENT_TYPE_OPTIONS, HANDOUT_OPTIONS, INK_REPLAY_KEYFRAMES, INSERT_CHART_TYPES, LBL, LOCAL_SYNC_ORIGIN, MOBILE_BREAKPOINT, NOTES_FONT_SIZE_DEFAULT, NOTES_FONT_SIZE_MAX, NOTES_FONT_SIZE_MIN, NOTES_FONT_SIZE_STEP, NUM, PATTERN_OPTIONS, PRESETS, RULER_FONT_SIZE, RULER_THICKNESS, SECTION_HEADING, SEL, SHAPE_PRESET_DEFS, SLIDE_TRANSITION_KEYFRAMES, TABLET_BREAKPOINT, TABLE_STYLE_PRESETS, TAB_ROW_ACTION_CLASSES, TEXT_BUILD_ID_SEP, THEME_COLOR_LABELS, TITLE_BAR_CLASSES, TITLE_BAR_DEFAULT_FILE_KEY, TimelineEngine, WEBM_MIME_CANDIDATES, addSection, alignElements, apply3dEffects, applyCaseTransformToSegments, applyColorChange, applyDuotone, applyFormatToElement, applyReroutedConnectors, applyResize, applyStyleToSelectedSegments, bringForward, bringToFront, build3DExtrusionData, buildBroadcastViewerUrl, buildCacheKey, buildChartViewModel, buildCssGradientFromShapeStyle, buildDuotoneCacheKey, buildElementClipboardPayload, buildGlowBoxShadow, buildHandoutsHtml, buildInitialGuides, buildInnerShadowCssFromShapeStyle, buildMultiLayerShadowCss, buildNotesHtml, buildNotesPdfBytes, buildOutlineHtml, buildPatternFillCss, buildPreviewAnimation, buildPrintDocument, buildPrintHtmlDocument, buildReflectionCss, buildShadowCssFromShapeStyle, buildSlidesHtml, buildSlidesPdfBytes, buildSmartArt3DModel, buildSmartArtA11y, buildSmartArtPresetData, buildTextBody3DSceneStyle, buildTextFillCss, buildTextReflectionCss, buildTextRunFilterChain, buildTextShadowCss, buildThemeColorGrid, buildUserFontFaceStyles, canvasToJpegData, chartPartToAttrs, clampCropValue, clampNotesFontSize, clampPercent, clampUnitInterval, cloneElementForPaste, cloneHistorySnapshot, cloneSlide, cloneTemplateElementsBySlideId, collectImagePaths, collectMediaElements, colorWithOpacity, comparePresentation, computeAllNotesPages, computeAutoFitTextStyle, computeColumnBoundaries, computeHandoutLayout, computeInlineEditorRect, computeKeyboardInset, computeLayout, computeLayoutOptions, computeMarqueeHitIds, computeMergeCellDown, computeMergeCellRight, computeResizedColumnWidths, computeResizedRowHeight, computeScrollDelta, computeSelectionRect, computeSmartArtLayout, computeSnapToShape, computeSplitCell, computeValueRange, computeValueRangeForChart, convertLatexToOmml, convertOmmlToLatex, convertOmmlToMathMl, copyFormatFromElement, countTextSegments, createBlankSlide, createDefaultChartElement, createSyncGate, createTouchGestureRecognizer, defaultCssVars, defaultRadius, defaultThemeColors, deleteSection, deleteTableColumn, deleteTableRow, derivePresenceList, detectOrientation, detectTouchDevice, distributeElements, downloadBlob, downloadDataUrl, dragAnchorViewY, dragValueForPart, encodeGif, expandTextBuildAnimations, extractPathPoints, filterCommands, findChartPartTarget, findSmartArtNodeText, formatAxisValue, formatAxisValueWithUnits, formatBytes, formatCommentTimestamp, formatElapsed, formatMobileElapsed, formatRelativeTime, formatSlideCounter, formatTime, formatVersionTimestamp, fpsToFrameIntervalMs, generateBroadcastRoomId, generateElementId, generateLogTicks, generateNoteLineCount, generatePressureCircles, generateTicks, getAnimationInitialStyle, getAriaLabel, getAriaRole, getAriaRoleDescription, getCachedResult, getChartStylePalette, getCommentMarkerPosition, getCompoundLineBorderWidth, getCompoundLineBoxShadow, getCompoundLineOffsets, getCompoundLineWidths, getConnectionSites, getContentPartReplayStyles, getCssBorderDashStyle, getDisplayUnitLabel, getDuotoneCachedResult, getEffectDagFilter, getElementLabel, getElementTransform, getElementTransformWithoutRotation, getImageEffectsFilter, getImageEffectsOpacity, getInkReplayStyles, getInlineEditorSelection, getKinsokuLineBreakStyles, getNotesPrintableArea, getOleBadgeLabel, getOleTypeColor, getOleTypeLabel, getPatternSvg, getPendingSelectionRestore, getPrintableArea, getResolvedShapeClipPath, getRoundRectRadiusPx, getSecondaryValueAxis, getShapeAdjustmentHandleDescriptor, getSlideBackgroundStyle, getSlideTransitionAnimations, getSvgStrokeDasharray, getTextAlphaOpacity, getTextCompensationTransform, getWarpPath, groupElements, groupIntoParagraphs, hasCopyableFormat, hasDistinctScriptFonts, hasPressureVariation, insertTableColumn, insertTableRow, isBrowserOpenableMime, isCellInRect, isEditableTextElement, isExportAbortError, isFirstSlide, isKeyboardOpen, isLastSlide, isMixedContentBlocked, isMobileViewport, isPpactionUrl, isTemplateElement, isTemplateElementId, isUrlSafe, makeCloneId, makeSlideId, mergeAdditiveSelection, mergeCells, mobileElapsedSince, mobileSlideCounter, mountModel3D, mountSurfaceChart3D, moveSectionDown, moveSectionUp, moveSlidesToSection, newTableElement, normalizeColorsForCapture, normalizeHexColor, normalizeStrokeDashType, normalizeValue, notesSegmentsToSpans, observeYDocSlides, ooxmlDashToCssBorderStyle, openPptxFile, openUrlInNewTab, paletteColor, parseDrawingColor, parseDrawingColorOpacity, parsePpactionUrl, pickSupportedMimeType, preprocessCssForCapture, pressuresToWidths, readSlidesFromYDoc, readViewportMetrics, rebuildDrawingShapesIfCleared, reconcileSlidesInYDoc, recordProgressPercent, rectToCells, remapTextToSegments, renameSection, rerouteConnectorsForMovedElements, resolveCssTextAlign, resolveDrawingShapeNodeId, resolveFontForScript, resolveInkColor, resolveInkOpacity, resolveInkWidth, resolveLineHeight, resolveOleType, resolveParagraphAlign, resolveParagraphRtl, resolveRegionCode, resolveTitleBarStatusKey, resolveTransitionDurationMs, resolveTransportForServerUrl, resolveUnderlineDecorationStyle, restoreSegmentSelection, safeOpenUrl, sanitizeColor, sanitizeDownloadFilename, sanitizeMathMl, saveAutosaveSnapshot, secureRandomUuid, segmentByScript, segmentFrameCount, sendBackward, sendToBack, sequentialColorScale, seriesColor, setCachedResult, setDuotoneCachedResult, setPendingSelectionRestore, shadeColor2, shouldCommitSmartArtNodeText, shouldUseSvgWarp, slideProgressPercent, slideStatusLabel, snapBoxToGrid, splitCell, splitSeriesByAxis, substituteFieldText, svgLineCap, themeToCssVars, tintColor2, toCssTextOrientation, toCssVerticalDirection, toCssWritingMode, transformTextCase, validateRoomId, valueToY, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, withChartPointValue, withChartTitle };
Binary file
Binary file
@@ -1,6 +1,6 @@
1
- import { SHAPE_PRESET_DEFS, computeValueRangeForChart, cloneTemplateElementsBySlideId, cloneSlide, countTextSegments, expandTextBuildAnimations, TimelineEngine, TEXT_BUILD_ID_SEP, collectMediaElements, collectImagePaths, buildInitialGuides, saveAutosaveSnapshot, getAnimationInitialStyle, normalizeHexColor, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, computeAutoFitTextStyle, resolveLineHeight, getKinsokuLineBreakStyles, buildTextBody3DSceneStyle, resolveParagraphRtl, resolveParagraphAlign, resolveCssTextAlign, colorWithOpacity, build3DExtrusionData, getResolvedShapeClipPath, normalizeStrokeDashType, buildCssGradientFromShapeStyle, buildShadowCssFromShapeStyle, buildInnerShadowCssFromShapeStyle, buildMultiLayerShadowCss, buildGlowBoxShadow, getCompoundLineBoxShadow, getEffectDagFilter, buildPatternFillCss, buildReflectionCss, getCssBorderDashStyle, getCompoundLineBorderWidth, getSvgStrokeDasharray, getCompoundLineOffsets, getCompoundLineWidths, clampCropValue, parseDrawingColor, parseDrawingColorOpacity, getPatternSvg, ooxmlDashToCssBorderStyle, computeSelectionRect, rectToCells, isCellInRect, buildChartViewModel, buildPreviewAnimation, isTemplateElementId, getInlineEditorSelection, applyStyleToSelectedSegments, setPendingSelectionRestore, applyCaseTransformToSegments, transformTextCase, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, normalizeColorsForCapture, preprocessCssForCapture, slideProgressPercent, slideStatusLabel, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, isExportAbortError, recordProgressPercent, comparePresentation, detectTouchDevice, detectOrientation, isMobileViewport, MOBILE_BREAKPOINT, TABLET_BREAKPOINT, remapTextToSegments, copyFormatFromElement, applyFormatToElement, createSyncGate, validateRoomId, resolveTransportForServerUrl, isMixedContentBlocked, CONNECTION_TIMEOUT_MS, BROADCAST_THROTTLE_MS, sanitizeColor, readSlidesFromYDoc, reconcileSlidesInYDoc, LOCAL_SYNC_ORIGIN, observeYDocSlides, createTouchGestureRecognizer, isKeyboardOpen, buildElementClipboardPayload, downloadBlob, groupElements, generateElementId, makeCloneId, alignElements, distributeElements, bringForward, sendBackward, bringToFront, sendToBack, newTableElement, createDefaultChartElement, readViewportMetrics, computeKeyboardInset, derivePresenceList, buildPrintDocument, buildOutlineHtml, buildSlidesHtml, buildNotesHtml, buildHandoutsHtml, createBlankSlide, makeSlideId, cloneHistorySnapshot, secureRandomUuid, resolveTransitionDurationMs, isUrlSafe, isTemplateElement, substituteFieldText, resolveUnderlineDecorationStyle, hasDistinctScriptFonts, buildTextReflectionCss, getTextAlphaOpacity, buildTextRunFilterChain, buildTextShadowCss, apply3dEffects, clampUnitInterval, getRoundRectRadiusPx, tintColor2, shadeColor2, computeColumnBoundaries, getChartStylePalette, computeLayout, valueToY, formatAxisValue, computeLayoutOptions, splitSeriesByAxis, computeValueRange, getSecondaryValueAxis, seriesColor, paletteColor, resolveRegionCode, normalizeValue, sequentialColorScale, canvasToJpegData, downloadDataUrl, pickSupportedMimeType, WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, segmentFrameCount, sanitizeDownloadFilename, encodeGif, cloneElementForPaste, computeScrollDelta, rerouteConnectorsForMovedElements, applyReroutedConnectors, buildPrintHtmlDocument, convertOmmlToMathMl, sanitizeMathMl, buildTextFillCss, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, deleteTableColumn, insertTableColumn, deleteTableRow, insertTableRow, splitCell, mergeCells, buildSlidesPdfBytes, buildNotesPdfBytes, ACTION_BUTTON_PRESETS, buildSmartArtPresetData, computeSnapToShape, computeMarqueeHitIds, mergeAdditiveSelection, segmentByScript, resolveFontForScript, generateLogTicks, formatAxisValueWithUnits, getDisplayUnitLabel, applyResize, snapBoxToGrid, chartPartToAttrs } from './chunk-46HNHBHF.mjs';
2
- import { translationsEn } from './chunk-HJQZJ3VE.mjs';
3
- import { hasTextProperties, PptxHandler, EncryptedFileError, hasShapeProperties, isImageLikeElement, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, applyThemeToData, THEME_PRESETS, guidePxToEmu, mergeShapes, getSubstituteFontFamily, getPresetShapeClipPath, svgPathToPolygons, polygonsToSvgPath, SvgExporter, rebuildTableStructureInRawXml, updateCellTextStyleInRawXml, updateCellTextInRawXml, updateMergeAttrsInRawXml, elementActionToPptxAction } from './chunk-X7ILBQEY.mjs';
1
+ import { SHAPE_PRESET_DEFS, computeValueRangeForChart, cloneTemplateElementsBySlideId, cloneSlide, countTextSegments, expandTextBuildAnimations, TimelineEngine, TEXT_BUILD_ID_SEP, collectMediaElements, collectImagePaths, buildInitialGuides, saveAutosaveSnapshot, getAnimationInitialStyle, normalizeHexColor, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, computeAutoFitTextStyle, resolveLineHeight, getKinsokuLineBreakStyles, buildTextBody3DSceneStyle, resolveParagraphRtl, resolveParagraphAlign, resolveCssTextAlign, colorWithOpacity, build3DExtrusionData, getResolvedShapeClipPath, normalizeStrokeDashType, buildCssGradientFromShapeStyle, buildShadowCssFromShapeStyle, buildInnerShadowCssFromShapeStyle, buildMultiLayerShadowCss, buildGlowBoxShadow, getCompoundLineBoxShadow, getEffectDagFilter, buildPatternFillCss, buildReflectionCss, getCssBorderDashStyle, getCompoundLineBorderWidth, getSvgStrokeDasharray, getCompoundLineOffsets, getCompoundLineWidths, clampCropValue, parseDrawingColor, parseDrawingColorOpacity, getPatternSvg, ooxmlDashToCssBorderStyle, computeSelectionRect, rectToCells, isCellInRect, buildChartViewModel, buildPreviewAnimation, isTemplateElementId, getInlineEditorSelection, applyStyleToSelectedSegments, setPendingSelectionRestore, applyCaseTransformToSegments, transformTextCase, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, normalizeColorsForCapture, preprocessCssForCapture, slideProgressPercent, slideStatusLabel, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, isExportAbortError, recordProgressPercent, comparePresentation, detectTouchDevice, detectOrientation, isMobileViewport, MOBILE_BREAKPOINT, TABLET_BREAKPOINT, remapTextToSegments, copyFormatFromElement, applyFormatToElement, createSyncGate, validateRoomId, resolveTransportForServerUrl, isMixedContentBlocked, CONNECTION_TIMEOUT_MS, BROADCAST_THROTTLE_MS, sanitizeColor, readSlidesFromYDoc, reconcileSlidesInYDoc, LOCAL_SYNC_ORIGIN, observeYDocSlides, createTouchGestureRecognizer, isKeyboardOpen, buildElementClipboardPayload, downloadBlob, groupElements, generateElementId, makeCloneId, alignElements, distributeElements, bringForward, sendBackward, bringToFront, sendToBack, newTableElement, createDefaultChartElement, readViewportMetrics, computeKeyboardInset, derivePresenceList, buildPrintDocument, buildOutlineHtml, buildSlidesHtml, buildNotesHtml, buildHandoutsHtml, createBlankSlide, makeSlideId, cloneHistorySnapshot, secureRandomUuid, resolveTransitionDurationMs, isUrlSafe, isTemplateElement, substituteFieldText, resolveUnderlineDecorationStyle, hasDistinctScriptFonts, buildTextReflectionCss, getTextAlphaOpacity, buildTextRunFilterChain, buildTextShadowCss, apply3dEffects, clampUnitInterval, getRoundRectRadiusPx, tintColor2, shadeColor2, computeColumnBoundaries, getChartStylePalette, computeLayout, valueToY, formatAxisValue, computeLayoutOptions, splitSeriesByAxis, computeValueRange, getSecondaryValueAxis, seriesColor, paletteColor, resolveRegionCode, normalizeValue, sequentialColorScale, canvasToJpegData, downloadDataUrl, pickSupportedMimeType, WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, segmentFrameCount, sanitizeDownloadFilename, encodeGif, cloneElementForPaste, computeScrollDelta, rerouteConnectorsForMovedElements, applyReroutedConnectors, buildPrintHtmlDocument, convertOmmlToMathMl, sanitizeMathMl, buildTextFillCss, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, deleteTableColumn, insertTableColumn, deleteTableRow, insertTableRow, splitCell, mergeCells, buildSlidesPdfBytes, buildNotesPdfBytes, ACTION_BUTTON_PRESETS, buildSmartArtPresetData, computeSnapToShape, computeMarqueeHitIds, mergeAdditiveSelection, segmentByScript, resolveFontForScript, generateLogTicks, formatAxisValueWithUnits, getDisplayUnitLabel, applyResize, snapBoxToGrid, chartPartToAttrs } from './chunk-G22EWPLH.mjs';
2
+ import { translationsEn } from './chunk-5CD34U2V.mjs';
3
+ import { hasTextProperties, PptxHandler, EncryptedFileError, hasShapeProperties, isImageLikeElement, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, applyThemeToData, THEME_PRESETS, guidePxToEmu, mergeShapes, getSubstituteFontFamily, getPresetShapeClipPath, svgPathToPolygons, polygonsToSvgPath, SvgExporter, rebuildTableStructureInRawXml, updateCellTextStyleInRawXml, updateCellTextInRawXml, updateMergeAttrsInRawXml, elementActionToPptxAction } from './chunk-XRYREYXC.mjs';
4
4
  import React3, { useState, useEffect, useMemo, Suspense, useRef, useCallback, useSyncExternalStore, useImperativeHandle, useLayoutEffect } from 'react';
5
5
  import { LuTriangle, LuPlus, LuMoveRight, LuMinus, LuDiamond, LuDatabase, LuCircle, LuSquare } from 'react-icons/lu';
6
6
  import { clsx } from 'clsx';
@@ -8487,7 +8487,7 @@ function FailedToLoad() {
8487
8487
  var LazySurfaceChart3DScene = React3.lazy(
8488
8488
  async () => {
8489
8489
  try {
8490
- return await import('./SurfaceChart3DScene-NMLG3BQK.mjs');
8490
+ return await import('./SurfaceChart3DScene-GUAS2NWQ.mjs');
8491
8491
  } catch {
8492
8492
  return { default: FailedToLoad };
8493
8493
  }
@@ -17513,7 +17513,7 @@ function useYjsDocumentSync({
17513
17513
  return;
17514
17514
  }
17515
17515
  try {
17516
- const { PptxHandler: PptxHandler2 } = await import('./dist-JJ2NI2O3.mjs');
17516
+ const { PptxHandler: PptxHandler2 } = await import('./dist-MXDC6YTS.mjs');
17517
17517
  const handler = new PptxHandler2();
17518
17518
  await handler.load(sourceBytes.buffer);
17519
17519
  const currentSlides = readSlidesFromYDoc(
Binary file
Binary file
@@ -157,7 +157,7 @@ var translationsEn = {
157
157
  "pptx.collaboration.status.connecting": "Connecting...",
158
158
  "pptx.collaboration.status.disconnected": "Disconnected",
159
159
  "pptx.collaboration.status.error": "Connection error",
160
- "pptx.collaboration.statusAriaLabel": "Collaboration: {{status}}. {{count}} user(s) connected.",
160
+ "pptx.collaboration.statusAriaLabel": "Collaboration: {{status}}",
161
161
  "pptx.collaboration.userCount": "{{count}} user(s)",
162
162
  "pptx.collaboration.youLabel": "{{name}} (you)",
163
163
  "pptx.collaboration.usersConnected": "{{count}} user(s) connected",
Binary file
Binary file