@firecms/editor 3.0.0-canary.143 → 3.0.0-canary.145
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/index.es.js +12 -12
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +12 -12
- package/dist/index.umd.js.map +1 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -164,7 +164,7 @@ const NodeSelector = ({
|
|
|
164
164
|
item.command(editor2);
|
|
165
165
|
onOpenChange(false);
|
|
166
166
|
},
|
|
167
|
-
className: "flex cursor-pointer items-center justify-between rounded px-2 py-1 text-sm hover:bg-blue-50 hover:dark:bg-
|
|
167
|
+
className: "flex cursor-pointer items-center justify-between rounded px-2 py-1 text-sm hover:bg-blue-50 hover:dark:bg-surface-700 text-surface-900 dark:text-white",
|
|
168
168
|
children: [
|
|
169
169
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
170
170
|
/* @__PURE__ */ jsx(item.icon, { size: "smallest" }),
|
|
@@ -243,7 +243,7 @@ const LinkSelector = ({
|
|
|
243
243
|
autoFocus: open,
|
|
244
244
|
placeholder: "Paste a link",
|
|
245
245
|
defaultValue: editor.getAttributes("link").href || "",
|
|
246
|
-
className: cls("text-
|
|
246
|
+
className: cls("text-surface-900 dark:text-white flex-grow bg-transparent p-1 text-sm outline-none", focusedDisabled)
|
|
247
247
|
}
|
|
248
248
|
),
|
|
249
249
|
editor.getAttributes("link").href ? /* @__PURE__ */ jsx(
|
|
@@ -488,7 +488,7 @@ const placeholder = PlaceholderExtension;
|
|
|
488
488
|
const tiptapLink = TiptapLink.configure({
|
|
489
489
|
HTMLAttributes: {
|
|
490
490
|
class: cls(
|
|
491
|
-
"text-
|
|
491
|
+
"text-surface-700 dark:text-surface-accent-200 underline underline-offset-[3px] hover:text-primary transition-colors cursor-pointer"
|
|
492
492
|
)
|
|
493
493
|
}
|
|
494
494
|
});
|
|
@@ -534,12 +534,12 @@ const starterKit = StarterKit.configure({
|
|
|
534
534
|
},
|
|
535
535
|
codeBlock: {
|
|
536
536
|
HTMLAttributes: {
|
|
537
|
-
class: cls("rounded bg-blue-50 dark:bg-
|
|
537
|
+
class: cls("rounded bg-blue-50 dark:bg-surface-700 border p-5 font-mono font-medium", defaultBorderMixin)
|
|
538
538
|
}
|
|
539
539
|
},
|
|
540
540
|
code: {
|
|
541
541
|
HTMLAttributes: {
|
|
542
|
-
class: cls("rounded-md bg-
|
|
542
|
+
class: cls("rounded-md bg-surface-accent-50 dark:bg-surface-700 px-1.5 py-1 font-mono font-medium"),
|
|
543
543
|
spellcheck: "false"
|
|
544
544
|
}
|
|
545
545
|
},
|
|
@@ -1159,7 +1159,7 @@ const CommandList = forwardRef((props, ref) => {
|
|
|
1159
1159
|
return /* @__PURE__ */ jsx(
|
|
1160
1160
|
"div",
|
|
1161
1161
|
{
|
|
1162
|
-
className: cls("text-
|
|
1162
|
+
className: cls("text-surface-900 dark:text-white z-50 max-h-[280px] h-auto w-72 overflow-y-auto rounded-md border bg-white dark:bg-surface-900 px-1 py-2 shadow transition-all", defaultBorderMixin),
|
|
1163
1163
|
children: props.items.length ? props.items.map((item, index) => /* @__PURE__ */ jsxs(
|
|
1164
1164
|
"button",
|
|
1165
1165
|
{
|
|
@@ -1172,20 +1172,20 @@ const CommandList = forwardRef((props, ref) => {
|
|
|
1172
1172
|
tabIndex: index === selectedIndex ? 0 : -1,
|
|
1173
1173
|
"aria-selected": index === selectedIndex,
|
|
1174
1174
|
className: cls(
|
|
1175
|
-
"flex w-full items-center space-x-2 rounded-md px-2 py-1 text-left text-sm hover:bg-blue-50 hover:dark:bg-
|
|
1176
|
-
index === selectedIndex ? "bg-blue-100 dark:bg-
|
|
1175
|
+
"flex w-full items-center space-x-2 rounded-md px-2 py-1 text-left text-sm hover:bg-blue-50 hover:dark:bg-surface-700 aria-selected:bg-blue-50 aria-selected:dark:bg-surface-700",
|
|
1176
|
+
index === selectedIndex ? "bg-blue-100 dark:bg-surface-accent-950" : ""
|
|
1177
1177
|
),
|
|
1178
1178
|
children: [
|
|
1179
1179
|
/* @__PURE__ */ jsx(
|
|
1180
1180
|
"div",
|
|
1181
1181
|
{
|
|
1182
|
-
className: cls("flex h-10 w-10 items-center justify-center rounded-md border bg-white dark:bg-
|
|
1182
|
+
className: cls("flex h-10 w-10 items-center justify-center rounded-md border bg-white dark:bg-surface-900", defaultBorderMixin),
|
|
1183
1183
|
children: item.icon
|
|
1184
1184
|
}
|
|
1185
1185
|
),
|
|
1186
1186
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
1187
1187
|
/* @__PURE__ */ jsx("p", { className: "font-medium", children: item.title }),
|
|
1188
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
1188
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-surface-700 dark:text-surface-accent-300", children: item.description })
|
|
1189
1189
|
] })
|
|
1190
1190
|
]
|
|
1191
1191
|
},
|
|
@@ -1381,7 +1381,7 @@ function buildDecorationSet(highlight, doc) {
|
|
|
1381
1381
|
if (highlight) {
|
|
1382
1382
|
decorations.push(
|
|
1383
1383
|
Decoration$1.inline(highlight.from, highlight.to, {
|
|
1384
|
-
class: "dark:bg-
|
|
1384
|
+
class: "dark:bg-surface-accent-700 bg-surface-accent-300"
|
|
1385
1385
|
})
|
|
1386
1386
|
);
|
|
1387
1387
|
}
|
|
@@ -1600,7 +1600,7 @@ const FireCMSEditor = ({
|
|
|
1600
1600
|
tippyOptions: {
|
|
1601
1601
|
placement: "top"
|
|
1602
1602
|
},
|
|
1603
|
-
className: cls("flex w-fit max-w-[90vw] h-10 overflow-hidden rounded border bg-white dark:bg-
|
|
1603
|
+
className: cls("flex w-fit max-w-[90vw] h-10 overflow-hidden rounded border bg-white dark:bg-surface-900 shadow", defaultBorderMixin),
|
|
1604
1604
|
children: [
|
|
1605
1605
|
/* @__PURE__ */ jsx(NodeSelector, { portalContainer: ref.current, open: openNode, onOpenChange: setOpenNode }),
|
|
1606
1606
|
/* @__PURE__ */ jsx(Separator, { orientation: "vertical" }),
|