@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/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
@@ -21,7 +21,7 @@ import {
21
21
  runSolidRules,
22
22
  scanDependencyCustomProperties,
23
23
  setActivePolicy
24
- } from "./chunk-LGHIMW4P.js";
24
+ } from "./chunk-PX2XCAZW.js";
25
25
  import "./chunk-EGRHWZRV.js";
26
26
 
27
27
  // src/runner.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drskillissue/ganko",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "Static analysis SDK for Solid.js — graphs, rules, ESLint adapter",
5
5
  "license": "MIT",
6
6
  "type": "module",