@lowdefy/blocks-loaders 4.5.2 → 4.6.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/blocks/ProgressBar/schema.js +49 -0
- package/dist/blocks/Skeleton/Skeleton.js +1 -1
- package/dist/blocks/Skeleton/schema.js +55 -0
- package/dist/blocks/Skeleton/style.less +1 -1
- package/dist/blocks/SkeletonAvatar/SkeletonAvatar.js +1 -1
- package/dist/blocks/SkeletonAvatar/schema.js +54 -0
- package/dist/blocks/SkeletonAvatar/style.less +1 -1
- package/dist/blocks/SkeletonButton/SkeletonButton.js +1 -1
- package/dist/blocks/SkeletonButton/schema.js +55 -0
- package/dist/blocks/SkeletonButton/style.less +1 -1
- package/dist/blocks/SkeletonInput/SkeletonInput.js +1 -1
- package/dist/blocks/SkeletonInput/schema.js +92 -0
- package/dist/blocks/SkeletonInput/style.less +1 -1
- package/dist/blocks/SkeletonParagraph/SkeletonParagraph.js +1 -1
- package/dist/blocks/SkeletonParagraph/schema.js +50 -0
- package/dist/blocks/SkeletonParagraph/style.less +1 -1
- package/dist/blocks/Spinner/Spinner.js +1 -1
- package/dist/blocks/Spinner/schema.js +44 -0
- package/dist/blocks/Spinner/style.less +1 -1
- package/dist/blocks.js +1 -1
- package/dist/schemas.js +21 -0
- package/dist/types.js +1 -1
- package/package.json +6 -16
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
type: 'object',
|
|
17
|
+
properties: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
additionalProperties: false,
|
|
20
|
+
properties: {
|
|
21
|
+
style: {
|
|
22
|
+
type: 'object',
|
|
23
|
+
description: 'Css style object to apply to the skeleton.',
|
|
24
|
+
docs: {
|
|
25
|
+
displayType: 'yaml'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
height: {
|
|
29
|
+
type: [
|
|
30
|
+
'number',
|
|
31
|
+
'string'
|
|
32
|
+
],
|
|
33
|
+
description: 'Height of the skeleton.'
|
|
34
|
+
},
|
|
35
|
+
width: {
|
|
36
|
+
type: [
|
|
37
|
+
'number',
|
|
38
|
+
'string'
|
|
39
|
+
],
|
|
40
|
+
description: 'Width of the skeleton.'
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
events: {
|
|
45
|
+
type: 'object',
|
|
46
|
+
additionalProperties: false,
|
|
47
|
+
properties: {}
|
|
48
|
+
}
|
|
49
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
type: 'object',
|
|
17
|
+
properties: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
additionalProperties: false,
|
|
20
|
+
properties: {
|
|
21
|
+
style: {
|
|
22
|
+
type: 'object',
|
|
23
|
+
description: 'Css style object to apply to the skeleton.',
|
|
24
|
+
docs: {
|
|
25
|
+
displayType: 'yaml'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
height: {
|
|
29
|
+
type: [
|
|
30
|
+
'number',
|
|
31
|
+
'string'
|
|
32
|
+
],
|
|
33
|
+
description: 'Height of the skeleton.',
|
|
34
|
+
docs: {
|
|
35
|
+
displayType: 'string'
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
width: {
|
|
39
|
+
type: [
|
|
40
|
+
'number',
|
|
41
|
+
'string'
|
|
42
|
+
],
|
|
43
|
+
description: 'Width of the skeleton.',
|
|
44
|
+
docs: {
|
|
45
|
+
displayType: 'string'
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
events: {
|
|
51
|
+
type: 'object',
|
|
52
|
+
additionalProperties: false,
|
|
53
|
+
properties: {}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
type: 'object',
|
|
17
|
+
properties: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
additionalProperties: false,
|
|
20
|
+
properties: {
|
|
21
|
+
style: {
|
|
22
|
+
type: 'object',
|
|
23
|
+
description: 'Css style object to apply to the skeleton.',
|
|
24
|
+
docs: {
|
|
25
|
+
displayType: 'yaml'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
size: {
|
|
29
|
+
type: 'string',
|
|
30
|
+
default: 'medium',
|
|
31
|
+
description: 'Size of the skeleton.',
|
|
32
|
+
enum: [
|
|
33
|
+
'small',
|
|
34
|
+
'medium',
|
|
35
|
+
'large'
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
shape: {
|
|
39
|
+
type: 'string',
|
|
40
|
+
default: 'round',
|
|
41
|
+
description: 'Shape of the skeleton.',
|
|
42
|
+
enum: [
|
|
43
|
+
'square',
|
|
44
|
+
'round'
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
events: {
|
|
50
|
+
type: 'object',
|
|
51
|
+
additionalProperties: false,
|
|
52
|
+
properties: {}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
type: 'object',
|
|
17
|
+
properties: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
additionalProperties: false,
|
|
20
|
+
properties: {
|
|
21
|
+
style: {
|
|
22
|
+
type: 'object',
|
|
23
|
+
description: 'Css style object to apply to the skeleton.',
|
|
24
|
+
docs: {
|
|
25
|
+
displayType: 'yaml'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
size: {
|
|
29
|
+
type: 'string',
|
|
30
|
+
default: 'medium',
|
|
31
|
+
description: 'Size of the skeleton.',
|
|
32
|
+
enum: [
|
|
33
|
+
'small',
|
|
34
|
+
'medium',
|
|
35
|
+
'large'
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
width: {
|
|
39
|
+
type: [
|
|
40
|
+
'number',
|
|
41
|
+
'string'
|
|
42
|
+
],
|
|
43
|
+
description: 'Width of the skeleton.',
|
|
44
|
+
docs: {
|
|
45
|
+
displayType: 'string'
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
events: {
|
|
51
|
+
type: 'object',
|
|
52
|
+
additionalProperties: false,
|
|
53
|
+
properties: {}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
type: 'object',
|
|
17
|
+
properties: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
additionalProperties: false,
|
|
20
|
+
properties: {
|
|
21
|
+
labelStyle: {
|
|
22
|
+
type: 'object',
|
|
23
|
+
description: 'Css style object to apply to the label skeleton.',
|
|
24
|
+
docs: {
|
|
25
|
+
displayType: 'yaml'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
inputStyle: {
|
|
29
|
+
type: 'object',
|
|
30
|
+
description: 'Css style object to apply to the input skeleton.',
|
|
31
|
+
docs: {
|
|
32
|
+
displayType: 'yaml'
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
size: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
default: 'medium',
|
|
38
|
+
description: 'Size of the skeleton.',
|
|
39
|
+
enum: [
|
|
40
|
+
'small',
|
|
41
|
+
'medium',
|
|
42
|
+
'large'
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
width: {
|
|
46
|
+
type: [
|
|
47
|
+
'number',
|
|
48
|
+
'string'
|
|
49
|
+
],
|
|
50
|
+
description: 'Width of the skeleton.',
|
|
51
|
+
docs: {
|
|
52
|
+
displayType: 'string'
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
labelHeight: {
|
|
56
|
+
type: [
|
|
57
|
+
'number',
|
|
58
|
+
'string'
|
|
59
|
+
],
|
|
60
|
+
description: 'Height of the skeleton.',
|
|
61
|
+
docs: {
|
|
62
|
+
displayType: 'string'
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
labelWidth: {
|
|
66
|
+
type: [
|
|
67
|
+
'number',
|
|
68
|
+
'string'
|
|
69
|
+
],
|
|
70
|
+
description: 'Width of the skeleton.',
|
|
71
|
+
docs: {
|
|
72
|
+
displayType: 'string'
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
inputHeight: {
|
|
76
|
+
type: [
|
|
77
|
+
'number',
|
|
78
|
+
'string'
|
|
79
|
+
],
|
|
80
|
+
description: 'Height of the skeleton.',
|
|
81
|
+
docs: {
|
|
82
|
+
displayType: 'string'
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
events: {
|
|
88
|
+
type: 'object',
|
|
89
|
+
additionalProperties: false,
|
|
90
|
+
properties: {}
|
|
91
|
+
}
|
|
92
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
type: 'object',
|
|
17
|
+
properties: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
additionalProperties: false,
|
|
20
|
+
properties: {
|
|
21
|
+
style: {
|
|
22
|
+
type: 'object',
|
|
23
|
+
description: 'Css style object to apply to the skeleton.',
|
|
24
|
+
docs: {
|
|
25
|
+
displayType: 'yaml'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
lines: {
|
|
29
|
+
type: 'number',
|
|
30
|
+
default: 4,
|
|
31
|
+
description: 'Number of paragraph lines of the skeleton.'
|
|
32
|
+
},
|
|
33
|
+
width: {
|
|
34
|
+
type: [
|
|
35
|
+
'number',
|
|
36
|
+
'string'
|
|
37
|
+
],
|
|
38
|
+
description: 'Width of the skeleton.',
|
|
39
|
+
docs: {
|
|
40
|
+
displayType: 'string'
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
events: {
|
|
46
|
+
type: 'object',
|
|
47
|
+
additionalProperties: false,
|
|
48
|
+
properties: {}
|
|
49
|
+
}
|
|
50
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
type: 'object',
|
|
17
|
+
properties: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
additionalProperties: false,
|
|
20
|
+
properties: {
|
|
21
|
+
style: {
|
|
22
|
+
type: 'object',
|
|
23
|
+
description: 'Css style object to apply to the icon.',
|
|
24
|
+
docs: {
|
|
25
|
+
displayType: 'yaml'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
size: {
|
|
29
|
+
type: 'string',
|
|
30
|
+
description: 'Size of the icon spinner.',
|
|
31
|
+
enum: [
|
|
32
|
+
'small',
|
|
33
|
+
'medium',
|
|
34
|
+
'large'
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
events: {
|
|
40
|
+
type: 'object',
|
|
41
|
+
additionalProperties: false,
|
|
42
|
+
properties: {}
|
|
43
|
+
}
|
|
44
|
+
};
|
package/dist/blocks.js
CHANGED
package/dist/schemas.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export { default as ProgressBar } from './blocks/ProgressBar/schema.js';
|
|
16
|
+
export { default as Skeleton } from './blocks/Skeleton/schema.js';
|
|
17
|
+
export { default as SkeletonAvatar } from './blocks/SkeletonAvatar/schema.js';
|
|
18
|
+
export { default as SkeletonButton } from './blocks/SkeletonButton/schema.js';
|
|
19
|
+
export { default as SkeletonInput } from './blocks/SkeletonInput/schema.js';
|
|
20
|
+
export { default as SkeletonParagraph } from './blocks/SkeletonParagraph/schema.js';
|
|
21
|
+
export { default as Spinner } from './blocks/Spinner/schema.js';
|
package/dist/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/blocks-loaders",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Lowdefy loader blocks.",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -34,31 +34,22 @@
|
|
|
34
34
|
"exports": {
|
|
35
35
|
"./*": "./dist/*",
|
|
36
36
|
"./blocks": "./dist/blocks.js",
|
|
37
|
+
"./schemas": "./dist/schemas.js",
|
|
37
38
|
"./types": "./dist/types.js"
|
|
38
39
|
},
|
|
39
40
|
"files": [
|
|
40
41
|
"dist/*"
|
|
41
42
|
],
|
|
42
43
|
"dependencies": {
|
|
43
|
-
"@lowdefy/block-utils": "4.
|
|
44
|
-
"@lowdefy/helpers": "4.
|
|
44
|
+
"@lowdefy/block-utils": "4.6.0",
|
|
45
|
+
"@lowdefy/helpers": "4.6.0",
|
|
45
46
|
"react": "18.2.0",
|
|
46
47
|
"react-dom": "18.2.0"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
|
-
"@emotion/jest": "11.10.5",
|
|
50
|
-
"@lowdefy/block-dev": "4.5.2",
|
|
51
|
-
"@lowdefy/jest-yaml-transform": "4.5.2",
|
|
52
50
|
"@swc/cli": "0.1.63",
|
|
53
51
|
"@swc/core": "1.3.99",
|
|
54
|
-
"
|
|
55
|
-
"@testing-library/dom": "8.19.1",
|
|
56
|
-
"@testing-library/react": "13.4.0",
|
|
57
|
-
"@testing-library/user-event": "14.4.3",
|
|
58
|
-
"copyfiles": "2.4.1",
|
|
59
|
-
"jest": "28.1.3",
|
|
60
|
-
"jest-environment-jsdom": "28.1.3",
|
|
61
|
-
"jest-serializer-html": "7.1.0"
|
|
52
|
+
"copyfiles": "2.4.1"
|
|
62
53
|
},
|
|
63
54
|
"publishConfig": {
|
|
64
55
|
"access": "public"
|
|
@@ -66,7 +57,6 @@
|
|
|
66
57
|
"scripts": {
|
|
67
58
|
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
|
|
68
59
|
"clean": "rm -rf dist",
|
|
69
|
-
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\""
|
|
70
|
-
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
|
|
60
|
+
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\""
|
|
71
61
|
}
|
|
72
62
|
}
|