@styleflow.app/flowpress-astro-core 1.0.0-beta.43 → 1.0.0-beta.45

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.
@@ -6,6 +6,12 @@ export const SF_MOTION_STATIC_CLASS = "sf-motion-static";
6
6
 
7
7
  export const SF_MOTION_DISABLE_CLASS = "sf-motion-disable";
8
8
 
9
+ /**
10
+ * Opts a subtree out of reveals only. Unlike `sf-motion-disable`, transitions
11
+ * and animations inside it keep running (a carousel track moves its slides).
12
+ */
13
+ export const SF_REVEAL_SKIP_CLASS = "sf-reveal-skip";
14
+
9
15
  export const SF_MOTION_DRAWER_EXIT_MS = 820;
10
16
 
11
17
  export const SF_REVEAL_VISIBLE_RATIO = 0.2;
@@ -163,7 +169,8 @@ export function ruleRevealClassChanges(
163
169
  const classes = Array.from(existingClasses);
164
170
  if (
165
171
  classes.includes(SF_MOTION_STATIC_CLASS) ||
166
- classes.includes(SF_MOTION_DISABLE_CLASS)
172
+ classes.includes(SF_MOTION_DISABLE_CLASS) ||
173
+ classes.includes(SF_REVEAL_SKIP_CLASS)
167
174
  ) {
168
175
  return { add: [], remove: [] };
169
176
  }
@@ -202,7 +209,8 @@ export function automaticRevealClasses(
202
209
  const classes = Array.from(existingClasses);
203
210
  if (
204
211
  classes.includes(SF_MOTION_STATIC_CLASS) ||
205
- classes.includes(SF_MOTION_DISABLE_CLASS)
212
+ classes.includes(SF_MOTION_DISABLE_CLASS) ||
213
+ classes.includes(SF_REVEAL_SKIP_CLASS)
206
214
  ) {
207
215
  return [];
208
216
  }
@@ -349,6 +357,8 @@ const SF_MOTION_BOOT_EXCLUDED = [
349
357
  `.${SF_MOTION_STATIC_CLASS}`,
350
358
  `.${SF_MOTION_DISABLE_CLASS}`,
351
359
  `.${SF_MOTION_DISABLE_CLASS} *`,
360
+ `.${SF_REVEAL_SKIP_CLASS}`,
361
+ `.${SF_REVEAL_SKIP_CLASS} *`,
352
362
  SF_MOTION_PROTECTED_CONTENT_SELECTOR,
353
363
  `:has(${SF_MOTION_PROTECTED_CONTENT_SELECTOR})`,
354
364
  ":target",
@@ -0,0 +1,323 @@
1
+ /*
2
+ * FlowPress carousel (sf/carousel). Shared verbatim with the WordPress block editor, where Splide
3
+ * never mounts: the static layout below reproduces Splide at rest (slide widths, peeks, gap,
4
+ * centring), so the editor, the page before mounting and the mounted carousel look the same.
5
+ * It must not rely on splide-core.css, which only the frontend loads. Geometry comes from the
6
+ * custom properties written by `carouselLayout()`; colours come from the StyleFlow context.
7
+ */
8
+ .flowpress-carousel {
9
+ --flowpress-carousel-icon-fg: var(--sf-foreground-primary, currentColor);
10
+ --flowpress-carousel-veil: color-mix(in oklab, var(--flowpress-carousel-icon-fg) 30%, transparent);
11
+ --flowpress-carousel-arrow-size: 2.5rem;
12
+ --flowpress-carousel-arrow-radius: var(--sf-layout-chip-regular-radius, 999px);
13
+ --flowpress-carousel-slide: var(--flowpress-carousel-slide-base, 100%);
14
+ --flowpress-carousel-peek-start: var(--flowpress-carousel-peek-start-base, 0px);
15
+ --flowpress-carousel-peek-end: var(--flowpress-carousel-peek-end-base, 0px);
16
+ --flowpress-carousel-shift: var(--flowpress-carousel-shift-base, 0px);
17
+ --flowpress-carousel-edge: var(--flowpress-carousel-edge-base, 0px);
18
+ position: relative;
19
+ display: grid;
20
+ grid-template-columns: minmax(0, 1fr);
21
+ grid-template-areas: "arrows" "track" "pagination";
22
+ min-width: 0;
23
+ }
24
+ @media (min-width: 40rem) {
25
+ .flowpress-carousel {
26
+ --flowpress-carousel-slide: var(--flowpress-carousel-slide-sm, 100%);
27
+ --flowpress-carousel-peek-start: var(--flowpress-carousel-peek-start-sm, 0px);
28
+ --flowpress-carousel-peek-end: var(--flowpress-carousel-peek-end-sm, 0px);
29
+ --flowpress-carousel-shift: var(--flowpress-carousel-shift-sm, 0px);
30
+ --flowpress-carousel-edge: var(--flowpress-carousel-edge-sm, 0px);
31
+ }
32
+ }
33
+ @media (min-width: 48rem) {
34
+ .flowpress-carousel {
35
+ --flowpress-carousel-slide: var(--flowpress-carousel-slide-md, 100%);
36
+ --flowpress-carousel-peek-start: var(--flowpress-carousel-peek-start-md, 0px);
37
+ --flowpress-carousel-peek-end: var(--flowpress-carousel-peek-end-md, 0px);
38
+ --flowpress-carousel-shift: var(--flowpress-carousel-shift-md, 0px);
39
+ --flowpress-carousel-edge: var(--flowpress-carousel-edge-md, 0px);
40
+ }
41
+ }
42
+ @media (min-width: 64rem) {
43
+ .flowpress-carousel {
44
+ --flowpress-carousel-slide: var(--flowpress-carousel-slide-lg, 100%);
45
+ --flowpress-carousel-peek-start: var(--flowpress-carousel-peek-start-lg, 0px);
46
+ --flowpress-carousel-peek-end: var(--flowpress-carousel-peek-end-lg, 0px);
47
+ --flowpress-carousel-shift: var(--flowpress-carousel-shift-lg, 0px);
48
+ --flowpress-carousel-edge: var(--flowpress-carousel-edge-lg, 0px);
49
+ }
50
+ }
51
+ @media (min-width: 80rem) {
52
+ .flowpress-carousel {
53
+ --flowpress-carousel-slide: var(--flowpress-carousel-slide-xl, 100%);
54
+ --flowpress-carousel-peek-start: var(--flowpress-carousel-peek-start-xl, 0px);
55
+ --flowpress-carousel-peek-end: var(--flowpress-carousel-peek-end-xl, 0px);
56
+ --flowpress-carousel-shift: var(--flowpress-carousel-shift-xl, 0px);
57
+ --flowpress-carousel-edge: var(--flowpress-carousel-edge-xl, 0px);
58
+ }
59
+ }
60
+ @media (min-width: 96rem) {
61
+ .flowpress-carousel {
62
+ --flowpress-carousel-slide: var(--flowpress-carousel-slide-2xl, 100%);
63
+ --flowpress-carousel-peek-start: var(--flowpress-carousel-peek-start-2xl, 0px);
64
+ --flowpress-carousel-peek-end: var(--flowpress-carousel-peek-end-2xl, 0px);
65
+ --flowpress-carousel-shift: var(--flowpress-carousel-shift-2xl, 0px);
66
+ --flowpress-carousel-edge: var(--flowpress-carousel-edge-2xl, 0px);
67
+ }
68
+ }
69
+
70
+ /* The page shows the static layout until Splide mounts: no shift, no hidden first paint. */
71
+ .flowpress-carousel:not(.is-initialized) {
72
+ visibility: visible;
73
+ }
74
+
75
+ /* Track and slides: the same box model Splide sets inline once mounted. */
76
+ .flowpress-carousel .splide__track {
77
+ grid-area: track;
78
+ position: relative;
79
+ z-index: 0;
80
+ min-width: 0;
81
+ overflow: hidden;
82
+ padding-inline: var(--flowpress-carousel-peek-start) var(--flowpress-carousel-peek-end);
83
+ }
84
+ .flowpress-carousel .splide__list {
85
+ display: flex;
86
+ margin: 0;
87
+ padding: 0;
88
+ list-style: none;
89
+ transform: translateX(var(--flowpress-carousel-shift));
90
+ }
91
+ .flowpress-carousel .splide__list > * {
92
+ position: relative;
93
+ flex: 0 0 auto;
94
+ box-sizing: border-box;
95
+ inline-size: var(--flowpress-carousel-slide);
96
+ min-inline-size: 0;
97
+ margin: 0;
98
+ margin-inline-end: var(--flowpress-carousel-gap, 24px);
99
+ list-style: none;
100
+ }
101
+ .flowpress-carousel[data-aspect] .splide__list > * {
102
+ aspect-ratio: var(--flowpress-carousel-aspect);
103
+ }
104
+ .flowpress-carousel:is([data-aspect], [data-equal-height]) .splide__list > * {
105
+ display: flex;
106
+ flex-direction: column;
107
+ }
108
+ .flowpress-carousel:is([data-aspect], [data-equal-height]) .splide__list > * > * {
109
+ flex: 1 1 auto;
110
+ }
111
+ /* Fade shows one item at a time; the others wait in place until Splide mounts. */
112
+ .flowpress-carousel[data-effect="fade"]:not(.is-initialized) .splide__list > :not(:first-child) {
113
+ visibility: hidden;
114
+ }
115
+ /* Without JavaScript every item stays reachable by scrolling sideways. */
116
+ @media (scripting: none) {
117
+ .flowpress-carousel .splide__track {
118
+ overflow-x: auto;
119
+ scroll-snap-type: x mandatory;
120
+ }
121
+ .flowpress-carousel .splide__list {
122
+ transform: none;
123
+ }
124
+ .flowpress-carousel .splide__list > * {
125
+ scroll-snap-align: start;
126
+ visibility: visible;
127
+ }
128
+ .flowpress-carousel [data-flowpress-carousel-controls],
129
+ .flowpress-carousel .splide__pagination,
130
+ .flowpress-carousel .flowpress-carousel__counter {
131
+ display: none;
132
+ }
133
+ }
134
+
135
+ /* Controls: a transparent hit area around a StyleFlow-coloured icon. */
136
+ .flowpress-carousel[data-arrows-size="sm"] { --flowpress-carousel-arrow-size: 2rem; }
137
+ .flowpress-carousel[data-arrows-size="lg"] { --flowpress-carousel-arrow-size: 3rem; }
138
+ .flowpress-carousel[data-arrows-shape="rounded"] { --flowpress-carousel-arrow-radius: var(--sf-layout-control-regular-radius, 0.5rem); }
139
+ .flowpress-carousel[data-arrows-shape="square"] { --flowpress-carousel-arrow-radius: 0; }
140
+ /* Rows without a control collapse: spacing sits on the controls, never on the grid. */
141
+ .flowpress-carousel .splide__arrows {
142
+ grid-area: arrows;
143
+ display: flex;
144
+ align-items: center;
145
+ justify-content: space-between;
146
+ gap: 0.5rem;
147
+ margin: 0 0 0.75rem;
148
+ }
149
+ .flowpress-carousel .splide__arrow {
150
+ display: grid;
151
+ place-items: center;
152
+ margin: 0;
153
+ padding: 0;
154
+ border: 0;
155
+ background: none;
156
+ color: var(--flowpress-carousel-icon-fg);
157
+ cursor: pointer;
158
+ }
159
+ .flowpress-carousel .flowpress-carousel__icon {
160
+ display: grid;
161
+ place-items: center;
162
+ inline-size: var(--flowpress-carousel-arrow-size);
163
+ block-size: var(--flowpress-carousel-arrow-size);
164
+ border-radius: var(--flowpress-carousel-arrow-radius);
165
+ background: var(--flowpress-carousel-control-bg, transparent);
166
+ color: var(--flowpress-carousel-icon-fg);
167
+ }
168
+ .flowpress-carousel .flowpress-carousel__icon svg {
169
+ inline-size: 45%;
170
+ block-size: 45%;
171
+ }
172
+ .flowpress-carousel .splide__arrow:disabled {
173
+ opacity: 0.45;
174
+ cursor: default;
175
+ }
176
+ .flowpress-carousel .splide__arrow:focus-visible {
177
+ outline: none;
178
+ }
179
+ .flowpress-carousel .splide__arrow:focus-visible .flowpress-carousel__icon,
180
+ .flowpress-carousel .splide__pagination__page:focus-visible,
181
+ .flowpress-carousel .splide__toggle:focus-visible {
182
+ outline: 3px solid var(--flowpress-carousel-icon-fg);
183
+ outline-offset: 3px;
184
+ }
185
+
186
+ .flowpress-carousel[data-arrows="top-end"] .splide__arrows { justify-content: flex-end; }
187
+ .flowpress-carousel:is([data-arrows="bottom"], [data-arrows="bottom-end"]) {
188
+ grid-template-areas: "track" "arrows" "pagination";
189
+ }
190
+ .flowpress-carousel:is([data-arrows="bottom"], [data-arrows="bottom-end"]) .splide__arrows {
191
+ margin: 0.75rem 0 0;
192
+ }
193
+ .flowpress-carousel[data-arrows="bottom"] .splide__arrows { justify-content: center; }
194
+ .flowpress-carousel[data-arrows="bottom-end"] .splide__arrows { justify-content: flex-end; }
195
+ /* Arrows over the slides: they share the track's grid area. */
196
+ .flowpress-carousel:is([data-arrows="sides"], [data-arrows="edges"]) .splide__arrows {
197
+ grid-area: track;
198
+ z-index: 2;
199
+ margin: 0;
200
+ pointer-events: none;
201
+ }
202
+ .flowpress-carousel:is([data-arrows="sides"], [data-arrows="edges"]) .splide__arrow {
203
+ pointer-events: auto;
204
+ }
205
+ .flowpress-carousel[data-arrows="sides"] .splide__arrows {
206
+ padding-inline: 0.75rem;
207
+ }
208
+ .flowpress-carousel[data-arrows="edges"] .splide__arrows {
209
+ align-items: stretch;
210
+ }
211
+ .flowpress-carousel[data-arrows="edges"] .splide__arrow {
212
+ inline-size: clamp(var(--flowpress-carousel-arrow-size), var(--flowpress-carousel-edge), 6.25rem);
213
+ background: var(--flowpress-carousel-veil);
214
+ }
215
+ /* Arrows outside the slides: one column on each side of the track. */
216
+ .flowpress-carousel[data-arrows="outside"] {
217
+ grid-template-columns: auto minmax(0, 1fr) auto;
218
+ grid-template-areas: "prev track next" ". pagination .";
219
+ column-gap: 0.75rem;
220
+ }
221
+ .flowpress-carousel[data-arrows="outside"] .splide__arrows { display: contents; }
222
+ .flowpress-carousel[data-arrows="outside"] .splide__arrow--prev { grid-area: prev; }
223
+ .flowpress-carousel[data-arrows="outside"] .splide__arrow--next { grid-area: next; }
224
+
225
+ /* Below md the arrows can move under the slides or disappear (swipe stays available). */
226
+ @media (width < 48rem) {
227
+ .flowpress-carousel[data-arrows-mobile="hidden"] .splide__arrows {
228
+ display: none;
229
+ }
230
+ .flowpress-carousel[data-arrows-mobile="bottom"] {
231
+ grid-template-columns: minmax(0, 1fr);
232
+ grid-template-areas: "track" "arrows" "pagination";
233
+ column-gap: 0;
234
+ }
235
+ .flowpress-carousel[data-arrows-mobile="bottom"] .splide__arrows {
236
+ display: flex;
237
+ grid-area: arrows;
238
+ justify-content: center;
239
+ align-items: center;
240
+ margin: 0.75rem 0 0;
241
+ padding-inline: 0;
242
+ pointer-events: auto;
243
+ }
244
+ .flowpress-carousel[data-arrows-mobile="bottom"] .splide__arrow {
245
+ grid-area: auto;
246
+ inline-size: auto;
247
+ background: none;
248
+ }
249
+ }
250
+
251
+ /* Pagination: dots or bars in the controls colour, the active one in the context foreground. */
252
+ .flowpress-carousel .splide__pagination {
253
+ grid-area: pagination;
254
+ display: flex;
255
+ flex-wrap: wrap;
256
+ align-items: center;
257
+ justify-content: center;
258
+ gap: 0.5rem;
259
+ margin: 0.75rem 0 0;
260
+ padding: 0;
261
+ list-style: none;
262
+ }
263
+ .flowpress-carousel .splide__pagination li {
264
+ display: inline-flex;
265
+ margin: 0;
266
+ list-style: none;
267
+ }
268
+ .flowpress-carousel .splide__pagination__page {
269
+ inline-size: 0.625rem;
270
+ block-size: 0.625rem;
271
+ margin: 0;
272
+ padding: 0;
273
+ border: 0;
274
+ border-radius: var(--sf-layout-chip-regular-radius, 999px);
275
+ background: var(--flowpress-carousel-control-bg, var(--flowpress-carousel-veil));
276
+ cursor: pointer;
277
+ }
278
+ .flowpress-carousel .splide__pagination__page.is-active {
279
+ background: var(--flowpress-carousel-icon-fg);
280
+ }
281
+ .flowpress-carousel[data-pagination="bars"] .splide__pagination__page {
282
+ inline-size: 1.5rem;
283
+ block-size: 0.25rem;
284
+ border-radius: 0.125rem;
285
+ }
286
+ .flowpress-carousel .flowpress-carousel__counter {
287
+ grid-area: pagination;
288
+ justify-self: center;
289
+ margin-block-start: 0.75rem;
290
+ padding: 0.25rem 0.75rem;
291
+ border-radius: var(--sf-layout-chip-regular-radius, 999px);
292
+ background: var(--flowpress-carousel-control-bg, transparent);
293
+ color: var(--flowpress-carousel-icon-fg);
294
+ font-variant-numeric: tabular-nums;
295
+ }
296
+ .flowpress-carousel[data-pagination-position="overlay"] :is(.splide__pagination, .flowpress-carousel__counter) {
297
+ grid-area: track;
298
+ align-self: end;
299
+ z-index: 2;
300
+ margin-block: 0 0.75rem;
301
+ }
302
+
303
+ /* Autoplay play/pause control, always available while autoplay runs (WCAG 2.2.2). */
304
+ .flowpress-carousel .splide__toggle {
305
+ grid-area: pagination;
306
+ justify-self: end;
307
+ margin: 0.75rem 0 0;
308
+ padding: 0.25rem 0.75rem;
309
+ border: 0;
310
+ border-radius: var(--sf-layout-chip-regular-radius, 999px);
311
+ background: var(--flowpress-carousel-control-bg, transparent);
312
+ color: var(--flowpress-carousel-icon-fg);
313
+ cursor: pointer;
314
+ }
315
+ .flowpress-carousel .splide__toggle__pause { display: none; }
316
+ .flowpress-carousel .splide__toggle.is-active .splide__toggle__play { display: none; }
317
+ .flowpress-carousel .splide__toggle.is-active .splide__toggle__pause { display: inline; }
318
+
319
+ /* Invalid children: the content stays readable as a plain stack. */
320
+ .flowpress-carousel.flowpress-carousel--static {
321
+ grid-template-areas: none;
322
+ gap: var(--flowpress-carousel-gap, 24px);
323
+ }
@@ -1,7 +1,8 @@
1
1
  import type { FlowpressBlock, FlowpressBlockRendererProps } from "../../index.js";
2
2
  import type { LoopTemplateData } from "./query-loop.js";
3
3
  type SfCarouselAttributes = Record<string, any>;
4
- export type QueryCarouselSettings = Pick<SfCarouselAttributes, "ariaLabel" | "itemsPerViewBase" | "itemsPerViewSm" | "itemsPerViewMd" | "itemsPerViewLg" | "itemsPerViewXl" | "itemsPerView2xl" | "itemsPerMove" | "gap" | "showArrows" | "showPagination" | "drag" | "keyboard" | "autoplay" | "autoplayInterval" | "pauseOnHover" | "pauseOnFocus" | "loop" | "speed"> & {
4
+ type Responsive<Name extends string> = `${Name}${"Base" | "Sm" | "Md" | "Lg" | "Xl" | "2xl"}`;
5
+ export type QueryCarouselSettings = Pick<SfCarouselAttributes, "ariaLabel" | Responsive<"itemsPerView"> | Responsive<"slideWidth"> | Responsive<"peek"> | "focus" | "itemsPerMove" | "gap" | "slideAspectRatio" | "equalHeight" | "effect" | "loop" | "rewind" | "startIndex" | "speed" | "drag" | "dragFree" | "keyboard" | "wheel" | "showArrows" | "arrowsPosition" | "arrowsPositionMobile" | "arrowsShape" | "arrowsSize" | "showPagination" | "paginationStyle" | "paginationPosition" | "controlsTone" | "controlsIntensity" | "autoplay" | "autoplayInterval" | "pauseOnHover" | "pauseOnFocus"> & {
5
6
  enabled: boolean;
6
7
  };
7
8
  export interface QueryCarouselData extends LoopTemplateData {
@@ -1 +1 @@
1
- {"version":3,"file":"query-carousel.d.ts","sourceRoot":"","sources":["../../../src/astro/native/query-carousel.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,KAAK,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAEhD,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,oBAAoB,EAC3D,WAAW,GAAG,kBAAkB,GAAG,gBAAgB,GAAG,gBAAgB,GACtE,gBAAgB,GAAG,gBAAgB,GAAG,iBAAiB,GAAG,cAAc,GACxE,KAAK,GAAG,YAAY,GAAG,gBAAgB,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,GAC1E,kBAAkB,GAAG,cAAc,GAAG,cAAc,GAAG,MAAM,GAAG,OAAO,CACxE,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAEzB,MAA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CAAC,CAAC,EAAE,CAAC,EAAE;gBACjD,YAAY,EAAE,EAAE;gBAChB,SAAS,EAAE,EAAE;gBACb,WAAW,EAAE,IAAI,CAAC,MAAM;aACzB,CAAC,CAAC;SACJ,CAAC,CAAC;AACL,CAAC","sourcesContent":["// PILOT — Render-only adaptation of native Query Loop results. No new query.\nimport type { FlowpressBlock, FlowpressBlockRendererProps } from \"../../index.js\";\nimport type { LoopTemplateData } from \"./query-loop.js\";\ntype SfCarouselAttributes = Record<string, any>;\n\nexport type QueryCarouselSettings = Pick<SfCarouselAttributes,\n \"ariaLabel\" | \"itemsPerViewBase\" | \"itemsPerViewSm\" | \"itemsPerViewMd\" |\n \"itemsPerViewLg\" | \"itemsPerViewXl\" | \"itemsPerView2xl\" | \"itemsPerMove\" |\n \"gap\" | \"showArrows\" | \"showPagination\" | \"drag\" | \"keyboard\" | \"autoplay\" |\n \"autoplayInterval\" | \"pauseOnHover\" | \"pauseOnFocus\" | \"loop\" | \"speed\"\n> & { enabled: boolean };\n\nexport interface QueryCarouselData extends LoopTemplateData {\n sfQueryCarousel?: QueryCarouselSettings;\n}\n\nconst classNames = (...values: unknown[]) => [...new Set(values.flatMap((value) =>\n String(value ?? \"\").split(/\\s+/)).filter(Boolean))].join(\" \");\n\n// Remove this template's former grid decorations, retaining its placement in\n// a parent grid. Saved content and resolved card blocks are never mutated.\nconst withoutOwnGridClasses = (value: unknown) => String(value ?? \"\").split(/\\s+/)\n .filter((token) => !/^(?:fp-grid$|fp-cols-|fp-align-|is-layout-grid$|columns-\\d+$)/.test(token)).join(\" \");\n\nexport function queryCarouselBlocks(props: Pick<FlowpressBlockRendererProps,\n \"block\" | \"htmlProps\" | \"styleflowProps\"\n>): FlowpressBlock[] | undefined {\n const { block, htmlProps, styleflowProps } = props;\n const data = (block.resolvedData ?? {}) as QueryCarouselData;\n if (data.sfQueryCarousel?.enabled !== true) return undefined;\n const items = data.items ?? [];\n if (items.length === 0) return [];\n const { layout: _layout, style: _style, metadata: _metadata, ...attributes } = block.attributes;\n const { enabled: _enabled, ...settings } = data.sfQueryCarousel;\n return [{\n name: \"sf/carousel\",\n attributes: {\n ...attributes, ...styleflowProps, ...settings,\n // The official carousel renderer derives props from these attributes.\n ...((htmlProps.id ?? attributes.anchor) ? {anchor: String(htmlProps.id ?? attributes.anchor)} : {}),\n className: classNames(\"flowpress-query-carousel\", withoutOwnGridClasses(attributes.className),\n withoutOwnGridClasses(htmlProps.class)),\n ...(attributes.noGap === true ? { gap: 0 } : {}),\n },\n resolvedData: {},\n innerHtml: \"\",\n innerBlocks: items.map((item) => ({\n name: \"sf/carousel-item\",\n attributes: { className: classNames(\"wp-block-post\", `post-${item.id}`,\n item.postType ? `type-${item.postType}` : \"\") },\n resolvedData: {},\n innerHtml: \"\",\n innerBlocks: item.blocks,\n })),\n }];\n}\n"]}
1
+ {"version":3,"file":"query-carousel.js","sourceRoot":"","sources":["../../../src/astro/native/query-carousel.ts"],"names":[],"mappings":"AAoBA,MAAM,UAAU,GAAG,CAAC,GAAG,MAAiB,EAAE,EAAE,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAChF,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEhE,6EAA6E;AAC7E,2EAA2E;AAC3E,MAAM,qBAAqB,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;KAC/E,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,+DAA+D,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE7G,MAAM,UAAU,mBAAmB,CAAC,KAEnC;IACC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E;YACb,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBAChC,IAAI,EAAE,kBAAkB;gBACxB,UAAU,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,eAAe,EAAE,QAAQ,IAAI,CAAC,EAAE,EAAE,EACpE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE;gBACjD,YAAY,EAAE,EAAE;gBAChB,SAAS,EAAE,EAAE;gBACb,WAAW,EAAE,IAAI,CAAC,MAAM;aACzB,CAAC,CAAC;SACJ,CAAC,CAAC;AACL,CAAC","sourcesContent":["// PILOT — Render-only adaptation of native Query Loop results. No new query.\nimport type { FlowpressBlock, FlowpressBlockRendererProps } from \"../../index.js\";\nimport type { LoopTemplateData } from \"./query-loop.js\";\ntype SfCarouselAttributes = Record<string, any>;\n\ntype Responsive<Name extends string> = `${Name}${\"Base\" | \"Sm\" | \"Md\" | \"Lg\" | \"Xl\" | \"2xl\"}`;\n\nexport type QueryCarouselSettings = Pick<SfCarouselAttributes,\n \"ariaLabel\" | Responsive<\"itemsPerView\"> | Responsive<\"slideWidth\"> | Responsive<\"peek\"> |\n \"focus\" | \"itemsPerMove\" | \"gap\" | \"slideAspectRatio\" | \"equalHeight\" | \"effect\" | \"loop\" |\n \"rewind\" | \"startIndex\" | \"speed\" | \"drag\" | \"dragFree\" | \"keyboard\" | \"wheel\" |\n \"showArrows\" | \"arrowsPosition\" | \"arrowsPositionMobile\" | \"arrowsShape\" | \"arrowsSize\" |\n \"showPagination\" | \"paginationStyle\" | \"paginationPosition\" | \"controlsTone\" |\n \"controlsIntensity\" | \"autoplay\" | \"autoplayInterval\" | \"pauseOnHover\" | \"pauseOnFocus\"\n> & { enabled: boolean };\n\nexport interface QueryCarouselData extends LoopTemplateData {\n sfQueryCarousel?: QueryCarouselSettings;\n}\n\nconst classNames = (...values: unknown[]) => [...new Set(values.flatMap((value) =>\n String(value ?? \"\").split(/\\s+/)).filter(Boolean))].join(\" \");\n\n// Remove this template's former grid decorations, retaining its placement in\n// a parent grid. Saved content and resolved card blocks are never mutated.\nconst withoutOwnGridClasses = (value: unknown) => String(value ?? \"\").split(/\\s+/)\n .filter((token) => !/^(?:fp-grid$|fp-cols-|fp-align-|is-layout-grid$|columns-\\d+$)/.test(token)).join(\" \");\n\nexport function queryCarouselBlocks(props: Pick<FlowpressBlockRendererProps,\n \"block\" | \"htmlProps\" | \"styleflowProps\"\n>): FlowpressBlock[] | undefined {\n const { block, htmlProps, styleflowProps } = props;\n const data = (block.resolvedData ?? {}) as QueryCarouselData;\n if (data.sfQueryCarousel?.enabled !== true) return undefined;\n const items = data.items ?? [];\n if (items.length === 0) return [];\n const { layout: _layout, style: _style, metadata: _metadata, ...attributes } = block.attributes;\n const { enabled: _enabled, ...settings } = data.sfQueryCarousel;\n return [{\n name: \"sf/carousel\",\n attributes: {\n ...attributes, ...styleflowProps, ...settings,\n // The official carousel renderer derives props from these attributes.\n ...((htmlProps.id ?? attributes.anchor) ? {anchor: String(htmlProps.id ?? attributes.anchor)} : {}),\n className: classNames(\"flowpress-query-carousel\", withoutOwnGridClasses(attributes.className),\n withoutOwnGridClasses(htmlProps.class)),\n ...(attributes.noGap === true ? { gap: 0 } : {}),\n },\n resolvedData: {},\n innerHtml: \"\",\n innerBlocks: items.map((item) => ({\n name: \"sf/carousel-item\",\n attributes: { className: classNames(\"wp-block-post\", `post-${item.id}`,\n item.postType ? `type-${item.postType}` : \"\") },\n resolvedData: {},\n innerHtml: \"\",\n innerBlocks: item.blocks,\n })),\n }];\n}\n"]}
@@ -3,11 +3,15 @@ import type { FlowpressBlock, FlowpressBlockRendererProps } from "../../index.js
3
3
  import type { LoopTemplateData } from "./query-loop.js";
4
4
  type SfCarouselAttributes = Record<string, any>;
5
5
 
6
+ type Responsive<Name extends string> = `${Name}${"Base" | "Sm" | "Md" | "Lg" | "Xl" | "2xl"}`;
7
+
6
8
  export type QueryCarouselSettings = Pick<SfCarouselAttributes,
7
- "ariaLabel" | "itemsPerViewBase" | "itemsPerViewSm" | "itemsPerViewMd" |
8
- "itemsPerViewLg" | "itemsPerViewXl" | "itemsPerView2xl" | "itemsPerMove" |
9
- "gap" | "showArrows" | "showPagination" | "drag" | "keyboard" | "autoplay" |
10
- "autoplayInterval" | "pauseOnHover" | "pauseOnFocus" | "loop" | "speed"
9
+ "ariaLabel" | Responsive<"itemsPerView"> | Responsive<"slideWidth"> | Responsive<"peek"> |
10
+ "focus" | "itemsPerMove" | "gap" | "slideAspectRatio" | "equalHeight" | "effect" | "loop" |
11
+ "rewind" | "startIndex" | "speed" | "drag" | "dragFree" | "keyboard" | "wheel" |
12
+ "showArrows" | "arrowsPosition" | "arrowsPositionMobile" | "arrowsShape" | "arrowsSize" |
13
+ "showPagination" | "paginationStyle" | "paginationPosition" | "controlsTone" |
14
+ "controlsIntensity" | "autoplay" | "autoplayInterval" | "pauseOnHover" | "pauseOnFocus"
11
15
  > & { enabled: boolean };
12
16
 
13
17
  export interface QueryCarouselData extends LoopTemplateData {
@@ -1,22 +1,72 @@
1
1
  import type { Options } from "@splidejs/splide";
2
- declare const BREAKPOINTS: readonly ["base", "sm", "md", "lg", "xl", "2xl"];
2
+ export declare const CAROUSEL_BREAKPOINTS: readonly ["base", "sm", "md", "lg", "xl", "2xl"];
3
+ export type CarouselBreakpoint = (typeof CAROUSEL_BREAKPOINTS)[number];
4
+ declare const ARROWS_POSITIONS: readonly ["top", "top-end", "sides", "edges", "outside", "bottom", "bottom-end"];
5
+ declare const ARROWS_MOBILE_POSITIONS: readonly ["same", "bottom", "hidden"];
6
+ declare const ARROWS_SHAPES: readonly ["circle", "rounded", "square"];
7
+ declare const ARROWS_SIZES: readonly ["sm", "md", "lg"];
8
+ declare const PAGINATION_STYLES: readonly ["dots", "bars", "fraction"];
9
+ declare const PAGINATION_POSITIONS: readonly ["below", "overlay"];
10
+ /** Peek keyword aligned with the StyleFlow container padding. */
11
+ export declare const CAROUSEL_CONTAINER_PEEK = "var(--sf-layout-container-comfortable-padding-x, 2rem)";
3
12
  export interface FlowpressCarouselSettings {
4
13
  ariaLabel: string;
5
- itemsPerView: Record<(typeof BREAKPOINTS)[number], number>;
14
+ itemsPerView: Record<CarouselBreakpoint, number>;
15
+ /** Fixed slide width per breakpoint; "" sizes slides from `itemsPerView`. */
16
+ slideWidth: Record<CarouselBreakpoint, string>;
17
+ /** Visible part of the neighbouring slides per breakpoint, as a CSS length ("0" for none). */
18
+ peek: Record<CarouselBreakpoint, string>;
19
+ focus: "start" | "center";
6
20
  itemsPerMove: number;
7
21
  gap: number;
8
- showArrows: boolean;
9
- showPagination: boolean;
22
+ slideAspectRatio: string;
23
+ equalHeight: boolean;
24
+ effect: "slide" | "fade";
25
+ loop: boolean;
26
+ rewind: boolean;
27
+ startIndex: number;
28
+ speed: number;
10
29
  drag: boolean;
30
+ dragFree: boolean;
11
31
  keyboard: boolean;
32
+ wheel: boolean;
33
+ showArrows: boolean;
34
+ arrowsPosition: (typeof ARROWS_POSITIONS)[number];
35
+ arrowsPositionMobile: (typeof ARROWS_MOBILE_POSITIONS)[number];
36
+ arrowsShape: (typeof ARROWS_SHAPES)[number];
37
+ arrowsSize: (typeof ARROWS_SIZES)[number];
38
+ showPagination: boolean;
39
+ paginationStyle: (typeof PAGINATION_STYLES)[number];
40
+ paginationPosition: (typeof PAGINATION_POSITIONS)[number];
41
+ /** StyleFlow tone and intensity of the controls' background; "" keeps the carousel's context. */
42
+ controlsTone: string;
43
+ controlsIntensity: string;
12
44
  autoplay: boolean;
13
45
  autoplayInterval: number;
14
46
  pauseOnHover: boolean;
15
47
  pauseOnFocus: boolean;
16
- loop: boolean;
17
- speed: number;
48
+ }
49
+ export interface FlowpressCarouselLayout {
50
+ /** Custom properties for the carousel root, read by the shared carousel stylesheet. */
51
+ style: Record<string, string>;
52
+ /** `data-*` attributes for the carousel root. */
53
+ data: Record<string, string>;
18
54
  }
19
55
  export declare function carouselSettings(attributes: Record<string, unknown>): FlowpressCarouselSettings;
56
+ /** CSS length of a peek setting. */
57
+ export declare function carouselPeekLength(peek: string): string;
58
+ /**
59
+ * Splide options. Options for settings that keep their previous defaults are left out, so a
60
+ * carousel saved with the original contract mounts with exactly the options it had before.
61
+ */
20
62
  export declare function carouselOptions(settings: FlowpressCarouselSettings): Options;
63
+ /**
64
+ * Static geometry shared by the frontend before Splide mounts and by the block editor: the same
65
+ * slide widths, peeks and centring Splide applies at rest. Percentages in `slide` and `shift`
66
+ * resolve against the list, those in `edge` against the carousel root.
67
+ */
68
+ export declare function carouselLayout(settings: FlowpressCarouselSettings): FlowpressCarouselLayout;
69
+ /** Inline `style` text of a layout. */
70
+ export declare function carouselStyleText(layout: FlowpressCarouselLayout): string;
21
71
  export {};
22
72
  //# sourceMappingURL=carousel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../src/carousel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,QAAA,MAAM,WAAW,kDAAmD,CAAC;AAErE,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;IAC3D,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE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