@zealicsolutions/web-ui 0.1.88 → 0.1.90

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
  };
package/dist/index.d.ts CHANGED
@@ -686,6 +686,7 @@ declare type FeedContentTemplateTypes = 'full_width_content' | 'standard_content
686
686
  declare type FeedContentProps = {
687
687
  feedContentType: Omit<FilteredFeedContentType$1, 'all'>;
688
688
  feedContentTemplate: FeedContentTemplateTypes;
689
+ id?: string;
689
690
  image?: string;
690
691
  video?: string;
691
692
  document?: string;
@@ -698,10 +699,15 @@ declare type FeedContentProps = {
698
699
  };
699
700
  isMobile?: boolean;
700
701
  isExpanded?: boolean;
702
+ isPreview?: boolean;
701
703
  destinationLink?: string;
702
704
  onDestinationHandler?: Callback;
703
705
  imageStyles?: CSSProperties;
704
706
  videoStyles?: CSSProperties;
707
+ isEnabledFavoriting?: boolean;
708
+ isFavorite?: boolean;
709
+ onFavoriteClickHandler?: Callback;
710
+ onFavoriteIconClick?: (selectedFeedContent: FeedContentProps) => void;
705
711
  };
706
712
 
707
713
  declare const FeedContent: ({ feedContentTemplate, ...props }: FeedContentProps) => JSX.Element;
@@ -837,7 +843,7 @@ declare type ProcessTrackerProps = {
837
843
  };
838
844
  declare const ProcessTracker: ({ title, statuses, isMobile, description, currentStep, style, withCloseIcon, }: ProcessTrackerProps) => JSX.Element;
839
845
 
840
- declare type FilteredFeedContentType = 'article_content' | 'document_content' | 'video_content' | 'all';
846
+ declare type FilteredFeedContentType = 'all' | 'favourite';
841
847
  declare type FeedContentContainerProps = {
842
848
  type: 'feed';
843
849
  feedHeader: Omit<FeedContentHeaderProps$1, 'isMobile'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.1.88",
3
+ "version": "0.1.90",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"
@@ -1,4 +0,0 @@
1
- export declare const useSwitchExpanded: () => {
2
- isExpandedContent: boolean;
3
- onClickHandler: () => void;
4
- };
@@ -1,4 +0,0 @@
1
- export declare const useSwitchExpanded: () => {
2
- isExpandedContent: boolean;
3
- onClickHandler: () => void;
4
- };