An open source design system that's fully customizable and agent ready
TypeScript
fix(block): rename and center ChatTokenizedText basic block (#1883)
Kenton Quatmanc2b5334b7f8c
diff --git a/packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextBasic.doc.mjs b/packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextBasic.doc.mjsnew file mode 100644index 0000000000..710662878b--- /dev/null+++ b/packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextBasic.doc.mjs@@ -0,0 +1,9 @@+/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+export const doc = {+ type: 'block',+ name: 'ChatTokenizedText — Basic',+ description: 'A message with @mention tokens. Each matching pattern is replaced with its display name badge.',+ isReady: true,+ aspectRatio: 16 / 9,+ componentsUsed: ['ChatTokenizedText', 'Chat'],+};diff --git a/packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextMultipleMentions.tsx b/packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextBasic.tsxsimilarity index 52%rename from packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextMultipleMentions.tsxrename to packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextBasic.tsxindex 80aa777226..3c3e4bb817 100644--- a/packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextMultipleMentions.tsx+++ b/packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextBasic.tsx@@ -8,18 +8,17 @@ import {} from '@xds/core/Chat';const tokens = [- {value: '@cindy', label: '@Cindy Zhang', variant: 'blue' as const},- {value: '@agent', label: '@Agent', variant: 'blue' as const},- {value: '@alex', label: '@Alex Rivera', variant: 'blue' as const},+ {value: '@cindy', label: '@Cindy', variant: 'blue' as const},+ {value: '@alex', label: '@Alex', variant: 'blue' as const},];-export default function ChatTokenizedTextMultipleMentions() {+export default function ChatTokenizedTextBasic() {return (<XDSChatMessageList>- <XDSChatMessage sender="user">+ <XDSChatMessage sender="system"><XDSChatMessageBubble><XDSChatTokenizedText tokens={tokens}>- @cindy and @alex can @agent help with the review?+ Assign @cindy and @alex as reviewers.</XDSChatTokenizedText></XDSChatMessageBubble></XDSChatMessage>diff --git a/packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextMultipleMentions.doc.mjs b/packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextMultipleMentions.doc.mjsdeleted file mode 100644index e96f7c62dc..0000000000--- a/packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextMultipleMentions.doc.mjs+++ /dev/null@@ -1,9 +0,0 @@-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */-export const doc = {- type: 'block',- name: 'ChatTokenizedText — Multiple Tokens',- description: 'A message with several @mention tokens. Each matching pattern is independently replaced with its display name badge, so multiple people can be referenced in a single message.',- isReady: true,- aspectRatio: 16 / 9,- componentsUsed: ['ChatTokenizedText', 'Chat'],-};