@justai/core 0.15.0 → 0.16.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +16 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justai/core",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "The framework-free heart of the persona shell — the load-bearing behaviour (auth capture, reveal, ready) as plain strings, so Astro and Next inject the SAME logic instead of each re-writing it.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
package/src/index.js CHANGED
@@ -960,7 +960,22 @@ export function toolbarMark(iconSvg, options) {
960
960
  .replace(new RegExp(`(href|xlink:href)="#${safe}"`, "g"), `$1="#${id}-${ns}"`);
961
961
  }
962
962
 
963
- // 4. it is decoration in the row — the link around it carries the name
963
+ // queries: the track ring disappears in the toolbar · white on white · the dial is missing in light
964
+ // mode · rgba(255,255,255,0.16) · half the mark vanished when the ground came off
965
+ //
966
+ // 4. WHAT ONLY MADE SENSE ON THE TILE. Five marks in the fleet draw an unlit "track" — a dial, the
967
+ // ring a progress arc runs on — as `rgba(255,255,255,0.16)`. White at 16% is a correct choice
968
+ // ON the near-black tile and a meaningless one off it: in a light toolbar it is white on white,
969
+ // so the mark arrives with a piece silently missing, and only in one colour scheme. time's dial
970
+ // vanished exactly this way the day it was drawn, leaving the two hands reading as an L.
971
+ //
972
+ // It becomes the row's own ink at the same weight. This is not recolouring the mark — the rule
973
+ // above still stands, and the FIGURE is left alone. It is the same act as removing the ground:
974
+ // the tile is gone, so what was drawn against the tile has to be told what it is against now.
975
+ s = s.replace(/(stroke|fill)="rgba\(\s*255\s*,\s*255\s*,\s*255\s*,\s*([\d.]+)\s*\)"/g,
976
+ (_, prop, a) => `${prop}="currentColor" ${prop}-opacity="${a}"`);
977
+
978
+ // 5. it is decoration in the row — the link around it carries the name
964
979
  s = s.replace(/\srole="img"/, "").replace(/\saria-label="[^"]*"/, "");
965
980
  if (!/aria-hidden/.test(s)) s = s.replace(/<svg /, '<svg aria-hidden="true" ');
966
981
  if (o.class) s = s.replace(/<svg /, `<svg class="${o.class}" `);