@phis/ui 0.4.5 → 0.4.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.
Files changed (145) 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/controls/phi-text-control.d.ts +6 -1
  13. package/components/controls/phi-text-control.js +2 -1
  14. package/components/layouts/clients/phi-split-card-layout-client.js +13 -5
  15. package/components/layouts/clients/phi-three-column-layout-client.js +9 -3
  16. package/components/layouts/split-card-geometry.js +6 -2
  17. package/components/media/aspect-ratios.d.ts +2 -2
  18. package/components/menus/phi-account-menu.js +3 -1
  19. package/components/navigation/phi-link.js +7 -2
  20. package/components/navigation/use-phi-protected-mail.d.ts +11 -0
  21. package/components/navigation/use-phi-protected-mail.js +29 -0
  22. package/components/regions/clients/cms-region-container-client.js +5 -1
  23. package/components/regions/phi-cms-region-shell.d.ts +1 -0
  24. package/components/regions/phi-cms-region-shell.js +11 -0
  25. package/components/regions/presets/phi-area-shell-preset-nodes.d.ts +5 -0
  26. package/components/regions/presets/phi-area-shell-preset-nodes.js +19 -3
  27. package/components/root/phi-config-provider.js +16 -0
  28. package/components/shell/phi-cms-shell.d.ts +3 -1
  29. package/components/shell/phi-cms-shell.js +7 -3
  30. package/components/shell/phi-nav-link.js +7 -2
  31. package/components/shell/phi-shell-sider-drawer.d.ts +17 -0
  32. package/components/shell/phi-shell-sider-drawer.js +88 -0
  33. package/components/widgets/helpers/internal-reference-resolver.server.d.ts +1 -0
  34. package/components/widgets/helpers/internal-reference-resolver.server.js +4 -1
  35. package/components/widgets/label-sets/inspector.js +2 -0
  36. package/components/widgets/label-sets/search-results.d.ts +4 -0
  37. package/components/widgets/label-sets/search-results.js +35 -0
  38. package/components/widgets/label-types/inspector.d.ts +2 -0
  39. package/components/widgets/label-types/inspector.js +1 -0
  40. package/components/widgets/label-types/search-results.d.ts +15 -0
  41. package/components/widgets/label-types/search-results.js +10 -0
  42. package/components/widgets/server/navigation-request.js +13 -1
  43. package/components/widgets/shared/card-body-client.d.ts +2 -0
  44. package/components/widgets/shared/card-body-client.js +8 -7
  45. package/components/widgets/shared/card-vocabulary.d.ts +36 -0
  46. package/components/widgets/shared/card-vocabulary.js +52 -0
  47. package/components/widgets/shared/markdown-body-client.d.ts +29 -0
  48. package/components/widgets/shared/markdown-body-client.js +60 -5
  49. package/components/widgets/shared/markdown-image-vocabulary.d.ts +31 -0
  50. package/components/widgets/shared/markdown-image-vocabulary.js +68 -0
  51. package/components/widgets/shared/markdown-render.d.ts +5 -0
  52. package/components/widgets/shared/markdown-render.js +123 -8
  53. package/components/widgets/shared/markdown-sections.d.ts +40 -0
  54. package/components/widgets/shared/markdown-sections.js +111 -0
  55. package/constants/cms-widget-types.d.ts +2 -0
  56. package/constants/cms-widget-types.js +4 -0
  57. package/gateway/site-area.d.ts +10 -7
  58. package/gateway/site-area.js +13 -11
  59. package/gateway/site-config.js +7 -1
  60. package/gateway/site-read-marker-listeners.d.ts +24 -0
  61. package/gateway/site-read-marker-listeners.js +22 -0
  62. package/gateway/site-search.d.ts +37 -0
  63. package/gateway/site-search.js +116 -0
  64. package/helpers/external-href.js +1 -1
  65. package/helpers/protected-mail.d.ts +16 -0
  66. package/helpers/protected-mail.js +81 -0
  67. package/next/areas/app.js +5 -1
  68. package/next/areas/public.js +5 -1
  69. package/next/seo-routes.js +2 -2
  70. package/package.json +2 -2
  71. package/plugins/runtime-modules/app/presets.js +23 -0
  72. package/plugins/runtime-modules/app/trees/phi-default-app-area-preset-tree.d.ts +2 -1
  73. package/plugins/runtime-modules/app/trees/phi-default-app-area-preset-tree.js +3 -2
  74. package/plugins/runtime-modules/builder/clients/region-inspector.js +20 -1
  75. package/plugins/runtime-modules/client-manifests/common.js +8 -0
  76. package/plugins/runtime-modules/core/authoring-widgets.js +4 -0
  77. package/plugins/runtime-modules/core/widgets/card/config.d.ts +8 -1
  78. package/plugins/runtime-modules/core/widgets/card/config.js +22 -1
  79. package/plugins/runtime-modules/core/widgets/card/editor.js +9 -1
  80. package/plugins/runtime-modules/core/widgets/card/plugin.js +18 -0
  81. package/plugins/runtime-modules/core/widgets/card/server.js +9 -1
  82. package/plugins/runtime-modules/core/widgets/description/plugin.js +10 -0
  83. package/plugins/runtime-modules/core/widgets/entry-list/view.server.js +2 -1
  84. package/plugins/runtime-modules/core/widgets/gallery/config.d.ts +3 -3
  85. package/plugins/runtime-modules/core/widgets/header-navigation/client.d.ts +6 -1
  86. package/plugins/runtime-modules/core/widgets/header-navigation/client.js +40 -13
  87. package/plugins/runtime-modules/core/widgets/header-navigation/config.d.ts +26 -1
  88. package/plugins/runtime-modules/core/widgets/header-navigation/config.js +27 -0
  89. package/plugins/runtime-modules/core/widgets/header-navigation/plugin.js +1 -1
  90. package/plugins/runtime-modules/core/widgets/header-navigation/server.d.ts +2 -2
  91. package/plugins/runtime-modules/core/widgets/header-navigation/server.js +3 -1
  92. package/plugins/runtime-modules/core/widgets/html/plugin.js +16 -1
  93. package/plugins/runtime-modules/core/widgets/html/server.d.ts +6 -0
  94. package/plugins/runtime-modules/core/widgets/html/server.js +12 -4
  95. package/plugins/runtime-modules/core/widgets/image/client.js +11 -7
  96. package/plugins/runtime-modules/core/widgets/markdown/config.d.ts +16 -0
  97. package/plugins/runtime-modules/core/widgets/markdown/config.js +46 -1
  98. package/plugins/runtime-modules/core/widgets/markdown/plugin.js +16 -0
  99. package/plugins/runtime-modules/core/widgets/markdown/server.js +22 -8
  100. package/plugins/runtime-modules/core/widgets/search-box/authoring.d.ts +6 -0
  101. package/plugins/runtime-modules/core/widgets/search-box/authoring.js +10 -0
  102. package/plugins/runtime-modules/core/widgets/search-box/client.d.ts +21 -0
  103. package/plugins/runtime-modules/core/widgets/search-box/client.js +17 -0
  104. package/plugins/runtime-modules/core/widgets/search-box/config.d.ts +63 -0
  105. package/plugins/runtime-modules/core/widgets/search-box/config.js +48 -0
  106. package/plugins/runtime-modules/core/widgets/search-box/plugin.d.ts +3 -0
  107. package/plugins/runtime-modules/core/widgets/search-box/plugin.js +11 -0
  108. package/plugins/runtime-modules/core/widgets/search-box/server.d.ts +21 -0
  109. package/plugins/runtime-modules/core/widgets/search-box/server.js +48 -0
  110. package/plugins/runtime-modules/core/widgets/search-results/authoring.d.ts +6 -0
  111. package/plugins/runtime-modules/core/widgets/search-results/authoring.js +10 -0
  112. package/plugins/runtime-modules/core/widgets/search-results/client.d.ts +34 -0
  113. package/plugins/runtime-modules/core/widgets/search-results/client.js +32 -0
  114. package/plugins/runtime-modules/core/widgets/search-results/config.d.ts +41 -0
  115. package/plugins/runtime-modules/core/widgets/search-results/config.js +39 -0
  116. package/plugins/runtime-modules/core/widgets/search-results/plugin.d.ts +3 -0
  117. package/plugins/runtime-modules/core/widgets/search-results/plugin.js +10 -0
  118. package/plugins/runtime-modules/core/widgets/search-results/server.d.ts +20 -0
  119. package/plugins/runtime-modules/core/widgets/search-results/server.js +73 -0
  120. package/plugins/runtime-modules/core/widgets/simple-text/plugin.js +11 -0
  121. package/plugins/runtime-modules/core/widgets/simple-text/server.js +11 -1
  122. package/plugins/runtime-modules/core/widgets.js +17 -0
  123. package/plugins/runtime-modules/public/presets.d.ts +16 -0
  124. package/plugins/runtime-modules/public/presets.js +22 -0
  125. package/plugins/runtime-modules/public-base-page-references.d.ts +1 -0
  126. package/plugins/runtime-modules/public-base-page-references.js +1 -0
  127. package/plugins/runtime-modules/search-page-references.d.ts +20 -0
  128. package/plugins/runtime-modules/search-page-references.js +35 -0
  129. package/plugins/runtime-modules/search-page-tree.d.ts +14 -0
  130. package/plugins/runtime-modules/search-page-tree.js +63 -0
  131. package/server-helpers/search-index.d.ts +28 -0
  132. package/server-helpers/search-index.js +299 -0
  133. package/server-helpers/search-text.d.ts +40 -0
  134. package/server-helpers/search-text.js +152 -0
  135. package/server-helpers.d.ts +1 -0
  136. package/server-helpers.js +1 -0
  137. package/styles/controls.css +108 -10
  138. package/styles/layout.css +35 -0
  139. package/styles/shell.css +142 -0
  140. package/theme/phi-tokens.d.ts +6 -0
  141. package/theme/phi-tokens.js +6 -0
  142. package/theme.d.ts +1 -0
  143. package/theme.js +6 -0
  144. package/types/cms-plugins.d.ts +20 -2
  145. package/types/core-widget-placements.d.ts +5 -0
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";
@@ -500,6 +500,24 @@ export type PhiCmsWidgetPlugin<TConfig> = {
500
500
  parseConfig: (raw: Record<string, unknown>) => TConfig;
501
501
  render: PhiBivariantCallback<[PhiCmsWidgetPluginRenderArgs<TConfig>], ReactNode>;
502
502
  renderPreview: PhiBivariantCallback<[PhiCmsWidgetPluginRenderArgs<TConfig>], ReactNode>;
503
+ /**
504
+ * The words this Widget shows a reader, for the Site's search index (SEARCH.md).
505
+ *
506
+ * Called by the indexer, never by a render, for each Widget of a published Page in each language: it
507
+ * answers the text as the reader sees it -- translated for `runtime.locale`, with the Page's values
508
+ * filled in -- and nothing a reader does not see. A Widget without it contributes no text, which is
509
+ * right for a picture, a form or a navigation; a Widget that draws words a visitor would search for
510
+ * says them here, in reading order, one entry per line or paragraph.
511
+ */
512
+ searchText?: PhiBivariantCallback<[
513
+ PhiCmsWidgetSearchTextArgs<TConfig>
514
+ ], Promise<readonly string[]> | readonly string[]>;
515
+ };
516
+ /** What a Widget is handed to say its words: the node, its parsed config and the render's runtime. */
517
+ export type PhiCmsWidgetSearchTextArgs<TConfig> = {
518
+ widget: PhiCmsContentWidgetNode;
519
+ config: TConfig;
520
+ runtime: PhiBlockRuntime;
503
521
  };
