kaafil-react-uikit 0.10.0 → 0.10.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 (47) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/admin/index.cjs +360 -360
  3. package/dist/admin/index.js +5 -5
  4. package/dist/{chunk-APE4R2GB.cjs → chunk-2OWH2KDY.cjs} +83 -83
  5. package/dist/{chunk-APE4R2GB.cjs.map → chunk-2OWH2KDY.cjs.map} +1 -1
  6. package/dist/{chunk-E6SI2S3L.cjs → chunk-3AF2M2JD.cjs} +17 -17
  7. package/dist/{chunk-E6SI2S3L.cjs.map → chunk-3AF2M2JD.cjs.map} +1 -1
  8. package/dist/{chunk-AJEZMD64.cjs → chunk-64R4ZJTA.cjs} +12 -12
  9. package/dist/{chunk-AJEZMD64.cjs.map → chunk-64R4ZJTA.cjs.map} +1 -1
  10. package/dist/{chunk-ZVADVALQ.js → chunk-7752B4NM.js} +3 -3
  11. package/dist/{chunk-ZVADVALQ.js.map → chunk-7752B4NM.js.map} +1 -1
  12. package/dist/{chunk-WMBFBZ7Q.js → chunk-7V2XJIXD.js} +7 -4
  13. package/dist/chunk-7V2XJIXD.js.map +1 -0
  14. package/dist/{chunk-OXCVTVBY.js → chunk-AFWZFFEM.js} +7 -6
  15. package/dist/chunk-AFWZFFEM.js.map +1 -0
  16. package/dist/{chunk-LYCN2BOH.cjs → chunk-AJE2RNOR.cjs} +4 -4
  17. package/dist/{chunk-LYCN2BOH.cjs.map → chunk-AJE2RNOR.cjs.map} +1 -1
  18. package/dist/{chunk-X5EFVCYF.cjs → chunk-F4GGHUMX.cjs} +57 -56
  19. package/dist/chunk-F4GGHUMX.cjs.map +1 -0
  20. package/dist/{chunk-UMLJEBQV.js → chunk-K5Z6N2FY.js} +5 -5
  21. package/dist/{chunk-UMLJEBQV.js.map → chunk-K5Z6N2FY.js.map} +1 -1
  22. package/dist/{chunk-VAUGZOY6.js → chunk-KV7ODN2X.js} +3 -3
  23. package/dist/{chunk-VAUGZOY6.js.map → chunk-KV7ODN2X.js.map} +1 -1
  24. package/dist/{chunk-BKDKXM3L.cjs → chunk-NCHZLGEE.cjs} +9 -9
  25. package/dist/{chunk-BKDKXM3L.cjs.map → chunk-NCHZLGEE.cjs.map} +1 -1
  26. package/dist/{chunk-P5HF55MO.cjs → chunk-S53XNHRU.cjs} +7 -4
  27. package/dist/chunk-S53XNHRU.cjs.map +1 -0
  28. package/dist/{chunk-U2443I5Q.js → chunk-TGP4GTIY.js} +3 -3
  29. package/dist/{chunk-U2443I5Q.js.map → chunk-TGP4GTIY.js.map} +1 -1
  30. package/dist/{chunk-2HGOHUFU.js → chunk-UUID3H4R.js} +3 -3
  31. package/dist/{chunk-2HGOHUFU.js.map → chunk-UUID3H4R.js.map} +1 -1
  32. package/dist/{chunk-IDKRXLMY.js → chunk-VCROLPO3.js} +3 -3
  33. package/dist/{chunk-IDKRXLMY.js.map → chunk-VCROLPO3.js.map} +1 -1
  34. package/dist/chunk-ZZK7USFC.cjs +12 -0
  35. package/dist/{chunk-PHVQIIOI.cjs.map → chunk-ZZK7USFC.cjs.map} +1 -1
  36. package/dist/core/index.cjs +107 -107
  37. package/dist/core/index.js +10 -10
  38. package/dist/manager/index.cjs +256 -256
  39. package/dist/manager/index.js +6 -6
  40. package/dist/traveller/index.cjs +35 -35
  41. package/dist/traveller/index.js +5 -5
  42. package/package.json +1 -1
  43. package/dist/chunk-OXCVTVBY.js.map +0 -1
  44. package/dist/chunk-P5HF55MO.cjs.map +0 -1
  45. package/dist/chunk-PHVQIIOI.cjs +0 -12
  46. package/dist/chunk-WMBFBZ7Q.js.map +0 -1
  47. package/dist/chunk-X5EFVCYF.cjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -6,6 +6,41 @@ 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.10.1] — 2026-09-15
10
+
11
+ Two long-standing bugs that only bite together, found when the traveller
12
+ surface of that same partner CRM went blank on a **production** build.
13
+
14
+ ### Fixed
15
+
16
+ - **`isDevelopment()` answered `true` in every production browser build.**
17
+ It read `(globalThis as {...}).process?.env?.NODE_ENV`, on the reasoning
18
+ that a bundler "sees this exact property-access shape and inlines it the
19
+ same way it would a bare reference". It does not — Vite, webpack, Turbopack
20
+ and esbuild all match the literal member expression `process.env.NODE_ENV`,
21
+ and route it through `globalThis` or an optional chain and nothing is
22
+ replaced. A browser has no `process`, so the expression was `undefined`,
23
+ `undefined !== 'production'` is `true`, and **every dev-only throw in this
24
+ package shipped to real users**. It now reads a bare `process.env.NODE_ENV`
25
+ (declared locally, so still no `@types/node`) and fails CLOSED: a value it
26
+ cannot read means production, because a false positive here does not
27
+ produce a stray console line — it turns a guard meant to degrade quietly
28
+ into a crash.
29
+
30
+ - **The session's open window no longer claims to be a manager.**
31
+ `SessionShell` populated `SessionContext` with `persona: 'manager'`
32
+ unconditionally while opening. On a share surface that is simply false: a
33
+ bare `shareToken` prop settles the persona synchronously, which is the whole
34
+ premise of the credential-shape model. It now derives `'share'` from the
35
+ prop and keeps the guess only for `credentialResolver`, which genuinely
36
+ cannot be known before it resolves.
37
+
38
+ Together these took out the entire traveller surface in production:
39
+ `BrandShell` rejects `headStrategy: 'own-page'` for any non-`share` persona,
40
+ that guard is written to warn and fall back outside development, and instead
41
+ it threw — so `/t/<token>`, the page a traveller opens from a WhatsApp
42
+ message, rendered nothing but an error boundary.
43
+
9
44
  ## [0.10.0] — 2026-09-15
10
45
 
11
46
  Both changes came out of integrating a real partner CRM against the live