@fyul/embed-sdk 2.0.0 → 2.0.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.
@@ -1,29 +1,8 @@
1
- export interface ProductMockupEntry {
2
- productId: number;
3
- isSizeBased: boolean;
4
- productMockups: unknown[];
5
- mockupPlacements: unknown[];
6
- placementTemplates: unknown[];
7
- }
8
1
  export interface MockupGenerationData {
9
- imgUrl: string | null;
10
- id: number;
11
- styleName: string;
12
- styleNameTranslation: string;
13
2
  color: string | null | undefined;
14
3
  size: string | null;
15
- placement: string;
16
- mockupVariantId: number;
17
- isBlankMockup: boolean;
18
4
  baseImageUrl: string | null;
19
5
  bgColor: string;
20
- isTransparent: boolean;
21
- canMockupHaveDynamicBackground: boolean;
22
- isLoading: boolean;
23
- failed: boolean;
24
- error: string | Error | null;
25
- isCleared: boolean;
26
- processId: string;
27
6
  blob: Blob | null;
28
7
  }
29
8
  export interface MockupDataWithProductData extends MockupGenerationData {
@@ -4,10 +4,13 @@ export interface GetMockupsPayload {
4
4
  /** List of all products and their variants to fetch mockups for */
5
5
  products: {
6
6
  productId: number;
7
- variantIds: number[];
7
+ variantIds?: number[];
8
8
  }[];
9
9
  /** Optional mapping of productId → selected variantId.
10
10
  * If not provided, the first variant from each product will be used. */
11
11
  selectedVariants?: Record<string, number>;
12
+ /** If set to true, request will finish faster, and allow you
13
+ * to show preview image on which mockup will be generated on */
14
+ shouldReturnBlankMockups?: true;
12
15
  }
13
16
  export type ActionEventPayload = GetMockupsPayload;
@@ -1 +1 @@
1
- export declare const VERSION: "2.0.0";
1
+ export declare const VERSION: "2.0.1";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // AUTO-GENERATED
5
- exports.VERSION = '2.0.0';
5
+ exports.VERSION = '2.0.1';
@@ -1,29 +1,8 @@
1
- export interface ProductMockupEntry {
2
- productId: number;
3
- isSizeBased: boolean;
4
- productMockups: unknown[];
5
- mockupPlacements: unknown[];
6
- placementTemplates: unknown[];
7
- }
8
1
  export interface MockupGenerationData {
9
- imgUrl: string | null;
10
- id: number;
11
- styleName: string;
12
- styleNameTranslation: string;
13
2
  color: string | null | undefined;
14
3
  size: string | null;
15
- placement: string;
16
- mockupVariantId: number;
17
- isBlankMockup: boolean;
18
4
  baseImageUrl: string | null;
19
5
  bgColor: string;
20
- isTransparent: boolean;
21
- canMockupHaveDynamicBackground: boolean;
22
- isLoading: boolean;
23
- failed: boolean;
24
- error: string | Error | null;
25
- isCleared: boolean;
26
- processId: string;
27
6
  blob: Blob | null;
28
7
  }
29
8
  export interface MockupDataWithProductData extends MockupGenerationData {
@@ -4,10 +4,13 @@ export interface GetMockupsPayload {
4
4
  /** List of all products and their variants to fetch mockups for */
5
5
  products: {
6
6
  productId: number;
7
- variantIds: number[];
7
+ variantIds?: number[];
8
8
  }[];
9
9
  /** Optional mapping of productId → selected variantId.
10
10
  * If not provided, the first variant from each product will be used. */
11
11
  selectedVariants?: Record<string, number>;
12
+ /** If set to true, request will finish faster, and allow you
13
+ * to show preview image on which mockup will be generated on */
14
+ shouldReturnBlankMockups?: true;
12
15
  }
13
16
  export type ActionEventPayload = GetMockupsPayload;
@@ -1 +1 @@
1
- export declare const VERSION: "2.0.0";
1
+ export declare const VERSION: "2.0.1";
@@ -1,2 +1,2 @@
1
1
  // AUTO-GENERATED
2
- export const VERSION = '2.0.0';
2
+ export const VERSION = '2.0.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fyul/embed-sdk",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",