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.
- package/README.md +68 -68
- package/dist/components/Chat.vue.d.ts +2 -5
- package/dist/components/DangerIcon.vue.d.ts +1 -1
- package/dist/components/IconAttach.vue.d.ts +1 -1
- package/dist/components/IconChat.vue.d.ts +1 -1
- package/dist/components/IconClose.vue.d.ts +1 -1
- package/dist/components/IconSend.vue.d.ts +1 -1
- package/dist/components/IconTelegram.vue.d.ts +1 -1
- package/dist/components/IconWhatsApp.vue.d.ts +1 -1
- package/dist/components/Loader.vue.d.ts +1 -1
- package/dist/components/MessageList.vue.d.ts +2 -3
- package/dist/components/ODialog/IPropsDialog.d.ts +1 -0
- package/dist/components/ODialog/ODialog.vue.d.ts +15 -13
- package/dist/components/Widget.vue.d.ts +2 -1
- package/dist/dto/app.dto.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/store/config.d.ts +1 -0
- package/dist/store/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/vue-wiguet-chatweb.js +1769 -1829
- package/dist/vue-wiguet-chatweb.umd.cjs +26 -26
- package/package.json +66 -66
- package/src/assets/emojis/AngryIcon.svg +4 -4
- package/src/assets/emojis/HappiestIcon.svg +4 -4
- package/src/assets/emojis/HappyIcon.svg +4 -4
- package/src/assets/emojis/NeutralIcon.svg +4 -4
- package/src/assets/emojis/SadIcon.svg +4 -4
- package/src/components/Chat.vue +691 -691
- package/src/components/ChatMessage.vue +102 -102
- package/src/components/DangerIcon.vue +12 -12
- package/src/components/IconAttach.vue +24 -24
- package/src/components/IconChat.vue +23 -23
- package/src/components/IconClose.vue +5 -5
- package/src/components/IconSend.vue +8 -8
- package/src/components/IconTelegram.vue +28 -28
- package/src/components/IconWhatsApp.vue +39 -39
- package/src/components/IconWidget.vue +45 -45
- package/src/components/Loader.vue +31 -31
- package/src/components/LoadingComponent.vue +111 -111
- package/src/components/MessageList.vue +357 -357
- package/src/components/ODialog/IPropsDialog.ts +4 -4
- package/src/components/ODialog/IPropsSidebar.ts +13 -13
- package/src/components/ODialog/ODialog.vue +106 -84
- package/src/components/Widget.vue +187 -205
- package/src/components/__tests__/Chat.spec.ts +5 -5
- package/src/components/__tests__/ChatMessage.spec.ts +5 -5
- package/src/components/__tests__/MessageList.spec.ts +47 -47
- package/dist/App.vue.d.ts +0 -2
- 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;
|