@drskillissue/ganko 0.2.6 → 0.2.61
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/{chunk-FTIRRRQY.js → chunk-BK7TC7DN.js} +17 -7
- package/dist/{chunk-FTIRRRQY.js.map → chunk-BK7TC7DN.js.map} +1 -1
- package/dist/eslint-plugin.cjs +12 -6
- package/dist/eslint-plugin.cjs.map +1 -1
- package/dist/eslint-plugin.js +1 -1
- package/dist/index.cjs +16 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -22739,8 +22739,12 @@ var POLICIES = {
|
|
|
22739
22739
|
"dense-ui": DENSE_UI,
|
|
22740
22740
|
"large-text": LARGE_TEXT
|
|
22741
22741
|
};
|
|
22742
|
-
var activePolicyName =
|
|
22742
|
+
var activePolicyName = null;
|
|
22743
22743
|
function setActivePolicy(name) {
|
|
22744
|
+
if (name === null) {
|
|
22745
|
+
activePolicyName = null;
|
|
22746
|
+
return;
|
|
22747
|
+
}
|
|
22744
22748
|
const match = ACCESSIBILITY_POLICIES.find((n) => n === name);
|
|
22745
22749
|
if (match) {
|
|
22746
22750
|
activePolicyName = match;
|
|
@@ -22750,6 +22754,7 @@ function getActivePolicyName() {
|
|
|
22750
22754
|
return activePolicyName;
|
|
22751
22755
|
}
|
|
22752
22756
|
function getActivePolicy() {
|
|
22757
|
+
if (activePolicyName === null) return null;
|
|
22753
22758
|
return POLICIES[activePolicyName];
|
|
22754
22759
|
}
|
|
22755
22760
|
|
|
@@ -25038,7 +25043,8 @@ var cssPolicyContrast = defineCSSRule({
|
|
|
25038
25043
|
options: {},
|
|
25039
25044
|
check(graph, emit) {
|
|
25040
25045
|
const policy = getActivePolicy();
|
|
25041
|
-
|
|
25046
|
+
if (policy === null) return;
|
|
25047
|
+
const name = getActivePolicyName() ?? "";
|
|
25042
25048
|
const colorDecls = graph.declarationsByProperty.get("color");
|
|
25043
25049
|
if (!colorDecls) return;
|
|
25044
25050
|
const candidates = /* @__PURE__ */ new Set();
|
|
@@ -25115,7 +25121,8 @@ var cssPolicySpacing = defineCSSRule({
|
|
|
25115
25121
|
options: {},
|
|
25116
25122
|
check(graph, emit) {
|
|
25117
25123
|
const policy = getActivePolicy();
|
|
25118
|
-
|
|
25124
|
+
if (policy === null) return;
|
|
25125
|
+
const name = getActivePolicyName() ?? "";
|
|
25119
25126
|
const letterDecls = graph.declarationsByProperty.get("letter-spacing");
|
|
25120
25127
|
if (letterDecls) {
|
|
25121
25128
|
for (let i = 0; i < letterDecls.length; i++) {
|
|
@@ -25224,7 +25231,8 @@ var cssPolicyTouchTarget = defineCSSRule({
|
|
|
25224
25231
|
options: {},
|
|
25225
25232
|
check(graph, emit) {
|
|
25226
25233
|
const policy = getActivePolicy();
|
|
25227
|
-
|
|
25234
|
+
if (policy === null) return;
|
|
25235
|
+
const name = getActivePolicyName() ?? "";
|
|
25228
25236
|
const decls = graph.declarationsForProperties(
|
|
25229
25237
|
"height",
|
|
25230
25238
|
"min-height",
|
|
@@ -25383,7 +25391,8 @@ var cssPolicyTypography = defineCSSRule({
|
|
|
25383
25391
|
options: {},
|
|
25384
25392
|
check(graph, emit) {
|
|
25385
25393
|
const policy = getActivePolicy();
|
|
25386
|
-
|
|
25394
|
+
if (policy === null) return;
|
|
25395
|
+
const name = getActivePolicyName() ?? "";
|
|
25387
25396
|
const fontDecls = graph.declarationsByProperty.get("font-size");
|
|
25388
25397
|
if (fontDecls) {
|
|
25389
25398
|
for (let i = 0; i < fontDecls.length; i++) {
|
|
@@ -39568,7 +39577,8 @@ var jsxStylePolicy = defineCrossRule({
|
|
|
39568
39577
|
check(context, emit) {
|
|
39569
39578
|
const { solids } = context;
|
|
39570
39579
|
const policy = getActivePolicy();
|
|
39571
|
-
|
|
39580
|
+
if (policy === null) return;
|
|
39581
|
+
const name = getActivePolicyName() ?? "";
|
|
39572
39582
|
forEachStylePropertyAcross(solids, (solid, p) => {
|
|
39573
39583
|
if (!ts133.isPropertyAssignment(p)) return;
|
|
39574
39584
|
const key = objectKeyName(p.name);
|
|
@@ -41274,4 +41284,4 @@ export {
|
|
|
41274
41284
|
rules3,
|
|
41275
41285
|
runCrossFileRules
|
|
41276
41286
|
};
|
|
41277
|
-
//# sourceMappingURL=chunk-
|
|
41287
|
+
//# sourceMappingURL=chunk-BK7TC7DN.js.map
|