504
522
  /**
505
523
  * Everything a Widget declares about itself, and nothing it renders.
@@ -518,8 +536,8 @@ export type PhiCmsBuilderWidgetPlugin<TConfig> = PhiCmsWidgetPluginDefinition<TC
518
536
  renderEditor: PhiBivariantCallback<[PhiCmsBuilderWidgetRenderArgs<TConfig>], ReactNode>;
519
537
  renderEditorTools?: PhiBivariantCallback<[PhiCmsBuilderWidgetRenderArgs<TConfig>], ReactNode>;
520
538
  };
521
- export type PhiCmsServerWidgetPlugin<TConfig> = PhiCmsWidgetPluginDefinition<TConfig> & Pick<PhiCmsWidgetPlugin<TConfig>, "render" | "renderPreview">;
522
- export type PhiCmsRuntimeWidgetPlugin<TConfig> = PhiCmsWidgetPluginDefinition<TConfig> & Pick<PhiCmsWidgetPlugin<TConfig>, "render">;
539
+ export type PhiCmsServerWidgetPlugin<TConfig> = PhiCmsWidgetPluginDefinition<TConfig> & Pick<PhiCmsWidgetPlugin<TConfig>, "render" | "renderPreview" | "searchText">;
540
+ export type PhiCmsRuntimeWidgetPlugin<TConfig> = PhiCmsWidgetPluginDefinition<TConfig> & Pick<PhiCmsWidgetPlugin<TConfig>, "render" | "searchText">;
523
541
  export type PhiCmsPreviewWidgetPlugin<TConfig> = PhiCmsWidgetPluginDefinition<TConfig> & Pick<PhiCmsWidgetPlugin<TConfig>, "renderPreview">;
524
542
  export type PhiCmsRuntimeRenderRegistry = {
525
543
  runtimeModuleCatalog: PhiRuntimeModuleCatalog;
@@ -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;