@oxyhq/services 5.4.8 → 5.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.
Files changed (154) hide show
  1. package/lib/commonjs/core/index.js +0 -59
  2. package/lib/commonjs/core/index.js.map +1 -1
  3. package/lib/commonjs/index.js +174 -17
  4. package/lib/commonjs/index.js.map +1 -1
  5. package/lib/commonjs/ui/components/FollowButton.js +8 -23
  6. package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
  7. package/lib/commonjs/ui/components/OxyProvider.js +49 -38
  8. package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
  9. package/lib/commonjs/ui/components/OxySignInButton.js +2 -8
  10. package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
  11. package/lib/commonjs/ui/hooks/index.js +15 -2
  12. package/lib/commonjs/ui/hooks/index.js.map +1 -1
  13. package/lib/commonjs/ui/hooks/useAuthFetch.js +182 -0
  14. package/lib/commonjs/ui/hooks/useAuthFetch.js.map +1 -0
  15. package/lib/commonjs/ui/hooks/useFollow.js +10 -29
  16. package/lib/commonjs/ui/hooks/useFollow.js.map +1 -1
  17. package/lib/commonjs/ui/hooks/useOxyFollow.js +190 -0
  18. package/lib/commonjs/ui/hooks/useOxyFollow.js.map +1 -0
  19. package/lib/commonjs/ui/index.js +183 -0
  20. package/lib/commonjs/ui/index.js.map +1 -1
  21. package/lib/commonjs/ui/screens/AccountCenterScreen.js +18 -14
  22. package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
  23. package/lib/commonjs/ui/screens/AppInfoScreen.js +37 -19
  24. package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
  25. package/lib/commonjs/ui/screens/FileManagementScreen.js +27 -9
  26. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
  27. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +2 -8
  28. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
  29. package/lib/commonjs/ui/store/index.js +51 -255
  30. package/lib/commonjs/ui/store/index.js.map +1 -1
  31. package/lib/commonjs/ui/store/setupOxyStore.js +63 -0
  32. package/lib/commonjs/ui/store/setupOxyStore.js.map +1 -0
  33. package/lib/commonjs/ui/store/slices/authSlice.js +56 -0
  34. package/lib/commonjs/ui/store/slices/authSlice.js.map +1 -0
  35. package/lib/commonjs/ui/store/slices/followSlice.js +238 -0
  36. package/lib/commonjs/ui/store/slices/followSlice.js.map +1 -0
  37. package/lib/commonjs/ui/store/slices/index.js +129 -0
  38. package/lib/commonjs/ui/store/slices/index.js.map +1 -0
  39. package/lib/commonjs/ui/store/slices/types.js +19 -0
  40. package/lib/commonjs/ui/store/slices/types.js.map +1 -0
  41. package/lib/commonjs/ui/styles/index.js +11 -0
  42. package/lib/commonjs/ui/styles/index.js.map +1 -1
  43. package/lib/commonjs/ui/styles/shadows.js +123 -0
  44. package/lib/commonjs/ui/styles/shadows.js.map +1 -0
  45. package/lib/module/core/index.js +0 -59
  46. package/lib/module/core/index.js.map +1 -1
  47. package/lib/module/index.js +14 -10
  48. package/lib/module/index.js.map +1 -1
  49. package/lib/module/ui/components/FollowButton.js +8 -23
  50. package/lib/module/ui/components/FollowButton.js.map +1 -1
  51. package/lib/module/ui/components/OxyProvider.js +49 -38
  52. package/lib/module/ui/components/OxyProvider.js.map +1 -1
  53. package/lib/module/ui/components/OxySignInButton.js +2 -8
  54. package/lib/module/ui/components/OxySignInButton.js.map +1 -1
  55. package/lib/module/ui/hooks/index.js +2 -1
  56. package/lib/module/ui/hooks/index.js.map +1 -1
  57. package/lib/module/ui/hooks/useAuthFetch.js +177 -0
  58. package/lib/module/ui/hooks/useAuthFetch.js.map +1 -0
  59. package/lib/module/ui/hooks/useFollow.js +10 -29
  60. package/lib/module/ui/hooks/useFollow.js.map +1 -1
  61. package/lib/module/ui/hooks/useOxyFollow.js +186 -0
  62. package/lib/module/ui/hooks/useOxyFollow.js.map +1 -0
  63. package/lib/module/ui/index.js +12 -2
  64. package/lib/module/ui/index.js.map +1 -1
  65. package/lib/module/ui/screens/AccountCenterScreen.js +5 -1
  66. package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
  67. package/lib/module/ui/screens/AppInfoScreen.js +37 -19
  68. package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
  69. package/lib/module/ui/screens/FileManagementScreen.js +27 -9
  70. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
  71. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +2 -8
  72. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
  73. package/lib/module/ui/store/index.js +23 -249
  74. package/lib/module/ui/store/index.js.map +1 -1
  75. package/lib/module/ui/store/setupOxyStore.js +59 -0
  76. package/lib/module/ui/store/setupOxyStore.js.map +1 -0
  77. package/lib/module/ui/store/slices/authSlice.js +48 -0
  78. package/lib/module/ui/store/slices/authSlice.js.map +1 -0
  79. package/lib/module/ui/store/slices/followSlice.js +232 -0
  80. package/lib/module/ui/store/slices/followSlice.js.map +1 -0
  81. package/lib/module/ui/store/slices/index.js +11 -0
  82. package/lib/module/ui/store/slices/index.js.map +1 -0
  83. package/lib/module/ui/store/slices/types.js +15 -0
  84. package/lib/module/ui/store/slices/types.js.map +1 -0
  85. package/lib/module/ui/styles/index.js +1 -0
  86. package/lib/module/ui/styles/index.js.map +1 -1
  87. package/lib/module/ui/styles/shadows.js +119 -0
  88. package/lib/module/ui/styles/shadows.js.map +1 -0
  89. package/lib/typescript/core/index.d.ts +0 -28
  90. package/lib/typescript/core/index.d.ts.map +1 -1
  91. package/lib/typescript/index.d.ts +3 -5
  92. package/lib/typescript/index.d.ts.map +1 -1
  93. package/lib/typescript/ui/components/FollowButton.d.ts.map +1 -1
  94. package/lib/typescript/ui/components/OxyProvider.d.ts.map +1 -1
  95. package/lib/typescript/ui/components/OxySignInButton.d.ts.map +1 -1
  96. package/lib/typescript/ui/hooks/index.d.ts +2 -1
  97. package/lib/typescript/ui/hooks/index.d.ts.map +1 -1
  98. package/lib/typescript/ui/hooks/useAuthFetch.d.ts +33 -0
  99. package/lib/typescript/ui/hooks/useAuthFetch.d.ts.map +1 -0
  100. package/lib/typescript/ui/hooks/useFollow.d.ts.map +1 -1
  101. package/lib/typescript/ui/hooks/useOxyFollow.d.ts +81 -0
  102. package/lib/typescript/ui/hooks/useOxyFollow.d.ts.map +1 -0
  103. package/lib/typescript/ui/index.d.ts +3 -1
  104. package/lib/typescript/ui/index.d.ts.map +1 -1
  105. package/lib/typescript/ui/navigation/types.d.ts +22 -4
  106. package/lib/typescript/ui/navigation/types.d.ts.map +1 -1
  107. package/lib/typescript/ui/screens/AccountCenterScreen.d.ts.map +1 -1
  108. package/lib/typescript/ui/screens/AppInfoScreen.d.ts.map +1 -1
  109. package/lib/typescript/ui/screens/FileManagementScreen.d.ts.map +1 -1
  110. package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts.map +1 -1
  111. package/lib/typescript/ui/store/index.d.ts +19 -58
  112. package/lib/typescript/ui/store/index.d.ts.map +1 -1
  113. package/lib/typescript/ui/store/setupOxyStore.d.ts +29 -0
  114. package/lib/typescript/ui/store/setupOxyStore.d.ts.map +1 -0
  115. package/lib/typescript/ui/store/slices/authSlice.d.ts +32 -0
  116. package/lib/typescript/ui/store/slices/authSlice.d.ts.map +1 -0
  117. package/lib/typescript/ui/store/slices/followSlice.d.ts +120 -0
  118. package/lib/typescript/ui/store/slices/followSlice.d.ts.map +1 -0
  119. package/lib/typescript/ui/store/slices/index.d.ts +9 -0
  120. package/lib/typescript/ui/store/slices/index.d.ts.map +1 -0
  121. package/lib/typescript/ui/store/slices/types.d.ts +16 -0
  122. package/lib/typescript/ui/store/slices/types.d.ts.map +1 -0
  123. package/lib/typescript/ui/styles/index.d.ts +1 -0
  124. package/lib/typescript/ui/styles/index.d.ts.map +1 -1
  125. package/lib/typescript/ui/styles/shadows.d.ts +233 -0
  126. package/lib/typescript/ui/styles/shadows.d.ts.map +1 -0
  127. package/package.json +14 -15
  128. package/src/__tests__/ui/hooks/useOxyFollow.test.tsx +92 -0
  129. package/src/__tests__/ui/store/setupOxyStore.test.ts +50 -0
  130. package/src/__tests__/validate-structure.js +91 -0
  131. package/src/__tests__/validation.js +42 -0
  132. package/src/core/index.ts +0 -66
  133. package/src/index.ts +36 -4
  134. package/src/ui/components/FollowButton.tsx +11 -25
  135. package/src/ui/components/OxyProvider.tsx +48 -33
  136. package/src/ui/components/OxySignInButton.tsx +2 -6
  137. package/src/ui/hooks/index.ts +2 -1
  138. package/src/ui/hooks/useAuthFetch.ts +200 -0
  139. package/src/ui/hooks/useFollow.ts +10 -30
  140. package/src/ui/hooks/useOxyFollow.ts +188 -0
  141. package/src/ui/index.ts +34 -2
  142. package/src/ui/navigation/types.ts +24 -4
  143. package/src/ui/screens/AccountCenterScreen.tsx +5 -7
  144. package/src/ui/screens/AppInfoScreen.tsx +40 -23
  145. package/src/ui/screens/FileManagementScreen.tsx +268 -248
  146. package/src/ui/screens/karma/KarmaRewardsScreen.tsx +2 -5
  147. package/src/ui/store/index.ts +31 -245
  148. package/src/ui/store/setupOxyStore.ts +58 -0
  149. package/src/ui/store/slices/authSlice.ts +43 -0
  150. package/src/ui/store/slices/followSlice.ts +207 -0
  151. package/src/ui/store/slices/index.ts +31 -0
  152. package/src/ui/store/slices/types.ts +33 -0
  153. package/src/ui/styles/index.ts +1 -0
  154. package/src/ui/styles/shadows.ts +112 -0
