@solidxai/core-ui 0.1.8-beta.17 → 0.1.8-beta.18

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.
Files changed (129) hide show
  1. package/dist/components/common/AuthBanner.js.map +1 -1
  2. package/dist/components/core/form/SolidFormLayouts.js +1 -1
  3. package/dist/components/core/form/SolidFormLayouts.js.map +1 -1
  4. package/dist/components/core/form/SolidFormLayouts.tsx +1 -1
  5. package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
  6. package/dist/components/core/form/SolidFormView.js +70 -20
  7. package/dist/components/core/form/SolidFormView.js.map +1 -1
  8. package/dist/components/core/form/SolidFormView.tsx +53 -2
  9. package/dist/components/core/form/fields/SolidSelectionDynamicField.d.ts.map +1 -1
  10. package/dist/components/core/form/fields/SolidSelectionDynamicField.js +1 -4
  11. package/dist/components/core/form/fields/SolidSelectionDynamicField.js.map +1 -1
  12. package/dist/components/core/form/fields/SolidSelectionDynamicField.tsx +6 -4
  13. package/dist/components/core/form/fields/SolidSelectionStaticField.js +0 -4
  14. package/dist/components/core/form/fields/SolidSelectionStaticField.js.map +1 -1
  15. package/dist/components/core/form/fields/SolidSelectionStaticField.tsx +4 -4
  16. package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts.map +1 -1
  17. package/dist/components/core/kanban/SolidManyToOneFilterElement.js.map +1 -1
  18. package/dist/components/core/kanban/SolidManyToOneFilterElement.tsx +1 -2
  19. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.d.ts.map +1 -1
  20. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js +2 -2
  21. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js.map +1 -1
  22. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.tsx +21 -10
  23. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.d.ts.map +1 -1
  24. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js +2 -2
  25. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js.map +1 -1
  26. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.tsx +18 -10
  27. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.d.ts.map +1 -1
  28. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js +3 -6
  29. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js.map +1 -1
  30. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.tsx +30 -24
  31. package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.js.map +1 -1
  32. package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.tsx +2 -2
  33. package/dist/components/core/list/SolidDataTable.d.ts.map +1 -1
  34. package/dist/components/core/list/SolidDataTable.js +6 -5
  35. package/dist/components/core/list/SolidDataTable.js.map +1 -1
  36. package/dist/components/core/list/SolidDataTable.tsx +6 -5
  37. package/dist/components/core/list/SolidDataTablePagination.d.ts +15 -0
  38. package/dist/components/core/list/SolidDataTablePagination.d.ts.map +1 -0
  39. package/dist/components/core/list/SolidDataTablePagination.js +22 -0
  40. package/dist/components/core/list/SolidDataTablePagination.js.map +1 -0
  41. package/dist/components/core/list/SolidDataTablePagination.tsx +71 -0
  42. package/dist/components/core/list/SolidEmptyListViewPlaceholder.d.ts.map +1 -1
  43. package/dist/components/core/list/SolidEmptyListViewPlaceholder.js +3 -3
  44. package/dist/components/core/list/SolidEmptyListViewPlaceholder.js.map +1 -1
  45. package/dist/components/core/list/SolidEmptyListViewPlaceholder.tsx +1 -0
  46. package/dist/components/core/list/SolidListView.d.ts.map +1 -1
  47. package/dist/components/core/list/SolidListView.js +2 -2
  48. package/dist/components/core/list/SolidListView.js.map +1 -1
  49. package/dist/components/core/list/SolidListView.tsx +1 -2
  50. package/dist/components/core/list/SolidListViewRowButtonContextMenu.d.ts +1 -1
  51. package/dist/components/core/list/SolidListViewRowButtonContextMenu.d.ts.map +1 -1
  52. package/dist/components/core/list/SolidListViewRowButtonContextMenu.js +6 -7
  53. package/dist/components/core/list/SolidListViewRowButtonContextMenu.js.map +1 -1
  54. package/dist/components/core/list/SolidListViewRowButtonContextMenu.tsx +9 -10
  55. package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js +1 -1
  56. package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js.map +1 -1
  57. package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.tsx +1 -1
  58. package/dist/components/solid-ui/SolidButton.d.ts +14 -0
  59. package/dist/components/solid-ui/SolidButton.d.ts.map +1 -0
  60. package/dist/components/solid-ui/SolidButton.js +36 -0
  61. package/dist/components/solid-ui/SolidButton.js.map +1 -0
  62. package/dist/components/solid-ui/SolidButton.tsx +54 -0
  63. package/dist/components/solid-ui/SolidTabs.d.ts +18 -0
  64. package/dist/components/solid-ui/SolidTabs.d.ts.map +1 -0
  65. package/dist/components/solid-ui/SolidTabs.js +22 -0
  66. package/dist/components/solid-ui/SolidTabs.js.map +1 -0
  67. package/dist/components/solid-ui/SolidTabs.tsx +73 -0
  68. package/dist/components/solid-ui/index.d.ts +3 -0
  69. package/dist/components/solid-ui/index.d.ts.map +1 -0
  70. package/dist/components/solid-ui/index.js +3 -0
  71. package/dist/components/solid-ui/index.js.map +1 -0
  72. package/dist/components/solid-ui/index.ts +2 -0
  73. package/dist/helpers/hydrateRelationRules.js +1 -1
  74. package/dist/helpers/hydrateRelationRules.js.map +1 -1
  75. package/dist/helpers/hydrateRelationRules.ts +1 -1
  76. package/dist/helpers/permissions.js +2 -2
  77. package/dist/helpers/permissions.js.map +1 -1
  78. package/dist/helpers/permissions.ts +2 -2
  79. package/dist/redux/api/solidEntityApi.js +1 -1
  80. package/dist/redux/api/solidEntityApi.js.map +1 -1
  81. package/dist/redux/api/solidEntityApi.tsx +1 -1
  82. package/dist/resources/globals.css +5 -5
  83. package/dist/resources/shadcn-base.css +6 -6
  84. package/dist/routes/pages/admin/core/CardPage.js +1 -1
  85. package/dist/routes/pages/admin/core/CardPage.js.map +1 -1
  86. package/dist/routes/pages/admin/core/CardPage.tsx +1 -1
  87. package/dist/routes/pages/admin/core/FormPage.js +1 -1
  88. package/dist/routes/pages/admin/core/FormPage.js.map +1 -1
  89. package/dist/routes/pages/admin/core/FormPage.tsx +1 -1
  90. package/dist/routes/pages/admin/core/KanbanPage.js +1 -1
  91. package/dist/routes/pages/admin/core/KanbanPage.js.map +1 -1
  92. package/dist/routes/pages/admin/core/KanbanPage.tsx +1 -1
  93. package/dist/routes/pages/admin/core/ListPage.js +1 -1
  94. package/dist/routes/pages/admin/core/ListPage.js.map +1 -1
  95. package/dist/routes/pages/admin/core/ListPage.tsx +1 -1
  96. package/dist/routes/pages/admin/core/TreePage.js +1 -1
  97. package/dist/routes/pages/admin/core/TreePage.js.map +1 -1
  98. package/dist/routes/pages/admin/core/TreePage.tsx +1 -1
  99. package/package.json +1 -2
  100. package/dist/components/auth/SolidOTPVerify.d.ts +0 -3
  101. package/dist/components/auth/SolidOTPVerify.d.ts.map +0 -1
  102. package/dist/components/auth/SolidOTPVerify.js +0 -67
  103. package/dist/components/auth/SolidOTPVerify.js.map +0 -1
  104. package/dist/components/auth/SolidOTPVerify.tsx +0 -133
  105. package/dist/components/core/common/LoadDynamicJsxComponent.d.ts +0 -2
  106. package/dist/components/core/common/LoadDynamicJsxComponent.d.ts.map +0 -1
  107. package/dist/components/core/common/LoadDynamicJsxComponent.js +0 -50
  108. package/dist/components/core/common/LoadDynamicJsxComponent.js.map +0 -1
  109. package/dist/components/core/common/LoadDynamicJsxComponent.tsx +0 -70
  110. package/dist/nextAuth/authProviders.d.ts +0 -4
  111. package/dist/nextAuth/authProviders.d.ts.map +0 -1
  112. package/dist/nextAuth/authProviders.js +0 -198
  113. package/dist/nextAuth/authProviders.js.map +0 -1
  114. package/dist/nextAuth/authProviders.tsx +0 -232
  115. package/dist/nextAuth/handleLogout.d.ts +0 -2
  116. package/dist/nextAuth/handleLogout.d.ts.map +0 -1
  117. package/dist/nextAuth/handleLogout.js +0 -36
  118. package/dist/nextAuth/handleLogout.js.map +0 -1
  119. package/dist/nextAuth/handleLogout.tsx +0 -39
  120. package/dist/nextAuth/refreshAccessToken.d.ts +0 -2
  121. package/dist/nextAuth/refreshAccessToken.d.ts.map +0 -1
  122. package/dist/nextAuth/refreshAccessToken.js +0 -24
  123. package/dist/nextAuth/refreshAccessToken.js.map +0 -1
  124. package/dist/nextAuth/refreshAccessToken.tsx +0 -28
  125. package/dist/redux/features/settingsSlice.d.ts +0 -20
  126. package/dist/redux/features/settingsSlice.d.ts.map +0 -1
  127. package/dist/redux/features/settingsSlice.js +0 -39
  128. package/dist/redux/features/settingsSlice.js.map +0 -1
  129. package/dist/redux/features/settingsSlice.ts +0 -60
