@assistkick/create 1.29.0 → 1.31.0
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/package.json +1 -1
- package/templates/assistkick-product-system/packages/frontend/src/components/ChatMessageContent.tsx +2 -3
- package/templates/assistkick-product-system/packages/frontend/src/components/markdownComponents.tsx +6 -5
- package/templates/assistkick-product-system/packages/frontend/src/styles/index.css +9 -0
package/package.json
CHANGED
package/templates/assistkick-product-system/packages/frontend/src/components/ChatMessageContent.tsx
CHANGED
|
@@ -38,7 +38,7 @@ const buildResultMap = (blocks: ContentBlock[]): Map<string, ToolResultBlock> =>
|
|
|
38
38
|
|
|
39
39
|
/** Tailwind classes for the markdown container (replaces .chat-markdown CSS) */
|
|
40
40
|
const chatMarkdownClass = [
|
|
41
|
-
'text-[13px] font-mono text-content break-words min-w-0',
|
|
41
|
+
'md-lists text-[13px] font-mono text-content break-words min-w-0',
|
|
42
42
|
// first/last child spacing
|
|
43
43
|
'[&>*:first-child]:mt-0 [&>*:last-child]:mb-0',
|
|
44
44
|
// headings
|
|
@@ -48,8 +48,7 @@ const chatMarkdownClass = [
|
|
|
48
48
|
'[&_h4]:text-[13px] [&_h4]:font-semibold [&_h4]:mt-2.5 [&_h4]:mb-1 [&_h4]:leading-[1.3]',
|
|
49
49
|
// paragraphs
|
|
50
50
|
'[&_p]:my-1.5 [&_p]:leading-[1.6]',
|
|
51
|
-
// lists
|
|
52
|
-
'[&_ul]:list-disc [&_ol]:list-decimal [&_ul_ul]:list-circle [&_ol_ol]:list-[lower-alpha]',
|
|
51
|
+
// lists — list-style-type is forced by .md-lists in index.css (outside @layer, !important)
|
|
53
52
|
'[&_ul]:pl-5 [&_ol]:pl-5 [&_ul]:my-1.5 [&_ol]:my-1.5',
|
|
54
53
|
'[&_li]:my-[3px] [&_li]:leading-normal [&_li>p]:my-0.5',
|
|
55
54
|
// blockquote
|
package/templates/assistkick-product-system/packages/frontend/src/components/markdownComponents.tsx
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared react-markdown component overrides used across all markdown renderers.
|
|
3
3
|
*
|
|
4
|
-
* - ol/ul:
|
|
4
|
+
* - ol/ul: strip `node` prop to prevent React DOM warnings (react-markdown v10 passes hast AST nodes)
|
|
5
|
+
* - list-style-type is handled by .md-lists CSS in index.css (outside @layer, !important)
|
|
5
6
|
* - code: syntax-highlighted fenced blocks (Prism) + mermaid diagram rendering
|
|
6
7
|
*/
|
|
7
8
|
|
|
@@ -11,11 +12,11 @@ import { oneDark } from 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
|
11
12
|
import { MermaidBlock } from './MermaidBlock';
|
|
12
13
|
|
|
13
14
|
export const markdownComponents: Components = {
|
|
14
|
-
ol({ children, ...props }) {
|
|
15
|
-
return <ol {...props}
|
|
15
|
+
ol({ children, node, ...props }) {
|
|
16
|
+
return <ol {...props}>{children}</ol>;
|
|
16
17
|
},
|
|
17
|
-
ul({ children, ...props }) {
|
|
18
|
-
return <ul {...props}
|
|
18
|
+
ul({ children, node, ...props }) {
|
|
19
|
+
return <ul {...props}>{children}</ul>;
|
|
19
20
|
},
|
|
20
21
|
code({ className, children, ...props }) {
|
|
21
22
|
const match = /language-(\w+)/.exec(className || '');
|
|
@@ -166,6 +166,15 @@ html, body, #root {
|
|
|
166
166
|
|
|
167
167
|
} /* end @layer base */
|
|
168
168
|
|
|
169
|
+
/* Force list markers through Tailwind v4 preflight reset.
|
|
170
|
+
Must be OUTSIDE @layer so these override all layered rules.
|
|
171
|
+
list-style-position: inside is required because 'outside' markers get
|
|
172
|
+
clipped when ancestor elements use overflow: hidden + min-w-0. */
|
|
173
|
+
.md-lists ol { list-style: decimal inside !important; }
|
|
174
|
+
.md-lists ul { list-style: disc inside !important; }
|
|
175
|
+
.md-lists ul ul { list-style: circle inside !important; }
|
|
176
|
+
.md-lists ol ol { list-style: lower-alpha inside !important; }
|
|
177
|
+
|
|
169
178
|
/* Keyframes — referenced by Tailwind arbitrary animations and CSS classes */
|
|
170
179
|
@keyframes toast-slide-in {
|
|
171
180
|
from { transform: translateY(20px); opacity: 0; }
|