kaafil-react-uikit 0.10.2 → 0.11.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 +54 -0
- package/dist/admin/index.cjs +471 -363
- package/dist/admin/index.cjs.map +1 -1
- package/dist/admin/index.d.cts +4 -4
- package/dist/admin/index.d.ts +4 -4
- package/dist/admin/index.js +116 -8
- package/dist/admin/index.js.map +1 -1
- package/dist/{chunk-2OWH2KDY.cjs → chunk-2JNB5A6Z.cjs} +90 -84
- package/dist/chunk-2JNB5A6Z.cjs.map +1 -0
- package/dist/{chunk-S53XNHRU.cjs → chunk-4TTDAOOG.cjs} +18 -4
- package/dist/chunk-4TTDAOOG.cjs.map +1 -0
- package/dist/{chunk-AFWZFFEM.js → chunk-4WXIR6FD.js} +5 -5
- package/dist/{chunk-AFWZFFEM.js.map → chunk-4WXIR6FD.js.map} +1 -1
- package/dist/{chunk-NCHZLGEE.cjs → chunk-6MD4QTZZ.cjs} +9 -9
- package/dist/{chunk-NCHZLGEE.cjs.map → chunk-6MD4QTZZ.cjs.map} +1 -1
- package/dist/{chunk-7V2XJIXD.js → chunk-7CLYTDSC.js} +18 -4
- package/dist/chunk-7CLYTDSC.js.map +1 -0
- package/dist/{chunk-AJE2RNOR.cjs → chunk-DRUTYOTN.cjs} +4 -4
- package/dist/{chunk-AJE2RNOR.cjs.map → chunk-DRUTYOTN.cjs.map} +1 -1
- package/dist/{chunk-K5Z6N2FY.js → chunk-DTVRWYVN.js} +5 -5
- package/dist/{chunk-K5Z6N2FY.js.map → chunk-DTVRWYVN.js.map} +1 -1
- package/dist/{chunk-VCROLPO3.js → chunk-EGEVXI5K.js} +3 -3
- package/dist/{chunk-VCROLPO3.js.map → chunk-EGEVXI5K.js.map} +1 -1
- package/dist/{chunk-7752B4NM.js → chunk-F6SN6CEC.js} +3 -3
- package/dist/{chunk-7752B4NM.js.map → chunk-F6SN6CEC.js.map} +1 -1
- package/dist/{chunk-KV7ODN2X.js → chunk-HC4PLK4E.js} +3 -3
- package/dist/{chunk-KV7ODN2X.js.map → chunk-HC4PLK4E.js.map} +1 -1
- package/dist/{chunk-F4GGHUMX.cjs → chunk-KY752BBA.cjs} +55 -55
- package/dist/{chunk-F4GGHUMX.cjs.map → chunk-KY752BBA.cjs.map} +1 -1
- package/dist/chunk-PMXQQFQN.cjs +12 -0
- package/dist/{chunk-ZZK7USFC.cjs.map → chunk-PMXQQFQN.cjs.map} +1 -1
- package/dist/{chunk-TGP4GTIY.js → chunk-RK3CWJ56.js} +10 -4
- package/dist/chunk-RK3CWJ56.js.map +1 -0
- package/dist/{chunk-64R4ZJTA.cjs → chunk-UG4Z23IJ.cjs} +12 -12
- package/dist/{chunk-64R4ZJTA.cjs.map → chunk-UG4Z23IJ.cjs.map} +1 -1
- package/dist/{chunk-UUID3H4R.js → chunk-VWFNUQDH.js} +3 -3
- package/dist/{chunk-UUID3H4R.js.map → chunk-VWFNUQDH.js.map} +1 -1
- package/dist/{chunk-3AF2M2JD.cjs → chunk-W63ZEIC2.cjs} +17 -17
- package/dist/{chunk-3AF2M2JD.cjs.map → chunk-W63ZEIC2.cjs.map} +1 -1
- package/dist/core/index.cjs +107 -107
- package/dist/core/index.d.cts +5 -5
- package/dist/core/index.d.ts +5 -5
- package/dist/core/index.js +10 -10
- package/dist/index.css +1 -1
- package/dist/manager/index.cjs +256 -256
- package/dist/manager/index.d.cts +4 -4
- package/dist/manager/index.d.ts +4 -4
- package/dist/manager/index.js +6 -6
- package/dist/tokens.json +4 -1
- package/dist/traveller/index.cjs +35 -35
- package/dist/traveller/index.js +5 -5
- package/dist/{useAgencyTrip-gZB0NILH.d.ts → useAgencyTrip-BgQ4gkyy.d.ts} +1 -1
- package/dist/{useAgencyTrip-C1YmfuQq.d.cts → useAgencyTrip-CtUMpC-J.d.cts} +1 -1
- package/dist/{useNotifications-D262i5BQ.d.ts → useNotifications-B9t5jUQc.d.ts} +1 -1
- package/dist/{useNotifications-BZW1Z_ur.d.cts → useNotifications-xn08Oypa.d.cts} +1 -1
- package/dist/{useVendors-DXOuZWhZ.d.cts → useVendors-B827YIDs.d.cts} +20 -0
- package/dist/{useVendors-DXOuZWhZ.d.ts → useVendors-B827YIDs.d.ts} +20 -0
- package/package.json +2 -2
- package/dist/chunk-2OWH2KDY.cjs.map +0 -1
- package/dist/chunk-7V2XJIXD.js.map +0 -1
- package/dist/chunk-S53XNHRU.cjs.map +0 -1
- package/dist/chunk-TGP4GTIY.js.map +0 -1
- package/dist/chunk-ZZK7USFC.cjs +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,60 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
6
6
|
and this package uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
While on `0.x` a minor bump may carry a breaking change; the entry will say so.
|
|
8
8
|
|
|
9
|
+
## [0.11.0] — 2026-09-15
|
|
10
|
+
|
|
11
|
+
The peer range moves to `kaafil-js@^0.6.0`, which is where `files.remove()`
|
|
12
|
+
lands — on 0.5.x the new control would be a `TypeError`, not a `404`. The
|
|
13
|
+
engine must also be running a build with `deleteFile`; against an older one the
|
|
14
|
+
call answers `404`.
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- **A filed trip document can be withdrawn.** There was no delete at any layer
|
|
19
|
+
— engine, SDK or kit — so a permit uploaded by mistake stayed visible to
|
|
20
|
+
every traveller on the trip until retention removed it, and `purgeAt` is
|
|
21
|
+
`null` unless the agency configured a TTL. In the default case that meant
|
|
22
|
+
forever.
|
|
23
|
+
|
|
24
|
+
`useFiles()` gains `remove(fileId, version)`. `TripDocumentsSection` offers
|
|
25
|
+
a **Withdraw** control, and offers it ONLY where the engine will allow it:
|
|
26
|
+
`trip_document` that is not already purged. The other three purposes are
|
|
27
|
+
evidence owned by a parent record that decides its own life — a receipt by
|
|
28
|
+
its expense, an attachment by its form field, a voucher by its booking — so
|
|
29
|
+
those rows show nothing rather than a button that would answer `422`.
|
|
30
|
+
|
|
31
|
+
It confirms first, and the dialog names the two consequences a reader cannot
|
|
32
|
+
infer from the word "withdraw": the file leaves storage rather than being
|
|
33
|
+
hidden, and anyone already holding a link loses access immediately, because
|
|
34
|
+
the object a signed URL points at is gone. The action is irreversible and
|
|
35
|
+
that is the only honest place to say so.
|
|
36
|
+
|
|
37
|
+
The control is danger-coloured on hover only. A document list with a
|
|
38
|
+
permanently red control on every line is a list nobody reads; the colour
|
|
39
|
+
arrives when the pointer does.
|
|
40
|
+
|
|
41
|
+
### Fixed
|
|
42
|
+
|
|
43
|
+
- `.kf-trip-documents-section__link-button` now carries `:hover:not(:disabled)`
|
|
44
|
+
and an explicit `:disabled`, the same guard 0.10.3 put on the dialog's
|
|
45
|
+
primary button and for the same reason.
|
|
46
|
+
|
|
47
|
+
## [0.10.3] — 2026-09-15
|
|
48
|
+
|
|
49
|
+
### Fixed
|
|
50
|
+
|
|
51
|
+
- **A disabled "File it" lit up on hover and looked clickable.** In
|
|
52
|
+
`trip-documents-section.css` the `:disabled` rule and the `:hover` rule had
|
|
53
|
+
the same specificity, and `:hover` was declared ~90 lines later — so it won.
|
|
54
|
+
Hovering the disabled primary button in the file-a-document dialog repainted
|
|
55
|
+
it `--kf-accent-hover`, which on a light host is a full accent fill: the
|
|
56
|
+
affordance said press me while the button did nothing. Most visible on a trip
|
|
57
|
+
with no bookings, where "Booking voucher" correctly disables the action and
|
|
58
|
+
there is nothing at all to file.
|
|
59
|
+
|
|
60
|
+
The hover rule is now `:hover:not(:disabled)`. A sweep of every stylesheet in
|
|
61
|
+
the package found this as the only instance of the pattern.
|
|
62
|
+
|
|
9
63
|
## [0.10.2] — 2026-09-15
|
|
10
64
|
|
|
11
65
|
### Fixed
|