@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.
Files changed (78) hide show
  1. package/dist/components/adaptive-card-tool.d.ts +12 -0
  2. package/dist/components/docyrus/adaptive-card/action-bar.d.ts +7 -0
  3. package/dist/components/docyrus/adaptive-card/actions/action-button.d.ts +11 -0
  4. package/dist/components/docyrus/adaptive-card/actions/action-execute.d.ts +4 -0
  5. package/dist/components/docyrus/adaptive-card/actions/action-open-url.d.ts +4 -0
  6. package/dist/components/docyrus/adaptive-card/actions/action-reset-inputs.d.ts +4 -0
  7. package/dist/components/docyrus/adaptive-card/actions/action-show-card.d.ts +7 -0
  8. package/dist/components/docyrus/adaptive-card/actions/action-submit.d.ts +4 -0
  9. package/dist/components/docyrus/adaptive-card/actions/action-toggle-visibility.d.ts +4 -0
  10. package/dist/components/docyrus/adaptive-card/adaptive-card-context.d.ts +43 -0
  11. package/dist/components/docyrus/adaptive-card/adaptive-card-types.d.ts +672 -0
  12. package/dist/components/docyrus/adaptive-card/adaptive-card-view.d.ts +6 -0
  13. package/dist/components/docyrus/adaptive-card/adaptive-card.d.ts +3 -0
  14. package/dist/components/docyrus/adaptive-card/element-node.d.ts +11 -0
  15. package/dist/components/docyrus/adaptive-card/element-registry.d.ts +4 -0
  16. package/dist/components/docyrus/adaptive-card/elements/accordion-element.d.ts +4 -0
  17. package/dist/components/docyrus/adaptive-card/elements/action-set.d.ts +4 -0
  18. package/dist/components/docyrus/adaptive-card/elements/badge-element.d.ts +4 -0
  19. package/dist/components/docyrus/adaptive-card/elements/carousel-element.d.ts +4 -0
  20. package/dist/components/docyrus/adaptive-card/elements/chart-elements.d.ts +19 -0
  21. package/dist/components/docyrus/adaptive-card/elements/chart-shared.d.ts +8 -0
  22. package/dist/components/docyrus/adaptive-card/elements/code-block-element.d.ts +4 -0
  23. package/dist/components/docyrus/adaptive-card/elements/column-set.d.ts +4 -0
  24. package/dist/components/docyrus/adaptive-card/elements/component-element.d.ts +4 -0
  25. package/dist/components/docyrus/adaptive-card/elements/compound-button-element.d.ts +4 -0
  26. package/dist/components/docyrus/adaptive-card/elements/container.d.ts +4 -0
  27. package/dist/components/docyrus/adaptive-card/elements/fact-set.d.ts +4 -0
  28. package/dist/components/docyrus/adaptive-card/elements/icon-element.d.ts +6 -0
  29. package/dist/components/docyrus/adaptive-card/elements/image-element.d.ts +4 -0
  30. package/dist/components/docyrus/adaptive-card/elements/image-set.d.ts +4 -0
  31. package/dist/components/docyrus/adaptive-card/elements/loop-component-element.d.ts +4 -0
  32. package/dist/components/docyrus/adaptive-card/elements/media-element.d.ts +4 -0
  33. package/dist/components/docyrus/adaptive-card/elements/progress-bar-element.d.ts +4 -0
  34. package/dist/components/docyrus/adaptive-card/elements/progress-ring-element.d.ts +4 -0
  35. package/dist/components/docyrus/adaptive-card/elements/rating-element.d.ts +10 -0
  36. package/dist/components/docyrus/adaptive-card/elements/rich-text-block.d.ts +4 -0
  37. package/dist/components/docyrus/adaptive-card/elements/tab-set-element.d.ts +4 -0
  38. package/dist/components/docyrus/adaptive-card/elements/table-element.d.ts +4 -0
  39. package/dist/components/docyrus/adaptive-card/elements/text-block.d.ts +4 -0
  40. package/dist/components/docyrus/adaptive-card/index.d.ts +15 -0
  41. package/dist/components/docyrus/adaptive-card/inputs/input-choice-set.d.ts +4 -0
  42. package/dist/components/docyrus/adaptive-card/inputs/input-date.d.ts +4 -0
  43. package/dist/components/docyrus/adaptive-card/inputs/input-number.d.ts +4 -0
  44. package/dist/components/docyrus/adaptive-card/inputs/input-rating.d.ts +4 -0
  45. package/dist/components/docyrus/adaptive-card/inputs/input-shell.d.ts +7 -0
  46. package/dist/components/docyrus/adaptive-card/inputs/input-text.d.ts +4 -0
  47. package/dist/components/docyrus/adaptive-card/inputs/input-time.d.ts +4 -0
  48. package/dist/components/docyrus/adaptive-card/inputs/input-toggle.d.ts +4 -0
  49. package/dist/components/docyrus/adaptive-card/inputs/use-input-register.d.ts +2 -0
  50. package/dist/components/docyrus/adaptive-card/lib/chart-palette.d.ts +4 -0
  51. package/dist/components/docyrus/adaptive-card/lib/collect-inputs.d.ts +3 -0
  52. package/dist/components/docyrus/adaptive-card/lib/color-tokens.d.ts +9 -0
  53. package/dist/components/docyrus/adaptive-card/lib/default-host-config.d.ts +3 -0
  54. package/dist/components/docyrus/adaptive-card/lib/expression.d.ts +12 -0
  55. package/dist/components/docyrus/adaptive-card/lib/interpolate.d.ts +2 -0
  56. package/dist/components/docyrus/adaptive-card/lib/parse-card.d.ts +4 -0
  57. package/dist/components/docyrus/adaptive-card/lib/size-tokens.d.ts +16 -0
  58. package/dist/components/docyrus/adaptive-card/lib/spacing-tokens.d.ts +4 -0
  59. package/dist/components/docyrus/adaptive-card/lib/templating.d.ts +6 -0
  60. package/dist/components/docyrus/adaptive-card/lib/validate-inputs.d.ts +7 -0
  61. package/dist/components/docyrus/adaptive-card/lib/version.d.ts +5 -0
  62. package/dist/components/docyrus/adaptive-card/register-default-elements.d.ts +1 -0
  63. package/dist/components/generative-tool.d.ts +7 -1
  64. package/dist/components/template-output.d.ts +11 -0
  65. package/dist/components/ui/circular-progress.d.ts +24 -0
  66. package/dist/hooks/docyrus/use-adaptive-card.d.ts +43 -0
  67. package/dist/hooks/use-assistant-api.d.ts +6 -0
  68. package/dist/index.js +4677 -471
  69. package/dist/index.js.map +1 -1
  70. package/dist/internal/plate-editor/editor/plugins/emoji-kit.d.ts +2 -5
  71. package/dist/internal/plate-editor/editor/plugins/mention-base-kit.d.ts +2 -11
  72. package/dist/internal/plate-editor/editor/plugins/mention-kit.d.ts +2 -11
  73. package/dist/internal/plate-editor/editor/plugins/slash-kit.d.ts +2 -1
  74. package/dist/styles.css +441 -0
  75. package/dist/views/assistant-view.d.ts +5 -0
  76. package/dist/views/chat-panel.d.ts +7 -1
  77. package/dist/views/message-list.d.ts +2 -1
  78. package/package.json +10 -2
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardAccordion } from '../adaptive-card-types';
2
+ export declare function AccordionElement({ element }: {
3
+ element: AdaptiveCardAccordion;
4
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardActionSetElement } from '../adaptive-card-types';
2
+ export declare function ActionSetElement({ element }: {
3
+ element: AdaptiveCardActionSetElement;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardBadge } from '../adaptive-card-types';
2
+ export declare function BadgeElement({ element }: {
3
+ element: AdaptiveCardBadge;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardCarousel } from '../adaptive-card-types';
2
+ export declare function CarouselElement({ element }: {
3
+ element: AdaptiveCardCarousel;
4
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,19 @@
1
+ import { type AdaptiveCardChartDonut, type AdaptiveCardChartGauge, type AdaptiveCardChartHorizontalBar, type AdaptiveCardChartLine, type AdaptiveCardChartPie, type AdaptiveCardChartVerticalBar } from '../adaptive-card-types';
2
+ export declare function ChartVerticalBarElement({ element }: {
3
+ element: AdaptiveCardChartVerticalBar;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ export declare function ChartHorizontalBarElement({ element }: {
6
+ element: AdaptiveCardChartHorizontalBar;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ export declare function ChartPieElement({ element }: {
9
+ element: AdaptiveCardChartPie;
10
+ }): import("react/jsx-runtime").JSX.Element;
11
+ export declare function ChartDonutElement({ element }: {
12
+ element: AdaptiveCardChartDonut;
13
+ }): import("react/jsx-runtime").JSX.Element;
14
+ export declare function ChartLineElement({ element }: {
15
+ element: AdaptiveCardChartLine;
16
+ }): import("react/jsx-runtime").JSX.Element;
17
+ export declare function ChartGaugeElement({ element }: {
18
+ element: AdaptiveCardChartGauge;
19
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { type ReactNode } from 'react';
2
+ export declare function formatChartValue(value: number, format: 'short' | 'long' | 'percentage' | undefined): string;
3
+ export declare function ChartFrame({ title, showTitle, maxWidth, children }: {
4
+ title?: string;
5
+ showTitle?: boolean;
6
+ maxWidth?: number;
7
+ children: ReactNode;
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardCodeBlock } from '../adaptive-card-types';
2
+ export declare function CodeBlockElement({ element }: {
3
+ element: AdaptiveCardCodeBlock;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardColumnSet } from '../adaptive-card-types';
2
+ export declare function ColumnSetElement({ element }: {
3
+ element: AdaptiveCardColumnSet;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardComponent } from '../adaptive-card-types';
2
+ export declare function ComponentElement({ element }: {
3
+ element: AdaptiveCardComponent;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardCompoundButton } from '../adaptive-card-types';
2
+ export declare function CompoundButtonElement({ element }: {
3
+ element: AdaptiveCardCompoundButton;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardContainer } from '../adaptive-card-types';
2
+ export declare function ContainerElement({ element }: {
3
+ element: AdaptiveCardContainer;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardFactSet } from '../adaptive-card-types';
2
+ export declare function FactSetElement({ element }: {
3
+ element: AdaptiveCardFactSet;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type AdaptiveCardIcon } from '../adaptive-card-types';
3
+ export declare function renderLucideIcon(name: string, className?: string): ReactNode;
4
+ export declare function IconElement({ element }: {
5
+ element: AdaptiveCardIcon;
6
+ }): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardImage } from '../adaptive-card-types';
2
+ export declare function ImageElement({ element }: {
3
+ element: AdaptiveCardImage;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardImageSet } from '../adaptive-card-types';
2
+ export declare function ImageSetElement({ element }: {
3
+ element: AdaptiveCardImageSet;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardLoopComponent } from '../adaptive-card-types';
2
+ export declare function LoopComponentElement({ element }: {
3
+ element: AdaptiveCardLoopComponent;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardMedia } from '../adaptive-card-types';
2
+ export declare function MediaElement({ element }: {
3
+ element: AdaptiveCardMedia;
4
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardProgressBar } from '../adaptive-card-types';
2
+ export declare function ProgressBarElement({ element }: {
3
+ element: AdaptiveCardProgressBar;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardProgressRing } from '../adaptive-card-types';
2
+ export declare function ProgressRingElement({ element }: {
3
+ element: AdaptiveCardProgressRing;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { type AdaptiveCardRating } from '../adaptive-card-types';
2
+ export declare function RatingElement({ element }: {
3
+ element: AdaptiveCardRating;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ export declare function RatingStars({ value, max, size, color }: {
6
+ value: number;
7
+ max: number;
8
+ size: 'medium' | 'large';
9
+ color: 'marigold' | 'neutral';
10
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardRichTextBlock } from '../adaptive-card-types';
2
+ export declare function RichTextBlockElement({ element }: {
3
+ element: AdaptiveCardRichTextBlock;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardTabSet } from '../adaptive-card-types';
2
+ export declare function TabSetElement({ element }: {
3
+ element: AdaptiveCardTabSet;
4
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardTable } from '../adaptive-card-types';
2
+ export declare function TableElement({ element }: {
3
+ element: AdaptiveCardTable;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardTextBlock } from '../adaptive-card-types';
2
+ export declare function TextBlockElement({ element }: {
3
+ element: AdaptiveCardTextBlock;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ export { AdaptiveCard } from './adaptive-card';
2
+ export { AdaptiveCardView } from './adaptive-card-view';
3
+ export { defaultHostConfig, mergeHostConfig } from './lib/default-host-config';
4
+ export { parseAdaptiveCard, isAdaptiveCard, isSafeBackgroundUrl } from './lib/parse-card';
5
+ export { validateInput, validateInputs } from './lib/validate-inputs';
6
+ export { collectInputs, buildSubmitData } from './lib/collect-inputs';
7
+ export { expandTemplate } from './lib/templating';
8
+ export { evaluateExpression, interpolateString, registerExpressionFunction } from './lib/expression';
9
+ export { registerElement, getElementRenderer, listElementTypes } from './element-registry';
10
+ export { registerDefaultElements } from './register-default-elements';
11
+ export { useAdaptiveCardContext, useAdaptiveCardInput } from './adaptive-card-context';
12
+ export { ElementNode, ElementList } from './element-node';
13
+ export { ActionBar } from './action-bar';
14
+ export type { AdaptiveCardPayload, AdaptiveCardElement, AdaptiveCardElementBase, AdaptiveCardAction, AdaptiveCardSelectAction, AdaptiveCardActionSubmit, AdaptiveCardActionExecute, AdaptiveCardActionOpenUrl, AdaptiveCardActionShowCard, AdaptiveCardActionToggleVisibility, AdaptiveCardInput, AdaptiveCardInputText, AdaptiveCardInputNumber, AdaptiveCardInputDate, AdaptiveCardInputTime, AdaptiveCardInputToggle, AdaptiveCardInputChoiceSet, AdaptiveCardContainer, AdaptiveCardColumnSet, AdaptiveCardColumn, AdaptiveCardFactSet, AdaptiveCardFact, AdaptiveCardImage, AdaptiveCardImageSet, AdaptiveCardTextBlock, AdaptiveCardRichTextBlock, AdaptiveCardTextRun, AdaptiveCardInline, AdaptiveCardMedia, AdaptiveCardMediaSource, AdaptiveCardCaptionSource, AdaptiveCardTable, AdaptiveCardTableRow, AdaptiveCardTableCell, AdaptiveCardTableColumn, AdaptiveCardActionSetElement, AdaptiveCardChoice, AdaptiveCardCustomElement, AdaptiveCardActionEvent, AdaptiveCardSubmitEvent, AdaptiveCardExecuteEvent, AdaptiveCardOpenUrlEvent, AdaptiveCardToggleVisibilityEvent, AdaptiveCardShowCardEvent, AdaptiveCardHostConfig, AdaptiveCardHostConfigOverride, AdaptiveCardInputValue, AdaptiveCardProps, ElementRenderer } from './adaptive-card-types';
15
+ export type { AdaptiveCardViewProps } from './adaptive-card-view';
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardInputChoiceSet } from '../adaptive-card-types';
2
+ export declare function InputChoiceSetElement({ element }: {
3
+ element: AdaptiveCardInputChoiceSet;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardInputDate } from '../adaptive-card-types';
2
+ export declare function InputDateElement({ element }: {
3
+ element: AdaptiveCardInputDate;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardInputNumber } from '../adaptive-card-types';
2
+ export declare function InputNumberElement({ element }: {
3
+ element: AdaptiveCardInputNumber;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardInputRating } from '../adaptive-card-types';
2
+ export declare function InputRatingElement({ element }: {
3
+ element: AdaptiveCardInputRating;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type AdaptiveCardInput } from '../adaptive-card-types';
3
+ export declare function InputShell({ input, children, inputId }: {
4
+ input: AdaptiveCardInput;
5
+ inputId: string;
6
+ children: ReactNode;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardInputText } from '../adaptive-card-types';
2
+ export declare function InputTextElement({ element }: {
3
+ element: AdaptiveCardInputText;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardInputTime } from '../adaptive-card-types';
2
+ export declare function InputTimeElement({ element }: {
3
+ element: AdaptiveCardInputTime;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardInputToggle } from '../adaptive-card-types';
2
+ export declare function InputToggleElement({ element }: {
3
+ element: AdaptiveCardInputToggle;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { type AdaptiveCardInputValue } from '../adaptive-card-types';
2
+ export declare function useInputRegister(id: string, initial: AdaptiveCardInputValue): void;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardChartColor, type AdaptiveCardChartColorSet } from '../adaptive-card-types';
2
+ export declare function resolveColor(value: string | undefined): string | undefined;
3
+ export declare function resolvePalette(colorSet: AdaptiveCardChartColorSet | undefined): Array<string>;
4
+ export declare function pickColor(index: number, explicit: AdaptiveCardChartColor | undefined, colorSet: AdaptiveCardChartColorSet | undefined): string;
@@ -0,0 +1,3 @@
1
+ import { type AdaptiveCardActionExecute, type AdaptiveCardActionSubmit, type AdaptiveCardElement, type AdaptiveCardInput, type AdaptiveCardInputValue, type AdaptiveCardPayload } from '../adaptive-card-types';
2
+ export declare function collectInputs(elements: Array<AdaptiveCardElement> | undefined, visibilityOverrides: Record<string, boolean>): Array<AdaptiveCardInput>;
3
+ export declare function buildSubmitData(action: AdaptiveCardActionSubmit | AdaptiveCardActionExecute, card: AdaptiveCardPayload, values: Record<string, AdaptiveCardInputValue>, visibilityOverrides: Record<string, boolean>): Record<string, AdaptiveCardInputValue> | unknown;
@@ -0,0 +1,9 @@
1
+ import { type AdaptiveCardColor, type AdaptiveCardContainerStyle } from '../adaptive-card-types';
2
+ export declare const TEXT_COLOR: Record<AdaptiveCardColor, {
3
+ default: string;
4
+ subtle: string;
5
+ }>;
6
+ export declare function getTextColorClass(color: AdaptiveCardColor | undefined, isSubtle?: boolean): string;
7
+ export declare const CONTAINER_STYLE: Record<AdaptiveCardContainerStyle, string>;
8
+ export declare function getContainerStyleClass(style: AdaptiveCardContainerStyle | undefined): string;
9
+ export declare const HIGHLIGHT_CLASS = "bg-yellow-200 dark:bg-yellow-500/30 px-0.5 rounded";
@@ -0,0 +1,3 @@
1
+ import { type AdaptiveCardHostConfig, type AdaptiveCardHostConfigOverride } from '../adaptive-card-types';
2
+ export declare const defaultHostConfig: AdaptiveCardHostConfig;
3
+ export declare function mergeHostConfig(base: AdaptiveCardHostConfig, override: AdaptiveCardHostConfigOverride | undefined): AdaptiveCardHostConfig;
@@ -0,0 +1,12 @@
1
+ export interface ExpressionScope {
2
+ data: unknown;
3
+ root: unknown;
4
+ index?: number;
5
+ }
6
+ type ExprValue = unknown;
7
+ type ExprFn = (...args: Array<ExprValue>) => ExprValue;
8
+ export declare function registerExpressionFunction(name: string, fn: ExprFn): void;
9
+ export declare function evaluateExpression(expr: string, scope: ExpressionScope): ExprValue;
10
+ export declare function interpolateString(input: string, scope: ExpressionScope): string;
11
+ export declare function evaluateMaybeExpression(input: string, scope: ExpressionScope): ExprValue;
12
+ export {};
@@ -0,0 +1,2 @@
1
+ import { type AdaptiveCardInputValue } from '../adaptive-card-types';
2
+ export declare function interpolateData<T>(data: T, values: Record<string, AdaptiveCardInputValue>): T;
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardPayload } from '../adaptive-card-types';
2
+ export declare function isAdaptiveCard(payload: unknown): payload is AdaptiveCardPayload;
3
+ export declare function isSafeBackgroundUrl(url: string | undefined): url is string;
4
+ export declare function parseAdaptiveCard(payload: unknown): AdaptiveCardPayload | null;
@@ -0,0 +1,16 @@
1
+ import { type AdaptiveCardFontSize, type AdaptiveCardFontType, type AdaptiveCardFontWeight, type AdaptiveCardHorizontalAlignment, type AdaptiveCardImageSize, type AdaptiveCardVerticalAlignment } from '../adaptive-card-types';
2
+ export declare const FONT_SIZE_CLASS: Record<AdaptiveCardFontSize, string>;
3
+ export declare const FONT_WEIGHT_CLASS: Record<AdaptiveCardFontWeight, string>;
4
+ export declare const FONT_TYPE_CLASS: Record<AdaptiveCardFontType, string>;
5
+ export declare const HORIZONTAL_ALIGN_CLASS: Record<AdaptiveCardHorizontalAlignment, string>;
6
+ export declare const HORIZONTAL_FLEX_CLASS: Record<AdaptiveCardHorizontalAlignment, string>;
7
+ export declare const VERTICAL_FLEX_CLASS: Record<AdaptiveCardVerticalAlignment, string>;
8
+ export declare const LINE_CLAMP_CLASS: Record<number, string>;
9
+ export declare function getLineClampClass(maxLines: number | undefined): string;
10
+ export declare function getHeadingTag(size: AdaptiveCardFontSize | undefined): 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
11
+ export declare const IMAGE_SIZE_PX: Record<AdaptiveCardImageSize, number | null>;
12
+ export declare function resolveImageDimension(size: AdaptiveCardImageSize | undefined, width: string | undefined, height: string | undefined): {
13
+ width?: string;
14
+ height?: string;
15
+ className: string;
16
+ };
@@ -0,0 +1,4 @@
1
+ import { type AdaptiveCardSpacing } from '../adaptive-card-types';
2
+ export declare const SPACING_MARGIN_TOP: Record<AdaptiveCardSpacing, string>;
3
+ export declare function getSpacingMarginTop(spacing: AdaptiveCardSpacing | undefined): string;
4
+ export declare const PADDING_CLASS = "p-3";
@@ -0,0 +1,6 @@
1
+ import { interpolateString } from './expression';
2
+ export interface ExpandTemplateOptions {
3
+ host?: unknown;
4
+ }
5
+ export declare function expandTemplate<T = unknown>(template: T, data: unknown, options?: ExpandTemplateOptions): T;
6
+ export { interpolateString };
@@ -0,0 +1,7 @@
1
+ import { type AdaptiveCardInput, type AdaptiveCardInputValue } from '../adaptive-card-types';
2
+ export interface ValidationResult {
3
+ isValid: boolean;
4
+ errorMessage?: string;
5
+ }
6
+ export declare function validateInput(input: AdaptiveCardInput, value: AdaptiveCardInputValue): ValidationResult;
7
+ export declare function validateInputs(inputs: Array<AdaptiveCardInput>, values: Record<string, AdaptiveCardInputValue>): Record<string, ValidationResult>;
@@ -0,0 +1,5 @@
1
+ export declare function gte(a: string, b: string): boolean;
2
+ export declare function gt(a: string, b: string): boolean;
3
+ export declare function isValidVersion(value: unknown): value is string;
4
+ export declare const RENDERER_CAPABILITIES: Readonly<Record<string, string>>;
5
+ export declare function satisfiesRequires(requires: Record<string, string> | undefined, capabilities?: Record<string, string>): boolean;
@@ -0,0 +1 @@
1
+ export declare function registerDefaultElements(): void;
@@ -22,6 +22,12 @@ interface Part {
22
22
  interface GenerativeUIToolProps {
23
23
  part: Part;
24
24
  toolName: string;
25
+ /**
26
+ * Metadata for this tool resolved from the agent's `tools` array
27
+ * (see `tenant_ai_tool`). When `outputRenderType === 'adaptive_card'`,
28
+ * `outputRenderTemplate` is rendered with `part.output` as the data binding.
29
+ */
30
+ toolMeta?: Record<string, any> | null;
25
31
  onToolAction: (event: ToolActionEvent) => void;
26
32
  openCanvasView?: (options: {
27
33
  type: string;
@@ -62,5 +68,5 @@ interface GenerativeUIToolProps {
62
68
  */
63
69
  subagents?: Array<Record<string, any>>;
64
70
  }
65
- export declare function GenerativeUITool({ part, toolName, onToolAction, openCanvasView, onUseWorkResult, onSendSpreadsheetCommands, onForwardToAgent, onInsertText, onReplaceText, workId, subagents }: GenerativeUIToolProps): import("react/jsx-runtime").JSX.Element | null;
71
+ export declare function GenerativeUITool({ part, toolName, toolMeta, onToolAction, openCanvasView, onUseWorkResult, onSendSpreadsheetCommands, onForwardToAgent, onInsertText, onReplaceText, workId, subagents }: GenerativeUIToolProps): import("react/jsx-runtime").JSX.Element | null;
66
72
  export {};
@@ -0,0 +1,11 @@
1
+ import 'highlight.js/styles/vs2015.css';
2
+ interface TemplateOutputProps {
3
+ /** Render mode chosen via `tenant_ai_tool.output_render_type`. */
4
+ renderType: 'markdown' | 'html';
5
+ /** Raw Handlebars template stored in `tenant_ai_tool.output_render_template`. */
6
+ template: string;
7
+ /** Tool output bound as the Handlebars context. */
8
+ data: unknown;
9
+ }
10
+ export declare function TemplateOutput({ renderType, template, data }: TemplateOutputProps): import("react/jsx-runtime").JSX.Element | null;
11
+ export {};
@@ -0,0 +1,24 @@
1
+ import * as React from "react";
2
+ interface CircularProgressProps extends React.ComponentProps<"div"> {
3
+ value?: number | null | undefined;
4
+ getValueText?(value: number, min: number, max: number): string;
5
+ min?: number;
6
+ max?: number;
7
+ size?: number;
8
+ thickness?: number;
9
+ label?: string;
10
+ asChild?: boolean;
11
+ }
12
+ declare function CircularProgress(props: CircularProgressProps): import("react/jsx-runtime").JSX.Element;
13
+ declare function CircularProgressIndicator(props: React.ComponentProps<"svg">): import("react/jsx-runtime").JSX.Element;
14
+ declare namespace CircularProgressIndicator {
15
+ var displayName: string;
16
+ }
17
+ declare function CircularProgressTrack(props: React.ComponentProps<"circle">): import("react/jsx-runtime").JSX.Element;
18
+ declare function CircularProgressRange(props: React.ComponentProps<"circle">): import("react/jsx-runtime").JSX.Element;
19
+ interface CircularProgressValueTextProps extends React.ComponentProps<"span"> {
20
+ asChild?: boolean;
21
+ }
22
+ declare function CircularProgressValueText(props: CircularProgressValueTextProps): import("react/jsx-runtime").JSX.Element;
23
+ declare function CircularProgressCombined(props: CircularProgressProps): import("react/jsx-runtime").JSX.Element;
24
+ export { CircularProgress, CircularProgressIndicator, CircularProgressTrack, CircularProgressRange, CircularProgressValueText, CircularProgressCombined, type CircularProgressProps, };
@@ -0,0 +1,43 @@
1
+ import { type AdaptiveCardActionEvent, type AdaptiveCardActionExecute, type AdaptiveCardActionOpenUrl, type AdaptiveCardActionResetInputs, type AdaptiveCardActionShowCard, type AdaptiveCardActionSubmit, type AdaptiveCardActionToggleVisibility, type AdaptiveCardChoice, type AdaptiveCardHostConfig, type AdaptiveCardHostConfigOverride, type AdaptiveCardInputValue, type AdaptiveCardPayload, type ElementRenderer } from '../../components/docyrus/adaptive-card/adaptive-card-types';
2
+ import { type ValidationResult } from '../../components/docyrus/adaptive-card/lib/validate-inputs';
3
+ import { type AdaptiveCardContextValue } from '../../components/docyrus/adaptive-card/adaptive-card-context';
4
+ export interface AdaptiveCardChoiceQueryRequest {
5
+ dataset: string;
6
+ search: string;
7
+ inputId: string;
8
+ }
9
+ export interface UseAdaptiveCardOptions {
10
+ onAction?: (event: AdaptiveCardActionEvent) => void | Promise<void>;
11
+ hostConfig?: AdaptiveCardHostConfigOverride;
12
+ customElements?: Record<string, ElementRenderer>;
13
+ onChoiceQuery?: (request: AdaptiveCardChoiceQueryRequest) => Promise<Array<AdaptiveCardChoice>>;
14
+ }
15
+ export interface UseAdaptiveCardReturn {
16
+ card: AdaptiveCardPayload;
17
+ hostConfig: AdaptiveCardHostConfig;
18
+ state: {
19
+ inputs: Record<string, AdaptiveCardInputValue>;
20
+ validations: Record<string, ValidationResult>;
21
+ visibilityOverrides: Record<string, boolean>;
22
+ showCardOpen: Record<string, boolean>;
23
+ hasSubmittedOnce: boolean;
24
+ };
25
+ controls: {
26
+ setInput: (id: string, value: AdaptiveCardInputValue) => void;
27
+ submit: (action: AdaptiveCardActionSubmit) => void;
28
+ execute: (action: AdaptiveCardActionExecute) => void;
29
+ openUrl: (action: AdaptiveCardActionOpenUrl) => void;
30
+ toggleVisibility: (action: AdaptiveCardActionToggleVisibility) => void;
31
+ toggleShowCard: (action: AdaptiveCardActionShowCard) => void;
32
+ resetInputs: (action: AdaptiveCardActionResetInputs) => void;
33
+ validateAll: () => {
34
+ ok: boolean;
35
+ firstInvalidId?: string;
36
+ errors: Record<string, ValidationResult>;
37
+ };
38
+ reset: () => void;
39
+ };
40
+ cardProps: AdaptiveCardContextValue;
41
+ }
42
+ export type { AdaptiveCardInputValue };
43
+ export declare function useAdaptiveCard(card: AdaptiveCardPayload, options?: UseAdaptiveCardOptions): UseAdaptiveCardReturn;
@@ -20,6 +20,12 @@ interface UseAssistantApiReturn {
20
20
  * `call*Agent` tool calls.
21
21
  */
22
22
  subagents: Array<Record<string, any>>;
23
+ /**
24
+ * Tool metadata for the active agent (and its direct sub-agents). Used by
25
+ * the renderer to resolve `outputRenderType` / `outputRenderTemplate` for
26
+ * an in-flight tool call (e.g. switch to AdaptiveCard rendering).
27
+ */
28
+ agentTools: Array<Record<string, any>>;
23
29
  fetchThreads: () => Promise<AssistantSession[]>;
24
30
  fetchProjectThreads: (projectId: string) => Promise<AssistantSession[]>;
25
31
  loadThreadMessages: (threadId: string) => Promise<any[]>;