@riverbankcms/sdk 0.101.0 → 0.102.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-DBpy0KTh.mjs → PreviewEditorSidebar-BKkhhkJk.mjs} +358 -68
- package/dist/{PreviewEditorUI-Fg6I2R2T.mjs → PreviewEditorUI-DIvTqcqI.mjs} +3 -3
- package/dist/{PreviewQueryProvider-BICQLAUF.mjs → PreviewQueryProvider-ZF6TXq5Q.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-DFQP-Q53.mjs → SdkPreviewModeRuntime-CA2k7Z_T.mjs} +200 -122
- package/dist/{SiteChromeCustomizeContext-GwZc89KN.mjs → SiteChromeCustomizeContext-Bh9-DtMQ.mjs} +203 -34
- package/dist/_dts/ai/src/designer/rfc6902.d.ts +57 -1
- package/dist/_dts/ai/src/designer/themePatch.d.ts +16 -6
- package/dist/_dts/api/src/bookingVerticals.d.ts +53 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +1 -0
- package/dist/_dts/blocks/src/bindings/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/layout.d.ts +1 -0
- package/dist/_dts/content-editor/src/index.d.ts +1 -0
- package/dist/_dts/core/src/branded.d.ts +4 -0
- package/dist/_dts/core/src/person-records.d.ts +6 -1
- package/dist/_dts/media-core/src/identifiers.d.ts +14 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/applyPreviewProjections.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewChromeLayer.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +43 -7
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +4 -4
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/typographySelectionInput.d.ts +4 -2
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +4 -2
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +6 -1
- package/dist/_dts/theme-core/src/site-styles/rawStyleFields.d.ts +3 -3
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +24 -1
- package/dist/cli/index.mjs +31 -15
- package/dist/client/client.mjs +44 -16
- package/dist/client/hooks.mjs +14 -5
- package/dist/client/rendering/client.mjs +21 -13
- package/dist/client/rendering.mjs +43 -15
- package/dist/preview-next/before-render.mjs +1 -1
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/{previewAuthStore-Da74OL0X.mjs → previewAuthStore-ByPPZqmp.mjs} +1 -0
- package/dist/{sdk-runtime-CP6Kwalv.mjs → sdk-runtime-K8Oqj97H.mjs} +2 -2
- package/dist/{separator-BVk7GvGN.mjs → separator-CRoP34pT.mjs} +1 -1
- package/dist/server/components.mjs +37 -13
- package/dist/server/config-validation.mjs +14 -5
- package/dist/server/config.mjs +14 -5
- package/dist/server/data.mjs +14 -5
- package/dist/server/index.mjs +2 -2
- package/dist/server/next.mjs +38 -14
- package/dist/server/page-converter.mjs +7 -4
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +37 -13
- package/dist/server/rendering.mjs +37 -13
- package/dist/server/routing.mjs +16 -6
- package/dist/server/server.mjs +15 -6
- package/dist/server/theme-bridge.mjs +5 -4
- package/dist/server/theme.mjs +1 -0
- package/package.json +1 -1
package/dist/{SiteChromeCustomizeContext-GwZc89KN.mjs → SiteChromeCustomizeContext-Bh9-DtMQ.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { d as unwrapResponse, s as ApiRequestError } from "./previewAuthStore-
|
|
2
|
+
import { d as unwrapResponse, s as ApiRequestError } from "./previewAuthStore-ByPPZqmp.mjs";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import React, { cloneElement, createContext, createElement, forwardRef, isValidElement, memo, useCallback, useContext, useDebugValue, useEffect, useId, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
5
5
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -88654,6 +88654,7 @@ const themeV2RuntimeStyleFieldNames = [
|
|
|
88654
88654
|
"_sectionStyles",
|
|
88655
88655
|
"_containerStyles",
|
|
88656
88656
|
"_cardStyles",
|
|
88657
|
+
"_transitionStyles",
|
|
88657
88658
|
"styleGroup"
|
|
88658
88659
|
];
|
|
88659
88660
|
const themeV2BlockSpecificRawStyleFieldNames = [
|
|
@@ -91986,12 +91987,12 @@ const headerStyleCatalog = defineExactCatalog()([
|
|
|
91986
91987
|
},
|
|
91987
91988
|
{
|
|
91988
91989
|
id: asHeaderStyleId("fine-line"),
|
|
91989
|
-
label: "
|
|
91990
|
-
description: "
|
|
91990
|
+
label: "Seamless",
|
|
91991
|
+
description: "Borderless surface with underline hover for a quieter page transition.",
|
|
91991
91992
|
supportedLayoutIds: supportedLayouts(["classic", "centered"]),
|
|
91992
91993
|
navInteraction: "underline-grow",
|
|
91993
|
-
surface: "
|
|
91994
|
-
defaultDepth: "
|
|
91994
|
+
surface: "neutral",
|
|
91995
|
+
defaultDepth: "none",
|
|
91995
91996
|
navTypography: "plain",
|
|
91996
91997
|
moods: [
|
|
91997
91998
|
"calm",
|
|
@@ -92651,7 +92652,7 @@ function applyHeaderStyle(theme, header, style) {
|
|
|
92651
92652
|
navStyle: "underline-grow",
|
|
92652
92653
|
navWeight: "medium",
|
|
92653
92654
|
navLinkStyle: underlineNavLinkStyle("text", void 0, style.navTypography),
|
|
92654
|
-
border:
|
|
92655
|
+
border: noHeaderBorder(),
|
|
92655
92656
|
ctaTreatment: "outline",
|
|
92656
92657
|
ctaVariant: ctaVariant("outline")
|
|
92657
92658
|
};
|
|
@@ -94667,6 +94668,7 @@ const compiledRuntimeStyleFieldNames = [
|
|
|
94667
94668
|
"_contentCardStyles",
|
|
94668
94669
|
"_heroLayoutStyles",
|
|
94669
94670
|
"_cardStyles",
|
|
94671
|
+
"_transitionStyles",
|
|
94670
94672
|
"blockLook",
|
|
94671
94673
|
"styleGroup"
|
|
94672
94674
|
];
|
|
@@ -95150,6 +95152,17 @@ function compileBlockRuntimeFields(input) {
|
|
|
95150
95152
|
});
|
|
95151
95153
|
const transitionTargetSurface = transitionTargetSurfaceForAdjacency(sectionAdjacencyForBlock(input));
|
|
95152
95154
|
const transitionClassName = transitionTargetSurface ? designRules.transitionClassName(input.block.appliedTransitionAfter, visualSectionSurface, transitionTargetSurface) : null;
|
|
95155
|
+
const transitionRuntime = transitionTargetSurface && transitionClassName ? compileTransitionRuntime({
|
|
95156
|
+
treatment: input.block.appliedTransitionAfter,
|
|
95157
|
+
from: {
|
|
95158
|
+
kind: "surface",
|
|
95159
|
+
surface: visualSectionSurface
|
|
95160
|
+
},
|
|
95161
|
+
to: {
|
|
95162
|
+
kind: "surface",
|
|
95163
|
+
surface: transitionTargetSurface
|
|
95164
|
+
}
|
|
95165
|
+
}) : null;
|
|
95153
95166
|
return {
|
|
95154
95167
|
blockId: input.block.blockId,
|
|
95155
95168
|
visualSectionSurface,
|
|
@@ -95174,10 +95187,42 @@ function compileBlockRuntimeFields(input) {
|
|
|
95174
95187
|
...cardStyles ? { _cardStyles: cardStyles } : {},
|
|
95175
95188
|
...heroRuntimeFields,
|
|
95176
95189
|
...input.block.appearancePresetId ? { blockLook: input.block.appearancePresetId } : {},
|
|
95190
|
+
...transitionRuntime ? { _transitionStyles: transitionRuntime } : {},
|
|
95177
95191
|
...transitionClassName ? { styleGroup: transitionClassName } : {}
|
|
95178
95192
|
}
|
|
95179
95193
|
};
|
|
95180
95194
|
}
|
|
95195
|
+
function compileTransitionRuntime(input) {
|
|
95196
|
+
return {
|
|
95197
|
+
treatment: input.treatment,
|
|
95198
|
+
from: input.from,
|
|
95199
|
+
to: input.to,
|
|
95200
|
+
cssVars: {
|
|
95201
|
+
from: transitionEndpointCssValue(input.from),
|
|
95202
|
+
to: transitionEndpointCssValue(input.to)
|
|
95203
|
+
}
|
|
95204
|
+
};
|
|
95205
|
+
}
|
|
95206
|
+
function transitionEndpointCssValue(endpoint) {
|
|
95207
|
+
switch (endpoint.kind) {
|
|
95208
|
+
case "color-token": return themeColorTokenCssValue(endpoint.token);
|
|
95209
|
+
case "surface": return themeColorTokenCssValue(tokenForTransitionSurface(endpoint.surface));
|
|
95210
|
+
default: return assertNever$5(endpoint);
|
|
95211
|
+
}
|
|
95212
|
+
}
|
|
95213
|
+
function tokenForTransitionSurface(surface) {
|
|
95214
|
+
switch (surface) {
|
|
95215
|
+
case "base":
|
|
95216
|
+
case "hero-image": return "background";
|
|
95217
|
+
case "muted-band": return "muted";
|
|
95218
|
+
case "accent-band": return "primary";
|
|
95219
|
+
case "brand-depth-band": return "primary-800";
|
|
95220
|
+
default: return assertNever$5(surface);
|
|
95221
|
+
}
|
|
95222
|
+
}
|
|
95223
|
+
function themeColorTokenCssValue(token) {
|
|
95224
|
+
return `rgb(var(--tb-${token}))`;
|
|
95225
|
+
}
|
|
95181
95226
|
/** Compiles a resolved page plan into legacy runtime fields for each resolved block. */
|
|
95182
95227
|
function compilePageRuntimeFields(input) {
|
|
95183
95228
|
const visualSurfaces = input.resolved.blocks.map(resolveVisualSectionSurfaceForBlock);
|
|
@@ -97890,6 +97935,31 @@ function applyCompiledRuntimeFieldsToContent(content, fields) {
|
|
|
97890
97935
|
...runtimeFields
|
|
97891
97936
|
};
|
|
97892
97937
|
}
|
|
97938
|
+
function retargetCompiledRuntimeFieldsForContentAdjacency(fields, adjacency) {
|
|
97939
|
+
if (!fields?._transitionStyles) return fields;
|
|
97940
|
+
const transition = fields._transitionStyles;
|
|
97941
|
+
const fromSurface = contentOwnedBackgroundEndpoint(adjacency.currentContent) ?? transition.from;
|
|
97942
|
+
const toSurface = contentOwnedBackgroundEndpoint(adjacency.nextContent) ?? transition.to;
|
|
97943
|
+
if (fromSurface === transition.from && toSurface === transition.to) return fields;
|
|
97944
|
+
return {
|
|
97945
|
+
...fields,
|
|
97946
|
+
_transitionStyles: compileTransitionRuntime({
|
|
97947
|
+
treatment: transition.treatment,
|
|
97948
|
+
from: fromSurface,
|
|
97949
|
+
to: toSurface
|
|
97950
|
+
})
|
|
97951
|
+
};
|
|
97952
|
+
}
|
|
97953
|
+
function contentOwnedBackgroundEndpoint(content) {
|
|
97954
|
+
const background = readRecord(readRecord(content?._sectionStyles)?.background);
|
|
97955
|
+
if (background?.contentOwner !== "page-design-editor" || background.type !== "color") return null;
|
|
97956
|
+
const token = parseThemeColorToken(background.color);
|
|
97957
|
+
if (!token) return null;
|
|
97958
|
+
return {
|
|
97959
|
+
kind: "color-token",
|
|
97960
|
+
token
|
|
97961
|
+
};
|
|
97962
|
+
}
|
|
97893
97963
|
function preserveContentOwnedBackgroundFields(content, fields) {
|
|
97894
97964
|
const currentBackground = readRecord(readRecord(content._sectionStyles)?.background);
|
|
97895
97965
|
if (currentBackground?.contentOwner === "page-design-editor") return {
|
|
@@ -105922,6 +105992,7 @@ const eventCalendarLayout = [styledSection({
|
|
|
105922
105992
|
} },
|
|
105923
105993
|
seeAllUrl: { $bind: {
|
|
105924
105994
|
from: "content.seeAllUrl",
|
|
105995
|
+
fallback: "",
|
|
105925
105996
|
transforms: [{ id: "links.resolve" }]
|
|
105926
105997
|
} },
|
|
105927
105998
|
loadMoreText: { $bind: {
|
|
@@ -107145,6 +107216,7 @@ const eventListingBlockDefinition = {
|
|
|
107145
107216
|
} },
|
|
107146
107217
|
seeAllUrl: { $bind: {
|
|
107147
107218
|
from: "content.seeAllUrl",
|
|
107219
|
+
fallback: "",
|
|
107148
107220
|
transforms: [{ id: "links.resolve" }]
|
|
107149
107221
|
} },
|
|
107150
107222
|
loadMoreText: { $bind: {
|
|
@@ -123097,6 +123169,7 @@ const VERTICAL_IDS = [
|
|
|
123097
123169
|
"training_provider",
|
|
123098
123170
|
"retreat_centre",
|
|
123099
123171
|
"music_school",
|
|
123172
|
+
"voice_singing",
|
|
123100
123173
|
"performing_arts_school",
|
|
123101
123174
|
"community_wellbeing",
|
|
123102
123175
|
"venue_event_space"
|
|
@@ -123149,6 +123222,11 @@ const VERTICAL_BOOKING_PRESETS = [
|
|
|
123149
123222
|
preset("music_school.terms", "music_school", "course", "Term", "Terms", "Multi-week term blocks or fixed-date group courses."),
|
|
123150
123223
|
preset("music_school.workshops", "music_school", "workshop", "Workshop", "Workshops", "One-off workshops, masterclasses, or intensives."),
|
|
123151
123224
|
preset("music_school.performances", "music_school", "performance", "Performance", "Performances", "Concerts, recitals, showcases, or ticketed performances."),
|
|
123225
|
+
preset("voice_singing.lessons", "voice_singing", "appointment", "Voice session", "Voice sessions", "One-to-one singing lessons, voice coaching, or private practice sessions."),
|
|
123226
|
+
preset("voice_singing.classes", "voice_singing", "class", "Ongoing weekly session", "Ongoing weekly sessions", "Regular choirs, voice circles, community singing, or group practice."),
|
|
123227
|
+
preset("voice_singing.terms", "voice_singing", "course", "Singing term", "Singing terms", "Multi-week choir terms, voice courses, or fixed-date group programmes."),
|
|
123228
|
+
preset("voice_singing.workshops", "voice_singing", "workshop", "Workshop", "Workshops", "One-off singing workshops, voice journeys, or devotional singing sessions."),
|
|
123229
|
+
preset("voice_singing.performances", "voice_singing", "performance", "Performance", "Performances", "Choir concerts, sharing events, recitals, or community performances."),
|
|
123152
123230
|
preset("performing_arts_school.classes", "performing_arts_school", "class", "Class", "Classes", "Regular group classes, rehearsals, or weekly sessions."),
|
|
123153
123231
|
preset("performing_arts_school.terms", "performing_arts_school", "course", "Term", "Terms", "Multi-week term blocks or fixed-date course groups."),
|
|
123154
123232
|
preset("performing_arts_school.workshops", "performing_arts_school", "workshop", "Workshop", "Workshops", "One-off workshops, masterclasses, or intensives."),
|
|
@@ -154816,26 +154894,30 @@ function previewFooterLook(state, footerLookId) {
|
|
|
154816
154894
|
function previewTypographyPreset(state, typographyPresetId) {
|
|
154817
154895
|
return withPreviewedSelection(state, {
|
|
154818
154896
|
...state.previewed,
|
|
154819
|
-
|
|
154897
|
+
typographySelection: {
|
|
154898
|
+
kind: "preset",
|
|
154899
|
+
presetId: typographyPresetId,
|
|
154900
|
+
bodyFontOverride: null,
|
|
154901
|
+
headingFontOverride: null
|
|
154902
|
+
}
|
|
154820
154903
|
});
|
|
154821
154904
|
}
|
|
154822
|
-
function
|
|
154905
|
+
function setCustomTypography(state, typography) {
|
|
154823
154906
|
return withPreviewedSelection(state, {
|
|
154824
154907
|
...state.previewed,
|
|
154825
|
-
|
|
154908
|
+
typographySelection: {
|
|
154909
|
+
kind: "custom",
|
|
154910
|
+
typography
|
|
154911
|
+
}
|
|
154826
154912
|
});
|
|
154827
154913
|
}
|
|
154828
|
-
function
|
|
154829
|
-
return
|
|
154830
|
-
...state.previewed,
|
|
154831
|
-
typographyHeadingFontOverride
|
|
154832
|
-
});
|
|
154914
|
+
function applyTypographyDraftPatch(state, currentTypography, patch) {
|
|
154915
|
+
return setCustomTypography(state, patchTypography(currentTypography, patch));
|
|
154833
154916
|
}
|
|
154834
|
-
function
|
|
154917
|
+
function resetTypographyToSaved(state) {
|
|
154835
154918
|
return withPreviewedSelection(state, {
|
|
154836
154919
|
...state.previewed,
|
|
154837
|
-
|
|
154838
|
-
typographyHeadingFontOverride: null
|
|
154920
|
+
typographySelection: state.base.typographySelection
|
|
154839
154921
|
});
|
|
154840
154922
|
}
|
|
154841
154923
|
function previewPaletteVariant(state, paletteVariantId) {
|
|
@@ -154871,9 +154953,7 @@ function applyResolvedSelections(state, input) {
|
|
|
154871
154953
|
headerLayoutId: input.resolved.headerLayoutId,
|
|
154872
154954
|
headerStyleId: input.resolved.headerStyleId,
|
|
154873
154955
|
headerLookId: input.resolved.headerLookId,
|
|
154874
|
-
|
|
154875
|
-
typographyBodyFontOverride: input.resolved.typographyBodyFontOverride,
|
|
154876
|
-
typographyHeadingFontOverride: input.resolved.typographyHeadingFontOverride
|
|
154956
|
+
typographySelection: input.typographySelection ?? typographySelectionSnapshotFromFlat(input.resolved)
|
|
154877
154957
|
}),
|
|
154878
154958
|
warnings: input.warnings
|
|
154879
154959
|
};
|
|
@@ -155045,7 +155125,73 @@ function appendPaletteOverrideScopeNotice(notices, input) {
|
|
|
155045
155125
|
return [...notices, { kind }];
|
|
155046
155126
|
}
|
|
155047
155127
|
function selectionSnapshotsEqual(a, b) {
|
|
155048
|
-
return a.siteStyleId === b.siteStyleId && a.selectionVersion === b.selectionVersion && a.selectionUpdatedAt === b.selectionUpdatedAt && a.headerLayoutId === b.headerLayoutId && a.headerStyleId === b.headerStyleId && a.headerLookId === b.headerLookId && a.footerLookId === b.footerLookId && a.buttonPersonalityId === b.buttonPersonalityId && a.paletteVariantId === b.paletteVariantId && a.
|
|
155128
|
+
return a.siteStyleId === b.siteStyleId && a.selectionVersion === b.selectionVersion && a.selectionUpdatedAt === b.selectionUpdatedAt && a.headerLayoutId === b.headerLayoutId && a.headerStyleId === b.headerStyleId && a.headerLookId === b.headerLookId && a.footerLookId === b.footerLookId && a.buttonPersonalityId === b.buttonPersonalityId && a.paletteVariantId === b.paletteVariantId && typographySelectionsEqual(a.typographySelection, b.typographySelection) && paletteOverridesEqual(a.paletteOverrides, b.paletteOverrides);
|
|
155129
|
+
}
|
|
155130
|
+
function typographySelectionSnapshotFromFlat(input) {
|
|
155131
|
+
if (input.typographyPresetId === null && input.theme?.typography) return {
|
|
155132
|
+
kind: "custom",
|
|
155133
|
+
typography: input.theme.typography
|
|
155134
|
+
};
|
|
155135
|
+
return {
|
|
155136
|
+
kind: "preset",
|
|
155137
|
+
presetId: input.typographyPresetId ?? null,
|
|
155138
|
+
bodyFontOverride: input.typographyBodyFontOverride ?? null,
|
|
155139
|
+
headingFontOverride: input.typographyHeadingFontOverride ?? null
|
|
155140
|
+
};
|
|
155141
|
+
}
|
|
155142
|
+
function typographySelectionFlatFields(selection) {
|
|
155143
|
+
if (selection.kind === "custom") return {
|
|
155144
|
+
typographyPresetId: null,
|
|
155145
|
+
typographyBodyFontOverride: null,
|
|
155146
|
+
typographyHeadingFontOverride: null
|
|
155147
|
+
};
|
|
155148
|
+
return {
|
|
155149
|
+
typographyPresetId: selection.presetId,
|
|
155150
|
+
typographyBodyFontOverride: selection.bodyFontOverride,
|
|
155151
|
+
typographyHeadingFontOverride: selection.headingFontOverride
|
|
155152
|
+
};
|
|
155153
|
+
}
|
|
155154
|
+
function customTypographyForSelection(selection) {
|
|
155155
|
+
return selection.kind === "custom" ? selection.typography : null;
|
|
155156
|
+
}
|
|
155157
|
+
function typographySelectionsEqual(a, b) {
|
|
155158
|
+
if (a.kind === "preset" && b.kind === "preset") return a.presetId === b.presetId && a.bodyFontOverride === b.bodyFontOverride && a.headingFontOverride === b.headingFontOverride;
|
|
155159
|
+
if (a.kind === "custom" && b.kind === "custom") return typographyObjectsEqual(a.typography, b.typography);
|
|
155160
|
+
return false;
|
|
155161
|
+
}
|
|
155162
|
+
function patchTypography(typography, patch) {
|
|
155163
|
+
switch (patch.kind) {
|
|
155164
|
+
case "heading": return {
|
|
155165
|
+
...typography,
|
|
155166
|
+
headings: {
|
|
155167
|
+
...typography.headings,
|
|
155168
|
+
default: {
|
|
155169
|
+
...typography.headings.default,
|
|
155170
|
+
...patch.patch
|
|
155171
|
+
}
|
|
155172
|
+
}
|
|
155173
|
+
};
|
|
155174
|
+
case "body": return {
|
|
155175
|
+
...typography,
|
|
155176
|
+
body: {
|
|
155177
|
+
...typography.body,
|
|
155178
|
+
...patch.patch
|
|
155179
|
+
}
|
|
155180
|
+
};
|
|
155181
|
+
case "scale": return {
|
|
155182
|
+
...typography,
|
|
155183
|
+
scale: patch.scale
|
|
155184
|
+
};
|
|
155185
|
+
}
|
|
155186
|
+
}
|
|
155187
|
+
function typographyObjectsEqual(a, b) {
|
|
155188
|
+
return a.scale === b.scale && bodyTypographyEqual(a.body, b.body) && headingTypographyEqual(a.headings.default, b.headings.default) && headingTypographyEqual(a.headings.h1, b.headings.h1) && headingTypographyEqual(a.headings.h2, b.headings.h2) && headingTypographyEqual(a.headings.h3, b.headings.h3);
|
|
155189
|
+
}
|
|
155190
|
+
function bodyTypographyEqual(a, b) {
|
|
155191
|
+
return a.family === b.family && a.size === b.size && a.weight === b.weight && a.lineHeight === b.lineHeight && a.letterSpacing === b.letterSpacing;
|
|
155192
|
+
}
|
|
155193
|
+
function headingTypographyEqual(a, b) {
|
|
155194
|
+
return a.family === b.family && a.weight === b.weight && a.lineHeight === b.lineHeight && a.letterSpacing === b.letterSpacing && a.case === b.case && a.italic === b.italic && a.colorToken === b.colorToken;
|
|
155049
155195
|
}
|
|
155050
155196
|
function paletteOverridesEqual(a, b) {
|
|
155051
155197
|
if (a === b) return true;
|
|
@@ -155588,6 +155734,16 @@ function diagnosticsForRequestedFooterSelection(requestedLookId, renderedLookId,
|
|
|
155588
155734
|
//#endregion
|
|
155589
155735
|
//#region ../preview-next/src/client/preview/typographySelectionInput.ts
|
|
155590
155736
|
function typographySelectionInputForSnapshot(snapshot, theme) {
|
|
155737
|
+
if (snapshot.typographySelection?.kind === "custom") return { typographySelection: {
|
|
155738
|
+
kind: "custom",
|
|
155739
|
+
typography: snapshot.typographySelection.typography
|
|
155740
|
+
} };
|
|
155741
|
+
if (snapshot.typographySelection?.kind === "preset") return { typographySelection: {
|
|
155742
|
+
kind: "preset",
|
|
155743
|
+
presetId: snapshot.typographySelection.presetId,
|
|
155744
|
+
bodyFontOverride: snapshot.typographySelection.bodyFontOverride,
|
|
155745
|
+
headingFontOverride: snapshot.typographySelection.headingFontOverride
|
|
155746
|
+
} };
|
|
155591
155747
|
if (snapshot.typographyPresetId === null && theme?.typography) return { typographySelection: {
|
|
155592
155748
|
kind: "custom",
|
|
155593
155749
|
typography: theme.typography
|
|
@@ -155630,9 +155786,14 @@ function resolveStyleConfiguratorInitialSnapshot(input) {
|
|
|
155630
155786
|
buttonPersonalityId: compiled.resolvedSelections.buttonPersonalityId,
|
|
155631
155787
|
paletteVariantId: compiled.resolvedSelections.paletteVariantId,
|
|
155632
155788
|
paletteOverrides: paletteChanged ? null : input.initialSelections.paletteOverrides,
|
|
155633
|
-
|
|
155634
|
-
|
|
155635
|
-
|
|
155789
|
+
typographySelection: compiled.resolvedSelections.typographySelection.kind === "custom" ? {
|
|
155790
|
+
kind: "custom",
|
|
155791
|
+
typography: compiled.theme.typography
|
|
155792
|
+
} : typographySelectionSnapshotFromFlat({
|
|
155793
|
+
typographyPresetId: compiled.resolvedSelections.typographyPresetId,
|
|
155794
|
+
typographyBodyFontOverride: compiled.resolvedSelections.typographyBodyFontOverride,
|
|
155795
|
+
typographyHeadingFontOverride: compiled.resolvedSelections.typographyHeadingFontOverride
|
|
155796
|
+
})
|
|
155636
155797
|
};
|
|
155637
155798
|
}
|
|
155638
155799
|
//#endregion
|
|
@@ -155833,14 +155994,14 @@ function siteChromeSavePlanBodyForBaseRevision(plan, baseSelectionUpdatedAt) {
|
|
|
155833
155994
|
//#endregion
|
|
155834
155995
|
//#region ../preview-next/src/client/preview/styleConfiguratorApplyPayload.ts
|
|
155835
155996
|
function buildApplySiteStyleSelectionBody(input) {
|
|
155997
|
+
const typographyFields = typographySelectionFlatFields(input.previewed.typographySelection);
|
|
155836
155998
|
return {
|
|
155837
155999
|
siteStyleId: input.previewed.siteStyleId,
|
|
155838
156000
|
buttonPersonalityId: input.previewed.buttonPersonalityId,
|
|
155839
156001
|
paletteVariantId: input.previewed.paletteVariantId,
|
|
155840
156002
|
paletteOverrides: input.previewed.paletteOverrides,
|
|
155841
|
-
|
|
155842
|
-
|
|
155843
|
-
typographyHeadingFontOverride: input.previewed.typographyHeadingFontOverride,
|
|
156003
|
+
...typographyFields,
|
|
156004
|
+
customTypography: customTypographyForSelection(input.previewed.typographySelection),
|
|
155844
156005
|
headerLookId: input.previewed.headerLookId,
|
|
155845
156006
|
headerLayoutId: input.previewed.headerLayoutId,
|
|
155846
156007
|
headerStyleId: input.previewed.headerStyleId,
|
|
@@ -155857,9 +156018,12 @@ function selectionSnapshotFromApplySiteStyleSelectionResponse(saved, fallback) {
|
|
|
155857
156018
|
buttonPersonalityId: saved.buttonPersonalityId,
|
|
155858
156019
|
paletteVariantId: saved.paletteVariantId,
|
|
155859
156020
|
paletteOverrides: saved.paletteOverrides ?? null,
|
|
155860
|
-
|
|
155861
|
-
|
|
155862
|
-
|
|
156021
|
+
typographySelection: typographySelectionSnapshotFromFlat({
|
|
156022
|
+
typographyPresetId: saved.typographyPresetId,
|
|
156023
|
+
typographyBodyFontOverride: saved.typographyBodyFontOverride,
|
|
156024
|
+
typographyHeadingFontOverride: saved.typographyHeadingFontOverride,
|
|
156025
|
+
theme: saved.theme
|
|
156026
|
+
}),
|
|
155863
156027
|
headerLookId: saved.headerLookId,
|
|
155864
156028
|
headerLayoutId: saved.headerLayoutId,
|
|
155865
156029
|
headerStyleId: saved.headerStyleId,
|
|
@@ -157104,9 +157268,14 @@ function selectionSnapshotFromSiteChromeSaveResponse({ saved, fallback, savePlan
|
|
|
157104
157268
|
buttonPersonalityId: savePlan.compiled.resolvedSelections.buttonPersonalityId,
|
|
157105
157269
|
paletteVariantId: savePlan.compiled.resolvedSelections.paletteVariantId,
|
|
157106
157270
|
paletteOverrides: fallback.paletteOverrides,
|
|
157107
|
-
|
|
157108
|
-
|
|
157109
|
-
|
|
157271
|
+
typographySelection: savePlan.compiled.resolvedSelections.typographySelection.kind === "custom" ? {
|
|
157272
|
+
kind: "custom",
|
|
157273
|
+
typography: savePlan.themeOverlay.typography
|
|
157274
|
+
} : typographySelectionSnapshotFromFlat({
|
|
157275
|
+
typographyPresetId: savePlan.compiled.resolvedSelections.typographyPresetId,
|
|
157276
|
+
typographyBodyFontOverride: savePlan.compiled.resolvedSelections.typographyBodyFontOverride,
|
|
157277
|
+
typographyHeadingFontOverride: savePlan.compiled.resolvedSelections.typographyHeadingFontOverride
|
|
157278
|
+
}),
|
|
157110
157279
|
headerLookId: saved.headerLookId ?? fallback.headerLookId,
|
|
157111
157280
|
headerLayoutId: saved.headerLayoutId ?? savePlan.compiled.resolvedSelections.headerLayoutId,
|
|
157112
157281
|
headerStyleId: saved.headerStyleId ?? savePlan.compiled.resolvedSelections.headerStyleId,
|
|
@@ -157137,4 +157306,4 @@ function useSiteChromeCustomizeOptional() {
|
|
|
157137
157306
|
return useContext(SiteChromeCustomizeContext);
|
|
157138
157307
|
}
|
|
157139
157308
|
//#endregion
|
|
157140
|
-
export { PreviewRichTextEditor as $, eventScheduleScopeValues as $a, useSdkConfig as $c, Check as $d, parseBlockCustomCssRules as $i, DropdownMenuLabel as $l, formBlockDefinition as $n, ACCORDION_SPACING_MAP as $o, heroCtaRowFragment as $r, createRichTextDocFromMarkdown as $s, listEntryPageContentSlots as $t, unsafeAsMediaAssetId as $u, markApplySaving as A, buildEventRuntimeFilters as Aa, siblingPath as Ac, ImagePlus as Ad, requireEntriesForCuratedChoices as Ai, ScrollableDialogContent as Al, SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR as An, getContainerClass as Ao, formatInterval as Ar, ChevronDownIcon as As, createSnapshotFromPageRecord as At, formatBookingInstant as Au, setTypographyBodyFontOverride as B, columnOptionSchema as Ba, themeButtonClassName as Bc, EllipsisVertical as Bd, backgroundAppearanceColorTokenNames as Bi, CollapsibleTrigger as Bl, ImageResolveContextProvider as Bn, createInteractiveIslandCodec as Bo, richTextFragment as Br, FileAudioIcon as Bs, createManifestFormAdapter as Bt, publicEventPricingMode as Bu, createStyleConfiguratorState as C, normalizeOfferingsPreviewItemLimit as Ca, formatAspectRatioToken as Cc, Palette as Cd, curatedSiteStyles as Ci, TabsContent as Cl, gradientToCss as Cn, formatEventCompactDateRail as Co, buildProductListInteractiveIslandProps as Cr, getSemanticIconComponent as Cs, pushHistoryEntry as Ct, createEditorRemoveBlockCommand as Cu, isPreviewingChange as D, resolveOfferingsPreviewGroups as Da, getDirectImageUrlForMediaAsset as Dc, LoaderCircle as Dd, evaluateTypographyFontSlot as Di, List as Dl, siteFooterManifest as Dn, formatEventTeacherLine as Do, buildProductCardDisplay as Dr, ArrowRightIcon as Ds, useMultiAutosave as Dt, addLocalScheduleDays as Du, dismissWarnings as E, resolveOfferingsPreviewGroupOrderEntries as Ea, asRecord as Ec, Maximize2 as Ed, surfaceResolutionContextFromTheme as Ei, Content as El, listBlockDescriptors as En, formatEventPriceDisplay as Eo, buildCartDisplay as Er, ArrowLeftIcon as Es, unsafeAsLinkedContentEntryId as Et, unsafeAsEditorBlockValues as Eu, previewHeaderStyle as F, resolveEventListPaginationAction as Fa, generateShadowValue$1 as Fc, FilePlay as Fd, defaultSectionTransitionVariantForFamily as Fi, DialogFooter as Fl, layoutTransforms as Fn, getLocalDateKey as Fo, parseStoredCommerceCartState as Fr, CirclePlusIcon as Fs, usePalette as Ft, resolveBookingTimeZoneId as Fu, beginAutosaveBatch as G, previewStageSchema as Ga, textColorStyle as Gc, CircleMinus as Gd, findPaletteVariant as Gi, Card as Gl, newsletterSignupBlockDefinition as Gn, EDITABLE_SURFACE_FORWARDING_PROP as Go, blogFeaturedPostFragment as Gr, MapPinIcon as Gs, listContentTypes as Gt, assertNever$6 as Gu, styleConfiguratorHistoryEntryForPersistedSelection as H, eventCalendarDefaultViewSchema as Ha, borderColorStyle as Hc, CreditCard as Hd, foregroundTokenForBackgroundAppearanceColorToken as Hi, Root$3 as Hl, shopBlockDefinition as Hn, createZodCodec as Ho, cardFragment as Hr, FileTextIcon as Hs, FormRenderer as Ht, publicEventScalarPrice as Hu, previewPaletteVariant as I, normalizeCsvIds as Ia, generateBaseInteractiveCSS as Ic, FileHeadphone as Id, sectionTransitionFamilies as Ii, DialogHeader as Il, uiTransforms as In, getLocalMinuteOfDay as Io, productItemKey as Ir, ClockIcon as Is, recoveryConflictCopy as It, toBookingTimeZone as Iu, enqueueTransaction as J, eventCalendarListLayoutOptions as Ja, getModalConfig as Jc, ChevronsUpDown as Jd, isThemeV2NormalEditorRawStyleFieldName as Ji, CardTitle as Jl, buildEventListingInteractiveIslandProps as Jn, splitPositioningClasses as Jo, formEmbedFragment as Jr, PlayIcon as Js, getPageDesignEditorState as Jt, parseSiteId as Ju, confirmAutosaveBatch as K, weekStartSchema as Ka, useBackendWatch as Kc, CircleCheck as Kd, paletteVariants as Ki, CardContent as Kl, buildNewsletterFormInteractiveIslandProps as Kn, composeHeaderSectionWrapperClassName as Ko, singleButtonFragment as Kr, MinusIcon as Ks, toRoutableLinkPayload as Kt, expectParsedBrandedId as Ku, previewSiteStyle as L, normalizeCsvString as La, generateInteractiveChildInheritanceCSS as Lc, FileArchive as Ld, sectionTransitionFamilyForBoundaryOptionId as Li, DialogTitle as Ll, formattingTransforms as Ln, resolveRuntimeEventPricing as Lo, reduceCommerceCart as Lr, DownloadIcon as Ls, unfinishedBlockCopy as Lt, toScheduledBookingDateTime as Lu, previewButtonPersonality as M, eventPageSizeSchema as Ma, findButtonPersonality as Mc, File as Md, getFooterLayout as Mi, DialogClose as Ml, visibleHeaderClearancePx as Mn, resolveEventCta as Mo, buildPassCartItem as Mr, ChevronRightIcon as Ms, resolvePageRouteSlug as Mt, formatLocalScheduleDate as Mu, previewFooterLook as N, getEventRuntimeFiltersKey as Na, generateButtonCss as Nc, FileText as Nd, getHeaderLayout as Ni, DialogContent as Nl, contentTransforms as Nn, resolveEventLinkProps as No, buildProductCartItem as Nr, ChevronUpIcon as Ns, resolveContentTitle as Nt, getBookingLocalDateKey as Nu, markApplyFailed as O, isSemanticSpacing as Oa, getImageUrl as Oc, Image as Od, findTypographyPreset as Oi, Root2$1 as Ol, siteHeaderManifest as On, formatTime as Oo, buildProductDetailDisplay as Or, CalendarIcon as Os, useDebouncedLatestSave as Ot, formatBookingDate as Ou, previewHeaderLayout as P, resolveEventCalendarListPageSize as Pa, generateEffectsCSS as Pc, FileSpreadsheet as Pd, getHeaderStyle as Pi, DialogDescription as Pl, mediaTransforms as Pn, getEventAvailability as Po, deriveCommerceCheckoutState as Pr, CircleMinusIcon as Ps, PaletteProvider as Pt, parseBookingLocalDate as Pu, resolvePreviewSidebarTab as Q, eventBlockKindValues as Qa, SdkConfigProvider as Qc, ChevronDown as Qd, getComponentShadowVar as Qi, DropdownMenuItem as Ql, buildEventCalendarListingRender as Qn, ACCORDION_OPEN_ACCENT_THICKNESS as Qo, ctaCopyFragment as Qr, XIcon as Qs, deleteEntrySlotBlock as Qt, unsafeAsFormId as Qu, previewTypographyPreset as R, normalizeOptionalId as Ra, TokenResolver as Rc, Eye as Rd, sectionTransitionVariantForBoundaryOptionId as Ri, Collapsible as Rl, createManifestValidator as Rn, blockBookingPaymentTermsSchema as Ro, augmentManifest as Rr, ExternalLinkIcon as Rs, validateBlockManifestIssues as Rt, formatBookingPriceDisplay as Ru, clearTypographyFontOverrides as S, normalizeOfferingsPreviewGroupOrder as Sa, normalizeRightAngle as Sc, PenLine as Sd, resolveVisiblePromotedFieldPathsForEditorBlock as Si, Tabs as Sl, isSupportedLoaderEndpoint as Sn, formatDate as So, buildProductDetailInteractiveIslandProps as Sr, SEMANTIC_ICON_DEFINITIONS as Ss, createHistoryState as St, createEditorInsertBlockCommand as Su, dismissNotices as T, resolveOfferingsPreviewGroupCta as Ta, resolveMediaTransformForAspect as Tc, Minus as Td, getCuratedSiteStyle as Ti, TabsTrigger as Tl, getBlockDefinition as Tn, formatEventPrice as To, getShopDisplayForItems as Tr, ArrowDownIcon as Ts, undoHistory as Tt, unsafeAsEditorBlockId as Tu, syncStyleConfiguratorState as U, eventLayoutSchema as Ua, mergeStyles as Uc, Copy as Ud, parseBackgroundAppearanceColorToken as Ui, Trigger$3 as Ul, productListBlockDefinition as Un, defineClientOwnedBlockRuntime as Uo, faqAccordionFragment as Ur, InfoIcon as Us, evaluateVisibility as Ut, publicEventTicketTypes as Uu, setTypographyHeadingFontOverride as V, eventButtonVariantSchema as Va, backgroundColorStyle as Vc, Crop as Vd, backgroundAppearanceQuickColorTokenNames as Vi, Content$1 as Vl, useImageResolveContextOptional as Vn, defineInteractiveIslandMetaKeys as Vo, headingFragment as Vr, FileSpreadsheetIcon as Vs, createManifestValidation as Vt, publicEventPricingType as Vu, toggleRow as W, filterAutoShowSchema as Wa, rgbColorValue as Wc, CirclePlus as Wd, defaultThemeTokens as Wi, createCollapsibleScope as Wl, productDetailBlockDefinition as Wn, defineProgressiveBlockRuntime as Wo, faqHeadingFragment as Wr, MailIcon as Ws, createStoreBackend as Wt, formatCurrencyAmount as Wu, rejectAutosaveBatch as X, when as Xa, isNonEmptyValue as Xc, ChevronRight as Xd, pageDesignEditorBackgroundOverrideOwner as Xi, DropdownMenu as Xl, buildEventCalendarInteractiveIslandProps as Xn, asDesignBlockId as Xo, testimonialsCarouselFragment as Xr, ShoppingCartIcon as Xs, createEntrySlotBlock as Xt, unsafeAsAppointmentServiceId as Xu, idleEditorTransactionQueueState as Y, el as Ya, isHeaderField as Yc, ChevronUp as Yd, isThemeV2NormalEditorRawStylePath as Yi, Surface as Yl, eventCalendarBlockDefinition as Yn, planSiteChromePlacement as Yo, formCopyFragment as Yr, PlusIcon as Ys, createBlock as Yt, unsafeAsAppointmentResourceId as Yu, createOptimisticActionRunner as Z, bindingSchema as Za, useBlockContext as Zc, ChevronLeft as Zd, getComponentBorderWidthPx as Zi, DropdownMenuContent as Zl, buildEventCalendarListingDisplay as Zn, assertNever$5 as Zo, testimonialsHeadingFragment as Zr, UploadIcon as Zs, deleteBlock as Zt, unsafeAsCustomerPassId as Zu, usePreviewDesignCoordinator as _, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as _a, setContextResolveImageUrlContext as _c, Search as _d, PAGE_DESIGN_EDITOR_STATE_FETCH_ERROR_MESSAGE as _i, Badge as _l, CSS$1 as _n, getTextColorForBackground as _o, buildCourseRegistrationInteractiveIslandProps as _r, parseBlockIconValue as _s, useEditorUiStore as _t, Button$1 as _u, previewDesignHistoryDomainForCommand as a, NAV_LINK_TEXT_SIZE_MAP as aa, isInlineTextEmpty as ac, lucide_react_exports as ad, __exportAll as af, siteOptionSources as ai, useField as al, deriveLaunchReadiness as an, normalizeEventSurfacePresetsCsv as ao, findPreSelectedEvent as ar, mediaSchema$1 as as, getRichTextImagePositionFromTarget as at, __generator as au, applyResolvedSelections as b, inferLegacyOfferingsPreviewGroupOrder as ba, attachRenderableMediaAssetFields as bc, Plus as bd, normalEditorCuratedPromotedFieldPaths as bi, PopoverTrigger as bl, useIsomorphicLayoutEffect$1 as bn, normalizeLocationMapProps as bo, buildCartInteractiveIslandProps as br, isIconPickerPreset as bs, canRedoHistory as bt, cn$1 as bu, selectionSnapshotFromApplySiteStyleSelectionResponse as c, INPUT_SPACING_MAP as ca, MediaPlaceholder as cc, Undo2 as cd, MQ_SM_DOWN as ci, TooltipProvider as cl, KeyboardCode as cn, publicEventSchema as co, resolveRegistrationTarget as cr, createFeatureCardIconKey as cs, EditorProvider as ct, __spreadArray as cu, buildSiteChromeLookModels as d, generateCssVars as da, getCurrentResolveImageUrlContext as dc, Ticket as dd, BACKGROUND_POSITION_PRESET_VALUES as di, Select$1 as dl, getClientRect as dn, generateShadowValue as do, getWizardStepsForContext as dr, suggestFeatureCardSemanticIcons as ds, useUISelector as dt, useDirection as du, parseCustomCssRules as ea, unwrapRichTextRoot as ec, unsafeAsPassId as ed, Box as ef, ctaRowFragment as ei, hasEmptyOption as el, mutateBlockContent as en, eventSurfaceScopeValues as eo, buildFormInteractiveIslandProps as er, ACCORDION_TRIGGER_FONT_SCALE as es, PreviewInlineTextEditor as et, DropdownMenuSeparator as eu, cycleSiteChromeLookId as f, createTransformRegistry as fa, renderAudio as fc, Tablet as fd, getAnchorClasses as fi, SelectContent as fl, useDndContext as fn, normalizeBoxStylesCardVariant as fo, normalizeEventRegistrationPageSurfaceSubject as fr, suggestSemanticIconForFeatureCard as fs, EditableBlockProvider as ft, createCollection as fu, PreviewDesignCoordinatorProvider as g, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as ga, resolveMediaStorageUrl as gc, Settings as gd, formatSiteChromeBackgroundTokenLabel as gi, Label as gl, useSensors as gn, resolveTokenOrCssColorValue as go, courseRegistrationBlockDefinition as gr, getGeneratedBlockIconStyleState as gs, classifyHistoryShortcut as gt, Primitive as gu, planSiteChromeLookSelection as h, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as ha, resolveMediaNodeResponsiveImage as hc, Smartphone as hd, resolveBackgroundColorValue as hi, SelectValue as hl, useSensor as hn, resolveOnColorForThemeToken as ho, buildGiftingInteractiveIslandProps as hr, getBlockIconSemanticFallbackId as hs, useEntryEditorController as ht, composeEventHandlers as hu, usePreviewDesignHistoryOrder as i, NAV_LINK_PADDING_X_MAP as ia, inlineTextToPlainText as ic, ok as id, __commonJSMin as if, PUBLIC_FILE_FIELD_KINDS as ii, FieldFrame as il, DEFAULT_LAUNCH_READINESS_INPUT as in, normalizeEventStaffMemberId as io, findEventByOccurrenceId as ir, PUBLIC_DOWNLOAD_MEDIA_TYPES as is, RichTextEditorSurface as it, __extends as iu, openRow as j, eventListPaginationActionSchema as ja, buttonPersonalities as jc, GripVertical as jd, findFooterLook as ji, Dialog as jl, planSiteOverlayHeaderClearance as jn, groupEventsByDate as jo, EMPTY_COMMERCE_CART_STATE as jr, ChevronLeftIcon as js, deriveRouteMetadataPresentation as jt, formatBookingTime as ju, markApplySaved as k, resolveSpacing as ka, getAtPath as kc, ImageUp as kd, typographyPresets as ki, Trigger$2 as kl, SITE_CHROME_VISIBLE_HEADER_SELECTOR as kn, getCardOrientation as ko, formatCommercePrice as kr, CheckIcon as ks, createRoutingHelpers as kt, formatBookingDateTime as ku, planSiteStylePreviewChange as l, LABEL_FONT_SIZE_MAP as la, buildResolveImageUrlContext as lc, TriangleAlert as ld, MQ_SM_UP as li, TooltipTrigger as ll, PointerSensor as ln, generateCardCss as lo, WIZARD_STEPS as lr, getFeatureCardIconCompletion as ls, useEditor$1 as lt, __spreadArrays as lu, planSiteChromeFooterLayoutSelection as m, ctaButton as ma, resolveImageUrlWithContext as mc, Sparkles as md, resolveSectionForegroundStyles as mi, SelectTrigger as ml, useDroppable as mn, isCssColorLiteral as mo, giftingBlockDefinition as mr, buildGeneratedBlockIconRenderAssetLookupFromUnknown as ms, useEntryController as mt, createContextScope as mu, useSiteChromeCustomizeOptional as n, NAV_LINK_LETTER_SPACING_MAP as na, isRecord$11 as nc, unsafeAsPositiveSeconds as nd, ArrowDown as nf, bodyCopyFragment as ni, mapOptionValueForSelect as nl, reorderEntrySlotBlocks as nn, normalizeEventCategoryIdsCsv as no, buildEventRegistrationInteractiveIslandProps as nr, ICON_CONFIG as ns, useRichTextEditor as nt, __assign as nu, selectPreviewDesignHistoryDomain as o, FONT_WEIGHT_MAP as oa, parseInlineTextFromUnknown as oc, X as od, __toESM as of, MQ_LG_UP as oi, Tooltip as ol, AMBIENT_BACKGROUND_ROLES as on, normalizeEventSurfaceScope as oo, resolveDiscountContext as or, FEATURE_CARD_ICON_TREATMENTS as os, insertOrReplaceRichTextImage as ot, __read as ou, cycleableSiteChromeOptions as p, runTransforms as pa, renderVideo as pc, Star as pd, boxStylesTransforms as pi, SelectItem as pl, useDraggable as pn, normalizeCardVariantRole as po, resolveEventRegistrationScopedEvents as pr, toFeatureCardIconSuggestionInputs as ps, EntryControllerProvider as pt, useControllableState as pu, deriveTransactionCapabilities as q, eventCalendarListLayoutCompatibleDisplayModeValues as qa, getFieldIntent as qc, CircleAlert as qd, paletteOverridesSchema as qi, CardHeader as ql, eventListingBlockDefinition as qn, markEditableSurfaceForwarding as qo, footerBottomTextFragment as qr, PhoneIcon as qs, applyPageDesignEditorAction as qt, parseMediaAssetId as qu, PreviewDesignHistoryOrderProvider as r, NAV_LINK_PADDING_MAP as ra, coerceInlineTextWithFallback as rc, err as rd, Archive as rf, defineFragment as ri, unmapValueFromSelect as rl, decodePublicProductCategorySelectorQuery as rn, normalizeEventScheduleScope as ro, toRegistrationEvents as rr, ICON_SIZE_PX as rs, EMPTY_DOC as rt, __awaiter as ru, buildApplySiteStyleSelectionBody as s, INPUT_FONT_SIZE_MAP as sa, ImagePresets as sc, Upload as sd, MQ_MD_DOWN as si, TooltipContent as sl, DndContext as sn, normalizeEventVenueId as so, resolveEventRequiresPayment as sr, applyFeatureCardIconSuggestions as ss, InlineTextEditor as st, __rest as su, SiteChromeCustomizeProvider as t, NAV_LINK_BORDER_RADIUS_MAP as ta, isObjectRecord$1 as tc, unsafeAsPositiveByteCount as td, ArrowUp as tf, heroCopyFragment as ti, mapCurrentValueForSelect as tl, reorderBlocks as tn, normalizeEventBlockKind as to, eventRegistrationBlockDefinition as tr, ACCORDION_TRIGGER_LETTER_SPACING as ts, PreviewTextEditor as tt, DropdownMenuTrigger as tu, resolveStyleConfiguratorInitialSnapshot as u, expandPalette as ua, computeMediaTransformStyle as uc, Trash2 as ud, MQ_TABLET_ONLY as ui, Textarea as ul, closestCenter as un, statusMutedColorDeclaration as uo, getStepNumber as ur, shouldReserveFeatureCardIconZone as us, ContentFieldsForm as ut, useId$1 as uu, PreviewThemeOverlayProvider as v, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as va, SECTION_BACKGROUND_MIN_SOURCE_WIDTH as vc, RotateCcw as vd, applyCompiledRuntimeFieldsToContent as vi, Popover as vl, isKeyboardEvent as vn, featuresFromHex as vo, checkoutBlockDefinition as vr, resolveBlockIconRenderValue as vs, useEditorUiStoreInstance as vt, cva as vu, deriveStyleConfiguratorCapabilities as w, resolveOfferingsPreviewCoursePath as wa, parseAspectRatioValue as wc, Monitor as wd, designRuntimeRulesForTheme as wi, TabsList as wl, GRADIENT_PRESETS as wn, formatEventDateParts as wo, buildShopInteractiveIslandProps as wr, isSemanticIconId as ws, redoHistory as wt, createEditorReorderBlocksCommand as wu, cancelPreview as x, isOfferingsPreviewSourceKey as xa, isRotationDimensionSwap as xc, Pencil as xd, planPageDesignLayoutLookCompatibility as xi, Input as xl, useUniqueId as xn, toLocationMapHydrationProps as xo, buildCheckoutInteractiveIslandProps as xr, resolveIconPickerPreset as xs, canUndoHistory as xt, clsx as xu, usePreviewThemeOverlay as y, buildOfferingsPreviewRenderStates as ya, resolveMediaSlotContract as yc, Redo2 as yd, buildEditorModelRuntimeFieldsByBlockId as yi, PopoverContent as yl, useCombinedRefs as yn, buildGoogleMapsDirectionsUrl as yo, cartBlockDefinition as yr, parseSiteIconStyleGuideVersionId as ys, useOptionalEditorUiStoreInstance as yt, useComposedRefs as yu, setPaletteOverrides as z, calendarTabViewsSchema as za, parseThemeButtonVariantId as zc, EyeOff as zd, BACKGROUND_BODY_TEXT_MIN_CONTRAST_RATIO as zi, CollapsibleContent as zl, isInternalResolvedLinkValue as zn, buildInteractiveIslandProps as zo, augmentManifestWithStyleGroups as zr, FileArchiveIcon as zs, ManifestForm as zt, publicEventPricingCurrency as zu };
|
|
157309
|
+
export { PreviewRichTextEditor as $, bindingSchema as $a, useBlockContext as $c, ChevronLeft as $d, getComponentBorderWidthPx as $i, DropdownMenuContent as $l, buildEventCalendarListingRender as $n, assertNever$5 as $o, ctaCopyFragment as $r, UploadIcon as $s, deleteEntrySlotBlock as $t, unsafeAsCustomerPassId as $u, markApplySaving as A, isSemanticSpacing as Aa, getImageUrl as Ac, Image as Ad, findTypographyPreset as Ai, Root2$1 as Al, SITE_CHROME_VISIBLE_HEADER_SELECTOR as An, formatTime as Ao, formatCommercePrice as Ar, CalendarIcon as As, createRoutingHelpers as At, formatBookingDate as Au, setPaletteOverrides as B, normalizeOptionalId as Ba, TokenResolver as Bc, Eye as Bd, sectionTransitionVariantForBoundaryOptionId as Bi, Collapsible as Bl, isInternalResolvedLinkValue as Bn, blockBookingPaymentTermsSchema as Bo, augmentManifestWithStyleGroups as Br, ExternalLinkIcon as Bs, ManifestForm as Bt, formatBookingPriceDisplay as Bu, createStyleConfiguratorState as C, isOfferingsPreviewSourceKey as Ca, isRotationDimensionSwap as Cc, Pencil as Cd, planPageDesignLayoutLookCompatibility as Ci, Input as Cl, isSupportedLoaderEndpoint as Cn, toLocationMapHydrationProps as Co, buildProductDetailInteractiveIslandProps as Cr, resolveIconPickerPreset as Cs, pushHistoryEntry as Ct, clsx as Cu, isPreviewingChange as D, resolveOfferingsPreviewGroupCta as Da, resolveMediaTransformForAspect as Dc, Minus as Dd, getCuratedSiteStyle as Di, TabsTrigger as Dl, listBlockDescriptors as Dn, formatEventPrice as Do, buildCartDisplay as Dr, ArrowDownIcon as Ds, recordsEqual as Dt, unsafeAsEditorBlockId as Du, dismissWarnings as E, resolveOfferingsPreviewCoursePath as Ea, parseAspectRatioValue as Ec, Monitor as Ed, designRuntimeRulesForTheme as Ei, TabsList as El, getBlockDefinition as En, formatEventDateParts as Eo, getShopDisplayForItems as Er, isSemanticIconId as Es, unsafeAsLinkedContentEntryId as Et, createEditorReorderBlocksCommand as Eu, previewHeaderStyle as F, getEventRuntimeFiltersKey as Fa, generateButtonCss as Fc, FileText as Fd, getHeaderLayout as Fi, DialogContent as Fl, mediaTransforms as Fn, resolveEventLinkProps as Fo, deriveCommerceCheckoutState as Fr, ChevronUpIcon as Fs, PaletteProvider as Ft, getBookingLocalDateKey as Fu, beginAutosaveBatch as G, eventLayoutSchema as Ga, mergeStyles as Gc, Copy as Gd, parseBackgroundAppearanceColorToken as Gi, Trigger$3 as Gl, productDetailBlockDefinition as Gn, defineClientOwnedBlockRuntime as Go, faqHeadingFragment as Gr, InfoIcon as Gs, createStoreBackend as Gt, publicEventTicketTypes as Gu, syncStyleConfiguratorState as H, columnOptionSchema as Ha, themeButtonClassName as Hc, EllipsisVertical as Hd, backgroundAppearanceColorTokenNames as Hi, CollapsibleTrigger as Hl, useImageResolveContextOptional as Hn, createInteractiveIslandCodec as Ho, headingFragment as Hr, FileAudioIcon as Hs, createManifestValidation as Ht, publicEventPricingMode as Hu, previewPaletteVariant as I, resolveEventCalendarListPageSize as Ia, generateEffectsCSS as Ic, FileSpreadsheet as Id, getHeaderStyle as Ii, DialogDescription as Il, layoutTransforms as In, getEventAvailability as Io, parseStoredCommerceCartState as Ir, CircleMinusIcon as Is, usePalette as It, parseBookingLocalDate as Iu, enqueueTransaction as J, weekStartSchema as Ja, useBackendWatch as Jc, CircleCheck as Jd, paletteVariants as Ji, CardContent as Jl, eventListingBlockDefinition as Jn, composeHeaderSectionWrapperClassName as Jo, footerBottomTextFragment as Jr, MinusIcon as Js, applyPageDesignEditorAction as Jt, expectParsedBrandedId as Ju, confirmAutosaveBatch as K, filterAutoShowSchema as Ka, rgbColorValue as Kc, CirclePlus as Kd, defaultThemeTokens as Ki, createCollapsibleScope as Kl, newsletterSignupBlockDefinition as Kn, defineProgressiveBlockRuntime as Ko, blogFeaturedPostFragment as Kr, MailIcon as Ks, listContentTypes as Kt, formatCurrencyAmount as Ku, previewSiteStyle as L, resolveEventListPaginationAction as La, generateShadowValue$1 as Lc, FilePlay as Ld, defaultSectionTransitionVariantForFamily as Li, DialogFooter as Ll, uiTransforms as Ln, getLocalDateKey as Lo, productItemKey as Lr, CirclePlusIcon as Ls, recoveryConflictCopy as Lt, resolveBookingTimeZoneId as Lu, previewButtonPersonality as M, buildEventRuntimeFilters as Ma, siblingPath as Mc, ImagePlus as Md, requireEntriesForCuratedChoices as Mi, ScrollableDialogContent as Ml, planSiteOverlayHeaderClearance as Mn, getContainerClass as Mo, EMPTY_COMMERCE_CART_STATE as Mr, ChevronDownIcon as Ms, deriveRouteMetadataPresentation as Mt, formatBookingInstant as Mu, previewFooterLook as N, eventListPaginationActionSchema as Na, buttonPersonalities as Nc, GripVertical as Nd, findFooterLook as Ni, Dialog as Nl, visibleHeaderClearancePx as Nn, groupEventsByDate as No, buildPassCartItem as Nr, ChevronLeftIcon as Ns, resolvePageRouteSlug as Nt, formatBookingTime as Nu, markApplyFailed as O, resolveOfferingsPreviewGroupOrderEntries as Oa, asRecord as Oc, Maximize2 as Od, surfaceResolutionContextFromTheme as Oi, Content as Ol, siteFooterManifest as On, formatEventPriceDisplay as Oo, buildProductCardDisplay as Or, ArrowLeftIcon as Os, useMultiAutosave as Ot, unsafeAsEditorBlockValues as Ou, previewHeaderLayout as P, eventPageSizeSchema as Pa, findButtonPersonality as Pc, File as Pd, getFooterLayout as Pi, DialogClose as Pl, contentTransforms as Pn, resolveEventCta as Po, buildProductCartItem as Pr, ChevronRightIcon as Ps, resolveContentTitle as Pt, formatLocalScheduleDate as Pu, resolvePreviewSidebarTab as Q, when as Qa, isNonEmptyValue as Qc, ChevronRight as Qd, pageDesignEditorBackgroundOverrideOwner as Qi, DropdownMenu as Ql, buildEventCalendarListingDisplay as Qn, asDesignBlockId as Qo, testimonialsHeadingFragment as Qr, ShoppingCartIcon as Qs, deleteBlock as Qt, unsafeAsAppointmentServiceId as Qu, previewTypographyPreset as R, normalizeCsvIds as Ra, generateBaseInteractiveCSS as Rc, FileHeadphone as Rd, sectionTransitionFamilies as Ri, DialogHeader as Rl, formattingTransforms as Rn, getLocalMinuteOfDay as Ro, reduceCommerceCart as Rr, ClockIcon as Rs, unfinishedBlockCopy as Rt, toBookingTimeZone as Ru, cancelPreview as S, inferLegacyOfferingsPreviewGroupOrder as Sa, attachRenderableMediaAssetFields as Sc, Plus as Sd, normalEditorCuratedPromotedFieldPaths as Si, PopoverTrigger as Sl, useUniqueId as Sn, normalizeLocationMapProps as So, buildCheckoutInteractiveIslandProps as Sr, isIconPickerPreset as Ss, createHistoryState as St, cn$1 as Su, dismissNotices as T, normalizeOfferingsPreviewItemLimit as Ta, formatAspectRatioToken as Tc, Palette as Td, curatedSiteStyles as Ti, TabsContent as Tl, GRADIENT_PRESETS as Tn, formatEventCompactDateRail as To, buildShopInteractiveIslandProps as Tr, getSemanticIconComponent as Ts, undoHistory as Tt, createEditorRemoveBlockCommand as Tu, toggleRow as U, eventButtonVariantSchema as Ua, backgroundColorStyle as Uc, Crop as Ud, backgroundAppearanceQuickColorTokenNames as Ui, Content$1 as Ul, shopBlockDefinition as Un, defineInteractiveIslandMetaKeys as Uo, cardFragment as Ur, FileSpreadsheetIcon as Us, FormRenderer as Ut, publicEventPricingType as Uu, styleConfiguratorHistoryEntryForPersistedSelection as V, calendarTabViewsSchema as Va, parseThemeButtonVariantId as Vc, EyeOff as Vd, BACKGROUND_BODY_TEXT_MIN_CONTRAST_RATIO as Vi, CollapsibleContent as Vl, ImageResolveContextProvider as Vn, buildInteractiveIslandProps as Vo, richTextFragment as Vr, FileArchiveIcon as Vs, createManifestFormAdapter as Vt, publicEventPricingCurrency as Vu, typographySelectionSnapshotFromFlat as W, eventCalendarDefaultViewSchema as Wa, borderColorStyle as Wc, CreditCard as Wd, foregroundTokenForBackgroundAppearanceColorToken as Wi, Root$3 as Wl, productListBlockDefinition as Wn, createZodCodec as Wo, faqAccordionFragment as Wr, FileTextIcon as Ws, evaluateVisibility as Wt, publicEventScalarPrice as Wu, rejectAutosaveBatch as X, eventCalendarListLayoutOptions as Xa, getModalConfig as Xc, ChevronsUpDown as Xd, isThemeV2NormalEditorRawStyleFieldName as Xi, CardTitle as Xl, eventCalendarBlockDefinition as Xn, splitPositioningClasses as Xo, formCopyFragment as Xr, PlayIcon as Xs, createBlock as Xt, parseSiteId as Xu, idleEditorTransactionQueueState as Y, eventCalendarListLayoutCompatibleDisplayModeValues as Ya, getFieldIntent as Yc, CircleAlert as Yd, paletteOverridesSchema as Yi, CardHeader as Yl, buildEventListingInteractiveIslandProps as Yn, markEditableSurfaceForwarding as Yo, formEmbedFragment as Yr, PhoneIcon as Ys, getPageDesignEditorState as Yt, parseMediaAssetId as Yu, createOptimisticActionRunner as Z, el as Za, isHeaderField as Zc, ChevronUp as Zd, isThemeV2NormalEditorRawStylePath as Zi, Surface as Zl, buildEventCalendarInteractiveIslandProps as Zn, planSiteChromePlacement as Zo, testimonialsCarouselFragment as Zr, PlusIcon as Zs, createEntrySlotBlock as Zt, unsafeAsAppointmentResourceId as Zu, usePreviewDesignCoordinator as _, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as _a, resolveMediaNodeResponsiveImage as _c, Smartphone as _d, formatSiteChromeBackgroundTokenLabel as _i, SelectValue as _l, useSensors as _n, resolveOnColorForThemeToken as _o, courseRegistrationBlockDefinition as _r, getBlockIconSemanticFallbackId as _s, useEditorUiStore as _t, composeEventHandlers as _u, previewDesignHistoryDomainForCommand as a, NAV_LINK_PADDING_MAP as aa, coerceInlineTextWithFallback as ac, err as ad, Archive as af, PUBLIC_FILE_FIELD_KINDS as ai, unmapValueFromSelect as al, DEFAULT_LAUNCH_READINESS_INPUT as an, normalizeEventScheduleScope as ao, findEventByOccurrenceId as ar, ICON_SIZE_PX as as, getRichTextImagePositionFromTarget as at, __awaiter as au, applyResolvedSelections as b, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as ba, SECTION_BACKGROUND_MIN_SOURCE_WIDTH as bc, RotateCcw as bd, buildEditorModelRuntimeFieldsByBlockId as bi, Popover as bl, useCombinedRefs as bn, featuresFromHex as bo, cartBlockDefinition as br, resolveBlockIconRenderValue as bs, canRedoHistory as bt, cva as bu, selectionSnapshotFromApplySiteStyleSelectionResponse as c, FONT_WEIGHT_MAP as ca, parseInlineTextFromUnknown as cc, X as cd, __toESM as cf, MQ_MD_DOWN as ci, Tooltip as cl, DndContext as cn, normalizeEventSurfaceScope as co, resolveEventRequiresPayment as cr, FEATURE_CARD_ICON_TREATMENTS as cs, EditorProvider as ct, __read as cu, buildSiteChromeLookModels as d, LABEL_FONT_SIZE_MAP as da, buildResolveImageUrlContext as dc, TriangleAlert as dd, MQ_TABLET_ONLY as di, TooltipTrigger as dl, closestCenter as dn, generateCardCss as do, getStepNumber as dr, getFeatureCardIconCompletion as ds, useUISelector as dt, __spreadArrays as du, getComponentShadowVar as ea, XIcon as ec, unsafeAsFormId as ed, ChevronDown as ef, heroCtaRowFragment as ei, SdkConfigProvider as el, listEntryPageContentSlots as en, eventBlockKindValues as eo, formBlockDefinition as er, ACCORDION_OPEN_ACCENT_THICKNESS as es, PreviewInlineTextEditor as et, DropdownMenuItem as eu, cycleSiteChromeLookId as f, expandPalette as fa, computeMediaTransformStyle as fc, Trash2 as fd, BACKGROUND_POSITION_PRESET_VALUES as fi, Textarea as fl, getClientRect as fn, statusMutedColorDeclaration as fo, getWizardStepsForContext as fr, shouldReserveFeatureCardIconZone as fs, EditableBlockProvider as ft, useId$1 as fu, PreviewDesignCoordinatorProvider as g, ctaButton as ga, resolveImageUrlWithContext as gc, Sparkles as gd, resolveBackgroundColorValue as gi, SelectTrigger as gl, useSensor as gn, isCssColorLiteral as go, buildGiftingInteractiveIslandProps as gr, buildGeneratedBlockIconRenderAssetLookupFromUnknown as gs, classifyHistoryShortcut as gt, createContextScope as gu, planSiteChromeLookSelection as h, runTransforms as ha, renderVideo as hc, Star as hd, resolveSectionForegroundStyles as hi, SelectItem as hl, useDroppable as hn, normalizeCardVariantRole as ho, giftingBlockDefinition as hr, toFeatureCardIconSuggestionInputs as hs, useEntryEditorController as ht, useControllableState as hu, usePreviewDesignHistoryOrder as i, NAV_LINK_LETTER_SPACING_MAP as ia, isRecord$11 as ic, unsafeAsPositiveSeconds as id, ArrowDown as if, defineFragment as ii, mapOptionValueForSelect as il, decodePublicProductCategorySelectorQuery as in, normalizeEventCategoryIdsCsv as io, toRegistrationEvents as ir, ICON_CONFIG as is, RichTextEditorSurface as it, __assign as iu, openRow as j, resolveSpacing as ja, getAtPath as jc, ImageUp as jd, typographyPresets as ji, Trigger$2 as jl, SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR as jn, getCardOrientation as jo, formatInterval as jr, CheckIcon as js, createSnapshotFromPageRecord as jt, formatBookingDateTime as ju, markApplySaved as k, resolveOfferingsPreviewGroups as ka, getDirectImageUrlForMediaAsset as kc, LoaderCircle as kd, evaluateTypographyFontSlot as ki, List as kl, siteHeaderManifest as kn, formatEventTeacherLine as ko, buildProductDetailDisplay as kr, ArrowRightIcon as ks, useDebouncedLatestSave as kt, addLocalScheduleDays as ku, planSiteStylePreviewChange as l, INPUT_FONT_SIZE_MAP as la, ImagePresets as lc, Upload as ld, MQ_SM_DOWN as li, TooltipContent as ll, KeyboardCode as ln, normalizeEventVenueId as lo, resolveRegistrationTarget as lr, applyFeatureCardIconSuggestions as ls, useEditor$1 as lt, __rest as lu, planSiteChromeFooterLayoutSelection as m, createTransformRegistry as ma, renderAudio as mc, Tablet as md, boxStylesTransforms as mi, SelectContent as ml, useDraggable as mn, normalizeBoxStylesCardVariant as mo, resolveEventRegistrationScopedEvents as mr, suggestSemanticIconForFeatureCard as ms, useEntryController as mt, createCollection as mu, useSiteChromeCustomizeOptional as n, parseCustomCssRules as na, unwrapRichTextRoot as nc, unsafeAsPassId as nd, Box as nf, heroCopyFragment as ni, hasEmptyOption as nl, reorderBlocks as nn, eventSurfaceScopeValues as no, eventRegistrationBlockDefinition as nr, ACCORDION_TRIGGER_FONT_SCALE as ns, useRichTextEditor as nt, DropdownMenuSeparator as nu, selectPreviewDesignHistoryDomain as o, NAV_LINK_PADDING_X_MAP as oa, inlineTextToPlainText as oc, ok as od, __commonJSMin as of, siteOptionSources as oi, FieldFrame as ol, deriveLaunchReadiness as on, normalizeEventStaffMemberId as oo, findPreSelectedEvent as or, PUBLIC_DOWNLOAD_MEDIA_TYPES as os, insertOrReplaceRichTextImage as ot, __extends as ou, cycleableSiteChromeOptions as p, generateCssVars as pa, getCurrentResolveImageUrlContext as pc, Ticket as pd, getAnchorClasses as pi, Select$1 as pl, useDndContext as pn, generateShadowValue as po, normalizeEventRegistrationPageSurfaceSubject as pr, suggestFeatureCardSemanticIcons as ps, EntryControllerProvider as pt, useDirection as pu, deriveTransactionCapabilities as q, previewStageSchema as qa, textColorStyle as qc, CircleMinus as qd, findPaletteVariant as qi, Card as ql, buildNewsletterFormInteractiveIslandProps as qn, EDITABLE_SURFACE_FORWARDING_PROP as qo, singleButtonFragment as qr, MapPinIcon as qs, toRoutableLinkPayload as qt, assertNever$6 as qu, PreviewDesignHistoryOrderProvider as r, NAV_LINK_BORDER_RADIUS_MAP as ra, isObjectRecord$1 as rc, unsafeAsPositiveByteCount as rd, ArrowUp as rf, bodyCopyFragment as ri, mapCurrentValueForSelect as rl, reorderEntrySlotBlocks as rn, normalizeEventBlockKind as ro, buildEventRegistrationInteractiveIslandProps as rr, ACCORDION_TRIGGER_LETTER_SPACING as rs, EMPTY_DOC as rt, DropdownMenuTrigger as ru, buildApplySiteStyleSelectionBody as s, NAV_LINK_TEXT_SIZE_MAP as sa, isInlineTextEmpty as sc, lucide_react_exports as sd, __exportAll as sf, MQ_LG_UP as si, useField as sl, AMBIENT_BACKGROUND_ROLES as sn, normalizeEventSurfacePresetsCsv as so, resolveDiscountContext as sr, mediaSchema$1 as ss, InlineTextEditor as st, __generator as su, SiteChromeCustomizeProvider as t, parseBlockCustomCssRules as ta, createRichTextDocFromMarkdown as tc, unsafeAsMediaAssetId as td, Check as tf, ctaRowFragment as ti, useSdkConfig as tl, mutateBlockContent as tn, eventScheduleScopeValues as to, buildFormInteractiveIslandProps as tr, ACCORDION_SPACING_MAP as ts, PreviewTextEditor as tt, DropdownMenuLabel as tu, resolveStyleConfiguratorInitialSnapshot as u, INPUT_SPACING_MAP as ua, MediaPlaceholder as uc, Undo2 as ud, MQ_SM_UP as ui, TooltipProvider as ul, PointerSensor as un, publicEventSchema as uo, WIZARD_STEPS as ur, createFeatureCardIconKey as us, ContentFieldsForm as ut, __spreadArray as uu, PreviewThemeOverlayProvider as v, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as va, resolveMediaStorageUrl as vc, Settings as vd, PAGE_DESIGN_EDITOR_STATE_FETCH_ERROR_MESSAGE as vi, Label as vl, CSS$1 as vn, resolveTokenOrCssColorValue as vo, buildCourseRegistrationInteractiveIslandProps as vr, getGeneratedBlockIconStyleState as vs, useEditorUiStoreInstance as vt, Primitive as vu, deriveStyleConfiguratorCapabilities as w, normalizeOfferingsPreviewGroupOrder as wa, normalizeRightAngle as wc, PenLine as wd, resolveVisiblePromotedFieldPathsForEditorBlock as wi, Tabs as wl, gradientToCss as wn, formatDate as wo, buildProductListInteractiveIslandProps as wr, SEMANTIC_ICON_DEFINITIONS as ws, redoHistory as wt, createEditorInsertBlockCommand as wu, applyTypographyDraftPatch as x, buildOfferingsPreviewRenderStates as xa, resolveMediaSlotContract as xc, Redo2 as xd, retargetCompiledRuntimeFieldsForContentAdjacency as xi, PopoverContent as xl, useIsomorphicLayoutEffect$1 as xn, buildGoogleMapsDirectionsUrl as xo, buildCartInteractiveIslandProps as xr, parseSiteIconStyleGuideVersionId as xs, canUndoHistory as xt, useComposedRefs as xu, usePreviewThemeOverlay as y, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as ya, setContextResolveImageUrlContext as yc, Search as yd, applyCompiledRuntimeFieldsToContent as yi, Badge as yl, isKeyboardEvent as yn, getTextColorForBackground as yo, checkoutBlockDefinition as yr, parseBlockIconValue as ys, useOptionalEditorUiStoreInstance as yt, Button$1 as yu, resetTypographyToSaved as z, normalizeCsvString as za, generateInteractiveChildInheritanceCSS as zc, FileArchive as zd, sectionTransitionFamilyForBoundaryOptionId as zi, DialogTitle as zl, createManifestValidator as zn, resolveRuntimeEventPricing as zo, augmentManifest as zr, DownloadIcon as zs, validateBlockManifestIssues as zt, toScheduledBookingDateTime as zu };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type Result } from '../../../core/src/index';
|
|
1
2
|
export type Rfc6902AddOp = {
|
|
2
3
|
op: 'add';
|
|
3
4
|
path: string;
|
|
@@ -13,4 +14,59 @@ export type Rfc6902ReplaceOp = {
|
|
|
13
14
|
value: unknown;
|
|
14
15
|
};
|
|
15
16
|
export type Rfc6902Op = Rfc6902AddOp | Rfc6902RemoveOp | Rfc6902ReplaceOp;
|
|
16
|
-
export
|
|
17
|
+
export type Rfc6902JsonPointerPath = string & {
|
|
18
|
+
readonly __rfc6902JsonPointerPath: unique symbol;
|
|
19
|
+
};
|
|
20
|
+
export type ParsedRfc6902JsonPointerPath = Readonly<{
|
|
21
|
+
path: Rfc6902JsonPointerPath;
|
|
22
|
+
segments: readonly string[];
|
|
23
|
+
}>;
|
|
24
|
+
export type Rfc6902JsonPointerParseError = Readonly<{
|
|
25
|
+
kind: 'root_not_supported';
|
|
26
|
+
path: string;
|
|
27
|
+
}> | Readonly<{
|
|
28
|
+
kind: 'missing_leading_slash';
|
|
29
|
+
path: string;
|
|
30
|
+
}> | Readonly<{
|
|
31
|
+
kind: 'invalid_escape';
|
|
32
|
+
path: string;
|
|
33
|
+
}>;
|
|
34
|
+
export type Rfc6902ApplyError = Readonly<{
|
|
35
|
+
kind: 'invalid_path';
|
|
36
|
+
path: string;
|
|
37
|
+
}> | Readonly<{
|
|
38
|
+
kind: 'invalid_container';
|
|
39
|
+
path: string;
|
|
40
|
+
}> | Readonly<{
|
|
41
|
+
kind: 'invalid_array_index';
|
|
42
|
+
path: string;
|
|
43
|
+
segment: string;
|
|
44
|
+
}> | Readonly<{
|
|
45
|
+
kind: 'array_index_out_of_bounds';
|
|
46
|
+
path: string;
|
|
47
|
+
index: number;
|
|
48
|
+
}> | Readonly<{
|
|
49
|
+
kind: 'missing_key';
|
|
50
|
+
path: string;
|
|
51
|
+
key: string;
|
|
52
|
+
op: 'replace' | 'remove';
|
|
53
|
+
}>;
|
|
54
|
+
export type Rfc6902PatchError = Rfc6902JsonPointerParseError | Rfc6902ApplyError;
|
|
55
|
+
export type ParsedRfc6902AddOp = Omit<Rfc6902AddOp, 'path'> & {
|
|
56
|
+
path: ParsedRfc6902JsonPointerPath;
|
|
57
|
+
};
|
|
58
|
+
export type ParsedRfc6902RemoveOp = Omit<Rfc6902RemoveOp, 'path'> & {
|
|
59
|
+
path: ParsedRfc6902JsonPointerPath;
|
|
60
|
+
};
|
|
61
|
+
export type ParsedRfc6902ReplaceOp = Omit<Rfc6902ReplaceOp, 'path'> & {
|
|
62
|
+
path: ParsedRfc6902JsonPointerPath;
|
|
63
|
+
};
|
|
64
|
+
export type ParsedRfc6902Op = ParsedRfc6902AddOp | ParsedRfc6902RemoveOp | ParsedRfc6902ReplaceOp;
|
|
65
|
+
export declare function formatRfc6902JsonPointerParseError(error: Rfc6902JsonPointerParseError): string;
|
|
66
|
+
export declare function formatRfc6902ApplyError(error: Rfc6902ApplyError): string;
|
|
67
|
+
export declare function formatRfc6902PatchError(error: Rfc6902PatchError): string;
|
|
68
|
+
export declare function parseRfc6902JsonPointerPath(path: string): Result<ParsedRfc6902JsonPointerPath, Rfc6902JsonPointerParseError>;
|
|
69
|
+
export declare function applyParsedRfc6902PatchResult<T>(base: T, ops: readonly ParsedRfc6902Op[]): Result<T, Rfc6902ApplyError>;
|
|
70
|
+
export declare function applyParsedRfc6902Patch<T>(base: T, ops: readonly ParsedRfc6902Op[]): T;
|
|
71
|
+
export declare function applyRfc6902PatchResult<T>(base: T, ops: readonly Rfc6902Op[]): Result<T, Rfc6902PatchError>;
|
|
72
|
+
export declare function applyRfc6902Patch<T>(base: T, ops: readonly Rfc6902Op[]): T;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { type Theme } from '../../../theme-core/src/index';
|
|
3
|
+
import { type ParsedRfc6902JsonPointerPath } from './rfc6902';
|
|
3
4
|
export declare const DEFAULT_THEME_PATCH_MAX_OPS = 25;
|
|
4
5
|
export declare const DEFAULT_THEME_PATCH_MAX_SERIALIZED_BYTES = 20000;
|
|
5
6
|
export declare const DEFAULT_THEME_PATCH_FORBIDDEN_PATH_PREFIXES: readonly ["/axes"];
|
|
7
|
+
export declare const SUPPORTED_THEME_PATCH_OPS: readonly ["add", "replace", "remove"];
|
|
6
8
|
type JsonPrimitive = string | number | boolean | null;
|
|
7
9
|
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
8
10
|
[key: string]: JsonValue;
|
|
@@ -32,13 +34,21 @@ export declare const ThemePatchOpsSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.
|
|
|
32
34
|
op: z.ZodLiteral<"remove">;
|
|
33
35
|
path: z.ZodString;
|
|
34
36
|
}, z.core.$strip>], "op">>;
|
|
35
|
-
export type
|
|
36
|
-
|
|
37
|
+
export type ThemePatchValidationErrorKind = 'empty_patch' | 'too_many_ops' | 'too_large' | 'non_serializable' | 'invalid_path' | 'forbidden_path' | 'apply_failed' | 'schema_failed' | 'runtime_failed';
|
|
38
|
+
export type ThemePatchValidationError = Readonly<{
|
|
39
|
+
kind: ThemePatchValidationErrorKind;
|
|
40
|
+
message: string;
|
|
41
|
+
path?: string;
|
|
42
|
+
}>;
|
|
43
|
+
export type ThemePatchValidationResult = Readonly<{
|
|
44
|
+
ok: true;
|
|
37
45
|
theme: Theme;
|
|
38
|
-
} | {
|
|
39
|
-
|
|
40
|
-
error:
|
|
41
|
-
}
|
|
46
|
+
}> | Readonly<{
|
|
47
|
+
ok: false;
|
|
48
|
+
error: ThemePatchValidationError;
|
|
49
|
+
}>;
|
|
50
|
+
export type ThemePatchJsonPointerPath = ParsedRfc6902JsonPointerPath;
|
|
51
|
+
export declare function formatThemePatchValidationError(error: ThemePatchValidationError): string;
|
|
42
52
|
export declare function validateThemePatch(args: {
|
|
43
53
|
baseTheme: Theme;
|
|
44
54
|
ops: ThemePatchOp[];
|