@phis/ui 0.4.22 → 0.5.0
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-brand-control.d.ts +6 -1
- package/components/controls/phi-brand-control.js +2 -2
- package/components/controls/phi-breadcrumb-control.d.ts +2 -0
- 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-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/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/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/shared/markdown-render.js +30 -135
- package/components/widgets/shared/markdown-translation-unit.d.ts +62 -0
- package/components/widgets/shared/markdown-translation-unit.js +211 -0
- 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/area-definitions.d.ts +75 -6
- package/plugins/runtime-modules/area-definitions.js +20 -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/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-default-builder-area-preset-tree.js +14 -2
- package/plugins/runtime-modules/core/widgets/brand/client.d.ts +3 -1
- package/plugins/runtime-modules/core/widgets/brand/client.js +2 -1
- package/plugins/runtime-modules/core/widgets/brand/plugin.js +23 -2
- package/plugins/runtime-modules/core/widgets/brand/server.d.ts +2 -2
- package/plugins/runtime-modules/core/widgets/brand/server.js +2 -1
- 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/card/server.js +7 -4
- package/plugins/runtime-modules/core/widgets/gallery/plugin.js +3 -1
- package/plugins/runtime-modules/core/widgets/gallery/server.d.ts +3 -1
- package/plugins/runtime-modules/core/widgets/gallery/server.js +12 -2
- 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/image/server.js +28 -5
- 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/theme/widgets/brand-controls/client.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/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
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { isPhiCmsReviewKind } from "../helpers/cms-scope-search-params";
|
|
2
|
+
function normalizeReviewKind(value) {
|
|
3
|
+
const normalized = value?.trim().toLowerCase();
|
|
4
|
+
return isPhiCmsReviewKind(normalized) ? normalized : null;
|
|
5
|
+
}
|
|
6
|
+
function normalizeOptionalString(value) {
|
|
7
|
+
const normalized = value?.trim();
|
|
8
|
+
return normalized ? normalized : null;
|
|
9
|
+
}
|
|
10
|
+
export function resolvePhiCmsReviewParams(searchParams) {
|
|
11
|
+
const kind = normalizeReviewKind(searchParams?.reviewKind);
|
|
12
|
+
const rawRevision = searchParams?.reviewRevision?.trim();
|
|
13
|
+
const revisionId = rawRevision ? Number(rawRevision) : null;
|
|
14
|
+
if (!kind || !Number.isInteger(revisionId) || revisionId <= 0) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
kind,
|
|
19
|
+
revisionId: revisionId,
|
|
20
|
+
area: normalizeOptionalString(searchParams?.reviewArea),
|
|
21
|
+
page: normalizeOptionalString(searchParams?.reviewPage),
|
|
22
|
+
navKey: normalizeOptionalString(searchParams?.reviewNavKey),
|
|
23
|
+
themeKey: normalizeOptionalString(searchParams?.reviewThemeKey),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export function getPhiCmsReviewRevision(review, kind) {
|
|
27
|
+
return review?.kind === kind ? review.revisionId : null;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Whether this request reads the Area or the Page as a revision Core had to authorize.
|
|
31
|
+
*
|
|
32
|
+
* `revision` and a review of kind `area` or `page` are passed on to Core's Area and Page reads, and
|
|
33
|
+
* Core answers them only to a viewer it allows to preview (`requireSiteCmsPreviewApiContext`); a
|
|
34
|
+
* refusal comes back as 401/403 before anything renders. That is what lets the Area access guard step
|
|
35
|
+
* aside for such a request: somebody else has already decided. A review of kind `navigation` or
|
|
36
|
+
* `theme` changes neither read -- the Area and the Page come back live, unauthorized -- so it is no
|
|
37
|
+
* reason to step aside. Deciding on "any valid review" did exactly that, and
|
|
38
|
+
* `?reviewKind=navigation&reviewRevision=1` showed an anonymous visitor a staff Area's shell.
|
|
39
|
+
*/
|
|
40
|
+
export function hasPhiCmsAuthorizedPreviewRead(searchParams) {
|
|
41
|
+
if (resolvePhiCmsRevisionFromSearchParams(searchParams) != null) {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
const review = resolvePhiCmsReviewParams(searchParams);
|
|
45
|
+
return review?.kind === "area" || review?.kind === "page";
|
|
46
|
+
}
|
|
47
|
+
export function resolvePhiCmsRevisionFromSearchParams(searchParams) {
|
|
48
|
+
const rawValue = searchParams?.revision;
|
|
49
|
+
if (!rawValue?.trim()) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
const parsed = Number(rawValue);
|
|
53
|
+
return Number.isInteger(parsed) && parsed > 0 ? parsed : null;
|
|
54
|
+
}
|
|
@@ -1,30 +1,6 @@
|
|
|
1
1
|
import "server-only";
|
|
2
2
|
import type { PhiSiteRequestContext } from "../types/site-request-context";
|
|
3
|
-
|
|
4
|
-
export type { PhiCmsReviewKind };
|
|
5
|
-
export type PhiCmsReviewParams = {
|
|
6
|
-
kind: PhiCmsReviewKind;
|
|
7
|
-
revisionId: number;
|
|
8
|
-
area?: string | null;
|
|
9
|
-
page?: string | null;
|
|
10
|
-
navKey?: string | null;
|
|
11
|
-
themeKey?: string | null;
|
|
12
|
-
};
|
|
13
|
-
export declare function resolvePhiCmsReviewParams(searchParams?: Record<string, string | undefined>): PhiCmsReviewParams | null;
|
|
14
|
-
export declare function getPhiCmsReviewRevision(review: PhiCmsReviewParams | null | undefined, kind: PhiCmsReviewKind): number | null;
|
|
15
|
-
/**
|
|
16
|
-
* Whether this request reads the Area or the Page as a revision Core had to authorize.
|
|
17
|
-
*
|
|
18
|
-
* `revision` and a review of kind `area` or `page` are passed on to Core's Area and Page reads, and
|
|
19
|
-
* Core answers them only to a viewer it allows to preview (`requireSiteCmsPreviewApiContext`); a
|
|
20
|
-
* refusal comes back as 401/403 before anything renders. That is what lets the Area access guard step
|
|
21
|
-
* aside for such a request: somebody else has already decided. A review of kind `navigation` or
|
|
22
|
-
* `theme` changes neither read -- the Area and the Page come back live, unauthorized -- so it is no
|
|
23
|
-
* reason to step aside. Deciding on "any valid review" did exactly that, and
|
|
24
|
-
* `?reviewKind=navigation&reviewRevision=1` showed an anonymous visitor a staff Area's shell.
|
|
25
|
-
*/
|
|
26
|
-
export declare function hasPhiCmsAuthorizedPreviewRead(searchParams?: Record<string, string | undefined>): boolean;
|
|
27
|
-
export declare function resolvePhiCmsRevisionFromSearchParams(searchParams?: Record<string, string | undefined>): number | null;
|
|
3
|
+
export { getPhiCmsReviewRevision, hasPhiCmsAuthorizedPreviewRead, resolvePhiCmsReviewParams, resolvePhiCmsRevisionFromSearchParams, type PhiCmsReviewKind, type PhiCmsReviewParams, } from "./cms-review-params";
|
|
28
4
|
export declare function resolvePhiCmsThemeReviewRequestContext({ requestContext, searchParams, cookieHeader, }: {
|
|
29
5
|
requestContext: PhiSiteRequestContext;
|
|
30
6
|
searchParams?: Record<string, string | undefined>;
|
|
@@ -1,60 +1,8 @@
|
|
|
1
1
|
import "server-only";
|
|
2
2
|
import { getSiteThemeRevision } from "../gateway/site-theme";
|
|
3
3
|
import { readPhiServerApiCredentials } from "../helpers/phis-server-credentials";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const normalized = value?.trim().toLowerCase();
|
|
7
|
-
return isPhiCmsReviewKind(normalized) ? normalized : null;
|
|
8
|
-
}
|
|
9
|
-
function normalizeOptionalString(value) {
|
|
10
|
-
const normalized = value?.trim();
|
|
11
|
-
return normalized ? normalized : null;
|
|
12
|
-
}
|
|
13
|
-
export function resolvePhiCmsReviewParams(searchParams) {
|
|
14
|
-
const kind = normalizeReviewKind(searchParams?.reviewKind);
|
|
15
|
-
const rawRevision = searchParams?.reviewRevision?.trim();
|
|
16
|
-
const revisionId = rawRevision ? Number(rawRevision) : null;
|
|
17
|
-
if (!kind || !Number.isInteger(revisionId) || revisionId <= 0) {
|
|
18
|
-
return null;
|
|
19
|
-
}
|
|
20
|
-
return {
|
|
21
|
-
kind,
|
|
22
|
-
revisionId: revisionId,
|
|
23
|
-
area: normalizeOptionalString(searchParams?.reviewArea),
|
|
24
|
-
page: normalizeOptionalString(searchParams?.reviewPage),
|
|
25
|
-
navKey: normalizeOptionalString(searchParams?.reviewNavKey),
|
|
26
|
-
themeKey: normalizeOptionalString(searchParams?.reviewThemeKey),
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
export function getPhiCmsReviewRevision(review, kind) {
|
|
30
|
-
return review?.kind === kind ? review.revisionId : null;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Whether this request reads the Area or the Page as a revision Core had to authorize.
|
|
34
|
-
*
|
|
35
|
-
* `revision` and a review of kind `area` or `page` are passed on to Core's Area and Page reads, and
|
|
36
|
-
* Core answers them only to a viewer it allows to preview (`requireSiteCmsPreviewApiContext`); a
|
|
37
|
-
* refusal comes back as 401/403 before anything renders. That is what lets the Area access guard step
|
|
38
|
-
* aside for such a request: somebody else has already decided. A review of kind `navigation` or
|
|
39
|
-
* `theme` changes neither read -- the Area and the Page come back live, unauthorized -- so it is no
|
|
40
|
-
* reason to step aside. Deciding on "any valid review" did exactly that, and
|
|
41
|
-
* `?reviewKind=navigation&reviewRevision=1` showed an anonymous visitor a staff Area's shell.
|
|
42
|
-
*/
|
|
43
|
-
export function hasPhiCmsAuthorizedPreviewRead(searchParams) {
|
|
44
|
-
if (resolvePhiCmsRevisionFromSearchParams(searchParams) != null) {
|
|
45
|
-
return true;
|
|
46
|
-
}
|
|
47
|
-
const review = resolvePhiCmsReviewParams(searchParams);
|
|
48
|
-
return review?.kind === "area" || review?.kind === "page";
|
|
49
|
-
}
|
|
50
|
-
export function resolvePhiCmsRevisionFromSearchParams(searchParams) {
|
|
51
|
-
const rawValue = searchParams?.revision;
|
|
52
|
-
if (!rawValue?.trim()) {
|
|
53
|
-
return null;
|
|
54
|
-
}
|
|
55
|
-
const parsed = Number(rawValue);
|
|
56
|
-
return Number.isInteger(parsed) && parsed > 0 ? parsed : null;
|
|
57
|
-
}
|
|
4
|
+
import { getPhiCmsReviewRevision, resolvePhiCmsReviewParams } from "./cms-review-params";
|
|
5
|
+
export { getPhiCmsReviewRevision, hasPhiCmsAuthorizedPreviewRead, resolvePhiCmsReviewParams, resolvePhiCmsRevisionFromSearchParams, } from "./cms-review-params";
|
|
58
6
|
export async function resolvePhiCmsThemeReviewRequestContext({ requestContext, searchParams, cookieHeader, }) {
|
|
59
7
|
const review = resolvePhiCmsReviewParams(searchParams);
|
|
60
8
|
const themeRevision = getPhiCmsReviewRevision(review, "theme");
|
|
@@ -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";
|