@selfhelp/shared 1.21.3 → 1.21.5

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 (47) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/README.md +2 -1
  3. package/dist/index.d.mts +427 -20
  4. package/dist/index.d.ts +427 -20
  5. package/dist/index.js +560 -13
  6. package/dist/index.mjs +518 -13
  7. package/dist/plugin-sdk/index.d.mts +1 -1
  8. package/dist/plugin-sdk/index.d.ts +1 -1
  9. package/dist/plugin-sdk/index.js +2 -1
  10. package/dist/plugin-sdk/index.mjs +2 -1
  11. package/dist/registry/index.d.mts +2 -2
  12. package/dist/registry/index.d.ts +2 -2
  13. package/dist/registry/index.js +2 -1
  14. package/dist/registry/index.mjs +2 -1
  15. package/dist/{styles.registry-DEDEZ8l3.d.ts → styles.registry-DX79oirw.d.ts} +93 -16
  16. package/dist/{styles.registry-DHM4M77N.d.mts → styles.registry-ffw0MH3r.d.mts} +93 -16
  17. package/package.json +1 -1
  18. package/src/content/__tests__/fieldsMapLabels.test.ts +55 -0
  19. package/src/content/__tests__/optionLabels.test.ts +100 -0
  20. package/src/content/fieldsMapLabels.ts +103 -0
  21. package/src/content/index.ts +2 -0
  22. package/src/content/optionLabels.ts +200 -0
  23. package/src/navigation/__tests__/navigation.test.ts +296 -6
  24. package/src/navigation/activeTrail.ts +99 -0
  25. package/src/navigation/branchNav.ts +155 -6
  26. package/src/navigation/footerPreset.ts +109 -0
  27. package/src/navigation/headerLayers.ts +56 -0
  28. package/src/navigation/headerPreset.ts +9 -2
  29. package/src/navigation/index.ts +4 -0
  30. package/src/navigation/menuDepth.ts +73 -37
  31. package/src/navigation/mobileRoute.ts +25 -0
  32. package/src/navigation/navLinks.ts +0 -4
  33. package/src/navigation/navigationBundle.ts +81 -0
  34. package/src/navigation/navigationPayload.ts +96 -17
  35. package/src/registry/__tests__/platform.test.ts +11 -10
  36. package/src/registry/styles.registry.ts +2 -1
  37. package/src/types/__tests__/preview-bridge.test.ts +7 -0
  38. package/src/types/auth.ts +4 -0
  39. package/src/types/cms-app.ts +74 -0
  40. package/src/types/index.ts +1 -0
  41. package/src/types/mobile-adapters.ts +1 -0
  42. package/src/types/pages.ts +6 -0
  43. package/src/types/preview-bridge.ts +12 -1
  44. package/src/types/styles/composite.ts +21 -0
  45. package/src/types/styles/forms.ts +57 -10
  46. package/src/types/styles/interactive.ts +1 -1
  47. package/src/types/styles/unknown.ts +2 -2
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { T as TStyleName, j as IContentField, k as TMobileButtonFeedback, l as TMobileFieldVariant, m as TMobileSelectPresentation } from './styles.registry-DEDEZ8l3.js';
2
- export { B as BASE_STYLE_REGISTRY, n as IAccordionItemStyle, o as IAccordionStyle, p as IActionIconStyle, q as IAlertStyle, r as IAspectRatioStyle, s as IAudioStyle, t as IAvatarStyle, u as IBackgroundImageStyle, v as IBadgeStyle, w as IBaseStyle, x as IBlockquoteStyle, y as IBoxStyle, z as IButtonStyle, A as ICardSegmentStyle, C as ICardStyle, D as ICarouselStyle, E as ICenterStyle, F as ICheckboxStyle, G as IChipStyle, H as ICodeStyle, J as IColorInputStyle, K as IColorPickerStyle, L as IComboboxStyle, M as IContainerStyle, N as IDataContainerStyle, O as IDatePickerStyle, P as IDividerStyle, Q as IEntryListStyle, R as IEntryRecordDeleteStyle, U as IEntryRecordStyle, V as IFieldsetStyle, W as IFigureStyle, X as IFileInputStyle, Y as IFlexStyle, Z as IFormLogStyle, $ as IFormRecordStyle, a0 as IFormStyle, a1 as IGridColumnStyle, a2 as IGridStyle, a3 as IGroupStyle, a4 as IHighlightStyle, a5 as IHtmlTagStyle, a6 as IImageStyle, a7 as IIndicatorStyle, a8 as IInputStyle, a9 as IKbdStyle, aa as ILinkStyle, ab as IListItemStyle, ac as IListStyle, ad as ILoginStyle, ae as ILoopStyle, af as IMissingStyle, ag as INoAccessStyle, ah as INotFoundStyle, ai as INotificationStyle, aj as INumberInputStyle, ak as IPaperStyle, a as IPluginStyleRegistryEntry, al as IProfileStyle, am as IProgressRootStyle, an as IProgressSectionStyle, ao as IProgressStyle, ap as IRadioStyle, aq as IRangeSliderStyle, ar as IRatingStyle, as as IRefContainerStyle, at as IRegisterStyle, au as IResetPasswordStyle, av as IRichTextEditorStyle, aw as IScrollAreaStyle, ax as ISegmentedControlStyle, ay as ISelectStyle, az as IShowUserInputEntry, aA as IShowUserInputStyle, aB as ISimpleGridStyle, aC as ISliderStyle, aD as ISpaceStyle, aE as ISpoilerStyle, aF as IStackStyle, I as IStyleRegistryEntry, aG as IStyleWithSpacing, aH as ISwitchStyle, aI as ITabStyle, aJ as ITabsStyle, aK as ITextInputStyle, aL as ITextStyle, aM as ITextareaStyle, aN as IThemeIconStyle, aO as ITimelineItemStyle, aP as ITimelineStyle, aQ as ITitleStyle, aR as ITwoFactorAuthStyle, aS as ITypographyStyle, aT as IUnknownStyle, aU as IValidateStyle, aV as IVersionStyle, aW as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, aX as TMantineAccordionChevronPosition, aY as TMantineAccordionDisableChevronRotation, aZ as TMantineAccordionLoop, a_ as TMantineAccordionMultiple, a$ as TMantineAnchorUnderline, b0 as TMantineBorder, b1 as TMantineCardPadding, b2 as TMantineCardShadow, b3 as TMantineCols, b4 as TMantineDividerVariant, b5 as TMantineGap, b6 as TMantineGridOffset, b7 as TMantineGridOrder, b8 as TMantineHeight, b9 as TMantineIconSize, ba as TMantineImageFit, bb as TMantineLineClamp, bc as TMantineListCenter, bd as TMantineListStyleType, be as TMantineListType, bf as TMantineListWithPadding, bg as TMantinePaperShadow, bh as TMantineProgressTransition, bi as TMantineScrollAreaSize, bj as TMantineScrollAreaType, bk as TMantineTextAlign, bl as TMantineTextDecoration, bm as TMantineTextFontStyle, bn as TMantineTextFontWeight, bo as TMantineTextInherit, bp as TMantineTextInputVariant, bq as TMantineTextSpan, br as TMantineTextTransform, bs as TMantineTextTruncate, bt as TMantineTextVariant, bu as TMantineTextareaAutosize, bv as TMantineTextareaResize, bw as TMantineTextareaVariant, bx as TMantineTimelineAlign, by as TMantineTitleLineClamp, bz as TMantineTitleTextWrap, bA as TMantineTranslatable, bB as TMantineUseInputWrapper, bC as TMantineWidth, bD as TSharedBorder, bE as TSharedCols, bF as TSharedDimension, bG as TSharedDividerLabelPosition, bH as TSharedDividerVariant, bI as TSharedLabelPosition, bJ as TStyle, b as TStylePlacement, d as TStylePlatform, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from './styles.registry-DEDEZ8l3.js';
1
+ import { T as TStyleName, j as IContentField, k as TMobileButtonFeedback, l as TMobileFieldVariant, m as TMobileSelectPresentation } from './styles.registry-DX79oirw.js';
2
+ export { B as BASE_STYLE_REGISTRY, n as IAccordionItemStyle, o as IAccordionStyle, p as IActionIconStyle, q as IAlertStyle, r as IAspectRatioStyle, s as IAudioStyle, t as IAvatarStyle, u as IBackgroundImageStyle, v as IBadgeStyle, w as IBaseStyle, x as IBlockquoteStyle, y as IBoxStyle, z as IButtonStyle, A as ICardSegmentStyle, C as ICardStyle, D as ICarouselStyle, E as ICenterStyle, F as ICheckboxStyle, G as IChipStyle, H as ICodeStyle, J as IColorInputStyle, K as IColorPickerStyle, L as IComboboxStyle, M as IContainerStyle, N as IDataContainerStyle, O as IDatePickerStyle, P as IDividerStyle, Q as IEntryListStyle, R as IEntryRecordDeleteStyle, U as IEntryRecordFormStyle, V as IEntryRecordStyle, W as IEntryTableEntry, X as IEntryTableStyle, Y as IFieldsetStyle, Z as IFigureStyle, $ as IFileInputStyle, a0 as IFlexStyle, a1 as IFormLogStyle, a2 as IFormRecordStyle, a3 as IFormStyle, a4 as IGridColumnStyle, a5 as IGridStyle, a6 as IGroupStyle, a7 as IHighlightStyle, a8 as IHtmlTagStyle, a9 as IImageStyle, aa as IIndicatorStyle, ab as IInputStyle, ac as IKbdStyle, ad as ILinkStyle, ae as IListItemStyle, af as IListStyle, ag as ILoginStyle, ah as ILoopStyle, ai as IMissingStyle, aj as INoAccessStyle, ak as INotFoundStyle, al as INotificationStyle, am as INumberInputStyle, an as IPaperStyle, a as IPluginStyleRegistryEntry, ao as IProfileStyle, ap as IProgressRootStyle, aq as IProgressSectionStyle, ar as IProgressStyle, as as IRadioStyle, at as IRangeSliderStyle, au as IRatingStyle, av as IRefContainerStyle, aw as IRegisterStyle, ax as IResetPasswordStyle, ay as IRichTextEditorStyle, az as IScrollAreaStyle, aA as ISegmentedControlStyle, aB as ISelectStyle, aC as ISimpleGridStyle, aD as ISliderStyle, aE as ISpaceStyle, aF as ISpoilerStyle, aG as IStackStyle, I as IStyleRegistryEntry, aH as IStyleWithSpacing, aI as ISwitchStyle, aJ as ITabStyle, aK as ITabsStyle, aL as ITextInputStyle, aM as ITextStyle, aN as ITextareaStyle, aO as IThemeIconStyle, aP as ITimelineItemStyle, aQ as ITimelineStyle, aR as ITitleStyle, aS as ITwoFactorAuthStyle, aT as ITypographyStyle, aU as IUnknownStyle, aV as IValidateStyle, aW as IVersionStyle, aX as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, aY as TMantineAccordionChevronPosition, aZ as TMantineAccordionDisableChevronRotation, a_ as TMantineAccordionLoop, a$ as TMantineAccordionMultiple, b0 as TMantineAnchorUnderline, b1 as TMantineBorder, b2 as TMantineCardPadding, b3 as TMantineCardShadow, b4 as TMantineCols, b5 as TMantineDividerVariant, b6 as TMantineGap, b7 as TMantineGridOffset, b8 as TMantineGridOrder, b9 as TMantineHeight, ba as TMantineIconSize, bb as TMantineImageFit, bc as TMantineLineClamp, bd as TMantineListCenter, be as TMantineListStyleType, bf as TMantineListType, bg as TMantineListWithPadding, bh as TMantinePaperShadow, bi as TMantineProgressTransition, bj as TMantineScrollAreaSize, bk as TMantineScrollAreaType, bl as TMantineTextAlign, bm as TMantineTextDecoration, bn as TMantineTextFontStyle, bo as TMantineTextFontWeight, bp as TMantineTextInherit, bq as TMantineTextInputVariant, br as TMantineTextSpan, bs as TMantineTextTransform, bt as TMantineTextTruncate, bu as TMantineTextVariant, bv as TMantineTextareaAutosize, bw as TMantineTextareaResize, bx as TMantineTextareaVariant, by as TMantineTimelineAlign, bz as TMantineTitleLineClamp, bA as TMantineTitleTextWrap, bB as TMantineTranslatable, bC as TMantineUseInputWrapper, bD as TMantineWidth, bE as TSharedBorder, bF as TSharedCols, bG as TSharedDimension, bH as TSharedDividerLabelPosition, bI as TSharedDividerVariant, bJ as TSharedLabelPosition, bK as TStyle, b as TStylePlacement, d as TStylePlatform, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from './styles.registry-DX79oirw.js';
3
3
  export { v as TMantineAccordionVariant, y as TMantineActionIconLoading, d as TMantineAlign, z as TMantineAllowNextClicks, A as TMantineAllowStepClick, B as TMantineAspectRatio, C as TMantineAutoContrast, r as TMantineAvatarVariant, q as TMantineBadgeVariant, D as TMantineBlock, E as TMantineCenterInline, F as TMantineChecked, G as TMantineChipChecked, H as TMantineChipMultiple, s as TMantineChipVariant, I as TMantineClampBehavior, J as TMantineCodeBlock, T as TMantineColor, K as TMantineColorFormat, L as TMantineColorInputSwatches, M as TMantineColorPickerSwatches, N as TMantineColorPickerSwatchesPerRow, O as TMantineCompact, P as TMantineContainerFluid, e as TMantineDirection, Q as TMantineDisabled, n as TMantineFieldsetVariant, R as TMantineFileAccept, S as TMantineFileInputMultiple, U as TMantineFluid, V as TMantineFullWidth, i as TMantineGridGrow, g as TMantineGridOverflow, h as TMantineGridSpan, W as TMantineGroupGrow, X as TMantineGroupWrap, Y as TMantineGrow, Z as TMantineHighlight, t as TMantineIndicatorPosition, _ as TMantineInline, $ as TMantineIsLink, c as TMantineJustify, a0 as TMantineKbdSize, a1 as TMantineLoading, a2 as TMantineMultiple, a3 as TMantineNotificationWithCloseButton, a4 as TMantineNumberInputDecimalScale, a5 as TMantineOpenInNewTab, j as TMantineOrientation, a6 as TMantineProcessing, a as TMantineRadius, a7 as TMantineRangeSliderMarks, a8 as TMantineRatingCount, a9 as TMantineRatingFractions, aa as TMantineRatingReadonly, ab as TMantineReadonly, m as TMantineSize, ac as TMantineSpaceHorizontal, ad as TMantineSpacing, o as TMantineSpoilerMaxHeight, ae as TMantineSwatches, af as TMantineTabDisabled, w as TMantineTabsVariant, u as TMantineThemeIconVariant, x as TMantineTimelineLineVariant, l as TMantineTitleOrder, ag as TMantineUseMantineStyle, p as TMantineVariant, ah as TMantineWithCloseButton, ai as TMantineWithIcon, f as TMantineWrap, k as TSharedRadius, b as TSharedSize } from './common-qaDIAYS3.js';
4
4
  import { ReactNode, ComponentType } from 'react';
5
5
  import { THeroUiButtonVariant, THeroUiSize } from './theme/index.js';
@@ -72,6 +72,12 @@ interface IPageContent {
72
72
  url: string | null;
73
73
  parent_page_id: number | null;
74
74
  is_headless: boolean;
75
+ /**
76
+ * CMS-in-CMS surface: `public` website pages vs `cms` admin-only snippets
77
+ * (entry-table / form). `cms` pages must not render on the public slug route;
78
+ * Host Admin hosts them under `/admin/cms-apps/.../content`.
79
+ */
80
+ page_surface?: 'public' | 'cms';
75
81
  /**
76
82
  * When true, the web frontend renders this page's content inside a modal
77
83
  * overlay (the page title becomes the modal header, with a close button)
@@ -217,6 +223,10 @@ declare const PERMISSIONS: {
217
223
  readonly ADMIN_PAGE_VERSION_PUBLISH: "admin.page.version.publish";
218
224
  readonly ADMIN_PAGE_VERSION_READ: "admin.page.version.read";
219
225
  readonly ADMIN_PAGE_VERSION_COMPARE: "admin.page.version.compare";
226
+ readonly ADMIN_CMS_APP_READ: "admin.cms_app.read";
227
+ readonly ADMIN_CMS_APP_CREATE: "admin.cms_app.create";
228
+ readonly ADMIN_CMS_APP_UPDATE: "admin.cms_app.update";
229
+ readonly ADMIN_CMS_APP_DELETE: "admin.cms_app.delete";
220
230
  readonly ADMIN_USER_READ: "admin.user.read";
221
231
  readonly ADMIN_USER_CREATE: "admin.user.create";
222
232
  readonly ADMIN_USER_UPDATE: "admin.user.update";
@@ -259,6 +269,49 @@ declare const PERMISSIONS: {
259
269
  };
260
270
  type TPermission = (typeof PERMISSIONS)[keyof typeof PERMISSIONS];
261
271
 
272
+ /**
273
+ * First-class CMS app contract (Host Admin product unit).
274
+ * Mirrors backend CmsAppRole + CmsAppService response shapes.
275
+ */
276
+ type TCmsAppRole = 'form' | 'cms_list' | 'cms_detail' | 'public_list' | 'public_detail' | 'other';
277
+ declare const CMS_APP_ROLES: readonly TCmsAppRole[];
278
+ declare const CMS_APP_PRIMARY_ROLES: readonly TCmsAppRole[];
279
+ /** Assigned page row inside a CMS app detail payload. */
280
+ interface ICmsAppPage {
281
+ page_id: number;
282
+ keyword: string;
283
+ url: string | null;
284
+ page_surface: string;
285
+ cms_app_role: TCmsAppRole | null;
286
+ }
287
+ /** @deprecated Prefer {@link ICmsAppPage} — kept for existing imports. */
288
+ type ICmsAppAssignedPage = ICmsAppPage;
289
+ /** List/summary row for GET /admin/cms-apps. */
290
+ interface ICmsAppSummary {
291
+ id: number;
292
+ name: string;
293
+ slug: string;
294
+ description: string | null;
295
+ page_count: number;
296
+ id_form_section: number | null;
297
+ id_cms_list_page: number | null;
298
+ cms_list_keyword: string | null;
299
+ cms_list_url: string | null;
300
+ id_cms_detail_page: number | null;
301
+ id_public_list_page: number | null;
302
+ public_list_keyword: string | null;
303
+ public_list_url: string | null;
304
+ id_public_detail_page: number | null;
305
+ created_at: string;
306
+ updated_at: string | null;
307
+ }
308
+ /** Detail payload (summary + assigned pages). Canonical alias: {@link ICmsApp}. */
309
+ interface ICmsAppDetail extends ICmsAppSummary {
310
+ pages: ICmsAppPage[];
311
+ }
312
+ /** Canonical CMS app detail contract. */
313
+ type ICmsApp = ICmsAppDetail;
314
+
262
315
  /**
263
316
  * Common API envelope returned by the Symfony backend's ApiResponseFormatter.
264
317
  */
@@ -1009,6 +1062,12 @@ interface IPreviewNavigatedMessage {
1009
1062
  interface IPreviewNavigateCommand {
1010
1063
  type: typeof PREVIEW_BRIDGE_MESSAGE.NAVIGATE;
1011
1064
  keyword: string | null;
1065
+ /**
1066
+ * Full public path when keyword alone is insufficient (parameterized routes
1067
+ * such as `/team-members/5`). The mobile frame resolves this via
1068
+ * `GET /pages/resolve` instead of routing by keyword only.
1069
+ */
1070
+ path?: string | null;
1012
1071
  }
1013
1072
  /**
1014
1073
  * shell → frame: apply the shared colour-scheme + language {@link IPreviewPreferences}
@@ -1689,6 +1748,7 @@ interface IMobileCheckboxProps extends IMobileAdapterBaseProps {
1689
1748
  interface IMobileSelectOption {
1690
1749
  value: string;
1691
1750
  label: string;
1751
+ disabled?: boolean;
1692
1752
  }
1693
1753
  interface IMobileSelectProps extends IMobileAdapterBaseProps {
1694
1754
  value?: string;
@@ -2035,6 +2095,93 @@ declare function hasInlineFormatting(value: string | null | undefined): boolean;
2035
2095
  */
2036
2096
  declare function stripHtmlToText(value: string | null | undefined): string;
2037
2097
 
2098
+ /**
2099
+ * Cross-platform helpers for user-owned option catalogs in CMS styles.
2100
+ *
2101
+ * The selected data row stores only stable option codes; labels are resolved
2102
+ * per language from translatable style config fields.
2103
+ */
2104
+ interface IOptionCatalogEntry {
2105
+ value: string;
2106
+ sort?: number;
2107
+ disabled?: boolean;
2108
+ meta?: Record<string, unknown>;
2109
+ /**
2110
+ * Compatibility-only label carried by legacy `{ value, text|label }`
2111
+ * catalogs. New catalogs keep labels in the translatable `option_labels`
2112
+ * field instead.
2113
+ */
2114
+ legacyLabel?: string;
2115
+ }
2116
+ interface IOptionLabelMap {
2117
+ [code: string]: string;
2118
+ }
2119
+ interface IResolvedOption {
2120
+ value: string;
2121
+ label: string;
2122
+ sort?: number;
2123
+ disabled?: boolean;
2124
+ meta?: Record<string, unknown>;
2125
+ }
2126
+ interface IOptionStyleConfig {
2127
+ catalogField: 'options' | 'radio_options' | 'combobox_options' | 'segmented_control_data';
2128
+ multipleField?: 'is_multiple' | 'web_combobox_multi_select';
2129
+ }
2130
+ /**
2131
+ * Option-bearing core styles and the fields that define their catalogs.
2132
+ * Boolean `checkbox` is intentionally absent because it is not an enum group.
2133
+ */
2134
+ declare const OPTION_STYLE_CONFIGS: {
2135
+ readonly select: {
2136
+ readonly catalogField: "options";
2137
+ readonly multipleField: "is_multiple";
2138
+ };
2139
+ readonly radio: {
2140
+ readonly catalogField: "radio_options";
2141
+ };
2142
+ readonly combobox: {
2143
+ readonly catalogField: "combobox_options";
2144
+ readonly multipleField: "web_combobox_multi_select";
2145
+ };
2146
+ readonly 'segmented-control': {
2147
+ readonly catalogField: "segmented_control_data";
2148
+ };
2149
+ };
2150
+ type TOptionStyleName = keyof typeof OPTION_STYLE_CONFIGS;
2151
+ /**
2152
+ * Parse option catalog from style field content.
2153
+ *
2154
+ * Supports both current legacy shape (`[{ value, text|label }]`) and the new
2155
+ * language-neutral base shape (`[{ value, sort, disabled, meta }]`).
2156
+ */
2157
+ declare function parseOptionCatalog(raw: unknown): IOptionCatalogEntry[];
2158
+ /**
2159
+ * Parse per-language labels map (`code -> label`) from a translatable style
2160
+ * field value.
2161
+ */
2162
+ declare function parseOptionLabels(raw: unknown): IOptionLabelMap;
2163
+ declare function resolveOptionLabel(code: string | null | undefined, labels: IOptionLabelMap, fallbackLabels?: IOptionLabelMap, legacyLabel?: string): string;
2164
+ declare function resolveOptions(catalogRaw: unknown, labelsRaw: unknown, fallbackLabelsRaw?: unknown): IResolvedOption[];
2165
+ declare function resolveOptionCodesLabels(codes: string[], labels: IOptionLabelMap, fallbackLabels?: IOptionLabelMap): string[];
2166
+ /** Normalize a stored single value, comma-separated multi value, or array. */
2167
+ declare function parseOptionCodes(value: unknown): string[];
2168
+ declare function resolveOptionValueLabels(value: unknown, labelsRaw: unknown, fallbackLabelsRaw?: unknown): string[];
2169
+
2170
+ /**
2171
+ * entry-table column catalog + per-language header labels (select-style split).
2172
+ */
2173
+ interface IFieldsMapStyleConfig {
2174
+ catalogField: 'fields_map';
2175
+ labelsField: 'fields_map_labels';
2176
+ }
2177
+ declare const FIELDS_MAP_STYLE_CONFIG: IFieldsMapStyleConfig;
2178
+ /** Parse ordered field_key catalog from property `fields_map`. */
2179
+ declare function parseFieldsMapCatalog(raw: unknown): string[];
2180
+ declare function parseFieldsMapLabels(raw: unknown): Record<string, string>;
2181
+ declare function resolveFieldsMapLabel(fieldKey: string, labels: Record<string, string>, fallbackLabels?: Record<string, string>): string;
2182
+ declare function serializeFieldsMapCatalog(fieldKeys: string[]): string;
2183
+ declare function serializeFieldsMapLabels(labels: Record<string, string>): string;
2184
+
2038
2185
  /**
2039
2186
  * Global web header presentation presets (menu-builder `web_header` menu).
2040
2187
  */
@@ -2048,11 +2195,22 @@ interface IWebHeaderPresetOption {
2048
2195
  }
2049
2196
  declare const WEB_HEADER_PRESET_OPTIONS: readonly IWebHeaderPresetOption[];
2050
2197
  declare function isWebHeaderPreset(value: unknown): value is TWebHeaderPreset;
2198
+ /** True for presets that render the two-row (top layer + main layer) header. */
2199
+ declare function isDoubleWebHeaderPreset(value: unknown): boolean;
2051
2200
  declare function resolveWebHeaderPreset(value: unknown, fallback?: TWebHeaderPreset): TWebHeaderPreset;
2052
2201
 
2053
2202
  type TNavigationMenuKey = 'web_header' | 'web_footer' | 'mobile_drawer' | 'mobile_bottom_tabs';
2054
2203
  type TNavigationMenuItemType = 'page' | 'external_url' | 'group';
2055
- type TNavigationChildSource = 'manual' | 'page_children' | 'manual_plus_suggestions';
2204
+ /** Header row assignment for `web_header` root items (`null` = main row). */
2205
+ type TNavigationHeaderLayer = 'top';
2206
+ /**
2207
+ * How a web page presents its menu branch (children/siblings):
2208
+ * `sidebar` = left sidebar + prev/next pager, `pills` = compact pill strip,
2209
+ * `none` = only the page content. Menu-level default (NULL resolves to
2210
+ * `sidebar`), overridable per parent item. Mobile menus have native
2211
+ * presentation and always carry `null`.
2212
+ */
2213
+ type TNavigationChildrenNavMode = 'sidebar' | 'pills' | 'none';
2056
2214
  type TNavigationSearchMode = 'off' | 'menu_pages' | 'searchable_pages' | 'content_index';
2057
2215
  type TNavigationStartMode = 'fixed_page' | 'last_visited_then_fixed_page';
2058
2216
  type TNavigationMobileStartSource = 'same_as_web' | 'custom_mobile_pages';
@@ -2061,34 +2219,47 @@ interface INavigationResolvedPageRef {
2061
2219
  keyword: string;
2062
2220
  url: string | null;
2063
2221
  title: string | null;
2064
- icon?: string | null;
2065
- mobile_icon?: string | null;
2066
2222
  has_content?: boolean;
2067
2223
  section_count?: number;
2068
2224
  }
2225
+ /**
2226
+ * Resolved public menu item (`GET /navigation`). Strict contract: every key is
2227
+ * always present; absence of a value is expressed as `null`, never a missing key.
2228
+ */
2069
2229
  interface INavigationMenuItem {
2070
- id: number | string;
2230
+ id: number;
2071
2231
  item_type: TNavigationMenuItemType;
2072
2232
  label: string;
2073
- description?: string | null;
2074
- aria_label?: string | null;
2075
- icon?: string | null;
2233
+ description: string | null;
2234
+ aria_label: string | null;
2235
+ icon: string | null;
2236
+ mobile_icon: string | null;
2076
2237
  position: number;
2077
- external_url?: string | null;
2078
- page?: INavigationResolvedPageRef | null;
2079
- is_virtual?: boolean;
2080
- is_active?: boolean;
2081
- child_source?: TNavigationChildSource;
2082
- children?: INavigationMenuItem[];
2238
+ /** Only meaningful on `web_header` root items; `null` everywhere else. */
2239
+ layer: TNavigationHeaderLayer | null;
2240
+ /** Per-parent-item override of the menu's `children_nav` default (web menus only). */
2241
+ children_nav: TNavigationChildrenNavMode | null;
2242
+ /** Per-parent-item override of the menu's `show_pager` default; `null` = inherit. */
2243
+ show_pager?: boolean | null;
2244
+ external_url: string | null;
2245
+ page: INavigationResolvedPageRef | null;
2246
+ is_active: boolean;
2247
+ children: INavigationMenuItem[];
2083
2248
  }
2084
2249
  interface INavigationMenu {
2085
2250
  key: TNavigationMenuKey;
2086
2251
  platform: 'web' | 'mobile';
2087
2252
  surface: 'header' | 'footer' | 'drawer' | 'bottom_tabs';
2088
- preset?: TWebHeaderPreset | string | null;
2089
- max_depth?: number | null;
2090
- item_limit?: number | null;
2091
- config?: Record<string, unknown> | null;
2253
+ /** Header presets for `web_header`, footer presets for `web_footer`, `null` for mobile menus. */
2254
+ preset: TWebHeaderPreset | TWebFooterPreset | null;
2255
+ max_depth: number | null;
2256
+ item_limit: number | null;
2257
+ /** Resolved branch presentation default; `sidebar`/`pills`/`none` on web menus, `null` on mobile menus. */
2258
+ children_nav: TNavigationChildrenNavMode | null;
2259
+ /** Breadcrumb trail above nested web pages; always `false` on mobile menus. */
2260
+ show_breadcrumbs: boolean;
2261
+ /** Prev/next pager on nested web pages; always `false` on mobile menus. */
2262
+ show_pager?: boolean;
2092
2263
  items: INavigationMenuItem[];
2093
2264
  }
2094
2265
  interface INavigationStartupConfig {
@@ -2109,12 +2280,175 @@ interface INavigationSearchConfig {
2109
2280
  default_visibility: string;
2110
2281
  field_policy: string;
2111
2282
  }
2283
+ /** Brand block size step; maps to logo heights 24/32/44/56px on web. */
2284
+ type TNavigationBrandingSize = 'sm' | 'md' | 'lg' | 'xl';
2285
+ /** Brand block layout: image + site name, image alone, or text alone. */
2286
+ type TNavigationBrandingVariant = 'logo-and-name' | 'logo-only' | 'name-only';
2287
+ /**
2288
+ * Global branding block shared by the web header and the mobile drawer:
2289
+ * `logo_url` = public path of the logo asset (null = text fallback),
2290
+ * `logo_alt` = accessible alt / brand text, `link_url` = logo click target
2291
+ * (null = home), `logo_size` + `logo_variant` = presentation options
2292
+ * (default `md` / `logo-and-name` when omitted by older backends).
2293
+ */
2294
+ interface INavigationBranding {
2295
+ logo_url: string | null;
2296
+ logo_alt: string | null;
2297
+ link_url: string | null;
2298
+ logo_size?: TNavigationBrandingSize;
2299
+ logo_variant?: TNavigationBrandingVariant;
2300
+ }
2301
+ /** Logo pixel heights per brand size step (shared by web header + mobile drawer). */
2302
+ declare const NAVIGATION_BRANDING_LOGO_HEIGHTS: Record<TNavigationBrandingSize, number>;
2303
+ /**
2304
+ * Resolve the branding presentation with cross-platform defaults: older
2305
+ * backends omit `logo_size` / `logo_variant`, and a missing logo image
2306
+ * degrades `logo-and-name` / `logo-only` to the text fallback.
2307
+ */
2308
+ declare function resolveBrandingPresentation(branding?: INavigationBranding | null): {
2309
+ size: TNavigationBrandingSize;
2310
+ variant: TNavigationBrandingVariant;
2311
+ logoHeight: number;
2312
+ showLogo: boolean;
2313
+ showName: boolean;
2314
+ };
2112
2315
  interface INavigationPayload {
2113
2316
  menus: Record<TNavigationMenuKey, INavigationMenu>;
2114
2317
  startup: INavigationStartupConfig;
2115
2318
  search: INavigationSearchConfig;
2319
+ branding?: INavigationBranding;
2116
2320
  }
2117
2321
 
2322
+ /**
2323
+ * Global web footer presentation presets (menu-builder `web_footer` menu).
2324
+ *
2325
+ * Footer layout uses the same preset mechanism as the web header: the value is
2326
+ * stored on `navigation_menus.id_preset` and switching presets never mutates
2327
+ * menu items — `inline` flattens groups at render time only, so switching back
2328
+ * to `columns` restores the exact same groups.
2329
+ */
2330
+
2331
+ type TWebFooterPreset = 'columns' | 'inline';
2332
+ declare const WEB_FOOTER_PRESET_VALUES: readonly TWebFooterPreset[];
2333
+ declare const DEFAULT_WEB_FOOTER_PRESET: TWebFooterPreset;
2334
+ interface IWebFooterPresetOption {
2335
+ value: TWebFooterPreset;
2336
+ label: string;
2337
+ description: string;
2338
+ }
2339
+ declare const WEB_FOOTER_PRESET_OPTIONS: readonly IWebFooterPresetOption[];
2340
+ declare function isWebFooterPreset(value: unknown): value is TWebFooterPreset;
2341
+ declare function resolveWebFooterPreset(value: unknown, fallback?: TWebFooterPreset): TWebFooterPreset;
2342
+ /**
2343
+ * Flatten a footer tree for the `inline` preset: active page/external links are
2344
+ * kept in order, group children are promoted in place of their heading, and
2345
+ * inactive items or empty groups are dropped. Data is never mutated.
2346
+ */
2347
+ declare function flattenFooterItems(items: INavigationMenuItem[]): INavigationMenuItem[];
2348
+ /**
2349
+ * Footer columns for the `columns` preset: top-level groups that contain at
2350
+ * least one renderable link. Standalone (non-group) top-level links are not
2351
+ * columns — render them separately via {@link footerStandaloneItems}.
2352
+ */
2353
+ declare function footerColumnItems(items: INavigationMenuItem[]): INavigationMenuItem[];
2354
+ /** Active top-level non-group links (rendered as a trailing meta row in `columns` mode). */
2355
+ declare function footerStandaloneItems(items: INavigationMenuItem[]): INavigationMenuItem[];
2356
+ /** Renderable links inside one footer column/group. */
2357
+ declare function footerGroupLinks(group: INavigationMenuItem): INavigationMenuItem[];
2358
+
2359
+ /**
2360
+ * Web header layer helpers for double-header presets.
2361
+ *
2362
+ * `web_header` root items carry `layer: 'top' | null` (`null` = main row).
2363
+ * Double presets render two rows; single presets ignore the layer and merge
2364
+ * every root item into one row. Layer assignments are data, never destroyed by
2365
+ * switching presets — switching back to a double preset restores the split.
2366
+ */
2367
+
2368
+ declare const NAVIGATION_HEADER_LAYER_TOP: TNavigationHeaderLayer;
2369
+ interface IHeaderLayerSplit {
2370
+ /** Flat links for the top utility row (double presets only). */
2371
+ top: INavigationMenuItem[];
2372
+ /** Main navigation row items (preset-specific children rendering). */
2373
+ main: INavigationMenuItem[];
2374
+ }
2375
+ /**
2376
+ * Split root header items into top and main rows for double presets.
2377
+ * Top-row items are rendered as flat links; their children are ignored by design.
2378
+ */
2379
+ declare function splitHeaderLayers(items: INavigationMenuItem[]): IHeaderLayerSplit;
2380
+ /**
2381
+ * Merge root header items into one ordered row for single-layer presets:
2382
+ * main-row items first (position order), then top-row items appended
2383
+ * (position order). Deterministic and non-destructive — `layer` values stay
2384
+ * on the items so switching back to a double preset restores the split.
2385
+ */
2386
+ declare function mergeHeaderLayers(items: INavigationMenuItem[]): INavigationMenuItem[];
2387
+
2388
+ /**
2389
+ * `selfhelp/navigation-bundle` v2.0 — the only supported navigation bundle
2390
+ * schema. Bundles are an authoring/transfer format: optional keys mean "not
2391
+ * set" (unlike the strict runtime payload where every key is present).
2392
+ *
2393
+ * v2.0 replaces v1.0 entirely: menu `config` is gone (footer layout is a
2394
+ * preset), items carry `layer`, and translations use `aria_label` (the legacy
2395
+ * `n` key is not accepted). Imports reject any other version.
2396
+ */
2397
+
2398
+ declare const NAVIGATION_BUNDLE_FORMAT = "selfhelp/navigation-bundle";
2399
+ declare const NAVIGATION_BUNDLE_VERSION = "2.0";
2400
+ interface INavigationBundleItemTranslation {
2401
+ locale: string;
2402
+ label: string;
2403
+ description?: string | null;
2404
+ aria_label?: string | null;
2405
+ }
2406
+ interface INavigationBundleItem {
2407
+ /** Stable in-bundle reference used by children via `parent_ref`. */
2408
+ ref: string;
2409
+ parent_ref: string | null;
2410
+ item_type: TNavigationMenuItemType;
2411
+ position: number;
2412
+ is_active?: boolean;
2413
+ /** Top header row assignment (`web_header` root items only). */
2414
+ layer?: TNavigationHeaderLayer | null;
2415
+ /** Page items: target page keyword (resolved on import). */
2416
+ page_keyword?: string | null;
2417
+ /** External items: absolute URL. */
2418
+ external_url?: string | null;
2419
+ icon?: string | null;
2420
+ mobile_icon?: string | null;
2421
+ /** Default-language label cache for group/external items. */
2422
+ label?: string | null;
2423
+ translations?: INavigationBundleItemTranslation[];
2424
+ }
2425
+ interface INavigationBundleMenu {
2426
+ preset?: string | null;
2427
+ max_depth?: number | null;
2428
+ item_limit?: number | null;
2429
+ items: INavigationBundleItem[];
2430
+ }
2431
+ type TNavigationBundleExportMode = 'full_snapshot' | 'branch';
2432
+ interface INavigationBundleImportHints {
2433
+ default_keyword_prefix?: string;
2434
+ default_route_prefix?: string;
2435
+ }
2436
+ interface INavigationBundle {
2437
+ format: typeof NAVIGATION_BUNDLE_FORMAT;
2438
+ version: string;
2439
+ title?: string;
2440
+ description?: string;
2441
+ min_core_version?: string;
2442
+ exported_at?: string;
2443
+ core_version?: string;
2444
+ export_mode?: TNavigationBundleExportMode;
2445
+ import_hints?: INavigationBundleImportHints;
2446
+ menus: Partial<Record<TNavigationMenuKey, INavigationBundleMenu>>;
2447
+ /** Optional embedded `selfhelp/page-bundle` pages payload. */
2448
+ pages?: unknown[];
2449
+ }
2450
+ declare function isNavigationBundleVersionSupported(version: unknown): boolean;
2451
+
2118
2452
  declare function collectPageIdsFromMenuItems(items: INavigationMenuItem[]): Set<number>;
2119
2453
  declare function isPageInMenuTree(items: INavigationMenuItem[], pageId: number): boolean;
2120
2454
  declare function isPageInResolvedMenus(menus: Partial<Record<TNavigationMenuKey, INavigationMenu>>, menuKeys: TNavigationMenuKey[], pageId: number): boolean;
@@ -2141,6 +2475,51 @@ interface IBranchNavSegment {
2141
2475
  declare function resolveBranchNavGroup(payload: INavigationPayload, currentPageId: number, menuKeys: Array<keyof INavigationPayload['menus']>): IBranchNavSegment[] | null;
2142
2476
  declare function resolveMobileSegmentGroup(payload: INavigationPayload, currentPageId: number): IBranchNavSegment[] | null;
2143
2477
  declare function resolveWebBranchNavGroup(payload: INavigationPayload, currentPageId: number): IBranchNavSegment[] | null;
2478
+ /** One breadcrumb step; group items produce unlinked crumbs (`pageId === null`). */
2479
+ interface IBreadcrumbEntry {
2480
+ label: string;
2481
+ pageId: number | null;
2482
+ keyword: string | null;
2483
+ url: string | null;
2484
+ }
2485
+ /**
2486
+ * Everything a web renderer needs to present the branch of the current page:
2487
+ * resolved presentation mode, the sidebar group, breadcrumbs, and the
2488
+ * prev/next pager. `null` when the page is a top-level leaf (no branch UI).
2489
+ */
2490
+ interface IBranchNavContext {
2491
+ /** `sidebar` | `pills` | `none` — parent-item override, else menu default, else `sidebar`. */
2492
+ mode: TNavigationChildrenNavMode;
2493
+ /** Menu-level toggle for the breadcrumb trail. */
2494
+ showBreadcrumbs: boolean;
2495
+ /** Prev/next pager — parent-item override, else menu default, else on. */
2496
+ showPager: boolean;
2497
+ /** Label of the branch parent (page or group), used as the sidebar heading. */
2498
+ heading: string | null;
2499
+ /** Branch parent as a navigable segment when the parent is a page. */
2500
+ parent: IBranchNavSegment | null;
2501
+ /** Ordered current-level group: children of the branch parent. */
2502
+ segments: IBranchNavSegment[];
2503
+ /** Menu path root → current page (current page is the last entry). */
2504
+ breadcrumbs: IBreadcrumbEntry[];
2505
+ /** Neighbours of the current page inside `segments`. */
2506
+ pager: {
2507
+ prev: IBranchNavSegment | null;
2508
+ next: IBranchNavSegment | null;
2509
+ };
2510
+ }
2511
+ /**
2512
+ * Resolve the full branch-navigation context of a web page: which presentation
2513
+ * to use (menu default + per-parent override), the sidebar group, breadcrumbs,
2514
+ * and prev/next neighbours.
2515
+ *
2516
+ * - Page with menu-visible children → the page is the branch parent, its
2517
+ * children are the group (no pager: the parent is the overview).
2518
+ * - Nested page → the parent item owns the branch, the siblings are the group,
2519
+ * the pager walks the group.
2520
+ * - Top-level leaf → `null` (no generated branch UI).
2521
+ */
2522
+ declare function resolveWebBranchNavContext(payload: INavigationPayload, currentPageId: number): IBranchNavContext | null;
2144
2523
  type TMobilePagePresentation = 'route' | 'modal';
2145
2524
  declare function resolveMobilePagePresentation(payload: INavigationPayload, pageId: number): TMobilePagePresentation;
2146
2525
  declare function isOnAnyMobileMenuFromPayload(payload: INavigationPayload, pageId: number): boolean;
@@ -2170,6 +2549,12 @@ declare function getNavigationItemKeyword(item: INavigationMenuItem): string | n
2170
2549
  * Wave 1 uses keyword-based routes (`[keyword].tsx`), not file `[...slug]`
2171
2550
  * segments. Nested public URLs (`/parent/child`) still navigate by keyword.
2172
2551
  */
2552
+ /**
2553
+ * Substitute `{param}` placeholders in a CMS page URL template using route
2554
+ * params (snake_case keys). Returns null when the template or params are
2555
+ * incomplete.
2556
+ */
2557
+ declare function buildPublicPathFromRoute(urlTemplate: string | null | undefined, routeParams: Record<string, string | undefined>): string | null;
2173
2558
  declare function pageUrlToMobileRoute(url: string | null | undefined, keyword: string): string;
2174
2559
 
2175
2560
  /**
@@ -2242,6 +2627,28 @@ declare function resolveMenuMaxDepth(maxDepth: number | null | undefined): numbe
2242
2627
  */
2243
2628
  declare function clampMenuItemsAtDepth(items: INavigationMenuItem[], maxDepth: number | null, depth?: number): INavigationMenuItem[];
2244
2629
 
2630
+ /**
2631
+ * Single active-state/active-trail implementation for every menu renderer:
2632
+ * web burger drawer, mobile drawer, and mobile bottom tabs all resolve
2633
+ * "is this item (or one of its descendants) the current page?" here.
2634
+ */
2635
+
2636
+ /** Expo Router href for a resolved menu item (mobile keyword routes). */
2637
+ declare function getNavigationItemMobileHref(item: INavigationMenuItem): string;
2638
+ /** Web pathname match: exact or a nested path under the item href. */
2639
+ declare function matchesWebPath(href: string, pathname: string): boolean;
2640
+ /** Mobile pathname match: exact, `/index` root aliases, or nested path. */
2641
+ declare function matchesMobilePath(href: string, pathname: string): boolean;
2642
+ /** True when the item or any descendant matches the current web pathname. */
2643
+ declare function isMenuItemActiveOnWeb(item: INavigationMenuItem, pathname: string): boolean;
2644
+ /** True when the item or any descendant matches the current mobile pathname. */
2645
+ declare function isMenuItemActiveOnMobile(item: INavigationMenuItem, pathname: string): boolean;
2646
+ /**
2647
+ * Ids of every item whose subtree contains the active page — the set of
2648
+ * parents a collapsible drawer should auto-expand for the current route.
2649
+ */
2650
+ declare function expandedIdsForActiveTrail(items: INavigationMenuItem[], pathname: string, platform: 'web' | 'mobile'): Set<number>;
2651
+
2245
2652
  /**
2246
2653
  * Parse the unified `spacing` field. The CMS
2247
2654
  * stores this as a JSON string with optional keys for each side:
@@ -2306,4 +2713,4 @@ declare function transformPageData(apiPage: IRawPage): IPageItem;
2306
2713
  */
2307
2714
  declare function transformPagesData(pages: IRawPage[] | null | undefined): IPageItem[];
2308
2715
 
2309
- export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, type BackupRetentionPolicy, type BackupSchedulePolicy, type BundledPluginRef, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, DEFAULT_MOBILE_ICON, DEFAULT_WEB_HEADER_PRESET, type DatabaseMigrationMetadata, ENDPOINTS, type FrontendRelease, HEADER_CLIENT_TYPE, type IApiError, type IApiMeta, type IAssetSource, type IBaseApiResponse, type IBasePageInfo, type IBasePageSection, type IBranchNavSegment, type IClassPattern, type IClassRemap, type ICompatibilityError, type IConditionContext, IContentField, type IEvaluatedCondition, type IForgotPasswordRequest, type IForgotPasswordResponse, type IFormDeleteRequest, type IFormDeleteResponse, type IFormResultLegacyFields, type IFormSubmitData, type IFormSubmitRequest, type IFormSubmitResponse, type IFormUpdateData, type IFormUpdateRequest, type IFormUpdateResponse, type IFrontendUpdatePreflight, type IFrontendUpdatePreflightResponse, type IFrontendUpdateReleases, type IFrontendUpdateReleasesResponse, type IFrontendUpdateRequest, type IFrontendUpdateRequestResponse, type IGetPageResponse, type IGetPagesResponse, type IInlineNode, type IJwtPayload, type ILanguage, type ILanguageItem, type ILanguagePreference, type ILanguagePreferenceUpdateResponse, type ILanguagesResponse, type ILoginRequest, type ILoginSuccessData, type ILoginSuccessResponse, type ILogoutSuccessResponse, type IMaintenanceSetRequest, type IMenuSearchHit, type IMeta, type IMobileAdapterBaseProps, type IMobileButtonProps, type IMobileCardProps, type IMobileCheckboxProps, type IMobileContainerProps, type IMobileIconEntry, type IMobileInputProps, type IMobileModalProps, type IMobilePreviewExchangeData, type IMobilePreviewExchangeRequest, type IMobilePreviewExchangeResponse, type IMobilePreviewSessionData, type IMobilePreviewSessionRequest, type IMobilePreviewSessionResponse, type IMobilePreviewUpdatePreflight, type IMobilePreviewUpdatePreflightResponse, type IMobilePreviewUpdateReleases, type IMobilePreviewUpdateReleasesResponse, type IMobilePreviewUpdateRequest, type IMobilePreviewUpdateRequestResponse, type IMobileSelectOption, type IMobileSelectProps, type IMobileSwitchProps, type IMobileTextProps, type IMobileTextareaProps, type IMobileUiAdapters, type INavigationMenu, type INavigationMenuItem, type INavigationPayload, type INavigationResolvedPageRef, type INavigationSearchConfig, type INavigationStartupConfig, type IPageAccessTypeInfo, type IPageContent, type IPageField, type IPageFieldTranslation, type IPageFieldsData, type IPageItem, type IPageRoute, type IPageSectionWithFields, type IPageSectionsData, type IPreviewNavigateCommand, type IPreviewNavigatedMessage, type IPreviewPreferences, type IPreviewPreferencesChangedMessage, type IPreviewReadyMessage, type IPreviewSetPreferencesCommand, type IRefreshRequest, type IRefreshSuccessResponse, type IResetPasswordRequest, type IResetPasswordResponse, type IResolvePageResponse, type ISpacingValue, type ISystemAdvisories, type ISystemAdvisoriesResponse, type ISystemAdvisory, type ISystemAdvisoryAffected, type ISystemHealth, type ISystemHealthComponent, type ISystemHealthResponse, type ISystemInstalledPlugin, type ISystemMaintenance, type ISystemMaintenanceResponse, type ISystemVersion, type ISystemVersionResponse, type ITwoFactorRequiredData, type ITwoFactorRequiredResponse, type ITwoFactorVerifyRequest, type ITwoFactorVerifySuccessResponse, type IUpdatePreflight, type IUpdatePreflightCheck, type IUpdatePreflightOption, type IUpdatePreflightResponse, type IUpdateRelease, type IUpdateReleases, type IUpdateReleasesResponse, type IUpdateRequest, type IUpdateRequestResponse, type IUpdateStatus, type IUpdateStatusManager, type IUpdateStatusResponse, type IUpdateStep, type IUserData, type IUserDataResponse, type IWebHeaderPresetOption, type ImageRef, type InstalledPlugin, type InstanceImages, type InstanceLock, type InstanceManifest, type InstanceMode, type InstanceResourceConfig, type InstanceRouting, type InstanceStatus, type InstanceVersions, type InventoryInstanceEntry, LITERAL_CLASSES, type LockPluginEntry, type LockServiceEntry, MOBILE_ICON_NAMES, MOBILE_ICON_SET, MOBILE_PREVIEW_ENDPOINTS, type MobilePreviewRelease, PERMISSIONS, PREVIEW_BRIDGE_MESSAGE, PREVIEW_PARENT_ORIGIN_PARAM, PREVIEW_SHELL_PARAM, type PluginRelease, type PreflightCheck, type PreflightOption, type PreflightStatus, RELEASE_CHANNELS, type RegistryIndex, type RegistryReleaseRef, type ReleaseChannel, type RuntimeServicePolicy, type RuntimeServiceRange, SIZE_VALUES, SPACING_VALUES, SYSTEM_ENDPOINTS, type SchedulerRelease, type SecurityAdvisory, type ServerInventory, type ServiceBackendCompatibility, type SignatureBlock, type SupportBundleMeta, type TCalcedValues, type TClassDecision, type TClientType, THeroUiButtonVariant, THeroUiSize, TMobileButtonFeedback, TMobileFieldVariant, type TMobilePagePresentation, TMobileSelectPresentation, type TNavigationChildSource, type TNavigationMenuItemType, type TNavigationMenuKey, type TNavigationMobileStartSource, type TNavigationSearchMode, type TNavigationStartMode, type TPermission, type TPlatform, type TPreviewBridgeMessage, type TPreviewBridgeMessageType, type TPreviewColorScheme, type TPreviewFrameSource, TStyleName, type TSystemAdvisorySeverity, type TSystemComponentStatus, type TSystemDeployment, type TSystemHealthOverall, type TUpdateCheckSeverity, type TUpdateKind, type TUpdateOperationStatus, type TUpdatePreflightStatus, type TWebHeaderPreset, type TrustLevel, type TrustedKey, type TrustedKeysFile, type UpdatePreflightResult, WEB_HEADER_PRESET_OPTIONS, WEB_HEADER_PRESET_VALUES, type WorkerRelease, arePreviewPreferencesEqual, buildConditionContext, clampMenuItemsAtDepth, classifyClass, classifyClassString, collectPageIdsFromMenuItems, evaluateCondition, findMenuItemByPageId, findNearestBottomTabMenuItemForPage, findPageRefInNavigationPayload, findRemap, flattenMenuItems, flattenNavigationMenuItems, getNavigationItemAriaLabel, getNavigationItemHref, getNavigationItemKeyword, getNavigationItemLabel, hasInlineFormatting, isBottomTabMenuItemActive, isMobileIconName, isOnAnyMobileMenu, isOnAnyMobileMenuFromPayload, isPageInMenuTree, isPageInResolvedMenus, isPageOnAnyMenu, isPageOnMobileMenu, isPageOnWebMenu, isPreviewBridgeMessage, isWebHeaderPreset, pageUrlToMobileRoute, parseInlineRich, parseSpacing, previewKeywordFromPath, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, resolveBranchNavGroup, resolveHolderRedirectPath, resolveMenuMaxDepth, resolveMobileIcon, resolveMobilePagePresentation, resolveMobileSegmentGroup, resolveMobileStartupKeyword, resolveMobileStartupRoute, resolveWebBranchNavGroup, resolveWebHeaderPreset, resolveWebStartupPath, searchMenuPagesInPayload, spacingToClasses, stripHtmlToText, transformPageData, transformPagesData };
2716
+ export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, type BackupRetentionPolicy, type BackupSchedulePolicy, type BundledPluginRef, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, CMS_APP_PRIMARY_ROLES, CMS_APP_ROLES, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, DEFAULT_MOBILE_ICON, DEFAULT_WEB_FOOTER_PRESET, DEFAULT_WEB_HEADER_PRESET, type DatabaseMigrationMetadata, ENDPOINTS, FIELDS_MAP_STYLE_CONFIG, type FrontendRelease, HEADER_CLIENT_TYPE, type IApiError, type IApiMeta, type IAssetSource, type IBaseApiResponse, type IBasePageInfo, type IBasePageSection, type IBranchNavContext, type IBranchNavSegment, type IBreadcrumbEntry, type IClassPattern, type IClassRemap, type ICmsApp, type ICmsAppAssignedPage, type ICmsAppDetail, type ICmsAppPage, type ICmsAppSummary, type ICompatibilityError, type IConditionContext, IContentField, type IEvaluatedCondition, type IFieldsMapStyleConfig, type IForgotPasswordRequest, type IForgotPasswordResponse, type IFormDeleteRequest, type IFormDeleteResponse, type IFormResultLegacyFields, type IFormSubmitData, type IFormSubmitRequest, type IFormSubmitResponse, type IFormUpdateData, type IFormUpdateRequest, type IFormUpdateResponse, type IFrontendUpdatePreflight, type IFrontendUpdatePreflightResponse, type IFrontendUpdateReleases, type IFrontendUpdateReleasesResponse, type IFrontendUpdateRequest, type IFrontendUpdateRequestResponse, type IGetPageResponse, type IGetPagesResponse, type IHeaderLayerSplit, type IInlineNode, type IJwtPayload, type ILanguage, type ILanguageItem, type ILanguagePreference, type ILanguagePreferenceUpdateResponse, type ILanguagesResponse, type ILoginRequest, type ILoginSuccessData, type ILoginSuccessResponse, type ILogoutSuccessResponse, type IMaintenanceSetRequest, type IMenuSearchHit, type IMeta, type IMobileAdapterBaseProps, type IMobileButtonProps, type IMobileCardProps, type IMobileCheckboxProps, type IMobileContainerProps, type IMobileIconEntry, type IMobileInputProps, type IMobileModalProps, type IMobilePreviewExchangeData, type IMobilePreviewExchangeRequest, type IMobilePreviewExchangeResponse, type IMobilePreviewSessionData, type IMobilePreviewSessionRequest, type IMobilePreviewSessionResponse, type IMobilePreviewUpdatePreflight, type IMobilePreviewUpdatePreflightResponse, type IMobilePreviewUpdateReleases, type IMobilePreviewUpdateReleasesResponse, type IMobilePreviewUpdateRequest, type IMobilePreviewUpdateRequestResponse, type IMobileSelectOption, type IMobileSelectProps, type IMobileSwitchProps, type IMobileTextProps, type IMobileTextareaProps, type IMobileUiAdapters, type INavigationBranding, type INavigationBundle, type INavigationBundleImportHints, type INavigationBundleItem, type INavigationBundleItemTranslation, type INavigationBundleMenu, type INavigationMenu, type INavigationMenuItem, type INavigationPayload, type INavigationResolvedPageRef, type INavigationSearchConfig, type INavigationStartupConfig, type IOptionCatalogEntry, type IOptionLabelMap, type IOptionStyleConfig, type IPageAccessTypeInfo, type IPageContent, type IPageField, type IPageFieldTranslation, type IPageFieldsData, type IPageItem, type IPageRoute, type IPageSectionWithFields, type IPageSectionsData, type IPreviewNavigateCommand, type IPreviewNavigatedMessage, type IPreviewPreferences, type IPreviewPreferencesChangedMessage, type IPreviewReadyMessage, type IPreviewSetPreferencesCommand, type IRefreshRequest, type IRefreshSuccessResponse, type IResetPasswordRequest, type IResetPasswordResponse, type IResolvePageResponse, type IResolvedOption, type ISpacingValue, type ISystemAdvisories, type ISystemAdvisoriesResponse, type ISystemAdvisory, type ISystemAdvisoryAffected, type ISystemHealth, type ISystemHealthComponent, type ISystemHealthResponse, type ISystemInstalledPlugin, type ISystemMaintenance, type ISystemMaintenanceResponse, type ISystemVersion, type ISystemVersionResponse, type ITwoFactorRequiredData, type ITwoFactorRequiredResponse, type ITwoFactorVerifyRequest, type ITwoFactorVerifySuccessResponse, type IUpdatePreflight, type IUpdatePreflightCheck, type IUpdatePreflightOption, type IUpdatePreflightResponse, type IUpdateRelease, type IUpdateReleases, type IUpdateReleasesResponse, type IUpdateRequest, type IUpdateRequestResponse, type IUpdateStatus, type IUpdateStatusManager, type IUpdateStatusResponse, type IUpdateStep, type IUserData, type IUserDataResponse, type IWebFooterPresetOption, type IWebHeaderPresetOption, type ImageRef, type InstalledPlugin, type InstanceImages, type InstanceLock, type InstanceManifest, type InstanceMode, type InstanceResourceConfig, type InstanceRouting, type InstanceStatus, type InstanceVersions, type InventoryInstanceEntry, LITERAL_CLASSES, type LockPluginEntry, type LockServiceEntry, MOBILE_ICON_NAMES, MOBILE_ICON_SET, MOBILE_PREVIEW_ENDPOINTS, type MobilePreviewRelease, NAVIGATION_BRANDING_LOGO_HEIGHTS, NAVIGATION_BUNDLE_FORMAT, NAVIGATION_BUNDLE_VERSION, NAVIGATION_HEADER_LAYER_TOP, OPTION_STYLE_CONFIGS, PERMISSIONS, PREVIEW_BRIDGE_MESSAGE, PREVIEW_PARENT_ORIGIN_PARAM, PREVIEW_SHELL_PARAM, type PluginRelease, type PreflightCheck, type PreflightOption, type PreflightStatus, RELEASE_CHANNELS, type RegistryIndex, type RegistryReleaseRef, type ReleaseChannel, type RuntimeServicePolicy, type RuntimeServiceRange, SIZE_VALUES, SPACING_VALUES, SYSTEM_ENDPOINTS, type SchedulerRelease, type SecurityAdvisory, type ServerInventory, type ServiceBackendCompatibility, type SignatureBlock, type SupportBundleMeta, type TCalcedValues, type TClassDecision, type TClientType, type TCmsAppRole, THeroUiButtonVariant, THeroUiSize, TMobileButtonFeedback, TMobileFieldVariant, type TMobilePagePresentation, TMobileSelectPresentation, type TNavigationBrandingSize, type TNavigationBrandingVariant, type TNavigationBundleExportMode, type TNavigationChildrenNavMode, type TNavigationHeaderLayer, type TNavigationMenuItemType, type TNavigationMenuKey, type TNavigationMobileStartSource, type TNavigationSearchMode, type TNavigationStartMode, type TOptionStyleName, type TPermission, type TPlatform, type TPreviewBridgeMessage, type TPreviewBridgeMessageType, type TPreviewColorScheme, type TPreviewFrameSource, TStyleName, type TSystemAdvisorySeverity, type TSystemComponentStatus, type TSystemDeployment, type TSystemHealthOverall, type TUpdateCheckSeverity, type TUpdateKind, type TUpdateOperationStatus, type TUpdatePreflightStatus, type TWebFooterPreset, type TWebHeaderPreset, type TrustLevel, type TrustedKey, type TrustedKeysFile, type UpdatePreflightResult, WEB_FOOTER_PRESET_OPTIONS, WEB_FOOTER_PRESET_VALUES, WEB_HEADER_PRESET_OPTIONS, WEB_HEADER_PRESET_VALUES, type WorkerRelease, arePreviewPreferencesEqual, buildConditionContext, buildPublicPathFromRoute, clampMenuItemsAtDepth, classifyClass, classifyClassString, collectPageIdsFromMenuItems, evaluateCondition, expandedIdsForActiveTrail, findMenuItemByPageId, findNearestBottomTabMenuItemForPage, findPageRefInNavigationPayload, findRemap, flattenFooterItems, flattenMenuItems, flattenNavigationMenuItems, footerColumnItems, footerGroupLinks, footerStandaloneItems, getNavigationItemAriaLabel, getNavigationItemHref, getNavigationItemKeyword, getNavigationItemLabel, getNavigationItemMobileHref, hasInlineFormatting, isBottomTabMenuItemActive, isDoubleWebHeaderPreset, isMenuItemActiveOnMobile, isMenuItemActiveOnWeb, isMobileIconName, isNavigationBundleVersionSupported, isOnAnyMobileMenu, isOnAnyMobileMenuFromPayload, isPageInMenuTree, isPageInResolvedMenus, isPageOnAnyMenu, isPageOnMobileMenu, isPageOnWebMenu, isPreviewBridgeMessage, isWebFooterPreset, isWebHeaderPreset, matchesMobilePath, matchesWebPath, mergeHeaderLayers, pageUrlToMobileRoute, parseFieldsMapCatalog, parseFieldsMapLabels, parseInlineRich, parseOptionCatalog, parseOptionCodes, parseOptionLabels, parseSpacing, previewKeywordFromPath, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, resolveBranchNavGroup, resolveBrandingPresentation, resolveFieldsMapLabel, resolveHolderRedirectPath, resolveMenuMaxDepth, resolveMobileIcon, resolveMobilePagePresentation, resolveMobileSegmentGroup, resolveMobileStartupKeyword, resolveMobileStartupRoute, resolveOptionCodesLabels, resolveOptionLabel, resolveOptionValueLabels, resolveOptions, resolveWebBranchNavContext, resolveWebBranchNavGroup, resolveWebFooterPreset, resolveWebHeaderPreset, resolveWebStartupPath, searchMenuPagesInPayload, serializeFieldsMapCatalog, serializeFieldsMapLabels, spacingToClasses, splitHeaderLayers, stripHtmlToText, transformPageData, transformPagesData };