pptx-vanilla-viewer 2.17.1 → 2.19.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +63 -24
  3. package/dist/ai-panel-L5ABJ666.js +1 -0
  4. package/dist/ai-panel-Z4NVDEBL.cjs +1 -0
  5. package/dist/chunk-57VHQAFK.js +4 -0
  6. package/dist/chunk-IBLM4JHG.js +2503 -0
  7. package/dist/chunk-JUKBJGYQ.cjs +4 -0
  8. package/dist/chunk-O2ZDCV67.cjs +2503 -0
  9. package/dist/chunk-TZV7ZBUY.js +152 -0
  10. package/dist/chunk-XGPJF4IL.cjs +152 -0
  11. package/dist/i18n/de.cjs +3765 -0
  12. package/dist/i18n/de.d.cts +3 -0
  13. package/dist/i18n/de.d.mts +3 -0
  14. package/dist/i18n/de.mjs +3738 -0
  15. package/dist/i18n/es.cjs +3765 -0
  16. package/dist/i18n/es.d.cts +3 -0
  17. package/dist/i18n/es.d.mts +3 -0
  18. package/dist/i18n/es.mjs +3738 -0
  19. package/dist/i18n/fr.cjs +3765 -0
  20. package/dist/i18n/fr.d.cts +3 -0
  21. package/dist/i18n/fr.d.mts +3 -0
  22. package/dist/i18n/fr.mjs +3738 -0
  23. package/dist/i18n/zh-CN.cjs +3803 -0
  24. package/dist/i18n/zh-CN.d.cts +3 -0
  25. package/dist/i18n/zh-CN.d.mts +3 -0
  26. package/dist/i18n/zh-CN.mjs +3776 -0
  27. package/dist/index.cjs +78 -80
  28. package/dist/index.d.ts +7 -12651
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.js +78 -80
  31. package/dist/internals.cjs +1 -0
  32. package/dist/internals.d.ts +2 -0
  33. package/dist/internals.js +1 -0
  34. package/dist/styles.css +17 -16
  35. package/dist/transition-overlay-CFF7agjg.d.ts +12860 -0
  36. package/dist/transition-overlay-CFF7agjg.d.ts.map +1 -0
  37. package/package.json +51 -6
  38. package/dist/ai-panel-3SXCA56Y.cjs +0 -1
  39. package/dist/ai-panel-QMFZSLXF.js +0 -1
  40. package/dist/chunk-MVGP6Q7E.js +0 -2638
  41. package/dist/chunk-SLYBMMV5.cjs +0 -2638
