spree_admin 5.0.3 → 5.0.4
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.
- checksums.yaml +4 -4
- data/app/controllers/spree/admin/dashboard_controller.rb +11 -12
- data/app/controllers/spree/admin/webhooks_subscribers_controller.rb +32 -13
- data/app/helpers/spree/admin/base_helper.rb +1 -1
- data/app/helpers/spree/admin/navigation_helper.rb +1 -1
- data/app/helpers/spree/admin/orders_helper.rb +3 -1
- data/app/javascript/spree/admin/application.js +0 -2
- data/app/javascript/spree/admin/controllers/asset_uploader_controller.js +3 -2
- data/app/javascript/spree/admin/controllers/variants_form_controller.js +3 -2
- data/app/javascript/spree/admin/helpers/trix/video_embed.js +2 -2
- data/app/views/spree/admin/dashboard/_top_products.html.erb +1 -1
- data/app/views/spree/admin/orders/_filters.html.erb +11 -1
- data/app/views/spree/admin/orders/_summary.html.erb +1 -1
- data/app/views/spree/admin/page_blocks/forms/_image.html.erb +9 -0
- data/app/views/spree/admin/page_builder/_sidebar_block.html.erb +10 -9
- data/app/views/spree/admin/page_builder/_sidebar_sections_toolbar.html.erb +152 -39
- data/app/views/spree/admin/payment_methods/_form.html.erb +1 -1
- data/app/views/spree/admin/products/form/_variants.html.erb +1 -0
- data/app/views/spree/admin/shared/_head.html.erb +6 -1
- data/app/views/spree/admin/shared/_tax_nav.html.erb +1 -0
- data/app/views/spree/admin/shared/sidebar/_store_nav.html.erb +3 -2
- data/app/views/spree/admin/shared/sidebar/_storefront_nav.html.erb +2 -0
- data/app/views/spree/admin/stores/form/_basic.html.erb +1 -1
- data/app/views/spree/admin/users/_form.html.erb +1 -1
- data/app/views/spree/admin/users/index.html.erb +3 -3
- data/app/views/spree/admin/variants/form/_media.html.erb +1 -0
- data/app/views/spree/admin/webhooks_subscribers/_form.html.erb +37 -19
- data/app/views/spree/admin/webhooks_subscribers/_webhooks_subscriber.html.erb +12 -6
- data/app/views/spree/admin/webhooks_subscribers/edit.html.erb +2 -2
- data/app/views/spree/admin/webhooks_subscribers/show.html.erb +58 -47
- data/config/importmap.rb +2 -2
- data/lib/spree/admin/engine.rb +9 -1
- data/vendor/javascript/bootstrap--dist--js--bootstrap.bundle.min.js.js +4 -4
- data/vendor/javascript/dompurify.js +24 -24
- metadata +8 -9
- data/app/javascript/spree/admin/controllers/webhook_subscriber_events_controller.js +0 -19
@@ -1,19 +1,19 @@
|
|
1
|
-
// dompurify@3.2.
|
1
|
+
// dompurify@3.2.5 downloaded from https://ga.jspm.io/npm:dompurify@3.2.5/dist/purify.es.mjs
|
2
2
|
|
3
|
-
/*! @license DOMPurify 3.2.
|
4
|
-
const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:a}=Object;let{freeze:r,seal:i,create:l}=Object;let{apply:
|
3
|
+
/*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */
|
4
|
+
const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:a}=Object;let{freeze:r,seal:i,create:l}=Object;let{apply:s,construct:c}=typeof Reflect!=="undefined"&&Reflect;r||(r=function freeze(e){return e});i||(i=function seal(e){return e});s||(s=function apply(e,t,n){return e.apply(t,n)});c||(c=function construct(e,t){return new e(...t)});const u=unapply(Array.prototype.forEach);const p=unapply(Array.prototype.lastIndexOf);const d=unapply(Array.prototype.pop);const f=unapply(Array.prototype.push);const m=unapply(Array.prototype.splice);const h=unapply(String.prototype.toLowerCase);const T=unapply(String.prototype.toString);const g=unapply(String.prototype.match);const y=unapply(String.prototype.replace);const _=unapply(String.prototype.indexOf);const S=unapply(String.prototype.trim);const E=unapply(Object.prototype.hasOwnProperty);const A=unapply(RegExp.prototype.test);const N=unconstruct(TypeError);
|
5
5
|
/**
|
6
6
|
* Creates a new function that calls the given function with a specified thisArg and arguments.
|
7
7
|
*
|
8
8
|
* @param func - The function to be wrapped and called.
|
9
9
|
* @returns A new function that calls the given function with a specified thisArg and arguments.
|
10
|
-
*/function unapply(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return
|
10
|
+
*/function unapply(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return s(e,t,o)}}
|
11
11
|
/**
|
12
12
|
* Creates a new function that constructs an instance of the given constructor function with the provided arguments.
|
13
13
|
*
|
14
14
|
* @param func - The constructor function to be wrapped and called.
|
15
15
|
* @returns A new function that constructs an instance of the given constructor function with the provided arguments.
|
16
|
-
*/function unconstruct(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return
|
16
|
+
*/function unconstruct(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return c(e,n)}}
|
17
17
|
/**
|
18
18
|
* Add properties to a lookup table
|
19
19
|
*
|
@@ -21,27 +21,27 @@ const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescr
|
|
21
21
|
* @param array - The array containing elements to be added to the set.
|
22
22
|
* @param transformCaseFunc - An optional function to transform the case of each element before adding to the set.
|
23
23
|
* @returns The modified set with added elements.
|
24
|
-
*/function addToSet(e,o){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:
|
24
|
+
*/function addToSet(e,o){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h;t&&t(e,null);let r=o.length;while(r--){let t=o[r];if(typeof t==="string"){const e=a(t);if(e!==t){n(o)||(o[r]=e);t=e}}e[t]=true}return e}
|
25
25
|
/**
|
26
26
|
* Clean up an array to harden against CSPP
|
27
27
|
*
|
28
28
|
* @param array - The array to be cleaned.
|
29
29
|
* @returns The cleaned version of the array
|
30
|
-
*/function cleanArray(e){for(let t=0;t<e.length;t++){const n=
|
30
|
+
*/function cleanArray(e){for(let t=0;t<e.length;t++){const n=E(e,t);n||(e[t]=null)}return e}
|
31
31
|
/**
|
32
32
|
* Shallow clone an object
|
33
33
|
*
|
34
34
|
* @param object - The object to be cloned.
|
35
35
|
* @returns A new object that copies the original.
|
36
|
-
*/function clone(t){const n=l(null);for(const[o,a]of e(t)){const e=
|
36
|
+
*/function clone(t){const n=l(null);for(const[o,a]of e(t)){const e=E(t,o);e&&(Array.isArray(a)?n[o]=cleanArray(a):a&&typeof a==="object"&&a.constructor===Object?n[o]=clone(a):n[o]=a)}return n}
|
37
37
|
/**
|
38
38
|
* This method automatically checks if the prop is function or getter and behaves accordingly.
|
39
39
|
*
|
40
40
|
* @param object - The object to look up the getter function in its prototype chain.
|
41
41
|
* @param prop - The property name for which to find the getter function.
|
42
42
|
* @returns The getter function found in the prototype chain or a fallback function.
|
43
|
-
*/function lookupGetter(e,t){while(e!==null){const n=a(e,t);if(n){if(n.get)return unapply(n.get);if(typeof n.value==="function")return unapply(n.value)}e=o(e)}function fallbackValue(){return null}return fallbackValue}const
|
44
|
-
/* eslint-disable @typescript-eslint/indent */const
|
43
|
+
*/function lookupGetter(e,t){while(e!==null){const n=a(e,t);if(n){if(n.get)return unapply(n.get);if(typeof n.value==="function")return unapply(n.value)}e=o(e)}function fallbackValue(){return null}return fallbackValue}const b=r(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]);const w=r(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]);const R=r(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]);const k=r(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]);const x=r(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]);const O=r(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]);const D=r(["#text"]);const v=r(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]);const C=r(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]);const L=r(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]);const I=r(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]);const M=i(/\{\{[\w\W]*|[\w\W]*\}\}/gm);const P=i(/<%[\w\W]*|[\w\W]*%>/gm);const U=i(/\$\{[\w\W]*/gm);const H=i(/^data-[\-\w.\u00B7-\uFFFF]+$/);const z=i(/^aria-[\-\w]+$/);const F=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i);const G=i(/^(?:\w+script|data):/i);const B=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g);const W=i(/^html$/i);const Y=i(/^[a-z][.\w]*(-[.\w]+)+$/i);var j=Object.freeze({__proto__:null,ARIA_ATTR:z,ATTR_WHITESPACE:B,CUSTOM_ELEMENT:Y,DATA_ATTR:H,DOCTYPE_NAME:W,ERB_EXPR:P,IS_ALLOWED_URI:F,IS_SCRIPT_OR_DATA:G,MUSTACHE_EXPR:M,TMPLIT_EXPR:U});
|
44
|
+
/* eslint-disable @typescript-eslint/indent */const X={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12};const q=function getGlobal(){return typeof window==="undefined"?null:window};
|
45
45
|
/**
|
46
46
|
* Creates a no-op policy for internal use only.
|
47
47
|
* Don't export this function outside this module!
|
@@ -49,53 +49,53 @@ const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescr
|
|
49
49
|
* @param purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).
|
50
50
|
* @return The policy created (or null, if Trusted Types
|
51
51
|
* are not supported or creating the policy failed).
|
52
|
-
*/const
|
52
|
+
*/const V=function _createTrustedTypesPolicy(e,t){if(typeof e!=="object"||typeof e.createPolicy!=="function")return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(e){return e},createScriptURL(e){return e}})}catch(e){console.warn("TrustedTypes policy "+a+" could not be created.");return null}};const $=function _createHooksMap(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function createDOMPurify(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q();const DOMPurify=e=>createDOMPurify(e);DOMPurify.version="3.2.5";DOMPurify.removed=[];if(!t||!t.document||t.document.nodeType!==X.document||!t.Element){DOMPurify.isSupported=false;return DOMPurify}let{document:n}=t;const o=n;const a=o.currentScript;const{DocumentFragment:i,HTMLTemplateElement:s,Node:c,Element:M,NodeFilter:P,NamedNodeMap:U=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:H,DOMParser:z,trustedTypes:G}=t;const B=M.prototype;const Y=lookupGetter(B,"cloneNode");const K=lookupGetter(B,"remove");const Z=lookupGetter(B,"nextSibling");const J=lookupGetter(B,"childNodes");const Q=lookupGetter(B,"parentNode");if(typeof s==="function"){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let ee;let te="";const{implementation:ne,createNodeIterator:oe,createDocumentFragment:ae,getElementsByTagName:re}=n;const{importNode:ie}=o;let le=$();DOMPurify.isSupported=typeof e==="function"&&typeof Q==="function"&&ne&&ne.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:se,ERB_EXPR:ce,TMPLIT_EXPR:ue,DATA_ATTR:pe,ARIA_ATTR:de,IS_SCRIPT_OR_DATA:fe,ATTR_WHITESPACE:me,CUSTOM_ELEMENT:he}=j;let{IS_ALLOWED_URI:Te}=j;let ge=null;const ye=addToSet({},[...b,...w,...R,...x,...D]);let _e=null;const Se=addToSet({},[...v,...C,...L,...I]);let Ee=Object.seal(l(null,{tagNameCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeNameCheck:{writable:true,configurable:false,enumerable:true,value:null},allowCustomizedBuiltInElements:{writable:true,configurable:false,enumerable:true,value:false}}));let Ae=null;let Ne=null;let be=true;let we=true;let Re=false;let ke=true;let xe=false;let Oe=true;let De=false;let ve=false;let Ce=false;let Le=false;let Ie=false;let Me=false;let Pe=true;let Ue=false;const He="user-content-";let ze=true;let Fe=false;let Ge={};let Be=null;const We=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ye=null;const je=addToSet({},["audio","video","img","source","image","track"]);let Xe=null;const qe=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]);const Ve="http://www.w3.org/1998/Math/MathML";const $e="http://www.w3.org/2000/svg";const Ke="http://www.w3.org/1999/xhtml";let Ze=Ke;let Je=false;let Qe=null;const et=addToSet({},[Ve,$e,Ke],T);let tt=addToSet({},["mi","mo","mn","ms","mtext"]);let nt=addToSet({},["annotation-xml"]);const ot=addToSet({},["title","style","font","a","script"]);let at=null;const rt=["application/xhtml+xml","text/html"];const it="text/html";let lt=null;let st=null;const ct=n.createElement("form");const ut=function isRegexOrFunction(e){return e instanceof RegExp||e instanceof Function};
|
53
53
|
/**
|
54
54
|
* _parseConfig
|
55
55
|
*
|
56
56
|
* @param cfg optional config literal
|
57
|
-
*/const
|
57
|
+
*/const pt=function _parseConfig(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!st||st!==e){e&&typeof e==="object"||(e={});e=clone(e);at=rt.indexOf(e.PARSER_MEDIA_TYPE)===-1?it:e.PARSER_MEDIA_TYPE;lt=at==="application/xhtml+xml"?T:h;ge=E(e,"ALLOWED_TAGS")?addToSet({},e.ALLOWED_TAGS,lt):ye;_e=E(e,"ALLOWED_ATTR")?addToSet({},e.ALLOWED_ATTR,lt):Se;Qe=E(e,"ALLOWED_NAMESPACES")?addToSet({},e.ALLOWED_NAMESPACES,T):et;Xe=E(e,"ADD_URI_SAFE_ATTR")?addToSet(clone(qe),e.ADD_URI_SAFE_ATTR,lt):qe;Ye=E(e,"ADD_DATA_URI_TAGS")?addToSet(clone(je),e.ADD_DATA_URI_TAGS,lt):je;Be=E(e,"FORBID_CONTENTS")?addToSet({},e.FORBID_CONTENTS,lt):We;Ae=E(e,"FORBID_TAGS")?addToSet({},e.FORBID_TAGS,lt):{};Ne=E(e,"FORBID_ATTR")?addToSet({},e.FORBID_ATTR,lt):{};Ge=!!E(e,"USE_PROFILES")&&e.USE_PROFILES;be=e.ALLOW_ARIA_ATTR!==false;we=e.ALLOW_DATA_ATTR!==false;Re=e.ALLOW_UNKNOWN_PROTOCOLS||false;ke=e.ALLOW_SELF_CLOSE_IN_ATTR!==false;xe=e.SAFE_FOR_TEMPLATES||false;Oe=e.SAFE_FOR_XML!==false;De=e.WHOLE_DOCUMENT||false;Le=e.RETURN_DOM||false;Ie=e.RETURN_DOM_FRAGMENT||false;Me=e.RETURN_TRUSTED_TYPE||false;Ce=e.FORCE_BODY||false;Pe=e.SANITIZE_DOM!==false;Ue=e.SANITIZE_NAMED_PROPS||false;ze=e.KEEP_CONTENT!==false;Fe=e.IN_PLACE||false;Te=e.ALLOWED_URI_REGEXP||F;Ze=e.NAMESPACE||Ke;tt=e.MATHML_TEXT_INTEGRATION_POINTS||tt;nt=e.HTML_INTEGRATION_POINTS||nt;Ee=e.CUSTOM_ELEMENT_HANDLING||{};e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ee.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck);e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ee.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck);e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==="boolean"&&(Ee.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements);xe&&(we=false);Ie&&(Le=true);if(Ge){ge=addToSet({},D);_e=[];if(Ge.html===true){addToSet(ge,b);addToSet(_e,v)}if(Ge.svg===true){addToSet(ge,w);addToSet(_e,C);addToSet(_e,I)}if(Ge.svgFilters===true){addToSet(ge,R);addToSet(_e,C);addToSet(_e,I)}if(Ge.mathMl===true){addToSet(ge,x);addToSet(_e,L);addToSet(_e,I)}}if(e.ADD_TAGS){ge===ye&&(ge=clone(ge));addToSet(ge,e.ADD_TAGS,lt)}if(e.ADD_ATTR){_e===Se&&(_e=clone(_e));addToSet(_e,e.ADD_ATTR,lt)}e.ADD_URI_SAFE_ATTR&&addToSet(Xe,e.ADD_URI_SAFE_ATTR,lt);if(e.FORBID_CONTENTS){Be===We&&(Be=clone(Be));addToSet(Be,e.FORBID_CONTENTS,lt)}ze&&(ge["#text"]=true);De&&addToSet(ge,["html","head","body"]);if(ge.table){addToSet(ge,["tbody"]);delete Ae.tbody}if(e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=="function")throw N('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=="function")throw N('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ee=e.TRUSTED_TYPES_POLICY;te=ee.createHTML("")}else{ee===void 0&&(ee=V(G,a));ee!==null&&typeof te==="string"&&(te=ee.createHTML(""))}r&&r(e);st=e}};const dt=addToSet({},[...w,...R,...k]);const ft=addToSet({},[...x,...O]);
|
58
58
|
/**
|
59
59
|
* @param element a DOM element whose namespace is being checked
|
60
60
|
* @returns Return false if the element has a
|
61
61
|
* namespace that a spec-compliant parser would never
|
62
62
|
* return. Return true otherwise.
|
63
|
-
*/const
|
63
|
+
*/const mt=function _checkValidNamespace(e){let t=Q(e);t&&t.tagName||(t={namespaceURI:Ze,tagName:"template"});const n=h(e.tagName);const o=h(t.tagName);return!!Qe[e.namespaceURI]&&(e.namespaceURI===$e?t.namespaceURI===Ke?n==="svg":t.namespaceURI===Ve?n==="svg"&&(o==="annotation-xml"||tt[o]):Boolean(dt[n]):e.namespaceURI===Ve?t.namespaceURI===Ke?n==="math":t.namespaceURI===$e?n==="math"&&nt[o]:Boolean(ft[n]):e.namespaceURI===Ke?!(t.namespaceURI===$e&&!nt[o])&&(!(t.namespaceURI===Ve&&!tt[o])&&(!ft[n]&&(ot[n]||!dt[n]))):!(at!=="application/xhtml+xml"||!Qe[e.namespaceURI]))};
|
64
64
|
/**
|
65
65
|
* _forceRemove
|
66
66
|
*
|
67
67
|
* @param node a DOM node
|
68
|
-
*/const
|
68
|
+
*/const ht=function _forceRemove(e){f(DOMPurify.removed,{element:e});try{Q(e).removeChild(e)}catch(t){K(e)}};
|
69
69
|
/**
|
70
70
|
* _removeAttribute
|
71
71
|
*
|
72
72
|
* @param name an Attribute name
|
73
73
|
* @param element a DOM node
|
74
|
-
*/const
|
74
|
+
*/const Tt=function _removeAttribute(e,t){try{f(DOMPurify.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){f(DOMPurify.removed,{attribute:null,from:t})}t.removeAttribute(e);if(e==="is")if(Le||Ie)try{ht(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}};
|
75
75
|
/**
|
76
76
|
* _initDocument
|
77
77
|
*
|
78
78
|
* @param dirty - a string of dirty markup
|
79
79
|
* @return a DOM, filled with the dirty markup
|
80
|
-
*/const
|
80
|
+
*/const gt=function _initDocument(e){let t=null;let o=null;if(Ce)e="<remove></remove>"+e;else{const t=g(e,/^[\r\n\t ]+/);o=t&&t[0]}at==="application/xhtml+xml"&&Ze===Ke&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const a=ee?ee.createHTML(e):e;if(Ze===Ke)try{t=(new z).parseFromString(a,at)}catch(e){}if(!t||!t.documentElement){t=ne.createDocument(Ze,"template",null);try{t.documentElement.innerHTML=Je?te:a}catch(e){}}const r=t.body||t.documentElement;e&&o&&r.insertBefore(n.createTextNode(o),r.childNodes[0]||null);return Ze===Ke?re.call(t,De?"html":"body")[0]:De?t.documentElement:r};
|
81
81
|
/**
|
82
82
|
* Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
|
83
83
|
*
|
84
84
|
* @param root The root element or node to start traversing on.
|
85
85
|
* @return The created NodeIterator
|
86
|
-
*/const
|
86
|
+
*/const yt=function _createNodeIterator(e){return oe.call(e.ownerDocument||e,e,P.SHOW_ELEMENT|P.SHOW_COMMENT|P.SHOW_TEXT|P.SHOW_PROCESSING_INSTRUCTION|P.SHOW_CDATA_SECTION,null)};
|
87
87
|
/**
|
88
88
|
* _isClobbered
|
89
89
|
*
|
90
90
|
* @param element element to check for clobbering attacks
|
91
91
|
* @return true if clobbered, false if safe
|
92
|
-
*/const
|
92
|
+
*/const _t=function _isClobbered(e){return e instanceof H&&(typeof e.nodeName!=="string"||typeof e.textContent!=="string"||typeof e.removeChild!=="function"||!(e.attributes instanceof U)||typeof e.removeAttribute!=="function"||typeof e.setAttribute!=="function"||typeof e.namespaceURI!=="string"||typeof e.insertBefore!=="function"||typeof e.hasChildNodes!=="function")};
|
93
93
|
/**
|
94
94
|
* Checks whether the given object is a DOM node.
|
95
95
|
*
|
96
96
|
* @param value object to check whether it's a DOM node
|
97
97
|
* @return true is object is a DOM node
|
98
|
-
*/const
|
98
|
+
*/const St=function _isNode(e){return typeof c==="function"&&e instanceof c};function _executeHooks(e,t,n){u(e,(e=>{e.call(DOMPurify,t,n,st)}))}
|
99
99
|
/**
|
100
100
|
* _sanitizeElements
|
101
101
|
*
|
@@ -104,7 +104,7 @@ const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescr
|
|
104
104
|
* @protect removeChild
|
105
105
|
* @param currentNode to check for permission to exist
|
106
106
|
* @return true if node was killed, false if left alive
|
107
|
-
*/const
|
107
|
+
*/const Et=function _sanitizeElements(e){let t=null;_executeHooks(le.beforeSanitizeElements,e,null);if(_t(e)){ht(e);return true}const n=lt(e.nodeName);_executeHooks(le.uponSanitizeElement,e,{tagName:n,allowedTags:ge});if(e.hasChildNodes()&&!St(e.firstElementChild)&&A(/<[/\w!]/g,e.innerHTML)&&A(/<[/\w!]/g,e.textContent)){ht(e);return true}if(e.nodeType===X.progressingInstruction){ht(e);return true}if(Oe&&e.nodeType===X.comment&&A(/<[/\w]/g,e.data)){ht(e);return true}if(!ge[n]||Ae[n]){if(!Ae[n]&&Nt(n)){if(Ee.tagNameCheck instanceof RegExp&&A(Ee.tagNameCheck,n))return false;if(Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(n))return false}if(ze&&!Be[n]){const t=Q(e)||e.parentNode;const n=J(e)||e.childNodes;if(n&&t){const o=n.length;for(let a=o-1;a>=0;--a){const o=Y(n[a],true);o.__removalCount=(e.__removalCount||0)+1;t.insertBefore(o,Z(e))}}}ht(e);return true}if(e instanceof M&&!mt(e)){ht(e);return true}if((n==="noscript"||n==="noembed"||n==="noframes")&&A(/<\/no(script|embed|frames)/i,e.innerHTML)){ht(e);return true}if(xe&&e.nodeType===X.text){t=e.textContent;u([se,ce,ue],(e=>{t=y(t,e," ")}));if(e.textContent!==t){f(DOMPurify.removed,{element:e.cloneNode()});e.textContent=t}}_executeHooks(le.afterSanitizeElements,e,null);return false};
|
108
108
|
/**
|
109
109
|
* _isValidAttribute
|
110
110
|
*
|
@@ -112,7 +112,7 @@ const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescr
|
|
112
112
|
* @param lcName Lowercase attribute name.
|
113
113
|
* @param value Attribute value.
|
114
114
|
* @return Returns true if `value` is valid, otherwise false.
|
115
|
-
*/const
|
115
|
+
*/const At=function _isValidAttribute(e,t,o){if(Pe&&(t==="id"||t==="name")&&(o in n||o in ct))return false;if(we&&!Ne[t]&&A(pe,t));else if(be&&A(de,t));else if(!_e[t]||Ne[t]){if(!(Nt(e)&&(Ee.tagNameCheck instanceof RegExp&&A(Ee.tagNameCheck,e)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(e))&&(Ee.attributeNameCheck instanceof RegExp&&A(Ee.attributeNameCheck,t)||Ee.attributeNameCheck instanceof Function&&Ee.attributeNameCheck(t))||t==="is"&&Ee.allowCustomizedBuiltInElements&&(Ee.tagNameCheck instanceof RegExp&&A(Ee.tagNameCheck,o)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(o))))return false}else if(Xe[t]);else if(A(Te,y(o,me,"")));else if(t!=="src"&&t!=="xlink:href"&&t!=="href"||e==="script"||_(o,"data:")!==0||!Ye[e]){if(Re&&!A(fe,y(o,me,"")));else if(o)return false}else;return true};
|
116
116
|
/**
|
117
117
|
* _isBasicCustomElement
|
118
118
|
* checks if at least one dash is included in tagName, and it's not the first char
|
@@ -120,7 +120,7 @@ const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescr
|
|
120
120
|
*
|
121
121
|
* @param tagName name of the tag of the node to sanitize
|
122
122
|
* @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
|
123
|
-
*/const
|
123
|
+
*/const Nt=function _isBasicCustomElement(e){return e!=="annotation-xml"&&g(e,he)};
|
124
124
|
/**
|
125
125
|
* _sanitizeAttributes
|
126
126
|
*
|
@@ -130,10 +130,10 @@ const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescr
|
|
130
130
|
* @protect setAttribute
|
131
131
|
*
|
132
132
|
* @param currentNode to sanitize
|
133
|
-
*/const
|
133
|
+
*/const bt=function _sanitizeAttributes(e){_executeHooks(le.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||_t(e))return;const n={attrName:"",attrValue:"",keepAttr:true,allowedAttributes:_e,forceKeepAttr:void 0};let o=t.length;while(o--){const a=t[o];const{name:r,namespaceURI:i,value:l}=a;const s=lt(r);let c=r==="value"?l:S(l);n.attrName=s;n.attrValue=c;n.keepAttr=true;n.forceKeepAttr=void 0;_executeHooks(le.uponSanitizeAttribute,e,n);c=n.attrValue;if(Ue&&(s==="id"||s==="name")){Tt(r,e);c=He+c}if(Oe&&A(/((--!?|])>)|<\/(style|title)/i,c)){Tt(r,e);continue}if(n.forceKeepAttr)continue;Tt(r,e);if(!n.keepAttr)continue;if(!ke&&A(/\/>/i,c)){Tt(r,e);continue}xe&&u([se,ce,ue],(e=>{c=y(c,e," ")}));const p=lt(e.nodeName);if(At(p,s,c)){if(ee&&typeof G==="object"&&typeof G.getAttributeType==="function")if(i);else switch(G.getAttributeType(p,s)){case"TrustedHTML":c=ee.createHTML(c);break;case"TrustedScriptURL":c=ee.createScriptURL(c);break}try{i?e.setAttributeNS(i,r,c):e.setAttribute(r,c);_t(e)?ht(e):d(DOMPurify.removed)}catch(e){}}}_executeHooks(le.afterSanitizeAttributes,e,null)};
|
134
134
|
/**
|
135
135
|
* _sanitizeShadowDOM
|
136
136
|
*
|
137
137
|
* @param fragment to iterate over recursively
|
138
|
-
*/const
|
138
|
+
*/const wt=function _sanitizeShadowDOM(e){let t=null;const n=yt(e);_executeHooks(le.beforeSanitizeShadowDOM,e,null);while(t=n.nextNode()){_executeHooks(le.uponSanitizeShadowNode,t,null);Et(t);bt(t);t.content instanceof i&&_sanitizeShadowDOM(t.content)}_executeHooks(le.afterSanitizeShadowDOM,e,null)};DOMPurify.sanitize=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};let n=null;let a=null;let r=null;let l=null;Je=!e;Je&&(e="\x3c!--\x3e");if(typeof e!=="string"&&!St(e)){if(typeof e.toString!=="function")throw N("toString is not a function");e=e.toString();if(typeof e!=="string")throw N("dirty is not a string, aborting")}if(!DOMPurify.isSupported)return e;ve||pt(t);DOMPurify.removed=[];typeof e==="string"&&(Fe=false);if(Fe){if(e.nodeName){const t=lt(e.nodeName);if(!ge[t]||Ae[t])throw N("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c){n=gt("\x3c!----\x3e");a=n.ownerDocument.importNode(e,true);a.nodeType===X.element&&a.nodeName==="BODY"||a.nodeName==="HTML"?n=a:n.appendChild(a)}else{if(!Le&&!xe&&!De&&e.indexOf("<")===-1)return ee&&Me?ee.createHTML(e):e;n=gt(e);if(!n)return Le?null:Me?te:""}n&&Ce&&ht(n.firstChild);const s=yt(Fe?e:n);while(r=s.nextNode()){Et(r);bt(r);r.content instanceof i&&wt(r.content)}if(Fe)return e;if(Le){if(Ie){l=ae.call(n.ownerDocument);while(n.firstChild)l.appendChild(n.firstChild)}else l=n;(_e.shadowroot||_e.shadowrootmode)&&(l=ie.call(o,l,true));return l}let p=De?n.outerHTML:n.innerHTML;De&&ge["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&A(W,n.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+p);xe&&u([se,ce,ue],(e=>{p=y(p,e," ")}));return ee&&Me?ee.createHTML(p):p};DOMPurify.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};pt(e);ve=true};DOMPurify.clearConfig=function(){st=null;ve=false};DOMPurify.isValidAttribute=function(e,t,n){st||pt({});const o=lt(e);const a=lt(t);return At(o,a,n)};DOMPurify.addHook=function(e,t){typeof t==="function"&&f(le[e],t)};DOMPurify.removeHook=function(e,t){if(t!==void 0){const n=p(le[e],t);return n===-1?void 0:m(le[e],n,1)[0]}return d(le[e])};DOMPurify.removeHooks=function(e){le[e]=[]};DOMPurify.removeAllHooks=function(){le=$()};return DOMPurify}var K=createDOMPurify();export{K as default};
|
139
139
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vendo Connect Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: spree_core
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 5.0.
|
19
|
+
version: 5.0.4
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 5.0.
|
26
|
+
version: 5.0.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: spree_api
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 5.0.
|
33
|
+
version: 5.0.4
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 5.0.
|
40
|
+
version: 5.0.4
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: active_link_to
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -454,7 +454,6 @@ files:
|
|
454
454
|
- app/javascript/spree/admin/controllers/store_form_controller.js
|
455
455
|
- app/javascript/spree/admin/controllers/unit_system_controller.js
|
456
456
|
- app/javascript/spree/admin/controllers/variants_form_controller.js
|
457
|
-
- app/javascript/spree/admin/controllers/webhook_subscriber_events_controller.js
|
458
457
|
- app/javascript/spree/admin/helpers/bootstrap.js
|
459
458
|
- app/javascript/spree/admin/helpers/canvas.js
|
460
459
|
- app/javascript/spree/admin/helpers/index.js
|
@@ -1059,9 +1058,9 @@ licenses:
|
|
1059
1058
|
- AGPL-3.0-or-later
|
1060
1059
|
metadata:
|
1061
1060
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
1062
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/v5.0.
|
1061
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v5.0.4
|
1063
1062
|
documentation_uri: https://docs.spreecommerce.org/
|
1064
|
-
source_code_uri: https://github.com/spree/spree/tree/v5.0.
|
1063
|
+
source_code_uri: https://github.com/spree/spree/tree/v5.0.4
|
1065
1064
|
post_install_message:
|
1066
1065
|
rdoc_options: []
|
1067
1066
|
require_paths:
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { Controller } from '@hotwired/stimulus'
|
2
|
-
|
3
|
-
export default class extends Controller {
|
4
|
-
static targets = ['eventsCheckboxesContainer', 'subscribeToAll']
|
5
|
-
|
6
|
-
hideCheckboxes() {
|
7
|
-
this.eventsCheckboxesContainerTarget.classList.add('d-none')
|
8
|
-
}
|
9
|
-
|
10
|
-
showCheckboxes() {
|
11
|
-
this.eventsCheckboxesContainerTarget.classList.remove('d-none')
|
12
|
-
}
|
13
|
-
|
14
|
-
initialize() {
|
15
|
-
if (this.subscribeToAllTarget.checked) {
|
16
|
-
this.hideCheckboxes()
|
17
|
-
}
|
18
|
-
}
|
19
|
-
}
|