pptx-react-viewer 3.9.0 → 3.10.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 +8 -0
- package/dist/{AiChatPanel-II6VOOAL.mjs → AiChatPanel-BQSUE2OO.mjs} +4 -4
- package/dist/AiChatPanel-BQSUE2OO.mjs.br +0 -0
- package/dist/AiChatPanel-BQSUE2OO.mjs.gz +0 -0
- package/dist/{AiChatPanel-3A42W7RW.js → AiChatPanel-NSVSBJC7.js} +25 -25
- package/dist/AiChatPanel-NSVSBJC7.js.br +0 -0
- package/dist/AiChatPanel-NSVSBJC7.js.gz +0 -0
- package/dist/{Area3DChartScene-JM3CQ3WQ.mjs → Area3DChartScene-2FQHPGNE.mjs} +1 -1
- package/dist/{Area3DChartScene-JM3CQ3WQ.mjs.br → Area3DChartScene-2FQHPGNE.mjs.br} +0 -0
- package/dist/Area3DChartScene-2FQHPGNE.mjs.gz +0 -0
- package/dist/{Area3DChartScene-XJK4ZA4R.js → Area3DChartScene-V3W2V7N5.js} +2 -2
- package/dist/{Area3DChartScene-XJK4ZA4R.js.br → Area3DChartScene-V3W2V7N5.js.br} +0 -0
- package/dist/Area3DChartScene-V3W2V7N5.js.gz +0 -0
- package/dist/{Bar3DChartScene-RGRZY5P6.js → Bar3DChartScene-55XMAUC7.js} +2 -2
- package/dist/Bar3DChartScene-55XMAUC7.js.br +0 -0
- package/dist/Bar3DChartScene-55XMAUC7.js.gz +0 -0
- package/dist/{Bar3DChartScene-VNFWI2QG.mjs → Bar3DChartScene-PSJEVANA.mjs} +1 -1
- package/dist/{Bar3DChartScene-VNFWI2QG.mjs.br → Bar3DChartScene-PSJEVANA.mjs.br} +0 -0
- package/dist/Bar3DChartScene-PSJEVANA.mjs.gz +0 -0
- package/dist/{Line3DChartScene-MEY42DBF.js → Line3DChartScene-5KACYRSQ.js} +2 -2
- package/dist/{Line3DChartScene-MEY42DBF.js.br → Line3DChartScene-5KACYRSQ.js.br} +0 -0
- package/dist/Line3DChartScene-5KACYRSQ.js.gz +0 -0
- package/dist/{Line3DChartScene-GXOWGIFJ.mjs → Line3DChartScene-BUVNUFNO.mjs} +1 -1
- package/dist/{Line3DChartScene-GXOWGIFJ.mjs.br → Line3DChartScene-BUVNUFNO.mjs.br} +0 -0
- package/dist/Line3DChartScene-BUVNUFNO.mjs.gz +0 -0
- package/dist/{Model3DScene-MWXTGHDM.js → Model3DScene-6U6TN36M.js} +2 -2
- package/dist/Model3DScene-6U6TN36M.js.br +0 -0
- package/dist/Model3DScene-6U6TN36M.js.gz +0 -0
- package/dist/{Model3DScene-WJ3MMIZH.mjs → Model3DScene-REKMR2L6.mjs} +1 -1
- package/dist/Model3DScene-REKMR2L6.mjs.br +0 -0
- package/dist/Model3DScene-REKMR2L6.mjs.gz +0 -0
- package/dist/{PieChart3DScene-WXJEDYMK.mjs → PieChart3DScene-4L2VVIUJ.mjs} +1 -1
- package/dist/{PieChart3DScene-WXJEDYMK.mjs.br → PieChart3DScene-4L2VVIUJ.mjs.br} +0 -0
- package/dist/PieChart3DScene-4L2VVIUJ.mjs.gz +0 -0
- package/dist/{PieChart3DScene-FJJGOQIS.js → PieChart3DScene-MV3JF7EM.js} +2 -2
- package/dist/{PieChart3DScene-FJJGOQIS.js.br → PieChart3DScene-MV3JF7EM.js.br} +0 -0
- package/dist/PieChart3DScene-MV3JF7EM.js.gz +0 -0
- package/dist/{SurfaceChart3DScene-IKPE2SVE.mjs → SurfaceChart3DScene-ARE7OBFI.mjs} +1 -1
- package/dist/SurfaceChart3DScene-ARE7OBFI.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-ARE7OBFI.mjs.gz +0 -0
- package/dist/{SurfaceChart3DScene-VDK3F224.js → SurfaceChart3DScene-SFIOK3G3.js} +2 -2
- package/dist/{SurfaceChart3DScene-VDK3F224.js.br → SurfaceChart3DScene-SFIOK3G3.js.br} +0 -0
- package/dist/SurfaceChart3DScene-SFIOK3G3.js.gz +0 -0
- package/dist/{chunk-G3JPCRKN.js → chunk-2Q2NFPXA.js} +70189 -52226
- package/dist/chunk-2Q2NFPXA.js.br +0 -0
- package/dist/chunk-2Q2NFPXA.js.gz +0 -0
- package/dist/{chunk-3NIJ5HIZ.js → chunk-DZ3HWACD.js} +1818 -1279
- package/dist/chunk-DZ3HWACD.js.br +0 -0
- package/dist/chunk-DZ3HWACD.js.gz +0 -0
- package/dist/{chunk-5CPGDXD6.js → chunk-FHOUTYMB.js} +457 -445
- package/dist/chunk-FHOUTYMB.js.br +0 -0
- package/dist/chunk-FHOUTYMB.js.gz +0 -0
- package/dist/{chunk-PCCM7NVY.mjs → chunk-HJZA3O3S.mjs} +21 -10
- package/dist/chunk-HJZA3O3S.mjs.br +0 -0
- package/dist/chunk-HJZA3O3S.mjs.gz +0 -0
- package/dist/{chunk-K6Q6KLA6.js → chunk-HYUPPQJW.js} +6168 -1929
- package/dist/chunk-HYUPPQJW.js.br +0 -0
- package/dist/chunk-HYUPPQJW.js.gz +0 -0
- package/dist/{chunk-76Z3X6JX.mjs → chunk-KWHURCVT.mjs} +599 -60
- package/dist/chunk-KWHURCVT.mjs.br +0 -0
- package/dist/chunk-KWHURCVT.mjs.gz +0 -0
- package/dist/{chunk-NTWFXLZX.mjs → chunk-M6GIPAY4.mjs} +2 -2
- package/dist/chunk-M6GIPAY4.mjs.br +0 -0
- package/dist/chunk-M6GIPAY4.mjs.gz +0 -0
- package/dist/{chunk-3Y63XPIN.mjs → chunk-T4ZRSRQZ.mjs} +6164 -1925
- package/dist/chunk-T4ZRSRQZ.mjs.br +0 -0
- package/dist/chunk-T4ZRSRQZ.mjs.gz +0 -0
- package/dist/{chunk-JBSAKP4Z.mjs → chunk-TAGG5YNA.mjs} +61 -1
- package/dist/chunk-TAGG5YNA.mjs.br +0 -0
- package/dist/chunk-TAGG5YNA.mjs.gz +0 -0
- package/dist/{chunk-VQX7G75Z.mjs → chunk-UKPGYJ7G.mjs} +70151 -52196
- package/dist/chunk-UKPGYJ7G.mjs.br +0 -0
- package/dist/chunk-UKPGYJ7G.mjs.gz +0 -0
- package/dist/{chunk-LBJAVP3H.js → chunk-XW46A7DN.js} +176 -176
- package/dist/chunk-XW46A7DN.js.br +0 -0
- package/dist/chunk-XW46A7DN.js.gz +0 -0
- package/dist/{chunk-TEVGDXVW.js → chunk-Y6GG2OOW.js} +61 -1
- package/dist/chunk-Y6GG2OOW.js.br +0 -0
- package/dist/chunk-Y6GG2OOW.js.gz +0 -0
- package/dist/i18n.js +4 -4
- package/dist/i18n.js.br +0 -0
- package/dist/i18n.js.gz +0 -0
- package/dist/i18n.mjs +1 -1
- package/dist/i18n.mjs.br +0 -0
- package/dist/i18n.mjs.gz +0 -0
- package/dist/index-CGKutKk1.d.ts.map +1 -1
- package/dist/index.d.ts +228 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +47 -47
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +217 -10
- package/dist/internals.d.ts.map +1 -1
- package/dist/internals.js +79 -79
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +4 -4
- 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/{useViewerBuildingBlocks-C8F_4Pzb.d.ts → useViewerBuildingBlocks-FbK-4ORi.d.ts} +2 -1
- package/dist/useViewerBuildingBlocks-FbK-4ORi.d.ts.map +1 -0
- package/dist/viewer/index.d.ts +207 -5
- package/dist/viewer/index.d.ts.map +1 -1
- package/dist/viewer/index.js +27 -27
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +6 -6
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +9 -9
- package/dist/AiChatPanel-3A42W7RW.js.br +0 -0
- package/dist/AiChatPanel-3A42W7RW.js.gz +0 -0
- package/dist/AiChatPanel-II6VOOAL.mjs.br +0 -0
- package/dist/AiChatPanel-II6VOOAL.mjs.gz +0 -0
- package/dist/Area3DChartScene-JM3CQ3WQ.mjs.gz +0 -0
- package/dist/Area3DChartScene-XJK4ZA4R.js.gz +0 -0
- package/dist/Bar3DChartScene-RGRZY5P6.js.br +0 -0
- package/dist/Bar3DChartScene-RGRZY5P6.js.gz +0 -0
- package/dist/Bar3DChartScene-VNFWI2QG.mjs.gz +0 -0
- package/dist/Line3DChartScene-GXOWGIFJ.mjs.gz +0 -0
- package/dist/Line3DChartScene-MEY42DBF.js.gz +0 -0
- package/dist/Model3DScene-MWXTGHDM.js.br +0 -0
- package/dist/Model3DScene-MWXTGHDM.js.gz +0 -0
- package/dist/Model3DScene-WJ3MMIZH.mjs.br +0 -0
- package/dist/Model3DScene-WJ3MMIZH.mjs.gz +0 -0
- package/dist/PieChart3DScene-FJJGOQIS.js.gz +0 -0
- package/dist/PieChart3DScene-WXJEDYMK.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-IKPE2SVE.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-IKPE2SVE.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-VDK3F224.js.gz +0 -0
- package/dist/chunk-3NIJ5HIZ.js.br +0 -0
- package/dist/chunk-3NIJ5HIZ.js.gz +0 -0
- package/dist/chunk-3Y63XPIN.mjs.br +0 -0
- package/dist/chunk-3Y63XPIN.mjs.gz +0 -0
- package/dist/chunk-5CPGDXD6.js.br +0 -0
- package/dist/chunk-5CPGDXD6.js.gz +0 -0
- package/dist/chunk-76Z3X6JX.mjs.br +0 -0
- package/dist/chunk-76Z3X6JX.mjs.gz +0 -0
- package/dist/chunk-G3JPCRKN.js.br +0 -0
- package/dist/chunk-G3JPCRKN.js.gz +0 -0
- package/dist/chunk-JBSAKP4Z.mjs.br +0 -0
- package/dist/chunk-JBSAKP4Z.mjs.gz +0 -0
- package/dist/chunk-K6Q6KLA6.js.br +0 -0
- package/dist/chunk-K6Q6KLA6.js.gz +0 -0
- package/dist/chunk-LBJAVP3H.js.br +0 -0
- package/dist/chunk-LBJAVP3H.js.gz +0 -0
- package/dist/chunk-NTWFXLZX.mjs.br +0 -0
- package/dist/chunk-NTWFXLZX.mjs.gz +0 -0
- package/dist/chunk-PCCM7NVY.mjs.br +0 -0
- package/dist/chunk-PCCM7NVY.mjs.gz +0 -0
- package/dist/chunk-TEVGDXVW.js.br +0 -0
- package/dist/chunk-TEVGDXVW.js.gz +0 -0
- package/dist/chunk-VQX7G75Z.mjs.br +0 -0
- package/dist/chunk-VQX7G75Z.mjs.gz +0 -0
- package/dist/useViewerBuildingBlocks-C8F_4Pzb.d.ts.map +0 -1
|
Binary file
|
|
Binary file
|
|
@@ -447,9 +447,20 @@ var translationsEn = {
|
|
|
447
447
|
"pptx.accessibility.info": "Info: ",
|
|
448
448
|
// Element-level alt text / title (shape, text box, connector). A picture's
|
|
449
449
|
// own alt text field uses `pptx.image.altText` / `pptx.image.altTextPlaceholder`.
|
|
450
|
+
//
|
|
451
|
+
// `elementAccessibility.title` is deliberately NOT the bare word "Title":
|
|
452
|
+
// every graphic-frame kind that shows this section (table/chart/smartArt/
|
|
453
|
+
// media/ole, `shouldShowAccessibilitySection`) can ALSO have its own
|
|
454
|
+
// type-specific field captioned exactly "Title" (a chart's `pptx.chart.title`,
|
|
455
|
+
// an axis's `pptx.chart.axisTitle`). Two inspector fields with the identical
|
|
456
|
+
// accessible name broke `chart-title-runs.spec.ts`'s inspector edit in
|
|
457
|
+
// vanilla/svelte (Accessibility renders before the Chart section in those
|
|
458
|
+
// bindings' DOM, unlike React/Vue): a "first Title-labelled control" lookup
|
|
459
|
+
// silently edited this alt-text title instead of the chart's own title. See
|
|
460
|
+
// `chart-title-runs.test.ts`'s label-collision guard.
|
|
450
461
|
"pptx.elementAccessibility.altText": "Alt text",
|
|
451
462
|
"pptx.elementAccessibility.altTextPlaceholder": "Describe this element for accessibility",
|
|
452
|
-
"pptx.elementAccessibility.title": "
|
|
463
|
+
"pptx.elementAccessibility.title": "Accessibility title",
|
|
453
464
|
"pptx.elementAccessibility.titlePlaceholder": "Accessibility title (optional)",
|
|
454
465
|
// Animations
|
|
455
466
|
"pptx.animations.previewTooltip": "Preview animation on selected element",
|
|
@@ -800,6 +811,10 @@ var translationsEn = {
|
|
|
800
811
|
"pptx.chart.removeLastSeries": "Remove last series",
|
|
801
812
|
"pptx.chart.seriesShort": "Series",
|
|
802
813
|
"pptx.chart.removeSeries": "Remove series",
|
|
814
|
+
"pptx.chart.chartFilters": "Chart filters",
|
|
815
|
+
"pptx.chart.hideSeries": "Hide {{name}}",
|
|
816
|
+
"pptx.chart.showSeries": "Show {{name}}",
|
|
817
|
+
"pptx.chart.valueFromCells": "Value from cells: {{name}}",
|
|
803
818
|
"pptx.chart.removeCategory": "Remove category",
|
|
804
819
|
"pptx.chart.axes": "Axes",
|
|
805
820
|
"pptx.chart.min": "Min",
|
|
@@ -1401,6 +1416,24 @@ var translationsEn = {
|
|
|
1401
1416
|
"pptx.ole.type": "Type",
|
|
1402
1417
|
"pptx.ole.objectName": "Object Name",
|
|
1403
1418
|
"pptx.ole.objectNamePlaceholder": "Used by screen readers and the Selection Pane",
|
|
1419
|
+
"pptx.ole.editContent": "Edit content...",
|
|
1420
|
+
"pptx.ole.editDialog.title": "Edit Embedded Object",
|
|
1421
|
+
"pptx.ole.editDialog.tabSheet": "Spreadsheet",
|
|
1422
|
+
"pptx.ole.editDialog.tabDocument": "Document",
|
|
1423
|
+
"pptx.ole.editDialog.tabDeck": "Presentation",
|
|
1424
|
+
"pptx.ole.editDialog.tabFile": "File",
|
|
1425
|
+
"pptx.ole.editDialog.replaceFile": "Replace File...",
|
|
1426
|
+
"pptx.ole.editDialog.replaceFileHint": "Choose a new file to replace this object's content.",
|
|
1427
|
+
"pptx.ole.editDialog.save": "Save",
|
|
1428
|
+
"pptx.ole.editDialog.cancel": "Cancel",
|
|
1429
|
+
"pptx.ole.editDialog.emptyDocument": "This document has no paragraphs to edit.",
|
|
1430
|
+
"pptx.ole.editDialog.emptySheet": "No spreadsheet data could be read from this object.",
|
|
1431
|
+
"pptx.ole.editDialog.deckSlideLabel": "Slide {{number}}",
|
|
1432
|
+
"pptx.ole.editDialog.deckEmpty": "This embedded presentation has no slides.",
|
|
1433
|
+
"pptx.ole.editDialog.unsupported": "This object's content can't be edited directly here. Use Replace File to update it.",
|
|
1434
|
+
"pptx.ole.editDialog.cellEditLabel": "Cell value",
|
|
1435
|
+
"pptx.ole.editDialog.loading": "Loading content...",
|
|
1436
|
+
"pptx.ole.editDialog.saveError": "Could not save the change.",
|
|
1404
1437
|
// Presentation mode (annotations-on-exit prompt)
|
|
1405
1438
|
"pptx.presentation.clearAnnotations": "Clear Annotations",
|
|
1406
1439
|
"pptx.presentation.discardAnnotations": "Discard Annotations",
|
|
@@ -2348,6 +2381,29 @@ var translationsEn = {
|
|
|
2348
2381
|
"pptx.animation.sound.none": "[No Sound]",
|
|
2349
2382
|
"pptx.animation.sound.custom": "Choose sound file...",
|
|
2350
2383
|
"pptx.animation.sound.chooseFile": "Choose an audio file",
|
|
2384
|
+
"pptx.animation.sound.other": "Other Sound...",
|
|
2385
|
+
"pptx.animation.sound.preview": "Preview sound",
|
|
2386
|
+
// PowerPoint's 19 built-in stock sounds (Animation Effect Options > Sound
|
|
2387
|
+
// and Transitions > Sound share this same gallery).
|
|
2388
|
+
"pptx.animation.sound.applause": "Applause",
|
|
2389
|
+
"pptx.animation.sound.arrow": "Arrow",
|
|
2390
|
+
"pptx.animation.sound.bomb": "Bomb",
|
|
2391
|
+
"pptx.animation.sound.breeze": "Breeze",
|
|
2392
|
+
"pptx.animation.sound.camera": "Camera",
|
|
2393
|
+
"pptx.animation.sound.cashRegister": "Cash Register",
|
|
2394
|
+
"pptx.animation.sound.chime": "Chime",
|
|
2395
|
+
"pptx.animation.sound.click": "Click",
|
|
2396
|
+
"pptx.animation.sound.coin": "Coin",
|
|
2397
|
+
"pptx.animation.sound.drumRoll": "Drum Roll",
|
|
2398
|
+
"pptx.animation.sound.explosion": "Explosion",
|
|
2399
|
+
"pptx.animation.sound.hammer": "Hammer",
|
|
2400
|
+
"pptx.animation.sound.laser": "Laser",
|
|
2401
|
+
"pptx.animation.sound.push": "Push",
|
|
2402
|
+
"pptx.animation.sound.suction": "Suction",
|
|
2403
|
+
"pptx.animation.sound.typewriter": "Typewriter",
|
|
2404
|
+
"pptx.animation.sound.voltage": "Voltage",
|
|
2405
|
+
"pptx.animation.sound.whoosh": "Whoosh",
|
|
2406
|
+
"pptx.animation.sound.wind": "Wind",
|
|
2351
2407
|
"pptx.animation.afterAnimation": "After animation",
|
|
2352
2408
|
"pptx.animation.afterAnimation.none": "Don't Dim",
|
|
2353
2409
|
"pptx.animation.afterAnimation.dimToColor": "Dim after animation",
|
|
@@ -2399,6 +2455,8 @@ var translationsEn = {
|
|
|
2399
2455
|
"pptx.file.png": "PNG",
|
|
2400
2456
|
"pptx.file.saveAsPpsx": "Save .ppsx",
|
|
2401
2457
|
"pptx.file.saveAsPpsxTooltip": "Save as Slide Show (.ppsx)",
|
|
2458
|
+
"pptx.file.saveAsPpt": "Save .ppt",
|
|
2459
|
+
"pptx.file.saveAsPptTooltip": "Save as PowerPoint 97-2003 (.ppt)",
|
|
2402
2460
|
"pptx.file.saveAsPptm": "Save .pptm",
|
|
2403
2461
|
"pptx.file.saveAsPptmTooltip": "Save as Macro-Enabled (.pptm)",
|
|
2404
2462
|
"pptx.file.saveAsPptx": "Save .pptx",
|
|
@@ -3501,6 +3559,8 @@ var translationsEn = {
|
|
|
3501
3559
|
"pptx.backstage.card.saveAsPpsx.body": "Save a .ppsx file that opens directly in slide show.",
|
|
3502
3560
|
"pptx.backstage.card.saveAsPptm.title": "Macro-Enabled Presentation",
|
|
3503
3561
|
"pptx.backstage.card.saveAsPptm.body": "Preserve VBA content in a .pptm file.",
|
|
3562
|
+
"pptx.backstage.card.saveAsPpt.title": "PowerPoint 97-2003 Presentation",
|
|
3563
|
+
"pptx.backstage.card.saveAsPpt.body": "Save a binary .ppt copy compatible with older PowerPoint versions.",
|
|
3504
3564
|
"pptx.backstage.card.pdf.title": "Create PDF",
|
|
3505
3565
|
"pptx.backstage.card.pdf.body": "Publish a portable document with one page per slide.",
|
|
3506
3566
|
"pptx.backstage.card.png.title": "Export current slide",
|
|
Binary file
|
|
Binary file
|
package/dist/i18n.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkY6GG2OOW_js = require('./chunk-Y6GG2OOW.js');
|
|
4
4
|
require('./chunk-4VNS5WPM.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "LOCALE_CATALOG", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkY6GG2OOW_js.LOCALE_CATALOG; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "keyToLabel", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkY6GG2OOW_js.keyToLabel; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "translationsEn", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkY6GG2OOW_js.translationsEn; }
|
|
19
19
|
});
|
package/dist/i18n.js.br
CHANGED
|
Binary file
|
package/dist/i18n.js.gz
CHANGED
|
Binary file
|
package/dist/i18n.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { LOCALE_CATALOG, keyToLabel, translationsEn } from './chunk-
|
|
1
|
+
export { LOCALE_CATALOG, keyToLabel, translationsEn } from './chunk-TAGG5YNA.mjs';
|
|
2
2
|
import './chunk-XGB3TDIC.mjs';
|
package/dist/i18n.mjs.br
CHANGED
|
Binary file
|
package/dist/i18n.mjs.gz
CHANGED
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-CGKutKk1.d.ts","names":[],"sources":["../../shared/dist/i18n/index.d.ts"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index-CGKutKk1.d.ts","names":[],"sources":["../../shared/dist/i18n/index.d.ts"],"mappings":";;;;;;;;;;;cAUqB,gBAAgB;;;;;;;KAOhC,8BAA8B;;;;;;iBAMX,WAAW;;;;UAIzB;;EAER;;EAEA;;EAEA;;;;;;;;cAQmB,yBAAyB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3096,6 +3096,18 @@ interface PptxChartDataPoint {
|
|
|
3096
3096
|
}
|
|
3097
3097
|
/** Schema values accepted by `c:dLblPos`. */
|
|
3098
3098
|
type PptxChartDataLabelPosition = 'bestFit' | 'b' | 'ctr' | 'inBase' | 'inEnd' | 'l' | 'outEnd' | 'r' | 't';
|
|
3099
|
+
/**
|
|
3100
|
+
* `c15:dlblRangeCache`/`c15:datalabelsRange` (CT_SeriesDataLabelsRange):
|
|
3101
|
+
* PowerPoint 2013+'s "Value From Cells" custom label source, one cell range
|
|
3102
|
+
* supplying every label in a group (chart-type or series `c:dLbls`), with a
|
|
3103
|
+
* cache aligned to point order. See `utils/chart-data-labels-range.ts`.
|
|
3104
|
+
*/
|
|
3105
|
+
interface PptxChartDataLabelsRange {
|
|
3106
|
+
/** `c15:f`: the cell range formula (e.g. `Sheet1!$D$2:$D$5`). */
|
|
3107
|
+
formula: string;
|
|
3108
|
+
/** `c15:dlblRangeCache`: cached label text, index-aligned with data points. */
|
|
3109
|
+
cache: string[];
|
|
3110
|
+
}
|
|
3099
3111
|
/** Individual data label override (c:dLbl). */
|
|
3100
3112
|
interface PptxChartDataLabel {
|
|
3101
3113
|
idx: number;
|
|
@@ -3137,6 +3149,14 @@ interface PptxChartDataLabel {
|
|
|
3137
3149
|
* over any chart/series-level default when set.
|
|
3138
3150
|
*/
|
|
3139
3151
|
spPr?: PptxChartShapeProps;
|
|
3152
|
+
/**
|
|
3153
|
+
* `c15:xForSave`: this override exists only so its properties survive a
|
|
3154
|
+
* save/reload round trip; PowerPoint merges it back onto the series'
|
|
3155
|
+
* default label on load. Round-tripped as-is (an edited chart keeps an
|
|
3156
|
+
* existing point's whole `extLst`, this flag included); introspection
|
|
3157
|
+
* only otherwise. See `utils/chart-data-labels-range.ts`.
|
|
3158
|
+
*/
|
|
3159
|
+
savedForCompatibilityOnly?: boolean;
|
|
3140
3160
|
}
|
|
3141
3161
|
/** Axis number format. */
|
|
3142
3162
|
interface PptxChartAxisNumFmt {
|
|
@@ -3525,6 +3545,22 @@ interface PptxChartDataLabelOptions {
|
|
|
3525
3545
|
* (point > series > chart-type).
|
|
3526
3546
|
*/
|
|
3527
3547
|
txPr?: PptxChartLegendTextStyle;
|
|
3548
|
+
/**
|
|
3549
|
+
* PowerPoint 2013+ "Value From Cells", series-wide form
|
|
3550
|
+
* (`c15:datalabelsRange`, chart15 uri `{CE6537A1-...}`): one cell range
|
|
3551
|
+
* supplies every label in this group, aligned by point index. A
|
|
3552
|
+
* SERIES-WIDE alternative to the per-point `c15:dlblFieldTable` mechanism
|
|
3553
|
+
* (already resolved into {@link PptxChartDataLabel.text} at parse time).
|
|
3554
|
+
* See `utils/chart-data-labels-range.ts`.
|
|
3555
|
+
*/
|
|
3556
|
+
dataLabelsRange?: PptxChartDataLabelsRange;
|
|
3557
|
+
/**
|
|
3558
|
+
* `c15:showDataLabelsRange` at the SAME level as {@link dataLabelsRange}:
|
|
3559
|
+
* whether every label in this group resolves through the range's cache.
|
|
3560
|
+
* Distinct from the per-point {@link PptxChartDataLabel} flag of the same
|
|
3561
|
+
* XML name. Only meaningful when {@link dataLabelsRange} is set.
|
|
3562
|
+
*/
|
|
3563
|
+
showDataLabelsRange?: boolean;
|
|
3528
3564
|
}
|
|
3529
3565
|
/** Typed text defaults for a single chart legend entry. */
|
|
3530
3566
|
interface PptxChartLegendTextStyle {
|
|
@@ -3799,6 +3835,19 @@ interface PptxChartData {
|
|
|
3799
3835
|
* when the chart has no such extension. See {@link PptxChartFilteredSeries}.
|
|
3800
3836
|
*/
|
|
3801
3837
|
filteredSeries?: PptxChartFilteredSeries[];
|
|
3838
|
+
/**
|
|
3839
|
+
* `c15:filteredSeriesTitle`: the auto-generated series title text (e.g.
|
|
3840
|
+
* "Series 3") PowerPoint preserved when the chart filter hid the series
|
|
3841
|
+
* whose data would otherwise have supplied it. See
|
|
3842
|
+
* `utils/chart-ext-titles.ts`. Read-mostly like {@link filteredSeries}.
|
|
3843
|
+
*/
|
|
3844
|
+
filteredSeriesTitle?: string;
|
|
3845
|
+
/**
|
|
3846
|
+
* `c15:filteredCategoryTitle`: the auto-numbered category labels ("1",
|
|
3847
|
+
* "2", "3", ...) PowerPoint preserved when the chart filter hid the
|
|
3848
|
+
* category axis source entirely. See `utils/chart-ext-titles.ts`.
|
|
3849
|
+
*/
|
|
3850
|
+
filteredCategoryTitle?: string[];
|
|
3802
3851
|
/** Chart style/formatting metadata. */
|
|
3803
3852
|
style?: PptxChartStyle;
|
|
3804
3853
|
/** Grouping mode for bar/area/line charts: 'clustered' | 'stacked' | 'percentStacked' */
|
|
@@ -4721,7 +4770,95 @@ interface PptxSmartArtLayoutNode {
|
|
|
4721
4770
|
rules?: PptxSmartArtNumericRule[];
|
|
4722
4771
|
/** `dgm:shape`: this node's own preset geometry override, when present. */
|
|
4723
4772
|
shape?: PptxSmartArtLayoutNodeShape;
|
|
4773
|
+
/**
|
|
4774
|
+
* `dgm:presOf` (CT_PresentationOf, same iterator shape as `dgm:forEach`):
|
|
4775
|
+
* which data-model point(s) this node's OWN text/geometry binds to -
|
|
4776
|
+
* `axis: ['self']` the point currently being iterated, `['des']` all of
|
|
4777
|
+
* its descendants, `['ch']` its direct children, and so on. Absent or
|
|
4778
|
+
* empty `axis` (including a bare `<dgm:presOf/>`) means the node carries
|
|
4779
|
+
* no text of its own (a pure positioning/decoration wrapper - `composite`,
|
|
4780
|
+
* `sp` spacer, connector cap). See `smartart-layout-interpreter-item-
|
|
4781
|
+
* roles.ts`, the one consumer: it is what lets the interpreter tell a
|
|
4782
|
+
* text-bearing per-item role (a list layout's `childText`, a card
|
|
4783
|
+
* layout's `roleText`/`bodyText`) apart from a same-generation sibling
|
|
4784
|
+
* that positions or decorates instead.
|
|
4785
|
+
*/
|
|
4786
|
+
presentationOf?: PptxSmartArtIteratorAttributes;
|
|
4787
|
+
/**
|
|
4788
|
+
* EVERY `dgm:constr` reachable from this node, including ones declared
|
|
4789
|
+
* inside a `dgm:choose`/`dgm:if`/`dgm:else` that wraps THIS layoutNode's
|
|
4790
|
+
* `constrLst` (a genuinely conditional constraint set, e.g. one branch
|
|
4791
|
+
* per data-point count - `gear`'s composite positions its `gear1`/
|
|
4792
|
+
* `gear2`/`gear3` slots this way, so its plain, direct-child-only
|
|
4793
|
+
* `constraints` above is empty for it). Stops at a nested `dgm:layoutNode`
|
|
4794
|
+
* boundary: that child's own conditional constrLst becomes ITS
|
|
4795
|
+
* `allConstraints`, not folded into the parent's. Read-only /
|
|
4796
|
+
* interpretation-only - `constraints` above (this node's own DIRECT
|
|
4797
|
+
* constrLst) remains the one `applySmartArtLayoutDefinition` round-trips,
|
|
4798
|
+
* so editing an unrelated property can never collapse a genuinely
|
|
4799
|
+
* conditional constrLst into a single branch. `undefined` when this node
|
|
4800
|
+
* declares no constrLst at all, in or out of a choose (the common case);
|
|
4801
|
+
* otherwise a superset of `constraints` (every branch, blindly unioned -
|
|
4802
|
+
* this interpreter does not evaluate `dgm:choose` conditions when
|
|
4803
|
+
* indexing constraints, matching the same "flatten both branches"
|
|
4804
|
+
* convention `nestedLayoutNodes` already uses for `children`). See
|
|
4805
|
+
* `smartart-constraint-solver.ts`'s `buildConstraintIndex`, the only
|
|
4806
|
+
* consumer.
|
|
4807
|
+
*/
|
|
4808
|
+
allConstraints?: PptxSmartArtConstraint[];
|
|
4724
4809
|
children?: PptxSmartArtLayoutNode[];
|
|
4810
|
+
/**
|
|
4811
|
+
* The iterator attributes of the ENCLOSING `dgm:forEach` this node was
|
|
4812
|
+
* found through, when `nestedLayoutNodes` (`smartart-layout-definition
|
|
4813
|
+
* .ts`) reached it by walking one - as opposed to being a direct child of
|
|
4814
|
+
* its parent layoutNode, or reached only through a `dgm:choose` wrapper
|
|
4815
|
+
* (a condition, not an iteration, leaves this `undefined`).
|
|
4816
|
+
*
|
|
4817
|
+
* `forEach` above records a node's OWN direct `dgm:forEach` children
|
|
4818
|
+
* (which wrap ITS descendants); this is the opposite direction - the
|
|
4819
|
+
* forEach that wraps the node ITSELF, one level up. A layoutNode can sit
|
|
4820
|
+
* inside more than one enclosing forEach only via nesting, so this is
|
|
4821
|
+
* always the SINGLE nearest one, not a list.
|
|
4822
|
+
*
|
|
4823
|
+
* This is what tells a genuinely repeated per-child template
|
|
4824
|
+
* (`axis="ch"`, `ptType` absent or `"node"`) apart from a once-only or
|
|
4825
|
+
* transition-only sibling that merely happens to sit inside SOME
|
|
4826
|
+
* `dgm:forEach` (a `ptType="parTrans"`/`"sibTrans"` connector, or
|
|
4827
|
+
* `axis="followSib" cnt="1"`) - both can be direct siblings under the
|
|
4828
|
+
* SAME parent layoutNode (`lProcess1`'s `vertFlow` has one forEach for
|
|
4829
|
+
* its `parTrans` connector and a SEPARATE one, `axis="ch"`, for its
|
|
4830
|
+
* repeated `child` items; `vertFlow.forEach` bundles both, but only
|
|
4831
|
+
* `child.forEachOrigin` says which ONE produced it). See
|
|
4832
|
+
* `smartart-layout-interpreter-item-roles-recursive.ts`, the one
|
|
4833
|
+
* consumer. Read-only / interpretation-only, like `allConstraints`:
|
|
4834
|
+
* never round-tripped by `applySmartArtLayoutDefinition`.
|
|
4835
|
+
*/
|
|
4836
|
+
forEachOrigin?: PptxSmartArtIteratorAttributes;
|
|
4837
|
+
/**
|
|
4838
|
+
* The condition of the NEAREST enclosing `dgm:if` this node was found
|
|
4839
|
+
* through, when `nestedLayoutNodes` (`smartart-layout-definition.ts`)
|
|
4840
|
+
* reached it via a `dgm:choose`'s `if` branch (as opposed to a direct
|
|
4841
|
+
* child, a `dgm:else` branch - always `undefined` here, see below - or a
|
|
4842
|
+
* `dgm:forEach`, which sets {@link forEachOrigin} instead). Lets a
|
|
4843
|
+
* caller that already has the data-model node list decide whether this
|
|
4844
|
+
* node's OWN branch is genuinely live for a specific point, instead of
|
|
4845
|
+
* treating every choose-flattened branch as unconditionally present
|
|
4846
|
+
* (`nestedLayoutNodes`' pre-existing "flatten every branch" convention,
|
|
4847
|
+
* still the default when this is absent or a caller does not evaluate
|
|
4848
|
+
* it) - e.g. `cycle-matrix--fallback-n2.pptx`'s `child1group`..
|
|
4849
|
+
* `child4group`, each gated on a DIFFERENT top-level point existing and
|
|
4850
|
+
* having its own child (`axis="ch ch" st="N 1" cnt="1 0" func="cnt"
|
|
4851
|
+
* op="gte" val="1"`).
|
|
4852
|
+
*
|
|
4853
|
+
* Deliberately `undefined` for a `dgm:else` branch: ECMA-376 defines it
|
|
4854
|
+
* as "none of the sibling ifs matched", which would need the FULL
|
|
4855
|
+
* sibling list's conditions negated and ANDed together, not a single
|
|
4856
|
+
* condition - no gallery fixture measured needs an else branch's own
|
|
4857
|
+
* guard yet, so it is left unconditional (rendered by default, matching
|
|
4858
|
+
* the pre-existing flatten-everything behaviour) rather than guessed at.
|
|
4859
|
+
* Evaluate with `smartart-layout-interpreter-when.ts`'s `evaluateWhen`.
|
|
4860
|
+
*/
|
|
4861
|
+
chooseGuard?: PptxSmartArtWhen;
|
|
4725
4862
|
}
|
|
4726
4863
|
/** Metadata and root node from DiagramML CT_DiagramDefinition. */
|
|
4727
4864
|
interface PptxSmartArtLayoutDefinition {
|
|
@@ -5354,6 +5491,14 @@ interface PptxSmartArtData {
|
|
|
5354
5491
|
* Consulted by the fallback layout engine for direction/org-chart hints.
|
|
5355
5492
|
*/
|
|
5356
5493
|
presLayoutVars?: PptxSmartArtPresLayoutVars;
|
|
5494
|
+
/**
|
|
5495
|
+
* The deck's own theme minor-Latin font (`a:fontScheme/a:minorFont/a:latin/
|
|
5496
|
+
* @typeface`): what SmartArt text actually renders in when no per-run
|
|
5497
|
+
* `a:latin` override is present (the common case - see
|
|
5498
|
+
* `smartart-layout-item-font-size.ts`'s font-fit, the one consumer).
|
|
5499
|
+
* Undefined when the theme carries no font scheme at all.
|
|
5500
|
+
*/
|
|
5501
|
+
themeMinorFont?: string;
|
|
5357
5502
|
/** Relationship ID for the diagram data part (for round-trip save). */
|
|
5358
5503
|
dataRelId?: string;
|
|
5359
5504
|
/** Relationship ID for the diagram layout part. */
|
|
@@ -6313,7 +6458,7 @@ interface SmartArtPptxElement extends PptxElementBase {
|
|
|
6313
6458
|
*
|
|
6314
6459
|
* Used to show type-specific icons and previews in the editor.
|
|
6315
6460
|
*/
|
|
6316
|
-
type OleObjectType = 'excel' | 'word' | 'pdf' | 'visio' | 'mathtype' | 'package' | 'unknown';
|
|
6461
|
+
type OleObjectType = 'excel' | 'word' | 'powerpoint' | 'pdf' | 'visio' | 'mathtype' | 'package' | 'unknown';
|
|
6317
6462
|
/**
|
|
6318
6463
|
* An OLE (Object Linking and Embedding) object.
|
|
6319
6464
|
*
|
|
@@ -6391,6 +6536,15 @@ interface OlePptxElement extends PptxElementBase {
|
|
|
6391
6536
|
* `false`; `undefined` means the source authored no explicit value.
|
|
6392
6537
|
*/
|
|
6393
6538
|
oleUpdateAutomatic?: boolean;
|
|
6539
|
+
/**
|
|
6540
|
+
* Set by the in-viewer OLE content editors (`ole-edit-api.ts`) whenever
|
|
6541
|
+
* `oleEmbeddedData` and/or `previewImageData` have been changed in memory
|
|
6542
|
+
* and still need to be written back into the saved package. Never
|
|
6543
|
+
* authored from a parsed file; purely an in-memory save signal, mirroring
|
|
6544
|
+
* `PptxSlide.isDirty`. The save writer clears it once the pending write
|
|
6545
|
+
* has been queued.
|
|
6546
|
+
*/
|
|
6547
|
+
oleContentDirty?: boolean;
|
|
6394
6548
|
/** Accessibility description from `p:nvGraphicFramePr/p:cNvPr/@descr`. */
|
|
6395
6549
|
altText?: string;
|
|
6396
6550
|
/** Accessibility title from `p:nvGraphicFramePr/p:cNvPr/@title`. */
|
|
@@ -7310,10 +7464,27 @@ interface PptxNativeAnimation {
|
|
|
7310
7464
|
buildLevel?: number;
|
|
7311
7465
|
/** Group ID linking a `p:bldP` entry to its timing animation node. */
|
|
7312
7466
|
groupId?: string;
|
|
7313
|
-
/**
|
|
7467
|
+
/**
|
|
7468
|
+
* Sound relationship ID to play when animation triggers. Modern PowerPoint
|
|
7469
|
+
* (COM-verified against 2016) writes this as a `p:audio/p:cMediaNode`
|
|
7470
|
+
* sibling of the effect's own `p:childTnLst`, targeting `p:sndTgt` rather
|
|
7471
|
+
* than a shape; the legacy `p:stSnd` form (directly on `p:cTn`) is still
|
|
7472
|
+
* accepted on load for round-trip of older-authored decks, but PowerPoint
|
|
7473
|
+
* itself no longer writes it and does not recognise it back
|
|
7474
|
+
* (`Effect.EffectInformation.SoundEffect` reads empty against it).
|
|
7475
|
+
*/
|
|
7314
7476
|
soundRId?: string;
|
|
7315
7477
|
/** Resolved sound file path from relationship. */
|
|
7316
7478
|
soundPath?: string;
|
|
7479
|
+
/**
|
|
7480
|
+
* The embedded sound's `@_name` (from `p:snd`/`p:sndTgt`). For one of
|
|
7481
|
+
* PowerPoint's 19 built-in stock sounds this is the exact upper-case file
|
|
7482
|
+
* name PowerPoint itself writes (e.g. `"CHIMES.WAV"`); see
|
|
7483
|
+
* `pptx-viewer-shared`'s `effect-sound-catalogue.ts`, which matches this
|
|
7484
|
+
* value back to a gallery entry. Absent for a custom sound with no name,
|
|
7485
|
+
* or when unresolved.
|
|
7486
|
+
*/
|
|
7487
|
+
soundName?: string;
|
|
7317
7488
|
/** Whether to stop any currently playing sound (`p:endSnd`). */
|
|
7318
7489
|
stopSound?: boolean;
|
|
7319
7490
|
/**
|
|
@@ -7873,10 +8044,24 @@ interface PptxElementAnimation {
|
|
|
7873
8044
|
motionPathRotationCenterX?: number;
|
|
7874
8045
|
/** Motion-path rotation centre Y in slide percentage units (`p:rCtr/@y`). */
|
|
7875
8046
|
motionPathRotationCenterY?: number;
|
|
7876
|
-
/**
|
|
8047
|
+
/**
|
|
8048
|
+
* Sound relationship ID to play when animation triggers. Written on save
|
|
8049
|
+
* as a `p:audio/p:cMediaNode` sibling of the effect's own `p:childTnLst`
|
|
8050
|
+
* (see `PptxNativeAnimation.soundRId` for the COM-verified detail).
|
|
8051
|
+
*/
|
|
7877
8052
|
soundRId?: string;
|
|
7878
8053
|
/** Resolved sound file path from relationship. */
|
|
7879
8054
|
soundPath?: string;
|
|
8055
|
+
/**
|
|
8056
|
+
* The `@_name` to write on the embedded sound (`p:sndTgt`). For a stock
|
|
8057
|
+
* gallery pick this is the exact PowerPoint file name (e.g.
|
|
8058
|
+
* `"CHIMES.WAV"`), which is what makes PowerPoint itself recognise the
|
|
8059
|
+
* sound as that built-in entry when it reopens the saved deck (there is no
|
|
8060
|
+
* separate "built-in" flag anywhere in the schema). Set by
|
|
8061
|
+
* `pptx-viewer-shared`'s `setEffectSound` when the pick carries a
|
|
8062
|
+
* `soundName`; absent for a custom file with no meaningful name.
|
|
8063
|
+
*/
|
|
8064
|
+
soundName?: string;
|
|
7880
8065
|
/** Whether to stop any currently playing sound (`p:endSnd`). */
|
|
7881
8066
|
stopSound?: boolean;
|
|
7882
8067
|
/**
|
|
@@ -7891,7 +8076,9 @@ interface PptxElementAnimation {
|
|
|
7891
8076
|
/**
|
|
7892
8077
|
* Display name for the chosen sound (e.g. the uploaded file's name),
|
|
7893
8078
|
* shown by the authoring UI's sound picker. Purely cosmetic; has no
|
|
7894
|
-
* OOXML equivalent and is not required for playback.
|
|
8079
|
+
* OOXML equivalent and is not required for playback. For a stock gallery
|
|
8080
|
+
* pick, the UI derives its label from {@link soundName} via the catalogue
|
|
8081
|
+
* instead of this field.
|
|
7895
8082
|
*/
|
|
7896
8083
|
soundFileName?: string;
|
|
7897
8084
|
/**
|
|
@@ -10239,7 +10426,7 @@ interface PptxHandlerLoadOptions {
|
|
|
10239
10426
|
allowExternalImages?: boolean;
|
|
10240
10427
|
}
|
|
10241
10428
|
/** Output format for the save pipeline. */
|
|
10242
|
-
type PptxSaveFormat = 'pptx' | 'ppsx' | 'pptm';
|
|
10429
|
+
type PptxSaveFormat = 'pptx' | 'ppsx' | 'pptm' | 'ppt';
|
|
10243
10430
|
interface PptxHandlerSaveOptions {
|
|
10244
10431
|
headerFooter?: PptxHeaderFooter;
|
|
10245
10432
|
presentationProperties?: PptxPresentationProperties;
|
|
@@ -10335,8 +10522,23 @@ interface PptxHandlerSaveOptions {
|
|
|
10335
10522
|
* - `'pptx'` (default): Standard presentation.
|
|
10336
10523
|
* - `'ppsx'`: Slide-show file (opens in presentation mode).
|
|
10337
10524
|
* - `'pptm'`: Macro-enabled presentation (requires VBA data).
|
|
10525
|
+
* - `'ppt'`: Legacy binary PowerPoint 97-2003 presentation. Bypasses the
|
|
10526
|
+
* OOXML ZIP pipeline entirely; see `PptxHandlerRuntimeSaveLegacyPpt`.
|
|
10527
|
+
* Elements with no binary equivalent (charts, SmartArt, media, OLE, ink,
|
|
10528
|
+
* 3D models) are degraded to a rasterised preview picture or a labelled
|
|
10529
|
+
* placeholder, each reported via a `scope: 'save'`-adjacent
|
|
10530
|
+
* `PptxCompatibilityWarning`.
|
|
10338
10531
|
*/
|
|
10339
10532
|
outputFormat?: PptxSaveFormat;
|
|
10533
|
+
/**
|
|
10534
|
+
* Password for RC4 CryptoAPI encryption of a `'ppt'`-format save. Ignored
|
|
10535
|
+
* for every other {@link outputFormat}; encrypting a `.pptx`/`.ppsx`/`.pptm`
|
|
10536
|
+
* save uses {@link IPptxHandlerRuntime.saveEncrypted}'s separate AES/Agile
|
|
10537
|
+
* OLE2 wrapping instead, since the legacy binary format's own encryption
|
|
10538
|
+
* scheme is embedded directly in the `.ppt` stream rather than wrapping an
|
|
10539
|
+
* already-produced package.
|
|
10540
|
+
*/
|
|
10541
|
+
pptPassword?: string;
|
|
10340
10542
|
/**
|
|
10341
10543
|
* Embedded fonts to write back (or add) to the saved PPTX.
|
|
10342
10544
|
*
|
|
@@ -11737,16 +11939,17 @@ interface ViewerFontSource {
|
|
|
11737
11939
|
* working loader unreachable in practice. Whenever the loader learns a format,
|
|
11738
11940
|
* exactly one list has to change.
|
|
11739
11941
|
*
|
|
11740
|
-
* ## Read many, write
|
|
11942
|
+
* ## Read many, write several
|
|
11741
11943
|
*
|
|
11742
11944
|
* Input is a superset of output. We READ `.pptx`, `.ppsx`, `.pptm`, `.potx`,
|
|
11743
|
-
* legacy binary `.ppt` and portable `pptx-viewer-json`; we WRITE
|
|
11744
|
-
*
|
|
11745
|
-
*
|
|
11746
|
-
*
|
|
11747
|
-
* rather than keeping
|
|
11748
|
-
* `report.
|
|
11749
|
-
* the kind of
|
|
11945
|
+
* legacy binary `.ppt` and portable `pptx-viewer-json`; we WRITE the OpenXML
|
|
11946
|
+
* family plus legacy binary `.ppt` (via `packages/core/src/core/ppt/writer/`,
|
|
11947
|
+
* a real MS-PPT/OLE2 encoder, not a stub). `savedPresentationFileName`
|
|
11948
|
+
* REPLACES the source extension with the extension of the format actually
|
|
11949
|
+
* being written rather than keeping the source's: a deck opened as
|
|
11950
|
+
* `report.pptx` and saved back as `.ppt` (or vice versa) must have its name
|
|
11951
|
+
* agree with its bytes, which is the kind of mismatch PowerPoint itself
|
|
11952
|
+
* refuses to open.
|
|
11750
11953
|
*
|
|
11751
11954
|
* This module deliberately imports nothing, so any layer (render, export, a
|
|
11752
11955
|
* binding, a host app) can depend on it without risking an import cycle.
|
|
@@ -11775,10 +11978,14 @@ declare const PPTX_OPEN_ACCEPT: string;
|
|
|
11775
11978
|
* before it hands bytes to the loader.
|
|
11776
11979
|
*/
|
|
11777
11980
|
declare function isSupportedPresentationFile(name: string | null | undefined): boolean;
|
|
11778
|
-
/**
|
|
11981
|
+
/**
|
|
11982
|
+
* True for the binary PowerPoint 97-2003 family. `.ppt` itself is now also a
|
|
11983
|
+
* SAVE target (see {@link SavedPresentationFormat}); `.pps`/`.pot` (97-2003
|
|
11984
|
+
* show/template) remain read-only siblings sharing the same record format.
|
|
11985
|
+
*/
|
|
11779
11986
|
declare function isLegacyBinaryPresentation(name: string | null | undefined): boolean;
|
|
11780
|
-
/** The formats the save path can produce.
|
|
11781
|
-
type SavedPresentationFormat = 'pptx' | 'ppsx' | 'pptm';
|
|
11987
|
+
/** The formats the save path can produce. */
|
|
11988
|
+
type SavedPresentationFormat = 'pptx' | 'ppsx' | 'pptm' | 'ppt';
|
|
11782
11989
|
/**
|
|
11783
11990
|
* The stem of a presentation file name: directories and any loadable extension
|
|
11784
11991
|
* removed. `C:\decks\report.ppt` becomes `report`; a name with no recognised
|
|
@@ -11790,9 +11997,10 @@ declare function presentationBaseName(sourceName: string | null | undefined, fal
|
|
|
11790
11997
|
* The name a saved copy should be offered under: the source stem plus the
|
|
11791
11998
|
* extension of the format actually being written.
|
|
11792
11999
|
*
|
|
11793
|
-
* This is what turns `report.ppt` into `report.pptx` on Save As
|
|
11794
|
-
*
|
|
11795
|
-
* the
|
|
12000
|
+
* This is what turns `report.ppt` into `report.pptx` on a regular Save As,
|
|
12001
|
+
* and `report.pptx` into `report.ppt` when the user explicitly picks the
|
|
12002
|
+
* PowerPoint 97-2003 format. Keeping the source extension would mislabel the
|
|
12003
|
+
* bytes either way.
|
|
11796
12004
|
*/
|
|
11797
12005
|
declare function savedPresentationFileName(sourceName: string | null | undefined, format?: SavedPresentationFormat): string;
|
|
11798
12006
|
//#endregion
|
|
@@ -12784,6 +12992,7 @@ interface ToolbarProps {
|
|
|
12784
12992
|
onSaveAsPptx: () => void;
|
|
12785
12993
|
onSaveAsPpsx: () => void;
|
|
12786
12994
|
onSaveAsPptm: () => void;
|
|
12995
|
+
onSaveAsPpt: () => void;
|
|
12787
12996
|
hasMacros: boolean;
|
|
12788
12997
|
onCopySlideAsImage: () => void;
|
|
12789
12998
|
onPrint: () => void;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/viewer/components/Toolbar.tsx","../src/viewer/components/SlideCanvas.tsx","../src/viewer/components/SlideTemplateGalleryDialog.tsx","../src/viewer/components/SlideTemplatePreview.tsx","../src/lib/canvas-export.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/viewer/components/Toolbar.tsx","../src/viewer/components/SlideCanvas.tsx","../src/viewer/components/SlideTemplateGalleryDialog.tsx","../src/viewer/components/SlideTemplatePreview.tsx","../src/lib/canvas-export.ts"],"mappings":";;;;;;;;wBA+BgB,QAAQ,GAAG,eAAe,MAAM;;;wBCIhC,cACf,aACA,kBACA,YACA,MACA,MACA,SACA,kBACA,sBACA,iBACA,wBACA,mBACA,mBACA,eACA,kBACA,uBACA,WACA,UACA,eACA,YACA,WACA,QACA,2BACA,0BACA,SACA,eACA,aACA,eACA,mBACA,qBACA,yBACA,UACA,oBACA,oBACA,oBACA,mBACA,kBACA,yBACA,cACA,sBACA,kBACA,aACA,iBACA,kBACA,YACA,cACA,cACA,cACA,iBACA,oBACA,mBACA,eACA,kBACA,UACA,oBACA,sBACA,aACA,eACA,wBACA,uBACA,mBACA,yBACA,WACA,aACA,kBACA,cACA,mBACA,sBACA,YACE,mCAAgB,IAAA;;;UCrFF;EAChB;EACA;EACA,WAAW,YAAY;;EAEvB,SAAS;;wBAGM,6BACf,QACA,SACA,UACA,UACE,kCAAkC,MAAM;;;UCT1B;EAChB,YAAY;;EAEZ,SAAS;;wBAGM,uBACf,YACA,UACE,4BAA4B,MAAM;;;;;;;;;;;;;;;;;;;wBCGf,eACrB,SAAS,aACT,UAAS,QAAQ,WACf,QAAQ"}
|