@cntrl-site/components 1.0.116 → 1.0.118-alpha.0
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/{Burger-C3yVbQcq.js → Burger-B4kXX9aY.js} +1 -1
- package/dist/{Burger-BkVgNMGU.mjs → Burger-DyORh_vF.mjs} +1 -1
- package/dist/{ChroniclesComponent-0ZWBPdbh.mjs → ChroniclesComponent-DVoJ0kdT.mjs} +12 -12
- package/dist/{ChroniclesComponent-D4_6w8f7.js → ChroniclesComponent-Nm_yIRmr.js} +1 -1
- package/dist/Components/PopupMenu/PopupMenu.d.ts +73 -0
- package/dist/Components/PopupMenu/PopupMenuComponent.d.ts +594 -0
- package/dist/Components/PopupMenu/popupMenuLayout.d.ts +203 -0
- package/dist/Components/PopupMenu/popupMenuSnap.d.ts +61 -0
- package/dist/Components/helpers/SvgImage/loadSvgMaskUrl.d.ts +7 -0
- package/dist/{ControlSlider-DqKfaKMG.mjs → ControlSlider-3w-bHQEg.mjs} +1 -1
- package/dist/{ControlSlider-C8ckUIDm.js → ControlSlider-DB4nbVLT.js} +1 -1
- package/dist/{FAQ-DLh63Utr.js → FAQ-7HEkaoU6.js} +1 -1
- package/dist/{FAQ-CJHCMSBa.mjs → FAQ-GmiwRdFq.mjs} +1 -1
- package/dist/{Grid-t07NDMzY.mjs → Grid-BuRdth9A.mjs} +201 -196
- package/dist/{Grid-OvzWvUW9.js → Grid-tqSSYh2-.js} +14 -9
- package/dist/{Hive-CzabuuCc.js → Hive-34KvKNsa.js} +1 -1
- package/dist/{Hive-DyxYd5eg.mjs → Hive-7xHXyMM1.mjs} +1 -1
- package/dist/{HiveLightboxTitles-DhEeFKWs.mjs → HiveLightboxTitles-BCoL46-V.mjs} +1 -1
- package/dist/{HiveLightboxTitles-DlyptAaK.js → HiveLightboxTitles-DEeyQGcf.js} +1 -1
- package/dist/{Lightbox-DZckgBzK.js → Lightbox-Cb7lyaNt.js} +1 -1
- package/dist/{Lightbox-BY99NS14.mjs → Lightbox-DzPqgKP4.mjs} +1 -1
- package/dist/{LightboxJournal-Bmw2zm4t.js → LightboxJournal-B-vul_be.js} +14 -8
- package/dist/{LightboxJournal-gePVKQJ4.mjs → LightboxJournal-DisD2DLv.mjs} +340 -334
- package/dist/{LightboxStrip-CTxRwLYk.js → LightboxStrip-YDyEPEb6.js} +14 -8
- package/dist/{LightboxStrip-BPQiQhd3.mjs → LightboxStrip-wCHUhAqN.mjs} +258 -252
- package/dist/{Mercury-B-s2Kvuq.js → Mercury-BmhtFYOw.js} +1 -1
- package/dist/{Mercury-CCW0Es-s.mjs → Mercury-Q788wrYQ.mjs} +1 -1
- package/dist/{OnelinerForm-C2Y_XMCY.js → OnelinerForm-CUmY-bXL.js} +1 -1
- package/dist/{OnelinerForm-BEu7_sho.mjs → OnelinerForm-D8WIB9Qy.mjs} +1 -1
- package/dist/PopupMenu-CYdDyzEt.mjs +1372 -0
- package/dist/PopupMenu-Di1fHgho.js +409 -0
- package/dist/{SimpleButton-C-o2W9bS.mjs → SimpleButton-DTpzfmb6.mjs} +1 -1
- package/dist/{SimpleButton-nGEcO2gB.js → SimpleButton-DtaCYa3y.js} +1 -1
- package/dist/{Slider20-DUi6qwnd.mjs → Slider20-CKngROrc.mjs} +1 -1
- package/dist/{Slider20-BOmjDRf2.js → Slider20-q0iGgnE3.js} +1 -1
- package/dist/SvgImage-CwRq9-ec.mjs +56 -0
- package/dist/SvgImage-_QN8ngad.js +1 -0
- package/dist/{TestimonialSingle-DrnyReim.mjs → TestimonialSingle-Bax71Hyo.mjs} +1 -1
- package/dist/{TestimonialSingle-BORQom3u.js → TestimonialSingle-CpEUendN.js} +1 -1
- package/dist/{Waterfall-DII4-WV5.js → Waterfall-B9YWMhrg.js} +1 -1
- package/dist/{Waterfall-3kKioKh2.mjs → Waterfall-znaoynn5.mjs} +1 -1
- package/dist/components-BYoTPJk3.js +1 -0
- package/dist/{components-BQjon_-7.mjs → components-eK82xypT.mjs} +653 -29
- package/dist/elements.js +1 -1
- package/dist/elements.mjs +23 -22
- 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 +63 -36
- package/dist/loadSvgMaskUrl-B6kHUyof.js +1 -0
- package/dist/loadSvgMaskUrl-DUhCVvpl.mjs +39 -0
- package/dist/sources.js +30 -16
- package/dist/sources.mjs +30 -16
- package/dist/types/Component.d.ts +7 -0
- package/dist/types/SchemaV1.d.ts +3 -0
- package/package.json +1 -1
- package/dist/SvgImage-B5mR9y6q.mjs +0 -51
- package/dist/SvgImage-DFlmxAoL.js +0 -1
- package/dist/components-B8MjlzLL.js +0 -1
- package/dist/loadSvgMaskUrl-DfF7ay6h.js +0 -1
- 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,
|
|
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,31 +1,32 @@
|
|
|
1
1
|
const i = {
|
|
2
|
-
"basic-burger": () => import(/* webpackFetchPriority: "high" */ "./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-
|
|
6
|
-
faq: () => import(/* webpackFetchPriority: "high" */ "./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),
|
|
7
7
|
form: () => import(/* webpackFetchPriority: "high" */ "./Form-BX5_41nb.mjs").then((e) => e.Form),
|
|
8
|
-
grid: () => import(/* webpackFetchPriority: "high" */ "./Grid-
|
|
8
|
+
grid: () => import(/* webpackFetchPriority: "high" */ "./Grid-BuRdth9A.mjs").then((e) => e.Grid),
|
|
9
9
|
helix: () => import(/* webpackFetchPriority: "high" */ "./Helix-CidI3ucE.mjs").then((e) => e.Helix),
|
|
10
|
-
hive: () => import(/* webpackFetchPriority: "high" */ "./Hive-
|
|
10
|
+
hive: () => import(/* webpackFetchPriority: "high" */ "./Hive-7xHXyMM1.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-
|
|
13
|
-
"lightbox-journal": () => import(/* webpackFetchPriority: "high" */ "./LightboxJournal-
|
|
14
|
-
"lightbox-strip": () => import(/* webpackFetchPriority: "high" */ "./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),
|
|
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-
|
|
19
|
-
"oneliner-form": () => import(/* webpackFetchPriority: "high" */ "./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),
|
|
20
21
|
pretext: () => import(/* webpackFetchPriority: "high" */ "./Pretext-10CcyP1E.mjs").then((e) => e.Pretext),
|
|
21
22
|
scale: () => import(/* webpackFetchPriority: "high" */ "./Scale-TnkWtRrs.mjs").then((e) => e.Scale),
|
|
22
|
-
"simple-button": () => import(/* webpackFetchPriority: "high" */ "./SimpleButton-
|
|
23
|
-
"slider-2-0": () => import(/* webpackFetchPriority: "high" */ "./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),
|
|
24
25
|
testimonials: () => import(/* webpackFetchPriority: "high" */ "./TestimonialGrid-C-8IDzWu.mjs").then((e) => e.TestimonialGrid),
|
|
25
|
-
"testimonial-single": () => import(/* webpackFetchPriority: "high" */ "./TestimonialSingle-
|
|
26
|
-
waterfall: () => import(/* webpackFetchPriority: "high" */ "./Waterfall-
|
|
27
|
-
},
|
|
28
|
-
function
|
|
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) {
|
|
29
30
|
return Object.prototype.hasOwnProperty.call(i, e);
|
|
30
31
|
}
|
|
31
32
|
function u(e) {
|
|
@@ -35,11 +36,11 @@ function c(e) {
|
|
|
35
36
|
var t;
|
|
36
37
|
return (((t = o.get(e)) == null ? void 0 : t.failures) ?? 0) > 0;
|
|
37
38
|
}
|
|
38
|
-
const
|
|
39
|
+
const s = (e) => !e.loading && e.failures > 0 && e.failures < m && Date.now() >= e.retryAt;
|
|
39
40
|
function f(e) {
|
|
40
|
-
if (!
|
|
41
|
+
if (!p(e)) return Promise.resolve(void 0);
|
|
41
42
|
const t = o.get(e);
|
|
42
|
-
if (t && !
|
|
43
|
+
if (t && !s(t)) return t.request;
|
|
43
44
|
const r = {
|
|
44
45
|
loading: !0,
|
|
45
46
|
failures: (t == null ? void 0 : t.failures) ?? 0,
|
|
@@ -47,7 +48,7 @@ function f(e) {
|
|
|
47
48
|
request: i[e]().then(
|
|
48
49
|
(n) => (l.set(e, n), r.failures = 0, n),
|
|
49
50
|
(n) => {
|
|
50
|
-
throw r.failures += 1, r.retryAt = Date.now() +
|
|
51
|
+
throw r.failures += 1, r.retryAt = Date.now() + a * 2 ** (r.failures - 1), n;
|
|
51
52
|
}
|
|
52
53
|
).finally(() => {
|
|
53
54
|
r.loading = !1;
|
|
@@ -56,9 +57,9 @@ function f(e) {
|
|
|
56
57
|
return o.set(e, r), r.request;
|
|
57
58
|
}
|
|
58
59
|
export {
|
|
59
|
-
|
|
60
|
+
h as componentElementIds,
|
|
60
61
|
u as getComponentElement,
|
|
61
|
-
|
|
62
|
+
p as hasComponentElement,
|
|
62
63
|
c as hasComponentElementFailed,
|
|
63
64
|
f as loadComponentElement
|
|
64
65
|
};
|
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-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;
|
package/dist/elements.node.mjs
CHANGED
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
|
|
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
|
|
2
|
-
import { c as
|
|
3
|
-
import { g as
|
|
4
|
-
|
|
5
|
-
|
|
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
|
|
8
|
-
return { assetId:
|
|
8
|
+
function u(e) {
|
|
9
|
+
return { assetId: e, name: "", type: "image", objectFit: "cover" };
|
|
9
10
|
}
|
|
10
|
-
function
|
|
11
|
-
switch (
|
|
11
|
+
function m(e, { text: n, images: t }) {
|
|
12
|
+
switch (e) {
|
|
12
13
|
case "media-pair-list-input":
|
|
13
|
-
return
|
|
14
|
+
return t.map((p) => ({ media: [u(p), u("")] }));
|
|
14
15
|
case "media-list-input":
|
|
15
|
-
return
|
|
16
|
+
return t.map(u);
|
|
16
17
|
case "media-input":
|
|
17
|
-
return
|
|
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
|
|
27
|
-
var
|
|
28
|
-
return n === "year" ? ((
|
|
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
|
|
31
|
-
return
|
|
31
|
+
function g(e, { pageId: n, slug: t }) {
|
|
32
|
+
return e === "link-input" ? { type: "page", value: n, target: "self" } : `/${t}`;
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
-
var
|
|
35
|
-
const n = ((
|
|
36
|
-
return Object.entries(n).map(([
|
|
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
|
|
39
|
+
const i = (s = a.display) == null ? void 0 : s.type;
|
|
39
40
|
return {
|
|
40
|
-
fieldKey:
|
|
41
|
-
...
|
|
42
|
-
fromEntry: (
|
|
43
|
-
toPage: (
|
|
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
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
const E = [
|
|
49
|
+
r.id,
|
|
50
|
+
P.id,
|
|
51
|
+
l.id,
|
|
52
|
+
d.id
|
|
51
53
|
];
|
|
52
54
|
export {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
+
};
|
package/dist/sources.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./ChroniclesComponent-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./ChroniclesComponent-Nm_yIRmr.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';
|
|
@@ -5701,7 +5701,6 @@ function getGridTextLeadingVars(
|
|
|
5701
5701
|
const HOVER_ANIM_MS = 400;
|
|
5702
5702
|
const HOVER_EASING = 'cubic-bezier(0.25, 0.1, 0.25, 1)';
|
|
5703
5703
|
const HOVER_ZOOM = 1.1;
|
|
5704
|
-
const HOVER_ZOOM_INSET = \`\${(((1 - 1 / HOVER_ZOOM) / 2) * 100).toFixed(4)}%\`;
|
|
5705
5704
|
const MEDIA_RADIUS_VAR = '--grid-media-radius';
|
|
5706
5705
|
|
|
5707
5706
|
function getCSS(P: string): string {
|
|
@@ -5847,10 +5846,16 @@ function getCSS(P: string): string {
|
|
|
5847
5846
|
.\${P}-show-text-hover .\${P}-item-inner-hidden:hover .\${P}-item-subtitle {
|
|
5848
5847
|
opacity: 1;
|
|
5849
5848
|
}
|
|
5849
|
+
@property --\${P}-hover-zoom {
|
|
5850
|
+
syntax: '<number>';
|
|
5851
|
+
inherits: false;
|
|
5852
|
+
initial-value: 1;
|
|
5853
|
+
}
|
|
5850
5854
|
.\${P}-hover-zoom-in .\${P}-item-image,
|
|
5851
5855
|
.\${P}-hover-zoom-in .\${P}-item-video {
|
|
5852
|
-
|
|
5853
|
-
|
|
5856
|
+
transform: scale(var(--\${P}-hover-zoom));
|
|
5857
|
+
clip-path: inset(calc(50% - 50% / var(--\${P}-hover-zoom)) round calc(var(\${MEDIA_RADIUS_VAR}, 0px) / var(--\${P}-hover-zoom)));
|
|
5858
|
+
transition: --\${P}-hover-zoom \${HOVER_ANIM_MS}ms \${HOVER_EASING};
|
|
5854
5859
|
}
|
|
5855
5860
|
.\${P}-hover-scale-down .\${P}-item-image,
|
|
5856
5861
|
.\${P}-hover-scale-down .\${P}-item-video {
|
|
@@ -5861,8 +5866,7 @@ function getCSS(P: string): string {
|
|
|
5861
5866
|
}
|
|
5862
5867
|
@media (hover: hover) {
|
|
5863
5868
|
.\${P}-hover-zoom-in .\${P}-item-image-wrapper:has(.\${P}-item-image:hover, .\${P}-item-video:hover) :is(.\${P}-item-image, .\${P}-item-video) {
|
|
5864
|
-
|
|
5865
|
-
clip-path: inset(\${HOVER_ZOOM_INSET} round calc(var(\${MEDIA_RADIUS_VAR}, 0px) / \${HOVER_ZOOM}));
|
|
5869
|
+
--\${P}-hover-zoom: \${HOVER_ZOOM};
|
|
5866
5870
|
}
|
|
5867
5871
|
.\${P}-hover-scale-down .\${P}-item-image-wrapper:hover .\${P}-item-image,
|
|
5868
5872
|
.\${P}-hover-scale-down .\${P}-item-image-wrapper:hover .\${P}-item-video {
|
|
@@ -11030,7 +11034,6 @@ import { buildJournalSlides, findJournalUrlSlideNumber, getEntryImages, hasJourn
|
|
|
11030
11034
|
const HOVER_ANIM_MS = 400;
|
|
11031
11035
|
const HOVER_EASING = 'cubic-bezier(0.25, 0.1, 0.25, 1)';
|
|
11032
11036
|
const HOVER_ZOOM = 1.1;
|
|
11033
|
-
const HOVER_ZOOM_INSET = \`\${(((1 - 1 / HOVER_ZOOM) / 2) * 100).toFixed(4)}%\`;
|
|
11034
11037
|
|
|
11035
11038
|
function getCSS(P: string): string {
|
|
11036
11039
|
return \`
|
|
@@ -11078,9 +11081,16 @@ function getCSS(P: string): string {
|
|
|
11078
11081
|
max-width: 100%;
|
|
11079
11082
|
}
|
|
11080
11083
|
|
|
11084
|
+
@property --\${P}-hover-zoom {
|
|
11085
|
+
syntax: '<number>';
|
|
11086
|
+
inherits: false;
|
|
11087
|
+
initial-value: 1;
|
|
11088
|
+
}
|
|
11089
|
+
|
|
11081
11090
|
.\${P}-hover-zoom-in .\${P}-cover-image {
|
|
11082
|
-
|
|
11083
|
-
|
|
11091
|
+
transform: scale(var(--\${P}-hover-zoom));
|
|
11092
|
+
clip-path: inset(calc(50% - 50% / var(--\${P}-hover-zoom)));
|
|
11093
|
+
transition: --\${P}-hover-zoom \${HOVER_ANIM_MS}ms \${HOVER_EASING};
|
|
11084
11094
|
}
|
|
11085
11095
|
|
|
11086
11096
|
.\${P}-hover-scale-down .\${P}-cover-image {
|
|
@@ -11093,8 +11103,7 @@ function getCSS(P: string): string {
|
|
|
11093
11103
|
|
|
11094
11104
|
@media (hover: hover) {
|
|
11095
11105
|
.\${P}-hover-zoom-in .\${P}-cover:hover .\${P}-cover-image {
|
|
11096
|
-
|
|
11097
|
-
clip-path: inset(\${HOVER_ZOOM_INSET});
|
|
11106
|
+
--\${P}-hover-zoom: \${HOVER_ZOOM};
|
|
11098
11107
|
}
|
|
11099
11108
|
.\${P}-hover-scale-down .\${P}-cover:hover .\${P}-cover-image {
|
|
11100
11109
|
transform: scale(0.9);
|
|
@@ -11844,7 +11853,6 @@ export type {
|
|
|
11844
11853
|
const HOVER_ANIM_MS = 400;
|
|
11845
11854
|
const HOVER_EASING = 'cubic-bezier(0.25, 0.1, 0.25, 1)';
|
|
11846
11855
|
const HOVER_ZOOM = 1.1;
|
|
11847
|
-
const HOVER_ZOOM_INSET = \`\${(((1 - 1 / HOVER_ZOOM) / 2) * 100).toFixed(4)}%\`;
|
|
11848
11856
|
|
|
11849
11857
|
function getCSS(P: string): string {
|
|
11850
11858
|
return \`
|
|
@@ -11892,9 +11900,16 @@ function getCSS(P: string): string {
|
|
|
11892
11900
|
max-width: 100%;
|
|
11893
11901
|
}
|
|
11894
11902
|
|
|
11903
|
+
@property --\${P}-hover-zoom {
|
|
11904
|
+
syntax: '<number>';
|
|
11905
|
+
inherits: false;
|
|
11906
|
+
initial-value: 1;
|
|
11907
|
+
}
|
|
11908
|
+
|
|
11895
11909
|
.\${P}-hover-zoom-in .\${P}-cover-image {
|
|
11896
|
-
|
|
11897
|
-
|
|
11910
|
+
transform: scale(var(--\${P}-hover-zoom));
|
|
11911
|
+
clip-path: inset(calc(50% - 50% / var(--\${P}-hover-zoom)));
|
|
11912
|
+
transition: --\${P}-hover-zoom \${HOVER_ANIM_MS}ms \${HOVER_EASING};
|
|
11898
11913
|
}
|
|
11899
11914
|
|
|
11900
11915
|
.\${P}-hover-scale-down .\${P}-cover-image {
|
|
@@ -11907,8 +11922,7 @@ function getCSS(P: string): string {
|
|
|
11907
11922
|
|
|
11908
11923
|
@media (hover: hover) {
|
|
11909
11924
|
.\${P}-hover-zoom-in .\${P}-cover:hover .\${P}-cover-image {
|
|
11910
|
-
|
|
11911
|
-
clip-path: inset(\${HOVER_ZOOM_INSET});
|
|
11925
|
+
--\${P}-hover-zoom: \${HOVER_ZOOM};
|
|
11912
11926
|
}
|
|
11913
11927
|
.\${P}-hover-scale-down .\${P}-cover:hover .\${P}-cover-image {
|
|
11914
11928
|
transform: scale(0.9);
|
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-
|
|
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-DVoJ0kdT.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';
|
|
@@ -5702,7 +5702,6 @@ function getGridTextLeadingVars(
|
|
|
5702
5702
|
const HOVER_ANIM_MS = 400;
|
|
5703
5703
|
const HOVER_EASING = 'cubic-bezier(0.25, 0.1, 0.25, 1)';
|
|
5704
5704
|
const HOVER_ZOOM = 1.1;
|
|
5705
|
-
const HOVER_ZOOM_INSET = \`\${(((1 - 1 / HOVER_ZOOM) / 2) * 100).toFixed(4)}%\`;
|
|
5706
5705
|
const MEDIA_RADIUS_VAR = '--grid-media-radius';
|
|
5707
5706
|
|
|
5708
5707
|
function getCSS(P: string): string {
|
|
@@ -5848,10 +5847,16 @@ function getCSS(P: string): string {
|
|
|
5848
5847
|
.\${P}-show-text-hover .\${P}-item-inner-hidden:hover .\${P}-item-subtitle {
|
|
5849
5848
|
opacity: 1;
|
|
5850
5849
|
}
|
|
5850
|
+
@property --\${P}-hover-zoom {
|
|
5851
|
+
syntax: '<number>';
|
|
5852
|
+
inherits: false;
|
|
5853
|
+
initial-value: 1;
|
|
5854
|
+
}
|
|
5851
5855
|
.\${P}-hover-zoom-in .\${P}-item-image,
|
|
5852
5856
|
.\${P}-hover-zoom-in .\${P}-item-video {
|
|
5853
|
-
|
|
5854
|
-
|
|
5857
|
+
transform: scale(var(--\${P}-hover-zoom));
|
|
5858
|
+
clip-path: inset(calc(50% - 50% / var(--\${P}-hover-zoom)) round calc(var(\${MEDIA_RADIUS_VAR}, 0px) / var(--\${P}-hover-zoom)));
|
|
5859
|
+
transition: --\${P}-hover-zoom \${HOVER_ANIM_MS}ms \${HOVER_EASING};
|
|
5855
5860
|
}
|
|
5856
5861
|
.\${P}-hover-scale-down .\${P}-item-image,
|
|
5857
5862
|
.\${P}-hover-scale-down .\${P}-item-video {
|
|
@@ -5862,8 +5867,7 @@ function getCSS(P: string): string {
|
|
|
5862
5867
|
}
|
|
5863
5868
|
@media (hover: hover) {
|
|
5864
5869
|
.\${P}-hover-zoom-in .\${P}-item-image-wrapper:has(.\${P}-item-image:hover, .\${P}-item-video:hover) :is(.\${P}-item-image, .\${P}-item-video) {
|
|
5865
|
-
|
|
5866
|
-
clip-path: inset(\${HOVER_ZOOM_INSET} round calc(var(\${MEDIA_RADIUS_VAR}, 0px) / \${HOVER_ZOOM}));
|
|
5870
|
+
--\${P}-hover-zoom: \${HOVER_ZOOM};
|
|
5867
5871
|
}
|
|
5868
5872
|
.\${P}-hover-scale-down .\${P}-item-image-wrapper:hover .\${P}-item-image,
|
|
5869
5873
|
.\${P}-hover-scale-down .\${P}-item-image-wrapper:hover .\${P}-item-video {
|
|
@@ -11031,7 +11035,6 @@ import { buildJournalSlides, findJournalUrlSlideNumber, getEntryImages, hasJourn
|
|
|
11031
11035
|
const HOVER_ANIM_MS = 400;
|
|
11032
11036
|
const HOVER_EASING = 'cubic-bezier(0.25, 0.1, 0.25, 1)';
|
|
11033
11037
|
const HOVER_ZOOM = 1.1;
|
|
11034
|
-
const HOVER_ZOOM_INSET = \`\${(((1 - 1 / HOVER_ZOOM) / 2) * 100).toFixed(4)}%\`;
|
|
11035
11038
|
|
|
11036
11039
|
function getCSS(P: string): string {
|
|
11037
11040
|
return \`
|
|
@@ -11079,9 +11082,16 @@ function getCSS(P: string): string {
|
|
|
11079
11082
|
max-width: 100%;
|
|
11080
11083
|
}
|
|
11081
11084
|
|
|
11085
|
+
@property --\${P}-hover-zoom {
|
|
11086
|
+
syntax: '<number>';
|
|
11087
|
+
inherits: false;
|
|
11088
|
+
initial-value: 1;
|
|
11089
|
+
}
|
|
11090
|
+
|
|
11082
11091
|
.\${P}-hover-zoom-in .\${P}-cover-image {
|
|
11083
|
-
|
|
11084
|
-
|
|
11092
|
+
transform: scale(var(--\${P}-hover-zoom));
|
|
11093
|
+
clip-path: inset(calc(50% - 50% / var(--\${P}-hover-zoom)));
|
|
11094
|
+
transition: --\${P}-hover-zoom \${HOVER_ANIM_MS}ms \${HOVER_EASING};
|
|
11085
11095
|
}
|
|
11086
11096
|
|
|
11087
11097
|
.\${P}-hover-scale-down .\${P}-cover-image {
|
|
@@ -11094,8 +11104,7 @@ function getCSS(P: string): string {
|
|
|
11094
11104
|
|
|
11095
11105
|
@media (hover: hover) {
|
|
11096
11106
|
.\${P}-hover-zoom-in .\${P}-cover:hover .\${P}-cover-image {
|
|
11097
|
-
|
|
11098
|
-
clip-path: inset(\${HOVER_ZOOM_INSET});
|
|
11107
|
+
--\${P}-hover-zoom: \${HOVER_ZOOM};
|
|
11099
11108
|
}
|
|
11100
11109
|
.\${P}-hover-scale-down .\${P}-cover:hover .\${P}-cover-image {
|
|
11101
11110
|
transform: scale(0.9);
|
|
@@ -11845,7 +11854,6 @@ export type {
|
|
|
11845
11854
|
const HOVER_ANIM_MS = 400;
|
|
11846
11855
|
const HOVER_EASING = 'cubic-bezier(0.25, 0.1, 0.25, 1)';
|
|
11847
11856
|
const HOVER_ZOOM = 1.1;
|
|
11848
|
-
const HOVER_ZOOM_INSET = \`\${(((1 - 1 / HOVER_ZOOM) / 2) * 100).toFixed(4)}%\`;
|
|
11849
11857
|
|
|
11850
11858
|
function getCSS(P: string): string {
|
|
11851
11859
|
return \`
|
|
@@ -11893,9 +11901,16 @@ function getCSS(P: string): string {
|
|
|
11893
11901
|
max-width: 100%;
|
|
11894
11902
|
}
|
|
11895
11903
|
|
|
11904
|
+
@property --\${P}-hover-zoom {
|
|
11905
|
+
syntax: '<number>';
|
|
11906
|
+
inherits: false;
|
|
11907
|
+
initial-value: 1;
|
|
11908
|
+
}
|
|
11909
|
+
|
|
11896
11910
|
.\${P}-hover-zoom-in .\${P}-cover-image {
|
|
11897
|
-
|
|
11898
|
-
|
|
11911
|
+
transform: scale(var(--\${P}-hover-zoom));
|
|
11912
|
+
clip-path: inset(calc(50% - 50% / var(--\${P}-hover-zoom)));
|
|
11913
|
+
transition: --\${P}-hover-zoom \${HOVER_ANIM_MS}ms \${HOVER_EASING};
|
|
11899
11914
|
}
|
|
11900
11915
|
|
|
11901
11916
|
.\${P}-hover-scale-down .\${P}-cover-image {
|
|
@@ -11908,8 +11923,7 @@ function getCSS(P: string): string {
|
|
|
11908
11923
|
|
|
11909
11924
|
@media (hover: hover) {
|
|
11910
11925
|
.\${P}-hover-zoom-in .\${P}-cover:hover .\${P}-cover-image {
|
|
11911
|
-
|
|
11912
|
-
clip-path: inset(\${HOVER_ZOOM_INSET});
|
|
11926
|
+
--\${P}-hover-zoom: \${HOVER_ZOOM};
|
|
11913
11927
|
}
|
|
11914
11928
|
.\${P}-hover-scale-down .\${P}-cover:hover .\${P}-cover-image {
|
|
11915
11929
|
transform: scale(0.9);
|
|
@@ -8,6 +8,11 @@ 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';
|
|
11
16
|
export type Component = {
|
|
12
17
|
element: (props: any) => React.ReactElement;
|
|
13
18
|
id: string;
|
|
@@ -17,6 +22,8 @@ export type Component = {
|
|
|
17
22
|
layoutMode?: 'freeform' | 'structured' | 'navigation';
|
|
18
23
|
defaultSize?: ComponentDefaultSize;
|
|
19
24
|
defaultNavigationPosition?: ComponentDefaultNavigationPosition;
|
|
25
|
+
/** For a `layoutMode: 'navigation'` component; none is 'full-width'. */
|
|
26
|
+
navigationLayout?: ComponentNavigationLayout;
|
|
20
27
|
schema: any;
|
|
21
28
|
preview?: {
|
|
22
29
|
type: 'image' | 'video';
|
package/dist/types/SchemaV1.d.ts
CHANGED
|
@@ -100,6 +100,9 @@ export type ComponentContentProperty = {
|
|
|
100
100
|
min?: number;
|
|
101
101
|
max?: number;
|
|
102
102
|
default?: unknown;
|
|
103
|
+
/** How the field is drawn instead in a row whose `type` is one of these keys, laid over the rest; a display
|
|
104
|
+
* with `visible: false` leaves the field out of those rows. */
|
|
105
|
+
byRowType?: Record<string, Pick<ComponentContentProperty, 'placeholder' | 'display'>>;
|
|
103
106
|
};
|
|
104
107
|
export type ComponentContentSchema = {
|
|
105
108
|
type: 'array';
|