l-min-components 1.0.300 → 1.0.308

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 (28) hide show
  1. package/package.json +6 -2
  2. package/src/assets/svg/bin.jsx +15 -0
  3. package/src/assets/svg/emoji.jsx +39 -0
  4. package/src/assets/svg/gallery.jsx +32 -0
  5. package/src/assets/svg/microphone.jsx +39 -0
  6. package/src/assets/svg/pause.jsx +18 -0
  7. package/src/assets/svg/recorder.jsx +17 -0
  8. package/src/assets/svg/recorderPlay.jsx +39 -0
  9. package/src/assets/svg/send.jsx +25 -0
  10. package/src/components/index.js +0 -1
  11. package/src/components/messageAddon/InputSection/index.jsx +3 -3
  12. package/src/components/messageAddon/assets/svg/bin.jsx +1 -0
  13. package/src/components/messageAddon/assets/svg/check_circle.jsx +1 -0
  14. package/src/components/messageAddon/assets/svg/emoji.jsx +1 -0
  15. package/src/components/messageAddon/assets/svg/gallery.jsx +1 -0
  16. package/src/components/messageAddon/assets/svg/microphone.jsx +1 -0
  17. package/src/components/messageAddon/assets/svg/more.jsx +1 -0
  18. package/src/components/messageAddon/assets/svg/noMessage.jsx +1 -0
  19. package/src/components/messageAddon/assets/svg/recorder.jsx +17 -0
  20. package/src/components/messageAddon/assets/svg/recorderPlay.jsx +39 -0
  21. package/src/components/messageAddon/assets/svg/send.jsx +1 -0
  22. package/src/components/messageAddon/assets/svg/send_fail.jsx +1 -0
  23. package/src/components/messageAddon/assets/svg/sending_status.jsx +1 -0
  24. package/src/components/messageAddon/assets/svg/warning.jsx +1 -0
  25. package/src/components/messageAddon/hooks/messagesContext.js +1 -1
  26. package/src/components/messageAddon/messages/index.jsx +1 -3
  27. package/src/components/messageAddon/messages/message-modals/deleteChat-modal.jsx +1 -1
  28. package/src/components/messageAddon/messages/messages.jsx +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "l-min-components",
3
- "version": "1.0.300",
3
+ "version": "1.0.308",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -31,13 +31,17 @@
31
31
  "react-dom": "^18.2.0",
32
32
  "react-flags-select": "^2.2.3",
33
33
  "react-icons": "^4.8.0",
34
+ "react-input-emoji": "^5.1.1",
35
+ "react-mic": "^12.4.6",
34
36
  "react-modal": "^3.16.1",
35
37
  "react-router-dom": "^6.8.2",
38
+ "react-toastify": "^9.1.3",
36
39
  "react-tooltip": "^5.10.1",
37
40
  "slate": "^0.94.0",
38
41
  "slate-history": "^0.93.0",
39
42
  "slate-react": "^0.94.0",
40
- "styled-components": "^5.3.6"
43
+ "styled-components": "^5.3.6",
44
+ "wavesurfer.js": "^7.1.2"
41
45
  },
