zakeke-configurator-react 0.0.97 → 0.0.100

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 _ from 'lodash';
2
2
  import { OnBeforeSendDataToParent } from '.';
3
3
  import { FocusAttributesEventListener } from '../../../3D/src';
4
4
  import { PlatformAttributeSelection } from './integrations/Integration';
5
- import { Camera, FontFamily, Group, Image, ImageMacroCategory, Item, Product, SellerSettings, Template } from './models';
5
+ import { Camera, FontFamily, Group, Image, ImageMacroCategory, Item, Product, SellerSettings, ProductQuantityRule, Template } from './models';
6
6
  interface RestrictionColor {
7
7
  colorCode: string;
8
8
  isDefault: boolean;
@@ -38,6 +38,7 @@ export declare class ZakekeEnvironment {
38
38
  textColors: RestrictionColor[];
39
39
  defaultColor: string;
40
40
  quantity: number;
41
+ quantityRule: ProductQuantityRule | null;
41
42
  culture: string;
42
43
  productCode: string;
43
44
  productName: string;
@@ -135,7 +136,7 @@ export declare class ZakekeEnvironment {
135
136
  addItemText(settings: {
136
137
  text: string;
137
138
  fontFamily: string;
138
- }, areaId: number): void;
139
+ }, areaId: number): Promise<void>;
139
140
  setItemText: (guid: string, text: string) => void;
140
141
  setItemItalic: (guid: string, italic: boolean) => void;
141
142
  setItemBold: (guid: string, bold: boolean) => void;
@@ -1,6 +1,6 @@
1
1
  import { FontFamily, Group, Item, OnBeforeSendDataToParent, Product, Template } from "..";
2
2
  import { FocusAttributesEventListener } from "../../../../3D/src";
3
- import { Camera, Image, ImageMacroCategory, SellerSettings, TemplateUploadRestrictictions } from "../models";
3
+ import { Camera, Image, ImageMacroCategory, SellerSettings, TemplateUploadRestrictictions, ProductQuantityRule } from "../models";
4
4
  import { AppState } from "./state";
5
5
  interface RestrictionColor {
6
6
  colorCode: string;
@@ -29,11 +29,13 @@ export interface ProviderValue {
29
29
  product: Product | null;
30
30
  cameras: Camera[];
31
31
  sellerSettings: SellerSettings | null;
32
+ quantityRule: ProductQuantityRule | null;
32
33
  selectOption: (optionId: number) => void;
33
34
  internalAppendViewer: (container: HTMLElement) => void;
34
35
  designUpdate: () => void;
35
36
  setTemplate: (templateId: number) => void;
36
37
  isAreaVisible: (areaId: number) => boolean;
38
+ quantity: number;
37
39
  saveComposition: () => Promise<string>;
38
40
  loadComposition: (id: string) => Promise<void>;
39
41
  addToCart: (additionalProperties: Record<string, any>, OnBeforeSendDataToParent?: (data: OnBeforeSendDataToParent) => Promise<void>) => Promise<void>;
@@ -63,6 +65,7 @@ export interface ProviderValue {
63
65
  fontFamily: string;
64
66
  }, areaId: number) => Promise<void>;
65
67
  removeItem: (guid: string) => Promise<void>;
68
+ setQuantity: (quantity: number) => void;
66
69
  switchFullscreen: () => void;
67
70
  isFullscreenMode: boolean;
68
71
  zoomIn: () => void;