@selfhelp/shared 1.19.0 → 1.20.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 +12 -0
- package/dist/index.d.mts +24 -2
- package/dist/index.d.ts +24 -2
- package/dist/plugin-sdk/index.d.mts +1 -1
- package/dist/plugin-sdk/index.d.ts +1 -1
- package/dist/registry/index.d.mts +2 -2
- package/dist/registry/index.d.ts +2 -2
- package/dist/{styles.registry-CANYbEa5.d.ts → styles.registry-DEDEZ8l3.d.ts} +22 -0
- package/dist/{styles.registry-6UBNKpyL.d.mts → styles.registry-DHM4M77N.d.mts} +22 -0
- package/package.json +1 -1
- package/src/types/pages.ts +22 -0
- package/src/types/styles/forms.ts +22 -0
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,18 @@ 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.20.0
|
|
13
|
+
|
|
14
|
+
**CMS-in-CMS modal contract (sizing + form/list actions)** — additive contracts
|
|
15
|
+
for the open-in-modal UX. `IPageContent` (`src/types/pages.ts`) gains the
|
|
16
|
+
optional `modal_width` and `modal_height` fields (a CSS length such as `'80%'` /
|
|
17
|
+
`'640px'`, or `'auto'`; `null`/absent means the frontend default of 80% and the
|
|
18
|
+
web modal caps `auto` at 90% of the viewport). The form/list style contracts
|
|
19
|
+
(`src/types/styles/forms.ts`) carry the modal-action fields consumed by the web
|
|
20
|
+
renderers: `close_modal_on_save` + `redirect_on_save` (form-log / form-record)
|
|
21
|
+
and `add_url` + `edit_url` (show-user-input). All additions are optional/new, so
|
|
22
|
+
`^1.x` consumers are unaffected.
|
|
23
|
+
|
|
12
24
|
## v1.19.0
|
|
13
25
|
|
|
14
26
|
**Navigation rendering + page icons contract (navigation pages)** — additive
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TStyleName, j as IContentField, k as TMobileButtonFeedback, l as TMobileFieldVariant, m as TMobileSelectPresentation } from './styles.registry-
|
|
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-
|
|
1
|
+
import { T as TStyleName, j as IContentField, k as TMobileButtonFeedback, l as TMobileFieldVariant, m as TMobileSelectPresentation } from './styles.registry-DHM4M77N.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-DHM4M77N.mjs';
|
|
3
3
|
export { v as TMantineAccordionVariant, y as TMantineActionIconLoading, d as TMantineAlign, z as TMantineAllowNextClicks, A as TMantineAllowStepClick, B as TMantineAspectRatio, C as TMantineAutoContrast, r as TMantineAvatarVariant, q as TMantineBadgeVariant, D as TMantineBlock, E as TMantineCenterInline, F as TMantineChecked, G as TMantineChipChecked, H as TMantineChipMultiple, s as TMantineChipVariant, I as TMantineClampBehavior, J as TMantineCodeBlock, T as TMantineColor, K as TMantineColorFormat, L as TMantineColorInputSwatches, M as TMantineColorPickerSwatches, N as TMantineColorPickerSwatchesPerRow, O as TMantineCompact, P as TMantineContainerFluid, e as TMantineDirection, Q as TMantineDisabled, n as TMantineFieldsetVariant, R as TMantineFileAccept, S as TMantineFileInputMultiple, U as TMantineFluid, V as TMantineFullWidth, i as TMantineGridGrow, g as TMantineGridOverflow, h as TMantineGridSpan, W as TMantineGroupGrow, X as TMantineGroupWrap, Y as TMantineGrow, Z as TMantineHighlight, t as TMantineIndicatorPosition, _ as TMantineInline, $ as TMantineIsLink, c as TMantineJustify, a0 as TMantineKbdSize, a1 as TMantineLoading, a2 as TMantineMultiple, a3 as TMantineNotificationWithCloseButton, a4 as TMantineNumberInputDecimalScale, a5 as TMantineOpenInNewTab, j as TMantineOrientation, a6 as TMantineProcessing, a as TMantineRadius, a7 as TMantineRangeSliderMarks, a8 as TMantineRatingCount, a9 as TMantineRatingFractions, aa as TMantineRatingReadonly, ab as TMantineReadonly, m as TMantineSize, ac as TMantineSpaceHorizontal, ad as TMantineSpacing, o as TMantineSpoilerMaxHeight, ae as TMantineSwatches, af as TMantineTabDisabled, w as TMantineTabsVariant, u as TMantineThemeIconVariant, x as TMantineTimelineLineVariant, l as TMantineTitleOrder, ag as TMantineUseMantineStyle, p as TMantineVariant, ah as TMantineWithCloseButton, ai as TMantineWithIcon, f as TMantineWrap, k as TSharedRadius, b as TSharedSize } from './common-qaDIAYS3.mjs';
|
|
4
4
|
import { ReactNode, ComponentType } from 'react';
|
|
5
5
|
import { THeroUiButtonVariant, THeroUiSize } from './theme/index.mjs';
|
|
@@ -128,6 +128,28 @@ interface IPageContent {
|
|
|
128
128
|
url: string | null;
|
|
129
129
|
parent_page_id: number | null;
|
|
130
130
|
is_headless: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* When true, the web frontend renders this page's content inside a modal
|
|
133
|
+
* overlay (the page title becomes the modal header, with a close button)
|
|
134
|
+
* instead of a full page. Used to open CMS-in-CMS create/edit/detail pages
|
|
135
|
+
* from a list. Web-only — the mobile app renders the page as a normal
|
|
136
|
+
* screen. Mirrors the `open_in_modal` page property field.
|
|
137
|
+
*/
|
|
138
|
+
open_in_modal?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Optional modal width applied when `open_in_modal` is true (web only). A CSS
|
|
141
|
+
* length (e.g. `'80%'`, `'640px'`) or `'auto'` (fit content, capped at 90% of
|
|
142
|
+
* the viewport). `null`/absent means the frontend default (80%). Mirrors the
|
|
143
|
+
* `modal_width` page property field.
|
|
144
|
+
*/
|
|
145
|
+
modal_width?: string | null;
|
|
146
|
+
/**
|
|
147
|
+
* Optional modal height applied when `open_in_modal` is true (web only). A CSS
|
|
148
|
+
* length (e.g. `'80%'`, `'600px'`) or `'auto'` (fit content, capped at 90% of
|
|
149
|
+
* the viewport). `null`/absent means the frontend default (80%). Mirrors the
|
|
150
|
+
* `modal_height` page property field.
|
|
151
|
+
*/
|
|
152
|
+
modal_height?: string | null;
|
|
131
153
|
nav_position: number | null;
|
|
132
154
|
footer_position: number | null;
|
|
133
155
|
title?: string | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TStyleName, j as IContentField, k as TMobileButtonFeedback, l as TMobileFieldVariant, m as TMobileSelectPresentation } from './styles.registry-
|
|
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-
|
|
1
|
+
import { T as TStyleName, j as IContentField, k as TMobileButtonFeedback, l as TMobileFieldVariant, m as TMobileSelectPresentation } from './styles.registry-DEDEZ8l3.js';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, n as IAccordionItemStyle, o as IAccordionStyle, p as IActionIconStyle, q as IAlertStyle, r as IAspectRatioStyle, s as IAudioStyle, t as IAvatarStyle, u as IBackgroundImageStyle, v as IBadgeStyle, w as IBaseStyle, x as IBlockquoteStyle, y as IBoxStyle, z as IButtonStyle, A as ICardSegmentStyle, C as ICardStyle, D as ICarouselStyle, E as ICenterStyle, F as ICheckboxStyle, G as IChipStyle, H as ICodeStyle, J as IColorInputStyle, K as IColorPickerStyle, L as IComboboxStyle, M as IContainerStyle, N as IDataContainerStyle, O as IDatePickerStyle, P as IDividerStyle, Q as IEntryListStyle, R as IEntryRecordDeleteStyle, U as IEntryRecordStyle, V as IFieldsetStyle, W as IFigureStyle, X as IFileInputStyle, Y as IFlexStyle, Z as IFormLogStyle, $ as IFormRecordStyle, a0 as IFormStyle, a1 as IGridColumnStyle, a2 as IGridStyle, a3 as IGroupStyle, a4 as IHighlightStyle, a5 as IHtmlTagStyle, a6 as IImageStyle, a7 as IIndicatorStyle, a8 as IInputStyle, a9 as IKbdStyle, aa as ILinkStyle, ab as IListItemStyle, ac as IListStyle, ad as ILoginStyle, ae as ILoopStyle, af as IMissingStyle, ag as INoAccessStyle, ah as INotFoundStyle, ai as INotificationStyle, aj as INumberInputStyle, ak as IPaperStyle, a as IPluginStyleRegistryEntry, al as IProfileStyle, am as IProgressRootStyle, an as IProgressSectionStyle, ao as IProgressStyle, ap as IRadioStyle, aq as IRangeSliderStyle, ar as IRatingStyle, as as IRefContainerStyle, at as IRegisterStyle, au as IResetPasswordStyle, av as IRichTextEditorStyle, aw as IScrollAreaStyle, ax as ISegmentedControlStyle, ay as ISelectStyle, az as IShowUserInputEntry, aA as IShowUserInputStyle, aB as ISimpleGridStyle, aC as ISliderStyle, aD as ISpaceStyle, aE as ISpoilerStyle, aF as IStackStyle, I as IStyleRegistryEntry, aG as IStyleWithSpacing, aH as ISwitchStyle, aI as ITabStyle, aJ as ITabsStyle, aK as ITextInputStyle, aL as ITextStyle, aM as ITextareaStyle, aN as IThemeIconStyle, aO as ITimelineItemStyle, aP as ITimelineStyle, aQ as ITitleStyle, aR as ITwoFactorAuthStyle, aS as ITypographyStyle, aT as IUnknownStyle, aU as IValidateStyle, aV as IVersionStyle, aW as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, aX as TMantineAccordionChevronPosition, aY as TMantineAccordionDisableChevronRotation, aZ as TMantineAccordionLoop, a_ as TMantineAccordionMultiple, a$ as TMantineAnchorUnderline, b0 as TMantineBorder, b1 as TMantineCardPadding, b2 as TMantineCardShadow, b3 as TMantineCols, b4 as TMantineDividerVariant, b5 as TMantineGap, b6 as TMantineGridOffset, b7 as TMantineGridOrder, b8 as TMantineHeight, b9 as TMantineIconSize, ba as TMantineImageFit, bb as TMantineLineClamp, bc as TMantineListCenter, bd as TMantineListStyleType, be as TMantineListType, bf as TMantineListWithPadding, bg as TMantinePaperShadow, bh as TMantineProgressTransition, bi as TMantineScrollAreaSize, bj as TMantineScrollAreaType, bk as TMantineTextAlign, bl as TMantineTextDecoration, bm as TMantineTextFontStyle, bn as TMantineTextFontWeight, bo as TMantineTextInherit, bp as TMantineTextInputVariant, bq as TMantineTextSpan, br as TMantineTextTransform, bs as TMantineTextTruncate, bt as TMantineTextVariant, bu as TMantineTextareaAutosize, bv as TMantineTextareaResize, bw as TMantineTextareaVariant, bx as TMantineTimelineAlign, by as TMantineTitleLineClamp, bz as TMantineTitleTextWrap, bA as TMantineTranslatable, bB as TMantineUseInputWrapper, bC as TMantineWidth, bD as TSharedBorder, bE as TSharedCols, bF as TSharedDimension, bG as TSharedDividerLabelPosition, bH as TSharedDividerVariant, bI as TSharedLabelPosition, bJ as TStyle, b as TStylePlacement, d as TStylePlatform, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from './styles.registry-DEDEZ8l3.js';
|
|
3
3
|
export { v as TMantineAccordionVariant, y as TMantineActionIconLoading, d as TMantineAlign, z as TMantineAllowNextClicks, A as TMantineAllowStepClick, B as TMantineAspectRatio, C as TMantineAutoContrast, r as TMantineAvatarVariant, q as TMantineBadgeVariant, D as TMantineBlock, E as TMantineCenterInline, F as TMantineChecked, G as TMantineChipChecked, H as TMantineChipMultiple, s as TMantineChipVariant, I as TMantineClampBehavior, J as TMantineCodeBlock, T as TMantineColor, K as TMantineColorFormat, L as TMantineColorInputSwatches, M as TMantineColorPickerSwatches, N as TMantineColorPickerSwatchesPerRow, O as TMantineCompact, P as TMantineContainerFluid, e as TMantineDirection, Q as TMantineDisabled, n as TMantineFieldsetVariant, R as TMantineFileAccept, S as TMantineFileInputMultiple, U as TMantineFluid, V as TMantineFullWidth, i as TMantineGridGrow, g as TMantineGridOverflow, h as TMantineGridSpan, W as TMantineGroupGrow, X as TMantineGroupWrap, Y as TMantineGrow, Z as TMantineHighlight, t as TMantineIndicatorPosition, _ as TMantineInline, $ as TMantineIsLink, c as TMantineJustify, a0 as TMantineKbdSize, a1 as TMantineLoading, a2 as TMantineMultiple, a3 as TMantineNotificationWithCloseButton, a4 as TMantineNumberInputDecimalScale, a5 as TMantineOpenInNewTab, j as TMantineOrientation, a6 as TMantineProcessing, a as TMantineRadius, a7 as TMantineRangeSliderMarks, a8 as TMantineRatingCount, a9 as TMantineRatingFractions, aa as TMantineRatingReadonly, ab as TMantineReadonly, m as TMantineSize, ac as TMantineSpaceHorizontal, ad as TMantineSpacing, o as TMantineSpoilerMaxHeight, ae as TMantineSwatches, af as TMantineTabDisabled, w as TMantineTabsVariant, u as TMantineThemeIconVariant, x as TMantineTimelineLineVariant, l as TMantineTitleOrder, ag as TMantineUseMantineStyle, p as TMantineVariant, ah as TMantineWithCloseButton, ai as TMantineWithIcon, f as TMantineWrap, k as TSharedRadius, b as TSharedSize } from './common-qaDIAYS3.js';
|
|
4
4
|
import { ReactNode, ComponentType } from 'react';
|
|
5
5
|
import { THeroUiButtonVariant, THeroUiSize } from './theme/index.js';
|
|
@@ -128,6 +128,28 @@ interface IPageContent {
|
|
|
128
128
|
url: string | null;
|
|
129
129
|
parent_page_id: number | null;
|
|
130
130
|
is_headless: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* When true, the web frontend renders this page's content inside a modal
|
|
133
|
+
* overlay (the page title becomes the modal header, with a close button)
|
|
134
|
+
* instead of a full page. Used to open CMS-in-CMS create/edit/detail pages
|
|
135
|
+
* from a list. Web-only — the mobile app renders the page as a normal
|
|
136
|
+
* screen. Mirrors the `open_in_modal` page property field.
|
|
137
|
+
*/
|
|
138
|
+
open_in_modal?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Optional modal width applied when `open_in_modal` is true (web only). A CSS
|
|
141
|
+
* length (e.g. `'80%'`, `'640px'`) or `'auto'` (fit content, capped at 90% of
|
|
142
|
+
* the viewport). `null`/absent means the frontend default (80%). Mirrors the
|
|
143
|
+
* `modal_width` page property field.
|
|
144
|
+
*/
|
|
145
|
+
modal_width?: string | null;
|
|
146
|
+
/**
|
|
147
|
+
* Optional modal height applied when `open_in_modal` is true (web only). A CSS
|
|
148
|
+
* length (e.g. `'80%'`, `'600px'`) or `'auto'` (fit content, capped at 90% of
|
|
149
|
+
* the viewport). `null`/absent means the frontend default (80%). Mirrors the
|
|
150
|
+
* `modal_height` page property field.
|
|
151
|
+
*/
|
|
152
|
+
modal_height?: string | null;
|
|
131
153
|
nav_position: number | null;
|
|
132
154
|
footer_position: number | null;
|
|
133
155
|
title?: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { I as IPluginManifest, a as IPluginManifestAdminPage, b as IPluginManifestApiRoute, c as IPluginManifestAsset, d as IPluginManifestCapability, e as IPluginManifestCompatibility, f as IPluginManifestConflict, g as IPluginManifestDataAccess, h as IPluginManifestDependency, i as IPluginManifestExternalHost, j as IPluginManifestFeatureFlag, k as IPluginManifestHealth, l as IPluginManifestLookupExtension, m as IPluginManifestMobile, n as IPluginManifestPermission, o as IPluginManifestRealtimeTopic, p as IPluginManifestScheduledJob, q as IPluginManifestSecurity, r as IPluginManifestStyle, s as IPluginManifestTrustLevel } from '../manifest-8YXAk-4o.mjs';
|
|
2
|
-
import { I as IStyleRegistryEntry } from '../styles.registry-
|
|
2
|
+
import { I as IStyleRegistryEntry } from '../styles.registry-DHM4M77N.mjs';
|
|
3
3
|
import '../common-qaDIAYS3.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { I as IPluginManifest, a as IPluginManifestAdminPage, b as IPluginManifestApiRoute, c as IPluginManifestAsset, d as IPluginManifestCapability, e as IPluginManifestCompatibility, f as IPluginManifestConflict, g as IPluginManifestDataAccess, h as IPluginManifestDependency, i as IPluginManifestExternalHost, j as IPluginManifestFeatureFlag, k as IPluginManifestHealth, l as IPluginManifestLookupExtension, m as IPluginManifestMobile, n as IPluginManifestPermission, o as IPluginManifestRealtimeTopic, p as IPluginManifestScheduledJob, q as IPluginManifestSecurity, r as IPluginManifestStyle, s as IPluginManifestTrustLevel } from '../manifest-8YXAk-4o.js';
|
|
2
|
-
import { I as IStyleRegistryEntry } from '../styles.registry-
|
|
2
|
+
import { I as IStyleRegistryEntry } from '../styles.registry-DEDEZ8l3.js';
|
|
3
3
|
import '../common-qaDIAYS3.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-
|
|
1
|
+
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-DHM4M77N.mjs';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-DHM4M77N.mjs';
|
|
3
3
|
import '../common-qaDIAYS3.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/registry/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-
|
|
1
|
+
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-DEDEZ8l3.js';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-DEDEZ8l3.js';
|
|
3
3
|
import '../common-qaDIAYS3.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -687,6 +687,16 @@ interface IFormStyle extends IStyleWithSpacing {
|
|
|
687
687
|
confirm_submit?: IContentField<string>;
|
|
688
688
|
/** Message shown in the confirmation dialog before submit. */
|
|
689
689
|
confirm_message?: IContentField<string>;
|
|
690
|
+
/**
|
|
691
|
+
* When '1', a successful submit closes the surrounding web modal (only has
|
|
692
|
+
* an effect when the form's page is opened with `open_in_modal`). Web-only.
|
|
693
|
+
*/
|
|
694
|
+
close_modal_on_save?: IContentField<string>;
|
|
695
|
+
/**
|
|
696
|
+
* Optional URL to navigate to after a successful submit (the parent list is
|
|
697
|
+
* refreshed). Empty = stay / close the modal. Web-only.
|
|
698
|
+
*/
|
|
699
|
+
redirect_on_save?: IContentField<string>;
|
|
690
700
|
buttons_size?: IContentField<string>;
|
|
691
701
|
buttons_radius?: IContentField<string>;
|
|
692
702
|
buttons_variant?: IContentField<string>;
|
|
@@ -1103,6 +1113,18 @@ interface IShowUserInputStyle extends IBaseStyle {
|
|
|
1103
1113
|
csv_export?: IContentField<string>;
|
|
1104
1114
|
delete_entry?: IContentField<string>;
|
|
1105
1115
|
fields_map?: IContentField<string>;
|
|
1116
|
+
/**
|
|
1117
|
+
* Optional URL of a create form. When set, the web table shows an "Add new"
|
|
1118
|
+
* button above it (e.g. opens the create form modal). Web-only.
|
|
1119
|
+
*/
|
|
1120
|
+
add_url?: IContentField<string>;
|
|
1121
|
+
/**
|
|
1122
|
+
* Optional URL template for opening a row's detail (e.g.
|
|
1123
|
+
* `/cms/team/{record_id}`). When set, each row gets an open/view action
|
|
1124
|
+
* (eye icon) with the single-brace `{record_id}` placeholder substituted by
|
|
1125
|
+
* the renderer at click time. Web-only.
|
|
1126
|
+
*/
|
|
1127
|
+
edit_url?: IContentField<string>;
|
|
1106
1128
|
delete_modal_title?: IContentField<string>;
|
|
1107
1129
|
delete_modal_body?: IContentField<string>;
|
|
1108
1130
|
spacing?: IContentField<string>;
|
|
@@ -687,6 +687,16 @@ interface IFormStyle extends IStyleWithSpacing {
|
|
|
687
687
|
confirm_submit?: IContentField<string>;
|
|
688
688
|
/** Message shown in the confirmation dialog before submit. */
|
|
689
689
|
confirm_message?: IContentField<string>;
|
|
690
|
+
/**
|
|
691
|
+
* When '1', a successful submit closes the surrounding web modal (only has
|
|
692
|
+
* an effect when the form's page is opened with `open_in_modal`). Web-only.
|
|
693
|
+
*/
|
|
694
|
+
close_modal_on_save?: IContentField<string>;
|
|
695
|
+
/**
|
|
696
|
+
* Optional URL to navigate to after a successful submit (the parent list is
|
|
697
|
+
* refreshed). Empty = stay / close the modal. Web-only.
|
|
698
|
+
*/
|
|
699
|
+
redirect_on_save?: IContentField<string>;
|
|
690
700
|
buttons_size?: IContentField<string>;
|
|
691
701
|
buttons_radius?: IContentField<string>;
|
|
692
702
|
buttons_variant?: IContentField<string>;
|
|
@@ -1103,6 +1113,18 @@ interface IShowUserInputStyle extends IBaseStyle {
|
|
|
1103
1113
|
csv_export?: IContentField<string>;
|
|
1104
1114
|
delete_entry?: IContentField<string>;
|
|
1105
1115
|
fields_map?: IContentField<string>;
|
|
1116
|
+
/**
|
|
1117
|
+
* Optional URL of a create form. When set, the web table shows an "Add new"
|
|
1118
|
+
* button above it (e.g. opens the create form modal). Web-only.
|
|
1119
|
+
*/
|
|
1120
|
+
add_url?: IContentField<string>;
|
|
1121
|
+
/**
|
|
1122
|
+
* Optional URL template for opening a row's detail (e.g.
|
|
1123
|
+
* `/cms/team/{record_id}`). When set, each row gets an open/view action
|
|
1124
|
+
* (eye icon) with the single-brace `{record_id}` placeholder substituted by
|
|
1125
|
+
* the renderer at click time. Web-only.
|
|
1126
|
+
*/
|
|
1127
|
+
edit_url?: IContentField<string>;
|
|
1106
1128
|
delete_modal_title?: IContentField<string>;
|
|
1107
1129
|
delete_modal_body?: IContentField<string>;
|
|
1108
1130
|
spacing?: IContentField<string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selfhelp/shared",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0",
|
|
4
4
|
"description": "Shared TypeScript package for SelfHelp web frontend and mobile app: style registry, types, API contracts, Mantine theme tokens, condition + interpolation engines, CMS class allow-list.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
package/src/types/pages.ts
CHANGED
|
@@ -80,6 +80,28 @@ export interface IPageContent {
|
|
|
80
80
|
url: string | null;
|
|
81
81
|
parent_page_id: number | null;
|
|
82
82
|
is_headless: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* When true, the web frontend renders this page's content inside a modal
|
|
85
|
+
* overlay (the page title becomes the modal header, with a close button)
|
|
86
|
+
* instead of a full page. Used to open CMS-in-CMS create/edit/detail pages
|
|
87
|
+
* from a list. Web-only — the mobile app renders the page as a normal
|
|
88
|
+
* screen. Mirrors the `open_in_modal` page property field.
|
|
89
|
+
*/
|
|
90
|
+
open_in_modal?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Optional modal width applied when `open_in_modal` is true (web only). A CSS
|
|
93
|
+
* length (e.g. `'80%'`, `'640px'`) or `'auto'` (fit content, capped at 90% of
|
|
94
|
+
* the viewport). `null`/absent means the frontend default (80%). Mirrors the
|
|
95
|
+
* `modal_width` page property field.
|
|
96
|
+
*/
|
|
97
|
+
modal_width?: string | null;
|
|
98
|
+
/**
|
|
99
|
+
* Optional modal height applied when `open_in_modal` is true (web only). A CSS
|
|
100
|
+
* length (e.g. `'80%'`, `'600px'`) or `'auto'` (fit content, capped at 90% of
|
|
101
|
+
* the viewport). `null`/absent means the frontend default (80%). Mirrors the
|
|
102
|
+
* `modal_height` page property field.
|
|
103
|
+
*/
|
|
104
|
+
modal_height?: string | null;
|
|
83
105
|
nav_position: number | null;
|
|
84
106
|
footer_position: number | null;
|
|
85
107
|
title?: string | null;
|
|
@@ -42,6 +42,16 @@ export interface IFormStyle extends IStyleWithSpacing {
|
|
|
42
42
|
confirm_submit?: IContentField<string>;
|
|
43
43
|
/** Message shown in the confirmation dialog before submit. */
|
|
44
44
|
confirm_message?: IContentField<string>;
|
|
45
|
+
/**
|
|
46
|
+
* When '1', a successful submit closes the surrounding web modal (only has
|
|
47
|
+
* an effect when the form's page is opened with `open_in_modal`). Web-only.
|
|
48
|
+
*/
|
|
49
|
+
close_modal_on_save?: IContentField<string>;
|
|
50
|
+
/**
|
|
51
|
+
* Optional URL to navigate to after a successful submit (the parent list is
|
|
52
|
+
* refreshed). Empty = stay / close the modal. Web-only.
|
|
53
|
+
*/
|
|
54
|
+
redirect_on_save?: IContentField<string>;
|
|
45
55
|
// RF-21: button knobs are portable to the mobile custom form (not a 1:1
|
|
46
56
|
// component map). Promoted web_* -> shared_* so both renderers read them.
|
|
47
57
|
buttons_size?: IContentField<string>;
|
|
@@ -488,6 +498,18 @@ export interface IShowUserInputStyle extends IBaseStyle {
|
|
|
488
498
|
csv_export?: IContentField<string>;
|
|
489
499
|
delete_entry?: IContentField<string>;
|
|
490
500
|
fields_map?: IContentField<string>;
|
|
501
|
+
/**
|
|
502
|
+
* Optional URL of a create form. When set, the web table shows an "Add new"
|
|
503
|
+
* button above it (e.g. opens the create form modal). Web-only.
|
|
504
|
+
*/
|
|
505
|
+
add_url?: IContentField<string>;
|
|
506
|
+
/**
|
|
507
|
+
* Optional URL template for opening a row's detail (e.g.
|
|
508
|
+
* `/cms/team/{record_id}`). When set, each row gets an open/view action
|
|
509
|
+
* (eye icon) with the single-brace `{record_id}` placeholder substituted by
|
|
510
|
+
* the renderer at click time. Web-only.
|
|
511
|
+
*/
|
|
512
|
+
edit_url?: IContentField<string>;
|
|
491
513
|
delete_modal_title?: IContentField<string>;
|
|
492
514
|
delete_modal_body?: IContentField<string>;
|
|
493
515
|
spacing?: IContentField<string>;
|