@zealicsolutions/web-ui 0.4.71 → 0.4.73

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,5 @@
1
1
  export declare const paramKeys: {
2
+ internalLinkAlias: string;
2
3
  internalLinkWebpageId: string;
3
4
  internalLinkApplicationId: string;
4
5
  previewApplicationId: string;
@@ -17,6 +17,7 @@ export declare type OrganismContextType = {
17
17
  dateType: InputFieldTypes;
18
18
  }[]>>;
19
19
  formId?: string;
20
+ isPreview?: boolean;
20
21
  submitHandler?: (data: {
21
22
  formId: string;
22
23
  data: AnyObject;
@@ -15,6 +15,7 @@ export declare type OrganismContextProviderProps = PropsWithChildren<{
15
15
  } & Partial<{
16
16
  formId: string;
17
17
  editable: boolean;
18
+ isPreview: boolean;
18
19
  initItems: (ContainerComponentProps | Molecule)[];
19
20
  validations: PasswordRuleValidation[];
20
21
  submitHandler: (data: {
@@ -27,4 +28,4 @@ export declare type OrganismContextProviderProps = PropsWithChildren<{
27
28
  onConfigurationItemHandler: (itemInfo: ConfigurationItem) => void;
28
29
  selectedConfigurationItemId: string;
29
30
  }>>;
30
- export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, organismId, validations, editable, isFormInEditMode, organismMetadata, isConfigurationMode, onConfigurationItemHandler, selectedConfigurationItemId, }: OrganismContextProviderProps) => JSX.Element;
31
+ export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, organismId, validations, editable, isPreview, isFormInEditMode, organismMetadata, isConfigurationMode, onConfigurationItemHandler, selectedConfigurationItemId, }: OrganismContextProviderProps) => JSX.Element;
@@ -4,7 +4,7 @@ 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: (currentParams: URLSearchParams, internalLink?: Nullable<string>) => URLSearchParams;
7
+ export declare const updateSearchParams: (isPreview: boolean, currentParams: URLSearchParams, internalLink?: Nullable<string>) => 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;
package/dist/index.d.ts CHANGED
@@ -1540,6 +1540,7 @@ declare type OrganismContextProviderProps = PropsWithChildren<{
1540
1540
  } & Partial<{
1541
1541
  formId: string;
1542
1542
  editable: boolean;
1543
+ isPreview: boolean;
1543
1544
  initItems: (ContainerComponentProps$1 | Molecule$1)[];
1544
1545
  validations: PasswordRuleValidation[];
1545
1546
  submitHandler: (data: {
@@ -1552,7 +1553,7 @@ declare type OrganismContextProviderProps = PropsWithChildren<{
1552
1553
  onConfigurationItemHandler: (itemInfo: ConfigurationItem) => void;
1553
1554
  selectedConfigurationItemId: string;
1554
1555
  }>>;
1555
- declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, organismId, validations, editable, isFormInEditMode, organismMetadata, isConfigurationMode, onConfigurationItemHandler, selectedConfigurationItemId, }: OrganismContextProviderProps) => JSX.Element;
1556
+ declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, organismId, validations, editable, isPreview, isFormInEditMode, organismMetadata, isConfigurationMode, onConfigurationItemHandler, selectedConfigurationItemId, }: OrganismContextProviderProps) => JSX.Element;
1556
1557
 
1557
1558
  declare type OrganismContextType = {
1558
1559
  items: (ContainerComponentProps$1 | Molecule$1)[];
@@ -1566,6 +1567,7 @@ declare type OrganismContextType = {
1566
1567
  dateType: InputFieldTypes$2;
1567
1568
  }[]>>;
1568
1569
  formId?: string;
1570
+ isPreview?: boolean;
1569
1571
  submitHandler?: (data: {
1570
1572
  formId: string;
1571
1573
  data: AnyObject$1;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.4.71",
4
- "testVersion": "0.3.195",
3
+ "version": "0.4.73",
4
+ "testVersion": "0.3.201",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"