@@ -0,0 +1 @@
1
+ 'use strict';var chunkJUKBJGYQ_cjs=require('./chunk-JUKBJGYQ.cjs'),chunkO2ZDCV67_cjs=require('./chunk-O2ZDCV67.cjs');require('./chunk-B5PFHICE.cjs');Object.defineProperty(exports,"playTransitionOverlay",{enumerable:true,get:function(){return chunkJUKBJGYQ_cjs.d}});Object.defineProperty(exports,"CINEMATIC_TRANSITION_KEYFRAMES",{enumerable:true,get:function(){return chunkO2ZDCV67_cjs.Bh}});Object.defineProperty(exports,"DEFAULT_MORPH_DURATION_MS",{enumerable:true,get:function(){return chunkO2ZDCV67_cjs.sh}});Object.defineProperty(exports,"DEFAULT_TRANSITION_DURATION_MS",{enumerable:true,get:function(){return chunkO2ZDCV67_cjs.rh}});Object.defineProperty(exports,"EASE",{enumerable:true,get:function(){return chunkO2ZDCV67_cjs.uh}});Object.defineProperty(exports,"INSTANT",{enumerable:true,get:function(){return chunkO2ZDCV67_cjs.qh}});Object.defineProperty(exports,"P14_TRANSITION_KEYFRAMES",{enumerable:true,get:function(){return chunkO2ZDCV67_cjs.xh}});Object.defineProperty(exports,"P14_TRANSITION_KEYFRAMES_2",{enumerable:true,get:function(){return chunkO2ZDCV67_cjs.yh}});Object.defineProperty(exports,"P14_TRANSITION_KEYFRAMES_ALL",{enumerable:true,get:function(){return chunkO2ZDCV67_cjs.zh}});Object.defineProperty(exports,"RANDOM_ELIGIBLE_TYPES",{enumerable:true,get:function(){return chunkO2ZDCV67_cjs.ph}});Object.defineProperty(exports,"SLIDE_TRANSITION_KEYFRAMES",{enumerable:true,get:function(){return chunkO2ZDCV67_cjs.Dh}});Object.defineProperty(exports,"SLIDE_TRANSITION_KEYFRAMES_CSS",{enumerable:true,get:function(){return chunkO2ZDCV67_cjs.Eh}});Object.defineProperty(exports,"TRANSITION_SPEED_DURATION_MS",{enumerable:true,get:function(){return chunkO2ZDCV67_cjs.th}});Object.defineProperty(exports,"WHEEL_SPOKE_COUNTS",{enumerable:true,get:function(){return chunkO2ZDCV67_cjs.vh}});Object.defineProperty(exports,"getCinematicTransitionAnimations",{enumerable:true,get:function(){return chunkO2ZDCV67_cjs.Ah}});Object.defineProperty(exports,"getP14TransitionAnimations",{enumerable:true,get:function(){return chunkO2ZDCV67_cjs.Fh}});Object.defineProperty(exports,"getSlideTransitionAnimations",{enumerable:true,get:function(){return chunkO2ZDCV67_cjs.Gh}});Object.defineProperty(exports,"resolveDirection",{enumerable:true,get:function(){return chunkO2ZDCV67_cjs.mh}});Object.defineProperty(exports,"resolveDirection8",{enumerable:true,get:function(){return chunkO2ZDCV67_cjs.nh}});Object.defineProperty(exports,"resolveOrientation",{enumerable:true,get:function(){return chunkO2ZDCV67_cjs.oh}});Object.defineProperty(exports,"resolveSlideTransition",{enumerable:true,get:function(){return chunkO2ZDCV67_cjs.Hh}});Object.defineProperty(exports,"resolveTransitionDurationMs",{enumerable:true,get:function(){return chunkO2ZDCV67_cjs.Ih}});Object.defineProperty(exports,"resolveWheelSpokeCount",{enumerable:true,get:function(){return chunkO2ZDCV67_cjs.wh}});
@@ -0,0 +1,2 @@
1
+ import { $ as SLIDE_TRANSITION_KEYFRAMES_CSS, D as INSTANT, F as P14_TRANSITION_KEYFRAMES_2, Ft as resolveSlideTransition, I as P14_TRANSITION_KEYFRAMES_ALL, It as resolveTransitionDurationMs, J as ResolvedDirection8, Lt as resolveWheelSpokeCount, Mt as resolveDirection, Nt as resolveDirection8, P as P14_TRANSITION_KEYFRAMES, Pt as resolveOrientation, Q as SLIDE_TRANSITION_KEYFRAMES, St as getP14TransitionAnimations, W as RANDOM_ELIGIBLE_TYPES, _ as DEFAULT_MORPH_DURATION_MS, ct as SlideTransitionAnimations, n as playTransitionOverlay, q as ResolvedDirection, s as CINEMATIC_TRANSITION_KEYFRAMES, t as TransitionOverlayParams, ut as TRANSITION_SPEED_DURATION_MS, v as DEFAULT_TRANSITION_DURATION_MS, vt as WHEEL_SPOKE_COUNTS, wt as getSlideTransitionAnimations, xt as getCinematicTransitionAnimations, y as EASE } from "./transition-overlay-CFF7agjg.js";
2
+ export { CINEMATIC_TRANSITION_KEYFRAMES, DEFAULT_MORPH_DURATION_MS, DEFAULT_TRANSITION_DURATION_MS, EASE, INSTANT, P14_TRANSITION_KEYFRAMES, P14_TRANSITION_KEYFRAMES_2, P14_TRANSITION_KEYFRAMES_ALL, RANDOM_ELIGIBLE_TYPES, type ResolvedDirection, type ResolvedDirection8, SLIDE_TRANSITION_KEYFRAMES, SLIDE_TRANSITION_KEYFRAMES_CSS, type SlideTransitionAnimations, TRANSITION_SPEED_DURATION_MS, type TransitionOverlayParams, WHEEL_SPOKE_COUNTS, getCinematicTransitionAnimations, getP14TransitionAnimations, getSlideTransitionAnimations, playTransitionOverlay, resolveDirection, resolveDirection8, resolveOrientation, resolveSlideTransition, resolveTransitionDurationMs, resolveWheelSpokeCount };
@@ -0,0 +1 @@
1
+ export{d as playTransitionOverlay}from'./chunk-57VHQAFK.js';export{Bh as CINEMATIC_TRANSITION_KEYFRAMES,sh as DEFAULT_MORPH_DURATION_MS,rh as DEFAULT_TRANSITION_DURATION_MS,uh as EASE,qh as INSTANT,xh as P14_TRANSITION_KEYFRAMES,yh as P14_TRANSITION_KEYFRAMES_2,zh as P14_TRANSITION_KEYFRAMES_ALL,ph as RANDOM_ELIGIBLE_TYPES,Dh as SLIDE_TRANSITION_KEYFRAMES,Eh as SLIDE_TRANSITION_KEYFRAMES_CSS,th as TRANSITION_SPEED_DURATION_MS,vh as WHEEL_SPOKE_COUNTS,Ah as getCinematicTransitionAnimations,Fh as getP14TransitionAnimations,Gh as getSlideTransitionAnimations,mh as resolveDirection,nh as resolveDirection8,oh as resolveOrientation,Hh as resolveSlideTransition,Ih as resolveTransitionDurationMs,wh as resolveWheelSpokeCount}from'./chunk-IBLM4JHG.js';import'./chunk-62D2TNHX.js';
package/dist/styles.css CHANGED
@@ -35,6 +35,11 @@
35
35
  color: var(--pptx-foreground);
