@selfhelp/shared 1.7.0 → 1.8.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 +60 -0
- package/dist/index.d.mts +49 -13
- package/dist/index.d.ts +49 -13
- package/dist/index.js +5 -5
- package/dist/index.mjs +5 -5
- package/dist/plugin-sdk/index.d.mts +1 -1
- package/dist/plugin-sdk/index.d.ts +1 -1
- package/dist/plugin-sdk/index.js +8 -8
- package/dist/plugin-sdk/index.mjs +8 -8
- package/dist/registry/index.d.mts +2 -2
- package/dist/registry/index.d.ts +2 -2
- package/dist/registry/index.js +5 -5
- package/dist/registry/index.mjs +5 -5
- package/dist/{styles.registry-D49K8F5z.d.ts → styles.registry-ClluRYkN.d.ts} +17 -17
- package/dist/{styles.registry-B147FVHY.d.mts → styles.registry-nl8uzvMN.d.mts} +17 -17
- package/package.json +7 -4
- package/src/condition/evaluate.ts +1 -1
- package/src/plugin-sdk/realtime.ts +3 -3
- package/src/registry/styles.registry.ts +5 -5
- package/src/testing/index.ts +2 -2
- package/src/types/__tests__/channel-parity.test.ts +1 -1
- package/src/types/__tests__/distribution.test.ts +1 -1
- package/src/types/api/__tests__/compatibility-error-parity.test.ts +1 -1
- package/src/types/api/__tests__/system.test.ts +22 -22
- package/src/types/api/system.ts +15 -8
- package/src/types/distribution.ts +31 -0
- package/src/types/styles/auth.ts +2 -2
- package/src/types/styles/base.ts +1 -1
- package/src/types/styles/composite.ts +3 -3
- package/src/types/styles/error.ts +2 -2
- package/src/types/styles/forms.ts +1 -1
- package/src/utils/spacing.ts +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,66 @@ 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.8.0
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- **BREAKING (shipped as a minor by request): CMS style names are now
|
|
17
|
+
kebab-case.** The `style_name` discriminator on the core style contracts was
|
|
18
|
+
renamed from camelCase to kebab-case so the cross-repo style catalog uses one
|
|
19
|
+
casing everywhere (backend `styles` seeds/DB, this package, the frontend
|
|
20
|
+
`BasicStyle` dispatcher, and the mobile renderers). Renamed: `resetPassword` →
|
|
21
|
+
`reset-password`, `twoFactorAuth` → `two-factor-auth`, `noAccess` →
|
|
22
|
+
`no-access`, `notFound` → `not-found`, `entryList` → `entry-list`,
|
|
23
|
+
`entryRecord` → `entry-record`, `entryRecordDelete` → `entry-record-delete`,
|
|
24
|
+
`showUserInput` → `show-user-input`. The TypeScript interface names
|
|
25
|
+
(`IResetPasswordStyle`, `IEntryListStyle`, …) are unchanged — only the
|
|
26
|
+
`style_name` string literal moved.
|
|
27
|
+
- Because this is a breaking contract change released as a **minor** (1.8.0),
|
|
28
|
+
consumers on a `^1.7.x` range pick it up on their next install. It must land in
|
|
29
|
+
lockstep: the backend renames the matching `styles.name` rows (sections
|
|
30
|
+
reference styles by FK id, so it is a metadata rename, not a content
|
|
31
|
+
migration), and the frontend/mobile update their local style-name unions +
|
|
32
|
+
dispatcher keys in the same release.
|
|
33
|
+
- `AGENTS.md` now mandates kebab-case style names; the previous "preserve legacy
|
|
34
|
+
camelCase names" guidance was reversed.
|
|
35
|
+
|
|
36
|
+
## v1.7.2
|
|
37
|
+
|
|
38
|
+
### Added
|
|
39
|
+
|
|
40
|
+
- `InstanceManifest` now models the optional `backupSchedule`
|
|
41
|
+
(`BackupSchedulePolicy` + `BackupRetentionPolicy`) and `envOverrides` fields,
|
|
42
|
+
mirroring the manager's authoritative manifest contract
|
|
43
|
+
(`sh-manager/packages/schemas/src/types.ts`). Both are optional — additive and
|
|
44
|
+
backward compatible. This restores the cross-repo `distribution.test.ts`
|
|
45
|
+
parity check, which was red against the manager's `instance-manifest.json`
|
|
46
|
+
example fixture.
|
|
47
|
+
|
|
48
|
+
### Changed
|
|
49
|
+
|
|
50
|
+
- **Lint is now a blocking CI gate.** `npm run lint -- --max-warnings=0` runs on
|
|
51
|
+
every PR/push to `main` (`plugin-sdk-check.yml`) and before npm publish
|
|
52
|
+
(`publish.yml` now runs headers → lint → typecheck → build → test before
|
|
53
|
+
`npm publish`). The strict, type-aware ESLint flat config already existed but
|
|
54
|
+
was not enforced by any workflow; no lint rules were changed and no runtime
|
|
55
|
+
behavior changed.
|
|
56
|
+
|
|
57
|
+
## v1.7.1
|
|
58
|
+
|
|
59
|
+
### Changed
|
|
60
|
+
|
|
61
|
+
- Documented the `frontend_compatibility` preflight check code in the
|
|
62
|
+
system-maintenance contract (`types/api/system.ts`). The frontend-only update
|
|
63
|
+
preflight (`IFrontendUpdatePreflight`) now carries the standardized
|
|
64
|
+
`ICompatibilityError` fields under a `frontend_compatibility` check when the
|
|
65
|
+
running core forbids the target frontend, or the target frontend needs a
|
|
66
|
+
different core — the bidirectional frontend ⇄ core rule the SelfHelp Manager
|
|
67
|
+
enforces, now mirrored by the CMS so its verdict matches the manager's instead
|
|
68
|
+
of always reporting "OK". No shape change: `IUpdatePreflightCheck` already
|
|
69
|
+
carries `code` plus the compatibility fields, so this is a documentation /
|
|
70
|
+
contract-clarification release (additive, backward compatible).
|
|
71
|
+
|
|
12
72
|
## v1.7.0
|
|
13
73
|
|
|
14
74
|
### Added
|
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { f as IStyleWithSpacing, h as IContentField, T as TStyleName } from './styles.registry-
|
|
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-
|
|
1
|
+
import { f as IStyleWithSpacing, h as IContentField, T as TStyleName } from './styles.registry-nl8uzvMN.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-nl8uzvMN.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
8
|
interface INoAccessStyle extends IStyleWithSpacing {
|
|
9
|
-
style_name: '
|
|
9
|
+
style_name: 'no-access';
|
|
10
10
|
title?: IContentField<string>;
|
|
11
11
|
message?: IContentField<string>;
|
|
12
12
|
button_label?: IContentField<string>;
|
|
@@ -19,7 +19,7 @@ interface INoAccessStyle extends IStyleWithSpacing {
|
|
|
19
19
|
show_icon?: IContentField<string>;
|
|
20
20
|
}
|
|
21
21
|
interface INotFoundStyle extends IStyleWithSpacing {
|
|
22
|
-
style_name: '
|
|
22
|
+
style_name: 'not-found';
|
|
23
23
|
title?: IContentField<string>;
|
|
24
24
|
message?: IContentField<string>;
|
|
25
25
|
button_label?: IContentField<string>;
|
|
@@ -552,9 +552,11 @@ interface IUpdatePreflightCheck {
|
|
|
552
552
|
message: string;
|
|
553
553
|
/**
|
|
554
554
|
* Standardized compatibility-error fields. Version/compatibility checks
|
|
555
|
-
* (
|
|
556
|
-
*
|
|
557
|
-
*
|
|
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.
|
|
558
560
|
*/
|
|
559
561
|
component?: string;
|
|
560
562
|
component_id?: string;
|
|
@@ -728,11 +730,16 @@ interface IFrontendUpdateRequest {
|
|
|
728
730
|
type IFrontendUpdateReleases = IUpdateReleases;
|
|
729
731
|
type IFrontendUpdateReleasesResponse = IUpdateReleasesResponse;
|
|
730
732
|
/**
|
|
731
|
-
* GET /admin/system/update/frontend/preflight —
|
|
732
|
-
*
|
|
733
|
-
*
|
|
734
|
-
*
|
|
735
|
-
* the
|
|
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.
|
|
736
743
|
*/
|
|
737
744
|
type IFrontendUpdatePreflight = IUpdatePreflight;
|
|
738
745
|
type IFrontendUpdatePreflightResponse = IUpdatePreflightResponse;
|
|
@@ -839,6 +846,27 @@ interface InstanceResourceConfig {
|
|
|
839
846
|
logMaxSizeMb?: number;
|
|
840
847
|
logMaxFiles?: number;
|
|
841
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
|
+
}
|
|
842
870
|
interface InstanceManifest {
|
|
843
871
|
manifestVersion: number;
|
|
844
872
|
instanceId: string;
|
|
@@ -857,6 +885,14 @@ interface InstanceManifest {
|
|
|
857
885
|
routing: InstanceRouting;
|
|
858
886
|
installedPlugins: InstalledPlugin[];
|
|
859
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>;
|
|
860
896
|
}
|
|
861
897
|
interface LockServiceEntry {
|
|
862
898
|
image: string;
|
|
@@ -1446,4 +1482,4 @@ declare function transformPageData(apiPage: IRawPage): IPageItem;
|
|
|
1446
1482
|
*/
|
|
1447
1483
|
declare function transformPagesData(pages: IRawPage[] | null | undefined): IPageItem[];
|
|
1448
1484
|
|
|
1449
|
-
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 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 };
|
|
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,12 +1,12 @@
|
|
|
1
|
-
import { f as IStyleWithSpacing, h as IContentField, T as TStyleName } from './styles.registry-
|
|
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-
|
|
1
|
+
import { f as IStyleWithSpacing, h as IContentField, T as TStyleName } from './styles.registry-ClluRYkN.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-ClluRYkN.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
8
|
interface INoAccessStyle extends IStyleWithSpacing {
|
|
9
|
-
style_name: '
|
|
9
|
+
style_name: 'no-access';
|
|
10
10
|
title?: IContentField<string>;
|
|
11
11
|
message?: IContentField<string>;
|
|
12
12
|
button_label?: IContentField<string>;
|
|
@@ -19,7 +19,7 @@ interface INoAccessStyle extends IStyleWithSpacing {
|
|
|
19
19
|
show_icon?: IContentField<string>;
|
|
20
20
|
}
|
|
21
21
|
interface INotFoundStyle extends IStyleWithSpacing {
|
|
22
|
-
style_name: '
|
|
22
|
+
style_name: 'not-found';
|
|
23
23
|
title?: IContentField<string>;
|
|
24
24
|
message?: IContentField<string>;
|
|
25
25
|
button_label?: IContentField<string>;
|
|
@@ -552,9 +552,11 @@ interface IUpdatePreflightCheck {
|
|
|
552
552
|
message: string;
|
|
553
553
|
/**
|
|
554
554
|
* Standardized compatibility-error fields. Version/compatibility checks
|
|
555
|
-
* (
|
|
556
|
-
*
|
|
557
|
-
*
|
|
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.
|
|
558
560
|
*/
|
|
559
561
|
component?: string;
|
|
560
562
|
component_id?: string;
|
|
@@ -728,11 +730,16 @@ interface IFrontendUpdateRequest {
|
|
|
728
730
|
type IFrontendUpdateReleases = IUpdateReleases;
|
|
729
731
|
type IFrontendUpdateReleasesResponse = IUpdateReleasesResponse;
|
|
730
732
|
/**
|
|
731
|
-
* GET /admin/system/update/frontend/preflight —
|
|
732
|
-
*
|
|
733
|
-
*
|
|
734
|
-
*
|
|
735
|
-
* the
|
|
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.
|
|
736
743
|
*/
|
|
737
744
|
type IFrontendUpdatePreflight = IUpdatePreflight;
|
|
738
745
|
type IFrontendUpdatePreflightResponse = IUpdatePreflightResponse;
|
|
@@ -839,6 +846,27 @@ interface InstanceResourceConfig {
|
|
|
839
846
|
logMaxSizeMb?: number;
|
|
840
847
|
logMaxFiles?: number;
|
|
841
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
|
+
}
|
|
842
870
|
interface InstanceManifest {
|
|
843
871
|
manifestVersion: number;
|
|
844
872
|
instanceId: string;
|
|
@@ -857,6 +885,14 @@ interface InstanceManifest {
|
|
|
857
885
|
routing: InstanceRouting;
|
|
858
886
|
installedPlugins: InstalledPlugin[];
|
|
859
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>;
|
|
860
896
|
}
|
|
861
897
|
interface LockServiceEntry {
|
|
862
898
|
image: string;
|
|
@@ -1446,4 +1482,4 @@ declare function transformPageData(apiPage: IRawPage): IPageItem;
|
|
|
1446
1482
|
*/
|
|
1447
1483
|
declare function transformPagesData(pages: IRawPage[] | null | undefined): IPageItem[];
|
|
1448
1484
|
|
|
1449
|
-
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 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 };
|
|
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.js
CHANGED
|
@@ -167,8 +167,8 @@ var BASE_STYLE_REGISTRY = {
|
|
|
167
167
|
login: { description: "User login form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
168
168
|
register: { description: "User registration form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
169
169
|
validate: { description: "Email/account validation flow", category: "auth", frontendOnly: true, canHaveChildren: true },
|
|
170
|
-
|
|
171
|
-
|
|
170
|
+
"reset-password": { description: "Reset password form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
171
|
+
"two-factor-auth": { description: "Two-factor auth code form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
172
172
|
profile: { description: "User profile management", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
173
173
|
// ===== layout =====
|
|
174
174
|
container: { description: "Mantine Container with responsive max-width", category: "layout", frontendOnly: true, canHaveChildren: true },
|
|
@@ -248,9 +248,9 @@ var BASE_STYLE_REGISTRY = {
|
|
|
248
248
|
timeline: { description: "Mantine Timeline", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
249
249
|
list: { description: "Mantine List", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
250
250
|
"list-item": { description: "Mantine List.Item", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
251
|
+
"entry-list": { description: "Data-driven list of entries (form-log table)", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
252
|
+
"entry-record": { description: "Single-record container", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
253
|
+
"entry-record-delete": { description: "Inline delete confirmation for an entry", category: "composite", frontendOnly: true, canHaveChildren: false },
|
|
254
254
|
loop: { description: "Loop / repeater over backend-provided rows", category: "composite", frontendOnly: true, canHaveChildren: true }
|
|
255
255
|
};
|
|
256
256
|
var STYLE_REGISTRY = BASE_STYLE_REGISTRY;
|
package/dist/index.mjs
CHANGED
|
@@ -80,8 +80,8 @@ var BASE_STYLE_REGISTRY = {
|
|
|
80
80
|
login: { description: "User login form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
81
81
|
register: { description: "User registration form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
82
82
|
validate: { description: "Email/account validation flow", category: "auth", frontendOnly: true, canHaveChildren: true },
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
"reset-password": { description: "Reset password form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
84
|
+
"two-factor-auth": { description: "Two-factor auth code form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
85
85
|
profile: { description: "User profile management", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
86
86
|
// ===== layout =====
|
|
87
87
|
container: { description: "Mantine Container with responsive max-width", category: "layout", frontendOnly: true, canHaveChildren: true },
|
|
@@ -161,9 +161,9 @@ var BASE_STYLE_REGISTRY = {
|
|
|
161
161
|
timeline: { description: "Mantine Timeline", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
162
162
|
list: { description: "Mantine List", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
163
163
|
"list-item": { description: "Mantine List.Item", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
"entry-list": { description: "Data-driven list of entries (form-log table)", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
165
|
+
"entry-record": { description: "Single-record container", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
166
|
+
"entry-record-delete": { description: "Inline delete confirmation for an entry", category: "composite", frontendOnly: true, canHaveChildren: false },
|
|
167
167
|
loop: { description: "Loop / repeater over backend-provided rows", category: "composite", frontendOnly: true, canHaveChildren: true }
|
|
168
168
|
};
|
|
169
169
|
var STYLE_REGISTRY = BASE_STYLE_REGISTRY;
|
|
@@ -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-
|
|
2
|
+
import { I as IStyleRegistryEntry } from '../styles.registry-nl8uzvMN.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-
|
|
2
|
+
import { I as IStyleRegistryEntry } from '../styles.registry-ClluRYkN.js';
|
|
3
3
|
import '../common-B96dASgu.js';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/plugin-sdk/index.js
CHANGED
|
@@ -180,8 +180,8 @@ var BASE_STYLE_REGISTRY = {
|
|
|
180
180
|
login: { description: "User login form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
181
181
|
register: { description: "User registration form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
182
182
|
validate: { description: "Email/account validation flow", category: "auth", frontendOnly: true, canHaveChildren: true },
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
"reset-password": { description: "Reset password form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
184
|
+
"two-factor-auth": { description: "Two-factor auth code form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
185
185
|
profile: { description: "User profile management", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
186
186
|
// ===== layout =====
|
|
187
187
|
container: { description: "Mantine Container with responsive max-width", category: "layout", frontendOnly: true, canHaveChildren: true },
|
|
@@ -261,9 +261,9 @@ var BASE_STYLE_REGISTRY = {
|
|
|
261
261
|
timeline: { description: "Mantine Timeline", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
262
262
|
list: { description: "Mantine List", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
263
263
|
"list-item": { description: "Mantine List.Item", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
264
|
+
"entry-list": { description: "Data-driven list of entries (form-log table)", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
265
|
+
"entry-record": { description: "Single-record container", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
266
|
+
"entry-record-delete": { description: "Inline delete confirmation for an entry", category: "composite", frontendOnly: true, canHaveChildren: false },
|
|
267
267
|
loop: { description: "Loop / repeater over backend-provided rows", category: "composite", frontendOnly: true, canHaveChildren: true }
|
|
268
268
|
};
|
|
269
269
|
var PLUGIN_STYLE_REGISTRY = {};
|
|
@@ -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);
|
|
@@ -136,8 +136,8 @@ var BASE_STYLE_REGISTRY = {
|
|
|
136
136
|
login: { description: "User login form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
137
137
|
register: { description: "User registration form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
138
138
|
validate: { description: "Email/account validation flow", category: "auth", frontendOnly: true, canHaveChildren: true },
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
"reset-password": { description: "Reset password form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
140
|
+
"two-factor-auth": { description: "Two-factor auth code form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
141
141
|
profile: { description: "User profile management", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
142
142
|
// ===== layout =====
|
|
143
143
|
container: { description: "Mantine Container with responsive max-width", category: "layout", frontendOnly: true, canHaveChildren: true },
|
|
@@ -217,9 +217,9 @@ var BASE_STYLE_REGISTRY = {
|
|
|
217
217
|
timeline: { description: "Mantine Timeline", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
218
218
|
list: { description: "Mantine List", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
219
219
|
"list-item": { description: "Mantine List.Item", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
220
|
+
"entry-list": { description: "Data-driven list of entries (form-log table)", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
221
|
+
"entry-record": { description: "Single-record container", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
222
|
+
"entry-record-delete": { description: "Inline delete confirmation for an entry", category: "composite", frontendOnly: true, canHaveChildren: false },
|
|
223
223
|
loop: { description: "Loop / repeater over backend-provided rows", category: "composite", frontendOnly: true, canHaveChildren: true }
|
|
224
224
|
};
|
|
225
225
|
var PLUGIN_STYLE_REGISTRY = {};
|
|
@@ -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-
|
|
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-
|
|
1
|
+
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry } from '../styles.registry-nl8uzvMN.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-nl8uzvMN.mjs';
|
|
3
3
|
import '../common-B96dASgu.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 } from '../styles.registry-
|
|
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-
|
|
1
|
+
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry } from '../styles.registry-ClluRYkN.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-ClluRYkN.js';
|
|
3
3
|
import '../common-B96dASgu.js';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/registry/index.js
CHANGED
|
@@ -40,8 +40,8 @@ var BASE_STYLE_REGISTRY = {
|
|
|
40
40
|
login: { description: "User login form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
41
41
|
register: { description: "User registration form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
42
42
|
validate: { description: "Email/account validation flow", category: "auth", frontendOnly: true, canHaveChildren: true },
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
"reset-password": { description: "Reset password form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
44
|
+
"two-factor-auth": { description: "Two-factor auth code form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
45
45
|
profile: { description: "User profile management", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
46
46
|
// ===== layout =====
|
|
47
47
|
container: { description: "Mantine Container with responsive max-width", category: "layout", frontendOnly: true, canHaveChildren: true },
|
|
@@ -121,9 +121,9 @@ var BASE_STYLE_REGISTRY = {
|
|
|
121
121
|
timeline: { description: "Mantine Timeline", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
122
122
|
list: { description: "Mantine List", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
123
123
|
"list-item": { description: "Mantine List.Item", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
"entry-list": { description: "Data-driven list of entries (form-log table)", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
125
|
+
"entry-record": { description: "Single-record container", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
126
|
+
"entry-record-delete": { description: "Inline delete confirmation for an entry", category: "composite", frontendOnly: true, canHaveChildren: false },
|
|
127
127
|
loop: { description: "Loop / repeater over backend-provided rows", category: "composite", frontendOnly: true, canHaveChildren: true }
|
|
128
128
|
};
|
|
129
129
|
var STYLE_REGISTRY = BASE_STYLE_REGISTRY;
|
package/dist/registry/index.mjs
CHANGED
|
@@ -4,8 +4,8 @@ var BASE_STYLE_REGISTRY = {
|
|
|
4
4
|
login: { description: "User login form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
5
5
|
register: { description: "User registration form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
6
6
|
validate: { description: "Email/account validation flow", category: "auth", frontendOnly: true, canHaveChildren: true },
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
"reset-password": { description: "Reset password form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
8
|
+
"two-factor-auth": { description: "Two-factor auth code form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
9
9
|
profile: { description: "User profile management", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
10
10
|
// ===== layout =====
|
|
11
11
|
container: { description: "Mantine Container with responsive max-width", category: "layout", frontendOnly: true, canHaveChildren: true },
|
|
@@ -85,9 +85,9 @@ var BASE_STYLE_REGISTRY = {
|
|
|
85
85
|
timeline: { description: "Mantine Timeline", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
86
86
|
list: { description: "Mantine List", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
87
87
|
"list-item": { description: "Mantine List.Item", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
"entry-list": { description: "Data-driven list of entries (form-log table)", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
89
|
+
"entry-record": { description: "Single-record container", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
90
|
+
"entry-record-delete": { description: "Inline delete confirmation for an entry", category: "composite", frontendOnly: true, canHaveChildren: false },
|
|
91
91
|
loop: { description: "Loop / repeater over backend-provided rows", category: "composite", frontendOnly: true, canHaveChildren: true }
|
|
92
92
|
};
|
|
93
93
|
var STYLE_REGISTRY = BASE_STYLE_REGISTRY;
|