pptx-react-viewer 4.18.0 → 4.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.
- package/CHANGELOG.md +35 -0
- package/dist/{AiChatPanel-4RAGQKFE.js → AiChatPanel-6ABOTMI4.js} +28 -28
- package/dist/AiChatPanel-6ABOTMI4.js.br +0 -0
- package/dist/AiChatPanel-6ABOTMI4.js.gz +0 -0
- package/dist/{AiChatPanel-BIS3OYZ2.mjs → AiChatPanel-QEOFQGNY.mjs} +4 -4
- package/dist/AiChatPanel-QEOFQGNY.mjs.br +0 -0
- package/dist/AiChatPanel-QEOFQGNY.mjs.gz +0 -0
- package/dist/{Model3DScene-ZVXXKGMO.mjs → Model3DScene-CKBO4RI2.mjs} +1 -1
- package/dist/{Model3DScene-ZVXXKGMO.mjs.br → Model3DScene-CKBO4RI2.mjs.br} +0 -0
- package/dist/Model3DScene-CKBO4RI2.mjs.gz +0 -0
- package/dist/{Model3DScene-KJBH5LFE.js → Model3DScene-ESGCOB2O.js} +2 -2
- package/dist/Model3DScene-ESGCOB2O.js.br +0 -0
- package/dist/Model3DScene-ESGCOB2O.js.gz +0 -0
- package/dist/{chunk-XZQNOZA6.js → chunk-E3TLDJPS.js} +4666 -2413
- package/dist/chunk-E3TLDJPS.js.br +0 -0
- package/dist/chunk-E3TLDJPS.js.gz +0 -0
- package/dist/{chunk-SJJ4AOLI.js → chunk-FNO4C3LU.js} +831 -831
- package/dist/chunk-FNO4C3LU.js.br +0 -0
- package/dist/chunk-FNO4C3LU.js.gz +0 -0
- package/dist/{chunk-UWRUG37I.js → chunk-H7FXW2Q3.js} +5 -5
- package/dist/chunk-H7FXW2Q3.js.br +0 -0
- package/dist/chunk-H7FXW2Q3.js.gz +0 -0
- package/dist/{chunk-X5O53JPT.mjs → chunk-LE3JUNIR.mjs} +2 -2
- package/dist/chunk-LE3JUNIR.mjs.br +0 -0
- package/dist/chunk-LE3JUNIR.mjs.gz +0 -0
- package/dist/{chunk-2GRLCBMP.js → chunk-LKL6DQ55.js} +24 -4
- package/dist/chunk-LKL6DQ55.js.br +0 -0
- package/dist/chunk-LKL6DQ55.js.gz +0 -0
- package/dist/{chunk-SJJY4B4V.mjs → chunk-OCUCBRXU.mjs} +4 -4
- package/dist/chunk-OCUCBRXU.mjs.br +0 -0
- package/dist/chunk-OCUCBRXU.mjs.gz +0 -0
- package/dist/{chunk-IDZ7S2O3.mjs → chunk-Q4HRYUEP.mjs} +24 -4
- package/dist/chunk-Q4HRYUEP.mjs.br +0 -0
- package/dist/chunk-Q4HRYUEP.mjs.gz +0 -0
- package/dist/{chunk-CJ3GYPF6.js → chunk-QSBL4SL6.js} +2829 -3781
- package/dist/chunk-QSBL4SL6.js.br +0 -0
- package/dist/chunk-QSBL4SL6.js.gz +0 -0
- package/dist/{chunk-5OYCO5WW.mjs → chunk-VX52VUBD.mjs} +1 -1
- package/dist/chunk-VX52VUBD.mjs.br +0 -0
- package/dist/chunk-VX52VUBD.mjs.gz +0 -0
- package/dist/{chunk-7T64DQTQ.js → chunk-WAUDRNBY.js} +197 -197
- package/dist/chunk-WAUDRNBY.js.br +0 -0
- package/dist/chunk-WAUDRNBY.js.gz +0 -0
- package/dist/{chunk-NWWE7I6R.mjs → chunk-YL7IPY2B.mjs} +985 -1937
- package/dist/chunk-YL7IPY2B.mjs.br +0 -0
- package/dist/chunk-YL7IPY2B.mjs.gz +0 -0
- package/dist/{chunk-EDQ436NK.mjs → chunk-YYVPC6KI.mjs} +4660 -2401
- package/dist/chunk-YYVPC6KI.mjs.br +0 -0
- package/dist/chunk-YYVPC6KI.mjs.gz +0 -0
- package/dist/i18n/de.cjs +20 -0
- package/dist/i18n/de.cjs.br +0 -0
- package/dist/i18n/de.cjs.gz +0 -0
- package/dist/i18n/de.mjs +20 -0
- package/dist/i18n/de.mjs.br +0 -0
- package/dist/i18n/de.mjs.gz +0 -0
- package/dist/i18n/es.cjs +20 -0
- package/dist/i18n/es.cjs.br +0 -0
- package/dist/i18n/es.cjs.gz +0 -0
- package/dist/i18n/es.mjs +20 -0
- package/dist/i18n/es.mjs.br +0 -0
- package/dist/i18n/es.mjs.gz +0 -0
- package/dist/i18n/fr.cjs +20 -0
- package/dist/i18n/fr.cjs.br +0 -0
- package/dist/i18n/fr.cjs.gz +0 -0
- package/dist/i18n/fr.mjs +20 -0
- package/dist/i18n/fr.mjs.br +0 -0
- package/dist/i18n/fr.mjs.gz +0 -0
- package/dist/i18n/zh-CN.cjs +20 -0
- package/dist/i18n/zh-CN.cjs.br +0 -0
- package/dist/i18n/zh-CN.cjs.gz +0 -0
- package/dist/i18n/zh-CN.mjs +20 -0
- package/dist/i18n/zh-CN.mjs.br +0 -0
- package/dist/i18n/zh-CN.mjs.gz +0 -0
- package/dist/i18n.js +4 -4
- package/dist/i18n.js.br +0 -0
- package/dist/i18n.js.gz +0 -0
- package/dist/i18n.mjs +1 -1
- package/dist/i18n.mjs.br +0 -0
- package/dist/i18n.mjs.gz +0 -0
- package/dist/index.d.ts +153 -5
- package/dist/index.js +63 -63
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +153 -5
- package/dist/internals.js +105 -105
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +4 -4
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/pptx-viewer.css +1 -1
- package/dist/pptx-viewer.css.br +0 -0
- package/dist/pptx-viewer.css.gz +0 -0
- package/dist/viewer/index.d.ts +153 -5
- package/dist/viewer/index.js +27 -27
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +6 -6
- package/dist/viewer/index.mjs.br +1 -1
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +1 -1
- package/dist/AiChatPanel-4RAGQKFE.js.br +0 -0
- package/dist/AiChatPanel-4RAGQKFE.js.gz +0 -0
- package/dist/AiChatPanel-BIS3OYZ2.mjs.br +0 -0
- package/dist/AiChatPanel-BIS3OYZ2.mjs.gz +0 -0
- package/dist/Model3DScene-KJBH5LFE.js.br +0 -0
- package/dist/Model3DScene-KJBH5LFE.js.gz +0 -0
- package/dist/Model3DScene-ZVXXKGMO.mjs.gz +0 -0
- package/dist/chunk-2GRLCBMP.js.br +0 -0
- package/dist/chunk-2GRLCBMP.js.gz +0 -0
- package/dist/chunk-5OYCO5WW.mjs.br +0 -0
- package/dist/chunk-5OYCO5WW.mjs.gz +0 -0
- package/dist/chunk-7T64DQTQ.js.br +0 -0
- package/dist/chunk-7T64DQTQ.js.gz +0 -0
- package/dist/chunk-CJ3GYPF6.js.br +0 -0
- package/dist/chunk-CJ3GYPF6.js.gz +0 -0
- package/dist/chunk-EDQ436NK.mjs.br +0 -0
- package/dist/chunk-EDQ436NK.mjs.gz +0 -0
- package/dist/chunk-IDZ7S2O3.mjs.br +0 -0
- package/dist/chunk-IDZ7S2O3.mjs.gz +0 -0
- package/dist/chunk-NWWE7I6R.mjs.br +0 -0
- package/dist/chunk-NWWE7I6R.mjs.gz +0 -0
- package/dist/chunk-SJJ4AOLI.js.br +0 -0
- package/dist/chunk-SJJ4AOLI.js.gz +0 -0
- package/dist/chunk-SJJY4B4V.mjs.br +0 -0
- package/dist/chunk-SJJY4B4V.mjs.gz +0 -0
- package/dist/chunk-UWRUG37I.js.br +0 -0
- package/dist/chunk-UWRUG37I.js.gz +0 -0
- package/dist/chunk-X5O53JPT.mjs.br +0 -0
- package/dist/chunk-X5O53JPT.mjs.gz +0 -0
- package/dist/chunk-XZQNOZA6.js.br +0 -0
- package/dist/chunk-XZQNOZA6.js.gz +0 -0
package/dist/viewer/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PptxTheme, PptxTransitionType, PptxSlideTransition, PptxElement, PptxSlide, PptxAnimationPreset, ConnectorArrowType, XmlObject, PptxHandler, PptxData, PptxElementAnimation, ShapeStyle, StrokeDashType, PptxNativeAnimation, PptxThemePreset, PptxThemeColorScheme, PptxThemeFontScheme } from '
|
|
1
|
+
import { PptxTheme, PptxThemeColorRef, PptxLayoutPreview, PptxTransitionType, PptxSlideTransition, PptxElement, PptxSlide, PptxAnimationPreset, ConnectorArrowType, XmlObject, PptxHandler, PptxData, PptxElementAnimation, ShapeStyle, StrokeDashType, PptxNativeAnimation, PptxThemePreset, PptxThemeColorScheme, PptxThemeFontScheme } from 'ooxml-core/pptx';
|
|
2
2
|
import * as Y from 'yjs';
|
|
3
3
|
import { Doc } from 'yjs';
|
|
4
4
|
import * as React from 'react';
|
|
@@ -1207,6 +1207,25 @@ declare const RIBBON_CONTROL_CATALOG: {
|
|
|
1207
1207
|
};
|
|
1208
1208
|
};
|
|
1209
1209
|
readonly smartArtDesign: {
|
|
1210
|
+
readonly createGraphic: {
|
|
1211
|
+
readonly label: 'Create Graphic';
|
|
1212
|
+
readonly controls: {
|
|
1213
|
+
readonly addShape: 'Add Shape';
|
|
1214
|
+
readonly addBullet: 'Add Bullet';
|
|
1215
|
+
readonly textPane: 'Text Pane';
|
|
1216
|
+
readonly promote: 'Promote';
|
|
1217
|
+
readonly demote: 'Demote';
|
|
1218
|
+
readonly rightToLeft: 'Right to Left';
|
|
1219
|
+
readonly moveUp: 'Move Up';
|
|
1220
|
+
readonly moveDown: 'Move Down';
|
|
1221
|
+
};
|
|
1222
|
+
};
|
|
1223
|
+
readonly layouts: {
|
|
1224
|
+
readonly label: 'Layouts';
|
|
1225
|
+
readonly controls: {
|
|
1226
|
+
readonly gallery: 'Layouts gallery';
|
|
1227
|
+
};
|
|
1228
|
+
};
|
|
1210
1229
|
readonly smartArtStyles: {
|
|
1211
1230
|
readonly label: 'SmartArt Styles';
|
|
1212
1231
|
readonly controls: {
|
|
@@ -1214,6 +1233,13 @@ declare const RIBBON_CONTROL_CATALOG: {
|
|
|
1214
1233
|
readonly gallery: 'SmartArt Styles gallery';
|
|
1215
1234
|
};
|
|
1216
1235
|
};
|
|
1236
|
+
readonly reset: {
|
|
1237
|
+
readonly label: 'Reset';
|
|
1238
|
+
readonly controls: {
|
|
1239
|
+
readonly resetGraphic: 'Reset Graphic';
|
|
1240
|
+
readonly convert: 'Convert';
|
|
1241
|
+
};
|
|
1242
|
+
};
|
|
1217
1243
|
};
|
|
1218
1244
|
};
|
|
1219
1245
|
//#endregion
|
|
@@ -1431,6 +1457,8 @@ interface RibbonCommandView {
|
|
|
1431
1457
|
expanded?: boolean;
|
|
1432
1458
|
hidden?: boolean;
|
|
1433
1459
|
compact?: boolean;
|
|
1460
|
+
/** Opens a menu or panel: draws PowerPoint's drop-down chevron after the label. */
|
|
1461
|
+
caret?: boolean;
|
|
1434
1462
|
badge?: number;
|
|
1435
1463
|
/** Commands with the same column share a vertical stack. */
|
|
1436
1464
|
column?: number;
|
|
@@ -1613,7 +1641,7 @@ interface CompatToastsViewState {
|
|
|
1613
1641
|
bottomInset?: number;
|
|
1614
1642
|
translate?: ChromeTranslate;
|
|
1615
1643
|
}
|
|
1616
|
-
type DialogFooterVariant = 'secondary' | 'primary' | 'warning';
|
|
1644
|
+
type DialogFooterVariant = 'secondary' | 'primary' | 'warning' | 'danger';
|
|
1617
1645
|
type DialogFooterIcon = 'trash' | 'pen' | 'restore' | 'print' | 'check';
|
|
1618
1646
|
interface DialogFooterAction {
|
|
1619
1647
|
/** Stable id echoed back in the `dialog-footer-request` intent. */
|
|
@@ -1623,6 +1651,12 @@ interface DialogFooterAction {
|
|
|
1623
1651
|
variant?: DialogFooterVariant;
|
|
1624
1652
|
icon?: DialogFooterIcon;
|
|
1625
1653
|
disabled?: boolean;
|
|
1654
|
+
/** Work in flight: the button is disabled, `aria-busy` and shows a spinner. */
|
|
1655
|
+
busy?: boolean;
|
|
1656
|
+
/** Tooltip (`title`) for an action whose label needs a longer hint. */
|
|
1657
|
+
title?: string;
|
|
1658
|
+
/** `start` pins a tertiary action (Remove link, Reset all) to the left edge. */
|
|
1659
|
+
align?: 'start' | 'end';
|
|
1626
1660
|
/** Optional `data-testid` stamped on the button. */
|
|
1627
1661
|
testId?: string;
|
|
1628
1662
|
}
|
|
@@ -1690,6 +1724,38 @@ interface ElementClipboardPayload {
|
|
|
1690
1724
|
element: PptxElement;
|
|
1691
1725
|
isTemplate: boolean;
|
|
1692
1726
|
}
|
|
1727
|
+
/** One placeholder outline, already positioned in unscaled slide space. */
|
|
1728
|
+
interface LayoutPreviewFrame {
|
|
1729
|
+
/** Stable key for list rendering. */
|
|
1730
|
+
key: string;
|
|
1731
|
+
type: string;
|
|
1732
|
+
left: number;
|
|
1733
|
+
top: number;
|
|
1734
|
+
width: number;
|
|
1735
|
+
height: number;
|
|
1736
|
+
}
|
|
1737
|
+
/** Everything a binding needs to render one thumbnail. */
|
|
1738
|
+
interface LayoutPreviewGeometry {
|
|
1739
|
+
/** Outer box, in CSS pixels. */
|
|
1740
|
+
boxWidth: number;
|
|
1741
|
+
boxHeight: number;
|
|
1742
|
+
/** Inner surface size, in unscaled slide pixels. */
|
|
1743
|
+
surfaceWidth: number;
|
|
1744
|
+
surfaceHeight: number;
|
|
1745
|
+
/** Factor to apply as `transform: scale(...)` on the inner surface. */
|
|
1746
|
+
scale: number;
|
|
1747
|
+
backgroundColor: string;
|
|
1748
|
+
/**
|
|
1749
|
+
* Border width for placeholder outlines, pre-divided by {@link scale}.
|
|
1750
|
+
*
|
|
1751
|
+
* The outlines live inside the scaled surface, so a plain 1.5px border
|
|
1752
|
+
* would be multiplied down to a hairline that vanishes at thumbnail size.
|
|
1753
|
+
* Dividing here keeps the drawn width constant on screen whatever the
|
|
1754
|
+
* slide dimensions are.
|
|
1755
|
+
*/
|
|
1756
|
+
frameBorderWidth: number;
|
|
1757
|
+
frames: LayoutPreviewFrame[];
|
|
1758
|
+
}
|
|
1693
1759
|
//#endregion
|
|
1694
1760
|
//#region src/render/command-search.d.ts
|
|
1695
1761
|
/**
|
|
@@ -1737,7 +1803,7 @@ interface AccountAuthConfig {
|
|
|
1737
1803
|
//#endregion
|
|
1738
1804
|
//#region src/render/ribbon-galleries/gallery-types.d.ts
|
|
1739
1805
|
/** Every gallery the ribbon offers. */
|
|
1740
|
-
type RibbonGalleryId = 'shapeStyles' | 'shapeEffects' | 'wordArtStyles' | 'pictureStyles' | 'pictureCorrections' | 'pictureColor' | 'pictureArtisticEffects' | 'bullets' | 'numbering' | 'tableStyles' | 'chartStyles' | 'chartColors' | 'chartQuickLayout' | 'smartArtStyles' | 'smartArtColors' | 'themeColors' | 'themeFonts';
|
|
1806
|
+
type RibbonGalleryId = 'shapeStyles' | 'shapeEffects' | 'wordArtStyles' | 'pictureStyles' | 'pictureCorrections' | 'pictureColor' | 'pictureArtisticEffects' | 'bullets' | 'numbering' | 'tableStyles' | 'chartStyles' | 'chartColors' | 'chartQuickLayout' | 'smartArtStyles' | 'smartArtColors' | 'smartArtLayouts' | 'smartArtAddShape' | 'smartArtAddBullet' | 'smartArtTextPane' | 'smartArtPromote' | 'smartArtDemote' | 'smartArtRightToLeft' | 'smartArtMoveUp' | 'smartArtMoveDown' | 'smartArtResetGraphic' | 'smartArtConvert' | 'themeColors' | 'themeFonts';
|
|
1741
1807
|
/** One tile. */
|
|
1742
1808
|
interface RibbonGalleryItem {
|
|
1743
1809
|
/** Stable within its gallery; what `applyRibbonGalleryItem` takes. */
|
|
@@ -1784,6 +1850,22 @@ interface RibbonGalleryDescriptor {
|
|
|
1784
1850
|
sections: RibbonGallerySection[];
|
|
1785
1851
|
/** True when the selection cannot take this gallery (trigger disabled). */
|
|
1786
1852
|
disabled: boolean;
|
|
1853
|
+
/**
|
|
1854
|
+
* Set when the entry is a one-button command (PowerPoint's Add Shape, Reset
|
|
1855
|
+
* Graphic, ...) rather than a gallery: the element draws a plain command, a
|
|
1856
|
+
* click picks its only item and no panel opens.
|
|
1857
|
+
*/
|
|
1858
|
+
command?: RibbonGalleryCommandView;
|
|
1859
|
+
}
|
|
1860
|
+
/** How a command-style entry draws (see {@link RibbonGalleryDescriptor.command}). */
|
|
1861
|
+
interface RibbonGalleryCommandView {
|
|
1862
|
+
/** SVG path data on a 20px grid. */
|
|
1863
|
+
iconPath: string;
|
|
1864
|
+
/** Icon above the label (PowerPoint's large button) instead of beside it. */
|
|
1865
|
+
large?: boolean;
|
|
1866
|
+
/** i18n key and English fallback of the tooltip, e.g. why the command is unavailable. */
|
|
1867
|
+
hintKey?: string;
|
|
1868
|
+
hint?: string;
|
|
1787
1869
|
}
|
|
1788
1870
|
//#endregion
|
|
1789
1871
|
//#region src/render/viewport-fit.d.ts
|
|
@@ -1848,13 +1930,67 @@ interface RibbonInsertState {
|
|
|
1848
1930
|
headerFooterAvailable?: boolean;
|
|
1849
1931
|
translate?: (key: string) => string;
|
|
1850
1932
|
}
|
|
1933
|
+
/** One row of a menu or select; labels are translated by the view unless `label` is set. */
|
|
1934
|
+
interface RibbonHomeItem {
|
|
1935
|
+
readonly value: string;
|
|
1936
|
+
/** Ready-made text (a font family, a layout name); wins over `labelKey`. */
|
|
1937
|
+
readonly label?: string;
|
|
1938
|
+
readonly labelKey?: string;
|
|
1939
|
+
readonly fallback?: string;
|
|
1940
|
+
readonly description?: string;
|
|
1941
|
+
readonly descriptionKey?: string;
|
|
1942
|
+
/** Heading of the group this row opens; consecutive rows share one heading. */
|
|
1943
|
+
readonly group?: string;
|
|
1944
|
+
readonly groupKey?: string;
|
|
1945
|
+
readonly checked?: boolean;
|
|
1946
|
+
readonly disabled?: boolean;
|
|
1947
|
+
/** Preview typeface of a font row. */
|
|
1948
|
+
readonly fontFamily?: string;
|
|
1949
|
+
/** Shared artwork key shown before the label (a shape glyph or ribbon icon). */
|
|
1950
|
+
readonly icon?: string;
|
|
1951
|
+
/** Preserved test or automation hooks (`data-pptx-merge-op`, ...). */
|
|
1952
|
+
readonly attrs?: Readonly<Record<string, string>>;
|
|
1953
|
+
/** Draws a divider above the row. */
|
|
1954
|
+
readonly separator?: boolean;
|
|
1955
|
+
}
|
|
1851
1956
|
interface RibbonHomeControlState {
|
|
1852
1957
|
disabled?: boolean;
|
|
1853
1958
|
/** Omit for ordinary commands; a boolean reflects `aria-pressed`. */
|
|
1854
1959
|
pressed?: boolean;
|
|
1855
|
-
/**
|
|
1960
|
+
/** Reserved for hosts that mirror their own popover; shared popovers set it themselves. */
|
|
1856
1961
|
expanded?: boolean;
|
|
1857
1962
|
hidden?: boolean;
|
|
1963
|
+
/** Select, number, colour bar and checked menu row. */
|
|
1964
|
+
value?: string | number;
|
|
1965
|
+
/** Menu or select rows that replace the spec's static ones. */
|
|
1966
|
+
items?: readonly RibbonHomeItem[];
|
|
1967
|
+
/** Colour popover content; the trigger shows `value` in its bar. */
|
|
1968
|
+
colour?: RibbonHomeColourModel;
|
|
1969
|
+
/** Layout gallery content. */
|
|
1970
|
+
layouts?: RibbonHomeLayoutModel;
|
|
1971
|
+
/** Embedded gallery content. */
|
|
1972
|
+
gallery?: {
|
|
1973
|
+
descriptor: RibbonGalleryDescriptor | undefined;
|
|
1974
|
+
disabled?: boolean;
|
|
1975
|
+
};
|
|
1976
|
+
}
|
|
1977
|
+
interface RibbonHomeColourModel {
|
|
1978
|
+
/** The deck's theme colour map; the popover derives the theme palette from it. */
|
|
1979
|
+
themeColors?: Readonly<Record<string, string>>;
|
|
1980
|
+
/** Theme reference of the current colour (highlights its swatch). */
|
|
1981
|
+
selectedRef?: PptxThemeColorRef;
|
|
1982
|
+
/** Recently used colours, newest first. */
|
|
1983
|
+
recent?: readonly string[];
|
|
1984
|
+
}
|
|
1985
|
+
interface RibbonHomeLayoutModel {
|
|
1986
|
+
layouts: readonly {
|
|
1987
|
+
path: string;
|
|
1988
|
+
name: string;
|
|
1989
|
+
}[];
|
|
1990
|
+
/** Marks the active tile; omitted by New Slide. */
|
|
1991
|
+
current?: string;
|
|
1992
|
+
/** Artwork data by layout path; tiles render name-only until it arrives. */
|
|
1993
|
+
previews?: Readonly<Record<string, PptxLayoutPreview>> | ReadonlyMap<string, PptxLayoutPreview>;
|
|
1858
1994
|
}
|
|
1859
1995
|
/** State key of a control: its id, or `id#part` when several buttons share one id. */
|
|
1860
1996
|
type RibbonHomeKey = RibbonControlId | `${RibbonControlId}#${string}`;
|
|
@@ -2095,9 +2231,18 @@ declare global {
|
|
|
2095
2231
|
'pptx-ui-ribbon-draw': PptxUiRibbonDrawElement;
|
|
2096
2232
|
}
|
|
2097
2233
|
}
|
|
2234
|
+
//#endregion
|
|
2235
|
+
//#region src/web-components/ribbon-home-layout.d.ts
|
|
2236
|
+
/**
|
|
2237
|
+
* Draws a layout's real artwork inside a tile's scaled surface. The artwork is
|
|
2238
|
+
* element rendering that each binding owns; return a disposer to release it.
|
|
2239
|
+
*/
|
|
2240
|
+
type HomeLayoutArtwork = (preview: PptxLayoutPreview, geometry: LayoutPreviewGeometry, container: HTMLElement) => (() => void) | void;
|
|
2098
2241
|
interface PptxUiRibbonHomeElement extends HTMLElement {
|
|
2099
2242
|
state: RibbonHomeViewState;
|
|
2100
|
-
/**
|
|
2243
|
+
/** Draws a layout's real artwork inside a gallery tile; the host owns element rendering. */
|
|
2244
|
+
layoutArtwork: HomeLayoutArtwork | undefined;
|
|
2245
|
+
/** Wrapper (or button) of a control id. */
|
|
2101
2246
|
anchor(id: string): HTMLElement | undefined;
|
|
2102
2247
|
}
|
|
2103
2248
|
declare global {
|
|
@@ -2112,6 +2257,9 @@ declare global {
|
|
|
2112
2257
|
'pptx-ui-ribbon-home-arrange-flip': PptxUiRibbonHomeElement;
|
|
2113
2258
|
'pptx-ui-ribbon-home-arrange-order': PptxUiRibbonHomeElement;
|
|
2114
2259
|
'pptx-ui-ribbon-home-arrange-edit': PptxUiRibbonHomeElement;
|
|
2260
|
+
'pptx-ui-ribbon-home-font-picker': PptxUiRibbonHomeElement;
|
|
2261
|
+
'pptx-ui-ribbon-home-arrange-painter': PptxUiRibbonHomeElement;
|
|
2262
|
+
'pptx-ui-ribbon-home-arrange-shape': PptxUiRibbonHomeElement;
|
|
2115
2263
|
}
|
|
2116
2264
|
}
|
|
2117
2265
|
interface PptxUiRibbonTransitionsElement extends HTMLElement {
|
package/dist/viewer/index.js
CHANGED
|
@@ -1,96 +1,96 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
require('../chunk-
|
|
3
|
+
var chunkQSBL4SL6_js = require('../chunk-QSBL4SL6.js');
|
|
4
|
+
require('../chunk-H7FXW2Q3.js');
|
|
5
|
+
var chunkFNO4C3LU_js = require('../chunk-FNO4C3LU.js');
|
|
6
|
+
var chunkWAUDRNBY_js = require('../chunk-WAUDRNBY.js');
|
|
7
|
+
var chunkE3TLDJPS_js = require('../chunk-E3TLDJPS.js');
|
|
8
|
+
require('../chunk-LKL6DQ55.js');
|
|
9
9
|
require('../chunk-4VNS5WPM.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
Object.defineProperty(exports, "CollaborationStatusIndicator", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkQSBL4SL6_js.CollaborationStatusIndicator; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "PowerPointViewer", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkQSBL4SL6_js.PowerPointViewer; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "UserAvatarBar", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkQSBL4SL6_js.UserAvatarBar; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "CollaborationProvider", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkFNO4C3LU_js.CollaborationProvider; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "RemoteUserCursors", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkFNO4C3LU_js.RemoteUserCursors; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "isAudienceTab", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkFNO4C3LU_js.isAudienceTab; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "parseAudienceNonce", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkFNO4C3LU_js.parseAudienceNonce; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "useCollaborativeHistory", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkFNO4C3LU_js.useCollaborativeHistory; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "useCollaborativeState", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkFNO4C3LU_js.useCollaborativeState; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "usePresenceTracking", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkFNO4C3LU_js.usePresenceTracking; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "useThemeSwitching", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkFNO4C3LU_js.useThemeSwitching; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "useYjsProvider", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkFNO4C3LU_js.useYjsProvider; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "getAnimationInitialStyle", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkWAUDRNBY_js.getAnimationInitialStyle; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "clearAudienceContent", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkE3TLDJPS_js.clearAudienceContent; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "forgetSessionDeck", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkE3TLDJPS_js.forgetSessionDeck; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "getSessionTabId", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkE3TLDJPS_js.getSessionTabId; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "loadAudienceContent", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkE3TLDJPS_js.loadAudienceContent; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "loadSessionDeck", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkE3TLDJPS_js.loadSessionDeck; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "rememberSessionDeck", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkE3TLDJPS_js.rememberSessionDeck; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "restoreSessionDeck", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkE3TLDJPS_js.restoreSessionDeck; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "storeAudienceContent", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkE3TLDJPS_js.storeAudienceContent; }
|
|
96
96
|
});
|
package/dist/viewer/index.js.br
CHANGED
|
Binary file
|
package/dist/viewer/index.js.gz
CHANGED
|
Binary file
|
package/dist/viewer/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { CollaborationStatusIndicator, PowerPointViewer, UserAvatarBar } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
export { CollaborationProvider, RemoteUserCursors, isAudienceTab, parseAudienceNonce, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-
|
|
4
|
-
export { getAnimationInitialStyle } from '../chunk-
|
|
5
|
-
export { clearAudienceContent, forgetSessionDeck, getSessionTabId, loadAudienceContent, loadSessionDeck, rememberSessionDeck, restoreSessionDeck, storeAudienceContent } from '../chunk-
|
|
6
|
-
import '../chunk-
|
|
1
|
+
export { CollaborationStatusIndicator, PowerPointViewer, UserAvatarBar } from '../chunk-YL7IPY2B.mjs';
|
|
2
|
+
import '../chunk-VX52VUBD.mjs';
|
|
3
|
+
export { CollaborationProvider, RemoteUserCursors, isAudienceTab, parseAudienceNonce, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-OCUCBRXU.mjs';
|
|
4
|
+
export { getAnimationInitialStyle } from '../chunk-LE3JUNIR.mjs';
|
|
5
|
+
export { clearAudienceContent, forgetSessionDeck, getSessionTabId, loadAudienceContent, loadSessionDeck, rememberSessionDeck, restoreSessionDeck, storeAudienceContent } from '../chunk-YYVPC6KI.mjs';
|
|
6
|
+
import '../chunk-Q4HRYUEP.mjs';
|
|
7
7
|
import '../chunk-XGB3TDIC.mjs';
|
package/dist/viewer/index.mjs.br
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
�@��\�}��R];*�����75���o5�a�� Y�%�mK���]s9}�.��� ���B�p�8^�d���K������F����O��$�n�6��$;�Y�ܯW(OmG(E%�E�h&"�@%�(x+�W�+�+�iȚ�f�� Vj����1�������e��xv����z���������JR��M��&�}e�'��=�s��N��b'�
|
package/dist/viewer/index.mjs.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|