@rio-cloud/rio-uikit 0.16.2-beta.7 → 0.16.2-beta.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.
@@ -60,7 +60,8 @@ var readColorSchemeFromCookie = function readColorSchemeFromCookie() {
60
60
  // This should be done by a RIO service like User Profile SPA using a theme switcher component from the uikit
61
61
  // where this function is referenced
62
62
  var writeColorSchemeToCookie = function writeColorSchemeToCookie(scheme) {
63
- var isDevEnv = import.meta.env.DEV;
63
+ var _window;
64
+ var isDevEnv = (_window = window) === null || _window === void 0 ? void 0 : _window.location.host.startsWith('localhost');
64
65
  var newCookieValues = encodeURIComponent(scheme);
65
66
  var cookie = "".concat(COOKIE_NAME, "=").concat(newCookieValues, ";domain=").concat(isDevEnv ? 'localhost' : DOMAIN, ";expires=").concat(EXPIRATION_DATE, ";path=").concat(PATH);
66
67
  console.log("writeColorSchemeToCookie: ".concat(cookie));
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.16.2-beta.7"
2
+ "version": "0.16.2-beta.8"
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rio-cloud/rio-uikit",
3
- "version": "0.16.2-beta.7",
3
+ "version": "0.16.2-beta.8",
4
4
  "description": "The RIO UIKIT component library",
5
5
  "repository": "https://collaboration.msi.audi.com/stash/projects/RIOFRONT/repos/uikit-web/browse",
6
6
  "scripts": {
@@ -46,7 +46,8 @@ var readColorSchemeFromCookie = function readColorSchemeFromCookie() {
46
46
  // This should be done by a RIO service like User Profile SPA using a theme switcher component from the uikit
47
47
  // where this function is referenced
48
48
  var writeColorSchemeToCookie = function writeColorSchemeToCookie(scheme) {
49
- var isDevEnv = import.meta.env.DEV;
49
+ var _window;
50
+ var isDevEnv = (_window = window) === null || _window === void 0 ? void 0 : _window.location.host.startsWith('localhost');
50
51
  var newCookieValues = encodeURIComponent(scheme);
51
52
  var cookie = "".concat(COOKIE_NAME, "=").concat(newCookieValues, ";domain=").concat(isDevEnv ? 'localhost' : DOMAIN, ";expires=").concat(EXPIRATION_DATE, ";path=").concat(PATH);
52
53
  console.log("writeColorSchemeToCookie: ".concat(cookie));
package/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.16.2-beta.7"
2
+ "version": "0.16.2-beta.8"
3
3
  }