@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.
Files changed (48) hide show
  1. package/README.md +11 -2
  2. package/dist/ConfigProvider-D6LFAgg5.js +131 -0
  3. package/dist/ConfigProvider-D6LFAgg5.js.map +1 -0
  4. package/dist/GenuiRenderer-f2_6u1TA.js +141 -0
  5. package/dist/GenuiRenderer-f2_6u1TA.js.map +1 -0
  6. package/dist/chat.d.ts +6 -0
  7. package/dist/chat.js +17 -15
  8. package/dist/chat.js.map +1 -1
  9. package/dist/chat.types-DEDNSs5o.js +1817 -0
  10. package/dist/chat.types-DEDNSs5o.js.map +1 -0
  11. package/dist/code-generator.d.ts +139 -0
  12. package/dist/code-generator.js +6 -0
  13. package/dist/code-generator.js.map +1 -0
  14. package/dist/config-provider.d.ts +24 -12
  15. package/dist/config-provider.js +5 -5
  16. package/dist/index.d.ts +1100 -677
  17. package/dist/index.js +39 -31
  18. package/dist/index.js.map +1 -1
  19. package/dist/{GenuiRenderer-C2w3WGQa.js → injection-tokens-DDgspg4x.js} +3474 -3497
  20. package/dist/injection-tokens-DDgspg4x.js.map +1 -0
  21. package/dist/legacy-chat.d.ts +789 -534
  22. package/dist/legacy-chat.js +63 -19
  23. package/dist/legacy-chat.js.map +1 -1
  24. package/dist/legacy-config-provider.d.ts +58 -0
  25. package/dist/legacy-config-provider.js +25 -0
  26. package/dist/legacy-config-provider.js.map +1 -0
  27. package/dist/legacy-renderer.d.ts +28 -20
  28. package/dist/legacy-renderer.js +38 -4
  29. package/dist/legacy-renderer.js.map +1 -1
  30. package/dist/renderer.d.ts +3 -2
  31. package/dist/renderer.js +1 -1
  32. package/dist/transform-jsx.d.ts +2 -3
  33. package/dist/transform-jsx.js +5 -2
  34. package/dist/transform-jsx.js.map +1 -1
  35. package/dist/vue-code-generator-CwPQ3GDh.js +573 -0
  36. package/dist/vue-code-generator-CwPQ3GDh.js.map +1 -0
  37. package/package.json +18 -7
  38. package/dist/ConfigProvider-BzxW9L3f.js +0 -95
  39. package/dist/ConfigProvider-BzxW9L3f.js.map +0 -1
  40. package/dist/GenuiChatWithMaterials.vue_vue_type_script_setup_true_lang-Bdu-r86w.js +0 -49
  41. package/dist/GenuiChatWithMaterials.vue_vue_type_script_setup_true_lang-Bdu-r86w.js.map +0 -1
  42. package/dist/GenuiRenderer-C2w3WGQa.js.map +0 -1
  43. package/dist/GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-BlhUkAxb.js +0 -39
  44. package/dist/GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-BlhUkAxb.js.map +0 -1
  45. package/dist/chat.types-BqZOCKBz.js +0 -1794
  46. package/dist/chat.types-BqZOCKBz.js.map +0 -1
  47. package/dist/injection-tokens-CuDQs1ne.js +0 -114
  48. package/dist/injection-tokens-CuDQs1ne.js.map +0 -1
