Skip to content

Commit 0502ed7

Browse files
shakyShanegithub-actions[bot]
authored andcommitted
Release build 7.5.0 [ci release]
1 parent 06d244c commit 0502ed7

File tree

16 files changed

+222
-85
lines changed

16 files changed

+222
-85
lines changed

CHANGELOG.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
- ntp: prevent gradients bleeding through (#1382)
1+
- ntp: ensure cross-window sections collapse (#1387)
2+
- Revert "removed the restriction on config subscription"
3+
- removed the restriction on config subscription
4+
- ntp: support multiple release-note lists (#1385)

Sources/ContentScopeScripts/dist/pages/new-tab/dist/index.css

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,7 @@ body[data-animate-background=true] {
954954
outline: none;
955955
padding-left: var(--sp-3);
956956
padding-right: var(--sp-3);
957+
height: 96px;
957958
}
958959
.Tile_item:focus-visible .Tile_icon {
959960
box-shadow: var(--focus-ring);
@@ -981,7 +982,7 @@ body[data-animate-background=true] {
981982
justify-items: center;
982983
width: var(--icon-width);
983984
height: var(--icon-width);
984-
margin-bottom: 4px;
985+
margin-bottom: 6px;
985986
border-radius: var(--border-radius-lg);
986987
}
987988
.Tile_draggable {
@@ -1030,7 +1031,7 @@ body[data-animate-background=true] {
10301031
width: var(--icon-width);
10311032
text-align: center;
10321033
font-size: calc(10 * var(--px-in-rem));
1033-
line-height: 1.1;
1034+
line-height: calc(13 * var(--px-in-rem));
10341035
font-weight: 400;
10351036
overflow: hidden;
10361037
text-overflow: ellipsis;
@@ -1965,12 +1966,17 @@ body:not([data-platform-name]) .Button_button:active {
19651966
display: none;
19661967
}
19671968
.UpdateNotification_detailsContent {
1968-
padding-inline: var(--sp-2);
1969-
margin-top: var(--sp-2);
1969+
margin-top: var(--sp-4);
19701970
text-align: left;
1971+
max-width: 380px;
1972+
margin-left: auto;
1973+
margin-right: auto;
1974+
}
1975+
.UpdateNotification_title {
1976+
padding: 0.5rem 0;
19711977
}
19721978
.UpdateNotification_list {
1973-
margin-left: var(--sp-20);
1979+
margin-left: 1.5rem;
19741980
}
19751981
.UpdateNotification_list li {
19761982
list-style: disc;

Sources/ContentScopeScripts/dist/pages/new-tab/dist/index.js

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2525,9 +2525,7 @@
25252525
(cb) => {
25262526
if (!service.current) return;
25272527
return service.current.onConfig((event) => {
2528-
if (event.source === "manual") {
2529-
cb(event.data);
2530-
}
2528+
cb(event.data);
25312529
});
25322530
},
25332531
[service]
@@ -5889,7 +5887,7 @@
58895887
init_signals_module();
58905888
FavoritesMemo = C3(Favorites);
58915889
ROW_CAPACITY = 6;
5892-
ITEM_HEIGHT = 90;
5890+
ITEM_HEIGHT = 96;
58935891
ROW_GAP = 8;
58945892
}
58955893
});
@@ -7320,6 +7318,7 @@
73207318
inlineLink: "UpdateNotification_inlineLink",
73217319
summary: "UpdateNotification_summary",
73227320
detailsContent: "UpdateNotification_detailsContent",
7321+
title: "UpdateNotification_title",
73237322
list: "UpdateNotification_list",
73247323
dismiss: "UpdateNotification_dismiss"
73257324
};
@@ -7468,13 +7467,24 @@
74687467
}
74697468
}
74707469
);
7471-
return /* @__PURE__ */ _("details", { ref }, /* @__PURE__ */ _("summary", { tabIndex: -1, className: UpdateNotification_default.summary }, t4("updateNotification_updated_version", { version }), " ", inlineLink), /* @__PURE__ */ _("div", { id, class: UpdateNotification_default.detailsContent }, /* @__PURE__ */ _("ul", { class: UpdateNotification_default.list }, notes.map((note, index) => {
7472-
let trimmed = note.trim();
7470+
const chunks = [{ title: "", notes: [] }];
7471+
let index = 0;
7472+
for (const note of notes) {
7473+
const trimmed = note.trim();
7474+
if (!trimmed) continue;
74737475
if (trimmed.startsWith("\u2022")) {
7474-
trimmed = trimmed.slice(1).trim();
7476+
const bullet = trimmed.slice(1).trim();
7477+
chunks[index].notes.push(bullet);
7478+
} else {
7479+
chunks.push({ title: trimmed, notes: [] });
7480+
index += 1;
74757481
}
7476-
return /* @__PURE__ */ _("li", { key: note + index }, trimmed);
7477-
}))));
7482+
}
7483+
return /* @__PURE__ */ _("details", { ref }, /* @__PURE__ */ _("summary", { tabIndex: -1, className: UpdateNotification_default.summary }, t4("updateNotification_updated_version", { version }), " ", inlineLink), /* @__PURE__ */ _("div", { id, class: UpdateNotification_default.detailsContent }, chunks.map((chunk, index2) => {
7484+
return /* @__PURE__ */ _(b, { key: chunk.title + index2 }, chunk.title && /* @__PURE__ */ _("p", { class: UpdateNotification_default.title }, chunk.title), /* @__PURE__ */ _("ul", { class: UpdateNotification_default.list }, chunk.notes.map((note, index3) => {
7485+
return /* @__PURE__ */ _("li", { key: note + index3 }, note);
7486+
})));
7487+
})));
74787488
}
74797489
function WithoutNotes({ version }) {
74807490
const { t: t4 } = useTypedTranslationWith(
@@ -7511,7 +7521,7 @@
75117521
factory: () => factory6
75127522
});
75137523
function factory6() {
7514-
return /* @__PURE__ */ _(UpdateNotificationProvider, { "data-entry-point": "updateNotification" }, /* @__PURE__ */ _(UpdateNotificationConsumer, null));
7524+
return /* @__PURE__ */ _("div", { "data-entry-point": "updateNotification" }, /* @__PURE__ */ _(UpdateNotificationProvider, null, /* @__PURE__ */ _(UpdateNotificationConsumer, null)));
75157525
}
75167526
var init_updateNotification = __esm({
75177527
"pages/new-tab/app/entry-points/updateNotification.js"() {

build/integration/pages/new-tab/dist/index.css

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,7 @@ body[data-animate-background=true] {
954954
outline: none;
955955
padding-left: var(--sp-3);
956956
padding-right: var(--sp-3);
957+
height: 96px;
957958
}
958959
.Tile_item:focus-visible .Tile_icon {
959960
box-shadow: var(--focus-ring);
@@ -981,7 +982,7 @@ body[data-animate-background=true] {
981982
justify-items: center;
982983
width: var(--icon-width);
983984
height: var(--icon-width);
984-
margin-bottom: 4px;
985+
margin-bottom: 6px;
985986
border-radius: var(--border-radius-lg);
986987
}
987988
.Tile_draggable {
@@ -1030,7 +1031,7 @@ body[data-animate-background=true] {
10301031
width: var(--icon-width);
10311032
text-align: center;
10321033
font-size: calc(10 * var(--px-in-rem));
1033-
line-height: 1.1;
1034+
line-height: calc(13 * var(--px-in-rem));
10341035
font-weight: 400;
10351036
overflow: hidden;
10361037
text-overflow: ellipsis;
@@ -1965,12 +1966,17 @@ body:not([data-platform-name]) .Button_button:active {
19651966
display: none;
19661967
}
19671968
.UpdateNotification_detailsContent {
1968-
padding-inline: var(--sp-2);
1969-
margin-top: var(--sp-2);
1969+
margin-top: var(--sp-4);
19701970
text-align: left;
1971+
max-width: 380px;
1972+
margin-left: auto;
1973+
margin-right: auto;
1974+
}
1975+
.UpdateNotification_title {
1976+
padding: 0.5rem 0;
19711977
}
19721978
.UpdateNotification_list {
1973-
margin-left: var(--sp-20);
1979+
margin-left: 1.5rem;
19741980
}
19751981
.UpdateNotification_list li {
19761982
list-style: disc;

build/integration/pages/new-tab/dist/index.js

Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2525,9 +2525,7 @@
25252525
(cb) => {
25262526
if (!service.current) return;
25272527
return service.current.onConfig((event) => {
2528-
if (event.source === "manual") {
2529-
cb(event.data);
2530-
}
2528+
cb(event.data);
25312529
});
25322530
},
25332531
[service]
@@ -5894,7 +5892,7 @@
58945892
init_signals_module();
58955893
FavoritesMemo = C3(Favorites);
58965894
ROW_CAPACITY = 6;
5897-
ITEM_HEIGHT = 90;
5895+
ITEM_HEIGHT = 96;
58985896
ROW_GAP = 8;
58995897
}
59005898
});
@@ -7325,6 +7323,7 @@
73257323
inlineLink: "UpdateNotification_inlineLink",
73267324
summary: "UpdateNotification_summary",
73277325
detailsContent: "UpdateNotification_detailsContent",
7326+
title: "UpdateNotification_title",
73287327
list: "UpdateNotification_list",
73297328
dismiss: "UpdateNotification_dismiss"
73307329
};
@@ -7473,13 +7472,24 @@
74737472
}
74747473
}
74757474
);
7476-
return /* @__PURE__ */ _("details", { ref }, /* @__PURE__ */ _("summary", { tabIndex: -1, className: UpdateNotification_default.summary }, t4("updateNotification_updated_version", { version }), " ", inlineLink), /* @__PURE__ */ _("div", { id, class: UpdateNotification_default.detailsContent }, /* @__PURE__ */ _("ul", { class: UpdateNotification_default.list }, notes.map((note, index) => {
7477-
let trimmed = note.trim();
7475+
const chunks = [{ title: "", notes: [] }];
7476+
let index = 0;
7477+
for (const note of notes) {
7478+
const trimmed = note.trim();
7479+
if (!trimmed) continue;
74787480
if (trimmed.startsWith("\u2022")) {
7479-
trimmed = trimmed.slice(1).trim();
7481+
const bullet = trimmed.slice(1).trim();
7482+
chunks[index].notes.push(bullet);
7483+
} else {
7484+
chunks.push({ title: trimmed, notes: [] });
7485+
index += 1;
74807486
}
7481-
return /* @__PURE__ */ _("li", { key: note + index }, trimmed);
7482-
}))));
7487+
}
7488+
return /* @__PURE__ */ _("details", { ref }, /* @__PURE__ */ _("summary", { tabIndex: -1, className: UpdateNotification_default.summary }, t4("updateNotification_updated_version", { version }), " ", inlineLink), /* @__PURE__ */ _("div", { id, class: UpdateNotification_default.detailsContent }, chunks.map((chunk, index2) => {
7489+
return /* @__PURE__ */ _(b, { key: chunk.title + index2 }, chunk.title && /* @__PURE__ */ _("p", { class: UpdateNotification_default.title }, chunk.title), /* @__PURE__ */ _("ul", { class: UpdateNotification_default.list }, chunk.notes.map((note, index3) => {
7490+
return /* @__PURE__ */ _("li", { key: note + index3 }, note);
7491+
})));
7492+
})));
74837493
}
74847494
function WithoutNotes({ version }) {
74857495
const { t: t4 } = useTypedTranslationWith(
@@ -7516,7 +7526,7 @@
75167526
factory: () => factory6
75177527
});
75187528
function factory6() {
7519-
return /* @__PURE__ */ _(UpdateNotificationProvider, { "data-entry-point": "updateNotification" }, /* @__PURE__ */ _(UpdateNotificationConsumer, null));
7529+
return /* @__PURE__ */ _("div", { "data-entry-point": "updateNotification" }, /* @__PURE__ */ _(UpdateNotificationProvider, null, /* @__PURE__ */ _(UpdateNotificationConsumer, null)));
75207530
}
75217531
var init_updateNotification = __esm({
75227532
"pages/new-tab/app/entry-points/updateNotification.js"() {
@@ -11383,6 +11393,20 @@
1138311393
],
1138411394
version: "1.91"
1138511395
}
11396+
},
11397+
multipleSections: {
11398+
content: {
11399+
// prettier-ignore
11400+
notes: [
11401+
`\u2022 We're excited to introduce a new browsing feature - Fire Windows. These special windows work the same way as normal windows, except they isolate your activity from other browsing data and self-destruct when closed. This means you can use a Fire Window to browse without saving local history or to sign into a site with a different account. You can open a new Fire Window anytime from the Fire Button menu.`,
11402+
`\u2022 Try the new bookmark management view that opens in a tab for more robust bookmark organization.`,
11403+
`For Privacy Pro subscribers`,
11404+
`\u2022 VPN notifications are now available to help communicate VPN status.`,
11405+
`\u2022 Some apps aren't compatible with VPNs. You can now exclude these apps to use them while connected to the VPN.`,
11406+
`\u2022 Visit https://duckduckgo.com/pro for more information.`
11407+
],
11408+
version: "0.98.4"
11409+
}
1138611410
}
1138711411
};
1138811412