@@ -1,66 +1,27 @@
1
- import type { User } from '../../models/interfaces';
2
- interface AuthState {
3
- user: User | null;
4
- isAuthenticated: boolean;
5
- isLoading: boolean;
6
- error: string | null;
7
- }
8
- interface FollowState {
9
- followingUsers: Record<string, boolean>;
10
- loadingUsers: Record<string, boolean>;
11
- fetchingUsers: Record<string, boolean>;
12
- errors: Record<string, string | null>;
13
- }
14
- export declare const fetchFollowStatus: import("@reduxjs/toolkit").AsyncThunk<{
15
- userId: string;
16
- isFollowing: any;
17
- }, {
18
- userId: string;
19
- oxyServices: any;
20
- }, {
21
- state?: unknown;
22
- dispatch?: import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>;
23
- extra?: unknown;
24
- rejectValue?: unknown;
25
- serializedErrorType?: unknown;
26
- pendingMeta?: unknown;
27
- fulfilledMeta?: unknown;
28
- rejectedMeta?: unknown;
29
- }>;
30
- export declare const toggleFollowUser: import("@reduxjs/toolkit").AsyncThunk<{
31
- userId: string;
32
- isFollowing: boolean;
33
- message: string;
34
- }, {
35
- userId: string;
36
- oxyServices: any;
37
- isCurrentlyFollowing: boolean;
38
- }, {
39
- state?: unknown;
40
- dispatch?: import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>;
41
- extra?: unknown;
42
- rejectValue?: unknown;
43
- serializedErrorType?: unknown;
44
- pendingMeta?: unknown;
45
- fulfilledMeta?: unknown;
46
- rejectedMeta?: unknown;
47
- }>;
48
- export declare const loginStart: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/loginStart">, loginSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<User, "auth/loginSuccess">, loginFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "auth/loginFailure">, logout: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/logout">;
49
- export declare const setFollowingStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
50
- userId: string;
51
- isFollowing: boolean;
52
- }, "follow/setFollowingStatus">, clearFollowError: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "follow/clearFollowError">, resetFollowState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"follow/resetFollowState">;
53
- export declare const selectIsUserBeingFetched: (state: RootState, userId: string) => boolean;
1
+ /**
2
+ * OxyHQ Services Redux Store
3
+ * Framework-agnostic, tree-shakable Redux integration
4
+ *
5
+ * This module exports individual slices, reducers, actions, selectors, and helpers
6
+ * for easy integration into any Redux store without internal dependencies.
7
+ */
8
+ export * from './slices';
9
+ export { setupOxyStore, oxyReducers } from './setupOxyStore';
10
+ export type { AuthState, FollowState } from './slices/types';
11
+ /**
12
+ * @deprecated Use setupOxyStore() instead to integrate with your app's store
13
+ * This internal store will be removed in a future version
14
+ */
54
15
  export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
