@movable/studio-framework 3.5.1 → 3.5.2
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/index.es.js +7 -0
- package/dist/index.js +7 -0
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -3070,6 +3070,12 @@ class StudioFramework {
|
|
|
3070
3070
|
CD.resume();
|
|
3071
3071
|
}
|
|
3072
3072
|
|
|
3073
|
+
logCurrentCanvas(currentCanvas) {
|
|
3074
|
+
if (window.MICapture?.setCanvasKey) {
|
|
3075
|
+
window.MICapture.setCanvasKey(currentCanvas.name);
|
|
3076
|
+
}
|
|
3077
|
+
}
|
|
3078
|
+
|
|
3073
3079
|
async render(targetElement) {
|
|
3074
3080
|
if (window.MICapture?.isPreview) console.log('Preview Render');
|
|
3075
3081
|
let currentCanvas;
|
|
@@ -3077,6 +3083,7 @@ class StudioFramework {
|
|
|
3077
3083
|
try {
|
|
3078
3084
|
CD.pause();
|
|
3079
3085
|
currentCanvas = await this.getCurrentCanvas();
|
|
3086
|
+
this.logCurrentCanvas(currentCanvas);
|
|
3080
3087
|
const clickthroughURL = await this.handleClickthrough(currentCanvas);
|
|
3081
3088
|
const canvasTags = currentCanvas?.tags || [];
|
|
3082
3089
|
const tags = await this.getCurrentTags(canvasTags, currentCanvas);
|
package/dist/index.js
CHANGED
|
@@ -3080,6 +3080,12 @@ class StudioFramework {
|
|
|
3080
3080
|
CD__default['default'].resume();
|
|
3081
3081
|
}
|
|
3082
3082
|
|
|
3083
|
+
logCurrentCanvas(currentCanvas) {
|
|
3084
|
+
if (window.MICapture?.setCanvasKey) {
|
|
3085
|
+
window.MICapture.setCanvasKey(currentCanvas.name);
|
|
3086
|
+
}
|
|
3087
|
+
}
|
|
3088
|
+
|
|
3083
3089
|
async render(targetElement) {
|
|
3084
3090
|
if (window.MICapture?.isPreview) console.log('Preview Render');
|
|
3085
3091
|
let currentCanvas;
|
|
@@ -3087,6 +3093,7 @@ class StudioFramework {
|
|
|
3087
3093
|
try {
|
|
3088
3094
|
CD__default['default'].pause();
|
|
3089
3095
|
currentCanvas = await this.getCurrentCanvas();
|
|
3096
|
+
this.logCurrentCanvas(currentCanvas);
|
|
3090
3097
|
const clickthroughURL = await this.handleClickthrough(currentCanvas);
|
|
3091
3098
|
const canvasTags = currentCanvas?.tags || [];
|
|
3092
3099
|
const tags = await this.getCurrentTags(canvasTags, currentCanvas);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@movable/studio-framework",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.2",
|
|
4
4
|
"description": "A Component library for reactive Studio apps.",
|
|
5
5
|
"author": "Movable Ink",
|
|
6
6
|
"repository": "movableink/studio-framework",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"@babel/preset-react": "^7.14.5",
|
|
32
32
|
"@babel/preset-typescript": "^7.13.0",
|
|
33
33
|
"@movable/eslint-config-react": "^1.0.1",
|
|
34
|
-
"@movable/framework-types": "^3.5.
|
|
35
|
-
"@movable/studio-framework-test-helpers": "^3.5.
|
|
34
|
+
"@movable/framework-types": "^3.5.2",
|
|
35
|
+
"@movable/studio-framework-test-helpers": "^3.5.2",
|
|
36
36
|
"@types/qunit": "^2.11.1",
|
|
37
37
|
"@types/qunit-dom": "^0.7.0",
|
|
38
38
|
"@types/react": "^17.0.6",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"volta": {
|
|
67
67
|
"extends": "../../package.json"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "e146b839b3e0b887a31eace3d0daf4b16cc1b128"
|
|
70
70
|
}
|