@opentiny/genui-sdk-vue 1.3.1-alpha.2 → 1.3.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/README.md +2 -11
- package/dist/ConfigProvider-BzxW9L3f.js +95 -0
- package/dist/ConfigProvider-BzxW9L3f.js.map +1 -0
- package/dist/{GenuiChatWithMaterials.vue_vue_type_script_setup_true_lang-zsZgFWJw.js → GenuiChatWithMaterials.vue_vue_type_script_setup_true_lang-Bdu-r86w.js} +3 -3
- package/dist/{GenuiChatWithMaterials.vue_vue_type_script_setup_true_lang-zsZgFWJw.js.map → GenuiChatWithMaterials.vue_vue_type_script_setup_true_lang-Bdu-r86w.js.map} +1 -1
- package/dist/{injection-tokens-DDgspg4x.js → GenuiRenderer-C2w3WGQa.js} +3497 -3474
- package/dist/GenuiRenderer-C2w3WGQa.js.map +1 -0
- package/dist/{GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-CMjFQe5i.js → GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-BlhUkAxb.js} +6 -6
- package/dist/GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-BlhUkAxb.js.map +1 -0
- package/dist/chat.d.ts +0 -6
- package/dist/chat.js +15 -17
- package/dist/chat.js.map +1 -1
- package/dist/chat.types-BqZOCKBz.js +1794 -0
- package/dist/chat.types-BqZOCKBz.js.map +1 -0
- package/dist/config-provider.d.ts +12 -24
- package/dist/config-provider.js +2 -2
- package/dist/index.d.ts +19 -169
- package/dist/index.js +31 -37
- package/dist/index.js.map +1 -1
- package/dist/injection-tokens-CuDQs1ne.js +114 -0
- package/dist/injection-tokens-CuDQs1ne.js.map +1 -0
- package/dist/legacy-chat.d.ts +1 -9
- package/dist/legacy-chat.js +3 -3
- package/dist/legacy-renderer.d.ts +3 -1
- package/dist/legacy-renderer.js +2 -2
- package/dist/renderer.d.ts +2 -2
- package/dist/renderer.js +1 -1
- package/dist/transform-jsx.d.ts +3 -2
- package/dist/transform-jsx.js +2 -5
- package/dist/transform-jsx.js.map +1 -1
- package/package.json +5 -12
- package/dist/ConfigProvider-B_1dX_dv.js +0 -131
- package/dist/ConfigProvider-B_1dX_dv.js.map +0 -1
- package/dist/GenuiRenderer-f2_6u1TA.js +0 -141
- package/dist/GenuiRenderer-f2_6u1TA.js.map +0 -1
- package/dist/GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-CMjFQe5i.js.map +0 -1
- package/dist/chat.types-DEDNSs5o.js +0 -1817
- package/dist/chat.types-DEDNSs5o.js.map +0 -1
- package/dist/code-generator.d.ts +0 -139
- package/dist/code-generator.js +0 -6
- package/dist/code-generator.js.map +0 -1
- package/dist/injection-tokens-DDgspg4x.js.map +0 -1
- package/dist/vue-code-generator-CwPQ3GDh.js +0 -573
- package/dist/vue-code-generator-CwPQ3GDh.js.map +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { defineComponent as a, provide as i, createBlock as p, openBlock as m, normalizeProps as r, guardReactiveProps as t, createSlots as l, withCtx as s, renderSlot as n } from "vue";
|
|
2
2
|
import { materials as d } from "@opentiny/genui-sdk-materials-vue-opentiny-vue/materials";
|
|
3
|
-
import { b as f } from "./injection-tokens-
|
|
4
|
-
import { G as
|
|
3
|
+
import { b as f } from "./injection-tokens-CuDQs1ne.js";
|
|
4
|
+
import { G as u } from "./GenuiRenderer-C2w3WGQa.js";
|
|
5
5
|
const v = /* @__PURE__ */ a({
|
|
6
6
|
__name: "GenuiRendererWithMaterials",
|
|
7
7
|
props: {
|
|
8
8
|
content: {},
|
|
9
9
|
generating: { type: Boolean },
|
|
10
|
-
isJsonComplete: { type: Boolean },
|
|
10
|
+
isJsonComplete: { type: Boolean, default: !0 },
|
|
11
11
|
customComponents: {},
|
|
12
12
|
customActions: {},
|
|
13
13
|
requiredCompleteFieldSelectors: {},
|
|
14
14
|
id: {},
|
|
15
15
|
state: {}
|
|
16
16
|
},
|
|
17
|
-
setup(
|
|
18
|
-
return i(f, d), (e, h) => (m(), p(
|
|
17
|
+
setup(c) {
|
|
18
|
+
return i(f, d), (e, h) => (m(), p(u, r(t(e.$props)), l({ _: 2 }, [
|
|
19
19
|
e.$slots.header ? {
|
|
20
20
|
name: "header",
|
|
21
21
|
fn: s((o) => [
|
|
@@ -36,4 +36,4 @@ const v = /* @__PURE__ */ a({
|
|
|
36
36
|
export {
|
|
37
37
|
v as _
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-
|
|
39
|
+
//# sourceMappingURL=GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-BlhUkAxb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-BlhUkAxb.js","sources":["../src/legacy-renderer/GenuiRendererWithMaterials.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { provide } from 'vue';\nimport { materials as defaultMaterials } from '@opentiny/genui-sdk-materials-vue-opentiny-vue/materials';\nimport { GENUI_MATERIALS } from '../config-provider/injection-tokens';\nimport GenuiRenderer from '../renderer/GenuiRenderer.vue';\nimport type { IRendererProps, IRendererSlots } from '../renderer/renderer.types';\n\nwithDefaults(defineProps<IRendererProps>(), {\n isJsonComplete: true,\n});\ndefineSlots<IRendererSlots>();\nprovide(GENUI_MATERIALS, defaultMaterials);\n</script>\n\n<template>\n <GenuiRenderer v-bind=\"$props\">\n <template v-if=\"$slots.header\" #header=\"slotProps\">\n <slot name=\"header\" v-bind=\"slotProps\" />\n </template>\n <template v-if=\"$slots.footer\" #footer=\"slotProps\">\n <slot name=\"footer\" v-bind=\"slotProps\" />\n </template>\n </GenuiRenderer>\n</template>\n"],"names":["provide","GENUI_MATERIALS","defaultMaterials","_openBlock","_createBlock","GenuiRenderer","$props","_createSlots","$slots","_withCtx","slotProps","_renderSlot","_ctx"],"mappings":";;;;;;;;;;;;;;;;;AAWA,WAAAA,EAAQC,GAAiBC,CAAgB,cAIvCC,EAAA,GAAAC,EAOgBC,OAPOC,EAAAA,MAAM,CAAA,GAAAC,EAAA,EAAA,GAAA,KAAA;AAAA,MACXC,EAAAA,OAAO;cAAS;AAAA,QAC9B,IAAAC,EAAA,CADsCC,MAAS;AAAA,UAC/CC,EAAyCC,wBAAbF,CAAS,CAAA,CAAA;AAAA,QAAA;;;MAEvBF,EAAAA,OAAO;cAAS;AAAA,QAC9B,IAAAC,EAAA,CADsCC,MAAS;AAAA,UAC/CC,EAAyCC,wBAAbF,CAAS,CAAA,CAAA;AAAA,QAAA;;;;;;"}
|
package/dist/chat.d.ts
CHANGED
|
@@ -141,8 +141,6 @@ declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
141
141
|
};
|
|
142
142
|
};
|
|
143
143
|
|
|
144
|
-
export declare const cardIdSymbol: unique symbol;
|
|
145
|
-
|
|
146
144
|
export declare function createI18n(options?: I18nOptions): I18nInstance;
|
|
147
145
|
|
|
148
146
|
/**
|
|
@@ -173,8 +171,6 @@ export declare class CustomModelProvider extends BaseModelProvider {
|
|
|
173
171
|
}): Promise<void>;
|
|
174
172
|
protected setupStreamContext(context: Record<string, unknown>, _request: ChatCompletionRequest): void;
|
|
175
173
|
handlerChunk(rawData: string, context: any): void;
|
|
176
|
-
handlerBeforeRequest(context: any): void;
|
|
177
|
-
handlerRequestError(context: any, error?: unknown): void;
|
|
178
174
|
handlerStart(context: any, handlers: {
|
|
179
175
|
onData: (data: IChatMessage) => void;
|
|
180
176
|
onDone: () => void;
|
|
@@ -379,8 +375,6 @@ export declare interface IResponseHandler<T> {
|
|
|
379
375
|
match: (data: T, context: any) => boolean;
|
|
380
376
|
handler: (data: T, context: any) => boolean;
|
|
381
377
|
notMatchHandler?: (data: T, context: any) => boolean;
|
|
382
|
-
beforeRequest?: (context: any) => void;
|
|
383
|
-
onRequestError?: (context: any, error?: unknown) => void;
|
|
384
378
|
start?: (context: any, handlers: {
|
|
385
379
|
onData: (data: IChatMessage) => void;
|
|
386
380
|
onDone: () => void;
|
package/dist/chat.js
CHANGED
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
import { C as s, D as t, E as r, G as
|
|
2
|
-
import { c as p } from "./
|
|
3
|
-
import { c as f, u as x } from "./injection-tokens-DDgspg4x.js";
|
|
1
|
+
import { C as s, D as t, E as r, G as n, I as o, M as u, T as d, d as E, e as i, s as l, b as M, t as g, u as m, a as I } from "./chat.types-BqZOCKBz.js";
|
|
2
|
+
import { c, u as p } from "./injection-tokens-CuDQs1ne.js";
|
|
4
3
|
export {
|
|
5
4
|
s as CustomModelProvider,
|
|
6
5
|
t as DEFAULT_IMAGE_FEATURES,
|
|
7
6
|
r as EventEmitter,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
M as useMessage
|
|
7
|
+
n as GenuiChat,
|
|
8
|
+
o as IndexedDBStrategy,
|
|
9
|
+
u as MessageManager,
|
|
10
|
+
d as ThinkTagWrapPattern,
|
|
11
|
+
c as createI18n,
|
|
12
|
+
E as defaultResponseHandlers,
|
|
13
|
+
i as emitter,
|
|
14
|
+
l as scrollEnd,
|
|
15
|
+
M as throttle,
|
|
16
|
+
g as toSlotFunction,
|
|
17
|
+
m as useConversation,
|
|
18
|
+
p as useI18n,
|
|
19
|
+
I as useMessage
|
|
22
20
|
};
|
|
23
21
|
//# sourceMappingURL=chat.js.map
|
package/dist/chat.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chat.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|