@zealicsolutions/web-ui 1.0.70 → 1.0.72

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,2 +1,2 @@
1
- import{__assign as e}from"../../node_modules/tslib/tslib.es6.js";import{jsx as r}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{useMemo as t}from"react";import{createEditor as o}from"../../node_modules/slate/dist/index.es.js";import{withReact as n,Editable as i,Slate as s}from"../../node_modules/slate-react/dist/index.es.js";import{EditorElement as a}from"./components/EditorElement.js";import{Leaf as m}from"./components/Leaf.js";var l="matrix-message",c="communication-link",p="matrix-message-id",u="communication-link-url",d="communication-link-text",f=[{type:"paragraph",children:[{text:""}]}],y=function(l){var c=l.value;l.numberOfLines;var p=t((function(){return n(o())}),[]),u=f;if(null==c||"string"!=typeof c)u=f;else{var d=c.replace(/\\/g,"");try{u=JSON.parse(c)}catch(e){console.error(e,"Value was parsed incorrectly. Trying to parse it...");try{u=JSON.parse(d)}catch(e){console.error(e,"Most probably that it's not possible to parse this value")}}}return r(s,e({editor:p,value:u},{children:r(i,{readOnly:!0,renderLeaf:function(t){return r(m,e({},t))},placeholder:"Type something...",renderElement:function(t){return r(a,e({},t))}})}),JSON.stringify(u))};export{d as COMMUNICATION_LINK_DATA_TEXT,u as COMMUNICATION_LINK_DATA_URL,c as COMMUNICATION_LINK_ELEMENT_ID,p as MATRIX_MESSAGE_DATA_ID,l as MATRIX_MESSAGE_ELEMENT_ID,y as RichTextViewer,f as richTextDefaultValue};
1
+ import{__assign as e}from"../../node_modules/tslib/tslib.es6.js";import{jsx as r}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{useMemo as t}from"react";import{createEditor as o}from"../../node_modules/slate/dist/index.es.js";import{withReact as n,Editable as i,Slate as s}from"../../node_modules/slate-react/dist/index.es.js";import{EditorElement as a}from"./components/EditorElement.js";import{Leaf as m}from"./components/Leaf.js";var l="matrix-message",c="communication-link",u="matrix-message-id",d="communication-link-url",p="communication-link-text",f=[{type:"paragraph",children:[{text:""}]}],x=function(l){var c=l.value;l.numberOfLines;var u=t((function(){return n(o())}),[]),d=f;if(null==c||"string"!=typeof c)d=f;else{var p=c.replace(/\\/g,"");try{d=JSON.parse(c)}catch(e){console.error(e,"Value was parsed incorrectly. Trying to parse it...");try{d=JSON.parse(p)}catch(e){console.error(e,"Most probably that it's not possible to parse this value")}}}return r(s,e({editor:u,value:d},{children:r(i,{readOnly:!0,renderLeaf:function(t){return r(m,e({},t))},placeholder:d===f?"No content available":"",renderElement:function(t){return r(a,e({},t))}})}),JSON.stringify(d))};export{p as COMMUNICATION_LINK_DATA_TEXT,d as COMMUNICATION_LINK_DATA_URL,c as COMMUNICATION_LINK_ELEMENT_ID,u as MATRIX_MESSAGE_DATA_ID,l as MATRIX_MESSAGE_ELEMENT_ID,x as RichTextViewer,f as richTextDefaultValue};
2
2
  //# sourceMappingURL=RichTextViewer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextViewer.js","sources":["../../../../../src/components/RichTextViewer/RichTextViewer.tsx"],"sourcesContent":[null],"names":["MATRIX_MESSAGE_ELEMENT_ID","COMMUNICATION_LINK_ELEMENT_ID","MATRIX_MESSAGE_DATA_ID","COMMUNICATION_LINK_DATA_URL","COMMUNICATION_LINK_DATA_TEXT","richTextDefaultValue","type","children","text","RichTextViewer","_a","value","numberOfLines","editor","useMemo","withReact","createEditor","slateValue","parsedValue","replace","JSON","parse","e","console","error","_jsx","Slate","__assign","Editable","readOnly","renderLeaf","props","Leaf","placeholder","renderElement","EditorElement","stringify"],"mappings":"meAKO,IAAMA,EAA4B,iBAC5BC,EAAgC,qBAChCC,EAAyB,oBACzBC,EAA8B,yBAC9BC,EAA+B,0BAE/BC,EAAqC,CAAC,CAAEC,KAAM,YAAaC,SAAU,CAAC,CAAEC,KAAM,OAO9EC,EAA0C,SAACC,OAAEC,EAAKD,EAAAC,MAAeD,EAAAE,cAC5E,IAAMC,EAASC,GAAQ,WAAM,OAAAC,EAAUC,OAAiB,IAEpDC,EAAaZ,EAEjB,GAAIM,SAA0D,iBAAVA,EAClDM,EAAaZ,MACR,CACL,IAAMa,EAAcP,EAAMQ,QAAQ,MAAO,IAEzC,IACEF,EAAaG,KAAKC,MAAMV,EACzB,CAAC,MAAOW,GACPC,QAAQC,MAAMF,EAAG,uDAEjB,IACEL,EAAaG,KAAKC,MAAMH,EACzB,CAAC,MAAOM,GACPD,QAAQC,MAAMA,EAAO,2DACtB,CACF,CACF,CAKD,OACEC,EAACC,EAAuCC,EAAA,CAAAd,OAAQA,EAAQF,MAAOM,GAC7D,CAAAV,SAAAkB,EAACG,EACC,CAAAC,YACAC,WAPa,SAACC,GAA2B,OAAAN,EAACO,EAASL,EAAA,CAAA,EAAAI,GAAS,EAQ5DE,YAAY,oBACZC,cARgB,SAACH,GAA8B,OAAAN,EAACU,EAAkBR,EAAA,CAAA,EAAAI,GAAS,MAGnEX,KAAKgB,UAAUnB,GAS/B"}
