@drskillissue/ganko 0.1.19 → 0.1.20
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-LGHIMW4P.js → chunk-PX2XCAZW.js} +170 -19
- package/dist/{chunk-LGHIMW4P.js.map → chunk-PX2XCAZW.js.map} +1 -1
- package/dist/eslint-plugin.cjs +173 -21
- package/dist/eslint-plugin.cjs.map +1 -1
- package/dist/eslint-plugin.js +4 -2
- package/dist/eslint-plugin.js.map +1 -1
- package/dist/index.cjs +171 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2465,6 +2465,25 @@ type InlineDirectionModel = "ltr" | "rtl";
|
|
|
2465
2465
|
type AlignmentContextKind = "inline-formatting" | "table-cell" | "flex-cross-axis" | "grid-cross-axis" | "block-flow" | "positioned-offset";
|
|
2466
2466
|
type LayoutContextContainerKind = "table" | "flex" | "grid" | "inline" | "block";
|
|
2467
2467
|
type ContextCertainty = "resolved" | "conditional" | "unknown";
|
|
2468
|
+
/**
|
|
2469
|
+
* Whether the CSS formatting context consults baselines for vertical positioning.
|
|
2470
|
+
*
|
|
2471
|
+
* - `"relevant"`: Baselines participate in alignment (e.g. flex `align-items: baseline`,
|
|
2472
|
+
* table-cell `vertical-align: baseline`, inline formatting context).
|
|
2473
|
+
* - `"irrelevant"`: The alignment model is purely geometric; baselines are never
|
|
2474
|
+
* consulted (e.g. flex `align-items: center`, table-cell `vertical-align: middle`
|
|
2475
|
+
* with uniform cohort agreement).
|
|
2476
|
+
*
|
|
2477
|
+
* Computed once at context construction for flex/grid (parent-level data suffices).
|
|
2478
|
+
* For table-cell contexts, finalized after cohort aggregation when the cohort's
|
|
2479
|
+
* vertical-align consensus is known.
|
|
2480
|
+
*
|
|
2481
|
+
* CSS spec references:
|
|
2482
|
+
* - Flex: CSS Flexbox §8.3, §9.6 — `center` aligns by margin box center, not baselines.
|
|
2483
|
+
* - Grid: CSS Grid §10.6 — analogous to flex.
|
|
2484
|
+
* - Table: CSS2 §17.5.3 — `middle` centers cell content geometrically.
|
|
2485
|
+
*/
|
|
2486
|
+
type BaselineRelevance = "relevant" | "irrelevant";
|
|
2468
2487
|
interface LayoutContextEvidence {
|
|
2469
2488
|
readonly containerKind: LayoutContextContainerKind;
|
|
2470
2489
|
readonly containerKindCertainty: ContextCertainty;
|
|
@@ -2487,6 +2506,7 @@ interface AlignmentContext {
|
|
|
2487
2506
|
readonly parentAlignItems: string | null;
|
|
2488
2507
|
readonly parentPlaceItems: string | null;
|
|
2489
2508
|
readonly hasPositionedOffset: boolean;
|
|
2509
|
+
readonly baselineRelevance: BaselineRelevance;
|
|
2490
2510
|
readonly evidence: LayoutContextEvidence;
|
|
2491
2511
|
}
|
|
2492
2512
|
|
|
@@ -3128,6 +3148,7 @@ interface CrossRuleContext {
|
|
|
3128
3148
|
readonly solids: readonly SolidGraph[];
|
|
3129
3149
|
readonly css: CSSGraph;
|
|
3130
3150
|
readonly layout: LayoutGraph;
|
|
3151
|
+
readonly logger: Logger;
|
|
3131
3152
|
}
|
|
3132
3153
|
|
|
3133
3154
|
/**
|
|
@@ -3138,7 +3159,8 @@ interface CrossRuleContext {
|
|
|
3138
3159
|
*
|
|
3139
3160
|
* @param context Pre-built Solid, CSS, and layout graphs
|
|
3140
3161
|
* @param emit Diagnostic emitter
|
|
3162
|
+
* @param log Optional logger for diagnostics
|
|
3141
3163
|
*/
|
|
3142
|
-
declare function runCrossFileRules(context: CrossRuleContext, emit: Emit, log?: Logger): void;
|
|
3164
|
+
declare function runCrossFileRules(context: CrossRuleContext, emit: Emit, log?: Logger | undefined): void;
|
|
3143
3165
|
|
|
3144
3166
|
export { CSSGraph, type CSSInput, CSSPlugin, type ComputationEntity, type DependencyEdge, type Diagnostic, type Fix, type FixOperation, GraphCache, type Plugin, type ReactiveKind, type ReadEntity, type Runner, SolidGraph, type SolidInput, SolidPlugin, type TailwindValidator, type VariableEntity$1 as VariableEntity, analyzeInput, buildCSSGraph, buildLayoutGraph, buildSolidGraph, createOverrideEmit, createRunner, parseContent, parseContentWithProgram, parseFile, resolveTailwindValidator, runCrossFileRules, runSolidRules, scanDependencyCustomProperties, setActivePolicy };
|
package/dist/index.d.ts
CHANGED
|
@@ -2465,6 +2465,25 @@ type InlineDirectionModel = "ltr" | "rtl";
|
|
|
2465
2465
|
type AlignmentContextKind = "inline-formatting" | "table-cell" | "flex-cross-axis" | "grid-cross-axis" | "block-flow" | "positioned-offset";
|
|
2466
2466
|
type LayoutContextContainerKind = "table" | "flex" | "grid" | "inline" | "block";
|
|
2467
2467
|
type ContextCertainty = "resolved" | "conditional" | "unknown";
|
|
2468
|
+
/**
|
|
2469
|
+
* Whether the CSS formatting context consults baselines for vertical positioning.
|
|
2470
|
+
*
|
|
2471
|
+
* - `"relevant"`: Baselines participate in alignment (e.g. flex `align-items: baseline`,
|
|
2472
|
+
* table-cell `vertical-align: baseline`, inline formatting context).
|
|
2473
|
+
* - `"irrelevant"`: The alignment model is purely geometric; baselines are never
|
|
2474
|
+
* consulted (e.g. flex `align-items: center`, table-cell `vertical-align: middle`
|
|
2475
|
+
* with uniform cohort agreement).
|
|
2476
|
+
*
|
|
2477
|
+
* Computed once at context construction for flex/grid (parent-level data suffices).
|
|
2478
|
+
* For table-cell contexts, finalized after cohort aggregation when the cohort's
|
|
2479
|
+
* vertical-align consensus is known.
|
|
2480
|
+
*
|
|
2481
|
+
* CSS spec references:
|
|
2482
|
+
* - Flex: CSS Flexbox §8.3, §9.6 — `center` aligns by margin box center, not baselines.
|
|
2483
|
+
* - Grid: CSS Grid §10.6 — analogous to flex.
|
|
2484
|
+
* - Table: CSS2 §17.5.3 — `middle` centers cell content geometrically.
|
|
2485
|
+
*/
|
|
2486
|
+
type BaselineRelevance = "relevant" | "irrelevant";
|
|
2468
2487
|
interface LayoutContextEvidence {
|
|
2469
2488
|
readonly containerKind: LayoutContextContainerKind;
|
|
2470
2489
|
readonly containerKindCertainty: ContextCertainty;
|
|
@@ -2487,6 +2506,7 @@ interface AlignmentContext {
|
|
|
2487
2506
|
readonly parentAlignItems: string | null;
|
|
2488
2507
|
readonly parentPlaceItems: string | null;
|
|
2489
2508
|
readonly hasPositionedOffset: boolean;
|
|
2509
|
+
readonly baselineRelevance: BaselineRelevance;
|
|
2490
2510
|
readonly evidence: LayoutContextEvidence;
|
|
2491
2511
|
}
|
|
2492
2512
|
|
|
@@ -3128,6 +3148,7 @@ interface CrossRuleContext {
|
|
|
3128
3148
|
readonly solids: readonly SolidGraph[];
|
|
3129
3149
|
readonly css: CSSGraph;
|
|
3130
3150
|
readonly layout: LayoutGraph;
|
|
3151
|
+
readonly logger: Logger;
|
|
3131
3152
|
}
|
|
3132
3153
|
|
|
3133
3154
|
/**
|
|
@@ -3138,7 +3159,8 @@ interface CrossRuleContext {
|
|
|
3138
3159
|
*
|
|
3139
3160
|
* @param context Pre-built Solid, CSS, and layout graphs
|
|
3140
3161
|
* @param emit Diagnostic emitter
|
|
3162
|
+
* @param log Optional logger for diagnostics
|
|
3141
3163
|
*/
|
|
3142
|
-
declare function runCrossFileRules(context: CrossRuleContext, emit: Emit, log?: Logger): void;
|
|
3164
|
+
declare function runCrossFileRules(context: CrossRuleContext, emit: Emit, log?: Logger | undefined): void;
|
|
3143
3165
|
|
|
3144
3166
|
export { CSSGraph, type CSSInput, CSSPlugin, type ComputationEntity, type DependencyEdge, type Diagnostic, type Fix, type FixOperation, GraphCache, type Plugin, type ReactiveKind, type ReadEntity, type Runner, SolidGraph, type SolidInput, SolidPlugin, type TailwindValidator, type VariableEntity$1 as VariableEntity, analyzeInput, buildCSSGraph, buildLayoutGraph, buildSolidGraph, createOverrideEmit, createRunner, parseContent, parseContentWithProgram, parseFile, resolveTailwindValidator, runCrossFileRules, runSolidRules, scanDependencyCustomProperties, setActivePolicy };
|
package/dist/index.js
CHANGED