@docyrus/ui-pro-ai-assistant 0.6.7 → 0.6.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.
- package/dist/components/adaptive-card-tool.d.ts +12 -0
- package/dist/components/docyrus/adaptive-card/action-bar.d.ts +7 -0
- package/dist/components/docyrus/adaptive-card/actions/action-button.d.ts +11 -0
- package/dist/components/docyrus/adaptive-card/actions/action-execute.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/actions/action-open-url.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/actions/action-reset-inputs.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/actions/action-show-card.d.ts +7 -0
- package/dist/components/docyrus/adaptive-card/actions/action-submit.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/actions/action-toggle-visibility.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/adaptive-card-context.d.ts +43 -0
- package/dist/components/docyrus/adaptive-card/adaptive-card-types.d.ts +672 -0
- package/dist/components/docyrus/adaptive-card/adaptive-card-view.d.ts +6 -0
- package/dist/components/docyrus/adaptive-card/adaptive-card.d.ts +3 -0
- package/dist/components/docyrus/adaptive-card/element-node.d.ts +11 -0
- package/dist/components/docyrus/adaptive-card/element-registry.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/elements/accordion-element.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/elements/action-set.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/elements/badge-element.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/elements/carousel-element.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/elements/chart-elements.d.ts +19 -0
- package/dist/components/docyrus/adaptive-card/elements/chart-shared.d.ts +8 -0
- package/dist/components/docyrus/adaptive-card/elements/code-block-element.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/elements/column-set.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/elements/component-element.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/elements/compound-button-element.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/elements/container.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/elements/fact-set.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/elements/icon-element.d.ts +6 -0
- package/dist/components/docyrus/adaptive-card/elements/image-element.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/elements/image-set.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/elements/loop-component-element.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/elements/media-element.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/elements/progress-bar-element.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/elements/progress-ring-element.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/elements/rating-element.d.ts +10 -0
- package/dist/components/docyrus/adaptive-card/elements/rich-text-block.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/elements/tab-set-element.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/elements/table-element.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/elements/text-block.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/index.d.ts +15 -0
- package/dist/components/docyrus/adaptive-card/inputs/input-choice-set.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/inputs/input-date.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/inputs/input-number.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/inputs/input-rating.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/inputs/input-shell.d.ts +7 -0
- package/dist/components/docyrus/adaptive-card/inputs/input-text.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/inputs/input-time.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/inputs/input-toggle.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/inputs/use-input-register.d.ts +2 -0
- package/dist/components/docyrus/adaptive-card/lib/chart-palette.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/lib/collect-inputs.d.ts +3 -0
- package/dist/components/docyrus/adaptive-card/lib/color-tokens.d.ts +9 -0
- package/dist/components/docyrus/adaptive-card/lib/default-host-config.d.ts +3 -0
- package/dist/components/docyrus/adaptive-card/lib/expression.d.ts +12 -0
- package/dist/components/docyrus/adaptive-card/lib/interpolate.d.ts +2 -0
- package/dist/components/docyrus/adaptive-card/lib/parse-card.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/lib/size-tokens.d.ts +16 -0
- package/dist/components/docyrus/adaptive-card/lib/spacing-tokens.d.ts +4 -0
- package/dist/components/docyrus/adaptive-card/lib/templating.d.ts +6 -0
- package/dist/components/docyrus/adaptive-card/lib/validate-inputs.d.ts +7 -0
- package/dist/components/docyrus/adaptive-card/lib/version.d.ts +5 -0
- package/dist/components/docyrus/adaptive-card/register-default-elements.d.ts +1 -0
- package/dist/components/generative-tool.d.ts +7 -1
- package/dist/components/template-output.d.ts +11 -0
- package/dist/components/ui/circular-progress.d.ts +24 -0
- package/dist/hooks/docyrus/use-adaptive-card.d.ts +43 -0
- package/dist/hooks/use-assistant-api.d.ts +6 -0
- package/dist/index.js +4677 -471
- package/dist/index.js.map +1 -1
- package/dist/internal/plate-editor/editor/plugins/emoji-kit.d.ts +2 -5
- package/dist/internal/plate-editor/editor/plugins/mention-base-kit.d.ts +2 -11
- package/dist/internal/plate-editor/editor/plugins/mention-kit.d.ts +2 -11
- package/dist/internal/plate-editor/editor/plugins/slash-kit.d.ts +2 -1
- package/dist/styles.css +441 -0
- package/dist/views/assistant-view.d.ts +5 -0
- package/dist/views/chat-panel.d.ts +7 -1
- package/dist/views/message-list.d.ts +2 -1
- package/package.json +10 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type AdaptiveCardPayload } from './docyrus/adaptive-card';
|
|
2
|
+
import { type ToolActionEvent } from '../types';
|
|
3
|
+
interface AdaptiveCardToolProps {
|
|
4
|
+
payload: AdaptiveCardPayload;
|
|
5
|
+
data?: unknown;
|
|
6
|
+
toolName: string;
|
|
7
|
+
toolCallId: string;
|
|
8
|
+
onToolAction?: (event: ToolActionEvent) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function AdaptiveCardTool({ payload, data, toolName, toolCallId, onToolAction }: AdaptiveCardToolProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function extractAdaptiveCardPayload(value: unknown): AdaptiveCardPayload | null;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type AdaptiveCardAction } from './adaptive-card-types';
|
|
2
|
+
interface ActionBarProps {
|
|
3
|
+
actions: Array<AdaptiveCardAction> | undefined;
|
|
4
|
+
variant?: 'card-footer' | 'inline' | 'nested';
|
|
5
|
+
}
|
|
6
|
+
export declare function ActionBar({ actions, variant }: ActionBarProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type AdaptiveCardAction } from '../adaptive-card-types';
|
|
3
|
+
interface ActionButtonProps {
|
|
4
|
+
action: AdaptiveCardAction;
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
asChild?: boolean;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function ActionButton({ action, onClick, asChild, children, className }: ActionButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type AdaptiveCardActionShowCard } from '../adaptive-card-types';
|
|
2
|
+
export declare function ActionShowCardButton({ action }: {
|
|
3
|
+
action: AdaptiveCardActionShowCard;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function ShowCardPanel({ action }: {
|
|
6
|
+
action: AdaptiveCardActionShowCard;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type AdaptiveCardActionEvent, type AdaptiveCardActionExecute, type AdaptiveCardActionOpenUrl, type AdaptiveCardActionResetInputs, type AdaptiveCardActionShowCard, type AdaptiveCardActionSubmit, type AdaptiveCardActionToggleVisibility, type AdaptiveCardChoice, type AdaptiveCardHostConfig, type AdaptiveCardInputValue, type AdaptiveCardPayload, type ElementRenderer } from './adaptive-card-types';
|
|
3
|
+
import { type ValidationResult } from './lib/validate-inputs';
|
|
4
|
+
export interface AdaptiveCardContextValue {
|
|
5
|
+
card: AdaptiveCardPayload;
|
|
6
|
+
hostConfig: AdaptiveCardHostConfig;
|
|
7
|
+
customElements: Record<string, ElementRenderer>;
|
|
8
|
+
visibilityOverrides: Record<string, boolean>;
|
|
9
|
+
inputs: Record<string, AdaptiveCardInputValue>;
|
|
10
|
+
validations: Record<string, ValidationResult>;
|
|
11
|
+
showCardOpen: Record<string, boolean>;
|
|
12
|
+
hasSubmittedOnce: boolean;
|
|
13
|
+
setInput: (id: string, value: AdaptiveCardInputValue) => void;
|
|
14
|
+
registerInput: (id: string, initial: AdaptiveCardInputValue) => void;
|
|
15
|
+
unregisterInput: (id: string) => void;
|
|
16
|
+
submit: (action: AdaptiveCardActionSubmit) => void;
|
|
17
|
+
execute: (action: AdaptiveCardActionExecute) => void;
|
|
18
|
+
openUrl: (action: AdaptiveCardActionOpenUrl) => void;
|
|
19
|
+
toggleVisibility: (action: AdaptiveCardActionToggleVisibility) => void;
|
|
20
|
+
toggleShowCard: (action: AdaptiveCardActionShowCard) => void;
|
|
21
|
+
resetInputs: (action: AdaptiveCardActionResetInputs) => void;
|
|
22
|
+
dispatchEvent: (event: AdaptiveCardActionEvent) => void;
|
|
23
|
+
queryChoices: (request: {
|
|
24
|
+
dataset: string;
|
|
25
|
+
search: string;
|
|
26
|
+
inputId: string;
|
|
27
|
+
}) => Promise<Array<AdaptiveCardChoice>>;
|
|
28
|
+
}
|
|
29
|
+
export declare function AdaptiveCardProvider({ value, children }: {
|
|
30
|
+
value: AdaptiveCardContextValue;
|
|
31
|
+
children: ReactNode;
|
|
32
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export declare function useAdaptiveCardContext(): AdaptiveCardContextValue;
|
|
34
|
+
export declare function useAdaptiveCardInput(id: string): {
|
|
35
|
+
value: string | number | boolean | string[] | null;
|
|
36
|
+
setValue: (next: AdaptiveCardInputValue) => void;
|
|
37
|
+
validation: ValidationResult;
|
|
38
|
+
showError: boolean;
|
|
39
|
+
};
|
|
40
|
+
export declare function isElementVisible(element: {
|
|
41
|
+
id?: string;
|
|
42
|
+
isVisible?: boolean;
|
|
43
|
+
}, overrides: Record<string, boolean>): boolean;
|