r3ui-lib 1.2.29 → 1.2.31

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 (28) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/login.es.js +1246 -1112
  3. package/dist/login.umd.js +6 -6
  4. package/dist/r3ui-lib.es.js +3826 -3589
  5. package/dist/r3ui-lib.umd.js +28 -28
  6. package/dist/types/components/SsoLoginScreen.vue.d.ts +11 -0
  7. package/dist/types/components/SsoLoginScreen.vue.d.ts.map +1 -0
  8. package/dist/types/components/form/CustomInput.vue.d.ts +2 -2
  9. package/dist/types/components/form/VSelect.vue.d.ts +2 -2
  10. package/dist/types/components/forms/Flatpickr.vue.d.ts +1 -1
  11. package/dist/types/components/forms/Flatpickr.vue.d.ts.map +1 -1
  12. package/dist/types/components/forms/MultiInput.vue.d.ts +1 -1
  13. package/dist/types/components/forms/MultiInput.vue.d.ts.map +1 -1
  14. package/dist/types/components/layout/LoginLayoutFrame.vue.d.ts +23 -0
  15. package/dist/types/components/layout/LoginLayoutFrame.vue.d.ts.map +1 -0
  16. package/dist/types/login-entry.d.ts +2 -0
  17. package/dist/types/login-entry.d.ts.map +1 -1
  18. package/dist/types/main.d.ts +3 -0
  19. package/dist/types/main.d.ts.map +1 -1
  20. package/dist/types/utils/auth/exchangePasswordToken.d.ts +15 -0
  21. package/dist/types/utils/auth/exchangePasswordToken.d.ts.map +1 -0
  22. package/dist/types/utils/auth/handlePkceCallback.d.ts +28 -0
  23. package/dist/types/utils/auth/handlePkceCallback.d.ts.map +1 -0
  24. package/dist/types/utils/auth/runLogoutHandler.d.ts +19 -0
  25. package/dist/types/utils/auth/runLogoutHandler.d.ts.map +1 -0
  26. package/dist/types/utils/auth/signInWithSSO.d.ts +2 -0
  27. package/dist/types/utils/auth/signInWithSSO.d.ts.map +1 -1
  28. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,26 @@
5
5
  Формат основан на [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  и этот проект придерживается [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.2.31] - 2026-08-31
9
+
10
+ ### Fixed
11
+
12
+ - `signInWithSSO` — lock в `sessionStorage` (HMR не сбрасывает), не перезаписывает существующий `pkce_state`, origin вкладки должен совпадать с `NUXT_PUBLIC_ORIGIN`
13
+ - `signInWithSSO` — после успешного callback lock без `pkce_state` cookie сбрасывается; повторный логин стартует новый PKCE (иначе 400 OAuth state is invalid)
14
+
15
+ ## [1.2.30] - 2026-08-28
16
+
17
+ ### Added
18
+
19
+ - `handlePkceCallback` и `exchangePasswordToken` — один PKCE/password token use-case для Nitro
20
+ - `SsoLoginScreen` и `LoginLayoutFrame` в `r3ui-lib/login` — один UI входа вместо копий в приложениях
21
+ - `runLogoutHandler` — один Nitro logout: throw 500, cookies чистятся в `finally`
22
+
23
+ ### Fixed
24
+
25
+ - PKCE callback: битый config и не-объект query → 500; ошибка обмена токена сохраняется в `cause`
26
+ - `exchangePasswordToken`: невалидный body → 400, пустой client/token URL → 500, без `return error`
27
+
8
28
  ## [1.2.29] - 2026-08-28
9
29
 
10
30
  ### Fixed