@netless/app-slide 0.3.0-canary.18 → 0.3.0-canary.19

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.mjs CHANGED
@@ -1291,19 +1291,19 @@ function or({ context: e, storage: t, viewer: s, sideEffect: r, logger: n }) {
1291
1291
  return d === "INPUT" || d === "TEXTAREA" || d === "SELECT";
1292
1292
  };
1293
1293
  r.addEventListener(window, "keydown", (c) => {
1294
- e.box.focus && !b(c.target) && ((c.key === "ArrowUp" || c.key === "ArrowLeft") && s.slide.prevStep(), (c.key === "ArrowRight" || c.key === "ArrowDown") && s.slide.nextStep());
1294
+ e.box.focus && !e.box.readonly && !b(c.target) && ((c.key === "ArrowUp" || c.key === "ArrowLeft") && s.slide.prevStep(), (c.key === "ArrowRight" || c.key === "ArrowDown") && s.slide.nextStep());
1295
1295
  });
1296
1296
  }
1297
1297
  function ar(e) {
1298
1298
  const { container: t, ...s } = e, r = m("div", "preview-wrapper"), n = new W(s);
1299
1299
  return r.appendChild(document.createElement("style")).textContent = W.styles, r.appendChild(n.$content), r.appendChild(n.$footer), t.appendChild(r), n.prepare(() => n.slide.renderSlide(1)), n;
1300
1300
  }
1301
- const lr = /* @__PURE__ */ ue.usePlugin.bind(ue), cr = "0.3.0-canary.18", dr = {
1301
+ const lr = /* @__PURE__ */ ue.usePlugin.bind(ue), cr = "0.3.0-canary.19", dr = {
1302
1302
  kind: "Slide",
1303
1303
  setup(e) {
1304
- console.log("[Slide] setup @ 0.3.0-canary.18 (" + e.appId + ")");
1304
+ console.log("[Slide] setup @ 0.3.0-canary.19 (" + e.appId + ")");
1305
1305
  const t = new Ce(e);
1306
- if (t.info("[Slide] setup @ 0.3.0-canary.18"), !e.attributes.taskId)
1306
+ if (t.info("[Slide] setup @ 0.3.0-canary.19"), !e.attributes.taskId)
1307
1307
  throw new Error("[Slide] no taskId");
1308
1308
  const s = e.createStorage("slide", e.attributes), r = e.getAppOptions() || {}, n = r.renderOptions || {}, i = new De(), o = new W({
1309
1309
  interactive: !0,