@react-email/editor 1.6.1 → 1.6.2
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/dist/core/index.cjs +1 -1
- package/dist/core/index.mjs +1 -1
- package/dist/{core-DFaNZwnQ.cjs → core-CGJorPWb.cjs} +3 -2
- package/dist/{core-4eWA8YCs.mjs → core-CVnGlemA.mjs} +4 -3
- package/dist/core-CVnGlemA.mjs.map +1 -0
- package/dist/extensions/index.cjs +1 -1
- package/dist/extensions/index.mjs +1 -1
- package/dist/{extensions-BOc3UKnu.cjs → extensions-ClQGkNYn.cjs} +1 -1
- package/dist/{extensions-S3b60Xdo.mjs → extensions-CoqiOXeM.mjs} +2 -2
- package/dist/{extensions-S3b60Xdo.mjs.map → extensions-CoqiOXeM.mjs.map} +1 -1
- package/dist/index-96kvkFPM.d.mts.map +1 -1
- package/dist/index-BCfDYVR7.d.cts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +3 -3
- package/dist/{root-BpFz329d.mjs → root-KbQifo73.mjs} +8 -8
- package/dist/{root-BpFz329d.mjs.map → root-KbQifo73.mjs.map} +1 -1
- package/dist/ui/index.mjs +9 -9
- package/dist/ui/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/core-4eWA8YCs.mjs.map +0 -1
package/dist/ui/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as inlineCssToJs, i as expandShorthandProperties, o as jsToInlineCss, r as ensureBorderStyleFallback } from "../email-node-otH4jZmS.mjs";
|
|
2
2
|
import { p as loadPrismTheme } from "../focus-scopes-GzQWSxVg.mjs";
|
|
3
3
|
import { d as useEmailTheming, l as setGlobalStyles, o as getThemeComponentKey, u as stylesToCss, v as EDITOR_THEMES, x as SUPPORTED_CSS_PROPERTIES } from "../extension-DZrSm6eG.mjs";
|
|
4
|
-
import { $ as BubbleMenuButtonToolbar, A as BubbleMenuImageUnlink, At as ChevronDownIcon, B as BubbleMenuNodeSelector, C as BubbleMenuLinkDefault, Ct as Heading2Icon, D as BubbleMenuLinkForm, Dt as Columns3Icon, E as BubbleMenuLinkOpenLink, Et as Columns4Icon, F as RootWithDefault, Ft as AlignLeftIcon, G as BubbleMenuItalic, H as NodeSelectorRoot, I as BubbleMenuUppercase, It as AlignCenterIcon, J as EditorFocusScope, K as BubbleMenuItemGroup, L as BubbleMenuUnderline, M as BubbleMenuImageForm, Mt as CaseUpperIcon, N as BubbleMenuImageEditLink, Nt as BoldIcon, O as BubbleMenuLinkEditLink, Ot as Columns2Icon, P as BubbleMenuButtonDefault, Pt as AlignRightIcon, Q as BubbleMenuButtonUnlink, R as bubbleMenuTriggers, S as BubbleMenuSeparator, St as Heading3Icon, T as BubbleMenuLinkToolbar, Tt as ExternalLinkIcon, U as NodeSelectorTrigger, V as NodeSelectorContent, W as BubbleMenuLinkSelector, X as FocusScopeContext, Y as EditorFocusScopeProvider, Z as useEditorFocusScope, _ as TWO_COLUMNS, _t as MousePointerIcon, a as BUTTON, at as BubbleMenuAlignCenter, b as isInsideNode, bt as LinkIcon, c as FOUR_COLUMNS, ct as UnlinkIcon, d as H3, dt as TextIcon, et as BubbleMenuButtonForm, f as NUMBERED_LIST, ft as StrikethroughIcon, g as THREE_COLUMNS, gt as PencilIcon, h as TEXT, ht as Rows2Icon, i as BULLET_LIST, it as BubbleMenuAlignLeft, j as BubbleMenuImageToolbar, jt as CheckIcon, k as BubbleMenuImageDefault, kt as CodeIcon, l as H1, lt as UnderlineIcon, m as SECTION, mt as SplitSquareVerticalIcon, n as filterAndRankItems, nt as BubbleMenuBold, o as CODE, ot as BubbleMenuItem, p as QUOTE, pt as SquareCodeIcon, q as BubbleMenuCode, r as scoreItem, rt as BubbleMenuAlignRight, s as DIVIDER, st as useBubbleMenuContext, t as SlashCommandRoot, tt as BubbleMenuButtonEditLink, u as H2, ut as TextQuoteIcon, v as defaultSlashCommands, vt as ListOrderedIcon, w as BubbleMenuLinkUnlink, wt as Heading1Icon, x as BubbleMenu, xt as ItalicIcon, y as isAtMaxColumnsDepth, yt as ListIcon, z as BubbleMenuStrike } from "../root-
|
|
4
|
+
import { $ as BubbleMenuButtonToolbar, A as BubbleMenuImageUnlink, At as ChevronDownIcon, B as BubbleMenuNodeSelector, C as BubbleMenuLinkDefault, Ct as Heading2Icon, D as BubbleMenuLinkForm, Dt as Columns3Icon, E as BubbleMenuLinkOpenLink, Et as Columns4Icon, F as RootWithDefault, Ft as AlignLeftIcon, G as BubbleMenuItalic, H as NodeSelectorRoot, I as BubbleMenuUppercase, It as AlignCenterIcon, J as EditorFocusScope, K as BubbleMenuItemGroup, L as BubbleMenuUnderline, M as BubbleMenuImageForm, Mt as CaseUpperIcon, N as BubbleMenuImageEditLink, Nt as BoldIcon, O as BubbleMenuLinkEditLink, Ot as Columns2Icon, P as BubbleMenuButtonDefault, Pt as AlignRightIcon, Q as BubbleMenuButtonUnlink, R as bubbleMenuTriggers, S as BubbleMenuSeparator, St as Heading3Icon, T as BubbleMenuLinkToolbar, Tt as ExternalLinkIcon, U as NodeSelectorTrigger, V as NodeSelectorContent, W as BubbleMenuLinkSelector, X as FocusScopeContext, Y as EditorFocusScopeProvider, Z as useEditorFocusScope, _ as TWO_COLUMNS, _t as MousePointerIcon, a as BUTTON, at as BubbleMenuAlignCenter, b as isInsideNode, bt as LinkIcon, c as FOUR_COLUMNS, ct as UnlinkIcon, d as H3, dt as TextIcon, et as BubbleMenuButtonForm, f as NUMBERED_LIST, ft as StrikethroughIcon, g as THREE_COLUMNS, gt as PencilIcon, h as TEXT, ht as Rows2Icon, i as BULLET_LIST, it as BubbleMenuAlignLeft, j as BubbleMenuImageToolbar, jt as CheckIcon, k as BubbleMenuImageDefault, kt as CodeIcon, l as H1, lt as UnderlineIcon, m as SECTION, mt as SplitSquareVerticalIcon, n as filterAndRankItems, nt as BubbleMenuBold, o as CODE, ot as BubbleMenuItem, p as QUOTE, pt as SquareCodeIcon, q as BubbleMenuCode, r as scoreItem, rt as BubbleMenuAlignRight, s as DIVIDER, st as useBubbleMenuContext, t as SlashCommandRoot, tt as BubbleMenuButtonEditLink, u as H2, ut as TextQuoteIcon, v as defaultSlashCommands, vt as ListOrderedIcon, w as BubbleMenuLinkUnlink, wt as Heading1Icon, x as BubbleMenu, xt as ItalicIcon, y as isAtMaxColumnsDepth, yt as ListIcon, z as BubbleMenuStrike } from "../root-KbQifo73.mjs";
|
|
5
5
|
import { t as ImageIcon } from "../image-jWcRFTLT.mjs";
|
|
6
6
|
import { useCurrentEditor, useEditorState } from "@tiptap/react";
|
|
7
7
|
import * as React$1 from "react";
|
|
8
8
|
import React from "react";
|
|
9
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { NodeSelection, TextSelection } from "@tiptap/pm/state";
|
|
11
11
|
import { Slot } from "@radix-ui/react-slot";
|
|
12
12
|
//#region src/ui/icons/align-center-vertical.tsx
|
|
@@ -834,7 +834,7 @@ function BreadcrumbDefault({ segments }) {
|
|
|
834
834
|
"data-re-inspector-breadcrumb-separator": "",
|
|
835
835
|
children: "/"
|
|
836
836
|
}),
|
|
837
|
-
i === 1 && hasEllipsis && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
|
|
837
|
+
i === 1 && hasEllipsis && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
838
838
|
"data-re-inspector-breadcrumb-ellipsis": "",
|
|
839
839
|
children: "…"
|
|
840
840
|
}), /* @__PURE__ */ jsx("span", {
|
|
@@ -1337,12 +1337,12 @@ function InspectorDocument({ children }) {
|
|
|
1337
1337
|
batchSetGlobalStyle,
|
|
1338
1338
|
findStyleValue
|
|
1339
1339
|
};
|
|
1340
|
-
if (children) return /* @__PURE__ */ jsx(Fragment, { children: children(context) });
|
|
1340
|
+
if (children) return /* @__PURE__ */ jsx(Fragment$1, { children: children(context) });
|
|
1341
1341
|
return /* @__PURE__ */ jsx(InspectorDocumentDefaults, { context });
|
|
1342
1342
|
}
|
|
1343
1343
|
function InspectorDocumentDefaults({ context }) {
|
|
1344
1344
|
const { findStyleValue, setGlobalStyle } = context;
|
|
1345
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(Section, {
|
|
1345
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs(Section, {
|
|
1346
1346
|
title: "Background",
|
|
1347
1347
|
children: [/* @__PURE__ */ jsxs(PropRow, { children: [/* @__PURE__ */ jsx(Label, { children: "Color" }), /* @__PURE__ */ jsx(ColorInput, {
|
|
1348
1348
|
value: String(findStyleValue("body", "backgroundColor") ?? ""),
|
|
@@ -2484,7 +2484,7 @@ function InspectorNode({ children }) {
|
|
|
2484
2484
|
themeDefaults,
|
|
2485
2485
|
presetColors: documentColors
|
|
2486
2486
|
};
|
|
2487
|
-
if (children) return /* @__PURE__ */ jsx(Fragment, { children: children(context) });
|
|
2487
|
+
if (children) return /* @__PURE__ */ jsx(Fragment$1, { children: children(context) });
|
|
2488
2488
|
return /* @__PURE__ */ jsx(InspectorNodeDefaults, { context });
|
|
2489
2489
|
}
|
|
2490
2490
|
function getDefaultLayout(nodeType) {
|
|
@@ -2538,7 +2538,7 @@ function getDefaultLayout(nodeType) {
|
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
2540
|
function InspectorNodeDefaults({ context }) {
|
|
2541
|
-
return /* @__PURE__ */ jsx(Fragment, { children: getDefaultLayout(context.nodeType).sections.map((section) => {
|
|
2541
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: getDefaultLayout(context.nodeType).sections.map((section) => {
|
|
2542
2542
|
switch (section.type) {
|
|
2543
2543
|
case "attributes": return /* @__PURE__ */ jsx(AttributesSection, { ...context }, section.type);
|
|
2544
2544
|
case "size": return /* @__PURE__ */ jsx(SizeSection, { ...context }, section.type);
|
|
@@ -2713,11 +2713,11 @@ function InspectorText({ children }) {
|
|
|
2713
2713
|
},
|
|
2714
2714
|
presetColors: documentColors
|
|
2715
2715
|
};
|
|
2716
|
-
if (children) return /* @__PURE__ */ jsx(Fragment, { children: children(context) });
|
|
2716
|
+
if (children) return /* @__PURE__ */ jsx(Fragment$1, { children: children(context) });
|
|
2717
2717
|
return /* @__PURE__ */ jsx(InspectorTextDefaults, { context });
|
|
2718
2718
|
}
|
|
2719
2719
|
function InspectorTextDefaults({ context }) {
|
|
2720
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(TypographySection, { ...context }), context.isLinkActive && /* @__PURE__ */ jsx(LinkSection, { ...context })] });
|
|
2720
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(TypographySection, { ...context }), context.isLinkActive && /* @__PURE__ */ jsx(LinkSection, { ...context })] });
|
|
2721
2721
|
}
|
|
2722
2722
|
//#endregion
|
|
2723
2723
|
//#region src/ui/inspector/index.tsx
|