@riverbankcms/sdk 0.103.0 → 0.104.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PreviewEditorSidebar-DkNpCPja.mjs → PreviewEditorSidebar-CmaPXdKu.mjs} +148 -128
- package/dist/{PreviewEditorUI-DeNKtqk3.mjs → PreviewEditorUI-C5xRTh2b.mjs} +3 -3
- package/dist/{PreviewQueryProvider-ZF6TXq5Q.mjs → PreviewQueryProvider-CStABBUh.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-5bCsXK2y.mjs → SdkPreviewModeRuntime-Eks51NcN.mjs} +1204 -566
- package/dist/{SiteChromeCustomizeContext-CO1sTK_W.mjs → SiteChromeCustomizeContext-Bt8zb3qu.mjs} +5330 -4533
- package/dist/_dts/api/src/bookingVerticals.d.ts +64 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +6 -3
- package/dist/_dts/api/src/endpoints.d.ts +10 -3
- package/dist/_dts/api/src/index.d.ts +1 -1
- package/dist/_dts/api/src/siteIcons.d.ts +39 -43
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +3 -3
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +36 -7
- package/dist/_dts/block-form/src/widgets/SliderField/SliderField.d.ts +3 -3
- package/dist/_dts/block-form/src/widgets/SliderField/sliderValue.d.ts +36 -0
- package/dist/_dts/block-form/src/widgets/utils/readNumericUiConfig.d.ts +3 -0
- package/dist/_dts/blocks/src/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/feature-card-icons.d.ts +29 -29
- package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +135 -0
- package/dist/_dts/blocks/src/system/icons/generatedAssets.d.ts +28 -0
- package/dist/_dts/blocks/src/system/icons/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/icons/value.d.ts +3 -6
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +240 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/feature-card-icon.d.ts +1 -0
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +2 -0
- package/dist/_dts/content-editor/src/ui/stores/generatedIconAssetsStore.d.ts +9 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +208 -0
- package/dist/_dts/editor/src/index.d.ts +3 -1
- package/dist/_dts/editor/src/primitives/rich-text/RichTextEditorSurface.d.ts +14 -6
- package/dist/_dts/editor/src/primitives/rich-text/RichTextToolbar.d.ts +23 -4
- package/dist/_dts/editor/src/primitives/rich-text/config.d.ts +6 -0
- package/dist/_dts/editor/src/primitives/rich-text/extensions/RichTextLink.d.ts +1 -0
- package/dist/_dts/editor/src/primitives/rich-text/paste.d.ts +10 -0
- package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +7 -0
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +4 -4
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +2 -3
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +4 -4
- package/dist/_dts/editor-blocks/src/block-editor/FeatureCardIconsPanel.d.ts +4 -4
- package/dist/_dts/editor-blocks/src/block-editor/GeneratedIconSetDialog.d.ts +3 -3
- package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +2 -3
- package/dist/_dts/editor-blocks/src/block-editor/blockHeaderActionPlan.d.ts +1 -5
- package/dist/_dts/editor-blocks/src/block-editor/featureCardIconActions.d.ts +25 -19
- package/dist/_dts/editor-blocks/src/block-editor/generatedIconApplyCoordination.d.ts +32 -0
- package/dist/_dts/editor-blocks/src/widgets/icon-picker/GeneratedIconLibraryContext.d.ts +28 -0
- package/dist/_dts/editor-blocks/src/widgets/icon-picker/index.d.ts +2 -0
- package/dist/_dts/editor-blocks/src/widgets/icon-picker/loaders.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/preview/CustomizeBackgroundControlRows.d.ts +15 -0
- package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/EntrySlotBlockEditorPanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +4 -3
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +4 -3
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +4 -3
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +3 -4
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +5 -4
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +44 -18
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +4 -5
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +22 -1
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +12 -4
- package/dist/_dts/sdk/src/client/management/types.d.ts +3 -0
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +0 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +5 -2
- 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/mock-themes/all.d.ts +9 -9
- package/dist/_dts/theme-core/src/navigation/types.d.ts +2 -0
- package/dist/_dts/theme-core/src/palette/colors.d.ts +84 -0
- package/dist/_dts/theme-core/src/palette/{variants → curated}/brand-led.d.ts +12 -24
- package/dist/_dts/theme-core/src/palette/{variants → curated}/high-contrast.d.ts +9 -18
- package/dist/_dts/theme-core/src/palette/{variants → curated}/index.d.ts +67 -119
- package/dist/_dts/theme-core/src/palette/{variants → curated}/soft-natural.d.ts +12 -24
- package/dist/_dts/theme-core/src/palette/{variants → curated}/types.d.ts +50 -60
- package/dist/_dts/theme-core/src/palette/{variants → curated}/warm-dark.d.ts +6 -12
- package/dist/_dts/theme-core/src/palette/{variants → curated}/warm-neutral.d.ts +12 -24
- package/dist/_dts/theme-core/src/palette/editorState.d.ts +45 -0
- package/dist/_dts/theme-core/src/palette/index.d.ts +25 -14
- package/dist/_dts/theme-core/src/palette/legacyRuntimeProjection.d.ts +55 -0
- package/dist/_dts/theme-core/src/palette/legacySelection.d.ts +34 -0
- package/dist/_dts/theme-core/src/palette/libraryModel.d.ts +58 -0
- package/dist/_dts/theme-core/src/palette/paletteCompatibilityTransition.d.ts +232 -0
- package/dist/_dts/theme-core/src/palette/persistenceReadSource.d.ts +118 -0
- package/dist/_dts/theme-core/src/palette/resolveSelection.d.ts +50 -0
- package/dist/_dts/theme-core/src/palette/selection.d.ts +72 -0
- package/dist/_dts/theme-core/src/palette/sitePalettePersistence.d.ts +34 -0
- package/dist/_dts/theme-core/src/palette/themePaletteCompatibility.d.ts +58 -0
- package/dist/_dts/theme-core/src/schema.d.ts +9 -0
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +22 -22
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +31 -9
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +22 -16
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +6 -5
- package/dist/_dts/theme-core/src/site-styles/themeParity.d.ts +21 -0
- package/dist/_dts/ui/src/palette/PaletteTokenEditor.d.ts +2 -1
- package/dist/cli/index.mjs +7805 -7449
- package/dist/client/{DiscountCodeDisclosure-ChVZwVtS.mjs → DiscountCodeDisclosure-Dit2aItR.mjs} +1 -1
- package/dist/client/{EventCombined.client-PZtXbH6R.mjs → EventCombined.client-BnREyCjf.mjs} +3 -3
- package/dist/client/{EventListing.client-C4AMTXec.mjs → EventListing.client-0uHld51x.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-B0w8_i0u.mjs → LeafletStaticMap-DJcvSfmj.mjs} +1 -1
- package/dist/client/{MagicLinkForm-DF0ZGhIu.mjs → MagicLinkForm-EAsIktfw.mjs} +2 -2
- package/dist/client/{StepIndicator-PccQ89Ct.mjs → StepIndicator-CRR17tYI.mjs} +2 -2
- package/dist/client/{accordion-CTNWT1lk.mjs → accordion-B47HIuuH.mjs} +1 -1
- package/dist/client/{bookingForm-DYixwPqP.mjs → bookingForm-I1E-8F9P.mjs} +6 -6
- package/dist/client/{buttons-CySQwlFs.mjs → buttons-BbPn8OKA.mjs} +1 -1
- package/dist/client/{carousel-W75iYR0M.mjs → carousel-OlM7SyBs.mjs} +1 -1
- package/dist/client/{cart-Ca_DGWQq.mjs → cart-BKpG5jz6.mjs} +3 -3
- package/dist/client/{checkout-STgKTsNh.mjs → checkout-Dmmr6qoU.mjs} +3 -3
- package/dist/client/client.mjs +8706 -8320
- package/dist/client/{courseRegistration-DQI1cu1u.mjs → courseRegistration-CflZiqGk.mjs} +7 -7
- package/dist/client/{eventCalendar-BJrHpofg.mjs → eventCalendar-BvoLWcp-.mjs} +5 -5
- package/dist/client/{eventCombined-DPtqBHaH.mjs → eventCombined-DsrO8t_t.mjs} +2 -2
- package/dist/client/{eventDetails-Brt31CDo.mjs → eventDetails-C3hxgcJm.mjs} +3 -3
- package/dist/client/{eventListing-BrClHJOq.mjs → eventListing-C-hb237X.mjs} +2 -2
- package/dist/client/{eventRegistration-DxlNlVUC.mjs → eventRegistration-B0gyzDGi.mjs} +7 -7
- package/dist/client/{form-Vp5cGzDF.mjs → form-C_RUi6oJ.mjs} +2 -2
- package/dist/client/{headerSection-DL2xjRgW.mjs → headerSection-IKQiD2U0.mjs} +3 -3
- package/dist/client/hooks.mjs +4845 -4663
- package/dist/client/{locationMap-B0EjoXQS.mjs → locationMap-8ZBrMzRJ.mjs} +2 -2
- package/dist/client/{newsletterForm-BlV9VRlq.mjs → newsletterForm-CYk3ucwj.mjs} +2 -2
- package/dist/client/{pricing-DmRD7Tjx.mjs → pricing-B5GmvfIH.mjs} +1 -1
- package/dist/client/{productDetail-BLTQsY2f.mjs → productDetail-BjS2Dqzo.mjs} +3 -3
- package/dist/client/{productList-R8lsMpRs.mjs → productList-BOHvC8My.mjs} +3 -3
- package/dist/client/{propsDecoder-DgAshF92.mjs → propsDecoder-WS6UEJwZ.mjs} +7 -0
- package/dist/client/rendering/client.mjs +3606 -3281
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +8569 -8190
- package/dist/client/{shop-DWjyje1s.mjs → shop-CON03-wN.mjs} +6 -6
- package/dist/client/{shop-commerce-CSKCR87d.mjs → shop-commerce-DlqrFgH8.mjs} +5 -5
- package/dist/client/{shop-commerce-store-DxPnE-iN.mjs → shop-commerce-store-l74-Kne6.mjs} +1 -1
- package/dist/client/{shopShared-OOeAkFq7.mjs → shopShared-CQheEXSg.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-Bp6X7XgG.mjs → useDiscountCodeUi-v6OluyWl.mjs} +1 -1
- package/dist/client/{useEventFilters-B489x9TO.mjs → useEventFilters-BqSTcNOf.mjs} +3 -3
- package/dist/client/{usePolling-BKP66stL.mjs → usePolling-DMfADjIF.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +10 -3
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +10 -3
- package/dist/{previewAuthStore-ByPPZqmp.mjs → previewAuthStore-CfquDtTh.mjs} +10 -3
- package/dist/{sdk-runtime-C8whifOy.mjs → sdk-runtime-BUmJ0DaT.mjs} +2 -2
- package/dist/{separator-CM2C5Axs.mjs → separator-Dd-JYok7.mjs} +1 -1
- package/dist/server/components.mjs +9871 -9557
- package/dist/server/config-validation.mjs +4869 -4687
- package/dist/server/config.mjs +4869 -4687
- package/dist/server/data.mjs +4846 -4664
- package/dist/server/index.mjs +11 -4
- package/dist/server/next.mjs +8665 -8344
- package/dist/server/page-converter.mjs +4749 -4575
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +9816 -9586
- package/dist/server/rendering.mjs +9880 -9566
- package/dist/server/routing.mjs +4975 -4704
- package/dist/server/server.mjs +4819 -4630
- package/dist/server/theme-bridge.mjs +207 -114
- package/dist/server/theme.mjs +92 -91
- package/dist/styles/index.css +20 -0
- package/package.json +1 -1
|
@@ -8789,6 +8789,8 @@ export type Database = {
|
|
|
8789
8789
|
generated_icon_assets: {
|
|
8790
8790
|
Row: {
|
|
8791
8791
|
byte_length: number;
|
|
8792
|
+
candidate_storage_bucket: string | null;
|
|
8793
|
+
candidate_storage_path: string | null;
|
|
8792
8794
|
card_key: string;
|
|
8793
8795
|
created_at: string;
|
|
8794
8796
|
height: number;
|
|
@@ -8799,11 +8801,14 @@ export type Database = {
|
|
|
8799
8801
|
set_id: string;
|
|
8800
8802
|
site_id: string;
|
|
8801
8803
|
sort_order: number;
|
|
8804
|
+
subject_label: string | null;
|
|
8802
8805
|
updated_at: string;
|
|
8803
8806
|
width: number;
|
|
8804
8807
|
};
|
|
8805
8808
|
Insert: {
|
|
8806
8809
|
byte_length: number;
|
|
8810
|
+
candidate_storage_bucket?: string | null;
|
|
8811
|
+
candidate_storage_path?: string | null;
|
|
8807
8812
|
card_key: string;
|
|
8808
8813
|
created_at?: string;
|
|
8809
8814
|
height: number;
|
|
@@ -8814,11 +8819,14 @@ export type Database = {
|
|
|
8814
8819
|
set_id: string;
|
|
8815
8820
|
site_id: string;
|
|
8816
8821
|
sort_order?: number;
|
|
8822
|
+
subject_label?: string | null;
|
|
8817
8823
|
updated_at?: string;
|
|
8818
8824
|
width: number;
|
|
8819
8825
|
};
|
|
8820
8826
|
Update: {
|
|
8821
8827
|
byte_length?: number;
|
|
8828
|
+
candidate_storage_bucket?: string | null;
|
|
8829
|
+
candidate_storage_path?: string | null;
|
|
8822
8830
|
card_key?: string;
|
|
8823
8831
|
created_at?: string;
|
|
8824
8832
|
height?: number;
|
|
@@ -8829,6 +8837,7 @@ export type Database = {
|
|
|
8829
8837
|
set_id?: string;
|
|
8830
8838
|
site_id?: string;
|
|
8831
8839
|
sort_order?: number;
|
|
8840
|
+
subject_label?: string | null;
|
|
8832
8841
|
updated_at?: string;
|
|
8833
8842
|
width?: number;
|
|
8834
8843
|
};
|
|
@@ -8868,6 +8877,9 @@ export type Database = {
|
|
|
8868
8877
|
prompt_fingerprint: string;
|
|
8869
8878
|
provider_name: string;
|
|
8870
8879
|
site_id: string;
|
|
8880
|
+
source_content_fingerprint: string | null;
|
|
8881
|
+
source_fingerprint_version: number | null;
|
|
8882
|
+
source_snapshot: Json | null;
|
|
8871
8883
|
status: string;
|
|
8872
8884
|
style_guide_source_fingerprint: string;
|
|
8873
8885
|
style_guide_version_id: string;
|
|
@@ -8885,6 +8897,9 @@ export type Database = {
|
|
|
8885
8897
|
prompt_fingerprint: string;
|
|
8886
8898
|
provider_name: string;
|
|
8887
8899
|
site_id: string;
|
|
8900
|
+
source_content_fingerprint?: string | null;
|
|
8901
|
+
source_fingerprint_version?: number | null;
|
|
8902
|
+
source_snapshot?: Json | null;
|
|
8888
8903
|
status?: string;
|
|
8889
8904
|
style_guide_source_fingerprint: string;
|
|
8890
8905
|
style_guide_version_id: string;
|
|
@@ -8902,6 +8917,9 @@ export type Database = {
|
|
|
8902
8917
|
prompt_fingerprint?: string;
|
|
8903
8918
|
provider_name?: string;
|
|
8904
8919
|
site_id?: string;
|
|
8920
|
+
source_content_fingerprint?: string | null;
|
|
8921
|
+
source_fingerprint_version?: number | null;
|
|
8922
|
+
source_snapshot?: Json | null;
|
|
8905
8923
|
status?: string;
|
|
8906
8924
|
style_guide_source_fingerprint?: string;
|
|
8907
8925
|
style_guide_version_id?: string;
|
|
@@ -14609,6 +14627,53 @@ export type Database = {
|
|
|
14609
14627
|
}
|
|
14610
14628
|
];
|
|
14611
14629
|
};
|
|
14630
|
+
site_palettes: {
|
|
14631
|
+
Row: {
|
|
14632
|
+
canonical_color_hash: string;
|
|
14633
|
+
colors: Json;
|
|
14634
|
+
created_at: string;
|
|
14635
|
+
id: string;
|
|
14636
|
+
mode: string;
|
|
14637
|
+
origin_kind: string;
|
|
14638
|
+
origin_reference: string | null;
|
|
14639
|
+
site_id: string;
|
|
14640
|
+
updated_at: string;
|
|
14641
|
+
version: number;
|
|
14642
|
+
};
|
|
14643
|
+
Insert: {
|
|
14644
|
+
canonical_color_hash: string;
|
|
14645
|
+
colors: Json;
|
|
14646
|
+
created_at?: string;
|
|
14647
|
+
id?: string;
|
|
14648
|
+
mode: string;
|
|
14649
|
+
origin_kind: string;
|
|
14650
|
+
origin_reference?: string | null;
|
|
14651
|
+
site_id: string;
|
|
14652
|
+
updated_at?: string;
|
|
14653
|
+
version?: number;
|
|
14654
|
+
};
|
|
14655
|
+
Update: {
|
|
14656
|
+
canonical_color_hash?: string;
|
|
14657
|
+
colors?: Json;
|
|
14658
|
+
created_at?: string;
|
|
14659
|
+
id?: string;
|
|
14660
|
+
mode?: string;
|
|
14661
|
+
origin_kind?: string;
|
|
14662
|
+
origin_reference?: string | null;
|
|
14663
|
+
site_id?: string;
|
|
14664
|
+
updated_at?: string;
|
|
14665
|
+
version?: number;
|
|
14666
|
+
};
|
|
14667
|
+
Relationships: [
|
|
14668
|
+
{
|
|
14669
|
+
foreignKeyName: "site_palettes_site_id_fkey";
|
|
14670
|
+
columns: ["site_id"];
|
|
14671
|
+
isOneToOne: false;
|
|
14672
|
+
referencedRelation: "sites";
|
|
14673
|
+
referencedColumns: ["id"];
|
|
14674
|
+
}
|
|
14675
|
+
];
|
|
14676
|
+
};
|
|
14612
14677
|
site_proposal_selections: {
|
|
14613
14678
|
Row: {
|
|
14614
14679
|
created_at: string;
|
|
@@ -15076,6 +15141,8 @@ export type Database = {
|
|
|
15076
15141
|
};
|
|
15077
15142
|
site_theme_selections: {
|
|
15078
15143
|
Row: {
|
|
15144
|
+
active_curated_palette_id: string | null;
|
|
15145
|
+
active_site_palette_id: string | null;
|
|
15079
15146
|
button_personality_id: string | null;
|
|
15080
15147
|
created_at: string;
|
|
15081
15148
|
footer_look_id: string | null;
|
|
@@ -15097,6 +15164,8 @@ export type Database = {
|
|
|
15097
15164
|
user_id: string;
|
|
15098
15165
|
};
|
|
15099
15166
|
Insert: {
|
|
15167
|
+
active_curated_palette_id?: string | null;
|
|
15168
|
+
active_site_palette_id?: string | null;
|
|
15100
15169
|
button_personality_id?: string | null;
|
|
15101
15170
|
created_at?: string;
|
|
15102
15171
|
footer_look_id?: string | null;
|
|
@@ -15118,6 +15187,8 @@ export type Database = {
|
|
|
15118
15187
|
user_id: string;
|
|
15119
15188
|
};
|
|
15120
15189
|
Update: {
|
|
15190
|
+
active_curated_palette_id?: string | null;
|
|
15191
|
+
active_site_palette_id?: string | null;
|
|
15121
15192
|
button_personality_id?: string | null;
|
|
15122
15193
|
created_at?: string;
|
|
15123
15194
|
footer_look_id?: string | null;
|
|
@@ -15139,6 +15210,13 @@ export type Database = {
|
|
|
15139
15210
|
user_id?: string;
|
|
15140
15211
|
};
|
|
15141
15212
|
Relationships: [
|
|
15213
|
+
{
|
|
15214
|
+
foreignKeyName: "site_theme_selections_active_site_palette_fkey";
|
|
15215
|
+
columns: ["active_site_palette_id", "site_id"];
|
|
15216
|
+
isOneToOne: false;
|
|
15217
|
+
referencedRelation: "site_palettes";
|
|
15218
|
+
referencedColumns: ["id", "site_id"];
|
|
15219
|
+
},
|
|
15142
15220
|
{
|
|
15143
15221
|
foreignKeyName: "site_theme_selections_site_id_fkey";
|
|
15144
15222
|
columns: ["site_id"];
|
|
@@ -16942,6 +17020,33 @@ export type Database = {
|
|
|
16942
17020
|
theme_id: string;
|
|
16943
17021
|
}[];
|
|
16944
17022
|
};
|
|
17023
|
+
apply_site_theme_command_atomic: {
|
|
17024
|
+
Args: {
|
|
17025
|
+
p_base_selection_version: number;
|
|
17026
|
+
p_button_personality_id: string;
|
|
17027
|
+
p_footer_look_id: string;
|
|
17028
|
+
p_header_layout_id?: string;
|
|
17029
|
+
p_header_look_id: string;
|
|
17030
|
+
p_header_style_id?: string;
|
|
17031
|
+
p_palette_command: Json;
|
|
17032
|
+
p_selection_id?: string;
|
|
17033
|
+
p_site_id: string;
|
|
17034
|
+
p_theme: Json;
|
|
17035
|
+
p_typography_body_font_override?: string;
|
|
17036
|
+
p_typography_heading_font_override?: string;
|
|
17037
|
+
p_typography_preset_id?: string;
|
|
17038
|
+
};
|
|
17039
|
+
Returns: {
|
|
17040
|
+
active_curated_palette_id: string;
|
|
17041
|
+
active_site_palette_id: string;
|
|
17042
|
+
outcome: string;
|
|
17043
|
+
selection_id: string;
|
|
17044
|
+
selection_updated_at: string;
|
|
17045
|
+
site_palette_version: number;
|
|
17046
|
+
style_selection_version: number;
|
|
17047
|
+
theme_id: string;
|
|
17048
|
+
}[];
|
|
17049
|
+
};
|
|
16945
17050
|
assert_single_subject_participant_roster_atomic: {
|
|
16946
17051
|
Args: {
|
|
16947
17052
|
p_customer_id: string;
|
|
@@ -16957,6 +17062,20 @@ export type Database = {
|
|
|
16957
17062
|
participant_participation_id: string;
|
|
16958
17063
|
}[];
|
|
16959
17064
|
};
|
|
17065
|
+
backfill_site_palette_selection_atomic: {
|
|
17066
|
+
Args: {
|
|
17067
|
+
p_expected_selection_version: number;
|
|
17068
|
+
p_palette_classification: Json;
|
|
17069
|
+
p_selection_id: string;
|
|
17070
|
+
p_site_id: string;
|
|
17071
|
+
};
|
|
17072
|
+
Returns: {
|
|
17073
|
+
active_curated_palette_id: string;
|
|
17074
|
+
active_site_palette_id: string;
|
|
17075
|
+
outcome: string;
|
|
17076
|
+
style_selection_version: number;
|
|
17077
|
+
}[];
|
|
17078
|
+
};
|
|
16960
17079
|
begin_site_billing_transition_attempt_atomic: {
|
|
16961
17080
|
Args: {
|
|
16962
17081
|
p_billing_user_id?: string;
|
|
@@ -17725,6 +17844,12 @@ export type Database = {
|
|
|
17725
17844
|
};
|
|
17726
17845
|
Returns: undefined;
|
|
17727
17846
|
};
|
|
17847
|
+
is_complete_palette_colors: {
|
|
17848
|
+
Args: {
|
|
17849
|
+
p_colors: Json;
|
|
17850
|
+
};
|
|
17851
|
+
Returns: boolean;
|
|
17852
|
+
};
|
|
17728
17853
|
is_email_allowed: {
|
|
17729
17854
|
Args: {
|
|
17730
17855
|
p_email: string;
|
|
@@ -17781,6 +17906,10 @@ export type Database = {
|
|
|
17781
17906
|
start_at: string;
|
|
17782
17907
|
}[];
|
|
17783
17908
|
};
|
|
17909
|
+
load_current_site_palette_backfill_snapshot: {
|
|
17910
|
+
Args: never;
|
|
17911
|
+
Returns: Json;
|
|
17912
|
+
};
|
|
17784
17913
|
mark_participant_roster_assertion_job_failed: {
|
|
17785
17914
|
Args: {
|
|
17786
17915
|
p_attempt_count: number;
|
|
@@ -18055,6 +18184,47 @@ export type Database = {
|
|
|
18055
18184
|
order_id: string;
|
|
18056
18185
|
}[];
|
|
18057
18186
|
};
|
|
18187
|
+
postgres_fdw_disconnect: {
|
|
18188
|
+
Args: {
|
|
18189
|
+
"": string;
|
|
18190
|
+
};
|
|
18191
|
+
Returns: boolean;
|
|
18192
|
+
};
|
|
18193
|
+
postgres_fdw_disconnect_all: {
|
|
18194
|
+
Args: never;
|
|
18195
|
+
Returns: boolean;
|
|
18196
|
+
};
|
|
18197
|
+
postgres_fdw_get_connections: {
|
|
18198
|
+
Args: never;
|
|
18199
|
+
Returns: Record<string, unknown>[];
|
|
18200
|
+
};
|
|
18201
|
+
postgres_fdw_handler: {
|
|
18202
|
+
Args: never;
|
|
18203
|
+
Returns: unknown;
|
|
18204
|
+
};
|
|
18205
|
+
provision_initial_site_theme_atomic: {
|
|
18206
|
+
Args: {
|
|
18207
|
+
p_button_personality_id: string;
|
|
18208
|
+
p_footer_look_id?: string;
|
|
18209
|
+
p_header_layout_id?: string;
|
|
18210
|
+
p_header_look_id?: string;
|
|
18211
|
+
p_header_style_id?: string;
|
|
18212
|
+
p_palette_command: Json;
|
|
18213
|
+
p_site_id: string;
|
|
18214
|
+
p_theme: Json;
|
|
18215
|
+
p_typography_body_font_override?: string;
|
|
18216
|
+
p_typography_heading_font_override?: string;
|
|
18217
|
+
p_typography_preset_id?: string;
|
|
18218
|
+
p_user_id: string;
|
|
18219
|
+
};
|
|
18220
|
+
Returns: {
|
|
18221
|
+
active_site_palette_id: string;
|
|
18222
|
+
outcome: string;
|
|
18223
|
+
selection_id: string;
|
|
18224
|
+
site_palette_version: number;
|
|
18225
|
+
theme_id: string;
|
|
18226
|
+
}[];
|
|
18227
|
+
};
|
|
18058
18228
|
read_published_runtime_cache_entry: {
|
|
18059
18229
|
Args: {
|
|
18060
18230
|
p_cache_key: string;
|
|
@@ -18199,6 +18369,37 @@ export type Database = {
|
|
|
18199
18369
|
};
|
|
18200
18370
|
Returns: Json;
|
|
18201
18371
|
};
|
|
18372
|
+
save_current_theme_aggregate_atomic: {
|
|
18373
|
+
Args: {
|
|
18374
|
+
p_button_personality_id: string;
|
|
18375
|
+
p_expected_selection_version: number;
|
|
18376
|
+
p_footer_look_id: string;
|
|
18377
|
+
p_header_layout_id?: string;
|
|
18378
|
+
p_header_look_id: string;
|
|
18379
|
+
p_header_style_id?: string;
|
|
18380
|
+
p_palette_command: Json;
|
|
18381
|
+
p_selection_id?: string;
|
|
18382
|
+
p_selection_overrides: Json;
|
|
18383
|
+
p_selection_overrides_mode: string;
|
|
18384
|
+
p_site_id: string;
|
|
18385
|
+
p_theme: Json;
|
|
18386
|
+
p_theme_id?: string;
|
|
18387
|
+
p_typography_body_font_override?: string;
|
|
18388
|
+
p_typography_heading_font_override?: string;
|
|
18389
|
+
p_typography_preset_id?: string;
|
|
18390
|
+
p_user_id: string;
|
|
18391
|
+
};
|
|
18392
|
+
Returns: {
|
|
18393
|
+
active_curated_palette_id: string;
|
|
18394
|
+
active_site_palette_id: string;
|
|
18395
|
+
outcome: string;
|
|
18396
|
+
selection_id: string;
|
|
18397
|
+
selection_updated_at: string;
|
|
18398
|
+
site_palette_version: number;
|
|
18399
|
+
style_selection_version: number;
|
|
18400
|
+
theme_id: string;
|
|
18401
|
+
}[];
|
|
18402
|
+
};
|
|
18202
18403
|
site_allows_person_record_mode: {
|
|
18203
18404
|
Args: {
|
|
18204
18405
|
p_record_mode: string;
|
|
@@ -18206,6 +18407,13 @@ export type Database = {
|
|
|
18206
18407
|
};
|
|
18207
18408
|
Returns: boolean;
|
|
18208
18409
|
};
|
|
18410
|
+
site_palette_canonical_hash: {
|
|
18411
|
+
Args: {
|
|
18412
|
+
p_colors: Json;
|
|
18413
|
+
p_mode: string;
|
|
18414
|
+
};
|
|
18415
|
+
Returns: string;
|
|
18416
|
+
};
|
|
18209
18417
|
staff_member_has_customer_record_relationship: {
|
|
18210
18418
|
Args: {
|
|
18211
18419
|
p_customer_id: string;
|
|
@@ -13,9 +13,11 @@ export { EditorPrimitivesProvider } from './primitives/EditorPrimitivesProvider'
|
|
|
13
13
|
export type { InlineFieldAdapter } from './primitives/InlineFieldContext';
|
|
14
14
|
export { deriveChannelId } from './primitives/helpers';
|
|
15
15
|
export { richTextConfigs } from './primitives/rich-text/config';
|
|
16
|
-
export type { RichTextEditorConfig, ToolbarButtonConfig, } from './primitives/rich-text/config';
|
|
16
|
+
export type { RichTextEditorConfig, RichTextPastePolicy, ToolbarButtonConfig, } from './primitives/rich-text/config';
|
|
17
17
|
export { RichTextToolbar } from './primitives/rich-text/RichTextToolbar';
|
|
18
18
|
export { RichTextEditorSurface } from './primitives/rich-text/RichTextEditorSurface';
|
|
19
|
+
export type { RichTextToolbarLayout } from './primitives/rich-text/RichTextEditorSurface';
|
|
20
|
+
export type { RichTextToolbarHost, RichTextToolbarVisibility, } from './primitives/rich-text/RichTextToolbar';
|
|
19
21
|
export type { RichTextRoutableItem } from './primitives/rich-text/toolbar/linkPopoverUtils';
|
|
20
22
|
export { useRichTextEditor } from './primitives/rich-text/useRichTextEditor';
|
|
21
23
|
export { buildRichTextImageAttrs, getRichTextImagePositionFromTarget, getSelectedRichTextImagePosition, insertOrReplaceRichTextImage, } from './primitives/rich-text/imageActions';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import { type Editor } from '@tiptap/react';
|
|
3
3
|
import type { RichTextEditorConfig } from './config';
|
|
4
|
+
import { type RichTextToolbarVisibility } from './RichTextToolbar';
|
|
4
5
|
import type { PickedRichTextImage } from './imageActions';
|
|
5
6
|
import type { RichTextRoutableItem } from './toolbar/linkPopoverUtils';
|
|
6
7
|
export type RichTextEditorSurfaceProps = Readonly<{
|
|
@@ -15,13 +16,20 @@ export type RichTextEditorSurfaceProps = Readonly<{
|
|
|
15
16
|
linkItems?: RichTextRoutableItem[];
|
|
16
17
|
onRequestLinkItems?: () => Promise<RichTextRoutableItem[]>;
|
|
17
18
|
onPickImage?: () => Promise<PickedRichTextImage | null | undefined>;
|
|
18
|
-
|
|
19
|
-
toolbarAlwaysVisible?: boolean;
|
|
20
|
-
toolbarPortalToChrome?: boolean;
|
|
21
|
-
hideToolbar?: boolean;
|
|
22
|
-
hideContent?: boolean;
|
|
19
|
+
toolbarLayout: RichTextToolbarLayout;
|
|
23
20
|
onClick?: () => void;
|
|
24
21
|
renderContent?: (content: ReactNode) => ReactNode;
|
|
25
22
|
}>;
|
|
23
|
+
export type RichTextToolbarLayout = Readonly<{
|
|
24
|
+
kind: 'hidden';
|
|
25
|
+
}> | Readonly<{
|
|
26
|
+
kind: 'inline';
|
|
27
|
+
tone: 'light' | 'dark';
|
|
28
|
+
visibility: RichTextToolbarVisibility;
|
|
29
|
+
}> | Readonly<{
|
|
30
|
+
kind: 'chrome';
|
|
31
|
+
tone: 'light' | 'dark';
|
|
32
|
+
visibility: RichTextToolbarVisibility;
|
|
33
|
+
}>;
|
|
26
34
|
export declare function shouldHandleRichTextActivationKey(container: HTMLElement, target: EventTarget | null): boolean;
|
|
27
|
-
export declare function RichTextEditorSurface({ editor, config, isEmpty, className, contentClassName, placeholderClassName, placeholderText, ariaLabel, linkItems, onRequestLinkItems, onPickImage,
|
|
35
|
+
export declare function RichTextEditorSurface({ editor, config, isEmpty, className, contentClassName, placeholderClassName, placeholderText, ariaLabel, linkItems, onRequestLinkItems, onPickImage, toolbarLayout, onClick, renderContent, }: RichTextEditorSurfaceProps): import("react").JSX.Element;
|
|
@@ -2,15 +2,34 @@ import type { Editor } from '@tiptap/react';
|
|
|
2
2
|
import type { ToolbarButtonConfig } from './config';
|
|
3
3
|
import type { PickedRichTextImage } from './imageActions';
|
|
4
4
|
import { type RichTextRoutableItem } from './toolbar/LinkPopover';
|
|
5
|
+
export type RichTextToolbarVisibility = Readonly<{
|
|
6
|
+
kind: 'always';
|
|
7
|
+
}> | Readonly<{
|
|
8
|
+
kind: 'editor-focus';
|
|
9
|
+
}> | Readonly<{
|
|
10
|
+
kind: 'controlled';
|
|
11
|
+
visible: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
export type RichTextToolbarHost = Readonly<{
|
|
14
|
+
kind: 'inline';
|
|
15
|
+
}> | Readonly<{
|
|
16
|
+
kind: 'chrome';
|
|
17
|
+
}>;
|
|
5
18
|
interface RichTextToolbarProps {
|
|
6
19
|
editor: Editor | null;
|
|
7
20
|
buttons: ToolbarButtonConfig[];
|
|
8
21
|
onPickImage?: () => Promise<PickedRichTextImage | null | undefined>;
|
|
9
22
|
linkItems?: RichTextRoutableItem[];
|
|
10
23
|
onRequestLinkItems?: () => Promise<RichTextRoutableItem[]>;
|
|
11
|
-
|
|
12
|
-
tone
|
|
13
|
-
|
|
24
|
+
visibility: RichTextToolbarVisibility;
|
|
25
|
+
tone: 'light' | 'dark';
|
|
26
|
+
host: RichTextToolbarHost;
|
|
14
27
|
}
|
|
15
|
-
export declare function RichTextToolbar({ editor, buttons, onPickImage, linkItems, onRequestLinkItems,
|
|
28
|
+
export declare function RichTextToolbar({ editor, buttons, onPickImage, linkItems, onRequestLinkItems, visibility, tone, host, }: RichTextToolbarProps): import("react").JSX.Element | null;
|
|
29
|
+
type RichTextToolbarTransientState = Readonly<{
|
|
30
|
+
isFocused: boolean;
|
|
31
|
+
isMenuOpen: boolean;
|
|
32
|
+
isHovered: boolean;
|
|
33
|
+
}>;
|
|
34
|
+
export declare function shouldShowToolbar(visibility: RichTextToolbarVisibility, state: RichTextToolbarTransientState): boolean;
|
|
16
35
|
export {};
|
|
@@ -15,9 +15,15 @@ export type ToolbarButtonConfig = {
|
|
|
15
15
|
} | {
|
|
16
16
|
type: 'image';
|
|
17
17
|
};
|
|
18
|
+
export type RichTextPastePolicy = Readonly<{
|
|
19
|
+
kind: 'semantic-clean-with-images';
|
|
20
|
+
}> | Readonly<{
|
|
21
|
+
kind: 'semantic-clean-text-only';
|
|
22
|
+
}>;
|
|
18
23
|
export type RichTextEditorConfig = {
|
|
19
24
|
extensions: AnyExtension[];
|
|
20
25
|
toolbar: ToolbarButtonConfig[];
|
|
21
26
|
placeholder: string;
|
|
27
|
+
pastePolicy: RichTextPastePolicy;
|
|
22
28
|
};
|
|
23
29
|
export declare const richTextConfigs: Record<RichTextVariant, RichTextEditorConfig>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
+
export declare const RICH_TEXT_LINK_DATA_ATTRIBUTES: ("data-rb-link-kind" | "data-rb-link-identifier" | "data-rb-link-content-type" | "data-rb-link-route-id" | "data-rb-link-entity-id" | "data-rb-link-entity-type" | "data-rb-link-title" | "data-rb-link-type-label" | "data-rb-link-content-type-key" | "data-rb-link-content-type-name" | "data-rb-link-updated-at")[];
|
|
1
2
|
export declare const RichTextLink: import("@tiptap/core").Mark<import("@tiptap/extension-link").LinkOptions, any>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RichTextPastePolicy } from './config';
|
|
2
|
+
/**
|
|
3
|
+
* Builds the TipTap HTML paste boundary for a specific editor variant.
|
|
4
|
+
*/
|
|
5
|
+
export declare function createRichTextPasteHtmlTransformer(policy: RichTextPastePolicy): (html: string) => string;
|
|
6
|
+
/**
|
|
7
|
+
* Removes source-site presentation while retaining schema-supported semantic
|
|
8
|
+
* structure and Riverbank's own typed link metadata.
|
|
9
|
+
*/
|
|
10
|
+
export declare function sanitizePastedRichTextHtml(html: string, policy: RichTextPastePolicy): string;
|
|
@@ -30,12 +30,19 @@ type UiState = {
|
|
|
30
30
|
history: {
|
|
31
31
|
applyCommand?: (command: EditorStructuralCommand) => void;
|
|
32
32
|
};
|
|
33
|
+
generatedIconAssets: {
|
|
34
|
+
setForBlock: (blockId: Parameters<DraftsSlice['setAtPath']>[0], assets: readonly import('../../blocks/src/system/icons/index').GeneratedBlockIconRenderAssetInput[]) => void;
|
|
35
|
+
};
|
|
36
|
+
autosave: {
|
|
37
|
+
saveNow: (types: 'blocks'[]) => void;
|
|
38
|
+
};
|
|
33
39
|
drafts: DraftsSlice & {
|
|
34
40
|
setFailed?: (blockId: Parameters<DraftsSlice['autosaveFailed']>[0], message?: string) => void;
|
|
35
41
|
};
|
|
36
42
|
};
|
|
37
43
|
export type BlockEditorProps = {
|
|
38
44
|
siteId: string;
|
|
45
|
+
dashboardBaseUrl?: string | null;
|
|
39
46
|
owner: BlockEditorOwner;
|
|
40
47
|
blocks: BlockItem[];
|
|
41
48
|
recoveryConflictBlockIds?: readonly string[];
|
|
@@ -4,7 +4,8 @@ import type { BlockManifest, Theme } from '../../blocks/src/index';
|
|
|
4
4
|
import { type PageDesignEditorBlock } from '../../theme-core/src/site-styles/index';
|
|
5
5
|
import { type EditorBlockId } from '../../core/src/index';
|
|
6
6
|
import type { ArrayKeysManager, DraftsSlice, UiStore as BlockEditorUiStore } from './block-editor/types';
|
|
7
|
-
|
|
7
|
+
import type { GeneratedIconApplyState } from './block-editor/generatedIconApplyCoordination';
|
|
8
|
+
export type BlockFormUiStoreState = GeneratedIconApplyState & {
|
|
8
9
|
setActivePreviewField: (field: {
|
|
9
10
|
kind: 'block';
|
|
10
11
|
blockId: EditorBlockId;
|
|
@@ -8,8 +8,9 @@ import type { Theme } from '../../../blocks/src/index';
|
|
|
8
8
|
import type { SiteIconStyleGuideVersionId } from '../../../blocks/src/index';
|
|
9
9
|
import { type BlockActionPresentation } from './actionPresentation';
|
|
10
10
|
import { type ReorderControlMode } from './reorderControlMode';
|
|
11
|
-
import type { GeneratedIconSetGenerateInput, GeneratedIconSetGenerateResult
|
|
11
|
+
import type { GeneratedIconSetGenerateInput, GeneratedIconSetGenerateResult } from './GeneratedIconSetDialog';
|
|
12
12
|
import type { ArrayKeysManager, BlockFocusRequest, BlockItem, UiStore, DraftsSlice, UiSlice } from './types';
|
|
13
|
+
import type { GeneratedIconApplyState } from './generatedIconApplyCoordination';
|
|
13
14
|
/** Drag listener props from dnd-kit */
|
|
14
15
|
type DragListeners = SyntheticListenerMap | undefined;
|
|
15
16
|
type BlockCardStore = UiStore<Pick<UiSlice, 'activeBlockId' | 'setActiveBlockId' | 'setActivePreviewField'> & {
|
|
@@ -21,8 +22,8 @@ type BlockCardStore = UiStore<Pick<UiSlice, 'activeBlockId' | 'setActiveBlockId'
|
|
|
21
22
|
};
|
|
22
23
|
drafts: Pick<DraftsSlice, 'getBlockSnapshot' | 'getCurrentValues' | 'getAtPath' | 'setAtPath' | 'edit' | 'initNewBlock' | 'updateBlockBaseline' | 'clearError'>;
|
|
23
24
|
arrayKeys: ArrayKeysManager;
|
|
24
|
-
}>;
|
|
25
|
-
export declare function BlockCard({ siteId, block, manifest, isFirst, isLast, isMoving, onMove, onDuplicate, onDelete, dragListeners, canReorder, collapsed, onCollapsedChange, highlighted, hasRecoveryConflict, focusSignal, onFocusHandled, onBlockSave, theme, widgetOverrides, uiStore, hideThemeV2RawStyleFields, pageDesignBlock, reorderControlMode, actionPresentation, currentStyleGuideVersionId, iconStyleGuideSummary, iconStyleGuideEditHref, onGenerateIconSet,
|
|
25
|
+
} & GeneratedIconApplyState>;
|
|
26
|
+
export declare function BlockCard({ siteId, block, manifest, isFirst, isLast, isMoving, onMove, onDuplicate, onDelete, dragListeners, canReorder, collapsed, onCollapsedChange, highlighted, hasRecoveryConflict, focusSignal, onFocusHandled, onBlockSave, theme, widgetOverrides, uiStore, hideThemeV2RawStyleFields, pageDesignBlock, reorderControlMode, actionPresentation, currentStyleGuideVersionId, iconStyleGuideSummary, iconStyleGuideEditHref, onGenerateIconSet, }: {
|
|
26
27
|
siteId: string;
|
|
27
28
|
block: BlockItem;
|
|
28
29
|
manifest: SystemBlockDefinition['manifest'];
|
|
@@ -52,6 +53,5 @@ export declare function BlockCard({ siteId, block, manifest, isFirst, isLast, is
|
|
|
52
53
|
iconStyleGuideSummary?: string | null;
|
|
53
54
|
iconStyleGuideEditHref?: string | null;
|
|
54
55
|
onGenerateIconSet?: (input: GeneratedIconSetGenerateInput) => Promise<GeneratedIconSetGenerateResult>;
|
|
55
|
-
onApplyGeneratedIconSet?: (preview: GeneratedIconSetPreview) => GeneratedIconSetPreview | void | Promise<GeneratedIconSetPreview | void>;
|
|
56
56
|
}): import("react").JSX.Element;
|
|
57
57
|
export {};
|
|
@@ -5,8 +5,8 @@ import type { ComponentProps } from 'react';
|
|
|
5
5
|
import type { BlockItem, BlockFocusRequest } from './types';
|
|
6
6
|
import type { FieldWidgetComponent } from '../../../block-form/src/client/index';
|
|
7
7
|
import type { SiteIconStyleGuideVersionId } from '../../../blocks/src/index';
|
|
8
|
-
import type { GeneratedIconSetGenerateInput, GeneratedIconSetGenerateResult
|
|
9
|
-
export declare function BlockCardBody({ siteId, block, manifest, uiStore, hasRecoveryConflict, focusSignal, onFocusHandled, onBlockSave, theme, widgetOverrides, hideThemeV2RawStyleFields, pageDesignBlock, currentStyleGuideVersionId, iconStyleGuideSummary, iconStyleGuideEditHref, onGenerateIconSet,
|
|
8
|
+
import type { GeneratedIconSetGenerateInput, GeneratedIconSetGenerateResult } from './GeneratedIconSetDialog';
|
|
9
|
+
export declare function BlockCardBody({ siteId, block, manifest, uiStore, hasRecoveryConflict, focusSignal, onFocusHandled, onBlockSave, theme, widgetOverrides, hideThemeV2RawStyleFields, pageDesignBlock, currentStyleGuideVersionId, iconStyleGuideSummary, iconStyleGuideEditHref, onGenerateIconSet, }: {
|
|
10
10
|
siteId: string;
|
|
11
11
|
block: BlockItem;
|
|
12
12
|
manifest: SystemBlockDefinition['manifest'];
|
|
@@ -23,5 +23,4 @@ export declare function BlockCardBody({ siteId, block, manifest, uiStore, hasRec
|
|
|
23
23
|
iconStyleGuideSummary?: string | null;
|
|
24
24
|
iconStyleGuideEditHref?: string | null;
|
|
25
25
|
onGenerateIconSet?: (input: GeneratedIconSetGenerateInput) => Promise<GeneratedIconSetGenerateResult>;
|
|
26
|
-
onApplyGeneratedIconSet?: (preview: GeneratedIconSetPreview) => GeneratedIconSetPreview | void | Promise<GeneratedIconSetPreview | void>;
|
|
27
26
|
}): import("react").JSX.Element;
|
|
@@ -4,14 +4,15 @@ import { type SiteIconStyleGuideVersionId, type SystemBlockDefinition, type Them
|
|
|
4
4
|
import { type BlockActionPresentation } from './actionPresentation';
|
|
5
5
|
import type { ReorderControlMode } from './reorderControlMode';
|
|
6
6
|
import type { BlockItem, UiStore, DraftsSlice, ArrayKeysManager } from './types';
|
|
7
|
-
import { type GeneratedIconSetGenerateInput, type GeneratedIconSetGenerateResult
|
|
7
|
+
import { type GeneratedIconSetGenerateInput, type GeneratedIconSetGenerateResult } from './GeneratedIconSetDialog';
|
|
8
|
+
import { type GeneratedIconApplyState } from './generatedIconApplyCoordination';
|
|
8
9
|
/** Drag listener props from dnd-kit */
|
|
9
10
|
type DragListeners = SyntheticListenerMap | undefined;
|
|
10
|
-
type BlockCardHeaderStore = UiStore<{
|
|
11
|
+
type BlockCardHeaderStore = UiStore<GeneratedIconApplyState & {
|
|
11
12
|
drafts: Pick<DraftsSlice, 'getBlockSnapshot' | 'getCurrentValues' | 'initNewBlock' | 'updateBlockBaseline' | 'clearError' | 'setAtPath' | 'getAtPath'>;
|
|
12
13
|
arrayKeys: ArrayKeysManager;
|
|
13
14
|
}>;
|
|
14
|
-
export declare function BlockCardHeader({ block, manifest, isFirst, isLast, isMoving, onMove, onDuplicate, onDelete, dragListeners, canReorder, collapsed, onToggleCollapsed, contentId, uiStore, widgetOverrides, theme, hideThemeV2RawStyleFields, reorderControlMode, actionPresentation, currentStyleGuideVersionId, iconStyleGuideSummary, iconStyleGuideEditHref, onGenerateIconSet,
|
|
15
|
+
export declare function BlockCardHeader({ block, manifest, isFirst, isLast, isMoving, onMove, onDuplicate, onDelete, dragListeners, canReorder, collapsed, onToggleCollapsed, contentId, uiStore, widgetOverrides, theme, hideThemeV2RawStyleFields, reorderControlMode, actionPresentation, currentStyleGuideVersionId, iconStyleGuideSummary, iconStyleGuideEditHref, onGenerateIconSet, }: {
|
|
15
16
|
block: BlockItem;
|
|
16
17
|
manifest: SystemBlockDefinition['manifest'];
|
|
17
18
|
isFirst: boolean;
|
|
@@ -36,6 +37,5 @@ export declare function BlockCardHeader({ block, manifest, isFirst, isLast, isMo
|
|
|
36
37
|
iconStyleGuideSummary?: string | null;
|
|
37
38
|
iconStyleGuideEditHref?: string | null;
|
|
38
39
|
onGenerateIconSet?: (input: GeneratedIconSetGenerateInput) => Promise<GeneratedIconSetGenerateResult>;
|
|
39
|
-
onApplyGeneratedIconSet?: (preview: GeneratedIconSetPreview) => GeneratedIconSetPreview | void | Promise<GeneratedIconSetPreview | void>;
|
|
40
40
|
}): import("react").JSX.Element;
|
|
41
41
|
export {};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { SiteIconStyleGuideVersionId } from '../../../blocks/src/index';
|
|
2
2
|
import type { BlockItem, DraftsSlice, UiStore } from './types';
|
|
3
|
-
import { type GeneratedIconSetGenerateInput, type GeneratedIconSetGenerateResult
|
|
4
|
-
type
|
|
3
|
+
import { type GeneratedIconSetGenerateInput, type GeneratedIconSetGenerateResult } from './GeneratedIconSetDialog';
|
|
4
|
+
import { type GeneratedIconApplyState } from './generatedIconApplyCoordination';
|
|
5
|
+
type FeatureCardIconsPanelStore = UiStore<GeneratedIconApplyState & {
|
|
5
6
|
drafts: Pick<DraftsSlice, 'getCurrentValues' | 'setAtPath'>;
|
|
6
7
|
}>;
|
|
7
8
|
export declare function supportsFeatureCardIconActions(blockKind: string): boolean;
|
|
8
|
-
export declare function FeatureCardIconsPanel({ block, uiStore, currentStyleGuideVersionId, iconStyleGuideSummary, iconStyleGuideEditHref, onGenerateIconSet,
|
|
9
|
+
export declare function FeatureCardIconsPanel({ block, uiStore, currentStyleGuideVersionId, iconStyleGuideSummary, iconStyleGuideEditHref, onGenerateIconSet, }: {
|
|
9
10
|
block: BlockItem;
|
|
10
11
|
uiStore: FeatureCardIconsPanelStore;
|
|
11
12
|
currentStyleGuideVersionId?: SiteIconStyleGuideVersionId | null;
|
|
12
13
|
iconStyleGuideSummary?: string | null;
|
|
13
14
|
iconStyleGuideEditHref?: string | null;
|
|
14
15
|
onGenerateIconSet?: (input: GeneratedIconSetGenerateInput) => Promise<GeneratedIconSetGenerateResult>;
|
|
15
|
-
onApplyGeneratedIconSet?: (preview: GeneratedIconSetPreview) => GeneratedIconSetPreview | void | Promise<GeneratedIconSetPreview | void>;
|
|
16
16
|
}): import("react").JSX.Element | null;
|
|
17
17
|
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { type GeneratedBlockIconValue } from '../../../blocks/src/index';
|
|
2
|
-
import type {
|
|
3
|
-
import type
|
|
2
|
+
import type { GeneratedIconRenderAsset } from '../../../api/src/index';
|
|
3
|
+
import { type FeatureCardIconDialogCard } from './featureCardIconActions';
|
|
4
4
|
export type GeneratedIconSetPreviewAsset = Readonly<{
|
|
5
5
|
cardKey: string;
|
|
6
6
|
title: string;
|
|
7
7
|
src: string;
|
|
8
8
|
iconValue: GeneratedBlockIconValue;
|
|
9
|
+
renderAsset: GeneratedIconRenderAsset | null;
|
|
9
10
|
}>;
|
|
10
11
|
export type GeneratedIconSetPreview = Readonly<{
|
|
11
12
|
setId: string;
|
|
12
13
|
styleGuideSummary: string;
|
|
13
|
-
candidate?: GeneratedIconSetCandidate;
|
|
14
14
|
assets: readonly GeneratedIconSetPreviewAsset[];
|
|
15
15
|
}>;
|
|
16
16
|
export type GeneratedIconSetGenerateResult = Readonly<{
|
|
@@ -7,8 +7,8 @@ import { BlockCard } from './BlockCard';
|
|
|
7
7
|
import type { FieldWidgetComponent } from '../../../block-form/src/client/index';
|
|
8
8
|
import { type BlockActionPresentation } from './actionPresentation';
|
|
9
9
|
import { type ReorderControlMode } from './reorderControlMode';
|
|
10
|
-
import type { GeneratedIconSetGenerateInput, GeneratedIconSetGenerateResult
|
|
11
|
-
export declare const SortableBlockItem: import("react").MemoExoticComponent<({ siteId, block, onMove, onDuplicate, onDelete, isFirst, isLast, isMoving, isDraggable, collapsed, onCollapsedChange, highlighted, hasRecoveryConflict, focusSignal, onFocusHandled, onBlockSave, theme, widgetOverrides, uiStore, sdkConfig, customBlocks, hideThemeV2RawStyleFields, pageDesignBlock, reorderControlMode, actionPresentation, currentStyleGuideVersionId, iconStyleGuideSummary, iconStyleGuideEditHref, onGenerateIconSet,
|
|
10
|
+
import type { GeneratedIconSetGenerateInput, GeneratedIconSetGenerateResult } from './GeneratedIconSetDialog';
|
|
11
|
+
export declare const SortableBlockItem: import("react").MemoExoticComponent<({ siteId, block, onMove, onDuplicate, onDelete, isFirst, isLast, isMoving, isDraggable, collapsed, onCollapsedChange, highlighted, hasRecoveryConflict, focusSignal, onFocusHandled, onBlockSave, theme, widgetOverrides, uiStore, sdkConfig, customBlocks, hideThemeV2RawStyleFields, pageDesignBlock, reorderControlMode, actionPresentation, currentStyleGuideVersionId, iconStyleGuideSummary, iconStyleGuideEditHref, onGenerateIconSet, }: {
|
|
12
12
|
siteId: string;
|
|
13
13
|
block: BlockItem;
|
|
14
14
|
onMove: (blockId: string, direction: number) => void;
|
|
@@ -38,5 +38,4 @@ export declare const SortableBlockItem: import("react").MemoExoticComponent<({ s
|
|
|
38
38
|
iconStyleGuideSummary?: string | null;
|
|
39
39
|
iconStyleGuideEditHref?: string | null;
|
|
40
40
|
onGenerateIconSet?: (input: GeneratedIconSetGenerateInput) => Promise<GeneratedIconSetGenerateResult>;
|
|
41
|
-
onApplyGeneratedIconSet?: (preview: GeneratedIconSetPreview) => GeneratedIconSetPreview | void | Promise<GeneratedIconSetPreview | void>;
|
|
42
41
|
}) => import("react").JSX.Element>;
|