| Actions.mjs |
globalImportContext - Are we in UI code (i.e. react, a dom) or some kind of background process?
Use this in action creators if you need different logic
for ui/background processes.
|
17290 |
- |
| PageLayoutVariants.mjs |
Newtab page layout variants. "Page layout" is the arrangement of the whole
newtab page, not a DiscoveryStream layout (see SectionsLayoutFeed and
selectLayoutRender, which are unrelated).
The pref holds the layout's name rather than a set of feature booleans, so a
new layout is a new value here instead of a new pref, class prefix and metric.
The value is what newtab.page_layout_variant reports.
|
38796 |
- |
| Reducers.sys.mjs |
|
45511 |
- |
| StocksWatchlist.mjs |
Parse the widgets.stocks.watchlist pref (a comma-separated list of ticker
symbols) into a clean array: trimmed, upper-cased, empties dropped, duplicates
removed keeping first occurrence, capped at MAX_STOCKS_WATCHLIST.
@param {string} pref
@returns {string[]}
|
1688 |
- |
| SurfaceId.mjs |
Checks that a Merino-issued surface ID is one Merino could have derived from
the locale and region sent in the request, so it can't carry more
information than those inputs.
@param {string} surfaceId e.g. "NEW_TAB_EN_US"
@param {string} locale The locale sent in the request, e.g. "en-US".
@param {string} [region] The region sent in the request, e.g. "US".
@returns {boolean}
|
1330 |
- |
| WidgetsRegistry.mjs |
|
40439 |
- |