@phis/ui 0.4.15 → 0.4.17
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/components/cms/phi-cms-layout-renderer.js +2 -1
- package/components/controls/phi-table-control.js +15 -0
- package/components/forms/compound-form-controls.js +2 -1
- package/components/regions/clients/cms-region-container-client.d.ts +3 -1
- package/components/regions/clients/cms-region-container-client.js +2 -1
- package/components/regions/phi-cms-region-container.d.ts +3 -1
- package/components/regions/phi-cms-region-container.js +3 -2
- package/components/regions/phi-cms-region-shell.d.ts +16 -1
- package/components/regions/phi-cms-region-shell.js +39 -10
- package/components/regions/phi-cms-region-static.d.ts +3 -1
- package/components/regions/phi-cms-region-static.js +2 -1
- package/components/widgets/label-sets/observability-logs.d.ts +2 -0
- package/components/widgets/label-sets/observability-logs.js +4 -0
- package/components/widgets/label-sets/search.js +2 -0
- package/components/widgets/label-types/search.d.ts +2 -0
- package/components/widgets/label-types/search.js +1 -0
- package/constants/cms-widget-types.js +3 -2
- package/helpers/renderable-block-defaults.js +1 -0
- package/helpers/renderable-block-serialization.js +7 -1
- package/helpers/site-runtime.js +3 -0
- package/net/log.d.ts +1 -0
- package/net/log.js +19 -1
- package/net/phi-next-proxy.js +9 -1
- package/package.json +2 -2
- package/plugins/runtime/phi-slot-child-viewport-effects-observer.js +13 -0
- package/plugins/runtime-modules/app/presets.js +0 -23
- package/plugins/runtime-modules/area-contributions/app.d.ts +1 -1
- package/plugins/runtime-modules/area-contributions/app.js +2 -0
- package/plugins/runtime-modules/area-contributions/public.d.ts +1 -1
- package/plugins/runtime-modules/area-contributions/public.js +2 -0
- package/plugins/runtime-modules/area-module-defaults.js +21 -2
- package/plugins/runtime-modules/builder/page-meta-form.js +11 -0
- package/plugins/runtime-modules/client-authoring-providers/app.d.ts +1 -1
- package/plugins/runtime-modules/client-authoring-providers/app.js +6 -0
- package/plugins/runtime-modules/client-authoring-providers/public.d.ts +1 -1
- package/plugins/runtime-modules/client-authoring-providers/public.js +6 -0
- package/plugins/runtime-modules/client-manifests/common.js +2 -2
- package/plugins/runtime-modules/core/authoring-widgets.js +0 -4
- package/plugins/runtime-modules/core/widgets/collection-view/asset-binding.js +1 -1
- package/plugins/runtime-modules/core/widgets/markdown-toc/client.js +1 -1
- package/plugins/runtime-modules/core/widgets/table/client.js +7 -5
- package/plugins/runtime-modules/core/widgets/table/config.js +8 -1
- package/plugins/runtime-modules/core/widgets/tree/client.js +1 -1
- package/plugins/runtime-modules/core/widgets.js +0 -17
- package/plugins/runtime-modules/groups/trees/group-tables.d.ts +44 -0
- package/plugins/runtime-modules/groups/trees/group-tables.js +150 -0
- package/plugins/runtime-modules/groups/trees/phi-default-admin-groups-page-tree.js +28 -136
- package/plugins/runtime-modules/groups/trees/phi-default-app-groups-page-tree.js +9 -106
- package/plugins/runtime-modules/localization/trees/phi-default-admin-locales-page-tree.js +17 -5
- package/plugins/runtime-modules/observability/data-providers.d.ts +9 -0
- package/plugins/runtime-modules/observability/data-providers.js +5 -0
- package/plugins/runtime-modules/observability/definition.d.ts +9 -0
- package/plugins/runtime-modules/observability/module.d.ts +9 -0
- package/plugins/runtime-modules/observability/services/table.js +4 -0
- package/plugins/runtime-modules/observability/trees/phi-default-admin-logs-page-tree.js +13 -0
- package/plugins/runtime-modules/phi-default-site-area-preset-tree.js +21 -0
- package/plugins/runtime-modules/preset-contracts/pub-area.d.ts +1 -1
- package/plugins/runtime-modules/preset-contracts/pub-area.js +1 -0
- package/plugins/runtime-modules/public/presets.d.ts +0 -16
- package/plugins/runtime-modules/public/presets.js +0 -22
- package/plugins/runtime-modules/public-base-page-references.d.ts +0 -1
- package/plugins/runtime-modules/public-base-page-references.js +0 -1
- package/plugins/runtime-modules/search/authoring-widgets.d.ts +2 -0
- package/plugins/runtime-modules/search/authoring-widgets.js +8 -0
- package/plugins/runtime-modules/search/authoring.d.ts +1 -0
- package/plugins/runtime-modules/search/authoring.js +8 -0
- package/plugins/runtime-modules/search/definition.d.ts +21 -0
- package/plugins/runtime-modules/search/definition.js +23 -0
- package/plugins/runtime-modules/search/ids.d.ts +6 -0
- package/plugins/runtime-modules/search/ids.js +7 -0
- package/plugins/runtime-modules/search/module.d.ts +10 -0
- package/plugins/runtime-modules/search/module.js +4 -0
- package/plugins/runtime-modules/search/page-references.d.ts +8 -0
- package/plugins/runtime-modules/search/page-references.js +17 -0
- package/plugins/runtime-modules/{search-page-tree.d.ts → search/page-tree.d.ts} +1 -1
- package/plugins/runtime-modules/{search-page-tree.js → search/page-tree.js} +9 -7
- package/plugins/runtime-modules/search/presets.d.ts +12 -0
- package/plugins/runtime-modules/search/presets.js +33 -0
- package/plugins/runtime-modules/search/server.d.ts +1 -0
- package/plugins/runtime-modules/search/server.js +16 -0
- package/plugins/runtime-modules/search/widgets/search-box/authoring.d.ts +8 -0
- package/plugins/runtime-modules/search/widgets/search-box/authoring.js +21 -0
- package/plugins/runtime-modules/search/widgets/search-box/client.d.ts +39 -0
- package/plugins/runtime-modules/search/widgets/search-box/client.js +114 -0
- package/plugins/runtime-modules/search/widgets/search-box/config.d.ts +96 -0
- package/plugins/runtime-modules/search/widgets/search-box/config.js +67 -0
- package/plugins/runtime-modules/{core → search}/widgets/search-box/plugin.js +1 -4
- package/plugins/runtime-modules/search/widgets/search-box/server.d.ts +15 -0
- package/plugins/runtime-modules/{core → search}/widgets/search-box/server.js +13 -14
- package/plugins/runtime-modules/{core → search}/widgets/search-results/config.d.ts +0 -1
- package/plugins/runtime-modules/{core → search}/widgets/search-results/config.js +0 -1
- package/plugins/runtime-modules/{core → search}/widgets/search-results/plugin.js +1 -3
- package/plugins/runtime-modules/{core → search}/widgets/search-results/server.d.ts +1 -2
- package/plugins/runtime-modules/{core → search}/widgets/search-results/server.js +2 -2
- package/plugins/runtime-modules/search/widgets.d.ts +2 -0
- package/plugins/runtime-modules/search/widgets.js +20 -0
- package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +15 -1
- package/server-helpers/search-index.js +9 -0
- package/styles/root.css +2 -0
- package/styles/shell.css +178 -18
- package/theme/phi-theme-tokens.d.ts +1 -1
- package/theme/phi-theme-tokens.js +2 -0
- package/types/renderable-block.d.ts +5 -0
- package/types/table-widget.d.ts +10 -1
- package/types/table-widget.js +1 -0
- package/plugins/runtime-modules/core/widgets/search-box/authoring.d.ts +0 -6
- package/plugins/runtime-modules/core/widgets/search-box/authoring.js +0 -10
- package/plugins/runtime-modules/core/widgets/search-box/client.d.ts +0 -21
- package/plugins/runtime-modules/core/widgets/search-box/client.js +0 -17
- package/plugins/runtime-modules/core/widgets/search-box/config.d.ts +0 -63
- package/plugins/runtime-modules/core/widgets/search-box/config.js +0 -48
- package/plugins/runtime-modules/core/widgets/search-box/server.d.ts +0 -21
- package/plugins/runtime-modules/search-page-references.d.ts +0 -20
- package/plugins/runtime-modules/search-page-references.js +0 -35
- /package/plugins/runtime-modules/{core → search}/widgets/search-box/plugin.d.ts +0 -0
- /package/plugins/runtime-modules/{core → search}/widgets/search-results/authoring.d.ts +0 -0
- /package/plugins/runtime-modules/{core → search}/widgets/search-results/authoring.js +0 -0
- /package/plugins/runtime-modules/{core → search}/widgets/search-results/client.d.ts +0 -0
- /package/plugins/runtime-modules/{core → search}/widgets/search-results/client.js +0 -0
- /package/plugins/runtime-modules/{core → search}/widgets/search-results/plugin.d.ts +0 -0
|
@@ -11,6 +11,7 @@ import { PhiFlexVerticalLayout } from "../layouts/phi-flex-vertical-layout";
|
|
|
11
11
|
import { resolvePhiSlotChildSizingForConfig, } from "../../plugins/runtime/slot-size-policy";
|
|
12
12
|
import { PhiSlotChildFrame } from "../../plugins/runtime/phi-slot-child-frame";
|
|
13
13
|
import { PhiCmsRegionContainer } from "../regions/phi-cms-region-container";
|
|
14
|
+
import { phiCmsRegionRootLayoutPaintsGround } from "../regions/phi-cms-region-shell";
|
|
14
15
|
import { PhiCmsRenderErrorBoundary } from "./phi-cms-render-error-boundary";
|
|
15
16
|
import { PhiCmsRenderDiagnostic } from "./phi-cms-render-diagnostic";
|
|
16
17
|
import { resolvePhiRuntimeLayoutPluginByTypeKey, resolvePhiRuntimeLayoutPluginConfigParser, } from "../../plugins/runtime/layout-plugin-resolution";
|
|
@@ -792,7 +793,7 @@ export async function PhiCmsLayoutRenderer({ tree, runtime, regionClassName, reg
|
|
|
792
793
|
layoutPluginsByType.get(resolveLayoutRegistryType(root.widgetType))?.runtimeSignals != null,
|
|
793
794
|
})
|
|
794
795
|
: null;
|
|
795
|
-
return (_jsx(PhiCmsRegionContainer, { className: regionClassName, regionKey: regionKey, regionType: region.regionType, config: region.config, pageScope: resolvePhiCmsRegionPageScope(readPhiCmsRegionPageScope(regionKey, region.config), links, runtime.site.availableLocales.map((option) => option.code)), shellTheme: runtime.site.theme?.shell, previewMode: root?.config.renderMode === "preview", runtime: runtime, signalParticipant: signalParticipants.has(createPhiSignalAddress("region", regionKey)), children: renderedRoot }, `region-${region.id}`));
|
|
796
|
+
return (_jsx(PhiCmsRegionContainer, { className: regionClassName, regionKey: regionKey, regionType: region.regionType, config: region.config, pageScope: resolvePhiCmsRegionPageScope(readPhiCmsRegionPageScope(regionKey, region.config), links, runtime.site.availableLocales.map((option) => option.code)), shellTheme: runtime.site.theme?.shell, previewMode: root?.config.renderMode === "preview", rootPaintsGround: phiCmsRegionRootLayoutPaintsGround(root?.config), runtime: runtime, signalParticipant: signalParticipants.has(createPhiSignalAddress("region", regionKey)), children: renderedRoot }, `region-${region.id}`));
|
|
796
797
|
});
|
|
797
798
|
if (renderedRegions.length === 1) {
|
|
798
799
|
return renderedRegions[0];
|
|
@@ -337,6 +337,21 @@ function EditableTableCell({ value, editor, onCommit }) {
|
|
|
337
337
|
// A row that offers its own choices: the value can only be one of them.
|
|
338
338
|
return _jsx(PhiSelectControl, { value: typeof draft === "string" && draft ? draft : undefined, disabled: disabled, size: "small", variant: variant, options: editor.options ?? [], style: { width: "100%" }, onChange: (next) => { draftRef.current = next; setDraft(next); onCommit(next); } });
|
|
339
339
|
}
|
|
340
|
+
if (editor.type === "string" && editor.control === "textarea") {
|
|
341
|
+
/*
|
|
342
|
+
* Several lines in a cell: the area is as tall as its text, so a long value wraps instead of
|
|
343
|
+
* running out of the column. Enter still commits, as in every other cell; Shift+Enter is the line
|
|
344
|
+
* break. No clear glyph -- it would stand over the first line's end.
|
|
345
|
+
*/
|
|
346
|
+
return _jsx(PhiTextControl, { presentation: "textarea", autoSize: { minRows: 1 }, value: typeof draft === "string" ? draft : "", variant: variant, disabled: disabled, size: "small", style: { width: "100%" }, onChange: (next) => { draftRef.current = next; setDraft(next); }, onBlur: commitOnBlur, onKeyDown: (event) => {
|
|
347
|
+
if (event.key !== "Enter" || event.shiftKey || event.nativeEvent.isComposing)
|
|
348
|
+
return;
|
|
349
|
+
event.preventDefault();
|
|
350
|
+
skipNextBlurRef.current = true;
|
|
351
|
+
commit();
|
|
352
|
+
event.currentTarget.blur();
|
|
353
|
+
} });
|
|
354
|
+
}
|
|
340
355
|
return _jsx(PhiTextControl, { value: typeof draft === "string" ? draft : "", variant: variant, inputRef: textInputRef, disabled: disabled, allowClear: !editor.required, size: "small", style: { width: "100%" }, onChange: (next) => { draftRef.current = next; setDraft(next); }, onBlur: commitOnBlur, onPressEnter: () => {
|
|
341
356
|
skipNextBlurRef.current = true;
|
|
342
357
|
commit();
|
|
@@ -75,7 +75,8 @@ function readTableCellEditor(value) {
|
|
|
75
75
|
editor.control === "segmented" ||
|
|
76
76
|
editor.control === "multi-select" ||
|
|
77
77
|
editor.control === "checkbox-group" ||
|
|
78
|
-
editor.control === "icon-picker"
|
|
78
|
+
editor.control === "icon-picker" ||
|
|
79
|
+
editor.control === "textarea"
|
|
79
80
|
? editor.control
|
|
80
81
|
: undefined,
|
|
81
82
|
required: editor.required === true,
|
|
@@ -18,6 +18,8 @@ type PhiCmsRegionContainerClientProps = {
|
|
|
18
18
|
pageScope?: PhiCmsResolvedRegionPageScope | null;
|
|
19
19
|
/** The Site's locales, handed over only where the Region has a Page scope to ask. */
|
|
20
20
|
availableLocales?: string[];
|
|
21
|
+
/** Whether the Region's top Layout paints a ground of its own (`phiCmsRegionRootLayoutPaintsGround`). */
|
|
22
|
+
rootPaintsGround?: boolean;
|
|
21
23
|
};
|
|
22
24
|
/**
|
|
23
25
|
* A Region that stays alive after it has rendered: it takes signals, runs effects, collapses, or moves
|
|
@@ -25,5 +27,5 @@ type PhiCmsRegionContainerClientProps = {
|
|
|
25
27
|
* fed with the config merged with the live runtime state and painted in the live colour mode. What is
|
|
26
28
|
* left here is what only a live Region has.
|
|
27
29
|
*/
|
|
28
|
-
export declare function PhiCmsRegionContainerClient({ children, className, regionKey, config: initialConfig, shellTheme, style, regionType, previewMode, runtime, routeScope, pageScope: resolvedPageScope, availableLocales, }: PhiCmsRegionContainerClientProps): import("react").JSX.Element | null;
|
|
30
|
+
export declare function PhiCmsRegionContainerClient({ children, className, regionKey, config: initialConfig, shellTheme, style, regionType, previewMode, runtime, routeScope, pageScope: resolvedPageScope, availableLocales, rootPaintsGround, }: PhiCmsRegionContainerClientProps): import("react").JSX.Element | null;
|
|
29
31
|
export {};
|
|
@@ -32,7 +32,7 @@ import { usePhiRegionRevealed, usePhiShellHeaderTopRoom } from "./use-phi-region
|
|
|
32
32
|
* fed with the config merged with the live runtime state and painted in the live colour mode. What is
|
|
33
33
|
* left here is what only a live Region has.
|
|
34
34
|
*/
|
|
35
|
-
export function PhiCmsRegionContainerClient({ children, className, regionKey, config: initialConfig, shellTheme, style, regionType, previewMode = false, runtime, routeScope, pageScope: resolvedPageScope = null, availableLocales, }) {
|
|
35
|
+
export function PhiCmsRegionContainerClient({ children, className, regionKey, config: initialConfig, shellTheme, style, regionType, previewMode = false, runtime, routeScope, pageScope: resolvedPageScope = null, availableLocales, rootPaintsGround = false, }) {
|
|
36
36
|
const { mode: liveThemeMode, token } = usePhiConfig();
|
|
37
37
|
const receiver = createPhiRenderableBlockReceiver("region", regionKey);
|
|
38
38
|
const anchorRef = usePhiVisualAnchor(receiver);
|
|
@@ -142,6 +142,7 @@ export function PhiCmsRegionContainerClient({ children, className, regionKey, co
|
|
|
142
142
|
regionType,
|
|
143
143
|
className,
|
|
144
144
|
style,
|
|
145
|
+
rootPaintsGround,
|
|
145
146
|
});
|
|
146
147
|
if (shell == null) {
|
|
147
148
|
return null;
|
|
@@ -15,6 +15,8 @@ export type PhiCmsRegionContainerProps = {
|
|
|
15
15
|
signalParticipant?: boolean;
|
|
16
16
|
/** The Pages this Region stands on, resolved for this render; null where it stands on every Page. */
|
|
17
17
|
pageScope?: PhiCmsResolvedRegionPageScope | null;
|
|
18
|
+
/** Whether the Region's top Layout paints a ground of its own (`phiCmsRegionRootLayoutPaintsGround`). */
|
|
19
|
+
rootPaintsGround?: boolean;
|
|
18
20
|
};
|
|
19
|
-
export declare function PhiCmsRegionContainer({ children, className, regionKey, config, shellTheme, style, regionType, previewMode, runtime, signalParticipant, pageScope, }: PhiCmsRegionContainerProps): import("react").JSX.Element;
|
|
21
|
+
export declare function PhiCmsRegionContainer({ children, className, regionKey, config, shellTheme, style, regionType, previewMode, runtime, signalParticipant, pageScope, rootPaintsGround, }: PhiCmsRegionContainerProps): import("react").JSX.Element;
|
|
20
22
|
export {};
|
|
@@ -9,7 +9,7 @@ import { PhiRuntimeModuleRenderClientHost } from "../runtime/runtime-module-rend
|
|
|
9
9
|
import { PhiRuntimeRenderClientType } from "../../constants/runtime-render-client-types";
|
|
10
10
|
import { resolvePhiBackgroundMotion } from "../widgets/config/background";
|
|
11
11
|
import { readPhiCmsRegionReveal } from "../../helpers/region-page-scope";
|
|
12
|
-
export function PhiCmsRegionContainer({ children, className, regionKey, config, shellTheme, style, regionType, previewMode = false, runtime, signalParticipant = false, pageScope = null, }) {
|
|
12
|
+
export function PhiCmsRegionContainer({ children, className, regionKey, config, shellTheme, style, regionType, previewMode = false, runtime, signalParticipant = false, pageScope = null, rootPaintsGround = false, }) {
|
|
13
13
|
const routeScope = isPhiCmsPageOwnedRegion(regionKey) ? "page" : "area";
|
|
14
14
|
const effectsConfig = config?.effects == null ? undefined : { effects: config.effects };
|
|
15
15
|
const effectsAttributes = resolveRenderableBlockEffectsAttributes(effectsConfig);
|
|
@@ -32,7 +32,7 @@ export function PhiCmsRegionContainer({ children, className, regionKey, config,
|
|
|
32
32
|
requiresEffectsObserver ||
|
|
33
33
|
resolvePhiBackgroundMotion(config?.surface?.background) != null;
|
|
34
34
|
if (!requiresClientEnhancement) {
|
|
35
|
-
return (_jsx(PhiCmsRegionStatic, { className: className, regionKey: regionKey, config: config, shellTheme: shellTheme, style: style, regionType: regionType, previewMode: previewMode, children: children }));
|
|
35
|
+
return (_jsx(PhiCmsRegionStatic, { className: className, regionKey: regionKey, config: config, shellTheme: shellTheme, style: style, regionType: regionType, previewMode: previewMode, rootPaintsGround: rootPaintsGround, children: children }));
|
|
36
36
|
}
|
|
37
37
|
return (_jsx(PhiRuntimeModuleRenderClientHost, { type: PhiRuntimeRenderClientType.RegionContainerEnhancer, componentProps: {
|
|
38
38
|
children,
|
|
@@ -43,6 +43,7 @@ export function PhiCmsRegionContainer({ children, className, regionKey, config,
|
|
|
43
43
|
style,
|
|
44
44
|
regionType,
|
|
45
45
|
previewMode,
|
|
46
|
+
rootPaintsGround,
|
|
46
47
|
runtime: {
|
|
47
48
|
siteKey: runtime.site.key,
|
|
48
49
|
publicUrl: runtime.site.publicUrl ?? null,
|
|
@@ -38,6 +38,7 @@ export type PhiCmsRegionShellAttributes = PhiRenderableBlockEffectsAttributes &
|
|
|
38
38
|
"data-phi-region-key": PhiCmsRegionKey;
|
|
39
39
|
"data-phi-region-type": number | undefined;
|
|
40
40
|
"data-phi-shell-chrome": "true" | undefined;
|
|
41
|
+
"data-phi-shell-own-ground": "band" | "box" | undefined;
|
|
41
42
|
"data-phi-renderable-block": "true";
|
|
42
43
|
"data-phi-signal-receiver": string;
|
|
43
44
|
"data-phi-block-visibility": string;
|
|
@@ -63,6 +64,13 @@ export type PhiCmsRegionShellInput = {
|
|
|
63
64
|
regionType?: number;
|
|
64
65
|
className?: string;
|
|
65
66
|
style?: CSSProperties;
|
|
67
|
+
/**
|
|
68
|
+
* Whether the Layout at the top of this Region paints a ground of its own
|
|
69
|
+
* (`phiCmsRegionRootLayoutPaintsGround`). Such a band brings its own chrome -- a floating Header bar is
|
|
70
|
+
* the case it was made for -- so it neither paints the Theme's Chrome Overlay itself nor lets its
|
|
71
|
+
* family's pane paint one behind it (SHELL.md "A band with a ground of its own").
|
|
72
|
+
*/
|
|
73
|
+
rootPaintsGround?: boolean;
|
|
66
74
|
};
|
|
67
75
|
export type PhiCmsRegionShell = {
|
|
68
76
|
family: PhiCmsRegionShellFamily;
|
|
@@ -118,5 +126,12 @@ export declare function phiCmsRegionFooterSticks(regionKey: PhiCmsRegionKey, con
|
|
|
118
126
|
* The Region's shell, or null where the Region renders nothing: hidden, or collapsed in a preview.
|
|
119
127
|
* `header_bottom` is exempt from the preview collapse because the Page, not the Area, owns its content.
|
|
120
128
|
*/
|
|
121
|
-
|
|
129
|
+
/**
|
|
130
|
+
* Whether a Region's top Layout paints a ground of its own: a tone, or a Background that paints something
|
|
131
|
+
* in either mode. Only the top Layout counts -- a Card or a Button somewhere inside a Header is content,
|
|
132
|
+
* not the band's chrome. "Paints" is `phiBackgroundWidgetConfigPaintsGround`'s answer, so the empty
|
|
133
|
+
* Background record the Builder stores on every box it has opened is no ground.
|
|
134
|
+
*/
|
|
135
|
+
export declare function phiCmsRegionRootLayoutPaintsGround(rootConfig: unknown): boolean;
|
|
136
|
+
export declare function resolvePhiCmsRegionShell({ regionKey, config, shellTheme, paint, animatesBackground, previewMode, regionType, className, style, rootPaintsGround, }: PhiCmsRegionShellInput): PhiCmsRegionShell | null;
|
|
122
137
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolvePhiSurfaceToneClassName } from "../../types/surface";
|
|
1
|
+
import { readPhiSurface, resolvePhiSurfaceToneClassName } from "../../types/surface";
|
|
2
2
|
import { composePhiModePaint, resolvePhiModeValue } from "../../helpers/mode-paint";
|
|
3
3
|
import { PHI_THEME_BORDER_LINE, resolvePhiBorderWidgetStyle } from "../../helpers/border-widget-style";
|
|
4
4
|
import { hasPhiFlag } from "../../helpers/flags";
|
|
@@ -129,7 +129,22 @@ function resolveRegionBorderLine(surface) {
|
|
|
129
129
|
* The Region's shell, or null where the Region renders nothing: hidden, or collapsed in a preview.
|
|
130
130
|
* `header_bottom` is exempt from the preview collapse because the Page, not the Area, owns its content.
|
|
131
131
|
*/
|
|
132
|
-
|
|
132
|
+
/**
|
|
133
|
+
* Whether a Region's top Layout paints a ground of its own: a tone, or a Background that paints something
|
|
134
|
+
* in either mode. Only the top Layout counts -- a Card or a Button somewhere inside a Header is content,
|
|
135
|
+
* not the band's chrome. "Paints" is `phiBackgroundWidgetConfigPaintsGround`'s answer, so the empty
|
|
136
|
+
* Background record the Builder stores on every box it has opened is no ground.
|
|
137
|
+
*/
|
|
138
|
+
export function phiCmsRegionRootLayoutPaintsGround(rootConfig) {
|
|
139
|
+
const surface = readPhiSurface(rootConfig != null && typeof rootConfig === "object" ? rootConfig.surface : null);
|
|
140
|
+
if (!surface) {
|
|
141
|
+
return false;
|
|
142
|
+
}
|
|
143
|
+
return resolvePhiSurfaceToneClassName(surface.tone) != null
|
|
144
|
+
|| phiBackgroundWidgetConfigPaintsGround(surface.background ?? null)
|
|
145
|
+
|| phiBackgroundWidgetConfigPaintsGround(surface.backgroundDark ?? null);
|
|
146
|
+
}
|
|
147
|
+
export function resolvePhiCmsRegionShell({ regionKey, config, shellTheme, paint, animatesBackground = false, previewMode = false, regionType, className, style, rootPaintsGround = false, }) {
|
|
133
148
|
const visibility = config.visibility ?? "visible";
|
|
134
149
|
const enabled = config.enabled ?? true;
|
|
135
150
|
if (visibility === "hidden" ||
|
|
@@ -292,14 +307,16 @@ export function resolvePhiCmsRegionShell({ regionKey, config, shellTheme, paint,
|
|
|
292
307
|
* the stored one: the Builder persists an empty Background record for every Region an author has ever
|
|
293
308
|
* opened, and the raw value is never null for those.
|
|
294
309
|
*/
|
|
295
|
-
const usesShellChromeOverlay =
|
|
296
|
-
?
|
|
297
|
-
:
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
310
|
+
const usesShellChromeOverlay = rootPaintsGround
|
|
311
|
+
? false
|
|
312
|
+
: themeGround
|
|
313
|
+
? themeGroundIsShellChrome
|
|
314
|
+
: !toneGround && phiRegionUsesShellChromeOverlay({
|
|
315
|
+
regionKey,
|
|
316
|
+
backgroundConfig,
|
|
317
|
+
pane: shellPane,
|
|
318
|
+
grounds: [chrome.light.background, chrome.dark.background],
|
|
319
|
+
});
|
|
303
320
|
/*
|
|
304
321
|
* The ground. Published, it is the pair of custom properties `shell.css` paints from, because it may
|
|
305
322
|
* be a colour or a gradient and only CSS can tell which without guessing; nothing inline may name a
|
|
@@ -441,6 +458,18 @@ export function resolvePhiCmsRegionShell({ regionKey, config, shellTheme, paint,
|
|
|
441
458
|
"data-phi-region-key": regionKey,
|
|
442
459
|
"data-phi-region-type": regionType,
|
|
443
460
|
"data-phi-shell-chrome": usesShellChromeOverlay ? "true" : undefined,
|
|
461
|
+
/*
|
|
462
|
+
* A band with a ground of its own (SHELL.md): `band` where the Region paints it -- a tone, or an
|
|
463
|
+
* authored Background other than the Theme's Overlay taken as the Shell's -- and `box` where its top
|
|
464
|
+
* Layout does, which is a bar inside the band rather than the band. `shell.css` lets the family's
|
|
465
|
+
* pane step aside for either, and for a `box` takes the pane's Shadow away too: the frame's edge
|
|
466
|
+
* would run the full width behind a bar that is narrower.
|
|
467
|
+
*/
|
|
468
|
+
"data-phi-shell-own-ground": rootPaintsGround
|
|
469
|
+
? "box"
|
|
470
|
+
: resolvePhiSurfaceToneClassName(surface?.tone) != null || (backgroundConfig != null && !themeGroundIsShellChrome)
|
|
471
|
+
? "band"
|
|
472
|
+
: undefined,
|
|
444
473
|
"data-phi-renderable-block": "true",
|
|
445
474
|
"data-phi-signal-receiver": createPhiSignalAddress("region", regionKey),
|
|
446
475
|
"data-phi-block-visibility": visibility,
|
|
@@ -10,10 +10,12 @@ export type PhiCmsRegionStaticProps = {
|
|
|
10
10
|
style?: CSSProperties;
|
|
11
11
|
regionType?: number;
|
|
12
12
|
previewMode?: boolean;
|
|
13
|
+
/** Whether the Region's top Layout paints a ground of its own (`phiCmsRegionRootLayoutPaintsGround`). */
|
|
14
|
+
rootPaintsGround?: boolean;
|
|
13
15
|
};
|
|
14
16
|
/**
|
|
15
17
|
* A Region with nothing to do after it has rendered. Everything it draws comes from the Region-shell
|
|
16
18
|
* resolver it shares with the client renderer; it does not know the colour mode, so it publishes both
|
|
17
19
|
* and lets `shell.css` switch them.
|
|
18
20
|
*/
|
|
19
|
-
export declare function PhiCmsRegionStatic({ children, className, regionKey, config, shellTheme, style, regionType, previewMode, }: PhiCmsRegionStaticProps): import("react").JSX.Element | null;
|
|
21
|
+
export declare function PhiCmsRegionStatic({ children, className, regionKey, config, shellTheme, style, regionType, previewMode, rootPaintsGround, }: PhiCmsRegionStaticProps): import("react").JSX.Element | null;
|
|
@@ -7,7 +7,7 @@ import { PhiSurfaceTone } from "../surface/phi-surface-tone";
|
|
|
7
7
|
* resolver it shares with the client renderer; it does not know the colour mode, so it publishes both
|
|
8
8
|
* and lets `shell.css` switch them.
|
|
9
9
|
*/
|
|
10
|
-
export function PhiCmsRegionStatic({ children, className, regionKey, config = {}, shellTheme, style, regionType, previewMode = false, }) {
|
|
10
|
+
export function PhiCmsRegionStatic({ children, className, regionKey, config = {}, shellTheme, style, regionType, previewMode = false, rootPaintsGround = false, }) {
|
|
11
11
|
const shell = resolvePhiCmsRegionShell({
|
|
12
12
|
regionKey,
|
|
13
13
|
config,
|
|
@@ -17,6 +17,7 @@ export function PhiCmsRegionStatic({ children, className, regionKey, config = {}
|
|
|
17
17
|
regionType,
|
|
18
18
|
className,
|
|
19
19
|
style,
|
|
20
|
+
rootPaintsGround,
|
|
20
21
|
});
|
|
21
22
|
if (shell == null) {
|
|
22
23
|
return null;
|
|
@@ -40,6 +40,8 @@ const PHI_OBSERVABILITY_LOGS_WIDGET_LABEL_SET = definePhiLabelSet({
|
|
|
40
40
|
detail_status: "Status",
|
|
41
41
|
empty_title: definePhiMessageLabel("No logs found."),
|
|
42
42
|
empty_text: definePhiMessageLabel("Adjust the filters or extend the time window."),
|
|
43
|
+
count_footer: definePhiMessageLabel("%1 entries found."),
|
|
44
|
+
truncated_footer: definePhiMessageLabel("%1 entries found. Only the newest %2 of this time window were read; choose a shorter window to see the older ones."),
|
|
43
45
|
},
|
|
44
46
|
});
|
|
45
47
|
export async function getPhiObservabilityLogsWidgetLabels(options) {
|
|
@@ -92,5 +94,7 @@ export async function getPhiObservabilityLogsWidgetLabels(options) {
|
|
|
92
94
|
title: labels.empty_title,
|
|
93
95
|
text: labels.empty_text,
|
|
94
96
|
},
|
|
97
|
+
countFooter: labels.count_footer,
|
|
98
|
+
truncatedFooter: labels.truncated_footer,
|
|
95
99
|
};
|
|
96
100
|
}
|
|
@@ -11,6 +11,7 @@ const PHI_SEARCH_WIDGET_LABEL_SET = definePhiLabelSet({
|
|
|
11
11
|
aria_label: PHI_SEARCH_WIDGET_DEFAULT_LABELS.ariaLabel,
|
|
12
12
|
clear_label: PHI_SEARCH_WIDGET_DEFAULT_LABELS.clearLabel,
|
|
13
13
|
submit_label: PHI_SEARCH_WIDGET_DEFAULT_LABELS.submitLabel,
|
|
14
|
+
close_label: PHI_SEARCH_WIDGET_DEFAULT_LABELS.closeLabel,
|
|
14
15
|
},
|
|
15
16
|
});
|
|
16
17
|
export async function getPhiSearchWidgetLabels(options) {
|
|
@@ -21,5 +22,6 @@ export async function getPhiSearchWidgetLabels(options) {
|
|
|
21
22
|
ariaLabel: labels.aria_label,
|
|
22
23
|
clearLabel: labels.clear_label,
|
|
23
24
|
submitLabel: labels.submit_label,
|
|
25
|
+
closeLabel: labels.close_label,
|
|
24
26
|
};
|
|
25
27
|
}
|
|
@@ -4,5 +4,7 @@ export type PhiSearchWidgetLabels = {
|
|
|
4
4
|
ariaLabel: string;
|
|
5
5
|
clearLabel: string;
|
|
6
6
|
submitLabel: string;
|
|
7
|
+
/** The magnifier's way back: the phone's search row closes without searching. */
|
|
8
|
+
closeLabel: string;
|
|
7
9
|
};
|
|
8
10
|
export declare const PHI_SEARCH_WIDGET_DEFAULT_LABELS: PhiSearchWidgetLabels;
|
|
@@ -18,6 +18,7 @@ const PHI_CMS_WIDGET_PLUGIN_KEYS = {
|
|
|
18
18
|
"core": `${PHI_CMS_WIDGET_PLUGIN_KEY_BASE}/core/widgets`,
|
|
19
19
|
"news": `${PHI_CMS_WIDGET_PLUGIN_KEY_BASE}/news/widgets`,
|
|
20
20
|
"observability": `${PHI_CMS_WIDGET_PLUGIN_KEY_BASE}/observability/widgets`,
|
|
21
|
+
"search": `${PHI_CMS_WIDGET_PLUGIN_KEY_BASE}/search/widgets`,
|
|
21
22
|
"theme": `${PHI_CMS_WIDGET_PLUGIN_KEY_BASE}/theme/widgets`,
|
|
22
23
|
"threads": `${PHI_CMS_WIDGET_PLUGIN_KEY_BASE}/threads/widgets`,
|
|
23
24
|
"video": `${PHI_CMS_WIDGET_PLUGIN_KEY_BASE}/video/widgets`,
|
|
@@ -101,8 +102,8 @@ const PHI_CMS_WIDGET_MODULE_BY_TYPE_KEY = {
|
|
|
101
102
|
"record": "core",
|
|
102
103
|
"rate": "core",
|
|
103
104
|
"result": "core",
|
|
104
|
-
"search-box": "
|
|
105
|
-
"search-results": "
|
|
105
|
+
"search-box": "search",
|
|
106
|
+
"search-results": "search",
|
|
106
107
|
"segmented": "core",
|
|
107
108
|
"select-box": "core",
|
|
108
109
|
"sidebar-navigation": "core",
|
|
@@ -185,6 +185,7 @@ function normalizeRenderableBlockViewportEffect(value) {
|
|
|
185
185
|
const rangeEnd = normalizeRenderableBlockViewportEffectRangePoint(value.rangeEnd);
|
|
186
186
|
const easing = normalizeRenderableBlockTransitionEasing(value.easing);
|
|
187
187
|
const clamp = typeof value.clamp === "boolean" ? value.clamp : undefined;
|
|
188
|
+
const perspectivePx = normalizeRenderableBlockTransitionNumber(value.perspectivePx, 0, 10000);
|
|
188
189
|
if (!axis &&
|
|
189
190
|
!property &&
|
|
190
191
|
from == null &&
|
|
@@ -193,7 +194,8 @@ function normalizeRenderableBlockViewportEffect(value) {
|
|
|
193
194
|
rangeStart == null &&
|
|
194
195
|
rangeEnd == null &&
|
|
195
196
|
!easing &&
|
|
196
|
-
clamp == null
|
|
197
|
+
clamp == null &&
|
|
198
|
+
perspectivePx == null) {
|
|
197
199
|
return undefined;
|
|
198
200
|
}
|
|
199
201
|
return {
|
|
@@ -206,6 +208,7 @@ function normalizeRenderableBlockViewportEffect(value) {
|
|
|
206
208
|
...(rangeEnd == null ? {} : { rangeEnd }),
|
|
207
209
|
...(easing ? { easing } : {}),
|
|
208
210
|
...(clamp == null ? {} : { clamp }),
|
|
211
|
+
...(perspectivePx == null ? {} : { perspectivePx }),
|
|
209
212
|
};
|
|
210
213
|
}
|
|
211
214
|
function normalizeRenderableBlockViewportEffects(value) {
|
|
@@ -400,6 +403,9 @@ function stripRenderableBlockEffects(value) {
|
|
|
400
403
|
if (merged.clamp !== PHI_RENDERABLE_BLOCK_DEFAULT_VIEWPORT_EFFECT.clamp) {
|
|
401
404
|
nextViewportEffect.clamp = merged.clamp;
|
|
402
405
|
}
|
|
406
|
+
if (merged.perspectivePx !== PHI_RENDERABLE_BLOCK_DEFAULT_VIEWPORT_EFFECT.perspectivePx) {
|
|
407
|
+
nextViewportEffect.perspectivePx = merged.perspectivePx;
|
|
408
|
+
}
|
|
403
409
|
return nextViewportEffect;
|
|
404
410
|
});
|
|
405
411
|
}
|
package/helpers/site-runtime.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "server-only";
|
|
2
2
|
import { existsSync, readFileSync } from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
|
+
import { notePhiLogSiteKey } from "../net/log";
|
|
4
5
|
const DEFAULT_TIMEOUT_MS = 8000;
|
|
5
6
|
function asObject(value) {
|
|
6
7
|
return value && typeof value === "object" ? value : {};
|
|
@@ -62,6 +63,8 @@ export function readPhiSiteRuntimeConfigSync() {
|
|
|
62
63
|
},
|
|
63
64
|
};
|
|
64
65
|
siteRuntimeConfig = { configPath, value };
|
|
66
|
+
// Every record this process writes belongs to this Site (net/log.ts).
|
|
67
|
+
notePhiLogSiteKey(value.site.key);
|
|
65
68
|
return value;
|
|
66
69
|
}
|
|
67
70
|
export function getPhiInternalApiTimeoutMs() {
|
package/net/log.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export type { PhiLogEvent, PhiLogLevel, PhiLogService, PhiLogger, PhiLoggerContext, } from "@phis/contracts/logging";
|
|
2
2
|
import type { PhiLogEvent, PhiLogLevel, PhiLoggerContext } from "@phis/contracts/logging";
|
|
3
|
+
export declare function notePhiLogSiteKey(siteKey: string): void;
|
|
3
4
|
export declare function logRuntimeEvent(level: PhiLogLevel, event: string, input?: PhiLogEvent & Partial<PhiLoggerContext>): void;
|
package/net/log.js
CHANGED
|
@@ -30,13 +30,31 @@ function emit(level, payload) {
|
|
|
30
30
|
}
|
|
31
31
|
console.info(line);
|
|
32
32
|
}
|
|
33
|
+
/*
|
|
34
|
+
* The Site this process serves, stamped on every record that does not name one.
|
|
35
|
+
*
|
|
36
|
+
* A Site process serves exactly one Site, but its callers almost never passed `siteKey`, so nearly every
|
|
37
|
+
* record carried null and the Site's admin log, which shows only that Site's records, came up empty. The
|
|
38
|
+
* Site's runtime reader notes the key when it reads the configuration (`notePhiLogSiteKey`); in the browser
|
|
39
|
+
* nothing does, and a record there stays as it was. Kept on `globalThis` because the server bundles this
|
|
40
|
+
* file once per layer, and the key noted in one layer must be read in the others.
|
|
41
|
+
*/
|
|
42
|
+
const PHI_LOG_SITE_KEY = Symbol.for("phis.log.siteKey");
|
|
43
|
+
export function notePhiLogSiteKey(siteKey) {
|
|
44
|
+
if (siteKey)
|
|
45
|
+
globalThis[PHI_LOG_SITE_KEY] = siteKey;
|
|
46
|
+
}
|
|
47
|
+
function readNotedSiteKey() {
|
|
48
|
+
const value = globalThis[PHI_LOG_SITE_KEY];
|
|
49
|
+
return typeof value === "string" ? value : null;
|
|
50
|
+
}
|
|
33
51
|
function normalizeContext(context) {
|
|
34
52
|
if (!context.service) {
|
|
35
53
|
throw new Error("Logger service is required.");
|
|
36
54
|
}
|
|
37
55
|
return {
|
|
38
56
|
service: context.service,
|
|
39
|
-
siteKey: context.siteKey ??
|
|
57
|
+
siteKey: context.siteKey ?? readNotedSiteKey(),
|
|
40
58
|
area: context.area ?? null,
|
|
41
59
|
requestId: context.requestId ?? null,
|
|
42
60
|
userId: context.userId ?? null,
|
package/net/phi-next-proxy.js
CHANGED
|
@@ -155,8 +155,16 @@ async function proxyRequest(request, path, config) {
|
|
|
155
155
|
},
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
+
/*
|
|
159
|
+
* How loud a status is depends on what it says. A 5xx is the Server failing: an error. A 409 is a write
|
|
160
|
+
* the Server refused because it collides with what is there -- someone tried something and it did not
|
|
161
|
+
* happen: a warning. Every other 4xx is the Server answering as designed -- no draft is a 404, a visitor
|
|
162
|
+
* who is not signed in a 401 on every page -- and warned about, those buried the rest under hundreds of
|
|
163
|
+
* lines a day. They stay in the log as debug, where a search for one request finds them.
|
|
164
|
+
*/
|
|
158
165
|
if (!targetResponse.ok) {
|
|
159
|
-
|
|
166
|
+
const level = targetResponse.status >= 500 ? "error" : targetResponse.status === 409 ? "warn" : "debug";
|
|
167
|
+
logRuntimeEvent(level, "proxy.request.unhealthy_response", {
|
|
160
168
|
area: "proxy",
|
|
161
169
|
message: "Proxy upstream responded with a non-OK status.",
|
|
162
170
|
method: request.method,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phis/ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.17",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -481,7 +481,7 @@
|
|
|
481
481
|
],
|
|
482
482
|
"peerDependencies": {
|
|
483
483
|
"@ant-design/icons": "^6.3.2",
|
|
484
|
-
"antd": "^6.
|
|
484
|
+
"antd": "^6.7.0",
|
|
485
485
|
"next": "^16.2.11",
|
|
486
486
|
"react": "^19.2.8",
|
|
487
487
|
"react-dom": "^19.2.8"
|
|
@@ -57,6 +57,7 @@ function resolveViewportEffectValues(effects, target) {
|
|
|
57
57
|
rotateZ: "0deg",
|
|
58
58
|
scale: "1",
|
|
59
59
|
opacity: null,
|
|
60
|
+
perspective: null,
|
|
60
61
|
};
|
|
61
62
|
for (const effect of effects) {
|
|
62
63
|
const property = effect.property ?? PHI_RENDERABLE_BLOCK_DEFAULT_VIEWPORT_EFFECT.property ?? "translate";
|
|
@@ -84,6 +85,12 @@ function resolveViewportEffectValues(effects, target) {
|
|
|
84
85
|
else {
|
|
85
86
|
values.rotateY = rotateValue;
|
|
86
87
|
}
|
|
88
|
+
// A turn about `x` or `y` tilts into the page only when seen from a distance; the first that names one
|
|
89
|
+
// holds for the element, as one transform has one eye.
|
|
90
|
+
const perspectivePx = effect.perspectivePx ?? PHI_RENDERABLE_BLOCK_DEFAULT_VIEWPORT_EFFECT.perspectivePx;
|
|
91
|
+
if (axis !== "z" && values.perspective == null && perspectivePx) {
|
|
92
|
+
values.perspective = `perspective(${perspectivePx}px)`;
|
|
93
|
+
}
|
|
87
94
|
continue;
|
|
88
95
|
}
|
|
89
96
|
const translateValue = formatViewportEffectValue(nextValue, effect.unit ?? "px");
|
|
@@ -103,6 +110,12 @@ function applyViewportEffectValues(target, values) {
|
|
|
103
110
|
target.style.setProperty("--phi-effects-viewport-rotate-y", values.rotateY);
|
|
104
111
|
target.style.setProperty("--phi-effects-viewport-rotate-z", values.rotateZ);
|
|
105
112
|
target.style.setProperty("--phi-effects-viewport-scale", values.scale);
|
|
113
|
+
if (values.perspective == null) {
|
|
114
|
+
target.style.removeProperty("--phi-effects-viewport-perspective");
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
target.style.setProperty("--phi-effects-viewport-perspective", values.perspective);
|
|
118
|
+
}
|
|
106
119
|
if (values.opacity == null) {
|
|
107
120
|
target.style.removeProperty("--phi-effects-viewport-opacity");
|
|
108
121
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { PHI_BASE_PAGE_LAYOUT_VERSION } from "../../../components/regions/presets/phi-base-page-layout";
|
|
2
|
-
import { PhiCmsFlags } from "../../../constants/phi-cms";
|
|
3
2
|
import { buildPhiAreaRootRoutePresetDescriptor } from "../area-root-route";
|
|
4
|
-
import { PHI_APP_SEARCH_PAGE_PRESET_KEY } from "../search-page-references";
|
|
5
3
|
import { PHI_APP_RUNTIME_MODULE_ID } from "./ids";
|
|
6
4
|
/* What the App base Module brings: its Area shell, the Area root and the profile Page. */
|
|
7
5
|
export const PHI_APP_RUNTIME_MODULE_AREA_SHELLS = [
|
|
@@ -66,25 +64,4 @@ export const PHI_APP_RUNTIME_MODULE_ROUTES = [
|
|
|
66
64
|
loadTree: ({ page, runtime }) => import("./trees/phi-default-app-profile-page-tree")
|
|
67
65
|
.then((module) => module.buildPhiDefaultAppProfilePageTree({ page, runtime })),
|
|
68
66
|
},
|
|
69
|
-
/*
|
|
70
|
-
* The App's own results Page (SEARCH.md). A signed-in member searches the App and the Public Site
|
|
71
|
-
* at once, and that is decided by where the results Widget stands: on this Page, in the App. The box
|
|
72
|
-
* in the App's sider leads here. No menu entry and `NoIndex`, as for the Public one.
|
|
73
|
-
*/
|
|
74
|
-
{
|
|
75
|
-
ownerModuleId: PHI_APP_RUNTIME_MODULE_ID,
|
|
76
|
-
presetKey: PHI_APP_SEARCH_PAGE_PRESET_KEY,
|
|
77
|
-
presetVersion: 1,
|
|
78
|
-
area: "app",
|
|
79
|
-
title: "Search",
|
|
80
|
-
path: "/search",
|
|
81
|
-
navigation: [],
|
|
82
|
-
defaultPageFlags: PhiCmsFlags.NoIndex,
|
|
83
|
-
loadTree: ({ page }) => import("../search-page-tree")
|
|
84
|
-
.then((module) => module.buildPhiDefaultSearchPageTree({
|
|
85
|
-
page,
|
|
86
|
-
ownerModuleId: PHI_APP_RUNTIME_MODULE_ID,
|
|
87
|
-
presetKey: PHI_APP_SEARCH_PAGE_PRESET_KEY,
|
|
88
|
-
})),
|
|
89
|
-
},
|
|
90
67
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PHI_APP_RUNTIME_MODULE_AREA_CONTRIBUTIONS: readonly [import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution];
|
|
1
|
+
export declare const PHI_APP_RUNTIME_MODULE_AREA_CONTRIBUTIONS: readonly [import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution];
|
|
@@ -4,6 +4,7 @@ import { createPhiDashboardRuntimeModuleServerAreaContribution } from "../dashbo
|
|
|
4
4
|
import { createPhiGroupsRuntimeModuleServerAreaContribution } from "../groups/server";
|
|
5
5
|
import { createPhiAuthRuntimeModuleServerAreaContribution } from "../auth/server";
|
|
6
6
|
import { createPhiVideoRuntimeModuleServerAreaContribution } from "../video/server";
|
|
7
|
+
import { createPhiSearchRuntimeModuleServerAreaContribution } from "../search/server";
|
|
7
8
|
import { PHI_APP_RUNTIME_MODULE_SERVER_AREA_CONTRIBUTION } from "../app/server";
|
|
8
9
|
export const PHI_APP_RUNTIME_MODULE_AREA_CONTRIBUTIONS = [
|
|
9
10
|
...createPhiCommonRuntimeModuleServerAreaContributions(),
|
|
@@ -12,5 +13,6 @@ export const PHI_APP_RUNTIME_MODULE_AREA_CONTRIBUTIONS = [
|
|
|
12
13
|
createPhiGroupsRuntimeModuleServerAreaContribution(),
|
|
13
14
|
createPhiAvatarRuntimeModuleServerAreaContribution(),
|
|
14
15
|
createPhiVideoRuntimeModuleServerAreaContribution(),
|
|
16
|
+
createPhiSearchRuntimeModuleServerAreaContribution(),
|
|
15
17
|
PHI_APP_RUNTIME_MODULE_SERVER_AREA_CONTRIBUTION,
|
|
16
18
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PHI_PUBLIC_RUNTIME_MODULE_AREA_CONTRIBUTIONS: readonly [import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution];
|
|
1
|
+
export declare const PHI_PUBLIC_RUNTIME_MODULE_AREA_CONTRIBUTIONS: readonly [import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution];
|
|
@@ -4,6 +4,7 @@ import { createPhiNewsRuntimeModuleServerAreaContribution } from "../news/server
|
|
|
4
4
|
import { createPhiBlogRuntimeModuleServerAreaContribution } from "../blog/server";
|
|
5
5
|
import { PHI_PUBLIC_RUNTIME_MODULE_SERVER_AREA_CONTRIBUTION } from "../public/server";
|
|
6
6
|
import { createPhiVideoRuntimeModuleServerAreaContribution } from "../video/server";
|
|
7
|
+
import { createPhiSearchRuntimeModuleServerAreaContribution } from "../search/server";
|
|
7
8
|
export const PHI_PUBLIC_RUNTIME_MODULE_AREA_CONTRIBUTIONS = [
|
|
8
9
|
...createPhiCommonRuntimeModuleServerAreaContributions(),
|
|
9
10
|
PHI_PUBLIC_RUNTIME_MODULE_SERVER_AREA_CONTRIBUTION,
|
|
@@ -11,4 +12,5 @@ export const PHI_PUBLIC_RUNTIME_MODULE_AREA_CONTRIBUTIONS = [
|
|
|
11
12
|
createPhiNewsRuntimeModuleServerAreaContribution(),
|
|
12
13
|
createPhiBlogRuntimeModuleServerAreaContribution(),
|
|
13
14
|
createPhiVideoRuntimeModuleServerAreaContribution(),
|
|
15
|
+
createPhiSearchRuntimeModuleServerAreaContribution(),
|
|
14
16
|
];
|