@cntrl-site/components 1.0.118-alpha.2 → 1.0.118-alpha.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.
Files changed (67) hide show
  1. package/dist/{Burger-C3yVbQcq.js → Burger-B4kXX9aY.js} +1 -1
  2. package/dist/{Burger-BkVgNMGU.mjs → Burger-DyORh_vF.mjs} +1 -1
  3. package/dist/{ChroniclesComponent-Ds59v_47.mjs → ChroniclesComponent-DVoJ0kdT.mjs} +442 -512
  4. package/dist/ChroniclesComponent-Nm_yIRmr.js +1 -0
  5. package/dist/Components/Grid/Grid.d.ts +7 -25
  6. package/dist/Components/PopupMenu/PopupMenu.d.ts +73 -0
  7. package/dist/Components/PopupMenu/PopupMenuComponent.d.ts +594 -0
  8. package/dist/Components/PopupMenu/popupMenuLayout.d.ts +203 -0
  9. package/dist/Components/PopupMenu/popupMenuSnap.d.ts +61 -0
  10. package/dist/Components/helpers/SvgImage/loadSvgMaskUrl.d.ts +7 -0
  11. package/dist/{ControlSlider-DqKfaKMG.mjs → ControlSlider-3w-bHQEg.mjs} +1 -1
  12. package/dist/{ControlSlider-C8ckUIDm.js → ControlSlider-DB4nbVLT.js} +1 -1
  13. package/dist/{FAQ-DLh63Utr.js → FAQ-7HEkaoU6.js} +1 -1
  14. package/dist/{FAQ-CJHCMSBa.mjs → FAQ-GmiwRdFq.mjs} +1 -1
  15. package/dist/Grid-BuRdth9A.mjs +1622 -0
  16. package/dist/Grid-tqSSYh2-.js +408 -0
  17. package/dist/{Hive-CzabuuCc.js → Hive-34KvKNsa.js} +1 -1
  18. package/dist/{Hive-DyxYd5eg.mjs → Hive-7xHXyMM1.mjs} +1 -1
  19. package/dist/{HiveLightboxTitles-DhEeFKWs.mjs → HiveLightboxTitles-BCoL46-V.mjs} +1 -1
  20. package/dist/{HiveLightboxTitles-DlyptAaK.js → HiveLightboxTitles-DEeyQGcf.js} +1 -1
  21. package/dist/{Lightbox-DZckgBzK.js → Lightbox-Cb7lyaNt.js} +1 -1
  22. package/dist/{Lightbox-BY99NS14.mjs → Lightbox-DzPqgKP4.mjs} +1 -1
  23. package/dist/{LightboxJournal-Bf_rZzmz.js → LightboxJournal-B-vul_be.js} +1 -1
  24. package/dist/{LightboxJournal-BDUs6T0B.mjs → LightboxJournal-DisD2DLv.mjs} +1 -1
  25. package/dist/{LightboxStrip-RA4ABUC-.js → LightboxStrip-YDyEPEb6.js} +1 -1
  26. package/dist/{LightboxStrip-Cuhb2fIR.mjs → LightboxStrip-wCHUhAqN.mjs} +1 -1
  27. package/dist/{Mercury-B-s2Kvuq.js → Mercury-BmhtFYOw.js} +1 -1
  28. package/dist/{Mercury-CCW0Es-s.mjs → Mercury-Q788wrYQ.mjs} +1 -1
  29. package/dist/{OnelinerForm-C2Y_XMCY.js → OnelinerForm-CUmY-bXL.js} +1 -1
  30. package/dist/{OnelinerForm-BEu7_sho.mjs → OnelinerForm-D8WIB9Qy.mjs} +1 -1
  31. package/dist/PopupMenu-CYdDyzEt.mjs +1372 -0
  32. package/dist/PopupMenu-Di1fHgho.js +409 -0
  33. package/dist/{SimpleButton-C-o2W9bS.mjs → SimpleButton-DTpzfmb6.mjs} +1 -1
  34. package/dist/{SimpleButton-nGEcO2gB.js → SimpleButton-DtaCYa3y.js} +1 -1
  35. package/dist/{Slider20-DUi6qwnd.mjs → Slider20-CKngROrc.mjs} +1 -1
  36. package/dist/{Slider20-BOmjDRf2.js → Slider20-q0iGgnE3.js} +1 -1
  37. package/dist/SvgImage-CwRq9-ec.mjs +56 -0
  38. package/dist/SvgImage-_QN8ngad.js +1 -0
  39. package/dist/{TestimonialSingle-DrnyReim.mjs → TestimonialSingle-Bax71Hyo.mjs} +1 -1
  40. package/dist/{TestimonialSingle-BORQom3u.js → TestimonialSingle-CpEUendN.js} +1 -1
  41. package/dist/{Waterfall-DII4-WV5.js → Waterfall-B9YWMhrg.js} +1 -1
  42. package/dist/{Waterfall-3kKioKh2.mjs → Waterfall-znaoynn5.mjs} +1 -1
  43. package/dist/components-BYoTPJk3.js +1 -0
  44. package/dist/{components-MVf3iei3.mjs → components-eK82xypT.mjs} +653 -30
  45. package/dist/elements.js +1 -1
  46. package/dist/elements.mjs +24 -24
  47. package/dist/elements.node.js +1 -1
  48. package/dist/elements.node.mjs +1 -1
  49. package/dist/index.d.ts +3 -1
  50. package/dist/index.js +1 -1
  51. package/dist/index.mjs +63 -36
  52. package/dist/loadSvgMaskUrl-B6kHUyof.js +1 -0
  53. package/dist/loadSvgMaskUrl-DUhCVvpl.mjs +39 -0
  54. package/dist/sources.js +48 -250
  55. package/dist/sources.mjs +87 -290
  56. package/dist/types/Component.d.ts +7 -0
  57. package/dist/types/SchemaV1.d.ts +3 -0
  58. package/package.json +1 -1
  59. package/dist/ChroniclesComponent--pzhQXVD.js +0 -1
  60. package/dist/Components/Grid/CustomGridComponent.d.ts +0 -41
  61. package/dist/Grid-B0NOfgEm.mjs +0 -1713
  62. package/dist/Grid-DNaBgqZo.js +0 -415
  63. package/dist/SvgImage-B5mR9y6q.mjs +0 -51
  64. package/dist/SvgImage-DFlmxAoL.js +0 -1
  65. package/dist/components-tuVRZ0WY.js +0 -1
  66. package/dist/loadSvgMaskUrl-DfF7ay6h.js +0 -1
  67. package/dist/loadSvgMaskUrl-xHgGYgPe.mjs +0 -20
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,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-Dj1gvNjE.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),"custom-grid":()=>import(/* webpackFetchPriority: "high" */ "./Grid-DNaBgqZo.js").then(e=>e.Grid),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-DNaBgqZo.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-Bf_rZzmz.js").then(e=>e.LightboxJournal),"lightbox-strip":()=>import(/* webpackFetchPriority: "high" */ "./LightboxStrip-RA4ABUC-.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;
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-Dj1gvNjE.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-tqSSYh2-.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-B-vul_be.js").then(e=>e.LightboxJournal),"lightbox-strip":()=>import(/* webpackFetchPriority: "high" */ "./LightboxStrip-YDyEPEb6.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-Di1fHgho.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;
package/dist/elements.mjs CHANGED
@@ -1,32 +1,32 @@
1
1
  const i = {
2
- "basic-burger": () => import(/* webpackFetchPriority: "high" */ "./Burger-BkVgNMGU.mjs").then((e) => e.Burger),
2
+ "basic-burger": () => import(/* webpackFetchPriority: "high" */ "./Burger-DyORh_vF.mjs").then((e) => e.Burger),
3
3
  chronicles: () => import(/* webpackFetchPriority: "high" */ "./Chronicles-BNvvaFYY.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-DqKfaKMG.mjs").then((e) => e.ControlSlider),
6
- "custom-grid": () => import(/* webpackFetchPriority: "high" */ "./Grid-B0NOfgEm.mjs").then((e) => e.Grid),
7
- faq: () => import(/* webpackFetchPriority: "high" */ "./FAQ-CJHCMSBa.mjs").then((e) => e.FAQ),
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),
8
7
  form: () => import(/* webpackFetchPriority: "high" */ "./Form-BX5_41nb.mjs").then((e) => e.Form),
