@crystaldesign/diva-backoffice 24.13.0-beta.14 → 24.13.0-beta.16

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.
@@ -148,7 +148,7 @@ function _unsupportedIterableToArray$m(r, a) { if (r) { if ("string" == typeof r
148
148
  function _arrayLikeToArray$m(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
149
149
  function ownKeys$P(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
150
150
  function _objectSpread$P(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$P(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$P(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
151
- var LOG$d = getLogger('Backoffice', 'ApplyMapping');
151
+ var LOG$e = getLogger('Backoffice', 'ApplyMapping');
152
152
  function applyMapping (_ref) {
153
153
  var mappable = _ref.mappable,
154
154
  mappingData = _ref.mappingData,
@@ -292,7 +292,7 @@ function applyMapping (_ref) {
292
292
  }
293
293
  return returnValue;
294
294
  } catch (e) {
295
- LOG$d.debug('Mapabledata', mappable);
295
+ LOG$e.debug('Mapabledata', mappable);
296
296
  throw e;
297
297
  }
298
298
  }
@@ -474,7 +474,7 @@ function getLeafColumns(columns) {
474
474
 
475
475
  function ownKeys$O(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
476
476
  function _objectSpread$O(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$O(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$O(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
477
- var LOG$c = getLogger('Backoffice', 'ApiHandler');
477
+ var LOG$d = getLogger('Backoffice', 'ApiHandler');
478
478
  var jp = require('jsonpath');
479
479
  var _default$d = /*#__PURE__*/function () {
480
480
  function _default(configuration, _rootStore) {
@@ -1151,16 +1151,16 @@ var _default$d = /*#__PURE__*/function () {
1151
1151
  }
1152
1152
  });
1153
1153
  this._socket.on('error', function (error) {
1154
- LOG$c.error(new DivaError('Error on connection', error));
1154
+ LOG$d.error(new DivaError('Error on connection', error));
1155
1155
  });
1156
1156
  this._socket.on('connect_error', function (error) {
1157
- LOG$c.log("connect_error due to ".concat(error.message));
1157
+ LOG$d.log("connect_error due to ".concat(error.message));
1158
1158
  });
1159
1159
  this._socket.on('connect', function () {
1160
- LOG$c.debug('Successfully connected to socket');
1160
+ LOG$d.debug('Successfully connected to socket');
1161
1161
  });
1162
1162
  this._socket.on('disconnect', function () {
1163
- LOG$c.debug('Disconnect from socket');
1163
+ LOG$d.debug('Disconnect from socket');
1164
1164
  });
1165
1165
  return this._socket;
1166
1166
  }
@@ -13691,7 +13691,7 @@ var _default$3 = /*#__PURE__*/function () {
13691
13691
  function _createForOfIteratorHelper$k(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$k(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
13692
13692
  function _unsupportedIterableToArray$k(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$k(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$k(r, a) : void 0; } }
13693
13693
  function _arrayLikeToArray$k(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13694
- var LOG$b = getLogger('Backoffice', 'DownloadStore');
13694
+ var LOG$c = getLogger('Backoffice', 'DownloadStore');
13695
13695
  var DownloadStore = /*#__PURE__*/function () {
13696
13696
  function DownloadStore(_rootStore) {
13697
13697
  var _this = this;
@@ -13907,7 +13907,7 @@ var DownloadStore = /*#__PURE__*/function () {
13907
13907
  _context5.next = 4;
13908
13908
  break;
13909
13909
  }
13910
- LOG$b.debug("The organization ".concat(data._id, " has no parentType of ").concat(validTypes.join(' or ')));
13910
+ LOG$c.debug("The organization ".concat(data._id, " has no parentType of ").concat(validTypes.join(' or ')));
13911
13911
  throw new Error("Current organization is no ".concat(type == 'RETAILER' ? 'retailer, retailer channel or association' : 'supplier or dealer'));
13912
13912
  case 4:
13913
13913
  orgData = data;
@@ -13926,7 +13926,7 @@ var DownloadStore = /*#__PURE__*/function () {
13926
13926
  _context5.next = 14;
13927
13927
  break;
13928
13928
  }
13929
- LOG$b.debug("The organization ".concat(data._id, " has no type of ").concat(validTypes.join(' or '), " nor a parent organization"));
13929
+ LOG$c.debug("The organization ".concat(data._id, " has no type of ").concat(validTypes.join(' or '), " nor a parent organization"));
13930
13930
  throw new Error("Current organization is no ".concat(type == 'RETAILER' ? 'retailer channel or association' : 'supplier or dealer'));
13931
13931
  case 14:
13932
13932
  _context5.prev = 14;
@@ -14348,28 +14348,35 @@ function fetchFileData(_x) {
14348
14348
  }
14349
14349
  function _fetchFileData() {
14350
14350
  _fetchFileData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(url) {
14351
- var _response$url;
14352
- var response, blob, name;
14351
+ var _response$url, response, blob, name;
14353
14352
  return _regeneratorRuntime.wrap(function _callee$(_context) {
14354
14353
  while (1) switch (_context.prev = _context.next) {
14355
14354
  case 0:
14356
- _context.next = 2;
14355
+ _context.prev = 0;
14356
+ _context.next = 3;
14357
14357
  return fetch(url);
14358
- case 2:
14358
+ case 3:
14359
14359
  response = _context.sent;
14360
- _context.next = 5;
14360
+ _context.next = 6;
14361
14361
  return response.blob();
14362
- case 5:
14362
+ case 6:
14363
14363
  blob = _context.sent;
14364
14364
  name = nameFromUrl((_response$url = response.url) !== null && _response$url !== void 0 ? _response$url : url);
14365
14365
  return _context.abrupt("return", new File([blob], name, {
14366
14366
  type: blob.type
14367
14367
  }));
14368
- case 8:
14368
+ case 11:
14369
+ _context.prev = 11;
14370
+ _context.t0 = _context["catch"](0);
14371
+ throw new DivaError('Could not fetch file', {
14372
+ cause: _context.t0,
14373
+ code: 'FETCH_FILE_ERROR'
14374
+ });
14375
+ case 14:
14369
14376
  case "end":
14370
14377
  return _context.stop();
14371
14378
  }
14372
- }, _callee);
14379
+ }, _callee, null, [[0, 11]]);
14373
14380
  }));
14374
14381
  return _fetchFileData.apply(this, arguments);
14375
14382
  }
@@ -14546,7 +14553,7 @@ function isExternalVid(file) {
14546
14553
  }
14547
14554
 
14548
14555
  var VIDEO_THUMB_PLACEHOLDER = 'data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjMDAwMDAwIiBoZWlnaHQ9IjgwMHB4IiB3aWR0aD0iODAwcHgiIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgCgkgdmlld0JveD0iMCAwIDQ5IDQ5IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPGc+Cgk8Zz4KCQk8cGF0aCBkPSJNMzkuMjU2LDYuNUg5Ljc0NEM0LjM3MSw2LjUsMCwxMC44ODUsMCwxNi4yNzR2MTYuNDUxYzAsNS4zOSw0LjM3MSw5Ljc3NCw5Ljc0NCw5Ljc3NGgyOS41MTIKCQkJYzUuMzczLDAsOS43NDQtNC4zODUsOS43NDQtOS43NzRWMTYuMjc0QzQ5LDEwLjg4NSw0NC42MjksNi41LDM5LjI1Niw2LjV6IE00NywzMi43MjZjMCw0LjI4Ny0zLjQ3NCw3Ljc3NC03Ljc0NCw3Ljc3NEg5Ljc0NAoJCQlDNS40NzQsNDAuNSwyLDM3LjAxMiwyLDMyLjcyNlYxNi4yNzRDMiwxMS45ODgsNS40NzQsOC41LDkuNzQ0LDguNWgyOS41MTJjNC4yNywwLDcuNzQ0LDMuNDg4LDcuNzQ0LDcuNzc0VjMyLjcyNnoiLz4KCQk8cGF0aCBkPSJNMzMuMzYsMjQuMTM4bC0xMy44NTUtOC4xMTVjLTAuMzA4LTAuMTgtMC42OTEtMC4xODMtMS4wMDItMC4wMDVTMTgsMTYuNTI3LDE4LDE2Ljg4NnYxNi4yMjkKCQkJYzAsMC4zNTgsMC4xOTIsMC42OSwwLjUwMiwwLjg2OGMwLjE1NCwwLjA4OCwwLjMyNiwwLjEzMiwwLjQ5OCwwLjEzMmMwLjE3NSwwLDAuMzQ5LTAuMDQ2LDAuNTA1LTAuMTM3bDEzLjg1NS04LjExMwoJCQljMC4zMDYtMC4xNzksMC40OTUtMC41MDgsMC40OTUtMC44NjNTMzMuNjY3LDI0LjMxNywzMy4zNiwyNC4xMzh6IE0yMCwzMS4zN1YxOC42M2wxMC44NzYsNi4zNzFMMjAsMzEuMzd6Ii8+Cgk8L2c+CjwvZz4KPC9zdmc+';
14549
- var LOG$a = getLogger('Backoffice', 'MediaItem');
14556
+ var LOG$b = getLogger('Backoffice', 'MediaItem');
14550
14557
  var MediaItem = /*#__PURE__*/function () {
14551
14558
  function MediaItem(_ref) {
14552
14559
  var media = _ref.media,
@@ -14661,7 +14668,7 @@ var MediaItem = /*#__PURE__*/function () {
14661
14668
  _context2.prev = 8;
14662
14669
  _context2.t0 = _context2["catch"](1);
14663
14670
  this._mediaItemRefId = undefined;
14664
- LOG$a.error(new DivaError$1('Failed to get media item ref, on next upload a new ref will be created', {
14671
+ LOG$b.error(new DivaError$1('Failed to get media item ref, on next upload a new ref will be created', {
14665
14672
  cause: _context2.t0
14666
14673
  }));
14667
14674
  case 12:
@@ -14689,7 +14696,9 @@ var MediaItem = /*#__PURE__*/function () {
14689
14696
  _context2.next = 24;
14690
14697
  break;
14691
14698
  }
14692
- throw new Error('File type is not allowed');
14699
+ throw new DivaError$1('File type is not allowed', {
14700
+ code: 'FILE_TYPE_NOT_ALLOWED'
14701
+ });
14693
14702
  case 24:
14694
14703
  case "end":
14695
14704
  return _context2.stop();
@@ -16131,7 +16140,7 @@ function getCombinedValues(data, pattern) {
16131
16140
  return value;
16132
16141
  }
16133
16142
 
16134
- var LOG$9 = getLogger('Backoffice', 'SelectSimple');
16143
+ var LOG$a = getLogger('Backoffice', 'SelectSimple');
16135
16144
  function useSelectSimpleData (_ref) {
16136
16145
  var apiInterface = _ref.apiInterface,
16137
16146
  selectMapping = _ref.selectMapping,
@@ -16171,7 +16180,7 @@ function useSelectSimpleData (_ref) {
16171
16180
  }, [selected]);
16172
16181
  useEffect(function () {
16173
16182
  if (configuredOptions) {
16174
- if (apiHandler.canReadList) LOG$9.warn('If options are provided, apiInterface will not be used');
16183
+ if (apiHandler.canReadList) LOG$a.warn('If options are provided, apiInterface will not be used');
16175
16184
  setOptions(configuredOptions);
16176
16185
  setLoading(false);
16177
16186
  return;
@@ -16193,7 +16202,7 @@ function useSelectSimpleData (_ref) {
16193
16202
  var _options$;
16194
16203
  // set the selected option only after the options are loaded
16195
16204
  if (value && options) {
16196
- LOG$9.debug('value changed', value);
16205
+ LOG$a.debug('value changed', value);
16197
16206
  setSelected(findByValue(value, options, selectMapping));
16198
16207
  } else if (options !== null && options !== void 0 && (_options$ = options[0]) !== null && _options$ !== void 0 && _options$.value && autoSelectFirst) {
16199
16208
  onSelectionChanged(options[0].value, options[0]);
@@ -16229,7 +16238,7 @@ function findByValue(value, options, selectMapping) {
16229
16238
  return (selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.externalValue) == 'value' ? option.value == value : getCombinedValues(option.data, selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.value) == getCombinedValues(value, selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.value);
16230
16239
  });
16231
16240
  if (!option) {
16232
- LOG$9.debug('findByValue: option not found, add dummy option for current value', value, options);
16241
+ LOG$a.debug('findByValue: option not found, add dummy option for current value', value, options);
16233
16242
  //TODO: if we and server side filtering, the dummy option must be handled differently
16234
16243
  option = {
16235
16244
  label: (selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.externalValue) == 'value' ? value : getCombinedValues(value, selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.label),
@@ -17767,7 +17776,7 @@ styleInject(css_248z$j);
17767
17776
 
17768
17777
  function ownKeys$E(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
17769
17778
  function _objectSpread$E(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$E(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$E(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17770
- var LOG$8 = getLogger('Backoffice', 'Translation Form');
17779
+ var LOG$9 = getLogger('Backoffice', 'Translation Form');
17771
17780
  function useTranslationHook (item, state) {
17772
17781
  var root = useStore();
17773
17782
  var _useDivaCore = useDivaCore(),
@@ -17845,7 +17854,7 @@ function useTranslationHook (item, state) {
17845
17854
  case 23:
17846
17855
  _context.prev = 23;
17847
17856
  _context.t2 = _context["catch"](9);
17848
- LOG$8.error({
17857
+ LOG$9.error({
17849
17858
  message: 'Error on translating ' + value,
17850
17859
  name: ''
17851
17860
  });
@@ -18088,6 +18097,7 @@ function FileInput(_ref3) {
18088
18097
  onClick: function onClick() {
18089
18098
  return onEnter(value, true);
18090
18099
  },
18100
+ disabled: !value,
18091
18101
  menu: {
18092
18102
  items: [{
18093
18103
  key: 'use',
@@ -18107,6 +18117,7 @@ function FileInput(_ref3) {
18107
18117
  });
18108
18118
  }
18109
18119
 
18120
+ var LOG$8 = getLogger('Backoffice', 'AssetManager');
18110
18121
  function Upload (_ref) {
18111
18122
  var allowedTypes = _ref.allowedTypes,
18112
18123
  media = _ref.media,
@@ -18133,6 +18144,20 @@ function Upload (_ref) {
18133
18144
  setError = _useState2[1];
18134
18145
  var _useTranslation = useTranslation(),
18135
18146
  t = _useTranslation.t;
18147
+ var handleError = function handleError(e) {
18148
+ onError === null || onError === void 0 || onError(e);
18149
+ if (!e) {
18150
+ setError === null || setError === void 0 || setError(undefined);
18151
+ } else if (e instanceof DivaError) {
18152
+ LOG$8.error(e);
18153
+ setError(t('backoffice.mediaupload.error.' + e.name));
18154
+ } else {
18155
+ LOG$8.error(new DivaError('An unexpected error occurred', {
18156
+ cause: e
18157
+ }));
18158
+ setError(t('backoffice.mediaupload.error.unknown'));
18159
+ }
18160
+ };
18136
18161
  useEffect(function () {
18137
18162
  _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
18138
18163
  return _regeneratorRuntime.wrap(function _callee$(_context) {
@@ -18157,7 +18182,7 @@ function Upload (_ref) {
18157
18182
  case 11:
18158
18183
  _context.prev = 11;
18159
18184
  _context.t0 = _context["catch"](5);
18160
- onError === null || onError === void 0 || onError(_context.t0);
18185
+ handleError(_context.t0);
18161
18186
  case 14:
18162
18187
  _context.prev = 14;
18163
18188
  setLoading(false);
@@ -18174,20 +18199,20 @@ function Upload (_ref) {
18174
18199
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
18175
18200
  while (1) switch (_context2.prev = _context2.next) {
18176
18201
  case 0:
18202
+ handleError();
18177
18203
  setLoading(true);
18178
- _context2.prev = 1;
18179
- _context2.next = 4;
18204
+ _context2.prev = 2;
18205
+ _context2.next = 5;
18180
18206
  return media.init(allowedTypes);
18181
- case 4:
18207
+ case 5:
18182
18208
  setFiles([media]);
18183
18209
  onAdd === null || onAdd === void 0 || onAdd(media);
18184
18210
  _context2.next = 12;
18185
18211
  break;
18186
- case 8:
18187
- _context2.prev = 8;
18188
- _context2.t0 = _context2["catch"](1);
18189
- onError === null || onError === void 0 || onError(_context2.t0);
18190
- setError(_context2.t0.message);
18212
+ case 9:
18213
+ _context2.prev = 9;
18214
+ _context2.t0 = _context2["catch"](2);
18215
+ handleError(_context2.t0);
18191
18216
  case 12:
18192
18217
  _context2.prev = 12;
18193
18218
  setLoading(false);
@@ -18196,7 +18221,7 @@ function Upload (_ref) {
18196
18221
  case "end":
18197
18222
  return _context2.stop();
18198
18223
  }
18199
- }, _callee2, null, [[1, 8, 12, 15]]);
18224
+ }, _callee2, null, [[2, 9, 12, 15]]);
18200
18225
  }));
18201
18226
  return function addMediaItem(_x) {
18202
18227
  return _ref3.apply(this, arguments);
@@ -18218,6 +18243,15 @@ function Upload (_ref) {
18218
18243
  return Upload$1.LIST_IGNORE;
18219
18244
  };
18220
18245
  var onFileFormWeb = function onFileFormWeb(url, copy) {
18246
+ try {
18247
+ new URL(url);
18248
+ } catch (e) {
18249
+ handleError(new DivaError('Invalid URL', {
18250
+ cause: e,
18251
+ code: 'INVALID_URL'
18252
+ }));
18253
+ return;
18254
+ }
18221
18255
  var mediaItem = new MediaItem({
18222
18256
  media: url,
18223
18257
  remoteUrl: !copy,
@@ -18295,15 +18329,11 @@ function Media (_ref) {
18295
18329
  }
18296
18330
  if (media) state.pushRemovedMediaItem(media);
18297
18331
  };
18298
- var onError = function onError(e) {
18299
- onRemove();
18300
- };
18301
18332
  return /*#__PURE__*/jsx(Upload, {
18302
18333
  allowedTypes: item.allowedTypes,
18303
18334
  media: media,
18304
18335
  onAdd: onAdd,
18305
18336
  onRemove: onRemove,
18306
- onError: onError,
18307
18337
  config: {
18308
18338
  baseUrl: state.root.configurationStore.apiConfig.mediaService,
18309
18339
  jwt: state.root.dataStore.jwt,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/AssetMananger/Upload/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAI1D,KAAK,KAAK,GAAG;IACX,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACtC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC9B,MAAM,EAAE,eAAe,CAAC;CACzB,CAAC;AAEF,MAAM,CAAC,OAAO,WAAW,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,KAAK,qBA8ExF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/AssetMananger/Upload/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAI1D,KAAK,KAAK,GAAG;IACX,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACtC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC9B,MAAM,EAAE,eAAe,CAAC;CACzB,CAAC;AAIF,MAAM,CAAC,OAAO,WAAW,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,KAAK,qBAiGxF"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/AssetMananger/utils.ts"],"names":[],"mappings":"AAAA,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAK9D;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAI/C;AAED,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAkBlE;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,GAAE,MAAM,EAAO,GAAG,OAAO,CAoBzE;AAED,wBAAsB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,gBAoB9E;AAED,wBAAsB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,gBAarF;AAED,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,gBAYhF;AAED,wBAAgB,aAAa,CAAC,IAAI,CAAC,EAAE,MAAM,uBAE1C"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/AssetMananger/utils.ts"],"names":[],"mappings":"AAEA,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAS9D;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAI/C;AAED,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAkBlE;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,GAAE,MAAM,EAAO,GAAG,OAAO,CAoBzE;AAED,wBAAsB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,gBAoB9E;AAED,wBAAsB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,gBAarF;AAED,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,gBAYhF;AAED,wBAAgB,aAAa,CAAC,IAAI,CAAC,EAAE,MAAM,uBAE1C"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/Form/Fields/Media/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CAC5C,CAAC;AAEF,MAAM,CAAC,OAAO,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,KAAK,qBAqDnE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/Form/Fields/Media/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CAC5C,CAAC;AAEF,MAAM,CAAC,OAAO,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,KAAK,qBAiDnE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "24.13.0-beta.14",
3
+ "version": "24.13.0-beta.16",
4
4
  "license": "COMMERCIAL",
5
5
  "devDependencies": {
6
6
  "@testing-library/jest-dom": "^6.5.0",
@@ -15,13 +15,13 @@
15
15
  "dependencies": {
16
16
  "@ant-design/icons": "5.4.0",
17
17
  "@babel/runtime": "7.24.7",
18
- "@crystaldesign/content-box": "24.13.0-beta.14",
19
- "@crystaldesign/content-item": "24.13.0-beta.14",
20
- "@crystaldesign/diva-core": "24.13.0-beta.14",
21
- "@crystaldesign/diva-utils": "24.13.0-beta.14",
22
- "@crystaldesign/media-upload": "24.13.0-beta.14",
23
- "@crystaldesign/rtf-editor": "24.13.0-beta.14",
24
- "@crystaldesign/spreadsheet": "24.13.0-beta.14",
18
+ "@crystaldesign/content-box": "24.13.0-beta.16",
19
+ "@crystaldesign/content-item": "24.13.0-beta.16",
20
+ "@crystaldesign/diva-core": "24.13.0-beta.16",
21
+ "@crystaldesign/diva-utils": "24.13.0-beta.16",
22
+ "@crystaldesign/media-upload": "24.13.0-beta.16",
23
+ "@crystaldesign/rtf-editor": "24.13.0-beta.16",
24
+ "@crystaldesign/spreadsheet": "24.13.0-beta.16",
25
25
  "@google/model-viewer": "3.5.0",
26
26
  "ag-charts-community": "^10.1.0",
27
27
  "ag-charts-react": "^10.1.0",
@@ -51,5 +51,5 @@
51
51
  },
52
52
  "module": "build/esm/index.js",
53
53
  "types": "./build/types/backoffice/src/index.d.ts",
54
- "gitHead": "c839d77b640aa2f10b16c8d91a1db3ea8b80e7ec"
54
+ "gitHead": "a6256e8a8757ebf3efc3034992e6ad5b9a793a91"
55
55
  }