@appsemble/utils 0.27.10 → 0.27.11
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 +3 -3
- package/api/components/parameters/$skip.d.ts +2 -0
- package/api/components/parameters/$skip.js +7 -0
- package/api/components/parameters/$top.js +1 -2
- package/api/components/parameters/index.d.ts +1 -0
- package/api/components/parameters/index.js +1 -0
- package/api/components/schemas/App.js +1 -1
- package/api/components/schemas/BlockDefinition.js +8 -2
- package/api/paths/assets.js +4 -1
- package/api/paths/resources.js +1 -0
- package/constants/patterns.d.ts +4 -0
- package/constants/patterns.js +4 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#  Appsemble Utilities
|
|
2
2
|
|
|
3
3
|
> Internal utility functions used across multiple Appsemble projects.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@appsemble/utils)
|
|
6
|
-
[](https://gitlab.com/appsemble/appsemble/-/releases/0.27.11)
|
|
7
7
|
[](https://prettier.io)
|
|
8
8
|
|
|
9
9
|
## Table of Contents
|
|
@@ -26,5 +26,5 @@ not guaranteed.
|
|
|
26
26
|
|
|
27
27
|
## License
|
|
28
28
|
|
|
29
|
-
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.27.
|
|
29
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.27.11/LICENSE.md) ©
|
|
30
30
|
[Appsemble](https://appsemble.com)
|
|
@@ -2,7 +2,6 @@ export const $top = {
|
|
|
2
2
|
name: '$top',
|
|
3
3
|
in: 'query',
|
|
4
4
|
description: 'Limit the number of entities returned.',
|
|
5
|
-
|
|
6
|
-
schema: { type: 'string' },
|
|
5
|
+
schema: { type: 'integer', minimum: 0 },
|
|
7
6
|
};
|
|
8
7
|
//# sourceMappingURL=$top.js.map
|
|
@@ -77,7 +77,7 @@ This doesn’t affect whether or not the app can be accessed on its own domain.
|
|
|
77
77
|
description: `
|
|
78
78
|
A long description for the app.
|
|
79
79
|
|
|
80
|
-
The long
|
|
80
|
+
The long description will be rendered on the app details page. Markdown content is supported.
|
|
81
81
|
`,
|
|
82
82
|
},
|
|
83
83
|
definition: { $ref: '#/components/schemas/AppDefinition' },
|
|
@@ -32,7 +32,13 @@ will remain the same until it is manually updated.
|
|
|
32
32
|
`,
|
|
33
33
|
},
|
|
34
34
|
layout: {
|
|
35
|
-
description:
|
|
35
|
+
description: `An override of the block’s default layout.
|
|
36
|
+
|
|
37
|
+
\`float\` sets the block position to float on the page and does not collide with other blocks.
|
|
38
|
+
Layout float can be combined with the \`position\` property to place the block on the desired location.
|
|
39
|
+
\`grow\` adds space between blocks so the page is filled.
|
|
40
|
+
\`static\` on the contrary, does not add extra space between blocks.
|
|
41
|
+
`,
|
|
36
42
|
enum: ['float', 'grow', 'static'],
|
|
37
43
|
},
|
|
38
44
|
header: {
|
|
@@ -50,7 +56,7 @@ If a user does not have the right role, the block is not rendered.
|
|
|
50
56
|
},
|
|
51
57
|
},
|
|
52
58
|
position: {
|
|
53
|
-
description: 'For floating blocks this
|
|
59
|
+
description: 'For floating blocks this property defines where the block should float.',
|
|
54
60
|
default: 'bottom right',
|
|
55
61
|
enum: [
|
|
56
62
|
'top left',
|
package/api/paths/assets.js
CHANGED
|
@@ -66,7 +66,10 @@ export const paths = {
|
|
|
66
66
|
tags: ['asset'],
|
|
67
67
|
description: 'Get all of the app’s assets.',
|
|
68
68
|
operationId: 'getAssets',
|
|
69
|
-
parameters: [
|
|
69
|
+
parameters: [
|
|
70
|
+
{ $ref: '#/components/parameters/$skip' },
|
|
71
|
+
{ $ref: '#/components/parameters/$top' },
|
|
72
|
+
],
|
|
70
73
|
responses: {
|
|
71
74
|
200: {
|
|
72
75
|
description: 'The assets associated with the app.',
|
package/api/paths/resources.js
CHANGED
|
@@ -87,6 +87,7 @@ export const paths = {
|
|
|
87
87
|
{ $ref: '#/components/parameters/$filter' },
|
|
88
88
|
{ $ref: '#/components/parameters/$orderby' },
|
|
89
89
|
{ $ref: '#/components/parameters/$select' },
|
|
90
|
+
{ $ref: '#/components/parameters/$skip' },
|
|
90
91
|
{ $ref: '#/components/parameters/$top' },
|
|
91
92
|
{ $ref: '#/components/parameters/$team' },
|
|
92
93
|
],
|
package/constants/patterns.d.ts
CHANGED
package/constants/patterns.js
CHANGED
|
@@ -35,4 +35,8 @@ export const uuid4Pattern = /^[\d[a-f]{8}-[\da-f]{4}-4[\da-f]{3}-[\da-f]{4}-[\d[
|
|
|
35
35
|
* A pattern which matches a JSON web token.
|
|
36
36
|
*/
|
|
37
37
|
export const jwtPattern = /^[\w-]+(?:\.[\w-]+){2}$/;
|
|
38
|
+
/**
|
|
39
|
+
* A pattern which matches an ISO 8601 datetime string.
|
|
40
|
+
*/
|
|
41
|
+
export const ISODateTimePattern = /\d{4}(.\d{2}){2}(\s|T)(\d{2}.){2}\d{2}/;
|
|
38
42
|
//# sourceMappingURL=patterns.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/utils",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.11",
|
|
4
4
|
"description": "Utility functions used in Appsemble internally",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"test": "vitest"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@appsemble/types": "0.27.
|
|
40
|
+
"@appsemble/types": "0.27.11",
|
|
41
41
|
"axios": "^1.0.0",
|
|
42
42
|
"cron-parser": "^4.0.0",
|
|
43
43
|
"date-fns": "^2.0.0",
|