@riverbankcms/sdk 0.107.0 → 0.108.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-DpAbAl08.mjs → PreviewEditorSidebar-BBT-kZAM.mjs} +46 -11
- package/dist/{PreviewEditorUI-O7cn6Xxv.mjs → PreviewEditorUI-D69xNKT2.mjs} +10 -9
- package/dist/{PreviewQueryProvider-D0tnKl0t.mjs → PreviewQueryProvider-RRu7wyQ5.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-CVB7urtl.mjs → SdkPreviewModeRuntime-CuDjXH6o.mjs} +426 -72
- package/dist/{SiteChromeCustomizeContext-C_sizso-.mjs → SiteChromeCustomizeContext-BQUY2dEk.mjs} +3865 -544
- package/dist/_dts/ai/src/contracts/proposals.d.ts +3712 -220
- package/dist/_dts/api/src/blocks.d.ts +41 -7
- package/dist/_dts/api/src/bookingRecords.d.ts +180 -115
- package/dist/_dts/api/src/cache-tags.d.ts +3 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +19 -1
- package/dist/_dts/api/src/endpoints.d.ts +99 -0
- package/dist/_dts/api/src/footer-settings.d.ts +1 -0
- package/dist/_dts/api/src/footerSettings.d.ts +8 -0
- package/dist/_dts/api/src/index.d.ts +5 -2
- package/dist/_dts/api/src/navigation/contracts.d.ts +3 -3
- package/dist/_dts/api/src/previewContentContract.d.ts +4 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +62 -0
- package/dist/_dts/api/src/siteBanner.d.ts +2 -2
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +143 -55
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +7 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +41 -1
- package/dist/_dts/blocks/src/primitives/layout/Section.d.ts +0 -1
- package/dist/_dts/blocks/src/rendering/server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +50 -0
- package/dist/_dts/blocks/src/system/blocks/site-footer.d.ts +9 -48
- package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
- package/dist/_dts/blocks/src/system/icons/registry.d.ts +2 -1
- package/dist/_dts/blocks/src/system/icons/social.d.ts +5 -0
- package/dist/_dts/blocks/src/system/icons/svg.d.ts +1 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +2 -2
- package/dist/_dts/blocks/src/system/node/fragments/backgroundLayer.d.ts +13 -0
- package/dist/_dts/blocks/src/system/node/fragments/footerNav.d.ts +2 -0
- package/dist/_dts/blocks/src/system/node/fragments/styledContainer.d.ts +4 -4
- package/dist/_dts/blocks/src/system/node/fragments/styledSection.d.ts +3 -12
- package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +1 -1
- package/dist/_dts/blocks/src/system/types/link.d.ts +3 -3
- package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +14 -0
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +27 -8
- package/dist/_dts/content-editor/src/footerComposer.d.ts +56 -0
- package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/useEntryMutations.d.ts +5 -5
- package/dist/_dts/content-editor/src/index.d.ts +2 -0
- package/dist/_dts/content-editor/src/primitives/PreviewRichTextEditor.d.ts +3 -1
- package/dist/_dts/content-editor/src/services/contentEntryServices.d.ts +20 -36
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +5 -1
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +11 -0
- package/dist/_dts/content-model/src/content-types/schema.d.ts +1 -1
- package/dist/_dts/content-model/src/definitions/shared.d.ts +3 -0
- package/dist/_dts/core/src/branded.d.ts +3 -0
- package/dist/_dts/core/src/editor-state.d.ts +4 -0
- package/dist/_dts/core/src/footer-composition.d.ts +143 -0
- package/dist/_dts/core/src/index.d.ts +2 -0
- package/dist/_dts/core/src/public-profile.d.ts +73 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +3043 -2941
- package/dist/_dts/db/src/schemas/forms.d.ts +10 -10
- package/dist/_dts/editor/src/primitives/rich-text/RichTextEditorSurface.d.ts +5 -0
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockCreation.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockDuplication.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockReorder.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/block-editor/owner.d.ts +10 -0
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +1 -0
- package/dist/_dts/path-utils/src/index.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewChromeLayer.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/previewErrorMessages.d.ts +4 -0
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +1 -0
- package/dist/_dts/sdk/src/client/management/blocks.d.ts +14 -1
- package/dist/_dts/sdk/src/client/management/index.d.ts +1 -0
- package/dist/_dts/sdk/src/client/management/types.d.ts +15 -1
- package/dist/_dts/sdk/src/config/content-types.d.ts +2 -0
- package/dist/_dts/sdk/src/config/content-validation.d.ts +4 -0
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +3 -2
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +2 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commands.d.ts +13 -10
- package/dist/_dts/theme-core/src/accordions/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +11 -0
- package/dist/_dts/theme-core/src/buttons/personalities/two-tone-pill.d.ts +17 -0
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/cards/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/footer/mode.d.ts +15 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +36 -30
- package/dist/_dts/theme-core/src/navigation/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/schema.d.ts +1186 -34
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +12 -1
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +15 -0
- package/dist/cli/index.mjs +760 -374
- package/dist/client/{DiscountCodeDisclosure-BwGkvmVH.mjs → DiscountCodeDisclosure-D6TOf6Hi.mjs} +1 -1
- package/dist/client/{EventCombined.client-JnWE6Hzc.mjs → EventCombined.client-Dao3zxRk.mjs} +3 -3
- package/dist/client/{EventListing.client-DQewc_kg.mjs → EventListing.client-B2NNt4y1.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-DPAU3SFt.mjs → LeafletStaticMap-BhwFo16w.mjs} +1 -1
- package/dist/client/{MagicLinkForm-D4kpWCbW.mjs → MagicLinkForm-BWnB7cMR.mjs} +2 -2
- package/dist/client/{StepIndicator-CBlkb4rA.mjs → StepIndicator-TzRiQ0BY.mjs} +2 -2
- package/dist/client/{accordion-DAIBVpTS.mjs → accordion-BPy-AJ4_.mjs} +1 -1
- package/dist/client/{bookingForm-DZ-4l5_1.mjs → bookingForm-BL4PGZds.mjs} +6 -6
- package/dist/client/bookings.mjs +143 -94
- package/dist/client/{buttons-DJgynGHQ.mjs → buttons-EBjyslaX.mjs} +144 -95
- package/dist/client/{carousel-D-SLfX8r.mjs → carousel-C2b7Cn9-.mjs} +1 -1
- package/dist/client/{cart-CEgbgJhX.mjs → cart-BQcbXIVD.mjs} +3 -3
- package/dist/client/{checkout-CXWrCRAA.mjs → checkout-DEmpGRJu.mjs} +3 -3
- package/dist/client/client.mjs +827 -434
- package/dist/client/{courseRegistration-DVmLrRVz.mjs → courseRegistration-BqRZPmsq.mjs} +7 -7
- package/dist/client/{eventCalendar-DCuyPY_c.mjs → eventCalendar-B8N_tSl5.mjs} +5 -5
- package/dist/client/{eventCombined-kP2CA2D4.mjs → eventCombined-Gjn6gtq7.mjs} +2 -2
- package/dist/client/{eventDetails-DU0LeF5e.mjs → eventDetails-M-VCxA-r.mjs} +3 -3
- package/dist/client/{eventListing-CcHF87BI.mjs → eventListing-DR19hqYi.mjs} +2 -2
- package/dist/client/{eventRegistration-DJnR0yFH.mjs → eventRegistration-BR02a0k3.mjs} +7 -7
- package/dist/client/{form-CH1lCusH.mjs → form-LY2xIbwg.mjs} +2 -2
- package/dist/client/{headerSection-CBPFZoku.mjs → headerSection-CYwwXJfh.mjs} +3 -3
- package/dist/client/hooks.mjs +377 -362
- package/dist/client/{locationMap-Cx1hBg5n.mjs → locationMap-DWnBXrFq.mjs} +2 -2
- package/dist/client/{newsletterForm-1ZL_ti9u.mjs → newsletterForm-D9s-fQ2P.mjs} +2 -2
- package/dist/client/{pricing-BIbzmV0G.mjs → pricing-DDq80oYc.mjs} +1 -1
- package/dist/client/{productDetail-BTh5gHBV.mjs → productDetail-B0SbWd45.mjs} +3 -3
- package/dist/client/{productList-Cc7OMrqN.mjs → productList-PwYlZn0y.mjs} +3 -3
- package/dist/client/{propsDecoder-oR-M-ISN.mjs → propsDecoder-BRWBiH7i.mjs} +33 -9
- package/dist/client/rendering/client.mjs +247 -40
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +478 -270
- package/dist/client/{shop-CQ_YbCnn.mjs → shop-CMwZPYME.mjs} +6 -6
- package/dist/client/{shop-commerce-BM-AoD3M.mjs → shop-commerce-BuxsFate.mjs} +5 -5
- package/dist/client/{shop-commerce-store-DFMQhU5p.mjs → shop-commerce-store-boYlEJ91.mjs} +1 -1
- package/dist/client/{shopShared-D0SKO2Cu.mjs → shopShared-D2naaOes.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-CrG4_ARt.mjs → useDiscountCodeUi-D9RHpVoj.mjs} +1 -1
- package/dist/client/{useEventFilters-CxK8Fekl.mjs → useEventFilters-igGiK1re.mjs} +3 -3
- package/dist/client/{usePolling-jcVryNgZ.mjs → usePolling-CI7MbsFB.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +178 -0
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +178 -0
- package/dist/{previewAuthStore-BPcJPzdz.mjs → previewAuthStore-a_cBD28m.mjs} +178 -0
- package/dist/{sdk-runtime-C39Rsk-x.mjs → sdk-runtime-MBzD-GmP.mjs} +2 -2
- package/dist/{separator-BoMSQnsP.mjs → separator-5ahRBC85.mjs} +1 -1
- package/dist/server/components.mjs +556 -366
- package/dist/server/config-validation.mjs +384 -363
- package/dist/server/config.mjs +384 -364
- package/dist/server/data.mjs +377 -362
- package/dist/server/index.mjs +179 -1
- package/dist/server/navigation.mjs +9 -3
- package/dist/server/next.mjs +1384 -995
- package/dist/server/page-converter.mjs +368 -355
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +539 -360
- package/dist/server/rendering.mjs +556 -366
- package/dist/server/routing.mjs +613 -543
- package/dist/server/server.mjs +554 -361
- package/dist/server/theme-bridge.mjs +189 -98
- package/dist/server/theme.mjs +161 -95
- package/dist/styles/index.css +7 -1
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Ut as assertNever$1, _t as assertNever, o as formatCommercePrice, s as formatInterval, t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { Ut as assertNever$1, _t as assertNever, o as formatCommercePrice, s as formatInterval, t as defineIslandPropsDecoder } from "./propsDecoder-BRWBiH7i.mjs";
|
|
3
3
|
import { n as useBlockApi } from "./context-BGZNlGXB.mjs";
|
|
4
|
-
import { i as CheckIcon, n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
5
|
-
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-
|
|
6
|
-
import { t as themeButtonClassName } from "./buttons-
|
|
4
|
+
import { i as CheckIcon, n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-D9RHpVoj.mjs";
|
|
5
|
+
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-D6TOf6Hi.mjs";
|
|
6
|
+
import { t as themeButtonClassName } from "./buttons-EBjyslaX.mjs";
|
|
7
7
|
import { t as FeedbackMessage } from "./FeedbackMessage-ByMrs3cr.mjs";
|
|
8
8
|
import { t as scrollToBlock } from "./scrollToBlock-C86BYkyV.mjs";
|
|
9
9
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-AGs4cE7t.mjs";
|
|
10
10
|
import { n as consumeSearchParams } from "./urlParams-D71VXFGx.mjs";
|
|
11
11
|
import { t as CrossIcon } from "./CrossIcon-Dn1KRKW5.mjs";
|
|
12
|
-
import { _ as MembershipCardView, a as getDiscountApplyFeedback, d as planDirectShopCheckoutRequest, i as getAppliedDiscountCode, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, t as mountShopBlockIsland, v as PassCardView, y as PassesMembershipsSectionView } from "./shopShared-
|
|
13
|
-
import { t as addPassToCommerceCart } from "./shop-commerce-store-
|
|
12
|
+
import { _ as MembershipCardView, a as getDiscountApplyFeedback, d as planDirectShopCheckoutRequest, i as getAppliedDiscountCode, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, t as mountShopBlockIsland, v as PassCardView, y as PassesMembershipsSectionView } from "./shopShared-D2naaOes.mjs";
|
|
13
|
+
import { t as addPassToCommerceCart } from "./shop-commerce-store-boYlEJ91.mjs";
|
|
14
14
|
import { t as ModalShell } from "./ModalShell-CqkBvBIC.mjs";
|
|
15
15
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
16
16
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { J as createRichTextDocFromMarkdown, St as reportWorkflowError, X as isRecord, Y as unwrapRichTextRoot, _t as assertNever, a as buildProductDetailDisplay, d as deriveCommerceCheckoutState, i as buildProductCardDisplay, n as getShopDisplayForItems, o as formatCommercePrice, p as productItemKey, u as buildProductCartItem, vt as clearWorkflowFeedback } from "./propsDecoder-
|
|
2
|
+
import { J as createRichTextDocFromMarkdown, St as reportWorkflowError, X as isRecord, Y as unwrapRichTextRoot, _t as assertNever, a as buildProductDetailDisplay, d as deriveCommerceCheckoutState, i as buildProductCardDisplay, n as getShopDisplayForItems, o as formatCommercePrice, p as productItemKey, u as buildProductCartItem, vt as clearWorkflowFeedback } from "./propsDecoder-BRWBiH7i.mjs";
|
|
3
3
|
import { a as getCurrentResolveImageUrlContext, c as resolveImageUrlWithContext, t as ImagePresets } from "./media-DHtSxS5V.mjs";
|
|
4
4
|
import { n as useBlockApi } from "./context-BGZNlGXB.mjs";
|
|
5
|
-
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-
|
|
6
|
-
import { t as themeButtonClassName } from "./buttons-
|
|
5
|
+
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-D6TOf6Hi.mjs";
|
|
6
|
+
import { t as themeButtonClassName } from "./buttons-EBjyslaX.mjs";
|
|
7
7
|
import { t as FeedbackMessage } from "./FeedbackMessage-ByMrs3cr.mjs";
|
|
8
8
|
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-Ct8Mxna3.mjs";
|
|
9
9
|
import { t as consumeSearchParam } from "./urlParams-D71VXFGx.mjs";
|
|
10
10
|
import { t as CarouselNodeClient } from "./carousel.client-CpwTUhIo.mjs";
|
|
11
11
|
import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-ClwHwYVA.mjs";
|
|
12
|
-
import { C as ProductListSectionView, S as ProductGalleryFrameView, a as getDiscountApplyFeedback, b as ProductCardView, c as aggregateCartDiscountUiState, f as planUnifiedCheckoutRequest, g as CheckoutShellView, h as CartShellView, i as getAppliedDiscountCode, l as checkoutFormForDiscountUiState, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, u as planCartDiscountAvailabilityRequests, w as VariantSelectView, x as ProductDetailView } from "./shopShared-
|
|
13
|
-
import { n as useCommerceCart } from "./shop-commerce-store-
|
|
12
|
+
import { C as ProductListSectionView, S as ProductGalleryFrameView, a as getDiscountApplyFeedback, b as ProductCardView, c as aggregateCartDiscountUiState, f as planUnifiedCheckoutRequest, g as CheckoutShellView, h as CartShellView, i as getAppliedDiscountCode, l as checkoutFormForDiscountUiState, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, u as planCartDiscountAvailabilityRequests, w as VariantSelectView, x as ProductDetailView } from "./shopShared-D2naaOes.mjs";
|
|
13
|
+
import { n as useCommerceCart } from "./shop-commerce-store-boYlEJ91.mjs";
|
|
14
14
|
import * as React$1 from "react";
|
|
15
15
|
import React, { useEffect, useState } from "react";
|
|
16
16
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { c as EMPTY_COMMERCE_CART_STATE, f as parseStoredCommerceCartState, l as buildPassCartItem, m as reduceCommerceCart } from "./propsDecoder-
|
|
2
|
+
import { c as EMPTY_COMMERCE_CART_STATE, f as parseStoredCommerceCartState, l as buildPassCartItem, m as reduceCommerceCart } from "./propsDecoder-BRWBiH7i.mjs";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
//#region ../blocks/src/system/runtime/nodes/shop-commerce-store.ts
|
|
5
5
|
const EMPTY_STATE = EMPTY_COMMERCE_CART_STATE;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { g as ok, h as err } from "./colorTokenParts-CMugwvX_.mjs";
|
|
3
|
-
import { _t as assertNever } from "./propsDecoder-
|
|
3
|
+
import { _t as assertNever } from "./propsDecoder-BRWBiH7i.mjs";
|
|
4
4
|
import { t as BlockApiProvider } from "./context-BGZNlGXB.mjs";
|
|
5
|
-
import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-
|
|
5
|
+
import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-D6TOf6Hi.mjs";
|
|
6
6
|
import { t as FeedbackMessage } from "./FeedbackMessage-ByMrs3cr.mjs";
|
|
7
7
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
8
8
|
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-UNsfPcYq.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-
|
|
2
|
+
import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-D6TOf6Hi.mjs";
|
|
3
3
|
import { useEffect, useReducer, useRef } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/shared/components/CheckIcon.tsx
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as parseColorTokenParts } from "./colorTokenParts-CMugwvX_.mjs";
|
|
3
|
-
import { A as formatDate, B as resolveEventCta, D as normalizeCsvIds, E as getEventRuntimeFiltersKey, F as formatEventTeacherLine, I as formatTime, N as formatEventPrice, O as normalizeCsvString, Q as parseThemeColorToken, U as getEventAvailability, Z as normalizeCardVariantRole, _t as assertNever, j as formatEventCompactDateRail, k as normalizeOptionalId, q as normalizeEventBlockKind } from "./propsDecoder-
|
|
3
|
+
import { A as formatDate, B as resolveEventCta, D as normalizeCsvIds, E as getEventRuntimeFiltersKey, F as formatEventTeacherLine, I as formatTime, N as formatEventPrice, O as normalizeCsvString, Q as parseThemeColorToken, U as getEventAvailability, Z as normalizeCardVariantRole, _t as assertNever, j as formatEventCompactDateRail, k as normalizeOptionalId, q as normalizeEventBlockKind } from "./propsDecoder-BRWBiH7i.mjs";
|
|
4
4
|
import { a as getCurrentResolveImageUrlContext, i as computeMediaTransformStyle, l as resolveMediaNodeResponsiveImage, n as MediaPlaceholder, o as renderAudio, s as renderVideo, t as ImagePresets } from "./media-DHtSxS5V.mjs";
|
|
5
5
|
import { i as rgbColorValue } from "./colorStyles-jZS6KfkP.mjs";
|
|
6
6
|
import { n as useBlockApi } from "./context-BGZNlGXB.mjs";
|
|
7
|
-
import { t as themeButtonClassName } from "./buttons-
|
|
8
|
-
import { t as LeafletStaticMap } from "./LeafletStaticMap-
|
|
7
|
+
import { t as themeButtonClassName } from "./buttons-EBjyslaX.mjs";
|
|
8
|
+
import { t as LeafletStaticMap } from "./LeafletStaticMap-BhwFo16w.mjs";
|
|
9
9
|
import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { z as z$1 } from "zod";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { _t as assertNever$2 } from "./propsDecoder-
|
|
3
|
-
import { r as formatPrice } from "./StepIndicator-
|
|
2
|
+
import { _t as assertNever$2 } from "./propsDecoder-BRWBiH7i.mjs";
|
|
3
|
+
import { r as formatPrice } from "./StepIndicator-TzRiQ0BY.mjs";
|
|
4
4
|
import { useCallback, useEffect, useReducer, useRef } from "react";
|
|
5
5
|
//#region ../core/src/date-math.ts
|
|
6
6
|
function addDaysToDate(date, dayCount) {
|
|
@@ -29,6 +29,12 @@ function resolvePreviewRuntimeSession(input) {
|
|
|
29
29
|
}
|
|
30
30
|
//#endregion
|
|
31
31
|
//#region ../api/src/apiEndpointTypes.ts
|
|
32
|
+
function allowedDemoMutationPolicy() {
|
|
33
|
+
return {
|
|
34
|
+
classification: "allowed",
|
|
35
|
+
publicMessage: ""
|
|
36
|
+
};
|
|
37
|
+
}
|
|
32
38
|
function blockedDemoMutationPolicy(classification, publicMessage) {
|
|
33
39
|
if (publicMessage.trim() === "") throw new Error(`Demo mutation policy ${classification} requires publicMessage.`);
|
|
34
40
|
return {
|
|
@@ -56,6 +62,7 @@ const TAG_TEMPLATES = {
|
|
|
56
62
|
siteRouteOutcomes: "riverbank:site:{siteId}:route-outcomes",
|
|
57
63
|
routeById: "riverbank:route:{routeId}",
|
|
58
64
|
pageById: "riverbank:page:{pageId}",
|
|
65
|
+
pageSurfaceById: "riverbank:page-surface:{pageSurfaceId}",
|
|
59
66
|
workflowRunById: "riverbank:workflow-run:{runId}",
|
|
60
67
|
siteForms: "riverbank:site:{siteId}:forms",
|
|
61
68
|
formById: "riverbank:form:{formId}",
|
|
@@ -81,6 +88,7 @@ const TAG_TEMPLATES = {
|
|
|
81
88
|
const DEMO_MUTATION_BLOCKED_HIDDEN = blockedDemoMutationPolicy("blocked-hidden", "This action is not available in demo sites.");
|
|
82
89
|
const DEMO_MUTATION_BLOCKED_DISABLED = blockedDemoMutationPolicy("blocked-disabled", "This setting is disabled in demo sites.");
|
|
83
90
|
const DEMO_MUTATION_INTERNAL_ONLY = blockedDemoMutationPolicy("internal-only", "This internal operation is not available in demo sites.");
|
|
91
|
+
const DEMO_MUTATION_ALLOWED = allowedDemoMutationPolicy();
|
|
84
92
|
const API_ENDPOINTS = {
|
|
85
93
|
aiContentUpdateChat: {
|
|
86
94
|
path: "/ai/content-update-chat",
|
|
@@ -2219,6 +2227,49 @@ const API_ENDPOINTS = {
|
|
|
2219
2227
|
auth: "user",
|
|
2220
2228
|
responseKind: "json"
|
|
2221
2229
|
},
|
|
2230
|
+
updatePageSurfaceDraftContent: {
|
|
2231
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/content",
|
|
2232
|
+
method: "PUT",
|
|
2233
|
+
errors: [
|
|
2234
|
+
"validation:invalid_input",
|
|
2235
|
+
"resource:not_found",
|
|
2236
|
+
"resource:conflict",
|
|
2237
|
+
"server:internal_error"
|
|
2238
|
+
],
|
|
2239
|
+
tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById],
|
|
2240
|
+
auth: "user",
|
|
2241
|
+
responseKind: "json"
|
|
2242
|
+
},
|
|
2243
|
+
discardPageSurfaceDraftContent: {
|
|
2244
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/content/draft",
|
|
2245
|
+
method: "DELETE",
|
|
2246
|
+
errors: [
|
|
2247
|
+
"validation:invalid_input",
|
|
2248
|
+
"resource:not_found",
|
|
2249
|
+
"resource:conflict",
|
|
2250
|
+
"server:internal_error"
|
|
2251
|
+
],
|
|
2252
|
+
tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById],
|
|
2253
|
+
auth: "user",
|
|
2254
|
+
responseKind: "json"
|
|
2255
|
+
},
|
|
2256
|
+
updatePageSurfaceRouteMetadata: {
|
|
2257
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/metadata",
|
|
2258
|
+
method: "PATCH",
|
|
2259
|
+
errors: [
|
|
2260
|
+
"validation:invalid_input",
|
|
2261
|
+
"resource:not_found",
|
|
2262
|
+
"resource:conflict",
|
|
2263
|
+
"server:internal_error"
|
|
2264
|
+
],
|
|
2265
|
+
tags: [
|
|
2266
|
+
TAG_TEMPLATES.siteCollection,
|
|
2267
|
+
TAG_TEMPLATES.siteRoutableContent,
|
|
2268
|
+
TAG_TEMPLATES.pageSurfaceById
|
|
2269
|
+
],
|
|
2270
|
+
auth: "user",
|
|
2271
|
+
responseKind: "json"
|
|
2272
|
+
},
|
|
2222
2273
|
runSdkWorkflow: {
|
|
2223
2274
|
path: "/sites/{siteId}/content/{type}/{entryId}/workflows/{workflowId}/run",
|
|
2224
2275
|
method: "POST",
|
|
@@ -2599,6 +2650,50 @@ const API_ENDPOINTS = {
|
|
|
2599
2650
|
errors: [],
|
|
2600
2651
|
responseKind: "json"
|
|
2601
2652
|
},
|
|
2653
|
+
getFooterComposition: {
|
|
2654
|
+
path: "/sites/{siteId}/settings/footer-composition",
|
|
2655
|
+
method: "GET",
|
|
2656
|
+
revalidate: 120,
|
|
2657
|
+
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings],
|
|
2658
|
+
auth: "user",
|
|
2659
|
+
errors: ["resource:not_found", "server:internal_error"],
|
|
2660
|
+
responseKind: "json"
|
|
2661
|
+
},
|
|
2662
|
+
updateFooterComposition: {
|
|
2663
|
+
path: "/sites/{siteId}/settings/footer-composition",
|
|
2664
|
+
method: "POST",
|
|
2665
|
+
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings],
|
|
2666
|
+
auth: "user",
|
|
2667
|
+
demoMutation: DEMO_MUTATION_ALLOWED,
|
|
2668
|
+
errors: [
|
|
2669
|
+
"validation:invalid_input",
|
|
2670
|
+
"resource:not_found",
|
|
2671
|
+
"server:internal_error"
|
|
2672
|
+
],
|
|
2673
|
+
responseKind: "json"
|
|
2674
|
+
},
|
|
2675
|
+
getPublicProfile: {
|
|
2676
|
+
path: "/sites/{siteId}/settings/public-profile",
|
|
2677
|
+
method: "GET",
|
|
2678
|
+
revalidate: 120,
|
|
2679
|
+
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings],
|
|
2680
|
+
auth: "user",
|
|
2681
|
+
errors: ["resource:not_found", "server:internal_error"],
|
|
2682
|
+
responseKind: "json"
|
|
2683
|
+
},
|
|
2684
|
+
updatePublicProfile: {
|
|
2685
|
+
path: "/sites/{siteId}/settings/public-profile",
|
|
2686
|
+
method: "POST",
|
|
2687
|
+
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings],
|
|
2688
|
+
auth: "user",
|
|
2689
|
+
demoMutation: DEMO_MUTATION_ALLOWED,
|
|
2690
|
+
errors: [
|
|
2691
|
+
"validation:invalid_input",
|
|
2692
|
+
"resource:not_found",
|
|
2693
|
+
"server:internal_error"
|
|
2694
|
+
],
|
|
2695
|
+
responseKind: "json"
|
|
2696
|
+
},
|
|
2602
2697
|
updateSiteLayoutSettings: {
|
|
2603
2698
|
path: "/sites/{siteId}/settings/layout",
|
|
2604
2699
|
method: "POST",
|
|
@@ -3671,6 +3766,76 @@ const API_ENDPOINTS = {
|
|
|
3671
3766
|
responseKind: "json",
|
|
3672
3767
|
errors: ["resource:not_found"]
|
|
3673
3768
|
},
|
|
3769
|
+
listPageSurfaceContentSlots: {
|
|
3770
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/slots",
|
|
3771
|
+
method: "GET",
|
|
3772
|
+
tags: [
|
|
3773
|
+
TAG_TEMPLATES.siteCollection,
|
|
3774
|
+
TAG_TEMPLATES.pageSurfaceById,
|
|
3775
|
+
"surface-slots",
|
|
3776
|
+
"blocks"
|
|
3777
|
+
],
|
|
3778
|
+
auth: "user",
|
|
3779
|
+
responseKind: "json",
|
|
3780
|
+
errors: [
|
|
3781
|
+
"resource:not_found",
|
|
3782
|
+
"resource:conflict",
|
|
3783
|
+
"server:internal_error"
|
|
3784
|
+
]
|
|
3785
|
+
},
|
|
3786
|
+
createPageSurfaceSlotBlock: {
|
|
3787
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/slots/{slotKey}/blocks",
|
|
3788
|
+
method: "POST",
|
|
3789
|
+
tags: [
|
|
3790
|
+
TAG_TEMPLATES.siteCollection,
|
|
3791
|
+
TAG_TEMPLATES.pageSurfaceById,
|
|
3792
|
+
"surface-slot-{slotKey}",
|
|
3793
|
+
"blocks"
|
|
3794
|
+
],
|
|
3795
|
+
auth: "user",
|
|
3796
|
+
responseKind: "json",
|
|
3797
|
+
errors: [
|
|
3798
|
+
"validation:invalid_input",
|
|
3799
|
+
"resource:not_found",
|
|
3800
|
+
"resource:conflict",
|
|
3801
|
+
"server:internal_error"
|
|
3802
|
+
]
|
|
3803
|
+
},
|
|
3804
|
+
reorderPageSurfaceSlotBlocks: {
|
|
3805
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/slots/{slotKey}/blocks/reorder",
|
|
3806
|
+
method: "POST",
|
|
3807
|
+
tags: [
|
|
3808
|
+
TAG_TEMPLATES.siteCollection,
|
|
3809
|
+
TAG_TEMPLATES.pageSurfaceById,
|
|
3810
|
+
"surface-slot-{slotKey}",
|
|
3811
|
+
"blocks"
|
|
3812
|
+
],
|
|
3813
|
+
auth: "user",
|
|
3814
|
+
responseKind: "json",
|
|
3815
|
+
errors: [
|
|
3816
|
+
"validation:invalid_input",
|
|
3817
|
+
"resource:not_found",
|
|
3818
|
+
"resource:conflict",
|
|
3819
|
+
"server:internal_error"
|
|
3820
|
+
]
|
|
3821
|
+
},
|
|
3822
|
+
deletePageSurfaceSlotBlock: {
|
|
3823
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/slots/{slotKey}/blocks/{blockId}",
|
|
3824
|
+
method: "DELETE",
|
|
3825
|
+
tags: [
|
|
3826
|
+
TAG_TEMPLATES.siteCollection,
|
|
3827
|
+
TAG_TEMPLATES.pageSurfaceById,
|
|
3828
|
+
"surface-slot-{slotKey}",
|
|
3829
|
+
"blocks"
|
|
3830
|
+
],
|
|
3831
|
+
auth: "user",
|
|
3832
|
+
responseKind: "json",
|
|
3833
|
+
errors: [
|
|
3834
|
+
"resource:not_found",
|
|
3835
|
+
"resource:conflict",
|
|
3836
|
+
"server:internal_error"
|
|
3837
|
+
]
|
|
3838
|
+
},
|
|
3674
3839
|
createBlock: {
|
|
3675
3840
|
path: "/sites/{siteId}/pages/{pageId}/blocks",
|
|
3676
3841
|
method: "POST",
|
|
@@ -6283,6 +6448,19 @@ const API_ENDPOINTS = {
|
|
|
6283
6448
|
auth: "service",
|
|
6284
6449
|
responseKind: "json"
|
|
6285
6450
|
},
|
|
6451
|
+
sdkPatchPageBlock: {
|
|
6452
|
+
path: "/sdk/{siteId}/pages/{identifier}/blocks/{blockIdentifier}",
|
|
6453
|
+
method: "PATCH",
|
|
6454
|
+
errors: [
|
|
6455
|
+
"validation:invalid_input",
|
|
6456
|
+
"resource:not_found",
|
|
6457
|
+
"resource:conflict",
|
|
6458
|
+
"billing:plan_limit_exceeded",
|
|
6459
|
+
"server:internal_error"
|
|
6460
|
+
],
|
|
6461
|
+
auth: "service",
|
|
6462
|
+
responseKind: "json"
|
|
6463
|
+
},
|
|
6286
6464
|
sdkReorderPageBlocks: {
|
|
6287
6465
|
path: "/sdk/{siteId}/pages/{identifier}/blocks/reorder",
|
|
6288
6466
|
method: "POST",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as usePreviewLayout, i as useOptionalPreviewLayout, n as createPreviewQueryClient, r as PreviewLayoutProvider, t as PreviewQueryProvider } from "../../PreviewQueryProvider-
|
|
2
|
+
import { a as usePreviewLayout, i as useOptionalPreviewLayout, n as createPreviewQueryClient, r as PreviewLayoutProvider, t as PreviewQueryProvider } from "../../PreviewQueryProvider-RRu7wyQ5.mjs";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/preview-next/client/runtime.tsx
|
|
6
6
|
const LazySdkPreviewMode = React.lazy(async () => {
|
|
7
|
-
return { default: (await import("../../SdkPreviewModeRuntime-
|
|
7
|
+
return { default: (await import("../../SdkPreviewModeRuntime-CuDjXH6o.mjs").then((n) => n.n)).SdkPreviewModeRuntime };
|
|
8
8
|
});
|
|
9
9
|
const LazyPreviewShell = React.lazy(async () => {
|
|
10
|
-
return { default: (await import("../../sdk-runtime-
|
|
10
|
+
return { default: (await import("../../sdk-runtime-MBzD-GmP.mjs")).PreviewShell };
|
|
11
11
|
});
|
|
12
12
|
const LazyPreviewShellLayout = React.lazy(async () => {
|
|
13
|
-
return { default: (await import("../../sdk-runtime-
|
|
13
|
+
return { default: (await import("../../sdk-runtime-MBzD-GmP.mjs")).PreviewShellLayout };
|
|
14
14
|
});
|
|
15
15
|
function SdkPreviewMode(props) {
|
|
16
16
|
return /* @__PURE__ */ jsx(React.Suspense, {
|
|
@@ -31,6 +31,12 @@ function setPreviewAuthCookies(res, { accessToken, refreshToken }, options) {
|
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region ../api/src/apiEndpointTypes.ts
|
|
34
|
+
function allowedDemoMutationPolicy() {
|
|
35
|
+
return {
|
|
36
|
+
classification: "allowed",
|
|
37
|
+
publicMessage: ""
|
|
38
|
+
};
|
|
39
|
+
}
|
|
34
40
|
function blockedDemoMutationPolicy(classification, publicMessage) {
|
|
35
41
|
if (publicMessage.trim() === "") throw new Error(`Demo mutation policy ${classification} requires publicMessage.`);
|
|
36
42
|
return {
|
|
@@ -58,6 +64,7 @@ const TAG_TEMPLATES = {
|
|
|
58
64
|
siteRouteOutcomes: "riverbank:site:{siteId}:route-outcomes",
|
|
59
65
|
routeById: "riverbank:route:{routeId}",
|
|
60
66
|
pageById: "riverbank:page:{pageId}",
|
|
67
|
+
pageSurfaceById: "riverbank:page-surface:{pageSurfaceId}",
|
|
61
68
|
workflowRunById: "riverbank:workflow-run:{runId}",
|
|
62
69
|
siteForms: "riverbank:site:{siteId}:forms",
|
|
63
70
|
formById: "riverbank:form:{formId}",
|
|
@@ -83,6 +90,7 @@ const TAG_TEMPLATES = {
|
|
|
83
90
|
const DEMO_MUTATION_BLOCKED_HIDDEN = blockedDemoMutationPolicy("blocked-hidden", "This action is not available in demo sites.");
|
|
84
91
|
const DEMO_MUTATION_BLOCKED_DISABLED = blockedDemoMutationPolicy("blocked-disabled", "This setting is disabled in demo sites.");
|
|
85
92
|
const DEMO_MUTATION_INTERNAL_ONLY = blockedDemoMutationPolicy("internal-only", "This internal operation is not available in demo sites.");
|
|
93
|
+
const DEMO_MUTATION_ALLOWED = allowedDemoMutationPolicy();
|
|
86
94
|
const API_ENDPOINTS = {
|
|
87
95
|
aiContentUpdateChat: {
|
|
88
96
|
path: "/ai/content-update-chat",
|
|
@@ -2221,6 +2229,49 @@ const API_ENDPOINTS = {
|
|
|
2221
2229
|
auth: "user",
|
|
2222
2230
|
responseKind: "json"
|
|
2223
2231
|
},
|
|
2232
|
+
updatePageSurfaceDraftContent: {
|
|
2233
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/content",
|
|
2234
|
+
method: "PUT",
|
|
2235
|
+
errors: [
|
|
2236
|
+
"validation:invalid_input",
|
|
2237
|
+
"resource:not_found",
|
|
2238
|
+
"resource:conflict",
|
|
2239
|
+
"server:internal_error"
|
|
2240
|
+
],
|
|
2241
|
+
tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById],
|
|
2242
|
+
auth: "user",
|
|
2243
|
+
responseKind: "json"
|
|
2244
|
+
},
|
|
2245
|
+
discardPageSurfaceDraftContent: {
|
|
2246
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/content/draft",
|
|
2247
|
+
method: "DELETE",
|
|
2248
|
+
errors: [
|
|
2249
|
+
"validation:invalid_input",
|
|
2250
|
+
"resource:not_found",
|
|
2251
|
+
"resource:conflict",
|
|
2252
|
+
"server:internal_error"
|
|
2253
|
+
],
|
|
2254
|
+
tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById],
|
|
2255
|
+
auth: "user",
|
|
2256
|
+
responseKind: "json"
|
|
2257
|
+
},
|
|
2258
|
+
updatePageSurfaceRouteMetadata: {
|
|
2259
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/metadata",
|
|
2260
|
+
method: "PATCH",
|
|
2261
|
+
errors: [
|
|
2262
|
+
"validation:invalid_input",
|
|
2263
|
+
"resource:not_found",
|
|
2264
|
+
"resource:conflict",
|
|
2265
|
+
"server:internal_error"
|
|
2266
|
+
],
|
|
2267
|
+
tags: [
|
|
2268
|
+
TAG_TEMPLATES.siteCollection,
|
|
2269
|
+
TAG_TEMPLATES.siteRoutableContent,
|
|
2270
|
+
TAG_TEMPLATES.pageSurfaceById
|
|
2271
|
+
],
|
|
2272
|
+
auth: "user",
|
|
2273
|
+
responseKind: "json"
|
|
2274
|
+
},
|
|
2224
2275
|
runSdkWorkflow: {
|
|
2225
2276
|
path: "/sites/{siteId}/content/{type}/{entryId}/workflows/{workflowId}/run",
|
|
2226
2277
|
method: "POST",
|
|
@@ -2601,6 +2652,50 @@ const API_ENDPOINTS = {
|
|
|
2601
2652
|
errors: [],
|
|
2602
2653
|
responseKind: "json"
|
|
2603
2654
|
},
|
|
2655
|
+
getFooterComposition: {
|
|
2656
|
+
path: "/sites/{siteId}/settings/footer-composition",
|
|
2657
|
+
method: "GET",
|
|
2658
|
+
revalidate: 120,
|
|
2659
|
+
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings],
|
|
2660
|
+
auth: "user",
|
|
2661
|
+
errors: ["resource:not_found", "server:internal_error"],
|
|
2662
|
+
responseKind: "json"
|
|
2663
|
+
},
|
|
2664
|
+
updateFooterComposition: {
|
|
2665
|
+
path: "/sites/{siteId}/settings/footer-composition",
|
|
2666
|
+
method: "POST",
|
|
2667
|
+
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings],
|
|
2668
|
+
auth: "user",
|
|
2669
|
+
demoMutation: DEMO_MUTATION_ALLOWED,
|
|
2670
|
+
errors: [
|
|
2671
|
+
"validation:invalid_input",
|
|
2672
|
+
"resource:not_found",
|
|
2673
|
+
"server:internal_error"
|
|
2674
|
+
],
|
|
2675
|
+
responseKind: "json"
|
|
2676
|
+
},
|
|
2677
|
+
getPublicProfile: {
|
|
2678
|
+
path: "/sites/{siteId}/settings/public-profile",
|
|
2679
|
+
method: "GET",
|
|
2680
|
+
revalidate: 120,
|
|
2681
|
+
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings],
|
|
2682
|
+
auth: "user",
|
|
2683
|
+
errors: ["resource:not_found", "server:internal_error"],
|
|
2684
|
+
responseKind: "json"
|
|
2685
|
+
},
|
|
2686
|
+
updatePublicProfile: {
|
|
2687
|
+
path: "/sites/{siteId}/settings/public-profile",
|
|
2688
|
+
method: "POST",
|
|
2689
|
+
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings],
|
|
2690
|
+
auth: "user",
|
|
2691
|
+
demoMutation: DEMO_MUTATION_ALLOWED,
|
|
2692
|
+
errors: [
|
|
2693
|
+
"validation:invalid_input",
|
|
2694
|
+
"resource:not_found",
|
|
2695
|
+
"server:internal_error"
|
|
2696
|
+
],
|
|
2697
|
+
responseKind: "json"
|
|
2698
|
+
},
|
|
2604
2699
|
updateSiteLayoutSettings: {
|
|
2605
2700
|
path: "/sites/{siteId}/settings/layout",
|
|
2606
2701
|
method: "POST",
|
|
@@ -3673,6 +3768,76 @@ const API_ENDPOINTS = {
|
|
|
3673
3768
|
responseKind: "json",
|
|
3674
3769
|
errors: ["resource:not_found"]
|
|
3675
3770
|
},
|
|
3771
|
+
listPageSurfaceContentSlots: {
|
|
3772
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/slots",
|
|
3773
|
+
method: "GET",
|
|
3774
|
+
tags: [
|
|
3775
|
+
TAG_TEMPLATES.siteCollection,
|
|
3776
|
+
TAG_TEMPLATES.pageSurfaceById,
|
|
3777
|
+
"surface-slots",
|
|
3778
|
+
"blocks"
|
|
3779
|
+
],
|
|
3780
|
+
auth: "user",
|
|
3781
|
+
responseKind: "json",
|
|
3782
|
+
errors: [
|
|
3783
|
+
"resource:not_found",
|
|
3784
|
+
"resource:conflict",
|
|
3785
|
+
"server:internal_error"
|
|
3786
|
+
]
|
|
3787
|
+
},
|
|
3788
|
+
createPageSurfaceSlotBlock: {
|
|
3789
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/slots/{slotKey}/blocks",
|
|
3790
|
+
method: "POST",
|
|
3791
|
+
tags: [
|
|
3792
|
+
TAG_TEMPLATES.siteCollection,
|
|
3793
|
+
TAG_TEMPLATES.pageSurfaceById,
|
|
3794
|
+
"surface-slot-{slotKey}",
|
|
3795
|
+
"blocks"
|
|
3796
|
+
],
|
|
3797
|
+
auth: "user",
|
|
3798
|
+
responseKind: "json",
|
|
3799
|
+
errors: [
|
|
3800
|
+
"validation:invalid_input",
|
|
3801
|
+
"resource:not_found",
|
|
3802
|
+
"resource:conflict",
|
|
3803
|
+
"server:internal_error"
|
|
3804
|
+
]
|
|
3805
|
+
},
|
|
3806
|
+
reorderPageSurfaceSlotBlocks: {
|
|
3807
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/slots/{slotKey}/blocks/reorder",
|
|
3808
|
+
method: "POST",
|
|
3809
|
+
tags: [
|
|
3810
|
+
TAG_TEMPLATES.siteCollection,
|
|
3811
|
+
TAG_TEMPLATES.pageSurfaceById,
|
|
3812
|
+
"surface-slot-{slotKey}",
|
|
3813
|
+
"blocks"
|
|
3814
|
+
],
|
|
3815
|
+
auth: "user",
|
|
3816
|
+
responseKind: "json",
|
|
3817
|
+
errors: [
|
|
3818
|
+
"validation:invalid_input",
|
|
3819
|
+
"resource:not_found",
|
|
3820
|
+
"resource:conflict",
|
|
3821
|
+
"server:internal_error"
|
|
3822
|
+
]
|
|
3823
|
+
},
|
|
3824
|
+
deletePageSurfaceSlotBlock: {
|
|
3825
|
+
path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/slots/{slotKey}/blocks/{blockId}",
|
|
3826
|
+
method: "DELETE",
|
|
3827
|
+
tags: [
|
|
3828
|
+
TAG_TEMPLATES.siteCollection,
|
|
3829
|
+
TAG_TEMPLATES.pageSurfaceById,
|
|
3830
|
+
"surface-slot-{slotKey}",
|
|
3831
|
+
"blocks"
|
|
3832
|
+
],
|
|
3833
|
+
auth: "user",
|
|
3834
|
+
responseKind: "json",
|
|
3835
|
+
errors: [
|
|
3836
|
+
"resource:not_found",
|
|
3837
|
+
"resource:conflict",
|
|
3838
|
+
"server:internal_error"
|
|
3839
|
+
]
|
|
3840
|
+
},
|
|
3676
3841
|
createBlock: {
|
|
3677
3842
|
path: "/sites/{siteId}/pages/{pageId}/blocks",
|
|
3678
3843
|
method: "POST",
|
|
@@ -6285,6 +6450,19 @@ const API_ENDPOINTS = {
|
|
|
6285
6450
|
auth: "service",
|
|
6286
6451
|
responseKind: "json"
|
|
6287
6452
|
},
|
|
6453
|
+
sdkPatchPageBlock: {
|
|
6454
|
+
path: "/sdk/{siteId}/pages/{identifier}/blocks/{blockIdentifier}",
|
|
6455
|
+
method: "PATCH",
|
|
6456
|
+
errors: [
|
|
6457
|
+
"validation:invalid_input",
|
|
6458
|
+
"resource:not_found",
|
|
6459
|
+
"resource:conflict",
|
|
6460
|
+
"billing:plan_limit_exceeded",
|
|
6461
|
+
"server:internal_error"
|
|
6462
|
+
],
|
|
6463
|
+
auth: "service",
|
|
6464
|
+
responseKind: "json"
|
|
6465
|
+
},
|
|
6288
6466
|
sdkReorderPageBlocks: {
|
|
6289
6467
|
path: "/sdk/{siteId}/pages/{identifier}/blocks/reorder",
|
|
6290
6468
|
method: "POST",
|