@cntrl-site/sdk 1.23.1-1 → 1.23.1-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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2022 CNTRL
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2022 CNTRL
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,2 +1,2 @@
1
- # CNTRL SDK
2
- This is a root SDK module for CNTRL. Should be used along with other framework-specific modules like `@cntrl-site/sdk-react`
1
+ # CNTRL SDK
2
+ This is a root SDK module for CNTRL. Should be used along with other framework-specific modules like `@cntrl-site/sdk-react`
@@ -1,11 +1,10 @@
1
- import { default as React } from 'react';
2
1
  interface SliderProps {
3
2
  settings: SliderSettings;
4
3
  content: SliderItem[];
5
4
  styles: SliderStyles;
6
5
  isEditor?: boolean;
7
6
  }
8
- export declare function ControlSlider({ settings, content, styles: sliderStyles, isEditor }: SliderProps): React.JSX.Element;
7
+ export declare function ControlSlider({ settings, content, styles: sliderStyles, isEditor }: SliderProps): import("react/jsx-runtime").JSX.Element;
9
8
  type SliderItem = {
10
9
  image: {
11
10
  url: string;
@@ -5,7 +5,7 @@ export declare const ControlImageRevealSliderComponent: {
5
5
  id: string;
6
6
  name: string;
7
7
  preview: {
8
- type: "image";
8
+ type: "video";
9
9
  url: string;
10
10
  };
11
11
  defaultSize: {
@@ -1,4 +1,3 @@
1
- import { default as React } from 'react';
2
1
  interface ImageRevealSliderProps {
3
2
  settings: ImageRevealSliderSettings;
4
3
  content: ImageRevealSliderItem[];
@@ -35,5 +34,5 @@ type ImageRevealSliderItem = {
35
34
  };
36
35
  imageCaption: any[];
37
36
  };
38
- export declare function ImageRevealSlider({ settings, content, isEditor }: ImageRevealSliderProps): React.JSX.Element;
37
+ export declare function ImageRevealSlider({ settings, content, isEditor }: ImageRevealSliderProps): import("react/jsx-runtime").JSX.Element;
39
38
  export {};
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ const url = require("url");
5
5
  const zod = require("zod");
6
6
  const UAParser = require("ua-parser-js");
7
7
  const MP4Box = require("mp4box");
8
- const jsxDevRuntime = require("react/jsx-dev-runtime");
8
+ const jsxRuntime = require("react/jsx-runtime");
9
9
  const react = require("react");
10
10
  const reactSplide = require("@splidejs/react-splide");
11
11
  const cn = require("classnames");
@@ -1329,31 +1329,15 @@ const RichTextRenderer = ({ content }) => {
1329
1329
  const getChildren = (children) => {
1330
1330
  return children.map((child, i) => {
1331
1331
  if (child.type === "link") {
1332
- return /* @__PURE__ */ jsxDevRuntime.jsxDEV("a", { className: styles$2.link, href: child.value, target: child.target, children: getChildren(child.children) }, i, false, {
1333
- fileName: "H:/mom/sdk/src/Components/helpers/RichTextRenderer/RichTextRenderer.tsx",
1334
- lineNumber: 13,
1335
- columnNumber: 16
1336
- }, void 0);
1332
+ return /* @__PURE__ */ jsxRuntime.jsx("a", { className: styles$2.link, href: child.value, target: child.target, children: getChildren(child.children) }, i);
1337
1333
  }
1338
- return /* @__PURE__ */ jsxDevRuntime.jsxDEV("span", { style: getLeafCss(child), children: child.text }, i, false, {
1339
- fileName: "H:/mom/sdk/src/Components/helpers/RichTextRenderer/RichTextRenderer.tsx",
1340
- lineNumber: 15,
1341
- columnNumber: 14
1342
- }, void 0);
1334
+ return /* @__PURE__ */ jsxRuntime.jsx("span", { style: getLeafCss(child), children: child.text }, i);
1343
1335
  });
1344
1336
  };
1345
- return /* @__PURE__ */ jsxDevRuntime.jsxDEV(jsxDevRuntime.Fragment, { children: content.map((block, i) => {
1337
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: content.map((block, i) => {
1346
1338
  const children = block.children;
1347
- return /* @__PURE__ */ jsxDevRuntime.jsxDEV("div", { children: getChildren(children) }, i, false, {
1348
- fileName: "H:/mom/sdk/src/Components/helpers/RichTextRenderer/RichTextRenderer.tsx",
1349
- lineNumber: 23,
1350
- columnNumber: 11
1351
- }, void 0);
1352
- }) }, void 0, false, {
1353
- fileName: "H:/mom/sdk/src/Components/helpers/RichTextRenderer/RichTextRenderer.tsx",
1354
- lineNumber: 19,
1355
- columnNumber: 5
1356
- }, void 0);
1339
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { children: getChildren(children) }, i);
1340
+ }) });
1357
1341
  };
1358
1342
  function getLeafCss(leaf) {
1359
1343
  return {
@@ -1386,13 +1370,9 @@ const SvgImage = ({ url: url2, fill = "#000000", hoverFill = "#CCCCCC", classNam
1386
1370
  }
1387
1371
  }, []);
1388
1372
  if (!url2.endsWith(".svg") || !supportsMask) {
1389
- return /* @__PURE__ */ jsxDevRuntime.jsxDEV("img", { src: url2, alt: "", className: cn(styles$1.img, className) }, void 0, false, {
1390
- fileName: "H:/mom/sdk/src/Components/helpers/SvgImage/SvgImage.tsx",
1391
- lineNumber: 23,
1392
- columnNumber: 12
1393
- }, void 0);
1373
+ return /* @__PURE__ */ jsxRuntime.jsx("img", { src: url2, alt: "", className: cn(styles$1.img, className) });
1394
1374
  }
1395
- return /* @__PURE__ */ jsxDevRuntime.jsxDEV(
1375
+ return /* @__PURE__ */ jsxRuntime.jsx(
1396
1376
  "span",
1397
1377
  {
1398
1378
  "data-supports-mask": supportsMask,
@@ -1402,15 +1382,7 @@ const SvgImage = ({ url: url2, fill = "#000000", hoverFill = "#CCCCCC", classNam
1402
1382
  "--fill": fill,
1403
1383
  "--hover-fill": hoverFill
1404
1384
  }
1405
- },
1406
- void 0,
1407
- false,
1408
- {
1409
- fileName: "H:/mom/sdk/src/Components/helpers/SvgImage/SvgImage.tsx",
1410
- lineNumber: 27,
1411
- columnNumber: 5
1412
- },
1413
- void 0
1385
+ }
1414
1386
  );
1415
1387
  };
1416
1388
  const alignmentClassName = {
@@ -1457,19 +1429,19 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
1457
1429
  setKey((prev) => prev + 1);
1458
1430
  prevSliderTypeRef.current = transition.type;
1459
1431
  }, [transition.type]);
1460
- return /* @__PURE__ */ jsxDevRuntime.jsxDEV("div", { className: cn(styles$3.wrapper, { [styles$3.editor]: isEditor }), ref: setWrapperRef, children: /* @__PURE__ */ jsxDevRuntime.jsxDEV("div", { className: styles$3.sliderInner, style: {
1432
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles$3.wrapper, { [styles$3.editor]: isEditor }), ref: setWrapperRef, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$3.sliderInner, style: {
1461
1433
  width: sliderDimensions ? sliderDimensions.width : "100%",
1462
1434
  height: sliderDimensions ? sliderDimensions.height : "100%"
1463
1435
  }, children: [
1464
- settings.caption.isActive && /* @__PURE__ */ jsxDevRuntime.jsxDEV(
1436
+ settings.caption.isActive && /* @__PURE__ */ jsxRuntime.jsx(
1465
1437
  "div",
1466
1438
  {
1467
1439
  className: cn(styles$3.captionBlock),
1468
- children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(
1440
+ children: /* @__PURE__ */ jsxRuntime.jsx(
1469
1441
  "div",
1470
1442
  {
1471
1443
  className: styles$3.captionTextWrapper,
1472
- children: content.map((item, index) => /* @__PURE__ */ jsxDevRuntime.jsxDEV(
1444
+ children: content.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(
1473
1445
  "div",
1474
1446
  {
1475
1447
  className: cn(styles$3.captionText, alignmentClassName[caption.alignment], {
@@ -1492,7 +1464,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
1492
1464
  color,
1493
1465
  transitionDuration: transition.duration ? `${Math.round(parseInt(transition.duration) / 2)}ms` : "500ms"
1494
1466
  },
1495
- children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(
1467
+ children: /* @__PURE__ */ jsxRuntime.jsx(
1496
1468
  "div",
1497
1469
  {
1498
1470
  "data-styles": "caption",
@@ -1503,52 +1475,17 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
1503
1475
  top: scalingValue(caption.offset.y, isEditor),
1504
1476
  left: scalingValue(caption.offset.x, isEditor)
1505
1477
  },
1506
- children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(RichTextRenderer, { content: item.imageCaption }, void 0, false, {
1507
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1508
- lineNumber: 111,
1509
- columnNumber: 19
1510
- }, this)
1511
- },
1512
- void 0,
1513
- false,
1514
- {
1515
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1516
- lineNumber: 101,
1517
- columnNumber: 17
1518
- },
1519
- this
1478
+ children: /* @__PURE__ */ jsxRuntime.jsx(RichTextRenderer, { content: item.imageCaption })
1479
+ }
1520
1480
  )
1521
1481
  },
1522
- index,
1523
- false,
1524
- {
1525
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1526
- lineNumber: 78,
1527
- columnNumber: 15
1528
- },
1529
- this
1482
+ index
1530
1483
  ))
1531
- },
1532
- void 0,
1533
- false,
1534
- {
1535
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1536
- lineNumber: 74,
1537
- columnNumber: 11
1538
- },
1539
- this
1484
+ }
1540
1485
  )
1541
- },
1542
- void 0,
1543
- false,
1544
- {
1545
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1546
- lineNumber: 71,
1547
- columnNumber: 9
1548
- },
1549
- this
1486
+ }
1550
1487
  ),
1551
- /* @__PURE__ */ jsxDevRuntime.jsxDEV(
1488
+ /* @__PURE__ */ jsxRuntime.jsx(
1552
1489
  reactSplide.Splide,
1553
1490
  {
1554
1491
  onMove: (e) => {
@@ -1571,15 +1508,15 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
1571
1508
  type: transition.type === "fade in" ? "fade" : "loop",
1572
1509
  rewind: true
1573
1510
  },
1574
- children: content.map((item, index) => /* @__PURE__ */ jsxDevRuntime.jsxDEV(reactSplide.SplideSlide, { children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(
1511
+ children: content.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(reactSplide.SplideSlide, { children: /* @__PURE__ */ jsxRuntime.jsx(
1575
1512
  "div",
1576
1513
  {
1577
1514
  className: styles$3.sliderItem,
1578
- children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(
1515
+ children: /* @__PURE__ */ jsxRuntime.jsx(
1579
1516
  "div",
1580
1517
  {
1581
1518
  className: styles$3.imgWrapper,
1582
- children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(
1519
+ children: /* @__PURE__ */ jsxRuntime.jsx(
1583
1520
  "img",
1584
1521
  {
1585
1522
  className: cn(styles$3.sliderImage, {
@@ -1588,52 +1525,17 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
1588
1525
  }),
1589
1526
  src: item.image.url,
1590
1527
  alt: item.image.name ?? ""
1591
- },
1592
- void 0,
1593
- false,
1594
- {
1595
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1596
- lineNumber: 149,
1597
- columnNumber: 17
1598
- },
1599
- this
1528
+ }
1600
1529
  )
1601
- },
1602
- void 0,
1603
- false,
1604
- {
1605
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1606
- lineNumber: 146,
1607
- columnNumber: 15
1608
- },
1609
- this
1530
+ }
1610
1531
  )
1611
- },
1612
- void 0,
1613
- false,
1614
- {
1615
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1616
- lineNumber: 143,
1617
- columnNumber: 13
1618
- },
1619
- this
1620
- ) }, index, false, {
1621
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1622
- lineNumber: 142,
1623
- columnNumber: 11
1624
- }, this))
1625
- },
1626
- key,
1627
- false,
1628
- {
1629
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1630
- lineNumber: 118,
1631
- columnNumber: 7
1532
+ }
1533
+ ) }, index))
1632
1534
  },
1633
- this
1535
+ key
1634
1536
  ),
1635
- controls.isActive && /* @__PURE__ */ jsxDevRuntime.jsxDEV(jsxDevRuntime.Fragment, { children: [
1636
- /* @__PURE__ */ jsxDevRuntime.jsxDEV(
1537
+ controls.isActive && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1538
+ /* @__PURE__ */ jsxRuntime.jsx(
1637
1539
  "div",
1638
1540
  {
1639
1541
  className: cn(styles$3.arrow, {
@@ -1643,7 +1545,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
1643
1545
  color: controls.color,
1644
1546
  ["--arrow-hover-color"]: controls.hover
1645
1547
  },
1646
- children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(
1548
+ children: /* @__PURE__ */ jsxRuntime.jsxs(
1647
1549
  "button",
1648
1550
  {
1649
1551
  onClick: () => {
@@ -1654,50 +1556,22 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
1654
1556
  transform: `translate(${scalingValue(controlsOffsetX, isEditor)}, ${scalingValue(controlsOffsetY * (direction === "horiz" ? 1 : -1), isEditor)}) scale(${settings.controls.scale / 100}) rotate(${direction === "horiz" ? "0deg" : "90deg"})`
1655
1557
  },
1656
1558
  children: [
1657
- controls.arrowsImgUrl && /* @__PURE__ */ jsxDevRuntime.jsxDEV(
1559
+ controls.arrowsImgUrl && /* @__PURE__ */ jsxRuntime.jsx(
1658
1560
  SvgImage,
1659
1561
  {
1660
1562
  url: controls.arrowsImgUrl,
1661
1563
  fill: controls.color,
1662
1564
  hoverFill: controls.hover,
1663
1565
  className: cn(styles$3.arrowImg, styles$3.mirror)
1664
- },
1665
- void 0,
1666
- false,
1667
- {
1668
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1669
- lineNumber: 182,
1670
- columnNumber: 17
1671
- },
1672
- this
1566
+ }
1673
1567
  ),
1674
- !controls.arrowsImgUrl && /* @__PURE__ */ jsxDevRuntime.jsxDEV(ArrowIcon, { color: controls.color, className: cn(styles$3.arrowIcon, styles$3.arrowImg, styles$3.mirror) }, void 0, false, {
1675
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1676
- lineNumber: 190,
1677
- columnNumber: 17
1678
- }, this)
1568
+ !controls.arrowsImgUrl && /* @__PURE__ */ jsxRuntime.jsx(ArrowIcon, { color: controls.color, className: cn(styles$3.arrowIcon, styles$3.arrowImg, styles$3.mirror) })
1679
1569
  ]
1680
- },
1681
- void 0,
1682
- true,
1683
- {
1684
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1685
- lineNumber: 172,
1686
- columnNumber: 13
1687
- },
1688
- this
1570
+ }
1689
1571
  )
1690
- },
1691
- void 0,
1692
- false,
1693
- {
1694
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1695
- lineNumber: 163,
1696
- columnNumber: 11
1697
- },
1698
- this
1572
+ }
1699
1573
  ),
1700
- /* @__PURE__ */ jsxDevRuntime.jsxDEV(
1574
+ /* @__PURE__ */ jsxRuntime.jsx(
1701
1575
  "div",
1702
1576
  {
1703
1577
  className: cn(styles$3.arrow, styles$3.nextArrow, {
@@ -1707,7 +1581,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
1707
1581
  color: controls.color,
1708
1582
  ["--arrow-hover-color"]: controls.hover
1709
1583
  },
1710
- children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(
1584
+ children: /* @__PURE__ */ jsxRuntime.jsxs(
1711
1585
  "button",
1712
1586
  {
1713
1587
  className: styles$3.arrowInner,
@@ -1716,55 +1590,23 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
1716
1590
  transform: `translate(${scalingValue(controlsOffsetX * (direction === "horiz" ? -1 : 1), isEditor)}, ${scalingValue(controlsOffsetY, isEditor)}) scale(${settings.controls.scale / 100}) rotate(${direction === "horiz" ? "0deg" : "90deg"})`
1717
1591
  },
1718
1592
  children: [
1719
- controls.arrowsImgUrl && /* @__PURE__ */ jsxDevRuntime.jsxDEV(
1593
+ controls.arrowsImgUrl && /* @__PURE__ */ jsxRuntime.jsx(
1720
1594
  SvgImage,
1721
1595
  {
1722
1596
  url: controls.arrowsImgUrl,
1723
1597
  fill: controls.color,
1724
1598
  hoverFill: controls.hover,
1725
1599
  className: styles$3.arrowImg
1726
- },
1727
- void 0,
1728
- false,
1729
- {
1730
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1731
- lineNumber: 211,
1732
- columnNumber: 17
1733
- },
1734
- this
1600
+ }
1735
1601
  ),
1736
- !controls.arrowsImgUrl && /* @__PURE__ */ jsxDevRuntime.jsxDEV(ArrowIcon, { color: controls.color, className: cn(styles$3.arrowIcon, styles$3.arrowImg) }, void 0, false, {
1737
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1738
- lineNumber: 219,
1739
- columnNumber: 17
1740
- }, this)
1602
+ !controls.arrowsImgUrl && /* @__PURE__ */ jsxRuntime.jsx(ArrowIcon, { color: controls.color, className: cn(styles$3.arrowIcon, styles$3.arrowImg) })
1741
1603
  ]
1742
- },
1743
- void 0,
1744
- true,
1745
- {
1746
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1747
- lineNumber: 203,
1748
- columnNumber: 13
1749
- },
1750
- this
1604
+ }
1751
1605
  )
1752
- },
1753
- void 0,
1754
- false,
1755
- {
1756
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1757
- lineNumber: 194,
1758
- columnNumber: 11
1759
- },
1760
- this
1606
+ }
1761
1607
  )
1762
- ] }, void 0, true, {
1763
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1764
- lineNumber: 162,
1765
- columnNumber: 9
1766
- }, this),
1767
- triggers.triggersList.click && /* @__PURE__ */ jsxDevRuntime.jsxDEV(
1608
+ ] }),
1609
+ triggers.triggersList.click && /* @__PURE__ */ jsxRuntime.jsx(
1768
1610
  "div",
1769
1611
  {
1770
1612
  className: styles$3.clickOverlay,
@@ -1773,17 +1615,9 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
1773
1615
  sliderRef.go("+1");
1774
1616
  }
1775
1617
  }
1776
- },
1777
- void 0,
1778
- false,
1779
- {
1780
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1781
- lineNumber: 226,
1782
- columnNumber: 9
1783
- },
1784
- this
1618
+ }
1785
1619
  ),
1786
- pagination2.isActive && /* @__PURE__ */ jsxDevRuntime.jsxDEV(
1620
+ pagination2.isActive && /* @__PURE__ */ jsxRuntime.jsx(
1787
1621
  "div",
1788
1622
  {
1789
1623
  className: cn(styles$3.pagination, {
@@ -1797,7 +1631,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
1797
1631
  [styles$3.paginationOutsideRight]: pagination2.position === "outside-2" && direction === "vert",
1798
1632
  [styles$3.paginationVertical]: direction === "vert"
1799
1633
  }),
1800
- children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(
1634
+ children: /* @__PURE__ */ jsxRuntime.jsx(
1801
1635
  "div",
1802
1636
  {
1803
1637
  className: styles$3.paginationInner,
@@ -1805,7 +1639,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
1805
1639
  backgroundColor: pagination2.colors[2],
1806
1640
  transform: `scale(${pagination2.scale / 100}) translate(${scalingValue(pagination2.offset.x, isEditor)}, ${scalingValue(pagination2.offset.y, isEditor)}) rotate(${direction === "horiz" ? "0deg" : "90deg"})`
1807
1641
  },
1808
- children: content.map((_, index) => /* @__PURE__ */ jsxDevRuntime.jsxDEV(
1642
+ children: content.map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(
1809
1643
  "button",
1810
1644
  {
1811
1645
  onClick: () => {
@@ -1814,7 +1648,7 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
1814
1648
  }
1815
1649
  },
1816
1650
  className: cn(styles$3.paginationItem),
1817
- children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(
1651
+ children: /* @__PURE__ */ jsxRuntime.jsx(
1818
1652
  "div",
1819
1653
  {
1820
1654
  className: cn(styles$3.dot, {
@@ -1824,70 +1658,19 @@ function ControlSlider({ settings, content, styles: sliderStyles, isEditor }) {
1824
1658
  backgroundColor: index === currentSlideIndex ? pagination2.colors[0] : pagination2.colors[1],
1825
1659
  ["--pagination-hover-color"]: pagination2.hover
1826
1660
  }
1827
- },
1828
- void 0,
1829
- false,
1830
- {
1831
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1832
- lineNumber: 266,
1833
- columnNumber: 17
1834
- },
1835
- this
1661
+ }
1836
1662
  )
1837
1663
  },
1838
- index,
1839
- false,
1840
- {
1841
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1842
- lineNumber: 257,
1843
- columnNumber: 15
1844
- },
1845
- this
1664
+ index
1846
1665
  ))
1847
- },
1848
- void 0,
1849
- false,
1850
- {
1851
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1852
- lineNumber: 249,
1853
- columnNumber: 11
1854
- },
1855
- this
1666
+ }
1856
1667
  )
1857
- },
1858
- void 0,
1859
- false,
1860
- {
1861
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1862
- lineNumber: 236,
1863
- columnNumber: 9
1864
- },
1865
- this
1668
+ }
1866
1669
  )
1867
- ] }, void 0, true, {
1868
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1869
- lineNumber: 66,
1870
- columnNumber: 7
1871
- }, this) }, void 0, false, {
1872
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1873
- lineNumber: 65,
1874
- columnNumber: 5
1875
- }, this);
1670
+ ] }) });
1876
1671
  }
