@appsemble/types 0.28.8 → 0.28.10
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 +20 -2
- 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.10)
|
|
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.10/LICENSE.md) ©
|
|
30
30
|
[Appsemble](https://appsemble.com)
|
package/index.d.ts
CHANGED
|
@@ -286,6 +286,10 @@ export interface Remappers {
|
|
|
286
286
|
* Get a property from the context.
|
|
287
287
|
*/
|
|
288
288
|
context: string;
|
|
289
|
+
/**
|
|
290
|
+
* Get the title of current page.
|
|
291
|
+
*/
|
|
292
|
+
'tab.name': string;
|
|
289
293
|
/**
|
|
290
294
|
* Convert a string to a number.
|
|
291
295
|
*/
|
|
@@ -1375,7 +1379,7 @@ export interface BasePageDefinition {
|
|
|
1375
1379
|
* A subset of page for use within flow pages and tab pages.
|
|
1376
1380
|
*/
|
|
1377
1381
|
export interface SubPage {
|
|
1378
|
-
name:
|
|
1382
|
+
name: Remapper;
|
|
1379
1383
|
roles?: string[];
|
|
1380
1384
|
blocks: BlockDefinition[];
|
|
1381
1385
|
}
|
|
@@ -1437,9 +1441,23 @@ export interface LoopPageDefinition extends BasePageDefinition {
|
|
|
1437
1441
|
*/
|
|
1438
1442
|
retainFlowData?: boolean;
|
|
1439
1443
|
}
|
|
1444
|
+
export interface AlternateTabsDefinition {
|
|
1445
|
+
foreach: SubPage;
|
|
1446
|
+
events: {
|
|
1447
|
+
listen?: Record<string, string>;
|
|
1448
|
+
emit?: Record<string, string>;
|
|
1449
|
+
};
|
|
1450
|
+
}
|
|
1440
1451
|
export interface TabsPageDefinition extends BasePageDefinition {
|
|
1441
1452
|
type: 'tabs';
|
|
1442
|
-
tabs
|
|
1453
|
+
tabs?: SubPage[];
|
|
1454
|
+
definition?: AlternateTabsDefinition;
|
|
1455
|
+
/**
|
|
1456
|
+
* A mapping of actions that can be fired by the page to action handlers.
|
|
1457
|
+
*/
|
|
1458
|
+
actions?: {
|
|
1459
|
+
onLoad?: ActionDefinition;
|
|
1460
|
+
};
|
|
1443
1461
|
}
|
|
1444
1462
|
export type PageDefinition = BasicPageDefinition | FlowPageDefinition | LoopPageDefinition | TabsPageDefinition;
|
|
1445
1463
|
export interface AppDefinition {
|