@assistant-ui/react 0.5.25 → 0.5.27
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/dist/styles/index.css +0 -1
- package/dist/styles/index.css.map +1 -1
- package/dist/styles/tailwindcss/base-components.css +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
@@ -1234,6 +1234,9 @@ declare const exports$9: {
|
|
1234
1234
|
declare const _default$8: typeof AssistantMessage & typeof exports$9;
|
1235
1235
|
|
1236
1236
|
declare const AssistantModal: FC<ThreadConfig>;
|
1237
|
+
type AssistantModalButtonProps = TooltipIconButtonProps & {
|
1238
|
+
"data-state"?: "open" | "closed";
|
1239
|
+
};
|
1237
1240
|
declare const exports$8: {
|
1238
1241
|
Root: FC<PopoverPrimitive.PopoverProps & {
|
1239
1242
|
config?: ThreadConfig | undefined;
|
@@ -1244,6 +1247,8 @@ declare const exports$8: {
|
|
1244
1247
|
Content: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<PopoverPrimitive.PopoverContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
1245
1248
|
dissmissOnInteractOutside?: boolean | undefined;
|
1246
1249
|
} & react.RefAttributes<HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
|
1250
|
+
Button: react.ForwardRefExoticComponent<Partial<AssistantModalButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
1251
|
+
Anchor: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<PopoverPrimitive.PopoverAnchorProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
|
1247
1252
|
};
|
1248
1253
|
declare const _default$7: typeof AssistantModal & typeof exports$8;
|
1249
1254
|
|
package/dist/index.d.ts
CHANGED
@@ -1234,6 +1234,9 @@ declare const exports$9: {
|
|
1234
1234
|
declare const _default$8: typeof AssistantMessage & typeof exports$9;
|
1235
1235
|
|
1236
1236
|
declare const AssistantModal: FC<ThreadConfig>;
|
1237
|
+
type AssistantModalButtonProps = TooltipIconButtonProps & {
|
1238
|
+
"data-state"?: "open" | "closed";
|
1239
|
+
};
|
1237
1240
|
declare const exports$8: {
|
1238
1241
|
Root: FC<PopoverPrimitive.PopoverProps & {
|
1239
1242
|
config?: ThreadConfig | undefined;
|
@@ -1244,6 +1247,8 @@ declare const exports$8: {
|
|
1244
1247
|
Content: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<PopoverPrimitive.PopoverContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
1245
1248
|
dissmissOnInteractOutside?: boolean | undefined;
|
1246
1249
|
} & react.RefAttributes<HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
|
1250
|
+
Button: react.ForwardRefExoticComponent<Partial<AssistantModalButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
1251
|
+
Anchor: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<PopoverPrimitive.PopoverAnchorProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
|
1247
1252
|
};
|
1248
1253
|
declare const _default$7: typeof AssistantModal & typeof exports$8;
|
1249
1254
|
|
package/dist/index.js
CHANGED
@@ -165,7 +165,7 @@ var getThreadStateFromRuntime = (runtime) => {
|
|
165
165
|
return Object.freeze({
|
166
166
|
isDisabled: runtime.isDisabled,
|
167
167
|
isRunning: false,
|
168
|
-
unstable_canAppendNew: runtime.isDisabled
|
168
|
+
unstable_canAppendNew: !runtime.isDisabled
|
169
169
|
});
|
170
170
|
return Object.freeze({
|
171
171
|
isDisabled: runtime.isDisabled,
|
@@ -3865,7 +3865,9 @@ AssistantModalContent.displayName = "AssistantModalContent";
|
|
3865
3865
|
var exports11 = {
|
3866
3866
|
Root: AssistantModalRoot,
|
3867
3867
|
Trigger: AssistantModalTrigger,
|
3868
|
-
Content: AssistantModalContent
|
3868
|
+
Content: AssistantModalContent,
|
3869
|
+
Button: AssistantModalButton,
|
3870
|
+
Anchor: AssistantModalAnchor
|
3869
3871
|
};
|
3870
3872
|
var assistant_modal_default = Object.assign(AssistantModal, exports11);
|
3871
3873
|
|