@zealicsolutions/web-ui 1.0.55-test.3 → 1.0.55-test.4
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/contexts/OrganismContext/OrganismContextProvider.d.ts +3 -2
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/contexts/OrganismContext/OrganismContextProvider.d.ts +3 -2
- package/dist/esm/contexts/OrganismContext/OrganismContextProvider.js +1 -1
- package/dist/esm/contexts/OrganismContext/OrganismContextProvider.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ContainerComponentProps, ContainerType, Molecule, MoleculeItemTypes, MoleculeTypes } from 'containers';
|
1
|
+
import { ContainerComponentProps, ContainerType, Molecule, MoleculeItemTypes, MoleculeTypes, StateConfigType } from 'containers';
|
2
2
|
import { PasswordRuleValidation } from 'molecules';
|
3
3
|
import { PropsWithChildren } from 'react';
|
4
4
|
import type { AnyObject } from 'typescript';
|
@@ -17,6 +17,7 @@ export declare type OrganismContextProviderProps = PropsWithChildren<{
|
|
17
17
|
editable: boolean;
|
18
18
|
isPreview: boolean;
|
19
19
|
initItems: (ContainerComponentProps | Molecule)[];
|
20
|
+
localStateObject: StateConfigType | null;
|
20
21
|
validations: PasswordRuleValidation[];
|
21
22
|
submitHandler: (data: {
|
22
23
|
formId: string;
|
@@ -32,4 +33,4 @@ export declare type OrganismContextProviderProps = PropsWithChildren<{
|
|
32
33
|
currentContentProperties: Record<string, string>;
|
33
34
|
onInternalNavigation: (internalLink: string) => void;
|
34
35
|
}>>;
|
35
|
-
export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, organismId, validations, editable, isPreview, organismBodyId, isFormInEditMode, organismMetadata, isConfigurationMode, onConfigurationItemHandler, selectedConfigurationItemId, currentStyleProperties, currentContentProperties, onInternalNavigation, }: OrganismContextProviderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
36
|
+
export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, organismId, validations, editable, isPreview, organismBodyId, isFormInEditMode, organismMetadata, localStateObject, isConfigurationMode, onConfigurationItemHandler, selectedConfigurationItemId, currentStyleProperties, currentContentProperties, onInternalNavigation, }: OrganismContextProviderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{__assign as t}from"../../node_modules/tslib/tslib.es6.js";import{jsx as e}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{useState as i,useMemo as o}from"react";import{OrganismContext as n}from"./OrganismContext.js";import{groupStepItemsByStepContainer as r}from"./utils.js";var d=function(d){var a=d.initItems,s=void 0===a?[]:a,m=d.children,
|
1
|
+
import{__assign as t}from"../../node_modules/tslib/tslib.es6.js";import{jsx as e}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{useState as i,useMemo as o}from"react";import{OrganismContext as n}from"./OrganismContext.js";import{groupStepItemsByStepContainer as r}from"./utils.js";var d=function(d){var a=d.initItems,s=void 0===a?[]:a,m=d.children,l=d.submitHandler,u=d.formId,c=d.organismId,f=d.validations,v=d.editable,I=void 0===v||v,g=d.isPreview,p=void 0!==g&&g,C=d.organismBodyId,b=d.isFormInEditMode,j=void 0===b||b,P=d.organismMetadata,M=d.localStateObject,S=void 0===M?null:M,y=d.isConfigurationMode,x=void 0!==y&&y,F=d.onConfigurationItemHandler,B=d.selectedConfigurationItemId,H=d.currentStyleProperties,O=void 0===H?{}:H,h=d.currentContentProperties,w=void 0===h?{}:h,E=d.onInternalNavigation,N=void 0===E?function(){}:E,_=i([]),k=_[0],D=_[1],q=o((function(){return function(e,i){e&&(null==F||F(t(t({},e),{organismId:c}),i))}}),[F,c]),z=o((function(){return{dateFields:k,setDateFields:D,items:s,groupStepItemsByStepContainer:function(){return r(s)},submitHandler:l,formId:u,validations:f,editable:I,isPreview:p,organismBodyId:C,isFormInEditMode:j,organismMetadata:P,localStateObject:S,isConfigurationMode:x,onConfigurationItemClicked:q,selectedConfigurationItemId:B,currentStyleProperties:O,currentContentProperties:w,onInternalNavigation:N}}),[s,u,f,I,p,k,D,l,C,j,P,x,q,B,O,w,N]);return e(n.Provider,t({value:z},{children:m}))};export{d as OrganismContextProvider};
|
2
2
|
//# sourceMappingURL=OrganismContextProvider.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"OrganismContextProvider.js","sources":["../../../../../src/contexts/OrganismContext/OrganismContextProvider.tsx"],"sourcesContent":[null],"names":["OrganismContextProvider","_a","_b","initItems","children","submitHandler","formId","organismId","validations","_c","editable","_d","isPreview","organismBodyId","_e","isFormInEditMode","organismMetadata","_f","isConfigurationMode","onConfigurationItemHandler","selectedConfigurationItemId","
|
1
|
+
{"version":3,"file":"OrganismContextProvider.js","sources":["../../../../../src/contexts/OrganismContext/OrganismContextProvider.tsx"],"sourcesContent":[null],"names":["OrganismContextProvider","_a","_b","initItems","children","submitHandler","formId","organismId","validations","_c","editable","_d","isPreview","organismBodyId","_e","isFormInEditMode","organismMetadata","_f","localStateObject","_g","isConfigurationMode","onConfigurationItemHandler","selectedConfigurationItemId","_h","currentStyleProperties","_j","currentContentProperties","_k","onInternalNavigation","_l","useState","dateFields","setDateFields","onConfigurationItemClicked","useMemo","itemInfo","doubleClick","__assign","contextValues","items","groupStepItemsByStepContainer","_jsx","OrganismContext","Provider","value"],"mappings":"2UAgDO,IAAMA,EAA0B,SAACC,GACtC,IAAAC,EAAAD,EAAAE,UAAAA,OAAS,IAAAD,EAAG,GAAEA,EACdE,EAAQH,EAAAG,SACRC,EAAaJ,EAAAI,cACbC,EAAML,EAAAK,OACNC,EAAUN,EAAAM,WACVC,EAAWP,EAAAO,YACXC,EAAeR,EAAAS,SAAfA,OAAW,IAAAD,KACXE,EAAAV,EAAAW,UAAAA,OAAS,IAAAD,GAAQA,EACjBE,EAAcZ,EAAAY,eACdC,qBAAAC,cAAuBD,EACvBE,qBACAC,EAAAhB,EAAAiB,iBAAAA,OAAgB,IAAAD,EAAG,KAAIA,EACvBE,wBAAAC,cAA2BD,EAC3BE,EAA0BpB,EAAAoB,2BAC1BC,EAA2BrB,EAAAqB,4BAC3BC,EAAAtB,EAAAuB,uBAAAA,OAAsB,IAAAD,EAAG,GAAEA,EAC3BE,6BAAAC,aAA2B,CAAE,EAAAD,EAC7BE,EAA+B1B,EAAA2B,qBAA/BA,OAAuB,IAAAD,EAAA,WAAA,EAAQA,EAEzBE,EAA8BC,EAA6C,IAA1EC,EAAUF,EAAA,GAAEG,EAAaH,EAAA,GAE1BI,EAA6BC,GACjC,WAAM,OAAA,SAACC,EAAiDC,GACjDD,IAELd,SAAAA,EAAkCgB,EAAAA,EAAA,CAAA,EAAAF,GAAU,CAAA5B,WAAUA,IAAI6B,GAC3D,IACD,CAACf,EAA4Bd,IAGzB+B,EAAgBJ,GACpB,WAAM,MAAC,CACLH,WAAUA,EACVC,cAAaA,EACbO,MAAOpC,EACPqC,8BAA+B,WAAM,OAAAA,EAA8BrC,EAAU,EAC7EE,cAAaA,EACbC,OAAMA,EACNE,YAAWA,EACXE,SAAQA,EACRE,UAASA,EACTC,eAAcA,EACdE,iBAAgBA,EAChBC,iBAAgBA,EAChBE,iBAAgBA,EAChBE,oBAAmBA,EACnBa,2BAA0BA,EAC1BX,4BAA2BA,EAC3BE,uBAAsBA,EACtBE,yBAAwBA,EACxBE,qBAAoBA,KAEtB,CACEzB,EACAG,EACAE,EACAE,EACAE,EACAmB,EACAC,EACA3B,EACAQ,EACAE,EACAC,EACAI,EACAa,EACAX,EACAE,EACAE,EACAE,IAIJ,OAAOa,EAACC,EAAgBC,SAAQN,EAAA,CAACO,MAAON,GAAa,CAAAlC,SAAGA,IAC1D"}
|
package/dist/index.d.ts
CHANGED
@@ -566,6 +566,7 @@ declare type OrganismContextProviderProps = PropsWithChildren<{
|
|
566
566
|
editable: boolean;
|
567
567
|
isPreview: boolean;
|
568
568
|
initItems: (ContainerComponentProps$1 | Molecule$1)[];
|
569
|
+
localStateObject: StateConfigType$1 | null;
|
569
570
|
validations: PasswordRuleValidation$1[];
|
570
571
|
submitHandler: (data: {
|
571
572
|
formId: string;
|
@@ -581,7 +582,7 @@ declare type OrganismContextProviderProps = PropsWithChildren<{
|
|
581
582
|
currentContentProperties: Record<string, string>;
|
582
583
|
onInternalNavigation: (internalLink: string) => void;
|
583
584
|
}>>;
|
584
|
-
declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, organismId, validations, editable, isPreview, organismBodyId, isFormInEditMode, organismMetadata, isConfigurationMode, onConfigurationItemHandler, selectedConfigurationItemId, currentStyleProperties, currentContentProperties, onInternalNavigation, }: OrganismContextProviderProps) => _emotion_react_jsx_runtime.JSX.Element;
|
585
|
+
declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, organismId, validations, editable, isPreview, organismBodyId, isFormInEditMode, organismMetadata, localStateObject, isConfigurationMode, onConfigurationItemHandler, selectedConfigurationItemId, currentStyleProperties, currentContentProperties, onInternalNavigation, }: OrganismContextProviderProps) => _emotion_react_jsx_runtime.JSX.Element;
|
585
586
|
|
586
587
|
declare type OrganismContextType = {
|
587
588
|
items: (ContainerComponentProps$1 | Molecule$1)[];
|