@superinterface/react 3.5.0 → 3.5.1
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/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -67
- package/dist/index.d.ts +15 -67
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -8,8 +8,8 @@ import * as _tanstack_query_core from '@tanstack/query-core';
|
|
|
8
8
|
import * as react from 'react';
|
|
9
9
|
import { Dispatch, SetStateAction } from 'react';
|
|
10
10
|
import * as openai_resources from 'openai/resources';
|
|
11
|
-
import * as remark_gfm from 'remark-gfm';
|
|
12
11
|
import OpenAI from 'openai';
|
|
12
|
+
import remarkGfm from 'remark-gfm';
|
|
13
13
|
import * as openai_resources_beta_threads_runs_steps from 'openai/resources/beta/threads/runs/steps';
|
|
14
14
|
|
|
15
15
|
type Args$9 = {
|
|
@@ -569,75 +569,23 @@ declare const Suggestions: {
|
|
|
569
569
|
};
|
|
570
570
|
};
|
|
571
571
|
|
|
572
|
-
declare const
|
|
573
|
-
components: {
|
|
574
|
-
p: ({ children }: JSX.IntrinsicElements["p"]) => react_jsx_runtime.JSX.Element;
|
|
575
|
-
a: ({ children, href, download, target, }: react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>) => react_jsx_runtime.JSX.Element;
|
|
576
|
-
strong: ({ children }: JSX.IntrinsicElements["strong"]) => react_jsx_runtime.JSX.Element;
|
|
577
|
-
ul: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;
|
|
578
|
-
ol: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;
|
|
579
|
-
li: ({ children }: JSX.IntrinsicElements["li"]) => react_jsx_runtime.JSX.Element;
|
|
580
|
-
pre: ({ children }: JSX.IntrinsicElements["pre"]) => react_jsx_runtime.JSX.Element;
|
|
581
|
-
code: ({ children, className, }: JSX.IntrinsicElements["code"]) => react_jsx_runtime.JSX.Element;
|
|
582
|
-
img: (props: JSX.IntrinsicElements["img"]) => react_jsx_runtime.JSX.Element;
|
|
583
|
-
annotation: ({ annotation, children, }: {
|
|
584
|
-
annotation: openai_resources_beta_threads_messages.Annotation;
|
|
585
|
-
children: React.ReactNode;
|
|
586
|
-
}) => react_jsx_runtime.JSX.Element | null;
|
|
587
|
-
h1: (props: JSX.IntrinsicElements["h1"]) => react_jsx_runtime.JSX.Element;
|
|
588
|
-
h2: (props: JSX.IntrinsicElements["h2"]) => react_jsx_runtime.JSX.Element;
|
|
589
|
-
h3: (props: JSX.IntrinsicElements["h3"]) => react_jsx_runtime.JSX.Element;
|
|
590
|
-
h4: (props: JSX.IntrinsicElements["h4"]) => react_jsx_runtime.JSX.Element;
|
|
591
|
-
h5: (props: JSX.IntrinsicElements["h5"]) => react_jsx_runtime.JSX.Element;
|
|
592
|
-
h6: (props: JSX.IntrinsicElements["h6"]) => react_jsx_runtime.JSX.Element;
|
|
593
|
-
table: (props: JSX.IntrinsicElements["table"]) => react_jsx_runtime.JSX.Element;
|
|
594
|
-
thead: (props: JSX.IntrinsicElements["thead"]) => react_jsx_runtime.JSX.Element;
|
|
595
|
-
tbody: (props: JSX.IntrinsicElements["tbody"]) => react_jsx_runtime.JSX.Element;
|
|
596
|
-
tr: (props: JSX.IntrinsicElements["tr"]) => react_jsx_runtime.JSX.Element;
|
|
597
|
-
td: ({ width, ...rest }: JSX.IntrinsicElements["td"]) => react_jsx_runtime.JSX.Element;
|
|
598
|
-
th: (props: JSX.IntrinsicElements["th"]) => react_jsx_runtime.JSX.Element;
|
|
599
|
-
};
|
|
600
|
-
getRemarkPlugins: ({ content, }: {
|
|
601
|
-
content: openai_resources_beta_threads_messages.TextContentBlock;
|
|
602
|
-
}) => ((() => (tree: any) => void) | typeof remark_gfm.default)[];
|
|
603
|
-
}>;
|
|
572
|
+
declare const components: Record<string, any>;
|
|
604
573
|
|
|
605
|
-
declare const
|
|
606
|
-
|
|
607
|
-
}) =>
|
|
574
|
+
declare const getRemarkPlugins: ({ content, }: {
|
|
575
|
+
content: OpenAI.Beta.Threads.Messages.TextContentBlock;
|
|
576
|
+
}) => ((() => (tree: any) => void) | typeof remarkGfm)[];
|
|
608
577
|
|
|
609
|
-
|
|
610
|
-
components:
|
|
611
|
-
|
|
612
|
-
a: ({ children, href, download, target, }: react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>) => react_jsx_runtime.JSX.Element;
|
|
613
|
-
strong: ({ children }: JSX.IntrinsicElements["strong"]) => react_jsx_runtime.JSX.Element;
|
|
614
|
-
ul: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;
|
|
615
|
-
ol: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;
|
|
616
|
-
li: ({ children }: JSX.IntrinsicElements["li"]) => react_jsx_runtime.JSX.Element;
|
|
617
|
-
pre: ({ children }: JSX.IntrinsicElements["pre"]) => react_jsx_runtime.JSX.Element;
|
|
618
|
-
code: ({ children, className, }: JSX.IntrinsicElements["code"]) => react_jsx_runtime.JSX.Element;
|
|
619
|
-
img: (props: JSX.IntrinsicElements["img"]) => react_jsx_runtime.JSX.Element;
|
|
620
|
-
annotation: ({ annotation, children, }: {
|
|
621
|
-
annotation: openai_resources_beta_threads_messages.Annotation;
|
|
622
|
-
children: React.ReactNode;
|
|
623
|
-
}) => react_jsx_runtime.JSX.Element | null;
|
|
624
|
-
h1: (props: JSX.IntrinsicElements["h1"]) => react_jsx_runtime.JSX.Element;
|
|
625
|
-
h2: (props: JSX.IntrinsicElements["h2"]) => react_jsx_runtime.JSX.Element;
|
|
626
|
-
h3: (props: JSX.IntrinsicElements["h3"]) => react_jsx_runtime.JSX.Element;
|
|
627
|
-
h4: (props: JSX.IntrinsicElements["h4"]) => react_jsx_runtime.JSX.Element;
|
|
628
|
-
h5: (props: JSX.IntrinsicElements["h5"]) => react_jsx_runtime.JSX.Element;
|
|
629
|
-
h6: (props: JSX.IntrinsicElements["h6"]) => react_jsx_runtime.JSX.Element;
|
|
630
|
-
table: (props: JSX.IntrinsicElements["table"]) => react_jsx_runtime.JSX.Element;
|
|
631
|
-
thead: (props: JSX.IntrinsicElements["thead"]) => react_jsx_runtime.JSX.Element;
|
|
632
|
-
tbody: (props: JSX.IntrinsicElements["tbody"]) => react_jsx_runtime.JSX.Element;
|
|
633
|
-
tr: (props: JSX.IntrinsicElements["tr"]) => react_jsx_runtime.JSX.Element;
|
|
634
|
-
td: ({ width, ...rest }: JSX.IntrinsicElements["td"]) => react_jsx_runtime.JSX.Element;
|
|
635
|
-
th: (props: JSX.IntrinsicElements["th"]) => react_jsx_runtime.JSX.Element;
|
|
636
|
-
};
|
|
637
|
-
getRemarkPlugins: ({ content, }: {
|
|
638
|
-
content: openai_resources_beta_threads_messages.TextContentBlock;
|
|
639
|
-
}) => ((() => (tree: any) => void) | typeof remark_gfm.default)[];
|
|
578
|
+
type MarkdownContextType = {
|
|
579
|
+
components: typeof components;
|
|
580
|
+
getRemarkPlugins: typeof getRemarkPlugins;
|
|
640
581
|
};
|
|
582
|
+
declare const MarkdownContext: react.Context<MarkdownContextType>;
|
|
583
|
+
|
|
584
|
+
declare const MarkdownProvider: ({ children, components, ...rest }: {
|
|
585
|
+
children: React.ReactNode;
|
|
586
|
+
} & Partial<MarkdownContextType>) => react_jsx_runtime.JSX.Element;
|
|
587
|
+
|
|
588
|
+
declare const useMarkdownContext: () => MarkdownContextType;
|
|
641
589
|
|
|
642
590
|
declare const AssistantAvatarContext: react.Context<react_jsx_runtime.JSX.Element>;
|
|
643
591
|
|
package/dist/index.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ import * as _tanstack_query_core from '@tanstack/query-core';
|
|
|
8
8
|
import * as react from 'react';
|
|
9
9
|
import { Dispatch, SetStateAction } from 'react';
|
|
10
10
|
import * as openai_resources from 'openai/resources';
|
|
11
|
-
import * as remark_gfm from 'remark-gfm';
|
|
12
11
|
import OpenAI from 'openai';
|
|
12
|
+
import remarkGfm from 'remark-gfm';
|
|
13
13
|
import * as openai_resources_beta_threads_runs_steps from 'openai/resources/beta/threads/runs/steps';
|
|
14
14
|
|
|
15
15
|
type Args$9 = {
|
|
@@ -569,75 +569,23 @@ declare const Suggestions: {
|
|
|
569
569
|
};
|
|
570
570
|
};
|
|
571
571
|
|
|
572
|
-
declare const
|
|
573
|
-
components: {
|
|
574
|
-
p: ({ children }: JSX.IntrinsicElements["p"]) => react_jsx_runtime.JSX.Element;
|
|
575
|
-
a: ({ children, href, download, target, }: react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>) => react_jsx_runtime.JSX.Element;
|
|
576
|
-
strong: ({ children }: JSX.IntrinsicElements["strong"]) => react_jsx_runtime.JSX.Element;
|
|
577
|
-
ul: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;
|
|
578
|
-
ol: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;
|
|
579
|
-
li: ({ children }: JSX.IntrinsicElements["li"]) => react_jsx_runtime.JSX.Element;
|
|
580
|
-
pre: ({ children }: JSX.IntrinsicElements["pre"]) => react_jsx_runtime.JSX.Element;
|
|
581
|
-
code: ({ children, className, }: JSX.IntrinsicElements["code"]) => react_jsx_runtime.JSX.Element;
|
|
582
|
-
img: (props: JSX.IntrinsicElements["img"]) => react_jsx_runtime.JSX.Element;
|
|
583
|
-
annotation: ({ annotation, children, }: {
|
|
584
|
-
annotation: openai_resources_beta_threads_messages.Annotation;
|
|
585
|
-
children: React.ReactNode;
|
|
586
|
-
}) => react_jsx_runtime.JSX.Element | null;
|
|
587
|
-
h1: (props: JSX.IntrinsicElements["h1"]) => react_jsx_runtime.JSX.Element;
|
|
588
|
-
h2: (props: JSX.IntrinsicElements["h2"]) => react_jsx_runtime.JSX.Element;
|
|
589
|
-
h3: (props: JSX.IntrinsicElements["h3"]) => react_jsx_runtime.JSX.Element;
|
|
590
|
-
h4: (props: JSX.IntrinsicElements["h4"]) => react_jsx_runtime.JSX.Element;
|
|
591
|
-
h5: (props: JSX.IntrinsicElements["h5"]) => react_jsx_runtime.JSX.Element;
|
|
592
|
-
h6: (props: JSX.IntrinsicElements["h6"]) => react_jsx_runtime.JSX.Element;
|
|
593
|
-
table: (props: JSX.IntrinsicElements["table"]) => react_jsx_runtime.JSX.Element;
|
|
594
|
-
thead: (props: JSX.IntrinsicElements["thead"]) => react_jsx_runtime.JSX.Element;
|
|
595
|
-
tbody: (props: JSX.IntrinsicElements["tbody"]) => react_jsx_runtime.JSX.Element;
|
|
596
|
-
tr: (props: JSX.IntrinsicElements["tr"]) => react_jsx_runtime.JSX.Element;
|
|
597
|
-
td: ({ width, ...rest }: JSX.IntrinsicElements["td"]) => react_jsx_runtime.JSX.Element;
|
|
598
|
-
th: (props: JSX.IntrinsicElements["th"]) => react_jsx_runtime.JSX.Element;
|
|
599
|
-
};
|
|
600
|
-
getRemarkPlugins: ({ content, }: {
|
|
601
|
-
content: openai_resources_beta_threads_messages.TextContentBlock;
|
|
602
|
-
}) => ((() => (tree: any) => void) | typeof remark_gfm.default)[];
|
|
603
|
-
}>;
|
|
572
|
+
declare const components: Record<string, any>;
|
|
604
573
|
|
|
605
|
-
declare const
|
|
606
|
-
|
|
607
|
-
}) =>
|
|
574
|
+
declare const getRemarkPlugins: ({ content, }: {
|
|
575
|
+
content: OpenAI.Beta.Threads.Messages.TextContentBlock;
|
|
576
|
+
}) => ((() => (tree: any) => void) | typeof remarkGfm)[];
|
|
608
577
|
|
|
609
|
-
|
|
610
|
-
components:
|
|
611
|
-
|
|
612
|
-
a: ({ children, href, download, target, }: react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>) => react_jsx_runtime.JSX.Element;
|
|
613
|
-
strong: ({ children }: JSX.IntrinsicElements["strong"]) => react_jsx_runtime.JSX.Element;
|
|
614
|
-
ul: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;
|
|
615
|
-
ol: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;
|
|
616
|
-
li: ({ children }: JSX.IntrinsicElements["li"]) => react_jsx_runtime.JSX.Element;
|
|
617
|
-
pre: ({ children }: JSX.IntrinsicElements["pre"]) => react_jsx_runtime.JSX.Element;
|
|
618
|
-
code: ({ children, className, }: JSX.IntrinsicElements["code"]) => react_jsx_runtime.JSX.Element;
|
|
619
|
-
img: (props: JSX.IntrinsicElements["img"]) => react_jsx_runtime.JSX.Element;
|
|
620
|
-
annotation: ({ annotation, children, }: {
|
|
621
|
-
annotation: openai_resources_beta_threads_messages.Annotation;
|
|
622
|
-
children: React.ReactNode;
|
|
623
|
-
}) => react_jsx_runtime.JSX.Element | null;
|
|
624
|
-
h1: (props: JSX.IntrinsicElements["h1"]) => react_jsx_runtime.JSX.Element;
|
|
625
|
-
h2: (props: JSX.IntrinsicElements["h2"]) => react_jsx_runtime.JSX.Element;
|
|
626
|
-
h3: (props: JSX.IntrinsicElements["h3"]) => react_jsx_runtime.JSX.Element;
|
|
627
|
-
h4: (props: JSX.IntrinsicElements["h4"]) => react_jsx_runtime.JSX.Element;
|
|
628
|
-
h5: (props: JSX.IntrinsicElements["h5"]) => react_jsx_runtime.JSX.Element;
|
|
629
|
-
h6: (props: JSX.IntrinsicElements["h6"]) => react_jsx_runtime.JSX.Element;
|
|
630
|
-
table: (props: JSX.IntrinsicElements["table"]) => react_jsx_runtime.JSX.Element;
|
|
631
|
-
thead: (props: JSX.IntrinsicElements["thead"]) => react_jsx_runtime.JSX.Element;
|
|
632
|
-
tbody: (props: JSX.IntrinsicElements["tbody"]) => react_jsx_runtime.JSX.Element;
|
|
633
|
-
tr: (props: JSX.IntrinsicElements["tr"]) => react_jsx_runtime.JSX.Element;
|
|
634
|
-
td: ({ width, ...rest }: JSX.IntrinsicElements["td"]) => react_jsx_runtime.JSX.Element;
|
|
635
|
-
th: (props: JSX.IntrinsicElements["th"]) => react_jsx_runtime.JSX.Element;
|
|
636
|
-
};
|
|
637
|
-
getRemarkPlugins: ({ content, }: {
|
|
638
|
-
content: openai_resources_beta_threads_messages.TextContentBlock;
|
|
639
|
-
}) => ((() => (tree: any) => void) | typeof remark_gfm.default)[];
|
|
578
|
+
type MarkdownContextType = {
|
|
579
|
+
components: typeof components;
|
|
580
|
+
getRemarkPlugins: typeof getRemarkPlugins;
|
|
640
581
|
};
|
|
582
|
+
declare const MarkdownContext: react.Context<MarkdownContextType>;
|
|
583
|
+
|
|
584
|
+
declare const MarkdownProvider: ({ children, components, ...rest }: {
|
|
585
|
+
children: React.ReactNode;
|
|
586
|
+
} & Partial<MarkdownContextType>) => react_jsx_runtime.JSX.Element;
|
|
587
|
+
|
|
588
|
+
declare const useMarkdownContext: () => MarkdownContextType;
|
|
641
589
|
|
|
642
590
|
declare const AssistantAvatarContext: react.Context<react_jsx_runtime.JSX.Element>;
|
|
643
591
|
|
package/dist/index.js
CHANGED
|
@@ -5602,8 +5602,9 @@ AudioThreadDialog.Content = Content7;
|
|
|
5602
5602
|
import { useMemo as useMemo18 } from "react";
|
|
5603
5603
|
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
5604
5604
|
var MarkdownProvider = function(_param) {
|
|
5605
|
-
var children = _param.children, rest = _object_without_properties(_param, [
|
|
5606
|
-
"children"
|
|
5605
|
+
var children = _param.children, components2 = _param.components, rest = _object_without_properties(_param, [
|
|
5606
|
+
"children",
|
|
5607
|
+
"components"
|
|
5607
5608
|
]);
|
|
5608
5609
|
var prevMarkdownContext = useMarkdownContext();
|
|
5609
5610
|
var value = useMemo18(function() {
|