Skip to content

Commit 78cb938

Browse files
shakyShanegithub-actions[bot]
authored andcommitted
Release build 7.14.0 [ci release]
1 parent aef4243 commit 78cb938

File tree

46 files changed

+2750
-244
lines changed

Some content is hidden

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

46 files changed

+2750
-244
lines changed

CHANGELOG.txt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1 @@
1-
- Add brokerProtection to Android bundle (#1447)
2-
- ntp: activity widget (#1419)
3-
- ntp: implement burning of history items (#1456)
4-
- ntp: more SR feedback (#1449)
5-
- ntp: activity schema + burn animation (#1448)
6-
- Allow click actions to fail silently with an additional parameter (#1444)
7-
- ntp: customizer translations (#1439)
8-
- Support elements that only contain textContent, remove commas from the end of addresses (#1440)
9-
- Line-break element (#1433)
1+
- ntp: activity translations (RC1) (#1459)

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

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2384,6 +2384,10 @@ body:not([data-platform-name]) .Button_button:active {
23842384
display: flex;
23852385
justify-content: space-between;
23862386
align-items: center;
2387+
gap: 6px;
2388+
}
2389+
.CustomizerDrawerInner_header > * {
2390+
overflow: hidden;
23872391
}
23882392
.CustomizerDrawerInner_internal {
23892393
padding-top: 1rem;
@@ -2394,6 +2398,7 @@ body:not([data-platform-name]) .Button_button:active {
23942398
width: 24px;
23952399
height: 24px;
23962400
position: relative;
2401+
flex-shrink: 0;
23972402
color: var(--color-black-at-84);
23982403
background-color: var(--color-black-at-9);
23992404
}
@@ -2452,7 +2457,6 @@ body:not([data-platform-name]) .Button_button:active {
24522457
.CustomizerDrawerInner_bgListItem {
24532458
display: grid;
24542459
grid-row-gap: 4px;
2455-
white-space: nowrap;
24562460
position: relative;
24572461
}
24582462
.CustomizerDrawerInner_bgListItem:hover .CustomizerDrawerInner_deleteBtn {
@@ -2609,9 +2613,14 @@ body:not([data-platform-name]) .Button_button:active {
26092613
--chip-size-half: calc(var(--chip-size) / 2);
26102614
}
26112615
.BrowserThemeSection_themeItem {
2612-
display: grid;
2613-
justify-items: center;
2614-
grid-row-gap: 4px;
2616+
width: 42px;
2617+
}
2618+
.BrowserThemeSection_themeItem span {
2619+
margin-top: 6px;
2620+
text-align: center;
2621+
overflow: hidden;
2622+
text-overflow: ellipsis;
2623+
display: block;
26152624
}
26162625
.BrowserThemeSection_themeButton {
26172626
display: block;

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

Lines changed: 12 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -20814,11 +20814,14 @@
2081420814
});
2081520815

2081620816
// pages/new-tab/app/activity/components/Activity.js
20817-
function Activity({ didClick, expansion, toggle, trackerCount, itemCount, batched, children }) {
20817+
function Activity({ expansion, toggle, trackerCount, itemCount, batched, children }) {
2081820818
const expanded = expansion === "expanded";
2081920819
const WIDGET_ID = g2();
2082020820
const TOGGLE_ID = g2();
20821-
return /* @__PURE__ */ g(k, null, /* @__PURE__ */ g("div", { class: Activity_default.root, onClick: didClick }, /* @__PURE__ */ g(
20821+
const { didClick } = x2(ActivityInteractionsContext);
20822+
const ref = A2(null);
20823+
useOnMiddleClick(ref, didClick);
20824+
return /* @__PURE__ */ g(k, null, /* @__PURE__ */ g("div", { class: Activity_default.root, onClick: didClick, ref }, /* @__PURE__ */ g(
2082220825
ActivityHeading,
2082320826
{
2082420827
trackerCount,
@@ -20891,30 +20894,13 @@
2089120894
function ActivityConfigured({ expansion, toggle, children }) {
2089220895
const batched = useBatchedActivityApi();
2089320896
const { activity } = x2(NormalizedDataContext);
20894-
const { didClick } = x2(ActivityInteractionsContext);
20895-
const ref = A2(
20896-
/** @type {HTMLUListElement|null} */
20897-
null
20898-
);
20899-
useOnMiddleClick(ref, didClick);
2090020897
const count = useComputed(() => {
2090120898
return activity.value.totalTrackers;
2090220899
});
2090320900
const itemCount = useComputed(() => {
2090420901
return Object.keys(activity.value.items).length;
2090520902
});
20906-
return /* @__PURE__ */ g(
20907-
Activity,
20908-
{
20909-
batched,
20910-
itemCount: itemCount.value,
20911-
trackerCount: count.value,
20912-
expansion,
20913-
toggle,
20914-
didClick
20915-
},
20916-
children
20917-
);
20903+
return /* @__PURE__ */ g(Activity, { batched, itemCount: itemCount.value, trackerCount: count.value, expansion, toggle }, children);
2091820904
}
2091920905
function ActivityCustomized() {
2092020906
const { t: t4 } = useTypedTranslationWith(
@@ -26734,7 +26720,7 @@
2673426720
onClick: () => props.setTheme({ theme: "light" })
2673526721
},
2673626722
/* @__PURE__ */ g("span", { class: "sr-only" }, t4("customizer_browser_theme_label", { type: "light" }))
26737-
), t4("customizer_browser_theme_light")), /* @__PURE__ */ g("li", { class: BrowserThemeSection_default.themeItem }, /* @__PURE__ */ g(
26723+
), /* @__PURE__ */ g("span", null, t4("customizer_browser_theme_light"))), /* @__PURE__ */ g("li", { class: BrowserThemeSection_default.themeItem }, /* @__PURE__ */ g(
2673826724
"button",
2673926725
{
2674026726
class: (0, import_classnames19.default)(BrowserThemeSection_default.themeButton, BrowserThemeSection_default.themeButtonDark),
@@ -26745,7 +26731,7 @@
2674526731
onClick: () => props.setTheme({ theme: "dark" })
2674626732
},
2674726733
/* @__PURE__ */ g("span", { class: "sr-only" }, t4("customizer_browser_theme_label", { type: "dark" }))
26748-
), t4("customizer_browser_theme_dark")), /* @__PURE__ */ g("li", { class: BrowserThemeSection_default.themeItem }, /* @__PURE__ */ g(
26734+
), /* @__PURE__ */ g("span", null, t4("customizer_browser_theme_dark"))), /* @__PURE__ */ g("li", { class: BrowserThemeSection_default.themeItem }, /* @__PURE__ */ g(
2674926735
"button",
2675026736
{
2675126737
class: (0, import_classnames19.default)(BrowserThemeSection_default.themeButton, BrowserThemeSection_default.themeButtonSystem),
@@ -26756,7 +26742,7 @@
2675626742
onClick: () => props.setTheme({ theme: "system" })
2675726743
},
2675826744
/* @__PURE__ */ g("span", { class: "sr-only" }, t4("customizer_browser_theme_label", { type: "system" }))
26759-
), t4("customizer_browser_theme_system")));
26745+
), /* @__PURE__ */ g("span", null, t4("customizer_browser_theme_system"))));
2676026746
}
2676126747

2676226748
// pages/new-tab/app/customizer/components/VisibilityMenuSection.js
@@ -29463,46 +29449,14 @@
2946329449
var activityExamples = {
2946429450
"activity.empty": {
2946529451
factory: () => {
29466-
return /* @__PURE__ */ g(
29467-
Activity,
29468-
{
29469-
expansion: "expanded",
29470-
itemCount: 0,
29471-
trackerCount: 0,
29472-
toggle: noop("toggle"),
29473-
didClick: noop("did click"),
29474-
batched: false
29475-
}
29476-
);
29452+
return /* @__PURE__ */ g(Activity, { expansion: "expanded", itemCount: 0, trackerCount: 0, toggle: noop("toggle"), batched: false });
2947729453
}
2947829454
},
2947929455
"activity.few": {
29480-
factory: () => /* @__PURE__ */ g(
29481-
Activity,
29482-
{
29483-
expansion: "expanded",
29484-
itemCount: 10,
29485-
trackerCount: 20,
29486-
toggle: noop("toggle"),
29487-
didClick: noop("did click"),
29488-
batched: false
29489-
},
29490-
/* @__PURE__ */ g(Mock, { size: 3 }, /* @__PURE__ */ g(ActivityBody, { canBurn: false, visibility: "visible" }))
29491-
)
29456+
factory: () => /* @__PURE__ */ g(Activity, { expansion: "expanded", itemCount: 10, trackerCount: 20, toggle: noop("toggle"), batched: false }, /* @__PURE__ */ g(Mock, { size: 3 }, /* @__PURE__ */ g(ActivityBody, { canBurn: false, visibility: "visible" })))
2949229457
},
2949329458
"activity.noTrackers": {
29494-
factory: () => /* @__PURE__ */ g(
29495-
Activity,
29496-
{
29497-
expansion: "expanded",
29498-
itemCount: 20,
29499-
trackerCount: 0,
29500-
toggle: noop("toggle"),
29501-
didClick: noop("did click"),
29502-
batched: false
29503-
},
29504-
/* @__PURE__ */ g(Mock, { size: 1 }, /* @__PURE__ */ g(ActivityBody, { canBurn: false, visibility: "visible" }))
29505-
)
29459+
factory: () => /* @__PURE__ */ g(Activity, { expansion: "expanded", itemCount: 20, trackerCount: 0, toggle: noop("toggle"), batched: false }, /* @__PURE__ */ g(Mock, { size: 1 }, /* @__PURE__ */ g(ActivityBody, { canBurn: false, visibility: "visible" })))
2950629460
}
2950729461
};
2950829462
function Mock({ children, size }) {

Sources/ContentScopeScripts/dist/pages/new-tab/locales/de/new-tab.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,5 +271,53 @@
271271
"customizer_image_delete" : {
272272
"title" : "Bild {number} löschen",
273273
"note" : "Label text on a button that deletes an image. {number} will be replaced with a numeric reference of 1-8, eg: 'Delete image 1'"
274+
},
275+
"activity_noRecent_title" : {
276+
"title" : "Keine kürzliche Browsing-Aktivität",
277+
"note" : "Placeholder to indicate that no browsing activity was seen in the last 7 days"
278+
},
279+
"activity_noRecent_subtitle" : {
280+
"title" : "Zuletzt besuchte Seiten werden hier angezeigt. Browse weiter, um zu sehen, wie viele Tracker wir blockieren.",
281+
"note" : "Shown in the place a list of browsing history entries will be displayed."
282+
},
283+
"activity_no_trackers" : {
284+
"title" : "Keine Tracker gefunden",
285+
"note" : "Placeholder message indicating that no trackers are detected"
286+
},
287+
"activity_no_trackers_blocked" : {
288+
"title" : "Keine Tracker blockiert",
289+
"note" : "Placeholder message indicating that no trackers are blocked"
290+
},
291+
"activity_countBlockedPlural" : {
292+
"title" : "<b>{count}</b> Tracking-Versuche blockiert",
293+
"note" : "The main headline indicating that more than 1 attempt has been blocked. Eg: '2 tracking attempts blocked'"
294+
},
295+
"activity_favoriteAdd" : {
296+
"title" : "{domain} zu Favoriten hinzufügen",
297+
"note" : "Button label, allows the user to add the specified domain to their favorites"
298+
},
299+
"activity_favoriteRemove" : {
300+
"title" : "{domain} aus Favoriten entfernen",
301+
"note" : "Button label, allows the user to remove the specified domain from their favorites"
302+
},
303+
"activity_itemRemove" : {
304+
"title" : "{domain} aus dem Verlauf entfernen",
305+
"note" : "Button label for clearing browsing history for a given domain."
306+
},
307+
"activity_burn" : {
308+
"title" : "Browserverlauf und Daten für {domain} löschen",
309+
"note" : "Button label for clearing browsing history and data exclusively for the specified domain"
310+
},
311+
"activity_menuTitle" : {
312+
"title" : "Aktuelle Aktivitäten",
313+
"note" : "Used as a label in a customization menu"
314+
},
315+
"activity_show_more_history" : {
316+
"title" : "{count} weitere anzeigen",
317+
"note" : "Button label that expands the list of browsing history with the specified count of additional items. Example: 'Show 5 more'"
318+
},
319+
"activity_show_less_history" : {
320+
"title" : "Zusätzliches ausblenden",
321+
"note" : "Button label that hides the expanded browsing history items."
274322
}
275323
}

Sources/ContentScopeScripts/dist/pages/new-tab/locales/es/new-tab.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,5 +271,53 @@
271271
"customizer_image_delete" : {
272272
"title" : "Eliminar imagen {number}",
273273
"note" : "Label text on a button that deletes an image. {number} will be replaced with a numeric reference of 1-8, eg: 'Delete image 1'"
274+
},
275+
"activity_noRecent_title" : {
276+
"title" : "No hay actividad de navegación reciente",
277+
"note" : "Placeholder to indicate that no browsing activity was seen in the last 7 days"
278+
},
279+
"activity_noRecent_subtitle" : {
280+
"title" : "Los sitios visitados recientemente aparecen aquí. Sigue navegando para ver cuántos rastreadores hemos bloqueado.",
281+
"note" : "Shown in the place a list of browsing history entries will be displayed."
282+
},
283+
"activity_no_trackers" : {
284+
"title" : "No se han encontrado rastreadores",
285+
"note" : "Placeholder message indicating that no trackers are detected"
286+
},
287+
"activity_no_trackers_blocked" : {
288+
"title" : "No se han bloqueado rastreadores",
289+
"note" : "Placeholder message indicating that no trackers are blocked"
290+
},
291+
"activity_countBlockedPlural" : {
292+
"title" : "<b>{count}</b> intentos de rastreo bloqueados",
293+
"note" : "The main headline indicating that more than 1 attempt has been blocked. Eg: '2 tracking attempts blocked'"
294+
},
295+
"activity_favoriteAdd" : {
296+
"title" : "Añadir {domain} a favoritos",
297+
"note" : "Button label, allows the user to add the specified domain to their favorites"
298+
},
299+
"activity_favoriteRemove" : {
300+
"title" : "Eliminar {domain} de favoritos",
301+
"note" : "Button label, allows the user to remove the specified domain from their favorites"
302+
},
303+
"activity_itemRemove" : {
304+
"title" : "Eliminar {domain} del historial",
305+
"note" : "Button label for clearing browsing history for a given domain."
306+
},
307+
"activity_burn" : {
308+
"title" : "Borra el historial de navegación y los datos de {domain}",
309+
"note" : "Button label for clearing browsing history and data exclusively for the specified domain"
310+
},
311+
"activity_menuTitle" : {
312+
"title" : "Actividad reciente",
313+
"note" : "Used as a label in a customization menu"
314+
},
315+
"activity_show_more_history" : {
316+
"title" : "Mostrar {count} más",
317+
"note" : "Button label that expands the list of browsing history with the specified count of additional items. Example: 'Show 5 more'"
318+
},
319+
"activity_show_less_history" : {
320+
"title" : "Ocultar adicional",
321+
"note" : "Button label that hides the expanded browsing history items."
274322
}
275323
}

Sources/ContentScopeScripts/dist/pages/new-tab/locales/fr/new-tab.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,5 +271,53 @@
271271
"customizer_image_delete" : {
272272
"title" : "Supprimer l'image {number}",
273273
"note" : "Label text on a button that deletes an image. {number} will be replaced with a numeric reference of 1-8, eg: 'Delete image 1'"
274+
},
275+
"activity_noRecent_title" : {
276+
"title" : "Aucune activité de navigation récente",
277+
"note" : "Placeholder to indicate that no browsing activity was seen in the last 7 days"
278+
},
279+
"activity_noRecent_subtitle" : {
280+
"title" : "Les sites récemment visités apparaîtront ici. Continuez à naviguer pour voir combien de traqueurs nous bloquons.",
281+
"note" : "Shown in the place a list of browsing history entries will be displayed."
282+
},
283+
"activity_no_trackers" : {
284+
"title" : "Aucun traqueur trouvé",
285+
"note" : "Placeholder message indicating that no trackers are detected"
286+
},
287+
"activity_no_trackers_blocked" : {
288+
"title" : "Aucun traqueur bloqué",
289+
"note" : "Placeholder message indicating that no trackers are blocked"
290+
},
291+
"activity_countBlockedPlural" : {
292+
"title" : "<b>{count}</b> tentative(s) de pistage bloquée(s)",
293+
"note" : "The main headline indicating that more than 1 attempt has been blocked. Eg: '2 tracking attempts blocked'"
294+
},
295+
"activity_favoriteAdd" : {
296+
"title" : "Ajouter {domain} aux favoris",
297+
"note" : "Button label, allows the user to add the specified domain to their favorites"
298+
},
299+
"activity_favoriteRemove" : {
300+
"title" : "Supprimer {domain} des favoris",
301+
"note" : "Button label, allows the user to remove the specified domain from their favorites"
302+
},
303+
"activity_itemRemove" : {
304+
"title" : "Supprimer {domain} de l’historique",
305+
"note" : "Button label for clearing browsing history for a given domain."
306+
},
307+
"activity_burn" : {
308+
"title" : "Effacer l'historique de navigation et les données pour {domain}",
309+
"note" : "Button label for clearing browsing history and data exclusively for the specified domain"
310+
},
311+
"activity_menuTitle" : {
312+
"title" : "Activité récente",
313+
"note" : "Used as a label in a customization menu"
314+
},
315+
"activity_show_more_history" : {
316+
"title" : "Afficher {count} de plus",
317+
"note" : "Button label that expands the list of browsing history with the specified count of additional items. Example: 'Show 5 more'"
318+
},
319+
"activity_show_less_history" : {
320+
"title" : "Masquer les éléments supplémentaires",
321+
"note" : "Button label that hides the expanded browsing history items."
274322
}
275323
}

0 commit comments

Comments
 (0)