Skip to content

Commit 5e97cb0

Browse files
noisysocksgithub-actions[bot]
authored andcommitted
Release build 10.15.0 [ci release]
1 parent 0265bdf commit 5e97cb0

File tree

25 files changed

+103
-47
lines changed

25 files changed

+103
-47
lines changed

CHANGELOG.txt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
- NTP Omnibar: Adjust focus ring styling and remove it when typing (#1838)
2-
- Use tag instead of hash to fix updating (#1816)
3-
- Refactor TabSwitcher to use CSS for blob and CSS grid for sizing (#1840)
4-
- Use rgba() for disabled text color in AiChatForm styles (#1837)
5-
- Grow container when focused to accomodate focus ring (#1839)
6-
- NTP: Omnibar suffix text (#1831)
7-
- NTP: Add Duck.ai toggle to Customize drawer (#1832)
8-
- cache the result of isAppleSilicon() (#1828)
1+
- Add GlobeIcon for visit input suffix in SearchForm (#1844)
2+
- Add global ai toggle to omnibar config (#1845)
3+
- Update omnibar widget design and copy (#1843)

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,9 @@ body[data-animate-background=true] {
321321
width: 100%;
322322
max-width: calc(504 * var(--px-in-rem));
323323
}
324+
[data-entry-point=omnibar] {
325+
max-width: calc(620 * var(--px-in-rem));
326+
}
324327
.vertical-space {
325328
padding-top: 1rem;
326329
padding-bottom: 1rem;
@@ -1473,6 +1476,7 @@ body:not([data-platform-name]) .Button_button:active {
14731476
border: none;
14741477
box-sizing: content-box;
14751478
color: var(--ntp-text-normal);
1479+
font-weight: 500;
14761480
max-height: 10lh;
14771481
padding: 11px 15px 0;
14781482
resize: none;
@@ -1528,7 +1532,6 @@ body:not([data-platform-name]) .Button_button:active {
15281532
background: var(--ntp-surface-tertiary);
15291533
border-radius: 12px;
15301534
box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1), 0px 4px 8px 0px rgba(0, 0, 0, 0.08);
1531-
margin: 0 calc(-1 * var(--sp-1));
15321535
overflow: hidden;
15331536
position: relative;
15341537
transition: height 200ms ease;
@@ -1564,7 +1567,7 @@ body:not([data-platform-name]) .Button_button:active {
15641567
}
15651568
.Omnibar_logo {
15661569
margin-bottom: var(--sp-4);
1567-
width: 123px;
1570+
width: 164px;
15681571
}
15691572

15701573
/* pages/new-tab/app/omnibar/components/SearchForm.module.css */
@@ -1581,6 +1584,7 @@ body:not([data-platform-name]) .Button_button:active {
15811584
background: none;
15821585
border: none;
15831586
color: var(--ntp-text-normal);
1587+
font-weight: 500;
15841588
height: var(--sp-8);
15851589
left: var(--sp-1);
15861590
padding-bottom: 0;

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8441,7 +8441,7 @@
84418441
target: "same-tab"
84428442
});
84438443
};
8444-
return /* @__PURE__ */ _("form", { class: SearchForm_default.form, onBlur: handleBlur, onSubmit: handleSubmit }, /* @__PURE__ */ _("div", { class: SearchForm_default.inputContainer, style: { "--suffix-text-width": `${measureText(inputSuffixText)}px` } }, /* @__PURE__ */ _(SearchIcon, { inert: true }), /* @__PURE__ */ _(
8444+
return /* @__PURE__ */ _("form", { class: SearchForm_default.form, onBlur: handleBlur, onSubmit: handleSubmit }, /* @__PURE__ */ _("div", { class: SearchForm_default.inputContainer, style: { "--suffix-text-width": `${measureText(inputSuffixText)}px` } }, inputSuffix?.kind === "visit" ? /* @__PURE__ */ _(GlobeIcon, { inert: true }) : /* @__PURE__ */ _(SearchIcon, { inert: true }), /* @__PURE__ */ _(
84458445
"input",
84468446
{
84478447
ref: inputRef,
@@ -8626,14 +8626,17 @@
86268626
}
86278627
return null;
86288628
}
8629-
function OmnibarReadyState({ config: { enableAi = true, mode } }) {
8629+
function OmnibarReadyState({ config: { enableAi = true, showAiSetting = true, mode } }) {
86308630
const { t: t4 } = useTypedTranslationWith(
86318631
/** @type {Strings} */
86328632
{}
86338633
);
86348634
const { settingsLinks } = x2(CustomizerContext);
86358635
const { setMode, setEnableAi } = x2(OmnibarContext);
86368636
y2(() => {
8637+
if (!showAiSetting) {
8638+
return;
8639+
}
86378640
settingsLinks.value = {
86388641
...settingsLinks.value,
86398642
duckAi: {
@@ -8646,7 +8649,7 @@
86468649
const { duckAi: _5, ...rest } = settingsLinks.value;
86478650
settingsLinks.value = rest;
86488651
};
8649-
}, [enableAi]);
8652+
}, [enableAi, showAiSetting]);
86508653
return /* @__PURE__ */ _(Omnibar, { mode, setMode, enableAi });
86518654
}
86528655
var init_OmnibarConsumer = __esm({
@@ -29169,7 +29172,7 @@
2916929172
description: "Title of the omnibar widget in the customizer panel."
2917029173
},
2917129174
omnibar_aiChatFormPlaceholder: {
29172-
title: "Chat privately with Duck.ai",
29175+
title: "Ask privately",
2917329176
description: "Placeholder text for the AI chat input field."
2917429177
},
2917529178
omnibar_aiChatFormSubmitButtonLabel: {
@@ -29193,7 +29196,7 @@
2919329196
description: "Label for the AI chat tab."
2919429197
},
2919529198
omnibar_searchFormPlaceholder: {
29196-
title: "Search or enter address",
29199+
title: "Search privately",
2919729200
description: "Placeholder text for the search input field."
2919829201
},
2919929202
omnibar_hideDuckAi: {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
"description": "Title of the omnibar widget in the customizer panel."
131131
},
132132
"omnibar_aiChatFormPlaceholder": {
133-
"title": "Chat privately with Duck.ai",
133+
"title": "Ask privately",
134134
"description": "Placeholder text for the AI chat input field."
135135
},
136136
"omnibar_aiChatFormSubmitButtonLabel": {
@@ -154,7 +154,7 @@
154154
"description": "Label for the AI chat tab."
155155
},
156156
"omnibar_searchFormPlaceholder": {
157-
"title": "Search or enter address",
157+
"title": "Search privately",
158158
"description": "Placeholder text for the search input field."
159159
},
160160
"omnibar_hideDuckAi": {

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,9 @@ body[data-animate-background=true] {
321321
width: 100%;
322322
max-width: calc(504 * var(--px-in-rem));
323323
}
324+
[data-entry-point=omnibar] {
325+
max-width: calc(620 * var(--px-in-rem));
326+
}
324327
.vertical-space {
325328
padding-top: 1rem;
326329
padding-bottom: 1rem;
@@ -1473,6 +1476,7 @@ body:not([data-platform-name]) .Button_button:active {
14731476
border: none;
14741477
box-sizing: content-box;
14751478
color: var(--ntp-text-normal);
1479+
font-weight: 500;
14761480
max-height: 10lh;
14771481
padding: 11px 15px 0;
14781482
resize: none;
@@ -1528,7 +1532,6 @@ body:not([data-platform-name]) .Button_button:active {
15281532
background: var(--ntp-surface-tertiary);
15291533
border-radius: 12px;
15301534
box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1), 0px 4px 8px 0px rgba(0, 0, 0, 0.08);
1531-
margin: 0 calc(-1 * var(--sp-1));
15321535
overflow: hidden;
15331536
position: relative;
15341537
transition: height 200ms ease;
@@ -1564,7 +1567,7 @@ body:not([data-platform-name]) .Button_button:active {
15641567
}
15651568
.Omnibar_logo {
15661569
margin-bottom: var(--sp-4);
1567-
width: 123px;
1570+
width: 164px;
15681571
}
15691572

15701573
/* pages/new-tab/app/omnibar/components/SearchForm.module.css */
@@ -1581,6 +1584,7 @@ body:not([data-platform-name]) .Button_button:active {
15811584
background: none;
15821585
border: none;
15831586
color: var(--ntp-text-normal);
1587+
font-weight: 500;
15841588
height: var(--sp-8);
15851589
left: var(--sp-1);
15861590
padding-bottom: 0;

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

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8446,7 +8446,7 @@
84468446
target: "same-tab"
84478447
});
84488448
};
8449-
return /* @__PURE__ */ _("form", { class: SearchForm_default.form, onBlur: handleBlur, onSubmit: handleSubmit }, /* @__PURE__ */ _("div", { class: SearchForm_default.inputContainer, style: { "--suffix-text-width": `${measureText(inputSuffixText)}px` } }, /* @__PURE__ */ _(SearchIcon, { inert: true }), /* @__PURE__ */ _(
8449+
return /* @__PURE__ */ _("form", { class: SearchForm_default.form, onBlur: handleBlur, onSubmit: handleSubmit }, /* @__PURE__ */ _("div", { class: SearchForm_default.inputContainer, style: { "--suffix-text-width": `${measureText(inputSuffixText)}px` } }, inputSuffix?.kind === "visit" ? /* @__PURE__ */ _(GlobeIcon, { inert: true }) : /* @__PURE__ */ _(SearchIcon, { inert: true }), /* @__PURE__ */ _(
84508450
"input",
84518451
{
84528452
ref: inputRef,
@@ -8631,14 +8631,17 @@
86318631
}
86328632
return null;
86338633
}
8634-
function OmnibarReadyState({ config: { enableAi = true, mode } }) {
8634+
function OmnibarReadyState({ config: { enableAi = true, showAiSetting = true, mode } }) {
86358635
const { t: t4 } = useTypedTranslationWith(
86368636
/** @type {Strings} */
86378637
{}
86388638
);
86398639
const { settingsLinks } = x2(CustomizerContext);
86408640
const { setMode, setEnableAi } = x2(OmnibarContext);
86418641
y2(() => {
8642+
if (!showAiSetting) {
8643+
return;
8644+
}
86428645
settingsLinks.value = {
86438646
...settingsLinks.value,
86448647
duckAi: {
@@ -8651,7 +8654,7 @@
86518654
const { duckAi: _5, ...rest } = settingsLinks.value;
86528655
settingsLinks.value = rest;
86538656
};
8654-
}, [enableAi]);
8657+
}, [enableAi, showAiSetting]);
86558658
return /* @__PURE__ */ _(Omnibar, { mode, setMode, enableAi });
86568659
}
86578660
var init_OmnibarConsumer = __esm({
@@ -29182,7 +29185,7 @@
2918229185
description: "Title of the omnibar widget in the customizer panel."
2918329186
},
2918429187
omnibar_aiChatFormPlaceholder: {
29185-
title: "Chat privately with Duck.ai",
29188+
title: "Ask privately",
2918629189
description: "Placeholder text for the AI chat input field."
2918729190
},
2918829191
omnibar_aiChatFormSubmitButtonLabel: {
@@ -29206,7 +29209,7 @@
2920629209
description: "Label for the AI chat tab."
2920729210
},
2920829211
omnibar_searchFormPlaceholder: {
29209-
title: "Search or enter address",
29212+
title: "Search privately",
2921029213
description: "Placeholder text for the search input field."
2921129214
},
2921229215
omnibar_hideDuckAi: {
@@ -33167,6 +33170,10 @@
3316733170
if (enableAiOverride === "true" || enableAiOverride === "false") {
3316833171
config.enableAi = enableAiOverride === "true";
3316933172
}
33173+
const showAiSettingOverride = url5.searchParams.get("omnibar.showAiSetting");
33174+
if (showAiSettingOverride === "true" || showAiSettingOverride === "false") {
33175+
config.showAiSetting = showAiSettingOverride === "true";
33176+
}
3317033177
return config;
3317133178
}
3317233179
case "omnibar_getSuggestions": {

build/integration/pages/new-tab/locales/en/new-tab.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
"description": "Title of the omnibar widget in the customizer panel."
131131
},
132132
"omnibar_aiChatFormPlaceholder": {
133-
"title": "Chat privately with Duck.ai",
133+
"title": "Ask privately",
134134
"description": "Placeholder text for the AI chat input field."
135135
},
136136
"omnibar_aiChatFormSubmitButtonLabel": {
@@ -154,7 +154,7 @@
154154
"description": "Label for the AI chat tab."
155155
},
156156
"omnibar_searchFormPlaceholder": {
157-
"title": "Search or enter address",
157+
"title": "Search privately",
158158
"description": "Placeholder text for the search input field."
159159
},
160160
"omnibar_hideDuckAi": {

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,9 @@ body[data-animate-background=true] {
321321
width: 100%;
322322
max-width: calc(504 * var(--px-in-rem));
323323
}
324+
[data-entry-point=omnibar] {
325+
max-width: calc(620 * var(--px-in-rem));
326+
}
324327
.vertical-space {
325328
padding-top: 1rem;
326329
padding-bottom: 1rem;
@@ -1473,6 +1476,7 @@ body:not([data-platform-name]) .Button_button:active {
14731476
border: none;
14741477
box-sizing: content-box;
14751478
color: var(--ntp-text-normal);
1479+
font-weight: 500;
14761480
max-height: 10lh;
14771481
padding: 11px 15px 0;
14781482
resize: none;
@@ -1528,7 +1532,6 @@ body:not([data-platform-name]) .Button_button:active {
15281532
background: var(--ntp-surface-tertiary);
15291533
border-radius: 12px;
15301534
box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1), 0px 4px 8px 0px rgba(0, 0, 0, 0.08);
1531-
margin: 0 calc(-1 * var(--sp-1));
15321535
overflow: hidden;
15331536
position: relative;
15341537
transition: height 200ms ease;
@@ -1564,7 +1567,7 @@ body:not([data-platform-name]) .Button_button:active {
15641567
}
15651568
.Omnibar_logo {
15661569
margin-bottom: var(--sp-4);
1567-
width: 123px;
1570+
width: 164px;
15681571
}
15691572

15701573
/* pages/new-tab/app/omnibar/components/SearchForm.module.css */
@@ -1581,6 +1584,7 @@ body:not([data-platform-name]) .Button_button:active {
15811584
background: none;
15821585
border: none;
15831586
color: var(--ntp-text-normal);
1587+
font-weight: 500;
15841588
height: var(--sp-8);
15851589
left: var(--sp-1);
15861590
padding-bottom: 0;

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8441,7 +8441,7 @@
84418441
target: "same-tab"
84428442
});
84438443
};
8444-
return /* @__PURE__ */ _("form", { class: SearchForm_default.form, onBlur: handleBlur, onSubmit: handleSubmit }, /* @__PURE__ */ _("div", { class: SearchForm_default.inputContainer, style: { "--suffix-text-width": `${measureText(inputSuffixText)}px` } }, /* @__PURE__ */ _(SearchIcon, { inert: true }), /* @__PURE__ */ _(
8444+
return /* @__PURE__ */ _("form", { class: SearchForm_default.form, onBlur: handleBlur, onSubmit: handleSubmit }, /* @__PURE__ */ _("div", { class: SearchForm_default.inputContainer, style: { "--suffix-text-width": `${measureText(inputSuffixText)}px` } }, inputSuffix?.kind === "visit" ? /* @__PURE__ */ _(GlobeIcon, { inert: true }) : /* @__PURE__ */ _(SearchIcon, { inert: true }), /* @__PURE__ */ _(
84458445
"input",
84468446
{
84478447
ref: inputRef,
@@ -8626,14 +8626,17 @@
86268626
}
86278627
return null;
86288628
}
8629-
function OmnibarReadyState({ config: { enableAi = true, mode } }) {
8629+
function OmnibarReadyState({ config: { enableAi = true, showAiSetting = true, mode } }) {
86308630
const { t: t4 } = useTypedTranslationWith(
86318631
/** @type {Strings} */
86328632
{}
86338633
);
86348634
const { settingsLinks } = x2(CustomizerContext);
86358635
const { setMode, setEnableAi } = x2(OmnibarContext);
86368636
y2(() => {
8637+
if (!showAiSetting) {
8638+
return;
8639+
}
86378640
settingsLinks.value = {
86388641
...settingsLinks.value,
86398642
duckAi: {
@@ -8646,7 +8649,7 @@
86468649
const { duckAi: _5, ...rest } = settingsLinks.value;
86478650
settingsLinks.value = rest;
86488651
};
8649-
}, [enableAi]);
8652+
}, [enableAi, showAiSetting]);
86508653
return /* @__PURE__ */ _(Omnibar, { mode, setMode, enableAi });
86518654
}
86528655
var init_OmnibarConsumer = __esm({
@@ -29169,7 +29172,7 @@
2916929172
description: "Title of the omnibar widget in the customizer panel."
2917029173
},
2917129174
omnibar_aiChatFormPlaceholder: {
29172-
title: "Chat privately with Duck.ai",
29175+
title: "Ask privately",
2917329176
description: "Placeholder text for the AI chat input field."
2917429177
},
2917529178
omnibar_aiChatFormSubmitButtonLabel: {
@@ -29193,7 +29196,7 @@
2919329196
description: "Label for the AI chat tab."
2919429197
},
2919529198
omnibar_searchFormPlaceholder: {
29196-
title: "Search or enter address",
29199+
title: "Search privately",
2919729200
description: "Placeholder text for the search input field."
2919829201
},
2919929202
omnibar_hideDuckAi: {

build/windows/pages/new-tab/locales/en/new-tab.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
"description": "Title of the omnibar widget in the customizer panel."
131131
},
132132
"omnibar_aiChatFormPlaceholder": {
133-
"title": "Chat privately with Duck.ai",
133+
"title": "Ask privately",
134134
"description": "Placeholder text for the AI chat input field."
135135
},
136136
"omnibar_aiChatFormSubmitButtonLabel": {
@@ -154,7 +154,7 @@
154154
"description": "Label for the AI chat tab."
155155
},
156156
"omnibar_searchFormPlaceholder": {
157-
"title": "Search or enter address",
157+
"title": "Search privately",
158158
"description": "Placeholder text for the search input field."
159159
},
160160
"omnibar_hideDuckAi": {

0 commit comments

Comments
 (0)