@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 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` / `graphqlToken`: GraphQL endpoint + bearer auth token.
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
- graphqlToken: 'token',
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
- VITE_GRAPHQL_TOKEN=your-graphql-token-here
104
+ VITE_REQUEST_HEADERS={"Authorization":"Bearer your-token-here"}
105
105
  VITE_GEMINI_API_KEY=your-gemini-api-key-here
106
106
  ```
107
107