@magmonium/one 0.4.37 → 0.4.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/types/magmonium-one.d.ts
CHANGED
|
@@ -13047,12 +13047,28 @@ type NavWidgetEntry = Type<unknown> | NavWidgetConfig | NavMenuConfig | NavRowsC
|
|
|
13047
13047
|
* `root_search` rather than at it, because a Platform panel stays the host's.
|
|
13048
13048
|
*/
|
|
13049
13049
|
export declare const SEARCH_ANSWER_KEY = "search_answer";
|
|
13050
|
+
/**
|
|
13051
|
+
* Where an app registers the text its own search bar shows in its empty field
|
|
13052
|
+
* (app GLOSSARY.md SearchLabel, ADR 0042): a TranslationAsset key the host's
|
|
13053
|
+
* bar renders through `translate`, so the word follows the Visitor's language
|
|
13054
|
+
* without the app shipping them. Beside `root_search` for the reason
|
|
13055
|
+
* `SEARCH_ANSWER_KEY` is: the panel stays the host's, and this is a word the
|
|
13056
|
+
* host says rather than a body it mounts.
|
|
13057
|
+
*
|
|
13058
|
+
* The only entry in this map that is a string rather than a component.
|
|
13059
|
+
*/
|
|
13060
|
+
export declare const SEARCH_LABEL_KEY = "search_label";
|
|
13050
13061
|
/**
|
|
13051
13062
|
* What an app hands `provideNavWidgets`. Keyed by NavId — the same string as
|
|
13052
|
-
* the nav asset filename and the route stamp (ADR 0014) — plus the
|
|
13053
|
-
*
|
|
13063
|
+
* the nav asset filename and the route stamp (ADR 0014) — plus the two non-Nav
|
|
13064
|
+
* keys, whose values are typed on their own because neither is a Nav's panel:
|
|
13065
|
+
* `SEARCH_ANSWER_KEY` names the element that answers the host's search, and
|
|
13066
|
+
* `SEARCH_LABEL_KEY` names the key the host's search bar is worded by.
|
|
13054
13067
|
*/
|
|
13055
|
-
type NavWidgetMap = Partial<Record<NavIdKey
|
|
13068
|
+
type NavWidgetMap = Partial<Record<NavIdKey, NavWidgetEntry>> & {
|
|
13069
|
+
[SEARCH_ANSWER_KEY]?: NavWidgetEntry;
|
|
13070
|
+
[SEARCH_LABEL_KEY]?: string;
|
|
13071
|
+
};
|
|
13056
13072
|
export declare function isNavMenuConfig(entry: NavWidgetEntry): entry is NavMenuConfig;
|
|
13057
13073
|
export declare function isNavRowsConfig(entry: NavWidgetEntry): entry is NavRowsConfig;
|
|
13058
13074
|
export declare function isNavInstanceConfig(entry: NavWidgetEntry): entry is NavInstanceConfig;
|
|
@@ -13062,7 +13078,7 @@ export declare function isNavVisibilityConfig(entry: NavWidgetEntry): entry is N
|
|
|
13062
13078
|
* Platform Nav panels first so an app registering at the same NavId replaces
|
|
13063
13079
|
* them (ADR 0016).
|
|
13064
13080
|
*/
|
|
13065
|
-
export declare const NAV_WIDGET_MAP: InjectionToken<Signal<
|
|
13081
|
+
export declare const NAV_WIDGET_MAP: InjectionToken<Signal<NavWidgetMap>>;
|
|
13066
13082
|
/**
|
|
13067
13083
|
* List of Angular components to register as custom elements for cross-bundle nav widget rendering.
|
|
13068
13084
|
* Provided by WC apps in their providers so BaseRootWebComponent can register them on bootstrap.
|
|
@@ -13141,6 +13157,7 @@ export declare class FrameComponent {
|
|
|
13141
13157
|
searchAnswer: import("@angular/core").Signal<(import("@magmonium/one").NavWidgetConfig & {
|
|
13142
13158
|
ceSelector?: string;
|
|
13143
13159
|
}) | null>;
|
|
13160
|
+
searchLabel: import("@angular/core").Signal<string | null>;
|
|
13144
13161
|
breadcrumb: import("@angular/core").Signal<import("@magmonium/one").BreadCrumb>;
|
|
13145
13162
|
navMenus: import("@angular/core").Signal<import("@magmonium/one").BreadcrumbTrail[]>;
|
|
13146
13163
|
navHasContent: import("@angular/core").Signal<boolean>;
|
|
@@ -13550,6 +13567,7 @@ export declare const NavStore: import("@angular/core").Type<{
|
|
|
13550
13567
|
searchAnswer: Signal<(NavWidgetConfig & {
|
|
13551
13568
|
ceSelector?: string;
|
|
13552
13569
|
}) | null>;
|
|
13570
|
+
searchLabel: Signal<string | null>;
|
|
13553
13571
|
breadcrumb: Signal<BreadCrumb>;
|
|
13554
13572
|
navMenus: Signal<import("@magmonium/one").BreadcrumbTrail[]>;
|
|
13555
13573
|
navHasContent: Signal<boolean>;
|
|
@@ -14024,6 +14042,7 @@ export declare class NavDetailsComponent {
|
|
|
14024
14042
|
searchAnswer: import("@angular/core").Signal<(import("@magmonium/one").NavWidgetConfig & {
|
|
14025
14043
|
ceSelector?: string;
|
|
14026
14044
|
}) | null>;
|
|
14045
|
+
searchLabel: import("@angular/core").Signal<string | null>;
|
|
14027
14046
|
breadcrumb: import("@angular/core").Signal<import("@magmonium/one").BreadCrumb>;
|
|
14028
14047
|
navMenus: import("@angular/core").Signal<import("@magmonium/one").BreadcrumbTrail[]>;
|
|
14029
14048
|
navHasContent: import("@angular/core").Signal<boolean>;
|
|
@@ -14276,6 +14295,7 @@ export declare class NavHeaderComponent {
|
|
|
14276
14295
|
searchAnswer: import("@angular/core").Signal<(import("@magmonium/one").NavWidgetConfig & {
|
|
14277
14296
|
ceSelector?: string;
|
|
14278
14297
|
}) | null>;
|
|
14298
|
+
searchLabel: import("@angular/core").Signal<string | null>;
|
|
14279
14299
|
breadcrumb: import("@angular/core").Signal<import("@magmonium/one").BreadCrumb>;
|
|
14280
14300
|
navMenus: import("@angular/core").Signal<import("@magmonium/one").BreadcrumbTrail[]>;
|
|
14281
14301
|
navHasContent: import("@angular/core").Signal<boolean>;
|
|
@@ -14394,6 +14414,13 @@ export declare class NavHeaderComponent {
|
|
|
14394
14414
|
_isUser: import("@angular/core").Signal<boolean>;
|
|
14395
14415
|
_isSearch: import("@angular/core").Signal<boolean>;
|
|
14396
14416
|
_hasParent: import("@angular/core").Signal<boolean>;
|
|
14417
|
+
/**
|
|
14418
|
+
* The text the app the Address stands in words its search bar with
|
|
14419
|
+
* (GLOSSARY.md SearchLabel), or `''` where it named none — the bar's input is
|
|
14420
|
+
* a `string` and its own resolution falls through an empty one to the
|
|
14421
|
+
* library's `search`, so nothing has to be told apart here.
|
|
14422
|
+
*/
|
|
14423
|
+
_searchLabel: import("@angular/core").Signal<string>;
|
|
14397
14424
|
_trail: import("@angular/core").Signal<import("@magmonium/one").BreadcrumbTrail[] | null>;
|
|
14398
14425
|
_user: import("@angular/core").Signal<import("@magmonium/one").AuthUser | null>;
|
|
14399
14426
|
_header: import("@angular/core").Signal<import("@magmonium/one").BreadcrumbTrail | null>;
|