@oxyhq/services 6.9.19 → 6.9.20

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.
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "Avatar", {
12
12
  Object.defineProperty(exports, "FollowButton", {
13
13
  enumerable: true,
14
14
  get: function () {
15
- return _FollowButton.default;
15
+ return _index3.FollowButton;
16
16
  }
17
17
  });
18
18
  Object.defineProperty(exports, "FontLoader", {
@@ -24,7 +24,7 @@ Object.defineProperty(exports, "FontLoader", {
24
24
  Object.defineProperty(exports, "OxyLogo", {
25
25
  enumerable: true,
26
26
  get: function () {
27
- return _OxyLogo.default;
27
+ return _index3.OxyLogo;
28
28
  }
29
29
  });
30
30
  Object.defineProperty(exports, "OxyProvider", {
@@ -394,8 +394,7 @@ var _errorHandlers = require("./ui/utils/errorHandlers.js");
394
394
  var _useFileFiltering = require("./ui/hooks/useFileFiltering.js");
395
395
  var _Avatar = _interopRequireDefault(require("./ui/components/Avatar.js"));
396
396
  var _OxySignInButton = require("./ui/components/OxySignInButton.js");
397
- var _OxyLogo = _interopRequireDefault(require("./ui/components/OxyLogo.js"));
398
- var _FollowButton = _interopRequireDefault(require("./ui/components/FollowButton.js"));
397
+ var _index3 = require("./ui/index.js");
399
398
  var _bottomSheetManager = require("./ui/navigation/bottomSheetManager.js");
400
399
  var _SignInModal = require("./ui/components/SignInModal.js");
401
400
  var _sonner = require("./lib/sonner");
@@ -1 +1 @@
1
- {"version":3,"names":["_core","require","_reactNative","_OxyContext","_useAuth","_OxyProvider","_interopRequireDefault","_FontLoader","_authStore","_assetStore","_useSessionSocket","_useAssets","_useFileDownloadUrl","_useFollow","_index","_index2","_mutationFactory","_errorHandlers","_useFileFiltering","_Avatar","_OxySignInButton","_OxyLogo","_FollowButton","_bottomSheetManager","_SignInModal","_sonner","e","__esModule","default","setPlatformOS","Platform","OS"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;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uB,YAAA,GAAAvB,OAAA;AAGA,IAAAwB,OAAA,GAAAxB,OAAA;AAAqC,SAAAK,uBAAAoB,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AA5GrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAGA,IAAAG,mBAAa,EAACC,qBAAQ,CAACC,EAAgB,CAAC;;AAExC;;AAEA;;AAKA;;AAGA;;AAGA;;AAeA;;AAMA;;AASA;;AAcA;;AAOA;;AAIA;;AAOA;;AAIA;;AAGA","ignoreList":[]}
1
+ {"version":3,"names":["_core","require","_reactNative","_OxyContext","_useAuth","_OxyProvider","_interopRequireDefault","_FontLoader","_authStore","_assetStore","_useSessionSocket","_useAssets","_useFileDownloadUrl","_useFollow","_index","_index2","_mutationFactory","_errorHandlers","_useFileFiltering","_Avatar","_OxySignInButton","_index3","_bottomSheetManager","_SignInModal","_sonner","e","__esModule","default","setPlatformOS","Platform","OS"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAIA,IAAAI,YAAA,GAAAC,sBAAA,CAAAL,OAAA;AAGA,IAAAM,WAAA,GAAAN,OAAA;AAGA,IAAAO,UAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AAcA,IAAAS,iBAAA,GAAAT,OAAA;AACA,IAAAU,UAAA,GAAAV,OAAA;AACA,IAAAW,mBAAA,GAAAX,OAAA;AACA,IAAAY,UAAA,GAAAZ,OAAA;AAGA,IAAAa,MAAA,GAAAb,OAAA;AASA,IAAAc,OAAA,GAAAd,OAAA;AAMA,IAAAe,gBAAA,GAAAf,OAAA;AAQA,IAAAgB,cAAA,GAAAhB,OAAA;AAOA,IAAAiB,iBAAA,GAAAjB,OAAA;AAIA,IAAAkB,OAAA,GAAAb,sBAAA,CAAAL,OAAA;AAEA,IAAAmB,gBAAA,GAAAnB,OAAA;AACA,IAAAoB,OAAA,GAAApB,OAAA;AAGA,IAAAqB,mBAAA,GAAArB,OAAA;AAIA,IAAAsB,YAAA,GAAAtB,OAAA;AAGA,IAAAuB,OAAA,GAAAvB,OAAA;AAAqC,SAAAK,uBAAAmB,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AA3GrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAGA,IAAAG,mBAAa,EAACC,qBAAQ,CAACC,EAAgB,CAAC;;AAExC;;AAEA;;AAKA;;AAGA;;AAGA;;AAeA;;AAMA;;AASA;;AAcA;;AAOA;;AAIA;;AAMA;;AAIA;;AAGA","ignoreList":[]}
@@ -4,6 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.useAuth = useAuth;
7
+ Object.defineProperty(exports, "useOxy", {
8
+ enumerable: true,
9
+ get: function () {
10
+ return _OxyContext.useOxy;
11
+ }
12
+ });
7
13
  var _react = require("react");
8
14
  var _OxyContext = require("../context/OxyContext.js");
9
15
  var _useWebSSO = require("./useWebSSO.js");
@@ -150,4 +156,6 @@ function useAuth() {
150
156
  openAvatarPicker
151
157
  };
152
158
  }
159
+
160
+ // Re-export useOxy for backward compatibility and advanced usage
153
161
  //# sourceMappingURL=useAuth.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_OxyContext","_useWebSSO","useAuth","user","isAuthenticated","isLoading","isTokenReady","error","signIn","oxySignIn","handlePopupSession","logout","logoutAll","refreshSessions","oxyServices","hasIdentity","getPublicKey","showBottomSheet","openAvatarPicker","useOxy","useCallback","publicKey","isIdentityProvider","isWebBrowser","window","location","hostname","popupSession","signInWithPopup","sessionWithUser","Error","popupError","message","includes","hasExisting","existingKey","Promise","_","reject","loginUrl","href","signOut","signOutAll","refresh","isReady"],"sourceRoot":"../../../../src","sources":["ui/hooks/useAuth.ts"],"mappings":";;;;;;AAyBA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,UAAA,GAAAF,OAAA;AA5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAyDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASG,OAAOA,CAAA,EAAkB;EACvC,MAAM;IACJC,IAAI;IACJC,eAAe;IACfC,SAAS;IACTC,YAAY;IACZC,KAAK;IACLC,MAAM,EAAEC,SAAS;IACjBC,kBAAkB;IAClBC,MAAM;IACNC,SAAS;IACTC,eAAe;IACfC,WAAW;IACXC,WAAW;IACXC,YAAY;IACZC,eAAe;IACfC;EACF,CAAC,GAAG,IAAAC,kBAAM,EAAC,CAAC;EAEZ,MAAMX,MAAM,GAAG,IAAAY,kBAAW,EAAC,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MAAM,CAAC,IAAIR,KAAK,CAAC,2CAA2C,CAAC,CAAC;MAChE,CAAC,CAAC;IACJ;;IAEA;IACA,IAAI,IAAAP,uBAAY,EAAC,CAAC,EAAE;MAClB,MAAMgB,QAAQ,GAAGf,MAAM,CAACC,QAAQ,CAACC,QAAQ,CAACO,QAAQ,CAAC,QAAQ,CAAC,GACxD,QAAQ,GACR,+BAA+B;MACnCT,MAAM,CAACC,QAAQ,CAACe,IAAI,GAAGD,QAAQ;MAC/B,OAAO,IAAIH,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAChC;IAEA,MAAM,IAAIN,KAAK,CAAC,oCAAoC,CAAC;EACvD,CAAC,EAAE,CAACrB,SAAS,EAAEM,WAAW,EAAEC,YAAY,EAAEC,eAAe,EAAEH,WAAW,EAAEJ,kBAAkB,CAAC,CAAC;EAE5F,MAAM+B,OAAO,GAAG,IAAArB,kBAAW,EAAC,YAA2B;IACrD,MAAMT,MAAM,CAAC,CAAC;EAChB,CAAC,EAAE,CAACA,MAAM,CAAC,CAAC;EAEZ,MAAM+B,UAAU,GAAG,IAAAtB,kBAAW,EAAC,YAA2B;IACxD,MAAMR,SAAS,CAAC,CAAC;EACnB,CAAC,EAAE,CAACA,SAAS,CAAC,CAAC;EAEf,MAAM+B,OAAO,GAAG,IAAAvB,kBAAW,EAAC,YAA2B;IACrD,MAAMP,eAAe,CAAC,CAAC;EACzB,CAAC,EAAE,CAACA,eAAe,CAAC,CAAC;EAErB,OAAO;IACL;IACAV,IAAI;IACJC,eAAe;IACfC,SAAS;IACTuC,OAAO,EAAEtC,YAAY;IACrBC,KAAK;IAEL;IACAC,MAAM;IACNiC,OAAO;IACPC,UAAU;IACVC,OAAO;IAEP;IACA7B,WAAW;IACXG,eAAe;IACfC;EACF,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_OxyContext","_useWebSSO","useAuth","user","isAuthenticated","isLoading","isTokenReady","error","signIn","oxySignIn","handlePopupSession","logout","logoutAll","refreshSessions","oxyServices","hasIdentity","getPublicKey","showBottomSheet","openAvatarPicker","useOxy","useCallback","publicKey","isIdentityProvider","isWebBrowser","window","location","hostname","popupSession","signInWithPopup","sessionWithUser","Error","popupError","message","includes","hasExisting","existingKey","Promise","_","reject","loginUrl","href","signOut","signOutAll","refresh","isReady"],"sourceRoot":"../../../../src","sources":["ui/hooks/useAuth.ts"],"mappings":";;;;;;;;;;;;AAyBA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,UAAA,GAAAF,OAAA;AA5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAyDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASG,OAAOA,CAAA,EAAkB;EACvC,MAAM;IACJC,IAAI;IACJC,eAAe;IACfC,SAAS;IACTC,YAAY;IACZC,KAAK;IACLC,MAAM,EAAEC,SAAS;IACjBC,kBAAkB;IAClBC,MAAM;IACNC,SAAS;IACTC,eAAe;IACfC,WAAW;IACXC,WAAW;IACXC,YAAY;IACZC,eAAe;IACfC;EACF,CAAC,GAAG,IAAAC,kBAAM,EAAC,CAAC;EAEZ,MAAMX,MAAM,GAAG,IAAAY,kBAAW,EAAC,MAAOC,SAAkB,IAAoB;IACtE;IACA;IACA,MAAMC,kBAAkB,GAAG,IAAAC,uBAAY,EAAC,CAAC,IACvCC,MAAM,CAACC,QAAQ,CAACC,QAAQ,KAAK,aAAa;;IAE5C;IACA;IACA;IACA;IACA,IAAI,IAAAH,uBAAY,EAAC,CAAC,IAAI,CAACF,SAAS,IAAI,CAACC,kBAAkB,EAAE;MACvD,IAAI;QACF,MAAMK,YAAY,GAAG,MAAMb,WAAW,CAACc,eAAe,GAAG,CAAC;QAC1D,IAAID,YAAY,EAAExB,IAAI,EAAE;UACtB;UACA;UACA;UAC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C;IAEA,MAAM,IAAIN,KAAK,CAAC,oCAAoC,CAAC;EACvD,CAAC,EAAE,CAACrB,SAAS,EAAEM,WAAW,EAAEC,YAAY,EAAEC,eAAe,EAAEH,WAAW,EAAEJ,kBAAkB,CAAC,CAAC;EAE5F,MAAM+B,OAAO,GAAG,IAAArB,kBAAW,EAAC,YAA2B;IACrD,MAAMT,MAAM,CAAC,CAAC;EAChB,CAAC,EAAE,CAACA,MAAM,CAAC,CAAC;EAEZ,MAAM+B,UAAU,GAAG,IAAAtB,kBAAW,EAAC,YAA2B;IACxD,MAAMR,SAAS,CAAC,CAAC;EACnB,CAAC,EAAE,CAACA,SAAS,CAAC,CAAC;EAEf,MAAM+B,OAAO,GAAG,IAAAvB,kBAAW,EAAC,YAA2B;IACrD,MAAMP,eAAe,CAAC,CAAC;EACzB,CAAC,EAAE,CAACA,eAAe,CAAC,CAAC;EAErB,OAAO;IACL;IACAV,IAAI;IACJC,eAAe;IACfC,SAAS;IACTuC,OAAO,EAAEtC,YAAY;IACrBC,KAAK;IAEL;IACAC,MAAM;IACNiC,OAAO;IACPC,UAAU;IACVC,OAAO;IAEP;IACA7B,WAAW;IACXG,eAAe;IACfC;EACF,CAAC;AACH;;AAEA","ignoreList":[]}
@@ -3,78 +3,14 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "Avatar", {
7
- enumerable: true,
8
- get: function () {
9
- return _Avatar.default;
10
- }
11
- });
12
- Object.defineProperty(exports, "FollowButton", {
13
- enumerable: true,
14
- get: function () {
15
- return _FollowButton.default;
16
- }
17
- });
18
- Object.defineProperty(exports, "FontLoader", {
19
- enumerable: true,
20
- get: function () {
21
- return _FontLoader.FontLoader;
22
- }
23
- });
24
- Object.defineProperty(exports, "OxyIcon", {
25
- enumerable: true,
26
- get: function () {
27
- return _index.OxyIcon;
28
- }
29
- });
30
- Object.defineProperty(exports, "OxyLogo", {
31
- enumerable: true,
32
- get: function () {
33
- return _OxyLogo.default;
34
- }
35
- });
36
- Object.defineProperty(exports, "OxyPayButton", {
37
- enumerable: true,
38
- get: function () {
39
- return _OxyPayButton.default;
40
- }
41
- });
42
- Object.defineProperty(exports, "OxyProvider", {
43
- enumerable: true,
44
- get: function () {
45
- return _OxyProvider.default;
46
- }
47
- });
48
- Object.defineProperty(exports, "OxySignInButton", {
49
- enumerable: true,
50
- get: function () {
51
- return _OxySignInButton.default;
52
- }
53
- });
54
- Object.defineProperty(exports, "ProfileScreen", {
55
- enumerable: true,
56
- get: function () {
57
- return _ProfileScreen.default;
58
- }
59
- });
6
+ exports.ProfileScreen = exports.OxySignInButton = exports.OxyProvider = exports.OxyPayButton = exports.OxyLogo = exports.OxyIcon = exports.FontLoader = exports.FollowButton = exports.Avatar = void 0;
60
7
  Object.defineProperty(exports, "extractErrorMessage", {
61
8
  enumerable: true,
62
9
  get: function () {
63
10
  return _errorHandlers.extractErrorMessage;
64
11
  }
65
12
  });
66
- Object.defineProperty(exports, "fontFamilies", {
67
- enumerable: true,
68
- get: function () {
69
- return _fonts.fontFamilies;
70
- }
71
- });
72
- Object.defineProperty(exports, "fontStyles", {
73
- enumerable: true,
74
- get: function () {
75
- return _fonts.fontStyles;
76
- }
77
- });
13
+ exports.fontStyles = exports.fontFamilies = void 0;
78
14
  Object.defineProperty(exports, "handleAuthError", {
79
15
  enumerable: true,
80
16
  get: function () {
@@ -93,71 +29,99 @@ Object.defineProperty(exports, "isTimeoutOrNetworkError", {
93
29
  return _errorHandlers.isTimeoutOrNetworkError;
94
30
  }
95
31
  });
96
- Object.defineProperty(exports, "setupFonts", {
97
- enumerable: true,
98
- get: function () {
99
- return _FontLoader.setupFonts;
100
- }
101
- });
102
- Object.defineProperty(exports, "toast", {
103
- enumerable: true,
104
- get: function () {
105
- return _sonner.toast;
106
- }
107
- });
108
- Object.defineProperty(exports, "useAccountStore", {
109
- enumerable: true,
110
- get: function () {
111
- return _accountStore.useAccountStore;
112
- }
113
- });
114
- Object.defineProperty(exports, "useAuth", {
115
- enumerable: true,
116
- get: function () {
117
- return _useAuth.useAuth;
118
- }
119
- });
120
- Object.defineProperty(exports, "useAuthStore", {
121
- enumerable: true,
122
- get: function () {
123
- return _authStore.useAuthStore;
124
- }
125
- });
126
- Object.defineProperty(exports, "useFollow", {
127
- enumerable: true,
128
- get: function () {
129
- return _index2.useFollow;
130
- }
131
- });
132
- Object.defineProperty(exports, "useOxy", {
133
- enumerable: true,
134
- get: function () {
135
- return _OxyContext.useOxy;
136
- }
137
- });
138
- Object.defineProperty(exports, "useStorage", {
139
- enumerable: true,
140
- get: function () {
141
- return _useStorage.useStorage;
142
- }
143
- });
144
- var _OxyProvider = _interopRequireDefault(require("./components/OxyProvider.js"));
145
- var _OxySignInButton = _interopRequireDefault(require("./components/OxySignInButton.js"));
146
- var _OxyLogo = _interopRequireDefault(require("./components/OxyLogo.js"));
147
- var _Avatar = _interopRequireDefault(require("./components/Avatar.js"));
148
- var _FollowButton = _interopRequireDefault(require("./components/FollowButton.js"));
149
- var _OxyPayButton = _interopRequireDefault(require("./components/OxyPayButton.js"));
150
- var _FontLoader = require("./components/FontLoader.js");
151
- var _index = require("./components/icon/index.js");
152
- var _OxyContext = require("./context/OxyContext.js");
153
- var _useAuth = require("./hooks/useAuth.js");
154
- var _index2 = require("./hooks/index.js");
155
- var _useStorage = require("./hooks/useStorage.js");
156
- var _ProfileScreen = _interopRequireDefault(require("./screens/ProfileScreen.js"));
157
- var _authStore = require("./stores/authStore.js");
158
- var _accountStore = require("./stores/accountStore.js");
159
- var _fonts = require("./styles/fonts.js");
160
- var _sonner = require("../lib/sonner");
32
+ exports.useStorage = exports.useOxy = exports.useFollow = exports.useAuthStore = exports.useAuth = exports.useAccountStore = exports.toast = exports.setupFonts = void 0;
33
+ var _isFrontend = _interopRequireDefault(require("./isFrontend.js"));
161
34
  var _errorHandlers = require("./utils/errorHandlers.js");
162
35
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
36
+ /**
37
+ * UI Component exports - Frontend Only (with backend-safe fallbacks)
38
+ *
39
+ * This module exports all React/React Native UI components and hooks.
40
+ * In backend, all exports are no-ops or empty objects.
41
+ *
42
+ * NOTE: This entry point uses runtime detection which prevents tree-shaking.
43
+ * For better bundle optimization, use:
44
+ * - '@oxyhq/services/ui/client' for client bundles (tree-shakeable)
45
+ * - '@oxyhq/services/ui/server' for SSR environments (all noops)
46
+ *
47
+ * @example
48
+ * // Client bundle (tree-shakeable)
49
+ * import { OxyProvider, useOxy } from '@oxyhq/services/ui/client';
50
+ *
51
+ * // SSR (noops)
52
+ * import { OxyProvider, useOxy } from '@oxyhq/services/ui/server';
53
+ */
54
+
55
+ // UI exports
56
+ let OxyProvider = exports.OxyProvider = void 0;
57
+ let OxySignInButton = exports.OxySignInButton = void 0;
58
+ let OxyLogo = exports.OxyLogo = void 0;
59
+ let Avatar = exports.Avatar = void 0;
60
+ let FollowButton = exports.FollowButton = void 0;
61
+ let OxyPayButton = exports.OxyPayButton = void 0;
62
+ let FontLoader = exports.FontLoader = void 0;
63
+ let setupFonts = exports.setupFonts = void 0;
64
+ let OxyIcon = exports.OxyIcon = void 0;
65
+ let useOxy = exports.useOxy = void 0;
66
+ let useAuth = exports.useAuth = void 0;
67
+ let useFollow = exports.useFollow = void 0;
68
+ let ProfileScreen = exports.ProfileScreen = void 0;
69
+ let useAuthStore = exports.useAuthStore = void 0;
70
+ let useAccountStore = exports.useAccountStore = void 0;
71
+ let fontFamilies = exports.fontFamilies = void 0;
72
+ let fontStyles = exports.fontStyles = void 0;
73
+ let toast = exports.toast = void 0;
74
+ let useStorage = exports.useStorage = void 0;
75
+ if (_isFrontend.default) {
76
+ exports.OxyProvider = OxyProvider = require('./components/OxyProvider').default;
77
+ exports.OxySignInButton = OxySignInButton = require('./components/OxySignInButton').default;
78
+ exports.OxyLogo = OxyLogo = require('./components/OxyLogo').default;
79
+ exports.Avatar = Avatar = require('./components/Avatar').default;
80
+ exports.FollowButton = FollowButton = require('./components/FollowButton').default;
81
+ exports.OxyPayButton = OxyPayButton = require('./components/OxyPayButton').default;
82
+ exports.FontLoader = FontLoader = require('./components/FontLoader').FontLoader;
83
+ exports.setupFonts = setupFonts = require('./components/FontLoader').setupFonts;
84
+ exports.OxyIcon = OxyIcon = require('./components/icon').OxyIcon;
85
+ exports.useOxy = useOxy = require('./context/OxyContext').useOxy;
86
+ exports.useAuth = useAuth = require('./hooks/useAuth').useAuth;
87
+ exports.useFollow = useFollow = require('./hooks').useFollow;
88
+ exports.ProfileScreen = ProfileScreen = require('./screens/ProfileScreen').default;
89
+ exports.useAuthStore = useAuthStore = require('./stores/authStore').useAuthStore;
90
+ exports.useAccountStore = useAccountStore = require('./stores/accountStore').useAccountStore;
91
+ exports.fontFamilies = fontFamilies = require('./styles/fonts').fontFamilies;
92
+ exports.fontStyles = fontStyles = require('./styles/fonts').fontStyles;
93
+ exports.toast = toast = require('../lib/sonner').toast;
94
+ exports.useStorage = useStorage = require('./hooks/useStorage').useStorage;
95
+ } else {
96
+ // Backend: no-op fallbacks
97
+ const noopComponent = () => null;
98
+ const noopHook = () => ({});
99
+ const noopStorageResult = {
100
+ storage: null,
101
+ isReady: false
102
+ };
103
+ exports.OxyProvider = OxyProvider = noopComponent;
104
+ exports.OxySignInButton = OxySignInButton = noopComponent;
105
+ exports.OxyLogo = OxyLogo = noopComponent;
106
+ exports.Avatar = Avatar = noopComponent;
107
+ exports.FollowButton = FollowButton = noopComponent;
108
+ exports.OxyPayButton = OxyPayButton = noopComponent;
109
+ exports.FontLoader = FontLoader = noopComponent;
110
+ exports.setupFonts = setupFonts = () => {};
111
+ exports.OxyIcon = OxyIcon = noopComponent;
112
+ exports.useOxy = useOxy = noopHook;
113
+ exports.useAuth = useAuth = noopHook;
114
+ exports.useFollow = useFollow = noopHook;
115
+ exports.ProfileScreen = ProfileScreen = noopComponent;
116
+ exports.useAuthStore = useAuthStore = noopHook;
117
+ exports.useAccountStore = useAccountStore = noopHook;
118
+ exports.fontFamilies = fontFamilies = {};
119
+ exports.fontStyles = fontStyles = {};
120
+ exports.toast = toast = () => {};
121
+ exports.useStorage = useStorage = () => noopStorageResult;
122
+ }
123
+
124
+ // Export error handler utilities (pure functions, no conditional needed)
125
+
126
+ // Export useStorage hook and types (kept for external consumers)
163
127
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_OxyProvider","_interopRequireDefault","require","_OxySignInButton","_OxyLogo","_Avatar","_FollowButton","_OxyPayButton","_FontLoader","_index","_OxyContext","_useAuth","_index2","_useStorage","_ProfileScreen","_authStore","_accountStore","_fonts","_sonner","_errorHandlers","e","__esModule","default"],"sourceRoot":"../../../src","sources":["ui/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,OAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,aAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,aAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AAGA,IAAAQ,WAAA,GAAAR,OAAA;AAGA,IAAAS,QAAA,GAAAT,OAAA;AAEA,IAAAU,OAAA,GAAAV,OAAA;AACA,IAAAW,WAAA,GAAAX,OAAA;AAIA,IAAAY,cAAA,GAAAb,sBAAA,CAAAC,OAAA;AAGA,IAAAa,UAAA,GAAAb,OAAA;AACA,IAAAc,aAAA,GAAAd,OAAA;AAGA,IAAAe,MAAA,GAAAf,OAAA;AAGA,IAAAgB,OAAA,GAAAhB,OAAA;AAGA,IAAAiB,cAAA,GAAAjB,OAAA;AAK+B,SAAAD,uBAAAmB,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
1
+ {"version":3,"names":["_isFrontend","_interopRequireDefault","require","_errorHandlers","e","__esModule","default","OxyProvider","exports","OxySignInButton","OxyLogo","Avatar","FollowButton","OxyPayButton","FontLoader","setupFonts","OxyIcon","useOxy","useAuth","useFollow","ProfileScreen","useAuthStore","useAccountStore","fontFamilies","fontStyles","toast","useStorage","isFrontend","noopComponent","noopHook","noopStorageResult","storage","isReady"],"sourceRoot":"../../../src","sources":["ui/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AA8FA,IAAAC,cAAA,GAAAD,OAAA;AAK+B,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AArH/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA,IAAIG,WAAW,GAAAC,OAAA,CAAAD,WAAA;AACf,IAAIE,eAAe,GAAAD,OAAA,CAAAC,eAAA;AACnB,IAAIC,OAAO,GAAAF,OAAA,CAAAE,OAAA;AACX,IAAIC,MAAM,GAAAH,OAAA,CAAAG,MAAA;AACV,IAAIC,YAAY,GAAAJ,OAAA,CAAAI,YAAA;AAChB,IAAIC,YAAY,GAAAL,OAAA,CAAAK,YAAA;AAChB,IAAIC,UAAU,GAAAN,OAAA,CAAAM,UAAA;AACd,IAAIC,UAAU,GAAAP,OAAA,CAAAO,UAAA;AACd,IAAIC,OAAO,GAAAR,OAAA,CAAAQ,OAAA;AACX,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAA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GAAGkB,aAAa;EACvBpB,OAAA,CAAAG,MAAA,GAAAA,MAAM,GAAGiB,aAAa;EACtBpB,OAAA,CAAAI,YAAA,GAAAA,YAAY,GAAGgB,aAAa;EAC5BpB,OAAA,CAAAK,YAAA,GAAAA,YAAY,GAAGe,aAAa;EAC5BpB,OAAA,CAAAM,UAAA,GAAAA,UAAU,GAAGc,aAAa;EAC1BpB,OAAA,CAAAO,UAAA,GAAAA,UAAU,GAAGA,CAAA,KAAM,CAAC,CAAC;EACrBP,OAAA,CAAAQ,OAAA,GAAAA,OAAO,GAAGY,aAAa;EACvBpB,OAAA,CAAAS,MAAA,GAAAA,MAAM,GAAGY,QAAQ;EACjBrB,OAAA,CAAAU,OAAA,GAAAA,OAAO,GAAGW,QAAQ;EAClBrB,OAAA,CAAAW,SAAA,GAAAA,SAAS,GAAGU,QAAQ;EACpBrB,OAAA,CAAAY,aAAA,GAAAA,aAAa,GAAGQ,aAAa;EAC7BpB,OAAA,CAAAa,YAAA,GAAAA,YAAY,GAAGQ,QAAQ;EACvBrB,OAAA,CAAAc,eAAA,GAAAA,eAAe,GAAGO,QAAQ;EAC1BrB,OAAA,CAAAe,YAAA,GAAAA,YAAY,GAAG,CAAC,CAAC;EACjBf,OAAA,CAAAgB,UAAA,GAAAA,UAAU,GAAG,CAAC,CAAC;EACfhB,OAAA,CAAAiB,KAAA,GAAAA,KAAK,GAAGA,CAAA,KAAM,CAAC,CAAC;EAChBjB,OAAA,CAAAkB,UAAA,GAAAA,UAAU,GAAGA,CAAA,KAAMI,iBAAiB;AACtC;;AAyBA;;AASA","ignoreList":[]}
@@ -59,8 +59,7 @@ export { useFileFiltering } from "./ui/hooks/useFileFiltering.js";
59
59
  // UI components
60
60
  export { default as Avatar } from "./ui/components/Avatar.js";
61
61
  export { OxySignInButton } from "./ui/components/OxySignInButton.js";
62
- export { default as OxyLogo } from "./ui/components/OxyLogo.js";
63
- export { default as FollowButton } from "./ui/components/FollowButton.js";
62
+ export { OxyLogo, FollowButton } from "./ui/index.js";
64
63
 
65
64
  // Bottom sheet navigation
66
65
  export { showBottomSheet, closeBottomSheet } from "./ui/navigation/bottomSheetManager.js";
@@ -1 +1 @@
1
- {"version":3,"names":["setPlatformOS","Platform","OS","useOxy","useAuth","default","OxyProvider","FontLoader","useAuthStore","useAssetStore","useAssets","useAssetsStore","useAsset","useUploadProgress","useAssetLoading","useAssetErrors","useAssetsByApp","useAssetsByEntity","useAssetUsageCount","useIsAssetLinked","useSessionSocket","setOxyAssetInstance","useFileDownloadUrl","setOxyFileUrlInstance","useFollow","useFollowerCounts","useUserProfile","useUserProfiles","useCurrentUser","useUserById","useUserByUsername","useUsersBySessions","usePrivacySettings","useSessions","useSession","useDeviceSessions","useUserDevices","useSecurityInfo","useSecurityActivity","useRecentSecurityActivity","useUpdateProfile","useUploadAvatar","useUpdateAccountSettings","useUpdatePrivacySettings","useUploadFile","useSwitchSession","useLogoutSession","useLogoutAll","useUpdateDeviceName","useRemoveDevice","createProfileMutation","createGenericMutation","handleAuthError","isInvalidSessionError","isTimeoutOrNetworkError","extractErrorMessage","useFileFiltering","Avatar","OxySignInButton","OxyLogo","FollowButton","showBottomSheet","closeBottomSheet","showSignInModal","hideSignInModal","toast"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,SAASA,aAAa,QAAyB,aAAa;AAC5D,SAASC,QAAQ,QAAQ,cAAc;AACvCD,aAAa,CAACC,QAAQ,CAACC,EAAgB,CAAC;;AAExC;;AAEA;AACA,SAASC,MAAM,QAAQ,4BAAyB;AAChD,SAASC,OAAO,QAAQ,uBAAoB;AAG5C;AACA,SAASC,OAAO,IAAIC,WAAW,QAAQ,gCAA6B;;AAEpE;AACA,SAASC,UAAU,QAAQ,+BAA4B;;AAEvD;AACA,SAASC,YAAY,QAAQ,0BAAuB;AACpD,SACEC,aA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;;AAE9E;AACA,SAASC,KAAK,QAAQ,cAAc","ignoreList":[]}
1
+ {"version":3,"names":["setPlatformOS","Platform","OS","useOxy","useAuth","default","OxyProvider","FontLoader","useAuthStore","useAssetStore","useAssets","useAssetsStore","useAsset","useUploadProgress","useAssetLoading","useAssetErrors","useAssetsByApp","useAssetsByEntity","useAssetUsageCount","useIsAssetLinked","useSessionSocket","setOxyAssetInstance","useFileDownloadUrl","setOxyFileUrlInstance","useFollow","useFollowerCounts","useUserProfile","useUserProfiles","useCurrentUser","useUserById","useUserByUsername","useUsersBySessions","usePrivacySettings","useSessions","useSession","useDeviceSessions","useUserDevices","useSecurityInfo","useSecurityActivity","useRecentSecurityActivity","useUpdateProfile","useUploadAvatar","useUpdateAccountSettings","useUpdatePrivacySettings","useUploadFile","useSwitchSession","useLogoutSession","useLogoutAll","useUpdateDeviceName","useRemoveDevice","createProfileMutation","createGenericMutation","handleAuthError","isInvalidSessionError","isTimeoutOrNetworkError","extractErrorMessage","useFileFiltering","Avatar","OxySignInButton","OxyLogo","FollowButton","showBottomSheet","closeBottomSheet","showSignInModal","hideSignInModal","toast"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,SAASA,aAAa,QAAyB,aAAa;AAC5D,SAASC,QAAQ,QAAQ,cAAc;AACvCD,aAAa,CAACC,QAAQ,CAACC,EAAgB,CAAC;;AAExC;;AAEA;AACA,SAASC,MAAM,QAAQ,4BAAyB;AAChD,SAASC,OAAO,QAAQ,uBAAoB;AAG5C;AACA,SAASC,OAAO,IAAIC,WAAW,QAAQ,gCAA6B;;AAEpE;AACA,SAASC,UAAU,QAAQ,+BAA4B;;AAEvD;AACA,SAASC,YAAY,QAAQ,0BAAuB;AACpD,SACEC,aAAa,EACbC,SAAS,IAAIC,cAAc,EAC3BC,QAAQ,EACRC,iBAAiB,EAC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
+
150
+ // Re-export useOxy for backward compatibility and advanced usage
151
+ export { useOxy } from "../context/OxyContext.js";
149
152
  //# sourceMappingURL=useAuth.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useCallback","useOxy","isWebBrowser","useAuth","user","isAuthenticated","isLoading","isTokenReady","error","signIn","oxySignIn","handlePopupSession","logout","logoutAll","refreshSessions","oxyServices","hasIdentity","getPublicKey","showBottomSheet","openAvatarPicker","publicKey","isIdentityProvider","window","location","hostname","popupSession","signInWithPopup","sessionWithUser","Error","popupError","message","includes","hasExisting","existingKey","Promise","_","reject","loginUrl","href","signOut","signOutAll","refresh","isReady"],"sourceRoot":"../../../../src","sources":["ui/hooks/useAuth.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,WAAW,QAAkB,OAAO;AAC7C,SAASC,MAAM,QAAQ,0BAAuB;AAE9C,SAASC,YAAY,QAAQ,gBAAa;AAoD1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,OAAOA,CAAA,EAAkB;EACvC,MAAM;IACJC,IAAI;IACJC,eAAe;IACfC,SAAS;IACTC,YAAY;IACZC,KAAK;IACLC,MAAM,EAAEC,SAAS;IACjBC,kBAAkB;IAClBC,MAAM;IACNC,SAAS;IACTC,eAAe;IACfC,WAAW;IACXC,WAAW;IACXC,YAAY;IACZC,eAAe;IACfC;EACF,CAAC,GAAGlB,MAAM,CAAC,CAAC;EAEZ,MAAMQ,MAAM,GAAGT,WAAW,CAAC,MAAOoB,SAAkB,IAAoB;IACtE;IACA;IACA,MAAMC,kBAAkB,GAAGnB,YAAY,CAAC,CAAC,IACvCoB,MAAM,CAACC,QAAQ,CAACC,QAAQ,KAAK,aAAa;;IAE5C;IACA;IACA;IACA;IACA,IAAItB,YAAY,CAAC,CAAC,IAAI,CAACkB,SAAS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ACxD,QAAQ,GACR,+BAA+B;MACnCT,MAAM,CAACC,QAAQ,CAACe,IAAI,GAAGD,QAAQ;MAC/B,OAAO,IAAIH,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAChC;IAEA,MAAM,IAAIN,KAAK,CAAC,oCAAoC,CAAC;EACvD,CAAC,EAAE,CAAClB,SAAS,EAAEM,WAAW,EAAEC,YAAY,EAAEC,eAAe,EAAEH,WAAW,EAAEJ,kBAAkB,CAAC,CAAC;EAE5F,MAAM4B,OAAO,GAAGvC,WAAW,CAAC,YAA2B;IACrD,MAAMY,MAAM,CAAC,CAAC;EAChB,CAAC,EAAE,CAACA,MAAM,CAAC,CAAC;EAEZ,MAAM4B,UAAU,GAAGxC,WAAW,CAAC,YAA2B;IACxD,MAAMa,SAAS,CAAC,CAAC;EACnB,CAAC,EAAE,CAACA,SAAS,CAAC,CAAC;EAEf,MAAM4B,OAAO,GAAGzC,WAAW,CAAC,YAA2B;IACrD,MAAMc,eAAe,CAAC,CAAC;EACzB,CAAC,EAAE,CAACA,eAAe,CAAC,CAAC;EAErB,OAAO;IACL;IACAV,IAAI;IACJC,eAAe;IACfC,SAAS;IACToC,OAAO,EAAEnC,YAAY;IACrBC,KAAK;IAEL;IACAC,MAAM;IACN8B,OAAO;IACPC,UAAU;IACVC,OAAO;IAEP;IACA1B,WAAW;IACXG,eAAe;IACfC;EACF,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"names":["useCallback","useOxy","isWebBrowser","useAuth","user","isAuthenticated","isLoading","isTokenReady","error","signIn","oxySignIn","handlePopupSession","logout","logoutAll","refreshSessions","oxyServices","hasIdentity","getPublicKey","showBottomSheet","openAvatarPicker","publicKey","isIdentityProvider","window","location","hostname","popupSession","signInWithPopup","sessionWithUser","Error","popupError","message","includes","hasExisting","existingKey","Promise","_","reject","loginUrl","href","signOut","signOutAll","refresh","isReady"],"sourceRoot":"../../../../src","sources":["ui/hooks/useAuth.ts"],"mappings":";;AAAA;A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UAAU,GAAGxC,WAAW,CAAC,YAA2B;IACxD,MAAMa,SAAS,CAAC,CAAC;EACnB,CAAC,EAAE,CAACA,SAAS,CAAC,CAAC;EAEf,MAAM4B,OAAO,GAAGzC,WAAW,CAAC,YAA2B;IACrD,MAAMc,eAAe,CAAC,CAAC;EACzB,CAAC,EAAE,CAACA,eAAe,CAAC,CAAC;EAErB,OAAO;IACL;IACAV,IAAI;IACJC,eAAe;IACfC,SAAS;IACToC,OAAO,EAAEnC,YAAY;IACrBC,KAAK;IAEL;IACAC,MAAM;IACN8B,OAAO;IACPC,UAAU;IACVC,OAAO;IAEP;IACA1B,WAAW;IACXG,eAAe;IACfC;EACF,CAAC;AACH;;AAEA;AACA,SAASlB,MAAM,QAAQ,0BAAuB","ignoreList":[]}
@@ -1,45 +1,97 @@
1
1
  "use strict";
2
2
 
3
3
  /**
4
- * UI Component exports
4
+ * UI Component exports - Frontend Only (with backend-safe fallbacks)
5
5
  *
6
- * This is a React Native / Expo SDK — all exports are static imports.
7
- * For SSR environments, use '@oxyhq/services/ui/server' instead.
6
+ * This module exports all React/React Native UI components and hooks.
7
+ * In backend, all exports are no-ops or empty objects.
8
+ *
9
+ * NOTE: This entry point uses runtime detection which prevents tree-shaking.
10
+ * For better bundle optimization, use:
11
+ * - '@oxyhq/services/ui/client' for client bundles (tree-shakeable)
12
+ * - '@oxyhq/services/ui/server' for SSR environments (all noops)
8
13
  *
9
14
  * @example
10
- * import { OxyProvider, useOxy, Avatar } from '@oxyhq/services/ui';
15
+ * // Client bundle (tree-shakeable)
16
+ * import { OxyProvider, useOxy } from '@oxyhq/services/ui/client';
17
+ *
18
+ * // SSR (noops)
19
+ * import { OxyProvider, useOxy } from '@oxyhq/services/ui/server';
11
20
  */
21
+ import isFrontend from "./isFrontend.js";
12
22
 
13
- // Components
14
- export { default as OxyProvider } from "./components/OxyProvider.js";
15
- export { default as OxySignInButton } from "./components/OxySignInButton.js";
16
- export { default as OxyLogo } from "./components/OxyLogo.js";
17
- export { default as Avatar } from "./components/Avatar.js";
18
- export { default as FollowButton } from "./components/FollowButton.js";
19
- export { default as OxyPayButton } from "./components/OxyPayButton.js";
20
- export { FontLoader, setupFonts } from "./components/FontLoader.js";
21
- export { OxyIcon } from "./components/icon/index.js";
22
-
23
- // Context
24
- export { useOxy } from "./context/OxyContext.js";
25
-
26
- // Hooks
27
- export { useAuth } from "./hooks/useAuth.js";
28
- export { useFollow } from "./hooks/index.js";
29
- export { useStorage } from "./hooks/useStorage.js";
30
- // Screens
31
- export { default as ProfileScreen } from "./screens/ProfileScreen.js";
23
+ // UI exports
24
+ let OxyProvider;
25
+ let OxySignInButton;
26
+ let OxyLogo;
27
+ let Avatar;
28
+ let FollowButton;
29
+ let OxyPayButton;
30
+ let FontLoader;
31
+ let setupFonts;
32
+ let OxyIcon;
33
+ let useOxy;
34
+ let useAuth;
35
+ let useFollow;
36
+ let ProfileScreen;
37
+ let useAuthStore;
38
+ let useAccountStore;
39
+ let fontFamilies;
40
+ let fontStyles;
41
+ let toast;
42
+ let useStorage;
43
+ if (isFrontend) {
44
+ OxyProvider = require('./components/OxyProvider').default;
45
+ OxySignInButton = require('./components/OxySignInButton').default;
46
+ OxyLogo = require('./components/OxyLogo').default;
47
+ Avatar = require('./components/Avatar').default;
48
+ FollowButton = require('./components/FollowButton').default;
49
+ OxyPayButton = require('./components/OxyPayButton').default;
50
+ FontLoader = require('./components/FontLoader').FontLoader;
51
+ setupFonts = require('./components/FontLoader').setupFonts;
52
+ OxyIcon = require('./components/icon').OxyIcon;
53
+ useOxy = require('./context/OxyContext').useOxy;
54
+ useAuth = require('./hooks/useAuth').useAuth;
55
+ useFollow = require('./hooks').useFollow;
56
+ ProfileScreen = require('./screens/ProfileScreen').default;
57
+ useAuthStore = require('./stores/authStore').useAuthStore;
58
+ useAccountStore = require('./stores/accountStore').useAccountStore;
59
+ fontFamilies = require('./styles/fonts').fontFamilies;
60
+ fontStyles = require('./styles/fonts').fontStyles;
61
+ toast = require('../lib/sonner').toast;
62
+ useStorage = require('./hooks/useStorage').useStorage;
63
+ } else {
64
+ // Backend: no-op fallbacks
65
+ const noopComponent = () => null;
66
+ const noopHook = () => ({});
67
+ const noopStorageResult = {
68
+ storage: null,
69
+ isReady: false
70
+ };
71
+ OxyProvider = noopComponent;
72
+ OxySignInButton = noopComponent;
73
+ OxyLogo = noopComponent;
74
+ Avatar = noopComponent;
75
+ FollowButton = noopComponent;
76
+ OxyPayButton = noopComponent;
77
+ FontLoader = noopComponent;
78
+ setupFonts = () => {};
79
+ OxyIcon = noopComponent;
80
+ useOxy = noopHook;
81
+ useAuth = noopHook;
82
+ useFollow = noopHook;
83
+ ProfileScreen = noopComponent;
84
+ useAuthStore = noopHook;
85
+ useAccountStore = noopHook;
86
+ fontFamilies = {};
87
+ fontStyles = {};
88
+ toast = () => {};
89
+ useStorage = () => noopStorageResult;
90
+ }
91
+ export { OxyProvider, OxySignInButton, OxyLogo, Avatar, FollowButton, OxyPayButton, FontLoader, setupFonts, OxyIcon, useOxy, useAuth, useFollow, ProfileScreen, useAuthStore, useAccountStore, fontFamilies, fontStyles, toast, useStorage };
32
92
 
33
- // Stores
34
- export { useAuthStore } from "./stores/authStore.js";
35
- export { useAccountStore } from "./stores/accountStore.js";
36
-
37
- // Styles
38
- export { fontFamilies, fontStyles } from "./styles/fonts.js";
39
-
40
- // Toast
41
- export { toast } from '../lib/sonner';
42
-
43
- // Error handler utilities
93
+ // Export error handler utilities (pure functions, no conditional needed)
44
94
  export { handleAuthError, isInvalidSessionError, isTimeoutOrNetworkError, extractErrorMessage } from "./utils/errorHandlers.js";
95
+
96
+ // Export useStorage hook and types (kept for external consumers)
45
97
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["default","OxyProvider","OxySignInButton","OxyLogo","Avatar","FollowButton","OxyPayButton","FontLoader","setupFonts","OxyIcon","useOxy","useAuth","useFollow","useStorage","ProfileScreen","useAuthStore","useAccountStore","fontFamilies","fontStyles","toast","handleAuthError","isInvalidSessionError","isTimeoutOrNetworkError","extractErrorMessage"],"sourceRoot":"../../../src","sources":["ui/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,SAASA,OAAO,IAAIC,WAAW,QAAQ,6BAA0B;AACjE,SAASD,OAAO,IAAIE,eAAe,QAAQ,iCAA8B;AACzE,SAASF,OAAO,IAAIG,OAAO,QAAQ,yBAAsB;AACzD,SAASH,OAAO,IAAII,MAAM,QAAQ,wBAAqB;AACvD,SAASJ,OAAO,IAAIK,YAAY,QAAQ,8BAA2B;AACnE,SAASL,OAAO,IAAIM,YAAY,QAAQ,8BAA2B;AACnE,SAASC,UAAU,EAAEC,UAAU,QAAQ,4BAAyB;AAChE,SAASC,OAAO,QAAQ,4BAAmB;;AAE3C;AACA,SAASC,MAAM,QAAQ,yBAAsB;;AAE7C;AACA,SAASC,OAAO,QAAQ,oBAAiB;AAEzC,SAASC,SAAS,QAAQ,kBAAS;AACnC,SAASC,UAAU,QAAQ,uBAAoB;AAG/C;AACA,SAASb,OAAO,IAAIc,aAAa,QAAQ,4BAAyB;;AAElE;AACA,SAASC,YAAY,QAAQ,uBAAoB;AACjD,SAASC,eAAe,QAAQ,0BAAuB;;AAEvD;AACA,SAASC,YAAY,EAAEC,UAAU,QAAQ,mBAAgB;;AAEzD;AACA,SAASC,KAAK,QAAQ,eAAe;;AAErC;AACA,SACEC,eAAe,EACfC,qBAAqB,EACrBC,uBAAuB,EACvBC,mBAAmB,QACd,0BAAuB","ignoreList":[]}
1
+ {"version":3,"names":["isFrontend","OxyProvider","OxySignInButton","OxyLogo","Avatar","FollowButton","OxyPayButton","FontLoader","setupFonts","OxyIcon","useOxy","useAuth","useFollow","ProfileScreen","useAuthStore","useAccountStore","fontFamilies","fontStyles","toast","useStorage","require","default","noopComponent","noopHook","noopStorageResult","storage","isReady","handleAuthError","isInvalidSessionError","isTimeoutOrNetworkError","extractErrorMessage"],"sourceRoot":"../../../src","sources":["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iB;AACtC;AAEA,SACEvB,WAAW,EACXC,eAAe,EACfC,OAAO,EACPC,MAAM,EACNC,YAAY,EACZC,YAAY,EACZC,UAAU,EACVC,UAAU,EACVC,OAAO,EACPC,MAAM,EACNC,OAAO,EACPC,SAAS,EACTC,aAAa,EACbC,YAAY,EACZC,eAAe,EACfC,YAAY,EACZC,UAAU,EACVC,KAAK,EACLC,UAAU;;AAIZ;AACA,SACEQ,eAAe,EACfC,qBAAqB,EACrBC,uBAAuB,EACvBC,mBAAmB,QACd,0BAAuB;;AAG9B","ignoreList":[]}
@@ -39,8 +39,7 @@ export type { ViewMode, SortBy, SortOrder } from './ui/hooks/useFileFiltering';
39
39
  export { default as Avatar } from './ui/components/Avatar';
40
40
  export type { AvatarProps } from './ui/components/Avatar';
41
41
  export { OxySignInButton } from './ui/components/OxySignInButton';
42
- export { default as OxyLogo } from './ui/components/OxyLogo';
43
- export { default as FollowButton } from './ui/components/FollowButton';
42
+ export { OxyLogo, FollowButton } from './ui';
44
43
  export { showBottomSheet, closeBottomSheet } from './ui/navigation/bottomSheetManager';
45
44
  export type { RouteName } from './ui/navigation/routes';
46
45
  export { showSignInModal, hideSignInModal } from './ui/components/SignInModal';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAUH,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGhF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAGrE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAGxD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EACL,aAAa,EACb,SA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B,EAAE,MAAM,oCAAoC,CAAC;AACvF,YAAY,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGxD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAG/E,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC"}
@@ -74,4 +74,5 @@ export interface UseAuthReturn extends AuthState, AuthActions {
74
74
  * - Type-safe: Full TypeScript support
75
75
  */
76
76
  export declare function useAuth(): UseAuthReturn;
77
+ export { useOxy } from '../context/OxyContext';
77
78
  //# sourceMappingURL=useAuth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/useAuth.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGxC,MAAM,WAAW,SAAS;IACxB,4DAA4D;IAC5D,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAElB,oCAAoC;IACpC,eAAe,EAAE,OAAO,CAAC;IAEzB,4DAA4D;IAC5D,SAAS,EAAE,OAAO,CAAC;IAEnB,oDAAoD;IACpD,OAAO,EAAE,OAAO,CAAC;IAEjB,oCAAoC;IACpC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,MAAM,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9C;;OAEG;IACH,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAE7B;;OAEG;IACH,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhC;;OAEG;IACH,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;A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B;AAED,MAAM,WAAW,aAAc,SAAQ,SAAS,EAAE,WAAW;IAC3D,6DAA6D;IAC7D,WAAW,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC;IACtD,4EAA4E;IAC5E,eAAe,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC,iBAAiB,CAAC,CAAC;IAC9D,0CAA0C;IAC1C,gBAAgB,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC,kBAAkB,CAAC,CAAC;CACjE;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,IAAI,aAAa,CAwHvC;AAGD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC"}
@@ -1,31 +1,24 @@
1
- /**
2
- * UI Component exports
3
- *
4
- * This is a React Native / Expo SDK — all exports are static imports.
5
- * For SSR environments, use '@oxyhq/services/ui/server' instead.
6
- *
7
- * @example
8
- * import { OxyProvider, useOxy, Avatar } from '@oxyhq/services/ui';
9
- */
10
- export { default as OxyProvider } from './components/OxyProvider';
11
- export { default as OxySignInButton } from './components/OxySignInButton';
12
- export { default as OxyLogo } from './components/OxyLogo';
13
- export { default as Avatar } from './components/Avatar';
14
- export { default as FollowButton } from './components/FollowButton';
15
- export { default as OxyPayButton } from './components/OxyPayButton';
16
- export { FontLoader, setupFonts } from './components/FontLoader';
17
- export { OxyIcon } from './components/icon';
18
- export { useOxy } from './context/OxyContext';
19
- export { useAuth } from './hooks/useAuth';
20
- export type { AuthState, AuthActions, UseAuthReturn } from './hooks/useAuth';
21
- export { useFollow } from './hooks';
22
- export { useStorage } from './hooks/useStorage';
23
- export type { UseStorageOptions, UseStorageResult } from './hooks/useStorage';
24
- export { default as ProfileScreen } from './screens/ProfileScreen';
25
- export { useAuthStore } from './stores/authStore';
26
- export { useAccountStore } from './stores/accountStore';
27
- export { fontFamilies, fontStyles } from './styles/fonts';
28
- export { toast } from '../lib/sonner';
1
+ declare let OxyProvider: any;
2
+ declare let OxySignInButton: any;
3
+ declare let OxyLogo: any;
4
+ declare let Avatar: any;
5
+ declare let FollowButton: any;
6
+ declare let OxyPayButton: any;
7
+ declare let FontLoader: any;
8
+ declare let setupFonts: any;
9
+ declare let OxyIcon: any;
10
+ declare let useOxy: any;
11
+ declare let useAuth: any;
12
+ declare let useFollow: any;
13
+ declare let ProfileScreen: any;
14
+ declare let useAuthStore: any;
15
+ declare let useAccountStore: any;
16
+ declare let fontFamilies: any;
17
+ declare let fontStyles: any;
18
+ declare let toast: any;
19
+ declare let useStorage: any;
20
+ export { OxyProvider, OxySignInButton, OxyLogo, Avatar, FollowButton, OxyPayButton, FontLoader, setupFonts, OxyIcon, useOxy, useAuth, useFollow, ProfileScreen, useAuthStore, useAccountStore, fontFamilies, fontStyles, toast, useStorage, };
29
21
  export { handleAuthError, isInvalidSessionError, isTimeoutOrNetworkError, extractErrorMessage, } from './utils/errorHandlers';
30
22
  export type { HandleAuthErrorOptions } from './utils/errorHandlers';
23
+ export type { UseStorageOptions, UseStorageResult } from './hooks/useStorage';
31
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAA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M,KAAA,CAAC;AACX,QAAA,IAAI,OAAO,KAAA,CAAC;AACZ,QAAA,IAAI,SAAS,KAAA,CAAC;AACd,QAAA,IAAI,aAAa,KAAA,CAAC;AAClB,QAAA,IAAI,YAAY,KAAA,CAAC;AACjB,QAAA,IAAI,eAAe,KAAA,CAAC;AACpB,QAAA,IAAI,YAAY,KAAA,CAAC;AACjB,QAAA,IAAI,UAAU,KAAA,CAAC;AACf,QAAA,IAAI,KAAK,KAAA,CAAC;AACV,QAAA,IAAI,UAAU,KAAA,CAAC;AAiDf,OAAO,EACL,WAAW,EACX,eAAe,EACf,OAAO,EACP,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACN,OAAO,EACP,SAAS,EACT,aAAa,EACb,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,UAAU,EACV,KAAK,EACL,UAAU,GACX,CAAC;AAIF,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAGpE,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -39,8 +39,7 @@ export type { ViewMode, SortBy, SortOrder } from './ui/hooks/useFileFiltering';
39
39
  export { default as Avatar } from './ui/components/Avatar';
40
40
  export type { AvatarProps } from './ui/components/Avatar';
41
41
  export { OxySignInButton } from './ui/components/OxySignInButton';
42
- export { default as OxyLogo } from './ui/components/OxyLogo';
43
- export { default as FollowButton } from './ui/components/FollowButton';
42
+ export { OxyLogo, FollowButton } from './ui';
44
43
  export { showBottomSheet, closeBottomSheet } from './ui/navigation/bottomSheetManager';
45
44
  export type { RouteName } from './ui/navigation/routes';
46
45
  export { showSignInModal, hideSignInModal } from './ui/components/SignInModal';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["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AE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAG/E,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC3D,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAG7C,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACvF,YAAY,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGxD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAG/E,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC"}
@@ -74,4 +74,5 @@ export interface UseAuthReturn extends AuthState, AuthActions {
74
74
  * - Type-safe: Full TypeScript support
75
75
  */
76
76
  export declare function useAuth(): UseAuthReturn;
77
+ export { useOxy } from '../context/OxyContext';
77
78
  //# sourceMappingURL=useAuth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/useAuth.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGxC,MAAM,WAAW,SAAS;IACxB,4DAA4D;IAC5D,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAElB,oCAAoC;IACpC,eAAe,EAAE,OAAO,CAAC;IAEzB,4DAA4D;IAC5D,SAAS,EAAE,OAAO,CAAC;IAEnB,o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B,oDAAoD;IACpD,OAAO,EAAE,OAAO,CAAC;IAEjB,oCAAoC;IACpC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,MAAM,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9C;;OAEG;IACH,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAE7B;;OAEG;IACH,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhC;;OAEG;IACH,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,aAAc,SAAQ,SAAS,EAAE,WAAW;IAC3D,6DAA6D;IAC7D,WAAW,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC;IACtD,4EAA4E;IAC5E,eAAe,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC,iBAAiB,CAAC,CAAC;IAC9D,0CAA0C;IAC1C,gBAAgB,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC,kBAAkB,CAAC,CAAC;CACjE;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,IAAI,aAAa,CAwHvC;AAGD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC"}
@@ -1,31 +1,24 @@
1
- /**
2
- * UI Component exports
3
- *
4
- * This is a React Native / Expo SDK — all exports are static imports.
5
- * For SSR environments, use '@oxyhq/services/ui/server' instead.
6
- *
7
- * @example
8
- * import { OxyProvider, useOxy, Avatar } from '@oxyhq/services/ui';
9
- */
10
- export { default as OxyProvider } from './components/OxyProvider';
11
- export { default as OxySignInButton } from './components/OxySignInButton';
12
- export { default as OxyLogo } from './components/OxyLogo';
13
- export { default as Avatar } from './components/Avatar';
14
- export { default as FollowButton } from './components/FollowButton';
15
- export { default as OxyPayButton } from './components/OxyPayButton';
16
- export { FontLoader, setupFonts } from './components/FontLoader';
17
- export { OxyIcon } from './components/icon';
18
- export { useOxy } from './context/OxyContext';
19
- export { useAuth } from './hooks/useAuth';
20
- export type { AuthState, AuthActions, UseAuthReturn } from './hooks/useAuth';
21
- export { useFollow } from './hooks';
22
- export { useStorage } from './hooks/useStorage';
23
- export type { UseStorageOptions, UseStorageResult } from './hooks/useStorage';
24
- export { default as ProfileScreen } from './screens/ProfileScreen';
25
- export { useAuthStore } from './stores/authStore';
26
- export { useAccountStore } from './stores/accountStore';
27
- export { fontFamilies, fontStyles } from './styles/fonts';
28
- export { toast } from '../lib/sonner';
1
+ declare let OxyProvider: any;
2
+ declare let OxySignInButton: any;
3
+ declare let OxyLogo: any;
4
+ declare let Avatar: any;
5
+ declare let FollowButton: any;
6
+ declare let OxyPayButton: any;
7
+ declare let FontLoader: any;
8
+ declare let setupFonts: any;
9
+ declare let OxyIcon: any;
10
+ declare let useOxy: any;
11
+ declare let useAuth: any;
12
+ declare let useFollow: any;
13
+ declare let ProfileScreen: any;
14
+ declare let useAuthStore: any;
15
+ declare let useAccountStore: any;
16
+ declare let fontFamilies: any;
17
+ declare let fontStyles: any;
18
+ declare let toast: any;
19
+ declare let useStorage: any;
20
+ export { OxyProvider, OxySignInButton, OxyLogo, Avatar, FollowButton, OxyPayButton, FontLoader, setupFonts, OxyIcon, useOxy, useAuth, useFollow, ProfileScreen, useAuthStore, useAccountStore, fontFamilies, fontStyles, toast, useStorage, };
29
21
  export { handleAuthError, isInvalidSessionError, isTimeoutOrNetworkError, extractErrorMessage, } from './utils/errorHandlers';
30
22
  export type { HandleAuthErrorOptions } from './utils/errorHandlers';
23
+ export type { UseStorageOptions, UseStorageResult } from './hooks/useStorage';
31
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAA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,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/index.ts"],"names":[],"mappings":"AAqBA,QAAA,IAAI,WAAW,KAAA,CAAC;AAChB,QAAA,IAAI,eAAe,KAAA,CAAC;AACpB,QAAA,IAAI,OAAO,KAAA,CAAC;AACZ,QAAA,IAAI,MAAM,KAAA,CAAC;AACX,QAAA,IAAI,YAAY,KAAA,CAAC;AACjB,QAAA,IAAI,YAAY,KAAA,CAAC;AACjB,QAAA,IAAI,UAAU,KAAA,CAAC;AACf,QAAA,IAAI,UAAU,KAAA,CAAC;AACf,QAAA,IAAI,OAAO,KAAA,CAAC;AACZ,QAAA,IAAI,MAAM,KAAA,CAAC;AACX,QAAA,IAAI,OAAO,KAAA,CAAC;AACZ,QAAA,IAAI,SAAS,KAAA,CAAC;AACd,QAAA,IAAI,aAAa,KAAA,CAAC;AAClB,QAAA,IAAI,YAAY,KAAA,CAAC;AACjB,QAAA,IAAI,eAAe,KAAA,CAAC;AACpB,QAAA,IAAI,YAAY,KAAA,CAAC;AACjB,QAAA,IAAI,UAAU,KAAA,CAAC;AACf,QAAA,IAAI,KAAK,KAAA,CAAC;AACV,QAAA,IAAI,UAAU,KAAA,CAAC;AAiDf,OAAO,EACL,WAAW,EACX,eAAe,EACf,OAAO,EACP,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACN,OAAO,EACP,SAAS,EACT,aAAa,EACb,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,UAAU,EACV,KAAK,EACL,UAAU,GACX,CAAC;AAIF,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAGpE,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxyhq/services",
3
- "version": "6.9.19",
3
+ "version": "6.9.20",
4
4
  "description": "OxyHQ Expo/React Native SDK — UI components, screens, and native features",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -19,6 +19,13 @@
19
19
  "require": "./lib/commonjs/index.js",
20
20
  "default": "./lib/module/index.js"
21
21
  },
22
+ "./ui": {
23
+ "types": "./lib/typescript/module/ui/index.d.ts",
24
+ "react-native": "./src/ui/index.ts",
25
+ "import": "./lib/module/ui/index.js",
26
+ "require": "./lib/commonjs/ui/index.js",
27
+ "default": "./lib/module/ui/index.js"
28
+ },
22
29
  "./package.json": "./package.json"
23
30
  },
24
31
  "files": [
@@ -68,6 +75,7 @@
68
75
  "@oxyhq/core": "*",
69
76
  "@react-native-async-storage/async-storage": "2.2.0",
70
77
  "@react-native-community/netinfo": "^11.4.1",
78
+ "@tanstack/react-query": "^5.90.20",
71
79
  "@types/react": "*",
72
80
  "copyfiles": "^2.4.1",
73
81
  "expo-blur": "~55.0.8",
@@ -127,8 +135,7 @@
127
135
  "react-native-gesture-handler": "~2.30.0",
128
136
  "react-native-reanimated": ">=4.2.0",
129
137
  "react-native-safe-area-context": "~5.6.0",
130
- "react-native-svg": ">=13.0.0",
131
- "@tanstack/react-query": ">=5.0.0"
138
+ "react-native-svg": ">=13.0.0"
132
139
  },
133
140
  "peerDependenciesMeta": {
134
141
  "@expo/vector-icons": {
package/src/index.ts CHANGED
@@ -95,8 +95,7 @@ export type { ViewMode, SortBy, SortOrder } from './ui/hooks/useFileFiltering';
95
95
  export { default as Avatar } from './ui/components/Avatar';
96
96
  export type { AvatarProps } from './ui/components/Avatar';
97
97
  export { OxySignInButton } from './ui/components/OxySignInButton';
98
- export { default as OxyLogo } from './ui/components/OxyLogo';
99
- export { default as FollowButton } from './ui/components/FollowButton';
98
+ export { OxyLogo, FollowButton } from './ui';
100
99
 
101
100
  // Bottom sheet navigation
102
101
  export { showBottomSheet, closeBottomSheet } from './ui/navigation/bottomSheetManager';
@@ -209,3 +209,5 @@ export function useAuth(): UseAuthReturn {
209
209
  };
210
210
  }
211
211
 
212
+ // Re-export useOxy for backward compatibility and advanced usage
213
+ export { useOxy } from '../context/OxyContext';
package/src/ui/index.ts CHANGED
@@ -1,47 +1,115 @@
1
1
  /**
2
- * UI Component exports
2
+ * UI Component exports - Frontend Only (with backend-safe fallbacks)
3
3
  *
4
- * This is a React Native / Expo SDK — all exports are static imports.
5
- * For SSR environments, use '@oxyhq/services/ui/server' instead.
4
+ * This module exports all React/React Native UI components and hooks.
5
+ * In backend, all exports are no-ops or empty objects.
6
+ *
7
+ * NOTE: This entry point uses runtime detection which prevents tree-shaking.
8
+ * For better bundle optimization, use:
9
+ * - '@oxyhq/services/ui/client' for client bundles (tree-shakeable)
10
+ * - '@oxyhq/services/ui/server' for SSR environments (all noops)
6
11
  *
7
12
  * @example
8
- * import { OxyProvider, useOxy, Avatar } from '@oxyhq/services/ui';
13
+ * // Client bundle (tree-shakeable)
14
+ * import { OxyProvider, useOxy } from '@oxyhq/services/ui/client';
15
+ *
16
+ * // SSR (noops)
17
+ * import { OxyProvider, useOxy } from '@oxyhq/services/ui/server';
9
18
  */
19
+ import isFrontend from './isFrontend';
10
20
 
11
- // Components
12
- export { default as OxyProvider } from './components/OxyProvider';
13
- export { default as OxySignInButton } from './components/OxySignInButton';
14
- export { default as OxyLogo } from './components/OxyLogo';
15
- export { default as Avatar } from './components/Avatar';
16
- export { default as FollowButton } from './components/FollowButton';
17
- export { default as OxyPayButton } from './components/OxyPayButton';
18
- export { FontLoader, setupFonts } from './components/FontLoader';
19
- export { OxyIcon } from './components/icon';
20
-
21
- // Context
22
- export { useOxy } from './context/OxyContext';
23
-
24
- // Hooks
25
- export { useAuth } from './hooks/useAuth';
26
- export type { AuthState, AuthActions, UseAuthReturn } from './hooks/useAuth';
27
- export { useFollow } from './hooks';
28
- export { useStorage } from './hooks/useStorage';
29
- export type { UseStorageOptions, UseStorageResult } from './hooks/useStorage';
21
+ // UI exports
22
+ let OxyProvider;
23
+ let OxySignInButton;
24
+ let OxyLogo;
25
+ let Avatar;
26
+ let FollowButton;
27
+ let OxyPayButton;
28
+ let FontLoader;
29
+ let setupFonts;
30
+ let OxyIcon;
31
+ let useOxy;
32
+ let useAuth;
33
+ let useFollow;
34
+ let ProfileScreen;
35
+ let useAuthStore;
36
+ let useAccountStore;
37
+ let fontFamilies;
38
+ let fontStyles;
39
+ let toast;
40
+ let useStorage;
30
41
 
31
- // Screens
32
- export { default as ProfileScreen } from './screens/ProfileScreen';
42
+ if (isFrontend) {
43
+ OxyProvider = require('./components/OxyProvider').default;
44
+ OxySignInButton = require('./components/OxySignInButton').default;
45
+ OxyLogo = require('./components/OxyLogo').default;
46
+ Avatar = require('./components/Avatar').default;
47
+ FollowButton = require('./components/FollowButton').default;
48
+ OxyPayButton = require('./components/OxyPayButton').default;
49
+ FontLoader = require('./components/FontLoader').FontLoader;
50
+ setupFonts = require('./components/FontLoader').setupFonts;
51
+ OxyIcon = require('./components/icon').OxyIcon;
52
+ useOxy = require('./context/OxyContext').useOxy;
53
+ useAuth = require('./hooks/useAuth').useAuth;
54
+ useFollow = require('./hooks').useFollow;
55
+ ProfileScreen = require('./screens/ProfileScreen').default;
56
+ useAuthStore = require('./stores/authStore').useAuthStore;
57
+ useAccountStore = require('./stores/accountStore').useAccountStore;
58
+ fontFamilies = require('./styles/fonts').fontFamilies;
59
+ fontStyles = require('./styles/fonts').fontStyles;
60
+ toast = require('../lib/sonner').toast;
61
+ useStorage = require('./hooks/useStorage').useStorage;
62
+ } else {
63
+ // Backend: no-op fallbacks
64
+ const noopComponent = () => null;
65
+ const noopHook = () => ({});
66
+ const noopStorageResult = { storage: null, isReady: false };
33
67
 
34
- // Stores
35
- export { useAuthStore } from './stores/authStore';
36
- export { useAccountStore } from './stores/accountStore';
68
+ OxyProvider = noopComponent;
69
+ OxySignInButton = noopComponent;
70
+ OxyLogo = noopComponent;
71
+ Avatar = noopComponent;
72
+ FollowButton = noopComponent;
73
+ OxyPayButton = noopComponent;
74
+ FontLoader = noopComponent;
75
+ setupFonts = () => {};
76
+ OxyIcon = noopComponent;
77
+ useOxy = noopHook;
78
+ useAuth = noopHook;
79
+ useFollow = noopHook;
80
+ ProfileScreen = noopComponent;
81
+ useAuthStore = noopHook;
82
+ useAccountStore = noopHook;
83
+ fontFamilies = {};
84
+ fontStyles = {};
85
+ toast = () => {};
86
+ useStorage = () => noopStorageResult;
87
+ }
37
88
 
38
- // Styles
39
- export { fontFamilies, fontStyles } from './styles/fonts';
89
+ export {
90
+ OxyProvider,
91
+ OxySignInButton,
92
+ OxyLogo,
93
+ Avatar,
94
+ FollowButton,
95
+ OxyPayButton,
96
+ FontLoader,
97
+ setupFonts,
98
+ OxyIcon,
99
+ useOxy,
100
+ useAuth,
101
+ useFollow,
102
+ ProfileScreen,
103
+ useAuthStore,
104
+ useAccountStore,
105
+ fontFamilies,
106
+ fontStyles,
107
+ toast,
108
+ useStorage,
109
+ };
40
110
 
41
- // Toast
42
- export { toast } from '../lib/sonner';
43
111
 
44
- // Error handler utilities
112
+ // Export error handler utilities (pure functions, no conditional needed)
45
113
  export {
46
114
  handleAuthError,
47
115
  isInvalidSessionError,
@@ -49,3 +117,6 @@ export {
49
117
  extractErrorMessage,
50
118
  } from './utils/errorHandlers';
51
119
  export type { HandleAuthErrorOptions } from './utils/errorHandlers';
120
+
121
+ // Export useStorage hook and types (kept for external consumers)
122
+ export type { UseStorageOptions, UseStorageResult } from './hooks/useStorage';