@opentiny/genui-sdk-vue 1.1.2 → 1.2.0-alpha.2
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/ConfigProvider-BaJsiFgd.js +86 -0
- package/dist/SchemaCardRenderer-CdV5OdhD.js +13440 -0
- package/dist/___vite-browser-external_commonjs-proxy-4gYZYw55.js +56 -0
- package/dist/chat.d.ts +2882 -0
- package/dist/chat.js +22 -0
- package/dist/chat.types-Bz1iNdhu.js +1753 -0
- package/dist/config-provider.d.ts +54 -0
- package/dist/config-provider.js +5 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +27 -82441
- package/dist/injection-tokens-D8CFCpjy.js +114 -0
- package/dist/renderer.d.ts +2099 -0
- package/dist/renderer.js +5 -0
- package/dist/transform-jsx.d.ts +3 -0
- package/dist/transform-jsx.js +67051 -0
- package/package.json +47 -2
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ComponentOptionsMixin } from 'vue';
|
|
2
|
+
import { ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { DefineComponent } from 'vue';
|
|
4
|
+
import { PublicProps } from 'vue';
|
|
5
|
+
import { Ref } from 'vue';
|
|
6
|
+
|
|
7
|
+
declare const __VLS_component: DefineComponent<ConfigProviderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ConfigProviderProps> & Readonly<{}>, {
|
|
8
|
+
id: string;
|
|
9
|
+
locale: string;
|
|
10
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
11
|
+
providerRef: unknown;
|
|
12
|
+
}, any>;
|
|
13
|
+
|
|
14
|
+
declare function __VLS_template(): {
|
|
15
|
+
attrs: Partial<{}>;
|
|
16
|
+
slots: {
|
|
17
|
+
default?(_: {}): any;
|
|
18
|
+
};
|
|
19
|
+
refs: {
|
|
20
|
+
providerRef: unknown;
|
|
21
|
+
};
|
|
22
|
+
rootEl: any;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
|
+
|
|
27
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
declare interface ConfigProviderProps {
|
|
34
|
+
theme?: 'light' | 'dark' | 'lite' | 'auto';
|
|
35
|
+
id?: string;
|
|
36
|
+
locale?: string;
|
|
37
|
+
i18n?: I18nMessages;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export declare const GenuiConfigProvider: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
41
|
+
|
|
42
|
+
declare type I18nMessageObject = {
|
|
43
|
+
[key: string]: string | I18nMessageObject;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
declare type I18nMessages = {
|
|
47
|
+
[lang: string]: I18nMessageObject;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export declare const useMediaTheme: () => {
|
|
51
|
+
theme: Readonly<Ref<"dark" | "light", "dark" | "light">>;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export { }
|
package/dist/index.d.ts
CHANGED
|
@@ -663,6 +663,7 @@ export declare interface IRendererProps {
|
|
|
663
663
|
[prop: string]: any;
|
|
664
664
|
};
|
|
665
665
|
generating?: boolean;
|
|
666
|
+
isJsonComplete?: boolean;
|
|
666
667
|
customComponents?: Record<string, Component>;
|
|
667
668
|
customActions?: any;
|
|
668
669
|
requiredCompleteFieldSelectors?: string[];
|
|
@@ -1439,6 +1440,25 @@ declare const symbolType: (params?: RawCreateParams) => ZodSymbol;
|
|
|
1439
1440
|
|
|
1440
1441
|
declare type SyncParseReturnType<T = any> = OK<T> | DIRTY<T> | INVALID;
|
|
1441
1442
|
|
|
1443
|
+
export declare class ThinkTagWrapPattern {
|
|
1444
|
+
protected thinkStartFlag: string;
|
|
1445
|
+
protected thinkEndFlag: string;
|
|
1446
|
+
protected startRegex: RegExp;
|
|
1447
|
+
protected endRegex: RegExp;
|
|
1448
|
+
protected partialStartRegex: RegExp;
|
|
1449
|
+
protected partialEndRegex: RegExp;
|
|
1450
|
+
get regExpMap(): {
|
|
1451
|
+
start: {
|
|
1452
|
+
full: RegExp;
|
|
1453
|
+
partial: RegExp;
|
|
1454
|
+
};
|
|
1455
|
+
end: {
|
|
1456
|
+
full: RegExp;
|
|
1457
|
+
partial: RegExp;
|
|
1458
|
+
};
|
|
1459
|
+
};
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1442
1462
|
export declare function throttle<T extends (...args: any[]) => any>(fn: T, delay: number): (...args: Parameters<T>) => void;
|
|
1443
1463
|
|
|
1444
1464
|
export declare const toSlotFunction: (slot: Component<ISlotProps> | ((props: ISlotProps) => VNode | VNode[]) | undefined) => (props: ISlotProps) => VNode | VNode[];
|