55
- auth: AuthState;
56
- follow: FollowState;
16
+ auth: import("./slices").AuthState;
17
+ follow: import("./slices").FollowState;
57
18
  }, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
58
19
  dispatch: import("redux-thunk").ThunkDispatch<{
59
- auth: AuthState;
60
- follow: FollowState;
20
+ auth: import("./slices").AuthState;
21
+ follow: import("./slices").FollowState;
61
22
  }, undefined, import("redux").UnknownAction>;
62
23
  }>, import("redux").StoreEnhancer]>>;
63
24
  export type RootState = ReturnType<typeof store.getState>;
64
25
  export type AppDispatch = typeof store.dispatch;
65
- export {};
26
+ export declare const selectIsUserBeingFetched: (state: RootState, userId: string) => boolean;
66
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/store/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEpD,UAAU,SAAS;IACjB,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,UAAU,WAAW;IAEnB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAExC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEtC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEvC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;CACvC;AAiBD,eAAO,MAAM,iBAAiB;;;;YAEc,MAAM;iBAAe,GAAG;;;;;;;;;;EAkCnE,CAAC;AAGF,eAAO,MAAM,gBAAgB;;;;;YAGjB,MAAM;iBACD,GAAG;0BACM,OAAO;;;;;;;;;;EAkEhC,CAAC;AAwFF,eAAO,MAAQ,UAAU,6EAAE,YAAY,kFAAE,YAAY,oFAAE,MAAM,uEAAsB,CAAC;AACpF,eAAO,MAAQ,kBAAkB;YA3D0C,MAAM;iBAAe,OAAO;iCA2DpE,gBAAgB,0FAAE,gBAAgB,mFAAwB,CAAC;AAG9F,eAAO,MAAM,wBAAwB,GAAI,OAAO,SAAS,EAAE,QAAQ,MAAM,YACzB,CAAC;AAEjD,eAAO,MAAM,KAAK;;;;;;;;oCAKhB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,QAAQ,CAAC,CAAC;AAC1D,MAAM,MAAM,WAAW,GAAG,OAAO,KAAK,CAAC,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/store/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,cAAc,UAAU,CAAC;AAGzB,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG7D,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAO7D;;;GAGG;AACH,eAAO,MAAM,KAAK;;;;;;;;oCAEhB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,QAAQ,CAAC,CAAC;AAC1D,MAAM,MAAM,WAAW,GAAG,OAAO,KAAK,CAAC,QAAQ,CAAC;AAGhD,eAAO,MAAM,wBAAwB,GAAI,OAAO,SAAS,EAAE,QAAQ,MAAM,YAC5B,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Setup helper for Oxy Store
3
+ * Returns all Oxy reducers ready to be spread into a host app's Redux store
4
+ *
5
+ * Usage:
6
+ * ```ts
7
+ * const store = configureStore({
8
+ * reducer: {
9
+ * ...setupOxyStore(),
10
+ * appSpecificReducer,
11
+ * },
12
+ * });
13
+ * ```
14
+ */
15
+ export declare function setupOxyStore(): {
16
+ auth: import("redux").Reducer<import("./slices").AuthState>;
17
+ follow: import("redux").Reducer<import("./slices").FollowState>;
18
+ };
19
+ export declare namespace setupOxyStore {
20
+ var pick: (...keys: Array<"auth" | "follow">) => Partial<{
21
+ auth: import("redux").Reducer<import("./slices").AuthState>;
22
+ follow: import("redux").Reducer<import("./slices").FollowState>;
23
+ }>;
24
+ }
25
+ export declare const oxyReducers: {
26
+ auth: import("redux").Reducer<import("./slices").AuthState>;
27
+ follow: import("redux").Reducer<import("./slices").FollowState>;
28
+ };
29
+ //# sourceMappingURL=setupOxyStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setupOxyStore.d.ts","sourceRoot":"","sources":["../../../../src/ui/store/setupOxyStore.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa;;;EAK5B;yBALe,aAAa;wBAsBU,KAAK,CAAC,MAAM,GAAG,QAAQ,CAAC;;;;;AAe/D,eAAO,MAAM,WAAW;;;CAGvB,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { PayloadAction } from '@reduxjs/toolkit';
2
+ import type { User } from '../../../models/interfaces';
3
+ import type { AuthState } from './types';
4
+ export declare const authSlice: import("@reduxjs/toolkit").Slice<AuthState, {
5
+ loginStart(state: AuthState): void;
6
+ loginSuccess(state: AuthState, action: PayloadAction<User>): void;
7
+ loginFailure(state: AuthState, action: PayloadAction<string>): void;
8
+ logout(state: AuthState): void;
9
+ }, "auth", "auth", import("@reduxjs/toolkit").SliceSelectors<AuthState>>;
10
+ export declare const authActions: import("@reduxjs/toolkit").CaseReducerActions<{
11
+ loginStart(state: AuthState): void;
12
+ loginSuccess(state: AuthState, action: PayloadAction<User>): void;
13
+ loginFailure(state: AuthState, action: PayloadAction<string>): void;
14
+ logout(state: AuthState): void;
15
+ }, "auth">;
16
+ export declare const loginStart: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/loginStart">, loginSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<User, "auth/loginSuccess">, loginFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "auth/loginFailure">, logout: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/logout">;
17
+ export declare const authSelectors: {
18
+ selectUser: (state: {
19
+ auth: AuthState;
20
+ }) => User | null;
21
+ selectIsAuthenticated: (state: {
22
+ auth: AuthState;
23
+ }) => boolean;
24
+ selectIsLoading: (state: {
25
+ auth: AuthState;
26
+ }) => boolean;
27
+ selectError: (state: {
28
+ auth: AuthState;
29
+ }) => string | null;
30
+ };
31
+ export declare const authReducer: import("redux").Reducer<AuthState>;
32
+ //# sourceMappingURL=authSlice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authSlice.d.ts","sourceRoot":"","sources":["../../../../../src/ui/store/slices/authSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC,eAAO,MAAM,SAAS;sBAIA,SAAS;wBAIP,SAAS,UAAU,aAAa,CAAC,IAAI,CAAC;wBAKtC,SAAS,UAAU,aAAa,CAAC,MAAM,CAAC;kBAI9C,SAAS;wEAKzB,CAAC;AAGH,eAAO,MAAM,WAAW;sBArBF,SAAS;wBAIP,SAAS,UAAU,aAAa,CAAC,IAAI,CAAC;wBAKtC,SAAS,UAAU,aAAa,CAAC,MAAM,CAAC;kBAI9C,SAAS;UAQiB,CAAC;AAC7C,eAAO,MAAQ,UAAU,6EAAE,YAAY,kFAAE,YAAY,oFAAE,MAAM,uEAAsB,CAAC;AAGpF,eAAO,MAAM,aAAa;wBACJ;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE;mCACR;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE;6BACzB;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE;yBACvB;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE;CACzC,CAAC;AAGF,eAAO,MAAM,WAAW,oCAAoB,CAAC"}
@@ -0,0 +1,120 @@
1
+ import { PayloadAction } from '@reduxjs/toolkit';
2
+ import type { FollowState } from './types';
3
+ export declare const fetchFollowStatus: import("@reduxjs/toolkit").AsyncThunk<{
4
+ userId: string;
5
+ isFollowing: any;
6
+ }, {
7
+ userId: string;
8
+ oxyServices: any;
9
+ }, {
10
+ state?: unknown;
11
+ dispatch?: import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>;
12
+ extra?: unknown;
13
+ rejectValue?: unknown;
14
+ serializedErrorType?: unknown;
15
+ pendingMeta?: unknown;
16
+ fulfilledMeta?: unknown;
17
+ rejectedMeta?: unknown;
18
+ }>;
19
+ export declare const toggleFollowUser: import("@reduxjs/toolkit").AsyncThunk<{
20
+ userId: string;
21
+ isFollowing: boolean;
22
+ message: string;
23
+ }, {
24
+ userId: string;
25
+ oxyServices: any;
26
+ isCurrentlyFollowing: boolean;
27
+ }, {
28
+ state?: unknown;
29
+ dispatch?: import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>;
30
+ extra?: unknown;
31
+ rejectValue?: unknown;
32
+ serializedErrorType?: unknown;
33
+ pendingMeta?: unknown;
34
+ fulfilledMeta?: unknown;
35
+ rejectedMeta?: unknown;
36
+ }>;
37
+ export declare const followSlice: import("@reduxjs/toolkit").Slice<FollowState, {
38
+ setFollowingStatus(state: FollowState, action: PayloadAction<{
39
+ userId: string;
40
+ isFollowing: boolean;
41
+ }>): void;
42
+ clearFollowError(state: FollowState, action: PayloadAction<string>): void;
43
+ resetFollowState(state: FollowState): void;
44
+ }, "follow", "follow", import("@reduxjs/toolkit").SliceSelectors<FollowState>>;
45
+ export declare const followActions: import("@reduxjs/toolkit").CaseReducerActions<{
46
+ setFollowingStatus(state: FollowState, action: PayloadAction<{
47
+ userId: string;
48
+ isFollowing: boolean;
49
+ }>): void;
50
+ clearFollowError(state: FollowState, action: PayloadAction<string>): void;
51
+ resetFollowState(state: FollowState): void;
52
+ }, "follow">;
53
+ export declare const setFollowingStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
54
+ userId: string;
55
+ isFollowing: boolean;
56
+ }, "follow/setFollowingStatus">, clearFollowError: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "follow/clearFollowError">, resetFollowState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"follow/resetFollowState">;
57
+ export declare const followThunks: {
58
+ fetchFollowStatus: import("@reduxjs/toolkit").AsyncThunk<{
59
+ userId: string;
60
+ isFollowing: any;
61
+ }, {
62
+ userId: string;
63
+ oxyServices: any;
64
+ }, {
65
+ state?: unknown;
66
+ dispatch?: import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>;
67
+ extra?: unknown;
68
+ rejectValue?: unknown;
69
+ serializedErrorType?: unknown;
70
+ pendingMeta?: unknown;
71
+ fulfilledMeta?: unknown;
72
+ rejectedMeta?: unknown;
73
+ }>;
74
+ toggleFollowUser: import("@reduxjs/toolkit").AsyncThunk<{
75
+ userId: string;
76
+ isFollowing: boolean;
77
+ message: string;
78
+ }, {
79
+ userId: string;
80
+ oxyServices: any;
81
+ isCurrentlyFollowing: boolean;
82
+ }, {
83
+ state?: unknown;
84
+ dispatch?: import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>;
85
+ extra?: unknown;
86
+ rejectValue?: unknown;
87
+ serializedErrorType?: unknown;
88
+ pendingMeta?: unknown;
89
+ fulfilledMeta?: unknown;
90
+ rejectedMeta?: unknown;
91
+ }>;
92
+ };
93
+ export declare const followSelectors: {
94
+ selectFollowingUsers: (state: {
95
+ follow: FollowState;
96
+ }) => Record<string, boolean>;
97
+ selectLoadingUsers: (state: {
98
+ follow: FollowState;
99
+ }) => Record<string, boolean>;
100
+ selectFetchingUsers: (state: {
101
+ follow: FollowState;
102
+ }) => Record<string, boolean>;
103
+ selectFollowErrors: (state: {
104
+ follow: FollowState;
105
+ }) => Record<string, string | null>;
106
+ selectIsUserFollowed: (state: {
107
+ follow: FollowState;
108
+ }, userId: string) => boolean;
109
+ selectIsUserLoading: (state: {
110
+ follow: FollowState;
111
+ }, userId: string) => boolean;
112
+ selectIsUserBeingFetched: (state: {
113
+ follow: FollowState;
114
+ }, userId: string) => boolean;
115
+ selectUserError: (state: {
116
+ follow: FollowState;
117
+ }, userId: string) => string | null;
118
+ };
119
+ export declare const followReducer: import("redux").Reducer<FollowState>;
120
+ //# sourceMappingURL=followSlice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"followSlice.d.ts","sourceRoot":"","sources":["../../../../../src/ui/store/slices/followSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,aAAa,EAAoB,MAAM,kBAAkB,CAAC;AAChF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAS3C,eAAO,MAAM,iBAAiB;;;;YAEc,MAAM;iBAAe,GAAG;;;;;;;;;;EA6BnE,CAAC;AAGF,eAAO,MAAM,gBAAgB;;;;;YAGjB,MAAM;iBACD,GAAG;0BACM,OAAO;;;;;;;;;;EAkEhC,CAAC;AAEF,eAAO,MAAM,WAAW;8BAIM,WAAW,UAAU,aAAa,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,OAAO,CAAA;KAAE,CAAC;4BAK9E,WAAW,UAAU,aAAa,CAAC,MAAM,CAAC;4BAI1C,WAAW;8EA+CrC,CAAC;AAGH,eAAO,MAAM,aAAa;8BA3DI,WAAW,UAAU,aAAa,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,OAAO,CAAA;KAAE,CAAC;4BAK9E,WAAW,UAAU,aAAa,CAAC,MAAM,CAAC;4BAI1C,WAAW;YAkDS,CAAC;AACjD,eAAO,MAAQ,kBAAkB;YA5D0C,MAAM;iBAAe,OAAO;iCA4DpE,gBAAgB,0FAAE,gBAAgB,mFAAwB,CAAC;AAG9F,eAAO,MAAM,YAAY;;;;;gBA5KmB,MAAM;qBAAe,GAAG;;;;;;;;;;;;;;;;gBAmCxD,MAAM;qBACD,GAAG;8BACM,OAAO;;;;;;;;;;;CA0IhC,CAAC;AAGF,eAAO,MAAM,eAAe;kCACI;QAAE,MAAM,EAAE,WAAW,CAAA;KAAE;gCACzB;QAAE,MAAM,EAAE,WAAW,CAAA;KAAE;iCACtB;QAAE,MAAM,EAAE,WAAW,CAAA;KAAE;gCACxB;QAAE,MAAM,EAAE,WAAW,CAAA;KAAE;kCACrB;QAAE,MAAM,EAAE,WAAW,CAAA;KAAE,UAAU,MAAM;iCAExC;QAAE,MAAM,EAAE,WAAW,CAAA;KAAE,UAAU,MAAM;sCAElC;QAAE,MAAM,EAAE,WAAW,CAAA;KAAE,UAAU,MAAM;6BAEhD;QAAE,MAAM,EAAE,WAAW,CAAA;KAAE,UAAU,MAAM;CAEjE,CAAC;AAGF,eAAO,MAAM,aAAa,sCAAsB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Redux slices exports
3
+ * This file exports individual slices and their components for tree-shaking
4
+ */
5
+ export { authSlice, authActions, authSelectors, authReducer, loginStart, loginSuccess, loginFailure, logout } from './authSlice';
6
+ export { followSlice, followActions, followSelectors, followThunks, followReducer, setFollowingStatus, clearFollowError, resetFollowState, fetchFollowStatus, toggleFollowUser } from './followSlice';
7
+ export type { AuthState, FollowState } from './types';
8
+ export { initialAuthState, initialFollowState } from './types';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/store/slices/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,SAAS,EACT,WAAW,EACX,aAAa,EACb,WAAW,EACX,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,MAAM,EACP,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,WAAW,EACX,aAAa,EACb,eAAe,EACf,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { User } from '../../../models/interfaces';
2
+ export interface AuthState {
3
+ user: User | null;
4
+ isAuthenticated: boolean;
5
+ isLoading: boolean;
6
+ error: string | null;
7
+ }
8
+ export interface FollowState {
9
+ followingUsers: Record<string, boolean>;
10
+ loadingUsers: Record<string, boolean>;
11
+ fetchingUsers: Record<string, boolean>;
12
+ errors: Record<string, string | null>;
13
+ }
14
+ export declare const initialAuthState: AuthState;
15
+ export declare const initialFollowState: FollowState;
16
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/ui/store/slices/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAEvD,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,WAAW;IAE1B,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAExC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEtC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEvC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;CACvC;AAED,eAAO,MAAM,gBAAgB,EAAE,SAK9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,WAKhC,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export * from './fonts';
2
2
  export * from './theme';
