@sonic-equipment/ui 250.0.0 → 251.0.0

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.
@@ -1,7 +1,6 @@
1
1
  "use client";
2
2
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
3
3
  import { useMemo, useEffect } from 'react';
4
- import Cookies from 'js-cookie';
5
4
  import { logger } from '../logging/logger.js';
6
5
  import { useCookiebot } from '../shared/hooks/use-cookiebot.js';
7
6
  import { useDisclosure } from '../shared/hooks/use-disclosure.js';
@@ -44,10 +43,6 @@ function ConnectedCountrySelector({ defaultCountryCode, defaultLanguageCode, onC
44
43
  return;
45
44
  setIsOpen(open);
46
45
  }, onSubmit: async ({ country, language }) => {
47
- // set selected country and language IDs client side as a fallback; server response may overwrite values
48
- const expires = 365; // 1 year
49
- Cookies.set('CurrentCountryId', country.id, { expires });
50
- Cookies.set('CurrentLanguageId', language.id, { expires });
51
46
  if (selectedCountry?.id === country.id &&
52
47
  selectedLanguage?.id === language.id)
53
48
  return close();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonic-equipment/ui",
3
- "version": "250.0.0",
3
+ "version": "251.0.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "engines": {