@oxy.so/services 9.1.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/followRules.js +105 -0
- package/lib/commonjs/ui/components/followRules.js.map +1 -0
- 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/followRules.js +99 -0
- package/lib/module/ui/components/followRules.js.map +1 -0
- 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/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/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/__tests__/followTargetButton.test.ts +1 -1
- package/src/ui/components/followRules.ts +121 -0
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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AA,GAAAhB,OAAA;AAQA,IAAAiB,mBAAA,GAAAjB,OAAA;AAKA,IAAAkB,eAAA,GAAAlB,OAAA;AACA,IAAAmB,kBAAA,GAAAnB,OAAA;AAyBA,IAAAoB,oBAAA,GAAApB,OAAA;AAUA,IAAAqB,qBAAA,GAAArB,OAAA;AAOA,IAAAsB,gBAAA,GAAAtB,OAAA;AAUA,IAAAuB,aAAA,GAAAvB,OAAA;AAQA,IAAAwB,UAAA,GAAAxB,OAAA;AAqBA,IAAAyB,UAAA,GAAAzB,OAAA;AAcA,IAAA0B,kBAAA,GAAA1B,OAAA;AAEA,IAAA2B,gBAAA,GAAA3B,OAAA;AACA,IAAA4B,YAAA,GAAA5B,OAAA;AAKA,IAAA6B,cAAA,GAAA7B,OAAA;AAWA,IAAA8B,iBAAA,GAAA9B,OAAA;AA+BA,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;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,OAA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MAAC,CACiB,CAAC;IAAA,CACV,CAAC;EAAA,CACX,CAAC;AAEX,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FOLLOW_ACTION_LEAVES_ACTIVE = void 0;
|
|
7
|
+
exports.buildFollowMenuItems = buildFollowMenuItems;
|
|
8
|
+
exports.resolveFollowPrimaryAction = resolveFollowPrimaryAction;
|
|
9
|
+
/**
|
|
10
|
+
* The follow button's product rules, without the button.
|
|
11
|
+
*
|
|
12
|
+
* Pure: no React, no Bloom. `FollowTargetButton` renders them, and an
|
|
13
|
+
* application drawing its own affordance (a chip grid, a compact row) imports
|
|
14
|
+
* them from here — through `@oxy.so/services/ui/client` — without paying for the
|
|
15
|
+
* button's dropdown menu.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/** A timed-follow choice offered in the menu. */
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Whether an action leaves the target ACTIVE in this application.
|
|
22
|
+
*
|
|
23
|
+
* One table, read by both the primary button and the menu, because the same
|
|
24
|
+
* action reached from two controls once reported differently — and a rule
|
|
25
|
+
* living in two switch statements is a rule that drifts. `Record` rather than
|
|
26
|
+
* a function with a default, so a new action is a compile error instead of a
|
|
27
|
+
* silent `false`.
|
|
28
|
+
*/
|
|
29
|
+
const FOLLOW_ACTION_LEAVES_ACTIVE = exports.FOLLOW_ACTION_LEAVES_ACTIVE = {
|
|
30
|
+
follow: true,
|
|
31
|
+
'follow-timed': true,
|
|
32
|
+
// Re-enabling here does not change the global follow — the user already had
|
|
33
|
+
// it — but it does change whether this application acts on it, which is what
|
|
34
|
+
// a mirror is asking about.
|
|
35
|
+
'enable-here': true,
|
|
36
|
+
'disable-here': false,
|
|
37
|
+
unfollow: false
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** One line in the disclosure menu. */
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Which choices exist, given the state.
|
|
44
|
+
*
|
|
45
|
+
* Pure and exported because this is the product decision, not a rendering
|
|
46
|
+
* detail: a timed follow is only offered before following, turning it off here
|
|
47
|
+
* is only offered while following, and NEITHER is offered before the server has
|
|
48
|
+
* answered — every one of them addresses a relationship that does not exist
|
|
49
|
+
* yet, so offering them mid-write would mean sending a guessed id.
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* What the main button should do for the current state.
|
|
53
|
+
*
|
|
54
|
+
* Exported because the product rule is not obvious from the label alone: a
|
|
55
|
+
* follow switched off here still reads as "following" globally, so the primary
|
|
56
|
+
* press must re-enable here — not unfollow everywhere.
|
|
57
|
+
*/
|
|
58
|
+
function resolveFollowPrimaryAction(input) {
|
|
59
|
+
if (!input.isFollowing) return 'follow';
|
|
60
|
+
if (input.applicationMode === 'disabled') return 'enable-here';
|
|
61
|
+
return 'unfollow';
|
|
62
|
+
}
|
|
63
|
+
function buildFollowMenuItems(input) {
|
|
64
|
+
const items = [];
|
|
65
|
+
if (!input.following) {
|
|
66
|
+
if (input.durations === false) return items;
|
|
67
|
+
for (const d of input.durations) {
|
|
68
|
+
items.push({
|
|
69
|
+
key: `for-${d.seconds}`,
|
|
70
|
+
label: `${input.idleVerb} for ${d.label.toLowerCase()}`,
|
|
71
|
+
action: {
|
|
72
|
+
type: 'follow-timed',
|
|
73
|
+
seconds: d.seconds,
|
|
74
|
+
durationLabel: d.label
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
return items;
|
|
79
|
+
}
|
|
80
|
+
if (!input.hasRelationship || input.isPending) return items;
|
|
81
|
+
items.push(input.applicationMode === 'disabled' ? {
|
|
82
|
+
key: 'enable-here',
|
|
83
|
+
label: `Show in ${input.applicationName}`,
|
|
84
|
+
action: {
|
|
85
|
+
type: 'enable-here'
|
|
86
|
+
}
|
|
87
|
+
} : {
|
|
88
|
+
key: 'disable-here',
|
|
89
|
+
label: `Don’t show in ${input.applicationName}`,
|
|
90
|
+
action: {
|
|
91
|
+
type: 'disable-here'
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
items.push({
|
|
95
|
+
// Named for what it does. "Unfollow" beside "don't show here" would read as
|
|
96
|
+
// the same action twice, and the user would pick the wrong one.
|
|
97
|
+
key: 'unfollow-everywhere',
|
|
98
|
+
label: 'Unfollow everywhere',
|
|
99
|
+
action: {
|
|
100
|
+
type: 'unfollow'
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
return items;
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=followRules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["FOLLOW_ACTION_LEAVES_ACTIVE","exports","follow","unfollow","resolveFollowPrimaryAction","input","isFollowing","applicationMode","buildFollowMenuItems","items","following","durations","d","push","key","seconds","label","idleVerb","toLowerCase","action","type","durationLabel","hasRelationship","isPending","applicationName"],"sourceRoot":"../../../../src","sources":["ui/components/followRules.ts"],"mappings":";;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,2BAGZ,GAAAC,OAAA,CAAAD,2BAAA,GAAG;EACFE,MAAM,EAAE,IAAI;EACZ,cAAc,EAAE,IAAI;EACpB;EACA;EACA;EACA,aAAa,EAAE,IAAI;EACnB,cAAc,EAAE,KAAK;EACrBC,QAAQ,EAAE;AACZ,CAAC;;AAED;;AAYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,0BAA0BA,CAACC,KAG1C,EAAyC;EACxC,IAAI,CAACA,KAAK,CAACC,WAAW,EAAE,OAAO,QAAQ;EACvC,IAAID,KAAK,CAACE,eAAe,KAAK,UAAU,EAAE,OAAO,aAAa;EAC9D,OAAO,UA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