Skip to content

Commit d5f4223

Browse files
committed
Merge branch 'release-candidate' into release
2 parents e6a8a34 + 8d2877b commit d5f4223

File tree

121 files changed

+1615
-1297
lines changed

Some content is hidden

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

121 files changed

+1615
-1297
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
## [6.8.0](https://github.com/jwplayer/ott-web-app/compare/v6.7.0...v6.8.0) (2024-11-08)
2+
3+
4+
### Features
5+
6+
* add support for featured custom param ([#632](https://github.com/jwplayer/ott-web-app/issues/632)) ([9ea7884](https://github.com/jwplayer/ott-web-app/commit/9ea78849d24a84652c34bcd7a62c5576ed068b99))
7+
* **auth:** add optional captcha validation to registration ([#630](https://github.com/jwplayer/ott-web-app/issues/630)) ([fac471c](https://github.com/jwplayer/ott-web-app/commit/fac471cde71239f98db60141542ec6f764d7650a))
8+
* **home:** add hero shelf type and deprecate content.featured ([#638](https://github.com/jwplayer/ott-web-app/issues/638)) ([8388404](https://github.com/jwplayer/ott-web-app/commit/8388404a25192d1562654bfe0af198307cb22c61))
9+
* **home:** add jumbotron featured shelf ([#628](https://github.com/jwplayer/ott-web-app/issues/628)) ([08bf7c0](https://github.com/jwplayer/ott-web-app/commit/08bf7c001b5f3d10e0e885b27f2cec4188ccaca5))
10+
* **i18n:** support translations for shelves titles and menu labels ([#612](https://github.com/jwplayer/ott-web-app/issues/612)) ([8d13515](https://github.com/jwplayer/ott-web-app/commit/8d13515c10dc91d477f4bcece239dc61474fec4b))
11+
* **payment:** add optional captcha validation to payments ([#631](https://github.com/jwplayer/ott-web-app/issues/631)) ([afa7d6a](https://github.com/jwplayer/ott-web-app/commit/afa7d6a17428ca6f801c3ff99e7f322d257d8a8f))
12+
* **project:** add custom menu label to sidebar ([#637](https://github.com/jwplayer/ott-web-app/issues/637)) ([b73ae54](https://github.com/jwplayer/ott-web-app/commit/b73ae542db10129ad1278410aabc754b820a93e4))
13+
* **project:** remove ott analytics ([beae9bd](https://github.com/jwplayer/ott-web-app/commit/beae9bd4278f8e4a1e2f0f64e7456a14300e9c3d))
14+
* **project:** ui improvements and support light background ([620007b](https://github.com/jwplayer/ott-web-app/commit/620007b69f888d415c35162b4396adfccbba8b26))
15+
16+
17+
### Bug Fixes
18+
19+
* access bridge flaky tests ([#627](https://github.com/jwplayer/ott-web-app/issues/627)) ([1ae469b](https://github.com/jwplayer/ott-web-app/commit/1ae469b4c7b1f6922f6504b42d3445f7b9310cd8))
20+
* **project:** improve featured shelf and general ui ([#634](https://github.com/jwplayer/ott-web-app/issues/634)) ([085e245](https://github.com/jwplayer/ott-web-app/commit/085e2452290f11e8884294be0454bab9ea6f0895))
21+
* remove blue link color in hero description ([adf388c](https://github.com/jwplayer/ott-web-app/commit/adf388c968e11ba15c72d3ddc6679f940fb64076))
22+
123
## [6.7.0](https://github.com/jwplayer/ott-web-app/compare/v6.6.0...v6.7.0) (2024-09-27)
224

325

docs/features/video-analytics.md

Lines changed: 0 additions & 191 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jwp/ott",
3-
"version": "6.7.0",
3+
"version": "6.8.0",
44
"private": true,
55
"license": "Apache-2.0",
66
"repository": "https://github.com/jwplayer/ott-web-app.git",

packages/common/src/constants.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ export const PLAYLIST_CONTENT_TYPE = {
5252
live: 'live',
5353
} as const;
5454

55+
// Some predefined shelf types of JW
56+
export const SHELF_LAYOUT_TYPE = {
57+
// Fullwidth hero, only available as the first shelf (index === 0)
58+
hero: 'hero',
59+
// Larger cards
60+
featured: 'featured',
61+
// By default: standard size cards (default)
62+
} as const;
63+
5564
// OTT shared player
5665
export const OTT_GLOBAL_PLAYER_ID = 'M4qoGvUk';
5766

packages/common/src/controllers/AccountController.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ export default class AccountController {
197197
await this.refreshEntitlements?.();
198198
};
199199

200-
register = async (email: string, password: string, referrer: string, consentsValues: CustomerConsent[]) => {
200+
register = async (email: string, password: string, referrer: string, consentsValues: CustomerConsent[], captchaValue?: string) => {
201201
try {
202-
const response = await this.accountService.register({ email, password, consents: consentsValues, referrer });
202+
const response = await this.accountService.register({ email, password, consents: consentsValues, referrer, captchaValue });
203203

204204
if (response) {
205205
const { user, customerConsents } = response;

packages/common/src/controllers/CheckoutController.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,12 @@ export default class CheckoutController {
128128
};
129129

130130
//
131-
paymentWithoutDetails = async (): Promise<Payment> => {
131+
paymentWithoutDetails = async ({ captchaValue }: { captchaValue?: string } = {}): Promise<Payment> => {
132132
const { order } = useCheckoutStore.getState();
133133

134134
if (!order) throw new Error('No order created');
135135

136-
const response = await this.checkoutService.paymentWithoutDetails({ orderId: order.id });
136+
const response = await this.checkoutService.paymentWithoutDetails({ orderId: order.id, captchaValue });
137137

138138
if (response.errors.length > 0) throw new Error(response.errors[0]);
139139
if (response.responseData.rejectedReason) throw new Error(response.responseData.rejectedReason);
@@ -169,7 +169,7 @@ export default class CheckoutController {
169169
return response.responseData;
170170
};
171171

172-
initialAdyenPayment = async (paymentMethod: AdyenPaymentMethod, returnUrl: string): Promise<InitialAdyenPayment> => {
172+
initialAdyenPayment = async (paymentMethod: AdyenPaymentMethod, returnUrl: string, captchaValue?: string): Promise<InitialAdyenPayment> => {
173173
const { order } = useCheckoutStore.getState();
174174

175175
if (!order) throw new Error('No order created');
@@ -181,6 +181,7 @@ export default class CheckoutController {
181181
returnUrl: returnUrl,
182182
paymentMethod,
183183
customerIP: await this.getCustomerIP(),
184+
captchaValue,
184185
});
185186

186187
if (response.errors.length > 0) throw new Error(response.errors[0]);
@@ -212,12 +213,14 @@ export default class CheckoutController {
212213
cancelUrl,
213214
errorUrl,
214215
couponCode = '',
216+
captchaValue,
215217
}: {
216218
successUrl: string;
217219
waitingUrl: string;
218220
cancelUrl: string;
219221
errorUrl: string;
220222
couponCode: string;
223+
captchaValue?: string;
221224
}): Promise<{ redirectUrl: string }> => {
222225
const { order } = useCheckoutStore.getState();
223226

@@ -230,6 +233,7 @@ export default class CheckoutController {
230233
cancelUrl,
231234
errorUrl,
232235
couponCode,
236+
captchaValue,
233237
});
234238

235239
if (response.errors.length > 0) throw new Error(response.errors[0]);

packages/common/src/services/integrations/cleeng/CleengAccountService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export default class CleengAccountService extends AccountService {
181181
};
182182
};
183183

184-
register: Register = async ({ email, password, consents }) => {
184+
register: Register = async ({ email, password, consents, captchaValue }) => {
185185
const localesResponse = await this.getLocales();
186186

187187
this.handleErrors(localesResponse.errors);
@@ -194,6 +194,7 @@ export default class CleengAccountService extends AccountService {
194194
currency: localesResponse.responseData.currency,
195195
publisherId: this.publisherId,
196196
customerIP: await this.getCustomerIP(),
197+
captchaValue,
197198
};
198199

199200
const { responseData: auth, errors }: ServiceResponse<AuthData> = await this.cleengService.post('/customers', JSON.stringify(payload));

0 commit comments

Comments
 (0)