@@ -1,23 +1,67 @@
1
- import { _ as e } from "./GenuiChatWithMaterials.vue_vue_type_script_setup_true_lang-Bdu-r86w.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-BqZOCKBz.js";
3
- import { a as c, G as m, b as A, c as N, u as U } from "./injection-tokens-CuDQs1ne.js";
1
+ import { defineComponent as p, ref as i, provide as c, createBlock as m, openBlock as u, mergeProps as l, createSlots as f, renderList as _, withCtx as d, renderSlot as h, normalizeProps as E, guardReactiveProps as g } from "vue";
2
+ import { materials as C } from "@opentiny/genui-sdk-materials-vue-opentiny-vue/materials";
3
+ import { b as I } from "./injection-tokens-DDgspg4x.js";
4
+ import { a as N, G as P, c as R, u as U } from "./injection-tokens-DDgspg4x.js";
5
+ import { G } from "./chat.types-DEDNSs5o.js";
6
+ import { D as L, E as B, I as D, M as $, T as w, e as O, s as W, b as j, t as q, u as z, a as H } from "./chat.types-DEDNSs5o.js";
7
+ const S = /* @__PURE__ */ p({
8
+ __name: "GenuiChatWithMaterials",
9
+ props: {
10
+ url: {},
11
+ model: {},
12
+ temperature: {},
13
+ messages: {},
14
+ chatConfig: {},
15
+ requiredCompleteFieldSelectors: {},
16
+ customComponents: {},
17
+ customSnippets: {},
18
+ customExamples: {},
19
+ customActions: {},
20
+ rendererSlots: {},
21
+ thinkComponent: { type: [Object, Function] },
22
+ roles: {},
23
+ features: {},
24
+ customFetch: { type: Function }
25
+ },
26
+ setup(F, { expose: a }) {
27
+ const o = i();
28
+ return c(I, C), a(
29
+ new Proxy({}, {
30
+ get(r, s) {
31
+ const t = o.value, e = t == null ? void 0 : t[s];
32
+ return typeof e == "function" ? e.bind(t) : e;
33
+ }
34
+ })
35
+ ), (r, s) => (u(), m(G, l({
36
+ ref_key: "chatRef",
37
+ ref: o
38
+ }, r.$props), f({ _: 2 }, [
39
+ _(r.$slots, (t, e) => ({
40
+ name: e,
41
+ fn: d((n) => [
42
+ h(r.$slots, e, E(g(n || {})))
43
+ ])
44
+ }))
45
+ ]), 1040));
46
+ }
47
+ }), A = S;
4
48
  export {
5
- r as DEFAULT_IMAGE_FEATURES,
6
- n as EventEmitter,
7
- c as GENUI_CONFIG,
8
- m as GENUI_I18N,
9
- A as GENUI_MATERIALS,
10
- e as GenuiLegacyChat,
11
- o as IndexedDBStrategy,
12
- E as MessageManager,
13
- I as ThinkTagWrapPattern,
14
- N as createI18n,
15
- u as emitter,
16
- G as scrollEnd,
17
- g as throttle,
18
- i as toSlotFunction,
19
- M as useConversation,
49
+ L as DEFAULT_IMAGE_FEATURES,
50
+ B as EventEmitter,
51
+ N as GENUI_CONFIG,
52
+ P as GENUI_I18N,
53
+ I as GENUI_MATERIALS,
54
+ A as GenuiLegacyChat,
55
+ D as IndexedDBStrategy,
56
+ $ as MessageManager,
57
+ w as ThinkTagWrapPattern,
58
+ R as createI18n,
59
+ O as emitter,
60
+ W as scrollEnd,
61
+ j as throttle,
62
+ q as toSlotFunction,
63
+ z as useConversation,
20
64
  U as useI18n,
21
- T as useMessage
65
+ H as useMessage
22
66
  };
23
67
  //# sourceMappingURL=legacy-chat.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"legacy-chat.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
