@meistrari/chat-nuxt 4.6.0-rc.2 → 4.6.0-rc.4

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": "4.6.0-rc.2",
4
+ "version": "4.6.0-rc.4",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
@@ -42,6 +42,7 @@ const props = defineProps({
42
42
  user: { type: null, required: false },
43
43
  features: { type: Object, required: false },
44
44
  variant: { type: String, required: false },
45
+ position: { type: String, required: false },
45
46
  defaultOpen: { type: Boolean, required: false },
46
47
  closeOnOutsideClick: { type: Boolean, required: false },
47
48
  keepMounted: { type: Boolean, required: false },
@@ -34,6 +34,7 @@ const { hideSidebar = void 0, syncBrowserState = true, closeOnOutsideClick = tru
34
34
  user: { type: null, required: false },
35
35
  features: { type: Object, required: false },
36
36
  variant: { type: String, required: false },
37
+ position: { type: String, required: false },
37
38
  defaultOpen: { type: Boolean, required: false },
38
39
  closeOnOutsideClick: { type: Boolean, required: false },
39
40
  keepMounted: { type: Boolean, required: false },
@@ -132,7 +133,7 @@ const widgetEmbedProps = computed(() => ({
132
133
 
133
134
  <ClientOnly v-else>
134
135
  <!-- Floating: popover anchored to the launcher pill -->
135
- <TelaChatFloatingWindow v-if="variant === 'floating'" :open="isOpen" :close-on-outside-click="closeOnOutsideClick" :keep-mounted="props.keepMounted" @update:open="setOpen">
136
+ <TelaChatFloatingWindow v-if="variant === 'floating'" :open="isOpen" :position="props.position" :close-on-outside-click="closeOnOutsideClick" :keep-mounted="props.keepMounted" @update:open="setOpen">
136
137
  <template #launcher>
137
138
  <TelaChatFloatingWindowTrigger :open="isOpen" :label="props.launcherLabel" />
138
139
  </template>
@@ -67,8 +67,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
67
67
  copyLink: () => any;
68
68
  debug: () => any;
69
69
  selectConversation: (id: string) => any;
70
- settings: () => any;
71
70
  send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
71
+ settings: () => any;
72
72
  tabChange: (tab: TopbarTab) => any;
73
73
  newConversation: (groupId?: string | null | undefined) => any;
74
74
  switchWorkspace: () => any;
@@ -88,8 +88,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
88
88
  onCopyLink?: (() => any) | undefined;
89
89
  onDebug?: (() => any) | undefined;
90
90
  onSelectConversation?: ((id: string) => any) | undefined;
91
- onSettings?: (() => any) | undefined;
92
91
  onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
92
+ onSettings?: (() => any) | undefined;
93
93
  "onUpdate:selectedModel"?: ((value: string | null) => any) | undefined;
94
94
  "onUpdate:selectedReasoningEffort"?: ((value: any) => any) | undefined;
95
95
  onTabChange?: ((tab: TopbarTab) => any) | undefined;
@@ -67,8 +67,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
67
67
  copyLink: () => any;
68
68
  debug: () => any;
69
69
  selectConversation: (id: string) => any;
70
- settings: () => any;
71
70
  send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
71
+ settings: () => any;
72
72
  tabChange: (tab: TopbarTab) => any;
73
73
  newConversation: (groupId?: string | null | undefined) => any;
74
74
  switchWorkspace: () => any;
@@ -88,8 +88,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
88
88
  onCopyLink?: (() => any) | undefined;
89
89
  onDebug?: (() => any) | undefined;
90
90
  onSelectConversation?: ((id: string) => any) | undefined;
91
- onSettings?: (() => any) | undefined;
92
91
  onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
92
+ onSettings?: (() => any) | undefined;
93
93
  "onUpdate:selectedModel"?: ((value: string | null) => any) | undefined;
94
94
  "onUpdate:selectedReasoningEffort"?: ((value: any) => any) | undefined;
95
95
  onTabChange?: ((tab: TopbarTab) => any) | undefined;
@@ -189,6 +189,8 @@ export type ChatEmbedVariantProps = {
189
189
  * client-only and default to `hideSidebar`.
190
190
  */
191
191
  variant?: ChatEmbedVariant;
192
+ /** Floating variant only: launcher corner and animation origin. Defaults to right. */
193
+ position?: 'left' | 'right';
192
194
  /** Floating variant only: start with the widget window open. */
193
195
  defaultOpen?: boolean;
194
196
  /** Floating variant only: close on outside clicks. Defaults to true. */
@@ -206,6 +206,10 @@ export async function proxyChatApiRequest(event, targetPath, options = {}) {
206
206
  networkErrorCodes: networkErrorCodes(error)
207
207
  }, "Chat API proxy upstream request failed");
208
208
  }
209
+ if (event.node.res.headersSent) {
210
+ event.node.res.destroy();
211
+ return;
212
+ }
209
213
  throw error;
210
214
  }
211
215
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/chat-nuxt",
3
- "version": "4.6.0-rc.2",
3
+ "version": "4.6.0-rc.4",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -53,7 +53,7 @@
53
53
  "@iconify/vue": "^5.0.0",
54
54
  "@meistrari/auth-nuxt": "3.31.0",
55
55
  "@meistrari/logger": "^2.1.3",
56
- "@meistrari/tela-build": "^1.76.0",
56
+ "@meistrari/tela-build": "^1.79.0",
57
57
  "@sentry/nuxt": "^10.0.0",
58
58
  "@vueuse/components": "^12.8.0",
59
59
  "@vueuse/core": "^12.8.0",