@djangocfg/ui-tools 2.1.104 → 2.1.106
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/dist/index.mjs
CHANGED
|
@@ -4925,8 +4925,8 @@ var createMarkdownComponents = /* @__PURE__ */ __name((isUser = false, isCompact
|
|
|
4925
4925
|
h4: /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ jsx("h4", { className: `${headingSm} font-semibold mb-1 mt-2 first:mt-0`, children }), "h4"),
|
|
4926
4926
|
h5: /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ jsx("h5", { className: `${headingSm} font-medium mb-1 mt-2 first:mt-0`, children }), "h5"),
|
|
4927
4927
|
h6: /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ jsx("h6", { className: `${headingSm} font-medium mb-1 mt-2 first:mt-0`, children }), "h6"),
|
|
4928
|
-
// Paragraphs -
|
|
4929
|
-
p: /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ jsx("p", { className: `${textSize} mb-
|
|
4928
|
+
// Paragraphs - optimized for chat readability
|
|
4929
|
+
p: /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ jsx("p", { className: `${textSize} mb-4 last:mb-0 leading-7 break-words font-light`, children }), "p"),
|
|
4930
4930
|
// Lists - compact
|
|
4931
4931
|
ul: /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ jsx("ul", { className: `list-disc list-inside mb-2 space-y-1 ${textSize}`, children }), "ul"),
|
|
4932
4932
|
ol: /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ jsx("ol", { className: `list-decimal list-inside mb-2 space-y-1 ${textSize}`, children }), "ol"),
|
|
@@ -5156,7 +5156,7 @@ var MarkdownMessage = /* @__PURE__ */ __name(({
|
|
|
5156
5156
|
const proseClass = isCompact ? "prose-xs" : "prose-sm";
|
|
5157
5157
|
const isPlainText = !hasMarkdownSyntax(displayContent);
|
|
5158
5158
|
if (isPlainText) {
|
|
5159
|
-
return /* @__PURE__ */ jsxs("span", { className: `${textSizeClass} leading-
|
|
5159
|
+
return /* @__PURE__ */ jsxs("span", { className: `${textSizeClass} leading-7 break-words whitespace-pre-line font-light ${className}`, children: [
|
|
5160
5160
|
displayContent,
|
|
5161
5161
|
collapsible && shouldCollapse && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5162
5162
|
isCollapsed && "... ",
|
|
@@ -5181,6 +5181,7 @@ var MarkdownMessage = /* @__PURE__ */ __name(({
|
|
|
5181
5181
|
className: `
|
|
5182
5182
|
prose ${proseClass} max-w-none break-words overflow-hidden ${textSizeClass}
|
|
5183
5183
|
${isUser ? "prose-invert" : "dark:prose-invert"}
|
|
5184
|
+
[&>*]:leading-7
|
|
5184
5185
|
`,
|
|
5185
5186
|
style: {
|
|
5186
5187
|
// Inherit colors from parent - fixes issues with external CSS variables
|