@maily-to/core 0.1.1 → 0.1.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/dist/blocks/index.js +3 -3
- package/dist/blocks/index.js.map +1 -1
- package/dist/blocks/index.mjs +3 -3
- package/dist/blocks/index.mjs.map +1 -1
- package/dist/extensions/index.js +27 -21
- package/dist/extensions/index.js.map +1 -1
- package/dist/extensions/index.mjs +27 -21
- package/dist/extensions/index.mjs.map +1 -1
- package/dist/index.js +376 -366
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +368 -358
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
- package/readme.md +3 -3
|
@@ -1362,7 +1362,7 @@ function ColorPicker(props) {
|
|
|
1362
1362
|
{
|
|
1363
1363
|
className: "mly-w-full mly-rounded-none mly-border-0 !mly-bg-transparent !mly-p-0 mly-shadow-none mly-drop-shadow-md",
|
|
1364
1364
|
sideOffset: 8,
|
|
1365
|
-
children: /* @__PURE__ */ jsxs4("div", { className: "mly-min-w-[260px] mly-rounded-xl mly-border mly-bg-white mly-p-4", children: [
|
|
1365
|
+
children: /* @__PURE__ */ jsxs4("div", { className: "mly-min-w-[260px] mly-rounded-xl mly-border mly-border-gray-200 mly-bg-white mly-p-4", children: [
|
|
1366
1366
|
/* @__PURE__ */ jsx9(
|
|
1367
1367
|
HexColorPicker,
|
|
1368
1368
|
{
|
|
@@ -1377,7 +1377,7 @@ function ColorPicker(props) {
|
|
|
1377
1377
|
alpha: true,
|
|
1378
1378
|
color,
|
|
1379
1379
|
onChange: handleColorChange,
|
|
1380
|
-
className: "mly-mt-4 mly-w-full mly-min-w-0 mly-rounded-lg mly-border mly-px-2 mly-py-1.5 mly-text-sm mly-uppercase focus-visible:mly-border-gray-400 focus-visible:mly-outline-none",
|
|
1380
|
+
className: "mly-mt-4 mly-w-full mly-min-w-0 mly-rounded-lg mly-border mly-border-gray-200 mly-px-2 mly-py-1.5 mly-text-sm mly-uppercase focus-visible:mly-border-gray-400 focus-visible:mly-outline-none",
|
|
1381
1381
|
prefixed: true
|
|
1382
1382
|
}
|
|
1383
1383
|
),
|
|
@@ -1631,7 +1631,7 @@ var text = {
|
|
|
1631
1631
|
var heading1 = {
|
|
1632
1632
|
title: "Heading 1",
|
|
1633
1633
|
description: "Big heading.",
|
|
1634
|
-
searchTerms: ["title", "big", "large"],
|
|
1634
|
+
searchTerms: ["h1", "title", "big", "large"],
|
|
1635
1635
|
icon: /* @__PURE__ */ jsx16(Heading1, { className: "mly-h-4 mly-w-4" }),
|
|
1636
1636
|
command: ({ editor, range }) => {
|
|
1637
1637
|
editor.chain().focus().deleteRange(range).setNode("heading", { level: 1 }).run();
|
|
@@ -1640,7 +1640,7 @@ var heading1 = {
|
|
|
1640
1640
|
var heading2 = {
|
|
1641
1641
|
title: "Heading 2",
|
|
1642
1642
|
description: "Medium heading.",
|
|
1643
|
-
searchTerms: ["subtitle", "medium"],
|
|
1643
|
+
searchTerms: ["h2", "subtitle", "medium"],
|
|
1644
1644
|
icon: /* @__PURE__ */ jsx16(Heading2, { className: "mly-h-4 mly-w-4" }),
|
|
1645
1645
|
command: ({ editor, range }) => {
|
|
1646
1646
|
editor.chain().focus().deleteRange(range).setNode("heading", { level: 2 }).run();
|
|
@@ -1649,7 +1649,7 @@ var heading2 = {
|
|
|
1649
1649
|
var heading3 = {
|
|
1650
1650
|
title: "Heading 3",
|
|
1651
1651
|
description: "Small heading.",
|
|
1652
|
-
searchTerms: ["subtitle", "small"],
|
|
1652
|
+
searchTerms: ["h3", "subtitle", "small"],
|
|
1653
1653
|
icon: /* @__PURE__ */ jsx16(Heading3, { className: "mly-h-4 mly-w-4" }),
|
|
1654
1654
|
command: ({ editor, range }) => {
|
|
1655
1655
|
editor.chain().focus().deleteRange(range).setNode("heading", { level: 3 }).run();
|
|
@@ -2463,7 +2463,7 @@ var DefaultRenderVariable = (props) => {
|
|
|
2463
2463
|
"span",
|
|
2464
2464
|
{
|
|
2465
2465
|
tabIndex: -1,
|
|
2466
|
-
className: "mly-inline-flex mly-items-center mly-gap-[var(--variable-icon-gap)] mly-rounded-full mly-border mly-px-1.5 mly-py-0.5 mly-leading-none",
|
|
2466
|
+
className: "mly-inline-flex mly-items-center mly-gap-[var(--variable-icon-gap)] mly-rounded-full mly-border mly-border-gray-200 mly-px-1.5 mly-py-0.5 mly-leading-none",
|
|
2467
2467
|
children: [
|
|
2468
2468
|
/* @__PURE__ */ jsx23(Braces, { className: "mly-size-[var(--variable-icon-size)] mly-shrink-0 mly-stroke-[2.5] mly-text-rose-600" }),
|
|
2469
2469
|
name,
|
|
@@ -2598,7 +2598,7 @@ function VariableIcon(props) {
|
|
|
2598
2598
|
"div",
|
|
2599
2599
|
{
|
|
2600
2600
|
className: cn(
|
|
2601
|
-
"mly-flex mly-size-5 mly-items-center mly-justify-center mly-rounded-md mly-border",
|
|
2601
|
+
"mly-flex mly-size-5 mly-items-center mly-justify-center mly-rounded-md mly-border mly-border-gray-200",
|
|
2602
2602
|
className
|
|
2603
2603
|
),
|
|
2604
2604
|
children
|
|
@@ -2922,15 +2922,15 @@ function Select(props) {
|
|
|
2922
2922
|
iconClassName
|
|
2923
2923
|
} = props;
|
|
2924
2924
|
const selectId = `mly${useId()}`;
|
|
2925
|
-
const content = /* @__PURE__ */ jsxs12("div", { className: "relative", children: [
|
|
2926
|
-
/* @__PURE__ */ jsx28("label", { htmlFor: selectId, className: "sr-only", children: label }),
|
|
2925
|
+
const content = /* @__PURE__ */ jsxs12("div", { className: "mly-relative", children: [
|
|
2926
|
+
/* @__PURE__ */ jsx28("label", { htmlFor: selectId, className: "mly-sr-only", children: label }),
|
|
2927
2927
|
Icon && /* @__PURE__ */ jsx28("div", { className: "mly-pointer-events-none mly-absolute mly-inset-y-0 mly-left-2 mly-z-20 mly-flex mly-items-center", children: /* @__PURE__ */ jsx28(Icon, { className: cn("mly-size-3", iconClassName) }) }),
|
|
2928
2928
|
/* @__PURE__ */ jsx28(
|
|
2929
2929
|
"select",
|
|
2930
2930
|
{
|
|
2931
2931
|
id: selectId,
|
|
2932
2932
|
className: cn(
|
|
2933
|
-
"mly-flex mly-min-h-7 mly-max-w-max mly-appearance-none mly-items-center mly-rounded-md mly-px-1.5 mly-py-0.5 mly-pr-7 mly-text-sm mly-text-midnight-gray mly-ring-offset-white mly-transition-colors hover:mly-bg-soft-gray focus-visible:mly-relative focus-visible:mly-z-10 focus-visible:mly-outline-none focus-visible:mly-ring-2 focus-visible:mly-ring-gray-400 focus-visible:mly-ring-offset-2 active:mly-bg-soft-gray",
|
|
2933
|
+
"mly-flex mly-min-h-7 mly-max-w-max mly-appearance-none mly-items-center mly-rounded-md mly-bg-white mly-px-1.5 mly-py-0.5 mly-pr-7 mly-text-sm mly-text-midnight-gray mly-ring-offset-white mly-transition-colors hover:mly-bg-soft-gray focus-visible:mly-relative focus-visible:mly-z-10 focus-visible:mly-outline-none focus-visible:mly-ring-2 focus-visible:mly-ring-gray-400 focus-visible:mly-ring-offset-2 active:mly-bg-soft-gray",
|
|
2934
2934
|
!!Icon && "mly-pl-7",
|
|
2935
2935
|
className
|
|
2936
2936
|
),
|
|
@@ -3868,8 +3868,8 @@ function ImageView(props) {
|
|
|
3868
3868
|
draggable: editor.isEditable,
|
|
3869
3869
|
"data-drag-handle": editor.isEditable,
|
|
3870
3870
|
style: __spreadValues(__spreadProps(__spreadValues({}, hasImageSrc && status === "loaded" ? __spreadValues({
|
|
3871
|
-
width: `${width}px
|
|
3872
|
-
height: `${height}px`
|
|
3871
|
+
width: width ? `${width}px` : void 0,
|
|
3872
|
+
height: height ? `${height}px` : void 0
|
|
3873
3873
|
}, resizingStyle) : {}), {
|
|
3874
3874
|
overflow: "hidden",
|
|
3875
3875
|
position: "relative",
|
|
@@ -4148,18 +4148,24 @@ var ImageExtension = TiptapImage2.extend({
|
|
|
4148
4148
|
width: {
|
|
4149
4149
|
default: "auto",
|
|
4150
4150
|
parseHTML: (element) => {
|
|
4151
|
-
|
|
4152
|
-
return width ?
|
|
4151
|
+
var _a2, _b, _c;
|
|
4152
|
+
return element.getAttribute("width") || ((_c = ((_a2 = element.style) == null ? void 0 : _a2.width) || ((_b = element.style) == null ? void 0 : _b.inlineSize)) == null ? void 0 : _c.replace(
|
|
4153
|
+
"px",
|
|
4154
|
+
""
|
|
4155
|
+
)) || null;
|
|
4153
4156
|
},
|
|
4154
|
-
renderHTML: ({ width }) => ({
|
|
4157
|
+
renderHTML: ({ width }) => ({ width })
|
|
4155
4158
|
},
|
|
4156
4159
|
height: {
|
|
4157
4160
|
default: "auto",
|
|
4158
4161
|
parseHTML: (element) => {
|
|
4159
|
-
|
|
4160
|
-
return height ?
|
|
4162
|
+
var _a2, _b, _c;
|
|
4163
|
+
return element.getAttribute("height") || ((_c = ((_a2 = element.style) == null ? void 0 : _a2.height) || ((_b = element.style) == null ? void 0 : _b.blockSize)) == null ? void 0 : _c.replace(
|
|
4164
|
+
"px",
|
|
4165
|
+
""
|
|
4166
|
+
)) || null;
|
|
4161
4167
|
},
|
|
4162
|
-
renderHTML: ({ height }) => ({
|
|
4168
|
+
renderHTML: ({ height }) => ({ height })
|
|
4163
4169
|
},
|
|
4164
4170
|
alignment: {
|
|
4165
4171
|
default: "center",
|
|
@@ -4737,14 +4743,14 @@ var CommandList = forwardRef8(function CommandList2(props, ref) {
|
|
|
4737
4743
|
),
|
|
4738
4744
|
/* @__PURE__ */ jsx35("div", { className: "mly-border-t mly-border-gray-200 mly-px-1 mly-py-3 mly-pl-4", children: /* @__PURE__ */ jsxs19("div", { className: "mly-flex mly-items-center", children: [
|
|
4739
4745
|
/* @__PURE__ */ jsxs19("p", { className: "mly-text-center mly-text-xs mly-text-gray-400", children: [
|
|
4740
|
-
/* @__PURE__ */ jsx35("kbd", { className: "mly-rounded mly-border mly-p-1 mly-px-2 mly-font-medium", children: "\u2191" }),
|
|
4741
|
-
/* @__PURE__ */ jsx35("kbd", { className: "mly-ml-1 mly-rounded mly-border mly-p-1 mly-px-2 mly-font-medium", children: "\u2193" }),
|
|
4746
|
+
/* @__PURE__ */ jsx35("kbd", { className: "mly-rounded mly-border mly-border-gray-200 mly-p-1 mly-px-2 mly-font-medium", children: "\u2191" }),
|
|
4747
|
+
/* @__PURE__ */ jsx35("kbd", { className: "mly-ml-1 mly-rounded mly-border mly-border-gray-200 mly-p-1 mly-px-2 mly-font-medium", children: "\u2193" }),
|
|
4742
4748
|
" ",
|
|
4743
4749
|
"to navigate"
|
|
4744
4750
|
] }),
|
|
4745
4751
|
/* @__PURE__ */ jsx35("span", { "aria-hidden": "true", className: "mly-select-none mly-px-1", children: "\xB7" }),
|
|
4746
4752
|
/* @__PURE__ */ jsxs19("p", { className: "mly-text-center mly-text-xs mly-text-gray-400", children: [
|
|
4747
|
-
/* @__PURE__ */ jsx35("kbd", { className: "mly-rounded mly-border mly-p-1 mly-px-1.5 mly-font-medium", children: "Enter" }),
|
|
4753
|
+
/* @__PURE__ */ jsx35("kbd", { className: "mly-rounded mly-border mly-border-gray-200 mly-p-1 mly-px-1.5 mly-font-medium", children: "Enter" }),
|
|
4748
4754
|
" ",
|
|
4749
4755
|
"to select"
|
|
4750
4756
|
] })
|