pptx-react-viewer 4.59.0 → 4.61.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.
- package/CHANGELOG.md +15 -0
- package/dist/{chunk-6A7RIFYO.mjs → chunk-FYQVCABH.mjs} +23 -4
- package/dist/chunk-FYQVCABH.mjs.br +0 -0
- package/dist/chunk-FYQVCABH.mjs.gz +0 -0
- package/dist/{chunk-KPBL5JMS.mjs → chunk-GQYFWOJ6.mjs} +471 -150
- package/dist/chunk-GQYFWOJ6.mjs.br +0 -0
- package/dist/chunk-GQYFWOJ6.mjs.gz +0 -0
- package/dist/{chunk-NT5X2MHW.js → chunk-LFXA7TIM.js} +1538 -1217
- package/dist/chunk-LFXA7TIM.js.br +0 -0
- package/dist/chunk-LFXA7TIM.js.gz +0 -0
- package/dist/{chunk-2W6VOPDR.js → chunk-TXVGYIO6.js} +22 -3
- package/dist/chunk-TXVGYIO6.js.br +0 -0
- package/dist/chunk-TXVGYIO6.js.gz +0 -0
- package/dist/i18n/de.cjs +8 -0
- package/dist/i18n/de.cjs.br +0 -0
- package/dist/i18n/de.cjs.gz +0 -0
- package/dist/i18n/de.mjs +8 -0
- package/dist/i18n/de.mjs.br +0 -0
- package/dist/i18n/de.mjs.gz +0 -0
- package/dist/i18n/es.cjs +8 -0
- package/dist/i18n/es.cjs.br +0 -0
- package/dist/i18n/es.cjs.gz +0 -0
- package/dist/i18n/es.mjs +8 -0
- package/dist/i18n/es.mjs.br +0 -0
- package/dist/i18n/es.mjs.gz +0 -0
- package/dist/i18n/fr.cjs +8 -0
- package/dist/i18n/fr.cjs.br +0 -0
- package/dist/i18n/fr.cjs.gz +0 -0
- package/dist/i18n/fr.mjs +8 -0
- package/dist/i18n/fr.mjs.br +0 -0
- package/dist/i18n/fr.mjs.gz +0 -0
- package/dist/i18n/zh-CN.cjs +8 -0
- package/dist/i18n/zh-CN.cjs.br +0 -0
- package/dist/i18n/zh-CN.cjs.gz +0 -0
- package/dist/i18n/zh-CN.mjs +8 -0
- package/dist/i18n/zh-CN.mjs.br +0 -0
- package/dist/i18n/zh-CN.mjs.gz +0 -0
- package/dist/index.d.ts +2 -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.d.ts +15 -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/pptx-viewer.css +1 -1
- package/dist/pptx-viewer.css.br +0 -0
- package/dist/pptx-viewer.css.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 +3 -3
- package/dist/chunk-2W6VOPDR.js.br +0 -0
- package/dist/chunk-2W6VOPDR.js.gz +0 -0
- package/dist/chunk-6A7RIFYO.mjs.br +0 -0
- package/dist/chunk-6A7RIFYO.mjs.gz +0 -0
- package/dist/chunk-KPBL5JMS.mjs.br +0 -0
- package/dist/chunk-KPBL5JMS.mjs.gz +0 -0
- package/dist/chunk-NT5X2MHW.js.br +0 -0
- package/dist/chunk-NT5X2MHW.js.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -8637,12 +8637,23 @@ function useDialogCustomShows(input) {
|
|
|
8637
8637
|
activeCustomShowId,
|
|
8638
8638
|
setCustomShows,
|
|
8639
8639
|
setActiveCustomShowId,
|
|
8640
|
-
history
|
|
8640
|
+
history,
|
|
8641
|
+
setSlides
|
|
8641
8642
|
} = input;
|
|
8643
|
+
const handleCommitCustomShows = (shows, clearedSlides) => {
|
|
8644
|
+
setCustomShows(shows);
|
|
8645
|
+
if (clearedSlides) {
|
|
8646
|
+
setSlides?.(clearedSlides);
|
|
8647
|
+
}
|
|
8648
|
+
setActiveCustomShowId(
|
|
8649
|
+
(current) => current !== null && shows.some((show) => show.id === current) ? current : null
|
|
8650
|
+
);
|
|
8651
|
+
history.markDirty();
|
|
8652
|
+
};
|
|
8642
8653
|
const handleCreateCustomShow = () => {
|
|
8643
8654
|
const name = safePrompt("Custom show name", "Custom Show");
|
|
8644
8655
|
const safeName = name?.trim() || `Custom Show ${customShows.length + 1}`;
|
|
8645
|
-
const id =
|
|
8656
|
+
const id = pptx.generateCustomShowId(customShows);
|
|
8646
8657
|
const initialSlideRIds = activeSlide?.rId && activeSlide.rId.length > 0 ? [activeSlide.rId] : [];
|
|
8647
8658
|
setCustomShows((prev) => [...prev, { id, name: safeName, slideRIds: initialSlideRIds }]);
|
|
8648
8659
|
setActiveCustomShowId(id);
|
|
@@ -8707,6 +8718,7 @@ function useDialogCustomShows(input) {
|
|
|
8707
8718
|
return show ? show.slideRIds.includes(activeSlide.rId) : false;
|
|
8708
8719
|
}, [activeCustomShowId, activeSlide?.rId, customShows]);
|
|
8709
8720
|
return {
|
|
8721
|
+
handleCommitCustomShows,
|
|
8710
8722
|
handleCreateCustomShow,
|
|
8711
8723
|
handleRenameActiveCustomShow,
|
|
8712
8724
|
handleDeleteActiveCustomShow,
|
|
@@ -8729,6 +8741,7 @@ function useViewerDialogs(input) {
|
|
|
8729
8741
|
customShows,
|
|
8730
8742
|
activeCustomShowId,
|
|
8731
8743
|
setCustomShows,
|
|
8744
|
+
setSlides,
|
|
8732
8745
|
setActiveCustomShowId,
|
|
8733
8746
|
setGuides,
|
|
8734
8747
|
setPresentationProperties,
|
|
@@ -8757,6 +8770,7 @@ function useViewerDialogs(input) {
|
|
|
8757
8770
|
const [isSignatureStrippedDialogOpen, setIsSignatureStrippedDialogOpen] = React17.useState(false);
|
|
8758
8771
|
const signatureStripAcknowledgedRef = React17.useRef(false);
|
|
8759
8772
|
const [isSetUpSlideShowOpen, setIsSetUpSlideShowOpen] = React17.useState(false);
|
|
8773
|
+
const [isCustomShowsOpen, setIsCustomShowsOpen] = React17.useState(false);
|
|
8760
8774
|
const [isBroadcastDialogOpen, setIsBroadcastDialogOpen] = React17.useState(false);
|
|
8761
8775
|
const [isPasswordProtected, setIsPasswordProtected] = React17.useState(false);
|
|
8762
8776
|
const [presentationPassword, setPresentationPassword] = React17.useState(null);
|
|
@@ -8845,7 +8859,8 @@ function useViewerDialogs(input) {
|
|
|
8845
8859
|
activeCustomShowId,
|
|
8846
8860
|
setCustomShows,
|
|
8847
8861
|
setActiveCustomShowId,
|
|
8848
|
-
history
|
|
8862
|
+
history,
|
|
8863
|
+
setSlides
|
|
8849
8864
|
});
|
|
8850
8865
|
const handleSaveSlideShowSettings = React17.useCallback(
|
|
8851
8866
|
(props) => {
|
|
@@ -8910,6 +8925,8 @@ function useViewerDialogs(input) {
|
|
|
8910
8925
|
setIsSignatureStrippedDialogOpen,
|
|
8911
8926
|
isSetUpSlideShowOpen,
|
|
8912
8927
|
setIsSetUpSlideShowOpen,
|
|
8928
|
+
isCustomShowsOpen,
|
|
8929
|
+
setIsCustomShowsOpen,
|
|
8913
8930
|
isBroadcastDialogOpen,
|
|
8914
8931
|
setIsBroadcastDialogOpen,
|
|
8915
8932
|
isPasswordProtected,
|
|
@@ -12399,6 +12416,7 @@ function buildToolbarProps(input) {
|
|
|
12399
12416
|
eyedropperActive: s.eyedropperActive,
|
|
12400
12417
|
onToggleEyedropper: () => s.setEyedropperActive((p) => !p),
|
|
12401
12418
|
onOpenSetUpSlideShow: () => dialogs.setIsSetUpSlideShowOpen(true),
|
|
12419
|
+
onOpenCustomShows: () => dialogs.setIsCustomShowsOpen(true),
|
|
12402
12420
|
// PowerPoint's Hide Slide: skip the active slide during the show while
|
|
12403
12421
|
// leaving it in the deck, the rail and the sorter.
|
|
12404
12422
|
onToggleHideSlide: () => slideOps.handleToggleHideSlides([activeSlideIndex]),
|
|
@@ -12966,6 +12984,7 @@ function useViewerBuildingBlocksState(input) {
|
|
|
12966
12984
|
activeCustomShowId: state.activeCustomShowId,
|
|
12967
12985
|
setCustomShows: state.setCustomShows,
|
|
12968
12986
|
setActiveCustomShowId: state.setActiveCustomShowId,
|
|
12987
|
+
setSlides: state.setSlides,
|
|
12969
12988
|
setGuides: state.setGuides,
|
|
12970
12989
|
setPresentationProperties: state.setPresentationProperties,
|
|
12971
12990
|
setAccessibilityIssues: state.setAccessibilityIssues,
|
|
Binary file
|
|
Binary file
|
package/dist/i18n/de.cjs
CHANGED
|
@@ -4519,6 +4519,14 @@ var translations19 = {
|
|
|
4519
4519
|
"pptx.presentation.liveCaptions": "Live-Untertitel",
|
|
4520
4520
|
"pptx.customShows.none": "Keine",
|
|
4521
4521
|
"pptx.customShows.noSlidesYet": "Diese Bildschirmpr\xE4sentation enth\xE4lt noch keine Folien.",
|
|
4522
|
+
"pptx.customShows.copy": "Kopieren",
|
|
4523
|
+
"pptx.customShows.remove": "Entfernen",
|
|
4524
|
+
"pptx.customShows.add": "Hinzuf\xFCgen",
|
|
4525
|
+
"pptx.customShows.moveUp": "Nach oben",
|
|
4526
|
+
"pptx.customShows.moveDown": "Nach unten",
|
|
4527
|
+
"pptx.customShows.slidesInPresentation": "Folien in der Pr\xE4sentation",
|
|
4528
|
+
"pptx.customShows.newDefaultName": "Benutzerdefinierte Pr\xE4sentation",
|
|
4529
|
+
"pptx.customShows.showButton": "Anzeigen",
|
|
4522
4530
|
"pptx.customShows.renameNameLabel": "Pr\xE4sentationsname",
|
|
4523
4531
|
"pptx.customShows.renameShow": "Bildschirmpr\xE4sentation umbenennen",
|
|
4524
4532
|
"pptx.customShows.slidesInShow": "Folien in der Bildschirmpr\xE4sentation",
|
package/dist/i18n/de.cjs.br
CHANGED
|
Binary file
|
package/dist/i18n/de.cjs.gz
CHANGED
|
Binary file
|
package/dist/i18n/de.mjs
CHANGED
|
@@ -4493,6 +4493,14 @@ var translations19 = {
|
|
|
4493
4493
|
"pptx.presentation.liveCaptions": "Live-Untertitel",
|
|
4494
4494
|
"pptx.customShows.none": "Keine",
|
|
4495
4495
|
"pptx.customShows.noSlidesYet": "Diese Bildschirmpr\xE4sentation enth\xE4lt noch keine Folien.",
|
|
4496
|
+
"pptx.customShows.copy": "Kopieren",
|
|
4497
|
+
"pptx.customShows.remove": "Entfernen",
|
|
4498
|
+
"pptx.customShows.add": "Hinzuf\xFCgen",
|
|
4499
|
+
"pptx.customShows.moveUp": "Nach oben",
|
|
4500
|
+
"pptx.customShows.moveDown": "Nach unten",
|
|
4501
|
+
"pptx.customShows.slidesInPresentation": "Folien in der Pr\xE4sentation",
|
|
4502
|
+
"pptx.customShows.newDefaultName": "Benutzerdefinierte Pr\xE4sentation",
|
|
4503
|
+
"pptx.customShows.showButton": "Anzeigen",
|
|
4496
4504
|
"pptx.customShows.renameNameLabel": "Pr\xE4sentationsname",
|
|
4497
4505
|
"pptx.customShows.renameShow": "Bildschirmpr\xE4sentation umbenennen",
|
|
4498
4506
|
"pptx.customShows.slidesInShow": "Folien in der Bildschirmpr\xE4sentation",
|
package/dist/i18n/de.mjs.br
CHANGED
|
Binary file
|
package/dist/i18n/de.mjs.gz
CHANGED
|
Binary file
|
package/dist/i18n/es.cjs
CHANGED
|
@@ -4519,6 +4519,14 @@ var translations19 = {
|
|
|
4519
4519
|
"pptx.presentation.liveCaptions": "Subt\xEDtulos en vivo",
|
|
4520
4520
|
"pptx.customShows.none": "Ninguno",
|
|
4521
4521
|
"pptx.customShows.noSlidesYet": "A\xFAn no hay diapositivas en esta presentaci\xF3n.",
|
|
4522
|
+
"pptx.customShows.copy": "Copiar",
|
|
4523
|
+
"pptx.customShows.remove": "Quitar",
|
|
4524
|
+
"pptx.customShows.add": "Agregar",
|
|
4525
|
+
"pptx.customShows.moveUp": "Subir",
|
|
4526
|
+
"pptx.customShows.moveDown": "Bajar",
|
|
4527
|
+
"pptx.customShows.slidesInPresentation": "Diapositivas de la presentaci\xF3n",
|
|
4528
|
+
"pptx.customShows.newDefaultName": "Presentaci\xF3n personalizada",
|
|
4529
|
+
"pptx.customShows.showButton": "Mostrar",
|
|
4522
4530
|
"pptx.customShows.renameNameLabel": "Nombre de la presentaci\xF3n",
|
|
4523
4531
|
"pptx.customShows.renameShow": "Cambiar nombre de la presentaci\xF3n",
|
|
4524
4532
|
"pptx.customShows.slidesInShow": "Diapositivas de la presentaci\xF3n",
|
package/dist/i18n/es.cjs.br
CHANGED
|
Binary file
|
package/dist/i18n/es.cjs.gz
CHANGED
|
Binary file
|
package/dist/i18n/es.mjs
CHANGED
|
@@ -4493,6 +4493,14 @@ var translations19 = {
|
|
|
4493
4493
|
"pptx.presentation.liveCaptions": "Subt\xEDtulos en vivo",
|
|
4494
4494
|
"pptx.customShows.none": "Ninguno",
|
|
4495
4495
|
"pptx.customShows.noSlidesYet": "A\xFAn no hay diapositivas en esta presentaci\xF3n.",
|
|
4496
|
+
"pptx.customShows.copy": "Copiar",
|
|
4497
|
+
"pptx.customShows.remove": "Quitar",
|
|
4498
|
+
"pptx.customShows.add": "Agregar",
|
|
4499
|
+
"pptx.customShows.moveUp": "Subir",
|
|
4500
|
+
"pptx.customShows.moveDown": "Bajar",
|
|
4501
|
+
"pptx.customShows.slidesInPresentation": "Diapositivas de la presentaci\xF3n",
|
|
4502
|
+
"pptx.customShows.newDefaultName": "Presentaci\xF3n personalizada",
|
|
4503
|
+
"pptx.customShows.showButton": "Mostrar",
|
|
4496
4504
|
"pptx.customShows.renameNameLabel": "Nombre de la presentaci\xF3n",
|
|
4497
4505
|
"pptx.customShows.renameShow": "Cambiar nombre de la presentaci\xF3n",
|
|
4498
4506
|
"pptx.customShows.slidesInShow": "Diapositivas de la presentaci\xF3n",
|
package/dist/i18n/es.mjs.br
CHANGED
|
Binary file
|
package/dist/i18n/es.mjs.gz
CHANGED
|
Binary file
|
package/dist/i18n/fr.cjs
CHANGED
|
@@ -4519,6 +4519,14 @@ var translations19 = {
|
|
|
4519
4519
|
"pptx.presentation.liveCaptions": "Sous-titres en direct",
|
|
4520
4520
|
"pptx.customShows.none": "Aucun",
|
|
4521
4521
|
"pptx.customShows.noSlidesYet": "Aucune diapositive dans ce diaporama pour l'instant.",
|
|
4522
|
+
"pptx.customShows.copy": "Copier",
|
|
4523
|
+
"pptx.customShows.remove": "Supprimer",
|
|
4524
|
+
"pptx.customShows.add": "Ajouter",
|
|
4525
|
+
"pptx.customShows.moveUp": "Monter",
|
|
4526
|
+
"pptx.customShows.moveDown": "Descendre",
|
|
4527
|
+
"pptx.customShows.slidesInPresentation": "Diapositives de la pr\xE9sentation",
|
|
4528
|
+
"pptx.customShows.newDefaultName": "Diaporama personnalis\xE9",
|
|
4529
|
+
"pptx.customShows.showButton": "Afficher",
|
|
4522
4530
|
"pptx.customShows.renameNameLabel": "Nom du diaporama",
|
|
4523
4531
|
"pptx.customShows.renameShow": "Renommer le diaporama",
|
|
4524
4532
|
"pptx.customShows.slidesInShow": "Diapositives du diaporama",
|
package/dist/i18n/fr.cjs.br
CHANGED
|
Binary file
|
package/dist/i18n/fr.cjs.gz
CHANGED
|
Binary file
|
package/dist/i18n/fr.mjs
CHANGED
|
@@ -4493,6 +4493,14 @@ var translations19 = {
|
|
|
4493
4493
|
"pptx.presentation.liveCaptions": "Sous-titres en direct",
|
|
4494
4494
|
"pptx.customShows.none": "Aucun",
|
|
4495
4495
|
"pptx.customShows.noSlidesYet": "Aucune diapositive dans ce diaporama pour l'instant.",
|
|
4496
|
+
"pptx.customShows.copy": "Copier",
|
|
4497
|
+
"pptx.customShows.remove": "Supprimer",
|
|
4498
|
+
"pptx.customShows.add": "Ajouter",
|
|
4499
|
+
"pptx.customShows.moveUp": "Monter",
|
|
4500
|
+
"pptx.customShows.moveDown": "Descendre",
|
|
4501
|
+
"pptx.customShows.slidesInPresentation": "Diapositives de la pr\xE9sentation",
|
|
4502
|
+
"pptx.customShows.newDefaultName": "Diaporama personnalis\xE9",
|
|
4503
|
+
"pptx.customShows.showButton": "Afficher",
|
|
4496
4504
|
"pptx.customShows.renameNameLabel": "Nom du diaporama",
|
|
4497
4505
|
"pptx.customShows.renameShow": "Renommer le diaporama",
|
|
4498
4506
|
"pptx.customShows.slidesInShow": "Diapositives du diaporama",
|
package/dist/i18n/fr.mjs.br
CHANGED
|
Binary file
|
package/dist/i18n/fr.mjs.gz
CHANGED
|
Binary file
|
package/dist/i18n/zh-CN.cjs
CHANGED
|
@@ -4540,6 +4540,14 @@ var translations25 = {
|
|
|
4540
4540
|
"pptx.presentation.liveCaptions": "\u5B9E\u65F6\u5B57\u5E55",
|
|
4541
4541
|
"pptx.customShows.none": "\u65E0",
|
|
4542
4542
|
"pptx.customShows.noSlidesYet": "\u8BE5\u653E\u6620\u8FD8\u6CA1\u6709\u5E7B\u706F\u7247\u3002",
|
|
4543
|
+
"pptx.customShows.copy": "\u590D\u5236",
|
|
4544
|
+
"pptx.customShows.remove": "\u5220\u9664",
|
|
4545
|
+
"pptx.customShows.add": "\u6DFB\u52A0",
|
|
4546
|
+
"pptx.customShows.moveUp": "\u4E0A\u79FB",
|
|
4547
|
+
"pptx.customShows.moveDown": "\u4E0B\u79FB",
|
|
4548
|
+
"pptx.customShows.slidesInPresentation": "\u6F14\u793A\u6587\u7A3F\u4E2D\u7684\u5E7B\u706F\u7247",
|
|
4549
|
+
"pptx.customShows.newDefaultName": "\u81EA\u5B9A\u4E49\u653E\u6620",
|
|
4550
|
+
"pptx.customShows.showButton": "\u653E\u6620",
|
|
4543
4551
|
"pptx.customShows.renameNameLabel": "\u653E\u6620\u540D\u79F0",
|
|
4544
4552
|
"pptx.customShows.renameShow": "\u91CD\u547D\u540D\u653E\u6620",
|
|
4545
4553
|
"pptx.customShows.slidesInShow": "\u653E\u6620\u4E2D\u7684\u5E7B\u706F\u7247",
|
package/dist/i18n/zh-CN.cjs.br
CHANGED
|
Binary file
|
package/dist/i18n/zh-CN.cjs.gz
CHANGED
|
Binary file
|
package/dist/i18n/zh-CN.mjs
CHANGED
|
@@ -4514,6 +4514,14 @@ var translations25 = {
|
|
|
4514
4514
|
"pptx.presentation.liveCaptions": "\u5B9E\u65F6\u5B57\u5E55",
|
|
4515
4515
|
"pptx.customShows.none": "\u65E0",
|
|
4516
4516
|
"pptx.customShows.noSlidesYet": "\u8BE5\u653E\u6620\u8FD8\u6CA1\u6709\u5E7B\u706F\u7247\u3002",
|
|
4517
|
+
"pptx.customShows.copy": "\u590D\u5236",
|
|
4518
|
+
"pptx.customShows.remove": "\u5220\u9664",
|
|
4519
|
+
"pptx.customShows.add": "\u6DFB\u52A0",
|
|
4520
|
+
"pptx.customShows.moveUp": "\u4E0A\u79FB",
|
|
4521
|
+
"pptx.customShows.moveDown": "\u4E0B\u79FB",
|
|
4522
|
+
"pptx.customShows.slidesInPresentation": "\u6F14\u793A\u6587\u7A3F\u4E2D\u7684\u5E7B\u706F\u7247",
|
|
4523
|
+
"pptx.customShows.newDefaultName": "\u81EA\u5B9A\u4E49\u653E\u6620",
|
|
4524
|
+
"pptx.customShows.showButton": "\u653E\u6620",
|
|
4517
4525
|
"pptx.customShows.renameNameLabel": "\u653E\u6620\u540D\u79F0",
|
|
4518
4526
|
"pptx.customShows.renameShow": "\u91CD\u547D\u540D\u653E\u6620",
|
|
4519
4527
|
"pptx.customShows.slidesInShow": "\u653E\u6620\u4E2D\u7684\u5E7B\u706F\u7247",
|
package/dist/i18n/zh-CN.mjs.br
CHANGED
|
Binary file
|
package/dist/i18n/zh-CN.mjs.gz
CHANGED
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -868,6 +868,8 @@ interface ToolbarProps {
|
|
|
868
868
|
eyedropperActive?: boolean;
|
|
869
869
|
onToggleEyedropper?: () => void;
|
|
870
870
|
onOpenSetUpSlideShow?: () => void;
|
|
871
|
+
/** Slide Show > Custom Slide Show: open the Custom Shows dialog. */
|
|
872
|
+
onOpenCustomShows?: () => void;
|
|
871
873
|
/** PowerPoint's Hide Slide toggle for the active slide (Slide Show tab). */
|
|
872
874
|
onToggleHideSlide?: () => void;
|
|
873
875
|
/** Whether the active slide is hidden, for Hide Slide's pressed state. */
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLFXA7TIM_js = require('./chunk-LFXA7TIM.js');
|
|
4
4
|
require('./chunk-F6WCYCHV.js');
|
|
5
|
-
var
|
|
5
|
+
var chunkTXVGYIO6_js = require('./chunk-TXVGYIO6.js');
|
|
6
6
|
var chunk5KFSMXI4_js = require('./chunk-5KFSMXI4.js');
|
|
7
7
|
require('./chunk-PIRHQTI4.js');
|
|
8
8
|
var pptx = require('ooxml-ui/pptx');
|
|
@@ -12,91 +12,91 @@ var i18n = require('ooxml-ui/pptx/i18n');
|
|
|
12
12
|
|
|
13
13
|
Object.defineProperty(exports, "PowerPointViewer", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkLFXA7TIM_js.PowerPointViewer; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "PptxI18nProvider", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkLFXA7TIM_js.PptxI18nProvider; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "SlideCanvas", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkLFXA7TIM_js.SlideCanvas; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "SlideTemplateGalleryDialog", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkLFXA7TIM_js.SlideTemplateGalleryDialog; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "SlideTemplatePreview", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkLFXA7TIM_js.SlideTemplatePreview; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "SlidesPane", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkLFXA7TIM_js.SlidesPaneSidebar; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "THEME_CATALOG", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkLFXA7TIM_js.THEME_CATALOG; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "Toolbar", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkLFXA7TIM_js.Toolbar; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "ViewerThemeProvider", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkLFXA7TIM_js.ViewerThemeProvider; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "defaultCssVars", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkLFXA7TIM_js.defaultCssVars; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "defaultRadius", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkLFXA7TIM_js.defaultRadius; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "defaultThemeColors", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkLFXA7TIM_js.defaultThemeColors; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "resolveThemeCatalogEntry", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkLFXA7TIM_js.resolveThemeCatalogEntry; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "themeToCssVars", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkLFXA7TIM_js.themeToCssVars; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "useViewerTheme", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkLFXA7TIM_js.useViewerTheme; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "vermilionDarkColors", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkLFXA7TIM_js.vermilionDarkColors; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "vermilionDarkTheme", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkLFXA7TIM_js.vermilionDarkTheme; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "vermilionLightColors", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkLFXA7TIM_js.vermilionLightColors; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "vermilionLightTheme", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkLFXA7TIM_js.vermilionLightTheme; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "vermilionRadius", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkLFXA7TIM_js.vermilionRadius; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "renderToCanvas", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkTXVGYIO6_js.renderToCanvas; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "useViewerBuildingBlocks", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkTXVGYIO6_js.useViewerBuildingBlocks; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "getAnimationInitialStyle", {
|
|
102
102
|
enumerable: true,
|
package/dist/index.js.br
CHANGED
|
Binary file
|
package/dist/index.js.gz
CHANGED
|
Binary file
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { PowerPointViewer, PptxI18nProvider, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, SlidesPaneSidebar as SlidesPane, THEME_CATALOG, Toolbar, ViewerThemeProvider, defaultCssVars, defaultRadius, defaultThemeColors, resolveThemeCatalogEntry, themeToCssVars, useViewerTheme, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius } from './chunk-
|
|
1
|
+
export { PowerPointViewer, PptxI18nProvider, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, SlidesPaneSidebar as SlidesPane, THEME_CATALOG, Toolbar, ViewerThemeProvider, defaultCssVars, defaultRadius, defaultThemeColors, resolveThemeCatalogEntry, themeToCssVars, useViewerTheme, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius } from './chunk-GQYFWOJ6.mjs';
|
|
2
2
|
import './chunk-NE5JQMED.mjs';
|
|
3
|
-
export { renderToCanvas, useViewerBuildingBlocks } from './chunk-
|
|
3
|
+
export { renderToCanvas, useViewerBuildingBlocks } from './chunk-FYQVCABH.mjs';
|
|
4
4
|
export { getAnimationInitialStyle } from './chunk-MR3ZSEHS.mjs';
|
|
5
5
|
import './chunk-UV2HVMKZ.mjs';
|
|
6
6
|
export { AVATAR_COLOR_SWATCHES, BACKSTAGE_CARD_IDS, BACKSTAGE_PAGE_IDS, CANVAS_CONTEXT_MENU_COMMAND_IDS, DEFAULT_VIEWER_PROFILE, EDITOR_SHORTCUT_ACTION_IDS, ELEMENT_CONTEXT_MENU_COMMAND_IDS, OPTIONS_PAGE_IDS, OPTIONS_SECTION_IDS, OPTIONS_SETTING_IDS, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, RIBBON_TAB_IDS, SLIDE_TEMPLATES, TOOLBAR_BUTTON_IDS, VIEWER_DIALOG_IDS, VIEWER_EXPORT_FORMAT_IDS, VIEWER_FEATURE_IDS, VIEWER_PANEL_IDS, VIEWER_PREFS_STORAGE_KEY, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, createImageElementFromFile, describeCollaborationShellState, getLocalStorageUsageSummary, isLegacyBinaryPresentation, isSupportedPresentationFile, presentationBaseName, readStoredViewerPrefs, resolveProfileInitial, saveViewerProfile, savedPresentationFileName, writeStoredViewerPrefs } from 'ooxml-ui/pptx';
|
package/dist/index.mjs.br
CHANGED
|
Binary file
|
package/dist/index.mjs.gz
CHANGED
|
Binary file
|
package/dist/internals.d.ts
CHANGED
|
@@ -458,6 +458,8 @@ interface ToolbarProps {
|
|
|
458
458
|
eyedropperActive?: boolean;
|
|
459
459
|
onToggleEyedropper?: () => void;
|
|
460
460
|
onOpenSetUpSlideShow?: () => void;
|
|
461
|
+
/** Slide Show > Custom Slide Show: open the Custom Shows dialog. */
|
|
462
|
+
onOpenCustomShows?: () => void;
|
|
461
463
|
/** PowerPoint's Hide Slide toggle for the active slide (Slide Show tab). */
|
|
462
464
|
onToggleHideSlide?: () => void;
|
|
463
465
|
/** Whether the active slide is hidden, for Hide Slide's pressed state. */
|
|
@@ -1483,6 +1485,8 @@ interface UseViewerDialogsInput {
|
|
|
1483
1485
|
name: string;
|
|
1484
1486
|
slideRIds: string[];
|
|
1485
1487
|
}>>>;
|
|
1488
|
+
/** Setter for the deck slides (removing a custom show clears jumps into it). */
|
|
1489
|
+
setSlides: React.Dispatch<React.SetStateAction<PptxSlide[]>>;
|
|
1486
1490
|
/** Setter for the active custom show id. */
|
|
1487
1491
|
setActiveCustomShowId: React.Dispatch<React.SetStateAction<string | null>>;
|
|
1488
1492
|
/** Setter for the slide guides array. */
|
|
@@ -1567,6 +1571,8 @@ interface ViewerDialogsResult {
|
|
|
1567
1571
|
/** Whether the "Set Up Slide Show" configuration dialog is visible. */
|
|
1568
1572
|
isSetUpSlideShowOpen: boolean;
|
|
1569
1573
|
setIsSetUpSlideShowOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
1574
|
+
isCustomShowsOpen: boolean;
|
|
1575
|
+
setIsCustomShowsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
1570
1576
|
/** Whether the broadcast (share screen) dialog is visible. */
|
|
1571
1577
|
isBroadcastDialogOpen: boolean;
|
|
1572
1578
|
setIsBroadcastDialogOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
@@ -1609,6 +1615,11 @@ interface ViewerDialogsResult {
|
|
|
1609
1615
|
*/
|
|
1610
1616
|
handleAddGuide: (axis: 'h' | 'v') => void;
|
|
1611
1617
|
/** Creates a new empty custom show and makes it active. */
|
|
1618
|
+
handleCommitCustomShows: (shows: Array<{
|
|
1619
|
+
id: string;
|
|
1620
|
+
name: string;
|
|
1621
|
+
slideRIds: string[];
|
|
1622
|
+
}>, clearedSlides: PptxSlide[] | undefined) => void;
|
|
1612
1623
|
handleCreateCustomShow: () => void;
|
|
1613
1624
|
/** Prompts to rename the currently active custom show. */
|
|
1614
1625
|
handleRenameActiveCustomShow: () => void;
|
|
@@ -4186,8 +4197,12 @@ interface UseDialogCustomShowsInput {
|
|
|
4186
4197
|
}>>>;
|
|
4187
4198
|
setActiveCustomShowId: React.Dispatch<React.SetStateAction<string | null>>;
|
|
4188
4199
|
history: EditorHistoryResult;
|
|
4200
|
+
/** Replaces the deck's slides (used when removing a show clears jumps into it). */
|
|
4201
|
+
setSlides?: React.Dispatch<React.SetStateAction<PptxSlide[]>>;
|
|
4189
4202
|
}
|
|
4190
4203
|
interface UseDialogCustomShowsResult {
|
|
4204
|
+
/** OK in the Custom Shows dialog: store the shows, clear jumps into removed ones. */
|
|
4205
|
+
handleCommitCustomShows: (shows: PptxCustomShow[], clearedSlides: PptxSlide[] | undefined) => void;
|
|
4191
4206
|
handleCreateCustomShow: () => void;
|
|
4192
4207
|
handleRenameActiveCustomShow: () => void;
|
|
4193
4208
|
handleDeleteActiveCustomShow: () => void;
|