@cntrl-site/components 1.0.106-alpha.0 → 1.0.107-alpha.1

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 (92) hide show
  1. package/dist/ArchivePopup-DMpGP8r2.js +176 -0
  2. package/dist/ArchivePopup-X4EtTAyA.mjs +694 -0
  3. package/dist/ArchivePopupComponent-BTniPIfi.js +1 -0
  4. package/dist/{PretextComponent-j-OsRZTx.mjs → ArchivePopupComponent-GgAT2Avz.mjs} +954 -479
  5. package/dist/ClickGallerie-CYQMgrIr.js +36 -0
  6. package/dist/ClickGallerie-o2U6oyOF.mjs +272 -0
  7. package/dist/Components/ArchivePopup/ArchivePopup.d.ts +154 -0
  8. package/dist/Components/ArchivePopup/ArchivePopupComponent.d.ts +288 -0
  9. package/dist/Components/ClickGallerie/ClickGallerie.d.ts +2 -1
  10. package/dist/Components/Helix/Helix.d.ts +4 -1
  11. package/dist/Components/Hive/Hive.d.ts +4 -1
  12. package/dist/Components/ImageRevealSlider/ImageRevealSlider.d.ts +2 -1
  13. package/dist/Components/List/List.d.ts +6 -2
  14. package/dist/Components/Marquee/Marquee.d.ts +6 -2
  15. package/dist/Components/MarqueeText/MarqueeText.d.ts +2 -1
  16. package/dist/Components/Mercury/Mercury.d.ts +4 -1
  17. package/dist/Components/Waterfall/WaterfallLightbox.d.ts +4 -1
  18. package/dist/Components/utils/EmbedMediaFrame.d.ts +27 -0
  19. package/dist/Components/utils/LinkWrapper.d.ts +16 -0
  20. package/dist/Components/utils/embedMedia.d.ts +40 -0
  21. package/dist/Components/utils/index.d.ts +6 -0
  22. package/dist/{ControlSlider-SiOt22l_.js → ControlSlider-Kkec-i14.js} +1 -1
  23. package/dist/{ControlSlider-pZv7H6BU.mjs → ControlSlider-LcZmviGX.mjs} +1 -1
  24. package/dist/EmbedMediaFrame-DsOTKE4i.js +1 -0
  25. package/dist/EmbedMediaFrame-DwHeOAy5.mjs +164 -0
  26. package/dist/{FAQ-C7823fyi.js → FAQ-BxhMo7T8.js} +1 -1
  27. package/dist/{FAQ-CZ39u4m8.mjs → FAQ-CdwSft5p.mjs} +1 -1
  28. package/dist/Grid-CFHTP3mb.js +378 -0
  29. package/dist/Grid-e-gLfsji.mjs +1590 -0
  30. package/dist/Helix-BpLo9FD3.js +43 -0
  31. package/dist/Helix-CidI3ucE.mjs +324 -0
  32. package/dist/{Hive-D6-R6TwM.mjs → Hive-BsmFHk2i.mjs} +505 -475
  33. package/dist/Hive-D1j6wZpV.js +321 -0
  34. package/dist/ImageRevealSlider-BuukTGAK.js +1 -0
  35. package/dist/{ImageRevealSlider-BdFGyVEP.mjs → ImageRevealSlider-Df9sygk9.mjs} +63 -70
  36. package/dist/{Lightbox-eP9qAZzL.mjs → Lightbox-C_fXsfdz.mjs} +1 -1
  37. package/dist/{Lightbox-CIss_nOG.js → Lightbox-DaunVrkp.js} +1 -1
  38. package/dist/LinkWrapper-Ca84iPtg.js +1 -0
  39. package/dist/LinkWrapper-DZs9hlOn.mjs +13 -0
  40. package/dist/{List-DW7fyJbf.mjs → List-Bh_-l9vD.mjs} +532 -520
  41. package/dist/List-DVvpQ24J.js +377 -0
  42. package/dist/Marquee-DByooiWP.mjs +578 -0
  43. package/dist/Marquee-DfIP-tIN.js +133 -0
  44. package/dist/{MarqueeText-Rzt2fJYt.mjs → MarqueeText-D6FNCe6P.mjs} +115 -114
  45. package/dist/MarqueeText-DsUiV6Zv.js +132 -0
  46. package/dist/Mercury-B-s2Kvuq.js +267 -0
  47. package/dist/Mercury-CCW0Es-s.mjs +1700 -0
  48. package/dist/{RichTextRenderer-B6WtTYlR.mjs → RichTextRenderer-BptwNpbJ.mjs} +10 -9
  49. package/dist/RichTextRenderer-K90Dd7pt.js +1 -0
  50. package/dist/{Slider20-Dm8BeCli.mjs → Slider20-CCzixTiN.mjs} +1 -1
  51. package/dist/{Slider20-C9o2REDl.js → Slider20-fMVeRfgx.js} +1 -1
  52. package/dist/{TestimonialGrid-CPu4qQ6B.mjs → TestimonialGrid-CbsVxSn9.mjs} +1 -1
  53. package/dist/{TestimonialGrid-D4ieiz9e.js → TestimonialGrid-CiCagfBU.js} +1 -1
  54. package/dist/{TestimonialSingle-DLdnAVF7.mjs → TestimonialSingle-BVm3Amrl.mjs} +1 -1
  55. package/dist/{TestimonialSingle-CVu15ZtV.js → TestimonialSingle-BWXynGjv.js} +1 -1
  56. package/dist/Waterfall-3kKioKh2.mjs +1432 -0
  57. package/dist/Waterfall-DII4-WV5.js +288 -0
  58. package/dist/{components-D2LyuDm-.mjs → components-DKuQ8PUa.mjs} +19 -18
  59. package/dist/components-SEwSqFrQ.js +1 -0
  60. package/dist/content/postFieldBindings.d.ts +29 -0
  61. package/dist/elements.js +1 -1
  62. package/dist/elements.mjs +22 -21
  63. package/dist/elements.node.js +1 -1
  64. package/dist/elements.node.mjs +1 -1
  65. package/dist/index.d.ts +3 -1
  66. package/dist/index.js +1 -1
  67. package/dist/index.mjs +52 -15
  68. package/dist/sources.js +1331 -233
  69. package/dist/sources.mjs +1355 -256
  70. package/dist/types/SchemaV1.d.ts +53 -1
  71. package/dist/utils.js +1 -1
  72. package/dist/utils.mjs +30 -20
  73. package/package.json +1 -1
  74. package/dist/ClickGallerie-D7g093HX.js +0 -36
  75. package/dist/ClickGallerie-QSOQjSdv.mjs +0 -271
  76. package/dist/Grid-BBpdl60K.js +0 -374
  77. package/dist/Grid-DS53S_gA.mjs +0 -1576
  78. package/dist/Helix-BPn9V1sg.mjs +0 -315
  79. package/dist/Helix-DcgsCc4D.js +0 -43
  80. package/dist/Hive-n8Fz-j3o.js +0 -321
  81. package/dist/ImageRevealSlider-BBWtFjUF.js +0 -1
  82. package/dist/List-C32WImI3.js +0 -377
  83. package/dist/Marquee-DOIRRCu4.js +0 -133
  84. package/dist/Marquee-O_PDwlIb.mjs +0 -564
  85. package/dist/MarqueeText-DkaO2lQ5.js +0 -132
  86. package/dist/Mercury-C9D10TTT.mjs +0 -1702
  87. package/dist/Mercury-DynO-NxY.js +0 -267
  88. package/dist/PretextComponent-BnsS2zJ6.js +0 -1
  89. package/dist/RichTextRenderer-CIy6yI8U.js +0 -1
  90. package/dist/Waterfall-DC2WQ3GT.js +0 -287
  91. package/dist/Waterfall-Yud2VR62.mjs +0 -1404
  92. package/dist/components-B9Vdjf0w.js +0 -1
