@phis/ui 0.6.6 → 0.6.7

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.
@@ -0,0 +1,15 @@
1
+ import type { CSSProperties } from "react";
2
+ import type { PhiSurface } from "../../types/surface";
3
+ /**
4
+ * The Surface of a picture, as the Image and the Gallery Widget draw it on their own box.
5
+ *
6
+ * A picture is a surface on the page: where its Surface states no corner -- or it has none -- it takes
7
+ * the Site's surface step, as a Layout's and a Markdown picture's do (THEME.md "Control shape"). Its
8
+ * ground stays on the box rather than on a layer of its own, because a picture fills the box and covers
9
+ * it; a ground shows only behind a transparent picture or around one that is contained. A tone has
10
+ * nothing to turn on a picture and is not drawn.
11
+ */
12
+ export declare function resolvePhiPictureSurface(surface: PhiSurface | null | undefined): {
13
+ style: CSSProperties;
14
+ corners: CSSProperties;
15
+ };
@@ -0,0 +1,26 @@
1
+ import { PHI_LAYOUT_SURFACE_RADIUS } from "../layouts/phi-layout-contract";
2
+ import { resolvePhiSurfaceStyle } from "../../helpers/surface-style";
3
+ /**
4
+ * The Surface of a picture, as the Image and the Gallery Widget draw it on their own box.
5
+ *
6
+ * A picture is a surface on the page: where its Surface states no corner -- or it has none -- it takes
7
+ * the Site's surface step, as a Layout's and a Markdown picture's do (THEME.md "Control shape"). Its
8
+ * ground stays on the box rather than on a layer of its own, because a picture fills the box and covers
9
+ * it; a ground shows only behind a transparent picture or around one that is contained. A tone has
10
+ * nothing to turn on a picture and is not drawn.
11
+ */
12
+ export function resolvePhiPictureSurface(surface) {
13
+ const { style } = resolvePhiSurfaceStyle(surface ?? {}, {
14
+ cornerFallback: PHI_LAYOUT_SURFACE_RADIUS,
15
+ groundLayer: false,
16
+ });
17
+ return {
18
+ style,
19
+ corners: {
20
+ borderTopLeftRadius: style.borderTopLeftRadius,
21
+ borderTopRightRadius: style.borderTopRightRadius,
22
+ borderBottomRightRadius: style.borderBottomRightRadius,
23
+ borderBottomLeftRadius: style.borderBottomLeftRadius,
24
+ },
25
+ };
26
+ }
@@ -24,12 +24,17 @@ export type PhiSequenceThumbnail = {
24
24
  *
25
25
  * What the items are is the caller's: the Gallery's pictures, the Entries list's cards.
26
26
  */
27
- export declare function PhiSequenceRun({ items, settings, labels, itemStyle, thumbnails, thumbnailWidth, }: {
27
+ export declare function PhiSequenceRun({ items, settings, labels, itemStyle, windowStyle, thumbnails, thumbnailWidth, }: {
28
28
  /** Keyed by the caller; the run neither wraps nor rekeys them. */
29
29
  items: readonly ReactNode[];
30
30
  settings: PhiSequenceSettings | undefined;
31
31
  labels: PhiSequenceControlLabels;
32
32
  itemStyle?: CSSProperties;
33
+ /**
34
+ * The window the items run in, with the arrows on it: where a caller's Surface goes (the Gallery's),
35
+ * so its depth stands around what is seen rather than being cut off with the items outside it.
36
+ */
37
+ windowStyle?: CSSProperties;
33
38
  /**
34
39
  * A row of buttons under the window, one per item, in place of the dots. Acts only while one item is
35
40
  * shown at a time; the active item's is marked and a press makes its item the active one.
@@ -37,7 +37,7 @@ function resolvePhiSequenceShowsThumbnails(thumbnails, span, itemCount) {
37
37
  *
38
38
  * What the items are is the caller's: the Gallery's pictures, the Entries list's cards.
39
39
  */
40
- export function PhiSequenceRun({ items, settings, labels, itemStyle, thumbnails, thumbnailWidth, }) {
40
+ export function PhiSequenceRun({ items, settings, labels, itemStyle, windowStyle, thumbnails, thumbnailWidth, }) {
41
41
  const { token } = usePhiConfig();
42
42
  const defaults = PHI_SEQUENCE_SETTINGS_DEFAULTS;
43
43
  const loop = settings?.loop ?? defaults.loop;
@@ -76,7 +76,7 @@ export function PhiSequenceRun({ items, settings, labels, itemStyle, thumbnails,
76
76
  const showArrows = (controls === "arrows" || controls === "both") && itemCount > span;
77
77
  const showThumbnails = resolvePhiSequenceShowsThumbnails(thumbnails, span, itemCount);
78
78
  const showDots = !showThumbnails && (controls === "dots" || controls === "both") && pageCount > 1;
79
- return (_jsxs("div", { role: "region", "aria-roledescription": "carousel", "aria-label": labels.region, style: { display: "flex", flexDirection: "column", gap: token.marginXS, width: "100%", minWidth: 0, ...gestures.style }, ...autoplay.holdHandlers, ...gestures.handlers, children: [_jsxs("div", { style: { position: "relative", minWidth: 0 }, "aria-live": autoplay.running ? "off" : "polite", children: [_jsx(PhiSequenceViewport, { items: [...items], activeIndex: activeIndex, visibleCount: span, anchor: "start", transition: settings?.transition ?? defaults.transition, ...(settings?.durationMs === undefined ? {} : { durationMs: settings.durationMs }), ...(settings?.easing === undefined ? {} : { easing: settings.easing }), lookahead: settings?.lookahead ?? defaults.lookahead, mountPolicy: settings?.mountPolicy ?? defaults.mountPolicy, gap: resolvePhiSpacingScaleValue(settings?.gap ?? defaults.gap), itemStyle: itemStyle }), showArrows ? (_jsxs(_Fragment, { children: [_jsx("div", { style: { position: "absolute", insetBlockStart: "50%", insetInlineStart: token.marginXS, transform: "translateY(-50%)" }, children: _jsx(PhiButtonControl, { icon: _jsx(PhiIcon, { name: "left", size: "inherit" }), ariaLabel: labels.previous, shape: "circle", disabled: atStart && !loop, onClick: () => stepByHand(-1) }) }), _jsx("div", { style: { position: "absolute", insetBlockStart: "50%", insetInlineEnd: token.marginXS, transform: "translateY(-50%)" }, children: _jsx(PhiButtonControl, { icon: _jsx(PhiIcon, { name: "right", size: "inherit" }), ariaLabel: labels.next, shape: "circle", disabled: atEnd && !loop, onClick: () => stepByHand(1) }) })] })) : null, autoplay.offered ? (_jsx("div", { style: { position: "absolute", insetBlockEnd: token.marginXS, insetInlineEnd: token.marginXS }, children: _jsx(PhiButtonControl, { icon: _jsx(PhiIcon, { name: autoplay.stopped ? "play-circle" : "pause-circle", size: "inherit" }), ariaLabel: autoplay.stopped ? labels.play : labels.pause, ariaPressed: autoplay.stopped, shape: "circle", onClick: autoplay.toggleStopped }) })) : null] }), showThumbnails ? (_jsx("div", { role: "group", "aria-label": labels.pages, style: { display: "flex", flexWrap: "wrap", justifyContent: "center", gap: resolvePhiSpacingScaleValue("xs"), minWidth: 0 }, children: thumbnails?.map((thumbnail, index) => (_jsx("button", { type: "button", "aria-label": thumbnail.label || formatPageLabel(labels.page, index + 1, index + 1), "aria-current": index === activeIndex || undefined, "aria-pressed": index === activeIndex, onClick: () => {
79
+ return (_jsxs("div", { role: "region", "aria-roledescription": "carousel", "aria-label": labels.region, style: { display: "flex", flexDirection: "column", gap: token.marginXS, width: "100%", minWidth: 0, ...gestures.style }, ...autoplay.holdHandlers, ...gestures.handlers, children: [_jsxs("div", { style: { position: "relative", minWidth: 0, ...windowStyle }, "aria-live": autoplay.running ? "off" : "polite", children: [_jsx(PhiSequenceViewport, { items: [...items], activeIndex: activeIndex, visibleCount: span, anchor: "start", transition: settings?.transition ?? defaults.transition, ...(settings?.durationMs === undefined ? {} : { durationMs: settings.durationMs }), ...(settings?.easing === undefined ? {} : { easing: settings.easing }), lookahead: settings?.lookahead ?? defaults.lookahead, mountPolicy: settings?.mountPolicy ?? defaults.mountPolicy, gap: resolvePhiSpacingScaleValue(settings?.gap ?? defaults.gap), itemStyle: itemStyle }), showArrows ? (_jsxs(_Fragment, { children: [_jsx("div", { style: { position: "absolute", insetBlockStart: "50%", insetInlineStart: token.marginXS, transform: "translateY(-50%)" }, children: _jsx(PhiButtonControl, { icon: _jsx(PhiIcon, { name: "left", size: "inherit" }), ariaLabel: labels.previous, shape: "circle", disabled: atStart && !loop, onClick: () => stepByHand(-1) }) }), _jsx("div", { style: { position: "absolute", insetBlockStart: "50%", insetInlineEnd: token.marginXS, transform: "translateY(-50%)" }, children: _jsx(PhiButtonControl, { icon: _jsx(PhiIcon, { name: "right", size: "inherit" }), ariaLabel: labels.next, shape: "circle", disabled: atEnd && !loop, onClick: () => stepByHand(1) }) })] })) : null, autoplay.offered ? (_jsx("div", { style: { position: "absolute", insetBlockEnd: token.marginXS, insetInlineEnd: token.marginXS }, children: _jsx(PhiButtonControl, { icon: _jsx(PhiIcon, { name: autoplay.stopped ? "play-circle" : "pause-circle", size: "inherit" }), ariaLabel: autoplay.stopped ? labels.play : labels.pause, ariaPressed: autoplay.stopped, shape: "circle", onClick: autoplay.toggleStopped }) })) : null] }), showThumbnails ? (_jsx("div", { role: "group", "aria-label": labels.pages, style: { display: "flex", flexWrap: "wrap", justifyContent: "center", gap: resolvePhiSpacingScaleValue("xs"), minWidth: 0 }, children: thumbnails?.map((thumbnail, index) => (_jsx("button", { type: "button", "aria-label": thumbnail.label || formatPageLabel(labels.page, index + 1, index + 1), "aria-current": index === activeIndex || undefined, "aria-pressed": index === activeIndex, onClick: () => {
80
80
  setActiveIndex(index);
81
81
  autoplay.restart();
82
82
  }, style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phis/ui",
3
- "version": "0.6.6",
3
+ "version": "0.6.7",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -9,6 +9,7 @@ import { readPhiAspectRatio, resolvePhiImagePresentation } from "../../../../../
9
9
  import { PHI_GALLERY_WIDGET_DEFAULT_LABELS, } from "../../../../../components/widgets/label-types/gallery";
10
10
  import { isPhiMediaSvgContentType } from "../../../../../constants/media";
11
11
  import { resolvePhiGalleryFrame } from "./defaults";
12
+ import { resolvePhiPictureSurface } from "../../../../../components/media/picture-surface";
12
13
  /** A thumbnail's width in pixels: also what the optimiser is told to size it for. */
13
14
  const PHI_GALLERY_THUMBNAIL_WIDTH = 80;
14
15
  function GalleryPicture({ item, variantKey, fit, preview, sizes, aspectRatio, }) {
@@ -69,8 +70,15 @@ export function PhiGalleryWidget({ config, images: imagesInput, pictures, labels
69
70
  borderRadius: token.borderRadius,
70
71
  overflow: "hidden",
71
72
  };
73
+ /*
74
+ * The Gallery's own Surface goes on the window the pictures run in, with the arrows on it: its depth
75
+ * stands around what is seen, and its corners clip the run. Without one the window is bare, as before.
76
+ */
77
+ const windowStyle = config?.surface
78
+ ? { ...resolvePhiPictureSurface(config.surface).style, overflow: "hidden" }
79
+ : undefined;
72
80
  if (items.length === 0) {
73
81
  return _jsx(PhiEmptyControl, { description: labels.empty });
74
82
  }
75
- return (_jsx(PhiSequenceRun, { items: items.map((item) => (_jsx(GalleryPicture, { item: item, variantKey: config?.variantKey, fit: fit, preview: config?.preview === true, sizes: sizes, aspectRatio: aspectRatio }, item.key))), settings: config, labels: labels, itemStyle: frameStyle, thumbnails: thumbnails, thumbnailWidth: PHI_GALLERY_THUMBNAIL_WIDTH }));
83
+ return (_jsx(PhiSequenceRun, { items: items.map((item) => (_jsx(GalleryPicture, { item: item, variantKey: config?.variantKey, fit: fit, preview: config?.preview === true, sizes: sizes, aspectRatio: aspectRatio }, item.key))), settings: config, labels: labels, itemStyle: frameStyle, windowStyle: windowStyle, thumbnails: thumbnails, thumbnailWidth: PHI_GALLERY_THUMBNAIL_WIDTH }));
76
84
  }
@@ -36,6 +36,7 @@ export declare const PHI_GALLERY_WIDGET_DEFINITION: {
36
36
  pluginKey: string;
37
37
  typeKey: string;
38
38
  slotSizePolicy: "fill-inline";
39
+ surface: "own";
39
40
  title: string;
40
41
  description: string;
41
42
  category: "media";
@@ -81,6 +81,11 @@ export const PHI_GALLERY_WIDGET_DEFINITION = {
81
81
  typeKey: "gallery",
82
82
  // A slideshow is as wide as the place it is put; its height follows from the aspect ratio.
83
83
  slotSizePolicy: "fill-inline",
84
+ /*
85
+ * The Gallery draws its Surface itself, on the window its pictures run in: around the slot frame it
86
+ * would stand around the dots below as well, and on each picture the window would cut its depth off.
87
+ */
88
+ surface: "own",
84
89
  title: "Gallery",
85
90
  description: "A run of pictures shown a few at a time, with arrows, dots and optional autoplay.",
86
91
  category: "media",
@@ -8,7 +8,7 @@ import { PhiEmptyControl } from "../../../../../components/controls/phi-empty-co
8
8
  import { PhiImageControl } from "../../../../../components/controls/phi-image-control";
9
9
  import { PhiFlexControl } from "../../../../../components/controls/phi-flex-control";
10
10
  import { PhiTypographyControl } from "../../../../../components/controls/phi-typography-control";
11
- import { PHI_LAYOUT_SURFACE_RADIUS } from "../../../../../components/layouts/phi-layout-contract";
11
+ import { resolvePhiPictureSurface } from "../../../../../components/media/picture-surface";
12
12
  function formatImageSize(value) {
13
13
  if (typeof value === "number" && Number.isFinite(value)) {
14
14
  return `${value}px`;
@@ -70,15 +70,11 @@ export function PhiImageWidget({ labels, config, resolvedAsset, focalRect, autho
70
70
  const renderedHeight = formatImageSize(height);
71
71
  const maskStyle = resolvePhiMaskStyle(config?.mask);
72
72
  /*
73
- * A picture is a surface: a corner the author left unstated is the Theme's surface step, as a Layout's
74
- * and a Markdown picture's are (THEME.md "Control shape"); a corner the author stated keeps its value.
73
+ * The picture's own Surface (`components/media/picture-surface.ts`): its corners, the Theme's surface
74
+ * step where it states none, and its edge, depth and ground on the picture's box.
75
75
  */
76
- const radiusStyle = {
77
- borderTopLeftRadius: config?.borderTopLeftRadius ?? PHI_LAYOUT_SURFACE_RADIUS,
78
- borderTopRightRadius: config?.borderTopRightRadius ?? PHI_LAYOUT_SURFACE_RADIUS,
79
- borderBottomLeftRadius: config?.borderBottomLeftRadius ?? PHI_LAYOUT_SURFACE_RADIUS,
80
- borderBottomRightRadius: config?.borderBottomRightRadius ?? PHI_LAYOUT_SURFACE_RADIUS,
81
- };
76
+ const pictureSurface = resolvePhiPictureSurface(config?.surface);
77
+ const radiusStyle = pictureSurface.corners;
82
78
  if (!renderUrl) {
83
79
  return (_jsxs(PhiFlexControl, { align: "center", justify: "center", vertical: true, gap: 6, style: {
84
80
  minHeight: 160,
@@ -93,7 +89,7 @@ export function PhiImageWidget({ labels, config, resolvedAsset, focalRect, autho
93
89
  }, children: [_jsx(PhiEmptyControl, {}), _jsx(PhiTypographyControl, { type: "secondary", strong: false, children: labels.emptyTitle }), _jsx(PhiTypographyControl, { type: "secondary", children: labels.emptyDescription })] }));
94
90
  }
95
91
  return (_jsx(PhiImageControl, { presentation: presentation, source: sourceKind === "asset" ? "asset" : config?.trusted === true ? "trusted-url" : "url", alt: alt, title: title || undefined, width: width, height: height, blurDataUrl: resolvedAsset?.blurDataUrl, optimizable: optimizable, sizes: config?.sizes, preload: config?.preload === true && isPublicAsset, preview: (config?.previewMode ?? "none") === "lightbox", zoom: config?.previewMode === "native", style: {
96
- ...radiusStyle,
92
+ ...pictureSurface.style,
97
93
  ...maskStyle,
98
94
  // Every corner has a radius now, the Theme's at least, so the box always clips its picture.
99
95
  overflow: "hidden",
@@ -15,10 +15,6 @@ export type PhiCmsImageWidgetConfig = PhiCmsWidgetConfigBase & PhiMediaImageSour
15
15
  * Absent, the image takes the variant's own size.
16
16
  */
17
17
  imageSize?: PhiImageWidgetSize;
18
- borderTopLeftRadius?: number | string;
19
- borderTopRightRadius?: number | string;
20
- borderBottomLeftRadius?: number | string;
21
- borderBottomRightRadius?: number | string;
22
18
  mask?: PhiMaskConfig;
23
19
  /** A picture field of the page record to show instead of the Widget's own picture. */
24
20
  recordField?: string;
@@ -30,6 +26,7 @@ export declare const PHI_IMAGE_WIDGET_DEFINITION: {
30
26
  pluginKey: string;
31
27
  typeKey: string;
32
28
  slotSizePolicy: "intrinsic";
29
+ surface: "own";
33
30
  title: string;
34
31
  description: string;
35
32
  category: "content";
@@ -48,10 +45,6 @@ export declare const PHI_IMAGE_WIDGET_DEFINITION: {
48
45
  emptyValue?: undefined;
49
46
  widthPlaceholder?: undefined;
50
47
  heightPlaceholder?: undefined;
51
- topLeftKey?: undefined;
52
- topRightKey?: undefined;
53
- bottomLeftKey?: undefined;
54
- bottomRightKey?: undefined;
55
48
  } | {
56
49
  key: string;
57
50
  type: "choice";
@@ -68,10 +61,6 @@ export declare const PHI_IMAGE_WIDGET_DEFINITION: {
68
61
  emptyValue?: undefined;
69
62
  widthPlaceholder?: undefined;
70
63
  heightPlaceholder?: undefined;
71
- topLeftKey?: undefined;
72
- topRightKey?: undefined;
73
- bottomLeftKey?: undefined;
74
- bottomRightKey?: undefined;
75
64
  } | {
76
65
  key: string;
77
66
  type: "url";
@@ -88,10 +77,6 @@ export declare const PHI_IMAGE_WIDGET_DEFINITION: {
88
77
  emptyValue?: undefined;
89
78
  widthPlaceholder?: undefined;
90
79
  heightPlaceholder?: undefined;
91
- topLeftKey?: undefined;
92
- topRightKey?: undefined;
93
- bottomLeftKey?: undefined;
94
- bottomRightKey?: undefined;
95
80
  } | {
96
81
  key: string;
97
82
  type: "choice";
@@ -111,10 +96,6 @@ export declare const PHI_IMAGE_WIDGET_DEFINITION: {
111
96
  kinds?: undefined;
112
97
  widthPlaceholder?: undefined;
113
98
  heightPlaceholder?: undefined;
114
- topLeftKey?: undefined;
115
- topRightKey?: undefined;
116
- bottomLeftKey?: undefined;
117
- bottomRightKey?: undefined;
118
99
  } | {
119
100
  key: string;
120
101
  type: "string";
@@ -131,10 +112,6 @@ export declare const PHI_IMAGE_WIDGET_DEFINITION: {
131
112
  emptyValue?: undefined;
132
113
  widthPlaceholder?: undefined;
133
114
  heightPlaceholder?: undefined;
134
- topLeftKey?: undefined;
135
- topRightKey?: undefined;
136
- bottomLeftKey?: undefined;
137
- bottomRightKey?: undefined;
138
115
  } | {
139
116
  key: string;
140
117
  type: "choice";
@@ -154,10 +131,6 @@ export declare const PHI_IMAGE_WIDGET_DEFINITION: {
154
131
  emptyValue?: undefined;
155
132
  widthPlaceholder?: undefined;
156
133
  heightPlaceholder?: undefined;
157
- topLeftKey?: undefined;
158
- topRightKey?: undefined;
159
- bottomLeftKey?: undefined;
160
- bottomRightKey?: undefined;
161
134
  } | {
162
135
  key: string;
163
136
  type: "boolean";
@@ -171,10 +144,6 @@ export declare const PHI_IMAGE_WIDGET_DEFINITION: {
171
144
  emptyValue?: undefined;
172
145
  widthPlaceholder?: undefined;
173
146
  heightPlaceholder?: undefined;
174
- topLeftKey?: undefined;
175
- topRightKey?: undefined;
176
- bottomLeftKey?: undefined;
177
- bottomRightKey?: undefined;
178
147
  } | {
179
148
  key: string;
180
149
  type: "dimension";
@@ -188,27 +157,6 @@ export declare const PHI_IMAGE_WIDGET_DEFINITION: {
188
157
  valueType?: undefined;
189
158
  emptyOption?: undefined;
190
159
  emptyValue?: undefined;
191
- topLeftKey?: undefined;
192
- topRightKey?: undefined;
193
- bottomLeftKey?: undefined;
194
- bottomRightKey?: undefined;
195
- } | {
196
- key: string;
197
- type: "radius";
198
- label: string;
199
- topLeftKey: string;
200
- topRightKey: string;
201
- bottomLeftKey: string;
202
- bottomRightKey: string;
203
- description?: undefined;
204
- kinds?: undefined;
205
- options?: undefined;
206
- visibleWhen?: undefined;
207
- valueType?: undefined;
208
- emptyOption?: undefined;
209
- emptyValue?: undefined;
210
- widthPlaceholder?: undefined;
211
- heightPlaceholder?: undefined;
212
160
  })[];
213
161
  contentBinding: {
214
162
  storage: "asset";
@@ -40,10 +40,6 @@ export function normalizePhiImageWidgetConfig(config) {
40
40
  preload: false,
41
41
  previewMode: "none",
42
42
  imageSize: undefined,
43
- borderTopLeftRadius: undefined,
44
- borderTopRightRadius: undefined,
45
- borderBottomLeftRadius: undefined,
46
- borderBottomRightRadius: undefined,
47
43
  mask: undefined,
48
44
  };
49
45
  }
@@ -60,10 +56,6 @@ export function normalizePhiImageWidgetConfig(config) {
60
56
  preload: readBoolean(raw.preload) ?? false,
61
57
  previewMode: readImagePreviewMode(raw.previewMode),
62
58
  imageSize: readImageSize(raw.imageSize),
63
- borderTopLeftRadius: readCssSize(raw.borderTopLeftRadius),
64
- borderTopRightRadius: readCssSize(raw.borderTopRightRadius),
65
- borderBottomLeftRadius: readCssSize(raw.borderBottomLeftRadius),
66
- borderBottomRightRadius: readCssSize(raw.borderBottomRightRadius),
67
59
  mask: readPhiMaskConfig(raw.mask),
68
60
  recordField: readString(raw.recordField),
69
61
  };
@@ -94,6 +86,12 @@ export const PHI_IMAGE_WIDGET_DEFINITION = {
94
86
  pluginKey: resolvePhiCmsWidgetPluginKey("image"),
95
87
  typeKey: "image",
96
88
  slotSizePolicy: "intrinsic",
89
+ /*
90
+ * The picture draws its Surface itself -- edge, corners, depth and a ground behind a transparent or
91
+ * contained picture -- on its own box, which clips the picture to the corners. The corners were a field
92
+ * of the Image's own until 2026-11-18; they are the Surface's edge now, as on every other box.
93
+ */
94
+ surface: "own",
97
95
  title: "Image",
98
96
  description: "Flexible image renderer for local media, trusted URLs, and on-demand renditions.",
99
97
  category: "content",
@@ -170,15 +168,6 @@ export const PHI_IMAGE_WIDGET_DEFINITION = {
170
168
  widthPlaceholder: "Width",
171
169
  heightPlaceholder: "Height",
172
170
  },
173
- {
174
- key: "radius",
175
- type: "radius",
176
- label: "Corner radius",
177
- topLeftKey: "borderTopLeftRadius",
178
- topRightKey: "borderTopRightRadius",
179
- bottomLeftKey: "borderBottomLeftRadius",
180
- bottomRightKey: "borderBottomRightRadius",
181
- },
182
171
  ],
183
172
  contentBinding: {
184
173
  storage: "asset",
@@ -143,10 +143,6 @@ export type PhiImageWidgetPlacement = PhiWidgetPlacementBase & PhiMediaImageSour
143
143
  objectPosition?: string;
144
144
  title?: string;
145
145
  imageSize?: PhiImageWidgetSize;
146
- borderTopLeftRadius?: number | string;
147
- borderTopRightRadius?: number | string;
148
- borderBottomLeftRadius?: number | string;
149
- borderBottomRightRadius?: number | string;
150
146
  mask?: PhiMaskConfig;
151
147
  /** A picture field of the page record shown instead of the Widget's own picture. */
152
148
  recordField?: string;