|
2525 | 2525 | (cb) => { |
2526 | 2526 | if (!service.current) return; |
2527 | 2527 | return service.current.onConfig((event) => { |
2528 | | - if (event.source === "manual") { |
2529 | | - cb(event.data); |
2530 | | - } |
| 2528 | + cb(event.data); |
2531 | 2529 | }); |
2532 | 2530 | }, |
2533 | 2531 | [service] |
|
5894 | 5892 | init_signals_module(); |
5895 | 5893 | FavoritesMemo = C3(Favorites); |
5896 | 5894 | ROW_CAPACITY = 6; |
5897 | | - ITEM_HEIGHT = 90; |
| 5895 | + ITEM_HEIGHT = 96; |
5898 | 5896 | ROW_GAP = 8; |
5899 | 5897 | } |
5900 | 5898 | }); |
|
7325 | 7323 | inlineLink: "UpdateNotification_inlineLink", |
7326 | 7324 | summary: "UpdateNotification_summary", |
7327 | 7325 | detailsContent: "UpdateNotification_detailsContent", |
| 7326 | + title: "UpdateNotification_title", |
7328 | 7327 | list: "UpdateNotification_list", |
7329 | 7328 | dismiss: "UpdateNotification_dismiss" |
7330 | 7329 | }; |
|
7473 | 7472 | } |
7474 | 7473 | } |
7475 | 7474 | ); |
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; |
7478 | 7480 | 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; |
7480 | 7486 | } |
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 | + }))); |
7483 | 7493 | } |
7484 | 7494 | function WithoutNotes({ version }) { |
7485 | 7495 | const { t: t4 } = useTypedTranslationWith( |
|
7516 | 7526 | factory: () => factory6 |
7517 | 7527 | }); |
7518 | 7528 | 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))); |
7520 | 7530 | } |
7521 | 7531 | var init_updateNotification = __esm({ |
7522 | 7532 | "pages/new-tab/app/entry-points/updateNotification.js"() { |
|
11383 | 11393 | ], |
11384 | 11394 | version: "1.91" |
11385 | 11395 | } |
| 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 | + } |
11386 | 11410 | } |
11387 | 11411 | }; |
11388 | 11412 |
|
@@ -11966,11 +11990,11 @@ |
11966 | 11990 | ]; |
11967 | 11991 | let updateNotification = { content: null }; |
11968 | 11992 | 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 | + } |
11974 | 11998 | } |
11975 | 11999 | const initial = { |
11976 | 12000 | widgets: widgetsFromStorage, |
|
0 commit comments