package/dist/elements.mjs CHANGED
@@ -1,30 +1,31 @@
1
1
  const i = {
2
+ "archive-popup": () => import(/* webpackFetchPriority: "high" */ "./ArchivePopup-X4EtTAyA.mjs").then((e) => e.ArchivePopup),
2
3
  "basic-burger": () => import(/* webpackFetchPriority: "high" */ "./Burger-EMSn7TPB.mjs").then((e) => e.Burger),
3
- "click-gallerie": () => import(/* webpackFetchPriority: "high" */ "./ClickGallerie-QSOQjSdv.mjs").then((e) => e.ClickGallerie),
4
- "control-slider": () => import(/* webpackFetchPriority: "high" */ "./ControlSlider-pZv7H6BU.mjs").then((e) => e.ControlSlider),
5
- faq: () => import(/* webpackFetchPriority: "high" */ "./FAQ-CZ39u4m8.mjs").then((e) => e.FAQ),
4
+ "click-gallerie": () => import(/* webpackFetchPriority: "high" */ "./ClickGallerie-o2U6oyOF.mjs").then((e) => e.ClickGallerie),
5
+ "control-slider": () => import(/* webpackFetchPriority: "high" */ "./ControlSlider-LcZmviGX.mjs").then((e) => e.ControlSlider),
6
+ faq: () => import(/* webpackFetchPriority: "high" */ "./FAQ-CdwSft5p.mjs").then((e) => e.FAQ),
6
7
  form: () => import(/* webpackFetchPriority: "high" */ "./Form-BX5_41nb.mjs").then((e) => e.Form),
7
- grid: () => import(/* webpackFetchPriority: "high" */ "./Grid-DS53S_gA.mjs").then((e) => e.Grid),
8
- helix: () => import(/* webpackFetchPriority: "high" */ "./Helix-BPn9V1sg.mjs").then((e) => e.Helix),
9
- hive: () => import(/* webpackFetchPriority: "high" */ "./Hive-D6-R6TwM.mjs").then((e) => e.Hive),
10
- "control-image-reveal": () => import(/* webpackFetchPriority: "high" */ "./ImageRevealSlider-BdFGyVEP.mjs").then((e) => e.ImageRevealSlider),
11
- lightbox: () => import(/* webpackFetchPriority: "high" */ "./Lightbox-eP9qAZzL.mjs").then((e) => e.LightboxGallery),
8
+ grid: () => import(/* webpackFetchPriority: "high" */ "./Grid-e-gLfsji.mjs").then((e) => e.Grid),
9
+ helix: () => import(/* webpackFetchPriority: "high" */ "./Helix-CidI3ucE.mjs").then((e) => e.Helix),
10
+ hive: () => import(/* webpackFetchPriority: "high" */ "./Hive-BsmFHk2i.mjs").then((e) => e.Hive),
11
+ "control-image-reveal": () => import(/* webpackFetchPriority: "high" */ "./ImageRevealSlider-Df9sygk9.mjs").then((e) => e.ImageRevealSlider),
12
+ lightbox: () => import(/* webpackFetchPriority: "high" */ "./Lightbox-C_fXsfdz.mjs").then((e) => e.LightboxGallery),
12
13
  "lightbox-journal": () => import(/* webpackFetchPriority: "high" */ "./LightboxJournal-D59ex6wH.mjs").then((e) => e.LightboxJournal),
13
14
  "lightbox-strip": () => import(/* webpackFetchPriority: "high" */ "./LightboxStrip-YspzBP8N.mjs").then((e) => e.LightboxStrip),
14
- list: () => import(/* webpackFetchPriority: "high" */ "./List-DW7fyJbf.mjs").then((e) => e.List),
15
- marquee: () => import(/* webpackFetchPriority: "high" */ "./Marquee-O_PDwlIb.mjs").then((e) => e.Marquee),
16
- "marquee-text": () => import(/* webpackFetchPriority: "high" */ "./MarqueeText-Rzt2fJYt.mjs").then((e) => e.MarqueeText),
17
- mercury: () => import(/* webpackFetchPriority: "high" */ "./Mercury-C9D10TTT.mjs").then((e) => e.Mercury),
15
+ list: () => import(/* webpackFetchPriority: "high" */ "./List-Bh_-l9vD.mjs").then((e) => e.List),
16
+ marquee: () => import(/* webpackFetchPriority: "high" */ "./Marquee-DByooiWP.mjs").then((e) => e.Marquee),
17
+ "marquee-text": () => import(/* webpackFetchPriority: "high" */ "./MarqueeText-D6FNCe6P.mjs").then((e) => e.MarqueeText),
18
+ mercury: () => import(/* webpackFetchPriority: "high" */ "./Mercury-CCW0Es-s.mjs").then((e) => e.Mercury),
18
19
  "oneliner-form": () => import(/* webpackFetchPriority: "high" */ "./OnelinerForm-BEu7_sho.mjs").then((e) => e.OnelinerForm),
19
20
  pretext: () => import(/* webpackFetchPriority: "high" */ "./Pretext-10CcyP1E.mjs").then((e) => e.Pretext),
20
21
  scale: () => import(/* webpackFetchPriority: "high" */ "./Scale-TnkWtRrs.mjs").then((e) => e.Scale),
21
22
  "simple-button": () => import(/* webpackFetchPriority: "high" */ "./SimpleButton-C-o2W9bS.mjs").then((e) => e.SimpleButton),
22
- "slider-2-0": () => import(/* webpackFetchPriority: "high" */ "./Slider20-Dm8BeCli.mjs").then((e) => e.Slider20),
23
- testimonials: () => import(/* webpackFetchPriority: "high" */ "./TestimonialGrid-CPu4qQ6B.mjs").then((e) => e.TestimonialGrid),
24
- "testimonial-single": () => import(/* webpackFetchPriority: "high" */ "./TestimonialSingle-DLdnAVF7.mjs").then((e) => e.TestimonialSingle),
25
- waterfall: () => import(/* webpackFetchPriority: "high" */ "./Waterfall-Yud2VR62.mjs").then((e) => e.Waterfall)
23
+ "slider-2-0": () => import(/* webpackFetchPriority: "high" */ "./Slider20-CCzixTiN.mjs").then((e) => e.Slider20),
24
+ testimonials: () => import(/* webpackFetchPriority: "high" */ "./TestimonialGrid-CbsVxSn9.mjs").then((e) => e.TestimonialGrid),
25
+ "testimonial-single": () => import(/* webpackFetchPriority: "high" */ "./TestimonialSingle-BVm3Amrl.mjs").then((e) => e.TestimonialSingle),
26
+ waterfall: () => import(/* webpackFetchPriority: "high" */ "./Waterfall-3kKioKh2.mjs").then((e) => e.Waterfall)
26
27
  }, h = Object.keys(i), a = 3, m = 2e3, l = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