1
+ {"version":3,"file":"legacy-chat.js","sources":["../src/legacy-chat/GenuiChatWithMaterials.vue","../src/legacy-chat/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\nimport { provide, ref } from 'vue';\nimport { materials as defaultMaterials } from '@opentiny/genui-sdk-materials-vue-opentiny-vue/materials';\nimport { GENUI_MATERIALS } from '../config-provider/injection-tokens';\nimport GenuiChat from '../chat/GenuiChat.vue';\nimport type { IChatProps } from '../chat/chat.types';\n\ndefineProps<IChatProps>();\n\nconst chatRef = ref<InstanceType<typeof GenuiChat>>();\n\nprovide(GENUI_MATERIALS, defaultMaterials);\n\ndefineExpose(\n new Proxy({} as InstanceType<typeof GenuiChat>, {\n get(_target, prop) {\n const instance = chatRef.value;\n const value = instance?.[prop as keyof typeof instance];\n return typeof value === 'function' ? value.bind(instance) : value;\n },\n }),\n);\n</script>\n\n<template>\n <GenuiChat ref=\"chatRef\" v-bind=\"$props\">\n <template v-for=\"(_, name) in $slots\" #[name]=\"slotProps\">\n <slot :name=\"name\" v-bind=\"slotProps || {}\" />\n </template>\n </GenuiChat>\n</template>\n","import GenuiChatWithMaterials from './GenuiChatWithMaterials.vue';\n\n/** @deprecated 请改用 `GenuiChat`,并通过 `GenuiConfigProvider` 提供物料。 */\nexport const GenuiLegacyChat = GenuiChatWithMaterials;\nexport * from '../chat/chat.types.js';\nexport * from '../config-provider/injection-tokens.js';\nexport * from '../chat/i18n/index.js';\nexport * from '../chat/tiny-robot-patch/index.js';\nexport * from '../chat/event-emitter.js';\nexport * from '../chat/chat-utils.js';\nexport * from '../chat/think-tag-wrap-pattern.js';\n"],"names":["chatRef","ref","provide","GENUI_MATERIALS","defaultMaterials","__expose","_target","prop","instance","value","_openBlock","_createBlock","GenuiChat","_mergeProps","$props","_createSlots","$slots","_","name","_withCtx","slotProps","_renderSlot","_ctx","_normalizeProps","_guardReactiveProps","GenuiLegacyChat","GenuiChatWithMaterials"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AASA,UAAMA,IAAUC,EAAA;AAEhB,WAAAC,EAAQC,GAAiBC,CAAgB,GAEzCC;AAAA,MACE,IAAI,MAAM,CAAA,GAAsC;AAAA,QAC9C,IAAIC,GAASC,GAAM;AACjB,gBAAMC,IAAWR,EAAQ,OACnBS,IAAQD,KAAA,gBAAAA,EAAWD;AACzB,iBAAO,OAAOE,KAAU,aAAaA,EAAM,KAAKD,CAAQ,IAAIC;AAAA,QAC9D;AAAA,MAAA,CACD;AAAA,IAAA,cAKDC,EAAA,GAAAC,EAIYC,GAJZC,EAIY;AAAA,eAJG;AAAA,MAAJ,KAAIb;AAAA,IAAA,GAAkBc,EAAAA,MAAM,GAAAC,EAAA,EAAA,GAAA,KAAA;AAAA,QACPC,EAAAA,QAAM,CAAlBC,GAAGC;;QACnB,IAAAC,EAAA,CAD6CC,MAAS;AAAA,UACtDC,EAA8CC,EAAA,QAAjCJ,GAAIK,EAAAC,EAAUJ,KAAS,CAAA,CAAA,CAAA,CAAA;AAAA,QAAA;;;;ICxB7BK,IAAkBC;"}
@@ -0,0 +1,58 @@
1
+ import { AllowedComponentProps } from 'vue';
2
+ import { ComponentCustomProps } from 'vue';
3
+ import { ComponentOptionsBase } from 'vue';
4
+ import { ComponentOptionsMixin } from 'vue';
5
+ import { ComponentProvideOptions } from 'vue';
6
+ import { CreateComponentPublicInstanceWithMixins } from 'vue';
7
+ import { GlobalComponents } from 'vue';
8
+ import { GlobalDirectives } from 'vue';
9
+ import { MergedMaterials } from '@opentiny/genui-sdk-core';
10
+ import { PublicProps } from 'vue';
11
+ import { VNodeProps } from 'vue';
12
+
13
+ declare interface ConfigProviderProps {
14
+ theme?: string;
15
+ id?: string;
16
+ locale?: string;
17
+ i18n?: I18nMessages;
18
+ materials?: MergedMaterials;
19
+ notify?: NotifyHandler;
20
+ }
21
+
22
+ /** @deprecated 仅用于旧版组件兼容,新项目请使用 `GenuiConfigProvider` 并显式提供物料。 */
23
+ export declare const GenuiLegacyConfigProvider: {
24
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<LegacyConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
25
+ P: {};
26
+ B: {};
27
+ D: {};
28
+ C: {};
29
+ M: {};
30
+ Defaults: {};
31
+ }, Readonly<LegacyConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
32
+ __isFragment?: never;
33
+ __isTeleport?: never;
34
+ __isSuspense?: never;
35
+ } & ComponentOptionsBase<Readonly<LegacyConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
36
+ $slots: {
37
+ default?(_: {}): any;
38
+ };
39
+ });
40
+
41
+ declare type I18nMessageObject = {
42
+ [key: string]: string | I18nMessageObject;
43
+ };
44
+
45
+ declare type I18nMessages = {
46
+ [lang: string]: I18nMessageObject;
47
+ };
48
+
49
+ export declare type LegacyConfigProviderProps = Omit<ConfigProviderProps, 'materials'>;
50
+
51
+ declare type NotifyHandler = (options: {
52
+ type?: 'success' | 'warning' | 'error' | 'info';
53
+ title?: string;
54
+ message?: string;
55
+ duration?: number;
56
+ }) => void;
57
+
58
+ export { }
@@ -0,0 +1,25 @@
1
+ import { defineComponent as o, createBlock as r, openBlock as t, mergeProps as i, unref as n, withCtx as a, renderSlot as p } from "vue";
2
+ import { materials as m } from "@opentiny/genui-sdk-materials-vue-opentiny-vue/materials";
3
+ import { G as s } from "./ConfigProvider-D6LFAgg5.js";
4
+ const f = /* @__PURE__ */ o({
5
+ __name: "GenuiLegacyConfigProvider",
6
+ props: {
7
+ theme: {},
8
+ id: {},
9
+ locale: {},
10
+ i18n: {},
11
+ notify: { type: Function }
12
+ },
13
+ setup(c) {
14
+ return (e, l) => (t(), r(s, i(e.$props, { materials: n(m) }), {
15
+ default: a(() => [
16
+ p(e.$slots, "default")
17
+ ]),
18
+ _: 3
19
+ }, 16, ["materials"]));
20
+ }
21
+ }), g = f;
22
+ export {
23
+ g as GenuiLegacyConfigProvider
24
+ };
25
+ //# sourceMappingURL=legacy-config-provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacy-config-provider.js","sources":["../src/legacy-config-provider/GenuiLegacyConfigProvider.vue","../src/legacy-config-provider/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\nimport { materials as defaultMaterials } from '@opentiny/genui-sdk-materials-vue-opentiny-vue/materials';\nimport GenuiConfigProvider from '../config-provider/ConfigProvider.vue';\nimport type { LegacyConfigProviderProps } from './legacy-config-provider.types';\n\ndefineProps<LegacyConfigProviderProps>();\n</script>\n\n<template>\n <GenuiConfigProvider v-bind=\"$props\" :materials=\"defaultMaterials\">\n <slot />\n </GenuiConfigProvider>\n</template>\n","import GenuiLegacyConfigProviderImpl from './GenuiLegacyConfigProvider.vue';\n\n/** @deprecated 仅用于旧版组件兼容,新项目请使用 `GenuiConfigProvider` 并显式提供物料。 */\nexport const GenuiLegacyConfigProvider = GenuiLegacyConfigProviderImpl;\nexport type { LegacyConfigProviderProps } from './legacy-config-provider.types.js';\n"],"names":["_openBlock","_createBlock","GenuiConfigProvider","_mergeProps","_ctx","_unref","defaultMaterials","_renderSlot","GenuiLegacyConfigProvider","GenuiLegacyConfigProviderImpl"],"mappings":";;;;;;;;;;;;;sBASEA,EAAA,GAAAC,EAEsBC,GAFtBC,EAEsBC,UAFa,EAAG,WAAWC,EAAAC,CAAA,EAAA,CAAgB,GAAA;AAAA,iBAC/D,MAAQ;AAAA,QAARC,EAAQH,EAAA,QAAA,SAAA;AAAA,MAAA;;;;ICPCI,IAA4BC;"}
@@ -1,32 +1,40 @@
1
+ import { AllowedComponentProps } from 'vue';
1
2
  import { CardSchema } from '@opentiny/genui-sdk-core';
