@mindly/ui-components 8.5.6 → 8.5.8
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/dist/cjs/index.js +4 -4
- package/dist/cjs/lib2/features/SessionPreviewFeature/types.d.ts +1 -0
- package/dist/cjs/lib2/shared/ui/ClientCard/ClientCard.d.ts +1 -1
- package/dist/cjs/lib2/widgets/SessionsListWidget/types.d.ts +1 -0
- package/dist/cjs/lib2/widgets/ViewedClientsWidget/ContainerWithRefresher.d.ts +9 -0
- package/dist/esm/index.js +4 -4
- package/dist/esm/lib2/features/SessionPreviewFeature/types.d.ts +1 -0
- package/dist/esm/lib2/shared/ui/ClientCard/ClientCard.d.ts +1 -1
- package/dist/esm/lib2/widgets/SessionsListWidget/types.d.ts +1 -0
- package/dist/esm/lib2/widgets/ViewedClientsWidget/ContainerWithRefresher.d.ts +9 -0
- package/dist/index.d.ts +3 -1
- package/package.json +1 -1
|
@@ -13,4 +13,5 @@ export type SessionPreviewFeatureProps = {
|
|
|
13
13
|
onSessionStart?(session: Session | SessionQueue): void;
|
|
14
14
|
rateSessionCallback?: (session: Session | SessionQueue) => void;
|
|
15
15
|
onUpdateSubscription?: (session: Session | SessionQueue) => void;
|
|
16
|
+
getSubscriptionRemainingBalance?: (session: Session | SessionQueue) => number;
|
|
16
17
|
};
|
|
@@ -20,6 +20,7 @@ export type SessionsWidgetProps = {
|
|
|
20
20
|
onRecurringSessionClick?(recurringSession: RecurringSession): void;
|
|
21
21
|
onScheduleSession?(): void;
|
|
22
22
|
onUpdateSubscription?(session: Session): void;
|
|
23
|
+
getSubscriptionRemainingBalance?: (session: Session) => number;
|
|
23
24
|
t?: WithTranslation['t'];
|
|
24
25
|
timeZone?: string;
|
|
25
26
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { RefresherEventDetail } from '@ionic/react';
|
|
3
|
+
type ContainerWithRefresherProps = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
onIonRefresh?: (e: CustomEvent<RefresherEventDetail>) => void;
|
|
6
|
+
isRefreshingDisabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const ContainerWithRefresher: FC<ContainerWithRefresherProps>;
|
|
9
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -2003,7 +2003,7 @@ interface ClientCardProps {
|
|
|
2003
2003
|
lastName?: string;
|
|
2004
2004
|
avatarUrl?: string;
|
|
2005
2005
|
dateText: string;
|
|
2006
|
-
lastSeenAt?: string | null;
|
|
2006
|
+
lastSeenAt?: number | string | null;
|
|
2007
2007
|
lastEventType: LastEventType;
|
|
2008
2008
|
onClick?: (id: string) => void;
|
|
2009
2009
|
className?: string;
|
|
@@ -3467,6 +3467,7 @@ type SessionPreviewFeatureProps = {
|
|
|
3467
3467
|
onSessionStart?(session: Session | SessionQueue): void;
|
|
3468
3468
|
rateSessionCallback?: (session: Session | SessionQueue) => void;
|
|
3469
3469
|
onUpdateSubscription?: (session: Session | SessionQueue) => void;
|
|
3470
|
+
getSubscriptionRemainingBalance?: (session: Session | SessionQueue) => number;
|
|
3470
3471
|
};
|
|
3471
3472
|
|
|
3472
3473
|
declare const SessionPreviewFeature: React__default.FC<SessionPreviewFeatureProps>;
|
|
@@ -4295,6 +4296,7 @@ type SessionsWidgetProps = {
|
|
|
4295
4296
|
onRecurringSessionClick?(recurringSession: RecurringSession): void;
|
|
4296
4297
|
onScheduleSession?(): void;
|
|
4297
4298
|
onUpdateSubscription?(session: Session): void;
|
|
4299
|
+
getSubscriptionRemainingBalance?: (session: Session) => number;
|
|
4298
4300
|
t?: WithTranslation['t'];
|
|
4299
4301
|
timeZone?: string;
|
|
4300
4302
|
};
|