Skip to content

Commit 6e0000c

Browse files
authored
Merge branch 'master' into fix-rss-itunes-explicit
2 parents 815230a + ffb6c71 commit 6e0000c

File tree

327 files changed

+15910
-1791
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

327 files changed

+15910
-1791
lines changed

.github/workflows/node.js.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ jobs:
4949

5050
- name: Build
5151
run: |
52-
yarn global add cross-env
5352
yarn
54-
cross-env NODE_ENV=production yarn compile:web
53+
yarn cross-env NODE_ENV=production yarn compile:web
5554
env:
5655
# UI
5756
WELCOME_VERSION: 1.0

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@ package-lock.json
4141
.env.lbrytv
4242
analyzeResults*.html
4343
ecosystem.config.js
44+
45+
.claude/settings.local.json

config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@ const config = {
6666
AUTO_FOLLOW_CHANNELS: process.env.AUTO_FOLLOW_CHANNELS,
6767
UNSYNCED_SETTINGS: process.env.UNSYNCED_SETTINGS,
6868

69+
// Farcaster Mini Apps / Frames
70+
FARCASTER_ACCOUNT_ASSOC_HEADER: process.env.FARCASTER_ACCOUNT_ASSOC_HEADER,
71+
FARCASTER_ACCOUNT_ASSOC_PAYLOAD: process.env.FARCASTER_ACCOUNT_ASSOC_PAYLOAD,
72+
FARCASTER_ACCOUNT_ASSOC_SIGNATURE: process.env.FARCASTER_ACCOUNT_ASSOC_SIGNATURE,
73+
FARCASTER_ICON_URL: process.env.FARCASTER_ICON_URL,
74+
FARCASTER_SPLASH_IMAGE_URL: process.env.FARCASTER_SPLASH_IMAGE_URL,
75+
FARCASTER_SPLASH_BACKGROUND_COLOR: process.env.FARCASTER_SPLASH_BACKGROUND_COLOR,
76+
FARCASTER_HERO_IMAGE_URL: process.env.FARCASTER_HERO_IMAGE_URL,
77+
6978
// ENABLE FEATURES
7079
ENABLE_COMMENT_REACTIONS: process.env.ENABLE_COMMENT_REACTIONS === 'true',
7180
ENABLE_FILE_REACTIONS: process.env.ENABLE_FILE_REACTIONS === 'true',
@@ -106,6 +115,8 @@ const config = {
106115
// FROM COMMAND LINE
107116
COMMIT_ID: process.env.COMMIT_ID,
108117
NODE_ENV: process.env.NODE_ENV,
118+
// Dev/staged feature gating
119+
DYNAMIC_ROUTES_FIRST: process.env.DYNAMIC_ROUTES_FIRST === 'true',
109120
};
110121

111122
config.SDK_API_PATH = `${config.LBRY_WEB_API}/api/v1`;

flow-typed/Claim.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ declare type GenericClaim = {
2020
amount: string, // bid amount at time of tx
2121
canonical_url: string, // URL with short id, includes channel with short id
2222
claim_id: string, // unique claim identifier
23+
channel_id?: string, // shown if signing channel can't be resolved
2324
claim_sequence: number, // not being used currently
2425
claim_op: 'create' | 'update',
2526
confirmations: number,
@@ -79,6 +80,15 @@ declare type GenericMetadata = {
7980
languages?: Array<string>,
8081
tags?: Array<string>,
8182
locations?: Array<Location>,
83+
fee?: Fee,
84+
video?: {
85+
duration: number,
86+
height: number,
87+
width: number,
88+
},
89+
audio?: {
90+
duration: number,
91+
},
8292
};
8393

8494
declare type ChannelMetadataKey =

flow-typed/Comment.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,38 @@
11
declare type CommentBody = string;
22
declare type CommentId = string;
33

4+
declare type UploadTemplateData = {
5+
title?: string,
6+
description?: string,
7+
tags?: Array<{ name: string }>,
8+
thumbnail?: string,
9+
language?: string,
10+
languages?: Array<string>,
11+
licenseType?: string,
12+
licenseUrl?: string,
13+
otherLicenseDescription?: string,
14+
nsfw?: boolean,
15+
paywall?: string,
16+
fee?: { amount: number, currency: string },
17+
fiatPurchaseFee?: Price,
18+
fiatPurchaseEnabled?: boolean,
19+
fiatRentalFee?: Price,
20+
fiatRentalExpiration?: Duration,
21+
fiatRentalEnabled?: boolean,
22+
visibility?: string,
23+
memberRestrictionOn?: boolean,
24+
memberRestrictionTierIds?: Array<number>,
25+
};
26+
27+
declare type UploadTemplate = {
28+
id: string,
29+
name: string,
30+
createdAt: number,
31+
lastUsedAt?: number,
32+
isPinned?: boolean,
33+
data: UploadTemplateData,
34+
};
35+
436
declare type Comment = {|
537
comment: CommentBody,
638
comment_id: CommentId, // sha256 digest
@@ -81,6 +113,7 @@ declare type PerChannelSettings = {
81113
livestream_chat_members_only?: boolean,
82114
comments_members_only?: boolean,
83115
homepage_settings?: any,
116+
upload_templates?: Array<UploadTemplate>,
84117
channel_sections?: Sections,
85118
};
86119

@@ -355,6 +388,8 @@ declare type SettingsResponse = {
355388
filters_enabled?: boolean,
356389
livestream_chat_members_only?: boolean,
357390
comments_members_only?: boolean,
391+
homepage_settings?: any,
392+
upload_templates?: Array<UploadTemplate>,
358393
};
359394

360395
declare type UpdateSettingsParams = {
@@ -371,6 +406,8 @@ declare type UpdateSettingsParams = {
371406
time_since_first_comment?: number,
372407
livestream_chat_members_only?: boolean,
373408
comments_members_only?: boolean,
409+
homepage_settings?: any,
410+
upload_templates?: Array<UploadTemplate>,
374411
};
375412

376413
declare type BlockWordParams = {

flow-typed/Lbry.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ declare type ClaimSearchOptions = {|
140140
remove_duplicates?: boolean, // removes duplicated content from search by picking either the original claim or the oldest matching repost
141141
has_source?: boolean, // find claims containing a source field
142142
has_no_source?: boolean, // find claims not containing a source field
143+
content_aspect_ratio?: string, // limit claims by content aspect ratio
144+
exclude_shorts?: boolean,
145+
exclude_shorts_duration_lte?: number,
146+
exclude_shorts_aspect_ratio_lte?: number,
143147
|};
144148

145149
declare type ClaimSearchResponse = {

flow-typed/memberships.js

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
declare type MembershipListParams = {
22
id?: string,
3-
channel_id?: string,
43
channel_claim_id: string,
54
};
65

@@ -11,29 +10,29 @@ declare type Perk = {
1110
}
1211
// -- CreatorMembership: data the creator sees for a given membership
1312
declare type CreatorMembership = {
14-
membership_id: string,
13+
membership_id?: number,
1514
channel_name: string,
16-
channel_claim_id: string,
15+
channel_claim_id?: string,
1716
name: string,
1817
description: string,
19-
perks: Array<Perk>,
20-
prices: [{id: number, amount: string, currency: string, address: string }],
18+
perks: MembershipOdyseePerks,
19+
prices: [{id?: number, amount: number, currency: string, address: string }],
2120
has_subscribers: boolean,
2221
enabled: boolean,
2322
}
2423

2524
declare type MembershipSubscribeParams = {
26-
subscriber_channel_claim_id: string,
25+
subscriber_channel_claim_id?: string,
2726
price_id: string,
2827
source_payment_address: string,
2928
}
3029

3130
declare type MembershipBuyParams = {
32-
membershipId: string, // just for redux state
33-
tippedChannelName: string,
34-
tippedChannelId: string,
35-
subscriberChannelId: string,
36-
priceId: number,
31+
membershipId?: number, // just for redux state
32+
tippedChannelName?: string,
33+
tippedChannelId?: string,
34+
subscriberChannelId?: string,
35+
priceId?: number,
3736
}
3837

3938
declare type SubscriptionPrice = {
@@ -128,6 +127,9 @@ declare type Membership = {
128127
enabled: boolean,
129128
channel_claim_id: string,
130129
first_payment_due_at: string,
130+
created_at: string,
131+
payments: MembershipPayment[],
132+
description: string,
131133
}
132134

133135
declare type MembershipUpdateResponse = string;
@@ -280,23 +282,23 @@ declare type StripePriceDetails = {
280282
};
281283

282284
declare type MembershipAddTierParams = {
283-
channel_name: string,
285+
channel_name?: string,
284286
channel_id: string,
285287
name: string,
286288
description: string,
287289
currency: string,
288290
amount: number,
289291
perks: string, // csv
290292
frequency: string,
291-
payment_address_id: string,
293+
payment_address: string,
292294
enable_members_only_chat?: boolean,
293295
};
294296

295297
declare type MembershipUpdateTierParams = {
296298
new_name?: string,
297299
new_description?: string,
298300
new_amount?: number,
299-
membership_id: number,
301+
membership_id?: number,
300302
enable_members_only_chat?: boolean,
301303
}
302304

flow-typed/publish.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ declare type PublishState = {|
7777
thumbnailError: ?boolean,
7878
description: string,
7979
language: string,
80+
languages?: Array<string>,
8081
releaseTime: ?number, // The user-entered value, whether valid or not. The UI
8182
// can gray out for some scenarios, but value should be
8283
// retained for un-graying. @see PAYLOAD.releaseTime()

flow-typed/stripe.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
declare type WalletBalance = {
2+
ar: number,
3+
u: number,
4+
usdc: number,
5+
};
6+
17
declare type StripeState = {
28
accountCheckFetchingIds: ClaimIds,
39
canReceiveFiatTipsById: { [id: string]: boolean },
@@ -250,6 +256,8 @@ declare type StripeTransaction = {
250256
type: StripeTransactionType,
251257
tipper_channel_claim_id: string,
252258
tipper_channel_name: string,
259+
locked_rate: string,
260+
payment_intent_id: string,
253261
};
254262
declare type StripeTransactions = Array<StripeTransaction>;
255263

0 commit comments

Comments
 (0)