@meistrari/chat-ui-lang 0.3.0 → 0.4.0
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/README.md +105 -13
- package/dist/actions.d.ts +9 -0
- package/dist/answers.d.ts +16 -0
- package/dist/components/actions.d.ts +47 -0
- package/dist/components/chart.d.ts +23 -0
- package/dist/components/chat.d.ts +55 -0
- package/dist/components/data.d.ts +31 -0
- package/dist/components/form.d.ts +42 -0
- package/dist/components/layout.d.ts +1179 -0
- package/dist/components/text.d.ts +14 -0
- package/dist/define.d.ts +8 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +935 -0
- package/dist/library.d.ts +6 -0
- package/dist/nuxt/module.d.mts +9 -0
- package/dist/nuxt/module.json +9 -0
- package/dist/nuxt/module.mjs +31 -0
- package/dist/nuxt/runtime/actions.d.ts +15 -0
- package/dist/nuxt/runtime/actions.js +40 -0
- package/dist/nuxt/runtime/components/openui-widget.d.vue.ts +21 -0
- package/dist/nuxt/runtime/components/openui-widget.vue +72 -0
- package/dist/nuxt/runtime/components/openui-widget.vue.d.ts +21 -0
- package/dist/nuxt/runtime/components/plain-prose.d.vue.ts +7 -0
- package/dist/nuxt/runtime/components/plain-prose.vue +12 -0
- package/dist/nuxt/runtime/components/plain-prose.vue.d.ts +7 -0
- package/dist/nuxt/runtime/components/widgets/bar-chart.d.vue.ts +10 -0
- package/dist/nuxt/runtime/components/widgets/bar-chart.vue +39 -0
- package/dist/nuxt/runtime/components/widgets/bar-chart.vue.d.ts +10 -0
- package/dist/nuxt/runtime/components/widgets/bar.d.vue.ts +10 -0
- package/dist/nuxt/runtime/components/widgets/bar.vue +12 -0
- package/dist/nuxt/runtime/components/widgets/bar.vue.d.ts +10 -0
- package/dist/nuxt/runtime/components/widgets/button.d.vue.ts +11 -0
- package/dist/nuxt/runtime/components/widgets/button.vue +30 -0
- package/dist/nuxt/runtime/components/widgets/button.vue.d.ts +11 -0
- package/dist/nuxt/runtime/components/widgets/buttons.d.vue.ts +8 -0
- package/dist/nuxt/runtime/components/widgets/buttons.vue +14 -0
- package/dist/nuxt/runtime/components/widgets/buttons.vue.d.ts +8 -0
- package/dist/nuxt/runtime/components/widgets/callout.d.vue.ts +11 -0
- package/dist/nuxt/runtime/components/widgets/callout.vue +27 -0
- package/dist/nuxt/runtime/components/widgets/callout.vue.d.ts +11 -0
- package/dist/nuxt/runtime/components/widgets/card.d.vue.ts +9 -0
- package/dist/nuxt/runtime/components/widgets/card.vue +19 -0
- package/dist/nuxt/runtime/components/widgets/card.vue.d.ts +9 -0
- package/dist/nuxt/runtime/components/widgets/checkbox.d.vue.ts +9 -0
- package/dist/nuxt/runtime/components/widgets/checkbox.vue +26 -0
- package/dist/nuxt/runtime/components/widgets/checkbox.vue.d.ts +9 -0
- package/dist/nuxt/runtime/components/widgets/citation.d.vue.ts +9 -0
- package/dist/nuxt/runtime/components/widgets/citation.vue +9 -0
- package/dist/nuxt/runtime/components/widgets/citation.vue.d.ts +9 -0
- package/dist/nuxt/runtime/components/widgets/col.d.vue.ts +10 -0
- package/dist/nuxt/runtime/components/widgets/col.vue +16 -0
- package/dist/nuxt/runtime/components/widgets/col.vue.d.ts +10 -0
- package/dist/nuxt/runtime/components/widgets/file-card.d.vue.ts +9 -0
- package/dist/nuxt/runtime/components/widgets/file-card.vue +9 -0
- package/dist/nuxt/runtime/components/widgets/file-card.vue.d.ts +9 -0
- package/dist/nuxt/runtime/components/widgets/form.d.vue.ts +10 -0
- package/dist/nuxt/runtime/components/widgets/form.vue +60 -0
- package/dist/nuxt/runtime/components/widgets/form.vue.d.ts +10 -0
- package/dist/nuxt/runtime/components/widgets/image.d.vue.ts +10 -0
- package/dist/nuxt/runtime/components/widgets/image.vue +34 -0
- package/dist/nuxt/runtime/components/widgets/image.vue.d.ts +10 -0
- package/dist/nuxt/runtime/components/widgets/input.d.vue.ts +10 -0
- package/dist/nuxt/runtime/components/widgets/input.vue +23 -0
- package/dist/nuxt/runtime/components/widgets/input.vue.d.ts +10 -0
- package/dist/nuxt/runtime/components/widgets/markdown.d.vue.ts +9 -0
- package/dist/nuxt/runtime/components/widgets/markdown.vue +14 -0
- package/dist/nuxt/runtime/components/widgets/markdown.vue.d.ts +9 -0
- package/dist/nuxt/runtime/components/widgets/metric.d.vue.ts +11 -0
- package/dist/nuxt/runtime/components/widgets/metric.vue +20 -0
- package/dist/nuxt/runtime/components/widgets/metric.vue.d.ts +11 -0
- package/dist/nuxt/runtime/components/widgets/option.d.vue.ts +10 -0
- package/dist/nuxt/runtime/components/widgets/option.vue +12 -0
- package/dist/nuxt/runtime/components/widgets/option.vue.d.ts +10 -0
- package/dist/nuxt/runtime/components/widgets/question.d.vue.ts +11 -0
- package/dist/nuxt/runtime/components/widgets/question.vue +15 -0
- package/dist/nuxt/runtime/components/widgets/question.vue.d.ts +11 -0
- package/dist/nuxt/runtime/components/widgets/questions.d.vue.ts +9 -0
- package/dist/nuxt/runtime/components/widgets/questions.vue +91 -0
- package/dist/nuxt/runtime/components/widgets/questions.vue.d.ts +9 -0
- package/dist/nuxt/runtime/components/widgets/select.d.vue.ts +10 -0
- package/dist/nuxt/runtime/components/widgets/select.vue +27 -0
- package/dist/nuxt/runtime/components/widgets/select.vue.d.ts +10 -0
- package/dist/nuxt/runtime/components/widgets/stack.d.vue.ts +9 -0
- package/dist/nuxt/runtime/components/widgets/stack.vue +18 -0
- package/dist/nuxt/runtime/components/widgets/stack.vue.d.ts +9 -0
- package/dist/nuxt/runtime/components/widgets/table.d.vue.ts +9 -0
- package/dist/nuxt/runtime/components/widgets/table.vue +41 -0
- package/dist/nuxt/runtime/components/widgets/table.vue.d.ts +9 -0
- package/dist/nuxt/runtime/context.d.ts +30 -0
- package/dist/nuxt/runtime/context.js +4 -0
- package/dist/nuxt/runtime/form-fields.d.ts +10 -0
- package/dist/nuxt/runtime/form-fields.js +30 -0
- package/dist/nuxt/runtime/program.d.ts +15 -0
- package/dist/nuxt/runtime/program.js +74 -0
- package/dist/nuxt/runtime/registry.d.ts +4 -0
- package/dist/nuxt/runtime/registry.js +44 -0
- package/dist/nuxt/runtime/render.d.ts +21 -0
- package/dist/nuxt/runtime/render.js +48 -0
- package/dist/nuxt/runtime/use-openui-context.d.ts +2 -0
- package/dist/nuxt/runtime/use-openui-context.js +8 -0
- package/dist/nuxt/types.d.mts +9 -0
- package/dist/profiles.d.ts +10 -0
- package/dist/prompt.d.ts +5 -0
- package/dist/safe-url.d.ts +2 -0
- package/dist/segments.d.ts +16 -0
- package/dist/slack.d.ts +28 -0
- package/dist/version.d.ts +2 -0
- package/dist/widget-context.d.ts +13 -0
- package/package.json +72 -31
- package/src/actions.ts +0 -12
- package/src/components/actions.ts +0 -21
- package/src/components/chart.ts +0 -22
- package/src/components/chat.ts +0 -60
- package/src/components/data.ts +0 -32
- package/src/components/form.ts +0 -41
- package/src/components/layout.ts +0 -30
- package/src/components/text.ts +0 -20
- package/src/define.ts +0 -9
- package/src/index.ts +0 -14
- package/src/library.ts +0 -64
- package/src/prompt.ts +0 -54
- package/src/version.ts +0 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const Markdown: import("..").UiComponent<z.ZodObject<{
|
|
3
|
+
text: z.ZodString;
|
|
4
|
+
}, z.core.$strip>>;
|
|
5
|
+
export declare const Callout: import("..").UiComponent<z.ZodObject<{
|
|
6
|
+
text: z.ZodString;
|
|
7
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
success: "success";
|
|
9
|
+
error: "error";
|
|
10
|
+
info: "info";
|
|
11
|
+
warning: "warning";
|
|
12
|
+
}>>;
|
|
13
|
+
title: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>>;
|
package/dist/define.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DefinedComponent } from '@openuidev/lang-core';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
export type UiComponent<T extends z.ZodObject = z.ZodObject> = DefinedComponent<T, null>;
|
|
4
|
+
export declare function defineUiComponent<T extends z.ZodObject>(config: {
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
props: T;
|
|
8
|
+
}): UiComponent<T>;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { actions, CopyText } from './actions';
|
|
2
|
+
export { formatQuestionAnswers } from './answers';
|
|
3
|
+
export type { AnswerableQuestion, QuestionAnswer } from './answers';
|
|
4
|
+
export { Button, Buttons } from './components/actions';
|
|
5
|
+
export { Bar, BarChart } from './components/chart';
|
|
6
|
+
export { Citation, FileCard, Image, Option, Question, Questions } from './components/chat';
|
|
7
|
+
export { Col, Metric, Table } from './components/data';
|
|
8
|
+
export { Checkbox, Form, Input, Select } from './components/form';
|
|
9
|
+
export { Card, components, Stack } from './components/layout';
|
|
10
|
+
export { Callout, Markdown } from './components/text';
|
|
11
|
+
export { defineUiComponent } from './define';
|
|
12
|
+
export type { UiComponent } from './define';
|
|
13
|
+
export { componentNames, library } from './library';
|
|
14
|
+
export type { UiLibrary } from './library';
|
|
15
|
+
export { profiles, UI_PROFILES } from './profiles';
|
|
16
|
+
export type { UiProfile, UiProfileDefinition } from './profiles';
|
|
17
|
+
export { prompt } from './prompt';
|
|
18
|
+
export { isSafeUrl } from './safe-url';
|
|
19
|
+
export { maskWidgets, splitAnswer, WIDGET_PENDING_TEXT } from './segments';
|
|
20
|
+
export type { AnswerSegment } from './segments';
|
|
21
|
+
export { isSlackWidgetLinkAction, isSlackWidgetSendAction, parseSlackWidgetAction, renderSlackAnswer } from './slack';
|
|
22
|
+
export type { SlackAnswer, SlackBlock, SlackRenderOptions, SlackWidgetAction } from './slack';
|
|
23
|
+
export { LIBRARY_VERSION, UI_LANG_FENCE } from './version';
|
|
24
|
+
export { formatWidgetContext } from './widget-context';
|
|
25
|
+
export type { WidgetContextDrop } from './widget-context';
|