@starci/eslint-grammar-core 0.21.2 → 0.21.6

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/CHANGELOG.md CHANGED
@@ -1,7 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.21.6
4
+
5
+ - Changed: Align bundled canon pins and exact sibling requirements with Grammar and its lint families at 0.21.6. Runtime behavior and rule severity are unchanged.
6
+
3
7
  ## Unreleased
4
8
 
9
+ ## 0.21.5 - 2026-11-02
10
+
11
+ - Changed: requires canon FE 9.9.5 and follows the HFS 5.0.1 canon-pin cohort; the Grammar component runtime stays at 0.21.3.
12
+
13
+ ## 0.21.4 - 2026-11-02
14
+
15
+ - Changed: requires canon FE 9.9.4 and refreshes bundled pins for HFS 5.0.0; the Grammar component runtime stays at 0.21.3.
16
+
17
+ ## 0.21.3 - 2026-11-02
18
+
19
+ - Changed: requires canon FE 9.9.3 and follows the coherent Grammar 0.21.3 API/pin cohort.
20
+
5
21
  ## 0.21.2 - 2026-11-02
6
22
 
7
23
  - Changed: bundled pins follow Grammar 0.21.2 with disabled tab items and its coherent canon cohort; existing runtime checks are unchanged.
@@ -3,7 +3,7 @@ import type { Rule } from "eslint";
3
3
  export declare const appShellFrame: Rule.RuleModule;
4
4
  /** Bottom navigation is not an alternative compact app-shell frame. */
5
5
  export declare const noShellBottomTabs: Rule.RuleModule;
6
- /** Every visible control in a navbar band uses the shared control size. */
6
+ /** Every visible control in a navbar band uses the shared control height through its published size API. */
7
7
  export declare const navbarControlSize: Rule.RuleModule;
8
8
  /** The right cluster is checked at the bar's actions composition, in visual source order. */
9
9
  export declare const navbarCluster: Rule.RuleModule;
package/dist/app-shell.js CHANGED
@@ -131,10 +131,20 @@ const delegatesImportedBar = (context, expression) => {
131
131
  });
132
132
  return imported && !controls && !unknown;
133
133
  };
