@sprucelabs/heartwood-view-controllers 111.1.41 → 111.1.42
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/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationButton.schema.js +2 -2
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationDropdownButton.schema.js +7 -0
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/routerDestination.schema.d.ts +3 -0
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/{destinationSkillViewController.schema.js → routerDestination.schema.js} +5 -5
- package/build/.spruce/schemas/schemas.types.d.ts +17 -7
- package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationButton.schema.js +2 -2
- package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationDropdownButton.schema.js +7 -0
- package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/routerDestination.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/{destinationSkillViewController.schema.js → routerDestination.schema.js} +5 -5
- package/build/esm/.spruce/schemas/schemas.types.d.ts +17 -7
- package/build/esm/index.d.ts +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/schemas/v2021_02_11/navigation.builder.d.ts +26 -0
- package/build/esm/schemas/v2021_02_11/navigationButton.builder.d.ts +26 -0
- package/build/esm/schemas/v2021_02_11/navigationButton.builder.js +2 -18
- package/build/esm/schemas/v2021_02_11/navigationDropdownButton.builder.d.ts +25 -0
- package/build/esm/schemas/v2021_02_11/navigationDropdownButton.builder.js +7 -0
- package/build/esm/schemas/v2021_02_11/routerDestination.builder.d.ts +20 -0
- package/build/esm/schemas/v2021_02_11/routerDestination.builder.js +20 -0
- package/build/esm/tests/utilities/assertSupport.d.ts +2 -2
- package/build/esm/types/heartwood.types.d.ts +1 -4
- package/build/index.d.ts +1 -1
- package/build/index.js +3 -3
- package/build/schemas/v2021_02_11/navigation.builder.d.ts +26 -0
- package/build/schemas/v2021_02_11/navigationButton.builder.d.ts +26 -0
- package/build/schemas/v2021_02_11/navigationButton.builder.js +2 -18
- package/build/schemas/v2021_02_11/navigationDropdownButton.builder.d.ts +25 -0
- package/build/schemas/v2021_02_11/navigationDropdownButton.builder.js +8 -0
- package/build/schemas/v2021_02_11/routerDestination.builder.d.ts +20 -0
- package/build/schemas/v2021_02_11/routerDestination.builder.js +22 -0
- package/build/tests/utilities/assertSupport.d.ts +2 -2
- package/build/types/heartwood.types.d.ts +1 -4
- package/package.json +1 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/destinationSkillViewController.schema.d.ts +0 -3
- package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/destinationSkillViewController.schema.d.ts +0 -3
package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationButton.schema.js
CHANGED
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const schema_1 = require("@sprucelabs/schema");
|
|
7
7
|
const permissionContractReference_schema_1 = __importDefault(require("./permissionContractReference.schema"));
|
|
8
|
-
const
|
|
8
|
+
const routerDestination_schema_1 = __importDefault(require("./routerDestination.schema"));
|
|
9
9
|
const navigationButtonDropdown_schema_1 = __importDefault(require("./navigationButtonDropdown.schema"));
|
|
10
10
|
const navigationButtonSchema = {
|
|
11
11
|
id: 'navigationButton',
|
|
@@ -36,7 +36,7 @@ const navigationButtonSchema = {
|
|
|
36
36
|
'destination': {
|
|
37
37
|
label: 'Destination skill view controller',
|
|
38
38
|
type: 'schema',
|
|
39
|
-
options: { schema:
|
|
39
|
+
options: { schema: routerDestination_schema_1.default, }
|
|
40
40
|
},
|
|
41
41
|
/** Selected. */
|
|
42
42
|
'isEnabled': {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const schema_1 = require("@sprucelabs/schema");
|
|
7
7
|
const text_schema_1 = __importDefault(require("./text.schema"));
|
|
8
8
|
const permissionContractReference_schema_1 = __importDefault(require("./permissionContractReference.schema"));
|
|
9
|
+
const routerDestination_schema_1 = __importDefault(require("./routerDestination.schema"));
|
|
9
10
|
const navigationDropdownButtonSchema = {
|
|
10
11
|
id: 'navigationDropdownButton',
|
|
11
12
|
version: 'v2021_02_11',
|
|
@@ -115,6 +116,12 @@ const navigationDropdownButtonSchema = {
|
|
|
115
116
|
type: 'schema',
|
|
116
117
|
options: { schema: permissionContractReference_schema_1.default, }
|
|
117
118
|
},
|
|
119
|
+
/** Destination skill view controller. */
|
|
120
|
+
'destination': {
|
|
121
|
+
label: 'Destination skill view controller',
|
|
122
|
+
type: 'schema',
|
|
123
|
+
options: { schema: routerDestination_schema_1.default, }
|
|
124
|
+
},
|
|
118
125
|
}
|
|
119
126
|
};
|
|
120
127
|
schema_1.SchemaRegistry.getInstance().trackSchema(navigationDropdownButtonSchema);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const schema_1 = require("@sprucelabs/schema");
|
|
4
|
-
const
|
|
5
|
-
id: '
|
|
4
|
+
const routerDestinationSchema = {
|
|
5
|
+
id: 'routerDestination',
|
|
6
6
|
version: 'v2021_02_11',
|
|
7
7
|
namespace: 'HeartwoodViewControllers',
|
|
8
|
-
name: '',
|
|
8
|
+
name: 'router destination',
|
|
9
9
|
moduleToImportFromWhenRemote: '@sprucelabs/heartwood-view-controllers',
|
|
10
10
|
fields: {
|
|
11
11
|
/** . */
|
|
@@ -21,5 +21,5 @@ const destinationSkillViewControllerSchema = {
|
|
|
21
21
|
},
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
schema_1.SchemaRegistry.getInstance().trackSchema(
|
|
25
|
-
exports.default =
|
|
24
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(routerDestinationSchema);
|
|
25
|
+
exports.default = routerDestinationSchema;
|
|
@@ -2876,15 +2876,15 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
2876
2876
|
}
|
|
2877
2877
|
}
|
|
2878
2878
|
namespace SpruceSchemas.HeartwoodViewControllers.v2021_02_11 {
|
|
2879
|
-
interface
|
|
2879
|
+
interface RouterDestination {
|
|
2880
2880
|
'id': (HeartwoodTypes.SkillViewControllerId);
|
|
2881
2881
|
'args'?: (Record<string, any>) | undefined | null;
|
|
2882
2882
|
}
|
|
2883
|
-
interface
|
|
2884
|
-
id: '
|
|
2883
|
+
interface RouterDestinationSchema extends SpruceSchema.Schema {
|
|
2884
|
+
id: 'routerDestination';
|
|
2885
2885
|
version: 'v2021_02_11';
|
|
2886
2886
|
namespace: 'HeartwoodViewControllers';
|
|
2887
|
-
name: '';
|
|
2887
|
+
name: 'router destination';
|
|
2888
2888
|
moduleToImportFromWhenRemote: '@sprucelabs/heartwood-view-controllers';
|
|
2889
2889
|
fields: {
|
|
2890
2890
|
/** . */
|
|
@@ -2904,7 +2904,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
2904
2904
|
};
|
|
2905
2905
|
};
|
|
2906
2906
|
}
|
|
2907
|
-
interface
|
|
2907
|
+
interface RouterDestinationEntity extends SchemaEntity<SpruceSchemas.HeartwoodViewControllers.v2021_02_11.RouterDestinationSchema> {
|
|
2908
2908
|
}
|
|
2909
2909
|
}
|
|
2910
2910
|
namespace SpruceSchemas.HeartwoodViewControllers.v2021_02_11 {
|
|
@@ -2937,7 +2937,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
2937
2937
|
'id': string;
|
|
2938
2938
|
'viewPermissionContract'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.PermissionContractReference | undefined | null;
|
|
2939
2939
|
/** Destination skill view controller. */
|
|
2940
|
-
'destination'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.
|
|
2940
|
+
'destination'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.RouterDestination | undefined | null;
|
|
2941
2941
|
/** Selected. */
|
|
2942
2942
|
'isEnabled'?: boolean | undefined | null;
|
|
2943
2943
|
/** Label. */
|
|
@@ -3392,7 +3392,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
3392
3392
|
label: 'Destination skill view controller';
|
|
3393
3393
|
type: 'schema';
|
|
3394
3394
|
options: {
|
|
3395
|
-
schema: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.
|
|
3395
|
+
schema: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.RouterDestinationSchema;
|
|
3396
3396
|
};
|
|
3397
3397
|
};
|
|
3398
3398
|
/** Selected. */
|
|
@@ -3514,6 +3514,8 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
3514
3514
|
/** Click handler. */
|
|
3515
3515
|
'onClick'?: ((dropdown: HeartwoodTypes.DropdownController) => Promise<void> | void) | undefined | null;
|
|
3516
3516
|
'viewPermissionContract'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.PermissionContractReference | undefined | null;
|
|
3517
|
+
/** Destination skill view controller. */
|
|
3518
|
+
'destination'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.RouterDestination | undefined | null;
|
|
3517
3519
|
}
|
|
3518
3520
|
interface NavigationDropdownButtonSchema extends SpruceSchema.Schema {
|
|
3519
3521
|
id: 'navigationDropdownButton';
|
|
@@ -4479,6 +4481,14 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
4479
4481
|
schema: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.PermissionContractReferenceSchema;
|
|
4480
4482
|
};
|
|
4481
4483
|
};
|
|
4484
|
+
/** Destination skill view controller. */
|
|
4485
|
+
'destination': {
|
|
4486
|
+
label: 'Destination skill view controller';
|
|
4487
|
+
type: 'schema';
|
|
4488
|
+
options: {
|
|
4489
|
+
schema: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.RouterDestinationSchema;
|
|
4490
|
+
};
|
|
4491
|
+
};
|
|
4482
4492
|
};
|
|
4483
4493
|
}
|
|
4484
4494
|
interface NavigationDropdownButtonEntity extends SchemaEntity<SpruceSchemas.HeartwoodViewControllers.v2021_02_11.NavigationDropdownButtonSchema> {
|
package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationButton.schema.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
2
|
import permissionContractReferenceSchema_v2021_02_11 from './permissionContractReference.schema.js';
|
|
3
|
-
import
|
|
3
|
+
import routerDestinationSchema_v2021_02_11 from './routerDestination.schema.js';
|
|
4
4
|
import navigationButtonDropdownSchema_v2021_02_11 from './navigationButtonDropdown.schema.js';
|
|
5
5
|
const navigationButtonSchema = {
|
|
6
6
|
id: 'navigationButton',
|
|
@@ -31,7 +31,7 @@ const navigationButtonSchema = {
|
|
|
31
31
|
'destination': {
|
|
32
32
|
label: 'Destination skill view controller',
|
|
33
33
|
type: 'schema',
|
|
34
|
-
options: { schema:
|
|
34
|
+
options: { schema: routerDestinationSchema_v2021_02_11, }
|
|
35
35
|
},
|
|
36
36
|
/** Selected. */
|
|
37
37
|
'isEnabled': {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
2
|
import textSchema_v2021_02_11 from './text.schema.js';
|
|
3
3
|
import permissionContractReferenceSchema_v2021_02_11 from './permissionContractReference.schema.js';
|
|
4
|
+
import routerDestinationSchema_v2021_02_11 from './routerDestination.schema.js';
|
|
4
5
|
const navigationDropdownButtonSchema = {
|
|
5
6
|
id: 'navigationDropdownButton',
|
|
6
7
|
version: 'v2021_02_11',
|
|
@@ -110,6 +111,12 @@ const navigationDropdownButtonSchema = {
|
|
|
110
111
|
type: 'schema',
|
|
111
112
|
options: { schema: permissionContractReferenceSchema_v2021_02_11, }
|
|
112
113
|
},
|
|
114
|
+
/** Destination skill view controller. */
|
|
115
|
+
'destination': {
|
|
116
|
+
label: 'Destination skill view controller',
|
|
117
|
+
type: 'schema',
|
|
118
|
+
options: { schema: routerDestinationSchema_v2021_02_11, }
|
|
119
|
+
},
|
|
113
120
|
}
|
|
114
121
|
};
|
|
115
122
|
SchemaRegistry.getInstance().trackSchema(navigationDropdownButtonSchema);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
-
const
|
|
3
|
-
id: '
|
|
2
|
+
const routerDestinationSchema = {
|
|
3
|
+
id: 'routerDestination',
|
|
4
4
|
version: 'v2021_02_11',
|
|
5
5
|
namespace: 'HeartwoodViewControllers',
|
|
6
|
-
name: '',
|
|
6
|
+
name: 'router destination',
|
|
7
7
|
moduleToImportFromWhenRemote: '@sprucelabs/heartwood-view-controllers',
|
|
8
8
|
fields: {
|
|
9
9
|
/** . */
|
|
@@ -19,5 +19,5 @@ const destinationSkillViewControllerSchema = {
|
|
|
19
19
|
},
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
SchemaRegistry.getInstance().trackSchema(
|
|
23
|
-
export default
|
|
22
|
+
SchemaRegistry.getInstance().trackSchema(routerDestinationSchema);
|
|
23
|
+
export default routerDestinationSchema;
|
|
@@ -2876,15 +2876,15 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
2876
2876
|
}
|
|
2877
2877
|
}
|
|
2878
2878
|
namespace SpruceSchemas.HeartwoodViewControllers.v2021_02_11 {
|
|
2879
|
-
interface
|
|
2879
|
+
interface RouterDestination {
|
|
2880
2880
|
'id': (HeartwoodTypes.SkillViewControllerId);
|
|
2881
2881
|
'args'?: (Record<string, any>) | undefined | null;
|
|
2882
2882
|
}
|
|
2883
|
-
interface
|
|
2884
|
-
id: '
|
|
2883
|
+
interface RouterDestinationSchema extends SpruceSchema.Schema {
|
|
2884
|
+
id: 'routerDestination';
|
|
2885
2885
|
version: 'v2021_02_11';
|
|
2886
2886
|
namespace: 'HeartwoodViewControllers';
|
|
2887
|
-
name: '';
|
|
2887
|
+
name: 'router destination';
|
|
2888
2888
|
moduleToImportFromWhenRemote: '@sprucelabs/heartwood-view-controllers';
|
|
2889
2889
|
fields: {
|
|
2890
2890
|
/** . */
|
|
@@ -2904,7 +2904,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
2904
2904
|
};
|
|
2905
2905
|
};
|
|
2906
2906
|
}
|
|
2907
|
-
interface
|
|
2907
|
+
interface RouterDestinationEntity extends SchemaEntity<SpruceSchemas.HeartwoodViewControllers.v2021_02_11.RouterDestinationSchema> {
|
|
2908
2908
|
}
|
|
2909
2909
|
}
|
|
2910
2910
|
namespace SpruceSchemas.HeartwoodViewControllers.v2021_02_11 {
|
|
@@ -2937,7 +2937,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
2937
2937
|
'id': string;
|
|
2938
2938
|
'viewPermissionContract'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.PermissionContractReference | undefined | null;
|
|
2939
2939
|
/** Destination skill view controller. */
|
|
2940
|
-
'destination'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.
|
|
2940
|
+
'destination'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.RouterDestination | undefined | null;
|
|
2941
2941
|
/** Selected. */
|
|
2942
2942
|
'isEnabled'?: boolean | undefined | null;
|
|
2943
2943
|
/** Label. */
|
|
@@ -3392,7 +3392,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
3392
3392
|
label: 'Destination skill view controller';
|
|
3393
3393
|
type: 'schema';
|
|
3394
3394
|
options: {
|
|
3395
|
-
schema: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.
|
|
3395
|
+
schema: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.RouterDestinationSchema;
|
|
3396
3396
|
};
|
|
3397
3397
|
};
|
|
3398
3398
|
/** Selected. */
|
|
@@ -3514,6 +3514,8 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
3514
3514
|
/** Click handler. */
|
|
3515
3515
|
'onClick'?: ((dropdown: HeartwoodTypes.DropdownController) => Promise<void> | void) | undefined | null;
|
|
3516
3516
|
'viewPermissionContract'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.PermissionContractReference | undefined | null;
|
|
3517
|
+
/** Destination skill view controller. */
|
|
3518
|
+
'destination'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.RouterDestination | undefined | null;
|
|
3517
3519
|
}
|
|
3518
3520
|
interface NavigationDropdownButtonSchema extends SpruceSchema.Schema {
|
|
3519
3521
|
id: 'navigationDropdownButton';
|
|
@@ -4479,6 +4481,14 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
4479
4481
|
schema: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.PermissionContractReferenceSchema;
|
|
4480
4482
|
};
|
|
4481
4483
|
};
|
|
4484
|
+
/** Destination skill view controller. */
|
|
4485
|
+
'destination': {
|
|
4486
|
+
label: 'Destination skill view controller';
|
|
4487
|
+
type: 'schema';
|
|
4488
|
+
options: {
|
|
4489
|
+
schema: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.RouterDestinationSchema;
|
|
4490
|
+
};
|
|
4491
|
+
};
|
|
4482
4492
|
};
|
|
4483
4493
|
}
|
|
4484
4494
|
interface NavigationDropdownButtonEntity extends SchemaEntity<SpruceSchemas.HeartwoodViewControllers.v2021_02_11.NavigationDropdownButtonSchema> {
|
package/build/esm/index.d.ts
CHANGED
|
@@ -185,7 +185,6 @@ export { default as ToolBeltStateMachine } from './toolBelts/ToolBeltStateMachin
|
|
|
185
185
|
export { default as navigationSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigation.schema';
|
|
186
186
|
export { default as navigationButtonSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationButton.schema';
|
|
187
187
|
export { default as permissionContractReferenceSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/permissionContractReference.schema';
|
|
188
|
-
export { default as destinationSkillViewControllerSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/destinationSkillViewController.schema';
|
|
189
188
|
export { default as countdownTimerSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/countdownTimer.schema';
|
|
190
189
|
export { default as progressNavigatorSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/progressNavigator.schema';
|
|
191
190
|
export { default as progressNavigatorStepSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/progressNavigatorStep.schema';
|
|
@@ -195,4 +194,5 @@ export { default as barChartDataPointSchema } from './.spruce/schemas/heartwoodV
|
|
|
195
194
|
export { default as barChartDataSetSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/barChartDataSet.schema';
|
|
196
195
|
export { default as navigationButtonDropdownSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationButtonDropdown.schema';
|
|
197
196
|
export { default as navigationDropdownButtonSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationDropdownButton.schema';
|
|
197
|
+
export { default as routerDestinationSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/routerDestination.schema';
|
|
198
198
|
export * from './toolBelts/ToolBeltStateMachine';
|
package/build/esm/index.js
CHANGED
|
@@ -184,7 +184,6 @@ export { default as ToolBeltStateMachine } from './toolBelts/ToolBeltStateMachin
|
|
|
184
184
|
export { default as navigationSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigation.schema.js';
|
|
185
185
|
export { default as navigationButtonSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationButton.schema.js';
|
|
186
186
|
export { default as permissionContractReferenceSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/permissionContractReference.schema.js';
|
|
187
|
-
export { default as destinationSkillViewControllerSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/destinationSkillViewController.schema.js';
|
|
188
187
|
export { default as countdownTimerSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/countdownTimer.schema.js';
|
|
189
188
|
export { default as progressNavigatorSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/progressNavigator.schema.js';
|
|
190
189
|
export { default as progressNavigatorStepSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/progressNavigatorStep.schema.js';
|
|
@@ -194,4 +193,5 @@ export { default as barChartDataPointSchema } from './.spruce/schemas/heartwoodV
|
|
|
194
193
|
export { default as barChartDataSetSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/barChartDataSet.schema.js';
|
|
195
194
|
export { default as navigationButtonDropdownSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationButtonDropdown.schema.js';
|
|
196
195
|
export { default as navigationDropdownButtonSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationDropdownButton.schema.js';
|
|
196
|
+
export { default as routerDestinationSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/routerDestination.schema.js';
|
|
197
197
|
export * from './toolBelts/ToolBeltStateMachine.js';
|
|
@@ -61,6 +61,31 @@ declare const _default: {
|
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
|
+
destination: {
|
|
65
|
+
type: "schema";
|
|
66
|
+
label: string;
|
|
67
|
+
options: {
|
|
68
|
+
schema: {
|
|
69
|
+
id: string;
|
|
70
|
+
name: string;
|
|
71
|
+
fields: {
|
|
72
|
+
id: {
|
|
73
|
+
type: "raw";
|
|
74
|
+
isRequired: true;
|
|
75
|
+
options: {
|
|
76
|
+
valueType: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
args: {
|
|
80
|
+
type: "raw";
|
|
81
|
+
options: {
|
|
82
|
+
valueType: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
64
89
|
onClick: {
|
|
65
90
|
type: "raw";
|
|
66
91
|
label: string;
|
|
@@ -515,6 +540,7 @@ declare const _default: {
|
|
|
515
540
|
options: {
|
|
516
541
|
schema: {
|
|
517
542
|
id: string;
|
|
543
|
+
name: string;
|
|
518
544
|
fields: {
|
|
519
545
|
id: {
|
|
520
546
|
type: "raw";
|
|
@@ -34,6 +34,31 @@ declare const _default: {
|
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
+
destination: {
|
|
38
|
+
type: "schema";
|
|
39
|
+
label: string;
|
|
40
|
+
options: {
|
|
41
|
+
schema: {
|
|
42
|
+
id: string;
|
|
43
|
+
name: string;
|
|
44
|
+
fields: {
|
|
45
|
+
id: {
|
|
46
|
+
type: "raw";
|
|
47
|
+
isRequired: true;
|
|
48
|
+
options: {
|
|
49
|
+
valueType: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
args: {
|
|
53
|
+
type: "raw";
|
|
54
|
+
options: {
|
|
55
|
+
valueType: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
37
62
|
onClick: {
|
|
38
63
|
type: "raw";
|
|
39
64
|
label: string;
|
|
@@ -488,6 +513,7 @@ declare const _default: {
|
|
|
488
513
|
options: {
|
|
489
514
|
schema: {
|
|
490
515
|
id: string;
|
|
516
|
+
name: string;
|
|
491
517
|
fields: {
|
|
492
518
|
id: {
|
|
493
519
|
type: "raw";
|
|
@@ -3,6 +3,7 @@ import { buttonFields } from '../../constants.js';
|
|
|
3
3
|
import dropdownBuilder from './dropdown.builder.js';
|
|
4
4
|
import navigationDropdownButtonBuilder from './navigationDropdownButton.builder.js';
|
|
5
5
|
import permissionContractReferenceBuilder from './permissionContractReference.builder.js';
|
|
6
|
+
import routerDestinationBuilder from './routerDestination.builder.js';
|
|
6
7
|
export default buildSchema({
|
|
7
8
|
id: 'navigationButton',
|
|
8
9
|
name: 'Navigation button',
|
|
@@ -18,24 +19,7 @@ export default buildSchema({
|
|
|
18
19
|
type: 'schema',
|
|
19
20
|
label: 'Destination skill view controller',
|
|
20
21
|
options: {
|
|
21
|
-
schema:
|
|
22
|
-
id: 'destinationSkillViewController',
|
|
23
|
-
fields: {
|
|
24
|
-
id: {
|
|
25
|
-
type: 'raw',
|
|
26
|
-
isRequired: true,
|
|
27
|
-
options: {
|
|
28
|
-
valueType: 'HeartwoodTypes.SkillViewControllerId',
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
args: {
|
|
32
|
-
type: 'raw',
|
|
33
|
-
options: {
|
|
34
|
-
valueType: 'Record<string, any>',
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
}),
|
|
22
|
+
schema: routerDestinationBuilder,
|
|
39
23
|
},
|
|
40
24
|
} }, pickFields(buttonFields, ['isEnabled', 'label', 'onClick'])), { dropdown: {
|
|
41
25
|
type: 'schema',
|
|
@@ -19,6 +19,31 @@ declare const _default: {
|
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
+
destination: {
|
|
23
|
+
type: "schema";
|
|
24
|
+
label: string;
|
|
25
|
+
options: {
|
|
26
|
+
schema: {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
fields: {
|
|
30
|
+
id: {
|
|
31
|
+
type: "raw";
|
|
32
|
+
isRequired: true;
|
|
33
|
+
options: {
|
|
34
|
+
valueType: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
args: {
|
|
38
|
+
type: "raw";
|
|
39
|
+
options: {
|
|
40
|
+
valueType: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
22
47
|
onClick: {
|
|
23
48
|
type: "raw";
|
|
24
49
|
label: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { buildSchema } from '@sprucelabs/schema';
|
|
2
2
|
import dropdownButtonBuilder from './dropdownButton.builder.js';
|
|
3
3
|
import permissionContractReferenceBuilder from './permissionContractReference.builder.js';
|
|
4
|
+
import routerDestinationBuilder from './routerDestination.builder.js';
|
|
4
5
|
export default buildSchema({
|
|
5
6
|
id: 'navigationDropdownButton',
|
|
6
7
|
name: 'Navigation dropdown button',
|
|
@@ -9,5 +10,11 @@ export default buildSchema({
|
|
|
9
10
|
options: {
|
|
10
11
|
schema: permissionContractReferenceBuilder,
|
|
11
12
|
},
|
|
13
|
+
}, destination: {
|
|
14
|
+
type: 'schema',
|
|
15
|
+
label: 'Destination skill view controller',
|
|
16
|
+
options: {
|
|
17
|
+
schema: routerDestinationBuilder,
|
|
18
|
+
},
|
|
12
19
|
} }),
|
|
13
20
|
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
fields: {
|
|
5
|
+
id: {
|
|
6
|
+
type: "raw";
|
|
7
|
+
isRequired: true;
|
|
8
|
+
options: {
|
|
9
|
+
valueType: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
args: {
|
|
13
|
+
type: "raw";
|
|
14
|
+
options: {
|
|
15
|
+
valueType: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { buildSchema } from '@sprucelabs/schema';
|
|
2
|
+
export default buildSchema({
|
|
3
|
+
id: 'routerDestination',
|
|
4
|
+
name: 'router destination',
|
|
5
|
+
fields: {
|
|
6
|
+
id: {
|
|
7
|
+
type: 'raw',
|
|
8
|
+
isRequired: true,
|
|
9
|
+
options: {
|
|
10
|
+
valueType: 'HeartwoodTypes.SkillViewControllerId',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
args: {
|
|
14
|
+
type: 'raw',
|
|
15
|
+
options: {
|
|
16
|
+
valueType: 'Record<string, any>',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SelectChoice } from '@sprucelabs/schema';
|
|
2
2
|
import { SpruceSchemas } from '@sprucelabs/spruce-core-schemas';
|
|
3
|
-
import { ConfirmOptions, ViewController, Router, CardSection, Card, TriggerRenderHandler,
|
|
3
|
+
import { ConfirmOptions, ViewController, Router, CardSection, Card, TriggerRenderHandler, RouterDestination } from '../../types/heartwood.types';
|
|
4
4
|
export type Vc = ViewController<any>;
|
|
5
5
|
export declare const WAIT_TIMEOUT = 5000;
|
|
6
6
|
export interface AssertConfirmViewController {
|
|
@@ -17,7 +17,7 @@ export interface SelectViewController {
|
|
|
17
17
|
export interface AssertRedirectOptions {
|
|
18
18
|
router: Router;
|
|
19
19
|
action: () => Promise<any> | any;
|
|
20
|
-
destination?:
|
|
20
|
+
destination?: RouterDestination;
|
|
21
21
|
}
|
|
22
22
|
export interface ButtonViewController {
|
|
23
23
|
render(): SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Button;
|
|
@@ -214,10 +214,7 @@ export type AppControllerId = keyof AppControllerMap;
|
|
|
214
214
|
export interface RedirectOptions {
|
|
215
215
|
shouldTrackHistory?: boolean;
|
|
216
216
|
}
|
|
217
|
-
export
|
|
218
|
-
id: SkillViewControllerId;
|
|
219
|
-
args?: Record<string, any>;
|
|
220
|
-
}
|
|
217
|
+
export type RouterDestination = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.RouterDestination;
|
|
221
218
|
export interface Router {
|
|
222
219
|
redirect<Id extends SkillViewControllerId>(id: Id, args?: SkillViewControllerArgs<Id>, options?: RedirectOptions): Promise<SkillViewControllerMap[Id]>;
|
|
223
220
|
back(): Promise<SkillViewController | undefined>;
|
package/build/index.d.ts
CHANGED
|
@@ -185,7 +185,6 @@ export { default as ToolBeltStateMachine } from './toolBelts/ToolBeltStateMachin
|
|
|
185
185
|
export { default as navigationSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigation.schema';
|
|
186
186
|
export { default as navigationButtonSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationButton.schema';
|
|
187
187
|
export { default as permissionContractReferenceSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/permissionContractReference.schema';
|
|
188
|
-
export { default as destinationSkillViewControllerSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/destinationSkillViewController.schema';
|
|
189
188
|
export { default as countdownTimerSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/countdownTimer.schema';
|
|
190
189
|
export { default as progressNavigatorSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/progressNavigator.schema';
|
|
191
190
|
export { default as progressNavigatorStepSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/progressNavigatorStep.schema';
|
|
@@ -195,4 +194,5 @@ export { default as barChartDataPointSchema } from './.spruce/schemas/heartwoodV
|
|
|
195
194
|
export { default as barChartDataSetSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/barChartDataSet.schema';
|
|
196
195
|
export { default as navigationButtonDropdownSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationButtonDropdown.schema';
|
|
197
196
|
export { default as navigationDropdownButtonSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationDropdownButton.schema';
|
|
197
|
+
export { default as routerDestinationSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/routerDestination.schema';
|
|
198
198
|
export * from './toolBelts/ToolBeltStateMachine';
|
package/build/index.js
CHANGED
|
@@ -20,7 +20,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
20
20
|
exports.dialogSchema = exports.buttonSchema = exports.lineIconSchema = exports.fancyIconSchema = exports.selectInputSchema = exports.skillViewSchema = exports.bigFormSchema = exports.calendarEventColorsSchema = exports.buildSkillView = exports.buildForm = exports.buildBigForm = exports.AuthenticatorImpl = exports.PolarAreaViewController = exports.MockActiveRecordCard = exports.activeRecordCardAssert = exports.buildActiveRecordList = exports.buildActiveRecordCard = exports.AbstractInputViewController = exports.AutocompleteInputViewController = exports.AbstractCalendarEventViewController = exports.RatingsViewController = exports.ProgressViewController = exports.StatsViewController = exports.FeedViewController = exports.ActiveRecordListViewController = exports.ActiveRecordCardViewController = exports.TalkingSprucebotViewController = exports.ButtonBarViewController = exports.CalendarViewController = exports.SwipeCardViewControllerImpl = exports.SwipeViewControllerImpl = exports.PagerViewController = exports.ProgressNavigatorViewController = exports.CountdownTimerViewController = exports.FormBuilderCardViewControllerImpl = exports.LoginViewController = exports.BarChartViewController = exports.ToolBeltViewController = exports.FormViewControllerImpl = exports.ListCellViewController = exports.ListRowViewController = exports.ListViewController = exports.NavigationViewController = exports.DialogViewController = exports.ConfirmViewController = exports.CardViewControllerImpl = exports.ButtonGroupViewController = exports.AbstractAppController = exports.AbstractViewController = exports.AbstractSkillViewController = void 0;
|
|
21
21
|
exports.ratingsInputSchema = exports.listRatingsInputSchema = exports.ratingsSchema = exports.progressSchema = exports.statsStatSchema = exports.statsSchema = exports.toggleInputSchema = exports.listToggleInputSchema = exports.addressInputSchema = exports.buttonBarButtonSchema = exports.buttonBarSchema = exports.toolBeltToolSchema = exports.toolBeltSchema = exports.calendarTimeSchema = exports.calendarPersonSchema = exports.calendarSchema = exports.themePropsSchema = exports.themeSchema = exports.cardFooterButtonSchema = exports.criticalErrorSchema = exports.sprucebotTypedMessageSentenceSchema = exports.sprucebotTypedMessageAvatarSchema = exports.selectInputChoiceSchema = exports.calendarEventColorOverrideSchema = exports.portalSchema = exports.listTextInputSchema = exports.listSelectInputSchema = exports.listCellButtonSchema = exports.dropdownButtonSchema = exports.bigFormSectionSchema = exports.textInputSchema = exports.phoneInputSchema = exports.inputSchema = exports.dropdownSchema = exports.sprucebotTypedMessageSchema = exports.talkingSprucebotSchema = exports.sprucebotAvatarSchema = exports.formBuilderImportExportObjectSchema = exports.listCellSchema = exports.listRowSchema = exports.listSchema = exports.layoutSchema = exports.cardSectionSchema = exports.cardHeaderSchema = exports.cardFooterSchema = exports.cardBodySchema = exports.cardSchema = exports.formSectionSchema = exports.formSchema = exports.textSchema = void 0;
|
|
22
22
|
exports.barChartAssert = exports.progressNavigatorAssert = exports.countdownTimerInteractor = exports.countdownTimerAssert = exports.calendarInteractor = exports.interactor = exports.normalizeScopeFromVc = exports.autocompleteInteractor = exports.formAssert = exports.autocompleteAssert = exports.listAssert = exports.buttonAssert = exports.deviceAssert = exports.navigationAssert = exports.toolBeltAssert = exports.toastAssert = exports.vcPluginAssert = exports.vcDurationAssert = exports.pagerAssert = exports.vcAssert = exports.vcAssertUtil = exports.feedAssert = exports.feedInteractor = exports.normalizeFormSectionFieldNamesUtil = exports.ViewControllerError = exports.SpyDevice = exports.StubStorage = exports.ViewControllerFactory = exports.ViewControllerImporter = exports.ViewControllerExporter = exports.pagerSchema = exports.polarAreaDataItemSchema = exports.polarAreaSchema = exports.inputButtonSchema = exports.mapPinSchema = exports.mapSchema = exports.latLngSchema = exports.formBuilderImportExportPageSchema = exports.autocompleteSuggestionSchema = exports.autocompleteInputSchema = exports.feedSchema = exports.calendarShiftSchema = exports.receiptTotalSchema = exports.receiptSectionSchema = exports.receiptLineItemSchema = exports.receiptHeaderSchema = exports.receiptSchema = exports.listDateInputSchema = exports.calendarSelectedDateSchema = exports.calendarEventSchema = void 0;
|
|
23
|
-
exports.navigationDropdownButtonSchema = exports.navigationButtonDropdownSchema = exports.barChartDataSetSchema = exports.barChartDataPointSchema = exports.barChartSchema = exports.progressDetailsSchema = exports.progressNavigatorStepSchema = exports.progressNavigatorSchema = exports.countdownTimerSchema = exports.
|
|
23
|
+
exports.routerDestinationSchema = exports.navigationDropdownButtonSchema = exports.navigationButtonDropdownSchema = exports.barChartDataSetSchema = exports.barChartDataPointSchema = exports.barChartSchema = exports.progressDetailsSchema = exports.progressNavigatorStepSchema = exports.progressNavigatorSchema = exports.countdownTimerSchema = exports.permissionContractReferenceSchema = exports.navigationButtonSchema = exports.navigationSchema = exports.ToolBeltStateMachine = exports.removeUniversalViewOptions = exports.buildSkillViewLayout = exports.splitCardsIntoLayouts = exports.listUtil = exports.mapInteractor = exports.mapAssert = exports.renderUtil = exports.routerTestPatcher = exports.dialogTestPatcher = exports.confirmTestPatcher = exports.calendarSeeder = exports.interactionUtil = void 0;
|
|
24
24
|
__exportStar(require("./constants"), exports);
|
|
25
25
|
__exportStar(require("./types/heartwood.types"), exports);
|
|
26
26
|
__exportStar(require("./utilities/removeUniversalViewOptions"), exports);
|
|
@@ -373,8 +373,6 @@ var navigationButton_schema_1 = require("./.spruce/schemas/heartwoodViewControll
|
|
|
373
373
|
Object.defineProperty(exports, "navigationButtonSchema", { enumerable: true, get: function () { return __importDefault(navigationButton_schema_1).default; } });
|
|
374
374
|
var permissionContractReference_schema_1 = require("./.spruce/schemas/heartwoodViewControllers/v2021_02_11/permissionContractReference.schema");
|
|
375
375
|
Object.defineProperty(exports, "permissionContractReferenceSchema", { enumerable: true, get: function () { return __importDefault(permissionContractReference_schema_1).default; } });
|
|
376
|
-
var destinationSkillViewController_schema_1 = require("./.spruce/schemas/heartwoodViewControllers/v2021_02_11/destinationSkillViewController.schema");
|
|
377
|
-
Object.defineProperty(exports, "destinationSkillViewControllerSchema", { enumerable: true, get: function () { return __importDefault(destinationSkillViewController_schema_1).default; } });
|
|
378
376
|
var countdownTimer_schema_1 = require("./.spruce/schemas/heartwoodViewControllers/v2021_02_11/countdownTimer.schema");
|
|
379
377
|
Object.defineProperty(exports, "countdownTimerSchema", { enumerable: true, get: function () { return __importDefault(countdownTimer_schema_1).default; } });
|
|
380
378
|
var progressNavigator_schema_1 = require("./.spruce/schemas/heartwoodViewControllers/v2021_02_11/progressNavigator.schema");
|
|
@@ -393,4 +391,6 @@ var navigationButtonDropdown_schema_1 = require("./.spruce/schemas/heartwoodView
|
|
|
393
391
|
Object.defineProperty(exports, "navigationButtonDropdownSchema", { enumerable: true, get: function () { return __importDefault(navigationButtonDropdown_schema_1).default; } });
|
|
394
392
|
var navigationDropdownButton_schema_1 = require("./.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationDropdownButton.schema");
|
|
395
393
|
Object.defineProperty(exports, "navigationDropdownButtonSchema", { enumerable: true, get: function () { return __importDefault(navigationDropdownButton_schema_1).default; } });
|
|
394
|
+
var routerDestination_schema_1 = require("./.spruce/schemas/heartwoodViewControllers/v2021_02_11/routerDestination.schema");
|
|
395
|
+
Object.defineProperty(exports, "routerDestinationSchema", { enumerable: true, get: function () { return __importDefault(routerDestination_schema_1).default; } });
|
|
396
396
|
__exportStar(require("./toolBelts/ToolBeltStateMachine"), exports);
|
|
@@ -61,6 +61,31 @@ declare const _default: {
|
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
|
+
destination: {
|
|
65
|
+
type: "schema";
|
|
66
|
+
label: string;
|
|
67
|
+
options: {
|
|
68
|
+
schema: {
|
|
69
|
+
id: string;
|
|
70
|
+
name: string;
|
|
71
|
+
fields: {
|
|
72
|
+
id: {
|
|
73
|
+
type: "raw";
|
|
74
|
+
isRequired: true;
|
|
75
|
+
options: {
|
|
76
|
+
valueType: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
args: {
|
|
80
|
+
type: "raw";
|
|
81
|
+
options: {
|
|
82
|
+
valueType: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
64
89
|
onClick: {
|
|
65
90
|
type: "raw";
|
|
66
91
|
label: string;
|
|
@@ -515,6 +540,7 @@ declare const _default: {
|
|
|
515
540
|
options: {
|
|
516
541
|
schema: {
|
|
517
542
|
id: string;
|
|
543
|
+
name: string;
|
|
518
544
|
fields: {
|
|
519
545
|
id: {
|
|
520
546
|
type: "raw";
|
|
@@ -34,6 +34,31 @@ declare const _default: {
|
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
+
destination: {
|
|
38
|
+
type: "schema";
|
|
39
|
+
label: string;
|
|
40
|
+
options: {
|
|
41
|
+
schema: {
|
|
42
|
+
id: string;
|
|
43
|
+
name: string;
|
|
44
|
+
fields: {
|
|
45
|
+
id: {
|
|
46
|
+
type: "raw";
|
|
47
|
+
isRequired: true;
|
|
48
|
+
options: {
|
|
49
|
+
valueType: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
args: {
|
|
53
|
+
type: "raw";
|
|
54
|
+
options: {
|
|
55
|
+
valueType: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
37
62
|
onClick: {
|
|
38
63
|
type: "raw";
|
|
39
64
|
label: string;
|
|
@@ -488,6 +513,7 @@ declare const _default: {
|
|
|
488
513
|
options: {
|
|
489
514
|
schema: {
|
|
490
515
|
id: string;
|
|
516
|
+
name: string;
|
|
491
517
|
fields: {
|
|
492
518
|
id: {
|
|
493
519
|
type: "raw";
|
|
@@ -8,6 +8,7 @@ const constants_1 = require("../../constants");
|
|
|
8
8
|
const dropdown_builder_1 = __importDefault(require("./dropdown.builder"));
|
|
9
9
|
const navigationDropdownButton_builder_1 = __importDefault(require("./navigationDropdownButton.builder"));
|
|
10
10
|
const permissionContractReference_builder_1 = __importDefault(require("./permissionContractReference.builder"));
|
|
11
|
+
const routerDestination_builder_1 = __importDefault(require("./routerDestination.builder"));
|
|
11
12
|
exports.default = (0, schema_1.buildSchema)({
|
|
12
13
|
id: 'navigationButton',
|
|
13
14
|
name: 'Navigation button',
|
|
@@ -30,24 +31,7 @@ exports.default = (0, schema_1.buildSchema)({
|
|
|
30
31
|
type: 'schema',
|
|
31
32
|
label: 'Destination skill view controller',
|
|
32
33
|
options: {
|
|
33
|
-
schema:
|
|
34
|
-
id: 'destinationSkillViewController',
|
|
35
|
-
fields: {
|
|
36
|
-
id: {
|
|
37
|
-
type: 'raw',
|
|
38
|
-
isRequired: true,
|
|
39
|
-
options: {
|
|
40
|
-
valueType: 'HeartwoodTypes.SkillViewControllerId',
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
args: {
|
|
44
|
-
type: 'raw',
|
|
45
|
-
options: {
|
|
46
|
-
valueType: 'Record<string, any>',
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
}),
|
|
34
|
+
schema: routerDestination_builder_1.default,
|
|
51
35
|
},
|
|
52
36
|
},
|
|
53
37
|
...(0, schema_1.pickFields)(constants_1.buttonFields, ['isEnabled', 'label', 'onClick']),
|
|
@@ -19,6 +19,31 @@ declare const _default: {
|
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
+
destination: {
|
|
23
|
+
type: "schema";
|
|
24
|
+
label: string;
|
|
25
|
+
options: {
|
|
26
|
+
schema: {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
fields: {
|
|
30
|
+
id: {
|
|
31
|
+
type: "raw";
|
|
32
|
+
isRequired: true;
|
|
33
|
+
options: {
|
|
34
|
+
valueType: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
args: {
|
|
38
|
+
type: "raw";
|
|
39
|
+
options: {
|
|
40
|
+
valueType: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
22
47
|
onClick: {
|
|
23
48
|
type: "raw";
|
|
24
49
|
label: string;
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const schema_1 = require("@sprucelabs/schema");
|
|
7
7
|
const dropdownButton_builder_1 = __importDefault(require("./dropdownButton.builder"));
|
|
8
8
|
const permissionContractReference_builder_1 = __importDefault(require("./permissionContractReference.builder"));
|
|
9
|
+
const routerDestination_builder_1 = __importDefault(require("./routerDestination.builder"));
|
|
9
10
|
exports.default = (0, schema_1.buildSchema)({
|
|
10
11
|
id: 'navigationDropdownButton',
|
|
11
12
|
name: 'Navigation dropdown button',
|
|
@@ -17,5 +18,12 @@ exports.default = (0, schema_1.buildSchema)({
|
|
|
17
18
|
schema: permissionContractReference_builder_1.default,
|
|
18
19
|
},
|
|
19
20
|
},
|
|
21
|
+
destination: {
|
|
22
|
+
type: 'schema',
|
|
23
|
+
label: 'Destination skill view controller',
|
|
24
|
+
options: {
|
|
25
|
+
schema: routerDestination_builder_1.default,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
20
28
|
},
|
|
21
29
|
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
fields: {
|
|
5
|
+
id: {
|
|
6
|
+
type: "raw";
|
|
7
|
+
isRequired: true;
|
|
8
|
+
options: {
|
|
9
|
+
valueType: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
args: {
|
|
13
|
+
type: "raw";
|
|
14
|
+
options: {
|
|
15
|
+
valueType: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema_1 = require("@sprucelabs/schema");
|
|
4
|
+
exports.default = (0, schema_1.buildSchema)({
|
|
5
|
+
id: 'routerDestination',
|
|
6
|
+
name: 'router destination',
|
|
7
|
+
fields: {
|
|
8
|
+
id: {
|
|
9
|
+
type: 'raw',
|
|
10
|
+
isRequired: true,
|
|
11
|
+
options: {
|
|
12
|
+
valueType: 'HeartwoodTypes.SkillViewControllerId',
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
args: {
|
|
16
|
+
type: 'raw',
|
|
17
|
+
options: {
|
|
18
|
+
valueType: 'Record<string, any>',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SelectChoice } from '@sprucelabs/schema';
|
|
2
2
|
import { SpruceSchemas } from '@sprucelabs/spruce-core-schemas';
|
|
3
|
-
import { ConfirmOptions, ViewController, Router, CardSection, Card, TriggerRenderHandler,
|
|
3
|
+
import { ConfirmOptions, ViewController, Router, CardSection, Card, TriggerRenderHandler, RouterDestination } from '../../types/heartwood.types';
|
|
4
4
|
export type Vc = ViewController<any>;
|
|
5
5
|
export declare const WAIT_TIMEOUT = 5000;
|
|
6
6
|
export interface AssertConfirmViewController {
|
|
@@ -17,7 +17,7 @@ export interface SelectViewController {
|
|
|
17
17
|
export interface AssertRedirectOptions {
|
|
18
18
|
router: Router;
|
|
19
19
|
action: () => Promise<any> | any;
|
|
20
|
-
destination?:
|
|
20
|
+
destination?: RouterDestination;
|
|
21
21
|
}
|
|
22
22
|
export interface ButtonViewController {
|
|
23
23
|
render(): SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Button;
|
|
@@ -214,10 +214,7 @@ export type AppControllerId = keyof AppControllerMap;
|
|
|
214
214
|
export interface RedirectOptions {
|
|
215
215
|
shouldTrackHistory?: boolean;
|
|
216
216
|
}
|
|
217
|
-
export
|
|
218
|
-
id: SkillViewControllerId;
|
|
219
|
-
args?: Record<string, any>;
|
|
220
|
-
}
|
|
217
|
+
export type RouterDestination = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.RouterDestination;
|
|
221
218
|
export interface Router {
|
|
222
219
|
redirect<Id extends SkillViewControllerId>(id: Id, args?: SkillViewControllerArgs<Id>, options?: RedirectOptions): Promise<SkillViewControllerMap[Id]>;
|
|
223
220
|
back(): Promise<SkillViewController | undefined>;
|
package/package.json
CHANGED