27
- function s(e) {
28
+ function p(e) {
28
29
  return Object.prototype.hasOwnProperty.call(i, e);
29
30
  }
30
31
  function u(e) {
@@ -34,11 +35,11 @@ function c(e) {
34
35
  var t;
35
36
  return (((t = o.get(e)) == null ? void 0 : t.failures) ?? 0) > 0;
36
37
  }
37
- const p = (e) => !e.loading && e.failures > 0 && e.failures < a && Date.now() >= e.retryAt;
38
+ const s = (e) => !e.loading && e.failures > 0 && e.failures < a && Date.now() >= e.retryAt;
38
39
  function f(e) {
39
- if (!s(e)) return Promise.resolve(void 0);
40
+ if (!p(e)) return Promise.resolve(void 0);
40
41
  const t = o.get(e);
41
- if (t && !p(t)) return t.request;
42
+ if (t && !s(t)) return t.request;
42
43
  const r = {
43
44
  loading: !0,
44
45
  failures: (t == null ? void 0 : t.failures) ?? 0,
@@ -57,7 +58,7 @@ function f(e) {
57
58
  export {
58
59
  h as componentElementIds,
59
60
  u as getComponentElement,
60
- s as hasComponentElement,
61
+ p as hasComponentElement,
61
62
  c as hasComponentElementFailed,
62
63
  f as loadComponentElement
63
64
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components-B9Vdjf0w.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-SEwSqFrQ.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-D2LyuDm-.mjs";
1
+ import { c as t } from "./components-DKuQ8PUa.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,6 +1,8 @@
1
1
  export { type Breakpoint, type Component, type ComponentDefaultSize, type ComponentDefaultNavigationPosition, type ComponentNavigationPosition, type ComponentSize, isSchemaV1 } from './types/Component';
2
- export type { ComponentSchemaV1, SchemaProperty, PropertyScope, LayoutItem, LayoutRow, LayoutGroup, LayoutSwitcher, LayoutTab, SchemaSection, SchemaPanel, SchemaPanelAvailability, SchemaDisplay } from './types/SchemaV1';
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
+ export { getPostFieldBindings } from './content/postFieldBindings';
5
+ export type { ContentValue, PostFieldBinding, PostFieldEntry, PostFieldPage } from './content/postFieldBindings';
4
6
  export { getAvailableStatePanels, getUnavailableStates, isPanelAvailable, } from './Components/utils/panelAvailability';
5
7
  export type { PanelAvailabilityContext } from './Components/utils/panelAvailability';
6
8
  export { nonForkableComponentIds } from './forking';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components-B9Vdjf0w.js"),n=require("./panelAvailability-DnOe0rQ4.js");function o(t){return t.type==="object"&&t.version===1}const a=[e.ControlSliderComponent.id,e.ControlImageRevealSliderComponent.id,e.LightboxComponent.id];exports.components=e.components;exports.getAvailableStatePanels=n.getAvailableStatePanels;exports.getUnavailableStates=n.getUnavailableStates;exports.isPanelAvailable=n.isPanelAvailable;exports.isSchemaV1=o;exports.nonForkableComponentIds=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./components-SEwSqFrQ.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,19 +1,56 @@
1
- import { C as e, a, L as t } from "./components-D2LyuDm-.mjs";
2
- import { c as m } from "./components-D2LyuDm-.mjs";
3
- import { g as C, a as b, i as d } from "./panelAvailability-D179wwJx.mjs";
4
- function i(o) {
5
- return o.type === "object" && o.version === 1;
1
+ import { C as s, a as u, L as c } from "./components-DKuQ8PUa.mjs";
2
+ import { c as P } from "./components-DKuQ8PUa.mjs";
3
+ import { g as x, a as j, i as k } from "./panelAvailability-D179wwJx.mjs";
4
+ function g(e) {
5
+ return e.type === "object" && e.version === 1;
6
6
  }
7
- const r = [
8
- e.id,
9
- a.id,
10
- t.id
7
+ function r(e) {
8
+ return { assetId: e, name: "", type: "image", objectFit: "cover" };
9
+ }
10
+ function d(e, { text: n, images: t }) {
11
+ switch (e) {
12
+ case "media-pair-list-input":
13
+ return t.map((a) => ({ media: [r(a), r("")] }));
14
+ case "media-list-input":
15
+ return t.map(r);
16
+ case "media-input":
17
+ return t.length > 0 ? r(t[0]) : { assetId: "", name: "" };
18
+ case "rich-text":
19
+ return [{ type: "paragraph", children: [{ text: n }] }];
20
+ case "link-input":
21
+ return { type: "url", value: "", target: "self" };
22
+ default:
23
+ return n;
24
+ }
25
+ }
26
+ function m(e, { pageId: n, slug: t }) {
27
+ return e === "link-input" ? { type: "page", value: n, target: "self" } : `/${t}`;
28
+ }
29
+ function y(e) {
30
+ var t;
31
+ const n = ((t = e == null ? void 0 : e.items) == null ? void 0 : t.properties) ?? {};
32
+ return Object.entries(n).map(([a, i]) => {
33
+ var p;
34
+ const l = (p = i.display) == null ? void 0 : p.type;
35
+ return {
36
+ fieldKey: a,
37
+ ...i.contentKey !== void 0 ? { contentKey: i.contentKey } : {},
38
+ fromEntry: (o) => d(l, o),
39
+ toPage: (o) => m(l, o)
40
+ };
41
+ });
42
+ }
43
+ const v = [
44
+ s.id,
45
+ u.id,
46
+ c.id
11
47
  ];
12
48
  export {
13
- m as components,
14
- C as getAvailableStatePanels,
15
- b as getUnavailableStates,
16
- d as isPanelAvailable,
17
- i as isSchemaV1,
18
- r as nonForkableComponentIds
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
19
56
  };