@sprucelabs/spruce-profile-utils 2.2.0 → 3.0.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.
- package/build/esm/index-module.d.ts +1 -0
- package/build/esm/index-module.js +1 -0
- package/build/esm/root/ProfileCard.vc.d.ts +3 -4
- package/build/esm/types-module.d.ts +5 -5
- package/build/index-module.d.ts +1 -0
- package/build/index-module.js +1 -0
- package/build/root/ProfileCard.vc.d.ts +3 -4
- package/build/types-module.d.ts +5 -5
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as RoleSelectCardViewController } from './adding/RoleSelectCard.vc';
|
|
2
2
|
export { default as ProfileCardViewController } from './root/ProfileCard.vc';
|
|
3
|
+
export * from './root/ProfileCard.vc';
|
|
3
4
|
export * from './types-module';
|
|
4
5
|
export * from './profile.types';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as RoleSelectCardViewController } from './adding/RoleSelectCard.vc.js';
|
|
2
2
|
export { default as ProfileCardViewController } from './root/ProfileCard.vc.js';
|
|
3
|
+
export * from './root/ProfileCard.vc.js';
|
|
3
4
|
export * from './types-module.js';
|
|
4
5
|
export * from './profile.types.js';
|
|
@@ -12,16 +12,15 @@ export default class ProfileCardViewController extends AbstractViewController<Ca
|
|
|
12
12
|
private CardVc;
|
|
13
13
|
private FormVc;
|
|
14
14
|
private handleSubmit;
|
|
15
|
-
load(options:
|
|
15
|
+
load(options: ProfileCardLoadOptions): Promise<void>;
|
|
16
16
|
render(): import("@sprucelabs/calendar-utils").SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
17
17
|
}
|
|
18
|
-
interface
|
|
18
|
+
export interface ProfileCardLoadOptions {
|
|
19
19
|
person: Person;
|
|
20
20
|
authenticator: Authenticator;
|
|
21
21
|
locale: Locale;
|
|
22
22
|
}
|
|
23
|
-
type OnSubmitHandler = (person?: Person) => Promise<void>;
|
|
23
|
+
export type OnSubmitHandler = (person?: Person) => Promise<void>;
|
|
24
24
|
export interface ProfileCardViewControllerOptions {
|
|
25
25
|
onSubmit?: OnSubmitHandler;
|
|
26
26
|
}
|
|
27
|
-
export {};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Card, SkillViewControllerLoadOptions, ViewController } from '@sprucelabs/heartwood-view-controllers';
|
|
2
2
|
import RoleSelectCardViewController, { RoleSelectCardViewControllerOptions } from './adding/RoleSelectCard.vc';
|
|
3
|
-
import ProfileCardViewController
|
|
3
|
+
import ProfileCardViewController from './root/ProfileCard.vc';
|
|
4
4
|
export { ProfileRole } from './adding/RoleSelectCard.vc';
|
|
5
5
|
export type RemoteProfileCard = ViewController<Card> & {
|
|
6
6
|
load?: (options: SkillViewControllerLoadOptions) => Promise<void> | void;
|
|
7
7
|
};
|
|
8
8
|
declare module '@sprucelabs/heartwood-view-controllers/build/types/heartwood.types' {
|
|
9
9
|
interface ViewControllerMap {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
'profile.role-select-card': RoleSelectCardViewController;
|
|
11
|
+
'profile.profile-card': ProfileCardViewController;
|
|
12
12
|
}
|
|
13
13
|
interface ViewControllerOptionsMap {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
'profile.role-select-card': RoleSelectCardViewControllerOptions;
|
|
15
|
+
'profile.profile-card': ConstructorParameters<typeof ProfileCardViewController>[0];
|
|
16
16
|
}
|
|
17
17
|
}
|
package/build/index-module.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as RoleSelectCardViewController } from './adding/RoleSelectCard.vc';
|
|
2
2
|
export { default as ProfileCardViewController } from './root/ProfileCard.vc';
|
|
3
|
+
export * from './root/ProfileCard.vc';
|
|
3
4
|
export * from './types-module';
|
|
4
5
|
export * from './profile.types';
|
package/build/index-module.js
CHANGED
|
@@ -22,5 +22,6 @@ var RoleSelectCard_vc_1 = require("./adding/RoleSelectCard.vc");
|
|
|
22
22
|
Object.defineProperty(exports, "RoleSelectCardViewController", { enumerable: true, get: function () { return __importDefault(RoleSelectCard_vc_1).default; } });
|
|
23
23
|
var ProfileCard_vc_1 = require("./root/ProfileCard.vc");
|
|
24
24
|
Object.defineProperty(exports, "ProfileCardViewController", { enumerable: true, get: function () { return __importDefault(ProfileCard_vc_1).default; } });
|
|
25
|
+
__exportStar(require("./root/ProfileCard.vc"), exports);
|
|
25
26
|
__exportStar(require("./types-module"), exports);
|
|
26
27
|
__exportStar(require("./profile.types"), exports);
|
|
@@ -12,16 +12,15 @@ export default class ProfileCardViewController extends AbstractViewController<Ca
|
|
|
12
12
|
private CardVc;
|
|
13
13
|
private FormVc;
|
|
14
14
|
private handleSubmit;
|
|
15
|
-
load(options:
|
|
15
|
+
load(options: ProfileCardLoadOptions): Promise<void>;
|
|
16
16
|
render(): import("@sprucelabs/calendar-utils").SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
17
17
|
}
|
|
18
|
-
interface
|
|
18
|
+
export interface ProfileCardLoadOptions {
|
|
19
19
|
person: Person;
|
|
20
20
|
authenticator: Authenticator;
|
|
21
21
|
locale: Locale;
|
|
22
22
|
}
|
|
23
|
-
type OnSubmitHandler = (person?: Person) => Promise<void>;
|
|
23
|
+
export type OnSubmitHandler = (person?: Person) => Promise<void>;
|
|
24
24
|
export interface ProfileCardViewControllerOptions {
|
|
25
25
|
onSubmit?: OnSubmitHandler;
|
|
26
26
|
}
|
|
27
|
-
export {};
|
package/build/types-module.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Card, SkillViewControllerLoadOptions, ViewController } from '@sprucelabs/heartwood-view-controllers';
|
|
2
2
|
import RoleSelectCardViewController, { RoleSelectCardViewControllerOptions } from './adding/RoleSelectCard.vc';
|
|
3
|
-
import ProfileCardViewController
|
|
3
|
+
import ProfileCardViewController from './root/ProfileCard.vc';
|
|
4
4
|
export { ProfileRole } from './adding/RoleSelectCard.vc';
|
|
5
5
|
export type RemoteProfileCard = ViewController<Card> & {
|
|
6
6
|
load?: (options: SkillViewControllerLoadOptions) => Promise<void> | void;
|
|
7
7
|
};
|
|
8
8
|
declare module '@sprucelabs/heartwood-view-controllers/build/types/heartwood.types' {
|
|
9
9
|
interface ViewControllerMap {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
'profile.role-select-card': RoleSelectCardViewController;
|
|
11
|
+
'profile.profile-card': ProfileCardViewController;
|
|
12
12
|
}
|
|
13
13
|
interface ViewControllerOptionsMap {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
'profile.role-select-card': RoleSelectCardViewControllerOptions;
|
|
15
|
+
'profile.profile-card': ConstructorParameters<typeof ProfileCardViewController>[0];
|
|
16
16
|
}
|
|
17
17
|
}
|