3
+ export * from './shadows';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/styles/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/styles/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
@@ -0,0 +1,233 @@
1
+ /**
2
+ * Cross-platform shadow utility that eliminates "shadow*" deprecation warnings
3
+ */
4
+ export interface ShadowConfig {
5
+ shadowColor?: string;
6
+ shadowOffset?: {
7
+ width: number;
8
+ height: number;
9
+ };
10
+ shadowOpacity?: number;
11
+ shadowRadius?: number;
12
+ elevation?: number;
13
+ }
14
+ /**
15
+ * Creates cross-platform shadow styles
16
+ * Uses boxShadow for web and native shadow props for iOS/Android
17
+ */
18
+ export declare function createShadow(config: ShadowConfig): {
19
+ boxShadow: string;
20
+ shadowColor?: undefined;
21
+ shadowOffset?: undefined;
22
+ shadowOpacity?: undefined;
23
+ shadowRadius?: undefined;
24
+ elevation?: undefined;
25
+ } | {
26
+ shadowColor: string;
27
+ shadowOffset: {
28
+ width: number;
29
+ height: number;
30
+ };
31
+ shadowOpacity: number;
32
+ shadowRadius: number;
33
+ boxShadow?: undefined;
34
+ elevation?: undefined;
35
+ } | {
36
+ elevation: number;
37
+ boxShadow?: undefined;
38
+ shadowColor?: undefined;
39
+ shadowOffset?: undefined;
40
+ shadowOpacity?: undefined;
41
+ shadowRadius?: undefined;
42
+ } | {
43
+ shadowColor: string;
44
+ shadowOffset: {
45
+ width: number;
46
+ height: number;
47
+ };
48
+ shadowOpacity: number;
49
+ shadowRadius: number;
50
+ elevation: number;
51
+ boxShadow?: undefined;
52
+ };
53
+ /**
54
+ * Predefined shadow presets
55
+ */
56
+ export declare const shadows: {
57
+ small: {
58
+ boxShadow: string;
59
+ shadowColor?: undefined;
60
+ shadowOffset?: undefined;
61
+ shadowOpacity?: undefined;
62
+ shadowRadius?: undefined;
63
+ elevation?: undefined;
64
+ } | {
65
+ shadowColor: string;
66
+ shadowOffset: {
67
+ width: number;
68
+ height: number;
69
+ };
70
+ shadowOpacity: number;
71
+ shadowRadius: number;
72
+ boxShadow?: undefined;
73
+ elevation?: undefined;
74
+ } | {
75
+ elevation: number;
76
+ boxShadow?: undefined;
77
+ shadowColor?: undefined;
78
+ shadowOffset?: undefined;
79
+ shadowOpacity?: undefined;
80
+ shadowRadius?: undefined;
81
+ } | {
82
+ shadowColor: string;
83
+ shadowOffset: {
84
+ width: number;
85
+ height: number;
86
+ };
87
+ shadowOpacity: number;
88
+ shadowRadius: number;
89
+ elevation: number;
90
+ boxShadow?: undefined;
91
+ };
92
+ medium: {
93
+ boxShadow: string;
94
+ shadowColor?: undefined;
95
+ shadowOffset?: undefined;
96
+ shadowOpacity?: undefined;
97
+ shadowRadius?: undefined;
98
+ elevation?: undefined;
99
+ } | {
100
+ shadowColor: string;
101
+ shadowOffset: {
102
+ width: number;
103
+ height: number;
104
+ };
105
+ shadowOpacity: number;
106
+ shadowRadius: number;
107
+ boxShadow?: undefined;
108
+ elevation?: undefined;
109
+ } | {
110
+ elevation: number;
111
+ boxShadow?: undefined;
112
+ shadowColor?: undefined;
113
+ shadowOffset?: undefined;
114
+ shadowOpacity?: undefined;
115
+ shadowRadius?: undefined;
116
+ } | {
117
+ shadowColor: string;
118
+ shadowOffset: {
119
+ width: number;
120
+ height: number;
121
+ };
122
+ shadowOpacity: number;
123
+ shadowRadius: number;
124
+ elevation: number;
125
+ boxShadow?: undefined;
126
+ };
127
+ large: {
128
+ boxShadow: string;
129
+ shadowColor?: undefined;
130
+ shadowOffset?: undefined;
131
+ shadowOpacity?: undefined;
132
+ shadowRadius?: undefined;
133
+ elevation?: undefined;
134
+ } | {
135
+ shadowColor: string;
136
+ shadowOffset: {
137
+ width: number;
138
+ height: number;
139
+ };
140
+ shadowOpacity: number;
141
+ shadowRadius: number;
142
+ boxShadow?: undefined;
143
+ elevation?: undefined;
144
+ } | {
145
+ elevation: number;
146
+ boxShadow?: undefined;
147
+ shadowColor?: undefined;
148
+ shadowOffset?: undefined;
149
+ shadowOpacity?: undefined;
150
+ shadowRadius?: undefined;
151
+ } | {
152
+ shadowColor: string;
153
+ shadowOffset: {
154
+ width: number;
155
+ height: number;
156
+ };
157
+ shadowOpacity: number;
158
+ shadowRadius: number;
159
+ elevation: number;
160
+ boxShadow?: undefined;
161
+ };
162
+ card: {
163
+ boxShadow: string;
164
+ shadowColor?: undefined;
165
+ shadowOffset?: undefined;
166
+ shadowOpacity?: undefined;
167
+ shadowRadius?: undefined;
168
+ elevation?: undefined;
169
+ } | {
170
+ shadowColor: string;
171
+ shadowOffset: {
172
+ width: number;
173
+ height: number;
174
+ };
175
+ shadowOpacity: number;
176
+ shadowRadius: number;
177
+ boxShadow?: undefined;
178
+ elevation?: undefined;
179
+ } | {
180
+ elevation: number;
181
+ boxShadow?: undefined;
182
+ shadowColor?: undefined;
183
+ shadowOffset?: undefined;
184
+ shadowOpacity?: undefined;
185
+ shadowRadius?: undefined;
186
+ } | {
187
+ shadowColor: string;
188
+ shadowOffset: {
189
+ width: number;
190
+ height: number;
191
+ };
192
+ shadowOpacity: number;
193
+ shadowRadius: number;
194
+ elevation: number;
195
+ boxShadow?: undefined;
196
+ };
197
+ button: {
198
+ boxShadow: string;
199
+ shadowColor?: undefined;
200
+ shadowOffset?: undefined;
201
+ shadowOpacity?: undefined;
202
+ shadowRadius?: undefined;
203
+ elevation?: undefined;
204
+ } | {
205
+ shadowColor: string;
206
+ shadowOffset: {
207
+ width: number;
208
+ height: number;
209
+ };
210
+ shadowOpacity: number;
211
+ shadowRadius: number;
212
+ boxShadow?: undefined;
213
+ elevation?: undefined;
214
+ } | {
215
+ elevation: number;
216
+ boxShadow?: undefined;
217
+ shadowColor?: undefined;
218
+ shadowOffset?: undefined;
219
+ shadowOpacity?: undefined;
220
+ shadowRadius?: undefined;
221
+ } | {
222
+ shadowColor: string;
223
+ shadowOffset: {
224
+ width: number;
225
+ height: number;
226
+ };
227
+ shadowOpacity: number;
228
+ shadowRadius: number;
229
+ elevation: number;
230
+ boxShadow?: undefined;
231
+ };
232
+ };
233
+ //# sourceMappingURL=shadows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shadows.d.ts","sourceRoot":"","sources":["../../../../src/ui/styles/shadows.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACjD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY;;;;;;;;;;eAVvB,MAAM;gBAAU,MAAM;;;;;;;;;;;;;;;;eAAtB,MAAM;gBAAU,MAAM;;;;;;EAwC/C;AAqBD;;GAEG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;mBAhEM,MAAM;oBAAU,MAAM;;;;;;;;;;;;;;;;mBAAtB,MAAM;oBAAU,MAAM;;;;;;;;;;;;;;;;;mBAAtB,MAAM;oBAAU,MAAM;;;;;;;;;;;;;;;;mBAAtB,MAAM;oBAAU,MAAM;;;;;;;;;;;;;;;;;mBAAtB,MAAM;oBAAU,MAAM;;;;;;;;;;;;;;;;mBAAtB,MAAM;oBAAU,MAAM;;;;;;;;;;;;;;;;;mBAAtB,MAAM;oBAAU,MAAM;;;;;;;;;;;;;;;;mBAAtB,MAAM;oBAAU,MAAM;;;;;;;;;;;;;;;;;mBAAtB,MAAM;oBAAU,MAAM;;;;;;;;;;;;;;;;mBAAtB,MAAM;oBAAU,MAAM;;;;;;;CAwG/C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxyhq/services",
3
- "version": "5.4.8",
3
+ "version": "5.5.1",
4
4
  "description": "Reusable OxyHQ module to handle authentication, user management, karma system, device-based session management and more 🚀",
