@zealicsolutions/web-ui 0.3.228 → 0.3.230

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.
@@ -4,11 +4,11 @@ import { LinkAttributes, StateConfigType } from 'containers';
4
4
  import type { Nullable } from 'typescript';
5
5
  export declare const validateAndOpenUrl: (url: string) => void;
6
6
  export declare const getParameterByName: (name: string, url: string) => string;
7
- export declare const updateSearchParams: (isPreview: boolean, currentParams: URLSearchParams, internalLink?: Nullable<string>) => URLSearchParams;
7
+ export declare const updateSearchParams: (currentParams: URLSearchParams, internalLink?: Nullable<string>, isPreview?: boolean) => URLSearchParams;
8
8
  export declare const downloadFile: (url?: string, name?: string) => Promise<void>;
9
9
  export declare const navigateToExternalLink: (externalLink?: Nullable<string>) => void;
10
10
  export declare const checkIsInternalLink: (link?: LinkAttributes) => boolean;
11
- export declare const addInternalParamsToCurrentLink: (internalLink?: Nullable<string>) => string;
11
+ export declare const addInternalParamsToCurrentLink: (internalLink?: Nullable<string>, isPreview?: boolean) => string;
12
12
  export declare const getHref: (link?: LinkAttributes) => string | undefined;
13
13
  export declare const parseDescendantContent: (string: string) => CustomDescendant[];
14
14
  export declare const matchSlateAndStateObject: (slateValue: Descendant[], stateConfig: StateConfigType) => Descendant[];
@@ -9,7 +9,7 @@ export declare type ZealUIModalProps = PropsWithChildren<Pick<MUIModalProps, 'op
9
9
  modalStyles?: CSSProperties;
10
10
  size?: string;
11
11
  popupId: string;
12
- onClose: (popupId: string) => void;
12
+ onClose: () => void;
13
13
  withCloseIcon?: boolean;
14
14
  };
15
15
  export declare const ZealUIModal: ({ children, wrapperStyles, padding, onKeyDown, modalStyles, size, popupId, withCloseIcon, ...rest }: ZealUIModalProps) => JSX.Element;
package/dist/index.d.ts CHANGED
@@ -2176,7 +2176,7 @@ declare type ZealUIModalProps = PropsWithChildren<Pick<ModalProps, 'open'>> & {
2176
2176
  modalStyles?: CSSProperties;
2177
2177
  size?: string;
2178
2178
  popupId: string;
2179
- onClose: (popupId: string) => void;
2179
+ onClose: () => void;
2180
2180
  withCloseIcon?: boolean;
2181
2181
  };
2182
2182
  declare const ZealUIModal: ({ children, wrapperStyles, padding, onKeyDown, modalStyles, size, popupId, withCloseIcon, ...rest }: ZealUIModalProps) => JSX.Element;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.3.228",
4
- "testVersion": "0.3.223",
3
+ "version": "0.3.230",
4
+ "testVersion": "0.3.229",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"