@netless/app-slide 0.2.92 → 0.2.94
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/README-zh.md +3 -3
- package/README.md +3 -3
- package/dist/index.d.ts +12 -3
- package/dist/main.cjs.js +96 -96
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +165 -41
- package/dist/main.es.js.map +1 -1
- package/dist/main.iife.js +97 -97
- package/dist/main.iife.js.map +1 -1
- package/package.json +9 -9
- package/src/DocsViewer/ResizableContainer.ts +52 -32
- package/src/DocsViewer/ScrollBar.ts +57 -51
- package/src/SlideController/index.ts +88 -5
- package/src/SlideDocsViewer/index.ts +24 -11
- package/src/index.ts +12 -5
- package/LICENSE +0 -21
package/README-zh.md
CHANGED
|
@@ -46,9 +46,9 @@ manager.addApp({
|
|
|
46
46
|
"https://convertcdn.netless.group/test/dynamicConvert/8ed5cce449874494a9ca7894b39415fb/jsonOutput/slide-3.json",
|
|
47
47
|
],
|
|
48
48
|
customLinks: [
|
|
49
|
-
{ pageIndex: 1, shapeId:
|
|
50
|
-
{ pageIndex: 1, shapeId:
|
|
51
|
-
]
|
|
49
|
+
{ pageIndex: 1, shapeId: "slide-19", link: "https://www.aaa.com" },
|
|
50
|
+
{ pageIndex: 1, shapeId: "slide-22", link: "https://www.bbb.com" },
|
|
51
|
+
],
|
|
52
52
|
} as SlideAttributes,
|
|
53
53
|
});
|
|
54
54
|
```
|
package/README.md
CHANGED
|
@@ -59,9 +59,9 @@ manager.addApp({
|
|
|
59
59
|
"https://convertcdn.netless.group/test/dynamicConvert/8ed5cce449874494a9ca7894b39415fb/jsonOutput/title.json",
|
|
60
60
|
],
|
|
61
61
|
customLinks: [
|
|
62
|
-
{ pageIndex: 1, shapeId:
|
|
63
|
-
{ pageIndex: 1, shapeId:
|
|
64
|
-
]
|
|
62
|
+
{ pageIndex: 1, shapeId: "slide-19", link: "https://www.aaa.com" },
|
|
63
|
+
{ pageIndex: 1, shapeId: "slide-22", link: "https://www.bbb.com" },
|
|
64
|
+
],
|
|
65
65
|
} as SlideAttributes,
|
|
66
66
|
});
|
|
67
67
|
```
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { RegisterParams, ReadonlyTeleBox, Room, AppContext, Player, View, NetlessApp } from '@netless/window-manager';
|
|
2
|
+
import { SlideError, VolumeAdjuster } from '@netless/ppt-player';
|
|
3
3
|
import { IPlugin } from '@netless/plugin-system';
|
|
4
4
|
|
|
5
5
|
declare class AliTrackLogger {
|
|
@@ -241,6 +241,7 @@ interface ISlideConfig {
|
|
|
241
241
|
* Default is false.
|
|
242
242
|
*/
|
|
243
243
|
enableGlobalClick?: boolean;
|
|
244
|
+
disableClickDebounce?: boolean;
|
|
244
245
|
/**
|
|
245
246
|
* The provided audio player class, used for rtc mixing
|
|
246
247
|
*/
|
|
@@ -983,6 +984,13 @@ declare class SlideControllerBase {
|
|
|
983
984
|
protected _toFreeze: -1 | 0 | 1;
|
|
984
985
|
freeze: () => void;
|
|
985
986
|
unfreeze: () => Promise<void>;
|
|
987
|
+
protected bindAppStateChangeEvent: () => void;
|
|
988
|
+
protected onAppStateChangeHandler: (state: "normal" | "minimized" | "maximized") => void;
|
|
989
|
+
protected onAppStatusChangeHandler: (payload: {
|
|
990
|
+
appId: string;
|
|
991
|
+
status: "normal" | "minimized" | "maximized";
|
|
992
|
+
}) => void;
|
|
993
|
+
protected getAppStatus: () => "normal" | "minimized" | "maximized" | undefined;
|
|
986
994
|
protected onVisibilityChange: () => Promise<void>;
|
|
987
995
|
}
|
|
988
996
|
declare class SlideController extends SlideControllerBase {
|
|
@@ -1242,4 +1250,5 @@ interface AppResult {
|
|
|
1242
1250
|
}
|
|
1243
1251
|
declare const SlideApp: NetlessApp<Attributes, MagixEvents, AppOptions, AppResult>;
|
|
1244
1252
|
|
|
1245
|
-
export {
|
|
1253
|
+
export { DefaultUrl, DocsViewer, FreezerLength, SideEffectManager, Slide, SlideController, SlideControllerBase, SlideDocsViewer, SlidePreviewer, addHooks, apps, SlideApp as default, getFreezerLength, log, logger, onCreated, onDestroyed, previewSlide, setFreezerLength, syncSceneWithSlide, useFreezer, usePlugin, version };
|
|
1254
|
+
export type { AddHooks, AppOptions, AppResult, Attributes, FreezableSlide, ILogger, PreviewParams };
|