@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.mjs CHANGED
@@ -3749,9 +3749,11 @@ var hasUpcomingMessage = (isRunning, messages) => {
3749
3749
  var ExternalStoreThreadRuntime = class {
3750
3750
  constructor(store) {
3751
3751
  this.store = store;
3752
- this.isDisabled = store.isDisabled ?? false;
3753
- this.isRunning = store.isRunning ?? false;
3754
- this.messages = store.messages;
3752
+ this.updateData(
3753
+ store.isDisabled ?? false,
3754
+ store.isRunning ?? false,
3755
+ store.messages
3756
+ );
3755
3757
  this.useStore = create14(() => ({
3756
3758
  store
3757
3759
  }));
@@ -3769,9 +3771,9 @@ var ExternalStoreThreadRuntime = class {
3769
3771
  copy: this.store.onCopy !== null
3770
3772
  };
3771
3773
  }
3772
- messages;
3773
- isDisabled;
3774
- isRunning;
3774
+ messages = [];
3775
+ isDisabled = false;
3776
+ isRunning = false;
3775
3777
  getBranches(messageId) {
3776
3778
  return this.repository.getBranches(messageId);
3777
3779
  }