@selfhelp/shared 1.7.2 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +5 -5
- package/dist/index.mjs +5 -5
- package/dist/plugin-sdk/index.d.mts +1 -1
- package/dist/plugin-sdk/index.d.ts +1 -1
- package/dist/plugin-sdk/index.js +5 -5
- package/dist/plugin-sdk/index.mjs +5 -5
- package/dist/registry/index.d.mts +2 -2
- package/dist/registry/index.d.ts +2 -2
- package/dist/registry/index.js +5 -5
- package/dist/registry/index.mjs +5 -5
- package/dist/{styles.registry-D49K8F5z.d.ts → styles.registry-ClluRYkN.d.ts} +17 -17
- package/dist/{styles.registry-B147FVHY.d.mts → styles.registry-nl8uzvMN.d.mts} +17 -17
- package/package.json +1 -1
- package/src/registry/styles.registry.ts +5 -5
- package/src/types/styles/auth.ts +2 -2
- package/src/types/styles/base.ts +1 -1
- package/src/types/styles/composite.ts +3 -3
- package/src/types/styles/error.ts +2 -2
- package/src/types/styles/forms.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,30 @@ All notable changes to `@selfhelp/shared` will be documented in this file.
|
|
|
9
9
|
|
|
10
10
|
This project follows semantic versioning.
|
|
11
11
|
|
|
12
|
+
## v1.8.0
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- **BREAKING (shipped as a minor by request): CMS style names are now
|
|
17
|
+
kebab-case.** The `style_name` discriminator on the core style contracts was
|
|
18
|
+
renamed from camelCase to kebab-case so the cross-repo style catalog uses one
|
|
19
|
+
casing everywhere (backend `styles` seeds/DB, this package, the frontend
|
|
20
|
+
`BasicStyle` dispatcher, and the mobile renderers). Renamed: `resetPassword` →
|
|
21
|
+
`reset-password`, `twoFactorAuth` → `two-factor-auth`, `noAccess` →
|
|
22
|
+
`no-access`, `notFound` → `not-found`, `entryList` → `entry-list`,
|
|
23
|
+
`entryRecord` → `entry-record`, `entryRecordDelete` → `entry-record-delete`,
|
|
24
|
+
`showUserInput` → `show-user-input`. The TypeScript interface names
|
|
25
|
+
(`IResetPasswordStyle`, `IEntryListStyle`, …) are unchanged — only the
|
|
26
|
+
`style_name` string literal moved.
|
|
27
|
+
- Because this is a breaking contract change released as a **minor** (1.8.0),
|
|
28
|
+
consumers on a `^1.7.x` range pick it up on their next install. It must land in
|
|
29
|
+
lockstep: the backend renames the matching `styles.name` rows (sections
|
|
30
|
+
reference styles by FK id, so it is a metadata rename, not a content
|
|
31
|
+
migration), and the frontend/mobile update their local style-name unions +
|
|
32
|
+
dispatcher keys in the same release.
|
|
33
|
+
- `AGENTS.md` now mandates kebab-case style names; the previous "preserve legacy
|
|
34
|
+
camelCase names" guidance was reversed.
|
|
35
|
+
|
|
12
36
|
## v1.7.2
|
|
13
37
|
|
|
14
38
|
### Added
|
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { f as IStyleWithSpacing, h as IContentField, T as TStyleName } from './styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, i as IAccordionItemStyle, j as IAccordionStyle, k as IActionIconStyle, l as IAlertStyle, m as IAspectRatioStyle, n as IAudioStyle, o as IAvatarStyle, p as IBackgroundImageStyle, q as IBadgeStyle, r as IBaseStyle, s as IBlockquoteStyle, t as IBoxStyle, u as IButtonStyle, v as ICardSegmentStyle, w as ICardStyle, x as ICarouselStyle, y as ICenterStyle, z as ICheckboxStyle, A as IChipStyle, C as ICodeStyle, D as IColorInputStyle, E as IColorPickerStyle, F as IComboboxStyle, G as IContainerStyle, H as IDatePickerStyle, J as IDividerStyle, K as IEntryListStyle, L as IEntryRecordDeleteStyle, M as IEntryRecordStyle, N as IFieldsetStyle, O as IFigureStyle, P as IFileInputStyle, Q as IFlexStyle, R as IFormLogStyle, U as IFormRecordStyle, V as IFormStyle, W as IGridColumnStyle, X as IGridStyle, Y as IGroupStyle, Z as IHighlightStyle, $ as IHtmlTagStyle, a0 as IImageStyle, a1 as IIndicatorStyle, a2 as IInputStyle, a3 as IKbdStyle, a4 as ILinkStyle, a5 as IListItemStyle, a6 as IListStyle, a7 as ILoginStyle, a8 as ILoopStyle, a9 as INotificationStyle, aa as INumberInputStyle, ab as IPaperStyle, a as IPluginStyleRegistryEntry, ac as IProfileStyle, ad as IProgressRootStyle, ae as IProgressSectionStyle, af as IProgressStyle, ag as IRadioStyle, ah as IRangeSliderStyle, ai as IRatingStyle, aj as IRegisterStyle, ak as IResetPasswordStyle, al as IRichTextEditorStyle, am as IScrollAreaStyle, an as ISegmentedControlStyle, ao as ISelectStyle, ap as IShowUserInputEntry, aq as IShowUserInputStyle, ar as ISimpleGridStyle, as as ISliderStyle, at as ISpaceStyle, au as ISpoilerStyle, av as IStackStyle, I as IStyleRegistryEntry, aw as ISwitchStyle, ax as ITabStyle, ay as ITabsStyle, az as ITextInputStyle, aA as ITextStyle, aB as ITextareaStyle, aC as IThemeIconStyle, aD as ITimelineStyle, aE as ITitleStyle, aF as ITwoFactorAuthStyle, aG as ITypographyStyle, aH as IUnknownStyle, aI as IValidateStyle, aJ as IVideoStyle, S as STYLE_REGISTRY, aK as TMantineAccordionChevronPosition, aL as TMantineAccordionDisableChevronRotation, aM as TMantineAccordionLoop, aN as TMantineAccordionMultiple, aO as TMantineBorder, aP as TMantineCardShadow, aQ as TMantineCheckboxLabelPosition, aR as TMantineCols, aS as TMantineDividerVariant, aT as TMantineGap, aU as TMantineGridOffset, aV as TMantineGridOrder, aW as TMantineHeight, aX as TMantineIconSize, aY as TMantineImageFit, aZ as TMantineLineClamp, a_ as TMantineListCenter, a$ as TMantineListStyleType, b0 as TMantineListType, b1 as TMantineListWithPadding, b2 as TMantinePaperShadow, b3 as TMantineProgressTransition, b4 as TMantineScrollAreaSize, b5 as TMantineScrollAreaType, b6 as TMantineTextAlign, b7 as TMantineTextDecoration, b8 as TMantineTextFontStyle, b9 as TMantineTextFontWeight, ba as TMantineTextInherit, bb as TMantineTextInputVariant, bc as TMantineTextSpan, bd as TMantineTextTransform, be as TMantineTextTruncate, bf as TMantineTextVariant, bg as TMantineTextareaAutosize, bh as TMantineTextareaResize, bi as TMantineTextareaVariant, bj as TMantineTimelineAlign, bk as TMantineTitleLineClamp, bl as TMantineTitleTextWrap, bm as TMantineTranslatable, bn as TMantineUseInputWrapper, bo as TMantineWidth, bp as TStyle, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from './styles.registry-
|
|
1
|
+
import { f as IStyleWithSpacing, h as IContentField, T as TStyleName } from './styles.registry-nl8uzvMN.mjs';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, i as IAccordionItemStyle, j as IAccordionStyle, k as IActionIconStyle, l as IAlertStyle, m as IAspectRatioStyle, n as IAudioStyle, o as IAvatarStyle, p as IBackgroundImageStyle, q as IBadgeStyle, r as IBaseStyle, s as IBlockquoteStyle, t as IBoxStyle, u as IButtonStyle, v as ICardSegmentStyle, w as ICardStyle, x as ICarouselStyle, y as ICenterStyle, z as ICheckboxStyle, A as IChipStyle, C as ICodeStyle, D as IColorInputStyle, E as IColorPickerStyle, F as IComboboxStyle, G as IContainerStyle, H as IDatePickerStyle, J as IDividerStyle, K as IEntryListStyle, L as IEntryRecordDeleteStyle, M as IEntryRecordStyle, N as IFieldsetStyle, O as IFigureStyle, P as IFileInputStyle, Q as IFlexStyle, R as IFormLogStyle, U as IFormRecordStyle, V as IFormStyle, W as IGridColumnStyle, X as IGridStyle, Y as IGroupStyle, Z as IHighlightStyle, $ as IHtmlTagStyle, a0 as IImageStyle, a1 as IIndicatorStyle, a2 as IInputStyle, a3 as IKbdStyle, a4 as ILinkStyle, a5 as IListItemStyle, a6 as IListStyle, a7 as ILoginStyle, a8 as ILoopStyle, a9 as INotificationStyle, aa as INumberInputStyle, ab as IPaperStyle, a as IPluginStyleRegistryEntry, ac as IProfileStyle, ad as IProgressRootStyle, ae as IProgressSectionStyle, af as IProgressStyle, ag as IRadioStyle, ah as IRangeSliderStyle, ai as IRatingStyle, aj as IRegisterStyle, ak as IResetPasswordStyle, al as IRichTextEditorStyle, am as IScrollAreaStyle, an as ISegmentedControlStyle, ao as ISelectStyle, ap as IShowUserInputEntry, aq as IShowUserInputStyle, ar as ISimpleGridStyle, as as ISliderStyle, at as ISpaceStyle, au as ISpoilerStyle, av as IStackStyle, I as IStyleRegistryEntry, aw as ISwitchStyle, ax as ITabStyle, ay as ITabsStyle, az as ITextInputStyle, aA as ITextStyle, aB as ITextareaStyle, aC as IThemeIconStyle, aD as ITimelineStyle, aE as ITitleStyle, aF as ITwoFactorAuthStyle, aG as ITypographyStyle, aH as IUnknownStyle, aI as IValidateStyle, aJ as IVideoStyle, S as STYLE_REGISTRY, aK as TMantineAccordionChevronPosition, aL as TMantineAccordionDisableChevronRotation, aM as TMantineAccordionLoop, aN as TMantineAccordionMultiple, aO as TMantineBorder, aP as TMantineCardShadow, aQ as TMantineCheckboxLabelPosition, aR as TMantineCols, aS as TMantineDividerVariant, aT as TMantineGap, aU as TMantineGridOffset, aV as TMantineGridOrder, aW as TMantineHeight, aX as TMantineIconSize, aY as TMantineImageFit, aZ as TMantineLineClamp, a_ as TMantineListCenter, a$ as TMantineListStyleType, b0 as TMantineListType, b1 as TMantineListWithPadding, b2 as TMantinePaperShadow, b3 as TMantineProgressTransition, b4 as TMantineScrollAreaSize, b5 as TMantineScrollAreaType, b6 as TMantineTextAlign, b7 as TMantineTextDecoration, b8 as TMantineTextFontStyle, b9 as TMantineTextFontWeight, ba as TMantineTextInherit, bb as TMantineTextInputVariant, bc as TMantineTextSpan, bd as TMantineTextTransform, be as TMantineTextTruncate, bf as TMantineTextVariant, bg as TMantineTextareaAutosize, bh as TMantineTextareaResize, bi as TMantineTextareaVariant, bj as TMantineTimelineAlign, bk as TMantineTitleLineClamp, bl as TMantineTitleTextWrap, bm as TMantineTranslatable, bn as TMantineUseInputWrapper, bo as TMantineWidth, bp as TStyle, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from './styles.registry-nl8uzvMN.mjs';
|
|
3
3
|
export { s as TMantineAccordionVariant, v as TMantineActionIconLoading, d as TMantineAlign, w as TMantineAllowNextClicks, x as TMantineAllowStepClick, y as TMantineAspectRatio, z as TMantineAutoContrast, o as TMantineAvatarVariant, n as TMantineBadgeVariant, A as TMantineBlock, B as TMantineCenterInline, C as TMantineChecked, D as TMantineChipChecked, E as TMantineChipMultiple, p as TMantineChipVariant, F as TMantineClampBehavior, G as TMantineCodeBlock, i as TMantineColor, H as TMantineColorFormat, I as TMantineColorInputSwatches, J as TMantineColorPickerSwatches, K as TMantineColorPickerSwatchesPerRow, L as TMantineCompact, M as TMantineContainerFluid, e as TMantineDirection, N as TMantineDisabled, k as TMantineFieldsetVariant, O as TMantineFileAccept, P as TMantineFileInputMultiple, Q as TMantineFluid, R as TMantineFullWidth, S as TMantineGridGrow, U as TMantineGridOverflow, g as TMantineGridSpan, V as TMantineGroupGrow, W as TMantineGroupWrap, X as TMantineGrow, Y as TMantineHighlight, q as TMantineIndicatorPosition, Z as TMantineInline, _ as TMantineIsLink, c as TMantineJustify, $ as TMantineKbdSize, a0 as TMantineLoading, a1 as TMantineMultiple, a2 as TMantineNotificationWithCloseButton, a3 as TMantineNumberInputDecimalScale, a4 as TMantineOpenInNewTab, h as TMantineOrientation, a5 as TMantineProcessing, T as TMantineRadius, a6 as TMantineRangeSliderMarks, a7 as TMantineRatingCount, a8 as TMantineRatingFractions, a9 as TMantineRatingReadonly, aa as TMantineReadonly, a as TMantineSize, ab as TMantineSpaceHorizontal, b as TMantineSpacing, l as TMantineSpoilerMaxHeight, ac as TMantineSwatches, ad as TMantineTabDisabled, t as TMantineTabsVariant, r as TMantineThemeIconVariant, u as TMantineTimelineLineVariant, j as TMantineTitleOrder, ae as TMantineUseMantineStyle, m as TMantineVariant, af as TMantineWithCloseButton, ag as TMantineWithIcon, f as TMantineWrap } from './common-B96dASgu.mjs';
|
|
4
4
|
export { TAnyStyleName, TPluginStyleImplMap, TStyleImplMap, getRegistryEntry, getRegistryEntryAny, getStylePluginId, isKnownStyleName, isRegisteredStyleName } from './registry/index.mjs';
|
|
5
5
|
export { COLOR_PALETTE, COLOR_SCALES, CONTAINER_SIZE_PX, FONT_SIZE_PX, ISpacingResolved, LINE_HEIGHT, RADIUS_PX, SPACING_PX, SPACING_TO_TAILWIND, TCanonicalColor, TCanonicalRadius, TCanonicalSpacing, colorToHex, radiusToPx, sizeToFontPx, spacingToPx } from './theme/index.mjs';
|
|
6
6
|
export { sharedTailwindExtend, sharedTailwindPreset } from './theme/tailwind.mjs';
|
|
7
7
|
|
|
8
8
|
interface INoAccessStyle extends IStyleWithSpacing {
|
|
9
|
-
style_name: '
|
|
9
|
+
style_name: 'no-access';
|
|
10
10
|
title?: IContentField<string>;
|
|
11
11
|
message?: IContentField<string>;
|
|
12
12
|
button_label?: IContentField<string>;
|
|
@@ -19,7 +19,7 @@ interface INoAccessStyle extends IStyleWithSpacing {
|
|
|
19
19
|
show_icon?: IContentField<string>;
|
|
20
20
|
}
|
|
21
21
|
interface INotFoundStyle extends IStyleWithSpacing {
|
|
22
|
-
style_name: '
|
|
22
|
+
style_name: 'not-found';
|
|
23
23
|
title?: IContentField<string>;
|
|
24
24
|
message?: IContentField<string>;
|
|
25
25
|
button_label?: IContentField<string>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { f as IStyleWithSpacing, h as IContentField, T as TStyleName } from './styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, i as IAccordionItemStyle, j as IAccordionStyle, k as IActionIconStyle, l as IAlertStyle, m as IAspectRatioStyle, n as IAudioStyle, o as IAvatarStyle, p as IBackgroundImageStyle, q as IBadgeStyle, r as IBaseStyle, s as IBlockquoteStyle, t as IBoxStyle, u as IButtonStyle, v as ICardSegmentStyle, w as ICardStyle, x as ICarouselStyle, y as ICenterStyle, z as ICheckboxStyle, A as IChipStyle, C as ICodeStyle, D as IColorInputStyle, E as IColorPickerStyle, F as IComboboxStyle, G as IContainerStyle, H as IDatePickerStyle, J as IDividerStyle, K as IEntryListStyle, L as IEntryRecordDeleteStyle, M as IEntryRecordStyle, N as IFieldsetStyle, O as IFigureStyle, P as IFileInputStyle, Q as IFlexStyle, R as IFormLogStyle, U as IFormRecordStyle, V as IFormStyle, W as IGridColumnStyle, X as IGridStyle, Y as IGroupStyle, Z as IHighlightStyle, $ as IHtmlTagStyle, a0 as IImageStyle, a1 as IIndicatorStyle, a2 as IInputStyle, a3 as IKbdStyle, a4 as ILinkStyle, a5 as IListItemStyle, a6 as IListStyle, a7 as ILoginStyle, a8 as ILoopStyle, a9 as INotificationStyle, aa as INumberInputStyle, ab as IPaperStyle, a as IPluginStyleRegistryEntry, ac as IProfileStyle, ad as IProgressRootStyle, ae as IProgressSectionStyle, af as IProgressStyle, ag as IRadioStyle, ah as IRangeSliderStyle, ai as IRatingStyle, aj as IRegisterStyle, ak as IResetPasswordStyle, al as IRichTextEditorStyle, am as IScrollAreaStyle, an as ISegmentedControlStyle, ao as ISelectStyle, ap as IShowUserInputEntry, aq as IShowUserInputStyle, ar as ISimpleGridStyle, as as ISliderStyle, at as ISpaceStyle, au as ISpoilerStyle, av as IStackStyle, I as IStyleRegistryEntry, aw as ISwitchStyle, ax as ITabStyle, ay as ITabsStyle, az as ITextInputStyle, aA as ITextStyle, aB as ITextareaStyle, aC as IThemeIconStyle, aD as ITimelineStyle, aE as ITitleStyle, aF as ITwoFactorAuthStyle, aG as ITypographyStyle, aH as IUnknownStyle, aI as IValidateStyle, aJ as IVideoStyle, S as STYLE_REGISTRY, aK as TMantineAccordionChevronPosition, aL as TMantineAccordionDisableChevronRotation, aM as TMantineAccordionLoop, aN as TMantineAccordionMultiple, aO as TMantineBorder, aP as TMantineCardShadow, aQ as TMantineCheckboxLabelPosition, aR as TMantineCols, aS as TMantineDividerVariant, aT as TMantineGap, aU as TMantineGridOffset, aV as TMantineGridOrder, aW as TMantineHeight, aX as TMantineIconSize, aY as TMantineImageFit, aZ as TMantineLineClamp, a_ as TMantineListCenter, a$ as TMantineListStyleType, b0 as TMantineListType, b1 as TMantineListWithPadding, b2 as TMantinePaperShadow, b3 as TMantineProgressTransition, b4 as TMantineScrollAreaSize, b5 as TMantineScrollAreaType, b6 as TMantineTextAlign, b7 as TMantineTextDecoration, b8 as TMantineTextFontStyle, b9 as TMantineTextFontWeight, ba as TMantineTextInherit, bb as TMantineTextInputVariant, bc as TMantineTextSpan, bd as TMantineTextTransform, be as TMantineTextTruncate, bf as TMantineTextVariant, bg as TMantineTextareaAutosize, bh as TMantineTextareaResize, bi as TMantineTextareaVariant, bj as TMantineTimelineAlign, bk as TMantineTitleLineClamp, bl as TMantineTitleTextWrap, bm as TMantineTranslatable, bn as TMantineUseInputWrapper, bo as TMantineWidth, bp as TStyle, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from './styles.registry-
|
|
1
|
+
import { f as IStyleWithSpacing, h as IContentField, T as TStyleName } from './styles.registry-ClluRYkN.js';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, i as IAccordionItemStyle, j as IAccordionStyle, k as IActionIconStyle, l as IAlertStyle, m as IAspectRatioStyle, n as IAudioStyle, o as IAvatarStyle, p as IBackgroundImageStyle, q as IBadgeStyle, r as IBaseStyle, s as IBlockquoteStyle, t as IBoxStyle, u as IButtonStyle, v as ICardSegmentStyle, w as ICardStyle, x as ICarouselStyle, y as ICenterStyle, z as ICheckboxStyle, A as IChipStyle, C as ICodeStyle, D as IColorInputStyle, E as IColorPickerStyle, F as IComboboxStyle, G as IContainerStyle, H as IDatePickerStyle, J as IDividerStyle, K as IEntryListStyle, L as IEntryRecordDeleteStyle, M as IEntryRecordStyle, N as IFieldsetStyle, O as IFigureStyle, P as IFileInputStyle, Q as IFlexStyle, R as IFormLogStyle, U as IFormRecordStyle, V as IFormStyle, W as IGridColumnStyle, X as IGridStyle, Y as IGroupStyle, Z as IHighlightStyle, $ as IHtmlTagStyle, a0 as IImageStyle, a1 as IIndicatorStyle, a2 as IInputStyle, a3 as IKbdStyle, a4 as ILinkStyle, a5 as IListItemStyle, a6 as IListStyle, a7 as ILoginStyle, a8 as ILoopStyle, a9 as INotificationStyle, aa as INumberInputStyle, ab as IPaperStyle, a as IPluginStyleRegistryEntry, ac as IProfileStyle, ad as IProgressRootStyle, ae as IProgressSectionStyle, af as IProgressStyle, ag as IRadioStyle, ah as IRangeSliderStyle, ai as IRatingStyle, aj as IRegisterStyle, ak as IResetPasswordStyle, al as IRichTextEditorStyle, am as IScrollAreaStyle, an as ISegmentedControlStyle, ao as ISelectStyle, ap as IShowUserInputEntry, aq as IShowUserInputStyle, ar as ISimpleGridStyle, as as ISliderStyle, at as ISpaceStyle, au as ISpoilerStyle, av as IStackStyle, I as IStyleRegistryEntry, aw as ISwitchStyle, ax as ITabStyle, ay as ITabsStyle, az as ITextInputStyle, aA as ITextStyle, aB as ITextareaStyle, aC as IThemeIconStyle, aD as ITimelineStyle, aE as ITitleStyle, aF as ITwoFactorAuthStyle, aG as ITypographyStyle, aH as IUnknownStyle, aI as IValidateStyle, aJ as IVideoStyle, S as STYLE_REGISTRY, aK as TMantineAccordionChevronPosition, aL as TMantineAccordionDisableChevronRotation, aM as TMantineAccordionLoop, aN as TMantineAccordionMultiple, aO as TMantineBorder, aP as TMantineCardShadow, aQ as TMantineCheckboxLabelPosition, aR as TMantineCols, aS as TMantineDividerVariant, aT as TMantineGap, aU as TMantineGridOffset, aV as TMantineGridOrder, aW as TMantineHeight, aX as TMantineIconSize, aY as TMantineImageFit, aZ as TMantineLineClamp, a_ as TMantineListCenter, a$ as TMantineListStyleType, b0 as TMantineListType, b1 as TMantineListWithPadding, b2 as TMantinePaperShadow, b3 as TMantineProgressTransition, b4 as TMantineScrollAreaSize, b5 as TMantineScrollAreaType, b6 as TMantineTextAlign, b7 as TMantineTextDecoration, b8 as TMantineTextFontStyle, b9 as TMantineTextFontWeight, ba as TMantineTextInherit, bb as TMantineTextInputVariant, bc as TMantineTextSpan, bd as TMantineTextTransform, be as TMantineTextTruncate, bf as TMantineTextVariant, bg as TMantineTextareaAutosize, bh as TMantineTextareaResize, bi as TMantineTextareaVariant, bj as TMantineTimelineAlign, bk as TMantineTitleLineClamp, bl as TMantineTitleTextWrap, bm as TMantineTranslatable, bn as TMantineUseInputWrapper, bo as TMantineWidth, bp as TStyle, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from './styles.registry-ClluRYkN.js';
|
|
3
3
|
export { s as TMantineAccordionVariant, v as TMantineActionIconLoading, d as TMantineAlign, w as TMantineAllowNextClicks, x as TMantineAllowStepClick, y as TMantineAspectRatio, z as TMantineAutoContrast, o as TMantineAvatarVariant, n as TMantineBadgeVariant, A as TMantineBlock, B as TMantineCenterInline, C as TMantineChecked, D as TMantineChipChecked, E as TMantineChipMultiple, p as TMantineChipVariant, F as TMantineClampBehavior, G as TMantineCodeBlock, i as TMantineColor, H as TMantineColorFormat, I as TMantineColorInputSwatches, J as TMantineColorPickerSwatches, K as TMantineColorPickerSwatchesPerRow, L as TMantineCompact, M as TMantineContainerFluid, e as TMantineDirection, N as TMantineDisabled, k as TMantineFieldsetVariant, O as TMantineFileAccept, P as TMantineFileInputMultiple, Q as TMantineFluid, R as TMantineFullWidth, S as TMantineGridGrow, U as TMantineGridOverflow, g as TMantineGridSpan, V as TMantineGroupGrow, W as TMantineGroupWrap, X as TMantineGrow, Y as TMantineHighlight, q as TMantineIndicatorPosition, Z as TMantineInline, _ as TMantineIsLink, c as TMantineJustify, $ as TMantineKbdSize, a0 as TMantineLoading, a1 as TMantineMultiple, a2 as TMantineNotificationWithCloseButton, a3 as TMantineNumberInputDecimalScale, a4 as TMantineOpenInNewTab, h as TMantineOrientation, a5 as TMantineProcessing, T as TMantineRadius, a6 as TMantineRangeSliderMarks, a7 as TMantineRatingCount, a8 as TMantineRatingFractions, a9 as TMantineRatingReadonly, aa as TMantineReadonly, a as TMantineSize, ab as TMantineSpaceHorizontal, b as TMantineSpacing, l as TMantineSpoilerMaxHeight, ac as TMantineSwatches, ad as TMantineTabDisabled, t as TMantineTabsVariant, r as TMantineThemeIconVariant, u as TMantineTimelineLineVariant, j as TMantineTitleOrder, ae as TMantineUseMantineStyle, m as TMantineVariant, af as TMantineWithCloseButton, ag as TMantineWithIcon, f as TMantineWrap } from './common-B96dASgu.js';
|
|
4
4
|
export { TAnyStyleName, TPluginStyleImplMap, TStyleImplMap, getRegistryEntry, getRegistryEntryAny, getStylePluginId, isKnownStyleName, isRegisteredStyleName } from './registry/index.js';
|
|
5
5
|
export { COLOR_PALETTE, COLOR_SCALES, CONTAINER_SIZE_PX, FONT_SIZE_PX, ISpacingResolved, LINE_HEIGHT, RADIUS_PX, SPACING_PX, SPACING_TO_TAILWIND, TCanonicalColor, TCanonicalRadius, TCanonicalSpacing, colorToHex, radiusToPx, sizeToFontPx, spacingToPx } from './theme/index.js';
|
|
6
6
|
export { sharedTailwindExtend, sharedTailwindPreset } from './theme/tailwind.js';
|
|
7
7
|
|
|
8
8
|
interface INoAccessStyle extends IStyleWithSpacing {
|
|
9
|
-
style_name: '
|
|
9
|
+
style_name: 'no-access';
|
|
10
10
|
title?: IContentField<string>;
|
|
11
11
|
message?: IContentField<string>;
|
|
12
12
|
button_label?: IContentField<string>;
|
|
@@ -19,7 +19,7 @@ interface INoAccessStyle extends IStyleWithSpacing {
|
|
|
19
19
|
show_icon?: IContentField<string>;
|
|
20
20
|
}
|
|
21
21
|
interface INotFoundStyle extends IStyleWithSpacing {
|
|
22
|
-
style_name: '
|
|
22
|
+
style_name: 'not-found';
|
|
23
23
|
title?: IContentField<string>;
|
|
24
24
|
message?: IContentField<string>;
|
|
25
25
|
button_label?: IContentField<string>;
|
package/dist/index.js
CHANGED
|
@@ -167,8 +167,8 @@ var BASE_STYLE_REGISTRY = {
|
|
|
167
167
|
login: { description: "User login form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
168
168
|
register: { description: "User registration form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
169
169
|
validate: { description: "Email/account validation flow", category: "auth", frontendOnly: true, canHaveChildren: true },
|
|
170
|
-
|
|
171
|
-
|
|
170
|
+
"reset-password": { description: "Reset password form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
171
|
+
"two-factor-auth": { description: "Two-factor auth code form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
172
172
|
profile: { description: "User profile management", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
173
173
|
// ===== layout =====
|
|
174
174
|
container: { description: "Mantine Container with responsive max-width", category: "layout", frontendOnly: true, canHaveChildren: true },
|
|
@@ -248,9 +248,9 @@ var BASE_STYLE_REGISTRY = {
|
|
|
248
248
|
timeline: { description: "Mantine Timeline", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
249
249
|
list: { description: "Mantine List", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
250
250
|
"list-item": { description: "Mantine List.Item", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
251
|
+
"entry-list": { description: "Data-driven list of entries (form-log table)", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
252
|
+
"entry-record": { description: "Single-record container", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
253
|
+
"entry-record-delete": { description: "Inline delete confirmation for an entry", category: "composite", frontendOnly: true, canHaveChildren: false },
|
|
254
254
|
loop: { description: "Loop / repeater over backend-provided rows", category: "composite", frontendOnly: true, canHaveChildren: true }
|
|
255
255
|
};
|
|
256
256
|
var STYLE_REGISTRY = BASE_STYLE_REGISTRY;
|
package/dist/index.mjs
CHANGED
|
@@ -80,8 +80,8 @@ var BASE_STYLE_REGISTRY = {
|
|
|
80
80
|
login: { description: "User login form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
81
81
|
register: { description: "User registration form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
82
82
|
validate: { description: "Email/account validation flow", category: "auth", frontendOnly: true, canHaveChildren: true },
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
"reset-password": { description: "Reset password form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
84
|
+
"two-factor-auth": { description: "Two-factor auth code form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
85
85
|
profile: { description: "User profile management", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
86
86
|
// ===== layout =====
|
|
87
87
|
container: { description: "Mantine Container with responsive max-width", category: "layout", frontendOnly: true, canHaveChildren: true },
|
|
@@ -161,9 +161,9 @@ var BASE_STYLE_REGISTRY = {
|
|
|
161
161
|
timeline: { description: "Mantine Timeline", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
162
162
|
list: { description: "Mantine List", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
163
163
|
"list-item": { description: "Mantine List.Item", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
"entry-list": { description: "Data-driven list of entries (form-log table)", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
165
|
+
"entry-record": { description: "Single-record container", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
166
|
+
"entry-record-delete": { description: "Inline delete confirmation for an entry", category: "composite", frontendOnly: true, canHaveChildren: false },
|
|
167
167
|
loop: { description: "Loop / repeater over backend-provided rows", category: "composite", frontendOnly: true, canHaveChildren: true }
|
|
168
168
|
};
|
|
169
169
|
var STYLE_REGISTRY = BASE_STYLE_REGISTRY;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { I as IPluginManifest, a as IPluginManifestAdminPage, b as IPluginManifestApiRoute, c as IPluginManifestAsset, d as IPluginManifestCapability, e as IPluginManifestCompatibility, f as IPluginManifestConflict, g as IPluginManifestDataAccess, h as IPluginManifestDependency, i as IPluginManifestExternalHost, j as IPluginManifestFeatureFlag, k as IPluginManifestHealth, l as IPluginManifestLookupExtension, m as IPluginManifestMobile, n as IPluginManifestPermission, o as IPluginManifestRealtimeTopic, p as IPluginManifestScheduledJob, q as IPluginManifestSecurity, r as IPluginManifestStyle, s as IPluginManifestTrustLevel } from '../manifest-C8sBTLJb.mjs';
|
|
2
|
-
import { I as IStyleRegistryEntry } from '../styles.registry-
|
|
2
|
+
import { I as IStyleRegistryEntry } from '../styles.registry-nl8uzvMN.mjs';
|
|
3
3
|
import '../common-B96dASgu.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { I as IPluginManifest, a as IPluginManifestAdminPage, b as IPluginManifestApiRoute, c as IPluginManifestAsset, d as IPluginManifestCapability, e as IPluginManifestCompatibility, f as IPluginManifestConflict, g as IPluginManifestDataAccess, h as IPluginManifestDependency, i as IPluginManifestExternalHost, j as IPluginManifestFeatureFlag, k as IPluginManifestHealth, l as IPluginManifestLookupExtension, m as IPluginManifestMobile, n as IPluginManifestPermission, o as IPluginManifestRealtimeTopic, p as IPluginManifestScheduledJob, q as IPluginManifestSecurity, r as IPluginManifestStyle, s as IPluginManifestTrustLevel } from '../manifest-C8sBTLJb.js';
|
|
2
|
-
import { I as IStyleRegistryEntry } from '../styles.registry-
|
|
2
|
+
import { I as IStyleRegistryEntry } from '../styles.registry-ClluRYkN.js';
|
|
3
3
|
import '../common-B96dASgu.js';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/plugin-sdk/index.js
CHANGED
|
@@ -180,8 +180,8 @@ var BASE_STYLE_REGISTRY = {
|
|
|
180
180
|
login: { description: "User login form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
181
181
|
register: { description: "User registration form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
182
182
|
validate: { description: "Email/account validation flow", category: "auth", frontendOnly: true, canHaveChildren: true },
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
"reset-password": { description: "Reset password form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
184
|
+
"two-factor-auth": { description: "Two-factor auth code form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
185
185
|
profile: { description: "User profile management", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
186
186
|
// ===== layout =====
|
|
187
187
|
container: { description: "Mantine Container with responsive max-width", category: "layout", frontendOnly: true, canHaveChildren: true },
|
|
@@ -261,9 +261,9 @@ var BASE_STYLE_REGISTRY = {
|
|
|
261
261
|
timeline: { description: "Mantine Timeline", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
262
262
|
list: { description: "Mantine List", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
263
263
|
"list-item": { description: "Mantine List.Item", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
264
|
+
"entry-list": { description: "Data-driven list of entries (form-log table)", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
265
|
+
"entry-record": { description: "Single-record container", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
266
|
+
"entry-record-delete": { description: "Inline delete confirmation for an entry", category: "composite", frontendOnly: true, canHaveChildren: false },
|
|
267
267
|
loop: { description: "Loop / repeater over backend-provided rows", category: "composite", frontendOnly: true, canHaveChildren: true }
|
|
268
268
|
};
|
|
269
269
|
var PLUGIN_STYLE_REGISTRY = {};
|
|
@@ -136,8 +136,8 @@ var BASE_STYLE_REGISTRY = {
|
|
|
136
136
|
login: { description: "User login form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
137
137
|
register: { description: "User registration form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
138
138
|
validate: { description: "Email/account validation flow", category: "auth", frontendOnly: true, canHaveChildren: true },
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
"reset-password": { description: "Reset password form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
140
|
+
"two-factor-auth": { description: "Two-factor auth code form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
141
141
|
profile: { description: "User profile management", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
142
142
|
// ===== layout =====
|
|
143
143
|
container: { description: "Mantine Container with responsive max-width", category: "layout", frontendOnly: true, canHaveChildren: true },
|
|
@@ -217,9 +217,9 @@ var BASE_STYLE_REGISTRY = {
|
|
|
217
217
|
timeline: { description: "Mantine Timeline", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
218
218
|
list: { description: "Mantine List", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
219
219
|
"list-item": { description: "Mantine List.Item", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
220
|
+
"entry-list": { description: "Data-driven list of entries (form-log table)", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
221
|
+
"entry-record": { description: "Single-record container", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
222
|
+
"entry-record-delete": { description: "Inline delete confirmation for an entry", category: "composite", frontendOnly: true, canHaveChildren: false },
|
|
223
223
|
loop: { description: "Loop / repeater over backend-provided rows", category: "composite", frontendOnly: true, canHaveChildren: true }
|
|
224
224
|
};
|
|
225
225
|
var PLUGIN_STYLE_REGISTRY = {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry } from '../styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from '../styles.registry-
|
|
1
|
+
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry } from '../styles.registry-nl8uzvMN.mjs';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from '../styles.registry-nl8uzvMN.mjs';
|
|
3
3
|
import '../common-B96dASgu.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/registry/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry } from '../styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from '../styles.registry-
|
|
1
|
+
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry } from '../styles.registry-ClluRYkN.js';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from '../styles.registry-ClluRYkN.js';
|
|
3
3
|
import '../common-B96dASgu.js';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/registry/index.js
CHANGED
|
@@ -40,8 +40,8 @@ var BASE_STYLE_REGISTRY = {
|
|
|
40
40
|
login: { description: "User login form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
41
41
|
register: { description: "User registration form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
42
42
|
validate: { description: "Email/account validation flow", category: "auth", frontendOnly: true, canHaveChildren: true },
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
"reset-password": { description: "Reset password form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
44
|
+
"two-factor-auth": { description: "Two-factor auth code form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
45
45
|
profile: { description: "User profile management", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
46
46
|
// ===== layout =====
|
|
47
47
|
container: { description: "Mantine Container with responsive max-width", category: "layout", frontendOnly: true, canHaveChildren: true },
|
|
@@ -121,9 +121,9 @@ var BASE_STYLE_REGISTRY = {
|
|
|
121
121
|
timeline: { description: "Mantine Timeline", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
122
122
|
list: { description: "Mantine List", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
123
123
|
"list-item": { description: "Mantine List.Item", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
"entry-list": { description: "Data-driven list of entries (form-log table)", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
125
|
+
"entry-record": { description: "Single-record container", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
126
|
+
"entry-record-delete": { description: "Inline delete confirmation for an entry", category: "composite", frontendOnly: true, canHaveChildren: false },
|
|
127
127
|
loop: { description: "Loop / repeater over backend-provided rows", category: "composite", frontendOnly: true, canHaveChildren: true }
|
|
128
128
|
};
|
|
129
129
|
var STYLE_REGISTRY = BASE_STYLE_REGISTRY;
|
package/dist/registry/index.mjs
CHANGED
|
@@ -4,8 +4,8 @@ var BASE_STYLE_REGISTRY = {
|
|
|
4
4
|
login: { description: "User login form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
5
5
|
register: { description: "User registration form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
6
6
|
validate: { description: "Email/account validation flow", category: "auth", frontendOnly: true, canHaveChildren: true },
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
"reset-password": { description: "Reset password form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
8
|
+
"two-factor-auth": { description: "Two-factor auth code form", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
9
9
|
profile: { description: "User profile management", category: "auth", frontendOnly: true, canHaveChildren: false },
|
|
10
10
|
// ===== layout =====
|
|
11
11
|
container: { description: "Mantine Container with responsive max-width", category: "layout", frontendOnly: true, canHaveChildren: true },
|
|
@@ -85,9 +85,9 @@ var BASE_STYLE_REGISTRY = {
|
|
|
85
85
|
timeline: { description: "Mantine Timeline", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
86
86
|
list: { description: "Mantine List", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
87
87
|
"list-item": { description: "Mantine List.Item", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
"entry-list": { description: "Data-driven list of entries (form-log table)", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
89
|
+
"entry-record": { description: "Single-record container", category: "composite", frontendOnly: true, canHaveChildren: true },
|
|
90
|
+
"entry-record-delete": { description: "Inline delete confirmation for an entry", category: "composite", frontendOnly: true, canHaveChildren: false },
|
|
91
91
|
loop: { description: "Loop / repeater over backend-provided rows", category: "composite", frontendOnly: true, canHaveChildren: true }
|
|
92
92
|
};
|
|
93
93
|
var STYLE_REGISTRY = BASE_STYLE_REGISTRY;
|
|
@@ -77,7 +77,7 @@ interface IValidateStyle extends IStyleWithSpacing {
|
|
|
77
77
|
redirect_text?: IContentField<string>;
|
|
78
78
|
}
|
|
79
79
|
interface IResetPasswordStyle extends IStyleWithSpacing {
|
|
80
|
-
style_name: '
|
|
80
|
+
style_name: 'reset-password';
|
|
81
81
|
label_pw_reset?: IContentField<string>;
|
|
82
82
|
type?: IContentField<string>;
|
|
83
83
|
alert_success?: IContentField<string>;
|
|
@@ -98,7 +98,7 @@ interface IResetPasswordStyle extends IStyleWithSpacing {
|
|
|
98
98
|
reset_error_pw_mismatch?: IContentField<string>;
|
|
99
99
|
}
|
|
100
100
|
interface ITwoFactorAuthStyle extends IStyleWithSpacing {
|
|
101
|
-
style_name: '
|
|
101
|
+
style_name: 'two-factor-auth';
|
|
102
102
|
label_code?: IContentField<string>;
|
|
103
103
|
label_submit?: IContentField<string>;
|
|
104
104
|
alert_fail?: IContentField<string>;
|
|
@@ -1034,7 +1034,7 @@ interface IShowUserInputEntry {
|
|
|
1034
1034
|
[key: string]: unknown;
|
|
1035
1035
|
}
|
|
1036
1036
|
interface IShowUserInputStyle extends IBaseStyle {
|
|
1037
|
-
style_name: '
|
|
1037
|
+
style_name: 'show-user-input';
|
|
1038
1038
|
own_entries_only?: IContentField<string>;
|
|
1039
1039
|
show_timestamp?: IContentField<string>;
|
|
1040
1040
|
dt_sortable?: IContentField<string>;
|
|
@@ -1137,14 +1137,14 @@ interface IListItemStyle extends IStyleWithSpacing {
|
|
|
1137
1137
|
use_mantine_style?: IContentField<string>;
|
|
1138
1138
|
}
|
|
1139
1139
|
interface IEntryListStyle extends IBaseStyle {
|
|
1140
|
-
style_name: '
|
|
1140
|
+
style_name: 'entry-list';
|
|
1141
1141
|
line_clamp?: IContentField<TMantineLineClamp>;
|
|
1142
1142
|
}
|
|
1143
1143
|
interface IEntryRecordStyle extends IBaseStyle {
|
|
1144
|
-
style_name: '
|
|
1144
|
+
style_name: 'entry-record';
|
|
1145
1145
|
}
|
|
1146
1146
|
interface IEntryRecordDeleteStyle extends IBaseStyle {
|
|
1147
|
-
style_name: '
|
|
1147
|
+
style_name: 'entry-record-delete';
|
|
1148
1148
|
}
|
|
1149
1149
|
interface ILoopStyle extends IBaseStyle {
|
|
1150
1150
|
style_name: 'loop';
|
|
@@ -1217,7 +1217,7 @@ interface IContentField<T> {
|
|
|
1217
1217
|
* - `condition` is a JSON-Logic expression evaluated client-side for
|
|
1218
1218
|
* visibility (mirrors backend `ConditionService`).
|
|
1219
1219
|
* - `data_config` is an optional JSON config string used by data-bound
|
|
1220
|
-
* styles (
|
|
1220
|
+
* styles (entry-list, form-record, …).
|
|
1221
1221
|
*/
|
|
1222
1222
|
interface IBaseStyle {
|
|
1223
1223
|
id: number;
|
|
@@ -1332,13 +1332,13 @@ declare const BASE_STYLE_REGISTRY: {
|
|
|
1332
1332
|
readonly frontendOnly: true;
|
|
1333
1333
|
readonly canHaveChildren: true;
|
|
1334
1334
|
};
|
|
1335
|
-
readonly
|
|
1335
|
+
readonly 'reset-password': {
|
|
1336
1336
|
readonly description: "Reset password form";
|
|
1337
1337
|
readonly category: "auth";
|
|
1338
1338
|
readonly frontendOnly: true;
|
|
1339
1339
|
readonly canHaveChildren: false;
|
|
1340
1340
|
};
|
|
1341
|
-
readonly
|
|
1341
|
+
readonly 'two-factor-auth': {
|
|
1342
1342
|
readonly description: "Two-factor auth code form";
|
|
1343
1343
|
readonly category: "auth";
|
|
1344
1344
|
readonly frontendOnly: true;
|
|
@@ -1782,19 +1782,19 @@ declare const BASE_STYLE_REGISTRY: {
|
|
|
1782
1782
|
readonly frontendOnly: true;
|
|
1783
1783
|
readonly canHaveChildren: true;
|
|
1784
1784
|
};
|
|
1785
|
-
readonly
|
|
1785
|
+
readonly 'entry-list': {
|
|
1786
1786
|
readonly description: "Data-driven list of entries (form-log table)";
|
|
1787
1787
|
readonly category: "composite";
|
|
1788
1788
|
readonly frontendOnly: true;
|
|
1789
1789
|
readonly canHaveChildren: true;
|
|
1790
1790
|
};
|
|
1791
|
-
readonly
|
|
1791
|
+
readonly 'entry-record': {
|
|
1792
1792
|
readonly description: "Single-record container";
|
|
1793
1793
|
readonly category: "composite";
|
|
1794
1794
|
readonly frontendOnly: true;
|
|
1795
1795
|
readonly canHaveChildren: true;
|
|
1796
1796
|
};
|
|
1797
|
-
readonly
|
|
1797
|
+
readonly 'entry-record-delete': {
|
|
1798
1798
|
readonly description: "Inline delete confirmation for an entry";
|
|
1799
1799
|
readonly category: "composite";
|
|
1800
1800
|
readonly frontendOnly: true;
|
|
@@ -1832,13 +1832,13 @@ declare const STYLE_REGISTRY: {
|
|
|
1832
1832
|
readonly frontendOnly: true;
|
|
1833
1833
|
readonly canHaveChildren: true;
|
|
1834
1834
|
};
|
|
1835
|
-
readonly
|
|
1835
|
+
readonly 'reset-password': {
|
|
1836
1836
|
readonly description: "Reset password form";
|
|
1837
1837
|
readonly category: "auth";
|
|
1838
1838
|
readonly frontendOnly: true;
|
|
1839
1839
|
readonly canHaveChildren: false;
|
|
1840
1840
|
};
|
|
1841
|
-
readonly
|
|
1841
|
+
readonly 'two-factor-auth': {
|
|
1842
1842
|
readonly description: "Two-factor auth code form";
|
|
1843
1843
|
readonly category: "auth";
|
|
1844
1844
|
readonly frontendOnly: true;
|
|
@@ -2282,19 +2282,19 @@ declare const STYLE_REGISTRY: {
|
|
|
2282
2282
|
readonly frontendOnly: true;
|
|
2283
2283
|
readonly canHaveChildren: true;
|
|
2284
2284
|
};
|
|
2285
|
-
readonly
|
|
2285
|
+
readonly 'entry-list': {
|
|
2286
2286
|
readonly description: "Data-driven list of entries (form-log table)";
|
|
2287
2287
|
readonly category: "composite";
|
|
2288
2288
|
readonly frontendOnly: true;
|
|
2289
2289
|
readonly canHaveChildren: true;
|
|
2290
2290
|
};
|
|
2291
|
-
readonly
|
|
2291
|
+
readonly 'entry-record': {
|
|
2292
2292
|
readonly description: "Single-record container";
|
|
2293
2293
|
readonly category: "composite";
|
|
2294
2294
|
readonly frontendOnly: true;
|
|
2295
2295
|
readonly canHaveChildren: true;
|
|
2296
2296
|
};
|
|
2297
|
-
readonly
|
|
2297
|
+
readonly 'entry-record-delete': {
|
|
2298
2298
|
readonly description: "Inline delete confirmation for an entry";
|
|
2299
2299
|
readonly category: "composite";
|
|
2300
2300
|
readonly frontendOnly: true;
|
|
@@ -77,7 +77,7 @@ interface IValidateStyle extends IStyleWithSpacing {
|
|
|
77
77
|
redirect_text?: IContentField<string>;
|
|
78
78
|
}
|
|
79
79
|
interface IResetPasswordStyle extends IStyleWithSpacing {
|
|
80
|
-
style_name: '
|
|
80
|
+
style_name: 'reset-password';
|
|
81
81
|
label_pw_reset?: IContentField<string>;
|
|
82
82
|
type?: IContentField<string>;
|
|
83
83
|
alert_success?: IContentField<string>;
|
|
@@ -98,7 +98,7 @@ interface IResetPasswordStyle extends IStyleWithSpacing {
|
|
|
98
98
|
reset_error_pw_mismatch?: IContentField<string>;
|
|
99
99
|
}
|
|
100
100
|
interface ITwoFactorAuthStyle extends IStyleWithSpacing {
|
|
101
|
-
style_name: '
|
|
101
|
+
style_name: 'two-factor-auth';
|
|
102
102
|
label_code?: IContentField<string>;
|
|
103
103
|
label_submit?: IContentField<string>;
|
|
104
104
|
alert_fail?: IContentField<string>;
|
|
@@ -1034,7 +1034,7 @@ interface IShowUserInputEntry {
|
|
|
1034
1034
|
[key: string]: unknown;
|
|
1035
1035
|
}
|
|
1036
1036
|
interface IShowUserInputStyle extends IBaseStyle {
|
|
1037
|
-
style_name: '
|
|
1037
|
+
style_name: 'show-user-input';
|
|
1038
1038
|
own_entries_only?: IContentField<string>;
|
|
1039
1039
|
show_timestamp?: IContentField<string>;
|
|
1040
1040
|
dt_sortable?: IContentField<string>;
|
|
@@ -1137,14 +1137,14 @@ interface IListItemStyle extends IStyleWithSpacing {
|
|
|
1137
1137
|
use_mantine_style?: IContentField<string>;
|
|
1138
1138
|
}
|
|
1139
1139
|
interface IEntryListStyle extends IBaseStyle {
|
|
1140
|
-
style_name: '
|
|
1140
|
+
style_name: 'entry-list';
|
|
1141
1141
|
line_clamp?: IContentField<TMantineLineClamp>;
|
|
1142
1142
|
}
|
|
1143
1143
|
interface IEntryRecordStyle extends IBaseStyle {
|
|
1144
|
-
style_name: '
|
|
1144
|
+
style_name: 'entry-record';
|
|
1145
1145
|
}
|
|
1146
1146
|
interface IEntryRecordDeleteStyle extends IBaseStyle {
|
|
1147
|
-
style_name: '
|
|
1147
|
+
style_name: 'entry-record-delete';
|
|
1148
1148
|
}
|
|
1149
1149
|
interface ILoopStyle extends IBaseStyle {
|
|
1150
1150
|
style_name: 'loop';
|
|
@@ -1217,7 +1217,7 @@ interface IContentField<T> {
|
|
|
1217
1217
|
* - `condition` is a JSON-Logic expression evaluated client-side for
|
|
1218
1218
|
* visibility (mirrors backend `ConditionService`).
|
|
1219
1219
|
* - `data_config` is an optional JSON config string used by data-bound
|
|
1220
|
-
* styles (
|
|
1220
|
+
* styles (entry-list, form-record, …).
|
|
1221
1221
|
*/
|
|
1222
1222
|
interface IBaseStyle {
|
|
1223
1223
|
id: number;
|
|
@@ -1332,13 +1332,13 @@ declare const BASE_STYLE_REGISTRY: {
|
|
|
1332
1332
|
readonly frontendOnly: true;
|
|
1333
1333
|
readonly canHaveChildren: true;
|
|
1334
1334
|
};
|
|
1335
|
-
readonly
|
|
1335
|
+
readonly 'reset-password': {
|
|
1336
1336
|
readonly description: "Reset password form";
|
|
1337
1337
|
readonly category: "auth";
|
|
1338
1338
|
readonly frontendOnly: true;
|
|
1339
1339
|
readonly canHaveChildren: false;
|
|
1340
1340
|
};
|
|
1341
|
-
readonly
|
|
1341
|
+
readonly 'two-factor-auth': {
|
|
1342
1342
|
readonly description: "Two-factor auth code form";
|
|
1343
1343
|
readonly category: "auth";
|
|
1344
1344
|
readonly frontendOnly: true;
|
|
@@ -1782,19 +1782,19 @@ declare const BASE_STYLE_REGISTRY: {
|
|
|
1782
1782
|
readonly frontendOnly: true;
|
|
1783
1783
|
readonly canHaveChildren: true;
|
|
1784
1784
|
};
|
|
1785
|
-
readonly
|
|
1785
|
+
readonly 'entry-list': {
|
|
1786
1786
|
readonly description: "Data-driven list of entries (form-log table)";
|
|
1787
1787
|
readonly category: "composite";
|
|
1788
1788
|
readonly frontendOnly: true;
|
|
1789
1789
|
readonly canHaveChildren: true;
|
|
1790
1790
|
};
|
|
1791
|
-
readonly
|
|
1791
|
+
readonly 'entry-record': {
|
|
1792
1792
|
readonly description: "Single-record container";
|
|
1793
1793
|
readonly category: "composite";
|
|
1794
1794
|
readonly frontendOnly: true;
|
|
1795
1795
|
readonly canHaveChildren: true;
|
|
1796
1796
|
};
|
|
1797
|
-
readonly
|
|
1797
|
+
readonly 'entry-record-delete': {
|
|
1798
1798
|
readonly description: "Inline delete confirmation for an entry";
|
|
1799
1799
|
readonly category: "composite";
|
|
1800
1800
|
readonly frontendOnly: true;
|
|
@@ -1832,13 +1832,13 @@ declare const STYLE_REGISTRY: {
|
|
|
1832
1832
|
readonly frontendOnly: true;
|
|
1833
1833
|
readonly canHaveChildren: true;
|
|
1834
1834
|
};
|
|
1835
|
-
readonly
|
|
1835
|
+
readonly 'reset-password': {
|
|
1836
1836
|
readonly description: "Reset password form";
|
|
1837
1837
|
readonly category: "auth";
|
|
1838
1838
|
readonly frontendOnly: true;
|
|
1839
1839
|
readonly canHaveChildren: false;
|
|
1840
1840
|
};
|
|
1841
|
-
readonly
|
|
1841
|
+
readonly 'two-factor-auth': {
|
|
1842
1842
|
readonly description: "Two-factor auth code form";
|
|
1843
1843
|
readonly category: "auth";
|
|
1844
1844
|
readonly frontendOnly: true;
|
|
@@ -2282,19 +2282,19 @@ declare const STYLE_REGISTRY: {
|
|
|
2282
2282
|
readonly frontendOnly: true;
|
|
2283
2283
|
readonly canHaveChildren: true;
|
|
2284
2284
|
};
|
|
2285
|
-
readonly
|
|
2285
|
+
readonly 'entry-list': {
|
|
2286
2286
|
readonly description: "Data-driven list of entries (form-log table)";
|
|
2287
2287
|
readonly category: "composite";
|
|
2288
2288
|
readonly frontendOnly: true;
|
|
2289
2289
|
readonly canHaveChildren: true;
|
|
2290
2290
|
};
|
|
2291
|
-
readonly
|
|
2291
|
+
readonly 'entry-record': {
|
|
2292
2292
|
readonly description: "Single-record container";
|
|
2293
2293
|
readonly category: "composite";
|
|
2294
2294
|
readonly frontendOnly: true;
|
|
2295
2295
|
readonly canHaveChildren: true;
|
|
2296
2296
|
};
|
|
2297
|
-
readonly
|
|
2297
|
+
readonly 'entry-record-delete': {
|
|
2298
2298
|
readonly description: "Inline delete confirmation for an entry";
|
|
2299
2299
|
readonly category: "composite";
|
|
2300
2300
|
readonly frontendOnly: true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selfhelp/shared",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.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",
|
|
@@ -81,8 +81,8 @@ export const BASE_STYLE_REGISTRY = {
|
|
|
81
81
|
login: { description: 'User login form', category: 'auth', frontendOnly: true, canHaveChildren: false },
|
|
82
82
|
register: { description: 'User registration form', category: 'auth', frontendOnly: true, canHaveChildren: false },
|
|
83
83
|
validate: { description: 'Email/account validation flow', category: 'auth', frontendOnly: true, canHaveChildren: true },
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
'reset-password': { description: 'Reset password form', category: 'auth', frontendOnly: true, canHaveChildren: false },
|
|
85
|
+
'two-factor-auth': { description: 'Two-factor auth code form', category: 'auth', frontendOnly: true, canHaveChildren: false },
|
|
86
86
|
profile: { description: 'User profile management', category: 'auth', frontendOnly: true, canHaveChildren: false },
|
|
87
87
|
|
|
88
88
|
// ===== layout =====
|
|
@@ -168,9 +168,9 @@ export const BASE_STYLE_REGISTRY = {
|
|
|
168
168
|
timeline: { description: 'Mantine Timeline', category: 'composite', frontendOnly: true, canHaveChildren: true },
|
|
169
169
|
list: { description: 'Mantine List', category: 'composite', frontendOnly: true, canHaveChildren: true },
|
|
170
170
|
'list-item': { description: 'Mantine List.Item', category: 'composite', frontendOnly: true, canHaveChildren: true },
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
171
|
+
'entry-list': { description: 'Data-driven list of entries (form-log table)', category: 'composite', frontendOnly: true, canHaveChildren: true },
|
|
172
|
+
'entry-record': { description: 'Single-record container', category: 'composite', frontendOnly: true, canHaveChildren: true },
|
|
173
|
+
'entry-record-delete': { description: 'Inline delete confirmation for an entry', category: 'composite', frontendOnly: true, canHaveChildren: false },
|
|
174
174
|
loop: { description: 'Loop / repeater over backend-provided rows', category: 'composite', frontendOnly: true, canHaveChildren: true },
|
|
175
175
|
} as const satisfies Record<string, IStyleRegistryEntry>;
|
|
176
176
|
|
package/src/types/styles/auth.ts
CHANGED
|
@@ -85,7 +85,7 @@ export interface IValidateStyle extends IStyleWithSpacing {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
export interface IResetPasswordStyle extends IStyleWithSpacing {
|
|
88
|
-
style_name: '
|
|
88
|
+
style_name: 'reset-password';
|
|
89
89
|
label_pw_reset?: IContentField<string>;
|
|
90
90
|
type?: IContentField<string>;
|
|
91
91
|
alert_success?: IContentField<string>;
|
|
@@ -107,7 +107,7 @@ export interface IResetPasswordStyle extends IStyleWithSpacing {
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
export interface ITwoFactorAuthStyle extends IStyleWithSpacing {
|
|
110
|
-
style_name: '
|
|
110
|
+
style_name: 'two-factor-auth';
|
|
111
111
|
label_code?: IContentField<string>;
|
|
112
112
|
label_submit?: IContentField<string>;
|
|
113
113
|
alert_fail?: IContentField<string>;
|
package/src/types/styles/base.ts
CHANGED
|
@@ -36,7 +36,7 @@ export interface IContentField<T> {
|
|
|
36
36
|
* - `condition` is a JSON-Logic expression evaluated client-side for
|
|
37
37
|
* visibility (mirrors backend `ConditionService`).
|
|
38
38
|
* - `data_config` is an optional JSON config string used by data-bound
|
|
39
|
-
* styles (
|
|
39
|
+
* styles (entry-list, form-record, …).
|
|
40
40
|
*/
|
|
41
41
|
export interface IBaseStyle {
|
|
42
42
|
id: number;
|
|
@@ -113,16 +113,16 @@ export interface IListItemStyle extends IStyleWithSpacing {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
export interface IEntryListStyle extends IBaseStyle {
|
|
116
|
-
style_name: '
|
|
116
|
+
style_name: 'entry-list';
|
|
117
117
|
line_clamp?: IContentField<TMantineLineClamp>;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
export interface IEntryRecordStyle extends IBaseStyle {
|
|
121
|
-
style_name: '
|
|
121
|
+
style_name: 'entry-record';
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
export interface IEntryRecordDeleteStyle extends IBaseStyle {
|
|
125
|
-
style_name: '
|
|
125
|
+
style_name: 'entry-record-delete';
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
export interface ILoopStyle extends IBaseStyle {
|
|
@@ -5,7 +5,7 @@ SPDX-License-Identifier: MPL-2.0
|
|
|
5
5
|
import type { IContentField, IStyleWithSpacing } from './base';
|
|
6
6
|
|
|
7
7
|
export interface INoAccessStyle extends IStyleWithSpacing {
|
|
8
|
-
style_name: '
|
|
8
|
+
style_name: 'no-access';
|
|
9
9
|
title?: IContentField<string>;
|
|
10
10
|
message?: IContentField<string>;
|
|
11
11
|
button_label?: IContentField<string>;
|
|
@@ -19,7 +19,7 @@ export interface INoAccessStyle extends IStyleWithSpacing {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export interface INotFoundStyle extends IStyleWithSpacing {
|
|
22
|
-
style_name: '
|
|
22
|
+
style_name: 'not-found';
|
|
23
23
|
title?: IContentField<string>;
|
|
24
24
|
message?: IContentField<string>;
|
|
25
25
|
button_label?: IContentField<string>;
|
|
@@ -446,7 +446,7 @@ export interface IShowUserInputEntry {
|
|
|
446
446
|
}
|
|
447
447
|
|
|
448
448
|
export interface IShowUserInputStyle extends IBaseStyle {
|
|
449
|
-
style_name: '
|
|
449
|
+
style_name: 'show-user-input';
|
|
450
450
|
own_entries_only?: IContentField<string>;
|
|
451
451
|
show_timestamp?: IContentField<string>;
|
|
452
452
|
dt_sortable?: IContentField<string>;
|