@player-ui/types 0.3.1-next.1 → 0.4.0--canary.85.4368
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/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 +1411 -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
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "core/types/src/index.ts",
|
|
3
|
+
"name": "View",
|
|
4
|
+
"type": "conditional",
|
|
5
|
+
"check": {
|
|
6
|
+
"left": {
|
|
7
|
+
"type": "unknown"
|
|
8
|
+
},
|
|
9
|
+
"right": {
|
|
10
|
+
"type": "ref",
|
|
11
|
+
"ref": "Asset",
|
|
12
|
+
"property": "validation"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"value": {
|
|
16
|
+
"true": {
|
|
17
|
+
"type": "and",
|
|
18
|
+
"and": [
|
|
19
|
+
{
|
|
20
|
+
"type": "ref",
|
|
21
|
+
"ref": "T"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "object",
|
|
25
|
+
"properties": {
|
|
26
|
+
"validation": {
|
|
27
|
+
"required": false,
|
|
28
|
+
"node": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"elementType": {
|
|
31
|
+
"name": "CrossfieldReference",
|
|
32
|
+
"type": "object",
|
|
33
|
+
"properties": {
|
|
34
|
+
"type": {
|
|
35
|
+
"required": true,
|
|
36
|
+
"node": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"title": "Reference.type",
|
|
39
|
+
"description": "The name of the referenced validation type\nThis will be used to lookup the proper handler"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"message": {
|
|
43
|
+
"required": false,
|
|
44
|
+
"node": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"title": "Reference.message",
|
|
47
|
+
"description": "An optional means of overriding the default message if the validation is triggered"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"severity": {
|
|
51
|
+
"required": false,
|
|
52
|
+
"node": {
|
|
53
|
+
"name": "Severity",
|
|
54
|
+
"type": "or",
|
|
55
|
+
"or": [
|
|
56
|
+
{
|
|
57
|
+
"type": "string",
|
|
58
|
+
"const": "error"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"type": "string",
|
|
62
|
+
"const": "warning"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"title": "Reference.severity",
|
|
66
|
+
"description": "An optional means of overriding the default severity of the validation if triggered"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"trigger": {
|
|
70
|
+
"required": false,
|
|
71
|
+
"node": {
|
|
72
|
+
"name": "Trigger",
|
|
73
|
+
"type": "or",
|
|
74
|
+
"or": [
|
|
75
|
+
{
|
|
76
|
+
"type": "string",
|
|
77
|
+
"const": "navigation"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"type": "string",
|
|
81
|
+
"const": "change"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"type": "string",
|
|
85
|
+
"const": "load"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"title": "Reference.trigger",
|
|
89
|
+
"description": "When to run this particular validation"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"dataTarget": {
|
|
93
|
+
"required": false,
|
|
94
|
+
"node": {
|
|
95
|
+
"type": "never",
|
|
96
|
+
"title": "CrossfieldReference.dataTarget",
|
|
97
|
+
"description": "Cross-field references and validation must run against the default (deformatted) value"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"displayTarget": {
|
|
101
|
+
"required": false,
|
|
102
|
+
"node": {
|
|
103
|
+
"name": "DisplayTarget",
|
|
104
|
+
"type": "or",
|
|
105
|
+
"or": [
|
|
106
|
+
{
|
|
107
|
+
"type": "string",
|
|
108
|
+
"const": "page"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"type": "string",
|
|
112
|
+
"const": "section"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"type": "string",
|
|
116
|
+
"const": "field"
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"title": "Reference.displayTarget",
|
|
120
|
+
"description": "Where the error should be displayed"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"ref": {
|
|
124
|
+
"required": false,
|
|
125
|
+
"node": {
|
|
126
|
+
"type": "ref",
|
|
127
|
+
"ref": "Binding",
|
|
128
|
+
"title": "CrossfieldReference.ref",
|
|
129
|
+
"description": "The binding to associate this validation with"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"additionalProperties": {
|
|
134
|
+
"type": "unknown"
|
|
135
|
+
},
|
|
136
|
+
"title": "CrossfieldReference"
|
|
137
|
+
},
|
|
138
|
+
"title": "validation",
|
|
139
|
+
"description": "Each view can optionally supply a list of validations to run against a particular view"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"additionalProperties": false
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
"false": {
|
|
148
|
+
"type": "ref",
|
|
149
|
+
"ref": "T"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"title": "View",
|
|
153
|
+
"genericTokens": [
|
|
154
|
+
{
|
|
155
|
+
"symbol": "T",
|
|
156
|
+
"constraints": {
|
|
157
|
+
"type": "ref",
|
|
158
|
+
"ref": "Asset"
|
|
159
|
+
},
|
|
160
|
+
"default": {
|
|
161
|
+
"type": "ref",
|
|
162
|
+
"ref": "Asset"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const Asset = require('./Asset.json')
|
|
2
|
+
const AssetBinding = require('./AssetBinding.json')
|
|
3
|
+
const SwitchCase = require('./SwitchCase.json')
|
|
4
|
+
const Switch = require('./Switch.json')
|
|
5
|
+
const AssetWrapper = require('./AssetWrapper.json')
|
|
6
|
+
const AssetWrapperOrSwitch = require('./AssetWrapperOrSwitch.json')
|
|
7
|
+
const AssetSwitch = require('./AssetSwitch.json')
|
|
8
|
+
const StaticSwitch = require('./StaticSwitch.json')
|
|
9
|
+
const DynamicSwitch = require('./DynamicSwitch.json')
|
|
10
|
+
const Expression = require('./Expression.json')
|
|
11
|
+
const ExpressionRef = require('./ExpressionRef.json')
|
|
12
|
+
const Binding = require('./Binding.json')
|
|
13
|
+
const BindingRef = require('./BindingRef.json')
|
|
14
|
+
const DataModel = require('./DataModel.json')
|
|
15
|
+
const Navigation = require('./Navigation.json')
|
|
16
|
+
const ExpressionObject = require('./ExpressionObject.json')
|
|
17
|
+
const NavigationFlow = require('./NavigationFlow.json')
|
|
18
|
+
const NavigationFlowTransition = require('./NavigationFlowTransition.json')
|
|
19
|
+
const NavigationBaseState = require('./NavigationBaseState.json')
|
|
20
|
+
const NavigationFlowTransitionableState = require('./NavigationFlowTransitionableState.json')
|
|
21
|
+
const NavigationFlowViewState = require('./NavigationFlowViewState.json')
|
|
22
|
+
const NavigationFlowEndState = require('./NavigationFlowEndState.json')
|
|
23
|
+
const NavigationFlowActionState = require('./NavigationFlowActionState.json')
|
|
24
|
+
const NavigationFlowExternalState = require('./NavigationFlowExternalState.json')
|
|
25
|
+
const NavigationFlowFlowState = require('./NavigationFlowFlowState.json')
|
|
26
|
+
const NavigationFlowState = require('./NavigationFlowState.json')
|
|
27
|
+
const FlowResult = require('./FlowResult.json')
|
|
28
|
+
const Templatable = require('./Templatable.json')
|
|
29
|
+
const Template = require('./Template.json')
|
|
30
|
+
const View = require('./View.json')
|
|
31
|
+
const Flow = require('./Flow.json')
|
|
32
|
+
|
|
33
|
+
module.exports = {
|
|
34
|
+
"pluginName": "Types",
|
|
35
|
+
"capabilities": {
|
|
36
|
+
"Types":[Asset,AssetBinding,SwitchCase,Switch,AssetWrapper,AssetWrapperOrSwitch,AssetSwitch,StaticSwitch,DynamicSwitch,Expression,ExpressionRef,Binding,BindingRef,DataModel,Navigation,ExpressionObject,NavigationFlow,NavigationFlowTransition,NavigationBaseState,NavigationFlowTransitionableState,NavigationFlowViewState,NavigationFlowEndState,NavigationFlowActionState,NavigationFlowExternalState,NavigationFlowFlowState,NavigationFlowState,FlowResult,Templatable,Template,View,Flow],
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pluginName": "Types",
|
|
3
|
+
"capabilities": {
|
|
4
|
+
"Types": [
|
|
5
|
+
"Asset",
|
|
6
|
+
"AssetBinding",
|
|
7
|
+
"SwitchCase",
|
|
8
|
+
"Switch",
|
|
9
|
+
"AssetWrapper",
|
|
10
|
+
"AssetWrapperOrSwitch",
|
|
11
|
+
"AssetSwitch",
|
|
12
|
+
"StaticSwitch",
|
|
13
|
+
"DynamicSwitch",
|
|
14
|
+
"Expression",
|
|
15
|
+
"ExpressionRef",
|
|
16
|
+
"Binding",
|
|
17
|
+
"BindingRef",
|
|
18
|
+
"DataModel",
|
|
19
|
+
"Navigation",
|
|
20
|
+
"ExpressionObject",
|
|
21
|
+
"NavigationFlow",
|
|
22
|
+
"NavigationFlowTransition",
|
|
23
|
+
"NavigationBaseState",
|
|
24
|
+
"NavigationFlowTransitionableState",
|
|
25
|
+
"NavigationFlowViewState",
|
|
26
|
+
"NavigationFlowEndState",
|
|
27
|
+
"NavigationFlowActionState",
|
|
28
|
+
"NavigationFlowExternalState",
|
|
29
|
+
"NavigationFlowFlowState",
|
|
30
|
+
"NavigationFlowState",
|
|
31
|
+
"FlowResult",
|
|
32
|
+
"Templatable",
|
|
33
|
+
"Template",
|
|
34
|
+
"View",
|
|
35
|
+
"Flow"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
}
|