@propknot/shared-ui 1.0.6 → 1.0.7

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
@@ -1577,7 +1577,7 @@ var CustomThemeProvider = ({ children }) => {
1577
1577
  const newTheme = currentTheme === "light" ? "dark" : "light";
1578
1578
  setCurrentTheme(newTheme);
1579
1579
  try {
1580
- await api_default.put("/auth/theme-preference", { themePreference: newTheme });
1580
+ await api_default.put("/users/me", { themePreference: newTheme });
1581
1581
  } catch (error) {
1582
1582
  console.error("Failed to save theme preference:", error);
1583
1583
  setCurrentTheme(currentTheme);
@@ -1587,7 +1587,7 @@ var CustomThemeProvider = ({ children }) => {
1587
1587
  if (!canModifyTheme || !["light", "dark"].includes(themeKey)) return;
1588
1588
  setCurrentTheme(themeKey);
1589
1589
  try {
1590
- await api_default.put("/auth/theme-preference", { themePreference: themeKey });
1590
+ await api_default.put("/users/me", { themePreference: themeKey });
1591
1591
  } catch (error) {
1592
1592
  console.error("Failed to save theme preference:", error);
1593
1593
  setCurrentTheme(currentTheme);
@@ -1597,7 +1597,7 @@ var CustomThemeProvider = ({ children }) => {
1597
1597
  if (!canModifyTheme) return;
1598
1598
  setCurrentTheme("light");
1599
1599
  try {
1600
- await api_default.put("/auth/theme-preference", { themePreference: "light" });
1600
+ await api_default.put("/users/me", { themePreference: "light" });
1601
1601
  } catch (error) {
1602
1602
  console.error("Failed to save theme preference:", error);
1603
1603
  setCurrentTheme(currentTheme);
package/dist/index.mjs CHANGED
@@ -1513,7 +1513,7 @@ var CustomThemeProvider = ({ children }) => {
1513
1513
  const newTheme = currentTheme === "light" ? "dark" : "light";
1514
1514
  setCurrentTheme(newTheme);
1515
1515
  try {
1516
- await api_default.put("/auth/theme-preference", { themePreference: newTheme });
1516
+ await api_default.put("/users/me", { themePreference: newTheme });
1517
1517
  } catch (error) {
1518
1518
  console.error("Failed to save theme preference:", error);
1519
1519
  setCurrentTheme(currentTheme);
@@ -1523,7 +1523,7 @@ var CustomThemeProvider = ({ children }) => {
1523
1523
  if (!canModifyTheme || !["light", "dark"].includes(themeKey)) return;
1524
1524
  setCurrentTheme(themeKey);
1525
1525
  try {
1526
- await api_default.put("/auth/theme-preference", { themePreference: themeKey });
1526
+ await api_default.put("/users/me", { themePreference: themeKey });
1527
1527
  } catch (error) {
1528
1528
  console.error("Failed to save theme preference:", error);
1529
1529
  setCurrentTheme(currentTheme);
@@ -1533,7 +1533,7 @@ var CustomThemeProvider = ({ children }) => {
1533
1533
  if (!canModifyTheme) return;
1534
1534
  setCurrentTheme("light");
1535
1535
  try {
1536
- await api_default.put("/auth/theme-preference", { themePreference: "light" });
1536
+ await api_default.put("/users/me", { themePreference: "light" });
1537
1537
  } catch (error) {
1538
1538
  console.error("Failed to save theme preference:", error);
1539
1539
  setCurrentTheme(currentTheme);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@propknot/shared-ui",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "files": [