@chai-ui/vue 0.0.0-stage → 0.7.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.
Files changed (88) hide show
  1. package/DESIGN.md +235 -0
  2. package/LICENSE +21 -0
  3. package/README.md +122 -2
  4. package/dist/ChaiProvider.vue.d.ts +24 -0
  5. package/dist/ChaiProvider.vue.d.ts.map +1 -0
  6. package/dist/Composer.vue.d.ts +94 -0
  7. package/dist/Composer.vue.d.ts.map +1 -0
  8. package/dist/EditCard.vue.d.ts +38 -0
  9. package/dist/EditCard.vue.d.ts.map +1 -0
  10. package/dist/MediaAnalyzer.vue.d.ts +54 -0
  11. package/dist/MediaAnalyzer.vue.d.ts.map +1 -0
  12. package/dist/PageSlide.vue.d.ts +23 -0
  13. package/dist/PageSlide.vue.d.ts.map +1 -0
  14. package/dist/ResultCard.vue.d.ts +29 -0
  15. package/dist/ResultCard.vue.d.ts.map +1 -0
  16. package/dist/composer/AttachMenu.vue.d.ts +17 -0
  17. package/dist/composer/AttachMenu.vue.d.ts.map +1 -0
  18. package/dist/composer/Chip.vue.d.ts +14 -0
  19. package/dist/composer/Chip.vue.d.ts.map +1 -0
  20. package/dist/dismiss.d.ts +4 -0
  21. package/dist/dismiss.d.ts.map +1 -0
  22. package/dist/edit-card/ExpandedImage.vue.d.ts +12 -0
  23. package/dist/edit-card/ExpandedImage.vue.d.ts.map +1 -0
  24. package/dist/edit-card/RegionShape.vue.d.ts +20 -0
  25. package/dist/edit-card/RegionShape.vue.d.ts.map +1 -0
  26. package/dist/icons.d.ts +43 -0
  27. package/dist/icons.d.ts.map +1 -0
  28. package/dist/index.d.ts +16 -0
  29. package/dist/index.d.ts.map +1 -0
  30. package/dist/index.js +2515 -0
  31. package/dist/index.js.map +1 -0
  32. package/dist/page-slide.d.ts +31 -0
  33. package/dist/page-slide.d.ts.map +1 -0
  34. package/dist/primitives/Pagination.vue.d.ts +26 -0
  35. package/dist/primitives/Pagination.vue.d.ts.map +1 -0
  36. package/dist/primitives/SearchMenu.vue.d.ts +51 -0
  37. package/dist/primitives/SearchMenu.vue.d.ts.map +1 -0
  38. package/dist/primitives/Toggle.vue.d.ts +16 -0
  39. package/dist/primitives/Toggle.vue.d.ts.map +1 -0
  40. package/dist/primitives/search-menu.d.ts +19 -0
  41. package/dist/primitives/search-menu.d.ts.map +1 -0
  42. package/dist/reasoning.d.ts +6 -0
  43. package/dist/reasoning.d.ts.map +1 -0
  44. package/dist/result-card/IconButton.vue.d.ts +21 -0
  45. package/dist/result-card/IconButton.vue.d.ts.map +1 -0
  46. package/dist/result-card/MoreMenu.vue.d.ts +13 -0
  47. package/dist/result-card/MoreMenu.vue.d.ts.map +1 -0
  48. package/dist/result-card/ResultMedia.vue.d.ts +28 -0
  49. package/dist/result-card/ResultMedia.vue.d.ts.map +1 -0
  50. package/dist/result-card/ResultText.vue.d.ts +8 -0
  51. package/dist/result-card/ResultText.vue.d.ts.map +1 -0
  52. package/dist/result-card/VideoPlayer.vue.d.ts +18 -0
  53. package/dist/result-card/VideoPlayer.vue.d.ts.map +1 -0
  54. package/dist/result-card/types.d.ts +9 -0
  55. package/dist/result-card/types.d.ts.map +1 -0
  56. package/dist/style.css +2378 -0
  57. package/dist/useComposer.d.ts +22 -0
  58. package/dist/useComposer.d.ts.map +1 -0
  59. package/dist/useMediaAnalyzer.d.ts +17 -0
  60. package/dist/useMediaAnalyzer.d.ts.map +1 -0
  61. package/package.json +79 -3
  62. package/src/ChaiProvider.vue +26 -0
  63. package/src/Composer.vue +362 -0
  64. package/src/EditCard.vue +520 -0
  65. package/src/MediaAnalyzer.vue +216 -0
  66. package/src/PageSlide.vue +36 -0
  67. package/src/ResultCard.vue +297 -0
  68. package/src/composer/AttachMenu.vue +66 -0
  69. package/src/composer/Chip.vue +26 -0
  70. package/src/dismiss.ts +22 -0
  71. package/src/edit-card/ExpandedImage.vue +39 -0
  72. package/src/edit-card/RegionShape.vue +39 -0
  73. package/src/icons.ts +55 -0
  74. package/src/index.ts +77 -0
  75. package/src/page-slide.ts +32 -0
  76. package/src/primitives/Pagination.vue +76 -0
  77. package/src/primitives/SearchMenu.vue +167 -0
  78. package/src/primitives/Toggle.vue +23 -0
  79. package/src/primitives/search-menu.ts +20 -0
  80. package/src/reasoning.ts +10 -0
  81. package/src/result-card/IconButton.vue +18 -0
  82. package/src/result-card/MoreMenu.vue +35 -0
  83. package/src/result-card/ResultMedia.vue +77 -0
  84. package/src/result-card/ResultText.vue +37 -0
  85. package/src/result-card/VideoPlayer.vue +90 -0
  86. package/src/result-card/types.ts +10 -0
  87. package/src/useComposer.ts +38 -0
  88. package/src/useMediaAnalyzer.ts +33 -0
