@player-ui/common-types-plugin 0.8.0--canary.307.9621 → 0.8.0-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/CommonTypesPlugin.native.js +11903 -0
  2. package/dist/CommonTypesPlugin.native.js.map +1 -0
  3. package/dist/{index.cjs.js → cjs/index.cjs} +273 -233
  4. package/dist/cjs/index.cjs.map +1 -0
  5. package/dist/{index.esm.js → index.legacy-esm.js} +246 -220
  6. package/dist/index.mjs +782 -0
  7. package/dist/index.mjs.map +1 -0
  8. package/package.json +26 -58
  9. package/src/__tests__/index.test.ts +198 -0
  10. package/src/data-types/types.ts +27 -37
  11. package/src/formats/__tests__/formats.test.ts +264 -0
  12. package/src/formats/__tests__/utils.test.ts +44 -0
  13. package/src/formats/index.ts +71 -69
  14. package/src/formats/utils.ts +16 -16
  15. package/src/index.ts +12 -12
  16. package/src/validators/__tests__/index.test.ts +472 -0
  17. package/src/validators/index.ts +67 -68
  18. package/types/data-types/types.d.ts +10 -0
  19. package/types/formats/index.d.ts +24 -0
  20. package/types/formats/utils.d.ts +41 -0
  21. package/types/index.d.ts +27 -0
  22. package/types/validators/index.d.ts +68 -0
  23. package/dist/common-types-plugin.dev.js +0 -11388
  24. package/dist/common-types-plugin.prod.js +0 -2
  25. package/dist/index.d.ts +0 -260
  26. package/dist/xlr/BooleanType.json +0 -72
  27. package/dist/xlr/CollectionType.json +0 -39
  28. package/dist/xlr/DateType.json +0 -55
  29. package/dist/xlr/IntegerNNType.json +0 -75
  30. package/dist/xlr/IntegerPosType.json +0 -75
  31. package/dist/xlr/IntegerType.json +0 -55
  32. package/dist/xlr/PhoneType.json +0 -55
  33. package/dist/xlr/StringType.json +0 -62
  34. package/dist/xlr/manifest.js +0 -21
  35. package/dist/xlr/manifest.json +0 -26
  36. package/src/data-types/refs.ts +0 -33
@@ -1,62 +0,0 @@
1
- {
2
- "source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/3466/execroot/player/plugins/common-types/core/src/data-types/types.ts",
3
- "name": "StringType",
4
- "type": "object",
5
- "properties": {
6
- "type": {
7
- "required": true,
8
- "node": {
9
- "type": "string",
10
- "const": "StringType"
11
- }
12
- },
13
- "default": {
14
- "required": true,
15
- "node": {
16
- "type": "string",
17
- "const": ""
18
- }
19
- },
20
- "validation": {
21
- "required": true,
22
- "node": {
23
- "type": "array",
24
- "elementType": {
25
- "type": "any"
26
- },
27
- "const": [
28
- {
29
- "type": "object",
30
- "properties": {
31
- "type": {
32
- "required": true,
33
- "node": {
34
- "type": "string",
35
- "const": "string"
36
- }
37
- }
38
- },
39
- "additionalProperties": false
40
- }
41
- ]
42
- }
43
- },
44
- "format": {
45
- "required": true,
46
- "node": {
47
- "type": "object",
48
- "properties": {
49
- "type": {
50
- "required": true,
51
- "node": {
52
- "type": "string",
53
- "const": "string"
54
- }
55
- }
56
- },
57
- "additionalProperties": false
58
- }
59
- }
60
- },
61
- "additionalProperties": false
62
- }
@@ -1,21 +0,0 @@
1
- const BooleanType = require('./BooleanType.json')
2
- const IntegerType = require('./IntegerType.json')
3
- const IntegerPosType = require('./IntegerPosType.json')
4
- const IntegerNNType = require('./IntegerNNType.json')
5
- const StringType = require('./StringType.json')
6
- const CollectionType = require('./CollectionType.json')
7
- const DateType = require('./DateType.json')
8
- const PhoneType = require('./PhoneType.json')
9
-
10
- module.exports = {
11
- "pluginName": "CommonTypes",
12
- "capabilities": {
13
- "Assets":[],
14
- "Views":[],
15
- "Expressions":[],
16
- "DataTypes":[BooleanType,IntegerType,IntegerPosType,IntegerNNType,StringType,CollectionType,DateType,PhoneType],
17
- },
18
- "customPrimitives": [
19
- 'Expression','Asset','Binding','AssetWrapper','Schema.DataType','ExpressionHandler'
20
- ]
21
- }
@@ -1,26 +0,0 @@
1
- {
2
- "pluginName": "CommonTypes",
3
- "capabilities": {
4
- "Assets": [],
5
- "Views": [],
6
- "Expressions": [],
7
- "DataTypes": [
8
- "BooleanType",
9
- "IntegerType",
10
- "IntegerPosType",
11
- "IntegerNNType",
12
- "StringType",
13
- "CollectionType",
14
- "DateType",
15
- "PhoneType"
16
- ]
17
- },
18
- "customPrimitives": [
19
- "Expression",
20
- "Asset",
21
- "Binding",
22
- "AssetWrapper",
23
- "Schema.DataType",
24
- "ExpressionHandler"
25
- ]
26
- }
@@ -1,33 +0,0 @@
1
- import type { Language } from '@player-ui/types';
2
-
3
- export const BooleanTypeRef: Language.DataTypeRef = {
4
- type: 'BooleanType',
5
- };
6
-
7
- export const IntegerTypeRef: Language.DataTypeRef = {
8
- type: 'IntegerType',
9
- };
10
-
11
- export const IntegerPosTypeRef: Language.DataTypeRef = {
12
- type: 'IntegerPosType',
13
- };
14
-
15
- export const IntegerNNTypeRef: Language.DataTypeRef = {
16
- type: 'IntegerNNType',
17
- };
18
-
19
- export const StringTypeRef: Language.DataTypeRef = {
20
- type: 'StringType',
21
- };
22
-
23
- export const CollectionTypeRef: Language.DataTypeRef = {
24
- type: 'CollectionType',
25
- };
26
-
27
- export const DateTypeRef: Language.DataTypeRef = {
28
- type: 'DateType',
29
- };
30
-
31
- export const PhoneTypeRef: Language.DataTypeRef = {
32
- type: 'PhoneType',
33
- };