@awes-io/ui 2.55.0 → 2.55.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.55.1](https://github.com/awes-io/client/compare/@awes-io/ui@2.55.0...@awes-io/ui@2.55.1) (2022-07-13)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * app cookies expiration added ([395ace4](https://github.com/awes-io/client/commit/395ace4780ef7a23cc0b6b38df58be188fcbac87))
12
+
13
+
14
+
15
+
16
+
6
17
  # [2.55.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.54.0...@awes-io/ui@2.55.0) (2022-07-11)
7
18
 
8
19
 
@@ -13,7 +13,7 @@ export default function({ store, app }) {
13
13
 
14
14
  if (isNil(isDark)) {
15
15
  isDark = window.matchMedia('(prefers-color-scheme: dark)').matches
16
- JsCookie.set(COOKIE_NAME, isDark, { sameSite: 'lax' })
16
+ JsCookie.set(COOKIE_NAME, isDark, { sameSite: 'lax', expires: 365 })
17
17
  } else {
18
18
  isDark = JSON.parse(isDark)
19
19
  }
@@ -36,7 +36,7 @@ export default function({ store, app }) {
36
36
  store.watch(
37
37
  (state) => state.awesIo.isDarkTheme,
38
38
  (isDark) => {
39
- JsCookie.set(COOKIE_NAME, isDark, { sameSite: 'lax' })
39
+ JsCookie.set(COOKIE_NAME, isDark, { sameSite: 'lax', expires: 365 })
40
40
  document.documentElement.setAttribute(ATTR, isDark)
41
41
  app.head.htmlAttrs[ATTR] = isDark
42
42
  }
@@ -118,9 +118,9 @@ export default async ({ app, $axios }) => {
118
118
  }
119
119
  } else if (_browserLang) {
120
120
  app.i18n.locale = _browserLang
121
- JsCookie.set(langCookie, _browserLang, { sameSite: 'lax' })
121
+ JsCookie.set(langCookie, _browserLang, { sameSite: 'lax', expires: 365 })
122
122
  } else {
123
- JsCookie.set(langCookie, i18nOptions.locale, { sameSite: 'lax' })
123
+ JsCookie.set(langCookie, i18nOptions.locale, { sameSite: 'lax', expires: 365 })
124
124
  }
125
125
  }
126
126
 
@@ -173,7 +173,7 @@ export default async ({ app, $axios }) => {
173
173
  app.i18n.locale = locale
174
174
 
175
175
  if (langCookie) {
176
- JsCookie.set(langCookie, locale, { sameSite: 'lax' })
176
+ JsCookie.set(langCookie, locale, { sameSite: 'lax', expires: 365 })
177
177
  }
178
178
 
179
179
  for (const afterListener of afterListeners.keys()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/ui",
3
- "version": "2.55.0",
3
+ "version": "2.55.1",
4
4
  "description": "User Interface (UI) components",
5
5
  "keywords": [
6
6
  "ui",
@@ -122,5 +122,5 @@
122
122
  "vue-template-compiler": "^2.6.10",
123
123
  "webfonts-generator": "^0.4.0"
124
124
  },
125
- "gitHead": "20130efc0ba9efdce40af425a4ee09bb5f90d84a"
125
+ "gitHead": "b43f233a26bb90c7e3a232aec4602bedde29bf2d"
126
126
  }