@kronor/dtv 0.7.0 → 1.0.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 +38 -3
- package/dist/assets/{index-BHV4-0-3.js → index-ZfTF3D5e.js} +75 -75
- package/dist/index.es.js +31296 -0
- package/dist/index.html +1 -1
- package/dist/types/src/App.d.ts +31 -0
- package/dist/types/src/App.d.ts.map +1 -0
- package/dist/types/src/components/AIAssistantForm.d.ts +18 -0
- package/dist/types/src/components/AIAssistantForm.d.ts.map +1 -0
- package/dist/types/src/components/ActionButtons.d.ts +24 -0
- package/dist/types/src/components/ActionButtons.d.ts.map +1 -0
- package/dist/types/src/components/FilterForm.d.ts +19 -0
- package/dist/types/src/components/FilterForm.d.ts.map +1 -0
- package/dist/types/src/components/PhoneNumberFilter.d.ts +6 -0
- package/dist/types/src/components/PhoneNumberFilter.d.ts.map +1 -0
- package/dist/types/src/components/SavedFilterList.d.ts +15 -0
- package/dist/types/src/components/SavedFilterList.d.ts.map +1 -0
- package/dist/types/src/components/SpeechInput.d.ts +7 -0
- package/dist/types/src/components/SpeechInput.d.ts.map +1 -0
- package/dist/types/src/components/Table.d.ts +28 -0
- package/dist/types/src/components/Table.d.ts.map +1 -0
- package/dist/types/src/components/TablePagination.d.ts +12 -0
- package/dist/types/src/components/TablePagination.d.ts.map +1 -0
- package/dist/types/src/components/aiAssistant.d.ts +12 -0
- package/dist/types/src/components/aiAssistant.d.ts.map +1 -0
- package/dist/types/src/dsl/columns.d.ts +21 -0
- package/dist/types/src/dsl/columns.d.ts.map +1 -0
- package/dist/types/src/dsl/reference.d.ts +17 -0
- package/dist/types/src/dsl/reference.d.ts.map +1 -0
- package/dist/types/src/framework/actions.d.ts +36 -0
- package/dist/types/src/framework/actions.d.ts.map +1 -0
- package/dist/types/src/framework/cell-renderer-components/CurrencyAmount.d.ts +11 -0
- package/dist/types/src/framework/cell-renderer-components/CurrencyAmount.d.ts.map +1 -0
- package/dist/types/src/framework/cell-renderer-components/LayoutHelpers.d.ts +24 -0
- package/dist/types/src/framework/cell-renderer-components/LayoutHelpers.d.ts.map +1 -0
- package/dist/types/src/framework/cell-renderer-components/Link.d.ts +12 -0
- package/dist/types/src/framework/cell-renderer-components/Link.d.ts.map +1 -0
- package/dist/types/src/framework/cell-renderer-components/Mapping.d.ts +13 -0
- package/dist/types/src/framework/cell-renderer-components/Mapping.d.ts.map +1 -0
- package/dist/types/src/framework/column-definition.d.ts +69 -0
- package/dist/types/src/framework/column-definition.d.ts.map +1 -0
- package/dist/types/src/framework/currency.d.ts +22 -0
- package/dist/types/src/framework/currency.d.ts.map +1 -0
- package/dist/types/src/framework/data.d.ts +31 -0
- package/dist/types/src/framework/data.d.ts.map +1 -0
- package/dist/types/src/framework/filter-form-state.d.ts +81 -0
- package/dist/types/src/framework/filter-form-state.d.ts.map +1 -0
- package/dist/types/src/framework/filter-sharing.d.ts +24 -0
- package/dist/types/src/framework/filter-sharing.d.ts.map +1 -0
- package/dist/types/src/framework/filters.d.ts +233 -0
- package/dist/types/src/framework/filters.d.ts.map +1 -0
- package/dist/types/src/framework/graphql.d.ts +77 -0
- package/dist/types/src/framework/graphql.d.ts.map +1 -0
- package/dist/types/src/framework/native-runtime/index.d.ts +13 -0
- package/dist/types/src/framework/native-runtime/index.d.ts.map +1 -0
- package/dist/types/src/framework/runtime.d.ts +14 -0
- package/dist/types/src/framework/runtime.d.ts.map +1 -0
- package/dist/types/src/framework/saved-filters.d.ts +47 -0
- package/dist/types/src/framework/saved-filters.d.ts.map +1 -0
- package/dist/types/src/framework/state.d.ts +40 -0
- package/dist/types/src/framework/state.d.ts.map +1 -0
- package/dist/types/src/framework/view-parser.d.ts +174 -0
- package/dist/types/src/framework/view-parser.d.ts.map +1 -0
- package/dist/types/src/framework/view.d.ts +29 -0
- package/dist/types/src/framework/view.d.ts.map +1 -0
- package/dist/types/src/lib/index.d.ts +13 -0
- package/dist/types/src/lib/index.d.ts.map +1 -0
- package/dist/types/src/main.d.ts +29 -0
- package/dist/types/src/main.d.ts.map +1 -0
- package/dist/types/src/views/index.d.ts +8 -0
- package/dist/types/src/views/index.d.ts.map +1 -0
- package/dist/types/src/views/payment-requests/components/NoRowsExtendDateRange.d.ts +4 -0
- package/dist/types/src/views/payment-requests/components/NoRowsExtendDateRange.d.ts.map +1 -0
- package/dist/types/src/views/payment-requests/components/PaymentMethod.d.ts +9 -0
- package/dist/types/src/views/payment-requests/components/PaymentMethod.d.ts.map +1 -0
- package/dist/types/src/views/payment-requests/components/PaymentStatusTag.d.ts +4 -0
- package/dist/types/src/views/payment-requests/components/PaymentStatusTag.d.ts.map +1 -0
- package/dist/types/src/views/payment-requests/index.d.ts +2 -0
- package/dist/types/src/views/payment-requests/index.d.ts.map +1 -0
- package/dist/types/src/views/payment-requests/runtime.d.ts +30 -0
- package/dist/types/src/views/payment-requests/runtime.d.ts.map +1 -0
- package/dist/types/src/views/request-log/index.d.ts +3 -0
- package/dist/types/src/views/request-log/index.d.ts.map +1 -0
- package/dist/types/src/views/request-log/runtime.d.ts +3 -0
- package/dist/types/src/views/request-log/runtime.d.ts.map +1 -0
- package/dist/types/src/views/simple-test-view/index.d.ts +4 -0
- package/dist/types/src/views/simple-test-view/index.d.ts.map +1 -0
- package/dist/types/src/views/simple-test-view/runtime.d.ts +10 -0
- package/dist/types/src/views/simple-test-view/runtime.d.ts.map +1 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ import type { AppProps } from '@kronor/dtv';
|
|
|
26
26
|
All required styles are injected automatically via the JS bundle (using `vite-plugin-css-injected-by-js`).
|
|
27
27
|
|
|
28
28
|
### Runtime Options (AppProps)
|
|
29
|
-
Key props you can pass to `App` (or via `renderTableView` in `main.tsx`):
|
|
29
|
+
Key props you can pass to `App` (or via `dtv.renderTableView` in `main.tsx`):
|
|
30
30
|
|
|
31
31
|
- `graphqlHost` / `graphqlToken`: GraphQL endpoint + bearer auth token.
|
|
32
32
|
- `geminiApiKey`: API key used by the AI Filter Assistant.
|
|
@@ -41,7 +41,7 @@ Key props you can pass to `App` (or via `renderTableView` in `main.tsx`):
|
|
|
41
41
|
|
|
42
42
|
Example:
|
|
43
43
|
```ts
|
|
44
|
-
renderTableView('root', {
|
|
44
|
+
dtv.renderTableView('root', {
|
|
45
45
|
graphqlHost: 'https://example/graphql',
|
|
46
46
|
graphqlToken: 'token',
|
|
47
47
|
geminiApiKey: 'gemini-key',
|
|
@@ -75,7 +75,7 @@ React and ReactDOM 19 are peer dependencies; ensure they are installed in the ho
|
|
|
75
75
|
- Data is fetched via GraphQL using `graphql-request` (see `src/framework/data.ts`).
|
|
76
76
|
- Views define their own GraphQL queries and filter schemas.
|
|
77
77
|
- Filter expressions are serialized/deserialized using helpers in `src/framework/filters.ts`.
|
|
78
|
-
- Unified URL Filter Param: Both share links and persistence use a single base64 URL-safe encoded parameter `dtv-filter-state`. Enable syncing by passing `syncFilterStateToUrl: true` to `renderTableView` (or `?sync-filter-state-to-url=true` in dev). The param is updated only when filters are applied (not on every change). When disabled, a one-off link is consumed (param removed after load).
|
|
78
|
+
- Unified URL Filter Param: Both share links and persistence use a single base64 URL-safe encoded parameter `dtv-filter-state`. Enable syncing by passing `syncFilterStateToUrl: true` to `dtv.renderTableView` (or `?sync-filter-state-to-url=true` in dev). The param is updated only when filters are applied (not on every change). When disabled, a one-off link is consumed (param removed after load).
|
|
79
79
|
|
|
80
80
|
## Development
|
|
81
81
|
|
|
@@ -111,6 +111,41 @@ npm test
|
|
|
111
111
|
npm run test
|
|
112
112
|
```
|
|
113
113
|
|
|
114
|
+
## Release Process
|
|
115
|
+
|
|
116
|
+
Automated release script performs validation (lint, build, unit + e2e tests), builds the library bundle, bumps the version, pushes git tags, and publishes to npm.
|
|
117
|
+
|
|
118
|
+
### Run a release
|
|
119
|
+
```sh
|
|
120
|
+
npm run release
|
|
121
|
+
```
|
|
122
|
+
You'll be prompted for the semver bump (`patch`, `minor`, or `major`). Default is `patch` if you press Enter.
|
|
123
|
+
|
|
124
|
+
### Options / Flags
|
|
125
|
+
```sh
|
|
126
|
+
npm run release -- --type=minor # Non-interactive minor release
|
|
127
|
+
npm run release -- --dry # Run validations only; skip version/tag/publish
|
|
128
|
+
npm run release -- --skip-e2e # Skip Playwright tests (use sparingly)
|
|
129
|
+
npm run release -- --skip-unit # Skip Jest tests (NOT recommended)
|
|
130
|
+
npm run release -- --allow-dirty # Allow running with uncommitted changes (avoids safety check)
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Requirements
|
|
134
|
+
- You must be authenticated with npm (`npm login`).
|
|
135
|
+
- Git working tree must be clean (unless using `--allow-dirty`).
|
|
136
|
+
- CI should pass for the commit you are releasing.
|
|
137
|
+
|
|
138
|
+
### What it does
|
|
139
|
+
1. Lints source code.
|
|
140
|
+
2. Builds application (`npm run build`).
|
|
141
|
+
3. Runs unit tests (Jest) and E2E tests (Playwright).
|
|
142
|
+
4. Builds library bundle (`npm run build:lib`).
|
|
143
|
+
5. Bumps version via `npm version <type>` (commit + tag).
|
|
144
|
+
6. Pushes commit and tags.
|
|
145
|
+
7. Publishes to npm (`npm publish --access public`).
|
|
146
|
+
|
|
147
|
+
Use `--dry` first if you want to verify everything without changing the version or publishing.
|
|
148
|
+
|
|
114
149
|
## Examples
|
|
115
150
|
- See `src/views/paymentRequest.tsx` for a full-featured view definition.
|
|
116
151
|
- See `src/components/AIAssistantForm.tsx` for AI-driven filter generation.
|