@oxy.so/services 9.1.0 → 10.0.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/BenefitList.js +1 -1
- package/lib/commonjs/ui/components/BenefitList.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js +2 -2
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/FollowTargetButton.js +13 -103
- package/lib/commonjs/ui/components/FollowTargetButton.js.map +1 -1
- package/lib/commonjs/ui/components/PeableButton.js +1 -2
- package/lib/commonjs/ui/components/PeableButton.js.map +1 -1
- package/lib/commonjs/ui/components/SurfaceHeaderAction.js +1 -1
- package/lib/commonjs/ui/components/SurfaceHeaderAction.js.map +1 -1
- package/lib/commonjs/ui/components/SurfaceScreen.js +1 -1
- package/lib/commonjs/ui/components/SurfaceScreen.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js +1 -1
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/primitives.js +1 -1
- package/lib/commonjs/ui/components/authChooser/primitives.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/requestSurfaces.js +1 -1
- package/lib/commonjs/ui/components/authChooser/requestSurfaces.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/components/payment/PaymentDetailsStep.js +2 -2
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js +2 -2
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js +2 -2
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js +2 -2
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyAuthScreen.js +1 -1
- package/lib/commonjs/ui/components/signIn/OxyAuthScreen.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js +1 -1
- package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyPasswordPanel.js +2 -2
- package/lib/commonjs/ui/components/signIn/OxyPasswordPanel.js.map +1 -1
- package/lib/commonjs/ui/components/surfaces/ActionSheetSurface.js +2 -1
- package/lib/commonjs/ui/components/surfaces/ActionSheetSurface.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountMembersScreen.js +4 -4
- package/lib/commonjs/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +1 -1
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DomainsScreen.js +1 -1
- package/lib/commonjs/ui/screens/DomainsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +4 -2
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +5 -5
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/NotificationsScreen.js +8 -8
- package/lib/commonjs/ui/screens/NotificationsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PreferencesScreen.js +2 -2
- package/lib/commonjs/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +37 -37
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +5 -5
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +11 -11
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js +1 -1
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +1 -1
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.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/BenefitList.js +1 -1
- package/lib/module/ui/components/BenefitList.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js +2 -2
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/FollowTargetButton.js +3 -91
- package/lib/module/ui/components/FollowTargetButton.js.map +1 -1
- package/lib/module/ui/components/PeableButton.js +2 -3
- package/lib/module/ui/components/PeableButton.js.map +1 -1
- package/lib/module/ui/components/SurfaceHeaderAction.js +1 -1
- package/lib/module/ui/components/SurfaceHeaderAction.js.map +1 -1
- package/lib/module/ui/components/SurfaceScreen.js +1 -1
- package/lib/module/ui/components/SurfaceScreen.js.map +1 -1
- package/lib/module/ui/components/authChooser/AccountsMenuView.js +1 -1
- package/lib/module/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/module/ui/components/authChooser/primitives.js +1 -1
- package/lib/module/ui/components/authChooser/primitives.js.map +1 -1
- package/lib/module/ui/components/authChooser/requestSurfaces.js +1 -1
- package/lib/module/ui/components/authChooser/requestSurfaces.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/components/payment/PaymentDetailsStep.js +2 -2
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentMethodStep.js +2 -2
- package/lib/module/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentReviewStep.js +2 -2
- package/lib/module/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentSuccessStep.js +1 -1
- package/lib/module/ui/components/payment/PaymentSuccessStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentSummaryStep.js +2 -2
- package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyAuthScreen.js +1 -1
- package/lib/module/ui/components/signIn/OxyAuthScreen.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js +1 -1
- package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyPasswordPanel.js +2 -2
- package/lib/module/ui/components/signIn/OxyPasswordPanel.js.map +1 -1
- package/lib/module/ui/components/surfaces/ActionSheetSurface.js +2 -1
- package/lib/module/ui/components/surfaces/ActionSheetSurface.js.map +1 -1
- package/lib/module/ui/screens/AccountMembersScreen.js +4 -4
- package/lib/module/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/ConnectedAppsScreen.js +1 -1
- package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/module/ui/screens/DomainsScreen.js +1 -1
- package/lib/module/ui/screens/DomainsScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +4 -2
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +5 -5
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/NotificationsScreen.js +8 -8
- package/lib/module/ui/screens/NotificationsScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/PreferencesScreen.js +2 -2
- package/lib/module/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +37 -37
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +1 -1
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +5 -5
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +1 -1
- package/lib/module/ui/screens/UserListScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +11 -11
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/UploadBar.js +1 -1
- package/lib/module/ui/screens/fileManagement/UploadBar.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustCenterScreen.js +1 -1
- package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRulesScreen.js +1 -1
- package/lib/module/ui/screens/trust/TrustRulesScreen.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/BenefitList.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/FollowButton.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/FollowTargetButton.d.ts +3 -63
- package/lib/typescript/commonjs/ui/components/FollowTargetButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/PeableButton.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/components/surfaces/ActionSheetSurface.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +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/BenefitList.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/FollowButton.d.ts +1 -1
- package/lib/typescript/module/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/FollowTargetButton.d.ts +3 -63
- package/lib/typescript/module/ui/components/FollowTargetButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/PeableButton.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/components/surfaces/ActionSheetSurface.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/index.ts +3 -3
- package/src/ui/client.ts +55 -4
- package/src/ui/components/BenefitList.tsx +1 -2
- package/src/ui/components/FollowButton.tsx +3 -3
- package/src/ui/components/FollowTargetButton.tsx +11 -115
- package/src/ui/components/PeableButton.tsx +3 -4
- package/src/ui/components/SurfaceHeaderAction.tsx +1 -1
- package/src/ui/components/SurfaceScreen.tsx +1 -1
- package/src/ui/components/__tests__/followButtonAccessibility.test.tsx +9 -0
- package/src/ui/components/__tests__/followTargetButton.test.ts +1 -1
- package/src/ui/components/authChooser/AccountsMenuView.tsx +1 -1
- package/src/ui/components/authChooser/primitives.tsx +1 -1
- package/src/ui/components/authChooser/requestSurfaces.tsx +1 -1
- package/src/ui/components/followRules.ts +121 -0
- package/src/ui/components/payment/PaymentDetailsStep.tsx +2 -2
- package/src/ui/components/payment/PaymentMethodStep.tsx +2 -2
- package/src/ui/components/payment/PaymentReviewStep.tsx +2 -2
- package/src/ui/components/payment/PaymentSuccessStep.tsx +1 -1
- package/src/ui/components/payment/PaymentSummaryStep.tsx +2 -2
- package/src/ui/components/signIn/OxyAuthScreen.tsx +1 -1
- package/src/ui/components/signIn/OxyLinkCommonsPanel.tsx +1 -1
- package/src/ui/components/signIn/OxyPasswordPanel.tsx +1 -1
- package/src/ui/components/surfaces/ActionSheetSurface.tsx +2 -1
- package/src/ui/screens/AccountMembersScreen.tsx +4 -4
- package/src/ui/screens/AccountVerificationScreen.tsx +1 -1
- package/src/ui/screens/ConnectedAppsScreen.tsx +1 -1
- package/src/ui/screens/DomainsScreen.tsx +1 -1
- package/src/ui/screens/EditProfileFieldScreen.tsx +1 -2
- package/src/ui/screens/FileManagementScreen.tsx +5 -5
- package/src/ui/screens/HistoryViewScreen.tsx +1 -1
- package/src/ui/screens/LanguageSelectorScreen.tsx +1 -1
- package/src/ui/screens/LegalDocumentsScreen.tsx +1 -1
- package/src/ui/screens/NotificationsScreen.tsx +8 -8
- package/src/ui/screens/PaymentGatewayScreen.tsx +1 -1
- package/src/ui/screens/PreferencesScreen.tsx +2 -2
- package/src/ui/screens/PrivacySettingsScreen.tsx +21 -21
- package/src/ui/screens/ProfileScreen.tsx +1 -1
- package/src/ui/screens/SearchSettingsScreen.tsx +5 -5
- package/src/ui/screens/UserListScreen.tsx +1 -1
- package/src/ui/screens/WelcomeNewUserScreen.tsx +11 -11
- package/src/ui/screens/fileManagement/UploadBar.tsx +1 -1
- package/src/ui/screens/trust/TrustCenterScreen.tsx +1 -1
- package/src/ui/screens/trust/TrustRulesScreen.tsx +1 -1
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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IAAA+B,gBAAA,GAAA5B,sBAAA,CAAAH,OAAA;AAOA,IAAAgC,WAAA,GAAAhC,OAAA;AAgBA,IAAAiC,cAAA,GAAAjC,OAAA;AAEA,IAAAkC,iBAAA,GAAAlC,OAAA;AAEA,IAAAmC,iBAAA,GAAAnC,OAAA;AAaA,IAAAoC,eAAA,GAAApC,OAAA;AAKA,IAAAqC,aAAA,GAAAlC,sBAAA,CAAAH,OAAA;AAGA,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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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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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 @@ const BenefitList = ({
|
|
|
76
76
|
className,
|
|
77
77
|
style
|
|
78
78
|
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_card.Card, {
|
|
79
|
-
variant: "outlined",
|
|
80
79
|
radius: "radius-20",
|
|
81
80
|
border: "hairline",
|
|
82
81
|
elevation: "s",
|
|
@@ -86,6 +85,7 @@ const BenefitList = ({
|
|
|
86
85
|
gap: _designTokens.SPACING['space-16']
|
|
87
86
|
}, style],
|
|
88
87
|
accessibilityLabel: accessibilityLabel,
|
|
88
|
+
appearance: "outline",
|
|
89
89
|
children: children
|
|
90
90
|
});
|
|
91
91
|
exports.BenefitList = BenefitList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_card","_designTokens","_theme","_typography","_jsxRuntime","ICON_SQUARE_SIZE","BenefitRow","icon","label","children","accessibilityLabel","className","style","textStyle","colors","useTheme","content","a11y","undefined","jsxs","View","flexDirection","alignItems","gap","SPACING","accessibilityRole","jsx","width","height","borderRadius","RADIUS","justifyContent","backgroundColor","backgroundTertiary","accessibilityElementsHidden","Text","flex","fontSize","TYPOGRAPHY","caption","size","lineHeight","fontWeight","weight","color","textSecondary","exports","BenefitList","Card","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_card","_designTokens","_theme","_typography","_jsxRuntime","ICON_SQUARE_SIZE","BenefitRow","icon","label","children","accessibilityLabel","className","style","textStyle","colors","useTheme","content","a11y","undefined","jsxs","View","flexDirection","alignItems","gap","SPACING","accessibilityRole","jsx","width","height","borderRadius","RADIUS","justifyContent","backgroundColor","backgroundTertiary","accessibilityElementsHidden","Text","flex","fontSize","TYPOGRAPHY","caption","size","lineHeight","fontWeight","weight","color","textSecondary","exports","BenefitList","Card","radius","border","elevation","padding","appearance"],"sourceRoot":"../../../../src","sources":["ui/components/BenefitList.tsx"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,aA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B,QAAA,EAEVF;IAAI,CACH,CAAC,eACP,IAAAH,WAAA,CAAAsB,GAAA,EAACvB,WAAA,CAAAgC,IAAI;MACDvB,KAAK,EAAE,CACH;QACIwB,IAAI,EAAE,CAAC;QACPC,QAAQ,EAAEC,wBAAU,CAACC,OAAO,CAACC,IAAI;QACjCC,UAAU,EAAEH,wBAAU,CAACC,OAAO,CAACE,UAAU;QACzCC,UAAU,EAAEJ,wBAAU,CAACC,OAAO,CAACI,MAAM;QACrCC,KAAK,EAAE9B,MAAM,CAAC+B;MAClB,CAAC,EACDhC,SAAS,CACX;MAAAJ,QAAA,EAEDO;IAAO,CACN,CAAC;EAAA,CACL,CAAC;AAEf,CAAC;AAAC8B,OAAA,CAAAxC,UAAA,GAAAA,UAAA;AAUK,MAAMyC,WAAuC,GAAGA,CAAC;EACpDtC,QAAQ;EACRC,kBAAkB;EAClBC,SAAS;EACTC;AACJ,CAAC,kBACG,IAAAR,WAAA,CAAAsB,GAAA,EAAC1B,KAAA,CAAAgD,IAAI;EACDC,MAAM,EAAC,WAAW;EAClBC,MAAM,EAAC,UAAU;EACjBC,SAAS,EAAC,GAAG;EACbxC,SAAS,EAAEA,SAAU;EACrBC,KAAK,EAAE,CAAC;IAAEwC,OAAO,EAAE5B,qBAAO,CAAC,UAAU,CAAC;IAAED,GAAG,EAAEC,qBAAO,CAAC,UAAU;EAAE,CAAC,EAAEZ,KAAK,CAAE;EAC3EF,kBAAkB,EAAEA,kBAAmB;EAAC2C,UAAU,EAAC,SAAS;EAAA5C,QAAA,EAE3DA;AAAQ,CACP,CACT;AAACqC,OAAA,CAAAC,WAAA,GAAAA,WAAA","ignoreList":[]}
|
|
@@ -33,7 +33,7 @@ const FollowButtonInner = /*#__PURE__*/(0, _react.memo)(function FollowButtonInn
|
|
|
33
33
|
oxyServices,
|
|
34
34
|
initiallyFollowing,
|
|
35
35
|
username,
|
|
36
|
-
size = '
|
|
36
|
+
size = 'md',
|
|
37
37
|
onFollowChange,
|
|
38
38
|
style,
|
|
39
39
|
textStyle,
|
|
@@ -104,7 +104,7 @@ const FollowButtonInner = /*#__PURE__*/(0, _react.memo)(function FollowButtonInn
|
|
|
104
104
|
const FollowButtonMultiInner = /*#__PURE__*/(0, _react.memo)(function FollowButtonMultiInner({
|
|
105
105
|
userIds,
|
|
106
106
|
initiallyAllFollowing = false,
|
|
107
|
-
size = '
|
|
107
|
+
size = 'md',
|
|
108
108
|
followAllLabel = DEFAULT_FOLLOW_ALL_LABEL,
|
|
109
109
|
followedAllLabel = DEFAULT_FOLLOWED_ALL_LABEL,
|
|
110
110
|
onFollowChange,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_OxyContext","_toast","_mediaHeader","_useFollow","_followStore","_shallow","_followButtonAccessibility","_jsxRuntime","DEFAULT_FOLLOW_ALL_LABEL","DEFAULT_FOLLOWED_ALL_LABEL","isMultiMode","props","Array","isArray","userIds","FollowButtonInner","memo","userId","oxyServices","initiallyFollowing","username","size","onFollowChange","style","textStyle","disabled","showLoadingState","preventParentActions","isFollowing","isKnown","isLoading","toggleFollow","resolveStatus","useFollowForButton","handlePress","useCallback","event","preventDefault","stopPropagation","accepted","err","error","Error","String","toast","message","useEffect","isBusy","showFollowing","showSpinner","accessibilityLabel","accessibilityHint","describeFollowButton","isPending","jsx","FollowButton","following","loading","label","FollowButtonMultiInner","initiallyAllFollowing","followAllLabel","followedAllLabel","onBulkFollow","onBulkUnfollow","follow","useFollow","followAllUsers","undefined","unfollowAllUsers","isAnyLoading","initialFollowStatuses","useFollowStore","useShallow","state","statuses","uid","Object","prototype","hasOwnProperty","call","followingUsers","hasKnownNotFollowing","some","storeAllFollowing","allFollowing","fetchAllStatuses","isSubmitting","setIsSubmitting","useState","result","allAlreadyFollowing","followedCount","results","length","every","entry","alreadyFollowing","anyFollowed","success","describeFollowAllButton","Boolean","count","followingLabel","canUsePrivateApi","user","currentUser","useOxy","currentUserId","id","trim","rawUserIds","multiUserIds","useMemo","seen","Set","cleaned","raw","has","add","push","targetUserId","exports","_default","default"],"sourceRoot":"../../../../src","sources":["ui/components/FollowButton.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAMA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AAEA,IAAAM,QAAA,GAAAN,OAAA;AACA,IAAAO,0BAAA,GAAAP,OAAA;AAA4F,IAAAQ,WAAA,GAAAR,OAAA;AAE5F,MAAMS,wBAAwB,GAAG,YAAY;AAC7C,MAAMC,0BAA0B,GAAG,WAAW;;AAE9C;;AAYA;;AAaA;;AAWA;AACA;AACA;AACA;;AAGA,MAAMC,WAAW,GAAIC,KAAwB,IAC3C,SAAS,IAAIA,KAAK,IAAIC,KAAK,CAACC,OAAO,CAACF,KAAK,CAACG,OAAO,CAAC;AAEpD,MAAMC,iBAAiB,gBAAG,IAAAC,WAAI,EAAC,SAASD,iBAAiBA,CAAC;EACxDE,MAAM;EACNC,WAAW;EACXC,kBAAkB;EAClBC,QAAQ;EACRC,IAAI,GAAG,
|
|
1
|
+
{"version":3,"names":["_react","require","_OxyContext","_toast","_mediaHeader","_useFollow","_followStore","_shallow","_followButtonAccessibility","_jsxRuntime","DEFAULT_FOLLOW_ALL_LABEL","DEFAULT_FOLLOWED_ALL_LABEL","isMultiMode","props","Array","isArray","userIds","FollowButtonInner","memo","userId","oxyServices","initiallyFollowing","username","size","onFollowChange","style","textStyle","disabled","showLoadingState","preventParentActions","isFollowing","isKnown","isLoading","toggleFollow","resolveStatus","useFollowForButton","handlePress","useCallback","event","preventDefault","stopPropagation","accepted","err","error","Error","String","toast","message","useEffect","isBusy","showFollowing","showSpinner","accessibilityLabel","accessibilityHint","describeFollowButton","isPending","jsx","FollowButton","following","loading","label","FollowButtonMultiInner","initiallyAllFollowing","followAllLabel","followedAllLabel","onBulkFollow","onBulkUnfollow","follow","useFollow","followAllUsers","undefined","unfollowAllUsers","isAnyLoading","initialFollowStatuses","useFollowStore","useShallow","state","statuses","uid","Object","prototype","hasOwnProperty","call","followingUsers","hasKnownNotFollowing","some","storeAllFollowing","allFollowing","fetchAllStatuses","isSubmitting","setIsSubmitting","useState","result","allAlreadyFollowing","followedCount","results","length","every","entry","alreadyFollowing","anyFollowed","success","describeFollowAllButton","Boolean","count","followingLabel","canUsePrivateApi","user","currentUser","useOxy","currentUserId","id","trim","rawUserIds","multiUserIds","useMemo","seen","Set","cleaned","raw","has","add","push","targetUserId","exports","_default","default"],"sourceRoot":"../../../../src","sources":["ui/components/FollowButton.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAMA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AAEA,IAAAM,QAAA,GAAAN,OAAA;AACA,IAAAO,0BAAA,GAAAP,OAAA;AAA4F,IAAAQ,WAAA,GAAAR,OAAA;AAE5F,MAAMS,wBAAwB,GAAG,YAAY;AAC7C,MAAMC,0BAA0B,GAAG,WAAW;;AAE9C;;AAYA;;AAaA;;AAWA;AACA;AACA;AACA;;AAGA,MAAMC,WAAW,GAAIC,KAAwB,IAC3C,SAAS,IAAIA,KAAK,IAAIC,KAAK,CAACC,OAAO,CAACF,KAAK,CAACG,OAAO,CAAC;AAEpD,MAAMC,iBAAiB,gBAAG,IAAAC,WAAI,EAAC,SAASD,iBAAiBA,CAAC;EACxDE,MAAM;EACNC,WAAW;EACXC,kBAAkB;EAClBC,QAAQ;EACRC,IAAI,GAAG,IAAI;EACXC,cAAc;EACdC,KAAK;EACLC,SAAS;EACTC,QAAQ,GAAG,KAAK;EAChBC,gBAAgB,GAAG,IAAI;EACvBC,oBAAoB,GAAG;AA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sB;MAAA,GACjBhD,KAAK;MACTG,OAAO,EAAEkG;IAAa,CACvB,CAAC;EAEN;EAEA,MAAMS,YAAY,GAAG9G,KAAK,CAACM,MAAM,GAAG0B,MAAM,CAAChC,KAAK,CAACM,MAAM,CAAC,CAAC6F,IAAI,CAAC,CAAC,GAAG,EAAE;EACpE,IAAI,CAACW,YAAY,IAAKb,aAAa,IAAIA,aAAa,KAAKa,YAAa,EAAE;IACtE,OAAO,IAAI;EACb;EAEA,oBACE,IAAAlH,WAAA,CAAA+C,GAAA,EAACvC,iBAAiB;IAAA,GACZJ,KAAK;IACTM,MAAM,EAAEwG,YAAa;IACrBvG,WAAW,EAAEA;EAAY,CAC1B,CAAC;AAEN,CAAC;AAACwG,OAAA,CAAAnE,YAAA,GAAAA,YAAA;AAAA,IAAAoE,QAAA,GAAAD,OAAA,CAAAE,OAAA,GAGarE,YAAY","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,97 +102,11 @@ 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',
|
|
198
108
|
labels,
|
|
199
|
-
size = '
|
|
109
|
+
size = 'md',
|
|
200
110
|
style,
|
|
201
111
|
disabled = false,
|
|
202
112
|
showOptions = true,
|
|
@@ -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]);
|
|
@@ -339,7 +249,7 @@ const FollowTargetButton = exports.FollowTargetButton = /*#__PURE__*/(0, _react.
|
|
|
339
249
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
340
250
|
appearance: "subtle",
|
|
341
251
|
tone: "support",
|
|
342
|
-
size: size === '
|
|
252
|
+
size: size === 'lg' ? 'lg' : 'sm',
|
|
343
253
|
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_RiArrowDownSLine.RiArrowDownSLine, {
|
|
344
254
|
width: 16
|
|
345
255
|
}),
|