@kronor/dtv 9.4.2 → 9.5.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/README.md +6 -0
- package/dist/cli/definitions/loadProject.js +5 -1
- package/dist/index.es.js +19723 -19373
- package/dist/types/App.d.ts +7 -1
- package/dist/types/components/FilterForm.d.ts +2 -1
- package/dist/types/components/SavedFilterList.d.ts +1 -1
- package/dist/types/components/aiAssistant.d.ts +9 -2
- package/dist/types/framework/actions.d.ts +2 -0
- package/dist/types/framework/analytics-emitter.d.ts +42 -0
- package/dist/types/framework/analytics.d.ts +270 -0
- package/dist/types/framework/dtv-version.d.ts +2 -0
- package/dist/types/framework/fetch-error.d.ts +35 -0
- package/dist/types/framework/filter-sharing.d.ts +5 -1
- package/dist/types/framework/state/app-state.d.ts +59 -1
- package/dist/types/framework/state/table.d.ts +3 -0
- package/dist/types/framework/state/use-app-state.d.ts +18 -6
- package/dist/types/framework/useUserDataManager.d.ts +7 -5
- package/dist/types/framework/user-data-manager.d.ts +14 -3
- package/dist/types/framework/user-data.d.ts +11 -1
- package/dist/types/framework/view-migrations.d.ts +17 -0
- package/dist/types/lib/index.d.ts +4 -0
- package/docs/analytics.md +779 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -145,6 +145,12 @@ Users' saved filters and settings are stored against a view's definition. `dtv d
|
|
|
145
145
|
snapshots definitions and writes the migrations their stored data needs when they change;
|
|
146
146
|
`dtv definitions check` fails CI when a change has none. See `docs/view-migrations.md`.
|
|
147
147
|
|
|
148
|
+
## Analytics
|
|
149
|
+
|
|
150
|
+
`analytics={{ onEvent }}` reports what users do in a table, how long its requests take, and
|
|
151
|
+
what fails, as typed events for the app to store. `docs/analytics.md` describes every event and
|
|
152
|
+
its fields, how events relate, and how to read old ones against a changed view definition.
|
|
153
|
+
|
|
148
154
|
## Release Process
|
|
149
155
|
|
|
150
156
|
Releases are driven from the monorepo root, one package at a time. See the
|
|
@@ -74,7 +74,11 @@ export async function loadProject(args) {
|
|
|
74
74
|
try {
|
|
75
75
|
server = await vite.createServer({
|
|
76
76
|
configFile: viteConfig,
|
|
77
|
-
|
|
77
|
+
// The views are loaded once, so nothing is watched: watching a large project can exceed
|
|
78
|
+
// the system's limit of watchers (ENOSPC on Linux CI). Not `watch: null`, which a
|
|
79
|
+
// project's `server.watch` would override (mergeConfig skips nulls) and which turns
|
|
80
|
+
// off Vite's resolve cache, making the run half again as slow.
|
|
81
|
+
server: { middlewareMode: true, hmr: false, ws: false, watch: { ignored: () => true } },
|
|
78
82
|
optimizeDeps: { noDiscovery: true, include: [] },
|
|
79
83
|
// Dependencies are bundled for SSR rather than imported by Node: view modules import
|
|
80
84
|
// components whose CommonJS dependencies (e.g. prop-types) Node cannot give named
|