1
+ {"version":3,"file":"RichTextViewer.js","sources":["../../../../../src/components/RichTextViewer/RichTextViewer.tsx"],"sourcesContent":[null],"names":["MATRIX_MESSAGE_ELEMENT_ID","COMMUNICATION_LINK_ELEMENT_ID","MATRIX_MESSAGE_DATA_ID","COMMUNICATION_LINK_DATA_URL","COMMUNICATION_LINK_DATA_TEXT","richTextDefaultValue","type","children","text","RichTextViewer","_a","value","numberOfLines","editor","useMemo","withReact","createEditor","slateValue","parsedValue","replace","JSON","parse","e","console","error","_jsx","Slate","__assign","Editable","readOnly","renderLeaf","props","Leaf","placeholder","renderElement","EditorElement","stringify"],"mappings":"meAKO,IAAMA,EAA4B,iBAC5BC,EAAgC,qBAChCC,EAAyB,oBACzBC,EAA8B,yBAC9BC,EAA+B,0BAE/BC,EAAqC,CAAC,CAAEC,KAAM,YAAaC,SAAU,CAAC,CAAEC,KAAM,OAO9EC,EAA0C,SAACC,OAAEC,EAAKD,EAAAC,MAAeD,EAAAE,cAC5E,IAAMC,EAASC,GAAQ,WAAM,OAAAC,EAAUC,OAAiB,IAEpDC,EAAaZ,EAEjB,GAAIM,SAA0D,iBAAVA,EAClDM,EAAaZ,MACR,CACL,IAAMa,EAAcP,EAAMQ,QAAQ,MAAO,IAEzC,IACEF,EAAaG,KAAKC,MAAMV,EACzB,CAAC,MAAOW,GACPC,QAAQC,MAAMF,EAAG,uDAEjB,IACEL,EAAaG,KAAKC,MAAMH,EACzB,CAAC,MAAOM,GACPD,QAAQC,MAAMA,EAAO,2DACtB,CACF,CACF,CAKD,OACEC,EAACC,EAAKC,EAAA,CAAkCd,OAAQA,EAAQF,MAAOM,aAC7DQ,EAACG,GACCC,UAAQ,EACRC,WAPa,SAACC,GAA2B,OAAAN,EAACO,EAASL,EAAA,CAAA,EAAAI,GAAS,EAQ5DE,YAAahB,IAAeZ,EAAuB,uBAAyB,GAC5E6B,cARgB,SAACH,GAA8B,OAAAN,EAACU,EAAkBR,EAAA,CAAA,EAAAI,GAAS,MAGnEX,KAAKgB,UAAUnB,GAS/B"}
@@ -1,2 +1,2 @@
1
- import{__assign as o}from"../../node_modules/tslib/tslib.es6.js";import{jsx as t}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import"../../components/Buttons/TouchableOpacity.js";import"../../components/Checkbox/Checkbox.js";import"../../node_modules/slate/dist/index.es.js";import{useEffect as e}from"react";import"../../components/TextWrapper/TextWrapper.js";import{RichTextViewer as i}from"../../components/RichTextViewer/RichTextViewer.js";import"../../theme/theme.js";import"../../theme/provider.js";import"../../theme/toastStyles.js";import"../../node_modules/@emotion/react/dist/emotion-react.esm.js";import"../../components/Select/styles.js";import"../../components/Input/Input.js";import"../../components/Spacer/Spacer.js";import"../../components/Spinner/Spinner.js";import"../../components/RegularImage/RegularImage.js";import"../../components/Buttons/TextButton.js";import"../../components/ValidationTag/ValidationTag.js";import"../../components/Tooltip/Tooltip.js";import"../../components/Toast/toast.js";import"../../components/HorizontalButtons/HorizontalButtons.js";import"../../components/Avatar/Avatar.js";import"../../components/Paddings/Paddings.js";import"../../components/RadioButtons/RadioButtons.js";import"../../components/Circle/Circle.js";import"../../components/CircularIndicator/CircularIndicator.js";import{useFormContext as n}from"../../node_modules/react-hook-form/dist/index.esm.mjs.js";import m from"../../node_modules/@mui/material/Box/Box.js";var r=function(r){var s=r.properties,p=r.htmlElementId,a=r.configurationItemInfo,d=r.paddingTop,c=void 0===d?"0":d,l=r.paddingRight,u=void 0===l?"0":l,g=r.paddingBottom,j=void 0===g?"0":g,h=r.paddingLeft,f=void 0===h?"0":h,v=r.marginTop,x=void 0===v?"0":v,T=r.marginRight,B=void 0===T?"0":T,R=r.marginBottom,I=void 0===R?"0":R,C=r.marginLeft,S=void 0===C?"0":C,V=r.width,_=void 0===V?"auto":V,b=n().setValue,w=(s||{}).consent||{},y=w.consent,L=w.dataCaptureName,k=w.predefinedValue,z=(y||{}).language;return e((function(){k&&L&&b(L,k)}),[k,L]),y?t(m,o({sx:{width:_,paddingTop:c,paddingRight:u,paddingBottom:j,paddingLeft:f,marginTop:x,marginRight:B,marginBottom:I,marginLeft:S},id:p},a,{children:t(i,{value:JSON.stringify(z)})})):null};export{r as ConsentMolecule};
1
+ import{__assign as o}from"../../node_modules/tslib/tslib.es6.js";import{jsx as t}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import"../../components/Buttons/TouchableOpacity.js";import"../../components/Checkbox/Checkbox.js";import"../../node_modules/slate/dist/index.es.js";import{useEffect as e}from"react";import"../../components/TextWrapper/TextWrapper.js";import{RichTextViewer as i}from"../../components/RichTextViewer/RichTextViewer.js";import"../../theme/theme.js";import"../../theme/provider.js";import"../../theme/toastStyles.js";import"../../node_modules/@emotion/react/dist/emotion-react.esm.js";import"../../components/Select/styles.js";import"../../components/Input/Input.js";import"../../components/Spacer/Spacer.js";import"../../components/Spinner/Spinner.js";import"../../components/RegularImage/RegularImage.js";import"../../components/Buttons/TextButton.js";import"../../components/ValidationTag/ValidationTag.js";import"../../components/Tooltip/Tooltip.js";import"../../components/Toast/toast.js";import"../../components/HorizontalButtons/HorizontalButtons.js";import"../../components/Avatar/Avatar.js";import"../../components/Paddings/Paddings.js";import"../../components/RadioButtons/RadioButtons.js";import"../../components/Circle/Circle.js";import"../../components/CircularIndicator/CircularIndicator.js";import{useFormContext as n}from"../../node_modules/react-hook-form/dist/index.esm.mjs.js";import m from"../../node_modules/@mui/material/Box/Box.js";var r=function(r){var s=r.properties,p=r.htmlElementId,a=r.configurationItemInfo,d=r.paddingTop,c=void 0===d?"0":d,l=r.paddingRight,u=void 0===l?"0":l,g=r.paddingBottom,j=void 0===g?"0":g,h=r.paddingLeft,f=void 0===h?"0":h,v=r.marginTop,x=void 0===v?"0":v,T=r.marginRight,B=void 0===T?"0":T,R=r.marginBottom,I=void 0===R?"0":R,C=r.marginLeft,S=void 0===C?"0":C,V=r.width,_=void 0===V?"100%":V,b=n().setValue,w=(s||{}).consent||{},y=w.consent,L=w.dataCaptureName,k=w.predefinedValue,z=(y||{}).language;return e((function(){k&&L&&b(L,k)}),[k,L]),y?t(m,o({sx:{width:_,paddingTop:c,paddingRight:u,paddingBottom:j,paddingLeft:f,marginTop:x,marginRight:B,marginBottom:I,marginLeft:S},id:p},a,{children:t(i,{value:JSON.stringify(z)})})):null};export{r as ConsentMolecule};
2
2
  //# sourceMappingURL=ConsentMolecule.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "1.0.70",
3
+ "version": "1.0.72",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"