@zealicsolutions/web-ui 1.0.140-beta.46 → 1.0.140-beta.47

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,13 +1,12 @@
1
- import{jsx as e,Fragment as t}from"../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{css as o}from"../node_modules/@emotion/react/dist/emotion-react.esm.js";import"../contexts/AccountButtonContext/AccountButtonContext.js";import{memo as i,useRef as n,useMemo as r,useEffect as a}from"react";import"../contexts/ApiContext/ApiContext.js";import"../contexts/ContainerRuntimeContext/ContainerRuntimeContext.js";import"../contexts/FormStepContext/FormStepContext.js";import"../contexts/LayoutContext/LayoutContext.js";import"../theme/theme.js";import"../theme/provider.js";import"../theme/toastStyles.js";import{useMediaQuery as s}from"../theme/useMediaQuery.js";import"../contexts/MlrRichTextViewerContext/MlrRichTextViewerContext.js";import"../contexts/OrganismContext/OrganismContext.js";import{useOrganismContext as d}from"../contexts/OrganismContext/useOrganismContext.js";import"../contexts/PopupContext/PopupContext.js";import"../contexts/StateContext/StateContext.js";import c from"../node_modules/react-slick/lib/index.js";import{FormContainer as m}from"./FormContainer.js";import{FormStepContainer as l}from"./FormStepContainer.js";import{ReplicatorContainer as p}from"./ReplicatorContainer/ReplicatorContainer.js";import{getBackgroundImageStyles as u}from"./helpers.js";import{getConfigurationWrapperStyle as g,slickStyles as f}from"./styles.js";import{u as x}from"../node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js";const h={dots:!0,infinite:!1,autoplay:!1,autoplaySpeed:5e3,arrows:!0,slidesToShow:1,slidesToScroll:1,adaptiveHeight:!0,swipeToSlide:!0},C=i(({id:i,type:C,name:y,config:j,children:b,metadata:w,isMobile:S,properties:v,nestedPathSegments:I=[],replicatorFieldId:k})=>{const P=x(),$=n(null),{props:F,wide:L,compact:R}=j||{},_=k||F?.replicatorFieldId,{isConfigurationMode:T,onConfigurationItemClicked:A,selectedConfigurationItemId:B,currentStyleProperties:M,currentContentProperties:O}=d(),N=B===i,z=N?{backgroundImage:O?.backgroundImage??v?.backgroundImage??{imageFile:{url:""}}}:v,{containerProps:V={},containerStyle:D={}}=L||{};let E={...D};const{containerProps:H={},containerStyle:Q={}}=R||{};let U={...Q};M&&N&&(U={...Q,...M},E={...D,...M});const W=s("xs"),q=S??W,G=q?U:E,J=q?H:V,K={...F,...J,enableBackgroundImage:G?.enableBackgroundImage},X=r(()=>({entityId:i,entityType:C,entityName:y,entity:"container",libraryEntityId:w?.containerLibraryId||void 0}),[C,y,i,w]),Y=T?{onClick:e=>{e&&e.stopPropagation(),A(X,!1)},onDoubleClick:e=>{e?.stopPropagation(),A(X,!0)}}:{},Z=`${i}.${q?"mobile":"desktop"}`;a(()=>{try{if(!("undefined"!=typeof window&&("1"===new URLSearchParams(window.location.search).get("debugLayout")||"1"===window.localStorage.getItem("debugLayout"))))return;const e=$.current;if(!e)return;if("absolute"!==(G?.position||window.getComputedStyle(e).position))return;const t=[];let o=e,n=0;for(;o&&n<10;){const e=o.tagName?.toLowerCase?.()||"unknown",i=o.getAttribute?.("data-configuration-id")||o.id||"",r=window.getComputedStyle(o).position;t.push(`${e}${i?`#${i}`:""}[position=${r}]`),o=o.offsetParent,n+=1}console.log("[layout-debug] absolute container chain",{id:i,chain:t})}catch(e){}},[i,G]);const ee=o`
1
+ import{jsx as e,Fragment as t}from"../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{css as o}from"../node_modules/@emotion/react/dist/emotion-react.esm.js";import"../contexts/AccountButtonContext/AccountButtonContext.js";import{memo as i,useMemo as r}from"react";import"../contexts/ApiContext/ApiContext.js";import"../contexts/ContainerRuntimeContext/ContainerRuntimeContext.js";import"../contexts/FormStepContext/FormStepContext.js";import"../contexts/LayoutContext/LayoutContext.js";import"../theme/theme.js";import"../theme/provider.js";import"../theme/toastStyles.js";import{useMediaQuery as n}from"../theme/useMediaQuery.js";import"../contexts/MlrRichTextViewerContext/MlrRichTextViewerContext.js";import"../contexts/OrganismContext/OrganismContext.js";import{useOrganismContext as s}from"../contexts/OrganismContext/useOrganismContext.js";import"../contexts/PopupContext/PopupContext.js";import"../contexts/StateContext/StateContext.js";import a from"../node_modules/react-slick/lib/index.js";import{FormContainer as m}from"./FormContainer.js";import{FormStepContainer as d}from"./FormStepContainer.js";import{ReplicatorContainer as c}from"./ReplicatorContainer/ReplicatorContainer.js";import{getBackgroundImageStyles as l}from"./helpers.js";import{getConfigurationWrapperStyle as p,slickStyles as u}from"./styles.js";import{u as x}from"../node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js";const g={dots:!0,infinite:!1,autoplay:!1,autoplaySpeed:5e3,arrows:!0,slidesToShow:1,slidesToScroll:1,adaptiveHeight:!0,swipeToSlide:!0},C=i(({id:i,type:C,name:f,config:h,children:j,metadata:y,isMobile:b,properties:S,nestedPathSegments:v=[],replicatorFieldId:I})=>{const k=x(),{props:P,wide:w,compact:F}=h||{},$=I||P?.replicatorFieldId,{isConfigurationMode:_,onConfigurationItemClicked:R,selectedConfigurationItemId:T,currentStyleProperties:B,currentContentProperties:M}=s(),A=T===i,O=A?{backgroundImage:M?.backgroundImage??S?.backgroundImage??{imageFile:{url:""}}}:S,{containerProps:z={},containerStyle:L={}}=w||{};let N={...L};const{containerProps:V={},containerStyle:D={}}=F||{};let E={...D};B&&A&&(E={...D,...B},N={...L,...B});const H=n("xs"),Q=b??H,W=Q?E:N,q=Q?V:z,G={...P,...q,enableBackgroundImage:W?.enableBackgroundImage},J=r(()=>({entityId:i,entityType:C,entityName:f,entity:"container",libraryEntityId:y?.containerLibraryId||void 0}),[C,f,i,y]),K=_?{onClick:e=>{e&&e.stopPropagation(),R(J,!1)},onDoubleClick:e=>{e?.stopPropagation(),R(J,!0)}}:{},U=`${i}.${Q?"mobile":"desktop"}`,X=o`
2
2
  display: flex;
