@selfhelp/shared 1.14.14 → 1.14.15
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 +33 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -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-CA6p55GE.d.mts → styles.registry-Bxm4jsbO.d.mts} +33 -5
- package/dist/{styles.registry-DACrC1dz.d.ts → styles.registry-QFmOGJUL.d.ts} +33 -5
- package/package.json +1 -1
- package/src/types/styles/interactive.ts +10 -1
- package/src/types/styles/media.ts +21 -4
- package/src/types/styles/typography.ts +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,39 @@ 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.14.15
|
|
13
|
+
|
|
14
|
+
Style-catalog field additions for the typography / media / interactive pass
|
|
15
|
+
(backend migration `Version20260622110041`). All additions are optional, so the
|
|
16
|
+
contract stays backward compatible.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- **`IBlockquoteStyle`**: the quote body now uses a dedicated
|
|
21
|
+
`blockquote_content` (markdown-inline) field instead of the generic shared
|
|
22
|
+
`content`, so authors can apply inline bold/italic/links inside a quote without
|
|
23
|
+
affecting the `code` style (which keeps the plain `content` field). Renderers
|
|
24
|
+
must read `blockquote_content`.
|
|
25
|
+
- **`IVideoStyle` / `IAudioStyle`** now extend `IStyleWithSpacing` (they expose
|
|
26
|
+
the standard spacing block like the other media styles).
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
|
|
30
|
+
- **`IImageStyle.fallback_src`** — image shown when the main source fails to load
|
|
31
|
+
(maps to Mantine `Image.fallbackSrc`).
|
|
32
|
+
- **`IFigureStyle.img_src` + `IFigureStyle.alt`** — optional built-in image so a
|
|
33
|
+
figure can render without a child image section (renderer only; never
|
|
34
|
+
auto-creates a section).
|
|
35
|
+
- **`ILinkStyle.shared_color`, `web_link_underline` (`'always' | 'hover' |
|
|
36
|
+
'never'`), `web_left_icon`, `web_right_icon`** — link colour, Mantine `Anchor`
|
|
37
|
+
underline behaviour, and optional leading/trailing icons.
|
|
38
|
+
- **`IActionIconStyle.aria_label`** — accessible name for the icon-only control.
|
|
39
|
+
- **`ISpoilerStyle.shared_color`** — colour of the show/hide control.
|
|
40
|
+
- **`IVideoStyle`**: `video_src`, `poster_src`, `has_controls`, `media_loop`,
|
|
41
|
+
`media_autoplay`, `media_muted` playback fields (`'0' | '1'` toggles).
|
|
42
|
+
- **`IAudioStyle`**: `alt`, `has_controls`, `media_loop`, `media_autoplay`.
|
|
43
|
+
- New `TMantineAnchorUnderline` union exported from the interactive style types.
|
|
44
|
+
|
|
12
45
|
## v1.14.14
|
|
13
46
|
|
|
14
47
|
Cross-platform **inline rich-text** keystone. CMS authors can apply lightweight
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TStyleName, j as IContentField } from './styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, k as IAccordionItemStyle, l as IAccordionStyle, m as IActionIconStyle, n as IAlertStyle, o as IAspectRatioStyle, p as IAudioStyle, q as IAvatarStyle, r as IBackgroundImageStyle, s as IBadgeStyle, t as IBaseStyle, u as IBlockquoteStyle, v as IBoxStyle, w as IButtonStyle, x as ICardSegmentStyle, y as ICardStyle, z as ICarouselStyle, A as ICenterStyle, C as ICheckboxStyle, D as IChipStyle, E as ICodeStyle, F as IColorInputStyle, G as IColorPickerStyle, H as IComboboxStyle, J as IContainerStyle, K as IDataContainerStyle, L as IDatePickerStyle, M as IDividerStyle, N as IEntryListStyle, O as IEntryRecordDeleteStyle, P as IEntryRecordStyle, Q as IFieldsetStyle, R as IFigureStyle, U as IFileInputStyle, V as IFlexStyle, W as IFormLogStyle, X as IFormRecordStyle, Y as IFormStyle, Z as IGridColumnStyle, $ as IGridStyle, a0 as IGroupStyle, a1 as IHighlightStyle, a2 as IHtmlTagStyle, a3 as IImageStyle, a4 as IIndicatorStyle, a5 as IInputStyle, a6 as IKbdStyle, a7 as ILinkStyle, a8 as IListItemStyle, a9 as IListStyle, aa as ILoginStyle, ab as ILoopStyle, ac as IMissingStyle, ad as INoAccessStyle, ae as INotFoundStyle, af as INotificationStyle, ag as INumberInputStyle, ah as IPaperStyle, a as IPluginStyleRegistryEntry, ai as IProfileStyle, aj as IProgressRootStyle, ak as IProgressSectionStyle, al as IProgressStyle, am as IRadioStyle, an as IRangeSliderStyle, ao as IRatingStyle, ap as IRefContainerStyle, aq as IRegisterStyle, ar as IResetPasswordStyle, as as IRichTextEditorStyle, at as IScrollAreaStyle, au as ISegmentedControlStyle, av as ISelectStyle, aw as IShowUserInputEntry, ax as IShowUserInputStyle, ay as ISimpleGridStyle, az as ISliderStyle, aA as ISpaceStyle, aB as ISpoilerStyle, aC as IStackStyle, I as IStyleRegistryEntry, aD as IStyleWithSpacing, aE as ISwitchStyle, aF as ITabStyle, aG as ITabsStyle, aH as ITextInputStyle, aI as ITextStyle, aJ as ITextareaStyle, aK as IThemeIconStyle, aL as ITimelineItemStyle, aM as ITimelineStyle, aN as ITitleStyle, aO as ITwoFactorAuthStyle, aP as ITypographyStyle, aQ as IUnknownStyle, aR as IValidateStyle, aS as IVersionStyle, aT as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, aU as TMantineAccordionChevronPosition, aV as TMantineAccordionDisableChevronRotation, aW as TMantineAccordionLoop, aX as TMantineAccordionMultiple, aY as
|
|
1
|
+
import { T as TStyleName, j as IContentField } from './styles.registry-Bxm4jsbO.mjs';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, k as IAccordionItemStyle, l as IAccordionStyle, m as IActionIconStyle, n as IAlertStyle, o as IAspectRatioStyle, p as IAudioStyle, q as IAvatarStyle, r as IBackgroundImageStyle, s as IBadgeStyle, t as IBaseStyle, u as IBlockquoteStyle, v as IBoxStyle, w as IButtonStyle, x as ICardSegmentStyle, y as ICardStyle, z as ICarouselStyle, A as ICenterStyle, C as ICheckboxStyle, D as IChipStyle, E as ICodeStyle, F as IColorInputStyle, G as IColorPickerStyle, H as IComboboxStyle, J as IContainerStyle, K as IDataContainerStyle, L as IDatePickerStyle, M as IDividerStyle, N as IEntryListStyle, O as IEntryRecordDeleteStyle, P as IEntryRecordStyle, Q as IFieldsetStyle, R as IFigureStyle, U as IFileInputStyle, V as IFlexStyle, W as IFormLogStyle, X as IFormRecordStyle, Y as IFormStyle, Z as IGridColumnStyle, $ as IGridStyle, a0 as IGroupStyle, a1 as IHighlightStyle, a2 as IHtmlTagStyle, a3 as IImageStyle, a4 as IIndicatorStyle, a5 as IInputStyle, a6 as IKbdStyle, a7 as ILinkStyle, a8 as IListItemStyle, a9 as IListStyle, aa as ILoginStyle, ab as ILoopStyle, ac as IMissingStyle, ad as INoAccessStyle, ae as INotFoundStyle, af as INotificationStyle, ag as INumberInputStyle, ah as IPaperStyle, a as IPluginStyleRegistryEntry, ai as IProfileStyle, aj as IProgressRootStyle, ak as IProgressSectionStyle, al as IProgressStyle, am as IRadioStyle, an as IRangeSliderStyle, ao as IRatingStyle, ap as IRefContainerStyle, aq as IRegisterStyle, ar as IResetPasswordStyle, as as IRichTextEditorStyle, at as IScrollAreaStyle, au as ISegmentedControlStyle, av as ISelectStyle, aw as IShowUserInputEntry, ax as IShowUserInputStyle, ay as ISimpleGridStyle, az as ISliderStyle, aA as ISpaceStyle, aB as ISpoilerStyle, aC as IStackStyle, I as IStyleRegistryEntry, aD as IStyleWithSpacing, aE as ISwitchStyle, aF as ITabStyle, aG as ITabsStyle, aH as ITextInputStyle, aI as ITextStyle, aJ as ITextareaStyle, aK as IThemeIconStyle, aL as ITimelineItemStyle, aM as ITimelineStyle, aN as ITitleStyle, aO as ITwoFactorAuthStyle, aP as ITypographyStyle, aQ as IUnknownStyle, aR as IValidateStyle, aS as IVersionStyle, aT as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, aU as TMantineAccordionChevronPosition, aV as TMantineAccordionDisableChevronRotation, aW as TMantineAccordionLoop, aX as TMantineAccordionMultiple, aY as TMantineAnchorUnderline, aZ as TMantineBorder, a_ as TMantineCardPadding, a$ as TMantineCardShadow, b0 as TMantineCols, b1 as TMantineDividerVariant, b2 as TMantineGap, b3 as TMantineGridOffset, b4 as TMantineGridOrder, b5 as TMantineHeight, b6 as TMantineIconSize, b7 as TMantineImageFit, b8 as TMantineLineClamp, b9 as TMantineListCenter, ba as TMantineListStyleType, bb as TMantineListType, bc as TMantineListWithPadding, bd as TMantinePaperShadow, be as TMantineProgressTransition, bf as TMantineScrollAreaSize, bg as TMantineScrollAreaType, bh as TMantineTextAlign, bi as TMantineTextDecoration, bj as TMantineTextFontStyle, bk as TMantineTextFontWeight, bl as TMantineTextInherit, bm as TMantineTextInputVariant, bn as TMantineTextSpan, bo as TMantineTextTransform, bp as TMantineTextTruncate, bq as TMantineTextVariant, br as TMantineTextareaAutosize, bs as TMantineTextareaResize, bt as TMantineTextareaVariant, bu as TMantineTimelineAlign, bv as TMantineTitleLineClamp, bw as TMantineTitleTextWrap, bx as TMantineTranslatable, by as TMantineUseInputWrapper, bz as TMantineWidth, bA as TSharedBorder, bB as TSharedCols, bC as TSharedDimension, bD as TSharedDividerLabelPosition, bE as TSharedDividerVariant, bF as TSharedLabelPosition, bG 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-Bxm4jsbO.mjs';
|
|
3
3
|
export { v as TMantineAccordionVariant, z as TMantineActionIconLoading, d as TMantineAlign, A as TMantineAllowNextClicks, B as TMantineAllowStepClick, C as TMantineAspectRatio, D as TMantineAutoContrast, r as TMantineAvatarVariant, q as TMantineBadgeVariant, E as TMantineBlock, F as TMantineCenterInline, G as TMantineChecked, H as TMantineChipChecked, I as TMantineChipMultiple, s as TMantineChipVariant, J as TMantineClampBehavior, K as TMantineCodeBlock, T as TMantineColor, L as TMantineColorFormat, M as TMantineColorInputSwatches, N as TMantineColorPickerSwatches, O as TMantineColorPickerSwatchesPerRow, P as TMantineCompact, Q as TMantineContainerFluid, e as TMantineDirection, R as TMantineDisabled, n as TMantineFieldsetVariant, S as TMantineFileAccept, U as TMantineFileInputMultiple, V as TMantineFluid, W as TMantineFullWidth, i as TMantineGridGrow, g as TMantineGridOverflow, h as TMantineGridSpan, X as TMantineGroupGrow, Y as TMantineGroupWrap, Z as TMantineGrow, _ as TMantineHighlight, t as TMantineIndicatorPosition, $ as TMantineInline, a0 as TMantineIsLink, c as TMantineJustify, a1 as TMantineKbdSize, a2 as TMantineLoading, a3 as TMantineMultiple, a4 as TMantineNotificationWithCloseButton, a5 as TMantineNumberInputDecimalScale, a6 as TMantineOpenInNewTab, j as TMantineOrientation, a7 as TMantineProcessing, a as TMantineRadius, a8 as TMantineRangeSliderMarks, a9 as TMantineRatingCount, aa as TMantineRatingFractions, ab as TMantineRatingReadonly, ac as TMantineReadonly, m as TMantineSize, ad as TMantineSpaceHorizontal, y 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-DMm4kymA.mjs';
|
|
4
4
|
import { ReactNode, ComponentType } from 'react';
|
|
5
5
|
import { THeroUiButtonVariant, THeroUiSize } from './theme/index.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TStyleName, j as IContentField } from './styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, k as IAccordionItemStyle, l as IAccordionStyle, m as IActionIconStyle, n as IAlertStyle, o as IAspectRatioStyle, p as IAudioStyle, q as IAvatarStyle, r as IBackgroundImageStyle, s as IBadgeStyle, t as IBaseStyle, u as IBlockquoteStyle, v as IBoxStyle, w as IButtonStyle, x as ICardSegmentStyle, y as ICardStyle, z as ICarouselStyle, A as ICenterStyle, C as ICheckboxStyle, D as IChipStyle, E as ICodeStyle, F as IColorInputStyle, G as IColorPickerStyle, H as IComboboxStyle, J as IContainerStyle, K as IDataContainerStyle, L as IDatePickerStyle, M as IDividerStyle, N as IEntryListStyle, O as IEntryRecordDeleteStyle, P as IEntryRecordStyle, Q as IFieldsetStyle, R as IFigureStyle, U as IFileInputStyle, V as IFlexStyle, W as IFormLogStyle, X as IFormRecordStyle, Y as IFormStyle, Z as IGridColumnStyle, $ as IGridStyle, a0 as IGroupStyle, a1 as IHighlightStyle, a2 as IHtmlTagStyle, a3 as IImageStyle, a4 as IIndicatorStyle, a5 as IInputStyle, a6 as IKbdStyle, a7 as ILinkStyle, a8 as IListItemStyle, a9 as IListStyle, aa as ILoginStyle, ab as ILoopStyle, ac as IMissingStyle, ad as INoAccessStyle, ae as INotFoundStyle, af as INotificationStyle, ag as INumberInputStyle, ah as IPaperStyle, a as IPluginStyleRegistryEntry, ai as IProfileStyle, aj as IProgressRootStyle, ak as IProgressSectionStyle, al as IProgressStyle, am as IRadioStyle, an as IRangeSliderStyle, ao as IRatingStyle, ap as IRefContainerStyle, aq as IRegisterStyle, ar as IResetPasswordStyle, as as IRichTextEditorStyle, at as IScrollAreaStyle, au as ISegmentedControlStyle, av as ISelectStyle, aw as IShowUserInputEntry, ax as IShowUserInputStyle, ay as ISimpleGridStyle, az as ISliderStyle, aA as ISpaceStyle, aB as ISpoilerStyle, aC as IStackStyle, I as IStyleRegistryEntry, aD as IStyleWithSpacing, aE as ISwitchStyle, aF as ITabStyle, aG as ITabsStyle, aH as ITextInputStyle, aI as ITextStyle, aJ as ITextareaStyle, aK as IThemeIconStyle, aL as ITimelineItemStyle, aM as ITimelineStyle, aN as ITitleStyle, aO as ITwoFactorAuthStyle, aP as ITypographyStyle, aQ as IUnknownStyle, aR as IValidateStyle, aS as IVersionStyle, aT as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, aU as TMantineAccordionChevronPosition, aV as TMantineAccordionDisableChevronRotation, aW as TMantineAccordionLoop, aX as TMantineAccordionMultiple, aY as
|
|
1
|
+
import { T as TStyleName, j as IContentField } from './styles.registry-QFmOGJUL.js';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, k as IAccordionItemStyle, l as IAccordionStyle, m as IActionIconStyle, n as IAlertStyle, o as IAspectRatioStyle, p as IAudioStyle, q as IAvatarStyle, r as IBackgroundImageStyle, s as IBadgeStyle, t as IBaseStyle, u as IBlockquoteStyle, v as IBoxStyle, w as IButtonStyle, x as ICardSegmentStyle, y as ICardStyle, z as ICarouselStyle, A as ICenterStyle, C as ICheckboxStyle, D as IChipStyle, E as ICodeStyle, F as IColorInputStyle, G as IColorPickerStyle, H as IComboboxStyle, J as IContainerStyle, K as IDataContainerStyle, L as IDatePickerStyle, M as IDividerStyle, N as IEntryListStyle, O as IEntryRecordDeleteStyle, P as IEntryRecordStyle, Q as IFieldsetStyle, R as IFigureStyle, U as IFileInputStyle, V as IFlexStyle, W as IFormLogStyle, X as IFormRecordStyle, Y as IFormStyle, Z as IGridColumnStyle, $ as IGridStyle, a0 as IGroupStyle, a1 as IHighlightStyle, a2 as IHtmlTagStyle, a3 as IImageStyle, a4 as IIndicatorStyle, a5 as IInputStyle, a6 as IKbdStyle, a7 as ILinkStyle, a8 as IListItemStyle, a9 as IListStyle, aa as ILoginStyle, ab as ILoopStyle, ac as IMissingStyle, ad as INoAccessStyle, ae as INotFoundStyle, af as INotificationStyle, ag as INumberInputStyle, ah as IPaperStyle, a as IPluginStyleRegistryEntry, ai as IProfileStyle, aj as IProgressRootStyle, ak as IProgressSectionStyle, al as IProgressStyle, am as IRadioStyle, an as IRangeSliderStyle, ao as IRatingStyle, ap as IRefContainerStyle, aq as IRegisterStyle, ar as IResetPasswordStyle, as as IRichTextEditorStyle, at as IScrollAreaStyle, au as ISegmentedControlStyle, av as ISelectStyle, aw as IShowUserInputEntry, ax as IShowUserInputStyle, ay as ISimpleGridStyle, az as ISliderStyle, aA as ISpaceStyle, aB as ISpoilerStyle, aC as IStackStyle, I as IStyleRegistryEntry, aD as IStyleWithSpacing, aE as ISwitchStyle, aF as ITabStyle, aG as ITabsStyle, aH as ITextInputStyle, aI as ITextStyle, aJ as ITextareaStyle, aK as IThemeIconStyle, aL as ITimelineItemStyle, aM as ITimelineStyle, aN as ITitleStyle, aO as ITwoFactorAuthStyle, aP as ITypographyStyle, aQ as IUnknownStyle, aR as IValidateStyle, aS as IVersionStyle, aT as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, aU as TMantineAccordionChevronPosition, aV as TMantineAccordionDisableChevronRotation, aW as TMantineAccordionLoop, aX as TMantineAccordionMultiple, aY as TMantineAnchorUnderline, aZ as TMantineBorder, a_ as TMantineCardPadding, a$ as TMantineCardShadow, b0 as TMantineCols, b1 as TMantineDividerVariant, b2 as TMantineGap, b3 as TMantineGridOffset, b4 as TMantineGridOrder, b5 as TMantineHeight, b6 as TMantineIconSize, b7 as TMantineImageFit, b8 as TMantineLineClamp, b9 as TMantineListCenter, ba as TMantineListStyleType, bb as TMantineListType, bc as TMantineListWithPadding, bd as TMantinePaperShadow, be as TMantineProgressTransition, bf as TMantineScrollAreaSize, bg as TMantineScrollAreaType, bh as TMantineTextAlign, bi as TMantineTextDecoration, bj as TMantineTextFontStyle, bk as TMantineTextFontWeight, bl as TMantineTextInherit, bm as TMantineTextInputVariant, bn as TMantineTextSpan, bo as TMantineTextTransform, bp as TMantineTextTruncate, bq as TMantineTextVariant, br as TMantineTextareaAutosize, bs as TMantineTextareaResize, bt as TMantineTextareaVariant, bu as TMantineTimelineAlign, bv as TMantineTitleLineClamp, bw as TMantineTitleTextWrap, bx as TMantineTranslatable, by as TMantineUseInputWrapper, bz as TMantineWidth, bA as TSharedBorder, bB as TSharedCols, bC as TSharedDimension, bD as TSharedDividerLabelPosition, bE as TSharedDividerVariant, bF as TSharedLabelPosition, bG 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-QFmOGJUL.js';
|
|
3
3
|
export { v as TMantineAccordionVariant, z as TMantineActionIconLoading, d as TMantineAlign, A as TMantineAllowNextClicks, B as TMantineAllowStepClick, C as TMantineAspectRatio, D as TMantineAutoContrast, r as TMantineAvatarVariant, q as TMantineBadgeVariant, E as TMantineBlock, F as TMantineCenterInline, G as TMantineChecked, H as TMantineChipChecked, I as TMantineChipMultiple, s as TMantineChipVariant, J as TMantineClampBehavior, K as TMantineCodeBlock, T as TMantineColor, L as TMantineColorFormat, M as TMantineColorInputSwatches, N as TMantineColorPickerSwatches, O as TMantineColorPickerSwatchesPerRow, P as TMantineCompact, Q as TMantineContainerFluid, e as TMantineDirection, R as TMantineDisabled, n as TMantineFieldsetVariant, S as TMantineFileAccept, U as TMantineFileInputMultiple, V as TMantineFluid, W as TMantineFullWidth, i as TMantineGridGrow, g as TMantineGridOverflow, h as TMantineGridSpan, X as TMantineGroupGrow, Y as TMantineGroupWrap, Z as TMantineGrow, _ as TMantineHighlight, t as TMantineIndicatorPosition, $ as TMantineInline, a0 as TMantineIsLink, c as TMantineJustify, a1 as TMantineKbdSize, a2 as TMantineLoading, a3 as TMantineMultiple, a4 as TMantineNotificationWithCloseButton, a5 as TMantineNumberInputDecimalScale, a6 as TMantineOpenInNewTab, j as TMantineOrientation, a7 as TMantineProcessing, a as TMantineRadius, a8 as TMantineRangeSliderMarks, a9 as TMantineRatingCount, aa as TMantineRatingFractions, ab as TMantineRatingReadonly, ac as TMantineReadonly, m as TMantineSize, ad as TMantineSpaceHorizontal, y 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-DMm4kymA.js';
|
|
4
4
|
import { ReactNode, ComponentType } from 'react';
|
|
5
5
|
import { THeroUiButtonVariant, THeroUiSize } from './theme/index.js';
|
|
@@ -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-Bxm4jsbO.mjs';
|
|
3
3
|
import '../common-DMm4kymA.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-QFmOGJUL.js';
|
|
3
3
|
import '../common-DMm4kymA.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-Bxm4jsbO.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-Bxm4jsbO.mjs';
|
|
3
3
|
import '../common-DMm4kymA.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-QFmOGJUL.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-QFmOGJUL.js';
|
|
3
3
|
import '../common-DMm4kymA.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -393,7 +393,8 @@ interface IHighlightStyle extends IStyleWithSpacing {
|
|
|
393
393
|
}
|
|
394
394
|
interface IBlockquoteStyle extends IStyleWithSpacing {
|
|
395
395
|
style_name: 'blockquote';
|
|
396
|
-
content
|
|
396
|
+
/** Quote body. Dedicated markdown-inline field (not the generic `content`) so authors can bold/italic/link inside the quote without affecting the `code` style. */
|
|
397
|
+
blockquote_content?: IContentField<string>;
|
|
397
398
|
cite?: IContentField<string>;
|
|
398
399
|
web_left_icon?: IContentField<string>;
|
|
399
400
|
web_icon_size?: IContentField<TMantineIconSize>;
|
|
@@ -425,6 +426,8 @@ interface ISpoilerStyle extends IStyleWithSpacing {
|
|
|
425
426
|
web_height?: IContentField<TMantineSpoilerMaxHeight>;
|
|
426
427
|
spoiler_show_label?: IContentField<string>;
|
|
427
428
|
spoiler_hide_label?: IContentField<string>;
|
|
429
|
+
/** Color of the show/hide control link. */
|
|
430
|
+
shared_color?: IContentField<TMantineColor>;
|
|
428
431
|
}
|
|
429
432
|
|
|
430
433
|
type TMantineImageFit = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
@@ -440,21 +443,38 @@ interface IImageStyle extends IStyleWithSpacing {
|
|
|
440
443
|
web_width?: IContentField<TMantineWidth>;
|
|
441
444
|
web_height?: IContentField<TMantineHeight>;
|
|
442
445
|
shared_radius?: IContentField<TMantineRadius>;
|
|
446
|
+
/** Image shown when the main source fails to load (Mantine Image fallbackSrc). */
|
|
447
|
+
fallback_src?: IContentField<string>;
|
|
443
448
|
}
|
|
444
|
-
interface IVideoStyle extends
|
|
449
|
+
interface IVideoStyle extends IStyleWithSpacing {
|
|
445
450
|
style_name: 'video';
|
|
446
451
|
is_fluid?: IContentField<string>;
|
|
447
452
|
alt?: IContentField<string>;
|
|
448
|
-
|
|
453
|
+
video_src?: IContentField<string>;
|
|
454
|
+
/** Poster image shown before playback. */
|
|
455
|
+
poster_src?: IContentField<string>;
|
|
456
|
+
/** Cross-platform playback toggles ('0' | '1'). */
|
|
457
|
+
has_controls?: IContentField<string>;
|
|
458
|
+
media_loop?: IContentField<string>;
|
|
459
|
+
media_autoplay?: IContentField<string>;
|
|
460
|
+
media_muted?: IContentField<string>;
|
|
449
461
|
}
|
|
450
|
-
interface IAudioStyle extends
|
|
462
|
+
interface IAudioStyle extends IStyleWithSpacing {
|
|
451
463
|
style_name: 'audio';
|
|
464
|
+
alt?: IContentField<string>;
|
|
452
465
|
sources?: IContentField<unknown[]>;
|
|
466
|
+
/** Cross-platform playback toggles ('0' | '1'). */
|
|
467
|
+
has_controls?: IContentField<string>;
|
|
468
|
+
media_loop?: IContentField<string>;
|
|
469
|
+
media_autoplay?: IContentField<string>;
|
|
453
470
|
}
|
|
454
471
|
interface IFigureStyle extends IBaseStyle {
|
|
455
472
|
style_name: 'figure';
|
|
456
473
|
caption_title?: IContentField<string>;
|
|
457
474
|
caption?: IContentField<string>;
|
|
475
|
+
/** Optional built-in image so a figure needs no child image section. */
|
|
476
|
+
img_src?: IContentField<string>;
|
|
477
|
+
alt?: IContentField<string>;
|
|
458
478
|
}
|
|
459
479
|
interface ICarouselStyle extends IStyleWithSpacing {
|
|
460
480
|
style_name: 'carousel';
|
|
@@ -481,6 +501,8 @@ interface ICarouselStyle extends IStyleWithSpacing {
|
|
|
481
501
|
web_carousel_embla_options?: IContentField<string>;
|
|
482
502
|
}
|
|
483
503
|
|
|
504
|
+
/** Mantine `Anchor` `underline` behaviour. */
|
|
505
|
+
type TMantineAnchorUnderline = 'always' | 'hover' | 'never';
|
|
484
506
|
interface IButtonStyle extends IStyleWithSpacing {
|
|
485
507
|
style_name: 'button';
|
|
486
508
|
shared_variant?: IContentField<TMantineVariant>;
|
|
@@ -508,6 +530,10 @@ interface ILinkStyle extends IStyleWithSpacing {
|
|
|
508
530
|
label?: IContentField<string>;
|
|
509
531
|
url?: IContentField<string>;
|
|
510
532
|
open_in_new_tab?: IContentField<string>;
|
|
533
|
+
shared_color?: IContentField<TMantineColor>;
|
|
534
|
+
web_link_underline?: IContentField<TMantineAnchorUnderline>;
|
|
535
|
+
web_left_icon?: IContentField<string>;
|
|
536
|
+
web_right_icon?: IContentField<string>;
|
|
511
537
|
}
|
|
512
538
|
interface IActionIconStyle extends IStyleWithSpacing {
|
|
513
539
|
style_name: 'action-icon';
|
|
@@ -521,6 +547,8 @@ interface IActionIconStyle extends IStyleWithSpacing {
|
|
|
521
547
|
page_keyword?: IContentField<string>;
|
|
522
548
|
open_in_new_tab?: IContentField<string>;
|
|
523
549
|
disabled?: IContentField<string>;
|
|
550
|
+
/** Accessible name for the icon-only control (screen readers). */
|
|
551
|
+
aria_label?: IContentField<string>;
|
|
524
552
|
}
|
|
525
553
|
interface IAlertStyle extends IStyleWithSpacing {
|
|
526
554
|
style_name: 'alert';
|
|
@@ -2517,4 +2545,4 @@ declare function getPluginStyleRegistry(): Record<string, IPluginStyleRegistryEn
|
|
|
2517
2545
|
*/
|
|
2518
2546
|
declare function _resetPluginStyleRegistry(): void;
|
|
2519
2547
|
|
|
2520
|
-
export { type IGridStyle as $, type ICenterStyle as A, BASE_STYLE_REGISTRY as B, type ICheckboxStyle as C, type IChipStyle as D, type ICodeStyle as E, type IColorInputStyle as F, type IColorPickerStyle as G, type IComboboxStyle as H, type IStyleRegistryEntry as I, type IContainerStyle as J, type IDataContainerStyle as K, type IDatePickerStyle as L, type IDividerStyle as M, type IEntryListStyle as N, type IEntryRecordDeleteStyle as O, type IEntryRecordStyle as P, type IFieldsetStyle as Q, type IFigureStyle as R, STYLE_REGISTRY as S, type TStyleName as T, type IFileInputStyle as U, type IFlexStyle as V, type IFormLogStyle as W, type IFormRecordStyle as X, type IFormStyle as Y, type IGridColumnStyle as Z, type _AssertRegistryMatchesStyleName as _, type IPluginStyleRegistryEntry as a, type
|
|
2548
|
+
export { type IGridStyle as $, type ICenterStyle as A, BASE_STYLE_REGISTRY as B, type ICheckboxStyle as C, type IChipStyle as D, type ICodeStyle as E, type IColorInputStyle as F, type IColorPickerStyle as G, type IComboboxStyle as H, type IStyleRegistryEntry as I, type IContainerStyle as J, type IDataContainerStyle as K, type IDatePickerStyle as L, type IDividerStyle as M, type IEntryListStyle as N, type IEntryRecordDeleteStyle as O, type IEntryRecordStyle as P, type IFieldsetStyle as Q, type IFigureStyle as R, STYLE_REGISTRY as S, type TStyleName as T, type IFileInputStyle as U, type IFlexStyle as V, type IFormLogStyle as W, type IFormRecordStyle as X, type IFormStyle as Y, type IGridColumnStyle as Z, type _AssertRegistryMatchesStyleName as _, type IPluginStyleRegistryEntry as a, type TMantineCardShadow as a$, type IGroupStyle as a0, type IHighlightStyle as a1, type IHtmlTagStyle as a2, type IImageStyle as a3, type IIndicatorStyle as a4, type IInputStyle as a5, type IKbdStyle as a6, type ILinkStyle as a7, type IListItemStyle as a8, type IListStyle as a9, type ISpaceStyle as aA, type ISpoilerStyle as aB, type IStackStyle as aC, type IStyleWithSpacing as aD, type ISwitchStyle as aE, type ITabStyle as aF, type ITabsStyle as aG, type ITextInputStyle as aH, type ITextStyle as aI, type ITextareaStyle as aJ, type IThemeIconStyle as aK, type ITimelineItemStyle as aL, type ITimelineStyle as aM, type ITitleStyle as aN, type ITwoFactorAuthStyle as aO, type ITypographyStyle as aP, type IUnknownStyle as aQ, type IValidateStyle as aR, type IVersionStyle as aS, type IVideoStyle as aT, type TMantineAccordionChevronPosition as aU, type TMantineAccordionDisableChevronRotation as aV, type TMantineAccordionLoop as aW, type TMantineAccordionMultiple as aX, type TMantineAnchorUnderline as aY, type TMantineBorder as aZ, type TMantineCardPadding as a_, type ILoginStyle as aa, type ILoopStyle as ab, type IMissingStyle as ac, type INoAccessStyle as ad, type INotFoundStyle as ae, type INotificationStyle as af, type INumberInputStyle as ag, type IPaperStyle as ah, type IProfileStyle as ai, type IProgressRootStyle as aj, type IProgressSectionStyle as ak, type IProgressStyle as al, type IRadioStyle as am, type IRangeSliderStyle as an, type IRatingStyle as ao, type IRefContainerStyle as ap, type IRegisterStyle as aq, type IResetPasswordStyle as ar, type IRichTextEditorStyle as as, type IScrollAreaStyle as at, type ISegmentedControlStyle as au, type ISelectStyle as av, type IShowUserInputEntry as aw, type IShowUserInputStyle as ax, type ISimpleGridStyle as ay, type ISliderStyle as az, type TStylePlacement as b, type TMantineCols as b0, type TMantineDividerVariant as b1, type TMantineGap as b2, type TMantineGridOffset as b3, type TMantineGridOrder as b4, type TMantineHeight as b5, type TMantineIconSize as b6, type TMantineImageFit as b7, type TMantineLineClamp as b8, type TMantineListCenter as b9, type TSharedBorder as bA, type TSharedCols as bB, type TSharedDimension as bC, type TSharedDividerLabelPosition as bD, type TSharedDividerVariant as bE, type TSharedLabelPosition as bF, type TStyle as bG, type TMantineListStyleType as ba, type TMantineListType as bb, type TMantineListWithPadding as bc, type TMantinePaperShadow as bd, type TMantineProgressTransition as be, type TMantineScrollAreaSize as bf, type TMantineScrollAreaType as bg, type TMantineTextAlign as bh, type TMantineTextDecoration as bi, type TMantineTextFontStyle as bj, type TMantineTextFontWeight as bk, type TMantineTextInherit as bl, type TMantineTextInputVariant as bm, type TMantineTextSpan as bn, type TMantineTextTransform as bo, type TMantineTextTruncate as bp, type TMantineTextVariant as bq, type TMantineTextareaAutosize as br, type TMantineTextareaResize as bs, type TMantineTextareaVariant as bt, type TMantineTimelineAlign as bu, type TMantineTitleLineClamp as bv, type TMantineTitleTextWrap as bw, type TMantineTranslatable as bx, type TMantineUseInputWrapper as by, type TMantineWidth as bz, type TConcretePlatform as c, type TStylePlatform as d, type TStyleRegistryKey as e, _resetPluginStyleRegistry as f, extendStyleRegistry as g, getMergedStyleRegistry as h, getPluginStyleRegistry as i, type IContentField as j, type IAccordionItemStyle as k, type IAccordionStyle as l, type IActionIconStyle as m, type IAlertStyle as n, type IAspectRatioStyle as o, type IAudioStyle as p, type IAvatarStyle as q, type IBackgroundImageStyle as r, type IBadgeStyle as s, type IBaseStyle as t, type IBlockquoteStyle as u, type IBoxStyle as v, type IButtonStyle as w, type ICardSegmentStyle as x, type ICardStyle as y, type ICarouselStyle as z };
|
|
@@ -393,7 +393,8 @@ interface IHighlightStyle extends IStyleWithSpacing {
|
|
|
393
393
|
}
|
|
394
394
|
interface IBlockquoteStyle extends IStyleWithSpacing {
|
|
395
395
|
style_name: 'blockquote';
|
|
396
|
-
content
|
|
396
|
+
/** Quote body. Dedicated markdown-inline field (not the generic `content`) so authors can bold/italic/link inside the quote without affecting the `code` style. */
|
|
397
|
+
blockquote_content?: IContentField<string>;
|
|
397
398
|
cite?: IContentField<string>;
|
|
398
399
|
web_left_icon?: IContentField<string>;
|
|
399
400
|
web_icon_size?: IContentField<TMantineIconSize>;
|
|
@@ -425,6 +426,8 @@ interface ISpoilerStyle extends IStyleWithSpacing {
|
|
|
425
426
|
web_height?: IContentField<TMantineSpoilerMaxHeight>;
|
|
426
427
|
spoiler_show_label?: IContentField<string>;
|
|
427
428
|
spoiler_hide_label?: IContentField<string>;
|
|
429
|
+
/** Color of the show/hide control link. */
|
|
430
|
+
shared_color?: IContentField<TMantineColor>;
|
|
428
431
|
}
|
|
429
432
|
|
|
430
433
|
type TMantineImageFit = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
@@ -440,21 +443,38 @@ interface IImageStyle extends IStyleWithSpacing {
|
|
|
440
443
|
web_width?: IContentField<TMantineWidth>;
|
|
441
444
|
web_height?: IContentField<TMantineHeight>;
|
|
442
445
|
shared_radius?: IContentField<TMantineRadius>;
|
|
446
|
+
/** Image shown when the main source fails to load (Mantine Image fallbackSrc). */
|
|
447
|
+
fallback_src?: IContentField<string>;
|
|
443
448
|
}
|
|
444
|
-
interface IVideoStyle extends
|
|
449
|
+
interface IVideoStyle extends IStyleWithSpacing {
|
|
445
450
|
style_name: 'video';
|
|
446
451
|
is_fluid?: IContentField<string>;
|
|
447
452
|
alt?: IContentField<string>;
|
|
448
|
-
|
|
453
|
+
video_src?: IContentField<string>;
|
|
454
|
+
/** Poster image shown before playback. */
|
|
455
|
+
poster_src?: IContentField<string>;
|
|
456
|
+
/** Cross-platform playback toggles ('0' | '1'). */
|
|
457
|
+
has_controls?: IContentField<string>;
|
|
458
|
+
media_loop?: IContentField<string>;
|
|
459
|
+
media_autoplay?: IContentField<string>;
|
|
460
|
+
media_muted?: IContentField<string>;
|
|
449
461
|
}
|
|
450
|
-
interface IAudioStyle extends
|
|
462
|
+
interface IAudioStyle extends IStyleWithSpacing {
|
|
451
463
|
style_name: 'audio';
|
|
464
|
+
alt?: IContentField<string>;
|
|
452
465
|
sources?: IContentField<unknown[]>;
|
|
466
|
+
/** Cross-platform playback toggles ('0' | '1'). */
|
|
467
|
+
has_controls?: IContentField<string>;
|
|
468
|
+
media_loop?: IContentField<string>;
|
|
469
|
+
media_autoplay?: IContentField<string>;
|
|
453
470
|
}
|
|
454
471
|
interface IFigureStyle extends IBaseStyle {
|
|
455
472
|
style_name: 'figure';
|
|
456
473
|
caption_title?: IContentField<string>;
|
|
457
474
|
caption?: IContentField<string>;
|
|
475
|
+
/** Optional built-in image so a figure needs no child image section. */
|
|
476
|
+
img_src?: IContentField<string>;
|
|
477
|
+
alt?: IContentField<string>;
|
|
458
478
|
}
|
|
459
479
|
interface ICarouselStyle extends IStyleWithSpacing {
|
|
460
480
|
style_name: 'carousel';
|
|
@@ -481,6 +501,8 @@ interface ICarouselStyle extends IStyleWithSpacing {
|
|
|
481
501
|
web_carousel_embla_options?: IContentField<string>;
|
|
482
502
|
}
|
|
483
503
|
|
|
504
|
+
/** Mantine `Anchor` `underline` behaviour. */
|
|
505
|
+
type TMantineAnchorUnderline = 'always' | 'hover' | 'never';
|
|
484
506
|
interface IButtonStyle extends IStyleWithSpacing {
|
|
485
507
|
style_name: 'button';
|
|
486
508
|
shared_variant?: IContentField<TMantineVariant>;
|
|
@@ -508,6 +530,10 @@ interface ILinkStyle extends IStyleWithSpacing {
|
|
|
508
530
|
label?: IContentField<string>;
|
|
509
531
|
url?: IContentField<string>;
|
|
510
532
|
open_in_new_tab?: IContentField<string>;
|
|
533
|
+
shared_color?: IContentField<TMantineColor>;
|
|
534
|
+
web_link_underline?: IContentField<TMantineAnchorUnderline>;
|
|
535
|
+
web_left_icon?: IContentField<string>;
|
|
536
|
+
web_right_icon?: IContentField<string>;
|
|
511
537
|
}
|
|
512
538
|
interface IActionIconStyle extends IStyleWithSpacing {
|
|
513
539
|
style_name: 'action-icon';
|
|
@@ -521,6 +547,8 @@ interface IActionIconStyle extends IStyleWithSpacing {
|
|
|
521
547
|
page_keyword?: IContentField<string>;
|
|
522
548
|
open_in_new_tab?: IContentField<string>;
|
|
523
549
|
disabled?: IContentField<string>;
|
|
550
|
+
/** Accessible name for the icon-only control (screen readers). */
|
|
551
|
+
aria_label?: IContentField<string>;
|
|
524
552
|
}
|
|
525
553
|
interface IAlertStyle extends IStyleWithSpacing {
|
|
526
554
|
style_name: 'alert';
|
|
@@ -2517,4 +2545,4 @@ declare function getPluginStyleRegistry(): Record<string, IPluginStyleRegistryEn
|
|
|
2517
2545
|
*/
|
|
2518
2546
|
declare function _resetPluginStyleRegistry(): void;
|
|
2519
2547
|
|
|
2520
|
-
export { type IGridStyle as $, type ICenterStyle as A, BASE_STYLE_REGISTRY as B, type ICheckboxStyle as C, type IChipStyle as D, type ICodeStyle as E, type IColorInputStyle as F, type IColorPickerStyle as G, type IComboboxStyle as H, type IStyleRegistryEntry as I, type IContainerStyle as J, type IDataContainerStyle as K, type IDatePickerStyle as L, type IDividerStyle as M, type IEntryListStyle as N, type IEntryRecordDeleteStyle as O, type IEntryRecordStyle as P, type IFieldsetStyle as Q, type IFigureStyle as R, STYLE_REGISTRY as S, type TStyleName as T, type IFileInputStyle as U, type IFlexStyle as V, type IFormLogStyle as W, type IFormRecordStyle as X, type IFormStyle as Y, type IGridColumnStyle as Z, type _AssertRegistryMatchesStyleName as _, type IPluginStyleRegistryEntry as a, type
|
|
2548
|
+
export { type IGridStyle as $, type ICenterStyle as A, BASE_STYLE_REGISTRY as B, type ICheckboxStyle as C, type IChipStyle as D, type ICodeStyle as E, type IColorInputStyle as F, type IColorPickerStyle as G, type IComboboxStyle as H, type IStyleRegistryEntry as I, type IContainerStyle as J, type IDataContainerStyle as K, type IDatePickerStyle as L, type IDividerStyle as M, type IEntryListStyle as N, type IEntryRecordDeleteStyle as O, type IEntryRecordStyle as P, type IFieldsetStyle as Q, type IFigureStyle as R, STYLE_REGISTRY as S, type TStyleName as T, type IFileInputStyle as U, type IFlexStyle as V, type IFormLogStyle as W, type IFormRecordStyle as X, type IFormStyle as Y, type IGridColumnStyle as Z, type _AssertRegistryMatchesStyleName as _, type IPluginStyleRegistryEntry as a, type TMantineCardShadow as a$, type IGroupStyle as a0, type IHighlightStyle as a1, type IHtmlTagStyle as a2, type IImageStyle as a3, type IIndicatorStyle as a4, type IInputStyle as a5, type IKbdStyle as a6, type ILinkStyle as a7, type IListItemStyle as a8, type IListStyle as a9, type ISpaceStyle as aA, type ISpoilerStyle as aB, type IStackStyle as aC, type IStyleWithSpacing as aD, type ISwitchStyle as aE, type ITabStyle as aF, type ITabsStyle as aG, type ITextInputStyle as aH, type ITextStyle as aI, type ITextareaStyle as aJ, type IThemeIconStyle as aK, type ITimelineItemStyle as aL, type ITimelineStyle as aM, type ITitleStyle as aN, type ITwoFactorAuthStyle as aO, type ITypographyStyle as aP, type IUnknownStyle as aQ, type IValidateStyle as aR, type IVersionStyle as aS, type IVideoStyle as aT, type TMantineAccordionChevronPosition as aU, type TMantineAccordionDisableChevronRotation as aV, type TMantineAccordionLoop as aW, type TMantineAccordionMultiple as aX, type TMantineAnchorUnderline as aY, type TMantineBorder as aZ, type TMantineCardPadding as a_, type ILoginStyle as aa, type ILoopStyle as ab, type IMissingStyle as ac, type INoAccessStyle as ad, type INotFoundStyle as ae, type INotificationStyle as af, type INumberInputStyle as ag, type IPaperStyle as ah, type IProfileStyle as ai, type IProgressRootStyle as aj, type IProgressSectionStyle as ak, type IProgressStyle as al, type IRadioStyle as am, type IRangeSliderStyle as an, type IRatingStyle as ao, type IRefContainerStyle as ap, type IRegisterStyle as aq, type IResetPasswordStyle as ar, type IRichTextEditorStyle as as, type IScrollAreaStyle as at, type ISegmentedControlStyle as au, type ISelectStyle as av, type IShowUserInputEntry as aw, type IShowUserInputStyle as ax, type ISimpleGridStyle as ay, type ISliderStyle as az, type TStylePlacement as b, type TMantineCols as b0, type TMantineDividerVariant as b1, type TMantineGap as b2, type TMantineGridOffset as b3, type TMantineGridOrder as b4, type TMantineHeight as b5, type TMantineIconSize as b6, type TMantineImageFit as b7, type TMantineLineClamp as b8, type TMantineListCenter as b9, type TSharedBorder as bA, type TSharedCols as bB, type TSharedDimension as bC, type TSharedDividerLabelPosition as bD, type TSharedDividerVariant as bE, type TSharedLabelPosition as bF, type TStyle as bG, type TMantineListStyleType as ba, type TMantineListType as bb, type TMantineListWithPadding as bc, type TMantinePaperShadow as bd, type TMantineProgressTransition as be, type TMantineScrollAreaSize as bf, type TMantineScrollAreaType as bg, type TMantineTextAlign as bh, type TMantineTextDecoration as bi, type TMantineTextFontStyle as bj, type TMantineTextFontWeight as bk, type TMantineTextInherit as bl, type TMantineTextInputVariant as bm, type TMantineTextSpan as bn, type TMantineTextTransform as bo, type TMantineTextTruncate as bp, type TMantineTextVariant as bq, type TMantineTextareaAutosize as br, type TMantineTextareaResize as bs, type TMantineTextareaVariant as bt, type TMantineTimelineAlign as bu, type TMantineTitleLineClamp as bv, type TMantineTitleTextWrap as bw, type TMantineTranslatable as bx, type TMantineUseInputWrapper as by, type TMantineWidth as bz, type TConcretePlatform as c, type TStylePlatform as d, type TStyleRegistryKey as e, _resetPluginStyleRegistry as f, extendStyleRegistry as g, getMergedStyleRegistry as h, getPluginStyleRegistry as i, type IContentField as j, type IAccordionItemStyle as k, type IAccordionStyle as l, type IActionIconStyle as m, type IAlertStyle as n, type IAspectRatioStyle as o, type IAudioStyle as p, type IAvatarStyle as q, type IBackgroundImageStyle as r, type IBadgeStyle as s, type IBaseStyle as t, type IBlockquoteStyle as u, type IBoxStyle as v, type IButtonStyle as w, type ICardSegmentStyle as x, type ICardStyle as y, type ICarouselStyle as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selfhelp/shared",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.15",
|
|
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",
|
|
@@ -16,6 +16,9 @@ import type {
|
|
|
16
16
|
} from '../mantine/common';
|
|
17
17
|
import type { TMantineIconSize } from './typography';
|
|
18
18
|
|
|
19
|
+
/** Mantine `Anchor` `underline` behaviour. */
|
|
20
|
+
export type TMantineAnchorUnderline = 'always' | 'hover' | 'never';
|
|
21
|
+
|
|
19
22
|
export interface IButtonStyle extends IStyleWithSpacing {
|
|
20
23
|
style_name: 'button';
|
|
21
24
|
shared_variant?: IContentField<TMantineVariant>;
|
|
@@ -43,6 +46,10 @@ export interface ILinkStyle extends IStyleWithSpacing {
|
|
|
43
46
|
label?: IContentField<string>;
|
|
44
47
|
url?: IContentField<string>;
|
|
45
48
|
open_in_new_tab?: IContentField<string>;
|
|
49
|
+
shared_color?: IContentField<TMantineColor>;
|
|
50
|
+
web_link_underline?: IContentField<TMantineAnchorUnderline>;
|
|
51
|
+
web_left_icon?: IContentField<string>;
|
|
52
|
+
web_right_icon?: IContentField<string>;
|
|
46
53
|
}
|
|
47
54
|
|
|
48
55
|
export interface IActionIconStyle extends IStyleWithSpacing {
|
|
@@ -56,7 +63,9 @@ export interface IActionIconStyle extends IStyleWithSpacing {
|
|
|
56
63
|
is_link?: IContentField<string>;
|
|
57
64
|
page_keyword?: IContentField<string>;
|
|
58
65
|
open_in_new_tab?: IContentField<string>;
|
|
59
|
-
disabled?: IContentField<string>;
|
|
66
|
+
disabled?: IContentField<string>;
|
|
67
|
+
/** Accessible name for the icon-only control (screen readers). */
|
|
68
|
+
aria_label?: IContentField<string>;}
|
|
60
69
|
|
|
61
70
|
export interface IAlertStyle extends IStyleWithSpacing {
|
|
62
71
|
style_name: 'alert';
|
|
@@ -19,24 +19,41 @@ export interface IImageStyle extends IStyleWithSpacing {
|
|
|
19
19
|
web_image_fit?: IContentField<TMantineImageFit>;
|
|
20
20
|
web_width?: IContentField<TMantineWidth>;
|
|
21
21
|
web_height?: IContentField<TMantineHeight>;
|
|
22
|
-
shared_radius?: IContentField<TMantineRadius>;
|
|
22
|
+
shared_radius?: IContentField<TMantineRadius>;
|
|
23
|
+
/** Image shown when the main source fails to load (Mantine Image fallbackSrc). */
|
|
24
|
+
fallback_src?: IContentField<string>;}
|
|
23
25
|
|
|
24
|
-
export interface IVideoStyle extends
|
|
26
|
+
export interface IVideoStyle extends IStyleWithSpacing {
|
|
25
27
|
style_name: 'video';
|
|
26
28
|
is_fluid?: IContentField<string>;
|
|
27
29
|
alt?: IContentField<string>;
|
|
28
|
-
|
|
30
|
+
video_src?: IContentField<string>;
|
|
31
|
+
/** Poster image shown before playback. */
|
|
32
|
+
poster_src?: IContentField<string>;
|
|
33
|
+
/** Cross-platform playback toggles ('0' | '1'). */
|
|
34
|
+
has_controls?: IContentField<string>;
|
|
35
|
+
media_loop?: IContentField<string>;
|
|
36
|
+
media_autoplay?: IContentField<string>;
|
|
37
|
+
media_muted?: IContentField<string>;
|
|
29
38
|
}
|
|
30
39
|
|
|
31
|
-
export interface IAudioStyle extends
|
|
40
|
+
export interface IAudioStyle extends IStyleWithSpacing {
|
|
32
41
|
style_name: 'audio';
|
|
42
|
+
alt?: IContentField<string>;
|
|
33
43
|
sources?: IContentField<unknown[]>;
|
|
44
|
+
/** Cross-platform playback toggles ('0' | '1'). */
|
|
45
|
+
has_controls?: IContentField<string>;
|
|
46
|
+
media_loop?: IContentField<string>;
|
|
47
|
+
media_autoplay?: IContentField<string>;
|
|
34
48
|
}
|
|
35
49
|
|
|
36
50
|
export interface IFigureStyle extends IBaseStyle {
|
|
37
51
|
style_name: 'figure';
|
|
38
52
|
caption_title?: IContentField<string>;
|
|
39
53
|
caption?: IContentField<string>;
|
|
54
|
+
/** Optional built-in image so a figure needs no child image section. */
|
|
55
|
+
img_src?: IContentField<string>;
|
|
56
|
+
alt?: IContentField<string>;
|
|
40
57
|
}
|
|
41
58
|
|
|
42
59
|
export interface ICarouselStyle extends IStyleWithSpacing {
|
|
@@ -72,7 +72,8 @@ export interface IHighlightStyle extends IStyleWithSpacing {
|
|
|
72
72
|
|
|
73
73
|
export interface IBlockquoteStyle extends IStyleWithSpacing {
|
|
74
74
|
style_name: 'blockquote';
|
|
75
|
-
content
|
|
75
|
+
/** Quote body. Dedicated markdown-inline field (not the generic `content`) so authors can bold/italic/link inside the quote without affecting the `code` style. */
|
|
76
|
+
blockquote_content?: IContentField<string>;
|
|
76
77
|
cite?: IContentField<string>;
|
|
77
78
|
web_left_icon?: IContentField<string>;
|
|
78
79
|
web_icon_size?: IContentField<TMantineIconSize>;
|
|
@@ -104,4 +105,6 @@ export interface ISpoilerStyle extends IStyleWithSpacing {
|
|
|
104
105
|
style_name: 'spoiler';
|
|
105
106
|
web_height?: IContentField<TMantineSpoilerMaxHeight>;
|
|
106
107
|
spoiler_show_label?: IContentField<string>;
|
|
107
|
-
spoiler_hide_label?: IContentField<string>;
|
|
108
|
+
spoiler_hide_label?: IContentField<string>;
|
|
109
|
+
/** Color of the show/hide control link. */
|
|
110
|
+
shared_color?: IContentField<TMantineColor>;}
|