kaafil-react-uikit 0.10.3 → 0.11.1

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.
Files changed (63) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/dist/admin/index.cjs +471 -363
  3. package/dist/admin/index.cjs.map +1 -1
  4. package/dist/admin/index.d.cts +4 -4
  5. package/dist/admin/index.d.ts +4 -4
  6. package/dist/admin/index.js +116 -8
  7. package/dist/admin/index.js.map +1 -1
  8. package/dist/{chunk-2OWH2KDY.cjs → chunk-2JNB5A6Z.cjs} +90 -84
  9. package/dist/chunk-2JNB5A6Z.cjs.map +1 -0
  10. package/dist/{chunk-S53XNHRU.cjs → chunk-4TTDAOOG.cjs} +18 -4
  11. package/dist/chunk-4TTDAOOG.cjs.map +1 -0
  12. package/dist/{chunk-AFWZFFEM.js → chunk-4WXIR6FD.js} +5 -5
  13. package/dist/{chunk-AFWZFFEM.js.map → chunk-4WXIR6FD.js.map} +1 -1
  14. package/dist/{chunk-NCHZLGEE.cjs → chunk-6MD4QTZZ.cjs} +9 -9
  15. package/dist/{chunk-NCHZLGEE.cjs.map → chunk-6MD4QTZZ.cjs.map} +1 -1
  16. package/dist/{chunk-7V2XJIXD.js → chunk-7CLYTDSC.js} +18 -4
  17. package/dist/chunk-7CLYTDSC.js.map +1 -0
  18. package/dist/{chunk-AJE2RNOR.cjs → chunk-DRUTYOTN.cjs} +4 -4
  19. package/dist/{chunk-AJE2RNOR.cjs.map → chunk-DRUTYOTN.cjs.map} +1 -1
  20. package/dist/{chunk-K5Z6N2FY.js → chunk-DTVRWYVN.js} +5 -5
  21. package/dist/{chunk-K5Z6N2FY.js.map → chunk-DTVRWYVN.js.map} +1 -1
  22. package/dist/{chunk-VCROLPO3.js → chunk-EGEVXI5K.js} +3 -3
  23. package/dist/{chunk-VCROLPO3.js.map → chunk-EGEVXI5K.js.map} +1 -1
  24. package/dist/{chunk-7752B4NM.js → chunk-F6SN6CEC.js} +3 -3
  25. package/dist/{chunk-7752B4NM.js.map → chunk-F6SN6CEC.js.map} +1 -1
  26. package/dist/{chunk-KV7ODN2X.js → chunk-HC4PLK4E.js} +3 -3
  27. package/dist/{chunk-KV7ODN2X.js.map → chunk-HC4PLK4E.js.map} +1 -1
  28. package/dist/{chunk-F4GGHUMX.cjs → chunk-KY752BBA.cjs} +55 -55
  29. package/dist/{chunk-F4GGHUMX.cjs.map → chunk-KY752BBA.cjs.map} +1 -1
  30. package/dist/chunk-PMXQQFQN.cjs +12 -0
  31. package/dist/{chunk-ZZK7USFC.cjs.map → chunk-PMXQQFQN.cjs.map} +1 -1
  32. package/dist/{chunk-TGP4GTIY.js → chunk-RK3CWJ56.js} +10 -4
  33. package/dist/chunk-RK3CWJ56.js.map +1 -0
  34. package/dist/{chunk-64R4ZJTA.cjs → chunk-UG4Z23IJ.cjs} +12 -12
  35. package/dist/{chunk-64R4ZJTA.cjs.map → chunk-UG4Z23IJ.cjs.map} +1 -1
  36. package/dist/{chunk-UUID3H4R.js → chunk-VWFNUQDH.js} +3 -3
  37. package/dist/{chunk-UUID3H4R.js.map → chunk-VWFNUQDH.js.map} +1 -1
  38. package/dist/{chunk-3AF2M2JD.cjs → chunk-W63ZEIC2.cjs} +17 -17
  39. package/dist/{chunk-3AF2M2JD.cjs.map → chunk-W63ZEIC2.cjs.map} +1 -1
  40. package/dist/core/index.cjs +107 -107
  41. package/dist/core/index.d.cts +5 -5
  42. package/dist/core/index.d.ts +5 -5
  43. package/dist/core/index.js +10 -10
  44. package/dist/index.css +1 -1
  45. package/dist/manager/index.cjs +256 -256
  46. package/dist/manager/index.d.cts +4 -4
  47. package/dist/manager/index.d.ts +4 -4
  48. package/dist/manager/index.js +6 -6
  49. package/dist/tokens.json +4 -1
  50. package/dist/traveller/index.cjs +35 -35
  51. package/dist/traveller/index.js +5 -5
  52. package/dist/{useAgencyTrip-gZB0NILH.d.ts → useAgencyTrip-BgQ4gkyy.d.ts} +1 -1
  53. package/dist/{useAgencyTrip-C1YmfuQq.d.cts → useAgencyTrip-CtUMpC-J.d.cts} +1 -1
  54. package/dist/{useNotifications-D262i5BQ.d.ts → useNotifications-B9t5jUQc.d.ts} +1 -1
  55. package/dist/{useNotifications-BZW1Z_ur.d.cts → useNotifications-xn08Oypa.d.cts} +1 -1
  56. package/dist/{useVendors-DXOuZWhZ.d.cts → useVendors-B827YIDs.d.cts} +20 -0
  57. package/dist/{useVendors-DXOuZWhZ.d.ts → useVendors-B827YIDs.d.ts} +20 -0
  58. package/package.json +2 -2
  59. package/dist/chunk-2OWH2KDY.cjs.map +0 -1
  60. package/dist/chunk-7V2XJIXD.js.map +0 -1
  61. package/dist/chunk-S53XNHRU.cjs.map +0 -1
  62. package/dist/chunk-TGP4GTIY.js.map +0 -1
  63. package/dist/chunk-ZZK7USFC.cjs +0 -12
