@player-ui/common-types-plugin 0.15.3-next.1 → 0.15.3-next.3
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/CommonTypesPlugin.native.js +257 -240
- package/dist/CommonTypesPlugin.native.js.map +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/xlr/DataTypes.BooleanType.json +1 -1
- package/dist/xlr/DataTypes.CollectionType.json +1 -1
- package/dist/xlr/DataTypes.DateType.json +1 -1
- package/dist/xlr/DataTypes.IntegerNNType.json +1 -1
- package/dist/xlr/DataTypes.IntegerPosType.json +1 -1
- package/dist/xlr/DataTypes.IntegerType.json +1 -1
- package/dist/xlr/DataTypes.PhoneType.json +1 -1
- package/dist/xlr/DataTypes.StringType.json +1 -1
- package/dist/xlr/Formatters.commaNumber.json +1 -1
- package/dist/xlr/Formatters.currency.json +1 -1
- package/dist/xlr/Formatters.date.json +1 -1
- package/dist/xlr/Formatters.integer.json +1 -1
- package/dist/xlr/Formatters.phone.json +1 -1
- package/dist/xlr/Validators.collection.json +1 -1
- package/dist/xlr/Validators.email.json +1 -1
- package/dist/xlr/Validators.expression.json +1 -1
- package/dist/xlr/Validators.integer.json +1 -1
- package/dist/xlr/Validators.length.json +1 -1
- package/dist/xlr/Validators.max.json +1 -1
- package/dist/xlr/Validators.min.json +1 -1
- package/dist/xlr/Validators.oneOf.json +1 -1
- package/dist/xlr/Validators.phone.json +1 -1
- package/dist/xlr/Validators.readonly.json +1 -1
- package/dist/xlr/Validators.regex.json +1 -1
- package/dist/xlr/Validators.required.json +1 -1
- package/dist/xlr/Validators.string.json +1 -1
- package/dist/xlr/Validators.zip.json +1 -1
- package/package.json +3 -3
- package/src/index.ts +38 -41
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2603/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/formats/index.ts",
|
|
3
3
|
"name": "phone",
|
|
4
4
|
"type": "ref",
|
|
5
5
|
"ref": "FormatType<string>",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2603/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
3
|
"name": "collection",
|
|
4
4
|
"type": "ref",
|
|
5
5
|
"ref": "ValidatorFunction"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2603/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
3
|
"name": "email",
|
|
4
4
|
"type": "ref",
|
|
5
5
|
"ref": "ValidatorFunction"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2603/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
3
|
"name": "expression",
|
|
4
4
|
"type": "ref",
|
|
5
5
|
"ref": "ValidatorFunction<{\n /**\n * The expression to evaluate.\n * Falsy values indicate an invalid response\n */\n exp: Expression;\n}>",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2603/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
3
|
"name": "integer",
|
|
4
4
|
"type": "ref",
|
|
5
5
|
"ref": "ValidatorFunction"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2603/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
3
|
"name": "length",
|
|
4
4
|
"type": "ref",
|
|
5
5
|
"ref": "ValidatorFunction<\n | {\n /** The minimum length to check against */\n min?: number;\n\n /** The maximum length to check against */\n max?: number;\n }\n | {\n /** The exact length to match against */\n exact: number;\n }\n>",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2603/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
3
|
"name": "max",
|
|
4
4
|
"type": "ref",
|
|
5
5
|
"ref": "ValidatorFunction<{\n /** The minimum value */\n value: number;\n}>",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2603/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
3
|
"name": "min",
|
|
4
4
|
"type": "ref",
|
|
5
5
|
"ref": "ValidatorFunction<{\n /** The minimum value */\n value: number;\n}>",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2603/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
3
|
"name": "oneOf",
|
|
4
4
|
"type": "ref",
|
|
5
5
|
"ref": "ValidatorFunction<{\n /** The enum values that are acceptable */\n options: Array<unknown>;\n}>",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2603/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
3
|
"name": "phone",
|
|
4
4
|
"type": "ref",
|
|
5
5
|
"ref": "ValidatorFunction"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2603/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
3
|
"name": "readonly",
|
|
4
4
|
"type": "ref",
|
|
5
5
|
"ref": "ValidatorFunction"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2603/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
3
|
"name": "regex",
|
|
4
4
|
"type": "ref",
|
|
5
5
|
"ref": "ValidatorFunction<{\n /**\n * The regular expression to test: /pattern/\n * Can optionally include flags after the pattern: /pattern/flags\n */\n regex: string;\n}>",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2603/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
3
|
"name": "required",
|
|
4
4
|
"type": "ref",
|
|
5
5
|
"ref": "ValidatorFunction<{\n /** An optional expression to limit the required check only if true */\n if?: Expression;\n\n /** An optional expression to limit the required check only if false */\n ifNot?: Expression;\n}>",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2603/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
3
|
"name": "string",
|
|
4
4
|
"type": "ref",
|
|
5
5
|
"ref": "ValidatorFunction"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/2603/execroot/_main/bazel-out/k8-fastbuild/bin/plugins/common-types/core/src/validators/index.ts",
|
|
3
3
|
"name": "zip",
|
|
4
4
|
"type": "ref",
|
|
5
5
|
"ref": "ValidatorFunction"
|
package/package.json
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
"types"
|
|
7
7
|
],
|
|
8
8
|
"name": "@player-ui/common-types-plugin",
|
|
9
|
-
"version": "0.15.3-next.
|
|
9
|
+
"version": "0.15.3-next.3",
|
|
10
10
|
"main": "dist/cjs/index.cjs",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@player-ui/types-provider-plugin": "0.15.3-next.
|
|
12
|
+
"@player-ui/types-provider-plugin": "0.15.3-next.3",
|
|
13
13
|
"tslib": "^2.6.2"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@player-ui/player": "0.15.3-next.
|
|
16
|
+
"@player-ui/player": "0.15.3-next.3"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@player-ui/partial-match-registry": "workspace:^",
|
package/src/index.ts
CHANGED
|
@@ -41,47 +41,44 @@ export * from "./formats/utils";
|
|
|
41
41
|
/**
|
|
42
42
|
* Exposes a lot of common DataTypes, validations, and formats to Player instance.
|
|
43
43
|
*/
|
|
44
|
-
export class CommonTypesPlugin
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
]
|
|
83
|
-
>
|
|
84
|
-
{
|
|
44
|
+
export class CommonTypesPlugin implements ExtendedPlayerPlugin<
|
|
45
|
+
[],
|
|
46
|
+
[],
|
|
47
|
+
[],
|
|
48
|
+
[
|
|
49
|
+
typeof BooleanType,
|
|
50
|
+
typeof IntegerType,
|
|
51
|
+
typeof IntegerPosType,
|
|
52
|
+
typeof IntegerNNType,
|
|
53
|
+
typeof StringType,
|
|
54
|
+
typeof CollectionType,
|
|
55
|
+
typeof DateType,
|
|
56
|
+
typeof PhoneType,
|
|
57
|
+
],
|
|
58
|
+
[
|
|
59
|
+
typeof commaNumber,
|
|
60
|
+
typeof currency,
|
|
61
|
+
typeof date,
|
|
62
|
+
typeof integer,
|
|
63
|
+
typeof phone,
|
|
64
|
+
],
|
|
65
|
+
[
|
|
66
|
+
typeof collection,
|
|
67
|
+
typeof email,
|
|
68
|
+
typeof expression,
|
|
69
|
+
typeof vinteger,
|
|
70
|
+
typeof length,
|
|
71
|
+
typeof max,
|
|
72
|
+
typeof min,
|
|
73
|
+
typeof oneOf,
|
|
74
|
+
typeof vphone,
|
|
75
|
+
typeof readonly,
|
|
76
|
+
typeof regex,
|
|
77
|
+
typeof required,
|
|
78
|
+
typeof string,
|
|
79
|
+
typeof zip,
|
|
80
|
+
]
|
|
81
|
+
> {
|
|
85
82
|
name = "CommonTypes";
|
|
86
83
|
|
|
87
84
|
apply(player: Player): void {
|