lm-web-controls 1.0.9 → 1.0.10

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,c=a.className;return e.createElement("span",{className:c},"Copyright &copy 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,c=a.className;return e.createElement("a",{href:"mailto:".concat(t),target:"_blank",className:c},t)}function c(a){var t=a.value,c=a.country,r=a.className;return e.createElement("a",{href:"tel:+".concat(c," ").concat(t),className:r},"".concat(c," ").concat(t))}export{a as Copyright,t as Email,c 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 &copy 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))};
Binary file
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.10",
4
4
  "description": "leadmetrics-lm-web-controls",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -5,7 +5,7 @@ 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
11
  Copyright &copy 2024 {name}; Digital Marketing with AI Powered by
@@ -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,7 +6,7 @@ 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}`}