@selfhelp/shared 1.14.23 → 1.15.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 +67 -0
- package/dist/{common-udJ0O8qC.d.mts → common-qaDIAYS3.d.mts} +5 -4
- package/dist/{common-udJ0O8qC.d.ts → common-qaDIAYS3.d.ts} +5 -4
- package/dist/index.d.mts +121 -5
- package/dist/index.d.ts +121 -5
- package/dist/index.js +105 -170
- package/dist/index.mjs +104 -167
- package/dist/{manifest-C8sBTLJb.d.mts → manifest-8YXAk-4o.d.mts} +8 -0
- package/dist/{manifest-C8sBTLJb.d.ts → manifest-8YXAk-4o.d.ts} +8 -0
- package/dist/plugin-sdk/index.d.mts +41 -4
- package/dist/plugin-sdk/index.d.ts +41 -4
- package/dist/plugin-sdk/index.js +103 -91
- package/dist/plugin-sdk/index.mjs +101 -91
- package/dist/registry/index.d.mts +3 -3
- package/dist/registry/index.d.ts +3 -3
- package/dist/registry/index.js +90 -90
- package/dist/registry/index.mjs +90 -90
- package/dist/{styles.registry-CZZwODJY.d.mts → styles.registry-4W0LzmZB.d.mts} +2 -189
- package/dist/{styles.registry-DQKcvIBZ.d.ts → styles.registry-D6xMm5VR.d.ts} +2 -189
- package/dist/testing/index.d.mts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/theme/index.d.mts +27 -76
- package/dist/theme/index.d.ts +27 -76
- package/dist/theme/index.js +4 -80
- package/dist/theme/index.mjs +4 -77
- package/package.json +1 -1
- package/src/plugin-sdk/__tests__/version.test.ts +40 -0
- package/src/plugin-sdk/define.ts +0 -1
- package/src/plugin-sdk/index.ts +2 -0
- package/src/plugin-sdk/manifest.ts +8 -0
- package/src/plugin-sdk/registry.ts +11 -0
- package/src/plugin-sdk/version.ts +38 -0
- package/src/registry/__tests__/platform.test.ts +0 -4
- package/src/registry/__tests__/registry.test.ts +0 -2
- package/src/registry/styles.registry.ts +90 -96
- package/src/theme/__tests__/mantineVariant.test.ts +2 -2
- package/src/theme/__tests__/semantic.test.ts +16 -53
- package/src/theme/mantineVariant.ts +3 -3
- package/src/theme/semantic.ts +24 -164
- package/src/theme/tokens.ts +2 -2
- package/src/types/__tests__/distribution.test.ts +55 -1
- package/src/types/api/index.ts +1 -0
- package/src/types/api/mobile-preview.ts +71 -0
- package/src/types/distribution.ts +54 -1
- package/src/types/mantine/common.ts +4 -3
- package/src/types/styles/base.ts +1 -1
- package/src/types/styles/composite.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,73 @@ 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.15.0
|
|
13
|
+
|
|
14
|
+
Mobile preview service contracts. Adds the cross-repo types for the new
|
|
15
|
+
`selfhelp-mobile-preview` image + the CMS mobile preview session auth surface,
|
|
16
|
+
and introduces the mobile-renderer compatibility axis consumed by the SelfHelp
|
|
17
|
+
Manager preflight. All additions are additive (optional fields / new types), so
|
|
18
|
+
existing consumers are unaffected.
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- **`MobilePreviewRelease`** (`types/distribution.ts`) — the
|
|
23
|
+
`selfhelp-mobile-preview-release` descriptor (peer of `FrontendRelease`),
|
|
24
|
+
including `mobileRendererVersion` and the curated `bundledPlugins[]`
|
|
25
|
+
(`BundledPluginRef`).
|
|
26
|
+
- **Preview session DTOs** (`types/api/mobile-preview.ts`) —
|
|
27
|
+
`IMobilePreviewSessionRequest/Response`, `IMobilePreviewExchangeRequest/Response`,
|
|
28
|
+
and `MOBILE_PREVIEW_ENDPOINTS` (admin mint + public exchange).
|
|
29
|
+
- **`MOBILE_RENDERER_VERSION`** constant + **`isMobileRendererCompatible()`**
|
|
30
|
+
helper (`plugin-sdk`) — the mobile renderer contract version a plugin's
|
|
31
|
+
`compatibility.mobile` range targets.
|
|
32
|
+
|
|
33
|
+
### Changed (additive, non-breaking)
|
|
34
|
+
|
|
35
|
+
- `RegistryIndex.mobilePreview?` + `IPluginRegistry.mobilePreview?` — additive
|
|
36
|
+
release-ref array (registry `schemaVersion` 1.1; older managers ignore it).
|
|
37
|
+
- `InstanceVersions.mobilePreview?`, `InstanceImages.mobilePreview?`,
|
|
38
|
+
`InstanceLock.core.mobilePreviewImageDigest?` — per-instance pin fields.
|
|
39
|
+
- `PluginRelease.compatibility.mobile?`, `IPluginRelease.compatibility.mobile?`,
|
|
40
|
+
and `IPluginManifestCompatibility.mobile?` — the new mobile-renderer axis.
|
|
41
|
+
|
|
42
|
+
## v1.14.24
|
|
43
|
+
|
|
44
|
+
Semantic mapper cleanup — remove the legacy `shared_intent` field and related
|
|
45
|
+
fallback mappings that were kept for backward compatibility. The live catalog
|
|
46
|
+
uses `color` and `variant` as the cross-platform appearance fields, so the
|
|
47
|
+
intent path is dead code. This is a pure cleanup with no runtime behaviour
|
|
48
|
+
change (no catalog data uses `shared_intent`).
|
|
49
|
+
|
|
50
|
+
### Removed (`theme/semantic.ts`)
|
|
51
|
+
|
|
52
|
+
- **`TSemanticIntent` type** and **`SEMANTIC_INTENTS` constant** — the intent
|
|
53
|
+
taxonomy (`primary`/`secondary`/`success`/`warning`/`danger`/`neutral`) is no
|
|
54
|
+
longer part of the shared contract.
|
|
55
|
+
- **`mapIntentToHeroUiColor`** — mapped intent tokens to HeroUI Native colors.
|
|
56
|
+
- **`mapIntentToHeroUiButtonVariant`** — mapped intent tokens to HeroUI Native
|
|
57
|
+
button variants.
|
|
58
|
+
- **`mapIntentToMantine`** — mapped intent tokens to Mantine color/variant pairs.
|
|
59
|
+
- **`ISharedStyleProps.intent`** — the intent field is removed from the shared
|
|
60
|
+
props interface.
|
|
61
|
+
- **Intent fallback logic** from `resolveSharedStyleProps`,
|
|
62
|
+
`toMantineSemanticProps`, and `toHeroUiSemanticProps` — the mappers now read
|
|
63
|
+
only `color` and `variant`.
|
|
64
|
+
|
|
65
|
+
### Removed (`types/styles/composite.ts`)
|
|
66
|
+
|
|
67
|
+
- **`IListStyle.web_spacing`** — unused web-only spacing field; list spacing is
|
|
68
|
+
the portable `spacing` field from `IStyleWithSpacing`.
|
|
69
|
+
- **Unused `TMantineSpacing` import** — no longer needed after removing
|
|
70
|
+
`web_spacing`.
|
|
71
|
+
|
|
72
|
+
### Changed
|
|
73
|
+
|
|
74
|
+
- **Comment updates** across `theme/semantic.ts`, `theme/tokens.ts`,
|
|
75
|
+
`types/mantine/common.ts`, and `types/styles/base.ts` to reflect that
|
|
76
|
+
cross-platform fields are now unprefixed (not `shared_*`) and to remove
|
|
77
|
+
stale migration references (e.g., RF-15).
|
|
78
|
+
|
|
12
79
|
## v1.14.23
|
|
13
80
|
|
|
14
81
|
Contract tidy on the back of the cross-repo style audit (no runtime behaviour
|
|
@@ -9,14 +9,15 @@ type TMantineSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
9
9
|
type TMantineRadius = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | string;
|
|
10
10
|
type TMantineSpacing = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'none' | string;
|
|
11
11
|
/**
|
|
12
|
-
* Cross-platform
|
|
12
|
+
* Cross-platform semantic scales — the TRUE common denominator
|
|
13
13
|
* between Mantine (web) and HeroUI Native / React Native (mobile). HeroUI Native
|
|
14
|
-
* only exposes `sm | md | lg`, so portable `size` / `radius` fields
|
|
14
|
+
* only exposes `sm | md | lg`, so the portable unprefixed `size` / `radius` fields
|
|
15
15
|
* use these narrowed scales instead of the full Mantine `xs..xl` range. The
|
|
16
16
|
* backend enforces the same domain (migration `Version20260618195450`), and the
|
|
17
17
|
* semantic mapper (`theme/semantic.ts`) maps these 1:1 without clamping.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
19
|
+
* Genuinely web-specific size/radius fields (typed `TMantineSize` / `TMantineRadius`)
|
|
20
|
+
* keep the full Mantine range.
|
|
20
21
|
*/
|
|
21
22
|
type TSharedSize = 'sm' | 'md' | 'lg';
|
|
22
23
|
type TSharedRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
@@ -89,4 +90,4 @@ type TMantineGrow = '0' | '1';
|
|
|
89
90
|
type TMantineInline = '0' | '1';
|
|
90
91
|
type TMantineFluid = '0' | '1';
|
|
91
92
|
|
|
92
|
-
export type {
|
|
93
|
+
export type { TMantineIsLink as $, TMantineAllowStepClick as A, TMantineAspectRatio as B, TMantineAutoContrast as C, TMantineBlock as D, TMantineCenterInline as E, TMantineChecked as F, TMantineChipChecked as G, TMantineChipMultiple as H, TMantineClampBehavior as I, TMantineCodeBlock as J, TMantineColorFormat as K, TMantineColorInputSwatches as L, TMantineColorPickerSwatches as M, TMantineColorPickerSwatchesPerRow as N, TMantineCompact as O, TMantineContainerFluid as P, TMantineDisabled as Q, TMantineFileAccept as R, TMantineFileInputMultiple as S, TMantineColor as T, TMantineFluid as U, TMantineFullWidth as V, TMantineGroupGrow as W, TMantineGroupWrap as X, TMantineGrow as Y, TMantineHighlight as Z, TMantineInline as _, TMantineRadius as a, TMantineKbdSize as a0, TMantineLoading as a1, TMantineMultiple as a2, TMantineNotificationWithCloseButton as a3, TMantineNumberInputDecimalScale as a4, TMantineOpenInNewTab as a5, TMantineProcessing as a6, TMantineRangeSliderMarks as a7, TMantineRatingCount as a8, TMantineRatingFractions as a9, TMantineRatingReadonly as aa, TMantineReadonly as ab, TMantineSpaceHorizontal as ac, TMantineSpacing as ad, TMantineSwatches as ae, TMantineTabDisabled as af, TMantineUseMantineStyle as ag, TMantineWithCloseButton as ah, TMantineWithIcon as ai, TSharedSize as b, TMantineJustify as c, TMantineAlign as d, TMantineDirection as e, TMantineWrap as f, TMantineGridOverflow as g, TMantineGridSpan as h, TMantineGridGrow as i, TMantineOrientation as j, TSharedRadius as k, TMantineTitleOrder as l, TMantineSize as m, TMantineFieldsetVariant as n, TMantineSpoilerMaxHeight as o, TMantineVariant as p, TMantineBadgeVariant as q, TMantineAvatarVariant as r, TMantineChipVariant as s, TMantineIndicatorPosition as t, TMantineThemeIconVariant as u, TMantineAccordionVariant as v, TMantineTabsVariant as w, TMantineTimelineLineVariant as x, TMantineActionIconLoading as y, TMantineAllowNextClicks as z };
|
|
@@ -9,14 +9,15 @@ type TMantineSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
9
9
|
type TMantineRadius = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | string;
|
|
10
10
|
type TMantineSpacing = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'none' | string;
|
|
11
11
|
/**
|
|
12
|
-
* Cross-platform
|
|
12
|
+
* Cross-platform semantic scales — the TRUE common denominator
|
|
13
13
|
* between Mantine (web) and HeroUI Native / React Native (mobile). HeroUI Native
|
|
14
|
-
* only exposes `sm | md | lg`, so portable `size` / `radius` fields
|
|
14
|
+
* only exposes `sm | md | lg`, so the portable unprefixed `size` / `radius` fields
|
|
15
15
|
* use these narrowed scales instead of the full Mantine `xs..xl` range. The
|
|
16
16
|
* backend enforces the same domain (migration `Version20260618195450`), and the
|
|
17
17
|
* semantic mapper (`theme/semantic.ts`) maps these 1:1 without clamping.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
19
|
+
* Genuinely web-specific size/radius fields (typed `TMantineSize` / `TMantineRadius`)
|
|
20
|
+
* keep the full Mantine range.
|
|
20
21
|
*/
|
|
21
22
|
type TSharedSize = 'sm' | 'md' | 'lg';
|
|
22
23
|
type TSharedRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
@@ -89,4 +90,4 @@ type TMantineGrow = '0' | '1';
|
|
|
89
90
|
type TMantineInline = '0' | '1';
|
|
90
91
|
type TMantineFluid = '0' | '1';
|
|
91
92
|
|
|
92
|
-
export type {
|
|
93
|
+
export type { TMantineIsLink as $, TMantineAllowStepClick as A, TMantineAspectRatio as B, TMantineAutoContrast as C, TMantineBlock as D, TMantineCenterInline as E, TMantineChecked as F, TMantineChipChecked as G, TMantineChipMultiple as H, TMantineClampBehavior as I, TMantineCodeBlock as J, TMantineColorFormat as K, TMantineColorInputSwatches as L, TMantineColorPickerSwatches as M, TMantineColorPickerSwatchesPerRow as N, TMantineCompact as O, TMantineContainerFluid as P, TMantineDisabled as Q, TMantineFileAccept as R, TMantineFileInputMultiple as S, TMantineColor as T, TMantineFluid as U, TMantineFullWidth as V, TMantineGroupGrow as W, TMantineGroupWrap as X, TMantineGrow as Y, TMantineHighlight as Z, TMantineInline as _, TMantineRadius as a, TMantineKbdSize as a0, TMantineLoading as a1, TMantineMultiple as a2, TMantineNotificationWithCloseButton as a3, TMantineNumberInputDecimalScale as a4, TMantineOpenInNewTab as a5, TMantineProcessing as a6, TMantineRangeSliderMarks as a7, TMantineRatingCount as a8, TMantineRatingFractions as a9, TMantineRatingReadonly as aa, TMantineReadonly as ab, TMantineSpaceHorizontal as ac, TMantineSpacing as ad, TMantineSwatches as ae, TMantineTabDisabled as af, TMantineUseMantineStyle as ag, TMantineWithCloseButton as ah, TMantineWithIcon as ai, TSharedSize as b, TMantineJustify as c, TMantineAlign as d, TMantineDirection as e, TMantineWrap as f, TMantineGridOverflow as g, TMantineGridSpan as h, TMantineGridGrow as i, TMantineOrientation as j, TSharedRadius as k, TMantineTitleOrder as l, TMantineSize as m, TMantineFieldsetVariant as n, TMantineSpoilerMaxHeight as o, TMantineVariant as p, TMantineBadgeVariant as q, TMantineAvatarVariant as r, TMantineChipVariant as s, TMantineIndicatorPosition as t, TMantineThemeIconVariant as u, TMantineAccordionVariant as v, TMantineTabsVariant as w, TMantineTimelineLineVariant as x, TMantineActionIconLoading as y, TMantineAllowNextClicks as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { T as TStyleName, j as IContentField, k as TMobileButtonFeedback, l as TMobileFieldVariant, m as TMobileSelectPresentation } from './styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, n as IAccordionItemStyle, o as IAccordionStyle, p as IActionIconStyle, q as IAlertStyle, r as IAspectRatioStyle, s as IAudioStyle, t as IAvatarStyle, u as IBackgroundImageStyle, v as IBadgeStyle, w as IBaseStyle, x as IBlockquoteStyle, y as IBoxStyle, z as IButtonStyle, A as ICardSegmentStyle, C as ICardStyle, D as ICarouselStyle, E as ICenterStyle, F as ICheckboxStyle, G as IChipStyle, H as ICodeStyle, J as IColorInputStyle, K as IColorPickerStyle, L as IComboboxStyle, M as IContainerStyle, N as IDataContainerStyle, O as IDatePickerStyle, P as IDividerStyle, Q as IEntryListStyle, R as IEntryRecordDeleteStyle, U as IEntryRecordStyle, V as IFieldsetStyle, W as IFigureStyle, X as IFileInputStyle, Y as IFlexStyle, Z as IFormLogStyle, $ as IFormRecordStyle, a0 as IFormStyle, a1 as IGridColumnStyle, a2 as IGridStyle, a3 as IGroupStyle, a4 as IHighlightStyle, a5 as IHtmlTagStyle, a6 as IImageStyle, a7 as IIndicatorStyle, a8 as IInputStyle, a9 as IKbdStyle, aa as ILinkStyle, ab as IListItemStyle, ac as IListStyle, ad as ILoginStyle, ae as ILoopStyle, af as IMissingStyle, ag as INoAccessStyle, ah as INotFoundStyle, ai as INotificationStyle, aj as INumberInputStyle, ak as IPaperStyle, a as IPluginStyleRegistryEntry, al as IProfileStyle, am as IProgressRootStyle, an as IProgressSectionStyle, ao as IProgressStyle, ap as IRadioStyle, aq as IRangeSliderStyle, ar as IRatingStyle, as as IRefContainerStyle, at as IRegisterStyle, au as IResetPasswordStyle, av as IRichTextEditorStyle, aw as IScrollAreaStyle, ax as ISegmentedControlStyle, ay as ISelectStyle, az as IShowUserInputEntry, aA as IShowUserInputStyle, aB as ISimpleGridStyle, aC as ISliderStyle, aD as ISpaceStyle, aE as ISpoilerStyle, aF as IStackStyle, I as IStyleRegistryEntry, aG as IStyleWithSpacing, aH as ISwitchStyle, aI as ITabStyle, aJ as ITabsStyle, aK as ITextInputStyle, aL as ITextStyle, aM as ITextareaStyle, aN as IThemeIconStyle, aO as ITimelineItemStyle, aP as ITimelineStyle, aQ as ITitleStyle, aR as ITwoFactorAuthStyle, aS as ITypographyStyle, aT as IUnknownStyle, aU as IValidateStyle, aV as IVersionStyle, aW as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, aX as TMantineAccordionChevronPosition, aY as TMantineAccordionDisableChevronRotation, aZ as TMantineAccordionLoop, a_ as TMantineAccordionMultiple, a$ as TMantineAnchorUnderline, b0 as TMantineBorder, b1 as TMantineCardPadding, b2 as TMantineCardShadow, b3 as TMantineCols, b4 as TMantineDividerVariant, b5 as TMantineGap, b6 as TMantineGridOffset, b7 as TMantineGridOrder, b8 as TMantineHeight, b9 as TMantineIconSize, ba as TMantineImageFit, bb as TMantineLineClamp, bc as TMantineListCenter, bd as TMantineListStyleType, be as TMantineListType, bf as TMantineListWithPadding, bg as TMantinePaperShadow, bh as TMantineProgressTransition, bi as TMantineScrollAreaSize, bj as TMantineScrollAreaType, bk as TMantineTextAlign, bl as TMantineTextDecoration, bm as TMantineTextFontStyle, bn as TMantineTextFontWeight, bo as TMantineTextInherit, bp as TMantineTextInputVariant, bq as TMantineTextSpan, br as TMantineTextTransform, bs as TMantineTextTruncate, bt as TMantineTextVariant, bu as TMantineTextareaAutosize, bv as TMantineTextareaResize, bw as TMantineTextareaVariant, bx as TMantineTimelineAlign, by as TMantineTitleLineClamp, bz as TMantineTitleTextWrap, bA as TMantineTranslatable, bB as TMantineUseInputWrapper, bC as TMantineWidth, bD as TSharedBorder, bE as TSharedCols, bF as TSharedDimension, bG as TSharedDividerLabelPosition, bH as TSharedDividerVariant, bI as TSharedLabelPosition, bJ as TStyle, b as TStylePlacement, d as TStylePlatform, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from './styles.registry-
|
|
3
|
-
export { v as TMantineAccordionVariant,
|
|
1
|
+
import { T as TStyleName, j as IContentField, k as TMobileButtonFeedback, l as TMobileFieldVariant, m as TMobileSelectPresentation } from './styles.registry-4W0LzmZB.mjs';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, n as IAccordionItemStyle, o as IAccordionStyle, p as IActionIconStyle, q as IAlertStyle, r as IAspectRatioStyle, s as IAudioStyle, t as IAvatarStyle, u as IBackgroundImageStyle, v as IBadgeStyle, w as IBaseStyle, x as IBlockquoteStyle, y as IBoxStyle, z as IButtonStyle, A as ICardSegmentStyle, C as ICardStyle, D as ICarouselStyle, E as ICenterStyle, F as ICheckboxStyle, G as IChipStyle, H as ICodeStyle, J as IColorInputStyle, K as IColorPickerStyle, L as IComboboxStyle, M as IContainerStyle, N as IDataContainerStyle, O as IDatePickerStyle, P as IDividerStyle, Q as IEntryListStyle, R as IEntryRecordDeleteStyle, U as IEntryRecordStyle, V as IFieldsetStyle, W as IFigureStyle, X as IFileInputStyle, Y as IFlexStyle, Z as IFormLogStyle, $ as IFormRecordStyle, a0 as IFormStyle, a1 as IGridColumnStyle, a2 as IGridStyle, a3 as IGroupStyle, a4 as IHighlightStyle, a5 as IHtmlTagStyle, a6 as IImageStyle, a7 as IIndicatorStyle, a8 as IInputStyle, a9 as IKbdStyle, aa as ILinkStyle, ab as IListItemStyle, ac as IListStyle, ad as ILoginStyle, ae as ILoopStyle, af as IMissingStyle, ag as INoAccessStyle, ah as INotFoundStyle, ai as INotificationStyle, aj as INumberInputStyle, ak as IPaperStyle, a as IPluginStyleRegistryEntry, al as IProfileStyle, am as IProgressRootStyle, an as IProgressSectionStyle, ao as IProgressStyle, ap as IRadioStyle, aq as IRangeSliderStyle, ar as IRatingStyle, as as IRefContainerStyle, at as IRegisterStyle, au as IResetPasswordStyle, av as IRichTextEditorStyle, aw as IScrollAreaStyle, ax as ISegmentedControlStyle, ay as ISelectStyle, az as IShowUserInputEntry, aA as IShowUserInputStyle, aB as ISimpleGridStyle, aC as ISliderStyle, aD as ISpaceStyle, aE as ISpoilerStyle, aF as IStackStyle, I as IStyleRegistryEntry, aG as IStyleWithSpacing, aH as ISwitchStyle, aI as ITabStyle, aJ as ITabsStyle, aK as ITextInputStyle, aL as ITextStyle, aM as ITextareaStyle, aN as IThemeIconStyle, aO as ITimelineItemStyle, aP as ITimelineStyle, aQ as ITitleStyle, aR as ITwoFactorAuthStyle, aS as ITypographyStyle, aT as IUnknownStyle, aU as IValidateStyle, aV as IVersionStyle, aW as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, aX as TMantineAccordionChevronPosition, aY as TMantineAccordionDisableChevronRotation, aZ as TMantineAccordionLoop, a_ as TMantineAccordionMultiple, a$ as TMantineAnchorUnderline, b0 as TMantineBorder, b1 as TMantineCardPadding, b2 as TMantineCardShadow, b3 as TMantineCols, b4 as TMantineDividerVariant, b5 as TMantineGap, b6 as TMantineGridOffset, b7 as TMantineGridOrder, b8 as TMantineHeight, b9 as TMantineIconSize, ba as TMantineImageFit, bb as TMantineLineClamp, bc as TMantineListCenter, bd as TMantineListStyleType, be as TMantineListType, bf as TMantineListWithPadding, bg as TMantinePaperShadow, bh as TMantineProgressTransition, bi as TMantineScrollAreaSize, bj as TMantineScrollAreaType, bk as TMantineTextAlign, bl as TMantineTextDecoration, bm as TMantineTextFontStyle, bn as TMantineTextFontWeight, bo as TMantineTextInherit, bp as TMantineTextInputVariant, bq as TMantineTextSpan, br as TMantineTextTransform, bs as TMantineTextTruncate, bt as TMantineTextVariant, bu as TMantineTextareaAutosize, bv as TMantineTextareaResize, bw as TMantineTextareaVariant, bx as TMantineTimelineAlign, by as TMantineTitleLineClamp, bz as TMantineTitleTextWrap, bA as TMantineTranslatable, bB as TMantineUseInputWrapper, bC as TMantineWidth, bD as TSharedBorder, bE as TSharedCols, bF as TSharedDimension, bG as TSharedDividerLabelPosition, bH as TSharedDividerVariant, bI as TSharedLabelPosition, bJ as TStyle, b as TStylePlacement, d as TStylePlatform, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from './styles.registry-4W0LzmZB.mjs';
|
|
3
|
+
export { v as TMantineAccordionVariant, y as TMantineActionIconLoading, d as TMantineAlign, z as TMantineAllowNextClicks, A as TMantineAllowStepClick, B as TMantineAspectRatio, C as TMantineAutoContrast, r as TMantineAvatarVariant, q as TMantineBadgeVariant, D as TMantineBlock, E as TMantineCenterInline, F as TMantineChecked, G as TMantineChipChecked, H as TMantineChipMultiple, s as TMantineChipVariant, I as TMantineClampBehavior, J as TMantineCodeBlock, T as TMantineColor, K as TMantineColorFormat, L as TMantineColorInputSwatches, M as TMantineColorPickerSwatches, N as TMantineColorPickerSwatchesPerRow, O as TMantineCompact, P as TMantineContainerFluid, e as TMantineDirection, Q as TMantineDisabled, n as TMantineFieldsetVariant, R as TMantineFileAccept, S as TMantineFileInputMultiple, U as TMantineFluid, V as TMantineFullWidth, i as TMantineGridGrow, g as TMantineGridOverflow, h as TMantineGridSpan, W as TMantineGroupGrow, X as TMantineGroupWrap, Y as TMantineGrow, Z as TMantineHighlight, t as TMantineIndicatorPosition, _ as TMantineInline, $ as TMantineIsLink, c as TMantineJustify, a0 as TMantineKbdSize, a1 as TMantineLoading, a2 as TMantineMultiple, a3 as TMantineNotificationWithCloseButton, a4 as TMantineNumberInputDecimalScale, a5 as TMantineOpenInNewTab, j as TMantineOrientation, a6 as TMantineProcessing, a as TMantineRadius, a7 as TMantineRangeSliderMarks, a8 as TMantineRatingCount, a9 as TMantineRatingFractions, aa as TMantineRatingReadonly, ab as TMantineReadonly, m as TMantineSize, ac as TMantineSpaceHorizontal, ad as TMantineSpacing, o as TMantineSpoilerMaxHeight, ae as TMantineSwatches, af as TMantineTabDisabled, w as TMantineTabsVariant, u as TMantineThemeIconVariant, x as TMantineTimelineLineVariant, l as TMantineTitleOrder, ag as TMantineUseMantineStyle, p as TMantineVariant, ah as TMantineWithCloseButton, ai as TMantineWithIcon, f as TMantineWrap, k as TSharedRadius, b as TSharedSize } from './common-qaDIAYS3.mjs';
|
|
4
4
|
import { ReactNode, ComponentType } from 'react';
|
|
5
5
|
import { THeroUiButtonVariant, THeroUiSize } from './theme/index.mjs';
|
|
6
|
-
export { COLOR_PALETTE, COLOR_SCALES, CONTAINER_SIZE_PX, FONT_SIZE_PX, FULL_RADIUS_PX, IHeroUiResolvedStyle, IMantineResolvedStyle, IReactNativeGridColumn, IReactNativeResolvedStyle, IReactNativeThemeScales, IResolvedVariant, ISharedStyleProps, ISpacingResolved, LINE_HEIGHT, RADIUS_PX, SPACING_PX, SPACING_TO_TAILWIND, TCanonicalColor, TCanonicalRadius, TCanonicalSpacing, THeroUiColor,
|
|
6
|
+
export { COLOR_PALETTE, COLOR_SCALES, CONTAINER_SIZE_PX, FONT_SIZE_PX, FULL_RADIUS_PX, IHeroUiResolvedStyle, IMantineResolvedStyle, IReactNativeGridColumn, IReactNativeResolvedStyle, IReactNativeThemeScales, IResolvedVariant, ISharedStyleProps, ISpacingResolved, LINE_HEIGHT, RADIUS_PX, SPACING_PX, SPACING_TO_TAILWIND, TCanonicalColor, TCanonicalRadius, TCanonicalSpacing, THeroUiColor, TReactNativeDimension, TSemanticColor, TSemanticRadius, TSemanticSize, TSemanticSpacing, TSemanticState, TSemanticVariant, colorToHex, gridSpanToReactNativeColumn, mapAccordionVariantToHeroUiVariant, mapChipVariantToHeroUiVariant, mapDividerVariantToReactNative, mapMantineColorToHeroUiButtonVariant, mapMantineColorToHeroUiColor, mapMantineVariantToHeroUiButtonVariant, mapRadiusToMantine, mapRadiusToPx, mapSizeToHeroUi, mapSizeToMantine, mapSpacingToPx, parseDimensionToReactNative, parseDimensionToWeb, radiusToPx, resolveMantineVariant, resolveSharedStyle, resolveSharedStyleForMobile, resolveSharedStyleForWeb, resolveSharedStyleProps, sizeToFontPx, spacingToPx, toHeroUiSemanticProps, toMantineSemanticProps, toReactNativeSemanticStyle } from './theme/index.mjs';
|
|
7
7
|
export { TAnyStyleName, TPluginStyleImplMap, TStyleImplMap, getRegistryEntry, getRegistryEntryAny, getStylePlacement, getStylePlatforms, getStylePluginId, isKnownStyleName, isRegisteredStyleName, isStyleAllowedOnPage, isStylePlacementAllowed, isStyleSupportedOnPlatform, setToStylePlatform, stylePlatformToSet } from './registry/index.mjs';
|
|
8
8
|
export { sharedTailwindExtend, sharedTailwindPreset } from './theme/tailwind.mjs';
|
|
9
9
|
|
|
@@ -717,6 +717,66 @@ type IFrontendUpdateRequestResponse = IBaseApiResponse<{
|
|
|
717
717
|
target_frontend_version: string;
|
|
718
718
|
}>;
|
|
719
719
|
|
|
720
|
+
/**
|
|
721
|
+
* Mobile preview session contracts (CMS admin <-> backend <-> mobile-preview
|
|
722
|
+
* web image).
|
|
723
|
+
*
|
|
724
|
+
* Flow: the CMS admin mints a SHORT-LIVED, SINGLE-USE preview code (bound to the
|
|
725
|
+
* admin user + an optional scope). The `selfhelp-mobile-preview` web image
|
|
726
|
+
* exchanges that one-time code for an in-memory, scoped JWT
|
|
727
|
+
* (`purpose: 'mobile_preview'`) used for read-only `/cms-api` calls. The admin
|
|
728
|
+
* JWT is never exposed to the preview iframe.
|
|
729
|
+
*
|
|
730
|
+
* Snake_case is the wire contract (these mirror the backend JSON schemas under
|
|
731
|
+
* `config/schemas/api/v1/{requests,responses}/`).
|
|
732
|
+
*/
|
|
733
|
+
|
|
734
|
+
/** Mobile preview session endpoints. */
|
|
735
|
+
declare const MOBILE_PREVIEW_ENDPOINTS: {
|
|
736
|
+
/** Admin-only: mint a one-time preview session code. */
|
|
737
|
+
readonly SESSION: "/cms-api/v1/admin/mobile-preview/session";
|
|
738
|
+
/** Public: exchange a one-time code for a scoped preview JWT. */
|
|
739
|
+
readonly EXCHANGE: "/cms-api/v1/mobile-preview/session/exchange";
|
|
740
|
+
};
|
|
741
|
+
/**
|
|
742
|
+
* POST /admin/mobile-preview/session — mint a one-time preview code. No
|
|
743
|
+
* `instance_id`: the backend derives + verifies the admin server-side. The
|
|
744
|
+
* optional scope is bound into the code and enforced on exchange.
|
|
745
|
+
*/
|
|
746
|
+
interface IMobilePreviewSessionRequest {
|
|
747
|
+
/** Page keyword to preview. */
|
|
748
|
+
keyword?: string;
|
|
749
|
+
/** Page id to preview (alternative to `keyword`). */
|
|
750
|
+
page_id?: number;
|
|
751
|
+
/** Language id to render in. */
|
|
752
|
+
language_id?: number;
|
|
753
|
+
/** Whether to preview the unpublished draft version. */
|
|
754
|
+
draft?: boolean;
|
|
755
|
+
}
|
|
756
|
+
interface IMobilePreviewSessionData {
|
|
757
|
+
/** Opaque one-time code (safe in the iframe URL; invalid after exchange). */
|
|
758
|
+
code: string;
|
|
759
|
+
/** ISO-8601 expiry of the one-time code. */
|
|
760
|
+
expires_at: string;
|
|
761
|
+
}
|
|
762
|
+
type IMobilePreviewSessionResponse = IBaseApiResponse<IMobilePreviewSessionData>;
|
|
763
|
+
/**
|
|
764
|
+
* POST /mobile-preview/session/exchange — public route; the one-time code IS the
|
|
765
|
+
* credential. Consumes (deletes) the code and mints a scoped preview JWT.
|
|
766
|
+
*/
|
|
767
|
+
interface IMobilePreviewExchangeRequest {
|
|
768
|
+
code: string;
|
|
769
|
+
}
|
|
770
|
+
interface IMobilePreviewExchangeData {
|
|
771
|
+
/** Short-lived scoped JWT (`purpose: 'mobile_preview'`); held in memory only. */
|
|
772
|
+
access_token: string;
|
|
773
|
+
/** Seconds until the scoped token expires. */
|
|
774
|
+
expires_in: number;
|
|
775
|
+
/** The previewed user (the minting admin), for the preview UI. */
|
|
776
|
+
user: IUserData;
|
|
777
|
+
}
|
|
778
|
+
type IMobilePreviewExchangeResponse = IBaseApiResponse<IMobilePreviewExchangeData>;
|
|
779
|
+
|
|
720
780
|
/**
|
|
721
781
|
* Cross-repo SelfHelp distribution contracts: registry index + release metadata
|
|
722
782
|
* (core / frontend / scheduler / worker / plugin), security advisories,
|
|
@@ -783,6 +843,8 @@ interface InstanceVersions {
|
|
|
783
843
|
frontend: string;
|
|
784
844
|
scheduler: string;
|
|
785
845
|
worker: string;
|
|
846
|
+
/** Mobile-preview web image version pinned for this instance (additive). */
|
|
847
|
+
mobilePreview?: string;
|
|
786
848
|
pluginApi: string;
|
|
787
849
|
}
|
|
788
850
|
interface InstanceImages {
|
|
@@ -793,6 +855,8 @@ interface InstanceImages {
|
|
|
793
855
|
mysql: string;
|
|
794
856
|
redis: string;
|
|
795
857
|
mercure: string;
|
|
858
|
+
/** Mobile-preview web image reference (additive). */
|
|
859
|
+
mobilePreview?: string;
|
|
796
860
|
}
|
|
797
861
|
interface InstanceRouting {
|
|
798
862
|
publicFrontendUrl: string;
|
|
@@ -886,6 +950,8 @@ interface InstanceLock {
|
|
|
886
950
|
version: string;
|
|
887
951
|
backendImageDigest: string;
|
|
888
952
|
frontendImageDigest: string;
|
|
953
|
+
/** Mobile-preview web image digest pinned for this instance (additive). */
|
|
954
|
+
mobilePreviewImageDigest?: string;
|
|
889
955
|
schedulerImageDigest: string;
|
|
890
956
|
workerImageDigest: string;
|
|
891
957
|
migrationVersion: string;
|
|
@@ -920,6 +986,8 @@ interface RegistryIndex {
|
|
|
920
986
|
scheduler: RegistryReleaseRef[];
|
|
921
987
|
worker: RegistryReleaseRef[];
|
|
922
988
|
plugins: RegistryReleaseRef[];
|
|
989
|
+
/** Mobile-preview web image release refs (additive; older managers ignore). */
|
|
990
|
+
mobilePreview?: RegistryReleaseRef[];
|
|
923
991
|
advisoriesUrl?: string;
|
|
924
992
|
compatibilityUrl?: string;
|
|
925
993
|
trustedKeysUrl?: string;
|
|
@@ -1029,15 +1097,63 @@ interface WorkerRelease {
|
|
|
1029
1097
|
security: SignatureBlock;
|
|
1030
1098
|
blocked?: boolean;
|
|
1031
1099
|
}
|
|
1100
|
+
/**
|
|
1101
|
+
* One plugin mobile package baked into a mobile-preview image at build time.
|
|
1102
|
+
* The preview CI runs `plugins-sync.mjs` against a curated official-plugin set
|
|
1103
|
+
* and records the result here so the manager can compute coverage (which
|
|
1104
|
+
* enabled plugins render natively vs. fall back to open-on-web in the preview)
|
|
1105
|
+
* without inspecting the image.
|
|
1106
|
+
*/
|
|
1107
|
+
interface BundledPluginRef {
|
|
1108
|
+
id: string;
|
|
1109
|
+
version: string;
|
|
1110
|
+
mobilePackage: string;
|
|
1111
|
+
mobilePackageVersion: string;
|
|
1112
|
+
}
|
|
1113
|
+
/**
|
|
1114
|
+
* Mobile-preview web image release, resolved/pinned as a first-class artifact
|
|
1115
|
+
* (peer of the frontend release). The image serves the Expo web export at
|
|
1116
|
+
* `/mobile-preview` and proxies a narrow `/mobile-preview/api` allowlist to the
|
|
1117
|
+
* private backend. `mobileRendererVersion` is the mobile renderer contract the
|
|
1118
|
+
* image was built against (what plugin `compatibility.mobile` ranges target);
|
|
1119
|
+
* `bundledPlugins` is the curated official-plugin set baked into the image.
|
|
1120
|
+
*/
|
|
1121
|
+
interface MobilePreviewRelease {
|
|
1122
|
+
kind: 'selfhelp-mobile-preview-release';
|
|
1123
|
+
id: string;
|
|
1124
|
+
version: string;
|
|
1125
|
+
channel: ReleaseChannel;
|
|
1126
|
+
image: string;
|
|
1127
|
+
digest: string;
|
|
1128
|
+
builtFrom?: {
|
|
1129
|
+
sharedPackageVersion?: string;
|
|
1130
|
+
expoSdk?: string;
|
|
1131
|
+
reactNative?: string;
|
|
1132
|
+
};
|
|
1133
|
+
backendCompatibility: ServiceBackendCompatibility;
|
|
1134
|
+
/** Mobile renderer contract version advertised by this image (semver). */
|
|
1135
|
+
mobileRendererVersion: string;
|
|
1136
|
+
/** Curated plugin mobile packages baked into the image. */
|
|
1137
|
+
bundledPlugins: BundledPluginRef[];
|
|
1138
|
+
security: SignatureBlock;
|
|
1139
|
+
blocked?: boolean;
|
|
1140
|
+
}
|
|
1032
1141
|
interface PluginRelease {
|
|
1033
1142
|
kind: 'selfhelp-plugin-release';
|
|
1034
1143
|
id: string;
|
|
1035
1144
|
version: string;
|
|
1036
1145
|
channel: ReleaseChannel;
|
|
1037
1146
|
official: boolean;
|
|
1147
|
+
/**
|
|
1148
|
+
* Compatibility ranges the host must satisfy. `mobile` (additive) is the
|
|
1149
|
+
* NEW mobile-renderer axis: the range of host `mobileRendererVersion` the
|
|
1150
|
+
* plugin's mobile package supports (parallel to `pluginApi`). Absent for
|
|
1151
|
+
* web-only plugins.
|
|
1152
|
+
*/
|
|
1038
1153
|
compatibility: {
|
|
1039
1154
|
core: string;
|
|
1040
1155
|
pluginApi: string;
|
|
1156
|
+
mobile?: string;
|
|
1041
1157
|
};
|
|
1042
1158
|
dependencies?: {
|
|
1043
1159
|
plugins: {
|
|
@@ -1694,4 +1810,4 @@ declare function transformPageData(apiPage: IRawPage): IPageItem;
|
|
|
1694
1810
|
*/
|
|
1695
1811
|
declare function transformPagesData(pages: IRawPage[] | null | undefined): IPageItem[];
|
|
1696
1812
|
|
|
1697
|
-
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 IInlineNode, 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 IMobileAdapterBaseProps, type IMobileButtonProps, type IMobileCardProps, type IMobileCheckboxProps, type IMobileContainerProps, type IMobileInputProps, type IMobileModalProps, type IMobileSelectOption, type IMobileSelectProps, type IMobileSwitchProps, type IMobileTextProps, type IMobileTextareaProps, type IMobileUiAdapters, 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, THeroUiButtonVariant, THeroUiSize, TMobileButtonFeedback, TMobileFieldVariant, TMobileSelectPresentation, 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, hasInlineFormatting, parseInlineRich, parseSpacing, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, spacingToClasses, stripHtmlToText, transformPageData, transformPagesData };
|
|
1813
|
+
export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, type BackupRetentionPolicy, type BackupSchedulePolicy, type BundledPluginRef, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, 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 IInlineNode, 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 IMobileAdapterBaseProps, type IMobileButtonProps, type IMobileCardProps, type IMobileCheckboxProps, type IMobileContainerProps, type IMobileInputProps, type IMobileModalProps, type IMobilePreviewExchangeData, type IMobilePreviewExchangeRequest, type IMobilePreviewExchangeResponse, type IMobilePreviewSessionData, type IMobilePreviewSessionRequest, type IMobilePreviewSessionResponse, type IMobileSelectOption, type IMobileSelectProps, type IMobileSwitchProps, type IMobileTextProps, type IMobileTextareaProps, type IMobileUiAdapters, 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, MOBILE_PREVIEW_ENDPOINTS, type MobilePreviewRelease, 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, THeroUiButtonVariant, THeroUiSize, TMobileButtonFeedback, TMobileFieldVariant, TMobileSelectPresentation, 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, hasInlineFormatting, parseInlineRich, parseSpacing, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, spacingToClasses, stripHtmlToText, transformPageData, transformPagesData };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { T as TStyleName, j as IContentField, k as TMobileButtonFeedback, l as TMobileFieldVariant, m as TMobileSelectPresentation } from './styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, n as IAccordionItemStyle, o as IAccordionStyle, p as IActionIconStyle, q as IAlertStyle, r as IAspectRatioStyle, s as IAudioStyle, t as IAvatarStyle, u as IBackgroundImageStyle, v as IBadgeStyle, w as IBaseStyle, x as IBlockquoteStyle, y as IBoxStyle, z as IButtonStyle, A as ICardSegmentStyle, C as ICardStyle, D as ICarouselStyle, E as ICenterStyle, F as ICheckboxStyle, G as IChipStyle, H as ICodeStyle, J as IColorInputStyle, K as IColorPickerStyle, L as IComboboxStyle, M as IContainerStyle, N as IDataContainerStyle, O as IDatePickerStyle, P as IDividerStyle, Q as IEntryListStyle, R as IEntryRecordDeleteStyle, U as IEntryRecordStyle, V as IFieldsetStyle, W as IFigureStyle, X as IFileInputStyle, Y as IFlexStyle, Z as IFormLogStyle, $ as IFormRecordStyle, a0 as IFormStyle, a1 as IGridColumnStyle, a2 as IGridStyle, a3 as IGroupStyle, a4 as IHighlightStyle, a5 as IHtmlTagStyle, a6 as IImageStyle, a7 as IIndicatorStyle, a8 as IInputStyle, a9 as IKbdStyle, aa as ILinkStyle, ab as IListItemStyle, ac as IListStyle, ad as ILoginStyle, ae as ILoopStyle, af as IMissingStyle, ag as INoAccessStyle, ah as INotFoundStyle, ai as INotificationStyle, aj as INumberInputStyle, ak as IPaperStyle, a as IPluginStyleRegistryEntry, al as IProfileStyle, am as IProgressRootStyle, an as IProgressSectionStyle, ao as IProgressStyle, ap as IRadioStyle, aq as IRangeSliderStyle, ar as IRatingStyle, as as IRefContainerStyle, at as IRegisterStyle, au as IResetPasswordStyle, av as IRichTextEditorStyle, aw as IScrollAreaStyle, ax as ISegmentedControlStyle, ay as ISelectStyle, az as IShowUserInputEntry, aA as IShowUserInputStyle, aB as ISimpleGridStyle, aC as ISliderStyle, aD as ISpaceStyle, aE as ISpoilerStyle, aF as IStackStyle, I as IStyleRegistryEntry, aG as IStyleWithSpacing, aH as ISwitchStyle, aI as ITabStyle, aJ as ITabsStyle, aK as ITextInputStyle, aL as ITextStyle, aM as ITextareaStyle, aN as IThemeIconStyle, aO as ITimelineItemStyle, aP as ITimelineStyle, aQ as ITitleStyle, aR as ITwoFactorAuthStyle, aS as ITypographyStyle, aT as IUnknownStyle, aU as IValidateStyle, aV as IVersionStyle, aW as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, aX as TMantineAccordionChevronPosition, aY as TMantineAccordionDisableChevronRotation, aZ as TMantineAccordionLoop, a_ as TMantineAccordionMultiple, a$ as TMantineAnchorUnderline, b0 as TMantineBorder, b1 as TMantineCardPadding, b2 as TMantineCardShadow, b3 as TMantineCols, b4 as TMantineDividerVariant, b5 as TMantineGap, b6 as TMantineGridOffset, b7 as TMantineGridOrder, b8 as TMantineHeight, b9 as TMantineIconSize, ba as TMantineImageFit, bb as TMantineLineClamp, bc as TMantineListCenter, bd as TMantineListStyleType, be as TMantineListType, bf as TMantineListWithPadding, bg as TMantinePaperShadow, bh as TMantineProgressTransition, bi as TMantineScrollAreaSize, bj as TMantineScrollAreaType, bk as TMantineTextAlign, bl as TMantineTextDecoration, bm as TMantineTextFontStyle, bn as TMantineTextFontWeight, bo as TMantineTextInherit, bp as TMantineTextInputVariant, bq as TMantineTextSpan, br as TMantineTextTransform, bs as TMantineTextTruncate, bt as TMantineTextVariant, bu as TMantineTextareaAutosize, bv as TMantineTextareaResize, bw as TMantineTextareaVariant, bx as TMantineTimelineAlign, by as TMantineTitleLineClamp, bz as TMantineTitleTextWrap, bA as TMantineTranslatable, bB as TMantineUseInputWrapper, bC as TMantineWidth, bD as TSharedBorder, bE as TSharedCols, bF as TSharedDimension, bG as TSharedDividerLabelPosition, bH as TSharedDividerVariant, bI as TSharedLabelPosition, bJ as TStyle, b as TStylePlacement, d as TStylePlatform, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from './styles.registry-
|
|
3
|
-
export { v as TMantineAccordionVariant,
|
|
1
|
+
import { T as TStyleName, j as IContentField, k as TMobileButtonFeedback, l as TMobileFieldVariant, m as TMobileSelectPresentation } from './styles.registry-D6xMm5VR.js';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, n as IAccordionItemStyle, o as IAccordionStyle, p as IActionIconStyle, q as IAlertStyle, r as IAspectRatioStyle, s as IAudioStyle, t as IAvatarStyle, u as IBackgroundImageStyle, v as IBadgeStyle, w as IBaseStyle, x as IBlockquoteStyle, y as IBoxStyle, z as IButtonStyle, A as ICardSegmentStyle, C as ICardStyle, D as ICarouselStyle, E as ICenterStyle, F as ICheckboxStyle, G as IChipStyle, H as ICodeStyle, J as IColorInputStyle, K as IColorPickerStyle, L as IComboboxStyle, M as IContainerStyle, N as IDataContainerStyle, O as IDatePickerStyle, P as IDividerStyle, Q as IEntryListStyle, R as IEntryRecordDeleteStyle, U as IEntryRecordStyle, V as IFieldsetStyle, W as IFigureStyle, X as IFileInputStyle, Y as IFlexStyle, Z as IFormLogStyle, $ as IFormRecordStyle, a0 as IFormStyle, a1 as IGridColumnStyle, a2 as IGridStyle, a3 as IGroupStyle, a4 as IHighlightStyle, a5 as IHtmlTagStyle, a6 as IImageStyle, a7 as IIndicatorStyle, a8 as IInputStyle, a9 as IKbdStyle, aa as ILinkStyle, ab as IListItemStyle, ac as IListStyle, ad as ILoginStyle, ae as ILoopStyle, af as IMissingStyle, ag as INoAccessStyle, ah as INotFoundStyle, ai as INotificationStyle, aj as INumberInputStyle, ak as IPaperStyle, a as IPluginStyleRegistryEntry, al as IProfileStyle, am as IProgressRootStyle, an as IProgressSectionStyle, ao as IProgressStyle, ap as IRadioStyle, aq as IRangeSliderStyle, ar as IRatingStyle, as as IRefContainerStyle, at as IRegisterStyle, au as IResetPasswordStyle, av as IRichTextEditorStyle, aw as IScrollAreaStyle, ax as ISegmentedControlStyle, ay as ISelectStyle, az as IShowUserInputEntry, aA as IShowUserInputStyle, aB as ISimpleGridStyle, aC as ISliderStyle, aD as ISpaceStyle, aE as ISpoilerStyle, aF as IStackStyle, I as IStyleRegistryEntry, aG as IStyleWithSpacing, aH as ISwitchStyle, aI as ITabStyle, aJ as ITabsStyle, aK as ITextInputStyle, aL as ITextStyle, aM as ITextareaStyle, aN as IThemeIconStyle, aO as ITimelineItemStyle, aP as ITimelineStyle, aQ as ITitleStyle, aR as ITwoFactorAuthStyle, aS as ITypographyStyle, aT as IUnknownStyle, aU as IValidateStyle, aV as IVersionStyle, aW as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, aX as TMantineAccordionChevronPosition, aY as TMantineAccordionDisableChevronRotation, aZ as TMantineAccordionLoop, a_ as TMantineAccordionMultiple, a$ as TMantineAnchorUnderline, b0 as TMantineBorder, b1 as TMantineCardPadding, b2 as TMantineCardShadow, b3 as TMantineCols, b4 as TMantineDividerVariant, b5 as TMantineGap, b6 as TMantineGridOffset, b7 as TMantineGridOrder, b8 as TMantineHeight, b9 as TMantineIconSize, ba as TMantineImageFit, bb as TMantineLineClamp, bc as TMantineListCenter, bd as TMantineListStyleType, be as TMantineListType, bf as TMantineListWithPadding, bg as TMantinePaperShadow, bh as TMantineProgressTransition, bi as TMantineScrollAreaSize, bj as TMantineScrollAreaType, bk as TMantineTextAlign, bl as TMantineTextDecoration, bm as TMantineTextFontStyle, bn as TMantineTextFontWeight, bo as TMantineTextInherit, bp as TMantineTextInputVariant, bq as TMantineTextSpan, br as TMantineTextTransform, bs as TMantineTextTruncate, bt as TMantineTextVariant, bu as TMantineTextareaAutosize, bv as TMantineTextareaResize, bw as TMantineTextareaVariant, bx as TMantineTimelineAlign, by as TMantineTitleLineClamp, bz as TMantineTitleTextWrap, bA as TMantineTranslatable, bB as TMantineUseInputWrapper, bC as TMantineWidth, bD as TSharedBorder, bE as TSharedCols, bF as TSharedDimension, bG as TSharedDividerLabelPosition, bH as TSharedDividerVariant, bI as TSharedLabelPosition, bJ as TStyle, b as TStylePlacement, d as TStylePlatform, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from './styles.registry-D6xMm5VR.js';
|
|
3
|
+
export { v as TMantineAccordionVariant, y as TMantineActionIconLoading, d as TMantineAlign, z as TMantineAllowNextClicks, A as TMantineAllowStepClick, B as TMantineAspectRatio, C as TMantineAutoContrast, r as TMantineAvatarVariant, q as TMantineBadgeVariant, D as TMantineBlock, E as TMantineCenterInline, F as TMantineChecked, G as TMantineChipChecked, H as TMantineChipMultiple, s as TMantineChipVariant, I as TMantineClampBehavior, J as TMantineCodeBlock, T as TMantineColor, K as TMantineColorFormat, L as TMantineColorInputSwatches, M as TMantineColorPickerSwatches, N as TMantineColorPickerSwatchesPerRow, O as TMantineCompact, P as TMantineContainerFluid, e as TMantineDirection, Q as TMantineDisabled, n as TMantineFieldsetVariant, R as TMantineFileAccept, S as TMantineFileInputMultiple, U as TMantineFluid, V as TMantineFullWidth, i as TMantineGridGrow, g as TMantineGridOverflow, h as TMantineGridSpan, W as TMantineGroupGrow, X as TMantineGroupWrap, Y as TMantineGrow, Z as TMantineHighlight, t as TMantineIndicatorPosition, _ as TMantineInline, $ as TMantineIsLink, c as TMantineJustify, a0 as TMantineKbdSize, a1 as TMantineLoading, a2 as TMantineMultiple, a3 as TMantineNotificationWithCloseButton, a4 as TMantineNumberInputDecimalScale, a5 as TMantineOpenInNewTab, j as TMantineOrientation, a6 as TMantineProcessing, a as TMantineRadius, a7 as TMantineRangeSliderMarks, a8 as TMantineRatingCount, a9 as TMantineRatingFractions, aa as TMantineRatingReadonly, ab as TMantineReadonly, m as TMantineSize, ac as TMantineSpaceHorizontal, ad as TMantineSpacing, o as TMantineSpoilerMaxHeight, ae as TMantineSwatches, af as TMantineTabDisabled, w as TMantineTabsVariant, u as TMantineThemeIconVariant, x as TMantineTimelineLineVariant, l as TMantineTitleOrder, ag as TMantineUseMantineStyle, p as TMantineVariant, ah as TMantineWithCloseButton, ai as TMantineWithIcon, f as TMantineWrap, k as TSharedRadius, b as TSharedSize } from './common-qaDIAYS3.js';
|
|
4
4
|
import { ReactNode, ComponentType } from 'react';
|
|
5
5
|
import { THeroUiButtonVariant, THeroUiSize } from './theme/index.js';
|
|
6
|
-
export { COLOR_PALETTE, COLOR_SCALES, CONTAINER_SIZE_PX, FONT_SIZE_PX, FULL_RADIUS_PX, IHeroUiResolvedStyle, IMantineResolvedStyle, IReactNativeGridColumn, IReactNativeResolvedStyle, IReactNativeThemeScales, IResolvedVariant, ISharedStyleProps, ISpacingResolved, LINE_HEIGHT, RADIUS_PX, SPACING_PX, SPACING_TO_TAILWIND, TCanonicalColor, TCanonicalRadius, TCanonicalSpacing, THeroUiColor,
|
|
6
|
+
export { COLOR_PALETTE, COLOR_SCALES, CONTAINER_SIZE_PX, FONT_SIZE_PX, FULL_RADIUS_PX, IHeroUiResolvedStyle, IMantineResolvedStyle, IReactNativeGridColumn, IReactNativeResolvedStyle, IReactNativeThemeScales, IResolvedVariant, ISharedStyleProps, ISpacingResolved, LINE_HEIGHT, RADIUS_PX, SPACING_PX, SPACING_TO_TAILWIND, TCanonicalColor, TCanonicalRadius, TCanonicalSpacing, THeroUiColor, TReactNativeDimension, TSemanticColor, TSemanticRadius, TSemanticSize, TSemanticSpacing, TSemanticState, TSemanticVariant, colorToHex, gridSpanToReactNativeColumn, mapAccordionVariantToHeroUiVariant, mapChipVariantToHeroUiVariant, mapDividerVariantToReactNative, mapMantineColorToHeroUiButtonVariant, mapMantineColorToHeroUiColor, mapMantineVariantToHeroUiButtonVariant, mapRadiusToMantine, mapRadiusToPx, mapSizeToHeroUi, mapSizeToMantine, mapSpacingToPx, parseDimensionToReactNative, parseDimensionToWeb, radiusToPx, resolveMantineVariant, resolveSharedStyle, resolveSharedStyleForMobile, resolveSharedStyleForWeb, resolveSharedStyleProps, sizeToFontPx, spacingToPx, toHeroUiSemanticProps, toMantineSemanticProps, toReactNativeSemanticStyle } from './theme/index.js';
|
|
7
7
|
export { TAnyStyleName, TPluginStyleImplMap, TStyleImplMap, getRegistryEntry, getRegistryEntryAny, getStylePlacement, getStylePlatforms, getStylePluginId, isKnownStyleName, isRegisteredStyleName, isStyleAllowedOnPage, isStylePlacementAllowed, isStyleSupportedOnPlatform, setToStylePlatform, stylePlatformToSet } from './registry/index.js';
|
|
8
8
|
export { sharedTailwindExtend, sharedTailwindPreset } from './theme/tailwind.js';
|
|
9
9
|
|
|
@@ -717,6 +717,66 @@ type IFrontendUpdateRequestResponse = IBaseApiResponse<{
|
|
|
717
717
|
target_frontend_version: string;
|
|
718
718
|
}>;
|
|
719
719
|
|
|
720
|
+
/**
|
|
721
|
+
* Mobile preview session contracts (CMS admin <-> backend <-> mobile-preview
|
|
722
|
+
* web image).
|
|
723
|
+
*
|
|
724
|
+
* Flow: the CMS admin mints a SHORT-LIVED, SINGLE-USE preview code (bound to the
|
|
725
|
+
* admin user + an optional scope). The `selfhelp-mobile-preview` web image
|
|
726
|
+
* exchanges that one-time code for an in-memory, scoped JWT
|
|
727
|
+
* (`purpose: 'mobile_preview'`) used for read-only `/cms-api` calls. The admin
|
|
728
|
+
* JWT is never exposed to the preview iframe.
|
|
729
|
+
*
|
|
730
|
+
* Snake_case is the wire contract (these mirror the backend JSON schemas under
|
|
731
|
+
* `config/schemas/api/v1/{requests,responses}/`).
|
|
732
|
+
*/
|
|
733
|
+
|
|
734
|
+
/** Mobile preview session endpoints. */
|
|
735
|
+
declare const MOBILE_PREVIEW_ENDPOINTS: {
|
|
736
|
+
/** Admin-only: mint a one-time preview session code. */
|
|
737
|
+
readonly SESSION: "/cms-api/v1/admin/mobile-preview/session";
|
|
738
|
+
/** Public: exchange a one-time code for a scoped preview JWT. */
|
|
739
|
+
readonly EXCHANGE: "/cms-api/v1/mobile-preview/session/exchange";
|
|
740
|
+
};
|
|
741
|
+
/**
|
|
742
|
+
* POST /admin/mobile-preview/session — mint a one-time preview code. No
|
|
743
|
+
* `instance_id`: the backend derives + verifies the admin server-side. The
|
|
744
|
+
* optional scope is bound into the code and enforced on exchange.
|
|
745
|
+
*/
|
|
746
|
+
interface IMobilePreviewSessionRequest {
|
|
747
|
+
/** Page keyword to preview. */
|
|
748
|
+
keyword?: string;
|
|
749
|
+
/** Page id to preview (alternative to `keyword`). */
|
|
750
|
+
page_id?: number;
|
|
751
|
+
/** Language id to render in. */
|
|
752
|
+
language_id?: number;
|
|
753
|
+
/** Whether to preview the unpublished draft version. */
|
|
754
|
+
draft?: boolean;
|
|
755
|
+
}
|
|
756
|
+
interface IMobilePreviewSessionData {
|
|
757
|
+
/** Opaque one-time code (safe in the iframe URL; invalid after exchange). */
|
|
758
|
+
code: string;
|
|
759
|
+
/** ISO-8601 expiry of the one-time code. */
|
|
760
|
+
expires_at: string;
|
|
761
|
+
}
|
|
762
|
+
type IMobilePreviewSessionResponse = IBaseApiResponse<IMobilePreviewSessionData>;
|
|
763
|
+
/**
|
|
764
|
+
* POST /mobile-preview/session/exchange — public route; the one-time code IS the
|
|
765
|
+
* credential. Consumes (deletes) the code and mints a scoped preview JWT.
|
|
766
|
+
*/
|
|
767
|
+
interface IMobilePreviewExchangeRequest {
|
|
768
|
+
code: string;
|
|
769
|
+
}
|
|
770
|
+
interface IMobilePreviewExchangeData {
|
|
771
|
+
/** Short-lived scoped JWT (`purpose: 'mobile_preview'`); held in memory only. */
|
|
772
|
+
access_token: string;
|
|
773
|
+
/** Seconds until the scoped token expires. */
|
|
774
|
+
expires_in: number;
|
|
775
|
+
/** The previewed user (the minting admin), for the preview UI. */
|
|
776
|
+
user: IUserData;
|
|
777
|
+
}
|
|
778
|
+
type IMobilePreviewExchangeResponse = IBaseApiResponse<IMobilePreviewExchangeData>;
|
|
779
|
+
|
|
720
780
|
/**
|
|
721
781
|
* Cross-repo SelfHelp distribution contracts: registry index + release metadata
|
|
722
782
|
* (core / frontend / scheduler / worker / plugin), security advisories,
|
|
@@ -783,6 +843,8 @@ interface InstanceVersions {
|
|
|
783
843
|
frontend: string;
|
|
784
844
|
scheduler: string;
|
|
785
845
|
worker: string;
|
|
846
|
+
/** Mobile-preview web image version pinned for this instance (additive). */
|
|
847
|
+
mobilePreview?: string;
|
|
786
848
|
pluginApi: string;
|
|
787
849
|
}
|
|
788
850
|
interface InstanceImages {
|
|
@@ -793,6 +855,8 @@ interface InstanceImages {
|
|
|
793
855
|
mysql: string;
|
|
794
856
|
redis: string;
|
|
795
857
|
mercure: string;
|
|
858
|
+
/** Mobile-preview web image reference (additive). */
|
|
859
|
+
mobilePreview?: string;
|
|
796
860
|
}
|
|
797
861
|
interface InstanceRouting {
|
|
798
862
|
publicFrontendUrl: string;
|
|
@@ -886,6 +950,8 @@ interface InstanceLock {
|
|
|
886
950
|
version: string;
|
|
887
951
|
backendImageDigest: string;
|
|
888
952
|
frontendImageDigest: string;
|
|
953
|
+
/** Mobile-preview web image digest pinned for this instance (additive). */
|
|
954
|
+
mobilePreviewImageDigest?: string;
|
|
889
955
|
schedulerImageDigest: string;
|
|
890
956
|
workerImageDigest: string;
|
|
891
957
|
migrationVersion: string;
|
|
@@ -920,6 +986,8 @@ interface RegistryIndex {
|
|
|
920
986
|
scheduler: RegistryReleaseRef[];
|
|
921
987
|
worker: RegistryReleaseRef[];
|
|
922
988
|
plugins: RegistryReleaseRef[];
|
|
989
|
+
/** Mobile-preview web image release refs (additive; older managers ignore). */
|
|
990
|
+
mobilePreview?: RegistryReleaseRef[];
|
|
923
991
|
advisoriesUrl?: string;
|
|
924
992
|
compatibilityUrl?: string;
|
|
925
993
|
trustedKeysUrl?: string;
|
|
@@ -1029,15 +1097,63 @@ interface WorkerRelease {
|
|
|
1029
1097
|
security: SignatureBlock;
|
|
1030
1098
|
blocked?: boolean;
|
|
1031
1099
|
}
|
|
1100
|
+
/**
|
|
1101
|
+
* One plugin mobile package baked into a mobile-preview image at build time.
|
|
1102
|
+
* The preview CI runs `plugins-sync.mjs` against a curated official-plugin set
|
|
1103
|
+
* and records the result here so the manager can compute coverage (which
|
|
1104
|
+
* enabled plugins render natively vs. fall back to open-on-web in the preview)
|
|
1105
|
+
* without inspecting the image.
|
|
1106
|
+
*/
|
|
1107
|
+
interface BundledPluginRef {
|
|
1108
|
+
id: string;
|
|
1109
|
+
version: string;
|
|
1110
|
+
mobilePackage: string;
|
|
1111
|
+
mobilePackageVersion: string;
|
|
1112
|
+
}
|
|
1113
|
+
/**
|
|
1114
|
+
* Mobile-preview web image release, resolved/pinned as a first-class artifact
|
|
1115
|
+
* (peer of the frontend release). The image serves the Expo web export at
|
|
1116
|
+
* `/mobile-preview` and proxies a narrow `/mobile-preview/api` allowlist to the
|
|
1117
|
+
* private backend. `mobileRendererVersion` is the mobile renderer contract the
|
|
1118
|
+
* image was built against (what plugin `compatibility.mobile` ranges target);
|
|
1119
|
+
* `bundledPlugins` is the curated official-plugin set baked into the image.
|
|
1120
|
+
*/
|
|
1121
|
+
interface MobilePreviewRelease {
|
|
1122
|
+
kind: 'selfhelp-mobile-preview-release';
|
|
1123
|
+
id: string;
|
|
1124
|
+
version: string;
|
|
1125
|
+
channel: ReleaseChannel;
|
|
1126
|
+
image: string;
|
|
1127
|
+
digest: string;
|
|
1128
|
+
builtFrom?: {
|
|
1129
|
+
sharedPackageVersion?: string;
|
|
1130
|
+
expoSdk?: string;
|
|
1131
|
+
reactNative?: string;
|
|
1132
|
+
};
|
|
1133
|
+
backendCompatibility: ServiceBackendCompatibility;
|
|
1134
|
+
/** Mobile renderer contract version advertised by this image (semver). */
|
|
1135
|
+
mobileRendererVersion: string;
|
|
1136
|
+
/** Curated plugin mobile packages baked into the image. */
|
|
1137
|
+
bundledPlugins: BundledPluginRef[];
|
|
1138
|
+
security: SignatureBlock;
|
|
1139
|
+
blocked?: boolean;
|
|
1140
|
+
}
|
|
1032
1141
|
interface PluginRelease {
|
|
1033
1142
|
kind: 'selfhelp-plugin-release';
|
|
1034
1143
|
id: string;
|
|
1035
1144
|
version: string;
|
|
1036
1145
|
channel: ReleaseChannel;
|
|
1037
1146
|
official: boolean;
|
|
1147
|
+
/**
|
|
1148
|
+
* Compatibility ranges the host must satisfy. `mobile` (additive) is the
|
|
1149
|
+
* NEW mobile-renderer axis: the range of host `mobileRendererVersion` the
|
|
1150
|
+
* plugin's mobile package supports (parallel to `pluginApi`). Absent for
|
|
1151
|
+
* web-only plugins.
|
|
1152
|
+
*/
|
|
1038
1153
|
compatibility: {
|
|
1039
1154
|
core: string;
|
|
1040
1155
|
pluginApi: string;
|
|
1156
|
+
mobile?: string;
|
|
1041
1157
|
};
|
|
1042
1158
|
dependencies?: {
|
|
1043
1159
|
plugins: {
|
|
@@ -1694,4 +1810,4 @@ declare function transformPageData(apiPage: IRawPage): IPageItem;
|
|
|
1694
1810
|
*/
|
|
1695
1811
|
declare function transformPagesData(pages: IRawPage[] | null | undefined): IPageItem[];
|
|
1696
1812
|
|
|
1697
|
-
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 IInlineNode, 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 IMobileAdapterBaseProps, type IMobileButtonProps, type IMobileCardProps, type IMobileCheckboxProps, type IMobileContainerProps, type IMobileInputProps, type IMobileModalProps, type IMobileSelectOption, type IMobileSelectProps, type IMobileSwitchProps, type IMobileTextProps, type IMobileTextareaProps, type IMobileUiAdapters, 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, THeroUiButtonVariant, THeroUiSize, TMobileButtonFeedback, TMobileFieldVariant, TMobileSelectPresentation, 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, hasInlineFormatting, parseInlineRich, parseSpacing, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, spacingToClasses, stripHtmlToText, transformPageData, transformPagesData };
|
|
1813
|
+
export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, type BackupRetentionPolicy, type BackupSchedulePolicy, type BundledPluginRef, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, 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 IInlineNode, 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 IMobileAdapterBaseProps, type IMobileButtonProps, type IMobileCardProps, type IMobileCheckboxProps, type IMobileContainerProps, type IMobileInputProps, type IMobileModalProps, type IMobilePreviewExchangeData, type IMobilePreviewExchangeRequest, type IMobilePreviewExchangeResponse, type IMobilePreviewSessionData, type IMobilePreviewSessionRequest, type IMobilePreviewSessionResponse, type IMobileSelectOption, type IMobileSelectProps, type IMobileSwitchProps, type IMobileTextProps, type IMobileTextareaProps, type IMobileUiAdapters, 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, MOBILE_PREVIEW_ENDPOINTS, type MobilePreviewRelease, 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, THeroUiButtonVariant, THeroUiSize, TMobileButtonFeedback, TMobileFieldVariant, TMobileSelectPresentation, 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, hasInlineFormatting, parseInlineRich, parseSpacing, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, spacingToClasses, stripHtmlToText, transformPageData, transformPagesData };
|