@zealicsolutions/web-ui 0.1.88 → 0.1.89

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,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { FeedContentProps } from 'organisms/FeedContent/types';
3
- export declare const ExpandedContent: ({ document, lastUpdated, description, title, image, video, isMobile, buttonConfig, feedContentTemplate, feedContentType, imageStyles, videoStyles, }: Omit<FeedContentProps, 'isExpanded'>) => JSX.Element;
3
+ export declare const ExpandedContent: (props: Omit<FeedContentProps, 'isExpanded'>) => JSX.Element;
@@ -5,6 +5,7 @@ export declare type FeedContentTemplateTypes = 'full_width_content' | 'standard_
5
5
  export declare type FeedContentProps = {
6
6
  feedContentType: Omit<FilteredFeedContentType, 'all'>;
7
7
  feedContentTemplate: FeedContentTemplateTypes;
8
+ id?: string;
8
9
  image?: string;
9
10
  video?: string;
10
11
  document?: string;
@@ -17,8 +18,13 @@ export declare type FeedContentProps = {
17
18
  };
18
19
  isMobile?: boolean;
19
20
  isExpanded?: boolean;
21
+ isPreview?: boolean;
20
22
  destinationLink?: string;
21
23
  onDestinationHandler?: Callback;
22
24
  imageStyles?: CSSProperties;
23
25
  videoStyles?: CSSProperties;
26
+ isEnabledFavoriting?: boolean;
27
+ isFavorite?: boolean;
28
+ onFavoriteClickHandler?: Callback;
29
+ onFavoriteIconClick?: (selectedFeedContent: FeedContentProps) => void;
24
30
  };
@@ -0,0 +1,6 @@
1
+ export declare const useSwitchHandler: (isFavorite?: boolean) => {
2
+ isExpandedContent: boolean;
3
+ isFavoriteState: boolean;
4
+ onFavoriteClickHandler: () => void;
5
+ onExpandedClickHandler: () => void;
6
+ };
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { FeedContentHeaderProps } from 'molecules';
3
3
  import { FeedContentProps } from 'organisms/FeedContent/types';
4
- export declare type FilteredFeedContentType = 'article_content' | 'document_content' | 'video_content' | 'all';
4
+ export declare type FilteredFeedContentType = 'all' | 'favourite';
5
5
  export declare type FeedContentContainerProps = {
6
6
  type: 'feed';
7
7
  feedHeader: Omit<FeedContentHeaderProps, 'isMobile'>;
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { ComponentStory } from '@storybook/react';
3
+ import { FeedContentHeaderProps } from 'molecules';
3
4
  import { FeedContentTemplateTypes } from 'organisms/FeedContent/types';
4
- import { FeedContentContainer as FeedContentContainerComponent, FilteredFeedContentType } from './FeedContentContainer';
5
+ import { FeedContentContainer as FeedContentContainerComponent } from './FeedContentContainer';
5
6
  declare const _default: {
6
7
  title: string;
7
8
  component: ({ feedHeader, feedContent, isMobile, }: import("./FeedContentContainer").FeedContentContainerProps) => JSX.Element;
@@ -10,6 +11,7 @@ export default _default;
10
11
  export declare const FeedContentContainer: ComponentStory<typeof FeedContentContainerComponent>;
11
12
  export declare const feedContentContainerMockProps: {
12
13
  feedContent: ({
14
+ id: string;
13
15
  feedContentType: string;
14
16
  buttonConfig: {
15
17
  disabled: boolean;
@@ -17,10 +19,12 @@ export declare const feedContentContainerMockProps: {
17
19
  image: string;
18
20
  feedContentTemplate: FeedContentTemplateTypes;
19
21
  lastUpdated: string;
22
+ isFavorite: boolean;
20
23
  title: string;
21
24
  description: string;
22
25
  video?: undefined;
23
26
  } | {
27
+ id: string;
24
28
  feedContentType: string;
25
29
  buttonConfig: {
26
30
  disabled: boolean;
@@ -28,22 +32,10 @@ export declare const feedContentContainerMockProps: {
28
32
  image: string;
29
33
  feedContentTemplate: FeedContentTemplateTypes;
30
34
  lastUpdated: string;
35
+ isFavorite: boolean;
31
36
  title: string;
32
37
  description: string;
33
38
  video: string;
34
39
  })[];
35
- feedHeader: {
36
- title: string;
37
- name: string;
38
- inputProps: {
39
- placeholder: string;
40
- };
41
- menuConfig: {
42
- options: {
43
- title: string;
44
- id: FilteredFeedContentType;
45
- }[];
46
- };
47
- templateType: "feed_a" | "feed_b";
48
- };
40
+ feedHeader: FeedContentHeaderProps;
49
41
  };