@mast-ai/react-ui 0.1.0 → 0.1.2
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/LICENSE +193 -193
- package/dist/approval.d.ts +1 -1
- package/dist/components/AssistantMessage.d.ts +2 -2
- package/dist/components/ChatInput.d.ts +1 -1
- package/dist/components/ConversationPanel.d.ts +3 -3
- package/dist/components/InlineApproval.d.ts +1 -1
- package/dist/components/MessageItem.d.ts +2 -2
- package/dist/components/MessageList.d.ts +2 -2
- package/dist/components/ToolCallBlock.d.ts +13 -2
- package/dist/components/UserMessage.d.ts +1 -1
- package/dist/context.d.ts +3 -3
- package/dist/hooks/useAgentStream.d.ts +1 -1
- package/dist/icons.d.ts +1 -1
- package/dist/index.d.ts +29 -29
- package/dist/index.js +238 -231
- package/dist/mentions/MentionPicker.d.ts +2 -2
- package/dist/mentions/index.d.ts +6 -6
- package/dist/mentions/useMentions.d.ts +1 -1
- package/dist/mentions/utils.d.ts +1 -1
- package/dist/styles.css +25 -3
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { MentionItem } from './types';
|
|
2
|
+
import type { MentionItem } from './types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Props accepted by {@link MentionPicker}. Exported for consumers building
|
|
5
5
|
* a bespoke compound input on top of {@link useMentions}.
|
|
@@ -21,7 +21,7 @@ export interface MentionPickerProps<T = unknown> {
|
|
|
21
21
|
renderItem?: (item: MentionItem<T>, isActive: boolean) => ReactNode;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* Floating popover rendered above {@link import('../components/ChatInput').ChatInput}
|
|
24
|
+
* Floating popover rendered above {@link import('../components/ChatInput.js').ChatInput}
|
|
25
25
|
* when an in-progress mention has at least one filtered item.
|
|
26
26
|
*
|
|
27
27
|
* Uses `role="listbox"` with `role="option"` rows so screen readers announce
|
package/dist/mentions/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type { MentionItem, MentionSegment, MentionsConfig } from './types';
|
|
2
|
-
export { buildInlineMentionPrompt, extractMentionQuery, removeMentionTrigger } from './utils';
|
|
3
|
-
export { useMentions } from './useMentions';
|
|
4
|
-
export type { UseMentionsReturn } from './useMentions';
|
|
5
|
-
export { MentionPicker } from './MentionPicker';
|
|
6
|
-
export type { MentionPickerProps } from './MentionPicker';
|
|
1
|
+
export type { MentionItem, MentionSegment, MentionsConfig } from './types.js';
|
|
2
|
+
export { buildInlineMentionPrompt, extractMentionQuery, removeMentionTrigger } from './utils.js';
|
|
3
|
+
export { useMentions } from './useMentions.js';
|
|
4
|
+
export type { UseMentionsReturn } from './useMentions.js';
|
|
5
|
+
export { MentionPicker } from './MentionPicker.js';
|
|
6
|
+
export type { MentionPickerProps } from './MentionPicker.js';
|
package/dist/mentions/utils.d.ts
CHANGED
package/dist/styles.css
CHANGED
|
@@ -300,9 +300,6 @@
|
|
|
300
300
|
border-radius: var(--mast-radius);
|
|
301
301
|
padding: 0.5rem 0.75rem;
|
|
302
302
|
font-size: var(--mast-text-sm);
|
|
303
|
-
display: flex;
|
|
304
|
-
flex-direction: column;
|
|
305
|
-
gap: 0.5rem;
|
|
306
303
|
}
|
|
307
304
|
|
|
308
305
|
.mast-tool-call-block[data-streaming='true'] .mast-tool-call-block-status {
|
|
@@ -331,6 +328,31 @@
|
|
|
331
328
|
display: flex;
|
|
332
329
|
align-items: center;
|
|
333
330
|
gap: 0.5rem;
|
|
331
|
+
cursor: pointer;
|
|
332
|
+
list-style: none;
|
|
333
|
+
user-select: none;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.mast-tool-call-block-header::-webkit-details-marker {
|
|
337
|
+
display: none;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.mast-tool-call-block-chevron {
|
|
341
|
+
display: inline-block;
|
|
342
|
+
width: 0.75rem;
|
|
343
|
+
color: var(--mast-fg-muted);
|
|
344
|
+
transition: transform 0.15s ease;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.mast-tool-call-block[open] > .mast-tool-call-block-header > .mast-tool-call-block-chevron {
|
|
348
|
+
transform: rotate(90deg);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.mast-tool-call-block-body {
|
|
352
|
+
display: flex;
|
|
353
|
+
flex-direction: column;
|
|
354
|
+
gap: 0.5rem;
|
|
355
|
+
margin-top: 0.5rem;
|
|
334
356
|
}
|
|
335
357
|
|
|
336
358
|
.mast-tool-call-block-status,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mast-ai/react-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"format": "prettier --write src"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@mast-ai/core": "^0.1.
|
|
37
|
+
"@mast-ai/core": "^0.1.2",
|
|
38
38
|
"@tanstack/react-virtual": ">=3.0.0",
|
|
39
39
|
"react": ">=19.0.0",
|
|
40
40
|
"react-dom": ">=19.0.0"
|