@phis/ui 0.4.5 → 0.4.6

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.
Files changed (78) hide show
  1. package/components/cms/phi-cms-root-layout.js +1 -1
  2. package/components/controls/phi-button-control.d.ts +3 -1
  3. package/components/controls/phi-button-control.js +2 -2
  4. package/components/controls/phi-collapse-control.d.ts +6 -2
  5. package/components/controls/phi-collapse-control.js +2 -2
  6. package/components/controls/phi-dialog-control.d.ts +11 -5
  7. package/components/controls/phi-dialog-control.js +19 -13
  8. package/components/controls/phi-menu-control-vocabulary.d.ts +7 -0
  9. package/components/controls/phi-menu-control-vocabulary.js +10 -0
  10. package/components/controls/phi-menu-control.d.ts +4 -1
  11. package/components/controls/phi-menu-control.js +6 -1
  12. package/components/layouts/clients/phi-split-card-layout-client.js +13 -5
  13. package/components/layouts/clients/phi-three-column-layout-client.js +9 -3
  14. package/components/layouts/split-card-geometry.js +6 -2
  15. package/components/media/aspect-ratios.d.ts +2 -2
  16. package/components/menus/phi-account-menu.js +3 -1
  17. package/components/navigation/phi-link.js +7 -2
  18. package/components/navigation/use-phi-protected-mail.d.ts +11 -0
  19. package/components/navigation/use-phi-protected-mail.js +29 -0
  20. package/components/regions/clients/cms-region-container-client.js +5 -1
  21. package/components/regions/phi-cms-region-shell.d.ts +1 -0
  22. package/components/regions/phi-cms-region-shell.js +11 -0
  23. package/components/regions/presets/phi-area-shell-preset-nodes.js +2 -1
  24. package/components/root/phi-config-provider.js +16 -0
  25. package/components/shell/phi-cms-shell.d.ts +3 -1
  26. package/components/shell/phi-cms-shell.js +7 -3
  27. package/components/shell/phi-nav-link.js +7 -2
  28. package/components/shell/phi-shell-sider-drawer.d.ts +17 -0
  29. package/components/shell/phi-shell-sider-drawer.js +88 -0
  30. package/components/widgets/helpers/internal-reference-resolver.server.d.ts +1 -0
  31. package/components/widgets/helpers/internal-reference-resolver.server.js +4 -1
  32. package/components/widgets/label-sets/inspector.js +2 -0
  33. package/components/widgets/label-types/inspector.d.ts +2 -0
  34. package/components/widgets/label-types/inspector.js +1 -0
  35. package/components/widgets/server/navigation-request.js +13 -1
  36. package/components/widgets/shared/card-body-client.d.ts +2 -0
  37. package/components/widgets/shared/card-body-client.js +8 -7
  38. package/components/widgets/shared/card-vocabulary.d.ts +36 -0
  39. package/components/widgets/shared/card-vocabulary.js +52 -0
  40. package/components/widgets/shared/markdown-body-client.d.ts +29 -0
  41. package/components/widgets/shared/markdown-body-client.js +60 -5
  42. package/components/widgets/shared/markdown-image-vocabulary.d.ts +31 -0
  43. package/components/widgets/shared/markdown-image-vocabulary.js +68 -0
  44. package/components/widgets/shared/markdown-render.d.ts +5 -0
  45. package/components/widgets/shared/markdown-render.js +123 -8
  46. package/components/widgets/shared/markdown-sections.d.ts +40 -0
  47. package/components/widgets/shared/markdown-sections.js +111 -0
  48. package/helpers/external-href.js +1 -1
  49. package/helpers/protected-mail.d.ts +16 -0
  50. package/helpers/protected-mail.js +81 -0
  51. package/package.json +2 -2
  52. package/plugins/runtime-modules/builder/clients/region-inspector.js +20 -1
  53. package/plugins/runtime-modules/core/widgets/card/config.d.ts +8 -1
  54. package/plugins/runtime-modules/core/widgets/card/config.js +22 -1
  55. package/plugins/runtime-modules/core/widgets/card/editor.js +9 -1
  56. package/plugins/runtime-modules/core/widgets/card/server.js +9 -1
  57. package/plugins/runtime-modules/core/widgets/entry-list/view.server.js +2 -1
  58. package/plugins/runtime-modules/core/widgets/gallery/config.d.ts +3 -3
  59. package/plugins/runtime-modules/core/widgets/header-navigation/client.d.ts +6 -1
  60. package/plugins/runtime-modules/core/widgets/header-navigation/client.js +40 -13
  61. package/plugins/runtime-modules/core/widgets/header-navigation/config.d.ts +26 -1
  62. package/plugins/runtime-modules/core/widgets/header-navigation/config.js +27 -0
  63. package/plugins/runtime-modules/core/widgets/header-navigation/plugin.js +1 -1
  64. package/plugins/runtime-modules/core/widgets/header-navigation/server.d.ts +2 -2
  65. package/plugins/runtime-modules/core/widgets/header-navigation/server.js +3 -1
  66. package/plugins/runtime-modules/core/widgets/image/client.js +11 -7
  67. package/plugins/runtime-modules/core/widgets/markdown/config.d.ts +16 -0
  68. package/plugins/runtime-modules/core/widgets/markdown/config.js +46 -1
  69. package/plugins/runtime-modules/core/widgets/markdown/server.js +22 -8
  70. package/plugins/runtime-modules/core/widgets/simple-text/server.js +11 -1
  71. package/styles/controls.css +108 -10
  72. package/styles/layout.css +35 -0
  73. package/styles/shell.css +142 -0
  74. package/theme/phi-tokens.d.ts +6 -0
  75. package/theme/phi-tokens.js +6 -0
  76. package/theme.d.ts +1 -0
  77. package/theme.js +6 -0
  78. package/types/core-widget-placements.d.ts +5 -0
