@crystaldesign/diva-backoffice 24.12.0-rc.14 → 24.12.0-rc.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.
package/build/esm/index.js
CHANGED
|
@@ -14305,20 +14305,24 @@ function fetchFileData(_x) {
|
|
|
14305
14305
|
}
|
|
14306
14306
|
function _fetchFileData() {
|
|
14307
14307
|
_fetchFileData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(url) {
|
|
14308
|
+
var _response$url;
|
|
14309
|
+
var response, blob, name;
|
|
14308
14310
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
14309
14311
|
while (1) switch (_context.prev = _context.next) {
|
|
14310
14312
|
case 0:
|
|
14311
14313
|
_context.next = 2;
|
|
14312
|
-
return fetch(url)
|
|
14313
|
-
return response.blob();
|
|
14314
|
-
}).then(function (blob) {
|
|
14315
|
-
return new File([blob], nameFromUrl(url), {
|
|
14316
|
-
type: blob.type
|
|
14317
|
-
});
|
|
14318
|
-
});
|
|
14314
|
+
return fetch(url);
|
|
14319
14315
|
case 2:
|
|
14320
|
-
|
|
14321
|
-
|
|
14316
|
+
response = _context.sent;
|
|
14317
|
+
_context.next = 5;
|
|
14318
|
+
return response.blob();
|
|
14319
|
+
case 5:
|
|
14320
|
+
blob = _context.sent;
|
|
14321
|
+
name = nameFromUrl((_response$url = response.url) !== null && _response$url !== void 0 ? _response$url : url);
|
|
14322
|
+
return _context.abrupt("return", new File([blob], name, {
|
|
14323
|
+
type: blob.type
|
|
14324
|
+
}));
|
|
14325
|
+
case 8:
|
|
14322
14326
|
case "end":
|
|
14323
14327
|
return _context.stop();
|
|
14324
14328
|
}
|
|
@@ -18033,24 +18037,24 @@ function FileInput(_ref3) {
|
|
|
18033
18037
|
},
|
|
18034
18038
|
onPressEnter: function onPressEnter(e) {
|
|
18035
18039
|
e.stopPropagation();
|
|
18036
|
-
value ? onEnter(value) : undefined;
|
|
18040
|
+
value ? onEnter(value, true) : undefined;
|
|
18037
18041
|
},
|
|
18038
18042
|
allowClear: true
|
|
18039
18043
|
}), /*#__PURE__*/jsx(Dropdown.Button, {
|
|
18040
18044
|
icon: /*#__PURE__*/jsx(DownOutlined, {}),
|
|
18045
|
+
onClick: function onClick() {
|
|
18046
|
+
return onEnter(value, true);
|
|
18047
|
+
},
|
|
18041
18048
|
menu: {
|
|
18042
18049
|
items: [{
|
|
18043
18050
|
key: 'use',
|
|
18044
|
-
label: t('backoffice.mediaupload.
|
|
18051
|
+
label: t('backoffice.mediaupload.use'),
|
|
18045
18052
|
onClick: function onClick() {
|
|
18046
18053
|
onEnter(value);
|
|
18047
18054
|
}
|
|
18048
|
-
}]
|
|
18049
|
-
onClick: function onClick() {
|
|
18050
|
-
return onEnter(value, true);
|
|
18051
|
-
}
|
|
18055
|
+
}]
|
|
18052
18056
|
},
|
|
18053
|
-
children: t('backoffice.mediaupload.
|
|
18057
|
+
children: t('backoffice.mediaupload.upload')
|
|
18054
18058
|
})]
|
|
18055
18059
|
}), /*#__PURE__*/jsx(Button, {
|
|
18056
18060
|
type: "link",
|
|
@@ -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,
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "24.12.0-rc.
|
|
3
|
+
"version": "24.12.0-rc.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.12.0-rc.
|
|
19
|
-
"@crystaldesign/content-item": "24.12.0-rc.
|
|
20
|
-
"@crystaldesign/diva-core": "24.12.0-rc.
|
|
21
|
-
"@crystaldesign/diva-utils": "24.12.0-rc.
|
|
22
|
-
"@crystaldesign/media-upload": "24.12.0-rc.
|
|
23
|
-
"@crystaldesign/rtf-editor": "24.12.0-rc.
|
|
24
|
-
"@crystaldesign/spreadsheet": "24.12.0-rc.
|
|
18
|
+
"@crystaldesign/content-box": "24.12.0-rc.16",
|
|
19
|
+
"@crystaldesign/content-item": "24.12.0-rc.16",
|
|
20
|
+
"@crystaldesign/diva-core": "24.12.0-rc.16",
|
|
21
|
+
"@crystaldesign/diva-utils": "24.12.0-rc.16",
|
|
22
|
+
"@crystaldesign/media-upload": "24.12.0-rc.16",
|
|
23
|
+
"@crystaldesign/rtf-editor": "24.12.0-rc.16",
|
|
24
|
+
"@crystaldesign/spreadsheet": "24.12.0-rc.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": "
|
|
54
|
+
"gitHead": "5ef211b0f93ad2bd40aeab6881dc8e24d57d69e1"
|
|
55
55
|
}
|