feat: TextToDiagram v2 (#10530)
* feat: introducing TextToDiagram v2 feature * fix: eslint issue * debug mermaid bundle size * tests: covering the utils * fix: import mock chunks dynamically to shrink the bundle size * fix: removing replay feature * fix: removing unused prop * fix: bumping workbox cache limit * snapshots + yarn.lock * bump mermaid-to-excalidraw@2 and split into its own chunk * bump node@20 * css tweaks * move files around & rewrite stream chunk schema * random naming & file structure refactor + some tweaks * fix preview theme * support custom warning renderer * label and css fix * fix and rwrite 429 handling * fix label --------- Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
This commit is contained in:
@@ -612,7 +612,54 @@
|
||||
"button": "Insert",
|
||||
"description": "Currently only <flowchartLink>Flowchart</flowchartLink>,<sequenceLink> Sequence, </sequenceLink> and <classLink>Class </classLink>Diagrams are supported. The other types will be rendered as image in Excalidraw.",
|
||||
"syntax": "Mermaid Syntax",
|
||||
"preview": "Preview"
|
||||
"preview": "Preview",
|
||||
"label": "Mermaid",
|
||||
"inputPlaceholder": "Write Mermaid diagram defintion here..."
|
||||
},
|
||||
"ttd": {
|
||||
"error": "Error!",
|
||||
"errorMermaidSyntax": "Mermaid syntax error"
|
||||
},
|
||||
"chat": {
|
||||
"inputPlaceholder": "Start typing your diagram idea here... ({{shortcut}} for new line)",
|
||||
"inputPlaceholderWithMessages": "Continue refining your diagram...",
|
||||
"rateLimitRemaining": "{{count}} requests left today",
|
||||
"role": {
|
||||
"user": "You",
|
||||
"assistant": "AI Assistant",
|
||||
"system": "System"
|
||||
},
|
||||
"aiBeta": "AI Beta",
|
||||
"label": "Chat",
|
||||
"menu": "Menu",
|
||||
"newChat": "New Chat",
|
||||
"deleteChat": "Delete chat",
|
||||
"deleteMessage": "Delete message",
|
||||
"viewAsMermaid": "View as Mermaid",
|
||||
"placeholder": {
|
||||
"title": "Let's design your diagram",
|
||||
"description": "Describe the diagram you want to create, and we'll generate it for you.",
|
||||
"hint": "At the moment we know Flowchart, Sequence, and Class diagrams."
|
||||
},
|
||||
"preview": "Preview",
|
||||
"insert": "Insert",
|
||||
"retry": "Retry",
|
||||
"errors": {
|
||||
"promptTooShort": "Prompt is too short (min {{min}} characters)",
|
||||
"promptTooLong": "Prompt is too long (max {{max}} characters)",
|
||||
"generationFailed": "Generation failed",
|
||||
"invalidDiagram": "Generated an invalid diagram :(. You may also try a different prompt.",
|
||||
"fixInMermaid": "Edit Mermaid manually →",
|
||||
"aiRepair": "Regenerate (auto-fix) →",
|
||||
"requestAborted": "Request aborted",
|
||||
"requestFailed": "Request failed"
|
||||
},
|
||||
"rateLimit": {
|
||||
"messageLimit": "You've hit your AI limit on the free plan. Try out Excalidraw+ for more or come back tomorrow.",
|
||||
"generalRateLimit": "Hold your horses, you're too fast for us! Please wait a moment before trying again.",
|
||||
"messageLimitInputPlaceholder": "You've reached your message limit"
|
||||
},
|
||||
"upsellBtnLabel": "Upgrade to Plus"
|
||||
},
|
||||
"quickSearch": {
|
||||
"placeholder": "Quick search"
|
||||
|
||||
Reference in New Issue
Block a user