@etrepum/lexical-builder-link 0.0.32-nightly.20240809.0 → 0.0.32

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 +12 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
- import { definePlan as $, safeCast as D, disabledToggle as R, provideOutput as w, Store as H } from "@etrepum/lexical-builder";
1
+ import { definePlan 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
3
  import { mergeRegister as z, objectKlassEquals as J, $findMatchingParent as Q, isHTMLAnchorElement as ee } from "@lexical/utils";
4
4
  import { COMMAND_PRIORITY_LOW as v, PASTE_COMMAND as te, $getSelection as C, $isRangeSelection as E, $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
5
  const y = $({
6
6
  name: "@etrepum/lexical-builder-link/Link",
7
- config: D({ disabled: !1 }),
7
+ config: w({ disabled: !1 }),
8
8
  nodes: [X],
9
9
  register(e, t) {
10
- const [n, r] = R({
10
+ const [n, r] = D({
11
11
  disabled: t.disabled,
12
12
  register() {
13
13
  const { validateUrl: o } = t;
@@ -42,7 +42,7 @@ const y = $({
42
42
  );
43
43
  }
44
44
  });
45
- return w(
45
+ return R(
46
46
  {
47
47
  ...n,
48
48
  toggleLink: (o) => e.dispatchCommand(k, o)
@@ -246,15 +246,15 @@ const he = (
246
246
  name: "@etrepum/lexical-builder-link/AutoLink",
247
247
  dependencies: [y],
248
248
  nodes: [q],
249
- config: D({
249
+ config: w({
250
250
  matchers: me,
251
251
  onChange: (e, t) => {
252
252
  },
253
253
  disabled: !1
254
254
  }),
255
255
  register(e, t) {
256
- return w(
257
- ...R({
256
+ return R(
257
+ ...D({
258
258
  disabled: t.disabled,
259
259
  register() {
260
260
  const { matchers: n, onChange: r } = t;
@@ -301,13 +301,13 @@ function Ne(e, t) {
301
301
  const Ae = $({
302
302
  name: "@etrepum/lexical-builder-link/ClickableLink",
303
303
  dependencies: [y],
304
- config: D({
305
- disabled: !1,
304
+ config: w({
305
+ disabled: typeof window > "u",
306
306
  newTab: !0,
307
307
  clickable: !0
308
308
  }),
309
309
  register(e, t, n) {
310
- const r = new H(t.clickable), [o, i] = R({
310
+ const r = new H(t.clickable), [o, i] = D({
311
311
  disabled: t.disabled,
312
312
  register() {
313
313
  const { newTab: s } = t, l = (u) => {
@@ -354,12 +354,12 @@ const Ae = $({
354
354
  });
355
355
  }
356
356
  });
357
- return w(
357
+ return R(
358
358
  { ...o, clickable: r },
359
359
  i
360
360
  );
361
361
  }
362
- }), Se = "0.0.32-nightly.20240809.0";
362
+ }), Se = "0.0.32";
363
363
  export {
364
364
  ke as AutoLinkPlan,
365
365
  Ae as ClickableLinkPlan,
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "test:watch": "vitest",
16
16
  "lint": "eslint"
17
17
  },
18
- "version": "0.0.32-nightly.20240809.0",
18
+ "version": "0.0.32",
19
19
  "license": "MIT",
20
20
  "repository": {
21
21
  "type": "git",