pagepilot-visual-editor 1.0.2 → 1.0.4
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/README.md +40 -17
- package/dist/PagePilotEditor.d.ts +1 -1
- package/dist/blocks-internal/block-button/src/NudegeIcons.d.ts +18 -18
- package/dist/blocks-internal/block-button/src/icons.d.ts +1 -1
- package/dist/blocks-internal/block-button/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-button-group/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-columns-container/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-container/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-divider/src/index.d.ts +1 -2
- package/dist/blocks-internal/block-grid/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-heading/src/index.d.ts +1 -2
- package/dist/blocks-internal/block-html/src/index.d.ts +1 -2
- package/dist/blocks-internal/block-iframe/src/index.d.ts +1 -2
- package/dist/blocks-internal/block-image/src/index.d.ts +1 -2
- package/dist/blocks-internal/block-logo/src/index.d.ts +1 -2
- package/dist/blocks-internal/block-stepper/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-text/src/EmailMarkdown.d.ts +2 -2
- package/dist/blocks-internal/block-text/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-video/src/index.d.ts +1 -2
- package/dist/blocks-internal/block-youtube-url/src/index.d.ts +1 -2
- package/dist/editor/Shell.d.ts +1 -2
- package/dist/editor/StatusPill.d.ts +1 -1
- package/dist/editor/Topbar.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/BlockStyleClipboardBar.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/index.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/AccessibilityToolsSidebarPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/AccordionSidebarPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/AvatarSidebarPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/ButtonGroupSidebarPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/ButtonSidebarPanel.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/CalendlySidebarPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/CarouselSidebarPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/ColumnsContainerSidebarPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/ContainerSidebarPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/DividerSidebarPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FlexColumnsSidebarPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/GridSidebarPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/HeadingSidebarPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/HtmlSidebarPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/IframeSidebarPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/ImageSidebarPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/LogoSidebarPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/MarqueeSidebarPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/PagePilotLayoutSidebarPanel.d.ts +3 -3
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/PricingAccordionSidebarPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/RatingSidebarPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/SkipLinkSidebarPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/SpacerSidebarPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/StepperSidebarPanel.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/TabsBlockSidebarPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/TextSidebarPanel.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/VideoSidebarPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/BaseSidebarPanel.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/CollapsibleSection.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/ContrastWarning.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/MediaLibraryButton.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/SectionWrapper.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/BooleanInput.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/CodeEditor.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/BaseColorInput.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Picker.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Swatch.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/index.d.ts +2 -3
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColumnWidthsInput.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontFamily.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontSizeInput.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontStyleInput.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontWeightInput.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/NumberInput.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/PaddingInput.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/RadioGroupInput.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/RadiusInput.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SliderInput.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SwitchInput.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextAlignInput.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextDecorationInput.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextDimensionInput.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextInput.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/WidthInputWithSelect.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/raw/RawSliderInput.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/MultiStylePropertyPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/SingleStylePropertyPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/EditorBehavior.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/LayersPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/icons/index.d.ts +13 -14
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/index.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/StylesPanel.d.ts +1 -2
- package/dist/editor-sample/App/InspectorDrawer/icons/index.d.ts +13 -13
- package/dist/editor-sample/App/InspectorDrawer/index.d.ts +1 -1
- package/dist/editor-sample/App/TemplatePanel/HtmlPanel.d.ts +1 -2
- package/dist/editor-sample/App/TemplatePanel/JsonPanel.d.ts +1 -2
- package/dist/editor-sample/App/TemplatePanel/helper/HighlightedCodePanel.d.ts +1 -2
- package/dist/editor-sample/App/TemplatePanel/index.d.ts +1 -2
- package/dist/editor-sample/App/TemplatePanel/pageGuide/AhdMarkerLayer.d.ts +1 -2
- package/dist/editor-sample/App/shared/AddSectionDialog.d.ts +1 -1
- package/dist/editor-sample/App/shared/PagePreviewFrame.d.ts +1 -1
- package/dist/editor-sample/App/shared/PreviewDialog.d.ts +2 -3
- package/dist/editor-sample/App/shared/SectionsDropdown.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/AccessibilityTools/AccessibilityToolsEditor.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/Accordion/AccordionEditor.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/ButtonGroup/ButtonGroupEditor.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/Carousel/CarouselEditor.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/ColumnsContainer/ColumnsContainerEditor.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/Container/ContainerEditor.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/FlexColumns/FlexColumnsEditor.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/Grid/GridEditor.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/Marquee/MarqueeEditor.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/PagePilotLayout/PagePilotLayoutEditor.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/PricingAccordion/PricingAccordionEditor.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/Rating/RatingEditor.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/SkipLink/SkipLinkEditor.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/TabsBlock/TabsBlockEditor.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlockButton.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlocksMenu.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/PlaceholderButton.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/ScopePickerMenu.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/index.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/index.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/helpers/InlineEditableText.d.ts +5 -6
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/FullscreenOverlay.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/dialogs/ImageDialog.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/dialogs/LinkDialog.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/dialogs/VideoDialog.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/index.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/popovers/ColorSwatchPopover.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/popovers/OverflowMenu.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/popovers/TableGridPicker.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/primitives/Divider.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/primitives/Dropdown.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/primitives/HoverButton.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/primitives/IconBtn.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/primitives/MenuItem.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/primitives/MicIcon.d.ts +1 -2
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/primitives/NoteIcon.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/helpers/TemplateTokenOverlay.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/EditorBlockWrapper.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/ReaderBlockWrapper.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/TuneMenu.d.ts +1 -2
- package/dist/editor-sample/documents/editor/EditorBlock.d.ts +1 -1
- package/dist/editor-sample/documents/editor/LazyEditorBlock.d.ts +1 -2
- package/dist/email-builder-core/Reader/core.d.ts +2 -3
- package/dist/email-builder-core/blocks/AccessibilityTools/AccessibilityToolsReader.d.ts +1 -2
- package/dist/email-builder-core/blocks/Accordion/AccordionReader.d.ts +1 -2
- package/dist/email-builder-core/blocks/ButtonGroup/ButtonGroupReader.d.ts +1 -2
- package/dist/email-builder-core/blocks/Calendly/CalendlyReader.d.ts +1 -1
- package/dist/email-builder-core/blocks/Carousel/CarouselReader.d.ts +1 -2
- package/dist/email-builder-core/blocks/ColumnsContainer/ColumnsContainerReader.d.ts +1 -2
- package/dist/email-builder-core/blocks/Container/ContainerReader.d.ts +1 -2
- package/dist/email-builder-core/blocks/FlexColumns/FlexColumnsReader.d.ts +1 -1
- package/dist/email-builder-core/blocks/Grid/GridReader.d.ts +1 -2
- package/dist/email-builder-core/blocks/Marquee/MarqueeReader.d.ts +1 -2
- package/dist/email-builder-core/blocks/PagePilotLayout/PagePilotLayoutReader.d.ts +1 -1
- package/dist/email-builder-core/blocks/PricingAccordion/PricingAccordionReader.d.ts +1 -2
- package/dist/email-builder-core/blocks/Rating/RatingReader.d.ts +1 -2
- package/dist/email-builder-core/blocks/SkipLink/SkipLinkReader.d.ts +1 -2
- package/dist/email-builder-core/blocks/TabsBlock/TabsBlockReader.d.ts +1 -2
- package/dist/host-stubs/view/images/Icons.d.ts +186 -186
- package/dist/host-stubs/view/shared/modals/PopupConfirm.d.ts +1 -1
- package/package.json +15 -7
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# pagepilot-visual-editor
|
|
2
2
|
|
|
3
3
|
A standalone, prop-driven **React page-type visual editor**. Drop
|
|
4
4
|
`<PagePilotEditor />` into your host application, pass the host record through
|
|
@@ -15,24 +15,47 @@ everything else.
|
|
|
15
15
|
## Install
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
npm install
|
|
18
|
+
npm install pagepilot-visual-editor
|
|
19
19
|
# or
|
|
20
|
-
pnpm add
|
|
20
|
+
pnpm add pagepilot-visual-editor
|
|
21
21
|
# or
|
|
22
|
-
yarn add
|
|
22
|
+
yarn add pagepilot-visual-editor
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
Peer dependencies (your host should provide these):
|
|
26
26
|
|
|
27
27
|
| Peer | Range | Notes |
|
|
28
28
|
|---|---|---|
|
|
29
|
-
| `react` |
|
|
30
|
-
| `react-dom` |
|
|
29
|
+
| `react` | `^18.0.0 \|\| ^19.0.0` | React 18 and 19 both supported |
|
|
30
|
+
| `react-dom` | `^18.0.0 \|\| ^19.0.0` | **Must be the exact same version as `react`** |
|
|
31
31
|
| `@mui/material` | `>=5` | v6 tested; v5 works |
|
|
32
32
|
| `@mui/icons-material` | `>=5` | |
|
|
33
33
|
| `@emotion/react` | `>=11` | Required by MUI |
|
|
34
34
|
| `@emotion/styled` | `>=11` | Required by MUI |
|
|
35
35
|
|
|
36
|
+
> **Avoiding "Incompatible React versions" at runtime**
|
|
37
|
+
>
|
|
38
|
+
> npm 7+ auto-installs peer deps, which can pull `react-dom@latest` into your
|
|
39
|
+
> app even when your `react` is pinned to an older patch. React refuses to
|
|
40
|
+
> boot when the two versions differ. Force alignment by adding this to your
|
|
41
|
+
> host app's `package.json`:
|
|
42
|
+
>
|
|
43
|
+
> ```json
|
|
44
|
+
> {
|
|
45
|
+
> "overrides": {
|
|
46
|
+
> "react-dom": "$react",
|
|
47
|
+
> "@types/react-dom": "$@types/react"
|
|
48
|
+
> },
|
|
49
|
+
> "resolutions": {
|
|
50
|
+
> "react-dom": "$react",
|
|
51
|
+
> "@types/react-dom": "$@types/react"
|
|
52
|
+
> }
|
|
53
|
+
> }
|
|
54
|
+
> ```
|
|
55
|
+
>
|
|
56
|
+
> Then delete `node_modules` + `package-lock.json` and re-run `npm install`
|
|
57
|
+
> (`overrides` is npm/pnpm, `resolutions` is yarn — safe to keep both).
|
|
58
|
+
|
|
36
59
|
**Also required at runtime** (not currently listed as a peer, but the built
|
|
37
60
|
bundle keeps them external — install these alongside the peers above):
|
|
38
61
|
|
|
@@ -52,7 +75,7 @@ npm install zod
|
|
|
52
75
|
## Quick start
|
|
53
76
|
|
|
54
77
|
```tsx
|
|
55
|
-
import { PagePilotEditor } from "
|
|
78
|
+
import { PagePilotEditor } from "pagepilot-visual-editor";
|
|
56
79
|
|
|
57
80
|
export default function PageEditorScreen() {
|
|
58
81
|
const [record, setRecord] = useState(initialRecord);
|
|
@@ -394,7 +417,7 @@ import {
|
|
|
394
417
|
PagePilotEditor,
|
|
395
418
|
pagePilotEditorDarkTheme,
|
|
396
419
|
pagePilotEditorLightTheme,
|
|
397
|
-
} from "
|
|
420
|
+
} from "pagepilot-visual-editor";
|
|
398
421
|
|
|
399
422
|
// Built-in themes — these are full MUI Theme objects.
|
|
400
423
|
<PagePilotEditor mode="dark" />
|
|
@@ -443,7 +466,7 @@ Two ways:
|
|
|
443
466
|
import {
|
|
444
467
|
setPagePilotEditorTranslations,
|
|
445
468
|
resetPagePilotEditorTranslations,
|
|
446
|
-
} from "
|
|
469
|
+
} from "pagepilot-visual-editor";
|
|
447
470
|
|
|
448
471
|
setPagePilotEditorTranslations(myDict); // merges on top of defaults
|
|
449
472
|
resetPagePilotEditorTranslations(); // back to English defaults
|
|
@@ -479,7 +502,7 @@ Hide any of them via the `blocks` prop. Tile labels can be re-translated via `tr
|
|
|
479
502
|
The original Pagepilot `EditorContext` Zustand store is re-exported under the `EditorContext` namespace so advanced consumers can drive document state imperatively from outside the component:
|
|
480
503
|
|
|
481
504
|
```ts
|
|
482
|
-
import { EditorContext } from "
|
|
505
|
+
import { EditorContext } from "pagepilot-visual-editor";
|
|
483
506
|
|
|
484
507
|
EditorContext.setDocument({ root: ... });
|
|
485
508
|
EditorContext.resetDocument(myDoc);
|
|
@@ -490,7 +513,7 @@ EditorContext.editorStateStore; // raw Zustand store
|
|
|
490
513
|
The built-in Reader is also re-exported so you can render saved documents outside the editor:
|
|
491
514
|
|
|
492
515
|
```ts
|
|
493
|
-
import { Reader, renderToStaticMarkup } from "
|
|
516
|
+
import { Reader, renderToStaticMarkup } from "pagepilot-visual-editor";
|
|
494
517
|
|
|
495
518
|
const html = renderToStaticMarkup(myDoc, { rootBlockId: "root" });
|
|
496
519
|
```
|
|
@@ -501,26 +524,26 @@ const html = renderToStaticMarkup(myDoc, { rootBlockId: "root" });
|
|
|
501
524
|
|
|
502
525
|
```ts
|
|
503
526
|
// Component + imperative document setters
|
|
504
|
-
export { PagePilotEditor, setDocument, resetDocument } from "
|
|
527
|
+
export { PagePilotEditor, setDocument, resetDocument } from "pagepilot-visual-editor";
|
|
505
528
|
|
|
506
529
|
// Themes
|
|
507
|
-
export { pagePilotEditorDarkTheme, pagePilotEditorLightTheme } from "
|
|
530
|
+
export { pagePilotEditorDarkTheme, pagePilotEditorLightTheme } from "pagepilot-visual-editor";
|
|
508
531
|
|
|
509
532
|
// Translation helpers
|
|
510
533
|
export {
|
|
511
534
|
setPagePilotEditorTranslations,
|
|
512
535
|
resetPagePilotEditorTranslations,
|
|
513
|
-
} from "
|
|
536
|
+
} from "pagepilot-visual-editor";
|
|
514
537
|
|
|
515
538
|
// Reader / renderer
|
|
516
539
|
export {
|
|
517
540
|
Reader, ReaderBlock,
|
|
518
541
|
renderToStaticMarkup,
|
|
519
542
|
ReaderBlockSchema, ReaderDocumentSchema,
|
|
520
|
-
} from "
|
|
543
|
+
} from "pagepilot-visual-editor";
|
|
521
544
|
|
|
522
545
|
// Imperative store access
|
|
523
|
-
export * as EditorContext from "
|
|
546
|
+
export * as EditorContext from "pagepilot-visual-editor";
|
|
524
547
|
|
|
525
548
|
// Types
|
|
526
549
|
export type {
|
|
@@ -528,7 +551,7 @@ export type {
|
|
|
528
551
|
EditorPanelToggles, TopbarToggles,
|
|
529
552
|
BlockKey, BlockToggles,
|
|
530
553
|
TReaderBlock, TReaderDocument, TReaderBlockProps, TReaderProps,
|
|
531
|
-
} from "
|
|
554
|
+
} from "pagepilot-visual-editor";
|
|
532
555
|
```
|
|
533
556
|
|
|
534
557
|
---
|
|
@@ -13,5 +13,5 @@ import { PagePilotEditorProps } from './editor/types';
|
|
|
13
13
|
* `onTogglePreview` if the host provides one).
|
|
14
14
|
* - **Publish**: same payload as Save Changes, routed to `onPublish`.
|
|
15
15
|
*/
|
|
16
|
-
export declare function PagePilotEditor(props: PagePilotEditorProps): import("react").JSX.Element;
|
|
16
|
+
export declare function PagePilotEditor(props: PagePilotEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export { setDocument, resetDocument, } from './editor-sample/documents/editor/EditorContext';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export declare const ArrowLeft: (props: any) => import("react").JSX.Element;
|
|
2
|
-
export declare const ArrowNarrowDown: (props: any) => import("react").JSX.Element;
|
|
3
|
-
export declare const ArrowNarrowDownLeft: (props: any) => import("react").JSX.Element;
|
|
4
|
-
export declare const ArrowNarrowDownRight: (props: any) => import("react").JSX.Element;
|
|
5
|
-
export declare const ArrowNarrowLeft: (props: any) => import("react").JSX.Element;
|
|
6
|
-
export declare const ArrowNarrowRight: (props: any) => import("react").JSX.Element;
|
|
7
|
-
export declare const ArrowNarrowUp: (props: any) => import("react").JSX.Element;
|
|
8
|
-
export declare const ArrowNarrowUpLeft: (props: any) => import("react").JSX.Element;
|
|
9
|
-
export declare const ArrowNarrowUpRight: (props: any) => import("react").JSX.Element;
|
|
10
|
-
export declare const ArrowRight: (props: any) => import("react").JSX.Element;
|
|
11
|
-
export declare const ChevronDown: (props: any) => import("react").JSX.Element;
|
|
12
|
-
export declare const ChevronDownDouble: (props: any) => import("react").JSX.Element;
|
|
13
|
-
export declare const ChevronLeft: (props: any) => import("react").JSX.Element;
|
|
14
|
-
export declare const ChevronLeftDouble: (props: any) => import("react").JSX.Element;
|
|
15
|
-
export declare const ChevronRight: (props: any) => import("react").JSX.Element;
|
|
16
|
-
export declare const ChevronRightDouble: (props: any) => import("react").JSX.Element;
|
|
17
|
-
export declare const ChevronUp: (props: any) => import("react").JSX.Element;
|
|
18
|
-
export declare const ChevronUpDouble: (props: any) => import("react").JSX.Element;
|
|
1
|
+
export declare const ArrowLeft: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const ArrowNarrowDown: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const ArrowNarrowDownLeft: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const ArrowNarrowDownRight: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const ArrowNarrowLeft: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const ArrowNarrowRight: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const ArrowNarrowUp: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const ArrowNarrowUpLeft: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const ArrowNarrowUpRight: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const ArrowRight: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const ChevronDown: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const ChevronDownDouble: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const ChevronLeft: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const ChevronLeftDouble: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const ChevronRight: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const ChevronRightDouble: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const ChevronUp: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const ChevronUpDouble: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -142,4 +142,4 @@ export declare const ButtonPropsDefaults: {
|
|
|
142
142
|
readonly goToStep: "";
|
|
143
143
|
readonly postMessageEvent: "";
|
|
144
144
|
};
|
|
145
|
-
export declare function Button({ style, props }: ButtonProps): import("react").JSX.Element;
|
|
145
|
+
export declare function Button({ style, props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -31,5 +31,5 @@ type TButton = React.JSX.Element | React.JSX.Element[] | null;
|
|
|
31
31
|
export type ButtonGroupProps = z.infer<typeof ButtonGroupPropsSchema> & {
|
|
32
32
|
buttons?: TButton[];
|
|
33
33
|
};
|
|
34
|
-
export declare function ButtonGroup({ style, buttons, props }: ButtonGroupProps):
|
|
34
|
+
export declare function ButtonGroup({ style, buttons, props }: ButtonGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
35
35
|
export {};
|
|
@@ -34,5 +34,5 @@ type TColumn = React.JSX.Element | React.JSX.Element[] | null;
|
|
|
34
34
|
export type ColumnsContainerProps = z.infer<typeof ColumnsContainerPropsSchema> & {
|
|
35
35
|
columns?: TColumn[];
|
|
36
36
|
};
|
|
37
|
-
export declare function ColumnsContainer({ style, columns, props }: ColumnsContainerProps):
|
|
37
|
+
export declare function ColumnsContainer({ style, columns, props }: ColumnsContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
38
38
|
export {};
|
|
@@ -69,4 +69,4 @@ export declare const ContainerPropsDefaults: {
|
|
|
69
69
|
readonly width: 300;
|
|
70
70
|
readonly alignment: "left";
|
|
71
71
|
};
|
|
72
|
-
export declare function Container({ style, props, children }: ContainerProps):
|
|
72
|
+
export declare function Container({ style, props, children }: ContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { z } from 'zod';
|
|
3
2
|
export declare const DividerPropsSchema: z.ZodObject<{
|
|
4
3
|
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -20,4 +19,4 @@ export declare const DividerPropsDefaults: {
|
|
|
20
19
|
lineHeight: number;
|
|
21
20
|
lineColor: string;
|
|
22
21
|
};
|
|
23
|
-
export declare function Divider({ style, props }: DividerProps):
|
|
22
|
+
export declare function Divider({ style, props }: DividerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -28,5 +28,5 @@ type TCell = React.JSX.Element | React.JSX.Element[] | null;
|
|
|
28
28
|
export type GridProps = z.infer<typeof GridPropsSchema> & {
|
|
29
29
|
cells?: TCell[];
|
|
30
30
|
};
|
|
31
|
-
export declare function Grid({ style, cells, props }: GridProps):
|
|
31
|
+
export declare function Grid({ style, cells, props }: GridProps): import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { z } from 'zod';
|
|
3
2
|
export declare const HeadingPropsSchema: z.ZodObject<{
|
|
4
3
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -96,4 +95,4 @@ export declare const HeadingPropsDefaults: {
|
|
|
96
95
|
readonly url: "";
|
|
97
96
|
readonly openInNewTab: false;
|
|
98
97
|
};
|
|
99
|
-
export declare function Heading({ props, style }: HeadingProps):
|
|
98
|
+
export declare function Heading({ props, style }: HeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { z } from 'zod';
|
|
3
2
|
export declare const HtmlPropsSchema: z.ZodObject<{
|
|
4
3
|
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -53,4 +52,4 @@ export declare const HtmlPropsSchema: z.ZodObject<{
|
|
|
53
52
|
}, z.core.$strip>>>;
|
|
54
53
|
}, z.core.$strip>;
|
|
55
54
|
export type HtmlProps = z.infer<typeof HtmlPropsSchema>;
|
|
56
|
-
export declare function Html({ style, props }: HtmlProps):
|
|
55
|
+
export declare function Html({ style, props }: HtmlProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { z } from 'zod';
|
|
3
2
|
export declare const IframePropsSchema: z.ZodObject<{
|
|
4
3
|
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -23,4 +22,4 @@ export declare const IframePropsSchema: z.ZodObject<{
|
|
|
23
22
|
}, z.core.$strip>>>;
|
|
24
23
|
}, z.core.$strip>;
|
|
25
24
|
export type IframeProps = z.infer<typeof IframePropsSchema>;
|
|
26
|
-
export declare function Iframe({ style, props }: IframeProps):
|
|
25
|
+
export declare function Iframe({ style, props }: IframeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { z } from 'zod';
|
|
3
2
|
export declare const ImagePropsSchema: z.ZodObject<{
|
|
4
3
|
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -65,4 +64,4 @@ export declare const ImagePropsDefaults: {
|
|
|
65
64
|
readonly borderColor: any;
|
|
66
65
|
readonly borderWidth: any;
|
|
67
66
|
};
|
|
68
|
-
export declare function Image({ style, props }: ImageProps):
|
|
67
|
+
export declare function Image({ style, props }: ImageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { z } from 'zod';
|
|
3
2
|
export declare const LogoPropsSchema: z.ZodObject<{
|
|
4
3
|
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -61,4 +60,4 @@ export declare const LogoPropsDefaults: {
|
|
|
61
60
|
* --ahd-logo-w-mobile mobile width (≤600px)
|
|
62
61
|
* The logo CSS in renderDynamicCss reads these and applies them per breakpoint.
|
|
63
62
|
*/
|
|
64
|
-
export declare function Logo({ style, props }: LogoProps):
|
|
63
|
+
export declare function Logo({ style, props }: LogoProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -49,4 +49,4 @@ export declare const StepperPropsDefaults: {
|
|
|
49
49
|
readonly numericFontSize: 14;
|
|
50
50
|
readonly numericPosition: "below";
|
|
51
51
|
};
|
|
52
|
-
export declare function Stepper({ style, props }: StepperProps): import("react").JSX.Element;
|
|
52
|
+
export declare function Stepper({ style, props }: StepperProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
2
|
type Props = {
|
|
3
3
|
style: CSSProperties;
|
|
4
4
|
markdown: string;
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
7
|
-
export default function EmailMarkdown({ markdown, ...props }: Props):
|
|
7
|
+
export default function EmailMarkdown({ markdown, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -67,4 +67,4 @@ export type TextProps = z.infer<typeof TextPropsSchema>;
|
|
|
67
67
|
export declare const TextPropsDefaults: {
|
|
68
68
|
text: string;
|
|
69
69
|
};
|
|
70
|
-
export declare function Text({ style, props }: TextProps): import("react").JSX.Element;
|
|
70
|
+
export declare function Text({ style, props }: TextProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { z } from 'zod';
|
|
3
2
|
export declare const VideoPropsSchema: z.ZodObject<{
|
|
4
3
|
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -43,4 +42,4 @@ export declare const VideoPropsSchema: z.ZodObject<{
|
|
|
43
42
|
}, z.core.$strip>>>;
|
|
44
43
|
}, z.core.$strip>;
|
|
45
44
|
export type VideoProps = z.infer<typeof VideoPropsSchema>;
|
|
46
|
-
export declare function Video({ style, props }: VideoProps):
|
|
45
|
+
export declare function Video({ style, props }: VideoProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { z } from 'zod';
|
|
3
2
|
export declare const YouTubeUrlPropsSchema: z.ZodObject<{
|
|
4
3
|
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -29,4 +28,4 @@ export declare const YouTubeUrlPropsSchema: z.ZodObject<{
|
|
|
29
28
|
}, z.core.$strip>>>;
|
|
30
29
|
}, z.core.$strip>;
|
|
31
30
|
export type YouTubeUrlProps = z.infer<typeof YouTubeUrlPropsSchema>;
|
|
32
|
-
export declare function YouTubeUrl({ style, props }: YouTubeUrlProps):
|
|
31
|
+
export declare function YouTubeUrl({ style, props }: YouTubeUrlProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/editor/Shell.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PagePilotEditorProps } from './types';
|
|
2
|
-
import * as React from "react";
|
|
3
2
|
export default function Shell({ record, contentMetadata, behaviour, steps, sections, activeStepIndex, panels, title, recordTitle, recordStatus, headerExtra, children, onUpdateRecord, onChange, onSaveChanges, onPublish, onPublishMenu, renderPublish, onBack, onTogglePreview, onBackgroundChange, onNavigateBranding, onAddSection, topbar, mode, onToggleMode, }: PagePilotEditorProps & {
|
|
4
3
|
mode?: "light" | "dark";
|
|
5
4
|
onToggleMode?: () => void;
|
|
6
|
-
}):
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
package/dist/editor/Topbar.d.ts
CHANGED
|
@@ -24,4 +24,4 @@ export interface TopbarProps {
|
|
|
24
24
|
/** Disables Save Changes when false — the user has nothing to save. */
|
|
25
25
|
isDirty?: boolean;
|
|
26
26
|
}
|
|
27
|
-
export default function Topbar({ toggles, title, recordTitle, recordStatus, onBack, onSave, onPublish, onPublishMenu, publishSlot, onPreview, onToggleFullscreen, isFullscreen, onOpenMoreMenu, sectionsDropdown, mode, onToggleMode, isDirty, }: TopbarProps):
|
|
27
|
+
export default function Topbar({ toggles, title, recordTitle, recordStatus, onBack, onSave, onPublish, onPublishMenu, publishSlot, onPreview, onToggleFullscreen, isFullscreen, onOpenMoreMenu, sectionsDropdown, mode, onToggleMode, isDirty, }: TopbarProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/BlockStyleClipboardBar.d.ts
CHANGED
|
@@ -12,5 +12,5 @@ type Props = {
|
|
|
12
12
|
* is enabled only when the clipboard's kind (section vs block) matches the
|
|
13
13
|
* currently-selected block so we never smear incompatible shapes.
|
|
14
14
|
*/
|
|
15
|
-
export default function BlockStyleClipboardBar({ blockType, data, onApply }: Props): import("react").JSX.Element;
|
|
15
|
+
export default function BlockStyleClipboardBar({ blockType, data, onApply }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { AccessibilityToolsProps } from '../../../../../email-builder-core/blocks/AccessibilityTools/AccessibilityToolsPropsSchema';
|
|
3
2
|
type Props = {
|
|
4
3
|
data: AccessibilityToolsProps;
|
|
5
4
|
setData: (d: AccessibilityToolsProps) => void;
|
|
6
5
|
};
|
|
7
|
-
export default function AccessibilityToolsSidebarPanel({ data, setData }: Props):
|
|
6
|
+
export default function AccessibilityToolsSidebarPanel({ data, setData }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { AccordionProps } from '../../../../documents/blocks/Accordion/AccordionPropsSchema';
|
|
3
2
|
type Props = {
|
|
4
3
|
data: AccordionProps;
|
|
5
4
|
setData: (v: AccordionProps) => void;
|
|
6
5
|
};
|
|
7
|
-
export default function AccordionSidebarPanel({ data, setData }: Props):
|
|
6
|
+
export default function AccordionSidebarPanel({ data, setData }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { AvatarProps } from '@usewaypoint/block-avatar';
|
|
3
2
|
type AvatarSidebarPanelProps = {
|
|
4
3
|
data: AvatarProps;
|
|
5
4
|
setData: (v: AvatarProps) => void;
|
|
6
5
|
};
|
|
7
|
-
export default function AvatarSidebarPanel({ data, setData }: AvatarSidebarPanelProps):
|
|
6
|
+
export default function AvatarSidebarPanel({ data, setData }: AvatarSidebarPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { ButtonGroupEditorProps } from '../../../../documents/blocks/ButtonGroup/ButtonGroupPropsSchema';
|
|
3
2
|
type Props = {
|
|
4
3
|
data: ButtonGroupEditorProps;
|
|
5
4
|
setData: (v: ButtonGroupEditorProps) => void;
|
|
6
5
|
};
|
|
7
|
-
export default function ButtonGroupSidebarPanel({ data, setData }: Props):
|
|
6
|
+
export default function ButtonGroupSidebarPanel({ data, setData }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -3,5 +3,5 @@ type ButtonSidebarPanelProps = {
|
|
|
3
3
|
data: ButtonProps;
|
|
4
4
|
setData: (v: ButtonProps) => void;
|
|
5
5
|
};
|
|
6
|
-
export default function ButtonSidebarPanel({ data, setData }: ButtonSidebarPanelProps): import("react").JSX.Element;
|
|
6
|
+
export default function ButtonSidebarPanel({ data, setData }: ButtonSidebarPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { CalendlyProps } from '../../../../../email-builder-core/blocks/Calendly/CalendlyPropsSchema';
|
|
3
2
|
type CalendlySidebarPanelProps = {
|
|
4
3
|
data: CalendlyProps;
|
|
5
4
|
setData: (v: CalendlyProps) => void;
|
|
6
5
|
};
|
|
7
|
-
export default function CalendlySidebarPanel({ data, setData }: CalendlySidebarPanelProps):
|
|
6
|
+
export default function CalendlySidebarPanel({ data, setData }: CalendlySidebarPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { CarouselProps } from '../../../../documents/blocks/Carousel/CarouselPropsSchema';
|
|
3
2
|
type Props = {
|
|
4
3
|
data: CarouselProps;
|
|
5
4
|
setData: (v: CarouselProps) => void;
|
|
6
5
|
};
|
|
7
|
-
export default function CarouselSidebarPanel({ data, setData }: Props):
|
|
6
|
+
export default function CarouselSidebarPanel({ data, setData }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { ColumnsContainerProps } from '../../../../documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema';
|
|
3
2
|
type ColumnsContainerPanelProps = {
|
|
4
3
|
data: ColumnsContainerProps;
|
|
5
4
|
setData: (v: ColumnsContainerProps) => void;
|
|
6
5
|
};
|
|
7
|
-
export default function ColumnsContainerPanel({ data, setData }: ColumnsContainerPanelProps):
|
|
6
|
+
export default function ColumnsContainerPanel({ data, setData }: ColumnsContainerPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { ContainerProps } from '../../../../documents/blocks/Container/ContainerPropsSchema';
|
|
3
2
|
type ContainerSidebarPanelProps = {
|
|
4
3
|
data: ContainerProps;
|
|
5
4
|
setData: (v: ContainerProps) => void;
|
|
6
5
|
};
|
|
7
|
-
export default function ContainerSidebarPanel({ data, setData }: ContainerSidebarPanelProps):
|
|
6
|
+
export default function ContainerSidebarPanel({ data, setData }: ContainerSidebarPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { DividerProps } from '../../../../../blocks-internal/block-divider/src/index.tsx';
|
|
3
2
|
type DividerSidebarPanelProps = {
|
|
4
3
|
data: DividerProps;
|
|
5
4
|
setData: (v: DividerProps) => void;
|
|
6
5
|
};
|
|
7
|
-
export default function DividerSidebarPanel({ data, setData }: DividerSidebarPanelProps):
|
|
6
|
+
export default function DividerSidebarPanel({ data, setData }: DividerSidebarPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { FlexColumnsProps } from '../../../../documents/blocks/FlexColumns/FlexColumnsPropsSchema';
|
|
3
2
|
type Props = {
|
|
4
3
|
data: FlexColumnsProps;
|
|
5
4
|
setData: (v: FlexColumnsProps) => void;
|
|
6
5
|
};
|
|
7
|
-
export default function FlexColumnsSidebarPanel({ data, setData }: Props):
|
|
6
|
+
export default function FlexColumnsSidebarPanel({ data, setData }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/GridSidebarPanel.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { GridEditorProps } from '../../../../documents/blocks/Grid/GridPropsSchema';
|
|
3
2
|
type GridPanelProps = {
|
|
4
3
|
data: GridEditorProps;
|
|
5
4
|
setData: (v: GridEditorProps) => void;
|
|
6
5
|
};
|
|
7
|
-
export default function GridSidebarPanel({ data, setData }: GridPanelProps):
|
|
6
|
+
export default function GridSidebarPanel({ data, setData }: GridPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { HeadingProps } from '../../../../../blocks-internal/block-heading/src/index.tsx';
|
|
3
2
|
type HeadingSidebarPanelProps = {
|
|
4
3
|
data: HeadingProps;
|
|
5
4
|
setData: (v: HeadingProps) => void;
|
|
6
5
|
};
|
|
7
|
-
export default function HeadingSidebarPanel({ data, setData }: HeadingSidebarPanelProps):
|
|
6
|
+
export default function HeadingSidebarPanel({ data, setData }: HeadingSidebarPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/HtmlSidebarPanel.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { HtmlProps } from '../../../../../blocks-internal/block-html/src/index.tsx';
|
|
3
2
|
type HtmlSidebarPanelProps = {
|
|
4
3
|
data: HtmlProps;
|
|
5
4
|
setData: (v: HtmlProps) => void;
|
|
6
5
|
};
|
|
7
|
-
export default function HtmlSidebarPanel({ data, setData }: HtmlSidebarPanelProps):
|
|
6
|
+
export default function HtmlSidebarPanel({ data, setData }: HtmlSidebarPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { IframeProps } from '../../../../../blocks-internal/block-iframe/src/index.tsx';
|
|
3
2
|
type IframeSidebarPanelProps = {
|
|
4
3
|
data: IframeProps;
|
|
5
4
|
setData: (v: IframeProps) => void;
|
|
6
5
|
};
|
|
7
|
-
export default function IframeSidebarPanel({ data, setData }: IframeSidebarPanelProps):
|
|
6
|
+
export default function IframeSidebarPanel({ data, setData }: IframeSidebarPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { ImageProps } from '../../../../../blocks-internal/block-image/src/index.tsx';
|
|
3
2
|
type ImageSidebarPanelProps = {
|
|
4
3
|
data: ImageProps;
|
|
5
4
|
setData: (v: ImageProps) => void;
|
|
6
5
|
};
|
|
7
|
-
export default function ImageSidebarPanel({ data, setData }: ImageSidebarPanelProps):
|
|
6
|
+
export default function ImageSidebarPanel({ data, setData }: ImageSidebarPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/LogoSidebarPanel.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { LogoProps } from '../../../../../blocks-internal/block-logo/src/index.tsx';
|
|
3
2
|
type LogoSidebarPanelProps = {
|
|
4
3
|
data: LogoProps;
|
|
5
4
|
setData: (v: LogoProps) => void;
|
|
6
5
|
};
|
|
7
|
-
export default function LogoSidebarPanel({ data, setData }: LogoSidebarPanelProps):
|
|
6
|
+
export default function LogoSidebarPanel({ data, setData }: LogoSidebarPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { MarqueeProps } from '../../../../documents/blocks/Marquee/MarqueePropsSchema';
|
|
3
2
|
type Props = {
|
|
4
3
|
data: MarqueeProps;
|
|
5
4
|
setData: (v: MarqueeProps) => void;
|
|
6
5
|
};
|
|
7
|
-
export default function MarqueeSidebarPanel({ data, setData }: Props):
|
|
6
|
+
export default function MarqueeSidebarPanel({ data, setData }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -9,7 +9,7 @@ type PagePilotLayoutSidebarFieldsProps = {
|
|
|
9
9
|
};
|
|
10
10
|
export declare const ColorCode: ({ hex }: {
|
|
11
11
|
hex?: string | null;
|
|
12
|
-
}) => import("react").JSX.Element;
|
|
12
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
type SettingRowProps = {
|
|
14
14
|
label: string;
|
|
15
15
|
children: ReactNode;
|
|
@@ -19,6 +19,6 @@ type SettingRowProps = {
|
|
|
19
19
|
maxHeight?: number;
|
|
20
20
|
tooltip?: string;
|
|
21
21
|
};
|
|
22
|
-
export declare const SettingRow: ({ label, children, divider, background, mt, maxHeight, tooltip, }: SettingRowProps) => import("react").JSX.Element;
|
|
23
|
-
declare function PagePilotLayoutSidebarFields({ data, setData, isTypeDemo, record, onBackgroundChange, }: PagePilotLayoutSidebarFieldsProps): import("react").JSX.Element;
|
|
22
|
+
export declare const SettingRow: ({ label, children, divider, background, mt, maxHeight, tooltip, }: SettingRowProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare function PagePilotLayoutSidebarFields({ data, setData, isTypeDemo, record, onBackgroundChange, }: PagePilotLayoutSidebarFieldsProps): import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
export default PagePilotLayoutSidebarFields;
|