@supernal/interface-nextjs 1.0.22 → 1.0.25
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.d.mts +38 -1
- package/dist/index.d.ts +38 -1
- package/dist/index.js +1594 -543
- package/dist/index.mjs +1591 -537
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -233,6 +233,7 @@ interface SubtitleOverlayProps {
|
|
|
233
233
|
config: ChatBubbleConfig;
|
|
234
234
|
sttTranscript?: string;
|
|
235
235
|
resetTranscript?: () => void;
|
|
236
|
+
onSwitchToFullMode?: () => void;
|
|
236
237
|
}
|
|
237
238
|
declare const SubtitleOverlay: React$1.FC<SubtitleOverlayProps>;
|
|
238
239
|
|
|
@@ -288,6 +289,42 @@ interface AutoNavigationContextProps {
|
|
|
288
289
|
}
|
|
289
290
|
declare function AutoNavigationContext({ children, routes, onNavigate, }: AutoNavigationContextProps): react_jsx_runtime.JSX.Element;
|
|
290
291
|
|
|
292
|
+
interface ToolMenuCategory {
|
|
293
|
+
key: string;
|
|
294
|
+
displayName: string;
|
|
295
|
+
tools: ToolMetadata[];
|
|
296
|
+
}
|
|
297
|
+
interface UseToolMenuReturn {
|
|
298
|
+
isOpen: boolean;
|
|
299
|
+
open: () => void;
|
|
300
|
+
close: () => void;
|
|
301
|
+
toggle: () => void;
|
|
302
|
+
categories: ToolMenuCategory[];
|
|
303
|
+
totalTools: number;
|
|
304
|
+
contextLabel: string;
|
|
305
|
+
}
|
|
306
|
+
declare function useToolMenu(): UseToolMenuReturn;
|
|
307
|
+
|
|
308
|
+
interface ToolMenuPopupProps {
|
|
309
|
+
isOpen: boolean;
|
|
310
|
+
onClose: () => void;
|
|
311
|
+
categories: ToolMenuCategory[];
|
|
312
|
+
totalTools: number;
|
|
313
|
+
contextLabel: string;
|
|
314
|
+
}
|
|
315
|
+
declare const ToolMenuPopup: React$1.FC<ToolMenuPopupProps>;
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* ToolMenuPopupTrigger
|
|
319
|
+
*
|
|
320
|
+
* Manages keyboard shortcut triggers for the ToolMenuPopup.
|
|
321
|
+
* Renders the popup when open.
|
|
322
|
+
*
|
|
323
|
+
* Triggers:
|
|
324
|
+
* - Keyboard: `/` or `?` from an empty input (subtitle mode), `?` outside inputs, or Cmd/Ctrl+Shift+/
|
|
325
|
+
*/
|
|
326
|
+
declare const ToolMenuPopupTrigger: React$1.FC;
|
|
327
|
+
|
|
291
328
|
/**
|
|
292
329
|
* Component Names - Named contracts for UI elements, variants, and layouts
|
|
293
330
|
*
|
|
@@ -470,4 +507,4 @@ declare function scoreToolMatch(query: string, tool: ToolMetadata): number;
|
|
|
470
507
|
*/
|
|
471
508
|
declare function findBestMatch(query: string, tools: ToolMetadata[]): FuzzyMatchResult;
|
|
472
509
|
|
|
473
|
-
export { AutoNavigationContext, ChatBubble, type ChatBubbleSettings, ChatBubbleSettingsModal, ChatBubbleVariant, type ChatBubbleVariantType, type ChatBubbleVariantValue, ChatInputProvider, ChatProvider, CodeBlock, type CommandResult, Components, DemoAIInterface, type FuzzyMatchResult, FuzzyMatcher, MermaidDiagram, MessageRenderer, NavigationContextProvider, PageLayout, type PageLayoutType, type PageLayoutValue, SubtitleOverlay, SupernalProvider, type SupernalProviderProps, type ToolExecutionResult, ToolManager, findBestMatch, scoreToolMatch, useAllContexts, useChatContext, useChatInput, useCurrentContext, useNavigate, useNavigationGraph, useNavigationPath, useRegisterTool };
|
|
510
|
+
export { AutoNavigationContext, ChatBubble, type ChatBubbleSettings, ChatBubbleSettingsModal, ChatBubbleVariant, type ChatBubbleVariantType, type ChatBubbleVariantValue, ChatInputProvider, ChatProvider, CodeBlock, type CommandResult, Components, DemoAIInterface, type FuzzyMatchResult, FuzzyMatcher, MermaidDiagram, MessageRenderer, NavigationContextProvider, PageLayout, type PageLayoutType, type PageLayoutValue, SubtitleOverlay, SupernalProvider, type SupernalProviderProps, type ToolExecutionResult, ToolManager, type ToolMenuCategory, ToolMenuPopup, ToolMenuPopupTrigger, type UseToolMenuReturn, findBestMatch, scoreToolMatch, useAllContexts, useChatContext, useChatInput, useCurrentContext, useNavigate, useNavigationGraph, useNavigationPath, useRegisterTool, useToolMenu };
|
package/dist/index.d.ts
CHANGED
|
@@ -233,6 +233,7 @@ interface SubtitleOverlayProps {
|
|
|
233
233
|
config: ChatBubbleConfig;
|
|
234
234
|
sttTranscript?: string;
|
|
235
235
|
resetTranscript?: () => void;
|
|
236
|
+
onSwitchToFullMode?: () => void;
|
|
236
237
|
}
|
|
237
238
|
declare const SubtitleOverlay: React$1.FC<SubtitleOverlayProps>;
|
|
238
239
|
|
|
@@ -288,6 +289,42 @@ interface AutoNavigationContextProps {
|
|
|
288
289
|
}
|
|
289
290
|
declare function AutoNavigationContext({ children, routes, onNavigate, }: AutoNavigationContextProps): react_jsx_runtime.JSX.Element;
|
|
290
291
|
|
|
292
|
+
interface ToolMenuCategory {
|
|
293
|
+
key: string;
|
|
294
|
+
displayName: string;
|
|
295
|
+
tools: ToolMetadata[];
|
|
296
|
+
}
|
|
297
|
+
interface UseToolMenuReturn {
|
|
298
|
+
isOpen: boolean;
|
|
299
|
+
open: () => void;
|
|
300
|
+
close: () => void;
|
|
301
|
+
toggle: () => void;
|
|
302
|
+
categories: ToolMenuCategory[];
|
|
303
|
+
totalTools: number;
|
|
304
|
+
contextLabel: string;
|
|
305
|
+
}
|
|
306
|
+
declare function useToolMenu(): UseToolMenuReturn;
|
|
307
|
+
|
|
308
|
+
interface ToolMenuPopupProps {
|
|
309
|
+
isOpen: boolean;
|
|
310
|
+
onClose: () => void;
|
|
311
|
+
categories: ToolMenuCategory[];
|
|
312
|
+
totalTools: number;
|
|
313
|
+
contextLabel: string;
|
|
314
|
+
}
|
|
315
|
+
declare const ToolMenuPopup: React$1.FC<ToolMenuPopupProps>;
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* ToolMenuPopupTrigger
|
|
319
|
+
*
|
|
320
|
+
* Manages keyboard shortcut triggers for the ToolMenuPopup.
|
|
321
|
+
* Renders the popup when open.
|
|
322
|
+
*
|
|
323
|
+
* Triggers:
|
|
324
|
+
* - Keyboard: `/` or `?` from an empty input (subtitle mode), `?` outside inputs, or Cmd/Ctrl+Shift+/
|
|
325
|
+
*/
|
|
326
|
+
declare const ToolMenuPopupTrigger: React$1.FC;
|
|
327
|
+
|
|
291
328
|
/**
|
|
292
329
|
* Component Names - Named contracts for UI elements, variants, and layouts
|
|
293
330
|
*
|
|
@@ -470,4 +507,4 @@ declare function scoreToolMatch(query: string, tool: ToolMetadata): number;
|
|
|
470
507
|
*/
|
|
471
508
|
declare function findBestMatch(query: string, tools: ToolMetadata[]): FuzzyMatchResult;
|
|
472
509
|
|
|
473
|
-
export { AutoNavigationContext, ChatBubble, type ChatBubbleSettings, ChatBubbleSettingsModal, ChatBubbleVariant, type ChatBubbleVariantType, type ChatBubbleVariantValue, ChatInputProvider, ChatProvider, CodeBlock, type CommandResult, Components, DemoAIInterface, type FuzzyMatchResult, FuzzyMatcher, MermaidDiagram, MessageRenderer, NavigationContextProvider, PageLayout, type PageLayoutType, type PageLayoutValue, SubtitleOverlay, SupernalProvider, type SupernalProviderProps, type ToolExecutionResult, ToolManager, findBestMatch, scoreToolMatch, useAllContexts, useChatContext, useChatInput, useCurrentContext, useNavigate, useNavigationGraph, useNavigationPath, useRegisterTool };
|
|
510
|
+
export { AutoNavigationContext, ChatBubble, type ChatBubbleSettings, ChatBubbleSettingsModal, ChatBubbleVariant, type ChatBubbleVariantType, type ChatBubbleVariantValue, ChatInputProvider, ChatProvider, CodeBlock, type CommandResult, Components, DemoAIInterface, type FuzzyMatchResult, FuzzyMatcher, MermaidDiagram, MessageRenderer, NavigationContextProvider, PageLayout, type PageLayoutType, type PageLayoutValue, SubtitleOverlay, SupernalProvider, type SupernalProviderProps, type ToolExecutionResult, ToolManager, type ToolMenuCategory, ToolMenuPopup, ToolMenuPopupTrigger, type UseToolMenuReturn, findBestMatch, scoreToolMatch, useAllContexts, useChatContext, useChatInput, useCurrentContext, useNavigate, useNavigationGraph, useNavigationPath, useRegisterTool, useToolMenu };
|