5
5
  "main": "lib/commonjs/node/index.js",
6
6
  "module": "lib/module/node/index.js",
@@ -9,24 +9,24 @@
9
9
  "source": "src/index.ts",
10
10
  "exports": {
11
11
  ".": {
12
- "types": "./lib/typescript/index.d.ts",
13
12
  "import": "./lib/module/index.js",
14
- "require": "./lib/commonjs/index.js"
13
+ "require": "./lib/commonjs/index.js",
14
+ "types": "./lib/typescript/index.d.ts"
15
15
  },
16
16
  "./core": {
17
- "types": "./lib/typescript/node/index.d.ts",
18
17
  "import": "./lib/module/node/index.js",
19
- "require": "./lib/commonjs/node/index.js"
18
+ "require": "./lib/commonjs/node/index.js",
19
+ "types": "./lib/typescript/node/index.d.ts"
20
20
  },
21
21
  "./ui": {
22
- "types": "./lib/typescript/ui/index.d.ts",
23
22
  "import": "./lib/module/ui/index.js",
24
- "require": "./lib/commonjs/ui/index.js"
23
+ "require": "./lib/commonjs/ui/index.js",
24
+ "types": "./lib/typescript/ui/index.d.ts"
25
25
  },
26
26
  "./full": {
27
- "types": "./lib/typescript/index.d.ts",
28
27
  "import": "./lib/module/index.js",
29
- "require": "./lib/commonjs/index.js"
28
+ "require": "./lib/commonjs/index.js",
29
+ "types": "./lib/typescript/index.d.ts"
30
30
  },
31
31
  "./package.json": "./package.json"
32
32
  },
