@phis/ui 0.6.2 → 0.6.3
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-root-layout.js +2 -0
- package/components/controls/phi-mask-picker-control.d.ts +7 -1
- package/components/controls/phi-mask-picker-control.js +18 -16
- package/components/controls/phi-media-picker-control.d.ts +30 -1
- package/components/controls/phi-media-picker-control.js +15 -2
- package/components/controls/phi-media-source-item-tile-control.d.ts +22 -0
- package/components/controls/phi-media-source-item-tile-control.js +65 -0
- package/components/forms/form-field-labels.d.ts +19 -0
- package/components/forms/form-field-labels.js +78 -0
- package/components/forms/form-provider-contract.d.ts +1 -17
- package/components/forms/form-provider-contract.js +4 -18
- package/components/forms/media-asset-field-keys.d.ts +27 -0
- package/components/forms/media-asset-field-keys.js +27 -0
- package/components/forms/phi-form-widget.js +5 -1
- package/components/forms/upload-field-keys.d.ts +27 -0
- package/components/forms/upload-field-keys.js +27 -0
- package/components/forms/upload-form-control.js +11 -5
- package/components/media/asset-controller-requirement.d.ts +9 -0
- package/components/media/asset-controller-requirement.js +42 -0
- package/components/media/label-sets/media-upload.d.ts +10 -0
- package/components/media/label-sets/media-upload.js +85 -0
- package/components/media/label-sets/media.js +31 -135
- package/components/media/media-upload-labels.d.ts +43 -0
- package/components/media/media-upload-labels.js +23 -0
- package/components/media/media-upload-refusals.d.ts +12 -0
- package/components/media/media-upload-refusals.js +28 -0
- package/components/media/media-widget-labels.d.ts +33 -26
- package/components/media/media-widget-labels.js +27 -36
- package/components/media/phi-area-upload-widget.js +3 -4
- package/components/media/phi-asset-inspector-section.d.ts +2 -2
- package/components/media/phi-image-inspector-widget.d.ts +2 -5
- package/components/media/phi-media-picker-binding.d.ts +17 -0
- package/components/media/phi-media-picker-binding.js +199 -4
- package/components/media/phi-media-picker-labels.d.ts +7 -0
- package/components/media/phi-media-picker-labels.js +25 -0
- package/components/media/phi-media-sources.d.ts +69 -0
- package/components/media/phi-media-sources.js +254 -0
- package/components/media/phi-media-upload.d.ts +1 -27
- package/components/media/phi-media-upload.js +4 -48
- package/components/runtime/runtime-controller-materialization.d.ts +5 -4
- package/components/runtime/runtime-controller-materialization.js +5 -4
- package/components/runtime/runtime-module-context.d.ts +5 -1
- package/components/runtime/runtime-module-context.js +4 -1
- package/components/runtime/runtime-module-media-source-client-manifest.d.ts +17 -0
- package/components/runtime/runtime-module-media-source-client-manifest.js +53 -0
- package/components/widgets/client/shared/phi-mask-picker.js +23 -13
- package/components/widgets/client/shared/phi-widget-image-tool-button.d.ts +7 -5
- package/components/widgets/client/shared/phi-widget-image-tool-button.js +11 -7
- package/components/widgets/client/shared/phi-widget-tool-buttons.js +2 -2
- package/components/widgets/config/mask.d.ts +6 -8
- package/components/widgets/config/mask.js +14 -12
- package/components/widgets/label-sets/authoring-tools.js +55 -1
- package/components/widgets/label-sets/history.js +0 -2
- package/components/widgets/label-sets/slot-upload.js +4 -4
- package/components/widgets/label-types/authoring-tools.d.ts +10 -0
- package/components/widgets/label-types/authoring-tools.js +6 -0
- package/components/widgets/label-types/history.d.ts +1 -1
- package/components/widgets/label-types/history.js +0 -1
- package/components/widgets/label-types/mask-picker.d.ts +31 -0
- package/components/widgets/label-types/mask-picker.js +30 -0
- package/components/widgets/label-types/slot-upload.d.ts +2 -2
- package/controls.d.ts +2 -0
- package/controls.js +1 -0
- package/helpers/cms-region-keys.d.ts +1 -1
- package/module-client.d.ts +5 -1
- package/module-projection-client.js +1 -0
- package/next/areas/accounting-client.js +3 -2
- package/next/areas/admin-client.js +3 -2
- package/next/areas/app-client.js +3 -2
- package/next/areas/builder-client.js +3 -2
- package/next/areas/editor-client.js +3 -2
- package/next/areas/public-client.js +3 -2
- package/next/runtime-module-client-boundary.d.ts +3 -1
- package/next/runtime-module-client-boundary.js +3 -2
- package/package.json +7 -2
- package/plugins/runtime-modules/area-module-defaults.js +4 -3
- package/plugins/runtime-modules/asset/controller/definition.d.ts +2 -2
- package/plugins/runtime-modules/asset/controller/runtime.js +2 -2
- package/plugins/runtime-modules/asset/definition.d.ts +3 -2
- package/plugins/runtime-modules/asset/definition.js +11 -3
- package/plugins/runtime-modules/asset/ids.d.ts +8 -0
- package/plugins/runtime-modules/asset/ids.js +8 -0
- package/plugins/runtime-modules/asset/labels.d.ts +4 -0
- package/plugins/runtime-modules/asset/labels.js +94 -0
- package/plugins/runtime-modules/asset/media-asset-form-control.js +32 -7
- package/plugins/runtime-modules/asset/metadata-form.js +27 -18
- package/plugins/runtime-modules/asset/trees/phi-default-builder-media-page-tree.js +14 -11
- package/plugins/runtime-modules/asset/widgets/area-upload/config.d.ts +2 -0
- package/plugins/runtime-modules/asset/widgets/area-upload/config.js +3 -0
- package/plugins/runtime-modules/asset/widgets/area-upload/server.js +3 -3
- package/plugins/runtime-modules/asset/widgets/asset-focal-rect/config.d.ts +2 -0
- package/plugins/runtime-modules/asset/widgets/asset-focal-rect/config.js +3 -0
- package/plugins/runtime-modules/asset/widgets/image-inspector/config.d.ts +2 -0
- package/plugins/runtime-modules/asset/widgets/image-inspector/config.js +3 -0
- package/plugins/runtime-modules/asset/widgets/image-inspector/server.js +2 -2
- package/plugins/runtime-modules/asset/widgets/media-picker/config.d.ts +1 -0
- package/plugins/runtime-modules/asset/widgets/media-picker/config.js +3 -0
- package/plugins/runtime-modules/auth/presets.d.ts +11 -0
- package/plugins/runtime-modules/auth/presets.js +17 -8
- package/plugins/runtime-modules/builder/clients/inspector-config-field.d.ts +1 -4
- package/plugins/runtime-modules/builder/clients/inspector-config-field.js +2 -2
- package/plugins/runtime-modules/builder/clients/inspector-image-field.d.ts +1 -3
- package/plugins/runtime-modules/builder/clients/inspector-image-field.js +4 -5
- package/plugins/runtime-modules/builder/clients/inspector-section-widget.js +3 -8
- package/plugins/runtime-modules/builder/clients/pages-header.js +2 -0
- package/plugins/runtime-modules/builder/clients/widget-inspector.js +0 -1
- package/plugins/runtime-modules/builder/controller/page-controller.d.ts +1 -1
- package/plugins/runtime-modules/builder/controller/page-controller.js +3 -3
- package/plugins/runtime-modules/builder/controller/workspace-controller.js +4 -1
- package/plugins/runtime-modules/builder/inspector-section-widget.js +5 -2
- package/plugins/runtime-modules/builder/module-authoring-catalog.server.js +3 -1
- package/plugins/runtime-modules/builder/navigation-catalog.server.js +3 -0
- package/plugins/runtime-modules/builder/offered-page-catalog.d.ts +1 -1
- package/plugins/runtime-modules/builder/offered-page-catalog.js +8 -3
- package/plugins/runtime-modules/builder/options-providers.js +2 -2
- package/plugins/runtime-modules/builder/page-address-rule.d.ts +7 -0
- package/plugins/runtime-modules/builder/page-address-rule.js +12 -0
- package/plugins/runtime-modules/builder/page-presets.server.js +4 -0
- package/plugins/runtime-modules/builder/persistence.js +2 -3
- package/plugins/runtime-modules/builder/public-route-collisions.d.ts +1 -1
- package/plugins/runtime-modules/builder/public-route-collisions.js +6 -1
- package/plugins/runtime-modules/builder/runtime-module-sandbox.server.js +8 -1
- package/plugins/runtime-modules/builder/runtime-module-selection.js +5 -5
- package/plugins/runtime-modules/builder/services/runtime-modules-table.js +24 -6
- package/plugins/runtime-modules/builder/signal-endpoints.js +2 -1
- package/plugins/runtime-modules/builder/use-offered-page-catalog.d.ts +2 -2
- package/plugins/runtime-modules/builder/use-offered-page-catalog.js +5 -3
- package/plugins/runtime-modules/builder/widgets/structure-region/plugin.js +19 -12
- package/plugins/runtime-modules/client-manifests/accounting.d.ts +1 -0
- package/plugins/runtime-modules/client-manifests/accounting.js +1 -0
- package/plugins/runtime-modules/client-manifests/admin.d.ts +1 -0
- package/plugins/runtime-modules/client-manifests/admin.js +1 -0
- package/plugins/runtime-modules/client-manifests/app.d.ts +1 -0
- package/plugins/runtime-modules/client-manifests/app.js +1 -0
- package/plugins/runtime-modules/client-manifests/builder.d.ts +1 -0
- package/plugins/runtime-modules/client-manifests/builder.js +1 -0
- package/plugins/runtime-modules/client-manifests/common.d.ts +1 -0
- package/plugins/runtime-modules/client-manifests/common.js +3 -0
- package/plugins/runtime-modules/client-manifests/editor.d.ts +1 -0
- package/plugins/runtime-modules/client-manifests/editor.js +1 -0
- package/plugins/runtime-modules/client-manifests/public.d.ts +1 -0
- package/plugins/runtime-modules/client-manifests/public.js +1 -0
- package/plugins/runtime-modules/contracts.js +61 -0
- package/plugins/runtime-modules/core/client-media-sources.d.ts +5 -0
- package/plugins/runtime-modules/core/client-media-sources.js +6 -0
- package/plugins/runtime-modules/core/messaging/forms.js +2 -15
- package/plugins/runtime-modules/core/messaging/labels.d.ts +0 -12
- package/plugins/runtime-modules/core/messaging/labels.js +0 -24
- package/plugins/runtime-modules/core/widgets/collection-view/asset-binding.js +10 -6
- package/plugins/runtime-modules/core/widgets/collection-view/config.d.ts +1 -0
- package/plugins/runtime-modules/core/widgets/collection-view/config.js +7 -0
- package/plugins/runtime-modules/core/widgets/collection-view/image-preview-grid.d.ts +8 -2
- package/plugins/runtime-modules/core/widgets/collection-view/image-preview-grid.js +2 -2
- package/plugins/runtime-modules/core/widgets/collection-view/server.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/collection-view/server.js +14 -2
- package/plugins/runtime-modules/core/widgets/image/authoring.js +1 -1
- package/plugins/runtime-modules/core/widgets/image/editor.d.ts +1 -4
- package/plugins/runtime-modules/core/widgets/image/editor.js +2 -2
- package/plugins/runtime-modules/core/widgets/slot-upload/client.js +2 -3
- package/plugins/runtime-modules/phi-default-site-area-preset-tree.js +4 -25
- package/plugins/runtime-modules/preset-contracts/pub-area.d.ts +1 -1
- package/plugins/runtime-modules/preset-contracts/pub-area.js +0 -1
- package/plugins/runtime-modules/resolver.js +27 -1
- package/plugins/runtime-modules/settings.d.ts +20 -3
- package/plugins/runtime-modules/settings.js +35 -5
- package/plugins/runtime-modules/site-module-client-manifests.d.ts +2 -0
- package/plugins/runtime-modules/site-module-client-manifests.js +2 -0
- package/plugins/runtime-modules/site-modules-client.d.ts +5 -0
- package/plugins/runtime-modules/site-modules-client.js +1 -0
- package/plugins/runtime-modules/theme/brand-theme-model.js +0 -1
- package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +97 -192
- package/plugins/runtime-modules/theme/widgets/brand-controls/plugin.js +6 -2
- package/runtime-client-manifests-accounting.d.ts +1 -1
- package/runtime-client-manifests-accounting.js +1 -1
- package/runtime-client-manifests-admin.d.ts +1 -1
- package/runtime-client-manifests-admin.js +1 -1
- package/runtime-client-manifests-app.d.ts +1 -1
- package/runtime-client-manifests-app.js +1 -1
- package/runtime-client-manifests-builder.d.ts +1 -1
- package/runtime-client-manifests-builder.js +1 -1
- package/runtime-client-manifests-editor.d.ts +1 -1
- package/runtime-client-manifests-editor.js +1 -1
- package/runtime-client-manifests-public.d.ts +2 -1
- package/runtime-client-manifests-public.js +1 -1
- package/runtime-media-source-client.d.ts +3 -0
- package/runtime-media-source-client.js +2 -0
- package/server-helpers/cms-request.js +10 -4
- package/theme/phi-theme-presets.d.ts +13 -3
- package/theme/phi-theme-presets.js +20 -3
- package/theme/phi-theme-seed-derivation.d.ts +240 -0
- package/theme/phi-theme-seed-derivation.js +126 -0
- package/types/cms-plugins.d.ts +29 -0
- package/types/media-source.d.ts +48 -0
- package/types/media-source.js +1 -0
- package/types/site-config.d.ts +1 -2
- package/types/site-theme.d.ts +0 -6
- package/types.d.ts +1 -0
- package/components/media/asset-controller-routes.d.ts +0 -8
- package/components/media/asset-controller-routes.js +0 -31
- package/helpers/brand-contact.d.ts +0 -14
- package/helpers/brand-contact.js +0 -26
|
@@ -5,6 +5,7 @@ import { findPhiBuilderPageKeyFromStoragePath, normalizePhiBuilderCmsCatalogPath
|
|
|
5
5
|
import { findFirstPhiCmsNavigationLinkPath } from "../../../components/regions/presets/navigation-redirect";
|
|
6
6
|
import { resolvePhiRuntimeAreaDefinition } from "../area-definitions";
|
|
7
7
|
import { resolvePhiAreaRootRouteNavKey } from "../area-root-route";
|
|
8
|
+
import { listPhiAlwaysActiveRuntimeModuleIds } from "../settings";
|
|
8
9
|
import { readPhiBuilderStoredAreaRootRoute } from "./developer-workspace-store";
|
|
9
10
|
/**
|
|
10
11
|
* Which Modules answer in this Area, and which Module the Area itself is.
|
|
@@ -12,14 +13,18 @@ import { readPhiBuilderStoredAreaRootRoute } from "./developer-workspace-store";
|
|
|
12
13
|
* Switched on here, or the Area's own base Module -- which is never in the selection because it is
|
|
13
14
|
* never switchable: the Area is its Module. Leaving it out would drop the landing every Site starts
|
|
14
15
|
* with from the list of the landings it may choose, and would leave the root slot with no applicant
|
|
15
|
-
* to fall back to.
|
|
16
|
+
* to fall back to. A Module declared `activation: "always"` is not in the selection either, and
|
|
17
|
+
* answers in every Area it is eligible for.
|
|
16
18
|
*/
|
|
17
19
|
function resolvePhiBuilderAreaModuleActivation(state, area) {
|
|
18
20
|
const baseModuleId = resolvePhiRuntimeAreaDefinition(resolvePhiBuilderAreaAsCmsArea(area))?.baseModuleId ?? null;
|
|
19
|
-
const
|
|
21
|
+
const activeModuleIds = new Set([
|
|
22
|
+
...listPhiAlwaysActiveRuntimeModuleIds(area, state.runtimeModuleDefinitions ?? []),
|
|
23
|
+
...(state.runtimeModuleIdsByArea?.[area] ?? []),
|
|
24
|
+
]);
|
|
20
25
|
return {
|
|
21
26
|
baseModuleId,
|
|
22
|
-
isActive: (moduleId) => moduleId === baseModuleId ||
|
|
27
|
+
isActive: (moduleId) => moduleId === baseModuleId || activeModuleIds.has(moduleId),
|
|
23
28
|
};
|
|
24
29
|
}
|
|
25
30
|
/**
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { PHI_WORKSPACE_CATALOG_SCOPE } from "../../../components/workspace/catalog-store";
|
|
3
3
|
import { resolvePhiBuilderAreaAsCmsArea } from "../../../constants/cms-areas";
|
|
4
4
|
import { isPhiRuntimeAreaBaseModuleId, resolvePhiRuntimeAreaDefinition, } from "../../../plugins/runtime-modules/area-definitions";
|
|
5
|
+
import { isPhiRuntimeModuleSelectable } from "../../../plugins/runtime-modules/settings";
|
|
5
6
|
import { isPhiCmsErrorPagePath } from "../../../constants/cms-error-pages";
|
|
6
7
|
import { PHI_BUILDER_AREA_LANDING_PAGE_EMPTY, PHI_BUILDER_AREA_ROOT_ROUTE_AUTOMATIC, PHI_BUILDER_AREA_ROOT_ROUTE_LANDING, } from "./area-settings-values";
|
|
7
8
|
import { readPhiControlOptionsProviderParam, createPhiControlOptionsProviderClient, } from "../../../components/controls/phi-options-provider";
|
|
@@ -127,8 +128,7 @@ function resolveRuntimeModulesOptions(context) {
|
|
|
127
128
|
label: definition.title,
|
|
128
129
|
description: definition.description,
|
|
129
130
|
icon: definition.icon ?? (definition.iconFamily ? `@phis/ui/widgets:${definition.iconFamily}` : undefined),
|
|
130
|
-
disabled: definition
|
|
131
|
-
definition.moduleId === baseModuleId,
|
|
131
|
+
disabled: !isPhiRuntimeModuleSelectable(definition),
|
|
132
132
|
}))
|
|
133
133
|
.sort((left, right) => left.label.localeCompare(right.label, "en", { sensitivity: "base" })),
|
|
134
134
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type PhiPresetPageNode } from "../../../helpers/cms-page-catalog";
|
|
2
2
|
import type { PhiRuntimeModuleId } from "../../../types";
|
|
3
|
+
import type { PhiDeveloperBuilderArea, PhiDeveloperBuilderWorkspaceState } from "./developer-workspace-types";
|
|
3
4
|
export type PhiBuilderPageAddressConflict = {
|
|
4
5
|
kind: "collision" | "nested";
|
|
5
6
|
/** The address of the Site Page the requested one conflicts with. */
|
|
@@ -40,6 +41,12 @@ export declare function findPhiBuilderModuleAddressConflict(requestedPath: strin
|
|
|
40
41
|
/** The Area's base Module, whose Pages are edited in place rather than replaced by a Site Page. */
|
|
41
42
|
baseModuleId?: PhiRuntimeModuleId | null;
|
|
42
43
|
}): PhiBuilderModuleAddressConflict | null;
|
|
44
|
+
/**
|
|
45
|
+
* The Modules whose addresses an Area's Site Pages keep clear of: the ones the Area selects and the
|
|
46
|
+
* ones declared `activation: "always"`, which answer there without being selected. The Area's Base
|
|
47
|
+
* Module is named apart (`baseModuleId`), because its Pages are edited in place.
|
|
48
|
+
*/
|
|
49
|
+
export declare function listPhiBuilderAddressedModuleIds(state: Pick<PhiDeveloperBuilderWorkspaceState, "runtimeModuleIdsByArea" | "runtimeModuleDefinitions">, area: PhiDeveloperBuilderArea): PhiRuntimeModuleId[];
|
|
43
50
|
export declare function describePhiBuilderModuleAddressConflict(conflict: PhiBuilderModuleAddressConflict): string;
|
|
44
51
|
/**
|
|
45
52
|
* The first Site Page that stands on a Module's package path, per Area, or null.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { normalizePhiBuilderCmsCatalogPath } from "../../../helpers/cms-page-catalog";
|
|
2
2
|
import { buildPhiRuntimeModulePackageRoutePrefix } from "../../../helpers/runtime-module-route-path";
|
|
3
|
+
import { listPhiAlwaysActiveRuntimeModuleIds } from "../settings";
|
|
3
4
|
function collectSitePagePaths(nodes, paths = []) {
|
|
4
5
|
for (const node of nodes) {
|
|
5
6
|
// Site Pages only: a Module Page has no Site path, and folders are not Pages.
|
|
@@ -76,6 +77,17 @@ export function findPhiBuilderModuleAddressConflict(requestedPath, input) {
|
|
|
76
77
|
};
|
|
77
78
|
return visit(input.catalog);
|
|
78
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* The Modules whose addresses an Area's Site Pages keep clear of: the ones the Area selects and the
|
|
82
|
+
* ones declared `activation: "always"`, which answer there without being selected. The Area's Base
|
|
83
|
+
* Module is named apart (`baseModuleId`), because its Pages are edited in place.
|
|
84
|
+
*/
|
|
85
|
+
export function listPhiBuilderAddressedModuleIds(state, area) {
|
|
86
|
+
return [...new Set([
|
|
87
|
+
...listPhiAlwaysActiveRuntimeModuleIds(area, state.runtimeModuleDefinitions ?? []),
|
|
88
|
+
...(state.runtimeModuleIdsByArea?.[area] ?? []),
|
|
89
|
+
])];
|
|
90
|
+
}
|
|
79
91
|
export function describePhiBuilderModuleAddressConflict(conflict) {
|
|
80
92
|
return conflict.base
|
|
81
93
|
? `${conflict.path} is one of this Area's built-in Pages. Open it in the Builder and edit it there; a second Page cannot take its address.`
|
|
@@ -12,6 +12,7 @@ import { PHI_BUILDER_PAGE_REGION_KEYS } from "./region-keys";
|
|
|
12
12
|
import { PHI_BUILDER_AREA_SEARCH_PARAM, PHI_BUILDER_PAGE_SEARCH_PARAM, PHI_BUILDER_RUNTIME_MODULES_SEARCH_PARAM, normalizePhiBuilderAreaSearchParam, normalizePhiBuilderPageSearchParam, normalizePhiBuilderRuntimeModuleIdsSearchParam, } from "../../../helpers/cms-scope-search-params";
|
|
13
13
|
import { compilePhiCmsActiveRouteTable, instantiatePhiCmsRoutePreset, resolvePhiCmsDescriptorCatalog, resolvePhiCmsRoutePreset, resolvePhiCmsRoutePresetByPageId, } from "../../../plugins/runtime-modules/descriptor-compiler";
|
|
14
14
|
import { resolvePhiBuilderAreaAsCmsArea } from "../../../constants/cms-areas";
|
|
15
|
+
import { listPhiAlwaysActiveRuntimeModuleIds } from "../settings";
|
|
15
16
|
import { createPhiPresetCmsPageId, isPhiCmsInstanceId } from "../../../types/cms-instance-id";
|
|
16
17
|
import { buildPhiBuilderAreaLandingSelection, buildPhiBuilderRuntimeModulesConfigForArea, } from "./area-shell-presets.server";
|
|
17
18
|
import { readPhiServerApiCredentials } from "../../../helpers/phis-server-credentials";
|
|
@@ -52,6 +53,9 @@ const resolvePhiBuilderAreaRouteTable = cache(async function resolvePhiBuilderAr
|
|
|
52
53
|
}
|
|
53
54
|
activeModuleKeys.add(runtimeModuleCatalog.platformModuleId);
|
|
54
55
|
const cmsArea = resolvePhiBuilderAreaAsCmsArea(area);
|
|
56
|
+
for (const moduleId of listPhiAlwaysActiveRuntimeModuleIds(cmsArea, [...runtimeModuleCatalog.values()].map((entry) => entry.definition))) {
|
|
57
|
+
activeModuleKeys.add(moduleId);
|
|
58
|
+
}
|
|
55
59
|
const catalog = resolvePhiCmsDescriptorCatalog(runtimeModuleCatalog);
|
|
56
60
|
const areaDefinition = catalog.areaDefinitions.get(cmsArea);
|
|
57
61
|
if (!areaDefinition) {
|
|
@@ -10,8 +10,7 @@ import { stripPhiResolvedAssetProjections } from "../../../components/media/imag
|
|
|
10
10
|
import { resolvePhiBuilderCmsStoragePath } from "../../../helpers/cms-paths";
|
|
11
11
|
import { resolvePhiCmsWidgetContentBindingForConfig } from "../../../helpers/cms-content-binding";
|
|
12
12
|
import { resolvePhiCmsRegionType } from "../../../helpers/cms-region-keys";
|
|
13
|
-
import { resolvePhiAuthUiProviderModuleId, resolvePhiDeclaredMediaSpaces, resolvePhiDeclaredSeeds, resolvePhiDeclaredThreadKinds, resolvePhiRuntimeModuleIdsForArea, } from "../../../plugins/runtime-modules/settings";
|
|
14
|
-
import { isPhiRuntimeAreaBaseModuleId } from "../../../plugins/runtime-modules/area-definitions";
|
|
13
|
+
import { resolvePhiAuthUiProviderModuleId, resolvePhiDeclaredMediaSpaces, resolvePhiDeclaredSeeds, isPhiRuntimeModuleSelectable, resolvePhiDeclaredThreadKinds, resolvePhiRuntimeModuleIdsForArea, } from "../../../plugins/runtime-modules/settings";
|
|
15
14
|
import { createPhiBuilderDraftAllocationKey } from "./draft-allocation-key";
|
|
16
15
|
import { clearPhiBuilderDraftAllocation, storePhiBuilderDraftAllocation, commitPhiDeveloperBuilderAreaConfig, readPhiBuilderEffectiveAreaRootRoute, readPhiBuilderEffectiveAreaMeta, } from "./developer-workspace-store";
|
|
17
16
|
import { resolvePhiBuilderActivePageCatalog, resolvePhiBuilderPageDefaultFlags, resolvePhiBuilderPagePresetSource, } from "../../../helpers/cms-page-catalog";
|
|
@@ -52,7 +51,7 @@ function assertPersistableAreaRuntimeModuleIds(moduleIds, moduleDefinitions) {
|
|
|
52
51
|
if (!definition) {
|
|
53
52
|
throw new Error(`Runtime module "${moduleId}" is not installed.`);
|
|
54
53
|
}
|
|
55
|
-
if (definition
|
|
54
|
+
if (isPhiRuntimeModuleSelectable(definition)) {
|
|
56
55
|
continue;
|
|
57
56
|
}
|
|
58
57
|
throw new Error(`Locked runtime module "${moduleId}" must not be persisted in Area settings.`);
|
|
@@ -14,7 +14,7 @@ export declare function resolvePhiBuilderPublicRouteCollisionAnswers(state: Pick
|
|
|
14
14
|
* actually answer with: an address freed by switching another Module off in this session counts as
|
|
15
15
|
* free, and one taken while the dialog stood counts as taken.
|
|
16
16
|
*/
|
|
17
|
-
export declare function findPhiBuilderPublicRouteAnswerProblem(state: Pick<PhiDeveloperBuilderWorkspaceState, "publicRouteClaims" | "publicRoutePaths" | "runtimeModuleIdsByArea" | "persistedPageCatalogByArea">, request: Pick<PhiBuilderPublicRouteCollisionRequest, "moduleId" | "answers">): string | null;
|
|
17
|
+
export declare function findPhiBuilderPublicRouteAnswerProblem(state: Pick<PhiDeveloperBuilderWorkspaceState, "publicRouteClaims" | "publicRoutePaths" | "runtimeModuleIdsByArea" | "runtimeModuleDefinitions" | "persistedPageCatalogByArea">, request: Pick<PhiBuilderPublicRouteCollisionRequest, "moduleId" | "answers">): string | null;
|
|
18
18
|
/**
|
|
19
19
|
* The answers, written where the route table reads them.
|
|
20
20
|
*
|
|
@@ -2,6 +2,7 @@ import { buildPhiRuntimeModulePackageRoutePrefix } from "../../../helpers/runtim
|
|
|
2
2
|
import { buildPhiPublicRouteAddressMap, findPhiPublicRoutePathCollisions, } from "../../../helpers/public-route-claims";
|
|
3
3
|
import { isPhiAssignablePublicRoutePath, } from "../../../helpers/cms-area-config";
|
|
4
4
|
import { assignPhiWorkspacePublicRoutePaths } from "./workspace-catalog-actions";
|
|
5
|
+
import { listPhiAlwaysActiveRuntimeModuleIds } from "../settings";
|
|
5
6
|
import { markPhiBuilderModuleAreasDirty } from "./developer-workspace-store";
|
|
6
7
|
/**
|
|
7
8
|
* Which Public addresses a Site Page already occupies.
|
|
@@ -30,7 +31,11 @@ function resolvePhiBuilderPersistedPublicPages(state) {
|
|
|
30
31
|
* same unsaved selection.
|
|
31
32
|
*/
|
|
32
33
|
function buildPhiBuilderPublicAddressMap(state, options) {
|
|
33
|
-
|
|
34
|
+
// A Module declared `activation: "always"` answers on Public without being in the selection.
|
|
35
|
+
const activeModuleIds = new Set([
|
|
36
|
+
...listPhiAlwaysActiveRuntimeModuleIds("public", state.runtimeModuleDefinitions ?? []),
|
|
37
|
+
...(state.runtimeModuleIdsByArea?.public ?? []),
|
|
38
|
+
].filter((moduleId) => moduleId !== options?.without));
|
|
34
39
|
return buildPhiPublicRouteAddressMap({
|
|
35
40
|
claims: state.publicRouteClaims ?? [],
|
|
36
41
|
activeModuleIds,
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import "server-only";
|
|
2
2
|
import { resolvePhiBuilderAreaAsCmsArea } from "../../../constants/cms-areas";
|
|
3
3
|
import { resolvePhiRuntimeModuleSet, resolvePhiRuntimeRenderRegistry, } from "../../../plugins/runtime-modules/resolver";
|
|
4
|
+
import { resolvePhiRuntimeModuleIdsForArea } from "../../../plugins/runtime-modules/settings";
|
|
4
5
|
import { buildPhiRuntimeModuleAccessRegistry, filterPhiCmsRenderableTreeForViewer, } from "../../../helpers/cms-access-policy";
|
|
5
6
|
export async function resolvePhiBuilderCanvasRuntimeModuleSandbox({ catalog, area, moduleIds, trees, viewer, serverCapabilities, }) {
|
|
7
|
+
/*
|
|
8
|
+
* The ids arrive from a preview snapshot, the address bar or the stored Area, and only the last was
|
|
9
|
+
* read tolerantly before it got here. A browser tab opened before a release keeps sending the
|
|
10
|
+
* selection it loaded -- one that may name a Module this build no longer has or has since locked --
|
|
11
|
+
* and the canvas must not go down over it, so all three are read the way a stored selection is.
|
|
12
|
+
*/
|
|
6
13
|
const moduleSet = await resolvePhiRuntimeModuleSet({
|
|
7
14
|
catalog,
|
|
8
15
|
area: resolvePhiBuilderAreaAsCmsArea(area),
|
|
9
|
-
moduleIds,
|
|
16
|
+
moduleIds: resolvePhiRuntimeModuleIdsForArea(area, moduleIds, [...catalog.values()].map((entry) => entry.definition)),
|
|
10
17
|
serverCapabilities,
|
|
11
18
|
});
|
|
12
19
|
const accessRegistry = buildPhiRuntimeModuleAccessRegistry(moduleSet);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolvePhiBuilderAreaAsCmsArea } from "../../../constants/cms-areas";
|
|
2
2
|
import { isPhiRuntimeAreaBaseModuleId, resolvePhiRuntimeAreaDefinition, } from "../area-definitions";
|
|
3
|
-
import { assertPhiRuntimeModuleIdsAllowedForArea } from "../settings";
|
|
3
|
+
import { assertPhiRuntimeModuleIdsAllowedForArea, isPhiRuntimeModuleSelectable } from "../settings";
|
|
4
4
|
import { getPhiDeveloperBuilderStateSnapshot, markPhiBuilderModuleAreasDirty } from "./developer-workspace-store";
|
|
5
5
|
import { setPhiWorkspaceModuleSelection } from "./workspace-catalog-actions";
|
|
6
6
|
import { capturePhiBuilderModulesHistoryState, createPhiBuilderHistoryContext, phiBuilderHistory, } from "./history";
|
|
@@ -15,8 +15,9 @@ function areRuntimeModuleIdsEqual(left, right) {
|
|
|
15
15
|
*
|
|
16
16
|
* Every id has to name an installed Module, and a Base Module id from a different Area is refused
|
|
17
17
|
* outright -- selecting one would silently activate a foreign Area's own required Module. The Platform
|
|
18
|
-
* Module
|
|
19
|
-
*
|
|
18
|
+
* Module, this Area's own Base Module and a Module declared `activation: "always"` are never taken from
|
|
19
|
+
* the input at all: they are implicit, and wherever the Area's active set is built they are added
|
|
20
|
+
* regardless of what was asked for.
|
|
20
21
|
*/
|
|
21
22
|
function normalizeRuntimeModuleSelection(selectedIds, area, definitions) {
|
|
22
23
|
const definitionsById = new Map(definitions.map((definition) => [definition.moduleId, definition]));
|
|
@@ -32,8 +33,7 @@ function normalizeRuntimeModuleSelection(selectedIds, area, definitions) {
|
|
|
32
33
|
throw new Error(`Base module "${foreignBaseModuleId}" does not belong to Area "${cmsArea}".`);
|
|
33
34
|
}
|
|
34
35
|
const moduleIds = definitions
|
|
35
|
-
.filter((definition) => definition
|
|
36
|
-
definition.moduleId !== baseModuleId &&
|
|
36
|
+
.filter((definition) => isPhiRuntimeModuleSelectable(definition) &&
|
|
37
37
|
selectedIdSet.has(definition.moduleId))
|
|
38
38
|
.map((definition) => definition.moduleId);
|
|
39
39
|
/*
|
|
@@ -42,11 +42,18 @@ function readAreaLabels(params) {
|
|
|
42
42
|
}
|
|
43
43
|
return candidate;
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Whether the Module runs in an Area it is eligible for. A Module declared `activation: "always"` does
|
|
47
|
+
* without being in the Area's selection, the way a Base Module does in its own Area.
|
|
48
|
+
*/
|
|
49
|
+
function isModuleActiveInArea(state, definition, cmsArea) {
|
|
50
|
+
if (definition.activation === "always") {
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
46
53
|
if (!isPhiBuilderAreaKey(cmsArea)) {
|
|
47
54
|
return false;
|
|
48
55
|
}
|
|
49
|
-
return (state.runtimeModuleIdsByArea[cmsArea] ?? []).includes(moduleId);
|
|
56
|
+
return (state.runtimeModuleIdsByArea[cmsArea] ?? []).includes(definition.moduleId);
|
|
50
57
|
}
|
|
51
58
|
function readRuntimeModulesTableView(query) {
|
|
52
59
|
const filters = { ...(query.filters ?? {}) };
|
|
@@ -100,13 +107,15 @@ export function buildRuntimeModuleRows(state, categoryLabels, view, serverUnavai
|
|
|
100
107
|
}
|
|
101
108
|
const baseAreaKey = resolveModuleBaseAreaKey(definition.moduleId);
|
|
102
109
|
const activeAreas = PHI_CMS_AREA_KEYS.filter((areaKey) => definition.eligibleAreas.includes(areaKey) &&
|
|
103
|
-
(areaKey === baseAreaKey || isModuleActiveInArea(state, definition
|
|
110
|
+
(areaKey === baseAreaKey || isModuleActiveInArea(state, definition, areaKey)));
|
|
104
111
|
return {
|
|
105
112
|
moduleId: definition.moduleId,
|
|
106
113
|
// "Runs anywhere": a base Module always does (its own Area never lets go of it), which is
|
|
107
114
|
// exactly why its switch is locked -- the checkboxes carry the per-Area choice that remains.
|
|
115
|
+
// A Module declared `activation: "always"` runs in every Area it is eligible for and leaves
|
|
116
|
+
// no choice at all.
|
|
108
117
|
active: activeAreas.length > 0,
|
|
109
|
-
locked: baseAreaKey != null,
|
|
118
|
+
locked: baseAreaKey != null || definition.activation === "always",
|
|
110
119
|
icon: definition.icon ?? (definition.iconFamily ? `@phis/ui/widgets:${definition.iconFamily}` : ""),
|
|
111
120
|
title: definition.title,
|
|
112
121
|
description: definition.description,
|
|
@@ -245,7 +254,7 @@ function readRuntimeModuleActiveAreas(state, moduleId) {
|
|
|
245
254
|
}
|
|
246
255
|
const baseAreaKey = resolveModuleBaseAreaKey(definition.moduleId);
|
|
247
256
|
return PHI_CMS_AREA_KEYS.filter((areaKey) => definition.eligibleAreas.includes(areaKey) &&
|
|
248
|
-
(areaKey === baseAreaKey || isModuleActiveInArea(state, definition
|
|
257
|
+
(areaKey === baseAreaKey || isModuleActiveInArea(state, definition, areaKey)));
|
|
249
258
|
}
|
|
250
259
|
function buildRuntimeModuleActiveAreasLabel(state, moduleId, areaLabels) {
|
|
251
260
|
return readRuntimeModuleActiveAreas(state, moduleId)
|
|
@@ -472,7 +481,7 @@ export function PhiBuilderRuntimeModulesTableProviderClient({ children }) {
|
|
|
472
481
|
if (proposedActive) {
|
|
473
482
|
return false;
|
|
474
483
|
}
|
|
475
|
-
const areas = cmsAreas.filter((areaKey) => isPhiBuilderAreaKey(areaKey) && isModuleActiveInArea(builderState, definition
|
|
484
|
+
const areas = cmsAreas.filter((areaKey) => isPhiBuilderAreaKey(areaKey) && isModuleActiveInArea(builderState, definition, areaKey));
|
|
476
485
|
const signInLost = leavesPublicWithoutSignIn(builderState, definition, areas);
|
|
477
486
|
const usage = signInLost
|
|
478
487
|
? [{
|
|
@@ -520,6 +529,15 @@ export function PhiBuilderRuntimeModulesTableProviderClient({ children }) {
|
|
|
520
529
|
});
|
|
521
530
|
applyPhiBuilderRuntimeModuleSelectionChanges(changes);
|
|
522
531
|
};
|
|
532
|
+
// Always active: neither the row's switch nor an Area's checkbox has anything to decide.
|
|
533
|
+
if (definition.activation === "always") {
|
|
534
|
+
return {
|
|
535
|
+
status: "rejected",
|
|
536
|
+
invalidation: "none",
|
|
537
|
+
errorCode: "locked",
|
|
538
|
+
message: `"${definition.title}" is part of the platform and runs in every Area it is eligible for.`,
|
|
539
|
+
};
|
|
540
|
+
}
|
|
523
541
|
// The row's switch: the Module as a whole, i.e. every eligible Area in one gesture.
|
|
524
542
|
if (request.fieldKey === "active") {
|
|
525
543
|
if (baseAreaKey != null) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { isPhiCmsShellOwnedRegion } from "../../../helpers/cms-region-keys";
|
|
3
3
|
import { resolvePhiControllerSignalEndpoints, resolvePhiLayoutSignalEndpoints, resolvePhiRegionSignalEndpoints, resolvePhiWidgetSignalEndpoints, } from "../../../components/widgets/signals/signal-endpoints";
|
|
4
4
|
import { resolvePhiRuntimeAreaDefinition } from "../../../plugins/runtime-modules/area-definitions";
|
|
5
|
-
import { resolvePhiRuntimeModuleIdsForArea } from "../../../plugins/runtime-modules/settings";
|
|
5
|
+
import { listPhiAlwaysActiveRuntimeModuleIds, resolvePhiRuntimeModuleIdsForArea, } from "../../../plugins/runtime-modules/settings";
|
|
6
6
|
import { getPhiRegionWidgetLabelEntry } from "../../../components/widgets/label-types/region";
|
|
7
7
|
import { isPhiBuilderPageScopedRegion, } from "./region-keys";
|
|
8
8
|
/**
|
|
@@ -93,6 +93,7 @@ export function collectPhiBuilderControllerSignalEndpoints({ moduleDefinitions,
|
|
|
93
93
|
const activeModuleIds = new Set([
|
|
94
94
|
...moduleDefinitions.filter((definition) => definition.kind === "platform").map((definition) => definition.moduleId),
|
|
95
95
|
resolvePhiRuntimeAreaDefinition(area === "public" ? "public" : area).baseModuleId,
|
|
96
|
+
...listPhiAlwaysActiveRuntimeModuleIds(area, moduleDefinitions),
|
|
96
97
|
...resolvePhiRuntimeModuleIdsForArea(area, selectedModuleIds, moduleDefinitions),
|
|
97
98
|
]);
|
|
98
99
|
const endpointsByKey = new Map();
|
|
@@ -9,8 +9,8 @@ import { type PhiBuilderOfferedCatalogState } from "./offered-page-catalog";
|
|
|
9
9
|
* looking at two entries both reading `/home` picks one by guess, with a fair chance of the one nobody
|
|
10
10
|
* is ever served. The same narrowing settles `/`, which is a slot rather than an address.
|
|
11
11
|
*
|
|
12
|
-
* A hook rather than a call each time, because the answer needs
|
|
13
|
-
* a dependency list that names all
|
|
12
|
+
* A hook rather than a call each time, because the answer needs seven pieces of the workspace state and
|
|
13
|
+
* a dependency list that names all seven. Three surfaces had written that out themselves; two of them
|
|
14
14
|
* had written it out wrong, in the same way, and the third was written by copying one of those.
|
|
15
15
|
*/
|
|
16
16
|
export declare function usePhiBuilderOfferedPageCatalog(state: PhiBuilderOfferedCatalogState, area: PhiBuilderPageCatalogArea): import("../../../helpers/cms-page-catalog").PhiPresetPageNode[];
|
|
@@ -10,18 +10,19 @@ import { resolvePhiBuilderOfferedPageCatalog, } from "./offered-page-catalog";
|
|
|
10
10
|
* looking at two entries both reading `/home` picks one by guess, with a fair chance of the one nobody
|
|
11
11
|
* is ever served. The same narrowing settles `/`, which is a slot rather than an address.
|
|
12
12
|
*
|
|
13
|
-
* A hook rather than a call each time, because the answer needs
|
|
14
|
-
* a dependency list that names all
|
|
13
|
+
* A hook rather than a call each time, because the answer needs seven pieces of the workspace state and
|
|
14
|
+
* a dependency list that names all seven. Three surfaces had written that out themselves; two of them
|
|
15
15
|
* had written it out wrong, in the same way, and the third was written by copying one of those.
|
|
16
16
|
*/
|
|
17
17
|
export function usePhiBuilderOfferedPageCatalog(state, area) {
|
|
18
|
-
const { modulePresetPagesByArea, customPages, persistedPageCatalogByArea, navigationSurfacesByArea, runtimeModuleIdsByArea, areaRootRoutes, } = state;
|
|
18
|
+
const { modulePresetPagesByArea, customPages, persistedPageCatalogByArea, navigationSurfacesByArea, runtimeModuleIdsByArea, runtimeModuleDefinitions, areaRootRoutes, } = state;
|
|
19
19
|
return useMemo(() => resolvePhiBuilderOfferedPageCatalog({
|
|
20
20
|
modulePresetPagesByArea,
|
|
21
21
|
customPages,
|
|
22
22
|
persistedPageCatalogByArea,
|
|
23
23
|
navigationSurfacesByArea,
|
|
24
24
|
runtimeModuleIdsByArea,
|
|
25
|
+
runtimeModuleDefinitions,
|
|
25
26
|
areaRootRoutes,
|
|
26
27
|
}, area), [
|
|
27
28
|
area,
|
|
@@ -30,6 +31,7 @@ export function usePhiBuilderOfferedPageCatalog(state, area) {
|
|
|
30
31
|
modulePresetPagesByArea,
|
|
31
32
|
navigationSurfacesByArea,
|
|
32
33
|
persistedPageCatalogByArea,
|
|
34
|
+
runtimeModuleDefinitions,
|
|
33
35
|
runtimeModuleIdsByArea,
|
|
34
36
|
]);
|
|
35
37
|
}
|
|
@@ -3,6 +3,8 @@ import { buildPhiWidgetLabelTranslatorOptions } from "../../../../../components/
|
|
|
3
3
|
import { renderPhiWidgetPreviewPlaceholder } from "../../../../../plugins/factories/widget-renderers";
|
|
4
4
|
import { getPhiEffectsWidgetLabels } from "../../../../../components/widgets/label-sets/effects";
|
|
5
5
|
import { getPhiAuthoringToolsLabels } from "../../../../../components/widgets/label-sets/authoring-tools";
|
|
6
|
+
import { getPhiMediaWidgetLabels } from "../../../../../components/media/label-sets/media";
|
|
7
|
+
import { PhiMediaPickerLabelsProvider } from "../../../../../components/media/phi-media-picker-labels";
|
|
6
8
|
import { PHI_BUILDER_PREVIEW_SEARCH_PARAM, } from "../../../../../plugins/runtime-modules/builder/preview-transport";
|
|
7
9
|
import { loadPhiBuilderPreviewSnapshot } from "../../../../../plugins/runtime-modules/builder/preview-store";
|
|
8
10
|
import { buildPhiBuilderCurrentPageDrafts } from "../../page-presets.server";
|
|
@@ -25,9 +27,10 @@ export const PHI_STRUCTURE_REGION_WIDGET_PLUGIN = {
|
|
|
25
27
|
const currentPageDrafts = isPhiBuilderPageScopedRegion(regionKey)
|
|
26
28
|
? await buildPhiBuilderCurrentPageDrafts(runtime, registry.runtimeModuleCatalog)
|
|
27
29
|
: undefined;
|
|
28
|
-
const [effectsLabels, authoringToolsLabels] = await Promise.all([
|
|
30
|
+
const [effectsLabels, authoringToolsLabels, mediaPickerLabels] = await Promise.all([
|
|
29
31
|
getPhiEffectsWidgetLabels(buildPhiWidgetLabelTranslatorOptions(runtime)),
|
|
30
32
|
getPhiAuthoringToolsLabels(buildPhiWidgetLabelTranslatorOptions(runtime)),
|
|
33
|
+
getPhiMediaWidgetLabels(buildPhiWidgetLabelTranslatorOptions(runtime)),
|
|
31
34
|
]);
|
|
32
35
|
const fallbackStructureDraft = currentStructureDrafts.drafts[`${currentStructureDrafts.area}:${regionKey}`] ?? null;
|
|
33
36
|
const fallbackPageDraft = currentPageDrafts?.drafts?.[`${currentPageDrafts.area}:${currentPageDrafts.pageKey}:${regionKey}`] ?? null;
|
|
@@ -60,17 +63,21 @@ export const PHI_STRUCTURE_REGION_WIDGET_PLUGIN = {
|
|
|
60
63
|
return null;
|
|
61
64
|
}
|
|
62
65
|
const { PhiStructureRegionWidget } = await import("./built-in");
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
/*
|
|
67
|
+
* The picker the tool buttons and the mask picker open says its words in the reader's language. The
|
|
68
|
+
* provider wraps the whole widget, so every nested scaffold below it reads the same set.
|
|
69
|
+
*/
|
|
70
|
+
return (_jsx(PhiMediaPickerLabelsProvider, { labels: mediaPickerLabels, children: _jsx(PhiStructureRegionWidget, { config: {
|
|
71
|
+
slotKind: config.slotKind ?? "structure",
|
|
72
|
+
origin: config.origin ?? PHI_STRUCTURE_REGION_WIDGET_DEFINITION.pluginKey,
|
|
73
|
+
regionKey,
|
|
74
|
+
title: config.title ?? config.regionKey ?? "Region",
|
|
75
|
+
subtitle: config.subtitle ?? null,
|
|
76
|
+
allowSelect: config.allowSelect ?? true,
|
|
77
|
+
allowInsert: config.allowInsert ?? true,
|
|
78
|
+
pickItems: config.pickItems ?? [],
|
|
79
|
+
fallbackMinHeight: config.fallbackMinHeight,
|
|
80
|
+
}, structureDraftsByArea: structureDraftsByArea, pageDraftsByScope: pageDraftsByScope, effectsLabels: effectsLabels, authoringToolsLabels: authoringToolsLabels, serverPreview: _jsx(PhiBuilderRegionServerPreview, { snapshot: snapshot, draft: resolvedPreviewDraft, regionKey: regionKey, runtime: runtime, registry: registry }) }) }));
|
|
74
81
|
},
|
|
75
82
|
renderPreview: ({ widget }) => renderPhiWidgetPreviewPlaceholder(widget),
|
|
76
83
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { PHI_COMMON_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST as PHI_ACCOUNTING_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST } from "./common";
|
|
2
|
+
export { PHI_COMMON_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST as PHI_ACCOUNTING_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST } from "./common";
|
|
2
3
|
export { PHI_COMMON_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST as PHI_ACCOUNTING_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST } from "./common";
|
|
3
4
|
export declare const PHI_ACCOUNTING_RUNTIME_MODULE_CONTROLLER_CLIENT_MANIFEST: import("../../../runtime-client-manifests-public").PhiRuntimeModuleControllerClientManifest;
|
|
4
5
|
export declare const PHI_ACCOUNTING_RUNTIME_MODULE_RENDER_CLIENT_MANIFEST: import("../../../runtime-render-client").PhiRuntimeModuleRenderClientManifest;
|
|
@@ -6,6 +6,7 @@ import { PHI_COMMON_RUNTIME_MODULE_DATA_PROVIDER_CLIENT_MANIFEST } from "./commo
|
|
|
6
6
|
import { extendPhiRuntimeModuleDataProviderClientManifest } from "../../../components/runtime/runtime-module-data-provider-client-manifest";
|
|
7
7
|
import { PHI_DASHBOARD_RUNTIME_DATA_PROVIDER_CLIENT_DEFINITIONS } from "../dashboard/client-data-providers";
|
|
8
8
|
export { PHI_COMMON_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST as PHI_ACCOUNTING_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST } from "./common";
|
|
9
|
+
export { PHI_COMMON_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST as PHI_ACCOUNTING_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST } from "./common";
|
|
9
10
|
export { PHI_COMMON_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST as PHI_ACCOUNTING_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST } from "./common";
|
|
10
11
|
export const PHI_ACCOUNTING_RUNTIME_MODULE_CONTROLLER_CLIENT_MANIFEST = createPhiRuntimeModuleControllerClientManifestFromAreaContributions(PHI_ACCOUNTING_RUNTIME_MODULE_CONTROLLER_CLIENT_AREA_CONTRIBUTIONS);
|
|
11
12
|
export const PHI_ACCOUNTING_RUNTIME_MODULE_RENDER_CLIENT_MANIFEST = PHI_COMMON_RUNTIME_MODULE_RENDER_CLIENT_MANIFEST;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { PHI_COMMON_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST as PHI_ADMIN_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST } from "./common";
|
|
2
|
+
export { PHI_COMMON_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST as PHI_ADMIN_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST } from "./common";
|
|
2
3
|
export { PHI_COMMON_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST as PHI_ADMIN_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST } from "./common";
|
|
3
4
|
export declare const PHI_ADMIN_RUNTIME_MODULE_CONTROLLER_CLIENT_MANIFEST: import("../../../runtime-client-manifests-public").PhiRuntimeModuleControllerClientManifest;
|
|
4
5
|
export declare const PHI_ADMIN_RUNTIME_MODULE_RENDER_CLIENT_MANIFEST: import("../../../runtime-render-client").PhiRuntimeModuleRenderClientManifest;
|
|
@@ -11,6 +11,7 @@ import { PHI_LOCALIZATION_RUNTIME_DATA_PROVIDER_CLIENT_DEFINITIONS } from "../lo
|
|
|
11
11
|
import { PHI_OBSERVABILITY_RUNTIME_DATA_PROVIDER_CLIENT_DEFINITIONS } from "../observability/client-data-providers";
|
|
12
12
|
import { PHI_USER_MANAGEMENT_RUNTIME_DATA_PROVIDER_CLIENT_DEFINITIONS } from "../user-management/client-data-providers";
|
|
13
13
|
export { PHI_COMMON_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST as PHI_ADMIN_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST } from "./common";
|
|
14
|
+
export { PHI_COMMON_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST as PHI_ADMIN_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST } from "./common";
|
|
14
15
|
export { PHI_COMMON_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST as PHI_ADMIN_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST } from "./common";
|
|
15
16
|
export const PHI_ADMIN_RUNTIME_MODULE_CONTROLLER_CLIENT_MANIFEST = createPhiRuntimeModuleControllerClientManifestFromAreaContributions(PHI_ADMIN_RUNTIME_MODULE_CONTROLLER_CLIENT_AREA_CONTRIBUTIONS);
|
|
16
17
|
export const PHI_ADMIN_RUNTIME_MODULE_RENDER_CLIENT_MANIFEST = PHI_COMMON_RUNTIME_MODULE_RENDER_CLIENT_MANIFEST;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const PHI_APP_RUNTIME_MODULE_DATA_PROVIDER_CLIENT_MANIFEST: import("../../../runtime-client-manifests-public").PhiRuntimeModuleDataProviderClientManifest;
|
|
2
2
|
export { PHI_COMMON_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST as PHI_APP_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST } from "./common";
|
|
3
|
+
export { PHI_COMMON_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST as PHI_APP_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST } from "./common";
|
|
3
4
|
export { PHI_COMMON_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST as PHI_APP_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST } from "./common";
|
|
4
5
|
export declare const PHI_APP_RUNTIME_MODULE_CONTROLLER_CLIENT_MANIFEST: import("../../../runtime-client-manifests-public").PhiRuntimeModuleControllerClientManifest;
|
|
5
6
|
export declare const PHI_APP_RUNTIME_MODULE_RENDER_CLIENT_MANIFEST: import("../../../runtime-render-client").PhiRuntimeModuleRenderClientManifest;
|
|
@@ -14,6 +14,7 @@ export const PHI_APP_RUNTIME_MODULE_DATA_PROVIDER_CLIENT_MANIFEST = extendPhiRun
|
|
|
14
14
|
...PHI_GROUPS_RUNTIME_DATA_PROVIDER_CLIENT_DEFINITIONS,
|
|
15
15
|
]);
|
|
16
16
|
export { PHI_COMMON_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST as PHI_APP_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST } from "./common";
|
|
17
|
+
export { PHI_COMMON_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST as PHI_APP_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST } from "./common";
|
|
17
18
|
export { PHI_COMMON_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST as PHI_APP_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST } from "./common";
|
|
18
19
|
export const PHI_APP_RUNTIME_MODULE_CONTROLLER_CLIENT_MANIFEST = createPhiRuntimeModuleControllerClientManifestFromAreaContributions(PHI_APP_RUNTIME_MODULE_CONTROLLER_CLIENT_AREA_CONTRIBUTIONS);
|
|
19
20
|
export const PHI_APP_RUNTIME_MODULE_RENDER_CLIENT_MANIFEST = extendPhiRuntimeModuleRenderClientManifest(PHI_COMMON_RUNTIME_MODULE_RENDER_CLIENT_MANIFEST, [PHI_AUTH_SECURITY_RENDER_CLIENT_LOADER]);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { PHI_COMMON_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST as PHI_BUILDER_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST } from "./common";
|
|
2
|
+
export { PHI_COMMON_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST as PHI_BUILDER_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST } from "./common";
|
|
2
3
|
export { PHI_COMMON_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST as PHI_BUILDER_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST } from "./common";
|
|
3
4
|
export declare const PHI_BUILDER_RUNTIME_MODULE_CONTROLLER_CLIENT_MANIFEST: import("../../../runtime-client-manifests-public").PhiRuntimeModuleControllerClientManifest;
|
|
4
5
|
export declare const PHI_BUILDER_RUNTIME_MODULE_RENDER_CLIENT_MANIFEST: import("../../../runtime-render-client").PhiRuntimeModuleRenderClientManifest;
|
|
@@ -14,6 +14,7 @@ import { PHI_REVISIONS_RUNTIME_DATA_PROVIDER_CLIENT_DEFINITIONS } from "../revis
|
|
|
14
14
|
import { PHI_THEME_RUNTIME_DATA_PROVIDER_CLIENT_DEFINITIONS } from "../theme/client-data-providers";
|
|
15
15
|
import { PHI_AUTH_RUNTIME_MODULE_RENDER_CLIENT_LOADERS, } from "./auth-render-clients";
|
|
16
16
|
export { PHI_COMMON_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST as PHI_BUILDER_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST } from "./common";
|
|
17
|
+
export { PHI_COMMON_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST as PHI_BUILDER_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST } from "./common";
|
|
17
18
|
export { PHI_COMMON_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST as PHI_BUILDER_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST } from "./common";
|
|
18
19
|
export const PHI_BUILDER_RUNTIME_MODULE_CONTROLLER_CLIENT_MANIFEST = createPhiRuntimeModuleControllerClientManifestFromAreaContributions(PHI_BUILDER_RUNTIME_MODULE_CONTROLLER_CLIENT_AREA_CONTRIBUTIONS);
|
|
19
20
|
export const PHI_BUILDER_RUNTIME_MODULE_RENDER_CLIENT_MANIFEST = extendPhiRuntimeModuleRenderClientManifest(PHI_COMMON_RUNTIME_MODULE_RENDER_CLIENT_MANIFEST, [
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "../../../components/shell/phi-icon";
|
|
2
2
|
export declare const PHI_COMMON_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST: import("../../../runtime-calendar-adapter-client").PhiRuntimeModuleCalendarAdapterClientManifest;
|
|
3
|
+
export declare const PHI_COMMON_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST: import("../../../runtime-client-manifests-public").PhiRuntimeModuleMediaSourceClientManifest;
|
|
3
4
|
/**
|
|
4
5
|
* The first-party Module UI providers, loaded where a node of their Module renders.
|
|
5
6
|
*
|
|
@@ -12,10 +12,13 @@ import { PHI_MEDIA_LIBRARY_ITEM_RENDERER_KEY } from "../../../constants/media-li
|
|
|
12
12
|
import { PHI_DASHBOARD_CARD_ITEM_RENDERER_KEY } from "../../../constants/dashboard-card-provider-keys";
|
|
13
13
|
import { createPhiRuntimeModuleCalendarAdapterClientManifest } from "../../../components/runtime/runtime-module-calendar-adapter-client-manifest";
|
|
14
14
|
import { PHI_CORE_CALENDAR_ADAPTER_CLIENT_DEFINITIONS } from "../core/client-calendar-adapters";
|
|
15
|
+
import { createPhiRuntimeModuleMediaSourceClientManifest } from "../../../components/runtime/runtime-module-media-source-client-manifest";
|
|
16
|
+
import { PHI_CORE_MEDIA_SOURCE_CLIENT_DEFINITIONS } from "../core/client-media-sources";
|
|
15
17
|
import { PhiLazyAssetRuntimeControllerClient } from "../asset/client";
|
|
16
18
|
import { createPhiRuntimeModuleUiProviderClientManifest, } from "../../../components/runtime/runtime-module-ui-provider-client-manifest";
|
|
17
19
|
import { PHI_AUTH_RUNTIME_MODULE_ID } from "../auth/ids";
|
|
18
20
|
export const PHI_COMMON_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST = createPhiRuntimeModuleCalendarAdapterClientManifest(PHI_CORE_CALENDAR_ADAPTER_CLIENT_DEFINITIONS);
|
|
21
|
+
export const PHI_COMMON_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST = createPhiRuntimeModuleMediaSourceClientManifest(PHI_CORE_MEDIA_SOURCE_CLIENT_DEFINITIONS);
|
|
19
22
|
/**
|
|
20
23
|
* The first-party Module UI providers, loaded where a node of their Module renders.
|
|
21
24
|
*
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { PHI_COMMON_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST as PHI_EDITOR_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST } from "./common";
|
|
2
|
+
export { PHI_COMMON_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST as PHI_EDITOR_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST } from "./common";
|
|
2
3
|
export { PHI_COMMON_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST as PHI_EDITOR_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST } from "./common";
|
|
3
4
|
export declare const PHI_EDITOR_RUNTIME_MODULE_CONTROLLER_CLIENT_MANIFEST: import("../../../runtime-client-manifests-public").PhiRuntimeModuleControllerClientManifest;
|
|
4
5
|
export declare const PHI_EDITOR_RUNTIME_MODULE_RENDER_CLIENT_MANIFEST: import("../../../runtime-render-client").PhiRuntimeModuleRenderClientManifest;
|
|
@@ -3,6 +3,7 @@ import { createPhiRuntimeModuleControllerClientManifestFromAreaContributions } f
|
|
|
3
3
|
import { PHI_EDITOR_RUNTIME_MODULE_CONTROLLER_CLIENT_AREA_CONTRIBUTIONS } from "../client-area-contributions/editor";
|
|
4
4
|
import { PHI_COMMON_RUNTIME_MODULE_RENDER_CLIENT_MANIFEST } from "./common";
|
|
5
5
|
export { PHI_COMMON_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST as PHI_EDITOR_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST } from "./common";
|
|
6
|
+
export { PHI_COMMON_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST as PHI_EDITOR_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST } from "./common";
|
|
6
7
|
export { PHI_COMMON_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST as PHI_EDITOR_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST } from "./common";
|
|
7
8
|
import { extendPhiRuntimeModuleDataProviderClientManifest } from "../../../components/runtime/runtime-module-data-provider-client-manifest";
|
|
8
9
|
import { PHI_COMMON_RUNTIME_MODULE_DATA_PROVIDER_CLIENT_MANIFEST } from "./common-data-providers";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { PHI_COMMON_RUNTIME_MODULE_DATA_PROVIDER_CLIENT_MANIFEST as PHI_PUBLIC_RUNTIME_MODULE_DATA_PROVIDER_CLIENT_MANIFEST } from "./common-data-providers";
|
|
2
2
|
export { PHI_COMMON_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST as PHI_PUBLIC_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST } from "./common";
|
|
3
|
+
export { PHI_COMMON_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST as PHI_PUBLIC_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST } from "./common";
|
|
3
4
|
export { PHI_COMMON_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST as PHI_PUBLIC_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST } from "./common";
|
|
4
5
|
export declare const PHI_PUBLIC_RUNTIME_MODULE_CONTROLLER_CLIENT_MANIFEST: import("../../../runtime-client-manifests-public").PhiRuntimeModuleControllerClientManifest;
|
|
5
6
|
export declare const PHI_PUBLIC_RUNTIME_MODULE_RENDER_CLIENT_MANIFEST: import("../../../runtime-render-client").PhiRuntimeModuleRenderClientManifest;
|
|
@@ -6,6 +6,7 @@ import { extendPhiRuntimeModuleRenderClientManifest } from "../../../components/
|
|
|
6
6
|
import { PHI_AUTH_RUNTIME_MODULE_RENDER_CLIENT_LOADERS, } from "./auth-render-clients";
|
|
7
7
|
export { PHI_COMMON_RUNTIME_MODULE_DATA_PROVIDER_CLIENT_MANIFEST as PHI_PUBLIC_RUNTIME_MODULE_DATA_PROVIDER_CLIENT_MANIFEST } from "./common-data-providers";
|
|
8
8
|
export { PHI_COMMON_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST as PHI_PUBLIC_RUNTIME_MODULE_CALENDAR_ADAPTER_CLIENT_MANIFEST } from "./common";
|
|
9
|
+
export { PHI_COMMON_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST as PHI_PUBLIC_RUNTIME_MODULE_MEDIA_SOURCE_CLIENT_MANIFEST } from "./common";
|
|
9
10
|
export { PHI_COMMON_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST as PHI_PUBLIC_RUNTIME_MODULE_UI_PROVIDER_CLIENT_MANIFEST } from "./common";
|
|
10
11
|
export const PHI_PUBLIC_RUNTIME_MODULE_CONTROLLER_CLIENT_MANIFEST = createPhiRuntimeModuleControllerClientManifestFromAreaContributions(PHI_PUBLIC_RUNTIME_MODULE_CONTROLLER_CLIENT_AREA_CONTRIBUTIONS);
|
|
11
12
|
export const PHI_PUBLIC_RUNTIME_MODULE_RENDER_CLIENT_MANIFEST = extendPhiRuntimeModuleRenderClientManifest(PHI_COMMON_RUNTIME_MODULE_RENDER_CLIENT_MANIFEST, [
|