pptx-vue-viewer 4.0.0 → 4.1.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 +6 -0
- package/README.md +8 -0
- package/dist/{AiChatPanel-BhRLhRk4.cjs → AiChatPanel-C9eK71Og.cjs} +1 -1
- package/dist/AiChatPanel-C9eK71Og.cjs.br +0 -0
- package/dist/AiChatPanel-C9eK71Og.cjs.gz +0 -0
- package/dist/{AiChatPanel-DqghVrtM.js → AiChatPanel-JedADygv.js} +2 -2
- package/dist/AiChatPanel-JedADygv.js.br +0 -0
- package/dist/AiChatPanel-JedADygv.js.gz +0 -0
- package/dist/{dist-DpX6ZtSf.cjs → dist-Br8KDhMp.cjs} +27 -21
- package/dist/dist-Br8KDhMp.cjs.br +0 -0
- package/dist/dist-Br8KDhMp.cjs.gz +0 -0
- package/dist/{dist-Bko1-oFe.js → dist-DSVV_5rB.js} +27 -21
- package/dist/dist-DSVV_5rB.js.br +0 -0
- package/dist/dist-DSVV_5rB.js.gz +0 -0
- package/dist/gif-encoder-CICb6ayU.cjs +2 -0
- package/dist/gif-encoder-CICb6ayU.cjs.br +0 -0
- package/dist/gif-encoder-CICb6ayU.cjs.gz +0 -0
- package/dist/gif-encoder-D7z5XpDB.js +2 -0
- package/dist/gif-encoder-D7z5XpDB.js.br +0 -0
- package/dist/gif-encoder-D7z5XpDB.js.gz +0 -0
- package/dist/i18n/de.cjs +2 -0
- package/dist/i18n/de.cjs.br +0 -0
- package/dist/i18n/de.cjs.gz +0 -0
- package/dist/i18n/de.mjs +2 -0
- package/dist/i18n/de.mjs.br +0 -0
- package/dist/i18n/de.mjs.gz +0 -0
- package/dist/i18n/es.cjs +2 -0
- package/dist/i18n/es.cjs.br +0 -0
- package/dist/i18n/es.cjs.gz +0 -0
- package/dist/i18n/es.mjs +2 -0
- package/dist/i18n/es.mjs.br +0 -0
- package/dist/i18n/es.mjs.gz +0 -0
- package/dist/i18n/fr.cjs +2 -0
- package/dist/i18n/fr.cjs.br +0 -0
- package/dist/i18n/fr.cjs.gz +0 -0
- package/dist/i18n/fr.mjs +2 -0
- package/dist/i18n/fr.mjs.br +0 -0
- package/dist/i18n/fr.mjs.gz +0 -0
- package/dist/i18n/zh-CN.cjs +2 -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 +2 -0
- package/dist/i18n/zh-CN.mjs.br +0 -0
- package/dist/i18n/zh-CN.mjs.gz +0 -0
- package/dist/{i18n-BMYGC7RW.cjs → i18n-BUjfZOiM.cjs} +2 -0
- package/dist/i18n-BUjfZOiM.cjs.br +0 -0
- package/dist/i18n-BUjfZOiM.cjs.gz +0 -0
- package/dist/{i18n-CRTWC-4k.js → i18n-cTdK-NvK.js} +2 -0
- package/dist/i18n-cTdK-NvK.js.br +0 -0
- package/dist/i18n-cTdK-NvK.js.gz +0 -0
- package/dist/i18n.cjs +1 -1
- package/dist/i18n.cjs.br +0 -0
- package/dist/i18n.cjs.gz +0 -0
- package/dist/i18n.js +1 -1
- package/dist/i18n.js.br +0 -0
- package/dist/i18n.js.gz +0 -0
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.br +0 -0
- package/dist/index.cjs.gz +0 -0
- package/dist/index.d.ts +137 -3
- package/dist/index.js +3 -3
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/internals.cjs +1 -1
- package/dist/internals.cjs.br +0 -0
- package/dist/internals.cjs.gz +0 -0
- package/dist/internals.d.ts +115 -0
- package/dist/internals.js +2 -2
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/pptx-vue-viewer.css +4 -4
- package/dist/pptx-vue-viewer.css.br +0 -0
- package/dist/pptx-vue-viewer.css.gz +0 -0
- package/dist/smartart-3d-DNJZ9ZbV.js +278 -0
- package/dist/smartart-3d-DNJZ9ZbV.js.br +0 -0
- package/dist/smartart-3d-DNJZ9ZbV.js.gz +0 -0
- package/dist/smartart-3d-Dm0vCBX4.cjs +276 -0
- package/dist/smartart-3d-Dm0vCBX4.cjs.br +0 -0
- package/dist/smartart-3d-Dm0vCBX4.cjs.gz +0 -0
- package/dist/{useViewerSettingsDialog-UwmccsEe.js → useViewerSettingsDialog-Cgs5nn6a.js} +8520 -7542
- package/dist/useViewerSettingsDialog-Cgs5nn6a.js.br +0 -0
- package/dist/useViewerSettingsDialog-Cgs5nn6a.js.gz +0 -0
- package/dist/{useViewerSettingsDialog-DsrqDbBi.cjs → useViewerSettingsDialog-w5_IIp3-.cjs} +10052 -9053
- package/dist/useViewerSettingsDialog-w5_IIp3-.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-w5_IIp3-.cjs.gz +0 -0
- package/dist/viewer/index.cjs +2 -2
- package/dist/viewer/index.cjs.br +0 -0
- package/dist/viewer/index.cjs.gz +0 -0
- package/dist/viewer/index.d.ts +735 -20
- package/dist/viewer/index.js +3 -3
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/{viewer-tvULTmsh.js → viewer-Bj84aywU.js} +10492 -10433
- package/dist/viewer-Bj84aywU.js.br +0 -0
- package/dist/viewer-Bj84aywU.js.gz +0 -0
- package/dist/{viewer-Cpc0zHJN.cjs → viewer-DW4Hra5s.cjs} +716 -647
- package/dist/viewer-DW4Hra5s.cjs.br +0 -0
- package/dist/viewer-DW4Hra5s.cjs.gz +0 -0
- package/package.json +2 -2
- package/dist/AiChatPanel-BhRLhRk4.cjs.br +0 -0
- package/dist/AiChatPanel-BhRLhRk4.cjs.gz +0 -0
- package/dist/AiChatPanel-DqghVrtM.js.br +0 -0
- package/dist/AiChatPanel-DqghVrtM.js.gz +0 -0
- package/dist/dist-Bko1-oFe.js.br +0 -0
- package/dist/dist-Bko1-oFe.js.gz +0 -0
- package/dist/dist-DpX6ZtSf.cjs.br +0 -0
- package/dist/dist-DpX6ZtSf.cjs.gz +0 -0
- package/dist/gif-encoder-Cp0n6Ur2.js +0 -2
- package/dist/gif-encoder-Cp0n6Ur2.js.br +0 -0
- package/dist/gif-encoder-Cp0n6Ur2.js.gz +0 -0
- package/dist/gif-encoder-buQbKrtH.cjs +0 -2
- package/dist/gif-encoder-buQbKrtH.cjs.br +0 -0
- package/dist/gif-encoder-buQbKrtH.cjs.gz +0 -0
- package/dist/i18n-BMYGC7RW.cjs.br +0 -0
- package/dist/i18n-BMYGC7RW.cjs.gz +0 -0
- package/dist/i18n-CRTWC-4k.js.br +0 -0
- package/dist/i18n-CRTWC-4k.js.gz +0 -0
- package/dist/smartart-3d-DbBWzji8.cjs +0 -203
- package/dist/smartart-3d-DbBWzji8.cjs.br +0 -0
- package/dist/smartart-3d-DbBWzji8.cjs.gz +0 -0
- package/dist/smartart-3d-m84Wdu08.js +0 -205
- package/dist/smartart-3d-m84Wdu08.js.br +0 -0
- package/dist/smartart-3d-m84Wdu08.js.gz +0 -0
- package/dist/useViewerSettingsDialog-DsrqDbBi.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-DsrqDbBi.cjs.gz +0 -0
- package/dist/useViewerSettingsDialog-UwmccsEe.js.br +0 -0
- package/dist/useViewerSettingsDialog-UwmccsEe.js.gz +0 -0
- package/dist/viewer-Cpc0zHJN.cjs.br +0 -0
- package/dist/viewer-Cpc0zHJN.cjs.gz +0 -0
- package/dist/viewer-tvULTmsh.js.br +0 -0
- package/dist/viewer-tvULTmsh.js.gz +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,10 @@ import { Ref } from 'vue';
|
|
|
14
14
|
import { ToolSet } from 'ai';
|
|
15
15
|
import { UIMessage } from 'ai';
|
|
16
16
|
|
|
17
|
-
declare const __VLS_base: DefineComponent<__VLS_Props, {
|
|
17
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {
|
|
18
|
+
/** The scaled slide origin, for host pointer-to-slide coordinate conversion. */
|
|
19
|
+
getStageElement: () => HTMLElement | null;
|
|
20
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
18
21
|
createGuide: (axis: "h" | "v", position: number) => any;
|
|
19
22
|
"update:fitScale": (args_0: number) => any;
|
|
20
23
|
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -320,7 +323,7 @@ declare type __VLS_Props_5 = {
|
|
|
320
323
|
};
|
|
321
324
|
|
|
322
325
|
declare type __VLS_Slots = {} & {
|
|
323
|
-
default?: (props: typeof
|
|
326
|
+
default?: (props: typeof __VLS_16) => any;
|
|
324
327
|
};
|
|
325
328
|
|
|
326
329
|
declare type __VLS_Slots_2 = {} & {
|
|
@@ -806,7 +809,13 @@ export declare interface CollaborationConfig {
|
|
|
806
809
|
|
|
807
810
|
export declare const CollaborationCursors: typeof __VLS_export_6;
|
|
808
811
|
|
|
812
|
+
declare interface CollaborationInlineSnapshot extends CollaborationTextSnapshot {
|
|
813
|
+
readonly inline: InlineTextEditSnapshot;
|
|
814
|
+
}
|
|
815
|
+
|
|
809
816
|
declare interface CollaborationLivePatcher {
|
|
817
|
+
/** Bind a mounted native editor; its handle must be disposed on unmount. */
|
|
818
|
+
beginTextEdit?: (slideId: string | undefined, elementId: string, onChange?: () => void, ownsModel?: (element: PptxElement) => boolean) => CollaborationTextTarget | undefined;
|
|
810
819
|
/** Attach a live doc (or `null` to go dormant). Pending patches are dropped. */
|
|
811
820
|
configure: (doc: YDocLike | null, factories: YjsFactories | null,
|
|
812
821
|
/** Publish synchronously when the host may revoke write readiness at any time. */
|
|
@@ -829,8 +838,38 @@ export declare type CollaborationRole = 'owner' | 'collaborator' | 'viewer';
|
|
|
829
838
|
/** How the local user entered a collaboration session. */
|
|
830
839
|
declare type CollaborationSessionIntent = 'create' | 'join';
|
|
831
840
|
|
|
841
|
+
export declare interface CollaborationShellState {
|
|
842
|
+
canEdit: boolean;
|
|
843
|
+
status: ConnectionStatus;
|
|
844
|
+
remoteUsers: readonly SanitizedPresence[];
|
|
845
|
+
connectedCount: number;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
declare type CollaborationShellTranslate = (key: string, params?: Record<string, string | number>) => string;
|
|
849
|
+
|
|
832
850
|
export declare const CollaborationStatusIndicator: typeof __VLS_export_7;
|
|
833
851
|
|
|
852
|
+
declare interface CollaborationTextSession {
|
|
853
|
+
applyLocalDelta: (delta: readonly DeltaOp[], edit?: LocalTextEdit) => boolean;
|
|
854
|
+
readMerged: () => CollaborationTextSnapshot | undefined;
|
|
855
|
+
adoptMerged: (snapshot: CollaborationTextSnapshot) => boolean;
|
|
856
|
+
/** Capture an offset in the last painted/local draft, not the newer remote string. */
|
|
857
|
+
bookmark: (index: number, association: number) => () => number | null;
|
|
858
|
+
dispose: () => void;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
/** Opaque acknowledgement identity for an exact remote snapshot painted by an adapter. */
|
|
862
|
+
declare interface CollaborationTextSnapshot {
|
|
863
|
+
readonly delta: readonly DeltaOp[];
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
/** A mounted editor owns this handle, never the document or its provider. */
|
|
867
|
+
declare interface CollaborationTextTarget extends CollaborationTextSession {
|
|
868
|
+
readMerged: () => CollaborationInlineSnapshot | undefined;
|
|
869
|
+
/** A bookmark follows character identity rather than a mutable numeric offset. */
|
|
870
|
+
bookmark: (index: number, association: number) => () => number | null;
|
|
871
|
+
}
|
|
872
|
+
|
|
834
873
|
/**
|
|
835
874
|
* Collaboration transport.
|
|
836
875
|
*
|
|
@@ -863,7 +902,7 @@ declare interface ConnectionSite {
|
|
|
863
902
|
}
|
|
864
903
|
|
|
865
904
|
/** Connection lifecycle states for the Yjs WebSocket provider. */
|
|
866
|
-
declare type ConnectionStatus = 'disconnected' | 'connecting' | 'connected' | 'error';
|
|
905
|
+
export declare type ConnectionStatus = 'disconnected' | 'connecting' | 'connected' | 'error';
|
|
867
906
|
|
|
868
907
|
/**
|
|
869
908
|
* Arrow head types for connector start/end.
|
|
@@ -1180,6 +1219,18 @@ declare interface DeltaOp {
|
|
|
1180
1219
|
attributes?: Record<string, unknown>;
|
|
1181
1220
|
}
|
|
1182
1221
|
|
|
1222
|
+
/**
|
|
1223
|
+
* One-line, localised status for a custom shell's `role="status"` readout.
|
|
1224
|
+
*
|
|
1225
|
+
* Every binding's custom-shell demo renders this same string under the same
|
|
1226
|
+
* `Collaboration status` label, so the framework-neutral e2e helper that
|
|
1227
|
+
* waits for the shell to become editable (`waitForHostEditing`) reads every
|
|
1228
|
+
* binding the same way. Three of five demos once phrased it differently and
|
|
1229
|
+
* the helper silently skipped them; on vanilla, that let a peer double-click
|
|
1230
|
+
* before its edit gate opened.
|
|
1231
|
+
*/
|
|
1232
|
+
export declare function describeCollaborationShellState(state: Pick<CollaborationShellState, 'canEdit' | 'status' | 'connectedCount'>, translate: CollaborationShellTranslate): string;
|
|
1233
|
+
|
|
1183
1234
|
/** Active drawing/inking tool. Mirrors React `DrawingTool`. */
|
|
1184
1235
|
export declare type DrawingTool = 'select' | 'pen' | 'highlighter' | 'eraser' | 'freeform';
|
|
1185
1236
|
|
|
@@ -1585,6 +1636,13 @@ declare interface InkPptxElement extends PptxElementBase {
|
|
|
1585
1636
|
extensionXml?: PptxGraphicFrameExtension[];
|
|
1586
1637
|
}
|
|
1587
1638
|
|
|
1639
|
+
/** Current editor payload. Missing segments explicitly denotes plain-text fallback. */
|
|
1640
|
+
declare interface InlineTextEditSnapshot {
|
|
1641
|
+
elementId: string;
|
|
1642
|
+
text: string;
|
|
1643
|
+
textSegments?: TextSegment[];
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1588
1646
|
/**
|
|
1589
1647
|
* Dropdown ids for the insert-chart menu. Distinct from `PptxChartType`
|
|
1590
1648
|
* because PowerPoint offers Column (vertical) and Bar (horizontal) as two
|
|
@@ -1758,6 +1816,14 @@ declare interface LocaleCatalogEntry {
|
|
|
1758
1816
|
nativeLabel: string;
|
|
1759
1817
|
}
|
|
1760
1818
|
|
|
1819
|
+
declare type LocalTextEdit = LocalTextReplacement | TextSessionCorrespondence;
|
|
1820
|
+
|
|
1821
|
+
/** Browser edit range mapped to the editor's pre-input encoded coordinates. */
|
|
1822
|
+
declare interface LocalTextReplacement {
|
|
1823
|
+
from: number;
|
|
1824
|
+
to: number;
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1761
1827
|
/**
|
|
1762
1828
|
* Material preset type tokens from OOXML `a:sp3d/@prstMaterial`.
|
|
1763
1829
|
*
|
|
@@ -11596,6 +11662,24 @@ export declare const RibbonToolbar: typeof __VLS_export_5;
|
|
|
11596
11662
|
/** The unit system used for ruler display. */
|
|
11597
11663
|
declare type RulerUnit = 'inches' | 'centimetres';
|
|
11598
11664
|
|
|
11665
|
+
/**
|
|
11666
|
+
* Presence data for a remote collaborator, sanitised from the awareness
|
|
11667
|
+
* protocol. Returned by {@link sanitizePresence}; coordinates are in unscaled
|
|
11668
|
+
* slide pixels, clamped to the supplied canvas bounds.
|
|
11669
|
+
*/
|
|
11670
|
+
export declare interface SanitizedPresence {
|
|
11671
|
+
clientId: number;
|
|
11672
|
+
userName: string;
|
|
11673
|
+
userAvatar?: string;
|
|
11674
|
+
userColor: string;
|
|
11675
|
+
activeSlideIndex: number;
|
|
11676
|
+
cursorX: number;
|
|
11677
|
+
cursorY: number;
|
|
11678
|
+
lastUpdated: string;
|
|
11679
|
+
selectedElementId?: string;
|
|
11680
|
+
role?: CollaborationRole;
|
|
11681
|
+
}
|
|
11682
|
+
|
|
11599
11683
|
/**
|
|
11600
11684
|
* The name a saved copy should be offered under: the source stem plus the
|
|
11601
11685
|
* extension of the format actually being written.
|
|
@@ -12690,6 +12774,12 @@ declare interface TextOptions extends Partial<ElementPosition> {
|
|
|
12690
12774
|
/** 2D linear transform matrix `[a, b, c, d]` for inherited group orientation. */
|
|
12691
12775
|
declare type TextOrientationMatrix = [number, number, number, number];
|
|
12692
12776
|
|
|
12777
|
+
declare interface TextPositionCell {
|
|
12778
|
+
index: number;
|
|
12779
|
+
left?: TextPositionCell;
|
|
12780
|
+
right?: TextPositionCell;
|
|
12781
|
+
}
|
|
12782
|
+
|
|
12693
12783
|
/**
|
|
12694
12784
|
* A text box — a plain rectangle containing text, typically with no
|
|
12695
12785
|
* visible fill or stroke.
|
|
@@ -12834,6 +12924,23 @@ declare interface TextSegmentInput {
|
|
|
12834
12924
|
style?: Partial<TextStyleInput>;
|
|
12835
12925
|
}
|
|
12836
12926
|
|
|
12927
|
+
/** Desired UTF-16 units mapped to the editor's previously observed identities. */
|
|
12928
|
+
declare interface TextSessionCorrespondence {
|
|
12929
|
+
readonly retainedIndices: readonly (number | null)[];
|
|
12930
|
+
/** Old carriers for known paragraph attributes, independently of character identity. */
|
|
12931
|
+
readonly paragraphSources?: readonly (number | null)[];
|
|
12932
|
+
}
|
|
12933
|
+
|
|
12934
|
+
/** Supplied by the binding's existing Yjs runtime, bound to this exact Y.Text. */
|
|
12935
|
+
declare interface TextSessionPositions<Position> {
|
|
12936
|
+
capture: (index: number, association: number) => Position;
|
|
12937
|
+
resolve: (position: Position) => number | null;
|
|
12938
|
+
/** Synchronize tracked positions once per batch, including in-transaction writes. */
|
|
12939
|
+
refresh?: () => boolean | void;
|
|
12940
|
+
/** Release only resources created for this session. */
|
|
12941
|
+
dispose?: () => void;
|
|
12942
|
+
}
|
|
12943
|
+
|
|
12837
12944
|
declare interface TextStyle {
|
|
12838
12945
|
/**
|
|
12839
12946
|
* Combined rotation/flip matrix inherited from ancestor groups.
|
|
@@ -13445,6 +13552,12 @@ export declare type ToolbarSection = 'file' | 'home' | 'insert' | 'text' | 'arra
|
|
|
13445
13552
|
/** A top-level ribbon tab. `record` intentionally shares its id with the quick-access Record button above: both surface the same recording feature, so hiding one hides the other. */
|
|
13446
13553
|
export declare type ToolbarTabId = 'file' | 'home' | 'insert' | 'draw' | 'design' | 'transitions' | 'animations' | 'slideShow' | 'record' | 'review' | 'view' | 'help';
|
|
13447
13554
|
|
|
13555
|
+
declare interface TrackedTextPosition {
|
|
13556
|
+
/** Internal identity, shared by snapshots that observed the same character. */
|
|
13557
|
+
readonly cell: TextPositionCell;
|
|
13558
|
+
readonly association: number;
|
|
13559
|
+
}
|
|
13560
|
+
|
|
13448
13561
|
declare interface TransitionInput {
|
|
13449
13562
|
type: PptxTransitionType;
|
|
13450
13563
|
duration?: number;
|
|
@@ -13483,6 +13596,15 @@ declare interface UnknownPptxElement extends PptxElementBase {
|
|
|
13483
13596
|
export declare function useCollaboration(options: UseCollaborationOptions): UseCollaborationResult;
|
|
13484
13597
|
|
|
13485
13598
|
export declare interface UseCollaborationOptions {
|
|
13599
|
+
/** Optional reactive configuration; replacing or clearing it starts or stops the session. */
|
|
13600
|
+
collaboration?: MaybeRefOrGetter<CollaborationConfig | undefined>;
|
|
13601
|
+
/** Host authorization, combined with the session's canonical read-only state. */
|
|
13602
|
+
canEdit?: MaybeRefOrGetter<boolean>;
|
|
13603
|
+
/** Whether an actual source file is still loading or failed to load. */
|
|
13604
|
+
sourcePending?: MaybeRefOrGetter<boolean>;
|
|
13605
|
+
sourceError?: MaybeRefOrGetter<boolean>;
|
|
13606
|
+
/** Optional retained serializer for elected-owner write-back; the scheduler guards stale results. */
|
|
13607
|
+
serialize?: (isCurrent: () => boolean) => Promise<Uint8Array | null> | Uint8Array | null;
|
|
13486
13608
|
/** The editor's reactive slides ref (broadcast on local change). */
|
|
13487
13609
|
slides: Ref< PptxSlide[]>;
|
|
13488
13610
|
/** Called when a remote peer broadcasts a newer slide set. */
|
|
@@ -13526,6 +13648,10 @@ export declare interface UseCollaborationOptions {
|
|
|
13526
13648
|
}
|
|
13527
13649
|
|
|
13528
13650
|
export declare interface UseCollaborationResult {
|
|
13651
|
+
/** Shared custom-shell permissions, connection status and sanitized presence. */
|
|
13652
|
+
shellState: ComputedRef<CollaborationShellState>;
|
|
13653
|
+
/** The configuration attached by start() or the reactive collaboration option. */
|
|
13654
|
+
activeCollaboration: Ref<CollaborationConfig | null>;
|
|
13529
13655
|
status: Ref< ConnectionStatus>;
|
|
13530
13656
|
connected: Ref<boolean>;
|
|
13531
13657
|
cursors: Ref<RemoteCursor[]>;
|
|
@@ -13844,6 +13970,8 @@ declare interface YjsFactories {
|
|
|
13844
13970
|
createMap: () => YMapLike;
|
|
13845
13971
|
createArray: () => YArrayLike;
|
|
13846
13972
|
createText: () => YTextLike;
|
|
13973
|
+
/** Track character identities using the binding's existing Yjs runtime. */
|
|
13974
|
+
createTextPositions?: (text: YTextEditableLike) => TextSessionPositions<TrackedTextPosition>;
|
|
13847
13975
|
}
|
|
13848
13976
|
|
|
13849
13977
|
declare interface YMapLike {
|
|
@@ -13853,6 +13981,12 @@ declare interface YMapLike {
|
|
|
13853
13981
|
forEach: (cb: (value: unknown, key: string) => void) => void;
|
|
13854
13982
|
}
|
|
13855
13983
|
|
|
13984
|
+
/** Y.Text surface needed for in-place edits (delete/format on top of insert). */
|
|
13985
|
+
declare interface YTextEditableLike extends YTextLike {
|
|
13986
|
+
delete: (index: number, length: number) => void;
|
|
13987
|
+
format: (index: number, length: number, attributes: Record<string, string | null>) => void;
|
|
13988
|
+
}
|
|
13989
|
+
|
|
13856
13990
|
declare interface YTextLike {
|
|
13857
13991
|
insert: (index: number, text: string, attrs?: Record<string, string>) => void;
|
|
13858
13992
|
toDelta: () => DeltaOp[];
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
1
|
+
import { $l as a, Ap as s, C as e, Dp as o, Gl as r, H as t, Hl as i, Hs as l, Op as n, Pc as p, Qs as w, S, Sd as u, Uu as b, Wu as c, Xt as d, Yt as f, Zs as m, Zu as C, bi as j, ec as g, eu as v, fl as x, fp as H, hf as O, it as P, jl as R, jp as k, kp as A, nr as D, os as T, rc as V, tp as Z, w as h, wi as y, x as B, xf as E } from "./useViewerSettingsDialog-Cgs5nn6a.js";
|
|
2
|
+
import { A as F, C as G, O as I, T as M, a as Q, c as U, i as W, j as X, k as Y, l as $, n as q, r as z, s as J, t as K, w as L } from "./viewer-Bj84aywU.js";
|
|
3
|
+
export { D as AUDIENCE_HASH, $ as CollaborationCursors, I as CollaborationStatusIndicator, d as ElementRenderer, J as FollowModeBar, j as PPTX_OPEN_ACCEPT, y as PRESENTATION_OPEN_EXTENSIONS, Q as PowerPointViewer, U as RemoteSelectionOverlay, L as RibbonToolbar, G as SlideCanvas, f as SlideStage, T as clearAudienceContent, M as cn, l as createImageElementFromFile, m as defaultCssVars, w as defaultRadius, g as defaultThemeColors, V as describeCollaborationShellState, B as exportAllSlidesToSvg, S as exportAllSlidesToSvgBlobs, e as exportSlideToSvg, h as exportSlideToSvgBlob, p as forgetSessionDeck, x as getSessionTabId, R as isAudienceTab, i as isLegacyBinaryPresentation, r as isSupportedPresentationFile, a as loadAudienceContent, v as loadSessionDeck, b as parseAudienceNonce, c as parsePresentationSessionId, C as presentationBaseName, Y as provideViewerTheme, u as rememberSessionDeck, t as renderToCanvas, O as restoreSessionDeck, E as savedPresentationFileName, Z as storeAudienceContent, H as themeToCssVars, P as useCollaboration, K as useCollaborativeHistory, q as useCollaborativeState, z as usePresenceTracking, F as useThemeStyle, X as useViewerTheme, W as useYjsProvider, o as vermilionDarkColors, n as vermilionDarkTheme, A as vermilionLightColors, s as vermilionLightTheme, k as vermilionRadius };
|
package/dist/index.js.br
CHANGED
|
Binary file
|
package/dist/index.js.gz
CHANGED
|
Binary file
|
package/dist/internals.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const e = require("./useViewerSettingsDialog-
|
|
2
|
+
const e = require("./useViewerSettingsDialog-w5_IIp3-.cjs");
|
|
3
3
|
exports.CINEMATIC_TRANSITION_KEYFRAMES = e.CINEMATIC_TRANSITION_KEYFRAMES, exports.DEFAULT_MAX_VERSIONS = e.DEFAULT_MAX_VERSIONS, exports.DEFAULT_MORPH_DURATION_MS = e.DEFAULT_MORPH_DURATION_MS, exports.DEFAULT_TRANSITION_DURATION_MS = e.DEFAULT_TRANSITION_DURATION_MS, exports.EASE = e.EASE, exports.ERASER_RADIUS = e.ERASER_RADIUS, exports.FragmentedTransitionLayer = e.FragmentedTransitionLayer_default, exports.HIGHLIGHTER_OPACITY = e.HIGHLIGHTER_OPACITY, exports.HIGHLIGHTER_WIDTH = e.HIGHLIGHTER_WIDTH, exports.INSTANT = e.INSTANT, exports.MOBILE_BREAKPOINT = e.MOBILE_BREAKPOINT, exports.MOBILE_LANDSCAPE_MAX_HEIGHT = e.MOBILE_LANDSCAPE_MAX_HEIGHT, exports.MorphExtraLayers = e.MorphExtraLayers_default, exports.NUDGE_LARGE = e.NUDGE_LARGE, exports.NUDGE_SMALL = e.NUDGE_SMALL, exports.P14_TRANSITION_KEYFRAMES = e.P14_TRANSITION_KEYFRAMES, exports.P14_TRANSITION_KEYFRAMES_2 = e.P14_TRANSITION_KEYFRAMES_2, exports.P14_TRANSITION_KEYFRAMES_ALL = e.P14_TRANSITION_KEYFRAMES_ALL, exports.PEN_WIDTH = e.PEN_WIDTH, exports.PresentationTransitionOverlay = e.PresentationTransitionOverlay_default, exports.RANDOM_ELIGIBLE_TYPES = e.RANDOM_ELIGIBLE_TYPES, exports.RIBBON_ALIGN = e.RIBBON_ALIGN, exports.SHORTCUT_CATALOG = e.SHORTCUT_CATALOG, exports.SHORTCUT_GROUP_LABEL_KEYS = e.SHORTCUT_GROUP_LABEL_KEYS, exports.SLIDE_TRANSITION_KEYFRAMES = e.SLIDE_TRANSITION_KEYFRAMES, exports.SLIDE_TRANSITION_KEYFRAMES_CSS = e.SLIDE_TRANSITION_KEYFRAMES_CSS, exports.SMARTART_COLOR_SCHEMES = e.SMARTART_COLOR_SCHEMES, exports.SMARTART_STYLE_OPTIONS = e.SMARTART_STYLE_OPTIONS, exports.SmartArt3DKey = e.SmartArt3DKey, exports.TABLET_BREAKPOINT = e.TABLET_BREAKPOINT, exports.TRANSITION_SPEED_DURATION_MS = e.TRANSITION_SPEED_DURATION_MS, exports.TableSelectionKey = e.TableSelectionKey, exports.WHEEL_SPOKE_COUNTS = e.WHEEL_SPOKE_COUNTS, exports.buildClickGroups = e.buildClickGroups, exports.computeCellSelection = e.computeCellSelection, exports.computeDocumentStatistics = e.computeDocumentStatistics, exports.computeElapsed = e.computeElapsed, exports.countWords = e.countWords, exports.createStroke = e.createStroke, exports.eraseStrokesAtPoint = e.eraseStrokesAtPoint, exports.formatRehearseMs = e.formatRehearseMs, exports.generateCommentId = e.generateCommentId, exports.getCinematicTransitionAnimations = e.getCinematicTransitionAnimations, exports.getP14TransitionAnimations = e.getP14TransitionAnimations, exports.getSlideTransitionAnimations = e.getSlideTransitionAnimations, exports.groupShortcutCatalog = e.groupShortcutCatalog, exports.injectTableSelection = e.injectTableSelection, exports.inlineEditorRect = e.inlineEditorRect, exports.isMobileViewport = e.isMobileViewport, exports.nodeIdsInRenderOrder = e.nodeIdsInRenderOrder, exports.parseSignaturesFromBuffer = e.parseSignaturesFromBuffer, exports.provideTableSelection = e.provideTableSelection, exports.resolveDirection = e.resolveDirection, exports.resolveDirection8 = e.resolveDirection8, exports.resolveOrientation = e.resolveOrientation, exports.resolveShortcutAction = e.resolveShortcutAction, exports.resolveSlideTransition = e.resolveSlideTransition, exports.resolveTransitionDurationMs = e.resolveTransitionDurationMs, exports.resolveWheelSpokeCount = e.resolveWheelSpokeCount, exports.smartArtLayoutLabel = e.smartArtLayoutLabel, exports.textNodeIdsInRenderOrder = e.textNodeIdsInRenderOrder, exports.toShapePreset = e.toShapePreset, exports.useAccessibility = e.useAccessibility, exports.useAlignGroup = e.useAlignGroup, exports.useAnimationPlayback = e.useAnimationPlayback, exports.useAutosave = e.useAutosave, exports.useChartEditing = e.useChartEditing, exports.useCollaboration = e.useCollaboration, exports.useCollaborationWiring = e.useCollaborationWiring, exports.useColorChangeImage = e.useColorChangeImage, exports.useComments = e.useComments, exports.useCommentsWiring = e.useCommentsWiring, exports.useContextMenu = e.useContextMenu, exports.useCustomShows = e.useCustomShows, exports.useCustomShowsWiring = e.useCustomShowsWiring, exports.useDebouncedCallback = e.useDebouncedCallback, exports.useDocumentPropertiesDialog = e.useDocumentPropertiesDialog, exports.useDocumentStatistics = e.useDocumentStatistics, exports.useEditorHistory = e.useEditorHistory, exports.useEditorKeyboard = e.useEditorKeyboard, exports.useEditorOperations = e.useEditorOperations, exports.useElementDrag = e.useElementDrag, exports.useElementInsertion = e.useElementInsertion, exports.useEmbeddedFonts = e.useEmbeddedFonts, exports.useExport = e.useExport, exports.useExportProgress = e.useExportProgress, exports.useExportWiring = e.useExportWiring, exports.useFindReplace = e.useFindReplace, exports.useFontEmbedding = e.useFontEmbedding, exports.useFormatPainter = e.useFormatPainter, exports.useHeaderFooterDialog = e.useHeaderFooterDialog, exports.useInkDrawing = e.useInkDrawing, exports.useInlineEditing = e.useInlineEditing, exports.useInsertElementDialogs = e.useInsertElementDialogs, exports.useIsMobile = e.useIsMobile, exports.useKeyboardInsets = e.useKeyboardInsets, exports.useKeyboardShortcuts = e.useKeyboardShortcuts, exports.useLoadContent = e.useLoadContent, exports.useMasterViewState = e.useMasterViewState, exports.useMediaExport = e.useMediaExport, exports.useMobileChrome = e.useMobileChrome, exports.useModel3dScene = e.useModel3dScene, exports.useMorphTransitionOverlay = e.useMorphTransitionOverlay, exports.useMultiSelectOps = e.useMultiSelectOps, exports.usePasswordProtection = e.usePasswordProtection, exports.usePresentationAnnotations = e.usePresentationAnnotations, exports.usePresentationModeWiring = e.usePresentationModeWiring, exports.usePrint = e.usePrint, exports.useRehearseTimings = e.useRehearseTimings, exports.useRibbonActions = e.useRibbonActions, exports.useRibbonProps = e.useRibbonProps, exports.useRibbonUiState = e.useRibbonUiState, exports.useSectionOperations = e.useSectionOperations, exports.useSelectionPaneWiring = e.useSelectionPaneWiring, exports.useSheetDismissDrag = e.useSheetDismissDrag, exports.useSignatureWorkflow = e.useSignatureWorkflow, exports.useSignatures = e.useSignatures, exports.useSlideMutations = e.useSlideMutations, exports.useSlideOperations = e.useSlideOperations, exports.useSlideShowSettings = e.useSlideShowSettings, exports.useSlideTemplateInsertion = e.useSlideTemplateInsertion, exports.useSmartArt3D = e.useSmartArt3D, exports.useSmartArtEditing = e.useSmartArtEditing, exports.useSmartArtFocus = e.useSmartArtFocus, exports.useSmartArtHoverRect = e.useSmartArtHoverRect, exports.useSmartArtInlineEditState = e.useSmartArtInlineEditState, exports.useSmartArtNodeEditContext = e.useSmartArtNodeEditContext, exports.useTableCellEditingContext = e.useTableCellEditingContext, exports.useTableCellSelection = e.useTableCellSelection, exports.useThemeEditing = e.useThemeEditing, exports.useToolbarAutoHide = e.useToolbarAutoHide, exports.useToolbarVisibility = e.useToolbarVisibility, exports.useTouchGestures = e.useTouchGestures, exports.useVersionHistory = e.useVersionHistory, exports.useVersionHistoryWiring = e.useVersionHistoryWiring, exports.useViewerSettingsDialog = e.useViewerSettingsDialog;
|
package/dist/internals.cjs.br
CHANGED
|
Binary file
|
package/dist/internals.cjs.gz
CHANGED
|
Binary file
|
package/dist/internals.d.ts
CHANGED
|
@@ -775,7 +775,13 @@ declare interface CollaborationConfig {
|
|
|
775
775
|
writeBackDebounceMs?: number;
|
|
776
776
|
}
|
|
777
777
|
|
|
778
|
+
declare interface CollaborationInlineSnapshot extends CollaborationTextSnapshot {
|
|
779
|
+
readonly inline: InlineTextEditSnapshot;
|
|
780
|
+
}
|
|
781
|
+
|
|
778
782
|
declare interface CollaborationLivePatcher {
|
|
783
|
+
/** Bind a mounted native editor; its handle must be disposed on unmount. */
|
|
784
|
+
beginTextEdit?: (slideId: string | undefined, elementId: string, onChange?: () => void, ownsModel?: (element: PptxElement) => boolean) => CollaborationTextTarget | undefined;
|
|
779
785
|
/** Attach a live doc (or `null` to go dormant). Pending patches are dropped. */
|
|
780
786
|
configure: (doc: YDocLike | null, factories: YjsFactories | null,
|
|
781
787
|
/** Publish synchronously when the host may revoke write readiness at any time. */
|
|
@@ -798,6 +804,34 @@ declare type CollaborationRole = 'owner' | 'collaborator' | 'viewer';
|
|
|
798
804
|
/** How the local user entered a collaboration session. */
|
|
799
805
|
declare type CollaborationSessionIntent = 'create' | 'join';
|
|
800
806
|
|
|
807
|
+
declare interface CollaborationShellState {
|
|
808
|
+
canEdit: boolean;
|
|
809
|
+
status: ConnectionStatus;
|
|
810
|
+
remoteUsers: readonly SanitizedPresence[];
|
|
811
|
+
connectedCount: number;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
declare interface CollaborationTextSession {
|
|
815
|
+
applyLocalDelta: (delta: readonly DeltaOp[], edit?: LocalTextEdit) => boolean;
|
|
816
|
+
readMerged: () => CollaborationTextSnapshot | undefined;
|
|
817
|
+
adoptMerged: (snapshot: CollaborationTextSnapshot) => boolean;
|
|
818
|
+
/** Capture an offset in the last painted/local draft, not the newer remote string. */
|
|
819
|
+
bookmark: (index: number, association: number) => () => number | null;
|
|
820
|
+
dispose: () => void;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
/** Opaque acknowledgement identity for an exact remote snapshot painted by an adapter. */
|
|
824
|
+
declare interface CollaborationTextSnapshot {
|
|
825
|
+
readonly delta: readonly DeltaOp[];
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
/** A mounted editor owns this handle, never the document or its provider. */
|
|
829
|
+
declare interface CollaborationTextTarget extends CollaborationTextSession {
|
|
830
|
+
readMerged: () => CollaborationInlineSnapshot | undefined;
|
|
831
|
+
/** A bookmark follows character identity rather than a mutable numeric offset. */
|
|
832
|
+
bookmark: (index: number, association: number) => () => number | null;
|
|
833
|
+
}
|
|
834
|
+
|
|
801
835
|
/**
|
|
802
836
|
* Collaboration transport.
|
|
803
837
|
*
|
|
@@ -2297,6 +2331,14 @@ declare interface LiveTextSource {
|
|
|
2297
2331
|
textStyle?: TextStyle;
|
|
2298
2332
|
}
|
|
2299
2333
|
|
|
2334
|
+
declare type LocalTextEdit = LocalTextReplacement | TextSessionCorrespondence;
|
|
2335
|
+
|
|
2336
|
+
/** Browser edit range mapped to the editor's pre-input encoded coordinates. */
|
|
2337
|
+
declare interface LocalTextReplacement {
|
|
2338
|
+
from: number;
|
|
2339
|
+
to: number;
|
|
2340
|
+
}
|
|
2341
|
+
|
|
2300
2342
|
/**
|
|
2301
2343
|
* Active tab within the master view sidebar.
|
|
2302
2344
|
*
|
|
@@ -12209,6 +12251,24 @@ declare interface RunRuby {
|
|
|
12209
12251
|
/** A plain CSS style map (keys are CSS properties; binding-agnostic). */
|
|
12210
12252
|
declare type RunStyle = Record<string, string | number>;
|
|
12211
12253
|
|
|
12254
|
+
/**
|
|
12255
|
+
* Presence data for a remote collaborator, sanitised from the awareness
|
|
12256
|
+
* protocol. Returned by {@link sanitizePresence}; coordinates are in unscaled
|
|
12257
|
+
* slide pixels, clamped to the supplied canvas bounds.
|
|
12258
|
+
*/
|
|
12259
|
+
declare interface SanitizedPresence {
|
|
12260
|
+
clientId: number;
|
|
12261
|
+
userName: string;
|
|
12262
|
+
userAvatar?: string;
|
|
12263
|
+
userColor: string;
|
|
12264
|
+
activeSlideIndex: number;
|
|
12265
|
+
cursorX: number;
|
|
12266
|
+
cursorY: number;
|
|
12267
|
+
lastUpdated: string;
|
|
12268
|
+
selectedElementId?: string;
|
|
12269
|
+
role?: CollaborationRole;
|
|
12270
|
+
}
|
|
12271
|
+
|
|
12212
12272
|
/**
|
|
12213
12273
|
* Full PowerPoint "File > Options" parity model.
|
|
12214
12274
|
*
|
|
@@ -13700,6 +13760,12 @@ declare interface TextOptions extends Partial<ElementPosition> {
|
|
|
13700
13760
|
/** 2D linear transform matrix `[a, b, c, d]` for inherited group orientation. */
|
|
13701
13761
|
declare type TextOrientationMatrix = [number, number, number, number];
|
|
13702
13762
|
|
|
13763
|
+
declare interface TextPositionCell {
|
|
13764
|
+
index: number;
|
|
13765
|
+
left?: TextPositionCell;
|
|
13766
|
+
right?: TextPositionCell;
|
|
13767
|
+
}
|
|
13768
|
+
|
|
13703
13769
|
/**
|
|
13704
13770
|
* A text box — a plain rectangle containing text, typically with no
|
|
13705
13771
|
* visible fill or stroke.
|
|
@@ -13844,6 +13910,23 @@ declare interface TextSegmentInput {
|
|
|
13844
13910
|
style?: Partial<TextStyleInput>;
|
|
13845
13911
|
}
|
|
13846
13912
|
|
|
13913
|
+
/** Desired UTF-16 units mapped to the editor's previously observed identities. */
|
|
13914
|
+
declare interface TextSessionCorrespondence {
|
|
13915
|
+
readonly retainedIndices: readonly (number | null)[];
|
|
13916
|
+
/** Old carriers for known paragraph attributes, independently of character identity. */
|
|
13917
|
+
readonly paragraphSources?: readonly (number | null)[];
|
|
13918
|
+
}
|
|
13919
|
+
|
|
13920
|
+
/** Supplied by the binding's existing Yjs runtime, bound to this exact Y.Text. */
|
|
13921
|
+
declare interface TextSessionPositions<Position> {
|
|
13922
|
+
capture: (index: number, association: number) => Position;
|
|
13923
|
+
resolve: (position: Position) => number | null;
|
|
13924
|
+
/** Synchronize tracked positions once per batch, including in-transaction writes. */
|
|
13925
|
+
refresh?: () => boolean | void;
|
|
13926
|
+
/** Release only resources created for this session. */
|
|
13927
|
+
dispose?: () => void;
|
|
13928
|
+
}
|
|
13929
|
+
|
|
13847
13930
|
declare interface TextStyle {
|
|
13848
13931
|
/**
|
|
13849
13932
|
* Combined rotation/flip matrix inherited from ancestor groups.
|
|
@@ -14468,6 +14551,12 @@ declare interface TouchGestureCallbacks {
|
|
|
14468
14551
|
onLongPress?: (clientX: number, clientY: number) => void;
|
|
14469
14552
|
}
|
|
14470
14553
|
|
|
14554
|
+
declare interface TrackedTextPosition {
|
|
14555
|
+
/** Internal identity, shared by snapshots that observed the same character. */
|
|
14556
|
+
readonly cell: TextPositionCell;
|
|
14557
|
+
readonly association: number;
|
|
14558
|
+
}
|
|
14559
|
+
|
|
14471
14560
|
/** Geometry patch emitted by the selection overlay during a drag/resize/rotate. */
|
|
14472
14561
|
export declare interface TransformPayload {
|
|
14473
14562
|
id: string;
|
|
@@ -14765,6 +14854,15 @@ export declare function useChartEditing(element: ComputedRef<ChartPptxElement |
|
|
|
14765
14854
|
export declare function useCollaboration(options: UseCollaborationOptions): UseCollaborationResult;
|
|
14766
14855
|
|
|
14767
14856
|
export declare interface UseCollaborationOptions {
|
|
14857
|
+
/** Optional reactive configuration; replacing or clearing it starts or stops the session. */
|
|
14858
|
+
collaboration?: MaybeRefOrGetter<CollaborationConfig | undefined>;
|
|
14859
|
+
/** Host authorization, combined with the session's canonical read-only state. */
|
|
14860
|
+
canEdit?: MaybeRefOrGetter<boolean>;
|
|
14861
|
+
/** Whether an actual source file is still loading or failed to load. */
|
|
14862
|
+
sourcePending?: MaybeRefOrGetter<boolean>;
|
|
14863
|
+
sourceError?: MaybeRefOrGetter<boolean>;
|
|
14864
|
+
/** Optional retained serializer for elected-owner write-back; the scheduler guards stale results. */
|
|
14865
|
+
serialize?: (isCurrent: () => boolean) => Promise<Uint8Array | null> | Uint8Array | null;
|
|
14768
14866
|
/** The editor's reactive slides ref (broadcast on local change). */
|
|
14769
14867
|
slides: Ref< PptxSlide[]>;
|
|
14770
14868
|
/** Called when a remote peer broadcasts a newer slide set. */
|
|
@@ -14808,6 +14906,10 @@ export declare interface UseCollaborationOptions {
|
|
|
14808
14906
|
}
|
|
14809
14907
|
|
|
14810
14908
|
export declare interface UseCollaborationResult {
|
|
14909
|
+
/** Shared custom-shell permissions, connection status and sanitized presence. */
|
|
14910
|
+
shellState: ComputedRef<CollaborationShellState>;
|
|
14911
|
+
/** The configuration attached by start() or the reactive collaboration option. */
|
|
14912
|
+
activeCollaboration: Ref<CollaborationConfig | null>;
|
|
14811
14913
|
status: Ref< ConnectionStatus>;
|
|
14812
14914
|
connected: Ref<boolean>;
|
|
14813
14915
|
cursors: Ref<RemoteCursor[]>;
|
|
@@ -15287,6 +15389,8 @@ export declare interface UseEditorOperationsInput {
|
|
|
15287
15389
|
export declare function useElementDrag(input: UseElementDragInput): {
|
|
15288
15390
|
hasActivePointerInteraction: () => boolean;
|
|
15289
15391
|
startElementDrag: (id: string, event: PointerEvent, wasSelected: boolean) => void;
|
|
15392
|
+
/** Stop window listeners when a custom shell detaches or becomes read-only. */
|
|
15393
|
+
cancelElementDrag: () => void;
|
|
15290
15394
|
onTransformStart: (payload?: {
|
|
15291
15395
|
id: string;
|
|
15292
15396
|
}) => void;
|
|
@@ -15749,6 +15853,8 @@ export declare interface UseInlineEditingInput {
|
|
|
15749
15853
|
livePatcher?: () => CollaborationLivePatcher | undefined;
|
|
15750
15854
|
/** The slide the edited element belongs to (needed by the live channel). */
|
|
15751
15855
|
activeSlide?: () => PptxSlide | undefined;
|
|
15856
|
+
/** Adopt already-published connected text locally before a host disables editing. */
|
|
15857
|
+
onConnectedSuspend?: (snapshot: InlineTextEditSnapshot) => void;
|
|
15752
15858
|
}
|
|
15753
15859
|
|
|
15754
15860
|
export declare interface UseInlineEditingResult {
|
|
@@ -15758,6 +15864,7 @@ export declare interface UseInlineEditingResult {
|
|
|
15758
15864
|
/** Set the in-progress text and mirror it to collaborators. */
|
|
15759
15865
|
updateInlineText: (text: string, snapshot?: InlineTextEditSnapshot) => void;
|
|
15760
15866
|
readInlineSnapshot: () => InlineTextEditSnapshot | undefined;
|
|
15867
|
+
isInlineInputPending: () => boolean;
|
|
15761
15868
|
onListSession: (event: {
|
|
15762
15869
|
controller: InlineListController;
|
|
15763
15870
|
active: boolean;
|
|
@@ -17698,6 +17805,8 @@ declare interface YjsFactories {
|
|
|
17698
17805
|
createMap: () => YMapLike;
|
|
17699
17806
|
createArray: () => YArrayLike;
|
|
17700
17807
|
createText: () => YTextLike;
|
|
17808
|
+
/** Track character identities using the binding's existing Yjs runtime. */
|
|
17809
|
+
createTextPositions?: (text: YTextEditableLike) => TextSessionPositions<TrackedTextPosition>;
|
|
17701
17810
|
}
|
|
17702
17811
|
|
|
17703
17812
|
declare interface YMapLike {
|
|
@@ -17707,6 +17816,12 @@ declare interface YMapLike {
|
|
|
17707
17816
|
forEach: (cb: (value: unknown, key: string) => void) => void;
|
|
17708
17817
|
}
|
|
17709
17818
|
|
|
17819
|
+
/** Y.Text surface needed for in-place edits (delete/format on top of insert). */
|
|
17820
|
+
declare interface YTextEditableLike extends YTextLike {
|
|
17821
|
+
delete: (index: number, length: number) => void;
|
|
17822
|
+
format: (index: number, length: number, attributes: Record<string, string | null>) => void;
|
|
17823
|
+
}
|
|
17824
|
+
|
|
17710
17825
|
declare interface YTextLike {
|
|
17711
17826
|
insert: (index: number, text: string, attrs?: Record<string, string>) => void;
|
|
17712
17827
|
toDelta: () => DeltaOp[];
|
package/dist/internals.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as a,
|
|
2
|
-
export {
|
|
1
|
+
import { $ as a, A as s, B as t, Bt as n, Ct as i, D as r, E as e, F as o, Fi as l, Fn as f, Ft as c, G as d, Hd as g, Ht as y, I as h, In as m, It as p, J as w, Jc as F, Ji as L, K as T, L as u, Ls as x, Lt as V, M as j, Mt as v, N as I, Nt as J, O as M, P, Pt as U, Q as W, Qd as _, R as b, Rt as k, St as q, T as z, Tn as B, Tt as D, U as E, Ul as H, Ut as N, V as O, Vd as Q, Vt as R, W as S, Wc as X, Wt as Y, X as A, Xn as C, Y as G, Yi as K, Z, _ as $, _i as aa, _t as sa, a as ta, ai as na, al as ia, at as ra, b as ea, bt as oa, c as la, cf as fa, ci as ca, cn as da, ct as ga, d as ya, df as ha, dt as ma, ei as pa, et as wa, f as Fa, fn as La, fo as Ta, ft as ua, g as xa, gi as Va, gn as ja, gt as va, h as Ia, hi as Ja, hl as Ma, hn as Pa, ht as Ua, i as Wa, it as _a, j as ba, jt as ka, k as qa, kr as za, l as Ba, li as Da, ln as Ea, lr as Ha, lt as Na, m as Oa, mn as Qa, mt as Ra, n as Sa, na as Xa, nt as Ya, o as Aa, oi as Ca, on as Ga, ot as Ka, p as Za, pn as $a, pt as as, q as ss, qt as ts, r as ns, rf as is, rt as rs, s as es, sn as os, st as ls, t as fs, tt as cs, u as ds, un as gs, ut as ys, v as hs, vt as ms, wa as ps, wr as ws, ws as Fs, wt as Ls, xr as Ts, xt as us, y as xs, ya as Vs, yn as js, yt as vs, z as Is, zt as Js } from "./useViewerSettingsDialog-Cgs5nn6a.js";
|
|
2
|
+
export { Ha as CINEMATIC_TRANSITION_KEYFRAMES, Wa as DEFAULT_MAX_VERSIONS, Ts as DEFAULT_MORPH_DURATION_MS, ws as DEFAULT_TRANSITION_DURATION_MS, za as EASE, ms as ERASER_RADIUS, Ra as FragmentedTransitionLayer, vs as HIGHLIGHTER_OPACITY, oa as HIGHLIGHTER_WIDTH, pa as INSTANT, na as MOBILE_BREAKPOINT, Ca as MOBILE_LANDSCAPE_MAX_HEIGHT, as as MorphExtraLayers, ca as NUDGE_LARGE, Da as NUDGE_SMALL, Ja as P14_TRANSITION_KEYFRAMES, Va as P14_TRANSITION_KEYFRAMES_2, aa as P14_TRANSITION_KEYFRAMES_ALL, us as PEN_WIDTH, ua as PresentationTransitionOverlay, l as RANDOM_ELIGIBLE_TYPES, $ as RIBBON_ALIGN, k as SHORTCUT_CATALOG, Js as SHORTCUT_GROUP_LABEL_KEYS, L as SLIDE_TRANSITION_KEYFRAMES, K as SLIDE_TRANSITION_KEYFRAMES_CSS, v as SMARTART_COLOR_SCHEMES, J as SMARTART_STYLE_OPTIONS, f as SmartArt3DKey, Xa as TABLET_BREAKPOINT, Vs as TRANSITION_SPEED_DURATION_MS, Ga as TableSelectionKey, ps as WHEEL_SPOKE_COUNTS, Ta as buildClickGroups, os as computeCellSelection, Fs as computeDocumentStatistics, Na as computeElapsed, x as countWords, q as createStroke, i as eraseStrokesAtPoint, ys as formatRehearseMs, X as generateCommentId, F as getCinematicTransitionAnimations, ia as getP14TransitionAnimations, Ma as getSlideTransitionAnimations, n as groupShortcutCatalog, da as injectTableSelection, $a as inlineEditorRect, H as isMobileViewport, Qa as nodeIdsInRenderOrder, s as parseSignaturesFromBuffer, Ea as provideTableSelection, Q as resolveDirection, g as resolveDirection8, _ as resolveOrientation, R as resolveShortcutAction, is as resolveSlideTransition, fa as resolveTransitionDurationMs, ha as resolveWheelSpokeCount, U as smartArtLayoutLabel, Pa as textNodeIdsInRenderOrder, hs as toShapePreset, ls as useAccessibility, Ka as useAlignGroup, D as useAnimationPlayback, ra as useAutosave, V as useChartEditing, _a as useCollaboration, rs as useCollaborationWiring, B as useColorChangeImage, Ya as useComments, cs as useCommentsWiring, wa as useContextMenu, a as useCustomShows, W as useCustomShowsWiring, p as useDebouncedCallback, Z as useDocumentPropertiesDialog, N as useDocumentStatistics, A as useEditorHistory, G as useEditorKeyboard, w as useEditorOperations, ss as useElementDrag, T as useElementInsertion, d as useEmbeddedFonts, S as useExport, E as useExportProgress, t as useExportWiring, Is as useFindReplace, b as useFontEmbedding, u as useFormatPainter, h as useHeaderFooterDialog, o as useInkDrawing, P as useInlineEditing, I as useInsertElementDialogs, Y as useIsMobile, j as useKeyboardInsets, y as useKeyboardShortcuts, ba as useLoadContent, qa as useMasterViewState, O as useMediaExport, M as useMobileChrome, js as useModel3dScene, Ua as useMorphTransitionOverlay, r as useMultiSelectOps, e as usePasswordProtection, Ls as usePresentationAnnotations, z as usePresentationModeWiring, ea as usePrint, ma as useRehearseTimings, xs as useRibbonActions, Sa as useRibbonProps, xa as useRibbonUiState, Ia as useSectionOperations, Oa as useSelectionPaneWiring, C as useSheetDismissDrag, Za as useSignatureWorkflow, ga as useSignatures, Fa as useSlideMutations, ya as useSlideOperations, ds as useSlideShowSettings, Ba as useSlideTemplateInsertion, m as useSmartArt3D, ka as useSmartArtEditing, c as useSmartArtFocus, La as useSmartArtHoverRect, ja as useSmartArtInlineEditState, la as useSmartArtNodeEditContext, es as useTableCellEditingContext, gs as useTableCellSelection, Aa as useThemeEditing, sa as useToolbarAutoHide, ts as useToolbarVisibility, va as useTouchGestures, ta as useVersionHistory, ns as useVersionHistoryWiring, fs as useViewerSettingsDialog };
|
package/dist/internals.js.br
CHANGED
|
Binary file
|
package/dist/internals.js.gz
CHANGED
|
Binary file
|
package/dist/pptx-vue-viewer.css
CHANGED
|
@@ -479,7 +479,7 @@
|
|
|
479
479
|
}
|
|
480
480
|
|
|
481
481
|
|
|
482
|
-
.pptx-vue-smartart-3d-canvas[data-v-
|
|
482
|
+
.pptx-vue-smartart-3d-canvas[data-v-57f216fa] {
|
|
483
483
|
width: 100%;
|
|
484
484
|
height: 100%;
|
|
485
485
|
display: block;
|
|
@@ -488,7 +488,7 @@
|
|
|
488
488
|
|
|
489
489
|
/* Invisible hit-test overlay: fills the canvas area, captures dblclicks.
|
|
490
490
|
opacity:0 makes it invisible while keeping it in the layout + event flow. */
|
|
491
|
-
.pptx-vue-smartart-3d-hittest[data-v-
|
|
491
|
+
.pptx-vue-smartart-3d-hittest[data-v-57f216fa] {
|
|
492
492
|
position: absolute;
|
|
493
493
|
inset: 0;
|
|
494
494
|
opacity: 0;
|
|
@@ -500,11 +500,11 @@
|
|
|
500
500
|
get pointer-events:auto when editable=true, which is disabled in the wrapper.
|
|
501
501
|
This rule re-enables them so the dblclick target is the <g> element (carrying
|
|
502
502
|
data-node-id) rather than the overlay div, enabling correct node resolution. */
|
|
503
|
-
.pptx-vue-smartart-3d-hittest[data-v-
|
|
503
|
+
.pptx-vue-smartart-3d-hittest[data-v-57f216fa] [data-node-id] {
|
|
504
504
|
pointer-events: auto;
|
|
505
505
|
}
|
|
506
506
|
|
|
507
|
-
.pptx-vue-smartart-3d-editor[data-v-
|
|
507
|
+
.pptx-vue-smartart-3d-editor[data-v-57f216fa] {
|
|
508
508
|
position: absolute;
|
|
509
509
|
z-index: 20;
|
|
510
510
|
margin: 0;
|
|
Binary file
|
|
Binary file
|