@kirana-style/angular 0.4.1 → 0.4.3

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,5 +1,93 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.4.3](https://github.com/kirana-style/kirana/compare/v0.4.2...v0.4.3) (2026-11-26)
4
+
5
+
6
+ ### Features
7
+
8
+ * a registry names the runtime a base needs, and ui init checks it ([#331](https://github.com/kirana-style/kirana/pull/331)) ([15a0f7a](https://github.com/kirana-style/kirana/commit/15a0f7ab4d246f2cb9c958bbb192feb228227e78))
9
+ * diagnostics name the fix, and the site says what the compiler really does ([#349](https://github.com/kirana-style/kirana/pull/349)) ([445ea16](https://github.com/kirana-style/kirana/commit/445ea16ba0e4ef01dd693feb83c1bddb051047dc))
10
+ * states for kirana ui primitives 0.4 and ui-sdk beta.17 ([#345](https://github.com/kirana-style/kirana/pull/345)) ([dd5bec3](https://github.com/kirana-style/kirana/commit/dd5bec328c925fa8942d624a91869aa4197acfe5))
11
+ * states for kirana ui primitives 0.4.1 ([#351](https://github.com/kirana-style/kirana/pull/351)) ([844947a](https://github.com/kirana-style/kirana/commit/844947a47552190dcd03466bd83b93e82914c4be))
12
+ * the browser engine writes a production build's dense names ([#352](https://github.com/kirana-style/kirana/pull/352)) ([f94cb83](https://github.com/kirana-style/kirana/commit/f94cb8369d6e1281456cc9e50313615716c7d1d0))
13
+ * ui add tells a reformatted file from a changed one ([#334](https://github.com/kirana-style/kirana/pull/334)) ([de3cfbb](https://github.com/kirana-style/kirana/commit/de3cfbb71d7bbfa99a565a05e1389bb3feeeac03))
14
+ * ui-sdk's states name every attribute its parts write ([#330](https://github.com/kirana-style/kirana/pull/330)) ([e071b60](https://github.com/kirana-style/kirana/commit/e071b6030fb3afe5ef867b3d609602e9d45924b0))
15
+
16
+
17
+ ### Bug fixes
18
+
19
+ * editor completions offer the keywords css writes in mixed case ([#348](https://github.com/kirana-style/kirana/pull/348)) ([f3ee09d](https://github.com/kirana-style/kirana/commit/f3ee09daf2b2972189d49df2c2914fd70530e6af))
20
+ * jsx detection follows the tsconfig's extends ([#329](https://github.com/kirana-style/kirana/pull/329)) ([88d6feb](https://github.com/kirana-style/kirana/commit/88d6febb6e76ac45d1bb8f30079b96938c6ddf1b))
21
+ * mdn-data 2.38.1 for color-interpolation and margin-trim values ([#346](https://github.com/kirana-style/kirana/pull/346)) ([b08789c](https://github.com/kirana-style/kirana/commit/b08789c96b7950c19f297ff7c118e8cac8081211))
22
+ * ui init gives a static page its colour scheme before the script runs ([#342](https://github.com/kirana-style/kirana/pull/342)) ([fc8fdb9](https://github.com/kirana-style/kirana/commit/fc8fdb917633aac27faa58a2c563e4644942d559))
23
+ * ui init on angular cli imports the document first ([#332](https://github.com/kirana-style/kirana/pull/332)) ([566284e](https://github.com/kirana-style/kirana/commit/566284e76b7b7719009cb97fce980a90105289bd))
24
+ * ui init refuses flags and a template its preset disagrees with ([#341](https://github.com/kirana-style/kirana/pull/341)) ([b1e2b9a](https://github.com/kirana-style/kirana/commit/b1e2b9a6c6bbe6c79fd4269c1be698c121a94ef8))
25
+ * ui preset and init hold a preset to the project's framework ([#347](https://github.com/kirana-style/kirana/pull/347)) ([bcf6fbe](https://github.com/kirana-style/kirana/commit/bcf6fbe9d18f534011fde69e09d34945104ccc3a))
26
+
27
+
28
+ ### Documentation
29
+
30
+ * dense name figures read the lab's hashed build, not dense against dense ([#353](https://github.com/kirana-style/kirana/pull/353)) ([32634b5](https://github.com/kirana-style/kirana/commit/32634b5cc90ca0e8de225e97ab97fa7048605fc8))
31
+
32
+
33
+ ### Dependencies
34
+
35
+ * bump the minor-and-patch group in /packages/kirana with 3 updates ([#338](https://github.com/kirana-style/kirana/pull/338)) ([5c177aa](https://github.com/kirana-style/kirana/commit/5c177aa11b9ef141d39bbab308f82e26db8b50f9))
36
+ * bump the oxc group in /packages/kirana with 8 updates ([#337](https://github.com/kirana-style/kirana/pull/337)) ([e7b3648](https://github.com/kirana-style/kirana/commit/e7b364802e482a404e262638fdb30d4f6d9a6fe8))
37
+ * bun minor and patch group, 21 updates, without mdn-data ([#340](https://github.com/kirana-style/kirana/pull/340)) ([d78aaed](https://github.com/kirana-style/kirana/commit/d78aaed3f7753772b457a1544a6f55c5d22c8dcf))
38
+ * vite+ 1.8.0, with vitest 5.1.1 and tsrs beta.tsrs4 ([#335](https://github.com/kirana-style/kirana/pull/335)) ([2d32f11](https://github.com/kirana-style/kirana/commit/2d32f11170177bd1410765b02e3130140fbc5aba))
39
+
40
+ ## [0.4.2](https://github.com/kirana-style/kirana/compare/v0.4.1...v0.4.2) (2026-11-20)
41
+
42
+
43
+ ### Features
44
+
45
+ * a registry's index names its default base per framework ([#313](https://github.com/kirana-style/kirana/pull/313)) ([78fc69a](https://github.com/kirana-style/kirana/commit/78fc69af98a0faece93ec559511e3224183ba408))
46
+ * solid 2: sx typed on @solidjs/web, detected, and a ui template ([#323](https://github.com/kirana-style/kirana/pull/323)) ([ebe87a1](https://github.com/kirana-style/kirana/commit/ebe87a1d153550b9457c9a67fefb8efde2a043e2))
47
+ * states for kirana ui primitives 0.2.0 and ui-sdk beta.9 ([#319](https://github.com/kirana-style/kirana/pull/319)) ([3416593](https://github.com/kirana-style/kirana/commit/3416593feb9c0b3176d7812fa53d017a5bf8105a))
48
+ * states for kirana ui primitives 0.3.0 and ng-primitives 0.132.0 ([#327](https://github.com/kirana-style/kirana/pull/327)) ([f2dd41b](https://github.com/kirana-style/kirana/commit/f2dd41be4aa5a24b11fd3fa566ca72feeb5e23ab))
49
+ * states vocabularies for ui-sdk and kirana ui primitives ([#312](https://github.com/kirana-style/kirana/pull/312)) ([56533a2](https://github.com/kirana-style/kirana/commit/56533a2f0ad837703dac3d2d7ae673bbf35c0037))
50
+ * ui build's versions per framework and base ([#324](https://github.com/kirana-style/kirana/pull/324)) ([0f03b4d](https://github.com/kirana-style/kirana/commit/0f03b4db96bb35f32d3387e64b172ac8dddec0c4))
51
+
52
+
53
+ ### Bug fixes
54
+
55
+ * a template's anchor counts in a block that imports no kirana ([#289](https://github.com/kirana-style/kirana/pull/289)) ([64aff61](https://github.com/kirana-style/kirana/commit/64aff61ae7761016c1078454e9d0774b4ea912d7))
56
+ * an inlined props() call is parenthesised, so an arrow can return it ([#322](https://github.com/kirana-style/kirana/pull/322)) ([32eec93](https://github.com/kirana-style/kirana/commit/32eec930a05fc7f9268f1b0611bd2d2b71957d0b))
57
+ * bits ui states name the side and alignment of every floating content ([#304](https://github.com/kirana-style/kirana/pull/304)) ([60332db](https://github.com/kirana-style/kirana/commit/60332dbdc742db5a86474245bf864e3c13a7388b))
58
+ * linux engines load beside another kirana engine ([#306](https://github.com/kirana-style/kirana/pull/306)) ([25fc9fe](https://github.com/kirana-style/kirana/commit/25fc9fe2096281819fb5c5d26fb99599a878d599))
59
+ * reka ui states name every data-state value reka writes ([#290](https://github.com/kirana-style/kirana/pull/290)) ([7d136c0](https://github.com/kirana-style/kirana/commit/7d136c01f773ca17feb8c712b98ec1fc37c2ea0c))
60
+ * the dev stylesheet follows the compiles when vite's hmr is off ([#315](https://github.com/kirana-style/kirana/pull/315)) ([f67dd0e](https://github.com/kirana-style/kirana/commit/f67dd0e43361d35598b5c5791d7fc4066040757f))
61
+ * the eslint rule reads a vue, svelte or astro file's script blocks ([#291](https://github.com/kirana-style/kirana/pull/291)) ([d964543](https://github.com/kirana-style/kirana/commit/d9645439f55d467b907d955a7e32856ac1f1cacf))
62
+ * the npm release ends once its last package is served ([#283](https://github.com/kirana-style/kirana/pull/283)) ([5a87594](https://github.com/kirana-style/kirana/commit/5a87594c04cf40f017e08285bbacc28898061115))
63
+ * ui init on angular cli lists stylesheets in angular.json ([#325](https://github.com/kirana-style/kirana/pull/325)) ([318c5ff](https://github.com/kirana-style/kirana/commit/318c5ffd66f31f0c0ec6471b01a23939c013747e))
64
+ * ui init sets up the document on nuxt and sveltekit ([#288](https://github.com/kirana-style/kirana/pull/288)) ([7a486db](https://github.com/kirana-style/kirana/commit/7a486db1f49c3024e6c72157f769fdafcb38fe2f))
65
+ * ui installs a workspace font's package in the app that imports it ([#287](https://github.com/kirana-style/kirana/pull/287)) ([e646c1b](https://github.com/kirana-style/kirana/commit/e646c1b9ced12f14f3e187c607e07b9cc1ecd0bb))
66
+
67
+
68
+ ### Performance
69
+
70
+ * styles that read tokens compile once a session ([#305](https://github.com/kirana-style/kirana/pull/305)) ([f765b9e](https://github.com/kirana-style/kirana/commit/f765b9e5d0af6c56c8e63b3c517817be702c5b90))
71
+ * the lint rules read the project's diagnostics once per run ([#311](https://github.com/kirana-style/kirana/pull/311)) ([f634a82](https://github.com/kirana-style/kirana/commit/f634a82e6ec06bd159088c0b71b0ec431249e2b7))
72
+
73
+
74
+ ### Documentation
75
+
76
+ * kirana ui on every base, and the docs agree with what shipped ([#328](https://github.com/kirana-style/kirana/pull/328)) ([596629b](https://github.com/kirana-style/kirana/commit/596629bcf135d6a67037e84f2d96aaeb7f868cc6))
77
+ * package managers as pills in every install block ([#286](https://github.com/kirana-style/kirana/pull/286)) ([9134ac3](https://github.com/kirana-style/kirana/commit/9134ac3d78d813aeb952b266214b217891e370b3))
78
+ * take the benchmarks of kirana 0.4.1 from kirana-lab ([#292](https://github.com/kirana-style/kirana/pull/292)) ([b286d37](https://github.com/kirana-style/kirana/commit/b286d377d8182beeaa66ebbbe7d2a4ce0f60c4e0))
79
+ * take the benchmarks of kirana 0.4.1 from kirana-lab ([#316](https://github.com/kirana-style/kirana/pull/316)) ([4723416](https://github.com/kirana-style/kirana/commit/4723416042bf68e676ca1b9e23dc1d22ad12a570))
80
+
81
+
82
+ ### Dependencies
83
+
84
+ * bump string_wizard from 1.2.16 to 1.3.0 in /packages/kirana in the minor-and-patch group ([#296](https://github.com/kirana-style/kirana/pull/296)) ([219f589](https://github.com/kirana-style/kirana/commit/219f5897e7b0cc9ee47eb833af53e164f8a3e879))
85
+ * bump the minor-and-patch group with 5 updates ([#318](https://github.com/kirana-style/kirana/pull/318)) ([8023d2a](https://github.com/kirana-style/kirana/commit/8023d2ae1a6f95dbf39f50e79d5bb3d786825dfe))
86
+ * emnapi 2.0.0-beta.3, vite+ 1.5.1 and 24 minor updates ([#302](https://github.com/kirana-style/kirana/pull/302)) ([88076a3](https://github.com/kirana-style/kirana/commit/88076a361fca333a0f0e9690129d2ca68c2dbf41))
87
+ * oxc 0.158.0 ([#301](https://github.com/kirana-style/kirana/pull/301)) ([da376c6](https://github.com/kirana-style/kirana/commit/da376c6d94df5517bec85727e1e8cdbdb598dc1d))
88
+ * vite+ 1.6.0, napi 3.16.2 and minor updates ([#309](https://github.com/kirana-style/kirana/pull/309)) ([9179801](https://github.com/kirana-style/kirana/commit/9179801ccdf657735959aeccbcbd4a738dd84689))
89
+ * vite+ 1.7.0, type checked by tsrs, and string_wizard 1.3.2 ([#321](https://github.com/kirana-style/kirana/pull/321)) ([3216b2c](https://github.com/kirana-style/kirana/commit/3216b2ceac6a6f9eefe4f9419a982915221592a2))
90
+
3
91
  ## [0.4.1](https://github.com/kirana-style/kirana/compare/v0.4.0...v0.4.1) (2026-11-09)
4
92
 
5
93
 
package/README.md CHANGED
@@ -31,6 +31,8 @@ export class Card {
31
31
  - **Angular CLI.** In `angular.json`, `@kirana-style/angular:application` and `@kirana-style/angular:dev-server`
32
32
  replace `@angular/build:application` and `:dev-server`, with the same options. They compile the
33
33
  source root into `.kirana/` (ignore it), hand Angular the copy through `fileReplacements`, and add
34
- `.kirana/kirana.css` to `styles`.
34
+ `.kirana/kirana.css` to `styles`, last, unless it is listed there already: `kirana-style ui init`
35
+ lists it before a design system's stylesheets. The entry (`main.ts`) is not compiled, so code that
36
+ calls `props()` goes in a module it imports.
35
37
 
36
38
  `kirana-style init` sets up either. How it works and what it costs: `design-notes/angular.md`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kirana-style/angular",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "Kirana for Angular: the [sx] directive, the Analog (Vite) plugin and Angular CLI builders.",
5
5
  "license": "MIT",
6
6
  "author": "The Kirana authors",
@@ -30,14 +30,14 @@
30
30
  "./builders.json": "./builders.json"
31
31
  },
32
32
  "dependencies": {
33
- "@kirana-style/compiler": "0.4.1",
34
- "@kirana-style/core": "0.4.1"
33
+ "@kirana-style/compiler": "0.4.3",
34
+ "@kirana-style/core": "0.4.3"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@angular/core": ">=20.0.0",
38
38
  "@angular/build": ">=20.0.0",
39
39
  "@angular-devkit/architect": ">=0.2000.0",
40
- "@kirana-style/vite": "0.4.1"
40
+ "@kirana-style/vite": "0.4.3"
41
41
  },
42
42
  "builders": "./builders.json",
43
43
  "peerDependenciesMeta": {
@@ -586,6 +586,18 @@
586
586
  }
587
587
  },
588
588
  "additionalProperties": false
589
+ },
590
+ {
591
+ "type": "object",
592
+ "properties": {
593
+ "format": {
594
+ "type": "string",
595
+ "description": "Defines the file layout of prerendered pages. 'directory': '/foo' is written to 'foo/index.html'. 'file': '/foo' is written to 'foo.html', which some hosting services serve for '/foo' without a redirect to '/foo/'. The root route of the application and of each locale is always written to 'index.html'. Only considered when the build does not produce a server.",
596
+ "enum": ["directory", "file"]
597
+ }
598
+ },
599
+ "additionalProperties": false,
600
+ "required": ["format"]
589
601
  }
590
602
  ]
591
603
  },
package/src/builders.d.ts CHANGED
@@ -5,7 +5,8 @@ import { ApplicationBuilderOptions, DevServerBuilderOptions } from "@angular/bui
5
5
  * Application options with the mirror's replacements and the stylesheet added. The entry files
6
6
  * (`browser`, `server`) are not replaced: Angular type-checks only the files its tsconfig lists, and
7
7
  * an entry it reads from a replacement it would bundle unchecked. An entry holds no styles in an
8
- * Angular app; the components it imports are replaced.
8
+ * Angular app; the components it imports are replaced. The stylesheet goes last, unless `styles`
9
+ * lists it already: `kirana-style ui init` lists it before the design system's (KF-131).
9
10
  */
10
11
  export declare function withMirror<Options extends {
11
12
  fileReplacements?: unknown[];
package/src/builders.js CHANGED
@@ -23,14 +23,15 @@ async function sourceRootOf(context) {
23
23
  * Application options with the mirror's replacements and the stylesheet added. The entry files
24
24
  * (`browser`, `server`) are not replaced: Angular type-checks only the files its tsconfig lists, and
25
25
  * an entry it reads from a replacement it would bundle unchecked. An entry holds no styles in an
26
- * Angular app; the components it imports are replaced.
26
+ * Angular app; the components it imports are replaced. The stylesheet goes last, unless `styles`
27
+ * lists it already: `kirana-style ui init` lists it before the design system's (KF-131).
27
28
  */
28
29
  function withMirror(options, mirror) {
29
30
  const entries = new Set([options.browser, options.server].map((entry) => path.normalize(String(entry))));
30
31
  return {
31
32
  ...options,
32
33
  fileReplacements: [...options.fileReplacements ?? [], ...mirror.replacements.filter((replacement) => !entries.has(path.normalize(replacement.replace)))],
33
- styles: [...options.styles ?? [], STYLESHEET]
34
+ styles: (options.styles ?? []).some((entry) => path.normalize(typeof entry === "string" ? entry : entry.input) === STYLESHEET) ? options.styles : [...options.styles ?? [], STYLESHEET]
34
35
  };
35
36
  }
36
37
  /** Prints the mirror's warnings and errors through the builder's logger (infos stay quiet). */
package/src/mirror.js CHANGED
@@ -1,5 +1,5 @@
1
- import { copyFileSync, existsSync, mkdirSync, readFileSync, readdirSync, rmSync, watch, writeFileSync } from "node:fs";
2
1
  import path from "node:path";
2
+ import { copyFileSync, existsSync, mkdirSync, readFileSync, readdirSync, rmSync, watch, writeFileSync } from "node:fs";
3
3
  import { Driver, formatDiagnostics } from "@kirana-style/compiler";
4
4
  import { SKIPPED, shouldCompile } from "@kirana-style/compiler/host";
5
5
  // src/mirror.ts