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