pagepilot-visual-editor 1.0.29 → 1.0.33
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 +116 -0
- package/README.md +42 -28
- package/dist/PagePilotEditor.d.ts +12 -9
- package/dist/api/ApiClientContext.d.ts +1 -0
- package/dist/api/PagepilotApiClient.d.ts +7 -0
- package/dist/assets/aiChatbotIcon.d.ts +1 -0
- package/dist/blocks-internal/block-button/src/index.d.ts +6 -0
- package/dist/blocks-internal/block-container/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-heading/src/index.d.ts +2 -2
- package/dist/blocks-internal/block-list/src/index.d.ts +12 -2
- package/dist/blocks-internal/block-mdx/src/index.d.ts +47 -0
- package/dist/blocks-internal/block-quill/src/index.d.ts +48 -0
- package/dist/editor/PagePreviewDialog.d.ts +14 -0
- package/dist/editor/Topbar.d.ts +3 -1
- package/dist/editor/pageUrls.d.ts +25 -0
- package/dist/editor/publish/PageLiveSuccessDialog.d.ts +9 -0
- package/dist/editor/publish/PagePublishDialog.d.ts +1 -0
- package/dist/editor/publish/PublishAccessibilityPanel.d.ts +8 -0
- package/dist/editor/publish/a11yLinter.d.ts +8 -0
- package/dist/editor/recordDirty.d.ts +16 -0
- package/dist/editor/renderSections.d.ts +2 -2
- package/dist/editor/savePipeline.d.ts +40 -0
- package/dist/editor/types.d.ts +35 -0
- package/dist/editor-sample/App/InspectorDrawer/BehaviourPanel.d.ts +22 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandColorPalette.d.ts +9 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandEmptyLink.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandPanel.styled.d.ts +22 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandSection.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/EmptyText.d.ts +6 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/FontDetailsList.d.ts +6 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/index.d.ts +5 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/useBrandApply.d.ts +9 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/ResponsiveDeviceTabs.d.ts +0 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/blockStyleClipboard.d.ts +2 -8
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/index.d.ts +1 -4
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/EmailLayoutSidebarPanel.d.ts +2 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FlexColumns/ColumnSection.d.ts +2 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FormsPickerSidebarPanel.d.ts +2 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/MdxSidebarPanel.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/MenuPickerSidebarPanel.d.ts +23 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/QuillSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/TextSidebarPanel.d.ts +2 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/AnimationSection.d.ts +7 -5
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/HoverEffectSection.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/imageSizeUnit.d.ts +19 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Picker.d.ts +0 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/VariableLinkHint.d.ts +27 -0
- package/dist/editor-sample/App/InspectorDrawer/EditorBehavior.d.ts +8 -2
- package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +2 -2
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/AiSupportedBadge.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/SectionsModal.d.ts +2 -10
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/icons/index.d.ts +3 -5
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/templateHelpers.d.ts +198 -0
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/useDebouncedValue.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/AiGenerateButton.d.ts +18 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/ItemsArrayRepeatSection.d.ts +2 -3
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/ScalarFieldRow.d.ts +4 -1
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/VariableGroupDialog.d.ts +19 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/VariableGroupList.d.ts +5 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/aiFill.d.ts +75 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/styles.d.ts +14 -11
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/upgradeDialog.d.ts +8 -8
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/useAutoRegisterTokenFields.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/behaviourFields.d.ts +30 -0
- package/dist/editor-sample/App/InspectorDrawer/components/RichTextAiButton.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/index.d.ts +8 -1
- package/dist/editor-sample/App/InspectorDrawer/publish/BackgroundPanel.d.ts +6 -0
- package/dist/editor-sample/App/InspectorDrawer/renderBehaviourField.d.ts +7 -0
- package/dist/editor-sample/App/TemplatePanel/hooks/useMainBoxStyles.d.ts +2 -1
- package/dist/editor-sample/App/TemplatePanel/index.d.ts +2 -1
- package/dist/editor-sample/App/TemplatePanel/minimap/useMiniMapSync.d.ts +2 -2
- package/dist/editor-sample/App/TemplatePanel/pageGuide/iframeSrcDoc.d.ts +3 -6
- package/dist/editor-sample/App/hooks/page/saveMenuHrefEdits.d.ts +1 -1
- package/dist/editor-sample/App/hooks/page/useSaveHandler.d.ts +1 -0
- package/dist/editor-sample/App/hooks/useAutosave.d.ts +8 -3
- package/dist/editor-sample/App/hooks/useIsTemplateEditorRoute.d.ts +1 -0
- package/dist/editor-sample/App/hooks/useStretch.d.ts +9 -0
- package/dist/editor-sample/App/shared/PagePreviewFrame.d.ts +17 -2
- package/dist/editor-sample/App/shared/UploadImage.d.ts +4 -0
- package/dist/editor-sample/App/shared/editor.styles.d.ts +13 -3
- package/dist/editor-sample/documents/blocks/Container/ContainerPropsSchema.d.ts +6 -4
- package/dist/editor-sample/documents/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +4 -0
- package/dist/editor-sample/documents/blocks/FormsPicker/FormsPropsSchema.d.ts +33 -2
- package/dist/editor-sample/documents/blocks/List/ListEditor.d.ts +8 -0
- package/dist/editor-sample/documents/blocks/Marquee/MarqueePropsSchema.d.ts +4 -0
- package/dist/editor-sample/documents/blocks/MenuPicker/MenuPropsSchema.d.ts +11 -0
- package/dist/editor-sample/documents/blocks/Table/TableCellEditor.d.ts +2 -1
- package/dist/editor-sample/documents/blocks/Table/TableImportDialog.styles.d.ts +15 -5
- package/dist/editor-sample/documents/blocks/Table/parseClipboardTable.d.ts +7 -0
- package/dist/editor-sample/documents/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/Timer/TimerPropsSchema.d.ts +2 -0
- package/dist/editor-sample/documents/blocks/Timer/variants/CircularProgressView.d.ts +2 -1
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/blockMenuStyles.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/brandButtonDefaults.d.ts +1 -4
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.d.ts +0 -6
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/dialogs/LinkDialog.d.ts +4 -1
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/hooks/useToolbarCommands.d.ts +16 -4
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/popovers/TableResizeOverlay.d.ts +17 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/styles.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/types.d.ts +2 -4
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/EditorBlockWrapper.d.ts +2 -3
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/TuneMenu.styles.d.ts +17 -0
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/saveAsTemplateUtils.d.ts +37 -7
- package/dist/editor-sample/documents/blocks/helpers/documentUtils.d.ts +55 -28
- package/dist/editor-sample/documents/blocks/helpers/responsiveStyle.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/helpers/variableBinding.d.ts +9 -2
- package/dist/editor-sample/documents/editor/EditorBlock.d.ts +2 -6
- package/dist/editor-sample/documents/editor/EditorContext.d.ts +87 -20
- package/dist/editor-sample/documents/editor/LazyEditorBlock.d.ts +1 -0
- package/dist/editor-sample/documents/editor/core.d.ts +510 -390
- package/dist/editor-sample/documents/editor/templateVariables.d.ts +178 -25
- package/dist/editor-sample/documents/editor/useRootFontFamily.d.ts +10 -0
- package/dist/editor-sample/utils/editorStorageKey.d.ts +2 -0
- package/dist/editor-sample/utils/localStoragePref.d.ts +2 -0
- package/dist/email-builder-core/blocks/Container/ContainerPropsSchema.d.ts +1 -1
- package/dist/email-builder-core/blocks/Container/ContainerReader.d.ts +1 -1
- package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +4 -0
- package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutReader.d.ts +1 -1
- package/dist/email-builder-core/blocks/FlexColumns/FlexColumnsPropsSchema.d.ts +3 -0
- package/dist/email-builder-core/blocks/FlexColumns/flexColumnsHelpers.d.ts +4 -2
- package/dist/email-builder-core/blocks/MenuPicker/MenuColumns.d.ts +13 -0
- package/dist/email-builder-core/blocks/MenuPicker/MenuPropsSchema.d.ts +10 -0
- package/dist/email-builder-core/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +6 -0
- package/dist/email-builder-core/index.d.ts +0 -2
- package/dist/email-builder-core/renderers/pageScripts.d.ts +0 -1
- package/dist/email-builder-core/renderers/themeTokens.d.ts +94 -132
- package/dist/host-stubs/history.d.ts +5 -0
- package/dist/host-stubs/hooks/useTenantFeatureCutoff.d.ts +8 -0
- package/dist/host-stubs/hooks/useTenantPlan.d.ts +18 -0
- package/dist/host-stubs/i18nAhdDefaults.d.ts +1 -0
- package/dist/host-stubs/modules/allSlugs/allSlugsActions.d.ts +1 -0
- package/dist/host-stubs/modules/allSlugs/allSlugsSelectors.d.ts +1 -0
- package/dist/host-stubs/modules/auth/authCurrentTenant.d.ts +6 -0
- package/dist/host-stubs/modules/forms/formsService.d.ts +3 -1
- package/dist/host-stubs/modules/forms/useFormsList.d.ts +4 -1
- package/dist/host-stubs/modules/menu/menuService.d.ts +4 -0
- package/dist/host-stubs/modules/page/pageService.d.ts +11 -0
- package/dist/host-stubs/modules/settings/settingsActions.d.ts +2 -0
- package/dist/host-stubs/modules/settings/settingsSelectors.d.ts +4 -0
- package/dist/host-stubs/modules/shared/axios/authAxios.d.ts +17 -0
- package/dist/host-stubs/modules/shared/constants.d.ts +14 -0
- package/dist/host-stubs/modules/store.d.ts +4 -0
- package/dist/host-stubs/modules/template/templateEnumerators.d.ts +19 -0
- package/dist/host-stubs/modules/tour/injectTourIntoPage.d.ts +20 -0
- package/dist/host-stubs/modules/websiteV2/propagateFromPage.d.ts +4 -0
- package/dist/host-stubs/style/icons.d.ts +57 -0
- package/dist/host-stubs/utils/dateFormats.d.ts +1 -0
- package/dist/host-stubs/view/branding/brandDefaultFont.d.ts +3 -1
- package/dist/host-stubs/view/branding/styles/BrandIcons.d.ts +9 -0
- package/dist/host-stubs/view/branding/styles/types.d.ts +76 -0
- package/dist/host-stubs/view/configurations/ConfigurationIcons.d.ts +9 -0
- package/dist/host-stubs/view/demo/DemoIcons.d.ts +9 -0
- package/dist/host-stubs/view/images/Icons.d.ts +6 -0
- package/dist/host-stubs/view/media/MediaGalleryDialog/types.d.ts +47 -0
- package/dist/host-stubs/view/media/MediaGalleryDialog/utils/fileUtils.d.ts +3 -0
- package/dist/host-stubs/view/media/MediaGalleryDialog/utils/mediaTypes.d.ts +9 -0
- package/dist/host-stubs/view/media/MediaGalleryDialog.d.ts +12 -2
- package/dist/host-stubs/view/media/styles/MediaIcons.d.ts +13 -0
- package/dist/host-stubs/view/shared/Confetti.d.ts +5 -0
- package/dist/host-stubs/view/shared/PagePilotLoader.d.ts +2 -0
- package/dist/host-stubs/view/shared/UpgradeDialog/UpgradeDialogContext.d.ts +1 -0
- package/dist/host-stubs/view/shared/common/CopyToClipboard.d.ts +7 -0
- package/dist/host-stubs/view/shared/editors/MdxEditor.d.ts +8 -0
- package/dist/host-stubs/view/shared/editors/QuillEditor.d.ts +3 -0
- package/dist/host-stubs/view/shared/editors/sanitize.d.ts +4 -0
- package/dist/host-stubs/view/shared/editors/types.d.ts +7 -0
- package/dist/host-stubs/view/shared/media/TemplatePreviewMedia.d.ts +29 -0
- package/dist/host-stubs/view/shared/modals/ConfigureDialog.d.ts +7 -0
- package/dist/host-stubs/view/shared/modals/ManageTemplateModal.d.ts +5 -0
- package/dist/host-stubs/view/shared/speech/index.d.ts +17 -0
- package/dist/host-stubs/view/shared/styles/Table.styles.d.ts +3 -0
- package/dist/host-stubs/view/template/form/TemplateFormModal.d.ts +10 -0
- package/dist/host-stubs/view/template/form/fields/types.d.ts +7 -0
- package/dist/{index-BN1BduFG.js → index-BONR8bWR.js} +1 -1
- package/dist/{index-DojXOBrb.js → index-B_cb-ZLC.js} +88415 -74153
- package/dist/index-BfIWhBCR.cjs +1561 -0
- package/dist/{index-BRq3RgdO.cjs → index-CFA3aG_U.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/render-core/combineSections.d.ts +33 -3
- package/dist/render-core/dateFormats.d.ts +14 -3
- package/dist/render-core/stubs/pickerEmptyState.d.ts +2 -0
- package/dist/render-core/stubs/styleIcons.d.ts +1 -0
- package/dist/render.cjs +272 -219
- package/dist/render.js +9856 -7949
- package/dist/style.css +1 -1
- package/dist/{xlsx-D2quXLTv.cjs → xlsx-CBpoXUEM.cjs} +1 -1
- package/dist/{xlsx-0y4dyiCO.js → xlsx-DSqBw3Em.js} +1 -1
- package/package.json +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/ResponsiveEditingBanner.d.ts +0 -13
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/BoxShadowControls.d.ts +0 -19
- package/dist/editor-sample/documents/blocks/AppBannerPicker/appBanner.styled.d.ts +0 -2
- package/dist/email-builder-core/blocks/boxShadowSchema.d.ts +0 -23
- package/dist/index-DEBoxZlq.cjs +0 -1510
|
@@ -1,143 +1,105 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Host-application theme support.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* `
|
|
9
|
-
* stylesheet in and no guarantee any host CSS exists, so everything the page
|
|
10
|
-
* needs to render dark must ship inside the fragment itself.
|
|
11
|
-
*
|
|
12
|
-
* ## Why not `filter: invert()`
|
|
13
|
-
*
|
|
14
|
-
* The previous implementation inverted the whole subtree with
|
|
15
|
-
* `filter: invert(1) hue-rotate(180deg)`. That is not dark mode: it rotates
|
|
16
|
-
* every author-picked hue 180deg, so a brand blue publishes as orange. It also
|
|
17
|
-
* forced a fragile web of counter-inversions to keep photos from looking like
|
|
18
|
-
* negatives. This module replaces it with real per-color dark values.
|
|
19
|
-
*
|
|
20
|
-
* ## How it works
|
|
21
|
-
*
|
|
22
|
-
* Each distinct authored color is issued a token. The block renders
|
|
23
|
-
* `var(--ahd-c-N, <original>)` instead of the raw color, and the token is
|
|
24
|
-
* defined once in a `<style>` scoped to the fragment root:
|
|
25
|
-
*
|
|
26
|
-
* [data-ahd-theme] { --ahd-c-3: light-dark(#0a5fcc, #5aa2ff); }
|
|
27
|
-
*
|
|
28
|
-
* `light-dark()` resolves against the nearest `color-scheme`, which the
|
|
29
|
-
* fragment root sets from the author's Light/Dark/Auto choice. That means a
|
|
30
|
-
* host can flip an embedded page by changing one attribute — no re-fetch, no
|
|
31
|
-
* media-query re-evaluation.
|
|
32
|
-
*
|
|
33
|
-
* Two independent fallbacks keep an unsupported browser rendering exactly what
|
|
34
|
-
* it renders today:
|
|
35
|
-
* 1. The `var()` fallback carries the original color, so a browser that
|
|
36
|
-
* drops the custom property still paints the light value.
|
|
37
|
-
* 2. `emitTokenCss` writes a plain light-value declaration before the
|
|
38
|
-
* `light-dark()` one, so a browser that understands custom properties but
|
|
39
|
-
* not `light-dark()` uses the light value rather than an invalid
|
|
40
|
-
* declaration.
|
|
41
|
-
*/
|
|
42
|
-
export type GeneratedTheme = 'light' | 'dark' | 'auto';
|
|
43
|
-
export declare const GENERATED_THEME_ATTR = "data-ahd-theme";
|
|
44
|
-
/**
|
|
45
|
-
* Published pages always follow the visitor's device setting.
|
|
46
|
-
*
|
|
47
|
-
* This is the only mode the renderer emits: there is no author-facing
|
|
48
|
-
* light/dark switch, because a published page has no opinion about the
|
|
49
|
-
* visitor's environment - the visitor's browser does. `light` and `dark`
|
|
50
|
-
* remain in the type because a HOST APP can override a rendered fragment at
|
|
51
|
-
* runtime by setting this attribute (see the snippet in ConfigureDialog).
|
|
52
|
-
*/
|
|
53
|
-
export declare const GENERATED_THEME_AUTO: GeneratedTheme;
|
|
54
|
-
/**
|
|
55
|
-
* Derive a dark-mode counterpart for an authored light color.
|
|
56
|
-
*
|
|
57
|
-
* The rule is: PRESERVE HUE AND SATURATION, INVERT LIGHTNESS ONLY. That is the
|
|
58
|
-
* entire difference from the `hue-rotate` approach this replaces — a brand blue
|
|
59
|
-
* stays blue and simply becomes lighter so it reads against a dark surface.
|
|
60
|
-
*
|
|
61
|
-
* Two deliberate departures from a naive `l -> 1 - l`:
|
|
62
|
-
*
|
|
63
|
-
* - Near-neutral colors (very low saturation) are the page's surfaces and text.
|
|
64
|
-
* A straight flip sends #ffffff to #000000, which is harsher than good dark
|
|
65
|
-
* UI: pure black raises perceived contrast and causes halation against light
|
|
66
|
-
* text. They're mapped into a softer range instead (about #121212 to #ededed),
|
|
67
|
-
* matching the app's own dark palette (`src/theme/colors/dark.ts` uses
|
|
68
|
-
* #121212 for background).
|
|
69
|
-
*
|
|
70
|
-
* - Saturated colors get a compressed flip. A mid-lightness brand color
|
|
71
|
-
* (l ~ 0.5) should stay close to where it is rather than swing to the
|
|
72
|
-
* opposite extreme, so the result is pulled toward a legible band and floored
|
|
73
|
-
* so it never lands too dark to see on a dark surface.
|
|
74
|
-
*
|
|
75
|
-
* Alpha is carried through untouched.
|
|
76
|
-
*
|
|
77
|
-
* Returns `null` for anything that is not a single solid color — gradients,
|
|
78
|
-
* `transparent`, keywords, unparseable values. Those are left exactly as the
|
|
79
|
-
* author wrote them (see `token`).
|
|
4
|
+
* Published output follows the host's light/dark theme through CSS custom
|
|
5
|
+
* properties (`--pp-*`) defined by `HOST_THEME_CSS`. A color adapts only when it
|
|
6
|
+
* is rendered in a theme-role slot AND its value is null or that slot's own
|
|
7
|
+
* seed default; every other value stays literal. Light = variables undefined,
|
|
8
|
+
* so each `var(--pp-x, <literal>)` resolves to the original literal.
|
|
80
9
|
*/
|
|
81
|
-
export
|
|
82
|
-
export type
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
* `transparent`, `currentColor`, a gradient, or anything unparseable. Callers
|
|
89
|
-
* can therefore pipe every color through this without pre-checking, EXCEPT
|
|
90
|
-
* that a caller which BRANCHES on whether a value is a gradient must do that
|
|
91
|
-
* classification on the raw value first (see `isGradientColor` in
|
|
92
|
-
* blocks/helpers/blockStyleHelpers).
|
|
93
|
-
*
|
|
94
|
-
* GRADIENTS ARE NEVER THEMED. An author-picked gradient renders identically
|
|
95
|
-
* in light and dark mode — it is returned byte-for-byte unchanged, so the
|
|
96
|
-
* published CSS carries the author's exact value in both themes.
|
|
97
|
-
*/
|
|
98
|
-
token(raw: string | null | undefined): string | undefined;
|
|
99
|
-
/** CSS defining every token issued so far. Empty when none, or theme light. */
|
|
100
|
-
css(theme: GeneratedTheme): string;
|
|
101
|
-
/** Number of distinct colors tokenized (for tests/diagnostics). */
|
|
102
|
-
size(): number;
|
|
10
|
+
export type ThemeRole = 'text' | 'text-strong' | 'text-muted' | 'link' | 'surface' | 'surface-alt' | 'track' | 'border' | 'border-subtle';
|
|
11
|
+
export type ThemeSlotDef = {
|
|
12
|
+
role: ThemeRole;
|
|
13
|
+
/** Values (normalized) that count as the editor-seeded default for this slot. */
|
|
14
|
+
seeds: string[];
|
|
15
|
+
/** Applied when raw is null. Without it a null raw stays undefined (inherits). */
|
|
16
|
+
nullFallback?: string;
|
|
103
17
|
};
|
|
104
|
-
export declare function
|
|
105
|
-
/**
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
18
|
+
export declare function normalizeColor(raw: string | null | undefined): string;
|
|
19
|
+
/** Central registry of theme-aware slots (see host-theme-plan.md, matrix C). */
|
|
20
|
+
export declare const THEME_SLOTS: {
|
|
21
|
+
readonly pageText: ThemeSlotDef;
|
|
22
|
+
readonly containerFill: ThemeSlotDef;
|
|
23
|
+
readonly layoutText: ThemeSlotDef;
|
|
24
|
+
readonly canvas: ThemeSlotDef;
|
|
25
|
+
readonly closeIcon: ThemeSlotDef;
|
|
26
|
+
readonly brandingText: ThemeSlotDef;
|
|
27
|
+
readonly blockText: ThemeSlotDef;
|
|
28
|
+
readonly listText: ThemeSlotDef;
|
|
29
|
+
readonly link: ThemeSlotDef;
|
|
30
|
+
readonly codeBg: ThemeSlotDef;
|
|
31
|
+
readonly quoteBorder: ThemeSlotDef;
|
|
32
|
+
readonly divider: ThemeSlotDef;
|
|
33
|
+
readonly tableText: ThemeSlotDef;
|
|
34
|
+
readonly tableBorder: ThemeSlotDef;
|
|
35
|
+
readonly tableHeaderBg: ThemeSlotDef;
|
|
36
|
+
readonly tableHeaderText: ThemeSlotDef;
|
|
37
|
+
readonly tableStripe: ThemeSlotDef;
|
|
38
|
+
readonly track: ThemeSlotDef;
|
|
39
|
+
readonly trackText: ThemeSlotDef;
|
|
40
|
+
readonly timerText: ThemeSlotDef;
|
|
41
|
+
readonly timerLabel: ThemeSlotDef;
|
|
42
|
+
readonly timerTrack: ThemeSlotDef;
|
|
43
|
+
readonly breadcrumbText: ThemeSlotDef;
|
|
44
|
+
readonly menuText: ThemeSlotDef;
|
|
45
|
+
readonly menuSurface: ThemeSlotDef;
|
|
46
|
+
readonly carouselArrow: ThemeSlotDef;
|
|
47
|
+
readonly carouselArrowBg: ThemeSlotDef;
|
|
48
|
+
readonly carouselArrowBorder: ThemeSlotDef;
|
|
49
|
+
readonly carouselDot: ThemeSlotDef;
|
|
50
|
+
readonly carouselDotActive: ThemeSlotDef;
|
|
51
|
+
readonly paginationBg: ThemeSlotDef;
|
|
52
|
+
readonly paginationText: ThemeSlotDef;
|
|
53
|
+
readonly paginationBorder: ThemeSlotDef;
|
|
54
|
+
readonly surface: ThemeSlotDef;
|
|
55
|
+
readonly surfaceLiteral: ThemeSlotDef;
|
|
56
|
+
readonly bgAdaptive: ThemeSlotDef;
|
|
57
|
+
readonly buttonText: ThemeSlotDef;
|
|
58
|
+
readonly borderAdaptive: ThemeSlotDef;
|
|
59
|
+
readonly borderSubtle: ThemeSlotDef;
|
|
60
|
+
readonly surfaceAlt: ThemeSlotDef;
|
|
61
|
+
readonly tabsRing: ThemeSlotDef;
|
|
62
|
+
};
|
|
63
|
+
export type ThemeSlotName = keyof typeof THEME_SLOTS;
|
|
64
|
+
/** Dark-mode counterpart of an authored color, or null when it should stay as authored. */
|
|
65
|
+
export declare function darkCounterpart(raw: string, kind: 'text' | 'bg'): string | null;
|
|
66
|
+
/** True when this light solid background gets a dark counterpart (so no light lock is needed). */
|
|
67
|
+
/** True when a background is effectively see-through (empty, transparent or alpha 0). */
|
|
68
|
+
export declare function isClearBg(raw: string | null | undefined): boolean;
|
|
69
|
+
export declare function isAdaptableBg(raw: string | null | undefined): boolean;
|
|
70
|
+
type GradientKind = 'text' | 'bg' | 'border';
|
|
71
|
+
export declare const gradientKindForRole: (role: ThemeRole) => GradientKind;
|
|
72
|
+
/** Theme the seed colors of every gradient in `raw`; everything else is preserved verbatim. */
|
|
73
|
+
export declare function themeGradient(raw: string, kind?: GradientKind): string;
|
|
74
|
+
/** True when every opaque stop of the gradient adapts (so no light surface lock is needed). */
|
|
75
|
+
export declare function isFullyAdaptiveGradient(raw: string, kind?: GradientKind): boolean;
|
|
76
|
+
/** Resolve a raw color for a slot: var(--pp-role, literal) when adaptable, else literal. */
|
|
77
|
+
export declare function themeSlot(raw: string | null | undefined, name: ThemeSlotName | ThemeSlotDef): string | undefined;
|
|
78
|
+
export declare function useThemeSlot(raw: string | null | undefined, name: ThemeSlotName | ThemeSlotDef): string | undefined;
|
|
79
|
+
/** Plain-function form for colors in lists/maps (no hook rules). */
|
|
80
|
+
export declare function useThemeSlotter(): typeof themeSlot;
|
|
113
81
|
/**
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
* Safe to call unconditionally: outside a publish render it returns `raw`
|
|
117
|
-
* unchanged. See `TokenRegistry.token` for what is and isn't themed — notably,
|
|
118
|
-
* gradients pass through byte-for-byte.
|
|
119
|
-
*
|
|
120
|
-
* A caller that BRANCHES on whether a color is a gradient must classify the
|
|
121
|
-
* RAW value first (via `isGradientColor`) and only then tokenize, or the
|
|
122
|
-
* branch will misfire on the returned `var(...)` string.
|
|
82
|
+
* Spread on the element that paints an author background. Locks the subtree to
|
|
83
|
+
* light so default text stays readable on author-painted surfaces.
|
|
123
84
|
*/
|
|
85
|
+
export declare function surfaceAttrs(bgRaw?: string | null, bgImage?: string | null, adaptiveSlot?: ThemeSlotName): {
|
|
86
|
+
'data-pp-surface'?: 'fixed';
|
|
87
|
+
};
|
|
124
88
|
export declare function useColorToken(raw: string | null | undefined): string | undefined;
|
|
125
|
-
/**
|
|
126
|
-
* A themer for colors that live in a LIST.
|
|
127
|
-
*
|
|
128
|
-
* `useColorToken` is a hook, so it cannot be called from inside `.map()` or any
|
|
129
|
-
* other loop — blocks whose colors come from per-row data (breadcrumb items,
|
|
130
|
-
* menu entries, pagination buttons) have no fixed number of colors to theme and
|
|
131
|
-
* would break the rules of hooks. This returns a plain function instead: call
|
|
132
|
-
* the hook once at the top of the component, then apply the result per item.
|
|
133
|
-
*
|
|
134
|
-
* Outside a publish render it is the identity function, exactly like
|
|
135
|
-
* `useColorToken`.
|
|
136
|
-
*/
|
|
137
89
|
export declare function useColorTokenizer(): (raw: string | null | undefined) => string | undefined;
|
|
138
|
-
export declare function themeAuthorHtml(html: string, registry: TokenRegistry | null): string;
|
|
139
90
|
/**
|
|
140
|
-
*
|
|
141
|
-
*
|
|
91
|
+
* Theme colors the rich-text toolbar baked into the markup (`<font color>` and
|
|
92
|
+
* inline `color:` declarations). Neutral dark text gets a light-dark() pair so it
|
|
93
|
+
* stays readable on a dark host; tinted/light colors stay as authored.
|
|
142
94
|
*/
|
|
95
|
+
export declare function themeHtmlColors(html: string): string;
|
|
96
|
+
/** Inverse of themeHtmlColors: restores the authored color so edited HTML is saved untouched. */
|
|
97
|
+
export declare function unthemeHtmlColors(html: string): string;
|
|
143
98
|
export declare function useThemedHtml(html: string): string;
|
|
99
|
+
/**
|
|
100
|
+
* Nearest marked element wins: marker rules DEFINE the variables on the element
|
|
101
|
+
* carrying the marker, descendants inherit. :where() keeps specificity at 0, so
|
|
102
|
+
* same-element conflicts are decided by source order (weakest first).
|
|
103
|
+
*/
|
|
104
|
+
export declare const HOST_THEME_CSS: string;
|
|
105
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const LEGACY_FEATURE_CUTOFFS: {
|
|
2
|
+
readonly legacyTextBlocks: Date;
|
|
3
|
+
};
|
|
4
|
+
export type LegacyFeatureKey = keyof typeof LEGACY_FEATURE_CUTOFFS;
|
|
5
|
+
/** True when the feature is hidden for this tenant (created on/after the cutoff). */
|
|
6
|
+
export declare const isLegacyFeatureHidden: (tenant: any, feature: LegacyFeatureKey) => boolean;
|
|
7
|
+
export declare const useIsLegacyFeatureHidden: (feature: LegacyFeatureKey) => boolean;
|
|
8
|
+
export default useIsLegacyFeatureHidden;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { isProOrAboveTenant } from '../../api/useTenantPlan';
|
|
2
|
+
export { isProOrAboveTenant };
|
|
3
|
+
export declare const useCurrentTenantPlan: () => {
|
|
4
|
+
currentTenant: {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
id?: string;
|
|
7
|
+
plan?: string;
|
|
8
|
+
};
|
|
9
|
+
isPlanProOrAbove: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const isTemplateLockedForPlan: (supportedPlans: string[] | undefined | null, tenantPlan: string | undefined | null) => boolean;
|
|
12
|
+
export declare const useTemplatePlanLock: () => {
|
|
13
|
+
tenantPlan: string;
|
|
14
|
+
isTemplateLocked: (template: {
|
|
15
|
+
supportedPlans?: string[];
|
|
16
|
+
} | null | undefined) => boolean;
|
|
17
|
+
};
|
|
18
|
+
export default useCurrentTenantPlan;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AHD_EN_DEFAULTS: Record<string, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { noopListActions as default } from '../_hostListShim';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { noopListSelectors as default } from '../_hostListShim';
|
|
@@ -4,7 +4,9 @@ declare const FormsService: {
|
|
|
4
4
|
count: number;
|
|
5
5
|
}>;
|
|
6
6
|
find: () => Promise<any>;
|
|
7
|
-
getViewUrl: (_id: string, _tenantId?: string) => string;
|
|
8
7
|
getCreateUrl: () => string;
|
|
8
|
+
getEditUrl: (id: string, tenantId?: string) => string;
|
|
9
|
+
getViewUrl: (id: string, tenantId?: string) => string;
|
|
10
|
+
getStatsUrl: (id: string, tenantId?: string) => string;
|
|
9
11
|
};
|
|
10
12
|
export default FormsService;
|
|
@@ -3,10 +3,13 @@ export type FormRow = {
|
|
|
3
3
|
name?: string;
|
|
4
4
|
tenantId?: string;
|
|
5
5
|
};
|
|
6
|
-
export default function useFormsList(
|
|
6
|
+
export default function useFormsList(_options?: {
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
}): {
|
|
7
9
|
forms: FormRow[];
|
|
8
10
|
options: {
|
|
9
11
|
label: string;
|
|
10
12
|
value: string;
|
|
11
13
|
}[];
|
|
14
|
+
isLoading: boolean;
|
|
12
15
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default class PageService {
|
|
2
|
+
static find(id: string): Promise<any>;
|
|
3
|
+
static upsert(data: Record<string, unknown>): Promise<any>;
|
|
4
|
+
static update(id: string, data: Record<string, unknown>): Promise<any>;
|
|
5
|
+
static create(data: Record<string, unknown>): Promise<any>;
|
|
6
|
+
/** Page listing isn't exposed by the pagepilot API client. */
|
|
7
|
+
static list(_filter?: Record<string, unknown>, _orderBy?: string | null, _limit?: number, _offset?: number): Promise<{
|
|
8
|
+
rows: any[];
|
|
9
|
+
count: number;
|
|
10
|
+
}>;
|
|
11
|
+
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
declare const settingsSelectors: {
|
|
2
|
+
selectRaw: (_state: unknown) => any;
|
|
2
3
|
selectSettings: (_state: unknown) => any;
|
|
3
4
|
selectBranding: (_state: unknown) => any;
|
|
5
|
+
selectInitLoading: (_state: unknown) => boolean;
|
|
6
|
+
selectSaveLoading: (_state: unknown) => boolean;
|
|
7
|
+
selectBrandingLoaded: (_state: unknown) => boolean;
|
|
4
8
|
};
|
|
5
9
|
export default settingsSelectors;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type AxiosLikeConfig = {
|
|
2
|
+
headers?: Record<string, string>;
|
|
3
|
+
params?: Record<string, unknown>;
|
|
4
|
+
signal?: AbortSignal;
|
|
5
|
+
};
|
|
6
|
+
type AxiosLikeResponse<T = any> = {
|
|
7
|
+
data: T;
|
|
8
|
+
status: number;
|
|
9
|
+
};
|
|
10
|
+
declare const authAxios: {
|
|
11
|
+
get: <T = any>(url: string, config?: AxiosLikeConfig) => Promise<AxiosLikeResponse<T>>;
|
|
12
|
+
delete: <T = any>(url: string, config?: AxiosLikeConfig) => Promise<AxiosLikeResponse<T>>;
|
|
13
|
+
post: <T = any>(url: string, body?: unknown, config?: AxiosLikeConfig) => Promise<AxiosLikeResponse<T>>;
|
|
14
|
+
put: <T = any>(url: string, body?: unknown, config?: AxiosLikeConfig) => Promise<AxiosLikeResponse<T>>;
|
|
15
|
+
patch: <T = any>(url: string, body?: unknown, config?: AxiosLikeConfig) => Promise<AxiosLikeResponse<T>>;
|
|
16
|
+
};
|
|
17
|
+
export default authAxios;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const CR_TENANT_ID: string | undefined;
|
|
2
|
+
export declare const STUDIO_TENANT_ID: string | undefined;
|
|
3
|
+
export declare const MIN_CHAR_LIMIT = 50;
|
|
4
|
+
export declare const MAX_CHAR_LIMIT = 200;
|
|
5
|
+
export declare const DEFAULT_CALENDLY_URL = "https://calendly.com/ishaan-fabbuilder/30min";
|
|
6
|
+
export declare const DOCS_BASE_URL = "https://fab-builder.github.io/pagepilot-vanilla-react-app";
|
|
7
|
+
export declare const DOCS_LINK_PAGE_TO_MENU = "https://fab-builder.github.io/pagepilot-vanilla-react-app/pages/link-page-to-menu";
|
|
8
|
+
export declare const DOCS_TEMPLATE_VARIABLES = "https://fab-builder.github.io/pagepilot-vanilla-react-app/pages/template-variables";
|
|
9
|
+
export declare const DOCS_WEBINAR_REGISTRATION = "https://fab-builder.github.io/pagepilot-vanilla-react-app/webinar#registration";
|
|
10
|
+
export declare const DOCS_WEBINAR_PAID = "https://fab-builder.github.io/pagepilot-vanilla-react-app/webinar#paid-webinar";
|
|
11
|
+
export declare const DOCS_PREVIEW_MODE = "https://fab-builder.github.io/pagepilot-vanilla-react-app/pages/fetch-pages#preview-mode";
|
|
12
|
+
export declare const PRODUCT_DOCS_BASE_URL = "https://pagepilot-docs.fabbuilder.com";
|
|
13
|
+
export declare const FORM_BUILDER_API_BASE = "https://cs.fabbuilder.com/cs-app/form-builder/api";
|
|
14
|
+
export declare const FORM_BUILDER_FE_BASE = "https://cs-app-form-builder-fe.web.app";
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
export type AppDispatch = (action: unknown) => void;
|
|
2
2
|
declare const getStore: () => any;
|
|
3
|
+
/** Host router history — none in the standalone build (navigation is a no-op). */
|
|
4
|
+
export declare const getHistory: () => {
|
|
5
|
+
push: (path: string) => void;
|
|
6
|
+
} | null;
|
|
3
7
|
export default getStore;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum TemplateVisibility {
|
|
2
|
+
Global = "global",
|
|
3
|
+
Private = "private"
|
|
4
|
+
}
|
|
5
|
+
declare const templateEnumerators: {
|
|
6
|
+
type: string[];
|
|
7
|
+
visibility: string[];
|
|
8
|
+
tags: string[];
|
|
9
|
+
pageCategory: string[];
|
|
10
|
+
tagsByType: {
|
|
11
|
+
page: string[];
|
|
12
|
+
tour: string[];
|
|
13
|
+
banner: string[];
|
|
14
|
+
tooltip: string[];
|
|
15
|
+
appbanner: string[];
|
|
16
|
+
'app-banner': string[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default templateEnumerators;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const stripAhdIntegration: (html: string) => string;
|
|
2
|
+
/** Returns the exact AHD integration block from a chunk of HTML, or '' if absent. */
|
|
3
|
+
export declare const extractAhdIntegrationBlock: (html: string) => string;
|
|
4
|
+
export declare const buildAhdIntegrationSnippet: (tenantId: string, slug: string) => string;
|
|
5
|
+
export declare const injectAhdIntegration: (html: string, slug: string, tenantId?: string) => string;
|
|
6
|
+
type LinkedPageSources = {
|
|
7
|
+
tourData?: any;
|
|
8
|
+
record?: any;
|
|
9
|
+
searchParams?: URLSearchParams | null;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Resolves the linked page's slug and id from tour data, record, and URL search params
|
|
13
|
+
* (in that order). When `mode === 'remove'`, strips the AHD integration block from the
|
|
14
|
+
* linked page's first section. Otherwise (re)injects it.
|
|
15
|
+
*/
|
|
16
|
+
export declare function injectPageGuideIntoLinkedPage(tourId: string | undefined, sources: LinkedPageSources, mode?: 'inject' | 'remove'): Promise<void>;
|
|
17
|
+
/** Strips the AHD integration block from every section of the linked page. */
|
|
18
|
+
export declare const removeTourFromPage: (pageSlug: string, pageId?: string) => Promise<void>;
|
|
19
|
+
export declare const injectTourIntoPage: (pageSlug: string, _tourId?: string, pageId?: string) => Promise<void>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { SvgIconProps } from '@mui/material/SvgIcon';
|
|
2
|
+
export declare const BrowserIcon: {
|
|
3
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
muiName: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const RedoIcon: {
|
|
7
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
muiName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const UndoIcon: {
|
|
11
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
muiName: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const GridDotsOuter: {
|
|
15
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
muiName: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const BracketsIcon: {
|
|
19
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
muiName: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const ClipBoardIcon: {
|
|
23
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
muiName: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const ListIcon: {
|
|
27
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
muiName: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const CodeIcon: {
|
|
31
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
muiName: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const DotsGridIcon: {
|
|
35
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
muiName: string;
|
|
37
|
+
};
|
|
38
|
+
export declare const RollerBrushIcon: {
|
|
39
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
muiName: string;
|
|
41
|
+
};
|
|
42
|
+
export declare const AlignLeftIcon: {
|
|
43
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
muiName: string;
|
|
45
|
+
};
|
|
46
|
+
export declare const AlignCenterIcon: {
|
|
47
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
muiName: string;
|
|
49
|
+
};
|
|
50
|
+
export declare const AlignRightIcon: {
|
|
51
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
muiName: string;
|
|
53
|
+
};
|
|
54
|
+
export declare const AlignJustifyIcon: {
|
|
55
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
muiName: string;
|
|
57
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../render-core/dateFormats';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { BrandTypography, BrandTypographyLevel, DEFAULT_BRAND_FONT_KEY } from './styles/types';
|
|
2
|
+
export { DEFAULT_BRAND_FONT_KEY };
|
|
2
3
|
export declare function resolveRootFontFamily(rootFontFamily?: string | null): string;
|
|
3
4
|
export declare function getBrandDefaultFontFamily(): string;
|
|
5
|
+
export declare function getBrandTypographyLevel(_tag: keyof BrandTypography): BrandTypographyLevel;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SvgIconProps } from '@mui/material/SvgIcon';
|
|
2
|
+
export declare const InfoCircleIcon: {
|
|
3
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
muiName: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const StopIcon: {
|
|
7
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
muiName: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export type BrandColor = {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
color: string;
|
|
5
|
+
};
|
|
6
|
+
export type BrandFontWeight = '400' | '500' | '600' | '700';
|
|
7
|
+
export type BrandFont = {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
fontFamily: string;
|
|
11
|
+
weight: BrandFontWeight;
|
|
12
|
+
color: string;
|
|
13
|
+
fontSize?: number | null;
|
|
14
|
+
};
|
|
15
|
+
export type BrandLink = {
|
|
16
|
+
id: string;
|
|
17
|
+
url: string;
|
|
18
|
+
};
|
|
19
|
+
export type BrandButtonHover = {
|
|
20
|
+
enabled: boolean;
|
|
21
|
+
backgroundColor?: string | null;
|
|
22
|
+
textColor?: string | null;
|
|
23
|
+
};
|
|
24
|
+
export type BrandButtonBorder = {
|
|
25
|
+
enabled: boolean;
|
|
26
|
+
color?: string | null;
|
|
27
|
+
width?: number | null;
|
|
28
|
+
};
|
|
29
|
+
export type BrandButton = {
|
|
30
|
+
primaryColor: string;
|
|
31
|
+
textColor: string;
|
|
32
|
+
width: number | null;
|
|
33
|
+
padding: number | null;
|
|
34
|
+
fontFamily: string;
|
|
35
|
+
fontSize: number | null;
|
|
36
|
+
cornerRadius: number | null;
|
|
37
|
+
hover: BrandButtonHover;
|
|
38
|
+
border: BrandButtonBorder;
|
|
39
|
+
};
|
|
40
|
+
export type BrandAsset = {
|
|
41
|
+
url: string;
|
|
42
|
+
name: string;
|
|
43
|
+
};
|
|
44
|
+
export declare const DEFAULT_BRAND_FONT_KEY = "INTER";
|
|
45
|
+
export type BrandTypographyLevel = {
|
|
46
|
+
fontSize: number | null;
|
|
47
|
+
fontSizeTablet?: number | null;
|
|
48
|
+
fontSizeMobile?: number | null;
|
|
49
|
+
color: string | null;
|
|
50
|
+
};
|
|
51
|
+
export type BrandTypography = {
|
|
52
|
+
h1: BrandTypographyLevel;
|
|
53
|
+
h2: BrandTypographyLevel;
|
|
54
|
+
h3: BrandTypographyLevel;
|
|
55
|
+
h4: BrandTypographyLevel;
|
|
56
|
+
h5: BrandTypographyLevel;
|
|
57
|
+
h6: BrandTypographyLevel;
|
|
58
|
+
p: BrandTypographyLevel;
|
|
59
|
+
};
|
|
60
|
+
export type BrandingConfig = {
|
|
61
|
+
colors: BrandColor[];
|
|
62
|
+
backgroundColors: BrandColor[];
|
|
63
|
+
fonts: BrandFont[];
|
|
64
|
+
defaultFontFamily: string;
|
|
65
|
+
typography: BrandTypography;
|
|
66
|
+
links: BrandLink[];
|
|
67
|
+
button: BrandButton;
|
|
68
|
+
organizationLogo?: BrandAsset | null;
|
|
69
|
+
favicon?: BrandAsset | null;
|
|
70
|
+
showBranding?: boolean;
|
|
71
|
+
};
|
|
72
|
+
export declare const EMPTY_BUTTON: BrandButton;
|
|
73
|
+
export declare const EMPTY_TYPOGRAPHY_LEVEL: BrandTypographyLevel;
|
|
74
|
+
export declare const EMPTY_TYPOGRAPHY: BrandTypography;
|
|
75
|
+
export declare const DEFAULT_BRANDING: BrandingConfig;
|
|
76
|
+
export declare const isButtonEmpty: (b: BrandButton) => boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SvgIconProps } from '@mui/material/SvgIcon';
|
|
2
|
+
export declare const InfoCircleIcon: {
|
|
3
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
muiName: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const MagicWandIcon: {
|
|
7
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
muiName: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SvgIconProps } from '@mui/material/SvgIcon';
|
|
2
|
+
export declare const TabletIcon: {
|
|
3
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
muiName: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const DesktopIcon: {
|
|
7
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
muiName: string;
|
|
9
|
+
};
|
|
@@ -647,3 +647,9 @@ export declare const ImagePlusIcon: {
|
|
|
647
647
|
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
648
648
|
muiName: string;
|
|
649
649
|
};
|
|
650
|
+
export declare const TimerBlockIcon: (props: SvgIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
651
|
+
export declare const ProgressBarIcon: (props: SvgIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
652
|
+
export declare const PageLiveIcon: {
|
|
653
|
+
(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
654
|
+
muiName: string;
|
|
655
|
+
};
|