@zealicsolutions/web-ui 1.0.140-beta.62 → 1.0.140-beta.63
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/OrganismContext.d.ts +1 -0
- package/dist/cjs/contexts/OrganismContext/OrganismContextProvider.d.ts +2 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/molecules/Drawer/types.d.ts +1 -0
- package/dist/esm/contexts/OrganismContext/OrganismContext.d.ts +1 -0
- package/dist/esm/contexts/OrganismContext/OrganismContext.js.map +1 -1
- package/dist/esm/contexts/OrganismContext/OrganismContextProvider.d.ts +2 -1
- package/dist/esm/contexts/OrganismContext/OrganismContextProvider.js +1 -1
- package/dist/esm/contexts/OrganismContext/OrganismContextProvider.js.map +1 -1
- package/dist/esm/molecules/Drawer/Drawer.js +1 -1
- package/dist/esm/molecules/Drawer/Drawer.js.map +1 -1
- package/dist/esm/molecules/Drawer/types.d.ts +1 -0
- package/dist/esm/molecules/Menu/Menu.js +1 -1
- package/dist/esm/molecules/Menu/Menu.js.map +1 -1
- package/package.json +1 -1
|
@@ -99,6 +99,7 @@ export type DrawerItem = DrawerMenuItemType | DrawerDividerItemType | DrawerText
|
|
|
99
99
|
export type Anchor = 'top' | 'left' | 'bottom' | 'right';
|
|
100
100
|
export type DrawerVariant = 'permanent' | 'persistent' | 'temporary';
|
|
101
101
|
export interface DrawerProps {
|
|
102
|
+
currentWebpageId?: string;
|
|
102
103
|
anchor?: Anchor;
|
|
103
104
|
variant?: DrawerVariant;
|
|
104
105
|
open?: boolean;
|
|
@@ -40,6 +40,7 @@ export type OrganismContextType = {
|
|
|
40
40
|
state?: Record<string, unknown>;
|
|
41
41
|
query?: Record<string, string | number | boolean | undefined>;
|
|
42
42
|
}) => void;
|
|
43
|
+
webpageId?: string;
|
|
43
44
|
/**
|
|
44
45
|
* Host-provided routing info for runtime behaviors (URL → organism).
|
|
45
46
|
* If provided, `organismIdFromUrl` must equal `formId` for form runtime
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrganismContext.js","sources":["../../../../../src/contexts/OrganismContext/OrganismContext.ts"],"sourcesContent":[null],"names":["OrganismContext","createContext","items","groupStepItemsByStepContainer","dateFields","setDateFields","formId","submitHandler","Promise","resolve","validations","editable","isPreview","organismBodyId","isFormInEditMode","organismMetadata","organismInfo","localStateObject","localState","setLocalStateValue","isConfigurationMode","onConfigurationItemClicked","selectedConfigurationItemId","currentStyleProperties","currentContentProperties","onInternalNavigation","routing","undefined","prefillData","loadRecordData"],"mappings":"
|
|
1
|
+
{"version":3,"file":"OrganismContext.js","sources":["../../../../../src/contexts/OrganismContext/OrganismContext.ts"],"sourcesContent":[null],"names":["OrganismContext","createContext","items","groupStepItemsByStepContainer","dateFields","setDateFields","formId","submitHandler","Promise","resolve","validations","editable","isPreview","organismBodyId","isFormInEditMode","organismMetadata","organismInfo","localStateObject","localState","setLocalStateValue","isConfigurationMode","onConfigurationItemClicked","selectedConfigurationItemId","currentStyleProperties","currentContentProperties","onInternalNavigation","routing","undefined","prefillData","loadRecordData"],"mappings":"sCA2DO,MAAMA,EAAkBC,EAAmC,CAChEC,MAAO,GACPC,8BAA+B,KAAO,CAAE,GACxCC,WAAY,GACZC,cAAe,IAAM,KACrBC,OAAQ,GACRC,cAAe,IAAMC,QAAQC,UAC7BC,YAAa,GACbC,UAAU,EACVC,WAAW,EACXC,eAAgB,GAChBC,kBAAkB,EAClBC,iBAAkB,CAAE,EACpBC,aAAc,CAAE,EAChBC,iBAAkB,KAClBC,WAAY,CAAE,EACdC,mBAAoB,IAAM,KAC1BC,qBAAqB,EACrBC,2BAA4B,IAAM,KAClCC,4BAA6B,GAC7BC,uBAAwB,CAAE,EAC1BC,yBAA0B,CAAE,EAC5BC,qBAAsB,IAAM,KAC5BC,aAASC,EACTC,YAAa,KACbC,oBAAgBF"}
|
|
@@ -44,6 +44,7 @@ export type OrganismContextProviderProps = React.PropsWithChildren<{} & Partial<
|
|
|
44
44
|
state?: Record<string, unknown>;
|
|
45
45
|
query?: Record<string, string | number | boolean | undefined>;
|
|
46
46
|
}) => void;
|
|
47
|
+
webpageId?: string;
|
|
47
48
|
/** Host-provided routing info (URL → organism) */
|
|
48
49
|
routing: {
|
|
49
50
|
organismIdFromUrl?: string;
|
|
@@ -56,4 +57,4 @@ export type OrganismContextProviderProps = React.PropsWithChildren<{} & Partial<
|
|
|
56
57
|
rwoRecordId: string;
|
|
57
58
|
}) => Promise<Record<string, unknown>>;
|
|
58
59
|
}>>;
|
|
59
|
-
export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, validations, editable, isPreview, organismBodyId, isFormInEditMode, organismMetadata, organismInfo, localStateObject, isConfigurationMode, onConfigurationItemHandler, selectedConfigurationItemId, currentStyleProperties, currentContentProperties, onInternalNavigation, routing, prefillData, loadRecordData, }: OrganismContextProviderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
60
|
+
export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, validations, editable, isPreview, organismBodyId, isFormInEditMode, organismMetadata, organismInfo, localStateObject, isConfigurationMode, onConfigurationItemHandler, selectedConfigurationItemId, currentStyleProperties, currentContentProperties, onInternalNavigation, routing, prefillData, loadRecordData, webpageId, }: OrganismContextProviderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import t,{useState as i,useCallback as r}from"react";import{OrganismContext as o}from"./OrganismContext.js";import{groupStepItemsByStepContainer as n}from"./utils.js";const a=({initItems:a=[],children:
|
|
1
|
+
import{jsx as e}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import t,{useState as i,useCallback as r}from"react";import{OrganismContext as o}from"./OrganismContext.js";import{groupStepItemsByStepContainer as n}from"./utils.js";const a=({initItems:a=[],children:d,submitHandler:s,formId:l,validations:m,editable:u=!0,isPreview:c=!1,organismBodyId:I,isFormInEditMode:g=!0,organismMetadata:p,organismInfo:b,localStateObject:f=null,isConfigurationMode:y=!1,onConfigurationItemHandler:j,selectedConfigurationItemId:C,currentStyleProperties:S={},currentContentProperties:v={},onInternalNavigation:M=()=>null,routing:O,prefillData:P=null,loadRecordData:h,webpageId:D})=>{const[w,x]=t.useState([]),[A,E]=i(f||{}),F=r((e,t)=>{E(i=>({...i,[e]:t}))},[]),B=t.useMemo(()=>(e,t)=>{if(!e)return;const i={...e,organismInfo:b,organismId:b?.id,organismSubtype:b?.subtype,libraryEntityId:e?.libraryEntityId||b?.moleculeLibraryId||e?.moleculeLibraryId||void 0};!i.pmiObjectId&&b?.pmiObjectId&&(i.pmiObjectId=b.pmiObjectId),j?.(i,t,b)},[j,b]),H=t.useMemo(()=>(Array.isArray(a)?a:[a]).map(e=>"children"in e&&!("items"in e)&&Array.isArray(e.children)?{...e,items:e.children}:e),[a]),L=t.useMemo(()=>({dateFields:w,setDateFields:x,items:H,groupStepItemsByStepContainer:()=>n(H),submitHandler:s,formId:l,validations:m,editable:u,isPreview:c,organismBodyId:I,isFormInEditMode:g,organismMetadata:p,organismInfo:b,localStateObject:f,localState:A,setLocalStateValue:F,isConfigurationMode:y,onConfigurationItemClicked:B,selectedConfigurationItemId:C,currentStyleProperties:S,currentContentProperties:v,onInternalNavigation:M,routing:O,prefillData:P,loadRecordData:h,webpageId:D}),[H,l,m,u,c,w,x,s,I,g,p,b,f,A,F,y,B,C,S,v,M,O,P,h,D]);return e(o.Provider,{value:L,children:d})};export{a 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","initItems","children","submitHandler","formId","validations","editable","isPreview","organismBodyId","isFormInEditMode","organismMetadata","organismInfo","localStateObject","isConfigurationMode","onConfigurationItemHandler","selectedConfigurationItemId","currentStyleProperties","currentContentProperties","onInternalNavigation","routing","prefillData","loadRecordData","dateFields","setDateFields","React","useState","localState","setLocalState","setLocalStateValue","useCallback","key","value","prev","onConfigurationItemClicked","useMemo","itemInfo","doubleClick","mergedItem","organismId","id","organismSubtype","subtype","libraryEntityId","moleculeLibraryId","undefined","pmiObjectId","processedItems","Array","isArray","map","item","items","contextValues","groupStepItemsByStepContainer","_jsx","OrganismContext","Provider"],"mappings":"
|
|
1
|
+
{"version":3,"file":"OrganismContextProvider.js","sources":["../../../../../src/contexts/OrganismContext/OrganismContextProvider.tsx"],"sourcesContent":[null],"names":["OrganismContextProvider","initItems","children","submitHandler","formId","validations","editable","isPreview","organismBodyId","isFormInEditMode","organismMetadata","organismInfo","localStateObject","isConfigurationMode","onConfigurationItemHandler","selectedConfigurationItemId","currentStyleProperties","currentContentProperties","onInternalNavigation","routing","prefillData","loadRecordData","webpageId","dateFields","setDateFields","React","useState","localState","setLocalState","setLocalStateValue","useCallback","key","value","prev","onConfigurationItemClicked","useMemo","itemInfo","doubleClick","mergedItem","organismId","id","organismSubtype","subtype","libraryEntityId","moleculeLibraryId","undefined","pmiObjectId","processedItems","Array","isArray","map","item","items","contextValues","groupStepItemsByStepContainer","_jsx","OrganismContext","Provider"],"mappings":"iRAuEO,MAAMA,EAA0B,EACrCC,YAAY,GACZC,WACAC,gBACAC,SACAC,cACAC,YAAW,EACXC,aAAY,EACZC,iBACAC,oBAAmB,EACnBC,mBACAC,eACAC,mBAAmB,KACnBC,uBAAsB,EACtBC,6BACAC,8BACAC,yBAAyB,CAAA,EACzBC,2BAA2B,CAAE,EAC7BC,uBAAuB,IAAM,KAC7BC,UACAC,cAAc,KACdC,iBACAC,gBAEA,MAAOC,EAAYC,GAAiBC,EAAMC,SAA6C,KAChFC,EAAYC,GAAiBF,EAAkCd,GAAoB,CAAA,GAE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