@player-ui/shared-constants-plugin 0.3.0-next.3 → 0.3.0-next.4
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 +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var player = require('@player-ui/player');
|
|
6
6
|
var get = require('dlv');
|
|
7
7
|
|
|
8
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -16,7 +16,7 @@ class ConstantsPlugin {
|
|
|
16
16
|
var _a, _b;
|
|
17
17
|
this.data = params.data;
|
|
18
18
|
this.namespace = (_a = params.namespace) != null ? _a : "constants";
|
|
19
|
-
this.dataPath = new
|
|
19
|
+
this.dataPath = new player.BindingInstance((_b = params.dataPath) != null ? _b : ["data", "constants"]);
|
|
20
20
|
}
|
|
21
21
|
apply(player) {
|
|
22
22
|
const updatePlayerConstants = () => player.constantsController.addConstants(this.data, this.namespace);
|
package/dist/index.esm.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@player-ui/shared-constants-plugin",
|
|
3
|
-
"version": "0.3.0-next.
|
|
3
|
+
"version": "0.3.0-next.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
7
7
|
},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@player-ui/player": "0.3.0-next.
|
|
9
|
+
"@player-ui/player": "0.3.0-next.4"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"tapable-ts": "^0.1.0",
|
package/src/index.ts
CHANGED