9
- grid: () => import(/* webpackFetchPriority: "high" */ "./Grid-B0NOfgEm.mjs").then((e) => e.Grid),
8
+ grid: () => import(/* webpackFetchPriority: "high" */ "./Grid-BuRdth9A.mjs").then((e) => e.Grid),
10
9
  helix: () => import(/* webpackFetchPriority: "high" */ "./Helix-CidI3ucE.mjs").then((e) => e.Helix),
11
- hive: () => import(/* webpackFetchPriority: "high" */ "./Hive-DyxYd5eg.mjs").then((e) => e.Hive),
10
+ hive: () => import(/* webpackFetchPriority: "high" */ "./Hive-7xHXyMM1.mjs").then((e) => e.Hive),
12
11
  "control-image-reveal": () => import(/* webpackFetchPriority: "high" */ "./ImageRevealSlider-DifEXySR.mjs").then((e) => e.ImageRevealSlider),
13
- lightbox: () => import(/* webpackFetchPriority: "high" */ "./Lightbox-BY99NS14.mjs").then((e) => e.LightboxGallery),
14
- "lightbox-journal": () => import(/* webpackFetchPriority: "high" */ "./LightboxJournal-BDUs6T0B.mjs").then((e) => e.LightboxJournal),
15
- "lightbox-strip": () => import(/* webpackFetchPriority: "high" */ "./LightboxStrip-Cuhb2fIR.mjs").then((e) => e.LightboxStrip),
12
+ lightbox: () => import(/* webpackFetchPriority: "high" */ "./Lightbox-DzPqgKP4.mjs").then((e) => e.LightboxGallery),
13
+ "lightbox-journal": () => import(/* webpackFetchPriority: "high" */ "./LightboxJournal-DisD2DLv.mjs").then((e) => e.LightboxJournal),
14
+ "lightbox-strip": () => import(/* webpackFetchPriority: "high" */ "./LightboxStrip-wCHUhAqN.mjs").then((e) => e.LightboxStrip),
16
15
  list: () => import(/* webpackFetchPriority: "high" */ "./List-Bh_-l9vD.mjs").then((e) => e.List),
