@kronor/dtv 7.2.1 → 7.2.2
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 +3 -3
- package/dist/assets/index-CnQPaxnD.js +2300 -0
- package/dist/index.es.js +9408 -9370
- package/dist/index.html +1 -1
- package/dist/types/App.d.ts +2 -2
- package/dist/types/App.d.ts.map +1 -1
- package/dist/types/framework/equality.d.ts +2 -0
- package/dist/types/framework/equality.d.ts.map +1 -0
- package/dist/types/framework/filter-form-state.d.ts.map +1 -1
- package/dist/types/framework/graphql/hasura-filter-expression.d.ts.map +1 -1
- package/dist/types/framework/native-runtime/index.d.ts.map +1 -1
- package/dist/types/framework/state.d.ts +1 -0
- package/dist/types/framework/state.d.ts.map +1 -1
- package/dist/types/framework/user-data.migrations.d.ts.map +1 -1
- package/dist/types/lib/renderTableView.d.ts +1 -1
- package/dist/types/lib/renderTableView.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/assets/index-hvXi3hb1.js +0 -2300
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ All required styles are injected automatically via the JS bundle (using `vite-pl
|
|
|
28
28
|
### Runtime Options (AppProps)
|
|
29
29
|
Key props you can pass to `App` (or via `dtv.renderTableView` in `main.tsx`):
|
|
30
30
|
|
|
31
|
-
- `graphqlHost` / `
|
|
31
|
+
- `graphqlHost` / `requestHeaders`: GraphQL endpoint + HTTP headers. Pass `{}` when no custom headers are needed.
|
|
32
32
|
- `geminiApiKey`: API key used by the AI Filter Assistant.
|
|
33
33
|
- `viewsJson`: JSON string array of view definitions (each view.json parsed at runtime).
|
|
34
34
|
- `showViewsMenu`: Toggle the views dropdown menu (default: `false`).
|
|
@@ -42,7 +42,7 @@ Example:
|
|
|
42
42
|
```ts
|
|
43
43
|
dtv.renderTableView('root', {
|
|
44
44
|
graphqlHost: 'https://example/graphql',
|
|
45
|
-
|
|
45
|
+
requestHeaders: { Authorization: 'Bearer token' },
|
|
46
46
|
geminiApiKey: 'gemini-key',
|
|
47
47
|
viewsJson: JSON.stringify([myViewJson]),
|
|
48
48
|
showViewTitle: true,
|
|
@@ -101,7 +101,7 @@ Create a `.env.development` file in the project root to set environment variable
|
|
|
101
101
|
Example:
|
|
102
102
|
```env
|
|
103
103
|
VITE_GRAPHQL_HOST=https://your-graphql-host.example.com
|
|
104
|
-
|
|
104
|
+
VITE_REQUEST_HEADERS={"Authorization":"Bearer your-token-here"}
|
|
105
105
|
VITE_GEMINI_API_KEY=your-gemini-api-key-here
|
|
106
106
|
```
|
|
107
107
|
|