@selfhelp/shared 1.6.1 → 1.7.2

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 CHANGED
@@ -9,6 +9,65 @@ All notable changes to `@selfhelp/shared` will be documented in this file.
9
9
 
10
10
  This project follows semantic versioning.
11
11
 
12
+ ## v1.7.2
13
+
14
+ ### Added
15
+
16
+ - `InstanceManifest` now models the optional `backupSchedule`
17
+ (`BackupSchedulePolicy` + `BackupRetentionPolicy`) and `envOverrides` fields,
18
+ mirroring the manager's authoritative manifest contract
19
+ (`sh-manager/packages/schemas/src/types.ts`). Both are optional — additive and
20
+ backward compatible. This restores the cross-repo `distribution.test.ts`
21
+ parity check, which was red against the manager's `instance-manifest.json`
22
+ example fixture.
23
+
24
+ ### Changed
25
+
26
+ - **Lint is now a blocking CI gate.** `npm run lint -- --max-warnings=0` runs on
27
+ every PR/push to `main` (`plugin-sdk-check.yml`) and before npm publish
28
+ (`publish.yml` now runs headers → lint → typecheck → build → test before
29
+ `npm publish`). The strict, type-aware ESLint flat config already existed but
30
+ was not enforced by any workflow; no lint rules were changed and no runtime
31
+ behavior changed.
32
+
33
+ ## v1.7.1
34
+
35
+ ### Changed
36
+
37
+ - Documented the `frontend_compatibility` preflight check code in the
38
+ system-maintenance contract (`types/api/system.ts`). The frontend-only update
39
+ preflight (`IFrontendUpdatePreflight`) now carries the standardized
40
+ `ICompatibilityError` fields under a `frontend_compatibility` check when the
41
+ running core forbids the target frontend, or the target frontend needs a
42
+ different core — the bidirectional frontend ⇄ core rule the SelfHelp Manager
43
+ enforces, now mirrored by the CMS so its verdict matches the manager's instead
44
+ of always reporting "OK". No shape change: `IUpdatePreflightCheck` already
45
+ carries `code` plus the compatibility fields, so this is a documentation /
46
+ contract-clarification release (additive, backward compatible).
47
+
48
+ ## v1.7.0
49
+
50
+ ### Added
51
+
52
+ - Error-page style contracts in a new `styles/error.ts` (re-exported from the
53
+ package root): `INoAccessStyle` (the 403 `no-access` / `no-access-guest`
54
+ pages), `INotFoundStyle` (the 404 page) and `IMissingStyle`. Each carries the
55
+ shared `title` / `message` / `button_label` (plus `login_label` /
56
+ `show_login` for the access-denied variants) copy fields and the
57
+ `mantine_color` / `mantine_radius` / `mantine_shadow` /
58
+ `mantine_button_variant` / `show_icon` presentation fields that the new
59
+ styled system error pages render.
60
+ - `IShowUserInputStyle` + `IShowUserInputEntry` (`styles/forms.ts`): the
61
+ contract for the new **showUserInput** style, which renders a form's
62
+ collected entries as a table. It covers the data-table feature flags
63
+ (`dt_sortable` / `dt_searching` / `dt_paginate` / `dt_info` /
64
+ `dt_default_order_column` / `dt_default_order_dir`), `csv_export`,
65
+ `delete_entry` with translatable `delete_modal_title` / `delete_modal_body`,
66
+ column remapping via `fields_map`, `own_entries_only` / `show_timestamp`, the
67
+ full `mantine_table_*` styling set, and the `entries` array — where each row
68
+ exposes `record_id`, `id_users` and the per-row `_can_delete` flag the
69
+ renderer uses to show a trash icon only for rows the current user may delete.
70
+
12
71
  ## v1.6.1
13
72
 
14
73
  ### Added
