@iankibetsh/shframework 0.6.7 → 0.6.8

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.
@@ -31,6 +31,25 @@
31
31
  opacity: 0.5;
32
32
  }
33
33
 
34
+ .sh-forgot-link, .sh-register-link{
35
+ cursor: pointer;
36
+ }
37
+
38
+ .sh-selected-item{
39
+ line-height: unset!important;
40
+ }
41
+ .sh-suggestion-input{
42
+ padding: 0.375rem 0.75rem;
43
+ }
44
+ .sh-suggest{
45
+ margin-bottom: 1rem;
46
+ }
47
+ .sh-suggest-control::after{
48
+ margin-top: auto;
49
+ margin-bottom: auto;
50
+ margin-right: 0.255em;
51
+ }
52
+
34
53
  :root {
35
54
  --ck-z-default: 10555 !important;
36
55
  --ck-z-modal: calc(var(--ck-z-default) + 999) !important;
@@ -51,22 +70,3 @@
51
70
  width: 100% !important;
52
71
  }
53
72
  }
54
-
55
- .sh-forgot-link, .sh-register-link{
56
- cursor: pointer;
57
- }
58
-
59
- .sh-selected-item{
60
- line-height: unset!important;
61
- }
62
- .sh-suggestion-input{
63
- padding: 0.375rem 0.75rem;
64
- }
65
- .sh-suggest{
66
- margin-bottom: 1rem;
67
- }
68
- .sh-suggest-control::after{
69
- margin-top: auto;
70
- margin-bottom: auto;
71
- margin-right: 0.255em;
72
- }
package/dist/library.js CHANGED
@@ -3942,6 +3942,10 @@ const useUserStore = pinia.defineStore('user-store', {
3942
3942
  this.user = user;
3943
3943
  }).catch((reason) => {
3944
3944
  if (reason.response && reason.response.status) {
3945
+ if(reason.response.status === 401) {
3946
+ ShStorage.setItem('user',null);
3947
+ this.user = null;
3948
+ }
3945
3949
  this.loggedOut = true;
3946
3950
  }
3947
3951
  });
package/dist/library.mjs CHANGED
@@ -3930,6 +3930,10 @@ const useUserStore = defineStore('user-store', {
3930
3930
  this.user = user;
3931
3931
  }).catch((reason) => {
3932
3932
  if (reason.response && reason.response.status) {
3933
+ if(reason.response.status === 401) {
3934
+ ShStorage.setItem('user',null);
3935
+ this.user = null;
3936
+ }
3933
3937
  this.loggedOut = true;
3934
3938
  }
3935
3939
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",