mail-editor-pancake 0.2.2 → 0.2.3
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/package.json +1 -1
- package/packages/core/dist/index.d.ts +19 -1
- package/packages/core/dist/index.js +1510 -1416
- package/packages/core/dist/index.js.map +1 -1
- package/packages/core/src/editor/Canvas.ts +39 -15
- package/packages/core/src/editor/RightPanel.ts +36 -0
- package/packages/core/src/i18n/index.ts +4 -0
- package/packages/core/src/renderer/mjml.ts +81 -2
- package/packages/core/src/types.ts +19 -1
package/package.json
CHANGED
|
@@ -754,10 +754,21 @@ export declare interface OpenImageGalleryModalOptions {
|
|
|
754
754
|
permissions?: ImageAssetPermissions;
|
|
755
755
|
}
|
|
756
756
|
|
|
757
|
-
/** 左栏组合拖入:可附带新建 Section 的 attrs
|
|
757
|
+
/** 左栏组合拖入:可附带新建 Section 的 attrs、布局和按列分发的 Block。 */
|
|
758
758
|
export declare interface PaletteDropResult {
|
|
759
|
+
/** 单列组合或落入既有列时插入的 Block。 */
|
|
759
760
|
blocks: Block[];
|
|
760
761
|
sectionAttrs?: Partial<SectionAttrs>;
|
|
762
|
+
/**
|
|
763
|
+
* 组合入口可声明要新建的 Section 布局;多列布局会始终创建独立 Section,
|
|
764
|
+
* 不会被插入到用户当前选中的单列中。
|
|
765
|
+
*/
|
|
766
|
+
sectionLayout?: SectionLayout;
|
|
767
|
+
/**
|
|
768
|
+
* 仅创建新 Section 时使用;每个数组对应一个 Column,索引与 Section 列顺序一致。
|
|
769
|
+
* 超出布局列数的数组会被忽略,缺少的列保持为空。
|
|
770
|
+
*/
|
|
771
|
+
columnBlocks?: Block[][];
|
|
761
772
|
}
|
|
762
773
|
|
|
763
774
|
/**
|
|
@@ -887,6 +898,13 @@ export declare interface SectionAttrs {
|
|
|
887
898
|
* MJML 通过相邻 `mj-column` 对称内边距实现;画布用 flex `gap` 对齐观感。
|
|
888
899
|
*/
|
|
889
900
|
columnGap?: number;
|
|
901
|
+
/**
|
|
902
|
+
* 多列在小屏堆叠为单列后,相邻列之间的纵向间距(px)。
|
|
903
|
+
* 仅在多列且未开启 `preserveColumnsOnMobile` 时生效;未设置/0 表示不额外加间距
|
|
904
|
+
* (沿用块自身 padding 形成的间距),避免改变已有邮件的移动端排版。
|
|
905
|
+
* 通过小屏媒体查询实现,不会影响桌面端行高。
|
|
906
|
+
*/
|
|
907
|
+
columnStackedGap?: number;
|
|
890
908
|
/**
|
|
891
909
|
* 本节内容区最大宽度(窄于邮件 `meta.width` 时居中)。支持 `480`、`480px`、`90%`;留空则与邮件同宽。
|
|
892
910
|
*/
|