@mindly/ui-components 7.4.4 → 7.5.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.
@@ -2,8 +2,7 @@ import { PropsWithChildren } from 'react';
2
2
  import { TranslationType } from '../../shared/types';
3
3
  type AppNotSupportedProps = {
4
4
  isOpen: boolean;
5
- onUpdate?: () => void;
6
- redirectToWeb?: () => void;
5
+ showMessenger: () => void;
7
6
  } & TranslationType;
8
- export declare function AppNotSupportedFeature({ isOpen, t, children, onUpdate, redirectToWeb, }: PropsWithChildren<AppNotSupportedProps>): JSX.Element;
7
+ export declare function AppNotSupportedFeature({ isOpen, showMessenger, t, children, }: PropsWithChildren<AppNotSupportedProps>): JSX.Element;
9
8
  export {};
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import { ExploreCardSwiperFeatureProps } from './types';
3
3
  import 'swiper/css';
4
- declare const ExploreCardSwiperFeature: React.ForwardRefExoticComponent<ExploreCardSwiperFeatureProps & React.RefAttributes<HTMLDivElement>>;
4
+ declare const ExploreCardSwiperFeature: React.ForwardRefExoticComponent<Omit<ExploreCardSwiperFeatureProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
5
  export default ExploreCardSwiperFeature;
@@ -1,3 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { SwiperProps, SwiperRef } from 'swiper/react';
1
3
  export interface ExploreCardData {
2
4
  id: string;
3
5
  title: string;
@@ -9,7 +11,7 @@ export interface ExploreCardData {
9
11
  currentMessageCount?: number;
10
12
  requiredMessageCount?: number;
11
13
  }
12
- export interface ExploreCardSwiperFeatureProps {
14
+ export type ExploreCardSwiperFeatureProps = React.RefAttributes<SwiperRef> & SwiperProps & {
13
15
  cards?: ExploreCardData[];
14
16
  className?: string;
15
17
  onInputClicked: (cardId?: string) => void;
@@ -23,4 +25,4 @@ export interface ExploreCardSwiperFeatureProps {
23
25
  progressDescription: string;
24
26
  progressCircleText: string;
25
27
  showProgress: boolean;
26
- }
28
+ };
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import { Settings as SliderSettings } from 'react-slick';
2
2
  export interface PromptCardData {
3
3
  id: string;
4
4
  title: string;
@@ -6,7 +6,7 @@ export interface PromptCardData {
6
6
  badgeText?: string;
7
7
  badgeColorHex?: string;
8
8
  }
9
- export type PromptCardsFeatureProps = React.ComponentPropsWithoutRef<'div'> & {
9
+ export type PromptCardsFeatureProps = SliderSettings & {
10
10
  cards?: PromptCardData[];
11
11
  onCardClick?: (cardId: string) => void;
12
12
  isLoading?: boolean;
package/dist/index.d.ts CHANGED
@@ -16,6 +16,8 @@ import { AriaToastRegionProps } from '@react-aria/toast';
16
16
  import { IonSearchbarCustomEvent, SearchbarChangeEventDetail, TextFieldTypes, IonInputCustomEvent, InputChangeEventDetail } from '@ionic/core';
17
17
  import { User, SignInResult, SignInWithEmailAndPasswordOptions, LinkWithEmailAndPasswordOptions, CreateUserWithEmailAndPasswordOptions, SendPasswordResetEmailOptions } from '@capacitor-firebase/authentication';
18
18
  import { MarkdownToJSX } from 'markdown-to-jsx';
19
+ import { Settings } from 'react-slick';
20
+ import { SwiperRef, SwiperProps } from 'swiper/react';
19
21
 
20
22
  interface ButtonProps$2 {
21
23
  buttonType: 'primary' | 'secondary' | 'actionButton' | 'actionButtonDisabled' | 'secondaryWithStroke' | 'secondaryCancel' | 'actionButtonActive' | 'actionButtonGreen';
@@ -2831,10 +2833,9 @@ declare const ReviewsCardFeatureSkeleton: React__default.MemoExoticComponent<()
2831
2833
 
2832
2834
  type AppNotSupportedProps = {
2833
2835
  isOpen: boolean;
2834
- onUpdate?: () => void;
2835
- redirectToWeb?: () => void;
2836
+ showMessenger: () => void;
2836
2837
  } & TranslationType;
2837
- declare function AppNotSupportedFeature({ isOpen, t, children, onUpdate, redirectToWeb, }: PropsWithChildren<AppNotSupportedProps>): JSX.Element;
2838
+ declare function AppNotSupportedFeature({ isOpen, showMessenger, t, children, }: PropsWithChildren<AppNotSupportedProps>): JSX.Element;
2838
2839
 
2839
2840
  type ScreenInputUpdateFeatureProps = {
2840
2841
  children?: any;
@@ -3563,7 +3564,7 @@ interface PromptCardData {
3563
3564
  badgeText?: string;
3564
3565
  badgeColorHex?: string;
3565
3566
  }
3566
- type PromptCardsFeatureProps = React$1.ComponentPropsWithoutRef<'div'> & {
3567
+ type PromptCardsFeatureProps = Settings & {
3567
3568
  cards?: PromptCardData[];
3568
3569
  onCardClick?: (cardId: string) => void;
3569
3570
  isLoading?: boolean;
@@ -3582,7 +3583,7 @@ interface ExploreCardData {
3582
3583
  currentMessageCount?: number;
3583
3584
  requiredMessageCount?: number;
3584
3585
  }
3585
- interface ExploreCardSwiperFeatureProps {
3586
+ type ExploreCardSwiperFeatureProps = React.RefAttributes<SwiperRef> & SwiperProps & {
3586
3587
  cards?: ExploreCardData[];
3587
3588
  className?: string;
3588
3589
  onInputClicked: (cardId?: string) => void;
@@ -3596,9 +3597,9 @@ interface ExploreCardSwiperFeatureProps {
3596
3597
  progressDescription: string;
3597
3598
  progressCircleText: string;
3598
3599
  showProgress: boolean;
3599
- }
3600
+ };
3600
3601
 
3601
- declare const ExploreCardSwiperFeature: React$1.ForwardRefExoticComponent<ExploreCardSwiperFeatureProps & React$1.RefAttributes<HTMLDivElement>>;
3602
+ declare const ExploreCardSwiperFeature: React$1.ForwardRefExoticComponent<Omit<ExploreCardSwiperFeatureProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
3602
3603
 
3603
3604
  type SupportedCountryLocale = string;
3604
3605
  type Tabs = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "7.4.4",
3
+ "version": "7.5.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",
@@ -55,7 +55,6 @@
55
55
  "peerDependencies": {
56
56
  "@babel/polyfill": "7.12.1",
57
57
  "@capacitor-firebase/authentication": "7.2.0",
58
- "@capacitor/core": "7.4.1",
59
58
  "@capacitor/haptics": "7.0.1",
60
59
  "@capacitor/keyboard": "7.0.1",
61
60
  "@fontsource/inter": "5.0.8",