zakeke-configurator-react 0.1.309 → 0.1.311
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/index.js
CHANGED
|
@@ -30139,20 +30139,176 @@ var createProviderValue = function createProviderValue(state, dispatch) {
|
|
|
30139
30139
|
openSecondScreen: state.environment.openSecondScreen.bind(state.environment),
|
|
30140
30140
|
getMacroCategories: state.environment.getMacroCategories.bind(state.environment),
|
|
30141
30141
|
createQuote: state.environment.createQuote,
|
|
30142
|
-
previewOnly__setItemImageFromBase64:
|
|
30143
|
-
|
|
30144
|
-
|
|
30142
|
+
previewOnly__setItemImageFromBase64: function () {
|
|
30143
|
+
var _previewOnly__setItemImageFromBase = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(guid, base64) {
|
|
30144
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30145
|
+
while (1) switch (_context.prev = _context.next) {
|
|
30146
|
+
case 0:
|
|
30147
|
+
return _context.abrupt("return", dispatch({
|
|
30148
|
+
type: 'SET_ITEM_IMAGE_FROM_BASE64',
|
|
30149
|
+
guid: guid,
|
|
30150
|
+
base64: base64
|
|
30151
|
+
}));
|
|
30152
|
+
case 1:
|
|
30153
|
+
case "end":
|
|
30154
|
+
return _context.stop();
|
|
30155
|
+
}
|
|
30156
|
+
}, _callee);
|
|
30157
|
+
}));
|
|
30158
|
+
function previewOnly__setItemImageFromBase64(_x, _x2) {
|
|
30159
|
+
return _previewOnly__setItemImageFromBase.apply(this, arguments);
|
|
30160
|
+
}
|
|
30161
|
+
return previewOnly__setItemImageFromBase64;
|
|
30162
|
+
}(),
|
|
30163
|
+
setItemImageFromFile: function () {
|
|
30164
|
+
var _setItemImageFromFile = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(guid, file) {
|
|
30165
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
30166
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
30167
|
+
case 0:
|
|
30168
|
+
return _context2.abrupt("return", dispatch({
|
|
30169
|
+
type: 'SET_ITEM_IMAGE_FROM_FILE',
|
|
30170
|
+
guid: guid,
|
|
30171
|
+
file: file
|
|
30172
|
+
}));
|
|
30173
|
+
case 1:
|
|
30174
|
+
case "end":
|
|
30175
|
+
return _context2.stop();
|
|
30176
|
+
}
|
|
30177
|
+
}, _callee2);
|
|
30178
|
+
}));
|
|
30179
|
+
function setItemImageFromFile(_x3, _x4) {
|
|
30180
|
+
return _setItemImageFromFile.apply(this, arguments);
|
|
30181
|
+
}
|
|
30182
|
+
return setItemImageFromFile;
|
|
30183
|
+
}(),
|
|
30184
|
+
addItemImage: function () {
|
|
30185
|
+
var _addItemImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(imageId, areaId) {
|
|
30186
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30187
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
30188
|
+
case 0:
|
|
30189
|
+
return _context3.abrupt("return", dispatch({
|
|
30190
|
+
type: 'ADD_ITEM_IMAGE',
|
|
30191
|
+
imageId: imageId,
|
|
30192
|
+
areaId: areaId
|
|
30193
|
+
}));
|
|
30194
|
+
case 1:
|
|
30195
|
+
case "end":
|
|
30196
|
+
return _context3.stop();
|
|
30197
|
+
}
|
|
30198
|
+
}, _callee3);
|
|
30199
|
+
}));
|
|
30200
|
+
function addItemImage(_x5, _x6) {
|
|
30201
|
+
return _addItemImage.apply(this, arguments);
|
|
30202
|
+
}
|
|
30203
|
+
return addItemImage;
|
|
30204
|
+
}(),
|
|
30145
30205
|
createImage: state.environment.createImage.bind(state.environment),
|
|
30146
30206
|
createImageFromUrl: state.environment.createImageFromUrl.bind(state.environment),
|
|
30147
|
-
setItemImage:
|
|
30148
|
-
|
|
30149
|
-
|
|
30150
|
-
|
|
30151
|
-
|
|
30152
|
-
|
|
30153
|
-
|
|
30154
|
-
|
|
30155
|
-
|
|
30207
|
+
setItemImage: function () {
|
|
30208
|
+
var _setItemImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(guid, imageId) {
|
|
30209
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
30210
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
30211
|
+
case 0:
|
|
30212
|
+
return _context4.abrupt("return", dispatch({
|
|
30213
|
+
type: 'SET_ITEM_IMAGE',
|
|
30214
|
+
guid: guid,
|
|
30215
|
+
imageId: imageId
|
|
30216
|
+
}));
|
|
30217
|
+
case 1:
|
|
30218
|
+
case "end":
|
|
30219
|
+
return _context4.stop();
|
|
30220
|
+
}
|
|
30221
|
+
}, _callee4);
|
|
30222
|
+
}));
|
|
30223
|
+
function setItemImage(_x7, _x8) {
|
|
30224
|
+
return _setItemImage.apply(this, arguments);
|
|
30225
|
+
}
|
|
30226
|
+
return setItemImage;
|
|
30227
|
+
}(),
|
|
30228
|
+
setItemFontFamily: function setItemFontFamily(guid, fontFamily) {
|
|
30229
|
+
return dispatch({
|
|
30230
|
+
type: 'SET_ITEM_FONT_FAMILY',
|
|
30231
|
+
guid: guid,
|
|
30232
|
+
fontFamily: fontFamily
|
|
30233
|
+
});
|
|
30234
|
+
},
|
|
30235
|
+
setItemColor: function setItemColor(guid, color) {
|
|
30236
|
+
return dispatch({
|
|
30237
|
+
type: 'SET_ITEM_COLOR',
|
|
30238
|
+
guid: guid,
|
|
30239
|
+
color: color
|
|
30240
|
+
});
|
|
30241
|
+
},
|
|
30242
|
+
setItemBold: function setItemBold(guid, bold) {
|
|
30243
|
+
return dispatch({
|
|
30244
|
+
type: 'SET_ITEM_BOLD',
|
|
30245
|
+
guid: guid,
|
|
30246
|
+
bold: bold
|
|
30247
|
+
});
|
|
30248
|
+
},
|
|
30249
|
+
setItemItalic: function setItemItalic(guid, italic) {
|
|
30250
|
+
return dispatch({
|
|
30251
|
+
type: 'SET_ITEM_ITALIC',
|
|
30252
|
+
guid: guid,
|
|
30253
|
+
italic: italic
|
|
30254
|
+
});
|
|
30255
|
+
},
|
|
30256
|
+
setItemTextOnPath: function setItemTextOnPath(guid, areaId, value) {
|
|
30257
|
+
return dispatch({
|
|
30258
|
+
type: 'SET_ITEM_TEXT_PATH',
|
|
30259
|
+
guid: guid,
|
|
30260
|
+
areaId: areaId,
|
|
30261
|
+
value: value
|
|
30262
|
+
});
|
|
30263
|
+
},
|
|
30264
|
+
setItemText: function setItemText(guid, text) {
|
|
30265
|
+
return dispatch({
|
|
30266
|
+
type: 'SET_ITEM_TEXT',
|
|
30267
|
+
guid: guid,
|
|
30268
|
+
text: text
|
|
30269
|
+
});
|
|
30270
|
+
},
|
|
30271
|
+
addItemText: function () {
|
|
30272
|
+
var _addItemText = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(settings, areaId) {
|
|
30273
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
30274
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
30275
|
+
case 0:
|
|
30276
|
+
return _context5.abrupt("return", dispatch({
|
|
30277
|
+
type: 'ADD_ITEM_TEXT',
|
|
30278
|
+
settings: settings,
|
|
30279
|
+
areaId: areaId
|
|
30280
|
+
}));
|
|
30281
|
+
case 1:
|
|
30282
|
+
case "end":
|
|
30283
|
+
return _context5.stop();
|
|
30284
|
+
}
|
|
30285
|
+
}, _callee5);
|
|
30286
|
+
}));
|
|
30287
|
+
function addItemText(_x9, _x10) {
|
|
30288
|
+
return _addItemText.apply(this, arguments);
|
|
30289
|
+
}
|
|
30290
|
+
return addItemText;
|
|
30291
|
+
}(),
|
|
30292
|
+
removeItem: function () {
|
|
30293
|
+
var _removeItem = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(guid) {
|
|
30294
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
30295
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
30296
|
+
case 0:
|
|
30297
|
+
return _context6.abrupt("return", dispatch({
|
|
30298
|
+
type: 'REMOVE_ITEM',
|
|
30299
|
+
guid: guid
|
|
30300
|
+
}));
|
|
30301
|
+
case 1:
|
|
30302
|
+
case "end":
|
|
30303
|
+
return _context6.stop();
|
|
30304
|
+
}
|
|
30305
|
+
}, _callee6);
|
|
30306
|
+
}));
|
|
30307
|
+
function removeItem(_x11) {
|
|
30308
|
+
return _removeItem.apply(this, arguments);
|
|
30309
|
+
}
|
|
30310
|
+
return removeItem;
|
|
30311
|
+
}(),
|
|
30156
30312
|
isFullscreenMode: state.environment.isFullscreenMode,
|
|
30157
30313
|
switchFullscreen: function switchFullscreen() {
|
|
30158
30314
|
return dispatch({
|
|
@@ -30209,44 +30365,44 @@ var createProviderValue = function createProviderValue(state, dispatch) {
|
|
|
30209
30365
|
},
|
|
30210
30366
|
isAreaVisible: state.environment.isAreaVisible.bind(state.environment),
|
|
30211
30367
|
setTemplate: function () {
|
|
30212
|
-
var _setTemplate = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
|
30213
|
-
return _regeneratorRuntime().wrap(function
|
|
30214
|
-
while (1) switch (
|
|
30368
|
+
var _setTemplate = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(templateId) {
|
|
30369
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
30370
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
30215
30371
|
case 0:
|
|
30216
|
-
return
|
|
30372
|
+
return _context7.abrupt("return", dispatch({
|
|
30217
30373
|
type: 'SET_TEMPLATE',
|
|
30218
30374
|
templateId: templateId
|
|
30219
30375
|
}));
|
|
30220
30376
|
case 1:
|
|
30221
30377
|
case "end":
|
|
30222
|
-
return
|
|
30378
|
+
return _context7.stop();
|
|
30223
30379
|
}
|
|
30224
|
-
},
|
|
30380
|
+
}, _callee7);
|
|
30225
30381
|
}));
|
|
30226
|
-
function setTemplate(
|
|
30382
|
+
function setTemplate(_x12) {
|
|
30227
30383
|
return _setTemplate.apply(this, arguments);
|
|
30228
30384
|
}
|
|
30229
30385
|
return setTemplate;
|
|
30230
30386
|
}(),
|
|
30231
30387
|
saveTemplate: state.environment.saveTemplate,
|
|
30232
30388
|
addToCart: function () {
|
|
30233
|
-
var _addToCart = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
|
30389
|
+
var _addToCart = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
|
|
30234
30390
|
var _state$environment;
|
|
30235
|
-
var
|
|
30236
|
-
return _regeneratorRuntime().wrap(function
|
|
30237
|
-
while (1) switch (
|
|
30391
|
+
var _args8 = arguments;
|
|
30392
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
30393
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
30238
30394
|
case 0:
|
|
30239
30395
|
dispatch({
|
|
30240
30396
|
type: 'IS_ADD_TO_CART_LOADING',
|
|
30241
30397
|
isLoading: true
|
|
30242
30398
|
});
|
|
30243
|
-
|
|
30244
|
-
return (_state$environment = state.environment).addToCart.apply(_state$environment,
|
|
30399
|
+
_context8.next = 3;
|
|
30400
|
+
return (_state$environment = state.environment).addToCart.apply(_state$environment, _args8);
|
|
30245
30401
|
case 3:
|
|
30246
30402
|
case "end":
|
|
30247
|
-
return
|
|
30403
|
+
return _context8.stop();
|
|
30248
30404
|
}
|
|
30249
|
-
},
|
|
30405
|
+
}, _callee8);
|
|
30250
30406
|
}));
|
|
30251
30407
|
function addToCart() {
|
|
30252
30408
|
return _addToCart.apply(this, arguments);
|
package/package.json
CHANGED
|
File without changes
|