3
- position: relative; /* default containing block for absolute children */
4
3
  overflow: visible; /* allow positioned children to overflow */
5
4
  box-sizing: border-box; /* normalize across environments */
6
- ${G}; /* explicit containerStyle (can override position when needed) */
7
- ${u(K?.enableBackgroundImage,z?.backgroundImage?.imageFile?.url)}
8
- ${T?g({theme:P,selected:N}):void 0}
9
- `;if("slider"===C||"journey_driven"===C)return e("div",{className:"slider-container",style:{width:"inherit",height:"inherit",display:"block",position:"relative"},...Y,children:e(c,{"data-configuration-id":i,fade:"journey_driven"===C,css:o`
10
- ${ee};
11
- ${f};
12
- `,...h,...J,children:b})},Z);const te={form:e(m,{...F?.formProps,children:b}),form_step:e(l,{id:i,...F?.formStepProps,metadata:w,containerProps:K,children:b}),replicator:e(p,{replicatorFieldId:_,nestedPathSegments:I,renderWrapper:(t,o)=>e("div",{id:`${i}-${void 0!==t?t:"single"}`,css:ee,"data-configuration-id":i,...Y,children:o}),children:b})};return"replicator"===C?e(t,{children:te.replicator}):e("div",{id:i,ref:$,css:ee,"data-configuration-id":i,...Y,children:te[C]||b},Z)});export{C as Container};
5
+ ${W}; /* explicit containerStyle (can override position when needed) */
6
+ ${l(G?.enableBackgroundImage,O?.backgroundImage?.imageFile?.url)}
7
+ ${_?p({theme:k,selected:A}):void 0}
8
+ `;if("slider"===C||"journey_driven"===C)return e("div",{className:"slider-container",style:{width:"inherit",height:"inherit",display:"block",position:"relative"},...K,children:e(a,{"data-configuration-id":i,fade:"journey_driven"===C,css:o`
9
+ ${X};
10
+ ${u};
11
+ `,...g,...q,children:j})},U);const Y={form:e(m,{...P?.formProps,children:j}),form_step:e(d,{id:i,...P?.formStepProps,metadata:y,containerProps:G,children:j}),replicator:e(c,{replicatorFieldId:$,nestedPathSegments:v,renderWrapper:(t,o)=>e("div",{id:`${i}-${void 0!==t?t:"single"}`,css:X,"data-configuration-id":i,...K,children:o}),children:j})};return"replicator"===C?e(t,{children:Y.replicator}):e("div",{id:i,className:"zeal-container",css:X,..._?{"data-configuration-id":i}:{},...K,children:Y[C]||j},U)});export{C as Container};
13
12
  //# sourceMappingURL=Container.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Container.js","sources":["../../../../src/containers/Container.tsx"],"sourcesContent":[null],"names":["sliderSettings","dots","infinite","autoplay","autoplaySpeed","arrows","slidesToShow","slidesToScroll","adaptiveHeight","swipeToSlide","Container","memo","id","type","name","config","children","metadata","isMobile","properties","nestedPathSegments","replicatorFieldId","theme","useTheme","rootRef","useRef","props","wide","compact","containerReplicatorFieldId","isConfigurationMode","onConfigurationItemClicked","selectedConfigurationItemId","currentStyleProperties","currentContentProperties","useOrganismContext","selected","mergedProperties","backgroundImage","imageFile","url","containerProps","wideContainerProps","containerStyle","savedWideContainerStyles","wideContainerStyles","compactContainerProps","savedCompactContainerStyles","compactContainerStyles","isXs","useMediaQuery","isMobileProp","styles","mergedContainerProps","enableBackgroundImage","configurationItemData","useMemo","entityId","entityType","entityName","entity","libraryEntityId","containerLibraryId","undefined","configurationsItemInfo","onClick","e","stopPropagation","onDoubleClick","key","useEffect","window","URLSearchParams","location","search","get","localStorage","getItem","el","current","position","getComputedStyle","chain","node","guard","tag","tagName","toLowerCase","idAttr","getAttribute","pos","push","offsetParent","console","log","_","containerCss","css","getBackgroundImageStyles","getConfigurationWrapperStyle","_jsx","className","style","width","height","display","Slider","fade","slickStyles","containersMap","form","FormContainer","formProps","form_step","FormStepContainer","formStepProps","replicator","ReplicatorContainer","renderWrapper","iterationIndex","innerChildren","_Fragment","ref"],"mappings":"u8CAaA,MAAMA,EAA2B,CAC/BC,MAAM,EACNC,UAAU,EACVC,UAAU,EACVC,cAAe,IACfC,QAAQ,EACRC,aAAc,EACdC,eAAgB,EAChBC,gBAAgB,EAChBC,cAAc,GAGHC,EAQTC,EACF,EACEC,KACAC,OACAC,OACAC,SACAC,WACAC,WACAC,WACAC,aACAC,qBAAqB,GACrBC,wBAEA,MAAMC,EAAQC,IACRC,EAAUC,EAAuB,OAEjCC,MAAEA,EAAKC,KAAEA,EAAIC,QAAEA,GAAYb,GAAU,CAAA,EAGrCc,EAA6BR,GAAqBK,GAAOL,mBAEzDS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AA+BA,EAAiB,WAC7DtB,IAAKD,GAAY,wBACMpF,KACnBoD,EAEHhD,SAAAwG,IAIJxG,SAAAA,KAMP,MAAa,eAATH,EACKuF,EAAGqB,EAAA,CAAAzG,SAAA6F,GAAcO,aAIxBhB,EAAA,MAAA,CACExF,GAAIA,EAEJ8G,IAAKlG,EACLyE,IAAKD,GAAY,wBACMpF,KACnBoD,EAAsBhD,SAEzB6F,GAAchG,IAAgDG,GAN1DqD"}
