basalt-ui 2.12.0 → 2.13.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.
- package/CHANGELOG.md +23 -0
- package/MIGRATING.md +39 -12
- package/agent/rules/basalt-state.md +1 -1
- package/agent/skills/basalt-app/SKILL.md +1 -1
- package/agent/templates/main.tpl +1 -0
- package/dist/cli/basalt-install.d.ts +10 -0
- package/dist/cli/basalt-install.d.ts.map +1 -0
- package/dist/cli/basalt-install.js +0 -0
- package/dist/cli/check-theme.js +1 -1
- package/dist/cli/doctor-upgrade.d.ts +3 -3
- package/dist/cli/doctor-upgrade.d.ts.map +1 -1
- package/dist/cli/doctor-upgrade.js +28 -44
- package/dist/cli/doctor.js +3 -3
- package/dist/cli/index.d.ts +4 -28
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +10 -49
- package/dist/cli/provider-tags.d.ts +12 -0
- package/dist/cli/provider-tags.d.ts.map +1 -0
- package/dist/cli/provider-tags.js +28 -0
- package/dist/cli/render-imports.d.ts +24 -0
- package/dist/cli/render-imports.d.ts.map +1 -0
- package/dist/cli/render-imports.js +74 -0
- package/dist/cli/router-wiring.d.ts +12 -0
- package/dist/cli/router-wiring.d.ts.map +1 -1
- package/dist/cli/router-wiring.js +18 -0
- package/dist/cli/source-text.d.ts +7 -0
- package/dist/cli/source-text.d.ts.map +1 -1
- package/dist/cli/source-text.js +34 -0
- package/dist/cli/sync.d.ts.map +1 -1
- package/dist/cli/sync.js +18 -13
- package/dist/guard/fonts-hint.d.ts +3 -0
- package/dist/guard/fonts-hint.d.ts.map +1 -0
- package/dist/guard/fonts-hint.js +4 -0
- package/dist/guard/index.d.ts +1 -1
- package/dist/guard/index.d.ts.map +1 -1
- package/dist/guard/index.js +2 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/provider/create-router.d.ts +57 -10
- package/dist/provider/create-router.d.ts.map +1 -1
- package/dist/provider/create-router.js +28 -17
- package/dist/provider/index.d.ts +2 -2
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/index.js +23 -7
- package/dist/query-client.d.ts +2 -62
- package/dist/query-client.d.ts.map +1 -1
- package/dist/query-client.js +13 -18
- package/dist/router-tanstack/search-store-warnings.d.ts +33 -0
- package/dist/router-tanstack/search-store-warnings.d.ts.map +1 -0
- package/dist/router-tanstack/search-store-warnings.js +77 -0
- package/dist/router-tanstack/search-store.d.ts +2 -5
- package/dist/router-tanstack/search-store.d.ts.map +1 -1
- package/dist/router-tanstack/search-store.js +111 -110
- package/dist/telemetry.d.ts +31 -2
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +32 -12
- package/dist/theme/ctl-theme.d.ts.map +1 -1
- package/dist/theme/ctl-theme.js +17 -30
- package/dist/theme/extend.d.ts +18 -0
- package/dist/theme/extend.d.ts.map +1 -0
- package/dist/theme/extend.js +6 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +44 -84
- package/dist/unwrap.d.ts +29 -0
- package/dist/unwrap.d.ts.map +1 -0
- package/dist/unwrap.js +18 -0
- package/llms.txt +9 -5
- package/package.json +1 -1
- package/src/cli/basalt-install.ts +9 -0
- package/src/cli/check-theme.ts +1 -1
- package/src/cli/doctor-upgrade.ts +40 -61
- package/src/cli/doctor.ts +3 -3
- package/src/cli/index.ts +14 -71
- package/src/cli/provider-tags.ts +38 -0
- package/src/cli/render-imports.ts +104 -0
- package/src/cli/router-wiring.ts +23 -0
- package/src/cli/source-text.ts +39 -0
- package/src/cli/sync.ts +27 -21
- package/src/guard/fonts-hint.ts +2 -0
- package/src/guard/index.ts +2 -2
- package/src/index.ts +4 -2
- package/src/provider/create-router.tsx +103 -39
- package/src/provider/index.tsx +27 -9
- package/src/query-client.ts +20 -78
- package/src/router-tanstack/search-store-warnings.ts +120 -0
- package/src/router-tanstack/search-store.ts +200 -206
- package/src/telemetry.ts +71 -13
- package/src/theme/__snapshots__/plain-theme.test.ts.snap +2354 -0
- package/src/theme/ctl-theme.tsx +20 -19
- package/src/theme/extend.ts +18 -0
- package/src/theme/index.ts +50 -49
- package/src/unwrap.ts +44 -0
|
@@ -1,33 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useEffect, useRef } from "react";
|
|
2
|
+
import { useNavigate, useRouter, useRouterState, useSearch } from "@tanstack/react-router";
|
|
2
3
|
import { createStoreCore } from "../state/fields.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
);
|
|
8
|
-
}
|
|
9
|
-
function useCurrentSearch() {
|
|
10
|
-
const search = useSearch({ strict: false });
|
|
11
|
-
return typeof search === "object" && search !== null ? search : {};
|
|
4
|
+
import { createStoreWarnings } from "./search-store-warnings.js";
|
|
5
|
+
let hydrationDone = false;
|
|
6
|
+
function resetHydrationForTests() {
|
|
7
|
+
hydrationDone = false;
|
|
12
8
|
}
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
const isDehydrating = () => typeof window !== "undefined" && "$_TSR" in window && !hydrationDone;
|
|
10
|
+
function reportFailure(error) {
|
|
11
|
+
if (typeof reportError === "function") reportError(error);
|
|
12
|
+
else
|
|
13
|
+
queueMicrotask(() => {
|
|
14
|
+
throw error;
|
|
15
|
+
});
|
|
15
16
|
}
|
|
16
|
-
function
|
|
17
|
-
const {
|
|
18
|
-
|
|
19
|
-
`[basalt-ui] createSearchStore('${key}'): wrote field '${name}' from a route that does not validate \`${param}\`, and the field is \`persist: false\` \u2014 so the write was dropped. Either render this control on the route wired to \`validateSearch\`, or give the field the localStorage lane (drop \`persist: false\`) so a write from elsewhere survives until the owning route reads it. (dev only)`
|
|
20
|
-
);
|
|
17
|
+
function navigateSearch(navigate, search, replace) {
|
|
18
|
+
const result = navigate({ to: ".", search, replace, resetScroll: false });
|
|
19
|
+
if (result !== void 0) result.catch(reportFailure);
|
|
21
20
|
}
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
return `basalt-ui: createSearchStore('${key}'): set('${name}', \u2026, { patch }) carries \`${param}\`, which this store's field '${owner}' owns \u2014 the URL would take it while the localStorage mirror kept the old value, so the next paramless visit and every \`linkSearch\` link disagree with the page the write happened on. Write it through \`field.${owner}.use()[1]\` instead; a \`patch\` is for keys the store does NOT own.`;
|
|
21
|
+
function isRecord(value) {
|
|
22
|
+
return typeof value === "object" && value !== null;
|
|
25
23
|
}
|
|
26
|
-
function
|
|
27
|
-
const {
|
|
28
|
-
|
|
29
|
-
`[basalt-ui] createSearchStore('${key}'): wrote field '${name}' with a \`patch\` from a route that does not validate \`${param}\` \u2014 the field's value persisted (A1), but the patch was DROPPED: there is no navigate to merge it into. Render the control on the route wired to \`validateSearch\`, or apply that sibling param on the route that owns it. (dev only)`
|
|
30
|
-
);
|
|
24
|
+
function useCurrentSearch() {
|
|
25
|
+
const search = useSearch({ strict: false });
|
|
26
|
+
return isRecord(search) ? search : {};
|
|
31
27
|
}
|
|
32
28
|
function assertNoLazyUrlFallback(key, fields) {
|
|
33
29
|
for (const [name, f] of Object.entries(fields)) {
|
|
@@ -50,17 +46,14 @@ function assertResetsNotOwned(input) {
|
|
|
50
46
|
function isMemoryLane(entry) {
|
|
51
47
|
return !entry.codec.lane.url && !entry.codec.lane.persist;
|
|
52
48
|
}
|
|
53
|
-
function
|
|
49
|
+
function createSearchStore(o) {
|
|
54
50
|
assertNoLazyUrlFallback(o.key, o.fields);
|
|
55
51
|
const core = createStoreCore(o);
|
|
56
52
|
let readerWired = false;
|
|
57
|
-
let warned = false;
|
|
58
53
|
const markReaderWired = () => {
|
|
59
54
|
readerWired = true;
|
|
60
55
|
};
|
|
61
|
-
const
|
|
62
|
-
const patchDroppedWarned = /* @__PURE__ */ new Set();
|
|
63
|
-
const patchOwnerLogged = /* @__PURE__ */ new Set();
|
|
56
|
+
const warnings = createStoreWarnings(o.key);
|
|
64
57
|
const paramOwners = /* @__PURE__ */ new Map();
|
|
65
58
|
for (const entry of core.urlEntries) {
|
|
66
59
|
for (const param of entry.codec.params) paramOwners.set(param, entry.name);
|
|
@@ -77,16 +70,12 @@ function buildSearchStore(o) {
|
|
|
77
70
|
const persistedNames = new Set(
|
|
78
71
|
core.entries.filter((entry) => entry.codec.lane.persist).map((entry) => entry.name)
|
|
79
72
|
);
|
|
80
|
-
const
|
|
73
|
+
const mounts = /* @__PURE__ */ new Map();
|
|
81
74
|
const assertPatchNotOwned = (entry, patch) => {
|
|
82
75
|
for (const param of Object.keys(patch)) {
|
|
83
76
|
const owner = paramOwners.get(param);
|
|
84
77
|
if (owner === void 0 || entry.codec.params.includes(param)) continue;
|
|
85
|
-
|
|
86
|
-
if (process.env["NODE_ENV"] !== "production") throw new Error(message);
|
|
87
|
-
if (patchOwnerLogged.has(param)) continue;
|
|
88
|
-
patchOwnerLogged.add(param);
|
|
89
|
-
console.error(message);
|
|
78
|
+
warnings.patchOwned({ name: entry.name, owner, param });
|
|
90
79
|
}
|
|
91
80
|
};
|
|
92
81
|
const flatten = (search, record) => {
|
|
@@ -97,30 +86,33 @@ function buildSearchStore(o) {
|
|
|
97
86
|
return out;
|
|
98
87
|
};
|
|
99
88
|
const maybeWarn = (raw, record) => {
|
|
100
|
-
if (
|
|
89
|
+
if (process.env["NODE_ENV"] === "production" || readerWired) return;
|
|
101
90
|
for (const entry of core.urlEntries) {
|
|
102
91
|
const fromUrl = entry.codec.fromSearch(raw);
|
|
103
92
|
if (fromUrl === null || !entry.codec.equals(fromUrl, entry.codec.fallback)) continue;
|
|
104
|
-
const
|
|
105
|
-
if (
|
|
106
|
-
|
|
107
|
-
warnLinkPinsFallback({
|
|
108
|
-
key: o.key,
|
|
93
|
+
const stored2 = entry.codec.decode(record[entry.name]);
|
|
94
|
+
if (stored2 === null || entry.codec.equals(stored2, fromUrl)) continue;
|
|
95
|
+
warnings.linkPinsFallback({
|
|
109
96
|
param: entry.codec.primary,
|
|
110
|
-
urlValue:
|
|
111
|
-
storedValue:
|
|
97
|
+
urlValue: entry.codec.toSearch(fromUrl)[entry.codec.primary],
|
|
98
|
+
storedValue: entry.codec.toSearch(stored2)[entry.codec.primary]
|
|
112
99
|
});
|
|
113
100
|
return;
|
|
114
101
|
}
|
|
115
102
|
};
|
|
103
|
+
const stored = () => typeof window === "undefined" || isDehydrating() ? {} : core.readRecord();
|
|
116
104
|
const validateSearch = (raw) => {
|
|
117
|
-
const record =
|
|
105
|
+
const record = stored();
|
|
118
106
|
maybeWarn(raw, record);
|
|
119
107
|
return flatten(raw, record);
|
|
120
108
|
};
|
|
109
|
+
const runsStore = (route) => {
|
|
110
|
+
const validate = route?.options.validateSearch;
|
|
111
|
+
return typeof validate === "function" && (validate === validateSearch || Function.prototype.toString.call(validate).includes("validateSearch"));
|
|
112
|
+
};
|
|
121
113
|
const linkSearch = () => {
|
|
122
114
|
readerWired = true;
|
|
123
|
-
return flatten(null,
|
|
115
|
+
return flatten(null, stored());
|
|
124
116
|
};
|
|
125
117
|
const readStored = () => {
|
|
126
118
|
readerWired = true;
|
|
@@ -129,65 +121,72 @@ function buildSearchStore(o) {
|
|
|
129
121
|
const urlUse = (entry) => () => {
|
|
130
122
|
const search = useCurrentSearch();
|
|
131
123
|
const navigate = useNavigate();
|
|
124
|
+
const router = useRouter();
|
|
125
|
+
const pathname = useRouterState({ select: (state) => state.location.pathname });
|
|
132
126
|
const [record, setRecord] = core.usePersistedRecord();
|
|
133
127
|
markReaderWired();
|
|
134
128
|
const value = core.resolve(entry, search, record);
|
|
129
|
+
const hydrating = useRef(isDehydrating());
|
|
135
130
|
const validated = Object.hasOwn(search, entry.codec.primary);
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
131
|
+
useEffect(() => {
|
|
132
|
+
const count = mounts.get(router) ?? 0;
|
|
133
|
+
mounts.set(router, count + 1);
|
|
134
|
+
return () => {
|
|
135
|
+
const left = (mounts.get(router) ?? 1) - 1;
|
|
136
|
+
if (left > 0) mounts.set(router, left);
|
|
137
|
+
else mounts.delete(router);
|
|
138
|
+
};
|
|
139
|
+
}, [router]);
|
|
140
|
+
useEffect(() => {
|
|
141
|
+
if (hydrating.current) hydrationDone = true;
|
|
142
|
+
}, []);
|
|
143
|
+
const mirrored = entry.codec.lane.persist ? entry.codec.decode(record[entry.name]) : null;
|
|
144
|
+
const mirroredKey = mirrored === null ? null : JSON.stringify(entry.codec.toSearch(mirrored));
|
|
145
|
+
useEffect(() => {
|
|
146
|
+
if (!hydrating.current || mirrored === null) return;
|
|
147
|
+
hydrating.current = false;
|
|
148
|
+
if (!validated || entry.codec.equals(mirrored, entry.codec.fallback)) return;
|
|
149
|
+
const urlValue = entry.codec.fromSearch(search);
|
|
150
|
+
if (urlValue !== null && !entry.codec.equals(urlValue, entry.codec.fallback)) return;
|
|
151
|
+
navigateSearch(
|
|
152
|
+
(o2) => router.navigate(o2),
|
|
153
|
+
(prev) => ({ ...prev, ...entry.codec.toSearch(mirrored) }),
|
|
154
|
+
true
|
|
155
|
+
);
|
|
156
|
+
}, [mirroredKey]);
|
|
157
|
+
useEffect(() => {
|
|
158
|
+
if (process.env["NODE_ENV"] === "production") return;
|
|
159
|
+
const { matches } = router.state;
|
|
160
|
+
const leaf = matches.at(-1);
|
|
161
|
+
if (leaf === void 0 || !isRecord(leaf.search)) return;
|
|
162
|
+
if (!Object.hasOwn(leaf.search, entry.codec.primary)) return;
|
|
163
|
+
if (matches.some((match) => runsStore(router.routesById[match.routeId]))) return;
|
|
164
|
+
warnings.foreignParam({ name: entry.name, param: entry.codec.primary, path: leaf.pathname });
|
|
165
|
+
}, [pathname]);
|
|
150
166
|
return [
|
|
151
167
|
value,
|
|
152
168
|
(next, opts) => {
|
|
153
169
|
const patch = opts?.patch;
|
|
154
170
|
if (patch !== void 0 && Object.keys(patch).length > 0) {
|
|
155
171
|
assertPatchNotOwned(entry, patch);
|
|
156
|
-
if (!validated
|
|
157
|
-
patchDroppedWarned.add(entry.name);
|
|
158
|
-
warnPatchDropped({ key: o.key, name: entry.name, param: entry.codec.primary });
|
|
159
|
-
}
|
|
172
|
+
if (!validated) warnings.patchWasDropped({ name: entry.name, param: entry.codec.primary });
|
|
160
173
|
}
|
|
161
|
-
if (validated) {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
// `patch` FIRST, the field's own params last: a patch is for keys the store does not
|
|
165
|
-
// own (clearing a sibling `detailDate` with `undefined`), so it must never be able to
|
|
166
|
-
// overwrite the value this very call is setting.
|
|
167
|
-
// `resets` only when the value moves: a no-op write (a debounced box settling back on
|
|
168
|
-
// what it held) must not throw the reader off the page they are on.
|
|
169
|
-
search: (prev) => ({
|
|
170
|
-
...prev,
|
|
171
|
-
...resetsFor(entry, prev, next),
|
|
172
|
-
...opts?.patch,
|
|
173
|
-
...entry.codec.toSearch(next)
|
|
174
|
-
}),
|
|
175
|
-
replace: entry.codec.lane.history === "replace",
|
|
176
|
-
// A filter lives halfway down a page as often as it lives in the bar, and the router's
|
|
177
|
-
// default scroll restoration treats this same-route search write as a navigation — so
|
|
178
|
-
// without this a select two screens down jumps the reader back to the top on every
|
|
179
|
-
// change. Never a prop: there is no filter write that WANTS the page to scroll.
|
|
180
|
-
resetScroll: false
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
if (entry.codec.lane.persist) {
|
|
184
|
-
core.writeField(setRecord, entry.name, next);
|
|
174
|
+
if (!validated) {
|
|
175
|
+
if (entry.codec.lane.persist) core.writeField(setRecord, entry.name, next);
|
|
176
|
+
else warnings.writeHasNowhereToGo({ name: entry.name, param: entry.codec.primary });
|
|
185
177
|
return;
|
|
186
178
|
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
179
|
+
navigateSearch(
|
|
180
|
+
(o2) => navigate(o2),
|
|
181
|
+
(prev) => ({
|
|
182
|
+
...prev,
|
|
183
|
+
...resetsFor(entry, prev, next),
|
|
184
|
+
...opts?.patch,
|
|
185
|
+
...entry.codec.toSearch(next)
|
|
186
|
+
}),
|
|
187
|
+
entry.codec.lane.history === "replace"
|
|
188
|
+
);
|
|
189
|
+
if (entry.codec.lane.persist) core.writeField(setRecord, entry.name, next);
|
|
191
190
|
}
|
|
192
191
|
];
|
|
193
192
|
};
|
|
@@ -204,8 +203,19 @@ function buildSearchStore(o) {
|
|
|
204
203
|
if (entry.codec.lane.persist) core.clearField(entry.name);
|
|
205
204
|
else if (!entry.codec.lane.url) core.clearMemory(entry.name);
|
|
206
205
|
if (!entry.codec.lane.url) return;
|
|
207
|
-
const
|
|
208
|
-
|
|
206
|
+
for (const router of mounts.keys()) {
|
|
207
|
+
const { search } = router.state.location;
|
|
208
|
+
if (!isRecord(search) || !Object.hasOwn(search, entry.codec.primary)) continue;
|
|
209
|
+
navigateSearch(
|
|
210
|
+
(o2) => router.navigate(o2),
|
|
211
|
+
(prev) => ({
|
|
212
|
+
...prev,
|
|
213
|
+
...resetsFor(entry, prev, entry.codec.fallback),
|
|
214
|
+
...entry.codec.toSearch(entry.codec.fallback)
|
|
215
|
+
}),
|
|
216
|
+
true
|
|
217
|
+
);
|
|
218
|
+
}
|
|
209
219
|
};
|
|
210
220
|
const field = {};
|
|
211
221
|
for (const entry of core.entries) {
|
|
@@ -246,22 +256,16 @@ function buildSearchStore(o) {
|
|
|
246
256
|
for (const entry of validatedEntries) {
|
|
247
257
|
Object.assign(patch, entry.codec.toSearch(entry.codec.fallback));
|
|
248
258
|
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
// `clear()`. A `Reset all` with everything already at its fallback must keep the page:
|
|
253
|
-
// this navigate REPLACES, so a page dropped here could not be got back with Back.
|
|
254
|
-
search: (prev) => {
|
|
259
|
+
navigateSearch(
|
|
260
|
+
(o2) => navigate(o2),
|
|
261
|
+
(prev) => {
|
|
255
262
|
const moved = validatedEntries.some(
|
|
256
263
|
(entry) => resetsFor(entry, prev, entry.codec.fallback) !== void 0
|
|
257
264
|
);
|
|
258
265
|
return { ...prev, ...moved ? resetPatch : void 0, ...patch };
|
|
259
266
|
},
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
// sheet must not also scroll the page it was pressed on.
|
|
263
|
-
resetScroll: false
|
|
264
|
-
});
|
|
267
|
+
true
|
|
268
|
+
);
|
|
265
269
|
}
|
|
266
270
|
if (memoryEntries.length > 0) core.resetMemory();
|
|
267
271
|
if (!core.anyPersisted) return;
|
|
@@ -293,10 +297,7 @@ function buildSearchStore(o) {
|
|
|
293
297
|
};
|
|
294
298
|
return store;
|
|
295
299
|
}
|
|
296
|
-
function createSearchStore(o) {
|
|
297
|
-
return buildSearchStore(o);
|
|
298
|
-
}
|
|
299
300
|
export {
|
|
300
|
-
|
|
301
|
-
|
|
301
|
+
createSearchStore,
|
|
302
|
+
resetHydrationForTests
|
|
302
303
|
};
|
package/dist/telemetry.d.ts
CHANGED
|
@@ -48,9 +48,11 @@ type ChatAttrs = {
|
|
|
48
48
|
export type BasaltEvent = Ok<'route.navigate', RouteAttrs> | Err<'route.error', {
|
|
49
49
|
'basalt.route.id': string;
|
|
50
50
|
}> | Err<'query.error', {
|
|
51
|
+
/** `groupingId(queryHash)`: an opaque grouping id, not the key. */
|
|
51
52
|
'basalt.query.hash': string;
|
|
52
53
|
'basalt.query.failure_count': number;
|
|
53
54
|
}> | Err<'mutation.error', {
|
|
55
|
+
/** `groupingId(JSON.stringify(key))`: an opaque grouping id, not the key. */
|
|
54
56
|
'basalt.mutation.key': string;
|
|
55
57
|
}> | Err<'render.error', {
|
|
56
58
|
'basalt.error.boundary': 'root';
|
|
@@ -117,6 +119,17 @@ export type Telemetry = ((event: BasaltEvent) => void) & {
|
|
|
117
119
|
readonly startChatTurn?: ((turn: ChatTurnInit) => ChatTurnTrace | undefined) | undefined;
|
|
118
120
|
};
|
|
119
121
|
export declare const now: () => number;
|
|
122
|
+
/**
|
|
123
|
+
* An opaque grouping id (32-bit djb2, hex) for a query or mutation key, so events from one key group
|
|
124
|
+
* together and the key's segments (ids, slugs) stay out of the event. NOT a privacy guarantee: it is
|
|
125
|
+
* non-cryptographic and a short or guessable key can be recovered by trying candidates.
|
|
126
|
+
*/
|
|
127
|
+
export declare function groupingId(value: string): string;
|
|
128
|
+
/**
|
|
129
|
+
* The sink an unset `telemetry` gets outside production: query and mutation failures, which nothing
|
|
130
|
+
* else surfaces (route, render and window errors already log themselves). Ids and error names only.
|
|
131
|
+
*/
|
|
132
|
+
export declare const devConsoleSink: Telemetry;
|
|
120
133
|
/** `error.name`, `'Error'` for a non-`Error` throw. */
|
|
121
134
|
export declare const errorName: (error: unknown) => string;
|
|
122
135
|
/**
|
|
@@ -130,7 +143,23 @@ export declare function createLiveEmitter(read: () => Telemetry | undefined): Te
|
|
|
130
143
|
* `chat.turn`). `undefined` outside a `BasaltProvider`, where such a hook emits nothing.
|
|
131
144
|
*/
|
|
132
145
|
export declare const TelemetryContext: import("react").Context<Telemetry | undefined>;
|
|
133
|
-
|
|
134
|
-
|
|
146
|
+
/**
|
|
147
|
+
* On `context.__basalt` of a `basaltRouterOptions` router: where its `defaultOnCatch` reports to.
|
|
148
|
+
* The factory and `bindRouteError` are the only two places that know this key.
|
|
149
|
+
*/
|
|
150
|
+
export type RouterHook = {
|
|
151
|
+
onRouteError?: ((error: unknown) => void) | undefined;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* Points the router's `route.error` hook at `handler` (the provider's emitter); returns the unbind.
|
|
155
|
+
* The binding happens in the provider's effect, so a route error thrown before the first provider
|
|
156
|
+
* effect (a loader failing during the initial load) reaches the console only, never the sink. A
|
|
157
|
+
* router without the hook was not built with `basaltRouterOptions`: nothing is bound and it warns.
|
|
158
|
+
*/
|
|
159
|
+
export declare function bindRouteError(router: {
|
|
160
|
+
options: {
|
|
161
|
+
context?: unknown;
|
|
162
|
+
};
|
|
163
|
+
}, handler: (error: unknown) => void): () => void;
|
|
135
164
|
export {};
|
|
136
165
|
//# sourceMappingURL=telemetry.d.ts.map
|
package/dist/telemetry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../src/telemetry.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD,+DAA+D;AAC/D,KAAK,EAAE,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAC3B,qCAAqC;AACrC,KAAK,IAAI,GAAG,EAAE,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAA;AAErC,+DAA+D;AAC/D,KAAK,SAAS,GACV,OAAO,GACP,OAAO,GACP,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,oBAAoB,GACpB,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,SAAS,CAAA;AAEb,KAAK,OAAO,GAAG;IAAE,gBAAgB,EAAE,MAAM,CAAC;IAAC,mBAAmB,EAAE,SAAS,CAAA;CAAE,CAAA;AAC3E,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,GAAG;IAAE,IAAI,EAAE,CAAC,CAAC;IAAC,MAAM,EAAE,KAAK,CAAC;IAAC,UAAU,EAAE,CAAC,CAAA;CAAE,CAAA;AAChE,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG;IAAE,IAAI,EAAE,CAAC,CAAC;IAAC,MAAM,EAAE,IAAI,CAAC;IAAC,UAAU,EAAE,CAAC,GAAG,OAAO,CAAA;CAAE,CAAA;AAE/E,KAAK,UAAU,GAAG;IAChB,iBAAiB,EAAE,MAAM,CAAA;IACzB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,KAAK,SAAS,GAAG;IACf,uBAAuB,EAAE,MAAM,CAAA;I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A;KAAE,CAAA;CAAE,EAC1C,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAChC,MAAM,IAAI,CAcZ"}
|
package/dist/telemetry.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { createContext } from "react";
|
|
2
2
|
const now = () => performance.timeOrigin + performance.now();
|
|
3
|
+
function groupingId(value) {
|
|
4
|
+
let h = 5381;
|
|
5
|
+
for (let i = 0; i < value.length; i++) h = h * 33 ^ value.charCodeAt(i);
|
|
6
|
+
return (h >>> 0).toString(16);
|
|
7
|
+
}
|
|
8
|
+
const devConsoleSink = (event) => {
|
|
9
|
+
if (event.type === "query.error" || event.type === "mutation.error")
|
|
10
|
+
console.error(`[basalt] ${event.type}`, event.attributes);
|
|
11
|
+
};
|
|
3
12
|
const errorName = (error) => error instanceof Error ? error.name : "Error";
|
|
4
13
|
function createLiveEmitter(read) {
|
|
5
14
|
const emit = (event) => {
|
|
@@ -18,24 +27,35 @@ function createLiveEmitter(read) {
|
|
|
18
27
|
}
|
|
19
28
|
});
|
|
20
29
|
}
|
|
21
|
-
function noop() {
|
|
22
|
-
}
|
|
23
30
|
const TelemetryContext = createContext(void 0);
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
31
|
+
function hookOf(context) {
|
|
32
|
+
if (typeof context !== "object" || context === null || !("__basalt" in context)) return void 0;
|
|
33
|
+
const hook = context.__basalt;
|
|
34
|
+
return typeof hook === "object" && hook !== null ? hook : void 0;
|
|
35
|
+
}
|
|
36
|
+
const MISSING_HOOK = "[basalt] route.error telemetry is off: the router was not built with `basaltRouterOptions()` (or `createBasaltRouter`).";
|
|
37
|
+
let warnedMissingHook = false;
|
|
38
|
+
function bindRouteError(router, handler) {
|
|
39
|
+
const hook = hookOf(router.options.context);
|
|
40
|
+
if (!hook) {
|
|
41
|
+
if (process.env.NODE_ENV !== "production" || !warnedMissingHook) {
|
|
42
|
+
warnedMissingHook = true;
|
|
43
|
+
console.warn(MISSING_HOOK);
|
|
44
|
+
}
|
|
45
|
+
return () => {
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
hook.onRouteError = handler;
|
|
27
49
|
return () => {
|
|
28
|
-
if (
|
|
50
|
+
if (hook.onRouteError === handler) hook.onRouteError = void 0;
|
|
29
51
|
};
|
|
30
52
|
}
|
|
31
|
-
function routerTelemetry(router) {
|
|
32
|
-
return routerSinks.get(router) ?? noop;
|
|
33
|
-
}
|
|
34
53
|
export {
|
|
35
54
|
TelemetryContext,
|
|
36
|
-
|
|
55
|
+
bindRouteError,
|
|
37
56
|
createLiveEmitter,
|
|
57
|
+
devConsoleSink,
|
|
38
58
|
errorName,
|
|
39
|
-
|
|
40
|
-
|
|
59
|
+
groupingId,
|
|
60
|
+
now
|
|
41
61
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ctl-theme.d.ts","sourceRoot":"","sources":["../../src/theme/ctl-theme.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ctl-theme.d.ts","sourceRoot":"","sources":["../../src/theme/ctl-theme.tsx"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAMV,oBAAoB,EAQrB,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOtC,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAA+B,CAAA;AAEzE;;iGAEiG;AACjG,eAAO,MAAM,SAAS,EAAE,oBA+BvB,CAAA;AAoCD,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAA;CACxB,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,IAAY,EAAE,EAAE,YAAY,GAAG,SAAS,CAQ3E"}
|
package/dist/theme/ctl-theme.js
CHANGED
|
@@ -1,33 +1,20 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
Box,
|
|
5
|
-
Button,
|
|
6
|
-
Checkbox,
|
|
7
|
-
Input,
|
|
8
|
-
MantineThemeProvider,
|
|
9
|
-
MultiSelect,
|
|
10
|
-
NativeSelect,
|
|
11
|
-
Radio,
|
|
12
|
-
SegmentedControl,
|
|
13
|
-
Select,
|
|
14
|
-
Switch,
|
|
15
|
-
TextInput
|
|
16
|
-
} from "@mantine/core";
|
|
2
|
+
import { Box, MantineThemeProvider } from "@mantine/core";
|
|
3
|
+
import { ext } from "./extend.js";
|
|
17
4
|
const HIT_ATTR = { "data-basalt-hit": true };
|
|
18
5
|
const CTL_THEME = {
|
|
19
6
|
components: {
|
|
20
|
-
Button:
|
|
21
|
-
ActionIcon:
|
|
22
|
-
Input:
|
|
23
|
-
TextInput:
|
|
24
|
-
Select:
|
|
25
|
-
MultiSelect:
|
|
26
|
-
SegmentedControl:
|
|
27
|
-
NativeSelect:
|
|
7
|
+
Button: ext({ defaultProps: { size: "ctl" } }),
|
|
8
|
+
ActionIcon: ext({ defaultProps: { size: "ctl" } }),
|
|
9
|
+
Input: ext({ defaultProps: { size: "ctl" } }),
|
|
10
|
+
TextInput: ext({ defaultProps: { size: "ctl" } }),
|
|
11
|
+
Select: ext({ defaultProps: { size: "ctl" } }),
|
|
12
|
+
MultiSelect: ext({ defaultProps: { size: "ctl" } }),
|
|
13
|
+
SegmentedControl: ext({ defaultProps: { size: "ctl" } }),
|
|
14
|
+
NativeSelect: ext({ defaultProps: { size: "ctl" } }),
|
|
28
15
|
// The theme keys are the component names Mantine's own `useProps` looks up — `RadioGroup`, not
|
|
29
16
|
// `Radio.Group` (`RadioGroup.mjs`: `useProps("RadioGroup", …)`).
|
|
30
|
-
Radio:
|
|
17
|
+
Radio: ext({
|
|
31
18
|
defaultProps: { size: "ctl", attributes: { label: HIT_ATTR } }
|
|
32
19
|
}),
|
|
33
20
|
// Mantine types `RadioGroup.size` as a CLOSED `MantineSize`, while `Radio`, `Checkbox`,
|
|
@@ -36,20 +23,20 @@ const CTL_THEME = {
|
|
|
36
23
|
// upstream inconsistency, not a statement that `RadioGroup` cannot take a custom tier. At
|
|
37
24
|
// runtime `getSize` interpolates the string identically for all six. The cast restores what
|
|
38
25
|
// every sibling type already allows; it widens nothing.
|
|
39
|
-
RadioGroup:
|
|
40
|
-
Checkbox:
|
|
26
|
+
RadioGroup: ext({ defaultProps: { size: "ctl" } }),
|
|
27
|
+
Checkbox: ext({
|
|
41
28
|
defaultProps: { size: "ctl", attributes: { label: HIT_ATTR } }
|
|
42
29
|
}),
|
|
43
|
-
CheckboxGroup:
|
|
44
|
-
Switch:
|
|
30
|
+
CheckboxGroup: ext({ defaultProps: { size: "ctl" } }),
|
|
31
|
+
Switch: ext({
|
|
45
32
|
defaultProps: { size: "ctl", attributes: { track: HIT_ATTR } }
|
|
46
33
|
}),
|
|
47
|
-
SwitchGroup:
|
|
34
|
+
SwitchGroup: ext({ defaultProps: { size: "ctl" } })
|
|
48
35
|
}
|
|
49
36
|
};
|
|
50
37
|
const WIDGET_THEME = {
|
|
51
38
|
components: {
|
|
52
|
-
ActionIcon:
|
|
39
|
+
ActionIcon: ext({ defaultProps: { size: "icon" } })
|
|
53
40
|
}
|
|
54
41
|
};
|
|
55
42
|
function CtlSlot({ children, tier = "ctl" }) {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { MantineThemeComponent } from '@mantine/core';
|
|
2
|
+
/** The input type of a Mantine component's `.extend()`: `defaultProps` / `classNames` / `styles` /
|
|
3
|
+
* `vars` typed against THAT component, taken from the component type alone. */
|
|
4
|
+
type ExtendInput<C> = C extends {
|
|
5
|
+
extend: (input: infer I) => unknown;
|
|
6
|
+
} ? I : never;
|
|
7
|
+
/**
|
|
8
|
+
* Typed identity standing in for `Component.extend({...})`. Mantine's `extend` is `identity` at
|
|
9
|
+
* runtime (it exists for typing), but calling it is a VALUE use of the component, which drags the
|
|
10
|
+
* whole component module into every bundle that imports the theme. Pass the component as a type
|
|
11
|
+
* argument (`ext<typeof Card>({...})`, imported with `import type`) and the same compile-time
|
|
12
|
+
* checking applies with nothing emitted.
|
|
13
|
+
*/
|
|
14
|
+
export declare function ext<C extends {
|
|
15
|
+
extend: (input: never) => unknown;
|
|
16
|
+
}>(input: ExtendInput<C>): MantineThemeComponent;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=extend.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extend.d.ts","sourceRoot":"","sources":["../../src/theme/extend.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAE1D;+EAC+E;AAC/E,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS;IAAE,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,OAAO,CAAA;CAAE,GAAG,CAAC,GAAG,KAAK,CAAA;AAEnF;;;;;;GAMG;AACH,wBAAgB,GAAG,CAAC,CAAC,SAAS;IAAE,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,CAAA;CAAE,EACjE,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,GACpB,qBAAqB,CAEvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EA0CV,oBAAoB,EAGpB,oBAAoB,EAErB,MAAM,eAAe,CAAA;AAStB,OAAO,KAAK,EAAe,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAGpD,OAAO,KAA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