@netless/app-slide 0.2.64 → 0.2.65

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/main.es.js CHANGED
@@ -37553,7 +37553,6 @@ class SlideController {
37553
37553
  }
37554
37554
  };
37555
37555
  this.unfreeze = async () => {
37556
- var _a;
37557
37556
  if (!this.visible)
37558
37557
  return;
37559
37558
  this.isFrozen = false;
@@ -37567,10 +37566,10 @@ class SlideController {
37567
37566
  this.slide.resume();
37568
37567
  }
37569
37568
  if (isNeedSyncState) {
37570
- const currentSlideIndex = (_a = this.context.storage.state.state) == null ? void 0 : _a.currentSlideIndex;
37571
- if (currentSlideIndex) {
37572
- log("[Slide] sync storage", currentSlideIndex);
37573
- this.slide.setSlideState({ currentSlideIndex });
37569
+ const state = this.context.storage.state.state;
37570
+ if (state) {
37571
+ log("[Slide] sync storage", JSON.stringify(state));
37572
+ this.slide.setSlideState(state);
37574
37573
  }
37575
37574
  }
37576
37575
  } else {
@@ -39353,7 +39352,7 @@ class SlidePreviewer {
39353
39352
  }
39354
39353
  }
39355
39354
  const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
39356
- const version = "0.2.64";
39355
+ const version = "0.2.65";
39357
39356
  const SlideApp = {
39358
39357
  kind: "Slide",
39359
39358
  setup(context) {