@assistant-ui/react 0.7.66 → 0.7.67
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/primitives/actionBar/ActionBarRoot.d.ts +10 -3
- package/dist/primitives/actionBar/ActionBarRoot.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarRoot.js.map +1 -1
- package/dist/primitives/actionBar/ActionBarRoot.mjs.map +1 -1
- package/dist/primitives/thread/ThreadViewport.d.ts +6 -3
- package/dist/primitives/thread/ThreadViewport.d.ts.map +1 -1
- package/dist/primitives/thread/ThreadViewport.js.map +1 -1
- package/dist/primitives/thread/ThreadViewport.mjs.map +1 -1
- package/dist/runtimes/remote-thread-list/adapter/in-memory.d.ts +1 -1
- package/dist/runtimes/remote-thread-list/adapter/in-memory.d.ts.map +1 -1
- package/dist/runtimes/remote-thread-list/adapter/in-memory.js +1 -1
- package/dist/runtimes/remote-thread-list/adapter/in-memory.js.map +1 -1
- package/dist/runtimes/remote-thread-list/adapter/in-memory.mjs +1 -3
- package/dist/runtimes/remote-thread-list/adapter/in-memory.mjs.map +1 -1
- package/dist/ui/assistant-action-bar.d.ts +5 -1
- package/dist/ui/assistant-action-bar.d.ts.map +1 -1
- package/dist/ui/thread.d.ts +3 -1
- package/dist/ui/thread.d.ts.map +1 -1
- package/dist/ui/user-action-bar.d.ts +5 -1
- package/dist/ui/user-action-bar.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/primitives/actionBar/ActionBarRoot.tsx +5 -2
- package/src/primitives/thread/ThreadViewport.tsx +3 -2
- package/src/runtimes/remote-thread-list/adapter/in-memory.tsx +1 -4
@@ -1,13 +1,20 @@
|
|
1
1
|
import { Primitive } from "@radix-ui/react-primitive";
|
2
2
|
import { type ComponentRef, ComponentPropsWithoutRef } from "react";
|
3
|
-
import { UseActionBarFloatStatusProps } from "./useActionBarFloatStatus";
|
4
3
|
type PrimitiveDivProps = ComponentPropsWithoutRef<typeof Primitive.div>;
|
5
4
|
export declare namespace ActionBarPrimitiveRoot {
|
6
5
|
type Element = ComponentRef<typeof Primitive.div>;
|
7
|
-
type Props = PrimitiveDivProps &
|
6
|
+
type Props = PrimitiveDivProps & {
|
7
|
+
hideWhenRunning?: boolean | undefined;
|
8
|
+
autohide?: "always" | "not-last" | "never" | undefined;
|
9
|
+
autohideFloat?: "always" | "single-branch" | "never" | undefined;
|
10
|
+
};
|
8
11
|
}
|
9
12
|
export declare const ActionBarPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
10
13
|
asChild?: boolean;
|
11
|
-
}, "ref"> &
|
14
|
+
}, "ref"> & {
|
15
|
+
hideWhenRunning?: boolean | undefined;
|
16
|
+
autohide?: "always" | "not-last" | "never" | undefined;
|
17
|
+
autohideFloat?: "always" | "single-branch" | "never" | undefined;
|
18
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
12
19
|
export {};
|
13
20
|
//# sourceMappingURL=ActionBarRoot.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ActionBarRoot.d.ts","sourceRoot":"","sources":["../../../src/primitives/actionBar/ActionBarRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,KAAK,YAAY,EAAc,wBAAwB,EAAE,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"ActionBarRoot.d.ts","sourceRoot":"","sources":["../../../src/primitives/actionBar/ActionBarRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,KAAK,YAAY,EAAc,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAMhF,KAAK,iBAAiB,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;AAExE,yBAAiB,sBAAsB,CAAC;IACtC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACzD,KAAY,KAAK,GAAG,iBAAiB,GAAG;QACtC,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACtC,QAAQ,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,OAAO,GAAG,SAAS,CAAC;QACvD,aAAa,CAAC,EAAE,QAAQ,GAAG,eAAe,GAAG,OAAO,GAAG,SAAS,CAAC;KAClE,CAAC;CACH;AAED,eAAO,MAAM,sBAAsB;;;sBANb,OAAO,GAAG,SAAS;eAC1B,QAAQ,GAAG,UAAU,GAAG,OAAO,GAAG,SAAS;oBACtC,QAAQ,GAAG,eAAe,GAAG,OAAO,GAAG,SAAS;kDAyBlE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/primitives/actionBar/ActionBarRoot.tsx"],"sourcesContent":["\"use client\";\n\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { type ComponentRef, forwardRef, ComponentPropsWithoutRef } from \"react\";\nimport {\n useActionBarFloatStatus,\n HideAndFloatStatus,\n
|
1
|
+
{"version":3,"sources":["../../../src/primitives/actionBar/ActionBarRoot.tsx"],"sourcesContent":["\"use client\";\n\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { type ComponentRef, forwardRef, ComponentPropsWithoutRef } from \"react\";\nimport {\n useActionBarFloatStatus,\n HideAndFloatStatus,\n} from \"./useActionBarFloatStatus\";\n\ntype PrimitiveDivProps = ComponentPropsWithoutRef<typeof Primitive.div>;\n\nexport namespace ActionBarPrimitiveRoot {\n export type Element = ComponentRef<typeof Primitive.div>;\n export type Props = PrimitiveDivProps & {\n hideWhenRunning?: boolean | undefined;\n autohide?: \"always\" | \"not-last\" | \"never\" | undefined;\n autohideFloat?: \"always\" | \"single-branch\" | \"never\" | undefined;\n };\n}\n\nexport const ActionBarPrimitiveRoot = forwardRef<\n ActionBarPrimitiveRoot.Element,\n ActionBarPrimitiveRoot.Props\n>(({ hideWhenRunning, autohide, autohideFloat, ...rest }, ref) => {\n const hideAndfloatStatus = useActionBarFloatStatus({\n hideWhenRunning,\n autohide,\n autohideFloat,\n });\n\n if (hideAndfloatStatus === HideAndFloatStatus.Hidden) return null;\n\n return (\n <Primitive.div\n {...(hideAndfloatStatus === HideAndFloatStatus.Floating\n ? { \"data-floating\": \"true\" }\n : null)}\n {...rest}\n ref={ref}\n />\n );\n});\n\nActionBarPrimitiveRoot.displayName = \"ActionBarPrimitive.Root\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,6BAA0B;AAC1B,mBAAwE;AACxE,qCAGO;AA0BH;AAbG,IAAM,6BAAyB,yBAGpC,CAAC,EAAE,iBAAiB,UAAU,eAAe,GAAG,KAAK,GAAG,QAAQ;AAChE,QAAM,yBAAqB,wDAAwB;AAAA,IACjD;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AAED,MAAI,uBAAuB,kDAAmB,OAAQ,QAAO;AAE7D,SACE;AAAA,IAAC,iCAAU;AAAA,IAAV;AAAA,MACE,GAAI,uBAAuB,kDAAmB,WAC3C,EAAE,iBAAiB,OAAO,IAC1B;AAAA,MACH,GAAG;AAAA,MACJ;AAAA;AAAA,EACF;AAEJ,CAAC;AAED,uBAAuB,cAAc;","names":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/primitives/actionBar/ActionBarRoot.tsx"],"sourcesContent":["\"use client\";\n\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { type ComponentRef, forwardRef, ComponentPropsWithoutRef } from \"react\";\nimport {\n useActionBarFloatStatus,\n HideAndFloatStatus,\n
|
1
|
+
{"version":3,"sources":["../../../src/primitives/actionBar/ActionBarRoot.tsx"],"sourcesContent":["\"use client\";\n\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { type ComponentRef, forwardRef, ComponentPropsWithoutRef } from \"react\";\nimport {\n useActionBarFloatStatus,\n HideAndFloatStatus,\n} from \"./useActionBarFloatStatus\";\n\ntype PrimitiveDivProps = ComponentPropsWithoutRef<typeof Primitive.div>;\n\nexport namespace ActionBarPrimitiveRoot {\n export type Element = ComponentRef<typeof Primitive.div>;\n export type Props = PrimitiveDivProps & {\n hideWhenRunning?: boolean | undefined;\n autohide?: \"always\" | \"not-last\" | \"never\" | undefined;\n autohideFloat?: \"always\" | \"single-branch\" | \"never\" | undefined;\n };\n}\n\nexport const ActionBarPrimitiveRoot = forwardRef<\n ActionBarPrimitiveRoot.Element,\n ActionBarPrimitiveRoot.Props\n>(({ hideWhenRunning, autohide, autohideFloat, ...rest }, ref) => {\n const hideAndfloatStatus = useActionBarFloatStatus({\n hideWhenRunning,\n autohide,\n autohideFloat,\n });\n\n if (hideAndfloatStatus === HideAndFloatStatus.Hidden) return null;\n\n return (\n <Primitive.div\n {...(hideAndfloatStatus === HideAndFloatStatus.Floating\n ? { \"data-floating\": \"true\" }\n : null)}\n {...rest}\n ref={ref}\n />\n );\n});\n\nActionBarPrimitiveRoot.displayName = \"ActionBarPrimitive.Root\";\n"],"mappings":";;;AAEA,SAAS,iBAAiB;AAC1B,SAA4B,kBAA4C;AACxE;AAAA,EACE;AAAA,EACA;AAAA,OACK;AA0BH;AAbG,IAAM,yBAAyB,WAGpC,CAAC,EAAE,iBAAiB,UAAU,eAAe,GAAG,KAAK,GAAG,QAAQ;AAChE,QAAM,qBAAqB,wBAAwB;AAAA,IACjD;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AAED,MAAI,uBAAuB,mBAAmB,OAAQ,QAAO;AAE7D,SACE;AAAA,IAAC,UAAU;AAAA,IAAV;AAAA,MACE,GAAI,uBAAuB,mBAAmB,WAC3C,EAAE,iBAAiB,OAAO,IAC1B;AAAA,MACH,GAAG;AAAA,MACJ;AAAA;AAAA,EACF;AAEJ,CAAC;AAED,uBAAuB,cAAc;","names":[]}
|
@@ -1,11 +1,14 @@
|
|
1
1
|
import { Primitive } from "@radix-ui/react-primitive";
|
2
2
|
import { type ComponentRef, ComponentPropsWithoutRef } from "react";
|
3
|
-
import { useThreadViewportAutoScroll } from "./useThreadViewportAutoScroll";
|
4
3
|
export declare namespace ThreadPrimitiveViewport {
|
5
4
|
type Element = ComponentRef<typeof Primitive.div>;
|
6
|
-
type Props = ComponentPropsWithoutRef<typeof Primitive.div> &
|
5
|
+
type Props = ComponentPropsWithoutRef<typeof Primitive.div> & {
|
6
|
+
autoScroll?: boolean | undefined;
|
7
|
+
};
|
7
8
|
}
|
8
9
|
export declare const ThreadPrimitiveViewport: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
9
10
|
asChild?: boolean;
|
10
|
-
}, "ref"> &
|
11
|
+
}, "ref"> & {
|
12
|
+
autoScroll?: boolean | undefined;
|
13
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
11
14
|
//# sourceMappingURL=ThreadViewport.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ThreadViewport.d.ts","sourceRoot":"","sources":["../../../src/primitives/thread/ThreadViewport.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,KAAK,YAAY,EAAc,wBAAwB,EAAE,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"ThreadViewport.d.ts","sourceRoot":"","sources":["../../../src/primitives/thread/ThreadViewport.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,KAAK,YAAY,EAAc,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAGhF,yBAAiB,uBAAuB,CAAC;IACvC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACzD,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,GAAG;QACnE,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAClC,CAAC;CACH;AAED,eAAO,MAAM,uBAAuB;;;iBAJnB,OAAO,GAAG,SAAS;kDAmBlC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/primitives/thread/ThreadViewport.tsx"],"sourcesContent":["\"use client\";\n\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { type ComponentRef, forwardRef, ComponentPropsWithoutRef } from \"react\";\nimport { useThreadViewportAutoScroll } from \"./useThreadViewportAutoScroll\";\n\nexport namespace ThreadPrimitiveViewport {\n export type Element = ComponentRef<typeof Primitive.div>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.div>
|
1
|
+
{"version":3,"sources":["../../../src/primitives/thread/ThreadViewport.tsx"],"sourcesContent":["\"use client\";\n\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { type ComponentRef, forwardRef, ComponentPropsWithoutRef } from \"react\";\nimport { useThreadViewportAutoScroll } from \"./useThreadViewportAutoScroll\";\n\nexport namespace ThreadPrimitiveViewport {\n export type Element = ComponentRef<typeof Primitive.div>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.div> & {\n autoScroll?: boolean | undefined;\n };\n}\n\nexport const ThreadPrimitiveViewport = forwardRef<\n ThreadPrimitiveViewport.Element,\n ThreadPrimitiveViewport.Props\n>(({ autoScroll, children, ...rest }, forwardedRef) => {\n const autoScrollRef = useThreadViewportAutoScroll<HTMLDivElement>({\n autoScroll,\n });\n\n const ref = useComposedRefs(forwardedRef, autoScrollRef);\n\n return (\n <Primitive.div {...rest} ref={ref}>\n {children}\n </Primitive.div>\n );\n});\n\nThreadPrimitiveViewport.displayName = \"ThreadPrimitive.Viewport\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,gCAAgC;AAChC,6BAA0B;AAC1B,mBAAwE;AACxE,yCAA4C;AAoBxC;AAXG,IAAM,8BAA0B,yBAGrC,CAAC,EAAE,YAAY,UAAU,GAAG,KAAK,GAAG,iBAAiB;AACrD,QAAM,oBAAgB,gEAA4C;AAAA,IAChE;AAAA,EACF,CAAC;AAED,QAAM,UAAM,2CAAgB,cAAc,aAAa;AAEvD,SACE,4CAAC,iCAAU,KAAV,EAAe,GAAG,MAAM,KACtB,UACH;AAEJ,CAAC;AAED,wBAAwB,cAAc;","names":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/primitives/thread/ThreadViewport.tsx"],"sourcesContent":["\"use client\";\n\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { type ComponentRef, forwardRef, ComponentPropsWithoutRef } from \"react\";\nimport { useThreadViewportAutoScroll } from \"./useThreadViewportAutoScroll\";\n\nexport namespace ThreadPrimitiveViewport {\n export type Element = ComponentRef<typeof Primitive.div>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.div>
|
1
|
+
{"version":3,"sources":["../../../src/primitives/thread/ThreadViewport.tsx"],"sourcesContent":["\"use client\";\n\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { type ComponentRef, forwardRef, ComponentPropsWithoutRef } from \"react\";\nimport { useThreadViewportAutoScroll } from \"./useThreadViewportAutoScroll\";\n\nexport namespace ThreadPrimitiveViewport {\n export type Element = ComponentRef<typeof Primitive.div>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.div> & {\n autoScroll?: boolean | undefined;\n };\n}\n\nexport const ThreadPrimitiveViewport = forwardRef<\n ThreadPrimitiveViewport.Element,\n ThreadPrimitiveViewport.Props\n>(({ autoScroll, children, ...rest }, forwardedRef) => {\n const autoScrollRef = useThreadViewportAutoScroll<HTMLDivElement>({\n autoScroll,\n });\n\n const ref = useComposedRefs(forwardedRef, autoScrollRef);\n\n return (\n <Primitive.div {...rest} ref={ref}>\n {children}\n </Primitive.div>\n );\n});\n\nThreadPrimitiveViewport.displayName = \"ThreadPrimitive.Viewport\";\n"],"mappings":";;;AAEA,SAAS,uBAAuB;AAChC,SAAS,iBAAiB;AAC1B,SAA4B,kBAA4C;AACxE,SAAS,mCAAmC;AAoBxC;AAXG,IAAM,0BAA0B,WAGrC,CAAC,EAAE,YAAY,UAAU,GAAG,KAAK,GAAG,iBAAiB;AACrD,QAAM,gBAAgB,4BAA4C;AAAA,IAChE;AAAA,EACF,CAAC;AAED,QAAM,MAAM,gBAAgB,cAAc,aAAa;AAEvD,SACE,oBAAC,UAAU,KAAV,EAAe,GAAG,MAAM,KACtB,UACH;AAEJ,CAAC;AAED,wBAAwB,cAAc;","names":[]}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AssistantStream } from "
|
1
|
+
import { AssistantStream } from "assistant-stream";
|
2
2
|
import { RemoteThreadInitializeResponse, RemoteThreadListAdapter, RemoteThreadListResponse } from "../types";
|
3
3
|
export declare class InMemoryThreadListAdapter implements RemoteThreadListAdapter {
|
4
4
|
list(): Promise<RemoteThreadListResponse>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"in-memory.d.ts","sourceRoot":"","sources":["../../../../src/runtimes/remote-thread-list/adapter/in-memory.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"in-memory.d.ts","sourceRoot":"","sources":["../../../../src/runtimes/remote-thread-list/adapter/in-memory.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAwB,MAAM,kBAAkB,CAAC;AACzE,OAAO,EACL,8BAA8B,EAC9B,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,UAAU,CAAC;AAElB,qBAAa,yBAA0B,YAAW,uBAAuB;IACvE,IAAI,IAAI,OAAO,CAAC,wBAAwB,CAAC;IAMzC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAIvB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxB,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAI1B,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAIvB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,8BAA8B,CAAC;IAIrE,aAAa,IAAI,OAAO,CAAC,eAAe,CAAC;CAK1C"}
|
@@ -23,7 +23,7 @@ __export(in_memory_exports, {
|
|
23
23
|
InMemoryThreadListAdapter: () => InMemoryThreadListAdapter
|
24
24
|
});
|
25
25
|
module.exports = __toCommonJS(in_memory_exports);
|
26
|
-
var import_assistant_stream = require("
|
26
|
+
var import_assistant_stream = require("assistant-stream");
|
27
27
|
var InMemoryThreadListAdapter = class {
|
28
28
|
list() {
|
29
29
|
return Promise.resolve({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtimes/remote-thread-list/adapter/in-memory.tsx"],"sourcesContent":["import {
|
1
|
+
{"version":3,"sources":["../../../../src/runtimes/remote-thread-list/adapter/in-memory.tsx"],"sourcesContent":["import { AssistantStream, AssistantStreamChunk } from \"assistant-stream\";\nimport {\n RemoteThreadInitializeResponse,\n RemoteThreadListAdapter,\n RemoteThreadListResponse,\n} from \"../types\";\n\nexport class InMemoryThreadListAdapter implements RemoteThreadListAdapter {\n list(): Promise<RemoteThreadListResponse> {\n return Promise.resolve({\n threads: [],\n });\n }\n\n rename(): Promise<void> {\n return Promise.resolve();\n }\n\n archive(): Promise<void> {\n return Promise.resolve();\n }\n\n unarchive(): Promise<void> {\n return Promise.resolve();\n }\n\n delete(): Promise<void> {\n return Promise.resolve();\n }\n\n initialize(threadId: string): Promise<RemoteThreadInitializeResponse> {\n return Promise.resolve({ remoteId: threadId, externalId: undefined });\n }\n\n generateTitle(): Promise<AssistantStream> {\n return Promise.resolve(\n new AssistantStream(new ReadableStream<AssistantStreamChunk>()),\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAsD;AAO/C,IAAM,4BAAN,MAAmE;AAAA,EACxE,OAA0C;AACxC,WAAO,QAAQ,QAAQ;AAAA,MACrB,SAAS,CAAC;AAAA,IACZ,CAAC;AAAA,EACH;AAAA,EAEA,SAAwB;AACtB,WAAO,QAAQ,QAAQ;AAAA,EACzB;AAAA,EAEA,UAAyB;AACvB,WAAO,QAAQ,QAAQ;AAAA,EACzB;AAAA,EAEA,YAA2B;AACzB,WAAO,QAAQ,QAAQ;AAAA,EACzB;AAAA,EAEA,SAAwB;AACtB,WAAO,QAAQ,QAAQ;AAAA,EACzB;AAAA,EAEA,WAAW,UAA2D;AACpE,WAAO,QAAQ,QAAQ,EAAE,UAAU,UAAU,YAAY,OAAU,CAAC;AAAA,EACtE;AAAA,EAEA,gBAA0C;AACxC,WAAO,QAAQ;AAAA,MACb,IAAI,wCAAgB,IAAI,eAAqC,CAAC;AAAA,IAChE;AAAA,EACF;AACF;","names":[]}
|
@@ -1,7 +1,5 @@
|
|
1
1
|
// src/runtimes/remote-thread-list/adapter/in-memory.tsx
|
2
|
-
import {
|
3
|
-
AssistantStream
|
4
|
-
} from "@assistant-ui/assistant-stream.mjs";
|
2
|
+
import { AssistantStream } from "assistant-stream";
|
5
3
|
var InMemoryThreadListAdapter = class {
|
6
4
|
list() {
|
7
5
|
return Promise.resolve({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/runtimes/remote-thread-list/adapter/in-memory.tsx"],"sourcesContent":["import {
|
1
|
+
{"version":3,"sources":["../../../../src/runtimes/remote-thread-list/adapter/in-memory.tsx"],"sourcesContent":["import { AssistantStream, AssistantStreamChunk } from \"assistant-stream\";\nimport {\n RemoteThreadInitializeResponse,\n RemoteThreadListAdapter,\n RemoteThreadListResponse,\n} from \"../types\";\n\nexport class InMemoryThreadListAdapter implements RemoteThreadListAdapter {\n list(): Promise<RemoteThreadListResponse> {\n return Promise.resolve({\n threads: [],\n });\n }\n\n rename(): Promise<void> {\n return Promise.resolve();\n }\n\n archive(): Promise<void> {\n return Promise.resolve();\n }\n\n unarchive(): Promise<void> {\n return Promise.resolve();\n }\n\n delete(): Promise<void> {\n return Promise.resolve();\n }\n\n initialize(threadId: string): Promise<RemoteThreadInitializeResponse> {\n return Promise.resolve({ remoteId: threadId, externalId: undefined });\n }\n\n generateTitle(): Promise<AssistantStream> {\n return Promise.resolve(\n new AssistantStream(new ReadableStream<AssistantStreamChunk>()),\n );\n }\n}\n"],"mappings":";AAAA,SAAS,uBAA6C;AAO/C,IAAM,4BAAN,MAAmE;AAAA,EACxE,OAA0C;AACxC,WAAO,QAAQ,QAAQ;AAAA,MACrB,SAAS,CAAC;AAAA,IACZ,CAAC;AAAA,EACH;AAAA,EAEA,SAAwB;AACtB,WAAO,QAAQ,QAAQ;AAAA,EACzB;AAAA,EAEA,UAAyB;AACvB,WAAO,QAAQ,QAAQ;AAAA,EACzB;AAAA,EAEA,YAA2B;AACzB,WAAO,QAAQ,QAAQ;AAAA,EACzB;AAAA,EAEA,SAAwB;AACtB,WAAO,QAAQ,QAAQ;AAAA,EACzB;AAAA,EAEA,WAAW,UAA2D;AACpE,WAAO,QAAQ,QAAQ,EAAE,UAAU,UAAU,YAAY,OAAU,CAAC;AAAA,EACtE;AAAA,EAEA,gBAA0C;AACxC,WAAO,QAAQ;AAAA,MACb,IAAI,gBAAgB,IAAI,eAAqC,CAAC;AAAA,IAChE;AAAA,EACF;AACF;","names":[]}
|
@@ -4,7 +4,11 @@ declare const AssistantActionBar: FC;
|
|
4
4
|
declare const exports: {
|
5
5
|
Root: import("react").ForwardRefExoticComponent<Partial<Omit<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
6
6
|
asChild?: boolean;
|
7
|
-
}, "ref"> &
|
7
|
+
}, "ref"> & {
|
8
|
+
hideWhenRunning?: boolean | undefined;
|
9
|
+
autohide?: "always" | "not-last" | "never" | undefined;
|
10
|
+
autohideFloat?: "always" | "single-branch" | "never" | undefined;
|
11
|
+
} & import("react").RefAttributes<HTMLDivElement>, "ref">> & import("react").RefAttributes<HTMLDivElement>>;
|
8
12
|
Reload: import("react").ForwardRefExoticComponent<Partial<TooltipIconButton.Props> & import("react").RefAttributes<HTMLButtonElement>>;
|
9
13
|
Copy: import("react").ForwardRefExoticComponent<Partial<TooltipIconButton.Props> & {
|
10
14
|
copiedDuration?: number | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"assistant-action-bar.d.ts","sourceRoot":"","sources":["../../src/ui/assistant-action-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAW5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAqC/D,QAAA,MAAM,kBAAkB,EAAE,EA4BzB,CAAC;AAgNF,QAAA,MAAM,OAAO
|
1
|
+
{"version":3,"file":"assistant-action-bar.d.ts","sourceRoot":"","sources":["../../src/ui/assistant-action-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAW5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAqC/D,QAAA,MAAM,kBAAkB,EAAE,EA4BzB,CAAC;AAgNF,QAAA,MAAM,OAAO;;;;;;;;;;yBAnMQ,MAAM,GAAG,SAAS;;;;;;;CA4MtC,CAAC;wBAKG,OAAO,kBAAkB,GAAG,OAAO,OAAO;AAH/C,wBAGgD"}
|
package/dist/ui/thread.d.ts
CHANGED
@@ -13,7 +13,9 @@ declare const exports: {
|
|
13
13
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
14
14
|
Viewport: import("react").ForwardRefExoticComponent<Partial<Omit<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
15
15
|
asChild?: boolean;
|
16
|
-
}, "ref"> &
|
16
|
+
}, "ref"> & {
|
17
|
+
autoScroll?: boolean | undefined;
|
18
|
+
} & import("react").RefAttributes<HTMLDivElement>, "ref">> & import("react").RefAttributes<HTMLDivElement>>;
|
17
19
|
Messages: FC<{
|
18
20
|
unstable_flexGrowDiv?: boolean;
|
19
21
|
components?: Partial<ThreadPrimitive.Messages.Props["components"]>;
|
package/dist/ui/thread.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../src/ui/thread.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAc,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAM3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAI/D,OAAO,EACL,YAAY,EAIb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGhD,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,YAAY,CAyB5B,CAAC;AAwHF,QAAA,MAAM,OAAO
|
1
|
+
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../src/ui/thread.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAc,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAM3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAI/D,OAAO,EACL,YAAY,EAIb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGhD,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,YAAY,CAyB5B,CAAC;AAwHF,QAAA,MAAM,OAAO;;;;;;;;;;;;;;+BApFY,OAAO;qBACjB,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;yBACjD,aAAa,GAAG,SAAS;;;;;CAyF3C,CAAC;wBAE+C,OAAO,MAAM,GAAG,OAAO,OAAO;AAA/E,wBAAgF"}
|
@@ -4,7 +4,11 @@ declare const UserActionBar: FC;
|
|
4
4
|
declare const exports: {
|
5
5
|
Root: import("react").ForwardRefExoticComponent<Partial<Omit<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
6
6
|
asChild?: boolean;
|
7
|
-
}, "ref"> &
|
7
|
+
}, "ref"> & {
|
8
|
+
hideWhenRunning?: boolean | undefined;
|
9
|
+
autohide?: "always" | "not-last" | "never" | undefined;
|
10
|
+
autohideFloat?: "always" | "single-branch" | "never" | undefined;
|
11
|
+
} & import("react").RefAttributes<HTMLDivElement>, "ref">> & import("react").RefAttributes<HTMLDivElement>>;
|
8
12
|
Edit: import("react").ForwardRefExoticComponent<Partial<TooltipIconButton.Props> & import("react").RefAttributes<HTMLButtonElement>>;
|
9
13
|
};
|
10
14
|
declare const _default: typeof UserActionBar & typeof exports;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user-action-bar.d.ts","sourceRoot":"","sources":["../../src/ui/user-action-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAY/D,QAAA,MAAM,aAAa,EAAE,EAQpB,CAAC;AAkCF,QAAA,MAAM,OAAO
|
1
|
+
{"version":3,"file":"user-action-bar.d.ts","sourceRoot":"","sources":["../../src/ui/user-action-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAY/D,QAAA,MAAM,aAAa,EAAE,EAQpB,CAAC;AAkCF,QAAA,MAAM,OAAO;;;;;;;;;CAGZ,CAAC;wBAEsD,OAAO,aAAa,GAC1E,OAAO,OAAO;AADhB,wBACiB"}
|
package/package.json
CHANGED
@@ -5,14 +5,17 @@ import { type ComponentRef, forwardRef, ComponentPropsWithoutRef } from "react";
|
|
5
5
|
import {
|
6
6
|
useActionBarFloatStatus,
|
7
7
|
HideAndFloatStatus,
|
8
|
-
UseActionBarFloatStatusProps,
|
9
8
|
} from "./useActionBarFloatStatus";
|
10
9
|
|
11
10
|
type PrimitiveDivProps = ComponentPropsWithoutRef<typeof Primitive.div>;
|
12
11
|
|
13
12
|
export namespace ActionBarPrimitiveRoot {
|
14
13
|
export type Element = ComponentRef<typeof Primitive.div>;
|
15
|
-
export type Props = PrimitiveDivProps &
|
14
|
+
export type Props = PrimitiveDivProps & {
|
15
|
+
hideWhenRunning?: boolean | undefined;
|
16
|
+
autohide?: "always" | "not-last" | "never" | undefined;
|
17
|
+
autohideFloat?: "always" | "single-branch" | "never" | undefined;
|
18
|
+
};
|
16
19
|
}
|
17
20
|
|
18
21
|
export const ActionBarPrimitiveRoot = forwardRef<
|
@@ -7,8 +7,9 @@ import { useThreadViewportAutoScroll } from "./useThreadViewportAutoScroll";
|
|
7
7
|
|
8
8
|
export namespace ThreadPrimitiveViewport {
|
9
9
|
export type Element = ComponentRef<typeof Primitive.div>;
|
10
|
-
export type Props = ComponentPropsWithoutRef<typeof Primitive.div> &
|
11
|
-
|
10
|
+
export type Props = ComponentPropsWithoutRef<typeof Primitive.div> & {
|
11
|
+
autoScroll?: boolean | undefined;
|
12
|
+
};
|
12
13
|
}
|
13
14
|
|
14
15
|
export const ThreadPrimitiveViewport = forwardRef<
|