@sprucelabs/spruce-profile-utils 0.11.30 → 0.12.1
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.
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
import { AbstractViewController, ActiveRecordCardViewController, SpruceSchemas, ViewControllerOptions } from '@sprucelabs/heartwood-view-controllers';
|
|
2
|
-
declare type Card = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
3
|
-
declare type OnChangeHandler = (roleId: string, value: string) => Promise<void> | void;
|
|
4
|
-
declare type ProfileRole = {
|
|
5
|
-
roleId: string;
|
|
6
|
-
requirements: 'optional' | 'required';
|
|
7
|
-
};
|
|
8
|
-
declare type Roles = ProfileRole[];
|
|
9
|
-
export declare type RoleSelectCardViewControllerOptions = ViewControllerOptions & {
|
|
10
|
-
onChange?: OnChangeHandler;
|
|
11
|
-
};
|
|
12
2
|
export default class RoleSelectCardViewController extends AbstractViewController<Card> {
|
|
13
3
|
static id: string;
|
|
14
4
|
private activeRecordCardVc;
|
|
@@ -30,4 +20,14 @@ export default class RoleSelectCardViewController extends AbstractViewController
|
|
|
30
20
|
}): Promise<void>;
|
|
31
21
|
render(): SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
32
22
|
}
|
|
23
|
+
declare type Card = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
24
|
+
declare type OnChangeHandler = (roleId: string, value: string) => Promise<void> | void;
|
|
25
|
+
export interface ProfileRole {
|
|
26
|
+
roleId: string;
|
|
27
|
+
requirements: 'optional' | 'required';
|
|
28
|
+
}
|
|
29
|
+
declare type Roles = ProfileRole[];
|
|
30
|
+
export declare type RoleSelectCardViewControllerOptions = ViewControllerOptions & {
|
|
31
|
+
onChange?: OnChangeHandler;
|
|
32
|
+
};
|
|
33
33
|
export {};
|
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
import { AbstractViewController, ActiveRecordCardViewController, SpruceSchemas, ViewControllerOptions } from '@sprucelabs/heartwood-view-controllers';
|
|
2
|
-
declare type Card = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
3
|
-
declare type OnChangeHandler = (roleId: string, value: string) => Promise<void> | void;
|
|
4
|
-
declare type ProfileRole = {
|
|
5
|
-
roleId: string;
|
|
6
|
-
requirements: 'optional' | 'required';
|
|
7
|
-
};
|
|
8
|
-
declare type Roles = ProfileRole[];
|
|
9
|
-
export declare type RoleSelectCardViewControllerOptions = ViewControllerOptions & {
|
|
10
|
-
onChange?: OnChangeHandler;
|
|
11
|
-
};
|
|
12
2
|
export default class RoleSelectCardViewController extends AbstractViewController<Card> {
|
|
13
3
|
static id: string;
|
|
14
4
|
private activeRecordCardVc;
|
|
@@ -30,4 +20,14 @@ export default class RoleSelectCardViewController extends AbstractViewController
|
|
|
30
20
|
}): Promise<void>;
|
|
31
21
|
render(): SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
32
22
|
}
|
|
23
|
+
declare type Card = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
24
|
+
declare type OnChangeHandler = (roleId: string, value: string) => Promise<void> | void;
|
|
25
|
+
export interface ProfileRole {
|
|
26
|
+
roleId: string;
|
|
27
|
+
requirements: 'optional' | 'required';
|
|
28
|
+
}
|
|
29
|
+
declare type Roles = ProfileRole[];
|
|
30
|
+
export declare type RoleSelectCardViewControllerOptions = ViewControllerOptions & {
|
|
31
|
+
onChange?: OnChangeHandler;
|
|
32
|
+
};
|
|
33
33
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import RoleSelectCardViewController, { RoleSelectCardViewControllerOptions } from './adding/RoleSelectCard.vc';
|
|
2
|
+
export { ProfileRole } from './adding/RoleSelectCard.vc';
|
|
2
3
|
declare module '@sprucelabs/heartwood-view-controllers/build/types/heartwood.types' {
|
|
3
4
|
interface ViewControllerMap {
|
|
4
5
|
roleSelectCard: RoleSelectCardViewController;
|
package/build/types-module.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import RoleSelectCardViewController, { RoleSelectCardViewControllerOptions } from './adding/RoleSelectCard.vc';
|
|
2
|
+
export { ProfileRole } from './adding/RoleSelectCard.vc';
|
|
2
3
|
declare module '@sprucelabs/heartwood-view-controllers/build/types/heartwood.types' {
|
|
3
4
|
interface ViewControllerMap {
|
|
4
5
|
roleSelectCard: RoleSelectCardViewController;
|