package/CHANGELOG.md CHANGED
@@ -6,6 +6,54 @@ 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.1] — 2026-09-15
10
+
11
+ ### Changed
12
+
13
+ - Peer floor moves to `kaafil-js@^0.6.2`. 0.6.0 and 0.6.1 both mishandled a
14
+ `204 No Content` — 0.6.0 threw on the missing envelope, 0.6.1 threw inside
15
+ `attachMeta` and the failure was classified as a transport error and
16
+ RETRIED, so a successful withdraw ran twice and surfaced the second
17
+ attempt's `404`. Withdraw is unusable below 0.6.2.
18
+
19
+ ## [0.11.0] — 2026-09-15
20
+
21
+ The peer range moves to `kaafil-js@^0.6.0`, which is where `files.remove()`
22
+ lands — on 0.5.x the new control would be a `TypeError`, not a `404`. The
23
+ engine must also be running a build with `deleteFile`; against an older one the
24
+ call answers `404`.
25
+
26
+ ### Added
27
+
28
+ - **A filed trip document can be withdrawn.** There was no delete at any layer
29
+ — engine, SDK or kit — so a permit uploaded by mistake stayed visible to
30
+ every traveller on the trip until retention removed it, and `purgeAt` is
31
+ `null` unless the agency configured a TTL. In the default case that meant
32
+ forever.
33
+
34
+ `useFiles()` gains `remove(fileId, version)`. `TripDocumentsSection` offers
35
+ a **Withdraw** control, and offers it ONLY where the engine will allow it:
36
+ `trip_document` that is not already purged. The other three purposes are
37
+ evidence owned by a parent record that decides its own life — a receipt by
38
+ its expense, an attachment by its form field, a voucher by its booking — so
39
+ those rows show nothing rather than a button that would answer `422`.
40
+
41
+ It confirms first, and the dialog names the two consequences a reader cannot
42
+ infer from the word "withdraw": the file leaves storage rather than being
43
+ hidden, and anyone already holding a link loses access immediately, because
44
+ the object a signed URL points at is gone. The action is irreversible and
45
+ that is the only honest place to say so.
46
+
47
+ The control is danger-coloured on hover only. A document list with a
48
+ permanently red control on every line is a list nobody reads; the colour
49
+ arrives when the pointer does.
50
+
51
+ ### Fixed
52
+
53
+ - `.kf-trip-documents-section__link-button` now carries `:hover:not(:disabled)`
54
+ and an explicit `:disabled`, the same guard 0.10.3 put on the dialog's
55
+ primary button and for the same reason.
56
+
9
57
  ## [0.10.3] — 2026-09-15
10
58
 
11
59
  ### Fixed