@brainfish-ai/components 0.8.2-alpha.0 → 0.8.2

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.
@@ -6,11 +6,11 @@ import { XCircle, Check, Copy, CaretDown, ArrowSquareOut, CaretRight, ArrowsVert
6
6
  import { appendErrors, useForm, Controller } from 'react-hook-form';
7
7
  import { validateFieldsNatively, toNestErrors } from '@hookform/resolvers';
8
8
  import require$$0 from 'ajv';
9
- import { g as getDefaultExportFromCjs, F as FormattedMessage } from './FormattedMessage.CyP9HgTe.js';
9
+ import { g as getDefaultExportFromCjs, F as FormattedMessage } from './FormattedMessage.DPRps9mh.js';
10
10
  import { Input } from '../components/ui/input.js';
11
11
  import { Label } from '../components/ui/label.js';
12
12
  import { Textarea } from '../components/ui/textarea.js';
13
- import { S as SimpleSelect } from './simpleSelect.BbTlGnz2.js';
13
+ import { S as SimpleSelect } from './simpleSelect.BiVUOs29.js';
14
14
  import { c as cn, i as isAnswerUncertain } from './utils.DmKr1Ojo.js';
15
15
  import { D as DatePicker } from './date-picker.Ca8jXimG.js';
16
16
  import { createId } from '@paralleldrive/cuid2';
@@ -5149,7 +5149,7 @@ const defaultTextConfig = {
5149
5149
  const clientExecutionEventType = "CLIENT_EXECUTION";
5150
5150
  const clientExecutionResultEventType = "CLIENT_EXECUTION_RESULT";
5151
5151
  const executeClientAction = (key, inputs) => {
5152
- return new Promise((resolve, reject) => {
5152
+ return new Promise((resolve) => {
5153
5153
  const messageId = crypto.randomUUID();
5154
5154
  const handleResponse = (event) => {
5155
5155
  if (event.data.messageId === messageId && event.data.type === clientExecutionResultEventType) {
@@ -5169,7 +5169,7 @@ const executeClientAction = (key, inputs) => {
5169
5169
  );
5170
5170
  setTimeout(() => {
5171
5171
  window.removeEventListener("message", handleResponse);
5172
- reject({
5172
+ resolve({
5173
5173
  success: false,
5174
5174
  reason: `Client Action handler with key ${key} timed out`
5175
5175
  });
@@ -5949,4 +5949,4 @@ const ChatSearch = forwardRef(({ featureFlags, ...props }, ref) => /* @__PURE__
5949
5949
  ChatSearch.displayName = "ChatSearch";
5950
5950
 
5951
5951
  export { ChatSearch as C, ChatSearchProvider as a, useIsChatSearchDirty as b, useChatSearch as u };
5952
- //# sourceMappingURL=ChatSearch.Baru4deb.js.map
5952
+ //# sourceMappingURL=ChatSearch.SKfNDI-w.js.map