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