@kirana-style/angular 0.4.2 → 0.4.4

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,67 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.4.4](https://github.com/kirana-style/kirana/compare/v0.4.3...v0.4.4) (2026-11-30)
4
+
5
+
6
+ ### Features
7
+
8
+ * a key written with & under a target is the element's own state ([#357](https://github.com/kirana-style/kirana/pull/357)) ([a4fe3f6](https://github.com/kirana-style/kirana/commit/a4fe3f600af5075b1b9b962e3da3da77be2e4857))
9
+ * a template's readme names the package manager's own commands ([#365](https://github.com/kirana-style/kirana/pull/365)) ([8d02940](https://github.com/kirana-style/kirana/commit/8d029404a3c428a9c6fc58b7cfebee802997a57e))
10
+ * angular icons from @lucide/angular, on a host, checked by build ([#359](https://github.com/kirana-style/kirana/pull/359)) ([9fdcaa0](https://github.com/kirana-style/kirana/commit/9fdcaa0caadb67737ee1f62773ca1c64d51e6e48))
11
+ * registry builds can be keyed by framework and base ([#361](https://github.com/kirana-style/kirana/pull/361)) ([6fe117d](https://github.com/kirana-style/kirana/commit/6fe117d56ade5348ff35c793f736e8ba02a6d502))
12
+ * registry items take an empty build and files built per base ([#355](https://github.com/kirana-style/kirana/pull/355)) ([065765b](https://github.com/kirana-style/kirana/commit/065765b207f03557e31da21736cfa2df3006bf59))
13
+
14
+
15
+ ### Bug fixes
16
+
17
+ * init --template runs under deno and says how to go on ([#360](https://github.com/kirana-style/kirana/pull/360)) ([dfd2859](https://github.com/kirana-style/kirana/commit/dfd2859033601a70de51e22f47cbaefaf9121634))
18
+ * resolve and read installed packages under yarn plug'n'play ([#364](https://github.com/kirana-style/kirana/pull/364)) ([642a469](https://github.com/kirana-style/kirana/commit/642a4690218f56b2fe84c78a0401b59248d634ed))
19
+ * token-namespace-shared counts only the token groups a project uses ([#363](https://github.com/kirana-style/kirana/pull/363)) ([f1eb992](https://github.com/kirana-style/kirana/commit/f1eb9929b620c7e974591f9105933de053e3396e))
20
+ * ui add counts infos only in the project's own files ([#362](https://github.com/kirana-style/kirana/pull/362)) ([c0b8a88](https://github.com/kirana-style/kirana/commit/c0b8a88c25b147b3e3799767cb713c94a06360de))
21
+ * ui add, init, update and preset print infos as a count ([#356](https://github.com/kirana-style/kirana/pull/356)) ([d0990fd](https://github.com/kirana-style/kirana/commit/d0990fd584c2b76d68ffe306219517151afbb03b))
22
+
23
+
24
+ ### Performance
25
+
26
+ * compiled modules drop the constants only their styles read ([#354](https://github.com/kirana-style/kirana/pull/354)) ([fda3549](https://github.com/kirana-style/kirana/commit/fda35494d63f9cb5907459c1dbde28fcf3ac3e77))
27
+
28
+ ## [0.4.3](https://github.com/kirana-style/kirana/compare/v0.4.2...v0.4.3) (2026-11-26)
29
+
30
+
31
+ ### Features
32
+
33
+ * 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))
34
+ * 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))
35
+ * 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))
36
+ * 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))
37
+ * 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))
38
+ * 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))
39
+ * 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))
40
+
41
+
42
+ ### Bug fixes
43
+
44
+ * 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))
45
+ * 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))
46
+ * 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))
47
+ * 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))
48
+ * 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))
49
+ * 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))
50
+ * 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))
51
+
52
+
53
+ ### Documentation
54
+
55
+ * 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))
56
+
57
+
58
+ ### Dependencies
59
+
60
+ * 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))
61
+ * 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))
62
+ * 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))
63
+ * 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))
64
+
3
65
  ## [0.4.2](https://github.com/kirana-style/kirana/compare/v0.4.1...v0.4.2) (2026-11-20)
4
66
 
5
67
 
package/README.md CHANGED
@@ -22,7 +22,8 @@ export class Card {
22
22
  ```
23
23
 
24
24
  - **`SxDirective`** merges the handles with Kirana's runtime and adds and removes only the classes
25
- and custom properties it set. `provideKirana({ prefix })` matches a `names.prefix` other than `k`.
25
+ and custom properties it set, adding its classes back when a component on the same element rewrites
26
+ the whole `class` attribute (`@lucide/angular`'s icons). `provideKirana({ prefix })` matches a `names.prefix` other than `k`.
26
27
  - **Parts.** A directive that takes `sx` merges it with its own styles through `partSx(own, sx)`,
27
28
  binds the `class` and `style` it returns to its host, types the input `SxInput`, and lists
28
29
  `provideSxPart()` in its `providers`, which keeps `SxDirective` off its element.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kirana-style/angular",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
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.2",
34
- "@kirana-style/core": "0.4.2"
33
+ "@kirana-style/compiler": "0.4.4",
34
+ "@kirana-style/core": "0.4.4"
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.2"
40
+ "@kirana-style/vite": "0.4.4"
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
  },
@@ -15,7 +15,7 @@ export declare function provideKirana(options: {
15
15
  export declare const SX_PART: i0.InjectionToken<boolean>;
16
16
  /** The provider that marks a part's element, so `SxDirective` leaves `[sx]` to the part. */
17
17
  export declare function provideSxPart(): i0.Provider;
18
- export declare class SxDirective implements i0.OnChanges {
18
+ export declare class SxDirective implements i0.OnChanges, i0.AfterViewChecked {
19
19
  #private;
20
20
  /**
21
21
  * The handles: one, or an array with falsy guards (`[styles.card, active && styles.on]`). Compiled
@@ -24,6 +24,12 @@ export declare class SxDirective implements i0.OnChanges {
24
24
  */
25
25
  sx: SxInput;
26
26
  ngOnChanges(): void;
27
+ /**
28
+ * Adds back a class it applied that the element lost: a component on the same element that binds
29
+ * its whole `class` attribute from its host (`[attr.class]`, as `@lucide/angular`'s icons do on
30
+ * the `<svg>`) writes it after `ngOnChanges`, in the same change detection (KF-148).
31
+ */
32
+ ngAfterViewChecked(): void;
27
33
  static ɵfac: i0.ɵɵFactoryDeclaration<SxDirective, never>;
28
34
  static ɵdir: i0.ɵɵDirectiveDeclaration<SxDirective, "[sx]", never, {
29
35
  sx: {
@@ -57,6 +57,15 @@ var SxDirective = class SxDirective {
57
57
  if (this.#part) return;
58
58
  this.#applied = applySx(this.#renderer, this.#element, this.#applied, this.sx, this.#prefix);
59
59
  }
60
+ /**
61
+ * Adds back a class it applied that the element lost: a component on the same element that binds
62
+ * its whole `class` attribute from its host (`[attr.class]`, as `@lucide/angular`'s icons do on
63
+ * the `<svg>`) writes it after `ngOnChanges`, in the same change detection (KF-148).
64
+ */
65
+ ngAfterViewChecked() {
66
+ const { classList } = this.#element;
67
+ for (const name of this.#applied.classes) if (!classList.contains(name)) this.#renderer.addClass(this.#element, name);
68
+ }
60
69
  static ɵfac = i0.ɵɵngDeclareFactory({
61
70
  minVersion: "12.0.0",
62
71
  version: "22.2.1",
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