@riverbankcms/sdk 0.136.0 → 0.137.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/CHANGELOG.md +101 -0
- package/dist/{PreviewEditorSidebar-BU5ZlhQR.mjs → PreviewEditorSidebar-Bn6cONPa.mjs} +8 -8
- package/dist/{PreviewEditorUI-9XkHL-bC.mjs → PreviewEditorUI-LAwXZPSx.mjs} +3 -3
- package/dist/{PreviewQueryProvider-wbEpXryy.mjs → PreviewQueryProvider-ztQUdsNo.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-CnWmj-2B.mjs → SdkPreviewModeRuntime-BbbGsI_v.mjs} +596 -164
- package/dist/{SiteChromeCustomizeContext-B6d5zkog.mjs → SiteChromeCustomizeContext-BbkNSt5a.mjs} +2888 -1404
- package/dist/_dts/ai/src/contracts/proposals.d.ts +12 -298
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +21 -14
- package/dist/_dts/ai/src/designer/themePatch.d.ts +5 -10
- package/dist/_dts/api/src/accessAdmin.d.ts +1 -9
- package/dist/_dts/api/src/accountApi.d.ts +49 -2
- package/dist/_dts/api/src/contentRuntime.d.ts +1 -4
- package/dist/_dts/api/src/domainConnection.d.ts +41 -0
- package/dist/_dts/api/src/endpoints.d.ts +194 -181
- package/dist/_dts/api/src/index.d.ts +4 -3
- package/dist/_dts/api/src/media.d.ts +19 -2
- package/dist/_dts/api/src/sdkContracts.d.ts +2 -15
- package/dist/_dts/api/src/sdkMediaContracts.d.ts +40 -0
- package/dist/_dts/api/src/sdkMediaEndpointDefinitions.d.ts +61 -0
- package/dist/_dts/api/src/sdkThemeWire.d.ts +15 -4
- package/dist/_dts/api/src/siteInfrastructure.d.ts +17 -23
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +7 -21
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +27 -3
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +37 -17
- package/dist/_dts/api/src/types.d.ts +1 -1
- package/dist/_dts/blocks/src/PageRenderer.d.ts +2 -2
- package/dist/_dts/blocks/src/index.d.ts +1 -1
- package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +9 -0
- package/dist/_dts/blocks/src/pageRendererBlockSupport.d.ts +75 -0
- package/dist/_dts/blocks/src/pageRendererBoundaries.d.ts +2 -0
- package/dist/_dts/blocks/src/server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +34 -22
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/ErrorStep.d.ts +3 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorPresentation.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.d.ts +25 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationWizardContext.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +7 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +5 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useWaitlistClaimRestoration.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/capacity.d.ts +164 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/cta.d.ts +29 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/dates.d.ts +47 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/index.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/people.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/pricing.d.ts +31 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/OfferingTitle.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekAgendaView.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekBoardView.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/index.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/listingLayout.d.ts +23 -0
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +57 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +1 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +8 -40
- package/dist/_dts/db/src/index.d.ts +1 -0
- package/dist/_dts/db/src/utils/postgrestFilter.d.ts +2 -0
- package/dist/_dts/media-core/src/bulkDeletePlanning.d.ts +4 -0
- package/dist/_dts/media-core/src/fileDomain.d.ts +3 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlSaveRequest.d.ts +51 -0
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +24 -2
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +23 -1
- package/dist/_dts/preview-next/src/client/preview/usePersistedHeaderPreferences.d.ts +8 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +2 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/gradients/types.d.ts +5 -0
- package/dist/_dts/theme-core/src/header/interactionPalette.d.ts +25 -2
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +3 -3
- package/dist/_dts/theme-core/src/schema.d.ts +12 -11
- package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +43 -3
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +10 -0
- package/dist/_dts/theme-core/src/site-styles/headerBrandPresentation.d.ts +63 -0
- package/dist/_dts/theme-core/src/site-styles/headerBytesComparison.d.ts +30 -0
- package/dist/_dts/theme-core/src/site-styles/headerInteractionPalette.d.ts +50 -1
- package/dist/_dts/theme-core/src/site-styles/headerLayoutCatalog.d.ts +48 -9
- package/dist/_dts/theme-core/src/site-styles/headerPreferences.d.ts +162 -0
- package/dist/_dts/theme-core/src/site-styles/headerPreferencesPersistence.d.ts +73 -0
- package/dist/_dts/theme-core/src/site-styles/headerRecompile.d.ts +118 -0
- package/dist/_dts/theme-core/src/site-styles/headerStyleCompiler.d.ts +10 -1
- package/dist/_dts/theme-core/src/site-styles/headerStyleDefaults.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/headerStyleRecipe.d.ts +7 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +5 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/siteChromeBackgrounds.d.ts +20 -1
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +43 -2
- package/dist/client/{BookingConsentAgreement-DCch21a6.mjs → BookingConsentAgreement--_fUCZe-.mjs} +2 -2
- package/dist/client/{DiscountCodeDisclosure-DIj1T59K.mjs → DiscountCodeDisclosure-BMipSoDJ.mjs} +1 -1
- package/dist/client/{EventCombined.client-BWVNlXTx.mjs → EventCombined.client-CwJOxn7A.mjs} +154 -178
- package/dist/client/{EventListing.client-DVFCDe3i.mjs → EventListing.client-eVwiylPW.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-BY5mIHw9.mjs → LeafletStaticMap-IKenna5u.mjs} +1 -1
- package/dist/client/{accordion-CK29E8rG.mjs → accordion-MGAO3PuE.mjs} +1 -1
- package/dist/client/{bookingForm-DFvnet-N.mjs → bookingForm-CudlQPUu.mjs} +5 -5
- package/dist/client/bookings.mjs +418 -79
- package/dist/client/capacity-BW00PO7s.mjs +271 -0
- package/dist/client/{carousel-BVU5NQlb.mjs → carousel-BrbGJ2Jl.mjs} +1 -1
- package/dist/client/{cart-BNItcZVa.mjs → cart-Bq5eU0xZ.mjs} +3 -3
- package/dist/client/{checkout-Bu6iCdkP.mjs → checkout-BAFVRdrK.mjs} +3 -3
- package/dist/client/client.mjs +2919 -1918
- package/dist/client/{context-BImarOAq.mjs → context-DCkiHVdD.mjs} +8 -5
- package/dist/client/dates-2RPXHQy4.mjs +264 -0
- package/dist/client/{eventCalendar-DS2h-UXD.mjs → eventCalendar-B0O-hPF7.mjs} +10 -17
- package/dist/client/{eventCombined-Drt4Oq9p.mjs → eventCombined-DCkDaoDI.mjs} +3 -3
- package/dist/client/{eventDetails-Bl2vWgTX.mjs → eventDetails-D8GG2dnD.mjs} +5 -3
- package/dist/client/{eventListing-CS7PHY7v.mjs → eventListing-3ssV_bxz.mjs} +3 -3
- package/dist/client/{eventRegistration-D-j8eNy2.mjs → eventRegistration-bPQo3kVw.mjs} +562 -309
- package/dist/client/{form-RMpoLTyr.mjs → form-qMv8RDkk.mjs} +2 -2
- package/dist/client/{headerSection-BYE3Lb3k.mjs → headerSection-CH0Sc5hX.mjs} +2 -2
- package/dist/client/hooks.mjs +289 -32
- package/dist/client/{locationMap-BxSr7Kkh.mjs → locationMap-0_xlBnNI.mjs} +2 -2
- package/dist/client/{newsletterForm-DerbXwFC.mjs → newsletterForm-NUW7m9RI.mjs} +2 -2
- package/dist/client/{productDetail-4SZCLhAf.mjs → productDetail-FBEOM7jW.mjs} +3 -3
- package/dist/client/{productList-D7AP4GNq.mjs → productList-R0OSGhnn.mjs} +3 -3
- package/dist/client/{propsDecoder-pzBeCh14.mjs → propsDecoder-pYvx_Srl.mjs} +88 -380
- package/dist/client/rendering/client.mjs +2616 -1637
- package/dist/client/rendering/islands.mjs +17 -17
- package/dist/client/rendering.mjs +2710 -1702
- package/dist/client/{scrollToBlock-CduAKf8T.mjs → scrollToBlock-ByQv96M2.mjs} +1 -1
- package/dist/client/{shop-Cp5p_kGe.mjs → shop-RUG9DmRE.mjs} +6 -6
- package/dist/client/{shop-commerce-DicXYaYX.mjs → shop-commerce-B76Jz23B.mjs} +5 -5
- package/dist/client/{shop-commerce-store-CGWnpY4K.mjs → shop-commerce-store-QuQNdDsD.mjs} +1 -1
- package/dist/client/{shopShared-BDf9ljkm.mjs → shopShared-vXU1omwJ.mjs} +3 -3
- package/dist/client/{useEventFilters-DeeyGYuk.mjs → useEventFilters-ByuU6HLA.mjs} +33 -18
- package/dist/preview-next/before-render.mjs +79 -51
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/keepAlive.mjs +79 -51
- package/dist/preview-next/middleware.mjs +79 -51
- package/dist/{previewAuthStore-DbqBol0V.mjs → previewAuthStore-L_cKW8Sb.mjs} +79 -51
- package/dist/{sdk-runtime-19MO27F0.mjs → sdk-runtime-sUMr5d70.mjs} +2 -2
- package/dist/{separator-DaPLtJ1f.mjs → separator-BIHkie5i.mjs} +1 -1
- package/dist/server/components.mjs +2077 -1274
- package/dist/server/config-validation.mjs +289 -32
- package/dist/server/config.mjs +289 -32
- package/dist/server/data.mjs +289 -32
- package/dist/server/index.mjs +80 -52
- package/dist/server/next.mjs +1822 -1111
- package/dist/server/page-converter.mjs +167 -31
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1988 -1286
- package/dist/server/rendering.mjs +1943 -1182
- package/dist/server/routing.mjs +351 -86
- package/dist/server/server.mjs +293 -128
- package/dist/server/theme-bridge.mjs +52 -8
- package/dist/server/theme.mjs +27 -8
- package/dist/styles/index.css +15 -0
- package/package.json +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCapacity.d.ts +0 -48
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/pricing.d.ts +0 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +0 -100
- /package/dist/_dts/blocks/src/system/runtime/nodes/events/{shared → domain}/destination.d.ts +0 -0
|
@@ -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-BMipSoDJ.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,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { n as useBlockApi } from "./context-
|
|
4
|
-
import { a as CheckIcon, i as StateIcon, n as useDiscountCodeUi, r as TerminalPanel, t as scrollToBlock } from "./scrollToBlock-
|
|
5
|
-
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-
|
|
2
|
+
import { X as themeButtonClassName, o as formatCommercePrice, qt as assertNever$1, s as formatInterval, t as defineIslandPropsDecoder, yt as assertNever } from "./propsDecoder-pYvx_Srl.mjs";
|
|
3
|
+
import { n as useBlockApi } from "./context-DCkiHVdD.mjs";
|
|
4
|
+
import { a as CheckIcon, i as StateIcon, n as useDiscountCodeUi, r as TerminalPanel, t as scrollToBlock } from "./scrollToBlock-ByQv96M2.mjs";
|
|
5
|
+
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-BMipSoDJ.mjs";
|
|
6
6
|
import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
|
|
7
7
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-AGs4cE7t.mjs";
|
|
8
8
|
import { n as consumeSearchParams } from "./urlParams-D71VXFGx.mjs";
|
|
9
9
|
import { t as CrossIcon } from "./CrossIcon-Dn1KRKW5.mjs";
|
|
10
|
-
import { _ as MembershipCardView, a as getDiscountApplyFeedback, b as PassesMembershipsSectionView, 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 PassPurchaseUnavailable } from "./shopShared-
|
|
11
|
-
import { t as addPassToCommerceCart } from "./shop-commerce-store-
|
|
10
|
+
import { _ as MembershipCardView, a as getDiscountApplyFeedback, b as PassesMembershipsSectionView, 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 PassPurchaseUnavailable } from "./shopShared-vXU1omwJ.mjs";
|
|
11
|
+
import { t as addPassToCommerceCart } from "./shop-commerce-store-QuQNdDsD.mjs";
|
|
12
12
|
import { t as ModalShell } from "./ModalShell-CqkBvBIC.mjs";
|
|
13
13
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
14
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { n as useBlockApi } from "./context-
|
|
4
|
-
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-
|
|
2
|
+
import { Q as logger, X as themeButtonClassName, _t as RichTextDocSchema, a as buildProductDetailDisplay, bt as clearWorkflowFeedback, d as deriveCommerceCheckoutState, i as buildProductCardDisplay, n as getShopDisplayForItems, o as formatCommercePrice, p as productItemKey, u as buildProductCartItem, wt as reportWorkflowError, yt as assertNever } from "./propsDecoder-pYvx_Srl.mjs";
|
|
3
|
+
import { n as useBlockApi } from "./context-DCkiHVdD.mjs";
|
|
4
|
+
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-BMipSoDJ.mjs";
|
|
5
5
|
import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
|
|
6
6
|
import { n as RichText, t as buildCheckoutReturnUrls } from "./checkoutUrls-BuseL0dw.mjs";
|
|
7
7
|
import { t as consumeSearchParam } from "./urlParams-D71VXFGx.mjs";
|
|
8
8
|
import { t as CarouselNodeClient } from "./carousel.client-59G_WMr4.mjs";
|
|
9
9
|
import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-ClwHwYVA.mjs";
|
|
10
|
-
import { C as ProductGalleryFrameView, S as ProductDetailView, T as VariantSelectView, a as getDiscountApplyFeedback, 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 ProductListSectionView, x as ProductCardView } from "./shopShared-
|
|
11
|
-
import { n as useCommerceCart } from "./shop-commerce-store-
|
|
10
|
+
import { C as ProductGalleryFrameView, S as ProductDetailView, T as VariantSelectView, a as getDiscountApplyFeedback, 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 ProductListSectionView, x as ProductCardView } from "./shopShared-vXU1omwJ.mjs";
|
|
11
|
+
import { n as useCommerceCart } from "./shop-commerce-store-QuQNdDsD.mjs";
|
|
12
12
|
import * as React$1 from "react";
|
|
13
13
|
import { useEffect, useState } from "react";
|
|
14
14
|
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-pYvx_Srl.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 { E as ok, T as err } from "./colorStyles-CrxJrPjJ.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { t as BlockApiProvider } from "./context-
|
|
5
|
-
import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-
|
|
3
|
+
import { yt as assertNever } from "./propsDecoder-pYvx_Srl.mjs";
|
|
4
|
+
import { t as BlockApiProvider } from "./context-DCkiHVdD.mjs";
|
|
5
|
+
import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-BMipSoDJ.mjs";
|
|
6
6
|
import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
|
|
7
7
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
8
8
|
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-UNsfPcYq.mjs";
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { d as hexToRgb, u as relativeLuminance } from "./colorStyles-CrxJrPjJ.mjs";
|
|
3
|
-
import { A as isSemanticSpacing,
|
|
3
|
+
import { A as isSemanticSpacing, F as normalizeCsvString, I as normalizeOptionalId, J as resolveOnColorForThemeToken, K as boxBackgroundSchema, N as getEventRuntimeFiltersKey, P as normalizeCsvIds, X as themeButtonClassName, Y as resolveTokenOrCssColorValue, Z as normalizeCardRole, j as resolveSpacing, k as SEMANTIC_SPACING_VALUES, q as isCssColorLiteral, yt as assertNever, z as formatEventPrice } from "./propsDecoder-pYvx_Srl.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-BOHuueS5.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
5
|
+
import { r as formatEventRemainingPlaces } from "./capacity-BW00PO7s.mjs";
|
|
6
|
+
import { c as resolveEventCta, i as formatTime, l as resolveEventLinkProps, n as formatEventCompactDateRail, t as formatDate } from "./dates-2RPXHQy4.mjs";
|
|
7
|
+
import { n as useBlockApi } from "./context-DCkiHVdD.mjs";
|
|
8
|
+
import { t as LeafletStaticMap } from "./LeafletStaticMap-IKenna5u.mjs";
|
|
7
9
|
import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
|
|
8
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
11
|
//#region ../theme-core/src/palette/utils/textColor.ts
|
|
@@ -47,6 +49,22 @@ function clamp255(value) {
|
|
|
47
49
|
return Math.max(0, Math.min(255, value));
|
|
48
50
|
}
|
|
49
51
|
//#endregion
|
|
52
|
+
//#region ../blocks/src/system/runtime/nodes/events/domain/people.ts
|
|
53
|
+
function formatTeamMemberNames(names) {
|
|
54
|
+
const normalized = names.map((name) => name.trim()).filter(Boolean);
|
|
55
|
+
if (normalized.length === 0) return null;
|
|
56
|
+
const [firstName, secondName] = normalized;
|
|
57
|
+
if (!firstName) return null;
|
|
58
|
+
if (normalized.length === 1) return firstName;
|
|
59
|
+
if (normalized.length === 2 && secondName) return `${firstName} and ${secondName}`;
|
|
60
|
+
const finalName = normalized[normalized.length - 1] ?? "";
|
|
61
|
+
return `${normalized.slice(0, -1).join(", ")}, and ${finalName}`;
|
|
62
|
+
}
|
|
63
|
+
function formatEventTeacherLine(event) {
|
|
64
|
+
const names = formatTeamMemberNames((event.teamMembers ?? []).map((teamMember) => teamMember.name));
|
|
65
|
+
return names ? `with ${names}` : null;
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
50
68
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EmptyState.tsx
|
|
51
69
|
/**
|
|
52
70
|
* EmptyState Component
|
|
@@ -448,7 +466,6 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
|
|
|
448
466
|
const formattedDate = formatDate(event.startsAt, { timeZone });
|
|
449
467
|
const formattedTime = `${formatTime(event.startsAt, { timeZone })} - ${formatTime(event.endsAt, { timeZone })}`;
|
|
450
468
|
const cta = resolveEventCta(event, buttonText);
|
|
451
|
-
const { available: spotsLeft, isFull: isSoldOut } = getEventAvailability(event);
|
|
452
469
|
const cardClass = boxStyleClassNames({ role: cardRole }, { baseClass: "event-card" });
|
|
453
470
|
const buttonClass = themeButtonClassName({
|
|
454
471
|
variant: buttonVariant,
|
|
@@ -464,10 +481,7 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
|
|
|
464
481
|
} : null;
|
|
465
482
|
const hasImage = Boolean(showImage && image);
|
|
466
483
|
const teacherLine = formatEventTeacherLine(event);
|
|
467
|
-
const capacityText = showCapacity ?
|
|
468
|
-
isSoldOut,
|
|
469
|
-
spotsLeft
|
|
470
|
-
}) : null;
|
|
484
|
+
const capacityText = showCapacity ? formatEventRemainingPlaces(event, { full: "Sold out" }) : null;
|
|
471
485
|
return /* @__PURE__ */ jsxs("article", {
|
|
472
486
|
className: `${cardClass} group rb-flex rb-flex-col rb-h-full ${eventCardOrientationClass(orientation)}`,
|
|
473
487
|
"data-orientation": orientation,
|
|
@@ -533,7 +547,11 @@ function EventCardContent(props) {
|
|
|
533
547
|
}),
|
|
534
548
|
/* @__PURE__ */ jsx("h3", {
|
|
535
549
|
className: "card-title rb-mb-3",
|
|
536
|
-
children:
|
|
550
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
551
|
+
className: "event-title-link",
|
|
552
|
+
...resolveEventLinkProps(event),
|
|
553
|
+
children: props.title
|
|
554
|
+
})
|
|
537
555
|
}),
|
|
538
556
|
/* @__PURE__ */ jsx("div", {
|
|
539
557
|
className: "rb-mb-2 rb-caption",
|
|
@@ -610,13 +628,6 @@ function eventCardOrientationClass(orientation) {
|
|
|
610
628
|
case "vertical": return "event-card--vertical";
|
|
611
629
|
}
|
|
612
630
|
}
|
|
613
|
-
function formatCapacityText(event, options) {
|
|
614
|
-
if (event.capacity == null) return null;
|
|
615
|
-
if (options.isSoldOut) return "Sold out";
|
|
616
|
-
if (options.spotsLeft == null) return null;
|
|
617
|
-
const count = options.spotsLeft;
|
|
618
|
-
return `${count} ${count === 1 ? "spot" : "spots"} available`;
|
|
619
|
-
}
|
|
620
631
|
function getCategoryBadgeStyle(background) {
|
|
621
632
|
const normalized = background?.trim() ?? "";
|
|
622
633
|
if (!normalized) return {
|
|
@@ -1005,7 +1016,11 @@ const EventCompactRow = ({ event, buttonVariant = "primary", buttonText }) => {
|
|
|
1005
1016
|
className: "event-compact-row-content",
|
|
1006
1017
|
children: [/* @__PURE__ */ jsx("h3", {
|
|
1007
1018
|
className: "event-compact-row-title",
|
|
1008
|
-
children:
|
|
1019
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
1020
|
+
className: "event-title-link",
|
|
1021
|
+
...resolveEventLinkProps(event),
|
|
1022
|
+
children: event.title
|
|
1023
|
+
})
|
|
1009
1024
|
}), /* @__PURE__ */ jsxs("div", {
|
|
1010
1025
|
className: "event-compact-row-meta",
|
|
1011
1026
|
children: [
|
|
@@ -1638,4 +1653,4 @@ function useEventFilters({ showCategoryFilter = "auto", showVenueFilter = false,
|
|
|
1638
1653
|
};
|
|
1639
1654
|
}
|
|
1640
1655
|
//#endregion
|
|
1641
|
-
export { EventCardClient as a, EventPaginatedListView as i, useEventPagination as n, EventFilters as o, toError as r, useEventFilters as t };
|
|
1656
|
+
export { EventCardClient as a, EventPaginatedListView as i, useEventPagination as n, EventFilters as o, toError as r, formatEventTeacherLine as s, useEventFilters as t };
|
|
@@ -1626,6 +1626,83 @@ const SDK_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1626
1626
|
errors: ["validation:invalid_input", "server:internal_error"]
|
|
1627
1627
|
}
|
|
1628
1628
|
});
|
|
1629
|
+
//#endregion
|
|
1630
|
+
//#region ../api/src/sdkMediaEndpointDefinitions.ts
|
|
1631
|
+
const SDK_MEDIA_ENDPOINT_DEFINITIONS = {
|
|
1632
|
+
sdkMediaExists: {
|
|
1633
|
+
path: "/sdk/{siteId}/media/exists",
|
|
1634
|
+
method: "POST",
|
|
1635
|
+
errors: ["validation:invalid_input"],
|
|
1636
|
+
auth: "service",
|
|
1637
|
+
responseKind: "json"
|
|
1638
|
+
},
|
|
1639
|
+
sdkMediaFindByChecksum: {
|
|
1640
|
+
path: "/sdk/{siteId}/media/find-by-checksum",
|
|
1641
|
+
method: "POST",
|
|
1642
|
+
errors: ["server:internal_error"],
|
|
1643
|
+
auth: "service",
|
|
1644
|
+
responseKind: "json"
|
|
1645
|
+
},
|
|
1646
|
+
sdkMediaResolve: {
|
|
1647
|
+
path: "/sdk/{siteId}/media/resolve",
|
|
1648
|
+
method: "POST",
|
|
1649
|
+
errors: ["server:internal_error"],
|
|
1650
|
+
auth: "service",
|
|
1651
|
+
responseKind: "json"
|
|
1652
|
+
},
|
|
1653
|
+
sdkMediaList: {
|
|
1654
|
+
path: "/sdk/{siteId}/media",
|
|
1655
|
+
method: "GET",
|
|
1656
|
+
auth: "service",
|
|
1657
|
+
responseKind: "json"
|
|
1658
|
+
},
|
|
1659
|
+
sdkMediaDownload: {
|
|
1660
|
+
path: "/sdk/{siteId}/media/{identifier}/download",
|
|
1661
|
+
method: "GET",
|
|
1662
|
+
auth: "service",
|
|
1663
|
+
responseKind: "json"
|
|
1664
|
+
},
|
|
1665
|
+
sdkMediaDeletePreview: {
|
|
1666
|
+
path: "/sdk/{siteId}/media/{identifier}/delete-preview",
|
|
1667
|
+
method: "POST",
|
|
1668
|
+
auth: "service",
|
|
1669
|
+
responseKind: "json"
|
|
1670
|
+
},
|
|
1671
|
+
sdkMediaDeleteApply: {
|
|
1672
|
+
path: "/sdk/{siteId}/media/{identifier}",
|
|
1673
|
+
method: "DELETE",
|
|
1674
|
+
auth: "service",
|
|
1675
|
+
responseKind: "json"
|
|
1676
|
+
},
|
|
1677
|
+
sdkMediaUploadUrl: {
|
|
1678
|
+
path: "/sdk/{siteId}/media/upload-url",
|
|
1679
|
+
method: "POST",
|
|
1680
|
+
errors: [
|
|
1681
|
+
"resource:not_found",
|
|
1682
|
+
"validation:invalid_input",
|
|
1683
|
+
"resource:conflict",
|
|
1684
|
+
"validation:payload_too_large",
|
|
1685
|
+
"billing:plan_limit_exceeded",
|
|
1686
|
+
"server:internal_error"
|
|
1687
|
+
],
|
|
1688
|
+
auth: "service",
|
|
1689
|
+
responseKind: "json"
|
|
1690
|
+
},
|
|
1691
|
+
sdkMediaUploadFinalize: {
|
|
1692
|
+
path: "/sdk/{siteId}/media/upload",
|
|
1693
|
+
method: "POST",
|
|
1694
|
+
errors: [
|
|
1695
|
+
"resource:not_found",
|
|
1696
|
+
"validation:invalid_input",
|
|
1697
|
+
"resource:conflict",
|
|
1698
|
+
"validation:payload_too_large",
|
|
1699
|
+
"billing:plan_limit_exceeded",
|
|
1700
|
+
"server:internal_error"
|
|
1701
|
+
],
|
|
1702
|
+
auth: "service",
|
|
1703
|
+
responseKind: "json"
|
|
1704
|
+
}
|
|
1705
|
+
};
|
|
1629
1706
|
const API_ENDPOINTS = {
|
|
1630
1707
|
...ACCOUNT_ENDPOINT_DEFINITIONS,
|
|
1631
1708
|
...PUBLIC_EVENT_ENDPOINT_DEFINITIONS,
|
|
@@ -3766,26 +3843,6 @@ const API_ENDPOINTS = {
|
|
|
3766
3843
|
auth: "public",
|
|
3767
3844
|
responseKind: "json"
|
|
3768
3845
|
},
|
|
3769
|
-
createTheme: {
|
|
3770
|
-
path: "/ai/chat/create-theme",
|
|
3771
|
-
method: "POST",
|
|
3772
|
-
revalidate: 60,
|
|
3773
|
-
tags: ["theme", "ai-theme"],
|
|
3774
|
-
auth: "user",
|
|
3775
|
-
responseKind: "json"
|
|
3776
|
-
},
|
|
3777
|
-
generateThemes: {
|
|
3778
|
-
path: "/theme/generate",
|
|
3779
|
-
method: "POST",
|
|
3780
|
-
errors: [
|
|
3781
|
-
"validation:invalid_input",
|
|
3782
|
-
"resource:not_found",
|
|
3783
|
-
"server:internal_error"
|
|
3784
|
-
],
|
|
3785
|
-
tags: ["theme"],
|
|
3786
|
-
auth: "user",
|
|
3787
|
-
responseKind: "json"
|
|
3788
|
-
},
|
|
3789
3846
|
extractThemeFromInspiration: {
|
|
3790
3847
|
path: "/theme/extract-from-inspiration",
|
|
3791
3848
|
method: "POST",
|
|
@@ -3959,7 +4016,7 @@ const API_ENDPOINTS = {
|
|
|
3959
4016
|
method: "DELETE",
|
|
3960
4017
|
tags: ["media", "media-{assetId}"],
|
|
3961
4018
|
auth: "user",
|
|
3962
|
-
responseKind: "
|
|
4019
|
+
responseKind: "json"
|
|
3963
4020
|
},
|
|
3964
4021
|
mediaBulkDelete: {
|
|
3965
4022
|
path: "/media/bulk-delete",
|
|
@@ -6545,42 +6602,13 @@ const API_ENDPOINTS = {
|
|
|
6545
6602
|
auth: "user",
|
|
6546
6603
|
responseKind: "json"
|
|
6547
6604
|
},
|
|
6605
|
+
...SDK_MEDIA_ENDPOINT_DEFINITIONS,
|
|
6548
6606
|
sdkIdentifiersBackfill: {
|
|
6549
6607
|
path: "/sdk/{siteId}/identifiers/backfill",
|
|
6550
6608
|
method: "POST",
|
|
6551
6609
|
auth: "service",
|
|
6552
6610
|
responseKind: "json"
|
|
6553
6611
|
},
|
|
6554
|
-
sdkMediaExists: {
|
|
6555
|
-
path: "/sdk/{siteId}/media/exists",
|
|
6556
|
-
method: "POST",
|
|
6557
|
-
auth: "service",
|
|
6558
|
-
responseKind: "json"
|
|
6559
|
-
},
|
|
6560
|
-
sdkMediaFindByChecksum: {
|
|
6561
|
-
path: "/sdk/{siteId}/media/find-by-checksum",
|
|
6562
|
-
method: "POST",
|
|
6563
|
-
auth: "service",
|
|
6564
|
-
responseKind: "json"
|
|
6565
|
-
},
|
|
6566
|
-
sdkMediaResolve: {
|
|
6567
|
-
path: "/sdk/{siteId}/media/resolve",
|
|
6568
|
-
method: "POST",
|
|
6569
|
-
auth: "service",
|
|
6570
|
-
responseKind: "json"
|
|
6571
|
-
},
|
|
6572
|
-
sdkMediaUploadUrl: {
|
|
6573
|
-
path: "/sdk/{siteId}/media/upload-url",
|
|
6574
|
-
method: "POST",
|
|
6575
|
-
auth: "service",
|
|
6576
|
-
responseKind: "json"
|
|
6577
|
-
},
|
|
6578
|
-
sdkMediaUploadFinalize: {
|
|
6579
|
-
path: "/sdk/{siteId}/media/upload",
|
|
6580
|
-
method: "POST",
|
|
6581
|
-
auth: "service",
|
|
6582
|
-
responseKind: "json"
|
|
6583
|
-
},
|
|
6584
6612
|
sdkUpdateWorkflowRunStatus: {
|
|
6585
6613
|
path: "/sdk/{siteId}/workflows/runs/{runId}/status",
|
|
6586
6614
|
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-ztQUdsNo.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-BbbGsI_v.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-sUMr5d70.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-sUMr5d70.mjs")).PreviewShellLayout };
|
|
14
14
|
});
|
|
15
15
|
function SdkPreviewMode(props) {
|
|
16
16
|
return /* @__PURE__ */ jsx(React.Suspense, {
|
|
@@ -1656,6 +1656,83 @@ const SDK_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1656
1656
|
errors: ["validation:invalid_input", "server:internal_error"]
|
|
1657
1657
|
}
|
|
1658
1658
|
});
|
|
1659
|
+
//#endregion
|
|
1660
|
+
//#region ../api/src/sdkMediaEndpointDefinitions.ts
|
|
1661
|
+
const SDK_MEDIA_ENDPOINT_DEFINITIONS = {
|
|
1662
|
+
sdkMediaExists: {
|
|
1663
|
+
path: "/sdk/{siteId}/media/exists",
|
|
1664
|
+
method: "POST",
|
|
1665
|
+
errors: ["validation:invalid_input"],
|
|
1666
|
+
auth: "service",
|
|
1667
|
+
responseKind: "json"
|
|
1668
|
+
},
|
|
1669
|
+
sdkMediaFindByChecksum: {
|
|
1670
|
+
path: "/sdk/{siteId}/media/find-by-checksum",
|
|
1671
|
+
method: "POST",
|
|
1672
|
+
errors: ["server:internal_error"],
|
|
1673
|
+
auth: "service",
|
|
1674
|
+
responseKind: "json"
|
|
1675
|
+
},
|
|
1676
|
+
sdkMediaResolve: {
|
|
1677
|
+
path: "/sdk/{siteId}/media/resolve",
|
|
1678
|
+
method: "POST",
|
|
1679
|
+
errors: ["server:internal_error"],
|
|
1680
|
+
auth: "service",
|
|
1681
|
+
responseKind: "json"
|
|
1682
|
+
},
|
|
1683
|
+
sdkMediaList: {
|
|
1684
|
+
path: "/sdk/{siteId}/media",
|
|
1685
|
+
method: "GET",
|
|
1686
|
+
auth: "service",
|
|
1687
|
+
responseKind: "json"
|
|
1688
|
+
},
|
|
1689
|
+
sdkMediaDownload: {
|
|
1690
|
+
path: "/sdk/{siteId}/media/{identifier}/download",
|
|
1691
|
+
method: "GET",
|
|
1692
|
+
auth: "service",
|
|
1693
|
+
responseKind: "json"
|
|
1694
|
+
},
|
|
1695
|
+
sdkMediaDeletePreview: {
|
|
1696
|
+
path: "/sdk/{siteId}/media/{identifier}/delete-preview",
|
|
1697
|
+
method: "POST",
|
|
1698
|
+
auth: "service",
|
|
1699
|
+
responseKind: "json"
|
|
1700
|
+
},
|
|
1701
|
+
sdkMediaDeleteApply: {
|
|
1702
|
+
path: "/sdk/{siteId}/media/{identifier}",
|
|
1703
|
+
method: "DELETE",
|
|
1704
|
+
auth: "service",
|
|
1705
|
+
responseKind: "json"
|
|
1706
|
+
},
|
|
1707
|
+
sdkMediaUploadUrl: {
|
|
1708
|
+
path: "/sdk/{siteId}/media/upload-url",
|
|
1709
|
+
method: "POST",
|
|
1710
|
+
errors: [
|
|
1711
|
+
"resource:not_found",
|
|
1712
|
+
"validation:invalid_input",
|
|
1713
|
+
"resource:conflict",
|
|
1714
|
+
"validation:payload_too_large",
|
|
1715
|
+
"billing:plan_limit_exceeded",
|
|
1716
|
+
"server:internal_error"
|
|
1717
|
+
],
|
|
1718
|
+
auth: "service",
|
|
1719
|
+
responseKind: "json"
|
|
1720
|
+
},
|
|
1721
|
+
sdkMediaUploadFinalize: {
|
|
1722
|
+
path: "/sdk/{siteId}/media/upload",
|
|
1723
|
+
method: "POST",
|
|
1724
|
+
errors: [
|
|
1725
|
+
"resource:not_found",
|
|
1726
|
+
"validation:invalid_input",
|
|
1727
|
+
"resource:conflict",
|
|
1728
|
+
"validation:payload_too_large",
|
|
1729
|
+
"billing:plan_limit_exceeded",
|
|
1730
|
+
"server:internal_error"
|
|
1731
|
+
],
|
|
1732
|
+
auth: "service",
|
|
1733
|
+
responseKind: "json"
|
|
1734
|
+
}
|
|
1735
|
+
};
|
|
1659
1736
|
const API_ENDPOINTS = {
|
|
1660
1737
|
...ACCOUNT_ENDPOINT_DEFINITIONS,
|
|
1661
1738
|
...PUBLIC_EVENT_ENDPOINT_DEFINITIONS,
|
|
@@ -3796,26 +3873,6 @@ const API_ENDPOINTS = {
|
|
|
3796
3873
|
auth: "public",
|
|
3797
3874
|
responseKind: "json"
|
|
3798
3875
|
},
|
|
3799
|
-
createTheme: {
|
|
3800
|
-
path: "/ai/chat/create-theme",
|
|
3801
|
-
method: "POST",
|
|
3802
|
-
revalidate: 60,
|
|
3803
|
-
tags: ["theme", "ai-theme"],
|
|
3804
|
-
auth: "user",
|
|
3805
|
-
responseKind: "json"
|
|
3806
|
-
},
|
|
3807
|
-
generateThemes: {
|
|
3808
|
-
path: "/theme/generate",
|
|
3809
|
-
method: "POST",
|
|
3810
|
-
errors: [
|
|
3811
|
-
"validation:invalid_input",
|
|
3812
|
-
"resource:not_found",
|
|
3813
|
-
"server:internal_error"
|
|
3814
|
-
],
|
|
3815
|
-
tags: ["theme"],
|
|
3816
|
-
auth: "user",
|
|
3817
|
-
responseKind: "json"
|
|
3818
|
-
},
|
|
3819
3876
|
extractThemeFromInspiration: {
|
|
3820
3877
|
path: "/theme/extract-from-inspiration",
|
|
3821
3878
|
method: "POST",
|
|
@@ -3989,7 +4046,7 @@ const API_ENDPOINTS = {
|
|
|
3989
4046
|
method: "DELETE",
|
|
3990
4047
|
tags: ["media", "media-{assetId}"],
|
|
3991
4048
|
auth: "user",
|
|
3992
|
-
responseKind: "
|
|
4049
|
+
responseKind: "json"
|
|
3993
4050
|
},
|
|
3994
4051
|
mediaBulkDelete: {
|
|
3995
4052
|
path: "/media/bulk-delete",
|
|
@@ -6575,42 +6632,13 @@ const API_ENDPOINTS = {
|
|
|
6575
6632
|
auth: "user",
|
|
6576
6633
|
responseKind: "json"
|
|
6577
6634
|
},
|
|
6635
|
+
...SDK_MEDIA_ENDPOINT_DEFINITIONS,
|
|
6578
6636
|
sdkIdentifiersBackfill: {
|
|
6579
6637
|
path: "/sdk/{siteId}/identifiers/backfill",
|
|
6580
6638
|
method: "POST",
|
|
6581
6639
|
auth: "service",
|
|
6582
6640
|
responseKind: "json"
|
|
6583
6641
|
},
|
|
6584
|
-
sdkMediaExists: {
|
|
6585
|
-
path: "/sdk/{siteId}/media/exists",
|
|
6586
|
-
method: "POST",
|
|
6587
|
-
auth: "service",
|
|
6588
|
-
responseKind: "json"
|
|
6589
|
-
},
|
|
6590
|
-
sdkMediaFindByChecksum: {
|
|
6591
|
-
path: "/sdk/{siteId}/media/find-by-checksum",
|
|
6592
|
-
method: "POST",
|
|
6593
|
-
auth: "service",
|
|
6594
|
-
responseKind: "json"
|
|
6595
|
-
},
|
|
6596
|
-
sdkMediaResolve: {
|
|
6597
|
-
path: "/sdk/{siteId}/media/resolve",
|
|
6598
|
-
method: "POST",
|
|
6599
|
-
auth: "service",
|
|
6600
|
-
responseKind: "json"
|
|
6601
|
-
},
|
|
6602
|
-
sdkMediaUploadUrl: {
|
|
6603
|
-
path: "/sdk/{siteId}/media/upload-url",
|
|
6604
|
-
method: "POST",
|
|
6605
|
-
auth: "service",
|
|
6606
|
-
responseKind: "json"
|
|
6607
|
-
},
|
|
6608
|
-
sdkMediaUploadFinalize: {
|
|
6609
|
-
path: "/sdk/{siteId}/media/upload",
|
|
6610
|
-
method: "POST",
|
|
6611
|
-
auth: "service",
|
|
6612
|
-
responseKind: "json"
|
|
6613
|
-
},
|
|
6614
6642
|
sdkUpdateWorkflowRunStatus: {
|
|
6615
6643
|
path: "/sdk/{siteId}/workflows/runs/{runId}/status",
|
|
6616
6644
|
method: "POST",
|