134
- /** Every visible control in a navbar band uses the shared control size. */
134
+ /** Buttons publish the shared 40px height as `md` (their default), while other bar controls publish `control`. */
135
+ const hasBarControlHeight = (context, control, name) => {
136
+ const size = propOf(context, control, "size");
137
+ if (!size.known)
138
+ return false;
139
+ if ((name === "Button" || name === "IconButton") && (size.value === null
140
+ || everyValue(context, size.value, (value) => value.type === "Literal" && value.value === "md")))
141
+ return true;
142
+ return textProp(context, control, "size") === "control";
143
+ };
144
+ /** Every visible control in a navbar band uses the shared control height through its published size API. */
135
145
  export const navbarControlSize = defineRule({
136
- meta: meta("FE_NAVBAR_CONTROL_SIZE", "FE-APP-SHELL-2 requires size=control on bar controls.", {
137
- control: "FE_NAVBAR_CONTROL_SIZE: {{name}} in the navbar band needs size=\"control\" so every bar control shares Grammar's control height.",
146
+ meta: meta("FE_NAVBAR_CONTROL_SIZE", "FE-APP-SHELL-2 requires the shared control height on bar controls.", {
147
+ control: "FE_NAVBAR_CONTROL_SIZE: {{name}} in the navbar band needs Grammar's shared control height: omit size or use md for Button/IconButton, and use control for the other bar controls.",
138
148
  }),
139
149
  create(context) {
140
150
  if (!isProductSource(context))
@@ -142,7 +152,7 @@ export const navbarControlSize = defineRule({
142
152
  const reported = new Set();
143
153
  return { JSXOpeningElement(node) {
144
154
  visitBar(context, node, (control, name) => {
145
- if (!isBarControl(context, control, name) || textProp(context, control, "size") === "control" || reported.has(control))
155
+ if (!isBarControl(context, control, name) || hasBarControlHeight(context, control, name) || reported.has(control))
146
156
  return;
147
157
  reported.add(control);
148
158
  context.report({ node: control, messageId: "control", data: { name } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@starci/eslint-grammar-core",
3
- "version": "0.21.2",
3
+ "version": "0.21.6",
4
4
  "description": "ESLint rules for the core Grammar's component, token and composition contracts.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -41,7 +41,7 @@
41
41
  "node": ">=22"
42
42
  },
43
43
  "peerDependencies": {
44
- "@starci/eslint-canon-fe": "9.9.2",
44
+ "@starci/eslint-canon-fe": "9.9.6",
45
45
  "eslint": ">=9",
46
46
  "typescript": ">=5.9"
47
47
  },
@@ -31,35 +31,35 @@ pins:
31
31
  source: packages/event-stream/package.json
32
32
  why: 'the one server-sent-events client of every front end (fe-stack event-stream, owner:event-stream-package): the transport client layer (modules/api/sse/clients) creates one instance for the app with the bearer token source and the stream operations follow on it; it carries Last-Event-ID resume, the capped doubling backoff, the heartbeat timeout, the single 401 renewal and the useSWRSubscription adapter, so no app keeps a hand-written reader.'
33
33
  '@starci/grammar':
34
- version: 0.21.2
34
+ version: 0.21.6
35
35
  group: starci
36
36
  install: registry
37
37
  side: fe
38
38
  source: packages/grammar/package.json
39
39
  why: 'the grammar front ends read: the brand layer sets `--font-sans` and `--font-mono` and the grammar reads them; it carries the Input tel kind, the copyable and read-only Input, the IconButton disclosure props and count badge, ChatBubble, FillViewport, Textarea mentions and Enter-to-send, the leading PrimaryRailLayout rail, the plate-less Image, ListRow, the soft Alert, Progress steps, the floating primary IconButton, FlowGraph, the STATE-8 loading views and the bordered selectable TagGroup chips. The runtime source version wins for a @starci package.'
40
40
  '@starci/eslint-canon-be':
41
- version: 3.11.9
41
+ version: 3.11.13
42
42
  group: starci
43
43
  install: registry
44
44
  side: be
45
45
  source: packages/eslint-canon-be/package.json
46
46
  why: 'the back-end ESLint canon: `loadHfs(import.meta.url)` of be/eslint.config.mjs finds the app-root hfs.json (kind app) and gives every linted file the view of the be side, and the project graph is built per side; its bundled runtime copies (slots, canon-pins, failure codes, the architecture machine) put .starcistacks and .sops.yaml at the app root; `starciBeConfig({ hfs: loadHfs(import.meta.url) })` is the typed factory and the BE-CONVENTION laws are its rules.'
47
47
  '@starci/eslint-canon-fe':
48
- version: 9.9.2
48
+ version: 9.9.6
49
49
  group: starci
50
50
  install: registry
51
51
  side: fe
52
52
  source: packages/eslint-canon-fe/package.json
53
53
  why: 'the front-end ESLint canon: `loadHfs(import.meta.url)` of fe/eslint.config.mjs finds the app-root hfs.json (kind app) and gives every linted file the view of the fe side, and the project graph is built per side; its bundled runtime copies (slots, canon-pins, failure codes, the architecture machine) put .starcistacks and .sops.yaml at the app root; the front end has no tests (FE_NO_TESTS R97 in hfs) and no-vietnamese-in-source (R91) applies.'
54
54
  '@starci/eslint-grammar-core':
55
- version: 0.21.2
55
+ version: 0.21.6
56
56
  group: starci
57
57
  install: registry
58
58
  side: fe
59
59
  source: packages/eslint-grammar-core/package.json
60
60
  why: 'the StarCi Grammar component API lint, versioned with @starci/grammar; front ends compose this family package with the universal FE canon.'
61
61
  '@starci/eslint-grammar-offset-pop':
62
- version: 0.21.2
62
+ version: 0.21.6
63
63
  group: starci
64
64
  install: registry
65
65
  side: fe
@@ -106,7 +106,7 @@ pins:
106
106
  source: packages/ai-router/package.json
107
107
  why: 'the AI pool router of a back end: a NestJS module that routes OpenAI-compatible chat, stream and embeddings calls across keys, models and providers, with @starci/ai-router/testing for its specs; @starci/jest-preset compiles it as an ESM-only dependency.'
108
108
  '@starci/hfs':
109
- version: 4.17.2
109
+ version: 5.0.2
110
110
  group: starci
111
111
  install: registry
112
112
  side: both