pptx-react-viewer 1.14.0 → 1.14.1

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 (85) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{Model3DScene-2E4HO4RQ.js → Model3DScene-E2FDY2TX.js} +2 -2
  3. package/dist/Model3DScene-E2FDY2TX.js.br +0 -0
  4. package/dist/Model3DScene-E2FDY2TX.js.gz +0 -0
  5. package/dist/{Model3DScene-DX7S3IM7.mjs → Model3DScene-JUJB4MJX.mjs} +1 -1
  6. package/dist/Model3DScene-JUJB4MJX.mjs.br +0 -0
  7. package/dist/Model3DScene-JUJB4MJX.mjs.gz +0 -0
  8. package/dist/{PowerPointViewer-DCYB93o0.d.ts → PowerPointViewer-BsaUH3ZT.d.ts} +1 -1
  9. package/dist/{PowerPointViewer-Crgj0LoS.d.mts → PowerPointViewer-Nxku67uL.d.mts} +1 -1
  10. package/dist/{SurfaceChart3DScene-C3D3F2NN.mjs → SurfaceChart3DScene-2DEB7NMW.mjs} +1 -1
  11. package/dist/SurfaceChart3DScene-2DEB7NMW.mjs.br +0 -0
  12. package/dist/SurfaceChart3DScene-2DEB7NMW.mjs.gz +0 -0
  13. package/dist/{SurfaceChart3DScene-327DEJSK.js → SurfaceChart3DScene-Z64TSGR5.js} +2 -2
  14. package/dist/SurfaceChart3DScene-Z64TSGR5.js.br +0 -0
  15. package/dist/SurfaceChart3DScene-Z64TSGR5.js.gz +0 -0
  16. package/dist/{chunk-H5KXQEQD.js → chunk-6CNJINIT.js} +295 -0
  17. package/dist/chunk-6CNJINIT.js.br +0 -0
  18. package/dist/chunk-6CNJINIT.js.gz +0 -0
  19. package/dist/{chunk-FMB2AJD7.js → chunk-CHG7GPGB.js} +400 -555
  20. package/dist/chunk-CHG7GPGB.js.br +0 -0
  21. package/dist/chunk-CHG7GPGB.js.gz +0 -0
  22. package/dist/{chunk-TQD5XTOT.mjs → chunk-CZOMQPLZ.mjs} +63 -218
  23. package/dist/chunk-CZOMQPLZ.mjs.br +0 -0
  24. package/dist/chunk-CZOMQPLZ.mjs.gz +0 -0
  25. package/dist/{chunk-45JY7DOB.mjs → chunk-MAXS6AU7.mjs} +37 -17
  26. package/dist/chunk-MAXS6AU7.mjs.br +0 -0
  27. package/dist/chunk-MAXS6AU7.mjs.gz +0 -0
  28. package/dist/{chunk-55OTTA3H.js → chunk-RXIGJGJN.js} +774 -754
  29. package/dist/chunk-RXIGJGJN.js.br +0 -0
  30. package/dist/chunk-RXIGJGJN.js.gz +0 -0
  31. package/dist/{chunk-JZP5LYN3.mjs → chunk-ZK4SPHDQ.mjs} +289 -1
  32. package/dist/chunk-ZK4SPHDQ.mjs.br +0 -0
  33. package/dist/chunk-ZK4SPHDQ.mjs.gz +0 -0
  34. package/dist/hooks-unstable.d.mts +10 -4
  35. package/dist/hooks-unstable.d.ts +10 -4
  36. package/dist/hooks-unstable.js +73 -73
  37. package/dist/hooks-unstable.js.br +0 -0
  38. package/dist/hooks-unstable.js.gz +0 -0
  39. package/dist/hooks-unstable.mjs +2 -2
  40. package/dist/hooks-unstable.mjs.br +0 -0
  41. package/dist/hooks-unstable.mjs.gz +0 -0
  42. package/dist/index.d.mts +2 -2
  43. package/dist/index.d.ts +2 -2
  44. package/dist/index.js +17 -17
  45. package/dist/index.js.br +0 -0
  46. package/dist/index.js.gz +0 -0
  47. package/dist/index.mjs +3 -3
  48. package/dist/index.mjs.br +0 -0
  49. package/dist/index.mjs.gz +0 -0
  50. package/dist/pptx-viewer.css +1 -1
  51. package/dist/pptx-viewer.css.br +0 -0
  52. package/dist/pptx-viewer.css.gz +0 -0
  53. package/dist/{types-ui-Bagu4aYj.d.mts → types-ui-NG29h55h.d.mts} +17 -6
  54. package/dist/{types-ui-Bagu4aYj.d.ts → types-ui-NG29h55h.d.ts} +17 -6
  55. package/dist/{usePresenterWindow-DxZUXXk_.d.ts → usePresenterWindow-DToCijGy.d.ts} +1 -1
  56. package/dist/{usePresenterWindow-BarXkdvr.d.mts → usePresenterWindow-DeTm-unp.d.mts} +1 -1
  57. package/dist/viewer/index.d.mts +5 -5
  58. package/dist/viewer/index.d.ts +5 -5
  59. package/dist/viewer/index.js +18 -18
  60. package/dist/viewer/index.js.br +0 -0
  61. package/dist/viewer/index.js.gz +0 -0
  62. package/dist/viewer/index.mjs +3 -3
  63. package/dist/viewer/index.mjs.br +0 -0
  64. package/dist/viewer/index.mjs.gz +0 -0
  65. package/package.json +1 -1
  66. package/dist/Model3DScene-2E4HO4RQ.js.br +0 -0
  67. package/dist/Model3DScene-2E4HO4RQ.js.gz +0 -0
  68. package/dist/Model3DScene-DX7S3IM7.mjs.br +0 -0
  69. package/dist/Model3DScene-DX7S3IM7.mjs.gz +0 -0
  70. package/dist/SurfaceChart3DScene-327DEJSK.js.br +0 -0
  71. package/dist/SurfaceChart3DScene-327DEJSK.js.gz +0 -0
  72. package/dist/SurfaceChart3DScene-C3D3F2NN.mjs.br +0 -0
  73. package/dist/SurfaceChart3DScene-C3D3F2NN.mjs.gz +0 -0
  74. package/dist/chunk-45JY7DOB.mjs.br +0 -0
  75. package/dist/chunk-45JY7DOB.mjs.gz +0 -0
  76. package/dist/chunk-55OTTA3H.js.br +0 -0
  77. package/dist/chunk-55OTTA3H.js.gz +0 -0
  78. package/dist/chunk-FMB2AJD7.js.br +0 -0
  79. package/dist/chunk-FMB2AJD7.js.gz +0 -0
  80. package/dist/chunk-H5KXQEQD.js.br +0 -0
  81. package/dist/chunk-H5KXQEQD.js.gz +0 -0
  82. package/dist/chunk-JZP5LYN3.mjs.br +0 -0
  83. package/dist/chunk-JZP5LYN3.mjs.gz +0 -0
  84. package/dist/chunk-TQD5XTOT.mjs.br +0 -0
  85. package/dist/chunk-TQD5XTOT.mjs.gz +0 -0
