@player-ui/common-expressions-plugin 0.8.0--canary.307.9645 → 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.
- package/dist/CommonExpressionsPlugin.native.js +11332 -0
- package/dist/CommonExpressionsPlugin.native.js.map +1 -0
- package/dist/cjs/index.cjs +199 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/index.legacy-esm.js +180 -0
- package/dist/index.mjs +180 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +24 -58
- package/src/expressions/__tests__/expressions.test.ts +373 -0
- package/src/expressions/__tests__/toNum.test.ts +56 -0
- package/src/expressions/index.ts +33 -30
- package/src/expressions/toNum.ts +4 -4
- package/src/index.test.ts +31 -0
- package/src/index.ts +7 -7
- package/types/expressions/index.d.ts +39 -0
- package/types/expressions/toNum.d.ts +5 -0
- package/types/index.d.ts +32 -0
- package/dist/common-expressions-plugin.dev.js +0 -10773
- package/dist/common-expressions-plugin.prod.js +0 -2
- package/dist/index.cjs.js +0 -167
- package/dist/index.d.ts +0 -72
- package/dist/index.esm.js +0 -163
- package/dist/xlr/ceil.json +0 -33
- package/dist/xlr/concat.json +0 -19
- package/dist/xlr/containsAny.json +0 -44
- package/dist/xlr/findProperty.json +0 -92
- package/dist/xlr/findPropertyIndex.json +0 -70
- package/dist/xlr/floor.json +0 -33
- package/dist/xlr/isEmpty.json +0 -26
- package/dist/xlr/isNotEmpty.json +0 -26
- package/dist/xlr/length.json +0 -24
- package/dist/xlr/lowerCase.json +0 -24
- package/dist/xlr/manifest.js +0 -31
- package/dist/xlr/manifest.json +0 -36
- package/dist/xlr/number.json +0 -31
- package/dist/xlr/replace.json +0 -37
- package/dist/xlr/round.json +0 -33
- package/dist/xlr/sentenceCase.json +0 -24
- package/dist/xlr/size.json +0 -24
- package/dist/xlr/sum.json +0 -27
- package/dist/xlr/titleCase.json +0 -24
- package/dist/xlr/trim.json +0 -24
- package/dist/xlr/upperCase.json +0 -24
package/dist/xlr/manifest.json
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"pluginName": "CommonExpressions",
|
|
3
|
-
"capabilities": {
|
|
4
|
-
"Assets": [],
|
|
5
|
-
"Views": [],
|
|
6
|
-
"Expressions": [
|
|
7
|
-
"size",
|
|
8
|
-
"length",
|
|
9
|
-
"isEmpty",
|
|
10
|
-
"isNotEmpty",
|
|
11
|
-
"concat",
|
|
12
|
-
"trim",
|
|
13
|
-
"upperCase",
|
|
14
|
-
"lowerCase",
|
|
15
|
-
"replace",
|
|
16
|
-
"titleCase",
|
|
17
|
-
"sentenceCase",
|
|
18
|
-
"number",
|
|
19
|
-
"round",
|
|
20
|
-
"floor",
|
|
21
|
-
"ceil",
|
|
22
|
-
"sum",
|
|
23
|
-
"findPropertyIndex",
|
|
24
|
-
"findProperty",
|
|
25
|
-
"containsAny"
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
"customPrimitives": [
|
|
29
|
-
"Expression",
|
|
30
|
-
"Asset",
|
|
31
|
-
"Binding",
|
|
32
|
-
"AssetWrapper",
|
|
33
|
-
"Schema.DataType",
|
|
34
|
-
"ExpressionHandler"
|
|
35
|
-
]
|
|
36
|
-
}
|
package/dist/xlr/number.json
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/3400/execroot/player/plugins/common-expressions/core/src/expressions/index.ts",
|
|
3
|
-
"name": "number",
|
|
4
|
-
"type": "ref",
|
|
5
|
-
"ref": "ExpressionHandler",
|
|
6
|
-
"genericArguments": [
|
|
7
|
-
{
|
|
8
|
-
"type": "tuple",
|
|
9
|
-
"elementTypes": [
|
|
10
|
-
{
|
|
11
|
-
"name": "val",
|
|
12
|
-
"type": {
|
|
13
|
-
"type": "unknown"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"name": "coerceTo0",
|
|
18
|
-
"type": {
|
|
19
|
-
"type": "boolean"
|
|
20
|
-
},
|
|
21
|
-
"optional": true
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
"additionalItems": false,
|
|
25
|
-
"minItems": 1
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"type": "number"
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
}
|
package/dist/xlr/replace.json
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/3400/execroot/player/plugins/common-expressions/core/src/expressions/index.ts",
|
|
3
|
-
"name": "replace",
|
|
4
|
-
"type": "ref",
|
|
5
|
-
"ref": "ExpressionHandler",
|
|
6
|
-
"genericArguments": [
|
|
7
|
-
{
|
|
8
|
-
"type": "tuple",
|
|
9
|
-
"elementTypes": [
|
|
10
|
-
{
|
|
11
|
-
"name": "str",
|
|
12
|
-
"type": {
|
|
13
|
-
"type": "unknown"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"name": "pattern",
|
|
18
|
-
"type": {
|
|
19
|
-
"type": "unknown"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"name": "replacement",
|
|
24
|
-
"type": {
|
|
25
|
-
"type": "unknown"
|
|
26
|
-
},
|
|
27
|
-
"optional": true
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
|
-
"additionalItems": false,
|
|
31
|
-
"minItems": 2
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"type": "unknown"
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
}
|
package/dist/xlr/round.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/3400/execroot/player/plugins/common-expressions/core/src/expressions/index.ts",
|
|
3
|
-
"name": "round",
|
|
4
|
-
"type": "ref",
|
|
5
|
-
"ref": "ExpressionHandler",
|
|
6
|
-
"genericArguments": [
|
|
7
|
-
{
|
|
8
|
-
"type": "tuple",
|
|
9
|
-
"elementTypes": [
|
|
10
|
-
{
|
|
11
|
-
"type": {
|
|
12
|
-
"type": "or",
|
|
13
|
-
"or": [
|
|
14
|
-
{
|
|
15
|
-
"type": "string"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"type": "number"
|
|
19
|
-
}
|
|
20
|
-
]
|
|
21
|
-
},
|
|
22
|
-
"optional": false,
|
|
23
|
-
"name": "num"
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
"additionalItems": false,
|
|
27
|
-
"minItems": 1
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"type": "number"
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/3400/execroot/player/plugins/common-expressions/core/src/expressions/index.ts",
|
|
3
|
-
"name": "sentenceCase",
|
|
4
|
-
"type": "ref",
|
|
5
|
-
"ref": "ExpressionHandler",
|
|
6
|
-
"genericArguments": [
|
|
7
|
-
{
|
|
8
|
-
"type": "tuple",
|
|
9
|
-
"elementTypes": [
|
|
10
|
-
{
|
|
11
|
-
"name": "arg",
|
|
12
|
-
"type": {
|
|
13
|
-
"type": "unknown"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"additionalItems": false,
|
|
18
|
-
"minItems": 1
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"type": "unknown"
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
}
|
package/dist/xlr/size.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/3400/execroot/player/plugins/common-expressions/core/src/expressions/index.ts",
|
|
3
|
-
"name": "size",
|
|
4
|
-
"type": "ref",
|
|
5
|
-
"ref": "ExpressionHandler",
|
|
6
|
-
"genericArguments": [
|
|
7
|
-
{
|
|
8
|
-
"type": "tuple",
|
|
9
|
-
"elementTypes": [
|
|
10
|
-
{
|
|
11
|
-
"name": "val",
|
|
12
|
-
"type": {
|
|
13
|
-
"type": "unknown"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"additionalItems": false,
|
|
18
|
-
"minItems": 1
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"type": "number"
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
}
|
package/dist/xlr/sum.json
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/3400/execroot/player/plugins/common-expressions/core/src/expressions/index.ts",
|
|
3
|
-
"name": "sum",
|
|
4
|
-
"type": "ref",
|
|
5
|
-
"ref": "ExpressionHandler",
|
|
6
|
-
"genericArguments": [
|
|
7
|
-
{
|
|
8
|
-
"type": "array",
|
|
9
|
-
"elementType": {
|
|
10
|
-
"type": "or",
|
|
11
|
-
"or": [
|
|
12
|
-
{
|
|
13
|
-
"type": "string"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"type": "number"
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
"title": "[]",
|
|
21
|
-
"name": "args"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"type": "number"
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
}
|
package/dist/xlr/titleCase.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/3400/execroot/player/plugins/common-expressions/core/src/expressions/index.ts",
|
|
3
|
-
"name": "titleCase",
|
|
4
|
-
"type": "ref",
|
|
5
|
-
"ref": "ExpressionHandler",
|
|
6
|
-
"genericArguments": [
|
|
7
|
-
{
|
|
8
|
-
"type": "tuple",
|
|
9
|
-
"elementTypes": [
|
|
10
|
-
{
|
|
11
|
-
"name": "arg",
|
|
12
|
-
"type": {
|
|
13
|
-
"type": "unknown"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"additionalItems": false,
|
|
18
|
-
"minItems": 1
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"type": "unknown"
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
}
|
package/dist/xlr/trim.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/3400/execroot/player/plugins/common-expressions/core/src/expressions/index.ts",
|
|
3
|
-
"name": "trim",
|
|
4
|
-
"type": "ref",
|
|
5
|
-
"ref": "ExpressionHandler",
|
|
6
|
-
"genericArguments": [
|
|
7
|
-
{
|
|
8
|
-
"type": "tuple",
|
|
9
|
-
"elementTypes": [
|
|
10
|
-
{
|
|
11
|
-
"name": "arg",
|
|
12
|
-
"type": {
|
|
13
|
-
"type": "unknown"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"additionalItems": false,
|
|
18
|
-
"minItems": 1
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"type": "unknown"
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
}
|
package/dist/xlr/upperCase.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/3400/execroot/player/plugins/common-expressions/core/src/expressions/index.ts",
|
|
3
|
-
"name": "upperCase",
|
|
4
|
-
"type": "ref",
|
|
5
|
-
"ref": "ExpressionHandler",
|
|
6
|
-
"genericArguments": [
|
|
7
|
-
{
|
|
8
|
-
"type": "tuple",
|
|
9
|
-
"elementTypes": [
|
|
10
|
-
{
|
|
11
|
-
"name": "arg",
|
|
12
|
-
"type": {
|
|
13
|
-
"type": "unknown"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"additionalItems": false,
|
|
18
|
-
"minItems": 1
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"type": "unknown"
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
}
|