@opentiny/genui-sdk-vue 1.3.0 → 1.3.1-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/README.md +11 -2
- package/dist/ConfigProvider-B_1dX_dv.js +131 -0
- package/dist/ConfigProvider-B_1dX_dv.js.map +1 -0
- package/dist/{GenuiChatWithMaterials.vue_vue_type_script_setup_true_lang-CxcSUrjG.js → GenuiChatWithMaterials.vue_vue_type_script_setup_true_lang-zsZgFWJw.js} +3 -3
- package/dist/{GenuiChatWithMaterials.vue_vue_type_script_setup_true_lang-CxcSUrjG.js.map → GenuiChatWithMaterials.vue_vue_type_script_setup_true_lang-zsZgFWJw.js.map} +1 -1
- package/dist/GenuiRenderer-f2_6u1TA.js +141 -0
- package/dist/GenuiRenderer-f2_6u1TA.js.map +1 -0
- package/dist/{GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-o5SS6BG6.js → GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-CMjFQe5i.js} +3 -3
- package/dist/{GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-o5SS6BG6.js.map → GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-CMjFQe5i.js.map} +1 -1
- 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 +2 -2
- package/dist/index.d.ts +168 -16
- package/dist/index.js +37 -31
- package/dist/index.js.map +1 -1
- package/dist/injection-tokens-DDgspg4x.js +9067 -0
- package/dist/injection-tokens-DDgspg4x.js.map +1 -0
- package/dist/legacy-chat.d.ts +9 -1
- package/dist/legacy-chat.js +3 -3
- package/dist/legacy-renderer.js +2 -2
- package/dist/picocolors.browser-nFqgZww8.js +50 -0
- package/dist/picocolors.browser-nFqgZww8.js.map +1 -0
- package/dist/renderer.d.ts +2 -2
- package/dist/renderer.js +1 -1
- package/dist/transform-jsx.d.ts +2 -3
- package/dist/transform-jsx.js +147312 -66873
- 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 +12 -5
- package/dist/ConfigProvider-BzxW9L3f.js +0 -95
- package/dist/ConfigProvider-BzxW9L3f.js.map +0 -1
- package/dist/GenuiRenderer-BVwM5pRp.js +0 -15163
- package/dist/GenuiRenderer-BVwM5pRp.js.map +0 -1
- package/dist/___vite-browser-external_commonjs-proxy-4gYZYw55.js +0 -57
- package/dist/___vite-browser-external_commonjs-proxy-4gYZYw55.js.map +0 -1
- package/dist/chat.types-DsoAmslj.js +0 -1794
- package/dist/chat.types-DsoAmslj.js.map +0 -1
- package/dist/injection-tokens-CuDQs1ne.js +0 -114
- package/dist/injection-tokens-CuDQs1ne.js.map +0 -1
package/dist/legacy-chat.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ import { RendererElement } from 'vue';
|
|
|
41
41
|
import { RendererNode } from 'vue';
|
|
42
42
|
import { ShallowUnwrapRef } from 'vue';
|
|
43
43
|
import { Slot } from 'vue';
|
|
44
|
+
import { ThemeColorScheme } from '@opentiny/genui-sdk-core';
|
|
44
45
|
import { UnwrapNestedRefs } from 'vue';
|
|
45
46
|
import { UseConversationOptions } from '@opentiny/tiny-robot-kit';
|
|
46
47
|
import { UseMessageReturn as UseMessageReturn_2 } from '@opentiny/tiny-robot-kit';
|
|
@@ -814,12 +815,17 @@ declare interface FileMeta {
|
|
|
814
815
|
base64: string;
|
|
815
816
|
}
|
|
816
817
|
|
|
817
|
-
export declare const GENUI_CONFIG:
|
|
818
|
+
export declare const GENUI_CONFIG: InjectionKey<ComputedRef<GenuiConfigState>>;
|
|
818
819
|
|
|
819
820
|
export declare const GENUI_I18N: unique symbol;
|
|
820
821
|
|
|
821
822
|
export declare const GENUI_MATERIALS: InjectionKey<IMaterials>;
|
|
822
823
|
|
|
824
|
+
export declare interface GenuiConfigState {
|
|
825
|
+
colorScheme: ThemeColorScheme;
|
|
826
|
+
id: string;
|
|
827
|
+
}
|
|
828
|
+
|
|
823
829
|
export declare const GenuiLegacyChat: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
824
830
|
|
|
825
831
|
export declare interface I18nInstance {
|
|
@@ -970,6 +976,8 @@ declare interface IResponseHandler<T> {
|
|
|
970
976
|
match: (data: T, context: any) => boolean;
|
|
971
977
|
handler: (data: T, context: any) => boolean;
|
|
972
978
|
notMatchHandler?: (data: T, context: any) => boolean;
|
|
979
|
+
beforeRequest?: (context: any) => void;
|
|
980
|
+
onRequestError?: (context: any, error?: unknown) => void;
|
|
973
981
|
start?: (context: any, handlers: {
|
|
974
982
|
onData: (data: IChatMessage) => void;
|
|
975
983
|
onDone: () => void;
|
package/dist/legacy-chat.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
3
|
-
import { a as c, G as m, b as A, c as N, u as U } from "./injection-tokens-
|
|
1
|
+
import { _ as e } from "./GenuiChatWithMaterials.vue_vue_type_script_setup_true_lang-zsZgFWJw.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-DEDNSs5o.js";
|
|
3
|
+
import { a as c, G as m, b as A, c as N, u as U } from "./injection-tokens-DDgspg4x.js";
|
|
4
4
|
export {
|
|
5
5
|
r as DEFAULT_IMAGE_FEATURES,
|
|
6
6
|
n as EventEmitter,
|
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-CMjFQe5i.js";
|
|
2
|
+
import { r as a } from "./GenuiRenderer-f2_6u1TA.js";
|
|
3
3
|
export {
|
|
4
4
|
o as GenuiLegacyRenderer,
|
|
5
5
|
a as requiredCompleteFieldSelectors
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var u = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
+
function f(t) {
|
|
3
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
4
|
+
}
|
|
5
|
+
function p(t) {
|
|
6
|
+
if (t.__esModule) return t;
|
|
7
|
+
var o = t.default;
|
|
8
|
+
if (typeof o == "function") {
|
|
9
|
+
var r = function a() {
|
|
10
|
+
return this instanceof a ? Reflect.construct(o, arguments, this.constructor) : o.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
r.prototype = o.prototype;
|
|
13
|
+
} else r = {};
|
|
14
|
+
return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(t).forEach(function(a) {
|
|
15
|
+
var n = Object.getOwnPropertyDescriptor(t, a);
|
|
16
|
+
Object.defineProperty(r, a, n.get ? n : {
|
|
17
|
+
enumerable: !0,
|
|
18
|
+
get: function() {
|
|
19
|
+
return t[a];
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}), r;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @vue/shared v3.5.26
|
|
26
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
27
|
+
* @license MIT
|
|
28
|
+
**/
|
|
29
|
+
// @__NO_SIDE_EFFECTS__
|
|
30
|
+
function l(t) {
|
|
31
|
+
const o = /* @__PURE__ */ Object.create(null);
|
|
32
|
+
for (const r of t.split(",")) o[r] = 1;
|
|
33
|
+
return (r) => r in o;
|
|
34
|
+
}
|
|
35
|
+
const g = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot", c = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view", h = /* @__PURE__ */ l(g), d = /* @__PURE__ */ l(c);
|
|
36
|
+
var i = { exports: {} }, e = String, s = function() {
|
|
37
|
+
return { isColorSupported: !1, reset: e, bold: e, dim: e, italic: e, underline: e, inverse: e, hidden: e, strikethrough: e, black: e, red: e, green: e, yellow: e, blue: e, magenta: e, cyan: e, white: e, gray: e, bgBlack: e, bgRed: e, bgGreen: e, bgYellow: e, bgBlue: e, bgMagenta: e, bgCyan: e, bgWhite: e, blackBright: e, redBright: e, greenBright: e, yellowBright: e, blueBright: e, magentaBright: e, cyanBright: e, whiteBright: e, bgBlackBright: e, bgRedBright: e, bgGreenBright: e, bgYellowBright: e, bgBlueBright: e, bgMagentaBright: e, bgCyanBright: e, bgWhiteBright: e };
|
|
38
|
+
};
|
|
39
|
+
i.exports = s();
|
|
40
|
+
i.exports.createColors = s;
|
|
41
|
+
var b = i.exports;
|
|
42
|
+
export {
|
|
43
|
+
b,
|
|
44
|
+
h as d,
|
|
45
|
+
u as f,
|
|
46
|
+
d as h,
|
|
47
|
+
f as p,
|
|
48
|
+
p as u
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=picocolors.browser-nFqgZww8.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picocolors.browser-nFqgZww8.js","sources":["../../../../projects/tiny-schema-renderer/dist/picocolors.browser.js"],"sourcesContent":["var f = typeof globalThis < \"u\" ? globalThis : typeof window < \"u\" ? window : typeof global < \"u\" ? global : typeof self < \"u\" ? self : {};\nfunction p(t) {\n return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, \"default\") ? t.default : t;\n}\nfunction u(t) {\n if (t.__esModule) return t;\n var o = t.default;\n if (typeof o == \"function\") {\n var r = function a() {\n return this instanceof a ? Reflect.construct(o, arguments, this.constructor) : o.apply(this, arguments);\n };\n r.prototype = o.prototype;\n } else r = {};\n return Object.defineProperty(r, \"__esModule\", { value: !0 }), Object.keys(t).forEach(function(a) {\n var n = Object.getOwnPropertyDescriptor(t, a);\n Object.defineProperty(r, a, n.get ? n : {\n enumerable: !0,\n get: function() {\n return t[a];\n }\n });\n }), r;\n}\n/**\n* @vue/shared v3.5.26\n* (c) 2018-present Yuxi (Evan) You and Vue contributors\n* @license MIT\n**/\n// @__NO_SIDE_EFFECTS__\nfunction l(t) {\n const o = /* @__PURE__ */ Object.create(null);\n for (const r of t.split(\",\")) o[r] = 1;\n return (r) => r in o;\n}\nconst c = \"html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot\", g = \"svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view\", d = /* @__PURE__ */ l(c), h = /* @__PURE__ */ l(g);\nvar i = { exports: {} }, e = String, s = function() {\n return { isColorSupported: !1, reset: e, bold: e, dim: e, italic: e, underline: e, inverse: e, hidden: e, strikethrough: e, black: e, red: e, green: e, yellow: e, blue: e, magenta: e, cyan: e, white: e, gray: e, bgBlack: e, bgRed: e, bgGreen: e, bgYellow: e, bgBlue: e, bgMagenta: e, bgCyan: e, bgWhite: e, blackBright: e, redBright: e, greenBright: e, yellowBright: e, blueBright: e, magentaBright: e, cyanBright: e, whiteBright: e, bgBlackBright: e, bgRedBright: e, bgGreenBright: e, bgYellowBright: e, bgBlueBright: e, bgMagentaBright: e, bgCyanBright: e, bgWhiteBright: e };\n};\ni.exports = s();\ni.exports.createColors = s;\nvar b = i.exports;\nexport {\n u as a,\n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AAI,EAAE,SAAS,CAAA,EAAE,GAAI,IAAI,QAAQ,IAAI,WAAW;AAClD,SAAO,EAAE,kBAAkB,IAAI,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,eAAe,GAAG,OAAO,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,GAAG,YAAY,GAAG,eAAe,GAAG,YAAY,GAAG,aAAa,GAAG,eAAe,GAAG,aAAa,GAAG,eAAe,GAAG,gBAAgB,GAAG,cAAc,GAAG,iBAAiB,GAAG,cAAc,GAAG,eAAe,EAAC;AACjkB;AACA,EAAE,UAAU,EAAC;AACb,EAAE,QAAQ,eAAe;AACtB,IAAC,IAAI,EAAE;"}
|
package/dist/renderer.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { VNode } from 'vue';
|
|
|
10
10
|
declare const __VLS_component: DefineComponent<IRendererProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IRendererProps> & Readonly<{}>, {
|
|
11
11
|
isJsonComplete: boolean;
|
|
12
12
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
13
|
-
rendererInstance:
|
|
13
|
+
rendererInstance: unknown;
|
|
14
14
|
}, HTMLDivElement>;
|
|
15
15
|
|
|
16
16
|
declare function __VLS_template(): {
|
|
@@ -28,7 +28,7 @@ declare function __VLS_template(): {
|
|
|
28
28
|
}): any;
|
|
29
29
|
};
|
|
30
30
|
refs: {
|
|
31
|
-
rendererInstance:
|
|
31
|
+
rendererInstance: unknown;
|
|
32
32
|
};
|
|
33
33
|
rootEl: HTMLDivElement;
|
|
34
34
|
};
|
package/dist/renderer.js
CHANGED
package/dist/transform-jsx.d.ts
CHANGED