@daisychainapp/maily-to-core 0.4.2 → 0.4.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/dist/extensions/index.cjs +16 -14
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.mjs +16 -14
- package/dist/extensions/index.mjs.map +1 -1
- package/dist/index.cjs +32 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +12 -3
- package/dist/index.css.map +1 -1
- package/dist/index.mjs +32 -23
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4303,7 +4303,7 @@ var BaseButton = React4.forwardRef(
|
|
|
4303
4303
|
destructive: "mly:bg-red-500 mly:text-gray-50 mly:hover:bg-red-500/90",
|
|
4304
4304
|
outline: "mly:border mly:border-gray-200 mly:bg-white mly:hover:bg-gray-100 mly:hover:text-gray-900",
|
|
4305
4305
|
secondary: "mly:bg-gray-100 mly:text-gray-900 mly:hover:bg-gray-100/80",
|
|
4306
|
-
ghost: "mly:hover:bg-soft-gray bg-transparent mly:hover:text-gray-900 mly:data-[state=true]:bg-soft-gray mly:data-[state=true]:text-gray-900",
|
|
4306
|
+
ghost: "mly:hover:bg-soft-gray mly:bg-transparent mly:hover:text-gray-900 mly:data-[state=true]:bg-soft-gray mly:data-[state=true]:text-gray-900",
|
|
4307
4307
|
link: "mly:text-gray-900 mly:underline-offset-4 mly:hover:underline"
|
|
4308
4308
|
};
|
|
4309
4309
|
const sizeClasses = {
|
|
@@ -4339,7 +4339,7 @@ var TooltipContent = React5.forwardRef((_a, ref) => {
|
|
|
4339
4339
|
ref,
|
|
4340
4340
|
sideOffset,
|
|
4341
4341
|
className: cn(
|
|
4342
|
-
"mly:z-50 mly:overflow-hidden mly:rounded-md mly:border mly:border-gray-200 mly:bg-white mly:px-2 mly:py-1 mly:text-xs mly:animate-in mly:fade-in-0 mly:zoom-in-95",
|
|
4342
|
+
"tooltip-surface mly:z-50 mly:overflow-hidden mly:rounded-md mly:border mly:border-gray-200 mly:bg-white mly:px-2 mly:py-1 mly:text-xs mly:animate-in mly:fade-in-0 mly:zoom-in-95",
|
|
4343
4343
|
className
|
|
4344
4344
|
)
|
|
4345
4345
|
}, props)
|
|
@@ -4350,16 +4350,18 @@ TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
|
4350
4350
|
// src/editor/components/bubble-menu-button.tsx
|
|
4351
4351
|
import { jsx as jsx7, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
4352
4352
|
function BubbleMenuButton(item) {
|
|
4353
|
-
var _a;
|
|
4353
|
+
var _a, _b;
|
|
4354
4354
|
const { tooltip } = item;
|
|
4355
|
+
const isActive = (_b = (_a = item == null ? void 0 : item.isActive) == null ? void 0 : _a.call(item)) != null ? _b : false;
|
|
4355
4356
|
const content = /* @__PURE__ */ jsx7(
|
|
4356
4357
|
BaseButton,
|
|
4357
4358
|
__spreadProps(__spreadValues({
|
|
4358
4359
|
variant: "ghost",
|
|
4359
4360
|
size: "sm"
|
|
4360
4361
|
}, item.command ? { onClick: item.command } : {}), {
|
|
4361
|
-
"data-state":
|
|
4362
|
+
"data-state": isActive,
|
|
4362
4363
|
className: cn(
|
|
4364
|
+
isActive && "menu-active-option",
|
|
4363
4365
|
"mly:size-7! mly:px-2.5 mly:disabled:cursor-not-allowed",
|
|
4364
4366
|
item == null ? void 0 : item.className
|
|
4365
4367
|
),
|
|
@@ -4392,8 +4394,8 @@ function BubbleMenuButton(item) {
|
|
|
4392
4394
|
TooltipContent,
|
|
4393
4395
|
{
|
|
4394
4396
|
sideOffset: 8,
|
|
4395
|
-
className: "
|
|
4396
|
-
children:
|
|
4397
|
+
className: "tooltip-surface",
|
|
4398
|
+
children: tooltip
|
|
4397
4399
|
}
|
|
4398
4400
|
)
|
|
4399
4401
|
] });
|
|
@@ -5143,8 +5145,8 @@ function AlignmentSwitch(props) {
|
|
|
5143
5145
|
TooltipContent,
|
|
5144
5146
|
{
|
|
5145
5147
|
sideOffset: 8,
|
|
5146
|
-
className: "
|
|
5147
|
-
children:
|
|
5148
|
+
className: "tooltip-surface",
|
|
5149
|
+
children: "Alignment"
|
|
5148
5150
|
}
|
|
5149
5151
|
)
|
|
5150
5152
|
] }),
|
|
@@ -5234,8 +5236,8 @@ function ColorPicker(props) {
|
|
|
5234
5236
|
TooltipContent,
|
|
5235
5237
|
{
|
|
5236
5238
|
sideOffset: 8,
|
|
5237
|
-
className: "
|
|
5238
|
-
children:
|
|
5239
|
+
className: "tooltip-surface",
|
|
5240
|
+
children: tooltip
|
|
5239
5241
|
}
|
|
5240
5242
|
)
|
|
5241
5243
|
] }) : popoverButton,
|
|
@@ -6895,8 +6897,8 @@ function LinkInputPopover(props) {
|
|
|
6895
6897
|
TooltipContent,
|
|
6896
6898
|
{
|
|
6897
6899
|
sideOffset: 8,
|
|
6898
|
-
className: "
|
|
6899
|
-
children:
|
|
6900
|
+
className: "tooltip-surface",
|
|
6901
|
+
children: tooltip
|
|
6900
6902
|
}
|
|
6901
6903
|
)
|
|
6902
6904
|
] }) : popoverButton,
|
|
@@ -7035,8 +7037,8 @@ function Select(props) {
|
|
|
7035
7037
|
TooltipContent,
|
|
7036
7038
|
{
|
|
7037
7039
|
sideOffset: 8,
|
|
7038
|
-
className: "
|
|
7039
|
-
children:
|
|
7040
|
+
className: "tooltip-surface",
|
|
7041
|
+
children: tooltip
|
|
7040
7042
|
}
|
|
7041
7043
|
)
|
|
7042
7044
|
] });
|