@cntrl-site/components 1.0.115 → 1.0.116

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 (30) hide show
  1. package/dist/Chronicles-BNvvaFYY.mjs +744 -0
  2. package/dist/Chronicles-Dj1gvNjE.js +196 -0
  3. package/dist/{ChroniclesComponent-D-yEbs9w.mjs → ChroniclesComponent-0ZWBPdbh.mjs} +542 -491
  4. package/dist/ChroniclesComponent-D4_6w8f7.js +1 -0
  5. package/dist/Components/Chronicles/Chronicles.d.ts +7 -1
  6. package/dist/Components/Chronicles/ChroniclesComponent.d.ts +26 -2
  7. package/dist/Components/LightboxJournal/LightboxJournal.d.ts +1 -0
  8. package/dist/Components/LightboxStrip/LightboxStrip.d.ts +1 -0
  9. package/dist/LightboxJournal-Bmw2zm4t.js +549 -0
  10. package/dist/{LightboxJournal-D59ex6wH.mjs → LightboxJournal-gePVKQJ4.mjs} +429 -403
  11. package/dist/{LightboxStrip-YspzBP8N.mjs → LightboxStrip-BPQiQhd3.mjs} +461 -435
  12. package/dist/LightboxStrip-CTxRwLYk.js +412 -0
  13. package/dist/{components-D4ZrIo2M.js → components-B8MjlzLL.js} +1 -1
  14. package/dist/{components-Ds6rhj3U.mjs → components-BQjon_-7.mjs} +1 -1
  15. package/dist/elements.js +1 -1
  16. package/dist/elements.mjs +3 -3
  17. package/dist/elements.node.js +1 -1
  18. package/dist/elements.node.mjs +1 -1
  19. package/dist/index.d.ts +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/index.mjs +36 -32
  22. package/dist/sources.js +124 -25
  23. package/dist/sources.mjs +131 -32
  24. package/dist/types/SchemaV1.d.ts +3 -0
  25. package/package.json +1 -1
  26. package/dist/Chronicles-Cy2h3jlZ.mjs +0 -724
  27. package/dist/Chronicles-D0ojQzOP.js +0 -196
  28. package/dist/ChroniclesComponent-Os_r2IYg.js +0 -1
  29. package/dist/LightboxJournal-DAEZOPDi.js +0 -523
  30. package/dist/LightboxStrip-BDjI1jyH.js +0 -386
