@ai-matrx/kit 0.7.2 → 0.7.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 +8 -0
- package/README.md +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/toast.cjs.map +1 -1
- package/dist/toast.d.cts +3 -2
- package/dist/toast.d.ts +3 -2
- package/dist/toast.js.map +1 -1
- package/package.json +2 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.7.3 — 2026-08-30
|
|
4
|
+
|
|
5
|
+
- Peer-dependency retrofit (register row X3 / law C23): the advisory-only
|
|
6
|
+
optional `sonner` peer is REMOVED from the manifest. `./toast` never imported
|
|
7
|
+
sonner (runtime or types — the factory input is structural), so nothing ever
|
|
8
|
+
resolved it; the entry only made installers ask hosts to satisfy a peer the
|
|
9
|
+
package does not use. `react` is the only peer. No code changes.
|
|
10
|
+
|
|
3
11
|
## 0.7.2 — 2026-08-29
|
|
4
12
|
|
|
5
13
|
- `short-link-react`: clipboard write falls back to the selection/execCommand path when `navigator.clipboard` is unavailable or denied (sandboxed webviews), so Copy works everywhere a user gesture does.
|
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ npm install @ai-matrx/kit
|
|
|
23
23
|
| `@ai-matrx/kit/text-case` | `formatText`, `createFormatter` | Acronym-aware normalization of messy DB/API strings into title/sentence case with word-replacement overrides. |
|
|
24
24
|
| `@ai-matrx/kit/drafts` | `useDurableDraft` + the local-drafts store | User-authored text that survives anything: write-through localStorage drafts, restore on mount, key-change adoption, cleared only after content durably landed. |
|
|
25
25
|
| `@ai-matrx/kit/confirm` | `confirm`, `ConfirmDialogHost`, `ConfirmDialog` | The `window.confirm` replacement, both shapes: mount `<ConfirmDialogHost/>` once at app root, then `await confirm({ title, variant: "destructive" })` from anywhere (pre-mount calls queue; concurrent calls present one at a time) — or the declarative `<ConfirmDialog/>` when in-dialog busy state matters. Bundles `@radix-ui/react-alert-dialog`; Tailwind semantic-token styling, overridable via `className`/`contentClassName`. |
|
|
26
|
-
| `@ai-matrx/kit/toast` | `createMatrxToast` | The captured sonner wrapper as a factory: pass your sonner `toast` in, get a drop-in `toast` back whose `.error`/`.warning` also feed your injected error-capture sink, plus `toastErrorAlreadyCaptured` for notices whose failure was already captured upstream. No sonner import —
|
|
26
|
+
| `@ai-matrx/kit/toast` | `createMatrxToast` | The captured sonner wrapper as a factory: pass your sonner `toast` in, get a drop-in `toast` back whose `.error`/`.warning` also feed your injected error-capture sink, plus `toastErrorAlreadyCaptured` for notices whose failure was already captured upstream. No sonner import — and sonner is not declared as a dependency or peer at all. |
|
|
27
27
|
| `@ai-matrx/kit/invalidation` | `registerInvalidationCallback`, `fireInvalidation` | Zero-import, name-keyed callback registry that breaks import edges into heavy chunk clusters: the heavy cluster registers at its own module init, the ubiquitous module fires by name. Unregistered names are a deliberate no-op; a throwing callback screams and never breaks the caller. Keep your key constants in ONE host module. |
|
|
28
28
|
| `@ai-matrx/kit/delimiter-guard` | `guardMarkdownDelimiters` (+ `guardMathDelimiters`, `guardRunawayLinks`, `reportDelimiterViolations`) | Keeps one stray streamed delimiter from swallowing a whole section: a `$$` that would turn prose into a red KaTeX error span, or an unclosed `[` that would turn a section into one giant link, gets invisibly neutralized while real math and links keep rendering. Pure; report violations loudly via the optional injected capture sink. |
|
|
29
29
|
| `@ai-matrx/kit/json-format` | `detectJson`, `formatJsonText`, `stringifyJson` | "Is this text JSON, and what shape should it be in?" Detection survives code fences, surrounding prose, and tolerant (JSON5) input — `looksLikeJson` gates offering, `ok` gates running. The writer does `minify` / width-aware `compact` (inline + pack) / `pretty`, key sorting, fence add/strip/preserve. Never throws, never mangles text it did not parse. |
|