@crystaldesign/media-upload 26.7.0-beta.7 → 26.7.0-beta.9
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/build/cjs/index.js +143 -50
- package/build/esm/index.js +142 -51
- package/build/types/media-upload/src/DivaFile.d.ts +1 -2
- package/build/types/media-upload/src/DivaFile.d.ts.map +1 -1
- package/build/types/media-upload/src/DropzoneArea.d.ts +17 -0
- package/build/types/media-upload/src/DropzoneArea.d.ts.map +1 -0
- package/build/types/media-upload/src/index.d.ts.map +1 -1
- package/build/types/media-upload/src/types.d.ts +4 -1
- package/build/types/media-upload/src/types.d.ts.map +1 -1
- package/build/umd/145.media-upload.umd.min.js +1 -1
- package/build/umd/338.media-upload.umd.min.js +2 -0
- package/build/umd/338.media-upload.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/402.media-upload.umd.min.js +1 -1
- package/build/umd/472.media-upload.umd.min.js +1 -1
- package/build/umd/536.media-upload.umd.min.js +1 -1
- package/build/umd/588.media-upload.umd.min.js +1 -1
- package/build/umd/{344.media-upload.umd.min.js → 995.media-upload.umd.min.js} +2 -2
- package/build/umd/995.media-upload.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/media-upload.umd.min.js +32 -32
- package/build/umd/media-upload.umd.min.js.LICENSE.txt +0 -18
- package/build/umd/report.html +1 -1
- package/package.json +7 -8
- package/build/umd/344.media-upload.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/842.media-upload.umd.min.js +0 -2
- package/build/umd/842.media-upload.umd.min.js.LICENSE.txt +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/media-upload",
|
|
3
|
-
"version": "26.7.0-beta.
|
|
3
|
+
"version": "26.7.0-beta.9",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"main": "build/cjs/index.js",
|
|
6
6
|
"devDependencies": {
|
|
@@ -10,12 +10,11 @@
|
|
|
10
10
|
"react-dom": "18.3.1"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@emotion/react": "^11.
|
|
14
|
-
"@emotion/styled": "^11.
|
|
15
|
-
"@mui/icons-material": "
|
|
16
|
-
"@mui/material": "
|
|
17
|
-
"
|
|
18
|
-
"react-mui-dropzone": "4.0.7"
|
|
13
|
+
"@emotion/react": "^11.13.3",
|
|
14
|
+
"@emotion/styled": "^11.13.0",
|
|
15
|
+
"@mui/icons-material": "7.3.11",
|
|
16
|
+
"@mui/material": "7.3.11",
|
|
17
|
+
"react-dropzone": "^10.2.2"
|
|
19
18
|
},
|
|
20
19
|
"peerDependencies": {
|
|
21
20
|
"react": "^18.3.1",
|
|
@@ -23,5 +22,5 @@
|
|
|
23
22
|
},
|
|
24
23
|
"module": "build/esm/index.js",
|
|
25
24
|
"types": "./build/types/media-upload/src/index.d.ts",
|
|
26
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "6a278f2170d0621be370b86406e33bfbf458bd5c"
|
|
27
26
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! filename:344 */
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 842.media-upload.umd.min.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkCrystaldesignMediaUpload=self.webpackChunkCrystaldesignMediaUpload||[]).push([[842],{1842:(e,n,t)=>{t.r(n),t.d(n,{default:()=>ModalsWrapper});var o=t(7363),i=t(9420),r=t(8814),a=t(3335),l=t(5310),s=t(9400),d=t(4415),c=t(7726),u=t(9916),m=t(4039),p=t(7843),h=t(2893),x=t(217),v=t(4685),g=t(9503);function getDialogContentTextUtilityClass(e){return(0,g.ZP)("MuiDialogContentText",e)}(0,v.Z)("MuiDialogContentText",["root"]);var f=t(7514);const y=(0,p.ZP)(x.Z,{shouldForwardProp:e=>(0,m.Z)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,n)=>n.root})({}),b=o.forwardRef((function DialogContentText(e,n){const t=(0,h.i)({props:e,name:"MuiDialogContentText"}),{children:o,className:i,...r}=t,a=(e=>{const{classes:n}=e,t=(0,u.Z)({root:["root"]},getDialogContentTextUtilityClass,n);return{...n,...t}})(r);return(0,f.jsx)(y,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:r,className:(0,c.Z)(a.root,i),...t,classes:a})}));var j=t(9763),k=t(3379),Z=t.n(k),w=t(7795),C=t.n(w),P=t(569),S=t.n(P),D=t(3565),I=t.n(D),M=t(9216),E=t.n(M),F=t(4589),T=t.n(F),N=t(5297),R={};R.styleTagTransform=T(),R.setAttributes=I(),R.insert=S().bind(null,"head"),R.domAPI=C(),R.insertStyleElement=E();Z()(N.Z,R);N.Z&&N.Z.locals&&N.Z.locals;var z=t(789),A=t(4988),W=t(5054),U={};U.styleTagTransform=T(),U.setAttributes=I(),U.insert=S().bind(null,"head"),U.domAPI=C(),U.insertStyleElement=E();Z()(W.ZP,U);W.ZP&&W.ZP.locals&&W.ZP.locals;const _=(0,i.Pi)((function Progress(e){var n=e.children,t=e.progress,i=(0,o.useState)(),r=(0,A.Z)(i,2),a=r[0],l=r[1];return(0,o.useEffect)((function(){l(t)}),[t]),(0,f.jsxs)("div",{className:W.YS,children:[!!n&&n,(0,f.jsx)("div",{className:W.l9,children:(0,f.jsx)("div",{className:W.YJ,style:{width:100*(null!=a?a:0)+"%"},children:(0,f.jsx)("div",{className:W.zn})})})]})}));var B=t(3697),O=t(1682),H=t(8623);const Y=(0,i.Pi)((function Modal(){var e,n,t=(0,r.KH)().contentStore,i=(0,z.$G)().t,c=function onAccept(e){var n,o=t.modal;t.closeModal(),null==o||null===(n=o.callback)||void 0===n||n.call(o,!o.content||e)},u=function onReject(){var e,n=t.modal;t.closeModal(),null==n||null===(e=n.callback)||void 0===e||e.call(n,!1)};(0,o.useEffect)((function(){return document.addEventListener("keydown",m,!1),function(){document.removeEventListener("keydown",m,!1)}}),[]);var m=(0,o.useCallback)((function(e){if(t.modal)if("Enter"!==e.key||t.modal.doNotAcceptOnEnter)"ESC"!==e.key&&"Escape"!=e.key||(u(),e.preventDefault());else{var n=document.getElementById("diva-modal-form");if(!n)return;c(new FormData(n)),e.preventDefault()}}),[]);if(!t.modal)return(0,f.jsx)(f.Fragment,{});var p=(0,H.ZN)(t.modal),h="string"==typeof p.text?i(p.text):p.text,x=(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(d.Z,{style:p.maxWidth?{maxWidth:p.maxWidth}:void 0,children:p.iFrame?(0,f.jsx)(IFrame,{link:p.iFrame}):"string"==typeof h&&null==p.content?(0,f.jsx)(b,{component:"div",dangerouslySetInnerHTML:{__html:function tryDecodeURIComponent(e){try{return decodeURIComponent(e)}catch(n){return e}}(h)}}):(0,f.jsxs)(b,{component:"div",children:[h,p.content&&t.modal.content]})}),(p.reject||p.accept)&&(0,f.jsxs)(s.Z,{children:[p.reject&&(0,f.jsx)(a.Z,{color:"primary",onClick:u,children:"string"==typeof p.reject?i(p.reject):i("modal.reject")}),p.accept&&(0,f.jsx)(a.Z,{color:"primary",type:"submit",id:"diva-dialog-submitbtn",children:"string"==typeof p.accept?i(p.accept):i("modal.accept")})]}),!!(p.image||void 0!==p.progress||null!==(e=p.actions)&&void 0!==e&&e.length)&&(0,f.jsxs)("div",{style:{margin:10},children:[p.image&&(0,f.jsx)("img",{src:p.image,style:{maxWidth:480}}),void 0!==p.progress&&(0,f.jsx)(_,{progress:p.progress}),null===(n=p.actions)||void 0===n?void 0:n.map((function(e){var n;return(0,f.jsx)(a.Z,{fullWidth:!0,style:{marginBottom:10},variant:null!==(n=e.variant)&&void 0!==n?n:"contained",color:"primary",onClick:function onClick(){return function onSelect(e,n){var o,i=t.modal;0!=n&&t.closeModal(),null==i||null===(o=i.callback)||void 0===o||o.call(i,e)}(e.id,e.closeable)},children:i(e.text)})}))]})]}),v=!0===p.fullscreen||"mobile"==p.fullscreen&&t.containerDimensions.isMobile;return(0,f.jsx)("div",{className:N.I,id:"diva-dialog",children:(0,f.jsxs)(l.Z,{open:!0,disablePortal:!0,hideBackdrop:!0,disableEnforceFocus:!0,style:{position:"absolute",zIndex:0},maxWidth:"lg",fullScreen:v,PaperProps:{style:{width:p.width,height:p.height}},children:[(0,f.jsx)(j.Z,{style:p.rejectByIcon?{paddingRight:56}:void 0,children:"string"==typeof p.title?i(p.title):p.title}),p.rejectByIcon&&(0,f.jsx)(B.Z,{onClick:u,style:{position:"absolute",right:8,top:8,zIndex:1000001},size:"large",children:(0,f.jsx)(O.Z,{})}),p.dontRenderForm&&x,!p.dontRenderForm&&(0,f.jsx)("form",{id:"diva-modal-form",autoComplete:"off",onSubmit:function onSubmit(e){e.preventDefault(),c(new FormData(e.target))},children:x})]})})}));function IFrame(e){var n=e.link;return(0,f.jsx)("iframe",{style:{border:0,width:"100%",height:"99%"},src:n})}function ModalsWrapper(){return(0,f.jsx)(Y,{})}},5297:(e,n,t)=>{t.d(n,{I:()=>l,Z:()=>s});var o=t(8081),i=t.n(o),r=t(3645),a=t.n(r)()(i());a.push([e.id,".index-module--AtOcs {\n height: 100%;\n width: 100%;\n display: flex;\n background-color: rgba(255, 255, 255, 0.6);\n z-index: 14500;\n justify-content: center;\n align-items: center;\n position: absolute;\n}\n",""]);var l="index-module--AtOcs";const s=a},5054:(e,n,t)=>{t.d(n,{YJ:()=>d,YS:()=>l,ZP:()=>u,l9:()=>s,zn:()=>c});var o=t(8081),i=t.n(o),r=t(3645),a=t.n(r)()(i());a.push([e.id,".index-module--Pww9z {\n display: flex;\n width: 100%;\n}\n\n.index-module--thPSh {\n height: 10px;\n position: relative;\n border-radius: 5px;\n width: 100%;\n}\n\n@keyframes index-module--_9_PO {\n from {\n background-position-x: 0;\n }\n to {\n background-position-x: 113px;\n }\n}\n\n.index-module--HhvXv {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n transition: width 0.4s ease-out;\n overflow: hidden;\n border-radius: 5px;\n}\n.index-module--f7imw {\n border-radius: 5px;\n height: 100%;\n background-color: var(--diva-theme-palette-primary-main);\n background-image: repeating-linear-gradient(\n 45deg,\n transparent,\n transparent 10px,\n var(--diva-theme-palette-secondary-dark) 10px,\n var(--diva-theme-palette-secondary-dark) 20px\n );\n animation: index-module--_9_PO 4s linear infinite;\n will-change: background-position;\n}\n",""]);var l="index-module--Pww9z",s="index-module--thPSh",d="index-module--HhvXv",c="index-module--f7imw";const u=a}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! filename:842 */
|