package/dist/index.d.mts CHANGED
@@ -1,10 +1,47 @@
1
- import { T as TStyleName, f as IContentField } from './styles.registry-0MsmyRmF.mjs';
2
- export { B as BASE_STYLE_REGISTRY, h as IAccordionItemStyle, i as IAccordionStyle, j as IActionIconStyle, k as IAlertStyle, l as IAspectRatioStyle, m as IAudioStyle, n as IAvatarStyle, o as IBackgroundImageStyle, p as IBadgeStyle, q as IBaseStyle, r as IBlockquoteStyle, s as IBoxStyle, t as IButtonStyle, u as ICardSegmentStyle, v as ICardStyle, w as ICarouselStyle, x as ICenterStyle, y as ICheckboxStyle, z as IChipStyle, A as ICodeStyle, C as IColorInputStyle, D as IColorPickerStyle, E as IComboboxStyle, F as IContainerStyle, G as IDatePickerStyle, H as IDividerStyle, J as IEntryListStyle, K as IEntryRecordDeleteStyle, L as IEntryRecordStyle, M as IFieldsetStyle, N as IFigureStyle, O as IFileInputStyle, P as IFlexStyle, Q as IFormLogStyle, R as IFormRecordStyle, U as IFormStyle, V as IGridColumnStyle, W as IGridStyle, X as IGroupStyle, Y as IHighlightStyle, Z as IHtmlTagStyle, $ as IImageStyle, a0 as IIndicatorStyle, a1 as IInputStyle, a2 as IKbdStyle, a3 as ILinkStyle, a4 as IListItemStyle, a5 as IListStyle, a6 as ILoginStyle, a7 as ILoopStyle, a8 as INotificationStyle, a9 as INumberInputStyle, aa as IPaperStyle, a as IPluginStyleRegistryEntry, ab as IProfileStyle, ac as IProgressRootStyle, ad as IProgressSectionStyle, ae as IProgressStyle, af as IRadioStyle, ag as IRangeSliderStyle, ah as IRatingStyle, ai as IRegisterStyle, aj as IResetPasswordStyle, ak as IRichTextEditorStyle, al as IScrollAreaStyle, am as ISegmentedControlStyle, an as ISelectStyle, ao as ISimpleGridStyle, ap as ISliderStyle, aq as ISpaceStyle, ar as ISpoilerStyle, as as IStackStyle, I as IStyleRegistryEntry, at as IStyleWithSpacing, au as ISwitchStyle, av as ITabStyle, aw as ITabsStyle, ax as ITextInputStyle, ay as ITextStyle, az as ITextareaStyle, aA as IThemeIconStyle, aB as ITimelineStyle, aC as ITitleStyle, aD as ITwoFactorAuthStyle, aE as ITypographyStyle, aF as IUnknownStyle, aG as IValidateStyle, aH as IVideoStyle, S as STYLE_REGISTRY, aI as TMantineAccordionChevronPosition, aJ as TMantineAccordionDisableChevronRotation, aK as TMantineAccordionLoop, aL as TMantineAccordionMultiple, aM as TMantineBorder, aN as TMantineCardShadow, aO as TMantineCheckboxLabelPosition, aP as TMantineCols, aQ as TMantineDividerVariant, aR as TMantineGap, aS as TMantineGridOffset, aT as TMantineGridOrder, aU as TMantineHeight, aV as TMantineIconSize, aW as TMantineImageFit, aX as TMantineLineClamp, aY as TMantineListCenter, aZ as TMantineListStyleType, a_ as TMantineListType, a$ as TMantineListWithPadding, b0 as TMantinePaperShadow, b1 as TMantineProgressTransition, b2 as TMantineScrollAreaSize, b3 as TMantineScrollAreaType, b4 as TMantineTextAlign, b5 as TMantineTextDecoration, b6 as TMantineTextFontStyle, b7 as TMantineTextFontWeight, b8 as TMantineTextInherit, b9 as TMantineTextInputVariant, ba as TMantineTextSpan, bb as TMantineTextTransform, bc as TMantineTextTruncate, bd as TMantineTextVariant, be as TMantineTextareaAutosize, bf as TMantineTextareaResize, bg as TMantineTextareaVariant, bh as TMantineTimelineAlign, bi as TMantineTitleLineClamp, bj as TMantineTitleTextWrap, bk as TMantineTranslatable, bl as TMantineUseInputWrapper, bm as TMantineWidth, bn as TStyle, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from './styles.registry-0MsmyRmF.mjs';
1
+ import { f as IStyleWithSpacing, h as IContentField, T as TStyleName } from './styles.registry-B147FVHY.mjs';
2
+ export { B as BASE_STYLE_REGISTRY, i as IAccordionItemStyle, j as IAccordionStyle, k as IActionIconStyle, l as IAlertStyle, m as IAspectRatioStyle, n as IAudioStyle, o as IAvatarStyle, p as IBackgroundImageStyle, q as IBadgeStyle, r as IBaseStyle, s as IBlockquoteStyle, t as IBoxStyle, u as IButtonStyle, v as ICardSegmentStyle, w as ICardStyle, x as ICarouselStyle, y as ICenterStyle, z as ICheckboxStyle, A as IChipStyle, C as ICodeStyle, D as IColorInputStyle, E as IColorPickerStyle, F as IComboboxStyle, G as IContainerStyle, H as IDatePickerStyle, J as IDividerStyle, K as IEntryListStyle, L as IEntryRecordDeleteStyle, M as IEntryRecordStyle, N as IFieldsetStyle, O as IFigureStyle, P as IFileInputStyle, Q as IFlexStyle, R as IFormLogStyle, U as IFormRecordStyle, V as IFormStyle, W as IGridColumnStyle, X as IGridStyle, Y as IGroupStyle, Z as IHighlightStyle, $ as IHtmlTagStyle, a0 as IImageStyle, a1 as IIndicatorStyle, a2 as IInputStyle, a3 as IKbdStyle, a4 as ILinkStyle, a5 as IListItemStyle, a6 as IListStyle, a7 as ILoginStyle, a8 as ILoopStyle, a9 as INotificationStyle, aa as INumberInputStyle, ab as IPaperStyle, a as IPluginStyleRegistryEntry, ac as IProfileStyle, ad as IProgressRootStyle, ae as IProgressSectionStyle, af as IProgressStyle, ag as IRadioStyle, ah as IRangeSliderStyle, ai as IRatingStyle, aj as IRegisterStyle, ak as IResetPasswordStyle, al as IRichTextEditorStyle, am as IScrollAreaStyle, an as ISegmentedControlStyle, ao as ISelectStyle, ap as IShowUserInputEntry, aq as IShowUserInputStyle, ar as ISimpleGridStyle, as as ISliderStyle, at as ISpaceStyle, au as ISpoilerStyle, av as IStackStyle, I as IStyleRegistryEntry, aw as ISwitchStyle, ax as ITabStyle, ay as ITabsStyle, az as ITextInputStyle, aA as ITextStyle, aB as ITextareaStyle, aC as IThemeIconStyle, aD as ITimelineStyle, aE as ITitleStyle, aF as ITwoFactorAuthStyle, aG as ITypographyStyle, aH as IUnknownStyle, aI as IValidateStyle, aJ as IVideoStyle, S as STYLE_REGISTRY, aK as TMantineAccordionChevronPosition, aL as TMantineAccordionDisableChevronRotation, aM as TMantineAccordionLoop, aN as TMantineAccordionMultiple, aO as TMantineBorder, aP as TMantineCardShadow, aQ as TMantineCheckboxLabelPosition, aR as TMantineCols, aS as TMantineDividerVariant, aT as TMantineGap, aU as TMantineGridOffset, aV as TMantineGridOrder, aW as TMantineHeight, aX as TMantineIconSize, aY as TMantineImageFit, aZ as TMantineLineClamp, a_ as TMantineListCenter, a$ as TMantineListStyleType, b0 as TMantineListType, b1 as TMantineListWithPadding, b2 as TMantinePaperShadow, b3 as TMantineProgressTransition, b4 as TMantineScrollAreaSize, b5 as TMantineScrollAreaType, b6 as TMantineTextAlign, b7 as TMantineTextDecoration, b8 as TMantineTextFontStyle, b9 as TMantineTextFontWeight, ba as TMantineTextInherit, bb as TMantineTextInputVariant, bc as TMantineTextSpan, bd as TMantineTextTransform, be as TMantineTextTruncate, bf as TMantineTextVariant, bg as TMantineTextareaAutosize, bh as TMantineTextareaResize, bi as TMantineTextareaVariant, bj as TMantineTimelineAlign, bk as TMantineTitleLineClamp, bl as TMantineTitleTextWrap, bm as TMantineTranslatable, bn as TMantineUseInputWrapper, bo as TMantineWidth, bp as TStyle, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from './styles.registry-B147FVHY.mjs';
3
3
  export { s as TMantineAccordionVariant, v as TMantineActionIconLoading, d as TMantineAlign, w as TMantineAllowNextClicks, x as TMantineAllowStepClick, y as TMantineAspectRatio, z as TMantineAutoContrast, o as TMantineAvatarVariant, n as TMantineBadgeVariant, A as TMantineBlock, B as TMantineCenterInline, C as TMantineChecked, D as TMantineChipChecked, E as TMantineChipMultiple, p as TMantineChipVariant, F as TMantineClampBehavior, G as TMantineCodeBlock, i as TMantineColor, H as TMantineColorFormat, I as TMantineColorInputSwatches, J as TMantineColorPickerSwatches, K as TMantineColorPickerSwatchesPerRow, L as TMantineCompact, M as TMantineContainerFluid, e as TMantineDirection, N as TMantineDisabled, k as TMantineFieldsetVariant, O as TMantineFileAccept, P as TMantineFileInputMultiple, Q as TMantineFluid, R as TMantineFullWidth, S as TMantineGridGrow, U as TMantineGridOverflow, g as TMantineGridSpan, V as TMantineGroupGrow, W as TMantineGroupWrap, X as TMantineGrow, Y as TMantineHighlight, q as TMantineIndicatorPosition, Z as TMantineInline, _ as TMantineIsLink, c as TMantineJustify, $ as TMantineKbdSize, a0 as TMantineLoading, a1 as TMantineMultiple, a2 as TMantineNotificationWithCloseButton, a3 as TMantineNumberInputDecimalScale, a4 as TMantineOpenInNewTab, h as TMantineOrientation, a5 as TMantineProcessing, T as TMantineRadius, a6 as TMantineRangeSliderMarks, a7 as TMantineRatingCount, a8 as TMantineRatingFractions, a9 as TMantineRatingReadonly, aa as TMantineReadonly, a as TMantineSize, ab as TMantineSpaceHorizontal, b as TMantineSpacing, l as TMantineSpoilerMaxHeight, ac as TMantineSwatches, ad as TMantineTabDisabled, t as TMantineTabsVariant, r as TMantineThemeIconVariant, u as TMantineTimelineLineVariant, j as TMantineTitleOrder, ae as TMantineUseMantineStyle, m as TMantineVariant, af as TMantineWithCloseButton, ag as TMantineWithIcon, f as TMantineWrap } from './common-B96dASgu.mjs';
4
4
  export { TAnyStyleName, TPluginStyleImplMap, TStyleImplMap, getRegistryEntry, getRegistryEntryAny, getStylePluginId, isKnownStyleName, isRegisteredStyleName } from './registry/index.mjs';
5
5
  export { COLOR_PALETTE, COLOR_SCALES, CONTAINER_SIZE_PX, FONT_SIZE_PX, ISpacingResolved, LINE_HEIGHT, RADIUS_PX, SPACING_PX, SPACING_TO_TAILWIND, TCanonicalColor, TCanonicalRadius, TCanonicalSpacing, colorToHex, radiusToPx, sizeToFontPx, spacingToPx } from './theme/index.mjs';
6
6
  export { sharedTailwindExtend, sharedTailwindPreset } from './theme/tailwind.mjs';
7
7
 
8
+ interface INoAccessStyle extends IStyleWithSpacing {
9
+ style_name: 'noAccess';
10
+ title?: IContentField<string>;
11
+ message?: IContentField<string>;
12
+ button_label?: IContentField<string>;
13
+ login_label?: IContentField<string>;
14
+ show_login?: IContentField<string>;
15
+ mantine_color?: IContentField<string>;
16
+ mantine_radius?: IContentField<string>;
17
+ mantine_shadow?: IContentField<string>;
18
+ mantine_button_variant?: IContentField<string>;
19
+ show_icon?: IContentField<string>;
20
+ }
21
+ interface INotFoundStyle extends IStyleWithSpacing {
22
+ style_name: 'notFound';
23
+ title?: IContentField<string>;
24
+ message?: IContentField<string>;
25
+ button_label?: IContentField<string>;
26
+ login_label?: IContentField<string>;
27
+ mantine_color?: IContentField<string>;
28
+ mantine_radius?: IContentField<string>;
29
+ mantine_shadow?: IContentField<string>;
30
+ mantine_button_variant?: IContentField<string>;
31
+ show_icon?: IContentField<string>;
32
+ }
33
+ interface IMissingStyle extends IStyleWithSpacing {
34
+ style_name: 'missing';
35
+ title?: IContentField<string>;
36
+ message?: IContentField<string>;
37
+ button_label?: IContentField<string>;
38
+ mantine_color?: IContentField<string>;
39
+ mantine_radius?: IContentField<string>;
40
+ mantine_shadow?: IContentField<string>;
41
+ mantine_button_variant?: IContentField<string>;
42
+ show_icon?: IContentField<string>;
43
+ }
44
+
8
45
  /**
9
46
  * Comprehensive page type system, single source of truth for both apps.
10
47
  */
@@ -515,9 +552,11 @@ interface IUpdatePreflightCheck {
515
552
  message: string;
516
553
  /**
517
554
  * Standardized compatibility-error fields. Version/compatibility checks
518
- * (e.g. `plugin_compatibility`) populate these so the admin/operator sees
519
- * exactly which component blocks which target and the range it requires.
520
- * Absent on non-compatibility checks.
555
+ * (`plugin_compatibility` for a core update blocked by an installed plugin;
556
+ * `frontend_compatibility` for a frontend-only update the running core
557
+ * forbids or that needs a different core) populate these so the
558
+ * admin/operator sees exactly which component blocks which target and the
559
+ * range it requires. Absent on non-compatibility checks.
521
560
  */
522
561
  component?: string;
523
562
  component_id?: string;
@@ -691,11 +730,16 @@ interface IFrontendUpdateRequest {
691
730
  type IFrontendUpdateReleases = IUpdateReleases;
692
731
  type IFrontendUpdateReleasesResponse = IUpdateReleasesResponse;
693
732
  /**
694
- * GET /admin/system/update/frontend/preflight — lightweight compatibility
695
- * verdict for a frontend-only target. Reuses {@link IUpdatePreflight}; the
696
- * frontend is stateless so `database.destructive`/`requires_backup` are always
697
- * false and the authoritative frontend ⇄ core + signature checks are deferred to
698
- * the manager. Aliased for call-site clarity.
733
+ * GET /admin/system/update/frontend/preflight — compatibility verdict for a
734
+ * frontend-only target. Reuses {@link IUpdatePreflight}; the frontend is
735
+ * stateless so `database.destructive`/`requires_backup` are always false. The
736
+ * frontend ⇄ core compatibility rule IS evaluated here (as a
737
+ * `frontend_compatibility` check) against the same signed registry metadata the
738
+ * SelfHelp Manager resolves, so the CMS verdict matches the manager's instead of
739
+ * always reporting "OK"; the manager still re-verifies signatures + image
740
+ * digests at execution and remains the final authority (it also enforces the
741
+ * running core's range from the instance lock when the core release has left the
742
+ * registry). Aliased for call-site clarity.
699
743
  */
700
744
  type IFrontendUpdatePreflight = IUpdatePreflight;
701
745
  type IFrontendUpdatePreflightResponse = IUpdatePreflightResponse;
@@ -802,6 +846,27 @@ interface InstanceResourceConfig {
802
846
  logMaxSizeMb?: number;
803
847
  logMaxFiles?: number;
804
848
  }
849
+ /**
850
+ * GFS (grandfather-father-son) retention numbers for SCHEDULED backups.
851
+ * Mirrors the manager's authoritative `BackupRetentionPolicy`
852
+ * (sh-manager/packages/schemas/src/types.ts).
853
+ */
854
+ interface BackupRetentionPolicy {
855
+ daily: number;
856
+ weekly: number;
857
+ monthly: number;
858
+ maxAgeDays: number;
859
+ }
860
+ /**
861
+ * Per-instance nightly backup schedule stored in the instance manifest.
862
+ * Mirrors the manager's authoritative `BackupSchedulePolicy`.
863
+ */
864
+ interface BackupSchedulePolicy {
865
+ enabled: boolean;
866
+ /** Daily run time as `HH:MM` in the manager server's local time. */
867
+ time: string;
868
+ retention: BackupRetentionPolicy;
869
+ }
805
870
  interface InstanceManifest {
806
871
  manifestVersion: number;
807
872
  instanceId: string;
@@ -820,6 +885,14 @@ interface InstanceManifest {
820
885
  routing: InstanceRouting;
821
886
  installedPlugins: InstalledPlugin[];
822
887
  resources?: InstanceResourceConfig;
888
+ /** Optional scheduled-backup policy; absent = no scheduled backups. */
889
+ backupSchedule?: BackupSchedulePolicy;
890
+ /**
891
+ * Operator-set non-secret environment overrides merged on top of the
892
+ * generated `.env`. Manager-controlled structural keys and secrets are
893
+ * never stored here. Mirrors the manager's authoritative manifest contract.
894
+ */
895
+ envOverrides?: Record<string, string>;
823
896
  }
824
897
  interface LockServiceEntry {
825
898
  image: string;
@@ -1409,4 +1482,4 @@ declare function transformPageData(apiPage: IRawPage): IPageItem;
1409
1482
  */
1410
1483
  declare function transformPagesData(pages: IRawPage[] | null | undefined): IPageItem[];
1411
1484
 
1412
- export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, type DatabaseMigrationMetadata, ENDPOINTS, type FrontendRelease, HEADER_CLIENT_TYPE, type IApiError, type IApiMeta, type IAssetSource, type IBaseApiResponse, type IBasePageInfo, type IBasePageSection, 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 IJwtPayload, type ILanguage, type ILanguageItem, type ILanguagePreference, type ILanguagePreferenceUpdateResponse, type ILanguagesResponse, type ILoginRequest, type ILoginSuccessData, type ILoginSuccessResponse, type ILogoutSuccessResponse, type IMaintenanceSetRequest, type IMeta, type IPageAccessTypeInfo, type IPageContent, type IPageField, type IPageFieldTranslation, type IPageFieldsData, type IPageItem, type IPageSectionWithFields, type IPageSectionsData, type IRefreshRequest, type IRefreshSuccessResponse, type IResetPasswordRequest, type IResetPasswordResponse, 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 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, PERMISSIONS, 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 TPermission, type TPlatform, TStyleName, type TSystemAdvisorySeverity, type TSystemComponentStatus, type TSystemDeployment, type TSystemHealthOverall, type TUpdateCheckSeverity, type TUpdateKind, type TUpdateOperationStatus, type TUpdatePreflightStatus, type TrustLevel, type TrustedKey, type TrustedKeysFile, type UpdatePreflightResult, type WorkerRelease, buildConditionContext, classifyClass, classifyClassString, evaluateCondition, findRemap, parseSpacing, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, spacingToClasses, transformPageData, transformPagesData };
1485
+ export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, type BackupRetentionPolicy, type BackupSchedulePolicy, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, type DatabaseMigrationMetadata, ENDPOINTS, type FrontendRelease, HEADER_CLIENT_TYPE, type IApiError, type IApiMeta, type IAssetSource, type IBaseApiResponse, type IBasePageInfo, type IBasePageSection, 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 IJwtPayload, type ILanguage, type ILanguageItem, type ILanguagePreference, type ILanguagePreferenceUpdateResponse, type ILanguagesResponse, type ILoginRequest, type ILoginSuccessData, type ILoginSuccessResponse, type ILogoutSuccessResponse, type IMaintenanceSetRequest, type IMeta, type IMissingStyle, type INoAccessStyle, type INotFoundStyle, type IPageAccessTypeInfo, type IPageContent, type IPageField, type IPageFieldTranslation, type IPageFieldsData, type IPageItem, type IPageSectionWithFields, type IPageSectionsData, type IRefreshRequest, type IRefreshSuccessResponse, type IResetPasswordRequest, type IResetPasswordResponse, type ISpacingValue, IStyleWithSpacing, 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 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, PERMISSIONS, 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 TPermission, type TPlatform, TStyleName, type TSystemAdvisorySeverity, type TSystemComponentStatus, type TSystemDeployment, type TSystemHealthOverall, type TUpdateCheckSeverity, type TUpdateKind, type TUpdateOperationStatus, type TUpdatePreflightStatus, type TrustLevel, type TrustedKey, type TrustedKeysFile, type UpdatePreflightResult, type WorkerRelease, buildConditionContext, classifyClass, classifyClassString, evaluateCondition, findRemap, parseSpacing, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, spacingToClasses, transformPageData, transformPagesData };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,47 @@
1
- import { T as TStyleName, f as IContentField } from './styles.registry-CtpsJ4gS.js';
2
- export { B as BASE_STYLE_REGISTRY, h as IAccordionItemStyle, i as IAccordionStyle, j as IActionIconStyle, k as IAlertStyle, l as IAspectRatioStyle, m as IAudioStyle, n as IAvatarStyle, o as IBackgroundImageStyle, p as IBadgeStyle, q as IBaseStyle, r as IBlockquoteStyle, s as IBoxStyle, t as IButtonStyle, u as ICardSegmentStyle, v as ICardStyle, w as ICarouselStyle, x as ICenterStyle, y as ICheckboxStyle, z as IChipStyle, A as ICodeStyle, C as IColorInputStyle, D as IColorPickerStyle, E as IComboboxStyle, F as IContainerStyle, G as IDatePickerStyle, H as IDividerStyle, J as IEntryListStyle, K as IEntryRecordDeleteStyle, L as IEntryRecordStyle, M as IFieldsetStyle, N as IFigureStyle, O as IFileInputStyle, P as IFlexStyle, Q as IFormLogStyle, R as IFormRecordStyle, U as IFormStyle, V as IGridColumnStyle, W as IGridStyle, X as IGroupStyle, Y as IHighlightStyle, Z as IHtmlTagStyle, $ as IImageStyle, a0 as IIndicatorStyle, a1 as IInputStyle, a2 as IKbdStyle, a3 as ILinkStyle, a4 as IListItemStyle, a5 as IListStyle, a6 as ILoginStyle, a7 as ILoopStyle, a8 as INotificationStyle, a9 as INumberInputStyle, aa as IPaperStyle, a as IPluginStyleRegistryEntry, ab as IProfileStyle, ac as IProgressRootStyle, ad as IProgressSectionStyle, ae as IProgressStyle, af as IRadioStyle, ag as IRangeSliderStyle, ah as IRatingStyle, ai as IRegisterStyle, aj as IResetPasswordStyle, ak as IRichTextEditorStyle, al as IScrollAreaStyle, am as ISegmentedControlStyle, an as ISelectStyle, ao as ISimpleGridStyle, ap as ISliderStyle, aq as ISpaceStyle, ar as ISpoilerStyle, as as IStackStyle, I as IStyleRegistryEntry, at as IStyleWithSpacing, au as ISwitchStyle, av as ITabStyle, aw as ITabsStyle, ax as ITextInputStyle, ay as ITextStyle, az as ITextareaStyle, aA as IThemeIconStyle, aB as ITimelineStyle, aC as ITitleStyle, aD as ITwoFactorAuthStyle, aE as ITypographyStyle, aF as IUnknownStyle, aG as IValidateStyle, aH as IVideoStyle, S as STYLE_REGISTRY, aI as TMantineAccordionChevronPosition, aJ as TMantineAccordionDisableChevronRotation, aK as TMantineAccordionLoop, aL as TMantineAccordionMultiple, aM as TMantineBorder, aN as TMantineCardShadow, aO as TMantineCheckboxLabelPosition, aP as TMantineCols, aQ as TMantineDividerVariant, aR as TMantineGap, aS as TMantineGridOffset, aT as TMantineGridOrder, aU as TMantineHeight, aV as TMantineIconSize, aW as TMantineImageFit, aX as TMantineLineClamp, aY as TMantineListCenter, aZ as TMantineListStyleType, a_ as TMantineListType, a$ as TMantineListWithPadding, b0 as TMantinePaperShadow, b1 as TMantineProgressTransition, b2 as TMantineScrollAreaSize, b3 as TMantineScrollAreaType, b4 as TMantineTextAlign, b5 as TMantineTextDecoration, b6 as TMantineTextFontStyle, b7 as TMantineTextFontWeight, b8 as TMantineTextInherit, b9 as TMantineTextInputVariant, ba as TMantineTextSpan, bb as TMantineTextTransform, bc as TMantineTextTruncate, bd as TMantineTextVariant, be as TMantineTextareaAutosize, bf as TMantineTextareaResize, bg as TMantineTextareaVariant, bh as TMantineTimelineAlign, bi as TMantineTitleLineClamp, bj as TMantineTitleTextWrap, bk as TMantineTranslatable, bl as TMantineUseInputWrapper, bm as TMantineWidth, bn as TStyle, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from './styles.registry-CtpsJ4gS.js';
1
+ import { f as IStyleWithSpacing, h as IContentField, T as TStyleName } from './styles.registry-D49K8F5z.js';
2
+ export { B as BASE_STYLE_REGISTRY, i as IAccordionItemStyle, j as IAccordionStyle, k as IActionIconStyle, l as IAlertStyle, m as IAspectRatioStyle, n as IAudioStyle, o as IAvatarStyle, p as IBackgroundImageStyle, q as IBadgeStyle, r as IBaseStyle, s as IBlockquoteStyle, t as IBoxStyle, u as IButtonStyle, v as ICardSegmentStyle, w as ICardStyle, x as ICarouselStyle, y as ICenterStyle, z as ICheckboxStyle, A as IChipStyle, C as ICodeStyle, D as IColorInputStyle, E as IColorPickerStyle, F as IComboboxStyle, G as IContainerStyle, H as IDatePickerStyle, J as IDividerStyle, K as IEntryListStyle, L as IEntryRecordDeleteStyle, M as IEntryRecordStyle, N as IFieldsetStyle, O as IFigureStyle, P as IFileInputStyle, Q as IFlexStyle, R as IFormLogStyle, U as IFormRecordStyle, V as IFormStyle, W as IGridColumnStyle, X as IGridStyle, Y as IGroupStyle, Z as IHighlightStyle, $ as IHtmlTagStyle, a0 as IImageStyle, a1 as IIndicatorStyle, a2 as IInputStyle, a3 as IKbdStyle, a4 as ILinkStyle, a5 as IListItemStyle, a6 as IListStyle, a7 as ILoginStyle, a8 as ILoopStyle, a9 as INotificationStyle, aa as INumberInputStyle, ab as IPaperStyle, a as IPluginStyleRegistryEntry, ac as IProfileStyle, ad as IProgressRootStyle, ae as IProgressSectionStyle, af as IProgressStyle, ag as IRadioStyle, ah as IRangeSliderStyle, ai as IRatingStyle, aj as IRegisterStyle, ak as IResetPasswordStyle, al as IRichTextEditorStyle, am as IScrollAreaStyle, an as ISegmentedControlStyle, ao as ISelectStyle, ap as IShowUserInputEntry, aq as IShowUserInputStyle, ar as ISimpleGridStyle, as as ISliderStyle, at as ISpaceStyle, au as ISpoilerStyle, av as IStackStyle, I as IStyleRegistryEntry, aw as ISwitchStyle, ax as ITabStyle, ay as ITabsStyle, az as ITextInputStyle, aA as ITextStyle, aB as ITextareaStyle, aC as IThemeIconStyle, aD as ITimelineStyle, aE as ITitleStyle, aF as ITwoFactorAuthStyle, aG as ITypographyStyle, aH as IUnknownStyle, aI as IValidateStyle, aJ as IVideoStyle, S as STYLE_REGISTRY, aK as TMantineAccordionChevronPosition, aL as TMantineAccordionDisableChevronRotation, aM as TMantineAccordionLoop, aN as TMantineAccordionMultiple, aO as TMantineBorder, aP as TMantineCardShadow, aQ as TMantineCheckboxLabelPosition, aR as TMantineCols, aS as TMantineDividerVariant, aT as TMantineGap, aU as TMantineGridOffset, aV as TMantineGridOrder, aW as TMantineHeight, aX as TMantineIconSize, aY as TMantineImageFit, aZ as TMantineLineClamp, a_ as TMantineListCenter, a$ as TMantineListStyleType, b0 as TMantineListType, b1 as TMantineListWithPadding, b2 as TMantinePaperShadow, b3 as TMantineProgressTransition, b4 as TMantineScrollAreaSize, b5 as TMantineScrollAreaType, b6 as TMantineTextAlign, b7 as TMantineTextDecoration, b8 as TMantineTextFontStyle, b9 as TMantineTextFontWeight, ba as TMantineTextInherit, bb as TMantineTextInputVariant, bc as TMantineTextSpan, bd as TMantineTextTransform, be as TMantineTextTruncate, bf as TMantineTextVariant, bg as TMantineTextareaAutosize, bh as TMantineTextareaResize, bi as TMantineTextareaVariant, bj as TMantineTimelineAlign, bk as TMantineTitleLineClamp, bl as TMantineTitleTextWrap, bm as TMantineTranslatable, bn as TMantineUseInputWrapper, bo as TMantineWidth, bp as TStyle, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from './styles.registry-D49K8F5z.js';
3
3
  export { s as TMantineAccordionVariant, v as TMantineActionIconLoading, d as TMantineAlign, w as TMantineAllowNextClicks, x as TMantineAllowStepClick, y as TMantineAspectRatio, z as TMantineAutoContrast, o as TMantineAvatarVariant, n as TMantineBadgeVariant, A as TMantineBlock, B as TMantineCenterInline, C as TMantineChecked, D as TMantineChipChecked, E as TMantineChipMultiple, p as TMantineChipVariant, F as TMantineClampBehavior, G as TMantineCodeBlock, i as TMantineColor, H as TMantineColorFormat, I as TMantineColorInputSwatches, J as TMantineColorPickerSwatches, K as TMantineColorPickerSwatchesPerRow, L as TMantineCompact, M as TMantineContainerFluid, e as TMantineDirection, N as TMantineDisabled, k as TMantineFieldsetVariant, O as TMantineFileAccept, P as TMantineFileInputMultiple, Q as TMantineFluid, R as TMantineFullWidth, S as TMantineGridGrow, U as TMantineGridOverflow, g as TMantineGridSpan, V as TMantineGroupGrow, W as TMantineGroupWrap, X as TMantineGrow, Y as TMantineHighlight, q as TMantineIndicatorPosition, Z as TMantineInline, _ as TMantineIsLink, c as TMantineJustify, $ as TMantineKbdSize, a0 as TMantineLoading, a1 as TMantineMultiple, a2 as TMantineNotificationWithCloseButton, a3 as TMantineNumberInputDecimalScale, a4 as TMantineOpenInNewTab, h as TMantineOrientation, a5 as TMantineProcessing, T as TMantineRadius, a6 as TMantineRangeSliderMarks, a7 as TMantineRatingCount, a8 as TMantineRatingFractions, a9 as TMantineRatingReadonly, aa as TMantineReadonly, a as TMantineSize, ab as TMantineSpaceHorizontal, b as TMantineSpacing, l as TMantineSpoilerMaxHeight, ac as TMantineSwatches, ad as TMantineTabDisabled, t as TMantineTabsVariant, r as TMantineThemeIconVariant, u as TMantineTimelineLineVariant, j as TMantineTitleOrder, ae as TMantineUseMantineStyle, m as TMantineVariant, af as TMantineWithCloseButton, ag as TMantineWithIcon, f as TMantineWrap } from './common-B96dASgu.js';
4
4
  export { TAnyStyleName, TPluginStyleImplMap, TStyleImplMap, getRegistryEntry, getRegistryEntryAny, getStylePluginId, isKnownStyleName, isRegisteredStyleName } from './registry/index.js';
5
5
  export { COLOR_PALETTE, COLOR_SCALES, CONTAINER_SIZE_PX, FONT_SIZE_PX, ISpacingResolved, LINE_HEIGHT, RADIUS_PX, SPACING_PX, SPACING_TO_TAILWIND, TCanonicalColor, TCanonicalRadius, TCanonicalSpacing, colorToHex, radiusToPx, sizeToFontPx, spacingToPx } from './theme/index.js';
6
6
  export { sharedTailwindExtend, sharedTailwindPreset } from './theme/tailwind.js';
7
7
 
8
+ interface INoAccessStyle extends IStyleWithSpacing {
9
+ style_name: 'noAccess';
10
+ title?: IContentField<string>;
11
+ message?: IContentField<string>;
12
+ button_label?: IContentField<string>;
13
+ login_label?: IContentField<string>;
14
+ show_login?: IContentField<string>;
15
+ mantine_color?: IContentField<string>;
16
+ mantine_radius?: IContentField<string>;
17
+ mantine_shadow?: IContentField<string>;
18
+ mantine_button_variant?: IContentField<string>;
19
+ show_icon?: IContentField<string>;
20
+ }
21
+ interface INotFoundStyle extends IStyleWithSpacing {
22
+ style_name: 'notFound';
23
+ title?: IContentField<string>;
24
+ message?: IContentField<string>;
25
+ button_label?: IContentField<string>;
26
+ login_label?: IContentField<string>;
27
+ mantine_color?: IContentField<string>;
28
+ mantine_radius?: IContentField<string>;
29
+ mantine_shadow?: IContentField<string>;
30
+ mantine_button_variant?: IContentField<string>;
31
+ show_icon?: IContentField<string>;
32
+ }
33
+ interface IMissingStyle extends IStyleWithSpacing {
34
+ style_name: 'missing';
35
+ title?: IContentField<string>;
36
+ message?: IContentField<string>;
37
+ button_label?: IContentField<string>;
38
+ mantine_color?: IContentField<string>;
39
+ mantine_radius?: IContentField<string>;
40
+ mantine_shadow?: IContentField<string>;
41
+ mantine_button_variant?: IContentField<string>;
42
+ show_icon?: IContentField<string>;
43
+ }
44
+
8
45
  /**
9
46
  * Comprehensive page type system, single source of truth for both apps.
10
47
  */
@@ -515,9 +552,11 @@ interface IUpdatePreflightCheck {
515
552
  message: string;
516
553
  /**
517
554
  * Standardized compatibility-error fields. Version/compatibility checks
518
- * (e.g. `plugin_compatibility`) populate these so the admin/operator sees
519
- * exactly which component blocks which target and the range it requires.
520
- * Absent on non-compatibility checks.
555
+ * (`plugin_compatibility` for a core update blocked by an installed plugin;
556
+ * `frontend_compatibility` for a frontend-only update the running core
557
+ * forbids or that needs a different core) populate these so the
558
+ * admin/operator sees exactly which component blocks which target and the
559
+ * range it requires. Absent on non-compatibility checks.
521
560
  */
522
561
  component?: string;
523
562
  component_id?: string;
@@ -691,11 +730,16 @@ interface IFrontendUpdateRequest {
691
730
  type IFrontendUpdateReleases = IUpdateReleases;
692
731
  type IFrontendUpdateReleasesResponse = IUpdateReleasesResponse;
693
732
  /**
694
- * GET /admin/system/update/frontend/preflight — lightweight compatibility
695
- * verdict for a frontend-only target. Reuses {@link IUpdatePreflight}; the
696
- * frontend is stateless so `database.destructive`/`requires_backup` are always
697
- * false and the authoritative frontend ⇄ core + signature checks are deferred to
698
- * the manager. Aliased for call-site clarity.
733
+ * GET /admin/system/update/frontend/preflight — compatibility verdict for a
734
+ * frontend-only target. Reuses {@link IUpdatePreflight}; the frontend is
735
+ * stateless so `database.destructive`/`requires_backup` are always false. The
736
+ * frontend ⇄ core compatibility rule IS evaluated here (as a
737
+ * `frontend_compatibility` check) against the same signed registry metadata the
738
+ * SelfHelp Manager resolves, so the CMS verdict matches the manager's instead of
739
+ * always reporting "OK"; the manager still re-verifies signatures + image
740
+ * digests at execution and remains the final authority (it also enforces the
741
+ * running core's range from the instance lock when the core release has left the
742
+ * registry). Aliased for call-site clarity.
699
743
  */
700
744
  type IFrontendUpdatePreflight = IUpdatePreflight;
701
745
  type IFrontendUpdatePreflightResponse = IUpdatePreflightResponse;
@@ -802,6 +846,27 @@ interface InstanceResourceConfig {
802
846
  logMaxSizeMb?: number;
803
847
  logMaxFiles?: number;
804
848
  }
849
+ /**
850
+ * GFS (grandfather-father-son) retention numbers for SCHEDULED backups.
851
+ * Mirrors the manager's authoritative `BackupRetentionPolicy`
852
+ * (sh-manager/packages/schemas/src/types.ts).
853
+ */
854
+ interface BackupRetentionPolicy {
855
+ daily: number;
856
+ weekly: number;
857
+ monthly: number;
858
+ maxAgeDays: number;
859
+ }
860
+ /**
861
+ * Per-instance nightly backup schedule stored in the instance manifest.
862
+ * Mirrors the manager's authoritative `BackupSchedulePolicy`.
863
+ */
864
+ interface BackupSchedulePolicy {
865
+ enabled: boolean;
866
+ /** Daily run time as `HH:MM` in the manager server's local time. */
867
+ time: string;
868
+ retention: BackupRetentionPolicy;
869
+ }
805
870
  interface InstanceManifest {
806
871
  manifestVersion: number;
807
872
  instanceId: string;
@@ -820,6 +885,14 @@ interface InstanceManifest {
820
885
  routing: InstanceRouting;
821
886
  installedPlugins: InstalledPlugin[];
822
887
  resources?: InstanceResourceConfig;
888
+ /** Optional scheduled-backup policy; absent = no scheduled backups. */
889
+ backupSchedule?: BackupSchedulePolicy;
890
+ /**
891
+ * Operator-set non-secret environment overrides merged on top of the
892
+ * generated `.env`. Manager-controlled structural keys and secrets are
893
+ * never stored here. Mirrors the manager's authoritative manifest contract.
894
+ */
895
+ envOverrides?: Record<string, string>;
823
896
  }
824
897
  interface LockServiceEntry {
825
898
  image: string;
@@ -1409,4 +1482,4 @@ declare function transformPageData(apiPage: IRawPage): IPageItem;
1409
1482
  */
1410
1483
  declare function transformPagesData(pages: IRawPage[] | null | undefined): IPageItem[];
1411
1484
 
1412
- export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, type DatabaseMigrationMetadata, ENDPOINTS, type FrontendRelease, HEADER_CLIENT_TYPE, type IApiError, type IApiMeta, type IAssetSource, type IBaseApiResponse, type IBasePageInfo, type IBasePageSection, 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 IJwtPayload, type ILanguage, type ILanguageItem, type ILanguagePreference, type ILanguagePreferenceUpdateResponse, type ILanguagesResponse, type ILoginRequest, type ILoginSuccessData, type ILoginSuccessResponse, type ILogoutSuccessResponse, type IMaintenanceSetRequest, type IMeta, type IPageAccessTypeInfo, type IPageContent, type IPageField, type IPageFieldTranslation, type IPageFieldsData, type IPageItem, type IPageSectionWithFields, type IPageSectionsData, type IRefreshRequest, type IRefreshSuccessResponse, type IResetPasswordRequest, type IResetPasswordResponse, 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 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, PERMISSIONS, 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 TPermission, type TPlatform, TStyleName, type TSystemAdvisorySeverity, type TSystemComponentStatus, type TSystemDeployment, type TSystemHealthOverall, type TUpdateCheckSeverity, type TUpdateKind, type TUpdateOperationStatus, type TUpdatePreflightStatus, type TrustLevel, type TrustedKey, type TrustedKeysFile, type UpdatePreflightResult, type WorkerRelease, buildConditionContext, classifyClass, classifyClassString, evaluateCondition, findRemap, parseSpacing, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, spacingToClasses, transformPageData, transformPagesData };
1485
+ export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, type BackupRetentionPolicy, type BackupSchedulePolicy, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, type DatabaseMigrationMetadata, ENDPOINTS, type FrontendRelease, HEADER_CLIENT_TYPE, type IApiError, type IApiMeta, type IAssetSource, type IBaseApiResponse, type IBasePageInfo, type IBasePageSection, 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 IJwtPayload, type ILanguage, type ILanguageItem, type ILanguagePreference, type ILanguagePreferenceUpdateResponse, type ILanguagesResponse, type ILoginRequest, type ILoginSuccessData, type ILoginSuccessResponse, type ILogoutSuccessResponse, type IMaintenanceSetRequest, type IMeta, type IMissingStyle, type INoAccessStyle, type INotFoundStyle, type IPageAccessTypeInfo, type IPageContent, type IPageField, type IPageFieldTranslation, type IPageFieldsData, type IPageItem, type IPageSectionWithFields, type IPageSectionsData, type IRefreshRequest, type IRefreshSuccessResponse, type IResetPasswordRequest, type IResetPasswordResponse, type ISpacingValue, IStyleWithSpacing, 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 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, PERMISSIONS, 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 TPermission, type TPlatform, TStyleName, type TSystemAdvisorySeverity, type TSystemComponentStatus, type TSystemDeployment, type TSystemHealthOverall, type TUpdateCheckSeverity, type TUpdateKind, type TUpdateOperationStatus, type TUpdatePreflightStatus, type TrustLevel, type TrustedKey, type TrustedKeysFile, type UpdatePreflightResult, type WorkerRelease, buildConditionContext, classifyClass, classifyClassString, evaluateCondition, findRemap, parseSpacing, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, spacingToClasses, 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-C8sBTLJb.mjs';
2
- import { I as IStyleRegistryEntry } from '../styles.registry-0MsmyRmF.mjs';
2
+ import { I as IStyleRegistryEntry } from '../styles.registry-B147FVHY.mjs';
3
3
  import '../common-B96dASgu.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-C8sBTLJb.js';
2
- import { I as IStyleRegistryEntry } from '../styles.registry-CtpsJ4gS.js';
2
+ import { I as IStyleRegistryEntry } from '../styles.registry-D49K8F5z.js';
3
3
  import '../common-B96dASgu.js';
4
4
 
5
5
  /**
@@ -395,12 +395,12 @@ function usePluginRealtime(options) {
395
395
  (0, import_react.useEffect)(() => {
396
396
  if (!enabled) {
397
397
  setIsOnline(false);
398
- return;
398
+ return void 0;
399
399
  }
400
400
  const factory = transportFactory ?? (isEventSourceAvailable() ? defaultTransportFactory : null);
401
401
  if (factory === null) {
402
402
  setIsOnline(false);
403
- return;
403
+ return void 0;
404
404
  }
405
405
  let cancelled = false;
406
406
  let transport = null;
@@ -412,7 +412,7 @@ function usePluginRealtime(options) {
412
412
  } catch (err) {
413
413
  setError(err instanceof Error ? err : new Error(String(err)));
414
414
  setIsOnline(false);
415
- return;
415
+ return void 0;
416
416
  }
417
417
  const eventName = `plugin/${pluginId}/${expandedTopic}`;
418
418
  const url = buildSseUrl(endpoint, pluginId, expandedTopic);
@@ -351,12 +351,12 @@ function usePluginRealtime(options) {
351
351
  useEffect(() => {
352
352
  if (!enabled) {
353
353
  setIsOnline(false);
354
- return;
354
+ return void 0;
355
355
  }
356
356
  const factory = transportFactory ?? (isEventSourceAvailable() ? defaultTransportFactory : null);
357
357
  if (factory === null) {
358
358
  setIsOnline(false);
359
- return;
359
+ return void 0;
360
360
  }
361
361
  let cancelled = false;
362
362
  let transport = null;
@@ -368,7 +368,7 @@ function usePluginRealtime(options) {
368
368
  } catch (err) {
369
369
  setError(err instanceof Error ? err : new Error(String(err)));
370
370
  setIsOnline(false);
371
- return;
371
+ return void 0;
372
372
  }
373
373
  const eventName = `plugin/${pluginId}/${expandedTopic}`;
374
374
  const url = buildSseUrl(endpoint, pluginId, expandedTopic);
@@ -1,5 +1,5 @@
1
- import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry } from '../styles.registry-0MsmyRmF.mjs';
2
- export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from '../styles.registry-0MsmyRmF.mjs';
1
+ import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry } from '../styles.registry-B147FVHY.mjs';
2
+ export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from '../styles.registry-B147FVHY.mjs';
3
3
  import '../common-B96dASgu.mjs';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry } from '../styles.registry-CtpsJ4gS.js';
2
- export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from '../styles.registry-CtpsJ4gS.js';
1
+ import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry } from '../styles.registry-D49K8F5z.js';
2
+ export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from '../styles.registry-D49K8F5z.js';
3
3
  import '../common-B96dASgu.js';
4
4
 
5
5
  /**
@@ -1027,6 +1027,37 @@ interface IProgressSectionStyle extends IBaseStyle {
1027
1027
  mantine_tooltip_position?: IContentField<string>;
1028
1028
  use_mantine_style?: IContentField<string>;
1029
1029
  }
1030
+ interface IShowUserInputEntry {
1031
+ record_id: number;
1032
+ id_users: number;
1033
+ _can_delete?: boolean;
1034
+ [key: string]: unknown;
1035
+ }
1036
+ interface IShowUserInputStyle extends IBaseStyle {
1037
+ style_name: 'showUserInput';
1038
+ own_entries_only?: IContentField<string>;
1039
+ show_timestamp?: IContentField<string>;
1040
+ dt_sortable?: IContentField<string>;
1041
+ dt_searching?: IContentField<string>;
1042
+ dt_paginate?: IContentField<string>;
1043
+ dt_info?: IContentField<string>;
1044
+ dt_default_order_column?: IContentField<string>;
1045
+ dt_default_order_dir?: IContentField<string>;
1046
+ csv_export?: IContentField<string>;
1047
+ delete_entry?: IContentField<string>;
1048
+ fields_map?: IContentField<string>;
1049
+ delete_modal_title?: IContentField<string>;
1050
+ delete_modal_body?: IContentField<string>;
1051
+ mantine_spacing_margin_padding?: IContentField<string>;
1052
+ mantine_table_striped?: IContentField<string>;
1053
+ mantine_table_highlight_on_hover?: IContentField<string>;
1054
+ mantine_table_with_table_border?: IContentField<string>;
1055
+ mantine_table_with_column_borders?: IContentField<string>;
1056
+ mantine_table_with_row_borders?: IContentField<string>;
1057
+ mantine_table_sticky_header?: IContentField<string>;
1058
+ mantine_table_caption_side?: IContentField<string>;
1059
+ entries?: IShowUserInputEntry[];
1060
+ }
1030
1061
 
1031
1062
  type TMantineAccordionMultiple = '0' | '1';
1032
1063
  type TMantineAccordionChevronPosition = 'left' | 'right';
@@ -2320,4 +2351,4 @@ declare function getPluginStyleRegistry(): Record<string, IPluginStyleRegistryEn
2320
2351
  */
2321
2352
  declare function _resetPluginStyleRegistry(): void;
2322
2353
 
2323
- export { type IImageStyle as $, type ICodeStyle as A, BASE_STYLE_REGISTRY as B, type IColorInputStyle as C, type IColorPickerStyle as D, type IComboboxStyle as E, type IContainerStyle as F, type IDatePickerStyle as G, type IDividerStyle as H, type IStyleRegistryEntry as I, type IEntryListStyle as J, type IEntryRecordDeleteStyle as K, type IEntryRecordStyle as L, type IFieldsetStyle as M, type IFigureStyle as N, type IFileInputStyle as O, type IFlexStyle as P, type IFormLogStyle as Q, type IFormRecordStyle as R, STYLE_REGISTRY as S, type TStyleName as T, type IFormStyle as U, type IGridColumnStyle as V, type IGridStyle as W, type IGroupStyle as X, type IHighlightStyle as Y, type IHtmlTagStyle as Z, type _AssertRegistryMatchesStyleName as _, type IPluginStyleRegistryEntry as a, type TMantineListWithPadding as a$, type IIndicatorStyle as a0, type IInputStyle as a1, type IKbdStyle as a2, type ILinkStyle as a3, type IListItemStyle as a4, type IListStyle as a5, type ILoginStyle as a6, type ILoopStyle as a7, type INotificationStyle as a8, type INumberInputStyle as a9, type IThemeIconStyle as aA, type ITimelineStyle as aB, type ITitleStyle as aC, type ITwoFactorAuthStyle as aD, type ITypographyStyle as aE, type IUnknownStyle as aF, type IValidateStyle as aG, type IVideoStyle as aH, type TMantineAccordionChevronPosition as aI, type TMantineAccordionDisableChevronRotation as aJ, type TMantineAccordionLoop as aK, type TMantineAccordionMultiple as aL, type TMantineBorder as aM, type TMantineCardShadow as aN, type TMantineCheckboxLabelPosition as aO, type TMantineCols as aP, type TMantineDividerVariant as aQ, type TMantineGap as aR, type TMantineGridOffset as aS, type TMantineGridOrder as aT, type TMantineHeight as aU, type TMantineIconSize as aV, type TMantineImageFit as aW, type TMantineLineClamp as aX, type TMantineListCenter as aY, type TMantineListStyleType as aZ, type TMantineListType as a_, type IPaperStyle as aa, type IProfileStyle as ab, type IProgressRootStyle as ac, type IProgressSectionStyle as ad, type IProgressStyle as ae, type IRadioStyle as af, type IRangeSliderStyle as ag, type IRatingStyle as ah, type IRegisterStyle as ai, type IResetPasswordStyle as aj, type IRichTextEditorStyle as ak, type IScrollAreaStyle as al, type ISegmentedControlStyle as am, type ISelectStyle as an, type ISimpleGridStyle as ao, type ISliderStyle as ap, type ISpaceStyle as aq, type ISpoilerStyle as ar, type IStackStyle as as, type IStyleWithSpacing as at, type ISwitchStyle as au, type ITabStyle as av, type ITabsStyle as aw, type ITextInputStyle as ax, type ITextStyle as ay, type ITextareaStyle as az, type TStyleRegistryKey as b, type TMantinePaperShadow as b0, type TMantineProgressTransition as b1, type TMantineScrollAreaSize as b2, type TMantineScrollAreaType as b3, type TMantineTextAlign as b4, type TMantineTextDecoration as b5, type TMantineTextFontStyle as b6, type TMantineTextFontWeight as b7, type TMantineTextInherit as b8, type TMantineTextInputVariant as b9, type TMantineTextSpan as ba, type TMantineTextTransform as bb, type TMantineTextTruncate as bc, type TMantineTextVariant as bd, type TMantineTextareaAutosize as be, type TMantineTextareaResize as bf, type TMantineTextareaVariant as bg, type TMantineTimelineAlign as bh, type TMantineTitleLineClamp as bi, type TMantineTitleTextWrap as bj, type TMantineTranslatable as bk, type TMantineUseInputWrapper as bl, type TMantineWidth as bm, type TStyle as bn, _resetPluginStyleRegistry as c, getPluginStyleRegistry as d, extendStyleRegistry as e, type IContentField as f, getMergedStyleRegistry as g, type IAccordionItemStyle as h, type IAccordionStyle as i, type IActionIconStyle as j, type IAlertStyle as k, type IAspectRatioStyle as l, type IAudioStyle as m, type IAvatarStyle as n, type IBackgroundImageStyle as o, type IBadgeStyle as p, type IBaseStyle as q, type IBlockquoteStyle as r, type IBoxStyle as s, type IButtonStyle as t, type ICardSegmentStyle as u, type ICardStyle as v, type ICarouselStyle as w, type ICenterStyle as x, type ICheckboxStyle as y, type IChipStyle as z };
2354
+ export { type IHtmlTagStyle as $, type IChipStyle as A, BASE_STYLE_REGISTRY as B, type ICodeStyle as C, type IColorInputStyle as D, type IColorPickerStyle as E, type IComboboxStyle as F, type IContainerStyle as G, type IDatePickerStyle as H, type IStyleRegistryEntry as I, type IDividerStyle as J, type IEntryListStyle as K, type IEntryRecordDeleteStyle as L, type IEntryRecordStyle as M, type IFieldsetStyle as N, type IFigureStyle as O, type IFileInputStyle as P, type IFlexStyle as Q, type IFormLogStyle as R, STYLE_REGISTRY as S, type TStyleName as T, type IFormRecordStyle as U, type IFormStyle as V, type IGridColumnStyle as W, type IGridStyle as X, type IGroupStyle as Y, type IHighlightStyle as Z, type _AssertRegistryMatchesStyleName as _, type IPluginStyleRegistryEntry as a, type TMantineListStyleType as a$, type IImageStyle as a0, type IIndicatorStyle as a1, type IInputStyle as a2, type IKbdStyle as a3, type ILinkStyle as a4, type IListItemStyle as a5, type IListStyle as a6, type ILoginStyle as a7, type ILoopStyle as a8, type INotificationStyle as a9, type ITextStyle as aA, type ITextareaStyle as aB, type IThemeIconStyle as aC, type ITimelineStyle as aD, type ITitleStyle as aE, type ITwoFactorAuthStyle as aF, type ITypographyStyle as aG, type IUnknownStyle as aH, type IValidateStyle as aI, type IVideoStyle as aJ, type TMantineAccordionChevronPosition as aK, type TMantineAccordionDisableChevronRotation as aL, type TMantineAccordionLoop as aM, type TMantineAccordionMultiple as aN, type TMantineBorder as aO, type TMantineCardShadow as aP, type TMantineCheckboxLabelPosition as aQ, type TMantineCols as aR, type TMantineDividerVariant as aS, type TMantineGap as aT, type TMantineGridOffset as aU, type TMantineGridOrder as aV, type TMantineHeight as aW, type TMantineIconSize as aX, type TMantineImageFit as aY, type TMantineLineClamp as aZ, type TMantineListCenter as a_, type INumberInputStyle as aa, type IPaperStyle as ab, type IProfileStyle as ac, type IProgressRootStyle as ad, type IProgressSectionStyle as ae, type IProgressStyle as af, type IRadioStyle as ag, type IRangeSliderStyle as ah, type IRatingStyle as ai, type IRegisterStyle as aj, type IResetPasswordStyle as ak, type IRichTextEditorStyle as al, type IScrollAreaStyle as am, type ISegmentedControlStyle as an, type ISelectStyle as ao, type IShowUserInputEntry as ap, type IShowUserInputStyle as aq, type ISimpleGridStyle as ar, type ISliderStyle as as, type ISpaceStyle as at, type ISpoilerStyle as au, type IStackStyle as av, type ISwitchStyle as aw, type ITabStyle as ax, type ITabsStyle as ay, type ITextInputStyle as az, type TStyleRegistryKey as b, type TMantineListType as b0, type TMantineListWithPadding as b1, type TMantinePaperShadow as b2, type TMantineProgressTransition as b3, type TMantineScrollAreaSize as b4, type TMantineScrollAreaType as b5, type TMantineTextAlign as b6, type TMantineTextDecoration as b7, type TMantineTextFontStyle as b8, type TMantineTextFontWeight as b9, type TMantineTextInherit as ba, type TMantineTextInputVariant as bb, type TMantineTextSpan as bc, type TMantineTextTransform as bd, type TMantineTextTruncate as be, type TMantineTextVariant as bf, type TMantineTextareaAutosize as bg, type TMantineTextareaResize as bh, type TMantineTextareaVariant as bi, type TMantineTimelineAlign as bj, type TMantineTitleLineClamp as bk, type TMantineTitleTextWrap as bl, type TMantineTranslatable as bm, type TMantineUseInputWrapper as bn, type TMantineWidth as bo, type TStyle as bp, _resetPluginStyleRegistry as c, getPluginStyleRegistry as d, extendStyleRegistry as e, type IStyleWithSpacing as f, getMergedStyleRegistry as g, type IContentField as h, type IAccordionItemStyle as i, type IAccordionStyle as j, type IActionIconStyle as k, type IAlertStyle as l, type IAspectRatioStyle as m, type IAudioStyle as n, type IAvatarStyle as o, type IBackgroundImageStyle as p, type IBadgeStyle as q, type IBaseStyle as r, type IBlockquoteStyle as s, type IBoxStyle as t, type IButtonStyle as u, type ICardSegmentStyle as v, type ICardStyle as w, type ICarouselStyle as x, type ICenterStyle as y, type ICheckboxStyle as z };
@@ -1027,6 +1027,37 @@ interface IProgressSectionStyle extends IBaseStyle {
1027
1027
  mantine_tooltip_position?: IContentField<string>;
1028
1028
  use_mantine_style?: IContentField<string>;
1029
1029
  }
1030
+ interface IShowUserInputEntry {
1031
+ record_id: number;
1032
+ id_users: number;
1033
+ _can_delete?: boolean;
1034
+ [key: string]: unknown;
1035
+ }
1036
+ interface IShowUserInputStyle extends IBaseStyle {
1037
+ style_name: 'showUserInput';
1038
+ own_entries_only?: IContentField<string>;
1039
+ show_timestamp?: IContentField<string>;
1040
+ dt_sortable?: IContentField<string>;
1041
+ dt_searching?: IContentField<string>;
1042
+ dt_paginate?: IContentField<string>;
1043
+ dt_info?: IContentField<string>;
1044
+ dt_default_order_column?: IContentField<string>;
1045
+ dt_default_order_dir?: IContentField<string>;
1046
+ csv_export?: IContentField<string>;
1047
+ delete_entry?: IContentField<string>;
1048
+ fields_map?: IContentField<string>;
1049
+ delete_modal_title?: IContentField<string>;
1050
+ delete_modal_body?: IContentField<string>;
1051
+ mantine_spacing_margin_padding?: IContentField<string>;
1052
+ mantine_table_striped?: IContentField<string>;
1053
+ mantine_table_highlight_on_hover?: IContentField<string>;
1054
+ mantine_table_with_table_border?: IContentField<string>;
1055
+ mantine_table_with_column_borders?: IContentField<string>;
1056
+ mantine_table_with_row_borders?: IContentField<string>;
1057
+ mantine_table_sticky_header?: IContentField<string>;
1058
+ mantine_table_caption_side?: IContentField<string>;
1059
+ entries?: IShowUserInputEntry[];
1060
+ }
1030
1061
 
1031
1062
  type TMantineAccordionMultiple = '0' | '1';
1032
1063
  type TMantineAccordionChevronPosition = 'left' | 'right';
@@ -2320,4 +2351,4 @@ declare function getPluginStyleRegistry(): Record<string, IPluginStyleRegistryEn
2320
2351
  */
2321
2352
  declare function _resetPluginStyleRegistry(): void;
2322
2353
 
2323
- export { type IImageStyle as $, type ICodeStyle as A, BASE_STYLE_REGISTRY as B, type IColorInputStyle as C, type IColorPickerStyle as D, type IComboboxStyle as E, type IContainerStyle as F, type IDatePickerStyle as G, type IDividerStyle as H, type IStyleRegistryEntry as I, type IEntryListStyle as J, type IEntryRecordDeleteStyle as K, type IEntryRecordStyle as L, type IFieldsetStyle as M, type IFigureStyle as N, type IFileInputStyle as O, type IFlexStyle as P, type IFormLogStyle as Q, type IFormRecordStyle as R, STYLE_REGISTRY as S, type TStyleName as T, type IFormStyle as U, type IGridColumnStyle as V, type IGridStyle as W, type IGroupStyle as X, type IHighlightStyle as Y, type IHtmlTagStyle as Z, type _AssertRegistryMatchesStyleName as _, type IPluginStyleRegistryEntry as a, type TMantineListWithPadding as a$, type IIndicatorStyle as a0, type IInputStyle as a1, type IKbdStyle as a2, type ILinkStyle as a3, type IListItemStyle as a4, type IListStyle as a5, type ILoginStyle as a6, type ILoopStyle as a7, type INotificationStyle as a8, type INumberInputStyle as a9, type IThemeIconStyle as aA, type ITimelineStyle as aB, type ITitleStyle as aC, type ITwoFactorAuthStyle as aD, type ITypographyStyle as aE, type IUnknownStyle as aF, type IValidateStyle as aG, type IVideoStyle as aH, type TMantineAccordionChevronPosition as aI, type TMantineAccordionDisableChevronRotation as aJ, type TMantineAccordionLoop as aK, type TMantineAccordionMultiple as aL, type TMantineBorder as aM, type TMantineCardShadow as aN, type TMantineCheckboxLabelPosition as aO, type TMantineCols as aP, type TMantineDividerVariant as aQ, type TMantineGap as aR, type TMantineGridOffset as aS, type TMantineGridOrder as aT, type TMantineHeight as aU, type TMantineIconSize as aV, type TMantineImageFit as aW, type TMantineLineClamp as aX, type TMantineListCenter as aY, type TMantineListStyleType as aZ, type TMantineListType as a_, type IPaperStyle as aa, type IProfileStyle as ab, type IProgressRootStyle as ac, type IProgressSectionStyle as ad, type IProgressStyle as ae, type IRadioStyle as af, type IRangeSliderStyle as ag, type IRatingStyle as ah, type IRegisterStyle as ai, type IResetPasswordStyle as aj, type IRichTextEditorStyle as ak, type IScrollAreaStyle as al, type ISegmentedControlStyle as am, type ISelectStyle as an, type ISimpleGridStyle as ao, type ISliderStyle as ap, type ISpaceStyle as aq, type ISpoilerStyle as ar, type IStackStyle as as, type IStyleWithSpacing as at, type ISwitchStyle as au, type ITabStyle as av, type ITabsStyle as aw, type ITextInputStyle as ax, type ITextStyle as ay, type ITextareaStyle as az, type TStyleRegistryKey as b, type TMantinePaperShadow as b0, type TMantineProgressTransition as b1, type TMantineScrollAreaSize as b2, type TMantineScrollAreaType as b3, type TMantineTextAlign as b4, type TMantineTextDecoration as b5, type TMantineTextFontStyle as b6, type TMantineTextFontWeight as b7, type TMantineTextInherit as b8, type TMantineTextInputVariant as b9, type TMantineTextSpan as ba, type TMantineTextTransform as bb, type TMantineTextTruncate as bc, type TMantineTextVariant as bd, type TMantineTextareaAutosize as be, type TMantineTextareaResize as bf, type TMantineTextareaVariant as bg, type TMantineTimelineAlign as bh, type TMantineTitleLineClamp as bi, type TMantineTitleTextWrap as bj, type TMantineTranslatable as bk, type TMantineUseInputWrapper as bl, type TMantineWidth as bm, type TStyle as bn, _resetPluginStyleRegistry as c, getPluginStyleRegistry as d, extendStyleRegistry as e, type IContentField as f, getMergedStyleRegistry as g, type IAccordionItemStyle as h, type IAccordionStyle as i, type IActionIconStyle as j, type IAlertStyle as k, type IAspectRatioStyle as l, type IAudioStyle as m, type IAvatarStyle as n, type IBackgroundImageStyle as o, type IBadgeStyle as p, type IBaseStyle as q, type IBlockquoteStyle as r, type IBoxStyle as s, type IButtonStyle as t, type ICardSegmentStyle as u, type ICardStyle as v, type ICarouselStyle as w, type ICenterStyle as x, type ICheckboxStyle as y, type IChipStyle as z };
2354
+ export { type IHtmlTagStyle as $, type IChipStyle as A, BASE_STYLE_REGISTRY as B, type ICodeStyle as C, type IColorInputStyle as D, type IColorPickerStyle as E, type IComboboxStyle as F, type IContainerStyle as G, type IDatePickerStyle as H, type IStyleRegistryEntry as I, type IDividerStyle as J, type IEntryListStyle as K, type IEntryRecordDeleteStyle as L, type IEntryRecordStyle as M, type IFieldsetStyle as N, type IFigureStyle as O, type IFileInputStyle as P, type IFlexStyle as Q, type IFormLogStyle as R, STYLE_REGISTRY as S, type TStyleName as T, type IFormRecordStyle as U, type IFormStyle as V, type IGridColumnStyle as W, type IGridStyle as X, type IGroupStyle as Y, type IHighlightStyle as Z, type _AssertRegistryMatchesStyleName as _, type IPluginStyleRegistryEntry as a, type TMantineListStyleType as a$, type IImageStyle as a0, type IIndicatorStyle as a1, type IInputStyle as a2, type IKbdStyle as a3, type ILinkStyle as a4, type IListItemStyle as a5, type IListStyle as a6, type ILoginStyle as a7, type ILoopStyle as a8, type INotificationStyle as a9, type ITextStyle as aA, type ITextareaStyle as aB, type IThemeIconStyle as aC, type ITimelineStyle as aD, type ITitleStyle as aE, type ITwoFactorAuthStyle as aF, type ITypographyStyle as aG, type IUnknownStyle as aH, type IValidateStyle as aI, type IVideoStyle as aJ, type TMantineAccordionChevronPosition as aK, type TMantineAccordionDisableChevronRotation as aL, type TMantineAccordionLoop as aM, type TMantineAccordionMultiple as aN, type TMantineBorder as aO, type TMantineCardShadow as aP, type TMantineCheckboxLabelPosition as aQ, type TMantineCols as aR, type TMantineDividerVariant as aS, type TMantineGap as aT, type TMantineGridOffset as aU, type TMantineGridOrder as aV, type TMantineHeight as aW, type TMantineIconSize as aX, type TMantineImageFit as aY, type TMantineLineClamp as aZ, type TMantineListCenter as a_, type INumberInputStyle as aa, type IPaperStyle as ab, type IProfileStyle as ac, type IProgressRootStyle as ad, type IProgressSectionStyle as ae, type IProgressStyle as af, type IRadioStyle as ag, type IRangeSliderStyle as ah, type IRatingStyle as ai, type IRegisterStyle as aj, type IResetPasswordStyle as ak, type IRichTextEditorStyle as al, type IScrollAreaStyle as am, type ISegmentedControlStyle as an, type ISelectStyle as ao, type IShowUserInputEntry as ap, type IShowUserInputStyle as aq, type ISimpleGridStyle as ar, type ISliderStyle as as, type ISpaceStyle as at, type ISpoilerStyle as au, type IStackStyle as av, type ISwitchStyle as aw, type ITabStyle as ax, type ITabsStyle as ay, type ITextInputStyle as az, type TStyleRegistryKey as b, type TMantineListType as b0, type TMantineListWithPadding as b1, type TMantinePaperShadow as b2, type TMantineProgressTransition as b3, type TMantineScrollAreaSize as b4, type TMantineScrollAreaType as b5, type TMantineTextAlign as b6, type TMantineTextDecoration as b7, type TMantineTextFontStyle as b8, type TMantineTextFontWeight as b9, type TMantineTextInherit as ba, type TMantineTextInputVariant as bb, type TMantineTextSpan as bc, type TMantineTextTransform as bd, type TMantineTextTruncate as be, type TMantineTextVariant as bf, type TMantineTextareaAutosize as bg, type TMantineTextareaResize as bh, type TMantineTextareaVariant as bi, type TMantineTimelineAlign as bj, type TMantineTitleLineClamp as bk, type TMantineTitleTextWrap as bl, type TMantineTranslatable as bm, type TMantineUseInputWrapper as bn, type TMantineWidth as bo, type TStyle as bp, _resetPluginStyleRegistry as c, getPluginStyleRegistry as d, extendStyleRegistry as e, type IStyleWithSpacing as f, getMergedStyleRegistry as g, type IContentField as h, type IAccordionItemStyle as i, type IAccordionStyle as j, type IActionIconStyle as k, type IAlertStyle as l, type IAspectRatioStyle as m, type IAudioStyle as n, type IAvatarStyle as o, type IBackgroundImageStyle as p, type IBadgeStyle as q, type IBaseStyle as r, type IBlockquoteStyle as s, type IBoxStyle as t, type IButtonStyle as u, type ICardSegmentStyle as v, type ICardStyle as w, type ICarouselStyle as x, type ICenterStyle as y, type ICheckboxStyle as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@selfhelp/shared",
3
- "version": "1.6.1",
3
+ "version": "1.7.2",
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",
@@ -54,7 +54,8 @@
54
54
  "scripts": {
55
55
  "build": "tsup src/index.ts src/registry/index.ts src/theme/index.ts src/theme/tailwind.ts src/plugin-sdk/index.ts src/testing/index.ts --format cjs,esm --dts --clean --no-splitting",
56
56
  "dev": "tsup src/index.ts src/registry/index.ts src/theme/index.ts src/theme/tailwind.ts src/plugin-sdk/index.ts src/testing/index.ts --format cjs,esm --dts --watch --no-splitting",
57
- "lint": "eslint . --ext .ts",
57
+ "lint": "eslint .",
58
+ "lint:fix": "eslint . --fix",
58
59
  "typecheck": "tsc --noEmit",
59
60
  "test": "vitest run --passWithNoTests",
60
61
  "test:coverage": "vitest run --coverage",
@@ -78,17 +79,19 @@
78
79
  }
79
80
  },
80
81
  "devDependencies": {
82
+ "@eslint/js": "^9.18.0",
81
83
  "@types/json-logic-js": "^2.0.8",
82
84
  "@types/node": "^22.10.0",
83
85
  "@types/react": "^19.2.15",
84
- "@typescript-eslint/eslint-plugin": "^8.0.0",
85
- "@typescript-eslint/parser": "^8.0.0",
86
86
  "@vitest/coverage-istanbul": "^2.1.9",
87
87
  "eslint": "^9.18.0",
88
+ "eslint-plugin-unused-imports": "^4.1.4",
89
+ "globals": "^14.0.0",
88
90
  "license-check-and-add": "^4.0.5",
89
91
  "react": "^19.2.6",
90
92
  "tsup": "^8.3.5",
91
93
  "typescript": "^5.6.0",
94
+ "typescript-eslint": "^8.18.0",
92
95
  "vitest": "^2.1.0"
93
96
  },
94
97
  "publishConfig": {
@@ -100,7 +100,7 @@ export function evaluateCondition(
100
100
  // jsonLogic typings are loose; the result of any boolean rule is
101
101
  // a boolean, but rules like {var: 'x'} can return raw values, so
102
102
  // we coerce.
103
- const raw = jsonLogic.apply(parsed as jsonLogic.RulesLogic, context as Record<string, unknown>);
103
+ const raw: unknown = jsonLogic.apply(parsed as jsonLogic.RulesLogic, context);
104
104
  const visible = Boolean(raw);
105
105
  return options.withDebug
106
106
  ? { visible, debug: { condition: trimmed, result: visible, variables: { ...context } } }
@@ -167,7 +167,7 @@ export function usePluginRealtime<TPayload = unknown>(
167
167
  useEffect(() => {
168
168
  if (!enabled) {
169
169
  setIsOnline(false);
170
- return;
170
+ return undefined;
171
171
  }
172
172
 
173
173
  const factory = transportFactory ?? (isEventSourceAvailable() ? defaultTransportFactory : null);
@@ -176,7 +176,7 @@ export function usePluginRealtime<TPayload = unknown>(
176
176
  // `react-native-sse`). Stay quiet — the plan forbids polling
177
177
  // here; the consumer must render an offline banner instead.
178
178
  setIsOnline(false);
179
- return;
179
+ return undefined;
180
180
  }
181
181
 
182
182
  let cancelled = false;
@@ -190,7 +190,7 @@ export function usePluginRealtime<TPayload = unknown>(
190
190
  } catch (err) {
191
191
  setError(err instanceof Error ? err : new Error(String(err)));
192
192
  setIsOnline(false);
193
- return;
193
+ return undefined;
194
194
  }
195
195
 
196
196
  const eventName = `plugin/${pluginId}/${expandedTopic}`;
@@ -468,12 +468,12 @@ export interface ILockFileSeed {
468
468
  export function seedFromLockFile(lockJson: unknown): ILockFileSeed {
469
469
  const plugins: ILockFilePluginEntry[] = [];
470
470
  if (lockJson && typeof lockJson === 'object' && 'plugins' in lockJson) {
471
- const raw = (lockJson as { plugins: unknown }).plugins;
471
+ const raw = lockJson.plugins;
472
472
  if (raw && typeof raw === 'object') {
473
473
  for (const [pluginId, entry] of Object.entries(raw as Record<string, unknown>)) {
474
474
  const version =
475
475
  entry && typeof entry === 'object' && 'version' in entry
476
- ? String((entry as { version: unknown }).version)
476
+ ? String(entry.version)
477
477
  : '0.0.0';
478
478
  plugins.push({ pluginId, version });
479
479
  }
@@ -67,7 +67,7 @@ describe('release-channel enum parity', () => {
67
67
  const matches = [...src.matchAll(/channel:\s*\{\s*enum:\s*(\[[^\]]*\])/g)];
68
68
  expect(matches.length).toBeGreaterThan(0);
69
69
  for (const m of matches) {
70
- const arr = JSON.parse(m[1]!.replace(/'/g, '"')) as string[];
70
+ const arr = JSON.parse(m[1].replace(/'/g, '"')) as string[];
71
71
  expect([...arr].sort()).toEqual([...CANONICAL].sort());
72
72
  }
73
73
  });
@@ -53,7 +53,7 @@ const SPEC: Record<string, { required: string[]; optional?: string[]; kind?: str
53
53
  },
54
54
  'instance-manifest.json': {
55
55
  required: ['manifestVersion', 'instanceId', 'displayName', 'domain', 'mode', 'createdAt', 'updatedAt', 'registry', 'versions', 'images', 'routing', 'installedPlugins'],
56
- optional: ['resources'],
56
+ optional: ['resources', 'backupSchedule', 'envOverrides'],
57
57
  },
58
58
  'instance-lock.json': {
59
59
  required: ['lockfileVersion', 'generatedAt', 'registry', 'core', 'services', 'plugins'],
@@ -50,7 +50,7 @@ function interfaceFields(source: string, name: string): string[] {
50
50
  const line = rawLine.trim();
51
51
  if (line === '' || line.startsWith('//') || line.startsWith('*') || line.startsWith('/*')) continue;
52
52
  const m = /^([A-Za-z_][A-Za-z0-9_]*)\??\s*:/.exec(line);
53
- if (m) fields.push(m[1]!);
53
+ if (m) fields.push(m[1]);
54
54
  }
55
55
  return fields;
56
56
  }
@@ -4,27 +4,27 @@
4
4
  */
5
5
 
6
6
  import { describe, expect, it } from 'vitest';
7
- import { SYSTEM_ENDPOINTS } from '../system';
8
- import type {
9
- IFrontendUpdatePreflight,
10
- IFrontendUpdateReleases,
11
- IFrontendUpdateRequest,
12
- IFrontendUpdateRequestResponse,
13
- IMaintenanceSetRequest,
14
- ISystemAdvisories,
15
- ISystemAdvisoriesResponse,
16
- ISystemAdvisory,
17
- ISystemHealth,
18
- ISystemMaintenance,
19
- ISystemVersion,
20
- IUpdatePreflight,
21
- IUpdateRequest,
22
- IUpdateRequestResponse,
23
- IUpdateStatus,
24
- IUpdateStatusResponse,
25
- TSystemAdvisorySeverity,
26
- TUpdateKind,
27
- TUpdateOperationStatus,
7
+ import {
8
+ SYSTEM_ENDPOINTS,
9
+ type IFrontendUpdatePreflight,
10
+ type IFrontendUpdateReleases,
11
+ type IFrontendUpdateRequest,
12
+ type IFrontendUpdateRequestResponse,
13
+ type IMaintenanceSetRequest,
14
+ type ISystemAdvisories,
15
+ type ISystemAdvisoriesResponse,
16
+ type ISystemAdvisory,
17
+ type ISystemHealth,
18
+ type ISystemMaintenance,
19
+ type ISystemVersion,
20
+ type IUpdatePreflight,
21
+ type IUpdateRequest,
22
+ type IUpdateRequestResponse,
23
+ type IUpdateStatus,
24
+ type IUpdateStatusResponse,
25
+ type TSystemAdvisorySeverity,
26
+ type TUpdateKind,
27
+ type TUpdateOperationStatus,
28
28
  } from '../system';
29
29
 
30
30
  /**
@@ -226,7 +226,7 @@ describe('system maintenance contracts', () => {
226
226
  rollback: { automatic_before_migrations: true, automatic_after_destructive_migrations: false },
227
227
  };
228
228
 
229
- const check = blocked.checks[0]!;
229
+ const check = blocked.checks[0];
230
230
  expect(blocked.status).toBe('blocked');
231
231
  expect(check.component).toBe('plugin');
232
232
  expect(check.component_id).toBe('sh2-shp-survey-js');
@@ -178,9 +178,11 @@ export interface IUpdatePreflightCheck {
178
178
  message: string;
179
179
  /**
180
180
  * Standardized compatibility-error fields. Version/compatibility checks
181
- * (e.g. `plugin_compatibility`) populate these so the admin/operator sees
182
- * exactly which component blocks which target and the range it requires.
183
- * Absent on non-compatibility checks.
181
+ * (`plugin_compatibility` for a core update blocked by an installed plugin;
182
+ * `frontend_compatibility` for a frontend-only update the running core
183
+ * forbids or that needs a different core) populate these so the
184
+ * admin/operator sees exactly which component blocks which target and the
185
+ * range it requires. Absent on non-compatibility checks.
184
186
  */
185
187
  component?: string;
186
188
  component_id?: string;
@@ -385,11 +387,16 @@ export type IFrontendUpdateReleases = IUpdateReleases;
385
387
  export type IFrontendUpdateReleasesResponse = IUpdateReleasesResponse;
386
388
 
387
389
  /**
388
- * GET /admin/system/update/frontend/preflight — lightweight compatibility
389
- * verdict for a frontend-only target. Reuses {@link IUpdatePreflight}; the
390
- * frontend is stateless so `database.destructive`/`requires_backup` are always
391
- * false and the authoritative frontend ⇄ core + signature checks are deferred to
392
- * the manager. Aliased for call-site clarity.
390
+ * GET /admin/system/update/frontend/preflight — compatibility verdict for a
391
+ * frontend-only target. Reuses {@link IUpdatePreflight}; the frontend is
392
+ * stateless so `database.destructive`/`requires_backup` are always false. The
393
+ * frontend ⇄ core compatibility rule IS evaluated here (as a
394
+ * `frontend_compatibility` check) against the same signed registry metadata the
395
+ * SelfHelp Manager resolves, so the CMS verdict matches the manager's instead of
396
+ * always reporting "OK"; the manager still re-verifies signatures + image
397
+ * digests at execution and remains the final authority (it also enforces the
398
+ * running core's range from the instance lock when the core release has left the
399
+ * registry). Aliased for call-site clarity.
393
400
  */
394
401
  export type IFrontendUpdatePreflight = IUpdatePreflight;
395
402
  export type IFrontendUpdatePreflightResponse = IUpdatePreflightResponse;
@@ -121,6 +121,29 @@ export interface InstanceResourceConfig {
121
121
  logMaxFiles?: number;
122
122
  }
123
123
 
124
+ /**
125
+ * GFS (grandfather-father-son) retention numbers for SCHEDULED backups.
126
+ * Mirrors the manager's authoritative `BackupRetentionPolicy`
127
+ * (sh-manager/packages/schemas/src/types.ts).
128
+ */
129
+ export interface BackupRetentionPolicy {
130
+ daily: number;
131
+ weekly: number;
132
+ monthly: number;
133
+ maxAgeDays: number;
134
+ }
135
+
136
+ /**
137
+ * Per-instance nightly backup schedule stored in the instance manifest.
138
+ * Mirrors the manager's authoritative `BackupSchedulePolicy`.
139
+ */
140
+ export interface BackupSchedulePolicy {
141
+ enabled: boolean;
142
+ /** Daily run time as `HH:MM` in the manager server's local time. */
143
+ time: string;
144
+ retention: BackupRetentionPolicy;
145
+ }
146
+
124
147
  export interface InstanceManifest {
125
148
  manifestVersion: number;
126
149
  instanceId: string;
@@ -139,6 +162,14 @@ export interface InstanceManifest {
139
162
  routing: InstanceRouting;
140
163
  installedPlugins: InstalledPlugin[];
141
164
  resources?: InstanceResourceConfig;
165
+ /** Optional scheduled-backup policy; absent = no scheduled backups. */
166
+ backupSchedule?: BackupSchedulePolicy;
167
+ /**
168
+ * Operator-set non-secret environment overrides merged on top of the
169
+ * generated `.env`. Manager-controlled structural keys and secrets are
170
+ * never stored here. Mirrors the manager's authoritative manifest contract.
171
+ */
172
+ envOverrides?: Record<string, string>;
142
173
  }
143
174
 
144
175
  // ---------------------------------------------------------------------------
@@ -4,6 +4,7 @@ SPDX-License-Identifier: MPL-2.0
4
4
  */
5
5
  export * from './styles/base';
6
6
  export * from './styles/auth';
7
+ export * from './styles/error';
7
8
  export * from './styles/layout';
8
9
  export * from './styles/typography';
9
10
  export * from './styles/media';
@@ -202,4 +202,4 @@ export interface IProfileStyle extends IStyleWithSpacing {
202
202
  alert_del_fail?: IContentField<string>;
203
203
  alert_del_success?: IContentField<string>;
204
204
  alert_success?: IContentField<string>;
205
- }
205
+ }
@@ -0,0 +1,44 @@
1
+ /*
2
+ SPDX-FileCopyrightText: 2026 Humdek, University of Bern
3
+ SPDX-License-Identifier: MPL-2.0
4
+ */
5
+ import type { IContentField, IStyleWithSpacing } from './base';
6
+
7
+ export interface INoAccessStyle extends IStyleWithSpacing {
8
+ style_name: 'noAccess';
9
+ title?: IContentField<string>;
10
+ message?: IContentField<string>;
11
+ button_label?: IContentField<string>;
12
+ login_label?: IContentField<string>;
13
+ show_login?: IContentField<string>;
14
+ mantine_color?: IContentField<string>;
15
+ mantine_radius?: IContentField<string>;
16
+ mantine_shadow?: IContentField<string>;
17
+ mantine_button_variant?: IContentField<string>;
18
+ show_icon?: IContentField<string>;
19
+ }
20
+
21
+ export interface INotFoundStyle extends IStyleWithSpacing {
22
+ style_name: 'notFound';
23
+ title?: IContentField<string>;
24
+ message?: IContentField<string>;
25
+ button_label?: IContentField<string>;
26
+ login_label?: IContentField<string>;
27
+ mantine_color?: IContentField<string>;
28
+ mantine_radius?: IContentField<string>;
29
+ mantine_shadow?: IContentField<string>;
30
+ mantine_button_variant?: IContentField<string>;
31
+ show_icon?: IContentField<string>;
32
+ }
33
+
34
+ export interface IMissingStyle extends IStyleWithSpacing {
35
+ style_name: 'missing';
36
+ title?: IContentField<string>;
37
+ message?: IContentField<string>;
38
+ button_label?: IContentField<string>;
39
+ mantine_color?: IContentField<string>;
40
+ mantine_radius?: IContentField<string>;
41
+ mantine_shadow?: IContentField<string>;
42
+ mantine_button_variant?: IContentField<string>;
43
+ show_icon?: IContentField<string>;
44
+ }
@@ -437,3 +437,36 @@ export interface IProgressSectionStyle extends IBaseStyle {
437
437
  mantine_tooltip_position?: IContentField<string>;
438
438
  use_mantine_style?: IContentField<string>;
439
439
  }
440
+
441
+ export interface IShowUserInputEntry {
442
+ record_id: number;
443
+ id_users: number;
444
+ _can_delete?: boolean;
445
+ [key: string]: unknown;
446
+ }
447
+
448
+ export interface IShowUserInputStyle extends IBaseStyle {
449
+ style_name: 'showUserInput';
450
+ own_entries_only?: IContentField<string>;
451
+ show_timestamp?: IContentField<string>;
452
+ dt_sortable?: IContentField<string>;
453
+ dt_searching?: IContentField<string>;
454
+ dt_paginate?: IContentField<string>;
455
+ dt_info?: IContentField<string>;
456
+ dt_default_order_column?: IContentField<string>;
457
+ dt_default_order_dir?: IContentField<string>;
458
+ csv_export?: IContentField<string>;
459
+ delete_entry?: IContentField<string>;
460
+ fields_map?: IContentField<string>;
461
+ delete_modal_title?: IContentField<string>;
462
+ delete_modal_body?: IContentField<string>;
463
+ mantine_spacing_margin_padding?: IContentField<string>;
464
+ mantine_table_striped?: IContentField<string>;
465
+ mantine_table_highlight_on_hover?: IContentField<string>;
466
+ mantine_table_with_table_border?: IContentField<string>;
467
+ mantine_table_with_column_borders?: IContentField<string>;
468
+ mantine_table_with_row_borders?: IContentField<string>;
469
+ mantine_table_sticky_header?: IContentField<string>;
470
+ mantine_table_caption_side?: IContentField<string>;
471
+ entries?: IShowUserInputEntry[];
472
+ }
@@ -55,7 +55,10 @@ export function spacingToClasses(
55
55
  spacingToTailwind: Record<string, string>
56
56
  ): string[] {
57
57
  const classes: string[] = [];
58
- for (const [key, raw] of Object.entries(spacing)) {
58
+ // `Object.entries` widens the value of an index-signature-free interface to
59
+ // `any`; restate the real `ISpacingValue` value type so the computed lookup
60
+ // below stays type-safe. Runtime behaviour is unchanged.
61
+ for (const [key, raw] of Object.entries(spacing) as Array<[string, string | undefined]>) {
59
62
  if (!raw) continue;
60
63
  const tail = spacingToTailwind[raw] ?? raw;
61
64
  classes.push(`${key}-${tail}`);