@wix/editor-react-components 1.2212.0 → 1.2214.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/site/components/Logo/panels/customizeLogo/utils.d.ts +3 -2
- package/dist/site/components/SiteLogo/panels/customizeLogo/panel.d.ts +1 -1
- package/dist/site/components/SiteLogo/panels/customizeLogo/translations.d.ts +1 -0
- package/dist/site/components/SiteLogo/panels/customizeLogo/utils.d.ts +25 -0
- package/package.json +2 -2
|
@@ -14,7 +14,7 @@ export declare function fetchLogoDataFromLogoMaker(): Promise<{
|
|
|
14
14
|
primaryLogoId?: undefined;
|
|
15
15
|
brandId?: undefined;
|
|
16
16
|
}>;
|
|
17
|
-
export declare function fetchDesignFromLogoMaker(logoId: string): Promise<
|
|
17
|
+
export declare function fetchDesignFromLogoMaker(logoId: string): Promise<string | undefined>;
|
|
18
18
|
export declare const hasDataChanged: (data: string) => boolean;
|
|
19
19
|
export declare function openLogoEditorInDashboardModal(logoId: string, brandId: string, siteColors: Record<string, string>): Promise<void>;
|
|
20
20
|
export declare function handleOpenOnboardingFlowInDashboardModal(siteColors: Record<string, string>): Promise<void>;
|
|
@@ -32,7 +32,7 @@ export declare function removeBackgroundFromImage(currentLogoUrl: string): Promi
|
|
|
32
32
|
* @param fileUrl - The URL of the file to import to Media Manager
|
|
33
33
|
* @param signal - Optional AbortSignal for cancelling the operation
|
|
34
34
|
*
|
|
35
|
-
* @returns Promise<{url: string, width?: number, height?: number, fileName?: string} | undefined> - The Media Manager file data, or undefined if import failed
|
|
35
|
+
* @returns Promise<{url: string, mediaUri?: string, width?: number, height?: number, fileName?: string} | undefined> - The Media Manager file data, or undefined if import failed
|
|
36
36
|
*
|
|
37
37
|
* @throws {DOMException} - Throws 'AbortError' when the operation is cancelled via AbortSignal
|
|
38
38
|
* @throws {Error} - Throws with message 'Failed to import file to media manager' when the import operation fails
|
|
@@ -73,6 +73,7 @@ export declare function importFileToMyLogosFolder(fileUrl: string, options?: {
|
|
|
73
73
|
}) | undefined>;
|
|
74
74
|
export declare function importFileToMyLogosFolderAndWaitUntilReady(fileUrl: string, signal?: AbortSignal): Promise<{
|
|
75
75
|
url: string | undefined;
|
|
76
|
+
mediaUri: string;
|
|
76
77
|
width: number;
|
|
77
78
|
height: number;
|
|
78
79
|
fileName: undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const TranslationKeys: {
|
|
2
|
+
readonly subtitle: "customize-logo.subtitle";
|
|
2
3
|
readonly revertColors: "site_logo.change_color_panel.revert_cta";
|
|
3
4
|
readonly revertColorsTooltip: "site_logo.change_color_panel.revert_tooltip";
|
|
4
5
|
readonly colorsLabel: "site_logo.change_color_panel.subheader.colors_labelColors";
|
|
@@ -1,6 +1,31 @@
|
|
|
1
|
+
import { ElementDataInput, ElementImage, ElementVectorArt } from '@wix/editor';
|
|
2
|
+
import { BUILDER_IMAGE_TYPE } from '../../../Logo/constants';
|
|
1
3
|
export type SelectedLogoMedia = {
|
|
2
4
|
uri?: string;
|
|
3
5
|
fileUrl?: string;
|
|
6
|
+
fileName?: string;
|
|
7
|
+
height?: number;
|
|
8
|
+
mediaType?: 'picture' | 'shape' | string;
|
|
9
|
+
name?: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
width?: number;
|
|
4
12
|
};
|
|
13
|
+
type SiteLogoImageData = ElementImage & {
|
|
14
|
+
type?: typeof BUILDER_IMAGE_TYPE;
|
|
15
|
+
};
|
|
16
|
+
type SiteLogoVectorArtData = ElementVectorArt & {
|
|
17
|
+
type: 'Builder.VectorArt';
|
|
18
|
+
};
|
|
19
|
+
type SiteLogoData = {
|
|
20
|
+
mediaType: 'svg' | 'image';
|
|
21
|
+
svgId: SiteLogoVectorArtData;
|
|
22
|
+
image: SiteLogoImageData;
|
|
23
|
+
};
|
|
24
|
+
export type SiteLogoDataUpdate = ElementDataInput<Pick<SiteLogoData, 'mediaType' | 'svgId'>> | ElementDataInput<Pick<SiteLogoData, 'mediaType' | 'image'>>;
|
|
25
|
+
export declare const SITE_LOGO_COLOR_STYLE_KEYS: string[];
|
|
26
|
+
export declare const shouldResetSiteLogoColorStyles: (dataUpdate: SiteLogoDataUpdate | undefined) => boolean;
|
|
5
27
|
export declare const getSelectedLogoUri: (selectedMedia: Array<SelectedLogoMedia> | undefined) => string | undefined;
|
|
28
|
+
export declare const getSiteLogoDataUpdateFromSelectedMedia: (selectedMedia: Array<SelectedLogoMedia> | undefined) => SiteLogoDataUpdate | undefined;
|
|
29
|
+
export declare const getSiteLogoDataUpdateFromLogoMakerUrl: (logoUrl: string | undefined) => SiteLogoDataUpdate | undefined;
|
|
6
30
|
export declare const getLogoMakerOnboardingPath: (siteColors: Record<string, string>) => string;
|
|
31
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2214.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -188,5 +188,5 @@
|
|
|
188
188
|
"registry": "https://registry.npmjs.org/",
|
|
189
189
|
"access": "public"
|
|
190
190
|
},
|
|
191
|
-
"falconPackageHash": "
|
|
191
|
+
"falconPackageHash": "704213c90903a37718fa1f6995eb15a1b44e0cd0ce6b15cdb461970b"
|
|
192
192
|
}
|