lm-web-controls 1.0.9 → 1.0.11

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/dist/index.es.js CHANGED
@@ -1 +1 @@
1
- import a from"react";function e(e){var t=e.value,r=e.className;return a.createElement("a",{href:"mailto:".concat(t),target:"_blank",className:r},t)}export{e as Email};
1
+ import e from"react";function a(a){var t=a.name,r=a.className;return e.createElement("span",{className:r},"Copyright © 2024 ",t," Digital Marketing with AI Powered by"," ",e.createElement("a",{href:"https://leadmetrics.ai/",target:"_blank"},"Leadmetrics"))}function t(a){var t=a.value,r=a.className;return e.createElement("a",{href:"mailto:".concat(t),target:"_blank",className:r},t)}function r(a){var t=a.value,r=a.country,c=a.className;return e.createElement("a",{href:"tel:+".concat(r," ").concat(t),className:c},"+".concat(r," ").concat(t))}export{a as Copyright,t as Email,r as Phone};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("react"));exports.Email=function(e){var a=e.value,r=e.className;return t.default.createElement("a",{href:"mailto:".concat(a),target:"_blank",className:r},a)};
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("react"));exports.Copyright=function(e){var a=e.name,r=e.className;return t.default.createElement("span",{className:r},"Copyright © 2024 ",a," Digital Marketing with AI Powered by"," ",t.default.createElement("a",{href:"https://leadmetrics.ai/",target:"_blank"},"Leadmetrics"))},exports.Email=function(e){var a=e.value,r=e.className;return t.default.createElement("a",{href:"mailto:".concat(a),target:"_blank",className:r},a)},exports.Phone=function(e){var a=e.value,r=e.country,c=e.className;return t.default.createElement("a",{href:"tel:+".concat(r," ").concat(a),className:c},"+".concat(r," ").concat(a))};
package/notes.txt CHANGED
@@ -1,5 +1,5 @@
1
1
  Creating an npm package
2
- https://pauloe-me.medium.com/typescript-npm-package-publishing-a-beginners-guide-40b95908e69c
2
+ https://github.com/ananduremanan/custom-react-npm-module
3
3
 
4
4
  npm run build
5
- npm publish
5
+ npm publish
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lm-web-controls",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "leadmetrics-lm-web-controls",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -16,35 +16,30 @@
16
16
  "react-dom": "18.2.0"
17
17
  },
18
18
  "devDependencies": {
19
- "@babel/cli": "7.21.0",
20
- "@babel/core": "7.21.4",
21
- "@babel/preset-env": "7.21.4",
22
- "@babel/preset-react": "7.18.6",
23
- "@babel/preset-typescript": "7.21.4",
24
- "@rollup/plugin-alias": "5.0.0",
25
- "@types/react": "18.0.34",
26
- "babel-loader": "9.1.2",
19
+ "@babel/cli": "7.23.9",
20
+ "@babel/core": "7.24.0",
21
+ "@babel/preset-env": "7.24.0",
22
+ "@babel/preset-react": "7.23.3",
23
+ "@babel/preset-typescript": "7.23.3",
24
+ "@rollup/plugin-alias": "5.1.0",
25
+ "@types/react": "18.2.65",
26
+ "babel-loader": "9.1.3",
27
27
  "react": "18.2.0",
28
28
  "react-dom": "18.2.0",
29
- "typescript": "5.0.4"
29
+ "typescript": "5.4.2"
30
30
  },
31
31
  "dependencies": {
32
- "@rollup/plugin-node-resolve": "15.1.0",
33
- "@syncfusion/ej2-react-buttons": "21.1.37",
34
- "@syncfusion/ej2-react-calendars": "21.1.41",
35
- "@syncfusion/ej2-react-dropdowns": "21.1.41",
36
- "@syncfusion/ej2-react-grids": "21.1.41",
37
- "@syncfusion/ej2-react-inputs": "22.1.34",
32
+ "@rollup/plugin-node-resolve": "15.2.3",
38
33
  "@types/react-slick": "^0.23.13",
39
- "acorn": "8.9.0",
40
- "acorn-walk": "8.2.0",
41
- "commander": "10.0.1",
34
+ "acorn": "8.11.3",
35
+ "acorn-walk": "8.3.2",
36
+ "commander": "12.0.0",
42
37
  "react-slick": "^0.30.2",
43
38
  "rollup-plugin-babel": "4.4.0",
44
39
  "rollup-plugin-peer-deps-external": "2.2.4",
45
40
  "rollup-plugin-terser": "7.0.2",
46
- "rollup-plugin-typescript2": "0.34.1",
41
+ "rollup-plugin-typescript2": "0.36.0",
47
42
  "slick-carousel": "^1.8.1",
48
- "ts-loader": "9.4.3"
43
+ "ts-loader": "9.5.1"
49
44
  }
50
45
  }
@@ -5,10 +5,10 @@ type CopyrightProps = {
5
5
  className: string;
6
6
  };
7
7
 
8
- export default function Copyright({ name, className }: CopyrightProps) {
8
+ export function Copyright({ name, className }: CopyrightProps) {
9
9
  return (
10
10
  <span className={className}>
11
- Copyright &copy 2024 {name}; Digital Marketing with AI Powered by
11
+ Copyright &copy; 2024 {name} Digital Marketing with AI Powered by{" "}
12
12
  <a href="https://leadmetrics.ai/" target="_blank">
13
13
  Leadmetrics
14
14
  </a>
@@ -19,7 +19,7 @@ type InstagramPost = {
19
19
 
20
20
  type InstagramPostList = InstagramPost[];
21
21
 
22
- export default function InstaFeed({ key, className }: InstaFeedProps) {
22
+ export function InstaFeed({ key, className }: InstaFeedProps) {
23
23
  const [igFeeds, setIgFeeds] = useState<InstagramPostList | null>(null);
24
24
  const [fetchStatus, setFetchStatus] = useState<string>("Loading feeds...");
25
25
 
@@ -8,7 +8,7 @@ type MapProps = {
8
8
  key: string;
9
9
  };
10
10
 
11
- export default function Map({ id, address, height, width, key }: MapProps) {
11
+ export function Map({ id, address, height, width, key }: MapProps) {
12
12
  return (
13
13
  <iframe
14
14
  id={id}
@@ -6,11 +6,11 @@ type PhoneProps = {
6
6
  className: string;
7
7
  };
8
8
 
9
- export default function Phone({ value, country, className }: PhoneProps) {
9
+ export function Phone({ value, country, className }: PhoneProps) {
10
10
  return (
11
11
  <a
12
12
  href={`tel:+${country} ${value}`}
13
13
  className={className}
14
- >{`${country} ${value}`}</a>
14
+ >{`+${country} ${value}`}</a>
15
15
  );
16
16
  }
Binary file
Binary file
Binary file
Binary file