vue-wiguet-chatweb 0.1.34 → 0.1.35

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 (50) hide show
  1. package/README.md +68 -68
  2. package/dist/App.vue.d.ts +2 -0
  3. package/dist/components/Chat.vue.d.ts +5 -2
  4. package/dist/components/ChatMessage.vue.d.ts +12 -0
  5. package/dist/components/DangerIcon.vue.d.ts +1 -1
  6. package/dist/components/IconAttach.vue.d.ts +1 -1
  7. package/dist/components/IconChat.vue.d.ts +1 -1
  8. package/dist/components/IconClose.vue.d.ts +1 -1
  9. package/dist/components/IconSend.vue.d.ts +1 -1
  10. package/dist/components/IconTelegram.vue.d.ts +1 -1
  11. package/dist/components/IconWhatsApp.vue.d.ts +1 -1
  12. package/dist/components/Loader.vue.d.ts +1 -1
  13. package/dist/components/MessageList.vue.d.ts +3 -2
  14. package/dist/components/ODialog/IPropsDialog.d.ts +0 -1
  15. package/dist/components/ODialog/ODialog.vue.d.ts +13 -15
  16. package/dist/components/Widget.vue.d.ts +1 -2
  17. package/dist/dto/app.dto.d.ts +0 -1
  18. package/dist/index.d.ts +0 -1
  19. package/dist/main.d.ts +0 -1
  20. package/dist/store/config.d.ts +0 -1
  21. package/dist/store/index.d.ts +0 -1
  22. package/dist/style.css +1 -1
  23. package/dist/vue-wiguet-chatweb.js +791 -754
  24. package/dist/vue-wiguet-chatweb.umd.cjs +26 -26
  25. package/package.json +66 -66
  26. package/src/assets/emojis/AngryIcon.svg +4 -4
  27. package/src/assets/emojis/HappiestIcon.svg +4 -4
  28. package/src/assets/emojis/HappyIcon.svg +4 -4
  29. package/src/assets/emojis/NeutralIcon.svg +4 -4
  30. package/src/assets/emojis/SadIcon.svg +4 -4
  31. package/src/components/Chat.vue +716 -696
  32. package/src/components/ChatMessage.vue +102 -102
  33. package/src/components/DangerIcon.vue +12 -12
  34. package/src/components/IconAttach.vue +24 -24
  35. package/src/components/IconChat.vue +23 -23
  36. package/src/components/IconClose.vue +5 -5
  37. package/src/components/IconSend.vue +8 -8
  38. package/src/components/IconTelegram.vue +28 -28
  39. package/src/components/IconWhatsApp.vue +39 -39
  40. package/src/components/IconWidget.vue +45 -45
  41. package/src/components/Loader.vue +31 -31
  42. package/src/components/LoadingComponent.vue +111 -111
  43. package/src/components/MessageList.vue +357 -357
  44. package/src/components/ODialog/IPropsDialog.ts +4 -4
  45. package/src/components/ODialog/IPropsSidebar.ts +13 -13
  46. package/src/components/ODialog/ODialog.vue +107 -107
  47. package/src/components/Widget.vue +196 -196
  48. package/src/components/__tests__/Chat.spec.ts +5 -5
  49. package/src/components/__tests__/ChatMessage.spec.ts +5 -5
  50. package/src/components/__tests__/MessageList.spec.ts +47 -47
@@ -1,47 +1,47 @@
1
- import { expect, it } from "vitest";
2
- import MessageList from "../MessageList.vue";
3
- import { describe } from "node:test";
4
- import { shallowMount } from "@vue/test-utils";
5
-
6
- describe("MessageList", () => {
7
- const message =
8
- "-*abc~*ad~aw _awd_ a ~testaaaaaa~* wdawdaw *aaaa_bbb_bbbbbbb* http://www.web.bo/notificacion";
9
-
10
- it("is defined", () => {
11
- expect(MessageList).toBeDefined();
12
- });
13
-
14
- describe("rich text", () => {
15
- it("must contain bold text", () => {
16
- const wrapper = shallowMount(MessageList);
17
-
18
- const vm: any = wrapper.vm;
19
-
20
- expect(vm.textToRichFormat(message)).toContain("<strong>");
21
- });
22
-
23
- it("must contain italic text", () => {
24
- const wrapper = shallowMount(MessageList);
25
-
26
- const vm: any = wrapper.vm;
27
-
28
- expect(vm.textToRichFormat(message)).toContain("<i>");
29
- });
30
-
31
- it("must contain crossed out text", () => {
32
- const wrapper = shallowMount(MessageList);
33
-
34
- const vm: any = wrapper.vm;
35
-
36
- expect(vm.textToRichFormat(message)).toContain("<del>");
37
- });
38
-
39
- it("must contain url text", () => {
40
- const wrapper = shallowMount(MessageList);
41
-
42
- const vm: any = wrapper.vm;
43
-
44
- expect(vm.textToRichFormat(message)).toContain("<a");
45
- });
46
- });
47
- });
1
+ import { expect, it } from "vitest";
2
+ import MessageList from "../MessageList.vue";
3
+ import { describe } from "node:test";
4
+ import { shallowMount } from "@vue/test-utils";
5
+
6
+ describe("MessageList", () => {
7
+ const message =
8
+ "-*abc~*ad~aw _awd_ a ~testaaaaaa~* wdawdaw *aaaa_bbb_bbbbbbb* http://www.web.bo/notificacion";
9
+
10
+ it("is defined", () => {
11
+ expect(MessageList).toBeDefined();
12
+ });
13
+
14
+ describe("rich text", () => {
15
+ it("must contain bold text", () => {
16
+ const wrapper = shallowMount(MessageList);
17
+
18
+ const vm: any = wrapper.vm;
19
+
20
+ expect(vm.textToRichFormat(message)).toContain("<strong>");
21
+ });
22
+
23
+ it("must contain italic text", () => {
24
+ const wrapper = shallowMount(MessageList);
25
+
26
+ const vm: any = wrapper.vm;
27
+
28
+ expect(vm.textToRichFormat(message)).toContain("<i>");
29
+ });
30
+
31
+ it("must contain crossed out text", () => {
32
+ const wrapper = shallowMount(MessageList);
33
+
34
+ const vm: any = wrapper.vm;
35
+
36
+ expect(vm.textToRichFormat(message)).toContain("<del>");
37
+ });
38
+
39
+ it("must contain url text", () => {
40
+ const wrapper = shallowMount(MessageList);
41
+
42
+ const vm: any = wrapper.vm;
43
+
44
+ expect(vm.textToRichFormat(message)).toContain("<a");
45
+ });
46
+ });
47
+ });