@riverbankcms/sdk 0.176.0 → 0.177.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/README.md +12 -4
- package/dist/_dts/{BlocksIslandsHydrator-DvoTk7Py.d.ts → BlocksIslandsHydrator-sYraeqm9.d.ts} +1 -1
- package/dist/_dts/{Page-D-l374tU.d.ts → Page-Bp7hTDTy.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-22DdQAj5.d.ts → SdkPreviewMode-CxkCCyKw.d.ts} +2 -2
- package/dist/_dts/{client-D4p0J1lK.d.ts → client-K6UhbL3t.d.ts} +1 -1
- package/dist/_dts/{content-types-0WWR6dC4.d.ts → content-types-BLAdIMyr.d.ts} +4 -8
- package/dist/_dts/{contracts-f_ZG_SwY.d.ts → contracts-BG7yTZ6t.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-DSeZvOaj.d.ts → footerPageOutline-DwMHeYmQ.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-BlitPA2D.d.ts → generatePageMetadata-X_WpGzZZ.d.ts} +2 -2
- package/dist/_dts/{index-CKkkCgb6.d.ts → index--n-wV8Xd.d.ts} +1 -1
- package/dist/_dts/{index-DDsfmM4d.d.ts → index-BLseXObg.d.ts} +2 -2
- package/dist/_dts/{index-CoLcwjqJ.d.ts → index-BMGif2r3.d.ts} +1 -1
- package/dist/_dts/{index-ZKEDvLuN.d.ts → index-BpAW9AKB.d.ts} +1 -1
- package/dist/_dts/{index-D-ai8IQd.d.ts → index-Bygd2RCg.d.ts} +4 -4
- package/dist/_dts/{index-EJMo-KSo.d.ts → index-CBRbZJ6u.d.ts} +2 -15
- package/dist/_dts/{index-tcPtGdag.d.ts → index-CX9bp60k.d.ts} +3 -3
- package/dist/_dts/{loadContent-Ci932ORy.d.ts → loadContent-uhUThWaq.d.ts} +7 -7
- package/dist/_dts/{request-B8jVdvgI.d.ts → request-Bf9YImJw.d.ts} +54543 -54643
- package/dist/_dts/{resolveBlockData-DrSMuD76.d.ts → resolveBlockData-D6M5NMZB.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-Be4iL6-F.d.ts → resolvePageContent-DkzWvFbG.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-lwSgCWZ4.d.ts → types-BdZ5pJSk.d.ts} +11 -3
- package/dist/_dts/{types-DXY64Xh4.d.ts → types-C1l2Sm2h.d.ts} +4 -4
- package/dist/_dts/{types-BXMX4z2j.d.ts → types-DgV8P2mz.d.ts} +7 -7
- package/dist/_dts/{validation-C5xp--Fu.d.ts → validation-BtbZIT5f.d.ts} +4 -6
- package/dist/client/{Page-F3lhDvw1.mjs → Page-C03rc6jw.mjs} +10 -1
- package/dist/client/client.mjs +36 -9
- package/dist/client/portal/client.mjs +40 -19
- package/dist/client/rendering.mjs +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-8iKKoYZr.mjs → LocationPickerEnvironment-BHAT81Wx.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-AIUPN1Zx.mjs → MapLibreEditMap-B52hkdIZ.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-0xyUPWUB.mjs → PageSectionToolbar-D6-jojqh.mjs} +52 -8
- package/dist/preview-next/client/{PreviewEditorSidebar-D8vUzXtI.mjs → PreviewEditorSidebar-BUVFKZ4k.mjs} +24 -31
- package/dist/preview-next/client/{PreviewEditorUI-CRjS4gAu.mjs → PreviewEditorUI-292pOiSt.mjs} +10 -10
- package/dist/preview-next/client/{PreviewShell-BvdBdeH_.mjs → PreviewShell-CW0Yzj3h.mjs} +9 -8
- package/dist/preview-next/client/{SdkPreviewModeRuntime-DWTyKbFj.mjs → SdkPreviewModeRuntime-Dba7zoZK.mjs} +16 -7
- package/dist/preview-next/client/{lucide-react-Dfgl3Vtq.mjs → lucide-react-McYZeSMb.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-BqY2TTcZ.mjs → previewAssistantSlot-B-utyhbS.mjs} +71 -5
- package/dist/preview-next/client/{previewChromeRoot-BuRYe2iL.mjs → previewChromeRoot-CCoGydUD.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-BnK5kH9f.mjs → sdk-runtime-DCpXVcA0.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-DbKozRSn.mjs → siteStyleAccess-sjOvRAHY.mjs} +27 -17
- package/dist/preview-next/client/{useAutosaveStatus-D9s6dyMW.mjs → useAutosaveStatus-R1rZ9-IZ.mjs} +3 -30
- package/dist/preview-next/client/{useOpenBlockForSetup-Ce4WCxpT.mjs → useOpenBlockForSetup-BS7CANPv.mjs} +2 -2
- package/dist/preview-next/container-responsive.css +3 -0
- package/dist/preview-next/editor-chrome.css +4 -2
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BYezcMx5.mjs → route-contract-BSSbtz6A.mjs} +16 -3
- package/dist/server/{Block.shared-Cn7gg13_.mjs → Block.shared-Dc3DX7Cf.mjs} +1 -1
- package/dist/server/{client-Bvag5OtW.mjs → client-BPLLL22F.mjs} +35 -8
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/next/revalidate.mjs +15 -8
- package/dist/server/next.mjs +4 -4
- package/dist/server/{overrideResolution-BqVLO4gX.mjs → overrideResolution-CkpwAHvW.mjs} +1 -1
- package/dist/server/{pageShared-D23o5QgC.mjs → pageShared-6z6JBU41.mjs} +11 -2
- package/dist/server/{prebuild-BuoXWT9y.mjs → prebuild-B4_Llisx.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +2 -2
- package/dist/server/server.mjs +1 -1
- package/dist/server/{validation-CozQ7wE0.mjs → validation-BvHio6QI.mjs} +0 -2
- package/dist/server/{version-CgCWRFEY.mjs → version-SuFlio6n.mjs} +1 -1
- package/dist/styles/index.css +8 -1
- package/package.json +1 -1
|
@@ -753,7 +753,8 @@ z.intersection(z.object({ occurrenceDate: localDate }), z.union([
|
|
|
753
753
|
]) }),
|
|
754
754
|
z.object({
|
|
755
755
|
code: z.literal("clash"),
|
|
756
|
-
customerFirstName: z.string().nullable()
|
|
756
|
+
customerFirstName: z.string().nullable(),
|
|
757
|
+
clashKind: z.enum(["appointment", "arrangement_hold"]).optional()
|
|
757
758
|
}),
|
|
758
759
|
z.object({
|
|
759
760
|
code: z.literal("command_failed"),
|
|
@@ -3341,7 +3342,7 @@ const PUBLIC_READ_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
3341
3342
|
path: "/public/content/{siteId}/{type}/{slug}/preview",
|
|
3342
3343
|
method: "GET",
|
|
3343
3344
|
revalidate: publicReadFreshnessSeconds("getPublishedEntryPreview"),
|
|
3344
|
-
tags: [
|
|
3345
|
+
tags: [TAG_TEMPLATES.siteRoutableContent],
|
|
3345
3346
|
auth: "public",
|
|
3346
3347
|
responseKind: "json"
|
|
3347
3348
|
},
|
|
@@ -3349,7 +3350,7 @@ const PUBLIC_READ_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
3349
3350
|
path: "/public/content/{siteId}/{type}/entries",
|
|
3350
3351
|
method: "GET",
|
|
3351
3352
|
revalidate: publicReadFreshnessSeconds("listPublishedEntries"),
|
|
3352
|
-
tags: [
|
|
3353
|
+
tags: [TAG_TEMPLATES.siteRoutableContent],
|
|
3353
3354
|
auth: "public",
|
|
3354
3355
|
responseKind: "json"
|
|
3355
3356
|
},
|
|
@@ -7479,6 +7480,18 @@ const API_ENDPOINTS = {
|
|
|
7479
7480
|
auth: "admin",
|
|
7480
7481
|
responseKind: "json"
|
|
7481
7482
|
},
|
|
7483
|
+
adminSyncPriceOverride: {
|
|
7484
|
+
path: "/admin/billing/price-override",
|
|
7485
|
+
method: "PUT",
|
|
7486
|
+
tags: [
|
|
7487
|
+
"admin",
|
|
7488
|
+
"billing",
|
|
7489
|
+
"price-override"
|
|
7490
|
+
],
|
|
7491
|
+
auth: "admin",
|
|
7492
|
+
responseKind: "json",
|
|
7493
|
+
errors: []
|
|
7494
|
+
},
|
|
7482
7495
|
...EVENT_MANAGEMENT_ENDPOINT_DEFINITIONS,
|
|
7483
7496
|
getEventSeries: {
|
|
7484
7497
|
path: "/sites/{siteId}/bookings/events/{eventId}/schedules/{seriesId}",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Jn as siteHeaderManifest, Ks as toUtcIsoDateTimeString, ft as buildResolveImageUrlContext, mt as setContextResolveImageUrlContext, nr as readRuntimeNow, qn as siteFooterManifest, rr as resolveDateRuntimeContext, t as getBlockDefinition } from "./registry-CXRXsFSx.mjs";
|
|
2
|
-
import { _ as parseBlocksTheme, a as planLayoutThemeRuntime, b as getDefaultComponentRegistry, c as solvedInksForThemeRuntime, f as PageRenderer, g as buildThemeRuntime, m as toBlocksImageResolveContextInput, o as renderWithOverrideOnlyRuntime, s as renderWithSdkThemeRuntime, v as makeDefaultBlockComponent, y as renderBlock } from "./pageShared-
|
|
2
|
+
import { _ as parseBlocksTheme, a as planLayoutThemeRuntime, b as getDefaultComponentRegistry, c as solvedInksForThemeRuntime, f as PageRenderer, g as buildThemeRuntime, m as toBlocksImageResolveContextInput, o as renderWithOverrideOnlyRuntime, s as renderWithSdkThemeRuntime, v as makeDefaultBlockComponent, y as renderBlock } from "./pageShared-6z6JBU41.mjs";
|
|
3
3
|
import { f as resolveSiteCustomBlocks, n as buildRenderablePageOutline, o as projectRenderablePageOutline } from "./pageRuntimeSupport-uz4gzBOo.mjs";
|
|
4
4
|
import { n as buildFooterMenu, r as buildFooterMenuForRole, s as buildMenu, t as buildChromeLogoContent } from "./navigation-iC_hXjJI.mjs";
|
|
5
5
|
import { n as resolveSdkFooterMode, t as resolveFooterRenderPlan } from "./mode-bkFS8glh.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as parseSurfaceTree } from "./accessibleSurfaces-CM3QANtw.mjs";
|
|
2
2
|
import { o as isSupportedLoaderEndpoint, r as encodePublicProductCategorySelector, t as materializeEntriesMedia } from "./responseMedia-F-ElH2Rd.mjs";
|
|
3
3
|
import { f as parseSiteId, t as publicMapLocationParamsSchema } from "./mapLocation-BM5WX7FY.mjs";
|
|
4
|
-
import { t as SDK_VERSION } from "./version-
|
|
4
|
+
import { t as SDK_VERSION } from "./version-SuFlio6n.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
/**
|
|
7
7
|
* How long a rendered page may hold availability it read through the batch
|
|
@@ -996,7 +996,8 @@ z.intersection(z.object({ occurrenceDate: localDate }), z.union([
|
|
|
996
996
|
]) }),
|
|
997
997
|
z.object({
|
|
998
998
|
code: z.literal("clash"),
|
|
999
|
-
customerFirstName: z.string().nullable()
|
|
999
|
+
customerFirstName: z.string().nullable(),
|
|
1000
|
+
clashKind: z.enum(["appointment", "arrangement_hold"]).optional()
|
|
1000
1001
|
}),
|
|
1001
1002
|
z.object({
|
|
1002
1003
|
code: z.literal("command_failed"),
|
|
@@ -3583,7 +3584,7 @@ const PUBLIC_READ_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
3583
3584
|
path: "/public/content/{siteId}/{type}/{slug}/preview",
|
|
3584
3585
|
method: "GET",
|
|
3585
3586
|
revalidate: publicReadFreshnessSeconds("getPublishedEntryPreview"),
|
|
3586
|
-
tags: [
|
|
3587
|
+
tags: [TAG_TEMPLATES.siteRoutableContent],
|
|
3587
3588
|
auth: "public",
|
|
3588
3589
|
responseKind: "json"
|
|
3589
3590
|
},
|
|
@@ -3591,7 +3592,7 @@ const PUBLIC_READ_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
3591
3592
|
path: "/public/content/{siteId}/{type}/entries",
|
|
3592
3593
|
method: "GET",
|
|
3593
3594
|
revalidate: publicReadFreshnessSeconds("listPublishedEntries"),
|
|
3594
|
-
tags: [
|
|
3595
|
+
tags: [TAG_TEMPLATES.siteRoutableContent],
|
|
3595
3596
|
auth: "public",
|
|
3596
3597
|
responseKind: "json"
|
|
3597
3598
|
},
|
|
@@ -7721,6 +7722,18 @@ const API_ENDPOINTS$1 = {
|
|
|
7721
7722
|
auth: "admin",
|
|
7722
7723
|
responseKind: "json"
|
|
7723
7724
|
},
|
|
7725
|
+
adminSyncPriceOverride: {
|
|
7726
|
+
path: "/admin/billing/price-override",
|
|
7727
|
+
method: "PUT",
|
|
7728
|
+
tags: [
|
|
7729
|
+
"admin",
|
|
7730
|
+
"billing",
|
|
7731
|
+
"price-override"
|
|
7732
|
+
],
|
|
7733
|
+
auth: "admin",
|
|
7734
|
+
responseKind: "json",
|
|
7735
|
+
errors: []
|
|
7736
|
+
},
|
|
7724
7737
|
...EVENT_MANAGEMENT_ENDPOINT_DEFINITIONS,
|
|
7725
7738
|
getEventSeries: {
|
|
7726
7739
|
path: "/sites/{siteId}/bookings/events/{eventId}/schedules/{seriesId}",
|
|
@@ -11368,7 +11381,7 @@ const API_ENDPOINTS = Object.freeze({
|
|
|
11368
11381
|
path: "/public/content/{siteId}/{type}/entries",
|
|
11369
11382
|
method: "GET",
|
|
11370
11383
|
revalidate: publicReadFreshnessSeconds("listPublishedEntries"),
|
|
11371
|
-
tags: [
|
|
11384
|
+
tags: [TAG_TEMPLATES.siteRoutableContent],
|
|
11372
11385
|
auth: "public",
|
|
11373
11386
|
responseKind: "json"
|
|
11374
11387
|
},
|
|
@@ -11376,7 +11389,7 @@ const API_ENDPOINTS = Object.freeze({
|
|
|
11376
11389
|
path: "/public/content/{siteId}/{type}/{slug}/preview",
|
|
11377
11390
|
method: "GET",
|
|
11378
11391
|
revalidate: publicReadFreshnessSeconds("getPublishedEntryPreview"),
|
|
11379
|
-
tags: [
|
|
11392
|
+
tags: [TAG_TEMPLATES.siteRoutableContent],
|
|
11380
11393
|
auth: "public",
|
|
11381
11394
|
responseKind: "json"
|
|
11382
11395
|
},
|
|
@@ -12384,13 +12397,27 @@ const defaultRiverbankClientDeps = {
|
|
|
12384
12397
|
* const site = await client.getSite({ slug: 'my-site' });
|
|
12385
12398
|
* ```
|
|
12386
12399
|
*/
|
|
12400
|
+
/**
|
|
12401
|
+
* A memory hit skips fetch, so Next never sees the read's tags: an ISR render would store old
|
|
12402
|
+
* content under a page no webhook can reach. Next's tagged fetch cache already covers these reads.
|
|
12403
|
+
*/
|
|
12404
|
+
function isRunningInNextServer() {
|
|
12405
|
+
return typeof window === "undefined" && typeof process !== "undefined" && Boolean(process.env.NEXT_RUNTIME);
|
|
12406
|
+
}
|
|
12407
|
+
function resolveMemoryCachePolicy(config) {
|
|
12408
|
+
const enabled = config.cache?.enabled;
|
|
12409
|
+
return {
|
|
12410
|
+
cacheEnabled: enabled ?? true,
|
|
12411
|
+
servesFreshMemoryHits: enabled ?? !isRunningInNextServer()
|
|
12412
|
+
};
|
|
12413
|
+
}
|
|
12387
12414
|
function createRiverbankClient(config) {
|
|
12388
12415
|
return createRiverbankClientWithDeps(defaultRiverbankClientDeps, config);
|
|
12389
12416
|
}
|
|
12390
12417
|
function createRiverbankClientWithDeps(deps, config) {
|
|
12391
12418
|
if (!config.baseUrl) throw new Error("baseUrl is required when creating a Riverbank client. Expected format: https://dashboard.example.com/api (must include /api path)");
|
|
12392
12419
|
if (!config.baseUrl.endsWith("/api")) throw new Error(`baseUrl must end with '/api'. Received: ${config.baseUrl}. Expected format: https://dashboard.example.com/api`);
|
|
12393
|
-
const cacheEnabled = config
|
|
12420
|
+
const { cacheEnabled, servesFreshMemoryHits } = resolveMemoryCachePolicy(config);
|
|
12394
12421
|
const cacheTTL = (config.cache?.ttl ?? 300) * 1e3;
|
|
12395
12422
|
const cacheMaxSize = config.cache?.maxSize ?? 100;
|
|
12396
12423
|
const resilienceEnabled = config.resilience?.enabled ?? true;
|
|
@@ -12539,7 +12566,7 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
12539
12566
|
durationMs: Date.now() - startTime,
|
|
12540
12567
|
...extra
|
|
12541
12568
|
});
|
|
12542
|
-
if (
|
|
12569
|
+
if (servesFreshMemoryHits && !options.force) {
|
|
12543
12570
|
const fresh = cache.getFresh(cacheKey);
|
|
12544
12571
|
if (fresh !== null) return emitStatus("cache", fresh, statusDetails({ cacheTier: "memory-fresh" }));
|
|
12545
12572
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as sectionOptionsSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, E as sdkWorkflowIdSchema, F as validateFieldIdConflicts, K as contentConfigSchema, M as siteStyleConfigSchema, N as syncConfigSchema, O as sdkWorkflowsSchema, P as themeSourceSchema, S as sdkThemePaletteSchema, T as sdkWorkflowEndpointSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, b as sdkSiteUrlSchema, c as containerOptionsSchema, d as layoutConfigSchema, f as loaderParamBindingSchema, g as sdkConfigLoaderSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, l as deployConfigSchema, m as loaderWhenValueSchema, n as blockFieldConfigSchema, o as containerAlignmentSchema, p as loaderParamValueSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, t as activeThemeSchema, u as fieldSelectOptionSchema, v as sdkDataLoadersSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, y as sdkLoaderEndpointSchema } from "./validation-
|
|
1
|
+
import { A as sectionOptionsSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, E as sdkWorkflowIdSchema, F as validateFieldIdConflicts, K as contentConfigSchema, M as siteStyleConfigSchema, N as syncConfigSchema, O as sdkWorkflowsSchema, P as themeSourceSchema, S as sdkThemePaletteSchema, T as sdkWorkflowEndpointSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, b as sdkSiteUrlSchema, c as containerOptionsSchema, d as layoutConfigSchema, f as loaderParamBindingSchema, g as sdkConfigLoaderSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, l as deployConfigSchema, m as loaderWhenValueSchema, n as blockFieldConfigSchema, o as containerAlignmentSchema, p as loaderParamValueSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, t as activeThemeSchema, u as fieldSelectOptionSchema, v as sdkDataLoadersSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, y as sdkLoaderEndpointSchema } from "./validation-BvHio6QI.mjs";
|
|
2
2
|
export { activeThemeSchema, blockFieldConfigSchema, blockFieldExtensionSchema, blockFieldExtensionsSchema, blockFieldOptionsSchema, containerAlignmentSchema, containerMaxWidthSchema, containerOptionsSchema, contentConfigSchema, deployConfigSchema, fieldSelectOptionSchema, layoutConfigSchema, loaderParamBindingSchema, loaderParamValueSchema, loaderWhenValueSchema, riverbankSiteConfigSchema, sdkConfigLoaderSchema, sdkCustomBlockSchema, sdkDataLoadersSchema, sdkLoaderEndpointSchema, sdkSiteUrlSchema, sdkThemeConfigSchema, sdkThemePaletteSchema, sdkWorkflowConfigSchema, sdkWorkflowConfirmationSchema, sdkWorkflowEndpointSchema, sdkWorkflowIdSchema, sdkWorkflowTriggerSchema, sdkWorkflowsSchema, sectionBackgroundSchema, sectionOptionsSchema, sectionSpacingSchema, siteStyleConfigSchema, syncConfigSchema, themeSourceSchema, validateFieldIdConflicts };
|
package/dist/server/config.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { js as isCanonicalRichTextDoc } from "./registry-CXRXsFSx.mjs";
|
|
2
|
-
import { $ as templateBlockConfigSchema, A as sectionOptionsSchema, B as dashboardNavigationConfigSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, G as blockConfigSchema, H as validateLayoutNodeTypes, I as dashboardConfigSchema, J as entryConfigSchema, K as contentConfigSchema, L as dashboardNavVisibilityBaseSchema, M as siteStyleConfigSchema, O as sdkWorkflowsSchema, Q as siteSettingsConfigSchema, R as dashboardNavVisibilityRolesSchema, S as sdkThemePaletteSchema, U as validateTransformIds, V as validateLayout, W as bindingSourceSchema, X as navigationMenuConfigSchema, Y as navigationItemConfigSchema, Z as pageConfigSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, c as containerOptionsSchema, et as templateConfigSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, n as blockFieldConfigSchema, nt as describeInvalidTemplateBindingMetaPath, o as containerAlignmentSchema, q as contentTypeConfigSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, tt as TEMPLATE_BINDING_META_PATHS, u as fieldSelectOptionSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, z as dashboardNavVisibilitySchema } from "./validation-
|
|
2
|
+
import { $ as templateBlockConfigSchema, A as sectionOptionsSchema, B as dashboardNavigationConfigSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, G as blockConfigSchema, H as validateLayoutNodeTypes, I as dashboardConfigSchema, J as entryConfigSchema, K as contentConfigSchema, L as dashboardNavVisibilityBaseSchema, M as siteStyleConfigSchema, O as sdkWorkflowsSchema, Q as siteSettingsConfigSchema, R as dashboardNavVisibilityRolesSchema, S as sdkThemePaletteSchema, U as validateTransformIds, V as validateLayout, W as bindingSourceSchema, X as navigationMenuConfigSchema, Y as navigationItemConfigSchema, Z as pageConfigSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, c as containerOptionsSchema, et as templateConfigSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, n as blockFieldConfigSchema, nt as describeInvalidTemplateBindingMetaPath, o as containerAlignmentSchema, q as contentTypeConfigSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, tt as TEMPLATE_BINDING_META_PATHS, u as fieldSelectOptionSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, z as dashboardNavVisibilitySchema } from "./validation-BvHio6QI.mjs";
|
|
3
3
|
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-BCY9z3oB.mjs";
|
|
4
4
|
//#region src/config/bindings.ts
|
|
5
5
|
function fieldBinding(path) {
|
package/dist/server/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as parseMediaIdentifier, a as persistableMediaSchema, c as buildRenderableMediaAssetIndex, d as resolveManagedMediaReference, g as parseCanonicalMediaIdentifier, h as mediaIdentifierSchema, i as mediaSchema, l as renderableMediaAssetSchema, o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
|
|
2
|
-
import { a as DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION, c as parsePublishedRuntimeCacheKey, d as API_ENDPOINTS, f as buildEndpointURL, g as getResilienceStatusFromError, h as RiverbankApiError, i as resolveRuntimeCachePolicy, l as parsePublishedRuntimeCacheKeyDetails, n as classifyPublishedRuntimeCacheFreshness, o as isPublishedRuntimeCacheKeyEndpoint, r as derivePublishedRuntimeCacheKey, s as normalizeRuntimePublicPath, t as createRiverbankClient, u as parsePublishedRuntimeCachePayloadSchemaVersion } from "./client-
|
|
2
|
+
import { a as DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION, c as parsePublishedRuntimeCacheKey, d as API_ENDPOINTS, f as buildEndpointURL, g as getResilienceStatusFromError, h as RiverbankApiError, i as resolveRuntimeCachePolicy, l as parsePublishedRuntimeCacheKeyDetails, n as classifyPublishedRuntimeCacheFreshness, o as isPublishedRuntimeCacheKeyEndpoint, r as derivePublishedRuntimeCacheKey, s as normalizeRuntimePublicPath, t as createRiverbankClient, u as parsePublishedRuntimeCachePayloadSchemaVersion } from "./client-BPLLL22F.mjs";
|
|
3
3
|
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-BCY9z3oB.mjs";
|
|
4
4
|
import { t as SDK_CORRELATION_HEADER_NAMES } from "./types-C2eBBV6E.mjs";
|
|
5
|
-
import { t as prebuildCache } from "./prebuild-
|
|
5
|
+
import { t as prebuildCache } from "./prebuild-B4_Llisx.mjs";
|
|
6
6
|
import * as path from "path";
|
|
7
7
|
import * as fs from "fs";
|
|
8
8
|
//#region src/prebuild/loader.ts
|
|
@@ -154,11 +154,8 @@ function createRevalidateHandler(options = {}) {
|
|
|
154
154
|
invalidPathCount: normalizedPaths.invalidPaths.length
|
|
155
155
|
});
|
|
156
156
|
const normalizedTags = normalizeRevalidationTags(payload.tags);
|
|
157
|
-
revalidated.push(...revalidateWebhookTags(payload
|
|
158
|
-
|
|
159
|
-
revalidatePath(path);
|
|
160
|
-
revalidated.push(`path:${path}`);
|
|
161
|
-
}
|
|
157
|
+
revalidated.push(...revalidateWebhookTags(payload, normalizedTags));
|
|
158
|
+
revalidated.push(...revalidateWebhookPaths(normalizedPaths.paths));
|
|
162
159
|
const metadata = getRevalidationRequestMetadata(request, payload, {
|
|
163
160
|
pathCount: normalizedPaths.paths.length,
|
|
164
161
|
tagCount: normalizedTags.length,
|
|
@@ -193,9 +190,19 @@ function createRevalidateHandler(options = {}) {
|
|
|
193
190
|
});
|
|
194
191
|
};
|
|
195
192
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
193
|
+
function revalidateWebhookPaths(paths) {
|
|
194
|
+
return paths.map((path) => {
|
|
195
|
+
revalidatePath(path);
|
|
196
|
+
return `path:${path}`;
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Most events expire at once, so the first view after a delivered webhook re-renders and shows the
|
|
201
|
+
* change. A booking fires events.updated too, and a page's spaces are only advisory (checkout
|
|
202
|
+
* enforces capacity), so those visitors keep the fast stale page while it refreshes behind them.
|
|
203
|
+
*/
|
|
204
|
+
function revalidateWebhookTags(payload, tags) {
|
|
205
|
+
const profile = payload.event === "events.updated" && payload.data.entity === "registration" ? "max" : { expire: 0 };
|
|
199
206
|
return tags.map((tag) => {
|
|
200
207
|
revalidateTag(tag, profile);
|
|
201
208
|
return `tag:${tag}`;
|
package/dist/server/next.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Is as inferSiteDateLocale, Ks as toUtcIsoDateTimeString, Ws as resolveBookingBusinessTimeZone } from "./registry-CXRXsFSx.mjs";
|
|
2
|
-
import { i as defaultLayoutThemeRuntime, l as ThemeScope, n as toPageHydrationBootstrapConfig, r as defaultCatchAllThemeRuntime } from "./pageShared-
|
|
3
|
-
import { _ as createBearerAPIClient, h as RiverbankApiError, m as CircuitOpenError, p as sdkRequestOptions, t as createRiverbankClient, v as ApiRequestError, y as unwrapResponse } from "./client-
|
|
2
|
+
import { i as defaultLayoutThemeRuntime, l as ThemeScope, n as toPageHydrationBootstrapConfig, r as defaultCatchAllThemeRuntime } from "./pageShared-6z6JBU41.mjs";
|
|
3
|
+
import { _ as createBearerAPIClient, h as RiverbankApiError, m as CircuitOpenError, p as sdkRequestOptions, t as createRiverbankClient, v as ApiRequestError, y as unwrapResponse } from "./client-BPLLL22F.mjs";
|
|
4
4
|
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-CxASA3PE.mjs";
|
|
5
5
|
import { n as MissingSdkThemeError, r as requireSdkTheme, t as MISSING_SDK_THEME_ERROR_CODE } from "./themeAdmission-DGSAlFUK.mjs";
|
|
6
6
|
import { r as normalizeDataLoaderSearchParams } from "./dataLoaderContext-B3fXA54R.mjs";
|
|
@@ -8,9 +8,9 @@ import { l as isPreviewMode, o as normalizeSdkRenderingMode, s as themeRuntimeFo
|
|
|
8
8
|
import { n as generatePreviewMetadata, r as applyPageSurfaceIndexing, t as generatePageMetadata } from "./generatePageMetadata-DB_lbrZ7.mjs";
|
|
9
9
|
import { t as getPortalToken } from "./portal-BjVHMAUC.mjs";
|
|
10
10
|
import { _ as toRoutingInfo, a as resolvePageContent, i as contentNotFound, n as contentFound, o as defaultShouldAttemptEntrySubroute, t as RiverbankContentLoadError } from "./resolvePageContent-CAELMBEJ.mjs";
|
|
11
|
-
import { t as SDK_VERSION } from "./version-
|
|
11
|
+
import { t as SDK_VERSION } from "./version-SuFlio6n.mjs";
|
|
12
12
|
import { t as appendSearchToRedirectDestination } from "./redirect-destination-Bee5ZEon.mjs";
|
|
13
|
-
import { i as Page, r as resolveBlockOverridesForPage } from "./overrideResolution-
|
|
13
|
+
import { i as Page, r as resolveBlockOverridesForPage } from "./overrideResolution-CkpwAHvW.mjs";
|
|
14
14
|
import { cache } from "react";
|
|
15
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
import { BlocksIslandsHydrator } from "#sdk-rendering-client";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PageContent } from "./pageShared-
|
|
1
|
+
import { t as PageContent } from "./pageShared-6z6JBU41.mjs";
|
|
2
2
|
import { t as allOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
|
|
3
3
|
import { i as lazyBlockOverrideSymbol } from "./overrides-CD4d-1w7.mjs";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -4,7 +4,7 @@ import { $i as chosenString, $n as parseTeamMemberSpecialties, $o as getDayOfWee
|
|
|
4
4
|
import { B as HOVER_TEXT_THRESHOLD, C as materializeRuntimeButtonAppearance, F as resolveSurfaceForeground, G as resolveConcreteColorHex, H as contrastThresholdByPolicy, K as resolveOpaqueSurfaceHex, L as surfaceInkPublication, N as freezeOwnedThemeValue, O as mapButtonVisualAppearances, P as ownedThemeSnapshot, S as buttonTypographyDeclarations, U as inkReference, V as certifyPaint, b as buttonShadow, f as compositeHex, g as actionVariableFallback, n as parseSurfaceTree, o as resolveSurface, s as serializeSurfaceTree, v as buttonBorder, w as paddingDeclarations, x as buttonStateAppearanceDeclarations, y as buttonRadius } from "./accessibleSurfaces-CM3QANtw.mjs";
|
|
5
5
|
import { b as siteChromeBackgroundOverrideOwner, m as surfaceCardRoleValues, s as boxBackgroundSchema } from "./schema-BpsqaSSU.mjs";
|
|
6
6
|
import { l as renderableMediaAssetSchema, o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
|
|
7
|
-
import { a as normalizeLocationAddressText, d as mapDrawingSchema } from "./mapLocation-BM5WX7FY.mjs";
|
|
7
|
+
import { a as normalizeLocationAddressText, c as publicLocationSchema, d as mapDrawingSchema } from "./mapLocation-BM5WX7FY.mjs";
|
|
8
8
|
import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
|
|
9
9
|
import { A as MQ_TABLET_ONLY, D as MQ_MD_UP, E as MQ_MD_DOWN, O as MQ_SM_DOWN, T as MQ_LG_UP, c as readSdkPreviewPublishedPlacement, g as validateManifestDraft, k as MQ_SM_UP, m as compileManifestContentContract } from "./pageRuntimeSupport-uz4gzBOo.mjs";
|
|
10
10
|
import { n as RichTextDocSchema } from "./richTextSchema-QLaQrbII.mjs";
|
|
@@ -15763,7 +15763,16 @@ function prepareEntry(entry, input) {
|
|
|
15763
15763
|
*/
|
|
15764
15764
|
function previewableEditorContent(entry) {
|
|
15765
15765
|
if (entry.block.presentationAdmission.kind !== "editor") return entry.renderableContent;
|
|
15766
|
-
return validateManifestDraft(compileManifestContentContract(entry.definition.manifest), entry
|
|
15766
|
+
return validateManifestDraft(compileManifestContentContract(entry.definition.manifest), withoutRenderOnlyLocation(entry)).kind === "previewable" ? entry.renderableContent : null;
|
|
15767
|
+
}
|
|
15768
|
+
/**
|
|
15769
|
+
* The editor gives a custom map its public projection to draw (authoringLocationMaps).
|
|
15770
|
+
* The draft contract rightly refuses that shape, because it mustn't be saved, and
|
|
15771
|
+
* the owner's stored location was admitted before it was projected.
|
|
15772
|
+
*/
|
|
15773
|
+
function withoutRenderOnlyLocation(entry) {
|
|
15774
|
+
const { location, ...content } = entry.ownerEditableContent;
|
|
15775
|
+
return entry.block.kind === "block.location-map" && publicLocationSchema.safeParse(location).success ? content : entry.ownerEditableContent;
|
|
15767
15776
|
}
|
|
15768
15777
|
function buildPreparedContent(entry, content, input) {
|
|
15769
15778
|
const { dataContext } = input;
|
package/dist/server/prebuild.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as prebuildCache } from "./prebuild-
|
|
1
|
+
import { t as prebuildCache } from "./prebuild-B4_Llisx.mjs";
|
|
2
2
|
export { prebuildCache };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as toPageHydrationBootstrapConfig, t as PageContent } from "../../pageShared-
|
|
1
|
+
import { n as toPageHydrationBootstrapConfig, t as PageContent } from "../../pageShared-6z6JBU41.mjs";
|
|
2
2
|
export { PageContent, toPageHydrationBootstrapConfig };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as MissingBlockOverrideError } from "../pageShared-
|
|
1
|
+
import { d as MissingBlockOverrideError } from "../pageShared-6z6JBU41.mjs";
|
|
2
2
|
import { n as MissingSdkThemeError, t as MISSING_SDK_THEME_ERROR_CODE } from "../themeAdmission-DGSAlFUK.mjs";
|
|
3
3
|
import { n as defineBlockOverrides, r as defineLazyBlockOverride, t as defineBlockOverrideRegistrations } from "../overrides-CD4d-1w7.mjs";
|
|
4
|
-
import { a as buildFooterRenderablePageOutline, i as UnsupportedOverrideOnlyLayoutChromeError, o as prefetchFooterBlockData, r as Layout, t as BlockContent } from "../Block.shared-
|
|
5
|
-
import { i as Page, n as collectUsedBlockKindsFromPageOutline, r as resolveBlockOverridesForPage, t as buildPageBlockKindIndex } from "../overrideResolution-
|
|
4
|
+
import { a as buildFooterRenderablePageOutline, i as UnsupportedOverrideOnlyLayoutChromeError, o as prefetchFooterBlockData, r as Layout, t as BlockContent } from "../Block.shared-Dc3DX7Cf.mjs";
|
|
5
|
+
import { i as Page, n as collectUsedBlockKindsFromPageOutline, r as resolveBlockOverridesForPage, t as buildPageBlockKindIndex } from "../overrideResolution-CkpwAHvW.mjs";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/rendering/components/Block.server.tsx
|
|
8
8
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { v as resolveAuthoredLinkHref } from "./pageRenderPlan-CfSnAkCO.mjs";
|
|
2
2
|
import { at as computeMediaTransformStyle, ct as resolveImageUrlWithContext$1, ds as sanitizeHref, ft as buildResolveImageUrlContext, nt as RichText$2, ot as resolveImageSourceSetWithContext$1, qi as parseFieldDefinition, st as resolveImageUrl$1 } from "./registry-CXRXsFSx.mjs";
|
|
3
3
|
import { _ as parseMediaIdentifier, a as persistableMediaSchema, c as buildRenderableMediaAssetIndex, d as resolveManagedMediaReference, g as parseCanonicalMediaIdentifier, h as mediaIdentifierSchema, i as mediaSchema, l as renderableMediaAssetSchema, o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
|
|
4
|
-
import { d as MissingBlockOverrideError, f as PageRenderer, g as buildThemeRuntime, h as toBlocksMediaAssets, l as ThemeScope, m as toBlocksImageResolveContextInput, n as toPageHydrationBootstrapConfig, p as toBlocksPageRendererDataContext, t as PageContent, u as EditorPageRenderer } from "./pageShared-
|
|
4
|
+
import { d as MissingBlockOverrideError, f as PageRenderer, g as buildThemeRuntime, h as toBlocksMediaAssets, l as ThemeScope, m as toBlocksImageResolveContextInput, n as toPageHydrationBootstrapConfig, p as toBlocksPageRendererDataContext, t as PageContent, u as EditorPageRenderer } from "./pageShared-6z6JBU41.mjs";
|
|
5
5
|
import { _ as admitLayoutGridForPlan, b as projectRepeaterGridLayout$1, v as deriveFieldValidationPlan, x as projectRepeaterGridLayoutForRendering$1 } from "./pageRuntimeSupport-uz4gzBOo.mjs";
|
|
6
6
|
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-CxASA3PE.mjs";
|
|
7
7
|
import { n as MissingSdkThemeError, t as MISSING_SDK_THEME_ERROR_CODE } from "./themeAdmission-DGSAlFUK.mjs";
|
|
8
8
|
import { t as loadPage } from "./loadPage-CQgde5DN.mjs";
|
|
9
9
|
import { n as defineBlockOverrides, r as defineLazyBlockOverride, t as defineBlockOverrideRegistrations } from "./overrides-CD4d-1w7.mjs";
|
|
10
|
-
import { a as buildFooterRenderablePageOutline, i as UnsupportedOverrideOnlyLayoutChromeError, n as toBlockHydrationBootstrapConfig, r as Layout, t as BlockContent } from "./Block.shared-
|
|
10
|
+
import { a as buildFooterRenderablePageOutline, i as UnsupportedOverrideOnlyLayoutChromeError, n as toBlockHydrationBootstrapConfig, r as Layout, t as BlockContent } from "./Block.shared-Dc3DX7Cf.mjs";
|
|
11
11
|
import "react";
|
|
12
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { BlocksIslandsHydrator } from "#sdk-rendering-client";
|
package/dist/server/server.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createRiverbankClient } from "./client-
|
|
1
|
+
import { t as createRiverbankClient } from "./client-BPLLL22F.mjs";
|
|
2
2
|
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-CxASA3PE.mjs";
|
|
3
3
|
import { t as loadPage } from "./loadPage-CQgde5DN.mjs";
|
|
4
4
|
export { createRiverbankClient, isEntryContent, isPageContent, isPageSurfaceContent, loadContent, loadPage };
|
|
@@ -693,8 +693,6 @@ const navigationMenuConfigSchema = z.object({
|
|
|
693
693
|
});
|
|
694
694
|
});
|
|
695
695
|
const siteSettingsConfigSchema = z.object({
|
|
696
|
-
homepagePath: z.string().optional(),
|
|
697
|
-
siteTitle: z.string().optional(),
|
|
698
696
|
siteDescription: z.string().optional(),
|
|
699
697
|
defaultTemplates: z.record(z.string(), z.string()).optional()
|
|
700
698
|
});
|
package/dist/styles/index.css
CHANGED
|
@@ -21968,9 +21968,13 @@
|
|
|
21968
21968
|
/* Surface variables live on slots, so the line is defined on slots too. */
|
|
21969
21969
|
[data-skin="poise"] [data-arrangement] [data-slot] {
|
|
21970
21970
|
--poise-line: var(--rb-skin-rule, 1.5px) solid var(--rb-surface-line-color);
|
|
21971
|
-
--poise-photo-radius: calc(var(--rb-skin-radius, 24px) + 8px);
|
|
21972
21971
|
--poise-inner-radius: calc(var(--rb-skin-radius, 24px) - 8px);
|
|
21973
21972
|
}
|
|
21973
|
+
/* Rounded corners on a photo means Poise's own photo rounding, so it's declared where the Look's frame reads it. */
|
|
21974
|
+
[data-skin="poise"] [data-arrangement] {
|
|
21975
|
+
--poise-photo-radius: calc(var(--rb-skin-radius, 24px) + 8px);
|
|
21976
|
+
--rb-media-shape-radius: var(--poise-photo-radius);
|
|
21977
|
+
}
|
|
21974
21978
|
|
|
21975
21979
|
/* ---------------------------------------------- 2. Section chrome and type */
|
|
21976
21980
|
[data-skin="poise"] [data-arrangement] [data-slot="section"],
|
|
@@ -22325,6 +22329,9 @@
|
|
|
22325
22329
|
* so they start level with the details. */
|
|
22326
22330
|
@media (min-width: 768px) {
|
|
22327
22331
|
[data-skin="poise"] [data-arrangement][data-treat="plates"] [data-card-list] > [data-card-list-item]:only-child:not(:has(> [data-slot="item-media"])) > [data-slot="item-body"] > [data-slot="dates"] { margin: 0; }
|
|
22332
|
+
/* Two or more cards go two across, each with its photo on top. A lone card keeps the wide layout above. */
|
|
22333
|
+
[data-skin="poise"] [data-arrangement][data-treat="plates"] [data-card-list]:has(> [data-card-list-item]:nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
22334
|
+
[data-skin="poise"] [data-arrangement][data-treat="plates"] [data-card-list]:has(> [data-card-list-item]:nth-child(2)) > [data-card-list-item] { display: flex; flex-direction: column; align-items: stretch; }
|
|
22328
22335
|
}
|
|
22329
22336
|
|
|
22330
22337
|
|