@phis/ui 0.4.23 → 0.5.1
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/controls/phi-background-control.js +1 -1
- package/components/controls/phi-breadcrumb-control.d.ts +2 -0
- package/components/controls/phi-button-control.d.ts +7 -1
- package/components/media/media-asset-typed-fields.d.ts +10 -0
- package/components/media/media-asset-typed-fields.js +19 -0
- package/components/media/media-settings-labels.d.ts +33 -0
- package/components/media/media-settings-labels.js +62 -0
- package/components/media/media-upload-flow.d.ts +19 -0
- package/components/media/media-upload-flow.js +38 -0
- package/components/media/phi-asset-focal-rect-widget.js +2 -2
- package/components/media/phi-asset-folder-control.js +1 -1
- package/components/media/phi-image-inspector-widget.js +1 -1
- package/components/media/phi-image-preview-data.js +5 -4
- package/components/media/phi-site-font-assets.js +2 -5
- package/components/media/use-authoring-asset-details.js +0 -1
- package/components/regions/presets/content-entry-editor-page-tree.js +1 -1
- package/components/regions/presets/navigation-redirect.d.ts +2 -2
- package/components/regions/presets/navigation-redirect.js +3 -3
- package/components/regions/presets/phi-area-shell-preset-nodes.js +2 -1
- package/components/regions/presets/phi-settings-page-shell-tree.js +1 -1
- package/components/shell/phi-antd-icon.d.ts +4 -0
- package/components/shell/phi-antd-icon.js +8 -0
- package/components/shell/phi-icon.d.ts +18 -0
- package/components/shell/phi-icon.js +50 -3
- package/components/widgets/client/shared/phi-button-icons.d.ts +7 -0
- package/components/widgets/client/shared/phi-button-icons.js +15 -67
- package/components/widgets/helpers/internal-reference-resolver.server.d.ts +1 -1
- package/components/widgets/helpers/internal-reference-resolver.server.js +4 -0
- package/components/widgets/label-sets/builder-modules.js +6 -0
- package/components/widgets/label-types/builder-modules.d.ts +4 -0
- package/components/widgets/label-types/builder-modules.js +3 -0
- package/components/widgets/label-types/common-controls.js +12 -12
- package/constants/runtime-module-ownership.js +4 -0
- package/gateway/internal-references.d.ts +5 -0
- package/gateway/internal-references.js +12 -12
- package/gateway/site-media-settings.d.ts +2 -0
- package/gateway/site-media-settings.js +6 -1
- package/gateway/site-media-storage-reader.d.ts +19 -0
- package/gateway/site-media-storage-reader.js +24 -0
- package/helpers/cms-navigation-catalog.d.ts +2 -0
- package/helpers/cms-navigation-catalog.js +1 -0
- package/helpers/cms-page-catalog.d.ts +12 -0
- package/helpers/cms-page-catalog.js +5 -0
- package/helpers/phi-seo.d.ts +16 -2
- package/helpers/phi-seo.js +54 -11
- package/helpers/public-route-claims.d.ts +4 -0
- package/helpers/public-route-claims.js +1 -1
- package/next/seo-routes.d.ts +1 -1
- package/next/seo-routes.js +23 -5
- package/package.json +1 -1
- package/plugins/runtime-modules/accounting/presets.d.ts +10 -1
- package/plugins/runtime-modules/accounting/presets.js +25 -8
- package/plugins/runtime-modules/accounting/trees/phi-default-accounting-area-preset-tree.d.ts +6 -0
- package/plugins/runtime-modules/accounting/trees/phi-default-accounting-area-preset-tree.js +53 -0
- package/plugins/runtime-modules/area-definitions.d.ts +123 -12
- package/plugins/runtime-modules/area-definitions.js +28 -0
- package/plugins/runtime-modules/asset/client-data-providers.js +12 -0
- package/plugins/runtime-modules/asset/controller/runtime.js +1 -1
- package/plugins/runtime-modules/asset/data-providers.d.ts +27 -2
- package/plugins/runtime-modules/asset/data-providers.js +56 -0
- package/plugins/runtime-modules/asset/definition.d.ts +38 -2
- package/plugins/runtime-modules/asset/definition.js +2 -1
- package/plugins/runtime-modules/asset/ids.d.ts +4 -0
- package/plugins/runtime-modules/asset/ids.js +4 -0
- package/plugins/runtime-modules/asset/server.js +2 -1
- package/plugins/runtime-modules/asset/services/options.d.ts +7 -0
- package/plugins/runtime-modules/asset/services/options.js +38 -0
- package/plugins/runtime-modules/asset/services/storage-spaces-table.d.ts +3 -0
- package/plugins/runtime-modules/asset/services/storage-spaces-table.js +89 -0
- package/plugins/runtime-modules/asset/settings-forms.d.ts +17 -0
- package/plugins/runtime-modules/asset/settings-forms.js +117 -1
- package/plugins/runtime-modules/asset/trees/phi-default-admin-media-settings-page-tree.js +94 -1
- package/plugins/runtime-modules/asset/trees/phi-default-builder-media-page-tree.js +1 -1
- package/plugins/runtime-modules/builder/area-shell-presets.server.d.ts +8 -0
- package/plugins/runtime-modules/builder/area-shell-presets.server.js +13 -0
- package/plugins/runtime-modules/builder/controller/page-controller-helpers.js +1 -1
- package/plugins/runtime-modules/builder/controller/page-controller.d.ts +1 -1
- package/plugins/runtime-modules/builder/controller/page-controller.js +30 -3
- package/plugins/runtime-modules/builder/controller/server-definition.d.ts +7 -1
- package/plugins/runtime-modules/builder/controller/server-definition.js +8 -3
- package/plugins/runtime-modules/builder/data-providers.js +1 -0
- package/plugins/runtime-modules/builder/developer-workspace-types.d.ts +2 -0
- package/plugins/runtime-modules/builder/navigation-path-context.js +7 -3
- package/plugins/runtime-modules/builder/options-providers.js +2 -2
- package/plugins/runtime-modules/builder/page-address-rule.d.ts +39 -0
- package/plugins/runtime-modules/builder/page-address-rule.js +62 -0
- package/plugins/runtime-modules/builder/page-meta-form.js +10 -0
- package/plugins/runtime-modules/builder/public-route-collisions.js +7 -2
- package/plugins/runtime-modules/builder/services/page-source-tree.js +2 -1
- package/plugins/runtime-modules/builder/services/runtime-modules-table.js +49 -1
- package/plugins/runtime-modules/builder/trees/phi-builder-inspector-area-overlay-tree.server.js +2 -2
- package/plugins/runtime-modules/builder/trees/phi-default-builder-area-preset-tree.js +16 -4
- package/plugins/runtime-modules/core/widgets/breadcrumb/client.d.ts +14 -2
- package/plugins/runtime-modules/core/widgets/breadcrumb/client.js +35 -4
- package/plugins/runtime-modules/core/widgets/breadcrumb/server.d.ts +3 -1
- package/plugins/runtime-modules/core/widgets/breadcrumb/server.js +37 -2
- package/plugins/runtime-modules/core/widgets/card/editor.js +1 -1
- package/plugins/runtime-modules/core/widgets/image/client.js +1 -1
- package/plugins/runtime-modules/core/widgets/image/editor.js +1 -1
- package/plugins/runtime-modules/core/widgets/page-title/authoring.js +3 -1
- package/plugins/runtime-modules/core/widgets/page-title/client.d.ts +3 -1
- package/plugins/runtime-modules/core/widgets/page-title/client.js +5 -1
- package/plugins/runtime-modules/core/widgets/page-title/config.d.ts +25 -3
- package/plugins/runtime-modules/core/widgets/page-title/config.js +24 -3
- package/plugins/runtime-modules/core/widgets/page-title/plugin.js +1 -1
- package/plugins/runtime-modules/core/widgets/page-title/server.d.ts +3 -1
- package/plugins/runtime-modules/core/widgets/page-title/server.js +4 -3
- package/plugins/runtime-modules/core/widgets/table/client.js +1 -1
- package/plugins/runtime-modules/core/widgets/table/config.js +9 -0
- package/plugins/runtime-modules/descriptor-compiler.js +33 -8
- package/plugins/runtime-modules/groups/trees/phi-default-admin-groups-page-tree.js +1 -1
- package/plugins/runtime-modules/localization/trees/phi-default-editor-translations-page-tree.js +1 -1
- package/plugins/runtime-modules/revisions/trees/phi-default-builder-revisions-page-tree.js +1 -1
- package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +1 -1
- package/plugins/runtime-modules/threads/trees/phi-default-threads-page-tree.js +2 -2
- package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-page-tree.js +1 -1
- package/server-helpers/cms-review-params.d.ts +25 -0
- package/server-helpers/cms-review-params.js +54 -0
- package/server-helpers/cms-review.d.ts +1 -25
- package/server-helpers/cms-review.js +2 -54
- package/styles/controls.css +11 -0
- package/types/cms-module-descriptors.d.ts +33 -3
- package/types/media.d.ts +6 -2
- package/types/table-widget.d.ts +11 -0
- package/types.d.ts +1 -1
|
@@ -147,6 +147,11 @@ export type PhiCmsNavigationBaseItemDescriptor = {
|
|
|
147
147
|
*/
|
|
148
148
|
overlayPresetKey?: string;
|
|
149
149
|
overlayNodeKey?: string;
|
|
150
|
+
/**
|
|
151
|
+
* Another Area, entered at its root. Mutually exclusive with `routePresetKey` and the Overlay keys; see
|
|
152
|
+
* `PhiCmsNavigationAreaTarget`.
|
|
153
|
+
*/
|
|
154
|
+
target?: PhiCmsNavigationAreaTarget;
|
|
150
155
|
accessPolicy?: PhiViewerAccessPolicy;
|
|
151
156
|
/**
|
|
152
157
|
* What this entry sends when it is chosen, instead of going somewhere.
|
|
@@ -214,6 +219,21 @@ export type PhiCmsNavigationExternalTarget = {
|
|
|
214
219
|
href: string;
|
|
215
220
|
newTab?: boolean;
|
|
216
221
|
};
|
|
222
|
+
/**
|
|
223
|
+
* Another Area, entered at its root: the Admin's way into the Builder and back.
|
|
224
|
+
*
|
|
225
|
+
* The root and not a Page in it, because the root is the one address every Area answers whatever
|
|
226
|
+
* Modules it has switched on -- its base Module owns it -- and it forwards to wherever this viewer lands
|
|
227
|
+
* there. A Module Page in another Area is a different question: whether its Module answers there is that
|
|
228
|
+
* Area's fact, which this request never read, so such a reference does not resolve (`REFERENCES.md`).
|
|
229
|
+
*
|
|
230
|
+
* An entry without an `accessPolicy` of its own is shown to whoever the target Area lets in, so it never
|
|
231
|
+
* leads somebody to a door that turns them away. The target must be another Area than the surface's own.
|
|
232
|
+
*/
|
|
233
|
+
export type PhiCmsNavigationAreaTarget = {
|
|
234
|
+
kind: "area";
|
|
235
|
+
area: PhiCmsAreaKey;
|
|
236
|
+
};
|
|
217
237
|
export type PhiCmsNavigationInjectionItemDescriptor = {
|
|
218
238
|
itemKey: string;
|
|
219
239
|
label: PhiCmsNavigationLabel;
|
|
@@ -226,10 +246,11 @@ export type PhiCmsNavigationInjectionItemDescriptor = {
|
|
|
226
246
|
overlayPresetKey?: string;
|
|
227
247
|
overlayNodeKey?: string;
|
|
228
248
|
/**
|
|
229
|
-
* An address outside the Site. Mutually exclusive with `routePresetKey` and the
|
|
230
|
-
* like a Site's stored external link, so every navigation
|
|
249
|
+
* An address outside the Site, or another Area's root. Mutually exclusive with `routePresetKey` and the
|
|
250
|
+
* Overlay keys. An external address resolves like a Site's stored external link, so every navigation
|
|
251
|
+
* surface renders it the same way; an Area target is `PhiCmsNavigationAreaTarget`.
|
|
231
252
|
*/
|
|
232
|
-
target?: PhiCmsNavigationExternalTarget;
|
|
253
|
+
target?: PhiCmsNavigationExternalTarget | PhiCmsNavigationAreaTarget;
|
|
233
254
|
accessPolicy?: PhiViewerAccessPolicy;
|
|
234
255
|
/** What this entry sends when it is chosen; see the base item descriptor. */
|
|
235
256
|
signalRoutes?: {
|
|
@@ -290,6 +311,15 @@ export type PhiCmsResolvedNavigationTarget = (PhiCmsPresetIdentity & {
|
|
|
290
311
|
path: string;
|
|
291
312
|
external?: boolean;
|
|
292
313
|
newTab?: boolean;
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Another Area's root. `path` is the Area segment (`/builder`, `/public` for Public), which every
|
|
317
|
+
* renderer already reads as "that Area" rather than as a path in its own (`resolvePhiNavHref`).
|
|
318
|
+
*/
|
|
319
|
+
| {
|
|
320
|
+
kind: "area";
|
|
321
|
+
area: PhiCmsAreaKey;
|
|
322
|
+
path: string;
|
|
293
323
|
};
|
|
294
324
|
export type PhiCmsResolvedNavigationItem = {
|
|
295
325
|
id: PhiCmsInstanceId;
|
package/types/media.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export type PhiMediaAssetFolder = {
|
|
|
34
34
|
};
|
|
35
35
|
export type { PhiFontMetrics, PhiMediaSpaceKind } from "@phis/contracts/media";
|
|
36
36
|
import type { PhiFontMetrics } from "@phis/contracts/media";
|
|
37
|
+
import type { MediaFocalRect } from "../components/media/focal-rect";
|
|
37
38
|
import type { PhiMediaSpaceKind } from "@phis/contracts/media";
|
|
38
39
|
/**
|
|
39
40
|
* The Space kinds a Module may declare a need for.
|
|
@@ -94,7 +95,9 @@ export type PhiMediaAsset = {
|
|
|
94
95
|
blurDataUrl: string | null;
|
|
95
96
|
thumbnailUrl?: string | null;
|
|
96
97
|
previewUrl?: string | null;
|
|
97
|
-
meta
|
|
98
|
+
/** The entries of the stored `meta` a client acts on. `meta` itself is the server's. */
|
|
99
|
+
focalRect: MediaFocalRect | null;
|
|
100
|
+
font: PhiFontMetrics | null;
|
|
98
101
|
title: string | null;
|
|
99
102
|
altText: string | null;
|
|
100
103
|
lifecycleStatus: number;
|
|
@@ -130,7 +133,8 @@ export type PhiMediaAssetTile = {
|
|
|
130
133
|
deliveryRevision: number;
|
|
131
134
|
presentationFlags: number;
|
|
132
135
|
blurDataUrl?: string | null;
|
|
133
|
-
|
|
136
|
+
focalRect: MediaFocalRect | null;
|
|
137
|
+
font: PhiFontMetrics | null;
|
|
134
138
|
folder?: Pick<PhiMediaAssetFolder, "id" | "name"> | null;
|
|
135
139
|
};
|
|
136
140
|
export type PhiMediaPickerState = {
|
package/types/table-widget.d.ts
CHANGED
|
@@ -89,6 +89,17 @@ export type PhiTableColumnDefinition = {
|
|
|
89
89
|
* moment the header scrolls away, and invites somebody to type the unit in as well.
|
|
90
90
|
*/
|
|
91
91
|
prefix?: string;
|
|
92
|
+
/**
|
|
93
|
+
* The choices of a `select` editor where the Site decides them, set by the placement at render.
|
|
94
|
+
*
|
|
95
|
+
* A resource field states its options once for every Site; which Storage Profiles a Site has is the
|
|
96
|
+
* Site's. The placement already says how a value reads (`valueMap`), so it may say what can be chosen
|
|
97
|
+
* too. Absent, the field's own options apply.
|
|
98
|
+
*/
|
|
99
|
+
options?: readonly {
|
|
100
|
+
label: string;
|
|
101
|
+
value: string;
|
|
102
|
+
}[];
|
|
92
103
|
};
|
|
93
104
|
sizing?: PhiTableColumnSizing;
|
|
94
105
|
align?: "left" | "center" | "right";
|
package/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export type { PhiCmsAreaPresetNode, PhiCmsContentWidgetNode, PhiCmsLayoutNode, P
|
|
|
2
2
|
export * from "./types/cms-overlay";
|
|
3
3
|
export type * from "./types/cms-container";
|
|
4
4
|
export * from "./types/cms-instance-id";
|
|
5
|
-
export { type PhiCmsAreaDefinition, type PhiCmsAreaOverlayPresetDescriptor, type PhiCmsAreaShellCompositionSource, type PhiCmsAreaShellPresetBinding, type PhiCmsAreaShellPresetDescriptor, type PhiCmsDescriptorBuildContext, type PhiCmsNavigationAnchor, type PhiCmsNavigationAnchoredInjectionDescriptor, type PhiCmsNavigationAnchorPlacement, type PhiCmsNavigationBaseItemDescriptor, type PhiCmsNavigationCustomItem, type PhiCmsNavigationExternalTarget, type PhiCmsNavigationFolder, type PhiCmsNavigationFolderTarget, type PhiCmsNavigationInjectionDescriptor, type PhiCmsNavigationInjectionItemDescriptor, type PhiCmsNavigationItemOverride, type PhiCmsNavigationItemPlacement, type PhiCmsNavigationItemStanding, type PhiCmsNavigationKeyedInjectionDescriptor, type PhiCmsNavigationLabel, type PhiCmsNavigationSurfaceDescriptor, type PhiCmsPresetIdentity, type PhiCmsPresetSource, type PhiCmsRoutePresetBinding, type PhiCmsRoutePresetDescriptor, type PhiCmsThemeBlockBinding, type PhiCmsThemeBlockDescriptor, type PhiCmsThemeBlockKind, type PhiCmsThemeDescriptorContribution, type PhiCmsThemePresetBinding, type PhiCmsThemePresetDescriptor, type PhiRuntimeModuleId, } from "./types/cms-module-descriptors";
|
|
5
|
+
export { type PhiCmsAreaDefinition, type PhiCmsAreaOverlayPresetDescriptor, type PhiCmsAreaShellCompositionSource, type PhiCmsAreaShellPresetBinding, type PhiCmsAreaShellPresetDescriptor, type PhiCmsDescriptorBuildContext, type PhiCmsNavigationAnchor, type PhiCmsNavigationAnchoredInjectionDescriptor, type PhiCmsNavigationAnchorPlacement, type PhiCmsNavigationAreaTarget, type PhiCmsNavigationBaseItemDescriptor, type PhiCmsNavigationCustomItem, type PhiCmsNavigationExternalTarget, type PhiCmsNavigationFolder, type PhiCmsNavigationFolderTarget, type PhiCmsNavigationInjectionDescriptor, type PhiCmsNavigationInjectionItemDescriptor, type PhiCmsNavigationItemOverride, type PhiCmsNavigationItemPlacement, type PhiCmsNavigationItemStanding, type PhiCmsNavigationKeyedInjectionDescriptor, type PhiCmsNavigationLabel, type PhiCmsNavigationSurfaceDescriptor, type PhiCmsPresetIdentity, type PhiCmsPresetSource, type PhiCmsRoutePresetBinding, type PhiCmsRoutePresetDescriptor, type PhiCmsThemeBlockBinding, type PhiCmsThemeBlockDescriptor, type PhiCmsThemeBlockKind, type PhiCmsThemeDescriptorContribution, type PhiCmsThemePresetBinding, type PhiCmsThemePresetDescriptor, type PhiRuntimeModuleId, } from "./types/cms-module-descriptors";
|
|
6
6
|
export { expandPhiBorderRadiusConfig, mergePhiBorderWidgetConfig, mergePhiCmsConfigValues, mergePhiPaddingWidgetConfig, normalizePhiPaddingWidgetConfig, } from "./types/cms-config";
|
|
7
7
|
export type { PhiCmsBorderWidgetConfig, PhiCmsPaddingWidgetConfig, PhiCmsPluginConfigBase, PhiCmsRenderableBlockConfigBase, } from "./types/cms-config";
|
|
8
8
|
export { readPhiCmsBorderWidgetConfig } from "./types/cms-border-config";
|