easy-email-pro-theme 1.53.0 → 1.54.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/lib/style.css CHANGED
@@ -1069,6 +1069,9 @@ THEMES:
1069
1069
  z-index: 1;
1070
1070
  top: -10000px;
1071
1071
  left: -10000px;
1072
+ }
1073
+
1074
+ .HoveringToolbar-list {
1072
1075
  padding: 3px;
1073
1076
  display: flex;
1074
1077
  align-items: center;
@@ -1084,14 +1087,14 @@ THEMES:
1084
1087
  font-size: var(--hovering-bar-icon-size);
1085
1088
  }
1086
1089
  #RichTextBar .formatButton {
1090
+ height: 100%;
1087
1091
  font-size: inherit;
1088
1092
  user-select: none;
1089
1093
  transition: background 20ms ease-in 0s;
1090
1094
  cursor: pointer;
1091
1095
  display: flex;
1092
1096
  align-items: center;
1093
- border-radius: 0px;
1094
- padding-left: 7px;
1097
+ padding-left: 8px;
1095
1098
  padding-right: 8px;
1096
1099
  white-space: nowrap;
1097
1100
  margin-right: 1px;
@@ -1360,7 +1363,6 @@ THEMES:
1360
1363
  cursor: pointer;
1361
1364
  display: flex;
1362
1365
  align-items: center;
1363
- border-radius: 0px;
1364
1366
  padding-left: 7px;
1365
1367
  padding-right: 8px;
1366
1368
  white-space: nowrap;
@@ -1457,6 +1459,65 @@ THEMES:
1457
1459
  }
1458
1460
  .presetColorItem:hover {
1459
1461
  border-color: #000;
1462
+ }
1463
+
1464
+ .RichTextField-fixed-toolbar {
1465
+ padding: 4px 8px;
1466
+ border: 1px solid #e5e6eb;
1467
+ border-bottom: none;
1468
+ background: #fff;
1469
+ --hovering-bar-icon-size: 14px;
1470
+ border-top-left-radius: 4px;
1471
+ border-top-right-radius: 4px;
1472
+ }
1473
+ .RichTextField-fixed-toolbar .RichTextBar {
1474
+ display: flex;
1475
+ flex-wrap: wrap;
1476
+ align-items: center;
1477
+ gap: 2px 0;
1478
+ /* Groups and Dividers */
1479
+ }
1480
+ .RichTextField-fixed-toolbar .RichTextBar > * {
1481
+ display: flex;
1482
+ align-items: center;
1483
+ height: 32px;
1484
+ margin: 2px 0;
1485
+ }
1486
+ .RichTextField-fixed-toolbar .RichTextBar .formatButton,
1487
+ .RichTextField-fixed-toolbar .RichTextBar .PreventFocusWrapper > .formatButton {
1488
+ padding: 0 8px;
1489
+ border-radius: 4px;
1490
+ margin: 0 1px;
1491
+ display: flex;
1492
+ align-items: center;
1493
+ }
1494
+ .RichTextField-fixed-toolbar .RichTextBar .formatButton:hover {
1495
+ background: #f3f4f6;
1496
+ }
1497
+ .RichTextField-fixed-toolbar .RichTextBar .format-active {
1498
+ background: rgba(var(--primary-6), 0.1) !important;
1499
+ color: var(--selected-color) !important;
1500
+ border-radius: 4px;
1501
+ }
1502
+ .RichTextField-fixed-toolbar .RichTextBar .FontSize,
1503
+ .RichTextField-fixed-toolbar .RichTextBar .FontFamily,
1504
+ .RichTextField-fixed-toolbar .RichTextBar .TurnInto {
1505
+ margin-right: 4px;
1506
+ padding: 0 4px;
1507
+ }
1508
+
1509
+ .RichTextField-content {
1510
+ border: 1px solid #e5e6eb;
1511
+ background: #fff;
1512
+ padding: 12px;
1513
+ border-bottom-left-radius: 4px;
1514
+ border-bottom-right-radius: 4px;
1515
+ overflow: auto;
1516
+ /* Slate overrides to make it feel more like a document */
1517
+ }
1518
+ .RichTextField-content [data-slate-editor=true] {
1519
+ min-height: 100px;
1520
+ outline: none;
1460
1521
  }._controlSection_1t3ne_1 {
1461
1522
  display: flex;
1462
1523
  flex-direction: column;
@@ -0,0 +1,2 @@
1
+ import { BlockSchema } from "../../../typings";
2
+ export declare const PageFooterSchema: BlockSchema;
@@ -0,0 +1,2 @@
1
+ import { BlockSchema } from "../../../typings";
2
+ export declare const PageHeaderSchema: BlockSchema;
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ export declare const EditorContainer: ({ children, style, }: {
3
+ children: React.ReactNode;
4
+ style?: React.CSSProperties | undefined;
5
+ }) => React.JSX.Element;
@@ -20,6 +20,7 @@ export interface ImageUploaderProps {
20
20
  enablePreview?: boolean;
21
21
  onlyPreview?: boolean;
22
22
  colSpan?: number;
23
+ pinToParent?: boolean;
23
24
  }
24
25
  declare function ImageUploader(props: ImageUploaderProps): React.JSX.Element;
25
26
  export declare const ImageUploaderField: (props: import("../enhancer").EnhancerProps & Omit<ImageUploaderProps, "onChange" | "value">) => React.JSX.Element;
@@ -1,6 +1,11 @@
1
1
  import { TextFormat } from "easy-email-pro-editor";
2
2
  import React from "react";
3
3
  import "./RichTextBar.scss";
4
- export declare const RichTextBar: ({ list, }: {
4
+ export declare const RichTextBarContext: React.Context<{
5
+ getPopupContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
6
+ }>;
7
+ export declare const RichTextBar: ({ list, wrap, getPopupContainer, }: {
5
8
  list: Array<TextFormat | React.FC>;
9
+ wrap?: boolean | undefined;
10
+ getPopupContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
6
11
  }) => React.JSX.Element;
@@ -67,8 +67,10 @@ export declare const SharedComponents: {
67
67
  StandaloneElementEditorDrawer: import("react").FC<{
68
68
  children: import("react").ReactNode;
69
69
  }>;
70
- RichTextBar: ({ list, }: {
70
+ RichTextBar: ({ list, wrap, getPopupContainer, }: {
71
71
  list: (import("easy-email-pro-editor").TextFormat | import("react").FC<{}>)[];
72
+ wrap?: boolean | undefined;
73
+ getPopupContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
72
74
  }) => import("react").JSX.Element;
73
75
  HoveringToolbar: () => import("react").JSX.Element | null;
74
76
  TextHTMLEditor: () => import("react").JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare const EDITOR_CONTAINER = "EditorContainer";
@@ -0,0 +1,2 @@
1
+ import { PageElement } from "easy-email-pro-core";
2
+ export declare const normalizeElements: (element: PageElement) => import("easy-email-pro-core").Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-email-pro-theme",
3
- "version": "1.53.0",
3
+ "version": "1.54.0",
4
4
  "description": "",
5
5
  "files": [
6
6
  "lib"