pptx-vue-viewer 4.52.1 → 4.53.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 (95) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/{AiChatPanel-J4KnSrkZ.cjs → AiChatPanel-B2RV7TSP.cjs} +1 -1
  3. package/dist/AiChatPanel-B2RV7TSP.cjs.br +0 -0
  4. package/dist/AiChatPanel-B2RV7TSP.cjs.gz +0 -0
  5. package/dist/{AiChatPanel-DVG5Rf0V.js → AiChatPanel-CMgMfd90.js} +2 -2
  6. package/dist/AiChatPanel-CMgMfd90.js.br +0 -0
  7. package/dist/AiChatPanel-CMgMfd90.js.gz +0 -0
  8. package/dist/gif-encoder-vexPX1o8.js +1 -0
  9. package/dist/gif-encoder-vexPX1o8.js.br +2 -0
  10. package/dist/gif-encoder-vexPX1o8.js.gz +0 -0
  11. package/dist/i18n/de.cjs +5 -0
  12. package/dist/i18n/de.cjs.br +0 -0
  13. package/dist/i18n/de.cjs.gz +0 -0
  14. package/dist/i18n/de.mjs +5 -0
  15. package/dist/i18n/de.mjs.br +0 -0
  16. package/dist/i18n/de.mjs.gz +0 -0
  17. package/dist/i18n/es.cjs +5 -0
  18. package/dist/i18n/es.cjs.br +0 -0
  19. package/dist/i18n/es.cjs.gz +0 -0
  20. package/dist/i18n/es.mjs +5 -0
  21. package/dist/i18n/es.mjs.br +0 -0
  22. package/dist/i18n/es.mjs.gz +0 -0
  23. package/dist/i18n/fr.cjs +5 -0
  24. package/dist/i18n/fr.cjs.br +0 -0
  25. package/dist/i18n/fr.cjs.gz +0 -0
  26. package/dist/i18n/fr.mjs +5 -0
  27. package/dist/i18n/fr.mjs.br +0 -0
  28. package/dist/i18n/fr.mjs.gz +0 -0
  29. package/dist/i18n/zh-CN.cjs +5 -0
  30. package/dist/i18n/zh-CN.cjs.br +0 -0
  31. package/dist/i18n/zh-CN.cjs.gz +0 -0
  32. package/dist/i18n/zh-CN.mjs +5 -0
  33. package/dist/i18n/zh-CN.mjs.br +0 -0
  34. package/dist/i18n/zh-CN.mjs.gz +0 -0
  35. package/dist/i18n.cjs +13 -3
  36. package/dist/i18n.cjs.br +0 -0
  37. package/dist/i18n.cjs.gz +0 -0
  38. package/dist/index.cjs +1 -1
  39. package/dist/index.cjs.br +0 -0
  40. package/dist/index.cjs.gz +0 -0
  41. package/dist/index.d.ts +10 -0
  42. package/dist/index.js +2 -2
  43. package/dist/index.js.br +0 -0
  44. package/dist/index.js.gz +0 -0
  45. package/dist/internals.cjs +50 -5
  46. package/dist/internals.cjs.br +0 -0
  47. package/dist/internals.cjs.gz +0 -0
  48. package/dist/internals.d.ts +12 -0
  49. package/dist/internals.js +1 -2
  50. package/dist/internals.js.br +0 -0
  51. package/dist/internals.js.gz +0 -0
  52. package/dist/{useViewerSettingsDialog-lj_TAwRL.cjs → useViewerSettingsDialog-BKSbIcob.cjs} +18 -7
  53. package/dist/useViewerSettingsDialog-BKSbIcob.cjs.br +0 -0
  54. package/dist/useViewerSettingsDialog-BKSbIcob.cjs.gz +0 -0
  55. package/dist/{useViewerSettingsDialog-uOPQHITn.js → useViewerSettingsDialog-DGB1V16A.js} +2400 -2389
  56. package/dist/useViewerSettingsDialog-DGB1V16A.js.br +0 -0
  57. package/dist/useViewerSettingsDialog-DGB1V16A.js.gz +0 -0
  58. package/dist/viewer/index.cjs +1 -1
  59. package/dist/viewer/index.cjs.br +0 -0
  60. package/dist/viewer/index.cjs.gz +0 -0
  61. package/dist/viewer/index.d.ts +21 -0
  62. package/dist/viewer/index.js +2 -2
  63. package/dist/viewer/index.js.br +0 -0
  64. package/dist/viewer/index.js.gz +0 -0
  65. package/dist/{viewer-BW2tkcwc.cjs → viewer-CWU-Lo5I.cjs} +7 -4
  66. package/dist/viewer-CWU-Lo5I.cjs.br +0 -0
  67. package/dist/{viewer-BW2tkcwc.cjs.gz → viewer-CWU-Lo5I.cjs.gz} +0 -0
  68. package/dist/{viewer-Bi5qzrM3.js → viewer-X0IUMFQ0.js} +7 -4
  69. package/dist/viewer-X0IUMFQ0.js.br +0 -0
  70. package/dist/viewer-X0IUMFQ0.js.gz +0 -0
  71. package/dist/{y-webrtc-alqckhj0.js → y-webrtc-jAFe0kDI.js} +1 -1
  72. package/dist/y-webrtc-jAFe0kDI.js.br +0 -0
  73. package/dist/y-webrtc-jAFe0kDI.js.gz +0 -0
  74. package/dist/{y-webrtc-CHFoitao.cjs → y-webrtc-jyWscPMg.cjs} +1 -1
  75. package/dist/y-webrtc-jyWscPMg.cjs.br +0 -0
  76. package/dist/y-webrtc-jyWscPMg.cjs.gz +0 -0
  77. package/package.json +7 -7
  78. package/dist/AiChatPanel-DVG5Rf0V.js.br +0 -0
  79. package/dist/AiChatPanel-DVG5Rf0V.js.gz +0 -0
  80. package/dist/AiChatPanel-J4KnSrkZ.cjs.br +0 -0
  81. package/dist/AiChatPanel-J4KnSrkZ.cjs.gz +0 -0
  82. package/dist/gif-encoder-BavNpjL0.js +0 -2
  83. package/dist/gif-encoder-BavNpjL0.js.br +0 -0
  84. package/dist/gif-encoder-BavNpjL0.js.gz +0 -0
  85. package/dist/useViewerSettingsDialog-lj_TAwRL.cjs.br +0 -0
  86. package/dist/useViewerSettingsDialog-lj_TAwRL.cjs.gz +0 -0
  87. package/dist/useViewerSettingsDialog-uOPQHITn.js.br +0 -0
  88. package/dist/useViewerSettingsDialog-uOPQHITn.js.gz +0 -0
  89. package/dist/viewer-BW2tkcwc.cjs.br +0 -0
  90. package/dist/viewer-Bi5qzrM3.js.br +0 -0
  91. package/dist/viewer-Bi5qzrM3.js.gz +0 -0
  92. package/dist/y-webrtc-CHFoitao.cjs.br +0 -0
  93. package/dist/y-webrtc-CHFoitao.cjs.gz +0 -0
  94. package/dist/y-webrtc-alqckhj0.js.br +0 -0
  95. package/dist/y-webrtc-alqckhj0.js.gz +0 -0