2
3
  import { Component } from 'vue';
4
+ import { ComponentCustomProps } from 'vue';
5
+ import { ComponentOptionsBase } from 'vue';
3
6
  import { ComponentOptionsMixin } from 'vue';
4
7
  import { ComponentProvideOptions } from 'vue';
5
- import { DefineComponent } from 'vue';
8
+ import { CreateComponentPublicInstanceWithMixins } from 'vue';
9
+ import { GlobalComponents } from 'vue';
10
+ import { GlobalDirectives } from 'vue';
6
11
  import { IGenPromptAction } from '@opentiny/genui-sdk-core';
7
12
  import { PublicProps } from 'vue';
8
13
  import { VNode } from 'vue';
14
+ import { VNodeProps } from 'vue';
9
15
 
10
- declare const __VLS_component: DefineComponent<IRendererProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IRendererProps> & Readonly<{}>, {
16
+ /** @deprecated 请改用 `GenuiRenderer`,并通过 `GenuiConfigProvider` 提供物料。 */
17
+ export declare const GenuiLegacyRenderer: {
18
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<IRendererProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
19
+ isJsonComplete: boolean;
20
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
21
+ P: {};
22
+ B: {};
23
+ D: {};
24
+ C: {};
25
+ M: {};
26
+ Defaults: {};
27
+ }, Readonly<IRendererProps> & Readonly<{}>, {}, {}, {}, {}, {
28
+ isJsonComplete: boolean;
29
+ }>;
30
+ __isFragment?: never;
31
+ __isTeleport?: never;
32
+ __isSuspense?: never;
33
+ } & ComponentOptionsBase<Readonly<IRendererProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
11
34
  isJsonComplete: boolean;
