@opentiny/genui-sdk-vue 1.3.1 → 1.3.2-alpha.1
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/{GenuiChatWithMaterials.vue_vue_type_script_setup_true_lang-Bdu-r86w.js → GenuiChatWithMaterials.vue_vue_type_script_setup_true_lang-oky3QRk7.js} +2 -2
- package/dist/{GenuiChatWithMaterials.vue_vue_type_script_setup_true_lang-Bdu-r86w.js.map → GenuiChatWithMaterials.vue_vue_type_script_setup_true_lang-oky3QRk7.js.map} +1 -1
- package/dist/{GenuiRenderer-C2w3WGQa.js → GenuiRenderer-B22XV3Mr.js} +1745 -1723
- package/dist/{GenuiRenderer-C2w3WGQa.js.map → GenuiRenderer-B22XV3Mr.js.map} +1 -1
- package/dist/{GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-BlhUkAxb.js → GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-sYP74-5X.js} +2 -2
- package/dist/{GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-BlhUkAxb.js.map → GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-sYP74-5X.js.map} +1 -1
- package/dist/chat.js +1 -1
- package/dist/{chat.types-BqZOCKBz.js → chat.types-CIkLm6Gm.js} +2 -2
- package/dist/{chat.types-BqZOCKBz.js.map → chat.types-CIkLm6Gm.js.map} +1 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +4 -4
- package/dist/legacy-chat.js +2 -2
- package/dist/legacy-renderer.js +2 -2
- package/dist/renderer.d.ts +14 -1
- package/dist/renderer.js +1 -1
- package/dist/transform-jsx.js +14017 -14039
- package/dist/transform-jsx.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -141,7 +141,12 @@ type: "null";
|
|
|
141
141
|
messagesContainer: HTMLDivElement;
|
|
142
142
|
}, HTMLDivElement>;
|
|
143
143
|
|
|
144
|
-
declare const __VLS_component_2: DefineComponent<IRendererProps, {
|
|
144
|
+
declare const __VLS_component_2: DefineComponent<IRendererProps, {
|
|
145
|
+
setState: typeof setState;
|
|
146
|
+
getState: typeof getState;
|
|
147
|
+
getContext: typeof getContext;
|
|
148
|
+
setContext: typeof setContext;
|
|
149
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IRendererProps> & Readonly<{}>, {
|
|
145
150
|
isJsonComplete: boolean;
|
|
146
151
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
147
152
|
rendererInstance: any;
|
|
@@ -1052,6 +1057,10 @@ export declare const GenuiLegacyRenderer: __VLS_WithTemplateSlots_5<typeof __VLS
|
|
|
1052
1057
|
|
|
1053
1058
|
export declare const GenuiRenderer: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
1054
1059
|
|
|
1060
|
+
declare function getContext(): any;
|
|
1061
|
+
|
|
1062
|
+
declare function getState(): any;
|
|
1063
|
+
|
|
1055
1064
|
export declare interface I18nInstance {
|
|
1056
1065
|
locale: Ref<string>;
|
|
1057
1066
|
messages: Readonly<Reactive<UnwrapNestedRefs<I18nMessages>>>;
|
|
@@ -1271,6 +1280,10 @@ export declare const scrollEnd: (container: Ref<HTMLElement | undefined>) => {
|
|
|
1271
1280
|
updateIsLastMessageInBottom: () => void;
|
|
1272
1281
|
};
|
|
1273
1282
|
|
|
1283
|
+
declare function setContext(context: Record<string, any>): void;
|
|
1284
|
+
|
|
1285
|
+
declare function setState(state: Record<string, any>): void;
|
|
1286
|
+
|
|
1274
1287
|
export declare class ThinkTagWrapPattern {
|
|
1275
1288
|
protected thinkStartFlag: string;
|
|
1276
1289
|
protected thinkEndFlag: string;
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { C as s, D as r, E as t, G as o, I as n, M as E, T as i, d as u, e as d, s as G, b as I, t as m, u as l, a as p } from "./chat.types-
|
|
1
|
+
import { C as s, D as r, E as t, G as o, I as n, M as E, T as i, d as u, e as d, s as G, b as I, t as m, u as l, a as p } from "./chat.types-CIkLm6Gm.js";
|
|
2
2
|
import { a as T, G as _, b as f, c as g, u as M } from "./injection-tokens-CuDQs1ne.js";
|
|
3
|
-
import { G as c, $ as x, r as N } from "./GenuiRenderer-
|
|
3
|
+
import { G as c, $ as x, r as N } from "./GenuiRenderer-B22XV3Mr.js";
|
|
4
4
|
import { C as h, u as A } from "./ConfigProvider-BzxW9L3f.js";
|
|
5
|
-
import { _ as U } from "./GenuiChatWithMaterials.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as D } from "./GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as U } from "./GenuiChatWithMaterials.vue_vue_type_script_setup_true_lang-oky3QRk7.js";
|
|
6
|
+
import { _ as D } from "./GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-sYP74-5X.js";
|
|
7
7
|
export {
|
|
8
8
|
s as CustomModelProvider,
|
|
9
9
|
r as DEFAULT_IMAGE_FEATURES,
|
package/dist/legacy-chat.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as e } from "./GenuiChatWithMaterials.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { D as r, E as n, I as o, M as E, T as I, e as u, s as G, b as g, t as i, u as M, a as T } from "./chat.types-
|
|
1
|
+
import { _ as e } from "./GenuiChatWithMaterials.vue_vue_type_script_setup_true_lang-oky3QRk7.js";
|
|
2
|
+
import { D as r, E as n, I as o, M as E, T as I, e as u, s as G, b as g, t as i, u as M, a as T } from "./chat.types-CIkLm6Gm.js";
|
|
3
3
|
import { a as c, G as m, b as A, c as N, u as U } from "./injection-tokens-CuDQs1ne.js";
|
|
4
4
|
export {
|
|
5
5
|
r as DEFAULT_IMAGE_FEATURES,
|
package/dist/legacy-renderer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as o } from "./GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { r as a } from "./GenuiRenderer-
|
|
1
|
+
import { _ as o } from "./GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-sYP74-5X.js";
|
|
2
|
+
import { r as a } from "./GenuiRenderer-B22XV3Mr.js";
|
|
3
3
|
export {
|
|
4
4
|
o as GenuiLegacyRenderer,
|
|
5
5
|
a as requiredCompleteFieldSelectors
|
package/dist/renderer.d.ts
CHANGED
|
@@ -7,7 +7,12 @@ import { IGenPromptAction } from '@opentiny/genui-sdk-core';
|
|
|
7
7
|
import { PublicProps } from 'vue';
|
|
8
8
|
import { VNode } from 'vue';
|
|
9
9
|
|
|
10
|
-
declare const __VLS_component: DefineComponent<IRendererProps, {
|
|
10
|
+
declare const __VLS_component: DefineComponent<IRendererProps, {
|
|
11
|
+
setState: typeof setState;
|
|
12
|
+
getState: typeof getState;
|
|
13
|
+
getContext: typeof getContext;
|
|
14
|
+
setContext: typeof setContext;
|
|
15
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IRendererProps> & Readonly<{}>, {
|
|
11
16
|
isJsonComplete: boolean;
|
|
12
17
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
13
18
|
rendererInstance: any;
|
|
@@ -43,6 +48,10 @@ declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
43
48
|
|
|
44
49
|
export declare const GenuiRenderer: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
45
50
|
|
|
51
|
+
declare function getContext(): any;
|
|
52
|
+
|
|
53
|
+
declare function getState(): any;
|
|
54
|
+
|
|
46
55
|
export declare interface ICustomAction extends Partial<IGenPromptAction> {
|
|
47
56
|
execute: (params: any, context: Record<string, any>) => any;
|
|
48
57
|
}
|
|
@@ -73,4 +82,8 @@ export declare interface IRendererSlotsProps {
|
|
|
73
82
|
|
|
74
83
|
export declare const requiredCompleteFieldSelectors: string[];
|
|
75
84
|
|
|
85
|
+
declare function setContext(context: Record<string, any>): void;
|
|
86
|
+
|
|
87
|
+
declare function setState(state: Record<string, any>): void;
|
|
88
|
+
|
|
76
89
|
export { }
|
package/dist/renderer.js
CHANGED