@booki-aui/react 0.0.0-stage → 0.2.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 +122 -0
- package/LICENSE +21 -0
- package/README.md +16 -2
- package/dist/access.d.ts +43 -0
- package/dist/access.js +15 -0
- package/dist/access.js.map +1 -0
- package/dist/account-picker.d.ts +40 -0
- package/dist/account-picker.js +25 -0
- package/dist/account-picker.js.map +1 -0
- package/dist/accounting-period-select.d.ts +34 -0
- package/dist/accounting-period-select.js +23 -0
- package/dist/accounting-period-select.js.map +1 -0
- package/dist/activity-timeline.d.ts +37 -0
- package/dist/activity-timeline.js +19 -0
- package/dist/activity-timeline.js.map +1 -0
- package/dist/aged-balances.d.ts +62 -0
- package/dist/aged-balances.js +31 -0
- package/dist/aged-balances.js.map +1 -0
- package/dist/agent-cursor.d.ts +34 -0
- package/dist/agent-cursor.js +14 -0
- package/dist/agent-cursor.js.map +1 -0
- package/dist/agent-presence.d.ts +110 -0
- package/dist/agent-presence.js +15 -0
- package/dist/agent-presence.js.map +1 -0
- package/dist/aging-chart.d.ts +41 -0
- package/dist/aging-chart.js +19 -0
- package/dist/aging-chart.js.map +1 -0
- package/dist/amount-field.d.ts +46 -0
- package/dist/amount-field.js +19 -0
- package/dist/amount-field.js.map +1 -0
- package/dist/amount-input.d.ts +18 -0
- package/dist/amount-input.js +12 -0
- package/dist/amount-input.js.map +1 -0
- package/dist/approval-chain.d.ts +36 -0
- package/dist/approval-chain.js +22 -0
- package/dist/approval-chain.js.map +1 -0
- package/dist/approval-gate.d.ts +19 -0
- package/dist/approval-gate.js +10 -0
- package/dist/approval-gate.js.map +1 -0
- package/dist/attestation-status.d.ts +31 -0
- package/dist/attestation-status.js +22 -0
- package/dist/attestation-status.js.map +1 -0
- package/dist/audit-findings.d.ts +40 -0
- package/dist/audit-findings.js +28 -0
- package/dist/audit-findings.js.map +1 -0
- package/dist/audit-trail.d.ts +22 -0
- package/dist/audit-trail.js +10 -0
- package/dist/audit-trail.js.map +1 -0
- package/dist/audit-workpaper.d.ts +56 -0
- package/dist/audit-workpaper.js +35 -0
- package/dist/audit-workpaper.js.map +1 -0
- package/dist/bank-account-input.d.ts +36 -0
- package/dist/bank-account-input.js +22 -0
- package/dist/bank-account-input.js.map +1 -0
- package/dist/bank-reconciliation.d.ts +38 -0
- package/dist/bank-reconciliation.js +20 -0
- package/dist/bank-reconciliation.js.map +1 -0
- package/dist/bar-chart.d.ts +38 -0
- package/dist/bar-chart.js +19 -0
- package/dist/bar-chart.js.map +1 -0
- package/dist/booki-agent.d.ts +153 -0
- package/dist/booki-agent.js +27 -0
- package/dist/booki-agent.js.map +1 -0
- package/dist/cashflow-waterfall.d.ts +36 -0
- package/dist/cashflow-waterfall.js +17 -0
- package/dist/cashflow-waterfall.js.map +1 -0
- package/dist/change-details-CWpEgc80.d.ts +14 -0
- package/dist/chunk-2HM7YSBC.js +92 -0
- package/dist/chunk-2HM7YSBC.js.map +1 -0
- package/dist/chunk-35QKOOAI.js +27 -0
- package/dist/chunk-35QKOOAI.js.map +1 -0
- package/dist/chunk-37GDU76M.js +86 -0
- package/dist/chunk-37GDU76M.js.map +1 -0
- package/dist/chunk-4EVVT6ME.js +136 -0
- package/dist/chunk-4EVVT6ME.js.map +1 -0
- package/dist/chunk-4GQUOBOG.js +132 -0
- package/dist/chunk-4GQUOBOG.js.map +1 -0
- package/dist/chunk-4KWEZTO5.js +86 -0
- package/dist/chunk-4KWEZTO5.js.map +1 -0
- package/dist/chunk-4WC76FUE.js +242 -0
- package/dist/chunk-4WC76FUE.js.map +1 -0
- package/dist/chunk-62G3T2AA.js +230 -0
- package/dist/chunk-62G3T2AA.js.map +1 -0
- package/dist/chunk-663UXACN.js +334 -0
- package/dist/chunk-663UXACN.js.map +1 -0
- package/dist/chunk-6CVPNV7N.js +106 -0
- package/dist/chunk-6CVPNV7N.js.map +1 -0
- package/dist/chunk-6HWFMC7V.js +140 -0
- package/dist/chunk-6HWFMC7V.js.map +1 -0
- package/dist/chunk-7MYFKLPB.js +301 -0
- package/dist/chunk-7MYFKLPB.js.map +1 -0
- package/dist/chunk-7YTOVA5F.js +312 -0
- package/dist/chunk-7YTOVA5F.js.map +1 -0
- package/dist/chunk-AIGQPM4Y.js +311 -0
- package/dist/chunk-AIGQPM4Y.js.map +1 -0
- package/dist/chunk-AKC6N4QO.js +414 -0
- package/dist/chunk-AKC6N4QO.js.map +1 -0
- package/dist/chunk-BZIOOU4I.js +421 -0
- package/dist/chunk-BZIOOU4I.js.map +1 -0
- package/dist/chunk-CDTDN4LY.js +212 -0
- package/dist/chunk-CDTDN4LY.js.map +1 -0
- package/dist/chunk-EDWQSKY7.js +161 -0
- package/dist/chunk-EDWQSKY7.js.map +1 -0
- package/dist/chunk-EKIWL37F.js +488 -0
- package/dist/chunk-EKIWL37F.js.map +1 -0
- package/dist/chunk-F3C77WLR.js +116 -0
- package/dist/chunk-F3C77WLR.js.map +1 -0
- package/dist/chunk-FBV7BFEQ.js +84 -0
- package/dist/chunk-FBV7BFEQ.js.map +1 -0
- package/dist/chunk-GVP2N3K6.js +89 -0
- package/dist/chunk-GVP2N3K6.js.map +1 -0
- package/dist/chunk-HKYEHBQT.js +19 -0
- package/dist/chunk-HKYEHBQT.js.map +1 -0
- package/dist/chunk-HQYIFZZT.js +169 -0
- package/dist/chunk-HQYIFZZT.js.map +1 -0
- package/dist/chunk-HT6HGOLM.js +151 -0
- package/dist/chunk-HT6HGOLM.js.map +1 -0
- package/dist/chunk-ISPUO3AQ.js +244 -0
- package/dist/chunk-ISPUO3AQ.js.map +1 -0
- package/dist/chunk-JPUVGWLO.js +207 -0
- package/dist/chunk-JPUVGWLO.js.map +1 -0
- package/dist/chunk-JWFGUI7A.js +73 -0
- package/dist/chunk-JWFGUI7A.js.map +1 -0
- package/dist/chunk-K72VT6RJ.js +57 -0
- package/dist/chunk-K72VT6RJ.js.map +1 -0
- package/dist/chunk-KLDUGI7L.js +150 -0
- package/dist/chunk-KLDUGI7L.js.map +1 -0
- package/dist/chunk-M2WLQIFE.js +40 -0
- package/dist/chunk-M2WLQIFE.js.map +1 -0
- package/dist/chunk-M3MCIKF2.js +143 -0
- package/dist/chunk-M3MCIKF2.js.map +1 -0
- package/dist/chunk-MBLQSZHE.js +77 -0
- package/dist/chunk-MBLQSZHE.js.map +1 -0
- package/dist/chunk-N7GIVDUU.js +191 -0
- package/dist/chunk-N7GIVDUU.js.map +1 -0
- package/dist/chunk-NMHTPP6I.js +62 -0
- package/dist/chunk-NMHTPP6I.js.map +1 -0
- package/dist/chunk-NNP6GNEW.js +65 -0
- package/dist/chunk-NNP6GNEW.js.map +1 -0
- package/dist/chunk-OTD7VUEC.js +35 -0
- package/dist/chunk-OTD7VUEC.js.map +1 -0
- package/dist/chunk-OXHKA3UZ.js +30 -0
- package/dist/chunk-OXHKA3UZ.js.map +1 -0
- package/dist/chunk-OYERLEER.js +21 -0
- package/dist/chunk-OYERLEER.js.map +1 -0
- package/dist/chunk-PFY3VJ2T.js +231 -0
- package/dist/chunk-PFY3VJ2T.js.map +1 -0
- package/dist/chunk-PUMSFFEU.js +228 -0
- package/dist/chunk-PUMSFFEU.js.map +1 -0
- package/dist/chunk-QE7KUQOI.js +84 -0
- package/dist/chunk-QE7KUQOI.js.map +1 -0
- package/dist/chunk-QGT7VI6I.js +35 -0
- package/dist/chunk-QGT7VI6I.js.map +1 -0
- package/dist/chunk-QGYS5HS3.js +214 -0
- package/dist/chunk-QGYS5HS3.js.map +1 -0
- package/dist/chunk-QPSBRSBH.js +167 -0
- package/dist/chunk-QPSBRSBH.js.map +1 -0
- package/dist/chunk-ROXGVKR2.js +59 -0
- package/dist/chunk-ROXGVKR2.js.map +1 -0
- package/dist/chunk-RPONJDFZ.js +310 -0
- package/dist/chunk-RPONJDFZ.js.map +1 -0
- package/dist/chunk-RTCKV4H2.js +65 -0
- package/dist/chunk-RTCKV4H2.js.map +1 -0
- package/dist/chunk-SHZFZRHV.js +259 -0
- package/dist/chunk-SHZFZRHV.js.map +1 -0
- package/dist/chunk-SOXPKIQK.js +91 -0
- package/dist/chunk-SOXPKIQK.js.map +1 -0
- package/dist/chunk-SR2HEE4U.js +76 -0
- package/dist/chunk-SR2HEE4U.js.map +1 -0
- package/dist/chunk-SX3U6DRW.js +462 -0
- package/dist/chunk-SX3U6DRW.js.map +1 -0
- package/dist/chunk-T4U2CT35.js +175 -0
- package/dist/chunk-T4U2CT35.js.map +1 -0
- package/dist/chunk-TSX6BD72.js +251 -0
- package/dist/chunk-TSX6BD72.js.map +1 -0
- package/dist/chunk-U6PR3V2Q.js +123 -0
- package/dist/chunk-U6PR3V2Q.js.map +1 -0
- package/dist/chunk-U7NPK4WO.js +135 -0
- package/dist/chunk-U7NPK4WO.js.map +1 -0
- package/dist/chunk-W6TKXS75.js +55 -0
- package/dist/chunk-W6TKXS75.js.map +1 -0
- package/dist/chunk-WDME4U42.js +14 -0
- package/dist/chunk-WDME4U42.js.map +1 -0
- package/dist/chunk-WS2YJSNS.js +62 -0
- package/dist/chunk-WS2YJSNS.js.map +1 -0
- package/dist/chunk-Y5EYY6WJ.js +174 -0
- package/dist/chunk-Y5EYY6WJ.js.map +1 -0
- package/dist/chunk-YBMO3W5O.js +191 -0
- package/dist/chunk-YBMO3W5O.js.map +1 -0
- package/dist/chunk-YOOWFGCU.js +90 -0
- package/dist/chunk-YOOWFGCU.js.map +1 -0
- package/dist/chunk-ZKNVWQDU.js +230 -0
- package/dist/chunk-ZKNVWQDU.js.map +1 -0
- package/dist/chunk-ZYLWSGWQ.js +29 -0
- package/dist/chunk-ZYLWSGWQ.js.map +1 -0
- package/dist/chunk-ZYPW7GCI.js +82 -0
- package/dist/chunk-ZYPW7GCI.js.map +1 -0
- package/dist/client-requests.d.ts +40 -0
- package/dist/client-requests.js +25 -0
- package/dist/client-requests.js.map +1 -0
- package/dist/close-checklist.d.ts +34 -0
- package/dist/close-checklist.js +22 -0
- package/dist/close-checklist.js.map +1 -0
- package/dist/confirm-dialog.d.ts +43 -0
- package/dist/confirm-dialog.js +10 -0
- package/dist/confirm-dialog.js.map +1 -0
- package/dist/country-toggle.d.ts +16 -0
- package/dist/country-toggle.js +10 -0
- package/dist/country-toggle.js.map +1 -0
- package/dist/currency-select.d.ts +32 -0
- package/dist/currency-select.js +23 -0
- package/dist/currency-select.js.map +1 -0
- package/dist/data-table.d.ts +77 -0
- package/dist/data-table.js +30 -0
- package/dist/data-table.js.map +1 -0
- package/dist/deal-pipeline.d.ts +46 -0
- package/dist/deal-pipeline.js +25 -0
- package/dist/deal-pipeline.js.map +1 -0
- package/dist/document-signoff.d.ts +45 -0
- package/dist/document-signoff.js +21 -0
- package/dist/document-signoff.js.map +1 -0
- package/dist/evidence-list.d.ts +35 -0
- package/dist/evidence-list.js +21 -0
- package/dist/evidence-list.js.map +1 -0
- package/dist/exception-banner.d.ts +15 -0
- package/dist/exception-banner.js +10 -0
- package/dist/exception-banner.js.map +1 -0
- package/dist/expense-claim.d.ts +43 -0
- package/dist/expense-claim.js +31 -0
- package/dist/expense-claim.js.map +1 -0
- package/dist/financial-date-field.d.ts +27 -0
- package/dist/financial-date-field.js +17 -0
- package/dist/financial-date-field.js.map +1 -0
- package/dist/fixed-asset-register.d.ts +59 -0
- package/dist/fixed-asset-register.js +31 -0
- package/dist/fixed-asset-register.js.map +1 -0
- package/dist/forecast-chart.d.ts +38 -0
- package/dist/forecast-chart.js +19 -0
- package/dist/forecast-chart.js.map +1 -0
- package/dist/form-props-Ct7zeZBH.d.ts +25 -0
- package/dist/funnel-chart.d.ts +27 -0
- package/dist/funnel-chart.js +17 -0
- package/dist/funnel-chart.js.map +1 -0
- package/dist/iban-input.d.ts +27 -0
- package/dist/iban-input.js +16 -0
- package/dist/iban-input.js.map +1 -0
- package/dist/index.d.ts +644 -0
- package/dist/index.js +1082 -0
- package/dist/index.js.map +1 -0
- package/dist/invoice-editor.d.ts +38 -0
- package/dist/invoice-editor.js +26 -0
- package/dist/invoice-editor.js.map +1 -0
- package/dist/invoice-number-input.d.ts +25 -0
- package/dist/invoice-number-input.js +17 -0
- package/dist/invoice-number-input.js.map +1 -0
- package/dist/kpi-stat.d.ts +34 -0
- package/dist/kpi-stat.js +15 -0
- package/dist/kpi-stat.js.map +1 -0
- package/dist/ledger-table.d.ts +85 -0
- package/dist/ledger-table.js +41 -0
- package/dist/ledger-table.js.map +1 -0
- package/dist/locale.d.ts +22 -0
- package/dist/locale.js +13 -0
- package/dist/locale.js.map +1 -0
- package/dist/money-amount.d.ts +15 -0
- package/dist/money-amount.js +10 -0
- package/dist/money-amount.js.map +1 -0
- package/dist/organization-number-input.d.ts +25 -0
- package/dist/organization-number-input.js +17 -0
- package/dist/organization-number-input.js.map +1 -0
- package/dist/payment-batch.d.ts +58 -0
- package/dist/payment-batch.js +31 -0
- package/dist/payment-batch.js.map +1 -0
- package/dist/payment-confirm.d.ts +19 -0
- package/dist/payment-confirm.js +11 -0
- package/dist/payment-confirm.js.map +1 -0
- package/dist/payment-reference-input.d.ts +27 -0
- package/dist/payment-reference-input.js +17 -0
- package/dist/payment-reference-input.js.map +1 -0
- package/dist/period-lock.d.ts +28 -0
- package/dist/period-lock.js +18 -0
- package/dist/period-lock.js.map +1 -0
- package/dist/recurring-revenue.d.ts +37 -0
- package/dist/recurring-revenue.js +18 -0
- package/dist/recurring-revenue.js.map +1 -0
- package/dist/sca-prompt.d.ts +16 -0
- package/dist/sca-prompt.js +10 -0
- package/dist/sca-prompt.js.map +1 -0
- package/dist/sheet-stack.d.ts +34 -0
- package/dist/sheet-stack.js +20 -0
- package/dist/sheet-stack.js.map +1 -0
- package/dist/stage-duration.d.ts +33 -0
- package/dist/stage-duration.js +16 -0
- package/dist/stage-duration.js.map +1 -0
- package/dist/supplier-invoice-inbox.d.ts +66 -0
- package/dist/supplier-invoice-inbox.js +38 -0
- package/dist/supplier-invoice-inbox.js.map +1 -0
- package/dist/tax-code-select.d.ts +33 -0
- package/dist/tax-code-select.js +23 -0
- package/dist/tax-code-select.js.map +1 -0
- package/dist/text-link.d.ts +33 -0
- package/dist/text-link.js +13 -0
- package/dist/text-link.js.map +1 -0
- package/dist/toasts.d.ts +53 -0
- package/dist/toasts.js +17 -0
- package/dist/toasts.js.map +1 -0
- package/dist/trend-chart.d.ts +43 -0
- package/dist/trend-chart.js +19 -0
- package/dist/trend-chart.js.map +1 -0
- package/dist/vat-return.d.ts +54 -0
- package/dist/vat-return.js +23 -0
- package/dist/vat-return.js.map +1 -0
- package/dist/voucher-composer.d.ts +69 -0
- package/dist/voucher-composer.js +15 -0
- package/dist/voucher-composer.js.map +1 -0
- package/dist/voucher-lines.d.ts +11 -0
- package/dist/voucher-lines.js +10 -0
- package/dist/voucher-lines.js.map +1 -0
- package/docs/llms.txt +214 -0
- package/package.json +308 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# @booki/react
|
|
2
|
+
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#93](https://github.com/Walgermo/booki/pull/93) [`ec89785`](https://github.com/Walgermo/booki/commit/ec8978566d2a81ee14eb94cc5163a2490ea824a9) Thanks [@Walgermo](https://github.com/Walgermo)! - The packages are now named `@booki-aui/*` and are published to npm (the `@booki` scope on npm belongs to someone else). Install with `pnpm add @booki-aui/core @booki-aui/react @booki-aui/styles`, and replace `@booki/` with `@booki-aui/` in your imports, for example `import { createBookiAgent } from "@booki-aui/react"` and `import "@booki-aui/styles"`. Nothing else changed.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#95](https://github.com/Walgermo/booki/pull/95) [`d042c11`](https://github.com/Walgermo/booki/commit/d042c114a5812fedcb027dba50602dc422390bdb) Thanks [@Walgermo](https://github.com/Walgermo)! - Much smaller type declarations: the package's `.d.ts` files go from 14.7 MB to 300 kB (`ledger-table.d.ts` from 3.8 MB to 8 kB), so TypeScript loads them faster. Each control's parts now name their definition instead of spelling it out once per part. The types themselves are the same.
|
|
12
|
+
- Updated dependencies [[`ec89785`](https://github.com/Walgermo/booki/commit/ec8978566d2a81ee14eb94cc5163a2490ea824a9)]:
|
|
13
|
+
- @booki-aui/core@0.2.0
|
|
14
|
+
- @booki-aui/primitives@0.2.0
|
|
15
|
+
|
|
16
|
+
## 0.1.7
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [#83](https://github.com/Walgermo/booki/pull/83) [`3fe7338`](https://github.com/Walgermo/booki/commit/3fe7338a650bbc8a6c900693bc8f93abba937a0a) Thanks [@Walgermo](https://github.com/Walgermo)! - An `act` call without `steps`, like `{ "step": [] }` from a model that got the shape wrong, now comes back with ui-sdk's sentence (`act takes { "steps": [...] }, not …`) instead of throwing a TypeError. Through WebMCP the model used to get only "Tool execution failed". With `language: "nb"`, ui-sdk's sentences about a call in the wrong shape (no `steps`, a field `act` doesn't take, a step without a ref, an action or a value) come back in Norwegian.
|
|
21
|
+
|
|
22
|
+
- [#83](https://github.com/Walgermo/booki/pull/83) [`3fe7338`](https://github.com/Walgermo/booki/commit/3fe7338a650bbc8a6c900693bc8f93abba937a0a) Thanks [@Walgermo](https://github.com/Walgermo)! - A controlled `CurrencySelect` (with `value`) no longer passes its default "NOK" as `defaultValue` too, so ui-sdk stops warning "got `value` and `defaultValue`" on every render.
|
|
23
|
+
- Updated dependencies [[`3fe7338`](https://github.com/Walgermo/booki/commit/3fe7338a650bbc8a6c900693bc8f93abba937a0a)]:
|
|
24
|
+
- @booki/core@0.1.7
|
|
25
|
+
- @booki/primitives@0.1.7
|
|
26
|
+
|
|
27
|
+
## 0.1.6
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- [#80](https://github.com/Walgermo/booki/pull/80) [`1054c6e`](https://github.com/Walgermo/booki/commit/1054c6e79f3418e1fb9560beea50b7b027f82bff) Thanks [@Walgermo](https://github.com/Walgermo)! - Booki and the bridge features of ui-sdk beta.17, lined up:
|
|
32
|
+
|
|
33
|
+
- **The bridge's new sentences in Norwegian.** With `createBookiAgent({ language: "nb" })`, a `set` step that didn't take ("tok ikke: verdien er fortsatt …"), one that landed on another value, a failed `expect`, and a number outside min and max now come back in Norwegian like the rest of the bridge's sentences.
|
|
34
|
+
- **A failed `expect` writes no audit row.** `actAndRecord` recorded it as `agent.failed`, but a check changes nothing and refuses nothing. A refused change is still recorded.
|
|
35
|
+
- **Long lists page with `from`.** The `itemsHint` of `AccountPicker`, `CurrencySelect`, `TaxCodeSelect` and `useBookiFieldCode` says that `query({ within, from: 50 })` reads the next 50, next to the bridge's own `more` count.
|
|
36
|
+
- **Docs.** The skill and the catalog show `expect` before a save, which components it works on (fields with a value, not record components), and what "didn't take" means for a controlled field.
|
|
37
|
+
- Updated dependencies [[`1054c6e`](https://github.com/Walgermo/booki/commit/1054c6e79f3418e1fb9560beea50b7b027f82bff)]:
|
|
38
|
+
- @booki/core@0.1.6
|
|
39
|
+
- @booki/primitives@0.1.6
|
|
40
|
+
|
|
41
|
+
## 0.1.5
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- [#78](https://github.com/Walgermo/booki/pull/78) [`326ce38`](https://github.com/Walgermo/booki/commit/326ce386d087c74fb359a3508ccf4a416a41adea) Thanks [@Walgermo](https://github.com/Walgermo)! - Built on `@ui-sdk/*` 0.1.0-beta.17 (was beta.16), and the peer dependencies ask for it exactly, so move your `@ui-sdk` packages with Booki.
|
|
46
|
+
|
|
47
|
+
What changes for an agent, from ui-sdk: `act` checks the shape of the whole call before it runs, so a step with an unknown key or `args` that is not a list fails with a message instead of being half-read; a `setX` action that leaves `x` unchanged, or sets a different value, now fails and says what the value is; a number outside a control's min and max is refused, not clamped; `agentTools` lists `act` first. New in the bridge: an `expect` step, `closed` and `from` on `query`, and `more` and `section` in long snapshots.
|
|
48
|
+
|
|
49
|
+
What changes in Booki:
|
|
50
|
+
|
|
51
|
+
- `LedgerTable`'s `page` state is 1-based, the same as `table.page` and `setPage`. It was 0-based, so `setPage(3)` left `page: 2`, which ui-sdk now reports as a failed step.
|
|
52
|
+
- `@booki/svelte` no longer needs `ssr: { noExternal: [...] }`: `@ui-sdk/svelte` imports its own files with extensions now. Load it through Vite with the Svelte plugin as before.
|
|
53
|
+
- `@booki/primitives` and `@booki/react` no longer copy ui-sdk declaration files into `dist`, since `@ui-sdk/core` exports `SlotProps` now.
|
|
54
|
+
|
|
55
|
+
beta.17 was published on 2026-11-24; under a release-age rule (pnpm 11 waits one day by default) it installs from 2026-11-25.
|
|
56
|
+
- Updated dependencies [[`326ce38`](https://github.com/Walgermo/booki/commit/326ce386d087c74fb359a3508ccf4a416a41adea)]:
|
|
57
|
+
- @booki/primitives@0.1.5
|
|
58
|
+
- @booki/core@0.1.5
|
|
59
|
+
|
|
60
|
+
## 0.1.4
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- [#75](https://github.com/Walgermo/booki/pull/75) [`520026a`](https://github.com/Walgermo/booki/commit/520026a6eea792c8186387a7dbc285b97628de36) Thanks [@Walgermo](https://github.com/Walgermo)! - Safer agent integrations. A press on a button that is a person's decision (signing off, releasing, sending) is refused with "This is a person's decision …" and an `agent.person-only` audit row, also when the control takes no `press` of its own; it used to answer "nothing to press now" and leave no trace. `registerTools(agent, { allow: "bridge" })` lets the bridge's own `allow` decide each step once (no second prompt), answers in the agent's `language`, records a control's own refusals with `audit`, and takes a `prefix` for the tool names (`acme_snapshot`); it also registers where the browser's `registerTool` returns no promise. `attachAudit` writes a change to a list or record per record and field, with the step in front when one `act` ran one step, instead of a cut-off JSON diff. The install guide's WebMCP example now uses `allow: "bridge"`: if you copied it, drop the second `allow`.
|
|
65
|
+
- Updated dependencies [[`520026a`](https://github.com/Walgermo/booki/commit/520026a6eea792c8186387a7dbc285b97628de36)]:
|
|
66
|
+
- @booki/primitives@0.1.4
|
|
67
|
+
- @booki/core@0.1.4
|
|
68
|
+
|
|
69
|
+
## 0.1.3
|
|
70
|
+
|
|
71
|
+
### Patch Changes
|
|
72
|
+
|
|
73
|
+
- [#69](https://github.com/Walgermo/booki/pull/69) [`85bde56`](https://github.com/Walgermo/booki/commit/85bde56ab298f00f1b08e326bb26610457d416f8) Thanks [@Walgermo](https://github.com/Walgermo)! - Four sales reports. `FunnelChart`: how many records reached each step, the conversion from the step before and from the first, the drop-off and the biggest drop; a step that rises is reported. `ForecastChart`: won, committed, best case and weighted revenue per month or quarter, from the same deals and stages as `DealPipeline`, naming the deals it leaves out (no close date, no amount or one without a source, another currency). `RecurringRevenue`: opening, new, expansion, contraction, churn and closing between two dates, as MRR or ARR; agreements billed per month, quarter or year are summed exactly per year, and the monthly view says what rounding moved. `StageDurationChart`: median and longest days per stage, a target per stage, and the deals over it. Rules in `@booki/core/funnel`, `@booki/core/recurring` and `forecastByPeriod` / `timeInStage` in `@booki/core/pipeline`. The catalog has recipes for win rate, a leaderboard, MRR over time, and working without stage history.
|
|
74
|
+
- Updated dependencies [[`85bde56`](https://github.com/Walgermo/booki/commit/85bde56ab298f00f1b08e326bb26610457d416f8)]:
|
|
75
|
+
- @booki/core@0.1.3
|
|
76
|
+
- @booki/primitives@0.1.3
|
|
77
|
+
|
|
78
|
+
## 0.1.2
|
|
79
|
+
|
|
80
|
+
### Patch Changes
|
|
81
|
+
|
|
82
|
+
- [#67](https://github.com/Walgermo/booki/pull/67) [`d7816ae`](https://github.com/Walgermo/booki/commit/d7816ae204780a08b4b1097699e57aaf47002626) Thanks [@Walgermo](https://github.com/Walgermo)! - `useBookiField` with `kind: "code"` takes `personOnly`: values only a person may choose, such as a deal's won and lost stages in a stage select the product already has. An agent's `setCode` to one of them is refused with a sentence that names it; a person's change, which passes its DOM event, goes through; the snapshot lists them.
|
|
83
|
+
|
|
84
|
+
`CurrencySelect` names its trigger in the person's language ("Valuta" on a Norwegian screen) and takes a `label` option, like the other pickers.
|
|
85
|
+
- Updated dependencies [[`d7816ae`](https://github.com/Walgermo/booki/commit/d7816ae204780a08b4b1097699e57aaf47002626)]:
|
|
86
|
+
- @booki/core@0.1.2
|
|
87
|
+
- @booki/primitives@0.1.2
|
|
88
|
+
|
|
89
|
+
## 0.1.1
|
|
90
|
+
|
|
91
|
+
### Patch Changes
|
|
92
|
+
|
|
93
|
+
- [#65](https://github.com/Walgermo/booki/pull/65) [`201f7c9`](https://github.com/Walgermo/booki/commit/201f7c9d1aa843ab3a7c75ebbeb87df831110c08) Thanks [@Walgermo](https://github.com/Walgermo)! - Two controls for sales and customer work. `DealPipeline` is a board of deals in stages with each stage's totals per currency and a weighted forecast: an agent moves open deals, records a value with its source (`setValue`), and sets the expected close date and the owner; a value without a source is shown and never summed; marking a deal won or lost, and reopening it, are a person's buttons. `ActivityTimeline` is a customer's history and next steps: an agent logs calls, emails, meetings and notes, and schedules, reschedules and completes tasks, each recorded as the agent's; removing an entry is a person's. Rules in `@booki/core/pipeline` and `@booki/core/activity`, the `deal.close` and `activity.remove` permissions, a `sales` starter role, and `guardCloseDeal` for the server. `deal.close` is a person's decision: `PERSON_ONLY` and the readiness check now list it.
|
|
94
|
+
- Updated dependencies [[`201f7c9`](https://github.com/Walgermo/booki/commit/201f7c9d1aa843ab3a7c75ebbeb87df831110c08)]:
|
|
95
|
+
- @booki/core@0.1.1
|
|
96
|
+
- @booki/primitives@0.1.1
|
|
97
|
+
|
|
98
|
+
## 0.1.0
|
|
99
|
+
|
|
100
|
+
The first release. It is not on npm: Booki is published once v1 has run in a real
|
|
101
|
+
product. Install it from a clone with `pnpm pack:local` (the install guide in
|
|
102
|
+
`skills/booki/SKILL.md` has the steps), with `@ui-sdk/core` and `@ui-sdk/react` at
|
|
103
|
+
exactly `0.1.0-beta.16`.
|
|
104
|
+
|
|
105
|
+
- **Supported:** React 19 (`@booki/react` with `@booki/core`, `@booki/primitives` and
|
|
106
|
+
`@booki/styles`), and the Norway (NO) and United States (US) country profiles.
|
|
107
|
+
- **Experimental:** Vue, Svelte, Solid and Web Components (`@booki/vue`,
|
|
108
|
+
`@booki/svelte`, `@booki/solid`, `@booki/web`), generated from the same primitives,
|
|
109
|
+
and the SE, DK, GB and DE starter profiles.
|
|
110
|
+
- Accounting and audit controls an agent operates by name through the ui-sdk bridge:
|
|
111
|
+
amounts in minor units, vouchers that must balance, bank account, IBAN and KID
|
|
112
|
+
redacted from the snapshot, periods, VAT, invoices, payment batches, reconciliation,
|
|
113
|
+
approvals, close, findings and workpapers. `useBookiField` gives a field you keep
|
|
114
|
+
Booki's agent action and rules.
|
|
115
|
+
- Approving, signing off, finalizing and releasing are a person's: never an agent
|
|
116
|
+
action, refused by `createBookiAgent` whatever the app allows, and by the server
|
|
117
|
+
guards in `@booki/core/server` (`PERSON_ONLY`). `data-agent-confirm` steps wait for
|
|
118
|
+
the person; `attachAudit` and `actAndRecord` record what the agent did, what it was
|
|
119
|
+
refused and who decided.
|
|
120
|
+
- Refusals, the bridge's own sentences and the agent cursor in English and Norwegian
|
|
121
|
+
(`createBookiAgent({ language: "nb" })`).
|
|
122
|
+
- Fixed in seven rounds of a product pilot in a real app, from the install guide.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Stian Walgermo
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @booki-aui/react
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Agent-first controls for accounting and auditing in React. Each control gives an agent typed state and named actions over Booki's agent bridge, and enforces the accounting rules from `@booki-aui/core` whatever the agent sends.
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
import { AmountField, VoucherComposer, BankReconciliation, createBookiAgent } from "@booki-aui/react"
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
- Amounts are integer minor units, in and out.
|
|
10
|
+
- Posting, paying and approving are marked for a person.
|
|
11
|
+
- Bank details read as `[redacted]` to an agent.
|
|
12
|
+
- `AgentCursor`, `AgentPresence`, `useAgentProposal` and `AgentProposal` make the agent's work visible.
|
|
13
|
+
- A control of your own: define its primitive with `definePrimitive` and `createChange`, then create its parts with `createParts`, all exported from here. A Booki control under your own names: `createParts` with a definition from `@booki-aui/primitives`.
|
|
14
|
+
|
|
15
|
+
Requires React 19. Peer dependencies: `@ui-sdk/core` and `@ui-sdk/react` 0.1.0-beta.17. The agent catalog is in `docs/llms.txt`.
|
|
16
|
+
|
|
17
|
+
Docs and source: https://github.com/Walgermo/booki
|
package/dist/access.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { Actor, Entity, Permission, Deed, Role, DutyRule } from '@booki-aui/core/permissions';
|
|
4
|
+
export { Actor, Deed, DutyRule, Entity, Permission, Role } from '@booki-aui/core/permissions';
|
|
5
|
+
export { refuseDenied } from '@booki-aui/primitives/access';
|
|
6
|
+
|
|
7
|
+
type BookiAccess = {
|
|
8
|
+
actor: Actor | undefined;
|
|
9
|
+
entity: Entity | undefined;
|
|
10
|
+
can: (permission: Permission) => boolean;
|
|
11
|
+
/** Why this person may not, as a sentence. Undefined when they may. */
|
|
12
|
+
why: (permission: Permission, deeds?: Deed[]) => string | undefined;
|
|
13
|
+
};
|
|
14
|
+
type BookiAccessProviderProps = {
|
|
15
|
+
/** The person at the keyboard. */
|
|
16
|
+
actor?: Actor;
|
|
17
|
+
/** Defaults to `STANDARD_ROLES` from `@booki-aui/core/permissions`. */
|
|
18
|
+
roles?: Role[];
|
|
19
|
+
/** The company being worked in. An actor limited to other entities is refused. */
|
|
20
|
+
entity?: Entity;
|
|
21
|
+
/** Pairs of things one person may not both do on the same item. */
|
|
22
|
+
dutyRules?: DutyRule[];
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Who is signed in, what their roles allow, and which company they are in.
|
|
27
|
+
* Inside it, the workflow controls take the actor from here and refuse a
|
|
28
|
+
* person's button their role does not allow, saying which role it takes.
|
|
29
|
+
* Your backend still has to check: this is the screen's half.
|
|
30
|
+
*/
|
|
31
|
+
declare function BookiAccessProvider({ actor, roles, entity, dutyRules, children }: BookiAccessProviderProps): react.JSX.Element;
|
|
32
|
+
/** The access context, or null when there is no provider (then nothing is refused by role). */
|
|
33
|
+
declare function useBookiAccess(): BookiAccess | null;
|
|
34
|
+
/**
|
|
35
|
+
* For a control: the actor id to record decisions under, and the person's
|
|
36
|
+
* methods their role does not allow, each with the reason.
|
|
37
|
+
*/
|
|
38
|
+
declare function useAccessFor(methods: Record<string, Permission>, explicitActor?: string): {
|
|
39
|
+
actor: string | undefined;
|
|
40
|
+
denied: Record<string, string> | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export { type BookiAccess, BookiAccessProvider, type BookiAccessProviderProps, useAccessFor, useBookiAccess };
|
package/dist/access.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
BookiAccessProvider,
|
|
4
|
+
refuseDenied,
|
|
5
|
+
useAccessFor,
|
|
6
|
+
useBookiAccess
|
|
7
|
+
} from "./chunk-K72VT6RJ.js";
|
|
8
|
+
import "./chunk-HKYEHBQT.js";
|
|
9
|
+
export {
|
|
10
|
+
BookiAccessProvider,
|
|
11
|
+
refuseDenied,
|
|
12
|
+
useAccessFor,
|
|
13
|
+
useBookiAccess
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=access.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { AccountOption } from '@booki-aui/core/voucher';
|
|
4
|
+
import { Parts } from '@ui-sdk/react/primitive';
|
|
5
|
+
import { B as BookiFormProps } from './form-props-Ct7zeZBH.js';
|
|
6
|
+
import { accountPicker } from '@booki-aui/primitives/account-picker';
|
|
7
|
+
export { accountPicker } from '@booki-aui/primitives/account-picker';
|
|
8
|
+
|
|
9
|
+
declare const TAGS: {
|
|
10
|
+
readonly root: "div";
|
|
11
|
+
readonly input: "input";
|
|
12
|
+
readonly list: "div";
|
|
13
|
+
readonly option: "div";
|
|
14
|
+
readonly empty: "div";
|
|
15
|
+
readonly select: "select";
|
|
16
|
+
};
|
|
17
|
+
declare const parts: Parts<typeof accountPicker, typeof TAGS>;
|
|
18
|
+
declare const AccountPickerRoot: (typeof parts)["Root"];
|
|
19
|
+
/** The search field: an editable combobox that filters the chart of accounts. */
|
|
20
|
+
declare const AccountPickerInput: (typeof parts)["Input"];
|
|
21
|
+
declare const AccountPickerList: (typeof parts)["List"];
|
|
22
|
+
declare const AccountPickerOption: (typeof parts)["Option"];
|
|
23
|
+
declare const AccountPickerEmpty: (typeof parts)["Empty"];
|
|
24
|
+
/** The native `<select>` fallback, shown by @booki-aui/styles on touch screens. */
|
|
25
|
+
declare const AccountPickerControl: (typeof parts)["Select"];
|
|
26
|
+
type AccountPickerProps = {
|
|
27
|
+
accounts: AccountOption[];
|
|
28
|
+
value?: string;
|
|
29
|
+
/** Starting account when uncontrolled. Without one, no account is chosen. */
|
|
30
|
+
defaultValue?: string;
|
|
31
|
+
/** Hears every change, with why and from whom: `details.source` is `"agent"` for the agent's. */
|
|
32
|
+
onValueChange?: (accountNumber: string, details: {
|
|
33
|
+
reason: string;
|
|
34
|
+
source?: string;
|
|
35
|
+
}) => void;
|
|
36
|
+
className?: string;
|
|
37
|
+
} & BookiFormProps & Omit<ComponentProps<"div">, "onChange" | "defaultValue" | "children" | "id">;
|
|
38
|
+
declare function AccountPicker({ accounts, value, defaultValue, onValueChange, name, id, disabled, readOnly, required, className, ...props }: AccountPickerProps): react.JSX.Element;
|
|
39
|
+
|
|
40
|
+
export { AccountPicker, AccountPickerControl, AccountPickerEmpty, AccountPickerInput, AccountPickerList, AccountPickerOption, type AccountPickerProps, AccountPickerRoot };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
AccountPicker,
|
|
4
|
+
AccountPickerControl,
|
|
5
|
+
AccountPickerEmpty,
|
|
6
|
+
AccountPickerInput,
|
|
7
|
+
AccountPickerList,
|
|
8
|
+
AccountPickerOption,
|
|
9
|
+
AccountPickerRoot,
|
|
10
|
+
accountPicker
|
|
11
|
+
} from "./chunk-YOOWFGCU.js";
|
|
12
|
+
import "./chunk-OYERLEER.js";
|
|
13
|
+
import "./chunk-GVP2N3K6.js";
|
|
14
|
+
import "./chunk-HKYEHBQT.js";
|
|
15
|
+
export {
|
|
16
|
+
AccountPicker,
|
|
17
|
+
AccountPickerControl,
|
|
18
|
+
AccountPickerEmpty,
|
|
19
|
+
AccountPickerInput,
|
|
20
|
+
AccountPickerList,
|
|
21
|
+
AccountPickerOption,
|
|
22
|
+
AccountPickerRoot,
|
|
23
|
+
accountPicker
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=account-picker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { PeriodGranularity } from '@booki-aui/core/period';
|
|
4
|
+
import { Parts } from '@ui-sdk/react/primitive';
|
|
5
|
+
import { B as BookiFormProps } from './form-props-Ct7zeZBH.js';
|
|
6
|
+
import { accountingPeriod } from '@booki-aui/primitives/accounting-period-select';
|
|
7
|
+
export { accountingPeriod } from '@booki-aui/primitives/accounting-period-select';
|
|
8
|
+
|
|
9
|
+
declare const TAGS: {
|
|
10
|
+
readonly root: "div";
|
|
11
|
+
readonly trigger: "button";
|
|
12
|
+
readonly list: "div";
|
|
13
|
+
readonly option: "div";
|
|
14
|
+
readonly select: "select";
|
|
15
|
+
};
|
|
16
|
+
declare const parts: Parts<typeof accountingPeriod, typeof TAGS>;
|
|
17
|
+
declare const AccountingPeriodRoot: (typeof parts)["Root"];
|
|
18
|
+
/** The select-only combobox a person opens. */
|
|
19
|
+
declare const AccountingPeriodTrigger: (typeof parts)["Trigger"];
|
|
20
|
+
declare const AccountingPeriodList: (typeof parts)["List"];
|
|
21
|
+
declare const AccountingPeriodOption: (typeof parts)["Option"];
|
|
22
|
+
/** The native `<select>` fallback, shown by @booki-aui/styles on touch screens. */
|
|
23
|
+
declare const AccountingPeriodControl: (typeof parts)["Select"];
|
|
24
|
+
type AccountingPeriodSelectProps = {
|
|
25
|
+
value?: string;
|
|
26
|
+
defaultValue?: string;
|
|
27
|
+
year?: number;
|
|
28
|
+
granularity?: PeriodGranularity;
|
|
29
|
+
onValueChange?: (code: string) => void;
|
|
30
|
+
className?: string;
|
|
31
|
+
} & BookiFormProps & Omit<ComponentProps<"div">, "onChange" | "defaultValue" | "children" | "id">;
|
|
32
|
+
declare function AccountingPeriodSelect({ value, defaultValue, year, granularity: granularityProp, onValueChange, name, id, disabled, readOnly, required, className, ...props }: AccountingPeriodSelectProps): react.JSX.Element;
|
|
33
|
+
|
|
34
|
+
export { AccountingPeriodControl, AccountingPeriodList, AccountingPeriodOption, AccountingPeriodRoot, AccountingPeriodSelect, type AccountingPeriodSelectProps, AccountingPeriodTrigger };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
AccountingPeriodControl,
|
|
4
|
+
AccountingPeriodList,
|
|
5
|
+
AccountingPeriodOption,
|
|
6
|
+
AccountingPeriodRoot,
|
|
7
|
+
AccountingPeriodSelect,
|
|
8
|
+
AccountingPeriodTrigger,
|
|
9
|
+
accountingPeriod
|
|
10
|
+
} from "./chunk-4KWEZTO5.js";
|
|
11
|
+
import "./chunk-OYERLEER.js";
|
|
12
|
+
import "./chunk-GVP2N3K6.js";
|
|
13
|
+
import "./chunk-HKYEHBQT.js";
|
|
14
|
+
export {
|
|
15
|
+
AccountingPeriodControl,
|
|
16
|
+
AccountingPeriodList,
|
|
17
|
+
AccountingPeriodOption,
|
|
18
|
+
AccountingPeriodRoot,
|
|
19
|
+
AccountingPeriodSelect,
|
|
20
|
+
AccountingPeriodTrigger,
|
|
21
|
+
accountingPeriod
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=accounting-period-select.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { Activity } from '@booki-aui/core/activity';
|
|
4
|
+
export { Activity, ActivityKind } from '@booki-aui/core/activity';
|
|
5
|
+
import { Parts } from '@ui-sdk/react/primitive';
|
|
6
|
+
import { B as BookiChangeDetails } from './change-details-CWpEgc80.js';
|
|
7
|
+
import { TimelinePerson, activityTimeline } from '@booki-aui/primitives/activity-timeline';
|
|
8
|
+
export { TimelinePerson, activityTimeline } from '@booki-aui/primitives/activity-timeline';
|
|
9
|
+
|
|
10
|
+
declare const TAGS: {
|
|
11
|
+
readonly root: "div";
|
|
12
|
+
readonly complete: "button";
|
|
13
|
+
readonly remove: "button";
|
|
14
|
+
};
|
|
15
|
+
declare const parts: Parts<typeof activityTimeline, typeof TAGS>;
|
|
16
|
+
declare const ActivityTimelineRoot: (typeof parts)["Root"];
|
|
17
|
+
declare const ActivityTimelineComplete: (typeof parts)["Complete"];
|
|
18
|
+
declare const ActivityTimelineRemove: (typeof parts)["Remove"];
|
|
19
|
+
type ActivityTimelineProps = {
|
|
20
|
+
activities?: Activity[];
|
|
21
|
+
defaultActivities?: Activity[];
|
|
22
|
+
/** Who a task may be for; the agent's `assigneeId` takes only these. */
|
|
23
|
+
people?: TimelinePerson[];
|
|
24
|
+
/** Today as YYYY-MM-DD, for overdue tasks. */
|
|
25
|
+
today?: string;
|
|
26
|
+
actor?: string;
|
|
27
|
+
agentActor?: string;
|
|
28
|
+
onActivitiesChange?: (activities: Activity[], details: BookiChangeDetails) => void;
|
|
29
|
+
/** A name for an id in `by`, `doneBy` and `assigneeId`. Defaults to the `people` list, then the id. */
|
|
30
|
+
nameOf?: (id: string) => ReactNode;
|
|
31
|
+
className?: string;
|
|
32
|
+
"aria-label"?: string;
|
|
33
|
+
};
|
|
34
|
+
/** Composed timeline: the open tasks first, then what happened, newest first. */
|
|
35
|
+
declare function ActivityTimeline({ activities, defaultActivities, people, today, actor, agentActor, onActivitiesChange, nameOf, className, "aria-label": ariaLabel, }: ActivityTimelineProps): react.JSX.Element;
|
|
36
|
+
|
|
37
|
+
export { ActivityTimeline, ActivityTimelineComplete, type ActivityTimelineProps, ActivityTimelineRemove, ActivityTimelineRoot };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
ActivityTimeline,
|
|
4
|
+
ActivityTimelineComplete,
|
|
5
|
+
ActivityTimelineRemove,
|
|
6
|
+
ActivityTimelineRoot,
|
|
7
|
+
activityTimeline
|
|
8
|
+
} from "./chunk-JPUVGWLO.js";
|
|
9
|
+
import "./chunk-K72VT6RJ.js";
|
|
10
|
+
import "./chunk-GVP2N3K6.js";
|
|
11
|
+
import "./chunk-HKYEHBQT.js";
|
|
12
|
+
export {
|
|
13
|
+
ActivityTimeline,
|
|
14
|
+
ActivityTimelineComplete,
|
|
15
|
+
ActivityTimelineRemove,
|
|
16
|
+
ActivityTimelineRoot,
|
|
17
|
+
activityTimeline
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=activity-timeline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { OpenItem, OpenItemKind } from '@booki-aui/core/aging';
|
|
3
|
+
export { AgedItem, AgingBucket, AgingRow, OpenItem, OpenItemKind, OverdueParty } from '@booki-aui/core/aging';
|
|
4
|
+
import { TableQuery } from '@booki-aui/core/table';
|
|
5
|
+
import { Parts } from '@ui-sdk/react/primitive';
|
|
6
|
+
import { agedBalances } from '@booki-aui/primitives/aged-balances';
|
|
7
|
+
export { AgedParty, AgingTotals, agedBalances } from '@booki-aui/primitives/aged-balances';
|
|
8
|
+
|
|
9
|
+
declare const TAGS: {
|
|
10
|
+
readonly root: "div";
|
|
11
|
+
readonly date: "input";
|
|
12
|
+
readonly party: "button";
|
|
13
|
+
readonly back: "button";
|
|
14
|
+
readonly search: "input";
|
|
15
|
+
readonly bucket: "select";
|
|
16
|
+
readonly sort: "button";
|
|
17
|
+
readonly prev: "button";
|
|
18
|
+
readonly next: "button";
|
|
19
|
+
};
|
|
20
|
+
declare const parts: Parts<typeof agedBalances, typeof TAGS>;
|
|
21
|
+
declare const AgedBalancesRoot: (typeof parts)["Root"];
|
|
22
|
+
declare const AgedBalancesDate: (typeof parts)["Date"];
|
|
23
|
+
declare const AgedBalancesParty: (typeof parts)["Party"];
|
|
24
|
+
declare const AgedBalancesBack: (typeof parts)["Back"];
|
|
25
|
+
declare const AgedBalancesSearch: (typeof parts)["Search"];
|
|
26
|
+
declare const AgedBalancesBucket: (typeof parts)["Bucket"];
|
|
27
|
+
declare const AgedBalancesSort: (typeof parts)["Sort"];
|
|
28
|
+
declare const AgedBalancesPrev: (typeof parts)["Prev"];
|
|
29
|
+
declare const AgedBalancesNext: (typeof parts)["Next"];
|
|
30
|
+
type AgedBalancesProps = {
|
|
31
|
+
items: OpenItem[];
|
|
32
|
+
/** Receivables (the default) or payables. */
|
|
33
|
+
kind?: OpenItemKind;
|
|
34
|
+
asOf?: string;
|
|
35
|
+
/** Defaults to today in UTC when neither `asOf` nor this is given. */
|
|
36
|
+
defaultAsOf?: string;
|
|
37
|
+
onAsOfChange?: (asOf: string) => void;
|
|
38
|
+
partyId?: string | null;
|
|
39
|
+
defaultPartyId?: string | null;
|
|
40
|
+
onPartyIdChange?: (partyId: string | null) => void;
|
|
41
|
+
/** Day limits of the columns. Defaults to `[0, 30, 60, 90]`. */
|
|
42
|
+
limits?: number[];
|
|
43
|
+
/** Most rows an agent's snapshot carries. Defaults to 50. */
|
|
44
|
+
snapshotRows?: number;
|
|
45
|
+
/** Rows a person sees per page. Defaults to 100. */
|
|
46
|
+
pageSize?: number;
|
|
47
|
+
/** The sort, search, filters and page of the list on screen, when the app owns it. */
|
|
48
|
+
query?: TableQuery;
|
|
49
|
+
defaultQuery?: Partial<TableQuery>;
|
|
50
|
+
onQueryChange?: (query: TableQuery) => void;
|
|
51
|
+
className?: string;
|
|
52
|
+
"aria-label"?: string;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Composed aging table: an as-of date, a search and an age filter, one row per
|
|
56
|
+
* party with an amount per age column (headers sort, totals cover every
|
|
57
|
+
* matching party), a party's open items when its name is pressed, pages, and a
|
|
58
|
+
* CSV of every matching row.
|
|
59
|
+
*/
|
|
60
|
+
declare function AgedBalances({ items, kind, asOf, defaultAsOf, onAsOfChange, partyId, defaultPartyId, onPartyIdChange, limits, snapshotRows, pageSize, query, defaultQuery, onQueryChange, className, "aria-label": ariaLabel, }: AgedBalancesProps): react.JSX.Element;
|
|
61
|
+
|
|
62
|
+
export { AgedBalances, AgedBalancesBack, AgedBalancesBucket, AgedBalancesDate, AgedBalancesNext, AgedBalancesParty, AgedBalancesPrev, type AgedBalancesProps, AgedBalancesRoot, AgedBalancesSearch, AgedBalancesSort };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
AgedBalances,
|
|
4
|
+
AgedBalancesBack,
|
|
5
|
+
AgedBalancesBucket,
|
|
6
|
+
AgedBalancesDate,
|
|
7
|
+
AgedBalancesNext,
|
|
8
|
+
AgedBalancesParty,
|
|
9
|
+
AgedBalancesPrev,
|
|
10
|
+
AgedBalancesRoot,
|
|
11
|
+
AgedBalancesSearch,
|
|
12
|
+
AgedBalancesSort,
|
|
13
|
+
agedBalances
|
|
14
|
+
} from "./chunk-7YTOVA5F.js";
|
|
15
|
+
import "./chunk-ZYLWSGWQ.js";
|
|
16
|
+
import "./chunk-GVP2N3K6.js";
|
|
17
|
+
import "./chunk-HKYEHBQT.js";
|
|
18
|
+
export {
|
|
19
|
+
AgedBalances,
|
|
20
|
+
AgedBalancesBack,
|
|
21
|
+
AgedBalancesBucket,
|
|
22
|
+
AgedBalancesDate,
|
|
23
|
+
AgedBalancesNext,
|
|
24
|
+
AgedBalancesParty,
|
|
25
|
+
AgedBalancesPrev,
|
|
26
|
+
AgedBalancesRoot,
|
|
27
|
+
AgedBalancesSearch,
|
|
28
|
+
AgedBalancesSort,
|
|
29
|
+
agedBalances
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=aged-balances.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { AgentCursorState, AgentCursorController } from '@booki-aui/primitives/agent-cursor';
|
|
4
|
+
export { AgentCursorController, AgentCursorOptions, AgentCursorPhase, AgentCursorState, AgentCursorStep, createAgentCursor } from '@booki-aui/primitives/agent-cursor';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The agent cursor's label in Norwegian: a verb for the action and its first
|
|
8
|
+
* plain argument. An amount (`setMinor`) is shown as a person writes it,
|
|
9
|
+
* "setter beløp 1 250,00", not in minor units. `AgentCursor` uses it by itself under a Norwegian profile;
|
|
10
|
+
* pass it as `narrate` to choose it yourself.
|
|
11
|
+
*/
|
|
12
|
+
declare function narrateNorwegian(state: AgentCursorState): string;
|
|
13
|
+
|
|
14
|
+
type AgentCursorProps = {
|
|
15
|
+
cursor: AgentCursorController;
|
|
16
|
+
/** Who is working: shown on the label. */
|
|
17
|
+
label?: ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Show what the agent does next to its name. Default true: in Norwegian under
|
|
20
|
+
* a Norwegian profile (`BookiLocaleProvider`), otherwise plain English from the
|
|
21
|
+
* action's name. Pass a function to narrate in your own words or language:
|
|
22
|
+
* `(state) => "setter beløp"`.
|
|
23
|
+
*/
|
|
24
|
+
narrate?: boolean | ((state: AgentCursorState) => ReactNode);
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* The overlay for `createAgentCursor`: a pointer, a ring on the control and a
|
|
28
|
+
* label saying what the agent does. Render it once, near the root. It is
|
|
29
|
+
* decoration for people watching; `AgentPresence` announces changes to
|
|
30
|
+
* screen readers, so this stays out of the accessibility tree.
|
|
31
|
+
*/
|
|
32
|
+
declare function AgentCursor({ cursor, label, narrate }: AgentCursorProps): react.JSX.Element;
|
|
33
|
+
|
|
34
|
+
export { AgentCursor, type AgentCursorProps, narrateNorwegian };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
AgentCursor,
|
|
4
|
+
createAgentCursor,
|
|
5
|
+
narrateNorwegian
|
|
6
|
+
} from "./chunk-M3MCIKF2.js";
|
|
7
|
+
import "./chunk-GVP2N3K6.js";
|
|
8
|
+
import "./chunk-HKYEHBQT.js";
|
|
9
|
+
export {
|
|
10
|
+
AgentCursor,
|
|
11
|
+
createAgentCursor,
|
|
12
|
+
narrateNorwegian
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=agent-cursor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|