12
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
13
-
14
- declare function __VLS_template(): {
15
- attrs: Partial<{}>;
16
- slots: Readonly<IRendererSlots> & IRendererSlots;
17
- refs: {};
18
- rootEl: HTMLDivElement;
19
- };
20
-
21
- declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
-
23
- declare type __VLS_WithTemplateSlots<T, S> = T & {
24
- new (): {
25
- $slots: S;
26
- };
27
- };
28
-
29
- export declare const GenuiLegacyRenderer: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
35
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
36
+ $slots: Readonly<IRendererSlots> & IRendererSlots;
37
+ });
30
38
 
31
39
  export declare interface ICustomAction extends Partial<IGenPromptAction> {
32
40
  execute: (params: any, context: Record<string, any>) => any;
@@ -1,7 +1,41 @@
1
- import { _ as o } from "./GenuiRendererWithMaterials.vue_vue_type_script_setup_true_lang-BlhUkAxb.js";
2
- import { r as a } from "./GenuiRenderer-C2w3WGQa.js";
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 n, renderSlot as s } from "vue";
2
+ import { materials as d } from "@opentiny/genui-sdk-materials-vue-opentiny-vue/materials";
3
+ import { b as c } from "./injection-tokens-DDgspg4x.js";
4
+ import { G as f } from "./GenuiRenderer-f2_6u1TA.js";
5
+ import { r as k } from "./GenuiRenderer-f2_6u1TA.js";
6
+ const u = /* @__PURE__ */ a({
7
+ __name: "GenuiRendererWithMaterials",
8
+ props: {
9
+ content: {},
10
+ generating: { type: Boolean },
11
+ isJsonComplete: { type: Boolean, default: !0 },
12
+ customComponents: {},
13
+ customActions: {},
14
+ requiredCompleteFieldSelectors: {},
15
+ id: {},
16
+ state: {}
17
+ },
18
+ setup(h) {
19
+ return i(c, d), (e, C) => (m(), p(f, r(t(e.$props)), l({ _: 2 }, [
20
+ e.$slots.header ? {
21
+ name: "header",
22
+ fn: n((o) => [
23
+ s(e.$slots, "header", r(t(o)))
24
+ ]),
25
+ key: "0"
26
+ } : void 0,
27
+ e.$slots.footer ? {
28
+ name: "footer",
29
+ fn: n((o) => [
30
+ s(e.$slots, "footer", r(t(o)))
31
+ ]),
32
+ key: "1"
33
+ } : void 0
34
+ ]), 1040));
35
+ }
36
+ }), _ = u;
3
37
  export {
4
- o as GenuiLegacyRenderer,
5
- a as requiredCompleteFieldSelectors
38
+ _ as GenuiLegacyRenderer,
39
+ k as requiredCompleteFieldSelectors
6
40
  };
