@blaze-cms/plugin-media-ui 0.131.0-project-admin-customisations.2 → 0.132.0-admin-updates.0
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/CHANGELOG.md +9 -25
- package/lib/index.js +5 -18
- package/lib/index.js.map +1 -1
- package/lib-es/index.js +5 -19
- package/lib-es/index.js.map +1 -1
- package/package.json +8 -8
- package/src/index.js +2 -17
package/CHANGELOG.md
CHANGED
|
@@ -3,31 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
# [0.
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
# [0.131.0-project-admin-customisations.1](https://github.com/thebyte9/blaze/compare/v0.131.0-project-admin-customisations.0...v0.131.0-project-admin-customisations.1) (2023-07-14)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
# [0.131.0-project-admin-customisations.0](https://github.com/thebyte9/blaze/compare/v0.130.1...v0.131.0-project-admin-customisations.0) (2023-07-13)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
# [0.129.0-project-admin-customisations.1](https://github.com/thebyte9/blaze/compare/v0.129.0-project-admin-customisations.0...v0.129.0-project-admin-customisations.1) (2023-05-05)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
# [0.129.0-project-admin-customisations.0](https://github.com/thebyte9/blaze/compare/v0.128.2...v0.129.0-project-admin-customisations.0) (2023-05-03)
|
|
6
|
+
# [0.132.0-admin-updates.0](https://github.com/thebyte9/blaze/compare/v0.131.0...v0.132.0-admin-updates.0) (2023-07-27)
|
|
31
7
|
|
|
32
8
|
|
|
33
9
|
### Bug Fixes
|
|
@@ -49,6 +25,14 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
49
25
|
|
|
50
26
|
|
|
51
27
|
|
|
28
|
+
# [0.131.0](https://github.com/thebyte9/blaze/compare/v0.130.1...v0.131.0) (2023-07-18)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
52
36
|
## [0.130.1](https://github.com/thebyte9/blaze/compare/v0.130.0...v0.130.1) (2023-07-06)
|
|
53
37
|
|
|
54
38
|
**Note:** Version bump only for package @blaze-cms/plugin-media-ui
|
package/lib/index.js
CHANGED
|
@@ -42,24 +42,11 @@ function _load() {
|
|
|
42
42
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
43
43
|
while (1) switch (_context.prev = _context.next) {
|
|
44
44
|
case 0:
|
|
45
|
-
app.events.once('
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
plugins: {
|
|
51
|
-
label: 'Plugins',
|
|
52
|
-
order: 20,
|
|
53
|
-
items: {
|
|
54
|
-
media: {
|
|
55
|
-
label: 'Media',
|
|
56
|
-
uri: '/media'
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
});
|
|
45
|
+
app.events.once('load:menu-items', function (addItem) {
|
|
46
|
+
addItem({
|
|
47
|
+
name: 'Media',
|
|
48
|
+
uri: '/media'
|
|
49
|
+
}, 'plugins');
|
|
63
50
|
});
|
|
64
51
|
app.events.once('load:custom:field:type', function (addFieldType) {
|
|
65
52
|
addFieldType({
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_FileUploadAdapter","_EditorAdapter","_package","_constants","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_interopRequireWildcard","obj","__esModule","_typeof2","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","ListingContainer","React","lazy","Promise","resolve","then","EditMediaFilePage","load","_x","_load","apply","arguments","_asyncToGenerator2","_regenerator","mark","_callee","app","mediaRoute","editMediaFileRoute","wrap","_callee$","_context","prev","next","events","once","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_FileUploadAdapter","_EditorAdapter","_package","_constants","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_interopRequireWildcard","obj","__esModule","_typeof2","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","ListingContainer","React","lazy","Promise","resolve","then","EditMediaFilePage","load","_x","_load","apply","arguments","_asyncToGenerator2","_regenerator","mark","_callee","app","mediaRoute","editMediaFileRoute","wrap","_callee$","_context","prev","next","events","once","addItem","name","uri","addFieldType","type","component","FileUploadAdapter","EditorAdapter","path","exact","addRoute","abrupt","PLUGIN_NAME","version","pkg","stop","pluginName"],"sources":["../src/index.js"],"sourcesContent":["import React from 'react';\nimport FileUploadAdapter from './components/FileUploadAdapter';\nimport EditorAdapter from './components/EditorAdapter';\nimport pkg from '../package.json';\nimport { PLUGIN_NAME } from './constants';\n\nconst ListingContainer = React.lazy(() =>\n import(/* webpackChunkName: 'MediaListingContainer' */ './components/ListingContainer')\n);\n\nconst EditMediaFilePage = React.lazy(() =>\n import(/* webpackChunkName: 'EditMediaFilePage' */ './components/EditMediaFile/EditMediaFilePage')\n);\n\nexport default async function load(app) {\n app.events.once('load:menu-items', addItem => {\n addItem({ name: 'Media', uri: '/media' }, 'plugins');\n });\n\n app.events.once('load:custom:field:type', addFieldType => {\n addFieldType({ type: 'fileUpload', component: FileUploadAdapter });\n addFieldType({ type: 'editor', component: EditorAdapter });\n });\n\n const mediaRoute = {\n path: '/media',\n key: 'media',\n component: ListingContainer,\n exact: true\n };\n\n const editMediaFileRoute = {\n path: '/media/edit/:fileId',\n key: 'editMedia',\n component: EditMediaFilePage,\n exact: true\n };\n\n app.addRoute(mediaRoute);\n app.addRoute(editMediaFileRoute);\n\n return {\n name: PLUGIN_NAME,\n version: pkg.version\n };\n}\n\nload.pluginName = PLUGIN_NAME;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,cAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,QAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAA0C,SAAAK,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAI,wBAAAC,GAAA,EAAAL,WAAA,SAAAA,WAAA,IAAAK,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,iBAAAE,QAAA,aAAAF,GAAA,yBAAAA,GAAA,uCAAAA,GAAA,UAAAG,KAAA,GAAAT,wBAAA,CAAAC,WAAA,OAAAQ,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,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,IAAI,EAAE,OAAO;cAAEC,GAAG,EAAE;YAAS,CAAC,EAAE,SAAS,CAAC;UACtD,CAAC,CAAC;UAEFZ,GAAG,CAACQ,MAAM,CAACC,IAAI,CAAC,wBAAwB,EAAE,UAAAI,YAAY,EAAI;YACxDA,YAAY,CAAC;cAAEC,IAAI,EAAE,YAAY;cAAEC,SAAS,EAAEC;YAAkB,CAAC,CAAC;YAClEH,YAAY,CAAC;cAAEC,IAAI,EAAE,QAAQ;cAAEC,SAAS,EAAEE;YAAc,CAAC,CAAC;UAC5D,CAAC,CAAC;UAEIhB,UAAU,GAAG;YACjBiB,IAAI,EAAE,QAAQ;YACdxC,GAAG,EAAE,OAAO;YACZqC,SAAS,EAAE/B,gBAAgB;YAC3BmC,KAAK,EAAE;UACT,CAAC;UAEKjB,kBAAkB,GAAG;YACzBgB,IAAI,EAAE,qBAAqB;YAC3BxC,GAAG,EAAE,WAAW;YAChBqC,SAAS,EAAEzB,iBAAiB;YAC5B6B,KAAK,EAAE;UACT,CAAC;UAEDnB,GAAG,CAACoB,QAAQ,CAACnB,UAAU,CAAC;UACxBD,GAAG,CAACoB,QAAQ,CAAClB,kBAAkB,CAAC;UAAC,OAAAG,QAAA,CAAAgB,MAAA,WAE1B;YACLV,IAAI,EAAEW,sBAAW;YACjBC,OAAO,EAAEC,mBAAG,CAACD;UACf,CAAC;QAAA;QAAA;UAAA,OAAAlB,QAAA,CAAAoB,IAAA;MAAA;IAAA,GAAA1B,OAAA;EAAA,CACF;EAAA,OAAAN,KAAA,CAAAC,KAAA,OAAAC,SAAA;AAAA;AAEDJ,IAAI,CAACmC,UAAU,GAAGJ,sBAAW"}
|
package/lib-es/index.js
CHANGED
|
@@ -6,25 +6,11 @@ import { PLUGIN_NAME } from './constants';
|
|
|
6
6
|
const ListingContainer = React.lazy(() => import( /* webpackChunkName: 'MediaListingContainer' */'./components/ListingContainer'));
|
|
7
7
|
const EditMediaFilePage = React.lazy(() => import( /* webpackChunkName: 'EditMediaFilePage' */'./components/EditMediaFile/EditMediaFilePage'));
|
|
8
8
|
export default async function load(app) {
|
|
9
|
-
app.events.once('
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
items: {
|
|
15
|
-
plugins: {
|
|
16
|
-
label: 'Plugins',
|
|
17
|
-
order: 20,
|
|
18
|
-
items: {
|
|
19
|
-
media: {
|
|
20
|
-
label: 'Media',
|
|
21
|
-
uri: '/media'
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
});
|
|
9
|
+
app.events.once('load:menu-items', addItem => {
|
|
10
|
+
addItem({
|
|
11
|
+
name: 'Media',
|
|
12
|
+
uri: '/media'
|
|
13
|
+
}, 'plugins');
|
|
28
14
|
});
|
|
29
15
|
app.events.once('load:custom:field:type', addFieldType => {
|
|
30
16
|
addFieldType({
|
package/lib-es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","FileUploadAdapter","EditorAdapter","pkg","PLUGIN_NAME","ListingContainer","lazy","EditMediaFilePage","load","app","events","once","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","FileUploadAdapter","EditorAdapter","pkg","PLUGIN_NAME","ListingContainer","lazy","EditMediaFilePage","load","app","events","once","addItem","name","uri","addFieldType","type","component","mediaRoute","path","key","exact","editMediaFileRoute","addRoute","version","pluginName"],"sources":["../src/index.js"],"sourcesContent":["import React from 'react';\nimport FileUploadAdapter from './components/FileUploadAdapter';\nimport EditorAdapter from './components/EditorAdapter';\nimport pkg from '../package.json';\nimport { PLUGIN_NAME } from './constants';\n\nconst ListingContainer = React.lazy(() =>\n import(/* webpackChunkName: 'MediaListingContainer' */ './components/ListingContainer')\n);\n\nconst EditMediaFilePage = React.lazy(() =>\n import(/* webpackChunkName: 'EditMediaFilePage' */ './components/EditMediaFile/EditMediaFilePage')\n);\n\nexport default async function load(app) {\n app.events.once('load:menu-items', addItem => {\n addItem({ name: 'Media', uri: '/media' }, 'plugins');\n });\n\n app.events.once('load:custom:field:type', addFieldType => {\n addFieldType({ type: 'fileUpload', component: FileUploadAdapter });\n addFieldType({ type: 'editor', component: EditorAdapter });\n });\n\n const mediaRoute = {\n path: '/media',\n key: 'media',\n component: ListingContainer,\n exact: true\n };\n\n const editMediaFileRoute = {\n path: '/media/edit/:fileId',\n key: 'editMedia',\n component: EditMediaFilePage,\n exact: true\n };\n\n app.addRoute(mediaRoute);\n app.addRoute(editMediaFileRoute);\n\n return {\n name: PLUGIN_NAME,\n version: pkg.version\n };\n}\n\nload.pluginName = PLUGIN_NAME;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,iBAAiB,MAAM,gCAAgC;AAC9D,OAAOC,aAAa,MAAM,4BAA4B;AACtD,OAAOC,GAAG,MAAM,iBAAiB;AACjC,SAASC,WAAW,QAAQ,aAAa;AAEzC,MAAMC,gBAAgB,GAAGL,KAAK,CAACM,IAAI,CAAC,MAClC,MAAM,EAAC,+CAAgD,+BAA+B,CACxF,CAAC;AAED,MAAMC,iBAAiB,GAAGP,KAAK,CAACM,IAAI,CAAC,MACnC,MAAM,EAAC,2CAA4C,8CAA8C,CACnG,CAAC;AAED,eAAe,eAAeE,IAAIA,CAACC,GAAG,EAAE;EACtCA,GAAG,CAACC,MAAM,CAACC,IAAI,CAAC,iBAAiB,EAAEC,OAAO,IAAI;IAC5CA,OAAO,CAAC;MAAEC,IAAI,EAAE,OAAO;MAAEC,GAAG,EAAE;IAAS,CAAC,EAAE,SAAS,CAAC;EACtD,CAAC,CAAC;EAEFL,GAAG,CAACC,MAAM,CAACC,IAAI,CAAC,wBAAwB,EAAEI,YAAY,IAAI;IACxDA,YAAY,CAAC;MAAEC,IAAI,EAAE,YAAY;MAAEC,SAAS,EAAEhB;IAAkB,CAAC,CAAC;IAClEc,YAAY,CAAC;MAAEC,IAAI,EAAE,QAAQ;MAAEC,SAAS,EAAEf;IAAc,CAAC,CAAC;EAC5D,CAAC,CAAC;EAEF,MAAMgB,UAAU,GAAG;IACjBC,IAAI,EAAE,QAAQ;IACdC,GAAG,EAAE,OAAO;IACZH,SAAS,EAAEZ,gBAAgB;IAC3BgB,KAAK,EAAE;EACT,CAAC;EAED,MAAMC,kBAAkB,GAAG;IACzBH,IAAI,EAAE,qBAAqB;IAC3BC,GAAG,EAAE,WAAW;IAChBH,SAAS,EAAEV,iBAAiB;IAC5Bc,KAAK,EAAE;EACT,CAAC;EAEDZ,GAAG,CAACc,QAAQ,CAACL,UAAU,CAAC;EACxBT,GAAG,CAACc,QAAQ,CAACD,kBAAkB,CAAC;EAEhC,OAAO;IACLT,IAAI,EAAET,WAAW;IACjBoB,OAAO,EAAErB,GAAG,CAACqB;EACf,CAAC;AACH;AAEAhB,IAAI,CAACiB,UAAU,GAAGrB,WAAW"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blaze-cms/plugin-media-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.132.0-admin-updates.0",
|
|
4
4
|
"description": "Blaze plugin media ui",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-es/index.js",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
},
|
|
28
28
|
"license": "GPL-3.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@blaze-cms/admin-ui-utils": "0.
|
|
31
|
-
"@blaze-cms/core-errors": "0.
|
|
32
|
-
"@blaze-cms/plugin-search-ui": "0.
|
|
33
|
-
"@blaze-cms/react-form-builder": "0.
|
|
34
|
-
"@blaze-cms/setup-ui": "0.
|
|
30
|
+
"@blaze-cms/admin-ui-utils": "0.132.0-admin-updates.0",
|
|
31
|
+
"@blaze-cms/core-errors": "0.132.0-admin-updates.0",
|
|
32
|
+
"@blaze-cms/plugin-search-ui": "0.132.0-admin-updates.0",
|
|
33
|
+
"@blaze-cms/react-form-builder": "0.132.0-admin-updates.0",
|
|
34
|
+
"@blaze-cms/setup-ui": "0.132.0-admin-updates.0",
|
|
35
35
|
"@blaze-react/button": "0.5.19",
|
|
36
36
|
"@blaze-react/drafteditor": "0.7.0",
|
|
37
37
|
"@blaze-react/file-upload": "0.5.30",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"react-tiny-virtual-list": "2.2.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@blaze-cms/core-ui": "0.
|
|
47
|
+
"@blaze-cms/core-ui": "0.132.0-admin-updates.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@apollo/client": "3.x",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"lib/*",
|
|
58
58
|
"lib-es/*"
|
|
59
59
|
],
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "fd6ece22f357131c0b0e5201e5e1df825389b860"
|
|
61
61
|
}
|
package/src/index.js
CHANGED
|
@@ -13,23 +13,8 @@ const EditMediaFilePage = React.lazy(() =>
|
|
|
13
13
|
);
|
|
14
14
|
|
|
15
15
|
export default async function load(app) {
|
|
16
|
-
app.events.once('
|
|
17
|
-
|
|
18
|
-
main: {
|
|
19
|
-
items: {
|
|
20
|
-
plugins: {
|
|
21
|
-
label: 'Plugins',
|
|
22
|
-
order: 20,
|
|
23
|
-
items: {
|
|
24
|
-
media: {
|
|
25
|
-
label: 'Media',
|
|
26
|
-
uri: '/media'
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
});
|
|
16
|
+
app.events.once('load:menu-items', addItem => {
|
|
17
|
+
addItem({ name: 'Media', uri: '/media' }, 'plugins');
|
|
33
18
|
});
|
|
34
19
|
|
|
35
20
|
app.events.once('load:custom:field:type', addFieldType => {
|