@caspeco/casper-ui-library 10.9.0 → 10.9.1
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/components/phone-input/country-data.d.ts +4 -1
- package/dist/components/phone-input/country-data.d.ts.map +1 -1
- package/dist/components/phone-input/country-data.js +1 -1
- package/dist/components/phone-input/translations.js +18 -18
- package/dist/node_modules/@tiptap/core/dist/index.js +84 -74
- package/dist/node_modules/@tiptap/extension-list/dist/index.js +1 -1
- package/dist/node_modules/libphonenumber-js/metadata.mobile.json.js +27 -30
- package/package.json +15 -15
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { CountryCode } from 'libphonenumber-js/mobile/es6';
|
|
2
2
|
import { Locales } from './translations.js';
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Lowercases and strips diacritics for accent-insensitive search (e.g. "espana" matches "España"),
|
|
5
|
+
* and strips a leading "+" so dial codes can be searched the way they're dialed (e.g. "+46").
|
|
6
|
+
*/
|
|
4
7
|
export declare function normalizeForSearch(value: string): string;
|
|
5
8
|
/** A country row produced by {@link getLocalizedCountries}. */
|
|
6
9
|
export interface CountryItem {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"country-data.d.ts","sourceRoot":"","sources":["../../../lib/components/phone-input/country-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuC,KAAK,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACrG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C
|
|
1
|
+
{"version":3,"file":"country-data.d.ts","sourceRoot":"","sources":["../../../lib/components/phone-input/country-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuC,KAAK,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACrG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMxD;AAQD,+DAA+D;AAC/D,MAAM,WAAW,WAAW;IAC3B,IAAI,EAAE,WAAW,CAAC;IAClB,4EAA4E;IAC5E,IAAI,EAAE,MAAM,CAAC;IACb,sEAAsE;IACtE,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,oFAAoF;IACpF,UAAU,EAAE,MAAM,CAAC;CACnB;AAgBD;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,OAAO,GAAG,WAAW,EAAE,CAmBpE"}
|
|
@@ -2,7 +2,7 @@ import { getCountries as e } from "../../node_modules/libphonenumber-js/mobile/e
|
|
|
2
2
|
import { getCountryCallingCode as t } from "../../node_modules/libphonenumber-js/mobile/es6/exports/getCountryCallingCode.js";
|
|
3
3
|
//#region lib/components/phone-input/country-data.ts
|
|
4
4
|
function n(e) {
|
|
5
|
-
return e.normalize("NFD").replace(/\p{Diacritic}/gu, "").toLowerCase();
|
|
5
|
+
return e.normalize("NFD").replace(/\p{Diacritic}/gu, "").toLowerCase().replace(/^\+/, "");
|
|
6
6
|
}
|
|
7
7
|
var r = e().map((e) => {
|
|
8
8
|
let n = new Intl.Locale(`und-${e}`).maximize().language, r = new Intl.DisplayNames([n], { type: "region" }).of(e) ?? e;
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
var e = {
|
|
3
3
|
searchCountryPlaceholder: "Search country...",
|
|
4
4
|
noCountriesFound: "No countries found",
|
|
5
|
-
enterPhoneNumberPlaceholder: "Enter your
|
|
6
|
-
numberLooksIncomplete: "Please enter a valid
|
|
7
|
-
requiredFieldEmpty: "
|
|
5
|
+
enterPhoneNumberPlaceholder: "Enter your mobile number",
|
|
6
|
+
numberLooksIncomplete: "Please enter a valid mobile number",
|
|
7
|
+
requiredFieldEmpty: "Mobile number is required",
|
|
8
8
|
openCountrySelector: "Open country selector"
|
|
9
9
|
}, t = {
|
|
10
10
|
"sv-SE": {
|
|
11
11
|
searchCountryPlaceholder: "Sök land...",
|
|
12
12
|
noCountriesFound: "Inga länder hittades",
|
|
13
|
-
enterPhoneNumberPlaceholder: "Ange ditt
|
|
14
|
-
numberLooksIncomplete: "Ange ett giltigt
|
|
15
|
-
requiredFieldEmpty: "
|
|
13
|
+
enterPhoneNumberPlaceholder: "Ange ditt mobilnummer",
|
|
14
|
+
numberLooksIncomplete: "Ange ett giltigt mobilnummer",
|
|
15
|
+
requiredFieldEmpty: "Mobilnummer krävs",
|
|
16
16
|
openCountrySelector: "Öppna landsväljaren"
|
|
17
17
|
},
|
|
18
18
|
"en-US": e,
|
|
@@ -20,33 +20,33 @@ var e = {
|
|
|
20
20
|
"nb-NO": {
|
|
21
21
|
searchCountryPlaceholder: "Søk land...",
|
|
22
22
|
noCountriesFound: "Ingen land funnet",
|
|
23
|
-
enterPhoneNumberPlaceholder: "Skriv inn
|
|
24
|
-
numberLooksIncomplete: "Skriv inn et gyldig
|
|
25
|
-
requiredFieldEmpty: "
|
|
23
|
+
enterPhoneNumberPlaceholder: "Skriv inn mobilnummeret ditt",
|
|
24
|
+
numberLooksIncomplete: "Skriv inn et gyldig mobilnummer",
|
|
25
|
+
requiredFieldEmpty: "Mobilnummer er påkrevd",
|
|
26
26
|
openCountrySelector: "Åpne landvelgeren"
|
|
27
27
|
},
|
|
28
28
|
"da-DK": {
|
|
29
29
|
searchCountryPlaceholder: "Søg land...",
|
|
30
30
|
noCountriesFound: "Ingen lande fundet",
|
|
31
|
-
enterPhoneNumberPlaceholder: "Indtast dit
|
|
32
|
-
numberLooksIncomplete: "Indtast et gyldigt
|
|
33
|
-
requiredFieldEmpty: "
|
|
31
|
+
enterPhoneNumberPlaceholder: "Indtast dit mobilnummer",
|
|
32
|
+
numberLooksIncomplete: "Indtast et gyldigt mobilnummer",
|
|
33
|
+
requiredFieldEmpty: "Mobilnummer er påkrævet",
|
|
34
34
|
openCountrySelector: "Åbn landevælgeren"
|
|
35
35
|
},
|
|
36
36
|
"fr-FR": {
|
|
37
37
|
searchCountryPlaceholder: "Rechercher un pays...",
|
|
38
38
|
noCountriesFound: "Aucun pays trouvé",
|
|
39
|
-
enterPhoneNumberPlaceholder: "Entrez votre numéro de
|
|
40
|
-
numberLooksIncomplete: "Veuillez saisir un numéro de
|
|
41
|
-
requiredFieldEmpty: "Le numéro de
|
|
39
|
+
enterPhoneNumberPlaceholder: "Entrez votre numéro de mobile",
|
|
40
|
+
numberLooksIncomplete: "Veuillez saisir un numéro de mobile valide",
|
|
41
|
+
requiredFieldEmpty: "Le numéro de mobile est obligatoire",
|
|
42
42
|
openCountrySelector: "Ouvrir le sélecteur de pays"
|
|
43
43
|
},
|
|
44
44
|
"nl-BE": {
|
|
45
45
|
searchCountryPlaceholder: "Zoek land...",
|
|
46
46
|
noCountriesFound: "Geen landen gevonden",
|
|
47
|
-
enterPhoneNumberPlaceholder: "Voer uw
|
|
48
|
-
numberLooksIncomplete: "Voer een geldig
|
|
49
|
-
requiredFieldEmpty: "
|
|
47
|
+
enterPhoneNumberPlaceholder: "Voer uw mobiele nummer in",
|
|
48
|
+
numberLooksIncomplete: "Voer een geldig mobiel nummer in",
|
|
49
|
+
requiredFieldEmpty: "Mobiel nummer is verplicht",
|
|
50
50
|
openCountrySelector: "Landselector openen"
|
|
51
51
|
}
|
|
52
52
|
};
|
|
@@ -1888,24 +1888,34 @@ function vr(e, t, n) {
|
|
|
1888
1888
|
raw: a
|
|
1889
1889
|
};
|
|
1890
1890
|
}
|
|
1891
|
-
|
|
1891
|
+
var yr = 4;
|
|
1892
|
+
function br(e) {
|
|
1893
|
+
let t = 0;
|
|
1894
|
+
for (let n of e) t = n === " " ? t + yr - t % yr : t + 1;
|
|
1895
|
+
return t;
|
|
1896
|
+
}
|
|
1897
|
+
function xr(e, t, n, r, i) {
|
|
1892
1898
|
if (!e || !Array.isArray(e.content)) return "";
|
|
1893
|
-
let
|
|
1894
|
-
return
|
|
1899
|
+
let a = typeof n == "function" ? n(r) : n, [o, ...s] = e.content, c = `${a}${t.renderChildren([o])}`;
|
|
1900
|
+
return s && s.length > 0 && s.forEach((e, n) => {
|
|
1895
1901
|
let r = t.renderChild?.call(t, e, n + 1) ?? t.renderChildren([e]);
|
|
1896
1902
|
if (r != null) {
|
|
1897
|
-
let n =
|
|
1898
|
-
|
|
1903
|
+
let n = (e) => {
|
|
1904
|
+
if (!i?.alignNestedToPrefix) return t.indent(e);
|
|
1905
|
+
let n = t.indent(""), r = br(a);
|
|
1906
|
+
return (br(n) >= r ? n : " ".repeat(r)) + e;
|
|
1907
|
+
}, o = r.split("\n").map((e) => n(e || "")).join("\n");
|
|
1908
|
+
c += e.type === "paragraph" ? `\n\n${o}` : `\n${o}`;
|
|
1899
1909
|
}
|
|
1900
|
-
}),
|
|
1910
|
+
}), c;
|
|
1901
1911
|
}
|
|
1902
|
-
function
|
|
1912
|
+
function Sr(e, t) {
|
|
1903
1913
|
let n = { ...e };
|
|
1904
1914
|
return Z(e) && Z(t) && Object.keys(t).forEach((r) => {
|
|
1905
|
-
Z(t[r]) && Z(e[r]) ? n[r] =
|
|
1915
|
+
Z(t[r]) && Z(e[r]) ? n[r] = Sr(e[r], t[r]) : n[r] = t[r];
|
|
1906
1916
|
}), n;
|
|
1907
1917
|
}
|
|
1908
|
-
function
|
|
1918
|
+
function Cr(e, t, n = {}) {
|
|
1909
1919
|
let { state: r } = t, { doc: i, tr: a } = r, o = e;
|
|
1910
1920
|
i.descendants((t, r) => {
|
|
1911
1921
|
let i = a.mapping.map(r), s = a.mapping.map(r) + t.nodeSize, c = null;
|
|
@@ -1929,14 +1939,14 @@ var Q = class {
|
|
|
1929
1939
|
constructor(e) {
|
|
1930
1940
|
this.find = e.find, this.handler = e.handler, this.undoable = e.undoable ?? !0;
|
|
1931
1941
|
}
|
|
1932
|
-
},
|
|
1942
|
+
}, wr = (e, t) => {
|
|
1933
1943
|
if (k(t)) return t.exec(e);
|
|
1934
1944
|
let n = t(e);
|
|
1935
1945
|
if (!n) return null;
|
|
1936
1946
|
let r = [n.text];
|
|
1937
1947
|
return r.index = n.index, r.input = e, r.data = n.data, n.replaceWith && (n.text.includes(n.replaceWith) || console.warn("[tiptap warn]: \"inputRuleMatch.replaceWith\" must be part of \"inputRuleMatch.text\"."), r.push(n.replaceWith)), r;
|
|
1938
1948
|
};
|
|
1939
|
-
function
|
|
1949
|
+
function Tr(e) {
|
|
1940
1950
|
let { editor: t, from: n, to: r, text: i, rules: a, plugin: o } = e, { view: s } = t;
|
|
1941
1951
|
if (s.composing) return !1;
|
|
1942
1952
|
let c = s.state.doc.resolve(n);
|
|
@@ -1944,7 +1954,7 @@ function Cr(e) {
|
|
|
1944
1954
|
let l = !1, u = rn(c) + i;
|
|
1945
1955
|
return a.forEach((e) => {
|
|
1946
1956
|
if (l) return;
|
|
1947
|
-
let a =
|
|
1957
|
+
let a = wr(u, e.find);
|
|
1948
1958
|
if (!a) return;
|
|
1949
1959
|
let d = a[0].length - i.length;
|
|
1950
1960
|
if (d > 0) {
|
|
@@ -1976,7 +1986,7 @@ function Cr(e) {
|
|
|
1976
1986
|
}), s.dispatch(f), l = !0);
|
|
1977
1987
|
}), l;
|
|
1978
1988
|
}
|
|
1979
|
-
function
|
|
1989
|
+
function Er(e) {
|
|
1980
1990
|
let { editor: t, rules: n } = e, i = new y({
|
|
1981
1991
|
state: {
|
|
1982
1992
|
init() {
|
|
@@ -1990,7 +2000,7 @@ function wr(e) {
|
|
|
1990
2000
|
let { text: e } = c;
|
|
1991
2001
|
e = typeof e == "string" ? e : H(r.from(e), o.schema);
|
|
1992
2002
|
let { from: a } = c, s = a + e.length;
|
|
1993
|
-
|
|
2003
|
+
Tr({
|
|
1994
2004
|
editor: t,
|
|
1995
2005
|
from: a,
|
|
1996
2006
|
to: s,
|
|
@@ -2003,7 +2013,7 @@ function wr(e) {
|
|
|
2003
2013
|
},
|
|
2004
2014
|
props: {
|
|
2005
2015
|
handleTextInput(e, r, a, o) {
|
|
2006
|
-
return
|
|
2016
|
+
return Tr({
|
|
2007
2017
|
editor: t,
|
|
2008
2018
|
from: r,
|
|
2009
2019
|
to: a,
|
|
@@ -2014,7 +2024,7 @@ function wr(e) {
|
|
|
2014
2024
|
},
|
|
2015
2025
|
handleDOMEvents: { compositionend: (e) => (setTimeout(() => {
|
|
2016
2026
|
let { $cursor: r } = e.state.selection;
|
|
2017
|
-
r &&
|
|
2027
|
+
r && Tr({
|
|
2018
2028
|
editor: t,
|
|
2019
2029
|
from: r.pos,
|
|
2020
2030
|
to: r.pos,
|
|
@@ -2026,7 +2036,7 @@ function wr(e) {
|
|
|
2026
2036
|
handleKeyDown(e, r) {
|
|
2027
2037
|
if (r.key !== "Enter") return !1;
|
|
2028
2038
|
let { $cursor: a } = e.state.selection;
|
|
2029
|
-
return a ?
|
|
2039
|
+
return a ? Tr({
|
|
2030
2040
|
editor: t,
|
|
2031
2041
|
from: a.pos,
|
|
2032
2042
|
to: a.pos,
|
|
@@ -2040,7 +2050,7 @@ function wr(e) {
|
|
|
2040
2050
|
});
|
|
2041
2051
|
return i;
|
|
2042
2052
|
}
|
|
2043
|
-
var
|
|
2053
|
+
var Dr = class {
|
|
2044
2054
|
constructor(e = {}) {
|
|
2045
2055
|
this.type = "extendable", this.parent = null, this.child = null, this.name = "", this.config = { name: this.name }, this.config = {
|
|
2046
2056
|
...this.config,
|
|
@@ -2059,7 +2069,7 @@ var Tr = class {
|
|
|
2059
2069
|
configure(e = {}) {
|
|
2060
2070
|
let t = this.extend({
|
|
2061
2071
|
...this.config,
|
|
2062
|
-
addOptions: () =>
|
|
2072
|
+
addOptions: () => Sr(this.options, e)
|
|
2063
2073
|
});
|
|
2064
2074
|
return t.name = this.name, t.parent = this.parent, this.child = null, t;
|
|
2065
2075
|
}
|
|
@@ -2070,7 +2080,7 @@ var Tr = class {
|
|
|
2070
2080
|
});
|
|
2071
2081
|
return t.parent = this, this.child = t, t.name = "name" in e ? e.name : t.parent.name, t;
|
|
2072
2082
|
}
|
|
2073
|
-
},
|
|
2083
|
+
}, Or = class e extends Dr {
|
|
2074
2084
|
constructor(...e) {
|
|
2075
2085
|
super(...e), this.type = "mark";
|
|
2076
2086
|
}
|
|
@@ -2095,11 +2105,11 @@ var Tr = class {
|
|
|
2095
2105
|
let t = typeof e == "function" ? e() : e;
|
|
2096
2106
|
return super.extend(t);
|
|
2097
2107
|
}
|
|
2098
|
-
},
|
|
2108
|
+
}, kr = class {
|
|
2099
2109
|
constructor(e) {
|
|
2100
2110
|
this.find = e.find, this.handler = e.handler;
|
|
2101
2111
|
}
|
|
2102
|
-
},
|
|
2112
|
+
}, Ar = (e, t, n) => {
|
|
2103
2113
|
if (k(t)) return [...e.matchAll(t)];
|
|
2104
2114
|
let r = t(e, n);
|
|
2105
2115
|
return r ? r.map((t) => {
|
|
@@ -2107,7 +2117,7 @@ var Tr = class {
|
|
|
2107
2117
|
return n.index = t.index, n.input = e, n.data = t.data, t.replaceWith && (t.text.includes(t.replaceWith) || console.warn("[tiptap warn]: \"pasteRuleMatch.replaceWith\" must be part of \"pasteRuleMatch.text\"."), n.push(t.replaceWith)), n;
|
|
2108
2118
|
}) : [];
|
|
2109
2119
|
};
|
|
2110
|
-
function
|
|
2120
|
+
function jr(e) {
|
|
2111
2121
|
let { editor: t, state: n, from: r, to: i, rule: a, pasteEvent: o, dropEvent: s } = e, { commands: c, chain: l, can: u } = new D({
|
|
2112
2122
|
editor: t,
|
|
2113
2123
|
state: n
|
|
@@ -2116,7 +2126,7 @@ function kr(e) {
|
|
|
2116
2126
|
var f;
|
|
2117
2127
|
if ((f = e.type) != null && (f = f.spec) != null && f.code || !(e.isText || e.isTextblock || e.isInline)) return;
|
|
2118
2128
|
let p = e.content?.size ?? e.nodeSize ?? 0, m = Math.max(r, t), h = Math.min(i, t + p);
|
|
2119
|
-
m >= h ||
|
|
2129
|
+
m >= h || Ar(e.isText ? e.text || "" : e.textBetween(m - t, h - t, void 0, ""), a.find, o).forEach((e) => {
|
|
2120
2130
|
if (e.index === void 0) return;
|
|
2121
2131
|
let t = m + e.index + 1, r = t + e[0].length, i = {
|
|
2122
2132
|
from: n.tr.mapping.map(t),
|
|
@@ -2135,12 +2145,12 @@ function kr(e) {
|
|
|
2135
2145
|
});
|
|
2136
2146
|
}), d.every((e) => e !== null);
|
|
2137
2147
|
}
|
|
2138
|
-
var
|
|
2148
|
+
var Mr = null, Nr = (e) => {
|
|
2139
2149
|
var t;
|
|
2140
2150
|
let n = new ClipboardEvent("paste", { clipboardData: new DataTransfer() });
|
|
2141
2151
|
return (t = n.clipboardData) == null || t.setData("text/html", e), n;
|
|
2142
2152
|
};
|
|
2143
|
-
function
|
|
2153
|
+
function Pr(e) {
|
|
2144
2154
|
let { editor: t, rules: n } = e, i = null, a = !1, o = !1, s = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, c;
|
|
2145
2155
|
try {
|
|
2146
2156
|
c = typeof DragEvent < "u" ? new DragEvent("drop") : null;
|
|
@@ -2152,7 +2162,7 @@ function Mr(e) {
|
|
|
2152
2162
|
state: e,
|
|
2153
2163
|
transaction: o
|
|
2154
2164
|
});
|
|
2155
|
-
if (!(!
|
|
2165
|
+
if (!(!jr({
|
|
2156
2166
|
editor: t,
|
|
2157
2167
|
state: l,
|
|
2158
2168
|
from: Math.max(n - 1, 0),
|
|
@@ -2172,9 +2182,9 @@ function Mr(e) {
|
|
|
2172
2182
|
return n.map((e) => new y({
|
|
2173
2183
|
view(e) {
|
|
2174
2184
|
let n = (n) => {
|
|
2175
|
-
i = e.dom.parentElement?.contains(n.target) ? e.dom.parentElement : null, i && (
|
|
2185
|
+
i = e.dom.parentElement?.contains(n.target) ? e.dom.parentElement : null, i && (Mr = t);
|
|
2176
2186
|
}, r = () => {
|
|
2177
|
-
|
|
2187
|
+
Mr &&= null;
|
|
2178
2188
|
};
|
|
2179
2189
|
return window.addEventListener("dragstart", n), window.addEventListener("dragend", r), { destroy() {
|
|
2180
2190
|
window.removeEventListener("dragstart", n), window.removeEventListener("dragend", r);
|
|
@@ -2183,7 +2193,7 @@ function Mr(e) {
|
|
|
2183
2193
|
props: { handleDOMEvents: {
|
|
2184
2194
|
drop: (e, t) => {
|
|
2185
2195
|
if (o = i === e.dom.parentElement, c = t, !o) {
|
|
2186
|
-
let e =
|
|
2196
|
+
let e = Mr;
|
|
2187
2197
|
e?.isEditable && setTimeout(() => {
|
|
2188
2198
|
let t = e.state.selection;
|
|
2189
2199
|
t && e.commands.deleteRange({
|
|
@@ -2205,7 +2215,7 @@ function Mr(e) {
|
|
|
2205
2215
|
if (p) {
|
|
2206
2216
|
let { text: t } = f;
|
|
2207
2217
|
t = typeof t == "string" ? t : H(r.from(t), i.schema);
|
|
2208
|
-
let { from: n } = f, a = n + t.length, o =
|
|
2218
|
+
let { from: n } = f, a = n + t.length, o = Nr(t);
|
|
2209
2219
|
return l({
|
|
2210
2220
|
rule: e,
|
|
2211
2221
|
state: i,
|
|
@@ -2225,7 +2235,7 @@ function Mr(e) {
|
|
|
2225
2235
|
}
|
|
2226
2236
|
}));
|
|
2227
2237
|
}
|
|
2228
|
-
var
|
|
2238
|
+
var Fr = class {
|
|
2229
2239
|
constructor(e, t) {
|
|
2230
2240
|
this.splittableMarks = [], this.nonClearableMarks = [], this.decorationManager = null, this.editor = t, this.baseExtensions = e, this.extensions = Ht(e), this.schema = Bt(this.extensions, t), this.setupExtensions();
|
|
2231
2241
|
}
|
|
@@ -2253,7 +2263,7 @@ var Nr = class {
|
|
|
2253
2263
|
editor: e,
|
|
2254
2264
|
type: q(t.name, this.schema)
|
|
2255
2265
|
}, r = [], i = B(t, "addKeyboardShortcuts", n), a = {};
|
|
2256
|
-
if (t.type === "mark" && B(t, "exitable", n) && (a.ArrowRight = () =>
|
|
2266
|
+
if (t.type === "mark" && B(t, "exitable", n) && (a.ArrowRight = () => Or.handleExit({
|
|
2257
2267
|
editor: e,
|
|
2258
2268
|
mark: t
|
|
2259
2269
|
})), i) {
|
|
@@ -2269,7 +2279,7 @@ var Nr = class {
|
|
|
2269
2279
|
if (ln(t, e.options.enableInputRules) && s) {
|
|
2270
2280
|
let t = s();
|
|
2271
2281
|
if (t && t.length) {
|
|
2272
|
-
let n =
|
|
2282
|
+
let n = Er({
|
|
2273
2283
|
editor: e,
|
|
2274
2284
|
rules: t
|
|
2275
2285
|
}), i = Array.isArray(n) ? n : [n];
|
|
@@ -2280,7 +2290,7 @@ var Nr = class {
|
|
|
2280
2290
|
if (ln(t, e.options.enablePasteRules) && c) {
|
|
2281
2291
|
let t = c();
|
|
2282
2292
|
if (t && t.length) {
|
|
2283
|
-
let n =
|
|
2293
|
+
let n = Pr({
|
|
2284
2294
|
editor: e,
|
|
2285
2295
|
rules: t
|
|
2286
2296
|
});
|
|
@@ -2402,7 +2412,7 @@ var Nr = class {
|
|
|
2402
2412
|
extension: t,
|
|
2403
2413
|
HTMLAttributes: s,
|
|
2404
2414
|
updateAttributes: (t) => {
|
|
2405
|
-
|
|
2415
|
+
Cr(i, e, t);
|
|
2406
2416
|
}
|
|
2407
2417
|
});
|
|
2408
2418
|
}] : [];
|
|
@@ -2434,8 +2444,8 @@ var Nr = class {
|
|
|
2434
2444
|
});
|
|
2435
2445
|
}
|
|
2436
2446
|
};
|
|
2437
|
-
|
|
2438
|
-
var $ = class e extends
|
|
2447
|
+
Fr.resolve = Ht, Fr.sort = K, Fr.flatten = V;
|
|
2448
|
+
var $ = class e extends Dr {
|
|
2439
2449
|
constructor(...e) {
|
|
2440
2450
|
super(...e), this.type = "extension";
|
|
2441
2451
|
}
|
|
@@ -2450,7 +2460,7 @@ var $ = class e extends Tr {
|
|
|
2450
2460
|
let t = typeof e == "function" ? e() : e;
|
|
2451
2461
|
return super.extend(t);
|
|
2452
2462
|
}
|
|
2453
|
-
},
|
|
2463
|
+
}, Ir = $.create({
|
|
2454
2464
|
name: "clipboardTextSerializer",
|
|
2455
2465
|
addOptions() {
|
|
2456
2466
|
return { blockSeparator: void 0 };
|
|
@@ -2470,12 +2480,12 @@ var $ = class e extends Tr {
|
|
|
2470
2480
|
} }
|
|
2471
2481
|
})];
|
|
2472
2482
|
}
|
|
2473
|
-
}),
|
|
2483
|
+
}), Lr = $.create({
|
|
2474
2484
|
name: "commands",
|
|
2475
2485
|
addCommands() {
|
|
2476
2486
|
return { ...Wn };
|
|
2477
2487
|
}
|
|
2478
|
-
}),
|
|
2488
|
+
}), Rr = $.create({
|
|
2479
2489
|
name: "delete",
|
|
2480
2490
|
onUpdate({ transaction: e, appendedTransactions: t }) {
|
|
2481
2491
|
var n;
|
|
@@ -2529,7 +2539,7 @@ var $ = class e extends Tr {
|
|
|
2529
2539
|
};
|
|
2530
2540
|
((n = this.editor.options.coreExtensionOptions) == null || (n = n.delete) == null ? void 0 : n.async) ?? !0 ? setTimeout(r, 0) : r();
|
|
2531
2541
|
}
|
|
2532
|
-
}),
|
|
2542
|
+
}), zr = $.create({
|
|
2533
2543
|
name: "drop",
|
|
2534
2544
|
addProseMirrorPlugins() {
|
|
2535
2545
|
return [new y({
|
|
@@ -2544,7 +2554,7 @@ var $ = class e extends Tr {
|
|
|
2544
2554
|
} }
|
|
2545
2555
|
})];
|
|
2546
2556
|
}
|
|
2547
|
-
}),
|
|
2557
|
+
}), Br = $.create({
|
|
2548
2558
|
name: "editable",
|
|
2549
2559
|
addProseMirrorPlugins() {
|
|
2550
2560
|
return [new y({
|
|
@@ -2552,12 +2562,12 @@ var $ = class e extends Tr {
|
|
|
2552
2562
|
props: { editable: () => this.editor.options.editable }
|
|
2553
2563
|
})];
|
|
2554
2564
|
}
|
|
2555
|
-
}),
|
|
2565
|
+
}), Vr = new b("focusEvents"), Hr = $.create({
|
|
2556
2566
|
name: "focusEvents",
|
|
2557
2567
|
addProseMirrorPlugins() {
|
|
2558
2568
|
let { editor: e } = this;
|
|
2559
2569
|
return [new y({
|
|
2560
|
-
key:
|
|
2570
|
+
key: Vr,
|
|
2561
2571
|
props: { handleDOMEvents: {
|
|
2562
2572
|
focus: (t, n) => {
|
|
2563
2573
|
e.isFocused = !0;
|
|
@@ -2572,7 +2582,7 @@ var $ = class e extends Tr {
|
|
|
2572
2582
|
} }
|
|
2573
2583
|
})];
|
|
2574
2584
|
}
|
|
2575
|
-
}),
|
|
2585
|
+
}), Ur = $.create({
|
|
2576
2586
|
name: "keymap",
|
|
2577
2587
|
addKeyboardShortcuts() {
|
|
2578
2588
|
let e = () => this.editor.commands.first(({ commands: e }) => [
|
|
@@ -2636,7 +2646,7 @@ var $ = class e extends Tr {
|
|
|
2636
2646
|
}
|
|
2637
2647
|
})];
|
|
2638
2648
|
}
|
|
2639
|
-
}),
|
|
2649
|
+
}), Wr = $.create({
|
|
2640
2650
|
name: "paste",
|
|
2641
2651
|
addProseMirrorPlugins() {
|
|
2642
2652
|
return [new y({
|
|
@@ -2650,7 +2660,7 @@ var $ = class e extends Tr {
|
|
|
2650
2660
|
} }
|
|
2651
2661
|
})];
|
|
2652
2662
|
}
|
|
2653
|
-
}),
|
|
2663
|
+
}), Gr = $.create({
|
|
2654
2664
|
name: "tabindex",
|
|
2655
2665
|
addOptions() {
|
|
2656
2666
|
return { value: void 0 };
|
|
@@ -2661,7 +2671,7 @@ var $ = class e extends Tr {
|
|
|
2661
2671
|
props: { attributes: () => !this.editor.isEditable && this.options.value === void 0 ? {} : { tabindex: this.options.value ?? "0" } }
|
|
2662
2672
|
})];
|
|
2663
2673
|
}
|
|
2664
|
-
}),
|
|
2674
|
+
}), Kr = $.create({
|
|
2665
2675
|
name: "textDirection",
|
|
2666
2676
|
addOptions() {
|
|
2667
2677
|
return { direction: void 0 };
|
|
@@ -2690,10 +2700,10 @@ var $ = class e extends Tr {
|
|
|
2690
2700
|
} }
|
|
2691
2701
|
})];
|
|
2692
2702
|
}
|
|
2693
|
-
}),
|
|
2694
|
-
function
|
|
2695
|
-
if (
|
|
2696
|
-
|
|
2703
|
+
}), qr = !1;
|
|
2704
|
+
function Jr(e) {
|
|
2705
|
+
if (qr) return;
|
|
2706
|
+
qr = !0;
|
|
2697
2707
|
let t;
|
|
2698
2708
|
try {
|
|
2699
2709
|
t = l.fromJSON(e, {
|
|
@@ -2705,7 +2715,7 @@ function Kr(e) {
|
|
|
2705
2715
|
}
|
|
2706
2716
|
t instanceof r || console.warn("[tiptap warn]: prosemirror-model is loaded more than once. Wrapping and splitting nodes will fail. Deduplicate it in your lock file, or alias it to a single copy in your bundler.");
|
|
2707
2717
|
}
|
|
2708
|
-
var
|
|
2718
|
+
var Yr = class e {
|
|
2709
2719
|
get name() {
|
|
2710
2720
|
return this.node.type.name;
|
|
2711
2721
|
}
|
|
@@ -2827,7 +2837,7 @@ var qr = class e {
|
|
|
2827
2837
|
...e
|
|
2828
2838
|
}), this.editor.view.dispatch(t);
|
|
2829
2839
|
}
|
|
2830
|
-
},
|
|
2840
|
+
}, Xr = ".ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: \"liga\" 0; /* the above doesn't seem to work in Edge */\n}\n\n.ProseMirror [contenteditable=\"false\"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable=\"false\"] [contenteditable=\"true\"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 0 !important;\n height: 0 !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: \"\";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}", Zr = class extends qn {
|
|
2831
2841
|
constructor(e = {}) {
|
|
2832
2842
|
super(), this.css = null, this.className = "tiptap", this.editorView = null, this.isFocused = !1, this.destroyed = !1, this.isInitialized = !1, this.extensionStorage = {}, this.instanceId = Math.random().toString(36).slice(2, 9), this.hasWarnedStaleDecorationRead = !1, this.options = {
|
|
2833
2843
|
element: typeof document < "u" ? document.createElement("div") : null,
|
|
@@ -2876,7 +2886,7 @@ var qr = class e {
|
|
|
2876
2886
|
selection: e || void 0
|
|
2877
2887
|
});
|
|
2878
2888
|
}
|
|
2879
|
-
|
|
2889
|
+
Jr(this.schema), this.options.element && this.mount(this.options.element);
|
|
2880
2890
|
}
|
|
2881
2891
|
mount(e) {
|
|
2882
2892
|
if (typeof document > "u") throw Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");
|
|
@@ -2910,7 +2920,7 @@ var qr = class e {
|
|
|
2910
2920
|
return this.commandManager ? this.commandManager.can() : D.createFallbackCan();
|
|
2911
2921
|
}
|
|
2912
2922
|
injectCSS() {
|
|
2913
|
-
this.options.injectCSS && typeof document < "u" && (this.css = hr(
|
|
2923
|
+
this.options.injectCSS && typeof document < "u" && (this.css = hr(Xr, this.options.injectNonce));
|
|
2914
2924
|
}
|
|
2915
2925
|
setOptions(e = {}) {
|
|
2916
2926
|
this.options = {
|
|
@@ -2968,22 +2978,22 @@ var qr = class e {
|
|
|
2968
2978
|
createExtensionManager() {
|
|
2969
2979
|
var e, t;
|
|
2970
2980
|
let n = [...this.options.enableCoreExtensions ? [
|
|
2971
|
-
Rr,
|
|
2972
|
-
Pr.configure({ blockSeparator: (e = this.options.coreExtensionOptions) == null || (e = e.clipboardTextSerializer) == null ? void 0 : e.blockSeparator }),
|
|
2973
|
-
Fr,
|
|
2974
2981
|
Br,
|
|
2975
|
-
|
|
2976
|
-
Ur.configure({ value: (t = this.options.coreExtensionOptions) == null || (t = t.tabindex) == null ? void 0 : t.value }),
|
|
2982
|
+
Ir.configure({ blockSeparator: (e = this.options.coreExtensionOptions) == null || (e = e.clipboardTextSerializer) == null ? void 0 : e.blockSeparator }),
|
|
2977
2983
|
Lr,
|
|
2978
2984
|
Hr,
|
|
2979
|
-
|
|
2980
|
-
|
|
2985
|
+
Ur,
|
|
2986
|
+
Gr.configure({ value: (t = this.options.coreExtensionOptions) == null || (t = t.tabindex) == null ? void 0 : t.value }),
|
|
2987
|
+
zr,
|
|
2988
|
+
Wr,
|
|
2989
|
+
Rr,
|
|
2990
|
+
Kr.configure({ direction: this.options.textDirection })
|
|
2981
2991
|
].filter((e) => typeof this.options.enableCoreExtensions != "object" || this.options.enableCoreExtensions[e.name] !== !1) : [], ...this.options.extensions].filter((e) => [
|
|
2982
2992
|
"extension",
|
|
2983
2993
|
"node",
|
|
2984
2994
|
"mark"
|
|
2985
2995
|
].includes(e?.type));
|
|
2986
|
-
this.extensionManager = new
|
|
2996
|
+
this.extensionManager = new Fr(n, this);
|
|
2987
2997
|
}
|
|
2988
2998
|
createCommandManager() {
|
|
2989
2999
|
this.commandManager = new D({ editor: this });
|
|
@@ -3124,13 +3134,13 @@ var qr = class e {
|
|
|
3124
3134
|
}
|
|
3125
3135
|
$pos(e) {
|
|
3126
3136
|
let t = this.state.doc.resolve(e), n = e > 0 && t.nodeAfter && !t.nodeAfter.isText && t.nodeAfter.isAtom ? t.nodeAfter : null;
|
|
3127
|
-
return new
|
|
3137
|
+
return new Yr(t, this, !1, n);
|
|
3128
3138
|
}
|
|
3129
3139
|
get $doc() {
|
|
3130
3140
|
return this.$pos(0);
|
|
3131
3141
|
}
|
|
3132
3142
|
};
|
|
3133
|
-
function
|
|
3143
|
+
function Qr(e) {
|
|
3134
3144
|
return new Q({
|
|
3135
3145
|
find: e.find,
|
|
3136
3146
|
handler: ({ state: t, range: n, match: r }) => {
|
|
@@ -3148,7 +3158,7 @@ function Xr(e) {
|
|
|
3148
3158
|
undoable: e.undoable
|
|
3149
3159
|
});
|
|
3150
3160
|
}
|
|
3151
|
-
function
|
|
3161
|
+
function $r(e) {
|
|
3152
3162
|
return new Q({
|
|
3153
3163
|
find: e.find,
|
|
3154
3164
|
handler: ({ state: t, range: n, match: r }) => {
|
|
@@ -3167,7 +3177,7 @@ function Zr(e) {
|
|
|
3167
3177
|
undoable: e.undoable
|
|
3168
3178
|
});
|
|
3169
3179
|
}
|
|
3170
|
-
function
|
|
3180
|
+
function ei(e) {
|
|
3171
3181
|
return new Q({
|
|
3172
3182
|
find: e.find,
|
|
3173
3183
|
handler: ({ state: t, range: n, match: r }) => {
|
|
@@ -3178,7 +3188,7 @@ function Qr(e) {
|
|
|
3178
3188
|
undoable: e.undoable
|
|
3179
3189
|
});
|
|
3180
3190
|
}
|
|
3181
|
-
function
|
|
3191
|
+
function ti(e) {
|
|
3182
3192
|
return new Q({
|
|
3183
3193
|
find: e.find,
|
|
3184
3194
|
handler: ({ state: t, range: n, match: r, chain: i }) => {
|
|
@@ -3201,7 +3211,7 @@ function $r(e) {
|
|
|
3201
3211
|
undoable: e.undoable
|
|
3202
3212
|
});
|
|
3203
3213
|
}
|
|
3204
|
-
var
|
|
3214
|
+
var ni = class e extends Dr {
|
|
3205
3215
|
constructor(...e) {
|
|
3206
3216
|
super(...e), this.type = "node";
|
|
3207
3217
|
}
|
|
@@ -3217,8 +3227,8 @@ var ei = class e extends Tr {
|
|
|
3217
3227
|
return super.extend(t);
|
|
3218
3228
|
}
|
|
3219
3229
|
};
|
|
3220
|
-
function
|
|
3221
|
-
return new
|
|
3230
|
+
function ri(e) {
|
|
3231
|
+
return new kr({
|
|
3222
3232
|
find: e.find,
|
|
3223
3233
|
handler: ({ state: t, range: n, match: r, pasteEvent: i }) => {
|
|
3224
3234
|
let a = U(e.getAttributes, void 0, r, i);
|
|
@@ -3233,4 +3243,4 @@ function ti(e) {
|
|
|
3233
3243
|
});
|
|
3234
3244
|
}
|
|
3235
3245
|
//#endregion
|
|
3236
|
-
export { D as CommandManager, Y as DECORATION_MANAGER_PLUGIN_KEY, pr as DecorationManager,
|
|
3246
|
+
export { D as CommandManager, Y as DECORATION_MANAGER_PLUGIN_KEY, pr as DecorationManager, Zr as Editor, Dr as Extendable, $ as Extension, Q as InputRule, pn as MappablePosition, Or as Mark, ni as Node, Yr as NodePos, kr as PasteRule, U as callOrReturn, mr as canInsertNode, Dt as combineTransactionSteps, Wn as commands, E as createChainableState, R as createDocument, hn as createMappablePosition, F as createNodeFromContent, hr as createStyleTag, $e as defaultBlockAt, gt as deleteProps, P as elementFromString, Ot as findChildrenInRange, Vt as findDuplicates, z as findParentNode, kt as findParentNodeClosestToPos, V as flattenExtensions, It as fromString, Wt as generateHTML, Gt as generateJSON, Xt as getAttributes, Mt as getAttributesFromExtensions, $t as getChangedRanges, B as getExtensionField, H as getHTMLFromFragment, Et as getMarkAttributes, Re as getMarkRange, j as getMarkType, en as getMarksBetween, tn as getNodeAtPosition, Yt as getNodeAttributes, O as getNodeType, nn as getPreviousBlockSibling, G as getRenderedAttributes, Ut as getSchema, Bt as getSchemaByResolvedExtensions, q as getSchemaTypeByName, L as getSchemaTypeNameByName, J as getSplittedAttributes, qt as getText, Kt as getTextBetween, rn as getTextContentFromNodes, Jt as getTextSerializersFromSchema, mn as getUpdatedPosition, Lt as injectExtensionAttributesToParseRule, Er as inputRulesPlugin, on as isActive, Ue as isAndroid, sn as isAtEndOfNode, cn as isAtStartOfNode, jt as isEmptyObject, ln as isExtensionRulesEnabled, At as isFunction, un as isList, lt as isMacOS, an as isMarkActive, I as isNodeActive, dn as isNodeEmpty, fn as isNodeSelection, gr as isNumber, Z as isPlainObject, k as isRegExp, We as isSafari, Ve as isTextSelection, N as isiOS, Qr as markInputRule, ri as markPasteRule, Ft as mergeAttributes, Sr as mergeDeep, M as minMax, $r as nodeInputRule, A as objectIncludes, vr as parseIndentedBlocks, Pr as pasteRulesPlugin, Zt as removeDuplicates, xr as renderNestedMarkdownContent, Ht as resolveExtensions, He as resolveFocusPosition, Ze as selectionToInsertionEnd, K as sortExtensions, W as splitExtensions, ei as textblockTypeInputRule, Cr as updateMarkViewAttributes, ti as wrappingInputRule };
|
|
@@ -288,7 +288,7 @@ var I = i.create({
|
|
|
288
288
|
return F((n = e.meta) == null || (n = n.parentAttrs) == null ? void 0 : n.type, r - 1 + (e.index || 0), ". ");
|
|
289
289
|
}
|
|
290
290
|
return "- ";
|
|
291
|
-
}, n),
|
|
291
|
+
}, n, { alignNestedToPrefix: n?.parentType === "orderedList" }),
|
|
292
292
|
addExtensions() {
|
|
293
293
|
return [x(this.name, [this.options.bulletListTypeName, this.options.orderedListTypeName])];
|
|
294
294
|
},
|
|
@@ -3106,7 +3106,7 @@ var e = {
|
|
|
3106
3106
|
0,
|
|
3107
3107
|
0,
|
|
3108
3108
|
0,
|
|
3109
|
-
[0, ["(?:4(?:(?:
|
|
3109
|
+
[0, ["(?:4(?:0(?:6[0-3]|9[3-6])|24[3-6]|44[0-35-9]|6(?:4[0-57-9]|6[0-6])|7(?:4[0-48]|6[0-5]))|5(?:25[3-7]|35[4-8]|73[0-6]|95[0-8])|6(?:26[013-8]|(?:66|78)[0-5])|70(?:7[1-8]|8[0-8])|84(?:4[0-2]|8[0-35-9])|9(?:29[013-9]|39[014-9]|59[0-467]|899))\\d{4}|(?:4(?:4[0-35-9]|6[0-357-9]|7[0-35])|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|70[1-59]|84[0-39]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}", [8]]],
|
|
3110
3110
|
"00"
|
|
3111
3111
|
],
|
|
3112
3112
|
HN: [
|
|
@@ -3843,7 +3843,7 @@ var e = {
|
|
|
3843
3843
|
0,
|
|
3844
3844
|
0,
|
|
3845
3845
|
0,
|
|
3846
|
-
[0, ["(?:427|7(?:[78][0-25-9]
|
|
3846
|
+
[0, ["(?:427|7(?:11|[29]\\d|[78][0-25-9]))\\d{6}", [9]]]
|
|
3847
3847
|
],
|
|
3848
3848
|
JP: [
|
|
3849
3849
|
"81",
|
|
@@ -5733,7 +5733,7 @@ var e = {
|
|
|
5733
5733
|
[[
|
|
5734
5734
|
"(\\d{3})(\\d{4})",
|
|
5735
5735
|
"$1 $2",
|
|
5736
|
-
["18|[2-69]|85"]
|
|
5736
|
+
["18|[2-69]|85[02-46-9]"]
|
|
5737
5737
|
], [
|
|
5738
5738
|
"(\\d{4})(\\d{4})",
|
|
5739
5739
|
"$1 $2",
|
|
@@ -5745,7 +5745,7 @@ var e = {
|
|
|
5745
5745
|
0,
|
|
5746
5746
|
0,
|
|
5747
5747
|
0,
|
|
5748
|
-
[0, ["(?:7\\d|8[1-
|
|
5748
|
+
[0, ["(?:7\\d|8[1-58])\\d{6}", [8]]],
|
|
5749
5749
|
"00"
|
|
5750
5750
|
],
|
|
5751
5751
|
PH: [
|
|
@@ -7458,7 +7458,7 @@ var e = {
|
|
|
7458
7458
|
0,
|
|
7459
7459
|
0,
|
|
7460
7460
|
0,
|
|
7461
|
-
[0, ["(?:6[
|
|
7461
|
+
[0, ["(?:6[0-35-9]|7\\d)\\d{7}"]]
|
|
7462
7462
|
],
|
|
7463
7463
|
UA: [
|
|
7464
7464
|
"380",
|
|
@@ -8032,20 +8032,23 @@ var e = {
|
|
|
8032
8032
|
ZW: [
|
|
8033
8033
|
"263",
|
|
8034
8034
|
"00",
|
|
8035
|
-
"
|
|
8035
|
+
"(?:13|8\\d{4})\\d{5}|[235-8]\\d{8}|[2-689]\\d{6}",
|
|
8036
8036
|
[
|
|
8037
|
-
5,
|
|
8038
|
-
6,
|
|
8039
8037
|
7,
|
|
8040
|
-
8,
|
|
8041
8038
|
9,
|
|
8042
8039
|
10
|
|
8043
8040
|
],
|
|
8044
8041
|
[
|
|
8042
|
+
[
|
|
8043
|
+
"(\\d{2})(\\d{3,5})",
|
|
8044
|
+
"$1 $2",
|
|
8045
|
+
["1|2(?:0[0-36-9]|29|58)|67[0-46-9]|(?:55|68)[0-69]"],
|
|
8046
|
+
"0$1"
|
|
8047
|
+
],
|
|
8045
8048
|
[
|
|
8046
8049
|
"(\\d{3})(\\d{3,5})",
|
|
8047
8050
|
"$1 $2",
|
|
8048
|
-
["2(?:0[45]|
|
|
8051
|
+
["2(?:0[45]|[27]|48)|37|675|(?:55|68)[78]"],
|
|
8049
8052
|
"0$1"
|
|
8050
8053
|
],
|
|
8051
8054
|
[
|
|
@@ -8061,45 +8064,39 @@ var e = {
|
|
|
8061
8064
|
"0$1"
|
|
8062
8065
|
],
|
|
8063
8066
|
[
|
|
8064
|
-
"(\\d{
|
|
8067
|
+
"(\\d{4})(\\d{3,5})",
|
|
8065
8068
|
"$1 $2",
|
|
8066
|
-
["
|
|
8067
|
-
"(0$1)"
|
|
8068
|
-
],
|
|
8069
|
-
[
|
|
8070
|
-
"(\\d{2})(\\d{3})(\\d{4})",
|
|
8071
|
-
"$1 $2 $3",
|
|
8072
|
-
["7"],
|
|
8069
|
+
["548"],
|
|
8073
8070
|
"0$1"
|
|
8074
8071
|
],
|
|
8075
8072
|
[
|
|
8076
|
-
"(\\d{
|
|
8073
|
+
"(\\d{2})(\\d{3})(\\d{3,4})",
|
|
8077
8074
|
"$1 $2 $3",
|
|
8078
|
-
["
|
|
8075
|
+
["29[013-9]"],
|
|
8079
8076
|
"0$1"
|
|
8080
8077
|
],
|
|
8081
8078
|
[
|
|
8082
|
-
"(\\d{
|
|
8079
|
+
"(\\d{2})(\\d{7})",
|
|
8083
8080
|
"$1 $2",
|
|
8084
|
-
["8"],
|
|
8085
|
-
"0$1"
|
|
8081
|
+
["[256]|39|8[13-59]"],
|
|
8082
|
+
"(0$1)"
|
|
8086
8083
|
],
|
|
8087
8084
|
[
|
|
8088
|
-
"(\\d{2})(\\d{3
|
|
8089
|
-
"$1 $2",
|
|
8090
|
-
["
|
|
8085
|
+
"(\\d{2})(\\d{3})(\\d{4})",
|
|
8086
|
+
"$1 $2 $3",
|
|
8087
|
+
["7"],
|
|
8091
8088
|
"0$1"
|
|
8092
8089
|
],
|
|
8093
8090
|
[
|
|
8094
|
-
"(\\d{
|
|
8091
|
+
"(\\d{3})(\\d{3})(\\d{3,4})",
|
|
8095
8092
|
"$1 $2 $3",
|
|
8096
|
-
["
|
|
8093
|
+
["3"],
|
|
8097
8094
|
"0$1"
|
|
8098
8095
|
],
|
|
8099
8096
|
[
|
|
8100
|
-
"(\\d{4})(\\d{
|
|
8097
|
+
"(\\d{4})(\\d{6})",
|
|
8101
8098
|
"$1 $2",
|
|
8102
|
-
["
|
|
8099
|
+
["8"],
|
|
8103
8100
|
"0$1"
|
|
8104
8101
|
]
|
|
8105
8102
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caspeco/casper-ui-library",
|
|
3
|
-
"version": "10.9.
|
|
3
|
+
"version": "10.9.1",
|
|
4
4
|
"prettier": "@caspeco/prettier-config",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -43,28 +43,28 @@
|
|
|
43
43
|
"@babel/core": "^7.29.7",
|
|
44
44
|
"@caspeco/eslint-config-react": "^5.4.2",
|
|
45
45
|
"@caspeco/prettier-config": "^1.0.7",
|
|
46
|
-
"@chakra-ui/cli": "^3.
|
|
46
|
+
"@chakra-ui/cli": "^3.37.0",
|
|
47
47
|
"@rolldown/plugin-babel": "^0.2.3",
|
|
48
|
-
"@types/node": "^26.
|
|
48
|
+
"@types/node": "^26.4.1",
|
|
49
49
|
"@types/react": "^19.2.18",
|
|
50
50
|
"@types/react-dom": "^19.2.4",
|
|
51
|
-
"@vitejs/plugin-react": "^6.1.
|
|
51
|
+
"@vitejs/plugin-react": "^6.1.1",
|
|
52
52
|
"@vitest/browser": "^4.1.11",
|
|
53
53
|
"@vitest/browser-playwright": "^4.1.11",
|
|
54
54
|
"@vitest/ui": "^4.1.11",
|
|
55
55
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
56
56
|
"eslint": "^9.39.2",
|
|
57
57
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
58
|
-
"eslint-plugin-react-refresh": "^0.5.
|
|
59
|
-
"globals": "^17.
|
|
60
|
-
"knip": "^6.
|
|
58
|
+
"eslint-plugin-react-refresh": "^0.5.5",
|
|
59
|
+
"globals": "^17.12.0",
|
|
60
|
+
"knip": "^6.34.0",
|
|
61
61
|
"playwright": "1.62.1",
|
|
62
62
|
"prettier": "^3.9.6",
|
|
63
63
|
"rimraf": "^6.1.3",
|
|
64
|
-
"tsc-alias": "^1.9.
|
|
64
|
+
"tsc-alias": "^1.9.3",
|
|
65
65
|
"typescript": "^6.0.3",
|
|
66
66
|
"vite": "^8.2.1",
|
|
67
|
-
"vite-plugin-dts": "^5.0
|
|
67
|
+
"vite-plugin-dts": "^5.1.0",
|
|
68
68
|
"vitest": "^4.1.11",
|
|
69
69
|
"vitest-browser-react": "^2.2.0"
|
|
70
70
|
},
|
|
@@ -82,15 +82,15 @@
|
|
|
82
82
|
"@floating-ui/dom": "^1.8.0",
|
|
83
83
|
"@tanstack/react-table": "^8.21.3",
|
|
84
84
|
"@tanstack/react-virtual": "^3.14.10",
|
|
85
|
-
"@tiptap/core": "^3.
|
|
86
|
-
"@tiptap/extension-link": "^3.
|
|
87
|
-
"@tiptap/extension-underline": "^3.
|
|
88
|
-
"@tiptap/react": "^3.
|
|
89
|
-
"@tiptap/starter-kit": "^3.
|
|
85
|
+
"@tiptap/core": "^3.31.0",
|
|
86
|
+
"@tiptap/extension-link": "^3.31.0",
|
|
87
|
+
"@tiptap/extension-underline": "^3.31.0",
|
|
88
|
+
"@tiptap/react": "^3.31.0",
|
|
89
|
+
"@tiptap/starter-kit": "^3.31.0",
|
|
90
90
|
"country-flag-icons": "^1.6.20",
|
|
91
91
|
"csstype": "^3.2.3",
|
|
92
92
|
"date-fns": "^4.4.0",
|
|
93
|
-
"libphonenumber-js": "^1.13.
|
|
93
|
+
"libphonenumber-js": "^1.13.12",
|
|
94
94
|
"linkifyjs": "^4.3.3",
|
|
95
95
|
"next-themes": "^0.4.6"
|
|
96
96
|
}
|