@mastra/playground-ui 7.0.0-beta.0 → 7.0.0-beta.1
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/CHANGELOG.md +17 -0
- package/dist/index.cjs.js +330 -598
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +334 -592
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/syntax-highlighter.d.ts +2 -1
- package/dist/src/components/ui/elements/form-fields/index.d.ts +0 -4
- package/dist/src/components/ui/elements/headers/index.d.ts +0 -1
- package/dist/src/components/ui/elements/main-sidebar/main-sidebar.d.ts +1 -1
- package/dist/src/components/ui/input.d.ts +1 -1
- package/dist/src/components/ui/syntax-highlighter.d.ts +1 -1
- package/dist/src/components/ui/textarea.d.ts +1 -1
- package/dist/src/domains/agents/context/index.d.ts +0 -1
- package/dist/src/domains/agents/context/model-reset-context.d.ts +0 -4
- package/dist/src/domains/scores/hooks/use-scorers.d.ts +2 -6
- package/dist/src/domains/scores/index.d.ts +1 -1
- package/dist/src/domains/tools/components/ToolExecutor.d.ts +1 -1
- package/dist/src/domains/workflows/workflow/workflow-default-node.d.ts +4 -0
- package/dist/src/domains/workflows/workflow/workflow-nested-node.d.ts +4 -0
- package/dist/src/domains/workflows/workflow/workflow-node-badges.d.ts +55 -0
- package/dist/src/domains/workflows/workflow/workflow-step-action-bar.d.ts +2 -1
- package/dist/src/ds/components/Table/Cells.d.ts +0 -3
- package/dist/src/index.d.ts +1 -2
- package/package.json +11 -9
- package/dist/src/components/assistant-ui/thread-list.d.ts +0 -2
- package/dist/src/components/assistant-ui/tools/tool-approval.d.ts +0 -8
- package/dist/src/components/icons/agent-icon.d.ts +0 -3
- package/dist/src/components/icons/automation-icon.d.ts +0 -3
- package/dist/src/components/ui/copyable-content.d.ts +0 -7
- package/dist/src/components/ui/dropdown-menu.d.ts +0 -42
- package/dist/src/components/ui/elements/entry-list/entry-list-toolbar.d.ts +0 -6
- package/dist/src/components/ui/elements/form-fields/form-actions.d.ts +0 -12
- package/dist/src/components/ui/elements/form-fields/radio-group-field.d.ts +0 -21
- package/dist/src/components/ui/elements/form-fields/slider-field.d.ts +0 -15
- package/dist/src/components/ui/elements/form-fields/textarea-field.d.ts +0 -11
- package/dist/src/components/ui/elements/headers/entity-main-header.d.ts +0 -11
- package/dist/src/components/ui/elements/side-dialog/side-dialog-footer.d.ts +0 -10
- package/dist/src/components/ui/formatted-date.d.ts +0 -3
- package/dist/src/components/ui/resizable.d.ts +0 -23
- package/dist/src/components/ui/score-indicator.d.ts +0 -3
- package/dist/src/components/ui/toggle.d.ts +0 -12
- package/dist/src/domains/agents/components/agent-metadata/connection-dot.d.ts +0 -6
- package/dist/src/domains/agents/components/agent-metadata/models.d.ts +0 -5
- package/dist/src/domains/agents/components/agent-metadata/provider-status-indicator.d.ts +0 -7
- package/dist/src/domains/resizable-panel.d.ts +0 -11
- package/dist/src/domains/scores/components/score-table.d.ts +0 -11
- package/dist/src/domains/tools/components/tool-table/types.d.ts +0 -2
- package/dist/src/domains/workflows/workflow/workflow-result.d.ts +0 -5
- package/dist/src/hooks/use-resize-column.d.ts +0 -12
- package/dist/src/lib/mastra-client.d.ts +0 -2
- package/dist/src/lib/pagination/types.d.ts +0 -11
- package/dist/src/lib/polls.d.ts +0 -36
package/dist/src/lib/polls.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export interface PollingOptions<TData, TError = Error> {
|
|
2
|
-
/** Async function that fetches the data */
|
|
3
|
-
fetchFn: () => Promise<TData>;
|
|
4
|
-
/** Polling interval in milliseconds */
|
|
5
|
-
interval?: number;
|
|
6
|
-
/** Whether polling is enabled initially */
|
|
7
|
-
enabled?: boolean;
|
|
8
|
-
/** Callback function called with new data */
|
|
9
|
-
onSuccess?: (data: TData) => void;
|
|
10
|
-
/** Callback function called on error */
|
|
11
|
-
onError?: (error: TError) => void;
|
|
12
|
-
/** Function to determine if polling should continue */
|
|
13
|
-
shouldContinue?: (data: TData) => boolean;
|
|
14
|
-
/** Restarts the polling when true */
|
|
15
|
-
restartPolling?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export interface PollingResult<TData, TError> {
|
|
18
|
-
/** Current polling status */
|
|
19
|
-
isPolling: boolean;
|
|
20
|
-
/** Loading state for current request */
|
|
21
|
-
isLoading: boolean;
|
|
22
|
-
/** Loading state for first call */
|
|
23
|
-
firstCallLoading: boolean;
|
|
24
|
-
/** Current error state */
|
|
25
|
-
error: TError | null;
|
|
26
|
-
/** Latest data received */
|
|
27
|
-
data: TData | null;
|
|
28
|
-
/** Function to start polling */
|
|
29
|
-
startPolling: () => void;
|
|
30
|
-
/** Function to stop polling */
|
|
31
|
-
stopPolling: () => void;
|
|
32
|
-
/** Refetch the data on demand with/without polling. default is false */
|
|
33
|
-
refetch: (withPolling?: boolean) => void;
|
|
34
|
-
}
|
|
35
|
-
export declare function usePolling<TData, TError = Error>({ fetchFn, interval, enabled, onSuccess, onError, shouldContinue, restartPolling, }: PollingOptions<TData, TError>): PollingResult<TData, TError>;
|
|
36
|
-
export default usePolling;
|