@lightspeed/crane-api 2.4.0 → 2.4.1-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.4.1 - 2026-06-04
4
+
5
+ ### Added
6
+
7
+ - Support ContentEditorDefaultsUnion class for content editor in un-nested deck settings
8
+
3
9
  ## 2.4.0 - 2026-06-03
4
10
 
5
11
  ### Added
package/dist/index.d.mts CHANGED
@@ -2754,6 +2754,182 @@ type LogoContentEditorDefaults = z.infer<typeof LogoContentEditorDefaultsSchema>
2754
2754
  type ProductSelectorContentEditorDefaults = z.infer<typeof ProductSelectorContentEditorDefaultsSchema>;
2755
2755
  type CategorySelectorContentEditorDefaults = z.infer<typeof CategorySelectorContentEditorDefaultsSchema>;
2756
2756
 
2757
+ declare const ContentEditorDefaultsWithNestedDeckSchemaUnion: z.ZodDiscriminatedUnion<[z.ZodObject<{
2758
+ type: z.ZodLiteral<"INPUTBOX">;
2759
+ text: z.ZodString;
2760
+ }, z.core.$strict>, z.ZodObject<{
2761
+ type: z.ZodLiteral<"TEXTAREA">;
2762
+ text: z.ZodString;
2763
+ }, z.core.$strict>, z.ZodObject<{
2764
+ type: z.ZodLiteral<"BUTTON">;
2765
+ title: z.ZodString;
2766
+ buttonType: z.ZodEnum<{
2767
+ SCROLL_TO_TILE: "SCROLL_TO_TILE";
2768
+ HYPER_LINK: "HYPER_LINK";
2769
+ MAIL_LINK: "MAIL_LINK";
2770
+ TEL_LINK: "TEL_LINK";
2771
+ GO_TO_STORE: "GO_TO_STORE";
2772
+ GO_TO_STORE_LINK: "GO_TO_STORE_LINK";
2773
+ GO_TO_PAGE: "GO_TO_PAGE";
2774
+ GO_TO_CATEGORY: "GO_TO_CATEGORY";
2775
+ GO_TO_CATEGORY_LINK: "GO_TO_CATEGORY_LINK";
2776
+ }>;
2777
+ link: z.ZodOptional<z.ZodString>;
2778
+ linkTarget: z.ZodOptional<z.ZodString>;
2779
+ email: z.ZodOptional<z.ZodString>;
2780
+ phone: z.ZodOptional<z.ZodString>;
2781
+ tileId: z.ZodOptional<z.ZodString>;
2782
+ categoryId: z.ZodOptional<z.ZodNumber>;
2783
+ }, z.core.$strict>, z.ZodObject<{
2784
+ type: z.ZodLiteral<"IMAGE">;
2785
+ imageData: z.ZodObject<{
2786
+ set: z.ZodObject<{
2787
+ ORIGINAL: z.ZodOptional<z.ZodObject<{
2788
+ url: z.ZodString;
2789
+ width: z.ZodOptional<z.ZodInt>;
2790
+ height: z.ZodOptional<z.ZodInt>;
2791
+ }, z.core.$strict>>;
2792
+ WEBP_LOW_RES: z.ZodOptional<z.ZodObject<{
2793
+ url: z.ZodString;
2794
+ width: z.ZodOptional<z.ZodInt>;
2795
+ height: z.ZodOptional<z.ZodInt>;
2796
+ }, z.core.$strict>>;
2797
+ WEBP_HI_2X_RES: z.ZodOptional<z.ZodObject<{
2798
+ url: z.ZodString;
2799
+ width: z.ZodOptional<z.ZodInt>;
2800
+ height: z.ZodOptional<z.ZodInt>;
2801
+ }, z.core.$strict>>;
2802
+ MOBILE_WEBP_LOW_RES: z.ZodOptional<z.ZodObject<{
2803
+ url: z.ZodString;
2804
+ width: z.ZodOptional<z.ZodInt>;
2805
+ height: z.ZodOptional<z.ZodInt>;
2806
+ }, z.core.$strict>>;
2807
+ MOBILE_WEBP_HI_RES: z.ZodOptional<z.ZodObject<{
2808
+ url: z.ZodString;
2809
+ width: z.ZodOptional<z.ZodInt>;
2810
+ height: z.ZodOptional<z.ZodInt>;
2811
+ }, z.core.$strict>>;
2812
+ }, z.core.$strict>;
2813
+ borderInfo: z.ZodOptional<z.ZodObject<{
2814
+ homogeneity: z.ZodOptional<z.ZodBoolean>;
2815
+ color: z.ZodOptional<z.ZodObject<{
2816
+ r: z.ZodNumber;
2817
+ g: z.ZodNumber;
2818
+ b: z.ZodNumber;
2819
+ a: z.ZodNumber;
2820
+ }, z.core.$strict>>;
2821
+ }, z.core.$strict>>;
2822
+ }, z.core.$strict>;
2823
+ }, z.core.$strict>, z.ZodObject<{
2824
+ type: z.ZodLiteral<"TOGGLE">;
2825
+ enabled: z.ZodBoolean;
2826
+ }, z.core.$strict>, z.ZodObject<{
2827
+ type: z.ZodLiteral<"SELECTBOX">;
2828
+ value: z.ZodString;
2829
+ }, z.core.$strict>, z.ZodObject<{
2830
+ type: z.ZodLiteral<"DIVIDER">;
2831
+ }, z.core.$strict>, z.ZodObject<{
2832
+ type: z.ZodLiteral<"INFO">;
2833
+ text: z.ZodOptional<z.ZodString>;
2834
+ button: z.ZodOptional<z.ZodObject<{
2835
+ title: z.ZodOptional<z.ZodString>;
2836
+ link: z.ZodOptional<z.ZodString>;
2837
+ }, z.core.$strict>>;
2838
+ }, z.core.$strict>, z.ZodObject<{
2839
+ type: z.ZodLiteral<"PRODUCT_SELECTOR">;
2840
+ }, z.core.$strict>, z.ZodObject<{
2841
+ type: z.ZodLiteral<"CATEGORY_SELECTOR">;
2842
+ }, z.core.$strict>, z.ZodObject<{
2843
+ type: z.ZodLiteral<"DECK">;
2844
+ cards: z.ZodArray<z.ZodObject<{
2845
+ settings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2846
+ type: z.ZodLiteral<"INPUTBOX">;
2847
+ text: z.ZodString;
2848
+ }, z.core.$strict>, z.ZodObject<{
2849
+ type: z.ZodLiteral<"TEXTAREA">;
2850
+ text: z.ZodString;
2851
+ }, z.core.$strict>, z.ZodObject<{
2852
+ type: z.ZodLiteral<"BUTTON">;
2853
+ title: z.ZodString;
2854
+ buttonType: z.ZodEnum<{
2855
+ SCROLL_TO_TILE: "SCROLL_TO_TILE";
2856
+ HYPER_LINK: "HYPER_LINK";
2857
+ MAIL_LINK: "MAIL_LINK";
2858
+ TEL_LINK: "TEL_LINK";
2859
+ GO_TO_STORE: "GO_TO_STORE";
2860
+ GO_TO_STORE_LINK: "GO_TO_STORE_LINK";
2861
+ GO_TO_PAGE: "GO_TO_PAGE";
2862
+ GO_TO_CATEGORY: "GO_TO_CATEGORY";
2863
+ GO_TO_CATEGORY_LINK: "GO_TO_CATEGORY_LINK";
2864
+ }>;
2865
+ link: z.ZodOptional<z.ZodString>;
2866
+ linkTarget: z.ZodOptional<z.ZodString>;
2867
+ email: z.ZodOptional<z.ZodString>;
2868
+ phone: z.ZodOptional<z.ZodString>;
2869
+ tileId: z.ZodOptional<z.ZodString>;
2870
+ categoryId: z.ZodOptional<z.ZodNumber>;
2871
+ }, z.core.$strict>, z.ZodObject<{
2872
+ type: z.ZodLiteral<"IMAGE">;
2873
+ imageData: z.ZodObject<{
2874
+ set: z.ZodObject<{
2875
+ ORIGINAL: z.ZodOptional<z.ZodObject<{
2876
+ url: z.ZodString;
2877
+ width: z.ZodOptional<z.ZodInt>;
2878
+ height: z.ZodOptional<z.ZodInt>;
2879
+ }, z.core.$strict>>;
2880
+ WEBP_LOW_RES: z.ZodOptional<z.ZodObject<{
2881
+ url: z.ZodString;
2882
+ width: z.ZodOptional<z.ZodInt>;
2883
+ height: z.ZodOptional<z.ZodInt>;
2884
+ }, z.core.$strict>>;
2885
+ WEBP_HI_2X_RES: z.ZodOptional<z.ZodObject<{
2886
+ url: z.ZodString;
2887
+ width: z.ZodOptional<z.ZodInt>;
2888
+ height: z.ZodOptional<z.ZodInt>;
2889
+ }, z.core.$strict>>;
2890
+ MOBILE_WEBP_LOW_RES: z.ZodOptional<z.ZodObject<{
2891
+ url: z.ZodString;
2892
+ width: z.ZodOptional<z.ZodInt>;
2893
+ height: z.ZodOptional<z.ZodInt>;
2894
+ }, z.core.$strict>>;
2895
+ MOBILE_WEBP_HI_RES: z.ZodOptional<z.ZodObject<{
2896
+ url: z.ZodString;
2897
+ width: z.ZodOptional<z.ZodInt>;
2898
+ height: z.ZodOptional<z.ZodInt>;
2899
+ }, z.core.$strict>>;
2900
+ }, z.core.$strict>;
2901
+ borderInfo: z.ZodOptional<z.ZodObject<{
2902
+ homogeneity: z.ZodOptional<z.ZodBoolean>;
2903
+ color: z.ZodOptional<z.ZodObject<{
2904
+ r: z.ZodNumber;
2905
+ g: z.ZodNumber;
2906
+ b: z.ZodNumber;
2907
+ a: z.ZodNumber;
2908
+ }, z.core.$strict>>;
2909
+ }, z.core.$strict>>;
2910
+ }, z.core.$strict>;
2911
+ }, z.core.$strict>, z.ZodObject<{
2912
+ type: z.ZodLiteral<"TOGGLE">;
2913
+ enabled: z.ZodBoolean;
2914
+ }, z.core.$strict>, z.ZodObject<{
2915
+ type: z.ZodLiteral<"SELECTBOX">;
2916
+ value: z.ZodString;
2917
+ }, z.core.$strict>, z.ZodObject<{
2918
+ type: z.ZodLiteral<"DIVIDER">;
2919
+ }, z.core.$strict>, z.ZodObject<{
2920
+ type: z.ZodLiteral<"INFO">;
2921
+ text: z.ZodOptional<z.ZodString>;
2922
+ button: z.ZodOptional<z.ZodObject<{
2923
+ title: z.ZodOptional<z.ZodString>;
2924
+ link: z.ZodOptional<z.ZodString>;
2925
+ }, z.core.$strict>>;
2926
+ }, z.core.$strict>, z.ZodObject<{
2927
+ type: z.ZodLiteral<"PRODUCT_SELECTOR">;
2928
+ }, z.core.$strict>, z.ZodObject<{
2929
+ type: z.ZodLiteral<"CATEGORY_SELECTOR">;
2930
+ }, z.core.$strict>], "type">>;
2931
+ }, z.core.$strict>>;
2932
+ }, z.core.$strict>], "type">;
2757
2933
  declare const DeckShowcaseContentEditorDefaultsSchema: z.ZodObject<{
2758
2934
  type: z.ZodLiteral<"DECK">;
2759
2935
  cards: z.ZodArray<z.ZodObject<{
@@ -4945,6 +5121,7 @@ type CategorySelectorContentEditor = z.infer<typeof CategorySelectorContentEdito
4945
5121
  type ContentEditor = z.infer<typeof ContentEditorSchema>;
4946
5122
  type ContentSettings = z.infer<typeof ContentSettingsSchema>;
4947
5123
  type ContentEditorDefaults = z.infer<typeof ShowcaseContentEditorDefaultsSchema>;
5124
+ type ContentEditorDefaultsWithNestedDeckUnion = z.infer<typeof ContentEditorDefaultsWithNestedDeckSchemaUnion>;
4948
5125
 
4949
5126
  type MandatoryContentSettings = {
4950
5127
  menu: NavigationMenuContentEditor;
@@ -19614,4 +19791,4 @@ declare const translation: {
19614
19791
  };
19615
19792
 
19616
19793
  export { ActionLinkTypeEnum, BackgroundStyleEnum, ButtonAppearanceEnum, ButtonShapeEnum, ButtonSizeEnum, ButtonTypeEnum, CatalogLayoutSlot, CategoryLayoutSlot, Color$1 as Color, ConfigTypeEnum, DesignEditorType, EditorTypes, ImageSet, InstantsiteJsEvent, LogoTypeEnum, OverlayType, OverlayTypeEnum, PluginTypeEnum, ProductLayoutSlot, SectionTypeEnum, TemplateCategoriesList, ValidationTypeEnum, asStructuredColor, collection, content, createLayoutApp, createTextStyle, createVueClientApp, createVueServerApp, design, getBackgroundStyle, getColorHex, getContrastTextColor, getCurrentLanguageCode, isColorDark, layout, section, showcase, template, translation, useAccordionElementDesign, useBackgroundElementDesign, useBackgroundStyle, useButtonElementContent, useButtonElementDesign, useButtonStyles, useCategorySelectorElementContent, useCurrentLanguage, useDeckElementContent, useImageElementContent, useImageElementDesign, useInputboxElementContent, useInstantsiteJsApi, useLayoutElementDesign, useLogoElementContent, useLogoElementDesign, useMenuElementContent, useNavigationMenuElementContent, useProductSelectorElementContent, useSelectboxElementContent, useSelectboxElementDesign, useTextElementDesign, useTextareaElementContent, useTextareaElementDesign, useToggleElementContent, useToggleElementDesign, useTranslation, useVueBaseProps };
19617
- export type { AccordionDesignData, AccordionDesignEditor, AccordionDesignEditorDefaults, AccordionDesignItemData, AccordionItem, AccordionShowcaseDesignEditorDefaults, ActionLink, AppBaseContext, AppBaseData, AppBaseState, Background, BackgroundDesignData$1 as BackgroundDesignData, BackgroundDesignEditor, BackgroundDesignEditorDefaults, BackgroundDesignEditorDefaultsTransformed, BackgroundStyleOptions, BackgroundTransformed, BackgroundType, ButtonAppearance, ButtonContentData, ButtonContentEditor, ButtonContentEditorDefaults, ButtonDesignData$1 as ButtonDesignData, ButtonDesignEditor, ButtonDesignEditorDefaults, ButtonDesignEditorDefaultsTransformed, ButtonSize, ButtonSizeStyles, ButtonStyle, CapitalizationType, Card, CategorySelectorContent, CategorySelectorContentEditor, CategorySelectorContentEditorDefaults, CategorySelectorData, CollectionDescriptor, CollectionDescriptorContent, CollectionDescriptorMetadata, ColorPickerDesignEditor, ColorPickerDesignEditorDefaults, ColorPickerDesignEditorDefaultsTransformed, ContentEditor, ContentEditorDefaults, ContentSettings, CustomSection, Deck, DeckContent, DeckContentEditor, DefaultSection, DesignEditor, DesignEditorDefaults, DesignEditorDefaultsTransformed, DesignSettings, DividerContentEditor, DividerContentEditorDefaults, DividerDesignEditor, Font, Frame, GlobalColorsString, GlobalDesign$1 as GlobalDesign, GlobalFontsString, GlobalTextSizeString, GradientColor, GradientColorTransformed, HSLColor, ImageBorderInfoData, ImageContent, ImageContentData, ImageContentEditor, ImageContentEditorDefaults, ImageDesignData$1 as ImageDesignData, ImageDesignEditor, ImageDesignEditorDefaults, ImageDesignEditorDefaultsTransformed, ImageInfoData, InfoContentEditor, InfoContentEditorDefaults, InfoDesignEditor, InfoDesignEditorDefaults, InputBoxContent, InputboxContentEditor, InputboxContentEditorDefaults, InstantsiteJSAPI$1 as InstantsiteJSAPI, InstantsiteTilePromise$1 as InstantsiteTilePromise, InternalColor, LayoutDesignData, LayoutDesignOverride, LayoutSettings, LogoContent, LogoContentData, LogoContentEditor, LogoContentEditorDefaults, LogoDesignData$1 as LogoDesignData, LogoDesignEditor, LogoDesignEditorDefaults, LogoDesignEditorDefaultsTransformed, LogoType, MandatoryContentSettings, MandatoryDesignSettings, Manifest, MenuContent, MenuContentData, MenuContentEditor, MenuItem, NavigationMenuContentEditor, Overlay, OverlayTransformed, ProductSelectorContent, ProductSelectorContentEditor, ProductSelectorContentEditorDefaults, ProductSelectorData, RGBAColor, Section, SelectBoxContent, SelectboxContentEditor, SelectboxContentEditorDefaults, SelectboxContentOption, SelectboxDesignData, SelectboxDesignEditor, SelectboxDesignEditorDefaults, SelectboxDesignEditorDefaultsTransformed, Showcase, ShowcaseAccordionItem, ShowcaseContentEditorsDefaults, ShowcaseDeckContentEditorDefaults, ShowcaseImageContentEditorDefaults, ShowcaseInputboxContentEditorDefaults, ShowcaseLogoContentEditorDefaults, ShowcaseMenuContentEditorDefaults, ShowcaseNavigationMenuContentEditorDefaults, ShowcaseOverride, ShowcaseTextareaContentEditorDefaults, SolidColor, SolidColorTransformed, StorePageConfiguration, StorefrontSection, StorefrontSectionId, Template, TemplateConfiguration, TemplateConfigurationSection, TemplateCustomSection, TemplateDefaultSection, TemplateMetadata, TemplatePage, TemplatePageNamed, TemplateStorefrontSection, TextAreaContent, TextDesignData$1 as TextDesignData, TextDesignEditor, TextDesignEditorDefaults, TextDesignEditorDefaultsTransformed, TextSize, TextStyleOptions, TextareaContentEditor, TextareaContentEditorDefaults, TextareaDesignData$1 as TextareaDesignData, ToggleContent, ToggleContentData, ToggleContentEditor, ToggleContentEditorDefaults, ToggleDesignData, ToggleDesignEditor, ToggleDesignEditorDefaults, ToggleDesignEditorDefaultsTransformed, TransformedFrame, TranslationSettings, UseButtonStylesOptions, UseCurrentLanguageReturn, VuegaPageId };
19794
+ export type { AccordionDesignData, AccordionDesignEditor, AccordionDesignEditorDefaults, AccordionDesignItemData, AccordionItem, AccordionShowcaseDesignEditorDefaults, ActionLink, AppBaseContext, AppBaseData, AppBaseState, Background, BackgroundDesignData$1 as BackgroundDesignData, BackgroundDesignEditor, BackgroundDesignEditorDefaults, BackgroundDesignEditorDefaultsTransformed, BackgroundStyleOptions, BackgroundTransformed, BackgroundType, ButtonAppearance, ButtonContentData, ButtonContentEditor, ButtonContentEditorDefaults, ButtonDesignData$1 as ButtonDesignData, ButtonDesignEditor, ButtonDesignEditorDefaults, ButtonDesignEditorDefaultsTransformed, ButtonSize, ButtonSizeStyles, ButtonStyle, CapitalizationType, Card, CategorySelectorContent, CategorySelectorContentEditor, CategorySelectorContentEditorDefaults, CategorySelectorData, CollectionDescriptor, CollectionDescriptorContent, CollectionDescriptorMetadata, ColorPickerDesignEditor, ColorPickerDesignEditorDefaults, ColorPickerDesignEditorDefaultsTransformed, ContentEditor, ContentEditorDefaults, ContentEditorDefaultsWithNestedDeckUnion, ContentSettings, CustomSection, Deck, DeckContent, DeckContentEditor, DefaultSection, DesignEditor, DesignEditorDefaults, DesignEditorDefaultsTransformed, DesignSettings, DividerContentEditor, DividerContentEditorDefaults, DividerDesignEditor, Font, Frame, GlobalColorsString, GlobalDesign$1 as GlobalDesign, GlobalFontsString, GlobalTextSizeString, GradientColor, GradientColorTransformed, HSLColor, ImageBorderInfoData, ImageContent, ImageContentData, ImageContentEditor, ImageContentEditorDefaults, ImageDesignData$1 as ImageDesignData, ImageDesignEditor, ImageDesignEditorDefaults, ImageDesignEditorDefaultsTransformed, ImageInfoData, InfoContentEditor, InfoContentEditorDefaults, InfoDesignEditor, InfoDesignEditorDefaults, InputBoxContent, InputboxContentEditor, InputboxContentEditorDefaults, InstantsiteJSAPI$1 as InstantsiteJSAPI, InstantsiteTilePromise$1 as InstantsiteTilePromise, InternalColor, LayoutDesignData, LayoutDesignOverride, LayoutSettings, LogoContent, LogoContentData, LogoContentEditor, LogoContentEditorDefaults, LogoDesignData$1 as LogoDesignData, LogoDesignEditor, LogoDesignEditorDefaults, LogoDesignEditorDefaultsTransformed, LogoType, MandatoryContentSettings, MandatoryDesignSettings, Manifest, MenuContent, MenuContentData, MenuContentEditor, MenuItem, NavigationMenuContentEditor, Overlay, OverlayTransformed, ProductSelectorContent, ProductSelectorContentEditor, ProductSelectorContentEditorDefaults, ProductSelectorData, RGBAColor, Section, SelectBoxContent, SelectboxContentEditor, SelectboxContentEditorDefaults, SelectboxContentOption, SelectboxDesignData, SelectboxDesignEditor, SelectboxDesignEditorDefaults, SelectboxDesignEditorDefaultsTransformed, Showcase, ShowcaseAccordionItem, ShowcaseContentEditorsDefaults, ShowcaseDeckContentEditorDefaults, ShowcaseImageContentEditorDefaults, ShowcaseInputboxContentEditorDefaults, ShowcaseLogoContentEditorDefaults, ShowcaseMenuContentEditorDefaults, ShowcaseNavigationMenuContentEditorDefaults, ShowcaseOverride, ShowcaseTextareaContentEditorDefaults, SolidColor, SolidColorTransformed, StorePageConfiguration, StorefrontSection, StorefrontSectionId, Template, TemplateConfiguration, TemplateConfigurationSection, TemplateCustomSection, TemplateDefaultSection, TemplateMetadata, TemplatePage, TemplatePageNamed, TemplateStorefrontSection, TextAreaContent, TextDesignData$1 as TextDesignData, TextDesignEditor, TextDesignEditorDefaults, TextDesignEditorDefaultsTransformed, TextSize, TextStyleOptions, TextareaContentEditor, TextareaContentEditorDefaults, TextareaDesignData$1 as TextareaDesignData, ToggleContent, ToggleContentData, ToggleContentEditor, ToggleContentEditorDefaults, ToggleDesignData, ToggleDesignEditor, ToggleDesignEditorDefaults, ToggleDesignEditorDefaultsTransformed, TransformedFrame, TranslationSettings, UseButtonStylesOptions, UseCurrentLanguageReturn, VuegaPageId };
package/dist/index.d.ts CHANGED
@@ -2755,6 +2755,182 @@ type LogoContentEditorDefaults = z.infer<typeof LogoContentEditorDefaultsSchema>
2755
2755
  type ProductSelectorContentEditorDefaults = z.infer<typeof ProductSelectorContentEditorDefaultsSchema>;
2756
2756
  type CategorySelectorContentEditorDefaults = z.infer<typeof CategorySelectorContentEditorDefaultsSchema>;
2757
2757
 
2758
+ declare const ContentEditorDefaultsWithNestedDeckSchemaUnion: z.ZodDiscriminatedUnion<[z.ZodObject<{
2759
+ type: z.ZodLiteral<"INPUTBOX">;
2760
+ text: z.ZodString;
2761
+ }, z.core.$strict>, z.ZodObject<{
2762
+ type: z.ZodLiteral<"TEXTAREA">;
2763
+ text: z.ZodString;
2764
+ }, z.core.$strict>, z.ZodObject<{
2765
+ type: z.ZodLiteral<"BUTTON">;
2766
+ title: z.ZodString;
2767
+ buttonType: z.ZodEnum<{
2768
+ SCROLL_TO_TILE: "SCROLL_TO_TILE";
2769
+ HYPER_LINK: "HYPER_LINK";
2770
+ MAIL_LINK: "MAIL_LINK";
2771
+ TEL_LINK: "TEL_LINK";
2772
+ GO_TO_STORE: "GO_TO_STORE";
2773
+ GO_TO_STORE_LINK: "GO_TO_STORE_LINK";
2774
+ GO_TO_PAGE: "GO_TO_PAGE";
2775
+ GO_TO_CATEGORY: "GO_TO_CATEGORY";
2776
+ GO_TO_CATEGORY_LINK: "GO_TO_CATEGORY_LINK";
2777
+ }>;
2778
+ link: z.ZodOptional<z.ZodString>;
2779
+ linkTarget: z.ZodOptional<z.ZodString>;
2780
+ email: z.ZodOptional<z.ZodString>;
2781
+ phone: z.ZodOptional<z.ZodString>;
2782
+ tileId: z.ZodOptional<z.ZodString>;
2783
+ categoryId: z.ZodOptional<z.ZodNumber>;
2784
+ }, z.core.$strict>, z.ZodObject<{
2785
+ type: z.ZodLiteral<"IMAGE">;
2786
+ imageData: z.ZodObject<{
2787
+ set: z.ZodObject<{
2788
+ ORIGINAL: z.ZodOptional<z.ZodObject<{
2789
+ url: z.ZodString;
2790
+ width: z.ZodOptional<z.ZodInt>;
2791
+ height: z.ZodOptional<z.ZodInt>;
2792
+ }, z.core.$strict>>;
2793
+ WEBP_LOW_RES: z.ZodOptional<z.ZodObject<{
2794
+ url: z.ZodString;
2795
+ width: z.ZodOptional<z.ZodInt>;
2796
+ height: z.ZodOptional<z.ZodInt>;
2797
+ }, z.core.$strict>>;
2798
+ WEBP_HI_2X_RES: z.ZodOptional<z.ZodObject<{
2799
+ url: z.ZodString;
2800
+ width: z.ZodOptional<z.ZodInt>;
2801
+ height: z.ZodOptional<z.ZodInt>;
2802
+ }, z.core.$strict>>;
2803
+ MOBILE_WEBP_LOW_RES: z.ZodOptional<z.ZodObject<{
2804
+ url: z.ZodString;
2805
+ width: z.ZodOptional<z.ZodInt>;
2806
+ height: z.ZodOptional<z.ZodInt>;
2807
+ }, z.core.$strict>>;
2808
+ MOBILE_WEBP_HI_RES: z.ZodOptional<z.ZodObject<{
2809
+ url: z.ZodString;
2810
+ width: z.ZodOptional<z.ZodInt>;
2811
+ height: z.ZodOptional<z.ZodInt>;
2812
+ }, z.core.$strict>>;
2813
+ }, z.core.$strict>;
2814
+ borderInfo: z.ZodOptional<z.ZodObject<{
2815
+ homogeneity: z.ZodOptional<z.ZodBoolean>;
2816
+ color: z.ZodOptional<z.ZodObject<{
2817
+ r: z.ZodNumber;
2818
+ g: z.ZodNumber;
2819
+ b: z.ZodNumber;
2820
+ a: z.ZodNumber;
2821
+ }, z.core.$strict>>;
2822
+ }, z.core.$strict>>;
2823
+ }, z.core.$strict>;
2824
+ }, z.core.$strict>, z.ZodObject<{
2825
+ type: z.ZodLiteral<"TOGGLE">;
2826
+ enabled: z.ZodBoolean;
2827
+ }, z.core.$strict>, z.ZodObject<{
2828
+ type: z.ZodLiteral<"SELECTBOX">;
2829
+ value: z.ZodString;
2830
+ }, z.core.$strict>, z.ZodObject<{
2831
+ type: z.ZodLiteral<"DIVIDER">;
2832
+ }, z.core.$strict>, z.ZodObject<{
2833
+ type: z.ZodLiteral<"INFO">;
2834
+ text: z.ZodOptional<z.ZodString>;
2835
+ button: z.ZodOptional<z.ZodObject<{
2836
+ title: z.ZodOptional<z.ZodString>;
2837
+ link: z.ZodOptional<z.ZodString>;
2838
+ }, z.core.$strict>>;
2839
+ }, z.core.$strict>, z.ZodObject<{
2840
+ type: z.ZodLiteral<"PRODUCT_SELECTOR">;
2841
+ }, z.core.$strict>, z.ZodObject<{
2842
+ type: z.ZodLiteral<"CATEGORY_SELECTOR">;
2843
+ }, z.core.$strict>, z.ZodObject<{
2844
+ type: z.ZodLiteral<"DECK">;
2845
+ cards: z.ZodArray<z.ZodObject<{
2846
+ settings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2847
+ type: z.ZodLiteral<"INPUTBOX">;
2848
+ text: z.ZodString;
2849
+ }, z.core.$strict>, z.ZodObject<{
2850
+ type: z.ZodLiteral<"TEXTAREA">;
2851
+ text: z.ZodString;
2852
+ }, z.core.$strict>, z.ZodObject<{
2853
+ type: z.ZodLiteral<"BUTTON">;
2854
+ title: z.ZodString;
2855
+ buttonType: z.ZodEnum<{
2856
+ SCROLL_TO_TILE: "SCROLL_TO_TILE";
2857
+ HYPER_LINK: "HYPER_LINK";
2858
+ MAIL_LINK: "MAIL_LINK";
2859
+ TEL_LINK: "TEL_LINK";
2860
+ GO_TO_STORE: "GO_TO_STORE";
2861
+ GO_TO_STORE_LINK: "GO_TO_STORE_LINK";
2862
+ GO_TO_PAGE: "GO_TO_PAGE";
2863
+ GO_TO_CATEGORY: "GO_TO_CATEGORY";
2864
+ GO_TO_CATEGORY_LINK: "GO_TO_CATEGORY_LINK";
2865
+ }>;
2866
+ link: z.ZodOptional<z.ZodString>;
2867
+ linkTarget: z.ZodOptional<z.ZodString>;
2868
+ email: z.ZodOptional<z.ZodString>;
2869
+ phone: z.ZodOptional<z.ZodString>;
2870
+ tileId: z.ZodOptional<z.ZodString>;
2871
+ categoryId: z.ZodOptional<z.ZodNumber>;
2872
+ }, z.core.$strict>, z.ZodObject<{
2873
+ type: z.ZodLiteral<"IMAGE">;
2874
+ imageData: z.ZodObject<{
2875
+ set: z.ZodObject<{
2876
+ ORIGINAL: z.ZodOptional<z.ZodObject<{
2877
+ url: z.ZodString;
2878
+ width: z.ZodOptional<z.ZodInt>;
2879
+ height: z.ZodOptional<z.ZodInt>;
2880
+ }, z.core.$strict>>;
2881
+ WEBP_LOW_RES: z.ZodOptional<z.ZodObject<{
2882
+ url: z.ZodString;
2883
+ width: z.ZodOptional<z.ZodInt>;
2884
+ height: z.ZodOptional<z.ZodInt>;
2885
+ }, z.core.$strict>>;
2886
+ WEBP_HI_2X_RES: z.ZodOptional<z.ZodObject<{
2887
+ url: z.ZodString;
2888
+ width: z.ZodOptional<z.ZodInt>;
2889
+ height: z.ZodOptional<z.ZodInt>;
2890
+ }, z.core.$strict>>;
2891
+ MOBILE_WEBP_LOW_RES: z.ZodOptional<z.ZodObject<{
2892
+ url: z.ZodString;
2893
+ width: z.ZodOptional<z.ZodInt>;
2894
+ height: z.ZodOptional<z.ZodInt>;
2895
+ }, z.core.$strict>>;
2896
+ MOBILE_WEBP_HI_RES: z.ZodOptional<z.ZodObject<{
2897
+ url: z.ZodString;
2898
+ width: z.ZodOptional<z.ZodInt>;
2899
+ height: z.ZodOptional<z.ZodInt>;
2900
+ }, z.core.$strict>>;
2901
+ }, z.core.$strict>;
2902
+ borderInfo: z.ZodOptional<z.ZodObject<{
2903
+ homogeneity: z.ZodOptional<z.ZodBoolean>;
2904
+ color: z.ZodOptional<z.ZodObject<{
2905
+ r: z.ZodNumber;
2906
+ g: z.ZodNumber;
2907
+ b: z.ZodNumber;
2908
+ a: z.ZodNumber;
2909
+ }, z.core.$strict>>;
2910
+ }, z.core.$strict>>;
2911
+ }, z.core.$strict>;
2912
+ }, z.core.$strict>, z.ZodObject<{
2913
+ type: z.ZodLiteral<"TOGGLE">;
2914
+ enabled: z.ZodBoolean;
2915
+ }, z.core.$strict>, z.ZodObject<{
2916
+ type: z.ZodLiteral<"SELECTBOX">;
2917
+ value: z.ZodString;
2918
+ }, z.core.$strict>, z.ZodObject<{
2919
+ type: z.ZodLiteral<"DIVIDER">;
2920
+ }, z.core.$strict>, z.ZodObject<{
2921
+ type: z.ZodLiteral<"INFO">;
2922
+ text: z.ZodOptional<z.ZodString>;
2923
+ button: z.ZodOptional<z.ZodObject<{
2924
+ title: z.ZodOptional<z.ZodString>;
2925
+ link: z.ZodOptional<z.ZodString>;
2926
+ }, z.core.$strict>>;
2927
+ }, z.core.$strict>, z.ZodObject<{
2928
+ type: z.ZodLiteral<"PRODUCT_SELECTOR">;
2929
+ }, z.core.$strict>, z.ZodObject<{
2930
+ type: z.ZodLiteral<"CATEGORY_SELECTOR">;
2931
+ }, z.core.$strict>], "type">>;
2932
+ }, z.core.$strict>>;
2933
+ }, z.core.$strict>], "type">;
2758
2934
  declare const DeckShowcaseContentEditorDefaultsSchema: z.ZodObject<{
2759
2935
  type: z.ZodLiteral<"DECK">;
2760
2936
  cards: z.ZodArray<z.ZodObject<{
@@ -4946,6 +5122,7 @@ type CategorySelectorContentEditor = z.infer<typeof CategorySelectorContentEdito
4946
5122
  type ContentEditor = z.infer<typeof ContentEditorSchema>;
4947
5123
  type ContentSettings = z.infer<typeof ContentSettingsSchema>;
4948
5124
  type ContentEditorDefaults = z.infer<typeof ShowcaseContentEditorDefaultsSchema>;
5125
+ type ContentEditorDefaultsWithNestedDeckUnion = z.infer<typeof ContentEditorDefaultsWithNestedDeckSchemaUnion>;
4949
5126
 
4950
5127
  type MandatoryContentSettings = {
4951
5128
  menu: NavigationMenuContentEditor;
@@ -19615,4 +19792,4 @@ declare const translation: {
19615
19792
  };
19616
19793
 
19617
19794
  export { ActionLinkTypeEnum, BackgroundStyleEnum, ButtonAppearanceEnum, ButtonShapeEnum, ButtonSizeEnum, ButtonTypeEnum, CatalogLayoutSlot, CategoryLayoutSlot, Color$1 as Color, ConfigTypeEnum, DesignEditorType, EditorTypes, ImageSet, InstantsiteJsEvent, LogoTypeEnum, OverlayType, OverlayTypeEnum, PluginTypeEnum, ProductLayoutSlot, SectionTypeEnum, TemplateCategoriesList, ValidationTypeEnum, asStructuredColor, collection, content, createLayoutApp, createTextStyle, createVueClientApp, createVueServerApp, design, getBackgroundStyle, getColorHex, getContrastTextColor, getCurrentLanguageCode, isColorDark, layout, section, showcase, template, translation, useAccordionElementDesign, useBackgroundElementDesign, useBackgroundStyle, useButtonElementContent, useButtonElementDesign, useButtonStyles, useCategorySelectorElementContent, useCurrentLanguage, useDeckElementContent, useImageElementContent, useImageElementDesign, useInputboxElementContent, useInstantsiteJsApi, useLayoutElementDesign, useLogoElementContent, useLogoElementDesign, useMenuElementContent, useNavigationMenuElementContent, useProductSelectorElementContent, useSelectboxElementContent, useSelectboxElementDesign, useTextElementDesign, useTextareaElementContent, useTextareaElementDesign, useToggleElementContent, useToggleElementDesign, useTranslation, useVueBaseProps };
19618
- export type { AccordionDesignData, AccordionDesignEditor, AccordionDesignEditorDefaults, AccordionDesignItemData, AccordionItem, AccordionShowcaseDesignEditorDefaults, ActionLink, AppBaseContext, AppBaseData, AppBaseState, Background, BackgroundDesignData$1 as BackgroundDesignData, BackgroundDesignEditor, BackgroundDesignEditorDefaults, BackgroundDesignEditorDefaultsTransformed, BackgroundStyleOptions, BackgroundTransformed, BackgroundType, ButtonAppearance, ButtonContentData, ButtonContentEditor, ButtonContentEditorDefaults, ButtonDesignData$1 as ButtonDesignData, ButtonDesignEditor, ButtonDesignEditorDefaults, ButtonDesignEditorDefaultsTransformed, ButtonSize, ButtonSizeStyles, ButtonStyle, CapitalizationType, Card, CategorySelectorContent, CategorySelectorContentEditor, CategorySelectorContentEditorDefaults, CategorySelectorData, CollectionDescriptor, CollectionDescriptorContent, CollectionDescriptorMetadata, ColorPickerDesignEditor, ColorPickerDesignEditorDefaults, ColorPickerDesignEditorDefaultsTransformed, ContentEditor, ContentEditorDefaults, ContentSettings, CustomSection, Deck, DeckContent, DeckContentEditor, DefaultSection, DesignEditor, DesignEditorDefaults, DesignEditorDefaultsTransformed, DesignSettings, DividerContentEditor, DividerContentEditorDefaults, DividerDesignEditor, Font, Frame, GlobalColorsString, GlobalDesign$1 as GlobalDesign, GlobalFontsString, GlobalTextSizeString, GradientColor, GradientColorTransformed, HSLColor, ImageBorderInfoData, ImageContent, ImageContentData, ImageContentEditor, ImageContentEditorDefaults, ImageDesignData$1 as ImageDesignData, ImageDesignEditor, ImageDesignEditorDefaults, ImageDesignEditorDefaultsTransformed, ImageInfoData, InfoContentEditor, InfoContentEditorDefaults, InfoDesignEditor, InfoDesignEditorDefaults, InputBoxContent, InputboxContentEditor, InputboxContentEditorDefaults, InstantsiteJSAPI$1 as InstantsiteJSAPI, InstantsiteTilePromise$1 as InstantsiteTilePromise, InternalColor, LayoutDesignData, LayoutDesignOverride, LayoutSettings, LogoContent, LogoContentData, LogoContentEditor, LogoContentEditorDefaults, LogoDesignData$1 as LogoDesignData, LogoDesignEditor, LogoDesignEditorDefaults, LogoDesignEditorDefaultsTransformed, LogoType, MandatoryContentSettings, MandatoryDesignSettings, Manifest, MenuContent, MenuContentData, MenuContentEditor, MenuItem, NavigationMenuContentEditor, Overlay, OverlayTransformed, ProductSelectorContent, ProductSelectorContentEditor, ProductSelectorContentEditorDefaults, ProductSelectorData, RGBAColor, Section, SelectBoxContent, SelectboxContentEditor, SelectboxContentEditorDefaults, SelectboxContentOption, SelectboxDesignData, SelectboxDesignEditor, SelectboxDesignEditorDefaults, SelectboxDesignEditorDefaultsTransformed, Showcase, ShowcaseAccordionItem, ShowcaseContentEditorsDefaults, ShowcaseDeckContentEditorDefaults, ShowcaseImageContentEditorDefaults, ShowcaseInputboxContentEditorDefaults, ShowcaseLogoContentEditorDefaults, ShowcaseMenuContentEditorDefaults, ShowcaseNavigationMenuContentEditorDefaults, ShowcaseOverride, ShowcaseTextareaContentEditorDefaults, SolidColor, SolidColorTransformed, StorePageConfiguration, StorefrontSection, StorefrontSectionId, Template, TemplateConfiguration, TemplateConfigurationSection, TemplateCustomSection, TemplateDefaultSection, TemplateMetadata, TemplatePage, TemplatePageNamed, TemplateStorefrontSection, TextAreaContent, TextDesignData$1 as TextDesignData, TextDesignEditor, TextDesignEditorDefaults, TextDesignEditorDefaultsTransformed, TextSize, TextStyleOptions, TextareaContentEditor, TextareaContentEditorDefaults, TextareaDesignData$1 as TextareaDesignData, ToggleContent, ToggleContentData, ToggleContentEditor, ToggleContentEditorDefaults, ToggleDesignData, ToggleDesignEditor, ToggleDesignEditorDefaults, ToggleDesignEditorDefaultsTransformed, TransformedFrame, TranslationSettings, UseButtonStylesOptions, UseCurrentLanguageReturn, VuegaPageId };
19795
+ export type { AccordionDesignData, AccordionDesignEditor, AccordionDesignEditorDefaults, AccordionDesignItemData, AccordionItem, AccordionShowcaseDesignEditorDefaults, ActionLink, AppBaseContext, AppBaseData, AppBaseState, Background, BackgroundDesignData$1 as BackgroundDesignData, BackgroundDesignEditor, BackgroundDesignEditorDefaults, BackgroundDesignEditorDefaultsTransformed, BackgroundStyleOptions, BackgroundTransformed, BackgroundType, ButtonAppearance, ButtonContentData, ButtonContentEditor, ButtonContentEditorDefaults, ButtonDesignData$1 as ButtonDesignData, ButtonDesignEditor, ButtonDesignEditorDefaults, ButtonDesignEditorDefaultsTransformed, ButtonSize, ButtonSizeStyles, ButtonStyle, CapitalizationType, Card, CategorySelectorContent, CategorySelectorContentEditor, CategorySelectorContentEditorDefaults, CategorySelectorData, CollectionDescriptor, CollectionDescriptorContent, CollectionDescriptorMetadata, ColorPickerDesignEditor, ColorPickerDesignEditorDefaults, ColorPickerDesignEditorDefaultsTransformed, ContentEditor, ContentEditorDefaults, ContentEditorDefaultsWithNestedDeckUnion, ContentSettings, CustomSection, Deck, DeckContent, DeckContentEditor, DefaultSection, DesignEditor, DesignEditorDefaults, DesignEditorDefaultsTransformed, DesignSettings, DividerContentEditor, DividerContentEditorDefaults, DividerDesignEditor, Font, Frame, GlobalColorsString, GlobalDesign$1 as GlobalDesign, GlobalFontsString, GlobalTextSizeString, GradientColor, GradientColorTransformed, HSLColor, ImageBorderInfoData, ImageContent, ImageContentData, ImageContentEditor, ImageContentEditorDefaults, ImageDesignData$1 as ImageDesignData, ImageDesignEditor, ImageDesignEditorDefaults, ImageDesignEditorDefaultsTransformed, ImageInfoData, InfoContentEditor, InfoContentEditorDefaults, InfoDesignEditor, InfoDesignEditorDefaults, InputBoxContent, InputboxContentEditor, InputboxContentEditorDefaults, InstantsiteJSAPI$1 as InstantsiteJSAPI, InstantsiteTilePromise$1 as InstantsiteTilePromise, InternalColor, LayoutDesignData, LayoutDesignOverride, LayoutSettings, LogoContent, LogoContentData, LogoContentEditor, LogoContentEditorDefaults, LogoDesignData$1 as LogoDesignData, LogoDesignEditor, LogoDesignEditorDefaults, LogoDesignEditorDefaultsTransformed, LogoType, MandatoryContentSettings, MandatoryDesignSettings, Manifest, MenuContent, MenuContentData, MenuContentEditor, MenuItem, NavigationMenuContentEditor, Overlay, OverlayTransformed, ProductSelectorContent, ProductSelectorContentEditor, ProductSelectorContentEditorDefaults, ProductSelectorData, RGBAColor, Section, SelectBoxContent, SelectboxContentEditor, SelectboxContentEditorDefaults, SelectboxContentOption, SelectboxDesignData, SelectboxDesignEditor, SelectboxDesignEditorDefaults, SelectboxDesignEditorDefaultsTransformed, Showcase, ShowcaseAccordionItem, ShowcaseContentEditorsDefaults, ShowcaseDeckContentEditorDefaults, ShowcaseImageContentEditorDefaults, ShowcaseInputboxContentEditorDefaults, ShowcaseLogoContentEditorDefaults, ShowcaseMenuContentEditorDefaults, ShowcaseNavigationMenuContentEditorDefaults, ShowcaseOverride, ShowcaseTextareaContentEditorDefaults, SolidColor, SolidColorTransformed, StorePageConfiguration, StorefrontSection, StorefrontSectionId, Template, TemplateConfiguration, TemplateConfigurationSection, TemplateCustomSection, TemplateDefaultSection, TemplateMetadata, TemplatePage, TemplatePageNamed, TemplateStorefrontSection, TextAreaContent, TextDesignData$1 as TextDesignData, TextDesignEditor, TextDesignEditorDefaults, TextDesignEditorDefaultsTransformed, TextSize, TextStyleOptions, TextareaContentEditor, TextareaContentEditorDefaults, TextareaDesignData$1 as TextareaDesignData, ToggleContent, ToggleContentData, ToggleContentEditor, ToggleContentEditorDefaults, ToggleDesignData, ToggleDesignEditor, ToggleDesignEditorDefaults, ToggleDesignEditorDefaultsTransformed, TransformedFrame, TranslationSettings, UseButtonStylesOptions, UseCurrentLanguageReturn, VuegaPageId };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightspeed/crane-api",
3
- "version": "2.4.0",
3
+ "version": "2.4.1-rc.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",