1877
1672
  function ArrowIcon({ color, className }) {
1878
- return /* @__PURE__ */ jsxDevRuntime.jsxDEV("svg", { viewBox: "0 0 10 18", className, children: /* @__PURE__ */ jsxDevRuntime.jsxDEV("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ jsxDevRuntime.jsxDEV("path", { d: "M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z", id: "Shape-Copy", fill: color, transform: "translate(5, 9) rotate(-90) translate(-5, -9)" }, void 0, false, {
1879
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1880
- lineNumber: 289,
1881
- columnNumber: 11
1882
- }, this) }, void 0, false, {
1883
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1884
- lineNumber: 288,
1885
- columnNumber: 7
1886
- }, this) }, void 0, false, {
1887
- fileName: "H:/mom/sdk/src/Components/ControlSlider/ControlSlider.tsx",
1888
- lineNumber: 287,
1889
- columnNumber: 5
1890
- }, this);
1673
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 10 18", className, children: /* @__PURE__ */ jsxRuntime.jsx("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z", id: "Shape-Copy", fill: color, transform: "translate(5, 9) rotate(-90) translate(-5, -9)" }) }) });
1891
1674
  }
1892
1675
  const ControlSliderComponent = {
1893
1676
  element: ControlSlider,
@@ -2543,7 +2326,7 @@ function ImageRevealSlider({ settings, content, isEditor }) {
2543
2326
  setCounter((prev) => prev >= content.length - 1 ? 0 : prev + 1);
2544
2327
  };
2545
2328
  };