package/dist/elements.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  const i = {
2
2
  "basic-burger": () => import(/* webpackFetchPriority: "high" */ "./Burger-BkVgNMGU.mjs").then((e) => e.Burger),
3
- chronicles: () => import(/* webpackFetchPriority: "high" */ "./Chronicles-Cy2h3jlZ.mjs").then((e) => e.Chronicles),
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
5
  "control-slider": () => import(/* webpackFetchPriority: "high" */ "./ControlSlider-DqKfaKMG.mjs").then((e) => e.ControlSlider),
6
6
  faq: () => import(/* webpackFetchPriority: "high" */ "./FAQ-CJHCMSBa.mjs").then((e) => e.FAQ),
@@ -10,8 +10,8 @@ const i = {
10
10
  hive: () => import(/* webpackFetchPriority: "high" */ "./Hive-DyxYd5eg.mjs").then((e) => e.Hive),
11
11
  "control-image-reveal": () => import(/* webpackFetchPriority: "high" */ "./ImageRevealSlider-DifEXySR.mjs").then((e) => e.ImageRevealSlider),
12
12
  lightbox: () => import(/* webpackFetchPriority: "high" */ "./Lightbox-BY99NS14.mjs").then((e) => e.LightboxGallery),
13
- "lightbox-journal": () => import(/* webpackFetchPriority: "high" */ "./LightboxJournal-D59ex6wH.mjs").then((e) => e.LightboxJournal),
14
- "lightbox-strip": () => import(/* webpackFetchPriority: "high" */ "./LightboxStrip-YspzBP8N.mjs").then((e) => e.LightboxStrip),
13
+ "lightbox-journal": () => import(/* webpackFetchPriority: "high" */ "./LightboxJournal-gePVKQJ4.mjs").then((e) => e.LightboxJournal),
14
+ "lightbox-strip": () => import(/* webpackFetchPriority: "high" */ "./LightboxStrip-BPQiQhd3.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),
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components-D4ZrIo2M.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-B8MjlzLL.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-Ds6rhj3U.mjs";
1
+ import { c as t } from "./components-BQjon_-7.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,5 +1,5 @@
1
1
  export { type Breakpoint, type Component, type ComponentDefaultSize, type ComponentDefaultNavigationPosition, type ComponentNavigationPosition, type ComponentSize, isSchemaV1 } from './types/Component';
2
- export type { ComponentSchemaV1, ComponentContentSchema, ComponentContentSettings, ComponentContentProperty, ContentKey, ContentLink, SchemaProperty, PropertyScope, LayoutItem, LayoutRow, LayoutGroup, LayoutSwitcher, LayoutTab, SchemaSection, SchemaPanel, SchemaPanelAvailability, SchemaDisplay } from './types/SchemaV1';
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';
5
5
  export type { ContentValue, PostFieldBinding, PostFieldEntry, PostFieldPage } from './content/postFieldBindings';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./components-D4ZrIo2M.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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./components-B8MjlzLL.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,20 +1,20 @@
1
- import { C as s, a as u, L as c } from "./components-Ds6rhj3U.mjs";
2
- import { c as P } from "./components-Ds6rhj3U.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;
1
+ import { C as u, a as p, L as c } from "./components-BQjon_-7.mjs";
2
+ import { c as P } from "./components-BQjon_-7.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;
6
6
  }
7
- function r(e) {
8
- return { assetId: e, name: "", type: "image", objectFit: "cover" };
7
+ function i(t) {
8
+ return { assetId: t, name: "", type: "image", objectFit: "cover" };
9
9
  }
10
- function d(e, { text: n, images: t }) {
11
- switch (e) {
10
+ function d(t, { text: n, images: e }) {
11
+ switch (t) {
12
12
  case "media-pair-list-input":
13
- return t.map((a) => ({ media: [r(a), r("")] }));
13
+ return e.map((o) => ({ media: [i(o), i("")] }));
14
14
  case "media-list-input":
15
- return t.map(r);
15
+ return e.map(i);
16
16
  case "media-input":
17
- return t.length > 0 ? r(t[0]) : { assetId: "", name: "" };
17
+ return e.length > 0 ? i(e[0]) : { assetId: "", name: "" };
18
18
  case "rich-text":
19
19
  return [{ type: "paragraph", children: [{ text: n }] }];
20
20
  case "link-input":
@@ -23,34 +23,38 @@ function d(e, { text: n, images: t }) {
23
23
  return n;
24
24
  }
25
25
  }
26
- function m(e, { pageId: n, slug: t }) {
27
- return e === "link-input" ? { type: "page", value: n, target: "self" } : `/${t}`;
26
+ function m(t, n) {
27
+ var e;
28
+ return n === "year" ? ((e = t.match(/\d{4}/)) == null ? void 0 : e[0]) ?? t : t;
28
29
  }
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;
30
+ function f(t, { pageId: n, slug: e }) {
31
+ return t === "link-input" ? { type: "page", value: n, target: "self" } : `/${e}`;
32
+ }
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]) => {
37
+ var s;
38
+ const l = (s = r.display) == null ? void 0 : s.type;
35
39
  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
+ 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)
40
44
  };
41
45
  });
42
46
  }
43
- const v = [
44
- s.id,
47
+ const b = [
45
48
  u.id,
49
+ p.id,
46
50
  c.id
47
51
  ];
48
52
  export {
49
53
  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
54
+ F as getAvailableStatePanels,
55
+ v as getPostFieldBindings,
56
+ h as getUnavailableStates,
57
+ j as isPanelAvailable,
58
+ y as isSchemaV1,
59
+ b as nonForkableComponentIds
56
60
  };
package/dist/sources.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./ChroniclesComponent-Os_r2IYg.js"),e=`import { Fragment, useEffect, useLayoutEffect, useMemo, useRef, useState, type CSSProperties, type MouseEvent, type PointerEvent, type ReactNode } from 'react';
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./ChroniclesComponent-D4_6w8f7.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';
@@ -2694,8 +2694,21 @@ import { useLightboxScrollLock } from '../utils/useLightboxScrollLock';
2694
2694
  export const CHRONICLES_EXTRA_TITLE_KEYS = ['title2', 'title3', 'title4'] as const;
2695
2695
  export const CHRONICLES_COLUMN_WIDTH_KEYS = ['column1Width', 'column2Width', 'column3Width', 'column4Width'] as const;
2696
2696
  export const CHRONICLES_COLUMN_STYLE_PREFIXES = ['column1', 'column2', 'column3', 'column4', 'column5'] as const;
2697
+ export const CHRONICLES_COLUMN_KEYS = ['group', 'title', ...CHRONICLES_EXTRA_TITLE_KEYS] as const;
2698
+ export const CHRONICLES_COLUMN_LETTERS = ['A', 'B', 'C', 'D', 'E'] as const;
2697
2699
 
2698
- const TITLE_KEYS = ['title', ...CHRONICLES_EXTRA_TITLE_KEYS] as const;
2700
+ export type ChroniclesColumnKey = typeof CHRONICLES_COLUMN_KEYS[number];
2701
+
2702
+ export const CHRONICLES_COLUMN_STYLE_PREFIX_BY_KEY = Object.fromEntries(
2703
+ CHRONICLES_COLUMN_KEYS.map((key, index) => [key, CHRONICLES_COLUMN_STYLE_PREFIXES[index]]),
2704
+ ) as Record<ChroniclesColumnKey, typeof CHRONICLES_COLUMN_STYLE_PREFIXES[number]>;
2705
+
2706
+ export function getChroniclesColumnsOrder(order: unknown): ChroniclesColumnKey[] {
2707
+ const saved = Array.isArray(order)
2708
+ ? order.filter((key): key is ChroniclesColumnKey => (CHRONICLES_COLUMN_KEYS as readonly unknown[]).includes(key))
2709
+ : [];
2710
+ return [...new Set([...saved, ...CHRONICLES_COLUMN_KEYS])];
2711
+ }
2699
2712
 
2700
2713
  const PANEL_POSITION_OFFSETS = {
2701
2714
  center: { x: '50%', y: '50%' },
@@ -2739,7 +2752,7 @@ const COLOR_VAR_MAP = {
2739
2752
 
2740
2753
  const PADDING_CONTROLS = [
2741
2754
  { side: 'top', axis: 'y', variant: 'row-padding' },
2742
- { side: 'bottom', axis: 'y', variant: 'row-padding', reverse: true },
2755
+ { side: 'bottom', axis: 'y', variant: 'row-padding',},
2743
2756
  { side: 'left', axis: 'x', variant: 'column-padding', opposite: 'right' },
2744
2757
  { side: 'right', axis: 'x', variant: 'column-padding', opposite: 'left', reverse: true },
2745
2758
  ] as const;
@@ -2789,6 +2802,7 @@ type PrefixedTextStyle<Prefix extends string> = {
2789
2802
 
2790
2803
  type ColumnLayoutSettings = Partial<Record<ColumnWidthKey, number>> & {
2791
2804
  columns: number;
2805
+ columnsOrder?: string[];
2792
2806
  columnGap: number;
2793
2807
  panelWidth: number;
2794
2808
  panelPadding: Padding;
@@ -2830,14 +2844,33 @@ export function getChroniclesEqualColumnWidths(settings: ColumnLayoutSettings):
2830
2844
  return Object.fromEntries(CHRONICLES_COLUMN_WIDTH_KEYS.slice(0, settings.columns - 1).map((key) => [key, width]));
2831
2845
  }
2832
2846
 
2833
- export function applyChroniclesColumnCountChange(
2847
+ export function applyChroniclesLayoutSettingsChange(
2834
2848
  nextSettings: Record<string, any>,
2835
2849
  prevSettings: Record<string, any>,
2836
2850
  ): Record<string, any> {
2837
- if (typeof nextSettings.columns !== 'number' || nextSettings.columns === prevSettings.columns) {
2851
+ const merged = { ...prevSettings, ...nextSettings } as ColumnLayoutSettings;
2852
+ if (typeof nextSettings.columns === 'number' && nextSettings.columns !== prevSettings.columns) {
2853
+ return { ...nextSettings, ...getChroniclesEqualColumnWidths(merged) };
2854
+ }
2855
+
2856
+ const nextOrder = getChroniclesColumnsOrder(nextSettings.columnsOrder);
2857
+ const prevOrder = getChroniclesColumnsOrder(prevSettings.columnsOrder);
2858
+ if (typeof merged.columns !== 'number' || nextOrder.every((key, index) => key === prevOrder[index])) {
2838
2859
  return nextSettings;
2839
2860
  }
2840
- return { ...nextSettings, ...getChroniclesEqualColumnWidths({ ...prevSettings, ...nextSettings } as ColumnLayoutSettings) };
2861
+
2862
+ const prevWidths = resolveColumnWidths(merged);
2863
+ const prevShown = prevOrder.slice(0, merged.columns);
2864
+ const nextShown = nextOrder.slice(0, merged.columns);
2865
+ const freedWidths = prevShown.flatMap((key, slot) => (nextShown.includes(key) ? [] : [prevWidths[slot]]));
2866
+ const widths = nextShown.map((key) => {
2867
+ const prevSlot = prevShown.indexOf(key);
2868
+ return prevSlot >= 0 ? prevWidths[prevSlot] : freedWidths.shift() ?? 0;
2869
+ });
2870
+ return {
2871
+ ...nextSettings,
2872
+ ...Object.fromEntries(CHRONICLES_COLUMN_WIDTH_KEYS.slice(0, merged.columns - 1).map((key, slot) => [key, widths[slot]])),
2873
+ };
2841
2874
  }
2842
2875
 
2843
2876
  function resolveColumnWidths(settings: ColumnLayoutSettings): number[] {
@@ -2856,11 +2889,11 @@ function getGridTemplateColumns(widths: number[]): string {
2856
2889
  return widths.map((width) => \`minmax(0, \${total > 0 ? (width / total) * 100 : 1}fr)\`).join(' ');
2857
2890
  }
2858
2891
 
2859
- // A row with an empty group continues the group above it.
2860
- function groupRows(items: ChroniclesItem[]): ChroniclesGroup[] {
2892
+ // The first column groups the rows: a row with it empty continues the group above it.
2893
+ function groupRows(items: ChroniclesItem[], groupKey: ChroniclesColumnKey): ChroniclesGroup[] {
2861
2894
  const groups: ChroniclesGroup[] = [];
2862
2895
  items.forEach((item, index) => {
2863
- const label = item.group?.trim() ?? '';
2896
+ const label = item[groupKey]?.trim() ?? '';
2864
2897
  const current = groups[groups.length - 1];
2865
2898
  if (!current || (label !== '' && label !== current.label)) {
2866
2899
  groups.push({ label, rows: [{ item, index }] });
@@ -3292,11 +3325,13 @@ export function Chronicles({
3292
3325
  const scopedCss = useMemo(() => getCSS(P), [P]);
3293
3326
  const panelOffset = PANEL_POSITION_OFFSETS[panelPosition];
3294
3327
  const columnWidths = resolveColumnWidths(settings);
3295
- const titleKeys = TITLE_KEYS.slice(0, columns - 1);
3328
+ const shownKeys = getChroniclesColumnsOrder(settings.columnsOrder).slice(0, columns);
3296
3329
  const hasGroupColumn = columns > 1;
3330
+ const groupKey = shownKeys[0];
3331
+ const rowKeys = hasGroupColumn ? shownKeys.slice(1) : shownKeys;
3297
3332
  const groups = useMemo<ChroniclesGroup[]>(() => (
3298
- hasGroupColumn ? groupRows(items) : [{ label: '', rows: items.map((item, index) => ({ item, index })) }]
3299
- ), [items, hasGroupColumn]);
3333
+ hasGroupColumn ? groupRows(items, groupKey) : [{ label: '', rows: items.map((item, index) => ({ item, index })) }]
3334
+ ), [items, hasGroupColumn, groupKey]);
3300
3335
 
3301
3336
  const activeMedia = activeIndex === null ? [] : getRowMedia(items[activeIndex]);
3302
3337
  const shownAsset = activeMedia[activeMediaIndex];
@@ -3479,9 +3514,11 @@ export function Chronicles({
3479
3514
  };
3480
3515
 
3481
3516
  const triggerTypographyCss = omitTextColors(textStylesToCss(resolveTextStyle(settings, 'trigger'), isEditor));
3482
- const columnTypographyCss = CHRONICLES_COLUMN_STYLE_PREFIXES.slice(0, columns).map((prefix) => (
3483
- omitTextColors(textStylesToCss(resolveTextStyle(settings, prefix), isEditor))
3517
+ // one per shown column, in slot order
3518
+ const columnTypographyCss = shownKeys.map((key) => (
3519
+ omitTextColors(textStylesToCss(resolveTextStyle(settings, CHRONICLES_COLUMN_STYLE_PREFIX_BY_KEY[key]), isEditor))
3484
3520
  ));
3521
+ const rowTypographyCss = hasGroupColumn ? columnTypographyCss.slice(1) : columnTypographyCss;
3485
3522
  const labelLineHeight = columnTypographyCss[0].lineHeight;
3486
3523
  const titleLineHeight = columnTypographyCss[1]?.lineHeight;
3487
3524
  const groupLabelOffset = labelLineHeight !== undefined && titleLineHeight !== undefined
@@ -3560,7 +3597,6 @@ export function Chronicles({
3560
3597
  data-controls="groupGap"
3561
3598
  data-controls-paired=""
3562
3599
  data-controls-axis="y"
3563
- data-controls-reverse=""
3564
3600
  data-controls-min="0"
3565
3601
  className={\`\${P}-control-anchor\`}
3566
3602
  style={{ left: 0, width: '100%', height: scaled(Math.max(groupGap, MIN_HANDLE_SIZE)) }}
@@ -3600,11 +3636,8 @@ export function Chronicles({
3600
3636
  {...linkProps}
3601
3637
  {...hoverProps}
3602
3638
  >
3603
- {!hasGroupColumn && (
3604
- <div className={\`\${P}-title\`} style={columnTypographyCss[0]}>{item.group}</div>
3605
- )}
3606
- {titleKeys.map((key, titleIndex) => (
3607
- <div key={key} className={\`\${P}-title\`} style={columnTypographyCss[titleIndex + 1]}>{item[key]}</div>
3639
+ {rowKeys.map((key, cellIndex) => (
3640
+ <div key={key} className={\`\${P}-title\`} style={rowTypographyCss[cellIndex]}>{item[key]}</div>
3608
3641
  ))}
3609
3642
  </RowElement>
3610
3643
  );
@@ -10994,6 +11027,11 @@ import { getAspectRatio, isImageRatioCover, type ImageRatioFit } from '../utils/
10994
11027
  import { LightboxOverlay } from './LightboxOverlay';
10995
11028
  import { buildJournalSlides, findJournalUrlSlideNumber, getEntryImages, hasJournalUrlParam, removeJournalUrlParam, setJournalUrlParam, slideNumberToIndex } from './utils';
10996
11029
 
11030
+ const HOVER_ANIM_MS = 400;
11031
+ const HOVER_EASING = 'cubic-bezier(0.25, 0.1, 0.25, 1)';
11032
+ const HOVER_ZOOM = 1.1;
11033
+ const HOVER_ZOOM_INSET = \`\${(((1 - 1 / HOVER_ZOOM) / 2) * 100).toFixed(4)}%\`;
11034
+
10997
11035
  function getCSS(P: string): string {
10998
11036
  return \`
10999
11037
  .\${P}-wrapper {
@@ -11040,6 +11078,32 @@ function getCSS(P: string): string {
11040
11078
  max-width: 100%;
11041
11079
  }
11042
11080
 
11081
+ .\${P}-hover-zoom-in .\${P}-cover-image {
11082
+ clip-path: inset(0);
11083
+ transition: transform \${HOVER_ANIM_MS}ms \${HOVER_EASING}, clip-path \${HOVER_ANIM_MS}ms \${HOVER_EASING};
11084
+ }
11085
+
11086
+ .\${P}-hover-scale-down .\${P}-cover-image {
11087
+ transition: transform \${HOVER_ANIM_MS}ms \${HOVER_EASING};
11088
+ }
11089
+
11090
+ .\${P}-hover-greyscale .\${P}-cover-image {
11091
+ transition: filter \${HOVER_ANIM_MS}ms \${HOVER_EASING};
11092
+ }
11093
+
11094
+ @media (hover: hover) {
11095
+ .\${P}-hover-zoom-in .\${P}-cover:hover .\${P}-cover-image {
11096
+ transform: scale(\${HOVER_ZOOM});
11097
+ clip-path: inset(\${HOVER_ZOOM_INSET});
11098
+ }
11099
+ .\${P}-hover-scale-down .\${P}-cover:hover .\${P}-cover-image {
11100
+ transform: scale(0.9);
11101
+ }
11102
+ .\${P}-hover-greyscale .\${P}-cover:hover .\${P}-cover-image {
11103
+ filter: grayscale(1);
11104
+ }
11105
+ }
11106
+
11043
11107
  .\${P}-lightbox {
11044
11108
  position: fixed;
11045
11109
  inset: 0;
@@ -11545,7 +11609,8 @@ type LightboxJournalProps = {
11545
11609
  export const LightboxJournal = ({ settings, content, isEditor, isEditMode, isPreviewMode, portalId, metadata }: LightboxJournalProps) => {
11546
11610
  const { prefix: P } = useScopedStyles();
11547
11611
  const itemId = metadata?.itemId ?? null;
11548
- const { cover, coverFit, type } = settings;
11612
+ const { cover, coverFit, type, hover = 'none' } = settings;
11613
+ const hoverEffectClass = hover !== 'none' && (!isEditor || isPreviewMode) ? \` \${P}-hover-\${hover}\` : '';
11549
11614
  const wrapperRef = useRef<HTMLDivElement>(null);
11550
11615
  const [lightboxOpen, setLightboxOpen] = useState(false);
11551
11616
  const [lightboxInitialSlideIndex, setLightboxInitialSlideIndex] = useState(0);
@@ -11638,7 +11703,7 @@ export const LightboxJournal = ({ settings, content, isEditor, isEditMode, isPre
11638
11703
 
11639
11704
  return (
11640
11705
  <>
11641
- <div ref={wrapperRef} className={\`\${P}-wrapper\`}>
11706
+ <div ref={wrapperRef} className={\`\${P}-wrapper\${hoverEffectClass}\`}>
11642
11707
  <style dangerouslySetInnerHTML={{ __html: getCSS(P) }} />
11643
11708
  {cover ? (
11644
11709
  <button
@@ -11692,6 +11757,7 @@ export const LightboxJournal = ({ settings, content, isEditor, isEditMode, isPre
11692
11757
  export type LightboxJournalSettings = {
11693
11758
  cover: string | null;
11694
11759
  coverFit: ImageRatioFit;
11760
+ hover?: 'none' | 'zoom-in' | 'greyscale' | 'scale-down';
11695
11761
  type: 'A' | 'B';
11696
11762
  maxWidth: number;
11697
11763
  maxHeight: number;
@@ -11775,6 +11841,11 @@ export type {
11775
11841
  StripTitleWidthKey,
11776
11842
  } from './utils';
11777
11843
 
11844
+ const HOVER_ANIM_MS = 400;
11845
+ const HOVER_EASING = 'cubic-bezier(0.25, 0.1, 0.25, 1)';
11846
+ const HOVER_ZOOM = 1.1;
11847
+ const HOVER_ZOOM_INSET = \`\${(((1 - 1 / HOVER_ZOOM) / 2) * 100).toFixed(4)}%\`;
11848
+
11778
11849
  function getCSS(P: string): string {
11779
11850
  return \`
11780
11851
  .\${P}-wrapper {
@@ -11821,6 +11892,32 @@ function getCSS(P: string): string {
11821
11892
  max-width: 100%;
11822
11893
  }
11823
11894
 
11895
+ .\${P}-hover-zoom-in .\${P}-cover-image {
11896
+ clip-path: inset(0);
11897
+ transition: transform \${HOVER_ANIM_MS}ms \${HOVER_EASING}, clip-path \${HOVER_ANIM_MS}ms \${HOVER_EASING};
11898
+ }
11899
+
11900
+ .\${P}-hover-scale-down .\${P}-cover-image {
11901
+ transition: transform \${HOVER_ANIM_MS}ms \${HOVER_EASING};
11902
+ }
11903
+
11904
+ .\${P}-hover-greyscale .\${P}-cover-image {
11905
+ transition: filter \${HOVER_ANIM_MS}ms \${HOVER_EASING};
11906
+ }
11907
+
11908
+ @media (hover: hover) {
11909
+ .\${P}-hover-zoom-in .\${P}-cover:hover .\${P}-cover-image {
11910
+ transform: scale(\${HOVER_ZOOM});
11911
+ clip-path: inset(\${HOVER_ZOOM_INSET});
11912
+ }
11913
+ .\${P}-hover-scale-down .\${P}-cover:hover .\${P}-cover-image {
11914
+ transform: scale(0.9);
11915
+ }
11916
+ .\${P}-hover-greyscale .\${P}-cover:hover .\${P}-cover-image {
11917
+ filter: grayscale(1);
11918
+ }
11919
+ }
11920
+
11824
11921
  .\${P}-lightbox {
11825
11922
  position: fixed;
11826
11923
  inset: 0;
@@ -12178,6 +12275,7 @@ export type LightboxStripItem = {
12178
12275
  export type LightboxStripSettings = {
12179
12276
  cover: string | null;
12180
12277
  coverFit: ImageRatioFit;
12278
+ hover?: 'none' | 'zoom-in' | 'greyscale' | 'scale-down';
12181
12279
  backgroundColor: string;
12182
12280
  thumbnailVisibility: 'on' | 'off';
12183
12281
  thumbnailSize: number;
@@ -12242,7 +12340,8 @@ type LightboxStripProps = {
12242
12340
 
12243
12341
  export const LightboxStrip = ({ settings, content, isEditor, isEditMode, isPreviewMode, portalId }: LightboxStripProps) => {
12244
12342
  const { prefix: P } = useScopedStyles();
12245
- const { cover, coverFit } = settings;
12343
+ const { cover, coverFit, hover = 'none' } = settings;
12344
+ const hoverEffectClass = hover !== 'none' && (!isEditor || isPreviewMode) ? \` \${P}-hover-\${hover}\` : '';
12246
12345
  const wrapperRef = useRef<HTMLDivElement>(null);
12247
12346
  const [lightboxOpen, setLightboxOpen] = useState(false);
12248
12347
  const items = content ?? [];
@@ -12260,7 +12359,7 @@ export const LightboxStrip = ({ settings, content, isEditor, isEditMode, isPrevi
12260
12359
 
12261
12360
  return (
12262
12361
  <>
12263
- <div ref={wrapperRef} className={\`\${P}-wrapper\`}>
12362
+ <div ref={wrapperRef} className={\`\${P}-wrapper\${hoverEffectClass}\`}>
12264
12363
  <style dangerouslySetInnerHTML={{ __html: getCSS(P) }} />
12265
12364
  {cover && (
12266
12365
  <div
@@ -25204,4 +25303,4 @@ export function Waterfall({
25204
25303
  </>
25205
25304
  );
25206
25305
  }
25207
- `,w={[n.BurgerComponent.id]:e,[n.ChroniclesComponent.id]:t,[n.ClickGallerieComponent.id]:i,[n.FAQComponent.id]:o,[n.FormComponent.id]:r,[n.GridComponent.id]:a,[n.HelixComponent.id]:s,[n.HiveComponent.id]:l,[n.LightboxJournalComponent.id]:c,[n.LightboxStripComponent.id]:d,[n.ListComponent.id]:u,[n.MarqueeComponent.id]:g,[n.MarqueeTextComponent.id]:m,[n.MercuryComponent.id]:p,[n.OnelinerFormComponent.id]:h,[n.PretextComponent.id]:f,[n.ScaleComponent.id]:v,[n.SimpleButtonComponent.id]:P,[n.Slider20Component.id]:x,[n.TestimonialGridComponent.id]:b,[n.TestimonialSingleComponent.id]:y,[n.WaterfallComponent.id]:S};exports.componentSources=w;
25306
+ `,C={[n.BurgerComponent.id]:e,[n.ChroniclesComponent.id]:t,[n.ClickGallerieComponent.id]:i,[n.FAQComponent.id]:o,[n.FormComponent.id]:r,[n.GridComponent.id]:a,[n.HelixComponent.id]:s,[n.HiveComponent.id]:l,[n.LightboxJournalComponent.id]:c,[n.LightboxStripComponent.id]:d,[n.ListComponent.id]:u,[n.MarqueeComponent.id]:g,[n.MarqueeTextComponent.id]:m,[n.MercuryComponent.id]:p,[n.OnelinerFormComponent.id]:h,[n.PretextComponent.id]:f,[n.ScaleComponent.id]:v,[n.SimpleButtonComponent.id]:P,[n.Slider20Component.id]:x,[n.TestimonialGridComponent.id]:b,[n.TestimonialSingleComponent.id]:y,[n.WaterfallComponent.id]:S};exports.componentSources=C;