@@ -1,24 +0,0 @@
1
- import { ERROR_MESSAGES } from "../constants/error-messages";
2
- import axios from "axios";
3
- import { jwtDecode } from "jwt-decode";
4
- export async function refreshAccessToken(token) {
5
- try {
6
- const response = await axios.post(`${process.env.NEXT_PUBLIC_BACKEND_API_URL}/api/iam/refresh-tokens`, { refreshToken: token.refreshToken });
7
- const { accessToken, refreshToken } = response.data.data;
8
- const { exp: accessTokenExpires } = jwtDecode(accessToken);
9
- return {
10
- ...token,
11
- accessToken,
12
- refreshToken,
13
- accessTokenExpires: accessTokenExpires * 1000, // Convert seconds to milliseconds
14
- };
15
- }
16
- catch (error) {
17
- console.error(ERROR_MESSAGES.FAILED_REFRESH_TOKEN, error.message || error.response?.data);
18
- return {
19
- // ...token,
20
- error: "RefreshAccessTokenError",
21
- };
22
- }
23
- }
24
- //# sourceMappingURL=refreshAccessToken.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"refreshAccessToken.js","sourceRoot":"./","sources":["nextAuth/refreshAccessToken.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,KAAU;IAC/C,IAAI;QACF,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,IAAI,CAC/B,GAAG,OAAO,CAAC,GAAG,CAAC,2BAA2B,yBAAyB,EACnE,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,CACrC,CAAC;QAEF,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;QACzD,MAAM,EAAE,GAAG,EAAE,kBAAkB,EAAE,GAAG,SAAS,CAAkB,WAAW,CAAC,CAAC;QAE5E,OAAO;YACL,GAAG,KAAK;YACR,WAAW;YACX,YAAY;YACZ,kBAAkB,EAAE,kBAAkB,GAAG,IAAI,EAAE,kCAAkC;SAClF,CAAC;KACH;IAAC,OAAO,KAAU,EAAE;QACnB,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,oBAAoB,EAAE,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QAC1F,OAAO;YACL,YAAY;YACZ,KAAK,EAAE,yBAAyB;SACjC,CAAC;KACH;AACH,CAAC","sourcesContent":["import { ERROR_MESSAGES } from \"../constants/error-messages\";\nimport axios from \"axios\";\nimport { jwtDecode } from \"jwt-decode\";\n\nexport async function refreshAccessToken(token: any) {\n try {\n const response = await axios.post(\n `${process.env.NEXT_PUBLIC_BACKEND_API_URL}/api/iam/refresh-tokens`,\n { refreshToken: token.refreshToken }\n );\n \n const { accessToken, refreshToken } = response.data.data;\n const { exp: accessTokenExpires } = jwtDecode<{ exp: number }>(accessToken);\n \n return {\n ...token,\n accessToken,\n refreshToken,\n accessTokenExpires: accessTokenExpires * 1000, // Convert seconds to milliseconds\n };\n } catch (error: any) {\n console.error(ERROR_MESSAGES.FAILED_REFRESH_TOKEN, error.message || error.response?.data);\n return {\n // ...token,\n error: \"RefreshAccessTokenError\",\n };\n }\n }"]}
@@ -1,28 +0,0 @@
1
- import { ERROR_MESSAGES } from "../constants/error-messages";
2
- import axios from "axios";
3
- import { jwtDecode } from "jwt-decode";
4
-
5
- export async function refreshAccessToken(token: any) {
6
- try {
7
- const response = await axios.post(
8
- `${process.env.NEXT_PUBLIC_BACKEND_API_URL}/api/iam/refresh-tokens`,
9
- { refreshToken: token.refreshToken }
10
- );
11
-
12
- const { accessToken, refreshToken } = response.data.data;
13
- const { exp: accessTokenExpires } = jwtDecode<{ exp: number }>(accessToken);
14
-
15
- return {
16
- ...token,
17
- accessToken,
18
- refreshToken,
19
- accessTokenExpires: accessTokenExpires * 1000, // Convert seconds to milliseconds
20
- };
21
- } catch (error: any) {
22
- console.error(ERROR_MESSAGES.FAILED_REFRESH_TOKEN, error.message || error.response?.data);
23
- return {
24
- // ...token,
25
- error: "RefreshAccessTokenError",
26
- };
27
- }
28
- }
@@ -1,20 +0,0 @@
1
- import { PayloadAction } from "@reduxjs/toolkit";
2
- export interface ISettingsState {
3
- authSettings: Record<string, any>;
4
- solidSettings: Record<string, any>;
5
- }
6
- export declare const settingsSlice: import("@reduxjs/toolkit").Slice<ISettingsState, {
7
- setSolidSettings: (state: import("immer/dist/internal.js").WritableDraft<ISettingsState>, action: PayloadAction<Record<string, any>>) => void;
8
- updateSolidSetting: (state: import("immer/dist/internal.js").WritableDraft<ISettingsState>, action: PayloadAction<{
9
- key: string;
10
- value: any;
11
- }>) => void;
12
- resetSettings: () => ISettingsState;
13
- }, "settingsSlice">;
14
- declare const _default: import("@reduxjs/toolkit").Reducer<ISettingsState>;
15
- export default _default;
16
- export declare const setSolidSettings: import("@reduxjs/toolkit").ActionCreatorWithPayload<Record<string, any>, "settingsSlice/setSolidSettings">, updateSolidSetting: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
17
- key: string;
18
- value: any;
19
- }, "settingsSlice/updateSolidSetting">, resetSettings: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"settingsSlice/resetSettings">;
20
- //# sourceMappingURL=settingsSlice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"settingsSlice.d.ts","sourceRoot":"./","sources":["redux/features/settingsSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAe,MAAM,kBAAkB,CAAC;AAE9D,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACpC;AAOD,eAAO,MAAM,aAAa;sGAsBZ,cAAc,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;wGAOlC,cAAc;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,GAAG,CAAA;KAAE,CAAC;;mBAQtD,CAAC;;AAEH,wBAAqC;AAErC,eAAO,MAGL,gBAAgB,8GAChB,kBAAkB;SAhBe,MAAM;WAAS,GAAG;wCAiBnD,aAAa,uFACU,CAAC"}
@@ -1,39 +0,0 @@
1
- import { createSlice } from "@reduxjs/toolkit";
2
- const initialState = {
3
- authSettings: {},
4
- solidSettings: {},
5
- };
6
- export const settingsSlice = createSlice({
7
- name: "settingsSlice",
8
- initialState,
9
- reducers: {
10
- // // -------- AUTH SETTINGS --------
11
- // setAuthSettings: (
12
- // state,
13
- // action: PayloadAction<Record<string, any>>
14
- // ) => {
15
- // state.authSettings = action.payload;
16
- // },
17
- // updateAuthSetting: (
18
- // state,
19
- // action: PayloadAction<{ key: string; value: any }>
20
- // ) => {
21
- // state.authSettings[action.payload.key] = action.payload.value;
22
- // },
23
- // -------- SOLID SETTINGS --------
24
- setSolidSettings: (state, action) => {
25
- state.solidSettings = action.payload;
26
- },
27
- updateSolidSetting: (state, action) => {
28
- state.solidSettings[action.payload.key] = action.payload.value;
29
- },
30
- // -------- RESET --------
31
- resetSettings: () => initialState,
32
- },
33
- });
34
- export default settingsSlice.reducer;
35
- export const {
36
- // setAuthSettings,
37
- // updateAuthSetting,
38
- setSolidSettings, updateSolidSetting, resetSettings, } = settingsSlice.actions;
39
- //# sourceMappingURL=settingsSlice.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"settingsSlice.js","sourceRoot":"./","sources":["redux/features/settingsSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAO9D,MAAM,YAAY,GAAmB;IACnC,YAAY,EAAE,EAAE;IAChB,aAAa,EAAE,EAAE;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CAAC;IACvC,IAAI,EAAE,eAAe;IACrB,YAAY;IACZ,QAAQ,EAAE;QACR,qCAAqC;QACrC,qBAAqB;QACrB,WAAW;QACX,+CAA+C;QAC/C,SAAS;QACT,yCAAyC;QACzC,KAAK;QAEL,uBAAuB;QACvB,WAAW;QACX,uDAAuD;QACvD,SAAS;QACT,mEAAmE;QACnE,KAAK;QAEL,mCAAmC;QACnC,gBAAgB,EAAE,CAChB,KAAK,EACL,MAA0C,EAC1C,EAAE;YACF,KAAK,CAAC,aAAa,GAAG,MAAM,CAAC,OAAO,CAAC;QACvC,CAAC;QAED,kBAAkB,EAAE,CAClB,KAAK,EACL,MAAkD,EAClD,EAAE;YACF,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;QACjE,CAAC;QAED,0BAA0B;QAC1B,aAAa,EAAE,GAAG,EAAE,CAAC,YAAY;KAClC;CACF,CAAC,CAAC;AAEH,eAAe,aAAa,CAAC,OAAO,CAAC;AAErC,MAAM,CAAC,MAAM;AACX,mBAAmB;AACnB,qBAAqB;AACrB,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,GACd,GAAG,aAAa,CAAC,OAAO,CAAC","sourcesContent":["import { PayloadAction, createSlice } from \"@reduxjs/toolkit\";\n\nexport interface ISettingsState {\n authSettings: Record<string, any>;\n solidSettings: Record<string, any>;\n}\n\nconst initialState: ISettingsState = {\n authSettings: {},\n solidSettings: {},\n};\n\nexport const settingsSlice = createSlice({\n name: \"settingsSlice\",\n initialState,\n reducers: {\n // // -------- AUTH SETTINGS --------\n // setAuthSettings: (\n // state,\n // action: PayloadAction<Record<string, any>>\n // ) => {\n // state.authSettings = action.payload;\n // },\n\n // updateAuthSetting: (\n // state,\n // action: PayloadAction<{ key: string; value: any }>\n // ) => {\n // state.authSettings[action.payload.key] = action.payload.value;\n // },\n\n // -------- SOLID SETTINGS --------\n setSolidSettings: (\n state,\n action: PayloadAction<Record<string, any>>\n ) => {\n state.solidSettings = action.payload;\n },\n\n updateSolidSetting: (\n state,\n action: PayloadAction<{ key: string; value: any }>\n ) => {\n state.solidSettings[action.payload.key] = action.payload.value;\n },\n\n // -------- RESET --------\n resetSettings: () => initialState,\n },\n});\n\nexport default settingsSlice.reducer;\n\nexport const {\n // setAuthSettings,\n // updateAuthSetting,\n setSolidSettings,\n updateSolidSetting,\n resetSettings,\n} = settingsSlice.actions;\n"]}
@@ -1,60 +0,0 @@
1
- import { PayloadAction, createSlice } from "@reduxjs/toolkit";
2
-
3
- export interface ISettingsState {
4
- authSettings: Record<string, any>;
5
- solidSettings: Record<string, any>;
6
- }
7
-
8
- const initialState: ISettingsState = {
9
- authSettings: {},
10
- solidSettings: {},
11
- };
12
-
13
- export const settingsSlice = createSlice({
14
- name: "settingsSlice",
15
- initialState,
16
- reducers: {
17
- // // -------- AUTH SETTINGS --------
18
- // setAuthSettings: (
19
- // state,
20
- // action: PayloadAction<Record<string, any>>
21
- // ) => {
22
- // state.authSettings = action.payload;
23
- // },
24
-
25
- // updateAuthSetting: (
26
- // state,
27
- // action: PayloadAction<{ key: string; value: any }>
28
- // ) => {
29
- // state.authSettings[action.payload.key] = action.payload.value;
30
- // },
31
-
32
- // -------- SOLID SETTINGS --------
33
- setSolidSettings: (
34
- state,
35
- action: PayloadAction<Record<string, any>>
36
- ) => {
37
- state.solidSettings = action.payload;
38
- },
39
-
40
- updateSolidSetting: (
41
- state,
42
- action: PayloadAction<{ key: string; value: any }>
43
- ) => {
44
- state.solidSettings[action.payload.key] = action.payload.value;
45
- },
46
-
47
- // -------- RESET --------
48
- resetSettings: () => initialState,
49
- },
50
- });
51
-
52
- export default settingsSlice.reducer;
53
-
54
- export const {
55
- // setAuthSettings,
56
- // updateAuthSetting,
57
- setSolidSettings,
58
- updateSolidSetting,
59
- resetSettings,
60
- } = settingsSlice.actions;