@phis/ui 0.5.6 → 0.6.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-amount-list-control.d.ts +69 -0
- package/components/controls/phi-amount-list-control.js +15 -0
- package/components/controls/phi-background-control.d.ts +9 -1
- package/components/controls/phi-background-control.js +66 -20
- package/components/controls/phi-button-control.js +16 -2
- package/components/root/phi-root-layout.d.ts +1 -0
- package/components/root/phi-root-layout.js +1 -0
- package/components/widgets/config/background-pattern-live.d.ts +25 -0
- package/components/widgets/config/background-pattern-live.js +50 -0
- package/components/widgets/shared/markdown-body-client.d.ts +4 -1
- package/components/widgets/shared/markdown-body-client.js +3 -3
- package/components/widgets/shared/markdown-image-vocabulary.d.ts +19 -6
- package/components/widgets/shared/markdown-image-vocabulary.js +34 -9
- package/components/widgets/shared/markdown-render.d.ts +2 -1
- package/components/widgets/shared/markdown-render.js +4 -1
- package/constants/media.d.ts +2 -0
- package/constants/media.js +2 -0
- package/controls.d.ts +2 -0
- package/controls.js +1 -0
- package/gateway/signet-route.d.ts +24 -0
- package/gateway/signet-route.js +102 -0
- package/gateway/site-proxy.js +14 -7
- package/helpers/phi-metadata.d.ts +8 -6
- package/helpers/phi-metadata.js +9 -2
- package/helpers/phi-signet-head.d.ts +25 -0
- package/helpers/phi-signet-head.js +41 -0
- package/helpers/phi-signet-paths.d.ts +16 -0
- package/helpers/phi-signet-paths.js +19 -0
- package/helpers/phi-signet.d.ts +28 -0
- package/helpers/phi-signet.js +59 -0
- package/next/root-route.js +7 -4
- package/next/site-proxy.js +16 -0
- package/package.json +3 -3
- package/plugins/runtime-modules/area-definitions.d.ts +24 -3
- package/plugins/runtime-modules/area-definitions.js +11 -3
- package/plugins/runtime-modules/builder/clients/inspector-config-field.d.ts +1 -1
- package/plugins/runtime-modules/builder/clients/inspector-config-field.js +8 -0
- package/plugins/runtime-modules/core/widgets/card/config.d.ts +10 -0
- package/plugins/runtime-modules/core/widgets/card/config.js +1 -0
- package/plugins/runtime-modules/core/widgets/description/config.d.ts +10 -0
- package/plugins/runtime-modules/core/widgets/entry-list/config.d.ts +10 -0
- package/plugins/runtime-modules/core/widgets/gallery/config.d.ts +10 -0
- package/plugins/runtime-modules/core/widgets/markdown/config.d.ts +16 -1
- package/plugins/runtime-modules/core/widgets/markdown/config.js +18 -1
- package/plugins/runtime-modules/core/widgets/result/config.d.ts +10 -0
- package/plugins/runtime-modules/core/widgets/simple-text/config.d.ts +10 -0
- package/plugins/runtime-modules/core/widgets/table/config.d.ts +34 -0
- package/plugins/runtime-modules/public/presets.d.ts +12 -0
- package/plugins/runtime-modules/public/presets.js +10 -0
- package/plugins/runtime-modules/public/server.js +1 -1
- package/plugins/runtime-modules/public/trees/phi-default-pub-privacy-page-tree.d.ts +4 -0
- package/plugins/runtime-modules/public/trees/phi-default-pub-privacy-page-tree.js +66 -0
- package/plugins/runtime-modules/public-base-page-references.d.ts +2 -1
- package/plugins/runtime-modules/public-base-page-references.js +2 -1
- package/plugins/runtime-modules/theme/controller/runtime.js +7 -2
- package/plugins/runtime-modules/theme/materialize-images.d.ts +16 -0
- package/plugins/runtime-modules/theme/materialize-images.js +37 -0
- package/styles/amount-list.css +142 -0
- package/styles/controls.css +186 -12
- package/styles/gradients.css +21 -20
- package/theme/phi-theme-blocks.d.ts +7 -6
- package/theme/phi-theme-composition.d.ts +19 -1
- package/theme/phi-theme-composition.js +15 -0
- package/theme/phi-theme-signet.d.ts +25 -0
- package/theme/phi-theme-signet.js +17 -0
- package/types/cms-plugins.d.ts +8 -0
- package/types/core-widget-placements.d.ts +2 -1
- package/types/site-theme.d.ts +17 -0
|
@@ -26,6 +26,13 @@ export declare const PHI_PUBLIC_RUNTIME_AREA_DEFINITIONS: {
|
|
|
26
26
|
defaultMessage: string;
|
|
27
27
|
};
|
|
28
28
|
readonly items: readonly [{
|
|
29
|
+
readonly itemKey: "@phis/ui/modules/public/nav/privacy";
|
|
30
|
+
readonly label: {
|
|
31
|
+
defaultMessage: string;
|
|
32
|
+
};
|
|
33
|
+
readonly icon: "antd:safety-certificate";
|
|
34
|
+
readonly routePresetKey: "public-privacy-page";
|
|
35
|
+
}, {
|
|
29
36
|
readonly itemKey: "@phis/ui/modules/public/nav/terms";
|
|
30
37
|
readonly label: {
|
|
31
38
|
defaultMessage: string;
|
|
@@ -33,7 +40,7 @@ export declare const PHI_PUBLIC_RUNTIME_AREA_DEFINITIONS: {
|
|
|
33
40
|
readonly icon: "antd:file-text";
|
|
34
41
|
readonly routePresetKey: "public-terms-page";
|
|
35
42
|
}];
|
|
36
|
-
readonly exportedItemKeys: readonly ["@phis/ui/modules/public/nav/terms"];
|
|
43
|
+
readonly exportedItemKeys: readonly ["@phis/ui/modules/public/nav/privacy", "@phis/ui/modules/public/nav/terms"];
|
|
37
44
|
}, PhiCmsNavigationSurfaceDescriptor];
|
|
38
45
|
}[];
|
|
39
46
|
export declare const PHI_APP_ACCOUNT_NAV_ITEM_KEY = "@phis/ui/modules/app/nav/account";
|
|
@@ -231,6 +238,13 @@ export declare const PHI_ALL_RUNTIME_AREA_DEFINITIONS: ({
|
|
|
231
238
|
defaultMessage: string;
|
|
232
239
|
};
|
|
233
240
|
readonly items: readonly [{
|
|
241
|
+
readonly itemKey: "@phis/ui/modules/public/nav/privacy";
|
|
242
|
+
readonly label: {
|
|
243
|
+
defaultMessage: string;
|
|
244
|
+
};
|
|
245
|
+
readonly icon: "antd:safety-certificate";
|
|
246
|
+
readonly routePresetKey: "public-privacy-page";
|
|
247
|
+
}, {
|
|
234
248
|
readonly itemKey: "@phis/ui/modules/public/nav/terms";
|
|
235
249
|
readonly label: {
|
|
236
250
|
defaultMessage: string;
|
|
@@ -238,7 +252,7 @@ export declare const PHI_ALL_RUNTIME_AREA_DEFINITIONS: ({
|
|
|
238
252
|
readonly icon: "antd:file-text";
|
|
239
253
|
readonly routePresetKey: "public-terms-page";
|
|
240
254
|
}];
|
|
241
|
-
readonly exportedItemKeys: readonly ["@phis/ui/modules/public/nav/terms"];
|
|
255
|
+
readonly exportedItemKeys: readonly ["@phis/ui/modules/public/nav/privacy", "@phis/ui/modules/public/nav/terms"];
|
|
242
256
|
}, PhiCmsNavigationSurfaceDescriptor];
|
|
243
257
|
} | {
|
|
244
258
|
area: "app";
|
|
@@ -490,6 +504,13 @@ export declare function resolvePhiRuntimeAreaDefinition(area: PhiCmsAreaDefiniti
|
|
|
490
504
|
defaultMessage: string;
|
|
491
505
|
};
|
|
492
506
|
readonly items: readonly [{
|
|
507
|
+
readonly itemKey: "@phis/ui/modules/public/nav/privacy";
|
|
508
|
+
readonly label: {
|
|
509
|
+
defaultMessage: string;
|
|
510
|
+
};
|
|
511
|
+
readonly icon: "antd:safety-certificate";
|
|
512
|
+
readonly routePresetKey: "public-privacy-page";
|
|
513
|
+
}, {
|
|
493
514
|
readonly itemKey: "@phis/ui/modules/public/nav/terms";
|
|
494
515
|
readonly label: {
|
|
495
516
|
defaultMessage: string;
|
|
@@ -497,7 +518,7 @@ export declare function resolvePhiRuntimeAreaDefinition(area: PhiCmsAreaDefiniti
|
|
|
497
518
|
readonly icon: "antd:file-text";
|
|
498
519
|
readonly routePresetKey: "public-terms-page";
|
|
499
520
|
}];
|
|
500
|
-
readonly exportedItemKeys: readonly ["@phis/ui/modules/public/nav/terms"];
|
|
521
|
+
readonly exportedItemKeys: readonly ["@phis/ui/modules/public/nav/privacy", "@phis/ui/modules/public/nav/terms"];
|
|
501
522
|
}, PhiCmsNavigationSurfaceDescriptor];
|
|
502
523
|
} | {
|
|
503
524
|
area: "app";
|
|
@@ -113,7 +113,9 @@ function sidebarAnchors(settingsItemKey) {
|
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
115
|
/*
|
|
116
|
-
* The Public
|
|
116
|
+
* The Public header carries one intrinsic entry, the terms, and exports it as the one anchor. The footer
|
|
117
|
+
* carries two, the privacy notice and the terms in that order, and exports both: a Site package that has
|
|
118
|
+
* its own imprint places it before the privacy notice.
|
|
117
119
|
*
|
|
118
120
|
* The terms are Core's, so their entry is; the contact entry hangs after it, and a Site package's
|
|
119
121
|
* landing places its Home entry before it. Public has no sidebar and no quick-links surface: the Public
|
|
@@ -126,6 +128,12 @@ const publicTermsItem = {
|
|
|
126
128
|
icon: "antd:file-text",
|
|
127
129
|
routePresetKey: "public-terms-page",
|
|
128
130
|
};
|
|
131
|
+
const publicPrivacyItem = {
|
|
132
|
+
itemKey: "@phis/ui/modules/public/nav/privacy",
|
|
133
|
+
label: label("Privacy"),
|
|
134
|
+
icon: "antd:safety-certificate",
|
|
135
|
+
routePresetKey: "public-privacy-page",
|
|
136
|
+
};
|
|
129
137
|
const publicNavigationSurfaces = [
|
|
130
138
|
{
|
|
131
139
|
navKey: "public:header",
|
|
@@ -136,8 +144,8 @@ const publicNavigationSurfaces = [
|
|
|
136
144
|
{
|
|
137
145
|
navKey: "public:footer",
|
|
138
146
|
label: label("Public footer navigation"),
|
|
139
|
-
items: [publicTermsItem],
|
|
140
|
-
exportedItemKeys: [publicTermsItem.itemKey],
|
|
147
|
+
items: [publicPrivacyItem, publicTermsItem],
|
|
148
|
+
exportedItemKeys: [publicPrivacyItem.itemKey, publicTermsItem.itemKey],
|
|
141
149
|
},
|
|
142
150
|
accountNavigationSurface(PHI_PUBLIC_ACCOUNT_NAV_ITEM_KEY, "public:account"),
|
|
143
151
|
];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import type
|
|
2
|
+
import { type PhiBackgroundControlProps } from "../../../../components/controls/phi-background-control";
|
|
3
3
|
import type { PhiCmsConfigField, PhiRuntimeModuleDataProviderDescriptor } from "../../../../types/cms-plugins";
|
|
4
4
|
import type { PhiCalendarAdapterDescriptor } from "../../../../types/calendar";
|
|
5
5
|
import type { PhiVideoProviderDescriptor } from "../../../../types/video";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { Fragment, useMemo, useState } from "react";
|
|
4
|
+
import { PhiBackgroundControl } from "../../../../components/controls/phi-background-control";
|
|
4
5
|
import { readPhiDotPath } from "../../../../helpers/dot-path";
|
|
5
6
|
import { PhiCheckboxGroupControl } from "../../../../components/controls/phi-checkbox-group-control";
|
|
6
7
|
import { PhiDividerControl } from "../../../../components/controls/phi-divider-control";
|
|
@@ -730,6 +731,13 @@ function renderPhiInspectorConfigFieldBody({ field, value, defaultValue, config,
|
|
|
730
731
|
// A box inside a Widget has no layer of its own to blur.
|
|
731
732
|
backgroundFilters: ["glass", "haze", "clear"], backgroundLabels: backgroundLabels, borderLabels: borderLabels, colorPickerLabels: colorPickerLabels, renderMediaPicker: renderMediaPicker, onChange: (nextValue) => onChange?.({ [field.key]: nextValue }) }));
|
|
732
733
|
}
|
|
734
|
+
/*
|
|
735
|
+
* The Control names its own section ("Overlay", from the Background labels), so the field adds no label
|
|
736
|
+
* above it. The Base is not edited here and is passed as `none`; a cleared Overlay removes the key.
|
|
737
|
+
*/
|
|
738
|
+
if (field.type === "background-overlay") {
|
|
739
|
+
return (_jsx(PhiFlexControl, { vertical: true, style: { width: "100%", minWidth: 0 }, children: _jsx(PhiBackgroundControl, { mode: "control", base: false, disabled: disabled || !onChange, value: { base: { kind: "none" }, overlay: (value ?? null) }, labels: backgroundLabels, colorPickerLabels: colorPickerLabels, renderMediaPicker: renderMediaPicker, onChange: (next) => onChange?.({ [field.key]: next?.overlay ?? undefined }) }) }, field.key));
|
|
740
|
+
}
|
|
733
741
|
if (field.type === "icon") {
|
|
734
742
|
const iconValue = typeof value === "string"
|
|
735
743
|
? value
|
|
@@ -486,6 +486,16 @@ export declare const PHI_CARD_WIDGET_DEFINITION: {
|
|
|
486
486
|
editorPlacement?: "inspector" | "geometry" | "toolbar";
|
|
487
487
|
visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
|
|
488
488
|
heading?: string;
|
|
489
|
+
} & {
|
|
490
|
+
type: "background-overlay";
|
|
491
|
+
}) | ({
|
|
492
|
+
key: string;
|
|
493
|
+
label: string;
|
|
494
|
+
description?: string;
|
|
495
|
+
required?: boolean;
|
|
496
|
+
editorPlacement?: "inspector" | "geometry" | "toolbar";
|
|
497
|
+
visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
|
|
498
|
+
heading?: string;
|
|
489
499
|
} & {
|
|
490
500
|
type: "grid-placement" | "column-count";
|
|
491
501
|
section?: string;
|
|
@@ -227,6 +227,7 @@ export const PHI_CARD_WIDGET_DEFINITION = {
|
|
|
227
227
|
step: 5,
|
|
228
228
|
suffix: "%",
|
|
229
229
|
},
|
|
230
|
+
{ key: "imageOverlay", type: "background-overlay", label: "Overlay" },
|
|
230
231
|
/* The icon and where it stands, under one divider: what else an icon will need goes here as well. */
|
|
231
232
|
{ key: "icon", type: "icon", heading: "Icon", label: "Icon" },
|
|
232
233
|
{
|
|
@@ -336,6 +336,16 @@ export declare const PHI_DESCRIPTION_WIDGET_DEFINITION: {
|
|
|
336
336
|
editorPlacement?: "inspector" | "geometry" | "toolbar";
|
|
337
337
|
visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
|
|
338
338
|
heading?: string;
|
|
339
|
+
} & {
|
|
340
|
+
type: "background-overlay";
|
|
341
|
+
}) | ({
|
|
342
|
+
key: string;
|
|
343
|
+
label: string;
|
|
344
|
+
description?: string;
|
|
345
|
+
required?: boolean;
|
|
346
|
+
editorPlacement?: "inspector" | "geometry" | "toolbar";
|
|
347
|
+
visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
|
|
348
|
+
heading?: string;
|
|
339
349
|
} & {
|
|
340
350
|
type: "grid-placement" | "column-count";
|
|
341
351
|
section?: string;
|
|
@@ -379,6 +379,16 @@ export declare const PHI_ENTRY_LIST_WIDGET_DEFINITION: {
|
|
|
379
379
|
editorPlacement?: "inspector" | "geometry" | "toolbar";
|
|
380
380
|
visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
|
|
381
381
|
heading?: string;
|
|
382
|
+
} & {
|
|
383
|
+
type: "background-overlay";
|
|
384
|
+
}) | ({
|
|
385
|
+
key: string;
|
|
386
|
+
label: string;
|
|
387
|
+
description?: string;
|
|
388
|
+
required?: boolean;
|
|
389
|
+
editorPlacement?: "inspector" | "geometry" | "toolbar";
|
|
390
|
+
visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
|
|
391
|
+
heading?: string;
|
|
382
392
|
} & {
|
|
383
393
|
type: "grid-placement" | "column-count";
|
|
384
394
|
section?: string;
|
|
@@ -349,6 +349,16 @@ export declare const PHI_GALLERY_WIDGET_DEFINITION: {
|
|
|
349
349
|
editorPlacement?: "inspector" | "geometry" | "toolbar";
|
|
350
350
|
visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
|
|
351
351
|
heading?: string;
|
|
352
|
+
} & {
|
|
353
|
+
type: "background-overlay";
|
|
354
|
+
}) | ({
|
|
355
|
+
key: string;
|
|
356
|
+
label: string;
|
|
357
|
+
description?: string;
|
|
358
|
+
required?: boolean;
|
|
359
|
+
editorPlacement?: "inspector" | "geometry" | "toolbar";
|
|
360
|
+
visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
|
|
361
|
+
heading?: string;
|
|
352
362
|
} & {
|
|
353
363
|
type: "grid-placement" | "column-count";
|
|
354
364
|
section?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PhiMarkdownImageFloat, PhiMarkdownTextAlign } from "../../../../../types/core-widget-placements";
|
|
2
2
|
import { type PhiMarkdownFoldSections } from "../../../../../components/widgets/shared/markdown-sections";
|
|
3
|
-
import { type PhiMarkdownImageAspectRatio } from "../../../../../components/widgets/shared/markdown-image-vocabulary";
|
|
3
|
+
import { type PhiMarkdownImageAspectRatio, type PhiMarkdownImageFloatWidth } from "../../../../../components/widgets/shared/markdown-image-vocabulary";
|
|
4
4
|
import { type PhiSpacingScaleKey } from "../../../../../components/widgets/config/spacing-options";
|
|
5
5
|
import type { PhiCmsResolvedContent } from "../../../../../types/cms";
|
|
6
6
|
import { type PhiBulletListStyle } from "../../../../../components/widgets/shared/bullet-list-vocabulary";
|
|
@@ -25,6 +25,11 @@ export type PhiCmsMarkdownWidgetConfig = PhiCmsWidgetConfigBase & {
|
|
|
25
25
|
textAlign?: PhiMarkdownTextAlign;
|
|
26
26
|
/** Pictures stand at this edge and the text flows past them; absent, a picture is a line of its own. */
|
|
27
27
|
imageFloat?: PhiMarkdownImageFloat;
|
|
28
|
+
/**
|
|
29
|
+
* The step of the line every floated picture takes (`markdown-image-vocabulary.ts`); absent is `large`,
|
|
30
|
+
* text and picture in the golden ratio. A picture's own address may say otherwise (`width=small`).
|
|
31
|
+
*/
|
|
32
|
+
imageFloatWidth?: PhiMarkdownImageFloatWidth;
|
|
28
33
|
/**
|
|
29
34
|
* How tall every Media picture standing on its own in the text is (`markdown-image-vocabulary.ts`);
|
|
30
35
|
* absent is `auto`, the picture's own proportion. A picture's own address may say otherwise.
|
|
@@ -396,6 +401,16 @@ export declare const PHI_MARKDOWN_WIDGET_DEFINITION: {
|
|
|
396
401
|
editorPlacement?: "inspector" | "geometry" | "toolbar";
|
|
397
402
|
visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
|
|
398
403
|
heading?: string;
|
|
404
|
+
} & {
|
|
405
|
+
type: "background-overlay";
|
|
406
|
+
}) | ({
|
|
407
|
+
key: string;
|
|
408
|
+
label: string;
|
|
409
|
+
description?: string;
|
|
410
|
+
required?: boolean;
|
|
411
|
+
editorPlacement?: "inspector" | "geometry" | "toolbar";
|
|
412
|
+
visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
|
|
413
|
+
heading?: string;
|
|
399
414
|
} & {
|
|
400
415
|
type: "grid-placement" | "column-count";
|
|
401
416
|
section?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolvePhiCmsWidgetPluginKey } from "../../../../../constants/cms-widget-types";
|
|
2
2
|
import { readPhiMarkdownFoldSections, } from "../../../../../components/widgets/shared/markdown-sections";
|
|
3
|
-
import { readPhiMarkdownImageAspectRatio, } from "../../../../../components/widgets/shared/markdown-image-vocabulary";
|
|
3
|
+
import { readPhiMarkdownImageAspectRatio, readPhiMarkdownImageFloatWidth, } from "../../../../../components/widgets/shared/markdown-image-vocabulary";
|
|
4
4
|
import { PHI_SPACING_SCALE_KEYS } from "../../../../../components/widgets/config/spacing-options";
|
|
5
5
|
import { PhiCmsWidgetType } from "../../../../../constants/cms-widget-types";
|
|
6
6
|
import { buildPhiBulletListFields, PHI_BULLET_LIST_DEFAULT_STYLE, readPhiBulletListStyle, } from "../../../../../components/widgets/shared/bullet-list-vocabulary";
|
|
@@ -53,6 +53,7 @@ export function parsePhiCmsMarkdownWidgetConfig(config) {
|
|
|
53
53
|
revalidateSeconds: readNumber(config.revalidateSeconds),
|
|
54
54
|
textAlign: readMarkdownTextAlign(config.textAlign),
|
|
55
55
|
imageFloat: readMarkdownImageFloat(config.imageFloat),
|
|
56
|
+
imageFloatWidth: readPhiMarkdownImageFloatWidth(config.imageFloatWidth),
|
|
56
57
|
imageAspectRatio: readPhiMarkdownImageAspectRatio(config.imageAspectRatio),
|
|
57
58
|
foldSections: readPhiMarkdownFoldSections(config.foldSections),
|
|
58
59
|
faqStructuredData: readBoolean(config.faqStructuredData),
|
|
@@ -171,6 +172,22 @@ export const PHI_MARKDOWN_WIDGET_DEFINITION = {
|
|
|
171
172
|
emptyOption: { value: "none", label: "None" },
|
|
172
173
|
options: PHI_MARKDOWN_IMAGE_FLOAT_OPTIONS,
|
|
173
174
|
},
|
|
175
|
+
/*
|
|
176
|
+
* Fixed steps of the line, never a measure: a floated picture takes this share and the text the rest.
|
|
177
|
+
* `large` is the default and stores nothing. A single picture says its own in its address (`width=small`).
|
|
178
|
+
* Shown without a float as well: a picture may float by its own address and takes this step then.
|
|
179
|
+
*/
|
|
180
|
+
{
|
|
181
|
+
key: "imageFloatWidth",
|
|
182
|
+
type: "choice",
|
|
183
|
+
label: "Image Width",
|
|
184
|
+
emptyOption: { value: "large", label: "Large (golden)" },
|
|
185
|
+
options: [
|
|
186
|
+
{ value: "small", label: "Small" },
|
|
187
|
+
{ value: "medium", label: "Medium" },
|
|
188
|
+
{ value: "xlarge", label: "Extra large" },
|
|
189
|
+
],
|
|
190
|
+
},
|
|
174
191
|
/*
|
|
175
192
|
* Every picture standing on its own takes this box; one that needs another says so in its own address
|
|
176
193
|
* (`phis:asset/12?ratio=16:9`, and `float=start|end|none` beside it). Automatic is the picture's own.
|
|
@@ -344,6 +344,16 @@ export declare const PHI_RESULT_WIDGET_DEFINITION: {
|
|
|
344
344
|
editorPlacement?: "inspector" | "geometry" | "toolbar";
|
|
345
345
|
visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
|
|
346
346
|
heading?: string;
|
|
347
|
+
} & {
|
|
348
|
+
type: "background-overlay";
|
|
349
|
+
}) | ({
|
|
350
|
+
key: string;
|
|
351
|
+
label: string;
|
|
352
|
+
description?: string;
|
|
353
|
+
required?: boolean;
|
|
354
|
+
editorPlacement?: "inspector" | "geometry" | "toolbar";
|
|
355
|
+
visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
|
|
356
|
+
heading?: string;
|
|
347
357
|
} & {
|
|
348
358
|
type: "grid-placement" | "column-count";
|
|
349
359
|
section?: string;
|
|
@@ -354,6 +354,16 @@ export declare const PHI_SIMPLE_TEXT_WIDGET_DEFINITION: {
|
|
|
354
354
|
editorPlacement?: "inspector" | "geometry" | "toolbar";
|
|
355
355
|
visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
|
|
356
356
|
heading?: string;
|
|
357
|
+
} & {
|
|
358
|
+
type: "background-overlay";
|
|
359
|
+
}) | ({
|
|
360
|
+
key: string;
|
|
361
|
+
label: string;
|
|
362
|
+
description?: string;
|
|
363
|
+
required?: boolean;
|
|
364
|
+
editorPlacement?: "inspector" | "geometry" | "toolbar";
|
|
365
|
+
visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
|
|
366
|
+
heading?: string;
|
|
357
367
|
} & {
|
|
358
368
|
type: "grid-placement" | "column-count";
|
|
359
369
|
section?: string;
|
|
@@ -370,6 +370,16 @@ export declare const PHI_TABLE_WIDGET_DEFINITION: {
|
|
|
370
370
|
editorPlacement?: "inspector" | "geometry" | "toolbar";
|
|
371
371
|
visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
|
|
372
372
|
heading?: string;
|
|
373
|
+
} & {
|
|
374
|
+
type: "background-overlay";
|
|
375
|
+
}) | ({
|
|
376
|
+
key: string;
|
|
377
|
+
label: string;
|
|
378
|
+
description?: string;
|
|
379
|
+
required?: boolean;
|
|
380
|
+
editorPlacement?: "inspector" | "geometry" | "toolbar";
|
|
381
|
+
visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
|
|
382
|
+
heading?: string;
|
|
373
383
|
} & {
|
|
374
384
|
type: "grid-placement" | "column-count";
|
|
375
385
|
section?: string;
|
|
@@ -717,6 +727,18 @@ export declare const PHI_TABLE_WIDGET_DEFINITION: {
|
|
|
717
727
|
heading?: string;
|
|
718
728
|
type: "surface";
|
|
719
729
|
tone?: false;
|
|
730
|
+
} | {
|
|
731
|
+
visibleWhen: {
|
|
732
|
+
field: string;
|
|
733
|
+
notEquals: string;
|
|
734
|
+
};
|
|
735
|
+
key: string;
|
|
736
|
+
label: string;
|
|
737
|
+
description?: string;
|
|
738
|
+
required?: boolean;
|
|
739
|
+
editorPlacement?: "inspector" | "geometry" | "toolbar";
|
|
740
|
+
heading?: string;
|
|
741
|
+
type: "background-overlay";
|
|
720
742
|
} | {
|
|
721
743
|
visibleWhen: {
|
|
722
744
|
field: string;
|
|
@@ -1097,6 +1119,18 @@ export declare const PHI_TABLE_WIDGET_DEFINITION: {
|
|
|
1097
1119
|
heading?: string;
|
|
1098
1120
|
type: "surface";
|
|
1099
1121
|
tone?: false;
|
|
1122
|
+
} | {
|
|
1123
|
+
visibleWhen: {
|
|
1124
|
+
field: string;
|
|
1125
|
+
equals: boolean;
|
|
1126
|
+
};
|
|
1127
|
+
key: string;
|
|
1128
|
+
label: string;
|
|
1129
|
+
description?: string;
|
|
1130
|
+
required?: boolean;
|
|
1131
|
+
editorPlacement?: "inspector" | "geometry" | "toolbar";
|
|
1132
|
+
heading?: string;
|
|
1133
|
+
type: "background-overlay";
|
|
1100
1134
|
} | {
|
|
1101
1135
|
visibleWhen: {
|
|
1102
1136
|
field: string;
|
|
@@ -46,6 +46,18 @@ export declare const PHI_PUBLIC_RUNTIME_MODULE_ROUTES: ({
|
|
|
46
46
|
};
|
|
47
47
|
}[];
|
|
48
48
|
loadTree: ({ page }: PhiCmsDescriptorBuildContext) => Promise<import("../../../types").PhiResolvedCmsPageTree>;
|
|
49
|
+
} | {
|
|
50
|
+
ownerModuleId: "@phis/ui/modules/public";
|
|
51
|
+
presetKey: "public-privacy-page";
|
|
52
|
+
presetVersion: number;
|
|
53
|
+
area: "public";
|
|
54
|
+
title: string;
|
|
55
|
+
path: string;
|
|
56
|
+
loadTree: ({ page }: PhiCmsDescriptorBuildContext & {
|
|
57
|
+
activeModuleIds: ReadonlySet<import("../contracts").PhiRuntimeModuleId>;
|
|
58
|
+
params: Readonly<Record<string, string>>;
|
|
59
|
+
}) => Promise<import("../../../types").PhiResolvedCmsPageTree>;
|
|
60
|
+
navigation?: undefined;
|
|
49
61
|
} | {
|
|
50
62
|
ownerModuleId: "@phis/ui/modules/public";
|
|
51
63
|
presetKey: "public-terms-page";
|
|
@@ -91,6 +91,16 @@ export const PHI_PUBLIC_RUNTIME_MODULE_ROUTES = [
|
|
|
91
91
|
loadTree: ({ page }) => import("./trees/phi-default-pub-error-page-tree")
|
|
92
92
|
.then((module) => module.buildPhiDefaultPubErrorPageTree({ code, page })),
|
|
93
93
|
})),
|
|
94
|
+
{
|
|
95
|
+
ownerModuleId: PHI_PUBLIC_RUNTIME_MODULE_ID,
|
|
96
|
+
presetKey: PHI_PUBLIC_BASE_PAGE_PRESET_KEYS.privacy,
|
|
97
|
+
presetVersion: 1,
|
|
98
|
+
area: "public",
|
|
99
|
+
title: "Privacy",
|
|
100
|
+
path: "/privacy",
|
|
101
|
+
loadTree: ({ page }) => import("./trees/phi-default-pub-privacy-page-tree")
|
|
102
|
+
.then((module) => module.buildPhiDefaultPubPrivacyPageTree({ page })),
|
|
103
|
+
},
|
|
94
104
|
{
|
|
95
105
|
ownerModuleId: PHI_PUBLIC_RUNTIME_MODULE_ID,
|
|
96
106
|
presetKey: PHI_PUBLIC_BASE_PAGE_PRESET_KEYS.terms,
|
|
@@ -12,7 +12,7 @@ export const PHI_PUBLIC_RUNTIME_MODULE_SERVER_AREA_CONTRIBUTION = definePhiRunti
|
|
|
12
12
|
forms: PHI_PUBLIC_RUNTIME_MODULE_FORMS,
|
|
13
13
|
areaShells: PHI_PUBLIC_RUNTIME_MODULE_AREA_SHELLS,
|
|
14
14
|
/*
|
|
15
|
-
* The landing, the error Pages, the terms, and the contact page: what no Site can do without. Each
|
|
15
|
+
* The landing, the error Pages, the privacy notice, the terms, and the contact page: what no Site can do without. Each
|
|
16
16
|
* is a floor a package Module may cover (MODULES.md, "Who owns an address") -- the landing through
|
|
17
17
|
* the root slot, the others through their path.
|
|
18
18
|
*/
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { createPhiPresetCmsInstanceIdMap } from "../../../../types/cms-instance-id";
|
|
2
|
+
import { PHI_PUBLIC_RUNTIME_MODULE_ID } from "../ids";
|
|
3
|
+
import { PHI_CMS_DEFAULT_SLOT_INDEX } from "../../../../constants/cms-layout-types";
|
|
4
|
+
import { PhiCmsPageType } from "../../../../constants/phi-cms";
|
|
5
|
+
import { buildPhiBasePageColumnFrame } from "../../../../components/regions/presets/phi-base-page-column";
|
|
6
|
+
import { PHI_LAYOUT } from "../../../../theme/phi-tokens";
|
|
7
|
+
import { createPhiCmsPresetNodes } from "../../../../helpers/cms-preset-nodes";
|
|
8
|
+
import { createPhiPageUri } from "../../../../types/references";
|
|
9
|
+
import { PHI_PUBLIC_BASE_PAGE_REFERENCES } from "../../public-base-page-references";
|
|
10
|
+
/**
|
|
11
|
+
* Placeholder privacy page, carried inline for the reason the terms are. It is not a policy and does not
|
|
12
|
+
* pretend to be one: it says that the operator has published none here. The second sentence points at the
|
|
13
|
+
* contact page by reference, so the link follows whichever Module holds that Page.
|
|
14
|
+
*/
|
|
15
|
+
const PHI_DEFAULT_PUB_PRIVACY_MARKDOWN = `# Privacy
|
|
16
|
+
|
|
17
|
+
The operator of this website has not published a privacy policy here yet.
|
|
18
|
+
|
|
19
|
+
If you have questions about how your data is handled, please [contact the operator](${createPhiPageUri(PHI_PUBLIC_BASE_PAGE_REFERENCES.contact)}).
|
|
20
|
+
`;
|
|
21
|
+
const SYNTHETIC_PRIVACY_REGION_IDS = {
|
|
22
|
+
regionContent: -330,
|
|
23
|
+
};
|
|
24
|
+
const SYNTHETIC_PRIVACY_LAYOUT_IDS = createPhiPresetCmsInstanceIdMap({
|
|
25
|
+
domain: "page",
|
|
26
|
+
ownerModuleId: PHI_PUBLIC_RUNTIME_MODULE_ID,
|
|
27
|
+
presetKey: "pub-privacy-page",
|
|
28
|
+
}, [
|
|
29
|
+
"layoutContent",
|
|
30
|
+
]);
|
|
31
|
+
const SYNTHETIC_PRIVACY_WIDGET_IDS = createPhiPresetCmsInstanceIdMap({
|
|
32
|
+
domain: "page",
|
|
33
|
+
ownerModuleId: PHI_PUBLIC_RUNTIME_MODULE_ID,
|
|
34
|
+
presetKey: "pub-privacy-page",
|
|
35
|
+
}, [
|
|
36
|
+
"widgetMarkdown",
|
|
37
|
+
]);
|
|
38
|
+
export async function buildPhiDefaultPubPrivacyPageTree({ page, }) {
|
|
39
|
+
const nodes = createPhiCmsPresetNodes(page);
|
|
40
|
+
return {
|
|
41
|
+
page: nodes.page({ pageType: PhiCmsPageType.Standard }),
|
|
42
|
+
overlays: [],
|
|
43
|
+
// On the base scaffold, in a column on the wash that stops at the reading measure.
|
|
44
|
+
...buildPhiBasePageColumnFrame({
|
|
45
|
+
page,
|
|
46
|
+
regionId: SYNTHETIC_PRIVACY_REGION_IDS.regionContent,
|
|
47
|
+
columnId: SYNTHETIC_PRIVACY_LAYOUT_IDS.layoutContent,
|
|
48
|
+
label: "pub privacy page",
|
|
49
|
+
maxWidth: PHI_LAYOUT.readingMax,
|
|
50
|
+
}),
|
|
51
|
+
contentWidgets: [
|
|
52
|
+
nodes.widget({
|
|
53
|
+
typeKey: "markdown",
|
|
54
|
+
id: SYNTHETIC_PRIVACY_WIDGET_IDS.widgetMarkdown,
|
|
55
|
+
parentLayoutNodeId: SYNTHETIC_PRIVACY_LAYOUT_IDS.layoutContent,
|
|
56
|
+
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
57
|
+
sortOrder: 0,
|
|
58
|
+
label: "pub privacy markdown widget",
|
|
59
|
+
config: {
|
|
60
|
+
sourceMode: "inline",
|
|
61
|
+
markdown: PHI_DEFAULT_PUB_PRIVACY_MARKDOWN,
|
|
62
|
+
},
|
|
63
|
+
}),
|
|
64
|
+
],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -14,6 +14,7 @@ import { createPhiPageReference } from "../../types/references";
|
|
|
14
14
|
export declare const PHI_PUBLIC_BASE_PAGE_PRESET_KEYS: {
|
|
15
15
|
readonly welcome: "public-welcome-page";
|
|
16
16
|
readonly home: "public-home-page";
|
|
17
|
+
readonly privacy: "public-privacy-page";
|
|
17
18
|
readonly terms: "public-terms-page";
|
|
18
19
|
readonly contact: "public-contact-page";
|
|
19
20
|
readonly unsubscribe: "public-unsubscribe-page";
|
|
@@ -21,7 +22,7 @@ export declare const PHI_PUBLIC_BASE_PAGE_PRESET_KEYS: {
|
|
|
21
22
|
/**
|
|
22
23
|
* Ready-made references to the Pages every Site has, for a Module that links to one.
|
|
23
24
|
*
|
|
24
|
-
* The Public base brings a welcome, a home, terms and a contact Page, and a package Module may
|
|
25
|
+
* The Public base brings a welcome, a home, privacy, terms and a contact Page, and a package Module may
|
|
25
26
|
* reasonably point at any of them -- phis.dev's closing line does exactly that. Without this it would
|
|
26
27
|
* either type a path, which goes stale and cannot say which Module's Page it means where one covers
|
|
27
28
|
* another, or assemble a reference from a preset key it copied, which nothing checks.
|
|
@@ -16,6 +16,7 @@ import { createPhiRuntimeModuleId } from "../../constants/module-identity";
|
|
|
16
16
|
export const PHI_PUBLIC_BASE_PAGE_PRESET_KEYS = {
|
|
17
17
|
welcome: "public-welcome-page",
|
|
18
18
|
home: "public-home-page",
|
|
19
|
+
privacy: "public-privacy-page",
|
|
19
20
|
terms: "public-terms-page",
|
|
20
21
|
contact: "public-contact-page",
|
|
21
22
|
unsubscribe: "public-unsubscribe-page",
|
|
@@ -25,7 +26,7 @@ const PHI_PUBLIC_RUNTIME_MODULE_ID = createPhiRuntimeModuleId(PHI_SHARED_PACKAGE
|
|
|
25
26
|
/**
|
|
26
27
|
* Ready-made references to the Pages every Site has, for a Module that links to one.
|
|
27
28
|
*
|
|
28
|
-
* The Public base brings a welcome, a home, terms and a contact Page, and a package Module may
|
|
29
|
+
* The Public base brings a welcome, a home, privacy, terms and a contact Page, and a package Module may
|
|
29
30
|
* reasonably point at any of them -- phis.dev's closing line does exactly that. Without this it would
|
|
30
31
|
* either type a path, which goes stale and cannot say which Module's Page it means where one covers
|
|
31
32
|
* another, or assemble a reference from a preset key it copied, which nothing checks.
|
|
@@ -9,7 +9,7 @@ import { createPhiCoreRuntimeControllerAddress } from "../../../../components/ru
|
|
|
9
9
|
import { usePhiConfig } from "../../../../components/root/phi-config-provider";
|
|
10
10
|
import { usePhiThemeBlockCatalog } from "../../../../components/root/phi-theme-block-catalog-provider";
|
|
11
11
|
import { resolvePhiThemeComposition } from "../../../../theme/phi-theme-composition";
|
|
12
|
-
import { materializePhiThemeBrandLogo, materializePhiThemeModuleBlocks } from "../materialize-images";
|
|
12
|
+
import { materializePhiThemeBrandLogo, materializePhiThemeBrandSignet, materializePhiThemeModuleBlocks } from "../materialize-images";
|
|
13
13
|
import { buildPhiSiteThemeSelectOptions, createPhiSiteThemeSelectionValue, createPhiThemeDerivation, ensurePhiThemeDerivation, readPhiSiteThemeSelectionState, resolvePhiThemeSelectionValue, } from "../../../../theme/phi-theme-selection";
|
|
14
14
|
import { dispatchPhiSignalCapability } from "../../../../components/runtime/runtime-signal-identity";
|
|
15
15
|
import { formatPhiHistoryMoveMessage, formatPhiHistoryTooltip, } from "../../../../components/widgets/label-types/history";
|
|
@@ -339,7 +339,12 @@ export function PhiThemeControllerRuntime({ runtime, config, setOptions, history
|
|
|
339
339
|
* The Logo is taken the same way, from every Set, core included: a Set offers it, and a Site that
|
|
340
340
|
* saved has decided to keep it -- as a picture in its own library, not as a data URL in its record.
|
|
341
341
|
*/
|
|
342
|
-
|
|
342
|
+
const withLogo = await materializePhiThemeBrandLogo(materialized.theme, resolvePhiThemeComposition(materialized.theme, themeBlocks).markSet);
|
|
343
|
+
/*
|
|
344
|
+
* And the Signet, which the browser tab wears: the Site delivers it from its own Media library
|
|
345
|
+
* under a real address, so Safari -- which loads no icon from a data URL -- shows it too.
|
|
346
|
+
*/
|
|
347
|
+
nextTheme = await materializePhiThemeBrandSignet(withLogo, resolvePhiThemeComposition(withLogo, themeBlocks).markSet);
|
|
343
348
|
const response = await fetch("/api/site/cms/theme", {
|
|
344
349
|
method: "POST",
|
|
345
350
|
headers: {
|
|
@@ -38,3 +38,19 @@ export declare function materializePhiThemeModuleBlocks<T extends {
|
|
|
38
38
|
export declare function materializePhiThemeBrandLogo<T extends {
|
|
39
39
|
brand?: PhiSiteThemeBrand | null;
|
|
40
40
|
}>(theme: T, markSet: PhiThemeSetBlock): Promise<T>;
|
|
41
|
+
/**
|
|
42
|
+
* Takes the Signet a Theme wears into the Site's record, the picture into the Media library.
|
|
43
|
+
*
|
|
44
|
+
* The Logo's rule, for the mark the browser tab wears: a Module's Set is taken over, the core Set is
|
|
45
|
+
* followed and never copied, and a Site that saved has decided to keep what it saw. From then on the
|
|
46
|
+
* record names an Asset, the Site delivers it at a real address like any other picture of its own, and
|
|
47
|
+
* switching the Module off no longer blanks the tab.
|
|
48
|
+
*
|
|
49
|
+
* What is taken is a picture still carried inline or served from this origin -- the record's own
|
|
50
|
+
* `url` Signet, or, where the record says nothing, the followed Set's. A Signet that is already an
|
|
51
|
+
* Asset stays; an address on somebody else's server is neither fetched nor copied. There is no picker
|
|
52
|
+
* for it: the Theme editor offers no Signet field, and this is the only way one enters the record.
|
|
53
|
+
*/
|
|
54
|
+
export declare function materializePhiThemeBrandSignet<T extends {
|
|
55
|
+
brand?: PhiSiteThemeBrand | null;
|
|
56
|
+
}>(theme: T, markSet: PhiThemeSetBlock): Promise<T>;
|
|
@@ -173,3 +173,40 @@ export async function materializePhiThemeBrandLogo(theme, markSet) {
|
|
|
173
173
|
}
|
|
174
174
|
return { ...theme, brand: { ...(theme.brand ?? {}), logo: next } };
|
|
175
175
|
}
|
|
176
|
+
/**
|
|
177
|
+
* Takes the Signet a Theme wears into the Site's record, the picture into the Media library.
|
|
178
|
+
*
|
|
179
|
+
* The Logo's rule, for the mark the browser tab wears: a Module's Set is taken over, the core Set is
|
|
180
|
+
* followed and never copied, and a Site that saved has decided to keep what it saw. From then on the
|
|
181
|
+
* record names an Asset, the Site delivers it at a real address like any other picture of its own, and
|
|
182
|
+
* switching the Module off no longer blanks the tab.
|
|
183
|
+
*
|
|
184
|
+
* What is taken is a picture still carried inline or served from this origin -- the record's own
|
|
185
|
+
* `url` Signet, or, where the record says nothing, the followed Set's. A Signet that is already an
|
|
186
|
+
* Asset stays; an address on somebody else's server is neither fetched nor copied. There is no picker
|
|
187
|
+
* for it: the Theme editor offers no Signet field, and this is the only way one enters the record.
|
|
188
|
+
*/
|
|
189
|
+
export async function materializePhiThemeBrandSignet(theme, markSet) {
|
|
190
|
+
const authored = theme.brand?.signet;
|
|
191
|
+
if (authored?.sourceKind === "asset")
|
|
192
|
+
return theme;
|
|
193
|
+
// A core Set offers nothing to take, like its Logo; what the author set is still theirs.
|
|
194
|
+
const offered = isPhiCoreThemeSet(markSet) ? null : markSet.signet;
|
|
195
|
+
const source = authored?.sourceKind === "url"
|
|
196
|
+
? authored.sourceUrl
|
|
197
|
+
: typeof offered === "string" && offered.startsWith("data:image/") ? offered : null;
|
|
198
|
+
if (!isPhiThemeCarriedSource(source))
|
|
199
|
+
return theme;
|
|
200
|
+
const file = await readPhiThemeImageFile(source, `${markSet.key}-signet`);
|
|
201
|
+
const result = await runPhiMediaUploadSession(file, undefined, {
|
|
202
|
+
meta: { source: PhiMediaAssetSource.ThemeBrandSignet },
|
|
203
|
+
});
|
|
204
|
+
const assetId = result.asset.id;
|
|
205
|
+
return {
|
|
206
|
+
...theme,
|
|
207
|
+
brand: {
|
|
208
|
+
...(theme.brand ?? {}),
|
|
209
|
+
signet: { sourceKind: "asset", assetId, url: buildPhiMediaAssetContentDeliveryUrl(assetId) },
|
|
210
|
+
},
|
|
211
|
+
};
|
|
212
|
+
}
|