@riverbankcms/sdk 0.74.0 → 0.75.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 (113) hide show
  1. package/dist/{PreviewEditorSidebar-5XL7M3OM.mjs → PreviewEditorSidebar-U2IHCBYN.mjs} +3 -3
  2. package/dist/{PreviewEditorUI-ZDFRDJID.mjs → PreviewEditorUI-ZGH2RQNP.mjs} +3 -3
  3. package/dist/SdkPreviewModeRuntime-MTUGBTLQ.mjs +8 -0
  4. package/dist/_dts/api/src/cache-tags.d.ts +22 -0
  5. package/dist/_dts/api/src/contentRuntime.d.ts +1 -0
  6. package/dist/_dts/api/src/endpoints.d.ts +24 -24
  7. package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +2 -1
  8. package/dist/_dts/block-form/src/blockDraftSaveability.d.ts +4 -1
  9. package/dist/_dts/blocks/src/client/booking-form.d.ts +2 -0
  10. package/dist/_dts/blocks/src/client/carousel.d.ts +1 -0
  11. package/dist/_dts/blocks/src/client/course-registration.d.ts +2 -0
  12. package/dist/_dts/blocks/src/client/events.d.ts +4 -0
  13. package/dist/_dts/blocks/src/client/form.d.ts +2 -0
  14. package/dist/_dts/blocks/src/client/header.d.ts +1 -0
  15. package/dist/_dts/blocks/src/client/location-map.d.ts +1 -0
  16. package/dist/_dts/blocks/src/client/newsletter-form.d.ts +2 -0
  17. package/dist/_dts/blocks/src/client/shop.d.ts +6 -0
  18. package/dist/_dts/blocks/src/lib/video.d.ts +2 -0
  19. package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +21 -1
  20. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +1 -0
  21. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +3 -2
  22. package/dist/_dts/blocks/src/system/runtime/nodes/events/index.d.ts +3 -0
  23. package/dist/_dts/blocks/src/system/runtime/nodes/header-section.client.d.ts +1 -0
  24. package/dist/_dts/blocks/src/system/runtime/nodes/header-section.server.d.ts +1 -0
  25. package/dist/_dts/content-editor/src/hooks/validateBlocksForPublish.d.ts +5 -0
  26. package/dist/_dts/preview-next/src/client/preview/SiteChromeEditableSurface.d.ts +12 -2
  27. package/dist/_dts/sdk/src/public-api/contracts.d.ts +1 -0
  28. package/dist/_dts/sdk/src/rendering/islands/deferredVideoEmbeds.d.ts +2 -0
  29. package/dist/_dts/sdk/src/rendering/server.d.ts +3 -0
  30. package/dist/_dts/sdk/src/version.d.ts +1 -1
  31. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  32. package/dist/{chunk-YY7K3QD2.mjs → chunk-BGMNDF6T.mjs} +7 -7
  33. package/dist/{chunk-2MIWNFJM.mjs → chunk-GFE74WRD.mjs} +309 -84
  34. package/dist/{chunk-CEQBBLMJ.mjs → chunk-RWXQBRQZ.mjs} +1 -1
  35. package/dist/{chunk-7RX72SK2.mjs → chunk-VX7B5VAC.mjs} +36 -25
  36. package/dist/{chunk-YRJKZEQ3.mjs → chunk-Z7JLNTJR.mjs} +1 -1
  37. package/dist/{chunk-CBD47MTM.mjs → chunk-ZSHFGFUG.mjs} +2 -2
  38. package/dist/cli/index.mjs +3395 -3753
  39. package/dist/client/{accordion-ZZVXWV3N.mjs → accordion-T2UD2ZTH.mjs} +1 -1
  40. package/dist/client/bookingForm-GUP75FKN.mjs +3022 -0
  41. package/dist/client/bookings.mjs +19 -10
  42. package/dist/client/{carousel-25WK2H7G.mjs → carousel-2NQA6V57.mjs} +3 -2
  43. package/dist/client/cart-5TFIAFDS.mjs +18 -0
  44. package/dist/client/checkout-TP4WAHZE.mjs +18 -0
  45. package/dist/client/chunk-2PHQZ666.mjs +383 -0
  46. package/dist/client/chunk-3DCJ45Z2.mjs +36 -0
  47. package/dist/client/chunk-3PEDD5KJ.mjs +146 -0
  48. package/dist/client/chunk-CY2ZTSE5.mjs +204 -0
  49. package/dist/client/chunk-F7LHOKEH.mjs +146 -0
  50. package/dist/client/{chunk-6VGXRE34.mjs → chunk-FU2QRZMX.mjs} +6 -6
  51. package/dist/client/chunk-I2MMZO53.mjs +6 -0
  52. package/dist/client/chunk-II7O4XN3.mjs +2206 -0
  53. package/dist/client/chunk-M3L3KYYR.mjs +1181 -0
  54. package/dist/client/chunk-NWOUL6JY.mjs +1378 -0
  55. package/dist/client/chunk-OJPZEZU2.mjs +31 -0
  56. package/dist/client/chunk-RTZ3JKKX.mjs +178 -0
  57. package/dist/client/chunk-TQ5MSPDX.mjs +74 -0
  58. package/dist/client/chunk-VUAOE3AG.mjs +5592 -0
  59. package/dist/client/chunk-WJXXNDSE.mjs +245 -0
  60. package/dist/client/chunk-YLMKMCSJ.mjs +86 -0
  61. package/dist/client/chunk-ZLMS67RR.mjs +106 -0
  62. package/dist/client/client.mjs +51626 -52074
  63. package/dist/client/courseRegistration-5DPU6PDY.mjs +1737 -0
  64. package/dist/client/{eventCalendar-X6GIPYFM.mjs → eventCalendar-F3GZGTEF.mjs} +13 -2
  65. package/dist/client/{eventCombined-EZUOPM3G.mjs → eventCombined-BQOB6QMY.mjs} +13 -2
  66. package/dist/client/eventDetails-PEM2EJWE.mjs +25 -0
  67. package/dist/client/{eventListing-HEFGAETC.mjs → eventListing-YMIQPVME.mjs} +13 -2
  68. package/dist/client/{eventRegistration-3LCP2V3P.mjs → eventRegistration-4I6ZNDUF.mjs} +13 -2
  69. package/dist/client/form-ZJVAYZ6G.mjs +300 -0
  70. package/dist/client/headerSection-TOT5MGTF.mjs +729 -0
  71. package/dist/client/hooks.mjs +49 -33
  72. package/dist/client/locationMap-J66NZREU.mjs +227 -0
  73. package/dist/client/newsletterForm-ET2XUMRO.mjs +208 -0
  74. package/dist/client/productDetail-C2XIH7C5.mjs +18 -0
  75. package/dist/client/productList-T2AZLFTP.mjs +18 -0
  76. package/dist/client/rendering/client.mjs +11763 -12445
  77. package/dist/client/rendering/islands.mjs +98 -21
  78. package/dist/client/rendering.mjs +46778 -47229
  79. package/dist/client/shop-UZ6IUZXD.mjs +20 -0
  80. package/dist/preview-next/before-render.mjs +37 -25
  81. package/dist/preview-next/client/runtime.mjs +5 -5
  82. package/dist/preview-next/middleware.mjs +37 -25
  83. package/dist/{sdk-runtime-OHNONZ5U.mjs → sdk-runtime-JCUQM63Y.mjs} +6 -6
  84. package/dist/server/components.mjs +409 -266
  85. package/dist/server/config-validation.mjs +49 -33
  86. package/dist/server/config.mjs +49 -33
  87. package/dist/server/data.mjs +49 -33
  88. package/dist/server/index.mjs +45 -33
  89. package/dist/server/next.mjs +405 -262
  90. package/dist/server/page-converter.mjs +12 -8
  91. package/dist/server/prebuild.mjs +1 -1
  92. package/dist/server/rendering/server.mjs +493 -265
  93. package/dist/server/rendering.mjs +411 -268
  94. package/dist/server/routing.mjs +49 -33
  95. package/dist/server/server.mjs +50 -34
  96. package/dist/server/theme-bridge.mjs +5 -0
  97. package/dist/styles/index.css +5 -0
  98. package/package.json +2 -1
  99. package/dist/SdkPreviewModeRuntime-CRYNDSPL.mjs +0 -8
  100. package/dist/client/bookingForm-4X77HKDS.mjs +0 -34
  101. package/dist/client/cart-JWD2VRFU.mjs +0 -11
  102. package/dist/client/checkout-V7KYGWL7.mjs +0 -11
  103. package/dist/client/chunk-5IYGMTUE.mjs +0 -18614
  104. package/dist/client/chunk-RKCFVIMS.mjs +0 -26
  105. package/dist/client/courseRegistration-O6ZPK4YT.mjs +0 -29
  106. package/dist/client/eventDetails-3WODIXET.mjs +0 -14
  107. package/dist/client/form-AKXQMY6Z.mjs +0 -85
  108. package/dist/client/headerSection-5KHCMU6B.mjs +0 -12
  109. package/dist/client/locationMap-7HIADW76.mjs +0 -14
  110. package/dist/client/newsletterForm-5N4YTMU3.mjs +0 -60
  111. package/dist/client/productDetail-IZUA7ZP3.mjs +0 -11
  112. package/dist/client/productList-KWIIJE6I.mjs +0 -11
  113. package/dist/client/shop-XZQFRQWZ.mjs +0 -13
