@riverbankcms/sdk 0.118.0 → 0.121.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.
Files changed (34) hide show
  1. package/dist/{PreviewEditorSidebar-BBcK1DjD.mjs → PreviewEditorSidebar-lZ600tJx.mjs} +4 -4
  2. package/dist/{PreviewEditorUI-CuBFoYes.mjs → PreviewEditorUI-CTBWzLSb.mjs} +3 -3
  3. package/dist/{PreviewQueryProvider-nKUT4TL-.mjs → PreviewQueryProvider-BHT8CJvZ.mjs} +1 -1
  4. package/dist/{SdkPreviewModeRuntime-BWIO_Dsi.mjs → SdkPreviewModeRuntime-DhPU58s7.mjs} +5 -5
  5. package/dist/{SiteChromeCustomizeContext-CciG60M5.mjs → SiteChromeCustomizeContext-BkNvpzNZ.mjs} +52 -6
  6. package/dist/_dts/ai/src/contracts/proposals.d.ts +0 -72
  7. package/dist/_dts/api/src/bookingConfig.d.ts +26 -1
  8. package/dist/_dts/api/src/contentRuntime.d.ts +1 -1
  9. package/dist/_dts/api/src/courses.d.ts +7 -1
  10. package/dist/_dts/api/src/endpoints.d.ts +2 -2
  11. package/dist/_dts/api/src/index.d.ts +3 -3
  12. package/dist/_dts/api/src/navigation/dashboardBookingsNav.d.ts +4 -1
  13. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +3 -3
  14. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +22 -39
  15. package/dist/_dts/sdk/src/version.d.ts +1 -1
  16. package/dist/_dts/site-commands/src/commands.d.ts +1 -7
  17. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +6 -0
  18. package/dist/cli/index.mjs +3 -7
  19. package/dist/client/client.mjs +45 -3
  20. package/dist/client/rendering.mjs +43 -1
  21. package/dist/preview-next/before-render.mjs +1 -1
  22. package/dist/preview-next/client/runtime.mjs +4 -4
  23. package/dist/preview-next/middleware.mjs +1 -1
  24. package/dist/{previewAuthStore-DN7vcRsv.mjs → previewAuthStore-31xH13Jc.mjs} +1 -1
  25. package/dist/{sdk-runtime-vW8QbyPN.mjs → sdk-runtime-BE_vcGua.mjs} +2 -2
  26. package/dist/{separator-DJ4bkeY3.mjs → separator-CiffYtk3.mjs} +1 -1
  27. package/dist/server/components.mjs +43 -1
  28. package/dist/server/index.mjs +2 -2
  29. package/dist/server/next.mjs +45 -3
  30. package/dist/server/prebuild.mjs +1 -1
  31. package/dist/server/rendering/server.mjs +43 -1
  32. package/dist/server/rendering.mjs +43 -1
  33. package/dist/server/server.mjs +2 -2
  34. package/package.json +1 -1
@@ -2280,7 +2280,7 @@ const API_ENDPOINTS$1 = {
2280
2280
  auth: "user",
2281
2281
  responseKind: "json"
2282
2282
  },
