@appsemble/cli 0.20.18 → 0.20.19
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/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
#  Appsemble CLI
|
|
2
2
|
|
|
3
3
|
> Manage apps and blocks from the command line.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@appsemble/cli)
|
|
6
|
-
[](https://gitlab.com/appsemble/appsemble/-/releases/0.20.19)
|
|
7
|
+
[](https://codecov.io/gl/appsemble/appsemble)
|
|
8
8
|
[](https://prettier.io)
|
|
9
9
|
|
|
10
10
|
## Installation
|
|
@@ -95,5 +95,5 @@ appsemble asset create --app-id 1 path/to/example-asset.png
|
|
|
95
95
|
|
|
96
96
|
## License
|
|
97
97
|
|
|
98
|
-
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.20.
|
|
98
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.20.19/LICENSE.md) ©
|
|
99
99
|
[Appsemble](https://appsemble.com)
|
|
@@ -55,7 +55,7 @@ The result must be either a audio URL or an object containing a property \`url\`
|
|
|
55
55
|
"additionalProperties": false,
|
|
56
56
|
"properties": {
|
|
57
57
|
"src": {
|
|
58
|
-
"description": "The source of the player.",
|
|
58
|
+
"description": "The source of the player. This can either be a URL pointing to a website, or it can point to an asset. The asset can either be the object, or the ID of the asset",
|
|
59
59
|
"format": "remapper",
|
|
60
60
|
},
|
|
61
61
|
},
|
|
@@ -351,7 +351,9 @@ By default a cared pointing left or right respectively will be rendered.",
|
|
|
351
351
|
"type": "boolean",
|
|
352
352
|
},
|
|
353
353
|
],
|
|
354
|
-
"description": "The configuration for the back button.
|
|
354
|
+
"description": "The configuration for the back button.
|
|
355
|
+
|
|
356
|
+
Set to \`false\` to hide back button.",
|
|
355
357
|
},
|
|
356
358
|
"forward": {
|
|
357
359
|
"anyOf": [
|
|
@@ -363,7 +365,9 @@ By default a cared pointing left or right respectively will be rendered.",
|
|
|
363
365
|
"type": "boolean",
|
|
364
366
|
},
|
|
365
367
|
],
|
|
366
|
-
"description": "The configuration for the forward button.
|
|
368
|
+
"description": "The configuration for the forward button.
|
|
369
|
+
|
|
370
|
+
Set to \`false\` to hide forward button.",
|
|
367
371
|
},
|
|
368
372
|
},
|
|
369
373
|
"type": "object",
|
|
@@ -1478,7 +1482,7 @@ These are evaluated in the order they are defined in.",
|
|
|
1478
1482
|
},
|
|
1479
1483
|
"type": "array",
|
|
1480
1484
|
},
|
|
1481
|
-
"
|
|
1485
|
+
"show": {
|
|
1482
1486
|
"description": "Displays field only if condition is true.
|
|
1483
1487
|
|
|
1484
1488
|
If not specified, the field will display.",
|
|
@@ -1551,7 +1555,7 @@ This typically means that the checkbox *must* be checked.",
|
|
|
1551
1555
|
},
|
|
1552
1556
|
"type": "array",
|
|
1553
1557
|
},
|
|
1554
|
-
"
|
|
1558
|
+
"show": {
|
|
1555
1559
|
"description": "Displays field only if condition is true.
|
|
1556
1560
|
|
|
1557
1561
|
If not specified, the field will display.",
|
|
@@ -1683,7 +1687,7 @@ The date value can be accessed using the \`root\` remapper.",
|
|
|
1683
1687
|
},
|
|
1684
1688
|
"type": "array",
|
|
1685
1689
|
},
|
|
1686
|
-
"
|
|
1690
|
+
"show": {
|
|
1687
1691
|
"description": "Displays field only if condition is true.
|
|
1688
1692
|
|
|
1689
1693
|
If not specified, the field will display.",
|
|
@@ -1772,7 +1776,7 @@ The date value can be accessed using the \`root\` remapper.",
|
|
|
1772
1776
|
},
|
|
1773
1777
|
"type": "array",
|
|
1774
1778
|
},
|
|
1775
|
-
"
|
|
1779
|
+
"show": {
|
|
1776
1780
|
"description": "Displays field only if condition is true.
|
|
1777
1781
|
|
|
1778
1782
|
If not specified, the field will display.",
|
|
@@ -1938,7 +1942,7 @@ These are evaluated in the order they are defined in.",
|
|
|
1938
1942
|
},
|
|
1939
1943
|
"type": "array",
|
|
1940
1944
|
},
|
|
1941
|
-
"
|
|
1945
|
+
"show": {
|
|
1942
1946
|
"description": "Displays field only if condition is true.
|
|
1943
1947
|
|
|
1944
1948
|
If not specified, the field will display.",
|
|
@@ -2063,7 +2067,7 @@ These are evaluated in the order they are defined in.",
|
|
|
2063
2067
|
},
|
|
2064
2068
|
"type": "array",
|
|
2065
2069
|
},
|
|
2066
|
-
"
|
|
2070
|
+
"show": {
|
|
2067
2071
|
"description": "Displays field only if condition is true.
|
|
2068
2072
|
|
|
2069
2073
|
If not specified, the field will display.",
|
|
@@ -2180,7 +2184,7 @@ This can be used to set the location to something that is more relevant to the u
|
|
|
2180
2184
|
"description": "Whether the field should be read-only.",
|
|
2181
2185
|
"type": "boolean",
|
|
2182
2186
|
},
|
|
2183
|
-
"
|
|
2187
|
+
"show": {
|
|
2184
2188
|
"description": "Displays field only if condition is true.
|
|
2185
2189
|
|
|
2186
2190
|
If not specified, the field will display.",
|
|
@@ -2233,7 +2237,7 @@ Replaces the optional label if the field is optional. Won’t display if the fie
|
|
|
2233
2237
|
"description": "Whether the field should be read-only.",
|
|
2234
2238
|
"type": "boolean",
|
|
2235
2239
|
},
|
|
2236
|
-
"
|
|
2240
|
+
"show": {
|
|
2237
2241
|
"description": "Displays field only if condition is true.
|
|
2238
2242
|
|
|
2239
2243
|
If not specified, the field will display.",
|
|
@@ -2389,7 +2393,7 @@ These are evaluated in the order they are defined in.",
|
|
|
2389
2393
|
},
|
|
2390
2394
|
"type": "array",
|
|
2391
2395
|
},
|
|
2392
|
-
"
|
|
2396
|
+
"show": {
|
|
2393
2397
|
"description": "Displays field only if condition is true.
|
|
2394
2398
|
|
|
2395
2399
|
If not specified, the field will display.",
|
|
@@ -2491,7 +2495,7 @@ Replaces the optional label if the field is optional. Won’t display if the fie
|
|
|
2491
2495
|
},
|
|
2492
2496
|
"type": "array",
|
|
2493
2497
|
},
|
|
2494
|
-
"
|
|
2498
|
+
"show": {
|
|
2495
2499
|
"description": "Displays field only if condition is true.
|
|
2496
2500
|
|
|
2497
2501
|
If not specified, the field will display.",
|
|
@@ -2565,7 +2569,7 @@ These are evaluated in the order they are defined in.",
|
|
|
2565
2569
|
},
|
|
2566
2570
|
"type": "array",
|
|
2567
2571
|
},
|
|
2568
|
-
"
|
|
2572
|
+
"show": {
|
|
2569
2573
|
"description": "Displays field only if condition is true.
|
|
2570
2574
|
|
|
2571
2575
|
If not specified, the field will display.",
|
|
@@ -2694,7 +2698,7 @@ This field does not contain a name or a value.",
|
|
|
2694
2698
|
"description": "Whether the field should be read-only.",
|
|
2695
2699
|
"type": "boolean",
|
|
2696
2700
|
},
|
|
2697
|
-
"
|
|
2701
|
+
"show": {
|
|
2698
2702
|
"description": "Displays field only if condition is true.
|
|
2699
2703
|
|
|
2700
2704
|
If not specified, the field will display.",
|
|
@@ -2795,7 +2799,7 @@ These are evaluated in the order they are defined in.",
|
|
|
2795
2799
|
},
|
|
2796
2800
|
"type": "array",
|
|
2797
2801
|
},
|
|
2798
|
-
"
|
|
2802
|
+
"show": {
|
|
2799
2803
|
"description": "Displays field only if condition is true.
|
|
2800
2804
|
|
|
2801
2805
|
If not specified, the field will display.",
|
|
@@ -2878,7 +2882,7 @@ These are evaluated in the order they are defined in.",
|
|
|
2878
2882
|
},
|
|
2879
2883
|
"type": "array",
|
|
2880
2884
|
},
|
|
2881
|
-
"
|
|
2885
|
+
"show": {
|
|
2882
2886
|
"description": "Displays field only if condition is true.
|
|
2883
2887
|
|
|
2884
2888
|
If not specified, the field will display.",
|
|
@@ -4030,3 +4034,135 @@ Note that this is ignored if the onVideo event listener is set.",
|
|
|
4030
4034
|
},
|
|
4031
4035
|
}
|
|
4032
4036
|
`;
|
|
4037
|
+
|
|
4038
|
+
exports[`getBlockConfigFromTypeScript official blocks wordcloud 1`] = `
|
|
4039
|
+
{
|
|
4040
|
+
"actions": undefined,
|
|
4041
|
+
"events": {
|
|
4042
|
+
"emit": undefined,
|
|
4043
|
+
"listen": {
|
|
4044
|
+
"data": {
|
|
4045
|
+
"description": "This event can be used to receive incoming data to display.",
|
|
4046
|
+
},
|
|
4047
|
+
},
|
|
4048
|
+
},
|
|
4049
|
+
"messages": {
|
|
4050
|
+
"empty": {
|
|
4051
|
+
"description": "This message is displayed if the data is empty.",
|
|
4052
|
+
},
|
|
4053
|
+
"error": {
|
|
4054
|
+
"description": "This message is displayed if there was a problem loading the data.",
|
|
4055
|
+
},
|
|
4056
|
+
"loading": {
|
|
4057
|
+
"description": "This message is displayed if no data has been loaded yet.",
|
|
4058
|
+
},
|
|
4059
|
+
"unsupported": {
|
|
4060
|
+
"description": "This message is displayed if the browser does not support the block",
|
|
4061
|
+
},
|
|
4062
|
+
},
|
|
4063
|
+
"parameters": {
|
|
4064
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4065
|
+
"additionalProperties": false,
|
|
4066
|
+
"definitions": {
|
|
4067
|
+
"Options": {
|
|
4068
|
+
"additionalProperties": false,
|
|
4069
|
+
"properties": {
|
|
4070
|
+
"backgroundColor": {
|
|
4071
|
+
"description": "The background color for the wordcloud.",
|
|
4072
|
+
"type": "string",
|
|
4073
|
+
},
|
|
4074
|
+
"clearCanvas": {
|
|
4075
|
+
"description": "Paint the entire canvas with background color and consider it empty before start.",
|
|
4076
|
+
"type": "boolean",
|
|
4077
|
+
},
|
|
4078
|
+
"color": {
|
|
4079
|
+
"default": "#000000",
|
|
4080
|
+
"description": "Color of the text, can be any CSS color You may also specify colors with built-in * keywords: random-dark and random-light.",
|
|
4081
|
+
"type": "string",
|
|
4082
|
+
},
|
|
4083
|
+
"fontFamily": {
|
|
4084
|
+
"description": "The font the wordcloud words use.",
|
|
4085
|
+
"type": "string",
|
|
4086
|
+
},
|
|
4087
|
+
"fontWeight": {
|
|
4088
|
+
"description": "Font weight to use, e.g. normal, bold or 600",
|
|
4089
|
+
"type": [
|
|
4090
|
+
"number",
|
|
4091
|
+
"string",
|
|
4092
|
+
],
|
|
4093
|
+
},
|
|
4094
|
+
"maxRotation": {
|
|
4095
|
+
"description": "If the word should rotate, the maximum rotation (in rad) the text should rotate. Set the two value equal to keep all text in one angle.",
|
|
4096
|
+
"type": "number",
|
|
4097
|
+
},
|
|
4098
|
+
"minRotation": {
|
|
4099
|
+
"description": "If the word should rotate, the minimum rotation (in rad) the text should rotate.",
|
|
4100
|
+
"type": "number",
|
|
4101
|
+
},
|
|
4102
|
+
"minSize": {
|
|
4103
|
+
"description": "Minimum font size to draw on the canvas.",
|
|
4104
|
+
"type": "number",
|
|
4105
|
+
},
|
|
4106
|
+
"rotateRatio": {
|
|
4107
|
+
"default": 0,
|
|
4108
|
+
"description": "Probability for the word to rotate. Set the number to 1 to always rotate.",
|
|
4109
|
+
"type": "number",
|
|
4110
|
+
},
|
|
4111
|
+
"shuffle": {
|
|
4112
|
+
"description": "Shuffle the points to draw so the result will be different each time for the same list and settings.",
|
|
4113
|
+
"type": "boolean",
|
|
4114
|
+
},
|
|
4115
|
+
"weightFactor": {
|
|
4116
|
+
"description": "Number to multiply the word size by.",
|
|
4117
|
+
"type": "number",
|
|
4118
|
+
},
|
|
4119
|
+
},
|
|
4120
|
+
"type": "object",
|
|
4121
|
+
},
|
|
4122
|
+
},
|
|
4123
|
+
"properties": {
|
|
4124
|
+
"fields": {
|
|
4125
|
+
"anyOf": [
|
|
4126
|
+
{
|
|
4127
|
+
"items": {
|
|
4128
|
+
"format": "remapper",
|
|
4129
|
+
},
|
|
4130
|
+
"type": "array",
|
|
4131
|
+
},
|
|
4132
|
+
{
|
|
4133
|
+
"items": {
|
|
4134
|
+
"type": "string",
|
|
4135
|
+
},
|
|
4136
|
+
"type": "array",
|
|
4137
|
+
},
|
|
4138
|
+
],
|
|
4139
|
+
"description": "A list of fields to render out in a table.",
|
|
4140
|
+
},
|
|
4141
|
+
"options": {
|
|
4142
|
+
"$ref": "#/definitions/Options",
|
|
4143
|
+
"description": "List of options for rendering the wordcloud.",
|
|
4144
|
+
},
|
|
4145
|
+
"shape": {
|
|
4146
|
+
"default": "circle",
|
|
4147
|
+
"description": "Shape of the wordcloud.",
|
|
4148
|
+
"enum": [
|
|
4149
|
+
"cardioid",
|
|
4150
|
+
"circle",
|
|
4151
|
+
"diamond",
|
|
4152
|
+
"pentagon",
|
|
4153
|
+
"square",
|
|
4154
|
+
"star",
|
|
4155
|
+
"triangle-forward",
|
|
4156
|
+
"triangle",
|
|
4157
|
+
],
|
|
4158
|
+
"type": "string",
|
|
4159
|
+
},
|
|
4160
|
+
},
|
|
4161
|
+
"required": [
|
|
4162
|
+
"fields",
|
|
4163
|
+
"options",
|
|
4164
|
+
],
|
|
4165
|
+
"type": "object",
|
|
4166
|
+
},
|
|
4167
|
+
}
|
|
4168
|
+
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/cli",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.19",
|
|
4
4
|
"description": "The CLI for developing with Appsemble apps and blocks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@appsemble/node-utils": "0.20.
|
|
38
|
-
"@appsemble/types": "0.20.
|
|
39
|
-
"@appsemble/utils": "0.20.
|
|
37
|
+
"@appsemble/node-utils": "0.20.19",
|
|
38
|
+
"@appsemble/types": "0.20.19",
|
|
39
|
+
"@appsemble/utils": "0.20.19",
|
|
40
40
|
"@fortawesome/fontawesome-common-types": "^6.0.0",
|
|
41
41
|
"axios": "^0.27.0",
|
|
42
42
|
"chalk": "^4.0.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"yargs": "^17.0.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@appsemble/types": "0.20.
|
|
65
|
+
"@appsemble/types": "0.20.19",
|
|
66
66
|
"@types/concat-stream": "^2.0.0",
|
|
67
67
|
"@types/inquirer": "^9.0.0",
|
|
68
68
|
"@types/normalize-path": "^3.0.0",
|