@oxy.so/services 9.0.0 → 9.2.0
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/index.js +4 -3
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/client.js +174 -0
- package/lib/commonjs/ui/client.js.map +1 -1
- package/lib/commonjs/ui/components/FollowTargetButton.js +11 -101
- package/lib/commonjs/ui/components/FollowTargetButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +2 -2
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/followRules.js +105 -0
- package/lib/commonjs/ui/components/followRules.js.map +1 -0
- package/lib/commonjs/ui/context/OxyContext.js +4 -0
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/hooks/accountQueryPersistence.js +110 -80
- package/lib/commonjs/ui/hooks/accountQueryPersistence.js.map +1 -1
- package/lib/commonjs/ui/hooks/persistedQueryCache.js +101 -0
- package/lib/commonjs/ui/hooks/persistedQueryCache.js.map +1 -0
- package/lib/commonjs/ui/hooks/queryClient.js +43 -80
- package/lib/commonjs/ui/hooks/queryClient.js.map +1 -1
- package/lib/module/index.js +3 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/client.js +17 -4
- package/lib/module/ui/client.js.map +1 -1
- package/lib/module/ui/components/FollowTargetButton.js +1 -89
- package/lib/module/ui/components/FollowTargetButton.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +2 -2
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/followRules.js +99 -0
- package/lib/module/ui/components/followRules.js.map +1 -0
- package/lib/module/ui/context/OxyContext.js +4 -0
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/hooks/accountQueryPersistence.js +109 -80
- package/lib/module/ui/hooks/accountQueryPersistence.js.map +1 -1
- package/lib/module/ui/hooks/persistedQueryCache.js +94 -0
- package/lib/module/ui/hooks/persistedQueryCache.js.map +1 -0
- package/lib/module/ui/hooks/queryClient.js +44 -81
- package/lib/module/ui/hooks/queryClient.js.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +4 -2
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/client.d.ts +19 -4
- package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/FollowTargetButton.d.ts +2 -62
- package/lib/typescript/commonjs/ui/components/FollowTargetButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/followRules.d.ts +71 -0
- package/lib/typescript/commonjs/ui/components/followRules.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/accountQueryPersistence.d.ts +31 -13
- package/lib/typescript/commonjs/ui/hooks/accountQueryPersistence.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/persistedQueryCache.d.ts +44 -0
- package/lib/typescript/commonjs/ui/hooks/persistedQueryCache.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts +15 -20
- package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/lib/typescript/module/index.d.ts +4 -2
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/client.d.ts +19 -4
- package/lib/typescript/module/ui/client.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/FollowTargetButton.d.ts +2 -62
- package/lib/typescript/module/ui/components/FollowTargetButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/followRules.d.ts +71 -0
- package/lib/typescript/module/ui/components/followRules.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/accountQueryPersistence.d.ts +31 -13
- package/lib/typescript/module/ui/hooks/accountQueryPersistence.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/persistedQueryCache.d.ts +44 -0
- package/lib/typescript/module/ui/hooks/persistedQueryCache.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queryClient.d.ts +15 -20
- package/lib/typescript/module/ui/hooks/queryClient.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/package.json +1 -1
- package/src/index.ts +3 -3
- package/src/ui/client.ts +55 -4
- package/src/ui/components/FollowTargetButton.tsx +8 -112
- package/src/ui/components/OxyProvider.tsx +2 -2
- package/src/ui/components/__tests__/followTargetButton.test.ts +1 -1
- package/src/ui/components/followRules.ts +121 -0
- package/src/ui/context/OxyContext.tsx +4 -0
- package/src/ui/hooks/accountQueryPersistence.ts +138 -91
- package/src/ui/hooks/persistedQueryCache.ts +126 -0
- package/src/ui/hooks/queryClient.ts +55 -98
package/lib/commonjs/index.js
CHANGED
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "CLEARABLE_USER_FIELDS", {
|
|
|
12
12
|
Object.defineProperty(exports, "FOLLOW_ACTION_LEAVES_ACTIVE", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function () {
|
|
15
|
-
return
|
|
15
|
+
return _followRules.FOLLOW_ACTION_LEAVES_ACTIVE;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "FollowButton", {
|
|
@@ -210,7 +210,7 @@ Object.defineProperty(exports, "UNKNOWN_FOLLOW_STATUS", {
|
|
|
210
210
|
Object.defineProperty(exports, "buildFollowMenuItems", {
|
|
211
211
|
enumerable: true,
|
|
212
212
|
get: function () {
|
|
213
|
-
return
|
|
213
|
+
return _followRules.buildFollowMenuItems;
|
|
214
214
|
}
|
|
215
215
|
});
|
|
216
216
|
Object.defineProperty(exports, "clearedFieldsFromAccountUpdate", {
|
|
@@ -390,7 +390,7 @@ Object.defineProperty(exports, "queryKeys", {
|
|
|
390
390
|
Object.defineProperty(exports, "resolveFollowPrimaryAction", {
|
|
391
391
|
enumerable: true,
|
|
392
392
|
get: function () {
|
|
393
|
-
return
|
|
393
|
+
return _followRules.resolveFollowPrimaryAction;
|
|
394
394
|
}
|
|
395
395
|
});
|
|
396
396
|
Object.defineProperty(exports, "setOxyAssetInstance", {
|
|
@@ -875,6 +875,7 @@ var _OxyConsentScreen = require("./ui/components/OxyConsentScreen.js");
|
|
|
875
875
|
var _RequireOxyAuth = require("./ui/components/RequireOxyAuth.js");
|
|
876
876
|
var _FollowButton = _interopRequireDefault(require("./ui/components/FollowButton.js"));
|
|
877
877
|
var _FollowTargetButton = require("./ui/components/FollowTargetButton.js");
|
|
878
|
+
var _followRules = require("./ui/components/followRules.js");
|
|
878
879
|
var _useFollowTarget = require("./ui/hooks/useFollowTarget.js");
|
|
879
880
|
var _followTargetStore = require("./ui/stores/followTargetStore.js");
|
|
880
881
|
var _PeableButton = _interopRequireDefault(require("./ui/components/PeableButton.js"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_core","require","_reactNative","_OxyProvider","_interopRequireDefault","_OxyContext","_index","_useAuth","_productAnalytics","_identityBinding","_authStore","_assetStore","_useAssets","_useFileDownloadUrl","_useFollow","_useStorage","_useAccountQueries","_useServicesQueries","_useSecurityQueries","_useAuthMethods","_usePaymentQueries","_useAccountMutations","_useServicesMutations","_mutationFactory","_mutationKeys","_queryKeys","_userCache","_useMutationStatus","_useOnlineStatus","_useOxyEvent","_errorHandlers","_useFileFiltering","_OxySignInButton","_oauthPopup","_OxyAuthPrompt","_OxyOAuthCallback","_OxyConsentScreen","_RequireOxyAuth","_FollowButton","_FollowTargetButton","_useFollowTarget","_followTargetStore","_PeableButton","_OxyPayButton","_LogoIcon","_LogoText","_ProfileButton","_OxySignInPanel","_OxySignUpPanel","_OxyAccountPicker","_OxyDeleteAccountPanel","_OxyLinkCommonsPanel","_OxyPasswordPanel","_OxyAuthenticatorPanel","_OxyAuthScreen","_OxySignInRequestSurface","_useDeviceSwitcher","_bottomSheetManager","_useSurfaceHeader","_SurfaceHeaderAction","_accountDialogManager","e","__esModule","default","setPlatformOS","Platform","OS"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,YAAA,GA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A,IAAAsC,mBAAA,GAAAtC,OAAA;
|
|
1
|
+
{"version":3,"names":["_core","require","_reactNative","_OxyProvider","_interopRequireDefault","_OxyContext","_index","_useAuth","_productAnalytics","_identityBinding","_authStore","_assetStore","_useAssets","_useFileDownloadUrl","_useFollow","_useStorage","_useAccountQueries","_useServicesQueries","_useSecurityQueries","_useAuthMethods","_usePaymentQueries","_useAccountMutations","_useServicesMutations","_mutationFactory","_mutationKeys","_queryKeys","_userCache","_useMutationStatus","_useOnlineStatus","_useOxyEvent","_errorHandlers","_useFileFiltering","_OxySignInButton","_oauthPopup","_OxyAuthPrompt","_OxyOAuthCallback","_OxyConsentScreen","_RequireOxyAuth","_FollowButton","_FollowTargetButton","_followRules","_useFollowTarget","_followTargetStore","_PeableButton","_OxyPayButton","_LogoIcon","_LogoText","_ProfileButton","_OxySignInPanel","_OxySignUpPanel","_OxyAccountPicker","_OxyDeleteAccountPanel","_OxyLinkCommonsPanel","_OxyPasswordPanel","_OxyAuthenticatorPanel","_OxyAuthScreen","_OxySignInRequestSurface","_useDeviceSwitcher","_bottomSheetManager","_useSurfaceHeader","_SurfaceHeaderAction","_accountDialogManager","e","__esModule","default","setPlatformOS","Platform","OS"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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A,GAAArD,OAAA;AAEA,IAAAsD,cAAA,GAAAtD,OAAA;AAgBA,IAAAuD,wBAAA,GAAAvD,OAAA;AAUA,IAAAwD,kBAAA,GAAAxD,OAAA;AAWA,IAAAyD,mBAAA,GAAAzD,OAAA;AAMA,IAAA0D,iBAAA,GAAA1D,OAAA;AACA,IAAA2D,oBAAA,GAAA3D,OAAA;AAMA,IAAA4D,qBAAA,GAAA5D,OAAA;AAI8C,SAAAG,uBAAA0D,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AArb9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAIA,IAAAG,mBAAa,EAACC,qBAAQ,CAACC,EAAgB,CAAC;;AAExC;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;;AAqBA;AACA;AACA;;AAGA;AACA;AACA;;AAeA;AACA;AACA;;AAOA;AACA;AACA;;AAgCA;;AAeA;AACA;AACA;;AA2BA;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAeA;AACA;AACA;AACA;AACA;AACA;AACA;;AAcA;;AAMA;AACA;AACA;;AASA;AACA;AACA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAQA;AACA;AACA;AACA;;AA6BA;AACA;AACA;AACA;AACA;;AAGA;;AAKA;;AAoCA;;AAEA;;AAKA;AACA;AACA;;AAKA;AACA;AACA;;AAOA;AACA;AACA;;AAiBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAKA;AACA;AACA;AACA;AACA;AACA;;AAIA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAIA;AACA;AACA;;AAIA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "CLEARABLE_USER_FIELDS", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _userCache.CLEARABLE_USER_FIELDS;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "FOLLOW_ACTION_LEAVES_ACTIVE", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _followRules.FOLLOW_ACTION_LEAVES_ACTIVE;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
6
18
|
Object.defineProperty(exports, "FollowButton", {
|
|
7
19
|
enumerable: true,
|
|
8
20
|
get: function () {
|
|
@@ -57,6 +69,30 @@ Object.defineProperty(exports, "PeableButton", {
|
|
|
57
69
|
return _PeableButton.default;
|
|
58
70
|
}
|
|
59
71
|
});
|
|
72
|
+
Object.defineProperty(exports, "ProfileButton", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () {
|
|
75
|
+
return _ProfileButton.default;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "buildFollowMenuItems", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () {
|
|
81
|
+
return _followRules.buildFollowMenuItems;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "clearedFieldsFromAccountUpdate", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () {
|
|
87
|
+
return _userCache.clearedFieldsFromAccountUpdate;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "clearedFieldsFromProfileUpdate", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () {
|
|
93
|
+
return _userCache.clearedFieldsFromProfileUpdate;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
60
96
|
Object.defineProperty(exports, "createDeferredProductAnalytics", {
|
|
61
97
|
enumerable: true,
|
|
62
98
|
get: function () {
|
|
@@ -75,6 +111,66 @@ Object.defineProperty(exports, "handleAuthError", {
|
|
|
75
111
|
return _errorHandlers.handleAuthError;
|
|
76
112
|
}
|
|
77
113
|
});
|
|
114
|
+
Object.defineProperty(exports, "invalidateAccountQueries", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () {
|
|
117
|
+
return _queryKeys.invalidateAccountQueries;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "invalidateAuthMethodsQueries", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () {
|
|
123
|
+
return _queryKeys.invalidateAuthMethodsQueries;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(exports, "invalidateConnectedAppsQueries", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function () {
|
|
129
|
+
return _queryKeys.invalidateConnectedAppsQueries;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
Object.defineProperty(exports, "invalidateDeviceQueries", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function () {
|
|
135
|
+
return _queryKeys.invalidateDeviceQueries;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(exports, "invalidatePaymentsQueries", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function () {
|
|
141
|
+
return _queryKeys.invalidatePaymentsQueries;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "invalidatePrivacyQueries", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function () {
|
|
147
|
+
return _queryKeys.invalidatePrivacyQueries;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(exports, "invalidateSecurityQueries", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function () {
|
|
153
|
+
return _queryKeys.invalidateSecurityQueries;
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
Object.defineProperty(exports, "invalidateSessionQueries", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function () {
|
|
159
|
+
return _queryKeys.invalidateSessionQueries;
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(exports, "invalidateStorageQueries", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function () {
|
|
165
|
+
return _queryKeys.invalidateStorageQueries;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
Object.defineProperty(exports, "invalidateUserQueries", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function () {
|
|
171
|
+
return _queryKeys.invalidateUserQueries;
|
|
172
|
+
}
|
|
173
|
+
});
|
|
78
174
|
Object.defineProperty(exports, "isInvalidSessionError", {
|
|
79
175
|
enumerable: true,
|
|
80
176
|
get: function () {
|
|
@@ -87,6 +183,30 @@ Object.defineProperty(exports, "isTimeoutOrNetworkError", {
|
|
|
87
183
|
return _errorHandlers.isTimeoutOrNetworkError;
|
|
88
184
|
}
|
|
89
185
|
});
|
|
186
|
+
Object.defineProperty(exports, "queryKeys", {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
get: function () {
|
|
189
|
+
return _queryKeys.queryKeys;
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
Object.defineProperty(exports, "resolveFollowPrimaryAction", {
|
|
193
|
+
enumerable: true,
|
|
194
|
+
get: function () {
|
|
195
|
+
return _followRules.resolveFollowPrimaryAction;
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
Object.defineProperty(exports, "upsertCachedUser", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function () {
|
|
201
|
+
return _userCache.upsertCachedUser;
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
Object.defineProperty(exports, "upsertCachedUsers", {
|
|
205
|
+
enumerable: true,
|
|
206
|
+
get: function () {
|
|
207
|
+
return _userCache.upsertCachedUsers;
|
|
208
|
+
}
|
|
209
|
+
});
|
|
90
210
|
Object.defineProperty(exports, "useAuth", {
|
|
91
211
|
enumerable: true,
|
|
92
212
|
get: function () {
|
|
@@ -99,12 +219,30 @@ Object.defineProperty(exports, "useAuthStore", {
|
|
|
99
219
|
return _authStore.useAuthStore;
|
|
100
220
|
}
|
|
101
221
|
});
|
|
222
|
+
Object.defineProperty(exports, "useCurrentUser", {
|
|
223
|
+
enumerable: true,
|
|
224
|
+
get: function () {
|
|
225
|
+
return _useAccountQueries.useCurrentUser;
|
|
226
|
+
}
|
|
227
|
+
});
|
|
102
228
|
Object.defineProperty(exports, "useFollow", {
|
|
103
229
|
enumerable: true,
|
|
104
230
|
get: function () {
|
|
105
231
|
return _useFollow.useFollow;
|
|
106
232
|
}
|
|
107
233
|
});
|
|
234
|
+
Object.defineProperty(exports, "useFollowTarget", {
|
|
235
|
+
enumerable: true,
|
|
236
|
+
get: function () {
|
|
237
|
+
return _useFollowTarget.useFollowTarget;
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
Object.defineProperty(exports, "useFollowerCounts", {
|
|
241
|
+
enumerable: true,
|
|
242
|
+
get: function () {
|
|
243
|
+
return _useFollow.useFollowerCounts;
|
|
244
|
+
}
|
|
245
|
+
});
|
|
108
246
|
Object.defineProperty(exports, "useOptionalOxy", {
|
|
109
247
|
enumerable: true,
|
|
110
248
|
get: function () {
|
|
@@ -117,25 +255,61 @@ Object.defineProperty(exports, "useOxy", {
|
|
|
117
255
|
return _OxyContext.useOxy;
|
|
118
256
|
}
|
|
119
257
|
});
|
|
258
|
+
Object.defineProperty(exports, "useSeedFollowStatuses", {
|
|
259
|
+
enumerable: true,
|
|
260
|
+
get: function () {
|
|
261
|
+
return _useFollow.useSeedFollowStatuses;
|
|
262
|
+
}
|
|
263
|
+
});
|
|
120
264
|
Object.defineProperty(exports, "useStorage", {
|
|
121
265
|
enumerable: true,
|
|
122
266
|
get: function () {
|
|
123
267
|
return _useStorage.useStorage;
|
|
124
268
|
}
|
|
125
269
|
});
|
|
270
|
+
Object.defineProperty(exports, "useUserById", {
|
|
271
|
+
enumerable: true,
|
|
272
|
+
get: function () {
|
|
273
|
+
return _useAccountQueries.useUserById;
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
Object.defineProperty(exports, "useUserByUsername", {
|
|
277
|
+
enumerable: true,
|
|
278
|
+
get: function () {
|
|
279
|
+
return _useAccountQueries.useUserByUsername;
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
Object.defineProperty(exports, "useUserProfile", {
|
|
283
|
+
enumerable: true,
|
|
284
|
+
get: function () {
|
|
285
|
+
return _useAccountQueries.useUserProfile;
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
Object.defineProperty(exports, "useUserProfiles", {
|
|
289
|
+
enumerable: true,
|
|
290
|
+
get: function () {
|
|
291
|
+
return _useAccountQueries.useUserProfiles;
|
|
292
|
+
}
|
|
293
|
+
});
|
|
126
294
|
var _OxyProvider = _interopRequireDefault(require("./components/OxyProvider.js"));
|
|
127
295
|
var _OxySignInButton = _interopRequireDefault(require("./components/OxySignInButton.js"));
|
|
128
296
|
var _OxyAuthPrompt = _interopRequireDefault(require("./components/OxyAuthPrompt.js"));
|
|
129
297
|
var _LogoIcon = require("./components/logo/LogoIcon.js");
|
|
130
298
|
var _LogoText = require("./components/logo/LogoText.js");
|
|
131
299
|
var _FollowButton = _interopRequireDefault(require("./components/FollowButton.js"));
|
|
300
|
+
var _ProfileButton = _interopRequireDefault(require("./components/ProfileButton.js"));
|
|
132
301
|
var _PeableButton = _interopRequireDefault(require("./components/PeableButton.js"));
|
|
133
302
|
var _OxyPayButton = _interopRequireDefault(require("./components/OxyPayButton.js"));
|
|
134
303
|
var _OxyContext = require("./context/OxyContext.js");
|
|
135
304
|
var _useAuth = require("./hooks/useAuth.js");
|
|
136
305
|
var _productAnalytics = require("./analytics/productAnalytics.js");
|
|
137
306
|
var _useFollow = require("./hooks/useFollow.js");
|
|
307
|
+
var _useFollowTarget = require("./hooks/useFollowTarget.js");
|
|
308
|
+
var _useAccountQueries = require("./hooks/queries/useAccountQueries.js");
|
|
138
309
|
var _useStorage = require("./hooks/useStorage.js");
|
|
310
|
+
var _followRules = require("./components/followRules.js");
|
|
311
|
+
var _queryKeys = require("./hooks/queries/queryKeys.js");
|
|
312
|
+
var _userCache = require("./hooks/queries/userCache.js");
|
|
139
313
|
var _authStore = require("./stores/authStore.js");
|
|
140
314
|
var _errorHandlers = require("./utils/errorHandlers.js");
|
|
141
315
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_OxyProvider","_interopRequireDefault","require","_OxySignInButton","_OxyAuthPrompt","_LogoIcon","_LogoText","_FollowButton","_PeableButton","_OxyPayButton","_OxyContext","_useAuth","_productAnalytics","_useFollow","_useStorage","_authStore","_errorHandlers","e","__esModule","default"],"sourceRoot":"../../../src","sources":["ui/client.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_OxyProvider","_interopRequireDefault","require","_OxySignInButton","_OxyAuthPrompt","_LogoIcon","_LogoText","_FollowButton","_ProfileButton","_PeableButton","_OxyPayButton","_OxyContext","_useAuth","_productAnalytics","_useFollow","_useFollowTarget","_useAccountQueries","_useStorage","_followRules","_queryKeys","_userCache","_authStore","_errorHandlers","e","__esModule","default"],"sourceRoot":"../../../src","sources":["ui/client.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,cAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,cAAA,GAAAP,sBAAA,CAAAC,OAAA;AAEA,IAAAO,aAAA,GAAAR,sBAAA,CAAAC,OAAA;AAGA,IAAAQ,aAAA,GAAAT,sBAAA,CAAAC,OAAA;AAKA,IAAAS,WAAA,GAAAT,OAAA;AAGA,IAAAU,QAAA,GAAAV,OAAA;AAEA,IAAAW,iBAAA,GAAAX,OAAA;AAEA,IAAAY,UAAA,GAAAZ,OAAA;AACA,IAAAa,gBAAA,GAAAb,OAAA;AAEA,IAAAc,kBAAA,GAAAd,OAAA;AAOA,IAAAe,WAAA,GAAAf,OAAA;AAOA,IAAAgB,YAAA,GAAAhB,OAAA;AAQA,IAAAiB,UAAA,GAAAjB,OAAA;AAaA,IAAAkB,UAAA,GAAAlB,OAAA;AAcA,IAAAmB,UAAA,GAAAnB,OAAA;AAGA,IAAAoB,cAAA,GAAApB,OAAA;AAK+B,SAAAD,uBAAAsB,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.FollowTargetButton =
|
|
7
|
-
exports.buildFollowMenuItems = buildFollowMenuItems;
|
|
8
|
-
exports.resolveFollowPrimaryAction = resolveFollowPrimaryAction;
|
|
6
|
+
exports.FollowTargetButton = void 0;
|
|
9
7
|
var _react = require("react");
|
|
10
8
|
var _reactNative = require("react-native");
|
|
11
9
|
var _mediaHeader = require("@oxy.so/bloom/media-header");
|
|
@@ -15,6 +13,7 @@ var _dropdownMenu = require("@oxy.so/bloom/dropdown-menu");
|
|
|
15
13
|
var _toast = require("@oxy.so/bloom/toast");
|
|
16
14
|
var _useFollowTarget = require("../hooks/useFollowTarget.js");
|
|
17
15
|
var _followTargetStore = require("../stores/followTargetStore.js");
|
|
16
|
+
var _followRules = require("./followRules.js");
|
|
18
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
18
|
/**
|
|
20
19
|
* `FollowTargetButton` — one button for everything an Oxy user can follow.
|
|
@@ -86,9 +85,6 @@ const VERB_LABELS = {
|
|
|
86
85
|
disabled: 'Off here'
|
|
87
86
|
}
|
|
88
87
|
};
|
|
89
|
-
|
|
90
|
-
/** A timed-follow choice offered in the menu. */
|
|
91
|
-
|
|
92
88
|
const HOUR = 60 * 60;
|
|
93
89
|
|
|
94
90
|
/**
|
|
@@ -106,92 +102,6 @@ const DEFAULT_DURATIONS = [{
|
|
|
106
102
|
label: 'A week',
|
|
107
103
|
seconds: 7 * 24 * HOUR
|
|
108
104
|
}];
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Whether an action leaves the target ACTIVE in this application.
|
|
112
|
-
*
|
|
113
|
-
* One table, read by both the primary button and the menu, because the same
|
|
114
|
-
* action reached from two controls once reported differently — and a rule
|
|
115
|
-
* living in two switch statements is a rule that drifts. `Record` rather than
|
|
116
|
-
* a function with a default, so a new action is a compile error instead of a
|
|
117
|
-
* silent `false`.
|
|
118
|
-
*/
|
|
119
|
-
const FOLLOW_ACTION_LEAVES_ACTIVE = exports.FOLLOW_ACTION_LEAVES_ACTIVE = {
|
|
120
|
-
follow: true,
|
|
121
|
-
'follow-timed': true,
|
|
122
|
-
// Re-enabling here does not change the global follow — the user already had
|
|
123
|
-
// it — but it does change whether this application acts on it, which is what
|
|
124
|
-
// a mirror is asking about.
|
|
125
|
-
'enable-here': true,
|
|
126
|
-
'disable-here': false,
|
|
127
|
-
unfollow: false
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
/** One line in the disclosure menu. */
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Which choices exist, given the state.
|
|
134
|
-
*
|
|
135
|
-
* Pure and exported because this is the product decision, not a rendering
|
|
136
|
-
* detail: a timed follow is only offered before following, turning it off here
|
|
137
|
-
* is only offered while following, and NEITHER is offered before the server has
|
|
138
|
-
* answered — every one of them addresses a relationship that does not exist
|
|
139
|
-
* yet, so offering them mid-write would mean sending a guessed id.
|
|
140
|
-
*/
|
|
141
|
-
/**
|
|
142
|
-
* What the main button should do for the current state.
|
|
143
|
-
*
|
|
144
|
-
* Exported because the product rule is not obvious from the label alone: a
|
|
145
|
-
* follow switched off here still reads as "following" globally, so the primary
|
|
146
|
-
* press must re-enable here — not unfollow everywhere.
|
|
147
|
-
*/
|
|
148
|
-
function resolveFollowPrimaryAction(input) {
|
|
149
|
-
if (!input.isFollowing) return 'follow';
|
|
150
|
-
if (input.applicationMode === 'disabled') return 'enable-here';
|
|
151
|
-
return 'unfollow';
|
|
152
|
-
}
|
|
153
|
-
function buildFollowMenuItems(input) {
|
|
154
|
-
const items = [];
|
|
155
|
-
if (!input.following) {
|
|
156
|
-
if (input.durations === false) return items;
|
|
157
|
-
for (const d of input.durations) {
|
|
158
|
-
items.push({
|
|
159
|
-
key: `for-${d.seconds}`,
|
|
160
|
-
label: `${input.idleVerb} for ${d.label.toLowerCase()}`,
|
|
161
|
-
action: {
|
|
162
|
-
type: 'follow-timed',
|
|
163
|
-
seconds: d.seconds,
|
|
164
|
-
durationLabel: d.label
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
return items;
|
|
169
|
-
}
|
|
170
|
-
if (!input.hasRelationship || input.isPending) return items;
|
|
171
|
-
items.push(input.applicationMode === 'disabled' ? {
|
|
172
|
-
key: 'enable-here',
|
|
173
|
-
label: `Show in ${input.applicationName}`,
|
|
174
|
-
action: {
|
|
175
|
-
type: 'enable-here'
|
|
176
|
-
}
|
|
177
|
-
} : {
|
|
178
|
-
key: 'disable-here',
|
|
179
|
-
label: `Don’t show in ${input.applicationName}`,
|
|
180
|
-
action: {
|
|
181
|
-
type: 'disable-here'
|
|
182
|
-
}
|
|
183
|
-
});
|
|
184
|
-
items.push({
|
|
185
|
-
// Named for what it does. "Unfollow" beside "don't show here" would read as
|
|
186
|
-
// the same action twice, and the user would pick the wrong one.
|
|
187
|
-
key: 'unfollow-everywhere',
|
|
188
|
-
label: 'Unfollow everywhere',
|
|
189
|
-
action: {
|
|
190
|
-
type: 'unfollow'
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
return items;
|
|
194
|
-
}
|
|
195
105
|
const FollowTargetButton = exports.FollowTargetButton = /*#__PURE__*/(0, _react.memo)(function FollowTargetButton({
|
|
196
106
|
targetId,
|
|
197
107
|
verb = 'follow',
|
|
@@ -244,18 +154,18 @@ const FollowTargetButton = exports.FollowTargetButton = /*#__PURE__*/(0, _react.
|
|
|
244
154
|
// press that did not happen. Same shape of trap as reading `effectiveState`
|
|
245
155
|
// as "does the user follow this".
|
|
246
156
|
const handlePrimary = (0, _react.useCallback)(async () => {
|
|
247
|
-
switch (resolveFollowPrimaryAction({
|
|
157
|
+
switch ((0, _followRules.resolveFollowPrimaryAction)({
|
|
248
158
|
isFollowing,
|
|
249
159
|
applicationMode: status.applicationMode
|
|
250
160
|
})) {
|
|
251
161
|
case 'enable-here':
|
|
252
|
-
if (await enableHere()) onChange?.(FOLLOW_ACTION_LEAVES_ACTIVE['enable-here']);else reportMutationFailure();
|
|
162
|
+
if (await enableHere()) onChange?.(_followRules.FOLLOW_ACTION_LEAVES_ACTIVE['enable-here']);else reportMutationFailure();
|
|
253
163
|
return;
|
|
254
164
|
case 'unfollow':
|
|
255
|
-
if (await unfollow()) onChange?.(FOLLOW_ACTION_LEAVES_ACTIVE.unfollow);else reportMutationFailure();
|
|
165
|
+
if (await unfollow()) onChange?.(_followRules.FOLLOW_ACTION_LEAVES_ACTIVE.unfollow);else reportMutationFailure();
|
|
256
166
|
return;
|
|
257
167
|
case 'follow':
|
|
258
|
-
if (await follow()) onChange?.(FOLLOW_ACTION_LEAVES_ACTIVE.follow);else reportMutationFailure();
|
|
168
|
+
if (await follow()) onChange?.(_followRules.FOLLOW_ACTION_LEAVES_ACTIVE.follow);else reportMutationFailure();
|
|
259
169
|
}
|
|
260
170
|
}, [isFollowing, status.applicationMode, follow, unfollow, enableHere, onChange, reportMutationFailure]);
|
|
261
171
|
const handleTimed = (0, _react.useCallback)(async (seconds, durationLabel) => {
|
|
@@ -265,13 +175,13 @@ const FollowTargetButton = exports.FollowTargetButton = /*#__PURE__*/(0, _react.
|
|
|
265
175
|
reportMutationFailure();
|
|
266
176
|
return;
|
|
267
177
|
}
|
|
268
|
-
onChange?.(FOLLOW_ACTION_LEAVES_ACTIVE['follow-timed']);
|
|
178
|
+
onChange?.(_followRules.FOLLOW_ACTION_LEAVES_ACTIVE['follow-timed']);
|
|
269
179
|
// The confirmation is the point: a follow that ends on its own is a
|
|
270
180
|
// promise, and a user who does not see it made will not believe it.
|
|
271
181
|
// Which is also why it must not appear when the promise was not made.
|
|
272
182
|
_toast.toast.success(`Following for ${durationLabel.toLowerCase()}`);
|
|
273
183
|
}, [follow, onChange, reportMutationFailure]);
|
|
274
|
-
const menuItems = (0, _react.useMemo)(() => buildFollowMenuItems({
|
|
184
|
+
const menuItems = (0, _react.useMemo)(() => (0, _followRules.buildFollowMenuItems)({
|
|
275
185
|
following: isFollowing,
|
|
276
186
|
applicationMode: status.applicationMode,
|
|
277
187
|
hasRelationship: Boolean(status.relationshipId),
|
|
@@ -292,17 +202,17 @@ const FollowTargetButton = exports.FollowTargetButton = /*#__PURE__*/(0, _react.
|
|
|
292
202
|
// menu item exists to end.
|
|
293
203
|
case 'enable-here':
|
|
294
204
|
void enableHere().then(ok => {
|
|
295
|
-
if (ok) onChange?.(FOLLOW_ACTION_LEAVES_ACTIVE['enable-here']);else reportMutationFailure();
|
|
205
|
+
if (ok) onChange?.(_followRules.FOLLOW_ACTION_LEAVES_ACTIVE['enable-here']);else reportMutationFailure();
|
|
296
206
|
});
|
|
297
207
|
return;
|
|
298
208
|
case 'disable-here':
|
|
299
209
|
void disableHere().then(ok => {
|
|
300
|
-
if (ok) onChange?.(FOLLOW_ACTION_LEAVES_ACTIVE['disable-here']);else reportMutationFailure();
|
|
210
|
+
if (ok) onChange?.(_followRules.FOLLOW_ACTION_LEAVES_ACTIVE['disable-here']);else reportMutationFailure();
|
|
301
211
|
});
|
|
302
212
|
return;
|
|
303
213
|
case 'unfollow':
|
|
304
214
|
void unfollow().then(ok => {
|
|
305
|
-
if (ok) onChange?.(FOLLOW_ACTION_LEAVES_ACTIVE.unfollow);else reportMutationFailure();
|
|
215
|
+
if (ok) onChange?.(_followRules.FOLLOW_ACTION_LEAVES_ACTIVE.unfollow);else reportMutationFailure();
|
|
306
216
|
});
|
|
307
217
|
}
|
|
308
218
|
}, [handleTimed, enableHere, disableHere, unfollow, onChange, reportMutationFailure]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_mediaHeader","_button","_RiArrowDownSLine","_dropdownMenu","_toast","_useFollowTarget","_followTargetStore","_jsxRuntime","VERB_LABELS","follow","idle","active","pending","disabled","subscribe","join","watch","HOUR","DEFAULT_DURATIONS","label","seconds","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_mediaHeader","_button","_RiArrowDownSLine","_dropdownMenu","_toast","_useFollowTarget","_followTargetStore","_followRules","_jsxRuntime","VERB_LABELS","follow","idle","active","pending","disabled","subscribe","join","watch","HOUR","DEFAULT_DURATIONS","label","seconds","FollowTargetButton","exports","memo","targetId","verb","labels","size","style","showOptions","durations","applicationName","initialStatus","onChange","status","isFollowing","isUnknown","isPending","unfollow","disableHere","enableHere","useFollowTarget","reportMutationFailure","useCallback","message","useFollowTargetStore","getState","errors","toast","error","text","useMemo","globalState","applicationMode","handlePrimary","resolveFollowPrimaryAction","FOLLOW_ACTION_LEAVES_ACTIVE","handleTimed","durationLabel","expiresIn","success","toLowerCase","menuItems","buildFollowMenuItems","following","hasRelationship","Boolean","relationshipId","idleVerb","runItem","item","action","type","then","ok","primary","jsx","FollowButton","followingLabel","accessibilityLabel","loading","onFollowChange","length","View","children","jsxs","flexDirection","alignItems","gap","DropdownMenu","DropdownMenuTrigger","asChild","Button","appearance","tone","icon","RiArrowDownSLine","width","accessibilityHint","DropdownMenuContent","map","DropdownMenuItem","onPress","key"],"sourceRoot":"../../../../src","sources":["ui/components/FollowTargetButton.tsx"],"mappings":";;;;;;AAiCA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAKA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AAMA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AACA,IAAAQ,kBAAA,GAAAR,OAAA;AACA,IAAAS,YAAA,GAAAT,OAAA;AAMuB,IAAAU,WAAA,GAAAV,OAAA;AA3DvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;;AAmBA;AACA;AACA;AACA;AACA;;AAcA,MAAMW,WAA6C,GAAG;EACpDC,MAAM,EAAE;IAAEC,IAAI,EAAE,QAAQ;IAAEC,MAAM,EAAE,WAAW;IAAEC,OAAO,EAAE,WAAW;IAAEC,QAAQ,EAAE;EAAW,CAAC;EAC3FC,SAAS,EAAE;IACTJ,IAAI,EAAE,WAAW;IACjBC,MAAM,EAAE,YAAY;IACpBC,OAAO,EAAE,WAAW;IACpBC,Q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AG5D,KAAK,UAAW;UACvC+E,iBAAiB,EAAC;QAAsB,CACzC;MAAC,CACiB,CAAC,eACtB,IAAA3F,WAAA,CAAAqE,GAAA,EAAC1E,aAAA,CAAAiG,mBAAmB;QAAChF,KAAK,EAAE,GAAGA,KAAK,UAAW;QAAAiE,QAAA,EAC5CtB,SAAS,CAACsC,GAAG,CAAE9B,IAAI,iBAClB,IAAA/D,WAAA,CAAAqE,GAAA,EAAC1E,aAAA,CAAAmG,gBAAgB;UAAgBC,OAAO,EAAEA,CAAA,KAAMjC,OAAO,CAACC,IAAI,CAAE;UAAAc,QAAA,EAC3Dd,IAAI,CAACnD;QAAK,GADUmD,IAAI,CAACiC,GAEV,CACnB;MAAC,CACiB,CAAC;IAAA,CACV,CAAC;EAAA,CACX,CAAC;AAEX,CAAC,CAAC","ignoreList":[]}
|
|
@@ -110,7 +110,7 @@ const OxyProvider = ({
|
|
|
110
110
|
const persistenceUnsubRef = (0, _react.useRef)(null);
|
|
111
111
|
const ownsQueryClientRef = (0, _react.useRef)(providedQueryClient === undefined);
|
|
112
112
|
// `accountQueries` is read once, at mount, like the client itself.
|
|
113
|
-
const
|
|
113
|
+
const accountQueriesRef = (0, _react.useRef)(accountQueries);
|
|
114
114
|
const [platformStorage, setPlatformStorage] = (0, _react.useState)(null);
|
|
115
115
|
|
|
116
116
|
// If the consumer supplied their own QueryClient we use it as-is and skip
|
|
@@ -142,7 +142,7 @@ const OxyProvider = ({
|
|
|
142
142
|
setPlatformStorage(storage);
|
|
143
143
|
const client = queryClientRef.current;
|
|
144
144
|
if (!client || !ownsQueryClientRef.current) return;
|
|
145
|
-
const persistence = (0, _queryClient.attachQueryPersistence)(client, storage,
|
|
145
|
+
const persistence = (0, _queryClient.attachQueryPersistence)(client, storage, accountQueriesRef.current);
|
|
146
146
|
persistenceUnsubRef.current = persistence.unsubscribe;
|
|
147
147
|
await persistence.restored;
|
|
148
148
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_reactNativeGestureHandler","_reactNativeSafeAreaContext","_OxyContext","_reactQuery","_surfaces","_toast","_core","_RequireOxyAuth","_queryClient","_storageHelpers","_netConnectivity","_KeyboardBoundary","_productAnalytics","_LanguageBridge","_BloomLocaleBridge","_jsxRuntime","_interopRequireWildcard","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","bootStyles","StyleSheet","create","providerRoot","flex","isWeb","Platform","OS","OxyProvider","oxyServices","children","onAuthStateChange","productAnalytics","storageKeyPrefix","clientId","baseURL","authWebUrl","authRedirectUri","authorizeBaseUrl","sessionMode","webAuthMode","queryClient","providedQueryClient","accountQueries","requireAuth","backgroundSession","language","queryClientRef","useRef","persistenceUnsubRef","ownsQueryClientRef","undefined","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeGestureHandler","_reactNativeSafeAreaContext","_OxyContext","_reactQuery","_surfaces","_toast","_core","_RequireOxyAuth","_queryClient","_storageHelpers","_netConnectivity","_KeyboardBoundary","_productAnalytics","_LanguageBridge","_BloomLocaleBridge","_jsxRuntime","_interopRequireWildcard","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","bootStyles","StyleSheet","create","providerRoot","flex","isWeb","Platform","OS","OxyProvider","oxyServices","children","onAuthStateChange","productAnalytics","storageKeyPrefix","clientId","baseURL","authWebUrl","authRedirectUri","authorizeBaseUrl","sessionMode","webAuthMode","queryClient","providedQueryClient","accountQueries","requireAuth","backgroundSession","language","queryClientRef","useRef","persistenceUnsubRef","ownsQueryClientRef","undefined","accountQueriesRef","platformStorage","setPlatformStorage","useState","current","client","createQueryClient","useEffect","mounted","bootstrap","storage","createPlatformStorage","error","__DEV__","loggerUtil","warn","component","createMemoryStorage","persistence","attachQueryPersistence","unsubscribe","restored","handleVisibilityChange","focusManager","setFocused","document","visibilityState","addEventListener","removeEventListener","subscription","AppState","state","remove","cleanup","setupNetworkMonitoring","onlineManager","setOnline","navigator","onLine","handleOnline","handleOffline","window","NetInfo","Promise","resolve","then","fetch","isNetConnectivityOnline","coreContent","jsx","QueryClientProvider","jsxs","OxyRuntimeProvider","ProductAnalyticsObserver","analytics","LanguageBridge","BloomLocaleBridge","SurfaceProvider","RequireOxyAuth","prompt","ToastOutlet","GestureHandlerRootView","style","SafeAreaProvider","KeyboardBoundary","_default","exports"],"sourceRoot":"../../../../src","sources":["ui/components/OxyProvider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,0BAAA,GAAAF,OAAA;AACA,IAAAG,2BAAA,GAAAH,OAAA;AAEA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,KAAA,GAAAR,OAAA;AACA,IAAAS,eAAA,GAAAT,OAAA;AACA,IAAAU,YAAA,GAAAV,OAAA;AACA,IAAAW,eAAA,GAAAX,OAAA;AACA,IAAAY,gBAAA,GAAAZ,OAAA;AACA,IAAAa,iBAAA,GAAAb,OAAA;AACA,IAAAc,iBAAA,GAAAd,OAAA;AACA,IAAAe,eAAA,GAAAf,OAAA;AACA,IAAAgB,kBAAA,GAAAhB,OAAA;AAAwD,IAAAiB,WAAA,GAAAjB,OAAA;AAAA,SAAAkB,wBAAAC,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAH,uBAAA,YAAAA,CAAAC,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAA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