@selfhelp/shared 1.2.3 → 1.2.5
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 +36 -0
- package/dist/index.d.mts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- 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-BDdxuQDR.d.mts → styles.registry-0MsmyRmF.d.mts} +21 -2
- package/dist/{styles.registry-BDk47JKd.d.ts → styles.registry-CtpsJ4gS.d.ts} +21 -2
- package/package.json +1 -1
- package/src/api/endpoints.ts +1 -0
- package/src/types/auth.ts +3 -0
- package/src/types/styles/auth.ts +31 -11
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,42 @@ All notable changes to `@selfhelp/shared` will be documented in this file.
|
|
|
9
9
|
|
|
10
10
|
This project follows semantic versioning.
|
|
11
11
|
|
|
12
|
+
## [1.2.5]
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- `IResetPasswordStyle` now models the full two-step reset flow instead of
|
|
17
|
+
just the "request a recovery mail" screen. Added optional CMS fields for
|
|
18
|
+
the set-password mode: `reset_title`, `reset_label_pw`,
|
|
19
|
+
`reset_pw_placeholder`, `reset_label_pw_confirm`,
|
|
20
|
+
`reset_pw_confirm_placeholder`, `reset_label_submit`,
|
|
21
|
+
`reset_success_title`, `reset_alert_success`, `reset_redirect_text`,
|
|
22
|
+
`reset_error_invalid_token`, `reset_error_pw_short`, and
|
|
23
|
+
`reset_error_pw_mismatch`.
|
|
24
|
+
- Removed the stale legacy `text_md` and `email_user` fields from
|
|
25
|
+
`IResetPasswordStyle` so the shared contract matches the backend
|
|
26
|
+
`resetPassword` style schema.
|
|
27
|
+
|
|
28
|
+
## [1.2.4] - 2026-06-05
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
|
|
32
|
+
- Communication preferences support in profile section. `IUserData` gains
|
|
33
|
+
`receives_notifications` and `receives_emails` boolean fields.
|
|
34
|
+
- New CMS endpoint `UPDATE_COMMUNICATION_PREFERENCES` for updating user
|
|
35
|
+
communication preferences.
|
|
36
|
+
- Communication preferences CMS label fields on `IProfileStyle`:
|
|
37
|
+
`profile_communication_preferences_title`,
|
|
38
|
+
`profile_communication_preferences_description`,
|
|
39
|
+
`profile_receive_notifications_label`,
|
|
40
|
+
`profile_receive_notifications_description`,
|
|
41
|
+
`profile_receive_emails_label`,
|
|
42
|
+
`profile_receive_emails_description`,
|
|
43
|
+
`profile_communication_preferences_button`,
|
|
44
|
+
`profile_communication_preferences_success`, and
|
|
45
|
+
`profile_communication_preferences_error_general`.
|
|
46
|
+
- New permission `ADMIN_SCHEDULED_JOB_MANAGE` for scheduled job management.
|
|
47
|
+
|
|
12
48
|
## [1.2.3] - 2026-06-04
|
|
13
49
|
|
|
14
50
|
### Added
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TStyleName, f as IContentField } from './styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, h as IAccordionItemStyle, i as IAccordionStyle, j as IActionIconStyle, k as IAlertStyle, l as IAspectRatioStyle, m as IAudioStyle, n as IAvatarStyle, o as IBackgroundImageStyle, p as IBadgeStyle, q as IBaseStyle, r as IBlockquoteStyle, s as IBoxStyle, t as IButtonStyle, u as ICardSegmentStyle, v as ICardStyle, w as ICarouselStyle, x as ICenterStyle, y as ICheckboxStyle, z as IChipStyle, A as ICodeStyle, C as IColorInputStyle, D as IColorPickerStyle, E as IComboboxStyle, F as IContainerStyle, G as IDatePickerStyle, H as IDividerStyle, J as IEntryListStyle, K as IEntryRecordDeleteStyle, L as IEntryRecordStyle, M as IFieldsetStyle, N as IFigureStyle, O as IFileInputStyle, P as IFlexStyle, Q as IFormLogStyle, R as IFormRecordStyle, U as IFormStyle, V as IGridColumnStyle, W as IGridStyle, X as IGroupStyle, Y as IHighlightStyle, Z as IHtmlTagStyle, $ as IImageStyle, a0 as IIndicatorStyle, a1 as IInputStyle, a2 as IKbdStyle, a3 as ILinkStyle, a4 as IListItemStyle, a5 as IListStyle, a6 as ILoginStyle, a7 as ILoopStyle, a8 as INotificationStyle, a9 as INumberInputStyle, aa as IPaperStyle, a as IPluginStyleRegistryEntry, ab as IProfileStyle, ac as IProgressRootStyle, ad as IProgressSectionStyle, ae as IProgressStyle, af as IRadioStyle, ag as IRangeSliderStyle, ah as IRatingStyle, ai as IRegisterStyle, aj as IResetPasswordStyle, ak as IRichTextEditorStyle, al as IScrollAreaStyle, am as ISegmentedControlStyle, an as ISelectStyle, ao as ISimpleGridStyle, ap as ISliderStyle, aq as ISpaceStyle, ar as ISpoilerStyle, as as IStackStyle, I as IStyleRegistryEntry, at as IStyleWithSpacing, au as ISwitchStyle, av as ITabStyle, aw as ITabsStyle, ax as ITextInputStyle, ay as ITextStyle, az as ITextareaStyle, aA as IThemeIconStyle, aB as ITimelineStyle, aC as ITitleStyle, aD as ITwoFactorAuthStyle, aE as ITypographyStyle, aF as IUnknownStyle, aG as IValidateStyle, aH as IVideoStyle, S as STYLE_REGISTRY, aI as TMantineAccordionChevronPosition, aJ as TMantineAccordionDisableChevronRotation, aK as TMantineAccordionLoop, aL as TMantineAccordionMultiple, aM as TMantineBorder, aN as TMantineCardShadow, aO as TMantineCheckboxLabelPosition, aP as TMantineCols, aQ as TMantineDividerVariant, aR as TMantineGap, aS as TMantineGridOffset, aT as TMantineGridOrder, aU as TMantineHeight, aV as TMantineIconSize, aW as TMantineImageFit, aX as TMantineLineClamp, aY as TMantineListCenter, aZ as TMantineListStyleType, a_ as TMantineListType, a$ as TMantineListWithPadding, b0 as TMantinePaperShadow, b1 as TMantineProgressTransition, b2 as TMantineScrollAreaSize, b3 as TMantineScrollAreaType, b4 as TMantineTextAlign, b5 as TMantineTextDecoration, b6 as TMantineTextFontStyle, b7 as TMantineTextFontWeight, b8 as TMantineTextInherit, b9 as TMantineTextInputVariant, ba as TMantineTextSpan, bb as TMantineTextTransform, bc as TMantineTextTruncate, bd as TMantineTextVariant, be as TMantineTextareaAutosize, bf as TMantineTextareaResize, bg as TMantineTextareaVariant, bh as TMantineTimelineAlign, bi as TMantineTitleLineClamp, bj as TMantineTitleTextWrap, bk as TMantineTranslatable, bl as TMantineUseInputWrapper, bm as TMantineWidth, bn as TStyle, 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, f as IContentField } from './styles.registry-0MsmyRmF.mjs';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, h as IAccordionItemStyle, i as IAccordionStyle, j as IActionIconStyle, k as IAlertStyle, l as IAspectRatioStyle, m as IAudioStyle, n as IAvatarStyle, o as IBackgroundImageStyle, p as IBadgeStyle, q as IBaseStyle, r as IBlockquoteStyle, s as IBoxStyle, t as IButtonStyle, u as ICardSegmentStyle, v as ICardStyle, w as ICarouselStyle, x as ICenterStyle, y as ICheckboxStyle, z as IChipStyle, A as ICodeStyle, C as IColorInputStyle, D as IColorPickerStyle, E as IComboboxStyle, F as IContainerStyle, G as IDatePickerStyle, H as IDividerStyle, J as IEntryListStyle, K as IEntryRecordDeleteStyle, L as IEntryRecordStyle, M as IFieldsetStyle, N as IFigureStyle, O as IFileInputStyle, P as IFlexStyle, Q as IFormLogStyle, R as IFormRecordStyle, U as IFormStyle, V as IGridColumnStyle, W as IGridStyle, X as IGroupStyle, Y as IHighlightStyle, Z as IHtmlTagStyle, $ as IImageStyle, a0 as IIndicatorStyle, a1 as IInputStyle, a2 as IKbdStyle, a3 as ILinkStyle, a4 as IListItemStyle, a5 as IListStyle, a6 as ILoginStyle, a7 as ILoopStyle, a8 as INotificationStyle, a9 as INumberInputStyle, aa as IPaperStyle, a as IPluginStyleRegistryEntry, ab as IProfileStyle, ac as IProgressRootStyle, ad as IProgressSectionStyle, ae as IProgressStyle, af as IRadioStyle, ag as IRangeSliderStyle, ah as IRatingStyle, ai as IRegisterStyle, aj as IResetPasswordStyle, ak as IRichTextEditorStyle, al as IScrollAreaStyle, am as ISegmentedControlStyle, an as ISelectStyle, ao as ISimpleGridStyle, ap as ISliderStyle, aq as ISpaceStyle, ar as ISpoilerStyle, as as IStackStyle, I as IStyleRegistryEntry, at as IStyleWithSpacing, au as ISwitchStyle, av as ITabStyle, aw as ITabsStyle, ax as ITextInputStyle, ay as ITextStyle, az as ITextareaStyle, aA as IThemeIconStyle, aB as ITimelineStyle, aC as ITitleStyle, aD as ITwoFactorAuthStyle, aE as ITypographyStyle, aF as IUnknownStyle, aG as IValidateStyle, aH as IVideoStyle, S as STYLE_REGISTRY, aI as TMantineAccordionChevronPosition, aJ as TMantineAccordionDisableChevronRotation, aK as TMantineAccordionLoop, aL as TMantineAccordionMultiple, aM as TMantineBorder, aN as TMantineCardShadow, aO as TMantineCheckboxLabelPosition, aP as TMantineCols, aQ as TMantineDividerVariant, aR as TMantineGap, aS as TMantineGridOffset, aT as TMantineGridOrder, aU as TMantineHeight, aV as TMantineIconSize, aW as TMantineImageFit, aX as TMantineLineClamp, aY as TMantineListCenter, aZ as TMantineListStyleType, a_ as TMantineListType, a$ as TMantineListWithPadding, b0 as TMantinePaperShadow, b1 as TMantineProgressTransition, b2 as TMantineScrollAreaSize, b3 as TMantineScrollAreaType, b4 as TMantineTextAlign, b5 as TMantineTextDecoration, b6 as TMantineTextFontStyle, b7 as TMantineTextFontWeight, b8 as TMantineTextInherit, b9 as TMantineTextInputVariant, ba as TMantineTextSpan, bb as TMantineTextTransform, bc as TMantineTextTruncate, bd as TMantineTextVariant, be as TMantineTextareaAutosize, bf as TMantineTextareaResize, bg as TMantineTextareaVariant, bh as TMantineTimelineAlign, bi as TMantineTitleLineClamp, bj as TMantineTitleTextWrap, bk as TMantineTranslatable, bl as TMantineUseInputWrapper, bm as TMantineWidth, bn as TStyle, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from './styles.registry-0MsmyRmF.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';
|
|
@@ -119,6 +119,8 @@ interface IUserData {
|
|
|
119
119
|
timezone_id: number | null;
|
|
120
120
|
timezone: string | null;
|
|
121
121
|
blocked: boolean;
|
|
122
|
+
receives_notifications: boolean;
|
|
123
|
+
receives_emails: boolean;
|
|
122
124
|
user_type: string | null;
|
|
123
125
|
language: ILanguagePreference | null;
|
|
124
126
|
languages?: ILanguagePreference[];
|
|
@@ -191,6 +193,7 @@ declare const PERMISSIONS: {
|
|
|
191
193
|
readonly ADMIN_SCHEDULED_JOB_READ: "admin.scheduled_job.read";
|
|
192
194
|
readonly ADMIN_SCHEDULED_JOB_EXECUTE: "admin.scheduled_job.execute";
|
|
193
195
|
readonly ADMIN_SCHEDULED_JOB_DELETE: "admin.scheduled_job.delete";
|
|
196
|
+
readonly ADMIN_SCHEDULED_JOB_MANAGE: "admin.scheduled_job.manage";
|
|
194
197
|
readonly ADMIN_SECTION_DELETE: "admin.section.delete";
|
|
195
198
|
readonly ADMIN_SETTINGS: "admin.settings";
|
|
196
199
|
readonly ADMIN_CMS_PREFERENCES_READ: "admin.cms_preferences.read";
|
|
@@ -364,6 +367,7 @@ declare const ENDPOINTS: {
|
|
|
364
367
|
readonly UPDATE_NAME: "/cms-api/v1/auth/user/name";
|
|
365
368
|
readonly UPDATE_PASSWORD: "/cms-api/v1/auth/user/password";
|
|
366
369
|
readonly UPDATE_TIMEZONE: "/cms-api/v1/auth/user/timezone";
|
|
370
|
+
readonly UPDATE_COMMUNICATION_PREFERENCES: "/cms-api/v1/auth/user/communication-preferences";
|
|
367
371
|
readonly DELETE_ACCOUNT: "/cms-api/v1/auth/user/account";
|
|
368
372
|
readonly VALIDATE_TOKEN: (userId: number, token: string) => string;
|
|
369
373
|
readonly COMPLETE_VALIDATION: (userId: number, token: string) => string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TStyleName, f as IContentField } from './styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, h as IAccordionItemStyle, i as IAccordionStyle, j as IActionIconStyle, k as IAlertStyle, l as IAspectRatioStyle, m as IAudioStyle, n as IAvatarStyle, o as IBackgroundImageStyle, p as IBadgeStyle, q as IBaseStyle, r as IBlockquoteStyle, s as IBoxStyle, t as IButtonStyle, u as ICardSegmentStyle, v as ICardStyle, w as ICarouselStyle, x as ICenterStyle, y as ICheckboxStyle, z as IChipStyle, A as ICodeStyle, C as IColorInputStyle, D as IColorPickerStyle, E as IComboboxStyle, F as IContainerStyle, G as IDatePickerStyle, H as IDividerStyle, J as IEntryListStyle, K as IEntryRecordDeleteStyle, L as IEntryRecordStyle, M as IFieldsetStyle, N as IFigureStyle, O as IFileInputStyle, P as IFlexStyle, Q as IFormLogStyle, R as IFormRecordStyle, U as IFormStyle, V as IGridColumnStyle, W as IGridStyle, X as IGroupStyle, Y as IHighlightStyle, Z as IHtmlTagStyle, $ as IImageStyle, a0 as IIndicatorStyle, a1 as IInputStyle, a2 as IKbdStyle, a3 as ILinkStyle, a4 as IListItemStyle, a5 as IListStyle, a6 as ILoginStyle, a7 as ILoopStyle, a8 as INotificationStyle, a9 as INumberInputStyle, aa as IPaperStyle, a as IPluginStyleRegistryEntry, ab as IProfileStyle, ac as IProgressRootStyle, ad as IProgressSectionStyle, ae as IProgressStyle, af as IRadioStyle, ag as IRangeSliderStyle, ah as IRatingStyle, ai as IRegisterStyle, aj as IResetPasswordStyle, ak as IRichTextEditorStyle, al as IScrollAreaStyle, am as ISegmentedControlStyle, an as ISelectStyle, ao as ISimpleGridStyle, ap as ISliderStyle, aq as ISpaceStyle, ar as ISpoilerStyle, as as IStackStyle, I as IStyleRegistryEntry, at as IStyleWithSpacing, au as ISwitchStyle, av as ITabStyle, aw as ITabsStyle, ax as ITextInputStyle, ay as ITextStyle, az as ITextareaStyle, aA as IThemeIconStyle, aB as ITimelineStyle, aC as ITitleStyle, aD as ITwoFactorAuthStyle, aE as ITypographyStyle, aF as IUnknownStyle, aG as IValidateStyle, aH as IVideoStyle, S as STYLE_REGISTRY, aI as TMantineAccordionChevronPosition, aJ as TMantineAccordionDisableChevronRotation, aK as TMantineAccordionLoop, aL as TMantineAccordionMultiple, aM as TMantineBorder, aN as TMantineCardShadow, aO as TMantineCheckboxLabelPosition, aP as TMantineCols, aQ as TMantineDividerVariant, aR as TMantineGap, aS as TMantineGridOffset, aT as TMantineGridOrder, aU as TMantineHeight, aV as TMantineIconSize, aW as TMantineImageFit, aX as TMantineLineClamp, aY as TMantineListCenter, aZ as TMantineListStyleType, a_ as TMantineListType, a$ as TMantineListWithPadding, b0 as TMantinePaperShadow, b1 as TMantineProgressTransition, b2 as TMantineScrollAreaSize, b3 as TMantineScrollAreaType, b4 as TMantineTextAlign, b5 as TMantineTextDecoration, b6 as TMantineTextFontStyle, b7 as TMantineTextFontWeight, b8 as TMantineTextInherit, b9 as TMantineTextInputVariant, ba as TMantineTextSpan, bb as TMantineTextTransform, bc as TMantineTextTruncate, bd as TMantineTextVariant, be as TMantineTextareaAutosize, bf as TMantineTextareaResize, bg as TMantineTextareaVariant, bh as TMantineTimelineAlign, bi as TMantineTitleLineClamp, bj as TMantineTitleTextWrap, bk as TMantineTranslatable, bl as TMantineUseInputWrapper, bm as TMantineWidth, bn as TStyle, 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, f as IContentField } from './styles.registry-CtpsJ4gS.js';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, h as IAccordionItemStyle, i as IAccordionStyle, j as IActionIconStyle, k as IAlertStyle, l as IAspectRatioStyle, m as IAudioStyle, n as IAvatarStyle, o as IBackgroundImageStyle, p as IBadgeStyle, q as IBaseStyle, r as IBlockquoteStyle, s as IBoxStyle, t as IButtonStyle, u as ICardSegmentStyle, v as ICardStyle, w as ICarouselStyle, x as ICenterStyle, y as ICheckboxStyle, z as IChipStyle, A as ICodeStyle, C as IColorInputStyle, D as IColorPickerStyle, E as IComboboxStyle, F as IContainerStyle, G as IDatePickerStyle, H as IDividerStyle, J as IEntryListStyle, K as IEntryRecordDeleteStyle, L as IEntryRecordStyle, M as IFieldsetStyle, N as IFigureStyle, O as IFileInputStyle, P as IFlexStyle, Q as IFormLogStyle, R as IFormRecordStyle, U as IFormStyle, V as IGridColumnStyle, W as IGridStyle, X as IGroupStyle, Y as IHighlightStyle, Z as IHtmlTagStyle, $ as IImageStyle, a0 as IIndicatorStyle, a1 as IInputStyle, a2 as IKbdStyle, a3 as ILinkStyle, a4 as IListItemStyle, a5 as IListStyle, a6 as ILoginStyle, a7 as ILoopStyle, a8 as INotificationStyle, a9 as INumberInputStyle, aa as IPaperStyle, a as IPluginStyleRegistryEntry, ab as IProfileStyle, ac as IProgressRootStyle, ad as IProgressSectionStyle, ae as IProgressStyle, af as IRadioStyle, ag as IRangeSliderStyle, ah as IRatingStyle, ai as IRegisterStyle, aj as IResetPasswordStyle, ak as IRichTextEditorStyle, al as IScrollAreaStyle, am as ISegmentedControlStyle, an as ISelectStyle, ao as ISimpleGridStyle, ap as ISliderStyle, aq as ISpaceStyle, ar as ISpoilerStyle, as as IStackStyle, I as IStyleRegistryEntry, at as IStyleWithSpacing, au as ISwitchStyle, av as ITabStyle, aw as ITabsStyle, ax as ITextInputStyle, ay as ITextStyle, az as ITextareaStyle, aA as IThemeIconStyle, aB as ITimelineStyle, aC as ITitleStyle, aD as ITwoFactorAuthStyle, aE as ITypographyStyle, aF as IUnknownStyle, aG as IValidateStyle, aH as IVideoStyle, S as STYLE_REGISTRY, aI as TMantineAccordionChevronPosition, aJ as TMantineAccordionDisableChevronRotation, aK as TMantineAccordionLoop, aL as TMantineAccordionMultiple, aM as TMantineBorder, aN as TMantineCardShadow, aO as TMantineCheckboxLabelPosition, aP as TMantineCols, aQ as TMantineDividerVariant, aR as TMantineGap, aS as TMantineGridOffset, aT as TMantineGridOrder, aU as TMantineHeight, aV as TMantineIconSize, aW as TMantineImageFit, aX as TMantineLineClamp, aY as TMantineListCenter, aZ as TMantineListStyleType, a_ as TMantineListType, a$ as TMantineListWithPadding, b0 as TMantinePaperShadow, b1 as TMantineProgressTransition, b2 as TMantineScrollAreaSize, b3 as TMantineScrollAreaType, b4 as TMantineTextAlign, b5 as TMantineTextDecoration, b6 as TMantineTextFontStyle, b7 as TMantineTextFontWeight, b8 as TMantineTextInherit, b9 as TMantineTextInputVariant, ba as TMantineTextSpan, bb as TMantineTextTransform, bc as TMantineTextTruncate, bd as TMantineTextVariant, be as TMantineTextareaAutosize, bf as TMantineTextareaResize, bg as TMantineTextareaVariant, bh as TMantineTimelineAlign, bi as TMantineTitleLineClamp, bj as TMantineTitleTextWrap, bk as TMantineTranslatable, bl as TMantineUseInputWrapper, bm as TMantineWidth, bn as TStyle, b as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, c as _resetPluginStyleRegistry, e as extendStyleRegistry, g as getMergedStyleRegistry, d as getPluginStyleRegistry } from './styles.registry-CtpsJ4gS.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';
|
|
@@ -119,6 +119,8 @@ interface IUserData {
|
|
|
119
119
|
timezone_id: number | null;
|
|
120
120
|
timezone: string | null;
|
|
121
121
|
blocked: boolean;
|
|
122
|
+
receives_notifications: boolean;
|
|
123
|
+
receives_emails: boolean;
|
|
122
124
|
user_type: string | null;
|
|
123
125
|
language: ILanguagePreference | null;
|
|
124
126
|
languages?: ILanguagePreference[];
|
|
@@ -191,6 +193,7 @@ declare const PERMISSIONS: {
|
|
|
191
193
|
readonly ADMIN_SCHEDULED_JOB_READ: "admin.scheduled_job.read";
|
|
192
194
|
readonly ADMIN_SCHEDULED_JOB_EXECUTE: "admin.scheduled_job.execute";
|
|
193
195
|
readonly ADMIN_SCHEDULED_JOB_DELETE: "admin.scheduled_job.delete";
|
|
196
|
+
readonly ADMIN_SCHEDULED_JOB_MANAGE: "admin.scheduled_job.manage";
|
|
194
197
|
readonly ADMIN_SECTION_DELETE: "admin.section.delete";
|
|
195
198
|
readonly ADMIN_SETTINGS: "admin.settings";
|
|
196
199
|
readonly ADMIN_CMS_PREFERENCES_READ: "admin.cms_preferences.read";
|
|
@@ -364,6 +367,7 @@ declare const ENDPOINTS: {
|
|
|
364
367
|
readonly UPDATE_NAME: "/cms-api/v1/auth/user/name";
|
|
365
368
|
readonly UPDATE_PASSWORD: "/cms-api/v1/auth/user/password";
|
|
366
369
|
readonly UPDATE_TIMEZONE: "/cms-api/v1/auth/user/timezone";
|
|
370
|
+
readonly UPDATE_COMMUNICATION_PREFERENCES: "/cms-api/v1/auth/user/communication-preferences";
|
|
367
371
|
readonly DELETE_ACCOUNT: "/cms-api/v1/auth/user/account";
|
|
368
372
|
readonly VALIDATE_TOKEN: (userId: number, token: string) => string;
|
|
369
373
|
readonly COMPLETE_VALIDATION: (userId: number, token: string) => string;
|
package/dist/index.js
CHANGED
|
@@ -124,6 +124,7 @@ var PERMISSIONS = {
|
|
|
124
124
|
ADMIN_SCHEDULED_JOB_READ: "admin.scheduled_job.read",
|
|
125
125
|
ADMIN_SCHEDULED_JOB_EXECUTE: "admin.scheduled_job.execute",
|
|
126
126
|
ADMIN_SCHEDULED_JOB_DELETE: "admin.scheduled_job.delete",
|
|
127
|
+
ADMIN_SCHEDULED_JOB_MANAGE: "admin.scheduled_job.manage",
|
|
127
128
|
ADMIN_SECTION_DELETE: "admin.section.delete",
|
|
128
129
|
ADMIN_SETTINGS: "admin.settings",
|
|
129
130
|
ADMIN_CMS_PREFERENCES_READ: "admin.cms_preferences.read",
|
|
@@ -325,6 +326,7 @@ var ENDPOINTS = {
|
|
|
325
326
|
UPDATE_NAME: `${API_VERSION_PREFIX}/auth/user/name`,
|
|
326
327
|
UPDATE_PASSWORD: `${API_VERSION_PREFIX}/auth/user/password`,
|
|
327
328
|
UPDATE_TIMEZONE: `${API_VERSION_PREFIX}/auth/user/timezone`,
|
|
329
|
+
UPDATE_COMMUNICATION_PREFERENCES: `${API_VERSION_PREFIX}/auth/user/communication-preferences`,
|
|
328
330
|
DELETE_ACCOUNT: `${API_VERSION_PREFIX}/auth/user/account`,
|
|
329
331
|
VALIDATE_TOKEN: (userId, token) => `${API_VERSION_PREFIX}/validate/${userId}/${token}`,
|
|
330
332
|
COMPLETE_VALIDATION: (userId, token) => `${API_VERSION_PREFIX}/validate/${userId}/${token}/complete`
|
package/dist/index.mjs
CHANGED
|
@@ -39,6 +39,7 @@ var PERMISSIONS = {
|
|
|
39
39
|
ADMIN_SCHEDULED_JOB_READ: "admin.scheduled_job.read",
|
|
40
40
|
ADMIN_SCHEDULED_JOB_EXECUTE: "admin.scheduled_job.execute",
|
|
41
41
|
ADMIN_SCHEDULED_JOB_DELETE: "admin.scheduled_job.delete",
|
|
42
|
+
ADMIN_SCHEDULED_JOB_MANAGE: "admin.scheduled_job.manage",
|
|
42
43
|
ADMIN_SECTION_DELETE: "admin.section.delete",
|
|
43
44
|
ADMIN_SETTINGS: "admin.settings",
|
|
44
45
|
ADMIN_CMS_PREFERENCES_READ: "admin.cms_preferences.read",
|
|
@@ -240,6 +241,7 @@ var ENDPOINTS = {
|
|
|
240
241
|
UPDATE_NAME: `${API_VERSION_PREFIX}/auth/user/name`,
|
|
241
242
|
UPDATE_PASSWORD: `${API_VERSION_PREFIX}/auth/user/password`,
|
|
242
243
|
UPDATE_TIMEZONE: `${API_VERSION_PREFIX}/auth/user/timezone`,
|
|
244
|
+
UPDATE_COMMUNICATION_PREFERENCES: `${API_VERSION_PREFIX}/auth/user/communication-preferences`,
|
|
243
245
|
DELETE_ACCOUNT: `${API_VERSION_PREFIX}/auth/user/account`,
|
|
244
246
|
VALIDATE_TOKEN: (userId, token) => `${API_VERSION_PREFIX}/validate/${userId}/${token}`,
|
|
245
247
|
COMPLETE_VALIDATION: (userId, token) => `${API_VERSION_PREFIX}/validate/${userId}/${token}/complete`
|
|
@@ -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-0MsmyRmF.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-CtpsJ4gS.js';
|
|
3
3
|
import '../common-B96dASgu.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -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-0MsmyRmF.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-0MsmyRmF.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-CtpsJ4gS.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-CtpsJ4gS.js';
|
|
3
3
|
import '../common-B96dASgu.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -79,13 +79,23 @@ interface IValidateStyle extends IStyleWithSpacing {
|
|
|
79
79
|
interface IResetPasswordStyle extends IStyleWithSpacing {
|
|
80
80
|
style_name: 'resetPassword';
|
|
81
81
|
label_pw_reset?: IContentField<string>;
|
|
82
|
-
text_md?: IContentField<string>;
|
|
83
82
|
type?: IContentField<string>;
|
|
84
83
|
alert_success?: IContentField<string>;
|
|
85
84
|
placeholder?: IContentField<string>;
|
|
86
|
-
email_user?: IContentField<string>;
|
|
87
85
|
subject_user?: IContentField<string>;
|
|
88
86
|
is_html?: IContentField<string>;
|
|
87
|
+
reset_title?: IContentField<string>;
|
|
88
|
+
reset_label_pw?: IContentField<string>;
|
|
89
|
+
reset_pw_placeholder?: IContentField<string>;
|
|
90
|
+
reset_label_pw_confirm?: IContentField<string>;
|
|
91
|
+
reset_pw_confirm_placeholder?: IContentField<string>;
|
|
92
|
+
reset_label_submit?: IContentField<string>;
|
|
93
|
+
reset_success_title?: IContentField<string>;
|
|
94
|
+
reset_alert_success?: IContentField<string>;
|
|
95
|
+
reset_redirect_text?: IContentField<string>;
|
|
96
|
+
reset_error_invalid_token?: IContentField<string>;
|
|
97
|
+
reset_error_pw_short?: IContentField<string>;
|
|
98
|
+
reset_error_pw_mismatch?: IContentField<string>;
|
|
89
99
|
}
|
|
90
100
|
interface ITwoFactorAuthStyle extends IStyleWithSpacing {
|
|
91
101
|
style_name: 'twoFactorAuth';
|
|
@@ -123,6 +133,15 @@ interface IProfileStyle extends IStyleWithSpacing {
|
|
|
123
133
|
profile_timezone_change_success?: IContentField<string>;
|
|
124
134
|
profile_timezone_change_error_required?: IContentField<string>;
|
|
125
135
|
profile_timezone_change_error_general?: IContentField<string>;
|
|
136
|
+
profile_communication_preferences_title?: IContentField<string>;
|
|
137
|
+
profile_communication_preferences_description?: IContentField<string>;
|
|
138
|
+
profile_receive_notifications_label?: IContentField<string>;
|
|
139
|
+
profile_receive_notifications_description?: IContentField<string>;
|
|
140
|
+
profile_receive_emails_label?: IContentField<string>;
|
|
141
|
+
profile_receive_emails_description?: IContentField<string>;
|
|
142
|
+
profile_communication_preferences_button?: IContentField<string>;
|
|
143
|
+
profile_communication_preferences_success?: IContentField<string>;
|
|
144
|
+
profile_communication_preferences_error_general?: IContentField<string>;
|
|
126
145
|
profile_password_reset_title?: IContentField<string>;
|
|
127
146
|
profile_password_reset_description?: IContentField<string>;
|
|
128
147
|
profile_password_reset_label_current?: IContentField<string>;
|
|
@@ -79,13 +79,23 @@ interface IValidateStyle extends IStyleWithSpacing {
|
|
|
79
79
|
interface IResetPasswordStyle extends IStyleWithSpacing {
|
|
80
80
|
style_name: 'resetPassword';
|
|
81
81
|
label_pw_reset?: IContentField<string>;
|
|
82
|
-
text_md?: IContentField<string>;
|
|
83
82
|
type?: IContentField<string>;
|
|
84
83
|
alert_success?: IContentField<string>;
|
|
85
84
|
placeholder?: IContentField<string>;
|
|
86
|
-
email_user?: IContentField<string>;
|
|
87
85
|
subject_user?: IContentField<string>;
|
|
88
86
|
is_html?: IContentField<string>;
|
|
87
|
+
reset_title?: IContentField<string>;
|
|
88
|
+
reset_label_pw?: IContentField<string>;
|
|
89
|
+
reset_pw_placeholder?: IContentField<string>;
|
|
90
|
+
reset_label_pw_confirm?: IContentField<string>;
|
|
91
|
+
reset_pw_confirm_placeholder?: IContentField<string>;
|
|
92
|
+
reset_label_submit?: IContentField<string>;
|
|
93
|
+
reset_success_title?: IContentField<string>;
|
|
94
|
+
reset_alert_success?: IContentField<string>;
|
|
95
|
+
reset_redirect_text?: IContentField<string>;
|
|
96
|
+
reset_error_invalid_token?: IContentField<string>;
|
|
97
|
+
reset_error_pw_short?: IContentField<string>;
|
|
98
|
+
reset_error_pw_mismatch?: IContentField<string>;
|
|
89
99
|
}
|
|
90
100
|
interface ITwoFactorAuthStyle extends IStyleWithSpacing {
|
|
91
101
|
style_name: 'twoFactorAuth';
|
|
@@ -123,6 +133,15 @@ interface IProfileStyle extends IStyleWithSpacing {
|
|
|
123
133
|
profile_timezone_change_success?: IContentField<string>;
|
|
124
134
|
profile_timezone_change_error_required?: IContentField<string>;
|
|
125
135
|
profile_timezone_change_error_general?: IContentField<string>;
|
|
136
|
+
profile_communication_preferences_title?: IContentField<string>;
|
|
137
|
+
profile_communication_preferences_description?: IContentField<string>;
|
|
138
|
+
profile_receive_notifications_label?: IContentField<string>;
|
|
139
|
+
profile_receive_notifications_description?: IContentField<string>;
|
|
140
|
+
profile_receive_emails_label?: IContentField<string>;
|
|
141
|
+
profile_receive_emails_description?: IContentField<string>;
|
|
142
|
+
profile_communication_preferences_button?: IContentField<string>;
|
|
143
|
+
profile_communication_preferences_success?: IContentField<string>;
|
|
144
|
+
profile_communication_preferences_error_general?: IContentField<string>;
|
|
126
145
|
profile_password_reset_title?: IContentField<string>;
|
|
127
146
|
profile_password_reset_description?: IContentField<string>;
|
|
128
147
|
profile_password_reset_label_current?: IContentField<string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selfhelp/shared",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"description": "Shared TypeScript package for SelfHelp web frontend and mobile app: style registry, types, API contracts, Mantine theme tokens, condition + interpolation engines, CMS class allow-list.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
package/src/api/endpoints.ts
CHANGED
|
@@ -24,6 +24,7 @@ export const ENDPOINTS = {
|
|
|
24
24
|
UPDATE_NAME: `${API_VERSION_PREFIX}/auth/user/name`,
|
|
25
25
|
UPDATE_PASSWORD: `${API_VERSION_PREFIX}/auth/user/password`,
|
|
26
26
|
UPDATE_TIMEZONE: `${API_VERSION_PREFIX}/auth/user/timezone`,
|
|
27
|
+
UPDATE_COMMUNICATION_PREFERENCES: `${API_VERSION_PREFIX}/auth/user/communication-preferences`,
|
|
27
28
|
DELETE_ACCOUNT: `${API_VERSION_PREFIX}/auth/user/account`,
|
|
28
29
|
VALIDATE_TOKEN: (userId: number, token: string): string =>
|
|
29
30
|
`${API_VERSION_PREFIX}/validate/${userId}/${token}`,
|
package/src/types/auth.ts
CHANGED
|
@@ -25,6 +25,8 @@ export interface IUserData {
|
|
|
25
25
|
timezone_id: number | null;
|
|
26
26
|
timezone: string | null;
|
|
27
27
|
blocked: boolean;
|
|
28
|
+
receives_notifications: boolean;
|
|
29
|
+
receives_emails: boolean;
|
|
28
30
|
user_type: string | null;
|
|
29
31
|
language: ILanguagePreference | null;
|
|
30
32
|
languages?: ILanguagePreference[];
|
|
@@ -97,6 +99,7 @@ export const PERMISSIONS = {
|
|
|
97
99
|
ADMIN_SCHEDULED_JOB_READ: 'admin.scheduled_job.read',
|
|
98
100
|
ADMIN_SCHEDULED_JOB_EXECUTE: 'admin.scheduled_job.execute',
|
|
99
101
|
ADMIN_SCHEDULED_JOB_DELETE: 'admin.scheduled_job.delete',
|
|
102
|
+
ADMIN_SCHEDULED_JOB_MANAGE: 'admin.scheduled_job.manage',
|
|
100
103
|
ADMIN_SECTION_DELETE: 'admin.section.delete',
|
|
101
104
|
ADMIN_SETTINGS: 'admin.settings',
|
|
102
105
|
ADMIN_CMS_PREFERENCES_READ: 'admin.cms_preferences.read',
|
package/src/types/styles/auth.ts
CHANGED
|
@@ -84,17 +84,27 @@ export interface IValidateStyle extends IStyleWithSpacing {
|
|
|
84
84
|
redirect_text?: IContentField<string>;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
export interface IResetPasswordStyle extends IStyleWithSpacing {
|
|
88
|
-
style_name: 'resetPassword';
|
|
89
|
-
label_pw_reset?: IContentField<string>;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
87
|
+
export interface IResetPasswordStyle extends IStyleWithSpacing {
|
|
88
|
+
style_name: 'resetPassword';
|
|
89
|
+
label_pw_reset?: IContentField<string>;
|
|
90
|
+
type?: IContentField<string>;
|
|
91
|
+
alert_success?: IContentField<string>;
|
|
92
|
+
placeholder?: IContentField<string>;
|
|
93
|
+
subject_user?: IContentField<string>;
|
|
94
|
+
is_html?: IContentField<string>;
|
|
95
|
+
reset_title?: IContentField<string>;
|
|
96
|
+
reset_label_pw?: IContentField<string>;
|
|
97
|
+
reset_pw_placeholder?: IContentField<string>;
|
|
98
|
+
reset_label_pw_confirm?: IContentField<string>;
|
|
99
|
+
reset_pw_confirm_placeholder?: IContentField<string>;
|
|
100
|
+
reset_label_submit?: IContentField<string>;
|
|
101
|
+
reset_success_title?: IContentField<string>;
|
|
102
|
+
reset_alert_success?: IContentField<string>;
|
|
103
|
+
reset_redirect_text?: IContentField<string>;
|
|
104
|
+
reset_error_invalid_token?: IContentField<string>;
|
|
105
|
+
reset_error_pw_short?: IContentField<string>;
|
|
106
|
+
reset_error_pw_mismatch?: IContentField<string>;
|
|
107
|
+
}
|
|
98
108
|
|
|
99
109
|
export interface ITwoFactorAuthStyle extends IStyleWithSpacing {
|
|
100
110
|
style_name: 'twoFactorAuth';
|
|
@@ -137,6 +147,16 @@ export interface IProfileStyle extends IStyleWithSpacing {
|
|
|
137
147
|
profile_timezone_change_error_required?: IContentField<string>;
|
|
138
148
|
profile_timezone_change_error_general?: IContentField<string>;
|
|
139
149
|
|
|
150
|
+
profile_communication_preferences_title?: IContentField<string>;
|
|
151
|
+
profile_communication_preferences_description?: IContentField<string>;
|
|
152
|
+
profile_receive_notifications_label?: IContentField<string>;
|
|
153
|
+
profile_receive_notifications_description?: IContentField<string>;
|
|
154
|
+
profile_receive_emails_label?: IContentField<string>;
|
|
155
|
+
profile_receive_emails_description?: IContentField<string>;
|
|
156
|
+
profile_communication_preferences_button?: IContentField<string>;
|
|
157
|
+
profile_communication_preferences_success?: IContentField<string>;
|
|
158
|
+
profile_communication_preferences_error_general?: IContentField<string>;
|
|
159
|
+
|
|
140
160
|
profile_password_reset_title?: IContentField<string>;
|
|
141
161
|
profile_password_reset_description?: IContentField<string>;
|
|
142
162
|
profile_password_reset_label_current?: IContentField<string>;
|