@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.
- package/dist/ArchivePopup-DMpGP8r2.js +176 -0
- package/dist/ArchivePopup-X4EtTAyA.mjs +694 -0
- package/dist/ArchivePopupComponent-BTniPIfi.js +1 -0
- package/dist/{PretextComponent-j-OsRZTx.mjs → ArchivePopupComponent-GgAT2Avz.mjs} +954 -479
- package/dist/ClickGallerie-CYQMgrIr.js +36 -0
- package/dist/ClickGallerie-o2U6oyOF.mjs +272 -0
- package/dist/Components/ArchivePopup/ArchivePopup.d.ts +154 -0
- package/dist/Components/ArchivePopup/ArchivePopupComponent.d.ts +288 -0
- package/dist/Components/ClickGallerie/ClickGallerie.d.ts +2 -1
- package/dist/Components/Helix/Helix.d.ts +4 -1
- package/dist/Components/Hive/Hive.d.ts +4 -1
- package/dist/Components/ImageRevealSlider/ImageRevealSlider.d.ts +2 -1
- package/dist/Components/List/List.d.ts +6 -2
- package/dist/Components/Marquee/Marquee.d.ts +6 -2
- package/dist/Components/MarqueeText/MarqueeText.d.ts +2 -1
- package/dist/Components/Mercury/Mercury.d.ts +4 -1
- package/dist/Components/Waterfall/WaterfallLightbox.d.ts +4 -1
- package/dist/Components/utils/EmbedMediaFrame.d.ts +27 -0
- package/dist/Components/utils/LinkWrapper.d.ts +16 -0
- package/dist/Components/utils/embedMedia.d.ts +40 -0
- package/dist/Components/utils/index.d.ts +6 -0
- package/dist/{ControlSlider-SiOt22l_.js → ControlSlider-Kkec-i14.js} +1 -1
- package/dist/{ControlSlider-pZv7H6BU.mjs → ControlSlider-LcZmviGX.mjs} +1 -1
- package/dist/EmbedMediaFrame-DsOTKE4i.js +1 -0
- package/dist/EmbedMediaFrame-DwHeOAy5.mjs +164 -0
- package/dist/{FAQ-C7823fyi.js → FAQ-BxhMo7T8.js} +1 -1
- package/dist/{FAQ-CZ39u4m8.mjs → FAQ-CdwSft5p.mjs} +1 -1
- package/dist/Grid-CFHTP3mb.js +378 -0
- package/dist/Grid-e-gLfsji.mjs +1590 -0
- package/dist/Helix-BpLo9FD3.js +43 -0
- package/dist/Helix-CidI3ucE.mjs +324 -0
- package/dist/{Hive-D6-R6TwM.mjs → Hive-BsmFHk2i.mjs} +505 -475
- package/dist/Hive-D1j6wZpV.js +321 -0
- package/dist/ImageRevealSlider-BuukTGAK.js +1 -0
- package/dist/{ImageRevealSlider-BdFGyVEP.mjs → ImageRevealSlider-Df9sygk9.mjs} +63 -70
- package/dist/{Lightbox-eP9qAZzL.mjs → Lightbox-C_fXsfdz.mjs} +1 -1
- package/dist/{Lightbox-CIss_nOG.js → Lightbox-DaunVrkp.js} +1 -1
- package/dist/LinkWrapper-Ca84iPtg.js +1 -0
- package/dist/LinkWrapper-DZs9hlOn.mjs +13 -0
- package/dist/{List-DW7fyJbf.mjs → List-Bh_-l9vD.mjs} +532 -520
- package/dist/List-DVvpQ24J.js +377 -0
- package/dist/Marquee-DByooiWP.mjs +578 -0
- package/dist/Marquee-DfIP-tIN.js +133 -0
- package/dist/{MarqueeText-Rzt2fJYt.mjs → MarqueeText-D6FNCe6P.mjs} +115 -114
- package/dist/MarqueeText-DsUiV6Zv.js +132 -0
- package/dist/Mercury-B-s2Kvuq.js +267 -0
- package/dist/Mercury-CCW0Es-s.mjs +1700 -0
- package/dist/{RichTextRenderer-B6WtTYlR.mjs → RichTextRenderer-BptwNpbJ.mjs} +10 -9
- package/dist/RichTextRenderer-K90Dd7pt.js +1 -0
- package/dist/{Slider20-Dm8BeCli.mjs → Slider20-CCzixTiN.mjs} +1 -1
- package/dist/{Slider20-C9o2REDl.js → Slider20-fMVeRfgx.js} +1 -1
- package/dist/{TestimonialGrid-CPu4qQ6B.mjs → TestimonialGrid-CbsVxSn9.mjs} +1 -1
- package/dist/{TestimonialGrid-D4ieiz9e.js → TestimonialGrid-CiCagfBU.js} +1 -1
- package/dist/{TestimonialSingle-DLdnAVF7.mjs → TestimonialSingle-BVm3Amrl.mjs} +1 -1
- package/dist/{TestimonialSingle-CVu15ZtV.js → TestimonialSingle-BWXynGjv.js} +1 -1
- package/dist/Waterfall-3kKioKh2.mjs +1432 -0
- package/dist/Waterfall-DII4-WV5.js +288 -0
- package/dist/{components-D2LyuDm-.mjs → components-DKuQ8PUa.mjs} +19 -18
- package/dist/components-SEwSqFrQ.js +1 -0
- package/dist/content/postFieldBindings.d.ts +29 -0
- package/dist/elements.js +1 -1
- package/dist/elements.mjs +22 -21
- package/dist/elements.node.js +1 -1
- package/dist/elements.node.mjs +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +52 -15
- package/dist/sources.js +1331 -233
- package/dist/sources.mjs +1355 -256
- package/dist/types/SchemaV1.d.ts +53 -1
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +30 -20
- package/package.json +1 -1
- package/dist/ClickGallerie-D7g093HX.js +0 -36
- package/dist/ClickGallerie-QSOQjSdv.mjs +0 -271
- package/dist/Grid-BBpdl60K.js +0 -374
- package/dist/Grid-DS53S_gA.mjs +0 -1576
- package/dist/Helix-BPn9V1sg.mjs +0 -315
- package/dist/Helix-DcgsCc4D.js +0 -43
- package/dist/Hive-n8Fz-j3o.js +0 -321
- package/dist/ImageRevealSlider-BBWtFjUF.js +0 -1
- package/dist/List-C32WImI3.js +0 -377
- package/dist/Marquee-DOIRRCu4.js +0 -133
- package/dist/Marquee-O_PDwlIb.mjs +0 -564
- package/dist/MarqueeText-DkaO2lQ5.js +0 -132
- package/dist/Mercury-C9D10TTT.mjs +0 -1702
- package/dist/Mercury-DynO-NxY.js +0 -267
- package/dist/PretextComponent-BnsS2zJ6.js +0 -1
- package/dist/RichTextRenderer-CIy6yI8U.js +0 -1
- package/dist/Waterfall-DC2WQ3GT.js +0 -287
- package/dist/Waterfall-Yud2VR62.mjs +0 -1404
- 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-
|
|
4
|
-
"control-slider": () => import(/* webpackFetchPriority: "high" */ "./ControlSlider-
|
|
5
|
-
faq: () => import(/* webpackFetchPriority: "high" */ "./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-
|
|
8
|
-
helix: () => import(/* webpackFetchPriority: "high" */ "./Helix-
|
|
9
|
-
hive: () => import(/* webpackFetchPriority: "high" */ "./Hive-
|
|
10
|
-
"control-image-reveal": () => import(/* webpackFetchPriority: "high" */ "./ImageRevealSlider-
|
|
11
|
-
lightbox: () => import(/* webpackFetchPriority: "high" */ "./Lightbox-
|
|
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-
|
|
15
|
-
marquee: () => import(/* webpackFetchPriority: "high" */ "./Marquee-
|
|
16
|
-
"marquee-text": () => import(/* webpackFetchPriority: "high" */ "./MarqueeText-
|
|
17
|
-
mercury: () => import(/* webpackFetchPriority: "high" */ "./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-
|
|
23
|
-
testimonials: () => import(/* webpackFetchPriority: "high" */ "./TestimonialGrid-
|
|
24
|
-
"testimonial-single": () => import(/* webpackFetchPriority: "high" */ "./TestimonialSingle-
|
|
25
|
-
waterfall: () => import(/* webpackFetchPriority: "high" */ "./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
|
|
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
|
|
38
|
+
const s = (e) => !e.loading && e.failures > 0 && e.failures < a && Date.now() >= e.retryAt;
|
|
38
39
|
function f(e) {
|
|
39
|
-
if (!
|
|
40
|
+
if (!p(e)) return Promise.resolve(void 0);
|
|
40
41
|
const t = o.get(e);
|
|
41
|
-
if (t && !
|
|
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
|
-
|
|
61
|
+
p as hasComponentElement,
|
|
61
62
|
c as hasComponentElementFailed,
|
|
62
63
|
f as loadComponentElement
|
|
63
64
|
};
|
package/dist/elements.node.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components-
|
|
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;
|
package/dist/elements.node.mjs
CHANGED
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
|
|
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
|
|
2
|
-
import { c as
|
|
3
|
-
import { g as
|
|
4
|
-
function
|
|
5
|
-
return
|
|
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
|
-
|
|
8
|
-
e
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
};
|