pptx-vanilla-viewer 3.33.1 → 3.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/dist/i18n/de.cjs +9 -0
- package/dist/i18n/de.mjs +9 -0
- package/dist/i18n/es.cjs +9 -0
- package/dist/i18n/es.mjs +9 -0
- package/dist/i18n/fr.cjs +9 -0
- package/dist/i18n/fr.mjs +9 -0
- package/dist/i18n/zh-CN.cjs +9 -0
- package/dist/i18n/zh-CN.mjs +9 -0
- package/dist/index.cjs +146 -58
- package/dist/index.d.ts +7 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +146 -58
- package/dist/styles.css +88 -0
- package/package.json +4 -4
package/dist/styles.css
CHANGED
|
@@ -3580,6 +3580,94 @@ svg[data-pptx-motion-path-overlay] [data-pptx-motion-path-handle] { pointer-even
|
|
|
3580
3580
|
}
|
|
3581
3581
|
|
|
3582
3582
|
|
|
3583
|
+
/* ── Table cell panels ───────────────────────────────────────────────── */
|
|
3584
|
+
.pptxv-inspector-table-cell,
|
|
3585
|
+
.pptxv-inspector-table-cell-fill {
|
|
3586
|
+
display: grid;
|
|
3587
|
+
gap: 6px;
|
|
3588
|
+
margin-top: 8px;
|
|
3589
|
+
}
|
|
3590
|
+
.pptxv-inspector-table-cell[hidden],
|
|
3591
|
+
.pptxv-inspector-table-cell-fill[hidden],
|
|
3592
|
+
.pptxv-inspector-table-structure[hidden] { display: none; }
|
|
3593
|
+
.pptxv-inspector-table-cell > strong { font-size: 11px; font-weight: 600; }
|
|
3594
|
+
.pptxv-inspector-table-cell > label,
|
|
3595
|
+
.pptxv-inspector-table-cell-fill > label {
|
|
3596
|
+
display: flex;
|
|
3597
|
+
align-items: center;
|
|
3598
|
+
justify-content: space-between;
|
|
3599
|
+
gap: 8px;
|
|
3600
|
+
min-width: 0;
|
|
3601
|
+
color: var(--pptx-muted-foreground);
|
|
3602
|
+
font-size: 11px;
|
|
3603
|
+
}
|
|
3604
|
+
.pptxv-inspector-table-cell input[type='number'],
|
|
3605
|
+
.pptxv-inspector-table-cell-fill input[type='number'],
|
|
3606
|
+
.pptxv-inspector-table-structure input[type='number'] {
|
|
3607
|
+
box-sizing: border-box;
|
|
3608
|
+
width: 64px;
|
|
3609
|
+
height: 24px;
|
|
3610
|
+
padding: 2px 6px;
|
|
3611
|
+
border: 1px solid var(--pptx-border);
|
|
3612
|
+
border-radius: var(--pptx-radius);
|
|
3613
|
+
background: var(--pptx-background);
|
|
3614
|
+
color: var(--pptx-foreground);
|
|
3615
|
+
font: inherit;
|
|
3616
|
+
font-size: 11px;
|
|
3617
|
+
}
|
|
3618
|
+
.pptxv-inspector-table-cell-fill > input[type='number'] { justify-self: end; }
|
|
3619
|
+
.pptxv-inspector-table-cell input[type='color'],
|
|
3620
|
+
.pptxv-inspector-table-cell-fill input[type='color'] {
|
|
3621
|
+
flex: none;
|
|
3622
|
+
width: 28px;
|
|
3623
|
+
height: 20px;
|
|
3624
|
+
padding: 0;
|
|
3625
|
+
border: 1px solid var(--pptx-border);
|
|
3626
|
+
border-radius: 4px;
|
|
3627
|
+
background: none;
|
|
3628
|
+
cursor: pointer;
|
|
3629
|
+
}
|
|
3630
|
+
.pptxv-inspector-table-structure {
|
|
3631
|
+
display: grid;
|
|
3632
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
3633
|
+
gap: 4px;
|
|
3634
|
+
margin-top: 8px;
|
|
3635
|
+
}
|
|
3636
|
+
.pptxv-inspector-table-structure button {
|
|
3637
|
+
min-width: 0;
|
|
3638
|
+
padding: 4px 6px;
|
|
3639
|
+
border: 1px solid var(--pptx-border);
|
|
3640
|
+
border-radius: var(--pptx-radius);
|
|
3641
|
+
background: var(--pptx-muted);
|
|
3642
|
+
color: inherit;
|
|
3643
|
+
font: inherit;
|
|
3644
|
+
font-size: 11px;
|
|
3645
|
+
cursor: pointer;
|
|
3646
|
+
}
|
|
3647
|
+
.pptxv-inspector-table-structure button:hover:not(:disabled) { background: var(--pptx-accent); }
|
|
3648
|
+
.pptxv-inspector-table-structure button:disabled { opacity: 0.5; cursor: default; }
|
|
3649
|
+
.pptxv-inspector-table-structure input[type='number'] { width: 100%; }
|
|
3650
|
+
|
|
3651
|
+
/* ── Theme Colors grid (ui/theme-color-swatch-grid.ts) ───────────────── */
|
|
3652
|
+
.pptxv-theme-swatch-grid { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
|
|
3653
|
+
.pptxv-theme-swatch-grid[hidden] { display: none; }
|
|
3654
|
+
.pptxv-theme-swatch-grid-label { color: var(--pptx-muted-foreground); font-size: 10px; }
|
|
3655
|
+
.pptxv-theme-swatch-grid-rows { display: flex; flex-direction: column; gap: 2px; }
|
|
3656
|
+
.pptxv-theme-swatch-grid-row { display: flex; gap: 2px; }
|
|
3657
|
+
.pptxv-theme-swatch-grid-swatch,
|
|
3658
|
+
.pptxv-theme-swatch-grid-empty { flex: none; width: 16px; height: 16px; }
|
|
3659
|
+
.pptxv-theme-swatch-grid-swatch {
|
|
3660
|
+
box-sizing: border-box;
|
|
3661
|
+
padding: 0;
|
|
3662
|
+
border: 1px solid var(--pptx-border);
|
|
3663
|
+
border-radius: 2px;
|
|
3664
|
+
cursor: pointer;
|
|
3665
|
+
}
|
|
3666
|
+
.pptxv-theme-swatch-grid-swatch:hover:not(:disabled) { transform: scale(1.1); }
|
|
3667
|
+
.pptxv-theme-swatch-grid-swatch:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
3668
|
+
.pptxv-theme-swatch-grid-swatch.is-selected { outline: 2px solid var(--pptx-ring); outline-offset: 1px; }
|
|
3669
|
+
|
|
3670
|
+
|
|
3583
3671
|
.pptxv-account { display: flex; flex-direction: column; gap: 28px; max-width: 640px; margin-top: 24px; }
|
|
3584
3672
|
.pptxv-account-section { padding: 20px; border: 1px solid var(--pptx-border); border-radius: 8px; background: var(--pptx-card); color: var(--pptx-card-foreground); }
|
|
3585
3673
|
.pptxv-account-section h2 { margin: 0 0 14px; font-size: 14px; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pptx-vanilla-viewer",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.34.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",
|
|
@@ -107,14 +107,14 @@
|
|
|
107
107
|
"jspdf": "^4.2.1",
|
|
108
108
|
"jszip": "^3.10.2",
|
|
109
109
|
"lucide": "^1.52.0",
|
|
110
|
-
"ooxml-core": "^1.
|
|
111
|
-
"ooxml-ui": "^1.
|
|
110
|
+
"ooxml-core": "^1.9.0",
|
|
111
|
+
"ooxml-ui": "^1.9.0",
|
|
112
112
|
"opentype.js": "^2.0.0"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
115
|
"@types/dompurify": "^3.2.0",
|
|
116
116
|
"@types/opentype.js": "^1.3.10",
|
|
117
|
-
"happy-dom": "^20.14.
|
|
117
|
+
"happy-dom": "^20.14.6",
|
|
118
118
|
"pptx-viewer-core": "^4.13.5",
|
|
119
119
|
"tsdown": "^0.23.0",
|
|
120
120
|
"tsup": "^8.5.1",
|