@riverbankcms/sdk 0.84.2 → 0.88.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/dist/{PreviewEditorSidebar-4PH35ZIE.mjs → PreviewEditorSidebar-EVRS3C7T.mjs} +3 -3
- package/dist/{PreviewEditorUI-WHMCRJGM.mjs → PreviewEditorUI-54WD4IGE.mjs} +3 -3
- package/dist/SdkPreviewModeRuntime-ZALZDJEK.mjs +8 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +684 -0
- package/dist/_dts/api/src/endpoints.d.ts +58 -14
- package/dist/_dts/api/src/index.d.ts +4 -1
- package/dist/_dts/api/src/launchReadiness.d.ts +3 -3
- package/dist/_dts/api/src/mailchimpIntegration.d.ts +215 -0
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +35 -15
- package/dist/_dts/api/src/siteInfrastructure.d.ts +0 -14
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +1 -13
- package/dist/_dts/api/src/types.d.ts +6 -3
- package/dist/_dts/blocks/src/PageRenderer.d.ts +1 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +4 -0
- package/dist/_dts/blocks/src/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/cart.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/collection.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +42 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +4 -0
- package/dist/_dts/blocks/src/system/blocks/faq.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +42 -42
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup-destination.d.ts +300 -0
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +63 -3
- package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +288 -288
- package/dist/_dts/blocks/src/system/fragments/library/newsletterForm.d.ts +53 -1
- package/dist/_dts/blocks/src/system/manifest/richTextSchema.d.ts +27 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +23 -23
- package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +10 -2
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +11 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.interactive.d.ts +15 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.submission.d.ts +32 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +5 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/ModalShell.d.ts +5 -1
- package/dist/_dts/blocks/src/system/runtime/shared/utils/formatting.d.ts +1 -1
- package/dist/_dts/content-model/src/referenceFields.d.ts +1 -1
- package/dist/_dts/core/src/currency-format.d.ts +37 -2
- package/dist/_dts/core/src/event-pricing.d.ts +24 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +551 -20
- package/dist/_dts/editor-blocks/src/widgets/reference/loaders.d.ts +3 -1
- package/dist/_dts/sdk/src/cli/canonical-entry-policy.d.ts +53 -0
- package/dist/_dts/sdk/src/cli/commands/migrate.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/commands/pull.d.ts +7 -1
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/migrations/events.d.ts +73 -0
- package/dist/_dts/sdk/src/client/types.d.ts +9 -0
- package/dist/_dts/sdk/src/config/validation.d.ts +3 -0
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +3 -0
- package/dist/_dts/sdk/src/data/prefetchBlockData.d.ts +3 -9
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +1 -1
- package/dist/_dts/sdk/src/manifest/three-pass-converter.d.ts +7 -18
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +3 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +7 -3
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +4 -24
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +45 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commands.d.ts +57 -0
- package/dist/_dts/surfaces/src/index.d.ts +12 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +9 -9
- package/dist/_dts/theme-core/src/schema.d.ts +11 -11
- package/dist/{chunk-ZR2GQK2A.mjs → chunk-7KOO7RPP.mjs} +953 -315
- package/dist/{chunk-OCGTXHSO.mjs → chunk-ER4UIW4X.mjs} +7 -7
- package/dist/{chunk-WFPYN7KA.mjs → chunk-HVOBXA3Y.mjs} +2 -2
- package/dist/{chunk-NFWGLRZZ.mjs → chunk-K3JWH6HE.mjs} +37 -3
- package/dist/{chunk-4QNLOTES.mjs → chunk-O4LVYUVH.mjs} +58 -14
- package/dist/{chunk-PYDHOMEO.mjs → chunk-YDMBIIS5.mjs} +1 -1
- package/dist/cli/index.mjs +1858 -512
- package/dist/client/{accordion-2UZPBMYM.mjs → accordion-PT5CGW5N.mjs} +2 -2
- package/dist/client/{bookingForm-36CWQUMV.mjs → bookingForm-2HLRTEYS.mjs} +7 -7
- package/dist/client/bookings.mjs +51 -6
- package/dist/client/{carousel-QH77HR6X.mjs → carousel-Z2LKYSWA.mjs} +3 -3
- package/dist/client/cart-ND5IK4A6.mjs +18 -0
- package/dist/client/checkout-EYUSGAY7.mjs +18 -0
- package/dist/client/{chunk-SYIJ5JO2.mjs → chunk-6DVPO44G.mjs} +1 -1
- package/dist/client/{chunk-3C2VTPWI.mjs → chunk-BAWHZ5GM.mjs} +176 -13
- package/dist/client/{chunk-52CGCQ7B.mjs → chunk-BL66UWGD.mjs} +10 -80
- package/dist/client/{chunk-VGDBVNOO.mjs → chunk-DIRW2LNG.mjs} +241 -210
- package/dist/client/{chunk-UDNSI5PY.mjs → chunk-GOFO7HRH.mjs} +1 -2
- package/dist/client/{chunk-ZKUO52W3.mjs → chunk-H4MHEXYS.mjs} +1 -1
- package/dist/client/{chunk-ZE5G642V.mjs → chunk-LI2C6M5O.mjs} +75 -1
- package/dist/client/{chunk-3DTWLTXM.mjs → chunk-MHBEWDT7.mjs} +117 -3
- package/dist/client/{chunk-4OXKTA3D.mjs → chunk-O5JNI3E4.mjs} +2 -2
- package/dist/client/{chunk-XSV6KW4D.mjs → chunk-S4G65LGR.mjs} +1 -1
- package/dist/client/{chunk-DVNUDUVT.mjs → chunk-WBQG7VJA.mjs} +4 -1
- package/dist/client/{chunk-F5VRX5Y6.mjs → chunk-WCVK4MBJ.mjs} +1 -1
- package/dist/client/{chunk-7UCLJ5SP.mjs → chunk-X7GVFB7Y.mjs} +4 -7
- package/dist/client/client.mjs +2125 -1403
- package/dist/client/{courseRegistration-TMKU6ABO.mjs → courseRegistration-H3AZBUEG.mjs} +7 -7
- package/dist/client/{eventCalendar-G6TI32X6.mjs → eventCalendar-FPKJGLGS.mjs} +10 -11
- package/dist/client/{eventCombined-SCKEMNAR.mjs → eventCombined-QCGIZBUY.mjs} +10 -11
- package/dist/client/{eventDetails-XPIFXXPK.mjs → eventDetails-HIT3BJWU.mjs} +10 -11
- package/dist/client/{eventListing-7QFMEMGT.mjs → eventListing-R4HNWJDN.mjs} +10 -11
- package/dist/client/{eventRegistration-TOODSZUI.mjs → eventRegistration-Q7BYY5HF.mjs} +10 -11
- package/dist/client/{form-MTCMVCZT.mjs → form-NI6YOG6S.mjs} +3 -3
- package/dist/client/{headerSection-Y5TMR3TW.mjs → headerSection-SDYGII36.mjs} +4 -4
- package/dist/client/hooks.mjs +1682 -1412
- package/dist/client/{locationMap-RH2LG7FZ.mjs → locationMap-BDETEUQD.mjs} +3 -4
- package/dist/client/{newsletterForm-PCAIPFMA.mjs → newsletterForm-EKYIU67X.mjs} +70 -22
- package/dist/client/{productDetail-OIGDR4YE.mjs → productDetail-5UTGNN76.mjs} +8 -9
- package/dist/client/{productList-4MA5S2CX.mjs → productList-7YA5KXZQ.mjs} +8 -9
- package/dist/client/rendering/client.mjs +753 -329
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +3786 -3034
- package/dist/client/shop-AIMUMZYC.mjs +20 -0
- package/dist/preview-next/before-render.mjs +58 -14
- package/dist/preview-next/client/runtime.mjs +5 -5
- package/dist/preview-next/editor-chrome.css +56 -9
- package/dist/preview-next/middleware.mjs +58 -14
- package/dist/{sdk-runtime-QLOCYKVU.mjs → sdk-runtime-NW472WNT.mjs} +6 -6
- package/dist/server/components.mjs +1518 -1015
- package/dist/server/config-validation.mjs +1719 -1461
- package/dist/server/config.mjs +1719 -1461
- package/dist/server/data.mjs +1683 -1413
- package/dist/server/index.mjs +79 -17
- package/dist/server/next.mjs +1902 -1311
- package/dist/server/page-converter.mjs +2193 -1169
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1709 -1209
- package/dist/server/rendering.mjs +1894 -1347
- package/dist/server/routing.mjs +1872 -1499
- package/dist/server/server.mjs +1571 -1264
- package/dist/server/theme-bridge.mjs +234 -0
- package/dist/styles/index.css +232 -0
- package/package.json +1 -1
- package/dist/SdkPreviewModeRuntime-4FGSVUYI.mjs +0 -8
- package/dist/client/cart-X4YK4FTW.mjs +0 -19
- package/dist/client/checkout-OM2BEPWD.mjs +0 -19
- package/dist/client/chunk-I2MMZO53.mjs +0 -6
- package/dist/client/shop-WXSYV5QO.mjs +0 -21
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { LeafletStaticMap } from './chunk-
|
|
2
|
-
import './chunk-I2MMZO53.mjs';
|
|
1
|
+
import { LeafletStaticMap } from './chunk-S4G65LGR.mjs';
|
|
3
2
|
import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
|
|
4
|
-
import { defineIslandPropsDecoder } from './chunk-
|
|
5
|
-
import { normalizeLocationAddressText, toLocationCoordinates, textColorStyle, mergeStyles, borderColorStyle, backgroundColorStyle } from './chunk-
|
|
3
|
+
import { defineIslandPropsDecoder } from './chunk-DIRW2LNG.mjs';
|
|
4
|
+
import { normalizeLocationAddressText, toLocationCoordinates, textColorStyle, mergeStyles, borderColorStyle, backgroundColorStyle } from './chunk-LI2C6M5O.mjs';
|
|
6
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
6
|
|
|
8
7
|
// ../blocks/src/system/runtime/nodes/location-map.shared.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { getFieldValidationControlProps, FieldValidationMessage } from './chunk-3DCJ45Z2.mjs';
|
|
3
3
|
import { isSpamProtectionEnabled, AltchaWidget, getChallengeUrl } from './chunk-SDIYSQAY.mjs';
|
|
4
|
-
import { BlockApiProvider, useBlockApi, FeedbackMessage } from './chunk-
|
|
4
|
+
import { BlockApiProvider, useBlockApi, FeedbackMessage } from './chunk-GOFO7HRH.mjs';
|
|
5
5
|
import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
|
|
6
|
-
import { defineIslandPropsDecoder, themeButtonClassName } from './chunk-
|
|
7
|
-
import { clsx_default } from './chunk-
|
|
6
|
+
import { defineIslandPropsDecoder, themeButtonClassName } from './chunk-DIRW2LNG.mjs';
|
|
7
|
+
import { clsx_default } from './chunk-LI2C6M5O.mjs';
|
|
8
8
|
import { useState } from 'react';
|
|
9
9
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
10
10
|
|
|
@@ -21,6 +21,49 @@ function getNewsletterFieldError(error, fieldId) {
|
|
|
21
21
|
function getNewsletterFormError(error) {
|
|
22
22
|
return error?.kind === "form" ? error.message : null;
|
|
23
23
|
}
|
|
24
|
+
|
|
25
|
+
// ../blocks/src/system/runtime/nodes/newsletter-form.submission.ts
|
|
26
|
+
function mapNewsletterFormFieldsToSubscriberInput(fields) {
|
|
27
|
+
return {
|
|
28
|
+
email: readSubmittedText(fields.email),
|
|
29
|
+
firstName: readOptionalSubmittedText(fields.firstName),
|
|
30
|
+
lastName: readOptionalSubmittedText(fields.lastName),
|
|
31
|
+
name: readOptionalSubmittedText(fields.name),
|
|
32
|
+
company: readOptionalSubmittedText(fields.company),
|
|
33
|
+
phone: readOptionalSubmittedText(fields.phone),
|
|
34
|
+
honeypot: readSubmittedText(fields.website)
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function resolveNewsletterSubmitTarget(input) {
|
|
38
|
+
const listId = input.listId?.trim();
|
|
39
|
+
if (input.destinationRef) {
|
|
40
|
+
return {
|
|
41
|
+
tag: "ready",
|
|
42
|
+
target: {
|
|
43
|
+
tag: "published_block_ref",
|
|
44
|
+
destinationRef: input.destinationRef
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
if (!listId) {
|
|
49
|
+
return { tag: "unavailable", reason: "missing_legacy_list" };
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
tag: "ready",
|
|
53
|
+
target: {
|
|
54
|
+
tag: "legacy_riverbank_list",
|
|
55
|
+
listId,
|
|
56
|
+
destinationRef: input.destinationRef ?? void 0
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function readOptionalSubmittedText(value) {
|
|
61
|
+
const text = readSubmittedText(value);
|
|
62
|
+
return text.length > 0 ? text : void 0;
|
|
63
|
+
}
|
|
64
|
+
function readSubmittedText(value) {
|
|
65
|
+
return typeof value === "string" ? value.trim() : "";
|
|
66
|
+
}
|
|
24
67
|
function NewsletterFormClient({
|
|
25
68
|
render
|
|
26
69
|
}) {
|
|
@@ -36,39 +79,44 @@ function NewsletterFormClient({
|
|
|
36
79
|
e.preventDefault();
|
|
37
80
|
setError(null);
|
|
38
81
|
const formData = new FormData(e.currentTarget);
|
|
39
|
-
const
|
|
40
|
-
|
|
82
|
+
const submittedFields = mapNewsletterFormFieldsToSubscriberInput({
|
|
83
|
+
email: formData.get("email"),
|
|
84
|
+
firstName: formData.get("firstName"),
|
|
85
|
+
lastName: formData.get("lastName"),
|
|
86
|
+
name: formData.get("name"),
|
|
87
|
+
company: formData.get("company"),
|
|
88
|
+
phone: formData.get("phone"),
|
|
89
|
+
website: formData.get("website")
|
|
90
|
+
});
|
|
91
|
+
if (submittedFields.honeypot) {
|
|
41
92
|
setIsSuccess(true);
|
|
42
93
|
return;
|
|
43
94
|
}
|
|
44
|
-
|
|
45
|
-
const firstName = formData.get("firstName")?.trim() || void 0;
|
|
46
|
-
const lastName = formData.get("lastName")?.trim() || void 0;
|
|
47
|
-
const name = formData.get("name")?.trim() || void 0;
|
|
48
|
-
const company = formData.get("company")?.trim() || void 0;
|
|
49
|
-
const phone = formData.get("phone")?.trim() || void 0;
|
|
50
|
-
if (!email) {
|
|
95
|
+
if (!submittedFields.email) {
|
|
51
96
|
setError(newsletterFieldError("email", "Email is required"));
|
|
52
97
|
return;
|
|
53
98
|
}
|
|
54
|
-
|
|
99
|
+
const submitTarget = resolveNewsletterSubmitTarget({
|
|
100
|
+
listId: render.hydration.listId,
|
|
101
|
+
destinationRef: render.hydration.destinationRef
|
|
102
|
+
});
|
|
103
|
+
if (submitTarget.tag === "unavailable") {
|
|
55
104
|
setError(newsletterFormError("Newsletter list is not configured"));
|
|
56
105
|
return;
|
|
57
106
|
}
|
|
58
107
|
setIsSubmitting(true);
|
|
59
108
|
try {
|
|
60
109
|
await api.subscribeNewsletter({
|
|
61
|
-
email,
|
|
62
|
-
firstName,
|
|
63
|
-
lastName,
|
|
64
|
-
name,
|
|
65
|
-
company,
|
|
66
|
-
phone,
|
|
67
|
-
|
|
110
|
+
email: submittedFields.email,
|
|
111
|
+
firstName: submittedFields.firstName,
|
|
112
|
+
lastName: submittedFields.lastName,
|
|
113
|
+
name: submittedFields.name,
|
|
114
|
+
company: submittedFields.company,
|
|
115
|
+
phone: submittedFields.phone,
|
|
116
|
+
target: submitTarget.target,
|
|
68
117
|
tags: parsedTags.length > 0 ? parsedTags : void 0,
|
|
69
|
-
blockId: void 0,
|
|
70
118
|
meta: {
|
|
71
|
-
honeypot,
|
|
119
|
+
honeypot: submittedFields.honeypot,
|
|
72
120
|
altchaSolution
|
|
73
121
|
}
|
|
74
122
|
});
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { mountShopBlockIsland, ProductDetailClient } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-I2MMZO53.mjs';
|
|
1
|
+
import { mountShopBlockIsland, ProductDetailClient } from './chunk-BL66UWGD.mjs';
|
|
2
|
+
import './chunk-WCVK4MBJ.mjs';
|
|
3
|
+
import './chunk-O5JNI3E4.mjs';
|
|
5
4
|
import './chunk-ZFHRN6W2.mjs';
|
|
6
5
|
import './chunk-L4J5Y62O.mjs';
|
|
7
|
-
import './chunk-
|
|
6
|
+
import './chunk-X7GVFB7Y.mjs';
|
|
8
7
|
import './chunk-3DCJ45Z2.mjs';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
8
|
+
import './chunk-WBQG7VJA.mjs';
|
|
9
|
+
import './chunk-GOFO7HRH.mjs';
|
|
11
10
|
import './chunk-N7PBWBWQ.mjs';
|
|
12
|
-
import { defineIslandPropsDecoder } from './chunk-
|
|
13
|
-
import './chunk-
|
|
11
|
+
import { defineIslandPropsDecoder } from './chunk-DIRW2LNG.mjs';
|
|
12
|
+
import './chunk-LI2C6M5O.mjs';
|
|
14
13
|
|
|
15
14
|
// src/rendering/islands/enhancers/productDetail.tsx
|
|
16
15
|
var decode = defineIslandPropsDecoder("product-detail");
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { mountShopBlockIsland, ProductListClient } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-I2MMZO53.mjs';
|
|
1
|
+
import { mountShopBlockIsland, ProductListClient } from './chunk-BL66UWGD.mjs';
|
|
2
|
+
import './chunk-WCVK4MBJ.mjs';
|
|
3
|
+
import './chunk-O5JNI3E4.mjs';
|
|
5
4
|
import './chunk-ZFHRN6W2.mjs';
|
|
6
5
|
import './chunk-L4J5Y62O.mjs';
|
|
7
|
-
import './chunk-
|
|
6
|
+
import './chunk-X7GVFB7Y.mjs';
|
|
8
7
|
import './chunk-3DCJ45Z2.mjs';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
8
|
+
import './chunk-WBQG7VJA.mjs';
|
|
9
|
+
import './chunk-GOFO7HRH.mjs';
|
|
11
10
|
import './chunk-N7PBWBWQ.mjs';
|
|
12
|
-
import { defineIslandPropsDecoder } from './chunk-
|
|
13
|
-
import './chunk-
|
|
11
|
+
import { defineIslandPropsDecoder } from './chunk-DIRW2LNG.mjs';
|
|
12
|
+
import './chunk-LI2C6M5O.mjs';
|
|
14
13
|
|
|
15
14
|
// src/rendering/islands/enhancers/productList.tsx
|
|
16
15
|
var decode = defineIslandPropsDecoder("product-list");
|