@riverbankcms/sdk 0.102.0 → 0.103.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 +10 -2
- package/dist/{PreviewEditorSidebar-BKkhhkJk.mjs → PreviewEditorSidebar-DkNpCPja.mjs} +75 -9
- package/dist/{PreviewEditorUI-DIvTqcqI.mjs → PreviewEditorUI-DeNKtqk3.mjs} +2 -2
- package/dist/{SdkPreviewModeRuntime-CA2k7Z_T.mjs → SdkPreviewModeRuntime-5bCsXK2y.mjs} +572 -285
- package/dist/{SiteChromeCustomizeContext-Bh9-DtMQ.mjs → SiteChromeCustomizeContext-CO1sTK_W.mjs} +336 -36
- package/dist/_dts/ai/src/contracts/proposals.d.ts +298 -298
- package/dist/_dts/api/src/index.d.ts +1 -1
- package/dist/_dts/api/src/navigation/contracts.d.ts +6 -6
- package/dist/_dts/api/src/siteBanner.d.ts +2 -2
- package/dist/_dts/blocks/src/PageRenderer.d.ts +6 -1
- package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
- package/dist/_dts/blocks/src/index.d.ts +1 -1
- package/dist/_dts/blocks/src/server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +7 -7
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +14 -14
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +5 -5
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +227 -227
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +1 -1
- package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +2 -2
- package/dist/_dts/blocks/src/system/inlineText.d.ts +2 -2
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +177 -177
- package/dist/_dts/blocks/src/system/node/schema.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +7 -7
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +1 -1
- package/dist/_dts/content-model/src/content-types/schema.d.ts +8 -8
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +154 -18
- package/dist/_dts/db/src/schemas/forms.d.ts +15 -15
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/CustomizeColorTokenPicker.d.ts +27 -0
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +10 -2
- package/dist/_dts/preview-next/src/client/preview/sidebarTabPreference.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +16 -1
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +3 -2
- package/dist/_dts/sdk/src/config/validation.d.ts +3 -3
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/page.d.ts +2 -0
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +10 -10
- package/dist/_dts/sdk/src/next/revalidate.d.ts +14 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -1
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +3 -2
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +3 -4
- package/dist/_dts/sdk/src/rendering/hooks/useContent.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commands.d.ts +19 -19
- package/dist/_dts/theme-core/src/accordions/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/buttons/types.d.ts +7 -7
- package/dist/_dts/theme-core/src/cards/types.d.ts +6 -6
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/inputs/types.d.ts +4 -4
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +150 -144
- package/dist/_dts/theme-core/src/navigation/types.d.ts +6 -6
- package/dist/_dts/theme-core/src/palette/variants/types.d.ts +5 -5
- package/dist/_dts/theme-core/src/schema.d.ts +199 -169
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/contentTemplateRuntimeCompiler.d.ts +2 -1
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +24 -24
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +4 -2
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +26 -1
- package/dist/_dts/theme-core/src/site-styles/sectionTransitions.d.ts +77 -0
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +44 -0
- package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +3 -3
- package/dist/_dts/ui/src/badge.d.ts +1 -1
- package/dist/_dts/ui/src/button.d.ts +1 -1
- package/dist/_dts/ui/src/card.d.ts +1 -1
- package/dist/_dts/ui/src/toggle.d.ts +2 -2
- package/dist/cli/index.mjs +28 -7
- package/dist/cli/init-docs/content/workflow-isr-revalidation.md +9 -1
- package/dist/client/client.mjs +337 -69
- package/dist/client/hooks.mjs +13 -1
- package/dist/client/rendering/client.mjs +25 -4
- package/dist/client/rendering.mjs +336 -68
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/{sdk-runtime-K8Oqj97H.mjs → sdk-runtime-C8whifOy.mjs} +1 -1
- package/dist/{separator-CRoP34pT.mjs → separator-CM2C5Axs.mjs} +1 -1
- package/dist/server/components.mjs +321 -65
- package/dist/server/config-validation.mjs +12 -1
- package/dist/server/config.mjs +12 -1
- package/dist/server/data.mjs +12 -1
- package/dist/server/index.mjs +1 -1
- package/dist/server/next/revalidate.mjs +31 -1
- package/dist/server/next.mjs +325 -66
- package/dist/server/page-converter.mjs +12 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +323 -65
- package/dist/server/rendering.mjs +323 -65
- package/dist/server/routing.mjs +24 -3
- package/dist/server/server.mjs +15 -2
- package/dist/server/theme-bridge.mjs +153 -32
- package/dist/server/theme.mjs +2 -0
- package/dist/styles/index.css +123 -30
- package/package.json +1 -1
package/dist/client/hooks.mjs
CHANGED
|
@@ -4982,6 +4982,8 @@ const headerSchema = z$1.object({
|
|
|
4982
4982
|
navStyle: headerNavStyle,
|
|
4983
4983
|
navColor: themeColorTokenSchema.nullable().optional(),
|
|
4984
4984
|
navWeight: navFontWeight.default("medium"),
|
|
4985
|
+
navTypography: z$1.enum(["body", "heading"]).optional(),
|
|
4986
|
+
navTextSize: navLinkStyleSchema.shape.textSize,
|
|
4985
4987
|
container: headerContainerSchema,
|
|
4986
4988
|
border: headerBorderSchema,
|
|
4987
4989
|
shadow: componentShadowSchema.optional(),
|
|
@@ -7360,6 +7362,15 @@ function uniqueStrings(values) {
|
|
|
7360
7362
|
}
|
|
7361
7363
|
//#endregion
|
|
7362
7364
|
//#region ../theme-core/src/site-styles/sectionTransitions.ts
|
|
7365
|
+
function boundaryRuntimeMetrics(family, size, heightExpression) {
|
|
7366
|
+
return {
|
|
7367
|
+
family,
|
|
7368
|
+
size,
|
|
7369
|
+
heightCss: heightExpression.includes(" ") ? `calc(${heightExpression})` : heightExpression,
|
|
7370
|
+
reserveCss: `calc((${heightExpression}) / 2)`
|
|
7371
|
+
};
|
|
7372
|
+
}
|
|
7373
|
+
boundaryRuntimeMetrics("gradient", "medium", "6rem + 2px"), boundaryRuntimeMetrics("gradient", "spacious", "10rem"), boundaryRuntimeMetrics("gradient", "expansive", "14rem"), boundaryRuntimeMetrics("wave", "medium", "6rem + 2px"), boundaryRuntimeMetrics("wave", "medium", "6rem + 2px"), boundaryRuntimeMetrics("wave", "compact", "4.5rem + 2px"), boundaryRuntimeMetrics("wave", "large", "7rem + 2px"), boundaryRuntimeMetrics("wave", "medium", "6rem + 2px"), boundaryRuntimeMetrics("angle", "medium", "6rem + 2px"), boundaryRuntimeMetrics("angle", "compact", "4.5rem + 2px"), boundaryRuntimeMetrics("angle", "large", "7rem + 2px");
|
|
7363
7374
|
const noneBoundaryOption = {
|
|
7364
7375
|
id: asBoundaryOptionId("break:none"),
|
|
7365
7376
|
label: "None",
|
|
@@ -8047,7 +8058,7 @@ const overlayLogoAccommodations = [
|
|
|
8047
8058
|
* optional nested styling fields that would otherwise leak from another Look.
|
|
8048
8059
|
*/
|
|
8049
8060
|
function baseHeader(theme) {
|
|
8050
|
-
const { navLinkStyle: _navLinkStyle, dropdownStyle: _dropdownStyle, ctaVariant: _ctaVariant, navContainer: _navContainer, container: _container, shadow: _shadow, logo: _logo, logoText: _logoText, border: _border, ...header } = theme.header;
|
|
8061
|
+
const { navLinkStyle: _navLinkStyle, navTypography: _navTypography, navTextSize: _navTextSize, dropdownStyle: _dropdownStyle, ctaVariant: _ctaVariant, navContainer: _navContainer, container: _container, shadow: _shadow, logo: _logo, logoText: _logoText, border: _border, ...header } = theme.header;
|
|
8051
8062
|
return {
|
|
8052
8063
|
...header,
|
|
8053
8064
|
navContainer: {
|
|
@@ -34842,6 +34853,7 @@ function usePage(params) {
|
|
|
34842
34853
|
loading: false,
|
|
34843
34854
|
error: null,
|
|
34844
34855
|
page: pageOutline,
|
|
34856
|
+
runtimeBoundaries: pageData.runtimeBoundaries,
|
|
34845
34857
|
theme: site.theme,
|
|
34846
34858
|
siteId,
|
|
34847
34859
|
resolvedData,
|
|
@@ -18710,6 +18710,8 @@ var init_schema$1 = __esmMin((() => {
|
|
|
18710
18710
|
navStyle: headerNavStyle,
|
|
18711
18711
|
navColor: themeColorTokenSchema.nullable().optional(),
|
|
18712
18712
|
navWeight: navFontWeight.default("medium"),
|
|
18713
|
+
navTypography: z$1.enum(["body", "heading"]).optional(),
|
|
18714
|
+
navTextSize: navLinkStyleSchema.shape.textSize,
|
|
18713
18715
|
container: headerContainerSchema,
|
|
18714
18716
|
border: headerBorderSchema,
|
|
18715
18717
|
shadow: componentShadowSchema.optional(),
|
|
@@ -20264,9 +20266,22 @@ var init_backgroundAppearance = __esmMin((() => {
|
|
|
20264
20266
|
}));
|
|
20265
20267
|
var init_compositionBudget = __esmMin((() => {
|
|
20266
20268
|
init_types$12();
|
|
20267
|
-
}))
|
|
20269
|
+
}));
|
|
20270
|
+
var init_schemaVersionedJson = __esmMin((() => {}));
|
|
20271
|
+
//#endregion
|
|
20272
|
+
//#region ../theme-core/src/site-styles/sectionTransitions.ts
|
|
20273
|
+
function boundaryRuntimeMetrics(family, size, heightExpression) {
|
|
20274
|
+
return {
|
|
20275
|
+
family,
|
|
20276
|
+
size,
|
|
20277
|
+
heightCss: heightExpression.includes(" ") ? `calc(${heightExpression})` : heightExpression,
|
|
20278
|
+
reserveCss: `calc((${heightExpression}) / 2)`
|
|
20279
|
+
};
|
|
20280
|
+
}
|
|
20281
|
+
var noneBoundaryOption, softBoundaryOption, spaciousBoundaryOption;
|
|
20268
20282
|
var init_sectionTransitions = __esmMin((() => {
|
|
20269
20283
|
init_types$12();
|
|
20284
|
+
boundaryRuntimeMetrics("gradient", "medium", "6rem + 2px"), boundaryRuntimeMetrics("gradient", "spacious", "10rem"), boundaryRuntimeMetrics("gradient", "expansive", "14rem"), boundaryRuntimeMetrics("wave", "medium", "6rem + 2px"), boundaryRuntimeMetrics("wave", "medium", "6rem + 2px"), boundaryRuntimeMetrics("wave", "compact", "4.5rem + 2px"), boundaryRuntimeMetrics("wave", "large", "7rem + 2px"), boundaryRuntimeMetrics("wave", "medium", "6rem + 2px"), boundaryRuntimeMetrics("angle", "medium", "6rem + 2px"), boundaryRuntimeMetrics("angle", "compact", "4.5rem + 2px"), boundaryRuntimeMetrics("angle", "large", "7rem + 2px");
|
|
20270
20285
|
noneBoundaryOption = {
|
|
20271
20286
|
id: asBoundaryOptionId("break:none"),
|
|
20272
20287
|
label: "None",
|
|
@@ -20784,7 +20799,7 @@ function asHeaderStyleId(value) {
|
|
|
20784
20799
|
* optional nested styling fields that would otherwise leak from another Look.
|
|
20785
20800
|
*/
|
|
20786
20801
|
function baseHeader(theme) {
|
|
20787
|
-
const { navLinkStyle: _navLinkStyle, dropdownStyle: _dropdownStyle, ctaVariant: _ctaVariant, navContainer: _navContainer, container: _container, shadow: _shadow, logo: _logo, logoText: _logoText, border: _border, ...header } = theme.header;
|
|
20802
|
+
const { navLinkStyle: _navLinkStyle, navTypography: _navTypography, navTextSize: _navTextSize, dropdownStyle: _dropdownStyle, ctaVariant: _ctaVariant, navContainer: _navContainer, container: _container, shadow: _shadow, logo: _logo, logoText: _logoText, border: _border, ...header } = theme.header;
|
|
20788
20803
|
return {
|
|
20789
20804
|
...header,
|
|
20790
20805
|
navContainer: {
|
|
@@ -22921,6 +22936,7 @@ var init_runtimeCompiler = __esmMin((() => {
|
|
|
22921
22936
|
init_designState();
|
|
22922
22937
|
init_types$12();
|
|
22923
22938
|
init_accessibleSurfaces();
|
|
22939
|
+
init_sectionTransitions();
|
|
22924
22940
|
defaultDesignRuntimeRules = defineDesignRuntimeRules({
|
|
22925
22941
|
sectionSurfaces: {
|
|
22926
22942
|
base: {},
|
|
@@ -24715,13 +24731,15 @@ function toSiteChromeBackgroundColorTokens(tokenNames) {
|
|
|
24715
24731
|
return token ? [token] : [];
|
|
24716
24732
|
});
|
|
24717
24733
|
}
|
|
24718
|
-
var siteChromeBackgroundColorTokens, quickSiteChromeBackgroundColorTokens
|
|
24734
|
+
var siteChromeBackgroundColorTokens, quickSiteChromeBackgroundColorTokens;
|
|
24735
|
+
var init_siteChromeBackgrounds = __esmMin((() => {
|
|
24719
24736
|
init_backgroundAppearance();
|
|
24720
24737
|
init_rawStyleFields();
|
|
24721
24738
|
siteChromeBackgroundColorTokens = toSiteChromeBackgroundColorTokens(backgroundAppearanceColorTokenNames);
|
|
24722
24739
|
quickSiteChromeBackgroundColorTokens = toSiteChromeBackgroundColorTokens(backgroundAppearanceQuickColorTokenNames);
|
|
24723
24740
|
siteChromeBackgroundColorTokens.filter((token) => !quickSiteChromeBackgroundColorTokens.includes(token));
|
|
24724
|
-
}))
|
|
24741
|
+
}));
|
|
24742
|
+
var init_siteChromeNavPreferences = __esmMin((() => {})), themeTokenRecipeOptions;
|
|
24725
24743
|
var init_tokenRecipes = __esmMin((() => {
|
|
24726
24744
|
themeTokenRecipeOptions = {
|
|
24727
24745
|
palette: [
|
|
@@ -24806,6 +24824,7 @@ var init_site_styles = __esmMin((() => {
|
|
|
24806
24824
|
init_runtimeCompiler();
|
|
24807
24825
|
init_sectionTransitions();
|
|
24808
24826
|
init_siteChromeBackgrounds();
|
|
24827
|
+
init_siteChromeNavPreferences();
|
|
24809
24828
|
init_siteStyleThemeCompiler();
|
|
24810
24829
|
init_siteStyleBlockPolicies();
|
|
24811
24830
|
init_sourceCatalogs();
|
|
@@ -112740,6 +112759,7 @@ init_generateEffectsCSS();
|
|
|
112740
112759
|
//#endregion
|
|
112741
112760
|
//#region ../theme-core/src/header/generateHeaderCss.ts
|
|
112742
112761
|
init_resolver$1();
|
|
112762
|
+
init_siteChromeNavPreferences();
|
|
112743
112763
|
init_shared$2();
|
|
112744
112764
|
init_breakpoints();
|
|
112745
112765
|
init_navDropdownSizing();
|
|
@@ -112749,6 +112769,7 @@ init_resolver$1();
|
|
|
112749
112769
|
//#endregion
|
|
112750
112770
|
//#region ../theme-core/src/layout/generateLayoutCss.ts
|
|
112751
112771
|
init_breakpoints();
|
|
112772
|
+
init_sectionTransitions();
|
|
112752
112773
|
svgDataUrl("<svg viewBox='0 0 1440 72' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><path d='M0 72V46C130 55 260 24 420 30C590 36 690 62 860 42C1035 21 1160 47 1305 36C1365 31 1415 33 1440 38V72H0Z' fill='white'/></svg>");
|
|
112753
112774
|
svgDataUrl("<svg viewBox='0 0 1440 72' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><path d='M0 72V42C120 24 240 24 360 42C480 60 600 60 720 42C840 24 960 24 1080 42C1200 60 1320 60 1440 42V72H0Z' fill='white'/></svg>");
|
|
112754
112775
|
svgDataUrl("<svg viewBox='0 0 1440 72' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><path d='M0 72V43C180 32 300 32 480 43C660 54 780 54 960 43C1140 32 1260 32 1440 43V72H0Z' fill='white'/></svg>");
|