@@ -293,6 +293,59 @@ h5.phi-typography, .phi-typography h5 {
293
293
  --ant-menu-icon-margin-inline-end: calc(var(--ant-control-height-sm) - var(--phi-menu-font-size));
294
294
  }
295
295
 
296
+ /*
297
+ * A horizontal menu's mark for the current entry (`PhiMenuControl` `selectionStyle`).
298
+ *
299
+ * The pill: the entry stands at the control height in the middle of its bar, on a ground in the Theme's
300
+ * Control shape -- a light primary tint in light mode, the primary mixed into the dark ground in dark
301
+ * mode -- and no bar under it. Ant Design writes the bar's width under a dark menu as a number rather than
302
+ * its variable, so it is set to nothing on the entry itself.
303
+ */
304
+ .phi-menu-control--selection-pill.ant-menu.ant-menu-root.ant-menu-horizontal,
305
+ .phi-menu-control--selection-auto.ant-menu-dark.ant-menu-root.ant-menu-horizontal {
306
+ --ant-menu-active-bar-height: 0px;
307
+ /*
308
+ * The Theme's Control shape at the default size: one Control line tall, so the radius a grown Control
309
+ * holds is exactly this entry's -- the shape's number, or the capsule under `pill`.
310
+ */
311
+ --ant-menu-horizontal-item-border-radius: var(--phi-control-radius-grown-md, var(--ant-border-radius));
312
+ --ant-menu-horizontal-item-selected-bg: var(--ant-color-primary-bg);
313
+ --ant-menu-dark-item-selected-bg: color-mix(in srgb, var(--ant-color-primary) 30%, transparent);
314
+ }
315
+
316
+ .phi-menu-control--selection-pill.ant-menu-horizontal > :is(.ant-menu-item, .ant-menu-submenu),
317
+ .phi-menu-control--selection-auto.ant-menu-dark.ant-menu-horizontal > :is(.ant-menu-item, .ant-menu-submenu) {
318
+ align-self: center;
319
+ height: var(--ant-control-height);
320
+ line-height: var(--ant-control-height);
321
+ }
322
+
323
+ .phi-menu-control--selection-pill.ant-menu-horizontal > :is(.ant-menu-item, .ant-menu-submenu)::after,
324
+ .phi-menu-control--selection-auto.ant-menu-dark.ant-menu-horizontal > :is(.ant-menu-item, .ant-menu-submenu)::after {
325
+ border-bottom-width: 0;
326
+ }
327
+
328
+ /* The bar in dark mode as well: no ground, and the bar Ant Design leaves out under a dark menu. */
329
+ .phi-menu-control--selection-underline.ant-menu-dark.ant-menu-root.ant-menu-horizontal {
330
+ --ant-menu-dark-item-selected-bg: transparent;
331
+ --ant-menu-dark-item-selected-color: var(--ant-color-primary);
332
+ }
333
+
334
+ .phi-menu-control--selection-underline.ant-menu-dark.ant-menu-horizontal
335
+ > :is(.ant-menu-item-selected, .ant-menu-submenu-selected)::after {
336
+ /* Ant Design's own `lineWidthBold`, which it derives as `lineWidth + 1`. */
337
+ border-bottom-width: calc(var(--ant-line-width) + 1px);
338
+ border-bottom-color: var(--ant-color-primary);
339
+ }
340
+
341
+ /*
342
+ * A Markdown text's sections that fold (`foldSections`): a fine rule of the Theme's between the questions,
343
+ * so a list of them reads as a list while every one is closed.
344
+ */
345
+ .phi-markdown-folds :where(.ant-collapse-item + .ant-collapse-item) {
346
+ border-block-start: var(--ant-line-width, 1px) solid var(--ant-color-split);
347
+ }
348
+
296
349
  /* --- Labeled control ---------------------------------------------------------------------------- */
