pptx-vue-viewer 4.51.1 → 4.52.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 (36) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{AiChatPanel-DIEerAxW.cjs → AiChatPanel-DP6KnhTx.cjs} +1 -1
  3. package/dist/AiChatPanel-DP6KnhTx.cjs.br +0 -0
  4. package/dist/AiChatPanel-DP6KnhTx.cjs.gz +0 -0
  5. package/dist/{AiChatPanel-ZkGRv9zq.js → AiChatPanel-Y4-m9X2v.js} +1 -1
  6. package/dist/AiChatPanel-Y4-m9X2v.js.br +0 -0
  7. package/dist/AiChatPanel-Y4-m9X2v.js.gz +0 -0
  8. package/dist/index.cjs +1 -1
  9. package/dist/index.cjs.br +0 -0
  10. package/dist/index.cjs.gz +0 -0
  11. package/dist/index.d.ts +11 -0
  12. package/dist/index.js +1 -1
  13. package/dist/index.js.br +0 -0
  14. package/dist/index.js.gz +0 -0
  15. package/dist/viewer/index.cjs +1 -1
  16. package/dist/viewer/index.cjs.br +0 -0
  17. package/dist/viewer/index.cjs.gz +0 -0
  18. package/dist/viewer/index.d.ts +11 -0
  19. package/dist/viewer/index.js +1 -1
  20. package/dist/viewer/index.js.br +0 -0
  21. package/dist/viewer/index.js.gz +0 -0
  22. package/dist/{viewer-ubGxREWP.js → viewer-23TDN7yS.js} +6008 -6002
  23. package/dist/viewer-23TDN7yS.js.br +0 -0
  24. package/dist/viewer-23TDN7yS.js.gz +0 -0
  25. package/dist/{viewer-BEFgaxGx.cjs → viewer-DJyFUehP.cjs} +13 -7
  26. package/dist/viewer-DJyFUehP.cjs.br +0 -0
  27. package/dist/viewer-DJyFUehP.cjs.gz +0 -0
  28. package/package.json +3 -3
  29. package/dist/AiChatPanel-DIEerAxW.cjs.br +0 -0
  30. package/dist/AiChatPanel-DIEerAxW.cjs.gz +0 -0
  31. package/dist/AiChatPanel-ZkGRv9zq.js.br +0 -0
  32. package/dist/AiChatPanel-ZkGRv9zq.js.gz +0 -0
  33. package/dist/viewer-BEFgaxGx.cjs.br +0 -0
  34. package/dist/viewer-BEFgaxGx.cjs.gz +0 -0
  35. package/dist/viewer-ubGxREWP.js.br +0 -0
  36. package/dist/viewer-ubGxREWP.js.gz +0 -0
