@crystaldesign/media-upload 24.11.0 → 24.11.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/build/umd/{84.media-upload.umd.min.js → 152.media-upload.umd.min.js} +2 -2
- package/build/umd/152.media-upload.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/{455.media-upload.umd.min.js → 153.media-upload.umd.min.js} +2 -2
- package/build/umd/153.media-upload.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/208.media-upload.umd.min.js +2 -0
- package/build/umd/208.media-upload.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/430.media-upload.umd.min.js +2 -0
- package/build/umd/430.media-upload.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/599.media-upload.umd.min.js +408 -0
- package/build/umd/{781.media-upload.umd.min.js.LICENSE.txt → 599.media-upload.umd.min.js.LICENSE.txt} +1 -1
- package/build/umd/68.media-upload.umd.min.js +2 -0
- package/build/umd/{692.media-upload.umd.min.js.LICENSE.txt → 68.media-upload.umd.min.js.LICENSE.txt} +1 -1
- package/build/umd/713.media-upload.umd.min.js +2 -0
- package/build/umd/713.media-upload.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/717.media-upload.umd.min.js +2 -0
- package/build/umd/717.media-upload.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/851.media-upload.umd.min.js +2 -0
- package/build/umd/851.media-upload.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/902.media-upload.umd.min.js +2 -0
- package/build/umd/902.media-upload.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/928.media-upload.umd.min.js +2 -0
- package/build/umd/928.media-upload.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/media-upload.umd.min.js +1 -1
- package/build/umd/report.html +1 -1
- package/package.json +2 -2
- package/build/umd/311.media-upload.umd.min.js +0 -2
- package/build/umd/311.media-upload.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/319.media-upload.umd.min.js +0 -2
- package/build/umd/319.media-upload.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/40.media-upload.umd.min.js +0 -2
- package/build/umd/40.media-upload.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/455.media-upload.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/478.media-upload.umd.min.js +0 -2
- package/build/umd/478.media-upload.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/546.media-upload.umd.min.js +0 -2
- package/build/umd/546.media-upload.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/692.media-upload.umd.min.js +0 -2
- package/build/umd/781.media-upload.umd.min.js +0 -408
- package/build/umd/82.media-upload.umd.min.js +0 -2
- package/build/umd/82.media-upload.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/84.media-upload.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/887.media-upload.umd.min.js +0 -2
- package/build/umd/887.media-upload.umd.min.js.LICENSE.txt +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 82.media-upload.umd.min.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkCrystaldesignMediaUpload=self.webpackChunkCrystaldesignMediaUpload||[]).push([[82],{7082:(e,t,n)=>{n.r(t),n.d(t,{default:()=>S});var a=n(2919),d=n.n(a),i=n(970),s=n(2062),l=(n(1594),n(8882)),c=n(4660),r=n(5835),m=n.n(r),o=n(9120),u=n.n(o),x=n(1148),p=n.n(x),b=n(3035),g=n.n(b),y=n(4959),I=n.n(y),C=n(5004),M=n.n(C),h=n(9506),Z={};Z.styleTagTransform=M(),Z.setAttributes=g(),Z.insert=p().bind(null,"head"),Z.domAPI=u(),Z.insertStyleElement=I();m()(h.Ay,Z);h.Ay&&h.Ay.locals&&h.Ay.locals;var v=n(9719),A=n(2246);const S=(0,i.PA)((function CheckpointFooter(e){var t=e.footerFixed,n=(0,s.J)().pdpState,a=(0,l.Bd)().t,i=c.xj[n.getCurrentState];return(0,A.jsxs)("div",{className:d()(v.bL,t?v.Zw:v.yG),children:[!!i.denyStatus&&(0,A.jsx)("div",{onClick:n.denyCheckpoint,className:d()(v.x6,h.A8)}),(0,A.jsx)("div",{style:{cursor:"default"},className:d()(v.x6,v.YD),children:(i.denyStatus?a("product.state."+i.denyStatus)+" <-- ":"")+a("product.state."+n.getCurrentState)+(i.acceptStatus?" --\x3e "+a("product.state."+i.acceptStatus):"")}),!!i.acceptStatus&&(0,A.jsx)("div",{onClick:function onClick(){return n.acceptCheckpoint()},className:d()(v.x6,h.MX)})]})}))},9506:(e,t,n)=>{n.d(t,{A8:()=>b,Ay:()=>g,MX:()=>p});var a=n(8634),d=n.n(a),i=n(2083),s=n.n(i),l=n(1946),c=n.n(l),r=new URL(n(446),n.b),m=new URL(n(9041),n.b),o=s()(d()),u=c()(r),x=c()(m);o.push([e.id,`.index-module--qqWZb,\n.index-module--s_hgC {\n min-width: 60px;\n}\n\n.index-module--s_hgC {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.index-module--s_hgC {\n background: center / 33% no-repeat var(--diva-theme-palette-primary-main) url(${u});\n}\n\n.index-module--qqWZb {\n background: center / 43% no-repeat var(--diva-theme-palette-primary-main) url(${x});\n}\n`,""]);var p="index-module--qqWZb",b="index-module--s_hgC";const g=o},446:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMUw5IDlNOSAxTDEgOSIgc3Ryb2tlPSIjZmZmIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPC9zdmc+Cgo="},9041:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xLjQ0NTMxIDMuNDkxMjZMNS42MjUgOC4wOTM3NUwxMC43NSAwLjk1MzYxMyIgc3Ryb2tlPSIjZmZmIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg=="}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! filename:82 */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! filename:84 */
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 887.media-upload.umd.min.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkCrystaldesignMediaUpload=self.webpackChunkCrystaldesignMediaUpload||[]).push([[887],{4268:(e,n,t)=>{t.r(n),t.d(n,{default:()=>ModalsWrapper});var o=t(1594),a=t(970),l=t(2108),i=t(696),r=t(4498),d=t(8126),s=t(1742),c=t(250),m=(t(3886),t(6224)),u=t(3494),p=o.forwardRef((function DialogContentText(e,n){return o.createElement(u.A,(0,c.A)({component:"p",variant:"body1",color:"textSecondary",ref:n},e))}));const x=(0,m.A)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(p);var f=t(5214),h=t(5835),v=t.n(h),g=t(9120),y=t.n(g),b=t(1148),k=t.n(b),j=t(3035),A=t.n(j),w=t(4959),E=t.n(w),C=t(5004),F=t.n(C),I=t(5247),M={};M.styleTagTransform=F(),M.setAttributes=A(),M.insert=k().bind(null,"head"),M.domAPI=y(),M.insertStyleElement=E();v()(I.A,M);I.A&&I.A.locals&&I.A.locals;var S=t(9681),N=t(8742),P=t(9433),U={};U.styleTagTransform=F(),U.setAttributes=A(),U.insert=k().bind(null,"head"),U.domAPI=y(),U.insertStyleElement=E();v()(P.Ay,U);P.Ay&&P.Ay.locals&&P.Ay.locals;var W=t(2246);const B=(0,a.PA)((function Progress(e){var n=e.children,t=e.progress,a=(0,o.useState)(),l=(0,N.A)(a,2),i=l[0],r=l[1];return(0,o.useEffect)((function(){r(t)}),[t]),(0,W.jsxs)("div",{className:P.iE,children:[!!n&&n,(0,W.jsx)("div",{className:P.Ux,children:(0,W.jsx)("div",{className:P.JW,style:{width:100*(null!=i?i:0)+"%"},children:(0,W.jsx)("div",{className:P.si})})})]})}));var D=t(9874),T=t(9824);const L=(0,a.PA)((function Modal(){var e,n=(0,l.IB)().contentStore,t=(0,S.B)().t,a=function onAccept(e){var t,o=n.modal;n.closeModal(),null==o||null===(t=o.callback)||void 0===t||t.call(o,!o.content||e)},c=function onReject(){var e,t=n.modal;n.closeModal(),null==t||null===(e=t.callback)||void 0===e||e.call(t,!1)},m=(0,o.useCallback)((function(e){n.modal&&"Escape"===e.key&&c()}),[]);(0,o.useEffect)((function(){return document.addEventListener("keydown",m,!1),function(){document.removeEventListener("keydown",m,!1)}}),[]),(0,o.useEffect)((function(){return document.addEventListener("keydown",u,!1),function(){document.removeEventListener("keydown",u,!1)}}),[]);var u=(0,o.useCallback)((function(e){if(n.modal)if("Enter"!==e.key||n.modal.doNotAcceptOnEnter)"ESC"!==e.key&&"Escape"!=e.key||(c(),e.preventDefault());else{var t=document.getElementById("diva-modal-form");if(!t)return;a(new FormData(t)),e.preventDefault()}}),[]);if(!n.modal)return(0,W.jsx)(W.Fragment,{});var p=(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(s.A,{style:n.modal.maxWidth?{maxWidth:n.modal.maxWidth}:void 0,children:n.modal.iFrame?(0,W.jsx)(IFrame,{link:n.modal.iFrame}):"string"==typeof n.modal.text&&null==n.modal.content?(0,W.jsx)(x,{component:"div",dangerouslySetInnerHTML:{__html:function tryDecodeURIComponent(e){try{return decodeURIComponent(e)}catch(n){return e}}(n.modal.text)}}):(0,W.jsxs)(x,{component:"div",children:[n.modal.text,n.modal.content&&n.modal.content]})}),(n.modal.reject||n.modal.accept)&&(0,W.jsxs)(d.A,{children:[n.modal.reject&&(0,W.jsx)(i.A,{color:"primary",onClick:c,children:"string"==typeof n.modal.reject?t(n.modal.reject):t("modal.reject")}),n.modal.accept&&(0,W.jsx)(i.A,{color:"primary",type:"submit",id:"diva-dialog-submitbtn",children:"string"==typeof n.modal.accept?t(n.modal.accept):t("modal.accept")})]}),(0,W.jsxs)("div",{style:{margin:10},children:[n.modal.image&&(0,W.jsx)("img",{src:n.modal.image,style:{maxWidth:480}}),void 0!==n.modal.progress&&(0,W.jsx)(B,{progress:n.modal.progress}),null===(e=n.modal.actions)||void 0===e?void 0:e.map((function(e){var o;return(0,W.jsx)(i.A,{fullWidth:!0,style:{marginBottom:10},variant:null!==(o=e.variant)&&void 0!==o?o:"contained",color:"primary",onClick:function onClick(){return function onSelect(e,t){var o,a=n.modal;0!=t&&n.closeModal(),null==a||null===(o=a.callback)||void 0===o||o.call(a,e)}(e.id,e.closeable)},children:t(e.text)})}))]})]}),h=!0===n.modal.fullscreen||"mobile"==n.modal.fullscreen&&n.containerDimensions.isMobile;return(0,W.jsx)("div",{className:I.L,id:"diva-dialog",children:(0,W.jsxs)(r.A,{open:!0,disablePortal:!0,hideBackdrop:!0,disableEnforceFocus:!0,style:{position:"absolute",zIndex:0},maxWidth:"lg",fullScreen:h,PaperProps:{style:{width:n.modal.width,height:n.modal.height}},children:[(0,W.jsx)(f.A,{children:n.modal.title}),n.modal.rejectByIcon&&(0,W.jsx)(D.A,{onClick:c,style:{position:"absolute",right:8,top:8,zIndex:1000001},children:(0,W.jsx)(T.A,{})}),n.modal.dontRenderForm&&p,!n.modal.dontRenderForm&&(0,W.jsx)("form",{id:"diva-modal-form",autoComplete:"off",onSubmit:function onSubmit(e){e.preventDefault(),a(new FormData(e.target))},children:p})]})})}));function IFrame(e){var n=e.link;return(0,W.jsx)("iframe",{style:{border:0,width:"100%",height:"99%"},src:n})}function ModalsWrapper(){return(0,W.jsx)(L,{})}},5247:(e,n,t)=>{t.d(n,{A:()=>d,L:()=>r});var o=t(8634),a=t.n(o),l=t(2083),i=t.n(l)()(a());i.push([e.id,".index-module--FNUcb {\n height: 100%;\n width: 100%;\n display: flex;\n background-color: rgba(255, 255, 255, 0.6);\n z-index: 1001;\n justify-content: center;\n align-items: center;\n position: absolute;\n}\n",""]);var r="index-module--FNUcb";const d=i},9433:(e,n,t)=>{t.d(n,{Ay:()=>m,JW:()=>s,Ux:()=>d,iE:()=>r,si:()=>c});var o=t(8634),a=t.n(o),l=t(2083),i=t.n(l)()(a());i.push([e.id,".index-module--g6NeA {\n display: flex;\n width: 100%;\n}\n\n.index-module--kevPi {\n height: 10px;\n position: relative;\n border-radius: 5px;\n width: 100%;\n}\n\n@keyframes index-module--ButXs {\n from {\n background-position-x: 0;\n }\n to {\n background-position-x: 113px;\n }\n}\n\n.index-module--a3VsQ {\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--fTtUx {\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--ButXs 4s linear infinite;\n will-change: background-position;\n}\n",""]);var r="index-module--g6NeA",d="index-module--kevPi",s="index-module--a3VsQ",c="index-module--fTtUx";const m=i}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! filename:887 */
|