@bothub-chat/ui 2.52.1-fix-code-cls-2343752f-16fe-4c08-9336-251f5889aea5 → 2.52.1-fix-code-cls-a9a31d0a-20e0-42f9-854c-0348bfbf1f19
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 e,jsxs as l}from"react/jsx-runtime";import{memo as i,useRef as r,Suspense as
|
|
1
|
+
import{jsx as e,jsxs as l}from"react/jsx-runtime";import{memo as i,useRef as r,Suspense as n,lazy as o}from"react";import{MessageMultilineCodeContentContainer as s,MessageMultilineCodeContentStyled as t,MessageMultilineCodeLastLine as c}from"./styled.js";const a=o(()=>import("./highlighted.js").then(e=>({default:e.MessageMultilineCodeContentHighlighted}))),d=i(({children:i,$messageColor:o,className:d})=>{var h;const m=null!==(h=null==i?void 0:i.toString().split("\n"))&&void 0!==h?h:[],g=r(null);return e(s,{ref:g,"data-codeblock":"true",children:e(n,{fallback:e("pre",{children:l(t,{$messageColor:o,className:d,children:[m.slice(0,-2).join("\n"),e(c,{children:m.slice(-2)})]})}),children:l(a,{$messageColor:o,className:d,children:[m.slice(0,-1).join("\n"),e(c,{children:m.slice(-1)})]})})})});export{d as MessageMultilineCodeContent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{styled as t,css as e}from"styled-components";import"react/jsx-runtime";import"react";import"../../../../../scrollbar/styled.js";import"tslib";import"@react-spring/web";import"../../../../../scrollbar/shadow/styled.js";import"../../../../../../theme/index.js";import{ScrollbarStyle as o}from"../../../../../scrollbar/style/styled.js";import{adaptive as r}from"../../../../../../adaptive/index.js";const i=t.div.withConfig({displayName:"styled__MessageMultilineCodeContentContainer",componentId:"sc-nvn5z9-0"})(["background-color:#002635;"]),n=e([""," overflow-x:auto;line-height:1.3;padding:1em;
|
|
1
|
+
import{styled as t,css as e}from"styled-components";import"react/jsx-runtime";import"react";import"../../../../../scrollbar/styled.js";import"tslib";import"@react-spring/web";import"../../../../../scrollbar/shadow/styled.js";import"../../../../../../theme/index.js";import{ScrollbarStyle as o}from"../../../../../scrollbar/style/styled.js";import{adaptive as r}from"../../../../../../adaptive/index.js";const i=t.div.withConfig({displayName:"styled__MessageMultilineCodeContentContainer",componentId:"sc-nvn5z9-0"})(["background-color:#002635;"]),n=e([""," overflow-x:auto;line-height:1.3;padding:1em;span{line-height:1.3;}&::selection,*::selection{","}",""],o,({$messageColor:t})=>{switch(t){case"default":return e(["background:"," !important;color:"," !important;"],({theme:t})=>"light"===t.mode?t.default.colors.accent.primary:t.colors.base.white,({theme:t})=>"light"===t.mode?t.default.colors.base.white:t.colors.accent.primary);case"green":return e(["background:"," !important;color:"," !important;"],({theme:t})=>t.default.colors.base.white,({theme:t})=>t.colors.gpt3);case"purple":return e(["background:"," !important;color:"," !important;"],({theme:t})=>t.default.colors.base.white,({theme:t})=>t.colors.gpt4);default:return e(["background:"," !important;color:"," !important;"],({theme:t})=>t.default.colors.base.white,t)}},r({variant:"dashboard",miniTablet:e(["font-size:14px !important;span{font-size:14px !important;}"]),mobile:e(["font-size:12px !important;span{font-size:12px !important;}"]),touch:e(["&::-webkit-scrollbar{display:none;}"])})),a=t.code.withConfig({displayName:"styled__MessageMultilineCodeContentStyled",componentId:"sc-nvn5z9-1"})([""," background-color:#002635;color:#fff;display:block;"],n),s=t.div.withConfig({displayName:"styled__MessageMultilineCodeLastLine",componentId:"sc-nvn5z9-2"})([""]);export{i as MessageMultilineCodeContentContainer,a as MessageMultilineCodeContentStyled,s as MessageMultilineCodeLastLine,n as contentStyles};
|
package/package.json
CHANGED