@appsemble/types 0.28.11 → 0.28.13
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/index.d.ts +16 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#  Appsemble Types
|
|
2
2
|
|
|
3
3
|
> Reusable TypeScript types
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@appsemble/types)
|
|
6
|
-
[](https://gitlab.com/appsemble/appsemble/-/releases/0.28.13)
|
|
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.28.
|
|
29
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.28.13/LICENSE.md) ©
|
|
30
30
|
[Appsemble](https://appsemble.com)
|
package/index.d.ts
CHANGED
|
@@ -92,6 +92,10 @@ export interface BlockDefinition extends ControllerDefinition {
|
|
|
92
92
|
* For floating blocks this property defines where the block should float.
|
|
93
93
|
*/
|
|
94
94
|
position?: 'bottom left' | 'bottom right' | 'bottom' | 'left' | 'right' | 'top left' | 'top right' | 'top';
|
|
95
|
+
/**
|
|
96
|
+
* Whether to render the block or not.
|
|
97
|
+
*/
|
|
98
|
+
hide?: Remapper;
|
|
95
99
|
/**
|
|
96
100
|
* The theme of the block.
|
|
97
101
|
*/
|
|
@@ -369,6 +373,17 @@ export interface Remappers {
|
|
|
369
373
|
* If the input is not an array, the input is returned without any modifications.
|
|
370
374
|
*/
|
|
371
375
|
'array.unique': Remapper;
|
|
376
|
+
/**
|
|
377
|
+
* Flattens an array.
|
|
378
|
+
*
|
|
379
|
+
* The value of the remapper is used for the flattening depth.
|
|
380
|
+
*
|
|
381
|
+
* If the value Remapper result in `undefined` or `null`, the array will be flattened until
|
|
382
|
+
* the last layer.
|
|
383
|
+
*
|
|
384
|
+
* If the input is not an array, the input is returned without any modifications.
|
|
385
|
+
*/
|
|
386
|
+
'array.flatten': Remapper;
|
|
372
387
|
/**
|
|
373
388
|
* Create an icalendar event.
|
|
374
389
|
*/
|
|
@@ -563,7 +578,7 @@ export interface Remappers {
|
|
|
563
578
|
/**
|
|
564
579
|
* The message id pointing to the template string to format.
|
|
565
580
|
*/
|
|
566
|
-
messageId?:
|
|
581
|
+
messageId?: Remapper;
|
|
567
582
|
/**
|
|
568
583
|
* The template default string to format.
|
|
569
584
|
*/
|