@delali/web-editor 0.4.1 → 0.4.5

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.
@@ -914,7 +914,7 @@ function SmartLinkInlineContent({ link, className }) {
914
914
  "span",
915
915
  {
916
916
  className: cn(
917
- "inline-flex max-w-full items-center gap-[0.2em] rounded-[0.25em] px-[0.4em] py-[0.1em] align-[-0.28em] font-medium text-[#0C66E4] leading-[1.3] outline outline-transparent transition-colors hover:bg-[#0C66E4]/5 hover:outline-[#0C66E4]/30",
917
+ "inline-flex max-w-full items-center gap-[0.2em] rounded-[0.25em] px-[0.4em] py-[0.1em] align-[-0.28em] font-medium text-editor-link leading-[1.3] outline outline-transparent transition-colors hover:bg-editor-link/5 hover:outline-editor-link/30",
918
918
  className
919
919
  ),
920
920
  children: [
@@ -930,7 +930,7 @@ function SmartLinkUrlContent({ link, className }) {
930
930
  "span",
931
931
  {
932
932
  className: cn(
933
- "inline max-w-full wrap-break-word border-[#0C66E4]/35 border-b font-medium text-[#0C66E4] leading-[inherit]",
933
+ "inline max-w-full wrap-break-word border-b border-editor-link/35 font-medium text-editor-link leading-[inherit] dark-or-inherit:border-editor-link/35!",
934
934
  className
935
935
  ),
936
936
  children: [
@@ -962,7 +962,7 @@ function SmartLinkCardContent({ link, className }) {
962
962
  ),
963
963
  /* @__PURE__ */ jsxs5("span", { className: "min-w-0 flex-1", children: [
964
964
  /* @__PURE__ */ jsxs5("span", { className: "flex min-w-0 items-start gap-3", children: [
965
- /* @__PURE__ */ jsx17("span", { className: "min-w-0 flex-1 truncate font-semibold text-[#0C66E4] text-base leading-6", children: link.title }),
965
+ /* @__PURE__ */ jsx17("span", { className: "min-w-0 flex-1 truncate font-semibold text-editor-link text-base leading-6", children: link.title }),
966
966
  link.status ? /* @__PURE__ */ jsx17(SmartLinkStatus, { status: link.status }) : null
967
967
  ] }),
968
968
  /* @__PURE__ */ jsxs5("span", { className: "mt-2 flex min-w-0 items-center gap-2 text-muted-foreground text-sm", children: [
@@ -980,7 +980,7 @@ function SmartLinkCardContent({ link, className }) {
980
980
  {
981
981
  faviconUrl: link.faviconUrl,
982
982
  provider: link.provider,
983
- className: "size-5 rounded bg-[#0C66E4] p-1 text-white"
983
+ className: "size-5 rounded bg-editor-link p-1 text-white dark-or-inherit:text-primary-foreground"
984
984
  }
985
985
  ),
986
986
  /* @__PURE__ */ jsx17("span", { className: "truncate", children: (_a = link.provider) != null ? _a : "Link" })
@@ -1542,6 +1542,7 @@ import { SlateElement as SlateElement13 } from "platejs/static";
1542
1542
 
1543
1543
  // src/ui/media-file-display.ts
1544
1544
  var DEFAULT_FILE_DISPLAY_MODE = "inline";
1545
+ var FILE_URL_CLASS_NAME = "inline-flex max-w-full items-center gap-1 break-all border-b border-editor-link/35 font-medium text-editor-link dark-or-inherit:border-editor-link/35!";
1545
1546
  var normalizeFileDisplayMode = (value) => {
1546
1547
  return value === "url" || value === "embed" || value === "inline" ? value : DEFAULT_FILE_DISPLAY_MODE;
1547
1548
  };
@@ -1578,20 +1579,10 @@ function MediaFileStaticBody({ canEmbed, displayMode, name, url }) {
1578
1579
  );
1579
1580
  }
1580
1581
  if (displayMode === "url") {
1581
- return /* @__PURE__ */ jsxs11(
1582
- "a",
1583
- {
1584
- className: "inline-flex max-w-full items-center gap-1 break-all border-[#0C66E4]/35 border-b font-medium text-[#0C66E4]",
1585
- contentEditable: false,
1586
- href: url,
1587
- rel: "noopener noreferrer",
1588
- target: "_blank",
1589
- children: [
1590
- /* @__PURE__ */ jsx24(Link, { className: "size-4 shrink-0 text-muted-foreground" }),
1591
- /* @__PURE__ */ jsx24("span", { className: "truncate", children: url })
1592
- ]
1593
- }
1594
- );
1582
+ return /* @__PURE__ */ jsxs11("a", { className: FILE_URL_CLASS_NAME, contentEditable: false, href: url, rel: "noopener noreferrer", target: "_blank", children: [
1583
+ /* @__PURE__ */ jsx24(Link, { className: "size-4 shrink-0 text-muted-foreground" }),
1584
+ /* @__PURE__ */ jsx24("span", { className: "truncate", children: url })
1585
+ ] });
1595
1586
  }
1596
1587
  return /* @__PURE__ */ jsx24(
1597
1588
  "a",