Binary file
Binary file
@@ -11925,6 +11925,59 @@ function findTextPositionInSegment(editor, segIdx, charOffset) {
11925
11925
  }
11926
11926
  return null;
11927
11927
  }
11928
+ var SENTENCE_END_RE = /([.!?]\s+)/u;
11929
+ function transformTextCase(text, mode) {
11930
+ switch (mode) {
11931
+ case "upper":
11932
+ return text.toUpperCase();
11933
+ case "lower":
11934
+ return text.toLowerCase();
11935
+ case "toggle":
11936
+ return Array.from(text).map((ch) => ch === ch.toUpperCase() ? ch.toLowerCase() : ch.toUpperCase()).join("");
11937
+ case "capitalize":
11938
+ return text.replace(
11939
+ /\p{L}[\p{L}\p{N}'’]*/gu,
11940
+ (word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()
11941
+ );
11942
+ case "sentence":
11943
+ return text.toLowerCase().split(SENTENCE_END_RE).map((part) => {
11944
+ const firstLetter = part.search(/\p{L}/u);
11945
+ if (firstLetter === -1) {
11946
+ return part;
11947
+ }
11948
+ return part.slice(0, firstLetter) + part.charAt(firstLetter).toUpperCase() + part.slice(firstLetter + 1);
11949
+ }).join("");
11950
+ default:
11951
+ return text;
11952
+ }
11953
+ }
11954
+ function applyCaseTransformToSegments(segments, selection, mode) {
11955
+ if (!selection) {
11956
+ return segments.map(
11957
+ (seg) => seg.isParagraphBreak || seg.text === "\n" ? seg : { ...seg, text: transformTextCase(seg.text, mode) }
11958
+ );
11959
+ }
11960
+ const { startSegIdx, startOffset, endSegIdx, endOffset } = selection;
11961
+ const result = [];
11962
+ for (let i = 0; i < segments.length; i++) {
11963
+ const seg = segments[i];
11964
+ if (seg.isParagraphBreak || seg.text === "\n" || i < startSegIdx || i > endSegIdx) {
11965
+ result.push(seg);
11966
+ continue;
11967
+ }
11968
+ const from = i === startSegIdx ? startOffset : 0;
11969
+ const to = i === endSegIdx ? endOffset : seg.text.length;
11970
+ if (from >= to) {
11971
+ result.push(seg);
11972
+ continue;
11973
+ }
11974
+ const before = seg.text.slice(0, from);
11975
+ const selected = transformTextCase(seg.text.slice(from, to), mode);
11976
+ const after = seg.text.slice(to);
11977
+ result.push({ ...seg, text: before + selected + after });
11978
+ }
11979
+ return result;
11980
+ }
11928
11981
  function getConnectionSites(width, height) {
11929
11982
  return [
11930
11983
  { x: width / 2, y: 0, index: 0 },
@@ -16785,6 +16838,241 @@ var ARTISTIC_EFFECTS = [
16785
16838
  ["texturizer", "pptx.image.effectTexturizer", "contrast(110%) brightness(105%)"],
16786
16839
  ["crisscrossEtching", "pptx.image.effectCrisscross", "grayscale(60%) contrast(120%)"]
16787
16840
  ];
16841
+ var PASTE_OFFSET_PX = 20;
16842
+ function generateElementId() {
16843
+ return `el-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
16844
+ }
16845
+ function makeCloneId(intoTemplate, sourceId) {
16846
+ if (!intoTemplate) {
16847
+ return generateElementId();
16848
+ }
16849
+ if (sourceId.startsWith("master-")) {
16850
+ return `master-${generateElementId()}`;
16851
+ }
16852
+ return `layout-${generateElementId()}`;
16853
+ }
16854
+ function buildElementClipboardPayload(element, isTemplate) {
16855
+ return { element: structuredClone(element), isTemplate };
16856
+ }
16857
+ function cloneElementForPaste(element, options = {}) {
16858
+ const clone = structuredClone(element);
16859
+ clone.id = makeCloneId(options.intoTemplate ?? false, element.id);
16860
+ clone.x += options.offsetX ?? PASTE_OFFSET_PX;
16861
+ clone.y += options.offsetY ?? PASTE_OFFSET_PX;
16862
+ return clone;
16863
+ }
16864
+ var SHAPE_PRESET_DEFS = [
16865
+ {
16866
+ type: "rect",
16867
+ label: "Rectangle",
16868
+ i18nKey: "pptx.editorToolbar.shapeRectangle",
16869
+ glyph: "square",
16870
+ glyphClass: ""
16871
+ },
16872
+ {
16873
+ type: "roundRect",
16874
+ label: "Rounded",
16875
+ i18nKey: "pptx.shapePresets.rounded",
16876
+ glyph: "square",
16877
+ glyphClass: ""
16878
+ },
16879
+ {
16880
+ type: "ellipse",
16881
+ label: "Circle",
16882
+ i18nKey: "pptx.shapePresets.circle",
16883
+ glyph: "circle",
16884
+ glyphClass: ""
16885
+ },
16886
+ {
16887
+ type: "cylinder",
16888
+ label: "Cylinder",
16889
+ i18nKey: "pptx.shapePresets.cylinder",
16890
+ glyph: "database",
16891
+ glyphClass: ""
16892
+ },
16893
+ {
16894
+ type: "rtArrow",
16895
+ label: "Right Arrow",
16896
+ i18nKey: "pptx.shapePresets.rightArrow",
16897
+ glyph: "moveRight",
16898
+ glyphClass: ""
16899
+ },
16900
+ {
16901
+ type: "leftArrow",
16902
+ label: "Left Arrow",
16903
+ i18nKey: "pptx.shapePresets.leftArrow",
16904
+ glyph: "moveRight",
16905
+ glyphClass: "rotate-180"
16906
+ },
16907
+ {
16908
+ type: "upArrow",
16909
+ label: "Up Arrow",
16910
+ i18nKey: "pptx.shapePresets.upArrow",
16911
+ glyph: "moveRight",
16912
+ glyphClass: "-rotate-90"
16913
+ },
16914
+ {
16915
+ type: "downArrow",
16916
+ label: "Down Arrow",
16917
+ i18nKey: "pptx.shapePresets.downArrow",
16918
+ glyph: "moveRight",
16919
+ glyphClass: "rotate-90"
16920
+ },
16921
+ {
16922
+ type: "triangle",
16923
+ label: "Triangle",
16924
+ i18nKey: "pptx.editorToolbar.shapeTriangle",
16925
+ glyph: "triangle",
16926
+ glyphClass: ""
16927
+ },
16928
+ {
16929
+ type: "rtTriangle",
16930
+ label: "Right Triangle",
16931
+ i18nKey: "pptx.shapePresets.rightTriangle",
16932
+ glyph: "triangle",
16933
+ glyphClass: "rotate-90"
16934
+ },
16935
+ {
16936
+ type: "diamond",
16937
+ label: "Diamond",
16938
+ i18nKey: "pptx.shapePresets.diamond",
16939
+ glyph: "diamond",
16940
+ glyphClass: ""
16941
+ },
16942
+ {
16943
+ type: "parallelogram",
16944
+ label: "Parallelogram",
16945
+ i18nKey: "pptx.shapePresets.parallelogram",
16946
+ glyph: "square",
16947
+ glyphClass: "-skew-x-12"
16948
+ },
16949
+ {
16950
+ type: "trapezoid",
16951
+ label: "Trapezoid",
16952
+ i18nKey: "pptx.shapePresets.trapezoid",
16953
+ glyph: "square",
16954
+ glyphClass: ""
16955
+ },
16956
+ {
16957
+ type: "pentagon",
16958
+ label: "Pentagon",
16959
+ i18nKey: "pptx.shapePresets.pentagon",
16960
+ glyph: "diamond",
16961
+ glyphClass: ""
16962
+ },
16963
+ {
16964
+ type: "hexagon",
16965
+ label: "Hexagon",
16966
+ i18nKey: "pptx.shapePresets.hexagon",
16967
+ glyph: "diamond",
16968
+ glyphClass: ""
16969
+ },
16970
+ {
16971
+ type: "octagon",
16972
+ label: "Octagon",
16973
+ i18nKey: "pptx.shapePresets.octagon",
16974
+ glyph: "circle",
16975
+ glyphClass: ""
16976
+ },
16977
+ {
16978
+ type: "chevron",
16979
+ label: "Chevron",
16980
+ i18nKey: "pptx.shapePresets.chevron",
16981
+ glyph: "moveRight",
16982
+ glyphClass: ""
16983
+ },
16984
+ {
16985
+ type: "star5",
16986
+ label: "Star",
16987
+ i18nKey: "pptx.shapePresets.star",
16988
+ glyph: "diamond",
16989
+ glyphClass: "rotate-45"
16990
+ },
16991
+ {
16992
+ type: "star6",
16993
+ label: "Star 6",
16994
+ i18nKey: "pptx.shapePresets.star6",
16995
+ glyph: "diamond",
16996
+ glyphClass: ""
16997
+ },
16998
+ {
16999
+ type: "star8",
17000
+ label: "Star 8",
17001
+ i18nKey: "pptx.shapePresets.star8",
17002
+ glyph: "diamond",
17003
+ glyphClass: "rotate-45"
17004
+ },
17005
+ {
17006
+ type: "plus",
17007
+ label: "Plus",
17008
+ i18nKey: "pptx.shapePresets.plus",
17009
+ glyph: "plus",
17010
+ glyphClass: ""
17011
+ },
17012
+ {
17013
+ type: "heart",
17014
+ label: "Heart",
17015
+ i18nKey: "pptx.shapePresets.heart",
17016
+ glyph: "circle",
17017
+ glyphClass: ""
17018
+ },
17019
+ {
17020
+ type: "cloud",
17021
+ label: "Cloud",
17022
+ i18nKey: "pptx.shapePresets.cloud",
17023
+ glyph: "circle",
17024
+ glyphClass: ""
17025
+ },
17026
+ {
17027
+ type: "sun",
17028
+ label: "Sun",
17029
+ i18nKey: "pptx.shapePresets.sun",
17030
+ glyph: "circle",
17031
+ glyphClass: ""
17032
+ },
17033
+ {
17034
+ type: "moon",
17035
+ label: "Moon",
17036
+ i18nKey: "pptx.shapePresets.moon",
17037
+ glyph: "circle",
17038
+ glyphClass: ""
17039
+ },
17040
+ {
17041
+ type: "pie",
17042
+ label: "Pie",
17043
+ i18nKey: "pptx.shapePresets.pie",
17044
+ glyph: "circle",
17045
+ glyphClass: ""
17046
+ },
17047
+ {
17048
+ type: "plaque",
17049
+ label: "Plaque",
17050
+ i18nKey: "pptx.shapePresets.plaque",
17051
+ glyph: "square",
17052
+ glyphClass: ""
17053
+ },
17054
+ {
17055
+ type: "teardrop",
17056
+ label: "Teardrop",
17057
+ i18nKey: "pptx.shapePresets.teardrop",
17058
+ glyph: "circle",
17059
+ glyphClass: ""
17060
+ },
17061
+ {
17062
+ type: "line",
17063
+ label: "Line",
17064
+ i18nKey: "pptx.shapePresets.line",
17065
+ glyph: "minus",
17066
+ glyphClass: ""
17067
+ },
17068
+ {
17069
+ type: "connector",
17070
+ label: "Connector",
17071
+ i18nKey: "pptx.elementType.connector",
17072
+ glyph: "moveRight",
17073
+ glyphClass: ""
17074
+ }
17075
+ ];
16788
17076
  function resolveTitleBarStatusKey(input) {
16789
17077
  const { autosaveState, isDirty, autosaveEnabled, disabledReason } = input;
16790
17078
  if (autosaveState === "disabled") {
@@ -18716,4 +19004,4 @@ function segmentFrameCount(durationMs, fps) {
18716
19004
  return Math.max(1, Math.ceil(durationMs / (1e3 / fps)));
18717
19005
  }
18718
19006
 
18719
- export { ACTION_BUTTON_PRESETS, ARTISTIC_EFFECTS, BROADCAST_THROTTLE_MS, CATEGORIES, CONNECTION_TIMEOUT_MS, DEFAULT_BROADCAST_SERVER_URL, DEFAULT_COLOR_CHANGE_TOLERANCE, DEFAULT_INSERT_CHART_TYPE, DEFAULT_ROW_HEIGHT, DIRECTIONAL_PRESETS, DUOTONE_PRESETS, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, FILL_MODE_OPTIONS, GRADIENT_TYPE_OPTIONS, HANDOUT_OPTIONS, INITIAL_SYNC_GRACE_MS, INK_REPLAY_KEYFRAMES, INSERT_CHART_TYPES, LBL, LOCAL_SYNC_ORIGIN, MOBILE_BREAKPOINT, NOTES_FONT_SIZE_DEFAULT, NOTES_FONT_SIZE_MAX, NOTES_FONT_SIZE_MIN, NOTES_FONT_SIZE_STEP, NUM, PATTERN_OPTIONS, PRESETS, RULER_FONT_SIZE, RULER_THICKNESS, SECTION_HEADING, SEL, SLIDE_TRANSITION_KEYFRAMES, TABLET_BREAKPOINT, TABLE_STYLE_PRESETS, TAB_ROW_ACTION_CLASSES, TEXT_BUILD_ID_SEP, THEME_COLOR_LABELS, TITLE_BAR_CLASSES, TITLE_BAR_DEFAULT_FILE_KEY, TimelineEngine, WEBM_MIME_CANDIDATES, addSection, alignElements, apply3dEffects, applyColorChange, applyDuotone, applyFormatToElement, applyReroutedConnectors, applyResize, applyStyleToSelectedSegments, bringForward, bringToFront, build3DExtrusionData, buildBroadcastViewerUrl, buildCacheKey, buildChartViewModel, buildCssGradientFromShapeStyle, buildDuotoneCacheKey, buildGlowBoxShadow, buildHandoutsHtml, buildInitialGuides, buildInnerShadowCssFromShapeStyle, buildMultiLayerShadowCss, buildNotesHtml, buildNotesPdfBytes, buildOutlineHtml, buildPatternFillCss, buildPreviewAnimation, buildPrintDocument, buildPrintHtmlDocument, buildReflectionCss, buildShadowCssFromShapeStyle, buildSlidesHtml, buildSlidesPdfBytes, buildSmartArt3DModel, buildSmartArtA11y, buildSmartArtPresetData, buildTextBody3DSceneStyle, buildTextFillCss, buildTextReflectionCss, buildTextRunFilterChain, buildTextShadowCss, buildThemeColorGrid, canvasToJpegData, chartPartToAttrs, clampCropValue, clampNotesFontSize, clampPercent, clampUnitInterval, cloneHistorySnapshot, cloneSlide, cloneTemplateElementsBySlideId, collectImagePaths, collectMediaElements, colorWithOpacity, comparePresentation, computeAllNotesPages, computeAutoFitTextStyle, computeColumnBoundaries, computeHandoutLayout, computeInlineEditorRect, computeKeyboardInset, computeLayout, computeLayoutOptions, computeMarqueeHitIds, computeMergeCellDown, computeMergeCellRight, computeResizedColumnWidths, computeResizedRowHeight, computeScrollDelta, computeSelectionRect, computeSmartArtLayout, computeSnapToShape, computeSplitCell, computeValueRange, computeValueRangeForChart, convertLatexToOmml, convertOmmlToLatex, convertOmmlToMathMl, copyFormatFromElement, countTextSegments, createBlankSlide, createDefaultChartElement, createTouchGestureRecognizer, defaultCssVars, defaultRadius, defaultThemeColors, deleteSection, deleteTableColumn, deleteTableRow, derivePresenceList, detectOrientation, detectTouchDevice, distributeElements, downloadBlob, downloadDataUrl, dragAnchorViewY, dragValueForPart, encodeGif, expandTextBuildAnimations, extractPathPoints, filterCommands, findChartPartTarget, findSmartArtNodeText, formatAxisValue, formatAxisValueWithUnits, formatBytes, formatCommentTimestamp, formatElapsed, formatMobileElapsed, formatRelativeTime, formatSlideCounter, formatTime, formatVersionTimestamp, fpsToFrameIntervalMs, generateBroadcastRoomId, generateLogTicks, generateNoteLineCount, generatePressureCircles, generateTicks, getAnimationInitialStyle, getAriaLabel, getAriaRole, getAriaRoleDescription, getCachedResult, getChartStylePalette, getCommentMarkerPosition, getCompoundLineBorderWidth, getCompoundLineBoxShadow, getCompoundLineOffsets, getCompoundLineWidths, getConnectionSites, getContentPartReplayStyles, getCssBorderDashStyle, getDisplayUnitLabel, getDuotoneCachedResult, getEffectDagFilter, getElementLabel, getElementTransform, getElementTransformWithoutRotation, getImageEffectsFilter, getImageEffectsOpacity, getInkReplayStyles, getInlineEditorSelection, getKinsokuLineBreakStyles, getNotesPrintableArea, getOleBadgeLabel, getOleTypeColor, getOleTypeLabel, getPatternSvg, getPendingSelectionRestore, getPrintableArea, getResolvedShapeClipPath, getRoundRectRadiusPx, getSecondaryValueAxis, getShapeAdjustmentHandleDescriptor, getSlideTransitionAnimations, getSvgStrokeDasharray, getTextAlphaOpacity, getTextCompensationTransform, getWarpPath, groupElements, groupIntoParagraphs, hasCopyableFormat, hasDistinctScriptFonts, hasPressureVariation, insertTableColumn, insertTableRow, isBrowserOpenableMime, isCellInRect, isEditableTextElement, isExportAbortError, isFirstSlide, isKeyboardOpen, isLastSlide, isMixedContentBlocked, isMobileViewport, isPpactionUrl, isTemplateElement, isTemplateElementId, isUrlSafe, makeSlideId, mergeAdditiveSelection, mergeCells, mobileElapsedSince, mobileSlideCounter, mountModel3D, mountSurfaceChart3D, moveSectionDown, moveSectionUp, moveSlidesToSection, newTableElement, normalizeColorsForCapture, normalizeHexColor, normalizeStrokeDashType, normalizeValue, notesSegmentsToSpans, observeYDocSlides, ooxmlDashToCssBorderStyle, openPptxFile, openUrlInNewTab, paletteColor, parseDrawingColor, parseDrawingColorOpacity, parsePpactionUrl, pickSupportedMimeType, preprocessCssForCapture, pressuresToWidths, readSlidesFromYDoc, readViewportMetrics, rebuildDrawingShapesIfCleared, reconcileSlidesInYDoc, recordProgressPercent, rectToCells, remapTextToSegments, renameSection, rerouteConnectorsForMovedElements, resolveCssTextAlign, resolveDrawingShapeNodeId, resolveFontForScript, resolveInkColor, resolveInkOpacity, resolveInkWidth, resolveLineHeight, resolveOleType, resolveParagraphAlign, resolveParagraphRtl, resolveRegionCode, resolveTitleBarStatusKey, resolveTransitionDurationMs, resolveTransportForServerUrl, resolveUnderlineDecorationStyle, restoreSegmentSelection, safeOpenUrl, sanitizeColor, sanitizeDownloadFilename, sanitizeMathMl, saveAutosaveSnapshot, secureRandomUuid, segmentByScript, segmentFrameCount, sendBackward, sendToBack, sequentialColorScale, seriesColor, setCachedResult, setDuotoneCachedResult, setPendingSelectionRestore, shadeColor2, shouldCommitSmartArtNodeText, shouldUseSvgWarp, slideProgressPercent, slideStatusLabel, snapBoxToGrid, splitCell, splitSeriesByAxis, substituteFieldText, svgLineCap, themeToCssVars, tintColor2, toCssTextOrientation, toCssVerticalDirection, toCssWritingMode, validateRoomId, valueToY, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, withChartPointValue, withChartTitle };
19007
+ export { ACTION_BUTTON_PRESETS, ARTISTIC_EFFECTS, BROADCAST_THROTTLE_MS, CATEGORIES, CONNECTION_TIMEOUT_MS, DEFAULT_BROADCAST_SERVER_URL, DEFAULT_COLOR_CHANGE_TOLERANCE, DEFAULT_INSERT_CHART_TYPE, DEFAULT_ROW_HEIGHT, DIRECTIONAL_PRESETS, DUOTONE_PRESETS, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, FILL_MODE_OPTIONS, GRADIENT_TYPE_OPTIONS, HANDOUT_OPTIONS, INITIAL_SYNC_GRACE_MS, INK_REPLAY_KEYFRAMES, INSERT_CHART_TYPES, LBL, LOCAL_SYNC_ORIGIN, MOBILE_BREAKPOINT, NOTES_FONT_SIZE_DEFAULT, NOTES_FONT_SIZE_MAX, NOTES_FONT_SIZE_MIN, NOTES_FONT_SIZE_STEP, NUM, PATTERN_OPTIONS, PRESETS, RULER_FONT_SIZE, RULER_THICKNESS, SECTION_HEADING, SEL, SHAPE_PRESET_DEFS, SLIDE_TRANSITION_KEYFRAMES, TABLET_BREAKPOINT, TABLE_STYLE_PRESETS, TAB_ROW_ACTION_CLASSES, TEXT_BUILD_ID_SEP, THEME_COLOR_LABELS, TITLE_BAR_CLASSES, TITLE_BAR_DEFAULT_FILE_KEY, TimelineEngine, WEBM_MIME_CANDIDATES, addSection, alignElements, apply3dEffects, applyCaseTransformToSegments, applyColorChange, applyDuotone, applyFormatToElement, applyReroutedConnectors, applyResize, applyStyleToSelectedSegments, bringForward, bringToFront, build3DExtrusionData, buildBroadcastViewerUrl, buildCacheKey, buildChartViewModel, buildCssGradientFromShapeStyle, buildDuotoneCacheKey, buildElementClipboardPayload, buildGlowBoxShadow, buildHandoutsHtml, buildInitialGuides, buildInnerShadowCssFromShapeStyle, buildMultiLayerShadowCss, buildNotesHtml, buildNotesPdfBytes, buildOutlineHtml, buildPatternFillCss, buildPreviewAnimation, buildPrintDocument, buildPrintHtmlDocument, buildReflectionCss, buildShadowCssFromShapeStyle, buildSlidesHtml, buildSlidesPdfBytes, buildSmartArt3DModel, buildSmartArtA11y, buildSmartArtPresetData, buildTextBody3DSceneStyle, buildTextFillCss, buildTextReflectionCss, buildTextRunFilterChain, buildTextShadowCss, buildThemeColorGrid, canvasToJpegData, chartPartToAttrs, clampCropValue, clampNotesFontSize, clampPercent, clampUnitInterval, cloneElementForPaste, cloneHistorySnapshot, cloneSlide, cloneTemplateElementsBySlideId, collectImagePaths, collectMediaElements, colorWithOpacity, comparePresentation, computeAllNotesPages, computeAutoFitTextStyle, computeColumnBoundaries, computeHandoutLayout, computeInlineEditorRect, computeKeyboardInset, computeLayout, computeLayoutOptions, computeMarqueeHitIds, computeMergeCellDown, computeMergeCellRight, computeResizedColumnWidths, computeResizedRowHeight, computeScrollDelta, computeSelectionRect, computeSmartArtLayout, computeSnapToShape, computeSplitCell, computeValueRange, computeValueRangeForChart, convertLatexToOmml, convertOmmlToLatex, convertOmmlToMathMl, copyFormatFromElement, countTextSegments, createBlankSlide, createDefaultChartElement, createTouchGestureRecognizer, defaultCssVars, defaultRadius, defaultThemeColors, deleteSection, deleteTableColumn, deleteTableRow, derivePresenceList, detectOrientation, detectTouchDevice, distributeElements, downloadBlob, downloadDataUrl, dragAnchorViewY, dragValueForPart, encodeGif, expandTextBuildAnimations, extractPathPoints, filterCommands, findChartPartTarget, findSmartArtNodeText, formatAxisValue, formatAxisValueWithUnits, formatBytes, formatCommentTimestamp, formatElapsed, formatMobileElapsed, formatRelativeTime, formatSlideCounter, formatTime, formatVersionTimestamp, fpsToFrameIntervalMs, generateBroadcastRoomId, generateElementId, generateLogTicks, generateNoteLineCount, generatePressureCircles, generateTicks, getAnimationInitialStyle, getAriaLabel, getAriaRole, getAriaRoleDescription, getCachedResult, getChartStylePalette, getCommentMarkerPosition, getCompoundLineBorderWidth, getCompoundLineBoxShadow, getCompoundLineOffsets, getCompoundLineWidths, getConnectionSites, getContentPartReplayStyles, getCssBorderDashStyle, getDisplayUnitLabel, getDuotoneCachedResult, getEffectDagFilter, getElementLabel, getElementTransform, getElementTransformWithoutRotation, getImageEffectsFilter, getImageEffectsOpacity, getInkReplayStyles, getInlineEditorSelection, getKinsokuLineBreakStyles, getNotesPrintableArea, getOleBadgeLabel, getOleTypeColor, getOleTypeLabel, getPatternSvg, getPendingSelectionRestore, getPrintableArea, getResolvedShapeClipPath, getRoundRectRadiusPx, getSecondaryValueAxis, getShapeAdjustmentHandleDescriptor, getSlideTransitionAnimations, getSvgStrokeDasharray, getTextAlphaOpacity, getTextCompensationTransform, getWarpPath, groupElements, groupIntoParagraphs, hasCopyableFormat, hasDistinctScriptFonts, hasPressureVariation, insertTableColumn, insertTableRow, isBrowserOpenableMime, isCellInRect, isEditableTextElement, isExportAbortError, isFirstSlide, isKeyboardOpen, isLastSlide, isMixedContentBlocked, isMobileViewport, isPpactionUrl, isTemplateElement, isTemplateElementId, isUrlSafe, makeCloneId, makeSlideId, mergeAdditiveSelection, mergeCells, mobileElapsedSince, mobileSlideCounter, mountModel3D, mountSurfaceChart3D, moveSectionDown, moveSectionUp, moveSlidesToSection, newTableElement, normalizeColorsForCapture, normalizeHexColor, normalizeStrokeDashType, normalizeValue, notesSegmentsToSpans, observeYDocSlides, ooxmlDashToCssBorderStyle, openPptxFile, openUrlInNewTab, paletteColor, parseDrawingColor, parseDrawingColorOpacity, parsePpactionUrl, pickSupportedMimeType, preprocessCssForCapture, pressuresToWidths, readSlidesFromYDoc, readViewportMetrics, rebuildDrawingShapesIfCleared, reconcileSlidesInYDoc, recordProgressPercent, rectToCells, remapTextToSegments, renameSection, rerouteConnectorsForMovedElements, resolveCssTextAlign, resolveDrawingShapeNodeId, resolveFontForScript, resolveInkColor, resolveInkOpacity, resolveInkWidth, resolveLineHeight, resolveOleType, resolveParagraphAlign, resolveParagraphRtl, resolveRegionCode, resolveTitleBarStatusKey, resolveTransitionDurationMs, resolveTransportForServerUrl, resolveUnderlineDecorationStyle, restoreSegmentSelection, safeOpenUrl, sanitizeColor, sanitizeDownloadFilename, sanitizeMathMl, saveAutosaveSnapshot, secureRandomUuid, segmentByScript, segmentFrameCount, sendBackward, sendToBack, sequentialColorScale, seriesColor, setCachedResult, setDuotoneCachedResult, setPendingSelectionRestore, shadeColor2, shouldCommitSmartArtNodeText, shouldUseSvgWarp, slideProgressPercent, slideStatusLabel, snapBoxToGrid, splitCell, splitSeriesByAxis, substituteFieldText, svgLineCap, themeToCssVars, tintColor2, toCssTextOrientation, toCssVerticalDirection, toCssWritingMode, transformTextCase, validateRoomId, valueToY, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, withChartPointValue, withChartTitle };
Binary file
Binary file
@@ -1,9 +1,9 @@
1
1
  import { P, a, r, R, a2, A, ap, J, aq, t, u, s, y, z, x, D, v, w, K, bk, B, $, a0, l, ca, I, S, m, e, f, N, o } from './presentation-BfnrtJV1.js';
2
- import { d as CanvasSize, E as EditorHistorySnapshot, q as PresentationAnimationRuntime, H as ElementAnimationState, V as ViewerMode, D as DragState, r as ResizeState, S as ShapeAdjustmentDragState, M as MarqueeSelectionState, B as SupportedShapeType, l as ElementClipboardPayload, G as ToolbarSection, A as AccessibilityIssue, n as ElementContextMenuState, T as TableCellEditorState, j as DrawingTool, m as ElementContextMenuAction, I as PrintSettings, J as CompareResult, x as SlideSectionGroup, a as PowerPointViewerHandle, C as CollaborationConfig, K as DeviceOrientation, L as TouchGestureCallbacks } from './types-ui-Bagu4aYj.mjs';
3
- export { N as MOBILE_BREAKPOINT, O as TABLET_BREAKPOINT } from './types-ui-Bagu4aYj.mjs';
2
+ import { d as CanvasSize, E as EditorHistorySnapshot, q as PresentationAnimationRuntime, H as ElementAnimationState, V as ViewerMode, D as DragState, r as ResizeState, S as ShapeAdjustmentDragState, M as MarqueeSelectionState, B as SupportedShapeType, l as ElementClipboardPayload, G as ToolbarSection, A as AccessibilityIssue, n as ElementContextMenuState, T as TableCellEditorState, j as DrawingTool, I as ChangeCaseMode, m as ElementContextMenuAction, J as PrintSettings, K as CompareResult, x as SlideSectionGroup, a as PowerPointViewerHandle, C as CollaborationConfig, L as DeviceOrientation, N as TouchGestureCallbacks } from './types-ui-NG29h55h.mjs';
3
+ export { O as MOBILE_BREAKPOINT, Q as TABLET_BREAKPOINT } from './types-ui-NG29h55h.mjs';
4
4
  import React__default, { Dispatch, SetStateAction, RefObject, MutableRefObject, ForwardedRef } from 'react';
5
- import { P as PptxHandler, M as MergeShapeOperation, k as PptxSaveFormat, a as CollaborationContextValue } from './usePresenterWindow-BarXkdvr.mjs';
6
- export { C as ConnectionStatus, T as ThemeSwitchingResult, l as UseCollaborativeHistoryInput, b as UseCollaborativeHistoryResult, c as UseCollaborativeStateInput, m as UsePresenceTrackingInput, d as UsePresenceTrackingResult, n as UsePresenterWindowInput, o as UsePresenterWindowResult, e as UseThemeSwitchingInput, p as UseYjsProviderInput, q as UseYjsProviderResult, U as UserPresence, u as useCollaborativeHistory, f as useCollaborativeState, g as usePresenceTracking, r as usePresenterWindow, h as useThemeSwitching, j as useYjsProvider } from './usePresenterWindow-BarXkdvr.mjs';
5
+ import { P as PptxHandler, M as MergeShapeOperation, k as PptxSaveFormat, a as CollaborationContextValue } from './usePresenterWindow-DeTm-unp.mjs';
6
+ export { C as ConnectionStatus, T as ThemeSwitchingResult, l as UseCollaborativeHistoryInput, b as UseCollaborativeHistoryResult, c as UseCollaborativeStateInput, m as UsePresenceTrackingInput, d as UsePresenceTrackingResult, n as UsePresenterWindowInput, o as UsePresenterWindowResult, e as UseThemeSwitchingInput, p as UseYjsProviderInput, q as UseYjsProviderResult, U as UserPresence, u as useCollaborativeHistory, f as useCollaborativeState, g as usePresenceTracking, r as usePresenterWindow, h as useThemeSwitching, j as useYjsProvider } from './usePresenterWindow-DeTm-unp.mjs';
7
7
  import { Doc } from 'yjs';
8
8
  import './theme/index.js';
9
9
  import 'y-protocols/awareness';
@@ -788,6 +788,8 @@ interface ElementOperations {
788
788
  updateSelectedElement: (updates: Partial<a>) => void;
789
789
  updateSelectedShapeStyle: (updates: Partial<$>) => void;
790
790
  updateSelectedTextStyle: (updates: Partial<a0>) => void;
791
+ /** Rewrite the selected text's characters (PowerPoint's Aa "Change Case" dropdown). */
792
+ updateSelectedTextCase: (mode: ChangeCaseMode) => void;
791
793
  updateSlides: (updater: (s: P[]) => P[]) => void;
792
794
  /**
793
795
  * The element list currently being edited: the template store for the active
@@ -1918,6 +1920,10 @@ declare function useKeyboardInsets(enabled?: boolean): UseKeyboardInsetsResult;
1918
1920
  /**
1919
1921
  * useClipboardHandlers: Copy, cut, paste, duplicate, and delete handlers
1920
1922
  * extracted from useElementManipulation.
1923
+ *
1924
+ * Thin wrapper over the shared element-clipboard module
1925
+ * (`pptx-viewer-shared`, render/element-clipboard.ts), which owns the pure
1926
+ * payload building + paste cloning (fresh template-aware ids, cascade offset).
1921
1927
  */
1922
1928
 
1923
1929
  interface ClipboardInput {
@@ -1,9 +1,9 @@
1
1
  import { P, a, r, R, a2, A, ap, J, aq, t, u, s, y, z, x, D, v, w, K, bk, B, $, a0, l, ca, I, S, m, e, f, N, o } from './presentation-BfnrtJV1.js';
2
- import { d as CanvasSize, E as EditorHistorySnapshot, q as PresentationAnimationRuntime, H as ElementAnimationState, V as ViewerMode, D as DragState, r as ResizeState, S as ShapeAdjustmentDragState, M as MarqueeSelectionState, B as SupportedShapeType, l as ElementClipboardPayload, G as ToolbarSection, A as AccessibilityIssue, n as ElementContextMenuState, T as TableCellEditorState, j as DrawingTool, m as ElementContextMenuAction, I as PrintSettings, J as CompareResult, x as SlideSectionGroup, a as PowerPointViewerHandle, C as CollaborationConfig, K as DeviceOrientation, L as TouchGestureCallbacks } from './types-ui-Bagu4aYj.js';
3
- export { N as MOBILE_BREAKPOINT, O as TABLET_BREAKPOINT } from './types-ui-Bagu4aYj.js';
2
+ import { d as CanvasSize, E as EditorHistorySnapshot, q as PresentationAnimationRuntime, H as ElementAnimationState, V as ViewerMode, D as DragState, r as ResizeState, S as ShapeAdjustmentDragState, M as MarqueeSelectionState, B as SupportedShapeType, l as ElementClipboardPayload, G as ToolbarSection, A as AccessibilityIssue, n as ElementContextMenuState, T as TableCellEditorState, j as DrawingTool, I as ChangeCaseMode, m as ElementContextMenuAction, J as PrintSettings, K as CompareResult, x as SlideSectionGroup, a as PowerPointViewerHandle, C as CollaborationConfig, L as DeviceOrientation, N as TouchGestureCallbacks } from './types-ui-NG29h55h.js';
3
+ export { O as MOBILE_BREAKPOINT, Q as TABLET_BREAKPOINT } from './types-ui-NG29h55h.js';
4
4
  import React__default, { Dispatch, SetStateAction, RefObject, MutableRefObject, ForwardedRef } from 'react';
5
- import { P as PptxHandler, M as MergeShapeOperation, k as PptxSaveFormat, a as CollaborationContextValue } from './usePresenterWindow-DxZUXXk_.js';
6
- export { C as ConnectionStatus, T as ThemeSwitchingResult, l as UseCollaborativeHistoryInput, b as UseCollaborativeHistoryResult, c as UseCollaborativeStateInput, m as UsePresenceTrackingInput, d as UsePresenceTrackingResult, n as UsePresenterWindowInput, o as UsePresenterWindowResult, e as UseThemeSwitchingInput, p as UseYjsProviderInput, q as UseYjsProviderResult, U as UserPresence, u as useCollaborativeHistory, f as useCollaborativeState, g as usePresenceTracking, r as usePresenterWindow, h as useThemeSwitching, j as useYjsProvider } from './usePresenterWindow-DxZUXXk_.js';
5
+ import { P as PptxHandler, M as MergeShapeOperation, k as PptxSaveFormat, a as CollaborationContextValue } from './usePresenterWindow-DToCijGy.js';
6
+ export { C as ConnectionStatus, T as ThemeSwitchingResult, l as UseCollaborativeHistoryInput, b as UseCollaborativeHistoryResult, c as UseCollaborativeStateInput, m as UsePresenceTrackingInput, d as UsePresenceTrackingResult, n as UsePresenterWindowInput, o as UsePresenterWindowResult, e as UseThemeSwitchingInput, p as UseYjsProviderInput, q as UseYjsProviderResult, U as UserPresence, u as useCollaborativeHistory, f as useCollaborativeState, g as usePresenceTracking, r as usePresenterWindow, h as useThemeSwitching, j as useYjsProvider } from './usePresenterWindow-DToCijGy.js';
7
7
  import { Doc } from 'yjs';
8
8
  import './theme/index.js';
9
9
  import 'y-protocols/awareness';
@@ -788,6 +788,8 @@ interface ElementOperations {
788
788
  updateSelectedElement: (updates: Partial<a>) => void;
789
789
  updateSelectedShapeStyle: (updates: Partial<$>) => void;
790
790
  updateSelectedTextStyle: (updates: Partial<a0>) => void;
791
+ /** Rewrite the selected text's characters (PowerPoint's Aa "Change Case" dropdown). */
792
+ updateSelectedTextCase: (mode: ChangeCaseMode) => void;
791
793
  updateSlides: (updater: (s: P[]) => P[]) => void;
792
794
  /**
793
795
  * The element list currently being edited: the template store for the active
@@ -1918,6 +1920,10 @@ declare function useKeyboardInsets(enabled?: boolean): UseKeyboardInsetsResult;
1918
1920
  /**
1919
1921
  * useClipboardHandlers: Copy, cut, paste, duplicate, and delete handlers
1920
1922
  * extracted from useElementManipulation.
1923
+ *
1924
+ * Thin wrapper over the shared element-clipboard module
1925
+ * (`pptx-viewer-shared`, render/element-clipboard.ts), which owns the pure
1926
+ * payload building + paste cloning (fresh template-aware ids, cascade offset).
1921
1927
  */
1922
1928
 
1923
1929
  interface ClipboardInput {