package/CHANGELOG.md CHANGED
@@ -7,6 +7,32 @@ 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.53.0](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-vue-viewer@4.53.0) - 2026-10-26
11
+
12
+ ### Features
13
+
14
+ - **ui:** Add a lightweight pptx AI host entry ([#210](https://github.com/ChristopherVR/ooxml/issues/210)) ([d47a350](https://github.com/ChristopherVR/ooxml/commit/d47a350083895e3c07294eb2b6e8819102ee8599))
15
+ - **pptx:** Let hosts bound deck loads with limits ([#216](https://github.com/ChristopherVR/ooxml/issues/216)) ([58a5540](https://github.com/ChristopherVR/ooxml/commit/58a5540075982935d91cbc9c97a5c5d66359a180))
16
+ - **pptx:** Decode embedded fonts on first use ([#209](https://github.com/ChristopherVR/ooxml/issues/209)) ([a1c313a](https://github.com/ChristopherVR/ooxml/commit/a1c313ab23421786f632f95927735a7c2e89bbb1))
17
+
18
+ ### Performance
19
+
20
+ - **pptx:** Load the outline font parser on demand ([#208](https://github.com/ChristopherVR/ooxml/issues/208)) ([7b930b3](https://github.com/ChristopherVR/ooxml/commit/7b930b3fc57bcb2ff1047bed1c6a25bb6484127c))
21
+
22
+ ### Dependencies
23
+
24
+ - **deps:** Bump production minor and patch dependencies ([#213](https://github.com/ChristopherVR/ooxml/issues/213)) ([3cfdd01](https://github.com/ChristopherVR/ooxml/commit/3cfdd016aa61cacb0540491c5ab13974e32f8e1e))
25
+
26
+ ### Chores
27
+
28
+ - **deps-dev:** Bump development minor and patch dependencies ([#215](https://github.com/ChristopherVR/ooxml/issues/215)) ([a445b3e](https://github.com/ChristopherVR/ooxml/commit/a445b3e3cc2191341063c799768c5aad13981751))
29
+
30
+ ## [4.52.2](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-vue-viewer@4.52.2) - 2026-10-26
31
+
32
+ ### Performance
33
+
34
+ - **pptx:** Share package part reads within one load ([#207](https://github.com/ChristopherVR/ooxml/issues/207)) ([a6d7f82](https://github.com/ChristopherVR/ooxml/commit/a6d7f82c8941cb41e1340f672b2e1c5939ed0609))
35
+
10
36
  ## [4.52.1](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-vue-viewer@4.52.1) - 2026-10-26
11
37
 
12
38
  ### Bug Fixes
@@ -1,4 +1,4 @@
1
- const e = require("./useViewerSettingsDialog-lj_TAwRL.cjs"), t = require("./viewer-BW2tkcwc.cjs");
1
+ const e = require("./useViewerSettingsDialog-BKSbIcob.cjs"), t = require("./viewer-CWU-Lo5I.cjs");
2
2
  let r = require("vue"), a = require("lucide-vue-next"), n = require("ooxml-ui/pptx/ai");
3
3
  var o = { class: "border-t border-border p-2" }, l = { class: "flex items-end gap-1.5 rounded-md border border-input bg-background px-2 py-1.5 focus-within:border-ring" }, s = ["placeholder", "aria-label"], i = ["title", "aria-label"], c = [
4
4
  "disabled",
Binary file
Binary file
@@ -1,5 +1,5 @@
1
- import { Mr as e } from "./useViewerSettingsDialog-uOPQHITn.js";
2
- import { l as t, x as a } from "./viewer-Bi5qzrM3.js";
1
+ import { Mr as e } from "./useViewerSettingsDialog-DGB1V16A.js";
2
+ import { l as t, x as a } from "./viewer-X0IUMFQ0.js";
3
3
  import { Fragment as r, Suspense as s, computed as l, createBlock as o, createCommentVNode as i, createElementBlock as n, createElementVNode as p, createTextVNode as d, createVNode as c, defineComponent as u, nextTick as m, normalizeClass as x, normalizeStyle as g, onBeforeUnmount as f, onMounted as b, openBlock as v, ref as y, renderList as h, resolveDynamicComponent as k, shallowRef as w, toDisplayString as C, unref as P, vModelText as T, watch as S, withAsyncContext as I, withCtx as j, withDirectives as _ } from "vue";
4
4
  import { Bot as A, ChartColumn as E, Check as M, Crosshair as F, Eye as B, Film as D, GitMerge as N, History as L, LayoutTemplate as R, LoaderCircle as H, MessageSquare as W, MessageSquarePlus as z, Move as V, Navigation as K, Palette as O, Pin as U, PinOff as $, Plus as q, Search as G, Send as J, Shapes as Q, Sparkles as X, Square as Y, StickyNote as Z, Table as ee, Trash2 as te, TriangleAlert as ae, Type as re, User as se, Wrench as le, X as oe } from "lucide-vue-next";
5
5
  import { createAiChatHistoryController as ie, createAiChatSession as ne, deckIdFromBridge as pe, describeToolActivity as de, extractReadyToolCalls as ce, focusTargetChips as ue, humanizeDiffLine as me, isAiAvailable as xe, isTwoTableFocus as ge, mergeTablesDirective as fe, summarizeToolArgs as be, toRenderableParts as ve, toolCanvasTarget as ye, toolLabel as he } from "ooxml-ui/pptx/ai";
Binary file
Binary file
@@ -0,0 +1 @@
1
+ export { encodeGif } from "ooxml-ui/pptx";
@@ -0,0 +1,2 @@
1
+ �export { encodeGif } from "ooxml-ui/pptx";
2
+ 
Binary file
package/dist/i18n/de.cjs CHANGED
@@ -940,6 +940,11 @@ var translations5 = {
940
940
  "pptx.viewer.loading": "Pr\xE4sentation wird geladen\u2026",
941
941
  "pptx.viewer.encrypted": "Diese Pr\xE4sentation ist passwortgesch\xFCtzt und kann nicht ge\xF6ffnet werden.",
942
942
  "pptx.viewer.loadError": "Pr\xE4sentation konnte nicht geladen werden.",
943
+ "pptx.viewer.loadLimit.maxInputBytes": "Diese Datei ist {{actual}} gro\xDF und damit gr\xF6\xDFer als die {{maximum}}, die dieser Viewer annimmt.",
944
+ "pptx.viewer.loadLimit.maxUncompressedBytes": "Diese Pr\xE4sentation wird entpackt mindestens {{actual}} gro\xDF, mehr als die {{maximum}}, die dieser Viewer annimmt.",
945
+ "pptx.viewer.loadLimit.maxEntries": "Diese Pr\xE4sentation enth\xE4lt {{actual}} Teile, mehr als die {{maximum}}, die dieser Viewer annimmt.",
946
+ "pptx.viewer.loadLimit.maxSlides": "Diese Pr\xE4sentation hat {{actual}} Folien, mehr als die {{maximum}}, die dieser Viewer annimmt.",
947
+ "pptx.viewer.loadLimit.maxShapes": "Diese Pr\xE4sentation hat mindestens {{actual}} Formen, mehr als die {{maximum}}, die dieser Viewer annimmt.",
943
948
  "pptx.viewer.slide": "Folie",
944
949
  "pptx.viewer.background": "Hintergrund",
945
950
  "pptx.viewer.speakerNotesPlaceholder": "Klicken Sie hier, um Sprechernotizen hinzuzuf\xFCgen",
Binary file
Binary file
package/dist/i18n/de.mjs CHANGED
@@ -914,6 +914,11 @@ var translations5 = {
914
914
  "pptx.viewer.loading": "Pr\xE4sentation wird geladen\u2026",
915
915
  "pptx.viewer.encrypted": "Diese Pr\xE4sentation ist passwortgesch\xFCtzt und kann nicht ge\xF6ffnet werden.",
916
916
  "pptx.viewer.loadError": "Pr\xE4sentation konnte nicht geladen werden.",
917
+ "pptx.viewer.loadLimit.maxInputBytes": "Diese Datei ist {{actual}} gro\xDF und damit gr\xF6\xDFer als die {{maximum}}, die dieser Viewer annimmt.",
918
+ "pptx.viewer.loadLimit.maxUncompressedBytes": "Diese Pr\xE4sentation wird entpackt mindestens {{actual}} gro\xDF, mehr als die {{maximum}}, die dieser Viewer annimmt.",
919
+ "pptx.viewer.loadLimit.maxEntries": "Diese Pr\xE4sentation enth\xE4lt {{actual}} Teile, mehr als die {{maximum}}, die dieser Viewer annimmt.",
920
+ "pptx.viewer.loadLimit.maxSlides": "Diese Pr\xE4sentation hat {{actual}} Folien, mehr als die {{maximum}}, die dieser Viewer annimmt.",
921
+ "pptx.viewer.loadLimit.maxShapes": "Diese Pr\xE4sentation hat mindestens {{actual}} Formen, mehr als die {{maximum}}, die dieser Viewer annimmt.",
917
922
  "pptx.viewer.slide": "Folie",
918
923
  "pptx.viewer.background": "Hintergrund",
919
924
  "pptx.viewer.speakerNotesPlaceholder": "Klicken Sie hier, um Sprechernotizen hinzuzuf\xFCgen",
Binary file
Binary file
package/dist/i18n/es.cjs CHANGED
@@ -940,6 +940,11 @@ var translations5 = {
940
940
  "pptx.viewer.loading": "Cargando presentaci\xF3n\u2026",
941
941
  "pptx.viewer.encrypted": "Esta presentaci\xF3n est\xE1 protegida con contrase\xF1a y no se puede abrir.",
942
942
  "pptx.viewer.loadError": "No se pudo cargar la presentaci\xF3n.",
943
+ "pptx.viewer.loadLimit.maxInputBytes": "Este archivo ocupa {{actual}}, m\xE1s que los {{maximum}} que admite este visor.",
944
+ "pptx.viewer.loadLimit.maxUncompressedBytes": "Esta presentaci\xF3n ocupa al menos {{actual}} descomprimida, m\xE1s que los {{maximum}} que admite este visor.",
945
+ "pptx.viewer.loadLimit.maxEntries": "Esta presentaci\xF3n contiene {{actual}} partes, m\xE1s que las {{maximum}} que admite este visor.",
946
+ "pptx.viewer.loadLimit.maxSlides": "Esta presentaci\xF3n tiene {{actual}} diapositivas, m\xE1s que las {{maximum}} que admite este visor.",
947
+ "pptx.viewer.loadLimit.maxShapes": "Esta presentaci\xF3n tiene al menos {{actual}} formas, m\xE1s que las {{maximum}} que admite este visor.",
943
948
  "pptx.viewer.slide": "Diapositiva",
944
949
  "pptx.viewer.background": "Fondo",
945
950
  "pptx.viewer.speakerNotesPlaceholder": "Haga clic para agregar notas del orador",
Binary file
Binary file
package/dist/i18n/es.mjs CHANGED
@@ -914,6 +914,11 @@ var translations5 = {
914
914
  "pptx.viewer.loading": "Cargando presentaci\xF3n\u2026",
915
915
  "pptx.viewer.encrypted": "Esta presentaci\xF3n est\xE1 protegida con contrase\xF1a y no se puede abrir.",
916
916
  "pptx.viewer.loadError": "No se pudo cargar la presentaci\xF3n.",
917
+ "pptx.viewer.loadLimit.maxInputBytes": "Este archivo ocupa {{actual}}, m\xE1s que los {{maximum}} que admite este visor.",
918
+ "pptx.viewer.loadLimit.maxUncompressedBytes": "Esta presentaci\xF3n ocupa al menos {{actual}} descomprimida, m\xE1s que los {{maximum}} que admite este visor.",
919
+ "pptx.viewer.loadLimit.maxEntries": "Esta presentaci\xF3n contiene {{actual}} partes, m\xE1s que las {{maximum}} que admite este visor.",
920
+ "pptx.viewer.loadLimit.maxSlides": "Esta presentaci\xF3n tiene {{actual}} diapositivas, m\xE1s que las {{maximum}} que admite este visor.",
921
+ "pptx.viewer.loadLimit.maxShapes": "Esta presentaci\xF3n tiene al menos {{actual}} formas, m\xE1s que las {{maximum}} que admite este visor.",
917
922
  "pptx.viewer.slide": "Diapositiva",
918
923
  "pptx.viewer.background": "Fondo",
919
924
  "pptx.viewer.speakerNotesPlaceholder": "Haga clic para agregar notas del orador",
Binary file
Binary file
package/dist/i18n/fr.cjs CHANGED
@@ -940,6 +940,11 @@ var translations5 = {
940
940
  "pptx.viewer.loading": "Chargement de la pr\xE9sentation\u2026",
941
941
  "pptx.viewer.encrypted": "Cette pr\xE9sentation est prot\xE9g\xE9e par mot de passe et ne peut pas \xEAtre ouverte.",
942
942
  "pptx.viewer.loadError": "\xC9chec du chargement de la pr\xE9sentation.",
943
+ "pptx.viewer.loadLimit.maxInputBytes": "Ce fichier fait {{actual}}, plus que les {{maximum}} accept\xE9s par cette visionneuse.",
944
+ "pptx.viewer.loadLimit.maxUncompressedBytes": "Une fois d\xE9compress\xE9e, cette pr\xE9sentation fait au moins {{actual}}, plus que les {{maximum}} accept\xE9s par cette visionneuse.",
945
+ "pptx.viewer.loadLimit.maxEntries": "Cette pr\xE9sentation contient {{actual}} parties, plus que les {{maximum}} accept\xE9es par cette visionneuse.",
946
+ "pptx.viewer.loadLimit.maxSlides": "Cette pr\xE9sentation contient {{actual}} diapositives, plus que les {{maximum}} accept\xE9es par cette visionneuse.",
947
+ "pptx.viewer.loadLimit.maxShapes": "Cette pr\xE9sentation contient au moins {{actual}} formes, plus que les {{maximum}} accept\xE9es par cette visionneuse.",
943
948
  "pptx.viewer.slide": "Diapositive",
944
949
  "pptx.viewer.background": "Arri\xE8re-plan",
945
950
  "pptx.viewer.speakerNotesPlaceholder": "Cliquez pour ajouter des notes de conf\xE9rencier",
Binary file
Binary file
package/dist/i18n/fr.mjs CHANGED
@@ -914,6 +914,11 @@ var translations5 = {
914
914
  "pptx.viewer.loading": "Chargement de la pr\xE9sentation\u2026",
915
915
  "pptx.viewer.encrypted": "Cette pr\xE9sentation est prot\xE9g\xE9e par mot de passe et ne peut pas \xEAtre ouverte.",
916
916
  "pptx.viewer.loadError": "\xC9chec du chargement de la pr\xE9sentation.",
917
+ "pptx.viewer.loadLimit.maxInputBytes": "Ce fichier fait {{actual}}, plus que les {{maximum}} accept\xE9s par cette visionneuse.",
918
+ "pptx.viewer.loadLimit.maxUncompressedBytes": "Une fois d\xE9compress\xE9e, cette pr\xE9sentation fait au moins {{actual}}, plus que les {{maximum}} accept\xE9s par cette visionneuse.",
919
+ "pptx.viewer.loadLimit.maxEntries": "Cette pr\xE9sentation contient {{actual}} parties, plus que les {{maximum}} accept\xE9es par cette visionneuse.",
920
+ "pptx.viewer.loadLimit.maxSlides": "Cette pr\xE9sentation contient {{actual}} diapositives, plus que les {{maximum}} accept\xE9es par cette visionneuse.",
921
+ "pptx.viewer.loadLimit.maxShapes": "Cette pr\xE9sentation contient au moins {{actual}} formes, plus que les {{maximum}} accept\xE9es par cette visionneuse.",
917
922
  "pptx.viewer.slide": "Diapositive",
918
923
  "pptx.viewer.background": "Arri\xE8re-plan",
919
924
  "pptx.viewer.speakerNotesPlaceholder": "Cliquez pour ajouter des notes de conf\xE9rencier",
Binary file
Binary file
@@ -938,6 +938,11 @@ var translations7 = {
938
938
  "pptx.viewer.loading": "\u6B63\u5728\u52A0\u8F7D\u6F14\u793A\u6587\u7A3F...",
939
939
  "pptx.viewer.encrypted": "\u8BE5\u6F14\u793A\u6587\u7A3F\u53D7\u5BC6\u7801\u4FDD\u62A4\uFF0C\u65E0\u6CD5\u6253\u5F00\u3002",
940
940
  "pptx.viewer.loadError": "\u65E0\u6CD5\u52A0\u8F7D\u6F14\u793A\u6587\u7A3F\u3002",
941
+ "pptx.viewer.loadLimit.maxInputBytes": "\u6B64\u6587\u4EF6\u5927\u5C0F\u4E3A {{actual}}\uFF0C\u8D85\u8FC7\u6B64\u67E5\u770B\u5668\u5141\u8BB8\u7684 {{maximum}}\u3002",
942
+ "pptx.viewer.loadLimit.maxUncompressedBytes": "\u6B64\u6F14\u793A\u6587\u7A3F\u89E3\u538B\u540E\u81F3\u5C11\u4E3A {{actual}}\uFF0C\u8D85\u8FC7\u6B64\u67E5\u770B\u5668\u5141\u8BB8\u7684 {{maximum}}\u3002",
943
+ "pptx.viewer.loadLimit.maxEntries": "\u6B64\u6F14\u793A\u6587\u7A3F\u5305\u542B {{actual}} \u4E2A\u90E8\u4EF6\uFF0C\u8D85\u8FC7\u6B64\u67E5\u770B\u5668\u5141\u8BB8\u7684 {{maximum}} \u4E2A\u3002",
944
+ "pptx.viewer.loadLimit.maxSlides": "\u6B64\u6F14\u793A\u6587\u7A3F\u6709 {{actual}} \u5F20\u5E7B\u706F\u7247\uFF0C\u8D85\u8FC7\u6B64\u67E5\u770B\u5668\u5141\u8BB8\u7684 {{maximum}} \u5F20\u3002",
945
+ "pptx.viewer.loadLimit.maxShapes": "\u6B64\u6F14\u793A\u6587\u7A3F\u81F3\u5C11\u6709 {{actual}} \u4E2A\u5F62\u72B6\uFF0C\u8D85\u8FC7\u6B64\u67E5\u770B\u5668\u5141\u8BB8\u7684 {{maximum}} \u4E2A\u3002",
941
946
  "pptx.viewer.slide": "\u5E7B\u706F\u7247",
942
947
  "pptx.viewer.background": "\u80CC\u666F",
943
948
  "pptx.viewer.speakerNotesPlaceholder": "\u5355\u51FB\u6DFB\u52A0\u6F14\u8BB2\u8005\u5907\u6CE8",
Binary file
Binary file
@@ -912,6 +912,11 @@ var translations7 = {
912
912
  "pptx.viewer.loading": "\u6B63\u5728\u52A0\u8F7D\u6F14\u793A\u6587\u7A3F...",
913
913
  "pptx.viewer.encrypted": "\u8BE5\u6F14\u793A\u6587\u7A3F\u53D7\u5BC6\u7801\u4FDD\u62A4\uFF0C\u65E0\u6CD5\u6253\u5F00\u3002",
914
914
  "pptx.viewer.loadError": "\u65E0\u6CD5\u52A0\u8F7D\u6F14\u793A\u6587\u7A3F\u3002",
915
+ "pptx.viewer.loadLimit.maxInputBytes": "\u6B64\u6587\u4EF6\u5927\u5C0F\u4E3A {{actual}}\uFF0C\u8D85\u8FC7\u6B64\u67E5\u770B\u5668\u5141\u8BB8\u7684 {{maximum}}\u3002",
916
+ "pptx.viewer.loadLimit.maxUncompressedBytes": "\u6B64\u6F14\u793A\u6587\u7A3F\u89E3\u538B\u540E\u81F3\u5C11\u4E3A {{actual}}\uFF0C\u8D85\u8FC7\u6B64\u67E5\u770B\u5668\u5141\u8BB8\u7684 {{maximum}}\u3002",
917
+ "pptx.viewer.loadLimit.maxEntries": "\u6B64\u6F14\u793A\u6587\u7A3F\u5305\u542B {{actual}} \u4E2A\u90E8\u4EF6\uFF0C\u8D85\u8FC7\u6B64\u67E5\u770B\u5668\u5141\u8BB8\u7684 {{maximum}} \u4E2A\u3002",
918
+ "pptx.viewer.loadLimit.maxSlides": "\u6B64\u6F14\u793A\u6587\u7A3F\u6709 {{actual}} \u5F20\u5E7B\u706F\u7247\uFF0C\u8D85\u8FC7\u6B64\u67E5\u770B\u5668\u5141\u8BB8\u7684 {{maximum}} \u5F20\u3002",
919
+ "pptx.viewer.loadLimit.maxShapes": "\u6B64\u6F14\u793A\u6587\u7A3F\u81F3\u5C11\u6709 {{actual}} \u4E2A\u5F62\u72B6\uFF0C\u8D85\u8FC7\u6B64\u67E5\u770B\u5668\u5141\u8BB8\u7684 {{maximum}} \u4E2A\u3002",
915
920
  "pptx.viewer.slide": "\u5E7B\u706F\u7247",
916
921
  "pptx.viewer.background": "\u80CC\u666F",
917
922
  "pptx.viewer.speakerNotesPlaceholder": "\u5355\u51FB\u6DFB\u52A0\u6F14\u8BB2\u8005\u5907\u6CE8",
Binary file
Binary file
package/dist/i18n.cjs CHANGED
@@ -2,8 +2,18 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  let e = require("ooxml-ui/pptx/i18n");
3
3
  function t(e) {
4
4
  const t = {};
5
- for (const [o, n] of Object.entries(e)) t[o] = n.replace(/\{\{(?<name>\w+)\}\}/gu, "{$<name>}").replace(/@/gu, "{'@'}");
5
+ for (const [n, r] of Object.entries(e)) t[n] = r.replace(/\{\{(?<name>\w+)\}\}/gu, "{$<name>}").replace(/@/gu, "{'@'}");
6
6
  return t;
7
7
  }
8
- var o = t(e.translationsEn);
9
- exports.LOCALE_CATALOG = e.LOCALE_CATALOG, exports.keyToLabel = e.keyToLabel, exports.toVueI18nSyntax = t, exports.translationsEn = o;
8
+ var n = t(e.translationsEn);
9
+ Object.defineProperty(exports, "LOCALE_CATALOG", {
10
+ enumerable: !0,
11
+ get: function() {
12
+ return e.LOCALE_CATALOG;
13
+ }
14
+ }), Object.defineProperty(exports, "keyToLabel", {
15
+ enumerable: !0,
16
+ get: function() {
17
+ return e.keyToLabel;
18
+ }
19
+ }), exports.toVueI18nSyntax = t, exports.translationsEn = n;
package/dist/i18n.cjs.br CHANGED
Binary file
package/dist/i18n.cjs.gz CHANGED
Binary file
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const e = require("./useViewerSettingsDialog-lj_TAwRL.cjs"), r = require("./viewer-BW2tkcwc.cjs");
2
+ const e = require("./useViewerSettingsDialog-BKSbIcob.cjs"), r = require("./viewer-CWU-Lo5I.cjs");
3
3
  let t = require("ooxml-ui/pptx");
4
4
  Object.defineProperty(exports, "AUDIENCE_HASH", {
5
5
  enumerable: !0,
package/dist/index.cjs.br CHANGED
Binary file
package/dist/index.cjs.gz CHANGED
Binary file
package/dist/index.d.ts CHANGED
@@ -80,6 +80,7 @@ import { PptxData } from 'ooxml-core/pptx';
80
80
  import { PptxElement } from 'ooxml-core/pptx';
81
81
  import { PptxHandlerSaveOptions } from 'ooxml-core/pptx';
82
82
  import { PptxLayoutPreview } from 'ooxml-core/pptx';
83
+ import { PptxLoadLimits } from 'ooxml-ui/pptx';
83
84
  import { PptxPresentationProperties } from 'ooxml-core/pptx';
84
85
  import { PptxSlide } from 'ooxml-core/pptx';
85
86
  import { PptxSlideTransition } from 'ooxml-core/pptx';
@@ -903,6 +904,15 @@ export declare interface PowerPointViewerProps {
903
904
  * A change applies from the next load.
904
905
  */
905
906
  allowExternalContent?: boolean;
907
+ /**
908
+ * Bounds on the work loading a deck may do, for hosts that show untrusted
909
+ * decks: `maxInputBytes`, `maxUncompressedBytes`, `maxEntries`, `maxSlides`
910
+ * and `maxShapes` (see `PptxLoadLimits`). Unset keeps the core defaults
911
+ * (500 MiB inflated, 65,536 ZIP entries, no other limit). A deck over a
912
+ * limit shows the load-error screen with the limit and the deck's value.
913
+ * A change applies from the next load.
914
+ */
915
+ limits?: PptxLoadLimits;
906
916
  /**
907
917
  * Show the editor chrome: title bar, ribbon and toolbar, protected-view
908
918
  * and read-only banners, the mobile toolbar and the status bar. Default
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { An as a, C as s, S as o, ct as e, jn as r, pt as t, w as i, x as l } from "./useViewerSettingsDialog-uOPQHITn.js";
2
- import { A as n, D as m, E as p, F as w, I as S, M as b, N as d, O as u, P as x, T as C, _ as c, a as f, b as g, c as j, d as v, f as P, g as R, h as y, i as A, j as D, k as E, m as F, o as I, p as M, s as O, u as T, v as V, w as h, x as k, y as B } from "./viewer-Bi5qzrM3.js";
1
+ import { An as a, C as s, S as o, ct as e, jn as r, pt as t, w as i, x as l } from "./useViewerSettingsDialog-DGB1V16A.js";
2
+ import { A as n, D as m, E as p, F as w, I as S, M as b, N as d, O as u, P as x, T as C, _ as c, a as f, b as g, c as j, d as v, f as P, g as R, h as y, i as A, j as D, k as E, m as F, o as I, p as M, s as O, u as T, v as V, w as h, x as k, y as B } from "./viewer-X0IUMFQ0.js";
3
3
  import { BACKSTAGE_CARD_IDS as N, BACKSTAGE_PAGE_IDS as _, CANVAS_CONTEXT_MENU_COMMAND_IDS as q, EDITOR_SHORTCUT_ACTION_IDS as z, ELEMENT_CONTEXT_MENU_COMMAND_IDS as G, OPTIONS_PAGE_IDS as H, OPTIONS_SECTION_IDS as J, OPTIONS_SETTING_IDS as K, PPTX_OPEN_ACCEPT as L, PRESENTATION_OPEN_EXTENSIONS as Q, RIBBON_TAB_IDS as U, TOOLBAR_BUTTON_IDS as W, VIEWER_DIALOG_IDS as X, VIEWER_EXPORT_FORMAT_IDS as Y, VIEWER_FEATURE_IDS as Z, VIEWER_PANEL_IDS as $, createImageElementFromFile as aa, describeCollaborationShellState as sa, forgetSessionDeck as oa, getSessionTabId as ea, isLegacyBinaryPresentation as ra, isSupportedPresentationFile as ta, loadSessionDeck as ia, parsePresentationSessionId as la, presentationBaseName as na, rememberSessionDeck as ma, restoreSessionDeck as pa, savedPresentationFileName as wa } from "ooxml-ui/pptx";
4
4
  export { v as AUDIENCE_HASH, N as BACKSTAGE_CARD_IDS, _ as BACKSTAGE_PAGE_IDS, q as CANVAS_CONTEXT_MENU_COMMAND_IDS, V as CollaborationCursors, h as CollaborationStatusIndicator, z as EDITOR_SHORTCUT_ACTION_IDS, G as ELEMENT_CONTEXT_MENU_COMMAND_IDS, r as ElementRenderer, T as FollowModeBar, H as OPTIONS_PAGE_IDS, J as OPTIONS_SECTION_IDS, K as OPTIONS_SETTING_IDS, L as PPTX_OPEN_ACCEPT, Q as PRESENTATION_OPEN_EXTENSIONS, j as PowerPointViewer, U as RIBBON_TAB_IDS, c as RemoteSelectionOverlay, g as RibbonToolbar, B as SlideCanvas, a as SlideStage, W as TOOLBAR_BUTTON_IDS, X as VIEWER_DIALOG_IDS, Y as VIEWER_EXPORT_FORMAT_IDS, Z as VIEWER_FEATURE_IDS, $ as VIEWER_PANEL_IDS, P as clearAudienceContent, k as cn, aa as createImageElementFromFile, u as defaultCssVars, w as defaultRadius, S as defaultThemeColors, sa as describeCollaborationShellState, l as exportAllSlidesToSvg, o as exportAllSlidesToSvgBlobs, s as exportSlideToSvg, i as exportSlideToSvgBlob, oa as forgetSessionDeck, ea as getSessionTabId, M as isAudienceTab, ra as isLegacyBinaryPresentation, ta as isSupportedPresentationFile, F as loadAudienceContent, ia as loadSessionDeck, y as parseAudienceNonce, la as parsePresentationSessionId, na as presentationBaseName, C as provideViewerTheme, ma as rememberSessionDeck, e as renderToCanvas, pa as restoreSessionDeck, wa as savedPresentationFileName, R as storeAudienceContent, E as themeToCssVars, t as useCollaboration, A as useCollaborativeHistory, f as useCollaborativeState, I as usePresenceTracking, p as useThemeStyle, m as useViewerTheme, O as useYjsProvider, n as vermilionDarkColors, D as vermilionDarkTheme, b as vermilionLightColors, d as vermilionLightTheme, x as vermilionRadius };
package/dist/index.js.br CHANGED
Binary file
package/dist/index.js.gz CHANGED
Binary file
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const e = require("./useViewerSettingsDialog-lj_TAwRL.cjs");
2
+ const e = require("./useViewerSettingsDialog-BKSbIcob.cjs");
3
3
  let t = require("ooxml-ui/pptx");
4
4
  Object.defineProperty(exports, "CINEMATIC_TRANSITION_KEYFRAMES", {
5
5
  enumerable: !0,
@@ -26,7 +26,27 @@ Object.defineProperty(exports, "CINEMATIC_TRANSITION_KEYFRAMES", {
26
26
  get: function() {
27
27
  return t.INSTANT;
28
28
  }
29
- }), exports.MOBILE_BREAKPOINT = t.MOBILE_BREAKPOINT, exports.MOBILE_LANDSCAPE_MAX_HEIGHT = t.MOBILE_LANDSCAPE_MAX_HEIGHT, exports.MorphExtraLayers = e.MorphExtraLayers_default, exports.NUDGE_LARGE = t.NUDGE_LARGE, exports.NUDGE_SMALL = t.NUDGE_SMALL, Object.defineProperty(exports, "P14_TRANSITION_KEYFRAMES", {
29
+ }), Object.defineProperty(exports, "MOBILE_BREAKPOINT", {
30
+ enumerable: !0,
31
+ get: function() {
32
+ return t.MOBILE_BREAKPOINT;
33
+ }
34
+ }), Object.defineProperty(exports, "MOBILE_LANDSCAPE_MAX_HEIGHT", {
35
+ enumerable: !0,
36
+ get: function() {
37
+ return t.MOBILE_LANDSCAPE_MAX_HEIGHT;
38
+ }
39
+ }), exports.MorphExtraLayers = e.MorphExtraLayers_default, Object.defineProperty(exports, "NUDGE_LARGE", {
40
+ enumerable: !0,
41
+ get: function() {
42
+ return t.NUDGE_LARGE;
43
+ }
44
+ }), Object.defineProperty(exports, "NUDGE_SMALL", {
45
+ enumerable: !0,
46
+ get: function() {
47
+ return t.NUDGE_SMALL;
48
+ }
49
+ }), Object.defineProperty(exports, "P14_TRANSITION_KEYFRAMES", {
30
50
  enumerable: !0,
31
51
  get: function() {
32
52
  return t.P14_TRANSITION_KEYFRAMES;
@@ -56,7 +76,12 @@ Object.defineProperty(exports, "CINEMATIC_TRANSITION_KEYFRAMES", {
56
76
  get: function() {
57
77
  return t.SLIDE_TRANSITION_KEYFRAMES_CSS;
58
78
  }
59
- }), exports.SMARTART_COLOR_SCHEMES = e.SMARTART_COLOR_SCHEMES, exports.SMARTART_STYLE_OPTIONS = e.SMARTART_STYLE_OPTIONS, exports.TABLET_BREAKPOINT = t.TABLET_BREAKPOINT, Object.defineProperty(exports, "TRANSITION_SPEED_DURATION_MS", {
79
+ }), exports.SMARTART_COLOR_SCHEMES = e.SMARTART_COLOR_SCHEMES, exports.SMARTART_STYLE_OPTIONS = e.SMARTART_STYLE_OPTIONS, Object.defineProperty(exports, "TABLET_BREAKPOINT", {
80
+ enumerable: !0,
81
+ get: function() {
82
+ return t.TABLET_BREAKPOINT;
83
+ }
84
+ }), Object.defineProperty(exports, "TRANSITION_SPEED_DURATION_MS", {
60
85
  enumerable: !0,
61
86
  get: function() {
62
87
  return t.TRANSITION_SPEED_DURATION_MS;
@@ -71,7 +96,22 @@ Object.defineProperty(exports, "CINEMATIC_TRANSITION_KEYFRAMES", {
71
96
  get: function() {
72
97
  return t.buildClickGroups;
73
98
  }
74
- }), exports.computeCellSelection = e.computeCellSelection, exports.computeDocumentStatistics = t.computeDocumentStatistics, exports.computeElapsed = e.computeElapsed, exports.countWords = t.countWords, exports.createStroke = e.createStroke, exports.eraseStrokesAtPoint = e.eraseStrokesAtPoint, exports.formatRehearseMs = e.formatRehearseMs, exports.generateCommentId = t.generateCommentId, Object.defineProperty(exports, "getCinematicTransitionAnimations", {
99
+ }), exports.computeCellSelection = e.computeCellSelection, Object.defineProperty(exports, "computeDocumentStatistics", {
100
+ enumerable: !0,
101
+ get: function() {
102
+ return t.computeDocumentStatistics;
103
+ }
104
+ }), exports.computeElapsed = e.computeElapsed, Object.defineProperty(exports, "countWords", {
105
+ enumerable: !0,
106
+ get: function() {
107
+ return t.countWords;
108
+ }
109
+ }), exports.createStroke = e.createStroke, exports.eraseStrokesAtPoint = e.eraseStrokesAtPoint, exports.formatRehearseMs = e.formatRehearseMs, Object.defineProperty(exports, "generateCommentId", {
110
+ enumerable: !0,
111
+ get: function() {
112
+ return t.generateCommentId;
113
+ }
114
+ }), Object.defineProperty(exports, "getCinematicTransitionAnimations", {
75
115
  enumerable: !0,
76
116
  get: function() {
77
117
  return t.getCinematicTransitionAnimations;
@@ -86,7 +126,12 @@ Object.defineProperty(exports, "CINEMATIC_TRANSITION_KEYFRAMES", {
86
126
  get: function() {
87
127
  return t.getSlideTransitionAnimations;
88
128
  }
89
- }), exports.injectTableSelection = e.injectTableSelection, exports.inlineEditorRect = e.inlineEditorRect, exports.isMobileViewport = t.isMobileViewport, exports.nodeIdsInRenderOrder = e.nodeIdsInRenderOrder, exports.parseSignaturesFromBuffer = e.parseSignaturesFromBuffer, exports.provideTableSelection = e.provideTableSelection, Object.defineProperty(exports, "resolveDirection", {
129
+ }), exports.injectTableSelection = e.injectTableSelection, exports.inlineEditorRect = e.inlineEditorRect, Object.defineProperty(exports, "isMobileViewport", {
130
+ enumerable: !0,
131
+ get: function() {
132
+ return t.isMobileViewport;
133
+ }
134
+ }), exports.nodeIdsInRenderOrder = e.nodeIdsInRenderOrder, exports.parseSignaturesFromBuffer = e.parseSignaturesFromBuffer, exports.provideTableSelection = e.provideTableSelection, Object.defineProperty(exports, "resolveDirection", {
90
135
  enumerable: !0,
91
136
  get: function() {
92
137
  return t.resolveDirection;
Binary file
Binary file
@@ -63,6 +63,7 @@ import { InsertChartKind } from 'ooxml-ui/pptx';
63
63
  import { InsertChartOptions } from 'ooxml-ui/pptx';
64
64
  import { INSTANT } from 'ooxml-ui/pptx';
65
65
  import { isMobileViewport } from 'ooxml-ui/pptx';
66
+ import { LoadLimitTranslate } from 'ooxml-ui/pptx';
66
67
  import { MasterViewTab } from 'ooxml-core/pptx';
67
68
  import { MaybeRefOrGetter } from 'vue';
68
69
  import { MergeShapeOperation } from 'ooxml-core/pptx';
@@ -112,6 +113,7 @@ import { PptxImageEffects } from 'ooxml-core/pptx';
112
113
  import { PptxImageProperties } from 'ooxml-core/pptx';
113
114
  import { PptxLayoutOption } from 'ooxml-core/pptx';
114
115
  import { PptxLayoutPreview } from 'ooxml-core/pptx';
116
+ import { PptxLoadLimits } from 'ooxml-ui/pptx';
115
117
  import { PptxModernCommentAuthor } from 'ooxml-core/pptx';
116
118
  import { PptxModernCommentPart } from 'ooxml-core/pptx';
117
119
  import { PptxModifyVerifier } from 'ooxml-core/pptx';
@@ -3039,6 +3041,16 @@ export declare interface UseLoadContentOptions {
3039
3041
  * {@link getSaveIntent} and {@link getEmbedFonts}.
3040
3042
  */
3041
3043
  getAllowExternalImages?: () => boolean;
3044
+ /**
3045
+ * The host `limits` prop, read at load time and passed to
3046
+ * `PptxHandler.load`; omitted or `undefined` keeps the core defaults.
3047
+ */
3048
+ getLimits?: () => PptxLoadLimits | undefined;
3049
+ /**
3050
+ * Translates the load-error text for a deck over a load limit (the
3051
+ * viewer's `t`). Omitted, the error keeps the core's English message.
3052
+ */
3053
+ translate?: LoadLimitTranslate;
3042
3054
  }
3043
3055
 
3044
3056
  /**
package/dist/internals.js CHANGED
@@ -1,2 +1 @@
1
- import { $ as a, $t as s, A as t, At as n, B as r, Bt as e, Cn as i, Ct as o, D as g, Dt as p, E as m, Et as y, F as T, Ft as f, G as h, Gn as j, Gt as l, H as v, Hn as x, Ht as L, I as O, It as _, J as b, Jn as d, Jt as u, K as w, Kn as D, Kt as E, L as F, Lt as G, Mt as H, Nt as J, O as K, On as Q, Ot as S, Pt as U, Q as V, Qn as W, Qt as X, Rt as Y, Sn as Z, St as c, T as k, Tn as q, Tt as z, U as A, Un as B, Ut as C, V as I, Vt as M, W as P, Wn as $, Wt as N, X as R, Xn as aa, Xt as sa, Y as ta, Yn as na, Yt as ra, Z as ea, Zn as ia, Zt as oa, _ as ga, _n as pa, _r as ma, _t as ya, a as Ta, an as fa, at as ha, b as ja, bn as la, bt as va, c as xa, cr as La, d as Oa, dt as _a, en as ba, et as da, f as ua, fn as wa, ft as Da, g as Ea, gn as Fa, gr as Ga, gt as Ha, h as Ja, hn as Ka, hr as Qa, i as Sa, in as Ua, it as Va, j as Wa, jr as Xa, jt as Ya, k as Za, kt as ca, l as ka, lt as qa, m as za, mn as Aa, n as Ba, nn as Ca, nt as Ia, o as Ma, on as Pa, ot as $a, p as Na, pn as Ra, pt as as, q as ss, qt as ts, r as ns, rn as rs, rt as es, s as is, st as os, t as gs, tn as ps, tr as ms, tt as ys, u as Ts, ut as fs, v as hs, vn as js, vt as ls, wn as vs, wt as xs, xn as Ls, xt as Os, y as _s, yn as bs, z as ds, zt as us } from "./useViewerSettingsDialog-uOPQHITn.js";
2
- export { S as CINEMATIC_TRANSITION_KEYFRAMES, Sa as DEFAULT_MAX_VERSIONS, ca as DEFAULT_MORPH_DURATION_MS, Qa as DEFAULT_RENDERING_3D_FLAGS, n as DEFAULT_TRANSITION_DURATION_MS, Ya as EASE, X as ERASER_RADIUS, y as FragmentedTransitionLayer, s as HIGHLIGHTER_OPACITY, ba as HIGHLIGHTER_WIDTH, H as INSTANT, Ls as MOBILE_BREAKPOINT, Z as MOBILE_LANDSCAPE_MAX_HEIGHT, z as MorphExtraLayers, a as NUDGE_LARGE, da as NUDGE_SMALL, J as P14_TRANSITION_KEYFRAMES, U as P14_TRANSITION_KEYFRAMES_2, f as P14_TRANSITION_KEYFRAMES_ALL, ps as PEN_WIDTH, xs as PresentationTransitionOverlay, _ as RANDOM_ELIGIBLE_TYPES, ga as RIBBON_ALIGN, Ga as Rendering3DFlagsKey, G as SLIDE_TRANSITION_KEYFRAMES, Y as SLIDE_TRANSITION_KEYFRAMES_CSS, Ra as SMARTART_COLOR_SCHEMES, Aa as SMARTART_STYLE_OPTIONS, i as TABLET_BREAKPOINT, us as TRANSITION_SPEED_DURATION_MS, x as TableSelectionKey, e as WHEEL_SPOKE_COUNTS, fa as buildClickGroups, B as computeCellSelection, js as computeDocumentStatistics, Os as computeElapsed, bs as countWords, Ca as createStroke, rs as eraseStrokesAtPoint, c as formatRehearseMs, fs as generateCommentId, M as getCinematicTransitionAnimations, L as getP14TransitionAnimations, C as getSlideTransitionAnimations, $ as injectTableSelection, na as inlineEditorRect, vs as isMobileViewport, aa as nodeIdsInRenderOrder, t as parseSignaturesFromBuffer, j as provideTableSelection, N as resolveDirection, l as resolveDirection8, E as resolveOrientation, ys as resolveShortcutAction, ts as resolveSlideTransition, u as resolveTransitionDurationMs, ra as resolveWheelSpokeCount, Ka as smartArtLayoutLabel, ia as textNodeIdsInRenderOrder, hs as toShapePreset, ls as useAccessibility, ya as useAlignGroup, Pa as useAnimationPlayback, Ha as useAutosave, pa as useChartEditing, as as useCollaboration, Da as useCollaborationWiring, La as useColorChangeImage, _a as useComments, qa as useCommentsWiring, os as useContextMenu, $a as useCustomShows, ha as useCustomShowsWiring, Fa as useDebouncedCallback, Va as useDocumentPropertiesDialog, la as useDocumentStatistics, es as useEditorHistory, V as useEditorKeyboard, ea as useEditorOperations, R as useElementDrag, ta as useElementInsertion, b as useEmbeddedFonts, ss as useExport, w as useExportProgress, P as useExportWiring, A as useFindReplace, v as useFontEmbedding, I as useFormatPainter, r as useHeaderFooterDialog, ds as useInkDrawing, F as useInlineEditing, O as useInsertElementDialogs, q as useIsMobile, T as useKeyboardInsets, Ia as useKeyboardShortcuts, Wa as useLoadContent, Za as useMasterViewState, h as useMediaExport, K as useMobileChrome, ms as useModel3dScene, p as useMorphTransitionOverlay, g as useMultiSelectOps, m as usePasswordProtection, Ua as usePresentationAnnotations, k as usePresentationModeWiring, ja as usePrint, o as useRehearseTimings, ma as useRendering3DFlags, _s as useRibbonActions, Ba as useRibbonProps, Ea as useRibbonUiState, Ja as useSectionOperations, za as useSelectionPaneWiring, Xa as useSheetDismissDrag, Na as useSignatureWorkflow, va as useSignatures, ua as useSlideMutations, Oa as useSlideOperations, Ts as useSlideShowSettings, ka as useSlideTemplateInsertion, wa as useSmartArtEditing, d as useSmartArtHoverRect, W as useSmartArtInlineEditState, xa as useSmartArtNodeEditContext, is as useTableCellEditingContext, D as useTableCellSelection, Ma as useThemeEditing, oa as useToolbarAutoHide, Q as useToolbarVisibility, sa as useTouchGestures, Ta as useVersionHistory, ns as useVersionHistoryWiring, gs as useViewerSettingsDialog };
1
+ export { Ot as CINEMATIC_TRANSITION_KEYFRAMES, i as DEFAULT_MAX_VERSIONS, kt as DEFAULT_MORPH_DURATION_MS, hr as DEFAULT_RENDERING_3D_FLAGS, At as DEFAULT_TRANSITION_DURATION_MS, jt as EASE, Qt as ERASER_RADIUS, Et as FragmentedTransitionLayer, $t as HIGHLIGHTER_OPACITY, en as HIGHLIGHTER_WIDTH, Mt as INSTANT, xn as MOBILE_BREAKPOINT, Sn as MOBILE_LANDSCAPE_MAX_HEIGHT, Tt as MorphExtraLayers, $ as NUDGE_LARGE, et as NUDGE_SMALL, Nt as P14_TRANSITION_KEYFRAMES, Pt as P14_TRANSITION_KEYFRAMES_2, Ft as P14_TRANSITION_KEYFRAMES_ALL, tn as PEN_WIDTH, wt as PresentationTransitionOverlay, It as RANDOM_ELIGIBLE_TYPES, _ as RIBBON_ALIGN, gr as Rendering3DFlagsKey, Lt as SLIDE_TRANSITION_KEYFRAMES, Rt as SLIDE_TRANSITION_KEYFRAMES_CSS, pn as SMARTART_COLOR_SCHEMES, mn as SMARTART_STYLE_OPTIONS, Cn as TABLET_BREAKPOINT, zt as TRANSITION_SPEED_DURATION_MS, Hn as TableSelectionKey, Bt as WHEEL_SPOKE_COUNTS, an as buildClickGroups, Un as computeCellSelection, vn as computeDocumentStatistics, xt as computeElapsed, yn as countWords, nn as createStroke, rn as eraseStrokesAtPoint, St as formatRehearseMs, ut as generateCommentId, Vt as getCinematicTransitionAnimations, Ht as getP14TransitionAnimations, Ut as getSlideTransitionAnimations, Wn as injectTableSelection, Yn as inlineEditorRect, wn as isMobileViewport, Xn as nodeIdsInRenderOrder, A as parseSignaturesFromBuffer, Gn as provideTableSelection, Wt as resolveDirection, Gt as resolveDirection8, Kt as resolveOrientation, tt as resolveShortcutAction, qt as resolveSlideTransition, Jt as resolveTransitionDurationMs, Yt as resolveWheelSpokeCount, hn as smartArtLayoutLabel, Zn as textNodeIdsInRenderOrder, v as toShapePreset, vt as useAccessibility, _t as useAlignGroup, on as useAnimationPlayback, gt as useAutosave, _n as useChartEditing, pt as useCollaboration, ft as useCollaborationWiring, cr as useColorChangeImage, dt as useComments, lt as useCommentsWiring, st as useContextMenu, ot as useCustomShows, at as useCustomShowsWiring, gn as useDebouncedCallback, it as useDocumentPropertiesDialog, bn as useDocumentStatistics, rt as useEditorHistory, Q as useEditorKeyboard, Z as useEditorOperations, X as useElementDrag, Y as useElementInsertion, J as useEmbeddedFonts, q as useExport, K as useExportProgress, W as useExportWiring, U as useFindReplace, H as useFontEmbedding, V as useFormatPainter, B as useHeaderFooterDialog, z as useInkDrawing, L as useInlineEditing, I as useInsertElementDialogs, Tn as useIsMobile, F as useKeyboardInsets, nt as useKeyboardShortcuts, j as useLoadContent, k as useMasterViewState, G as useMediaExport, O as useMobileChrome, tr as useModel3dScene, Dt as useMorphTransitionOverlay, D as useMultiSelectOps, E as usePasswordProtection, in as usePresentationAnnotations, T as usePresentationModeWiring, b as usePrint, Ct as useRehearseTimings, _r as useRendering3DFlags, y as useRibbonActions, n as useRibbonProps, g as useRibbonUiState, h as useSectionOperations, m as useSelectionPaneWiring, jr as useSheetDismissDrag, p as useSignatureWorkflow, bt as useSignatures, f as useSlideMutations, d as useSlideOperations, u as useSlideShowSettings, l as useSlideTemplateInsertion, fn as useSmartArtEditing, Jn as useSmartArtHoverRect, Qn as useSmartArtInlineEditState, c as useSmartArtNodeEditContext, s as useTableCellEditingContext, Kn as useTableCellSelection, o as useThemeEditing, Zt as useToolbarAutoHide, On as useToolbarVisibility, Xt as useTouchGestures, a as useVersionHistory, r as useVersionHistoryWiring, t as useViewerSettingsDialog } from "./useViewerSettingsDialog-DGB1V16A.js";
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, o = Object.getOwnPropertyNames, l = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, r = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), i = (e, n) => {
1
+ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, o = Object.getOwnPropertyNames, l = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, r = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), i = (e, n) => {
2
2
  let o = {};
3
3
  for (var l in e) t(o, l, {
4
4
  get: e[l],
@@ -6097,7 +6097,11 @@ var nc = tl((0, d.defineComponent)({
6097
6097
  ])
6098
6098
  ], 12, oc)) : (0, d.createCommentVNode)("", !0);
6099
6099
  }
6100
- }), [["__scopeId", "data-v-8731a16e"]]), fc = new u.GlyphOutlineFontCache(), hc = (0, d.ref)(0), yc = (0, u.createGlyphOutlineLookup)(fc);
6100
+ }), [["__scopeId", "data-v-8731a16e"]]), fc = new u.GlyphOutlineFontCache(), hc = (0, d.ref)(0);
6101
+ fc.subscribe(() => {
6102
+ hc.value += 1;
6103
+ });
6104
+ var yc = (0, u.createGlyphOutlineLookup)(fc);
6101
6105
  var gc = ["d", "fill"], kc = [
6102
6106
  "x",
6103
6107
  "y",
@@ -7937,7 +7941,7 @@ function qu(e) {
7937
7941
  var Xu = {
7938
7942
  loadYjs: () => import("yjs"),
7939
7943
  loadWebsocket: () => import("y-websocket"),
7940
- loadWebrtc: () => Promise.resolve().then(() => require("./y-webrtc-CHFoitao.cjs"))
7944
+ loadWebrtc: () => Promise.resolve().then(() => require("./y-webrtc-jyWscPMg.cjs"))
7941
7945
  };
7942
7946
  function Zu(e, t) {
7943
7947
  const n = (0, d.ref)(!1), o = (0, d.ref)(!1), l = (0, d.ref)(void 0), a = (0, u.createCollaborationLivePatcher)();
@@ -9460,14 +9464,14 @@ function Td(e) {
9460
9464
  const e = /* @__PURE__ */ new Set(), t = [];
9461
9465
  for (const n of l.value) e.has(n.name) || (e.add(n.name), t.push((0, g.getSubstituteFontFamily)(n.name)));
9462
9466
  return t;
9463
- }), i = (0, d.watch)(() => (0, d.toValue)(e) ?? [], (e) => fc.registerEmbeddedFonts(e), { immediate: !0 }), s = (0, d.watch)(a, (e) => {
9467
+ }), i = (0, u.createEmbeddedOutlineFontsSlot)(fc), s = (0, d.watch)(() => (0, d.toValue)(e) ?? [], (e) => i.set(e), { immediate: !0 }), c = (0, d.watch)(a, (e) => {
9464
9468
  if ("undefined" != typeof document && "function" == typeof document.createElement && void 0 !== document.head) {
9465
9469
  if (0 === e.length) return n && n.parentNode && n.parentNode.removeChild(n), void (n = null);
9466
9470
  n || (n = document.createElement("style"), n.id = "pptx-vue-embedded-fonts", document.head.appendChild(n)), n.textContent = e;
9467
9471
  }
9468
9472
  }, { immediate: !0 });
9469
9473
  return (0, d.onScopeDispose)(() => {
9470
- s(), i(), n && n.parentNode && n.parentNode.removeChild(n), n = null, o(t), t = [];
9474
+ c(), s(), i.release(), n && n.parentNode && n.parentNode.removeChild(n), n = null, o(t), t = [];
9471
9475
  }), {
9472
9476
  fontFaceCss: a,
9473
9477
  fontFamilies: r
@@ -10184,7 +10188,10 @@ function ep(e, t) {
10184
10188
  m.value = !0, v.value = null, f.value = !1;
10185
10189
  const g = e instanceof Uint8Array ? e.buffer.slice(e.byteOffset, e.byteOffset + e.byteLength) : e, Y = g.slice(0), K = g instanceof ArrayBuffer ? g.byteLength / 1048576 : 0;
10186
10190
  K > 50 && console.warn(`[pptx] Large file detected (${K.toFixed(1)} MB). Loading may use significant memory.`);
10187
- const q = h.value, X = await U.load(g, { allowExternalImages: t?.getAllowExternalImages?.() });
10191
+ const q = h.value, X = await U.load(g, {
10192
+ allowExternalImages: t?.getAllowExternalImages?.(),
10193
+ limits: t?.getLimits?.()
10194
+ });
10188
10195
  if (d !== j) return;
10189
10196
  const Z = [];
10190
10197
  for (const e of X.slides) (0, u.collectMediaElements)(e.elements, Z);
@@ -10238,7 +10245,11 @@ function ep(e, t) {
10238
10245
  height: Math.round(X.notesHeightEmu / 9525)
10239
10246
  } : void 0, B.value = le, t?.onContentApplied?.();
10240
10247
  } catch (e) {
10241
- d === j && (e instanceof g.EncryptedFileError ? f.value = !0 : v.value = e instanceof Error ? e.message : String(e));
10248
+ if (d === j) if (e instanceof g.EncryptedFileError) f.value = !0;
10249
+ else {
10250
+ const n = t?.translate;
10251
+ v.value = n ? (0, u.pptxLoadErrorMessage)(e, n) : e instanceof Error ? e.message : String(e);
10252
+ }
10242
10253
  } finally {
10243
10254
  H.releaseIfUncommitted(), d === j && (m.value = !1);
10244
10255
  }