package/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ 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.52.0](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-vue-viewer@4.52.0) - 2026-10-25
11
+
12
+ ### Features
13
+
14
+ - **pptx:** Let hosts block external content with allowExternalContent ([#201](https://github.com/ChristopherVR/ooxml/issues/201)) ([903c8e2](https://github.com/ChristopherVR/ooxml/commit/903c8e201dbd36252a5e82a388dcb59e30f3afc4))
15
+
10
16
  ## [4.51.1](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-vue-viewer@4.51.1) - 2026-10-25
11
17
 
12
18
  ### Bug Fixes
@@ -1,4 +1,4 @@
1
- const e = require("./useViewerSettingsDialog-BzrOAuvq.cjs"), t = require("./viewer-BEFgaxGx.cjs");
1
+ const e = require("./useViewerSettingsDialog-BzrOAuvq.cjs"), t = require("./viewer-DJyFUehP.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
1
  import { Mr as e } from "./useViewerSettingsDialog-EEv9VhZX.js";
2
- import { l as t, x as a } from "./viewer-ubGxREWP.js";
2
+ import { l as t, x as a } from "./viewer-23TDN7yS.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
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const e = require("./useViewerSettingsDialog-BzrOAuvq.cjs"), r = require("./viewer-BEFgaxGx.cjs");
2
+ const e = require("./useViewerSettingsDialog-BzrOAuvq.cjs"), r = require("./viewer-DJyFUehP.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
@@ -195,6 +195,7 @@ declare const __VLS_export: DefineComponent<PowerPointViewerProps, PowerPointVie
195
195
  "onNotes-update"?: ((notes: string) => any) | undefined;
196
196
  "onPresentation-change"?: ((presenting: boolean) => any) | undefined;
197
197
  }>, {
198
+ allowExternalContent: boolean;
198
199
  canEdit: boolean;
199
200
  readOnly: boolean;
200
201
  autosave: boolean;
@@ -892,6 +893,16 @@ export declare interface PowerPointViewerProps {
892
893
  * invalid `baseUrl` disables the fallback (with a console warning).
893
894
  */
894
895
  googleFonts?: GoogleFontsOption;
896
+ /**
897
+ * Host switch for content a deck links from another server (http(s)
898
+ * relationship targets): pictures, picture fills and bullets, video, audio
899
+ * and poster frames. `false`: none of it is fetched. `true`: it is allowed.
900
+ * Either value locks File > Options > Trust Center > "Allow external
901
+ * content" to match; unset keeps the user's choice there. Google Fonts
902
+ * requests are separate (see `googleFonts`).
903
+ * A change applies from the next load.
904
+ */
905
+ allowExternalContent?: boolean;
895
906
  /**
896
907
  * Show the editor chrome: title bar, ribbon and toolbar, protected-view
897
908
  * and read-only banners, the mobile toolbar and the status bar. Default
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
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-EEv9VhZX.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-ubGxREWP.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-23TDN7yS.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-BzrOAuvq.cjs"), t = require("../viewer-BEFgaxGx.cjs");
2
+ const e = require("../useViewerSettingsDialog-BzrOAuvq.cjs"), t = require("../viewer-DJyFUehP.cjs");
3
3
  let r = require("ooxml-ui/pptx");
4
4
  Object.defineProperty(exports, "AUDIENCE_HASH", {
5
5
  enumerable: !0,
Binary file
Binary file
@@ -174,6 +174,7 @@ declare const __VLS_export: DefineComponent<PowerPointViewerProps, PowerPointVie
174
174
  "onNotes-update"?: ((notes: string) => any) | undefined;
175
175
  "onPresentation-change"?: ((presenting: boolean) => any) | undefined;
176
176
  }>, {
177
+ allowExternalContent: boolean;
177
178
  canEdit: boolean;
178
179
  readOnly: boolean;
179
180
  autosave: boolean;
@@ -1506,6 +1507,16 @@ export declare interface PowerPointViewerProps {
1506
1507
  * invalid `baseUrl` disables the fallback (with a console warning).
1507
1508
  */
1508
1509
  googleFonts?: GoogleFontsOption;
1510
+ /**
1511
+ * Host switch for content a deck links from another server (http(s)
1512
+ * relationship targets): pictures, picture fills and bullets, video, audio
1513
+ * and poster frames. `false`: none of it is fetched. `true`: it is allowed.
1514
+ * Either value locks File > Options > Trust Center > "Allow external
1515
+ * content" to match; unset keeps the user's choice there. Google Fonts
1516
+ * requests are separate (see `googleFonts`).
1517
+ * A change applies from the next load.
1518
+ */
1519
+ allowExternalContent?: boolean;
1509
1520
  /**
1510
1521
  * Show the editor chrome: title bar, ribbon and toolbar, protected-view
1511
1522
  * and read-only banners, the mobile toolbar and the status bar. Default
@@ -1,3 +1,3 @@
1
1
  import { $n as a, An as s, C as e, Cr as r, Dr as n, Er as o, In as t, L as i, M as l, Mn as d, N as R, P as S, S as m, Sr as C, Tr as b, X as w, Z as u, br as c, er as p, j as v, jn as x, lr as T, nr as g, pt as j, qn as y, rr as E, rt as I, ur as M, w as f, wr as A, x as D, xr as O, yr as P, zn as h } from "../useViewerSettingsDialog-EEv9VhZX.js";
2
- import { C as q, S as V, _ as Z, a as k, b as z, c as B, d as F, f as L, g as N, h as W, i as X, m as $, n as _, o as G, p as H, r as J, s as K, t as Q, u as U, v as Y, w as aa, y as sa } from "../viewer-ubGxREWP.js";
2
+ import { C as q, S as V, _ as Z, a as k, b as z, c as B, d as F, f as L, g as N, h as W, i as X, m as $, n as _, o as G, p as H, r as J, s as K, t as Q, u as U, v as Y, w as aa, y as sa } from "../viewer-23TDN7yS.js";
3
3
  export { F as AUDIENCE_HASH, M as ChartRenderer, Y as CollaborationCursors, aa as CollaborationStatusIndicator, T as ConnectorRenderer, r as DEFAULT_CANVAS_HEIGHT, A as DEFAULT_CANVAS_WIDTH, b as DEFAULT_FILL_COLOR, o as DEFAULT_STROKE_COLOR, n as DEFAULT_TEXT_COLOR, x as ElementRenderer, E as EquationRenderer, U as FollowModeBar, g as InkRenderer, q as InlineTextEditor, p as Model3DRenderer, a as OleRenderer, B as PowerPointViewer, Z as RemoteSelectionOverlay, z as RibbonToolbar, V as SelectionOverlay, sa as SlideCanvas, s as SlideStage, y as SmartArtRenderer, h as TableRenderer, t as WordArtText, d as ZoomRenderer, l as buildInitialGuides, L as clearAudienceContent, R as collectImagePaths, S as collectMediaElements, D as exportAllSlidesToSvg, m as exportAllSlidesToSvgBlobs, e as exportSlideToSvg, f as exportSlideToSvgBlob, P as getContainerStyle, c as getImageSrc, _ as getResolvedShapeClipPath, J as getResolvedShapeClipPathFor, O as getShapeFillStrokeStyle, C as getTextBlockStyle, H as isAudienceTab, $ as loadAudienceContent, Q as overlayInlineTextSnapshot, W as parseAudienceNonce, N as storeAudienceContent, j as useCollaboration, X as useCollaborativeHistory, k as useCollaborativeState, I as useEditorHistory, u as useEditorOperations, w as useElementDrag, i as useInlineEditing, v as useLoadContent, G as usePresenceTracking, K as useYjsProvider };
Binary file
Binary file