fower-plugin-layout
Advanced tools
Comparing version 1.64.0 to 1.64.1
@@ -267,5 +267,5 @@ 'use strict'; | ||
var findDisplay = parser.atoms.find(function (i) { | ||
var _i$style; | ||
var _i$style, _i$meta; | ||
return !!(i != null && (_i$style = i.style) != null && _i$style.display); | ||
return !!(i != null && (_i$style = i.style) != null && _i$style.display) && !((_i$meta = i.meta) != null && _i$meta.pseudo); | ||
}); | ||
@@ -272,0 +272,0 @@ if (findDisplay) return; |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@fower/core"),t=require("@fower/utils");function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function n(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o="totop",a="toleft",i="toright",l="tobottom",s="tobetween",f="toaround",u="toevenly",c="tocenterx",d="tocentery",y="selftop",m="selfright",p="selfbottom",v="selfleft";function x(e,t){var r={},n="";e=e.toLowerCase(),t.startsWith("row")?([a,i,c,s,f,u].includes(e)&&(n="justifyContent"),[o,l,d].includes(e)&&(n="alignItems")):([o,l,d,s,f,u].includes(e)&&(n="justifyContent"),[a,i,c].includes(e)&&(n="alignItems"));var x=/^rowReverse$/i.test(t),h=/^columnReverse$/i.test(t);return e===o?r[n]=h?"flex-end":"flex-start":e===l?r[n]=h?"flex-start":"flex-end":e===a?r[n]=x?"flex-end":"flex-start":e===i?r[n]=x?"flex-start":"flex-end":[c,d].includes(e)?r[n]="center":e===s?r[n]="space-between":e===f?r[n]="space-around":e===u?r[n]="space-evenly":"tocenter"===e&&(r.justifyContent="center",r.alignItems="center"),[y,v].includes(e)?r.alignSelf="flex-start":[p,m].includes(e)?r.alignSelf="flex-end":"selfcenter"===e?r.alignSelf="center":"selfauto"===e&&(r.alignSelf="auto"),r}var h=new RegExp(""+[a,i,o,l,"tocenter",c,d,s,f,u,y,m,p,v,"selfcenter","selfcenter"].join("|"),"i");function b(e){return/^flexDirection$/.test(e)}function g(e){return/^(row|column)(Reverse)?$/i.test(e)}function w(e){return h.test(e)}function A(e){return g(e)||b(e)||w(e)}exports.default=function(){return{isMatch:A,beforeHandleAtom:function(e){return g(e.key)&&(e.id="flexDirection-"+e.id,e.style={flexDirection:t.kebab(e.key)}),b(e.key)&&(e.style={flexDirection:t.kebab(e.value)}),e},handleAtom:function(e){return e},afterAtomStyleCreate:function(t){if(t.atoms.length&&t.atoms.find((function(e){return A(e.key)}))){for(var r,o=[],a=[],i=n(t.atoms);!(r=i()).done;){var l=r.value;A(l.key)&&(w(l.key)?a.push(l):o.push(l))}if(!o.length){var s=t.store.atomCache.get("flexDirection-row");if(s)t.addAtom(s),o.push(s);else{var f=new e.Atom({propKey:"flexDirection-row",propValue:!0,key:"row",handled:!0,style:{flexDirection:"row"}});f.setId(),f.id="flexDirection-"+f.id,t.addAtom(f),o.push(f)}}for(var u=0,c=o;u<c.length;u++)for(var d,y=c[u],m=y.key,p=y.value,v=y.meta.breakpoint,h=g(m)?m:p,b=n(a);!(d=b()).done;){var k=d.value,S=new e.Atom(k);v&&(S.meta.breakpoint=k.meta.breakpoint||v),S.setId(),S.id=h+"-"+S.id;var C=t.store.atomCache.get(S.id);C?t.addAtom(C):(S.style=x(S.key,h),t.addAtom(S))}if(!t.atoms.find((function(e){var t;return!(null==e||null==(t=e.style)||!t.display)}))){var j=t.store.atomCache.get("flex");if(j)t.addAtom(j);else{var D=new e.Atom({propKey:"flex",propValue:!0,handled:!0,style:{display:"flex"}});t.addAtom(D)}}}}}},exports.isMatch=A; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@fower/core"),t=require("@fower/utils");function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function n(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o="totop",a="toleft",l="toright",i="tobottom",s="tobetween",f="toaround",u="toevenly",c="tocenterx",d="tocentery",m="selftop",y="selfright",p="selfbottom",v="selfleft";function x(e,t){var r={},n="";e=e.toLowerCase(),t.startsWith("row")?([a,l,c,s,f,u].includes(e)&&(n="justifyContent"),[o,i,d].includes(e)&&(n="alignItems")):([o,i,d,s,f,u].includes(e)&&(n="justifyContent"),[a,l,c].includes(e)&&(n="alignItems"));var x=/^rowReverse$/i.test(t),h=/^columnReverse$/i.test(t);return e===o?r[n]=h?"flex-end":"flex-start":e===i?r[n]=h?"flex-start":"flex-end":e===a?r[n]=x?"flex-end":"flex-start":e===l?r[n]=x?"flex-start":"flex-end":[c,d].includes(e)?r[n]="center":e===s?r[n]="space-between":e===f?r[n]="space-around":e===u?r[n]="space-evenly":"tocenter"===e&&(r.justifyContent="center",r.alignItems="center"),[m,v].includes(e)?r.alignSelf="flex-start":[p,y].includes(e)?r.alignSelf="flex-end":"selfcenter"===e?r.alignSelf="center":"selfauto"===e&&(r.alignSelf="auto"),r}var h=new RegExp(""+[a,l,o,i,"tocenter",c,d,s,f,u,m,y,p,v,"selfcenter","selfcenter"].join("|"),"i");function b(e){return/^flexDirection$/.test(e)}function g(e){return/^(row|column)(Reverse)?$/i.test(e)}function w(e){return h.test(e)}function A(e){return g(e)||b(e)||w(e)}exports.default=function(){return{isMatch:A,beforeHandleAtom:function(e){return g(e.key)&&(e.id="flexDirection-"+e.id,e.style={flexDirection:t.kebab(e.key)}),b(e.key)&&(e.style={flexDirection:t.kebab(e.value)}),e},handleAtom:function(e){return e},afterAtomStyleCreate:function(t){if(t.atoms.length&&t.atoms.find((function(e){return A(e.key)}))){for(var r,o=[],a=[],l=n(t.atoms);!(r=l()).done;){var i=r.value;A(i.key)&&(w(i.key)?a.push(i):o.push(i))}if(!o.length){var s=t.store.atomCache.get("flexDirection-row");if(s)t.addAtom(s),o.push(s);else{var f=new e.Atom({propKey:"flexDirection-row",propValue:!0,key:"row",handled:!0,style:{flexDirection:"row"}});f.setId(),f.id="flexDirection-"+f.id,t.addAtom(f),o.push(f)}}for(var u=0,c=o;u<c.length;u++)for(var d,m=c[u],y=m.key,p=m.value,v=m.meta.breakpoint,h=g(y)?y:p,b=n(a);!(d=b()).done;){var k=d.value,S=new e.Atom(k);v&&(S.meta.breakpoint=k.meta.breakpoint||v),S.setId(),S.id=h+"-"+S.id;var C=t.store.atomCache.get(S.id);C?t.addAtom(C):(S.style=x(S.key,h),t.addAtom(S))}if(!t.atoms.find((function(e){var t,r;return!(null==e||null==(t=e.style)||!t.display||null!=(r=e.meta)&&r.pseudo)}))){var j=t.store.atomCache.get("flex");if(j)t.addAtom(j);else{var D=new e.Atom({propKey:"flex",propValue:!0,handled:!0,style:{display:"flex"}});t.addAtom(D)}}}}}},exports.isMatch=A; | ||
//# sourceMappingURL=fower-plugin-layout.cjs.production.min.js.map |
@@ -263,5 +263,5 @@ import { Atom } from '@fower/core'; | ||
var findDisplay = parser.atoms.find(function (i) { | ||
var _i$style; | ||
var _i$style, _i$meta; | ||
return !!(i != null && (_i$style = i.style) != null && _i$style.display); | ||
return !!(i != null && (_i$style = i.style) != null && _i$style.display) && !((_i$meta = i.meta) != null && _i$meta.pseudo); | ||
}); | ||
@@ -268,0 +268,0 @@ if (findDisplay) return; |
{ | ||
"name": "fower-plugin-layout", | ||
"version": "1.64.0", | ||
"version": "1.64.1", | ||
"license": "MIT", | ||
@@ -26,7 +26,7 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@fower/atomic-props": "^1.64.0", | ||
"@fower/core": "^1.64.0", | ||
"@fower/utils": "^1.64.0" | ||
"@fower/atomic-props": "^1.64.1", | ||
"@fower/core": "^1.64.1", | ||
"@fower/utils": "^1.64.1" | ||
}, | ||
"gitHead": "145be46409db2006372ece9d5e602158f3f070ec" | ||
"gitHead": "00bc51e1739a506ad192961fbce8a2022fde8ccf" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71488
Updated@fower/atomic-props@^1.64.1
Updated@fower/core@^1.64.1
Updated@fower/utils@^1.64.1