@meistrari/chat-nuxt 4.15.0-rc.1 → 4.15.0-rc.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.
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meistrari/chat-nuxt",
3
3
  "configKey": "chatNuxt",
4
- "version": "4.15.0-rc.1",
4
+ "version": "4.15.0-rc.3",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
@@ -189,10 +189,10 @@ useResizeObserver(composerRef, ([entry]) => {
189
189
  composerHeights = next;
190
190
  });
191
191
  const messageInputRef = ref(null);
192
- const PROMPT_INPUT_HINTS = [
193
- { icon: "i-ph-at-bold", label: "Para mencionar arquivos" },
194
- { char: "/", label: "Para acionar skills" }
195
- ];
192
+ const promptInputHints = computed(() => [
193
+ { icon: "i-ph-at-bold", label: embedConfig?.labels.value?.mentionFilesHint ?? "Para mencionar arquivos" },
194
+ { char: "/", label: embedConfig?.labels.value?.invokeSkillsHint ?? "Para acionar skills" }
195
+ ]);
196
196
  const resolvedSuggestions = computed(
197
197
  () => props.suggestions ?? []
198
198
  );
@@ -1215,7 +1215,7 @@ defineExpose({
1215
1215
  </TelaChatSuggestion>
1216
1216
  </TelaChatSuggestions>
1217
1217
 
1218
- <TelaChatPromptInputHints v-if="resolvedFeatures.showPromptInputHints" size="sm" :hints="PROMPT_INPUT_HINTS" />
1218
+ <TelaChatPromptInputHints v-if="resolvedFeatures.showPromptInputHints" size="sm" :hints="promptInputHints" />
1219
1219
  </template>
1220
1220
 
1221
1221
  <template #input>
@@ -1453,7 +1453,7 @@ defineExpose({
1453
1453
  <TelaChatPromptInputHints
1454
1454
  v-if="resolvedFeatures.showPromptInputHints"
1455
1455
  :size="compact ? 'sm' : 'md'"
1456
- :hints="PROMPT_INPUT_HINTS"
1456
+ :hints="promptInputHints"
1457
1457
  />
1458
1458
  </template>
1459
1459
 
@@ -23,6 +23,14 @@ export type ChatLabels = {
23
23
  emptyStateTitle: string;
24
24
  /** Empty-state subheading. Defaults to `Como posso te ajudar hoje?`. */
25
25
  emptyStateDescription: string;
26
+ /** Message input placeholder. Defaults to `Escreva sua mensagem...`. */
27
+ composerPlaceholder: string;
28
+ /** Empty-state hint next to `@`. Defaults to `Para mencionar arquivos`. */
29
+ mentionFilesHint: string;
30
+ /** Empty-state hint next to `/`. Defaults to `Para acionar skills`. */
31
+ invokeSkillsHint: string;
32
+ /** Model selector trigger placeholder and menu heading. Defaults to `Modelo`. */
33
+ modelSelectorLabel: string;
26
34
  };
27
35
  export type ChatSuggestion = {
28
36
  /** Short label rendered on the suggestion pill. */
@@ -41,7 +41,8 @@ const composerExtension = inject(CHAT_COMPOSER_EXTENSION_KEY, null);
41
41
  const selectedReasoningEffort = defineModel("selectedReasoningEffort", { type: null, ...{ default: null } });
42
42
  const { uploadFiles, uploading, uploadError } = useFileUpload();
43
43
  const isCancelEnabled = computed(() => props.showCancelButton === true);
44
- const executionControls = useEmbedConfig()?.executionControls;
44
+ const embedConfig = useEmbedConfig();
45
+ const executionControls = embedConfig?.executionControls;
45
46
  const content = ref("");
46
47
  const promptTextareaRef = ref(null);
47
48
  const editorRef = computed(() => promptTextareaRef.value?.el ?? null);
@@ -758,7 +759,7 @@ defineExpose({
758
759
  <TelaChatPromptInputTextarea
759
760
  ref="promptTextareaRef"
760
761
  data-testid="chat-message-input"
761
- placeholder="Escreva sua mensagem..."
762
+ :placeholder="embedConfig?.labels.value?.composerPlaceholder ?? 'Escreva sua mensagem...'"
762
763
  :empty="!content.trim()"
763
764
  :flush="hasAttachments"
764
765
  :disabled="isLocked"
@@ -26,6 +26,7 @@ const boundReasoning = computed({
26
26
  }
27
27
  });
28
28
  const embedConfig = useEmbedConfig();
29
+ const modelLabel = computed(() => embedConfig?.labels.value?.modelSelectorLabel ?? "Modelo");
29
30
  const isLightweight = useChatRequestContext()?.harness?.value === "lightweight";
30
31
  const lightweightCatalog = isLightweight ? useLightweightModelCatalog() : null;
31
32
  const catalog = isLightweight ? null : useChatModelCatalog();
@@ -75,8 +76,8 @@ watch(activeCatalog.scopeKey, () => {
75
76
  :options="options"
76
77
  :reasoning-options="reasoningOptions"
77
78
  :disabled="disabled || options.length === 0"
78
- placeholder="Modelo"
79
- label-model="Modelo"
79
+ :placeholder="modelLabel"
80
+ :label-model="modelLabel"
80
81
  label-reasoning="Raciocínio"
81
82
  label-reasoning-default="Padrão"
82
83
  label-use-default="Usar padrão do agente"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/chat-nuxt",
3
- "version": "4.15.0-rc.1",
3
+ "version": "4.15.0-rc.3",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {