@cntrl-site/components 1.0.115-alpha.1 → 1.0.115

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.
Files changed (65) hide show
  1. package/dist/{Burger-DyORh_vF.mjs → Burger-BkVgNMGU.mjs} +1 -1
  2. package/dist/{Burger-B4kXX9aY.js → Burger-C3yVbQcq.js} +1 -1
  3. package/dist/{ChroniclesComponent-DRf1Xd9_.mjs → ChroniclesComponent-D-yEbs9w.mjs} +26 -12
  4. package/dist/ChroniclesComponent-Os_r2IYg.js +1 -0
  5. package/dist/Components/Chronicles/ChroniclesComponent.d.ts +4 -0
  6. package/dist/Components/Grid/Grid.d.ts +1 -0
  7. package/dist/Components/helpers/SvgImage/loadSvgMaskUrl.d.ts +0 -7
  8. package/dist/{ControlSlider-DB4nbVLT.js → ControlSlider-C8ckUIDm.js} +1 -1
  9. package/dist/{ControlSlider-3w-bHQEg.mjs → ControlSlider-DqKfaKMG.mjs} +1 -1
  10. package/dist/{FAQ-GmiwRdFq.mjs → FAQ-CJHCMSBa.mjs} +1 -1
  11. package/dist/{FAQ-7HEkaoU6.js → FAQ-DLh63Utr.js} +1 -1
  12. package/dist/Grid-OvzWvUW9.js +403 -0
  13. package/dist/{Grid-Dn44dvgx.mjs → Grid-t07NDMzY.mjs} +555 -528
  14. package/dist/{Hive-34KvKNsa.js → Hive-CzabuuCc.js} +1 -1
  15. package/dist/{Hive-7xHXyMM1.mjs → Hive-DyxYd5eg.mjs} +1 -1
  16. package/dist/{HiveLightboxTitles-BCoL46-V.mjs → HiveLightboxTitles-DhEeFKWs.mjs} +1 -1
  17. package/dist/{HiveLightboxTitles-DEeyQGcf.js → HiveLightboxTitles-DlyptAaK.js} +1 -1
  18. package/dist/{Lightbox-DzPqgKP4.mjs → Lightbox-BY99NS14.mjs} +1 -1
  19. package/dist/{Lightbox-Cb7lyaNt.js → Lightbox-DZckgBzK.js} +1 -1
  20. package/dist/{LightboxJournal-C_q7_s-B.mjs → LightboxJournal-D59ex6wH.mjs} +1 -1
  21. package/dist/{LightboxJournal-BFF5aKRz.js → LightboxJournal-DAEZOPDi.js} +1 -1
  22. package/dist/{LightboxStrip-CC2e0_9A.js → LightboxStrip-BDjI1jyH.js} +1 -1
  23. package/dist/{LightboxStrip-BrNj7ipX.mjs → LightboxStrip-YspzBP8N.mjs} +1 -1
  24. package/dist/{Mercury-BmhtFYOw.js → Mercury-B-s2Kvuq.js} +1 -1
  25. package/dist/{Mercury-Q788wrYQ.mjs → Mercury-CCW0Es-s.mjs} +1 -1
  26. package/dist/{OnelinerForm-D8WIB9Qy.mjs → OnelinerForm-BEu7_sho.mjs} +1 -1
  27. package/dist/{OnelinerForm-CUmY-bXL.js → OnelinerForm-C2Y_XMCY.js} +1 -1
  28. package/dist/{SimpleButton-DTpzfmb6.mjs → SimpleButton-C-o2W9bS.mjs} +1 -1
  29. package/dist/{SimpleButton-DtaCYa3y.js → SimpleButton-nGEcO2gB.js} +1 -1
  30. package/dist/{Slider20-q0iGgnE3.js → Slider20-BOmjDRf2.js} +1 -1
  31. package/dist/{Slider20-CKngROrc.mjs → Slider20-DUi6qwnd.mjs} +1 -1
  32. package/dist/SvgImage-B5mR9y6q.mjs +51 -0
  33. package/dist/SvgImage-DFlmxAoL.js +1 -0
  34. package/dist/{TestimonialSingle-CpEUendN.js → TestimonialSingle-BORQom3u.js} +1 -1
  35. package/dist/{TestimonialSingle-Bax71Hyo.mjs → TestimonialSingle-DrnyReim.mjs} +1 -1
  36. package/dist/{Waterfall-znaoynn5.mjs → Waterfall-3kKioKh2.mjs} +1 -1
  37. package/dist/{Waterfall-B9YWMhrg.js → Waterfall-DII4-WV5.js} +1 -1
  38. package/dist/components-D4ZrIo2M.js +1 -0
  39. package/dist/{components-DH803b-9.mjs → components-Ds6rhj3U.mjs} +29 -655
  40. package/dist/elements.js +1 -1
  41. package/dist/elements.mjs +22 -23
  42. package/dist/elements.node.js +1 -1
  43. package/dist/elements.node.mjs +1 -1
  44. package/dist/index.d.ts +1 -3
  45. package/dist/index.js +1 -1
  46. package/dist/index.mjs +27 -48
  47. package/dist/loadSvgMaskUrl-DfF7ay6h.js +1 -0
  48. package/dist/loadSvgMaskUrl-xHgGYgPe.mjs +20 -0
  49. package/dist/sources.js +42 -5
  50. package/dist/sources.mjs +45 -8
  51. package/dist/types/Component.d.ts +0 -7
  52. package/dist/types/SchemaV1.d.ts +0 -3
  53. package/package.json +1 -1
  54. package/dist/ChroniclesComponent-BHZu7BbK.js +0 -1
  55. package/dist/Components/PopupMenu/PopupMenu.d.ts +0 -72
  56. package/dist/Components/PopupMenu/PopupMenuComponent.d.ts +0 -598
  57. package/dist/Components/PopupMenu/popupMenuLayout.d.ts +0 -176
  58. package/dist/Grid-BXUT_Hn6.js +0 -378
  59. package/dist/PopupMenu-Ct6PbiJq.js +0 -369
  60. package/dist/PopupMenu-DGVvx5AW.mjs +0 -1067
  61. package/dist/SvgImage-CwRq9-ec.mjs +0 -56
  62. package/dist/SvgImage-_QN8ngad.js +0 -1
  63. package/dist/components-DCG0h7Jb.js +0 -1
  64. package/dist/loadSvgMaskUrl-B6kHUyof.js +0 -1
  65. package/dist/loadSvgMaskUrl-DUhCVvpl.mjs +0 -39
