@mobilon-dev/chotto 0.3.116 → 0.3.118

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 (26) hide show
  1. package/dist/chotto.css +1 -1
  2. package/dist/components/1_icons/VerifiedBadge.vue.js +31 -0
  3. package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationRecentSelection.js +12 -15
  4. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +2 -2
  5. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +197 -187
  6. package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +43 -40
  7. package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +1 -1
  8. package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +243 -232
  9. package/dist/index.js +325 -323
  10. package/dist/themes/dark.css +1 -1
  11. package/dist/themes/default.css +1 -1
  12. package/dist/themes/glass.css +1 -1
  13. package/dist/themes/green.css +1 -1
  14. package/dist/themes/mobilon1.css +1 -1
  15. package/dist/types/src/components/1_icons/VerifiedBadge.vue.d.ts +2 -0
  16. package/dist/types/src/components/2_chatlist_elements/ChatItem/ChatItem.vue.d.ts +11 -1
  17. package/dist/types/src/components/2_chatlist_elements/ChatItem/stories/ChatItem.stories.d.ts +1 -0
  18. package/dist/types/src/components/2_chatlist_elements/ChatItem/styles/types.d.ts +35 -3
  19. package/dist/types/src/components/2_chatlist_elements/ChatItem/types.d.ts +2 -0
  20. package/dist/types/src/components/2_elements/ChatInfo/ChatInfo.vue.d.ts +2 -0
  21. package/dist/types/src/components/2_elements/ChatInfo/stories/ChatInfo.stories.d.ts +2 -0
  22. package/dist/types/src/components/2_elements/ChatInfo/styles/types.d.ts +20 -0
  23. package/dist/types/src/components/3_compounds/ChatInput/styles/types.d.ts +32 -0
  24. package/dist/types/src/components/index.d.ts +1 -0
  25. package/dist/types/src/test-utils/withSetup.d.ts +2 -0
  26. package/package.json +1 -1
