@arkitektbedriftene/fe-lib 6.1.3 → 7.0.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.
@@ -12,9 +12,12 @@ export declare class RutineLinkNode extends LinkNode {
12
12
  url: string;
13
13
  version: number;
14
14
  children: import('lexical').SerializedLexicalNode[];
15
+ $?: Record<string, unknown> | undefined;
15
16
  format: import('lexical').ElementFormatType;
16
17
  direction: "ltr" | "rtl" | null;
17
18
  indent: number;
19
+ textFormat?: number | undefined;
20
+ textStyle?: string | undefined;
18
21
  rel?: null | string | undefined;
19
22
  target?: null | string | undefined;
20
23
  title?: null | string | undefined;
@@ -23,9 +26,12 @@ export declare class RutineLinkNode extends LinkNode {
23
26
  url: string;
24
27
  version: number;
25
28
  children: import('lexical').SerializedLexicalNode[];
29
+ $?: Record<string, unknown> | undefined;
26
30
  format: import('lexical').ElementFormatType;
27
31
  direction: "ltr" | "rtl" | null;
28
32
  indent: number;
33
+ textFormat?: number | undefined;
34
+ textStyle?: string | undefined;
29
35
  rel?: null | string | undefined;
30
36
  target?: null | string | undefined;
31
37
  title?: null | string | undefined;
@@ -9,4 +9,5 @@ export declare const defaultNodes: (typeof LinkNode | typeof ImageNode | typeof
9
9
  export declare const defaultViewNodes: (typeof LinkTargetNode | typeof ImageNode | typeof HeadingNode | typeof QuoteNode | typeof ListNode | typeof ListItemNode | typeof TableNode | typeof TableRowNode | typeof TableCellNode | {
10
10
  replace: typeof LinkNode;
11
11
  with: (node: LinkNode) => LinkTargetNode;
12
+ withKlass: typeof LinkTargetNode;
12
13
  })[];
@@ -1,31 +1,31 @@
1
1
  var ve = Object.defineProperty;
2
2
  var xe = (t, r, e) => r in t ? ve(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
3
3
  var A = (t, r, e) => xe(t, typeof r != "symbol" ? r + "" : r, e);
4
- import { createHeadlessEditor as Pt } from "@lexical/headless";
5
- import { $generateHtmlFromNodes as Bt } from "@lexical/html";
6
- import { $getRoot as V, ParagraphNode as Te, $createParagraphNode as G, $createTextNode as $, $setSelection as nt, $getNodeByKey as dt, DecoratorNode as Me, $applyNodeReplacement as Le, SELECTION_CHANGE_COMMAND as Q, $getSelection as y, COMMAND_PRIORITY_EDITOR as q, $isRangeSelection as E, $isRootOrShadowRoot as Ft, FORMAT_TEXT_COMMAND as D, COMMAND_PRIORITY_LOW as z, KEY_ARROW_DOWN_COMMAND as we, KEY_ARROW_UP_COMMAND as _e, KEY_ESCAPE_COMMAND as Ut, KEY_SPACE_COMMAND as ye, $getNearestNodeFromDOMNode as mt, KEY_ARROW_LEFT_COMMAND as Se, $isElementNode as Ne, createCommand as Ee, $insertNodes as Re, $createRangeSelection as Wt, COMMAND_PRIORITY_HIGH as Ie, FORMAT_ELEMENT_COMMAND as ht } from "lexical";
7
- import { trimTextContentFromAnchor as Oe, $setBlocksType as ut, $getSelectionStyleValueForProperty as $e, $patchStyleText as Ae, $isAtNodeEnd as yt } from "@lexical/selection";
8
- import { $dfs as De, $getNearestNodeOfType as ze, $findMatchingParent as jt, mergeRegister as it, isHTMLElement as St, $wrapNodeInElement as Pe, mediaFileReader as Be, isMimeType as Fe } from "@lexical/utils";
9
- import { LinkNode as j, AutoLinkNode as Ht, $isLinkNode as tt, TOGGLE_LINK_COMMAND as ot } from "@lexical/link";
10
- import { ListNode as ft, ListItemNode as Kt, $isListNode as kt, INSERT_UNORDERED_LIST_COMMAND as Ue, INSERT_ORDERED_LIST_COMMAND as We, INSERT_CHECK_LIST_COMMAND as Gt, insertList as je, $isListItemNode as H } from "@lexical/list";
4
+ import { createHeadlessEditor as Bt } from "@lexical/headless";
5
+ import { $generateHtmlFromNodes as Ft } from "@lexical/html";
6
+ import { $getRoot as X, ParagraphNode as Te, $createParagraphNode as G, $createTextNode as $, $setSelection as nt, $getNodeByKey as dt, DecoratorNode as we, $applyNodeReplacement as Me, SELECTION_CHANGE_COMMAND as Z, $getSelection as _, COMMAND_PRIORITY_EDITOR as q, $isRangeSelection as E, $isRootOrShadowRoot as Pt, FORMAT_TEXT_COMMAND as D, COMMAND_PRIORITY_LOW as z, KEY_ARROW_DOWN_COMMAND as ye, KEY_ARROW_UP_COMMAND as Le, KEY_ESCAPE_COMMAND as Ut, KEY_SPACE_COMMAND as _e, $getNearestNodeFromDOMNode as mt, KEY_ARROW_LEFT_COMMAND as Se, $isElementNode as Ne, createCommand as Ee, $insertNodes as Re, $createRangeSelection as Wt, COMMAND_PRIORITY_HIGH as Oe, FORMAT_ELEMENT_COMMAND as ht } from "lexical";
7
+ import { trimTextContentFromAnchor as Ie, $setBlocksType as ut, $getSelectionStyleValueForProperty as $e, $patchStyleText as Ae, $isAtNodeEnd as _t } from "@lexical/selection";
8
+ import { $dfs as De, $getNearestNodeOfType as ze, $findMatchingParent as jt, mergeRegister as it, isHTMLElement as St, $wrapNodeInElement as Be, mediaFileReader as Fe, isMimeType as Pe } from "@lexical/utils";
9
+ import { LinkNode as j, AutoLinkNode as Ht, $isLinkNode as et, TOGGLE_LINK_COMMAND as ot } from "@lexical/link";
10
+ import { ListNode as ft, ListItemNode as Kt, $isListNode as kt, INSERT_UNORDERED_LIST_COMMAND as Ue, INSERT_ORDERED_LIST_COMMAND as We, INSERT_CHECK_LIST_COMMAND as Gt, $insertList as je, $isListItemNode as H } from "@lexical/list";
11
11
  import { HeadingNode as qt, QuoteNode as Jt, $isHeadingNode as He, $createHeadingNode as Ke, $createQuoteNode as Ge, DRAG_DROP_PASTE as qe } from "@lexical/rich-text";
12
- import { TableNode as Yt, TableRowNode as Xt, TableCellNode as Vt, INSERT_TABLE_COMMAND as Je, $getTableCellNodeFromLexicalNode as Ye, $deleteTableColumn__EXPERIMENTAL as Xe, $deleteTableRow__EXPERIMENTAL as Ve, $insertTableColumn__EXPERIMENTAL as Nt, $insertTableRow__EXPERIMENTAL as Et } from "@lexical/table";
13
- import { jsx as n, jsxs as h, Fragment as B } from "react/jsx-runtime";
14
- import { createContext as Qe, useState as p, useRef as J, useCallback as x, useContext as Ze, useEffect as L, useMemo as Qt, useLayoutEffect as tr } from "react";
15
- import { Box as P, Stack as er, Button as S, DropdownMenu as at, ToolbarButton as lt, DropdownMenuIconItem as M, ToolbarToggleGroup as et, ToolbarToggleItem as O, Popover as Zt, PopoverTrigger as te, PopoverContent as ee, OverlayCard as re, Toolbar as rr, ToolbarSeparator as Rt, styled as nr, Spinner as st, Dialog as ne, DialogHeader as ir, TextInput as bt, DialogActions as ct, DropdownMenuItem as W, DropdownMenuSeparator as It, NavBar as or, NavBarItem as gt, Combobox as ar } from "./ui.es.js";
12
+ import { TableNode as Yt, TableRowNode as Vt, TableCellNode as Qt, INSERT_TABLE_COMMAND as Je, $getTableCellNodeFromLexicalNode as Ye, $deleteTableColumnAtSelection as Ve, $deleteTableRowAtSelection as Qe, $insertTableColumnAtSelection as Nt, $insertTableRowAtSelection as Et } from "@lexical/table";
13
+ import { jsx as n, jsxs as h, Fragment as F } from "react/jsx-runtime";
14
+ import { createContext as Xe, useState as p, useRef as J, useCallback as x, useContext as Ze, useEffect as M, useMemo as Xt, useLayoutEffect as tr } from "react";
15
+ import { Box as B, Stack as er, Button as S, DropdownMenu as at, ToolbarButton as lt, DropdownMenuIconItem as w, ToolbarToggleGroup as rt, ToolbarToggleItem as I, Popover as Zt, PopoverTrigger as te, PopoverContent as ee, OverlayCard as re, Toolbar as rr, ToolbarSeparator as Rt, styled as nr, Spinner as st, Dialog as ne, DialogHeader as ir, TextInput as bt, DialogActions as ct, DropdownMenuItem as W, DropdownMenuSeparator as Ot, NavBar as or, NavBarItem as gt, Combobox as ar } from "./ui.es.js";
16
16
  import { e as lr, f as sr, g as cr, h as dr, i as hr, j as ur } from "./index-CpqLD5Bi.js";
17
- import { useLexicalComposerContext as w } from "@lexical/react/LexicalComposerContext.js";
17
+ import { useLexicalComposerContext as y } from "@lexical/react/LexicalComposerContext.js";
18
18
  import { HorizontalRuleNode as gr } from "@lexical/react/LexicalHorizontalRuleNode.js";
19
19
  import { LexicalComposer as pr } from "@lexical/react/LexicalComposer.js";
20
20
  import { RichTextPlugin as mr } from "@lexical/react/LexicalRichTextPlugin.js";
21
21
  import { LexicalErrorBoundary as fr } from "@lexical/react/LexicalErrorBoundary.js";
22
22
  import { useFloating as Ct, autoUpdate as ie, size as kr, flip as br, offset as oe, shift as Cr, useInteractions as ae, useRole as le, FloatingPortal as se, inline as vr, useDismiss as xr } from "@floating-ui/react";
23
23
  import { G as f } from "./iconBase-LROS5hdG.js";
24
- import { s as Tr, c as Mr } from "./stitches.config-gk2-nbbz.js";
25
- import { ListPlugin as Lr } from "@lexical/react/LexicalListPlugin.js";
26
- import { HistoryPlugin as wr } from "@lexical/react/LexicalHistoryPlugin.js";
27
- import { TablePlugin as _r } from "@lexical/react/LexicalTablePlugin.js";
28
- import { HorizontalRulePlugin as yr } from "@lexical/react/LexicalHorizontalRulePlugin.js";
24
+ import { s as Tr, c as wr } from "./stitches.config-gk2-nbbz.js";
25
+ import { ListPlugin as Mr } from "@lexical/react/LexicalListPlugin.js";
26
+ import { HistoryPlugin as yr } from "@lexical/react/LexicalHistoryPlugin.js";
27
+ import { TablePlugin as Lr } from "@lexical/react/LexicalTablePlugin.js";
28
+ import { HorizontalRulePlugin as _r } from "@lexical/react/LexicalHorizontalRulePlugin.js";
29
29
  import { TabIndentationPlugin as Sr } from "@lexical/react/LexicalTabIndentationPlugin.js";
30
30
  import { useLexicalComposerContext as vt } from "@lexical/react/LexicalComposerContext";
31
31
  import { b as Nr } from "./index-C_mUnrO0.js";
@@ -49,8 +49,8 @@ const Er = ({
49
49
  maxChars: r,
50
50
  maxLines: e
51
51
  }) => {
52
- const i = V(), o = i.getTextContent(), a = Er({ text: o, maxChars: r, maxLines: e }), l = o.length - a, d = i.select().anchor;
53
- Oe(t, d, l);
52
+ const i = X(), o = i.getTextContent(), a = Er({ text: o, maxChars: r, maxLines: e }), l = o.length - a, d = i.select().anchor;
53
+ Ie(t, d, l);
54
54
  const c = i.getLastChild();
55
55
  return c instanceof Te && c.getChildrenSize() === 0 && c.remove(), l;
56
56
  }, xt = {
@@ -66,10 +66,10 @@ const Er = ({
66
66
  listitem: "ain-rich-text-nested-list-item"
67
67
  }
68
68
  }
69
- }, Tt = (t) => t[0] === "{", Rr = (t) => t !== null && typeof t == "object" && "isEmpty" in t, Ir = (t, r) => {
69
+ }, Tt = (t) => t[0] === "{", Rr = (t) => t !== null && typeof t == "object" && "isEmpty" in t, Or = (t, r) => {
70
70
  t.update(
71
71
  () => {
72
- const e = V();
72
+ const e = X();
73
73
  e.clear();
74
74
  const i = G();
75
75
  i.append($("")), e.append(i), nt(null);
@@ -78,10 +78,10 @@ const Er = ({
78
78
  tag: r
79
79
  }
80
80
  );
81
- }, Or = (t, r, e) => {
81
+ }, Ir = (t, r, e) => {
82
82
  r.update(
83
83
  () => {
84
- const i = V();
84
+ const i = X();
85
85
  i.clear();
86
86
  const o = G();
87
87
  o.append($(t.trim())), i.append(o), nt(null);
@@ -93,7 +93,7 @@ const Er = ({
93
93
  }, oi = async (t, r, e) => {
94
94
  var l;
95
95
  let i = 0;
96
- const o = Pt({
96
+ const o = Bt({
97
97
  nodes: r,
98
98
  editable: !1,
99
99
  theme: xt
@@ -102,7 +102,7 @@ const Er = ({
102
102
  try {
103
103
  if (typeof t == "string" && !Tt(t))
104
104
  o.update(() => {
105
- const s = V(), d = G();
105
+ const s = X(), d = G();
106
106
  d.append($(t.trim())), s.append(d);
107
107
  });
108
108
  else {
@@ -120,11 +120,11 @@ const Er = ({
120
120
  await ((l = e == null ? void 0 : e.updateFn) == null ? void 0 : l.call(e, o));
121
121
  let a = "";
122
122
  return o.read(() => {
123
- a = Bt(o);
123
+ a = Ft(o);
124
124
  }), { html: a, trimCount: i };
125
125
  }, ai = (t, r, e) => {
126
126
  let i = 0;
127
- const o = Pt({
127
+ const o = Bt({
128
128
  nodes: r,
129
129
  editable: !1,
130
130
  theme: xt
@@ -133,7 +133,7 @@ const Er = ({
133
133
  try {
134
134
  if (typeof t == "string" && !Tt(t))
135
135
  o.update(() => {
136
- const l = V(), s = G();
136
+ const l = X(), s = G();
137
137
  s.append($(t.trim())), l.append(s);
138
138
  });
139
139
  else {
@@ -151,13 +151,13 @@ const Er = ({
151
151
  let a = "";
152
152
  try {
153
153
  o.read(() => {
154
- a = Bt(o);
154
+ a = Ft(o);
155
155
  });
156
156
  } catch {
157
157
  }
158
158
  return { html: a, trimCount: i };
159
159
  }, li = (t) => De().map(({ node: r }) => r).filter((r) => t.some((e) => r instanceof e));
160
- class rt extends j {
160
+ class V extends j {
161
161
  static getType() {
162
162
  return "target-link";
163
163
  }
@@ -172,7 +172,7 @@ class rt extends j {
172
172
  o && (a.target = "_blank", a.rel = "noopener noreferrer"), super(r, a, i);
173
173
  }
174
174
  static clone(r) {
175
- return new rt(
175
+ return new V(
176
176
  r.__url,
177
177
  { rel: r.__rel, target: r.__target, title: r.__title },
178
178
  r.__key
@@ -185,7 +185,7 @@ class rt extends j {
185
185
  return j.importJSON(r);
186
186
  }
187
187
  }
188
- const de = Qe({
188
+ const de = Xe({
189
189
  hasFocus: !1,
190
190
  editorRef: { current: null },
191
191
  signUrl: void 0,
@@ -205,7 +205,7 @@ const de = Qe({
205
205
  onBlur: a
206
206
  }
207
207
  };
208
- }, F = () => Ze(de);
208
+ }, P = () => Ze(de);
209
209
  function Ar({
210
210
  src: t,
211
211
  altText: r,
@@ -213,8 +213,8 @@ function Ar({
213
213
  height: i,
214
214
  nodeKey: o
215
215
  }) {
216
- const { signUrl: a } = F(), [l, s] = p(a ? "" : t), [d, c] = p(!1), u = J(!1), [g] = w();
217
- L(() => {
216
+ const { signUrl: a } = P(), [l, s] = p(a ? "" : t), [d, c] = p(!1), u = J(!1), [g] = y();
217
+ M(() => {
218
218
  const m = async () => {
219
219
  s(await (a == null ? void 0 : a(t)) || t);
220
220
  };
@@ -227,7 +227,7 @@ function Ar({
227
227
  const m = dt(o);
228
228
  m && m.remove();
229
229
  });
230
- }, _ = () => {
230
+ }, L = () => {
231
231
  g.update(() => {
232
232
  var N;
233
233
  const m = dt(o);
@@ -246,7 +246,7 @@ function Ar({
246
246
  v && v.insertAfter(m);
247
247
  });
248
248
  };
249
- return l ? /* @__PURE__ */ h(P, { css: { position: "relative", display: "inline-block" }, children: [
249
+ return l ? /* @__PURE__ */ h(B, { css: { position: "relative", display: "inline-block" }, children: [
250
250
  /* @__PURE__ */ h(
251
251
  er,
252
252
  {
@@ -279,7 +279,7 @@ function Ar({
279
279
  icon: !0,
280
280
  size: "sm",
281
281
  css: { width: "20px", height: "20px" },
282
- onClick: _,
282
+ onClick: L,
283
283
  children: /* @__PURE__ */ n(sr, {})
284
284
  }
285
285
  ),
@@ -315,9 +315,9 @@ function Ar({
315
315
  }
316
316
  function Dr(t) {
317
317
  const r = t, { alt: e, src: i, width: o, height: a } = r;
318
- return { node: Mt({ altText: e, height: a, src: i, width: o }) };
318
+ return { node: wt({ altText: e, height: a, src: i, width: o }) };
319
319
  }
320
- class U extends Me {
320
+ class U extends we {
321
321
  constructor(e, i, o, a, l, s) {
322
322
  super(s);
323
323
  A(this, "__src");
@@ -342,7 +342,7 @@ class U extends Me {
342
342
  }
343
343
  static importJSON(e) {
344
344
  const { altText: i, height: o, width: a, src: l, meta: s } = e;
345
- return Mt({
345
+ return wt({
346
346
  altText: i,
347
347
  height: o,
348
348
  src: l,
@@ -410,7 +410,7 @@ class U extends Me {
410
410
  );
411
411
  }
412
412
  }
413
- function Mt({
413
+ function wt({
414
414
  altText: t,
415
415
  height: r,
416
416
  src: e,
@@ -418,7 +418,7 @@ function Mt({
418
418
  meta: o,
419
419
  key: a
420
420
  }) {
421
- return Le(
421
+ return Me(
422
422
  new U(e, t, i, r, o, a)
423
423
  );
424
424
  }
@@ -433,8 +433,8 @@ const ci = [
433
433
  Ht,
434
434
  j,
435
435
  Yt,
436
- Xt,
437
436
  Vt,
437
+ Qt,
438
438
  U,
439
439
  gr
440
440
  ], di = [
@@ -445,31 +445,32 @@ const ci = [
445
445
  Ht,
446
446
  j,
447
447
  Yt,
448
- Xt,
449
448
  Vt,
449
+ Qt,
450
450
  U,
451
- rt,
451
+ V,
452
452
  {
453
453
  replace: j,
454
- with: (t) => new rt(
454
+ with: (t) => new V(
455
455
  t.getURL(),
456
456
  { rel: t.__rel, target: t.__target, title: t.__title }
457
- )
457
+ ),
458
+ withKlass: V
458
459
  }
459
460
  ];
460
461
  function zr(t) {
461
462
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M4 6l16 0" }, child: [] }, { tag: "path", attr: { d: "M8 12l8 0" }, child: [] }, { tag: "path", attr: { d: "M6 18l12 0" }, child: [] }] })(t);
462
463
  }
463
- function Ot(t) {
464
+ function It(t) {
464
465
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M4 6l16 0" }, child: [] }, { tag: "path", attr: { d: "M4 12l10 0" }, child: [] }, { tag: "path", attr: { d: "M4 18l14 0" }, child: [] }] })(t);
465
466
  }
466
- function Pr(t) {
467
+ function Br(t) {
467
468
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M4 6l16 0" }, child: [] }, { tag: "path", attr: { d: "M10 12l10 0" }, child: [] }, { tag: "path", attr: { d: "M6 18l14 0" }, child: [] }] })(t);
468
469
  }
469
- function Br(t) {
470
+ function Fr(t) {
470
471
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M7 5h6a3.5 3.5 0 0 1 0 7h-6z" }, child: [] }, { tag: "path", attr: { d: "M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7" }, child: [] }] })(t);
471
472
  }
472
- function Fr(t) {
473
+ function Pr(t) {
473
474
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M7 8l-4 4l4 4" }, child: [] }, { tag: "path", attr: { d: "M17 8l4 4l-4 4" }, child: [] }, { tag: "path", attr: { d: "M14 4l-4 16" }, child: [] }] })(t);
474
475
  }
475
476
  function Ur(t) {
@@ -499,13 +500,13 @@ function Jr(t) {
499
500
  function Yr(t) {
500
501
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M11 6h9" }, child: [] }, { tag: "path", attr: { d: "M11 12h9" }, child: [] }, { tag: "path", attr: { d: "M12 18h8" }, child: [] }, { tag: "path", attr: { d: "M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4" }, child: [] }, { tag: "path", attr: { d: "M6 10v-6l-2 2" }, child: [] }] })(t);
501
502
  }
502
- function Xr(t) {
503
+ function Vr(t) {
503
504
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M9 6l11 0" }, child: [] }, { tag: "path", attr: { d: "M9 12l11 0" }, child: [] }, { tag: "path", attr: { d: "M9 18l11 0" }, child: [] }, { tag: "path", attr: { d: "M5 6l0 .01" }, child: [] }, { tag: "path", attr: { d: "M5 12l0 .01" }, child: [] }, { tag: "path", attr: { d: "M5 18l0 .01" }, child: [] }] })(t);
504
505
  }
505
- function Vr(t) {
506
+ function Qr(t) {
506
507
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M10 11h-4a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h3a1 1 0 0 1 1 1v6c0 2.667 -1.333 4.333 -4 5" }, child: [] }, { tag: "path", attr: { d: "M19 11h-4a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h3a1 1 0 0 1 1 1v6c0 2.667 -1.333 4.333 -4 5" }, child: [] }] })(t);
507
508
  }
508
- function Qr(t) {
509
+ function Xr(t) {
509
510
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M5 12l14 0" }, child: [] }, { tag: "path", attr: { d: "M16 6.5a4 2 0 0 0 -4 -1.5h-1a3.5 3.5 0 0 0 0 7h2a3.5 3.5 0 0 1 0 7h-1.5a4 2 0 0 1 -4 -1.5" }, child: [] }] })(t);
510
511
  }
511
512
  function Zr(t) {
@@ -537,7 +538,7 @@ const on = Tr("div", {
537
538
  quote: "Sitat",
538
539
  check: "Avkrysningsliste"
539
540
  }, an = {
540
- bullet: /* @__PURE__ */ n(Xr, { size: "1.25rem" }),
541
+ bullet: /* @__PURE__ */ n(Vr, { size: "1.25rem" }),
541
542
  h1: /* @__PURE__ */ n(Ur, { size: "1.25rem" }),
542
543
  h2: /* @__PURE__ */ n(Wr, { size: "1.25rem" }),
543
544
  h3: /* @__PURE__ */ n(jr, { size: "1.25rem" }),
@@ -545,13 +546,13 @@ const on = Tr("div", {
545
546
  number: /* @__PURE__ */ n(Yr, { size: "1.25rem" }),
546
547
  check: /* @__PURE__ */ n(Jr, { size: "1.25rem" }),
547
548
  paragraph: /* @__PURE__ */ n(Gr, { size: "1.25rem" }),
548
- quote: /* @__PURE__ */ n(Vr, { size: "1.25rem" })
549
- }, I = ({
549
+ quote: /* @__PURE__ */ n(Qr, { size: "1.25rem" })
550
+ }, O = ({
550
551
  blockType: t
551
- }) => /* @__PURE__ */ h(B, { children: [
552
- /* @__PURE__ */ n(P, { css: { display: "flex", flex: "0 0 auto" }, children: an[t] }),
552
+ }) => /* @__PURE__ */ h(F, { children: [
553
+ /* @__PURE__ */ n(B, { css: { display: "flex", flex: "0 0 auto" }, children: an[t] }),
553
554
  /* @__PURE__ */ n(
554
- P,
555
+ B,
555
556
  {
556
557
  css: {
557
558
  flex: "1 1 auto",
@@ -568,18 +569,18 @@ const on = Tr("div", {
568
569
  const r = t.anchor.getNode();
569
570
  let e = r.getKey() === "root" ? r : jt(r, (i) => {
570
571
  const o = i.getParent();
571
- return o !== null && Ft(o);
572
+ return o !== null && Pt(o);
572
573
  });
573
574
  return e === null && (e = r.getTopLevelElementOrThrow()), {
574
575
  anchorNode: r,
575
576
  element: e
576
577
  };
577
578
  }, sn = () => {
578
- const [t] = w(), [r, e] = p("paragraph");
579
- L(() => t.registerCommand(
580
- Q,
579
+ const [t] = y(), [r, e] = p("paragraph");
580
+ M(() => t.registerCommand(
581
+ Z,
581
582
  () => {
582
- const c = y(), u = ln(c);
583
+ const c = _(), u = ln(c);
583
584
  if (!u)
584
585
  return !1;
585
586
  const { element: g, anchorNode: C } = u, T = g.getKey();
@@ -600,7 +601,7 @@ const on = Tr("div", {
600
601
  ), [t]);
601
602
  const i = (c) => {
602
603
  r !== c && t.update(() => {
603
- const u = y();
604
+ const u = _();
604
605
  E(u) && (ut(u, () => Ke(c)), e(c));
605
606
  });
606
607
  };
@@ -612,48 +613,48 @@ const on = Tr("div", {
612
613
  {
613
614
  dropdown: !0,
614
615
  css: { display: "flex", width: "100%", overflow: "hidden" },
615
- children: /* @__PURE__ */ n(I, { blockType: r })
616
+ children: /* @__PURE__ */ n(O, { blockType: r })
616
617
  }
617
618
  ),
618
619
  side: "bottom",
619
620
  align: "start",
620
621
  children: [
621
- /* @__PURE__ */ n(M, { onClick: () => {
622
+ /* @__PURE__ */ n(w, { onClick: () => {
622
623
  r !== "paragraph" && t.update(() => {
623
- const c = y();
624
+ const c = _();
624
625
  E(c) && (ut(c, () => G()), e("paragraph"));
625
626
  });
626
- }, children: /* @__PURE__ */ n(I, { blockType: "paragraph" }) }),
627
- /* @__PURE__ */ n(M, { onClick: () => i("h1"), children: /* @__PURE__ */ n(I, { blockType: "h1" }) }),
628
- /* @__PURE__ */ n(M, { onClick: () => i("h2"), children: /* @__PURE__ */ n(I, { blockType: "h2" }) }),
629
- /* @__PURE__ */ n(M, { onClick: () => i("h3"), children: /* @__PURE__ */ n(I, { blockType: "h3" }) }),
630
- /* @__PURE__ */ n(M, { onClick: () => i("h4"), children: /* @__PURE__ */ n(I, { blockType: "h4" }) }),
631
- /* @__PURE__ */ n(M, { onClick: () => {
627
+ }, children: /* @__PURE__ */ n(O, { blockType: "paragraph" }) }),
628
+ /* @__PURE__ */ n(w, { onClick: () => i("h1"), children: /* @__PURE__ */ n(O, { blockType: "h1" }) }),
629
+ /* @__PURE__ */ n(w, { onClick: () => i("h2"), children: /* @__PURE__ */ n(O, { blockType: "h2" }) }),
630
+ /* @__PURE__ */ n(w, { onClick: () => i("h3"), children: /* @__PURE__ */ n(O, { blockType: "h3" }) }),
631
+ /* @__PURE__ */ n(w, { onClick: () => i("h4"), children: /* @__PURE__ */ n(O, { blockType: "h4" }) }),
632
+ /* @__PURE__ */ n(w, { onClick: () => {
632
633
  r !== "bullet" && (t.dispatchCommand(Ue, void 0), e("bullet"));
633
- }, children: /* @__PURE__ */ n(I, { blockType: "bullet" }) }),
634
- /* @__PURE__ */ n(M, { onClick: () => {
634
+ }, children: /* @__PURE__ */ n(O, { blockType: "bullet" }) }),
635
+ /* @__PURE__ */ n(w, { onClick: () => {
635
636
  r !== "number" && (t.dispatchCommand(We, void 0), e("number"));
636
- }, children: /* @__PURE__ */ n(I, { blockType: "number" }) }),
637
- /* @__PURE__ */ n(M, { onClick: () => {
637
+ }, children: /* @__PURE__ */ n(O, { blockType: "number" }) }),
638
+ /* @__PURE__ */ n(w, { onClick: () => {
638
639
  r !== "check" && (t.dispatchCommand(Gt, void 0), e("check"));
639
- }, children: /* @__PURE__ */ n(I, { blockType: "check" }) }),
640
- /* @__PURE__ */ n(M, { onClick: () => {
640
+ }, children: /* @__PURE__ */ n(O, { blockType: "check" }) }),
641
+ /* @__PURE__ */ n(w, { onClick: () => {
641
642
  r !== "quote" && t.update(() => {
642
- const c = y();
643
+ const c = _();
643
644
  E(c) && (ut(c, () => Ge()), e("quote"));
644
645
  });
645
- }, children: /* @__PURE__ */ n(I, { blockType: "quote" }) })
646
+ }, children: /* @__PURE__ */ n(O, { blockType: "quote" }) })
646
647
  ]
647
648
  }
648
649
  ) });
649
650
  }, cn = () => {
650
- const [t] = w(), [r, e] = p(!1), [i, o] = p(!1), [a, l] = p(!1), [s, d] = p(!1), [c, u] = p(!1), [g, C] = p(!1), [T, _] = p(!1), [k, m] = p(""), [v, N] = p(!1), R = x(() => {
651
- const b = y();
652
- E(b) && (e(b.hasFormat("bold")), o(b.hasFormat("italic")), l(b.hasFormat("underline")), d(b.hasFormat("strikethrough")), u(b.hasFormat("code")), C(b.hasFormat("superscript")), _(b.hasFormat("subscript")), m($e(b, "color", "")));
651
+ const [t] = y(), [r, e] = p(!1), [i, o] = p(!1), [a, l] = p(!1), [s, d] = p(!1), [c, u] = p(!1), [g, C] = p(!1), [T, L] = p(!1), [k, m] = p(""), [v, N] = p(!1), R = x(() => {
652
+ const b = _();
653
+ E(b) && (e(b.hasFormat("bold")), o(b.hasFormat("italic")), l(b.hasFormat("underline")), d(b.hasFormat("strikethrough")), u(b.hasFormat("code")), C(b.hasFormat("superscript")), L(b.hasFormat("subscript")), m($e(b, "color", "")));
653
654
  }, []);
654
- L(() => it(
655
+ M(() => it(
655
656
  t.registerCommand(
656
- Q,
657
+ Z,
657
658
  () => (R(), !1),
658
659
  q
659
660
  ),
@@ -666,7 +667,7 @@ const on = Tr("div", {
666
667
  const Y = x(
667
668
  () => t.dispatchCommand(D, "bold"),
668
669
  [t]
669
- ), Z = x(
670
+ ), tt = x(
670
671
  () => t.dispatchCommand(D, "italic"),
671
672
  [t]
672
673
  ), me = x(
@@ -684,7 +685,7 @@ const on = Tr("div", {
684
685
  ), Ce = x(
685
686
  () => t.dispatchCommand(D, "subscript"),
686
687
  [t]
687
- ), _t = Qt(() => {
688
+ ), Lt = Xt(() => {
688
689
  const b = [];
689
690
  return r && b.push("bold"), i && b.push("italic"), a && b.push("underline"), s && b.push("strikethrough"), c && b.push("code"), g && b.push("superscript"), T && b.push("subscript"), k && b.push("color"), b;
690
691
  }, [
@@ -697,26 +698,26 @@ const on = Tr("div", {
697
698
  s,
698
699
  k
699
700
  ]);
700
- return /* @__PURE__ */ h(B, { children: [
701
+ return /* @__PURE__ */ h(F, { children: [
701
702
  /* @__PURE__ */ h(
702
- et,
703
+ rt,
703
704
  {
704
705
  type: "multiple",
705
706
  "aria-label": "Tekstformattering",
706
- value: _t,
707
+ value: Lt,
707
708
  children: [
708
- /* @__PURE__ */ n(O, { onClick: Y, title: "Fet tekst", value: "bold", children: /* @__PURE__ */ n(Br, { size: "1.25rem" }) }),
709
+ /* @__PURE__ */ n(I, { onClick: Y, title: "Fet tekst", value: "bold", children: /* @__PURE__ */ n(Fr, { size: "1.25rem" }) }),
709
710
  /* @__PURE__ */ n(
710
- O,
711
+ I,
711
712
  {
712
- onClick: Z,
713
+ onClick: tt,
713
714
  title: "Kursiv tekst",
714
715
  value: "italic",
715
716
  children: /* @__PURE__ */ n(Kr, { size: "1.25rem" })
716
717
  }
717
718
  ),
718
719
  /* @__PURE__ */ n(
719
- O,
720
+ I,
720
721
  {
721
722
  onClick: me,
722
723
  title: "Understreket tekst",
@@ -730,24 +731,24 @@ const on = Tr("div", {
730
731
  /* @__PURE__ */ h(Zt, { open: v, onOpenChange: N, children: [
731
732
  /* @__PURE__ */ n(te, { children: /* @__PURE__ */ n(lt, { children: /* @__PURE__ */ n(dr, { size: "1.25rem" }) }) }),
732
733
  /* @__PURE__ */ n(ee, { children: /* @__PURE__ */ h(
733
- et,
734
+ rt,
734
735
  {
735
736
  type: "multiple",
736
737
  "aria-label": "Tekstformattering",
737
- value: _t,
738
+ value: Lt,
738
739
  css: { margin: "$1" },
739
740
  children: [
740
741
  /* @__PURE__ */ n(
741
- O,
742
+ I,
742
743
  {
743
744
  onClick: fe,
744
745
  title: "Gjennomstreking",
745
746
  value: "strikethrough",
746
- children: /* @__PURE__ */ n(Qr, { size: "1.25rem" })
747
+ children: /* @__PURE__ */ n(Xr, { size: "1.25rem" })
747
748
  }
748
749
  ),
749
750
  /* @__PURE__ */ n(
750
- O,
751
+ I,
751
752
  {
752
753
  onClick: be,
753
754
  title: "Superscript",
@@ -756,7 +757,7 @@ const on = Tr("div", {
756
757
  }
757
758
  ),
758
759
  /* @__PURE__ */ n(
759
- O,
760
+ I,
760
761
  {
761
762
  onClick: Ce,
762
763
  title: "Subscript",
@@ -764,7 +765,7 @@ const on = Tr("div", {
764
765
  children: /* @__PURE__ */ n(Zr, { size: "1.25rem" })
765
766
  }
766
767
  ),
767
- /* @__PURE__ */ n(O, { onClick: ke, title: "Kode", value: "code", children: /* @__PURE__ */ n(Fr, { size: "1.25rem" }) }),
768
+ /* @__PURE__ */ n(I, { onClick: ke, title: "Kode", value: "code", children: /* @__PURE__ */ n(Pr, { size: "1.25rem" }) }),
768
769
  /* @__PURE__ */ n(hn, { activeColor: k })
769
770
  ]
770
771
  }
@@ -778,30 +779,30 @@ const on = Tr("div", {
778
779
  { name: "Blå", value: "#2044b8" },
779
780
  { name: "Lilla", value: "#9c31de" }
780
781
  ], hn = ({ activeColor: t }) => {
781
- const [r] = w(), [e, i] = p(!1), o = (a) => {
782
+ const [r] = y(), [e, i] = p(!1), o = (a) => {
782
783
  r.update(() => {
783
- const l = y();
784
+ const l = _();
784
785
  l && Ae(l, { color: a });
785
786
  });
786
787
  };
787
788
  return /* @__PURE__ */ h(Zt, { open: e, onOpenChange: i, children: [
788
- /* @__PURE__ */ n(te, { children: /* @__PURE__ */ n(O, { value: "color", title: "Tekstfarge", children: /* @__PURE__ */ n(rn, { size: "1.25rem" }) }) }),
789
+ /* @__PURE__ */ n(te, { children: /* @__PURE__ */ n(I, { value: "color", title: "Tekstfarge", children: /* @__PURE__ */ n(rn, { size: "1.25rem" }) }) }),
789
790
  /* @__PURE__ */ n(ee, { children: /* @__PURE__ */ n(
790
- et,
791
+ rt,
791
792
  {
792
793
  type: "single",
793
794
  "aria-label": "Tekstfarge",
794
795
  value: t,
795
796
  css: { margin: "$1" },
796
797
  children: dn.map((a) => /* @__PURE__ */ n(
797
- O,
798
+ I,
798
799
  {
799
800
  value: a.value,
800
801
  onClick: () => o(
801
802
  !a.value || a.value === t ? null : a.value
802
803
  ),
803
804
  children: a.value ? /* @__PURE__ */ n(
804
- P,
805
+ B,
805
806
  {
806
807
  css: {
807
808
  width: "1rem",
@@ -825,7 +826,7 @@ const on = Tr("div", {
825
826
  ) })
826
827
  ] });
827
828
  }, un = ({ children: t }) => {
828
- const { hasFocus: r, editorRef: e } = F(), i = r, [o, a] = p(i);
829
+ const { hasFocus: r, editorRef: e } = P(), i = r, [o, a] = p(i);
829
830
  tr(() => {
830
831
  a(i);
831
832
  }, [i]);
@@ -882,20 +883,20 @@ const on = Tr("div", {
882
883
  t
883
884
  ] });
884
885
  function pn() {
885
- const [t] = w();
886
- return L(() => it(
886
+ const [t] = y();
887
+ return M(() => it(
887
888
  t.registerCommand(
888
889
  Gt,
889
- () => (je(t, "check"), !0),
890
+ () => (je("check"), !0),
890
891
  z
891
892
  ),
892
893
  t.registerCommand(
893
- we,
894
+ ye,
894
895
  (r) => Dt(r, t, !1),
895
896
  z
896
897
  ),
897
898
  t.registerCommand(
898
- _e,
899
+ Le,
899
900
  (r) => Dt(r, t, !0),
900
901
  z
901
902
  ),
@@ -911,7 +912,7 @@ function pn() {
911
912
  z
912
913
  ),
913
914
  t.registerCommand(
914
- ye,
915
+ _e,
915
916
  (r) => {
916
917
  const e = pt();
917
918
  return e != null && t.isEditable() ? (t.update(() => {
@@ -924,7 +925,7 @@ function pn() {
924
925
  t.registerCommand(
925
926
  Se,
926
927
  (r) => t.getEditorState().read(() => {
927
- const e = y();
928
+ const e = _();
928
929
  if (E(e) && e.isCollapsed()) {
929
930
  const { anchor: i } = e, o = i.type === "element";
930
931
  if (o || i.offset === 0) {
@@ -1022,45 +1023,45 @@ function Dt(t, r, e) {
1022
1023
  }
1023
1024
  }), !1;
1024
1025
  }
1025
- const Lt = Ee("INSERT_IMAGE_COMMAND");
1026
+ const Mt = Ee("INSERT_IMAGE_COMMAND");
1026
1027
  function kn() {
1027
1028
  const [t] = vt();
1028
- return L(() => {
1029
+ return M(() => {
1029
1030
  if (!t.hasNodes([U]))
1030
1031
  throw new Error("ImagePlugin: ImageNode not registered on editor");
1031
1032
  return it(
1032
1033
  t.registerCommand(
1033
- Lt,
1034
+ Mt,
1034
1035
  (r) => {
1035
- const e = Mt(r);
1036
- return Re([e]), Ft(e.getParentOrThrow()) && Pe(e, G).selectEnd(), !0;
1036
+ const e = wt(r);
1037
+ return Re([e]), Pt(e.getParentOrThrow()) && Be(e, G).selectEnd(), !0;
1037
1038
  },
1038
1039
  q
1039
1040
  )
1040
1041
  );
1041
1042
  }, [t]), null;
1042
1043
  }
1043
- const bn = () => /* @__PURE__ */ h(B, { children: [
1044
+ const bn = () => /* @__PURE__ */ h(F, { children: [
1045
+ /* @__PURE__ */ n(Mr, {}),
1044
1046
  /* @__PURE__ */ n(Lr, {}),
1045
- /* @__PURE__ */ n(_r, {}),
1046
- /* @__PURE__ */ n(wr, {}),
1047
+ /* @__PURE__ */ n(yr, {}),
1047
1048
  /* @__PURE__ */ n(pn, {}),
1048
1049
  /* @__PURE__ */ n(Sr, {}),
1049
1050
  /* @__PURE__ */ n(kn, {}),
1050
- /* @__PURE__ */ n(yr, {})
1051
+ /* @__PURE__ */ n(_r, {})
1051
1052
  ] }), Cn = ({
1052
1053
  state: t
1053
1054
  }) => {
1054
- const [r] = w(), e = J(!1);
1055
- return L(() => {
1055
+ const [r] = y(), e = J(!1);
1056
+ return M(() => {
1056
1057
  !t || e.current || (e.current = !0, window.queueMicrotask(() => {
1057
1058
  try {
1058
1059
  if (Rr(t)) {
1059
- t.isEmpty() ? Ir(r) : r.setEditorState(t);
1060
+ t.isEmpty() ? Or(r) : r.setEditorState(t);
1060
1061
  return;
1061
1062
  }
1062
1063
  if (typeof t == "string" && !Tt(t)) {
1063
- Or(t, r);
1064
+ Ir(t, r);
1064
1065
  return;
1065
1066
  }
1066
1067
  const i = r.parseEditorState(t);
@@ -1110,7 +1111,7 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
1110
1111
  }), xn = ({
1111
1112
  isLoading: t
1112
1113
  }) => /* @__PURE__ */ n(
1113
- P,
1114
+ B,
1114
1115
  {
1115
1116
  css: {
1116
1117
  visibility: t ? "visible" : "hidden",
@@ -1136,9 +1137,9 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
1136
1137
  css: g,
1137
1138
  signUrl: C,
1138
1139
  fileUpload: T,
1139
- editable: _ = !0
1140
+ editable: L = !0
1140
1141
  }) => {
1141
- const { hasFocus: k, attributes: m } = $r({ onBlur: c }), v = J(null), N = Qt(
1142
+ const { hasFocus: k, attributes: m } = $r({ onBlur: c }), v = J(null), N = Xt(
1142
1143
  () => ({ hasFocus: k, editorRef: v, signUrl: C, fileUpload: T }),
1143
1144
  [k, C, T]
1144
1145
  );
@@ -1152,7 +1153,7 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
1152
1153
  },
1153
1154
  theme: xt,
1154
1155
  nodes: i,
1155
- editable: _
1156
+ editable: L
1156
1157
  },
1157
1158
  children: [
1158
1159
  /* @__PURE__ */ h(
@@ -1170,7 +1171,7 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
1170
1171
  {
1171
1172
  contentEditable: s,
1172
1173
  placeholder: e ? /* @__PURE__ */ n(
1173
- P,
1174
+ B,
1174
1175
  {
1175
1176
  css: {
1176
1177
  position: "absolute",
@@ -1189,12 +1190,12 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
1189
1190
  /* @__PURE__ */ n(bn, {}),
1190
1191
  o,
1191
1192
  /* @__PURE__ */ n(xn, { isLoading: t }),
1192
- _ && !a && /* @__PURE__ */ n(un, { children: l })
1193
+ L && !a && /* @__PURE__ */ n(un, { children: l })
1193
1194
  ]
1194
1195
  }
1195
1196
  ),
1196
1197
  /* @__PURE__ */ n(Cn, { state: u }),
1197
- /* @__PURE__ */ n(B, { children: r })
1198
+ /* @__PURE__ */ n(F, { children: r })
1198
1199
  ]
1199
1200
  }
1200
1201
  ) });
@@ -1409,11 +1410,11 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
1409
1410
  defaultVariants: {
1410
1411
  size: "md"
1411
1412
  }
1412
- }, ui = Mr(Tn), Mn = ({
1413
+ }, ui = wr(Tn), wn = ({
1413
1414
  fileUpload: t,
1414
1415
  ...r
1415
1416
  }) => {
1416
- const [e] = w(), [i, o] = p(null), a = (s) => {
1417
+ const [e] = y(), [i, o] = p(null), a = (s) => {
1417
1418
  var c;
1418
1419
  const d = (c = s.target.files) == null ? void 0 : c[0];
1419
1420
  if (d) {
@@ -1424,7 +1425,7 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
1424
1425
  }, u.src = g;
1425
1426
  }
1426
1427
  }, l = () => {
1427
- i && !t.isLoading && (e.dispatchCommand(Lt, {
1428
+ i && !t.isLoading && (e.dispatchCommand(Mt, {
1428
1429
  src: i.url,
1429
1430
  altText: `Image: ${i.url}`,
1430
1431
  meta: { width: i.width, height: i.height }
@@ -1456,14 +1457,14 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
1456
1457
  ] })
1457
1458
  ] });
1458
1459
  }, gi = () => {
1459
- const [t] = w(), { fileUpload: r } = F(), [e, i] = p(!1), o = x(() => {
1460
+ const [t] = y(), { fileUpload: r } = P(), [e, i] = p(!1), o = x(() => {
1460
1461
  t.dispatchCommand(Je, {
1461
1462
  rows: "3",
1462
1463
  columns: "3",
1463
1464
  includeHeaders: !1
1464
1465
  });
1465
1466
  }, [t]);
1466
- return /* @__PURE__ */ h(B, { children: [
1467
+ return /* @__PURE__ */ h(F, { children: [
1467
1468
  /* @__PURE__ */ h(
1468
1469
  at,
1469
1470
  {
@@ -1471,11 +1472,11 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
1471
1472
  side: "bottom",
1472
1473
  align: "end",
1473
1474
  children: [
1474
- /* @__PURE__ */ h(M, { onClick: o, children: [
1475
+ /* @__PURE__ */ h(w, { onClick: o, children: [
1475
1476
  /* @__PURE__ */ n(en, { size: "1.25rem" }),
1476
1477
  " Tabell"
1477
1478
  ] }),
1478
- r && /* @__PURE__ */ h(M, { onClick: () => i(!0), children: [
1479
+ r && /* @__PURE__ */ h(w, { onClick: () => i(!0), children: [
1479
1480
  /* @__PURE__ */ n(Nr, { size: "1.25rem" }),
1480
1481
  " Bilde"
1481
1482
  ] })
@@ -1483,7 +1484,7 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
1483
1484
  }
1484
1485
  ),
1485
1486
  r && /* @__PURE__ */ n(
1486
- Mn,
1487
+ wn,
1487
1488
  {
1488
1489
  open: e,
1489
1490
  onOpenChange: i,
@@ -1492,12 +1493,12 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
1492
1493
  )
1493
1494
  ] });
1494
1495
  };
1495
- function Ln(t) {
1496
+ function Mn(t) {
1496
1497
  return f({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "circle", attr: { cx: "256", cy: "256", r: "48" }, child: [] }, { tag: "circle", attr: { cx: "416", cy: "256", r: "48" }, child: [] }, { tag: "circle", attr: { cx: "96", cy: "256", r: "48" }, child: [] }] })(t);
1497
1498
  }
1498
1499
  const pi = () => {
1499
- const [t] = w(), [r, e] = p(null), { hasFocus: i } = F();
1500
- L(() => {
1500
+ const [t] = y(), [r, e] = p(null), { hasFocus: i } = P();
1501
+ M(() => {
1501
1502
  !i && r && e(null);
1502
1503
  }, [i, r]);
1503
1504
  const { refs: o, floatingStyles: a } = Ct({
@@ -1508,10 +1509,10 @@ const pi = () => {
1508
1509
  },
1509
1510
  middleware: [oe({ mainAxis: -20, crossAxis: -2 })]
1510
1511
  });
1511
- L(() => t.registerCommand(
1512
- Q,
1512
+ M(() => t.registerCommand(
1513
+ Z,
1513
1514
  () => {
1514
- const s = y();
1515
+ const s = _();
1515
1516
  if (E(s)) {
1516
1517
  const d = s.anchor.getNode(), c = Ye(d);
1517
1518
  e(c ? t.getElementByKey(c.getKey()) : null);
@@ -1536,10 +1537,10 @@ const pi = () => {
1536
1537
  Nt(!0);
1537
1538
  break;
1538
1539
  case "delete-row":
1539
- Ve();
1540
+ Qe();
1540
1541
  break;
1541
1542
  case "delete-column":
1542
- Xe();
1543
+ Ve();
1543
1544
  break;
1544
1545
  }
1545
1546
  });
@@ -1556,44 +1557,44 @@ const pi = () => {
1556
1557
  ref: o.setFloating,
1557
1558
  style: a,
1558
1559
  css: { padding: "2px", width: "18px", height: "18px" },
1559
- children: /* @__PURE__ */ n(Ln, {})
1560
+ children: /* @__PURE__ */ n(Mn, {})
1560
1561
  }
1561
1562
  ),
1562
1563
  children: [
1563
1564
  /* @__PURE__ */ n(W, { onClick: l("add-row-over"), children: "Legg til rad over" }),
1564
1565
  /* @__PURE__ */ n(W, { onClick: l("add-row-under"), children: "Legg til rad under" }),
1565
- /* @__PURE__ */ n(It, {}),
1566
+ /* @__PURE__ */ n(Ot, {}),
1566
1567
  /* @__PURE__ */ n(W, { onClick: l("add-column-left"), children: "Legg til kolonne venstre" }),
1567
1568
  /* @__PURE__ */ n(W, { onClick: l("add-column-right"), children: "Legg til kolonne høyre" }),
1568
- /* @__PURE__ */ n(It, {}),
1569
+ /* @__PURE__ */ n(Ot, {}),
1569
1570
  /* @__PURE__ */ n(W, { onClick: l("delete-row"), children: "Fjern rad" }),
1570
1571
  /* @__PURE__ */ n(W, { onClick: l("delete-column"), children: "Fjern kolonne" })
1571
1572
  ]
1572
1573
  }
1573
1574
  ) : null;
1574
1575
  };
1575
- function wt(t) {
1576
+ function yt(t) {
1576
1577
  let r = t;
1577
1578
  const e = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi, i = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;
1578
1579
  return r = String(r).trim(), r.match(e) || r.match(i) ? r : "https://";
1579
1580
  }
1580
1581
  function ge(t) {
1581
1582
  const r = t.anchor, e = t.focus, i = t.anchor.getNode(), o = t.focus.getNode();
1582
- return i === o ? i : t.isBackward() ? yt(e) ? i : o : yt(r) ? i : o;
1583
+ return i === o ? i : t.isBackward() ? _t(e) ? i : o : _t(r) ? i : o;
1583
1584
  }
1584
- const mi = (t) => (K.baseURL = t, K), X = class X extends j {
1585
+ const mi = (t) => (K.baseURL = t, K), Q = class Q extends j {
1585
1586
  static getType() {
1586
1587
  return "rutine_link";
1587
1588
  }
1588
1589
  static clone(r) {
1589
- return new X(r.__url, {}, r.__key);
1590
+ return new Q(r.__url, {}, r.__key);
1590
1591
  }
1591
1592
  createDOM(r) {
1592
1593
  const e = super.createDOM(r);
1593
1594
  return e.setAttribute("href", this.getURL()), e.setAttribute("target", "_blank"), e.setAttribute("rel", "noopener noreferrer"), e.classList.add("ain-rich-text-rutine-link"), e;
1594
1595
  }
1595
1596
  static importJSON(r) {
1596
- return pe(r.url);
1597
+ return pe(r.url).updateFromJSON(r);
1597
1598
  }
1598
1599
  exportJSON() {
1599
1600
  return {
@@ -1605,32 +1606,32 @@ const mi = (t) => (K.baseURL = t, K), X = class X extends j {
1605
1606
  }
1606
1607
  getURL() {
1607
1608
  try {
1608
- return new URL(this.__url, X.baseURL).toString();
1609
+ return new URL(this.__url, Q.baseURL).toString();
1609
1610
  } catch {
1610
1611
  return "";
1611
1612
  }
1612
1613
  }
1613
1614
  };
1614
- A(X, "baseURL", "");
1615
- let K = X;
1615
+ A(Q, "baseURL", "");
1616
+ let K = Q;
1616
1617
  function pe(t) {
1617
1618
  return new K(t);
1618
1619
  }
1619
- function wn(t) {
1620
+ function yn(t) {
1620
1621
  return t instanceof K;
1621
1622
  }
1622
- const _n = ({ onClose: t }) => {
1623
- const [r] = w(), e = x(
1623
+ const Ln = ({ onClose: t }) => {
1624
+ const [r] = y(), e = x(
1624
1625
  (o) => {
1625
1626
  r.update(() => {
1626
- const a = y();
1627
+ const a = _();
1627
1628
  if (E(a) && a.isCollapsed()) {
1628
1629
  const l = $(o);
1629
1630
  a.insertNodes([l]);
1630
1631
  const s = Wt();
1631
1632
  s.setTextNodeRange(l, 0, l, o.length), nt(s);
1632
1633
  }
1633
- r.dispatchCommand(ot, wt(o));
1634
+ r.dispatchCommand(ot, yt(o));
1634
1635
  });
1635
1636
  },
1636
1637
  [r]
@@ -1644,12 +1645,12 @@ const _n = ({ onClose: t }) => {
1644
1645
  /* @__PURE__ */ n(S, { type: "submit", variant: "primary", children: "Sett inn" })
1645
1646
  ] })
1646
1647
  ] });
1647
- }, yn = ({
1648
+ }, _n = ({
1648
1649
  onClose: t,
1649
1650
  getDocs: r
1650
1651
  }) => {
1651
- const [e] = w(), i = J(!1), [o, a] = p(null), [l, s] = p([]);
1652
- L(() => {
1652
+ const [e] = y(), i = J(!1), [o, a] = p(null), [l, s] = p([]);
1653
+ M(() => {
1653
1654
  i.current || (async () => {
1654
1655
  i.current = !0;
1655
1656
  try {
@@ -1662,12 +1663,12 @@ const _n = ({ onClose: t }) => {
1662
1663
  const d = x(
1663
1664
  (c) => {
1664
1665
  e.update(() => {
1665
- const u = y();
1666
+ const u = _();
1666
1667
  if (E(u)) {
1667
1668
  const g = [];
1668
1669
  for (const [C, T] of c.entries()) {
1669
- const _ = pe(T.value);
1670
- _.append($(T.label)), g.push(_), C !== c.length - 1 && g.push($(" "));
1670
+ const L = pe(T.value);
1671
+ L.append($(T.label)), g.push(L), C !== c.length - 1 && g.push($(" "));
1671
1672
  }
1672
1673
  u.insertNodes(g);
1673
1674
  }
@@ -1675,7 +1676,7 @@ const _n = ({ onClose: t }) => {
1675
1676
  },
1676
1677
  [e]
1677
1678
  );
1678
- return /* @__PURE__ */ h(B, { children: [
1679
+ return /* @__PURE__ */ h(F, { children: [
1679
1680
  !o && /* @__PURE__ */ n(st, {}),
1680
1681
  o && /* @__PURE__ */ n(
1681
1682
  ar,
@@ -1704,7 +1705,7 @@ const _n = ({ onClose: t }) => {
1704
1705
  fileUpload: r,
1705
1706
  filePrefix: e
1706
1707
  }) => {
1707
- const [i] = w(), [o, a] = p(null), l = async (d) => {
1708
+ const [i] = y(), [o, a] = p(null), l = async (d) => {
1708
1709
  var u;
1709
1710
  const c = (u = d.target.files) == null ? void 0 : u[0];
1710
1711
  if (c) {
@@ -1718,17 +1719,17 @@ const _n = ({ onClose: t }) => {
1718
1719
  i.update(() => {
1719
1720
  if (!o)
1720
1721
  return;
1721
- const d = y();
1722
+ const d = _();
1722
1723
  if (E(d) && d.isCollapsed()) {
1723
1724
  const c = $(o.name);
1724
1725
  d.insertNodes([c]);
1725
1726
  const u = Wt();
1726
1727
  u.setTextNodeRange(c, 0, c, o.name.length), nt(u);
1727
1728
  }
1728
- i.dispatchCommand(ot, wt(o.url));
1729
+ i.dispatchCommand(ot, yt(o.url));
1729
1730
  });
1730
1731
  }, [i, o]);
1731
- return /* @__PURE__ */ h(B, { children: [
1732
+ return /* @__PURE__ */ h(F, { children: [
1732
1733
  r.isLoading && /* @__PURE__ */ n(st, {}),
1733
1734
  /* @__PURE__ */ n(
1734
1735
  bt,
@@ -1759,7 +1760,7 @@ const _n = ({ onClose: t }) => {
1759
1760
  getDocs: e,
1760
1761
  filePrefix: i
1761
1762
  }) => {
1762
- const { fileUpload: o } = F(), [a, l] = p("url"), s = () => {
1763
+ const { fileUpload: o } = P(), [a, l] = p("url"), s = () => {
1763
1764
  r(!1);
1764
1765
  };
1765
1766
  return /* @__PURE__ */ h(ne, { open: t, onOpenChange: r, css: { width: "600px" }, children: [
@@ -1775,8 +1776,8 @@ const _n = ({ onClose: t }) => {
1775
1776
  ),
1776
1777
  o && /* @__PURE__ */ n(gt, { active: a === "file", onClick: () => l("file"), children: "Fil" })
1777
1778
  ] }),
1778
- a === "url" && /* @__PURE__ */ n(_n, { onClose: s }),
1779
- a === "rutine" && e && /* @__PURE__ */ n(yn, { onClose: s, getDocs: e }),
1779
+ a === "url" && /* @__PURE__ */ n(Ln, { onClose: s }),
1780
+ a === "rutine" && e && /* @__PURE__ */ n(_n, { onClose: s, getDocs: e }),
1780
1781
  a === "file" && o && /* @__PURE__ */ n(
1781
1782
  Sn,
1782
1783
  {
@@ -1790,20 +1791,20 @@ const _n = ({ onClose: t }) => {
1790
1791
  getDocs: t,
1791
1792
  filePrefix: r
1792
1793
  }) => {
1793
- const [e] = w(), [i, o] = p(!1), [a, l] = p(!1), s = x(() => {
1794
- const d = y();
1794
+ const [e] = y(), [i, o] = p(!1), [a, l] = p(!1), s = x(() => {
1795
+ const d = _();
1795
1796
  if (E(d)) {
1796
1797
  const c = ge(d), u = c.getParent();
1797
- o(tt(u) || tt(c));
1798
+ o(et(u) || et(c));
1798
1799
  }
1799
1800
  }, []);
1800
- return L(() => e.registerCommand(
1801
- Q,
1801
+ return M(() => e.registerCommand(
1802
+ Z,
1802
1803
  () => (s(), !1),
1803
1804
  q
1804
- ), [e, s]), /* @__PURE__ */ h(et, { type: "single", value: i ? "link" : "", children: [
1805
+ ), [e, s]), /* @__PURE__ */ h(rt, { type: "single", value: i ? "link" : "", children: [
1805
1806
  /* @__PURE__ */ n(
1806
- O,
1807
+ I,
1807
1808
  {
1808
1809
  onClick: () => {
1809
1810
  i ? e.dispatchCommand(ot, null) : l(!0);
@@ -1824,8 +1825,8 @@ const _n = ({ onClose: t }) => {
1824
1825
  )
1825
1826
  ] });
1826
1827
  }, ki = () => {
1827
- const [t] = w(), r = J(null), [e, i] = p(null), [o, a] = p(""), { hasFocus: l } = F();
1828
- L(() => {
1828
+ const [t] = y(), r = J(null), [e, i] = p(null), [o, a] = p(""), { hasFocus: l } = P();
1829
+ M(() => {
1829
1830
  e ? t.update(() => {
1830
1831
  a(e.getURL());
1831
1832
  }) : a("");
@@ -1844,43 +1845,43 @@ const _n = ({ onClose: t }) => {
1844
1845
  xr(u)
1845
1846
  ]), C = x(() => {
1846
1847
  var m;
1847
- const k = y();
1848
+ const k = _();
1848
1849
  if (E(k)) {
1849
1850
  const v = ge(k), N = v.getParent();
1850
1851
  let R = null;
1851
- if (tt(N) ? R = N : tt(v) && (R = v), R) {
1852
- const Y = window.getSelection(), Z = t.getRootElement();
1853
- k !== null && Y !== null && Z !== null && Z.contains(Y.anchorNode) && t.isEditable() && (r.current = ((m = Y.focusNode) == null ? void 0 : m.parentElement) ?? null);
1852
+ if (et(N) ? R = N : et(v) && (R = v), R) {
1853
+ const Y = window.getSelection(), tt = t.getRootElement();
1854
+ k !== null && Y !== null && tt !== null && tt.contains(Y.anchorNode) && t.isEditable() && (r.current = ((m = Y.focusNode) == null ? void 0 : m.parentElement) ?? null);
1854
1855
  }
1855
1856
  i(R);
1856
1857
  }
1857
1858
  }, [t]), T = x(() => {
1858
- e && wn(e) && t.update(() => {
1859
+ e && yn(e) && t.update(() => {
1859
1860
  e.remove();
1860
1861
  }), t.dispatchCommand(ot, null);
1861
1862
  }, [t, e]);
1862
- if (L(() => {
1863
+ if (M(() => {
1863
1864
  t.getEditorState().read(() => {
1864
1865
  C();
1865
1866
  });
1866
- }, [t, C]), L(() => it(
1867
+ }, [t, C]), M(() => it(
1867
1868
  t.registerUpdateListener(({ editorState: k }) => {
1868
1869
  k.read(() => {
1869
1870
  C();
1870
1871
  });
1871
1872
  }),
1872
1873
  t.registerCommand(
1873
- Q,
1874
+ Z,
1874
1875
  () => (C(), !1),
1875
1876
  q
1876
1877
  ),
1877
1878
  t.registerCommand(
1878
1879
  Ut,
1879
1880
  () => e ? (i(null), !0) : !1,
1880
- Ie
1881
+ Oe
1881
1882
  )
1882
1883
  ), [t, C, e]), !s) return null;
1883
- const _ = wt(o);
1884
+ const L = yt(o);
1884
1885
  return /* @__PURE__ */ n(se, { children: /* @__PURE__ */ h(
1885
1886
  re,
1886
1887
  {
@@ -1896,7 +1897,7 @@ const _n = ({ onClose: t }) => {
1896
1897
  ...g(),
1897
1898
  children: [
1898
1899
  /* @__PURE__ */ n(
1899
- P,
1900
+ B,
1900
1901
  {
1901
1902
  as: "a",
1902
1903
  css: {
@@ -1906,8 +1907,8 @@ const _n = ({ onClose: t }) => {
1906
1907
  textOverflow: "ellipsis",
1907
1908
  marginRight: "$4"
1908
1909
  },
1909
- href: _,
1910
- title: _,
1910
+ href: L,
1911
+ title: L,
1911
1912
  target: "_blank",
1912
1913
  rel: "noreferrer",
1913
1914
  children: o
@@ -1923,20 +1924,20 @@ const _n = ({ onClose: t }) => {
1923
1924
  at,
1924
1925
  {
1925
1926
  align: "end",
1926
- trigger: /* @__PURE__ */ n(lt, { dropdown: !0, children: /* @__PURE__ */ n(Ot, { size: "1.25rem" }) }),
1927
+ trigger: /* @__PURE__ */ n(lt, { dropdown: !0, children: /* @__PURE__ */ n(It, { size: "1.25rem" }) }),
1927
1928
  children: [
1928
1929
  /* @__PURE__ */ h(
1929
- M,
1930
+ w,
1930
1931
  {
1931
1932
  onClick: () => t.dispatchCommand(ht, "left"),
1932
1933
  children: [
1933
- /* @__PURE__ */ n(Ot, { size: "1.25rem" }),
1934
+ /* @__PURE__ */ n(It, { size: "1.25rem" }),
1934
1935
  "Venstre"
1935
1936
  ]
1936
1937
  }
1937
1938
  ),
1938
1939
  /* @__PURE__ */ h(
1939
- M,
1940
+ w,
1940
1941
  {
1941
1942
  onClick: () => t.dispatchCommand(ht, "center"),
1942
1943
  children: [
@@ -1946,11 +1947,11 @@ const _n = ({ onClose: t }) => {
1946
1947
  }
1947
1948
  ),
1948
1949
  /* @__PURE__ */ h(
1949
- M,
1950
+ w,
1950
1951
  {
1951
1952
  onClick: () => t.dispatchCommand(ht, "right"),
1952
1953
  children: [
1953
- /* @__PURE__ */ n(Pr, { size: "1.25rem" }),
1954
+ /* @__PURE__ */ n(Br, { size: "1.25rem" }),
1954
1955
  "Høyre"
1955
1956
  ]
1956
1957
  }
@@ -1959,20 +1960,20 @@ const _n = ({ onClose: t }) => {
1959
1960
  }
1960
1961
  );
1961
1962
  }, zt = ["image/"], Ci = () => {
1962
- const [t] = vt(), { fileUpload: r } = F();
1963
- return L(() => t.registerCommand(
1963
+ const [t] = vt(), { fileUpload: r } = P();
1964
+ return M(() => t.registerCommand(
1964
1965
  qe,
1965
1966
  (e) => ((async () => {
1966
- const i = await Be(
1967
+ const i = await Fe(
1967
1968
  e,
1968
1969
  [zt].flatMap((o) => o)
1969
1970
  );
1970
1971
  for (const { file: o, result: a } of i)
1971
- if (Fe(o, zt)) {
1972
+ if (Pe(o, zt)) {
1972
1973
  let l = a;
1973
1974
  const s = new Image(), d = window.URL.createObjectURL(o);
1974
1975
  s.onload = async () => {
1975
- r && (l = await r.uploadFile({ file: o })), t.dispatchCommand(Lt, {
1976
+ r && (l = await r.uploadFile({ file: o })), t.dispatchCommand(Mt, {
1976
1977
  src: l,
1977
1978
  altText: o.name,
1978
1979
  meta: { width: s.naturalWidth, height: s.naturalHeight }
@@ -1984,25 +1985,25 @@ const _n = ({ onClose: t }) => {
1984
1985
  ), [t, r]), null;
1985
1986
  };
1986
1987
  export {
1987
- Mt as $createImageNode,
1988
+ wt as $createImageNode,
1988
1989
  pe as $createRutineLinkNode,
1989
1990
  li as $getNodesOfTypes,
1990
1991
  si as $isImageNode,
1991
- wn as $isRutineLinkNode,
1992
+ yn as $isRutineLinkNode,
1992
1993
  bi as AlignToolbarDropdown,
1993
1994
  Ci as DragDropPastePlugin,
1994
1995
  un as FloatingToolbar,
1995
1996
  U as ImageNode,
1996
1997
  gi as InsertSelector,
1997
1998
  ki as LinkEditPlugin,
1998
- rt as LinkTargetNode,
1999
+ V as LinkTargetNode,
1999
2000
  fi as LinkToolbarButton,
2000
2001
  hi as RichTextEditor,
2001
2002
  gn as RichTextToolbar,
2002
2003
  K as RutineLinkNode,
2003
2004
  mi as RutineLinkNodeInit,
2004
2005
  pi as TableEditPlugin,
2005
- Ir as clearEditorState,
2006
+ Or as clearEditorState,
2006
2007
  ci as defaultNodes,
2007
2008
  di as defaultViewNodes,
2008
2009
  Rr as isEditorState,
@@ -2010,9 +2011,9 @@ export {
2010
2011
  de as richTextContext,
2011
2012
  ui as richTextCss,
2012
2013
  Tn as richTextStyleObj,
2013
- Or as setStateFromPlainText,
2014
+ Ir as setStateFromPlainText,
2014
2015
  oi as stateToHTML,
2015
2016
  ai as syncStateToHTML,
2016
2017
  $r as useHasFocusWithin,
2017
- F as useRichTextContext
2018
+ P as useRichTextContext
2018
2019
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkitektbedriftene/fe-lib",
3
- "version": "6.1.3",
3
+ "version": "7.0.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./oidc": {
@@ -68,15 +68,15 @@
68
68
  },
69
69
  "dependencies": {
70
70
  "@floating-ui/react": "^0.26.0",
71
- "@lexical/headless": "~0.22.0",
72
- "@lexical/html": "~0.22.0",
73
- "@lexical/link": "~0.22.0",
74
- "@lexical/list": "~0.22.0",
75
- "@lexical/react": "~0.22.0",
76
- "@lexical/rich-text": "~0.22.0",
77
- "@lexical/selection": "~0.22.0",
78
- "@lexical/table": "~0.22.0",
79
- "@lexical/utils": "~0.22.0",
71
+ "@lexical/headless": "~0.39.0",
72
+ "@lexical/html": "~0.39.0",
73
+ "@lexical/link": "~0.39.0",
74
+ "@lexical/list": "~0.39.0",
75
+ "@lexical/react": "~0.39.0",
76
+ "@lexical/rich-text": "~0.39.0",
77
+ "@lexical/selection": "~0.39.0",
78
+ "@lexical/table": "~0.39.0",
79
+ "@lexical/utils": "~0.39.0",
80
80
  "@radix-ui/react-checkbox": "^1.1.3",
81
81
  "@radix-ui/react-dialog": "^1.1.4",
82
82
  "@radix-ui/react-dropdown-menu": "^2.1.4",
@@ -86,7 +86,7 @@
86
86
  "@uidotdev/usehooks": "^2.4.1",
87
87
  "clsx": "^2.1.1",
88
88
  "jwt-decode": "^4.0.0",
89
- "lexical": "~0.22.0",
89
+ "lexical": "~0.39.0",
90
90
  "motion": "^12.23.12",
91
91
  "oidc-client-ts": "^2.2.2",
92
92
  "react-icons": "^5.5.0",