vue-wiguet-chatweb 0.1.28 → 0.1.29

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/components/Chat.vue.d.ts +2 -5
  3. package/dist/components/DangerIcon.vue.d.ts +1 -1
  4. package/dist/components/IconAttach.vue.d.ts +1 -1
  5. package/dist/components/IconChat.vue.d.ts +1 -1
  6. package/dist/components/IconClose.vue.d.ts +1 -1
  7. package/dist/components/IconSend.vue.d.ts +1 -1
  8. package/dist/components/IconTelegram.vue.d.ts +1 -1
  9. package/dist/components/IconWhatsApp.vue.d.ts +1 -1
  10. package/dist/components/Loader.vue.d.ts +1 -1
  11. package/dist/components/MessageList.vue.d.ts +2 -3
  12. package/dist/components/ODialog/IPropsDialog.d.ts +1 -0
  13. package/dist/components/ODialog/ODialog.vue.d.ts +15 -13
  14. package/dist/components/Widget.vue.d.ts +2 -1
  15. package/dist/dto/app.dto.d.ts +1 -0
  16. package/dist/index.d.ts +1 -0
  17. package/dist/main.d.ts +1 -0
  18. package/dist/store/config.d.ts +1 -0
  19. package/dist/store/index.d.ts +1 -0
  20. package/dist/style.css +1 -1
  21. package/dist/vue-wiguet-chatweb.js +1769 -1829
  22. package/dist/vue-wiguet-chatweb.umd.cjs +26 -26
  23. package/package.json +66 -66
  24. package/src/assets/emojis/AngryIcon.svg +4 -4
  25. package/src/assets/emojis/HappiestIcon.svg +4 -4
  26. package/src/assets/emojis/HappyIcon.svg +4 -4
  27. package/src/assets/emojis/NeutralIcon.svg +4 -4
  28. package/src/assets/emojis/SadIcon.svg +4 -4
  29. package/src/components/Chat.vue +691 -691
  30. package/src/components/ChatMessage.vue +102 -102
  31. package/src/components/DangerIcon.vue +12 -12
  32. package/src/components/IconAttach.vue +24 -24
  33. package/src/components/IconChat.vue +23 -23
  34. package/src/components/IconClose.vue +5 -5
  35. package/src/components/IconSend.vue +8 -8
  36. package/src/components/IconTelegram.vue +28 -28
  37. package/src/components/IconWhatsApp.vue +39 -39
  38. package/src/components/IconWidget.vue +45 -45
  39. package/src/components/Loader.vue +31 -31
  40. package/src/components/LoadingComponent.vue +111 -111
  41. package/src/components/MessageList.vue +357 -357
  42. package/src/components/ODialog/IPropsDialog.ts +4 -4
  43. package/src/components/ODialog/IPropsSidebar.ts +13 -13
  44. package/src/components/ODialog/ODialog.vue +106 -84
  45. package/src/components/Widget.vue +187 -205
  46. package/src/components/__tests__/Chat.spec.ts +5 -5
  47. package/src/components/__tests__/ChatMessage.spec.ts +5 -5
  48. package/src/components/__tests__/MessageList.spec.ts +47 -47
  49. package/dist/App.vue.d.ts +0 -2
  50. package/dist/components/ChatMessage.vue.d.ts +0 -12
@@ -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
+ });
package/dist/App.vue.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,12 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- message: {
3
- type: ObjectConstructor;
4
- required: true;
5
- };
6
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
7
- message: {
8
- type: ObjectConstructor;
9
- required: true;
10
- };
11
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
12
- export default _default;