@netless/app-slide 0.2.96 → 0.2.98

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netless/app-slide",
3
- "version": "0.2.96",
3
+ "version": "0.2.98",
4
4
  "main": "dist/main.cjs.js",
5
5
  "module": "dist/main.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "README-zh.md"
11
11
  ],
12
12
  "devDependencies": {
13
- "@netless/slide": "1.4.51",
13
+ "@netless/slide": "1.4.53",
14
14
  "@types/color-string": "^1.5.2",
15
15
  "color-string": "^1.9.1",
16
16
  "jspdf": "2.5.1",
@@ -340,6 +340,8 @@ export class SlideControllerBase {
340
340
  timestamp: this.timestamp,
341
341
  customLinks: attribute.customLinks,
342
342
  skipActionWhenFrozen: options.skipActionWhenFrozen ?? true,
343
+ resourceMaxRetries: options.resourceMaxRetries,
344
+ onResourceMaxRetries: options.onResourceMaxRetries,
343
345
  });
344
346
  if (import.meta.env.DEV) {
345
347
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
package/src/index.ts CHANGED
@@ -84,6 +84,8 @@ export interface AppOptions
84
84
  /** just readonly, no operate silder */
85
85
  justSildeReadonly?: true;
86
86
  enableScale?: boolean;
87
+ resourceMaxRetries?: number;
88
+ onResourceMaxRetries: (url: string, error: Error) => void;
87
89
  }
88
90
 
89
91
  export interface ILogger {