@zealicsolutions/web-ui 0.1.87 → 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.
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/organisms/FeedContent/components/ExpandedContent.d.ts +1 -1
- package/dist/cjs/src/organisms/FeedContent/types.d.ts +6 -0
- package/dist/cjs/src/organisms/FeedContent/useSwitchHandler.d.ts +6 -0
- package/dist/cjs/src/organisms/FeedContentContainer/FeedContentContainer.d.ts +1 -1
- package/dist/cjs/src/organisms/FeedContentContainer/FeedContentContainer.stories.d.ts +7 -15
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/organisms/FeedContent/components/ExpandedContent.d.ts +1 -1
- package/dist/esm/src/organisms/FeedContent/types.d.ts +6 -0
- package/dist/esm/src/organisms/FeedContent/useSwitchHandler.d.ts +6 -0
- package/dist/esm/src/organisms/FeedContentContainer/FeedContentContainer.d.ts +1 -1
- package/dist/esm/src/organisms/FeedContentContainer/FeedContentContainer.stories.d.ts +7 -15
- package/dist/index.d.ts +7 -1
- package/package.json +1 -1
- package/dist/cjs/src/organisms/FeedContent/useSwitchExpanded.d.ts +0 -4
- package/dist/esm/src/organisms/FeedContent/useSwitchExpanded.d.ts +0 -4
@@ -1,3 +1,3 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { FeedContentProps } from 'organisms/FeedContent/types';
|
3
|
-
export declare const ExpandedContent: (
|
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
|
};
|
@@ -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 = '
|
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
|
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 = '
|
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