@superinterface/react 3.9.1 → 3.9.3
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.
- package/dist/cloud.cjs +613 -0
- package/dist/cloud.cjs.map +1 -0
- package/dist/cloud.d.cts +13 -0
- package/dist/cloud.d.ts +13 -0
- package/dist/cloud.js +543 -0
- package/dist/cloud.js.map +1 -0
- package/dist/index-CmzywRJS.d.cts +19 -0
- package/dist/index-CmzywRJS.d.ts +19 -0
- package/dist/index.cjs +117 -584
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -22
- package/dist/index.d.ts +4 -22
- package/dist/index.js +109 -572
- package/dist/index.js.map +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -10,9 +10,11 @@ import { Dispatch, SetStateAction } from 'react';
|
|
|
10
10
|
import * as openai_resources from 'openai/resources';
|
|
11
11
|
import * as react_use_audio_player from 'react-use-audio-player';
|
|
12
12
|
import { UseAudioCaptureProps } from 'use-audio-capture';
|
|
13
|
+
import { M as MarkdownContextType } from './index-CmzywRJS.cjs';
|
|
14
|
+
export { a as MarkdownContext, u as useMarkdownContext } from './index-CmzywRJS.cjs';
|
|
13
15
|
import OpenAI from 'openai';
|
|
14
|
-
import remarkGfm from 'remark-gfm';
|
|
15
16
|
import * as openai_resources_beta_threads_runs_steps from 'openai/resources/beta/threads/runs/steps';
|
|
17
|
+
import 'remark-gfm';
|
|
16
18
|
|
|
17
19
|
type Args$a = {
|
|
18
20
|
children: React.ReactNode;
|
|
@@ -637,30 +639,10 @@ declare const Suggestions: {
|
|
|
637
639
|
};
|
|
638
640
|
};
|
|
639
641
|
|
|
640
|
-
declare const components: Record<string, any>;
|
|
641
|
-
|
|
642
|
-
declare const getRemarkPlugins: ({ content, }: {
|
|
643
|
-
content: OpenAI.Beta.Threads.Messages.TextContentBlock;
|
|
644
|
-
}) => ((() => (tree: any) => void) | typeof remarkGfm)[];
|
|
645
|
-
|
|
646
|
-
type MarkdownContextType = {
|
|
647
|
-
components: typeof components;
|
|
648
|
-
getRemarkPlugins: typeof getRemarkPlugins;
|
|
649
|
-
};
|
|
650
|
-
declare const MarkdownContext: react.Context<MarkdownContextType>;
|
|
651
|
-
|
|
652
642
|
declare const MarkdownProvider: ({ children, ...rest }: {
|
|
653
643
|
children: React.ReactNode;
|
|
654
644
|
} & Partial<MarkdownContextType>) => react_jsx_runtime.JSX.Element;
|
|
655
645
|
|
|
656
|
-
declare const useMarkdownContext: () => MarkdownContextType;
|
|
657
|
-
|
|
658
|
-
declare const SourceAnnotation: ({ annotation, markdownContext, children, }: {
|
|
659
|
-
annotation: OpenAI.Beta.Threads.Messages.Annotation;
|
|
660
|
-
markdownContext: ReturnType<typeof useMarkdownContext>;
|
|
661
|
-
children: React.ReactNode;
|
|
662
|
-
}) => react_jsx_runtime.JSX.Element | null;
|
|
663
|
-
|
|
664
646
|
declare const AssistantAvatarContext: react.Context<react_jsx_runtime.JSX.Element>;
|
|
665
647
|
|
|
666
648
|
declare const AssistantNameContext: react.Context<string>;
|
|
@@ -738,4 +720,4 @@ type Args = {
|
|
|
738
720
|
};
|
|
739
721
|
declare const AssistantProvider: ({ children, }: Args) => react_jsx_runtime.JSX.Element;
|
|
740
722
|
|
|
741
|
-
export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext,
|
|
723
|
+
export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext, MarkdownProvider, RunStep, Suggestions, SuperinterfaceProvider, Thread, ThreadDialog, ThreadDialogContext, UserAvatarContext, useAssistant, useAudioThreadContext, useComponents, useCreateMessage, useIsMutatingMessage, useLatestMessage, useMessageContext, useMessageFormContext, useMessages, useSuperinterfaceContext, useSuperinterfaceContext as useThreadContext, useThreadDialogContext };
|
package/dist/index.d.ts
CHANGED
|
@@ -10,9 +10,11 @@ import { Dispatch, SetStateAction } from 'react';
|
|
|
10
10
|
import * as openai_resources from 'openai/resources';
|
|
11
11
|
import * as react_use_audio_player from 'react-use-audio-player';
|
|
12
12
|
import { UseAudioCaptureProps } from 'use-audio-capture';
|
|
13
|
+
import { M as MarkdownContextType } from './index-CmzywRJS.js';
|
|
14
|
+
export { a as MarkdownContext, u as useMarkdownContext } from './index-CmzywRJS.js';
|
|
13
15
|
import OpenAI from 'openai';
|
|
14
|
-
import remarkGfm from 'remark-gfm';
|
|
15
16
|
import * as openai_resources_beta_threads_runs_steps from 'openai/resources/beta/threads/runs/steps';
|
|
17
|
+
import 'remark-gfm';
|
|
16
18
|
|
|
17
19
|
type Args$a = {
|
|
18
20
|
children: React.ReactNode;
|
|
@@ -637,30 +639,10 @@ declare const Suggestions: {
|
|
|
637
639
|
};
|
|
638
640
|
};
|
|
639
641
|
|
|
640
|
-
declare const components: Record<string, any>;
|
|
641
|
-
|
|
642
|
-
declare const getRemarkPlugins: ({ content, }: {
|
|
643
|
-
content: OpenAI.Beta.Threads.Messages.TextContentBlock;
|
|
644
|
-
}) => ((() => (tree: any) => void) | typeof remarkGfm)[];
|
|
645
|
-
|
|
646
|
-
type MarkdownContextType = {
|
|
647
|
-
components: typeof components;
|
|
648
|
-
getRemarkPlugins: typeof getRemarkPlugins;
|
|
649
|
-
};
|
|
650
|
-
declare const MarkdownContext: react.Context<MarkdownContextType>;
|
|
651
|
-
|
|
652
642
|
declare const MarkdownProvider: ({ children, ...rest }: {
|
|
653
643
|
children: React.ReactNode;
|
|
654
644
|
} & Partial<MarkdownContextType>) => react_jsx_runtime.JSX.Element;
|
|
655
645
|
|
|
656
|
-
declare const useMarkdownContext: () => MarkdownContextType;
|
|
657
|
-
|
|
658
|
-
declare const SourceAnnotation: ({ annotation, markdownContext, children, }: {
|
|
659
|
-
annotation: OpenAI.Beta.Threads.Messages.Annotation;
|
|
660
|
-
markdownContext: ReturnType<typeof useMarkdownContext>;
|
|
661
|
-
children: React.ReactNode;
|
|
662
|
-
}) => react_jsx_runtime.JSX.Element | null;
|
|
663
|
-
|
|
664
646
|
declare const AssistantAvatarContext: react.Context<react_jsx_runtime.JSX.Element>;
|
|
665
647
|
|
|
666
648
|
declare const AssistantNameContext: react.Context<string>;
|
|
@@ -738,4 +720,4 @@ type Args = {
|
|
|
738
720
|
};
|
|
739
721
|
declare const AssistantProvider: ({ children, }: Args) => react_jsx_runtime.JSX.Element;
|
|
740
722
|
|
|
741
|
-
export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext,
|
|
723
|
+
export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext, MarkdownProvider, RunStep, Suggestions, SuperinterfaceProvider, Thread, ThreadDialog, ThreadDialogContext, UserAvatarContext, useAssistant, useAudioThreadContext, useComponents, useCreateMessage, useIsMutatingMessage, useLatestMessage, useMessageContext, useMessageFormContext, useMessages, useSuperinterfaceContext, useSuperinterfaceContext as useThreadContext, useThreadDialogContext };
|