@chai-ui/vue 0.7.1 → 0.9.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/DESIGN.md +2 -0
- package/dist/Composer.vue.d.ts +21 -5
- package/dist/Composer.vue.d.ts.map +1 -1
- package/dist/composer/PromptField.vue.d.ts +21 -0
- package/dist/composer/PromptField.vue.d.ts.map +1 -0
- package/dist/composer/VoiceButton.vue.d.ts +10 -0
- package/dist/composer/VoiceButton.vue.d.ts.map +1 -0
- package/dist/composer/VoiceWaveform.vue.d.ts +8 -0
- package/dist/composer/VoiceWaveform.vue.d.ts.map +1 -0
- package/dist/icons.d.ts +4 -0
- package/dist/icons.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +412 -140
- package/dist/index.js.map +1 -1
- package/dist/style.css +166 -1
- package/dist/useComposer.d.ts +1 -1
- package/package.json +3 -3
- package/src/Composer.vue +100 -88
- package/src/composer/AttachMenu.vue +2 -2
- package/src/composer/PromptField.vue +157 -0
- package/src/composer/VoiceButton.vue +50 -0
- package/src/composer/VoiceWaveform.vue +17 -0
- package/src/icons.ts +4 -0
- package/src/index.ts +6 -0
package/DESIGN.md
CHANGED
|
@@ -153,6 +153,8 @@ Rules:
|
|
|
153
153
|
| Request in flight | Submit becomes a stop button (`submitting` + `onAbort`) | Pass `useComposer`'s `cancel` as `onAbort`; results show "Stopped" |
|
|
154
154
|
| Prompt too thin | Optimize button rewrites the prompt, then offers undo (`onEnhance`) | Run the rewrite and call `onChange` with the new text |
|
|
155
155
|
| No use case picked | The prompt is a text request and gets a text reply | Set `defaultUseCase` if your app's default should be image or video |
|
|
156
|
+
| Voice input | A mic left of submit; while recording, a live waveform replaces the prompt and the mic becomes stop; the transcript is added to the prompt, never sent; submit hides until it's in; inline messages for a blocked or missing mic | Pass `voiceInput={{ model: "fal-ai/wizper" }}` (any Fal speech-to-text model, through your `/api/chai/fal` route) or `voiceInput={{ transcribe }}` for another provider. Chai never picks the model. |
|
|
157
|
+
| Create world | Two prompts, Environment (required) and Character (optional), each with its own Enhance; a frame rate menu from the models' `frameRates`; submit waits for an environment and says so | Add `"create-world"` to `attachMenuActions`, pass your world models, `character` + `onCharacterChange`, and route `engineByKind.world` to your world engine. Show the world in your own viewer. |
|
|
156
158
|
| Result pending | `ResultCard` shows a spinner for `queued` / `running` | Nothing. `useComposer` sets the status. |
|
|
157
159
|
| Long text answer | `ResultCard` keeps line breaks, scrolls past 400px with a visible scrollbar, and follows streaming text unless the person scrolls up | Change the height with `textMaxHeight` if needed |
|
|
158
160
|
| Text streaming in | `ResultCard` renders partial text with a caret, marked `aria-busy` | Use an engine that calls `onText` (OpenRouter does, and so does the mock text engine). `useComposer` wires it. |
|
package/dist/Composer.vue.d.ts
CHANGED
|
@@ -8,12 +8,13 @@
|
|
|
8
8
|
* Some controls show only with somewhere for them to go, so these listeners
|
|
9
9
|
* are props, checked for: `@update:attachments` (add and remove media),
|
|
10
10
|
* `@update:model-id` / `@update:model-ids` (the Model menu),
|
|
11
|
-
* `@update:aspect-ratio`, `@update:
|
|
11
|
+
* `voiceInput` (the mic), `@update:aspect-ratio`, `@update:character` and `@update:frame-rate` (a
|
|
12
|
+
* world's fields), `@update:use-cases` and `@clear-use-case` (chip
|
|
12
13
|
* remove), `@update:regions`, `@enhance` (the Enhance button), `@abort` (stop
|
|
13
14
|
* while submitting) and `@attach-menu-select` (the + menu's use cases).
|
|
14
15
|
*/
|
|
15
16
|
import "@material/web/fab/fab.js";
|
|
16
|
-
import { type ComposerAttachment, type ComposerAttachMenuAction, type ComposerSubmitPayload, type ComposerUseCase, type EditRegion, type
|
|
17
|
+
import { type ComposerAttachment, type ComposerAttachMenuAction, type ComposerPromptField, type GenerationUseCase, type ComposerSubmitPayload, type ComposerUseCase, type EditRegion, type ModelOption, type OutputKind, type ParameterOption, type VoiceInputConfig } from "@chai-ui/core";
|
|
17
18
|
type __VLS_Props = {
|
|
18
19
|
/** The prompt text. Controlled: use `v-model`. */
|
|
19
20
|
modelValue: string;
|
|
@@ -33,7 +34,7 @@ type __VLS_Props = {
|
|
|
33
34
|
useCases?: ComposerUseCase[];
|
|
34
35
|
"onUpdate:useCases"?: (next: ComposerUseCase[]) => void;
|
|
35
36
|
/** Models per use-case kind, for `multiSelectUseCases`. A kind left out gets Chai's suggested models. */
|
|
36
|
-
modelsByKind?: Partial<Record<
|
|
37
|
+
modelsByKind?: Partial<Record<OutputKind, ModelOption[]>>;
|
|
37
38
|
/** The end user can pick several models, each producing its own result, with `modelIds`. */
|
|
38
39
|
multiSelectModels?: boolean;
|
|
39
40
|
modelIds?: string[];
|
|
@@ -51,10 +52,16 @@ type __VLS_Props = {
|
|
|
51
52
|
aspectRatios?: ParameterOption<string>[];
|
|
52
53
|
aspectRatio?: string | null;
|
|
53
54
|
"onUpdate:aspectRatio"?: (value: string) => void;
|
|
54
|
-
/** Shows the Enhance button; your handler runs the rewrite and updates the prompt. Gets the current
|
|
55
|
-
onEnhance?: (value: string) => void;
|
|
55
|
+
/** Shows the Enhance button; your handler runs the rewrite and updates the prompt. Gets the current text, which field, and the use case on screen (`mode`). */
|
|
56
|
+
onEnhance?: (value: string, field: ComposerPromptField, mode?: GenerationUseCase) => void;
|
|
56
57
|
/** True while your Enhance handler is running. */
|
|
57
58
|
enhancing?: boolean;
|
|
59
|
+
/** A world's character field (Create world), beside the environment (`v-model`). Shows with `v-model:character`. */
|
|
60
|
+
character?: string;
|
|
61
|
+
"onUpdate:character"?: (value: string) => void;
|
|
62
|
+
/** A world's frame rate menu, from the selected models' `frameRates`. */
|
|
63
|
+
frameRate?: number | null;
|
|
64
|
+
"onUpdate:frameRate"?: (value: number) => void;
|
|
58
65
|
/** The last submit's failure: submit becomes retry, and the message shows inline. */
|
|
59
66
|
submitError?: string | null;
|
|
60
67
|
/** Overrides the built-in "empty prompt and no attachments" check. Ignored while `submitError` is set. */
|
|
@@ -68,6 +75,13 @@ type __VLS_Props = {
|
|
|
68
75
|
/** An edit's regions (from `useComposer`'s `edit`), shown as colored chips while editing. */
|
|
69
76
|
regions?: EditRegion[];
|
|
70
77
|
"onUpdate:regions"?: (next: EditRegion[]) => void;
|
|
78
|
+
/**
|
|
79
|
+
* The mic, left of submit: the transcript is added to the prompt, never
|
|
80
|
+
* submitted. `{ model: "fal-ai/wizper" }` goes through your
|
|
81
|
+
* `/api/chai/fal` route; `{ transcribe }` uses any provider. Off by
|
|
82
|
+
* default, with no default model.
|
|
83
|
+
*/
|
|
84
|
+
voiceInput?: VoiceInputConfig;
|
|
71
85
|
disabled?: boolean;
|
|
72
86
|
};
|
|
73
87
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -79,12 +93,14 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
79
93
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
80
94
|
onUnsupportedFile?: ((fileName: string) => any) | undefined;
|
|
81
95
|
}>, {
|
|
96
|
+
character: string;
|
|
82
97
|
attachments: ComposerAttachment[];
|
|
83
98
|
useCase: ComposerUseCase | null;
|
|
84
99
|
useCases: ComposerUseCase[];
|
|
85
100
|
modelIds: string[];
|
|
86
101
|
modelId: string | null;
|
|
87
102
|
aspectRatio: string | null;
|
|
103
|
+
frameRate: number | null;
|
|
88
104
|
submitError: string | null;
|
|
89
105
|
submitDisabled: boolean;
|
|
90
106
|
regions: EditRegion[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Composer.vue.d.ts","sourceRoot":"","sources":["../src/Composer.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Composer.vue.d.ts","sourceRoot":"","sources":["../src/Composer.vue"],"names":[],"mappings":"AAmYA;;;;;;;;;;;;;;GAcG;AACH,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAKL,KAAK,kBAAkB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C;IAC/C,6FAA6F;IAC7F,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;IAClD;;;;;OAKG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AA4sBJ,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;6EAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value: string;
|
|
3
|
+
placeholder: string;
|
|
4
|
+
/** Accessible name for the plain prompt. Defaults to `placeholder`. */
|
|
5
|
+
label?: string;
|
|
6
|
+
heading?: string;
|
|
7
|
+
note?: string;
|
|
8
|
+
/** Shown under a headed field, e.g. why submit can't go yet. */
|
|
9
|
+
hint?: string | null;
|
|
10
|
+
onEnhance?: (value: string) => void;
|
|
11
|
+
enhancing: boolean;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
change: (value: string) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
onChange?: ((value: string) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
//# sourceMappingURL=PromptField.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptField.vue.d.ts","sourceRoot":"","sources":["../../src/composer/PromptField.vue"],"names":[],"mappings":"AA0KA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gEAAgE;IAChE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AA2QF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { VoiceInput, VoiceInputState } from "@chai-ui/core";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
voice: VoiceInput;
|
|
4
|
+
state: VoiceInputState;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=VoiceButton.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VoiceButton.vue.d.ts","sourceRoot":"","sources":["../../src/composer/VoiceButton.vue"],"names":[],"mappings":"AAuDA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGjE,KAAK,WAAW,GAAG;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,eAAe,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AA4FrF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
levels: number[];
|
|
3
|
+
elapsedMs: number;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=VoiceWaveform.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VoiceWaveform.vue.d.ts","sourceRoot":"","sources":["../../src/composer/VoiceWaveform.vue"],"names":[],"mappings":"AAwBA,KAAK,WAAW,GAAG;IAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AA2C3D,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
package/dist/icons.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export declare const VisibilityIcon: FunctionalComponent<{}, {}, any, {}>;
|
|
|
15
15
|
export declare const VisibilityOffIcon: FunctionalComponent<{}, {}, any, {}>;
|
|
16
16
|
export declare const CheckSymbolIcon: FunctionalComponent<{}, {}, any, {}>;
|
|
17
17
|
export declare const CloseSymbolIcon: FunctionalComponent<{}, {}, any, {}>;
|
|
18
|
+
/** Material Symbols "mic" — voice input. */
|
|
19
|
+
export declare const MicIcon: FunctionalComponent<{}, {}, any, {}>;
|
|
18
20
|
export declare const StopIcon: FunctionalComponent<{}, {}, any, {}>;
|
|
19
21
|
export declare const ThumbUpIcon: FunctionalComponent<{}, {}, any, {}>;
|
|
20
22
|
export declare const ThumbDownIcon: FunctionalComponent<{}, {}, any, {}>;
|
|
@@ -37,6 +39,8 @@ export declare const OptimizeIcon: FunctionalComponent<{}, {}, any, {}>;
|
|
|
37
39
|
export declare const UndoIcon: FunctionalComponent<{}, {}, any, {}>;
|
|
38
40
|
export declare const AttachFileIcon: FunctionalComponent<{}, {}, any, {}>;
|
|
39
41
|
export declare const ImageIcon: FunctionalComponent<{}, {}, any, {}>;
|
|
42
|
+
/** Material Symbols "globe" — Create world. */
|
|
43
|
+
export declare const GlobeIcon: FunctionalComponent<{}, {}, any, {}>;
|
|
40
44
|
export declare const VideocamIcon: FunctionalComponent<{}, {}, any, {}>;
|
|
41
45
|
export declare const ContentCutIcon: FunctionalComponent<{}, {}, any, {}>;
|
|
42
46
|
export declare const MusicNoteIcon: FunctionalComponent<{}, {}, any, {}>;
|
package/dist/icons.d.ts.map
CHANGED
|
@@ -1 +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,eAAO,MAAM,cAAc,sCAA8hB,CAAC;AAC1jB,eAAO,MAAM,iBAAiB,sCAAkmB,CAAC;AACjoB,eAAO,MAAM,eAAe,sCAAqH,CAAC;AAClJ,eAAO,MAAM,eAAe,sCAAiK,CAAC;AAC9L,eAAO,MAAM,QAAQ,sCAA0F,CAAC;A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AAC3d,eAAO,MAAM,SAAS,sCAAoP,CAAC;AAC3Q,+CAA+C;AAC/C,eAAO,MAAM,SAAS,sCAA+mB,CAAC;AACtoB,eAAO,MAAM,YAAY,sCAA8N,CAAC;AACxP,eAAO,MAAM,cAAc,sCAAkoB,CAAC;AAC9pB,eAAO,MAAM,aAAa,sCAA0M,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,6 @@ export type { ResultCardMoreAction, ResultCardVote } from "./result-card/types.j
|
|
|
11
11
|
export * from "./reasoning.js";
|
|
12
12
|
export * from "./useComposer.js";
|
|
13
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";
|
|
14
|
+
export { createFalEngine, createFalTranscriber, 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, ComposerPromptField, ComposerAttachment, ComposerSelection, ComposerSubmitPayload, ComposerUseCase, DroppedMedia, EditRegion, EditVersion, Evaluation, GenerationEngine, GenerationUseCase, MediaAnalysisKind, MediaAnalysisPromptLength, MediaAnalyzerAttachment, MediaAnalyzerSubmitPayload, MediaKind, ModelOption, OutputKind, Transcribe, VoiceClip, VoiceInputConfig, ParameterOption, Reasoning, RegionBox, RegionFormat, Request, Result, ResultStatus, Run, SuggestedModelProblem, SuggestedModelsCheck, FalInputFormat, Usage, } from "@chai-ui/core";
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,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