@oxyhq/services 5.18.2 → 5.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/core/mixins/index.js +36 -13
- package/lib/commonjs/core/mixins/index.js.map +1 -1
- package/lib/commonjs/index.js +8 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/client.js +170 -0
- package/lib/commonjs/ui/client.js.map +1 -0
- package/lib/commonjs/ui/components/profile/EditFieldModal.js +412 -0
- package/lib/commonjs/ui/components/profile/EditFieldModal.js.map +1 -0
- package/lib/commonjs/ui/context/OxyContext.js +63 -1
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAuth.js +115 -0
- package/lib/commonjs/ui/hooks/useAuth.js.map +1 -0
- package/lib/commonjs/ui/hooks/useSettingToggle.js +7 -1
- package/lib/commonjs/ui/hooks/useSettingToggle.js.map +1 -1
- package/lib/commonjs/ui/hooks/useWebSSO.js +75 -0
- package/lib/commonjs/ui/hooks/useWebSSO.js.map +1 -0
- package/lib/commonjs/ui/index.js +17 -2
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +59 -65
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +38 -58
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/server.js +105 -0
- package/lib/commonjs/ui/server.js.map +1 -0
- package/lib/commonjs/ui/utils/iconNames.js +133 -0
- package/lib/commonjs/ui/utils/iconNames.js.map +1 -0
- package/lib/commonjs/ui/utils/sessionHelpers.js +7 -0
- package/lib/commonjs/ui/utils/sessionHelpers.js.map +1 -1
- package/lib/commonjs/utils/requestUtils.js +4 -3
- package/lib/commonjs/utils/requestUtils.js.map +1 -1
- package/lib/module/core/mixins/index.js +36 -13
- package/lib/module/core/mixins/index.js.map +1 -1
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/client.js +47 -0
- package/lib/module/ui/client.js.map +1 -0
- package/lib/module/ui/components/profile/EditFieldModal.js +406 -0
- package/lib/module/ui/components/profile/EditFieldModal.js.map +1 -0
- package/lib/module/ui/context/OxyContext.js +63 -1
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/hooks/useAuth.js +106 -0
- package/lib/module/ui/hooks/useAuth.js.map +1 -0
- package/lib/module/ui/hooks/useSettingToggle.js +7 -1
- package/lib/module/ui/hooks/useSettingToggle.js.map +1 -1
- package/lib/module/ui/hooks/useWebSSO.js +71 -0
- package/lib/module/ui/hooks/useWebSSO.js.map +1 -0
- package/lib/module/ui/index.js +17 -3
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +59 -65
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +39 -59
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/server.js +65 -0
- package/lib/module/ui/server.js.map +1 -0
- package/lib/module/ui/utils/iconNames.js +124 -0
- package/lib/module/ui/utils/iconNames.js.map +1 -0
- package/lib/module/ui/utils/sessionHelpers.js +7 -0
- package/lib/module/ui/utils/sessionHelpers.js.map +1 -1
- package/lib/module/utils/requestUtils.js +4 -2
- package/lib/module/utils/requestUtils.js.map +1 -1
- package/lib/typescript/commonjs/core/mixins/index.d.ts +18 -1115
- package/lib/typescript/commonjs/core/mixins/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +2 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/client.d.ts +33 -0
- package/lib/typescript/commonjs/ui/client.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/profile/EditFieldModal.d.ts +110 -0
- package/lib/typescript/commonjs/ui/components/profile/EditFieldModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +3 -0
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +3 -3
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts +6 -10
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts +3 -5
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts +69 -0
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useSettingToggle.d.ts +4 -2
- package/lib/typescript/commonjs/ui/hooks/useSettingToggle.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useWebSSO.d.ts +34 -0
- package/lib/typescript/commonjs/ui/hooks/useWebSSO.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/index.d.ts +2 -2
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/server.d.ts +43 -0
- package/lib/typescript/commonjs/ui/server.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/iconNames.d.ts +112 -0
- package/lib/typescript/commonjs/ui/utils/iconNames.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/sessionHelpers.d.ts +8 -3
- package/lib/typescript/commonjs/ui/utils/sessionHelpers.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/requestUtils.d.ts +3 -1
- package/lib/typescript/commonjs/utils/requestUtils.d.ts.map +1 -1
- package/lib/typescript/module/core/mixins/index.d.ts +18 -1115
- package/lib/typescript/module/core/mixins/index.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +2 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/client.d.ts +33 -0
- package/lib/typescript/module/ui/client.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/profile/EditFieldModal.d.ts +110 -0
- package/lib/typescript/module/ui/components/profile/EditFieldModal.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/OxyContext.d.ts +3 -0
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +3 -3
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts +6 -10
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts +3 -5
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAssets.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/useAuth.d.ts +69 -0
- package/lib/typescript/module/ui/hooks/useAuth.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useSettingToggle.d.ts +4 -2
- package/lib/typescript/module/ui/hooks/useSettingToggle.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useWebSSO.d.ts +34 -0
- package/lib/typescript/module/ui/hooks/useWebSSO.d.ts.map +1 -0
- package/lib/typescript/module/ui/index.d.ts +2 -2
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/server.d.ts +43 -0
- package/lib/typescript/module/ui/server.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/iconNames.d.ts +112 -0
- package/lib/typescript/module/ui/utils/iconNames.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/sessionHelpers.d.ts +8 -3
- package/lib/typescript/module/ui/utils/sessionHelpers.d.ts.map +1 -1
- package/lib/typescript/module/utils/requestUtils.d.ts +3 -1
- package/lib/typescript/module/utils/requestUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/core/mixins/index.ts +57 -43
- package/src/index.ts +3 -1
- package/src/ui/client.ts +55 -0
- package/src/ui/components/profile/EditFieldModal.tsx +465 -0
- package/src/ui/context/OxyContext.tsx +69 -0
- package/src/ui/hooks/useAuth.ts +159 -0
- package/src/ui/hooks/useSettingToggle.ts +7 -3
- package/src/ui/hooks/useWebSSO.ts +93 -0
- package/src/ui/index.ts +17 -2
- package/src/ui/screens/PrivacySettingsScreen.tsx +54 -63
- package/src/ui/screens/SearchSettingsScreen.tsx +42 -64
- package/src/ui/server.ts +70 -0
- package/src/ui/utils/iconNames.ts +136 -0
- package/src/ui/utils/sessionHelpers.ts +10 -3
- package/src/utils/requestUtils.ts +10 -7
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.MIXIN_PIPELINE = void 0;
|
|
6
7
|
exports.composeOxyServices = composeOxyServices;
|
|
7
8
|
var _OxyServicesBase = require("../OxyServices.base.js");
|
|
8
9
|
var _OxyServicesAuth = require("./OxyServices.auth.js");
|
|
@@ -24,29 +25,51 @@ var _OxyServicesUtility = require("./OxyServices.utility.js");
|
|
|
24
25
|
var _OxyServicesFeatures = require("./OxyServices.features.js");
|
|
25
26
|
/**
|
|
26
27
|
* Centralized mixin exports and composition helper
|
|
27
|
-
*
|
|
28
|
+
*
|
|
28
29
|
* This module provides a clean way to compose all mixins
|
|
29
30
|
* and ensures consistent ordering for better maintainability
|
|
30
31
|
*/
|
|
31
32
|
|
|
33
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
34
|
+
|
|
32
35
|
/**
|
|
33
|
-
*
|
|
36
|
+
* Mixin pipeline - applied in order from first to last.
|
|
34
37
|
*
|
|
35
|
-
* Order matters for
|
|
36
|
-
*
|
|
38
|
+
* Order matters for dependencies:
|
|
39
|
+
* 1. Base auth mixin first (required by all others)
|
|
40
|
+
* 2. Cross-domain auth mixins (FedCM, Popup, Redirect)
|
|
41
|
+
* 3. User mixin (requires auth)
|
|
42
|
+
* 4. Feature mixins (can depend on user)
|
|
43
|
+
* 5. Utility mixin last (augments all)
|
|
37
44
|
*
|
|
38
|
-
*
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
45
|
+
* To add a new mixin: insert it at the appropriate position in this array.
|
|
46
|
+
*/
|
|
47
|
+
const MIXIN_PIPELINE = exports.MIXIN_PIPELINE = [
|
|
48
|
+
// Base authentication
|
|
49
|
+
_OxyServicesAuth.OxyServicesAuthMixin,
|
|
50
|
+
// Cross-domain authentication (web-only)
|
|
51
|
+
// - FedCM: Modern browser-native identity federation (Google-style)
|
|
52
|
+
// - Popup: OAuth2-style popup authentication
|
|
53
|
+
// - Redirect: Traditional redirect-based authentication
|
|
54
|
+
_OxyServicesFedcm.OxyServicesFedCMMixin, _OxyServicesPopup.OxyServicesPopupAuthMixin, _OxyServicesRedirect.OxyServicesRedirectAuthMixin,
|
|
55
|
+
// User management (requires auth)
|
|
56
|
+
_OxyServicesUser.OxyServicesUserMixin, _OxyServicesPrivacy.OxyServicesPrivacyMixin,
|
|
57
|
+
// Feature mixins
|
|
58
|
+
_OxyServicesLanguage.OxyServicesLanguageMixin, _OxyServicesPayment.OxyServicesPaymentMixin, _OxyServicesKarma.OxyServicesKarmaMixin, _OxyServicesAssets.OxyServicesAssetsMixin, _OxyServicesDeveloper.OxyServicesDeveloperMixin, _OxyServicesLocation.OxyServicesLocationMixin, _OxyServicesAnalytics.OxyServicesAnalyticsMixin, _OxyServicesDevices.OxyServicesDevicesMixin, _OxyServicesSecurity.OxyServicesSecurityMixin, _OxyServicesFeatures.OxyServicesFeaturesMixin,
|
|
59
|
+
// Utility (last, can use all above)
|
|
60
|
+
_OxyServicesUtility.OxyServicesUtilityMixin];
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Composes all OxyServices mixins using a pipeline pattern.
|
|
64
|
+
*
|
|
65
|
+
* This is equivalent to the nested calls but more readable and maintainable.
|
|
66
|
+
* Adding a new mixin: just add it to MIXIN_PIPELINE at the appropriate position.
|
|
42
67
|
*
|
|
43
68
|
* @returns The fully composed OxyServices class with all mixins applied
|
|
44
69
|
*/
|
|
45
70
|
function composeOxyServices() {
|
|
46
|
-
return
|
|
47
|
-
// Cross-domain authentication mixins (web-only)
|
|
48
|
-
(0, _OxyServicesRedirect.OxyServicesRedirectAuthMixin)((0, _OxyServicesPopup.OxyServicesPopupAuthMixin)((0, _OxyServicesFedcm.OxyServicesFedCMMixin)(
|
|
49
|
-
// Base authentication mixin
|
|
50
|
-
(0, _OxyServicesAuth.OxyServicesAuthMixin)(_OxyServicesBase.OxyServicesBase)))))))))))))))));
|
|
71
|
+
return MIXIN_PIPELINE.reduce((Base, mixin) => mixin(Base), _OxyServicesBase.OxyServicesBase);
|
|
51
72
|
}
|
|
73
|
+
|
|
74
|
+
// Export the pipeline for testing/debugging
|
|
52
75
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_OxyServicesBase","require","_OxyServicesAuth","_OxyServicesFedcm","_OxyServicesPopup","_OxyServicesRedirect","_OxyServicesUser","_OxyServicesPrivacy","_OxyServicesLanguage","_OxyServicesPayment","_OxyServicesKarma","_OxyServicesAssets","_OxyServicesDeveloper","_OxyServicesLocation","_OxyServicesAnalytics","_OxyServicesDevices","_OxyServicesSecurity","_OxyServicesUtility","_OxyServicesFeatures","
|
|
1
|
+
{"version":3,"names":["_OxyServicesBase","require","_OxyServicesAuth","_OxyServicesFedcm","_OxyServicesPopup","_OxyServicesRedirect","_OxyServicesUser","_OxyServicesPrivacy","_OxyServicesLanguage","_OxyServicesPayment","_OxyServicesKarma","_OxyServicesAssets","_OxyServicesDeveloper","_OxyServicesLocation","_OxyServicesAnalytics","_OxyServicesDevices","_OxyServicesSecurity","_OxyServicesUtility","_OxyServicesFeatures","MIXIN_PIPELINE","exports","OxyServicesAuthMixin","OxyServicesFedCMMixin","OxyServicesPopupAuthMixin","OxyServicesRedirectAuthMixin","OxyServicesUserMixin","OxyServicesPrivacyMixin","OxyServicesLanguageMixin","OxyServicesPaymentMixin","OxyServicesKarmaMixin","OxyServicesAssetsMixin","OxyServicesDeveloperMixin","OxyServicesLocationMixin","OxyServicesAnalyticsMixin","OxyServicesDevicesMixin","OxyServicesSecurityMixin","OxyServicesFeaturesMixin","OxyServicesUtilityMixin","composeOxyServices","reduce","Base","mixin","OxyServicesBase"],"sourceRoot":"../../../../src","sources":["core/mixins/index.ts"],"mappings":";;;;;;;AAOA,IAAAA,gBAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,mBAAA,GAAAN,OAAA;AACA,IAAAO,oBAAA,GAAAP,OAAA;AACA,IAAAQ,mBAAA,GAAAR,OAAA;AACA,IAAAS,iBAAA,GAAAT,OAAA;AACA,IAAAU,kBAAA,GAAAV,OAAA;AACA,IAAAW,qBAAA,GAAAX,OAAA;AACA,IAAAY,oBAAA,GAAAZ,OAAA;AACA,IAAAa,qBAAA,GAAAb,OAAA;AACA,IAAAc,mBAAA,GAAAd,OAAA;AACA,IAAAe,oBAAA,GAAAf,OAAA;AACA,IAAAgB,mBAAA,GAAAhB,OAAA;AACA,IAAAiB,oBAAA,GAAAjB,OAAA;AAxBA;AACA;AACA;AACA;AACA;AACA;;AAqBA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMkB,cAA+B,GAAAC,OAAA,CAAAD,cAAA,GAAG;AACpC;AACAE,qCAAoB;AAEpB;AACA;AACA;AACA;AACAC,uCAAqB,EACrBC,2CAAyB,EACzBC,iDAA4B;AAE5B;AACAC,qCAAoB,EACpBC,2CAAuB;AAEvB;AACAC,6CAAwB,EACxBC,2CAAuB,EACvBC,uCAAqB,EACrBC,yCAAsB,EACtBC,+CAAyB,EACzBC,6CAAwB,EACxBC,+CAAyB,EACzBC,2CAAuB,EACvBC,6CAAwB,EACxBC,6CAAwB;AAExB;AACAC,2CAAuB,CAC1B;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,kBAAkBA,CAAA,EAAG;EACjC,OAAOnB,cAAc,CAACoB,MAAM,CACxB,CAACC,IAAI,EAAEC,KAAK,KAAKA,KAAK,CAACD,IAAI,CAAC,EAC5BE,gCACJ,CAAC;AACL;;AAEA","ignoreList":[]}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var _exportNames = {
|
|
|
15
15
|
CrossDomainAuth: true,
|
|
16
16
|
createCrossDomainAuth: true,
|
|
17
17
|
useOxy: true,
|
|
18
|
+
useAuth: true,
|
|
18
19
|
OxyProvider: true,
|
|
19
20
|
DeviceManager: true,
|
|
20
21
|
SUPPORTED_LANGUAGES: true,
|
|
@@ -358,6 +359,12 @@ Object.defineProperty(exports, "useAssetsStore", {
|
|
|
358
359
|
return _assetStore.useAssets;
|
|
359
360
|
}
|
|
360
361
|
});
|
|
362
|
+
Object.defineProperty(exports, "useAuth", {
|
|
363
|
+
enumerable: true,
|
|
364
|
+
get: function () {
|
|
365
|
+
return _useAuth.useAuth;
|
|
366
|
+
}
|
|
367
|
+
});
|
|
361
368
|
Object.defineProperty(exports, "useAuthStore", {
|
|
362
369
|
enumerable: true,
|
|
363
370
|
get: function () {
|
|
@@ -548,6 +555,7 @@ require("./crypto/polyfill.js");
|
|
|
548
555
|
var _index = require("./crypto/index.js");
|
|
549
556
|
var _index2 = require("./core/index.js");
|
|
550
557
|
var _OxyContext = require("./ui/context/OxyContext.js");
|
|
558
|
+
var _useAuth = require("./ui/hooks/useAuth.js");
|
|
551
559
|
var _OxyProvider = _interopRequireDefault(require("./ui/components/OxyProvider.js"));
|
|
552
560
|
var _deviceManager = require("./utils/deviceManager.js");
|
|
553
561
|
var _languageUtils = require("./utils/languageUtils.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["require","_index","_index2","_OxyContext","_OxyProvider","_interopRequireDefault","_deviceManager","_languageUtils","_interfaces","_authStore","_assetStore","_useSessionSocket","_useAssets","_useFileDownloadUrl","_index3","_index4","_OxySignInButton","_index5","_apiUtils","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_errorUtils","_validationUtils","_loggerUtils","_asyncUtils","_hookUtils","e","__esModule","default"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["require","_index","_index2","_OxyContext","_useAuth","_OxyProvider","_interopRequireDefault","_deviceManager","_languageUtils","_interfaces","_authStore","_assetStore","_useSessionSocket","_useAssets","_useFileDownloadUrl","_index3","_index4","_OxySignInButton","_index5","_apiUtils","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_errorUtils","_validationUtils","_loggerUtils","_asyncUtils","_hookUtils","e","__esModule","default"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAI,WAAA,CAAAZ,GAAA;IAAA;EAAA;AAAA;AACA,IAAAa,UAAA,GAAApC,OAAA;AAAAoB,MAAA,CAAAC,IAAA,CAAAe,UAAA,EAAAd,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAa,UAAA,CAAAb,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAK,UAAA,CAAAb,GAAA;IAAA;EAAA;AAAA;AAAkC,SAAAjB,uBAAA+B,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
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, "OxyServices", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _index3.OxyServices;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "OxySignInButton", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _OxySignInButton.default;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "ProfileScreen", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _ProfileScreen.default;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "extractErrorMessage", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () {
|
|
69
|
+
return _errorHandlers.extractErrorMessage;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "fontFamilies", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () {
|
|
75
|
+
return _fonts.fontFamilies;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "fontStyles", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () {
|
|
81
|
+
return _fonts.fontStyles;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "handleAuthError", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () {
|
|
87
|
+
return _errorHandlers.handleAuthError;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "isInvalidSessionError", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () {
|
|
93
|
+
return _errorHandlers.isInvalidSessionError;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "isTimeoutOrNetworkError", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () {
|
|
99
|
+
return _errorHandlers.isTimeoutOrNetworkError;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "setupFonts", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () {
|
|
105
|
+
return _FontLoader.setupFonts;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "toast", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () {
|
|
111
|
+
return _sonner.toast;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "useAccountStore", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () {
|
|
117
|
+
return _accountStore.useAccountStore;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "useAuth", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () {
|
|
123
|
+
return _useAuth.useAuth;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(exports, "useAuthStore", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function () {
|
|
129
|
+
return _authStore.useAuthStore;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
Object.defineProperty(exports, "useFollow", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function () {
|
|
135
|
+
return _index2.useFollow;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(exports, "useOxy", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function () {
|
|
141
|
+
return _OxyContext.useOxy;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "useStorage", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function () {
|
|
147
|
+
return _useStorage.useStorage;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
var _OxyProvider = _interopRequireDefault(require("./components/OxyProvider.js"));
|
|
151
|
+
var _OxySignInButton = _interopRequireDefault(require("./components/OxySignInButton.js"));
|
|
152
|
+
var _OxyLogo = _interopRequireDefault(require("./components/OxyLogo.js"));
|
|
153
|
+
var _Avatar = _interopRequireDefault(require("./components/Avatar.js"));
|
|
154
|
+
var _FollowButton = _interopRequireDefault(require("./components/FollowButton.js"));
|
|
155
|
+
var _OxyPayButton = _interopRequireDefault(require("./components/OxyPayButton.js"));
|
|
156
|
+
var _FontLoader = require("./components/FontLoader.js");
|
|
157
|
+
var _index = require("./components/icon/index.js");
|
|
158
|
+
var _OxyContext = require("./context/OxyContext.js");
|
|
159
|
+
var _useAuth = require("./hooks/useAuth.js");
|
|
160
|
+
var _index2 = require("./hooks/index.js");
|
|
161
|
+
var _useStorage = require("./hooks/useStorage.js");
|
|
162
|
+
var _ProfileScreen = _interopRequireDefault(require("./screens/ProfileScreen.js"));
|
|
163
|
+
var _authStore = require("./stores/authStore.js");
|
|
164
|
+
var _accountStore = require("./stores/accountStore.js");
|
|
165
|
+
var _fonts = require("./styles/fonts.js");
|
|
166
|
+
var _sonner = require("../lib/sonner.js");
|
|
167
|
+
var _index3 = require("../core/index.js");
|
|
168
|
+
var _errorHandlers = require("./utils/errorHandlers.js");
|
|
169
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
170
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_OxyProvider","_interopRequireDefault","require","_OxySignInButton","_OxyLogo","_Avatar","_FollowButton","_OxyPayButton","_FontLoader","_index","_OxyContext","_useAuth","_index2","_useStorage","_ProfileScreen","_authStore","_accountStore","_fonts","_sonner","_index3","_errorHandlers","e","__esModule","default"],"sourceRoot":"../../../src","sources":["ui/client.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,OAAA,GAAAjB,OAAA;AAIA,IAAAkB,cAAA,GAAAlB,OAAA;AAK+B,SAAAD,uBAAAoB,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|