@cntrl-site/sdk 1.24.5-2 → 1.24.5-4

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.
@@ -191,6 +191,16 @@ export declare const ControlImageRevealSliderComponent: {
191
191
  };
192
192
  required: string[];
193
193
  };
194
+ link: {
195
+ type: string;
196
+ display: {
197
+ type: string;
198
+ placeholder: string;
199
+ minWidth: number;
200
+ defaultWidth: number;
201
+ maxWidth: number;
202
+ };
203
+ };
194
204
  };
195
205
  required: string[];
196
206
  };
package/dist/index.js CHANGED
@@ -1386,6 +1386,7 @@ const RichTextRenderer = ({ content }) => {
1386
1386
  };
1387
1387
  function getLeafCss(leaf) {
1388
1388
  return {
1389
+ ...leaf.fontFamily && { fontFamily: leaf.fontFamily },
1389
1390
  ...leaf.fontWeight && { fontWeight: leaf.fontWeight },
1390
1391
  ...leaf.fontStyle && { fontStyle: leaf.fontStyle },
1391
1392
  ...leaf.textDecoration && { textDecoration: leaf.textDecoration },
@@ -2661,6 +2662,16 @@ const ControlImageRevealSliderComponent = {
2661
2662
  }
2662
2663
  },
2663
2664
  required: ["url", "name"]
2665
+ },
2666
+ link: {
2667
+ type: "string",
2668
+ display: {
2669
+ type: "text-input",
2670
+ placeholder: "Enter link...",
2671
+ minWidth: 100,
2672
+ defaultWidth: 300,
2673
+ maxWidth: 500
2674
+ }
2664
2675
  }
2665
2676
  },
2666
2677
  required: ["image"]
package/dist/index.mjs CHANGED
@@ -1367,6 +1367,7 @@ const RichTextRenderer = ({ content }) => {
1367
1367
  };
1368
1368
  function getLeafCss(leaf) {
1369
1369
  return {
1370
+ ...leaf.fontFamily && { fontFamily: leaf.fontFamily },
1370
1371
  ...leaf.fontWeight && { fontWeight: leaf.fontWeight },
1371
1372
  ...leaf.fontStyle && { fontStyle: leaf.fontStyle },
1372
1373
  ...leaf.textDecoration && { textDecoration: leaf.textDecoration },
@@ -2642,6 +2643,16 @@ const ControlImageRevealSliderComponent = {
2642
2643
  }
2643
2644
  },
2644
2645
  required: ["url", "name"]
2646
+ },
2647
+ link: {
2648
+ type: "string",
2649
+ display: {
2650
+ type: "text-input",
2651
+ placeholder: "Enter link...",
2652
+ minWidth: 100,
2653
+ defaultWidth: 300,
2654
+ maxWidth: 500
2655
+ }
2645
2656
  }
2646
2657
  },
2647
2658
  required: ["image"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/sdk",
3
- "version": "1.24.5-2",
3
+ "version": "1.24.5-4",
4
4
  "description": "Generic SDK for use in public websites.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",