@capytale/meta-player 0.5.0 → 0.5.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capytale/meta-player",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -0,0 +1,7 @@
1
+ import { useAppSelector } from "../../app/hooks"
2
+ import { selectThemeIsDark } from "./themingSlice";
3
+
4
+ export const useThemeType = () => {
5
+ const themeIsDark = useAppSelector(selectThemeIsDark);
6
+ return themeIsDark ? "dark" : "light";
7
+ }
package/src/index.tsx CHANGED
@@ -8,6 +8,7 @@ import BeforeResetAction from "./features/activityJS/BeforeResetAction";
8
8
  import AfterSaveAction from "./features/activityJS/AfterSaveAction";
9
9
  import AfterResetAction from "./features/activityJS/AfterResetAction";
10
10
  import { useMode, useWorkflow } from "./hooks";
11
+ import { useThemeType } from "./features/theming/hooks";
11
12
  import {
12
13
  useActivityJS,
13
14
  useActivityJsEssentials,
@@ -36,6 +37,7 @@ export {
36
37
  useNotifyIsDirty,
37
38
  useSave,
38
39
  useOrientation,
40
+ useThemeType,
39
41
  ActivitySidebarActionsSetter,
40
42
  ActivityQuickActionsSetter,
41
43
  ActivitySettingsSetter,