@webiny/app-file-manager 5.43.2 → 5.43.3-beta.1
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/components/Table/Cells/CellAuthor.js +3 -0
- package/components/Table/Cells/CellAuthor.js.map +1 -1
- package/components/Table/Cells/CellCreated.js +3 -0
- package/components/Table/Cells/CellCreated.js.map +1 -1
- package/components/Table/Cells/CellModified.js +3 -0
- package/components/Table/Cells/CellModified.js.map +1 -1
- package/package.json +20 -20
|
@@ -11,6 +11,9 @@ var CellAuthor = exports.CellAuthor = function CellAuthor() {
|
|
|
11
11
|
var useTableRow = _FileManagerViewConfig.FileManagerViewConfig.Browser.Table.Column.useTableRow;
|
|
12
12
|
var _useTableRow = useTableRow(),
|
|
13
13
|
row = _useTableRow.row;
|
|
14
|
+
if (!row.createdBy) {
|
|
15
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, "-");
|
|
16
|
+
}
|
|
14
17
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, row.createdBy.displayName);
|
|
15
18
|
};
|
|
16
19
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_FileManagerViewConfig","CellAuthor","exports","useTableRow","FileManagerViewConfig","Browser","Table","Column","_useTableRow","row","default","createElement","Fragment","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_FileManagerViewConfig","CellAuthor","exports","useTableRow","FileManagerViewConfig","Browser","Table","Column","_useTableRow","row","createdBy","default","createElement","Fragment","displayName"],"sources":["CellAuthor.tsx"],"sourcesContent":["import React from \"react\";\nimport { FileManagerViewConfig } from \"~/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig\";\n\nexport const CellAuthor = () => {\n const { useTableRow } = FileManagerViewConfig.Browser.Table.Column;\n const { row } = useTableRow();\n\n if (!row.createdBy) {\n return <>{\"-\"}</>;\n }\n\n return <>{row.createdBy.displayName}</>;\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAEO,IAAME,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG,SAAbA,UAAUA,CAAA,EAAS;EAC5B,IAAQE,WAAW,GAAKC,4CAAqB,CAACC,OAAO,CAACC,KAAK,CAACC,MAAM,CAA1DJ,WAAW;EACnB,IAAAK,YAAA,GAAgBL,WAAW,CAAC,CAAC;IAArBM,GAAG,GAAAD,YAAA,CAAHC,GAAG;EAEX,IAAI,CAACA,GAAG,CAACC,SAAS,EAAE;IAChB,oBAAOb,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAAAf,MAAA,CAAAc,OAAA,CAAAE,QAAA,QAAG,GAAM,CAAC;EACrB;EAEA,oBAAOhB,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAAAf,MAAA,CAAAc,OAAA,CAAAE,QAAA,QAAGJ,GAAG,CAACC,SAAS,CAACI,WAAc,CAAC;AAC3C,CAAC","ignoreList":[]}
|
|
@@ -12,6 +12,9 @@ var CellCreated = exports.CellCreated = function CellCreated() {
|
|
|
12
12
|
var useTableRow = _FileManagerViewConfig.FileManagerViewConfig.Browser.Table.Column.useTableRow;
|
|
13
13
|
var _useTableRow = useTableRow(),
|
|
14
14
|
row = _useTableRow.row;
|
|
15
|
+
if (!row.createdOn) {
|
|
16
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, "-");
|
|
17
|
+
}
|
|
15
18
|
return /*#__PURE__*/_react.default.createElement(_TimeAgo.TimeAgo, {
|
|
16
19
|
datetime: row.createdOn
|
|
17
20
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_TimeAgo","_FileManagerViewConfig","CellCreated","exports","useTableRow","FileManagerViewConfig","Browser","Table","Column","_useTableRow","row","default","createElement","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_TimeAgo","_FileManagerViewConfig","CellCreated","exports","useTableRow","FileManagerViewConfig","Browser","Table","Column","_useTableRow","row","createdOn","default","createElement","Fragment","TimeAgo","datetime"],"sources":["CellCreated.tsx"],"sourcesContent":["import React from \"react\";\nimport { TimeAgo } from \"@webiny/ui/TimeAgo\";\nimport { FileManagerViewConfig } from \"~/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig\";\n\nexport const CellCreated = () => {\n const { useTableRow } = FileManagerViewConfig.Browser.Table.Column;\n const { row } = useTableRow();\n\n if (!row.createdOn) {\n return <>{\"-\"}</>;\n }\n\n return <TimeAgo datetime={row.createdOn} />;\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AAEO,IAAMG,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,SAAdA,WAAWA,CAAA,EAAS;EAC7B,IAAQE,WAAW,GAAKC,4CAAqB,CAACC,OAAO,CAACC,KAAK,CAACC,MAAM,CAA1DJ,WAAW;EACnB,IAAAK,YAAA,GAAgBL,WAAW,CAAC,CAAC;IAArBM,GAAG,GAAAD,YAAA,CAAHC,GAAG;EAEX,IAAI,CAACA,GAAG,CAACC,SAAS,EAAE;IAChB,oBAAOd,MAAA,CAAAe,OAAA,CAAAC,aAAA,CAAAhB,MAAA,CAAAe,OAAA,CAAAE,QAAA,QAAG,GAAM,CAAC;EACrB;EAEA,oBAAOjB,MAAA,CAAAe,OAAA,CAAAC,aAAA,CAACb,QAAA,CAAAe,OAAO;IAACC,QAAQ,EAAEN,GAAG,CAACC;EAAU,CAAE,CAAC;AAC/C,CAAC","ignoreList":[]}
|
|
@@ -12,6 +12,9 @@ var CellModified = exports.CellModified = function CellModified() {
|
|
|
12
12
|
var useTableRow = _FileManagerViewConfig.FileManagerViewConfig.Browser.Table.Column.useTableRow;
|
|
13
13
|
var _useTableRow = useTableRow(),
|
|
14
14
|
row = _useTableRow.row;
|
|
15
|
+
if (!row.savedOn) {
|
|
16
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, "-");
|
|
17
|
+
}
|
|
15
18
|
return /*#__PURE__*/_react.default.createElement(_TimeAgo.TimeAgo, {
|
|
16
19
|
datetime: row.savedOn
|
|
17
20
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_TimeAgo","_FileManagerViewConfig","CellModified","exports","useTableRow","FileManagerViewConfig","Browser","Table","Column","_useTableRow","row","default","createElement","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_TimeAgo","_FileManagerViewConfig","CellModified","exports","useTableRow","FileManagerViewConfig","Browser","Table","Column","_useTableRow","row","savedOn","default","createElement","Fragment","TimeAgo","datetime"],"sources":["CellModified.tsx"],"sourcesContent":["import React from \"react\";\nimport { TimeAgo } from \"@webiny/ui/TimeAgo\";\nimport { FileManagerViewConfig } from \"~/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig\";\n\nexport const CellModified = () => {\n const { useTableRow } = FileManagerViewConfig.Browser.Table.Column;\n const { row } = useTableRow();\n\n if (!row.savedOn) {\n return <>{\"-\"}</>;\n }\n\n return <TimeAgo datetime={row.savedOn} />;\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AAEO,IAAMG,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG,SAAfA,YAAYA,CAAA,EAAS;EAC9B,IAAQE,WAAW,GAAKC,4CAAqB,CAACC,OAAO,CAACC,KAAK,CAACC,MAAM,CAA1DJ,WAAW;EACnB,IAAAK,YAAA,GAAgBL,WAAW,CAAC,CAAC;IAArBM,GAAG,GAAAD,YAAA,CAAHC,GAAG;EAEX,IAAI,CAACA,GAAG,CAACC,OAAO,EAAE;IACd,oBAAOd,MAAA,CAAAe,OAAA,CAAAC,aAAA,CAAAhB,MAAA,CAAAe,OAAA,CAAAE,QAAA,QAAG,GAAM,CAAC;EACrB;EAEA,oBAAOjB,MAAA,CAAAe,OAAA,CAAAC,aAAA,CAACb,QAAA,CAAAe,OAAO;IAACC,QAAQ,EAAEN,GAAG,CAACC;EAAQ,CAAE,CAAC;AAC7C,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-file-manager",
|
|
3
|
-
"version": "5.43.
|
|
3
|
+
"version": "5.43.3-beta.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,23 +16,23 @@
|
|
|
16
16
|
"@emotion/styled": "11.10.6",
|
|
17
17
|
"@material-design-icons/svg": "0.14.13",
|
|
18
18
|
"@types/react": "18.2.79",
|
|
19
|
-
"@webiny/app": "5.43.
|
|
20
|
-
"@webiny/app-aco": "5.43.
|
|
21
|
-
"@webiny/app-admin": "5.43.
|
|
22
|
-
"@webiny/app-headless-cms": "5.43.
|
|
23
|
-
"@webiny/app-headless-cms-common": "5.43.
|
|
24
|
-
"@webiny/app-i18n": "5.43.
|
|
25
|
-
"@webiny/app-security": "5.43.
|
|
26
|
-
"@webiny/app-tenancy": "5.43.
|
|
27
|
-
"@webiny/app-websockets": "5.43.
|
|
28
|
-
"@webiny/error": "5.43.
|
|
29
|
-
"@webiny/form": "5.43.
|
|
30
|
-
"@webiny/plugins": "5.43.
|
|
31
|
-
"@webiny/react-composition": "5.43.
|
|
32
|
-
"@webiny/react-properties": "5.43.
|
|
33
|
-
"@webiny/ui": "5.43.
|
|
34
|
-
"@webiny/utils": "5.43.
|
|
35
|
-
"@webiny/validation": "5.43.
|
|
19
|
+
"@webiny/app": "5.43.3-beta.1",
|
|
20
|
+
"@webiny/app-aco": "5.43.3-beta.1",
|
|
21
|
+
"@webiny/app-admin": "5.43.3-beta.1",
|
|
22
|
+
"@webiny/app-headless-cms": "5.43.3-beta.1",
|
|
23
|
+
"@webiny/app-headless-cms-common": "5.43.3-beta.1",
|
|
24
|
+
"@webiny/app-i18n": "5.43.3-beta.1",
|
|
25
|
+
"@webiny/app-security": "5.43.3-beta.1",
|
|
26
|
+
"@webiny/app-tenancy": "5.43.3-beta.1",
|
|
27
|
+
"@webiny/app-websockets": "5.43.3-beta.1",
|
|
28
|
+
"@webiny/error": "5.43.3-beta.1",
|
|
29
|
+
"@webiny/form": "5.43.3-beta.1",
|
|
30
|
+
"@webiny/plugins": "5.43.3-beta.1",
|
|
31
|
+
"@webiny/react-composition": "5.43.3-beta.1",
|
|
32
|
+
"@webiny/react-properties": "5.43.3-beta.1",
|
|
33
|
+
"@webiny/ui": "5.43.3-beta.1",
|
|
34
|
+
"@webiny/utils": "5.43.3-beta.1",
|
|
35
|
+
"@webiny/validation": "5.43.3-beta.1",
|
|
36
36
|
"apollo-cache": "1.3.5",
|
|
37
37
|
"apollo-client": "2.6.10",
|
|
38
38
|
"apollo-link": "1.2.14",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@svgr/webpack": "6.5.1",
|
|
63
|
-
"@webiny/project-utils": "5.43.
|
|
63
|
+
"@webiny/project-utils": "5.43.3-beta.1",
|
|
64
64
|
"rimraf": "6.0.1",
|
|
65
65
|
"typescript": "5.3.3"
|
|
66
66
|
},
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"build": "node ../cli/bin.js run build",
|
|
73
73
|
"watch": "node ../cli/bin.js run watch"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "c6d623eb1b715f3731434a8d3107b8fd8a1d6792"
|
|
76
76
|
}
|