@superinterface/react 2.0.7 → 2.0.8

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.
@@ -3,7 +3,7 @@ import { MessagesPage, RunsPage } from './types/index.cjs';
3
3
  import * as _tanstack_react_query_build_legacy_types from '@tanstack/react-query/build/legacy/types';
4
4
  import * as _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw from '@tanstack/query-core/build/legacy/queryClient-Ho-z40Sw';
5
5
  import { useQueryClient } from '@tanstack/react-query';
6
- import { u as useSuperinterfaceContext } from './index-Dp6WTBGJ.cjs';
6
+ import { u as useSuperinterfaceContext } from './index-u67QcaWg.cjs';
7
7
  import 'openai';
8
8
 
9
9
  type Args$1 = {
@@ -3,7 +3,7 @@ import { MessagesPage, RunsPage } from './types/index.js';
3
3
  import * as _tanstack_react_query_build_legacy_types from '@tanstack/react-query/build/legacy/types';
4
4
  import * as _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw from '@tanstack/query-core/build/legacy/queryClient-Ho-z40Sw';
5
5
  import { useQueryClient } from '@tanstack/react-query';
6
- import { u as useSuperinterfaceContext } from './index-Dp6WTBGJ.js';
6
+ import { u as useSuperinterfaceContext } from './index-u67QcaWg.js';
7
7
  import 'openai';
8
8
 
9
9
  type Args$1 = {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA","sourcesContent":["import OpenAI from 'openai'\n\nexport type Message = OpenAI.Beta.Threads.Messages.ThreadMessage & {\n runSteps: OpenAI.Beta.Threads.Runs.RunStep[]\n}\n\nexport type MessagesPage = {\n data: Message[]\n hasNextPage: boolean\n lastId: string\n}\n\nexport type RunStepsPage = {\n data: OpenAI.Beta.Threads.Runs.RunStep[]\n hasNextPage: boolean\n lastId: string\n}\n\nexport type MessageGroup = {\n id: string\n role: \"user\" | \"assistant\"\n messages: Message[]\n createdAt: number\n}\n\nexport type Run = OpenAI.Beta.Threads.Runs.Run\n\nexport type RunsPage = {\n data: Run[]\n hasNextPage: boolean\n lastId: string\n}\n\ntype Fn = (args: any) => Promise<string>\n\nexport type Functions = {\n [key: string]: Fn\n}\n\nexport type AudioEngine = {\n source: MediaStreamAudioSourceNode | GainNode\n audioContext: AudioContext\n}\n"]}
1
+ {"version":3,"sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA","sourcesContent":["import OpenAI from 'openai'\n\nexport type Message = OpenAI.Beta.Threads.Messages.ThreadMessage & {\n runSteps: OpenAI.Beta.Threads.Runs.RunStep[]\n}\n\nexport type MessagesPage = {\n data: Message[]\n hasNextPage: boolean\n lastId: string\n}\n\nexport type RunStepsPage = {\n data: OpenAI.Beta.Threads.Runs.RunStep[]\n hasNextPage: boolean\n lastId: string\n}\n\nexport type MessageGroup = {\n id: string\n role: \"user\" | \"assistant\"\n messages: Message[]\n createdAt: number\n}\n\nexport type Run = OpenAI.Beta.Threads.Runs.Run\n\nexport type RunsPage = {\n data: Run[]\n hasNextPage: boolean\n lastId: string\n}\n\ntype Fn = (args: any) => Promise<string>\n\nexport type Functions = {\n [key: string]: Fn\n}\n\nexport type AudioEngine = {\n source: MediaStreamAudioSourceNode | GainNode\n audioContext: AudioContext\n}\n\nexport type Toast = {\n type: 'success' | 'error'\n message: string\n}\n"]}
@@ -33,5 +33,9 @@ type AudioEngine = {
33
33
  source: MediaStreamAudioSourceNode | GainNode;
34
34
  audioContext: AudioContext;
35
35
  };
36
+ type Toast = {
37
+ type: 'success' | 'error';
38
+ message: string;
39
+ };
36
40
 
37
- export type { AudioEngine, Functions, Message, MessageGroup, MessagesPage, Run, RunStepsPage, RunsPage };
41
+ export type { AudioEngine, Functions, Message, MessageGroup, MessagesPage, Run, RunStepsPage, RunsPage, Toast };
@@ -33,5 +33,9 @@ type AudioEngine = {
33
33
  source: MediaStreamAudioSourceNode | GainNode;
34
34
  audioContext: AudioContext;
35
35
  };
36
+ type Toast = {
37
+ type: 'success' | 'error';
38
+ message: string;
39
+ };
36
40
 
37
- export type { AudioEngine, Functions, Message, MessageGroup, MessagesPage, Run, RunStepsPage, RunsPage };
41
+ export type { AudioEngine, Functions, Message, MessageGroup, MessagesPage, Run, RunStepsPage, RunsPage, Toast };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superinterface/react",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -21,6 +21,7 @@
21
21
  "dependencies": {
22
22
  "@hookform/resolvers": "^3.3.4",
23
23
  "@radix-ui/react-icons": "^1.3.0",
24
+ "@radix-ui/react-toast": "^1.1.5",
24
25
  "dayjs": "^1.11.10",
25
26
  "detect-browser": "^5.3.0",
26
27
  "howler": "^2.2.4",
@@ -37,12 +38,11 @@
37
38
  "react-use": "^17.5.0",
38
39
  "react-use-audio-player": "^2.2.0",
39
40
  "regenerator-runtime": "^0.14.1",
40
- "sonner": "^1.4.3",
41
41
  "use-audio-capture": "^0.0.7",
42
42
  "zod": "^3.22.4"
43
43
  },
44
44
  "peerDependencies": {
45
- "@radix-ui/themes": "3.0.0-rc.13-patch.1",
45
+ "@radix-ui/themes": "3.0.0-rc.14-patch.1",
46
46
  "@tanstack/query-core": ">=5.0.0",
47
47
  "@tanstack/react-query": ">=5.0.0",
48
48
  "@types/react": "*",