@meistrari/chat-nuxt 3.9.0 → 3.9.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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meistrari/chat-nuxt",
3
3
  "configKey": "chatNuxt",
4
- "version": "3.9.0",
4
+ "version": "3.9.1",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -254,15 +254,18 @@ function ensureIconifyPackages(consumerRoot) {
254
254
  }
255
255
  }
256
256
  }
257
+ function pushIconSafelist(safelist) {
258
+ for (const icon of [...DYNAMIC_ICON_SAFELIST, ...TOOL_ICON_SAFELIST]) {
259
+ if (!safelist.includes(icon)) {
260
+ safelist.push(icon);
261
+ }
262
+ }
263
+ }
257
264
  function ensureDynamicIconSafelist(nuxtOptions) {
258
265
  const options = nuxtOptions;
259
266
  const unocssOptions = options.unocss ||= {};
260
267
  const currentSafelist = Array.isArray(unocssOptions.safelist) ? unocssOptions.safelist : unocssOptions.safelist ? [unocssOptions.safelist] : [];
261
- for (const icon of [...DYNAMIC_ICON_SAFELIST, ...TOOL_ICON_SAFELIST]) {
262
- if (!currentSafelist.includes(icon)) {
263
- currentSafelist.push(icon);
264
- }
265
- }
268
+ pushIconSafelist(currentSafelist);
266
269
  unocssOptions.safelist = currentSafelist;
267
270
  }
268
271
  function validateRuntimeConfig(runtimeConfig, mode) {
@@ -309,6 +312,11 @@ const module$1 = defineNuxtModule({
309
312
  }
310
313
  ensureIconifyPackages(nuxt.options.rootDir);
311
314
  ensureDynamicIconSafelist(nuxt.options);
315
+ const unocssHookNuxt = nuxt;
316
+ unocssHookNuxt.hook("unocss:config", (config) => {
317
+ const safelist = Array.isArray(config.safelist) ? config.safelist : config.safelist = [];
318
+ pushIconSafelist(safelist);
319
+ });
312
320
  const resolver = createResolver(import.meta.url);
313
321
  const builtRuntimeDir = resolver.resolve("./runtime");
314
322
  const sourceRuntimeDir = resolver.resolve("../src/runtime");
@@ -57,14 +57,14 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
57
57
  "update:selectedModel": (value: string | null) => any;
58
58
  } & {
59
59
  delete: () => any;
60
- cancel: () => any;
61
60
  rename: () => any;
62
61
  duplicate: () => any;
63
62
  export: () => any;
64
63
  copyLink: () => any;
65
64
  selectConversation: (id: string) => any;
66
- settings: () => any;
65
+ cancel: () => any;
67
66
  send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
67
+ settings: () => any;
68
68
  debug: () => any;
69
69
  tabChange: (tab: TopbarTab) => any;
70
70
  newConversation: (groupId?: string | null | undefined) => any;
@@ -78,14 +78,14 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
78
78
  "update:workspaceSheetOpen": (value: boolean) => any;
79
79
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
80
80
  onDelete?: (() => any) | undefined;
81
- onCancel?: (() => any) | undefined;
82
81
  onRename?: (() => any) | undefined;
83
82
  onDuplicate?: (() => any) | undefined;
84
83
  onExport?: (() => any) | undefined;
85
84
  onCopyLink?: (() => any) | undefined;
86
85
  onSelectConversation?: ((id: string) => any) | undefined;
87
- onSettings?: (() => any) | undefined;
86
+ onCancel?: (() => any) | undefined;
88
87
  onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
88
+ onSettings?: (() => any) | undefined;
89
89
  "onUpdate:selectedModel"?: ((value: string | null) => any) | undefined;
90
90
  onDebug?: (() => any) | undefined;
91
91
  onTabChange?: ((tab: TopbarTab) => any) | undefined;
@@ -57,14 +57,14 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
57
57
  "update:selectedModel": (value: string | null) => any;
58
58
  } & {
59
59
  delete: () => any;
60
- cancel: () => any;
61
60
  rename: () => any;
62
61
  duplicate: () => any;
63
62
  export: () => any;
64
63
  copyLink: () => any;
65
64
  selectConversation: (id: string) => any;
66
- settings: () => any;
65
+ cancel: () => any;
67
66
  send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
67
+ settings: () => any;
68
68
  debug: () => any;
69
69
  tabChange: (tab: TopbarTab) => any;
70
70
  newConversation: (groupId?: string | null | undefined) => any;
@@ -78,14 +78,14 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
78
78
  "update:workspaceSheetOpen": (value: boolean) => any;
79
79
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
80
80
  onDelete?: (() => any) | undefined;
81
- onCancel?: (() => any) | undefined;
82
81
  onRename?: (() => any) | undefined;
83
82
  onDuplicate?: (() => any) | undefined;
84
83
  onExport?: (() => any) | undefined;
85
84
  onCopyLink?: (() => any) | undefined;
86
85
  onSelectConversation?: ((id: string) => any) | undefined;
87
- onSettings?: (() => any) | undefined;
86
+ onCancel?: (() => any) | undefined;
88
87
  onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
88
+ onSettings?: (() => any) | undefined;
89
89
  "onUpdate:selectedModel"?: ((value: string | null) => any) | undefined;
90
90
  onDebug?: (() => any) | undefined;
91
91
  onTabChange?: ((tab: TopbarTab) => any) | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/chat-nuxt",
3
- "version": "3.9.0",
3
+ "version": "3.9.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {