@mastra/react 0.2.7-alpha.0 → 0.2.8-alpha.0
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 +26 -0
- package/LICENSE.md +15 -0
- package/dist/{src/agent → agent}/hooks.d.ts +9 -8
- package/dist/agent/hooks.d.ts.map +1 -0
- package/dist/{src/agent → agent}/types.d.ts +1 -0
- package/dist/agent/types.d.ts.map +1 -0
- package/dist/index.cjs +2764 -66
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2705 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/ai-sdk/index.d.ts +5 -0
- package/dist/lib/ai-sdk/index.d.ts.map +1 -0
- package/dist/{src/lib → lib}/ai-sdk/memory/resolveInitialMessages.d.ts +2 -1
- package/dist/lib/ai-sdk/memory/resolveInitialMessages.d.ts.map +1 -0
- package/dist/{src/lib → lib}/ai-sdk/transformers/AISdkNetworkTransformer.d.ts +4 -3
- package/dist/lib/ai-sdk/transformers/AISdkNetworkTransformer.d.ts.map +1 -0
- package/dist/lib/ai-sdk/transformers/types.d.ts +11 -0
- package/dist/lib/ai-sdk/transformers/types.d.ts.map +1 -0
- package/dist/{src/lib → lib}/ai-sdk/types.d.ts +3 -2
- package/dist/lib/ai-sdk/types.d.ts.map +1 -0
- package/dist/{src/lib → lib}/ai-sdk/utils/fromCoreUserMessageToUIMessage.d.ts +3 -2
- package/dist/lib/ai-sdk/utils/fromCoreUserMessageToUIMessage.d.ts.map +1 -0
- package/dist/{src/lib → lib}/ai-sdk/utils/toAssistantUIMessage.d.ts +3 -2
- package/dist/lib/ai-sdk/utils/toAssistantUIMessage.d.ts.map +1 -0
- package/dist/{src/lib → lib}/ai-sdk/utils/toUIMessage.d.ts +4 -3
- package/dist/lib/ai-sdk/utils/toUIMessage.d.ts.map +1 -0
- package/dist/{src/lib → lib}/use-mutation.d.ts +1 -0
- package/dist/lib/use-mutation.d.ts.map +1 -0
- package/dist/{src/mastra-client-context.d.ts → mastra-client-context.d.ts} +3 -1
- package/dist/mastra-client-context.d.ts.map +1 -0
- package/dist/{src/mastra-react-provider.d.ts → mastra-react-provider.d.ts} +2 -1
- package/dist/mastra-react-provider.d.ts.map +1 -0
- package/dist/react.css +184 -322
- package/dist/{src/ui → ui}/Code/Code.d.ts +2 -1
- package/dist/ui/Code/Code.d.ts.map +1 -0
- package/dist/ui/Code/highlight.d.ts +4 -0
- package/dist/ui/Code/highlight.d.ts.map +1 -0
- package/dist/ui/Code/index.d.ts +2 -0
- package/dist/ui/Code/index.d.ts.map +1 -0
- package/dist/{src/ui → ui}/Entity/Entity.d.ts +2 -1
- package/dist/ui/Entity/Entity.d.ts.map +1 -0
- package/dist/{src/ui → ui}/Entity/Entry.d.ts +2 -1
- package/dist/ui/Entity/Entry.d.ts.map +1 -0
- package/dist/{src/ui → ui}/Entity/ToolApproval.d.ts +1 -0
- package/dist/ui/Entity/ToolApproval.d.ts.map +1 -0
- package/dist/{src/ui → ui}/Entity/context.d.ts +4 -3
- package/dist/ui/Entity/context.d.ts.map +1 -0
- package/dist/ui/Entity/index.d.ts +5 -0
- package/dist/ui/Entity/index.d.ts.map +1 -0
- package/dist/{src/ui → ui}/Entity/types.d.ts +1 -0
- package/dist/ui/Entity/types.d.ts.map +1 -0
- package/dist/{src/ui → ui}/Icon/Icon.d.ts +2 -1
- package/dist/ui/Icon/Icon.d.ts.map +1 -0
- package/dist/ui/Icon/index.d.ts +2 -0
- package/dist/ui/Icon/index.d.ts.map +1 -0
- package/dist/{src/ui → ui}/IconButton/IconButton.d.ts +2 -1
- package/dist/ui/IconButton/IconButton.d.ts.map +1 -0
- package/dist/ui/IconButton/index.d.ts +2 -0
- package/dist/ui/IconButton/index.d.ts.map +1 -0
- package/dist/{src/ui → ui}/Icons/AgentIcon.d.ts +2 -1
- package/dist/ui/Icons/AgentIcon.d.ts.map +1 -0
- package/dist/{src/ui → ui}/Icons/ToolsIcon.d.ts +2 -1
- package/dist/ui/Icons/ToolsIcon.d.ts.map +1 -0
- package/dist/{src/ui → ui}/Icons/WorkflowIcon.d.ts +2 -1
- package/dist/ui/Icons/WorkflowIcon.d.ts.map +1 -0
- package/dist/ui/Icons/index.d.ts +4 -0
- package/dist/ui/Icons/index.d.ts.map +1 -0
- package/dist/{src/ui → ui}/Message/Message.d.ts +2 -1
- package/dist/ui/Message/Message.d.ts.map +1 -0
- package/dist/ui/Message/index.d.ts +2 -0
- package/dist/ui/Message/index.d.ts.map +1 -0
- package/dist/{src/ui → ui}/Tooltip/Tooltip.d.ts +2 -1
- package/dist/ui/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/ui/Tooltip/index.d.ts +2 -0
- package/dist/ui/Tooltip/index.d.ts.map +1 -0
- package/dist/ui/index.d.ts +8 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/{src/workflows → workflows}/hooks.d.ts +5 -4
- package/dist/workflows/hooks.d.ts.map +1 -0
- package/dist/workflows/index.d.ts +3 -0
- package/dist/workflows/index.d.ts.map +1 -0
- package/dist/{src/workflows → workflows}/types.d.ts +4 -3
- package/dist/workflows/types.d.ts.map +1 -0
- package/dist/{src/workflows → workflows}/use-stream-workflow.d.ts +6 -5
- package/dist/workflows/use-stream-workflow.d.ts.map +1 -0
- package/package.json +14 -10
- package/dist/chunk-REDZDNFN-B3BKm5Q3.js +0 -249
- package/dist/chunk-REDZDNFN-B3BKm5Q3.js.map +0 -1
- package/dist/chunk-REDZDNFN-B6_m0Vw5.cjs +0 -251
- package/dist/chunk-REDZDNFN-B6_m0Vw5.cjs.map +0 -1
- package/dist/index-0ViTRi6s.cjs +0 -26374
- package/dist/index-0ViTRi6s.cjs.map +0 -1
- package/dist/index-BaK_Y6TP.cjs +0 -185
- package/dist/index-BaK_Y6TP.cjs.map +0 -1
- package/dist/index-C1OzXW5i.js +0 -180
- package/dist/index-C1OzXW5i.js.map +0 -1
- package/dist/index-D3vBmpgO.js +0 -26288
- package/dist/index-D3vBmpgO.js.map +0 -1
- package/dist/src/index.d.ts +0 -7
- package/dist/src/lib/ai-sdk/index.d.ts +0 -4
- package/dist/src/lib/ai-sdk/memory/resolveInitialMessages.test.d.ts +0 -1
- package/dist/src/lib/ai-sdk/transformers/AISdkNetworkTransformer.test.d.ts +0 -1
- package/dist/src/lib/ai-sdk/transformers/types.d.ts +0 -10
- package/dist/src/lib/ai-sdk/utils/fromCoreUserMessageToUIMessage.test.d.ts +0 -1
- package/dist/src/lib/ai-sdk/utils/toAssistantUIMessage.test.d.ts +0 -1
- package/dist/src/lib/ai-sdk/utils/toUIMessage.test.d.ts +0 -1
- package/dist/src/ui/Code/highlight.d.ts +0 -3
- package/dist/src/ui/Code/index.d.ts +0 -1
- package/dist/src/ui/Entity/Entity.stories.d.ts +0 -22
- package/dist/src/ui/Entity/index.d.ts +0 -4
- package/dist/src/ui/Icon/index.d.ts +0 -1
- package/dist/src/ui/IconButton/IconButton.stories.d.ts +0 -12
- package/dist/src/ui/IconButton/index.d.ts +0 -1
- package/dist/src/ui/Icons/index.d.ts +0 -3
- package/dist/src/ui/Message/Message.stories.d.ts +0 -13
- package/dist/src/ui/Message/index.d.ts +0 -1
- package/dist/src/ui/Tooltip/Tooltip.stories.d.ts +0 -12
- package/dist/src/ui/Tooltip/index.d.ts +0 -1
- package/dist/src/ui/index.d.ts +0 -7
- package/dist/src/workflows/index.d.ts +0 -2
- package/dist/token-6GSAFR2W-XRCSVUPZ-DHFPWxwn.cjs +0 -64
- package/dist/token-6GSAFR2W-XRCSVUPZ-DHFPWxwn.cjs.map +0 -1
- package/dist/token-6GSAFR2W-XRCSVUPZ-PJRK45Cx.js +0 -60
- package/dist/token-6GSAFR2W-XRCSVUPZ-PJRK45Cx.js.map +0 -1
- package/dist/token-util-NEHG7TUY-U7CX7GS4-B0wfFQ5e.cjs +0 -11
- package/dist/token-util-NEHG7TUY-U7CX7GS4-B0wfFQ5e.cjs.map +0 -1
- package/dist/token-util-NEHG7TUY-U7CX7GS4-C_BDhp1r.js +0 -7
- package/dist/token-util-NEHG7TUY-U7CX7GS4-C_BDhp1r.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BundledLanguage } from 'shiki/bundle/web';
|
|
1
|
+
import type { BundledLanguage } from 'shiki/bundle/web';
|
|
2
2
|
export interface CodeBlockProps {
|
|
3
3
|
code: string;
|
|
4
4
|
language: BundledLanguage;
|
|
@@ -11,3 +11,4 @@ export interface CodeCopyButtonProps {
|
|
|
11
11
|
code: string;
|
|
12
12
|
}
|
|
13
13
|
export declare const CodeCopyButton: ({ code }: CodeCopyButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=Code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Code.d.ts","sourceRoot":"","sources":["../../../src/ui/Code/Code.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAIxD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,eAAe,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACvB;AAED,eAAO,MAAM,cAAc,0IAC8G,CAAC;AAE1I,eAAO,MAAM,SAAS,GAAI,oCAAoC,cAAc,4CAa3E,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,cAAc,GAAI,UAAU,mBAAmB,4CAe3D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../../src/ui/Code/highlight.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGxD,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,wBAWlE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/Code/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EntityVariant } from './types';
|
|
1
|
+
import type { EntityVariant } from './types.js';
|
|
2
2
|
export interface EntityProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
3
3
|
variant?: EntityVariant;
|
|
4
4
|
initialExpanded?: boolean;
|
|
@@ -11,3 +11,4 @@ export declare const EntityTrigger: ({ className, children, ...props }: React.Co
|
|
|
11
11
|
export declare const EntityContentClass: string;
|
|
12
12
|
export declare const EntityContent: ({ className, ...props }: React.ComponentPropsWithoutRef<"div">) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
13
|
export declare const EntityCaret: ({ className, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=Entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Entity.d.ts","sourceRoot":"","sources":["../../../src/ui/Entity/Entity.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IACxE,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,MAAM,GAAI,6DAMpB,WAAW,4CAQb,CAAC;AAEF,eAAO,MAAM,kBAAkB,QAM9B,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAMrE,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,mCAAmC,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,4CAoBxG,CAAC;AAEF,eAAO,MAAM,kBAAkB,QAI9B,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,yBAAyB,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,mDAM3F,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,yBAAyB,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,4CAejF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementType } from 'react';
|
|
1
|
+
import type { ElementType } from 'react';
|
|
2
2
|
export declare const EntryClass = "mastra:space-y-2";
|
|
3
3
|
export declare const Entry: ({ className, ...props }: React.ComponentPropsWithoutRef<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
type EntryTitleProps = React.ComponentPropsWithoutRef<'div'> & {
|
|
@@ -7,3 +7,4 @@ type EntryTitleProps = React.ComponentPropsWithoutRef<'div'> & {
|
|
|
7
7
|
export declare const EntryTitleClass = "mastra:font-mono mastra:text-sm mastra:text-text3";
|
|
8
8
|
export declare const EntryTitle: ({ className, as: Root, ...props }: EntryTitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
10
|
+
//# sourceMappingURL=Entry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Entry.d.ts","sourceRoot":"","sources":["../../../src/ui/Entity/Entry.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEzC,eAAO,MAAM,UAAU,qBAAqB,CAAC;AAC7C,eAAO,MAAM,KAAK,GAAI,yBAAyB,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,4CAEnF,CAAC;AAEF,KAAK,eAAe,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,GAAG;IAC7D,EAAE,CAAC,EAAE,WAAW,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,eAAe,sDAAsD,CAAC;AACnF,eAAO,MAAM,UAAU,GAAI,mCAA0C,eAAe,4CAEnF,CAAC"}
|
|
@@ -8,3 +8,4 @@ export declare const ToolApprovalContentClass: string;
|
|
|
8
8
|
export declare const ToolApprovalContent: ({ className, ...props }: React.ComponentPropsWithoutRef<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export declare const ToolApprovalActionsClass: string;
|
|
10
10
|
export declare const ToolApprovalActions: ({ className, ...props }: React.ComponentPropsWithoutRef<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=ToolApproval.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolApproval.d.ts","sourceRoot":"","sources":["../../../src/ui/Entity/ToolApproval.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,QAG7B,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,yBAAyB,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,4CAE1F,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAAmF,CAAC;AACvH,eAAO,MAAM,iBAAiB,GAAI,yBAAyB,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,4CAE/F,CAAC;AAEF,eAAO,MAAM,uBAAuB,QAGnC,CAAC;AACF,eAAO,MAAM,kBAAkB,GAAI,yBAAyB,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,4CAEhG,CAAC;AAEF,eAAO,MAAM,wBAAwB,QAA0C,CAAC;AAChF,eAAO,MAAM,mBAAmB,GAAI,yBAAyB,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,4CAEjG,CAAC;AAEF,eAAO,MAAM,wBAAwB,QAA0D,CAAC;AAChG,eAAO,MAAM,mBAAmB,GAAI,yBAAyB,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,4CAEjG,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { EntityVariant } from './types';
|
|
1
|
+
import type { EntityVariant } from './types.js';
|
|
2
2
|
export type EntityContextType = {
|
|
3
3
|
expanded: boolean;
|
|
4
4
|
setExpanded: (expanded: boolean) => void;
|
|
5
5
|
variant: EntityVariant;
|
|
6
6
|
disabled: boolean;
|
|
7
7
|
};
|
|
8
|
-
export declare const EntityContext: import(
|
|
9
|
-
export declare const EntityProvider: import(
|
|
8
|
+
export declare const EntityContext: import("react").Context<EntityContextType>;
|
|
9
|
+
export declare const EntityProvider: import("react").Provider<EntityContextType>;
|
|
10
10
|
export declare const useEntity: () => EntityContextType;
|
|
11
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/ui/Entity/context.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,OAAO,EAAE,aAAa,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,aAAa,4CAKxB,CAAC;AAEH,eAAO,MAAM,cAAc,6CAAyB,CAAC;AAErD,eAAO,MAAM,SAAS,yBAAkC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/Entity/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/ui/Entity/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export interface IconProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
size?: 'sm' | 'md' | 'lg';
|
|
@@ -9,3 +9,4 @@ export declare const IconSizes: {
|
|
|
9
9
|
lg: string;
|
|
10
10
|
};
|
|
11
11
|
export declare const Icon: ({ children, className, size, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/ui/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IACtE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3B;AAED,eAAO,MAAM,SAAS;;;;CAIrB,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,yCAAgD,SAAS,4CAM7E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/Icon/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IconProps } from '../Icon/Icon';
|
|
1
|
+
import type { IconProps } from '../Icon/Icon.js';
|
|
2
2
|
export interface IconButtonProps extends React.ComponentPropsWithoutRef<'button'> {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
tooltip: React.ReactNode;
|
|
@@ -6,3 +6,4 @@ export interface IconButtonProps extends React.ComponentPropsWithoutRef<'button'
|
|
|
6
6
|
}
|
|
7
7
|
export declare const IconButtonClass = "mastra:text-text3 mastra:hover:text-text6 mastra:active:text-text6 mastra:hover:bg-surface4 mastra:active:bg-surface5 mastra:rounded-md mastra:cursor-pointer";
|
|
8
8
|
export declare const IconButton: ({ children, tooltip, size, className, ...props }: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/ui/IconButton/IconButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC;IAC/E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,IAAI,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED,eAAO,MAAM,eAAe,kKACqI,CAAC;AAElK,eAAO,MAAM,UAAU,GAAI,kDAAyD,eAAe,4CAiBlG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/IconButton/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentIcon.d.ts","sourceRoot":"","sources":["../../../src/ui/Icons/AgentIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,SAAS,GAAI,yBAAyB,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,4CAqB/E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolsIcon.d.ts","sourceRoot":"","sources":["../../../src/ui/Icons/ToolsIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,SAAS,GAAI,yBAAyB,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,4CAiB/E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkflowIcon.d.ts","sourceRoot":"","sources":["../../../src/ui/Icons/WorkflowIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,YAAY,GAAI,yBAAyB,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,4CAiBlF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/Icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
2
|
export interface MessageProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
position: 'left' | 'right';
|
|
4
4
|
}
|
|
@@ -23,3 +23,4 @@ export declare const MessageListClass = "mastra:overflow-y-auto mastra:h-full ma
|
|
|
23
23
|
export declare const MessageList: ({ children, className, ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
export declare const MessageStreamingClass = "mastra:inline-block mastra:w-[2px] mastra:h-[1em] mastra:bg-text5 mastra:ml-0.5 mastra:align-text-bottom mastra:animate-pulse";
|
|
25
25
|
export declare const MessageStreaming: ({ className, ...props }: HTMLAttributes<HTMLSpanElement>) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
//# sourceMappingURL=Message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/ui/Message/Message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,cAAc,CAAC;IAClE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,YAAY,oFAAoF,CAAC;AAC9G,eAAO,MAAM,OAAO,GAAI,6CAA6C,YAAY,4CAiBhF,CAAC;AAEF,MAAM,WAAW,mBAAoB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACzE,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AACD,eAAO,MAAM,mBAAmB,2GAC0E,CAAC;AAC3G,eAAO,MAAM,cAAc,GAAI,gDAAgD,mBAAmB,4CAOjG,CAAC;AAEF,eAAO,MAAM,mBAAmB,uIACsG,CAAC;AACvI,eAAO,MAAM,cAAc,GAAI,mCAAmC,cAAc,CAAC,cAAc,CAAC,4CAM/F,CAAC;AAEF,eAAO,MAAM,kBAAkB,iDAAiD,CAAC;AACjF,eAAO,MAAM,aAAa,GAAI,mCAAmC,cAAc,CAAC,cAAc,CAAC,4CAM9F,CAAC;AAEF,eAAO,MAAM,iBAAiB,8IAC+G,CAAC;AAC9I,eAAO,MAAM,YAAY,GAAI,mCAAmC,cAAc,CAAC,gBAAgB,CAAC,4CAM/F,CAAC;AAEF,eAAO,MAAM,sBAAsB,kFAAkF,CAAC;AACtH,eAAO,MAAM,iBAAiB,GAAI,mCAAmC,cAAc,CAAC,eAAe,CAAC,4CAMnG,CAAC;AAEF,eAAO,MAAM,sBAAsB,qCAAqC,CAAC;AACzE,eAAO,MAAM,iBAAiB,GAAI,mCAAmC,cAAc,CAAC,eAAe,CAAC,4CAMnG,CAAC;AAEF,eAAO,MAAM,gBAAgB,qDAAqD,CAAC;AAEnF,eAAO,MAAM,WAAW,GAAI,mCAAmC,cAAc,CAAC,cAAc,CAAC,4CAkB5F,CAAC;AAEF,eAAO,MAAM,qBAAqB,kIAC+F,CAAC;AAElI,eAAO,MAAM,gBAAgB,GAAI,yBAAyB,cAAc,CAAC,eAAe,CAAC,4CAExF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/Message/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TooltipTriggerProps, TooltipContentProps } from '@radix-ui/react-tooltip';
|
|
1
|
+
import type { TooltipTriggerProps, TooltipContentProps } from '@radix-ui/react-tooltip';
|
|
2
2
|
export interface TooltipProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
}
|
|
@@ -6,3 +6,4 @@ export declare const Tooltip: ({ children }: TooltipProps) => import("react/jsx-
|
|
|
6
6
|
export declare const TooltipContentClass = "mastra:bg-surface4 mastra:text-text6 mastra mastra:rounded-lg mastra:py-1 mastra:px-2 mastra:text-xs mastra:border mastra:border-border1 mastra-tooltip-enter";
|
|
7
7
|
export declare const TooltipContent: ({ children, className, ...props }: TooltipContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export declare const TooltipTrigger: (props: TooltipTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/ui/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AASxF,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IACzE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,OAAO,GAAI,cAAc,YAAY,4CAMjD,CAAC;AAEF,eAAO,MAAM,mBAAmB,kKACiI,CAAC;AAClK,eAAO,MAAM,cAAc,GAAI,mCAAmC,mBAAmB,4CAQpF,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,4CAExD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/Tooltip/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './Entity/index.js';
|
|
2
|
+
export * from './Code/index.js';
|
|
3
|
+
export * from './Icon/index.js';
|
|
4
|
+
export * from './IconButton/index.js';
|
|
5
|
+
export * from './Icons/index.js';
|
|
6
|
+
export * from './Tooltip/index.js';
|
|
7
|
+
export * from './Message/index.js';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CreateWorkflowRunParams, CreateWorkflowRunResult, CancelWorkflowRunParams, CancelWorkflowRunResult } from './types';
|
|
2
|
-
export { useStreamWorkflow } from './use-stream-workflow';
|
|
1
|
+
import type { CreateWorkflowRunParams, CreateWorkflowRunResult, CancelWorkflowRunParams, CancelWorkflowRunResult } from './types.js';
|
|
2
|
+
export { useStreamWorkflow } from './use-stream-workflow.js';
|
|
3
3
|
/**
|
|
4
4
|
* Hook for creating workflow runs.
|
|
5
5
|
* Returns a mutation for creating a new workflow run.
|
|
@@ -14,7 +14,7 @@ export { useStreamWorkflow } from './use-stream-workflow';
|
|
|
14
14
|
* });
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
export declare function useCreateWorkflowRun(): import(
|
|
17
|
+
export declare function useCreateWorkflowRun(): import("../lib/use-mutation").MutationState<CreateWorkflowRunResult, Error, CreateWorkflowRunParams>;
|
|
18
18
|
/**
|
|
19
19
|
* Hook for canceling workflow runs.
|
|
20
20
|
* Returns a mutation for canceling a running workflow.
|
|
@@ -30,4 +30,5 @@ export declare function useCreateWorkflowRun(): import('../lib/use-mutation').Mu
|
|
|
30
30
|
* });
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
|
-
export declare function useCancelWorkflowRun(): import(
|
|
33
|
+
export declare function useCancelWorkflowRun(): import("../lib/use-mutation").MutationState<CancelWorkflowRunResult, Error, CancelWorkflowRunParams>;
|
|
34
|
+
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/workflows/hooks.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,yGAanC;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,oBAAoB,yGAanC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workflows/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TimeTravelParams } from '@mastra/client-js';
|
|
2
|
-
import { TracingOptions } from '@mastra/core/observability';
|
|
3
|
-
import { WorkflowStreamResult as CoreWorkflowStreamResult } from '@mastra/core/workflows';
|
|
1
|
+
import type { TimeTravelParams } from '@mastra/client-js';
|
|
2
|
+
import type { TracingOptions } from '@mastra/core/observability';
|
|
3
|
+
import type { WorkflowStreamResult as CoreWorkflowStreamResult } from '@mastra/core/workflows';
|
|
4
4
|
/**
|
|
5
5
|
* Workflow stream result type alias.
|
|
6
6
|
*/
|
|
@@ -119,3 +119,4 @@ export interface CancelWorkflowRunResult {
|
|
|
119
119
|
/** Confirmation message */
|
|
120
120
|
message: string;
|
|
121
121
|
}
|
|
122
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/workflows/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UseStreamWorkflowParams, WorkflowStreamResult, StreamWorkflowParams, ObserveWorkflowStreamParams, ResumeWorkflowStreamParams, TimeTravelWorkflowStreamParams } from './types';
|
|
1
|
+
import type { UseStreamWorkflowParams, WorkflowStreamResult, StreamWorkflowParams, ObserveWorkflowStreamParams, ResumeWorkflowStreamParams, TimeTravelWorkflowStreamParams } from './types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Hook for streaming workflow execution with support for observing, resuming, and time-travel.
|
|
4
4
|
*
|
|
@@ -28,11 +28,12 @@ import { UseStreamWorkflowParams, WorkflowStreamResult, StreamWorkflowParams, Ob
|
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
30
|
export declare function useStreamWorkflow({ debugMode, tracingOptions, onError }: UseStreamWorkflowParams): {
|
|
31
|
-
streamWorkflow: import(
|
|
31
|
+
streamWorkflow: import("../lib/use-mutation").MutationState<void, Error, StreamWorkflowParams>;
|
|
32
32
|
streamResult: WorkflowStreamResult;
|
|
33
33
|
isStreaming: boolean;
|
|
34
|
-
observeWorkflowStream: import(
|
|
34
|
+
observeWorkflowStream: import("../lib/use-mutation").MutationState<void, Error, ObserveWorkflowStreamParams>;
|
|
35
35
|
closeStreamsAndReset: () => void;
|
|
36
|
-
resumeWorkflowStream: import(
|
|
37
|
-
timeTravelWorkflowStream: import(
|
|
36
|
+
resumeWorkflowStream: import("../lib/use-mutation").MutationState<void, Error, ResumeWorkflowStreamParams>;
|
|
37
|
+
timeTravelWorkflowStream: import("../lib/use-mutation").MutationState<void, Error, TimeTravelWorkflowStreamParams>;
|
|
38
38
|
};
|
|
39
|
+
//# sourceMappingURL=use-stream-workflow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-stream-workflow.d.ts","sourceRoot":"","sources":["../../src/workflows/use-stream-workflow.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,2BAA2B,EAC3B,0BAA0B,EAC1B,8BAA8B,EAC/B,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,EAAE,EAAE,uBAAuB;;;;;;;;EA8ZhG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8-alpha.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/mastra-ai/mastra.git",
|
|
@@ -39,9 +39,10 @@
|
|
|
39
39
|
"lucide-react": "^0.522.0",
|
|
40
40
|
"shiki": "^1.29.2",
|
|
41
41
|
"tailwind-merge": "^3.4.1",
|
|
42
|
-
"@mastra/client-js": "1.7.
|
|
42
|
+
"@mastra/client-js": "1.7.2-alpha.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
+
"@mastra/core": ">=1.8.0-0 <2.0.0-0",
|
|
45
46
|
"react": ">=19.0.0",
|
|
46
47
|
"react-dom": ">=19.0.0",
|
|
47
48
|
"zod": "^3.25.0 || ^4.0.0"
|
|
@@ -50,6 +51,7 @@
|
|
|
50
51
|
"@ai-sdk/react": "^2.0.57",
|
|
51
52
|
"@assistant-ui/react": "^0.12.10",
|
|
52
53
|
"@storybook/react-vite": "^9.1.16",
|
|
54
|
+
"@tailwindcss/cli": "^4",
|
|
53
55
|
"@tailwindcss/vite": "^4.1.17",
|
|
54
56
|
"@types/react": "^19.1.13",
|
|
55
57
|
"@types/react-dom": "^19.1.9",
|
|
@@ -60,15 +62,16 @@
|
|
|
60
62
|
"eslint-plugin-storybook": "^10.1.11",
|
|
61
63
|
"react": ">=19.0.0",
|
|
62
64
|
"react-dom": ">=19.0.0",
|
|
63
|
-
"rollup-plugin-node-externals": "^8.0.1",
|
|
64
65
|
"storybook": "^9.1.10",
|
|
65
66
|
"tailwindcss": "^4",
|
|
67
|
+
"tsup": "^8.5.1",
|
|
66
68
|
"typescript": "^5.9.3",
|
|
67
69
|
"vite": "^7.3.0",
|
|
68
|
-
"vite-plugin-dts": "^4.5.4",
|
|
69
70
|
"vitest": "4.0.18",
|
|
70
71
|
"zod": "^3.25.0",
|
|
71
|
-
"@
|
|
72
|
+
"@internal/lint": "0.0.63",
|
|
73
|
+
"@mastra/core": "1.9.0-alpha.0",
|
|
74
|
+
"@internal/types-builder": "0.0.38"
|
|
72
75
|
},
|
|
73
76
|
"eslintConfig": {
|
|
74
77
|
"extends": [
|
|
@@ -79,12 +82,13 @@
|
|
|
79
82
|
"node": ">=22.13.0"
|
|
80
83
|
},
|
|
81
84
|
"scripts": {
|
|
82
|
-
"
|
|
83
|
-
"
|
|
85
|
+
"lint": "eslint .",
|
|
86
|
+
"build": "echo 'Use turbo to run build'",
|
|
87
|
+
"build:js": "tsup --config tsup.config.ts",
|
|
88
|
+
"build:css": "tailwindcss -i src/ui/index.css -o dist/react.css",
|
|
89
|
+
"dev": "tsup --config tsup.config.ts --watch",
|
|
84
90
|
"test": "vitest",
|
|
85
|
-
"test:
|
|
86
|
-
"test:ui": "vitest --ui",
|
|
87
|
-
"test:coverage": "vitest --coverage",
|
|
91
|
+
"test:unit": "vitest run",
|
|
88
92
|
"storybook": "storybook dev -p 6006",
|
|
89
93
|
"build-storybook": "storybook build"
|
|
90
94
|
}
|