@automattic/agenttic-ui 0.1.76 → 0.1.77
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/{DiffCard-eat_q_SY.js → DiffCard-WlOKTIaG.js} +455 -435
- package/dist/DiffCard.css +1 -1
- package/dist/components/chat/ChatInput.d.ts +2 -1
- package/dist/components/chat/ChatInput.d.ts.map +1 -1
- package/dist/components/chat/ChatInput.stories.d.ts +2 -0
- package/dist/components/chat/ChatInput.stories.d.ts.map +1 -1
- package/dist/components/chat/ImageUploader.d.ts +2 -1
- package/dist/components/chat/ImageUploader.d.ts.map +1 -1
- package/dist/components/composable/AgentUIInput.d.ts +3 -1
- package/dist/components/composable/AgentUIInput.d.ts.map +1 -1
- package/dist/embedded-agent-ui.js +2 -2
- package/dist/index.css +1 -1
- package/dist/index.js +1818 -1770
- package/package.json +1 -1
package/dist/DiffCard.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.button-module_button{align-items:center;border-radius:var(--radius-sm);border:1px solid transparent;color:var(--color-foreground);cursor:pointer;display:inline-flex;flex-shrink:0;font-weight:var(--font-weight-medium);font-size:var(--text-sm);gap:calc(var(--spacing) * .5);justify-content:center;outline:none;transition:var(--transition-colors);letter-spacing:var(--text-base--tracking);white-space:nowrap;height:var(--spacing-8);padding:var(--spacing-2) var(--spacing-3)}.button-module_button:disabled{pointer-events:none;background-color:var(--color-muted);color:var(--color-muted-foreground)}.button-module_button:focus-visible{outline:2px solid var(--color-ring);outline-offset:1.5px}.button-module_pressed{color:var(--color-foreground)}.button-module_pressed svg{color:var(--color-foreground)}.button-module_primary{background-color:var(--color-primary);color:var(--color-primary-foreground)}.button-module_primary:hover:not(:disabled){background-color:color-mix(in srgb,var(--color-primary) 85%,#000)}.button-module_ghost{background-color:transparent;color:var(--color-muted-foreground)}.button-module_ghost svg{color:var(--color-muted-foreground)}.button-module_ghost:hover:not(:disabled){background:transparent;color:var(--color-foreground)}.button-module_ghost:hover:not(:disabled) svg{color:var(--color-foreground)}.button-module_ghost:disabled{background:transparent;opacity:.66}.button-module_ghost:focus-visible{outline-offset:0}.button-module_ghost.button-module_pressed{color:var(--color-foreground)}.button-module_ghost.button-module_pressed svg{color:var(--color-foreground)}.button-module_outline{box-shadow:var(--shadow-outline);background-color:var(--color-background)}.button-module_outline:hover:not(:disabled){box-shadow:var(--shadow-outline-strong)}.button-module_outline:focus-visible{outline-offset:0}.button-module_outline:disabled{background-color:var(--color-background)}.button-module_outline.button-module_pressed{color:var(--color-foreground)}.button-module_outline.button-module_pressed svg{color:var(--color-foreground)}.button-module_transparent{background-color:color-mix(in srgb,var(--color-background) 95%,transparent);color:var(--color-foreground);box-shadow:var(--shadow-lg)}.button-module_transparent:hover:not(:disabled){background-color:var(--color-background);box-shadow:var(--shadow-lg)}.button-module_link{background-color:transparent;color:var(--color-primary);font-weight:var(--font-weight-semibold);padding-left:var(--spacing-2);padding-right:var(--spacing-2);width:auto}.button-module_link:hover:not(:disabled){color:color-mix(in srgb,var(--color-primary) 85%,#000)}.button-module_link.button-module_pressed{color:var(--color-primary)}.button-module_link.button-module_pressed svg{color:var(--color-primary)}.button-module_icon{border-radius:var(--radius-xs);height:var(--spacing-8);padding:0;width:var(--spacing-8)}.button-module_sm{border-radius:var(--radius-xs);gap:0;height:var(--spacing-6);padding:0;width:var(--spacing-6)}.button-module_sm svg{height:var(--spacing-6);width:var(--spacing-6)}.button-module_lg{height:var(--spacing-10);border-radius:var(--radius-md);font-size:var(--text-base);padding-left:var(--spacing-3\.5);padding-right:var(--spacing-3\.5)}.button-module_withTextAndIcon{padding-left:var(--spacing-1);width:inherit}.button-module_sm.button-module_withTextAndIcon{padding-left:0;padding-right:var(--spacing-1)}.button-module_button svg{flex-shrink:0;pointer-events:none}.Textarea-module_textarea{display:flex;width:100%;border-radius:var(--radius-md);border:0;font-size:var(--text-sm);line-height:var(--text-sm--line-height);background-color:transparent;padding:var(--spacing-2);scrollbar-width:none;resize:none}.Textarea-module_textarea::-moz-placeholder{color:var(--color-muted-foreground);font-weight:var(--font-weight-medium)}.Textarea-module_textarea::placeholder{color:var(--color-muted-foreground);font-weight:var(--font-weight-medium)}.Textarea-module_textarea:focus,.Textarea-module_textarea:focus-visible{outline:none;border:0;box-shadow:none}.Textarea-module_textarea:disabled{cursor:not-allowed;opacity:.5}.ChatInput-module_container{display:flex;align-items:end;gap:var(--spacing)}.ChatInput-module_container textarea{color:var(--color-foreground)}.ChatInput-module_textareaContainer{position:relative;flex:1;width:100%}.ChatInput-module_actions{display:flex;flex-direction:row;padding-left:var(--spacing);padding-right:var(--spacing);height:var(--spacing-10);gap:var(--spacing);align-items:center}.ChatInput-module_containerStacked{flex-direction:column;padding:var(--spacing-2);gap:var(--spacing)}.ChatInput-module_containerStacked .ChatInput-module_actions{width:100%;justify-content:space-between;padding-left:0;padding-right:0}.ChatInput-module_containerStacked .ChatInput-module_actions .ChatInput-module_button{min-width:var(--spacing-8);min-height:var(--spacing-8)}.ChatInput-module_button{border-radius:var(--radius-full)}.AnimatedPlaceholder-module_container{color:var(--color-muted-foreground);font-weight:var(--font-weight-medium);padding-left:var(--spacing-2);padding-right:var(--spacing-2);padding-top:var(--spacing-2);pointer-events:none;position:absolute;z-index:1}.SuggestionDropdown-module_container{position:relative}.SuggestionDropdown-module_labelRow{display:flex;align-items:center}.SuggestionDropdown-module_chevron{margin-left:var(--spacing-0\.5);transition:transform .15s ease;flex-shrink:0}.SuggestionDropdown-module_chevronOpen{transform:rotate(180deg)}.SuggestionDropdown-module_dropdown{display:flex;flex-direction:column;background-color:var(--color-background);border-radius:var(--radius-sm);padding:var(--spacing-2);z-index:1000;box-shadow:var(--shadow-lg)}.agenttic.dark .SuggestionDropdown-module_dropdown{border:1px solid var(--color-muted)}.SuggestionDropdown-module_option{display:flex;align-items:center;width:100%;padding:var(--spacing-2);background:none;border:none;border-radius:var(--radius-sm);color:var(--color-foreground);font-size:var(--text-sm);font-weight:var(--font-weight-medium);font-family:inherit;cursor:pointer;text-align:start;white-space:nowrap}.SuggestionDropdown-module_option:hover{background-color:color-mix(in srgb,var(--color-background) 50%,var(--color-muted))}.SuggestionDropdown-module_option:focus{outline:none}.SuggestionDropdown-module_option:focus-visible{outline:2px solid var(--color-primary);outline-offset:-2px}.Suggestions-module_container{position:absolute;top:0;left:0;right:0;display:flex;flex-wrap:nowrap;gap:var(--spacing-2);padding:var(--spacing-2) var(--spacing-1\.5);overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none}.Suggestions-module_container::-webkit-scrollbar{display:none}.Suggestions-module_vertical{position:static;flex-direction:column;overflow:visible;gap:0;padding:0}.Suggestions-module_vertical .Suggestions-module_button{width:100%;height:unset;justify-content:start;font-size:var(--text-xs);line-height:20px;padding:14px 16px;border:1px solid var(--color-muted);border-radius:0;box-shadow:none}.Suggestions-module_vertical .Suggestions-module_button .Suggestions-module_suggestion-content--with-description{display:flex;flex-direction:column}.Suggestions-module_vertical .Suggestions-module_button .Suggestions-module_suggestion-content--with-description .Suggestions-module_label{font-weight:var(--font-weight-semibold)}.Suggestions-module_vertical .Suggestions-module_button .Suggestions-module_suggestion-content--with-description .Suggestions-module_description{color:var(--color-muted-foreground)}.Suggestions-module_vertical .Suggestions-module_button:hover{box-shadow:none;background-color:color-mix(in srgb,var(--color-background) 50%,var(--color-muted))}.Suggestions-module_vertical .Suggestions-module_button:focus-visible{outline-offset:-3px}.Suggestions-module_vertical>div+div .Suggestions-module_button{margin-top:-1px}.Suggestions-module_vertical>div:only-of-type .Suggestions-module_button{border-radius:8px}.Suggestions-module_vertical>div:first-of-type:not(:only-of-type) .Suggestions-module_button{border-radius:8px 8px 0 0}.Suggestions-module_vertical>div:last-of-type:not(:only-of-type) .Suggestions-module_button{border-radius:0 0 8px 8px}.Suggestions-module_floating{flex-direction:column;gap:var(--spacing-1);overflow:visible;padding:1px;padding-bottom:var(--spacing-1);z-index:-1}.SourcesCard-module_card{background:var(--color-background);border:1px solid color-mix(in srgb,var(--color-foreground) 10%,transparent);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:var(--spacing-2);padding:var(--spacing-3)}.SourcesCard-module_heading{color:var(--color-muted-foreground);font-size:var(--text-sm);font-weight:var(--font-weight-semibold);line-height:var(--text-sm--line-height);margin:0;text-transform:uppercase;letter-spacing:.04em}.SourcesCard-module_list{display:flex;flex-direction:column;gap:var(--spacing-2);list-style:none;margin:0;padding:0}.SourcesCard-module_item{display:flex;flex-direction:column;gap:var(--spacing-1)}.SourcesCard-module_title{color:var(--color-foreground);font-size:var(--text-sm);font-weight:var(--font-weight-medium);line-height:var(--text-sm--line-height);text-decoration:none;word-break:break-word}a.SourcesCard-module_title:hover,a.SourcesCard-module_title:focus-visible{color:var(--color-primary);text-decoration:underline}a.SourcesCard-module_title:focus-visible{outline:2px solid var(--color-ring);outline-offset:2px}.SourcesCard-module_label{color:var(--color-muted-foreground);font-size:var(--text-xs);line-height:var(--text-xs--line-height)}.Notice-module_container{position:relative;display:flex;align-items:center;margin:calc((var(--spacing-2)) * -1) calc((var(--spacing-2)) * -1) 0;padding:var(--spacing-2) var(--spacing-4);gap:var(--spacing-3);background-color:var(--color-muted);border-radius:calc(var(--radius-lg)) calc(var(--radius-lg)) 0 0;color:var(--color-muted-foreground)}.Notice-module_container *{font-size:var(--text-xs);font-weight:var(--font-weight-medium);line-height:var(--text-xs--line-height)}.Notice-module_isSuccess{background-color:var(--color-success-background);color:var(--color-success)}.Notice-module_isSuccess .Notice-module_icon svg path{fill:var(--color-success)}.Notice-module_isWarning{background-color:var(--color-warning-background);color:var(--color-warning)}.Notice-module_isWarning .Notice-module_icon svg path{fill:var(--color-warning)}.Notice-module_isError{background-color:var(--color-error-background);color:var(--color-error)}.Notice-module_isError .Notice-module_icon svg path{fill:var(--color-error)}.Notice-module_content{align-items:center;display:flex;flex:1;gap:var(--spacing);min-width:0}.Notice-module_content *{margin:0}.Notice-module_actions{align-items:center;display:flex;flex-shrink:0;gap:var(--spacing)}.Notice-module_action{height:auto;font-size:var(--text-xs);font-weight:var(--font-weight-bold);color:var(--color-foreground);border:none;padding:0}.Notice-module_action:hover:not(:disabled){color:var(--color-foreground);opacity:.8}.Notice-module_action:is(:focus,:focus-visible){outline-offset:0}.Notice-module_icon{align-items:center;display:flex;flex-shrink:0;justify-content:center}.Notice-module_icon svg{display:block;height:var(--spacing-5);width:var(--spacing-5)}.Notice-module_dismissible svg{display:block;width:var(--spacing-5);height:var(--spacing-5);color:var(--color-muted-foreground)}.ChatFooter-module_container{background-color:var(--color-popover-muted);border-radius:calc(var(--radius-lg) + 1px);border:1px solid var(--color-muted);color:var(--color-foreground);display:flex;flex-direction:column;gap:var(--spacing-2);padding:var(--spacing-2);position:relative;z-index:10}.ChatFooter-module_disclosure{margin:0;padding-top:var(--spacing-2);font-size:var(--text-xs);line-height:var(--text-xs--line-height);color:var(--color-muted-foreground);text-align:center}.ChatFooter-module_disclosure a{color:inherit;text-decoration:underline}.QuestionCard-module_card{background:var(--color-background);border:1px solid color-mix(in srgb,var(--color-foreground) 10%,transparent);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:var(--spacing-3);padding:var(--spacing-4)}.QuestionCard-module_question{color:var(--color-foreground);font-size:var(--text-base);font-weight:var(--font-weight-semibold);line-height:var(--text-base--line-height);margin:0}.QuestionCard-module_choices{display:grid;gap:var(--spacing-2)}.QuestionCard-module_choicesGrid{grid-template-columns:repeat(2,minmax(0,1fr))}@media (max-width: 520px){.QuestionCard-module_choicesGrid{grid-template-columns:1fr}}.QuestionCard-module_choice{align-items:stretch;background:var(--color-background);border:1px solid color-mix(in srgb,var(--color-foreground) 10%,transparent);border-radius:var(--radius-md);color:var(--color-foreground);cursor:pointer;display:grid;gap:var(--spacing-2);padding:var(--spacing-3);text-align:left;transition:var(--transition-colors);width:100%}.QuestionCard-module_choice:hover:not(:disabled){border-color:var(--color-ring);box-shadow:var(--shadow-outline)}.QuestionCard-module_choice:focus-visible{outline:2px solid var(--color-ring);outline-offset:2px}.QuestionCard-module_choice:disabled{cursor:default;opacity:.66}.QuestionCard-module_answered{border-color:var(--color-primary)}.QuestionCard-module_label{font-size:var(--text-sm);font-weight:var(--font-weight-semibold);line-height:var(--text-sm--line-height)}.QuestionCard-module_description,.QuestionCard-module_layoutHint{color:var(--color-muted-foreground);font-size:var(--text-sm);line-height:var(--text-sm--line-height)}.DiffCard-module_card{background:var(--color-background);border:1px solid color-mix(in srgb,var(--color-foreground) 10%,transparent);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:var(--spacing-3);padding:var(--spacing-4)}.DiffCard-module_isResolved{opacity:.85}.DiffCard-module_title{color:var(--color-foreground);font-size:var(--text-base);font-weight:var(--font-weight-semibold);line-height:var(--text-base--line-height);margin:0}.DiffCard-module_summary{color:var(--color-muted-foreground);font-size:var(--text-sm);line-height:var(--text-sm--line-height);margin:0}.DiffCard-module_body{display:flex;flex-direction:column;gap:var(--spacing-2)}.DiffCard-module_change{display:flex;flex-direction:column;gap:var(--spacing-1)}.DiffCard-module_changeLabel{color:var(--color-muted-foreground);font-size:var(--text-xs);font-weight:var(--font-weight-medium);line-height:var(--text-xs--line-height)}.DiffCard-module_diff{background:color-mix(in srgb,var(--color-foreground) 4%,transparent);border:1px solid color-mix(in srgb,var(--color-foreground) 10%,transparent);border-radius:var(--radius-md);color:var(--color-foreground);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:var(--text-sm);line-height:var(--text-sm--line-height);margin:0;overflow-x:auto;padding:var(--spacing-3);white-space:pre-wrap;word-break:break-word}.DiffCard-module_removed{background:var(--color-error-background);border-color:color-mix(in srgb,var(--color-error) 30%,transparent)}.DiffCard-module_added{background:var(--color-success-background);border-color:color-mix(in srgb,var(--color-success) 30%,transparent)}.DiffCard-module_resolution{color:var(--color-muted-foreground);font-size:var(--text-sm);font-weight:var(--font-weight-medium);line-height:var(--text-sm--line-height);margin:0}.DiffCard-module_actions{display:flex;gap:var(--spacing-2)}.DiffCard-module_action{border:1px solid color-mix(in srgb,var(--color-foreground) 10%,transparent);border-radius:var(--radius-md);cursor:pointer;font-size:var(--text-sm);font-weight:var(--font-weight-semibold);line-height:var(--text-sm--line-height);padding:var(--spacing-2) var(--spacing-4);transition:var(--transition-colors)}.DiffCard-module_action:focus-visible{outline:2px solid var(--color-ring);outline-offset:2px}.DiffCard-module_action:disabled{cursor:default;opacity:.66}.DiffCard-module_accept{background:var(--color-primary);border-color:var(--color-primary);color:var(--color-primary-foreground)}.DiffCard-module_accept:hover:not(:disabled){box-shadow:var(--shadow-outline-strong)}.DiffCard-module_reject{background:var(--color-background);color:var(--color-foreground)}.DiffCard-module_reject:hover:not(:disabled){border-color:var(--color-ring);box-shadow:var(--shadow-outline)}
|
|
1
|
+
.button-module_button{align-items:center;border-radius:var(--radius-sm);border:1px solid transparent;color:var(--color-foreground);cursor:pointer;display:inline-flex;flex-shrink:0;font-weight:var(--font-weight-medium);font-size:var(--text-sm);gap:calc(var(--spacing) * .5);justify-content:center;outline:none;transition:var(--transition-colors);letter-spacing:var(--text-base--tracking);white-space:nowrap;height:var(--spacing-8);padding:var(--spacing-2) var(--spacing-3)}.button-module_button:disabled{pointer-events:none;background-color:var(--color-muted);color:var(--color-muted-foreground)}.button-module_button:focus-visible{outline:2px solid var(--color-ring);outline-offset:1.5px}.button-module_pressed{color:var(--color-foreground)}.button-module_pressed svg{color:var(--color-foreground)}.button-module_primary{background-color:var(--color-primary);color:var(--color-primary-foreground)}.button-module_primary:hover:not(:disabled){background-color:color-mix(in srgb,var(--color-primary) 85%,#000)}.button-module_ghost{background-color:transparent;color:var(--color-muted-foreground)}.button-module_ghost svg{color:var(--color-muted-foreground)}.button-module_ghost:hover:not(:disabled){background:transparent;color:var(--color-foreground)}.button-module_ghost:hover:not(:disabled) svg{color:var(--color-foreground)}.button-module_ghost:disabled{background:transparent;opacity:.66}.button-module_ghost:focus-visible{outline-offset:0}.button-module_ghost.button-module_pressed{color:var(--color-foreground)}.button-module_ghost.button-module_pressed svg{color:var(--color-foreground)}.button-module_outline{box-shadow:var(--shadow-outline);background-color:var(--color-background)}.button-module_outline:hover:not(:disabled){box-shadow:var(--shadow-outline-strong)}.button-module_outline:focus-visible{outline-offset:0}.button-module_outline:disabled{background-color:var(--color-background)}.button-module_outline.button-module_pressed{color:var(--color-foreground)}.button-module_outline.button-module_pressed svg{color:var(--color-foreground)}.button-module_transparent{background-color:color-mix(in srgb,var(--color-background) 95%,transparent);color:var(--color-foreground);box-shadow:var(--shadow-lg)}.button-module_transparent:hover:not(:disabled){background-color:var(--color-background);box-shadow:var(--shadow-lg)}.button-module_link{background-color:transparent;color:var(--color-primary);font-weight:var(--font-weight-semibold);padding-left:var(--spacing-2);padding-right:var(--spacing-2);width:auto}.button-module_link:hover:not(:disabled){color:color-mix(in srgb,var(--color-primary) 85%,#000)}.button-module_link.button-module_pressed{color:var(--color-primary)}.button-module_link.button-module_pressed svg{color:var(--color-primary)}.button-module_icon{border-radius:var(--radius-xs);height:var(--spacing-8);padding:0;width:var(--spacing-8)}.button-module_sm{border-radius:var(--radius-xs);gap:0;height:var(--spacing-6);padding:0;width:var(--spacing-6)}.button-module_sm svg{height:var(--spacing-6);width:var(--spacing-6)}.button-module_lg{height:var(--spacing-10);border-radius:var(--radius-md);font-size:var(--text-base);padding-left:var(--spacing-3\.5);padding-right:var(--spacing-3\.5)}.button-module_withTextAndIcon{padding-left:var(--spacing-1);width:inherit}.button-module_sm.button-module_withTextAndIcon{padding-left:0;padding-right:var(--spacing-1)}.button-module_button svg{flex-shrink:0;pointer-events:none}.Textarea-module_textarea{display:flex;width:100%;border-radius:var(--radius-md);border:0;font-size:var(--text-sm);line-height:var(--text-sm--line-height);background-color:transparent;padding:var(--spacing-2);scrollbar-width:none;resize:none}.Textarea-module_textarea::-moz-placeholder{color:var(--color-muted-foreground);font-weight:var(--font-weight-medium)}.Textarea-module_textarea::placeholder{color:var(--color-muted-foreground);font-weight:var(--font-weight-medium)}.Textarea-module_textarea:focus,.Textarea-module_textarea:focus-visible{outline:none;border:0;box-shadow:none}.Textarea-module_textarea:-moz-read-only{background-color:transparent;color:var(--color-muted-foreground)}.Textarea-module_textarea:read-only{background-color:transparent;color:var(--color-muted-foreground)}.Textarea-module_textarea:disabled{cursor:not-allowed;opacity:.5}.ChatInput-module_container{display:flex;align-items:end;gap:var(--spacing)}.ChatInput-module_container textarea{color:var(--color-foreground)}.ChatInput-module_textareaContainer{position:relative;flex:1;width:100%}.ChatInput-module_actions{display:flex;flex-direction:row;padding-left:var(--spacing);padding-right:var(--spacing);height:var(--spacing-10);gap:var(--spacing);align-items:center}.ChatInput-module_containerStacked{flex-direction:column;padding:var(--spacing-2);gap:var(--spacing)}.ChatInput-module_containerStacked .ChatInput-module_actions{width:100%;justify-content:space-between;padding-left:0;padding-right:0}.ChatInput-module_containerStacked .ChatInput-module_actions .ChatInput-module_button{min-width:var(--spacing-8);min-height:var(--spacing-8)}.ChatInput-module_button{border-radius:var(--radius-full)}.ChatInput-module_actionWrapper{display:inline-flex}.ChatInput-module_actionWrapperDisabled{cursor:not-allowed}.AnimatedPlaceholder-module_container{color:var(--color-muted-foreground);font-weight:var(--font-weight-medium);padding-left:var(--spacing-2);padding-right:var(--spacing-2);padding-top:var(--spacing-2);pointer-events:none;position:absolute;z-index:1}.SuggestionDropdown-module_container{position:relative}.SuggestionDropdown-module_labelRow{display:flex;align-items:center}.SuggestionDropdown-module_chevron{margin-left:var(--spacing-0\.5);transition:transform .15s ease;flex-shrink:0}.SuggestionDropdown-module_chevronOpen{transform:rotate(180deg)}.SuggestionDropdown-module_dropdown{display:flex;flex-direction:column;background-color:var(--color-background);border-radius:var(--radius-sm);padding:var(--spacing-2);z-index:1000;box-shadow:var(--shadow-lg)}.agenttic.dark .SuggestionDropdown-module_dropdown{border:1px solid var(--color-muted)}.SuggestionDropdown-module_option{display:flex;align-items:center;width:100%;padding:var(--spacing-2);background:none;border:none;border-radius:var(--radius-sm);color:var(--color-foreground);font-size:var(--text-sm);font-weight:var(--font-weight-medium);font-family:inherit;cursor:pointer;text-align:start;white-space:nowrap}.SuggestionDropdown-module_option:hover{background-color:color-mix(in srgb,var(--color-background) 50%,var(--color-muted))}.SuggestionDropdown-module_option:focus{outline:none}.SuggestionDropdown-module_option:focus-visible{outline:2px solid var(--color-primary);outline-offset:-2px}.Suggestions-module_container{position:absolute;top:0;left:0;right:0;display:flex;flex-wrap:nowrap;gap:var(--spacing-2);padding:var(--spacing-2) var(--spacing-1\.5);overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none}.Suggestions-module_container::-webkit-scrollbar{display:none}.Suggestions-module_vertical{position:static;flex-direction:column;overflow:visible;gap:0;padding:0}.Suggestions-module_vertical .Suggestions-module_button{width:100%;height:unset;justify-content:start;font-size:var(--text-xs);line-height:20px;padding:14px 16px;border:1px solid var(--color-muted);border-radius:0;box-shadow:none}.Suggestions-module_vertical .Suggestions-module_button .Suggestions-module_suggestion-content--with-description{display:flex;flex-direction:column}.Suggestions-module_vertical .Suggestions-module_button .Suggestions-module_suggestion-content--with-description .Suggestions-module_label{font-weight:var(--font-weight-semibold)}.Suggestions-module_vertical .Suggestions-module_button .Suggestions-module_suggestion-content--with-description .Suggestions-module_description{color:var(--color-muted-foreground)}.Suggestions-module_vertical .Suggestions-module_button:hover{box-shadow:none;background-color:color-mix(in srgb,var(--color-background) 50%,var(--color-muted))}.Suggestions-module_vertical .Suggestions-module_button:focus-visible{outline-offset:-3px}.Suggestions-module_vertical>div+div .Suggestions-module_button{margin-top:-1px}.Suggestions-module_vertical>div:only-of-type .Suggestions-module_button{border-radius:8px}.Suggestions-module_vertical>div:first-of-type:not(:only-of-type) .Suggestions-module_button{border-radius:8px 8px 0 0}.Suggestions-module_vertical>div:last-of-type:not(:only-of-type) .Suggestions-module_button{border-radius:0 0 8px 8px}.Suggestions-module_floating{flex-direction:column;gap:var(--spacing-1);overflow:visible;padding:1px;padding-bottom:var(--spacing-1);z-index:-1}.SourcesCard-module_card{background:var(--color-background);border:1px solid color-mix(in srgb,var(--color-foreground) 10%,transparent);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:var(--spacing-2);padding:var(--spacing-3)}.SourcesCard-module_heading{color:var(--color-muted-foreground);font-size:var(--text-sm);font-weight:var(--font-weight-semibold);line-height:var(--text-sm--line-height);margin:0;text-transform:uppercase;letter-spacing:.04em}.SourcesCard-module_list{display:flex;flex-direction:column;gap:var(--spacing-2);list-style:none;margin:0;padding:0}.SourcesCard-module_item{display:flex;flex-direction:column;gap:var(--spacing-1)}.SourcesCard-module_title{color:var(--color-foreground);font-size:var(--text-sm);font-weight:var(--font-weight-medium);line-height:var(--text-sm--line-height);text-decoration:none;word-break:break-word}a.SourcesCard-module_title:hover,a.SourcesCard-module_title:focus-visible{color:var(--color-primary);text-decoration:underline}a.SourcesCard-module_title:focus-visible{outline:2px solid var(--color-ring);outline-offset:2px}.SourcesCard-module_label{color:var(--color-muted-foreground);font-size:var(--text-xs);line-height:var(--text-xs--line-height)}.Notice-module_container{position:relative;display:flex;align-items:center;margin:calc((var(--spacing-2)) * -1) calc((var(--spacing-2)) * -1) 0;padding:var(--spacing-2) var(--spacing-4);gap:var(--spacing-3);background-color:var(--color-muted);border-radius:calc(var(--radius-lg)) calc(var(--radius-lg)) 0 0;color:var(--color-muted-foreground)}.Notice-module_container *{font-size:var(--text-xs);font-weight:var(--font-weight-medium);line-height:var(--text-xs--line-height)}.Notice-module_isSuccess{background-color:var(--color-success-background);color:var(--color-success)}.Notice-module_isSuccess .Notice-module_icon svg path{fill:var(--color-success)}.Notice-module_isWarning{background-color:var(--color-warning-background);color:var(--color-warning)}.Notice-module_isWarning .Notice-module_icon svg path{fill:var(--color-warning)}.Notice-module_isError{background-color:var(--color-error-background);color:var(--color-error)}.Notice-module_isError .Notice-module_icon svg path{fill:var(--color-error)}.Notice-module_content{align-items:center;display:flex;flex:1;gap:var(--spacing);min-width:0}.Notice-module_content *{margin:0}.Notice-module_actions{align-items:center;display:flex;flex-shrink:0;gap:var(--spacing)}.Notice-module_action{height:auto;font-size:var(--text-xs);font-weight:var(--font-weight-bold);color:var(--color-foreground);border:none;padding:0}.Notice-module_action:hover:not(:disabled){color:var(--color-foreground);opacity:.8}.Notice-module_action:is(:focus,:focus-visible){outline-offset:0}.Notice-module_icon{align-items:center;display:flex;flex-shrink:0;justify-content:center}.Notice-module_icon svg{display:block;height:var(--spacing-5);width:var(--spacing-5)}.Notice-module_dismissible svg{display:block;width:var(--spacing-5);height:var(--spacing-5);color:var(--color-muted-foreground)}.ChatFooter-module_container{background-color:var(--color-popover-muted);border-radius:calc(var(--radius-lg) + 1px);border:1px solid var(--color-muted);color:var(--color-foreground);display:flex;flex-direction:column;gap:var(--spacing-2);padding:var(--spacing-2);position:relative;z-index:10}.ChatFooter-module_disclosure{margin:0;padding-top:var(--spacing-2);font-size:var(--text-xs);line-height:var(--text-xs--line-height);color:var(--color-muted-foreground);text-align:center}.ChatFooter-module_disclosure a{color:inherit;text-decoration:underline}.QuestionCard-module_card{background:var(--color-background);border:1px solid color-mix(in srgb,var(--color-foreground) 10%,transparent);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:var(--spacing-3);padding:var(--spacing-4)}.QuestionCard-module_question{color:var(--color-foreground);font-size:var(--text-base);font-weight:var(--font-weight-semibold);line-height:var(--text-base--line-height);margin:0}.QuestionCard-module_choices{display:grid;gap:var(--spacing-2)}.QuestionCard-module_choicesGrid{grid-template-columns:repeat(2,minmax(0,1fr))}@media (max-width: 520px){.QuestionCard-module_choicesGrid{grid-template-columns:1fr}}.QuestionCard-module_choice{align-items:stretch;background:var(--color-background);border:1px solid color-mix(in srgb,var(--color-foreground) 10%,transparent);border-radius:var(--radius-md);color:var(--color-foreground);cursor:pointer;display:grid;gap:var(--spacing-2);padding:var(--spacing-3);text-align:left;transition:var(--transition-colors);width:100%}.QuestionCard-module_choice:hover:not(:disabled){border-color:var(--color-ring);box-shadow:var(--shadow-outline)}.QuestionCard-module_choice:focus-visible{outline:2px solid var(--color-ring);outline-offset:2px}.QuestionCard-module_choice:disabled{cursor:default;opacity:.66}.QuestionCard-module_answered{border-color:var(--color-primary)}.QuestionCard-module_label{font-size:var(--text-sm);font-weight:var(--font-weight-semibold);line-height:var(--text-sm--line-height)}.QuestionCard-module_description,.QuestionCard-module_layoutHint{color:var(--color-muted-foreground);font-size:var(--text-sm);line-height:var(--text-sm--line-height)}.DiffCard-module_card{background:var(--color-background);border:1px solid color-mix(in srgb,var(--color-foreground) 10%,transparent);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:var(--spacing-3);padding:var(--spacing-4)}.DiffCard-module_isResolved{opacity:.85}.DiffCard-module_title{color:var(--color-foreground);font-size:var(--text-base);font-weight:var(--font-weight-semibold);line-height:var(--text-base--line-height);margin:0}.DiffCard-module_summary{color:var(--color-muted-foreground);font-size:var(--text-sm);line-height:var(--text-sm--line-height);margin:0}.DiffCard-module_body{display:flex;flex-direction:column;gap:var(--spacing-2)}.DiffCard-module_change{display:flex;flex-direction:column;gap:var(--spacing-1)}.DiffCard-module_changeLabel{color:var(--color-muted-foreground);font-size:var(--text-xs);font-weight:var(--font-weight-medium);line-height:var(--text-xs--line-height)}.DiffCard-module_diff{background:color-mix(in srgb,var(--color-foreground) 4%,transparent);border:1px solid color-mix(in srgb,var(--color-foreground) 10%,transparent);border-radius:var(--radius-md);color:var(--color-foreground);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:var(--text-sm);line-height:var(--text-sm--line-height);margin:0;overflow-x:auto;padding:var(--spacing-3);white-space:pre-wrap;word-break:break-word}.DiffCard-module_removed{background:var(--color-error-background);border-color:color-mix(in srgb,var(--color-error) 30%,transparent)}.DiffCard-module_added{background:var(--color-success-background);border-color:color-mix(in srgb,var(--color-success) 30%,transparent)}.DiffCard-module_resolution{color:var(--color-muted-foreground);font-size:var(--text-sm);font-weight:var(--font-weight-medium);line-height:var(--text-sm--line-height);margin:0}.DiffCard-module_actions{display:flex;gap:var(--spacing-2)}.DiffCard-module_action{border:1px solid color-mix(in srgb,var(--color-foreground) 10%,transparent);border-radius:var(--radius-md);cursor:pointer;font-size:var(--text-sm);font-weight:var(--font-weight-semibold);line-height:var(--text-sm--line-height);padding:var(--spacing-2) var(--spacing-4);transition:var(--transition-colors)}.DiffCard-module_action:focus-visible{outline:2px solid var(--color-ring);outline-offset:2px}.DiffCard-module_action:disabled{cursor:default;opacity:.66}.DiffCard-module_accept{background:var(--color-primary);border-color:var(--color-primary);color:var(--color-primary-foreground)}.DiffCard-module_accept:hover:not(:disabled){box-shadow:var(--shadow-outline-strong)}.DiffCard-module_reject{background:var(--color-background);color:var(--color-foreground)}.DiffCard-module_reject:hover:not(:disabled){border-color:var(--color-ring);box-shadow:var(--shadow-outline)}
|
|
@@ -27,12 +27,13 @@ interface ChatInputProps {
|
|
|
27
27
|
actionOrder?: 'before-submit' | 'after-submit';
|
|
28
28
|
onStop?: () => void;
|
|
29
29
|
disabled?: boolean;
|
|
30
|
+
readOnly?: boolean;
|
|
30
31
|
className?: string;
|
|
31
32
|
onMouseEnter?: () => void;
|
|
32
33
|
onMouseLeave?: () => void;
|
|
33
34
|
expandOnClick?: boolean;
|
|
34
35
|
layout?: 'inline' | 'stacked';
|
|
35
36
|
}
|
|
36
|
-
export declare function ChatInput({ value, onChange, onSubmit, onKeyDown, textareaRef, placeholder, isProcessing, onBlur, onFocus, onClick, fromCompact, onExpand, showExpandButton, focusOnMount, customActions, actionOrder, onStop, disabled, onMouseEnter, onMouseLeave, expandOnClick, layout, }: ChatInputProps): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export declare function ChatInput({ value, onChange, onSubmit, onKeyDown, textareaRef, placeholder, isProcessing, onBlur, onFocus, onClick, fromCompact, onExpand, showExpandButton, focusOnMount, customActions, actionOrder, onStop, disabled, readOnly, onMouseEnter, onMouseLeave, expandOnClick, layout, }: ChatInputProps): import("react/jsx-runtime").JSX.Element;
|
|
37
38
|
export type { ActionButton };
|
|
38
39
|
//# sourceMappingURL=ChatInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../src/components/chat/ChatInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../src/components/chat/ChatInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgD,MAAM,OAAO,CAAC;AAcrE,UAAU,YAAY;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,cAAc;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAE,KAAK,EAAE,MAAM,KAAM,IAAI,CAAC;IACpC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,CAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAE,mBAAmB,CAAE,KAAM,IAAI,CAAC;IACrE,WAAW,EAAE,KAAK,CAAC,SAAS,CAAE,mBAAmB,CAAE,CAAC;IACpD,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAChC,YAAY,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAE,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAE,mBAAmB,CAAE,KAAM,IAAI,CAAC;IACtE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAC/B,WAAW,CAAC,EAAE,eAAe,GAAG,cAAc,CAAC;IAC/C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAC9B;AAED,wBAAgB,SAAS,CAAE,EAC1B,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,WAAW,EACX,WAAkD,EAClD,YAAY,EACZ,MAAM,EACN,OAAO,EACP,OAAO,EACP,WAAmB,EACnB,QAAQ,EACR,gBAAuB,EACvB,YAAoB,EACpB,aAAkB,EAClB,WAA6B,EAC7B,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,aAAqB,EACrB,MAAiB,GACjB,EAAE,cAAc,2CAqNhB;AAED,YAAY,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -27,6 +27,7 @@ declare const meta: {
|
|
|
27
27
|
actionOrder?: "before-submit" | "after-submit" | undefined;
|
|
28
28
|
onStop?: (() => void) | undefined;
|
|
29
29
|
disabled?: boolean | undefined;
|
|
30
|
+
readOnly?: boolean | undefined;
|
|
30
31
|
className?: string | undefined;
|
|
31
32
|
onMouseEnter?: (() => void) | undefined;
|
|
32
33
|
onMouseLeave?: (() => void) | undefined;
|
|
@@ -51,6 +52,7 @@ declare const meta: {
|
|
|
51
52
|
actionOrder?: "before-submit" | "after-submit" | undefined;
|
|
52
53
|
onStop?: (() => void) | undefined;
|
|
53
54
|
disabled?: boolean | undefined;
|
|
55
|
+
readOnly?: boolean | undefined;
|
|
54
56
|
className?: string | undefined;
|
|
55
57
|
onMouseEnter?: (() => void) | undefined;
|
|
56
58
|
onMouseLeave?: (() => void) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatInput.stories.d.ts","sourceRoot":"","sources":["../../../src/components/chat/ChatInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,KAAK,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,KAAiB,MAAM,OAAO,CAAC;AAQtC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ChatInput.stories.d.ts","sourceRoot":"","sources":["../../../src/components/chat/ChatInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,KAAK,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,KAAiB,MAAM,OAAO,CAAC;AAQtC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;yBAkCS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;yBAAD,CAAC;;;;;;;;;;;;;;;;CAfgB,CAAC;AAErC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAE,OAAO,IAAI,CAAE,CAAC;AAsBrC,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAUxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAe9B,CAAC;AAwCF,eAAO,MAAM,iBAAiB,EAAE,KAiB/B,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,KAiB1C,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAkB5B,CAAC;AA6CF,eAAO,MAAM,sBAAsB,EAAE,KAkBpC,CAAC"}
|
|
@@ -10,6 +10,7 @@ export interface UploadedImage {
|
|
|
10
10
|
export interface UploadingImage {
|
|
11
11
|
id: string;
|
|
12
12
|
file?: File;
|
|
13
|
+
url?: string;
|
|
13
14
|
}
|
|
14
15
|
export interface ImageUploaderProps {
|
|
15
16
|
images: UploadedImage[];
|
|
@@ -25,12 +26,12 @@ export interface ImageUploaderProps {
|
|
|
25
26
|
maxFileSize?: number;
|
|
26
27
|
maxFiles?: number;
|
|
27
28
|
uploadingIndicator?: React.ReactNode;
|
|
28
|
-
emptyState?: React.ReactNode;
|
|
29
29
|
className?: string;
|
|
30
30
|
showFileMetadata?: boolean;
|
|
31
31
|
allowDragToInsert?: boolean;
|
|
32
32
|
onError?: (error: string) => void;
|
|
33
33
|
visible?: boolean;
|
|
34
|
+
disabled?: boolean;
|
|
34
35
|
dropZoneRef?: React.RefObject<HTMLElement>;
|
|
35
36
|
}
|
|
36
37
|
export interface ImageUploaderHandle {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageUploader.d.ts","sourceRoot":"","sources":["../../../src/components/chat/ImageUploader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ImageUploader.d.ts","sourceRoot":"","sources":["../../../src/components/chat/ImageUploader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AAMf,MAAM,WAAW,aAAa;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,cAAc;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,IAAI,CAAC;IAEZ,GAAG,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,kBAAkB;IAElC,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IAGnC,eAAe,EAAE,CAAE,KAAK,EAAE,IAAI,EAAE,KAAM,IAAI,GAAG,OAAO,CAAE,IAAI,CAAE,CAAC;IAC7D,QAAQ,CAAC,EAAE,CAAE,KAAK,EAAE,IAAI,EAAE,KAAM,IAAI,GAAG,OAAO,CAAE,IAAI,CAAE,CAAC;IACvD,MAAM,CAAC,EAAE,CAAE,KAAK,EAAE,IAAI,EAAE,KAAM,IAAI,GAAG,OAAO,CAAE,IAAI,CAAE,CAAC;IACrD,OAAO,CAAC,EAAE,CAAE,KAAK,EAAE,IAAI,EAAE,KAAM,IAAI,GAAG,OAAO,CAAE,IAAI,CAAE,CAAC;IACtD,aAAa,EAAE,CAAE,KAAK,EAAE,aAAa,KAAM,IAAI,CAAC;IAGhD,gBAAgB,CAAC,EAAE,CAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,CAAC,SAAS,KAAM,IAAI,CAAC;IAC5E,cAAc,CAAC,EAAE,CAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,CAAC,SAAS,KAAM,IAAI,CAAC;IAG1E,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAG5B,OAAO,CAAC,EAAE,CAAE,KAAK,EAAE,MAAM,KAAM,IAAI,CAAC;IAGpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAGlB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAGnB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAE,WAAW,CAAE,CAAC;CAC7C;AA4GD,MAAM,WAAW,mBAAmB;IACnC,cAAc,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,eAAO,MAAM,aAAa,gGA8iBvB,CAAC"}
|
|
@@ -4,11 +4,13 @@ import type { ImageUploaderHandle } from '../chat/ImageUploader';
|
|
|
4
4
|
export interface AgentUIInputProps {
|
|
5
5
|
className?: string;
|
|
6
6
|
disabled?: boolean;
|
|
7
|
+
readOnly?: boolean;
|
|
7
8
|
customActions?: ActionButton[];
|
|
8
9
|
actionOrder?: 'before-submit' | 'after-submit';
|
|
9
10
|
onKeyDown?: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
10
11
|
layout?: 'inline' | 'stacked';
|
|
11
12
|
imageUploaderRef?: React.RefObject<ImageUploaderHandle>;
|
|
13
|
+
imageUploadDisabled?: boolean;
|
|
12
14
|
}
|
|
13
|
-
export declare function AgentUIInput({ className, disabled, customActions, actionOrder, onKeyDown, layout, imageUploaderRef, }?: AgentUIInputProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function AgentUIInput({ className, disabled, readOnly, customActions, actionOrder, onKeyDown, layout, imageUploaderRef, imageUploadDisabled, }?: AgentUIInputProps): import("react/jsx-runtime").JSX.Element;
|
|
14
16
|
//# sourceMappingURL=AgentUIInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentUIInput.d.ts","sourceRoot":"","sources":["../../../src/components/composable/AgentUIInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAE,KAAK,YAAY,EAAa,MAAM,mBAAmB,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAGjE,MAAM,WAAW,iBAAiB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAC/B,WAAW,CAAC,EAAE,eAAe,GAAG,cAAc,CAAC;IAC/C,SAAS,CAAC,EAAE,CAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAE,mBAAmB,CAAE,KAAM,IAAI,CAAC;IACtE,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC9B,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAE,mBAAmB,CAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"AgentUIInput.d.ts","sourceRoot":"","sources":["../../../src/components/composable/AgentUIInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAE,KAAK,YAAY,EAAa,MAAM,mBAAmB,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAGjE,MAAM,WAAW,iBAAiB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAC/B,WAAW,CAAC,EAAE,eAAe,GAAG,cAAc,CAAC;IAC/C,SAAS,CAAC,EAAE,CAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAE,mBAAmB,CAAE,KAAM,IAAI,CAAC;IACtE,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC9B,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAE,mBAAmB,CAAE,CAAC;IAE1D,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,wBAAgB,YAAY,CAAE,EAC7B,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,WAAW,EACX,SAAS,EACT,MAAM,EACN,gBAAgB,EAChB,mBAAmB,GACnB,GAAE,iBAAsB,2CA4ExB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t, Fragment as b, jsxs as f } from "react/jsx-runtime";
|
|
2
2
|
import { createContext as P, useState as E, useRef as R, useCallback as F, useContext as T } from "react";
|
|
3
3
|
import { __ as g } from "@wordpress/i18n";
|
|
4
|
-
import { j as L, D as W, d as D } from "./DiffCard-
|
|
5
|
-
import { l as ne, Q as ie } from "./DiffCard-
|
|
4
|
+
import { j as L, D as W, d as D } from "./DiffCard-WlOKTIaG.js";
|
|
5
|
+
import { l as ne, Q as ie } from "./DiffCard-WlOKTIaG.js";
|
|
6
6
|
function O(n) {
|
|
7
7
|
const e = n.trim();
|
|
8
8
|
if (/^(https?:|mailto:)/i.test(e))
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ResizeHandles-module_resizeTop,.ResizeHandles-module_resizeRight,.ResizeHandles-module_resizeBottom,.ResizeHandles-module_resizeLeft,.ResizeHandles-module_resizeTopLeft,.ResizeHandles-module_resizeTopRight,.ResizeHandles-module_resizeBottomRight,.ResizeHandles-module_resizeBottomLeft{position:absolute;z-index:1;touch-action:none}.ResizeHandles-module_resizeTop{top:0;left:6px;right:6px;height:6px}.ResizeHandles-module_resizeBottom{bottom:0;left:6px;right:6px;height:6px}.ResizeHandles-module_resizeLeft{top:6px;bottom:6px;left:0;width:6px}.ResizeHandles-module_resizeRight{top:6px;bottom:6px;right:0;width:6px}.ResizeHandles-module_resizeTopLeft,.ResizeHandles-module_resizeTopRight,.ResizeHandles-module_resizeBottomRight,.ResizeHandles-module_resizeBottomLeft{width:12px;height:12px;z-index:2}.ResizeHandles-module_resizeTopLeft{top:0;left:0}.ResizeHandles-module_resizeTopRight{top:0;right:0}.ResizeHandles-module_resizeBottomRight{bottom:0;right:0}.ResizeHandles-module_resizeBottomLeft{bottom:0;left:0}.CollapsedView-module_button{border-radius:var(--radius-lg);height:var(--spacing-10);width:var(--spacing-10)}.MinimizedView-module_button{border-radius:var(--radius-lg);height:var(--spacing-10);width:100%;justify-content:flex-start;gap:var(--spacing-2);padding:0 var(--spacing-2)}.MinimizedView-module_button svg:not(.MinimizedView-module_chevron),.MinimizedView-module_button:hover:not(:disabled) svg:not(.MinimizedView-module_chevron){color:var(--color-primary)}.MinimizedView-module_button .MinimizedView-module_chevron,.MinimizedView-module_button:hover:not(:disabled) .MinimizedView-module_chevron{color:var(--color-muted-foreground)}.MinimizedView-module_title{flex:1;min-width:0;font-size:var(--text-base);text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Chat-module_container{font-size:var(--text-sm);line-height:var(--text-sm--line-height);font-weight:400;font-family:var(--font-sans);letter-spacing:var(--text-base--tracking);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}.Chat-module_container.Chat-module_embedded{height:100%}.Chat-module_container.Chat-module_floating{position:fixed;z-index:50}.Chat-module_container.Chat-module_floating .Chat-module_content{background-color:var(--color-background);color:var(--color-foreground);overflow:hidden;min-height:56px;padding:var(--spacing-2);box-shadow:var(--shadow-lg)}.Chat-module_container.Chat-module_expanded .Chat-module_content{padding:var(--spacing-3)}.Chat-module_container.Chat-module_floating [data-slot=chat-input],.Chat-module_container.Chat-module_floating [data-slot=chat-input] .Chat-module_textareaContainer,.Chat-module_container.Chat-module_floating [data-slot=chat-input] .Chat-module_textareaContainer *,.Chat-module_container.Chat-module_floating textarea,.Chat-module_container.Chat-module_floating input{cursor:auto}.ChatHeader-module_container{display:flex;align-items:center;justify-content:flex-end;gap:var(--spacing);cursor:grab}.ChatHeader-module_container:active{cursor:grabbing}.MessageActions-module_container{display:flex;align-items:center;flex-wrap:wrap;margin-top:var(--spacing-2);gap:var(--spacing-1)}.MessageActions-module_container button[aria-hidden=true]{display:none}.Message-module_message{display:flex;align-items:flex-start;padding:var(--spacing) var(--spacing-4);color:var(--color-foreground)}.Message-module_message.Message-module_user{padding:0 var(--spacing-4)}.Message-module_message.Message-module_user .Message-module_bubble{background-color:var(--color-muted);max-width:85%;padding:var(--spacing-3) var(--spacing-4);border-radius:var(--radius-xl);border-bottom-right-radius:var(--radius-sm)}.Message-module_message.Message-module_error{color:var(--color-error)}.Message-module_icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:28px;height:calc(var(--text-sm) * var(--text-sm--line-height));margin-inline-end:var(--spacing-2)}.Message-module_content{flex:1;min-width:0;text-align:start;word-break:break-word;white-space:normal}.Message-module_message.Message-module_user .Message-module_content{display:flex;justify-content:flex-end}.Message-module_bubble{max-width:100%;min-width:0;overflow-wrap:anywhere}.Message-module_bubble pre{max-width:100%;overflow-x:auto;white-space:pre-wrap}.Message-module_message *{font-size:var(--text-sm);font-weight:400;line-height:var(--text-sm--line-height);color:var(--color-foreground)}.Message-module_message p{text-wrap-style:pretty;margin-top:0;margin-bottom:var(--spacing-3)}.Message-module_message a{color:var(--color-link)}.Message-module_message p:last-child{margin-bottom:0}.Message-module_message strong{font-weight:var(--font-weight-semibold)}.Message-module_message ol,.Message-module_message ul{margin-bottom:var(--spacing-3);padding-left:var(--spacing-6);margin-left:var(--spacing-2)}.Message-module_message ul{list-style-type:disc}.Message-module_message p+:where(ol,ul){margin-top:0}.Message-module_message li{margin-bottom:var(--spacing-2)}.Message-module_message li::marker{font-size:var(--text-sm)}.Message-module_message table{width:100%;margin:12px 0;border-collapse:collapse}.Message-module_message th,.Message-module_message td{padding:8px 12px;border:1px solid #ddd;text-align:left}.Message-module_message th{background-color:var(--color-muted);font-weight:600}.Message-module_message.Message-module_disabled{pointer-events:auto;filter:grayscale(50%)}.Message-module_message.Message-module_disabled .Message-module_content{opacity:.6}.Message-module_message.Message-module_disabled *{pointer-events:none}.Message-module_message.Message-module_disabled:hover,.Message-module_message.Message-module_disabled:hover .Message-module_content{pointer-events:auto}.Messages-module_container{display:flex;flex-direction:column;flex:1;padding-top:var(--spacing-1);padding-bottom:var(--spacing-6);gap:var(--spacing-8);overflow-y:auto;height:100%;position:relative;z-index:10}.Messages-module_bottomMessages>*:first-child{margin-top:auto}.animating .Messages-module_container::-webkit-scrollbar{display:none}.Messages-module_container [data-role=user]:has(+[data-role=user]),.Messages-module_container [data-role=agent]:has(+[data-role=agent]),.Messages-module_container [data-role=assistant]:has(+[data-role=assistant]){margin-bottom:calc(-1 * var(--spacing-6))}.Thinking-module_container{display:flex;align-items:flex-start;gap:var(--spacing);padding:0 var(--spacing-2);color:var(--color-muted-foreground);font-size:var(--text-sm)}.Thinking-module_icon{display:flex;align-items:center;justify-content:center}.Thinking-module_icon svg{width:var(--spacing-6);height:var(--spacing-6)}.Thinking-module_content{background:linear-gradient(90deg,color-mix(in srgb,currentColor 30%,transparent),currentColor,color-mix(in srgb,currentColor 30%,transparent));background-size:200% 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:Thinking-module_shimmer 2s infinite linear 0ms}@keyframes Thinking-module_shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.ConversationView-module_container{display:flex;flex-direction:column;height:100%;justify-content:flex-end}.ConversationView-module_container.ConversationView-module_withHeader{justify-content:space-between}.ConversationView-module_container:has([data-slot=suggestions]) [data-slot=messages]{padding-bottom:var(--spacing-12)}.AgentUIInputToolbar-module_container{position:relative}.AgentUIInputToolbar-module_button{display:flex;align-items:center;gap:var(--spacing-1);padding:calc(var(--spacing) * 1.5) calc(var(--spacing) * 2.5);background:var(--color-muted);color:var(--color-foreground);border-radius:calc(var(--radius) - 6px);font-size:var(--text-sm);font-family:inherit;cursor:pointer;border:none}.AgentUIInputToolbar-module_button:focus-visible{outline:2px solid var(--color-primary);outline-offset:1.5px}.AgentUIInputToolbar-module_icon{transition:transform .15s ease}.AgentUIInputToolbar-module_iconOpen{transform:rotate(180deg)}.AgentUIInputToolbar-module_dropdown{font-size:var(--text-sm);font-family:inherit;color:var(--color-foreground);background:var(--color-popover-muted);border:1px solid var(--color-muted);border-radius:calc(var(--radius) - 4px);padding:var(--spacing-2);z-index:1000}.AgentUIInputToolbar-module_dropdown:focus-visible{outline:2px solid var(--color-primary);outline-offset:1.5px}.ImageUploader-module_container{width:100%;padding:4px 0;align-self:flex-start;position:absolute;pointer-events:none}.ImageUploader-module_container.ImageUploader-module_active{position:relative;pointer-events:auto}.ImageUploader-module_uploader{position:relative;width:100%;transition:opacity .2s ease}.ImageUploader-module_uploader.ImageUploader-module_uploading{opacity:.9}.ImageUploader-module_content{width:100%}.ImageUploader-module_hiddenInput{display:none}.ImageUploader-module_clickArea{cursor:pointer;outline:none;width:100%}.ImageUploader-module_clickArea:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px;border-radius:4px}.ImageUploader-module_draggingMessage{padding:60px 24px;text-align:center;border:1px dashed var(--color-muted);border-radius:12px;background-color:var(--color-muted);margin-bottom:8px;position:relative;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}.ImageUploader-module_draggingMessage p{margin:0;color:var(--color-muted-foreground);font-size:15px;line-height:1.6}.ImageUploader-module_uploader.ImageUploader-module_draggingOver .ImageUploader-module_draggingMessage{border-color:var(--color-primary);background-color:transparent}.ImageUploader-module_preview{display:flex;flex-wrap:wrap;gap:16px;padding:0}.ImageUploader-module_previewItem{position:relative;display:flex;flex-direction:row;align-items:center;gap:12px;padding:8px;border-radius:8px;border:none;background-color:var(--color-muted);cursor:move;transition:transform .2s ease,box-shadow .2s ease;width:150px}.ImageUploader-module_previewItem:active{cursor:grabbing}.ImageUploader-module_removeButton{position:absolute;top:-5px;right:-8px;width:20px;height:20px;border-radius:50%;border:none;background-color:var(--color-popover-muted, #2F2F2F);color:#fff;font-size:16px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2;padding:0;opacity:0;transition:opacity .2s ease,background-color .2s ease}.ImageUploader-module_removeButton svg{color:var(--color-muted-foreground, #8F8F8F)}.ImageUploader-module_previewItem:hover .ImageUploader-module_removeButton{opacity:1}.ImageUploader-module_removeButton:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.ImageUploader-module_previewImage{width:48px;height:48px;-o-object-fit:cover;object-fit:cover;border-radius:6px;flex-shrink:0}.ImageUploader-module_previewMeta{display:flex;flex-direction:column;gap:0px;flex:1;min-width:0}.ImageUploader-module_previewMeta span.ImageUploader-module_previewFilename{font-size:14px!important;color:var(--color-foreground);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400}.ImageUploader-module_previewMeta span.ImageUploader-module_previewType{font-size:12px!important;color:var(--color-muted-foreground);text-transform:uppercase;font-weight:400}.ImageUploader-module_uploadingIndicator{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--color-muted)}.ImageUploader-module_spinner{width:32px;height:32px;border:3px solid var(--color-muted);border-top-color:var(--color-primary);border-radius:50%;animation:ImageUploader-module_spin .8s linear infinite}@keyframes ImageUploader-module_spin{to{transform:rotate(360deg)}}.ImageUploader-module_invalidMessage{padding:16px;background-color:var(--color-error-background);border:1px solid var(--color-error);border-radius:8px;text-align:center}.ImageUploader-module_invalidMessage p{margin:0;color:var(--color-error);font-size:14px}.MessageDivider-module_container{display:flex;align-items:center;margin:var(--spacing-4) 0}.MessageDivider-module_line{flex:1;height:1px;background-color:var(--color-muted)}.MessageDivider-module_message{padding:0 var(--spacing-3);color:var(--color-muted-foreground);font-size:var(--text-sm)}.EmptyView-module_container{display:flex;flex-direction:column;align-items:start;justify-content:flex-start;gap:var(--spacing-6)}.EmptyView-module_container:before{content:"";flex:1 0 0}.EmptyView-module_icon{font-size:calc(3 * var(--base-font-size));line-height:1;padding:0 var(--spacing-4);color:var(--color-link)}.EmptyView-module_heading,.EmptyView-module_help{font-size:var(--text-sm);font-weight:400;line-height:var(--text-sm--line-height);color:var(--color-foreground);margin:0;padding:var(--spacing) var(--spacing-4)}.EmptyView-module_suggestionsWrapper{width:100%;position:relative}.ImageRenderer-module_container{display:grid;grid-template-columns:1fr 1fr;gap:2px;width:100%}.ImageRenderer-module_imageButton{position:relative;border:none;background:none;cursor:pointer;border-radius:calc(var(--radius-sm) + 1px);overflow:hidden;transition:var(--transition-colors);border:1px solid transparent;padding:1px}.ImageRenderer-module_imageButton:hover{border-color:var(--color-muted-foreground)}.ImageRenderer-module_imageButton.ImageRenderer-module_selected{border-color:var(--color-primary);box-shadow:0 0 0 1px var(--color-primary);border-radius:calc(var(--radius-sm) + 1px)}.ImageRenderer-module_imageButton.ImageRenderer-module_disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.ImageRenderer-module_image{width:100%;height:auto;display:block;border-radius:var(--radius-sm);-o-object-fit:cover;object-fit:cover}.ImageRenderer-module_header{display:flex;margin-bottom:var(--spacing-1);color:var(--color-muted-foreground)}.agenttic .chart-block{--jp-gray-80: var(--color-foreground);margin:var(--spacing-1) 0;position:relative;width:100%;max-width:100%;box-sizing:border-box;overflow:visible;z-index:1000;font-family:var(--font-sans)}.agenttic .chart-block-title{margin:0 0 var(--spacing-2) 0;font-size:var(--text-sm);font-family:inherit;font-weight:var(--font-weight-bold, 700);word-wrap:break-word;white-space:normal;line-height:var(--text-sm--line-height);-webkit-hyphens:auto;hyphens:auto}.agenttic .chart-container{width:100%;height:auto;display:flex;flex-direction:column;align-items:stretch;z-index:1001;overflow:visible;position:relative;box-sizing:border-box}.agenttic .chart-container svg{overflow:visible!important}.agenttic .chart-error{padding:var(--spacing-4);border:1px solid var(--color-error);border-radius:var(--radius-sm);background-color:var(--color-muted);color:var(--color-error);font-size:var(--text-sm)}.agenttic .chart-error strong{display:inline-block;margin-bottom:var(--spacing-1)}.agenttic .chart-error details{margin-top:var(--spacing-2)}.agenttic .chart-error details summary{cursor:pointer;color:var(--color-muted-foreground)}.agenttic .chart-error details pre{margin-top:var(--spacing-2);padding:var(--spacing-2);background-color:var(--color-muted);border-radius:var(--radius-sm);overflow:auto;font-size:var(--text-sm)}.agenttic .chart-tooltip{line-height:1.2;font-size:11px;max-width:120px;min-width:auto;background:#000c;color:#fff;padding:var(--spacing-2) var(--spacing-4) var(--spacing-2) var(--spacing-2);border-radius:var(--radius-sm);box-shadow:var(--shadow-sm)}.agenttic .chart-tooltip-date{font-size:10px;opacity:.8;margin-bottom:var(--spacing-1);color:#fffc;border-bottom:1px solid rgba(255,255,255,.3);padding-bottom:var(--spacing-1)}.agenttic .chart-tooltip-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--spacing-1)}.agenttic .chart-tooltip-row:last-child{margin-bottom:0}.agenttic .chart-tooltip-label{font-weight:var(--font-weight-normal);font-size:11px;color:#fffc;margin-right:var(--spacing-2)}.agenttic .chart-tooltip-value{font-weight:var(--font-weight-semibold);font-size:11px;color:#fff;text-align:right}.agenttic .chart-block .visx-axis-bottom text{font-size:11px}.agenttic .chart-block .visx-axis-bottom text.visx-axis-tick{text-anchor:middle}.agenttic .chart-block .visx-axis-bottom.rotate-labels .visx-axis-tick text{text-anchor:end;transform:rotate(-45deg);transform-origin:right center}.agenttic .chart-block .visx-legend .visx-legend-label{font-size:11px!important;max-width:none!important}.agenttic .chart-block .visx-legend{margin-top:8px;position:relative;z-index:1002}.agenttic .chart-block .visx-legend-item{display:flex;align-items:center;margin:0 8px}.agenttic .chart-block .visx-legend-shape{width:12px;height:12px;margin-right:6px;display:inline-block;flex-shrink:0}.agenttic .chart-block .visx-legend-shape svg{width:100%;height:100%;display:block}.agenttic .chart-block .visx-legend-shape rect{width:100%;height:100%}.agenttic .chart-block .visx-legend-shape circle{r:6;cx:6;cy:6}.agenttic .chart-block .visx-legend>div{display:flex;justify-content:center;align-items:center;flex-wrap:wrap}.agenttic .chart-block .visx-legend-item>div:first-child{margin-right:6px}.agenttic .chart-block .visx-legend [class*=legend] svg{opacity:1;visibility:visible}.agenttic .chart-block .visx-legend svg *{opacity:1;visibility:visible;fill:currentColor}.agenttic div[style*="pointer-events: none"][style*="position: absolute"]{z-index:10000!important}.visx-tooltip{z-index:10000!important;max-width:150px!important;word-wrap:break-word!important;white-space:normal!important}
|
|
1
|
+
.ResizeHandles-module_resizeTop,.ResizeHandles-module_resizeRight,.ResizeHandles-module_resizeBottom,.ResizeHandles-module_resizeLeft,.ResizeHandles-module_resizeTopLeft,.ResizeHandles-module_resizeTopRight,.ResizeHandles-module_resizeBottomRight,.ResizeHandles-module_resizeBottomLeft{position:absolute;z-index:1;touch-action:none}.ResizeHandles-module_resizeTop{top:0;left:6px;right:6px;height:6px}.ResizeHandles-module_resizeBottom{bottom:0;left:6px;right:6px;height:6px}.ResizeHandles-module_resizeLeft{top:6px;bottom:6px;left:0;width:6px}.ResizeHandles-module_resizeRight{top:6px;bottom:6px;right:0;width:6px}.ResizeHandles-module_resizeTopLeft,.ResizeHandles-module_resizeTopRight,.ResizeHandles-module_resizeBottomRight,.ResizeHandles-module_resizeBottomLeft{width:12px;height:12px;z-index:2}.ResizeHandles-module_resizeTopLeft{top:0;left:0}.ResizeHandles-module_resizeTopRight{top:0;right:0}.ResizeHandles-module_resizeBottomRight{bottom:0;right:0}.ResizeHandles-module_resizeBottomLeft{bottom:0;left:0}.CollapsedView-module_button{border-radius:var(--radius-lg);height:var(--spacing-10);width:var(--spacing-10)}.MinimizedView-module_button{border-radius:var(--radius-lg);height:var(--spacing-10);width:100%;justify-content:flex-start;gap:var(--spacing-2);padding:0 var(--spacing-2)}.MinimizedView-module_button svg:not(.MinimizedView-module_chevron),.MinimizedView-module_button:hover:not(:disabled) svg:not(.MinimizedView-module_chevron){color:var(--color-primary)}.MinimizedView-module_button .MinimizedView-module_chevron,.MinimizedView-module_button:hover:not(:disabled) .MinimizedView-module_chevron{color:var(--color-muted-foreground)}.MinimizedView-module_title{flex:1;min-width:0;font-size:var(--text-base);text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Chat-module_container{font-size:var(--text-sm);line-height:var(--text-sm--line-height);font-weight:400;font-family:var(--font-sans);letter-spacing:var(--text-base--tracking);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}.Chat-module_container.Chat-module_embedded{height:100%}.Chat-module_container.Chat-module_floating{position:fixed;z-index:50}.Chat-module_container.Chat-module_floating .Chat-module_content{background-color:var(--color-background);color:var(--color-foreground);overflow:hidden;min-height:56px;padding:var(--spacing-2);box-shadow:var(--shadow-lg)}.Chat-module_container.Chat-module_expanded .Chat-module_content{padding:var(--spacing-3)}.Chat-module_container.Chat-module_floating [data-slot=chat-input],.Chat-module_container.Chat-module_floating [data-slot=chat-input] .Chat-module_textareaContainer,.Chat-module_container.Chat-module_floating [data-slot=chat-input] .Chat-module_textareaContainer *,.Chat-module_container.Chat-module_floating textarea,.Chat-module_container.Chat-module_floating input{cursor:auto}.ChatHeader-module_container{display:flex;align-items:center;justify-content:flex-end;gap:var(--spacing);cursor:grab}.ChatHeader-module_container:active{cursor:grabbing}.MessageActions-module_container{display:flex;align-items:center;flex-wrap:wrap;margin-top:var(--spacing-2);gap:var(--spacing-1)}.MessageActions-module_container button[aria-hidden=true]{display:none}.Message-module_message{display:flex;align-items:flex-start;padding:var(--spacing) var(--spacing-4);color:var(--color-foreground)}.Message-module_message.Message-module_user{padding:0 var(--spacing-4)}.Message-module_message.Message-module_user .Message-module_bubble{background-color:var(--color-muted);max-width:85%;padding:var(--spacing-3) var(--spacing-4);border-radius:var(--radius-xl);border-bottom-right-radius:var(--radius-sm)}.Message-module_message.Message-module_error{color:var(--color-error)}.Message-module_icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:28px;height:calc(var(--text-sm) * var(--text-sm--line-height));margin-inline-end:var(--spacing-2)}.Message-module_content{flex:1;min-width:0;text-align:start;word-break:break-word;white-space:normal}.Message-module_message.Message-module_user .Message-module_content{display:flex;justify-content:flex-end}.Message-module_bubble{max-width:100%;min-width:0;overflow-wrap:anywhere}.Message-module_bubble pre{max-width:100%;overflow-x:auto;white-space:pre-wrap}.Message-module_message *{font-size:var(--text-sm);font-weight:400;line-height:var(--text-sm--line-height);color:var(--color-foreground)}.Message-module_message p{text-wrap-style:pretty;margin-top:0;margin-bottom:var(--spacing-3)}.Message-module_message a{color:var(--color-link)}.Message-module_message p:last-child{margin-bottom:0}.Message-module_message strong{font-weight:var(--font-weight-semibold)}.Message-module_message ol,.Message-module_message ul{margin-bottom:var(--spacing-3);padding-left:var(--spacing-6);margin-left:var(--spacing-2)}.Message-module_message ul{list-style-type:disc}.Message-module_message p+:where(ol,ul){margin-top:0}.Message-module_message li{margin-bottom:var(--spacing-2)}.Message-module_message li::marker{font-size:var(--text-sm)}.Message-module_message table{width:100%;margin:12px 0;border-collapse:collapse}.Message-module_message th,.Message-module_message td{padding:8px 12px;border:1px solid #ddd;text-align:left}.Message-module_message th{background-color:var(--color-muted);font-weight:600}.Message-module_message.Message-module_disabled{pointer-events:auto;filter:grayscale(50%)}.Message-module_message.Message-module_disabled .Message-module_content{opacity:.6}.Message-module_message.Message-module_disabled *{pointer-events:none}.Message-module_message.Message-module_disabled:hover,.Message-module_message.Message-module_disabled:hover .Message-module_content{pointer-events:auto}.Messages-module_container{display:flex;flex-direction:column;flex:1;padding-top:var(--spacing-1);padding-bottom:var(--spacing-6);gap:var(--spacing-8);overflow-y:auto;height:100%;position:relative;z-index:10}.Messages-module_bottomMessages>*:first-child{margin-top:auto}.animating .Messages-module_container::-webkit-scrollbar{display:none}.Messages-module_container [data-role=user]:has(+[data-role=user]),.Messages-module_container [data-role=agent]:has(+[data-role=agent]),.Messages-module_container [data-role=assistant]:has(+[data-role=assistant]){margin-bottom:calc(-1 * var(--spacing-6))}.Thinking-module_container{display:flex;align-items:flex-start;gap:var(--spacing);padding:0 var(--spacing-2);color:var(--color-muted-foreground);font-size:var(--text-sm)}.Thinking-module_icon{display:flex;align-items:center;justify-content:center}.Thinking-module_icon svg{width:var(--spacing-6);height:var(--spacing-6)}.Thinking-module_content{background:linear-gradient(90deg,color-mix(in srgb,currentColor 30%,transparent),currentColor,color-mix(in srgb,currentColor 30%,transparent));background-size:200% 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:Thinking-module_shimmer 2s infinite linear 0ms}@keyframes Thinking-module_shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.ConversationView-module_container{display:flex;flex-direction:column;height:100%;justify-content:flex-end}.ConversationView-module_container.ConversationView-module_withHeader{justify-content:space-between}.ConversationView-module_container:has([data-slot=suggestions]) [data-slot=messages]{padding-bottom:var(--spacing-12)}.AgentUIInputToolbar-module_container{position:relative}.AgentUIInputToolbar-module_button{display:flex;align-items:center;gap:var(--spacing-1);padding:calc(var(--spacing) * 1.5) calc(var(--spacing) * 2.5);background:var(--color-muted);color:var(--color-foreground);border-radius:calc(var(--radius) - 6px);font-size:var(--text-sm);font-family:inherit;cursor:pointer;border:none}.AgentUIInputToolbar-module_button:focus-visible{outline:2px solid var(--color-primary);outline-offset:1.5px}.AgentUIInputToolbar-module_icon{transition:transform .15s ease}.AgentUIInputToolbar-module_iconOpen{transform:rotate(180deg)}.AgentUIInputToolbar-module_dropdown{font-size:var(--text-sm);font-family:inherit;color:var(--color-foreground);background:var(--color-popover-muted);border:1px solid var(--color-muted);border-radius:calc(var(--radius) - 4px);padding:var(--spacing-2);z-index:1000}.AgentUIInputToolbar-module_dropdown:focus-visible{outline:2px solid var(--color-primary);outline-offset:1.5px}.ImageUploader-module_container{width:100%;padding:4px 0;align-self:flex-start;position:absolute;pointer-events:none}.ImageUploader-module_container.ImageUploader-module_active{position:relative;pointer-events:auto}.ImageUploader-module_uploader{position:relative;width:100%;transition:opacity .2s ease}.ImageUploader-module_uploader.ImageUploader-module_uploading{opacity:.9}.ImageUploader-module_content{width:100%}.ImageUploader-module_hiddenInput{display:none}.ImageUploader-module_clickArea{cursor:pointer;outline:none;width:100%}.ImageUploader-module_clickArea:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px;border-radius:4px}.ImageUploader-module_clickAreaDisabled{cursor:default}.ImageUploader-module_draggingMessage{padding:60px 24px;text-align:center;border:1px dashed var(--color-muted);border-radius:12px;background-color:var(--color-muted);margin-bottom:8px;position:relative;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}.ImageUploader-module_draggingMessage p{margin:0;color:var(--color-muted-foreground);font-size:15px;line-height:1.6}.ImageUploader-module_uploader.ImageUploader-module_draggingOver .ImageUploader-module_draggingMessage{border-color:var(--color-primary);background-color:transparent}.ImageUploader-module_preview{display:flex;flex-wrap:wrap;gap:16px;padding:0}.ImageUploader-module_previewItem{position:relative;display:flex;flex-direction:row;align-items:center;gap:12px;padding:8px;border-radius:8px;border:none;background-color:var(--color-muted);cursor:move;transition:transform .2s ease,box-shadow .2s ease;width:150px}.ImageUploader-module_previewItem:active{cursor:grabbing}.ImageUploader-module_removeButton{position:absolute;top:-5px;right:-8px;width:20px;height:20px;border-radius:50%;border:none;background-color:var(--color-popover-muted, #2F2F2F);color:#fff;font-size:16px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2;padding:0;opacity:0;transition:opacity .2s ease,background-color .2s ease}.ImageUploader-module_removeButton svg{color:var(--color-muted-foreground, #8F8F8F)}.ImageUploader-module_previewItem:hover .ImageUploader-module_removeButton{opacity:1}.ImageUploader-module_removeButton:disabled{pointer-events:none}.ImageUploader-module_previewItem:hover .ImageUploader-module_removeButton:disabled{opacity:0}.ImageUploader-module_removeButton:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.ImageUploader-module_previewImage{width:48px;height:48px;-o-object-fit:cover;object-fit:cover;border-radius:6px}.ImageUploader-module_previewMeta{display:flex;flex-direction:column;gap:0px;flex:1;min-width:0}.ImageUploader-module_previewMeta span.ImageUploader-module_previewFilename{font-size:14px!important;color:var(--color-foreground);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400}.ImageUploader-module_previewMeta span.ImageUploader-module_previewType{font-size:12px!important;color:var(--color-muted-foreground);text-transform:uppercase;font-weight:400}.ImageUploader-module_uploadingItem,.ImageUploader-module_uploadingItem:active{cursor:default}.ImageUploader-module_uploadingIndicator{width:48px;height:48px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background-color:#3c3c3c;border-radius:6px}.ImageUploader-module_thumbnail{position:relative;width:48px;height:48px;flex-shrink:0}.ImageUploader-module_uploadingOverlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background-color:#0006;border-radius:6px}.ImageUploader-module_spinner{width:20px;height:20px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:ImageUploader-module_spin .8s linear infinite}@keyframes ImageUploader-module_spin{to{transform:rotate(360deg)}}.ImageUploader-module_invalidMessage{padding:16px;background-color:var(--color-error-background);border:1px solid var(--color-error);border-radius:8px;text-align:center}.ImageUploader-module_invalidMessage p{margin:0;color:var(--color-error);font-size:14px}.MessageDivider-module_container{display:flex;align-items:center;margin:var(--spacing-4) 0}.MessageDivider-module_line{flex:1;height:1px;background-color:var(--color-muted)}.MessageDivider-module_message{padding:0 var(--spacing-3);color:var(--color-muted-foreground);font-size:var(--text-sm)}.EmptyView-module_container{display:flex;flex-direction:column;align-items:start;justify-content:flex-start;gap:var(--spacing-6)}.EmptyView-module_container:before{content:"";flex:1 0 0}.EmptyView-module_icon{font-size:calc(3 * var(--base-font-size));line-height:1;padding:0 var(--spacing-4);color:var(--color-link)}.EmptyView-module_heading,.EmptyView-module_help{font-size:var(--text-sm);font-weight:400;line-height:var(--text-sm--line-height);color:var(--color-foreground);margin:0;padding:var(--spacing) var(--spacing-4)}.EmptyView-module_suggestionsWrapper{width:100%;position:relative}.ImageRenderer-module_container{display:grid;grid-template-columns:1fr 1fr;gap:2px;width:100%}.ImageRenderer-module_imageButton{position:relative;border:none;background:none;cursor:pointer;border-radius:calc(var(--radius-sm) + 1px);overflow:hidden;transition:var(--transition-colors);border:1px solid transparent;padding:1px}.ImageRenderer-module_imageButton:hover{border-color:var(--color-muted-foreground)}.ImageRenderer-module_imageButton.ImageRenderer-module_selected{border-color:var(--color-primary);box-shadow:0 0 0 1px var(--color-primary);border-radius:calc(var(--radius-sm) + 1px)}.ImageRenderer-module_imageButton.ImageRenderer-module_disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.ImageRenderer-module_image{width:100%;height:auto;display:block;border-radius:var(--radius-sm);-o-object-fit:cover;object-fit:cover}.ImageRenderer-module_header{display:flex;margin-bottom:var(--spacing-1);color:var(--color-muted-foreground)}.agenttic .chart-block{--jp-gray-80: var(--color-foreground);margin:var(--spacing-1) 0;position:relative;width:100%;max-width:100%;box-sizing:border-box;overflow:visible;z-index:1000;font-family:var(--font-sans)}.agenttic .chart-block-title{margin:0 0 var(--spacing-2) 0;font-size:var(--text-sm);font-family:inherit;font-weight:var(--font-weight-bold, 700);word-wrap:break-word;white-space:normal;line-height:var(--text-sm--line-height);-webkit-hyphens:auto;hyphens:auto}.agenttic .chart-container{width:100%;height:auto;display:flex;flex-direction:column;align-items:stretch;z-index:1001;overflow:visible;position:relative;box-sizing:border-box}.agenttic .chart-container svg{overflow:visible!important}.agenttic .chart-error{padding:var(--spacing-4);border:1px solid var(--color-error);border-radius:var(--radius-sm);background-color:var(--color-muted);color:var(--color-error);font-size:var(--text-sm)}.agenttic .chart-error strong{display:inline-block;margin-bottom:var(--spacing-1)}.agenttic .chart-error details{margin-top:var(--spacing-2)}.agenttic .chart-error details summary{cursor:pointer;color:var(--color-muted-foreground)}.agenttic .chart-error details pre{margin-top:var(--spacing-2);padding:var(--spacing-2);background-color:var(--color-muted);border-radius:var(--radius-sm);overflow:auto;font-size:var(--text-sm)}.agenttic .chart-tooltip{line-height:1.2;font-size:11px;max-width:120px;min-width:auto;background:#000c;color:#fff;padding:var(--spacing-2) var(--spacing-4) var(--spacing-2) var(--spacing-2);border-radius:var(--radius-sm);box-shadow:var(--shadow-sm)}.agenttic .chart-tooltip-date{font-size:10px;opacity:.8;margin-bottom:var(--spacing-1);color:#fffc;border-bottom:1px solid rgba(255,255,255,.3);padding-bottom:var(--spacing-1)}.agenttic .chart-tooltip-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--spacing-1)}.agenttic .chart-tooltip-row:last-child{margin-bottom:0}.agenttic .chart-tooltip-label{font-weight:var(--font-weight-normal);font-size:11px;color:#fffc;margin-right:var(--spacing-2)}.agenttic .chart-tooltip-value{font-weight:var(--font-weight-semibold);font-size:11px;color:#fff;text-align:right}.agenttic .chart-block .visx-axis-bottom text{font-size:11px}.agenttic .chart-block .visx-axis-bottom text.visx-axis-tick{text-anchor:middle}.agenttic .chart-block .visx-axis-bottom.rotate-labels .visx-axis-tick text{text-anchor:end;transform:rotate(-45deg);transform-origin:right center}.agenttic .chart-block .visx-legend .visx-legend-label{font-size:11px!important;max-width:none!important}.agenttic .chart-block .visx-legend{margin-top:8px;position:relative;z-index:1002}.agenttic .chart-block .visx-legend-item{display:flex;align-items:center;margin:0 8px}.agenttic .chart-block .visx-legend-shape{width:12px;height:12px;margin-right:6px;display:inline-block;flex-shrink:0}.agenttic .chart-block .visx-legend-shape svg{width:100%;height:100%;display:block}.agenttic .chart-block .visx-legend-shape rect{width:100%;height:100%}.agenttic .chart-block .visx-legend-shape circle{r:6;cx:6;cy:6}.agenttic .chart-block .visx-legend>div{display:flex;justify-content:center;align-items:center;flex-wrap:wrap}.agenttic .chart-block .visx-legend-item>div:first-child{margin-right:6px}.agenttic .chart-block .visx-legend [class*=legend] svg{opacity:1;visibility:visible}.agenttic .chart-block .visx-legend svg *{opacity:1;visibility:visible;fill:currentColor}.agenttic div[style*="pointer-events: none"][style*="position: absolute"]{z-index:10000!important}.visx-tooltip{z-index:10000!important;max-width:150px!important;word-wrap:break-word!important;white-space:normal!important}
|