@player-ui/types 0.4.0 → 0.4.1-next.0

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.
Files changed (36) hide show
  1. package/dist/index.d.ts +24 -3
  2. package/dist/xlr/Asset.json +40 -0
  3. package/dist/xlr/AssetBinding.json +23 -0
  4. package/dist/xlr/AssetSwitch.json +213 -0
  5. package/dist/xlr/AssetWrapper.json +34 -0
  6. package/dist/xlr/AssetWrapperOrSwitch.json +304 -0
  7. package/dist/xlr/Binding.json +7 -0
  8. package/dist/xlr/BindingRef.json +7 -0
  9. package/dist/xlr/DataModel.json +13 -0
  10. package/dist/xlr/DynamicSwitch.json +96 -0
  11. package/dist/xlr/Expression.json +21 -0
  12. package/dist/xlr/ExpressionObject.json +19 -0
  13. package/dist/xlr/ExpressionRef.json +7 -0
  14. package/dist/xlr/Flow.json +2278 -0
  15. package/dist/xlr/FlowResult.json +131 -0
  16. package/dist/xlr/Navigation.json +783 -0
  17. package/dist/xlr/NavigationBaseState.json +133 -0
  18. package/dist/xlr/NavigationFlow.json +746 -0
  19. package/dist/xlr/NavigationFlowActionState.json +120 -0
  20. package/dist/xlr/NavigationFlowEndState.json +110 -0
  21. package/dist/xlr/NavigationFlowExternalState.json +126 -0
  22. package/dist/xlr/NavigationFlowFlowState.json +125 -0
  23. package/dist/xlr/NavigationFlowState.json +627 -0
  24. package/dist/xlr/NavigationFlowTransition.json +12 -0
  25. package/dist/xlr/NavigationFlowTransitionableState.json +149 -0
  26. package/dist/xlr/NavigationFlowViewState.json +138 -0
  27. package/dist/xlr/StaticSwitch.json +96 -0
  28. package/dist/xlr/Switch.json +71 -0
  29. package/dist/xlr/SwitchCase.json +51 -0
  30. package/dist/xlr/Templatable.json +83 -0
  31. package/dist/xlr/Template.json +65 -0
  32. package/dist/xlr/View.json +185 -0
  33. package/dist/xlr/manifest.js +41 -0
  34. package/dist/xlr/manifest.json +46 -0
  35. package/package.json +9 -1
  36. package/src/index.ts +29 -4
@@ -0,0 +1,7 @@
1
+ {
2
+ "source": "core/types/src/index.ts",
3
+ "name": "Binding",
4
+ "type": "string",
5
+ "title": "Binding",
6
+ "description": "Bindings describe locations in the data model."
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "source": "core/types/src/index.ts",
3
+ "name": "BindingRef",
4
+ "type": "template",
5
+ "format": "{{.*}}",
6
+ "title": "BindingRef"
7
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "source": "core/types/src/index.ts",
3
+ "name": "DataModel",
4
+ "type": "record",
5
+ "keyType": {
6
+ "type": "any"
7
+ },
8
+ "valueType": {
9
+ "type": "unknown"
10
+ },
11
+ "title": "DataModel",
12
+ "description": "The data-model is the location that all user data is stored"
13
+ }
@@ -0,0 +1,96 @@
1
+ {
2
+ "source": "core/types/src/index.ts",
3
+ "name": "DynamicSwitch",
4
+ "type": "object",
5
+ "properties": {
6
+ "dynamicSwitch": {
7
+ "required": true,
8
+ "node": {
9
+ "source": "core/types/src/index.ts",
10
+ "name": "Switch",
11
+ "type": "array",
12
+ "elementType": {
13
+ "source": "core/types/src/index.ts",
14
+ "name": "SwitchCase",
15
+ "type": "object",
16
+ "properties": {
17
+ "asset": {
18
+ "required": true,
19
+ "node": {
20
+ "type": "ref",
21
+ "ref": "T",
22
+ "title": "SwitchCase.asset",
23
+ "description": "The Asset to use if this case is applicable"
24
+ }
25
+ },
26
+ "case": {
27
+ "required": true,
28
+ "node": {
29
+ "type": "or",
30
+ "or": [
31
+ {
32
+ "type": "ref",
33
+ "ref": "Expression",
34
+ "title": "SwitchCase.case"
35
+ },
36
+ {
37
+ "type": "boolean",
38
+ "const": true
39
+ }
40
+ ],
41
+ "title": "SwitchCase.case",
42
+ "description": "An expression to execute to determine if this case applies"
43
+ }
44
+ }
45
+ },
46
+ "additionalProperties": false,
47
+ "title": "SwitchCase",
48
+ "description": "A single case statement to use in a switch",
49
+ "genericTokens": [
50
+ {
51
+ "symbol": "T",
52
+ "constraints": {
53
+ "type": "ref",
54
+ "ref": "Asset"
55
+ },
56
+ "default": {
57
+ "type": "ref",
58
+ "ref": "Asset"
59
+ }
60
+ }
61
+ ]
62
+ },
63
+ "title": "DynamicSwitch.dynamicSwitch",
64
+ "description": "A dynamic switch re-evaluates the applicable case as data changes",
65
+ "genericTokens": [
66
+ {
67
+ "symbol": "T",
68
+ "constraints": {
69
+ "type": "ref",
70
+ "ref": "Asset"
71
+ },
72
+ "default": {
73
+ "type": "ref",
74
+ "ref": "Asset"
75
+ }
76
+ }
77
+ ]
78
+ }
79
+ }
80
+ },
81
+ "additionalProperties": false,
82
+ "title": "DynamicSwitch",
83
+ "genericTokens": [
84
+ {
85
+ "symbol": "T",
86
+ "constraints": {
87
+ "type": "ref",
88
+ "ref": "Asset"
89
+ },
90
+ "default": {
91
+ "type": "ref",
92
+ "ref": "Asset"
93
+ }
94
+ }
95
+ ]
96
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "source": "core/types/src/index.ts",
3
+ "name": "Expression",
4
+ "type": "or",
5
+ "or": [
6
+ {
7
+ "type": "string",
8
+ "title": "Expression"
9
+ },
10
+ {
11
+ "type": "array",
12
+ "elementType": {
13
+ "type": "string",
14
+ "title": "Expression.[]"
15
+ },
16
+ "title": "Expression.[]"
17
+ }
18
+ ],
19
+ "title": "Expression",
20
+ "description": "Expressions are a specialized way of executing code.\nIf the expression is a composite, the last expression executed is the return value"
21
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "source": "core/types/src/index.ts",
3
+ "name": "ExpressionObject",
4
+ "type": "object",
5
+ "properties": {
6
+ "exp": {
7
+ "required": false,
8
+ "node": {
9
+ "type": "ref",
10
+ "ref": "Expression",
11
+ "title": "ExpressionObject.exp",
12
+ "description": "The expression to run"
13
+ }
14
+ }
15
+ },
16
+ "additionalProperties": false,
17
+ "title": "ExpressionObject",
18
+ "description": "An object with an expression in it"
19
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "source": "core/types/src/index.ts",
3
+ "name": "ExpressionRef",
4
+ "type": "template",
5
+ "format": "@[.*]@",
6
+ "title": "ExpressionRef"
7
+ }