@netless/app-slide 0.2.74 → 0.2.75-beta.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/dist/main.es.js CHANGED
@@ -37597,7 +37597,7 @@ function syncSceneWithSlide(room, context, slide, baseScenePath) {
37597
37597
  if (!(page > 0) || !context.getIsWritable())
37598
37598
  return;
37599
37599
  const scenePath = [baseScenePath, page].join("/");
37600
- if (room.scenePathType(scenePath) !== "page") {
37600
+ if (context.isAddApp && room.scenePathType(scenePath) !== "page") {
37601
37601
  room.removeScenes(baseScenePath);
37602
37602
  const count = slide.slideCount;
37603
37603
  const scenes = [];
@@ -37611,7 +37611,7 @@ function syncSceneWithSlide(room, context, slide, baseScenePath) {
37611
37611
  } else {
37612
37612
  currentScenePath = ((_a = context.getView()) == null ? void 0 : _a.focusScenePath) || "";
37613
37613
  }
37614
- if (currentScenePath !== scenePath) {
37614
+ if (currentScenePath !== scenePath && room.scenePathType(scenePath) === "page") {
37615
37615
  context.setScenePath(scenePath);
37616
37616
  }
37617
37617
  }
@@ -39532,7 +39532,7 @@ class SlidePreviewer {
39532
39532
  }
39533
39533
  }
39534
39534
  const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
39535
- const version = "0.2.74";
39535
+ const version = "0.2.75-beta.0";
39536
39536
  const SlideApp = {
39537
39537
  kind: "Slide",
39538
39538
  setup(context) {