@riverbankcms/sdk 0.84.0 → 0.84.1
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-HML67UDA.mjs → PreviewEditorSidebar-X7RLMEI6.mjs} +2 -2
- package/dist/{PreviewEditorUI-I4BQUU6K.mjs → PreviewEditorUI-CT67N4O3.mjs} +2 -2
- package/dist/SdkPreviewModeRuntime-EIMQ3S2V.mjs +8 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +6 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizard.d.ts +0 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/constants.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +275 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +22 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.state.d.ts +3 -303
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +9 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +8 -6
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +6 -4
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/{chunk-MSHZO4SL.mjs → chunk-O62NDCTI.mjs} +268 -186
- package/dist/{chunk-HFMGVJCE.mjs → chunk-QRKJDWT7.mjs} +5 -5
- package/dist/{chunk-6X2OVO3S.mjs → chunk-RCTJAZSK.mjs} +1 -1
- package/dist/{chunk-5E33VO6J.mjs → chunk-X5ZCSU6F.mjs} +1 -1
- package/dist/cli/index.mjs +323 -35
- package/dist/cli/init-docs/content/agents-section.md +5 -0
- package/dist/cli/init-docs/content/cli-reference.md +13 -0
- package/dist/cli/init-docs/content/content-management.md +31 -0
- package/dist/cli/init-docs/content/getting-started.md +12 -0
- package/dist/cli/init-docs/content/workflow-add-block.md +3 -1
- package/dist/cli/init-docs/content/workflow-agent-safe-sync.md +81 -0
- package/dist/cli/init-docs/content/workflow-create-page.md +13 -3
- package/dist/cli/init-docs/content/workflow-custom-block.md +9 -0
- package/dist/cli/init-docs/content/workflow-templates.md +14 -0
- package/dist/client/{accordion-ESY65T56.mjs → accordion-2UZPBMYM.mjs} +1 -1
- package/dist/client/{bookingForm-JRFNZUHD.mjs → bookingForm-DYXT6YB6.mjs} +3 -3
- package/dist/client/bookings.mjs +155 -134
- package/dist/client/{carousel-CPR5VWIP.mjs → carousel-QH77HR6X.mjs} +2 -2
- package/dist/client/{cart-ZUX5BA7O.mjs → cart-X4YK4FTW.mjs} +5 -5
- package/dist/client/{checkout-RULGBADZ.mjs → checkout-OM2BEPWD.mjs} +5 -5
- package/dist/client/{chunk-BT6AEIKN.mjs → chunk-3DTWLTXM.mjs} +1 -1
- package/dist/client/{chunk-JWEYB4V6.mjs → chunk-4OXKTA3D.mjs} +1 -1
- package/dist/client/{chunk-URQCZD5W.mjs → chunk-52CGCQ7B.mjs} +4 -4
- package/dist/client/{chunk-52I7BGEK.mjs → chunk-7UCLJ5SP.mjs} +1 -1
- package/dist/client/{chunk-Z5OBQ5I4.mjs → chunk-F5VRX5Y6.mjs} +1 -1
- package/dist/client/{chunk-RDJFCPY3.mjs → chunk-UHDWIXVR.mjs} +31 -115
- package/dist/client/{chunk-HXPWP5EN.mjs → chunk-VGDBVNOO.mjs} +175 -14
- package/dist/client/{chunk-5ZEAZ33K.mjs → chunk-ZKUO52W3.mjs} +1 -1
- package/dist/client/client.mjs +337 -217
- package/dist/client/{courseRegistration-QTUDC35T.mjs → courseRegistration-YBOGURTA.mjs} +3 -3
- package/dist/client/{eventCalendar-Q7NS4XLD.mjs → eventCalendar-K4QJVCMD.mjs} +5 -5
- package/dist/client/{eventCombined-QAO7VUO5.mjs → eventCombined-MTXGMTCZ.mjs} +5 -5
- package/dist/client/{eventDetails-WTNNU6Q3.mjs → eventDetails-3PC4NL3U.mjs} +5 -5
- package/dist/client/{eventListing-5TA2ELDT.mjs → eventListing-TFJET6DN.mjs} +5 -5
- package/dist/client/{eventRegistration-M6USZGRF.mjs → eventRegistration-QGPBGJTW.mjs} +5 -5
- package/dist/client/{form-DGVGXLMH.mjs → form-MDKR4FNB.mjs} +1 -1
- package/dist/client/{headerSection-O2AGMPCU.mjs → headerSection-Y5TMR3TW.mjs} +2 -2
- package/dist/client/hooks.mjs +315 -35
- package/dist/client/{locationMap-EJRNRIKJ.mjs → locationMap-RH2LG7FZ.mjs} +1 -1
- package/dist/client/{newsletterForm-7NTC2DTR.mjs → newsletterForm-ZR5UDGBT.mjs} +1 -1
- package/dist/client/{productDetail-HH4LP53D.mjs → productDetail-OIGDR4YE.mjs} +5 -5
- package/dist/client/{productList-YVHYM2AF.mjs → productList-4MA5S2CX.mjs} +5 -5
- package/dist/client/rendering/client.mjs +310 -190
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +310 -190
- package/dist/client/{shop-UIFX7XRK.mjs → shop-WXSYV5QO.mjs} +5 -5
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/{sdk-runtime-ZENAOYMN.mjs → sdk-runtime-7HJYPRWQ.mjs} +4 -4
- package/dist/server/components.mjs +188 -61
- package/dist/server/config-validation.mjs +313 -33
- package/dist/server/config.mjs +313 -33
- package/dist/server/data.mjs +315 -35
- package/dist/server/index.mjs +1 -1
- package/dist/server/next.mjs +189 -62
- package/dist/server/page-converter.mjs +315 -35
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +188 -61
- package/dist/server/rendering.mjs +188 -61
- package/dist/server/routing.mjs +334 -34
- package/dist/server/server.mjs +322 -42
- package/package.json +1 -1
- package/dist/SdkPreviewModeRuntime-MCKMVDTK.mjs +0 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { resolvePreviewDashboardSetupHandoff, buildPreviewDashboardSetupUrl, resolvePreviewSidebarChromeModel, resolvePreviewEditorGuidanceModel, previewWidgetOverrides, canInspectSiteStyle, mapContentSchemaToFormFields, PreviewFormProvider, usePreviewBlockCustomizeSelectionOptional, BlockEditor, canApplySiteStyle, useBlockCustomizeControls, MAX_QUICK_MANIFEST_FIELDS } from './chunk-
|
|
3
|
-
import { useEntryController, useEditorUiStoreInstance, useUISelector, resolvePreviewSidebarTab, unsafeAsEditorBlockId, Tabs, TabsList, TabsTrigger, Button, X, TabsContent, useEditorUiStore, deriveRouteMetadataPresentation, resolvePageRouteSlug, createManifestValidation, createStoreBackend, ManifestForm, previewAssistantEnabled, Collapsible, CollapsibleTrigger, ChevronRight, CollapsibleContent, ContentFieldsForm, usePreviewDesignCoordinator, useSiteChromeCustomizeOptional, resolveStyleConfiguratorInitialSnapshot, createStyleConfiguratorState, isPreviewingChange, createOptimisticActionRunner, syncStyleConfiguratorState, getCuratedSiteStyle, planSiteStylePreviewChange, openRow, previewSiteStyle, applyResolvedSelections, previewButtonPersonality, previewHeaderLayout, previewHeaderStyle, planSiteChromeLookSelection, previewFooterLook, buildSiteChromeLookModels, planSiteChromeFooterLayoutSelection, previewPaletteVariant, previewTypographyPreset, setTypographyBodyFontOverride, setTypographyHeadingFontOverride, clearTypographyFontOverrides, paletteOverridesSchema, setPaletteOverrides, toggleRow, cancelPreview, dismissWarnings, dismissNotices, deriveStyleConfiguratorCapabilities, buildApplySiteStyleSelectionBody, markApplyFailed, selectionSnapshotFromApplySiteStyleSelectionResponse, styleConfiguratorHistoryEntryForPersistedSelection, markApplySaved, unwrapResponse, markApplySaving, findButtonPersonality, findPaletteVariant, findTypographyPreset, getHeaderLayout, getHeaderStyle, getFooterLayout, findFooterLook, cycleSiteChromeLookId, resolveContentTitle, foldSubroute, SUBROUTE_KINDS, Smartphone, Tablet, Monitor, Maximize2, cn, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuItem, listEntryPageContentSlots, ContentSpinner, Callout, CalloutDescription, curatedSiteStyles, ChevronLeft, cycleableSiteChromeOptions, requireEntriesForCuratedChoices, buttonPersonalities, typographyPresets, paletteVariants, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, FormRenderer, evaluateTypographyFontSlot, Separator, Surface, ColorPicker, Input } from './chunk-
|
|
2
|
+
import { resolvePreviewDashboardSetupHandoff, buildPreviewDashboardSetupUrl, resolvePreviewSidebarChromeModel, resolvePreviewEditorGuidanceModel, previewWidgetOverrides, canInspectSiteStyle, mapContentSchemaToFormFields, PreviewFormProvider, usePreviewBlockCustomizeSelectionOptional, BlockEditor, canApplySiteStyle, useBlockCustomizeControls, MAX_QUICK_MANIFEST_FIELDS } from './chunk-X5ZCSU6F.mjs';
|
|
3
|
+
import { useEntryController, useEditorUiStoreInstance, useUISelector, resolvePreviewSidebarTab, unsafeAsEditorBlockId, Tabs, TabsList, TabsTrigger, Button, X, TabsContent, useEditorUiStore, deriveRouteMetadataPresentation, resolvePageRouteSlug, createManifestValidation, createStoreBackend, ManifestForm, previewAssistantEnabled, Collapsible, CollapsibleTrigger, ChevronRight, CollapsibleContent, ContentFieldsForm, usePreviewDesignCoordinator, useSiteChromeCustomizeOptional, resolveStyleConfiguratorInitialSnapshot, createStyleConfiguratorState, isPreviewingChange, createOptimisticActionRunner, syncStyleConfiguratorState, getCuratedSiteStyle, planSiteStylePreviewChange, openRow, previewSiteStyle, applyResolvedSelections, previewButtonPersonality, previewHeaderLayout, previewHeaderStyle, planSiteChromeLookSelection, previewFooterLook, buildSiteChromeLookModels, planSiteChromeFooterLayoutSelection, previewPaletteVariant, previewTypographyPreset, setTypographyBodyFontOverride, setTypographyHeadingFontOverride, clearTypographyFontOverrides, paletteOverridesSchema, setPaletteOverrides, toggleRow, cancelPreview, dismissWarnings, dismissNotices, deriveStyleConfiguratorCapabilities, buildApplySiteStyleSelectionBody, markApplyFailed, selectionSnapshotFromApplySiteStyleSelectionResponse, styleConfiguratorHistoryEntryForPersistedSelection, markApplySaved, unwrapResponse, markApplySaving, findButtonPersonality, findPaletteVariant, findTypographyPreset, getHeaderLayout, getHeaderStyle, getFooterLayout, findFooterLook, cycleSiteChromeLookId, resolveContentTitle, foldSubroute, SUBROUTE_KINDS, Smartphone, Tablet, Monitor, Maximize2, cn, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuItem, listEntryPageContentSlots, ContentSpinner, Callout, CalloutDescription, curatedSiteStyles, ChevronLeft, cycleableSiteChromeOptions, requireEntriesForCuratedChoices, buttonPersonalities, typographyPresets, paletteVariants, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, FormRenderer, evaluateTypographyFontSlot, Separator, Surface, ColorPicker, Input } from './chunk-O62NDCTI.mjs';
|
|
4
4
|
import { usePreviewAuth, getDashboardUrl } from './chunk-LBBPD2IW.mjs';
|
|
5
5
|
import './chunk-R7POPVJR.mjs';
|
|
6
6
|
import { useMemo, useRef, useCallback, useEffect, useState, useTransition, useLayoutEffect, useSyncExternalStore, useId } from 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { resolvePreviewChromeSurface, usePreviewPageDesignEditorState, PREVIEW_CHROME_PORTAL_CLASS_NAME, PREVIEW_CHROME_THEME_CLASS_NAME, applyPreviewChromeSurfaceToElement, setPreviewSidebarTab } from './chunk-
|
|
3
|
-
import { useEntryEditorController, useEditorUiStore, useMultiAutosave, usePreviewDesignHistoryOrder, useSiteChromeCustomizeOptional, selectPreviewDesignHistoryDomain, EditorChrome, previewDesignHistoryDomainForCommand, classifyHistoryShortcut, previewAssistantEnabled, unwrapResponse, cn, Dialog, Button, Palette, DialogContent, DialogHeader, DialogTitle, DialogDescription, TriangleAlert, Pencil, Sparkles, useEditorUiStoreInstance } from './chunk-
|
|
2
|
+
import { resolvePreviewChromeSurface, usePreviewPageDesignEditorState, PREVIEW_CHROME_PORTAL_CLASS_NAME, PREVIEW_CHROME_THEME_CLASS_NAME, applyPreviewChromeSurfaceToElement, setPreviewSidebarTab } from './chunk-RCTJAZSK.mjs';
|
|
3
|
+
import { useEntryEditorController, useEditorUiStore, useMultiAutosave, usePreviewDesignHistoryOrder, useSiteChromeCustomizeOptional, selectPreviewDesignHistoryDomain, EditorChrome, previewDesignHistoryDomainForCommand, classifyHistoryShortcut, previewAssistantEnabled, unwrapResponse, cn, Dialog, Button, Palette, DialogContent, DialogHeader, DialogTitle, DialogDescription, TriangleAlert, Pencil, Sparkles, useEditorUiStoreInstance } from './chunk-O62NDCTI.mjs';
|
|
4
4
|
import { usePreviewAuth, getDashboardBaseUrl } from './chunk-LBBPD2IW.mjs';
|
|
5
5
|
import './chunk-R7POPVJR.mjs';
|
|
6
6
|
import { useState, useMemo, useCallback, useEffect, useTransition } from 'react';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
export { SdkPreviewModeRuntime } from './chunk-QRKJDWT7.mjs';
|
|
3
|
+
import './chunk-3LXFQS7T.mjs';
|
|
4
|
+
import './chunk-X5ZCSU6F.mjs';
|
|
5
|
+
import './chunk-RCTJAZSK.mjs';
|
|
6
|
+
import './chunk-O62NDCTI.mjs';
|
|
7
|
+
import './chunk-LBBPD2IW.mjs';
|
|
8
|
+
import './chunk-R7POPVJR.mjs';
|
|
@@ -240,7 +240,7 @@ export declare const proofBlockIslandCodecs: {
|
|
|
240
240
|
className: string | null;
|
|
241
241
|
titleText: string;
|
|
242
242
|
bodyText: string;
|
|
243
|
-
stepLabels:
|
|
243
|
+
stepLabels: readonly ("Details" | "Date" | "Event" | "Tickets" | "Payment")[];
|
|
244
244
|
summaryButtonText: string;
|
|
245
245
|
}>;
|
|
246
246
|
hydration: Readonly<Omit<import("../system/runtime/nodes/event-registration").EventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "registrationEndpoint" | "eligibilityEndpoint" | "checkoutEndpoint">>;
|
|
@@ -263,7 +263,7 @@ export declare const proofBlockIslandCodecs: {
|
|
|
263
263
|
className: string | null;
|
|
264
264
|
titleText: string;
|
|
265
265
|
bodyText: string;
|
|
266
|
-
stepLabels:
|
|
266
|
+
stepLabels: readonly ("Details" | "Date" | "Event" | "Tickets" | "Payment")[];
|
|
267
267
|
summaryButtonText: string;
|
|
268
268
|
}>;
|
|
269
269
|
hydration: Readonly<Omit<import("../system/runtime/nodes/event-registration").EventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "registrationEndpoint" | "eligibilityEndpoint" | "checkoutEndpoint">>;
|
|
@@ -1288,7 +1288,7 @@ export declare const runtimeIslandCodecs: {
|
|
|
1288
1288
|
className: string | null;
|
|
1289
1289
|
titleText: string;
|
|
1290
1290
|
bodyText: string;
|
|
1291
|
-
stepLabels:
|
|
1291
|
+
stepLabels: readonly ("Details" | "Date" | "Event" | "Tickets" | "Payment")[];
|
|
1292
1292
|
summaryButtonText: string;
|
|
1293
1293
|
}>;
|
|
1294
1294
|
hydration: Readonly<Omit<import("../system/runtime/nodes/event-registration").EventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "registrationEndpoint" | "eligibilityEndpoint" | "checkoutEndpoint">>;
|
|
@@ -1311,7 +1311,7 @@ export declare const runtimeIslandCodecs: {
|
|
|
1311
1311
|
className: string | null;
|
|
1312
1312
|
titleText: string;
|
|
1313
1313
|
bodyText: string;
|
|
1314
|
-
stepLabels:
|
|
1314
|
+
stepLabels: readonly ("Details" | "Date" | "Event" | "Tickets" | "Payment")[];
|
|
1315
1315
|
summaryButtonText: string;
|
|
1316
1316
|
}>;
|
|
1317
1317
|
hydration: Readonly<Omit<import("../system/runtime/nodes/event-registration").EventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "registrationEndpoint" | "eligibilityEndpoint" | "checkoutEndpoint">>;
|
|
@@ -2345,7 +2345,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
2345
2345
|
className: string | null;
|
|
2346
2346
|
titleText: string;
|
|
2347
2347
|
bodyText: string;
|
|
2348
|
-
stepLabels:
|
|
2348
|
+
stepLabels: readonly ("Details" | "Date" | "Event" | "Tickets" | "Payment")[];
|
|
2349
2349
|
summaryButtonText: string;
|
|
2350
2350
|
}>;
|
|
2351
2351
|
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "registrationEndpoint" | "eligibilityEndpoint" | "checkoutEndpoint">>;
|
|
@@ -2409,7 +2409,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
2409
2409
|
className: string | null;
|
|
2410
2410
|
titleText: string;
|
|
2411
2411
|
bodyText: string;
|
|
2412
|
-
stepLabels:
|
|
2412
|
+
stepLabels: readonly ("Details" | "Date" | "Event" | "Tickets" | "Payment")[];
|
|
2413
2413
|
summaryButtonText: string;
|
|
2414
2414
|
}>;
|
|
2415
2415
|
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "registrationEndpoint" | "eligibilityEndpoint" | "checkoutEndpoint">>;
|
|
@@ -2421,7 +2421,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
2421
2421
|
className: string | null;
|
|
2422
2422
|
titleText: string;
|
|
2423
2423
|
bodyText: string;
|
|
2424
|
-
stepLabels:
|
|
2424
|
+
stepLabels: readonly ("Details" | "Date" | "Event" | "Tickets" | "Payment")[];
|
|
2425
2425
|
summaryButtonText: string;
|
|
2426
2426
|
}>;
|
|
2427
2427
|
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "registrationEndpoint" | "eligibilityEndpoint" | "checkoutEndpoint">>;
|
|
@@ -2464,7 +2464,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
2464
2464
|
className: string | null;
|
|
2465
2465
|
titleText: string;
|
|
2466
2466
|
bodyText: string;
|
|
2467
|
-
stepLabels:
|
|
2467
|
+
stepLabels: readonly ("Details" | "Date" | "Event" | "Tickets" | "Payment")[];
|
|
2468
2468
|
summaryButtonText: string;
|
|
2469
2469
|
}>;
|
|
2470
2470
|
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "registrationEndpoint" | "eligibilityEndpoint" | "checkoutEndpoint">>;
|
|
@@ -2528,7 +2528,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
2528
2528
|
className: string | null;
|
|
2529
2529
|
titleText: string;
|
|
2530
2530
|
bodyText: string;
|
|
2531
|
-
stepLabels:
|
|
2531
|
+
stepLabels: readonly ("Details" | "Date" | "Event" | "Tickets" | "Payment")[];
|
|
2532
2532
|
summaryButtonText: string;
|
|
2533
2533
|
}>;
|
|
2534
2534
|
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "registrationEndpoint" | "eligibilityEndpoint" | "checkoutEndpoint">>;
|
|
@@ -2540,7 +2540,7 @@ export declare const runtimeBackedBlockClientEntries: {
|
|
|
2540
2540
|
className: string | null;
|
|
2541
2541
|
titleText: string;
|
|
2542
2542
|
bodyText: string;
|
|
2543
|
-
stepLabels:
|
|
2543
|
+
stepLabels: readonly ("Details" | "Date" | "Event" | "Tickets" | "Payment")[];
|
|
2544
2544
|
summaryButtonText: string;
|
|
2545
2545
|
}>;
|
|
2546
2546
|
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "registrationEndpoint" | "eligibilityEndpoint" | "checkoutEndpoint">>;
|
|
@@ -1188,7 +1188,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
1188
1188
|
className: string | null;
|
|
1189
1189
|
titleText: string;
|
|
1190
1190
|
bodyText: string;
|
|
1191
|
-
stepLabels:
|
|
1191
|
+
stepLabels: readonly ("Details" | "Date" | "Event" | "Tickets" | "Payment")[];
|
|
1192
1192
|
summaryButtonText: string;
|
|
1193
1193
|
}>;
|
|
1194
1194
|
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "registrationEndpoint" | "eligibilityEndpoint" | "checkoutEndpoint">>;
|
|
@@ -1252,7 +1252,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
1252
1252
|
className: string | null;
|
|
1253
1253
|
titleText: string;
|
|
1254
1254
|
bodyText: string;
|
|
1255
|
-
stepLabels:
|
|
1255
|
+
stepLabels: readonly ("Details" | "Date" | "Event" | "Tickets" | "Payment")[];
|
|
1256
1256
|
summaryButtonText: string;
|
|
1257
1257
|
}>;
|
|
1258
1258
|
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "registrationEndpoint" | "eligibilityEndpoint" | "checkoutEndpoint">>;
|
|
@@ -1264,7 +1264,7 @@ export declare const runtimeBackedBlockServerEntries: {
|
|
|
1264
1264
|
className: string | null;
|
|
1265
1265
|
titleText: string;
|
|
1266
1266
|
bodyText: string;
|
|
1267
|
-
stepLabels:
|
|
1267
|
+
stepLabels: readonly ("Details" | "Date" | "Event" | "Tickets" | "Payment")[];
|
|
1268
1268
|
summaryButtonText: string;
|
|
1269
1269
|
}>;
|
|
1270
1270
|
hydration: Readonly<Omit<import("../nodes/event-registration").EventRegistrationClientProps, "siteId" | "stage" | "className" | "buttonText" | "registrationEndpoint" | "eligibilityEndpoint" | "checkoutEndpoint">>;
|
package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizard.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { EventRegistrationClientProps } from './types';
|
|
3
|
-
/** Anchor ID for the registration block, used for post-logout scroll targeting */
|
|
4
|
-
export declare const EVENT_REGISTRATION_ANCHOR_ID = "event-registration";
|
|
5
3
|
export declare function EventRegistrationWizard(props: EventRegistrationClientProps): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EVENT_REGISTRATION_ANCHOR_ID = "event-registration";
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import type { PaymentMethod } from '../../api/types';
|
|
2
|
+
import type { EventRegistrationContentEntry } from '../event-registration.interactive';
|
|
3
|
+
import type { EligibilityData, FormData, Guest, GuestErrors, OccurrenceContext, PaymentSelection, PaymentStepState, PublicEvent, RegistrationEvent, RegistrationResult } from './types';
|
|
4
|
+
import type { SelectableEventTicketType } from './utils';
|
|
5
|
+
import type { PortalAuthState, PortalProfile } from './hooks';
|
|
6
|
+
import type { UseWaitlistClaimResult } from '../../shared/useWaitlistClaim';
|
|
7
|
+
import type { UseEventRegistrationWizardResult } from './useEventRegistrationWizard';
|
|
8
|
+
import type { EventRegistrationSubmitOptions, EventRegistrationSubmitResult } from './useEventRegistrationSubmit';
|
|
9
|
+
export declare const DEFAULT_EVENT_REGISTRATION_MAX_TICKETS = 5;
|
|
10
|
+
export type EventRegistrationLoadState<T> = Readonly<{
|
|
11
|
+
tag: 'idle';
|
|
12
|
+
value: T | null;
|
|
13
|
+
}> | Readonly<{
|
|
14
|
+
tag: 'loading';
|
|
15
|
+
value: T | null;
|
|
16
|
+
}> | Readonly<{
|
|
17
|
+
tag: 'loaded';
|
|
18
|
+
value: T;
|
|
19
|
+
}>;
|
|
20
|
+
export type EventRegistrationSubmitArgs = Readonly<{
|
|
21
|
+
method: PaymentMethod;
|
|
22
|
+
passId?: string;
|
|
23
|
+
membershipId?: string;
|
|
24
|
+
selection?: PaymentSelection;
|
|
25
|
+
}>;
|
|
26
|
+
export type EventRegistrationSubmitPlan = Readonly<{
|
|
27
|
+
ok: true;
|
|
28
|
+
args: EventRegistrationSubmitArgs;
|
|
29
|
+
}> | Readonly<{
|
|
30
|
+
ok: false;
|
|
31
|
+
reason: 'payment-selection-required';
|
|
32
|
+
message: string;
|
|
33
|
+
}>;
|
|
34
|
+
export type EventRegistrationFlowStatus = Readonly<{
|
|
35
|
+
tag: 'ready';
|
|
36
|
+
}> | Readonly<{
|
|
37
|
+
tag: 'submitting';
|
|
38
|
+
}> | Readonly<{
|
|
39
|
+
tag: 'redirecting';
|
|
40
|
+
}> | Readonly<{
|
|
41
|
+
tag: 'verifying-payment';
|
|
42
|
+
}> | Readonly<{
|
|
43
|
+
tag: 'verifying-timeout';
|
|
44
|
+
}> | Readonly<{
|
|
45
|
+
tag: 'payment-failed';
|
|
46
|
+
message: string;
|
|
47
|
+
}> | Readonly<{
|
|
48
|
+
tag: 'success';
|
|
49
|
+
result: RegistrationResult;
|
|
50
|
+
}> | Readonly<{
|
|
51
|
+
tag: 'error';
|
|
52
|
+
message: string;
|
|
53
|
+
}>;
|
|
54
|
+
export type EventRegistrationFlowView = Readonly<{
|
|
55
|
+
kind: 'empty';
|
|
56
|
+
message: string;
|
|
57
|
+
}> | Readonly<{
|
|
58
|
+
kind: 'unavailable';
|
|
59
|
+
message: string;
|
|
60
|
+
}> | Readonly<{
|
|
61
|
+
kind: 'form';
|
|
62
|
+
}> | Readonly<{
|
|
63
|
+
kind: 'verifying';
|
|
64
|
+
message: string;
|
|
65
|
+
}> | Readonly<{
|
|
66
|
+
kind: 'success';
|
|
67
|
+
result: RegistrationResult;
|
|
68
|
+
}> | Readonly<{
|
|
69
|
+
kind: 'error';
|
|
70
|
+
message: string;
|
|
71
|
+
}>;
|
|
72
|
+
export type EventRegistrationFlowStepId = 'select-event' | 'select-tickets' | 'enter-details' | 'select-payment';
|
|
73
|
+
export type EventRegistrationFlowStepState = 'complete' | 'active' | 'available' | 'blocked';
|
|
74
|
+
export type EventRegistrationFlowStep = Readonly<{
|
|
75
|
+
id: EventRegistrationFlowStepId;
|
|
76
|
+
label: string;
|
|
77
|
+
state: EventRegistrationFlowStepState;
|
|
78
|
+
index: number;
|
|
79
|
+
canEnter: boolean;
|
|
80
|
+
canLeave: boolean;
|
|
81
|
+
}>;
|
|
82
|
+
export type EventRegistrationFlowActionResult = Readonly<{
|
|
83
|
+
ok: true;
|
|
84
|
+
}> | Readonly<{
|
|
85
|
+
ok: false;
|
|
86
|
+
reason: 'blocked' | 'validation-failed' | 'submission-failed';
|
|
87
|
+
message: string;
|
|
88
|
+
}>;
|
|
89
|
+
export type EventRegistrationEventsModel = Readonly<{
|
|
90
|
+
items: readonly PublicEvent[];
|
|
91
|
+
scoped: readonly RegistrationEvent[];
|
|
92
|
+
selected: RegistrationEvent | null;
|
|
93
|
+
preSelected: RegistrationEvent | null;
|
|
94
|
+
hasPreSelectedContext: boolean;
|
|
95
|
+
target: UseEventRegistrationWizardResult['registrationTarget'];
|
|
96
|
+
occurrenceContext: OccurrenceContext | null | undefined;
|
|
97
|
+
contentEntry: EventRegistrationContentEntry | null | undefined;
|
|
98
|
+
}>;
|
|
99
|
+
export type EventRegistrationTicketsModel = Readonly<{
|
|
100
|
+
count: number;
|
|
101
|
+
max: number;
|
|
102
|
+
selectedTicketTypeId: string | null;
|
|
103
|
+
selectedTicketType: SelectableEventTicketType | null;
|
|
104
|
+
visibleTicketTypes: readonly SelectableEventTicketType[];
|
|
105
|
+
selectionRequired: boolean;
|
|
106
|
+
hasValidSelection: boolean;
|
|
107
|
+
eventRequiresPayment: boolean;
|
|
108
|
+
selectedAttendanceMode: 'in_person' | 'online' | null;
|
|
109
|
+
}>;
|
|
110
|
+
export type EventRegistrationAttendeeModel = Readonly<{
|
|
111
|
+
values: FormData;
|
|
112
|
+
errors: Partial<Record<keyof FormData, string>>;
|
|
113
|
+
}>;
|
|
114
|
+
export type EventRegistrationGuestsModel = Readonly<{
|
|
115
|
+
required: boolean;
|
|
116
|
+
items: readonly Guest[];
|
|
117
|
+
errors: GuestErrors;
|
|
118
|
+
shake: boolean;
|
|
119
|
+
}>;
|
|
120
|
+
export type EventRegistrationPaymentSelection = Readonly<{
|
|
121
|
+
method: 'none';
|
|
122
|
+
}> | Readonly<{
|
|
123
|
+
method: 'free';
|
|
124
|
+
}> | Readonly<{
|
|
125
|
+
method: 'stripe';
|
|
126
|
+
}> | Readonly<{
|
|
127
|
+
method: 'pass';
|
|
128
|
+
passId: string;
|
|
129
|
+
productName?: string;
|
|
130
|
+
}> | Readonly<{
|
|
131
|
+
method: 'membership';
|
|
132
|
+
membershipId: string;
|
|
133
|
+
productName?: string;
|
|
134
|
+
}> | Readonly<{
|
|
135
|
+
method: 'pass_bundle';
|
|
136
|
+
passId: string;
|
|
137
|
+
productName?: string;
|
|
138
|
+
}> | Readonly<{
|
|
139
|
+
method: 'membership_bundle';
|
|
140
|
+
membershipId: string;
|
|
141
|
+
productName?: string;
|
|
142
|
+
}>;
|
|
143
|
+
export type EventRegistrationPaymentModel = Readonly<{
|
|
144
|
+
kind: 'hidden';
|
|
145
|
+
selection: EventRegistrationPaymentSelection;
|
|
146
|
+
stepState: PaymentStepState;
|
|
147
|
+
}> | Readonly<{
|
|
148
|
+
kind: 'loading' | 'error' | 'not-eligible' | 'ready';
|
|
149
|
+
selection: EventRegistrationPaymentSelection;
|
|
150
|
+
stepState: PaymentStepState;
|
|
151
|
+
eligibility: EligibilityData | null;
|
|
152
|
+
eligibilityError: string | null | undefined;
|
|
153
|
+
}>;
|
|
154
|
+
export type EventRegistrationDiscountModel = Readonly<{
|
|
155
|
+
code: string;
|
|
156
|
+
isOpen: boolean;
|
|
157
|
+
available: boolean;
|
|
158
|
+
manualCodeEntryAllowed: boolean;
|
|
159
|
+
loading: boolean;
|
|
160
|
+
autoAppliedDiscount: UseEventRegistrationWizardResult['autoAppliedDiscount'];
|
|
161
|
+
}>;
|
|
162
|
+
export type EventRegistrationPortalAuthModel = Readonly<{
|
|
163
|
+
state: PortalAuthState;
|
|
164
|
+
profile: PortalProfile | null;
|
|
165
|
+
isAuthenticated: boolean;
|
|
166
|
+
showMagicLinkModal: boolean;
|
|
167
|
+
}>;
|
|
168
|
+
export type EventRegistrationSpamProtectionModel = Readonly<{
|
|
169
|
+
enabled: false;
|
|
170
|
+
}> | Readonly<{
|
|
171
|
+
enabled: true;
|
|
172
|
+
provider: 'altcha';
|
|
173
|
+
challenge: {
|
|
174
|
+
url: string;
|
|
175
|
+
auto: 'onfocus';
|
|
176
|
+
};
|
|
177
|
+
solution: string | null;
|
|
178
|
+
}>;
|
|
179
|
+
export type EventRegistrationTerminalModel = Readonly<{
|
|
180
|
+
result: RegistrationResult | null;
|
|
181
|
+
errorMessage: string;
|
|
182
|
+
verification: UseEventRegistrationWizardResult['verification'];
|
|
183
|
+
}>;
|
|
184
|
+
export type EventRegistrationFlowActions = Readonly<{
|
|
185
|
+
selectEvent: (event: RegistrationEvent) => void;
|
|
186
|
+
selectAttendanceMode: (mode: 'in_person' | 'online' | null) => void;
|
|
187
|
+
selectTicketType: (ticketTypeId: string | null) => void;
|
|
188
|
+
setTicketsCount: (count: number) => void;
|
|
189
|
+
updateAttendee: (values: FormData) => void;
|
|
190
|
+
updateGuests: (guests: Guest[]) => void;
|
|
191
|
+
selectPayment: (selection: EventRegistrationPaymentSelection) => void;
|
|
192
|
+
setDiscountCode: (code: string) => void;
|
|
193
|
+
setDiscountOpen: (isOpen: boolean) => void;
|
|
194
|
+
setAltchaSolution: (solution: string | null) => void;
|
|
195
|
+
requestLogin: () => void;
|
|
196
|
+
logout: () => void;
|
|
197
|
+
next: () => Promise<EventRegistrationFlowActionResult>;
|
|
198
|
+
back: () => void;
|
|
199
|
+
submit: (options?: EventRegistrationSubmitOptions) => Promise<EventRegistrationSubmitResult>;
|
|
200
|
+
retry: () => void;
|
|
201
|
+
}>;
|
|
202
|
+
export type HeadlessEventRegistrationFlow = Readonly<{
|
|
203
|
+
status: EventRegistrationFlowStatus;
|
|
204
|
+
view: EventRegistrationFlowView;
|
|
205
|
+
steps: readonly EventRegistrationFlowStep[];
|
|
206
|
+
currentStep: EventRegistrationFlowStep | null;
|
|
207
|
+
events: EventRegistrationEventsModel;
|
|
208
|
+
tickets: EventRegistrationTicketsModel;
|
|
209
|
+
attendee: EventRegistrationAttendeeModel;
|
|
210
|
+
guests: EventRegistrationGuestsModel;
|
|
211
|
+
payment: EventRegistrationPaymentModel;
|
|
212
|
+
discount: EventRegistrationDiscountModel;
|
|
213
|
+
portalAuth: EventRegistrationPortalAuthModel;
|
|
214
|
+
existingRegistration: Readonly<{
|
|
215
|
+
state: EventRegistrationLoadState<UseEventRegistrationWizardResult['existingRegistration']>;
|
|
216
|
+
registration: UseEventRegistrationWizardResult['existingRegistration'];
|
|
217
|
+
}>;
|
|
218
|
+
waitlistClaim: UseWaitlistClaimResult;
|
|
219
|
+
spamProtection: EventRegistrationSpamProtectionModel;
|
|
220
|
+
terminal: EventRegistrationTerminalModel;
|
|
221
|
+
actions: EventRegistrationFlowActions;
|
|
222
|
+
}>;
|
|
223
|
+
export type EventRegistrationOverrideData = Readonly<{
|
|
224
|
+
events?: readonly PublicEvent[] | null;
|
|
225
|
+
}>;
|
|
226
|
+
export type EventRegistrationOverridePropsLike = Readonly<{
|
|
227
|
+
content?: Partial<{
|
|
228
|
+
maxTickets: string | null;
|
|
229
|
+
showVenue: boolean | null;
|
|
230
|
+
showCapacity: boolean | null;
|
|
231
|
+
successMessage: string | null;
|
|
232
|
+
waitlistMessage: string | null;
|
|
233
|
+
buttonVariant: 'primary' | 'secondary' | 'outline' | null;
|
|
234
|
+
buttonText: string | null;
|
|
235
|
+
spamProtectionEnabled: boolean | null;
|
|
236
|
+
supportEmail: string | null;
|
|
237
|
+
}> | null;
|
|
238
|
+
data?: EventRegistrationOverrideData | Record<string, unknown> | null;
|
|
239
|
+
siteId?: string;
|
|
240
|
+
apiBaseUrl?: string;
|
|
241
|
+
portalToken?: string | null;
|
|
242
|
+
previewToken?: string | null;
|
|
243
|
+
stage?: 'preview' | 'published';
|
|
244
|
+
occurrenceContext?: OccurrenceContext | null;
|
|
245
|
+
contentEntry?: Record<string, unknown> | null;
|
|
246
|
+
blockId?: string | null;
|
|
247
|
+
}>;
|
|
248
|
+
export type EventRegistrationOverrideInput = Readonly<{
|
|
249
|
+
siteId: string;
|
|
250
|
+
apiBaseUrl: string;
|
|
251
|
+
portalToken: string | null;
|
|
252
|
+
previewToken: string | null;
|
|
253
|
+
stage?: 'preview' | 'published';
|
|
254
|
+
occurrenceContext?: OccurrenceContext | null;
|
|
255
|
+
contentEntry?: EventRegistrationContentEntry | null;
|
|
256
|
+
events: readonly PublicEvent[];
|
|
257
|
+
maxTickets?: string;
|
|
258
|
+
showVenue?: boolean;
|
|
259
|
+
showCapacity?: boolean;
|
|
260
|
+
successMessage?: string;
|
|
261
|
+
waitlistMessage?: string;
|
|
262
|
+
buttonText?: string | null;
|
|
263
|
+
buttonVariant?: 'primary' | 'secondary' | 'outline';
|
|
264
|
+
spamProtectionEnabled?: boolean;
|
|
265
|
+
supportEmail?: string;
|
|
266
|
+
blockId?: string | null;
|
|
267
|
+
}>;
|
|
268
|
+
export type EventRegistrationOverrideInputResult = Readonly<{
|
|
269
|
+
ok: true;
|
|
270
|
+
value: EventRegistrationOverrideInput;
|
|
271
|
+
}> | Readonly<{
|
|
272
|
+
ok: false;
|
|
273
|
+
reason: 'missing-site-id' | 'missing-api-base-url';
|
|
274
|
+
message: string;
|
|
275
|
+
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BlockApiConfig } from '../../api';
|
|
2
|
+
import type { EventRegistrationOverrideInputResult, EventRegistrationOverridePropsLike } from './event-registration.headless.contract';
|
|
3
|
+
export declare function createEventRegistrationBlockApiConfig(input: Readonly<{
|
|
4
|
+
siteId: string;
|
|
5
|
+
apiBaseUrl: string;
|
|
6
|
+
portalToken?: string | null;
|
|
7
|
+
previewToken?: string | null;
|
|
8
|
+
stage?: 'preview' | 'published';
|
|
9
|
+
}>): BlockApiConfig;
|
|
10
|
+
export declare function getEventRegistrationOverrideInput(props: EventRegistrationOverridePropsLike): EventRegistrationOverrideInputResult;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { PaymentSelection, PublicEvent, RegistrationStep } from './types';
|
|
2
|
+
import type { UseEventRegistrationWizardResult } from './useEventRegistrationWizard';
|
|
3
|
+
import { type EventRegistrationFlowStatus, type EventRegistrationFlowStep, type EventRegistrationFlowView, type EventRegistrationPaymentSelection, type EventRegistrationSubmitPlan } from './event-registration.headless.contract';
|
|
4
|
+
export declare function getRegistrableStatuses(isPreview: boolean | undefined): readonly PublicEvent['status'][];
|
|
5
|
+
export declare function normalizeEventRegistrationMaxTickets(value: string | number | undefined): number;
|
|
6
|
+
export declare function toHeadlessPaymentSelection(selection: PaymentSelection): EventRegistrationPaymentSelection;
|
|
7
|
+
export declare function toInternalPaymentSelection(selection: EventRegistrationPaymentSelection): PaymentSelection;
|
|
8
|
+
export declare function resolveEventRegistrationSubmitPlan(input: Readonly<{
|
|
9
|
+
paymentSelection: PaymentSelection;
|
|
10
|
+
eventRequiresPayment: boolean;
|
|
11
|
+
canJoinWaitlist?: boolean | null;
|
|
12
|
+
}>): EventRegistrationSubmitPlan;
|
|
13
|
+
export declare function resolveHeadlessEventRegistrationStatus(wizard: Pick<UseEventRegistrationWizardResult, 'step' | 'registrationResult' | 'errorMessage'>): EventRegistrationFlowStatus;
|
|
14
|
+
export declare function resolveHeadlessEventRegistrationView(wizard: Readonly<Pick<UseEventRegistrationWizardResult, 'step' | 'scopedEvents' | 'occurrenceContext' | 'registrationResult' | 'errorMessage'> & {
|
|
15
|
+
api: Pick<UseEventRegistrationWizardResult['api'], 'config'>;
|
|
16
|
+
}>): EventRegistrationFlowView;
|
|
17
|
+
export declare function deriveEventRegistrationSteps(input: Readonly<{
|
|
18
|
+
step: RegistrationStep;
|
|
19
|
+
hasPreSelectedContext: boolean;
|
|
20
|
+
eventRequiresPayment: boolean;
|
|
21
|
+
paymentSelection: PaymentSelection;
|
|
22
|
+
}>): readonly EventRegistrationFlowStep[];
|