@june-ai/june-ui 0.2.11 → 0.2.13
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/{chunk-TD6GKOUR.cjs → chunk-NMTAZCQD.cjs} +199 -10
- package/dist/{chunk-2TBT4VRQ.js → chunk-SZ47R4Z5.js} +200 -11
- package/dist/entry-core.cjs +18 -2
- package/dist/entry-core.d.cts +59 -3
- package/dist/entry-core.d.ts +59 -3
- package/dist/entry-core.js +19 -3
- package/dist/index.cjs +25 -7
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +22 -4
- package/dist/june.css +227 -2
- package/package.json +1 -1
package/dist/entry-core.d.cts
CHANGED
|
@@ -769,7 +769,7 @@ declare const JuneDocumentEditorComponent: _openuidev_react_lang.DefinedComponen
|
|
|
769
769
|
"side-panel": "side-panel";
|
|
770
770
|
}>>;
|
|
771
771
|
}, z.core.$strip>>;
|
|
772
|
-
type Extendable = Library & {
|
|
772
|
+
type Extendable$2 = Library & {
|
|
773
773
|
extend: NonNullable<Library["extend"]>;
|
|
774
774
|
};
|
|
775
775
|
/**
|
|
@@ -778,7 +778,7 @@ type Extendable = Library & {
|
|
|
778
778
|
* `util.mergeDefs`, and OpenUI's slot clone calls that, so the slot step is skipped
|
|
779
779
|
* there. The component is still registered and can be rendered.
|
|
780
780
|
*/
|
|
781
|
-
declare function withDocumentEditor(library: Extendable): Required<_openuidev_lang_core.Library<_openuidev_react_lang.ComponentRenderer<any>, _openuidev_lang_core.DefinedAction<any, string>>>;
|
|
781
|
+
declare function withDocumentEditor(library: Extendable$2): Required<_openuidev_lang_core.Library<_openuidev_react_lang.ComponentRenderer<any>, _openuidev_lang_core.DefinedAction<any, string>>>;
|
|
782
782
|
|
|
783
783
|
declare const JuneDocumentContext: react.Context<JuneDocumentOptions>;
|
|
784
784
|
/** App-wide `documentEditor` config from JuneUI. Empty when the app did not set one. */
|
|
@@ -949,6 +949,44 @@ interface ToolApprovalProps {
|
|
|
949
949
|
*/
|
|
950
950
|
declare function ToolApproval({ request, status, onDecide, disabled, error, labels: labelOverrides, renderArguments, className, }: ToolApprovalProps): react.JSX.Element;
|
|
951
951
|
|
|
952
|
+
declare const cardProps: z.ZodObject<{
|
|
953
|
+
agent: z.ZodString;
|
|
954
|
+
tool: z.ZodString;
|
|
955
|
+
sideEffect: z.ZodOptional<z.ZodEnum<{
|
|
956
|
+
read: "read";
|
|
957
|
+
write: "write";
|
|
958
|
+
destructive: "destructive";
|
|
959
|
+
}>>;
|
|
960
|
+
risk: z.ZodOptional<z.ZodEnum<{
|
|
961
|
+
medium: "medium";
|
|
962
|
+
high: "high";
|
|
963
|
+
low: "low";
|
|
964
|
+
}>>;
|
|
965
|
+
}, z.core.$strip>;
|
|
966
|
+
type ToolApprovalCardProps = z.infer<typeof cardProps>;
|
|
967
|
+
declare const TOOL_APPROVAL_CARD_DESCRIPTION = "Custom component. Asks the user to approve, reject, or edit a tool call before it runs. ToolApprovalCard(agent, tool, sideEffect?, risk?). Use it when an assistant wants to run a tool that needs the user's decision.";
|
|
968
|
+
/** Approval card the model can place in a response. Buttons fire the existing action pipeline. */
|
|
969
|
+
declare function ToolApprovalCard({ agent, tool, sideEffect, risk }: ToolApprovalCardProps): react.JSX.Element;
|
|
970
|
+
declare const JuneToolApprovalCardComponent: JuneComponent<z.ZodObject<{
|
|
971
|
+
agent: z.ZodString;
|
|
972
|
+
tool: z.ZodString;
|
|
973
|
+
sideEffect: z.ZodOptional<z.ZodEnum<{
|
|
974
|
+
read: "read";
|
|
975
|
+
write: "write";
|
|
976
|
+
destructive: "destructive";
|
|
977
|
+
}>>;
|
|
978
|
+
risk: z.ZodOptional<z.ZodEnum<{
|
|
979
|
+
medium: "medium";
|
|
980
|
+
high: "high";
|
|
981
|
+
low: "low";
|
|
982
|
+
}>>;
|
|
983
|
+
}, z.core.$strip>>;
|
|
984
|
+
type Extendable$1 = Library & {
|
|
985
|
+
extend: NonNullable<Library["extend"]>;
|
|
986
|
+
};
|
|
987
|
+
/** Adds ToolApprovalCard to a library. Card may contain it when slot cloning succeeds. */
|
|
988
|
+
declare function withToolApprovalCard(library: Extendable$1): Required<_openuidev_lang_core.Library<_openuidev_react_lang.ComponentRenderer<any>, _openuidev_lang_core.DefinedAction<any, string>>>;
|
|
989
|
+
|
|
952
990
|
type ToolApprovalInput = Omit<ToolApprovalRequest, "id"> & {
|
|
953
991
|
id?: string;
|
|
954
992
|
};
|
|
@@ -990,6 +1028,24 @@ interface ToolApprovalListProps {
|
|
|
990
1028
|
/** Renders every request from `useToolApproval()` and wires its buttons. */
|
|
991
1029
|
declare function ToolApprovalList({ approvals, pendingOnly, renderItem, labels, className }: ToolApprovalListProps): react.JSX.Element | null;
|
|
992
1030
|
|
|
1031
|
+
declare const noticeProps: z.ZodObject<{
|
|
1032
|
+
title: z.ZodString;
|
|
1033
|
+
message: z.ZodString;
|
|
1034
|
+
}, z.core.$strip>;
|
|
1035
|
+
type RetryNoticeProps = z.infer<typeof noticeProps>;
|
|
1036
|
+
declare const RETRY_NOTICE_DESCRIPTION = "Custom component. Shows that a response failed and offers Retry. RetryNotice(title, message). Use it when the model or request could not be completed.";
|
|
1037
|
+
/** Failure notice with a Retry button. The click goes through the existing action pipeline as `retry`. */
|
|
1038
|
+
declare function RetryNotice({ title, message }: RetryNoticeProps): react.JSX.Element;
|
|
1039
|
+
declare const JuneRetryNoticeComponent: JuneComponent<z.ZodObject<{
|
|
1040
|
+
title: z.ZodString;
|
|
1041
|
+
message: z.ZodString;
|
|
1042
|
+
}, z.core.$strip>>;
|
|
1043
|
+
type Extendable = Library & {
|
|
1044
|
+
extend: NonNullable<Library["extend"]>;
|
|
1045
|
+
};
|
|
1046
|
+
/** Adds RetryNotice to a library. Card may contain it when slot cloning succeeds. */
|
|
1047
|
+
declare function withRetryNotice(library: Extendable): Required<_openuidev_lang_core.Library<_openuidev_react_lang.ComponentRenderer<any>, _openuidev_lang_core.DefinedAction<any, string>>>;
|
|
1048
|
+
|
|
993
1049
|
/**
|
|
994
1050
|
* LangGraph adapter: turns a LangGraph run stream (SSE from the LangGraph server API, e.g.
|
|
995
1051
|
* `POST /threads/{thread_id}/runs/stream`) into the plain text June renders.
|
|
@@ -1043,4 +1099,4 @@ declare function readLangGraphInterrupts(data: string, event?: string): unknown[
|
|
|
1043
1099
|
*/
|
|
1044
1100
|
declare function interruptToApprovalRequests(value: unknown, idPrefix?: string): ToolApprovalRequest[];
|
|
1045
1101
|
|
|
1046
|
-
export { ALL_EXPORT_FORMATS, type ActionEventParser, type ActionOutcome, type AnyComponentDefinition, type ApprovalChoice, type ComponentProps, ComponentRegistry, type ComponentRegistryOptions, type ConfirmAction, type ConsumeStreamOptions, DOCUMENT_COMPONENT_DESCRIPTION, type DefineComponentOptions, type DocJSON, type DocNode, DocumentBridge, type DocumentBridgeOptions, type DocumentChange, type DocumentConflict, DocumentEditor, type DocumentEditorConfig, DocumentEditorConfigContext, type DocumentEditorProps, type DocumentExportEvent, type DocumentExportFormat, type DocumentExporter, type DocumentInstructionOptions, type DocumentPresentation, type DocumentProgramUpdate, type DocumentRecord, type DocumentSavePayload, type DocumentSnapshot, type DocumentStore, type ExportContext, type ExportResult, type FallbackArgs, type FetchStreamOptions, type IncomingDocument, type JuneAction, type JuneActionContext, type JuneActionDefinition, type JuneActionMap, type JuneComponent, type JuneComponentMeta, type JuneContextValue, JuneDocumentContext, JuneDocumentEditorComponent, type JuneDocumentOptions, JuneError, JuneErrorBoundary, type JuneErrorBoundaryProps, type JuneErrorCode, type JuneErrorOptions, type JuneLibraryOptions, type JuneRenderProps, JuneRenderer, type JuneRendererProps, type JuneResolvedTheme, JuneRuntimeContext, type JuneRuntimeValue, type JuneStreamState, type JuneThemeInput, type JuneThemeMode, JuneThemeProvider, type JuneThemeProviderProps, type JuneThemeSet, type JuneThemeToken, type JuneThemeVars, type LangGraphExtractorOptions, MarkdownText, type MarkdownTextProps, type MixedContent, type MixedContentOptions, type OpenUIActionEvent, type OpenUILibrary, type OpenUIRendererProps, type ParsedActionEvent, type PendingUpdate, type ReceiveOutcome, type RegisterOptions, type ResolveChoice, type ResponseChangeInfo, type RunActionOptions, type SchemaLike, type SplitOptions, type SplitResponse, type SseOptions, type StreamChunk, type StreamSource, type StreamStarter, type StreamStatus, type TextFormat, ToolApproval, type ToolApprovalDecision, type ToolApprovalEntry, type ToolApprovalInput, type ToolApprovalLabels, ToolApprovalList, type ToolApprovalListProps, type ToolApprovalProps, type ToolApprovalRequest, type ToolApprovalStatus, type UseJuneStreamOptions, type UseJuneStreamResult, type UseToolApprovalResult, consumeStream, copyDocumentToClipboard, createActionHandler, createComponentRegistry, createDocumentStore, createJuneLibrary, createLangGraphExtractor, createTheme, darkTheme, defaultParseActionEvent, defaultToolApprovalLabels, defineComponent, defineJuneAction, defineJuneComponent, documentPanelWidth, documentPromptOptions, downloadResult, exportDocument, fetchStream, getDefaultDocumentStore, getDocumentEditorInstructions, getDocumentEditorRules, interruptToApprovalRequests, isDocumentEcho, isJuneComponent, isJuneError, isThemeSet, jsonFieldExtractor, langGraphStreamOptions, lightTheme, listDocumentExporters, mergeDocuments, messageContentToText, normalizeProgram, readDocumentFromProgram, readLangGraphInterrupts, registerDocumentExporter, rememberDocumentEcho, resolveDocumentPresentation, resolveMixedContent, resolveThemeVars, runAction, serializeDocumentsForAgent, splitResponse, sseToText, toAsyncIterable, toJuneError, updateDocumentInProgram, useDocumentBridge, useDocumentEditorConfig, useDocumentOptions, useJuneRuntime, useJuneStream, useJuneTheme, useRegistryLibrary, useResolvedTheme, useToolApproval, validateComponentDefinition, withDocumentEditor };
|
|
1102
|
+
export { ALL_EXPORT_FORMATS, type ActionEventParser, type ActionOutcome, type AnyComponentDefinition, type ApprovalChoice, type ComponentProps, ComponentRegistry, type ComponentRegistryOptions, type ConfirmAction, type ConsumeStreamOptions, DOCUMENT_COMPONENT_DESCRIPTION, type DefineComponentOptions, type DocJSON, type DocNode, DocumentBridge, type DocumentBridgeOptions, type DocumentChange, type DocumentConflict, DocumentEditor, type DocumentEditorConfig, DocumentEditorConfigContext, type DocumentEditorProps, type DocumentExportEvent, type DocumentExportFormat, type DocumentExporter, type DocumentInstructionOptions, type DocumentPresentation, type DocumentProgramUpdate, type DocumentRecord, type DocumentSavePayload, type DocumentSnapshot, type DocumentStore, type ExportContext, type ExportResult, type FallbackArgs, type FetchStreamOptions, type IncomingDocument, type JuneAction, type JuneActionContext, type JuneActionDefinition, type JuneActionMap, type JuneComponent, type JuneComponentMeta, type JuneContextValue, JuneDocumentContext, JuneDocumentEditorComponent, type JuneDocumentOptions, JuneError, JuneErrorBoundary, type JuneErrorBoundaryProps, type JuneErrorCode, type JuneErrorOptions, type JuneLibraryOptions, type JuneRenderProps, JuneRenderer, type JuneRendererProps, type JuneResolvedTheme, JuneRetryNoticeComponent, JuneRuntimeContext, type JuneRuntimeValue, type JuneStreamState, type JuneThemeInput, type JuneThemeMode, JuneThemeProvider, type JuneThemeProviderProps, type JuneThemeSet, type JuneThemeToken, type JuneThemeVars, JuneToolApprovalCardComponent, type LangGraphExtractorOptions, MarkdownText, type MarkdownTextProps, type MixedContent, type MixedContentOptions, type OpenUIActionEvent, type OpenUILibrary, type OpenUIRendererProps, type ParsedActionEvent, type PendingUpdate, RETRY_NOTICE_DESCRIPTION, type ReceiveOutcome, type RegisterOptions, type ResolveChoice, type ResponseChangeInfo, RetryNotice, type RetryNoticeProps, type RunActionOptions, type SchemaLike, type SplitOptions, type SplitResponse, type SseOptions, type StreamChunk, type StreamSource, type StreamStarter, type StreamStatus, TOOL_APPROVAL_CARD_DESCRIPTION, type TextFormat, ToolApproval, ToolApprovalCard, type ToolApprovalCardProps, type ToolApprovalDecision, type ToolApprovalEntry, type ToolApprovalInput, type ToolApprovalLabels, ToolApprovalList, type ToolApprovalListProps, type ToolApprovalProps, type ToolApprovalRequest, type ToolApprovalStatus, type UseJuneStreamOptions, type UseJuneStreamResult, type UseToolApprovalResult, consumeStream, copyDocumentToClipboard, createActionHandler, createComponentRegistry, createDocumentStore, createJuneLibrary, createLangGraphExtractor, createTheme, darkTheme, defaultParseActionEvent, defaultToolApprovalLabels, defineComponent, defineJuneAction, defineJuneComponent, documentPanelWidth, documentPromptOptions, downloadResult, exportDocument, fetchStream, getDefaultDocumentStore, getDocumentEditorInstructions, getDocumentEditorRules, interruptToApprovalRequests, isDocumentEcho, isJuneComponent, isJuneError, isThemeSet, jsonFieldExtractor, langGraphStreamOptions, lightTheme, listDocumentExporters, mergeDocuments, messageContentToText, normalizeProgram, readDocumentFromProgram, readLangGraphInterrupts, registerDocumentExporter, rememberDocumentEcho, resolveDocumentPresentation, resolveMixedContent, resolveThemeVars, runAction, serializeDocumentsForAgent, splitResponse, sseToText, toAsyncIterable, toJuneError, updateDocumentInProgram, useDocumentBridge, useDocumentEditorConfig, useDocumentOptions, useJuneRuntime, useJuneStream, useJuneTheme, useRegistryLibrary, useResolvedTheme, useToolApproval, validateComponentDefinition, withDocumentEditor, withRetryNotice, withToolApprovalCard };
|
package/dist/entry-core.d.ts
CHANGED
|
@@ -769,7 +769,7 @@ declare const JuneDocumentEditorComponent: _openuidev_react_lang.DefinedComponen
|
|
|
769
769
|
"side-panel": "side-panel";
|
|
770
770
|
}>>;
|
|
771
771
|
}, z.core.$strip>>;
|
|
772
|
-
type Extendable = Library & {
|
|
772
|
+
type Extendable$2 = Library & {
|
|
773
773
|
extend: NonNullable<Library["extend"]>;
|
|
774
774
|
};
|
|
775
775
|
/**
|
|
@@ -778,7 +778,7 @@ type Extendable = Library & {
|
|
|
778
778
|
* `util.mergeDefs`, and OpenUI's slot clone calls that, so the slot step is skipped
|
|
779
779
|
* there. The component is still registered and can be rendered.
|
|
780
780
|
*/
|
|
781
|
-
declare function withDocumentEditor(library: Extendable): Required<_openuidev_lang_core.Library<_openuidev_react_lang.ComponentRenderer<any>, _openuidev_lang_core.DefinedAction<any, string>>>;
|
|
781
|
+
declare function withDocumentEditor(library: Extendable$2): Required<_openuidev_lang_core.Library<_openuidev_react_lang.ComponentRenderer<any>, _openuidev_lang_core.DefinedAction<any, string>>>;
|
|
782
782
|
|
|
783
783
|
declare const JuneDocumentContext: react.Context<JuneDocumentOptions>;
|
|
784
784
|
/** App-wide `documentEditor` config from JuneUI. Empty when the app did not set one. */
|
|
@@ -949,6 +949,44 @@ interface ToolApprovalProps {
|
|
|
949
949
|
*/
|
|
950
950
|
declare function ToolApproval({ request, status, onDecide, disabled, error, labels: labelOverrides, renderArguments, className, }: ToolApprovalProps): react.JSX.Element;
|
|
951
951
|
|
|
952
|
+
declare const cardProps: z.ZodObject<{
|
|
953
|
+
agent: z.ZodString;
|
|
954
|
+
tool: z.ZodString;
|
|
955
|
+
sideEffect: z.ZodOptional<z.ZodEnum<{
|
|
956
|
+
read: "read";
|
|
957
|
+
write: "write";
|
|
958
|
+
destructive: "destructive";
|
|
959
|
+
}>>;
|
|
960
|
+
risk: z.ZodOptional<z.ZodEnum<{
|
|
961
|
+
medium: "medium";
|
|
962
|
+
high: "high";
|
|
963
|
+
low: "low";
|
|
964
|
+
}>>;
|
|
965
|
+
}, z.core.$strip>;
|
|
966
|
+
type ToolApprovalCardProps = z.infer<typeof cardProps>;
|
|
967
|
+
declare const TOOL_APPROVAL_CARD_DESCRIPTION = "Custom component. Asks the user to approve, reject, or edit a tool call before it runs. ToolApprovalCard(agent, tool, sideEffect?, risk?). Use it when an assistant wants to run a tool that needs the user's decision.";
|
|
968
|
+
/** Approval card the model can place in a response. Buttons fire the existing action pipeline. */
|
|
969
|
+
declare function ToolApprovalCard({ agent, tool, sideEffect, risk }: ToolApprovalCardProps): react.JSX.Element;
|
|
970
|
+
declare const JuneToolApprovalCardComponent: JuneComponent<z.ZodObject<{
|
|
971
|
+
agent: z.ZodString;
|
|
972
|
+
tool: z.ZodString;
|
|
973
|
+
sideEffect: z.ZodOptional<z.ZodEnum<{
|
|
974
|
+
read: "read";
|
|
975
|
+
write: "write";
|
|
976
|
+
destructive: "destructive";
|
|
977
|
+
}>>;
|
|
978
|
+
risk: z.ZodOptional<z.ZodEnum<{
|
|
979
|
+
medium: "medium";
|
|
980
|
+
high: "high";
|
|
981
|
+
low: "low";
|
|
982
|
+
}>>;
|
|
983
|
+
}, z.core.$strip>>;
|
|
984
|
+
type Extendable$1 = Library & {
|
|
985
|
+
extend: NonNullable<Library["extend"]>;
|
|
986
|
+
};
|
|
987
|
+
/** Adds ToolApprovalCard to a library. Card may contain it when slot cloning succeeds. */
|
|
988
|
+
declare function withToolApprovalCard(library: Extendable$1): Required<_openuidev_lang_core.Library<_openuidev_react_lang.ComponentRenderer<any>, _openuidev_lang_core.DefinedAction<any, string>>>;
|
|
989
|
+
|
|
952
990
|
type ToolApprovalInput = Omit<ToolApprovalRequest, "id"> & {
|
|
953
991
|
id?: string;
|
|
954
992
|
};
|
|
@@ -990,6 +1028,24 @@ interface ToolApprovalListProps {
|
|
|
990
1028
|
/** Renders every request from `useToolApproval()` and wires its buttons. */
|
|
991
1029
|
declare function ToolApprovalList({ approvals, pendingOnly, renderItem, labels, className }: ToolApprovalListProps): react.JSX.Element | null;
|
|
992
1030
|
|
|
1031
|
+
declare const noticeProps: z.ZodObject<{
|
|
1032
|
+
title: z.ZodString;
|
|
1033
|
+
message: z.ZodString;
|
|
1034
|
+
}, z.core.$strip>;
|
|
1035
|
+
type RetryNoticeProps = z.infer<typeof noticeProps>;
|
|
1036
|
+
declare const RETRY_NOTICE_DESCRIPTION = "Custom component. Shows that a response failed and offers Retry. RetryNotice(title, message). Use it when the model or request could not be completed.";
|
|
1037
|
+
/** Failure notice with a Retry button. The click goes through the existing action pipeline as `retry`. */
|
|
1038
|
+
declare function RetryNotice({ title, message }: RetryNoticeProps): react.JSX.Element;
|
|
1039
|
+
declare const JuneRetryNoticeComponent: JuneComponent<z.ZodObject<{
|
|
1040
|
+
title: z.ZodString;
|
|
1041
|
+
message: z.ZodString;
|
|
1042
|
+
}, z.core.$strip>>;
|
|
1043
|
+
type Extendable = Library & {
|
|
1044
|
+
extend: NonNullable<Library["extend"]>;
|
|
1045
|
+
};
|
|
1046
|
+
/** Adds RetryNotice to a library. Card may contain it when slot cloning succeeds. */
|
|
1047
|
+
declare function withRetryNotice(library: Extendable): Required<_openuidev_lang_core.Library<_openuidev_react_lang.ComponentRenderer<any>, _openuidev_lang_core.DefinedAction<any, string>>>;
|
|
1048
|
+
|
|
993
1049
|
/**
|
|
994
1050
|
* LangGraph adapter: turns a LangGraph run stream (SSE from the LangGraph server API, e.g.
|
|
995
1051
|
* `POST /threads/{thread_id}/runs/stream`) into the plain text June renders.
|
|
@@ -1043,4 +1099,4 @@ declare function readLangGraphInterrupts(data: string, event?: string): unknown[
|
|
|
1043
1099
|
*/
|
|
1044
1100
|
declare function interruptToApprovalRequests(value: unknown, idPrefix?: string): ToolApprovalRequest[];
|
|
1045
1101
|
|
|
1046
|
-
export { ALL_EXPORT_FORMATS, type ActionEventParser, type ActionOutcome, type AnyComponentDefinition, type ApprovalChoice, type ComponentProps, ComponentRegistry, type ComponentRegistryOptions, type ConfirmAction, type ConsumeStreamOptions, DOCUMENT_COMPONENT_DESCRIPTION, type DefineComponentOptions, type DocJSON, type DocNode, DocumentBridge, type DocumentBridgeOptions, type DocumentChange, type DocumentConflict, DocumentEditor, type DocumentEditorConfig, DocumentEditorConfigContext, type DocumentEditorProps, type DocumentExportEvent, type DocumentExportFormat, type DocumentExporter, type DocumentInstructionOptions, type DocumentPresentation, type DocumentProgramUpdate, type DocumentRecord, type DocumentSavePayload, type DocumentSnapshot, type DocumentStore, type ExportContext, type ExportResult, type FallbackArgs, type FetchStreamOptions, type IncomingDocument, type JuneAction, type JuneActionContext, type JuneActionDefinition, type JuneActionMap, type JuneComponent, type JuneComponentMeta, type JuneContextValue, JuneDocumentContext, JuneDocumentEditorComponent, type JuneDocumentOptions, JuneError, JuneErrorBoundary, type JuneErrorBoundaryProps, type JuneErrorCode, type JuneErrorOptions, type JuneLibraryOptions, type JuneRenderProps, JuneRenderer, type JuneRendererProps, type JuneResolvedTheme, JuneRuntimeContext, type JuneRuntimeValue, type JuneStreamState, type JuneThemeInput, type JuneThemeMode, JuneThemeProvider, type JuneThemeProviderProps, type JuneThemeSet, type JuneThemeToken, type JuneThemeVars, type LangGraphExtractorOptions, MarkdownText, type MarkdownTextProps, type MixedContent, type MixedContentOptions, type OpenUIActionEvent, type OpenUILibrary, type OpenUIRendererProps, type ParsedActionEvent, type PendingUpdate, type ReceiveOutcome, type RegisterOptions, type ResolveChoice, type ResponseChangeInfo, type RunActionOptions, type SchemaLike, type SplitOptions, type SplitResponse, type SseOptions, type StreamChunk, type StreamSource, type StreamStarter, type StreamStatus, type TextFormat, ToolApproval, type ToolApprovalDecision, type ToolApprovalEntry, type ToolApprovalInput, type ToolApprovalLabels, ToolApprovalList, type ToolApprovalListProps, type ToolApprovalProps, type ToolApprovalRequest, type ToolApprovalStatus, type UseJuneStreamOptions, type UseJuneStreamResult, type UseToolApprovalResult, consumeStream, copyDocumentToClipboard, createActionHandler, createComponentRegistry, createDocumentStore, createJuneLibrary, createLangGraphExtractor, createTheme, darkTheme, defaultParseActionEvent, defaultToolApprovalLabels, defineComponent, defineJuneAction, defineJuneComponent, documentPanelWidth, documentPromptOptions, downloadResult, exportDocument, fetchStream, getDefaultDocumentStore, getDocumentEditorInstructions, getDocumentEditorRules, interruptToApprovalRequests, isDocumentEcho, isJuneComponent, isJuneError, isThemeSet, jsonFieldExtractor, langGraphStreamOptions, lightTheme, listDocumentExporters, mergeDocuments, messageContentToText, normalizeProgram, readDocumentFromProgram, readLangGraphInterrupts, registerDocumentExporter, rememberDocumentEcho, resolveDocumentPresentation, resolveMixedContent, resolveThemeVars, runAction, serializeDocumentsForAgent, splitResponse, sseToText, toAsyncIterable, toJuneError, updateDocumentInProgram, useDocumentBridge, useDocumentEditorConfig, useDocumentOptions, useJuneRuntime, useJuneStream, useJuneTheme, useRegistryLibrary, useResolvedTheme, useToolApproval, validateComponentDefinition, withDocumentEditor };
|
|
1102
|
+
export { ALL_EXPORT_FORMATS, type ActionEventParser, type ActionOutcome, type AnyComponentDefinition, type ApprovalChoice, type ComponentProps, ComponentRegistry, type ComponentRegistryOptions, type ConfirmAction, type ConsumeStreamOptions, DOCUMENT_COMPONENT_DESCRIPTION, type DefineComponentOptions, type DocJSON, type DocNode, DocumentBridge, type DocumentBridgeOptions, type DocumentChange, type DocumentConflict, DocumentEditor, type DocumentEditorConfig, DocumentEditorConfigContext, type DocumentEditorProps, type DocumentExportEvent, type DocumentExportFormat, type DocumentExporter, type DocumentInstructionOptions, type DocumentPresentation, type DocumentProgramUpdate, type DocumentRecord, type DocumentSavePayload, type DocumentSnapshot, type DocumentStore, type ExportContext, type ExportResult, type FallbackArgs, type FetchStreamOptions, type IncomingDocument, type JuneAction, type JuneActionContext, type JuneActionDefinition, type JuneActionMap, type JuneComponent, type JuneComponentMeta, type JuneContextValue, JuneDocumentContext, JuneDocumentEditorComponent, type JuneDocumentOptions, JuneError, JuneErrorBoundary, type JuneErrorBoundaryProps, type JuneErrorCode, type JuneErrorOptions, type JuneLibraryOptions, type JuneRenderProps, JuneRenderer, type JuneRendererProps, type JuneResolvedTheme, JuneRetryNoticeComponent, JuneRuntimeContext, type JuneRuntimeValue, type JuneStreamState, type JuneThemeInput, type JuneThemeMode, JuneThemeProvider, type JuneThemeProviderProps, type JuneThemeSet, type JuneThemeToken, type JuneThemeVars, JuneToolApprovalCardComponent, type LangGraphExtractorOptions, MarkdownText, type MarkdownTextProps, type MixedContent, type MixedContentOptions, type OpenUIActionEvent, type OpenUILibrary, type OpenUIRendererProps, type ParsedActionEvent, type PendingUpdate, RETRY_NOTICE_DESCRIPTION, type ReceiveOutcome, type RegisterOptions, type ResolveChoice, type ResponseChangeInfo, RetryNotice, type RetryNoticeProps, type RunActionOptions, type SchemaLike, type SplitOptions, type SplitResponse, type SseOptions, type StreamChunk, type StreamSource, type StreamStarter, type StreamStatus, TOOL_APPROVAL_CARD_DESCRIPTION, type TextFormat, ToolApproval, ToolApprovalCard, type ToolApprovalCardProps, type ToolApprovalDecision, type ToolApprovalEntry, type ToolApprovalInput, type ToolApprovalLabels, ToolApprovalList, type ToolApprovalListProps, type ToolApprovalProps, type ToolApprovalRequest, type ToolApprovalStatus, type UseJuneStreamOptions, type UseJuneStreamResult, type UseToolApprovalResult, consumeStream, copyDocumentToClipboard, createActionHandler, createComponentRegistry, createDocumentStore, createJuneLibrary, createLangGraphExtractor, createTheme, darkTheme, defaultParseActionEvent, defaultToolApprovalLabels, defineComponent, defineJuneAction, defineJuneComponent, documentPanelWidth, documentPromptOptions, downloadResult, exportDocument, fetchStream, getDefaultDocumentStore, getDocumentEditorInstructions, getDocumentEditorRules, interruptToApprovalRequests, isDocumentEcho, isJuneComponent, isJuneError, isThemeSet, jsonFieldExtractor, langGraphStreamOptions, lightTheme, listDocumentExporters, mergeDocuments, messageContentToText, normalizeProgram, readDocumentFromProgram, readLangGraphInterrupts, registerDocumentExporter, rememberDocumentEcho, resolveDocumentPresentation, resolveMixedContent, resolveThemeVars, runAction, serializeDocumentsForAgent, splitResponse, sseToText, toAsyncIterable, toJuneError, updateDocumentInProgram, useDocumentBridge, useDocumentEditorConfig, useDocumentOptions, useJuneRuntime, useJuneStream, useJuneTheme, useRegistryLibrary, useResolvedTheme, useToolApproval, validateComponentDefinition, withDocumentEditor, withRetryNotice, withToolApprovalCard };
|
package/dist/entry-core.js
CHANGED
|
@@ -10,10 +10,16 @@ import {
|
|
|
10
10
|
JuneDocumentEditorComponent,
|
|
11
11
|
JuneErrorBoundary,
|
|
12
12
|
JuneRenderer,
|
|
13
|
+
JuneRetryNoticeComponent,
|
|
13
14
|
JuneRuntimeContext,
|
|
14
15
|
JuneThemeProvider,
|
|
16
|
+
JuneToolApprovalCardComponent,
|
|
15
17
|
MarkdownText,
|
|
18
|
+
RETRY_NOTICE_DESCRIPTION,
|
|
19
|
+
RetryNotice,
|
|
20
|
+
TOOL_APPROVAL_CARD_DESCRIPTION,
|
|
16
21
|
ToolApproval,
|
|
22
|
+
ToolApprovalCard,
|
|
17
23
|
ToolApprovalList,
|
|
18
24
|
consumeStream,
|
|
19
25
|
copyDocumentToClipboard,
|
|
@@ -71,8 +77,10 @@ import {
|
|
|
71
77
|
useResolvedTheme,
|
|
72
78
|
useToolApproval,
|
|
73
79
|
validateComponentDefinition,
|
|
74
|
-
withDocumentEditor
|
|
75
|
-
|
|
80
|
+
withDocumentEditor,
|
|
81
|
+
withRetryNotice,
|
|
82
|
+
withToolApprovalCard
|
|
83
|
+
} from "./chunk-SZ47R4Z5.js";
|
|
76
84
|
import {
|
|
77
85
|
JuneError,
|
|
78
86
|
isJuneError,
|
|
@@ -90,10 +98,16 @@ export {
|
|
|
90
98
|
JuneError,
|
|
91
99
|
JuneErrorBoundary,
|
|
92
100
|
JuneRenderer,
|
|
101
|
+
JuneRetryNoticeComponent,
|
|
93
102
|
JuneRuntimeContext,
|
|
94
103
|
JuneThemeProvider,
|
|
104
|
+
JuneToolApprovalCardComponent,
|
|
95
105
|
MarkdownText,
|
|
106
|
+
RETRY_NOTICE_DESCRIPTION,
|
|
107
|
+
RetryNotice,
|
|
108
|
+
TOOL_APPROVAL_CARD_DESCRIPTION,
|
|
96
109
|
ToolApproval,
|
|
110
|
+
ToolApprovalCard,
|
|
97
111
|
ToolApprovalList,
|
|
98
112
|
consumeStream,
|
|
99
113
|
copyDocumentToClipboard,
|
|
@@ -153,5 +167,7 @@ export {
|
|
|
153
167
|
useResolvedTheme,
|
|
154
168
|
useToolApproval,
|
|
155
169
|
validateComponentDefinition,
|
|
156
|
-
withDocumentEditor
|
|
170
|
+
withDocumentEditor,
|
|
171
|
+
withRetryNotice,
|
|
172
|
+
withToolApprovalCard
|
|
157
173
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -71,7 +71,15 @@
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
var _chunkNMTAZCQDcjs = require('./chunk-NMTAZCQD.cjs');
|
|
75
83
|
|
|
76
84
|
|
|
77
85
|
|
|
@@ -107,8 +115,10 @@ function withChatLayout(library) {
|
|
|
107
115
|
}
|
|
108
116
|
});
|
|
109
117
|
}
|
|
110
|
-
var juneLibrary =
|
|
111
|
-
|
|
118
|
+
var juneLibrary = _chunkNMTAZCQDcjs.withRetryNotice.call(void 0,
|
|
119
|
+
_chunkNMTAZCQDcjs.withToolApprovalCard.call(void 0, _chunkNMTAZCQDcjs.withDocumentEditor.call(void 0, withChatLayout(_reactui.openuiChatLibrary)))
|
|
120
|
+
);
|
|
121
|
+
var defaultRegistry = _chunkNMTAZCQDcjs.createComponentRegistry.call(void 0, { base: juneLibrary });
|
|
112
122
|
function registerComponent(components, options) {
|
|
113
123
|
return defaultRegistry.register(components, options);
|
|
114
124
|
}
|
|
@@ -133,14 +143,14 @@ function useJuneUIContext() {
|
|
|
133
143
|
function JuneUI({ library, june, ...props }) {
|
|
134
144
|
const context = useJuneUIContext();
|
|
135
145
|
const instance = _nullishCoalesce(june, () => ( _optionalChain([context, 'optionalAccess', _ => _.june])));
|
|
136
|
-
const registryLibrary =
|
|
146
|
+
const registryLibrary = _chunkNMTAZCQDcjs.useRegistryLibrary.call(void 0, _nullishCoalesce(_optionalChain([instance, 'optionalAccess', _2 => _2.registry]), () => ( defaultRegistry)));
|
|
137
147
|
const merged = mergeDefined(_optionalChain([instance, 'optionalAccess', _3 => _3.defaults]), _optionalChain([context, 'optionalAccess', _4 => _4.defaults]), props);
|
|
138
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
148
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNMTAZCQDcjs.JuneRenderer, { ...merged, library: _nullishCoalesce(library, () => ( registryLibrary)) });
|
|
139
149
|
}
|
|
140
150
|
|
|
141
151
|
// src/core/create-june-ui.ts
|
|
142
152
|
function createJuneUI(options = {}) {
|
|
143
|
-
const registry =
|
|
153
|
+
const registry = _chunkNMTAZCQDcjs.createComponentRegistry.call(void 0, {
|
|
144
154
|
base: _nullishCoalesce(options.baseLibrary, () => ( juneLibrary)),
|
|
145
155
|
components: options.components,
|
|
146
156
|
overrides: options.overrides,
|
|
@@ -245,4 +255,12 @@ function createJuneUI(options = {}) {
|
|
|
245
255
|
|
|
246
256
|
|
|
247
257
|
|
|
248
|
-
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
exports.ALL_EXPORT_FORMATS = _chunkNMTAZCQDcjs.ALL_EXPORT_FORMATS; exports.ComponentRegistry = _chunkNMTAZCQDcjs.ComponentRegistry; exports.DOCUMENT_COMPONENT_DESCRIPTION = _chunkNMTAZCQDcjs.DOCUMENT_COMPONENT_DESCRIPTION; exports.DocumentBridge = _chunkNMTAZCQDcjs.DocumentBridge; exports.DocumentEditor = _chunkNMTAZCQDcjs.DocumentEditor; exports.DocumentEditorConfigContext = _chunkNMTAZCQDcjs.DocumentEditorConfigContext; exports.JuneDocumentContext = _chunkNMTAZCQDcjs.JuneDocumentContext; exports.JuneDocumentEditorComponent = _chunkNMTAZCQDcjs.JuneDocumentEditorComponent; exports.JuneError = _chunkG6YPSE6Jcjs.JuneError; exports.JuneErrorBoundary = _chunkNMTAZCQDcjs.JuneErrorBoundary; exports.JuneRenderer = _chunkNMTAZCQDcjs.JuneRenderer; exports.JuneRetryNoticeComponent = _chunkNMTAZCQDcjs.JuneRetryNoticeComponent; exports.JuneRuntimeContext = _chunkNMTAZCQDcjs.JuneRuntimeContext; exports.JuneThemeProvider = _chunkNMTAZCQDcjs.JuneThemeProvider; exports.JuneToolApprovalCardComponent = _chunkNMTAZCQDcjs.JuneToolApprovalCardComponent; exports.JuneUI = JuneUI; exports.JuneUIProvider = JuneUIProvider; exports.MarkdownText = _chunkNMTAZCQDcjs.MarkdownText; exports.RETRY_NOTICE_DESCRIPTION = _chunkNMTAZCQDcjs.RETRY_NOTICE_DESCRIPTION; exports.RetryNotice = _chunkNMTAZCQDcjs.RetryNotice; exports.TOOL_APPROVAL_CARD_DESCRIPTION = _chunkNMTAZCQDcjs.TOOL_APPROVAL_CARD_DESCRIPTION; exports.ToolApproval = _chunkNMTAZCQDcjs.ToolApproval; exports.ToolApprovalCard = _chunkNMTAZCQDcjs.ToolApprovalCard; exports.ToolApprovalList = _chunkNMTAZCQDcjs.ToolApprovalList; exports.consumeStream = _chunkNMTAZCQDcjs.consumeStream; exports.copyDocumentToClipboard = _chunkNMTAZCQDcjs.copyDocumentToClipboard; exports.createActionHandler = _chunkNMTAZCQDcjs.createActionHandler; exports.createComponentRegistry = _chunkNMTAZCQDcjs.createComponentRegistry; exports.createDocumentStore = _chunkNMTAZCQDcjs.createDocumentStore; exports.createJuneLibrary = _chunkNMTAZCQDcjs.createJuneLibrary; exports.createJuneUI = createJuneUI; exports.createLangGraphExtractor = _chunkNMTAZCQDcjs.createLangGraphExtractor; exports.createTheme = _chunkNMTAZCQDcjs.createTheme; exports.darkTheme = _chunkNMTAZCQDcjs.darkTheme; exports.defaultParseActionEvent = _chunkNMTAZCQDcjs.defaultParseActionEvent; exports.defaultRegistry = defaultRegistry; exports.defaultToolApprovalLabels = _chunkNMTAZCQDcjs.defaultToolApprovalLabels; exports.defineComponent = _chunkNMTAZCQDcjs.defineComponent; exports.defineJuneAction = _chunkNMTAZCQDcjs.defineJuneAction; exports.defineJuneComponent = _chunkNMTAZCQDcjs.defineJuneComponent; exports.documentPanelWidth = _chunkNMTAZCQDcjs.documentPanelWidth; exports.documentPromptOptions = _chunkNMTAZCQDcjs.documentPromptOptions; exports.downloadResult = _chunkNMTAZCQDcjs.downloadResult; exports.exportDocument = _chunkNMTAZCQDcjs.exportDocument; exports.fetchStream = _chunkNMTAZCQDcjs.fetchStream; exports.getDefaultDocumentStore = _chunkNMTAZCQDcjs.getDefaultDocumentStore; exports.getDocumentEditorInstructions = _chunkNMTAZCQDcjs.getDocumentEditorInstructions; exports.getDocumentEditorRules = _chunkNMTAZCQDcjs.getDocumentEditorRules; exports.interruptToApprovalRequests = _chunkNMTAZCQDcjs.interruptToApprovalRequests; exports.isDocumentEcho = _chunkNMTAZCQDcjs.isDocumentEcho; exports.isJuneComponent = _chunkNMTAZCQDcjs.isJuneComponent; exports.isJuneError = _chunkG6YPSE6Jcjs.isJuneError; exports.isThemeSet = _chunkNMTAZCQDcjs.isThemeSet; exports.jsonFieldExtractor = _chunkNMTAZCQDcjs.jsonFieldExtractor; exports.juneLibrary = juneLibrary; exports.langGraphStreamOptions = _chunkNMTAZCQDcjs.langGraphStreamOptions; exports.lightTheme = _chunkNMTAZCQDcjs.lightTheme; exports.listDocumentExporters = _chunkNMTAZCQDcjs.listDocumentExporters; exports.mergeDocuments = _chunkNMTAZCQDcjs.mergeDocuments; exports.messageContentToText = _chunkNMTAZCQDcjs.messageContentToText; exports.normalizeProgram = _chunkNMTAZCQDcjs.normalizeProgram; exports.readDocumentFromProgram = _chunkNMTAZCQDcjs.readDocumentFromProgram; exports.readLangGraphInterrupts = _chunkNMTAZCQDcjs.readLangGraphInterrupts; exports.registerComponent = registerComponent; exports.registerDocumentExporter = _chunkNMTAZCQDcjs.registerDocumentExporter; exports.rememberDocumentEcho = _chunkNMTAZCQDcjs.rememberDocumentEcho; exports.resolveDocumentPresentation = _chunkNMTAZCQDcjs.resolveDocumentPresentation; exports.resolveMixedContent = _chunkNMTAZCQDcjs.resolveMixedContent; exports.resolveThemeVars = _chunkNMTAZCQDcjs.resolveThemeVars; exports.runAction = _chunkNMTAZCQDcjs.runAction; exports.serializeDocumentsForAgent = _chunkNMTAZCQDcjs.serializeDocumentsForAgent; exports.splitResponse = _chunkNMTAZCQDcjs.splitResponse; exports.sseToText = _chunkNMTAZCQDcjs.sseToText; exports.toAsyncIterable = _chunkNMTAZCQDcjs.toAsyncIterable; exports.toJuneError = _chunkG6YPSE6Jcjs.toJuneError; exports.unregisterComponent = unregisterComponent; exports.updateDocumentInProgram = _chunkNMTAZCQDcjs.updateDocumentInProgram; exports.useDocumentBridge = _chunkNMTAZCQDcjs.useDocumentBridge; exports.useDocumentEditorConfig = _chunkNMTAZCQDcjs.useDocumentEditorConfig; exports.useDocumentOptions = _chunkNMTAZCQDcjs.useDocumentOptions; exports.useJuneRuntime = _chunkNMTAZCQDcjs.useJuneRuntime; exports.useJuneStream = _chunkNMTAZCQDcjs.useJuneStream; exports.useJuneTheme = _chunkNMTAZCQDcjs.useJuneTheme; exports.useJuneUIContext = useJuneUIContext; exports.useRegistryLibrary = _chunkNMTAZCQDcjs.useRegistryLibrary; exports.useResolvedTheme = _chunkNMTAZCQDcjs.useResolvedTheme; exports.useToolApproval = _chunkNMTAZCQDcjs.useToolApproval; exports.validateComponentDefinition = _chunkNMTAZCQDcjs.validateComponentDefinition; exports.withDocumentEditor = _chunkNMTAZCQDcjs.withDocumentEditor; exports.withRetryNotice = _chunkNMTAZCQDcjs.withRetryNotice; exports.withToolApprovalCard = _chunkNMTAZCQDcjs.withToolApprovalCard;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JuneRendererProps, AnyComponentDefinition, OpenUILibrary, ComponentRegistry, RegisterOptions } from './entry-core.cjs';
|
|
2
|
-
export { ALL_EXPORT_FORMATS, ActionEventParser, ActionOutcome, ApprovalChoice, ComponentProps, ComponentRegistryOptions, ConfirmAction, ConsumeStreamOptions, DOCUMENT_COMPONENT_DESCRIPTION, DefineComponentOptions, DocJSON, DocNode, DocumentBridge, DocumentBridgeOptions, DocumentChange, DocumentConflict, DocumentEditor, DocumentEditorConfig, DocumentEditorConfigContext, DocumentEditorProps, DocumentExportEvent, DocumentExportFormat, DocumentExporter, DocumentInstructionOptions, DocumentPresentation, DocumentProgramUpdate, DocumentRecord, DocumentSavePayload, DocumentSnapshot, DocumentStore, ExportContext, ExportResult, FallbackArgs, FetchStreamOptions, IncomingDocument, JuneAction, JuneActionContext, JuneActionDefinition, JuneActionMap, JuneComponent, JuneComponentMeta, JuneContextValue, JuneDocumentContext, JuneDocumentEditorComponent, JuneDocumentOptions, JuneError, JuneErrorBoundary, JuneErrorBoundaryProps, JuneErrorCode, JuneErrorOptions, JuneLibraryOptions, JuneRenderProps, JuneRenderer, JuneResolvedTheme, JuneRuntimeContext, JuneRuntimeValue, JuneStreamState, JuneThemeInput, JuneThemeMode, JuneThemeProvider, JuneThemeProviderProps, JuneThemeSet, JuneThemeToken, JuneThemeVars, LangGraphExtractorOptions, MarkdownText, MarkdownTextProps, MixedContent, MixedContentOptions, OpenUIActionEvent, OpenUIRendererProps, ParsedActionEvent, PendingUpdate, ReceiveOutcome, ResolveChoice, ResponseChangeInfo, RunActionOptions, SchemaLike, SplitOptions, SplitResponse, SseOptions, StreamChunk, StreamSource, StreamStarter, StreamStatus, TextFormat, ToolApproval, ToolApprovalDecision, ToolApprovalEntry, ToolApprovalInput, ToolApprovalLabels, ToolApprovalList, ToolApprovalListProps, ToolApprovalProps, ToolApprovalRequest, ToolApprovalStatus, UseJuneStreamOptions, UseJuneStreamResult, UseToolApprovalResult, consumeStream, copyDocumentToClipboard, createActionHandler, createComponentRegistry, createDocumentStore, createJuneLibrary, createLangGraphExtractor, createTheme, darkTheme, defaultParseActionEvent, defaultToolApprovalLabels, defineComponent, defineJuneAction, defineJuneComponent, documentPanelWidth, documentPromptOptions, downloadResult, exportDocument, fetchStream, getDefaultDocumentStore, getDocumentEditorInstructions, getDocumentEditorRules, interruptToApprovalRequests, isDocumentEcho, isJuneComponent, isJuneError, isThemeSet, jsonFieldExtractor, langGraphStreamOptions, lightTheme, listDocumentExporters, mergeDocuments, messageContentToText, normalizeProgram, readDocumentFromProgram, readLangGraphInterrupts, registerDocumentExporter, rememberDocumentEcho, resolveDocumentPresentation, resolveMixedContent, resolveThemeVars, runAction, serializeDocumentsForAgent, splitResponse, sseToText, toAsyncIterable, toJuneError, updateDocumentInProgram, useDocumentBridge, useDocumentEditorConfig, useDocumentOptions, useJuneRuntime, useJuneStream, useJuneTheme, useRegistryLibrary, useResolvedTheme, useToolApproval, validateComponentDefinition, withDocumentEditor } from './entry-core.cjs';
|
|
2
|
+
export { ALL_EXPORT_FORMATS, ActionEventParser, ActionOutcome, ApprovalChoice, ComponentProps, ComponentRegistryOptions, ConfirmAction, ConsumeStreamOptions, DOCUMENT_COMPONENT_DESCRIPTION, DefineComponentOptions, DocJSON, DocNode, DocumentBridge, DocumentBridgeOptions, DocumentChange, DocumentConflict, DocumentEditor, DocumentEditorConfig, DocumentEditorConfigContext, DocumentEditorProps, DocumentExportEvent, DocumentExportFormat, DocumentExporter, DocumentInstructionOptions, DocumentPresentation, DocumentProgramUpdate, DocumentRecord, DocumentSavePayload, DocumentSnapshot, DocumentStore, ExportContext, ExportResult, FallbackArgs, FetchStreamOptions, IncomingDocument, JuneAction, JuneActionContext, JuneActionDefinition, JuneActionMap, JuneComponent, JuneComponentMeta, JuneContextValue, JuneDocumentContext, JuneDocumentEditorComponent, JuneDocumentOptions, JuneError, JuneErrorBoundary, JuneErrorBoundaryProps, JuneErrorCode, JuneErrorOptions, JuneLibraryOptions, JuneRenderProps, JuneRenderer, JuneResolvedTheme, JuneRetryNoticeComponent, JuneRuntimeContext, JuneRuntimeValue, JuneStreamState, JuneThemeInput, JuneThemeMode, JuneThemeProvider, JuneThemeProviderProps, JuneThemeSet, JuneThemeToken, JuneThemeVars, JuneToolApprovalCardComponent, LangGraphExtractorOptions, MarkdownText, MarkdownTextProps, MixedContent, MixedContentOptions, OpenUIActionEvent, OpenUIRendererProps, ParsedActionEvent, PendingUpdate, RETRY_NOTICE_DESCRIPTION, ReceiveOutcome, ResolveChoice, ResponseChangeInfo, RetryNotice, RetryNoticeProps, RunActionOptions, SchemaLike, SplitOptions, SplitResponse, SseOptions, StreamChunk, StreamSource, StreamStarter, StreamStatus, TOOL_APPROVAL_CARD_DESCRIPTION, TextFormat, ToolApproval, ToolApprovalCard, ToolApprovalCardProps, ToolApprovalDecision, ToolApprovalEntry, ToolApprovalInput, ToolApprovalLabels, ToolApprovalList, ToolApprovalListProps, ToolApprovalProps, ToolApprovalRequest, ToolApprovalStatus, UseJuneStreamOptions, UseJuneStreamResult, UseToolApprovalResult, consumeStream, copyDocumentToClipboard, createActionHandler, createComponentRegistry, createDocumentStore, createJuneLibrary, createLangGraphExtractor, createTheme, darkTheme, defaultParseActionEvent, defaultToolApprovalLabels, defineComponent, defineJuneAction, defineJuneComponent, documentPanelWidth, documentPromptOptions, downloadResult, exportDocument, fetchStream, getDefaultDocumentStore, getDocumentEditorInstructions, getDocumentEditorRules, interruptToApprovalRequests, isDocumentEcho, isJuneComponent, isJuneError, isThemeSet, jsonFieldExtractor, langGraphStreamOptions, lightTheme, listDocumentExporters, mergeDocuments, messageContentToText, normalizeProgram, readDocumentFromProgram, readLangGraphInterrupts, registerDocumentExporter, rememberDocumentEcho, resolveDocumentPresentation, resolveMixedContent, resolveThemeVars, runAction, serializeDocumentsForAgent, splitResponse, sseToText, toAsyncIterable, toJuneError, updateDocumentInProgram, useDocumentBridge, useDocumentEditorConfig, useDocumentOptions, useJuneRuntime, useJuneStream, useJuneTheme, useRegistryLibrary, useResolvedTheme, useToolApproval, validateComponentDefinition, withDocumentEditor, withRetryNotice, withToolApprovalCard } from './entry-core.cjs';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import { PromptOptions } from '@openuidev/react-lang';
|
|
@@ -79,8 +79,9 @@ declare function JuneUIProvider({ june, defaults, children }: JuneUIProviderProp
|
|
|
79
79
|
declare function useJuneUIContext(): JuneUIContextValue | null;
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
|
-
* June's default library: the OpenUI chat library, plus Stack, Modal
|
|
83
|
-
* Root is Card, matching the chat language.
|
|
82
|
+
* June's default library: the OpenUI chat library, plus Stack, Modal, DocumentEditor,
|
|
83
|
+
* ToolApprovalCard and RetryNotice. Root is Card, matching the chat language.
|
|
84
|
+
* Created once so its reference stays stable.
|
|
84
85
|
*/
|
|
85
86
|
declare const juneLibrary: OpenUILibrary;
|
|
86
87
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JuneRendererProps, AnyComponentDefinition, OpenUILibrary, ComponentRegistry, RegisterOptions } from './entry-core.js';
|
|
2
|
-
export { ALL_EXPORT_FORMATS, ActionEventParser, ActionOutcome, ApprovalChoice, ComponentProps, ComponentRegistryOptions, ConfirmAction, ConsumeStreamOptions, DOCUMENT_COMPONENT_DESCRIPTION, DefineComponentOptions, DocJSON, DocNode, DocumentBridge, DocumentBridgeOptions, DocumentChange, DocumentConflict, DocumentEditor, DocumentEditorConfig, DocumentEditorConfigContext, DocumentEditorProps, DocumentExportEvent, DocumentExportFormat, DocumentExporter, DocumentInstructionOptions, DocumentPresentation, DocumentProgramUpdate, DocumentRecord, DocumentSavePayload, DocumentSnapshot, DocumentStore, ExportContext, ExportResult, FallbackArgs, FetchStreamOptions, IncomingDocument, JuneAction, JuneActionContext, JuneActionDefinition, JuneActionMap, JuneComponent, JuneComponentMeta, JuneContextValue, JuneDocumentContext, JuneDocumentEditorComponent, JuneDocumentOptions, JuneError, JuneErrorBoundary, JuneErrorBoundaryProps, JuneErrorCode, JuneErrorOptions, JuneLibraryOptions, JuneRenderProps, JuneRenderer, JuneResolvedTheme, JuneRuntimeContext, JuneRuntimeValue, JuneStreamState, JuneThemeInput, JuneThemeMode, JuneThemeProvider, JuneThemeProviderProps, JuneThemeSet, JuneThemeToken, JuneThemeVars, LangGraphExtractorOptions, MarkdownText, MarkdownTextProps, MixedContent, MixedContentOptions, OpenUIActionEvent, OpenUIRendererProps, ParsedActionEvent, PendingUpdate, ReceiveOutcome, ResolveChoice, ResponseChangeInfo, RunActionOptions, SchemaLike, SplitOptions, SplitResponse, SseOptions, StreamChunk, StreamSource, StreamStarter, StreamStatus, TextFormat, ToolApproval, ToolApprovalDecision, ToolApprovalEntry, ToolApprovalInput, ToolApprovalLabels, ToolApprovalList, ToolApprovalListProps, ToolApprovalProps, ToolApprovalRequest, ToolApprovalStatus, UseJuneStreamOptions, UseJuneStreamResult, UseToolApprovalResult, consumeStream, copyDocumentToClipboard, createActionHandler, createComponentRegistry, createDocumentStore, createJuneLibrary, createLangGraphExtractor, createTheme, darkTheme, defaultParseActionEvent, defaultToolApprovalLabels, defineComponent, defineJuneAction, defineJuneComponent, documentPanelWidth, documentPromptOptions, downloadResult, exportDocument, fetchStream, getDefaultDocumentStore, getDocumentEditorInstructions, getDocumentEditorRules, interruptToApprovalRequests, isDocumentEcho, isJuneComponent, isJuneError, isThemeSet, jsonFieldExtractor, langGraphStreamOptions, lightTheme, listDocumentExporters, mergeDocuments, messageContentToText, normalizeProgram, readDocumentFromProgram, readLangGraphInterrupts, registerDocumentExporter, rememberDocumentEcho, resolveDocumentPresentation, resolveMixedContent, resolveThemeVars, runAction, serializeDocumentsForAgent, splitResponse, sseToText, toAsyncIterable, toJuneError, updateDocumentInProgram, useDocumentBridge, useDocumentEditorConfig, useDocumentOptions, useJuneRuntime, useJuneStream, useJuneTheme, useRegistryLibrary, useResolvedTheme, useToolApproval, validateComponentDefinition, withDocumentEditor } from './entry-core.js';
|
|
2
|
+
export { ALL_EXPORT_FORMATS, ActionEventParser, ActionOutcome, ApprovalChoice, ComponentProps, ComponentRegistryOptions, ConfirmAction, ConsumeStreamOptions, DOCUMENT_COMPONENT_DESCRIPTION, DefineComponentOptions, DocJSON, DocNode, DocumentBridge, DocumentBridgeOptions, DocumentChange, DocumentConflict, DocumentEditor, DocumentEditorConfig, DocumentEditorConfigContext, DocumentEditorProps, DocumentExportEvent, DocumentExportFormat, DocumentExporter, DocumentInstructionOptions, DocumentPresentation, DocumentProgramUpdate, DocumentRecord, DocumentSavePayload, DocumentSnapshot, DocumentStore, ExportContext, ExportResult, FallbackArgs, FetchStreamOptions, IncomingDocument, JuneAction, JuneActionContext, JuneActionDefinition, JuneActionMap, JuneComponent, JuneComponentMeta, JuneContextValue, JuneDocumentContext, JuneDocumentEditorComponent, JuneDocumentOptions, JuneError, JuneErrorBoundary, JuneErrorBoundaryProps, JuneErrorCode, JuneErrorOptions, JuneLibraryOptions, JuneRenderProps, JuneRenderer, JuneResolvedTheme, JuneRetryNoticeComponent, JuneRuntimeContext, JuneRuntimeValue, JuneStreamState, JuneThemeInput, JuneThemeMode, JuneThemeProvider, JuneThemeProviderProps, JuneThemeSet, JuneThemeToken, JuneThemeVars, JuneToolApprovalCardComponent, LangGraphExtractorOptions, MarkdownText, MarkdownTextProps, MixedContent, MixedContentOptions, OpenUIActionEvent, OpenUIRendererProps, ParsedActionEvent, PendingUpdate, RETRY_NOTICE_DESCRIPTION, ReceiveOutcome, ResolveChoice, ResponseChangeInfo, RetryNotice, RetryNoticeProps, RunActionOptions, SchemaLike, SplitOptions, SplitResponse, SseOptions, StreamChunk, StreamSource, StreamStarter, StreamStatus, TOOL_APPROVAL_CARD_DESCRIPTION, TextFormat, ToolApproval, ToolApprovalCard, ToolApprovalCardProps, ToolApprovalDecision, ToolApprovalEntry, ToolApprovalInput, ToolApprovalLabels, ToolApprovalList, ToolApprovalListProps, ToolApprovalProps, ToolApprovalRequest, ToolApprovalStatus, UseJuneStreamOptions, UseJuneStreamResult, UseToolApprovalResult, consumeStream, copyDocumentToClipboard, createActionHandler, createComponentRegistry, createDocumentStore, createJuneLibrary, createLangGraphExtractor, createTheme, darkTheme, defaultParseActionEvent, defaultToolApprovalLabels, defineComponent, defineJuneAction, defineJuneComponent, documentPanelWidth, documentPromptOptions, downloadResult, exportDocument, fetchStream, getDefaultDocumentStore, getDocumentEditorInstructions, getDocumentEditorRules, interruptToApprovalRequests, isDocumentEcho, isJuneComponent, isJuneError, isThemeSet, jsonFieldExtractor, langGraphStreamOptions, lightTheme, listDocumentExporters, mergeDocuments, messageContentToText, normalizeProgram, readDocumentFromProgram, readLangGraphInterrupts, registerDocumentExporter, rememberDocumentEcho, resolveDocumentPresentation, resolveMixedContent, resolveThemeVars, runAction, serializeDocumentsForAgent, splitResponse, sseToText, toAsyncIterable, toJuneError, updateDocumentInProgram, useDocumentBridge, useDocumentEditorConfig, useDocumentOptions, useJuneRuntime, useJuneStream, useJuneTheme, useRegistryLibrary, useResolvedTheme, useToolApproval, validateComponentDefinition, withDocumentEditor, withRetryNotice, withToolApprovalCard } from './entry-core.js';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import { PromptOptions } from '@openuidev/react-lang';
|
|
@@ -79,8 +79,9 @@ declare function JuneUIProvider({ june, defaults, children }: JuneUIProviderProp
|
|
|
79
79
|
declare function useJuneUIContext(): JuneUIContextValue | null;
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
|
-
* June's default library: the OpenUI chat library, plus Stack, Modal
|
|
83
|
-
* Root is Card, matching the chat language.
|
|
82
|
+
* June's default library: the OpenUI chat library, plus Stack, Modal, DocumentEditor,
|
|
83
|
+
* ToolApprovalCard and RetryNotice. Root is Card, matching the chat language.
|
|
84
|
+
* Created once so its reference stays stable.
|
|
84
85
|
*/
|
|
85
86
|
declare const juneLibrary: OpenUILibrary;
|
|
86
87
|
/**
|
package/dist/index.js
CHANGED
|
@@ -10,10 +10,16 @@ import {
|
|
|
10
10
|
JuneDocumentEditorComponent,
|
|
11
11
|
JuneErrorBoundary,
|
|
12
12
|
JuneRenderer,
|
|
13
|
+
JuneRetryNoticeComponent,
|
|
13
14
|
JuneRuntimeContext,
|
|
14
15
|
JuneThemeProvider,
|
|
16
|
+
JuneToolApprovalCardComponent,
|
|
15
17
|
MarkdownText,
|
|
18
|
+
RETRY_NOTICE_DESCRIPTION,
|
|
19
|
+
RetryNotice,
|
|
20
|
+
TOOL_APPROVAL_CARD_DESCRIPTION,
|
|
16
21
|
ToolApproval,
|
|
22
|
+
ToolApprovalCard,
|
|
17
23
|
ToolApprovalList,
|
|
18
24
|
consumeStream,
|
|
19
25
|
copyDocumentToClipboard,
|
|
@@ -71,8 +77,10 @@ import {
|
|
|
71
77
|
useResolvedTheme,
|
|
72
78
|
useToolApproval,
|
|
73
79
|
validateComponentDefinition,
|
|
74
|
-
withDocumentEditor
|
|
75
|
-
|
|
80
|
+
withDocumentEditor,
|
|
81
|
+
withRetryNotice,
|
|
82
|
+
withToolApprovalCard
|
|
83
|
+
} from "./chunk-SZ47R4Z5.js";
|
|
76
84
|
import {
|
|
77
85
|
JuneError,
|
|
78
86
|
isJuneError,
|
|
@@ -108,7 +116,9 @@ function withChatLayout(library) {
|
|
|
108
116
|
}
|
|
109
117
|
});
|
|
110
118
|
}
|
|
111
|
-
var juneLibrary =
|
|
119
|
+
var juneLibrary = withRetryNotice(
|
|
120
|
+
withToolApprovalCard(withDocumentEditor(withChatLayout(openuiChatLibrary)))
|
|
121
|
+
);
|
|
112
122
|
var defaultRegistry = createComponentRegistry({ base: juneLibrary });
|
|
113
123
|
function registerComponent(components, options) {
|
|
114
124
|
return defaultRegistry.register(components, options);
|
|
@@ -174,12 +184,18 @@ export {
|
|
|
174
184
|
JuneError,
|
|
175
185
|
JuneErrorBoundary,
|
|
176
186
|
JuneRenderer,
|
|
187
|
+
JuneRetryNoticeComponent,
|
|
177
188
|
JuneRuntimeContext,
|
|
178
189
|
JuneThemeProvider,
|
|
190
|
+
JuneToolApprovalCardComponent,
|
|
179
191
|
JuneUI,
|
|
180
192
|
JuneUIProvider,
|
|
181
193
|
MarkdownText,
|
|
194
|
+
RETRY_NOTICE_DESCRIPTION,
|
|
195
|
+
RetryNotice,
|
|
196
|
+
TOOL_APPROVAL_CARD_DESCRIPTION,
|
|
182
197
|
ToolApproval,
|
|
198
|
+
ToolApprovalCard,
|
|
183
199
|
ToolApprovalList,
|
|
184
200
|
consumeStream,
|
|
185
201
|
copyDocumentToClipboard,
|
|
@@ -245,5 +261,7 @@ export {
|
|
|
245
261
|
useResolvedTheme,
|
|
246
262
|
useToolApproval,
|
|
247
263
|
validateComponentDefinition,
|
|
248
|
-
withDocumentEditor
|
|
264
|
+
withDocumentEditor,
|
|
265
|
+
withRetryNotice,
|
|
266
|
+
withToolApprovalCard
|
|
249
267
|
};
|