@wix/editor-react-components 1.2291.0 → 1.2292.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.
@@ -2,7 +2,7 @@ import { default as React } from 'react';
2
2
  import { SvgInfo } from '../../../SvgImage/SvgImage.types';
3
3
  import { Translations } from './translations';
4
4
  type LogoColorPanelProps = {
5
- resolvedVectorArtData: SvgInfo;
5
+ resolvedVectorArtData?: SvgInfo | null;
6
6
  translations: Translations;
7
7
  };
8
8
  export declare const LogoColorPanel: React.FC<LogoColorPanelProps>;
@@ -1,4 +1,5 @@
1
1
  import { ElementDataInput, ElementImage, ElementVectorArt } from '@wix/editor';
2
+ import { SvgInfo } from '../../../SvgImage/SvgImage.types';
2
3
  import { BUILDER_IMAGE_TYPE } from '../../../Logo/constants';
3
4
  export type SelectedLogoMedia = {
4
5
  uri?: string;
@@ -21,9 +22,11 @@ type SiteLogoData = {
21
22
  svgId: SiteLogoVectorArtData;
22
23
  image: SiteLogoImageData;
23
24
  };
24
- export type SiteLogoDataUpdate = ElementDataInput<Pick<SiteLogoData, 'mediaType' | 'svgId'>> | ElementDataInput<Pick<SiteLogoData, 'mediaType' | 'image'>>;
25
+ export type SiteLogoDataUpdate = ElementDataInput<SiteLogoData>;
25
26
  export declare const SITE_LOGO_COLOR_STYLE_KEYS: string[];
26
- export declare const shouldResetSiteLogoColorStyles: (dataUpdate: SiteLogoDataUpdate | undefined) => boolean;
27
+ export declare const getDefaultColorStyles: (resolvedData: SvgInfo) => Record<"svg-color-1" | "svg-color-2" | "svg-color-3" | "svg-color-4" | "svg-color-5" | "svg-color-6" | "svg-color-7" | "svg-color-8", string> | {
28
+ [x: string]: string;
29
+ };
27
30
  export declare const getSelectedLogoUri: (selectedMedia: Array<SelectedLogoMedia> | undefined) => string | undefined;
28
31
  export declare const getSiteLogoDataUpdateFromSelectedMedia: (selectedMedia: Array<SelectedLogoMedia> | undefined) => SiteLogoDataUpdate | undefined;
29
32
  export declare const getSiteLogoDataUpdateFromLogoMakerUrl: (logoUrl: string | undefined) => SiteLogoDataUpdate | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2291.0",
3
+ "version": "1.2292.0",
4
4
  "description": "React components for the Wix Editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -186,5 +186,5 @@
186
186
  "registry": "https://registry.npmjs.org/",
187
187
  "access": "public"
188
188
  },
189
- "falconPackageHash": "ea966024903803328931fcc2839befb330d20e4ebd91ce8eaa865858"
189
+ "falconPackageHash": "0f66f999f586627bef3f3a028f1ef69c894672951f4c4f5f30d83d0f"
190
190
  }