@zealicsolutions/web-ui 1.0.71 → 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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "1.0.71",
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"