@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.
@@ -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
  };
@@ -6,7 +6,7 @@ export interface ClientCardProps {
6
6
  lastName?: string;
7
7
  avatarUrl?: string;
8
8
  dateText: string;
9
- lastSeenAt?: string | null;
9
+ lastSeenAt?: number | string | null;
10
10
  lastEventType: LastEventType;
11
11
  onClick?: (id: string) => void;
12
12
  className?: string;
@@ -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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "8.5.6",
3
+ "version": "8.5.8",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",