@blaze-cms/plugin-media-ui 0.146.0-node18-core-styles-tooltips.60 → 0.146.0-node18-tooltips.50

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.
Files changed (75) hide show
  1. package/CHANGELOG.md +37 -79
  2. package/lib/components/CardMedia/CardMedia.js +5 -5
  3. package/lib/components/CardMedia/CardMedia.js.map +1 -1
  4. package/lib/components/EditMediaFile/EditMediaFile.js +4 -5
  5. package/lib/components/EditMediaFile/EditMediaFile.js.map +1 -1
  6. package/lib/components/EditMediaFile/EditMediaFilePage.js +2 -2
  7. package/lib/components/EditMediaFile/EditMediaFilePage.js.map +1 -1
  8. package/lib/components/FileList/useGetFiles/getFiles.js +2 -1
  9. package/lib/components/FileList/useGetFiles/getFiles.js.map +1 -1
  10. package/lib/components/FileList/useGetFiles/useGetFiles.js +2 -1
  11. package/lib/components/FileList/useGetFiles/useGetFiles.js.map +1 -1
  12. package/lib/components/FileList/useGetFilesList/getCounters.js +1 -1
  13. package/lib/components/FileList/useGetFilesList/getCounters.js.map +1 -1
  14. package/lib/components/FileList/useGetFilesList/useGetFilesList.js +1 -0
  15. package/lib/components/FileList/useGetFilesList/useGetFilesList.js.map +1 -1
  16. package/lib/components/FilePreview/Actions/index.js +1 -1
  17. package/lib/components/FilePreview/Actions/index.js.map +1 -1
  18. package/lib/components/FilePreview/Image/Image.js.map +1 -1
  19. package/lib/components/FilePreview/PDF/PDF.js.map +1 -1
  20. package/lib/components/FilePreview/index.js +0 -1
  21. package/lib/components/FilePreview/index.js.map +1 -1
  22. package/lib/components/FilePreview/previewDefault/PreviewDefault.js.map +1 -1
  23. package/lib/components/FilePreviewReadOnly/FilePreviewList.js +1 -0
  24. package/lib/components/FilePreviewReadOnly/FilePreviewList.js.map +1 -1
  25. package/lib/components/FilePreviewReadOnly/FilePreviewReadOnly.js +3 -3
  26. package/lib/components/FilePreviewReadOnly/FilePreviewReadOnly.js.map +1 -1
  27. package/lib/components/FileUploadAdapter/FileList.js +1 -1
  28. package/lib/components/FileUploadAdapter/FileList.js.map +1 -1
  29. package/lib/components/FileUploadAdapter/FilePreviewList.js +1 -0
  30. package/lib/components/FileUploadAdapter/FilePreviewList.js.map +1 -1
  31. package/lib/components/FileUploadAdapter/FileReorderList.js.map +1 -1
  32. package/lib/components/FileUploadAdapter/FileUploadAdapter.js +11 -11
  33. package/lib/components/FileUploadAdapter/FileUploadAdapter.js.map +1 -1
  34. package/lib/components/FileUploadModal/FileUploadModal.js +3 -3
  35. package/lib/components/FileUploadModal/FileUploadModal.js.map +1 -1
  36. package/lib/components/ListingContainer/Listing/Listing.js.map +1 -1
  37. package/lib/components/ListingContainer/Listing/MediaListing/MediaFileList/MediaFileList.js +3 -1
  38. package/lib/components/ListingContainer/Listing/MediaListing/MediaFileList/MediaFileList.js.map +1 -1
  39. package/lib/components/ListingContainer/Listing/MediaListing/MediaListing.js +1 -1
  40. package/lib/components/ListingContainer/Listing/MediaListing/MediaListing.js.map +1 -1
  41. package/lib/components/ListingContainer/ListingContainer.js +1 -1
  42. package/lib/components/ListingContainer/ListingContainer.js.map +1 -1
  43. package/lib/components/MediaListing.js +1 -1
  44. package/lib/components/MediaListing.js.map +1 -1
  45. package/lib/constants.js +1 -1
  46. package/lib/constants.js.map +1 -1
  47. package/lib/index.js +5 -5
  48. package/lib/index.js.map +1 -1
  49. package/lib/utils/bustUrl.js +0 -1
  50. package/lib/utils/bustUrl.js.map +1 -1
  51. package/lib-es/components/CardMedia/CardMedia.js +2 -2
  52. package/lib-es/components/CardMedia/CardMedia.js.map +1 -1
  53. package/lib-es/components/EditMediaFile/EditMediaFile.js +2 -2
  54. package/lib-es/components/EditMediaFile/EditMediaFile.js.map +1 -1
  55. package/lib-es/components/EditMediaFile/EditMediaFilePage.js.map +1 -1
  56. package/lib-es/components/FileList/useGetFiles/getFiles.js.map +1 -1
  57. package/lib-es/components/FilePreview/Actions/index.js.map +1 -1
  58. package/lib-es/components/FilePreview/PDF/PDF.js.map +1 -1
  59. package/lib-es/components/FilePreview/index.js.map +1 -1
  60. package/lib-es/components/FilePreview/previewDefault/PreviewDefault.js.map +1 -1
  61. package/lib-es/components/FileUploadAdapter/FileList.js.map +1 -1
  62. package/lib-es/components/FileUploadAdapter/FileUploadAdapter.js.map +1 -1
  63. package/lib-es/components/FileUploadAdapter/mappers/get-button-text.js.map +1 -1
  64. package/lib-es/components/FileUploadModal/FileUploadModal.js.map +1 -1
  65. package/lib-es/components/ListingContainer/Listing/MediaListing/MediaFileList/MediaFileList.js +2 -0
  66. package/lib-es/components/ListingContainer/Listing/MediaListing/MediaFileList/MediaFileList.js.map +1 -1
  67. package/lib-es/constants.js +1 -1
  68. package/lib-es/constants.js.map +1 -1
  69. package/lib-es/index.js +3 -3
  70. package/lib-es/index.js.map +1 -1
  71. package/lib-es/utils/bustUrl.js.map +1 -1
  72. package/package.json +8 -8
  73. package/src/components/EditMediaFile/EditMediaFile.js +3 -1
  74. package/src/components/ListingContainer/Listing/MediaListing/MediaFileList/MediaFileList.js +2 -0
  75. package/src/constants.js +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","FileUploadAdapter","EditorAdapter","MediaLibraryIcon","pkg","PLUGIN_NAME","FilePreviewReadOnly","lazy","MediaListing","EditMediaFilePage","load","app","events","once","addConfig","main","items","media","label","uri","icon","order","addFieldType","type","component","mediaRoute","path","key","exact","editMediaFileRoute","addRoute","name","version","pluginName"],"sources":["../src/index.js"],"sourcesContent":["import React from 'react';\nimport FileUploadAdapter from './components/FileUploadAdapter';\nimport EditorAdapter from './components/EditorAdapter';\nimport { MediaLibraryIcon } from './icons';\nimport pkg from '../package.json';\nimport { PLUGIN_NAME } from './constants';\n\nexport const FilePreviewReadOnly = React.lazy(\n () =>\n import(/* webpackChunkName: 'MediaFilePreviewReadOnly' */ './components/FilePreviewReadOnly')\n);\n\nconst MediaListing = React.lazy(\n () => import(/* webpackChunkName: 'MediaListingContainer' */ './components/MediaListing')\n);\n\nconst EditMediaFilePage = React.lazy(\n () =>\n import(\n /* webpackChunkName: 'EditMediaFilePage' */ './components/EditMediaFile/EditMediaFilePage'\n )\n);\nexport default async function load(app) {\n app.events.once('admin:menu:config:load', ({ addConfig }) => {\n addConfig({\n main: {\n items: {\n media: {\n label: 'Media',\n uri: '/media',\n icon: MediaLibraryIcon,\n order: 30\n }\n }\n }\n });\n });\n\n app.events.once('load:custom:field:type', addFieldType => {\n addFieldType({ type: 'fileUpload', component: FileUploadAdapter });\n addFieldType({ type: 'filePreview', component: FilePreviewReadOnly });\n addFieldType({ type: 'editor', component: EditorAdapter });\n });\n\n const mediaRoute = {\n path: '/media',\n key: 'media',\n component: MediaListing,\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,SAASC,gBAAgB,QAAQ,SAAS;AAC1C,OAAOC,GAAG,MAAM,iBAAiB;AACjC,SAASC,WAAW,QAAQ,aAAa;AAEzC,OAAO,MAAMC,mBAAmB,GAAGN,KAAK,CAACO,IAAI,CAC3C,MACE,MAAM,EAAC,kDAAmD,kCAAkC,CAChG,CAAC;AAED,MAAMC,YAAY,GAAGR,KAAK,CAACO,IAAI,CAC7B,MAAM,MAAM,EAAC,+CAAgD,2BAA2B,CAC1F,CAAC;AAED,MAAME,iBAAiB,GAAGT,KAAK,CAACO,IAAI,CAClC,MACE,MAAM,EACJ,2CAA4C,8CAC9C,CACJ,CAAC;AACD,eAAe,eAAeG,IAAIA,CAACC,GAAG,EAAE;EACtCA,GAAG,CAACC,MAAM,CAACC,IAAI,CAAC,wBAAwB,EAAE,CAAC;IAAEC;EAAU,CAAC,KAAK;IAC3DA,SAAS,CAAC;MACRC,IAAI,EAAE;QACJC,KAAK,EAAE;UACLC,KAAK,EAAE;YACLC,KAAK,EAAE,OAAO;YACdC,GAAG,EAAE,QAAQ;YACbC,IAAI,EAAEjB,gBAAgB;YACtBkB,KAAK,EAAE;UACT;QACF;MACF;IACF,CAAC,CAAC;EACJ,CAAC,CAAC;EAEFV,GAAG,CAACC,MAAM,CAACC,IAAI,CAAC,wBAAwB,EAAES,YAAY,IAAI;IACxDA,YAAY,CAAC;MAAEC,IAAI,EAAE,YAAY;MAAEC,SAAS,EAAEvB;IAAkB,CAAC,CAAC;IAClEqB,YAAY,CAAC;MAAEC,IAAI,EAAE,aAAa;MAAEC,SAAS,EAAElB;IAAoB,CAAC,CAAC;IACrEgB,YAAY,CAAC;MAAEC,IAAI,EAAE,QAAQ;MAAEC,SAAS,EAAEtB;IAAc,CAAC,CAAC;EAC5D,CAAC,CAAC;EAEF,MAAMuB,UAAU,GAAG;IACjBC,IAAI,EAAE,QAAQ;IACdC,GAAG,EAAE,OAAO;IACZH,SAAS,EAAEhB,YAAY;IACvBoB,KAAK,EAAE;EACT,CAAC;EAED,MAAMC,kBAAkB,GAAG;IACzBH,IAAI,EAAE,qBAAqB;IAC3BC,GAAG,EAAE,WAAW;IAChBH,SAAS,EAAEf,iBAAiB;IAC5BmB,KAAK,EAAE;EACT,CAAC;EAEDjB,GAAG,CAACmB,QAAQ,CAACL,UAAU,CAAC;EACxBd,GAAG,CAACmB,QAAQ,CAACD,kBAAkB,CAAC;EAEhC,OAAO;IACLE,IAAI,EAAE1B,WAAW;IACjB2B,OAAO,EAAE5B,GAAG,CAAC4B;EACf,CAAC;AACH;AAEAtB,IAAI,CAACuB,UAAU,GAAG5B,WAAW","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","FileUploadAdapter","EditorAdapter","MediaLibraryIcon","pkg","PLUGIN_NAME","FilePreviewReadOnly","lazy","MediaListing","EditMediaFilePage","load","app","events","once","addConfig","main","items","media","label","uri","icon","order","addFieldType","type","component","mediaRoute","path","key","exact","editMediaFileRoute","addRoute","name","version","pluginName"],"sources":["../src/index.js"],"sourcesContent":["import React from 'react';\nimport FileUploadAdapter from './components/FileUploadAdapter';\nimport EditorAdapter from './components/EditorAdapter';\nimport { MediaLibraryIcon } from './icons';\nimport pkg from '../package.json';\nimport { PLUGIN_NAME } from './constants';\n\nexport const FilePreviewReadOnly = React.lazy(\n () =>\n import(/* webpackChunkName: 'MediaFilePreviewReadOnly' */ './components/FilePreviewReadOnly')\n);\n\nconst MediaListing = React.lazy(\n () => import(/* webpackChunkName: 'MediaListingContainer' */ './components/MediaListing')\n);\n\nconst EditMediaFilePage = React.lazy(\n () =>\n import(\n /* webpackChunkName: 'EditMediaFilePage' */ './components/EditMediaFile/EditMediaFilePage'\n )\n);\nexport default async function load(app) {\n app.events.once('admin:menu:config:load', ({ addConfig }) => {\n addConfig({\n main: {\n items: {\n media: {\n label: 'Media',\n uri: '/media',\n icon: MediaLibraryIcon,\n order: 30\n }\n }\n }\n });\n });\n\n app.events.once('load:custom:field:type', addFieldType => {\n addFieldType({ type: 'fileUpload', component: FileUploadAdapter });\n addFieldType({ type: 'filePreview', component: FilePreviewReadOnly });\n addFieldType({ type: 'editor', component: EditorAdapter });\n });\n\n const mediaRoute = {\n path: '/media',\n key: 'media',\n component: MediaListing,\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,SAASC,gBAAgB,QAAQ,S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AG;IACzBH,IAAI,EAAE,qBAAqB;IAC3BC,GAAG,EAAE,WAAW;IAChBH,SAAS,EAAEf,iBAAiB;IAC5BmB,KAAK,EAAE;EACT,CAAC;EAEDjB,GAAG,CAACmB,QAAQ,CAACL,UAAU,CAAC;EACxBd,GAAG,CAACmB,QAAQ,CAACD,kBAAkB,CAAC;EAEhC,OAAO;IACLE,IAAI,EAAE1B,WAAW;IACjB2B,OAAO,EAAE5B,GAAG,CAAC4B;EACf,CAAC;AACH;AAEAtB,IAAI,CAACuB,UAAU,GAAG5B,WAAW","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"bustUrl.js","names":["bustUrl","url","updated","separator","includes","version","Date","now"],"sources":["../../src/utils/bustUrl.js"],"sourcesContent":["export default function bustUrl(url, updated) {\n if (!url) return url;\n const separator = url.includes('?') ? '&' : '?';\n const version = updated || Date.now();\n return `${url}${separator}v=${version}`;\n}\n"],"mappings":"AAAA,eAAe,SAASA,OAAOA,CAACC,GAAG,EAAEC,OAAO,EAAE;EAC5C,IAAI,CAACD,GAAG,EAAE,OAAOA,GAAG;EACpB,MAAME,SAAS,GAAGF,GAAG,CAACG,QAAQ,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG;EAC/C,MAAMC,OAAO,GAAGH,OAAO,IAAII,IAAI,CAACC,GAAG,CAAC,CAAC;EACrC,OAAQ,GAAEN,GAAI,GAAEE,SAAU,KAAIE,OAAQ,EAAC;AACzC","ignoreList":[]}
1
+ {"version":3,"file":"bustUrl.js","names":["bustUrl","url","updated","separator","includes","version","Date","now"],"sources":["../../src/utils/bustUrl.js"],"sourcesContent":["export default function bustUrl(url, updated) {\n if (!url) return url;\n const separator = url.includes('?') ? '&' : '?';\n const version = updated || Date.now();\n return `${url}${separator}v=${version}`;\n}\n"],"mappings":"AAAA,eAAe,SAASA,OAAOA,CAACC,GAAG,EAAEC,OAAO,EAAE;EAC5C,IAAI,CAACD,GAAG,EAAE,OAAOA,GAAG;EACpB,MAAME,SAAS,GAAGF,GAAG,CAACG,QAAQ,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG;EAC/C,MAAMC,OAAO,GAAGH,OAAO,IAAII,IAAI,CAACC,GAAG,CAAC,CAAC;EACrC,OAAO,GAAGN,GAAG,GAAGE,SAAS,KAAKE,OAAO,EAAE;AACzC","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaze-cms/plugin-media-ui",
3
- "version": "0.146.0-node18-core-styles-tooltips.60",
3
+ "version": "0.146.0-node18-tooltips.50",
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.146.0-node18-core-styles-tooltips.60",
31
- "@blaze-cms/core-errors": "0.146.0-node18-core-styles-tooltips.46",
32
- "@blaze-cms/plugin-search-ui": "0.146.0-node18-core-styles-tooltips.60",
33
- "@blaze-cms/react-form-builder": "0.146.0-node18-core-styles-tooltips.60",
34
- "@blaze-cms/setup-ui": "0.146.0-node18-core-styles-tooltips.46",
30
+ "@blaze-cms/admin-ui-utils": "0.146.0-node18-tooltips.44",
31
+ "@blaze-cms/core-errors": "0.146.0-node18-tooltips.0",
32
+ "@blaze-cms/plugin-search-ui": "0.146.0-node18-tooltips.44",
33
+ "@blaze-cms/react-form-builder": "0.146.0-node18-tooltips.49",
34
+ "@blaze-cms/setup-ui": "0.146.0-node18-tooltips.0",
35
35
  "@blaze-react/button": "0.8.0-alpha.82",
36
36
  "@blaze-react/dnd": "^0.7.0",
37
37
  "@blaze-react/drafteditor": "0.7.0",
@@ -48,7 +48,7 @@
48
48
  "react-tiny-virtual-list": "2.2.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@blaze-cms/core-ui": "0.146.0-node18-core-styles-tooltips.58"
51
+ "@blaze-cms/core-ui": "0.146.0-node18-tooltips.44"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@apollo/client": "3.x",
@@ -61,5 +61,5 @@
61
61
  "lib/*",
62
62
  "lib-es/*"
63
63
  ],
64
- "gitHead": "447a75ee4bcd2cbbf2ed3fab689d5d0533f3b76e"
64
+ "gitHead": "aa0c52df39cfd07fa945c92e7da3d5a76db391c8"
65
65
  }
@@ -126,7 +126,7 @@ const EditMediaFile = ({
126
126
  const fileToRender = formValues || file;
127
127
  const fileWithStoreType = getFileWithStoreType(fileToRender);
128
128
 
129
- return (
129
+ return !loading ? (
130
130
  <>
131
131
  {!!file && (
132
132
  <FilePreview
@@ -150,6 +150,8 @@ const EditMediaFile = ({
150
150
  </div>
151
151
  )}
152
152
  </>
153
+ ) : (
154
+ <div>loading...</div>
153
155
  );
154
156
  };
155
157
 
@@ -34,6 +34,8 @@ const MediaFileList = ({
34
34
 
35
35
  useEffect(() => {
36
36
  if (!loading && !hasFiles) setDisplayCardPrompt(true);
37
+ if (!loading) setDisplayCardPrompt(false);
38
+ if (hasFiles) setDisplayCardPrompt(false);
37
39
  }, [loading, hasFiles, setDisplayCardPrompt]);
38
40
 
39
41
  useEffect(
package/src/constants.js CHANGED
@@ -16,7 +16,7 @@ const AVAILABLE_FILTER_TYPES = {
16
16
  };
17
17
 
18
18
  const MEDIA_LIST_ITEM_SIZE = 97;
19
- const MEDIA_OVER_SCAN_COUNT = 0;
19
+ const MEDIA_OVER_SCAN_COUNT = 3;
20
20
 
21
21
  const ICON_SIZE = {
22
22
  WIDTH: '25px',