pptx-react-viewer 4.33.1 → 4.34.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 +29 -0
- package/dist/{chunk-2OIJUZD5.mjs → chunk-LGZOY6W6.mjs} +51 -6
- package/dist/chunk-LGZOY6W6.mjs.br +0 -0
- package/dist/chunk-LGZOY6W6.mjs.gz +0 -0
- package/dist/{chunk-JHYNVFFS.js → chunk-LNL6PAGZ.js} +1167 -1049
- package/dist/chunk-LNL6PAGZ.js.br +0 -0
- package/dist/chunk-LNL6PAGZ.js.gz +0 -0
- package/dist/{chunk-GSMY5BTO.mjs → chunk-OWXES7IA.mjs} +167 -49
- package/dist/chunk-OWXES7IA.mjs.br +0 -0
- package/dist/chunk-OWXES7IA.mjs.gz +0 -0
- package/dist/{chunk-TVSTM5J5.js → chunk-XXGYLCRT.js} +50 -5
- package/dist/chunk-XXGYLCRT.js.br +0 -0
- package/dist/chunk-XXGYLCRT.js.gz +0 -0
- package/dist/i18n/de.cjs +9 -0
- package/dist/i18n/de.cjs.br +0 -0
- package/dist/i18n/de.cjs.gz +0 -0
- package/dist/i18n/de.mjs +9 -0
- package/dist/i18n/de.mjs.br +0 -0
- package/dist/i18n/de.mjs.gz +0 -0
- package/dist/i18n/es.cjs +9 -0
- package/dist/i18n/es.cjs.br +0 -0
- package/dist/i18n/es.cjs.gz +0 -0
- package/dist/i18n/es.mjs +9 -0
- package/dist/i18n/es.mjs.br +0 -0
- package/dist/i18n/es.mjs.gz +0 -0
- package/dist/i18n/fr.cjs +9 -0
- package/dist/i18n/fr.cjs.br +0 -0
- package/dist/i18n/fr.cjs.gz +0 -0
- package/dist/i18n/fr.mjs +9 -0
- package/dist/i18n/fr.mjs.br +0 -0
- package/dist/i18n/fr.mjs.gz +0 -0
- package/dist/i18n/zh-CN.cjs +9 -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 +9 -0
- package/dist/i18n/zh-CN.mjs.br +0 -0
- package/dist/i18n/zh-CN.mjs.gz +0 -0
- package/dist/index.js +22 -22
- 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 +8 -1
- 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 +17 -17
- 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-2OIJUZD5.mjs.br +0 -0
- package/dist/chunk-2OIJUZD5.mjs.gz +0 -0
- package/dist/chunk-GSMY5BTO.mjs.br +0 -0
- package/dist/chunk-GSMY5BTO.mjs.gz +0 -0
- package/dist/chunk-JHYNVFFS.js.br +0 -0
- package/dist/chunk-JHYNVFFS.js.gz +0 -0
- package/dist/chunk-TVSTM5J5.js.br +0 -0
- package/dist/chunk-TVSTM5J5.js.gz +0 -0
|
@@ -3302,6 +3302,9 @@ function useFindReplace({
|
|
|
3302
3302
|
const [findQuery, setFindQuery] = React17.useState("");
|
|
3303
3303
|
const [replaceQuery, setReplaceQuery] = React17.useState("");
|
|
3304
3304
|
const [findMatchCase, setFindMatchCase] = React17.useState(false);
|
|
3305
|
+
const [findIncludeNotes, setFindIncludeNotes] = React17.useState(false);
|
|
3306
|
+
const [findIncludeChartTitles, setFindIncludeChartTitles] = React17.useState(true);
|
|
3307
|
+
const [findIncludeChartData, setFindIncludeChartData] = React17.useState(false);
|
|
3305
3308
|
const [findResults, setFindResults] = React17.useState([]);
|
|
3306
3309
|
const [findResultIndex, setFindResultIndex] = React17.useState(-1);
|
|
3307
3310
|
const pendingRefindRef = React17.useRef(false);
|
|
@@ -3314,7 +3317,12 @@ function useFindReplace({
|
|
|
3314
3317
|
pendingRefindRef.current = false;
|
|
3315
3318
|
}, [findReplaceOpen]);
|
|
3316
3319
|
const performFind = React17.useCallback(() => {
|
|
3317
|
-
const results = pptx.findInSlides(slides, findQuery, {
|
|
3320
|
+
const results = pptx.findInSlides(slides, findQuery, {
|
|
3321
|
+
matchCase: findMatchCase,
|
|
3322
|
+
includeNotes: findIncludeNotes,
|
|
3323
|
+
includeChartTitles: findIncludeChartTitles,
|
|
3324
|
+
includeChartData: findIncludeChartData
|
|
3325
|
+
});
|
|
3318
3326
|
if (!findQuery) {
|
|
3319
3327
|
setFindResults([]);
|
|
3320
3328
|
setFindResultIndex(-1);
|
|
@@ -3326,7 +3334,16 @@ function useFindReplace({
|
|
|
3326
3334
|
onSetActiveSlideIndex(results[0].slideIndex);
|
|
3327
3335
|
onSetSelectedElementId(results[0].elementId);
|
|
3328
3336
|
}
|
|
3329
|
-
}, [
|
|
3337
|
+
}, [
|
|
3338
|
+
slides,
|
|
3339
|
+
findQuery,
|
|
3340
|
+
findMatchCase,
|
|
3341
|
+
findIncludeNotes,
|
|
3342
|
+
findIncludeChartTitles,
|
|
3343
|
+
findIncludeChartData,
|
|
3344
|
+
onSetActiveSlideIndex,
|
|
3345
|
+
onSetSelectedElementId
|
|
3346
|
+
]);
|
|
3330
3347
|
const navigateFindResult = React17.useCallback(
|
|
3331
3348
|
(direction) => {
|
|
3332
3349
|
if (findResults.length === 0) {
|
|
@@ -3347,6 +3364,9 @@ function useFindReplace({
|
|
|
3347
3364
|
if (toReplace.length === 0) {
|
|
3348
3365
|
return;
|
|
3349
3366
|
}
|
|
3367
|
+
if (toReplace.some((match) => match.readOnly)) {
|
|
3368
|
+
return;
|
|
3369
|
+
}
|
|
3350
3370
|
onUpdateSlides(
|
|
3351
3371
|
(prevSlides) => pptx.applyFindReplacements(prevSlides, toReplace, replaceQuery).slides
|
|
3352
3372
|
);
|
|
@@ -3403,6 +3423,12 @@ function useFindReplace({
|
|
|
3403
3423
|
setReplaceQuery,
|
|
3404
3424
|
findMatchCase,
|
|
3405
3425
|
setFindMatchCase,
|
|
3426
|
+
findIncludeNotes,
|
|
3427
|
+
setFindIncludeNotes,
|
|
3428
|
+
findIncludeChartTitles,
|
|
3429
|
+
findIncludeChartData,
|
|
3430
|
+
setFindIncludeChartTitles,
|
|
3431
|
+
setFindIncludeChartData,
|
|
3406
3432
|
findResults,
|
|
3407
3433
|
findResultIndex,
|
|
3408
3434
|
performFind,
|
|
@@ -7039,6 +7065,15 @@ function useSlideManagement(input) {
|
|
|
7039
7065
|
);
|
|
7040
7066
|
history.markDirty();
|
|
7041
7067
|
};
|
|
7068
|
+
const handlePasteSlides = (request) => {
|
|
7069
|
+
if (!request.copies.length) {
|
|
7070
|
+
return;
|
|
7071
|
+
}
|
|
7072
|
+
ops.updateSlides((previous) => pptx.insertSlidePaste(previous, request));
|
|
7073
|
+
setTemplateElementsBySlideId?.((previous) => pptx.applySlidePasteTemplates(previous, request));
|
|
7074
|
+
setActiveSlideIndex(request.insertAt);
|
|
7075
|
+
history.markDirty();
|
|
7076
|
+
};
|
|
7042
7077
|
const handleDuplicateSlides = (indexes) => {
|
|
7043
7078
|
if (indexes.length === 0) {
|
|
7044
7079
|
return;
|
|
@@ -7130,6 +7165,7 @@ function useSlideManagement(input) {
|
|
|
7130
7165
|
handleSlideContextMenu,
|
|
7131
7166
|
handleDeleteSlides,
|
|
7132
7167
|
handleDuplicateSlides,
|
|
7168
|
+
handlePasteSlides,
|
|
7133
7169
|
handleToggleHideSlides,
|
|
7134
7170
|
handleInsertSlideFromLayout,
|
|
7135
7171
|
handleInsertSlideFromTemplate
|
|
@@ -15367,7 +15403,7 @@ var ElementRenderer = React17__default.default.memo(
|
|
|
15367
15403
|
]
|
|
15368
15404
|
}
|
|
15369
15405
|
) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
15370
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15406
|
+
!isImg && /* @__PURE__ */ jsxRuntime.jsx(
|
|
15371
15407
|
ShapeEffectOverlay,
|
|
15372
15408
|
{
|
|
15373
15409
|
element: el,
|
|
@@ -15440,6 +15476,14 @@ var ElementRenderer = React17__default.default.memo(
|
|
|
15440
15476
|
onUpdateChartElement: chartUpdateHandler,
|
|
15441
15477
|
onFormatText
|
|
15442
15478
|
}),
|
|
15479
|
+
isImg && !backgroundAnimationState && /* @__PURE__ */ jsxRuntime.jsx(
|
|
15480
|
+
ShapeEffectOverlay,
|
|
15481
|
+
{
|
|
15482
|
+
element: el,
|
|
15483
|
+
animatesFill: visualAnimationState?.animatesFill,
|
|
15484
|
+
animatesStroke: visualAnimationState?.animatesStroke
|
|
15485
|
+
}
|
|
15486
|
+
),
|
|
15443
15487
|
/* @__PURE__ */ jsxRuntime.jsx(ActionAffordances, { affordance: actionAffordance })
|
|
15444
15488
|
]
|
|
15445
15489
|
}
|
|
@@ -18291,7 +18335,7 @@ function StaticElementRendererImpl({
|
|
|
18291
18335
|
animation
|
|
18292
18336
|
},
|
|
18293
18337
|
children: [
|
|
18294
|
-
/* @__PURE__ */ jsxRuntime.jsx(ShapeEffectOverlay, { element, suppressReflection }),
|
|
18338
|
+
!isImage && /* @__PURE__ */ jsxRuntime.jsx(ShapeEffectOverlay, { element, suppressReflection }),
|
|
18295
18339
|
element.type === "group" ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative w-full h-full", children: (element.children ?? []).map((child, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
18296
18340
|
StaticElementRenderer,
|
|
18297
18341
|
{
|
|
@@ -18351,7 +18395,8 @@ function StaticElementRendererImpl({
|
|
|
18351
18395
|
tableStyleContext,
|
|
18352
18396
|
canEditSmartArt: false,
|
|
18353
18397
|
canEditChart: false
|
|
18354
|
-
})
|
|
18398
|
+
}),
|
|
18399
|
+
isImage && /* @__PURE__ */ jsxRuntime.jsx(ShapeEffectOverlay, { element, suppressReflection })
|
|
18355
18400
|
]
|
|
18356
18401
|
}
|
|
18357
18402
|
);
|
|
Binary file
|
|
Binary file
|
package/dist/i18n/de.cjs
CHANGED
|
@@ -1665,6 +1665,15 @@ var translations9 = {
|
|
|
1665
1665
|
|
|
1666
1666
|
// src/de/editing-and-review.ts
|
|
1667
1667
|
var translations10 = {
|
|
1668
|
+
"pptx.findReplace.includeChartData": "Diagrammreihen und Kategoriebezeichnungen einbeziehen",
|
|
1669
|
+
"pptx.findReplace.readOnlyChartText": "Verkn\xFCpfter oder nicht unterst\xFCtzter Diagrammtext kann gefunden werden, muss jedoch in PowerPoint oder seiner Quellarbeitsmappe bearbeitet werden.",
|
|
1670
|
+
"pptx.findReplace.includeChartTitles": "Diagrammtitel einbeziehen",
|
|
1671
|
+
"pptx.findReplace.readOnlyChartTitle": "Verkn\xFCpfte oder komplexe Diagrammtitel k\xF6nnen gefunden werden, m\xFCssen jedoch in PowerPoint oder ihrer Quellarbeitsmappe bearbeitet werden.",
|
|
1672
|
+
"pptx.findReplace.includeNotes": "Sprechernotizen einbeziehen",
|
|
1673
|
+
"pptx.slideSorter.systemCopy": "Folien in die Systemzwischenablage kopieren",
|
|
1674
|
+
"pptx.slideSorter.systemPaste": "Folien aus der Systemzwischenablage einf\xFCgen",
|
|
1675
|
+
"pptx.slideSorter.systemCopied": "Folien kopiert",
|
|
1676
|
+
"pptx.slideSorter.systemPasted": "Folien eingef\xFCgt",
|
|
1668
1677
|
"pptx.findReplace.title": "Suchen und ersetzen",
|
|
1669
1678
|
"pptx.findReplace.closeEscape": "Schlie\xDFen (Esc)",
|
|
1670
1679
|
"pptx.findReplace.closeAriaLabel": "Suchen und Ersetzen schlie\xDFen",
|
package/dist/i18n/de.cjs.br
CHANGED
|
Binary file
|
package/dist/i18n/de.cjs.gz
CHANGED
|
Binary file
|
package/dist/i18n/de.mjs
CHANGED
|
@@ -1639,6 +1639,15 @@ var translations9 = {
|
|
|
1639
1639
|
|
|
1640
1640
|
// src/de/editing-and-review.ts
|
|
1641
1641
|
var translations10 = {
|
|
1642
|
+
"pptx.findReplace.includeChartData": "Diagrammreihen und Kategoriebezeichnungen einbeziehen",
|
|
1643
|
+
"pptx.findReplace.readOnlyChartText": "Verkn\xFCpfter oder nicht unterst\xFCtzter Diagrammtext kann gefunden werden, muss jedoch in PowerPoint oder seiner Quellarbeitsmappe bearbeitet werden.",
|
|
1644
|
+
"pptx.findReplace.includeChartTitles": "Diagrammtitel einbeziehen",
|
|
1645
|
+
"pptx.findReplace.readOnlyChartTitle": "Verkn\xFCpfte oder komplexe Diagrammtitel k\xF6nnen gefunden werden, m\xFCssen jedoch in PowerPoint oder ihrer Quellarbeitsmappe bearbeitet werden.",
|
|
1646
|
+
"pptx.findReplace.includeNotes": "Sprechernotizen einbeziehen",
|
|
1647
|
+
"pptx.slideSorter.systemCopy": "Folien in die Systemzwischenablage kopieren",
|
|
1648
|
+
"pptx.slideSorter.systemPaste": "Folien aus der Systemzwischenablage einf\xFCgen",
|
|
1649
|
+
"pptx.slideSorter.systemCopied": "Folien kopiert",
|
|
1650
|
+
"pptx.slideSorter.systemPasted": "Folien eingef\xFCgt",
|
|
1642
1651
|
"pptx.findReplace.title": "Suchen und ersetzen",
|
|
1643
1652
|
"pptx.findReplace.closeEscape": "Schlie\xDFen (Esc)",
|
|
1644
1653
|
"pptx.findReplace.closeAriaLabel": "Suchen und Ersetzen schlie\xDFen",
|
package/dist/i18n/de.mjs.br
CHANGED
|
Binary file
|
package/dist/i18n/de.mjs.gz
CHANGED
|
Binary file
|
package/dist/i18n/es.cjs
CHANGED
|
@@ -1665,6 +1665,15 @@ var translations9 = {
|
|
|
1665
1665
|
|
|
1666
1666
|
// src/es/editing-and-review.ts
|
|
1667
1667
|
var translations10 = {
|
|
1668
|
+
"pptx.findReplace.includeChartData": "Incluir series y etiquetas de categor\xEDas de gr\xE1ficos",
|
|
1669
|
+
"pptx.findReplace.readOnlyChartText": "El texto de gr\xE1ficos vinculado o no compatible se puede encontrar, pero debe editarse en PowerPoint o en su libro de origen.",
|
|
1670
|
+
"pptx.findReplace.includeChartTitles": "Incluir t\xEDtulos de gr\xE1ficos",
|
|
1671
|
+
"pptx.findReplace.readOnlyChartTitle": "Los t\xEDtulos de gr\xE1ficos vinculados o complejos se pueden encontrar, pero deben editarse en PowerPoint o en su libro de origen.",
|
|
1672
|
+
"pptx.findReplace.includeNotes": "Incluir notas del orador",
|
|
1673
|
+
"pptx.slideSorter.systemCopy": "Copiar diapositivas al portapapeles del sistema",
|
|
1674
|
+
"pptx.slideSorter.systemPaste": "Pegar diapositivas desde el portapapeles del sistema",
|
|
1675
|
+
"pptx.slideSorter.systemCopied": "Diapositivas copiadas",
|
|
1676
|
+
"pptx.slideSorter.systemPasted": "Diapositivas pegadas",
|
|
1668
1677
|
"pptx.findReplace.title": "Buscar y reemplazar",
|
|
1669
1678
|
"pptx.findReplace.closeEscape": "Cerrar (Esc)",
|
|
1670
1679
|
"pptx.findReplace.closeAriaLabel": "Cerrar buscar y reemplazar",
|
package/dist/i18n/es.cjs.br
CHANGED
|
Binary file
|
package/dist/i18n/es.cjs.gz
CHANGED
|
Binary file
|
package/dist/i18n/es.mjs
CHANGED
|
@@ -1639,6 +1639,15 @@ var translations9 = {
|
|
|
1639
1639
|
|
|
1640
1640
|
// src/es/editing-and-review.ts
|
|
1641
1641
|
var translations10 = {
|
|
1642
|
+
"pptx.findReplace.includeChartData": "Incluir series y etiquetas de categor\xEDas de gr\xE1ficos",
|
|
1643
|
+
"pptx.findReplace.readOnlyChartText": "El texto de gr\xE1ficos vinculado o no compatible se puede encontrar, pero debe editarse en PowerPoint o en su libro de origen.",
|
|
1644
|
+
"pptx.findReplace.includeChartTitles": "Incluir t\xEDtulos de gr\xE1ficos",
|
|
1645
|
+
"pptx.findReplace.readOnlyChartTitle": "Los t\xEDtulos de gr\xE1ficos vinculados o complejos se pueden encontrar, pero deben editarse en PowerPoint o en su libro de origen.",
|
|
1646
|
+
"pptx.findReplace.includeNotes": "Incluir notas del orador",
|
|
1647
|
+
"pptx.slideSorter.systemCopy": "Copiar diapositivas al portapapeles del sistema",
|
|
1648
|
+
"pptx.slideSorter.systemPaste": "Pegar diapositivas desde el portapapeles del sistema",
|
|
1649
|
+
"pptx.slideSorter.systemCopied": "Diapositivas copiadas",
|
|
1650
|
+
"pptx.slideSorter.systemPasted": "Diapositivas pegadas",
|
|
1642
1651
|
"pptx.findReplace.title": "Buscar y reemplazar",
|
|
1643
1652
|
"pptx.findReplace.closeEscape": "Cerrar (Esc)",
|
|
1644
1653
|
"pptx.findReplace.closeAriaLabel": "Cerrar buscar y reemplazar",
|
package/dist/i18n/es.mjs.br
CHANGED
|
Binary file
|
package/dist/i18n/es.mjs.gz
CHANGED
|
Binary file
|
package/dist/i18n/fr.cjs
CHANGED
|
@@ -1665,6 +1665,15 @@ var translations9 = {
|
|
|
1665
1665
|
|
|
1666
1666
|
// src/fr/editing-and-review.ts
|
|
1667
1667
|
var translations10 = {
|
|
1668
|
+
"pptx.findReplace.includeChartData": "Inclure les s\xE9ries et les libell\xE9s de cat\xE9gories des graphiques",
|
|
1669
|
+
"pptx.findReplace.readOnlyChartText": "Le texte de graphique li\xE9 ou non pris en charge peut \xEAtre trouv\xE9, mais doit \xEAtre modifi\xE9 dans PowerPoint ou dans son classeur source.",
|
|
1670
|
+
"pptx.findReplace.includeChartTitles": "Inclure les titres des graphiques",
|
|
1671
|
+
"pptx.findReplace.readOnlyChartTitle": "Les titres de graphiques li\xE9s ou complexes peuvent \xEAtre trouv\xE9s, mais doivent \xEAtre modifi\xE9s dans PowerPoint ou dans leur classeur source.",
|
|
1672
|
+
"pptx.findReplace.includeNotes": "Inclure les notes du pr\xE9sentateur",
|
|
1673
|
+
"pptx.slideSorter.systemCopy": "Copier les diapositives dans le presse-papiers du syst\xE8me",
|
|
1674
|
+
"pptx.slideSorter.systemPaste": "Coller les diapositives depuis le presse-papiers du syst\xE8me",
|
|
1675
|
+
"pptx.slideSorter.systemCopied": "Diapositives copi\xE9es",
|
|
1676
|
+
"pptx.slideSorter.systemPasted": "Diapositives coll\xE9es",
|
|
1668
1677
|
"pptx.findReplace.title": "Rechercher et remplacer",
|
|
1669
1678
|
"pptx.findReplace.closeEscape": "Fermer (\xC9chap)",
|
|
1670
1679
|
"pptx.findReplace.closeAriaLabel": "Fermer la recherche et le remplacement",
|
package/dist/i18n/fr.cjs.br
CHANGED
|
Binary file
|
package/dist/i18n/fr.cjs.gz
CHANGED
|
Binary file
|
package/dist/i18n/fr.mjs
CHANGED
|
@@ -1639,6 +1639,15 @@ var translations9 = {
|
|
|
1639
1639
|
|
|
1640
1640
|
// src/fr/editing-and-review.ts
|
|
1641
1641
|
var translations10 = {
|
|
1642
|
+
"pptx.findReplace.includeChartData": "Inclure les s\xE9ries et les libell\xE9s de cat\xE9gories des graphiques",
|
|
1643
|
+
"pptx.findReplace.readOnlyChartText": "Le texte de graphique li\xE9 ou non pris en charge peut \xEAtre trouv\xE9, mais doit \xEAtre modifi\xE9 dans PowerPoint ou dans son classeur source.",
|
|
1644
|
+
"pptx.findReplace.includeChartTitles": "Inclure les titres des graphiques",
|
|
1645
|
+
"pptx.findReplace.readOnlyChartTitle": "Les titres de graphiques li\xE9s ou complexes peuvent \xEAtre trouv\xE9s, mais doivent \xEAtre modifi\xE9s dans PowerPoint ou dans leur classeur source.",
|
|
1646
|
+
"pptx.findReplace.includeNotes": "Inclure les notes du pr\xE9sentateur",
|
|
1647
|
+
"pptx.slideSorter.systemCopy": "Copier les diapositives dans le presse-papiers du syst\xE8me",
|
|
1648
|
+
"pptx.slideSorter.systemPaste": "Coller les diapositives depuis le presse-papiers du syst\xE8me",
|
|
1649
|
+
"pptx.slideSorter.systemCopied": "Diapositives copi\xE9es",
|
|
1650
|
+
"pptx.slideSorter.systemPasted": "Diapositives coll\xE9es",
|
|
1642
1651
|
"pptx.findReplace.title": "Rechercher et remplacer",
|
|
1643
1652
|
"pptx.findReplace.closeEscape": "Fermer (\xC9chap)",
|
|
1644
1653
|
"pptx.findReplace.closeAriaLabel": "Fermer la recherche et le remplacement",
|
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
|
@@ -1717,6 +1717,15 @@ var translations13 = {
|
|
|
1717
1717
|
|
|
1718
1718
|
// src/zh-CN/editing-and-review.ts
|
|
1719
1719
|
var translations14 = {
|
|
1720
|
+
"pptx.findReplace.includeChartData": "\u5305\u62EC\u56FE\u8868\u7CFB\u5217\u548C\u7C7B\u522B\u6807\u7B7E",
|
|
1721
|
+
"pptx.findReplace.readOnlyChartText": "\u53EF\u4EE5\u67E5\u627E\u94FE\u63A5\u6216\u4E0D\u53D7\u652F\u6301\u7684\u56FE\u8868\u6587\u672C\uFF0C\u4F46\u5FC5\u987B\u5728 PowerPoint \u6216\u5176\u6E90\u5DE5\u4F5C\u7C3F\u4E2D\u7F16\u8F91\u3002",
|
|
1722
|
+
"pptx.findReplace.includeChartTitles": "\u5305\u62EC\u56FE\u8868\u6807\u9898",
|
|
1723
|
+
"pptx.findReplace.readOnlyChartTitle": "\u53EF\u4EE5\u67E5\u627E\u94FE\u63A5\u6216\u590D\u6742\u7684\u56FE\u8868\u6807\u9898\uFF0C\u4F46\u5FC5\u987B\u5728 PowerPoint \u6216\u5176\u6E90\u5DE5\u4F5C\u7C3F\u4E2D\u7F16\u8F91\u3002",
|
|
1724
|
+
"pptx.findReplace.includeNotes": "\u5305\u62EC\u6F14\u8BB2\u8005\u5907\u6CE8",
|
|
1725
|
+
"pptx.slideSorter.systemCopy": "\u5C06\u5E7B\u706F\u7247\u590D\u5236\u5230\u7CFB\u7EDF\u526A\u8D34\u677F",
|
|
1726
|
+
"pptx.slideSorter.systemPaste": "\u4ECE\u7CFB\u7EDF\u526A\u8D34\u677F\u7C98\u8D34\u5E7B\u706F\u7247",
|
|
1727
|
+
"pptx.slideSorter.systemCopied": "\u5E7B\u706F\u7247\u5DF2\u590D\u5236",
|
|
1728
|
+
"pptx.slideSorter.systemPasted": "\u5E7B\u706F\u7247\u5DF2\u7C98\u8D34",
|
|
1720
1729
|
"pptx.findReplace.title": "\u67E5\u627E\u548C\u66FF\u6362",
|
|
1721
1730
|
"pptx.findReplace.closeEscape": "\u5173\u95ED\uFF08Esc\uFF09",
|
|
1722
1731
|
"pptx.findReplace.closeAriaLabel": "\u5173\u95ED\u67E5\u627E\u5E76\u66FF\u6362",
|
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
|
@@ -1691,6 +1691,15 @@ var translations13 = {
|
|
|
1691
1691
|
|
|
1692
1692
|
// src/zh-CN/editing-and-review.ts
|
|
1693
1693
|
var translations14 = {
|
|
1694
|
+
"pptx.findReplace.includeChartData": "\u5305\u62EC\u56FE\u8868\u7CFB\u5217\u548C\u7C7B\u522B\u6807\u7B7E",
|
|
1695
|
+
"pptx.findReplace.readOnlyChartText": "\u53EF\u4EE5\u67E5\u627E\u94FE\u63A5\u6216\u4E0D\u53D7\u652F\u6301\u7684\u56FE\u8868\u6587\u672C\uFF0C\u4F46\u5FC5\u987B\u5728 PowerPoint \u6216\u5176\u6E90\u5DE5\u4F5C\u7C3F\u4E2D\u7F16\u8F91\u3002",
|
|
1696
|
+
"pptx.findReplace.includeChartTitles": "\u5305\u62EC\u56FE\u8868\u6807\u9898",
|
|
1697
|
+
"pptx.findReplace.readOnlyChartTitle": "\u53EF\u4EE5\u67E5\u627E\u94FE\u63A5\u6216\u590D\u6742\u7684\u56FE\u8868\u6807\u9898\uFF0C\u4F46\u5FC5\u987B\u5728 PowerPoint \u6216\u5176\u6E90\u5DE5\u4F5C\u7C3F\u4E2D\u7F16\u8F91\u3002",
|
|
1698
|
+
"pptx.findReplace.includeNotes": "\u5305\u62EC\u6F14\u8BB2\u8005\u5907\u6CE8",
|
|
1699
|
+
"pptx.slideSorter.systemCopy": "\u5C06\u5E7B\u706F\u7247\u590D\u5236\u5230\u7CFB\u7EDF\u526A\u8D34\u677F",
|
|
1700
|
+
"pptx.slideSorter.systemPaste": "\u4ECE\u7CFB\u7EDF\u526A\u8D34\u677F\u7C98\u8D34\u5E7B\u706F\u7247",
|
|
1701
|
+
"pptx.slideSorter.systemCopied": "\u5E7B\u706F\u7247\u5DF2\u590D\u5236",
|
|
1702
|
+
"pptx.slideSorter.systemPasted": "\u5E7B\u706F\u7247\u5DF2\u7C98\u8D34",
|
|
1694
1703
|
"pptx.findReplace.title": "\u67E5\u627E\u548C\u66FF\u6362",
|
|
1695
1704
|
"pptx.findReplace.closeEscape": "\u5173\u95ED\uFF08Esc\uFF09",
|
|
1696
1705
|
"pptx.findReplace.closeAriaLabel": "\u5173\u95ED\u67E5\u627E\u5E76\u66FF\u6362",
|
package/dist/i18n/zh-CN.mjs.br
CHANGED
|
Binary file
|
package/dist/i18n/zh-CN.mjs.gz
CHANGED
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkLNL6PAGZ_js = require('./chunk-LNL6PAGZ.js');
|
|
4
|
+
var chunkXXGYLCRT_js = require('./chunk-XXGYLCRT.js');
|
|
5
5
|
var chunk7DGKSEIU_js = require('./chunk-7DGKSEIU.js');
|
|
6
6
|
require('./chunk-W2IMY5SY.js');
|
|
7
7
|
var pptx = require('ooxml-ui/pptx');
|
|
@@ -11,83 +11,83 @@ var i18n = require('ooxml-ui/pptx/i18n');
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "PowerPointViewer", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkLNL6PAGZ_js.PowerPointViewer; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "SlideCanvas", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkLNL6PAGZ_js.SlideCanvas; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "SlideTemplateGalleryDialog", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkLNL6PAGZ_js.SlideTemplateGalleryDialog; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "SlideTemplatePreview", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkLNL6PAGZ_js.SlideTemplatePreview; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "THEME_CATALOG", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkLNL6PAGZ_js.THEME_CATALOG; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "Toolbar", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkLNL6PAGZ_js.Toolbar; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "ViewerThemeProvider", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkLNL6PAGZ_js.ViewerThemeProvider; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "defaultCssVars", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkLNL6PAGZ_js.defaultCssVars; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "defaultRadius", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkLNL6PAGZ_js.defaultRadius; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "defaultThemeColors", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkLNL6PAGZ_js.defaultThemeColors; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "resolveThemeCatalogEntry", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkLNL6PAGZ_js.resolveThemeCatalogEntry; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "themeToCssVars", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkLNL6PAGZ_js.themeToCssVars; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "useViewerTheme", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkLNL6PAGZ_js.useViewerTheme; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "vermilionDarkColors", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkLNL6PAGZ_js.vermilionDarkColors; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "vermilionDarkTheme", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkLNL6PAGZ_js.vermilionDarkTheme; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "vermilionLightColors", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkLNL6PAGZ_js.vermilionLightColors; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "vermilionLightTheme", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkLNL6PAGZ_js.vermilionLightTheme; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "vermilionRadius", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkLNL6PAGZ_js.vermilionRadius; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "renderToCanvas", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkXXGYLCRT_js.renderToCanvas; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "useViewerBuildingBlocks", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkXXGYLCRT_js.useViewerBuildingBlocks; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "getAnimationInitialStyle", {
|
|
93
93
|
enumerable: true,
|
package/dist/index.js.br
CHANGED
|
Binary file
|
package/dist/index.js.gz
CHANGED
|
Binary file
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { PowerPointViewer, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, THEME_CATALOG, Toolbar, ViewerThemeProvider, defaultCssVars, defaultRadius, defaultThemeColors, resolveThemeCatalogEntry, themeToCssVars, useViewerTheme, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius } from './chunk-
|
|
2
|
-
export { renderToCanvas, useViewerBuildingBlocks } from './chunk-
|
|
1
|
+
export { PowerPointViewer, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, THEME_CATALOG, Toolbar, ViewerThemeProvider, defaultCssVars, defaultRadius, defaultThemeColors, resolveThemeCatalogEntry, themeToCssVars, useViewerTheme, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius } from './chunk-OWXES7IA.mjs';
|
|
2
|
+
export { renderToCanvas, useViewerBuildingBlocks } from './chunk-LGZOY6W6.mjs';
|
|
3
3
|
export { getAnimationInitialStyle } from './chunk-K4UXDQZ6.mjs';
|
|
4
4
|
import './chunk-Q3DHYOLK.mjs';
|
|
5
5
|
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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CollaborationRole, CollaborationConfig, PowerPointViewerAPI, ViewerCustomizationApi, ShapeAdjustmentHandleDescriptor, ChangeCaseMode, ResolvedKeyboardCustomization, FindResult, EditorImagePasteOptions, InsertChartKind, PasteSpecialFormat, SlideTemplateId, MorphTransitionPlan, ElementAnimationState, ZoomNavigationTarget, PresentationSnapshot, ViewerMode, ShapeAdjustmentDragState, InlineTextEditSnapshot, InlineListReadResult, FreeformToolKind, CollaborationLivePatcher, SlideSizeEmu, ElementClipboardPayload, CropSession, FontEmbeddingDescriptor, MasterViewTarget, ViewportFitOptions, ToolbarActionId, CollaborationShellState, AnimationApplyGroup, RulerUnit, FieldSubstitutionContext, EditPointsCommandId, EditPointsElementPatch, PresentationPointerTool, RunProgramNotice, BorrowedCollaborationAwareness, CollabLoadOrigin, AuthoredSlideRange, FragmentedLayer, PrintSettings, ThemeEditorEdit, CompareResult, ReadOnlyRecommendation, CompatibilityWarningToast, DeviceOrientation, ResolvedCustomization, DeckSavePurpose, ZoomExcursion, TouchGestureCallbacks, ViewerOptionsStore, ViewerOptions, AutosaveRecoveryPrompt, VirtualizedRange, ToolbarTabId } from 'ooxml-ui/pptx';
|
|
1
|
+
import { CollaborationRole, CollaborationConfig, PowerPointViewerAPI, ViewerCustomizationApi, ShapeAdjustmentHandleDescriptor, ChangeCaseMode, ResolvedKeyboardCustomization, FindResult, EditorImagePasteOptions, InsertChartKind, PasteSpecialFormat, SlidePasteRequest, SlideTemplateId, MorphTransitionPlan, ElementAnimationState, ZoomNavigationTarget, PresentationSnapshot, ViewerMode, ShapeAdjustmentDragState, InlineTextEditSnapshot, InlineListReadResult, FreeformToolKind, CollaborationLivePatcher, SlideSizeEmu, ElementClipboardPayload, CropSession, FontEmbeddingDescriptor, MasterViewTarget, ViewportFitOptions, ToolbarActionId, CollaborationShellState, AnimationApplyGroup, RulerUnit, FieldSubstitutionContext, EditPointsCommandId, EditPointsElementPatch, PresentationPointerTool, RunProgramNotice, BorrowedCollaborationAwareness, CollabLoadOrigin, AuthoredSlideRange, FragmentedLayer, PrintSettings, ThemeEditorEdit, CompareResult, ReadOnlyRecommendation, CompatibilityWarningToast, DeviceOrientation, ResolvedCustomization, DeckSavePurpose, ZoomExcursion, TouchGestureCallbacks, ViewerOptionsStore, ViewerOptions, AutosaveRecoveryPrompt, VirtualizedRange, ToolbarTabId } from 'ooxml-ui/pptx';
|
|
2
2
|
export { CINEMATIC_TRANSITION_KEYFRAMES, CollaborationConfig, DEFAULT_MORPH_DURATION_MS, DEFAULT_TRANSITION_DURATION_MS, DeviceOrientation, EASE, INSTANT, MOBILE_BREAKPOINT, P14_TRANSITION_KEYFRAMES, P14_TRANSITION_KEYFRAMES_2, P14_TRANSITION_KEYFRAMES_ALL, RANDOM_ELIGIBLE_TYPES, ResolvedDirection, ResolvedDirection8, SLIDE_TRANSITION_KEYFRAMES, SLIDE_TRANSITION_KEYFRAMES_CSS, SlideTransitionAnimations, TABLET_BREAKPOINT, TRANSITION_SPEED_DURATION_MS, TouchGestureCallbacks, VirtualizedRange, WHEEL_SPOKE_COUNTS, computeVirtualRange, getCinematicTransitionAnimations, getP14TransitionAnimations, getSlideTransitionAnimations, resolveDirection, resolveDirection8, resolveOrientation, resolveSlideTransition, resolveTransitionDurationMs, resolveWheelSpokeCount } from 'ooxml-ui/pptx';
|
|
3
3
|
import { PptxSlide, PptxElement, PptxElementAnimation, TextStyle, PptxHeaderFooter, ShapeStyle, PptxCommentMention, SmartArtLayout, InkPptxElement, ShapePptxElement, MergeShapeOperation, PptxSlideTransition, PptxAction, PptxSlideMaster, PptxModernCommentAuthor, PptxTheme, ParsedTableStyleMap, PptxThemeOption, PptxCustomShow, PptxSection, PptxPresentationProperties, PptxViewProperties, PptxNotesMaster, PptxHandoutMaster, PptxCustomProperty, PptxTagCollection, PptxCoreProperties, PptxAppProperties, PptxEmbeddedFont, MasterViewTab, PptxSlideLayout, PptxHandler, PptxLayoutOption, PptxLayoutPreview, PptxComment, ConnectorPptxElement, PptxThemePreset, PptxThemeColorScheme, PptxThemeFontScheme, PptxData, PptxHandlerSaveOptions, PptxSaveFormat, TextSegment, PptxModifyVerifier } from 'ooxml-core/pptx';
|
|
4
4
|
import * as Y from 'yjs';
|
|
@@ -880,6 +880,12 @@ interface UseFindReplaceResult {
|
|
|
880
880
|
replaceQuery: string;
|
|
881
881
|
setReplaceQuery: (query: string) => void;
|
|
882
882
|
findMatchCase: boolean;
|
|
883
|
+
findIncludeNotes: boolean;
|
|
884
|
+
findIncludeChartTitles: boolean;
|
|
885
|
+
findIncludeChartData: boolean;
|
|
886
|
+
setFindIncludeChartTitles: (value: boolean) => void;
|
|
887
|
+
setFindIncludeChartData: (value: boolean) => void;
|
|
888
|
+
setFindIncludeNotes: (value: boolean) => void;
|
|
883
889
|
setFindMatchCase: (matchCase: boolean) => void;
|
|
884
890
|
findResults: FindResult[];
|
|
885
891
|
findResultIndex: number;
|
|
@@ -1264,6 +1270,7 @@ interface SlideManagementHandlers {
|
|
|
1264
1270
|
handleSlideContextMenu: (e: React$1.MouseEvent, index: number) => void;
|
|
1265
1271
|
handleDeleteSlides: (indexes: number[]) => void;
|
|
1266
1272
|
handleDuplicateSlides: (indexes: number[]) => void;
|
|
1273
|
+
handlePasteSlides: (request: SlidePasteRequest) => void;
|
|
1267
1274
|
handleToggleHideSlides: (indexes: number[]) => void;
|
|
1268
1275
|
handleInsertSlideFromLayout: (layoutPath: string, layoutName?: string) => void;
|
|
1269
1276
|
handleInsertSlideFromTemplate: (templateId: SlideTemplateId) => void;
|