@@ -0,0 +1,31 @@
1
+ import { createElementBlock as t, openBlock as r, createElementVNode as e } from "vue";
2
+ /* empty css */
3
+ import i from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const o = {}, d = {
5
+ class: "verified-badge",
6
+ "data-testid": "verified-badge",
7
+ role: "img",
8
+ "aria-label": "verified",
9
+ title: "Verified"
10
+ };
11
+ function a(L, C) {
12
+ return r(), t("span", d, [...C[0] || (C[0] = [
13
+ e("svg", {
14
+ width: "16",
15
+ height: "16",
16
+ viewBox: "0 0 16 16",
17
+ fill: "none",
18
+ xmlns: "http://www.w3.org/2000/svg",
19
+ "aria-hidden": "true"
20
+ }, [
21
+ e("path", {
22
+ d: "M10.0662 0.870195C9.79703 0.594736 9.47551 0.375856 9.12055 0.226418C8.76558 0.0769807 8.38433 0 7.9992 0C7.61406 0 7.23281 0.0769807 6.87784 0.226418C6.52288 0.375856 6.20137 0.594736 5.9322 0.870195L5.31019 1.5082L4.4202 1.4972C4.03495 1.49264 3.65267 1.56515 3.29586 1.71048C2.93904 1.85581 2.61489 2.07102 2.34245 2.34345C2.07002 2.61589 1.85481 2.94004 1.70948 3.29686C1.56415 3.65367 1.49164 4.03595 1.4962 4.4212L1.5062 5.3112L0.870195 5.9332C0.594736 6.20237 0.375856 6.52388 0.226418 6.87884C0.0769807 7.23381 0 7.61506 0 8.0002C0 8.38533 0.0769807 8.76659 0.226418 9.12155C0.375856 9.47651 0.594736 9.79803 0.870195 10.0672L1.5072 10.6892L1.4962 11.5792C1.49164 11.9644 1.56415 12.3467 1.70948 12.7035C1.85481 13.0603 2.07002 13.3845 2.34245 13.6569C2.61489 13.9294 2.93904 14.1446 3.29586 14.2899C3.65267 14.4352 4.03495 14.5078 4.4202 14.5032L5.31019 14.4932L5.9322 15.1292C6.20137 15.4047 6.52288 15.6235 6.87784 15.773C7.23281 15.9224 7.61406 15.9994 7.9992 15.9994C8.38433 15.9994 8.76558 15.9224 9.12055 15.773C9.47551 15.6235 9.79703 15.4047 10.0662 15.1292L10.6882 14.4922L11.5782 14.5032C11.9634 14.5078 12.3457 14.4352 12.7025 14.2899C13.0593 14.1446 13.3835 13.9294 13.6559 13.6569C13.9284 13.3845 14.1436 13.0603 14.2889 12.7035C14.4342 12.3467 14.5068 11.9644 14.5022 11.5792L14.4922 10.6892L15.1282 10.0672C15.4037 9.79803 15.6225 9.47651 15.772 9.12155C15.9214 8.76659 15.9984 8.38533 15.9984 8.0002C15.9984 7.61506 15.9214 7.23381 15.772 6.87884C15.6225 6.52388 15.4037 6.20237 15.1282 5.9332L14.4912 5.3112L14.5022 4.4212C14.5068 4.03595 14.4342 3.65367 14.2889 3.29686C14.1436 2.94004 13.9284 2.61589 13.6559 2.34345C13.3835 2.07102 13.0593 1.85581 12.7025 1.71048C12.3457 1.56515 11.9634 1.49264 11.5782 1.4972L10.6882 1.5072L10.0662 0.870195ZM10.3532 6.8542L7.3532 9.8542C7.30675 9.90076 7.25157 9.9377 7.19083 9.96291C7.13008 9.98811 7.06496 10.0011 6.9992 10.0011C6.93343 10.0011 6.86831 9.98811 6.80756 9.96291C6.74682 9.9377 6.69164 9.90076 6.6452 9.8542L5.1452 8.3542C5.09871 8.30771 5.06183 8.25252 5.03667 8.19178C5.01151 8.13104 4.99856 8.06594 4.99856 8.0002C4.99856 7.93445 5.01151 7.86935 5.03667 7.80861C5.06183 7.74787 5.09871 7.69268 5.1452 7.6462C5.19168 7.59971 5.24687 7.56283 5.30761 7.53767C5.36835 7.51251 5.43345 7.49956 5.4992 7.49956C5.56494 7.49956 5.63004 7.51251 5.69078 7.53767C5.75152 7.56283 5.80671 7.59971 5.8532 7.6462L6.9992 8.7932L9.6452 6.1462C9.73908 6.05231 9.86642 5.99956 9.9992 5.99956C10.132 5.99956 10.2593 6.05231 10.3532 6.1462C10.4471 6.24008 10.4998 6.36742 10.4998 6.5002C10.4998 6.63297 10.4471 6.76031 10.3532 6.8542Z",
23
+ fill: "currentColor"
24
+ })
25
+ ], -1)
26
+ ])]);
27
+ }
28
+ const f = /* @__PURE__ */ i(o, [["render", a], ["__scopeId", "data-v-6ea31684"]]);
29
+ export {
30
+ f as default
31
+ };
@@ -1,9 +1,9 @@
1
- import { isAttributeUnconfirmed as f, needsAttributeConfirmation as d } from "./useCommunicationAttributes.js";
2
- const c = /* @__PURE__ */ new Set(["whatsapp", "telegram", "max", "sms"]);
3
- function h(t) {
4
- return c.has(t);
1
+ import { needsAttributeConfirmation as f } from "./useCommunicationAttributes.js";
2
+ const d = /* @__PURE__ */ new Set(["whatsapp", "telegram", "max", "sms"]);
3
+ function c(t) {
4
+ return d.has(t);
5
5
  }
6
- function a(t, n) {
6
+ function h(t, n) {
7
7
  if (!n || !t.length)
8
8
  return;
9
9
  const l = n.includes(".") ? n.split(".").pop() : n;
@@ -12,10 +12,10 @@ function a(t, n) {
12
12
  return !i || typeof i != "string" ? !1 : i === n || i === l || i.endsWith(`.${l}`);
13
13
  });
14
14
  }
15
- function m(t, n, l, r) {
15
+ function a(t, n, l, r) {
16
16
  const i = r(t);
17
17
  if (n != null && n.channelId) {
18
- const s = i.find((e) => e.channelId === n.channelId);
18
+ const s = i.find((u) => u.channelId === n.channelId);
19
19
  if (s)
20
20
  return s.channelId;
21
21
  }
@@ -25,9 +25,9 @@ function m(t, n, l, r) {
25
25
  return (o == null ? void 0 : o.channelId) ?? null;
26
26
  }
27
27
  function I(t, n, l, r, i) {
28
- if (!h(t))
28
+ if (!c(t))
29
29
  return null;
30
- const o = n == null ? void 0 : n[t], s = m(
30
+ const o = n == null ? void 0 : n[t], s = a(
31
31
  t,
32
32
  o,
33
33
  r,
@@ -35,13 +35,10 @@ function I(t, n, l, r, i) {
35
35
  );
36
36
  if (!s)
37
37
  return null;
38
- const e = l[t] ?? [];
39
- if (e.some(f))
40
- return null;
41
- const u = a(e, o == null ? void 0 : o.attributeId) ?? (e.length === 1 ? e[0] : void 0);
42
- return !u || d(u) ? null : { attribute: u, channelId: s };
38
+ const u = l[t] ?? [], e = h(u, o == null ? void 0 : o.attributeId) ?? (u.length === 1 ? u[0] : void 0);
39
+ return !e || f(e) ? null : { attribute: e, channelId: s };
43
40
  }
44
41
  export {
45
- h as isOneClickChannelType,
42
+ c as isOneClickChannelType,
46
43
  I as resolveRecentChannelSelection
47
44
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./ChatItem.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-3345188c"]]);
4
+ const c = /* @__PURE__ */ o(t, [["__scopeId", "data-v-f1c3ebdc"]]);
5
5
  export {
6
- p as default
6
+ c as default
7
7
  };