learningtribes-studio-frontend 1.4.1 → 1.4.2-alpha.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/dist/accessibilityPolicy.min.js +2 -2
- package/dist/assets.min.css +1 -1
- package/dist/assets.min.js +1 -1
- package/dist/assets.min.js.map +1 -1
- package/dist/common.min.css +2 -2
- package/dist/common.min.js +9 -9
- package/dist/common.min.js.map +1 -1
- package/dist/courseHealthCheck.min.js +1 -1
- package/dist/courseOutlineHealthCheck.min.js +1 -1
- package/dist/editImageModal.min.css +1 -1
- package/dist/editImageModal.min.js +1 -1
- package/dist/editImageModal.min.js.map +1 -1
- package/dist/i18n/messages/ar.json +0 -3
- package/dist/i18n/messages/es_419.json +0 -3
- package/dist/i18n/messages/fr.json +0 -3
- package/dist/i18n/messages/zh_CN.json +0 -3
- package/dist/i18nMessages.min.js +1 -1
- package/dist/i18nMessages.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/AssetsDropZone/AssetsDropZone.scss +88 -20
- package/src/components/AssetsDropZone/displayMessages.jsx +2 -2
- package/src/components/AssetsDropZone/index.jsx +18 -17
- package/src/components/AssetsList/AssetsList.scss +132 -0
- package/src/components/AssetsList/index.jsx +75 -68
- package/src/components/EditImageModal/EditImageModal.scss +77 -0
- package/src/components/EditImageModal/EditImageModal.test.jsx +9 -160
- package/src/components/EditImageModal/displayMessages.jsx +2 -17
- package/src/components/EditImageModal/index.jsx +37 -81
- package/src/data/i18n/default/transifex_input.json +0 -3
- package/src/data/i18n/locales/ar.json +0 -3
- package/src/data/i18n/locales/es_419.json +0 -3
- package/src/data/i18n/locales/fr.json +0 -3
- package/src/data/i18n/locales/zh_CN.json +0 -3
|
@@ -149,8 +149,6 @@
|
|
|
149
149
|
"editImageModalImageDescriptionLegend": "Image Description",
|
|
150
150
|
"editImageModalDimensionsLegend": "Image Dimensions",
|
|
151
151
|
"editImageModalImageHeight": "Height",
|
|
152
|
-
"editImageModalImageIsDecorativeCheckboxDescription": "This image is a background or other image that does not require alternative text.",
|
|
153
|
-
"editImageModalImageIsDecorativeCheckboxLabel": "This image is decorative only",
|
|
154
152
|
"editImageModalImagePreviewText": "Image Preview",
|
|
155
153
|
"editImageModalInsertImageButton": "Insert Image",
|
|
156
154
|
"editImageModalLearnMore": "Learn more.",
|
|
@@ -159,7 +157,6 @@
|
|
|
159
157
|
"editImageModalInsertTitle": "Add an Image",
|
|
160
158
|
"editImageModalInsertHeader": "Select a previously uploaded image",
|
|
161
159
|
"editImageModalEditTitle": "Edit Image Settings",
|
|
162
|
-
"editImageModalImageOrFields": "or",
|
|
163
160
|
"editImageModalNextPageButton": "Next",
|
|
164
161
|
"editImageModalPreviousPageButton": "Back",
|
|
165
162
|
"editImageModalInvalidFileType": "Files must be images, such as .jpg, .png, and .tiff files. No files were uploaded.",
|
|
@@ -149,8 +149,6 @@
|
|
|
149
149
|
"editImageModalImageDescriptionLegend": "Descripción de la imagen",
|
|
150
150
|
"editImageModalDimensionsLegend": "Dimensiones de la imagen",
|
|
151
151
|
"editImageModalImageHeight": "Altura",
|
|
152
|
-
"editImageModalImageIsDecorativeCheckboxDescription": "Esta imagen es un fondo o otra imagen que no necesita un texto alternativo.",
|
|
153
|
-
"editImageModalImageIsDecorativeCheckboxLabel": "Esta es solo una imagen decorativa",
|
|
154
152
|
"editImageModalImagePreviewText": "Previsualización de Imagen",
|
|
155
153
|
"editImageModalInsertImageButton": "Insertar imagen",
|
|
156
154
|
"editImageModalLearnMore": "Saber más.",
|
|
@@ -159,7 +157,6 @@
|
|
|
159
157
|
"editImageModalInsertTitle": "Añadir una imagen",
|
|
160
158
|
"editImageModalInsertHeader": "Seleccionar una imagen subida anteriormente",
|
|
161
159
|
"editImageModalEditTitle": "Editar ajustes de la imagen",
|
|
162
|
-
"editImageModalImageOrFields": "o",
|
|
163
160
|
"editImageModalNextPageButton": "Siguiente",
|
|
164
161
|
"editImageModalPreviousPageButton": "Volver atrás",
|
|
165
162
|
"editImageModalInvalidFileType": "Los archivos deben ser imágenes, formatos como .jpg, .png, y .tiff. Ningún archivo fue subido.",
|
|
@@ -149,8 +149,6 @@
|
|
|
149
149
|
"editImageModalImageDescriptionLegend": "Description de l'Image",
|
|
150
150
|
"editImageModalDimensionsLegend": "Dimensions de l'image",
|
|
151
151
|
"editImageModalImageHeight": "Hauteur",
|
|
152
|
-
"editImageModalImageIsDecorativeCheckboxDescription": "C'est image de fond ou une autre image ne nécessitant pas de texte alternatif.",
|
|
153
|
-
"editImageModalImageIsDecorativeCheckboxLabel": "Cette image est purement décorative",
|
|
154
152
|
"editImageModalImagePreviewText": "Aperçu de l'image",
|
|
155
153
|
"editImageModalInsertImageButton": "Insérer l'image",
|
|
156
154
|
"editImageModalLearnMore": "En savoir plus.",
|
|
@@ -159,7 +157,6 @@
|
|
|
159
157
|
"editImageModalInsertTitle": "Ajouter une image",
|
|
160
158
|
"editImageModalInsertHeader": "Sélectionner une image chargée précédemment",
|
|
161
159
|
"editImageModalEditTitle": "Modifier les paramètres d'images",
|
|
162
|
-
"editImageModalImageOrFields": "ou",
|
|
163
160
|
"editImageModalNextPageButton": "Suivant",
|
|
164
161
|
"editImageModalPreviousPageButton": "Retour",
|
|
165
162
|
"editImageModalInvalidFileType": "Les fichiers doivent être des images, du type .jpg, png, et .tiff. Aucun fichier n'a été chargé.",
|
|
@@ -148,8 +148,6 @@
|
|
|
148
148
|
"editImageModalImageDescriptionLegend": "图片描述",
|
|
149
149
|
"editImageModalDimensionsLegend": "图片长宽比例",
|
|
150
150
|
"editImageModalImageHeight": "高度",
|
|
151
|
-
"editImageModalImageIsDecorativeCheckboxDescription": "此图像是不需要替代文本的背景或其他图像。",
|
|
152
|
-
"editImageModalImageIsDecorativeCheckboxLabel": "此图片仅为装饰",
|
|
153
151
|
"editImageModalImagePreviewText": "图片预览",
|
|
154
152
|
"editImageModalInsertImageButton": "插入图片",
|
|
155
153
|
"editImageModalLearnMore": "了解更多。",
|
|
@@ -158,7 +156,6 @@
|
|
|
158
156
|
"editImageModalInsertTitle": "添加图片",
|
|
159
157
|
"editImageModalInsertHeader": "选择一张之前上传的图片",
|
|
160
158
|
"editImageModalEditTitle": "编辑图片设置",
|
|
161
|
-
"editImageModalImageOrFields": "或者",
|
|
162
159
|
"editImageModalNextPageButton": "下一步",
|
|
163
160
|
"editImageModalPreviousPageButton": "返回",
|
|
164
161
|
"editImageModalInvalidFileType": "文件必须是图片,例如 .jpg,.png 和 .tiff 文件。没有文件被上传。",
|
package/dist/i18nMessages.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(r){function n(n){for(var t,f,i=n[0],l=n[1],p=n[2],a=0,c=[];a<i.length;a++)f=i[a],o[f]&&c.push(o[f][0]),o[f]=0;for(t in l)Object.prototype.hasOwnProperty.call(l,t)&&(r[t]=l[t]);for(s&&s(n);c.length;)c.shift()();return u.push.apply(u,p||[]),e()}function e(){for(var r,n=0;n<u.length;n++){for(var e=u[n],t=!0,i=1;i<e.length;i++){var l=e[i];0!==o[l]&&(t=!1)}t&&(u.splice(n--,1),r=f(f.s=e[0]))}return r}var t={},o={2:0},u=[];function f(n){if(t[n])return t[n].exports;var e=t[n]={i:n,l:!1,exports:{}};return r[n].call(e.exports,e,e.exports,f),e.l=!0,e.exports}f.m=r,f.c=t,f.d=function(r,n,e){f.o(r,n)||Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:e})},f.r=function(r){Object.defineProperty(r,"__esModule",{value:!0})},f.n=function(r){var n=r&&r.__esModule?function(){return r.default}:function(){return r};return f.d(n,"a",n),n},f.o=function(r,n){return Object.prototype.hasOwnProperty.call(r,n)},f.p="";var i=window.studiofrontendJsonP=window.studiofrontendJsonP||[],l=i.push.bind(i);i.push=n,i=i.slice();for(var p=0;p<i.length;p++)n(i[p]);var s=l;u.push([
|
|
1
|
+
!function(r){function n(n){for(var t,f,i=n[0],l=n[1],p=n[2],a=0,c=[];a<i.length;a++)f=i[a],o[f]&&c.push(o[f][0]),o[f]=0;for(t in l)Object.prototype.hasOwnProperty.call(l,t)&&(r[t]=l[t]);for(s&&s(n);c.length;)c.shift()();return u.push.apply(u,p||[]),e()}function e(){for(var r,n=0;n<u.length;n++){for(var e=u[n],t=!0,i=1;i<e.length;i++){var l=e[i];0!==o[l]&&(t=!1)}t&&(u.splice(n--,1),r=f(f.s=e[0]))}return r}var t={},o={2:0},u=[];function f(n){if(t[n])return t[n].exports;var e=t[n]={i:n,l:!1,exports:{}};return r[n].call(e.exports,e,e.exports,f),e.l=!0,e.exports}f.m=r,f.c=t,f.d=function(r,n,e){f.o(r,n)||Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:e})},f.r=function(r){Object.defineProperty(r,"__esModule",{value:!0})},f.n=function(r){var n=r&&r.__esModule?function(){return r.default}:function(){return r};return f.d(n,"a",n),n},f.o=function(r,n){return Object.prototype.hasOwnProperty.call(r,n)},f.p="";var i=window.studiofrontendJsonP=window.studiofrontendJsonP||[],l=i.push.bind(i);i.push=n,i=i.slice();for(var p=0;p<i.length;p++)n(i[p]);var s=l;u.push([436,0]),e()}([]);
|
|
2
2
|
//# sourceMappingURL=i18nMessages.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","2","exports","module","l","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","r","value","n","__esModule","object","property","p","jsonpArray","window","oldJsonpFunction","bind","slice"],"mappings":"aACA,SAAAA,EAAAC,GAOA,IANA,IAKAC,EAAAC,EALAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAGAM,EAAA,EAAAC,KACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ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AiC,OAAAA,GAEjC,OADAL,EAAAS,EAAAE,EAAA,IAAAA,GACAA,GAIAX,EAAAY,EAAA,SAAAS,EAAAC,GAAsD,OAAAtC,OAAAC,UAAAC,eAAAC,KAAAkC,EAAAC,IAGtDtB,EAAAuB,EAAA,GAEA,IAAAC,EAAAC,OAAA,oBAAAA,OAAA,wBACAC,EAAAF,EAAAzC,KAAA4C,KAAAH,GACAA,EAAAzC,KAAAX,EACAoD,IAAAI,QACA,QAAAjD,EAAA,EAAgBA,EAAA6C,EAAA3C,OAAuBF,IAAAP,EAAAoD,EAAA7C,IACvC,IAAAU,EAAAqC,EAIAnC,EAAAR,MAAA,QAEAU","file":"i18nMessages.min.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \tvar jsonpArray = window[\"studiofrontendJsonP\"] = window[\"studiofrontendJsonP\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","2","exports","module","l","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","r","value","n","__esModule","object","property","p","jsonpArray","window","oldJsonpFunction","bind","slice"],"mappings":"aACA,SAAAA,EAAAC,GAOA,IANA,IAKAC,EAAAC,EALAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAGAM,EAAA,EAAAC,KACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAIA,IAD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C,EAAAC,OAAA,oBAAAA,OAAA,wBACAC,EAAAF,EAAAzC,KAAA4C,KAAAH,GACAA,EAAAzC,KAAAX,EACAoD,IAAAI,QACA,QAAAjD,EAAA,EAAgBA,EAAA6C,EAAA3C,OAAuBF,IAAAP,EAAAoD,EAAA7C,IACvC,IAAAU,EAAAqC,EAIAnC,EAAAR,MAAA,QAEAU","file":"i18nMessages.min.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \tvar jsonpArray = window[\"studiofrontendJsonP\"] = window[\"studiofrontendJsonP\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([436,0]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n"],"sourceRoot":""}
|
package/package.json
CHANGED
|
@@ -5,42 +5,94 @@
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.drop-zone-compact {
|
|
8
|
-
border:
|
|
9
|
-
|
|
8
|
+
border: 1px dashed #e0e0e0;
|
|
9
|
+
border-radius: 8px;
|
|
10
|
+
padding: 20px;
|
|
11
|
+
background-color: #fff;
|
|
12
|
+
transition: all 0.3s ease;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
|
|
15
|
+
&:hover {
|
|
16
|
+
border-color: #4a90d9;
|
|
17
|
+
background-color: #fff;
|
|
18
|
+
}
|
|
10
19
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
margin-
|
|
14
|
-
|
|
20
|
+
[data-identifier="asset-drop-zone-icon"] {
|
|
21
|
+
color: #9e9e9e;
|
|
22
|
+
margin-bottom: 8px;
|
|
23
|
+
|
|
24
|
+
span {
|
|
25
|
+
font-size: 32px;
|
|
26
|
+
}
|
|
15
27
|
}
|
|
16
28
|
|
|
17
29
|
h2 {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.label-or {
|
|
34
|
+
display: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
button.btn {
|
|
38
|
+
display: none;
|
|
22
39
|
}
|
|
23
40
|
|
|
24
41
|
p {
|
|
25
|
-
font-size:
|
|
26
|
-
margin-bottom:
|
|
42
|
+
font-size: 12px;
|
|
43
|
+
margin-bottom: 0;
|
|
27
44
|
}
|
|
28
45
|
}
|
|
29
46
|
|
|
30
47
|
.drop-zone {
|
|
31
48
|
@extend .drop-zone-compact;
|
|
49
|
+
}
|
|
32
50
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
51
|
+
.drop-active {
|
|
52
|
+
outline: none;
|
|
53
|
+
border: 2px dashed #4a90d9;
|
|
54
|
+
background-color: rgba(74, 144, 217, 0.05);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.upload-prompt {
|
|
58
|
+
text-align: center;
|
|
59
|
+
margin-bottom: 4px;
|
|
60
|
+
font-size: 16px;
|
|
61
|
+
font-weight: 600;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.upload-link {
|
|
65
|
+
background: none;
|
|
66
|
+
border: none;
|
|
67
|
+
color: #4a90d9;
|
|
68
|
+
font-size: 16px;
|
|
69
|
+
font-weight: 600;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
padding: 0;
|
|
72
|
+
text-decoration: none;
|
|
73
|
+
|
|
74
|
+
&:hover {
|
|
75
|
+
color: #4a90d9;
|
|
76
|
+
text-decoration: none;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&:focus {
|
|
80
|
+
outline: 2px solid rgba(74, 144, 217, 0.5);
|
|
81
|
+
outline-offset: 2px;
|
|
38
82
|
}
|
|
39
83
|
}
|
|
40
84
|
|
|
41
|
-
.
|
|
42
|
-
|
|
43
|
-
|
|
85
|
+
.upload-text {
|
|
86
|
+
color: #666;
|
|
87
|
+
font-size: 16px;
|
|
88
|
+
font-weight: 400;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.size-limit {
|
|
92
|
+
text-align: center;
|
|
93
|
+
color: #999;
|
|
94
|
+
font-size: 14px;
|
|
95
|
+
margin-bottom: 0;
|
|
44
96
|
}
|
|
45
97
|
|
|
46
98
|
.supported-files-types {
|
|
@@ -54,3 +106,19 @@
|
|
|
54
106
|
font-size: 12px !important;
|
|
55
107
|
font-weight: 400;
|
|
56
108
|
}
|
|
109
|
+
|
|
110
|
+
// Collapsed zone in image modal
|
|
111
|
+
.collapsedZoneStyle {
|
|
112
|
+
.drop-zone-compact,
|
|
113
|
+
.drop-zone {
|
|
114
|
+
padding: 20px 16px;
|
|
115
|
+
|
|
116
|
+
[data-identifier="asset-drop-zone-icon"] {
|
|
117
|
+
margin-bottom: 8px;
|
|
118
|
+
|
|
119
|
+
span {
|
|
120
|
+
font-size: 28px;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -8,12 +8,12 @@ const messages = defineMessages({
|
|
|
8
8
|
},
|
|
9
9
|
assetsDropZoneBrowseLabel: {
|
|
10
10
|
id: 'assetsDropZoneBrowseLabel',
|
|
11
|
-
defaultMessage: '
|
|
11
|
+
defaultMessage: 'Click to upload',
|
|
12
12
|
description: 'Upload label for the "Browse" button',
|
|
13
13
|
},
|
|
14
14
|
assetsDropZoneHeader: {
|
|
15
15
|
id: 'assetsDropZoneHeader',
|
|
16
|
-
defaultMessage: '
|
|
16
|
+
defaultMessage: 'or drag and drop',
|
|
17
17
|
description: 'Upload with dropzone section heading',
|
|
18
18
|
},
|
|
19
19
|
assetsDropZoneMaxFileSizeLabel: {
|
|
@@ -37,7 +37,9 @@ export default class AssetsDropZone extends React.Component {
|
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
setUploadButtonRef = (ref) => {
|
|
40
|
-
this.props.buttonRef
|
|
40
|
+
if (this.props.buttonRef) {
|
|
41
|
+
this.props.buttonRef(ref);
|
|
42
|
+
}
|
|
41
43
|
};
|
|
42
44
|
|
|
43
45
|
handleClick = () => {
|
|
@@ -66,30 +68,29 @@ export default class AssetsDropZone extends React.Component {
|
|
|
66
68
|
<div className={styles['center-text']} data-identifier="asset-drop-zone-icon">
|
|
67
69
|
<span
|
|
68
70
|
aria-hidden
|
|
69
|
-
className={'
|
|
71
|
+
className={'far fa-images '+classNames(
|
|
70
72
|
styles['center-text'],
|
|
71
|
-
//FontAwesomeStyles.fa,
|
|
72
|
-
//FontAwesomeStyles['fa-cloud-upload'],
|
|
73
73
|
FontAwesomeStyles['fa-3x'])}
|
|
74
74
|
/>
|
|
75
75
|
</div>
|
|
76
|
-
<
|
|
77
|
-
{ displayText => (
|
|
78
|
-
<h2 data-identifier="asset-drop-zone-header">{displayText}</h2>
|
|
79
|
-
)}
|
|
80
|
-
</WrappedMessage>
|
|
81
|
-
<span className="label-or">or</span>
|
|
82
|
-
<div className={styles['center-text']}>
|
|
76
|
+
<div className={styles['upload-prompt']}>
|
|
83
77
|
<WrappedMessage message={messages.assetsDropZoneBrowseLabel} >
|
|
84
78
|
{ displayText => (
|
|
85
|
-
<
|
|
79
|
+
<button
|
|
80
|
+
type="button"
|
|
86
81
|
aria-describedby="asset-drop-zone-max-file-size-label"
|
|
87
|
-
className={['
|
|
82
|
+
className={styles['upload-link']}
|
|
88
83
|
data-identifier="asset-drop-zone-browse-button"
|
|
89
|
-
label={displayText}
|
|
90
84
|
onClick={this.handleClick}
|
|
91
|
-
|
|
92
|
-
|
|
85
|
+
ref={this.setUploadButtonRef}
|
|
86
|
+
>
|
|
87
|
+
{displayText}
|
|
88
|
+
</button>
|
|
89
|
+
)}
|
|
90
|
+
</WrappedMessage>
|
|
91
|
+
<WrappedMessage message={messages.assetsDropZoneHeader}>
|
|
92
|
+
{ displayText => (
|
|
93
|
+
<span className={styles['upload-text']} data-identifier="asset-drop-zone-header"> {displayText}</span>
|
|
93
94
|
)}
|
|
94
95
|
</WrappedMessage>
|
|
95
96
|
</div>
|
|
@@ -102,7 +103,7 @@ export default class AssetsDropZone extends React.Component {
|
|
|
102
103
|
{ displayText => (
|
|
103
104
|
<p
|
|
104
105
|
aria-hidden
|
|
105
|
-
className={styles['
|
|
106
|
+
className={styles['size-limit']}
|
|
106
107
|
data-identifier="asset-drop-zone-max-file-size-label"
|
|
107
108
|
id="asset-drop-zone-max-file-size-label"
|
|
108
109
|
>
|
|
@@ -1,6 +1,138 @@
|
|
|
1
1
|
@import 'edx-bootstrap';
|
|
2
2
|
@import 'utils/scss/focus';
|
|
3
3
|
|
|
4
|
+
// Horizontal scrollable grid
|
|
5
|
+
.assets-grid {
|
|
6
|
+
display: flex;
|
|
7
|
+
gap: 10px;
|
|
8
|
+
overflow-x: auto;
|
|
9
|
+
padding: 8px 0;
|
|
10
|
+
margin-bottom: 10px;
|
|
11
|
+
|
|
12
|
+
&:focus {
|
|
13
|
+
@include focus();
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Custom scrollbar
|
|
17
|
+
&::-webkit-scrollbar {
|
|
18
|
+
height: 6px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&::-webkit-scrollbar-track {
|
|
22
|
+
background: #f0f0f0;
|
|
23
|
+
border-radius: 3px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&::-webkit-scrollbar-thumb {
|
|
27
|
+
background: #c0c0c0;
|
|
28
|
+
border-radius: 3px;
|
|
29
|
+
|
|
30
|
+
&:hover {
|
|
31
|
+
background: #a0a0a0;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.asset-grid-item {
|
|
37
|
+
flex-shrink: 0;
|
|
38
|
+
width: 100px;
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
transition: all 0.2s ease;
|
|
41
|
+
|
|
42
|
+
&:hover {
|
|
43
|
+
.asset-preview {
|
|
44
|
+
border-color: #c0c0c0;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.selected {
|
|
49
|
+
.asset-preview {
|
|
50
|
+
border-color: #4a90d9;
|
|
51
|
+
border-width: 2px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.asset-name {
|
|
55
|
+
color: #4a90d9;
|
|
56
|
+
background-color: rgba(74, 144, 217, 0.1);
|
|
57
|
+
padding: 2px 4px;
|
|
58
|
+
border-radius: 4px;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.asset-preview {
|
|
64
|
+
width: 100px;
|
|
65
|
+
height: 100px;
|
|
66
|
+
border: 1px solid #e0e0e0;
|
|
67
|
+
border-radius: 8px;
|
|
68
|
+
background-color: #fff;
|
|
69
|
+
display: flex;
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
align-items: center;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
position: relative;
|
|
74
|
+
margin-bottom: 8px;
|
|
75
|
+
transition: border-color 0.2s ease;
|
|
76
|
+
overflow: hidden;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.file-type-badge {
|
|
80
|
+
position: absolute;
|
|
81
|
+
top: 6px;
|
|
82
|
+
left: 6px;
|
|
83
|
+
background-color: #e8f4fd;
|
|
84
|
+
color: #1976d2;
|
|
85
|
+
font-size: 10px;
|
|
86
|
+
font-weight: 700;
|
|
87
|
+
padding: 2px 6px;
|
|
88
|
+
border-radius: 4px;
|
|
89
|
+
text-transform: lowercase;
|
|
90
|
+
z-index: 1;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.asset-thumbnail {
|
|
94
|
+
width: 100%;
|
|
95
|
+
height: 100%;
|
|
96
|
+
object-fit: cover;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.asset-icon {
|
|
100
|
+
font-size: 36px;
|
|
101
|
+
color: #9e9e9e;
|
|
102
|
+
|
|
103
|
+
i {
|
|
104
|
+
display: block;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.asset-info {
|
|
109
|
+
text-align: center;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.asset-name {
|
|
113
|
+
font-size: 12px;
|
|
114
|
+
font-weight: 500;
|
|
115
|
+
color: #333;
|
|
116
|
+
white-space: nowrap;
|
|
117
|
+
overflow: hidden;
|
|
118
|
+
text-overflow: ellipsis;
|
|
119
|
+
max-width: 100px;
|
|
120
|
+
margin-bottom: 2px;
|
|
121
|
+
|
|
122
|
+
&.selected {
|
|
123
|
+
color: #4a90d9;
|
|
124
|
+
background-color: rgba(74, 144, 217, 0.1);
|
|
125
|
+
padding: 2px 4px;
|
|
126
|
+
border-radius: 4px;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.asset-size {
|
|
131
|
+
font-size: 11px;
|
|
132
|
+
color: #666;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// Old styles
|
|
4
136
|
.assets-list-image-preview-container {
|
|
5
137
|
background-color: theme-color('light');
|
|
6
138
|
color: theme-color('dark');
|