@arkitektbedriftene/fe-lib 0.4.22 → 0.4.23
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/rich-text.es.js +24 -24
- package/package.json +1 -1
package/dist/rich-text.es.js
CHANGED
|
@@ -11,7 +11,7 @@ import { HeadingNode as le, QuoteNode as se, $isHeadingNode as ce, $createHeadin
|
|
|
11
11
|
import { TableNode as he, TableRowNode as pe, TableCellNode as ge, INSERT_TABLE_COMMAND as fe, $getTableCellNodeFromLexicalNode as me, $deleteTableColumn__EXPERIMENTAL as ke, $deleteTableRow__EXPERIMENTAL as be, $insertTableColumn__EXPERIMENTAL as ct, $insertTableRow__EXPERIMENTAL as dt } from "@lexical/table";
|
|
12
12
|
import { jsx as n, jsxs as f, Fragment as Y } from "react/jsx-runtime";
|
|
13
13
|
import { createContext as ve, useState as b, useRef as et, useCallback as v, useContext as Ce, useEffect as N, useMemo as Lt, useLayoutEffect as Me } from "react";
|
|
14
|
-
import { c as O, s as Tt, D as rt, T as Nt, a as M, B as P, b as yt, d as
|
|
14
|
+
import { c as O, s as Tt, D as rt, T as Nt, a as M, B as P, b as yt, d as I, u as nt, e as xt, f as Le, g as Te, o as St, h as Ne, i as Et, j as wt, F as Rt, O as _t, k as ye, l as xe, S as Se, m as $, n as _, p as ut, q as Ee, N as we, r as ht, t as Re, v as It, C as _e, w as Ie, x as ze } from "./Checkbox-8b8c360d.js";
|
|
15
15
|
import "react-select";
|
|
16
16
|
import { LexicalComposer as $e } from "@lexical/react/LexicalComposer.js";
|
|
17
17
|
import { RichTextPlugin as Oe } from "@lexical/react/LexicalRichTextPlugin.js";
|
|
@@ -385,7 +385,7 @@ const vr = Tt("div", {
|
|
|
385
385
|
value: D,
|
|
386
386
|
children: [
|
|
387
387
|
/* @__PURE__ */ n(
|
|
388
|
-
|
|
388
|
+
I,
|
|
389
389
|
{
|
|
390
390
|
onClick: m,
|
|
391
391
|
title: "Fet tekst",
|
|
@@ -394,7 +394,7 @@ const vr = Tt("div", {
|
|
|
394
394
|
}
|
|
395
395
|
),
|
|
396
396
|
/* @__PURE__ */ n(
|
|
397
|
-
|
|
397
|
+
I,
|
|
398
398
|
{
|
|
399
399
|
onClick: E,
|
|
400
400
|
title: "Kursiv tekst",
|
|
@@ -403,7 +403,7 @@ const vr = Tt("div", {
|
|
|
403
403
|
}
|
|
404
404
|
),
|
|
405
405
|
/* @__PURE__ */ n(
|
|
406
|
-
|
|
406
|
+
I,
|
|
407
407
|
{
|
|
408
408
|
onClick: x,
|
|
409
409
|
title: "Understreket tekst",
|
|
@@ -412,7 +412,7 @@ const vr = Tt("div", {
|
|
|
412
412
|
}
|
|
413
413
|
),
|
|
414
414
|
/* @__PURE__ */ n(
|
|
415
|
-
|
|
415
|
+
I,
|
|
416
416
|
{
|
|
417
417
|
onClick: k,
|
|
418
418
|
title: "Kode",
|
|
@@ -421,7 +421,7 @@ const vr = Tt("div", {
|
|
|
421
421
|
}
|
|
422
422
|
),
|
|
423
423
|
/* @__PURE__ */ n(
|
|
424
|
-
|
|
424
|
+
I,
|
|
425
425
|
{
|
|
426
426
|
onClick: S,
|
|
427
427
|
title: "Superscript",
|
|
@@ -465,7 +465,7 @@ const vr = Tt("div", {
|
|
|
465
465
|
})
|
|
466
466
|
]);
|
|
467
467
|
return i ? /* @__PURE__ */ n(Rt, { children: /* @__PURE__ */ n(
|
|
468
|
-
|
|
468
|
+
_t,
|
|
469
469
|
{
|
|
470
470
|
ref: s.setFloating,
|
|
471
471
|
style: d,
|
|
@@ -656,7 +656,7 @@ const wr = () => /* @__PURE__ */ f(Y, { children: [
|
|
|
656
656
|
console.error("Could not parse"), console.error(e);
|
|
657
657
|
}
|
|
658
658
|
}, []), null;
|
|
659
|
-
},
|
|
659
|
+
}, _r = Tt("div", {
|
|
660
660
|
border: "1px solid $borderDarker",
|
|
661
661
|
borderRadius: "$md",
|
|
662
662
|
position: "relative",
|
|
@@ -693,7 +693,7 @@ const wr = () => /* @__PURE__ */ f(Y, { children: [
|
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
695
|
]
|
|
696
|
-
}),
|
|
696
|
+
}), Ir = ({
|
|
697
697
|
isLoading: t
|
|
698
698
|
}) => /* @__PURE__ */ n(
|
|
699
699
|
P,
|
|
@@ -736,7 +736,7 @@ const wr = () => /* @__PURE__ */ f(Y, { children: [
|
|
|
736
736
|
},
|
|
737
737
|
children: [
|
|
738
738
|
/* @__PURE__ */ f(
|
|
739
|
-
|
|
739
|
+
_r,
|
|
740
740
|
{
|
|
741
741
|
ref: x,
|
|
742
742
|
hasFocus: m,
|
|
@@ -768,7 +768,7 @@ const wr = () => /* @__PURE__ */ f(Y, { children: [
|
|
|
768
768
|
),
|
|
769
769
|
/* @__PURE__ */ n(wr, {}),
|
|
770
770
|
i,
|
|
771
|
-
/* @__PURE__ */ n(
|
|
771
|
+
/* @__PURE__ */ n(Ir, { isLoading: t }),
|
|
772
772
|
!l && /* @__PURE__ */ n(Nr, { children: a })
|
|
773
773
|
]
|
|
774
774
|
}
|
|
@@ -1035,14 +1035,14 @@ const vn = () => {
|
|
|
1035
1035
|
}
|
|
1036
1036
|
),
|
|
1037
1037
|
children: [
|
|
1038
|
-
/* @__PURE__ */ n(
|
|
1039
|
-
/* @__PURE__ */ n(
|
|
1038
|
+
/* @__PURE__ */ n(_, { onClick: a("add-row-over"), children: "Legg til rad over" }),
|
|
1039
|
+
/* @__PURE__ */ n(_, { onClick: a("add-row-under"), children: "Legg til rad under" }),
|
|
1040
1040
|
/* @__PURE__ */ n(ut, {}),
|
|
1041
|
-
/* @__PURE__ */ n(
|
|
1042
|
-
/* @__PURE__ */ n(
|
|
1041
|
+
/* @__PURE__ */ n(_, { onClick: a("add-column-left"), children: "Legg til kolonne venstre" }),
|
|
1042
|
+
/* @__PURE__ */ n(_, { onClick: a("add-column-right"), children: "Legg til kolonne høyre" }),
|
|
1043
1043
|
/* @__PURE__ */ n(ut, {}),
|
|
1044
|
-
/* @__PURE__ */ n(
|
|
1045
|
-
/* @__PURE__ */ n(
|
|
1044
|
+
/* @__PURE__ */ n(_, { onClick: a("delete-row"), children: "Fjern rad" }),
|
|
1045
|
+
/* @__PURE__ */ n(_, { onClick: a("delete-column"), children: "Fjern kolonne" })
|
|
1046
1046
|
]
|
|
1047
1047
|
}
|
|
1048
1048
|
) : null;
|
|
@@ -1061,7 +1061,7 @@ const Cn = (t) => (R.baseURL = t, R), U = class extends vt {
|
|
|
1061
1061
|
return "rutine_link";
|
|
1062
1062
|
}
|
|
1063
1063
|
static clone(r) {
|
|
1064
|
-
return new U(r.
|
|
1064
|
+
return new U(r.__url, {}, r.__key);
|
|
1065
1065
|
}
|
|
1066
1066
|
createDOM(r) {
|
|
1067
1067
|
const e = super.createDOM(r);
|
|
@@ -1114,7 +1114,7 @@ const Dr = ({ onClose: t }) => {
|
|
|
1114
1114
|
e(i.target.url.value), t();
|
|
1115
1115
|
}, children: [
|
|
1116
1116
|
/* @__PURE__ */ n(Re, { name: "url", label: "URL", type: "url", required: !0 }),
|
|
1117
|
-
/* @__PURE__ */ f(
|
|
1117
|
+
/* @__PURE__ */ f(It, { children: [
|
|
1118
1118
|
/* @__PURE__ */ n($, { onClick: t, children: "Avbryt" }),
|
|
1119
1119
|
/* @__PURE__ */ n($, { type: "submit", variant: "primary", children: "Lagre" })
|
|
1120
1120
|
] })
|
|
@@ -1137,8 +1137,8 @@ const Dr = ({ onClose: t }) => {
|
|
|
1137
1137
|
[e]
|
|
1138
1138
|
);
|
|
1139
1139
|
return /* @__PURE__ */ f(Y, { children: [
|
|
1140
|
-
/* @__PURE__ */ n(
|
|
1141
|
-
/* @__PURE__ */ f(
|
|
1140
|
+
/* @__PURE__ */ n(_e, { isMulti: !0, options: l, onChange: i }),
|
|
1141
|
+
/* @__PURE__ */ f(It, { children: [
|
|
1142
1142
|
/* @__PURE__ */ n($, { onClick: t, children: "Avbryt" }),
|
|
1143
1143
|
/* @__PURE__ */ n(
|
|
1144
1144
|
$,
|
|
@@ -1182,7 +1182,7 @@ const Dr = ({ onClose: t }) => {
|
|
|
1182
1182
|
J
|
|
1183
1183
|
), [r, a]), /* @__PURE__ */ f(yt, { type: "single", value: e ? "link" : "", children: [
|
|
1184
1184
|
/* @__PURE__ */ n(
|
|
1185
|
-
|
|
1185
|
+
I,
|
|
1186
1186
|
{
|
|
1187
1187
|
onClick: () => {
|
|
1188
1188
|
e ? r.dispatchCommand(Z, null) : l(!0);
|
|
@@ -1216,7 +1216,7 @@ const Dr = ({ onClose: t }) => {
|
|
|
1216
1216
|
elements: {
|
|
1217
1217
|
reference: r.current
|
|
1218
1218
|
},
|
|
1219
|
-
middleware: [
|
|
1219
|
+
middleware: [Ie()]
|
|
1220
1220
|
}), { getFloatingProps: u } = Et([
|
|
1221
1221
|
wt(g),
|
|
1222
1222
|
ze(g)
|
|
@@ -1261,7 +1261,7 @@ const Dr = ({ onClose: t }) => {
|
|
|
1261
1261
|
return null;
|
|
1262
1262
|
const x = Bt(i);
|
|
1263
1263
|
return /* @__PURE__ */ n(Rt, { children: /* @__PURE__ */ f(
|
|
1264
|
-
|
|
1264
|
+
_t,
|
|
1265
1265
|
{
|
|
1266
1266
|
ref: d.setFloating,
|
|
1267
1267
|
css: {
|