@@ -0,0 +1,31 @@
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
+
3
+ // ../blocks/src/system/runtime/nodes/course-registration/DiscountCodeSection.tsx
4
+ function DiscountCodeSection({
5
+ isOpen,
6
+ code,
7
+ onOpen,
8
+ onChange,
9
+ onRemove
10
+ }) {
11
+ return /* @__PURE__ */ jsx("div", { className: "cr-discount", children: !isOpen ? /* @__PURE__ */ jsx("button", { type: "button", className: "cr-discount__toggle", onClick: onOpen, children: "Have a discount code?" }) : /* @__PURE__ */ jsxs("div", { className: "cr-discount__form", children: [
12
+ /* @__PURE__ */ jsx("label", { htmlFor: "cr-discount-code", className: "cr-discount__label", children: "Discount code" }),
13
+ /* @__PURE__ */ jsxs("div", { className: "cr-discount__row", children: [
14
+ /* @__PURE__ */ jsx(
15
+ "input",
16
+ {
17
+ id: "cr-discount-code",
18
+ className: "cr-discount__input",
19
+ value: code,
20
+ onChange: (e) => onChange(e.target.value),
21
+ placeholder: "Enter code",
22
+ autoComplete: "off"
23
+ }
24
+ ),
25
+ /* @__PURE__ */ jsx("button", { type: "button", className: "cr-discount__remove", onClick: onRemove, children: "Remove" })
26
+ ] }),
27
+ /* @__PURE__ */ jsx("p", { className: "cr-discount__hint", children: "Applied at checkout." })
28
+ ] }) });
29
+ }
30
+
31
+ export { DiscountCodeSection };
@@ -0,0 +1,178 @@
1
+ import { forwardRef, createElement } from 'react';
2
+
3
+ // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/createLucideIcon.js
4
+
5
+ // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
6
+ var mergeClasses = (...classes) => classes.filter((className, index, array) => {
7
+ return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
8
+ }).join(" ").trim();
9
+
10
+ // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.js
11
+ var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
12
+
13
+ // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.js
14
+ var toCamelCase = (string) => string.replace(
15
+ /^([A-Z])|[\s-_]+(\w)/g,
16
+ (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
17
+ );
18
+
19
+ // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.js
20
+ var toPascalCase = (string) => {
21
+ const camelCase = toCamelCase(string);
22
+ return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
23
+ };
24
+
25
+ // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/defaultAttributes.js
26
+ var defaultAttributes = {
27
+ xmlns: "http://www.w3.org/2000/svg",
28
+ width: 24,
29
+ height: 24,
30
+ viewBox: "0 0 24 24",
31
+ fill: "none",
32
+ stroke: "currentColor",
33
+ strokeWidth: 2,
34
+ strokeLinecap: "round",
35
+ strokeLinejoin: "round"
36
+ };
37
+
38
+ // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.js
39
+ var hasA11yProp = (props) => {
40
+ for (const prop in props) {
41
+ if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
42
+ return true;
43
+ }
44
+ }
45
+ return false;
46
+ };
47
+
48
+ // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/Icon.js
49
+ var Icon = forwardRef(
50
+ ({
51
+ color = "currentColor",
52
+ size = 24,
53
+ strokeWidth = 2,
54
+ absoluteStrokeWidth,
55
+ className = "",
56
+ children,
57
+ iconNode,
58
+ ...rest
59
+ }, ref) => createElement(
60
+ "svg",
61
+ {
62
+ ref,
63
+ ...defaultAttributes,
64
+ width: size,
65
+ height: size,
66
+ stroke: color,
67
+ strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
68
+ className: mergeClasses("lucide", className),
69
+ ...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
70
+ ...rest
71
+ },
72
+ [
73
+ ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),
74
+ ...Array.isArray(children) ? children : [children]
75
+ ]
76
+ )
77
+ );
78
+
79
+ // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/createLucideIcon.js
80
+ var createLucideIcon = (iconName, iconNode) => {
81
+ const Component = forwardRef(
82
+ ({ className, ...props }, ref) => createElement(Icon, {
83
+ ref,
84
+ iconNode,
85
+ className: mergeClasses(
86
+ `lucide-${toKebabCase(toPascalCase(iconName))}`,
87
+ `lucide-${iconName}`,
88
+ className
89
+ ),
90
+ ...props
91
+ })
92
+ );
93
+ Component.displayName = toPascalCase(iconName);
94
+ return Component;
95
+ };
96
+
97
+ // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/chevron-left.js
98
+ var __iconNode = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
99
+ var ChevronLeft = createLucideIcon("chevron-left", __iconNode);
100
+
101
+ // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/chevron-right.js
102
+ var __iconNode2 = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
103
+ var ChevronRight = createLucideIcon("chevron-right", __iconNode2);
104
+
105
+ // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/credit-card.js
106
+ var __iconNode3 = [
107
+ ["rect", { width: "20", height: "14", x: "2", y: "5", rx: "2", key: "ynyp8z" }],
108
+ ["line", { x1: "2", x2: "22", y1: "10", y2: "10", key: "1b3vmo" }]
109
+ ];
110
+ var CreditCard = createLucideIcon("credit-card", __iconNode3);
111
+
112
+ // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/sparkles.js
113
+ var __iconNode4 = [
114
+ [
115
+ "path",
116
+ {
117
+ d: "M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",
118
+ key: "1s2grr"
119
+ }
120
+ ],
121
+ ["path", { d: "M20 2v4", key: "1rf3ol" }],
122
+ ["path", { d: "M22 4h-4", key: "gwowj6" }],
123
+ ["circle", { cx: "4", cy: "20", r: "2", key: "6kqj1y" }]
124
+ ];
125
+ var Sparkles = createLucideIcon("sparkles", __iconNode4);
126
+
127
+ // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/star.js
128
+ var __iconNode5 = [
129
+ [
130
+ "path",
131
+ {
132
+ d: "M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",
133
+ key: "r04s7s"
134
+ }
135
+ ]
136
+ ];
137
+ var Star = createLucideIcon("star", __iconNode5);
138
+
139
+ // ../../node_modules/.pnpm/lucide-react@0.563.0_react@19.2.4/node_modules/lucide-react/dist/esm/icons/ticket.js
140
+ var __iconNode6 = [
141
+ [
142
+ "path",
143
+ {
144
+ d: "M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",
145
+ key: "qn84l0"
146
+ }
147
+ ],
148
+ ["path", { d: "M13 5v2", key: "dyzc3o" }],
149
+ ["path", { d: "M13 17v2", key: "1ont0d" }],
150
+ ["path", { d: "M13 11v2", key: "1wjjxi" }]
151
+ ];
152
+ var Ticket = createLucideIcon("ticket", __iconNode6);
153
+ /*! Bundled license information:
154
+
155
+ lucide-react/dist/esm/shared/src/utils/mergeClasses.js:
156
+ lucide-react/dist/esm/shared/src/utils/toKebabCase.js:
157
+ lucide-react/dist/esm/shared/src/utils/toCamelCase.js:
158
+ lucide-react/dist/esm/shared/src/utils/toPascalCase.js:
159
+ lucide-react/dist/esm/defaultAttributes.js:
160
+ lucide-react/dist/esm/shared/src/utils/hasA11yProp.js:
161
+ lucide-react/dist/esm/Icon.js:
162
+ lucide-react/dist/esm/createLucideIcon.js:
163
+ lucide-react/dist/esm/icons/chevron-left.js:
164
+ lucide-react/dist/esm/icons/chevron-right.js:
165
+ lucide-react/dist/esm/icons/credit-card.js:
166
+ lucide-react/dist/esm/icons/sparkles.js:
167
+ lucide-react/dist/esm/icons/star.js:
168
+ lucide-react/dist/esm/icons/ticket.js:
169
+ lucide-react/dist/esm/lucide-react.js:
170
+ (**
171
+ * @license lucide-react v0.563.0 - ISC
172
+ *
173
+ * This source code is licensed under the ISC license.
174
+ * See the LICENSE file in the root directory of this source tree.
175
+ *)
176
+ */
177
+
178
+ export { ChevronLeft, ChevronRight, CreditCard, Sparkles, Star, Ticket };
@@ -0,0 +1,74 @@
1
+ import { clsx_default } from './chunk-PMAIXMAB.mjs';
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
+
4
+ function resolveColorStyle(color) {
5
+ switch (color) {
6
+ case "inherit":
7
+ return { color: "inherit" };
8
+ case "foreground":
9
+ return { color: "rgb(var(--tb-foreground))" };
10
+ case "text":
11
+ return { color: "rgb(var(--tb-text))" };
12
+ case "primary":
13
+ default:
14
+ return void 0;
15
+ }
16
+ }
17
+ function SpinnerNode({
18
+ className,
19
+ size = "md",
20
+ color,
21
+ strokeWidth = 3,
22
+ srLabel,
23
+ style,
24
+ ...rest
25
+ }) {
26
+ const hasExplicitAriaLabel = typeof rest["aria-label"] === "string" && rest["aria-label"].trim().length > 0;
27
+ const accessibilityProps = srLabel ? { role: "status", "aria-live": "polite" } : hasExplicitAriaLabel ? {} : { "aria-hidden": true };
28
+ const trackStroke = color === "inherit" ? "currentColor" : "var(--rb-spinner-track-color)";
29
+ const trackOpacity = color === "inherit" ? 0.25 : 1;
30
+ return /* @__PURE__ */ jsxs(
31
+ "span",
32
+ {
33
+ ...accessibilityProps,
34
+ className: clsx_default(
35
+ "rb-spinner",
36
+ size ? `rb-spinner--${size}` : null,
37
+ color === "inherit" ? "rb-spinner--inherit" : null,
38
+ className
39
+ ),
40
+ style: {
41
+ ...resolveColorStyle(color),
42
+ ...style ?? {}
43
+ },
44
+ ...rest,
45
+ children: [
46
+ /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
47
+ /* @__PURE__ */ jsx(
48
+ "circle",
49
+ {
50
+ cx: "12",
51
+ cy: "12",
52
+ r: "10",
53
+ stroke: trackStroke,
54
+ strokeWidth,
55
+ opacity: trackOpacity
56
+ }
57
+ ),
58
+ /* @__PURE__ */ jsx(
59
+ "path",
60
+ {
61
+ d: "M12 2a10 10 0 0 1 10 10",
62
+ stroke: "currentColor",
63
+ strokeWidth,
64
+ strokeLinecap: "round"
65
+ }
66
+ )
67
+ ] }),
68
+ srLabel ? /* @__PURE__ */ jsx("span", { className: "rb-sr-only", children: srLabel }) : null
69
+ ]
70
+ }
71
+ );
72
+ }
73
+
74
+ export { SpinnerNode };