Skip to content

Commit

Permalink
Release build 6.42.0 [ci release]
Browse files Browse the repository at this point in the history
  • Loading branch information
mgurgel authored and github-actions[bot] committed Dec 6, 2024
1 parent c4bb146 commit 93ea6c3
Show file tree
Hide file tree
Showing 269 changed files with 14,691 additions and 4,092 deletions.
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
build/**/*
docs/**/*
injected/src/types
special-pages/types
special-pages/pages/**/types
injected/integration-test/extension/contentScope.js
**/*.json
**/*.md
Expand Down
10 changes: 7 additions & 3 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
- ntp: display tweaks + stats show more fix (#1288)
- ntp: remove bullet from update-notification notes (#1287)
- build(deps-dev): bump typescript-eslint from 8.15.0 to 8.16.0 (#1276)
- ntp: fix favorites container when expanded+few items (#1306)
- Special Pages: Malware warning support (#1268)
- Moved messages + tests into each special page (#1299)
- NTP Mac style parity (#1263)
- ntp: customizer drawer (#1291)
- ntp: add next-steps docs (#1290)
- Allow for optional types (#1261)
17 changes: 17 additions & 0 deletions Sources/ContentScopeScripts/dist/contentScopeIsolated.js
Original file line number Diff line number Diff line change
Expand Up @@ -11151,6 +11151,9 @@
}
results.push(setValueForInput(inputElem, data.city + ', ' + data.state));
} else {
if (isElementTypeOptional(element.type)) {
continue;
}
if (!Object.prototype.hasOwnProperty.call(data, element.type)) {
results.push({
result: false,
Expand All @@ -11172,6 +11175,20 @@
return results;
}

/**
* Returns whether an element type is optional, allowing some checks to be skipped
*
* @param { string } type
* @returns Boolean
*/
function isElementTypeOptional(type) {
if (type === 'middleName') {
return true;
}

return false;
}

/**
* NOTE: This code comes from Autofill, the reasoning is to make React autofilling work on Chrome and Safari.
*
Expand Down
10 changes: 5 additions & 5 deletions Sources/ContentScopeScripts/dist/pages/duckplayer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2984,7 +2984,7 @@
this.focusMode = focusMode;
}
/**
* @param {keyof import("../../../types/duckplayer").DuckPlayerPageSettings} named
* @param {keyof import("../types/duckplayer.js").DuckPlayerPageSettings} named
* @param {{state: 'enabled' | 'disabled'} | null | undefined} settings
* @return {Settings}
*/
Expand Down Expand Up @@ -4383,7 +4383,7 @@
/**
* This will be sent if the application has loaded, but a client-side error
* has occurred that cannot be recovered from
* @returns {Promise<import("../../../../types/duckplayer").InitialSetupResponse>}
* @returns {Promise<import("../../types/duckplayer.js").InitialSetupResponse>}
*/
initialSetup() {
if (this.injectName === "integration") {
Expand All @@ -4407,7 +4407,7 @@
/**
* This is sent when the user wants to set Duck Player as the default.
*
* @param {import("../../../../types/duckplayer").UserValues} userValues
* @param {import("../../types/duckplayer.js").UserValues} userValues
*/
setUserValues(userValues) {
return this.messaging.request("setUserValues", userValues);
Expand Down Expand Up @@ -4447,7 +4447,7 @@
* }
* ```
*
* @param {(value: import("../../../../types/duckplayer").UserValues) => void} cb
* @param {(value: import("../../types/duckplayer.js").UserValues) => void} cb
*/
onUserValuesChanged(cb) {
return this.messaging.subscribe("onUserValuesChanged", cb);
Expand Down Expand Up @@ -4481,7 +4481,7 @@
this.messaging = messaging2;
}
/**
* @param {import('../../../../types/duckplayer').TelemetryEvent} event
* @param {import('../../types/duckplayer.js').TelemetryEvent} event
* @internal
*/
_event(event) {
Expand Down
10 changes: 5 additions & 5 deletions Sources/ContentScopeScripts/dist/pages/duckplayer/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2004,7 +2004,7 @@
this.focusMode = focusMode;
}
/**
* @param {keyof import("../../../types/duckplayer").DuckPlayerPageSettings} named
* @param {keyof import("../types/duckplayer.js").DuckPlayerPageSettings} named
* @param {{state: 'enabled' | 'disabled'} | null | undefined} settings
* @return {Settings}
*/
Expand Down Expand Up @@ -3403,7 +3403,7 @@
/**
* This will be sent if the application has loaded, but a client-side error
* has occurred that cannot be recovered from
* @returns {Promise<import("../../../../types/duckplayer").InitialSetupResponse>}
* @returns {Promise<import("../../types/duckplayer.js").InitialSetupResponse>}
*/
initialSetup() {
if (this.injectName === "integration") {
Expand All @@ -3427,7 +3427,7 @@
/**
* This is sent when the user wants to set Duck Player as the default.
*
* @param {import("../../../../types/duckplayer").UserValues} userValues
* @param {import("../../types/duckplayer.js").UserValues} userValues
*/
setUserValues(userValues) {
return this.messaging.request("setUserValues", userValues);
Expand Down Expand Up @@ -3467,7 +3467,7 @@
* }
* ```
*
* @param {(value: import("../../../../types/duckplayer").UserValues) => void} cb
* @param {(value: import("../../types/duckplayer.js").UserValues) => void} cb
*/
onUserValuesChanged(cb) {
return this.messaging.subscribe("onUserValuesChanged", cb);
Expand Down Expand Up @@ -3501,7 +3501,7 @@
this.messaging = messaging2;
}
/**
* @param {import('../../../../types/duckplayer').TelemetryEvent} event
* @param {import('../../types/duckplayer.js').TelemetryEvent} event
* @internal
*/
_event(event) {
Expand Down
Loading

0 comments on commit 93ea6c3

Please sign in to comment.