@onehat/ui 0.3.348 → 0.3.350
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/package.json
CHANGED
|
@@ -2,6 +2,13 @@ import { useEffect, useState, useRef, } from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
Button,
|
|
4
4
|
} from 'native-base';
|
|
5
|
+
import {
|
|
6
|
+
ADD,
|
|
7
|
+
EDIT,
|
|
8
|
+
DELETE,
|
|
9
|
+
VIEW,
|
|
10
|
+
DUPLICATE,
|
|
11
|
+
} from '../../../Constants/Commands.js';
|
|
5
12
|
import {
|
|
6
13
|
EDITOR_MODE__VIEW,
|
|
7
14
|
EDITOR_MODE__ADD,
|
|
@@ -365,7 +372,7 @@ export default function withSecondaryEditor(WrappedComponent, isTree = false) {
|
|
|
365
372
|
secondaryDoEdit();
|
|
366
373
|
},
|
|
367
374
|
secondaryDoEditorSave = async (data, e) => {
|
|
368
|
-
let mode =
|
|
375
|
+
let mode = secondaryEditorMode === EDITOR_MODE__ADD ? ADD : EDIT;
|
|
369
376
|
if (canUser && !canUser(mode, secondaryModel)) {
|
|
370
377
|
showPermissionsError(mode, secondaryModel);
|
|
371
378
|
return;
|
|
@@ -1580,17 +1580,16 @@ export const commonApplicationMimeTypes = [
|
|
|
1580
1580
|
'application/gzip',
|
|
1581
1581
|
'application/javascript',
|
|
1582
1582
|
'application/json',
|
|
1583
|
-
'application/msword',
|
|
1583
|
+
'application/msword', // .doc
|
|
1584
1584
|
'application/pdf',
|
|
1585
1585
|
'application/SGML',
|
|
1586
1586
|
'application/sql',
|
|
1587
1587
|
'application/vnd.adobe.xdp+xml',
|
|
1588
|
-
'application/vnd.ms-excel',
|
|
1589
|
-
'application/vnd.ms-
|
|
1590
|
-
'application/vnd.
|
|
1591
|
-
'application/vnd.
|
|
1592
|
-
'application/vnd.
|
|
1593
|
-
'application/vnd.openxmlformats*',
|
|
1588
|
+
'application/vnd.ms-excel', // .xls
|
|
1589
|
+
'application/vnd.ms-powerpoint', // .ppt
|
|
1590
|
+
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', // .xlsx
|
|
1591
|
+
'application/vnd.openxmlformats-officedocument.wordprocessingml.document', // .docx
|
|
1592
|
+
'application/vnd.openxmlformats-officedocument.presentationml.presentation', // .pptx
|
|
1594
1593
|
'application/xml',
|
|
1595
1594
|
'application/zip',
|
|
1596
1595
|
];
|