@mindly/ui-components 8.8.2 → 8.8.4
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,5 +1,5 @@
|
|
|
1
1
|
import { WithTranslation } from 'react-i18next';
|
|
2
|
-
import { AppViewType, ScheduleSlot, SessionTypeEnum, SupportedLocales, TypographyVariantsEnum, UserTypeEnum } from '../../shared';
|
|
2
|
+
import { AppViewType, Schedule, ScheduleSlot, SessionTypeEnum, SupportedLocales, TypographyVariantsEnum, UserTypeEnum } from '../../shared';
|
|
3
3
|
import { ScheduleDate } from '../../shared';
|
|
4
4
|
type SelectionMode = 'single' | 'multiple';
|
|
5
5
|
export type ScheduleFeatureProps = {
|
|
@@ -32,5 +32,9 @@ export type ScheduleFeatureProps = {
|
|
|
32
32
|
onSlotChange?: (slot: ScheduleSlot | null) => void;
|
|
33
33
|
onShowAll?: () => void;
|
|
34
34
|
onBookClick?: () => void;
|
|
35
|
+
apiRef?: React.RefObject<ScheduleFeatureApiRef>;
|
|
36
|
+
};
|
|
37
|
+
export type ScheduleFeatureApiRef = {
|
|
38
|
+
getHandledSchedule: () => Schedule | undefined;
|
|
35
39
|
};
|
|
36
40
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -3783,6 +3783,10 @@ type ScheduleFeatureProps = {
|
|
|
3783
3783
|
onSlotChange?: (slot: ScheduleSlot | null) => void;
|
|
3784
3784
|
onShowAll?: () => void;
|
|
3785
3785
|
onBookClick?: () => void;
|
|
3786
|
+
apiRef?: React.RefObject<ScheduleFeatureApiRef>;
|
|
3787
|
+
};
|
|
3788
|
+
type ScheduleFeatureApiRef = {
|
|
3789
|
+
getHandledSchedule: () => Schedule | undefined;
|
|
3786
3790
|
};
|
|
3787
3791
|
|
|
3788
3792
|
declare const SpecialistScheduleFeature: React__default.FC<ScheduleFeatureProps>;
|