@zealicsolutions/web-ui 0.1.94 → 0.1.95

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,10 +1,11 @@
1
- export declare type Format = 'bold' | 'italic' | 'underline' | 'strikethrough' | 'numbered-list' | 'bulleted-list' | 'communicationLink' | 'tag';
1
+ export declare type Format = 'bold' | 'italic' | 'underline' | 'strikethrough' | 'numbered-list' | 'bulleted-list' | 'communicationLink' | 'tag' | 'variable';
2
2
  export declare type TextFormat = Partial<{
3
3
  bold: boolean;
4
4
  italic: boolean;
5
5
  underline: boolean;
6
6
  strikethrough: boolean;
7
7
  communicationLink: CommunicationLinkPayload;
8
+ variable: VariablePayload;
8
9
  tag: {
9
10
  id: string;
10
11
  };
@@ -27,4 +28,8 @@ export declare type CommunicationLinkPayload = {
27
28
  type: LinkType;
28
29
  url: string;
29
30
  };
31
+ export declare type VariablePayload = {
32
+ id: string;
33
+ text: string;
34
+ };
30
35
  export declare type CustomDescendant = CustomText | CustomElement;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
+ import { UIFields } from 'fieldsConfiguration';
2
3
  import { ConsentProps } from 'organisms';
3
4
  import type { Callback } from 'typescript';
4
- import { UIFields } from '../../fieldsConfiguration';
5
5
  export declare const showAcceptToastMessage: () => void | undefined;
6
6
  export declare type AcquisitionFormProps<T extends object> = {
7
7
  fields: UIFields<T>;
@@ -1,2 +1,2 @@
1
- export declare const defaultTitle = "[{\"type\":\"paragraph\",\"children\":[{\"text\":\"Feed Title\",\"bold\":true}]}]";
2
- export declare const defaultDescription = "[{\"type\":\"paragraph\",\"children\":[{\"text\":\"Feed Description\"}]}]";
1
+ export declare const defaultTitle = "[{\"type\":\"paragraph\",\"children\":[{\"text\":\"\"}]}]";
2
+ export declare const defaultDescription = "[{\"type\":\"paragraph\",\"children\":[{\"text\":\"\"}]}]";
@@ -1,3 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { FeedContentProps } from 'organisms/FeedContent/types';
1
3
  export declare const ExpandedWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
2
4
  isMobile?: boolean | undefined;
3
5
  }, never>;
@@ -5,5 +7,13 @@ export declare const TitleWrapper: import("styled-components").StyledComponent<"
5
7
  export declare const CollapsedWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
6
8
  src?: string | undefined;
7
9
  isMobile?: boolean | undefined;
10
+ isPreview?: boolean | undefined;
8
11
  }, never>;
9
12
  export declare const TruncatedText: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").BoxTypeMap<{}, "div">>, import("styled-components").DefaultTheme, import("atoms").TextWrapperProps, never>;
13
+ export declare const CloseButton: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
14
+ activeOpacity?: number | undefined;
15
+ withoutOpacityEffect?: boolean | undefined;
16
+ disabled?: boolean | undefined;
17
+ } & {
18
+ children?: import("react").ReactNode;
19
+ } & Pick<FeedContentProps, "withCloseIcon" | "feedContentTemplate">, never>;
@@ -16,6 +16,9 @@ export declare type FeedContentProps = {
16
16
  disabled?: boolean;
17
17
  onClick?: () => void;
18
18
  };
19
+ withCloseIcon?: {
20
+ onClose: Callback;
21
+ };
19
22
  isMobile?: boolean;
20
23
  isExpanded?: boolean;
21
24
  isPreview?: boolean;
package/dist/index.d.ts CHANGED
@@ -22,6 +22,7 @@ import { ControllerProps as ControllerProps$1, DeepPartial, FieldValues, FormSta
22
22
  import { ProcessTrackerStatus as ProcessTrackerStatus$1, FilteredFeedContentType as FilteredFeedContentType$1, ConsentProps as ConsentProps$1, ProcessTrackerProps as ProcessTrackerProps$1 } from 'organisms';
23
23
  import { FieldSectionProps as FieldSectionProps$1, MenuItemsProps as MenuItemsProps$1, InputFieldProps as InputFieldProps$1, HeroImageProps as HeroImageProps$1, ColumnsProps as ColumnsProps$1, EmphasizedTextProps as EmphasizedTextProps$1, TabGroupProps as TabGroupProps$1, AvatarDropdownProps as AvatarDropdownProps$1, FeedContentHeaderProps as FeedContentHeaderProps$1, AlertProps as AlertProps$1 } from 'molecules';
24
24
  import { SetPasswordFields, MaxRuleValidation, MinRuleValidation } from 'organisms/SetPasswordForm/types';
25
+ import { UIFields as UIFields$2 } from 'fieldsConfiguration';
25
26
  import { ConsentProps as ConsentProps$2 } from 'organisms/Consent/Consent';
26
27
  import { FooterAProps } from 'organisms/Footer/FooterA';
27
28
  import { FooterBProps } from 'organisms/Footer/FooterB';
@@ -651,7 +652,7 @@ declare const SetPasswordForm: ({ logoUrl, fields, validations, onBack, onSubmit
651
652
 
652
653
  declare const showAcceptToastMessage: () => void | undefined;
653
654
  declare type AcquisitionFormProps<T extends object> = {
654
- fields: UIFields<T>;
655
+ fields: UIFields$2<T>;
655
656
  consents: ConsentProps$1[];
656
657
  logoUrl: string;
657
658
  isLoading?: boolean;
@@ -721,6 +722,9 @@ declare type FeedContentProps = {
721
722
  disabled?: boolean;
722
723
  onClick?: () => void;
723
724
  };
725
+ withCloseIcon?: {
726
+ onClose: Callback;
727
+ };
724
728
  isMobile?: boolean;
725
729
  isExpanded?: boolean;
726
730
  isPreview?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.1.94",
3
+ "version": "0.1.95",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"