synapse-react-client 3.2.27 → 3.2.28

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/dist/index.js CHANGED
@@ -26773,9 +26773,11 @@ var useCookiePreferences = () => {
26773
26773
  const current = /* @__PURE__ */ new Date();
26774
26774
  const nextYear = /* @__PURE__ */ new Date();
26775
26775
  nextYear.setFullYear(current.getFullYear() + 1);
26776
+ const hostname = window.location.hostname.toLowerCase();
26776
26777
  cookies.set(COOKIES_AGREEMENT_COOKIE_KEY, prefs, {
26777
26778
  path: "/",
26778
- expires: nextYear
26779
+ expires: nextYear,
26780
+ domain: hostname.endsWith(".synapse.org") ? "synapse.org" : void 0
26779
26781
  });
26780
26782
  setCookiePreferencesAtomValue(prefs);
26781
26783
  },
package/dist/index.mjs CHANGED
@@ -26590,9 +26590,11 @@ var useCookiePreferences = () => {
26590
26590
  const current = /* @__PURE__ */ new Date();
26591
26591
  const nextYear = /* @__PURE__ */ new Date();
26592
26592
  nextYear.setFullYear(current.getFullYear() + 1);
26593
+ const hostname = window.location.hostname.toLowerCase();
26593
26594
  cookies.set(COOKIES_AGREEMENT_COOKIE_KEY, prefs, {
26594
26595
  path: "/",
26595
- expires: nextYear
26596
+ expires: nextYear,
26597
+ domain: hostname.endsWith(".synapse.org") ? "synapse.org" : void 0
26596
26598
  });
26597
26599
  setCookiePreferencesAtomValue(prefs);
26598
26600
  },
@@ -41128,7 +41128,7 @@ Please use another name.` : (0, _formatMuiErrorMessage2.default)(18));
41128
41128
  "package.json"(exports2, module2) {
41129
41129
  module2.exports = {
41130
41130
  name: "synapse-react-client",
41131
- version: "3.2.27",
41131
+ version: "3.2.28",
41132
41132
  private: false,
41133
41133
  main: "./dist/index.js",
41134
41134
  module: "./dist/index.mjs",
@@ -91002,9 +91002,11 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
91002
91002
  const current = /* @__PURE__ */ new Date();
91003
91003
  const nextYear = /* @__PURE__ */ new Date();
91004
91004
  nextYear.setFullYear(current.getFullYear() + 1);
91005
+ const hostname = window.location.hostname.toLowerCase();
91005
91006
  cookies.set(COOKIES_AGREEMENT_COOKIE_KEY, prefs, {
91006
91007
  path: "/",
91007
- expires: nextYear
91008
+ expires: nextYear,
91009
+ domain: hostname.endsWith(".synapse.org") ? "synapse.org" : void 0
91008
91010
  });
91009
91011
  setCookiePreferencesAtomValue(prefs);
91010
91012
  },