@etrepum/lexical-builder-link 0.0.36 → 0.0.37-nightly.20250715.0

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.
Files changed (2) hide show
  1. package/dist/index.js +11 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineExtension as $, safeCast as w, disabledToggle as D, provideOutput as R, Store as H } from "@etrepum/lexical-builder";
2
2
  import { LinkNode as X, TOGGLE_LINK_COMMAND as k, $toggleLink as _, AutoLinkNode as q, $isAutoLinkNode as T, $isLinkNode as I, $createAutoLinkNode as Y } from "@lexical/link";
3
- import { mergeRegister as z, objectKlassEquals as J, $findMatchingParent as Q, isHTMLAnchorElement as ee } from "@lexical/utils";
4
- import { COMMAND_PRIORITY_LOW as v, PASTE_COMMAND as te, $getSelection as E, $isRangeSelection as C, $isElementNode as M, TextNode as ne, $isTextNode as b, $isLineBreakNode as W, $createTextNode as F, $isNodeSelection as re, getNearestEditorFromDOMNode as ie, $getNearestNodeFromDOMNode as se } from "lexical";
5
- const y = $({
3
+ import { mergeRegister as y, objectKlassEquals as J, $findMatchingParent as Q, isHTMLAnchorElement as ee } from "@lexical/utils";
4
+ import { COMMAND_PRIORITY_LOW as v, PASTE_COMMAND as te, $getSelection as E, $isRangeSelection as C, $isElementNode as M, TextNode as ne, $isTextNode as b, $isLineBreakNode as z, $createTextNode as F, $isNodeSelection as re, getNearestEditorFromDOMNode as ie, $getNearestNodeFromDOMNode as se } from "lexical";
5
+ const W = $({
6
6
  name: "@etrepum/lexical-builder-link/Link",
7
7
  config: w({ disabled: !1 }),
8
8
  nodes: [X],
@@ -11,7 +11,7 @@ const y = $({
11
11
  disabled: t.disabled,
12
12
  register() {
13
13
  const { validateUrl: l } = t;
14
- return z(
14
+ return y(
15
15
  e.registerCommand(
16
16
  k,
17
17
  (i) => {
@@ -91,11 +91,11 @@ function le(e) {
91
91
  }
92
92
  function G(e) {
93
93
  let t = e.getPreviousSibling();
94
- return M(t) && (t = t.getLastDescendant()), t === null || W(t) || b(t) && B(t.getTextContent());
94
+ return M(t) && (t = t.getLastDescendant()), t === null || z(t) || b(t) && B(t.getTextContent());
95
95
  }
96
96
  function K(e) {
97
97
  let t = e.getNextSibling();
98
- return M(t) && (t = t.getFirstDescendant()), t === null || W(t) || b(t) && O(t.getTextContent());
98
+ return M(t) && (t = t.getFirstDescendant()), t === null || z(t) || b(t) && O(t.getTextContent());
99
99
  }
100
100
  function ce(e, t, n, r) {
101
101
  return (e > 0 ? S(n[e - 1]) : G(r[0])) ? t < n.length ? S(n[t]) : K(r[r.length - 1]) : !1;
@@ -244,7 +244,7 @@ const he = (
244
244
  V(pe, (e) => `mailto:${e}`)
245
245
  ], ke = $({
246
246
  name: "@etrepum/lexical-builder-link/AutoLink",
247
- dependencies: [y],
247
+ dependencies: [W],
248
248
  nodes: [q],
249
249
  config: w({
250
250
  matchers: me,
@@ -258,7 +258,7 @@ const he = (
258
258
  disabled: t.disabled,
259
259
  register() {
260
260
  const { matchers: n, onChange: r } = t;
261
- return z(
261
+ return y(
262
262
  e.registerNodeTransform(ne, (l) => {
263
263
  const i = l.getParentOrThrow(), s = l.getPreviousSibling();
264
264
  if (T(i) && !i.getIsUnlinked())
@@ -300,7 +300,7 @@ function Ne(e, t) {
300
300
  }
301
301
  const Ae = $({
302
302
  name: "@etrepum/lexical-builder-link/ClickableLink",
303
- dependencies: [y],
303
+ dependencies: [W],
304
304
  config: w({
305
305
  disabled: typeof window > "u",
306
306
  newTab: !0,
@@ -359,10 +359,10 @@ const Ae = $({
359
359
  i
360
360
  );
361
361
  }
362
- }), Se = "0.0.36";
362
+ }), Se = "0.0.37-nightly.20250715.0";
363
363
  export {
364
364
  ke as AutoLinkExtension,
365
365
  Ae as ClickableLinkExtension,
366
- y as LinkExtension,
366
+ W as LinkExtension,
367
367
  Se as PACKAGE_VERSION
368
368
  };
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "test:watch": "vitest",
16
16
  "lint": "eslint"
17
17
  },
18
- "version": "0.0.36",
18
+ "version": "0.0.37-nightly.20250715.0",
19
19
  "license": "MIT",
20
20
  "repository": {
21
21
  "type": "git",