@player-ui/player 0.11.0-next.4 → 0.11.0-next.5
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/Player.native.js +2 -2
- package/dist/Player.native.js.map +1 -1
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.legacy-esm.js +3 -3
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/player.ts +9 -2
- package/types/player.d.ts +4 -0
package/package.json
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"types"
|
|
7
7
|
],
|
|
8
8
|
"name": "@player-ui/player",
|
|
9
|
-
"version": "0.11.0-next.
|
|
9
|
+
"version": "0.11.0-next.5",
|
|
10
10
|
"main": "dist/cjs/index.cjs",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@player-ui/partial-match-registry": "0.11.0-next.
|
|
13
|
-
"@player-ui/make-flow": "0.11.0-next.
|
|
14
|
-
"@player-ui/types": "0.11.0-next.
|
|
12
|
+
"@player-ui/partial-match-registry": "0.11.0-next.5",
|
|
13
|
+
"@player-ui/make-flow": "0.11.0-next.5",
|
|
14
|
+
"@player-ui/types": "0.11.0-next.5",
|
|
15
15
|
"@types/dlv": "^1.1.4",
|
|
16
16
|
"dequal": "^2.0.2",
|
|
17
17
|
"dlv": "^1.1.3",
|
package/src/player.ts
CHANGED
|
@@ -30,9 +30,16 @@ import type {
|
|
|
30
30
|
import { NOT_STARTED_STATE } from "./types";
|
|
31
31
|
import { DefaultViewPlugin } from "./plugins/default-view-plugin";
|
|
32
32
|
|
|
33
|
+
declare global {
|
|
34
|
+
const __VERSION__: string;
|
|
35
|
+
const __GIT_COMMIT__: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
33
38
|
// Variables injected at build time
|
|
34
|
-
const PLAYER_VERSION =
|
|
35
|
-
|
|
39
|
+
const PLAYER_VERSION =
|
|
40
|
+
typeof __VERSION__ !== "undefined" ? __VERSION__ : "__VERSION__";
|
|
41
|
+
const COMMIT =
|
|
42
|
+
typeof __GIT_COMMIT__ !== "undefined" ? __GIT_COMMIT__ : "__GIT_COMMIT__";
|
|
36
43
|
|
|
37
44
|
export interface PlayerPlugin {
|
|
38
45
|
/**
|
package/types/player.d.ts
CHANGED
|
@@ -8,6 +8,10 @@ import { BindingParser } from "./binding";
|
|
|
8
8
|
import type { ViewInstance } from "./view";
|
|
9
9
|
import { ConstantsController, ViewController, DataController, ValidationController, FlowController } from "./controllers";
|
|
10
10
|
import type { PlayerFlowState, CompletedState } from "./types";
|
|
11
|
+
declare global {
|
|
12
|
+
const __VERSION__: string;
|
|
13
|
+
const __GIT_COMMIT__: string;
|
|
14
|
+
}
|
|
11
15
|
export interface PlayerPlugin {
|
|
12
16
|
/**
|
|
13
17
|
* Unique identifier of the plugin.
|