@@ -11966,11 +11990,11 @@
1196611990
];
1196711991
let updateNotification = { content: null };
1196811992
const isDelayed = url3.searchParams.has("update-notification-delay");
11969-
if (!isDelayed && url3.searchParams.get("update-notification") === "empty") {
11970-
updateNotification = updateNotificationExamples2.empty;
11971-
}
11972-
if (!isDelayed && url3.searchParams.get("update-notification") === "populated") {
11973-
updateNotification = updateNotificationExamples2.populated;
11993+
if (!isDelayed && url3.searchParams.has("update-notification")) {
11994+
const value = url3.searchParams.get("update-notification");
11995+
if (value && value in updateNotificationExamples2) {
11996+
updateNotification = updateNotificationExamples2[value];
11997+
}
1197411998
}
1197511999
const initial = {
1197612000
widgets: widgetsFromStorage,

build/windows/pages/new-tab/dist/index.css

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,7 @@ body[data-animate-background=true] {
954954
outline: none;
955955
padding-left: var(--sp-3);
956956
padding-right: var(--sp-3);
957+
height: 96px;
957958
}
958959
.Tile_item:focus-visible .Tile_icon {
959960
box-shadow: var(--focus-ring);
@@ -981,7 +982,7 @@ body[data-animate-background=true] {
981982
justify-items: center;
982983
width: var(--icon-width);
983984
height: var(--icon-width);
984-
margin-bottom: 4px;
985+
margin-bottom: 6px;
985986
border-radius: var(--border-radius-lg);
986987
}
987988
.Tile_draggable {
@@ -1030,7 +1031,7 @@ body[data-animate-background=true] {
10301031
width: var(--icon-width);
10311032
text-align: center;
10321033
font-size: calc(10 * var(--px-in-rem));
1033-
line-height: 1.1;
1034+
line-height: calc(13 * var(--px-in-rem));
10341035
font-weight: 400;
10351036
overflow: hidden;
10361037
text-overflow: ellipsis;
@@ -1965,12 +1966,17 @@ body:not([data-platform-name]) .Button_button:active {
19651966
display: none;
19661967
}
19671968
.UpdateNotification_detailsContent {
1968-
padding-inline: var(--sp-2);
1969-
margin-top: var(--sp-2);
1969+
margin-top: var(--sp-4);
19701970
text-align: left;
1971+
max-width: 380px;
1972+
margin-left: auto;
1973+
margin-right: auto;
1974+
}
1975+
.UpdateNotification_title {
1976+
padding: 0.5rem 0;
19711977
}
19721978
.UpdateNotification_list {
1973-
margin-left: var(--sp-20);
1979+
margin-left: 1.5rem;
19741980
}
19751981
.UpdateNotification_list li {
19761982
list-style: disc;

build/windows/pages/new-tab/dist/index.js

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2525,9 +2525,7 @@
25252525
(cb) => {
25262526
if (!service.current) return;
25272527
return service.current.onConfig((event) => {
2528-
if (event.source === "manual") {
2529-
cb(event.data);
2530-
}
2528+
cb(event.data);
25312529
});
25322530
},
25332531
[service]
@@ -5889,7 +5887,7 @@
58895887
init_signals_module();
58905888
FavoritesMemo = C3(Favorites);
58915889
ROW_CAPACITY = 6;
5892-
ITEM_HEIGHT = 90;
5890+
ITEM_HEIGHT = 96;
58935891
ROW_GAP = 8;
58945892
}
58955893
});
@@ -7320,6 +7318,7 @@
73207318
inlineLink: "UpdateNotification_inlineLink",
73217319
summary: "UpdateNotification_summary",
73227320
detailsContent: "UpdateNotification_detailsContent",
7321+
title: "UpdateNotification_title",
73237322
list: "UpdateNotification_list",
73247323
dismiss: "UpdateNotification_dismiss"
73257324
};
@@ -7468,13 +7467,24 @@
74687467
}
74697468
}
74707469
);
7471-
return /* @__PURE__ */ _("details", { ref }, /* @__PURE__ */ _("summary", { tabIndex: -1, className: UpdateNotification_default.summary }, t4("updateNotification_updated_version", { version }), " ", inlineLink), /* @__PURE__ */ _("div", { id, class: UpdateNotification_default.detailsContent }, /* @__PURE__ */ _("ul", { class: UpdateNotification_default.list }, notes.map((note, index) => {
7472-
let trimmed = note.trim();
7470+
const chunks = [{ title: "", notes: [] }];
7471+
let index = 0;
7472+
for (const note of notes) {
7473+
const trimmed = note.trim();
7474+
if (!trimmed) continue;
74737475
if (trimmed.startsWith("\u2022")) {
7474-
trimmed = trimmed.slice(1).trim();
7476+
const bullet = trimmed.slice(1).trim();
7477+
chunks[index].notes.push(bullet);
7478+
} else {
7479+
chunks.push({ title: trimmed, notes: [] });
7480+
index += 1;
74757481
}
7476-
return /* @__PURE__ */ _("li", { key: note + index }, trimmed);
7477-
}))));
7482+
}
7483+
return /* @__PURE__ */ _("details", { ref }, /* @__PURE__ */ _("summary", { tabIndex: -1, className: UpdateNotification_default.summary }, t4("updateNotification_updated_version", { version }), " ", inlineLink), /* @__PURE__ */ _("div", { id, class: UpdateNotification_default.detailsContent }, chunks.map((chunk, index2) => {
7484+
return /* @__PURE__ */ _(b, { key: chunk.title + index2 }, chunk.title && /* @__PURE__ */ _("p", { class: UpdateNotification_default.title }, chunk.title), /* @__PURE__ */ _("ul", { class: UpdateNotification_default.list }, chunk.notes.map((note, index3) => {
7485+
return /* @__PURE__ */ _("li", { key: note + index3 }, note);
7486+
})));
7487+
})));
74787488
}
74797489
function WithoutNotes({ version }) {
74807490
const { t: t4 } = useTypedTranslationWith(
@@ -7511,7 +7521,7 @@
75117521
factory: () => factory6
75127522
});
75137523
function factory6() {
7514-
return /* @__PURE__ */ _(UpdateNotificationProvider, { "data-entry-point": "updateNotification" }, /* @__PURE__ */ _(UpdateNotificationConsumer, null));
7524+
return /* @__PURE__ */ _("div", { "data-entry-point": "updateNotification" }, /* @__PURE__ */ _(UpdateNotificationProvider, null, /* @__PURE__ */ _(UpdateNotificationConsumer, null)));
75157525
}
75167526
var init_updateNotification = __esm({
75177527
"pages/new-tab/app/entry-points/updateNotification.js"() {

0 commit comments

Comments
 (0)