pptx-svelte-viewer 4.50.2 → 4.51.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 +53 -0
- package/dist/{AiChatPanel-NDLeSM-5.js → AiChatPanel-DGKxlFpe.js} +1 -1
- package/dist/{export-BTzVfonp.js → export-DmRFHsQq.js} +7262 -7300
- package/dist/i18n/de.cjs +1 -24
- package/dist/i18n/de.mjs +1 -24
- package/dist/i18n/es.cjs +1 -24
- package/dist/i18n/es.mjs +1 -24
- package/dist/i18n/fr.cjs +1 -24
- package/dist/i18n/fr.mjs +1 -24
- package/dist/i18n/zh-CN.cjs +0 -23
- package/dist/i18n/zh-CN.mjs +0 -23
- package/dist/index.d.ts +38 -30
- package/dist/index.js +1 -1
- package/dist/viewer/index.d.ts +54 -18
- package/dist/viewer/index.js +1 -1
- package/package.json +3 -3
package/dist/i18n/zh-CN.cjs
CHANGED
|
@@ -2513,9 +2513,7 @@ var translations11 = {
|
|
|
2513
2513
|
var translations12 = {
|
|
2514
2514
|
"pptx.comments.addComment": "\u6DFB\u52A0\u6279\u6CE8",
|
|
2515
2515
|
"pptx.comments.noComments": "\u6682\u65E0\u6279\u6CE8",
|
|
2516
|
-
"pptx.comments.author": "\u4F5C\u8005",
|
|
2517
2516
|
"pptx.comments.resolved": "\u5DF2\u89E3\u51B3",
|
|
2518
|
-
"pptx.comments.clickToSelect": "\u5355\u51FB\u4EE5\u9009\u62E9\u5143\u7D20",
|
|
2519
2517
|
"pptx.comments.deletedElement": "\u5DF2\u5220\u9664\u7684\u5143\u7D20",
|
|
2520
2518
|
"pptx.comments.save": "\u4FDD\u5B58",
|
|
2521
2519
|
"pptx.comments.cancel": "\u53D6\u6D88",
|
|
@@ -2525,7 +2523,6 @@ var translations12 = {
|
|
|
2525
2523
|
"pptx.comments.unresolve": "\u6807\u8BB0\u4E3A\u672A\u89E3\u51B3",
|
|
2526
2524
|
"pptx.comments.delete": "\u5220\u9664",
|
|
2527
2525
|
"pptx.comments.commentingOn": "\u6279\u6CE8\u5BF9\u8C61\uFF1A",
|
|
2528
|
-
"pptx.comments.commentOnElement": "\u6279\u6CE8 {{element}}...",
|
|
2529
2526
|
"pptx.comments.addCommentPlaceholder": "\u6DFB\u52A0\u6279\u6CE8...",
|
|
2530
2527
|
"pptx.collaboration.status.connected": "\u5DF2\u8FDE\u63A5",
|
|
2531
2528
|
"pptx.collaboration.status.connecting": "\u6B63\u5728\u8FDE\u63A5...",
|
|
@@ -2638,7 +2635,6 @@ var translations12 = {
|
|
|
2638
2635
|
"pptx.share.copyLinkButton": "\u590D\u5236\u94FE\u63A5",
|
|
2639
2636
|
"pptx.broadcast.presenterPlaceholder": "\u6F14\u8BB2\u8005",
|
|
2640
2637
|
"pptx.comments.defaultAuthorName": "\u4F60",
|
|
2641
|
-
"pptx.comments.selectSlidePrompt": "\u9009\u62E9\u4E00\u5F20\u5E7B\u706F\u7247\u4EE5\u67E5\u770B\u6279\u6CE8\u3002",
|
|
2642
2638
|
"pptx.comments.mentionPlaceholder": "\u8F93\u5165 @ \u63D0\u53CA\u4ED6\u4EBA",
|
|
2643
2639
|
"pptx.comments.mentionSuggestions": "\u4EBA\u5458"
|
|
2644
2640
|
};
|
|
@@ -2820,7 +2816,6 @@ var translations15 = {
|
|
|
2820
2816
|
"pptx.elementType.group": "\u7EC4\u5408",
|
|
2821
2817
|
"pptx.elementType.ink": "\u58A8\u8FF9",
|
|
2822
2818
|
"pptx.elementType.object": "\u5BF9\u8C61",
|
|
2823
|
-
"pptx.align.toolbarLabel": "\u5BF9\u9F50\u548C\u5206\u5E03",
|
|
2824
2819
|
"pptx.arrange.deleteSelection": "\u5220\u9664\u9009\u62E9",
|
|
2825
2820
|
"pptx.arrange.duplicateSelection": "\u590D\u5236\u6240\u9009\u5185\u5BB9",
|
|
2826
2821
|
"pptx.arrange.groupLabel": "\u6392\u5217",
|
|
@@ -2829,12 +2824,6 @@ var translations15 = {
|
|
|
2829
2824
|
"pptx.design.slideSizeTooltip": "\u66F4\u6539\u5E7B\u706F\u7247\u5C3A\u5BF8\uFF0816:9\u30014:3\u3001\u81EA\u5B9A\u4E49\uFF09",
|
|
2830
2825
|
"pptx.element.hasAction": "\u5DF2\u8BBE\u7F6E\u64CD\u4F5C",
|
|
2831
2826
|
"pptx.element.linkFallback": "\u94FE\u63A5",
|
|
2832
|
-
"pptx.align.bottom": "\u5E95\u7AEF\u5BF9\u9F50",
|
|
2833
|
-
"pptx.align.centerH": "\u5C45\u4E2D\u5BF9\u9F50",
|
|
2834
|
-
"pptx.align.left": "\u5DE6\u5BF9\u9F50",
|
|
2835
|
-
"pptx.align.middle": "\u5782\u76F4\u5C45\u4E2D",
|
|
2836
|
-
"pptx.align.right": "\u53F3\u5BF9\u9F50",
|
|
2837
|
-
"pptx.align.top": "\u9876\u90E8\u5BF9\u9F50",
|
|
2838
2827
|
"pptx.action.gotoSlide": "\u8F6C\u5230\u5E7B\u706F\u7247",
|
|
2839
2828
|
"pptx.action.gotoUrl": "\u8F6C\u5230\u7F51\u5740",
|
|
2840
2829
|
"pptx.action.slideNumberPlaceholder": "\u5E7B\u706F\u7247\u7F16\u53F7\uFF08\u4ECE 1 \u5F00\u59CB\uFF09",
|
|
@@ -3095,7 +3084,6 @@ var translations17 = {
|
|
|
3095
3084
|
"pptx.hyperlinkDialog.apply": "\u5E94\u7528",
|
|
3096
3085
|
"pptx.linkTooltip.followLink": "\u6309\u4F4F Ctrl \u5E76\u5355\u51FB\u4EE5\u6253\u5F00\u94FE\u63A5",
|
|
3097
3086
|
"pptx.linkTooltip.presentationMode": "\u5728\u6F14\u793A\u6A21\u5F0F\u4E0B\u6FC0\u6D3B",
|
|
3098
|
-
"pptx.properties.title": "\u6587\u6863\u5C5E\u6027",
|
|
3099
3087
|
"pptx.properties.titleLabel": "\u6807\u9898",
|
|
3100
3088
|
"pptx.properties.author": "\u4F5C\u8005",
|
|
3101
3089
|
"pptx.properties.subject": "\u4E3B\u9898",
|
|
@@ -3140,7 +3128,6 @@ var translations17 = {
|
|
|
3140
3128
|
"pptx.review.translate": "\u7FFB\u8BD1",
|
|
3141
3129
|
"pptx.review.translateTooltip": "\u7FFB\u8BD1\u9009\u5B9A\u7684\u6587\u672C",
|
|
3142
3130
|
"pptx.shortcuts.action.cancelTextEdit": "\u53D6\u6D88\u5185\u5D4C\u6587\u672C/\u5173\u95ED\u83DC\u5355",
|
|
3143
|
-
"pptx.shortcuts.action.clearSelection": "\u6E05\u9664\u9009\u62E9/\u5173\u95ED\u83DC\u5355/\u53D6\u6D88\u7F16\u8F91",
|
|
3144
3131
|
"pptx.shortcuts.action.commitTextEdit": "\u63D0\u4EA4\u5185\u8054\u6587\u672C\u7F16\u8F91",
|
|
3145
3132
|
"pptx.shortcuts.action.copyElement": "\u590D\u5236\u9009\u5B9A\u7684\u5143\u7D20",
|
|
3146
3133
|
"pptx.shortcuts.action.cutElement": "\u526A\u5207\u6240\u9009\u5143\u7D20",
|
|
@@ -3151,7 +3138,6 @@ var translations17 = {
|
|
|
3151
3138
|
"pptx.shortcuts.action.nudgeElementLarge": "\u5FAE\u79FB\u6240\u9009\u5143\u7D20\uFF08\u5927\uFF09",
|
|
3152
3139
|
"pptx.shortcuts.action.pasteElement": "\u7C98\u8D34\u5143\u7D20",
|
|
3153
3140
|
"pptx.shortcuts.action.prevSlide": "\u4E0A\u4E00\u5F20\u5E7B\u706F\u7247\uFF08\u65E0\u9009\u62E9\uFF09",
|
|
3154
|
-
"pptx.shortcuts.action.redoAlternate": "\u91CD\u505A\uFF08\u5907\u7528\uFF09",
|
|
3155
3141
|
"pptx.shortcuts.action.selectAll": "\u9009\u62E9\u6240\u6709\u5143\u7D20",
|
|
3156
3142
|
"pptx.shortcuts.action.zoomCanvas": "\u7F29\u653E\u753B\u5E03",
|
|
3157
3143
|
"pptx.shortcuts.close": "\u5173\u95ED",
|
|
@@ -4341,8 +4327,6 @@ var translations26 = {
|
|
|
4341
4327
|
"pptx.ribbon.alignTop": "\u9876\u90E8\u5BF9\u9F50",
|
|
4342
4328
|
"pptx.ribbon.alignMiddle": "\u5782\u76F4\u5C45\u4E2D",
|
|
4343
4329
|
"pptx.ribbon.alignBottom": "\u5E95\u7AEF\u5BF9\u9F50",
|
|
4344
|
-
"pptx.ribbon.distributeHorizontally": "\u6C34\u5E73\u5206\u5E03",
|
|
4345
|
-
"pptx.ribbon.distributeVertically": "\u5782\u76F4\u5206\u5E03",
|
|
4346
4330
|
"pptx.ribbon.group": "\u7EC4\u5408",
|
|
4347
4331
|
"pptx.ribbon.ungroup": "\u53D6\u6D88\u7EC4\u5408",
|
|
4348
4332
|
"pptx.ribbon.setUpShow": "\u8BBE\u7F6E\u653E\u6620",
|
|
@@ -5633,15 +5617,10 @@ var translations39 = {
|
|
|
5633
5617
|
"pptx.font.group.all": "\u6240\u6709\u5B57\u4F53",
|
|
5634
5618
|
"pptx.font.role.heading": "\u6807\u9898",
|
|
5635
5619
|
"pptx.font.role.body": "\u6B63\u6587",
|
|
5636
|
-
"pptx.text3d.type": "\u7C7B\u578B",
|
|
5637
|
-
"pptx.text3d.width": "\u5BBD\u5EA6",
|
|
5638
|
-
"pptx.text3d.height": "\u9AD8\u5EA6",
|
|
5639
5620
|
"pptx.text3d.title": "3D\u6587\u5B57",
|
|
5640
5621
|
"pptx.text3d.extrusion": "\u4E09\u7EF4\u68F1\u53F0",
|
|
5641
5622
|
"pptx.text3d.depth": "\u6DF1\u5EA6\uFF08\u70B9\uFF09",
|
|
5642
|
-
"pptx.text3d.color": "\u989C\u8272",
|
|
5643
5623
|
"pptx.text3d.topBevel": "\u9876\u90E8\u659C\u89D2",
|
|
5644
|
-
"pptx.text3d.bottomBevel": "\u5E95\u90E8\u659C\u89D2",
|
|
5645
5624
|
"pptx.text3d.material": "\u6750\u8D28",
|
|
5646
5625
|
"pptx.textEffects.title": "\u6587\u5B57\u6548\u679C",
|
|
5647
5626
|
"pptx.textEffects.shadow": "\u6587\u5B57\u9634\u5F71",
|
|
@@ -5793,10 +5772,8 @@ var translations39 = {
|
|
|
5793
5772
|
"pptx.textAdvanced.lineSpacingExact": "\u884C\u8DDD\uFF08\u7CBE\u786E\uFF09",
|
|
5794
5773
|
"pptx.textAdvanced.marginLeft": "\u5DE6\u8FB9\u8DDD",
|
|
5795
5774
|
"pptx.textEffects.adjustment": "\u8C03\u6574",
|
|
5796
|
-
"pptx.textEffects.glowColor": "\u53D1\u5149\u989C\u8272",
|
|
5797
5775
|
"pptx.textEffects.outline": "\u6587\u5B57\u8F6E\u5ED3",
|
|
5798
5776
|
"pptx.textEffects.outlineWidth": "\u8F6E\u5ED3\u5BBD\u5EA6",
|
|
5799
|
-
"pptx.textEffects.shadowColor": "\u9634\u5F71\u989C\u8272",
|
|
5800
5777
|
"pptx.textEffects.transform": "\u53D8\u6362",
|
|
5801
5778
|
"pptx.textFormatting.columns": "\u5217",
|
|
5802
5779
|
"pptx.textFormatting.columnSpacing": "\u5217\u95F4\u8DDD",
|
package/dist/i18n/zh-CN.mjs
CHANGED
|
@@ -2487,9 +2487,7 @@ var translations11 = {
|
|
|
2487
2487
|
var translations12 = {
|
|
2488
2488
|
"pptx.comments.addComment": "\u6DFB\u52A0\u6279\u6CE8",
|
|
2489
2489
|
"pptx.comments.noComments": "\u6682\u65E0\u6279\u6CE8",
|
|
2490
|
-
"pptx.comments.author": "\u4F5C\u8005",
|
|
2491
2490
|
"pptx.comments.resolved": "\u5DF2\u89E3\u51B3",
|
|
2492
|
-
"pptx.comments.clickToSelect": "\u5355\u51FB\u4EE5\u9009\u62E9\u5143\u7D20",
|
|
2493
2491
|
"pptx.comments.deletedElement": "\u5DF2\u5220\u9664\u7684\u5143\u7D20",
|
|
2494
2492
|
"pptx.comments.save": "\u4FDD\u5B58",
|
|
2495
2493
|
"pptx.comments.cancel": "\u53D6\u6D88",
|
|
@@ -2499,7 +2497,6 @@ var translations12 = {
|
|
|
2499
2497
|
"pptx.comments.unresolve": "\u6807\u8BB0\u4E3A\u672A\u89E3\u51B3",
|
|
2500
2498
|
"pptx.comments.delete": "\u5220\u9664",
|
|
2501
2499
|
"pptx.comments.commentingOn": "\u6279\u6CE8\u5BF9\u8C61\uFF1A",
|
|
2502
|
-
"pptx.comments.commentOnElement": "\u6279\u6CE8 {{element}}...",
|
|
2503
2500
|
"pptx.comments.addCommentPlaceholder": "\u6DFB\u52A0\u6279\u6CE8...",
|
|
2504
2501
|
"pptx.collaboration.status.connected": "\u5DF2\u8FDE\u63A5",
|
|
2505
2502
|
"pptx.collaboration.status.connecting": "\u6B63\u5728\u8FDE\u63A5...",
|
|
@@ -2612,7 +2609,6 @@ var translations12 = {
|
|
|
2612
2609
|
"pptx.share.copyLinkButton": "\u590D\u5236\u94FE\u63A5",
|
|
2613
2610
|
"pptx.broadcast.presenterPlaceholder": "\u6F14\u8BB2\u8005",
|
|
2614
2611
|
"pptx.comments.defaultAuthorName": "\u4F60",
|
|
2615
|
-
"pptx.comments.selectSlidePrompt": "\u9009\u62E9\u4E00\u5F20\u5E7B\u706F\u7247\u4EE5\u67E5\u770B\u6279\u6CE8\u3002",
|
|
2616
2612
|
"pptx.comments.mentionPlaceholder": "\u8F93\u5165 @ \u63D0\u53CA\u4ED6\u4EBA",
|
|
2617
2613
|
"pptx.comments.mentionSuggestions": "\u4EBA\u5458"
|
|
2618
2614
|
};
|
|
@@ -2794,7 +2790,6 @@ var translations15 = {
|
|
|
2794
2790
|
"pptx.elementType.group": "\u7EC4\u5408",
|
|
2795
2791
|
"pptx.elementType.ink": "\u58A8\u8FF9",
|
|
2796
2792
|
"pptx.elementType.object": "\u5BF9\u8C61",
|
|
2797
|
-
"pptx.align.toolbarLabel": "\u5BF9\u9F50\u548C\u5206\u5E03",
|
|
2798
2793
|
"pptx.arrange.deleteSelection": "\u5220\u9664\u9009\u62E9",
|
|
2799
2794
|
"pptx.arrange.duplicateSelection": "\u590D\u5236\u6240\u9009\u5185\u5BB9",
|
|
2800
2795
|
"pptx.arrange.groupLabel": "\u6392\u5217",
|
|
@@ -2803,12 +2798,6 @@ var translations15 = {
|
|
|
2803
2798
|
"pptx.design.slideSizeTooltip": "\u66F4\u6539\u5E7B\u706F\u7247\u5C3A\u5BF8\uFF0816:9\u30014:3\u3001\u81EA\u5B9A\u4E49\uFF09",
|
|
2804
2799
|
"pptx.element.hasAction": "\u5DF2\u8BBE\u7F6E\u64CD\u4F5C",
|
|
2805
2800
|
"pptx.element.linkFallback": "\u94FE\u63A5",
|
|
2806
|
-
"pptx.align.bottom": "\u5E95\u7AEF\u5BF9\u9F50",
|
|
2807
|
-
"pptx.align.centerH": "\u5C45\u4E2D\u5BF9\u9F50",
|
|
2808
|
-
"pptx.align.left": "\u5DE6\u5BF9\u9F50",
|
|
2809
|
-
"pptx.align.middle": "\u5782\u76F4\u5C45\u4E2D",
|
|
2810
|
-
"pptx.align.right": "\u53F3\u5BF9\u9F50",
|
|
2811
|
-
"pptx.align.top": "\u9876\u90E8\u5BF9\u9F50",
|
|
2812
2801
|
"pptx.action.gotoSlide": "\u8F6C\u5230\u5E7B\u706F\u7247",
|
|
2813
2802
|
"pptx.action.gotoUrl": "\u8F6C\u5230\u7F51\u5740",
|
|
2814
2803
|
"pptx.action.slideNumberPlaceholder": "\u5E7B\u706F\u7247\u7F16\u53F7\uFF08\u4ECE 1 \u5F00\u59CB\uFF09",
|
|
@@ -3069,7 +3058,6 @@ var translations17 = {
|
|
|
3069
3058
|
"pptx.hyperlinkDialog.apply": "\u5E94\u7528",
|
|
3070
3059
|
"pptx.linkTooltip.followLink": "\u6309\u4F4F Ctrl \u5E76\u5355\u51FB\u4EE5\u6253\u5F00\u94FE\u63A5",
|
|
3071
3060
|
"pptx.linkTooltip.presentationMode": "\u5728\u6F14\u793A\u6A21\u5F0F\u4E0B\u6FC0\u6D3B",
|
|
3072
|
-
"pptx.properties.title": "\u6587\u6863\u5C5E\u6027",
|
|
3073
3061
|
"pptx.properties.titleLabel": "\u6807\u9898",
|
|
3074
3062
|
"pptx.properties.author": "\u4F5C\u8005",
|
|
3075
3063
|
"pptx.properties.subject": "\u4E3B\u9898",
|
|
@@ -3114,7 +3102,6 @@ var translations17 = {
|
|
|
3114
3102
|
"pptx.review.translate": "\u7FFB\u8BD1",
|
|
3115
3103
|
"pptx.review.translateTooltip": "\u7FFB\u8BD1\u9009\u5B9A\u7684\u6587\u672C",
|
|
3116
3104
|
"pptx.shortcuts.action.cancelTextEdit": "\u53D6\u6D88\u5185\u5D4C\u6587\u672C/\u5173\u95ED\u83DC\u5355",
|
|
3117
|
-
"pptx.shortcuts.action.clearSelection": "\u6E05\u9664\u9009\u62E9/\u5173\u95ED\u83DC\u5355/\u53D6\u6D88\u7F16\u8F91",
|
|
3118
3105
|
"pptx.shortcuts.action.commitTextEdit": "\u63D0\u4EA4\u5185\u8054\u6587\u672C\u7F16\u8F91",
|
|
3119
3106
|
"pptx.shortcuts.action.copyElement": "\u590D\u5236\u9009\u5B9A\u7684\u5143\u7D20",
|
|
3120
3107
|
"pptx.shortcuts.action.cutElement": "\u526A\u5207\u6240\u9009\u5143\u7D20",
|
|
@@ -3125,7 +3112,6 @@ var translations17 = {
|
|
|
3125
3112
|
"pptx.shortcuts.action.nudgeElementLarge": "\u5FAE\u79FB\u6240\u9009\u5143\u7D20\uFF08\u5927\uFF09",
|
|
3126
3113
|
"pptx.shortcuts.action.pasteElement": "\u7C98\u8D34\u5143\u7D20",
|
|
3127
3114
|
"pptx.shortcuts.action.prevSlide": "\u4E0A\u4E00\u5F20\u5E7B\u706F\u7247\uFF08\u65E0\u9009\u62E9\uFF09",
|
|
3128
|
-
"pptx.shortcuts.action.redoAlternate": "\u91CD\u505A\uFF08\u5907\u7528\uFF09",
|
|
3129
3115
|
"pptx.shortcuts.action.selectAll": "\u9009\u62E9\u6240\u6709\u5143\u7D20",
|
|
3130
3116
|
"pptx.shortcuts.action.zoomCanvas": "\u7F29\u653E\u753B\u5E03",
|
|
3131
3117
|
"pptx.shortcuts.close": "\u5173\u95ED",
|
|
@@ -4315,8 +4301,6 @@ var translations26 = {
|
|
|
4315
4301
|
"pptx.ribbon.alignTop": "\u9876\u90E8\u5BF9\u9F50",
|
|
4316
4302
|
"pptx.ribbon.alignMiddle": "\u5782\u76F4\u5C45\u4E2D",
|
|
4317
4303
|
"pptx.ribbon.alignBottom": "\u5E95\u7AEF\u5BF9\u9F50",
|
|
4318
|
-
"pptx.ribbon.distributeHorizontally": "\u6C34\u5E73\u5206\u5E03",
|
|
4319
|
-
"pptx.ribbon.distributeVertically": "\u5782\u76F4\u5206\u5E03",
|
|
4320
4304
|
"pptx.ribbon.group": "\u7EC4\u5408",
|
|
4321
4305
|
"pptx.ribbon.ungroup": "\u53D6\u6D88\u7EC4\u5408",
|
|
4322
4306
|
"pptx.ribbon.setUpShow": "\u8BBE\u7F6E\u653E\u6620",
|
|
@@ -5607,15 +5591,10 @@ var translations39 = {
|
|
|
5607
5591
|
"pptx.font.group.all": "\u6240\u6709\u5B57\u4F53",
|
|
5608
5592
|
"pptx.font.role.heading": "\u6807\u9898",
|
|
5609
5593
|
"pptx.font.role.body": "\u6B63\u6587",
|
|
5610
|
-
"pptx.text3d.type": "\u7C7B\u578B",
|
|
5611
|
-
"pptx.text3d.width": "\u5BBD\u5EA6",
|
|
5612
|
-
"pptx.text3d.height": "\u9AD8\u5EA6",
|
|
5613
5594
|
"pptx.text3d.title": "3D\u6587\u5B57",
|
|
5614
5595
|
"pptx.text3d.extrusion": "\u4E09\u7EF4\u68F1\u53F0",
|
|
5615
5596
|
"pptx.text3d.depth": "\u6DF1\u5EA6\uFF08\u70B9\uFF09",
|
|
5616
|
-
"pptx.text3d.color": "\u989C\u8272",
|
|
5617
5597
|
"pptx.text3d.topBevel": "\u9876\u90E8\u659C\u89D2",
|
|
5618
|
-
"pptx.text3d.bottomBevel": "\u5E95\u90E8\u659C\u89D2",
|
|
5619
5598
|
"pptx.text3d.material": "\u6750\u8D28",
|
|
5620
5599
|
"pptx.textEffects.title": "\u6587\u5B57\u6548\u679C",
|
|
5621
5600
|
"pptx.textEffects.shadow": "\u6587\u5B57\u9634\u5F71",
|
|
@@ -5767,10 +5746,8 @@ var translations39 = {
|
|
|
5767
5746
|
"pptx.textAdvanced.lineSpacingExact": "\u884C\u8DDD\uFF08\u7CBE\u786E\uFF09",
|
|
5768
5747
|
"pptx.textAdvanced.marginLeft": "\u5DE6\u8FB9\u8DDD",
|
|
5769
5748
|
"pptx.textEffects.adjustment": "\u8C03\u6574",
|
|
5770
|
-
"pptx.textEffects.glowColor": "\u53D1\u5149\u989C\u8272",
|
|
5771
5749
|
"pptx.textEffects.outline": "\u6587\u5B57\u8F6E\u5ED3",
|
|
5772
5750
|
"pptx.textEffects.outlineWidth": "\u8F6E\u5ED3\u5BBD\u5EA6",
|
|
5773
|
-
"pptx.textEffects.shadowColor": "\u9634\u5F71\u989C\u8272",
|
|
5774
5751
|
"pptx.textEffects.transform": "\u53D8\u6362",
|
|
5775
5752
|
"pptx.textFormatting.columns": "\u5217",
|
|
5776
5753
|
"pptx.textFormatting.columnSpacing": "\u5217\u95F4\u8DDD",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as ooxml_ui_pptx from 'ooxml-ui/pptx';
|
|
2
|
-
import { PrintSettings, ViewportFitOptions, ViewerFontSource, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, ToolbarActionId, RibbonAddInTab, ViewerCustomization, CanvasSize, DocumentStorage, ViewerAutosaveStatus, AutosaveRecord, ConnectionStatus, CollaborationInput, CollaborationConfig, CollaborationState, PowerPointViewerAPI, ViewerCustomizationApi, PptxAutosaveStatusKind } from 'ooxml-ui/pptx';
|
|
2
|
+
import { PrintSettings, ViewportFitOptions, ViewerFontSource, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, GoogleFontsOption, ToolbarActionId, RibbonAddInTab, ViewerCustomization, CanvasSize, DocumentStorage, ViewerAutosaveStatus, AutosaveRecord, ConnectionStatus, CollaborationInput, CollaborationConfig, CollaborationState, PowerPointViewerAPI, ViewerCustomizationApi, PptxAutosaveStatusKind } from 'ooxml-ui/pptx';
|
|
3
3
|
export { AutosaveRecord, BACKSTAGE_CARD_IDS, BACKSTAGE_PAGE_IDS, BackstageCustomization, CANVAS_CONTEXT_MENU_COMMAND_IDS, CanvasSize, CollaborationConfig, CollaborationRole, CollaborationShellState, CollaborationState, CollaborationTransport, ConnectionStatus, ContextMenuCustomization, EDITOR_SHORTCUT_ACTION_IDS, ELEMENT_CONTEXT_MENU_COMMAND_IDS, ElementUpdate, ElementUpdateOptions, ExternalCollaborationAwareness, ExternalCollaborationSession, ExternalCollaborationSnapshot, HostCanvasMenuContext, HostElementMenuContext, HostMenuCommand, KeyboardCustomization, OPTIONS_PAGE_IDS, OPTIONS_SECTION_IDS, OPTIONS_SETTING_IDS, OptionsCustomization, OptionsPageId, OptionsSectionId, OptionsSettingId, OptionsSettingValues, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, RIBBON_CONTROL_IDS, RIBBON_GROUP_IDS, RIBBON_TAB_IDS, RemoteCursor, ResolvedCustomization, RibbonContextualTabId, RibbonControlId, RibbonCustomization, RibbonGroupId, SanitizedPresence, SavedPresentationFormat, SessionDeck, ShortcutChord, TOOLBAR_BUTTON_IDS, VIEWER_DIALOG_IDS, VIEWER_EXPORT_FORMAT_IDS, VIEWER_FEATURE_IDS, VIEWER_PANEL_IDS, ViewerCustomization, ViewerCustomizationApi, ViewerDialogId, ViewerExportFormatId, ViewerFeatureId, ViewerPanelId, ViewerTheme, ViewerThemeColors, ViewportFitOptions, ViewportFitPadding, createImageElementFromFile, defaultCssVars, defaultRadius, defaultThemeColors, deleteAutosaveSnapshot, describeCollaborationShellState, forgetSessionDeck, getAutosaveSnapshot, getSessionTabId, isLegacyBinaryPresentation, isSupportedPresentationFile, listAutosaveSnapshots, loadPresentationDeck, loadSessionDeck, parsePresentationSessionId, presentationBaseName, rememberSessionDeck, restoreSessionDeck, savedPresentationFileName, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius } from 'ooxml-ui/pptx';
|
|
4
4
|
import { Component } from 'svelte';
|
|
5
5
|
import { PptxAiConfig } from 'ooxml-ui/pptx/ai';
|
|
@@ -8,6 +8,26 @@ import { LocaleCatalogEntry } from 'ooxml-ui/pptx/i18n';
|
|
|
8
8
|
import { SvgExportOptions, PptxData, PptxSlide, PptxCoreProperties, PptxSaveFormat } from 'ooxml-core/pptx';
|
|
9
9
|
import { Options } from 'html2canvas-pro';
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Minimal, dependency-free translation layer for the Svelte binding.
|
|
13
|
+
*
|
|
14
|
+
* The canonical English dictionary lives in `pptx-viewer-shared/i18n` (shared
|
|
15
|
+
* with the React, Vue, and Angular bindings, which each plug it into their
|
|
16
|
+
* framework's i18n library). Svelte has no blessed i18n runtime, so this
|
|
17
|
+
* module implements the small subset the viewer needs: dictionary lookup by
|
|
18
|
+
* locale with English fallback, `{{name}}` interpolation, and the shared
|
|
19
|
+
* `keyToLabel` humanised fallback for missing keys.
|
|
20
|
+
*/
|
|
21
|
+
/** A flat dictionary of dotted `pptx.*` keys to display strings. */
|
|
22
|
+
type TranslationDictionary = Record<string, string>;
|
|
23
|
+
/** Translate `key`, interpolating `{{name}}` placeholders from `params`. */
|
|
24
|
+
type Translator = (key: string, params?: Record<string, string | number>) => string;
|
|
25
|
+
/**
|
|
26
|
+
* Register (or extend) the dictionary for a locale. Later registrations are
|
|
27
|
+
* merged over earlier ones, so hosts can override individual keys.
|
|
28
|
+
*/
|
|
29
|
+
declare function registerTranslations(locale: string, dictionary: TranslationDictionary): void;
|
|
30
|
+
|
|
11
31
|
/**
|
|
12
32
|
* Animated-GIF export capture/encode pipeline. All the pure logic is shared:
|
|
13
33
|
* `planGifFrames` derives the per-slide frame delays (default duration +
|
|
@@ -40,15 +60,13 @@ interface ExportGifOptions {
|
|
|
40
60
|
}
|
|
41
61
|
|
|
42
62
|
/**
|
|
43
|
-
* Print flow:
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* pages as vector SVG, rasterises notes/handout thumbnails, and opens the
|
|
51
|
-
* print surface.
|
|
63
|
+
* Print flow: the shared `planPrintJob` decides what prints (range, current
|
|
64
|
+
* slide, hidden slides), through which path and under which window title, and
|
|
65
|
+
* the shared `build*PrintJobDocument` functions assemble the DOMPurify-hardened
|
|
66
|
+
* document. This module (the Svelte counterpart of Vue's `usePrint`) keeps
|
|
67
|
+
* only its capture and its opener: it exports direct slide pages as vector SVG
|
|
68
|
+
* (captured instead when the export throws), rasterises notes/handout
|
|
69
|
+
* thumbnails, and opens the print surface.
|
|
52
70
|
*
|
|
53
71
|
* **Print surface / popup-blocker caveats:** the default opener renders the
|
|
54
72
|
* document into a hidden same-origin `<iframe srcdoc>` and calls
|
|
@@ -102,26 +120,6 @@ interface ExportPdfOptions {
|
|
|
102
120
|
signal?: AbortSignal;
|
|
103
121
|
}
|
|
104
122
|
|
|
105
|
-
/**
|
|
106
|
-
* Minimal, dependency-free translation layer for the Svelte binding.
|
|
107
|
-
*
|
|
108
|
-
* The canonical English dictionary lives in `pptx-viewer-shared/i18n` (shared
|
|
109
|
-
* with the React, Vue, and Angular bindings, which each plug it into their
|
|
110
|
-
* framework's i18n library). Svelte has no blessed i18n runtime, so this
|
|
111
|
-
* module implements the small subset the viewer needs: dictionary lookup by
|
|
112
|
-
* locale with English fallback, `{{name}}` interpolation, and the shared
|
|
113
|
-
* `keyToLabel` humanised fallback for missing keys.
|
|
114
|
-
*/
|
|
115
|
-
/** A flat dictionary of dotted `pptx.*` keys to display strings. */
|
|
116
|
-
type TranslationDictionary = Record<string, string>;
|
|
117
|
-
/** Translate `key`, interpolating `{{name}}` placeholders from `params`. */
|
|
118
|
-
type Translator = (key: string, params?: Record<string, string | number>) => string;
|
|
119
|
-
/**
|
|
120
|
-
* Register (or extend) the dictionary for a locale. Later registrations are
|
|
121
|
-
* merged over earlier ones, so hosts can override individual keys.
|
|
122
|
-
*/
|
|
123
|
-
declare function registerTranslations(locale: string, dictionary: TranslationDictionary): void;
|
|
124
|
-
|
|
125
123
|
type SvgExportSingleSlideOptions = SvgExportOptions;
|
|
126
124
|
type SvgExportAllOptions = SvgExportOptions;
|
|
127
125
|
/** Export one parsed slide as self-contained SVG markup. */
|
|
@@ -215,6 +213,16 @@ interface PowerPointViewerProps extends ViewportFitOptions {
|
|
|
215
213
|
accountAuth?: AccountAuthConfig;
|
|
216
214
|
/** Slide shown after load (0-based, clamped). Default 0. */
|
|
217
215
|
initialSlide?: number;
|
|
216
|
+
/**
|
|
217
|
+
* Google Fonts fallback for deck fonts that are neither installed nor
|
|
218
|
+
* embedded. Unset: the viewer loads them from `fonts.googleapis.com`.
|
|
219
|
+
* `false`: no request goes to Google (`fonts.googleapis.com` or
|
|
220
|
+
* `fonts.gstatic.com`); text uses installed, embedded or fallback fonts.
|
|
221
|
+
* `{ baseUrl }`: requests go to a self-hosted mirror of the Google Fonts
|
|
222
|
+
* CSS2 API instead, so the user's browser never contacts Google. An
|
|
223
|
+
* invalid `baseUrl` disables the fallback (with a console warning).
|
|
224
|
+
*/
|
|
225
|
+
googleFonts?: GoogleFontsOption;
|
|
218
226
|
/** Show the thumbnail sidebar. Default true. */
|
|
219
227
|
showThumbnails?: boolean;
|
|
220
228
|
/** Show the navigation/zoom toolbar. Default true. */
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as o, c as s, l as r, o as t, s as S, t as a, y as i } from "./export-
|
|
1
|
+
import { a as o, c as s, l as r, o as t, s as S, t as a, y as i } from "./export-DmRFHsQq.js";
|
|
2
2
|
import { i as T } from "./translator-2U8GG-ce.js";
|
|
3
3
|
import "./i18n.js";
|
|
4
4
|
import { BACKSTAGE_CARD_IDS as n, BACKSTAGE_PAGE_IDS as E, CANVAS_CONTEXT_MENU_COMMAND_IDS as O, EDITOR_SHORTCUT_ACTION_IDS as D, ELEMENT_CONTEXT_MENU_COMMAND_IDS as N, OPTIONS_PAGE_IDS as A, OPTIONS_SECTION_IDS as m, OPTIONS_SETTING_IDS as C, PPTX_OPEN_ACCEPT as P, PRESENTATION_OPEN_EXTENSIONS as d, RIBBON_CONTROL_IDS as R, RIBBON_GROUP_IDS as p, RIBBON_TAB_IDS as v, TOOLBAR_BUTTON_IDS as B, VIEWER_DIALOG_IDS as g, VIEWER_EXPORT_FORMAT_IDS as h, VIEWER_FEATURE_IDS as c, VIEWER_PANEL_IDS as u, createImageElementFromFile as L, defaultCssVars as M, defaultRadius as V, defaultThemeColors as f, deleteAutosaveSnapshot as k, describeCollaborationShellState as G, forgetSessionDeck as b, getAutosaveSnapshot as x, getSessionTabId as F, isLegacyBinaryPresentation as U, isSupportedPresentationFile as X, listAutosaveSnapshots as W, loadPresentationDeck as y, loadSessionDeck as w, parsePresentationSessionId as K, presentationBaseName as H, rememberSessionDeck as j, restoreSessionDeck as q, savedPresentationFileName as z, themeToCssVars as J, vermilionDarkColors as Q, vermilionDarkTheme as Y, vermilionLightColors as Z, vermilionLightTheme as $, vermilionRadius as ee } from "ooxml-ui/pptx";
|
package/dist/viewer/index.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import * as svelte from 'svelte';
|
|
2
2
|
import { Component } from 'svelte';
|
|
3
3
|
import * as ooxml_ui_pptx from 'ooxml-ui/pptx';
|
|
4
|
-
import { PrintSettings, CanvasSize, RasterizeElementResult, RasterizeElementTilesResult, ViewportFitOptions, ViewerFontSource, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, ToolbarActionId, RibbonAddInTab, ViewerCustomization, DocumentStorage, ViewerAutosaveStatus, AutosaveRecord, ConnectionStatus, CollaborationInput, CollaborationConfig, CollaborationState, PowerPointViewerAPI, ViewerCustomizationApi, RemoteCursor, SanitizedPresence, PptxAutosaveStatusKind, DeckSaveIntent, InlineTextDraft, AnimationGroup, AlignEdge, DistributeAxis, MergeShapeOperation, PasteSpecialFormat, CropSession, CropElementUpdate, TemplateElementMap, ElementBoxPatch, EditorHistoryController, InkStrokeView, InkPoint, MasterViewCrudAction, MasterViewCrudActionId, FreeformToolKind, EditPointsElementPatch, SlideTemplateId, SlideTemplateBuildOptions, SlidePasteRequest, RibbonTransitionDraft, CellCoord, CellRect, PendingInlineTextEdit, InlineListController, ElementClipboardPayload, TableStyleSaveOptions, FontEmbeddingDescriptor, InlineTextEditSnapshot, SnapGuideInput, CollaborationLivePatcher, InlineTextDraftSink, ResolvedKeyboardCustomization, MarqueeRect, ShapeAdjustmentHandleDescriptor, SnapLine, ResizeHandleId, ConnectorEndpointKind, CollaborationInlineEditor, FindResult, ViewerPreferences, ViewportFitPadding, SlideSizeEmu, CollabLoadOrigin, CollaborationTransport, YDocLike, YjsFactories, CollabProviderHandle, BroadcastConfig, ElementAnimationState, AuthoredSlideRange, RunProgramNotice, ZoomNavigationTarget, PresentationSnapshot, AutosaveRecoveryPrompt, CompatibilityWarningToast, ReadOnlyRecommendation, ReadOnlyBannerPasswordError, ViewerOptions, ViewerOptionsStoreInit, ToolbarTabId, ViewerOptionsGroupId, ViewerOptionPrimitive, ViewerOptionsConstraints, CompareResult, Guide, DeckViewPreferences, ResolvedCustomization, ViewerMode, CollaborationShellState, AutosaveDisabledReason, MobileSheetKey, FieldSubstitutionContext } from 'ooxml-ui/pptx';
|
|
4
|
+
import { PrintSettings, CanvasSize, RasterizeElementResult, RasterizeElementTilesResult, ViewportFitOptions, ViewerFontSource, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, GoogleFontsOption, ToolbarActionId, RibbonAddInTab, ViewerCustomization, DocumentStorage, ViewerAutosaveStatus, AutosaveRecord, ConnectionStatus, CollaborationInput, CollaborationConfig, CollaborationState, PowerPointViewerAPI, ViewerCustomizationApi, RemoteCursor, SanitizedPresence, PptxAutosaveStatusKind, DeckSaveIntent, InlineTextDraft, AnimationGroup, AlignEdge, DistributeAxis, MergeShapeOperation, PasteSpecialFormat, CropSession, CropElementUpdate, TemplateElementMap, HistoryTheme, ElementBoxPatch, EditorHistoryController, InkStrokeView, InkPoint, MasterViewCrudAction, MasterViewCrudActionId, FreeformToolKind, EditPointsElementPatch, SlideTemplateId, SlideTemplateBuildOptions, SlidePasteRequest, RibbonTransitionDraft, CellCoord, CellRect, PendingInlineTextEdit, InlineListController, ElementClipboardPayload, TableStyleSaveOptions, FontEmbeddingDescriptor, InlineTextEditSnapshot, SnapGuideInput, CollaborationLivePatcher, InlineTextDraftSink, ResolvedKeyboardCustomization, MarqueeRect, ShapeAdjustmentHandleDescriptor, SnapLine, ResizeHandleId, ConnectorEndpointKind, CollaborationInlineEditor, FindResult, ViewerPreferences, ViewportFitPadding, SlideSizeEmu, CollabLoadOrigin, CollaborationTransport, YDocLike, YjsFactories, CollabProviderHandle, BroadcastConfig, ElementAnimationState, AuthoredSlideRange, RunProgramNotice, ZoomNavigationTarget, PresentationSnapshot, AutosaveRecoveryPrompt, CompatibilityWarningToast, ReadOnlyRecommendation, ReadOnlyBannerPasswordError, ViewerOptions, ViewerOptionsStoreInit, ToolbarTabId, ViewerOptionsGroupId, ViewerOptionPrimitive, ViewerOptionsConstraints, CompareResult, Guide, DeckViewPreferences, ResolvedCustomization, ViewerMode, CollaborationShellState, AutosaveDisabledReason, MobileSheetKey, FieldSubstitutionContext } from 'ooxml-ui/pptx';
|
|
5
5
|
export { CanvasSize, CollaborationShellState, CollaborationState, ConnectionStatus, ExternalCollaborationAwareness, ExternalCollaborationSession, ExternalCollaborationSnapshot, InlineListController, InlineListReadResult, InlineTextEditSnapshot, RemoteCursor, SanitizedPresence, ViewerTheme, zoomInPercent, zoomOutPercent } from 'ooxml-ui/pptx';
|
|
6
6
|
import { PptxAiConfig, PptxAiNotifyLevel, PptxAiFocusedTarget, PptxAiBridge, AiChangeBatch, AiCanvasHighlight, ToolCanvasTarget } from 'ooxml-ui/pptx/ai';
|
|
7
7
|
export { PptxAiBridge, PptxAiConfig, PptxAiConnection, PptxAiContextStrategy, PptxAiToolName, PptxAiUIMessage, PptxAiWritePolicy } from 'ooxml-ui/pptx/ai';
|
|
8
8
|
import { LocaleCatalogEntry } from 'ooxml-ui/pptx/i18n';
|
|
9
|
-
import { PptxSlide, PptxData, SvgExportOptions, PptxCoreProperties, PptxSaveFormat, PptxElement, PptxChartData, PptxComment, PptxSlideMaster, PptxNotesMaster, PptxHandoutMaster, PptxSection, PptxHandler, PptxAnimationPreset, PptxHeaderFooter, PptxPresentationProperties, PptxCustomShow, PptxAppProperties, PptxCustomProperty, PptxTagCollection, TextSegment, MasterViewTab, ShapePptxElement, PptxLayoutOption, PptxLayoutPreview, PptxTransitionType, PptxSlideTransition, PptxTableData, PptxTheme, PptxViewProperties, PptxModernCommentAuthor, PptxCommentAuthor, PptxSlideSize, ParsedTableStyleMap, PptxModifyVerifier, PptxCompatibilityWarning, PptxEmbeddedFont,
|
|
9
|
+
import { PptxSlide, PptxData, SvgExportOptions, PptxCoreProperties, PptxSaveFormat, PptxElement, PptxChartData, PptxComment, PptxSlideMaster, PptxNotesMaster, PptxHandoutMaster, PptxSection, PptxHandler, PptxAnimationPreset, PptxHeaderFooter, PptxPresentationProperties, PptxCustomShow, PptxAppProperties, PptxCustomProperty, PptxTagCollection, TextSegment, MasterViewTab, ShapePptxElement, PptxLayoutOption, PptxLayoutPreview, PptxTransitionType, PptxSlideTransition, PptxTableData, PptxTheme, PptxViewProperties, PptxModernCommentAuthor, PptxCommentAuthor, PptxSlideSize, PptxThemeOption, ParsedTableStyleMap, PptxModifyVerifier, PptxCompatibilityWarning, PptxEmbeddedFont, PptxThemeColorScheme, PptxHandlerLoadOptions, PptxHandlerSaveOptions } from 'ooxml-core/pptx';
|
|
10
|
+
|
|
11
|
+
/** Translate `key`, interpolating `{{name}}` placeholders from `params`. */
|
|
12
|
+
type Translator = (key: string, params?: Record<string, string | number>) => string;
|
|
10
13
|
|
|
11
14
|
/**
|
|
12
15
|
* Animated-GIF export capture/encode pipeline. All the pure logic is shared:
|
|
@@ -40,15 +43,13 @@ interface ExportGifOptions {
|
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
/**
|
|
43
|
-
* Print flow:
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* pages as vector SVG, rasterises notes/handout thumbnails, and opens the
|
|
51
|
-
* print surface.
|
|
46
|
+
* Print flow: the shared `planPrintJob` decides what prints (range, current
|
|
47
|
+
* slide, hidden slides), through which path and under which window title, and
|
|
48
|
+
* the shared `build*PrintJobDocument` functions assemble the DOMPurify-hardened
|
|
49
|
+
* document. This module (the Svelte counterpart of Vue's `usePrint`) keeps
|
|
50
|
+
* only its capture and its opener: it exports direct slide pages as vector SVG
|
|
51
|
+
* (captured instead when the export throws), rasterises notes/handout
|
|
52
|
+
* thumbnails, and opens the print surface.
|
|
52
53
|
*
|
|
53
54
|
* **Print surface / popup-blocker caveats:** the default opener renders the
|
|
54
55
|
* document into a hidden same-origin `<iframe srcdoc>` and calls
|
|
@@ -147,6 +148,8 @@ interface ExportControllerDeps {
|
|
|
147
148
|
getIncludeHiddenSlides?(): boolean;
|
|
148
149
|
/** Options > Advanced > "High quality" raster scale for the print fallback path. */
|
|
149
150
|
getPrintHighQuality?(): boolean;
|
|
151
|
+
/** Live translator, for the print window title. English when omitted. */
|
|
152
|
+
getTranslator?(): Translator;
|
|
150
153
|
}
|
|
151
154
|
/**
|
|
152
155
|
* Export controller (runes class): render slides to PNG / PDF / animated GIF /
|
|
@@ -201,9 +204,6 @@ declare class ExportController {
|
|
|
201
204
|
print(options?: PrintOptions): Promise<boolean>;
|
|
202
205
|
}
|
|
203
206
|
|
|
204
|
-
/** Translate `key`, interpolating `{{name}}` placeholders from `params`. */
|
|
205
|
-
type Translator = (key: string, params?: Record<string, string | number>) => string;
|
|
206
|
-
|
|
207
207
|
interface ExportWiring {
|
|
208
208
|
/** The reactive PNG/PDF export controller (`exporting` drives a spinner). */
|
|
209
209
|
controller: ExportController;
|
|
@@ -300,6 +300,16 @@ interface PowerPointViewerProps extends ViewportFitOptions {
|
|
|
300
300
|
accountAuth?: AccountAuthConfig;
|
|
301
301
|
/** Slide shown after load (0-based, clamped). Default 0. */
|
|
302
302
|
initialSlide?: number;
|
|
303
|
+
/**
|
|
304
|
+
* Google Fonts fallback for deck fonts that are neither installed nor
|
|
305
|
+
* embedded. Unset: the viewer loads them from `fonts.googleapis.com`.
|
|
306
|
+
* `false`: no request goes to Google (`fonts.googleapis.com` or
|
|
307
|
+
* `fonts.gstatic.com`); text uses installed, embedded or fallback fonts.
|
|
308
|
+
* `{ baseUrl }`: requests go to a self-hosted mirror of the Google Fonts
|
|
309
|
+
* CSS2 API instead, so the user's browser never contacts Google. An
|
|
310
|
+
* invalid `baseUrl` disables the fallback (with a console warning).
|
|
311
|
+
*/
|
|
312
|
+
googleFonts?: GoogleFontsOption;
|
|
303
313
|
/** Show the thumbnail sidebar. Default true. */
|
|
304
314
|
showThumbnails?: boolean;
|
|
305
315
|
/** Show the navigation/zoom toolbar. Default true. */
|
|
@@ -1132,6 +1142,8 @@ interface EditorSnapshot {
|
|
|
1132
1142
|
customProperties: PptxCustomProperty[];
|
|
1133
1143
|
/** `ppt/tags/*.xml` name/value metadata, editable in the inspector. */
|
|
1134
1144
|
tagCollections: PptxTagCollection[];
|
|
1145
|
+
/** The theme's schemes, name and masters' theme parts, so Undo takes a theme change back too. */
|
|
1146
|
+
theme?: HistoryTheme | undefined;
|
|
1135
1147
|
}
|
|
1136
1148
|
|
|
1137
1149
|
/**
|
|
@@ -1240,6 +1252,11 @@ declare class EditorHistoryState {
|
|
|
1240
1252
|
setDepth(depth: number): void;
|
|
1241
1253
|
record(snapshot: EditorSnapshot, label?: string): void;
|
|
1242
1254
|
clear(): void;
|
|
1255
|
+
/**
|
|
1256
|
+
* Drop the undo and redo steps that would bring back a state `reaches` matches, with the steps
|
|
1257
|
+
* behind them: a Slide Master view command removed a layout the package cannot get back.
|
|
1258
|
+
*/
|
|
1259
|
+
forget(reaches: (snapshot: EditorSnapshot) => boolean): void;
|
|
1243
1260
|
undo(current: EditorSnapshot): EditorSnapshot | undefined;
|
|
1244
1261
|
redo(current: EditorSnapshot): EditorSnapshot | undefined;
|
|
1245
1262
|
}
|
|
@@ -1696,10 +1713,22 @@ interface EditorStateDeps {
|
|
|
1696
1713
|
* Adopt a fresh handler in place of the loaded one. Master-view CRUD
|
|
1697
1714
|
* (`masterCrud`) rebuilds the package through core and comes back with a
|
|
1698
1715
|
* new `PptxHandler`; the loader owns handler lifecycle, so it disposes the
|
|
1699
|
-
* previous one here
|
|
1716
|
+
* previous one here unless `keepPrevious` (a master command and a slide
|
|
1717
|
+
* paste keep it, since the slides on screen still show its pictures).
|
|
1718
|
+
* Optional for out-of-tree mounts and the unit tests.
|
|
1700
1719
|
*/
|
|
1701
1720
|
setHandler?: (handler: PptxHandler, keepPrevious?: boolean, data?: PptxData) => void;
|
|
1702
1721
|
onChange?: () => void;
|
|
1722
|
+
/**
|
|
1723
|
+
* The loaded deck's theme parts; an undo back to the loaded theme restores
|
|
1724
|
+
* the primary part's name. Optional for out-of-tree mounts and the unit tests.
|
|
1725
|
+
*/
|
|
1726
|
+
getThemeOptions?: () => readonly PptxThemeOption[];
|
|
1727
|
+
/**
|
|
1728
|
+
* An undo or redo put a recorded theme back in {@link EditorState.theme};
|
|
1729
|
+
* the viewer publishes it as it does a gallery pick's theme.
|
|
1730
|
+
*/
|
|
1731
|
+
onThemeRestored?: (theme: PptxTheme) => void;
|
|
1703
1732
|
/** The host's `onpropertieschange`: the core fields a user edit changed. */
|
|
1704
1733
|
onCorePropertiesChange?: (updates: Partial<PptxCoreProperties>) => void;
|
|
1705
1734
|
}
|
|
@@ -1733,9 +1762,10 @@ declare class EditorState {
|
|
|
1733
1762
|
tagCollections: PptxTagCollection[];
|
|
1734
1763
|
/**
|
|
1735
1764
|
* The deck's active theme, kept here so the Home tab's font dropdown can
|
|
1736
|
-
* lead with the theme fonts
|
|
1737
|
-
*
|
|
1738
|
-
*
|
|
1765
|
+
* lead with the theme fonts and the Design galleries mark the applied one.
|
|
1766
|
+
* Set by the viewer once a deck is loaded. Its colour scheme, font scheme
|
|
1767
|
+
* and name are recorded in every {@link EditorSnapshot}, so Undo takes a
|
|
1768
|
+
* theme pick back with the slides.
|
|
1739
1769
|
*/
|
|
1740
1770
|
theme: PptxTheme | undefined;
|
|
1741
1771
|
/**
|
|
@@ -1886,6 +1916,10 @@ declare class EditorState {
|
|
|
1886
1916
|
/** The loaded core handler, or null before a deck is open. Used by the
|
|
1887
1917
|
* Slides group for layout switching (`applyLayoutToSlide`). */
|
|
1888
1918
|
getHandler(): PptxHandler | null;
|
|
1919
|
+
/** The loaded deck's theme parts (see `EditorStateDeps.getThemeOptions`). */
|
|
1920
|
+
themeOptions(): readonly PptxThemeOption[];
|
|
1921
|
+
/** Publish a theme an undo or redo put back (see `EditorStateDeps.onThemeRestored`). */
|
|
1922
|
+
onThemeRestored(theme: PptxTheme): void;
|
|
1889
1923
|
/** Hand a rebuilt handler to the loader (see `EditorStateDeps.setHandler`). */
|
|
1890
1924
|
adoptHandler(handler: PptxHandler, keepPrevious?: boolean, data?: PptxData): void;
|
|
1891
1925
|
/**
|
|
@@ -3728,6 +3762,8 @@ interface CreateViewerStateOptions {
|
|
|
3728
3762
|
/** Host `authorName` prop: comment/reply author and the broadcast presenter name. */
|
|
3729
3763
|
getAuthorName?: () => string | undefined;
|
|
3730
3764
|
getInitialSlide: () => number;
|
|
3765
|
+
/** Host `googleFonts` prop: the Google Fonts fallback policy. */
|
|
3766
|
+
getGoogleFonts?: () => GoogleFontsOption | undefined;
|
|
3731
3767
|
/** Already locale-bound translator; propagated to descendants via context. */
|
|
3732
3768
|
t: Translator;
|
|
3733
3769
|
getSmartArt3D: () => boolean;
|
package/dist/viewer/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../transition-overlay-BgsFZeU8.js";
|
|
2
|
-
import { S as e, _ as a, a as S, b as o, c as v, d as n, f as d, g as r, h as b, i as p, l as c, m, n as g, o as x, p as w, r as C, s as T, t as $, u as y, v as s, x as t } from "../export-
|
|
2
|
+
import { S as e, _ as a, a as S, b as o, c as v, d as n, f as d, g as r, h as b, i as p, l as c, m, n as g, o as x, p as w, r as C, s as T, t as $, u as y, v as s, x as t } from "../export-DmRFHsQq.js";
|
|
3
3
|
var P = e, V = t, u = s, A = a, R = r, f = o;
|
|
4
4
|
export {
|
|
5
5
|
A as CollaborationCursors,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pptx-svelte-viewer",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.51.0",
|
|
4
4
|
"description": "pptx-viewer for Svelte 5: a PowerPoint viewer and editor component to render, edit, present, and export PPTX slides in the browser.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"office",
|
|
@@ -116,8 +116,8 @@
|
|
|
116
116
|
"html2canvas-pro": "^2.5.2",
|
|
117
117
|
"jspdf": "^4.2.1",
|
|
118
118
|
"jszip": "^3.10.2",
|
|
119
|
-
"ooxml-core": "^1.
|
|
120
|
-
"ooxml-ui": "^1.
|
|
119
|
+
"ooxml-core": "^1.26.0",
|
|
120
|
+
"ooxml-ui": "^1.27.0",
|
|
121
121
|
"opentype.js": "^2.0.0"
|
|
122
122
|
},
|
|
123
123
|
"devDependencies": {
|