pptx-vanilla-viewer 3.76.2 → 3.77.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 +42 -0
- package/dist/i18n/de.cjs +745 -42
- package/dist/i18n/de.mjs +745 -42
- package/dist/i18n/es.cjs +745 -42
- package/dist/i18n/es.mjs +745 -42
- package/dist/i18n/fr.cjs +745 -42
- package/dist/i18n/fr.mjs +745 -42
- package/dist/i18n/ja.cjs +7279 -0
- package/dist/i18n/ja.d.cts +1 -0
- package/dist/i18n/ja.d.mts +1 -0
- package/dist/i18n/ja.mjs +7252 -0
- package/dist/i18n/ko.cjs +7279 -0
- package/dist/i18n/ko.d.cts +1 -0
- package/dist/i18n/ko.d.mts +1 -0
- package/dist/i18n/ko.mjs +7252 -0
- package/dist/i18n/zh-CN.cjs +751 -48
- package/dist/i18n/zh-CN.mjs +751 -48
- package/dist/index.cjs +67 -67
- package/dist/index.d.ts +180 -107
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +64 -64
- package/dist/styles.css +91 -0
- package/package.json +23 -3
package/dist/styles.css
CHANGED
|
@@ -5072,3 +5072,94 @@ svg[data-pptx-motion-path-overlay] [data-pptx-motion-path-handle] { pointer-even
|
|
|
5072
5072
|
[data-pptx-editor-chrome] [data-pptx-chrome="ribbon-content"][data-pptx-chrome] [data-ribbon-group][data-collapsed][data-open]:not(pptx-ui-ribbon-group) > :not([data-pptx-chrome="ribbon-collapse"]) { border-color: ButtonText; }
|
|
5073
5073
|
}
|
|
5074
5074
|
|
|
5075
|
+
@media (min-width: 768px) {
|
|
5076
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) {
|
|
5077
|
+
--_pptx-card: var(--_pptx-background);
|
|
5078
|
+
--_pptx-card-edge: var(--office-card-border, transparent);
|
|
5079
|
+
--_pptx-card-shadow: var(--office-shadow-card, 0 1px 3px rgb(60 64 67 / 20%), 0 2px 6px rgb(60 64 67 / 8%));
|
|
5080
|
+
--_pptx-gap: var(--office-workspace-gap, 12px);
|
|
5081
|
+
/* Light: a step darker than the cards; dark: a step lighter than the background. */
|
|
5082
|
+
background: var(--office-workspace, color-mix(in oklab, var(--_pptx-secondary) 55%, var(--_pptx-background)));
|
|
5083
|
+
}
|
|
5084
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-title-bar] { background: transparent; border-bottom-color: transparent; }
|
|
5085
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="ribbon"] {
|
|
5086
|
+
margin: 0 var(--_pptx-gap); box-sizing: border-box;
|
|
5087
|
+
border: 1px solid var(--_pptx-card-edge); border-radius: var(--office-radius-toolbar, 12px);
|
|
5088
|
+
background: var(--_pptx-card); box-shadow: var(--_pptx-card-shadow);
|
|
5089
|
+
}
|
|
5090
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="ribbon"] :is([data-pptx-chrome="ribbon-primary"], [data-pptx-chrome="ribbon-tabs"], [data-pptx-chrome="ribbon-content"]) {
|
|
5091
|
+
background: transparent;
|
|
5092
|
+
}
|
|
5093
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="ribbon-primary"] { border-radius: var(--office-radius-toolbar, 12px) var(--office-radius-toolbar, 12px) 0 0; }
|
|
5094
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="body"] {
|
|
5095
|
+
gap: var(--_pptx-gap); padding: var(--_pptx-gap) var(--_pptx-gap) 0; box-sizing: border-box;
|
|
5096
|
+
}
|
|
5097
|
+
/* A splitter covers the gap it sits in instead of adding to it. */
|
|
5098
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="body"] > [role="separator"] { margin-inline: calc(-1 * var(--_pptx-gap)); }
|
|
5099
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) :is([data-pptx-chrome="slides"], [data-pptx-chrome="inspector"], [data-pptx-chrome="notes"]) {
|
|
5100
|
+
box-sizing: border-box; border: 1px solid var(--_pptx-card-edge);
|
|
5101
|
+
border-radius: var(--office-radius-surface, 14px);
|
|
5102
|
+
background: var(--_pptx-card); box-shadow: var(--_pptx-card-shadow);
|
|
5103
|
+
}
|
|
5104
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="slides"] { overflow: hidden; }
|
|
5105
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="slides"] [data-pptx-chrome="slide-list"] { padding-top: 8px; }
|
|
5106
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="slide-row"] { border-radius: var(--office-radius-control, 7px); }
|
|
5107
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="slide-frame"] { border-radius: 4px; }
|
|
5108
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="slide-footer"] { border-top-color: transparent; }
|
|
5109
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="body"] :has(> [data-pptx-viewport]) { background: transparent; }
|
|
5110
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="body"] [data-pptx-viewport] {
|
|
5111
|
+
box-sizing: border-box; border: 1px solid var(--_pptx-card-edge);
|
|
5112
|
+
border-radius: var(--office-radius-surface, 14px);
|
|
5113
|
+
background: var(--_pptx-card); box-shadow: var(--_pptx-card-shadow);
|
|
5114
|
+
}
|
|
5115
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="notes"] { width: auto; margin: var(--_pptx-gap) var(--_pptx-gap) 0; overflow: hidden; }
|
|
5116
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="notes-header"] { padding-inline: 14px; }
|
|
5117
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) pptx-ui-status-bar { margin-top: 4px; background: transparent; border-top-color: transparent; }
|
|
5118
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) pptx-ui-status-bar::part(bar) { padding-inline: calc(var(--_pptx-gap) + 2px); }
|
|
5119
|
+
|
|
5120
|
+
/* The side pane: 320px, a segmented tab strip and a roomier Format pane. */
|
|
5121
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="body"] > :has(> [data-pptx-chrome="inspector"]),
|
|
5122
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="inspector"] { min-width: var(--office-side-pane-width, 320px); }
|
|
5123
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="inspector-header"] {
|
|
5124
|
+
padding: 10px 12px; border-bottom-color: color-mix(in oklab, var(--_pptx-border) 60%, transparent);
|
|
5125
|
+
}
|
|
5126
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="inspector-tabs"] {
|
|
5127
|
+
padding: 3px; border-radius: var(--office-radius-control, 7px); background: var(--_pptx-accent);
|
|
5128
|
+
}
|
|
5129
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="inspector-tabs"] button { border-radius: 5px; min-height: 28px; }
|
|
5130
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="inspector-tabs"] button[aria-selected="true"] {
|
|
5131
|
+
/* Important: one binding marks its selected tab with an important accent fill. */
|
|
5132
|
+
background: var(--_pptx-card) !important; color: var(--_pptx-foreground) !important;
|
|
5133
|
+
box-shadow: var(--_pptx-card-shadow), inset 0 0 0 1px var(--_pptx-card-edge);
|
|
5134
|
+
}
|
|
5135
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="inspector"] { font-variant-numeric: tabular-nums; }
|
|
5136
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="inspector-body"] { padding: 4px 14px 14px; }
|
|
5137
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="inspector"] :is(pptx-ui-format-section, office-ui-format-section) {
|
|
5138
|
+
border-bottom-color: color-mix(in oklab, var(--_pptx-border) 70%, transparent);
|
|
5139
|
+
}
|
|
5140
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) :is([data-pptx-chrome="inspector-heading"], .pptx-editor-heading) {
|
|
5141
|
+
font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
|
|
5142
|
+
}
|
|
5143
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="inspector"] :is([data-pptx-chrome="inspector-card"], .pptx-editor-card) {
|
|
5144
|
+
padding: 6px 0 10px; border: 0; border-radius: 0; background: transparent;
|
|
5145
|
+
}
|
|
5146
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="inspector"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="file"]), select, pptx-ui-select) {
|
|
5147
|
+
box-sizing: border-box; height: var(--office-pane-field-height, 32px);
|
|
5148
|
+
min-height: var(--office-pane-field-height, 32px);
|
|
5149
|
+
border-radius: var(--office-radius-control, 7px);
|
|
5150
|
+
}
|
|
5151
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="inspector"] :is(.grid, [data-pptx-chrome="presentation-fields"]) { gap: 8px 10px; }
|
|
5152
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) :is(pptx-ui-theme-editor, pptx-ui-chart-format-pane):not([inline]) {
|
|
5153
|
+
overflow: hidden; border-left-color: transparent;
|
|
5154
|
+
border-radius: var(--office-radius-surface, 14px);
|
|
5155
|
+
box-shadow: var(--office-shadow-card-strong, 0 1px 3px rgb(60 64 67 / 20%), 0 2px 6px rgb(60 64 67 / 8%));
|
|
5156
|
+
}
|
|
5157
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) [data-pptx-chrome="theme-editor"] {
|
|
5158
|
+
border-left: 0; border-radius: var(--office-radius-surface, 14px);
|
|
5159
|
+
box-shadow: var(--office-shadow-card-strong, 0 1px 3px rgb(60 64 67 / 20%), 0 2px 6px rgb(60 64 67 / 8%));
|
|
5160
|
+
}
|
|
5161
|
+
}
|
|
5162
|
+
@media (min-width: 768px) and (forced-colors: active) {
|
|
5163
|
+
:is([data-office-look="cards"] [data-pptx-editor-chrome], [data-pptx-editor-chrome][data-office-look="cards"]) :is([data-pptx-chrome="slides"], [data-pptx-chrome="inspector"], [data-pptx-chrome="notes"], [data-pptx-chrome="ribbon"], [data-pptx-viewport]) { border-color: CanvasText; }
|
|
5164
|
+
}
|
|
5165
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pptx-vanilla-viewer",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.77.0",
|
|
4
4
|
"description": "pptx-viewer for vanilla JS: a zero-framework PowerPoint viewer and editor to render, edit, present, and export PPTX slides with plain DOM, no React/Vue/Angular required.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript",
|
|
@@ -95,6 +95,26 @@
|
|
|
95
95
|
"types": "./dist/i18n/zh-CN.d.cts",
|
|
96
96
|
"default": "./dist/i18n/zh-CN.cjs"
|
|
97
97
|
}
|
|
98
|
+
},
|
|
99
|
+
"./i18n/ja": {
|
|
100
|
+
"import": {
|
|
101
|
+
"types": "./dist/i18n/ja.d.mts",
|
|
102
|
+
"default": "./dist/i18n/ja.mjs"
|
|
103
|
+
},
|
|
104
|
+
"require": {
|
|
105
|
+
"types": "./dist/i18n/ja.d.cts",
|
|
106
|
+
"default": "./dist/i18n/ja.cjs"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"./i18n/ko": {
|
|
110
|
+
"import": {
|
|
111
|
+
"types": "./dist/i18n/ko.d.mts",
|
|
112
|
+
"default": "./dist/i18n/ko.mjs"
|
|
113
|
+
},
|
|
114
|
+
"require": {
|
|
115
|
+
"types": "./dist/i18n/ko.d.cts",
|
|
116
|
+
"default": "./dist/i18n/ko.cjs"
|
|
117
|
+
}
|
|
98
118
|
}
|
|
99
119
|
},
|
|
100
120
|
"scripts": {
|
|
@@ -112,8 +132,8 @@
|
|
|
112
132
|
"jspdf": "^4.2.1",
|
|
113
133
|
"jszip": "^3.10.2",
|
|
114
134
|
"lucide": "^1.69.0",
|
|
115
|
-
"ooxml-core": "^1.
|
|
116
|
-
"ooxml-ui": "^1.
|
|
135
|
+
"ooxml-core": "^1.51.0",
|
|
136
|
+
"ooxml-ui": "^1.52.0",
|
|
117
137
|
"opentype.js": "^2.0.0"
|
|
118
138
|
},
|
|
119
139
|
"devDependencies": {
|