sage-nexus-ui 1.14.13 → 1.14.14

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 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import{isValidElement as e,cloneElement as n}from"react";import{Box as o}from"../../Box.mjs";import{Paper as i}from"../../Paper.mjs";import{ChatWindowBody as t,H4 as l,H3 as m}from"../../Typography.mjs";import{Code as c}from"../../Code.mjs";import{Markdown as d}from"../../../node_modules/react-markdown/lib/index.mjs";import h from"../../../node_modules/remark-gfm/lib/index.mjs";const s=(e,n)=>{const i=n?.trim();if(!i)return e;const t=new RegExp(`(${(r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(i)})`,"ig");return e.split(t).map((e,n)=>{if(!e)return null;return e.toLowerCase()===i.toLowerCase()?r(o,{component:"mark",sx:{backgroundColor:r=>"dark"===r.palette.mode?"rgba(255, 214, 10, 0.35)":"rgba(255, 214, 10, 0.45)",color:"inherit",borderRadius:.5,px:.25,py:0},children:e},`${e}-${n}`):e})},p=(r,o)=>{if("string"==typeof r)return s(r,o);if("number"==typeof r)return s(r.toString(),o);if(Array.isArray(r))return r.map(r=>p(r,o));if(e(r)){const e=r.props.children;return void 0===e?r:n(r,void 0,p(e,o))}return r},a={p:({children:e})=>r(t,{sx:{mb:1,"&:last-child":{mb:0}},children:e}),li:({children:e})=>r(t,{component:"li",children:e}),strong:({children:e})=>r(o,{component:"strong",sx:{fontWeight:700,fontSize:"inherit",lineHeight:"inherit"},children:e}),em:({children:e})=>r(o,{component:"em",sx:{fontStyle:"italic",fontSize:"inherit",lineHeight:"inherit"},children:e})},g=({content:e,highlightQuery:n,components:s})=>{const a=r=>p(r,n),g={p:({children:e})=>r(t,{sx:{mb:1,"&:last-child":{mb:0}},children:a(e)}),strong:({children:e})=>r(o,{component:"strong",sx:{fontWeight:700},children:a(e)}),em:({children:e})=>r(o,{component:"em",sx:{fontStyle:"italic"},children:a(e)}),ul:({children:e})=>r(o,{component:"ul",sx:{pl:2.5,my:2,display:"grid",gap:.5,listStyleType:"disc"},children:a(e)}),ol:({children:e})=>r(o,{component:"ol",sx:{pl:2.5,my:2,display:"grid",gap:.5,listStyleType:"decimal"},children:a(e)}),li:({children:e})=>r(t,{component:"li",children:a(e)}),h1:({children:e})=>r(m,{sx:{mb:1,mt:.5},children:a(e)}),h2:({children:e})=>r(l,{sx:{mb:.5,mt:.5},children:a(e)}),h3:({children:e})=>r(l,{sx:{mb:.5,mt:.5},children:a(e)}),code:({children:e})=>r(c,{children:a(e)}),pre:({children:e})=>r(i,{component:"pre",variant:"outlined",sx:{my:2,p:1.5,overflowX:"auto",fontFamily:'"SFMono-Regular", "Consolas", "Liberation Mono", "Menlo", monospace',fontSize:"0.75rem",lineHeight:1.5,bgcolor:"action.hover"},children:a(e)}),hr:()=>r(o,{component:"hr",sx:{my:3,border:0,borderTop:1,borderColor:"divider"}})};return r(d,{remarkPlugins:[h],components:{...g,...s},children:e})};export{a as chatWindowMarkdownComponents,g as default};
1
+ import{jsx as e}from"react/jsx-runtime";import{isValidElement as r,cloneElement as o}from"react";import{Box as n}from"../../Box.mjs";import{Paper as i}from"../../Paper.mjs";import{ChatWindowBody as t,H4 as l,H3 as d}from"../../Typography.mjs";import{Code as c}from"../../Code.mjs";import{Markdown as m}from"../../../node_modules/react-markdown/lib/index.mjs";import h from"../../../node_modules/remark-gfm/lib/index.mjs";const p=(r,o)=>{const i=o?.trim();if(!i)return r;const t=new RegExp(`(${(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(i)})`,"ig");return r.split(t).map((r,o)=>{if(!r)return null;return r.toLowerCase()===i.toLowerCase()?e(n,{component:"mark",sx:{backgroundColor:e=>"dark"===e.palette.mode?"rgba(255, 214, 10, 0.35)":"rgba(255, 214, 10, 0.45)",color:"inherit",borderRadius:.5,px:.25,py:0},children:r},`${r}-${o}`):r})},s=(e,n)=>{if("string"==typeof e)return p(e,n);if("number"==typeof e)return p(e.toString(),n);if(Array.isArray(e))return e.map(e=>s(e,n));if(r(e)){const r=e.props.children;return void 0===r?e:o(e,void 0,s(r,n))}return e},a={p:({children:r})=>e(t,{sx:{mb:1,"&:last-child":{mb:0}},children:r}),li:({children:r})=>e(t,{component:"li",children:r}),strong:({children:r})=>e(n,{component:"strong",sx:{fontWeight:700,fontSize:"inherit",lineHeight:"inherit"},children:r}),em:({children:r})=>e(n,{component:"em",sx:{fontStyle:"italic",fontSize:"inherit",lineHeight:"inherit"},children:r})},g=({content:r,highlightQuery:o,components:p})=>{const a=e=>s(e,o),g={p:({children:r})=>e(t,{sx:{mb:1,"&:last-child":{mb:0}},children:a(r)}),strong:({children:r})=>e(n,{component:"strong",sx:{fontWeight:700},children:a(r)}),em:({children:r})=>e(n,{component:"em",sx:{fontStyle:"italic"},children:a(r)}),ul:({children:r})=>e(n,{component:"ul",sx:{pl:2.5,my:2,display:"grid",gap:.5,listStyleType:"disc"},children:a(r)}),ol:({children:r})=>e(n,{component:"ol",sx:{pl:2.5,my:2,display:"grid",gap:.5,listStyleType:"decimal"},children:a(r)}),li:({children:r})=>e(t,{component:"li",children:a(r)}),h1:({children:r})=>e(d,{sx:{mb:1,mt:.5},children:a(r)}),h2:({children:r})=>e(l,{sx:{mb:.5,mt:.5},children:a(r)}),h3:({children:r})=>e(l,{sx:{mb:.5,mt:.5},children:a(r)}),code:({children:r})=>e(c,{children:a(r)}),pre:({children:r})=>e(i,{component:"pre",variant:"outlined",sx:{my:2,p:1.5,overflowX:"auto",fontFamily:'"SFMono-Regular", "Consolas", "Liberation Mono", "Menlo", monospace',fontSize:"0.75rem",lineHeight:1.5,bgcolor:"action.hover"},children:a(r)}),hr:()=>e(n,{component:"hr",sx:{my:3,border:0,borderTop:1,borderColor:"divider"}}),table:({children:r})=>e(n,{component:"table",sx:{width:"100%",borderCollapse:"collapse",my:1},children:r}),th:({children:r})=>e(n,{component:"th",sx:{border:"1px solid",borderColor:"divider",px:1.25,py:.75,textAlign:"left",bgcolor:"action.hover",fontWeight:600},children:r}),td:({children:r})=>e(n,{component:"td",sx:{border:"1px solid",borderColor:"divider",px:1.25,py:.75,textAlign:"left"},children:r})};return e(m,{remarkPlugins:[h],components:{...g,...p},children:r})};export{a as chatWindowMarkdownComponents,g as default};
@@ -1 +1 @@
1
- const o="1.14.13";export{o as SAGE_NEXUS_UI_VERSION};
1
+ const o="1.14.14";export{o as SAGE_NEXUS_UI_VERSION};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sage-nexus-ui",
3
- "version": "1.14.13",
3
+ "version": "1.14.14",
4
4
  "description": "Nexus core components",
5
5
  "license": "ISC",
6
6
  "author": "emsmart-sage",