zakeke-configurator-react 0.1.296-prod → 0.1.298-prod
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.
|
@@ -10,10 +10,6 @@ declare global {
|
|
|
10
10
|
isOwin: boolean;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
interface RestrictionColor {
|
|
14
|
-
colorCode: string;
|
|
15
|
-
isDefault: boolean;
|
|
16
|
-
}
|
|
17
13
|
interface CustomPreviewSize {
|
|
18
14
|
customCartPreviewWidth: number;
|
|
19
15
|
customCartPreviewHeight: number;
|
|
@@ -85,12 +81,9 @@ export declare class ZakekeEnvironment {
|
|
|
85
81
|
currency: string;
|
|
86
82
|
groups: Group[];
|
|
87
83
|
fonts: FontFamily[];
|
|
88
|
-
disableTextColors: boolean;
|
|
89
|
-
textColors: RestrictionColor[];
|
|
90
84
|
/**
|
|
91
85
|
* Get the current text default color.
|
|
92
86
|
*/
|
|
93
|
-
defaultColor: string;
|
|
94
87
|
quantity: number;
|
|
95
88
|
quantityRule: ProductQuantityRule | null;
|
|
96
89
|
culture: string;
|
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
import { FocusAttributesEventListener } from '@zakeke/zakeke-3d-core';
|
|
5
5
|
import { EventMessage, FontFamily, Group, Item, NftForm, NftSettings, OnBeforeSendDataToParent, PrintingMethodsRestrictions, Product, Template, TemplateMacroCategory, TextSanitationResult, Translations, UIConfig, VisibleEventMessage } from '..';
|
|
6
6
|
import { Camera, ImageMacroCategory, ProductQuantityRule, SellerSettings, TemplateUploadRestrictictions, ZakekeImage } from '../models';
|
|
7
|
-
interface RestrictionColor {
|
|
8
|
-
colorCode: string;
|
|
9
|
-
isDefault: boolean;
|
|
10
|
-
}
|
|
11
7
|
interface CustomPreviewSize {
|
|
12
8
|
customCartPreviewWidth: number;
|
|
13
9
|
customCartPreviewHeight: number;
|
|
@@ -46,9 +42,6 @@ export interface Zakeke {
|
|
|
46
42
|
isInfoPointContentVisible: boolean;
|
|
47
43
|
isViewerReady: boolean;
|
|
48
44
|
fonts: FontFamily[];
|
|
49
|
-
disableTextColors: boolean;
|
|
50
|
-
defaultColor: string;
|
|
51
|
-
textColors: RestrictionColor[];
|
|
52
45
|
groups: Group[];
|
|
53
46
|
templates: Template[];
|
|
54
47
|
loadedComposition: {
|
package/dist/index.js
CHANGED
|
@@ -25299,12 +25299,9 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
|
|
|
25299
25299
|
_defineProperty(this, "currency", 'EUR');
|
|
25300
25300
|
_defineProperty(this, "groups", []);
|
|
25301
25301
|
_defineProperty(this, "fonts", []);
|
|
25302
|
-
_defineProperty(this, "disableTextColors", false);
|
|
25303
|
-
_defineProperty(this, "textColors", []);
|
|
25304
25302
|
/**
|
|
25305
25303
|
* Get the current text default color.
|
|
25306
25304
|
*/
|
|
25307
|
-
_defineProperty(this, "defaultColor", '');
|
|
25308
25305
|
_defineProperty(this, "quantity", 1);
|
|
25309
25306
|
_defineProperty(this, "quantityRule", null);
|
|
25310
25307
|
_defineProperty(this, "culture", 'en-US');
|
|
@@ -25991,10 +25988,6 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
|
|
|
25991
25988
|
}
|
|
25992
25989
|
_this.integration.setPricingCalculator(_this.pricingCalculator);
|
|
25993
25990
|
_this.fonts = fonts;
|
|
25994
|
-
var restriction = _this.getPrintingMethodsRestrictions();
|
|
25995
|
-
_this.defaultColor = restriction.defaultColor;
|
|
25996
|
-
_this.disableTextColors = restriction.disableTextColors;
|
|
25997
|
-
_this.textColors = restriction.textColors;
|
|
25998
25991
|
_this.zkTemplates = zkTemplates;
|
|
25999
25992
|
_this.templates = _this.zkTemplates.map(function (zkTemplate) {
|
|
26000
25993
|
return _models__WEBPACK_IMPORTED_MODULE_11__.Template.fromTemplate(zkTemplate);
|
|
@@ -29656,13 +29649,14 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
|
|
|
29656
29649
|
allowedCurved: true,
|
|
29657
29650
|
disableTextColors: false,
|
|
29658
29651
|
textColors: [defaultColor],
|
|
29659
|
-
defaultColor: '#000000'
|
|
29652
|
+
defaultColor: '#000000',
|
|
29653
|
+
isPDFPreviewEnabled: true
|
|
29660
29654
|
};
|
|
29661
29655
|
if (_this.zkProduct && _this.zkProduct.get('printTypes').length > 0) {
|
|
29662
29656
|
var printType = _this.zkProduct.get('printTypes').at(0);
|
|
29663
29657
|
var printRestrictions = printType.get('printTypeRestrictions');
|
|
29664
29658
|
if (printRestrictions) {
|
|
29665
|
-
var _printRestrictions$ge, _printRestrictions$ge2, _printRestrictions$ge3, _printRestrictions$ge4, _printRestrictions$ge5, _printRestrictions$ge6, _printRestrictions$ge7;
|
|
29659
|
+
var _printRestrictions$ge, _printRestrictions$ge2, _printRestrictions$ge3, _printRestrictions$ge4, _printRestrictions$ge5, _printRestrictions$ge6, _printRestrictions$ge7, _printRestrictions$ge8;
|
|
29666
29660
|
defaultColor = _objectSpread(_objectSpread({}, defaultColor), {}, {
|
|
29667
29661
|
colorCode: (_printRestrictions$ge = printRestrictions.get('defaultColor')) !== null && _printRestrictions$ge !== void 0 ? _printRestrictions$ge : '#000000'
|
|
29668
29662
|
});
|
|
@@ -29676,7 +29670,8 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
|
|
|
29676
29670
|
allowedCurved: (_printRestrictions$ge5 = printRestrictions.get('curvedText')) !== null && _printRestrictions$ge5 !== void 0 ? _printRestrictions$ge5 : true,
|
|
29677
29671
|
disableTextColors: (_printRestrictions$ge6 = printRestrictions.get('disableTextColors')) !== null && _printRestrictions$ge6 !== void 0 ? _printRestrictions$ge6 : false,
|
|
29678
29672
|
textColors: textColors,
|
|
29679
|
-
defaultColor: (_printRestrictions$ge7 = printRestrictions.get('defaultColor')) !== null && _printRestrictions$ge7 !== void 0 ? _printRestrictions$ge7 : '#000000'
|
|
29673
|
+
defaultColor: (_printRestrictions$ge7 = printRestrictions.get('defaultColor')) !== null && _printRestrictions$ge7 !== void 0 ? _printRestrictions$ge7 : '#000000',
|
|
29674
|
+
isPDFPreviewEnabled: (_printRestrictions$ge8 = printRestrictions.get('canPreviewDesignsPDF')) !== null && _printRestrictions$ge8 !== void 0 ? _printRestrictions$ge8 : true
|
|
29680
29675
|
};
|
|
29681
29676
|
}
|
|
29682
29677
|
}
|
|
@@ -32712,9 +32707,6 @@ var createProviderValue = function createProviderValue(state, dispatch) {
|
|
|
32712
32707
|
isAddToCartLoading: state.isAddToCartLoading,
|
|
32713
32708
|
isInfoPointContentVisible: state.environment.isInfoPointContentVisible,
|
|
32714
32709
|
fonts: state.environment.fonts,
|
|
32715
|
-
disableTextColors: state.environment.disableTextColors,
|
|
32716
|
-
defaultColor: state.environment.defaultColor,
|
|
32717
|
-
textColors: state.environment.textColors,
|
|
32718
32710
|
groups: state.environment.groups,
|
|
32719
32711
|
templates: state.environment.templates,
|
|
32720
32712
|
loadedComposition: state.environment.loadedComposition,
|