297
350
 
298
351
  /*
@@ -670,24 +723,69 @@ h5.phi-typography, .phi-typography h5 {
670
723
  * Markdown pictures the text flows past (`imageFloat` on the Markdown Widget).
671
724
  *
672
725
  * Only where there is room for both: below 560px a picture beside the words leaves each of them a column
673
- * nobody reads, so there the picture stands on its own line at full width, as an unfloated one does. The
674
- * width is a share of the text with a ceiling, so a wide column does not grow the picture past a glance.
726
+ * nobody reads, so there the picture stands on its own line at full width, as an unfloated one does.
727
+ *
728
+ * Beside the words the line is shared in the golden ratio: what is left after the gap between them goes
729
+ * 1 : φ to picture and text (`PHI_GOLDEN_RATIO`, 1 + φ = 2.618), so the text is 1.618 times as wide as the
730
+ * picture at any column width -- 415 px of picture beside 671 px of text in a 1120 px column, with the
731
+ * Phi scale's `md` (34 px) between them. Every distance here is the Phi scale's, never `--ant-margin-*`.
675
732
  */
676
- .phi-markdown-body :is(img) {
733
+ .phi-markdown-body {
734
+ /* The gap between picture and text, on the Phi scale (`PHI_SPACE.md`), not Ant Design's margins. */
735
+ --phi-markdown-float-gap: var(--ant-padding-md, 34px);
736
+ --phi-markdown-float-width: calc((100% - var(--phi-markdown-float-gap)) / 2.618034);
737
+ }
738
+
739
+ .phi-markdown-body :is(img):not(:where(.phi-markdown-figure *)) {
677
740
  display: block;
678
- margin-block-end: var(--ant-margin, 16px);
741
+ margin-block-end: var(--ant-padding, 21px);
742
+ /*
743
+ * A picture is a surface, so its corners are the Theme's surface step (`--phi-surface-radius`, THEME.md
744
+ * "Control shape"): square under `square`, the widest step of the scale under `pill`.
745
+ */
746
+ border-radius: var(--phi-surface-radius, 0);
747
+ }
748
+
749
+ @container (min-width: 560px) {
750
+ .phi-markdown-body--float-start :is(img):not(:where(.phi-markdown-figure *)) {
751
+ float: inline-start;
752
+ width: var(--phi-markdown-float-width);
753
+ margin-inline-end: var(--phi-markdown-float-gap);
754
+ }
755
+
756
+ .phi-markdown-body--float-end :is(img):not(:where(.phi-markdown-figure *)) {
757
+ float: inline-end;
758
+ width: var(--phi-markdown-float-width);
759
+ margin-inline-start: var(--phi-markdown-float-gap);
760
+ }
761
+ }
762
+
763
+ /*
764
+ * A Media picture standing on its own (`PhiMarkdownFigure`): a figure whose frame holds the picture at its
765
+ * proportion, cropped into it, on the Theme's surface corner. It floats as the Widget says or as its own
766
+ * address says (`float=start|end|none`), in the same golden share and from the same container width as above.
767
+ */
768
+ .phi-markdown-figure {
769
+ margin: 0 0 var(--ant-padding, 21px);
770
+ }
771
+
772
+ .phi-markdown-figure__frame {
773
+ position: relative;
774
+ width: 100%;
775
+ overflow: hidden;
776
+ border-radius: var(--phi-surface-radius, 0);
679
777
  }
680
778
 
681
779
  @container (min-width: 560px) {
682
- .phi-markdown-body--float-start :is(img) {
780
+ .phi-markdown-figure--float-start {
683
781
  float: inline-start;
684
- width: min(45%, 440px);
685
- margin-inline-end: var(--ant-margin-lg, 24px);
782
+ width: var(--phi-markdown-float-width);
783
+ margin-inline-end: var(--phi-markdown-float-gap);
686
784
  }
687
785
 
688
- .phi-markdown-body--float-end :is(img) {
786
+ .phi-markdown-figure--float-end {
689
787
  float: inline-end;
690
- width: min(45%, 440px);
691
- margin-inline-start: var(--ant-margin-lg, 24px);
788
+ width: var(--phi-markdown-float-width);
789
+ margin-inline-start: var(--phi-markdown-float-gap);
692
790
  }
693
791
  }
package/styles/layout.css CHANGED
@@ -680,3 +680,38 @@
680
680
  scale: none;
681
681
  }
682
682
  }
683
+
684
+ /*
685
+ * The Split Card's grid (`phi-split-card-layout-client.tsx`): the two cards side by side in the golden
686
+ * ratio, and one above the other where the Split Card itself is narrower than 36rem -- its own width,
687
+ * not the screen's, so it stacks in a narrow column on a wide screen as well. Stacked, each card shows
688
+ * the whole shared Background (`resolvePhiSplitCardGroundFrame`).
689
+ */
690
+ .phi-split-card__grid {
691
+ display: grid;
692
+ grid-template-columns: var(--phi-split-card-columns);
693
+ align-items: stretch;
694
+ min-width: 0;
695
+ min-height: 0;
696
+ height: 100%;
697
+ }
698
+
699
+ @container phi-split-card (width < 36rem) {
700
+ .phi-split-card__grid {
701
+ grid-template-columns: minmax(0, 1fr);
702
+ --phi-split-card-ground-left: 0px;
703
+ --phi-split-card-ground-width: 100%;
704
+ }
705
+ }
706
+
707
+ /*
708
+ * A Three Column Layout on a phone (`phi-three-column-layout-client.tsx`): balanced sides give way to
709
+ * sides as wide as their content, and the middle takes what is left. The phone is the render viewport's
710
+ * width, as for `viewportFlags`.
711
+ */
712
+ @container phi-render-viewport (width < 768px) {
713
+ [data-layout-kind="threecol"] {
714
+ --phi-three-column-side-flex: 0 1 auto;
715
+ --phi-three-column-middle-flex: 1 1 0;
716
+ }
717
+ }
package/styles/shell.css CHANGED
@@ -620,3 +620,145 @@
620
620
  [data-phi-shell-layout]:has(> [data-phi-region-key="hero"]) > main [data-phi-region-key="content"] {
621
621
  margin-block-start: calc(-1 * var(--phi-region-hero-overlap, 0px)) !important;
622
622
  }
623
+
624
+ /* -------------------------------------------------------------------------------------------------
625
+ * The Sider on a phone (SHELL.md). A `sider_left` with `MobileDrawer` leaves its column below 768px
626
+ * and stands at the inline start, off screen, until `PhiShellSiderDrawer` marks the Shell open. The
627
+ * `!important`s win over the Region's inline geometry, which is the column's. Fixed inside the Shell
628
+ * means fixed to the Shell, a container: `--phi-shell-sider-drawer-top` moves it to the viewport's top.
629
+ * ---------------------------------------------------------------------------------------------- */
630
+ .phi-shell-sider-drawer-button,
631
+ .phi-shell-sider-drawer-mask {
632
+ display: none;
633
+ }
634
+
635
+ @container phi-render-viewport (width < 768px) {
636
+ [data-phi-shell-sider-drawer] > .phi-shell-chrome-pane--sider {
637
+ display: none;
638
+ }
639
+
640
+ [data-phi-sider-mobile="drawer"] {
641
+ position: fixed !important;
642
+ top: var(--phi-shell-sider-drawer-top, 0px) !important;
643
+ bottom: auto !important;
644
+ inset-inline-start: 0 !important;
645
+ width: min(max(var(--phi-shell-sider-width, 200px), 16rem), 85vw) !important;
646
+ min-width: min(max(var(--phi-shell-sider-width, 200px), 16rem), 85vw) !important;
647
+ max-width: 85vw !important;
648
+ height: 100dvh !important;
649
+ min-height: 0 !important;
650
+ max-height: 100dvh !important;
651
+ overflow-y: auto !important;
652
+ z-index: 1001 !important;
653
+ background-color: var(--ant-color-bg-elevated);
654
+ box-shadow: var(--ant-box-shadow-secondary);
655
+ transform: translateX(-100%);
656
+ visibility: hidden;
657
+ transition: transform 200ms ease, visibility 0s linear 200ms;
658
+ }
659
+
660
+ /*
661
+ * A Sider without a ground of its own shows the Shell's pane behind it, and on a phone there is no pane
662
+ * behind it: it stands over the page. It takes the Theme's elevated ground; an authored ground stays.
663
+ */
664
+ [data-phi-sider-mobile="drawer"][data-phi-shell-chrome="true"] {
665
+ background: var(--ant-color-bg-elevated) !important;
666
+ backdrop-filter: none !important;
667
+ }
668
+
669
+ [data-phi-sider-mobile="drawer"] .phi-sider-collapse-bar {
670
+ display: none !important;
671
+ }
672
+
673
+ [dir="rtl"] [data-phi-sider-mobile="drawer"] {
674
+ transform: translateX(100%);
675
+ }
676
+
677
+ [data-phi-sider-drawer-open="true"] [data-phi-sider-mobile="drawer"] {
678
+ transform: none;
679
+ visibility: visible;
680
+ transition: transform 200ms ease;
681
+ }
682
+
683
+ [data-phi-sider-drawer-open="true"] > .phi-shell-sider-drawer-mask {
684
+ display: block;
685
+ position: fixed;
686
+ top: var(--phi-shell-sider-drawer-top, 0px);
687
+ inset-inline: 0;
688
+ height: 100dvh;
689
+ z-index: 1000;
690
+ background: var(--ant-color-bg-mask);
691
+ }
692
+
693
+ .phi-shell-sider-drawer-button {
694
+ display: inline-flex;
695
+ position: absolute;
696
+ inset-inline-start: var(--ant-padding-xs);
697
+ top: 50%;
698
+ transform: translateY(-50%);
699
+ z-index: 1;
700
+ }
701
+
702
+ /* No `header_main` to sit in: the button stands at the Shell's top. */
703
+ .phi-shell-sider-drawer-button--shell {
704
+ top: var(--ant-padding-xs);
705
+ transform: none;
706
+ z-index: 999;
707
+ }
708
+
709
+ /* The Header's content makes room for the button at its start. */
710
+ [data-phi-region-key="header_main"]:has(> .phi-shell-sider-drawer-button) > .phi-cms-region-shell__content {
711
+ padding-inline-start: calc(var(--ant-control-height) + var(--ant-padding-xs)) !important;
712
+ }
713
+ }
714
+
715
+ /*
716
+ * A Header Navigation on a phone (`phoneMenu: "button"`): the row gives way to a menu button at the
717
+ * Widget's inline end, which opens the entries in a Drawer. The phone is the Shell's width, as above.
718
+ */
719
+ .phi-header-nav__button {
720
+ display: none;
721
+ }
722
+
723
+ @container phi-render-viewport (width < 768px) {
724
+ .phi-header-nav--phone-button {
725
+ justify-content: flex-end !important;
726
+ }
727
+
728
+ .phi-header-nav--phone-button > .phi-header-nav__row {
729
+ display: none !important;
730
+ }
731
+
732
+ .phi-header-nav--phone-button > .phi-header-nav__button {
733
+ display: inline-flex;
734
+ align-items: center;
735
+ }
736
+
737
+ /*
738
+ * The button keeps its width. Its row hidden, the Widget has no width of its own, and the slot frames
739
+ * around it -- `min-width: 0` all -- gave it up to the Widgets beside it, down to a pixel.
740
+ */
741
+ .phi-header-nav--phone-button,
742
+ .phi-slot-child:has(.phi-header-nav--phone-button) {
743
+ min-width: var(--ant-control-height) !important;
744
+ }
745
+
746
+ /*
747
+ * The account menu on a phone is its avatar: the pill with the name and the chevron is kept for a
748
+ * screen reader, which reads it as the button's name, and taken out of the row.
749
+ */
750
+ .phi-account-menu .phi-dropdown-control__pill {
751
+ position: absolute !important;
752
+ width: 1px !important;
753
+ height: 1px !important;
754
+ overflow: hidden !important;
755
+ clip-path: inset(50%) !important;
756
+ white-space: nowrap !important;
757
+ }
758
+ }
759
+
760
+ @media (prefers-reduced-motion: reduce) {
761
+ [data-phi-sider-mobile="drawer"] {
762
+ transition: none !important;
763
+ }
764
+ }
@@ -1,3 +1,9 @@
1
+ /**
2
+ * The golden ratio, φ = (1 + √5) / 2 ≈ 1.618: the step of the spacing scale below (each step the sum of
3
+ * the two before it), the golden rectangle a picture may be cropped to, and how a picture shares a line
4
+ * with text -- the text φ times as wide as the picture.
5
+ */
6
+ export declare const PHI_GOLDEN_RATIO: number;
1
7
  /**
2
8
  * The one spacing scale: the distance inside a frame and the distance between two things alike.
3
9
  *
@@ -1,3 +1,9 @@
1
+ /**
2
+ * The golden ratio, φ = (1 + √5) / 2 ≈ 1.618: the step of the spacing scale below (each step the sum of
3
+ * the two before it), the golden rectangle a picture may be cropped to, and how a picture shares a line
4
+ * with text -- the text φ times as wide as the picture.
5
+ */
6
+ export const PHI_GOLDEN_RATIO = (1 + Math.sqrt(5)) / 2;
1
7
  /**
2
8
  * The one spacing scale: the distance inside a frame and the distance between two things alike.
3
9
  *
package/theme.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { isPhiThemePaletteModeSeedKey, mergePhiThemePalettes, PHI_THEME_CUSTOM_COLOR_KEYS, PHI_THEME_PALETTE_MODE_SEED_KEYS, type PhiThemeCustomColorKey, type PhiThemeCustomColorPalette, type PhiThemeMode, type PhiThemePalette, type PhiThemePaletteMode, type PhiThemePresetPlugin, } from "./theme/phi-theme-presets";
2
2
  export * from "./theme/phi-tokens";
3
+ export { PHI_COLOR, PHI_RADIUS, PHI_SPACE } from "./theme/antd-css-var-contract";
3
4
  export { type PhiThemeBlockIdentity, type PhiThemeFontsBlock, type PhiThemeGroundBlock, type PhiThemePaletteBlock, type PhiThemeSetBlock, type PhiThemeStyleBlock, } from "./theme/phi-theme-blocks";
package/theme.js CHANGED
@@ -1,3 +1,9 @@
1
1
  export { isPhiThemePaletteModeSeedKey, mergePhiThemePalettes, PHI_THEME_CUSTOM_COLOR_KEYS, PHI_THEME_PALETTE_MODE_SEED_KEYS, } from "./theme/phi-theme-presets";
2
2
  export * from "./theme/phi-tokens";
3
+ /*
4
+ * The Theme's values as a preset writes them: a step of the spacing scale, a colour role, a corner.
5
+ * Each is a reference the Theme resolves per Site and per mode, never a value of its own, so a preset
6
+ * that names one follows whatever Theme it lands in (THEME.md, "Phi scale").
7
+ */
8
+ export { PHI_COLOR, PHI_RADIUS, PHI_SPACE } from "./theme/antd-css-var-contract";
3
9
  export {} from "./theme/phi-theme-blocks";
@@ -1,4 +1,6 @@
1
1
  import type { PhiBulletListEntry, PhiBulletListStyle } from "../components/widgets/shared/bullet-list-vocabulary";
2
+ import type { PhiMarkdownImageAspectRatio } from "../components/widgets/shared/markdown-image-vocabulary";
3
+ import type { PhiMarkdownFoldSections } from "../components/widgets/shared/markdown-sections";
2
4
  import type { PhiRenderableBlockBase } from "./renderable-block";
3
5
  import type { PhiTextSource } from "../helpers/text-source";
4
6
  import type { PhiRuntimeConditionExpression } from "./runtime-condition";
@@ -53,6 +55,9 @@ export type PhiMarkdownWidgetPlacement = PhiWidgetPlacementBase & {
53
55
  revalidateSeconds?: number;
54
56
  textAlign?: PhiMarkdownTextAlign;
55
57
  imageFloat?: PhiMarkdownImageFloat;
58
+ imageAspectRatio?: PhiMarkdownImageAspectRatio;
59
+ foldSections?: PhiMarkdownFoldSections;
60
+ faqStructuredData?: boolean;
56
61
  textBlockSpacingBefore?: PhiSpacingScaleKey;
57
62
  textBlockSpacingAfter?: PhiSpacingScaleKey;
58
63
  headingBlockSpacingBefore?: PhiSpacingScaleKey;