@opentiny/genui-sdk-vue 1.3.1 → 1.4.0-alpha.3
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 +11 -2
- package/dist/ConfigProvider-D6LFAgg5.js +131 -0
- package/dist/ConfigProvider-D6LFAgg5.js.map +1 -0
- package/dist/GenuiRenderer-f2_6u1TA.js +141 -0
- package/dist/GenuiRenderer-f2_6u1TA.js.map +1 -0
- package/dist/chat.d.ts +6 -0
- package/dist/chat.js +17 -15
- package/dist/chat.js.map +1 -1
- package/dist/chat.types-DEDNSs5o.js +1817 -0
- package/dist/chat.types-DEDNSs5o.js.map +1 -0
- package/dist/code-generator.d.ts +139 -0
- package/dist/code-generator.js +6 -0
- package/dist/code-generator.js.map +1 -0
- package/dist/config-provider.d.ts +24 -12
- package/dist/config-provider.js +5 -5
- package/dist/index.d.ts +1100 -677
- package/dist/index.js +39 -31
- package/dist/index.js.map +1 -1
- package/dist/{GenuiRenderer-C2w3WGQa.js → injection-tokens-DDgspg4x.js} +3474 -3497
- package/dist/injection-tokens-DDgspg4x.js.map +1 -0
- package/dist/legacy-chat.d.ts +789 -534
- package/dist/legacy-chat.js +63 -19
- package/dist/legacy-chat.js.map +1 -1
- package/dist/legacy-config-provider.d.ts +58 -0
- package/dist/legacy-config-provider.js +25 -0
- package/dist/legacy-config-provider.js.map +1 -0
- package/dist/legacy-renderer.d.ts +28 -20
- package/dist/legacy-renderer.js +38 -4
- package/dist/legacy-renderer.js.map +1 -1
- package/dist/renderer.d.ts +3 -2
- package/dist/renderer.js +1 -1
- package/dist/transform-jsx.d.ts +2 -3
- package/dist/transform-jsx.js +5 -2
- package/dist/transform-jsx.js.map +1 -1
- package/dist/vue-code-generator-CwPQ3GDh.js +573 -0
- package/dist/vue-code-generator-CwPQ3GDh.js.map +1 -0
- package/package.json +18 -7
- package/dist/ConfigProvider-BzxW9L3f.js +0 -95
- package/dist/ConfigProvider-BzxW9L3f.js.map +0 -1
- package/dist/GenuiChatWithMaterials.vue_vue_type_script_setup_true_lang-Bdu-r86w.js +0 -49
- package/dist/GenuiChatWithMaterials.vue_vue_type_script_setup_true_lang-Bdu-r86w.js.map +0 -1
- package/dist/GenuiRenderer-C2w3WGQa.js.map +0 -1
- package/dist/GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-BlhUkAxb.js +0 -39
- package/dist/GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-BlhUkAxb.js.map +0 -1
- package/dist/chat.types-BqZOCKBz.js +0 -1794
- package/dist/chat.types-BqZOCKBz.js.map +0 -1
- package/dist/injection-tokens-CuDQs1ne.js +0 -114
- package/dist/injection-tokens-CuDQs1ne.js.map +0 -1
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
import { ComponentOptionsMixin } from 'vue';
|
|
2
2
|
import { ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { ComputedRef } from 'vue';
|
|
3
4
|
import { DefineComponent } from 'vue';
|
|
4
5
|
import { IMaterials } from '@opentiny/genui-sdk-core';
|
|
5
6
|
import { InjectionKey } from 'vue';
|
|
7
|
+
import { MergedMaterials } from '@opentiny/genui-sdk-core';
|
|
6
8
|
import { PublicProps } from 'vue';
|
|
7
9
|
import { Ref } from 'vue';
|
|
10
|
+
import { ThemeColorScheme } from '@opentiny/genui-sdk-core';
|
|
8
11
|
|
|
9
12
|
declare const __VLS_component: DefineComponent<ConfigProviderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ConfigProviderProps> & Readonly<{}>, {
|
|
10
13
|
id: string;
|
|
11
14
|
locale: string;
|
|
12
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
13
|
-
providerRef: unknown;
|
|
14
|
-
}, any>;
|
|
15
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
15
16
|
|
|
16
17
|
declare function __VLS_template(): {
|
|
17
18
|
attrs: Partial<{}>;
|
|
18
19
|
slots: {
|
|
19
20
|
default?(_: {}): any;
|
|
20
21
|
};
|
|
21
|
-
refs: {
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
rootEl: any;
|
|
22
|
+
refs: {};
|
|
23
|
+
rootEl: HTMLDivElement;
|
|
25
24
|
};
|
|
26
25
|
|
|
27
26
|
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -32,15 +31,16 @@ declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
32
31
|
};
|
|
33
32
|
};
|
|
34
33
|
|
|
35
|
-
declare interface ConfigProviderProps {
|
|
36
|
-
theme?:
|
|
34
|
+
export declare interface ConfigProviderProps {
|
|
35
|
+
theme?: string;
|
|
37
36
|
id?: string;
|
|
38
37
|
locale?: string;
|
|
39
38
|
i18n?: I18nMessages;
|
|
40
|
-
materials?:
|
|
39
|
+
materials?: MergedMaterials;
|
|
40
|
+
notify?: NotifyHandler;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
export declare const GENUI_CONFIG:
|
|
43
|
+
export declare const GENUI_CONFIG: InjectionKey<ComputedRef<GenuiConfigState>>;
|
|
44
44
|
|
|
45
45
|
export declare const GENUI_I18N: unique symbol;
|
|
46
46
|
|
|
@@ -48,6 +48,11 @@ export declare const GENUI_MATERIALS: InjectionKey<IMaterials>;
|
|
|
48
48
|
|
|
49
49
|
export declare const GenuiConfigProvider: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
50
50
|
|
|
51
|
+
export declare interface GenuiConfigState {
|
|
52
|
+
colorScheme: ThemeColorScheme;
|
|
53
|
+
id: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
51
56
|
declare type I18nMessageObject = {
|
|
52
57
|
[key: string]: string | I18nMessageObject;
|
|
53
58
|
};
|
|
@@ -56,8 +61,15 @@ declare type I18nMessages = {
|
|
|
56
61
|
[lang: string]: I18nMessageObject;
|
|
57
62
|
};
|
|
58
63
|
|
|
64
|
+
export declare type NotifyHandler = (options: {
|
|
65
|
+
type?: 'success' | 'warning' | 'error' | 'info';
|
|
66
|
+
title?: string;
|
|
67
|
+
message?: string;
|
|
68
|
+
duration?: number;
|
|
69
|
+
}) => void;
|
|
70
|
+
|
|
59
71
|
export declare const useMediaTheme: () => {
|
|
60
|
-
theme: Readonly<Ref<"
|
|
72
|
+
theme: Readonly<Ref<"light" | "dark", "light" | "dark">>;
|
|
61
73
|
};
|
|
62
74
|
|
|
63
75
|
export { }
|
package/dist/config-provider.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
1
|
+
import { G, u as o } from "./ConfigProvider-D6LFAgg5.js";
|
|
2
|
+
import { a as s, G as I, b as N } from "./injection-tokens-DDgspg4x.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
s as GENUI_CONFIG,
|
|
5
5
|
I as GENUI_I18N,
|
|
6
6
|
N as GENUI_MATERIALS,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
G as GenuiConfigProvider,
|
|
8
|
+
o as useMediaTheme
|
|
9
9
|
};
|
|
10
10
|
//# sourceMappingURL=config-provider.js.map
|