@sprucelabs/spruce-people-utils 2.0.41 → 2.0.43
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/inviting/InvitePersonCard.vc.d.ts +2 -2
- package/build/esm/viewControllers/PersonSelectInput.vc.d.ts +1 -1
- package/build/esm/viewControllers/searchPeopleToSuggestions.d.ts +1 -1
- package/build/inviting/InvitePersonCard.vc.d.ts +2 -2
- package/build/viewControllers/PersonSelectInput.vc.d.ts +1 -1
- package/build/viewControllers/searchPeopleToSuggestions.d.ts +1 -1
- package/package.json +1 -1
|
@@ -33,7 +33,7 @@ export default class InvitePersonCardViewController extends AbstractViewControll
|
|
|
33
33
|
private handleDidAcceptInvite;
|
|
34
34
|
render(): SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
35
35
|
}
|
|
36
|
-
export
|
|
36
|
+
export type DoneHandler = (personId: string) => void | Promise<void>;
|
|
37
37
|
export interface InvitePersonOptions {
|
|
38
38
|
organizationId?: string;
|
|
39
39
|
locationId?: string;
|
|
@@ -53,5 +53,5 @@ declare const inviteFormSchema: {
|
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
|
-
|
|
56
|
+
type InviteFormSchema = typeof inviteFormSchema;
|
|
57
57
|
export {};
|
|
@@ -31,7 +31,7 @@ export default class PersonSelectInputViewController extends AbstractViewControl
|
|
|
31
31
|
private _loadCurrentPerson;
|
|
32
32
|
render(): SpruceSchemas.HeartwoodViewControllers.v2021_02_11.AutocompleteInput;
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
type AutocompleteInput = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.AutocompleteInput;
|
|
35
35
|
export interface PersonSelectInputOptions extends FormInputOptions {
|
|
36
36
|
organizationId?: string;
|
|
37
37
|
locationId?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AutocompleteSuggestion } from '@sprucelabs/heartwood-view-controllers';
|
|
2
2
|
import { SearchPerson } from '../types/people-module.types';
|
|
3
|
-
|
|
3
|
+
type SuggestionClickHandler = (person: SearchPerson) => Promise<void> | void;
|
|
4
4
|
export default function searchPeopleToSuggestions(people: SearchPerson[], cb?: SuggestionClickHandler): AutocompleteSuggestion[];
|
|
5
5
|
export declare function searchPersonToSuggestion(person: SearchPerson, cb?: SuggestionClickHandler): {
|
|
6
6
|
id: string;
|
|
@@ -33,7 +33,7 @@ export default class InvitePersonCardViewController extends AbstractViewControll
|
|
|
33
33
|
private handleDidAcceptInvite;
|
|
34
34
|
render(): SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
35
35
|
}
|
|
36
|
-
export
|
|
36
|
+
export type DoneHandler = (personId: string) => void | Promise<void>;
|
|
37
37
|
export interface InvitePersonOptions {
|
|
38
38
|
organizationId?: string;
|
|
39
39
|
locationId?: string;
|
|
@@ -53,5 +53,5 @@ declare const inviteFormSchema: {
|
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
|
-
|
|
56
|
+
type InviteFormSchema = typeof inviteFormSchema;
|
|
57
57
|
export {};
|
|
@@ -31,7 +31,7 @@ export default class PersonSelectInputViewController extends AbstractViewControl
|
|
|
31
31
|
private _loadCurrentPerson;
|
|
32
32
|
render(): SpruceSchemas.HeartwoodViewControllers.v2021_02_11.AutocompleteInput;
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
type AutocompleteInput = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.AutocompleteInput;
|
|
35
35
|
export interface PersonSelectInputOptions extends FormInputOptions {
|
|
36
36
|
organizationId?: string;
|
|
37
37
|
locationId?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AutocompleteSuggestion } from '@sprucelabs/heartwood-view-controllers';
|
|
2
2
|
import { SearchPerson } from '../types/people-module.types';
|
|
3
|
-
|
|
3
|
+
type SuggestionClickHandler = (person: SearchPerson) => Promise<void> | void;
|
|
4
4
|
export default function searchPeopleToSuggestions(people: SearchPerson[], cb?: SuggestionClickHandler): AutocompleteSuggestion[];
|
|
5
5
|
export declare function searchPersonToSuggestion(person: SearchPerson, cb?: SuggestionClickHandler): {
|
|
6
6
|
id: string;
|