2546
- return /* @__PURE__ */ jsxDevRuntime.jsxDEV(
2329
+ return /* @__PURE__ */ jsxRuntime.jsx(
2547
2330
  "div",
2548
2331
  {
2549
2332
  ref: divRef,
@@ -2551,7 +2334,7 @@ function ImageRevealSlider({ settings, content, isEditor }) {
2551
2334
  onMouseEnter: handleMouseMove,
2552
2335
  onMouseMove: handleMouseMove,
2553
2336
  className: styles.imageRevealSlider,
2554
- children: placedImages.map((img2) => /* @__PURE__ */ jsxDevRuntime.jsxDEV(
2337
+ children: placedImages.map((img2) => /* @__PURE__ */ jsxRuntime.jsx(
2555
2338
  "img",
2556
2339
  {
2557
2340
  src: img2.url,
@@ -2566,24 +2349,9 @@ function ImageRevealSlider({ settings, content, isEditor }) {
2566
2349
  height: "auto"
2567
2350
  }
2568
2351
  },
2569
- img2.id,
2570
- false,
2571
- {
2572
- fileName: "H:/mom/sdk/src/Components/ImageRevealSlider/ImageRevealSlider.tsx",
2573
- lineNumber: 218,
2574
- columnNumber: 9
2575
- },
2576
- this
2352
+ img2.id
2577
2353
  ))
2578
- },
2579
- void 0,
2580
- false,
2581
- {
2582
- fileName: "H:/mom/sdk/src/Components/ImageRevealSlider/ImageRevealSlider.tsx",
2583
- lineNumber: 210,
2584
- columnNumber: 5
2585
- },
2586
- this
2354
+ }
2587
2355
  );
2588
2356
  }
2589
2357
  const ControlImageRevealSliderComponent = {
@@ -2591,8 +2359,8 @@ const ControlImageRevealSliderComponent = {
2591
2359
  id: "control-image-reveal",
2592
2360
  name: "Image reveal",
2593
2361
  preview: {
2594
- type: "image",
2595
- url: ""
2362
+ type: "video",
2363
+ url: "https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01K723EY5AH8SKQFK4R31D8FPV.mp4"
2596
2364
  },
2597
2365
  defaultSize: {
2598
2366
  width: 700,