contactstudiocstools 1.0.242 → 1.0.243

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,5 +1,5 @@
1
1
  {
2
2
  "name": "@contactstudio/cstools",
3
3
  "configKey": "CSTools",
4
- "version": "1.0.242"
4
+ "version": "1.0.243"
5
5
  }
@@ -149,7 +149,7 @@
149
149
  </template>
150
150
 
151
151
  <script setup lang="ts">
152
- import { ref, computed, watch } from "vue";
152
+ import { ref, computed, watch, onUpdated } from "vue";
153
153
  import { IChatContact, IChatMessages, sleep } from "./types";
154
154
  import { marked } from "marked";
155
155
  import { useNuxtApp } from "#app";
@@ -205,6 +205,13 @@ const OrganismChatMessagesRef = ref<HTMLElement>();
205
205
  const lastTyping = ref<boolean>(false);
206
206
 
207
207
  // methods
208
+
209
+ onUpdated(() => {
210
+ // Resolver problema, que ao carregar um novo contato, o cursor seleciona o começo do texto
211
+ // Com isso, o cursor volta par o final do texto, não fazendo errar a digitação
212
+ setEndOfContenteditable(textareaRef.value)
213
+ })
214
+
208
215
  async function verifyPaste(): Promise<void> {
209
216
  const clipboard = await navigator.clipboard.readText();
210
217
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contactstudiocstools",
3
- "version": "1.0.242",
3
+ "version": "1.0.243",
4
4
  "description": "Nuxt Tools Module for ContactStudio",
5
5
  "type": "module",
6
6
  "exports": {