@netless/app-slide 0.0.36 → 0.0.41

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.0.36",
3
+ "version": "0.0.41",
4
4
  "main": "dist/main.cjs.js",
5
5
  "module": "dist/main.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  ],
12
12
  "devDependencies": {
13
13
  "@netless/app-shared": "^0.1.1",
14
- "@netless/slide": "^0.1.37",
14
+ "@netless/slide": "^0.1.45",
15
15
  "@types/color-string": "^1.5.2",
16
16
  "color-string": "^1.9.0",
17
17
  "side-effect-manager": "^0.1.5",
package/src/index.ts CHANGED
@@ -22,11 +22,15 @@ export { SlidePreviewer, default as previewSlide } from "./SlidePreviewer";
22
22
 
23
23
  export type { Attributes, AddHooks, FreezableSlide };
24
24
 
25
+ export const version = "0.0.41";
26
+
25
27
  export { DefaultUrl, apps, FreezerLength, addHooks };
26
28
 
27
29
  const SlideApp: NetlessApp<Attributes> = {
28
30
  kind: "Slide",
29
31
  setup(context) {
32
+ console.log("[Slide] setup @ " + version);
33
+
30
34
  if (context.getIsWritable()) {
31
35
  ensureAttributes(context, EmptyAttributes);
32
36
  }
@@ -44,6 +48,11 @@ const SlideApp: NetlessApp<Attributes> = {
44
48
 
45
49
  const box = context.getBox();
46
50
  box.mountStyles(styles);
51
+ try {
52
+ box.$content.dataset.appSlideVersion = version;
53
+ } catch {
54
+ // ignore
55
+ }
47
56
 
48
57
  // must exist because of view
49
58
  const baseScenePath = context.getInitScenePath() as string;