42
46
  "devDependencies": {
43
47
  "@types/react": "^18.0.27",
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ export const Bin = ({ width, height, fill }) => (
3
+ <svg
4
+ width={width || "14"}
5
+ height={height || "18"}
6
+ viewBox="0 0 14 18"
7
+ fill="none"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ >
10
+ <path
11
+ d="M1 16C1 17.1 1.9 18 3 18H11C12.1 18 13 17.1 13 16V4H1V16ZM3 6H11V16H3V6ZM10.5 1L9.5 0H4.5L3.5 1H0V3H14V1H10.5Z"
12
+ fill="#ADB3B3"
13
+ />
14
+ </svg>
15
+ );
@@ -0,0 +1,39 @@
1
+ import React from "react";
2
+ export const EmojiIcon = ({ width, height, fill }) => (
3
+ <svg
4
+ width={width || "24"}
5
+ height={height || "24"}
6
+ viewBox="0 0 24 24"
7
+ fill="none"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ >
10
+ <path
11
+ d="M19.0668 4.94813C23.0368 8.91813 22.9668 15.3981 18.8668 19.2881C15.0768 22.8781 8.92679 22.8781 5.12679 19.2881C1.01679 15.3981 0.946776 8.91813 4.92678 4.94813C8.82678 1.03813 15.1668 1.03813 19.0668 4.94813Z"
12
+ stroke="#ADB3B3"
13
+ stroke-width="1.5"
14
+ stroke-linecap="round"
15
+ stroke-linejoin="round"
16
+ />
17
+ <path
18
+ d="M15.834 16.0664C13.714 18.0664 10.2741 18.0664 8.16406 16.0664"
19
+ stroke="#ADB3B3"
20
+ stroke-width="1.5"
21
+ stroke-linecap="round"
22
+ stroke-linejoin="round"
23
+ />
24
+ <path
25
+ d="M8.66638 8.98828H8.67536"
26
+ stroke="#ADB3B3"
27
+ stroke-width="2.5"
28
+ stroke-linecap="round"
29
+ stroke-linejoin="round"
30
+ />
31
+ <path
32
+ d="M15.8383 8.98828H15.8472"
33
+ stroke="#ADB3B3"
34
+ stroke-width="2.5"
35
+ stroke-linecap="round"
36
+ stroke-linejoin="round"
37
+ />
38
+ </svg>
39
+ );
@@ -0,0 +1,32 @@
1
+ import React from "react";
2
+ export const GalleryIcon = ({ width, height, fill }) => (
3
+ <svg
4
+ width={width || "24"}
5
+ height={height || "24"}
6
+ viewBox="0 0 24 24"
7
+ fill="none"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ >
10
+ <path
11
+ d="M9 22H15C20 22 22 20 22 15V9C22 4 20 2 15 2H9C4 2 2 4 2 9V15C2 20 4 22 9 22Z"
12
+ stroke="#4A4D4D"
13
+ stroke-width="1.5"
14
+ stroke-linecap="round"
15
+ stroke-linejoin="round"
16
+ />
17
+ <path
18
+ d="M9 10C10.1046 10 11 9.10457 11 8C11 6.89543 10.1046 6 9 6C7.89543 6 7 6.89543 7 8C7 9.10457 7.89543 10 9 10Z"
19
+ stroke="#4A4D4D"
20
+ stroke-width="1.5"
21
+ stroke-linecap="round"
22
+ stroke-linejoin="round"
23
+ />
24
+ <path
25
+ d="M2.67188 18.9486L7.60187 15.6386C8.39187 15.1086 9.53187 15.1686 10.2419 15.7786L10.5719 16.0686C11.3519 16.7386 12.6119 16.7386 13.3919 16.0686L17.5519 12.4986C18.3319 11.8286 19.5919 11.8286 20.3719 12.4986L22.0019 13.8986"
26
+ stroke="#4A4D4D"
27
+ stroke-width="1.5"
28
+ stroke-linecap="round"
29
+ stroke-linejoin="round"
30
+ />
31
+ </svg>
32
+ );
@@ -0,0 +1,39 @@
1
+ import React from "react";
2
+ export const MicrophoneIcon = ({ width, height, fill }) => (
3
+ <svg
4
+ width={width || "24"}
5
+ height={height || "24"}
6
+ viewBox="0 0 24 24"
7
+ fill="none"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ >
10
+ <path
11
+ d="M12 19C15.31 19 18 16.31 18 13V8C18 4.69 15.31 2 12 2C8.69 2 6 4.69 6 8V13C6 16.31 8.69 19 12 19Z"
12
+ stroke="#4A4D4D"
13
+ stroke-width="1.5"
14
+ stroke-linecap="round"
15
+ stroke-linejoin="round"
16
+ />
17
+ <path
18
+ d="M3 11V13C3 17.97 7.03 22 12 22C16.97 22 21 17.97 21 13V11"
19
+ stroke="#4A4D4D"
20
+ stroke-width="1.5"
21
+ stroke-linecap="round"
22
+ stroke-linejoin="round"
23
+ />
24
+ <path
25
+ d="M9.10938 7.47969C10.8894 6.82969 12.8294 6.82969 14.6094 7.47969"
26
+ stroke="#4A4D4D"
27
+ stroke-width="1.5"
28
+ stroke-linecap="round"
29
+ stroke-linejoin="round"
30
+ />
31
+ <path
32
+ d="M10.0312 10.4819C11.2313 10.1519 12.5013 10.1519 13.7013 10.4819"
33
+ stroke="#4A4D4D"
34
+ stroke-width="1.5"
35
+ stroke-linecap="round"
36
+ stroke-linejoin="round"
37
+ />
38
+ </svg>
39
+ );
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ export const PauseIcon = ({ width, height, fill }) => (
3
+ <svg
4
+ width={width || "20"}
5
+ height={height || "20"}
6
+ viewBox="0 0 20 20"
7
+ fill="none"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ >
10
+ <path
11
+ d="M8 7V13M12 7V13M19 10C19 14.9706 14.9706 19 10 19C5.02944 19 1 14.9706 1 10C1 5.02944 5.02944 1 10 1C14.9706 1 19 5.02944 19 10Z"
12
+ stroke="#F95454"
13
+ strokeWidth="2"
14
+ strokeLinecap="round"
15
+ strokeLinejoin="round"
16
+ />
17
+ </svg>
18
+ );
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ export const RecorderIcon = ({ width, height, fill }) => (
3
+ <svg
4
+ width={width || "22"}
5
+ height={height || "22"}
6
+ viewBox="0 0 22 22"
7
+ fill="none"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ >
10
+ <path
11
+ fillRule="evenodd"
12
+ clipRule="evenodd"
13
+ d="M11.0016 21.4016C16.7453 21.4016 21.4016 16.7453 21.4016 11.0016C21.4016 5.2578 16.7453 0.601562 11.0016 0.601562C5.2578 0.601562 0.601562 5.2578 0.601562 11.0016C0.601562 16.7453 5.2578 21.4016 11.0016 21.4016ZM10.4227 7.3199C10.0238 7.05396 9.51085 7.02916 9.08815 7.25539C8.66544 7.48161 8.40156 7.92213 8.40156 8.40156V13.6016C8.40156 14.081 8.66544 14.5215 9.08815 14.7477C9.51085 14.974 10.0238 14.9492 10.4227 14.6832L14.3227 12.0832C14.6843 11.8421 14.9016 11.4362 14.9016 11.0016C14.9016 10.5669 14.6843 10.161 14.3227 9.9199L10.4227 7.3199Z"
14
+ fill="#FEBF10"
15
+ />
16
+ </svg>
17
+ );
@@ -0,0 +1,39 @@
1
+ import React from "react";
2
+ export const RecorderPlayIcon = ({ width, height, fill }) => (
3
+ <svg
4
+ width={width || "24"}
5
+ height={height || "24"}
6
+ viewBox="0 0 24 24"
7
+ fill="none"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ >
10
+ <path
11
+ d="M12 19C15.31 19 18 16.31 18 13V8C18 4.69 15.31 2 12 2C8.69 2 6 4.69 6 8V13C6 16.31 8.69 19 12 19Z"
12
+ stroke="#F95454"
13
+ strokeWidth="1.5"
14
+ strokeLinecap="round"
15
+ strokeLinejoin="round"
16
+ />
17
+ <path
18
+ d="M3 11V13C3 17.97 7.03 22 12 22C16.97 22 21 17.97 21 13V11"
19
+ stroke="#F95454"
20
+ strokeWidth="1.5"
21
+ strokeLinecap="round"
22
+ strokeLinejoin="round"
23
+ />
24
+ <path
25
+ d="M9.10938 7.47969C10.8894 6.82969 12.8294 6.82969 14.6094 7.47969"
26
+ stroke="#F95454"
27
+ strokeWidth="1.5"
28
+ strokeLinecap="round"
29
+ strokeLinejoin="round"
30
+ />
31
+ <path
32
+ d="M10.0312 10.4819C11.2313 10.1519 12.5013 10.1519 13.7013 10.4819"
33
+ stroke="#F95454"
34
+ strokeWidth="1.5"
35
+ strokeLinecap="round"
36
+ strokeLinejoin="round"
37
+ />
38
+ </svg>
39
+ );
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+ export const SendIcon = ({ width, height, fill }) => (
3
+ <svg
4
+ width={width || "24"}
5
+ height={height || "24"}
6
+ viewBox="0 0 24 24"
7
+ fill="none"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ >
10
+ <path
11
+ d="M9.50733 4.22867L18.0673 8.50867C21.9073 10.4287 21.9073 13.5687 18.0673 15.4887L9.50733 19.7687C3.74733 22.6487 1.39733 20.2887 4.27733 14.5387L5.14733 12.8087C5.36733 12.3687 5.36733 11.6387 5.14733 11.1987L4.27733 9.45867C1.39733 3.70867 3.75733 1.34867 9.50733 4.22867Z"
12
+ stroke="white"
13
+ stroke-width="1.5"
14
+ stroke-linecap="round"
15
+ stroke-linejoin="round"
16
+ />
17
+ <path
18
+ d="M5.4375 12H10.8375"
19
+ stroke="white"
20
+ stroke-width="1.5"
21
+ stroke-linecap="round"
22
+ stroke-linejoin="round"
23
+ />
24
+ </svg>
25
+ );
@@ -29,6 +29,5 @@ export { default as ErrorPage } from "./errorPage";
29
29
  export { default as AppMainLayout } from "./AppMainLayout";
30
30
  export { OutletContext as OutletContext } from "./AppMainLayout";
31
31
  export { default as DatePickerCalender } from "./datePicker";
32
- export { default as DatePickerCalender } from "./datePicker";
33
32
  export { default as TextEditor } from "./textEditor";
34
33
  export { default as MessageAddon } from "./messageAddon/messages";
@@ -19,9 +19,9 @@ import { RecorderIcon } from "../../../assets/svg/recorder";
19
19
  import { RecorderPlayIcon } from "../../../assets/svg/recorderPlay";
20
20
  import { PauseIcon } from "../../../assets/svg/pause";
21
21
  import { Bin } from "../../../assets/svg/bin";
22
- import useMessaging from "../../../hooks/useMessaging";
23
- import useMedia from "../../../hooks/useMedia";
24
- import { getCookie } from "../../../utils/helpers";
22
+ import useMessaging from "../hooks/useMessaging";
23
+ import useMedia from "../hooks/useMedia";
24
+ import { getCookie } from "../utils/helpers";
25
25
  import InputEmoji from "react-input-emoji";
26
26
 
27
27
  /** The input section of an open chat, for sending texts, emojis and audios
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export const Bin = ({ width, height, fill }) => (
2
3
  <svg
3
4
  width={width || "14"}
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export const CheckCircleIcon = ({ width, height, fill, onClick }) => (
2
3
  <svg
3
4
  onClick={onClick}
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export const EmojiIcon = ({ width, height, fill }) => (
2
3
  <svg
3
4
  width={width || "24"}
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export const GalleryIcon = ({ width, height, fill }) => (
2
3
  <svg
3
4
  width={width || "24"}
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export const MicrophoneIcon = ({ width, height, fill }) => (
2
3
  <svg
3
4
  width={width || "24"}
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export const MoreIcon = ({ width, height, fill }) => (
2
3
  <svg
3
4
  width={width || "24"}
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export const NoMessage = ({ width, height, fill }) => (
2
3
  <svg
3
4
  width={width || "65"}
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ export const RecorderIcon = ({ width, height, fill }) => (
3
+ <svg
4
+ width={width || "22"}
5
+ height={height || "22"}
6
+ viewBox="0 0 22 22"
7
+ fill="none"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ >
10
+ <path
11
+ fillRule="evenodd"
12
+ clipRule="evenodd"
13
+ d="M11.0016 21.4016C16.7453 21.4016 21.4016 16.7453 21.4016 11.0016C21.4016 5.2578 16.7453 0.601562 11.0016 0.601562C5.2578 0.601562 0.601562 5.2578 0.601562 11.0016C0.601562 16.7453 5.2578 21.4016 11.0016 21.4016ZM10.4227 7.3199C10.0238 7.05396 9.51085 7.02916 9.08815 7.25539C8.66544 7.48161 8.40156 7.92213 8.40156 8.40156V13.6016C8.40156 14.081 8.66544 14.5215 9.08815 14.7477C9.51085 14.974 10.0238 14.9492 10.4227 14.6832L14.3227 12.0832C14.6843 11.8421 14.9016 11.4362 14.9016 11.0016C14.9016 10.5669 14.6843 10.161 14.3227 9.9199L10.4227 7.3199Z"
14
+ fill="#FEBF10"
15
+ />
16
+ </svg>
17
+ );
@@ -0,0 +1,39 @@
1
+ import React from "react";
2
+ export const RecorderPlayIcon = ({ width, height, fill }) => (
3
+ <svg
4
+ width={width || "24"}
5
+ height={height || "24"}
6
+ viewBox="0 0 24 24"
7
+ fill="none"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ >
10
+ <path
11
+ d="M12 19C15.31 19 18 16.31 18 13V8C18 4.69 15.31 2 12 2C8.69 2 6 4.69 6 8V13C6 16.31 8.69 19 12 19Z"
12
+ stroke="#F95454"
13
+ strokeWidth="1.5"
14
+ strokeLinecap="round"
15
+ strokeLinejoin="round"
16
+ />
17
+ <path
18
+ d="M3 11V13C3 17.97 7.03 22 12 22C16.97 22 21 17.97 21 13V11"
19
+ stroke="#F95454"
20
+ strokeWidth="1.5"
21
+ strokeLinecap="round"
22
+ strokeLinejoin="round"
23
+ />
24
+ <path
25
+ d="M9.10938 7.47969C10.8894 6.82969 12.8294 6.82969 14.6094 7.47969"
26
+ stroke="#F95454"
27
+ strokeWidth="1.5"
28
+ strokeLinecap="round"
29
+ strokeLinejoin="round"
30
+ />
31
+ <path
32
+ d="M10.0312 10.4819C11.2313 10.1519 12.5013 10.1519 13.7013 10.4819"
33
+ stroke="#F95454"
34
+ strokeWidth="1.5"
35
+ strokeLinecap="round"
36
+ strokeLinejoin="round"
37
+ />
38
+ </svg>
39
+ );
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export const SendIcon = ({ width, height, fill }) => (
2
3
  <svg
3
4
  width={width || "24"}
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export const SendFailIcon = ({ width, height, fill }) => (
2
3
  <svg
3
4
  width={width || "13"}
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export const SendingStatusIcon = ({ width, height, fill }) => (
2
3
  <svg
3
4
  width={width || "13"}
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export const WarningIcon = ({ width, height, fill }) => (
2
3
  <svg
3
4
  width={width || "31"}
@@ -1,4 +1,4 @@
1
- import { createContext, useState } from "react";
1
+ import React, { createContext, useState } from "react";
2
2
  const MessagesContext = createContext();
3
3
 
4
4
  export const useMessagesContext = () => {
@@ -1,8 +1,6 @@
1
1
  import React, { createContext } from "react";
2
2
 
3
- import MessagesContext, {
4
- useMessagesContext,
5
- } from "../../../hooks/messagesContext";
3
+ import MessagesContext, { useMessagesContext } from "../hooks/messagesContext";
6
4
  import Messages from "./messages";
7
5
 
8
6
  const MessagesAddon = () => {
@@ -6,7 +6,7 @@ import {
6
6
  ModalCardContainer,
7
7
  CloseModalButton,
8
8
  } from "./index.styled";
9
- import { IoMdClose } from "react-icons/all";
9
+ import { IoMdClose } from "react-icons/io";
10
10
  import Modal from "react-modal";
11
11
  import { ButtonComponent } from "l-min-components/src/components";
12
12
  import { WarningIcon } from "../../assets/svg/warning";
@@ -94,7 +94,7 @@ const Messages = (props) => {
94
94
  console.log("singleChat", singleChat);
95
95
 
96
96
  useEffect(() => {
97
- setRightLayout(false);
97
+ // setRightLayout(false);
98
98
  }, []);
99
99
 
100
100
  // use effects for successful responses***