@selfhelp/shared 1.30.0 → 1.31.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 +41 -0
- package/dist/index.d.mts +14 -82
- package/dist/index.d.ts +14 -82
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/inlineFormat-Duu5VLMU.d.mts +73 -0
- package/dist/inlineFormat-Duu5VLMU.d.ts +73 -0
- package/dist/{manifest-DRlcSvvy.d.mts → manifest-DWHD0PQA.d.mts} +124 -1
- package/dist/{manifest-DRlcSvvy.d.ts → manifest-DWHD0PQA.d.ts} +124 -1
- package/dist/plugin-sdk/index.d.mts +210 -10
- package/dist/plugin-sdk/index.d.ts +210 -10
- package/dist/plugin-sdk/index.js +174 -2
- package/dist/plugin-sdk/index.mjs +171 -2
- package/dist/plugin-sdk/sync-map.d.mts +22 -0
- package/dist/plugin-sdk/sync-map.d.ts +22 -0
- package/dist/plugin-sdk/sync-map.js +58 -0
- package/dist/plugin-sdk/sync-map.mjs +33 -0
- package/dist/registry/index.d.mts +2 -2
- package/dist/registry/index.d.ts +2 -2
- package/dist/{styles.registry-DnIJqEzM.d.mts → styles.registry-B2cyNdo3.d.mts} +26 -1
- package/dist/{styles.registry-C2ACy7H0.d.ts → styles.registry-G_KUYGPv.d.ts} +26 -1
- package/dist/testing/index.d.mts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/package.json +3 -3
- package/src/plugin-sdk/__tests__/define-sync.test.ts +106 -0
- package/src/plugin-sdk/__tests__/exports.test.ts +29 -0
- package/src/plugin-sdk/__tests__/host-services.test.ts +96 -6
- package/src/plugin-sdk/__tests__/sync-map.test.ts +48 -0
- package/src/plugin-sdk/__tests__/version.test.ts +9 -0
- package/src/plugin-sdk/host-services.ts +106 -0
- package/src/plugin-sdk/index.ts +24 -0
- package/src/plugin-sdk/manifest.ts +142 -0
- package/src/plugin-sdk/sync-map.ts +61 -0
- package/src/plugin-sdk/types.ts +89 -5
- package/src/plugin-sdk/version.ts +19 -2
- package/src/sync/__tests__/sync.test.ts +19 -0
- package/src/sync/sync.ts +3 -2
- package/src/sync/types.ts +9 -6
- package/src/types/api/form-lists.ts +16 -1
- package/src/types/api/forms.ts +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,47 @@ All notable changes to `@selfhelp/shared` will be documented in this file.
|
|
|
10
10
|
This project follows semantic versioning.
|
|
11
11
|
|
|
12
12
|
|
|
13
|
+
## v1.31.0
|
|
14
|
+
|
|
15
|
+
Minor: plugin host hooks contracts for resource tags, sync map, manifest
|
|
16
|
+
settings and the web SDK surface (task `2026-11-25-plugin-resource-hooks`).
|
|
17
|
+
Additive, no breaking change. `PLUGIN_API_VERSION` becomes `0.2.0`.
|
|
18
|
+
|
|
19
|
+
- **Added** `res:<type>:<id>` to `SYNC_TAG_PATTERN` / `TSyncTag`;
|
|
20
|
+
`pageDependsOn` matches listed `res:` tags.
|
|
21
|
+
- **Added** plugin SDK `sync?` map on web and mobile registrations,
|
|
22
|
+
`matchPluginSyncEntries()` (`src/plugin-sdk/sync-map.ts`).
|
|
23
|
+
- **Added** manifest types for C2 / C21–C25: `resourceFields`,
|
|
24
|
+
`cacheCategories`, action-plannable `scheduledJobs`, `settings`,
|
|
25
|
+
`rateLimits`, `jsonLogicOperations`, `listens`, `recurringJobs`,
|
|
26
|
+
`timeoutSeconds`.
|
|
27
|
+
- **Added** web `IPluginApi` members `resources`, `settings`,
|
|
28
|
+
`sectionAnchor`, optional `ui.ResourceUsageList`; types
|
|
29
|
+
`IResourceUsage`, `IPluginSettingsView`. Mobile omits these.
|
|
30
|
+
- **Added** optional `content_ref` on form list rows, selected records,
|
|
31
|
+
history revisions and form submit/update responses (C19).
|
|
32
|
+
- **Added** mobile host services, all optional on `IMobileHostServices` so a
|
|
33
|
+
plugin feature-detects them (C27 to C29): `upload(req)` with
|
|
34
|
+
`IMobileHostUploadRequest` / `IMobileHostUploadFile` (multipart through the
|
|
35
|
+
host with its token; `invalid_upload` and `file_too_large` answer
|
|
36
|
+
`{ ok: false, status: 0 }`), `requestPermission(kind)` with
|
|
37
|
+
`TMobileHostPermission` (`microphone` | `camera`) and
|
|
38
|
+
`TMobileHostPermissionState` (`granted` | `denied` | `blocked`),
|
|
39
|
+
`openAppSettings()`, and `getPluginStorage(pluginId)` returning
|
|
40
|
+
`IMobilePluginStorage` (device key-value store per server, user and plugin;
|
|
41
|
+
not for secrets).
|
|
42
|
+
- **Added** `parseInlineRich`, `stripHtmlToText` and `IInlineNode` exported from
|
|
43
|
+
`@selfhelp/shared/plugin-sdk` for native mobile plugin text (C30). They are
|
|
44
|
+
the same functions as in `src/content/inlineFormat.ts`, not copies. The
|
|
45
|
+
`IMobilePluginApi` comment now states the HTML rule: native text through
|
|
46
|
+
these helpers; HTML in a plugin's own WebView through a sanitizer bundled
|
|
47
|
+
there; web through `api.sanitizeHtml`.
|
|
48
|
+
- **Added** `'plugin'` to `TDataRevisionSource`: a plugin writes a data row through the revision door `plugin`; clients show "via plugin" in a record's history.
|
|
49
|
+
- **Changed** `MOBILE_RENDERER_VERSION` `0.3.0` to `0.4.0` (additive renderer
|
|
50
|
+
feature). Plugins declare `>=` ranges in `compatibility.mobile`; a caret on
|
|
51
|
+
`0.x` such as `^0.3.0` does not match `0.4.0`. `PLUGIN_API_VERSION` stays
|
|
52
|
+
`0.2.0` (the 0.2.0 comment lists the new members).
|
|
53
|
+
|
|
13
54
|
## v1.30.0
|
|
14
55
|
|
|
15
56
|
Minor: language-independent sentinel as one named constant (task
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { T as TStyleName, k as IContentField, l as IBaseApiResponse, m as IAboutItem, n as TMobileButtonFeedback, o as TMobileFieldVariant, p as TMobileSelectPresentation, q as IFormInvalidData, r as IFormListRestoreBlockedData, s as IFormStaleVersionData, t as IFormListFilesCell, u as TFormListMode, v as IFormListSort } from './styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, F as FORM_SECTION_STYLE_NAMES, w as IAccordionItemStyle, x as IAccordionStyle, y as IActionIconStyle, z as IAdminDataRecordCompareResponse, A as IAdminDataRecordHistoryResponse, C as IAdminDataRecordRestoreRequest, D as IAdminDataRecordRestoreResponse, E as IAdminDataRecordVersionResponse, G as IAlertStyle, H as IApiError, J as IApiMeta, K as IAspectRatioStyle, L as IAudioStyle, M as IAvatarStyle, N as IBackgroundImageStyle, O as IBadgeStyle, P as IBaseStyle, Q as IBlockquoteStyle, R as IBoxStyle, U as IButtonStyle, V as ICardSegmentStyle, W as ICardStyle, X as ICarouselStyle, Y as ICenterStyle, Z as ICheckboxStyle, $ as IChipStyle, a0 as ICodeStyle, a1 as IColorInputStyle, a2 as IColorPickerStyle, a3 as IComboboxStyle, a4 as IContainerStyle, a5 as IDataContainerStyle, a6 as IDataViewStyle, a7 as IDatePickerStyle, a8 as IDividerStyle, a9 as IEntryFormListStyle, aa as IEntryListStyle, ab as IEntryRecordDeleteStyle, ac as IEntryRecordFormStyle, ad as IEntryRecordStyle, ae as IEntryTableEntry, af as IEntryTableStyle, ag as IFieldsetStyle, ah as IFigureStyle, ai as IFileInputStyle, aj as IFlexStyle, ak as IFormDeleteData, al as IFormDeleteRequest, am as IFormDeleteResponse, an as IFormEffectiveContext, ao as IFormFileFieldOp, ap as IFormInputError, aq as IFormListActor, ar as IFormListBaseStyle, as as IFormListCapabilities, at as IFormListColumn, au as IFormListCompareData, av as IFormListCompareQuery, aw as IFormListCompareResponse, ax as IFormListControl, ay as IFormListControlOption, az as IFormListError, aA as IFormListFileChange, aB as IFormListFileValue, aC as IFormListHistoricalFile, aD as IFormListHistoryData, aE as IFormListHistoryQuery, aF as IFormListHistoryResponse, aG as IFormListInfo, aH as IFormListPagination, aI as IFormListQuickActionData, aJ as IFormListQuickActionInfo, aK as IFormListQuickActionRequest, aL as IFormListQuickActionResponse, aM as IFormListRecordAccess, aN as IFormListRestoreBlocker, aO as IFormListRestoreChange, aP as IFormListRestorePreview, aQ as IFormListRestoreRequest, aR as IFormListRestoreResponse, aS as IFormListRestoreResult, aT as IFormListRevision, aU as IFormListRow, aV as IFormListSelected, aW as IFormListServedState, aX as IFormListState, aY as IFormListStateField, aZ as IFormListStateResponse, a_ as IFormListValueChange, a$ as IFormListVersionData, b0 as IFormListVersionResponse, b1 as IFormLogStyle, b2 as IFormRecordStyle, b3 as IFormResultLegacyFields, b4 as IFormStyle, b5 as IFormSubmitData, b6 as IFormSubmitRequest, b7 as IFormSubmitResponse, b8 as IFormUpdateData, b9 as IFormUpdateRequest, ba as IFormUpdateResponse, bb as IGridColumnStyle, bc as IGridStyle, bd as IGroupStyle, be as IHighlightStyle, bf as IHtmlTagStyle, bg as IImageStyle, bh as IIndicatorStyle, bi as IInputStyle, bj as IKbdStyle, bk as ILinkStyle, bl as IListItemStyle, bm as IListStyle, bn as ILoginStyle, bo as ILoopStyle, bp as IMeta, bq as IMissingStyle, br as INoAccessStyle, bs as INotFoundStyle, bt as INotificationStyle, bu as INumberInputStyle, bv as IPaperStyle, bw as IPlatformAbout, a as IPluginStyleRegistryEntry, bx as IProfileStyle, by as IProgressRootStyle, bz as IProgressSectionStyle, bA as IProgressStyle, bB as IRadioStyle, bC as IRangeSliderStyle, bD as IRatingStyle, bE as IRefContainerStyle, bF as IRegisterStyle, bG as IResetPasswordStyle, bH as IRichTextEditorStyle, bI as IScrollAreaStyle, bJ as ISegmentedControlStyle, bK as ISelectStyle, bL as ISimpleGridStyle, bM as ISliderStyle, bN as ISpaceStyle, bO as ISpoilerStyle, bP as IStackStyle, I as IStyleRegistryEntry, bQ as IStyleWithSpacing, bR as ISwitchStyle, bS as ITabStyle, bT as ITabsStyle, bU as ITextInputStyle, bV as ITextStyle, bW as ITextareaStyle, bX as IThemeIconStyle, bY as ITimelineItemStyle, bZ as ITimelineStyle, b_ as ITitleStyle, b$ as ITwoFactorAuthStyle, c0 as ITypographyStyle, c1 as IUnknownStyle, c2 as IValidateStyle, c3 as IVersionStyle, c4 as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, c5 as TDataRevisionOperation, c6 as TDataRevisionSource, c7 as TEntryFormListFormFields, c8 as TFormConflictData, c9 as TFormInputRule, ca as TFormListCellValue, cb as TFormListChange, cc as TFormListColumnFormat, cd as TFormListControlType, ce as TFormListErrorReason, cf as TFormListLabels, cg as TFormListLayout, ch as TFormListOpenMode, ci as TFormListPresentation, cj as TFormListRestoreBlockerReason, ck as TFormListRestoreData, cl as TFormListSortDirection, cm as TFormListStyleName, cn as TFormListTextMatch, e as TFormSectionStyleName, co as TFormWriteRefusalReason, cp as TMantineAccordionChevronPosition, cq as TMantineAccordionDisableChevronRotation, cr as TMantineAccordionLoop, cs as TMantineAccordionMultiple, ct as TMantineAnchorUnderline, cu as TMantineBorder, cv as TMantineCardPadding, cw as TMantineCardShadow, cx as TMantineCols, cy as TMantineDividerVariant, cz as TMantineGap, cA as TMantineGridOffset, cB as TMantineGridOrder, cC as TMantineHeight, cD as TMantineIconSize, cE as TMantineImageFit, cF as TMantineLineClamp, cG as TMantineListCenter, cH as TMantineListStyleType, cI as TMantineListType, cJ as TMantineListWithPadding, cK as TMantinePaperShadow, cL as TMantineProgressTransition, cM as TMantineScrollAreaSize, cN as TMantineScrollAreaType, cO as TMantineTextAlign, cP as TMantineTextDecoration, cQ as TMantineTextFontStyle, cR as TMantineTextFontWeight, cS as TMantineTextInherit, cT as TMantineTextInputVariant, cU as TMantineTextSpan, cV as TMantineTextTransform, cW as TMantineTextTruncate, cX as TMantineTextVariant, cY as TMantineTextareaAutosize, cZ as TMantineTextareaResize, c_ as TMantineTextareaVariant, c$ as TMantineTimelineAlign, d0 as TMantineTitleLineClamp, d1 as TMantineTitleTextWrap, d2 as TMantineTranslatable, d3 as TMantineUseInputWrapper, d4 as TMantineWidth, d5 as TSharedBorder, d6 as TSharedCols, d7 as TSharedDimension, d8 as TSharedDividerLabelPosition, d9 as TSharedDividerVariant, da as TSharedLabelPosition, db as TStyle, b as TStylePlacement, d as TStylePlatform, f as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, g as _resetPluginStyleRegistry, h as extendStyleRegistry, i as getMergedStyleRegistry, j as getPluginStyleRegistry } from './styles.registry-
|
|
1
|
+
import { T as TStyleName, k as IContentField, l as IBaseApiResponse, m as IAboutItem, n as TMobileButtonFeedback, o as TMobileFieldVariant, p as TMobileSelectPresentation, q as IFormInvalidData, r as IFormListRestoreBlockedData, s as IFormStaleVersionData, t as IFormListFilesCell, u as TFormListMode, v as IFormListSort } from './styles.registry-B2cyNdo3.mjs';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, F as FORM_SECTION_STYLE_NAMES, w as IAccordionItemStyle, x as IAccordionStyle, y as IActionIconStyle, z as IAdminDataRecordCompareResponse, A as IAdminDataRecordHistoryResponse, C as IAdminDataRecordRestoreRequest, D as IAdminDataRecordRestoreResponse, E as IAdminDataRecordVersionResponse, G as IAlertStyle, H as IApiError, J as IApiMeta, K as IAspectRatioStyle, L as IAudioStyle, M as IAvatarStyle, N as IBackgroundImageStyle, O as IBadgeStyle, P as IBaseStyle, Q as IBlockquoteStyle, R as IBoxStyle, U as IButtonStyle, V as ICardSegmentStyle, W as ICardStyle, X as ICarouselStyle, Y as ICenterStyle, Z as ICheckboxStyle, $ as IChipStyle, a0 as ICodeStyle, a1 as IColorInputStyle, a2 as IColorPickerStyle, a3 as IComboboxStyle, a4 as IContainerStyle, a5 as IDataContainerStyle, a6 as IDataViewStyle, a7 as IDatePickerStyle, a8 as IDividerStyle, a9 as IEntryFormListStyle, aa as IEntryListStyle, ab as IEntryRecordDeleteStyle, ac as IEntryRecordFormStyle, ad as IEntryRecordStyle, ae as IEntryTableEntry, af as IEntryTableStyle, ag as IFieldsetStyle, ah as IFigureStyle, ai as IFileInputStyle, aj as IFlexStyle, ak as IFormDeleteData, al as IFormDeleteRequest, am as IFormDeleteResponse, an as IFormEffectiveContext, ao as IFormFileFieldOp, ap as IFormInputError, aq as IFormListActor, ar as IFormListBaseStyle, as as IFormListCapabilities, at as IFormListColumn, au as IFormListCompareData, av as IFormListCompareQuery, aw as IFormListCompareResponse, ax as IFormListControl, ay as IFormListControlOption, az as IFormListError, aA as IFormListFileChange, aB as IFormListFileValue, aC as IFormListHistoricalFile, aD as IFormListHistoryData, aE as IFormListHistoryQuery, aF as IFormListHistoryResponse, aG as IFormListInfo, aH as IFormListPagination, aI as IFormListQuickActionData, aJ as IFormListQuickActionInfo, aK as IFormListQuickActionRequest, aL as IFormListQuickActionResponse, aM as IFormListRecordAccess, aN as IFormListRestoreBlocker, aO as IFormListRestoreChange, aP as IFormListRestorePreview, aQ as IFormListRestoreRequest, aR as IFormListRestoreResponse, aS as IFormListRestoreResult, aT as IFormListRevision, aU as IFormListRow, aV as IFormListSelected, aW as IFormListServedState, aX as IFormListState, aY as IFormListStateField, aZ as IFormListStateResponse, a_ as IFormListValueChange, a$ as IFormListVersionData, b0 as IFormListVersionResponse, b1 as IFormLogStyle, b2 as IFormRecordStyle, b3 as IFormResultLegacyFields, b4 as IFormStyle, b5 as IFormSubmitData, b6 as IFormSubmitRequest, b7 as IFormSubmitResponse, b8 as IFormUpdateData, b9 as IFormUpdateRequest, ba as IFormUpdateResponse, bb as IGridColumnStyle, bc as IGridStyle, bd as IGroupStyle, be as IHighlightStyle, bf as IHtmlTagStyle, bg as IImageStyle, bh as IIndicatorStyle, bi as IInputStyle, bj as IKbdStyle, bk as ILinkStyle, bl as IListItemStyle, bm as IListStyle, bn as ILoginStyle, bo as ILoopStyle, bp as IMeta, bq as IMissingStyle, br as INoAccessStyle, bs as INotFoundStyle, bt as INotificationStyle, bu as INumberInputStyle, bv as IPaperStyle, bw as IPlatformAbout, a as IPluginStyleRegistryEntry, bx as IProfileStyle, by as IProgressRootStyle, bz as IProgressSectionStyle, bA as IProgressStyle, bB as IRadioStyle, bC as IRangeSliderStyle, bD as IRatingStyle, bE as IRefContainerStyle, bF as IRegisterStyle, bG as IResetPasswordStyle, bH as IRichTextEditorStyle, bI as IScrollAreaStyle, bJ as ISegmentedControlStyle, bK as ISelectStyle, bL as ISimpleGridStyle, bM as ISliderStyle, bN as ISpaceStyle, bO as ISpoilerStyle, bP as IStackStyle, I as IStyleRegistryEntry, bQ as IStyleWithSpacing, bR as ISwitchStyle, bS as ITabStyle, bT as ITabsStyle, bU as ITextInputStyle, bV as ITextStyle, bW as ITextareaStyle, bX as IThemeIconStyle, bY as ITimelineItemStyle, bZ as ITimelineStyle, b_ as ITitleStyle, b$ as ITwoFactorAuthStyle, c0 as ITypographyStyle, c1 as IUnknownStyle, c2 as IValidateStyle, c3 as IVersionStyle, c4 as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, c5 as TDataRevisionOperation, c6 as TDataRevisionSource, c7 as TEntryFormListFormFields, c8 as TFormConflictData, c9 as TFormInputRule, ca as TFormListCellValue, cb as TFormListChange, cc as TFormListColumnFormat, cd as TFormListControlType, ce as TFormListErrorReason, cf as TFormListLabels, cg as TFormListLayout, ch as TFormListOpenMode, ci as TFormListPresentation, cj as TFormListRestoreBlockerReason, ck as TFormListRestoreData, cl as TFormListSortDirection, cm as TFormListStyleName, cn as TFormListTextMatch, e as TFormSectionStyleName, co as TFormWriteRefusalReason, cp as TMantineAccordionChevronPosition, cq as TMantineAccordionDisableChevronRotation, cr as TMantineAccordionLoop, cs as TMantineAccordionMultiple, ct as TMantineAnchorUnderline, cu as TMantineBorder, cv as TMantineCardPadding, cw as TMantineCardShadow, cx as TMantineCols, cy as TMantineDividerVariant, cz as TMantineGap, cA as TMantineGridOffset, cB as TMantineGridOrder, cC as TMantineHeight, cD as TMantineIconSize, cE as TMantineImageFit, cF as TMantineLineClamp, cG as TMantineListCenter, cH as TMantineListStyleType, cI as TMantineListType, cJ as TMantineListWithPadding, cK as TMantinePaperShadow, cL as TMantineProgressTransition, cM as TMantineScrollAreaSize, cN as TMantineScrollAreaType, cO as TMantineTextAlign, cP as TMantineTextDecoration, cQ as TMantineTextFontStyle, cR as TMantineTextFontWeight, cS as TMantineTextInherit, cT as TMantineTextInputVariant, cU as TMantineTextSpan, cV as TMantineTextTransform, cW as TMantineTextTruncate, cX as TMantineTextVariant, cY as TMantineTextareaAutosize, cZ as TMantineTextareaResize, c_ as TMantineTextareaVariant, c$ as TMantineTimelineAlign, d0 as TMantineTitleLineClamp, d1 as TMantineTitleTextWrap, d2 as TMantineTranslatable, d3 as TMantineUseInputWrapper, d4 as TMantineWidth, d5 as TSharedBorder, d6 as TSharedCols, d7 as TSharedDimension, d8 as TSharedDividerLabelPosition, d9 as TSharedDividerVariant, da as TSharedLabelPosition, db as TStyle, b as TStylePlacement, d as TStylePlatform, f as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, g as _resetPluginStyleRegistry, h as extendStyleRegistry, i as getMergedStyleRegistry, j as getPluginStyleRegistry } from './styles.registry-B2cyNdo3.mjs';
|
|
3
3
|
export { v as TMantineAccordionVariant, y as TMantineActionIconLoading, d as TMantineAlign, z as TMantineAllowNextClicks, A as TMantineAllowStepClick, B as TMantineAspectRatio, C as TMantineAutoContrast, r as TMantineAvatarVariant, q as TMantineBadgeVariant, D as TMantineBlock, E as TMantineCenterInline, F as TMantineChecked, G as TMantineChipChecked, H as TMantineChipMultiple, s as TMantineChipVariant, I as TMantineClampBehavior, J as TMantineCodeBlock, T as TMantineColor, K as TMantineColorFormat, L as TMantineColorInputSwatches, M as TMantineColorPickerSwatches, N as TMantineColorPickerSwatchesPerRow, O as TMantineCompact, P as TMantineContainerFluid, e as TMantineDirection, Q as TMantineDisabled, n as TMantineFieldsetVariant, R as TMantineFileAccept, S as TMantineFileInputMultiple, U as TMantineFluid, V as TMantineFullWidth, i as TMantineGridGrow, g as TMantineGridOverflow, h as TMantineGridSpan, W as TMantineGroupGrow, X as TMantineGroupWrap, Y as TMantineGrow, Z as TMantineHighlight, t as TMantineIndicatorPosition, _ as TMantineInline, $ as TMantineIsLink, c as TMantineJustify, a0 as TMantineKbdSize, a1 as TMantineLoading, a2 as TMantineMultiple, a3 as TMantineNotificationWithCloseButton, a4 as TMantineNumberInputDecimalScale, a5 as TMantineOpenInNewTab, j as TMantineOrientation, a6 as TMantineProcessing, a as TMantineRadius, a7 as TMantineRangeSliderMarks, a8 as TMantineRatingCount, a9 as TMantineRatingFractions, aa as TMantineRatingReadonly, ab as TMantineReadonly, m as TMantineSize, ac as TMantineSpaceHorizontal, ad as TMantineSpacing, o as TMantineSpoilerMaxHeight, ae as TMantineSwatches, af as TMantineTabDisabled, w as TMantineTabsVariant, u as TMantineThemeIconVariant, x as TMantineTimelineLineVariant, l as TMantineTitleOrder, ag as TMantineUseMantineStyle, p as TMantineVariant, ah as TMantineWithCloseButton, ai as TMantineWithIcon, f as TMantineWrap, k as TSharedRadius, b as TSharedSize } from './common-qaDIAYS3.mjs';
|
|
4
4
|
import { ReactNode, ComponentType } from 'react';
|
|
5
5
|
import { THeroUiButtonVariant, THeroUiSize } from './theme/index.mjs';
|
|
6
6
|
export { COLOR_PALETTE, COLOR_SCALES, CONTAINER_SIZE_PX, FONT_SIZE_PX, FULL_RADIUS_PX, IHeroUiResolvedStyle, IMantineResolvedStyle, IReactNativeGridColumn, IReactNativeResolvedStyle, IReactNativeThemeScales, IResolvedVariant, ISharedStyleProps, ISpacingResolved, LINE_HEIGHT, RADIUS_PX, SPACING_PX, SPACING_TO_TAILWIND, TCanonicalColor, TCanonicalRadius, TCanonicalSpacing, THeroUiColor, TReactNativeDimension, TSemanticColor, TSemanticRadius, TSemanticSize, TSemanticSpacing, TSemanticState, TSemanticVariant, colorToHex, gridSpanToReactNativeColumn, mapAccordionVariantToHeroUiVariant, mapChipVariantToHeroUiVariant, mapDividerVariantToReactNative, mapMantineColorToHeroUiButtonVariant, mapMantineColorToHeroUiColor, mapMantineVariantToHeroUiButtonVariant, mapRadiusToMantine, mapRadiusToPx, mapSizeToHeroUi, mapSizeToMantine, mapSpacingToPx, parseDimensionToReactNative, parseDimensionToWeb, radiusToPx, resolveMantineVariant, resolveSharedStyle, resolveSharedStyleForMobile, resolveSharedStyleForWeb, resolveSharedStyleProps, sizeToFontPx, spacingToPx, toHeroUiSemanticProps, toMantineSemanticProps, toReactNativeSemanticStyle } from './theme/index.mjs';
|
|
7
7
|
export { TAnyStyleName, TPluginStyleImplMap, TStyleImplMap, getRegistryEntry, getRegistryEntryAny, getStylePlacement, getStylePlatforms, getStylePluginId, isKnownStyleName, isRegisteredStyleName, isStyleAllowedOnPage, isStylePlacementAllowed, isStyleSupportedOnPlatform, setToStylePlatform, stylePlatformToSet } from './registry/index.mjs';
|
|
8
8
|
export { sharedTailwindExtend, sharedTailwindPreset } from './theme/tailwind.mjs';
|
|
9
|
+
export { I as IInlineNode, h as hasInlineFormatting, p as parseInlineRich, s as stripHtmlToText } from './inlineFormat-Duu5VLMU.mjs';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Live-sync contract (task `2026-11-20-live-sync-and-edit-lock`, contracts C1 to C9).
|
|
@@ -34,8 +35,9 @@ declare const SYNC_MESSAGE_VERSION: 1;
|
|
|
34
35
|
* | `table:<id>` | A record of the data table changed |
|
|
35
36
|
* | `section:<id>` | A section was saved in the admin |
|
|
36
37
|
* | `asset:<id>` | An asset changed |
|
|
38
|
+
* | `res:<type>:<id>` | A plugin item of a registered resource type changed |
|
|
37
39
|
*/
|
|
38
|
-
type TSyncTag = 'acl' | 'navigation' | 'global_values' | `page:${number}` | `page_draft:${number}` | `page_lock:${number}` | `table:${number}` | `section:${number}` | `asset:${number}`;
|
|
40
|
+
type TSyncTag = 'acl' | 'navigation' | 'global_values' | `page:${number}` | `page_draft:${number}` | `page_lock:${number}` | `table:${number}` | `section:${number}` | `asset:${number}` | `res:${string}:${number}`;
|
|
39
41
|
/** Mirror of the backend tag pattern (C1). Anchored, so the whole tag must match. */
|
|
40
42
|
declare const SYNC_TAG_PATTERN: RegExp;
|
|
41
43
|
/** Data of one `changed` event (C1). */
|
|
@@ -49,10 +51,11 @@ interface ISyncChangeMessage {
|
|
|
49
51
|
* The `sync` block of every page payload, published and draft (C6).
|
|
50
52
|
*
|
|
51
53
|
* `depends_on` lists `page:<id>` (`page_draft:<id>` for a draft), `table:<id>`
|
|
52
|
-
* for every data table the page reads,
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
54
|
+
* for every data table the page reads, `res:<type>:<id>` for plugin items the
|
|
55
|
+
* page references or a style resolver depends on, and `global_values`.
|
|
56
|
+
* `valid_until` is the earliest moment (UTC, ISO 8601) the result can change
|
|
57
|
+
* because time passes, or `null`. The client refetches once at `valid_until`
|
|
58
|
+
* plus a random delay while the page is open.
|
|
56
59
|
*/
|
|
57
60
|
interface ISyncBlock {
|
|
58
61
|
depends_on: string[];
|
|
@@ -2225,78 +2228,6 @@ interface IAssetSource {
|
|
|
2225
2228
|
}
|
|
2226
2229
|
declare function resolveAssetSources<T extends IAssetSource>(sources: T[] | undefined, baseUrl: string): T[];
|
|
2227
2230
|
|
|
2228
|
-
/**
|
|
2229
|
-
* Cross-platform inline-formatting helpers for CMS content fields.
|
|
2230
|
-
*
|
|
2231
|
-
* ## Why
|
|
2232
|
-
*
|
|
2233
|
-
* CMS authors can apply lightweight inline formatting (Ctrl+B bold, Ctrl+I
|
|
2234
|
-
* italic, Ctrl+U underline, links) to content fields whose field type allows it
|
|
2235
|
-
* (`markdown-inline`). The editor stores that as a tiny HTML subset
|
|
2236
|
-
* (`<strong>`/`<b>`, `<em>`/`<i>`, `<u>`, `<a>`), often wrapped in block tags
|
|
2237
|
-
* (`<p>`, `<div>`) that markdown processing leaves behind.
|
|
2238
|
-
*
|
|
2239
|
-
* Web can render that subset as real inline HTML, but React Native `<Text>`
|
|
2240
|
-
* cannot render HTML at all — so historically mobile (and several web leaf slots)
|
|
2241
|
-
* stripped everything to plain text and the bold was lost. To carry the same
|
|
2242
|
-
* formatting to BOTH platforms we parse the subset once, here, into a flat list
|
|
2243
|
-
* of {@link IInlineNode} runs. Each platform then renders the runs natively:
|
|
2244
|
-
*
|
|
2245
|
-
* - web → a fragment of `<strong>/<em>/<u>/<a>` (see frontend `InlineRich`)
|
|
2246
|
-
* - mobile → nested `<Text>` with `fontWeight`/`fontStyle`/`textDecorationLine`
|
|
2247
|
-
* (see mobile `InlineText`)
|
|
2248
|
-
*
|
|
2249
|
-
* ## Scope (deliberately tiny + safe)
|
|
2250
|
-
*
|
|
2251
|
-
* Only the inline subset above survives. **Block** tags (`<p>`, `<div>`,
|
|
2252
|
-
* `<h1>`…`<h6>`, `<ul>`/`<ol>`/`<li>`, `<blockquote>`, `<br>`) collapse to a
|
|
2253
|
-
* single space — an inline text slot (a label, a paragraph run) cannot lay out
|
|
2254
|
-
* block structure, and flattening matches the old strip behaviour. Any other tag
|
|
2255
|
-
* is dropped while keeping its inner text. HTML entities are decoded.
|
|
2256
|
-
*
|
|
2257
|
-
* ## JSON-aware (HARD)
|
|
2258
|
-
*
|
|
2259
|
-
* Some content fields legitimately hold JSON (config blobs, table/segmented
|
|
2260
|
-
* data). Those are read via `readField`, not these helpers, but as a safety net
|
|
2261
|
-
* a value that parses as JSON is returned untouched so structured payloads are
|
|
2262
|
-
* never mangled.
|
|
2263
|
-
*
|
|
2264
|
-
* This module is the canonical home the style docs refer to; the web
|
|
2265
|
-
* `stripHtmlTags` and mobile `stripHtmlToText` local copies mirror
|
|
2266
|
-
* {@link stripHtmlToText} and are folded into this once consumers adopt it.
|
|
2267
|
-
*/
|
|
2268
|
-
/** A single run of text with the inline formatting that applies to it. */
|
|
2269
|
-
interface IInlineNode {
|
|
2270
|
-
text: string;
|
|
2271
|
-
bold?: boolean;
|
|
2272
|
-
italic?: boolean;
|
|
2273
|
-
underline?: boolean;
|
|
2274
|
-
/** Present when the run sits inside an `<a href>`; the resolved target. */
|
|
2275
|
-
href?: string;
|
|
2276
|
-
}
|
|
2277
|
-
/**
|
|
2278
|
-
* Parse a CMS content string into a flat list of inline-formatted runs,
|
|
2279
|
-
* preserving only the safe inline subset. Block tags + `<br>` collapse to
|
|
2280
|
-
* spaces; entities are decoded; a JSON payload is returned as one untouched run.
|
|
2281
|
-
* Adjacent runs that share formatting are merged and outer whitespace trimmed.
|
|
2282
|
-
*/
|
|
2283
|
-
declare function parseInlineRich(value: string | null | undefined): IInlineNode[];
|
|
2284
|
-
/**
|
|
2285
|
-
* Does this value carry any of the supported inline tags? Used by renderers to
|
|
2286
|
-
* fast-path plain strings (and to skip JSON). Cheap: no full parse.
|
|
2287
|
-
*/
|
|
2288
|
-
declare function hasInlineFormatting(value: string | null | undefined): boolean;
|
|
2289
|
-
/**
|
|
2290
|
-
* Strip a content string to readable plain text: drop every tag, decode common
|
|
2291
|
-
* entities, collapse whitespace. Block tags + `<br>` become spaces so words do
|
|
2292
|
-
* not run together. JSON payloads and tag-free strings are returned untouched
|
|
2293
|
-
* (apart from entity decoding), so it is safe to call on any field.
|
|
2294
|
-
*
|
|
2295
|
-
* This is the canonical cross-platform helper (web `stripHtmlTags` / mobile
|
|
2296
|
-
* `stripHtmlToText` mirror it).
|
|
2297
|
-
*/
|
|
2298
|
-
declare function stripHtmlToText(value: string | null | undefined): string;
|
|
2299
|
-
|
|
2300
2231
|
/**
|
|
2301
2232
|
* Cross-platform helpers for user-owned option catalogs in CMS styles.
|
|
2302
2233
|
*
|
|
@@ -3170,8 +3101,9 @@ declare function parseSyncMessageJson(raw: string): ISyncChangeMessage | null;
|
|
|
3170
3101
|
* True when a page payload's `sync.depends_on` names any of the message's tags (C6).
|
|
3171
3102
|
*
|
|
3172
3103
|
* Only tags that a page payload can list match here: `page:<id>`,
|
|
3173
|
-
* `page_draft:<id>`, `table:<id>` and `global_values`. The
|
|
3174
|
-
* page dependencies and are handled by the client on their
|
|
3104
|
+
* `page_draft:<id>`, `table:<id>`, `res:<type>:<id>` and `global_values`. The
|
|
3105
|
+
* other tags are not page dependencies and are handled by the client on their
|
|
3106
|
+
* own:
|
|
3175
3107
|
*
|
|
3176
3108
|
* - `acl` and `navigation` affect every page the caller may see, so the client
|
|
3177
3109
|
* invalidates all page queries and the navigation (it does not ask each page).
|
|
@@ -3270,4 +3202,4 @@ declare function transformPageData(apiPage: IRawPage): IPageItem;
|
|
|
3270
3202
|
*/
|
|
3271
3203
|
declare function transformPagesData(pages: IRawPage[] | null | undefined): IPageItem[];
|
|
3272
3204
|
|
|
3273
|
-
export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, type BackupRetentionPolicy, type BackupSchedulePolicy, type BundledPluginRef, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, CMS_APP_PRIMARY_ROLES, CMS_APP_ROLES, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, DEFAULT_MOBILE_ICON, DEFAULT_RATE_LIMIT_MESSAGE, DEFAULT_WEB_FOOTER_PRESET, DEFAULT_WEB_HEADER_PRESET, type DatabaseMigrationMetadata, ENDPOINTS, FIELDS_MAP_STYLE_CONFIG, FORM_LIST_MAX_PAGE, FORM_LIST_MAX_ROUTE_PARAMS, FORM_LIST_MAX_ROUTE_VALUE_LENGTH, FORM_LIST_MAX_SORTS, FORM_LIST_MAX_VALUE_BYTES, FORM_LIST_MODES, FORM_LIST_SEARCH_MAX_LENGTH, FORM_LIST_SEARCH_MIN_LENGTH, FORM_RECORD_PREFILL_SKIP_FIELDS, type FrontendRelease, HEADER_ACL_STAMP, HEADER_CLIENT_TYPE, HEADER_PAGE_VERSION, HEADER_PAGE_VIEW, IAboutItem, type IAssetSource, type IAuthEventsBootstrap, IBaseApiResponse, type IBasePageInfo, type IBasePageSection, type IBranchNavContext, type IBranchNavSegment, type IBreadcrumbEntry, type IClassPattern, type IClassRemap, type ICmsApp, type ICmsAppAssignedPage, type ICmsAppDetail, type ICmsAppPage, type ICmsAppSummary, type ICompatibilityError, type IConditionContext, IContentField, type IEvaluatedCondition, type IFieldsMapStyleConfig, type IForgotPasswordRequest, type IForgotPasswordResponse, IFormInvalidData, type IFormListCacheScope, type IFormListFailure, IFormListFilesCell, IFormListRestoreBlockedData, IFormListSort, type IFormListUrlError, type IFormListUrlRules, type IFormListUrlState, type IFormRecordPrefill, type IFormRecordPrefillChild, type IFormRecordPrefillSection, type IFormRecordPrefillTranslatedValue, IFormStaleVersionData, type IFrontendUpdatePreflight, type IFrontendUpdatePreflightResponse, type IFrontendUpdateReleases, type IFrontendUpdateReleasesResponse, type IFrontendUpdateRequest, type IFrontendUpdateRequestResponse, type IGetPageResponse, type IGetPagesResponse, type IHeaderLayerSplit, type IInlineNode, type IJwtPayload, type ILanguage, type ILanguageItem, type ILanguagePreference, type ILanguagePreferenceUpdateResponse, type ILanguagesResponse, type ILoginRequest, type ILoginSuccessData, type ILoginSuccessResponse, type ILogoutSuccessResponse, type IMaintenanceSetRequest, type IMenuSearchHit, type IMobileAdapterBaseProps, type IMobileButtonProps, type IMobileCardProps, type IMobileCheckboxProps, type IMobileContainerProps, type IMobileIconEntry, type IMobileInputProps, type IMobileModalProps, type IMobilePreviewExchangeData, type IMobilePreviewExchangeRequest, type IMobilePreviewExchangeResponse, type IMobilePreviewSessionData, type IMobilePreviewSessionRequest, type IMobilePreviewSessionResponse, type IMobilePreviewUpdatePreflight, type IMobilePreviewUpdatePreflightResponse, type IMobilePreviewUpdateReleases, type IMobilePreviewUpdateReleasesResponse, type IMobilePreviewUpdateRequest, type IMobilePreviewUpdateRequestResponse, type IMobileSelectOption, type IMobileSelectProps, type IMobileSwitchProps, type IMobileTextProps, type IMobileTextareaProps, type IMobileUiAdapters, type INavigationBranding, type INavigationBundle, type INavigationBundleImportHints, type INavigationBundleItem, type INavigationBundleItemTranslation, type INavigationBundleMenu, type INavigationMenu, type INavigationMenuItem, type INavigationPayload, type INavigationResolvedPageRef, type INavigationSearchConfig, type INavigationStartupConfig, type IOptionCatalogEntry, type IOptionLabelMap, type IOptionStyleConfig, type IPageAccessTypeInfo, type IPageContent, type IPageDraftVersioned, type IPageField, type IPageFieldTranslation, type IPageFieldsData, type IPageItem, type IPageLockHolder, type IPageLockStatus, type IPagePayload, type IPageRoute, type IPageSectionWithFields, type IPageSectionsData, type IPagesResolveParams, type IPreviewNavigateCommand, type IPreviewNavigatedMessage, type IPreviewPreferences, type IPreviewPreferencesChangedMessage, type IPreviewReadyMessage, type IPreviewSetPreferencesCommand, type IRefreshRequest, type IRefreshSuccessResponse, type IResetPasswordRequest, type IResetPasswordResponse, type IResolvePageResponse, type IResolvedOption, type ISpacingValue, type IStalePageVersionData, type ISyncBlock, type ISyncChangeMessage, type ISystemAdvisories, type ISystemAdvisoriesResponse, type ISystemAdvisory, type ISystemAdvisoryAffected, type ISystemHealth, type ISystemHealthComponent, type ISystemHealthResponse, type ISystemInstalledPlugin, type ISystemMaintenance, type ISystemMaintenanceResponse, type ISystemVersion, type ISystemVersionResponse, type ITwoFactorRequiredData, type ITwoFactorRequiredResponse, type ITwoFactorVerifyRequest, type ITwoFactorVerifySuccessResponse, type IUpdatePreflight, type IUpdatePreflightCheck, type IUpdatePreflightOption, type IUpdatePreflightResponse, type IUpdateRelease, type IUpdateReleases, type IUpdateReleasesResponse, type IUpdateRequest, type IUpdateRequestResponse, type IUpdateStatus, type IUpdateStatusManager, type IUpdateStatusResponse, type IUpdateStep, type IUserData, type IUserDataResponse, type IWebFooterPresetOption, type IWebHeaderPresetOption, type ImageRef, type InstalledPlugin, type InstanceImages, type InstanceLock, type InstanceManifest, type InstanceMode, type InstanceResourceConfig, type InstanceRouting, type InstanceStatus, type InstanceVersions, type InventoryInstanceEntry, LANGUAGE_INDEPENDENT_ID, LANGUAGE_INDEPENDENT_LOCALE, LITERAL_CLASSES, LOCK_IDLE_ENDED_ERROR, type LockPluginEntry, type LockServiceEntry, MOBILE_ICON_NAMES, MOBILE_ICON_SET, MOBILE_PREVIEW_ENDPOINTS, type MobilePreviewRelease, NAVIGATION_BRANDING_LOGO_HEIGHTS, NAVIGATION_BUNDLE_FORMAT, NAVIGATION_BUNDLE_VERSION, NAVIGATION_HEADER_LAYER_TOP, OPTION_STYLE_CONFIGS, PAGE_LOCKED_ERROR, PAGE_VERSION_REQUIRED_ERROR, PERMISSIONS, PREVIEW_BRIDGE_MESSAGE, PREVIEW_PARENT_ORIGIN_PARAM, PREVIEW_SHELL_PARAM, type PluginRelease, type PreflightCheck, type PreflightOption, type PreflightStatus, RELEASE_CHANNELS, type RegistryIndex, type RegistryReleaseRef, type ReleaseChannel, type RuntimeServicePolicy, type RuntimeServiceRange, SIZE_VALUES, SPACING_VALUES, STALE_PAGE_VERSION_ERROR, SYNC_CHANGED_MAX_DELAY_MS, SYNC_EVENT_NAME, SYNC_MESSAGE_VERSION, SYNC_TAG_PATTERN, SYNC_VALID_UNTIL_MAX_DELAY_MS, SYSTEM_ENDPOINTS, type SchedulerRelease, type SecurityAdvisory, type ServerInventory, type ServiceBackendCompatibility, type SignatureBlock, type SupportBundleMeta, type TCalcedValues, type TClassDecision, type TClientType, type TCmsAppRole, TFormListMode, type TFormListUrlChange, type TFormListUrlErrorReason, type TFormListUrlParse, type TFormRecordPrefillFieldValue, type TFormRecordPrefillFileValue, THeroUiButtonVariant, THeroUiSize, TMobileButtonFeedback, TMobileFieldVariant, type TMobilePagePresentation, TMobileSelectPresentation, type TNavigationBrandingSize, type TNavigationBrandingVariant, type TNavigationBundleExportMode, type TNavigationChildrenNavMode, type TNavigationHeaderLayer, type TNavigationMenuItemType, type TNavigationMenuKey, type TNavigationMobileStartSource, type TNavigationSearchMode, type TNavigationStartMode, type TOptionStyleName, type TPermission, type TPlatform, type TPreviewBridgeMessage, type TPreviewBridgeMessageType, type TPreviewColorScheme, type TPreviewFrameSource, TStyleName, type TSyncRefetchKind, type TSyncTag, type TSystemAdvisorySeverity, type TSystemComponentStatus, type TSystemDeployment, type TSystemHealthOverall, type TUpdateCheckSeverity, type TUpdateKind, type TUpdateOperationStatus, type TUpdatePreflightStatus, type TWebFooterPreset, type TWebHeaderPreset, type TrustLevel, type TrustedKey, type TrustedKeysFile, type UpdatePreflightResult, WEB_FOOTER_PRESET_OPTIONS, WEB_FOOTER_PRESET_VALUES, WEB_HEADER_PRESET_OPTIONS, WEB_HEADER_PRESET_VALUES, type WorkerRelease, applyFormListUrlChange, arePreviewPreferencesEqual, asFilesCell, asRecordVersion, buildConditionContext, buildPagesResolvePath, buildPagesResolveQuery, buildPagesResolveUrl, buildPublicPathFromRoute, clampMenuItemsAtDepth, classifyClass, classifyClassString, collectPageIdsFromMenuItems, emptyFormListUrlState, encodeFormListQuery, evaluateCondition, expandedIdsForActiveTrail, findMenuItemByPageId, findNearestBottomTabMenuItemForPage, findPageRefInNavigationPayload, findRemap, flattenFooterItems, flattenFormRecordPrefillValues, flattenMenuItems, flattenNavigationMenuItems, footerColumnItems, footerGroupLinks, footerStandaloneItems, formListCacheKey, formListQueryString, formListRouteQuery, formatRateLimitMessage, getFormInvalidData, getFormListFailure, getFormListRestoreBlocked, getFormStaleVersion, getNavigationItemAriaLabel, getNavigationItemHref, getNavigationItemKeyword, getNavigationItemLabel, getNavigationItemMobileHref, getRateLimitRetryAfter, hasInlineFormatting, isBottomTabMenuItemActive, isDoubleWebHeaderPreset, isFormListParam, isLanguageIndependent, isMenuItemActiveOnMobile, isMenuItemActiveOnWeb, isMobileIconName, isNavigationBundleVersionSupported, isOnAnyMobileMenu, isOnAnyMobileMenuFromPayload, isPageInMenuTree, isPageInResolvedMenus, isPageOnAnyMenu, isPageOnMobileMenu, isPageOnWebMenu, isPreviewBridgeMessage, isWebFooterPreset, isWebHeaderPreset, matchesMobilePath, matchesWebPath, mergeHeaderLayers, nextSortOnHeaderClick, normalizePagesResolvePath, pageDependsOn, pageFromPayload, pageUrlToMobileRoute, parseFieldsMapCatalog, parseFieldsMapLabels, parseFormListQuery, parseFormRecordPrefill, parseInlineRich, parseOptionCatalog, parseOptionCodes, parseOptionLabels, parseSpacing, parseSyncMessage, parseSyncMessageJson, pickFormListQuery, previewKeywordFromPath, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, resolveBranchNavGroup, resolveBrandingPresentation, resolveFieldsMapLabel, resolveHolderRedirectPath, resolveMenuMaxDepth, resolveMobileIcon, resolveMobilePagePresentation, resolveMobileSegmentGroup, resolveMobileStartupKeyword, resolveMobileStartupRoute, resolveOptionCodesLabels, resolveOptionLabel, resolveOptionValueLabels, resolveOptions, resolveWebBranchNavContext, resolveWebBranchNavGroup, resolveWebFooterPreset, resolveWebHeaderPreset, resolveWebStartupPath, searchMenuPagesInPayload, serializeFieldsMapCatalog, serializeFieldsMapLabels, spacingToClasses, splitHeaderLayers, stripHtmlToText, syncRefetchDelayMs, transformPageData, transformPagesData };
|
|
3205
|
+
export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, type BackupRetentionPolicy, type BackupSchedulePolicy, type BundledPluginRef, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, CMS_APP_PRIMARY_ROLES, CMS_APP_ROLES, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, DEFAULT_MOBILE_ICON, DEFAULT_RATE_LIMIT_MESSAGE, DEFAULT_WEB_FOOTER_PRESET, DEFAULT_WEB_HEADER_PRESET, type DatabaseMigrationMetadata, ENDPOINTS, FIELDS_MAP_STYLE_CONFIG, FORM_LIST_MAX_PAGE, FORM_LIST_MAX_ROUTE_PARAMS, FORM_LIST_MAX_ROUTE_VALUE_LENGTH, FORM_LIST_MAX_SORTS, FORM_LIST_MAX_VALUE_BYTES, FORM_LIST_MODES, FORM_LIST_SEARCH_MAX_LENGTH, FORM_LIST_SEARCH_MIN_LENGTH, FORM_RECORD_PREFILL_SKIP_FIELDS, type FrontendRelease, HEADER_ACL_STAMP, HEADER_CLIENT_TYPE, HEADER_PAGE_VERSION, HEADER_PAGE_VIEW, IAboutItem, type IAssetSource, type IAuthEventsBootstrap, IBaseApiResponse, type IBasePageInfo, type IBasePageSection, type IBranchNavContext, type IBranchNavSegment, type IBreadcrumbEntry, type IClassPattern, type IClassRemap, type ICmsApp, type ICmsAppAssignedPage, type ICmsAppDetail, type ICmsAppPage, type ICmsAppSummary, type ICompatibilityError, type IConditionContext, IContentField, type IEvaluatedCondition, type IFieldsMapStyleConfig, type IForgotPasswordRequest, type IForgotPasswordResponse, IFormInvalidData, type IFormListCacheScope, type IFormListFailure, IFormListFilesCell, IFormListRestoreBlockedData, IFormListSort, type IFormListUrlError, type IFormListUrlRules, type IFormListUrlState, type IFormRecordPrefill, type IFormRecordPrefillChild, type IFormRecordPrefillSection, type IFormRecordPrefillTranslatedValue, IFormStaleVersionData, type IFrontendUpdatePreflight, type IFrontendUpdatePreflightResponse, type IFrontendUpdateReleases, type IFrontendUpdateReleasesResponse, type IFrontendUpdateRequest, type IFrontendUpdateRequestResponse, type IGetPageResponse, type IGetPagesResponse, type IHeaderLayerSplit, type IJwtPayload, type ILanguage, type ILanguageItem, type ILanguagePreference, type ILanguagePreferenceUpdateResponse, type ILanguagesResponse, type ILoginRequest, type ILoginSuccessData, type ILoginSuccessResponse, type ILogoutSuccessResponse, type IMaintenanceSetRequest, type IMenuSearchHit, type IMobileAdapterBaseProps, type IMobileButtonProps, type IMobileCardProps, type IMobileCheckboxProps, type IMobileContainerProps, type IMobileIconEntry, type IMobileInputProps, type IMobileModalProps, type IMobilePreviewExchangeData, type IMobilePreviewExchangeRequest, type IMobilePreviewExchangeResponse, type IMobilePreviewSessionData, type IMobilePreviewSessionRequest, type IMobilePreviewSessionResponse, type IMobilePreviewUpdatePreflight, type IMobilePreviewUpdatePreflightResponse, type IMobilePreviewUpdateReleases, type IMobilePreviewUpdateReleasesResponse, type IMobilePreviewUpdateRequest, type IMobilePreviewUpdateRequestResponse, type IMobileSelectOption, type IMobileSelectProps, type IMobileSwitchProps, type IMobileTextProps, type IMobileTextareaProps, type IMobileUiAdapters, type INavigationBranding, type INavigationBundle, type INavigationBundleImportHints, type INavigationBundleItem, type INavigationBundleItemTranslation, type INavigationBundleMenu, type INavigationMenu, type INavigationMenuItem, type INavigationPayload, type INavigationResolvedPageRef, type INavigationSearchConfig, type INavigationStartupConfig, type IOptionCatalogEntry, type IOptionLabelMap, type IOptionStyleConfig, type IPageAccessTypeInfo, type IPageContent, type IPageDraftVersioned, type IPageField, type IPageFieldTranslation, type IPageFieldsData, type IPageItem, type IPageLockHolder, type IPageLockStatus, type IPagePayload, type IPageRoute, type IPageSectionWithFields, type IPageSectionsData, type IPagesResolveParams, type IPreviewNavigateCommand, type IPreviewNavigatedMessage, type IPreviewPreferences, type IPreviewPreferencesChangedMessage, type IPreviewReadyMessage, type IPreviewSetPreferencesCommand, type IRefreshRequest, type IRefreshSuccessResponse, type IResetPasswordRequest, type IResetPasswordResponse, type IResolvePageResponse, type IResolvedOption, type ISpacingValue, type IStalePageVersionData, type ISyncBlock, type ISyncChangeMessage, type ISystemAdvisories, type ISystemAdvisoriesResponse, type ISystemAdvisory, type ISystemAdvisoryAffected, type ISystemHealth, type ISystemHealthComponent, type ISystemHealthResponse, type ISystemInstalledPlugin, type ISystemMaintenance, type ISystemMaintenanceResponse, type ISystemVersion, type ISystemVersionResponse, type ITwoFactorRequiredData, type ITwoFactorRequiredResponse, type ITwoFactorVerifyRequest, type ITwoFactorVerifySuccessResponse, type IUpdatePreflight, type IUpdatePreflightCheck, type IUpdatePreflightOption, type IUpdatePreflightResponse, type IUpdateRelease, type IUpdateReleases, type IUpdateReleasesResponse, type IUpdateRequest, type IUpdateRequestResponse, type IUpdateStatus, type IUpdateStatusManager, type IUpdateStatusResponse, type IUpdateStep, type IUserData, type IUserDataResponse, type IWebFooterPresetOption, type IWebHeaderPresetOption, type ImageRef, type InstalledPlugin, type InstanceImages, type InstanceLock, type InstanceManifest, type InstanceMode, type InstanceResourceConfig, type InstanceRouting, type InstanceStatus, type InstanceVersions, type InventoryInstanceEntry, LANGUAGE_INDEPENDENT_ID, LANGUAGE_INDEPENDENT_LOCALE, LITERAL_CLASSES, LOCK_IDLE_ENDED_ERROR, type LockPluginEntry, type LockServiceEntry, MOBILE_ICON_NAMES, MOBILE_ICON_SET, MOBILE_PREVIEW_ENDPOINTS, type MobilePreviewRelease, NAVIGATION_BRANDING_LOGO_HEIGHTS, NAVIGATION_BUNDLE_FORMAT, NAVIGATION_BUNDLE_VERSION, NAVIGATION_HEADER_LAYER_TOP, OPTION_STYLE_CONFIGS, PAGE_LOCKED_ERROR, PAGE_VERSION_REQUIRED_ERROR, PERMISSIONS, PREVIEW_BRIDGE_MESSAGE, PREVIEW_PARENT_ORIGIN_PARAM, PREVIEW_SHELL_PARAM, type PluginRelease, type PreflightCheck, type PreflightOption, type PreflightStatus, RELEASE_CHANNELS, type RegistryIndex, type RegistryReleaseRef, type ReleaseChannel, type RuntimeServicePolicy, type RuntimeServiceRange, SIZE_VALUES, SPACING_VALUES, STALE_PAGE_VERSION_ERROR, SYNC_CHANGED_MAX_DELAY_MS, SYNC_EVENT_NAME, SYNC_MESSAGE_VERSION, SYNC_TAG_PATTERN, SYNC_VALID_UNTIL_MAX_DELAY_MS, SYSTEM_ENDPOINTS, type SchedulerRelease, type SecurityAdvisory, type ServerInventory, type ServiceBackendCompatibility, type SignatureBlock, type SupportBundleMeta, type TCalcedValues, type TClassDecision, type TClientType, type TCmsAppRole, TFormListMode, type TFormListUrlChange, type TFormListUrlErrorReason, type TFormListUrlParse, type TFormRecordPrefillFieldValue, type TFormRecordPrefillFileValue, THeroUiButtonVariant, THeroUiSize, TMobileButtonFeedback, TMobileFieldVariant, type TMobilePagePresentation, TMobileSelectPresentation, type TNavigationBrandingSize, type TNavigationBrandingVariant, type TNavigationBundleExportMode, type TNavigationChildrenNavMode, type TNavigationHeaderLayer, type TNavigationMenuItemType, type TNavigationMenuKey, type TNavigationMobileStartSource, type TNavigationSearchMode, type TNavigationStartMode, type TOptionStyleName, type TPermission, type TPlatform, type TPreviewBridgeMessage, type TPreviewBridgeMessageType, type TPreviewColorScheme, type TPreviewFrameSource, TStyleName, type TSyncRefetchKind, type TSyncTag, type TSystemAdvisorySeverity, type TSystemComponentStatus, type TSystemDeployment, type TSystemHealthOverall, type TUpdateCheckSeverity, type TUpdateKind, type TUpdateOperationStatus, type TUpdatePreflightStatus, type TWebFooterPreset, type TWebHeaderPreset, type TrustLevel, type TrustedKey, type TrustedKeysFile, type UpdatePreflightResult, WEB_FOOTER_PRESET_OPTIONS, WEB_FOOTER_PRESET_VALUES, WEB_HEADER_PRESET_OPTIONS, WEB_HEADER_PRESET_VALUES, type WorkerRelease, applyFormListUrlChange, arePreviewPreferencesEqual, asFilesCell, asRecordVersion, buildConditionContext, buildPagesResolvePath, buildPagesResolveQuery, buildPagesResolveUrl, buildPublicPathFromRoute, clampMenuItemsAtDepth, classifyClass, classifyClassString, collectPageIdsFromMenuItems, emptyFormListUrlState, encodeFormListQuery, evaluateCondition, expandedIdsForActiveTrail, findMenuItemByPageId, findNearestBottomTabMenuItemForPage, findPageRefInNavigationPayload, findRemap, flattenFooterItems, flattenFormRecordPrefillValues, flattenMenuItems, flattenNavigationMenuItems, footerColumnItems, footerGroupLinks, footerStandaloneItems, formListCacheKey, formListQueryString, formListRouteQuery, formatRateLimitMessage, getFormInvalidData, getFormListFailure, getFormListRestoreBlocked, getFormStaleVersion, getNavigationItemAriaLabel, getNavigationItemHref, getNavigationItemKeyword, getNavigationItemLabel, getNavigationItemMobileHref, getRateLimitRetryAfter, isBottomTabMenuItemActive, isDoubleWebHeaderPreset, isFormListParam, isLanguageIndependent, isMenuItemActiveOnMobile, isMenuItemActiveOnWeb, isMobileIconName, isNavigationBundleVersionSupported, isOnAnyMobileMenu, isOnAnyMobileMenuFromPayload, isPageInMenuTree, isPageInResolvedMenus, isPageOnAnyMenu, isPageOnMobileMenu, isPageOnWebMenu, isPreviewBridgeMessage, isWebFooterPreset, isWebHeaderPreset, matchesMobilePath, matchesWebPath, mergeHeaderLayers, nextSortOnHeaderClick, normalizePagesResolvePath, pageDependsOn, pageFromPayload, pageUrlToMobileRoute, parseFieldsMapCatalog, parseFieldsMapLabels, parseFormListQuery, parseFormRecordPrefill, parseOptionCatalog, parseOptionCodes, parseOptionLabels, parseSpacing, parseSyncMessage, parseSyncMessageJson, pickFormListQuery, previewKeywordFromPath, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, resolveBranchNavGroup, resolveBrandingPresentation, resolveFieldsMapLabel, resolveHolderRedirectPath, resolveMenuMaxDepth, resolveMobileIcon, resolveMobilePagePresentation, resolveMobileSegmentGroup, resolveMobileStartupKeyword, resolveMobileStartupRoute, resolveOptionCodesLabels, resolveOptionLabel, resolveOptionValueLabels, resolveOptions, resolveWebBranchNavContext, resolveWebBranchNavGroup, resolveWebFooterPreset, resolveWebHeaderPreset, resolveWebStartupPath, searchMenuPagesInPayload, serializeFieldsMapCatalog, serializeFieldsMapLabels, spacingToClasses, splitHeaderLayers, syncRefetchDelayMs, transformPageData, transformPagesData };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { T as TStyleName, k as IContentField, l as IBaseApiResponse, m as IAboutItem, n as TMobileButtonFeedback, o as TMobileFieldVariant, p as TMobileSelectPresentation, q as IFormInvalidData, r as IFormListRestoreBlockedData, s as IFormStaleVersionData, t as IFormListFilesCell, u as TFormListMode, v as IFormListSort } from './styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, F as FORM_SECTION_STYLE_NAMES, w as IAccordionItemStyle, x as IAccordionStyle, y as IActionIconStyle, z as IAdminDataRecordCompareResponse, A as IAdminDataRecordHistoryResponse, C as IAdminDataRecordRestoreRequest, D as IAdminDataRecordRestoreResponse, E as IAdminDataRecordVersionResponse, G as IAlertStyle, H as IApiError, J as IApiMeta, K as IAspectRatioStyle, L as IAudioStyle, M as IAvatarStyle, N as IBackgroundImageStyle, O as IBadgeStyle, P as IBaseStyle, Q as IBlockquoteStyle, R as IBoxStyle, U as IButtonStyle, V as ICardSegmentStyle, W as ICardStyle, X as ICarouselStyle, Y as ICenterStyle, Z as ICheckboxStyle, $ as IChipStyle, a0 as ICodeStyle, a1 as IColorInputStyle, a2 as IColorPickerStyle, a3 as IComboboxStyle, a4 as IContainerStyle, a5 as IDataContainerStyle, a6 as IDataViewStyle, a7 as IDatePickerStyle, a8 as IDividerStyle, a9 as IEntryFormListStyle, aa as IEntryListStyle, ab as IEntryRecordDeleteStyle, ac as IEntryRecordFormStyle, ad as IEntryRecordStyle, ae as IEntryTableEntry, af as IEntryTableStyle, ag as IFieldsetStyle, ah as IFigureStyle, ai as IFileInputStyle, aj as IFlexStyle, ak as IFormDeleteData, al as IFormDeleteRequest, am as IFormDeleteResponse, an as IFormEffectiveContext, ao as IFormFileFieldOp, ap as IFormInputError, aq as IFormListActor, ar as IFormListBaseStyle, as as IFormListCapabilities, at as IFormListColumn, au as IFormListCompareData, av as IFormListCompareQuery, aw as IFormListCompareResponse, ax as IFormListControl, ay as IFormListControlOption, az as IFormListError, aA as IFormListFileChange, aB as IFormListFileValue, aC as IFormListHistoricalFile, aD as IFormListHistoryData, aE as IFormListHistoryQuery, aF as IFormListHistoryResponse, aG as IFormListInfo, aH as IFormListPagination, aI as IFormListQuickActionData, aJ as IFormListQuickActionInfo, aK as IFormListQuickActionRequest, aL as IFormListQuickActionResponse, aM as IFormListRecordAccess, aN as IFormListRestoreBlocker, aO as IFormListRestoreChange, aP as IFormListRestorePreview, aQ as IFormListRestoreRequest, aR as IFormListRestoreResponse, aS as IFormListRestoreResult, aT as IFormListRevision, aU as IFormListRow, aV as IFormListSelected, aW as IFormListServedState, aX as IFormListState, aY as IFormListStateField, aZ as IFormListStateResponse, a_ as IFormListValueChange, a$ as IFormListVersionData, b0 as IFormListVersionResponse, b1 as IFormLogStyle, b2 as IFormRecordStyle, b3 as IFormResultLegacyFields, b4 as IFormStyle, b5 as IFormSubmitData, b6 as IFormSubmitRequest, b7 as IFormSubmitResponse, b8 as IFormUpdateData, b9 as IFormUpdateRequest, ba as IFormUpdateResponse, bb as IGridColumnStyle, bc as IGridStyle, bd as IGroupStyle, be as IHighlightStyle, bf as IHtmlTagStyle, bg as IImageStyle, bh as IIndicatorStyle, bi as IInputStyle, bj as IKbdStyle, bk as ILinkStyle, bl as IListItemStyle, bm as IListStyle, bn as ILoginStyle, bo as ILoopStyle, bp as IMeta, bq as IMissingStyle, br as INoAccessStyle, bs as INotFoundStyle, bt as INotificationStyle, bu as INumberInputStyle, bv as IPaperStyle, bw as IPlatformAbout, a as IPluginStyleRegistryEntry, bx as IProfileStyle, by as IProgressRootStyle, bz as IProgressSectionStyle, bA as IProgressStyle, bB as IRadioStyle, bC as IRangeSliderStyle, bD as IRatingStyle, bE as IRefContainerStyle, bF as IRegisterStyle, bG as IResetPasswordStyle, bH as IRichTextEditorStyle, bI as IScrollAreaStyle, bJ as ISegmentedControlStyle, bK as ISelectStyle, bL as ISimpleGridStyle, bM as ISliderStyle, bN as ISpaceStyle, bO as ISpoilerStyle, bP as IStackStyle, I as IStyleRegistryEntry, bQ as IStyleWithSpacing, bR as ISwitchStyle, bS as ITabStyle, bT as ITabsStyle, bU as ITextInputStyle, bV as ITextStyle, bW as ITextareaStyle, bX as IThemeIconStyle, bY as ITimelineItemStyle, bZ as ITimelineStyle, b_ as ITitleStyle, b$ as ITwoFactorAuthStyle, c0 as ITypographyStyle, c1 as IUnknownStyle, c2 as IValidateStyle, c3 as IVersionStyle, c4 as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, c5 as TDataRevisionOperation, c6 as TDataRevisionSource, c7 as TEntryFormListFormFields, c8 as TFormConflictData, c9 as TFormInputRule, ca as TFormListCellValue, cb as TFormListChange, cc as TFormListColumnFormat, cd as TFormListControlType, ce as TFormListErrorReason, cf as TFormListLabels, cg as TFormListLayout, ch as TFormListOpenMode, ci as TFormListPresentation, cj as TFormListRestoreBlockerReason, ck as TFormListRestoreData, cl as TFormListSortDirection, cm as TFormListStyleName, cn as TFormListTextMatch, e as TFormSectionStyleName, co as TFormWriteRefusalReason, cp as TMantineAccordionChevronPosition, cq as TMantineAccordionDisableChevronRotation, cr as TMantineAccordionLoop, cs as TMantineAccordionMultiple, ct as TMantineAnchorUnderline, cu as TMantineBorder, cv as TMantineCardPadding, cw as TMantineCardShadow, cx as TMantineCols, cy as TMantineDividerVariant, cz as TMantineGap, cA as TMantineGridOffset, cB as TMantineGridOrder, cC as TMantineHeight, cD as TMantineIconSize, cE as TMantineImageFit, cF as TMantineLineClamp, cG as TMantineListCenter, cH as TMantineListStyleType, cI as TMantineListType, cJ as TMantineListWithPadding, cK as TMantinePaperShadow, cL as TMantineProgressTransition, cM as TMantineScrollAreaSize, cN as TMantineScrollAreaType, cO as TMantineTextAlign, cP as TMantineTextDecoration, cQ as TMantineTextFontStyle, cR as TMantineTextFontWeight, cS as TMantineTextInherit, cT as TMantineTextInputVariant, cU as TMantineTextSpan, cV as TMantineTextTransform, cW as TMantineTextTruncate, cX as TMantineTextVariant, cY as TMantineTextareaAutosize, cZ as TMantineTextareaResize, c_ as TMantineTextareaVariant, c$ as TMantineTimelineAlign, d0 as TMantineTitleLineClamp, d1 as TMantineTitleTextWrap, d2 as TMantineTranslatable, d3 as TMantineUseInputWrapper, d4 as TMantineWidth, d5 as TSharedBorder, d6 as TSharedCols, d7 as TSharedDimension, d8 as TSharedDividerLabelPosition, d9 as TSharedDividerVariant, da as TSharedLabelPosition, db as TStyle, b as TStylePlacement, d as TStylePlatform, f as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, g as _resetPluginStyleRegistry, h as extendStyleRegistry, i as getMergedStyleRegistry, j as getPluginStyleRegistry } from './styles.registry-
|
|
1
|
+
import { T as TStyleName, k as IContentField, l as IBaseApiResponse, m as IAboutItem, n as TMobileButtonFeedback, o as TMobileFieldVariant, p as TMobileSelectPresentation, q as IFormInvalidData, r as IFormListRestoreBlockedData, s as IFormStaleVersionData, t as IFormListFilesCell, u as TFormListMode, v as IFormListSort } from './styles.registry-G_KUYGPv.js';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, F as FORM_SECTION_STYLE_NAMES, w as IAccordionItemStyle, x as IAccordionStyle, y as IActionIconStyle, z as IAdminDataRecordCompareResponse, A as IAdminDataRecordHistoryResponse, C as IAdminDataRecordRestoreRequest, D as IAdminDataRecordRestoreResponse, E as IAdminDataRecordVersionResponse, G as IAlertStyle, H as IApiError, J as IApiMeta, K as IAspectRatioStyle, L as IAudioStyle, M as IAvatarStyle, N as IBackgroundImageStyle, O as IBadgeStyle, P as IBaseStyle, Q as IBlockquoteStyle, R as IBoxStyle, U as IButtonStyle, V as ICardSegmentStyle, W as ICardStyle, X as ICarouselStyle, Y as ICenterStyle, Z as ICheckboxStyle, $ as IChipStyle, a0 as ICodeStyle, a1 as IColorInputStyle, a2 as IColorPickerStyle, a3 as IComboboxStyle, a4 as IContainerStyle, a5 as IDataContainerStyle, a6 as IDataViewStyle, a7 as IDatePickerStyle, a8 as IDividerStyle, a9 as IEntryFormListStyle, aa as IEntryListStyle, ab as IEntryRecordDeleteStyle, ac as IEntryRecordFormStyle, ad as IEntryRecordStyle, ae as IEntryTableEntry, af as IEntryTableStyle, ag as IFieldsetStyle, ah as IFigureStyle, ai as IFileInputStyle, aj as IFlexStyle, ak as IFormDeleteData, al as IFormDeleteRequest, am as IFormDeleteResponse, an as IFormEffectiveContext, ao as IFormFileFieldOp, ap as IFormInputError, aq as IFormListActor, ar as IFormListBaseStyle, as as IFormListCapabilities, at as IFormListColumn, au as IFormListCompareData, av as IFormListCompareQuery, aw as IFormListCompareResponse, ax as IFormListControl, ay as IFormListControlOption, az as IFormListError, aA as IFormListFileChange, aB as IFormListFileValue, aC as IFormListHistoricalFile, aD as IFormListHistoryData, aE as IFormListHistoryQuery, aF as IFormListHistoryResponse, aG as IFormListInfo, aH as IFormListPagination, aI as IFormListQuickActionData, aJ as IFormListQuickActionInfo, aK as IFormListQuickActionRequest, aL as IFormListQuickActionResponse, aM as IFormListRecordAccess, aN as IFormListRestoreBlocker, aO as IFormListRestoreChange, aP as IFormListRestorePreview, aQ as IFormListRestoreRequest, aR as IFormListRestoreResponse, aS as IFormListRestoreResult, aT as IFormListRevision, aU as IFormListRow, aV as IFormListSelected, aW as IFormListServedState, aX as IFormListState, aY as IFormListStateField, aZ as IFormListStateResponse, a_ as IFormListValueChange, a$ as IFormListVersionData, b0 as IFormListVersionResponse, b1 as IFormLogStyle, b2 as IFormRecordStyle, b3 as IFormResultLegacyFields, b4 as IFormStyle, b5 as IFormSubmitData, b6 as IFormSubmitRequest, b7 as IFormSubmitResponse, b8 as IFormUpdateData, b9 as IFormUpdateRequest, ba as IFormUpdateResponse, bb as IGridColumnStyle, bc as IGridStyle, bd as IGroupStyle, be as IHighlightStyle, bf as IHtmlTagStyle, bg as IImageStyle, bh as IIndicatorStyle, bi as IInputStyle, bj as IKbdStyle, bk as ILinkStyle, bl as IListItemStyle, bm as IListStyle, bn as ILoginStyle, bo as ILoopStyle, bp as IMeta, bq as IMissingStyle, br as INoAccessStyle, bs as INotFoundStyle, bt as INotificationStyle, bu as INumberInputStyle, bv as IPaperStyle, bw as IPlatformAbout, a as IPluginStyleRegistryEntry, bx as IProfileStyle, by as IProgressRootStyle, bz as IProgressSectionStyle, bA as IProgressStyle, bB as IRadioStyle, bC as IRangeSliderStyle, bD as IRatingStyle, bE as IRefContainerStyle, bF as IRegisterStyle, bG as IResetPasswordStyle, bH as IRichTextEditorStyle, bI as IScrollAreaStyle, bJ as ISegmentedControlStyle, bK as ISelectStyle, bL as ISimpleGridStyle, bM as ISliderStyle, bN as ISpaceStyle, bO as ISpoilerStyle, bP as IStackStyle, I as IStyleRegistryEntry, bQ as IStyleWithSpacing, bR as ISwitchStyle, bS as ITabStyle, bT as ITabsStyle, bU as ITextInputStyle, bV as ITextStyle, bW as ITextareaStyle, bX as IThemeIconStyle, bY as ITimelineItemStyle, bZ as ITimelineStyle, b_ as ITitleStyle, b$ as ITwoFactorAuthStyle, c0 as ITypographyStyle, c1 as IUnknownStyle, c2 as IValidateStyle, c3 as IVersionStyle, c4 as IVideoStyle, S as STYLE_REGISTRY, c as TConcretePlatform, c5 as TDataRevisionOperation, c6 as TDataRevisionSource, c7 as TEntryFormListFormFields, c8 as TFormConflictData, c9 as TFormInputRule, ca as TFormListCellValue, cb as TFormListChange, cc as TFormListColumnFormat, cd as TFormListControlType, ce as TFormListErrorReason, cf as TFormListLabels, cg as TFormListLayout, ch as TFormListOpenMode, ci as TFormListPresentation, cj as TFormListRestoreBlockerReason, ck as TFormListRestoreData, cl as TFormListSortDirection, cm as TFormListStyleName, cn as TFormListTextMatch, e as TFormSectionStyleName, co as TFormWriteRefusalReason, cp as TMantineAccordionChevronPosition, cq as TMantineAccordionDisableChevronRotation, cr as TMantineAccordionLoop, cs as TMantineAccordionMultiple, ct as TMantineAnchorUnderline, cu as TMantineBorder, cv as TMantineCardPadding, cw as TMantineCardShadow, cx as TMantineCols, cy as TMantineDividerVariant, cz as TMantineGap, cA as TMantineGridOffset, cB as TMantineGridOrder, cC as TMantineHeight, cD as TMantineIconSize, cE as TMantineImageFit, cF as TMantineLineClamp, cG as TMantineListCenter, cH as TMantineListStyleType, cI as TMantineListType, cJ as TMantineListWithPadding, cK as TMantinePaperShadow, cL as TMantineProgressTransition, cM as TMantineScrollAreaSize, cN as TMantineScrollAreaType, cO as TMantineTextAlign, cP as TMantineTextDecoration, cQ as TMantineTextFontStyle, cR as TMantineTextFontWeight, cS as TMantineTextInherit, cT as TMantineTextInputVariant, cU as TMantineTextSpan, cV as TMantineTextTransform, cW as TMantineTextTruncate, cX as TMantineTextVariant, cY as TMantineTextareaAutosize, cZ as TMantineTextareaResize, c_ as TMantineTextareaVariant, c$ as TMantineTimelineAlign, d0 as TMantineTitleLineClamp, d1 as TMantineTitleTextWrap, d2 as TMantineTranslatable, d3 as TMantineUseInputWrapper, d4 as TMantineWidth, d5 as TSharedBorder, d6 as TSharedCols, d7 as TSharedDimension, d8 as TSharedDividerLabelPosition, d9 as TSharedDividerVariant, da as TSharedLabelPosition, db as TStyle, b as TStylePlacement, d as TStylePlatform, f as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, g as _resetPluginStyleRegistry, h as extendStyleRegistry, i as getMergedStyleRegistry, j as getPluginStyleRegistry } from './styles.registry-G_KUYGPv.js';
|
|
3
3
|
export { v as TMantineAccordionVariant, y as TMantineActionIconLoading, d as TMantineAlign, z as TMantineAllowNextClicks, A as TMantineAllowStepClick, B as TMantineAspectRatio, C as TMantineAutoContrast, r as TMantineAvatarVariant, q as TMantineBadgeVariant, D as TMantineBlock, E as TMantineCenterInline, F as TMantineChecked, G as TMantineChipChecked, H as TMantineChipMultiple, s as TMantineChipVariant, I as TMantineClampBehavior, J as TMantineCodeBlock, T as TMantineColor, K as TMantineColorFormat, L as TMantineColorInputSwatches, M as TMantineColorPickerSwatches, N as TMantineColorPickerSwatchesPerRow, O as TMantineCompact, P as TMantineContainerFluid, e as TMantineDirection, Q as TMantineDisabled, n as TMantineFieldsetVariant, R as TMantineFileAccept, S as TMantineFileInputMultiple, U as TMantineFluid, V as TMantineFullWidth, i as TMantineGridGrow, g as TMantineGridOverflow, h as TMantineGridSpan, W as TMantineGroupGrow, X as TMantineGroupWrap, Y as TMantineGrow, Z as TMantineHighlight, t as TMantineIndicatorPosition, _ as TMantineInline, $ as TMantineIsLink, c as TMantineJustify, a0 as TMantineKbdSize, a1 as TMantineLoading, a2 as TMantineMultiple, a3 as TMantineNotificationWithCloseButton, a4 as TMantineNumberInputDecimalScale, a5 as TMantineOpenInNewTab, j as TMantineOrientation, a6 as TMantineProcessing, a as TMantineRadius, a7 as TMantineRangeSliderMarks, a8 as TMantineRatingCount, a9 as TMantineRatingFractions, aa as TMantineRatingReadonly, ab as TMantineReadonly, m as TMantineSize, ac as TMantineSpaceHorizontal, ad as TMantineSpacing, o as TMantineSpoilerMaxHeight, ae as TMantineSwatches, af as TMantineTabDisabled, w as TMantineTabsVariant, u as TMantineThemeIconVariant, x as TMantineTimelineLineVariant, l as TMantineTitleOrder, ag as TMantineUseMantineStyle, p as TMantineVariant, ah as TMantineWithCloseButton, ai as TMantineWithIcon, f as TMantineWrap, k as TSharedRadius, b as TSharedSize } from './common-qaDIAYS3.js';
|
|
4
4
|
import { ReactNode, ComponentType } from 'react';
|
|
5
5
|
import { THeroUiButtonVariant, THeroUiSize } from './theme/index.js';
|
|
6
6
|
export { COLOR_PALETTE, COLOR_SCALES, CONTAINER_SIZE_PX, FONT_SIZE_PX, FULL_RADIUS_PX, IHeroUiResolvedStyle, IMantineResolvedStyle, IReactNativeGridColumn, IReactNativeResolvedStyle, IReactNativeThemeScales, IResolvedVariant, ISharedStyleProps, ISpacingResolved, LINE_HEIGHT, RADIUS_PX, SPACING_PX, SPACING_TO_TAILWIND, TCanonicalColor, TCanonicalRadius, TCanonicalSpacing, THeroUiColor, TReactNativeDimension, TSemanticColor, TSemanticRadius, TSemanticSize, TSemanticSpacing, TSemanticState, TSemanticVariant, colorToHex, gridSpanToReactNativeColumn, mapAccordionVariantToHeroUiVariant, mapChipVariantToHeroUiVariant, mapDividerVariantToReactNative, mapMantineColorToHeroUiButtonVariant, mapMantineColorToHeroUiColor, mapMantineVariantToHeroUiButtonVariant, mapRadiusToMantine, mapRadiusToPx, mapSizeToHeroUi, mapSizeToMantine, mapSpacingToPx, parseDimensionToReactNative, parseDimensionToWeb, radiusToPx, resolveMantineVariant, resolveSharedStyle, resolveSharedStyleForMobile, resolveSharedStyleForWeb, resolveSharedStyleProps, sizeToFontPx, spacingToPx, toHeroUiSemanticProps, toMantineSemanticProps, toReactNativeSemanticStyle } from './theme/index.js';
|
|
7
7
|
export { TAnyStyleName, TPluginStyleImplMap, TStyleImplMap, getRegistryEntry, getRegistryEntryAny, getStylePlacement, getStylePlatforms, getStylePluginId, isKnownStyleName, isRegisteredStyleName, isStyleAllowedOnPage, isStylePlacementAllowed, isStyleSupportedOnPlatform, setToStylePlatform, stylePlatformToSet } from './registry/index.js';
|
|
8
8
|
export { sharedTailwindExtend, sharedTailwindPreset } from './theme/tailwind.js';
|
|
9
|
+
export { I as IInlineNode, h as hasInlineFormatting, p as parseInlineRich, s as stripHtmlToText } from './inlineFormat-Duu5VLMU.js';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Live-sync contract (task `2026-11-20-live-sync-and-edit-lock`, contracts C1 to C9).
|
|
@@ -34,8 +35,9 @@ declare const SYNC_MESSAGE_VERSION: 1;
|
|
|
34
35
|
* | `table:<id>` | A record of the data table changed |
|
|
35
36
|
* | `section:<id>` | A section was saved in the admin |
|
|
36
37
|
* | `asset:<id>` | An asset changed |
|
|
38
|
+
* | `res:<type>:<id>` | A plugin item of a registered resource type changed |
|
|
37
39
|
*/
|
|
38
|
-
type TSyncTag = 'acl' | 'navigation' | 'global_values' | `page:${number}` | `page_draft:${number}` | `page_lock:${number}` | `table:${number}` | `section:${number}` | `asset:${number}`;
|
|
40
|
+
type TSyncTag = 'acl' | 'navigation' | 'global_values' | `page:${number}` | `page_draft:${number}` | `page_lock:${number}` | `table:${number}` | `section:${number}` | `asset:${number}` | `res:${string}:${number}`;
|
|
39
41
|
/** Mirror of the backend tag pattern (C1). Anchored, so the whole tag must match. */
|
|
40
42
|
declare const SYNC_TAG_PATTERN: RegExp;
|
|
41
43
|
/** Data of one `changed` event (C1). */
|
|
@@ -49,10 +51,11 @@ interface ISyncChangeMessage {
|
|
|
49
51
|
* The `sync` block of every page payload, published and draft (C6).
|
|
50
52
|
*
|
|
51
53
|
* `depends_on` lists `page:<id>` (`page_draft:<id>` for a draft), `table:<id>`
|
|
52
|
-
* for every data table the page reads,
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
54
|
+
* for every data table the page reads, `res:<type>:<id>` for plugin items the
|
|
55
|
+
* page references or a style resolver depends on, and `global_values`.
|
|
56
|
+
* `valid_until` is the earliest moment (UTC, ISO 8601) the result can change
|
|
57
|
+
* because time passes, or `null`. The client refetches once at `valid_until`
|
|
58
|
+
* plus a random delay while the page is open.
|
|
56
59
|
*/
|
|
57
60
|
interface ISyncBlock {
|
|
58
61
|
depends_on: string[];
|
|
@@ -2225,78 +2228,6 @@ interface IAssetSource {
|
|
|
2225
2228
|
}
|
|
2226
2229
|
declare function resolveAssetSources<T extends IAssetSource>(sources: T[] | undefined, baseUrl: string): T[];
|
|
2227
2230
|
|
|
2228
|
-
/**
|
|
2229
|
-
* Cross-platform inline-formatting helpers for CMS content fields.
|
|
2230
|
-
*
|
|
2231
|
-
* ## Why
|
|
2232
|
-
*
|
|
2233
|
-
* CMS authors can apply lightweight inline formatting (Ctrl+B bold, Ctrl+I
|
|
2234
|
-
* italic, Ctrl+U underline, links) to content fields whose field type allows it
|
|
2235
|
-
* (`markdown-inline`). The editor stores that as a tiny HTML subset
|
|
2236
|
-
* (`<strong>`/`<b>`, `<em>`/`<i>`, `<u>`, `<a>`), often wrapped in block tags
|
|
2237
|
-
* (`<p>`, `<div>`) that markdown processing leaves behind.
|
|
2238
|
-
*
|
|
2239
|
-
* Web can render that subset as real inline HTML, but React Native `<Text>`
|
|
2240
|
-
* cannot render HTML at all — so historically mobile (and several web leaf slots)
|
|
2241
|
-
* stripped everything to plain text and the bold was lost. To carry the same
|
|
2242
|
-
* formatting to BOTH platforms we parse the subset once, here, into a flat list
|
|
2243
|
-
* of {@link IInlineNode} runs. Each platform then renders the runs natively:
|
|
2244
|
-
*
|
|
2245
|
-
* - web → a fragment of `<strong>/<em>/<u>/<a>` (see frontend `InlineRich`)
|
|
2246
|
-
* - mobile → nested `<Text>` with `fontWeight`/`fontStyle`/`textDecorationLine`
|
|
2247
|
-
* (see mobile `InlineText`)
|
|
2248
|
-
*
|
|
2249
|
-
* ## Scope (deliberately tiny + safe)
|
|
2250
|
-
*
|
|
2251
|
-
* Only the inline subset above survives. **Block** tags (`<p>`, `<div>`,
|
|
2252
|
-
* `<h1>`…`<h6>`, `<ul>`/`<ol>`/`<li>`, `<blockquote>`, `<br>`) collapse to a
|
|
2253
|
-
* single space — an inline text slot (a label, a paragraph run) cannot lay out
|
|
2254
|
-
* block structure, and flattening matches the old strip behaviour. Any other tag
|
|
2255
|
-
* is dropped while keeping its inner text. HTML entities are decoded.
|
|
2256
|
-
*
|
|
2257
|
-
* ## JSON-aware (HARD)
|
|
2258
|
-
*
|
|
2259
|
-
* Some content fields legitimately hold JSON (config blobs, table/segmented
|
|
2260
|
-
* data). Those are read via `readField`, not these helpers, but as a safety net
|
|
2261
|
-
* a value that parses as JSON is returned untouched so structured payloads are
|
|
2262
|
-
* never mangled.
|
|
2263
|
-
*
|
|
2264
|
-
* This module is the canonical home the style docs refer to; the web
|
|
2265
|
-
* `stripHtmlTags` and mobile `stripHtmlToText` local copies mirror
|
|
2266
|
-
* {@link stripHtmlToText} and are folded into this once consumers adopt it.
|
|
2267
|
-
*/
|
|
2268
|
-
/** A single run of text with the inline formatting that applies to it. */
|
|
2269
|
-
interface IInlineNode {
|
|
2270
|
-
text: string;
|
|
2271
|
-
bold?: boolean;
|
|
2272
|
-
italic?: boolean;
|
|
2273
|
-
underline?: boolean;
|
|
2274
|
-
/** Present when the run sits inside an `<a href>`; the resolved target. */
|
|
2275
|
-
href?: string;
|
|
2276
|
-
}
|
|
2277
|
-
/**
|
|
2278
|
-
* Parse a CMS content string into a flat list of inline-formatted runs,
|
|
2279
|
-
* preserving only the safe inline subset. Block tags + `<br>` collapse to
|
|
2280
|
-
* spaces; entities are decoded; a JSON payload is returned as one untouched run.
|
|
2281
|
-
* Adjacent runs that share formatting are merged and outer whitespace trimmed.
|
|
2282
|
-
*/
|
|
2283
|
-
declare function parseInlineRich(value: string | null | undefined): IInlineNode[];
|
|
2284
|
-
/**
|
|
2285
|
-
* Does this value carry any of the supported inline tags? Used by renderers to
|
|
2286
|
-
* fast-path plain strings (and to skip JSON). Cheap: no full parse.
|
|
2287
|
-
*/
|
|
2288
|
-
declare function hasInlineFormatting(value: string | null | undefined): boolean;
|
|
2289
|
-
/**
|
|
2290
|
-
* Strip a content string to readable plain text: drop every tag, decode common
|
|
2291
|
-
* entities, collapse whitespace. Block tags + `<br>` become spaces so words do
|
|
2292
|
-
* not run together. JSON payloads and tag-free strings are returned untouched
|
|
2293
|
-
* (apart from entity decoding), so it is safe to call on any field.
|
|
2294
|
-
*
|
|
2295
|
-
* This is the canonical cross-platform helper (web `stripHtmlTags` / mobile
|
|
2296
|
-
* `stripHtmlToText` mirror it).
|
|
2297
|
-
*/
|
|
2298
|
-
declare function stripHtmlToText(value: string | null | undefined): string;
|
|
2299
|
-
|
|
2300
2231
|
/**
|
|
2301
2232
|
* Cross-platform helpers for user-owned option catalogs in CMS styles.
|
|
2302
2233
|
*
|
|
@@ -3170,8 +3101,9 @@ declare function parseSyncMessageJson(raw: string): ISyncChangeMessage | null;
|
|
|
3170
3101
|
* True when a page payload's `sync.depends_on` names any of the message's tags (C6).
|
|
3171
3102
|
*
|
|
3172
3103
|
* Only tags that a page payload can list match here: `page:<id>`,
|
|
3173
|
-
* `page_draft:<id>`, `table:<id>` and `global_values`. The
|
|
3174
|
-
* page dependencies and are handled by the client on their
|
|
3104
|
+
* `page_draft:<id>`, `table:<id>`, `res:<type>:<id>` and `global_values`. The
|
|
3105
|
+
* other tags are not page dependencies and are handled by the client on their
|
|
3106
|
+
* own:
|
|
3175
3107
|
*
|
|
3176
3108
|
* - `acl` and `navigation` affect every page the caller may see, so the client
|
|
3177
3109
|
* invalidates all page queries and the navigation (it does not ask each page).
|
|
@@ -3270,4 +3202,4 @@ declare function transformPageData(apiPage: IRawPage): IPageItem;
|
|
|
3270
3202
|
*/
|
|
3271
3203
|
declare function transformPagesData(pages: IRawPage[] | null | undefined): IPageItem[];
|
|
3272
3204
|
|
|
3273
|
-
export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, type BackupRetentionPolicy, type BackupSchedulePolicy, type BundledPluginRef, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, CMS_APP_PRIMARY_ROLES, CMS_APP_ROLES, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, DEFAULT_MOBILE_ICON, DEFAULT_RATE_LIMIT_MESSAGE, DEFAULT_WEB_FOOTER_PRESET, DEFAULT_WEB_HEADER_PRESET, type DatabaseMigrationMetadata, ENDPOINTS, FIELDS_MAP_STYLE_CONFIG, FORM_LIST_MAX_PAGE, FORM_LIST_MAX_ROUTE_PARAMS, FORM_LIST_MAX_ROUTE_VALUE_LENGTH, FORM_LIST_MAX_SORTS, FORM_LIST_MAX_VALUE_BYTES, FORM_LIST_MODES, FORM_LIST_SEARCH_MAX_LENGTH, FORM_LIST_SEARCH_MIN_LENGTH, FORM_RECORD_PREFILL_SKIP_FIELDS, type FrontendRelease, HEADER_ACL_STAMP, HEADER_CLIENT_TYPE, HEADER_PAGE_VERSION, HEADER_PAGE_VIEW, IAboutItem, type IAssetSource, type IAuthEventsBootstrap, IBaseApiResponse, type IBasePageInfo, type IBasePageSection, type IBranchNavContext, type IBranchNavSegment, type IBreadcrumbEntry, type IClassPattern, type IClassRemap, type ICmsApp, type ICmsAppAssignedPage, type ICmsAppDetail, type ICmsAppPage, type ICmsAppSummary, type ICompatibilityError, type IConditionContext, IContentField, type IEvaluatedCondition, type IFieldsMapStyleConfig, type IForgotPasswordRequest, type IForgotPasswordResponse, IFormInvalidData, type IFormListCacheScope, type IFormListFailure, IFormListFilesCell, IFormListRestoreBlockedData, IFormListSort, type IFormListUrlError, type IFormListUrlRules, type IFormListUrlState, type IFormRecordPrefill, type IFormRecordPrefillChild, type IFormRecordPrefillSection, type IFormRecordPrefillTranslatedValue, IFormStaleVersionData, type IFrontendUpdatePreflight, type IFrontendUpdatePreflightResponse, type IFrontendUpdateReleases, type IFrontendUpdateReleasesResponse, type IFrontendUpdateRequest, type IFrontendUpdateRequestResponse, type IGetPageResponse, type IGetPagesResponse, type IHeaderLayerSplit, type IInlineNode, type IJwtPayload, type ILanguage, type ILanguageItem, type ILanguagePreference, type ILanguagePreferenceUpdateResponse, type ILanguagesResponse, type ILoginRequest, type ILoginSuccessData, type ILoginSuccessResponse, type ILogoutSuccessResponse, type IMaintenanceSetRequest, type IMenuSearchHit, type IMobileAdapterBaseProps, type IMobileButtonProps, type IMobileCardProps, type IMobileCheckboxProps, type IMobileContainerProps, type IMobileIconEntry, type IMobileInputProps, type IMobileModalProps, type IMobilePreviewExchangeData, type IMobilePreviewExchangeRequest, type IMobilePreviewExchangeResponse, type IMobilePreviewSessionData, type IMobilePreviewSessionRequest, type IMobilePreviewSessionResponse, type IMobilePreviewUpdatePreflight, type IMobilePreviewUpdatePreflightResponse, type IMobilePreviewUpdateReleases, type IMobilePreviewUpdateReleasesResponse, type IMobilePreviewUpdateRequest, type IMobilePreviewUpdateRequestResponse, type IMobileSelectOption, type IMobileSelectProps, type IMobileSwitchProps, type IMobileTextProps, type IMobileTextareaProps, type IMobileUiAdapters, type INavigationBranding, type INavigationBundle, type INavigationBundleImportHints, type INavigationBundleItem, type INavigationBundleItemTranslation, type INavigationBundleMenu, type INavigationMenu, type INavigationMenuItem, type INavigationPayload, type INavigationResolvedPageRef, type INavigationSearchConfig, type INavigationStartupConfig, type IOptionCatalogEntry, type IOptionLabelMap, type IOptionStyleConfig, type IPageAccessTypeInfo, type IPageContent, type IPageDraftVersioned, type IPageField, type IPageFieldTranslation, type IPageFieldsData, type IPageItem, type IPageLockHolder, type IPageLockStatus, type IPagePayload, type IPageRoute, type IPageSectionWithFields, type IPageSectionsData, type IPagesResolveParams, type IPreviewNavigateCommand, type IPreviewNavigatedMessage, type IPreviewPreferences, type IPreviewPreferencesChangedMessage, type IPreviewReadyMessage, type IPreviewSetPreferencesCommand, type IRefreshRequest, type IRefreshSuccessResponse, type IResetPasswordRequest, type IResetPasswordResponse, type IResolvePageResponse, type IResolvedOption, type ISpacingValue, type IStalePageVersionData, type ISyncBlock, type ISyncChangeMessage, type ISystemAdvisories, type ISystemAdvisoriesResponse, type ISystemAdvisory, type ISystemAdvisoryAffected, type ISystemHealth, type ISystemHealthComponent, type ISystemHealthResponse, type ISystemInstalledPlugin, type ISystemMaintenance, type ISystemMaintenanceResponse, type ISystemVersion, type ISystemVersionResponse, type ITwoFactorRequiredData, type ITwoFactorRequiredResponse, type ITwoFactorVerifyRequest, type ITwoFactorVerifySuccessResponse, type IUpdatePreflight, type IUpdatePreflightCheck, type IUpdatePreflightOption, type IUpdatePreflightResponse, type IUpdateRelease, type IUpdateReleases, type IUpdateReleasesResponse, type IUpdateRequest, type IUpdateRequestResponse, type IUpdateStatus, type IUpdateStatusManager, type IUpdateStatusResponse, type IUpdateStep, type IUserData, type IUserDataResponse, type IWebFooterPresetOption, type IWebHeaderPresetOption, type ImageRef, type InstalledPlugin, type InstanceImages, type InstanceLock, type InstanceManifest, type InstanceMode, type InstanceResourceConfig, type InstanceRouting, type InstanceStatus, type InstanceVersions, type InventoryInstanceEntry, LANGUAGE_INDEPENDENT_ID, LANGUAGE_INDEPENDENT_LOCALE, LITERAL_CLASSES, LOCK_IDLE_ENDED_ERROR, type LockPluginEntry, type LockServiceEntry, MOBILE_ICON_NAMES, MOBILE_ICON_SET, MOBILE_PREVIEW_ENDPOINTS, type MobilePreviewRelease, NAVIGATION_BRANDING_LOGO_HEIGHTS, NAVIGATION_BUNDLE_FORMAT, NAVIGATION_BUNDLE_VERSION, NAVIGATION_HEADER_LAYER_TOP, OPTION_STYLE_CONFIGS, PAGE_LOCKED_ERROR, PAGE_VERSION_REQUIRED_ERROR, PERMISSIONS, PREVIEW_BRIDGE_MESSAGE, PREVIEW_PARENT_ORIGIN_PARAM, PREVIEW_SHELL_PARAM, type PluginRelease, type PreflightCheck, type PreflightOption, type PreflightStatus, RELEASE_CHANNELS, type RegistryIndex, type RegistryReleaseRef, type ReleaseChannel, type RuntimeServicePolicy, type RuntimeServiceRange, SIZE_VALUES, SPACING_VALUES, STALE_PAGE_VERSION_ERROR, SYNC_CHANGED_MAX_DELAY_MS, SYNC_EVENT_NAME, SYNC_MESSAGE_VERSION, SYNC_TAG_PATTERN, SYNC_VALID_UNTIL_MAX_DELAY_MS, SYSTEM_ENDPOINTS, type SchedulerRelease, type SecurityAdvisory, type ServerInventory, type ServiceBackendCompatibility, type SignatureBlock, type SupportBundleMeta, type TCalcedValues, type TClassDecision, type TClientType, type TCmsAppRole, TFormListMode, type TFormListUrlChange, type TFormListUrlErrorReason, type TFormListUrlParse, type TFormRecordPrefillFieldValue, type TFormRecordPrefillFileValue, THeroUiButtonVariant, THeroUiSize, TMobileButtonFeedback, TMobileFieldVariant, type TMobilePagePresentation, TMobileSelectPresentation, type TNavigationBrandingSize, type TNavigationBrandingVariant, type TNavigationBundleExportMode, type TNavigationChildrenNavMode, type TNavigationHeaderLayer, type TNavigationMenuItemType, type TNavigationMenuKey, type TNavigationMobileStartSource, type TNavigationSearchMode, type TNavigationStartMode, type TOptionStyleName, type TPermission, type TPlatform, type TPreviewBridgeMessage, type TPreviewBridgeMessageType, type TPreviewColorScheme, type TPreviewFrameSource, TStyleName, type TSyncRefetchKind, type TSyncTag, type TSystemAdvisorySeverity, type TSystemComponentStatus, type TSystemDeployment, type TSystemHealthOverall, type TUpdateCheckSeverity, type TUpdateKind, type TUpdateOperationStatus, type TUpdatePreflightStatus, type TWebFooterPreset, type TWebHeaderPreset, type TrustLevel, type TrustedKey, type TrustedKeysFile, type UpdatePreflightResult, WEB_FOOTER_PRESET_OPTIONS, WEB_FOOTER_PRESET_VALUES, WEB_HEADER_PRESET_OPTIONS, WEB_HEADER_PRESET_VALUES, type WorkerRelease, applyFormListUrlChange, arePreviewPreferencesEqual, asFilesCell, asRecordVersion, buildConditionContext, buildPagesResolvePath, buildPagesResolveQuery, buildPagesResolveUrl, buildPublicPathFromRoute, clampMenuItemsAtDepth, classifyClass, classifyClassString, collectPageIdsFromMenuItems, emptyFormListUrlState, encodeFormListQuery, evaluateCondition, expandedIdsForActiveTrail, findMenuItemByPageId, findNearestBottomTabMenuItemForPage, findPageRefInNavigationPayload, findRemap, flattenFooterItems, flattenFormRecordPrefillValues, flattenMenuItems, flattenNavigationMenuItems, footerColumnItems, footerGroupLinks, footerStandaloneItems, formListCacheKey, formListQueryString, formListRouteQuery, formatRateLimitMessage, getFormInvalidData, getFormListFailure, getFormListRestoreBlocked, getFormStaleVersion, getNavigationItemAriaLabel, getNavigationItemHref, getNavigationItemKeyword, getNavigationItemLabel, getNavigationItemMobileHref, getRateLimitRetryAfter, hasInlineFormatting, isBottomTabMenuItemActive, isDoubleWebHeaderPreset, isFormListParam, isLanguageIndependent, isMenuItemActiveOnMobile, isMenuItemActiveOnWeb, isMobileIconName, isNavigationBundleVersionSupported, isOnAnyMobileMenu, isOnAnyMobileMenuFromPayload, isPageInMenuTree, isPageInResolvedMenus, isPageOnAnyMenu, isPageOnMobileMenu, isPageOnWebMenu, isPreviewBridgeMessage, isWebFooterPreset, isWebHeaderPreset, matchesMobilePath, matchesWebPath, mergeHeaderLayers, nextSortOnHeaderClick, normalizePagesResolvePath, pageDependsOn, pageFromPayload, pageUrlToMobileRoute, parseFieldsMapCatalog, parseFieldsMapLabels, parseFormListQuery, parseFormRecordPrefill, parseInlineRich, parseOptionCatalog, parseOptionCodes, parseOptionLabels, parseSpacing, parseSyncMessage, parseSyncMessageJson, pickFormListQuery, previewKeywordFromPath, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, resolveBranchNavGroup, resolveBrandingPresentation, resolveFieldsMapLabel, resolveHolderRedirectPath, resolveMenuMaxDepth, resolveMobileIcon, resolveMobilePagePresentation, resolveMobileSegmentGroup, resolveMobileStartupKeyword, resolveMobileStartupRoute, resolveOptionCodesLabels, resolveOptionLabel, resolveOptionValueLabels, resolveOptions, resolveWebBranchNavContext, resolveWebBranchNavGroup, resolveWebFooterPreset, resolveWebHeaderPreset, resolveWebStartupPath, searchMenuPagesInPayload, serializeFieldsMapCatalog, serializeFieldsMapLabels, spacingToClasses, splitHeaderLayers, stripHtmlToText, syncRefetchDelayMs, transformPageData, transformPagesData };
|
|
3205
|
+
export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, type BackupRetentionPolicy, type BackupSchedulePolicy, type BundledPluginRef, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, CMS_APP_PRIMARY_ROLES, CMS_APP_ROLES, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, DEFAULT_MOBILE_ICON, DEFAULT_RATE_LIMIT_MESSAGE, DEFAULT_WEB_FOOTER_PRESET, DEFAULT_WEB_HEADER_PRESET, type DatabaseMigrationMetadata, ENDPOINTS, FIELDS_MAP_STYLE_CONFIG, FORM_LIST_MAX_PAGE, FORM_LIST_MAX_ROUTE_PARAMS, FORM_LIST_MAX_ROUTE_VALUE_LENGTH, FORM_LIST_MAX_SORTS, FORM_LIST_MAX_VALUE_BYTES, FORM_LIST_MODES, FORM_LIST_SEARCH_MAX_LENGTH, FORM_LIST_SEARCH_MIN_LENGTH, FORM_RECORD_PREFILL_SKIP_FIELDS, type FrontendRelease, HEADER_ACL_STAMP, HEADER_CLIENT_TYPE, HEADER_PAGE_VERSION, HEADER_PAGE_VIEW, IAboutItem, type IAssetSource, type IAuthEventsBootstrap, IBaseApiResponse, type IBasePageInfo, type IBasePageSection, type IBranchNavContext, type IBranchNavSegment, type IBreadcrumbEntry, type IClassPattern, type IClassRemap, type ICmsApp, type ICmsAppAssignedPage, type ICmsAppDetail, type ICmsAppPage, type ICmsAppSummary, type ICompatibilityError, type IConditionContext, IContentField, type IEvaluatedCondition, type IFieldsMapStyleConfig, type IForgotPasswordRequest, type IForgotPasswordResponse, IFormInvalidData, type IFormListCacheScope, type IFormListFailure, IFormListFilesCell, IFormListRestoreBlockedData, IFormListSort, type IFormListUrlError, type IFormListUrlRules, type IFormListUrlState, type IFormRecordPrefill, type IFormRecordPrefillChild, type IFormRecordPrefillSection, type IFormRecordPrefillTranslatedValue, IFormStaleVersionData, type IFrontendUpdatePreflight, type IFrontendUpdatePreflightResponse, type IFrontendUpdateReleases, type IFrontendUpdateReleasesResponse, type IFrontendUpdateRequest, type IFrontendUpdateRequestResponse, type IGetPageResponse, type IGetPagesResponse, type IHeaderLayerSplit, type IJwtPayload, type ILanguage, type ILanguageItem, type ILanguagePreference, type ILanguagePreferenceUpdateResponse, type ILanguagesResponse, type ILoginRequest, type ILoginSuccessData, type ILoginSuccessResponse, type ILogoutSuccessResponse, type IMaintenanceSetRequest, type IMenuSearchHit, type IMobileAdapterBaseProps, type IMobileButtonProps, type IMobileCardProps, type IMobileCheckboxProps, type IMobileContainerProps, type IMobileIconEntry, type IMobileInputProps, type IMobileModalProps, type IMobilePreviewExchangeData, type IMobilePreviewExchangeRequest, type IMobilePreviewExchangeResponse, type IMobilePreviewSessionData, type IMobilePreviewSessionRequest, type IMobilePreviewSessionResponse, type IMobilePreviewUpdatePreflight, type IMobilePreviewUpdatePreflightResponse, type IMobilePreviewUpdateReleases, type IMobilePreviewUpdateReleasesResponse, type IMobilePreviewUpdateRequest, type IMobilePreviewUpdateRequestResponse, type IMobileSelectOption, type IMobileSelectProps, type IMobileSwitchProps, type IMobileTextProps, type IMobileTextareaProps, type IMobileUiAdapters, type INavigationBranding, type INavigationBundle, type INavigationBundleImportHints, type INavigationBundleItem, type INavigationBundleItemTranslation, type INavigationBundleMenu, type INavigationMenu, type INavigationMenuItem, type INavigationPayload, type INavigationResolvedPageRef, type INavigationSearchConfig, type INavigationStartupConfig, type IOptionCatalogEntry, type IOptionLabelMap, type IOptionStyleConfig, type IPageAccessTypeInfo, type IPageContent, type IPageDraftVersioned, type IPageField, type IPageFieldTranslation, type IPageFieldsData, type IPageItem, type IPageLockHolder, type IPageLockStatus, type IPagePayload, type IPageRoute, type IPageSectionWithFields, type IPageSectionsData, type IPagesResolveParams, type IPreviewNavigateCommand, type IPreviewNavigatedMessage, type IPreviewPreferences, type IPreviewPreferencesChangedMessage, type IPreviewReadyMessage, type IPreviewSetPreferencesCommand, type IRefreshRequest, type IRefreshSuccessResponse, type IResetPasswordRequest, type IResetPasswordResponse, type IResolvePageResponse, type IResolvedOption, type ISpacingValue, type IStalePageVersionData, type ISyncBlock, type ISyncChangeMessage, type ISystemAdvisories, type ISystemAdvisoriesResponse, type ISystemAdvisory, type ISystemAdvisoryAffected, type ISystemHealth, type ISystemHealthComponent, type ISystemHealthResponse, type ISystemInstalledPlugin, type ISystemMaintenance, type ISystemMaintenanceResponse, type ISystemVersion, type ISystemVersionResponse, type ITwoFactorRequiredData, type ITwoFactorRequiredResponse, type ITwoFactorVerifyRequest, type ITwoFactorVerifySuccessResponse, type IUpdatePreflight, type IUpdatePreflightCheck, type IUpdatePreflightOption, type IUpdatePreflightResponse, type IUpdateRelease, type IUpdateReleases, type IUpdateReleasesResponse, type IUpdateRequest, type IUpdateRequestResponse, type IUpdateStatus, type IUpdateStatusManager, type IUpdateStatusResponse, type IUpdateStep, type IUserData, type IUserDataResponse, type IWebFooterPresetOption, type IWebHeaderPresetOption, type ImageRef, type InstalledPlugin, type InstanceImages, type InstanceLock, type InstanceManifest, type InstanceMode, type InstanceResourceConfig, type InstanceRouting, type InstanceStatus, type InstanceVersions, type InventoryInstanceEntry, LANGUAGE_INDEPENDENT_ID, LANGUAGE_INDEPENDENT_LOCALE, LITERAL_CLASSES, LOCK_IDLE_ENDED_ERROR, type LockPluginEntry, type LockServiceEntry, MOBILE_ICON_NAMES, MOBILE_ICON_SET, MOBILE_PREVIEW_ENDPOINTS, type MobilePreviewRelease, NAVIGATION_BRANDING_LOGO_HEIGHTS, NAVIGATION_BUNDLE_FORMAT, NAVIGATION_BUNDLE_VERSION, NAVIGATION_HEADER_LAYER_TOP, OPTION_STYLE_CONFIGS, PAGE_LOCKED_ERROR, PAGE_VERSION_REQUIRED_ERROR, PERMISSIONS, PREVIEW_BRIDGE_MESSAGE, PREVIEW_PARENT_ORIGIN_PARAM, PREVIEW_SHELL_PARAM, type PluginRelease, type PreflightCheck, type PreflightOption, type PreflightStatus, RELEASE_CHANNELS, type RegistryIndex, type RegistryReleaseRef, type ReleaseChannel, type RuntimeServicePolicy, type RuntimeServiceRange, SIZE_VALUES, SPACING_VALUES, STALE_PAGE_VERSION_ERROR, SYNC_CHANGED_MAX_DELAY_MS, SYNC_EVENT_NAME, SYNC_MESSAGE_VERSION, SYNC_TAG_PATTERN, SYNC_VALID_UNTIL_MAX_DELAY_MS, SYSTEM_ENDPOINTS, type SchedulerRelease, type SecurityAdvisory, type ServerInventory, type ServiceBackendCompatibility, type SignatureBlock, type SupportBundleMeta, type TCalcedValues, type TClassDecision, type TClientType, type TCmsAppRole, TFormListMode, type TFormListUrlChange, type TFormListUrlErrorReason, type TFormListUrlParse, type TFormRecordPrefillFieldValue, type TFormRecordPrefillFileValue, THeroUiButtonVariant, THeroUiSize, TMobileButtonFeedback, TMobileFieldVariant, type TMobilePagePresentation, TMobileSelectPresentation, type TNavigationBrandingSize, type TNavigationBrandingVariant, type TNavigationBundleExportMode, type TNavigationChildrenNavMode, type TNavigationHeaderLayer, type TNavigationMenuItemType, type TNavigationMenuKey, type TNavigationMobileStartSource, type TNavigationSearchMode, type TNavigationStartMode, type TOptionStyleName, type TPermission, type TPlatform, type TPreviewBridgeMessage, type TPreviewBridgeMessageType, type TPreviewColorScheme, type TPreviewFrameSource, TStyleName, type TSyncRefetchKind, type TSyncTag, type TSystemAdvisorySeverity, type TSystemComponentStatus, type TSystemDeployment, type TSystemHealthOverall, type TUpdateCheckSeverity, type TUpdateKind, type TUpdateOperationStatus, type TUpdatePreflightStatus, type TWebFooterPreset, type TWebHeaderPreset, type TrustLevel, type TrustedKey, type TrustedKeysFile, type UpdatePreflightResult, WEB_FOOTER_PRESET_OPTIONS, WEB_FOOTER_PRESET_VALUES, WEB_HEADER_PRESET_OPTIONS, WEB_HEADER_PRESET_VALUES, type WorkerRelease, applyFormListUrlChange, arePreviewPreferencesEqual, asFilesCell, asRecordVersion, buildConditionContext, buildPagesResolvePath, buildPagesResolveQuery, buildPagesResolveUrl, buildPublicPathFromRoute, clampMenuItemsAtDepth, classifyClass, classifyClassString, collectPageIdsFromMenuItems, emptyFormListUrlState, encodeFormListQuery, evaluateCondition, expandedIdsForActiveTrail, findMenuItemByPageId, findNearestBottomTabMenuItemForPage, findPageRefInNavigationPayload, findRemap, flattenFooterItems, flattenFormRecordPrefillValues, flattenMenuItems, flattenNavigationMenuItems, footerColumnItems, footerGroupLinks, footerStandaloneItems, formListCacheKey, formListQueryString, formListRouteQuery, formatRateLimitMessage, getFormInvalidData, getFormListFailure, getFormListRestoreBlocked, getFormStaleVersion, getNavigationItemAriaLabel, getNavigationItemHref, getNavigationItemKeyword, getNavigationItemLabel, getNavigationItemMobileHref, getRateLimitRetryAfter, isBottomTabMenuItemActive, isDoubleWebHeaderPreset, isFormListParam, isLanguageIndependent, isMenuItemActiveOnMobile, isMenuItemActiveOnWeb, isMobileIconName, isNavigationBundleVersionSupported, isOnAnyMobileMenu, isOnAnyMobileMenuFromPayload, isPageInMenuTree, isPageInResolvedMenus, isPageOnAnyMenu, isPageOnMobileMenu, isPageOnWebMenu, isPreviewBridgeMessage, isWebFooterPreset, isWebHeaderPreset, matchesMobilePath, matchesWebPath, mergeHeaderLayers, nextSortOnHeaderClick, normalizePagesResolvePath, pageDependsOn, pageFromPayload, pageUrlToMobileRoute, parseFieldsMapCatalog, parseFieldsMapLabels, parseFormListQuery, parseFormRecordPrefill, parseOptionCatalog, parseOptionCodes, parseOptionLabels, parseSpacing, parseSyncMessage, parseSyncMessageJson, pickFormListQuery, previewKeywordFromPath, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, resolveBranchNavGroup, resolveBrandingPresentation, resolveFieldsMapLabel, resolveHolderRedirectPath, resolveMenuMaxDepth, resolveMobileIcon, resolveMobilePagePresentation, resolveMobileSegmentGroup, resolveMobileStartupKeyword, resolveMobileStartupRoute, resolveOptionCodesLabels, resolveOptionLabel, resolveOptionValueLabels, resolveOptions, resolveWebBranchNavContext, resolveWebBranchNavGroup, resolveWebFooterPreset, resolveWebHeaderPreset, resolveWebStartupPath, searchMenuPagesInPayload, serializeFieldsMapCatalog, serializeFieldsMapLabels, spacingToClasses, splitHeaderLayers, syncRefetchDelayMs, transformPageData, transformPagesData };
|
package/dist/index.js
CHANGED
|
@@ -3298,7 +3298,7 @@ function expandedIdsForActiveTrail(items, pathname, platform) {
|
|
|
3298
3298
|
// src/sync/types.ts
|
|
3299
3299
|
var SYNC_EVENT_NAME = "changed";
|
|
3300
3300
|
var SYNC_MESSAGE_VERSION = 1;
|
|
3301
|
-
var SYNC_TAG_PATTERN = /^(acl|navigation|global_values|page:\d+|page_draft:\d+|page_lock:\d+|table:\d+|section:\d+|asset:\d+)$/;
|
|
3301
|
+
var SYNC_TAG_PATTERN = /^(acl|navigation|global_values|page:\d+|page_draft:\d+|page_lock:\d+|table:\d+|section:\d+|asset:\d+|res:[a-z][a-z0-9_]{1,63}:\d+)$/;
|
|
3302
3302
|
var PAGE_VERSION_REQUIRED_ERROR = "page_version_required";
|
|
3303
3303
|
var STALE_PAGE_VERSION_ERROR = "stale_page_version";
|
|
3304
3304
|
var PAGE_LOCKED_ERROR = "page_locked";
|
package/dist/index.mjs
CHANGED
|
@@ -3034,7 +3034,7 @@ function expandedIdsForActiveTrail(items, pathname, platform) {
|
|
|
3034
3034
|
// src/sync/types.ts
|
|
3035
3035
|
var SYNC_EVENT_NAME = "changed";
|
|
3036
3036
|
var SYNC_MESSAGE_VERSION = 1;
|
|
3037
|
-
var SYNC_TAG_PATTERN = /^(acl|navigation|global_values|page:\d+|page_draft:\d+|page_lock:\d+|table:\d+|section:\d+|asset:\d+)$/;
|
|
3037
|
+
var SYNC_TAG_PATTERN = /^(acl|navigation|global_values|page:\d+|page_draft:\d+|page_lock:\d+|table:\d+|section:\d+|asset:\d+|res:[a-z][a-z0-9_]{1,63}:\d+)$/;
|
|
3038
3038
|
var PAGE_VERSION_REQUIRED_ERROR = "page_version_required";
|
|
3039
3039
|
var STALE_PAGE_VERSION_ERROR = "stale_page_version";
|
|
3040
3040
|
var PAGE_LOCKED_ERROR = "page_locked";
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cross-platform inline-formatting helpers for CMS content fields.
|
|
3
|
+
*
|
|
4
|
+
* ## Why
|
|
5
|
+
*
|
|
6
|
+
* CMS authors can apply lightweight inline formatting (Ctrl+B bold, Ctrl+I
|
|
7
|
+
* italic, Ctrl+U underline, links) to content fields whose field type allows it
|
|
8
|
+
* (`markdown-inline`). The editor stores that as a tiny HTML subset
|
|
9
|
+
* (`<strong>`/`<b>`, `<em>`/`<i>`, `<u>`, `<a>`), often wrapped in block tags
|
|
10
|
+
* (`<p>`, `<div>`) that markdown processing leaves behind.
|
|
11
|
+
*
|
|
12
|
+
* Web can render that subset as real inline HTML, but React Native `<Text>`
|
|
13
|
+
* cannot render HTML at all — so historically mobile (and several web leaf slots)
|
|
14
|
+
* stripped everything to plain text and the bold was lost. To carry the same
|
|
15
|
+
* formatting to BOTH platforms we parse the subset once, here, into a flat list
|
|
16
|
+
* of {@link IInlineNode} runs. Each platform then renders the runs natively:
|
|
17
|
+
*
|
|
18
|
+
* - web → a fragment of `<strong>/<em>/<u>/<a>` (see frontend `InlineRich`)
|
|
19
|
+
* - mobile → nested `<Text>` with `fontWeight`/`fontStyle`/`textDecorationLine`
|
|
20
|
+
* (see mobile `InlineText`)
|
|
21
|
+
*
|
|
22
|
+
* ## Scope (deliberately tiny + safe)
|
|
23
|
+
*
|
|
24
|
+
* Only the inline subset above survives. **Block** tags (`<p>`, `<div>`,
|
|
25
|
+
* `<h1>`…`<h6>`, `<ul>`/`<ol>`/`<li>`, `<blockquote>`, `<br>`) collapse to a
|
|
26
|
+
* single space — an inline text slot (a label, a paragraph run) cannot lay out
|
|
27
|
+
* block structure, and flattening matches the old strip behaviour. Any other tag
|
|
28
|
+
* is dropped while keeping its inner text. HTML entities are decoded.
|
|
29
|
+
*
|
|
30
|
+
* ## JSON-aware (HARD)
|
|
31
|
+
*
|
|
32
|
+
* Some content fields legitimately hold JSON (config blobs, table/segmented
|
|
33
|
+
* data). Those are read via `readField`, not these helpers, but as a safety net
|
|
34
|
+
* a value that parses as JSON is returned untouched so structured payloads are
|
|
35
|
+
* never mangled.
|
|
36
|
+
*
|
|
37
|
+
* This module is the canonical home the style docs refer to; the web
|
|
38
|
+
* `stripHtmlTags` and mobile `stripHtmlToText` local copies mirror
|
|
39
|
+
* {@link stripHtmlToText} and are folded into this once consumers adopt it.
|
|
40
|
+
*/
|
|
41
|
+
/** A single run of text with the inline formatting that applies to it. */
|
|
42
|
+
interface IInlineNode {
|
|
43
|
+
text: string;
|
|
44
|
+
bold?: boolean;
|
|
45
|
+
italic?: boolean;
|
|
46
|
+
underline?: boolean;
|
|
47
|
+
/** Present when the run sits inside an `<a href>`; the resolved target. */
|
|
48
|
+
href?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Parse a CMS content string into a flat list of inline-formatted runs,
|
|
52
|
+
* preserving only the safe inline subset. Block tags + `<br>` collapse to
|
|
53
|
+
* spaces; entities are decoded; a JSON payload is returned as one untouched run.
|
|
54
|
+
* Adjacent runs that share formatting are merged and outer whitespace trimmed.
|
|
55
|
+
*/
|
|
56
|
+
declare function parseInlineRich(value: string | null | undefined): IInlineNode[];
|
|
57
|
+
/**
|
|
58
|
+
* Does this value carry any of the supported inline tags? Used by renderers to
|
|
59
|
+
* fast-path plain strings (and to skip JSON). Cheap: no full parse.
|
|
60
|
+
*/
|
|
61
|
+
declare function hasInlineFormatting(value: string | null | undefined): boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Strip a content string to readable plain text: drop every tag, decode common
|
|
64
|
+
* entities, collapse whitespace. Block tags + `<br>` become spaces so words do
|
|
65
|
+
* not run together. JSON payloads and tag-free strings are returned untouched
|
|
66
|
+
* (apart from entity decoding), so it is safe to call on any field.
|
|
67
|
+
*
|
|
68
|
+
* This is the canonical cross-platform helper (web `stripHtmlTags` / mobile
|
|
69
|
+
* `stripHtmlToText` mirror it).
|
|
70
|
+
*/
|
|
71
|
+
declare function stripHtmlToText(value: string | null | undefined): string;
|
|
72
|
+
|
|
73
|
+
export { type IInlineNode as I, hasInlineFormatting as h, parseInlineRich as p, stripHtmlToText as s };
|