@assistant-ui/react 0.5.17 → 0.5.18
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -661,7 +661,7 @@ declare class ExternalStoreThreadRuntime implements ReactThreadRuntime {
|
|
661
661
|
cancel: boolean;
|
662
662
|
copy: boolean;
|
663
663
|
};
|
664
|
-
messages:
|
664
|
+
messages: ThreadMessage[];
|
665
665
|
isDisabled: boolean;
|
666
666
|
isRunning: boolean;
|
667
667
|
constructor(store: ExternalStoreAdapter<any>);
|
package/dist/index.d.ts
CHANGED
@@ -661,7 +661,7 @@ declare class ExternalStoreThreadRuntime implements ReactThreadRuntime {
|
|
661
661
|
cancel: boolean;
|
662
662
|
copy: boolean;
|
663
663
|
};
|
664
|
-
messages:
|
664
|
+
messages: ThreadMessage[];
|
665
665
|
isDisabled: boolean;
|
666
666
|
isRunning: boolean;
|
667
667
|
constructor(store: ExternalStoreAdapter<any>);
|
package/dist/index.js
CHANGED
@@ -3832,9 +3832,11 @@ var hasUpcomingMessage = (isRunning, messages) => {
|
|
3832
3832
|
var ExternalStoreThreadRuntime = class {
|
3833
3833
|
constructor(store) {
|
3834
3834
|
this.store = store;
|
3835
|
-
this.
|
3836
|
-
|
3837
|
-
|
3835
|
+
this.updateData(
|
3836
|
+
store.isDisabled ?? false,
|
3837
|
+
store.isRunning ?? false,
|
3838
|
+
store.messages
|
3839
|
+
);
|
3838
3840
|
this.useStore = (0, import_zustand14.create)(() => ({
|
3839
3841
|
store
|
3840
3842
|
}));
|
@@ -3852,9 +3854,9 @@ var ExternalStoreThreadRuntime = class {
|
|
3852
3854
|
copy: this.store.onCopy !== null
|
3853
3855
|
};
|
3854
3856
|
}
|
3855
|
-
messages;
|
3856
|
-
isDisabled;
|
3857
|
-
isRunning;
|
3857
|
+
messages = [];
|
3858
|
+
isDisabled = false;
|
3859
|
+
isRunning = false;
|
3858
3860
|
getBranches(messageId) {
|
3859
3861
|
return this.repository.getBranches(messageId);
|
3860
3862
|
}
|