gantri-components 2.197.0 → 2.198.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/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
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}`;
|