17
16
  marquee: () => import(/* webpackFetchPriority: "high" */ "./Marquee-_xVuf-zp.mjs").then((e) => e.Marquee),
18
17
  "marquee-text": () => import(/* webpackFetchPriority: "high" */ "./MarqueeText-C2E6UDsb.mjs").then((e) => e.MarqueeText),
19
- mercury: () => import(/* webpackFetchPriority: "high" */ "./Mercury-CCW0Es-s.mjs").then((e) => e.Mercury),
20
- "oneliner-form": () => import(/* webpackFetchPriority: "high" */ "./OnelinerForm-BEu7_sho.mjs").then((e) => e.OnelinerForm),
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-CYdDyzEt.mjs").then((e) => e.A).then((e) => e.PopupMenu),
21
21
  pretext: () => import(/* webpackFetchPriority: "high" */ "./Pretext-10CcyP1E.mjs").then((e) => e.Pretext),
22
22
  scale: () => import(/* webpackFetchPriority: "high" */ "./Scale-TnkWtRrs.mjs").then((e) => e.Scale),
23
- "simple-button": () => import(/* webpackFetchPriority: "high" */ "./SimpleButton-C-o2W9bS.mjs").then((e) => e.SimpleButton),
24
- "slider-2-0": () => import(/* webpackFetchPriority: "high" */ "./Slider20-DUi6qwnd.mjs").then((e) => e.Slider20),
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),
25
25
  testimonials: () => import(/* webpackFetchPriority: "high" */ "./TestimonialGrid-C-8IDzWu.mjs").then((e) => e.TestimonialGrid),
