zakeke-configurator-react 0.1.308 → 0.1.309
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,176 +30139,20 @@ 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
|
-
|
|
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
|
-
}(),
|
|
30142
|
+
previewOnly__setItemImageFromBase64: state.environment.setItemImageFromBase64.bind(state.environment),
|
|
30143
|
+
setItemImageFromFile: state.environment.setItemImageFromFile.bind(state.environment),
|
|
30144
|
+
addItemImage: state.environment.addItemImage.bind(state.environment),
|
|
30205
30145
|
createImage: state.environment.createImage.bind(state.environment),
|
|
30206
30146
|
createImageFromUrl: state.environment.createImageFromUrl.bind(state.environment),
|
|
30207
|
-
setItemImage:
|
|
30208
|
-
|
|
30209
|
-
|
|
30210
|
-
|
|
30211
|
-
|
|
30212
|
-
|
|
30213
|
-
|
|
30214
|
-
|
|
30215
|
-
|
|
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
|
-
}(),
|
|
30147
|
+
setItemImage: state.environment.setItemImage.bind(state.environment),
|
|
30148
|
+
setItemFontFamily: state.environment.setItemFontFamily.bind(state.environment),
|
|
30149
|
+
setItemColor: state.environment.setItemColor.bind(state.environment),
|
|
30150
|
+
setItemBold: state.environment.setItemBold.bind(state.environment),
|
|
30151
|
+
setItemItalic: state.environment.setItemItalic.bind(state.environment),
|
|
30152
|
+
setItemTextOnPath: state.environment.setItemTextOnPath.bind(state.environment),
|
|
30153
|
+
setItemText: state.environment.setItemText.bind(state.environment),
|
|
30154
|
+
addItemText: state.environment.addItemText.bind(state.environment),
|
|
30155
|
+
removeItem: state.environment.removeItem.bind(state.environment),
|
|
30312
30156
|
isFullscreenMode: state.environment.isFullscreenMode,
|
|
30313
30157
|
switchFullscreen: function switchFullscreen() {
|
|
30314
30158
|
return dispatch({
|
|
@@ -30365,44 +30209,44 @@ var createProviderValue = function createProviderValue(state, dispatch) {
|
|
|
30365
30209
|
},
|
|
30366
30210
|
isAreaVisible: state.environment.isAreaVisible.bind(state.environment),
|
|
30367
30211
|
setTemplate: function () {
|
|
30368
|
-
var _setTemplate = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
|
30369
|
-
return _regeneratorRuntime().wrap(function
|
|
30370
|
-
while (1) switch (
|
|
30212
|
+
var _setTemplate = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(templateId) {
|
|
30213
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30214
|
+
while (1) switch (_context.prev = _context.next) {
|
|
30371
30215
|
case 0:
|
|
30372
|
-
return
|
|
30216
|
+
return _context.abrupt("return", dispatch({
|
|
30373
30217
|
type: 'SET_TEMPLATE',
|
|
30374
30218
|
templateId: templateId
|
|
30375
30219
|
}));
|
|
30376
30220
|
case 1:
|
|
30377
30221
|
case "end":
|
|
30378
|
-
return
|
|
30222
|
+
return _context.stop();
|
|
30379
30223
|
}
|
|
30380
|
-
},
|
|
30224
|
+
}, _callee);
|
|
30381
30225
|
}));
|
|
30382
|
-
function setTemplate(
|
|
30226
|
+
function setTemplate(_x) {
|
|
30383
30227
|
return _setTemplate.apply(this, arguments);
|
|
30384
30228
|
}
|
|
30385
30229
|
return setTemplate;
|
|
30386
30230
|
}(),
|
|
30387
30231
|
saveTemplate: state.environment.saveTemplate,
|
|
30388
30232
|
addToCart: function () {
|
|
30389
|
-
var _addToCart = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
|
30233
|
+
var _addToCart = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
30390
30234
|
var _state$environment;
|
|
30391
|
-
var
|
|
30392
|
-
return _regeneratorRuntime().wrap(function
|
|
30393
|
-
while (1) switch (
|
|
30235
|
+
var _args2 = arguments;
|
|
30236
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
30237
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
30394
30238
|
case 0:
|
|
30395
30239
|
dispatch({
|
|
30396
30240
|
type: 'IS_ADD_TO_CART_LOADING',
|
|
30397
30241
|
isLoading: true
|
|
30398
30242
|
});
|
|
30399
|
-
|
|
30400
|
-
return (_state$environment = state.environment).addToCart.apply(_state$environment,
|
|
30243
|
+
_context2.next = 3;
|
|
30244
|
+
return (_state$environment = state.environment).addToCart.apply(_state$environment, _args2);
|
|
30401
30245
|
case 3:
|
|
30402
30246
|
case "end":
|
|
30403
|
-
return
|
|
30247
|
+
return _context2.stop();
|
|
30404
30248
|
}
|
|
30405
|
-
},
|
|
30249
|
+
}, _callee2);
|
|
30406
30250
|
}));
|
|
30407
30251
|
function addToCart() {
|
|
30408
30252
|
return _addToCart.apply(this, arguments);
|
package/package.json
CHANGED
|
File without changes
|