@cntrl-site/components 1.0.120-alpha.0 → 1.0.120
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/ChroniclesComponent-5ZbqHNpi.js +1 -0
- package/dist/{ChroniclesComponent-CeaJBqKz.mjs → ChroniclesComponent-8lhIeord.mjs} +541 -603
- package/dist/Components/Grid/Grid.d.ts +7 -31
- package/dist/Components/Slider20/Slider20.d.ts +2 -1
- package/dist/ControlSlider-C8ckUIDm.js +1 -0
- package/dist/{ControlSlider-BBAXRDLP.mjs → ControlSlider-DqKfaKMG.mjs} +3 -2
- package/dist/Grid-C4hO8KCr.js +408 -0
- package/dist/Grid-Dud7PLS9.mjs +1622 -0
- package/dist/Slider20-C2o_EB1I.mjs +872 -0
- package/dist/Slider20-DzxWCTg-.js +273 -0
- package/dist/{components-Cp5lKUwh.js → components-BHB4G3ma.js} +1 -1
- package/dist/{components-DoYrYUvq.mjs → components-CBJ6asBX.mjs} +13 -14
- package/dist/components.css +1 -1
- package/dist/elements.js +1 -1
- package/dist/elements.mjs +8 -9
- package/dist/elements.node.js +1 -1
- package/dist/elements.node.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -2
- package/dist/sources.js +447 -809
- package/dist/sources.mjs +485 -848
- package/package.json +1 -1
- package/dist/ChroniclesComponent-DK6L2w5h.js +0 -1
- package/dist/Components/Grid/CustomGridComponent.d.ts +0 -41
- package/dist/ControlSlider-BCkVFl4w.js +0 -1
- package/dist/Grid-By7t2l11.js +0 -445
- package/dist/Grid-If8uE2Sy.mjs +0 -1865
- package/dist/Slider20-BOmjDRf2.js +0 -272
- package/dist/Slider20-DUi6qwnd.mjs +0 -851
package/dist/elements.mjs
CHANGED
|
@@ -2,11 +2,10 @@ const i = {
|
|
|
2
2
|
"basic-burger": () => import(/* webpackFetchPriority: "high" */ "./Burger-C8JIQQwm.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-
|
|
6
|
-
"custom-grid": () => import(/* webpackFetchPriority: "high" */ "./Grid-If8uE2Sy.mjs").then((e) => e.Grid),
|
|
5
|
+
"control-slider": () => import(/* webpackFetchPriority: "high" */ "./ControlSlider-DqKfaKMG.mjs").then((e) => e.ControlSlider),
|
|
7
6
|
faq: () => import(/* webpackFetchPriority: "high" */ "./FAQ-CJHCMSBa.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-
|
|
8
|
+
grid: () => import(/* webpackFetchPriority: "high" */ "./Grid-Dud7PLS9.mjs").then((e) => e.Grid),
|
|
10
9
|
helix: () => import(/* webpackFetchPriority: "high" */ "./Helix-CidI3ucE.mjs").then((e) => e.Helix),
|
|
11
10
|
hive: () => import(/* webpackFetchPriority: "high" */ "./Hive-DyxYd5eg.mjs").then((e) => e.Hive),
|
|
12
11
|
"control-image-reveal": () => import(/* webpackFetchPriority: "high" */ "./ImageRevealSlider-DifEXySR.mjs").then((e) => e.ImageRevealSlider),
|
|
@@ -21,11 +20,11 @@ const i = {
|
|
|
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
22
|
"simple-button": () => import(/* webpackFetchPriority: "high" */ "./SimpleButton-GXckV2Tj.mjs").then((e) => e.SimpleButton),
|
|
24
|
-
"slider-2-0": () => import(/* webpackFetchPriority: "high" */ "./Slider20-
|
|
23
|
+
"slider-2-0": () => import(/* webpackFetchPriority: "high" */ "./Slider20-C2o_EB1I.mjs").then((e) => e.Slider20),
|
|
25
24
|
testimonials: () => import(/* webpackFetchPriority: "high" */ "./TestimonialGrid-C-8IDzWu.mjs").then((e) => e.TestimonialGrid),
|
|
26
25
|
"testimonial-single": () => import(/* webpackFetchPriority: "high" */ "./TestimonialSingle-DrnyReim.mjs").then((e) => e.TestimonialSingle),
|
|
27
26
|
waterfall: () => import(/* webpackFetchPriority: "high" */ "./Waterfall-3kKioKh2.mjs").then((e) => e.Waterfall)
|
|
28
|
-
}, p = Object.keys(i),
|
|
27
|
+
}, p = Object.keys(i), a = 3, m = 2e3, l = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
29
28
|
function s(e) {
|
|
30
29
|
return Object.prototype.hasOwnProperty.call(i, e);
|
|
31
30
|
}
|
|
@@ -36,8 +35,8 @@ 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 h = (e) => !e.loading && e.failures > 0 && e.failures <
|
|
40
|
-
function
|
|
38
|
+
const h = (e) => !e.loading && e.failures > 0 && e.failures < a && Date.now() >= e.retryAt;
|
|
39
|
+
function f(e) {
|
|
41
40
|
if (!s(e)) return Promise.resolve(void 0);
|
|
42
41
|
const t = o.get(e);
|
|
43
42
|
if (t && !h(t)) return t.request;
|
|
@@ -48,7 +47,7 @@ function g(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() +
|
|
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;
|
|
@@ -61,5 +60,5 @@ export {
|
|
|
61
60
|
u as getComponentElement,
|
|
62
61
|
s as hasComponentElement,
|
|
63
62
|
c as hasComponentElementFailed,
|
|
64
|
-
|
|
63
|
+
f as loadComponentElement
|
|
65
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-BHB4G3ma.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.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./components-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./components-BHB4G3ma.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;
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as u, a as p, L as c } from "./components-
|
|
2
|
-
import { c as P } from "./components-
|
|
1
|
+
import { C as u, a as p, L as c } from "./components-CBJ6asBX.mjs";
|
|
2
|
+
import { c as P } from "./components-CBJ6asBX.mjs";
|
|
3
3
|
import { g as F, a as h, i as j } from "./panelAvailability-D179wwJx.mjs";
|
|
4
4
|
function y(t) {
|
|
5
5
|
return t.type === "object" && t.version === 1;
|