26
- "testimonial-single": () => import(/* webpackFetchPriority: "high" */ "./TestimonialSingle-DrnyReim.mjs").then((e) => e.TestimonialSingle),
27
- waterfall: () => import(/* webpackFetchPriority: "high" */ "./Waterfall-3kKioKh2.mjs").then((e) => e.Waterfall)
28
- }, p = Object.keys(i), m = 3, a = 2e3, l = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
29
- function s(e) {
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) {
30
30
  return Object.prototype.hasOwnProperty.call(i, e);
31
31
  }
32
32
  function u(e) {
@@ -36,11 +36,11 @@ function c(e) {
36
36
  var t;
37
37
  return (((t = o.get(e)) == null ? void 0 : t.failures) ?? 0) > 0;
38
38
  }
39
- const h = (e) => !e.loading && e.failures > 0 && e.failures < m && Date.now() >= e.retryAt;
40
- function g(e) {
41
- if (!s(e)) return Promise.resolve(void 0);
39
+ const s = (e) => !e.loading && e.failures > 0 && e.failures < m && Date.now() >= e.retryAt;
40
+ function f(e) {
41
+ if (!p(e)) return Promise.resolve(void 0);
42
42
  const t = o.get(e);
43
- if (t && !h(t)) return t.request;
43
+ if (t && !s(t)) return t.request;
44
44
  const r = {
45
45
  loading: !0,
46
46
  failures: (t == null ? void 0 : t.failures) ?? 0,
@@ -57,9 +57,9 @@ function g(e) {
57
57
  return o.set(e, r), r.request;
58
58
  }
59
59
  export {
60
- p as componentElementIds,
60
+ h as componentElementIds,
61
61
  u as getComponentElement,
62
- s as hasComponentElement,
62
+ p as hasComponentElement,
63
63
  c as hasComponentElementFailed,
64
- g as loadComponentElement
64
+ f as loadComponentElement
65
65
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components-tuVRZ0WY.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-BYoTPJk3.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-MVf3iei3.mjs";
1
+ import { c as t } from "./components-eK82xypT.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 ComponentSize, isSchemaV1 } from './types/Component';
1
+ export { type Breakpoint, type Component, type ComponentDefaultSize, type ComponentDefaultNavigationPosition, type ComponentNavigationPosition, type ComponentNavigationLayout, type ComponentSize, isSchemaV1 } from './types/Component';
2
2
  export type { ComponentSchemaV1, ComponentContentSchema, ComponentContentSettings, ComponentContentProperty, ContentKey, ContentFormat, 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,3 +6,5 @@ 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, defaultPopupMenuLayoutRules, DEFAULT_POPUP_MENU_HEIGHT, getDefaultPopupMenuPlacement, getPopupMenuColumnEdges, getPopupMenuColumnWidth, getPopupMenuColumnsPlacement, getPopupMenuGridWidth, normalizePopupMenuLayout, toPopupMenuPlacement, } from './Components/PopupMenu/popupMenuLayout';
10
+ export type { PopupMenuAlign, PopupMenuBlockType, PopupMenuColumnPlacement, PopupMenuGrid, PopupMenuGridLayout, PopupMenuGridSettings, PopupMenuSides, PopupMenuSidesSetting, PopupMenuLayout, PopupMenuLayoutRules, PopupMenuMeasure, PopupMenuPlacement, PopupMenuSavedLayout } from './Components/PopupMenu/popupMenuLayout';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./components-tuVRZ0WY.js"),s=require("./panelAvailability-DnOe0rQ4.js");function p(e){return e.type==="object"&&e.version===1}function o(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(l=>({media:[o(l),o("")]}));case"media-list-input":return t.map(o);case"media-input":return t.length>0?o(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,n){var t;return n==="year"?((t=e.match(/\d{4}/))==null?void 0:t[0])??e:e}function g(e,{pageId:n,slug:t}){return e==="link-input"?{type:"page",value:n,target:"self"}:`/${t}`}function b(e){var t;const n=((t=e==null?void 0:e.items)==null?void 0:t.properties)??{};return Object.entries(n).map(([l,i])=>{var c;const u=(c=i.display)==null?void 0:c.type;return{fieldKey:l,...i.contentKey!==void 0?{contentKey:i.contentKey}:{},fromEntry:a=>d(u,{...a,text:m(a.text,i.contentFormat)}),toPage:a=>g(u,a)}})}const f=[r.ControlSliderComponent.id,r.ControlImageRevealSliderComponent.id,r.LightboxComponent.id];exports.components=r.components;exports.getAvailableStatePanels=s.getAvailableStatePanels;exports.getUnavailableStates=s.getUnavailableStates;exports.isPanelAvailable=s.isPanelAvailable;exports.getPostFieldBindings=b;exports.isSchemaV1=p;exports.nonForkableComponentIds=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./components-BYoTPJk3.js"),r=require("./panelAvailability-DnOe0rQ4.js"),e=require("./PopupMenu-Di1fHgho.js");function M(t){return t.type==="object"&&t.version===1}function a(t){return{assetId:t,name:"",type:"image",objectFit:"cover"}}function g(t,{text:u,images:n}){switch(t){case"media-pair-list-input":return n.map(P=>({media:[a(P),a("")]}));case"media-list-input":return n.map(a);case"media-input":return n.length>0?a(n[0]):{assetId:"",name:""};case"rich-text":return[{type:"paragraph",children:[{text:u}]}];case"link-input":return{type:"url",value:"",target:"self"};default:return u}}function d(t,u){var n;return u==="year"?((n=t.match(/\d{4}/))==null?void 0:n[0])??t:t}function c(t,{pageId:u,slug:n}){return t==="link-input"?{type:"page",value:u,target:"self"}:`/${n}`}function m(t){var n;const u=((n=t==null?void 0:t.items)==null?void 0:n.properties)??{};return Object.entries(u).map(([P,p])=>{var s;const l=(s=p.display)==null?void 0:s.type;return{fieldKey:P,...p.contentKey!==void 0?{contentKey:p.contentKey}:{},fromEntry:i=>g(l,{...i,text:d(i.text,p.contentFormat)}),toPage:i=>c(l,i)}})}const U=[o.ControlSliderComponent.id,o.ControlImageRevealSliderComponent.id,o.LightboxComponent.id,o.PopupMenuComponent.id];exports.components=o.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.getDefaultPopupMenuPlacement=e.getDefaultPopupMenuPlacement;exports.getPopupMenuColumnEdges=e.getPopupMenuColumnEdges;exports.getPopupMenuColumnWidth=e.getPopupMenuColumnWidth;exports.getPopupMenuColumnsPlacement=e.getPopupMenuColumnsPlacement;exports.getPopupMenuGrid=e.getPopupMenuGrid;exports.getPopupMenuGridWidth=e.getPopupMenuGridWidth;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.normalizePopupMenuLayout=e.normalizePopupMenuLayout;exports.resizePopupMenuBlock=e.resizePopupMenuBlock;exports.settlePopupMenuLayout=e.settlePopupMenuLayout;exports.snapPopupMenuHeight=e.snapPopupMenuHeight;exports.snapPopupMenuTop=e.snapPopupMenuTop;exports.toPopupMenuPlacement=e.toPopupMenuPlacement;exports.getPostFieldBindings=m;exports.isSchemaV1=M;exports.nonForkableComponentIds=U;
package/dist/index.mjs CHANGED
@@ -1,20 +1,21 @@
1
- import { C as u, a as p, L as c } from "./components-MVf3iei3.mjs";
2
- import { c as P } from "./components-MVf3iei3.mjs";
3
- import { g as F, a as h, i as j } from "./panelAvailability-D179wwJx.mjs";
4
- function y(t) {
5
- return t.type === "object" && t.version === 1;
1
+ import { C as r, a as P, L as l, P as d } from "./components-eK82xypT.mjs";
2
+ import { c as v } from "./components-eK82xypT.mjs";
3
+ import { g as L, a as h, i as b } from "./panelAvailability-D179wwJx.mjs";
4
+ import { k as I, n as S, D as A, P as F, l as G, f as O, g as k, o as x, p as D, q as H, t as N, j as R, u as j, c as W, d as B, h as K, e as w, i as z, m as V, v as q, r as $, s as J, b as Q, a as X, w as Y } from "./PopupMenu-CYdDyzEt.mjs";
5
+ function f(e) {
6
+ return e.type === "object" && e.version === 1;
6
7
  }
7
- function i(t) {
8
- return { assetId: t, name: "", type: "image", objectFit: "cover" };
8
+ function u(e) {
9
+ return { assetId: e, name: "", type: "image", objectFit: "cover" };
9
10
  }
10
- function d(t, { text: n, images: e }) {
11
- switch (t) {
11
+ function m(e, { text: n, images: t }) {
12
+ switch (e) {
12
13
  case "media-pair-list-input":
13
- return e.map((o) => ({ media: [i(o), i("")] }));
14
+ return t.map((p) => ({ media: [u(p), u("")] }));
14
15
  case "media-list-input":
15
- return e.map(i);
16
+ return t.map(u);
16
17
  case "media-input":
17
- return e.length > 0 ? i(e[0]) : { assetId: "", name: "" };
18
+ return t.length > 0 ? u(t[0]) : { assetId: "", name: "" };
18
19
  case "rich-text":
19
20
  return [{ type: "paragraph", children: [{ text: n }] }];
20
21
  case "link-input":
@@ -23,38 +24,64 @@ function d(t, { text: n, images: e }) {
23
24
  return n;
24
25
  }
25
26
  }
26
- function m(t, n) {
27
- var e;
28
- return n === "year" ? ((e = t.match(/\d{4}/)) == null ? void 0 : e[0]) ?? t : t;
27
+ function c(e, n) {
28
+ var t;
29
+ return n === "year" ? ((t = e.match(/\d{4}/)) == null ? void 0 : t[0]) ?? e : e;
29
30
  }
30
- function f(t, { pageId: n, slug: e }) {
31
- return t === "link-input" ? { type: "page", value: n, target: "self" } : `/${e}`;
31
+ function g(e, { pageId: n, slug: t }) {
32
+ return e === "link-input" ? { type: "page", value: n, target: "self" } : `/${t}`;
32
33
  }
33
- function v(t) {
34
- var e;
35
- const n = ((e = t == null ? void 0 : t.items) == null ? void 0 : e.properties) ?? {};
36
- return Object.entries(n).map(([o, r]) => {
34
+ function y(e) {
35
+ var t;
36
+ const n = ((t = e == null ? void 0 : e.items) == null ? void 0 : t.properties) ?? {};
37
+ return Object.entries(n).map(([p, a]) => {
37
38
  var s;
38
- const l = (s = r.display) == null ? void 0 : s.type;
39
+ const i = (s = a.display) == null ? void 0 : s.type;
39
40
  return {
40
- fieldKey: o,
41
- ...r.contentKey !== void 0 ? { contentKey: r.contentKey } : {},
42
- fromEntry: (a) => d(l, { ...a, text: m(a.text, r.contentFormat) }),
43
- toPage: (a) => f(l, a)
41
+ fieldKey: p,
42
+ ...a.contentKey !== void 0 ? { contentKey: a.contentKey } : {},
43
+ fromEntry: (o) => m(i, { ...o, text: c(o.text, a.contentFormat) }),
44
+ toPage: (o) => g(i, o)
44
45
  };
45
46
  });
46
47
  }
47
- const b = [
48
- u.id,
49
- p.id,
50
- c.id
48
+ const E = [
49
+ r.id,
50
+ P.id,
51
+ l.id,
52
+ d.id
51
53
  ];
52
54
  export {
53
- P as components,
54
- F as getAvailableStatePanels,
55
- v as getPostFieldBindings,
55
+ I as DEFAULT_POPUP_MENU_GRID,
56
+ S as DEFAULT_POPUP_MENU_HEIGHT,
57
+ A as DEFAULT_POPUP_MENU_VIEWPORT_RATIO,
58
+ F as POPUP_MENU_ALIGNS,
59
+ v as components,
60
+ G as defaultPopupMenuLayoutRules,
61
+ O as fitPopupMenuLayoutToGrid,
62
+ k as generatePopupMenuLayout,
63
+ L as getAvailableStatePanels,
64
+ x as getDefaultPopupMenuPlacement,
65
+ D as getPopupMenuColumnEdges,
66
+ H as getPopupMenuColumnWidth,
67
+ N as getPopupMenuColumnsPlacement,
68
+ R as getPopupMenuGrid,
69
+ j as getPopupMenuGridWidth,
70
+ W as getPopupMenuHeight,
71
+ B as getPopupMenuHeightPercent,
72
+ K as getPopupMenuSides,
73
+ w as getPopupMenuWidth,
74
+ y as getPostFieldBindings,
56
75
  h as getUnavailableStates,
57
- j as isPanelAvailable,
58
- y as isSchemaV1,
59
- b as nonForkableComponentIds
76
+ b as isPanelAvailable,
77
+ z as isSamePopupMenuGrid,
78
+ f as isSchemaV1,
79
+ V as movePopupMenuBlock,
80
+ E as nonForkableComponentIds,
81
+ q as normalizePopupMenuLayout,
82
+ $ as resizePopupMenuBlock,
83
+ J as settlePopupMenuLayout,
84
+ Q as snapPopupMenuHeight,
85
+ X as snapPopupMenuTop,
86
+ Y as toPopupMenuPlacement
60
87
  };
@@ -0,0 +1 @@
1
+ "use strict";const a=new Map,i=new Map;function r(t){return t.startsWith("data:")||t.startsWith("blob:")}function c(t){return/^data:image\/svg\+xml[;,]/i.test(t.trim())}async function o(t){const e=t.type.toLowerCase();if(e.startsWith("image/svg+xml"))return!0;if(e.startsWith("image/")||e.startsWith("video/"))return!1;const s=(await t.slice(0,1024).text()).trimStart().toLowerCase();return s.startsWith("<svg")||s.startsWith("<?xml")&&s.includes("<svg")}function h(t){if(t.startsWith("data:"))return Promise.resolve(c(t));const e=i.get(t);if(e)return e;const s=fetch(t).then(n=>n.blob()).then(o).catch(()=>!1);return i.set(t,s),s}function g(t){if(r(t))return Promise.resolve(t);const e=a.get(t);if(e)return e;const s=fetch(t,{mode:"cors",cache:"reload"}).then(n=>{if(!n.ok)throw new Error(String(n.status));return n.blob()}).then(n=>URL.createObjectURL(n)).catch(n=>{throw a.delete(t),n});return a.set(t,s),s}exports.isInlineMaskUrl=r;exports.isInlineSvgUrl=h;exports.isSvgDataUrl=c;exports.loadSvgMaskUrl=g;
@@ -0,0 +1,39 @@
1
+ const n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
2
+ function i(t) {
3
+ return t.startsWith("data:") || t.startsWith("blob:");
4
+ }
5
+ function c(t) {
6
+ return /^data:image\/svg\+xml[;,]/i.test(t.trim());
7
+ }
8
+ async function o(t) {
9
+ const e = t.type.toLowerCase();
10
+ if (e.startsWith("image/svg+xml")) return !0;
11
+ if (e.startsWith("image/") || e.startsWith("video/")) return !1;
12
+ const s = (await t.slice(0, 1024).text()).trimStart().toLowerCase();
13
+ return s.startsWith("<svg") || s.startsWith("<?xml") && s.includes("<svg");
14
+ }
15
+ function h(t) {
16
+ if (t.startsWith("data:")) return Promise.resolve(c(t));
17
+ const e = r.get(t);
18
+ if (e) return e;
19
+ const s = fetch(t).then((a) => a.blob()).then(o).catch(() => !1);
20
+ return r.set(t, s), s;
21
+ }
22
+ function g(t) {
23
+ if (i(t)) return Promise.resolve(t);
24
+ const e = n.get(t);
25
+ if (e) return e;
26
+ const s = fetch(t, { mode: "cors", cache: "reload" }).then((a) => {
27
+ if (!a.ok) throw new Error(String(a.status));
28
+ return a.blob();
29
+ }).then((a) => URL.createObjectURL(a)).catch((a) => {
30
+ throw n.delete(t), a;
31
+ });
32
+ return n.set(t, s), s;
33
+ }
34
+ export {
35
+ c as a,
36
+ h as b,
37
+ i,
38
+ g as l
39
+ };