package/dist/elements.js CHANGED
@@ -1 +1 @@
1
- "use strict";var h=Object.create;var a=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var g=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var d=(e,n,r,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of c(n))!f.call(e,i)&&i!==r&&a(e,i,{get:()=>n[i],enumerable:!(o=u(n,i))||o.enumerable});return e};var t=(e,n,r)=>(r=e!=null?h(g(e)):{},d(n||!e||!e.__esModule?a(r,"default",{value:e,enumerable:!0}):r,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m={"basic-burger":()=>import(/* webpackFetchPriority: "high" */ "./Burger-B4kXX9aY.js").then(e=>e.Burger),chronicles:()=>import(/* webpackFetchPriority: "high" */ "./Chronicles-D0ojQzOP.js").then(e=>e.Chronicles),"click-gallerie":()=>import(/* webpackFetchPriority: "high" */ "./ClickGallerie-DYbc-rDp.js").then(e=>e.ClickGallerie),"control-slider":()=>import(/* webpackFetchPriority: "high" */ "./ControlSlider-DB4nbVLT.js").then(e=>e.ControlSlider),faq:()=>import(/* webpackFetchPriority: "high" */ "./FAQ-7HEkaoU6.js").then(e=>e.FAQ),form:()=>import(/* webpackFetchPriority: "high" */ "./Form-Dn-6A1He.js").then(e=>e.Form),grid:()=>import(/* webpackFetchPriority: "high" */ "./Grid-BXUT_Hn6.js").then(e=>e.Grid),helix:()=>import(/* webpackFetchPriority: "high" */ "./Helix-BpLo9FD3.js").then(e=>e.Helix),hive:()=>import(/* webpackFetchPriority: "high" */ "./Hive-34KvKNsa.js").then(e=>e.Hive),"control-image-reveal":()=>import(/* webpackFetchPriority: "high" */ "./ImageRevealSlider-DlxudBUy.js").then(e=>e.ImageRevealSlider),lightbox:()=>import(/* webpackFetchPriority: "high" */ "./Lightbox-Cb7lyaNt.js").then(e=>e.LightboxGallery),"lightbox-journal":()=>import(/* webpackFetchPriority: "high" */ "./LightboxJournal-BFF5aKRz.js").then(e=>e.LightboxJournal),"lightbox-strip":()=>import(/* webpackFetchPriority: "high" */ "./LightboxStrip-CC2e0_9A.js").then(e=>e.LightboxStrip),list:()=>import(/* webpackFetchPriority: "high" */ "./List-DVvpQ24J.js").then(e=>e.List),marquee:()=>import(/* webpackFetchPriority: "high" */ "./Marquee-DDKigLBo.js").then(e=>e.Marquee),"marquee-text":()=>import(/* webpackFetchPriority: "high" */ "./MarqueeText-B5hqB0HA.js").then(e=>e.MarqueeText),mercury:()=>import(/* webpackFetchPriority: "high" */ "./Mercury-BmhtFYOw.js").then(e=>e.Mercury),"oneliner-form":()=>import(/* webpackFetchPriority: "high" */ "./OnelinerForm-CUmY-bXL.js").then(e=>e.OnelinerForm),"popup-menu":()=>import(/* webpackFetchPriority: "high" */ "./PopupMenu-Ct6PbiJq.js").then(e=>e.PopupMenu$1).then(e=>e.PopupMenu),pretext:()=>import(/* webpackFetchPriority: "high" */ "./Pretext-DvQ3xsni.js").then(e=>e.Pretext),scale:()=>import(/* webpackFetchPriority: "high" */ "./Scale-Bg3bGICG.js").then(e=>e.Scale),"simple-button":()=>import(/* webpackFetchPriority: "high" */ "./SimpleButton-DtaCYa3y.js").then(e=>e.SimpleButton),"slider-2-0":()=>import(/* webpackFetchPriority: "high" */ "./Slider20-q0iGgnE3.js").then(e=>e.Slider20),testimonials:()=>import(/* webpackFetchPriority: "high" */ "./TestimonialGrid-BHZazEVX.js").then(e=>e.TestimonialGrid),"testimonial-single":()=>import(/* webpackFetchPriority: "high" */ "./TestimonialSingle-CpEUendN.js").then(e=>e.TestimonialSingle),waterfall:()=>import(/* webpackFetchPriority: "high" */ "./Waterfall-B9YWMhrg.js").then(e=>e.Waterfall)},b=Object.keys(m),y=3,E=2e3,p=new Map,l=new Map;function s(e){return Object.prototype.hasOwnProperty.call(m,e)}function x(e){return p.get(e)}function C(e){var n;return(((n=l.get(e))==null?void 0:n.failures)??0)>0}const M=e=>!e.loading&&e.failures>0&&e.failures<y&&Date.now()>=e.retryAt;function S(e){if(!s(e))return Promise.resolve(void 0);const n=l.get(e);if(n&&!M(n))return n.request;const r={loading:!0,failures:(n==null?void 0:n.failures)??0,retryAt:0,request:m[e]().then(o=>(p.set(e,o),r.failures=0,o),o=>{throw r.failures+=1,r.retryAt=Date.now()+E*2**(r.failures-1),o}).finally(()=>{r.loading=!1})};return l.set(e,r),r.request}exports.componentElementIds=b;exports.getComponentElement=x;exports.hasComponentElement=s;exports.hasComponentElementFailed=C;exports.loadComponentElement=S;
1
+ "use strict";var h=Object.create;var a=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var g=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var d=(e,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of c(r))!f.call(e,i)&&i!==n&&a(e,i,{get:()=>r[i],enumerable:!(o=u(r,i))||o.enumerable});return e};var t=(e,r,n)=>(n=e!=null?h(g(e)):{},d(r||!e||!e.__esModule?a(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m={"basic-burger":()=>import(/* webpackFetchPriority: "high" */ "./Burger-C3yVbQcq.js").then(e=>e.Burger),chronicles:()=>import(/* webpackFetchPriority: "high" */ "./Chronicles-D0ojQzOP.js").then(e=>e.Chronicles),"click-gallerie":()=>import(/* webpackFetchPriority: "high" */ "./ClickGallerie-DYbc-rDp.js").then(e=>e.ClickGallerie),"control-slider":()=>import(/* webpackFetchPriority: "high" */ "./ControlSlider-C8ckUIDm.js").then(e=>e.ControlSlider),faq:()=>import(/* webpackFetchPriority: "high" */ "./FAQ-DLh63Utr.js").then(e=>e.FAQ),form:()=>import(/* webpackFetchPriority: "high" */ "./Form-Dn-6A1He.js").then(e=>e.Form),grid:()=>import(/* webpackFetchPriority: "high" */ "./Grid-OvzWvUW9.js").then(e=>e.Grid),helix:()=>import(/* webpackFetchPriority: "high" */ "./Helix-BpLo9FD3.js").then(e=>e.Helix),hive:()=>import(/* webpackFetchPriority: "high" */ "./Hive-CzabuuCc.js").then(e=>e.Hive),"control-image-reveal":()=>import(/* webpackFetchPriority: "high" */ "./ImageRevealSlider-DlxudBUy.js").then(e=>e.ImageRevealSlider),lightbox:()=>import(/* webpackFetchPriority: "high" */ "./Lightbox-DZckgBzK.js").then(e=>e.LightboxGallery),"lightbox-journal":()=>import(/* webpackFetchPriority: "high" */ "./LightboxJournal-DAEZOPDi.js").then(e=>e.LightboxJournal),"lightbox-strip":()=>import(/* webpackFetchPriority: "high" */ "./LightboxStrip-BDjI1jyH.js").then(e=>e.LightboxStrip),list:()=>import(/* webpackFetchPriority: "high" */ "./List-DVvpQ24J.js").then(e=>e.List),marquee:()=>import(/* webpackFetchPriority: "high" */ "./Marquee-DDKigLBo.js").then(e=>e.Marquee),"marquee-text":()=>import(/* webpackFetchPriority: "high" */ "./MarqueeText-B5hqB0HA.js").then(e=>e.MarqueeText),mercury:()=>import(/* webpackFetchPriority: "high" */ "./Mercury-B-s2Kvuq.js").then(e=>e.Mercury),"oneliner-form":()=>import(/* webpackFetchPriority: "high" */ "./OnelinerForm-C2Y_XMCY.js").then(e=>e.OnelinerForm),pretext:()=>import(/* webpackFetchPriority: "high" */ "./Pretext-DvQ3xsni.js").then(e=>e.Pretext),scale:()=>import(/* webpackFetchPriority: "high" */ "./Scale-Bg3bGICG.js").then(e=>e.Scale),"simple-button":()=>import(/* webpackFetchPriority: "high" */ "./SimpleButton-nGEcO2gB.js").then(e=>e.SimpleButton),"slider-2-0":()=>import(/* webpackFetchPriority: "high" */ "./Slider20-BOmjDRf2.js").then(e=>e.Slider20),testimonials:()=>import(/* webpackFetchPriority: "high" */ "./TestimonialGrid-BHZazEVX.js").then(e=>e.TestimonialGrid),"testimonial-single":()=>import(/* webpackFetchPriority: "high" */ "./TestimonialSingle-BORQom3u.js").then(e=>e.TestimonialSingle),waterfall:()=>import(/* webpackFetchPriority: "high" */ "./Waterfall-DII4-WV5.js").then(e=>e.Waterfall)},b=Object.keys(m),y=3,E=2e3,s=new Map,l=new Map;function p(e){return Object.prototype.hasOwnProperty.call(m,e)}function x(e){return s.get(e)}function C(e){var r;return(((r=l.get(e))==null?void 0:r.failures)??0)>0}const S=e=>!e.loading&&e.failures>0&&e.failures<y&&Date.now()>=e.retryAt;function M(e){if(!p(e))return Promise.resolve(void 0);const r=l.get(e);if(r&&!S(r))return r.request;const n={loading:!0,failures:(r==null?void 0:r.failures)??0,retryAt:0,request:m[e]().then(o=>(s.set(e,o),n.failures=0,o),o=>{throw n.failures+=1,n.retryAt=Date.now()+E*2**(n.failures-1),o}).finally(()=>{n.loading=!1})};return l.set(e,n),n.request}exports.componentElementIds=b;exports.getComponentElement=x;exports.hasComponentElement=p;exports.hasComponentElementFailed=C;exports.loadComponentElement=M;
package/dist/elements.mjs CHANGED
@@ -1,32 +1,31 @@
1
1
  const i = {
2
- "basic-burger": () => import(/* webpackFetchPriority: "high" */ "./Burger-DyORh_vF.mjs").then((e) => e.Burger),
2
+ "basic-burger": () => import(/* webpackFetchPriority: "high" */ "./Burger-BkVgNMGU.mjs").then((e) => e.Burger),
3
3
  chronicles: () => import(/* webpackFetchPriority: "high" */ "./Chronicles-Cy2h3jlZ.mjs").then((e) => e.Chronicles),
4
4
  "click-gallerie": () => import(/* webpackFetchPriority: "high" */ "./ClickGallerie-Cjc_1Gxy.mjs").then((e) => e.ClickGallerie),
5
- "control-slider": () => import(/* webpackFetchPriority: "high" */ "./ControlSlider-3w-bHQEg.mjs").then((e) => e.ControlSlider),
6
- faq: () => import(/* webpackFetchPriority: "high" */ "./FAQ-GmiwRdFq.mjs").then((e) => e.FAQ),
5
+ "control-slider": () => import(/* webpackFetchPriority: "high" */ "./ControlSlider-DqKfaKMG.mjs").then((e) => e.ControlSlider),
6
+ faq: () => import(/* webpackFetchPriority: "high" */ "./FAQ-CJHCMSBa.mjs").then((e) => e.FAQ),
7
7
  form: () => import(/* webpackFetchPriority: "high" */ "./Form-BX5_41nb.mjs").then((e) => e.Form),
8
- grid: () => import(/* webpackFetchPriority: "high" */ "./Grid-Dn44dvgx.mjs").then((e) => e.Grid),
8
+ grid: () => import(/* webpackFetchPriority: "high" */ "./Grid-t07NDMzY.mjs").then((e) => e.Grid),
9
9
  helix: () => import(/* webpackFetchPriority: "high" */ "./Helix-CidI3ucE.mjs").then((e) => e.Helix),
10
- hive: () => import(/* webpackFetchPriority: "high" */ "./Hive-7xHXyMM1.mjs").then((e) => e.Hive),
10
+ hive: () => import(/* webpackFetchPriority: "high" */ "./Hive-DyxYd5eg.mjs").then((e) => e.Hive),
11
11
  "control-image-reveal": () => import(/* webpackFetchPriority: "high" */ "./ImageRevealSlider-DifEXySR.mjs").then((e) => e.ImageRevealSlider),
12
- lightbox: () => import(/* webpackFetchPriority: "high" */ "./Lightbox-DzPqgKP4.mjs").then((e) => e.LightboxGallery),
13
- "lightbox-journal": () => import(/* webpackFetchPriority: "high" */ "./LightboxJournal-C_q7_s-B.mjs").then((e) => e.LightboxJournal),
14
- "lightbox-strip": () => import(/* webpackFetchPriority: "high" */ "./LightboxStrip-BrNj7ipX.mjs").then((e) => e.LightboxStrip),
12
+ lightbox: () => import(/* webpackFetchPriority: "high" */ "./Lightbox-BY99NS14.mjs").then((e) => e.LightboxGallery),
13
+ "lightbox-journal": () => import(/* webpackFetchPriority: "high" */ "./LightboxJournal-D59ex6wH.mjs").then((e) => e.LightboxJournal),
14
+ "lightbox-strip": () => import(/* webpackFetchPriority: "high" */ "./LightboxStrip-YspzBP8N.mjs").then((e) => e.LightboxStrip),
15
15
  list: () => import(/* webpackFetchPriority: "high" */ "./List-Bh_-l9vD.mjs").then((e) => e.List),
16
16
  marquee: () => import(/* webpackFetchPriority: "high" */ "./Marquee-_xVuf-zp.mjs").then((e) => e.Marquee),
17
17
  "marquee-text": () => import(/* webpackFetchPriority: "high" */ "./MarqueeText-C2E6UDsb.mjs").then((e) => e.MarqueeText),
18
- mercury: () => import(/* webpackFetchPriority: "high" */ "./Mercury-Q788wrYQ.mjs").then((e) => e.Mercury),
19
- "oneliner-form": () => import(/* webpackFetchPriority: "high" */ "./OnelinerForm-D8WIB9Qy.mjs").then((e) => e.OnelinerForm),
20
- "popup-menu": () => import(/* webpackFetchPriority: "high" */ "./PopupMenu-DGVvx5AW.mjs").then((e) => e.u).then((e) => e.PopupMenu),
18
+ mercury: () => import(/* webpackFetchPriority: "high" */ "./Mercury-CCW0Es-s.mjs").then((e) => e.Mercury),
19
+ "oneliner-form": () => import(/* webpackFetchPriority: "high" */ "./OnelinerForm-BEu7_sho.mjs").then((e) => e.OnelinerForm),
21
20
  pretext: () => import(/* webpackFetchPriority: "high" */ "./Pretext-10CcyP1E.mjs").then((e) => e.Pretext),
22
21
  scale: () => import(/* webpackFetchPriority: "high" */ "./Scale-TnkWtRrs.mjs").then((e) => e.Scale),
23
- "simple-button": () => import(/* webpackFetchPriority: "high" */ "./SimpleButton-DTpzfmb6.mjs").then((e) => e.SimpleButton),
24
- "slider-2-0": () => import(/* webpackFetchPriority: "high" */ "./Slider20-CKngROrc.mjs").then((e) => e.Slider20),
22
+ "simple-button": () => import(/* webpackFetchPriority: "high" */ "./SimpleButton-C-o2W9bS.mjs").then((e) => e.SimpleButton),
23
+ "slider-2-0": () => import(/* webpackFetchPriority: "high" */ "./Slider20-DUi6qwnd.mjs").then((e) => e.Slider20),
25
24
  testimonials: () => import(/* webpackFetchPriority: "high" */ "./TestimonialGrid-C-8IDzWu.mjs").then((e) => e.TestimonialGrid),
26
- "testimonial-single": () => import(/* webpackFetchPriority: "high" */ "./TestimonialSingle-Bax71Hyo.mjs").then((e) => e.TestimonialSingle),
27
- waterfall: () => import(/* webpackFetchPriority: "high" */ "./Waterfall-znaoynn5.mjs").then((e) => e.Waterfall)
28
- }, h = Object.keys(i), m = 3, a = 2e3, l = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
29
- function p(e) {
25
+ "testimonial-single": () => import(/* webpackFetchPriority: "high" */ "./TestimonialSingle-DrnyReim.mjs").then((e) => e.TestimonialSingle),
26
+ waterfall: () => import(/* webpackFetchPriority: "high" */ "./Waterfall-3kKioKh2.mjs").then((e) => e.Waterfall)
27
+ }, p = Object.keys(i), a = 3, m = 2e3, l = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
28
+ function s(e) {
30
29
  return Object.prototype.hasOwnProperty.call(i, e);
31
30
  }
32
31
  function u(e) {
@@ -36,11 +35,11 @@ function c(e) {
36
35
  var t;
37
36
  return (((t = o.get(e)) == null ? void 0 : t.failures) ?? 0) > 0;
38
37
  }
39
- const s = (e) => !e.loading && e.failures > 0 && e.failures < m && Date.now() >= e.retryAt;
38
+ const h = (e) => !e.loading && e.failures > 0 && e.failures < a && Date.now() >= e.retryAt;
40
39
  function f(e) {
41
- if (!p(e)) return Promise.resolve(void 0);
40
+ if (!s(e)) return Promise.resolve(void 0);
42
41
  const t = o.get(e);
43
- if (t && !s(t)) return t.request;
42
+ if (t && !h(t)) return t.request;
44
43
  const r = {
45
44
  loading: !0,
46
45
  failures: (t == null ? void 0 : t.failures) ?? 0,
@@ -48,7 +47,7 @@ function f(e) {
48
47
  request: i[e]().then(
49
48
  (n) => (l.set(e, n), r.failures = 0, n),
50
49
  (n) => {
51
- throw r.failures += 1, r.retryAt = Date.now() + a * 2 ** (r.failures - 1), n;
50
+ throw r.failures += 1, r.retryAt = Date.now() + m * 2 ** (r.failures - 1), n;
52
51
  }
53
52
  ).finally(() => {
54
53
  r.loading = !1;
@@ -57,9 +56,9 @@ function f(e) {
57
56
  return o.set(e, r), r.request;
58
57
  }
59
58
  export {
60
- h as componentElementIds,
59
+ p as componentElementIds,
61
60
  u as getComponentElement,
62
- p as hasComponentElement,
61
+ s as hasComponentElement,
63
62
  c as hasComponentElementFailed,
64
63
  f as loadComponentElement
65
64
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components-DCG0h7Jb.js"),n=new Map(t.components.map(e=>[e.id,e.element])),o=[...n.keys()];function m(e){return n.has(e)}function l(e){return n.get(e)}function s(e){return!1}function r(e){return Promise.resolve(n.get(e))}exports.componentElementIds=o;exports.getComponentElement=l;exports.hasComponentElement=m;exports.hasComponentElementFailed=s;exports.loadComponentElement=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components-D4ZrIo2M.js"),n=new Map(t.components.map(e=>[e.id,e.element])),o=[...n.keys()];function m(e){return n.has(e)}function l(e){return n.get(e)}function s(e){return!1}function r(e){return Promise.resolve(n.get(e))}exports.componentElementIds=o;exports.getComponentElement=l;exports.hasComponentElement=m;exports.hasComponentElementFailed=s;exports.loadComponentElement=r;
@@ -1,4 +1,4 @@
1
- import { c as t } from "./components-DH803b-9.mjs";
1
+ import { c as t } from "./components-Ds6rhj3U.mjs";
2
2
  const n = new Map(t.map((e) => [e.id, e.element])), m = [...n.keys()];
3
3
  function r(e) {
4
4
  return n.has(e);
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { type Breakpoint, type Component, type ComponentDefaultSize, type ComponentDefaultNavigationPosition, type ComponentNavigationPosition, type ComponentNavigationLayout, type ComponentSize, isSchemaV1 } from './types/Component';
1
+ export { type Breakpoint, type Component, type ComponentDefaultSize, type ComponentDefaultNavigationPosition, type ComponentNavigationPosition, type ComponentSize, isSchemaV1 } from './types/Component';
2
2
  export type { ComponentSchemaV1, ComponentContentSchema, ComponentContentSettings, ComponentContentProperty, ContentKey, ContentLink, SchemaProperty, PropertyScope, LayoutItem, LayoutRow, LayoutGroup, LayoutSwitcher, LayoutTab, SchemaSection, SchemaPanel, SchemaPanelAvailability, SchemaDisplay } from './types/SchemaV1';
3
3
  export { components } from './Components/components';
4
4
  export { getPostFieldBindings } from './content/postFieldBindings';
@@ -6,5 +6,3 @@ export type { ContentValue, PostFieldBinding, PostFieldEntry, PostFieldPage } fr
6
6
  export { getAvailableStatePanels, getUnavailableStates, isPanelAvailable, } from './Components/utils/panelAvailability';
7
7
  export type { PanelAvailabilityContext } from './Components/utils/panelAvailability';
8
8
  export { nonForkableComponentIds } from './forking';
9
- export { generatePopupMenuLayout, movePopupMenuBlock, resizePopupMenuBlock, settlePopupMenuLayout, snapPopupMenuTop, snapPopupMenuHeight, fitPopupMenuLayoutToGrid, isSamePopupMenuGrid, getPopupMenuHeight, getPopupMenuHeightPercent, getPopupMenuWidth, POPUP_MENU_ALIGNS, DEFAULT_POPUP_MENU_VIEWPORT_RATIO, getPopupMenuSides, getPopupMenuGrid, DEFAULT_POPUP_MENU_GRID, randomPopupMenuSeed, defaultPopupMenuLayoutRules, DEFAULT_POPUP_MENU_HEIGHT, } from './Components/PopupMenu/popupMenuLayout';
10
- export type { PopupMenuAlign, PopupMenuBlockType, PopupMenuGrid, PopupMenuGridLayout, PopupMenuGridSettings, PopupMenuSides, PopupMenuSidesSetting, PopupMenuLayout, PopupMenuLayoutRules, PopupMenuMeasure, PopupMenuPlacement } from './Components/PopupMenu/popupMenuLayout';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./components-DCG0h7Jb.js"),r=require("./panelAvailability-DnOe0rQ4.js"),e=require("./PopupMenu-Ct6PbiJq.js");function d(t){return t.type==="object"&&t.version===1}function p(t){return{assetId:t,name:"",type:"image",objectFit:"cover"}}function M(t,{text:o,images:n}){switch(t){case"media-pair-list-input":return n.map(i=>({media:[p(i),p("")]}));case"media-list-input":return n.map(p);case"media-input":return n.length>0?p(n[0]):{assetId:"",name:""};case"rich-text":return[{type:"paragraph",children:[{text:o}]}];case"link-input":return{type:"url",value:"",target:"self"};default:return o}}function g(t,{pageId:o,slug:n}){return t==="link-input"?{type:"page",value:o,target:"self"}:`/${n}`}function c(t){var n;const o=((n=t==null?void 0:t.items)==null?void 0:n.properties)??{};return Object.entries(o).map(([i,a])=>{var s;const l=(s=a.display)==null?void 0:s.type;return{fieldKey:i,...a.contentKey!==void 0?{contentKey:a.contentKey}:{},fromEntry:P=>M(l,P),toPage:P=>g(l,P)}})}const m=[u.ControlSliderComponent.id,u.ControlImageRevealSliderComponent.id,u.LightboxComponent.id,u.PopupMenuComponent.id];exports.components=u.components;exports.getAvailableStatePanels=r.getAvailableStatePanels;exports.getUnavailableStates=r.getUnavailableStates;exports.isPanelAvailable=r.isPanelAvailable;exports.DEFAULT_POPUP_MENU_GRID=e.DEFAULT_POPUP_MENU_GRID;exports.DEFAULT_POPUP_MENU_HEIGHT=e.DEFAULT_POPUP_MENU_HEIGHT;exports.DEFAULT_POPUP_MENU_VIEWPORT_RATIO=e.DEFAULT_POPUP_MENU_VIEWPORT_RATIO;exports.POPUP_MENU_ALIGNS=e.POPUP_MENU_ALIGNS;exports.defaultPopupMenuLayoutRules=e.defaultPopupMenuLayoutRules;exports.fitPopupMenuLayoutToGrid=e.fitPopupMenuLayoutToGrid;exports.generatePopupMenuLayout=e.generatePopupMenuLayout;exports.getPopupMenuGrid=e.getPopupMenuGrid;exports.getPopupMenuHeight=e.getPopupMenuHeight;exports.getPopupMenuHeightPercent=e.getPopupMenuHeightPercent;exports.getPopupMenuSides=e.getPopupMenuSides;exports.getPopupMenuWidth=e.getPopupMenuWidth;exports.isSamePopupMenuGrid=e.isSamePopupMenuGrid;exports.movePopupMenuBlock=e.movePopupMenuBlock;exports.randomPopupMenuSeed=e.randomPopupMenuSeed;exports.resizePopupMenuBlock=e.resizePopupMenuBlock;exports.settlePopupMenuLayout=e.settlePopupMenuLayout;exports.snapPopupMenuHeight=e.snapPopupMenuHeight;exports.snapPopupMenuTop=e.snapPopupMenuTop;exports.getPostFieldBindings=c;exports.isSchemaV1=d;exports.nonForkableComponentIds=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./components-D4ZrIo2M.js"),s=require("./panelAvailability-DnOe0rQ4.js");function c(e){return e.type==="object"&&e.version===1}function i(e){return{assetId:e,name:"",type:"image",objectFit:"cover"}}function d(e,{text:n,images:t}){switch(e){case"media-pair-list-input":return t.map(o=>({media:[i(o),i("")]}));case"media-list-input":return t.map(i);case"media-input":return t.length>0?i(t[0]):{assetId:"",name:""};case"rich-text":return[{type:"paragraph",children:[{text:n}]}];case"link-input":return{type:"url",value:"",target:"self"};default:return n}}function m(e,{pageId:n,slug:t}){return e==="link-input"?{type:"page",value:n,target:"self"}:`/${t}`}function g(e){var t;const n=((t=e==null?void 0:e.items)==null?void 0:t.properties)??{};return Object.entries(n).map(([o,r])=>{var u;const p=(u=r.display)==null?void 0:u.type;return{fieldKey:o,...r.contentKey!==void 0?{contentKey:r.contentKey}:{},fromEntry:l=>d(p,l),toPage:l=>m(p,l)}})}const b=[a.ControlSliderComponent.id,a.ControlImageRevealSliderComponent.id,a.LightboxComponent.id];exports.components=a.components;exports.getAvailableStatePanels=s.getAvailableStatePanels;exports.getUnavailableStates=s.getUnavailableStates;exports.isPanelAvailable=s.isPanelAvailable;exports.getPostFieldBindings=g;exports.isSchemaV1=c;exports.nonForkableComponentIds=b;
package/dist/index.mjs CHANGED
@@ -1,21 +1,20 @@
1
- import { C as s, a as P, L as l, P as d } from "./components-DH803b-9.mjs";
2
- import { c as E } from "./components-DH803b-9.mjs";
3
- import { g as L, a as b, i as S } from "./panelAvailability-D179wwJx.mjs";
4
- import { k as I, o as T, D as h, P as A, n as O, f as k, g as F, j as G, c as x, d as D, h as H, e as N, i as R, m as j, l as B, r as K, s as V, b as W, a as w } from "./PopupMenu-DGVvx5AW.mjs";
5
- function M(e) {
1
+ import { C as s, a as u, L as c } from "./components-Ds6rhj3U.mjs";
2
+ import { c as P } from "./components-Ds6rhj3U.mjs";
3
+ import { g as x, a as j, i as k } from "./panelAvailability-D179wwJx.mjs";
4
+ function g(e) {
6
5
  return e.type === "object" && e.version === 1;
7
6
  }
8
- function a(e) {
7
+ function r(e) {
9
8
  return { assetId: e, name: "", type: "image", objectFit: "cover" };
10
9
  }
11
- function c(e, { text: n, images: t }) {
10
+ function d(e, { text: n, images: t }) {
12
11
  switch (e) {
13
12
  case "media-pair-list-input":
14
- return t.map((o) => ({ media: [a(o), a("")] }));
13
+ return t.map((a) => ({ media: [r(a), r("")] }));
15
14
  case "media-list-input":
16
- return t.map(a);
15
+ return t.map(r);
17
16
  case "media-input":
18
- return t.length > 0 ? a(t[0]) : { assetId: "", name: "" };
17
+ return t.length > 0 ? r(t[0]) : { assetId: "", name: "" };
19
18
  case "rich-text":
20
19
  return [{ type: "paragraph", children: [{ text: n }] }];
21
20
  case "link-input":
@@ -27,51 +26,31 @@ function c(e, { text: n, images: t }) {
27
26
  function m(e, { pageId: n, slug: t }) {
28
27
  return e === "link-input" ? { type: "page", value: n, target: "self" } : `/${t}`;
29
28
  }
30
- function f(e) {
29
+ function y(e) {
31
30
  var t;
32
31
  const n = ((t = e == null ? void 0 : e.items) == null ? void 0 : t.properties) ?? {};
33
- return Object.entries(n).map(([o, p]) => {
34
- var r;
35
- const i = (r = p.display) == null ? void 0 : r.type;
32
+ return Object.entries(n).map(([a, i]) => {
33
+ var p;
34
+ const l = (p = i.display) == null ? void 0 : p.type;
36
35
  return {
37
- fieldKey: o,
38
- ...p.contentKey !== void 0 ? { contentKey: p.contentKey } : {},
39
- fromEntry: (u) => c(i, u),
40
- toPage: (u) => m(i, u)
36
+ fieldKey: a,
37
+ ...i.contentKey !== void 0 ? { contentKey: i.contentKey } : {},
38
+ fromEntry: (o) => d(l, o),
39
+ toPage: (o) => m(l, o)
41
40
  };
42
41
  });
43
42
  }
44
- const y = [
43
+ const v = [
45
44
  s.id,
46
- P.id,
47
- l.id,
48
- d.id
45
+ u.id,
46
+ c.id
49
47
  ];
50
48
  export {
51
- I as DEFAULT_POPUP_MENU_GRID,
52
- T as DEFAULT_POPUP_MENU_HEIGHT,
53
- h as DEFAULT_POPUP_MENU_VIEWPORT_RATIO,
54
- A as POPUP_MENU_ALIGNS,
55
- E as components,
56
- O as defaultPopupMenuLayoutRules,
57
- k as fitPopupMenuLayoutToGrid,
58
- F as generatePopupMenuLayout,
59
- L as getAvailableStatePanels,
60
- G as getPopupMenuGrid,
61
- x as getPopupMenuHeight,
62
- D as getPopupMenuHeightPercent,
63
- H as getPopupMenuSides,
64
- N as getPopupMenuWidth,
65
- f as getPostFieldBindings,
66
- b as getUnavailableStates,
67
- S as isPanelAvailable,
68
- R as isSamePopupMenuGrid,
69
- M as isSchemaV1,
70
- j as movePopupMenuBlock,
71
- y as nonForkableComponentIds,
72
- B as randomPopupMenuSeed,
73
- K as resizePopupMenuBlock,
74
- V as settlePopupMenuLayout,
75
- W as snapPopupMenuHeight,
76
- w as snapPopupMenuTop
49
+ P as components,
50
+ x as getAvailableStatePanels,
51
+ y as getPostFieldBindings,
52
+ j as getUnavailableStates,
53
+ k as isPanelAvailable,
54
+ g as isSchemaV1,
55
+ v as nonForkableComponentIds
77
56
  };
@@ -0,0 +1 @@
1
+ "use strict";const n=new Map;function s(t){return t.startsWith("data:")||t.startsWith("blob:")}function c(t){if(s(t))return Promise.resolve(t);const r=n.get(t);if(r)return r;const a=fetch(t,{mode:"cors",cache:"reload"}).then(e=>{if(!e.ok)throw new Error(String(e.status));return e.blob()}).then(e=>URL.createObjectURL(e)).catch(e=>{throw n.delete(t),e});return n.set(t,a),a}exports.isInlineMaskUrl=s;exports.loadSvgMaskUrl=c;
@@ -0,0 +1,20 @@
1
+ const n = /* @__PURE__ */ new Map();
2
+ function c(t) {
3
+ return t.startsWith("data:") || t.startsWith("blob:");
4
+ }
5
+ function o(t) {
6
+ if (c(t)) return Promise.resolve(t);
7
+ const r = n.get(t);
8
+ if (r) return r;
9
+ const a = fetch(t, { mode: "cors", cache: "reload" }).then((e) => {
10
+ if (!e.ok) throw new Error(String(e.status));
11
+ return e.blob();
12
+ }).then((e) => URL.createObjectURL(e)).catch((e) => {
13
+ throw n.delete(t), e;
14
+ });
15
+ return n.set(t, a), a;
16
+ }
17
+ export {
18
+ c as i,
19
+ o as l
20
+ };
package/dist/sources.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./ChroniclesComponent-BHZu7BbK.js"),e=`import { Fragment, useEffect, useLayoutEffect, useMemo, useRef, useState, type CSSProperties, type MouseEvent, type PointerEvent, type ReactNode } from 'react';
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./ChroniclesComponent-Os_r2IYg.js"),e=`import { Fragment, useEffect, useLayoutEffect, useMemo, useRef, useState, type CSSProperties, type MouseEvent, type PointerEvent, type ReactNode } from 'react';
2
2
  import { CommonComponentProps } from '../props';
3
3
  import { buildColorVars, scalingValue, useScopedStyles } from '../utils';
4
4
  import { useLightboxScrollLock } from '../utils/useLightboxScrollLock';
@@ -5665,6 +5665,12 @@ function getGridTextLeadingVars(
5665
5665
  } as React.CSSProperties;
5666
5666
  }
5667
5667
 
5668
+ const HOVER_ANIM_MS = 400;
5669
+ const HOVER_EASING = 'cubic-bezier(0.25, 0.1, 0.25, 1)';
5670
+ const HOVER_ZOOM = 1.1;
5671
+ const HOVER_ZOOM_INSET = \`\${(((1 - 1 / HOVER_ZOOM) / 2) * 100).toFixed(4)}%\`;
5672
+ const MEDIA_RADIUS_VAR = '--grid-media-radius';
5673
+
5668
5674
  function getCSS(P: string): string {
5669
5675
  return \`
5670
5676
  .\${P}-wrapper {
@@ -5808,6 +5814,31 @@ function getCSS(P: string): string {
5808
5814
  .\${P}-show-text-hover .\${P}-item-inner-hidden:hover .\${P}-item-subtitle {
5809
5815
  opacity: 1;
5810
5816
  }
5817
+ .\${P}-hover-zoom-in .\${P}-item-image,
5818
+ .\${P}-hover-zoom-in .\${P}-item-video {
5819
+ clip-path: inset(0 round var(\${MEDIA_RADIUS_VAR}, 0px));
5820
+ transition: transform \${HOVER_ANIM_MS}ms \${HOVER_EASING}, clip-path \${HOVER_ANIM_MS}ms \${HOVER_EASING};
5821
+ }
5822
+ .\${P}-hover-scale-down .\${P}-item-image,
5823
+ .\${P}-hover-scale-down .\${P}-item-video {
5824
+ transition: transform \${HOVER_ANIM_MS}ms \${HOVER_EASING};
5825
+ }
5826
+ .\${P}-hover-greyscale .\${P}-item-image-wrapper {
5827
+ transition: filter \${HOVER_ANIM_MS}ms \${HOVER_EASING};
5828
+ }
5829
+ @media (hover: hover) {
5830
+ .\${P}-hover-zoom-in .\${P}-item-image-wrapper:has(.\${P}-item-image:hover, .\${P}-item-video:hover) :is(.\${P}-item-image, .\${P}-item-video) {
5831
+ transform: scale(\${HOVER_ZOOM});
5832
+ clip-path: inset(\${HOVER_ZOOM_INSET} round calc(var(\${MEDIA_RADIUS_VAR}, 0px) / \${HOVER_ZOOM}));
5833
+ }
5834
+ .\${P}-hover-scale-down .\${P}-item-image-wrapper:hover .\${P}-item-image,
5835
+ .\${P}-hover-scale-down .\${P}-item-image-wrapper:hover .\${P}-item-video {
5836
+ transform: scale(0.9);
5837
+ }
5838
+ .\${P}-hover-greyscale:has(.\${P}-item-image:hover, .\${P}-item-video:hover) .\${P}-item-image-wrapper:not(:has(.\${P}-item-image:hover, .\${P}-item-video:hover)) {
5839
+ filter: grayscale(1);
5840
+ }
5841
+ }
5811
5842
  .\${P}-type-a .\${P}-item-inner,
5812
5843
  .\${P}-type-a .\${P}-item-inner-hidden,
5813
5844
  .\${P}-type-d .\${P}-item-inner,
@@ -7281,6 +7312,7 @@ export function Grid({ settings, content, isEditor, isPreviewMode, isEditMode, m
7281
7312
  iconMarginRight,
7282
7313
  contentMarginTop,
7283
7314
  showText = 'always',
7315
+ hover = 'none',
7284
7316
  alignEntries = 'off',
7285
7317
  align = 'top',
7286
7318
  } = settings;
@@ -7369,7 +7401,8 @@ export function Grid({ settings, content, isEditor, isPreviewMode, isEditMode, m
7369
7401
 
7370
7402
  const stateClass = activeEvent && activeEvent !== 'default' ? \`\${P}-state-\${activeEvent}\` : '';
7371
7403
  const showTextOnHover = showText === 'on hover' && (!isEditor || isPreviewMode);
7372
- const wrapperStateClasses = \`\${stateClass}\${showTextOnHover ? \` \${P}-show-text-hover\` : ''}\`.trim();
7404
+ const hoverEffectClass = hover !== 'none' && (!isEditor || isPreviewMode) ? \` \${P}-hover-\${hover}\` : '';
7405
+ const wrapperStateClasses = \`\${stateClass}\${showTextOnHover ? \` \${P}-show-text-hover\` : ''}\${hoverEffectClass}\`.trim();
7373
7406
 
7374
7407
  const resEntriesCount = entriesCount === 0 ? Infinity : entriesCount;
7375
7408
 
@@ -7417,6 +7450,9 @@ export function Grid({ settings, content, isEditor, isPreviewMode, isEditMode, m
7417
7450
  const textBoxWidthStyle = \`calc(\${scalingValue(size ?? 0, isEditor)} * (\${textBoxWidth} / 100))\`;
7418
7451
  const controlWidthStyle = scalingValue(size * textBoxWidth / 100, isEditor);
7419
7452
 
7453
+ const imageRadiusStyle = imageBorderRadius
7454
+ ? { borderRadius: imageBorderRadius, [MEDIA_RADIUS_VAR]: imageBorderRadius } as React.CSSProperties
7455
+ : {};
7420
7456
  const imageStyle: React.CSSProperties = isCover
7421
7457
  ? {
7422
7458
  objectFit: 'cover',
@@ -7424,7 +7460,7 @@ export function Grid({ settings, content, isEditor, isPreviewMode, isEditMode, m
7424
7460
  width: '100%',
7425
7461
  height: '100%',
7426
7462
  maxWidth: '100%',
7427
- ...(imageBorderRadius ? { borderRadius: imageBorderRadius } : {}),
7463
+ ...imageRadiusStyle,
7428
7464
  }
7429
7465
  : {
7430
7466
  objectFit: 'contain',
@@ -7432,7 +7468,7 @@ export function Grid({ settings, content, isEditor, isPreviewMode, isEditMode, m
7432
7468
  width: 'auto',
7433
7469
  height: 'auto',
7434
7470
  maxWidth: '100%',
7435
- ...(imageBorderRadius ? { borderRadius: imageBorderRadius } : {}),
7471
+ ...imageRadiusStyle,
7436
7472
  };
7437
7473
 
7438
7474
  const [containerWidth, setContainerWidth] = useState(0);
@@ -7875,6 +7911,7 @@ type GridSettings = {
7875
7911
  direction: 'horizontal' | 'vertical' | 'random',
7876
7912
  transition: 'fade' | 'slide',
7877
7913
  showText: 'always' | 'on hover';
7914
+ hover?: 'none' | 'zoom-in' | 'greyscale' | 'scale-down';
7878
7915
  alignEntries: 'on' | 'off';
7879
7916
  align?: 'top' | 'center' | 'bottom';
7880
7917
  titleMarginTop: number;
@@ -25167,4 +25204,4 @@ export function Waterfall({
25167
25204
  </>
25168
25205
  );
25169
25206
  }
25170
- `,C={[n.BurgerComponent.id]:e,[n.ChroniclesComponent.id]:t,[n.ClickGallerieComponent.id]:i,[n.FAQComponent.id]:o,[n.FormComponent.id]:r,[n.GridComponent.id]:a,[n.HelixComponent.id]:s,[n.HiveComponent.id]:l,[n.LightboxJournalComponent.id]:c,[n.LightboxStripComponent.id]:d,[n.ListComponent.id]:u,[n.MarqueeComponent.id]:g,[n.MarqueeTextComponent.id]:m,[n.MercuryComponent.id]:p,[n.OnelinerFormComponent.id]:h,[n.PretextComponent.id]:f,[n.ScaleComponent.id]:v,[n.SimpleButtonComponent.id]:P,[n.Slider20Component.id]:x,[n.TestimonialGridComponent.id]:b,[n.TestimonialSingleComponent.id]:y,[n.WaterfallComponent.id]:S};exports.componentSources=C;
25207
+ `,w={[n.BurgerComponent.id]:e,[n.ChroniclesComponent.id]:t,[n.ClickGallerieComponent.id]:i,[n.FAQComponent.id]:o,[n.FormComponent.id]:r,[n.GridComponent.id]:a,[n.HelixComponent.id]:s,[n.HiveComponent.id]:l,[n.LightboxJournalComponent.id]:c,[n.LightboxStripComponent.id]:d,[n.ListComponent.id]:u,[n.MarqueeComponent.id]:g,[n.MarqueeTextComponent.id]:m,[n.MercuryComponent.id]:p,[n.OnelinerFormComponent.id]:h,[n.PretextComponent.id]:f,[n.ScaleComponent.id]:v,[n.SimpleButtonComponent.id]:P,[n.Slider20Component.id]:x,[n.TestimonialGridComponent.id]:b,[n.TestimonialSingleComponent.id]:y,[n.WaterfallComponent.id]:S};exports.componentSources=w;
package/dist/sources.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { W as n, b as e, T as t, g as i, f as o, S as r, P as a, O as s, h as l, a as c, M as d, L as u, d as g, e as m, H as p, i as h, G as f, F as v, c as P, C as x, j as b, B as y } from "./ChroniclesComponent-DRf1Xd9_.mjs";
1
+ import { W as n, b as e, T as t, g as i, f as o, S as r, P as a, O as s, h as l, a as c, M as d, L as u, d as g, e as m, H as p, i as h, G as f, F as v, c as P, C as x, j as b, B as y } from "./ChroniclesComponent-D-yEbs9w.mjs";
2
2
  const S = `import { Fragment, useEffect, useLayoutEffect, useMemo, useRef, useState, type CSSProperties, type MouseEvent, type PointerEvent, type ReactNode } from 'react';
3
3
  import { CommonComponentProps } from '../props';
4
4
  import { buildColorVars, scalingValue, useScopedStyles } from '../utils';
@@ -2684,7 +2684,7 @@ export function Burger({
2684
2684
  </div>
2685
2685
  );
2686
2686
  }
2687
- `, C = `import { Fragment, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState, type CSSProperties, type MouseEvent } from 'react';
2687
+ `, w = `import { Fragment, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState, type CSSProperties, type MouseEvent } from 'react';
2688
2688
  import { createPortal } from 'react-dom';
2689
2689
  import cn from 'classnames';
2690
2690
  import { CommonComponentProps } from '../props';
@@ -3698,7 +3698,7 @@ export function Chronicles({
3698
3698
  </>
3699
3699
  );
3700
3700
  }
3701
- `, w = `import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
3701
+ `, C = `import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
3702
3702
  import { CommonComponentProps } from '../props';
3703
3703
  import { LinkWrapper, useScopedStyles, type ContentLink } from '../utils/index';
3704
3704
 
@@ -5666,6 +5666,12 @@ function getGridTextLeadingVars(
5666
5666
  } as React.CSSProperties;
5667
5667
  }
5668
5668
 
5669
+ const HOVER_ANIM_MS = 400;
5670
+ const HOVER_EASING = 'cubic-bezier(0.25, 0.1, 0.25, 1)';
5671
+ const HOVER_ZOOM = 1.1;
5672
+ const HOVER_ZOOM_INSET = \`\${(((1 - 1 / HOVER_ZOOM) / 2) * 100).toFixed(4)}%\`;
5673
+ const MEDIA_RADIUS_VAR = '--grid-media-radius';
5674
+
5669
5675
  function getCSS(P: string): string {
5670
5676
  return \`
5671
5677
  .\${P}-wrapper {
@@ -5809,6 +5815,31 @@ function getCSS(P: string): string {
5809
5815
  .\${P}-show-text-hover .\${P}-item-inner-hidden:hover .\${P}-item-subtitle {
5810
5816
  opacity: 1;
5811
5817
  }
5818
+ .\${P}-hover-zoom-in .\${P}-item-image,
5819
+ .\${P}-hover-zoom-in .\${P}-item-video {
5820
+ clip-path: inset(0 round var(\${MEDIA_RADIUS_VAR}, 0px));
5821
+ transition: transform \${HOVER_ANIM_MS}ms \${HOVER_EASING}, clip-path \${HOVER_ANIM_MS}ms \${HOVER_EASING};
5822
+ }
5823
+ .\${P}-hover-scale-down .\${P}-item-image,
5824
+ .\${P}-hover-scale-down .\${P}-item-video {
5825
+ transition: transform \${HOVER_ANIM_MS}ms \${HOVER_EASING};
5826
+ }
5827
+ .\${P}-hover-greyscale .\${P}-item-image-wrapper {
5828
+ transition: filter \${HOVER_ANIM_MS}ms \${HOVER_EASING};
5829
+ }
5830
+ @media (hover: hover) {
5831
+ .\${P}-hover-zoom-in .\${P}-item-image-wrapper:has(.\${P}-item-image:hover, .\${P}-item-video:hover) :is(.\${P}-item-image, .\${P}-item-video) {
5832
+ transform: scale(\${HOVER_ZOOM});
5833
+ clip-path: inset(\${HOVER_ZOOM_INSET} round calc(var(\${MEDIA_RADIUS_VAR}, 0px) / \${HOVER_ZOOM}));
5834
+ }
5835
+ .\${P}-hover-scale-down .\${P}-item-image-wrapper:hover .\${P}-item-image,
5836
+ .\${P}-hover-scale-down .\${P}-item-image-wrapper:hover .\${P}-item-video {
5837
+ transform: scale(0.9);
5838
+ }
5839
+ .\${P}-hover-greyscale:has(.\${P}-item-image:hover, .\${P}-item-video:hover) .\${P}-item-image-wrapper:not(:has(.\${P}-item-image:hover, .\${P}-item-video:hover)) {
5840
+ filter: grayscale(1);
5841
+ }
5842
+ }
5812
5843
  .\${P}-type-a .\${P}-item-inner,
5813
5844
  .\${P}-type-a .\${P}-item-inner-hidden,
5814
5845
  .\${P}-type-d .\${P}-item-inner,
@@ -7282,6 +7313,7 @@ export function Grid({ settings, content, isEditor, isPreviewMode, isEditMode, m
7282
7313
  iconMarginRight,
7283
7314
  contentMarginTop,
7284
7315
  showText = 'always',
7316
+ hover = 'none',
7285
7317
  alignEntries = 'off',
7286
7318
  align = 'top',
7287
7319
  } = settings;
@@ -7370,7 +7402,8 @@ export function Grid({ settings, content, isEditor, isPreviewMode, isEditMode, m
7370
7402
 
7371
7403
  const stateClass = activeEvent && activeEvent !== 'default' ? \`\${P}-state-\${activeEvent}\` : '';
7372
7404
  const showTextOnHover = showText === 'on hover' && (!isEditor || isPreviewMode);
7373
- const wrapperStateClasses = \`\${stateClass}\${showTextOnHover ? \` \${P}-show-text-hover\` : ''}\`.trim();
7405
+ const hoverEffectClass = hover !== 'none' && (!isEditor || isPreviewMode) ? \` \${P}-hover-\${hover}\` : '';
7406
+ const wrapperStateClasses = \`\${stateClass}\${showTextOnHover ? \` \${P}-show-text-hover\` : ''}\${hoverEffectClass}\`.trim();
7374
7407
 
7375
7408
  const resEntriesCount = entriesCount === 0 ? Infinity : entriesCount;
7376
7409
 
@@ -7418,6 +7451,9 @@ export function Grid({ settings, content, isEditor, isPreviewMode, isEditMode, m
7418
7451
  const textBoxWidthStyle = \`calc(\${scalingValue(size ?? 0, isEditor)} * (\${textBoxWidth} / 100))\`;
7419
7452
  const controlWidthStyle = scalingValue(size * textBoxWidth / 100, isEditor);
7420
7453
 
7454
+ const imageRadiusStyle = imageBorderRadius
7455
+ ? { borderRadius: imageBorderRadius, [MEDIA_RADIUS_VAR]: imageBorderRadius } as React.CSSProperties
7456
+ : {};
7421
7457
  const imageStyle: React.CSSProperties = isCover
7422
7458
  ? {
7423
7459
  objectFit: 'cover',
@@ -7425,7 +7461,7 @@ export function Grid({ settings, content, isEditor, isPreviewMode, isEditMode, m
7425
7461
  width: '100%',
7426
7462
  height: '100%',
7427
7463
  maxWidth: '100%',
7428
- ...(imageBorderRadius ? { borderRadius: imageBorderRadius } : {}),
7464
+ ...imageRadiusStyle,
7429
7465
  }
7430
7466
  : {
7431
7467
  objectFit: 'contain',
@@ -7433,7 +7469,7 @@ export function Grid({ settings, content, isEditor, isPreviewMode, isEditMode, m
7433
7469
  width: 'auto',
7434
7470
  height: 'auto',
7435
7471
  maxWidth: '100%',
7436
- ...(imageBorderRadius ? { borderRadius: imageBorderRadius } : {}),
7472
+ ...imageRadiusStyle,
7437
7473
  };
7438
7474
 
7439
7475
  const [containerWidth, setContainerWidth] = useState(0);
@@ -7876,6 +7912,7 @@ type GridSettings = {
7876
7912
  direction: 'horizontal' | 'vertical' | 'random',
7877
7913
  transition: 'fade' | 'slide',
7878
7914
  showText: 'always' | 'on hover';
7915
+ hover?: 'none' | 'zoom-in' | 'greyscale' | 'scale-down';
7879
7916
  alignEntries: 'on' | 'off';
7880
7917
  align?: 'top' | 'center' | 'bottom';
7881
7918
  titleMarginTop: number;
@@ -25170,8 +25207,8 @@ export function Waterfall({
25170
25207
  }
25171
25208
  `, U = {
25172
25209
  [y.id]: S,
25173
- [b.id]: C,
25174
- [x.id]: w,
25210
+ [b.id]: w,
25211
+ [x.id]: C,
25175
25212
  [P.id]: $,
25176
25213
  [v.id]: I,
25177
25214
  [f.id]: T,
@@ -8,11 +8,6 @@ export type ComponentSize = {
8
8
  export type ComponentDefaultSize = Partial<Record<Breakpoint, ComponentSize>>;
9
9
  export type ComponentNavigationPosition = 'default' | 'stickyTop' | 'switch';
10
10
  export type ComponentDefaultNavigationPosition = Partial<Record<Breakpoint, ComponentNavigationPosition>>;
11
- /**
12
- * How a navigation component is laid out: across the page's width ('full-width'), or placed and sized
13
- * like an item, staying put on the screen ('freeform').
14
- */
15
- export type ComponentNavigationLayout = 'full-width' | 'freeform';
16
11
  export type Component = {
17
12
  element: (props: any) => React.ReactElement;
18
13
  id: string;
@@ -22,8 +17,6 @@ export type Component = {
22
17
  layoutMode?: 'freeform' | 'structured' | 'navigation';
23
18
  defaultSize?: ComponentDefaultSize;
24
19
  defaultNavigationPosition?: ComponentDefaultNavigationPosition;
25
- /** For a `layoutMode: 'navigation'` component; none is 'full-width'. */
26
- navigationLayout?: ComponentNavigationLayout;
27
20
  schema: any;
28
21
  preview?: {
29
22
  type: 'image' | 'video';
@@ -97,9 +97,6 @@ export type ComponentContentProperty = {
97
97
  min?: number;
98
98
  max?: number;
99
99
  default?: unknown;
100
- /** How the field is drawn instead in a row whose `type` is one of these keys, laid over the rest; a display
101
- * with `visible: false` leaves the field out of those rows. */
102
- byRowType?: Record<string, Pick<ComponentContentProperty, 'placeholder' | 'display'>>;
103
100
  };
104
101
  export type ComponentContentSchema = {
105
102
  type: 'array';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/components",
3
- "version": "1.0.115-alpha.1",
3
+ "version": "1.0.115",
4
4
  "description": "Custom components for control editor and public websites.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",