1
+ {"version":3,"file":"Container.js","sources":["../../../../src/containers/Container.tsx"],"sourcesContent":[null],"names":["sliderSettings","dots","infinite","autoplay","autoplaySpeed","arrows","slidesToShow","slidesToScroll","adaptiveHeight","swipeToSlide","Container","memo","id","type","name","config","children","metadata","isMobile","properties","nestedPathSegments","replicatorFieldId","theme","useTheme","props","wide","compact","containerReplicatorFieldId","isConfigurationMode","onConfigurationItemClicked","selectedConfigurationItemId","currentStyleProperties","currentContentProperties","useOrganismContext","selected","mergedProperties","backgroundImage","imageFile","url","containerProps","wideContainerProps","containerStyle","savedWideContainerStyles","wideContainerStyles","compactContainerProps","savedCompactContainerStyles","compactContainerStyles","isXs","useMediaQuery","isMobileProp","styles","mergedContainerProps","enableBackgroundImage","configurationItemData","useMemo","entityId","entityType","entityName","entity","libraryEntityId","containerLibraryId","undefined","configurationsItemInfo","onClick","e","stopPropagation","onDoubleClick","key","containerCss","css","getBackgroundImageStyles","getConfigurationWrapperStyle","_jsx","className","style","width","height","display","position","Slider","fade","slickStyles","containersMap","form","FormContainer","formProps","form_step","FormStepContainer","formStepProps","replicator","ReplicatorContainer","renderWrapper","iterationIndex","innerChildren","_Fragment"],"mappings":"46CAaA,MAAMA,EAA2B,CAC/BC,MAAM,EACNC,UAAU,EACVC,UAAU,EACVC,cAAe,IACfC,QAAQ,EACRC,aAAc,EACdC,eAAgB,EAChBC,gBAAgB,EAChBC,cAAc,GAGHC,EAQTC,EACF,EACEC,KACAC,OACAC,OACAC,SACAC,WACAC,WACAC,WACAC,aACAC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AkBC,iBAAiBC,WAAWC;QAE5CV,EAAsB2C,EAA6B,CAAEjD,QAAOY,kBAAc2B;MAG9E,GAAa,WAAThD,GAA8B,mBAATA,EACvB,OACE2D,EAEE,MAAA,CAAAC,UAAU,mBACVC,MAAO,CAAEC,MAAO,UAAWC,OAAQ,UAAWC,QAAS,QAASC,SAAU,eACtEhB,EAEJ9C,SAAAwD,EAACO,EACwB,CAAA,wBAAAnE,EACvBoE,KAAe,mBAATnE,EACNwD,IAAKA,CAAG;gBACJD;gBACAa;iBAEAjF,KACCuC,EACLvB,SAAUA,KAdPmD,GAoBX,MAAMe,EAAwE,CAC5EC,KAAMX,EAACY,EAAa,IAAK5D,GAAO6D,UAAYrE,SAAAA,IAC5CsE,UACEd,EAACe,GACC3E,GAAIA,KACAY,GAAOgE,cACXvE,SAAUA,EACVsB,eAAgBY,EAAoBnC,SAEnCA,IAGLyE,WACEjB,EAACkB,GACCrE,kBAAmBM,EACnBP,mBAAoBA,EACpBuE,cAAe,CAACC,EAAgBC,IAC9BrB,EAAA,MAAA,CAEE5D,GAAI,GAAGA,UAAyBiD,IAAnB+B,EAA+BA,EAAiB,WAC7DvB,IAAKD,EAAY,wBACMxD,KACnBkD,EAEH9C,SAAA6E,IAIJ7E,SAAAA,KAMP,MAAa,eAATH,EACK2D,EAAGsB,EAAA,CAAA9E,SAAAkE,EAAcO,aAIxBjB,EACE,MAAA,CAAA5D,GAAIA,EAEJ6D,UAAU,iBACVJ,IAAKD,KACAxC,EAAsB,CAAE,wBAAyBhB,GAAO,CAAA,KACzDkD,EAAsB9C,SAEzBkE,EAAcrE,IAAgDG,GAN1DmD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "1.0.140-beta.46",
3
+ "version": "1.0.140-beta.47",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"