gantri-components 2.187.2 → 2.188.0-beta.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/components/file-uploader/file-uploader.types.d.ts +1 -0
- package/dist/components/file-uploader/hooks/use-uploader-actions/hooks/use-handle-selected-files/use-handle-selected-files.types.d.ts +1 -1
- package/dist/components/file-uploader/hooks/use-uploader-actions/use-uploader-actions.types.d.ts +1 -1
- package/dist/helpers/generate-skus-functions/get-colors-by-product/get-colors-by-product.types.d.ts +1 -0
- package/dist/helpers/generate-skus-functions/get-light-colors/__tests__/get-light-colors.test.d.ts +1 -0
- package/dist/helpers/generate-skus-functions/get-light-colors/get-light-colors.d.ts +3 -0
- package/dist/helpers/generate-skus-functions/get-light-colors/get-light-colors.types.d.ts +3 -0
- package/dist/helpers/generate-skus-functions/get-light-colors/index.d.ts +1 -0
- package/dist/helpers/generate-skus-functions/helpers/get-is-color-available-for-product-id/get-is-color-available-for-product-id.constants.d.ts +1 -0
- package/dist/helpers/generate-skus-functions/helpers/get-is-color-available-for-product-id/get-is-color-available-for-product-id.d.ts +2 -1
- package/dist/helpers/generate-skus-functions/index.d.ts +1 -0
- package/dist/helpers/get-file-url/helpers/get-cloudinary-prefix/get-cloudinary-prefix.d.ts +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/styles/theme.d.ts +1 -1
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ export type FileUploaderProps = {
|
|
|
11
11
|
/** Any children passed will appear just within the uploader above everything else. Use this for notifications like download toasts. */
|
|
12
12
|
children?: ReactNode;
|
|
13
13
|
className?: string;
|
|
14
|
+
disableDeleteOnReplace?: boolean;
|
|
14
15
|
disabledDescription?: string;
|
|
15
16
|
enableCopyUrl?: boolean;
|
|
16
17
|
fileName: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import { SelectedFileDetails, FileUploaderProps, DeleteFile } from '../../../../file-uploader.types';
|
|
3
3
|
import { OptionalValues } from '../../../../../../types/common';
|
|
4
|
-
export type UseHandleSelectedFilesProps = OptionalValues<Required<Pick<FileUploaderProps, 'expectedExtensions' | 'fileUrl' | 'handleFileSelected' | 'handleUploadsComplete' | 'isUploaderOnly' | 'maxFileSizeMB' | 'maxUploadsAllowed' | 'minImageHeight' | 'minImageWidth' | 'onError' | 'onValidationCompleted' | 'onValidationStarted' | 'onlyUseCustomValidationFn' | 'transformFileName' | 'validateFile' | 'validateSequentially'>>> & {
|
|
4
|
+
export type UseHandleSelectedFilesProps = OptionalValues<Required<Pick<FileUploaderProps, 'disableDeleteOnReplace' | 'expectedExtensions' | 'fileUrl' | 'handleFileSelected' | 'handleUploadsComplete' | 'isUploaderOnly' | 'maxFileSizeMB' | 'maxUploadsAllowed' | 'minImageHeight' | 'minImageWidth' | 'onError' | 'onValidationCompleted' | 'onValidationStarted' | 'onlyUseCustomValidationFn' | 'transformFileName' | 'validateFile' | 'validateSequentially'>>> & {
|
|
5
5
|
deleteFile: DeleteFile;
|
|
6
6
|
isReplacing: boolean;
|
|
7
7
|
purgeInput: () => void;
|
package/dist/components/file-uploader/hooks/use-uploader-actions/use-uploader-actions.types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FileUploaderProps } from '../../file-uploader.types';
|
|
2
2
|
import { OptionalValues } from '../../../../types/common';
|
|
3
|
-
export type UseUploadActionsProps = OptionalValues<Required<Pick<FileUploaderProps, 'expectedExtensions' | 'fileName' | 'fileUrl' | 'handleDeleteFile' | 'handleFileSelected' | 'handleUploadsComplete' | 'handleUploadFile' | 'isUploaderOnly' | 'maxUploadsAllowed' | 'onError' | 'onValidationCompleted' | 'onValidationStarted' | 'onlyUseCustomValidationFn' | 'purifyFileName' | 'transformFileName' | 'validateFile' | 'validateSequentially'>>> & Partial<Pick<FileUploaderProps, 'maxFileSizeMB' | 'minImageHeight' | 'minImageWidth'>> & {
|
|
3
|
+
export type UseUploadActionsProps = OptionalValues<Required<Pick<FileUploaderProps, 'disableDeleteOnReplace' | 'expectedExtensions' | 'fileName' | 'fileUrl' | 'handleDeleteFile' | 'handleFileSelected' | 'handleUploadsComplete' | 'handleUploadFile' | 'isUploaderOnly' | 'maxUploadsAllowed' | 'onError' | 'onValidationCompleted' | 'onValidationStarted' | 'onlyUseCustomValidationFn' | 'purifyFileName' | 'transformFileName' | 'validateFile' | 'validateSequentially'>>> & Partial<Pick<FileUploaderProps, 'maxFileSizeMB' | 'minImageHeight' | 'minImageWidth'>> & {
|
|
4
4
|
purgeInput: () => void;
|
|
5
5
|
};
|
package/dist/helpers/generate-skus-functions/get-light-colors/__tests__/get-light-colors.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './get-light-colors';
|
|
@@ -2,3 +2,4 @@ export declare const momaExclusiveColorsProductIds: number[];
|
|
|
2
2
|
export declare const momaExclusiveColorCodes: readonly ["cobalt", "poppy"];
|
|
3
3
|
export declare const kobbleExclusiveColorsProductIds: number[];
|
|
4
4
|
export declare const kobbleExclusiveColorCodes: readonly ["glossysnowwhite"];
|
|
5
|
+
export declare const gantriColorCodes: Partial<Record<"blossompink" | "canyon" | "carbon" | "cobalt" | "coral" | "fog" | "forest" | "gantri" | "glossysnowwhite" | "hibiscus" | "meadow" | "midnight" | "mist" | "mustard" | "olive" | "peach" | "persimmon" | "poppy" | "sage" | "sand" | "sedona" | "sky" | "smoke" | "snow" | "sproutgreen" | "stone" | "sunrise" | "walnut", boolean>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ProductColorCode } from '../../../../styles/theme';
|
|
2
2
|
export declare const getIsColorAvailableForProductId: (props: {
|
|
3
|
+
allowGantriColors?: boolean | undefined;
|
|
3
4
|
allowTradeColors: boolean;
|
|
4
5
|
colorCode: ProductColorCode;
|
|
5
6
|
productId: number;
|
|
6
|
-
}) => boolean;
|
|
7
|
+
}) => boolean | undefined;
|
|
@@ -6,8 +6,8 @@ export declare const getCloudinaryPrefixFolders: (props: {
|
|
|
6
6
|
}) => string;
|
|
7
7
|
export declare const getCloudinaryPrefixPath: (props: {
|
|
8
8
|
resourceType: CloudinaryResourceType;
|
|
9
|
-
}) => `https://res.cloudinary.com/gantri
|
|
9
|
+
}) => `https://res.cloudinary.com/gantri/video/upload${string}` | `https://res.cloudinary.com/gantri/image/upload${string}` | `https://res.cloudinary.com/gantri/raw/upload${string}` | `https://res.cloudinary.com/gantri-dev/video/upload${string}` | `https://res.cloudinary.com/gantri-dev/image/upload${string}` | `https://res.cloudinary.com/gantri-dev/raw/upload${string}` | `https://res.cloudinary.com/gantri-staging/video/upload${string}` | `https://res.cloudinary.com/gantri-staging/image/upload${string}` | `https://res.cloudinary.com/gantri-staging/raw/upload${string}`;
|
|
10
10
|
export declare const getCloudinaryPrefixPathForFileType: <Directory extends DirectoryName>(props: {
|
|
11
11
|
fileType: GetFileUrlArgs<Directory>["fileType"];
|
|
12
12
|
isRawFile: boolean | undefined;
|
|
13
|
-
}) => `https://res.cloudinary.com/gantri
|
|
13
|
+
}) => `https://res.cloudinary.com/gantri/video/upload${string}` | `https://res.cloudinary.com/gantri/image/upload${string}` | `https://res.cloudinary.com/gantri/raw/upload${string}` | `https://res.cloudinary.com/gantri-dev/video/upload${string}` | `https://res.cloudinary.com/gantri-dev/image/upload${string}` | `https://res.cloudinary.com/gantri-dev/raw/upload${string}` | `https://res.cloudinary.com/gantri-staging/video/upload${string}` | `https://res.cloudinary.com/gantri-staging/image/upload${string}` | `https://res.cloudinary.com/gantri-staging/raw/upload${string}`;
|