@player-ui/types 0.4.0-next.5 → 0.4.0-next.6
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.d.ts +16 -3
- package/dist/xlr/Asset.json +40 -0
- package/dist/xlr/AssetBinding.json +23 -0
- package/dist/xlr/AssetSwitch.json +213 -0
- package/dist/xlr/AssetWrapper.json +34 -0
- package/dist/xlr/AssetWrapperOrSwitch.json +304 -0
- package/dist/xlr/Binding.json +7 -0
- package/dist/xlr/BindingRef.json +7 -0
- package/dist/xlr/DataModel.json +13 -0
- package/dist/xlr/DynamicSwitch.json +96 -0
- package/dist/xlr/Expression.json +21 -0
- package/dist/xlr/ExpressionObject.json +19 -0
- package/dist/xlr/ExpressionRef.json +7 -0
- package/dist/xlr/Flow.json +2145 -0
- package/dist/xlr/FlowResult.json +131 -0
- package/dist/xlr/Navigation.json +783 -0
- package/dist/xlr/NavigationBaseState.json +133 -0
- package/dist/xlr/NavigationFlow.json +746 -0
- package/dist/xlr/NavigationFlowActionState.json +120 -0
- package/dist/xlr/NavigationFlowEndState.json +110 -0
- package/dist/xlr/NavigationFlowExternalState.json +126 -0
- package/dist/xlr/NavigationFlowFlowState.json +125 -0
- package/dist/xlr/NavigationFlowState.json +627 -0
- package/dist/xlr/NavigationFlowTransition.json +12 -0
- package/dist/xlr/NavigationFlowTransitionableState.json +149 -0
- package/dist/xlr/NavigationFlowViewState.json +138 -0
- package/dist/xlr/StaticSwitch.json +96 -0
- package/dist/xlr/Switch.json +71 -0
- package/dist/xlr/SwitchCase.json +51 -0
- package/dist/xlr/Templatable.json +83 -0
- package/dist/xlr/Template.json +65 -0
- package/dist/xlr/View.json +166 -0
- package/dist/xlr/manifest.js +38 -0
- package/dist/xlr/manifest.json +38 -0
- package/package.json +1 -1
- package/src/index.ts +20 -4
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "core/types/src/index.ts",
|
|
3
|
+
"name": "NavigationFlowActionState",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"_comment": {
|
|
7
|
+
"required": false,
|
|
8
|
+
"node": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"title": "CommentBase._comment",
|
|
11
|
+
"description": "Add comments that will not be processing, but are useful for code explanation"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"state_type": {
|
|
15
|
+
"required": true,
|
|
16
|
+
"node": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"const": "ACTION",
|
|
19
|
+
"title": "NavigationBaseState.state_type",
|
|
20
|
+
"description": "A property to determine the type of state this is"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"onStart": {
|
|
24
|
+
"required": false,
|
|
25
|
+
"node": {
|
|
26
|
+
"type": "or",
|
|
27
|
+
"or": [
|
|
28
|
+
{
|
|
29
|
+
"type": "ref",
|
|
30
|
+
"ref": "Expression",
|
|
31
|
+
"title": "NavigationBaseState.onStart"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"source": "core/types/src/index.ts",
|
|
35
|
+
"name": "ExpressionObject",
|
|
36
|
+
"type": "object",
|
|
37
|
+
"properties": {
|
|
38
|
+
"exp": {
|
|
39
|
+
"required": false,
|
|
40
|
+
"node": {
|
|
41
|
+
"type": "ref",
|
|
42
|
+
"ref": "Expression",
|
|
43
|
+
"title": "ExpressionObject.exp",
|
|
44
|
+
"description": "The expression to run"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"title": "ExpressionObject",
|
|
50
|
+
"description": "An object with an expression in it"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"title": "NavigationBaseState.onStart",
|
|
54
|
+
"description": "An optional expression to run when this view renders"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"onEnd": {
|
|
58
|
+
"required": false,
|
|
59
|
+
"node": {
|
|
60
|
+
"type": "or",
|
|
61
|
+
"or": [
|
|
62
|
+
{
|
|
63
|
+
"type": "ref",
|
|
64
|
+
"ref": "Expression",
|
|
65
|
+
"title": "NavigationBaseState.onEnd"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"source": "core/types/src/index.ts",
|
|
69
|
+
"name": "ExpressionObject",
|
|
70
|
+
"type": "object",
|
|
71
|
+
"properties": {
|
|
72
|
+
"exp": {
|
|
73
|
+
"required": false,
|
|
74
|
+
"node": {
|
|
75
|
+
"type": "ref",
|
|
76
|
+
"ref": "Expression",
|
|
77
|
+
"title": "ExpressionObject.exp",
|
|
78
|
+
"description": "The expression to run"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"additionalProperties": false,
|
|
83
|
+
"title": "ExpressionObject",
|
|
84
|
+
"description": "An object with an expression in it"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"title": "NavigationBaseState.onEnd",
|
|
88
|
+
"description": "An optional expression to run before view transition"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"exp": {
|
|
92
|
+
"required": true,
|
|
93
|
+
"node": {
|
|
94
|
+
"type": "ref",
|
|
95
|
+
"ref": "Expression",
|
|
96
|
+
"title": "NavigationFlowActionState.exp",
|
|
97
|
+
"description": "An expression to execute.\nThe return value determines the transition to take"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"transitions": {
|
|
101
|
+
"required": true,
|
|
102
|
+
"node": {
|
|
103
|
+
"source": "core/types/src/index.ts",
|
|
104
|
+
"name": "NavigationFlowTransition",
|
|
105
|
+
"type": "record",
|
|
106
|
+
"keyType": {
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"valueType": {
|
|
110
|
+
"type": "string"
|
|
111
|
+
},
|
|
112
|
+
"title": "NavigationFlowTransitionableState.transitions",
|
|
113
|
+
"description": "A mapping of transition-name to FlowState name"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"title": "NavigationFlowActionState",
|
|
119
|
+
"description": "Action states execute an expression to determine the next state to transition to"
|
|
120
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "core/types/src/index.ts",
|
|
3
|
+
"name": "NavigationFlowEndState",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"_comment": {
|
|
7
|
+
"required": false,
|
|
8
|
+
"node": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"title": "CommentBase._comment",
|
|
11
|
+
"description": "Add comments that will not be processing, but are useful for code explanation"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"state_type": {
|
|
15
|
+
"required": true,
|
|
16
|
+
"node": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"const": "END",
|
|
19
|
+
"title": "NavigationBaseState.state_type",
|
|
20
|
+
"description": "A property to determine the type of state this is"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"onStart": {
|
|
24
|
+
"required": false,
|
|
25
|
+
"node": {
|
|
26
|
+
"type": "or",
|
|
27
|
+
"or": [
|
|
28
|
+
{
|
|
29
|
+
"type": "ref",
|
|
30
|
+
"ref": "Expression",
|
|
31
|
+
"title": "NavigationBaseState.onStart"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"source": "core/types/src/index.ts",
|
|
35
|
+
"name": "ExpressionObject",
|
|
36
|
+
"type": "object",
|
|
37
|
+
"properties": {
|
|
38
|
+
"exp": {
|
|
39
|
+
"required": false,
|
|
40
|
+
"node": {
|
|
41
|
+
"type": "ref",
|
|
42
|
+
"ref": "Expression",
|
|
43
|
+
"title": "ExpressionObject.exp",
|
|
44
|
+
"description": "The expression to run"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"title": "ExpressionObject",
|
|
50
|
+
"description": "An object with an expression in it"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"title": "NavigationBaseState.onStart",
|
|
54
|
+
"description": "An optional expression to run when this view renders"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"onEnd": {
|
|
58
|
+
"required": false,
|
|
59
|
+
"node": {
|
|
60
|
+
"type": "or",
|
|
61
|
+
"or": [
|
|
62
|
+
{
|
|
63
|
+
"type": "ref",
|
|
64
|
+
"ref": "Expression",
|
|
65
|
+
"title": "NavigationBaseState.onEnd"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"source": "core/types/src/index.ts",
|
|
69
|
+
"name": "ExpressionObject",
|
|
70
|
+
"type": "object",
|
|
71
|
+
"properties": {
|
|
72
|
+
"exp": {
|
|
73
|
+
"required": false,
|
|
74
|
+
"node": {
|
|
75
|
+
"type": "ref",
|
|
76
|
+
"ref": "Expression",
|
|
77
|
+
"title": "ExpressionObject.exp",
|
|
78
|
+
"description": "The expression to run"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"additionalProperties": false,
|
|
83
|
+
"title": "ExpressionObject",
|
|
84
|
+
"description": "An object with an expression in it"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"title": "NavigationBaseState.onEnd",
|
|
88
|
+
"description": "An optional expression to run before view transition"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"exp": {
|
|
92
|
+
"required": false,
|
|
93
|
+
"node": {
|
|
94
|
+
"title": "NavigationBaseState.exp",
|
|
95
|
+
"type": "never"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"outcome": {
|
|
99
|
+
"required": true,
|
|
100
|
+
"node": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"title": "NavigationFlowEndState.outcome",
|
|
103
|
+
"description": "A description of _how_ the flow ended.\nIf this is a flow started from another flow, the outcome determines the flow transition"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"additionalProperties": false,
|
|
108
|
+
"title": "NavigationFlowEndState",
|
|
109
|
+
"description": "An END state of the flow."
|
|
110
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "core/types/src/index.ts",
|
|
3
|
+
"name": "NavigationFlowExternalState",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"_comment": {
|
|
7
|
+
"required": false,
|
|
8
|
+
"node": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"title": "CommentBase._comment",
|
|
11
|
+
"description": "Add comments that will not be processing, but are useful for code explanation"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"state_type": {
|
|
15
|
+
"required": true,
|
|
16
|
+
"node": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"const": "EXTERNAL",
|
|
19
|
+
"title": "NavigationBaseState.state_type",
|
|
20
|
+
"description": "A property to determine the type of state this is"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"onStart": {
|
|
24
|
+
"required": false,
|
|
25
|
+
"node": {
|
|
26
|
+
"type": "or",
|
|
27
|
+
"or": [
|
|
28
|
+
{
|
|
29
|
+
"type": "ref",
|
|
30
|
+
"ref": "Expression",
|
|
31
|
+
"title": "NavigationBaseState.onStart"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"source": "core/types/src/index.ts",
|
|
35
|
+
"name": "ExpressionObject",
|
|
36
|
+
"type": "object",
|
|
37
|
+
"properties": {
|
|
38
|
+
"exp": {
|
|
39
|
+
"required": false,
|
|
40
|
+
"node": {
|
|
41
|
+
"type": "ref",
|
|
42
|
+
"ref": "Expression",
|
|
43
|
+
"title": "ExpressionObject.exp",
|
|
44
|
+
"description": "The expression to run"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"title": "ExpressionObject",
|
|
50
|
+
"description": "An object with an expression in it"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"title": "NavigationBaseState.onStart",
|
|
54
|
+
"description": "An optional expression to run when this view renders"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"onEnd": {
|
|
58
|
+
"required": false,
|
|
59
|
+
"node": {
|
|
60
|
+
"type": "or",
|
|
61
|
+
"or": [
|
|
62
|
+
{
|
|
63
|
+
"type": "ref",
|
|
64
|
+
"ref": "Expression",
|
|
65
|
+
"title": "NavigationBaseState.onEnd"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"source": "core/types/src/index.ts",
|
|
69
|
+
"name": "ExpressionObject",
|
|
70
|
+
"type": "object",
|
|
71
|
+
"properties": {
|
|
72
|
+
"exp": {
|
|
73
|
+
"required": false,
|
|
74
|
+
"node": {
|
|
75
|
+
"type": "ref",
|
|
76
|
+
"ref": "Expression",
|
|
77
|
+
"title": "ExpressionObject.exp",
|
|
78
|
+
"description": "The expression to run"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"additionalProperties": false,
|
|
83
|
+
"title": "ExpressionObject",
|
|
84
|
+
"description": "An object with an expression in it"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"title": "NavigationBaseState.onEnd",
|
|
88
|
+
"description": "An optional expression to run before view transition"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"exp": {
|
|
92
|
+
"required": false,
|
|
93
|
+
"node": {
|
|
94
|
+
"title": "NavigationBaseState.exp",
|
|
95
|
+
"type": "never"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"transitions": {
|
|
99
|
+
"required": true,
|
|
100
|
+
"node": {
|
|
101
|
+
"source": "core/types/src/index.ts",
|
|
102
|
+
"name": "NavigationFlowTransition",
|
|
103
|
+
"type": "record",
|
|
104
|
+
"keyType": {
|
|
105
|
+
"type": "string"
|
|
106
|
+
},
|
|
107
|
+
"valueType": {
|
|
108
|
+
"type": "string"
|
|
109
|
+
},
|
|
110
|
+
"title": "NavigationFlowTransitionableState.transitions",
|
|
111
|
+
"description": "A mapping of transition-name to FlowState name"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"ref": {
|
|
115
|
+
"required": true,
|
|
116
|
+
"node": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"title": "NavigationFlowExternalState.ref",
|
|
119
|
+
"description": "A reference for this external state"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"additionalProperties": false,
|
|
124
|
+
"title": "NavigationFlowExternalState",
|
|
125
|
+
"description": "External Flow states represent states in the FSM that can't be resolved internally in Player.\nThe flow will wait for the embedded application to manage moving to the next state via a transition"
|
|
126
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "core/types/src/index.ts",
|
|
3
|
+
"name": "NavigationFlowFlowState",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"_comment": {
|
|
7
|
+
"required": false,
|
|
8
|
+
"node": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"title": "CommentBase._comment",
|
|
11
|
+
"description": "Add comments that will not be processing, but are useful for code explanation"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"state_type": {
|
|
15
|
+
"required": true,
|
|
16
|
+
"node": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"const": "FLOW",
|
|
19
|
+
"title": "NavigationBaseState.state_type",
|
|
20
|
+
"description": "A property to determine the type of state this is"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"onStart": {
|
|
24
|
+
"required": false,
|
|
25
|
+
"node": {
|
|
26
|
+
"type": "or",
|
|
27
|
+
"or": [
|
|
28
|
+
{
|
|
29
|
+
"type": "ref",
|
|
30
|
+
"ref": "Expression",
|
|
31
|
+
"title": "NavigationBaseState.onStart"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"source": "core/types/src/index.ts",
|
|
35
|
+
"name": "ExpressionObject",
|
|
36
|
+
"type": "object",
|
|
37
|
+
"properties": {
|
|
38
|
+
"exp": {
|
|
39
|
+
"required": false,
|
|
40
|
+
"node": {
|
|
41
|
+
"type": "ref",
|
|
42
|
+
"ref": "Expression",
|
|
43
|
+
"title": "ExpressionObject.exp",
|
|
44
|
+
"description": "The expression to run"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"title": "ExpressionObject",
|
|
50
|
+
"description": "An object with an expression in it"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"title": "NavigationBaseState.onStart",
|
|
54
|
+
"description": "An optional expression to run when this view renders"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"onEnd": {
|
|
58
|
+
"required": false,
|
|
59
|
+
"node": {
|
|
60
|
+
"type": "or",
|
|
61
|
+
"or": [
|
|
62
|
+
{
|
|
63
|
+
"type": "ref",
|
|
64
|
+
"ref": "Expression",
|
|
65
|
+
"title": "NavigationBaseState.onEnd"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"source": "core/types/src/index.ts",
|
|
69
|
+
"name": "ExpressionObject",
|
|
70
|
+
"type": "object",
|
|
71
|
+
"properties": {
|
|
72
|
+
"exp": {
|
|
73
|
+
"required": false,
|
|
74
|
+
"node": {
|
|
75
|
+
"type": "ref",
|
|
76
|
+
"ref": "Expression",
|
|
77
|
+
"title": "ExpressionObject.exp",
|
|
78
|
+
"description": "The expression to run"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"additionalProperties": false,
|
|
83
|
+
"title": "ExpressionObject",
|
|
84
|
+
"description": "An object with an expression in it"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"title": "NavigationBaseState.onEnd",
|
|
88
|
+
"description": "An optional expression to run before view transition"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"exp": {
|
|
92
|
+
"required": false,
|
|
93
|
+
"node": {
|
|
94
|
+
"title": "NavigationBaseState.exp",
|
|
95
|
+
"type": "never"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"transitions": {
|
|
99
|
+
"required": true,
|
|
100
|
+
"node": {
|
|
101
|
+
"source": "core/types/src/index.ts",
|
|
102
|
+
"name": "NavigationFlowTransition",
|
|
103
|
+
"type": "record",
|
|
104
|
+
"keyType": {
|
|
105
|
+
"type": "string"
|
|
106
|
+
},
|
|
107
|
+
"valueType": {
|
|
108
|
+
"type": "string"
|
|
109
|
+
},
|
|
110
|
+
"title": "NavigationFlowTransitionableState.transitions",
|
|
111
|
+
"description": "A mapping of transition-name to FlowState name"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"ref": {
|
|
115
|
+
"required": true,
|
|
116
|
+
"node": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"title": "NavigationFlowFlowState.ref",
|
|
119
|
+
"description": "A reference to a FLOW id state to run"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"additionalProperties": false,
|
|
124
|
+
"title": "NavigationFlowFlowState"
|
|
125
|
+
}
|