@player-ui/shared-constants-plugin 0.4.0-next.7 → 0.4.0-next.9
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.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/package.json +10 -2
- package/src/index.ts +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -26,11 +26,11 @@ class ConstantsPlugin {
|
|
|
26
26
|
this.updatePlayerConstants.add(updatePlayerConstants);
|
|
27
27
|
updatePlayerConstants();
|
|
28
28
|
const tempData = (_a = get__default["default"](flowObj, this.dataPath.asString())) != null ? _a : {};
|
|
29
|
-
player.constantsController.clearTemporaryValues();
|
|
29
|
+
player.constantsController.clearTemporaryValues(this.namespace);
|
|
30
30
|
player.constantsController.setTemporaryValues(tempData, this.namespace);
|
|
31
31
|
});
|
|
32
32
|
player.hooks.onEnd.tap(this.name, () => {
|
|
33
|
-
player.constantsController.clearTemporaryValues();
|
|
33
|
+
player.constantsController.clearTemporaryValues(this.namespace);
|
|
34
34
|
this.updatePlayerConstants.delete(updatePlayerConstants);
|
|
35
35
|
});
|
|
36
36
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -18,11 +18,11 @@ class ConstantsPlugin {
|
|
|
18
18
|
this.updatePlayerConstants.add(updatePlayerConstants);
|
|
19
19
|
updatePlayerConstants();
|
|
20
20
|
const tempData = (_a = get(flowObj, this.dataPath.asString())) != null ? _a : {};
|
|
21
|
-
player.constantsController.clearTemporaryValues();
|
|
21
|
+
player.constantsController.clearTemporaryValues(this.namespace);
|
|
22
22
|
player.constantsController.setTemporaryValues(tempData, this.namespace);
|
|
23
23
|
});
|
|
24
24
|
player.hooks.onEnd.tap(this.name, () => {
|
|
25
|
-
player.constantsController.clearTemporaryValues();
|
|
25
|
+
player.constantsController.clearTemporaryValues(this.namespace);
|
|
26
26
|
this.updatePlayerConstants.delete(updatePlayerConstants);
|
|
27
27
|
});
|
|
28
28
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@player-ui/shared-constants-plugin",
|
|
3
|
-
"version": "0.4.0-next.
|
|
3
|
+
"version": "0.4.0-next.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
7
7
|
},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@player-ui/player": "0.4.0-next.
|
|
9
|
+
"@player-ui/player": "0.4.0-next.9"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"tapable-ts": "^0.2.3",
|
|
@@ -54,6 +54,14 @@
|
|
|
54
54
|
{
|
|
55
55
|
"name": "Kelly Harrop",
|
|
56
56
|
"url": "https://github.com/kharrop"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "Alejandro Fimbres",
|
|
60
|
+
"url": "https://github.com/lexfm"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "Rafael Campos",
|
|
64
|
+
"url": "https://github.com/rafbcampos"
|
|
57
65
|
}
|
|
58
66
|
]
|
|
59
67
|
}
|
package/src/index.ts
CHANGED
|
@@ -61,12 +61,12 @@ export class ConstantsPlugin implements PlayerPlugin {
|
|
|
61
61
|
updatePlayerConstants();
|
|
62
62
|
|
|
63
63
|
const tempData = get(flowObj, this.dataPath.asString()) ?? {};
|
|
64
|
-
player.constantsController.clearTemporaryValues();
|
|
64
|
+
player.constantsController.clearTemporaryValues(this.namespace);
|
|
65
65
|
player.constantsController.setTemporaryValues(tempData, this.namespace);
|
|
66
66
|
});
|
|
67
67
|
// Clear flow specific overrides at the end of the flow and remove strong ref to player
|
|
68
68
|
player.hooks.onEnd.tap(this.name, () => {
|
|
69
|
-
player.constantsController.clearTemporaryValues();
|
|
69
|
+
player.constantsController.clearTemporaryValues(this.namespace);
|
|
70
70
|
|
|
71
71
|
this.updatePlayerConstants.delete(updatePlayerConstants);
|
|
72
72
|
});
|