7
41
  //# sourceMappingURL=legacy-renderer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"legacy-renderer.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"legacy-renderer.js","sources":["../src/legacy-renderer/GenuiRendererWithMaterials.vue","../src/legacy-renderer/index.ts"],"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","import GenuiRendererWithMaterials from './GenuiRendererWithMaterials.vue';\n\n/** @deprecated 请改用 `GenuiRenderer`,并通过 `GenuiConfigProvider` 提供物料。 */\nexport const GenuiLegacyRenderer = GenuiRendererWithMaterials;\nexport * from '../renderer/config.js';\nexport * from '../renderer/renderer.types.js';\n"],"names":["provide","GENUI_MATERIALS","defaultMaterials","_openBlock","_createBlock","GenuiRenderer","$props","_createSlots","$slots","_withCtx","slotProps","_renderSlot","_ctx","GenuiLegacyRenderer","GenuiRendererWithMaterials"],"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;;;;;ICjB9BG,IAAsBC;"}
@@ -2,6 +2,7 @@ import { CardSchema } from '@opentiny/genui-sdk-core';
2
2
  import { Component } from 'vue';
3
3
  import { ComponentOptionsMixin } from 'vue';
4
4
  import { ComponentProvideOptions } from 'vue';
5
+ import { default as default_2 } from '@opentiny/tiny-schema-renderer';
5
6
  import { DefineComponent } from 'vue';
6
7
  import { IGenPromptAction } from '@opentiny/genui-sdk-core';
7
8
  import { PublicProps } from 'vue';
@@ -10,7 +11,7 @@ import { VNode } from 'vue';
10
11
  declare const __VLS_component: DefineComponent<IRendererProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IRendererProps> & Readonly<{}>, {
11
12
  isJsonComplete: boolean;
12
13
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
13
- rendererInstance: any;
14
+ rendererInstance: default_2;
14
15
  }, HTMLDivElement>;
15
16
 
16
17
  declare function __VLS_template(): {
@@ -28,7 +29,7 @@ declare function __VLS_template(): {
28
29
  }): any;
29
30
  };
30
31
  refs: {
31
- rendererInstance: any;
32
+ rendererInstance: default_2;
32
33
  };
33
34
  rootEl: HTMLDivElement;
34
35
  };
package/dist/renderer.js CHANGED
@@ -1,4 +1,4 @@
1
- import { G as o, r as d } from "./GenuiRenderer-C2w3WGQa.js";
1
+ import { G as o, r as d } from "./GenuiRenderer-f2_6u1TA.js";
2
2
  export {
3
3
  o as GenuiRenderer,
4
4
  d as requiredCompleteFieldSelectors
@@ -1,5 +1,4 @@
1
- import { transformJSX } from '../../src/types/tiny-schema-renderer.d.ts';
2
-
3
- export { transformJSX }
1
+ /** Transform JSX source into renderer-compatible code. */
2
+ export declare function transformJSX(code: string, customElements?: Record<string, any>): string;
4
3
 
5
4
  export { }
@@ -147493,7 +147493,7 @@ Using plugins:`), pe.forEach(function(Re) {
147493
147493
  });
147494
147494
  })(_N, _N.exports);
147495
147495
  var bjt = _N.exports;
147496
- const vjt = (a, r) => (bjt.transform(a, {
147496
+ const xjt = (a, r) => (bjt.transform(a, {
147497
147497
  plugins: [
147498
147498
  [
147499
147499
  gjt,
@@ -147504,7 +147504,10 @@ const vjt = (a, r) => (bjt.transform(a, {
147504
147504
  ]
147505
147505
  ]
147506
147506
  }).code || "").replace(/import \{.+\} from "vue";/, "").replace(/h\(_?resolveComponent\((.*?)\)/g, "h(this.getComponent($1)").replace(/_?resolveComponent/g, "h").replace(/_?createTextVNode\((.*?)\)/g, "$1").trim();
147507
+ function Rjt(a, r = {}) {
147508
+ return xjt(a, r);
147509
+ }
147507
147510
  export {
147508
- vjt as transformJSX
147511
+ Rjt as transformJSX
147509
147512
  };
147510
147513
  //# sourceMappingURL=transform-jsx.js.map