@@ -0,0 +1,29 @@
1
+ import { type ModelOption, type Result } from "@chai-ui/core";
2
+ import type { ResultCardMoreAction, ResultCardVote } from "./result-card/types.js";
3
+ type __VLS_Props = {
4
+ /** The results from one prompt: `results[0]` if there's only one, paged internally if more. */
5
+ results: Result[];
6
+ /** Fixed width in px. Defaults to 375; height follows the media. */
7
+ width?: number;
8
+ /** Max height in px of a text result before it scrolls. Defaults to 400. */
9
+ textMaxHeight?: number;
10
+ /** The request's prompt, shown read-only (copiable) on the info side. */
11
+ prompt: string;
12
+ /** Alt text for a generated image. Defaults to `prompt`. */
13
+ altText?: (result: Result) => string;
14
+ /** Resolves `Result.modelId` to a label, on the info side and beside the page dots. */
15
+ models?: ModelOption[];
16
+ /** A result's vote, if any. Controlled: what a vote means is the app's policy. */
17
+ getVote?: (result: Result) => ResultCardVote;
18
+ /** Extra items in the ⋯ menu. Omit to hide the menu. */
19
+ moreActions?: ResultCardMoreAction[];
20
+ disabled?: boolean;
21
+ };
22
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
+ action: (action: string, result: Result) => any;
24
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ onAction?: ((action: string, result: Result) => any) | undefined;
26
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
+ declare const _default: typeof __VLS_export;
28
+ export default _default;
29
+ //# sourceMappingURL=ResultCard.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResultCard.vue.d.ts","sourceRoot":"","sources":["../src/ResultCard.vue"],"names":[],"mappings":"AAmTA,OAAO,EASL,KAAK,WAAW,EAChB,KAAK,MAAM,EACZ,MAAM,eAAe,CAAC;AASvB,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAEnF,KAAK,WAAW,GAAG;IACjB,+FAA+F;IAC/F,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yEAAyE;IACzE,MAAM,EAAE,MAAM,CAAC;IACf,4DAA4D;IAC5D,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IACrC,uFAAuF;IACvF,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC;IACvB,kFAAkF;IAClF,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,cAAc,CAAC;IAC7C,wDAAwD;IACxD,WAAW,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAsuBF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,17 @@
1
+ import type { ComposerAttachMenuAction, composerAttachMenuItems } from "@chai-ui/core";
2
+ type __VLS_Props = {
3
+ items: ReturnType<typeof composerAttachMenuItems>;
4
+ /** Edit mode: one image file at a time. */
5
+ imagesOnly?: boolean;
6
+ disabled?: boolean;
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ select: (action: ComposerAttachMenuAction) => any;
10
+ files: (files: FileList | null) => any;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onSelect?: ((action: ComposerAttachMenuAction) => any) | undefined;
13
+ onFiles?: ((files: FileList | null) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
17
+ //# sourceMappingURL=AttachMenu.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttachMenu.vue.d.ts","sourceRoot":"","sources":["../../src/composer/AttachMenu.vue"],"names":[],"mappings":"AAuEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAIvF,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;IAClD,2CAA2C;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAoJF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,14 @@
1
+ type __VLS_Props = {
2
+ label: string;
3
+ regionNumber?: number;
4
+ removable?: boolean;
5
+ disabled?: boolean;
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ remove: () => any;
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onRemove?: (() => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ //# sourceMappingURL=Chip.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Chip.vue.d.ts","sourceRoot":"","sources":["../../src/composer/Chip.vue"],"names":[],"mappings":"AAqCA,KAAK,WAAW,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAgErG,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,4 @@
1
+ import { type Ref } from "vue";
2
+ /** While `open`, a press outside `root` or Escape calls `close`: the inline menus' popover behavior. */
3
+ export declare function useDismiss(root: Ref<HTMLElement | undefined>, open: Ref<boolean>, close: () => void): void;
4
+ //# sourceMappingURL=dismiss.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dismiss.d.ts","sourceRoot":"","sources":["../src/dismiss.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAEtD,wGAAwG;AACxG,wBAAgB,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,WAAW,GAAG,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,MAAM,IAAI,QAkBnG"}
@@ -0,0 +1,12 @@
1
+ type __VLS_Props = {
2
+ src: string;
3
+ alt: string;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ close: () => any;
7
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
+ onClose?: (() => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
12
+ //# sourceMappingURL=ExpandedImage.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpandedImage.vue.d.ts","sourceRoot":"","sources":["../../src/edit-card/ExpandedImage.vue"],"names":[],"mappings":"AA8CA,KAAK,WAAW,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AA+FhD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,20 @@
1
+ /** One region on the image: a button to select, move or delete it, its number badge, and corner handles while selected. */
2
+ import { type EditRegion, type RegionCorner } from "@chai-ui/core";
3
+ type __VLS_Props = {
4
+ region: EditRegion;
5
+ selected: boolean;
6
+ draft: boolean;
7
+ disabled: boolean;
8
+ };
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ keydown: (e: KeyboardEvent) => any;
11
+ select: () => any;
12
+ dragStart: (e: PointerEvent, kind: RegionCorner | "move") => any;
13
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
15
+ onSelect?: (() => any) | undefined;
16
+ onDragStart?: ((e: PointerEvent, kind: RegionCorner | "move") => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ //# sourceMappingURL=RegionShape.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RegionShape.vue.d.ts","sourceRoot":"","sources":["../../src/edit-card/RegionShape.vue"],"names":[],"mappings":"AA0CA,2HAA2H;AAC3H,OAAO,EAAkC,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAEnG,KAAK,WAAW,GAAG;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC;AAuFhG,QAAA,MAAM,YAAY;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * The same inline `currentColor` SVGs as the React package's icons, as
3
+ * functional components. Media-action icons are traced from the result
4
+ * card design; the `0 -960 960 960` ones are Material Symbols paths.
5
+ */
6
+ import { type FunctionalComponent } from "vue";
7
+ export declare const DownloadIcon: FunctionalComponent<{}, {}, any, {}>;
8
+ export declare const ShareIcon: FunctionalComponent<{}, {}, any, {}>;
9
+ export declare const ExpandIcon: FunctionalComponent<{}, {}, any, {}>;
10
+ export declare const ZoomInIcon: FunctionalComponent<{}, {}, any, {}>;
11
+ export declare const ZoomOutIcon: FunctionalComponent<{}, {}, any, {}>;
12
+ export declare const AddIcon: FunctionalComponent<{}, {}, any, {}>;
13
+ export declare const DeleteIcon: FunctionalComponent<{}, {}, any, {}>;
14
+ export declare const VisibilityIcon: FunctionalComponent<{}, {}, any, {}>;
15
+ export declare const VisibilityOffIcon: FunctionalComponent<{}, {}, any, {}>;
16
+ export declare const CheckSymbolIcon: FunctionalComponent<{}, {}, any, {}>;
17
+ export declare const CloseSymbolIcon: FunctionalComponent<{}, {}, any, {}>;
18
+ export declare const StopIcon: FunctionalComponent<{}, {}, any, {}>;
19
+ export declare const ThumbUpIcon: FunctionalComponent<{}, {}, any, {}>;
20
+ export declare const ThumbDownIcon: FunctionalComponent<{}, {}, any, {}>;
21
+ export declare const RefreshIcon: FunctionalComponent<{}, {}, any, {}>;
22
+ export declare const MoreHorizIcon: FunctionalComponent<{}, {}, any, {}>;
23
+ export declare const InfoIcon: FunctionalComponent<{}, {}, any, {}>;
24
+ export declare const CloseIcon: FunctionalComponent<{}, {}, any, {}>;
25
+ export declare const CopyIcon: FunctionalComponent<{}, {}, any, {}>;
26
+ export declare const CheckIcon: FunctionalComponent<{}, {}, any, {}>;
27
+ export declare const PlayIcon: FunctionalComponent<{}, {}, any, {}>;
28
+ export declare const ArrowForwardIcon: FunctionalComponent<{}, {}, any, {}>;
29
+ export declare const RemoveIcon: FunctionalComponent<{}, {}, any, {}>;
30
+ export declare const VideoIcon: FunctionalComponent<{}, {}, any, {}>;
31
+ export declare const AudioIcon: FunctionalComponent<{}, {}, any, {}>;
32
+ export declare const MixedMediaIcon: FunctionalComponent<{}, {}, any, {}>;
33
+ export declare const PlusIcon: FunctionalComponent<{}, {}, any, {}>;
34
+ export declare const RetryIcon: FunctionalComponent<{}, {}, any, {}>;
35
+ export declare const ErrorIcon: FunctionalComponent<{}, {}, any, {}>;
36
+ export declare const OptimizeIcon: FunctionalComponent<{}, {}, any, {}>;
37
+ export declare const UndoIcon: FunctionalComponent<{}, {}, any, {}>;
38
+ export declare const AttachFileIcon: FunctionalComponent<{}, {}, any, {}>;
39
+ export declare const ImageIcon: FunctionalComponent<{}, {}, any, {}>;
40
+ export declare const VideocamIcon: FunctionalComponent<{}, {}, any, {}>;
41
+ export declare const ContentCutIcon: FunctionalComponent<{}, {}, any, {}>;
42
+ export declare const MusicNoteIcon: FunctionalComponent<{}, {}, any, {}>;
43
+ //# sourceMappingURL=icons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../src/icons.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAK,KAAK,mBAAmB,EAAE,MAAM,KAAK,CAAC;AAclD,eAAO,MAAM,YAAY,sCAAoR,CAAC;AAC9S,eAAO,MAAM,SAAS,sCAAsT,CAAC;AAC7U,eAAO,MAAM,UAAU,sCAAuL,CAAC;AAC/M,eAAO,MAAM,UAAU,sCAAwb,CAAC;AAChd,eAAO,MAAM,WAAW,sCAAuU,CAAC;AAChW,eAAO,MAAM,OAAO,sCAAyH,CAAC;AAC9I,eAAO,MAAM,UAAU,sCAA6Q,CAAC;AACrS,eA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export { default as Composer } from "./Composer.vue";
3
+ export { default as EditCard } from "./EditCard.vue";
4
+ export { default as ResultCard } from "./ResultCard.vue";
5
+ export { default as MediaAnalyzer } from "./MediaAnalyzer.vue";
6
+ export { default as Pagination } from "./primitives/Pagination.vue";
7
+ export { default as SearchMenu } from "./primitives/SearchMenu.vue";
8
+ export { default as Toggle } from "./primitives/Toggle.vue";
9
+ export type { SearchMenuOption, SearchMenuSection, SearchMenuToggleHeader } from "./primitives/search-menu.js";
10
+ export type { ResultCardMoreAction, ResultCardVote } from "./result-card/types.js";
11
+ export * from "./reasoning.js";
12
+ export * from "./useComposer.js";
13
+ export * from "./useMediaAnalyzer.js";
14
+ export { createFalEngine, createOpenRouterEngine, createMockEngine, mockEngine, buildRegionEditPrompt, DEFAULT_MAX_ATTACHMENTS_BY_KIND, DEFAULT_MAX_REGIONS, DEFAULT_MODEL_ID, DEFAULT_REASONING_MODEL, DEFAULT_REASONING_MODEL_BY_KIND, EDIT_IMAGE_USE_CASE, TEXT_USE_CASE, PRECISE_EDIT_MODELS, ROUTING_MODEL_ID, GenerationError, isMediaAnalyzerAtCap, nextMediaAnalyzerAttachments, DEFAULT_MEDIA_ANALYSIS_PROMPT_LENGTH, MEDIA_ANALYSIS_PROMPTS, MEDIA_ANALYSIS_PROMPT_LENGTHS, SUGGESTED_IMAGE_MODELS, SUGGESTED_TEXT_TO_VIDEO_MODELS, SUGGESTED_IMAGE_TO_VIDEO_MODELS, SUGGESTED_EDIT_MODELS, SUGGESTED_ANALYSIS_MODELS, reasoningModelFor, suggestedModels, checkSuggestedModels, } from "@chai-ui/core";
15
+ export type { ComposerAttachMenuAction, ComposerAttachment, ComposerSelection, ComposerSubmitPayload, ComposerUseCase, DroppedMedia, EditRegion, EditVersion, Evaluation, GenerationEngine, GenerationUseCase, MediaAnalysisKind, MediaAnalysisPromptLength, MediaAnalyzerAttachment, MediaAnalyzerSubmitPayload, MediaKind, ModelOption, ParameterOption, Reasoning, RegionBox, RegionFormat, Request, Result, ResultStatus, Run, SuggestedModelProblem, SuggestedModelsCheck, FalInputFormat, Usage, } from "@chai-ui/core";
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC5D,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC/G,YAAY,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACnF,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AAItC,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,gBAAgB,EAChB,UAAU,EACV,qBAAqB,EACrB,+BAA+B,EAC/B,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,+BAA+B,EAC/B,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,4BAA4B,EAC5B,oCAAoC,EACpC,sBAAsB,EACtB,6BAA6B,EAC7B,sBAAsB,EACtB,8BA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