pptx-vanilla-viewer 3.74.0 → 3.76.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/dist/styles.css CHANGED
@@ -1906,6 +1906,81 @@
1906
1906
  }
1907
1907
  .pptxv-tabrow-record:hover { background: var(--_pptx-accent); color: var(--_pptx-foreground); }
1908
1908
  .pptxv-tabrow-record-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; }
1909
+ /* ── Ribbon Display Options (Always show Ribbon / Show tabs only / Full-screen mode) ── */
1910
+ .pptxv-ribbon-display-btn {
1911
+ display: inline-flex;
1912
+ align-items: center;
1913
+ justify-content: center;
1914
+ width: 22px;
1915
+ height: 22px;
1916
+ padding: 0;
1917
+ border: none;
1918
+ border-radius: 3px;
1919
+ background: transparent;
1920
+ color: var(--_pptx-muted-foreground);
1921
+ cursor: pointer;
1922
+ }
1923
+ .pptxv-ribbon-display-btn:hover, .pptxv-ribbon-display-btn.is-active { background: var(--_pptx-accent); color: var(--_pptx-foreground); }
1924
+ /* Collapsed to the tab row, the chevron points the other way, as PowerPoint's pin does. */
1925
+ .pptxv-ribbon[data-ribbon-display='tabs'] .pptxv-ribbon-display-btn svg { transform: rotate(180deg); }
1926
+ /* The menu hangs under the right end of the tab row; the row itself scrolls and would clip it. */
1927
+ .pptxv-ribbon-display-anchor { position: relative; height: 0; }
1928
+ .pptxv-ribbon-display-menu { top: 2px; right: 6px; }
1929
+ .pptxv-ribbon-display-menu .pptxv-primary-menu-item { padding-left: 26px; position: relative; }
1930
+ .pptxv-ribbon-display-menu .pptxv-primary-menu-item[aria-checked='true']::before {
1931
+ content: '';
1932
+ position: absolute;
1933
+ left: 9px;
1934
+ top: 50%;
1935
+ width: 9px;
1936
+ height: 5px;
1937
+ border-left: 1.5px solid currentColor;
1938
+ border-bottom: 1.5px solid currentColor;
1939
+ transform: translateY(-70%) rotate(-45deg);
1940
+ }
1941
+ /* "Show tabs only": a chosen tab lays its commands over the slide instead of pushing it down. */
1942
+ .pptxv-ribbon > [data-ribbon-overlay] {
1943
+ position: absolute;
1944
+ left: 0;
1945
+ right: 0;
1946
+ top: var(--pptxv-ribbon-overlay-top, 0);
1947
+ z-index: 35;
1948
+ border-bottom: 1px solid var(--_pptx-border);
1949
+ /* Opaque: some themes make the card colour translucent, and this lies over the slide. */
1950
+ background: linear-gradient(var(--_pptx-card), var(--_pptx-card)), var(--_pptx-background);
1951
+ box-shadow: 0 8px 20px rgb(0 0 0 / 0.2);
1952
+ }
1953
+ /* Full-screen mode: the title bar and the ribbon leave; the strip brings the ribbon back over the slide. */
1954
+ .pptxv[data-ribbon-display='fullScreen'] > .pptxv-titlebar,
1955
+ .pptxv[data-ribbon-display='fullScreen'] > .pptxv-qat-row,
1956
+ .pptxv-ribbon[data-ribbon-display='fullScreen']:not([data-ribbon-peek]) { display: none; }
1957
+ .pptxv-ribbon[data-ribbon-display='fullScreen'][data-ribbon-peek] {
1958
+ position: absolute;
1959
+ top: 0;
1960
+ left: 0;
1961
+ right: 0;
1962
+ z-index: 35;
1963
+ background: linear-gradient(var(--_pptx-card), var(--_pptx-card)), var(--_pptx-background);
1964
+ box-shadow: 0 8px 20px rgb(0 0 0 / 0.2);
1965
+ }
1966
+ .pptxv-ribbon-reveal {
1967
+ flex: none;
1968
+ display: flex;
1969
+ align-items: center;
1970
+ justify-content: center;
1971
+ height: 14px;
1972
+ padding: 0;
1973
+ border: none;
1974
+ border-bottom: 1px solid var(--_pptx-border);
1975
+ background: var(--_pptx-card);
1976
+ color: var(--_pptx-muted-foreground);
1977
+ font: inherit;
1978
+ font-size: 14px;
1979
+ line-height: 1;
1980
+ letter-spacing: 2px;
1981
+ cursor: pointer;
1982
+ }
1983
+ .pptxv-ribbon-reveal:hover { background: var(--_pptx-accent); color: var(--_pptx-foreground); }
1909
1984
 
1910
1985
 
1911
1986
  .pptxv-props-overlay { position:fixed; inset:0; z-index:210; display:grid; place-items:center; background:#0009; }
@@ -4570,6 +4645,16 @@ svg[data-pptx-motion-path-overlay] [data-pptx-motion-path-handle] { pointer-even
4570
4645
  background: color-mix(in oklab, var(--_pptx-secondary) 50%, transparent);
4571
4646
  color: var(--_pptx-foreground); border-bottom: 1px solid var(--_pptx-border);
4572
4647
  }
4648
+ /* Full-screen mode lays the whole ribbon over the slide: the half-transparent fill above
4649
+ would let the slide show through, so the page background goes underneath it. */
4650
+ [data-pptx-editor-chrome] [data-pptx-chrome="ribbon"][data-ribbon-display="fullScreen"][data-ribbon-peek] {
4651
+ background:
4652
+ linear-gradient(
4653
+ color-mix(in oklab, var(--_pptx-secondary) 50%, transparent),
4654
+ color-mix(in oklab, var(--_pptx-secondary) 50%, transparent)
4655
+ ),
4656
+ var(--_pptx-background);
4657
+ }
4573
4658
  [data-pptx-editor-chrome] [data-pptx-chrome="ribbon-primary"] {
4574
4659
  min-height: 32px; height: 32px; padding: 2px 6px; gap: 2px;
4575
4660
  border: 0; box-sizing: border-box;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-vanilla-viewer",
3
- "version": "3.74.0",
3
+ "version": "3.76.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",
@@ -112,8 +112,8 @@
112
112
  "jspdf": "^4.2.1",
113
113
  "jszip": "^3.10.2",
114
114
  "lucide": "^1.69.0",
115
- "ooxml-core": "^1.49.0",
116
- "ooxml-ui": "^1.49.1",
115
+ "ooxml-core": "^1.50.0",
116
+ "ooxml-ui": "^1.51.0",
117
117
  "opentype.js": "^2.0.0"
118
118
  },
119
119
  "devDependencies": {