@cntrl-site/sdk 1.24.3 → 1.24.5-0

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.
@@ -170,6 +170,9 @@ export declare const ControlImageRevealSliderComponent: {
170
170
  display: {
171
171
  type: string;
172
172
  isObjectFitEditable: boolean;
173
+ minWidth: number;
174
+ defaultWidth: number;
175
+ maxWidth: number;
173
176
  };
174
177
  properties: {
175
178
  url: {
@@ -190,6 +193,9 @@ export declare const ControlImageRevealSliderComponent: {
190
193
  display: {
191
194
  type: string;
192
195
  placeholder: string;
196
+ minWidth: number;
197
+ defaultWidth: number;
198
+ maxWidth: number;
193
199
  };
194
200
  };
195
201
  };
package/dist/index.js CHANGED
@@ -2413,7 +2413,7 @@ function ImageRevealSlider({ settings, content, isEditor }) {
2413
2413
  ref: divRef,
2414
2414
  onClick: handleClick,
2415
2415
  className: styles.imageRevealSlider,
2416
- style: { cursor: target === "area" && cursorType !== "system" && defaultCursor ? `url(${defaultCursor}), auto` : "default" },
2416
+ style: { cursor: cursorType !== "system" && defaultCursor ? `url(${target === "area" ? hoverCursor : defaultCursor}), auto` : "default" },
2417
2417
  children: placedImages.map((img2) => /* @__PURE__ */ jsxRuntime.jsx(
2418
2418
  "div",
2419
2419
  {
@@ -2425,7 +2425,7 @@ function ImageRevealSlider({ settings, content, isEditor }) {
2425
2425
  transform: "translate(-50%, -50%)",
2426
2426
  width: img2.width ?? "auto",
2427
2427
  height: "auto",
2428
- cursor: target === "area" && cursorType !== "system" && hoverCursor ? `url(${hoverCursor}), auto` : "default"
2428
+ cursor: cursorType !== "system" && hoverCursor ? `url(${hoverCursor}), auto` : "default"
2429
2429
  },
2430
2430
  children: target === "area" && img2.link ? /* @__PURE__ */ jsxRuntime.jsx("a", { href: img2.link, target: "_blank", className: styles.link, children: /* @__PURE__ */ jsxRuntime.jsx(
2431
2431
  "img",
@@ -2643,7 +2643,10 @@ const ControlImageRevealSliderComponent = {
2643
2643
  type: "object",
2644
2644
  display: {
2645
2645
  type: "media-input",
2646
- isObjectFitEditable: false
2646
+ isObjectFitEditable: false,
2647
+ minWidth: 48,
2648
+ defaultWidth: 108,
2649
+ maxWidth: 108
2647
2650
  },
2648
2651
  properties: {
2649
2652
  url: {
@@ -2663,7 +2666,10 @@ const ControlImageRevealSliderComponent = {
2663
2666
  type: "string",
2664
2667
  display: {
2665
2668
  type: "text-input",
2666
- placeholder: "Enter link..."
2669
+ placeholder: "Enter link...",
2670
+ minWidth: 100,
2671
+ defaultWidth: 300,
2672
+ maxWidth: 500
2667
2673
  }
2668
2674
  }
2669
2675
  },
package/dist/index.mjs CHANGED
@@ -2394,7 +2394,7 @@ function ImageRevealSlider({ settings, content, isEditor }) {
2394
2394
  ref: divRef,
2395
2395
  onClick: handleClick,
2396
2396
  className: styles.imageRevealSlider,
2397
- style: { cursor: target === "area" && cursorType !== "system" && defaultCursor ? `url(${defaultCursor}), auto` : "default" },
2397
+ style: { cursor: cursorType !== "system" && defaultCursor ? `url(${target === "area" ? hoverCursor : defaultCursor}), auto` : "default" },
2398
2398
  children: placedImages.map((img2) => /* @__PURE__ */ jsx(
2399
2399
  "div",
2400
2400
  {
@@ -2406,7 +2406,7 @@ function ImageRevealSlider({ settings, content, isEditor }) {
2406
2406
  transform: "translate(-50%, -50%)",
2407
2407
  width: img2.width ?? "auto",
2408
2408
  height: "auto",
2409
- cursor: target === "area" && cursorType !== "system" && hoverCursor ? `url(${hoverCursor}), auto` : "default"
2409
+ cursor: cursorType !== "system" && hoverCursor ? `url(${hoverCursor}), auto` : "default"
2410
2410
  },
2411
2411
  children: target === "area" && img2.link ? /* @__PURE__ */ jsx("a", { href: img2.link, target: "_blank", className: styles.link, children: /* @__PURE__ */ jsx(
2412
2412
  "img",
@@ -2624,7 +2624,10 @@ const ControlImageRevealSliderComponent = {
2624
2624
  type: "object",
2625
2625
  display: {
2626
2626
  type: "media-input",
2627
- isObjectFitEditable: false
2627
+ isObjectFitEditable: false,
2628
+ minWidth: 48,
2629
+ defaultWidth: 108,
2630
+ maxWidth: 108
2628
2631
  },
2629
2632
  properties: {
2630
2633
  url: {
@@ -2644,7 +2647,10 @@ const ControlImageRevealSliderComponent = {
2644
2647
  type: "string",
2645
2648
  display: {
2646
2649
  type: "text-input",
2647
- placeholder: "Enter link..."
2650
+ placeholder: "Enter link...",
2651
+ minWidth: 100,
2652
+ defaultWidth: 300,
2653
+ maxWidth: 500
2648
2654
  }
2649
2655
  }
2650
2656
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/sdk",
3
- "version": "1.24.3",
3
+ "version": "1.24.5-0",
4
4
  "description": "Generic SDK for use in public websites.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",