@@ -57,16 +57,15 @@
57
57
  "homepage": "https://oxy.so",
58
58
  "scripts": {
59
59
  "typescript": "tsc --skipLibCheck --noEmit",
60
- "tsc": "./node_modules/.bin/tsc",
61
60
  "lint": "biome lint --error-on-warnings ./src",
62
- "build": "PATH=\"$PATH:./node_modules/.bin\" bob build && npm run copy-assets && npm run copy-dts && npm run delete-dts.js && npm run delete-debug-view",
61
+ "build": "bob build && yarn copy-assets && yarn copy-dts && yarn delete-dts.js && yarn delete-debug-view",
63
62
  "copy-assets": "copyfiles -u 1 \"src/assets/**/*\" lib/commonjs/assets && copyfiles -u 1 \"src/assets/**/*\" lib/module/assets",
64
63
  "copy-dts": "copyfiles -u 1 \"src/**/*.d.ts\" lib/typescript",
65
64
  "delete-debug-view": "rm -rf ./lib/commonjs/components/bottomSheetDebugView ./lib/module/components/bottomSheetDebugView ./lib/typescript/components/bottomSheetDebugView || true",
66
65
  "delete-dts.js": "find ./lib/commonjs -name '*.d.js*' -delete && find ./lib/module -name '*.d.js*' -delete",
67
- "release": "rm -rf lib && npm run build && release-it",
68
- "example": "npm --prefix example",
69
- "bootstrap": "npm install && npm run example"
66
+ "release": "rm -rf lib && yarn build && release-it",
67
+ "example": "yarn --cwd example",
68
+ "bootstrap": "yarn install && yarn example"
70
69
  },
71
70
  "dependencies": {
72
71
  "@gorhom/bottom-sheet": "^5.1.6",
@@ -111,7 +110,7 @@
111
110
  "react-test-renderer": "^18.3.1",
112
111
  "release-it": "^17.6.0",
113
112
  "ts-jest": "^29.4.0",
114
- "typescript": "^5.0.0"
113
+ "typescript": "^5.3.0"
115
114
  },
116
115
  "peerDependencies": {
117
116
  "@expo/vector-icons": "^14.1.0",