@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
@@ -4,6 +4,11 @@ import { TextStyles } from '../utils/textStylesToCss';
4
4
  export declare const CHRONICLES_EXTRA_TITLE_KEYS: readonly ["title2", "title3", "title4"];
5
5
  export declare const CHRONICLES_COLUMN_WIDTH_KEYS: readonly ["column1Width", "column2Width", "column3Width", "column4Width"];
6
6
  export declare const CHRONICLES_COLUMN_STYLE_PREFIXES: readonly ["column1", "column2", "column3", "column4", "column5"];
7
+ export declare const CHRONICLES_COLUMN_KEYS: readonly ["group", "title", "title2", "title3", "title4"];
8
+ export declare const CHRONICLES_COLUMN_LETTERS: readonly ["A", "B", "C", "D", "E"];
9
+ export type ChroniclesColumnKey = typeof CHRONICLES_COLUMN_KEYS[number];
10
+ export declare const CHRONICLES_COLUMN_STYLE_PREFIX_BY_KEY: Record<ChroniclesColumnKey, (typeof CHRONICLES_COLUMN_STYLE_PREFIXES)[number]>;
11
+ export declare function getChroniclesColumnsOrder(order: unknown): ChroniclesColumnKey[];
7
12
  declare const PANEL_POSITION_OFFSETS: {
8
13
  readonly center: {
9
14
  readonly x: "50%";
@@ -85,6 +90,7 @@ type PrefixedTextStyle<Prefix extends string> = {
85
90
  };
86
91
  type ColumnLayoutSettings = Partial<Record<ColumnWidthKey, number>> & {
87
92
  columns: number;
93
+ columnsOrder?: string[];
88
94
  columnGap: number;
89
95
  panelWidth: number;
90
96
  panelPadding: Padding;
@@ -115,6 +121,6 @@ type ChroniclesProps = {
115
121
  portalId?: string;
116
122
  } & CommonComponentProps;
117
123
  export declare function getChroniclesEqualColumnWidths(settings: ColumnLayoutSettings): Partial<Record<ColumnWidthKey, number>>;
118
- export declare function applyChroniclesColumnCountChange(nextSettings: Record<string, any>, prevSettings: Record<string, any>): Record<string, any>;
124
+ export declare function applyChroniclesLayoutSettingsChange(nextSettings: Record<string, any>, prevSettings: Record<string, any>): Record<string, any>;
119
125
  export declare function Chronicles({ settings, content, isEditor, isEditMode, isPreviewMode, portalId, currentState, unavailableStates, }: ChroniclesProps): import("react/jsx-runtime").JSX.Element;
120
126
  export {};
@@ -1,11 +1,11 @@
1
1
  import { LayoutItem, SchemaDisplayRule, SchemaProperty } from '../../types/SchemaV1';
2
- import { applyChroniclesColumnCountChange, Chronicles } from './Chronicles';
2
+ import { applyChroniclesLayoutSettingsChange, Chronicles } from './Chronicles';
3
3
  export declare const ChroniclesComponent: {
4
4
  element: typeof Chronicles;
5
5
  id: string;
6
6
  name: string;
7
7
  category: string;
8
- normalizeLayoutSettingsUpdate: typeof applyChroniclesColumnCountChange;
8
+ normalizeLayoutSettingsUpdate: typeof applyChroniclesLayoutSettingsChange;
9
9
  preview: {
10
10
  type: "image";
11
11
  url: string;
@@ -23,6 +23,10 @@ export declare const ChroniclesComponent: {
23
23
  };
24
24
  display: {
25
25
  type: string;
26
+ ref: {
27
+ columnsOrder: string;
28
+ columnsCount: string;
29
+ };
26
30
  rules: SchemaDisplayRule[];
27
31
  };
28
32
  items: {
@@ -64,6 +68,7 @@ export declare const ChroniclesComponent: {
64
68
  type: "string";
65
69
  label: string;
66
70
  contentKey: "date";
71
+ contentFormat: "year";
67
72
  placeholder: string;
68
73
  display: {
69
74
  type: string;
@@ -172,6 +177,22 @@ export declare const ChroniclesComponent: {
172
177
  min: number;
173
178
  max: number;
174
179
  };
180
+ columnsOrder: {
181
+ type: "array";
182
+ scope: "layout";
183
+ title: string;
184
+ display: {
185
+ type: string;
186
+ options: {
187
+ value: "group" | "title" | "title2" | "title3" | "title4";
188
+ label: "A" | "B" | "C" | "D" | "E";
189
+ }[];
190
+ visibleCountKey: string;
191
+ };
192
+ items: {
193
+ type: "string";
194
+ };
195
+ };
175
196
  columnGap: SchemaProperty;
176
197
  };
177
198
  defaults: {
@@ -204,6 +225,7 @@ export declare const ChroniclesComponent: {
204
225
  type: string;
205
226
  panelPosition: string;
206
227
  columns: number;
228
+ columnsOrder: ("group" | "title" | "title2" | "title3" | "title4")[];
207
229
  columnGap: number;
208
230
  panelWidth: number;
209
231
  panelPadding: {
@@ -221,6 +243,7 @@ export declare const ChroniclesComponent: {
221
243
  type: string;
222
244
  panelPosition: string;
223
245
  columns: number;
246
+ columnsOrder: ("group" | "title" | "title2" | "title3" | "title4")[];
224
247
  columnGap: number;
225
248
  panelWidth: number;
226
249
  panelPadding: {
@@ -238,6 +261,7 @@ export declare const ChroniclesComponent: {
238
261
  type: string;
239
262
  panelPosition: string;
240
263
  columns: number;
264
+ columnsOrder: ("group" | "title" | "title2" | "title3" | "title4")[];
241
265
  columnGap: number;
242
266
  panelWidth: number;
243
267
  panelPadding: {
@@ -24,6 +24,7 @@ export declare const LightboxJournal: ({ settings, content, isEditor, isEditMode
24
24
  export type LightboxJournalSettings = {
25
25
  cover: string | null;
26
26
  coverFit: ImageRatioFit;
27
+ hover?: 'none' | 'zoom-in' | 'greyscale' | 'scale-down';
27
28
  type: 'A' | 'B';
28
29
  maxWidth: number;
29
30
  maxHeight: number;
@@ -16,6 +16,7 @@ export type LightboxStripItem = {
16
16
  export type LightboxStripSettings = {
17
17
  cover: string | null;
18
18
  coverFit: ImageRatioFit;
19
+ hover?: 'none' | 'zoom-in' | 'greyscale' | 'scale-down';
19
20
  backgroundColor: string;
20
21
  thumbnailVisibility: 'on' | 'off';
21
22
  thumbnailSize: number;