@ai-matrx/records-ui 0.116.28 → 0.116.30
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 +29 -1
- package/dist/{chunk-5EFM2G2O.js → chunk-2SI7LSP3.js} +9 -7
- package/dist/chunk-2SI7LSP3.js.map +1 -0
- package/dist/index.cjs +128 -140
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +121 -135
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +7 -6
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-5EFM2G2O.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -24,11 +24,39 @@
|
|
|
24
24
|
- Tests: `vitest.setup.ts` gives jsdom a no-op `performance.mark` / `measure`.
|
|
25
25
|
- **New subpath `@ai-matrx/records-ui/data-source`:** `recordsDataSource`, `personActor` and the who-changed words (`whenWords`, `actorWords`, `actorBadge`, `lastChangeSentence`, `SOMEBODY`, `THE_SYSTEM`) alone. `/helpers` also carries the field-type words, the colour resolver and the table builders, which read `@ai-matrx/records/core`; this entry reaches `@ai-matrx/kit` only, and shares the one data-source cache with `/helpers` and the root. Additive. Consumer action: a shell-reachable service that only binds its supabase client or says when imports from `/data-source`.
|
|
26
26
|
|
|
27
|
-
## 0.116.
|
|
27
|
+
## 0.116.30
|
|
28
28
|
|
|
29
29
|
UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
|
|
30
30
|
Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records-ui/src`.
|
|
31
31
|
|
|
32
|
+
## 0.116.28
|
|
33
|
+
|
|
34
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
35
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
36
|
+
Diff: `git diff 39f51f853b f18c1407c2 -- apps/shared/records-ui/src`
|
|
37
|
+
|
|
38
|
+
Changed shipped source files (7):
|
|
39
|
+
- `apps/shared/records-ui/src/ChartBlock.tsx`
|
|
40
|
+
- `apps/shared/records-ui/src/Condition.tsx`
|
|
41
|
+
- `apps/shared/records-ui/src/FieldEditor.tsx`
|
|
42
|
+
- `apps/shared/records-ui/src/FieldRetype.tsx`
|
|
43
|
+
- `apps/shared/records-ui/src/ListView.tsx`
|
|
44
|
+
- `apps/shared/records-ui/src/ViewSwitcher.tsx`
|
|
45
|
+
- `apps/shared/records-ui/src/chartFrame.tsx`
|
|
46
|
+
|
|
47
|
+
## 0.116.27
|
|
48
|
+
|
|
49
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
50
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
51
|
+
Diff: `git diff 0eb2f8603b 39f51f853b -- apps/shared/records-ui/src`
|
|
52
|
+
|
|
53
|
+
Changed shipped source files (5):
|
|
54
|
+
- `apps/shared/records-ui/src/buttonCell.tsx`
|
|
55
|
+
- `apps/shared/records-ui/src/formattedValue.tsx`
|
|
56
|
+
- `apps/shared/records-ui/src/readableLink.ts`
|
|
57
|
+
- `apps/shared/records-ui/src/structuredValue.tsx`
|
|
58
|
+
- `apps/shared/records-ui/src/values.tsx`
|
|
59
|
+
|
|
32
60
|
## 0.116.26
|
|
33
61
|
|
|
34
62
|
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
@@ -433,6 +433,7 @@ import {
|
|
|
433
433
|
MEASURE_UNITS,
|
|
434
434
|
TYPE_WEIGHTS,
|
|
435
435
|
contrastLevel,
|
|
436
|
+
TEXT_CONTRAST,
|
|
436
437
|
contrastRatio,
|
|
437
438
|
readColorPair,
|
|
438
439
|
MOTION_EASINGS,
|
|
@@ -481,8 +482,8 @@ function colorPairContrast(pair, format, context) {
|
|
|
481
482
|
}
|
|
482
483
|
return out;
|
|
483
484
|
}
|
|
484
|
-
function ContrastMark({ ratio }) {
|
|
485
|
-
const level = contrastLevel(ratio);
|
|
485
|
+
function ContrastMark({ ratio, min }) {
|
|
486
|
+
const level = contrastLevel(ratio, min);
|
|
486
487
|
const said2 = `${ratio}:1`;
|
|
487
488
|
return /* @__PURE__ */ jsxs2(
|
|
488
489
|
"span",
|
|
@@ -505,12 +506,12 @@ function ColorPairView({ value, format }) {
|
|
|
505
506
|
/* @__PURE__ */ jsxs2("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
506
507
|
/* @__PURE__ */ jsx2(Swatch, { color: pair.light }),
|
|
507
508
|
/* @__PURE__ */ jsx2("code", { className: "font-mono text-xs uppercase", children: pair.light }),
|
|
508
|
-
contrast.light !== void 0 ? /* @__PURE__ */ jsx2(ContrastMark, { ratio: contrast.light }) : null
|
|
509
|
+
contrast.light !== void 0 ? /* @__PURE__ */ jsx2(ContrastMark, { ratio: contrast.light, min: pair.min }) : null
|
|
509
510
|
] }),
|
|
510
511
|
/* @__PURE__ */ jsxs2("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
511
512
|
/* @__PURE__ */ jsx2(Swatch, { color: pair.dark ?? pair.light }),
|
|
512
513
|
/* @__PURE__ */ jsx2("code", { className: cn2("font-mono text-xs uppercase", !pair.dark && "text-muted-foreground"), children: pair.dark ?? "Inherits light" }),
|
|
513
|
-
contrast.dark !== void 0 ? /* @__PURE__ */ jsx2(ContrastMark, { ratio: contrast.dark }) : null
|
|
514
|
+
contrast.dark !== void 0 ? /* @__PURE__ */ jsx2(ContrastMark, { ratio: contrast.dark, min: pair.min }) : null
|
|
514
515
|
] })
|
|
515
516
|
] });
|
|
516
517
|
}
|
|
@@ -612,14 +613,15 @@ function colorPairChecks(value, format, context) {
|
|
|
612
613
|
const out = [];
|
|
613
614
|
for (const part of ["light", "dark"]) {
|
|
614
615
|
const ratio = contrast[part];
|
|
615
|
-
if (ratio === void 0 || contrastLevel(ratio) === "pass") continue;
|
|
616
|
+
if (ratio === void 0 || contrastLevel(ratio, pair.min) === "pass") continue;
|
|
616
617
|
const color = part === "light" ? pair.light : pair.dark ?? pair.light;
|
|
618
|
+
const need = pair.min ?? TEXT_CONTRAST;
|
|
617
619
|
out.push({
|
|
618
620
|
part,
|
|
619
621
|
message: `hard to read on ${ground}`,
|
|
620
622
|
fix: {
|
|
621
623
|
label: "Fix with AI",
|
|
622
|
-
ask: `The ${part} color ${color} reads at ${ratio}:1 on ${ground}. Suggest the nearest color that reaches
|
|
624
|
+
ask: `The ${part} color ${color} reads at ${ratio}:1 on ${ground}. Suggest the nearest color that reaches ${need}:1 and keeps its hue.`
|
|
623
625
|
}
|
|
624
626
|
});
|
|
625
627
|
}
|
|
@@ -12320,4 +12322,4 @@ export {
|
|
|
12320
12322
|
RecordNameText,
|
|
12321
12323
|
HeldChangeDecision
|
|
12322
12324
|
};
|
|
12323
|
-
//# sourceMappingURL=chunk-
|
|
12325
|
+
//# sourceMappingURL=chunk-2SI7LSP3.js.map
|