36
36
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
37
37
  font-size: 14px;
38
+ /* Text autosizing: the viewer scales the whole slide as one unit, so a
39
+ * mobile browser must not inflate the glyphs alone (it changes wrapping
40
+ * and clips text). Mirrors the React theme.css rule. */
41
+ -webkit-text-size-adjust: none;
42
+ text-size-adjust: none;
38
43
  }
39
44
  .pptxv *, .pptxv *::before, .pptxv *::after { box-sizing: border-box; }
40
45
  .pptxv:focus { outline: none; }
@@ -423,17 +428,18 @@
423
428
  transform-origin: center;
424
429
  }
425
430
  .pptxv-sel-handle {
431
+ --pptx-handle-hit-inset: 0px;
426
432
  position: absolute;
427
- width: 10px;
428
- height: 10px;
429
- margin: -5px 0 0 -5px;
430
433
  padding: 0;
431
- border: 1px solid var(--pptx-ring);
432
- border-radius: 2px;
433
- background: #fff;
434
- pointer-events: auto;
434
+ border: 0;
435
+ background: transparent;
436
+ pointer-events: none;
435
437
  /* The handle must own its touch gesture (no scroll/zoom stealing). */
436
438
  touch-action: none;
439
+ }
440
+ .pptxv-control-artwork {
441
+ box-sizing: border-box;
442
+ border: 1px solid;
437
443
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.3);
438
444
  }
439
445
  /*
@@ -480,18 +486,13 @@
480
486
  .pptxv-rotate-knob {
481
487
  position: absolute;
482
488
  left: 50%;
483
- width: 12px;
484
- height: 12px;
485
- margin: -6px 0 0 -6px;
486
489
  padding: 0;
487
- border: 1px solid var(--pptx-ring);
488
- border-radius: 50%;
489
- background: #fff;
490
+ border: 0;
491
+ background: transparent;
490
492
  cursor: grab;
491
493
  pointer-events: auto;
492
494
  /* The knob must own its touch gesture (no scroll/zoom stealing). */
493
495
  touch-action: none;
494
- box-shadow: 0 1px 2px rgb(0 0 0 / 0.3);
495
496
  }
496
497
  /* PowerPoint's shape-adjustment handle: the amber diamond that reshapes a
497
498
  preset (a:avLst) instead of resizing its box. Rotated 45deg rather than
@@ -515,8 +516,8 @@
515
516
  /* On coarse (touch) pointers a 10px handle is far too small to grab reliably;
516
517
  grow the resize/rotate/adjust hit targets to a finger-friendly size. */
517
518
  @media (pointer: coarse) {
518
- .pptxv-sel-handle { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
519
- .pptxv-rotate-knob { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
519
+ .pptxv-sel-handle { --pptxv-resize-size: 22px; }
520
+ .pptxv-rotate-knob { --pptxv-rotate-size: 24px; }
520
521
  .pptxv-adjust-handle { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
521
522
  }
522
523
  /* Connector endpoint authoring: the two handles on a selected connector, and