2283
- publishEventOfferingPageSurface: {
2283
+ publishPageSurface: {
2284
2284
  path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/publication",
2285
2285
  method: "POST",
2286
2286
  errors: [
@@ -63073,6 +63073,7 @@ function generateHeaderCss(options) {
63073
63073
  cssChunks.push(generateMobilePanelStyles(header, themeId, tokens));
63074
63074
  if (header.variant === "floating" && header.container) cssChunks.push(generateFloatingContainerStyles(header, themeId, tokens));
63075
63075
  cssChunks.push(generateNavContainerStyles(header, themeId, tokens));
63076
+ cssChunks.push(generateHeaderCtaTreatmentStyles(header, themeId, tokens));
63076
63077
  cssChunks.push(generateCtaGapStyles(header, themeId));
63077
63078
  return cssChunks.filter(Boolean).join("\n\n");
63078
63079
  }
@@ -63543,6 +63544,46 @@ const HEADER_CTA_GAP_MAP = {
63543
63544
  spacious: "3rem"
63544
63545
  };
63545
63546
  /**
63547
+ * The inverted CTA treatment is contextual to branded header surfaces. It
63548
+ * cannot be represented by the generic secondary button role alone because
63549
+ * that role is transparent and inherits the surrounding surface foreground.
63550
+ * Keep the shared button's structure/effects while making the header own the
63551
+ * palette relationship for both desktop and mobile CTAs.
63552
+ */
63553
+ function generateHeaderCtaTreatmentStyles(header, themeId, tokens) {
63554
+ if (header.ctaTreatment !== "inverted") return "";
63555
+ const desktopSelector = `:where([data-theme-scope="${themeId}"]) .header-cta`;
63556
+ const mobileSelector = `:where([data-theme-scope="${themeId}"]) .nav-mobile-cta`;
63557
+ const selectors = `${desktopSelector},\n${mobileSelector}`;
63558
+ const hoverSelectors = [
63559
+ `${desktopSelector}:hover`,
63560
+ `${desktopSelector}[data-force-hover="true"]`,
63561
+ `${mobileSelector}:hover`,
63562
+ `${mobileSelector}[data-force-hover="true"]`
63563
+ ].join(",\n");
63564
+ const focusSelectors = [`${desktopSelector}:focus-visible`, `${mobileSelector}:focus-visible`].join(",\n");
63565
+ return `
63566
+ ${selectors} {
63567
+ background-color: ${tokens.getColor("background")};
63568
+ background-image: none;
63569
+ color: ${tokens.getColor("onBackground")};
63570
+ border-color: currentColor;
63571
+ }
63572
+
63573
+ ${hoverSelectors} {
63574
+ background-color: ${tokens.getColor("surface")};
63575
+ background-image: none;
63576
+ color: ${tokens.getColor("onSurface")};
63577
+ }
63578
+
63579
+ ${focusSelectors} {
63580
+ outline: 2px solid ${tokens.getColor("onBackground")};
63581
+ outline-offset: 2px;
63582
+ box-shadow: 0 0 0 4px ${tokens.getColor("background")};
63583
+ }
63584
+ `;
63585
+ }
63586
+ /**
63546
63587
  * Generate CTA button gap styles (left margin between nav links and CTA)
63547
63588
  */
63548
63589
  function generateCtaGapStyles(header, themeId) {
@@ -63600,7 +63641,8 @@ ${`:where([data-theme-scope="${themeId}"])`} .footer-logo img {
63600
63641
  `;
63601
63642
  }
63602
63643
  function resolveFooterLogoSize(footer, headerLogo) {
63603
- return footerLogoSizeFromHeaderLogo(headerLogo) ?? footer.logo?.maxHeight ?? footer.logo?.size ?? "md";
63644
+ const brandDrivenSize = footerLogoSizeFromHeaderLogo(headerLogo);
63645
+ return footer.logo?.maxHeight ?? brandDrivenSize ?? footer.logo?.size ?? "md";
63604
63646
  }
63605
63647
  function footerLogoSizeFromHeaderLogo(headerLogo) {
63606
63648
  const size = headerLogo?.size;
@@ -86972,7 +87014,7 @@ var CircuitOpenError = class extends Error {
86972
87014
  * 1. This constant
86973
87015
  * 2. The "version" field in package.json
86974
87016
  */
86975
- const SDK_VERSION = "0.118.0";
87017
+ const SDK_VERSION = "0.121.0";
86976
87018
  //#endregion
86977
87019
  //#region src/next/content-load-failure.ts
86978
87020
  const SdkContentLoadError = RiverbankContentLoadError;
@@ -12,7 +12,7 @@ import * as crypto from "crypto";
12
12
  * 1. This constant
13
13
  * 2. The "version" field in package.json
14
14
  */
15
- const SDK_VERSION = "0.118.0";
15
+ const SDK_VERSION = "0.121.0";
16
16
  //#endregion
17
17
  //#region src/constants.ts
18
18
  /**
@@ -54506,6 +54506,7 @@ function generateHeaderCss(options) {
54506
54506
  cssChunks.push(generateMobilePanelStyles(header, themeId, tokens));
54507
54507
  if (header.variant === "floating" && header.container) cssChunks.push(generateFloatingContainerStyles(header, themeId, tokens));
54508
54508
  cssChunks.push(generateNavContainerStyles(header, themeId, tokens));
54509
+ cssChunks.push(generateHeaderCtaTreatmentStyles(header, themeId, tokens));
54509
54510
  cssChunks.push(generateCtaGapStyles(header, themeId));
54510
54511
  return cssChunks.filter(Boolean).join("\n\n");
54511
54512
  }
@@ -54976,6 +54977,46 @@ const HEADER_CTA_GAP_MAP = {
54976
54977
  spacious: "3rem"
54977
54978
  };
54978
54979
  /**
54980
+ * The inverted CTA treatment is contextual to branded header surfaces. It
54981
+ * cannot be represented by the generic secondary button role alone because
54982
+ * that role is transparent and inherits the surrounding surface foreground.
54983
+ * Keep the shared button's structure/effects while making the header own the
54984
+ * palette relationship for both desktop and mobile CTAs.
54985
+ */
54986
+ function generateHeaderCtaTreatmentStyles(header, themeId, tokens) {
54987
+ if (header.ctaTreatment !== "inverted") return "";
54988
+ const desktopSelector = `:where([data-theme-scope="${themeId}"]) .header-cta`;
54989
+ const mobileSelector = `:where([data-theme-scope="${themeId}"]) .nav-mobile-cta`;
54990
+ const selectors = `${desktopSelector},\n${mobileSelector}`;
54991
+ const hoverSelectors = [
54992
+ `${desktopSelector}:hover`,
54993
+ `${desktopSelector}[data-force-hover="true"]`,
54994
+ `${mobileSelector}:hover`,
54995
+ `${mobileSelector}[data-force-hover="true"]`
54996
+ ].join(",\n");
54997
+ const focusSelectors = [`${desktopSelector}:focus-visible`, `${mobileSelector}:focus-visible`].join(",\n");
54998
+ return `
54999
+ ${selectors} {
55000
+ background-color: ${tokens.getColor("background")};
55001
+ background-image: none;
55002
+ color: ${tokens.getColor("onBackground")};
55003
+ border-color: currentColor;
55004
+ }
55005
+
55006
+ ${hoverSelectors} {
55007
+ background-color: ${tokens.getColor("surface")};
55008
+ background-image: none;
55009
+ color: ${tokens.getColor("onSurface")};
55010
+ }
55011
+
55012
+ ${focusSelectors} {
55013
+ outline: 2px solid ${tokens.getColor("onBackground")};
55014
+ outline-offset: 2px;
55015
+ box-shadow: 0 0 0 4px ${tokens.getColor("background")};
55016
+ }
55017
+ `;
55018
+ }
55019
+ /**
54979
55020
  * Generate CTA button gap styles (left margin between nav links and CTA)
54980
55021
  */
54981
55022
  function generateCtaGapStyles(header, themeId) {
@@ -55033,7 +55074,8 @@ ${`:where([data-theme-scope="${themeId}"])`} .footer-logo img {
55033
55074
  `;
55034
55075
  }
55035
55076
  function resolveFooterLogoSize(footer, headerLogo) {
55036
- return footerLogoSizeFromHeaderLogo(headerLogo) ?? footer.logo?.maxHeight ?? footer.logo?.size ?? "md";
55077
+ const brandDrivenSize = footerLogoSizeFromHeaderLogo(headerLogo);
55078
+ return footer.logo?.maxHeight ?? brandDrivenSize ?? footer.logo?.size ?? "md";
55037
55079
  }
55038
55080
  function footerLogoSizeFromHeaderLogo(headerLogo) {
55039
55081
  const size = headerLogo?.size;
@@ -55572,6 +55572,7 @@ function generateHeaderCss(options) {
55572
55572
  cssChunks.push(generateMobilePanelStyles(header, themeId, tokens));
55573
55573
  if (header.variant === "floating" && header.container) cssChunks.push(generateFloatingContainerStyles(header, themeId, tokens));
55574
55574
  cssChunks.push(generateNavContainerStyles(header, themeId, tokens));
55575
+ cssChunks.push(generateHeaderCtaTreatmentStyles(header, themeId, tokens));
55575
55576
  cssChunks.push(generateCtaGapStyles(header, themeId));
55576
55577
  return cssChunks.filter(Boolean).join("\n\n");
55577
55578
  }
@@ -56042,6 +56043,46 @@ const HEADER_CTA_GAP_MAP = {
56042
56043
  spacious: "3rem"
56043
56044
  };
56044
56045
  /**
56046
+ * The inverted CTA treatment is contextual to branded header surfaces. It
56047
+ * cannot be represented by the generic secondary button role alone because
56048
+ * that role is transparent and inherits the surrounding surface foreground.
56049
+ * Keep the shared button's structure/effects while making the header own the
56050
+ * palette relationship for both desktop and mobile CTAs.
56051
+ */
56052
+ function generateHeaderCtaTreatmentStyles(header, themeId, tokens) {
56053
+ if (header.ctaTreatment !== "inverted") return "";
56054
+ const desktopSelector = `:where([data-theme-scope="${themeId}"]) .header-cta`;
56055
+ const mobileSelector = `:where([data-theme-scope="${themeId}"]) .nav-mobile-cta`;
56056
+ const selectors = `${desktopSelector},\n${mobileSelector}`;
56057
+ const hoverSelectors = [
56058
+ `${desktopSelector}:hover`,
56059
+ `${desktopSelector}[data-force-hover="true"]`,
56060
+ `${mobileSelector}:hover`,
56061
+ `${mobileSelector}[data-force-hover="true"]`
56062
+ ].join(",\n");
56063
+ const focusSelectors = [`${desktopSelector}:focus-visible`, `${mobileSelector}:focus-visible`].join(",\n");
56064
+ return `
56065
+ ${selectors} {
56066
+ background-color: ${tokens.getColor("background")};
56067
+ background-image: none;
56068
+ color: ${tokens.getColor("onBackground")};
56069
+ border-color: currentColor;
56070
+ }
56071
+
56072
+ ${hoverSelectors} {
56073
+ background-color: ${tokens.getColor("surface")};
56074
+ background-image: none;
56075
+ color: ${tokens.getColor("onSurface")};
56076
+ }
56077
+
56078
+ ${focusSelectors} {
56079
+ outline: 2px solid ${tokens.getColor("onBackground")};
56080
+ outline-offset: 2px;
56081
+ box-shadow: 0 0 0 4px ${tokens.getColor("background")};
56082
+ }
56083
+ `;
56084
+ }
56085
+ /**
56045
56086
  * Generate CTA button gap styles (left margin between nav links and CTA)
56046
56087
  */
56047
56088
  function generateCtaGapStyles(header, themeId) {
@@ -56099,7 +56140,8 @@ ${`:where([data-theme-scope="${themeId}"])`} .footer-logo img {
56099
56140
  `;
56100
56141
  }
56101
56142
  function resolveFooterLogoSize(footer, headerLogo) {
56102
- return footerLogoSizeFromHeaderLogo(headerLogo) ?? footer.logo?.maxHeight ?? footer.logo?.size ?? "md";
56143
+ const brandDrivenSize = footerLogoSizeFromHeaderLogo(headerLogo);
56144
+ return footer.logo?.maxHeight ?? brandDrivenSize ?? footer.logo?.size ?? "md";
56103
56145
  }
56104
56146
  function footerLogoSizeFromHeaderLogo(headerLogo) {
56105
56147
  const size = headerLogo?.size;
@@ -2285,7 +2285,7 @@ const API_ENDPOINTS$1 = {
2285
2285
  auth: "user",
2286
2286
  responseKind: "json"
2287
2287
  },
2288
- publishEventOfferingPageSurface: {
2288
+ publishPageSurface: {
2289
2289
  path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/publication",
2290
2290
  method: "POST",
2291
2291
  errors: [
@@ -7874,7 +7874,7 @@ var SimpleCache = class {
7874
7874
  * 1. This constant
7875
7875
  * 2. The "version" field in package.json
7876
7876
  */
7877
- const SDK_VERSION = "0.118.0";
7877
+ const SDK_VERSION = "0.121.0";
7878
7878
  //#endregion
7879
7879
  //#region src/client/error.ts
7880
7880
  let _Symbol$for;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riverbankcms/sdk",
3
- "version": "0.118.0",
3
+ "version": "0.121.0",
4
4
  "description": "Riverbank CMS SDK for headless content consumption",
5
5
  "main": "./dist/server/index.mjs",
6
6
  "module": "./dist/server/index.mjs",