@selfhelp/shared 1.22.0 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/dist/index.d.mts +11 -3
- package/dist/index.d.ts +11 -3
- package/dist/plugin-sdk/index.d.mts +1 -1
- package/dist/plugin-sdk/index.d.ts +1 -1
- package/dist/registry/index.d.mts +2 -2
- package/dist/registry/index.d.ts +2 -2
- package/dist/{styles.registry-C33VkcQA.d.ts → styles.registry-BBd9T2Ox.d.ts} +58 -5
- package/dist/{styles.registry-C0QZJl8m.d.mts → styles.registry-IjDTff8P.d.mts} +58 -5
- package/package.json +1 -1
- package/src/types/__tests__/version-about.test.ts +80 -0
- package/src/types/api/__tests__/system.test.ts +10 -0
- package/src/types/api/system.ts +9 -0
- package/src/types/styles/error.ts +54 -4
- package/src/types/styles/forms.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,32 @@ All notable changes to `@selfhelp/shared` will be documented in this file.
|
|
|
10
10
|
This project follows semantic versioning.
|
|
11
11
|
|
|
12
12
|
|
|
13
|
+
## v1.23.0
|
|
14
|
+
|
|
15
|
+
Additive "about the platform" contract (pairs with core `0.1.43`, frontend
|
|
16
|
+
`0.1.70`, mobile `0.1.34`). The payloads only gain keys; nothing is renamed or
|
|
17
|
+
removed. Code that builds `IVersionStyle` or `ISystemVersion` objects itself
|
|
18
|
+
(tests, mocks) must add the new keys, because the backend always sends them.
|
|
19
|
+
|
|
20
|
+
- `IAboutItem` (`{ name, version: string | null, license: string | null }`) and
|
|
21
|
+
`IPlatformAbout` (`{ detail, product, frameworks, plugins, libraries }`),
|
|
22
|
+
exported from the package root. `version` is `null` unless the caller may see
|
|
23
|
+
exact versions (`detail`, decided by the backend from `admin.system.read`).
|
|
24
|
+
- `IVersionStyle.about: IPlatformAbout` — the block the backend fills on every
|
|
25
|
+
`version` section after the page cache is read. `IVersionStyle` also gets the
|
|
26
|
+
translatable heading fields `title`, `label_frameworks`, `label_plugins`,
|
|
27
|
+
`label_libraries`, `label_web`, `label_app`, `label_filter` and
|
|
28
|
+
`label_no_match`. The old "candidate to be removed" comment is gone: the
|
|
29
|
+
`version` style is a both-platform style.
|
|
30
|
+
- `ISystemVersion.frameworks` and `ISystemVersion.libraries` (`IAboutItem[]`):
|
|
31
|
+
`GET /admin/system/version` now lists the server parts and the backend's
|
|
32
|
+
direct dependencies with exact versions.
|
|
33
|
+
|
|
34
|
+
## v1.22.1
|
|
35
|
+
|
|
36
|
+
- `IFileInputStyle.files_public?` — `'1'` makes the field's uploaded files
|
|
37
|
+
readable by anyone; off by default.
|
|
38
|
+
|
|
13
39
|
## v1.22.0
|
|
14
40
|
|
|
15
41
|
Additive auth rate-limit contract (pairs with the core login/2FA brute-force
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TStyleName, j as IContentField, k as
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY,
|
|
1
|
+
import { T as TStyleName, j as IContentField, k as IAboutItem, l as TMobileButtonFeedback, m as TMobileFieldVariant, n as TMobileSelectPresentation } from './styles.registry-IjDTff8P.mjs';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, o as IAccordionItemStyle, p as IAccordionStyle, q as IActionIconStyle, r as IAlertStyle, s as IAspectRatioStyle, t as IAudioStyle, u as IAvatarStyle, v as IBackgroundImageStyle, w as IBadgeStyle, x as IBaseStyle, y as IBlockquoteStyle, z as IBoxStyle, A as IButtonStyle, C as ICardSegmentStyle, D as ICardStyle, E as ICarouselStyle, F as ICenterStyle, G as ICheckboxStyle, H as IChipStyle, J as ICodeStyle, K as IColorInputStyle, L as IColorPickerStyle, M as IComboboxStyle, N as IContainerStyle, O as IDataContainerStyle, P as IDatePickerStyle, Q as IDividerStyle, R as IEntryListStyle, U as IEntryRecordDeleteStyle, V as IEntryRecordFormStyle, W as IEntryRecordStyle, X as IEntryTableEntry, Y as IEntryTableStyle, Z as IFieldsetStyle, $ as IFigureStyle, a0 as IFileInputStyle, a1 as IFlexStyle, a2 as IFormLogStyle, a3 as IFormRecordStyle, a4 as IFormStyle, a5 as IGridColumnStyle, a6 as IGridStyle, a7 as IGroupStyle, a8 as IHighlightStyle, a9 as IHtmlTagStyle, aa as IImageStyle, ab as IIndicatorStyle, ac as IInputStyle, ad as IKbdStyle, ae as ILinkStyle, af as IListItemStyle, ag as IListStyle, ah as ILoginStyle, ai as ILoopStyle, aj as IMissingStyle, ak as INoAccessStyle, al as INotFoundStyle, am as INotificationStyle, an as INumberInputStyle, ao as IPaperStyle, ap as IPlatformAbout, a as IPluginStyleRegistryEntry, aq as IProfileStyle, ar as IProgressRootStyle, as as IProgressSectionStyle, at as IProgressStyle, au as IRadioStyle, av as IRangeSliderStyle, aw as IRatingStyle, ax as IRefContainerStyle, ay as IRegisterStyle, az as IResetPasswordStyle, aA as IRichTextEditorStyle, aB as IScrollAreaStyle, aC as ISegmentedControlStyle, aD as ISelectStyle, aE as ISimpleGridStyle, aF as ISliderStyle, aG as ISpaceStyle, aH as ISpoilerStyle, aI as IStackStyle, I as IStyleRegistryEntry, aJ as IStyleWithSpacing, aK as ISwitchStyle, aL as ITabStyle, aM as ITabsStyle, aN as ITextInputStyle, aO as ITextStyle, aP as ITextareaStyle, aQ as IThemeIconStyle, aR as ITimelineItemStyle, aS as ITimelineStyle, aT as ITitleStyle, aU as ITwoFactorAuthStyle, aV as ITypographyStyle, aW as IUnknownStyle, aX as IValidateStyle, aY as IVersionStyle, aZ as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, a_ as TMantineAccordionChevronPosition, a$ as TMantineAccordionDisableChevronRotation, b0 as TMantineAccordionLoop, b1 as TMantineAccordionMultiple, b2 as TMantineAnchorUnderline, b3 as TMantineBorder, b4 as TMantineCardPadding, b5 as TMantineCardShadow, b6 as TMantineCols, b7 as TMantineDividerVariant, b8 as TMantineGap, b9 as TMantineGridOffset, ba as TMantineGridOrder, bb as TMantineHeight, bc as TMantineIconSize, bd as TMantineImageFit, be as TMantineLineClamp, bf as TMantineListCenter, bg as TMantineListStyleType, bh as TMantineListType, bi as TMantineListWithPadding, bj as TMantinePaperShadow, bk as TMantineProgressTransition, bl as TMantineScrollAreaSize, bm as TMantineScrollAreaType, bn as TMantineTextAlign, bo as TMantineTextDecoration, bp as TMantineTextFontStyle, bq as TMantineTextFontWeight, br as TMantineTextInherit, bs as TMantineTextInputVariant, bt as TMantineTextSpan, bu as TMantineTextTransform, bv as TMantineTextTruncate, bw as TMantineTextVariant, bx as TMantineTextareaAutosize, by as TMantineTextareaResize, bz as TMantineTextareaVariant, bA as TMantineTimelineAlign, bB as TMantineTitleLineClamp, bC as TMantineTitleTextWrap, bD as TMantineTranslatable, bE as TMantineUseInputWrapper, bF as TMantineWidth, bG as TSharedBorder, bH as TSharedCols, bI as TSharedDimension, bJ as TSharedDividerLabelPosition, bK as TSharedDividerVariant, bL as TSharedLabelPosition, bM 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-IjDTff8P.mjs';
|
|
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.mjs';
|
|
4
4
|
import { ReactNode, ComponentType } from 'react';
|
|
5
5
|
import { THeroUiButtonVariant, THeroUiSize } from './theme/index.mjs';
|
|
@@ -562,6 +562,14 @@ interface ISystemVersion {
|
|
|
562
562
|
safe_mode: boolean;
|
|
563
563
|
maintenance_mode: boolean;
|
|
564
564
|
installed_plugins: ISystemInstalledPlugin[];
|
|
565
|
+
/**
|
|
566
|
+
* Server-side parts (PHP, Symfony, MySQL, Redis) with their exact versions
|
|
567
|
+
* (`version` is `null` only when the server could not read it). The route
|
|
568
|
+
* already needs `admin.system.read`, so versions are always exact here.
|
|
569
|
+
*/
|
|
570
|
+
frameworks: IAboutItem[];
|
|
571
|
+
/** The backend's direct production dependencies with exact version and licence. */
|
|
572
|
+
libraries: IAboutItem[];
|
|
565
573
|
}
|
|
566
574
|
type ISystemVersionResponse = IBaseApiResponse<ISystemVersion>;
|
|
567
575
|
/** Overall verdict for the aggregated system health endpoint. */
|
|
@@ -2830,4 +2838,4 @@ declare function transformPageData(apiPage: IRawPage): IPageItem;
|
|
|
2830
2838
|
*/
|
|
2831
2839
|
declare function transformPagesData(pages: IRawPage[] | null | undefined): IPageItem[];
|
|
2832
2840
|
|
|
2833
|
-
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_RATE_LIMIT_MESSAGE, DEFAULT_WEB_FOOTER_PRESET, DEFAULT_WEB_HEADER_PRESET, type DatabaseMigrationMetadata, ENDPOINTS, FIELDS_MAP_STYLE_CONFIG, FORM_RECORD_PREFILL_SKIP_FIELDS, 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 IFormRecordPrefill, type IFormRecordPrefillChild, type IFormRecordPrefillSection, type IFormRecordPrefillTranslatedValue, 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 IPagesResolveParams, 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, type TFormRecordPrefillFieldValue, 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, buildPagesResolvePath, buildPagesResolveQuery, buildPagesResolveUrl, buildPublicPathFromRoute, clampMenuItemsAtDepth, classifyClass, classifyClassString, collectPageIdsFromMenuItems, evaluateCondition, expandedIdsForActiveTrail, findMenuItemByPageId, findNearestBottomTabMenuItemForPage, findPageRefInNavigationPayload, findRemap, flattenFooterItems, flattenFormRecordPrefillValues, flattenMenuItems, flattenNavigationMenuItems, footerColumnItems, footerGroupLinks, footerStandaloneItems, formatRateLimitMessage, getNavigationItemAriaLabel, getNavigationItemHref, getNavigationItemKeyword, getNavigationItemLabel, getNavigationItemMobileHref, getRateLimitRetryAfter, hasInlineFormatting, isBottomTabMenuItemActive, isDoubleWebHeaderPreset, isMenuItemActiveOnMobile, isMenuItemActiveOnWeb, isMobileIconName, isNavigationBundleVersionSupported, isOnAnyMobileMenu, isOnAnyMobileMenuFromPayload, isPageInMenuTree, isPageInResolvedMenus, isPageOnAnyMenu, isPageOnMobileMenu, isPageOnWebMenu, isPreviewBridgeMessage, isWebFooterPreset, isWebHeaderPreset, matchesMobilePath, matchesWebPath, mergeHeaderLayers, normalizePagesResolvePath, pageUrlToMobileRoute, parseFieldsMapCatalog, parseFieldsMapLabels, parseFormRecordPrefill, 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 };
|
|
2841
|
+
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_RATE_LIMIT_MESSAGE, DEFAULT_WEB_FOOTER_PRESET, DEFAULT_WEB_HEADER_PRESET, type DatabaseMigrationMetadata, ENDPOINTS, FIELDS_MAP_STYLE_CONFIG, FORM_RECORD_PREFILL_SKIP_FIELDS, type FrontendRelease, HEADER_CLIENT_TYPE, IAboutItem, 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 IFormRecordPrefill, type IFormRecordPrefillChild, type IFormRecordPrefillSection, type IFormRecordPrefillTranslatedValue, 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 IPagesResolveParams, 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, type TFormRecordPrefillFieldValue, 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, buildPagesResolvePath, buildPagesResolveQuery, buildPagesResolveUrl, buildPublicPathFromRoute, clampMenuItemsAtDepth, classifyClass, classifyClassString, collectPageIdsFromMenuItems, evaluateCondition, expandedIdsForActiveTrail, findMenuItemByPageId, findNearestBottomTabMenuItemForPage, findPageRefInNavigationPayload, findRemap, flattenFooterItems, flattenFormRecordPrefillValues, flattenMenuItems, flattenNavigationMenuItems, footerColumnItems, footerGroupLinks, footerStandaloneItems, formatRateLimitMessage, getNavigationItemAriaLabel, getNavigationItemHref, getNavigationItemKeyword, getNavigationItemLabel, getNavigationItemMobileHref, getRateLimitRetryAfter, hasInlineFormatting, isBottomTabMenuItemActive, isDoubleWebHeaderPreset, isMenuItemActiveOnMobile, isMenuItemActiveOnWeb, isMobileIconName, isNavigationBundleVersionSupported, isOnAnyMobileMenu, isOnAnyMobileMenuFromPayload, isPageInMenuTree, isPageInResolvedMenus, isPageOnAnyMenu, isPageOnMobileMenu, isPageOnWebMenu, isPreviewBridgeMessage, isWebFooterPreset, isWebHeaderPreset, matchesMobilePath, matchesWebPath, mergeHeaderLayers, normalizePagesResolvePath, pageUrlToMobileRoute, parseFieldsMapCatalog, parseFieldsMapLabels, parseFormRecordPrefill, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TStyleName, j as IContentField, k as
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY,
|
|
1
|
+
import { T as TStyleName, j as IContentField, k as IAboutItem, l as TMobileButtonFeedback, m as TMobileFieldVariant, n as TMobileSelectPresentation } from './styles.registry-BBd9T2Ox.js';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, o as IAccordionItemStyle, p as IAccordionStyle, q as IActionIconStyle, r as IAlertStyle, s as IAspectRatioStyle, t as IAudioStyle, u as IAvatarStyle, v as IBackgroundImageStyle, w as IBadgeStyle, x as IBaseStyle, y as IBlockquoteStyle, z as IBoxStyle, A as IButtonStyle, C as ICardSegmentStyle, D as ICardStyle, E as ICarouselStyle, F as ICenterStyle, G as ICheckboxStyle, H as IChipStyle, J as ICodeStyle, K as IColorInputStyle, L as IColorPickerStyle, M as IComboboxStyle, N as IContainerStyle, O as IDataContainerStyle, P as IDatePickerStyle, Q as IDividerStyle, R as IEntryListStyle, U as IEntryRecordDeleteStyle, V as IEntryRecordFormStyle, W as IEntryRecordStyle, X as IEntryTableEntry, Y as IEntryTableStyle, Z as IFieldsetStyle, $ as IFigureStyle, a0 as IFileInputStyle, a1 as IFlexStyle, a2 as IFormLogStyle, a3 as IFormRecordStyle, a4 as IFormStyle, a5 as IGridColumnStyle, a6 as IGridStyle, a7 as IGroupStyle, a8 as IHighlightStyle, a9 as IHtmlTagStyle, aa as IImageStyle, ab as IIndicatorStyle, ac as IInputStyle, ad as IKbdStyle, ae as ILinkStyle, af as IListItemStyle, ag as IListStyle, ah as ILoginStyle, ai as ILoopStyle, aj as IMissingStyle, ak as INoAccessStyle, al as INotFoundStyle, am as INotificationStyle, an as INumberInputStyle, ao as IPaperStyle, ap as IPlatformAbout, a as IPluginStyleRegistryEntry, aq as IProfileStyle, ar as IProgressRootStyle, as as IProgressSectionStyle, at as IProgressStyle, au as IRadioStyle, av as IRangeSliderStyle, aw as IRatingStyle, ax as IRefContainerStyle, ay as IRegisterStyle, az as IResetPasswordStyle, aA as IRichTextEditorStyle, aB as IScrollAreaStyle, aC as ISegmentedControlStyle, aD as ISelectStyle, aE as ISimpleGridStyle, aF as ISliderStyle, aG as ISpaceStyle, aH as ISpoilerStyle, aI as IStackStyle, I as IStyleRegistryEntry, aJ as IStyleWithSpacing, aK as ISwitchStyle, aL as ITabStyle, aM as ITabsStyle, aN as ITextInputStyle, aO as ITextStyle, aP as ITextareaStyle, aQ as IThemeIconStyle, aR as ITimelineItemStyle, aS as ITimelineStyle, aT as ITitleStyle, aU as ITwoFactorAuthStyle, aV as ITypographyStyle, aW as IUnknownStyle, aX as IValidateStyle, aY as IVersionStyle, aZ as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, a_ as TMantineAccordionChevronPosition, a$ as TMantineAccordionDisableChevronRotation, b0 as TMantineAccordionLoop, b1 as TMantineAccordionMultiple, b2 as TMantineAnchorUnderline, b3 as TMantineBorder, b4 as TMantineCardPadding, b5 as TMantineCardShadow, b6 as TMantineCols, b7 as TMantineDividerVariant, b8 as TMantineGap, b9 as TMantineGridOffset, ba as TMantineGridOrder, bb as TMantineHeight, bc as TMantineIconSize, bd as TMantineImageFit, be as TMantineLineClamp, bf as TMantineListCenter, bg as TMantineListStyleType, bh as TMantineListType, bi as TMantineListWithPadding, bj as TMantinePaperShadow, bk as TMantineProgressTransition, bl as TMantineScrollAreaSize, bm as TMantineScrollAreaType, bn as TMantineTextAlign, bo as TMantineTextDecoration, bp as TMantineTextFontStyle, bq as TMantineTextFontWeight, br as TMantineTextInherit, bs as TMantineTextInputVariant, bt as TMantineTextSpan, bu as TMantineTextTransform, bv as TMantineTextTruncate, bw as TMantineTextVariant, bx as TMantineTextareaAutosize, by as TMantineTextareaResize, bz as TMantineTextareaVariant, bA as TMantineTimelineAlign, bB as TMantineTitleLineClamp, bC as TMantineTitleTextWrap, bD as TMantineTranslatable, bE as TMantineUseInputWrapper, bF as TMantineWidth, bG as TSharedBorder, bH as TSharedCols, bI as TSharedDimension, bJ as TSharedDividerLabelPosition, bK as TSharedDividerVariant, bL as TSharedLabelPosition, bM 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-BBd9T2Ox.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';
|
|
@@ -562,6 +562,14 @@ interface ISystemVersion {
|
|
|
562
562
|
safe_mode: boolean;
|
|
563
563
|
maintenance_mode: boolean;
|
|
564
564
|
installed_plugins: ISystemInstalledPlugin[];
|
|
565
|
+
/**
|
|
566
|
+
* Server-side parts (PHP, Symfony, MySQL, Redis) with their exact versions
|
|
567
|
+
* (`version` is `null` only when the server could not read it). The route
|
|
568
|
+
* already needs `admin.system.read`, so versions are always exact here.
|
|
569
|
+
*/
|
|
570
|
+
frameworks: IAboutItem[];
|
|
571
|
+
/** The backend's direct production dependencies with exact version and licence. */
|
|
572
|
+
libraries: IAboutItem[];
|
|
565
573
|
}
|
|
566
574
|
type ISystemVersionResponse = IBaseApiResponse<ISystemVersion>;
|
|
567
575
|
/** Overall verdict for the aggregated system health endpoint. */
|
|
@@ -2830,4 +2838,4 @@ declare function transformPageData(apiPage: IRawPage): IPageItem;
|
|
|
2830
2838
|
*/
|
|
2831
2839
|
declare function transformPagesData(pages: IRawPage[] | null | undefined): IPageItem[];
|
|
2832
2840
|
|
|
2833
|
-
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_RATE_LIMIT_MESSAGE, DEFAULT_WEB_FOOTER_PRESET, DEFAULT_WEB_HEADER_PRESET, type DatabaseMigrationMetadata, ENDPOINTS, FIELDS_MAP_STYLE_CONFIG, FORM_RECORD_PREFILL_SKIP_FIELDS, 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 IFormRecordPrefill, type IFormRecordPrefillChild, type IFormRecordPrefillSection, type IFormRecordPrefillTranslatedValue, 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 IPagesResolveParams, 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, type TFormRecordPrefillFieldValue, 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, buildPagesResolvePath, buildPagesResolveQuery, buildPagesResolveUrl, buildPublicPathFromRoute, clampMenuItemsAtDepth, classifyClass, classifyClassString, collectPageIdsFromMenuItems, evaluateCondition, expandedIdsForActiveTrail, findMenuItemByPageId, findNearestBottomTabMenuItemForPage, findPageRefInNavigationPayload, findRemap, flattenFooterItems, flattenFormRecordPrefillValues, flattenMenuItems, flattenNavigationMenuItems, footerColumnItems, footerGroupLinks, footerStandaloneItems, formatRateLimitMessage, getNavigationItemAriaLabel, getNavigationItemHref, getNavigationItemKeyword, getNavigationItemLabel, getNavigationItemMobileHref, getRateLimitRetryAfter, hasInlineFormatting, isBottomTabMenuItemActive, isDoubleWebHeaderPreset, isMenuItemActiveOnMobile, isMenuItemActiveOnWeb, isMobileIconName, isNavigationBundleVersionSupported, isOnAnyMobileMenu, isOnAnyMobileMenuFromPayload, isPageInMenuTree, isPageInResolvedMenus, isPageOnAnyMenu, isPageOnMobileMenu, isPageOnWebMenu, isPreviewBridgeMessage, isWebFooterPreset, isWebHeaderPreset, matchesMobilePath, matchesWebPath, mergeHeaderLayers, normalizePagesResolvePath, pageUrlToMobileRoute, parseFieldsMapCatalog, parseFieldsMapLabels, parseFormRecordPrefill, 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 };
|
|
2841
|
+
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_RATE_LIMIT_MESSAGE, DEFAULT_WEB_FOOTER_PRESET, DEFAULT_WEB_HEADER_PRESET, type DatabaseMigrationMetadata, ENDPOINTS, FIELDS_MAP_STYLE_CONFIG, FORM_RECORD_PREFILL_SKIP_FIELDS, type FrontendRelease, HEADER_CLIENT_TYPE, IAboutItem, 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 IFormRecordPrefill, type IFormRecordPrefillChild, type IFormRecordPrefillSection, type IFormRecordPrefillTranslatedValue, 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 IPagesResolveParams, 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, type TFormRecordPrefillFieldValue, 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, buildPagesResolvePath, buildPagesResolveQuery, buildPagesResolveUrl, buildPublicPathFromRoute, clampMenuItemsAtDepth, classifyClass, classifyClassString, collectPageIdsFromMenuItems, evaluateCondition, expandedIdsForActiveTrail, findMenuItemByPageId, findNearestBottomTabMenuItemForPage, findPageRefInNavigationPayload, findRemap, flattenFooterItems, flattenFormRecordPrefillValues, flattenMenuItems, flattenNavigationMenuItems, footerColumnItems, footerGroupLinks, footerStandaloneItems, formatRateLimitMessage, getNavigationItemAriaLabel, getNavigationItemHref, getNavigationItemKeyword, getNavigationItemLabel, getNavigationItemMobileHref, getRateLimitRetryAfter, hasInlineFormatting, isBottomTabMenuItemActive, isDoubleWebHeaderPreset, isMenuItemActiveOnMobile, isMenuItemActiveOnWeb, isMobileIconName, isNavigationBundleVersionSupported, isOnAnyMobileMenu, isOnAnyMobileMenuFromPayload, isPageInMenuTree, isPageInResolvedMenus, isPageOnAnyMenu, isPageOnMobileMenu, isPageOnWebMenu, isPreviewBridgeMessage, isWebFooterPreset, isWebHeaderPreset, matchesMobilePath, matchesWebPath, mergeHeaderLayers, normalizePagesResolvePath, pageUrlToMobileRoute, parseFieldsMapCatalog, parseFieldsMapLabels, parseFormRecordPrefill, 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 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { I as IPluginManifest, a as IPluginManifestAdminPage, b as IPluginManifestApiRoute, c as IPluginManifestAsset, d as IPluginManifestCapability, e as IPluginManifestCompatibility, f as IPluginManifestConflict, g as IPluginManifestDataAccess, h as IPluginManifestDependency, i as IPluginManifestExternalHost, j as IPluginManifestFeatureFlag, k as IPluginManifestHealth, l as IPluginManifestLookupExtension, m as IPluginManifestMobile, n as IPluginManifestPermission, o as IPluginManifestRealtimeTopic, p as IPluginManifestScheduledJob, q as IPluginManifestSecurity, r as IPluginManifestStyle, s as IPluginManifestTrustLevel } from '../manifest-8YXAk-4o.mjs';
|
|
2
|
-
import { I as IStyleRegistryEntry } from '../styles.registry-
|
|
2
|
+
import { I as IStyleRegistryEntry } from '../styles.registry-IjDTff8P.mjs';
|
|
3
3
|
import '../common-qaDIAYS3.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { I as IPluginManifest, a as IPluginManifestAdminPage, b as IPluginManifestApiRoute, c as IPluginManifestAsset, d as IPluginManifestCapability, e as IPluginManifestCompatibility, f as IPluginManifestConflict, g as IPluginManifestDataAccess, h as IPluginManifestDependency, i as IPluginManifestExternalHost, j as IPluginManifestFeatureFlag, k as IPluginManifestHealth, l as IPluginManifestLookupExtension, m as IPluginManifestMobile, n as IPluginManifestPermission, o as IPluginManifestRealtimeTopic, p as IPluginManifestScheduledJob, q as IPluginManifestSecurity, r as IPluginManifestStyle, s as IPluginManifestTrustLevel } from '../manifest-8YXAk-4o.js';
|
|
2
|
-
import { I as IStyleRegistryEntry } from '../styles.registry-
|
|
2
|
+
import { I as IStyleRegistryEntry } from '../styles.registry-BBd9T2Ox.js';
|
|
3
3
|
import '../common-qaDIAYS3.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-
|
|
1
|
+
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-IjDTff8P.mjs';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-IjDTff8P.mjs';
|
|
3
3
|
import '../common-qaDIAYS3.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/registry/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-
|
|
1
|
+
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-BBd9T2Ox.js';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-BBd9T2Ox.js';
|
|
3
3
|
import '../common-qaDIAYS3.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1035,6 +1035,8 @@ interface IFileInputStyle extends IStyleWithSpacing {
|
|
|
1035
1035
|
placeholder?: IContentField<string>;
|
|
1036
1036
|
disabled?: IContentField<string>;
|
|
1037
1037
|
is_required?: IContentField<string>;
|
|
1038
|
+
/** '1' = uploaded files are readable by anyone; default private (core 0.1.43). */
|
|
1039
|
+
files_public?: IContentField<string>;
|
|
1038
1040
|
name?: IContentField<string>;
|
|
1039
1041
|
label?: IContentField<string>;
|
|
1040
1042
|
description?: IContentField<string>;
|
|
@@ -1359,13 +1361,64 @@ interface IMissingStyle extends IStyleWithSpacing {
|
|
|
1359
1361
|
show_icon?: IContentField<string>;
|
|
1360
1362
|
}
|
|
1361
1363
|
/**
|
|
1362
|
-
*
|
|
1363
|
-
*
|
|
1364
|
-
*
|
|
1365
|
-
*
|
|
1364
|
+
* One line of the "about the platform" block: a framework, a plugin or a
|
|
1365
|
+
* library. The same shape is used by the server lists, by the lists the web and
|
|
1366
|
+
* mobile builds generate for themselves, and by `GET /admin/system/version`.
|
|
1367
|
+
*
|
|
1368
|
+
* - `version` is `null` unless the caller may see exact versions
|
|
1369
|
+
* (`IPlatformAbout.detail`); then it is the exact version, or `null` when it
|
|
1370
|
+
* is unknown.
|
|
1371
|
+
* - `license` is an SPDX id or a short text, `null` when unknown. Several
|
|
1372
|
+
* licences are joined with ` OR `.
|
|
1373
|
+
*/
|
|
1374
|
+
interface IAboutItem {
|
|
1375
|
+
name: string;
|
|
1376
|
+
version: string | null;
|
|
1377
|
+
license: string | null;
|
|
1378
|
+
}
|
|
1379
|
+
/**
|
|
1380
|
+
* The server-filled "about the platform" block of a `version` section.
|
|
1381
|
+
*
|
|
1382
|
+
* The backend adds it after the page cache is read, on every request, because
|
|
1383
|
+
* `detail` depends on the caller: it is `true` only when the caller holds
|
|
1384
|
+
* `admin.system.read`. A client never decides this; it draws what it receives.
|
|
1385
|
+
*
|
|
1386
|
+
* - `product.version` (the SelfHelp version) is always set.
|
|
1387
|
+
* - `frameworks` are the server-side parts (PHP, Symfony, MySQL, Redis),
|
|
1388
|
+
* `plugins` the installed and enabled plugins, `libraries` the backend's
|
|
1389
|
+
* direct production dependencies.
|
|
1390
|
+
* - Lists are empty arrays, never missing. Every item's `version` is `null`
|
|
1391
|
+
* while `detail` is `false`.
|
|
1392
|
+
*
|
|
1393
|
+
* The web and mobile renderers add their own generated list (same
|
|
1394
|
+
* {@link IAboutItem} shape) and show its versions only when `detail` is `true`.
|
|
1395
|
+
*/
|
|
1396
|
+
interface IPlatformAbout {
|
|
1397
|
+
detail: boolean;
|
|
1398
|
+
product: {
|
|
1399
|
+
name: string;
|
|
1400
|
+
version: string;
|
|
1401
|
+
};
|
|
1402
|
+
frameworks: IAboutItem[];
|
|
1403
|
+
plugins: IAboutItem[];
|
|
1404
|
+
libraries: IAboutItem[];
|
|
1405
|
+
}
|
|
1406
|
+
/**
|
|
1407
|
+
* "About the platform" block. `about` is always present (filled by the backend
|
|
1408
|
+
* for every caller); the headings are translatable style fields so no client
|
|
1409
|
+
* hard-codes text.
|
|
1366
1410
|
*/
|
|
1367
1411
|
interface IVersionStyle extends IBaseStyle {
|
|
1368
1412
|
style_name: 'version';
|
|
1413
|
+
about: IPlatformAbout;
|
|
1414
|
+
title?: IContentField<string>;
|
|
1415
|
+
label_frameworks?: IContentField<string>;
|
|
1416
|
+
label_plugins?: IContentField<string>;
|
|
1417
|
+
label_libraries?: IContentField<string>;
|
|
1418
|
+
label_web?: IContentField<string>;
|
|
1419
|
+
label_app?: IContentField<string>;
|
|
1420
|
+
label_filter?: IContentField<string>;
|
|
1421
|
+
label_no_match?: IContentField<string>;
|
|
1369
1422
|
}
|
|
1370
1423
|
|
|
1371
1424
|
/**
|
|
@@ -2532,4 +2585,4 @@ declare function getPluginStyleRegistry(): Record<string, IPluginStyleRegistryEn
|
|
|
2532
2585
|
*/
|
|
2533
2586
|
declare function _resetPluginStyleRegistry(): void;
|
|
2534
2587
|
|
|
2535
|
-
export { type
|
|
2588
|
+
export { type IFigureStyle as $, type IButtonStyle as A, BASE_STYLE_REGISTRY as B, type ICardSegmentStyle as C, type ICardStyle as D, type ICarouselStyle as E, type ICenterStyle as F, type ICheckboxStyle as G, type IChipStyle as H, type IStyleRegistryEntry as I, type ICodeStyle as J, type IColorInputStyle as K, type IColorPickerStyle as L, type IComboboxStyle as M, type IContainerStyle as N, type IDataContainerStyle as O, type IDatePickerStyle as P, type IDividerStyle as Q, type IEntryListStyle as R, STYLE_REGISTRY as S, type TStyleName as T, type IEntryRecordDeleteStyle as U, type IEntryRecordFormStyle as V, type IEntryRecordStyle as W, type IEntryTableEntry as X, type IEntryTableStyle as Y, type IFieldsetStyle as Z, type _AssertRegistryMatchesStyleName as _, type IPluginStyleRegistryEntry as a, type TMantineAccordionDisableChevronRotation as a$, type IFileInputStyle as a0, type IFlexStyle as a1, type IFormLogStyle as a2, type IFormRecordStyle as a3, type IFormStyle as a4, type IGridColumnStyle as a5, type IGridStyle as a6, type IGroupStyle as a7, type IHighlightStyle as a8, type IHtmlTagStyle as a9, type IRichTextEditorStyle as aA, type IScrollAreaStyle as aB, type ISegmentedControlStyle as aC, type ISelectStyle as aD, type ISimpleGridStyle as aE, type ISliderStyle as aF, type ISpaceStyle as aG, type ISpoilerStyle as aH, type IStackStyle as aI, type IStyleWithSpacing as aJ, type ISwitchStyle as aK, type ITabStyle as aL, type ITabsStyle as aM, type ITextInputStyle as aN, type ITextStyle as aO, type ITextareaStyle as aP, type IThemeIconStyle as aQ, type ITimelineItemStyle as aR, type ITimelineStyle as aS, type ITitleStyle as aT, type ITwoFactorAuthStyle as aU, type ITypographyStyle as aV, type IUnknownStyle as aW, type IValidateStyle as aX, type IVersionStyle as aY, type IVideoStyle as aZ, type TMantineAccordionChevronPosition as a_, type IImageStyle as aa, type IIndicatorStyle as ab, type IInputStyle as ac, type IKbdStyle as ad, type ILinkStyle as ae, type IListItemStyle as af, type IListStyle as ag, type ILoginStyle as ah, type ILoopStyle as ai, type IMissingStyle as aj, type INoAccessStyle as ak, type INotFoundStyle as al, type INotificationStyle as am, type INumberInputStyle as an, type IPaperStyle as ao, type IPlatformAbout as ap, type IProfileStyle as aq, type IProgressRootStyle as ar, type IProgressSectionStyle as as, type IProgressStyle as at, type IRadioStyle as au, type IRangeSliderStyle as av, type IRatingStyle as aw, type IRefContainerStyle as ax, type IRegisterStyle as ay, type IResetPasswordStyle as az, type TStylePlacement as b, type TMantineAccordionLoop as b0, type TMantineAccordionMultiple as b1, type TMantineAnchorUnderline as b2, type TMantineBorder as b3, type TMantineCardPadding as b4, type TMantineCardShadow as b5, type TMantineCols as b6, type TMantineDividerVariant as b7, type TMantineGap as b8, type TMantineGridOffset as b9, type TMantineTimelineAlign as bA, type TMantineTitleLineClamp as bB, type TMantineTitleTextWrap as bC, type TMantineTranslatable as bD, type TMantineUseInputWrapper as bE, type TMantineWidth as bF, type TSharedBorder as bG, type TSharedCols as bH, type TSharedDimension as bI, type TSharedDividerLabelPosition as bJ, type TSharedDividerVariant as bK, type TSharedLabelPosition as bL, type TStyle as bM, type TMantineGridOrder as ba, type TMantineHeight as bb, type TMantineIconSize as bc, type TMantineImageFit as bd, type TMantineLineClamp as be, type TMantineListCenter as bf, type TMantineListStyleType as bg, type TMantineListType as bh, type TMantineListWithPadding as bi, type TMantinePaperShadow as bj, type TMantineProgressTransition as bk, type TMantineScrollAreaSize as bl, type TMantineScrollAreaType as bm, type TMantineTextAlign as bn, type TMantineTextDecoration as bo, type TMantineTextFontStyle as bp, type TMantineTextFontWeight as bq, type TMantineTextInherit as br, type TMantineTextInputVariant as bs, type TMantineTextSpan as bt, type TMantineTextTransform as bu, type TMantineTextTruncate as bv, type TMantineTextVariant as bw, type TMantineTextareaAutosize as bx, type TMantineTextareaResize as by, type TMantineTextareaVariant as bz, type TConcretePlatform as c, type TStylePlatform as d, type TStyleRegistryKey as e, _resetPluginStyleRegistry as f, extendStyleRegistry as g, getMergedStyleRegistry as h, getPluginStyleRegistry as i, type IContentField as j, type IAboutItem as k, type TMobileButtonFeedback as l, type TMobileFieldVariant as m, type TMobileSelectPresentation as n, type IAccordionItemStyle as o, type IAccordionStyle as p, type IActionIconStyle as q, type IAlertStyle as r, type IAspectRatioStyle as s, type IAudioStyle as t, type IAvatarStyle as u, type IBackgroundImageStyle as v, type IBadgeStyle as w, type IBaseStyle as x, type IBlockquoteStyle as y, type IBoxStyle as z };
|
|
@@ -1035,6 +1035,8 @@ interface IFileInputStyle extends IStyleWithSpacing {
|
|
|
1035
1035
|
placeholder?: IContentField<string>;
|
|
1036
1036
|
disabled?: IContentField<string>;
|
|
1037
1037
|
is_required?: IContentField<string>;
|
|
1038
|
+
/** '1' = uploaded files are readable by anyone; default private (core 0.1.43). */
|
|
1039
|
+
files_public?: IContentField<string>;
|
|
1038
1040
|
name?: IContentField<string>;
|
|
1039
1041
|
label?: IContentField<string>;
|
|
1040
1042
|
description?: IContentField<string>;
|
|
@@ -1359,13 +1361,64 @@ interface IMissingStyle extends IStyleWithSpacing {
|
|
|
1359
1361
|
show_icon?: IContentField<string>;
|
|
1360
1362
|
}
|
|
1361
1363
|
/**
|
|
1362
|
-
*
|
|
1363
|
-
*
|
|
1364
|
-
*
|
|
1365
|
-
*
|
|
1364
|
+
* One line of the "about the platform" block: a framework, a plugin or a
|
|
1365
|
+
* library. The same shape is used by the server lists, by the lists the web and
|
|
1366
|
+
* mobile builds generate for themselves, and by `GET /admin/system/version`.
|
|
1367
|
+
*
|
|
1368
|
+
* - `version` is `null` unless the caller may see exact versions
|
|
1369
|
+
* (`IPlatformAbout.detail`); then it is the exact version, or `null` when it
|
|
1370
|
+
* is unknown.
|
|
1371
|
+
* - `license` is an SPDX id or a short text, `null` when unknown. Several
|
|
1372
|
+
* licences are joined with ` OR `.
|
|
1373
|
+
*/
|
|
1374
|
+
interface IAboutItem {
|
|
1375
|
+
name: string;
|
|
1376
|
+
version: string | null;
|
|
1377
|
+
license: string | null;
|
|
1378
|
+
}
|
|
1379
|
+
/**
|
|
1380
|
+
* The server-filled "about the platform" block of a `version` section.
|
|
1381
|
+
*
|
|
1382
|
+
* The backend adds it after the page cache is read, on every request, because
|
|
1383
|
+
* `detail` depends on the caller: it is `true` only when the caller holds
|
|
1384
|
+
* `admin.system.read`. A client never decides this; it draws what it receives.
|
|
1385
|
+
*
|
|
1386
|
+
* - `product.version` (the SelfHelp version) is always set.
|
|
1387
|
+
* - `frameworks` are the server-side parts (PHP, Symfony, MySQL, Redis),
|
|
1388
|
+
* `plugins` the installed and enabled plugins, `libraries` the backend's
|
|
1389
|
+
* direct production dependencies.
|
|
1390
|
+
* - Lists are empty arrays, never missing. Every item's `version` is `null`
|
|
1391
|
+
* while `detail` is `false`.
|
|
1392
|
+
*
|
|
1393
|
+
* The web and mobile renderers add their own generated list (same
|
|
1394
|
+
* {@link IAboutItem} shape) and show its versions only when `detail` is `true`.
|
|
1395
|
+
*/
|
|
1396
|
+
interface IPlatformAbout {
|
|
1397
|
+
detail: boolean;
|
|
1398
|
+
product: {
|
|
1399
|
+
name: string;
|
|
1400
|
+
version: string;
|
|
1401
|
+
};
|
|
1402
|
+
frameworks: IAboutItem[];
|
|
1403
|
+
plugins: IAboutItem[];
|
|
1404
|
+
libraries: IAboutItem[];
|
|
1405
|
+
}
|
|
1406
|
+
/**
|
|
1407
|
+
* "About the platform" block. `about` is always present (filled by the backend
|
|
1408
|
+
* for every caller); the headings are translatable style fields so no client
|
|
1409
|
+
* hard-codes text.
|
|
1366
1410
|
*/
|
|
1367
1411
|
interface IVersionStyle extends IBaseStyle {
|
|
1368
1412
|
style_name: 'version';
|
|
1413
|
+
about: IPlatformAbout;
|
|
1414
|
+
title?: IContentField<string>;
|
|
1415
|
+
label_frameworks?: IContentField<string>;
|
|
1416
|
+
label_plugins?: IContentField<string>;
|
|
1417
|
+
label_libraries?: IContentField<string>;
|
|
1418
|
+
label_web?: IContentField<string>;
|
|
1419
|
+
label_app?: IContentField<string>;
|
|
1420
|
+
label_filter?: IContentField<string>;
|
|
1421
|
+
label_no_match?: IContentField<string>;
|
|
1369
1422
|
}
|
|
1370
1423
|
|
|
1371
1424
|
/**
|
|
@@ -2532,4 +2585,4 @@ declare function getPluginStyleRegistry(): Record<string, IPluginStyleRegistryEn
|
|
|
2532
2585
|
*/
|
|
2533
2586
|
declare function _resetPluginStyleRegistry(): void;
|
|
2534
2587
|
|
|
2535
|
-
export { type
|
|
2588
|
+
export { type IFigureStyle as $, type IButtonStyle as A, BASE_STYLE_REGISTRY as B, type ICardSegmentStyle as C, type ICardStyle as D, type ICarouselStyle as E, type ICenterStyle as F, type ICheckboxStyle as G, type IChipStyle as H, type IStyleRegistryEntry as I, type ICodeStyle as J, type IColorInputStyle as K, type IColorPickerStyle as L, type IComboboxStyle as M, type IContainerStyle as N, type IDataContainerStyle as O, type IDatePickerStyle as P, type IDividerStyle as Q, type IEntryListStyle as R, STYLE_REGISTRY as S, type TStyleName as T, type IEntryRecordDeleteStyle as U, type IEntryRecordFormStyle as V, type IEntryRecordStyle as W, type IEntryTableEntry as X, type IEntryTableStyle as Y, type IFieldsetStyle as Z, type _AssertRegistryMatchesStyleName as _, type IPluginStyleRegistryEntry as a, type TMantineAccordionDisableChevronRotation as a$, type IFileInputStyle as a0, type IFlexStyle as a1, type IFormLogStyle as a2, type IFormRecordStyle as a3, type IFormStyle as a4, type IGridColumnStyle as a5, type IGridStyle as a6, type IGroupStyle as a7, type IHighlightStyle as a8, type IHtmlTagStyle as a9, type IRichTextEditorStyle as aA, type IScrollAreaStyle as aB, type ISegmentedControlStyle as aC, type ISelectStyle as aD, type ISimpleGridStyle as aE, type ISliderStyle as aF, type ISpaceStyle as aG, type ISpoilerStyle as aH, type IStackStyle as aI, type IStyleWithSpacing as aJ, type ISwitchStyle as aK, type ITabStyle as aL, type ITabsStyle as aM, type ITextInputStyle as aN, type ITextStyle as aO, type ITextareaStyle as aP, type IThemeIconStyle as aQ, type ITimelineItemStyle as aR, type ITimelineStyle as aS, type ITitleStyle as aT, type ITwoFactorAuthStyle as aU, type ITypographyStyle as aV, type IUnknownStyle as aW, type IValidateStyle as aX, type IVersionStyle as aY, type IVideoStyle as aZ, type TMantineAccordionChevronPosition as a_, type IImageStyle as aa, type IIndicatorStyle as ab, type IInputStyle as ac, type IKbdStyle as ad, type ILinkStyle as ae, type IListItemStyle as af, type IListStyle as ag, type ILoginStyle as ah, type ILoopStyle as ai, type IMissingStyle as aj, type INoAccessStyle as ak, type INotFoundStyle as al, type INotificationStyle as am, type INumberInputStyle as an, type IPaperStyle as ao, type IPlatformAbout as ap, type IProfileStyle as aq, type IProgressRootStyle as ar, type IProgressSectionStyle as as, type IProgressStyle as at, type IRadioStyle as au, type IRangeSliderStyle as av, type IRatingStyle as aw, type IRefContainerStyle as ax, type IRegisterStyle as ay, type IResetPasswordStyle as az, type TStylePlacement as b, type TMantineAccordionLoop as b0, type TMantineAccordionMultiple as b1, type TMantineAnchorUnderline as b2, type TMantineBorder as b3, type TMantineCardPadding as b4, type TMantineCardShadow as b5, type TMantineCols as b6, type TMantineDividerVariant as b7, type TMantineGap as b8, type TMantineGridOffset as b9, type TMantineTimelineAlign as bA, type TMantineTitleLineClamp as bB, type TMantineTitleTextWrap as bC, type TMantineTranslatable as bD, type TMantineUseInputWrapper as bE, type TMantineWidth as bF, type TSharedBorder as bG, type TSharedCols as bH, type TSharedDimension as bI, type TSharedDividerLabelPosition as bJ, type TSharedDividerVariant as bK, type TSharedLabelPosition as bL, type TStyle as bM, type TMantineGridOrder as ba, type TMantineHeight as bb, type TMantineIconSize as bc, type TMantineImageFit as bd, type TMantineLineClamp as be, type TMantineListCenter as bf, type TMantineListStyleType as bg, type TMantineListType as bh, type TMantineListWithPadding as bi, type TMantinePaperShadow as bj, type TMantineProgressTransition as bk, type TMantineScrollAreaSize as bl, type TMantineScrollAreaType as bm, type TMantineTextAlign as bn, type TMantineTextDecoration as bo, type TMantineTextFontStyle as bp, type TMantineTextFontWeight as bq, type TMantineTextInherit as br, type TMantineTextInputVariant as bs, type TMantineTextSpan as bt, type TMantineTextTransform as bu, type TMantineTextTruncate as bv, type TMantineTextVariant as bw, type TMantineTextareaAutosize as bx, type TMantineTextareaResize as by, type TMantineTextareaVariant as bz, type TConcretePlatform as c, type TStylePlatform as d, type TStyleRegistryKey as e, _resetPluginStyleRegistry as f, extendStyleRegistry as g, getMergedStyleRegistry as h, getPluginStyleRegistry as i, type IContentField as j, type IAboutItem as k, type TMobileButtonFeedback as l, type TMobileFieldVariant as m, type TMobileSelectPresentation as n, type IAccordionItemStyle as o, type IAccordionStyle as p, type IActionIconStyle as q, type IAlertStyle as r, type IAspectRatioStyle as s, type IAudioStyle as t, type IAvatarStyle as u, type IBackgroundImageStyle as v, type IBadgeStyle as w, type IBaseStyle as x, type IBlockquoteStyle as y, type IBoxStyle as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selfhelp/shared",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0",
|
|
4
4
|
"description": "Shared TypeScript package for SelfHelp web frontend and mobile app: style registry, types, API contracts, Mantine theme tokens, condition + interpolation engines, CMS class allow-list.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* SPDX-FileCopyrightText: 2026 Humdek, University of Bern
|
|
3
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { describe, expect, it } from 'vitest';
|
|
7
|
+
import type { IAboutItem, IPlatformAbout, IVersionStyle } from '../index';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Contract pin for the "about the platform" block of the `version` style
|
|
11
|
+
* (backend `PlatformAboutService`, web `VersionStyle`, mobile `Version`).
|
|
12
|
+
* The types are imported from the package's types barrel so the test also fails
|
|
13
|
+
* if they stop being exported there; the shapes are checked by `tsc` (the
|
|
14
|
+
* fixtures below do not compile if a key is renamed, dropped or made optional).
|
|
15
|
+
*/
|
|
16
|
+
describe('version style about contract', () => {
|
|
17
|
+
const guest: IPlatformAbout = {
|
|
18
|
+
detail: false,
|
|
19
|
+
product: { name: 'SelfHelp', version: '0.1.43' },
|
|
20
|
+
frameworks: [{ name: 'PHP', version: null, license: 'PHP-3.01' }],
|
|
21
|
+
plugins: [],
|
|
22
|
+
libraries: [{ name: 'doctrine/orm', version: null, license: 'MIT' }],
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const admin: IPlatformAbout = {
|
|
26
|
+
...guest,
|
|
27
|
+
detail: true,
|
|
28
|
+
frameworks: [{ name: 'PHP', version: '8.4.1', license: 'PHP-3.01' }],
|
|
29
|
+
libraries: [{ name: 'doctrine/orm', version: '3.3.0', license: 'MIT OR Apache-2.0' }],
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
it('shows only the product version to a caller without detail', () => {
|
|
33
|
+
const versions = [...guest.frameworks, ...guest.plugins, ...guest.libraries].map((item) => item.version);
|
|
34
|
+
|
|
35
|
+
expect(guest.detail).toBe(false);
|
|
36
|
+
expect(guest.product.version).toBe('0.1.43');
|
|
37
|
+
expect(versions.every((version) => version === null)).toBe(true);
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
it('carries exact versions and joined licences for a caller with detail', () => {
|
|
41
|
+
const item: IAboutItem | undefined = admin.libraries[0];
|
|
42
|
+
|
|
43
|
+
expect(admin.detail).toBe(true);
|
|
44
|
+
expect(item?.version).toBe('3.3.0');
|
|
45
|
+
expect(item?.license).toBe('MIT OR Apache-2.0');
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
it('is always present on a version section, together with its translatable headings', () => {
|
|
49
|
+
const section: Pick<
|
|
50
|
+
IVersionStyle,
|
|
51
|
+
| 'style_name'
|
|
52
|
+
| 'about'
|
|
53
|
+
| 'title'
|
|
54
|
+
| 'label_frameworks'
|
|
55
|
+
| 'label_plugins'
|
|
56
|
+
| 'label_libraries'
|
|
57
|
+
| 'label_web'
|
|
58
|
+
| 'label_app'
|
|
59
|
+
| 'label_filter'
|
|
60
|
+
| 'label_no_match'
|
|
61
|
+
> = {
|
|
62
|
+
style_name: 'version',
|
|
63
|
+
about: guest,
|
|
64
|
+
title: { content: 'About this platform' },
|
|
65
|
+
label_frameworks: { content: 'Frameworks' },
|
|
66
|
+
label_plugins: { content: 'Plugins' },
|
|
67
|
+
label_libraries: { content: 'Libraries' },
|
|
68
|
+
label_web: { content: 'Website' },
|
|
69
|
+
label_app: { content: 'Mobile app' },
|
|
70
|
+
label_filter: { content: 'Filter' },
|
|
71
|
+
label_no_match: { content: 'Nothing matches the filter.' },
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
expect(section.style_name).toBe('version');
|
|
75
|
+
expect(section.about.plugins).toEqual([]);
|
|
76
|
+
expect(section.label_web?.content).toBe('Website');
|
|
77
|
+
expect(section.label_filter?.content).toBe('Filter');
|
|
78
|
+
expect(section.label_no_match?.content).toBe('Nothing matches the filter.');
|
|
79
|
+
});
|
|
80
|
+
});
|
|
@@ -169,6 +169,12 @@ describe('system maintenance contracts', () => {
|
|
|
169
169
|
safe_mode: false,
|
|
170
170
|
maintenance_mode: false,
|
|
171
171
|
installed_plugins: [{ id: 'sh2-shp-survey-js', version: '0.2.20', compatible: true }],
|
|
172
|
+
// The admin route always carries exact versions (it needs admin.system.read).
|
|
173
|
+
frameworks: [
|
|
174
|
+
{ name: 'PHP', version: '8.4.1', license: 'PHP-3.01' },
|
|
175
|
+
{ name: 'Redis', version: null, license: null },
|
|
176
|
+
],
|
|
177
|
+
libraries: [{ name: 'doctrine/orm', version: '3.3.0', license: 'MIT' }],
|
|
172
178
|
};
|
|
173
179
|
const preflight: IUpdatePreflight = {
|
|
174
180
|
preflight_id: 'pf-001',
|
|
@@ -196,6 +202,10 @@ describe('system maintenance contracts', () => {
|
|
|
196
202
|
};
|
|
197
203
|
|
|
198
204
|
expect(version.installed_plugins[0]?.compatible).toBe(true);
|
|
205
|
+
expect(version.frameworks[0]?.version).toBe('8.4.1');
|
|
206
|
+
// An unreadable server version is listed with `null`, never dropped.
|
|
207
|
+
expect(version.frameworks[1]?.version).toBeNull();
|
|
208
|
+
expect(version.libraries[0]?.license).toBe('MIT');
|
|
199
209
|
expect(preflight.status).toBe('ok');
|
|
200
210
|
expect(status.progress_percent).toBe(42);
|
|
201
211
|
});
|
package/src/types/api/system.ts
CHANGED
|
@@ -13,6 +13,7 @@ SPDX-License-Identifier: MPL-2.0
|
|
|
13
13
|
* These mirror the manager's `@shm/schemas` shapes and the backend JSON schemas
|
|
14
14
|
* under `config/schemas/api/v1/{responses,requests}/admin/`.
|
|
15
15
|
*/
|
|
16
|
+
import type { IAboutItem } from '../styles/error';
|
|
16
17
|
import type { IBaseApiResponse } from './envelope';
|
|
17
18
|
|
|
18
19
|
const SYSTEM_PREFIX = '/cms-api/v1/admin/system';
|
|
@@ -90,6 +91,14 @@ export interface ISystemVersion {
|
|
|
90
91
|
safe_mode: boolean;
|
|
91
92
|
maintenance_mode: boolean;
|
|
92
93
|
installed_plugins: ISystemInstalledPlugin[];
|
|
94
|
+
/**
|
|
95
|
+
* Server-side parts (PHP, Symfony, MySQL, Redis) with their exact versions
|
|
96
|
+
* (`version` is `null` only when the server could not read it). The route
|
|
97
|
+
* already needs `admin.system.read`, so versions are always exact here.
|
|
98
|
+
*/
|
|
99
|
+
frameworks: IAboutItem[];
|
|
100
|
+
/** The backend's direct production dependencies with exact version and licence. */
|
|
101
|
+
libraries: IAboutItem[];
|
|
93
102
|
}
|
|
94
103
|
export type ISystemVersionResponse = IBaseApiResponse<ISystemVersion>;
|
|
95
104
|
|
|
@@ -45,11 +45,61 @@ export interface IMissingStyle extends IStyleWithSpacing {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
48
|
+
* One line of the "about the platform" block: a framework, a plugin or a
|
|
49
|
+
* library. The same shape is used by the server lists, by the lists the web and
|
|
50
|
+
* mobile builds generate for themselves, and by `GET /admin/system/version`.
|
|
51
|
+
*
|
|
52
|
+
* - `version` is `null` unless the caller may see exact versions
|
|
53
|
+
* (`IPlatformAbout.detail`); then it is the exact version, or `null` when it
|
|
54
|
+
* is unknown.
|
|
55
|
+
* - `license` is an SPDX id or a short text, `null` when unknown. Several
|
|
56
|
+
* licences are joined with ` OR `.
|
|
57
|
+
*/
|
|
58
|
+
export interface IAboutItem {
|
|
59
|
+
name: string;
|
|
60
|
+
version: string | null;
|
|
61
|
+
license: string | null;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* The server-filled "about the platform" block of a `version` section.
|
|
66
|
+
*
|
|
67
|
+
* The backend adds it after the page cache is read, on every request, because
|
|
68
|
+
* `detail` depends on the caller: it is `true` only when the caller holds
|
|
69
|
+
* `admin.system.read`. A client never decides this; it draws what it receives.
|
|
70
|
+
*
|
|
71
|
+
* - `product.version` (the SelfHelp version) is always set.
|
|
72
|
+
* - `frameworks` are the server-side parts (PHP, Symfony, MySQL, Redis),
|
|
73
|
+
* `plugins` the installed and enabled plugins, `libraries` the backend's
|
|
74
|
+
* direct production dependencies.
|
|
75
|
+
* - Lists are empty arrays, never missing. Every item's `version` is `null`
|
|
76
|
+
* while `detail` is `false`.
|
|
77
|
+
*
|
|
78
|
+
* The web and mobile renderers add their own generated list (same
|
|
79
|
+
* {@link IAboutItem} shape) and show its versions only when `detail` is `true`.
|
|
80
|
+
*/
|
|
81
|
+
export interface IPlatformAbout {
|
|
82
|
+
detail: boolean;
|
|
83
|
+
product: { name: string; version: string };
|
|
84
|
+
frameworks: IAboutItem[];
|
|
85
|
+
plugins: IAboutItem[];
|
|
86
|
+
libraries: IAboutItem[];
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* "About the platform" block. `about` is always present (filled by the backend
|
|
91
|
+
* for every caller); the headings are translatable style fields so no client
|
|
92
|
+
* hard-codes text.
|
|
52
93
|
*/
|
|
53
94
|
export interface IVersionStyle extends IBaseStyle {
|
|
54
95
|
style_name: 'version';
|
|
96
|
+
about: IPlatformAbout;
|
|
97
|
+
title?: IContentField<string>;
|
|
98
|
+
label_frameworks?: IContentField<string>;
|
|
99
|
+
label_plugins?: IContentField<string>;
|
|
100
|
+
label_libraries?: IContentField<string>;
|
|
101
|
+
label_web?: IContentField<string>;
|
|
102
|
+
label_app?: IContentField<string>;
|
|
103
|
+
label_filter?: IContentField<string>;
|
|
104
|
+
label_no_match?: IContentField<string>;
|
|
55
105
|
}
|
|
@@ -412,6 +412,8 @@ export interface IFileInputStyle extends IStyleWithSpacing {
|
|
|
412
412
|
web_right_icon?: IContentField<string>;
|
|
413
413
|
placeholder?: IContentField<string>;
|
|
414
414
|
disabled?: IContentField<string>; is_required?: IContentField<string>;
|
|
415
|
+
/** '1' = uploaded files are readable by anyone; default private (core 0.1.43). */
|
|
416
|
+
files_public?: IContentField<string>;
|
|
415
417
|
name?: IContentField<string>;
|
|
416
418
|
label?: IContentField<string>;
|
|
417
419
|
description?: IContentField<string>;
|