pptx-react-viewer 4.56.0 → 4.56.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.
- package/CHANGELOG.md +6 -0
- package/dist/{chunk-NESLWTLG.mjs → chunk-3CN33VMC.mjs} +2 -2
- package/dist/chunk-3CN33VMC.mjs.br +0 -0
- package/dist/chunk-3CN33VMC.mjs.gz +0 -0
- package/dist/{chunk-BL2P6K67.js → chunk-OOBBI4DH.js} +6 -3
- package/dist/chunk-OOBBI4DH.js.br +0 -0
- package/dist/chunk-OOBBI4DH.js.gz +0 -0
- package/dist/{chunk-CNCPFDFS.js → chunk-PAJZXF2Q.js} +120 -120
- package/dist/chunk-PAJZXF2Q.js.br +0 -0
- package/dist/chunk-PAJZXF2Q.js.gz +0 -0
- package/dist/{chunk-EZRO5ETF.mjs → chunk-UMGVFMAW.mjs} +6 -3
- package/dist/chunk-UMGVFMAW.mjs.br +0 -0
- package/dist/chunk-UMGVFMAW.mjs.gz +0 -0
- package/dist/index.js +24 -24
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.js +80 -80
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +1 -1
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/viewer/index.js +18 -18
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +2 -2
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +1 -1
- package/dist/chunk-BL2P6K67.js.br +0 -0
- package/dist/chunk-BL2P6K67.js.gz +0 -0
- package/dist/chunk-CNCPFDFS.js.br +0 -0
- package/dist/chunk-CNCPFDFS.js.gz +0 -0
- package/dist/chunk-EZRO5ETF.mjs.br +0 -0
- package/dist/chunk-EZRO5ETF.mjs.gz +0 -0
- package/dist/chunk-NESLWTLG.mjs.br +0 -0
- package/dist/chunk-NESLWTLG.mjs.gz +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkF6WCYCHV_js = require('./chunk-F6WCYCHV.js');
|
|
4
|
-
var
|
|
4
|
+
var chunkOOBBI4DH_js = require('./chunk-OOBBI4DH.js');
|
|
5
5
|
var chunk5KFSMXI4_js = require('./chunk-5KFSMXI4.js');
|
|
6
6
|
var pptx = require('ooxml-ui/pptx');
|
|
7
7
|
var React109 = require('react');
|
|
@@ -577,7 +577,7 @@ function SlideThumbnailImpl({
|
|
|
577
577
|
...pptx.deviceStrokeStageStyle(scale)
|
|
578
578
|
},
|
|
579
579
|
children: [
|
|
580
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
580
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkOOBBI4DH_js.SlideBackgroundImageLayer, { slide }),
|
|
581
581
|
slide.transition && slide.transition.type !== "none" && slide.transition.type !== "cut" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
582
582
|
"div",
|
|
583
583
|
{
|
|
@@ -587,7 +587,7 @@ function SlideThumbnailImpl({
|
|
|
587
587
|
}
|
|
588
588
|
),
|
|
589
589
|
previewElements.map((element, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
590
|
-
|
|
590
|
+
chunkOOBBI4DH_js.StaticElementRenderer,
|
|
591
591
|
{
|
|
592
592
|
element,
|
|
593
593
|
activeSlide: slide,
|
|
@@ -1042,7 +1042,7 @@ function SlidesPaneSidebar({
|
|
|
1042
1042
|
tableStyleContext
|
|
1043
1043
|
}) {
|
|
1044
1044
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
1045
|
-
const collab =
|
|
1045
|
+
const collab = chunkOOBBI4DH_js.useCollaboration();
|
|
1046
1046
|
const slideRefs = React109.useRef(/* @__PURE__ */ new Map());
|
|
1047
1047
|
const renameInputRef = React109.useRef(null);
|
|
1048
1048
|
const slidePresenceMap = React109.useMemo(() => {
|
|
@@ -1137,7 +1137,7 @@ function SlidesPaneSidebar({
|
|
|
1137
1137
|
[sectionGroups, showSectionHeaders, effectiveCollapsed]
|
|
1138
1138
|
);
|
|
1139
1139
|
const shouldVirtualize = slides.length >= VIRTUALIZATION_THRESHOLD;
|
|
1140
|
-
const { startIndex, endIndex, totalHeight, offsetY, scrollContainerRef, scrollToIndex } =
|
|
1140
|
+
const { startIndex, endIndex, totalHeight, offsetY, scrollContainerRef, scrollToIndex } = chunkOOBBI4DH_js.useVirtualizedSlides({
|
|
1141
1141
|
totalItems: shouldVirtualize ? flatItems.length : 0,
|
|
1142
1142
|
itemHeight: estimatedItemHeight
|
|
1143
1143
|
});
|
|
@@ -1421,7 +1421,7 @@ function SlideTemplatePreview({
|
|
|
1421
1421
|
transformOrigin: "top left"
|
|
1422
1422
|
},
|
|
1423
1423
|
children: previewSlide.elements.map((element, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1424
|
-
|
|
1424
|
+
chunkOOBBI4DH_js.StaticElementRenderer,
|
|
1425
1425
|
{
|
|
1426
1426
|
element,
|
|
1427
1427
|
activeSlide: previewSlide,
|
|
@@ -1490,7 +1490,7 @@ function SlideTemplateGalleryDialog({
|
|
|
1490
1490
|
scheme
|
|
1491
1491
|
}) {
|
|
1492
1492
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
1493
|
-
const { panelStyle, handlers: dragHandlers } =
|
|
1493
|
+
const { panelStyle, handlers: dragHandlers } = chunkOOBBI4DH_js.useModalDismissDrag(onClose);
|
|
1494
1494
|
const [selected, setSelected] = React109.useState(null);
|
|
1495
1495
|
const dialogRef = React109.useRef(null);
|
|
1496
1496
|
useModalFocus(isOpen, dialogRef, onClose);
|
|
@@ -1988,7 +1988,7 @@ function MobileSheet({
|
|
|
1988
1988
|
}) {
|
|
1989
1989
|
const sheetRef = React109.useRef(null);
|
|
1990
1990
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
1991
|
-
const { dragY, dragging, handlers } =
|
|
1991
|
+
const { dragY, dragging, handlers } = chunkOOBBI4DH_js.useSheetDismissDrag(onClose);
|
|
1992
1992
|
useModalFocus(open, sheetRef, onClose);
|
|
1993
1993
|
if (!open) {
|
|
1994
1994
|
return null;
|
|
@@ -2257,7 +2257,7 @@ function WebHomeControls({
|
|
|
2257
2257
|
function ShapeArrangeExtras(p) {
|
|
2258
2258
|
const commands = useShapeFormatContext();
|
|
2259
2259
|
const crop = commands?.crop;
|
|
2260
|
-
const { isHidden } =
|
|
2260
|
+
const { isHidden } = chunkOOBBI4DH_js.useToolbarVisibility(p.hiddenActions);
|
|
2261
2261
|
const { onGroupElements, onUngroupElement, onUpdateElementStyle } = p;
|
|
2262
2262
|
const controls = React109.useMemo(
|
|
2263
2263
|
() => pptx.arrangeShapeHomeControls({
|
|
@@ -2592,7 +2592,7 @@ function TransitionsSection(p) {
|
|
|
2592
2592
|
case "soundPreview": {
|
|
2593
2593
|
const url = pptx.ribbonTransitionStockSoundUrl(transition);
|
|
2594
2594
|
if (url) {
|
|
2595
|
-
|
|
2595
|
+
chunkOOBBI4DH_js.playAnimationSound(url);
|
|
2596
2596
|
}
|
|
2597
2597
|
break;
|
|
2598
2598
|
}
|
|
@@ -2795,7 +2795,7 @@ function AccountPage() {
|
|
|
2795
2795
|
return void 0;
|
|
2796
2796
|
});
|
|
2797
2797
|
};
|
|
2798
|
-
const version = "4.56.
|
|
2798
|
+
const version = "4.56.1" ;
|
|
2799
2799
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-8 max-w-[700px] space-y-6", children: [
|
|
2800
2800
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { className: cardClass, children: [
|
|
2801
2801
|
/* @__PURE__ */ jsxRuntime.jsxs("h2", { className: "flex items-center gap-2 text-sm font-semibold", children: [
|
|
@@ -3059,7 +3059,7 @@ function FileSection(p) {
|
|
|
3059
3059
|
const page = offered(requestedPage) ? requestedPage : offered("home") ? "home" : nav.find((item) => item.id !== "save" && item.id !== "close")?.id ?? "home";
|
|
3060
3060
|
const [query, setQuery] = React109.useState("");
|
|
3061
3061
|
const [recent, setRecent] = React109.useState([]);
|
|
3062
|
-
const { isHidden } =
|
|
3062
|
+
const { isHidden } = chunkOOBBI4DH_js.useToolbarVisibility(p.hiddenActions);
|
|
3063
3063
|
const exportHidden = isHidden("export");
|
|
3064
3064
|
const storage = useViewerStorage();
|
|
3065
3065
|
React109.useEffect(() => {
|
|
@@ -3408,7 +3408,7 @@ function LayoutArtwork({
|
|
|
3408
3408
|
backgroundColor
|
|
3409
3409
|
};
|
|
3410
3410
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: (preview?.elements ?? []).slice(0, MAX_PREVIEW_ELEMENTS).map((element, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3411
|
-
|
|
3411
|
+
chunkOOBBI4DH_js.StaticElementRenderer,
|
|
3412
3412
|
{
|
|
3413
3413
|
element,
|
|
3414
3414
|
activeSlide: slide,
|
|
@@ -3858,7 +3858,7 @@ function SlideShowOptions({
|
|
|
3858
3858
|
}
|
|
3859
3859
|
function SubtitleSettingsControl() {
|
|
3860
3860
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
3861
|
-
const supplied = React109.useContext(
|
|
3861
|
+
const supplied = React109.useContext(chunkOOBBI4DH_js.ViewerOptionsStoreContext);
|
|
3862
3862
|
const fallback = React109.useRef(null);
|
|
3863
3863
|
if (!supplied) {
|
|
3864
3864
|
fallback.current ??= pptx.createViewerOptionsStore({ persist: false });
|
|
@@ -3892,7 +3892,7 @@ function SubtitleSettingsControl() {
|
|
|
3892
3892
|
}
|
|
3893
3893
|
function SlideShowSection(p) {
|
|
3894
3894
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
3895
|
-
const { isHidden } =
|
|
3895
|
+
const { isHidden } = chunkOOBBI4DH_js.useToolbarVisibility(p.hiddenActions);
|
|
3896
3896
|
const [showsOpen, setShowsOpen] = React109.useState(false);
|
|
3897
3897
|
const showsRef = React109.useRef(null);
|
|
3898
3898
|
React109.useEffect(() => {
|
|
@@ -4431,7 +4431,7 @@ function MobileMenuSheet(props) {
|
|
|
4431
4431
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
4432
4432
|
const { open, onClose } = props;
|
|
4433
4433
|
const [active, setActive] = React109.useState("home");
|
|
4434
|
-
const { isTabVisible } =
|
|
4434
|
+
const { isTabVisible } = chunkOOBBI4DH_js.useToolbarVisibility(props.hiddenActions);
|
|
4435
4435
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4436
4436
|
MobileSheet,
|
|
4437
4437
|
{
|
|
@@ -4722,7 +4722,7 @@ function MobileToolbar(props) {
|
|
|
4722
4722
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
4723
4723
|
const { mode, canUndo, canRedo, onUndo, onRedo, onSetMode, onSaveAsPptx } = props;
|
|
4724
4724
|
const [menuOpen, setMenuOpen] = React109.useState(false);
|
|
4725
|
-
const { isHidden } =
|
|
4725
|
+
const { isHidden } = chunkOOBBI4DH_js.useToolbarVisibility(props.hiddenActions);
|
|
4726
4726
|
const showEdit = mode === "edit" || mode === "master";
|
|
4727
4727
|
const hidden = [];
|
|
4728
4728
|
if (isHidden("undo")) {
|
|
@@ -4769,7 +4769,7 @@ function MobileToolbar(props) {
|
|
|
4769
4769
|
}
|
|
4770
4770
|
function ChartSelectionStrip() {
|
|
4771
4771
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
4772
|
-
const commands =
|
|
4772
|
+
const commands = chunkOOBBI4DH_js.useChartFormatContext();
|
|
4773
4773
|
const chart = commands?.chart;
|
|
4774
4774
|
const chartData = chart?.type === "chart" ? chart.chartData : void 0;
|
|
4775
4775
|
const controls = React109.useMemo(
|
|
@@ -4800,7 +4800,7 @@ function PictureSizeStrip({
|
|
|
4800
4800
|
hiddenActions
|
|
4801
4801
|
}) {
|
|
4802
4802
|
const crop = useShapeFormatContext()?.crop;
|
|
4803
|
-
const { isHidden } =
|
|
4803
|
+
const { isHidden } = chunkOOBBI4DH_js.useToolbarVisibility(hiddenActions);
|
|
4804
4804
|
const controls = React109.useMemo(
|
|
4805
4805
|
() => pptx.pictureSizeHomeControls({
|
|
4806
4806
|
editable: Boolean(crop),
|
|
@@ -4973,7 +4973,7 @@ var TAB_BASE = "relative px-3.5 py-2 text-[12px] font-medium whitespace-nowrap t
|
|
|
4973
4973
|
var TAB_UNDERLINE = "after:absolute after:-bottom-px after:left-0 after:right-0 after:h-[2.5px] after:bg-primary";
|
|
4974
4974
|
function RibbonTabBar(p) {
|
|
4975
4975
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
4976
|
-
const viewerOptions =
|
|
4976
|
+
const viewerOptions = chunkOOBBI4DH_js.useViewerOptionsContext();
|
|
4977
4977
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4978
4978
|
"div",
|
|
4979
4979
|
{
|
|
@@ -5050,9 +5050,9 @@ function RibbonTabBar(p) {
|
|
|
5050
5050
|
}
|
|
5051
5051
|
function TabRowActions(p) {
|
|
5052
5052
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
5053
|
-
const collab =
|
|
5053
|
+
const collab = chunkOOBBI4DH_js.useCollaboration();
|
|
5054
5054
|
const isCollaborating = Boolean(collab && collab.status === "connected");
|
|
5055
|
-
const { isHidden } =
|
|
5055
|
+
const { isHidden } = chunkOOBBI4DH_js.useToolbarVisibility(p.hiddenActions);
|
|
5056
5056
|
const customization = useViewerCustomizationContext();
|
|
5057
5057
|
const ref = React109.useRef(null);
|
|
5058
5058
|
const handlers = React109.useRef(p);
|
|
@@ -5107,7 +5107,7 @@ function TabRowActions(p) {
|
|
|
5107
5107
|
}
|
|
5108
5108
|
function TitleBarElement(p) {
|
|
5109
5109
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
5110
|
-
const options =
|
|
5110
|
+
const options = chunkOOBBI4DH_js.useViewerOptionsContext();
|
|
5111
5111
|
const customization = useViewerCustomizationContext();
|
|
5112
5112
|
const ref = React109.useRef(null);
|
|
5113
5113
|
const stripVisible = options.quickAccess.visible && pptx.isPanelVisible(customization, "quickAccessToolbar");
|
|
@@ -5443,7 +5443,7 @@ function ToolbarPrimaryRow(p) {
|
|
|
5443
5443
|
onToggleSidebar,
|
|
5444
5444
|
onToggleInspector
|
|
5445
5445
|
} = p;
|
|
5446
|
-
const collab =
|
|
5446
|
+
const collab = chunkOOBBI4DH_js.useCollaboration();
|
|
5447
5447
|
const customization = useViewerCustomizationContext();
|
|
5448
5448
|
const showSlidesToggle = pptx.isPanelVisible(customization, "slidesPane");
|
|
5449
5449
|
const showInspectorToggle = pptx.isPanelVisible(customization, "inspector");
|
|
@@ -5733,8 +5733,8 @@ function ToolbarLateTabs({
|
|
|
5733
5733
|
function Toolbar(p) {
|
|
5734
5734
|
const { mode, isNarrowViewport, isCompactToolbarOpen, toolbarSection, onSetToolbarSection } = p;
|
|
5735
5735
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
5736
|
-
const { isTabVisible } =
|
|
5737
|
-
const viewerOptions =
|
|
5736
|
+
const { isTabVisible } = chunkOOBBI4DH_js.useToolbarVisibility(p.hiddenActions);
|
|
5737
|
+
const viewerOptions = chunkOOBBI4DH_js.useViewerOptionsContext();
|
|
5738
5738
|
const customization = useViewerCustomizationContext();
|
|
5739
5739
|
const belowInput = React109.useMemo(
|
|
5740
5740
|
() => ({
|
|
@@ -6711,7 +6711,7 @@ function DrawingOverlaySvg({
|
|
|
6711
6711
|
onPointerDown,
|
|
6712
6712
|
onPointerMove,
|
|
6713
6713
|
onPointerUp,
|
|
6714
|
-
children: isStrokeActive && liveStrokeView ?
|
|
6714
|
+
children: isStrokeActive && liveStrokeView ? chunkOOBBI4DH_js.renderStrokeView(liveStrokeView, true, void 0, "ink-live-preview") : isStrokeActive && liveStrokeD && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6715
6715
|
"path",
|
|
6716
6716
|
{
|
|
6717
6717
|
d: liveStrokeD,
|
|
@@ -7261,7 +7261,7 @@ function PictureCropOverlay({
|
|
|
7261
7261
|
};
|
|
7262
7262
|
};
|
|
7263
7263
|
const { ghost, frame, handles } = overlay;
|
|
7264
|
-
const src =
|
|
7264
|
+
const src = chunkOOBBI4DH_js.imgSrc(element);
|
|
7265
7265
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7266
7266
|
"div",
|
|
7267
7267
|
{
|
|
@@ -7437,7 +7437,7 @@ function HorizontalRulerView({ ticks, widthPx, highlight }) {
|
|
|
7437
7437
|
}
|
|
7438
7438
|
);
|
|
7439
7439
|
}
|
|
7440
|
-
var HorizontalRuler = /* @__PURE__ */
|
|
7440
|
+
var HorizontalRuler = /* @__PURE__ */ chunkOOBBI4DH_js.withDisplayName(
|
|
7441
7441
|
/* @__PURE__ */ React109__default.default.memo(HorizontalRulerView),
|
|
7442
7442
|
"HorizontalRuler"
|
|
7443
7443
|
);
|
|
@@ -7511,7 +7511,7 @@ function VerticalRulerView({ ticks, heightPx, highlight }) {
|
|
|
7511
7511
|
}
|
|
7512
7512
|
);
|
|
7513
7513
|
}
|
|
7514
|
-
var VerticalRuler = /* @__PURE__ */
|
|
7514
|
+
var VerticalRuler = /* @__PURE__ */ chunkOOBBI4DH_js.withDisplayName(
|
|
7515
7515
|
/* @__PURE__ */ React109__default.default.memo(VerticalRulerView),
|
|
7516
7516
|
"VerticalRuler"
|
|
7517
7517
|
);
|
|
@@ -7705,7 +7705,7 @@ function SelectionHandleOverlay({
|
|
|
7705
7705
|
onDoubleClick: (e) => onDoubleClick(element.id, e),
|
|
7706
7706
|
onContextMenu: (e) => onContextMenu(element.id, e),
|
|
7707
7707
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7708
|
-
|
|
7708
|
+
chunkOOBBI4DH_js.ResizeHandles,
|
|
7709
7709
|
{
|
|
7710
7710
|
elementId: element.id,
|
|
7711
7711
|
adjustmentHandles,
|
|
@@ -8416,7 +8416,7 @@ function SlideCanvas(props) {
|
|
|
8416
8416
|
props.registerInlineEditReader
|
|
8417
8417
|
]
|
|
8418
8418
|
);
|
|
8419
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8419
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkOOBBI4DH_js.InlineCollaborationContext.Provider, { value, children: /* @__PURE__ */ jsxRuntime.jsx(SlideCanvasContent, { ...props }) });
|
|
8420
8420
|
}
|
|
8421
8421
|
function SlideCanvasContent({
|
|
8422
8422
|
imagePaste,
|
|
@@ -8685,7 +8685,7 @@ function SlideCanvasContent({
|
|
|
8685
8685
|
onPointerMove: handleStagePointerMove,
|
|
8686
8686
|
onPointerUp: handleStagePointerUp,
|
|
8687
8687
|
children: [
|
|
8688
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8688
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkOOBBI4DH_js.SlideBackgroundImageLayer, { slide: activeSlide }),
|
|
8689
8689
|
presentationKeyframesCss && /* @__PURE__ */ jsxRuntime.jsx("style", { children: presentationKeyframesCss }),
|
|
8690
8690
|
/* @__PURE__ */ jsxRuntime.jsx(GridOverlay, { canvasSize, gridSpacingPx, visible: showGrid }),
|
|
8691
8691
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -8697,7 +8697,7 @@ function SlideCanvasContent({
|
|
|
8697
8697
|
}
|
|
8698
8698
|
),
|
|
8699
8699
|
templateElements.map((element, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
8700
|
-
|
|
8700
|
+
chunkOOBBI4DH_js.ElementRenderer,
|
|
8701
8701
|
{
|
|
8702
8702
|
element,
|
|
8703
8703
|
activeSlide,
|
|
@@ -8741,7 +8741,7 @@ function SlideCanvasContent({
|
|
|
8741
8741
|
`tpl-${element.id}`
|
|
8742
8742
|
)),
|
|
8743
8743
|
activeSlide?.elements.map((element, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
8744
|
-
|
|
8744
|
+
chunkOOBBI4DH_js.ElementRenderer,
|
|
8745
8745
|
{
|
|
8746
8746
|
element,
|
|
8747
8747
|
activeSlide,
|
|
@@ -8807,7 +8807,7 @@ function SlideCanvasContent({
|
|
|
8807
8807
|
editingMember && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
8808
8808
|
/* @__PURE__ */ jsxRuntime.jsx("style", { children: `[data-element-id="${cssAttr(editingMember.parentId)}"] [data-element-id="${cssAttr(editingMember.member.id)}"]{visibility:hidden}` }),
|
|
8809
8809
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8810
|
-
|
|
8810
|
+
chunkOOBBI4DH_js.ElementRenderer,
|
|
8811
8811
|
{
|
|
8812
8812
|
element: editingMember.member,
|
|
8813
8813
|
activeSlide,
|
|
@@ -9319,7 +9319,7 @@ function ContextMenu(props) {
|
|
|
9319
9319
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
9320
9320
|
const customization = useViewerCustomizationContext();
|
|
9321
9321
|
const shapeFormat = useShapeFormatContext();
|
|
9322
|
-
const chartFormat =
|
|
9322
|
+
const chartFormat = chunkOOBBI4DH_js.useChartFormatContext();
|
|
9323
9323
|
const open = Boolean(contextMenuState) && mode === "edit";
|
|
9324
9324
|
const handlers = {
|
|
9325
9325
|
...contextMenuHandlers(props, shapeFormat),
|
|
@@ -11288,7 +11288,7 @@ function ReadingViewStage({
|
|
|
11288
11288
|
className: "absolute left-0 top-0 origin-top-left",
|
|
11289
11289
|
style: { width, height, transform: `scale(${scale})`, ...pptx.deviceStrokeStageStyle(scale) },
|
|
11290
11290
|
children: elements.map((element, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
11291
|
-
|
|
11291
|
+
chunkOOBBI4DH_js.StaticElementRenderer,
|
|
11292
11292
|
{
|
|
11293
11293
|
element,
|
|
11294
11294
|
activeSlide: slide,
|
|
@@ -11943,7 +11943,7 @@ function SlideNotesPanel({
|
|
|
11943
11943
|
});
|
|
11944
11944
|
const hasNotes = draft.trim().length > 0;
|
|
11945
11945
|
const slideLabel = activeSlide ? t("pptx.notes.slideN", { n: activeSlide.slideNumber }) : t("pptx.notes.noSlide");
|
|
11946
|
-
const { dragY, handlers: dragHandlers } =
|
|
11946
|
+
const { dragY, handlers: dragHandlers } = chunkOOBBI4DH_js.useSheetDismissDrag(onToggle);
|
|
11947
11947
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
11948
11948
|
isExpanded && /* @__PURE__ */ jsxRuntime.jsx(
|
|
11949
11949
|
"button",
|
|
@@ -13080,7 +13080,7 @@ function DocumentPropertiesDialog({
|
|
|
13080
13080
|
const handleClose = React109.useCallback(() => {
|
|
13081
13081
|
onClose();
|
|
13082
13082
|
}, [onClose]);
|
|
13083
|
-
const { panelStyle, handlers: dragHandlers } =
|
|
13083
|
+
const { panelStyle, handlers: dragHandlers } = chunkOOBBI4DH_js.useModalDismissDrag(handleClose);
|
|
13084
13084
|
if (!isOpen) {
|
|
13085
13085
|
return null;
|
|
13086
13086
|
}
|
|
@@ -13677,7 +13677,7 @@ function PresentationSubtitleBar({
|
|
|
13677
13677
|
}) {
|
|
13678
13678
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
13679
13679
|
const language = pptx.subtitleRecognitionLanguage(
|
|
13680
|
-
pptx.subtitleSettingsFromOptions(
|
|
13680
|
+
pptx.subtitleSettingsFromOptions(chunkOOBBI4DH_js.useViewerOptionsContext()),
|
|
13681
13681
|
typeof navigator === "undefined" ? "en-US" : navigator.language
|
|
13682
13682
|
);
|
|
13683
13683
|
const [captionText, setCaptionText] = React109.useState("");
|
|
@@ -13871,7 +13871,7 @@ function ScaledSlidePreviewImpl({
|
|
|
13871
13871
|
...pptx.deviceStrokeStageStyle(scale)
|
|
13872
13872
|
},
|
|
13873
13873
|
children: previewElements.map((element, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
13874
|
-
|
|
13874
|
+
chunkOOBBI4DH_js.StaticElementRenderer,
|
|
13875
13875
|
{
|
|
13876
13876
|
element,
|
|
13877
13877
|
activeSlide: slide,
|
|
@@ -15205,7 +15205,7 @@ function EffectSoundRow({
|
|
|
15205
15205
|
}
|
|
15206
15206
|
const asset = pptx.getEffectSoundAsset(soundState.catalogueId);
|
|
15207
15207
|
if (asset) {
|
|
15208
|
-
|
|
15208
|
+
chunkOOBBI4DH_js.playAnimationSound(asset.dataUrl);
|
|
15209
15209
|
}
|
|
15210
15210
|
};
|
|
15211
15211
|
return /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "flex flex-col gap-1", children: [
|
|
@@ -15717,7 +15717,7 @@ function AnimationPanel({
|
|
|
15717
15717
|
onUpdateSlide
|
|
15718
15718
|
}) {
|
|
15719
15719
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
15720
|
-
const { viewportWidth } =
|
|
15720
|
+
const { viewportWidth } = chunkOOBBI4DH_js.useIsMobile();
|
|
15721
15721
|
const directionBtnPx = Math.max(28, pptx.getDensePanelTouchTargetPx(viewportWidth));
|
|
15722
15722
|
const fieldStyle = { minHeight: pptx.getDensePanelTouchTargetPx(viewportWidth) };
|
|
15723
15723
|
const handlers = useAnimationHandlers({
|
|
@@ -17842,8 +17842,8 @@ function ChartUserShapeOptions({
|
|
|
17842
17842
|
}
|
|
17843
17843
|
function ChartDataPanel({ selectedElement, canEdit, onUpdateElement }) {
|
|
17844
17844
|
const chartData = selectedElement.chartData;
|
|
17845
|
-
const followDataPoint =
|
|
17846
|
-
const { selection: partSelection } =
|
|
17845
|
+
const followDataPoint = chunkOOBBI4DH_js.useViewerOptionsContext().advanced.chartPropertiesFollowDataPoint;
|
|
17846
|
+
const { selection: partSelection } = chunkOOBBI4DH_js.useChartPartSelection();
|
|
17847
17847
|
const canvasPart = partSelection?.elementId === selectedElement.id ? partSelection.part : null;
|
|
17848
17848
|
const title = chartData?.title;
|
|
17849
17849
|
const chartType = chartData?.chartType;
|
|
@@ -19039,7 +19039,7 @@ function DuotonePanel({
|
|
|
19039
19039
|
] }),
|
|
19040
19040
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
|
|
19041
19041
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-muted-foreground text-[10px]", children: t("pptx.image.duotonePresets") }),
|
|
19042
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-4 gap-1", children:
|
|
19042
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-4 gap-1", children: chunkOOBBI4DH_js.DUOTONE_PRESETS.map((preset) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
19043
19043
|
"button",
|
|
19044
19044
|
{
|
|
19045
19045
|
type: "button",
|
|
@@ -22297,7 +22297,7 @@ function SmartArtPropertiesPanel({
|
|
|
22297
22297
|
const reflowed = box ? pptx.rebuildDrawingShapesIfCleared(
|
|
22298
22298
|
newData,
|
|
22299
22299
|
newData.layout,
|
|
22300
|
-
|
|
22300
|
+
chunkOOBBI4DH_js.resolveSmartArtDataPalette(newData),
|
|
22301
22301
|
newData.style ?? "flat",
|
|
22302
22302
|
"inspector",
|
|
22303
22303
|
box
|
|
@@ -22370,7 +22370,7 @@ function TableDataGrid({
|
|
|
22370
22370
|
}) {
|
|
22371
22371
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
22372
22372
|
const grid = pptx.buildTableDataGrid(tableElement);
|
|
22373
|
-
const { viewportWidth } =
|
|
22373
|
+
const { viewportWidth } = chunkOOBBI4DH_js.useIsMobile();
|
|
22374
22374
|
const gridPlan = pptx.getDenseGridLayoutPlan(viewportWidth);
|
|
22375
22375
|
const touchTargetPx = pptx.getDensePanelTouchTargetPx(viewportWidth);
|
|
22376
22376
|
const stickyGutterClass = gridPlan.stickyFirstColumn ? "sticky left-0 z-10" : "";
|
|
@@ -24200,7 +24200,7 @@ function InspectorPaneHeader({
|
|
|
24200
24200
|
onClose
|
|
24201
24201
|
}) {
|
|
24202
24202
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
24203
|
-
const { viewportWidth } =
|
|
24203
|
+
const { viewportWidth } = chunkOOBBI4DH_js.useIsMobile();
|
|
24204
24204
|
const touchTargetPx = pptx.getDensePanelTouchTargetPx(viewportWidth);
|
|
24205
24205
|
const touchBtnStyle = { minWidth: touchTargetPx, minHeight: touchTargetPx };
|
|
24206
24206
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -24901,7 +24901,7 @@ function TransitionPreview({
|
|
|
24901
24901
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
24902
24902
|
const durationMs = transition.durationMs ?? 500;
|
|
24903
24903
|
const animations = React109.useMemo(
|
|
24904
|
-
() =>
|
|
24904
|
+
() => chunkOOBBI4DH_js.getSlideTransitionAnimations(
|
|
24905
24905
|
transition.type,
|
|
24906
24906
|
durationMs,
|
|
24907
24907
|
transition.direction,
|
|
@@ -24970,7 +24970,7 @@ function TransitionPreview({
|
|
|
24970
24970
|
]
|
|
24971
24971
|
}
|
|
24972
24972
|
),
|
|
24973
|
-
/* @__PURE__ */ jsxRuntime.jsx("style", { children:
|
|
24973
|
+
/* @__PURE__ */ jsxRuntime.jsx("style", { children: chunkOOBBI4DH_js.SLIDE_TRANSITION_KEYFRAMES })
|
|
24974
24974
|
] });
|
|
24975
24975
|
}
|
|
24976
24976
|
var DEFAULT_DURATION_MS = 320;
|
|
@@ -25633,7 +25633,7 @@ function InspectorPane(props) {
|
|
|
25633
25633
|
} = props;
|
|
25634
25634
|
const hasSelection = selectedElement !== null;
|
|
25635
25635
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
25636
|
-
const { dragY, handlers: dragHandlers } =
|
|
25636
|
+
const { dragY, handlers: dragHandlers } = chunkOOBBI4DH_js.useSheetDismissDrag(onClose);
|
|
25637
25637
|
const {
|
|
25638
25638
|
animationPanelHeight,
|
|
25639
25639
|
effectiveThemeOptions,
|
|
@@ -26046,7 +26046,7 @@ function PresentationTouchControls({
|
|
|
26046
26046
|
hideNavigation = false
|
|
26047
26047
|
}) {
|
|
26048
26048
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
26049
|
-
const { isTouchDevice } =
|
|
26049
|
+
const { isTouchDevice } = chunkOOBBI4DH_js.useIsMobile();
|
|
26050
26050
|
if (!isTouchDevice) {
|
|
26051
26051
|
return null;
|
|
26052
26052
|
}
|
|
@@ -26693,11 +26693,11 @@ function PrintDialog({
|
|
|
26693
26693
|
}) {
|
|
26694
26694
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
26695
26695
|
const regionRenderer = useRegionRenderer("dialog.print");
|
|
26696
|
-
const { panelStyle, handlers: dragHandlers } =
|
|
26697
|
-
const { viewportWidth } =
|
|
26696
|
+
const { panelStyle, handlers: dragHandlers } = chunkOOBBI4DH_js.useModalDismissDrag(onClose);
|
|
26697
|
+
const { viewportWidth } = chunkOOBBI4DH_js.useIsMobile();
|
|
26698
26698
|
const touchTargetPx = pptx.getDensePanelTouchTargetPx(viewportWidth);
|
|
26699
26699
|
const closeBtnStyle = { minWidth: touchTargetPx, minHeight: touchTargetPx };
|
|
26700
|
-
const printOptionDefaults = pptx.resolveDefaultPrintSettings(
|
|
26700
|
+
const printOptionDefaults = pptx.resolveDefaultPrintSettings(chunkOOBBI4DH_js.useViewerOptionsContext());
|
|
26701
26701
|
const [printWhat, setPrintWhat] = React109.useState(printOptionDefaults?.printWhat ?? "slides");
|
|
26702
26702
|
const [orientation, setOrientation] = React109.useState("landscape");
|
|
26703
26703
|
const [colorMode, setColorMode] = React109.useState(
|
|
@@ -27187,14 +27187,14 @@ function BroadcastDialog({
|
|
|
27187
27187
|
}) {
|
|
27188
27188
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
27189
27189
|
const regionRenderer = useRegionRenderer("dialog.broadcast");
|
|
27190
|
-
const collab =
|
|
27190
|
+
const collab = chunkOOBBI4DH_js.useCollaboration();
|
|
27191
27191
|
const isBroadcasting = collab !== null && collab.status !== "disconnected" && collab.status !== "error" && collab.config.role === "owner";
|
|
27192
27192
|
const [roomId, setRoomId] = React109.useState("");
|
|
27193
27193
|
const [userName, setUserName] = React109.useState("");
|
|
27194
27194
|
const [serverUrl, setServerUrl] = React109.useState("");
|
|
27195
27195
|
const [copied, setCopied] = React109.useState(false);
|
|
27196
27196
|
const dialogRef = React109.useRef(null);
|
|
27197
|
-
const { panelStyle, handlers: dragHandlers } =
|
|
27197
|
+
const { panelStyle, handlers: dragHandlers } = chunkOOBBI4DH_js.useModalDismissDrag(onClose);
|
|
27198
27198
|
useModalFocus(open, dialogRef, onClose);
|
|
27199
27199
|
React109.useEffect(() => {
|
|
27200
27200
|
if (open && !isBroadcasting) {
|
|
@@ -27510,7 +27510,7 @@ function ActiveSessionView({
|
|
|
27510
27510
|
onCopyRoomId,
|
|
27511
27511
|
onStopCollaboration
|
|
27512
27512
|
}) {
|
|
27513
|
-
const { t } = chunk5KFSMXI4_js.useTranslation(), viewerOptions =
|
|
27513
|
+
const { t } = chunk5KFSMXI4_js.useTranslation(), viewerOptions = chunkOOBBI4DH_js.useViewerOptionsContext(), statusColor = collab.status === "connected" ? "text-green-400" : collab.status === "connecting" ? "text-yellow-400" : "text-red-400", statusIcon = collab.status === "connected" || collab.status === "connecting" ? /* @__PURE__ */ jsxRuntime.jsx(lu.LuWifi, { className: "w-4 h-4" }) : /* @__PURE__ */ jsxRuntime.jsx(lu.LuWifiOff, { className: "w-4 h-4" }), sessionUsers = pptx.buildActiveSessionUsers({
|
|
27514
27514
|
localUserName: activeCollaboration?.userName ?? collab.config.userName,
|
|
27515
27515
|
localUserInitials: viewerOptions.general.userInitials,
|
|
27516
27516
|
localUserColor: collab.config.userColor,
|
|
@@ -27609,7 +27609,7 @@ function StartSessionForm({
|
|
|
27609
27609
|
onRetry
|
|
27610
27610
|
}) {
|
|
27611
27611
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
27612
|
-
const { viewportWidth } =
|
|
27612
|
+
const { viewportWidth } = chunkOOBBI4DH_js.useIsMobile();
|
|
27613
27613
|
const tabBtnStyle = { minHeight: pptx.getDensePanelTouchTargetPx(viewportWidth) };
|
|
27614
27614
|
const inputReadOnlyClass = preconfigured ? " opacity-70 cursor-not-allowed" : "";
|
|
27615
27615
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
@@ -27743,7 +27743,7 @@ function ShareDialog({
|
|
|
27743
27743
|
defaultUserName,
|
|
27744
27744
|
defaultServerUrl
|
|
27745
27745
|
}) {
|
|
27746
|
-
const collab =
|
|
27746
|
+
const collab = chunkOOBBI4DH_js.useCollaboration();
|
|
27747
27747
|
const isActive = collab !== null && collab.status !== "disconnected" && collab.status !== "error";
|
|
27748
27748
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
27749
27749
|
const regionRenderer = useRegionRenderer("dialog.share");
|
|
@@ -27754,9 +27754,9 @@ function ShareDialog({
|
|
|
27754
27754
|
const [invitation, setInvitation] = React109.useState("");
|
|
27755
27755
|
const [copied, setCopied] = React109.useState(false);
|
|
27756
27756
|
const dialogRef = React109.useRef(null);
|
|
27757
|
-
const { panelStyle, handlers: dragHandlers } =
|
|
27757
|
+
const { panelStyle, handlers: dragHandlers } = chunkOOBBI4DH_js.useModalDismissDrag(onClose);
|
|
27758
27758
|
useModalFocus(open, dialogRef, onClose);
|
|
27759
|
-
const { viewportWidth, viewportHeight } =
|
|
27759
|
+
const { viewportWidth, viewportHeight } = chunkOOBBI4DH_js.useIsMobile();
|
|
27760
27760
|
const touchTargetPx = pptx.getDensePanelTouchTargetPx(viewportWidth);
|
|
27761
27761
|
const touchBtnStyle = { minWidth: touchTargetPx, minHeight: touchTargetPx };
|
|
27762
27762
|
const stickyFooterClass = pptx.shouldStickyActionRow(viewportWidth, viewportHeight) ? "sticky bottom-0 bg-popover" : "";
|
|
@@ -28055,12 +28055,12 @@ function HyperlinkEditDialog({
|
|
|
28055
28055
|
onCancel
|
|
28056
28056
|
}) {
|
|
28057
28057
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
28058
|
-
const { panelStyle, handlers: dragHandlers } =
|
|
28058
|
+
const { panelStyle, handlers: dragHandlers } = chunkOOBBI4DH_js.useModalDismissDrag(onCancel);
|
|
28059
28059
|
const inputRef = React109.useRef(null);
|
|
28060
|
-
const detectedType =
|
|
28061
|
-
const emailParts =
|
|
28062
|
-
const detectedSlide =
|
|
28063
|
-
const detectedVerb = initialAction ?
|
|
28060
|
+
const detectedType = chunkOOBBI4DH_js.detectTargetType(initialUrl, initialAction);
|
|
28061
|
+
const emailParts = chunkOOBBI4DH_js.parseEmailUrl(initialUrl || "");
|
|
28062
|
+
const detectedSlide = chunkOOBBI4DH_js.parseSlideFromUrl(initialUrl, initialAction);
|
|
28063
|
+
const detectedVerb = initialAction ? chunkOOBBI4DH_js.ACTION_VERB_MAP[initialAction.toLowerCase()] || "nextSlide" : "nextSlide";
|
|
28064
28064
|
const [targetType, setTargetType] = React109.useState(detectedType);
|
|
28065
28065
|
const [url, setUrl] = React109.useState(
|
|
28066
28066
|
detectedType === "email" || detectedType === "slide" || detectedType === "action" ? "" : initialUrl || ""
|
|
@@ -28337,7 +28337,7 @@ function ViewerBottomPanels({
|
|
|
28337
28337
|
notesStyle,
|
|
28338
28338
|
onNotesHeightChange
|
|
28339
28339
|
}) {
|
|
28340
|
-
const { isHidden } =
|
|
28340
|
+
const { isHidden } = chunkOOBBI4DH_js.useToolbarVisibility(hiddenActions);
|
|
28341
28341
|
const customization = useViewerCustomizationContext();
|
|
28342
28342
|
const showNotes = pptx.isPanelVisible(customization, "notes");
|
|
28343
28343
|
const notesRenderer = useRegionRenderer("notes");
|
|
@@ -28734,7 +28734,7 @@ function ViewerToolbarSection(props) {
|
|
|
28734
28734
|
[activeSlide, propertyHandlers]
|
|
28735
28735
|
);
|
|
28736
28736
|
const scopedLayoutOptions = React109__default.default.useMemo(
|
|
28737
|
-
() =>
|
|
28737
|
+
() => chunkOOBBI4DH_js.scopeLayoutOptionsToActiveSlide(s.layoutOptions, activeSlide),
|
|
28738
28738
|
[s.layoutOptions, activeSlide]
|
|
28739
28739
|
);
|
|
28740
28740
|
const handleResetSlide = React109.useCallback(() => {
|
|
@@ -29141,7 +29141,7 @@ function ViewerToolbarSection(props) {
|
|
|
29141
29141
|
isMobileInsertOpen: s.isMobileInsertOpen,
|
|
29142
29142
|
onCloseMobileInsert: () => s.setIsMobileInsertOpen(false),
|
|
29143
29143
|
slideCommentCount: activeSlide?.comments?.length ?? 0,
|
|
29144
|
-
reviewComments:
|
|
29144
|
+
reviewComments: chunkOOBBI4DH_js.createReviewCommentsHost({
|
|
29145
29145
|
state: s,
|
|
29146
29146
|
activeSlideIndex,
|
|
29147
29147
|
updateSlides: ops.updateSlides,
|
|
@@ -29235,7 +29235,7 @@ function EquationEditorDialog({
|
|
|
29235
29235
|
existingOmml
|
|
29236
29236
|
}) {
|
|
29237
29237
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
29238
|
-
const { panelStyle, handlers: dragHandlers } =
|
|
29238
|
+
const { panelStyle, handlers: dragHandlers } = chunkOOBBI4DH_js.useModalDismissDrag(onClose);
|
|
29239
29239
|
const initialLatex = React109.useMemo(() => {
|
|
29240
29240
|
if (!existingOmml) {
|
|
29241
29241
|
return "";
|
|
@@ -29934,11 +29934,11 @@ function PresentationStage({
|
|
|
29934
29934
|
})
|
|
29935
29935
|
},
|
|
29936
29936
|
children: [
|
|
29937
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
29937
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkOOBBI4DH_js.SlideBackgroundImageLayer, { slide: activeSlide }),
|
|
29938
29938
|
/* @__PURE__ */ jsxRuntime.jsx("style", { children: pptx.PRESENTATION_HIT_TEST_CSS }),
|
|
29939
29939
|
presentationKeyframesCss && /* @__PURE__ */ jsxRuntime.jsx("style", { children: presentationKeyframesCss }),
|
|
29940
29940
|
templateElements.map((element, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
29941
|
-
|
|
29941
|
+
chunkOOBBI4DH_js.ElementRenderer,
|
|
29942
29942
|
{
|
|
29943
29943
|
element,
|
|
29944
29944
|
activeSlide,
|
|
@@ -29975,7 +29975,7 @@ function PresentationStage({
|
|
|
29975
29975
|
`tpl-${element.id}`
|
|
29976
29976
|
)),
|
|
29977
29977
|
activeSlide?.elements.map((element, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
29978
|
-
|
|
29978
|
+
chunkOOBBI4DH_js.ElementRenderer,
|
|
29979
29979
|
{
|
|
29980
29980
|
element,
|
|
29981
29981
|
activeSlide,
|
|
@@ -30097,8 +30097,8 @@ function ViewerCanvasArea(props) {
|
|
|
30097
30097
|
aiCanvasActive = false
|
|
30098
30098
|
} = props;
|
|
30099
30099
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
30100
|
-
const { isHidden } =
|
|
30101
|
-
const viewerOptions =
|
|
30100
|
+
const { isHidden } = chunkOOBBI4DH_js.useToolbarVisibility(hiddenActions);
|
|
30101
|
+
const viewerOptions = chunkOOBBI4DH_js.useViewerOptionsContext();
|
|
30102
30102
|
const outlineAuthoring = useOutlineAuthoring({
|
|
30103
30103
|
state: s,
|
|
30104
30104
|
updateElement: canvasHandlers.handleUpdateSmartArtElement,
|
|
@@ -30236,7 +30236,7 @@ ${url}`)) {
|
|
|
30236
30236
|
s.setActiveSlideIndex((i) => Math.max(0, i - 1));
|
|
30237
30237
|
}
|
|
30238
30238
|
}, [mode, presentation, s]);
|
|
30239
|
-
const swipe =
|
|
30239
|
+
const swipe = chunkOOBBI4DH_js.useSwipeNavigation({
|
|
30240
30240
|
enabled: swipeEnabled,
|
|
30241
30241
|
onNext: handleSwipeNext,
|
|
30242
30242
|
onPrev: handleSwipePrev
|
|
@@ -30316,7 +30316,7 @@ ${url}`)) {
|
|
|
30316
30316
|
),
|
|
30317
30317
|
children: (stageScale) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
30318
30318
|
presentation.transitionOverlay && slides[presentation.transitionOverlay.outgoingSlideIndex] && /* @__PURE__ */ jsxRuntime.jsx(
|
|
30319
|
-
|
|
30319
|
+
chunkOOBBI4DH_js.PresentationTransitionOverlay,
|
|
30320
30320
|
{
|
|
30321
30321
|
outgoingSlide: slides[presentation.transitionOverlay.outgoingSlideIndex],
|
|
30322
30322
|
templateElements: [
|
|
@@ -30433,14 +30433,14 @@ ${url}`)) {
|
|
|
30433
30433
|
outlineAuthoring,
|
|
30434
30434
|
collaborationOverlay: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
30435
30435
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
30436
|
-
|
|
30436
|
+
chunkOOBBI4DH_js.RemoteSelectionOverlay,
|
|
30437
30437
|
{
|
|
30438
30438
|
elements: effectiveSlide?.elements ?? [],
|
|
30439
30439
|
activeSlideIndex
|
|
30440
30440
|
}
|
|
30441
30441
|
),
|
|
30442
30442
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
30443
|
-
|
|
30443
|
+
chunkOOBBI4DH_js.CollaborationCursorOverlay,
|
|
30444
30444
|
{
|
|
30445
30445
|
activeSlideIndex,
|
|
30446
30446
|
canvasWidth: canvasSize.width,
|
|
@@ -30678,7 +30678,7 @@ function AiChangeOverlay({ batch, activeSlideIndex }) {
|
|
|
30678
30678
|
}
|
|
30679
30679
|
function ChartFormatPanel() {
|
|
30680
30680
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
30681
|
-
const commands =
|
|
30681
|
+
const commands = chunkOOBBI4DH_js.useChartFormatContext();
|
|
30682
30682
|
const ref = React109.useRef(null);
|
|
30683
30683
|
const chart = commands?.chart;
|
|
30684
30684
|
const chartData = chart?.type === "chart" ? chart.chartData : void 0;
|
|
@@ -30751,7 +30751,7 @@ function MobileDismissSheet({
|
|
|
30751
30751
|
children
|
|
30752
30752
|
}) {
|
|
30753
30753
|
const { t } = chunk5KFSMXI4_js.useTranslation();
|
|
30754
|
-
const { dragY, handlers } =
|
|
30754
|
+
const { dragY, handlers } = chunkOOBBI4DH_js.useSheetDismissDrag(onClose);
|
|
30755
30755
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
30756
30756
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
30757
30757
|
"button",
|
|
@@ -31495,7 +31495,7 @@ function ViewerMainContent(props) {
|
|
|
31495
31495
|
);
|
|
31496
31496
|
const layoutGalleryAnchorRef = React109.useRef(null);
|
|
31497
31497
|
const layoutGalleryPreviews = useLayoutPreviews(loadLayoutPreviews, layoutGalleryAnchor !== null);
|
|
31498
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31498
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkOOBBI4DH_js.ChartPartSelectionProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-pptx-chrome": "body", className: "relative z-10 flex flex-1 min-h-0", children: [
|
|
31499
31499
|
showSlidesPane && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
31500
31500
|
slidesPaneRenderer ? (
|
|
31501
31501
|
// The rail's slot (width, collapse, resize handle) stays the viewer's.
|
|
@@ -32000,7 +32000,7 @@ function MobileChromeOverlay(props) {
|
|
|
32000
32000
|
slideSectionGroups,
|
|
32001
32001
|
canEdit,
|
|
32002
32002
|
commentCount
|
|
32003
|
-
} = props, { keyboardInset, isKeyboardOpen } =
|
|
32003
|
+
} = props, { keyboardInset, isKeyboardOpen } = chunkOOBBI4DH_js.useKeyboardInsets(), activeSheet = s.isMobileInsertOpen ? "insert" : s.isSlidesPaneOpen ? "slides" : s.isInspectorPaneOpen ? s.sidebarPanelMode === "comments" ? "comments" : "inspector" : !s.isSlideNotesCollapsed ? "notes" : null, closeAllSheets = () => {
|
|
32004
32004
|
s.setIsSlidesPaneOpen(false);
|
|
32005
32005
|
s.setIsMobileInsertOpen(false);
|
|
32006
32006
|
s.setIsInspectorPaneOpen(false);
|
|
@@ -32477,7 +32477,7 @@ async function exportAiChatLogs(options) {
|
|
|
32477
32477
|
chats,
|
|
32478
32478
|
{ format: options?.format, detailed: options?.detailed, now: options?.now },
|
|
32479
32479
|
(filename, content, mime) => {
|
|
32480
|
-
|
|
32480
|
+
chunkOOBBI4DH_js.downloadBlob(new Blob([content], { type: mime }), filename);
|
|
32481
32481
|
}
|
|
32482
32482
|
);
|
|
32483
32483
|
}
|
|
@@ -32830,7 +32830,7 @@ function ViewerOptionsProvider({
|
|
|
32830
32830
|
store,
|
|
32831
32831
|
children
|
|
32832
32832
|
}) {
|
|
32833
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32833
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkOOBBI4DH_js.ViewerOptionsStoreContext.Provider, { value: store, children: /* @__PURE__ */ jsxRuntime.jsx(chunkOOBBI4DH_js.ViewerOptionsContext.Provider, { value: options, children }) });
|
|
32834
32834
|
}
|
|
32835
32835
|
function useAiBridge(input) {
|
|
32836
32836
|
const ref = React109.useRef(input);
|
|
@@ -32911,7 +32911,7 @@ function useAiPanelController(input) {
|
|
|
32911
32911
|
getSelectedElement: () => inputRef.current.selectedElement
|
|
32912
32912
|
})
|
|
32913
32913
|
);
|
|
32914
|
-
const state =
|
|
32914
|
+
const state = chunkOOBBI4DH_js.useController(controller);
|
|
32915
32915
|
React109.useEffect(() => () => controller.dispose(), [controller]);
|
|
32916
32916
|
const liveFocusTargets = React109.useMemo(
|
|
32917
32917
|
() => host.computeFocusTargets({ activeSlideIndex, selectedElementIds, selectedElementId }),
|
|
@@ -33164,7 +33164,7 @@ function useMasterViewCrud(input) {
|
|
|
33164
33164
|
if (id === "renameLayout" || id === "renameMaster") {
|
|
33165
33165
|
const master = slideMasters[target.masterIndex];
|
|
33166
33166
|
const current = id === "renameLayout" ? master?.layouts?.[target.layoutIndex ?? -1]?.name ?? "" : master?.name ?? "";
|
|
33167
|
-
const next =
|
|
33167
|
+
const next = chunkOOBBI4DH_js.safePrompt(t("pptx.masterView.renamePrompt"), current)?.trim();
|
|
33168
33168
|
if (!next) {
|
|
33169
33169
|
return;
|
|
33170
33170
|
}
|
|
@@ -33756,7 +33756,7 @@ var PowerPointViewerBody = /* @__PURE__ */ React109.forwardRef(
|
|
|
33756
33756
|
},
|
|
33757
33757
|
[storage]
|
|
33758
33758
|
);
|
|
33759
|
-
const { optionsStore, options: viewerOptions } =
|
|
33759
|
+
const { optionsStore, options: viewerOptions } = chunkOOBBI4DH_js.useViewerOptions();
|
|
33760
33760
|
const custom = useViewerCustomization(
|
|
33761
33761
|
customization,
|
|
33762
33762
|
legacyHiddenActions,
|
|
@@ -33775,8 +33775,8 @@ var PowerPointViewerBody = /* @__PURE__ */ React109.forwardRef(
|
|
|
33775
33775
|
const handleEnableEditing = React109.useCallback(() => {
|
|
33776
33776
|
setProtectedViewOverridden(true);
|
|
33777
33777
|
}, []);
|
|
33778
|
-
const readOnlyRec =
|
|
33779
|
-
const compatToastsState =
|
|
33778
|
+
const readOnlyRec = chunkOOBBI4DH_js.useReadOnlyRecommendationState(content);
|
|
33779
|
+
const compatToastsState = chunkOOBBI4DH_js.useCompatibilityToastsState();
|
|
33780
33780
|
const [notesBarHeight, setNotesBarHeight] = React109.useState(0);
|
|
33781
33781
|
const runProgramNoticesState = useRunProgramNoticesState();
|
|
33782
33782
|
const [collaborationReadOnly, setCollaborationReadOnly] = React109.useState(Boolean(collaboration));
|
|
@@ -33799,8 +33799,8 @@ var PowerPointViewerBody = /* @__PURE__ */ React109.forwardRef(
|
|
|
33799
33799
|
filePath
|
|
33800
33800
|
});
|
|
33801
33801
|
const [isShareDialogOpen, setIsShareDialogOpen] = React109.useState(false);
|
|
33802
|
-
const { reducedMotion, toggleReducedMotion } =
|
|
33803
|
-
const state =
|
|
33802
|
+
const { reducedMotion, toggleReducedMotion } = chunkOOBBI4DH_js.useReducedMotion();
|
|
33803
|
+
const state = chunkOOBBI4DH_js.useViewerState({
|
|
33804
33804
|
content,
|
|
33805
33805
|
canEdit,
|
|
33806
33806
|
inspectorInitiallyOpen: props.inspectorInitiallyOpen
|
|
@@ -33927,16 +33927,16 @@ var PowerPointViewerBody = /* @__PURE__ */ React109.forwardRef(
|
|
|
33927
33927
|
}
|
|
33928
33928
|
}, [settings, optionsStore]);
|
|
33929
33929
|
const handleClearOptionsCache = useAutosaveCacheMaintenance(viewerOptions, storage);
|
|
33930
|
-
const mobile =
|
|
33930
|
+
const mobile = chunkOOBBI4DH_js.useIsMobile();
|
|
33931
33931
|
const { isMobile, isTouchDevice, isVirtualKeyboardOpen } = mobile;
|
|
33932
|
-
const resizablePanels =
|
|
33932
|
+
const resizablePanels = chunkOOBBI4DH_js.useResizablePanels();
|
|
33933
33933
|
const {
|
|
33934
33934
|
gridSpacingPx,
|
|
33935
33935
|
visibleSlideIndexes,
|
|
33936
33936
|
slideSectionGroups,
|
|
33937
33937
|
masterPseudoSlide,
|
|
33938
33938
|
authoredRange
|
|
33939
|
-
} =
|
|
33939
|
+
} = chunkOOBBI4DH_js.useDerivedSlideState({
|
|
33940
33940
|
slides,
|
|
33941
33941
|
sections: state.sections,
|
|
33942
33942
|
customShows: state.customShows,
|
|
@@ -33961,7 +33961,7 @@ var PowerPointViewerBody = /* @__PURE__ */ React109.forwardRef(
|
|
|
33961
33961
|
state.cropSessionRef
|
|
33962
33962
|
]
|
|
33963
33963
|
);
|
|
33964
|
-
const zoom =
|
|
33964
|
+
const zoom = chunkOOBBI4DH_js.useZoomViewport({
|
|
33965
33965
|
canvasSize,
|
|
33966
33966
|
selectedElements: state.selectedElements,
|
|
33967
33967
|
fitPadding: props.fitPadding,
|
|
@@ -33977,7 +33977,7 @@ var PowerPointViewerBody = /* @__PURE__ */ React109.forwardRef(
|
|
|
33977
33977
|
onChangeCallback.current?.();
|
|
33978
33978
|
}, [setIsDirty]);
|
|
33979
33979
|
const restoreHistoryThemeRef = React109.useRef(void 0);
|
|
33980
|
-
const history =
|
|
33980
|
+
const history = chunkOOBBI4DH_js.useEditorHistory({
|
|
33981
33981
|
slides,
|
|
33982
33982
|
canvasSize,
|
|
33983
33983
|
activeSlideIndex,
|
|
@@ -34006,7 +34006,7 @@ var PowerPointViewerBody = /* @__PURE__ */ React109.forwardRef(
|
|
|
34006
34006
|
setEditTemplateMode: state.setEditTemplateMode,
|
|
34007
34007
|
setHeaderFooter: state.setHeaderFooter
|
|
34008
34008
|
});
|
|
34009
|
-
const { presentation, annotations, actionSoundHandlerRef, setExitModeHandler } =
|
|
34009
|
+
const { presentation, annotations, actionSoundHandlerRef, setExitModeHandler } = chunkOOBBI4DH_js.usePresentationSetup({
|
|
34010
34010
|
mode,
|
|
34011
34011
|
slides,
|
|
34012
34012
|
visibleSlideIndexes,
|
|
@@ -34081,7 +34081,7 @@ ${url}`)
|
|
|
34081
34081
|
loading,
|
|
34082
34082
|
error
|
|
34083
34083
|
]);
|
|
34084
|
-
|
|
34084
|
+
chunkOOBBI4DH_js.useTouchGestures({
|
|
34085
34085
|
targetRef: zoom.canvasViewportRef,
|
|
34086
34086
|
currentScale: zoom.scale,
|
|
34087
34087
|
callbacks: {
|
|
@@ -34103,7 +34103,7 @@ ${url}`)
|
|
|
34103
34103
|
},
|
|
34104
34104
|
enabled: isTouchDevice
|
|
34105
34105
|
});
|
|
34106
|
-
const dialogs =
|
|
34106
|
+
const dialogs = chunkOOBBI4DH_js.useViewerDialogs({
|
|
34107
34107
|
mode,
|
|
34108
34108
|
slides,
|
|
34109
34109
|
activeSlide,
|
|
@@ -34130,7 +34130,7 @@ ${url}`)
|
|
|
34130
34130
|
history,
|
|
34131
34131
|
embeddedFontFamilies: state.embeddedFonts.map((font) => font.name)
|
|
34132
34132
|
});
|
|
34133
|
-
|
|
34133
|
+
chunkOOBBI4DH_js.useClearSelectionOnSlideChange(state, activeSlideIndex);
|
|
34134
34134
|
const zoomBeforePresentRef = React109.useRef(null);
|
|
34135
34135
|
React109.useEffect(() => {
|
|
34136
34136
|
if (mode !== "present") {
|
|
@@ -34148,7 +34148,7 @@ ${url}`)
|
|
|
34148
34148
|
zoom.handleZoomToFit();
|
|
34149
34149
|
zoom.canvasViewportRef.current?.scrollTo({ left: 0, top: 0 });
|
|
34150
34150
|
}, [mode]);
|
|
34151
|
-
const editorOps =
|
|
34151
|
+
const editorOps = chunkOOBBI4DH_js.useEditorOperations({
|
|
34152
34152
|
state,
|
|
34153
34153
|
history,
|
|
34154
34154
|
zoom,
|
|
@@ -34191,7 +34191,7 @@ ${url}`)
|
|
|
34191
34191
|
handlerRef,
|
|
34192
34192
|
viewerApi,
|
|
34193
34193
|
loadVersion
|
|
34194
|
-
} =
|
|
34194
|
+
} = chunkOOBBI4DH_js.useViewerIntegration({
|
|
34195
34195
|
transformCommittedText: (text, previous) => pptx.applyAutoCorrectToEdit(text, previous, viewerOptions.proofing),
|
|
34196
34196
|
state,
|
|
34197
34197
|
zoom,
|
|
@@ -34334,7 +34334,7 @@ ${url}`)
|
|
|
34334
34334
|
updateElementById: editorOps.ops.updateElementById
|
|
34335
34335
|
});
|
|
34336
34336
|
const ribbonScope = useRibbonScopeToken();
|
|
34337
|
-
const viewPreferencesSync =
|
|
34337
|
+
const viewPreferencesSync = chunkOOBBI4DH_js.useViewPreferencesSync({
|
|
34338
34338
|
loadVersion,
|
|
34339
34339
|
viewProperties: state.viewProperties,
|
|
34340
34340
|
setViewProperties: state.setViewProperties,
|
|
@@ -34376,7 +34376,7 @@ ${url}`)
|
|
|
34376
34376
|
},
|
|
34377
34377
|
[state]
|
|
34378
34378
|
);
|
|
34379
|
-
const layoutSwitching =
|
|
34379
|
+
const layoutSwitching = chunkOOBBI4DH_js.useLayoutSwitching({
|
|
34380
34380
|
handler: handlerRef.current,
|
|
34381
34381
|
slides,
|
|
34382
34382
|
activeSlideIndex,
|
|
@@ -34890,8 +34890,8 @@ ${url}`)
|
|
|
34890
34890
|
// Nothing previously provided it, so every one of those consumers was
|
|
34891
34891
|
// silently reading `DEFAULT_VIEWER_OPTIONS` forever, no matter what
|
|
34892
34892
|
// the user changed in the Options dialog.
|
|
34893
|
-
/* @__PURE__ */ jsxRuntime.jsx(ViewerOptionsProvider, { options: viewerOptions, store: optionsStore, children: /* @__PURE__ */ jsxRuntime.jsx(ViewerCustomizationContext.Provider, { value: customizationResolved, children: /* @__PURE__ */ jsxRuntime.jsx(ViewerStorageContext.Provider, { value: storage, children: /* @__PURE__ */ jsxRuntime.jsx(ViewerRegionBaseContext.Provider, { value: regionBase, children: /* @__PURE__ */ jsxRuntime.jsx(RibbonAddInsContext.Provider, { value: ribbonAddIns ?? NO_RIBBON_ADD_INS, children: /* @__PURE__ */ jsxRuntime.jsx(AccountAuthContext.Provider, { value: accountAuth, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
34894
|
-
|
|
34893
|
+
/* @__PURE__ */ jsxRuntime.jsx(ViewerOptionsProvider, { options: viewerOptions, store: optionsStore, children: /* @__PURE__ */ jsxRuntime.jsx(ViewerCustomizationContext.Provider, { value: customizationResolved, children: /* @__PURE__ */ jsxRuntime.jsx(ViewerStorageContext.Provider, { value: storage, children: /* @__PURE__ */ jsxRuntime.jsx(ViewerRegionBaseContext.Provider, { value: regionBase, children: /* @__PURE__ */ jsxRuntime.jsx(RibbonAddInsContext.Provider, { value: ribbonAddIns ?? NO_RIBBON_ADD_INS, children: /* @__PURE__ */ jsxRuntime.jsx(AccountAuthContext.Provider, { value: accountAuth, children: /* @__PURE__ */ jsxRuntime.jsx(chunkOOBBI4DH_js.Rendering3DFlagsContext.Provider, { value: effective3D, children: /* @__PURE__ */ jsxRuntime.jsx(ViewerThemeProvider, { theme: effectiveTheme, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
34894
|
+
chunkOOBBI4DH_js.CollaborationProvider,
|
|
34895
34895
|
{
|
|
34896
34896
|
config: collaboration,
|
|
34897
34897
|
canvasWidth: canvasSize.width,
|
|
@@ -34948,19 +34948,19 @@ ${url}`)
|
|
|
34948
34948
|
slideCount: slides.length
|
|
34949
34949
|
}
|
|
34950
34950
|
),
|
|
34951
|
-
/* @__PURE__ */ jsxRuntime.jsx(ShapeFormatContext.Provider, { value: shapeFormat, children: /* @__PURE__ */ jsxRuntime.jsx(RibbonGalleryCommandsContext.Provider, { value: ribbonGalleries, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
34951
|
+
/* @__PURE__ */ jsxRuntime.jsx(ShapeFormatContext.Provider, { value: shapeFormat, children: /* @__PURE__ */ jsxRuntime.jsx(RibbonGalleryCommandsContext.Provider, { value: ribbonGalleries, children: /* @__PURE__ */ jsxRuntime.jsx(chunkOOBBI4DH_js.ChartFormatContext.Provider, { value: chartFormat, children: viewerContent }) }) })
|
|
34952
34952
|
]
|
|
34953
34953
|
}
|
|
34954
34954
|
) }) }) }) }) }) }) }) })
|
|
34955
34955
|
);
|
|
34956
34956
|
}
|
|
34957
34957
|
);
|
|
34958
|
-
var PowerPointViewer2 = /* @__PURE__ */
|
|
34958
|
+
var PowerPointViewer2 = /* @__PURE__ */ chunkOOBBI4DH_js.withDisplayName(
|
|
34959
34959
|
PowerPointViewerComponent,
|
|
34960
34960
|
"PowerPointViewer"
|
|
34961
34961
|
);
|
|
34962
34962
|
function CollaborationStatusStrip() {
|
|
34963
|
-
const collab =
|
|
34963
|
+
const collab = chunkOOBBI4DH_js.useCollaboration();
|
|
34964
34964
|
if (!collab) {
|
|
34965
34965
|
return null;
|
|
34966
34966
|
}
|
|
@@ -34977,9 +34977,9 @@ function CollaborationStateReporter({
|
|
|
34977
34977
|
onChange,
|
|
34978
34978
|
onStatus
|
|
34979
34979
|
}) {
|
|
34980
|
-
const collab =
|
|
34980
|
+
const collab = chunkOOBBI4DH_js.useCollaboration();
|
|
34981
34981
|
useCollaborationStateReport(collab, onChange);
|
|
34982
|
-
|
|
34982
|
+
chunkOOBBI4DH_js.useReportOnChange(collab?.status ?? "disconnected", onStatus, "disconnected");
|
|
34983
34983
|
return null;
|
|
34984
34984
|
}
|
|
34985
34985
|
function CollaborationDocumentSync({
|
|
@@ -34994,8 +34994,8 @@ function CollaborationDocumentSync({
|
|
|
34994
34994
|
onReadOnlyChange,
|
|
34995
34995
|
history
|
|
34996
34996
|
}) {
|
|
34997
|
-
const collab =
|
|
34998
|
-
|
|
34997
|
+
const collab = chunkOOBBI4DH_js.useCollaboration();
|
|
34998
|
+
chunkOOBBI4DH_js.useCollaborationDocumentSync({
|
|
34999
34999
|
collaboration: collab,
|
|
35000
35000
|
history,
|
|
35001
35001
|
slides,
|
|
@@ -35015,14 +35015,14 @@ function CollaborationFollowLayer({
|
|
|
35015
35015
|
setActiveSlideIndex,
|
|
35016
35016
|
slideCount
|
|
35017
35017
|
}) {
|
|
35018
|
-
const collab =
|
|
35019
|
-
const { followedClientId, followUser } =
|
|
35018
|
+
const collab = chunkOOBBI4DH_js.useCollaboration();
|
|
35019
|
+
const { followedClientId, followUser } = chunkOOBBI4DH_js.useFollowMode({
|
|
35020
35020
|
collab,
|
|
35021
35021
|
activeSlideIndex,
|
|
35022
35022
|
setActiveSlideIndex,
|
|
35023
35023
|
slideCount
|
|
35024
35024
|
});
|
|
35025
|
-
|
|
35025
|
+
chunkOOBBI4DH_js.useBroadcastFollower({
|
|
35026
35026
|
collab,
|
|
35027
35027
|
activeSlideIndex,
|
|
35028
35028
|
setActiveSlideIndex,
|