lm-web-controls 1.0.12 → 1.0.14
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/_virtual/_tslib.js +1 -0
- package/dist/blocks/copyright/index.js +1 -0
- package/dist/blocks/email/index.js +1 -0
- package/dist/blocks/instaFeed/index.js +2 -0
- package/dist/blocks/phone/index.js +1 -0
- package/dist/index.js +1 -1
- package/package.json +2 -1
- package/rollup.config.mjs +24 -18
- package/dist/index.es.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=function(){return r=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r},r.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;export{r as __assign};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"react";function t(t){var a=t.name,r=t.className;return e.createElement("span",{className:r},"Copyright © 2024 ",a,", Digital Marketing with AI Powered by"," ",e.createElement("a",{href:"https://leadmetrics.ai/",target:"_blank"},"Leadmetrics"))}export{t as Copyright};
|
|
@@ -0,0 +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};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{__assign as e}from"../../_virtual/_tslib.js";import t,{useState as s,useEffect as i}from"react";import o from"react-slick";import"slick-carousel/slick/slick.css";import"slick-carousel/slick/slick-theme.css";function n(n){var r=n.key,l=n.className,c=s(null),a=c[0],m=c[1],d=s("Loading feeds..."),p=d[0],u=d[1];return i((function(){var e="https://graph.instagram.com/me/media?fields=id,caption,media_type,media_url,timestamp&access_token=".concat(r);fetch(e).then((function(e){return e.json()})).then((function(e){m(e.data)})).catch((function(e){u("Something went wrong!"),console.error(e)}))}),[]),t.createElement(t.Fragment,null,a?t.createElement(o,e({},{dots:!0,infinite:!0,autoplay:!0,speed:2e3,slidesToShow:6,slidesToScroll:1,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3,infinite:!0,dots:!0}},{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:480,settings:{slidesToShow:2,slidesToScroll:2}}]}),null==a?void 0:a.map((function(e,s){return t.createElement("div",{key:crypto.randomUUID(),className:l},t.createElement("img",{src:e.media_url,alt:"image-".concat(s)}))}))):t.createElement("h3",{className:"text-center"},p))}export{n as InstaFeed};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import c from"react";function a(a){var t=a.value,e=a.country,r=a.className;return c.createElement("a",{href:"tel:+".concat(e," ").concat(t),className:r},"+".concat(e," ").concat(t))}export{a as Phone};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{Copyright}from"./blocks/copyright/index.js";export{Email}from"./blocks/email/index.js";export{InstaFeed}from"./blocks/instaFeed/index.js";export{Phone}from"./blocks/phone/index.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lm-web-controls",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"description": "leadmetrics-lm-web-controls",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"babel-loader": "9.1.3",
|
|
27
27
|
"react": "18.2.0",
|
|
28
28
|
"react-dom": "18.2.0",
|
|
29
|
+
"rollup-plugin-preserve-directives": "^0.4.0",
|
|
29
30
|
"typescript": "5.4.2"
|
|
30
31
|
},
|
|
31
32
|
"dependencies": {
|
package/rollup.config.mjs
CHANGED
|
@@ -1,34 +1,40 @@
|
|
|
1
|
-
import babel from
|
|
2
|
-
import resolve from
|
|
3
|
-
import external from
|
|
4
|
-
import { terser } from
|
|
1
|
+
import babel from "rollup-plugin-babel";
|
|
2
|
+
import resolve from "@rollup/plugin-node-resolve";
|
|
3
|
+
import external from "rollup-plugin-peer-deps-external";
|
|
4
|
+
import { terser } from "rollup-plugin-terser";
|
|
5
5
|
import typescript from "rollup-plugin-typescript2";
|
|
6
|
+
import preserveDirectives from "rollup-plugin-preserve-directives";
|
|
6
7
|
|
|
7
8
|
export default [
|
|
8
9
|
{
|
|
9
|
-
input:
|
|
10
|
+
input: "./src/index.ts",
|
|
10
11
|
output: [
|
|
12
|
+
// {
|
|
13
|
+
// preserveModules: true,
|
|
14
|
+
// file: "dist/index.js",
|
|
15
|
+
// dir: "dist/index",
|
|
16
|
+
// format: "cjs",
|
|
17
|
+
// },
|
|
11
18
|
{
|
|
12
|
-
|
|
13
|
-
|
|
19
|
+
preserveModules: true,
|
|
20
|
+
//file: "dist/index.es.js",
|
|
21
|
+
dir: "dist",
|
|
22
|
+
format: "es",
|
|
23
|
+
exports: "named",
|
|
14
24
|
},
|
|
15
|
-
{
|
|
16
|
-
file: 'dist/index.es.js',
|
|
17
|
-
format: 'es',
|
|
18
|
-
exports: 'named',
|
|
19
|
-
}
|
|
20
25
|
],
|
|
21
26
|
plugins: [
|
|
22
27
|
babel({
|
|
23
|
-
exclude:
|
|
24
|
-
presets: [
|
|
28
|
+
exclude: "node_modules/**",
|
|
29
|
+
presets: ["@babel/preset-react"],
|
|
25
30
|
}),
|
|
26
31
|
external({
|
|
27
|
-
includeDependencies: true
|
|
32
|
+
includeDependencies: true,
|
|
28
33
|
}),
|
|
29
34
|
resolve(),
|
|
30
35
|
terser(),
|
|
31
36
|
typescript({ useTsconfigDeclarationDir: true }),
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
37
|
+
preserveDirectives(),
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
];
|
package/dist/index.es.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e,{useState as t,useEffect as a}from"react";import r from"react-slick";import"slick-carousel/slick/slick.css";import"slick-carousel/slick/slick-theme.css";function n(t){var a=t.name,r=t.className;return e.createElement("span",{className:r},"Copyright © 2024 ",a,", Digital Marketing with AI Powered by"," ",e.createElement("a",{href:"https://leadmetrics.ai/",target:"_blank"},"Leadmetrics"))}function s(t){var a=t.value,r=t.className;return e.createElement("a",{href:"mailto:".concat(a),target:"_blank",className:r},a)}var c=function(){return c=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var n in t=arguments[a])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},c.apply(this,arguments)};function o(n){var s=n.key,o=n.className,i=t(null),l=i[0],m=i[1],u=t("Loading feeds..."),p=u[0],d=u[1];return a((function(){var e="https://graph.instagram.com/me/media?fields=id,caption,media_type,media_url,timestamp&access_token=".concat(s);fetch(e).then((function(e){return e.json()})).then((function(e){m(e.data)})).catch((function(e){d("Something went wrong!"),console.error(e)}))}),[]),e.createElement(e.Fragment,null,l?e.createElement(r,c({},{dots:!0,infinite:!0,autoplay:!0,speed:2e3,slidesToShow:6,slidesToScroll:1,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3,infinite:!0,dots:!0}},{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:480,settings:{slidesToShow:2,slidesToScroll:2}}]}),null==l?void 0:l.map((function(t,a){return e.createElement("div",{key:crypto.randomUUID(),className:o},e.createElement("img",{src:t.media_url,alt:"image-".concat(a)}))}))):e.createElement("h3",{className:"text-center"},p))}function i(t){var a=t.value,r=t.country,n=t.className;return e.createElement("a",{href:"tel:+".concat(r," ").concat(a),className:n},"+".concat(r," ").concat(a))}"function"==typeof SuppressedError&&SuppressedError;export{n as Copyright,s as Email,o as InstaFeed,i as Phone};
|