@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;