@bcrumbs.net/bc-chat 1.0.18 → 1.0.19
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/build/index.es.js +1 -1
- package/build/index.js +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -51,7 +51,7 @@ import{jsx as e,jsxs as n,Fragment as t}from"react/jsx-runtime";import i,{useMem
|
|
|
51
51
|
background-repeat: no-repeat;
|
|
52
52
|
width: 15px;
|
|
53
53
|
height: 15px;
|
|
54
|
-
`,E={document:({message:t})=>{let i=t.content.split("/"),a=i[i.length-1];return e(v,{className:"bc-fileMessage",...t,children:n(I,{href:t.content,target:"_blank",download:a,rel:"noopener noreferrer",...t,children:[e(A,{color:(o=t,o.isAgent,"000000")}),e("span",{children:a})]})});var o},image:({message:n})=>e("div",{className:"bc-mediaMessage",style:{backgroundImage:u(n),color:f(n),borderColor:C(n),borderWidth:"1px",borderStyle:"solid",padding:0},children:e("a",{href:n.content,target:"_blank",rel:"noreferrer",children:e("img",{src:n.content,alt:"message content"})})}),location:({message:t})=>{return e(M,{href:"https://www.google.com/maps/?q="+t.content,target:"_blank",rel:"noopener noreferrer",className:"bc-locationMessage",isAgent:t.isAgent,children:n(y,{children:[e(L,{color:(i=t,i.isAgent,"000000")}),e(k,{color:f(t),children:"Open location"})]})});var i},text:({message:n})=>e("div",{style:{backgroundImage:u(n),color:f(n),borderColor:C(n),borderWidth:"1px",borderStyle:"solid"},children:(n.content&&n.content.indexOf("\n")>-1?n.content.split("\n"):[n.content]).map((n=>e(d,{children:n})))}),video:w,audio:w,interactive:null,template:({message:
|
|
54
|
+
`,E={document:({message:t})=>{let i=t.content.split("/"),a=i[i.length-1];return e(v,{className:"bc-fileMessage",...t,children:n(I,{href:t.content,target:"_blank",download:a,rel:"noopener noreferrer",...t,children:[e(A,{color:(o=t,o.isAgent,"000000")}),e("span",{children:a})]})});var o},image:({message:n})=>e("div",{className:"bc-mediaMessage",style:{backgroundImage:u(n),color:f(n),borderColor:C(n),borderWidth:"1px",borderStyle:"solid",padding:0},children:e("a",{href:n.content,target:"_blank",rel:"noreferrer",children:e("img",{src:n.content,alt:"message content"})})}),location:({message:t})=>{return e(M,{href:"https://www.google.com/maps/?q="+t.content,target:"_blank",rel:"noopener noreferrer",className:"bc-locationMessage",isAgent:t.isAgent,children:n(y,{children:[e(L,{color:(i=t,i.isAgent,"000000")}),e(k,{color:f(t),children:"Open location"})]})});var i},text:({message:n})=>e("div",{style:{backgroundImage:u(n),color:f(n),borderColor:C(n),borderWidth:"1px",borderStyle:"solid"},children:(n.content&&n.content.indexOf("\n")>-1?n.content.split("\n"):[n.content]).map((n=>e(d,{children:n})))}),video:w,audio:w,interactive:null,template:({message:t})=>{const i=a((()=>{try{return JSON.parse(t.content)}catch(e){return void console.log(e.message)}}),[t]);return n("div",{style:{backgroundImage:u(t),color:f(t),borderColor:C(t),borderWidth:"1px",borderStyle:"solid"},children:[e("b",{children:"Template message:"})," ",i.name," ",i.language?.code?`/ ${i.language.code}`:null]})},note:({message:n})=>e("div",{className:"bc-note",children:n.content})},S=l.div`
|
|
55
55
|
display: flex;
|
|
56
56
|
flex-direction: column;
|
|
57
57
|
gap: 5px;
|
package/build/index.js
CHANGED
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
background-repeat: no-repeat;
|
|
52
52
|
width: 15px;
|
|
53
53
|
height: 15px;
|
|
54
|
-
`,M={document:({message:n})=>{let t=n.content.split("/"),a=t[t.length-1];return e.jsx(u,{className:"bc-fileMessage",...n,children:e.jsxs(C,{href:n.content,target:"_blank",download:a,rel:"noopener noreferrer",...n,children:[e.jsx(f,{color:(i=n,i.isAgent,"000000")}),e.jsx("span",{children:a})]})});var i},image:({message:n})=>e.jsx("div",{className:"bc-mediaMessage",style:{backgroundImage:b(n),color:x(n),borderColor:h(n),borderWidth:"1px",borderStyle:"solid",padding:0},children:e.jsx("a",{href:n.content,target:"_blank",rel:"noreferrer",children:e.jsx("img",{src:n.content,alt:"message content"})})}),location:({message:n})=>{return e.jsx(w,{href:"https://www.google.com/maps/?q="+n.content,target:"_blank",rel:"noopener noreferrer",className:"bc-locationMessage",isAgent:n.isAgent,children:e.jsxs(v,{children:[e.jsx(I,{color:(t=n,t.isAgent,"000000")}),e.jsx(A,{color:x(n),children:"Open location"})]})});var t},text:({message:n})=>e.jsx("div",{style:{backgroundImage:b(n),color:x(n),borderColor:h(n),borderWidth:"1px",borderStyle:"solid"},children:(n.content&&n.content.indexOf("\n")>-1?n.content.split("\n"):[n.content]).map((n=>e.jsx(l.default,{children:n})))}),video:m,audio:m,interactive:null,template:({message:t})=>{const a=n.useMemo((()=>{try{return JSON.parse(t.content)}catch(e){return void console.log(e.message)}}),[t]);return e.jsxs("div",{style:{backgroundImage:b(t),color:x(t),borderColor:h(t),borderWidth:"1px",borderStyle:"solid"},children:[a.name,"
|
|
54
|
+
`,M={document:({message:n})=>{let t=n.content.split("/"),a=t[t.length-1];return e.jsx(u,{className:"bc-fileMessage",...n,children:e.jsxs(C,{href:n.content,target:"_blank",download:a,rel:"noopener noreferrer",...n,children:[e.jsx(f,{color:(i=n,i.isAgent,"000000")}),e.jsx("span",{children:a})]})});var i},image:({message:n})=>e.jsx("div",{className:"bc-mediaMessage",style:{backgroundImage:b(n),color:x(n),borderColor:h(n),borderWidth:"1px",borderStyle:"solid",padding:0},children:e.jsx("a",{href:n.content,target:"_blank",rel:"noreferrer",children:e.jsx("img",{src:n.content,alt:"message content"})})}),location:({message:n})=>{return e.jsx(w,{href:"https://www.google.com/maps/?q="+n.content,target:"_blank",rel:"noopener noreferrer",className:"bc-locationMessage",isAgent:n.isAgent,children:e.jsxs(v,{children:[e.jsx(I,{color:(t=n,t.isAgent,"000000")}),e.jsx(A,{color:x(n),children:"Open location"})]})});var t},text:({message:n})=>e.jsx("div",{style:{backgroundImage:b(n),color:x(n),borderColor:h(n),borderWidth:"1px",borderStyle:"solid"},children:(n.content&&n.content.indexOf("\n")>-1?n.content.split("\n"):[n.content]).map((n=>e.jsx(l.default,{children:n})))}),video:m,audio:m,interactive:null,template:({message:t})=>{const a=n.useMemo((()=>{try{return JSON.parse(t.content)}catch(e){return void console.log(e.message)}}),[t]);return e.jsxs("div",{style:{backgroundImage:b(t),color:x(t),borderColor:h(t),borderWidth:"1px",borderStyle:"solid"},children:[e.jsx("b",{children:"Template message:"})," ",a.name," ",a.language?.code?`/ ${a.language.code}`:null]})},note:({message:n})=>e.jsx("div",{className:"bc-note",children:n.content})},y=c.default.div`
|
|
55
55
|
display: flex;
|
|
56
56
|
flex-direction: column;
|
|
57
57
|
gap: 5px;
|