lt-ppt 1.0.38 → 1.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/InnerApp-C_xHfdzV.js +73725 -0
- package/dist/database-Bnxh2I4Q.js +8965 -0
- package/dist/{index-CQeNmbJF.js → index-0O2z9gvS.js} +1 -1
- package/dist/index-BDVAOke8.js +9 -0
- package/dist/lib-yXuciAWl.js +6612 -0
- package/dist/lt-ppt.css +1 -1
- package/dist/lt-ppt.es.js +1 -1
- package/dist/lt-ppt.umd.js +204 -204
- package/dist/screen-DiO2u-As.js +104 -0
- package/dist/types/src/InnerApp.vue.d.ts +4 -2
- package/dist/types/src/LtPPT.vue.d.ts +3 -0
- package/dist/types/src/hooks/useExport.d.ts +3 -1
- package/dist/types/src/hooks/usePresentationSave.d.ts +751 -0
- package/dist/types/src/locales/en.d.ts +1 -0
- package/dist/types/src/locales/index.d.ts +2 -0
- package/dist/types/src/locales/zh-CN.d.ts +1 -0
- package/dist/types/src/types/injectKey.d.ts +15 -0
- package/dist/types/src/types/lt-ppt.d.ts +7 -1
- package/dist/types/src/views/Editor/EditorHeader/index.vue.d.ts +5 -3
- package/dist/types/src/views/Editor/MiniToolbar.vue.d.ts +5 -1
- package/dist/types/src/views/Editor/index.vue.d.ts +3 -1
- package/dist/useExport-DgMf_X-6.js +24344 -0
- package/package.json +1 -1
- package/dist/InnerApp-RPA1zMCr.js +0 -97864
- package/dist/index-CzNUEk74.js +0 -8
- package/dist/lib-CieDmdW8.js +0 -2837
- package/dist/screen-YFH2f2DV.js +0 -12782
|
@@ -43,6 +43,7 @@ declare const i18n: import('./useLocale.ts').I18n<{
|
|
|
43
43
|
slideshowF5: string;
|
|
44
44
|
aiGenerate: string;
|
|
45
45
|
export: string;
|
|
46
|
+
download: string;
|
|
46
47
|
save: string;
|
|
47
48
|
fromStart: string;
|
|
48
49
|
fromCurrent: string;
|
|
@@ -1172,6 +1173,7 @@ declare const i18n: import('./useLocale.ts').I18n<{
|
|
|
1172
1173
|
slideshowF5: string;
|
|
1173
1174
|
aiGenerate: string;
|
|
1174
1175
|
export: string;
|
|
1176
|
+
download: string;
|
|
1175
1177
|
save: string;
|
|
1176
1178
|
fromStart: string;
|
|
1177
1179
|
fromCurrent: string;
|
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
import { InjectionKey, Ref } from 'vue';
|
|
2
|
+
import { SaveCallbackParams, UploadFileParams } from './lt-ppt';
|
|
2
3
|
export type SlideScale = Ref<number>;
|
|
3
4
|
export type SlideId = Ref<string>;
|
|
4
5
|
export type RadioGroupValue = {
|
|
5
6
|
value: Ref<string>;
|
|
6
7
|
updateValue: (value: string) => void;
|
|
7
8
|
};
|
|
9
|
+
export interface PresentationSaveBridge {
|
|
10
|
+
save: (() => Promise<void>) | null;
|
|
11
|
+
getOnUploadFile: () => ((params: UploadFileParams) => Promise<string>) | undefined;
|
|
12
|
+
getOnSave: () => ((params: SaveCallbackParams) => void | Promise<void>) | undefined;
|
|
13
|
+
markSaved: (presentation?: unknown) => void;
|
|
14
|
+
hasUnsavedChanges: () => boolean;
|
|
15
|
+
flushPendingEdits: () => void;
|
|
16
|
+
registerPendingEdit: (flush: () => void) => () => void;
|
|
17
|
+
waitUntilReady: () => Promise<void>;
|
|
18
|
+
markReady: () => void;
|
|
19
|
+
}
|
|
20
|
+
export type PresentationSaveHandler = () => Promise<void>;
|
|
8
21
|
export declare const injectKeySlideScale: InjectionKey<SlideScale>;
|
|
9
22
|
export declare const injectKeySlideId: InjectionKey<SlideId>;
|
|
10
23
|
export declare const injectKeyRadioGroupValue: InjectionKey<RadioGroupValue>;
|
|
24
|
+
export declare const injectKeyPresentationSave: InjectionKey<PresentationSaveBridge>;
|
|
25
|
+
export declare const injectKeyPresentationSaveHandler: InjectionKey<PresentationSaveHandler>;
|
|
@@ -132,7 +132,7 @@ export interface LtPPTProps {
|
|
|
132
132
|
/** 幻灯片内容变更回调 */
|
|
133
133
|
onChange?: (slides: Slide[]) => void;
|
|
134
134
|
/** 保存回调 */
|
|
135
|
-
onSave?: (params: SaveCallbackParams) => void
|
|
135
|
+
onSave?: (params: SaveCallbackParams) => void | Promise<void>;
|
|
136
136
|
/** 初始化完成回调,在 initData 数据加载完毕后触发;若无 initData 则不触发 */
|
|
137
137
|
onInitFinished?: () => void;
|
|
138
138
|
/** 语言设置 */
|
|
@@ -163,8 +163,14 @@ export interface LtPPTInstance {
|
|
|
163
163
|
startScreening: () => void;
|
|
164
164
|
/** 获取当前幻灯片索引 */
|
|
165
165
|
getCurrentIndex: () => number;
|
|
166
|
+
/** 是否存在相对于初始化或最近一次成功保存的未保存内容 */
|
|
167
|
+
hasUnsavedChanges: () => boolean;
|
|
168
|
+
/** 触发与编辑器保存按钮相同的保存流程 */
|
|
169
|
+
save: () => Promise<void>;
|
|
166
170
|
/** 打开下载 PPT 弹层 */
|
|
167
171
|
downloadPPT: () => void;
|
|
172
|
+
/** 使用全部幻灯片、保留音视频并覆盖默认母版生成 PPTX 文件 */
|
|
173
|
+
generateDeafultPPT: () => Promise<File>;
|
|
168
174
|
/** 切换编辑器显示模式 */
|
|
169
175
|
setMode: (mode: LtPPTMode) => void;
|
|
170
176
|
/** 向指定页面插入图片 */
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}
|
|
2
|
-
|
|
3
|
-
},
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
2
|
+
save: () => any;
|
|
3
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
+
onSave?: (() => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
4
6
|
export default _default;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
2
|
+
save: () => any;
|
|
3
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
+
onSave?: (() => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
2
6
|
toolbarRef: HTMLDivElement;
|
|
3
7
|
}, HTMLDivElement>;
|
|
4
8
|
export default _default;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
2
|
+
offscreenCoverRef: HTMLDivElement;
|
|
3
|
+
}, any>;
|
|
2
4
|
export default _default;
|