@uva-glass/component-library 3.45.5 → 3.45.6
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/{LexicalClipboard.prod-BP8LNbol.js → LexicalClipboard.prod-pXq91TBU.js} +2 -2
- package/dist/{LexicalClipboard.prod-BP8LNbol.js.map → LexicalClipboard.prod-pXq91TBU.js.map} +1 -1
- package/dist/{LexicalList.prod-D6IAptR7.js → LexicalList.prod--mkvX0uW.js} +2 -2
- package/dist/{LexicalList.prod-D6IAptR7.js.map → LexicalList.prod--mkvX0uW.js.map} +1 -1
- package/dist/{LexicalSelection.prod-ZvNRDI9l.js → LexicalSelection.prod-Ct4PZOht.js} +5 -5
- package/dist/{LexicalSelection.prod-ZvNRDI9l.js.map → LexicalSelection.prod-Ct4PZOht.js.map} +1 -1
- package/dist/{LexicalTable.prod-DJktN6jF.js → LexicalTable.prod-Bexd4dGG.js} +2 -2
- package/dist/{LexicalTable.prod-DJktN6jF.js.map → LexicalTable.prod-Bexd4dGG.js.map} +1 -1
- package/dist/{TableCellResizerPlugin-DFzNK-ve.js → TableCellResizerPlugin-Cpbankb8.js} +2 -2
- package/dist/{TableCellResizerPlugin-DFzNK-ve.js.map → TableCellResizerPlugin-Cpbankb8.js.map} +1 -1
- package/dist/{TablePlugin-4Zj0xZie.js → TablePlugin-FTN9oxnI.js} +2 -2
- package/dist/{TablePlugin-4Zj0xZie.js.map → TablePlugin-FTN9oxnI.js.map} +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
- package/dist/components/FormInput/FormInput.js +1 -1
- package/dist/components/InputField/InputField.stories.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +43 -49
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/index.js +2 -2
- package/dist/components/RteEditor/RteEditor.js +303 -312
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/RteEditor.stories.js +29 -29
- package/dist/components/RteEditor/RteEditor.stories.js.map +1 -1
- package/dist/components/RteEditor/helpers.d.ts +0 -1
- package/dist/components/RteEditor/helpers.js +18 -19
- package/dist/components/RteEditor/helpers.js.map +1 -1
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,36 +1,35 @@
|
|
|
1
1
|
import { g as s } from "../../LexicalLink.prod-Brzpgs_K.js";
|
|
2
|
-
import { r as n, Y as i } from "../../LexicalList.prod
|
|
3
|
-
import { ae as
|
|
4
|
-
import { y as m } from "../../LexicalTable.prod-
|
|
5
|
-
const
|
|
6
|
-
let r =
|
|
2
|
+
import { r as n, Y as i } from "../../LexicalList.prod--mkvX0uW.js";
|
|
3
|
+
import { ae as c, $ as a } from "../../Lexical.prod-nXWuyOKD.js";
|
|
4
|
+
import { y as m } from "../../LexicalTable.prod-Bexd4dGG.js";
|
|
5
|
+
const f = (t) => {
|
|
6
|
+
let r = t.replace(/<b><strong>/gi, "<strong>");
|
|
7
7
|
return r = r.replace(/<\/strong><\/b>/gi, "</strong>"), r;
|
|
8
|
-
},
|
|
9
|
-
const
|
|
10
|
-
if (
|
|
11
|
-
for (const l of [
|
|
8
|
+
}, d = (t) => t.replace(/<div[^>]*>\s*(<table[\s\S]*?<\/table>)\s*<\/div>/gi, "$1"), o = (t, r) => {
|
|
9
|
+
const e = r.exportDOM(t);
|
|
10
|
+
if (e && e.element instanceof HTMLElement)
|
|
11
|
+
for (const l of [e.element, ...e.element.querySelectorAll('[style],[class],[dir="ltr"]')])
|
|
12
12
|
l.removeAttribute("class"), l.getAttribute("style") && (l.setAttribute("style", ""), l.removeAttribute("style")), l.getAttribute("dir") === "ltr" && l.removeAttribute("dir");
|
|
13
|
-
return
|
|
13
|
+
return e;
|
|
14
14
|
}, v = /* @__PURE__ */ new Map([
|
|
15
|
-
[a, o],
|
|
16
15
|
[c, o],
|
|
16
|
+
[a, o],
|
|
17
17
|
[n, o],
|
|
18
18
|
[i, o],
|
|
19
19
|
[m, o],
|
|
20
20
|
[s, o]
|
|
21
|
-
]), y = (
|
|
22
|
-
document.querySelectorAll("*").forEach((
|
|
23
|
-
|
|
21
|
+
]), y = (t) => {
|
|
22
|
+
document.querySelectorAll("*").forEach((e) => {
|
|
23
|
+
e.scrollHeight > e.clientHeight && e.addEventListener("scroll", t);
|
|
24
24
|
});
|
|
25
|
-
}, A = (
|
|
26
|
-
document.querySelectorAll("*").forEach((
|
|
27
|
-
|
|
25
|
+
}, A = (t) => {
|
|
26
|
+
document.querySelectorAll("*").forEach((e) => {
|
|
27
|
+
e.scrollHeight > e.clientHeight && e.removeEventListener("scroll", t);
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
d as cleanUpTable,
|
|
32
32
|
v as exportMap,
|
|
33
|
-
d as isStartingWithHtmlTag,
|
|
34
33
|
f as mergeBoldStrongTags,
|
|
35
34
|
A as removeScrollableContainers,
|
|
36
35
|
o as removeStylesExportDOM,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sources":["../../../src/components/RteEditor/helpers.ts"],"sourcesContent":["import { LinkNode } from '@lexical/link';\nimport { ListNode, ListItemNode } from '@lexical/list';\nimport { ParagraphNode, TextNode } from 'lexical';\nimport { TableCellNode } from '@lexical/table';\n\nimport type { DOMExportOutput, Klass, LexicalEditor, LexicalNode } from 'lexical';\n\nexport const
|
|
1
|
+
{"version":3,"file":"helpers.js","sources":["../../../src/components/RteEditor/helpers.ts"],"sourcesContent":["import { LinkNode } from '@lexical/link';\nimport { ListNode, ListItemNode } from '@lexical/list';\nimport { ParagraphNode, TextNode } from 'lexical';\nimport { TableCellNode } from '@lexical/table';\n\nimport type { DOMExportOutput, Klass, LexicalEditor, LexicalNode } from 'lexical';\n\nexport const mergeBoldStrongTags = (html: string): string => {\n let mergedHtml = html.replace(/<b><strong>/gi, '<strong>');\n mergedHtml = mergedHtml.replace(/<\\/strong><\\/b>/gi, '</strong>');\n return mergedHtml;\n};\n\nexport const cleanUpTable = (html: string): string =>\n html.replace(/<div[^>]*>\\s*(<table[\\s\\S]*?<\\/table>)\\s*<\\/div>/gi, '$1');\n\nexport const removeStylesExportDOM = (editor: LexicalEditor, target: LexicalNode): DOMExportOutput => {\n const output = target.exportDOM(editor);\n if (output && output.element instanceof HTMLElement) {\n for (const el of [output.element, ...output.element.querySelectorAll('[style],[class],[dir=\"ltr\"]')]) {\n el.removeAttribute('class');\n if (el.getAttribute('style')) {\n el.setAttribute('style', '');\n el.removeAttribute('style');\n }\n if (el.getAttribute('dir') === 'ltr') {\n el.removeAttribute('dir');\n }\n }\n }\n return output;\n};\n\nexport const exportMap = new Map<Klass<LexicalNode>, (editor: LexicalEditor, target: LexicalNode) => DOMExportOutput>([\n [ParagraphNode, removeStylesExportDOM],\n [TextNode, removeStylesExportDOM],\n [ListNode, removeStylesExportDOM],\n [ListItemNode, removeStylesExportDOM],\n [TableCellNode, removeStylesExportDOM],\n [LinkNode, removeStylesExportDOM],\n]);\n\nexport const setScrollableContainers = (fn: (event: Event) => void) => {\n const scrollableContainers = document.querySelectorAll('*');\n scrollableContainers.forEach((container) => {\n if (container.scrollHeight > container.clientHeight) {\n container.addEventListener('scroll', fn);\n }\n });\n};\n\nexport const removeScrollableContainers = (fn: (event: Event) => void) => {\n const scrollableContainers = document.querySelectorAll('*');\n scrollableContainers.forEach((container) => {\n if (container.scrollHeight > container.clientHeight) {\n container.removeEventListener('scroll', fn);\n }\n });\n};\n"],"names":["mergeBoldStrongTags","html","mergedHtml","cleanUpTable","removeStylesExportDOM","editor","target","output","el","exportMap","ParagraphNode","TextNode","ListNode","ListItemNode","TableCellNode","LinkNode","setScrollableContainers","fn","container","removeScrollableContainers"],"mappings":";;;;AAOO,MAAMA,IAAsB,CAACC,MAAyB;AAC3D,MAAIC,IAAaD,EAAK,QAAQ,iBAAiB,UAAU;AACzD,SAAAC,IAAaA,EAAW,QAAQ,qBAAqB,WAAW,GACzDA;AACT,GAEaC,IAAe,CAACF,MAC3BA,EAAK,QAAQ,sDAAsD,IAAI,GAE5DG,IAAwB,CAACC,GAAuBC,MAAyC;AACpG,QAAMC,IAASD,EAAO,UAAUD,CAAM;AACtC,MAAIE,KAAUA,EAAO,mBAAmB;AACtC,eAAWC,KAAM,CAACD,EAAO,SAAS,GAAGA,EAAO,QAAQ,iBAAiB,6BAA6B,CAAC;AACjG,MAAAC,EAAG,gBAAgB,OAAO,GACtBA,EAAG,aAAa,OAAO,MACzBA,EAAG,aAAa,SAAS,EAAE,GAC3BA,EAAG,gBAAgB,OAAO,IAExBA,EAAG,aAAa,KAAK,MAAM,SAC7BA,EAAG,gBAAgB,KAAK;AAI9B,SAAOD;AACT,GAEaE,wBAAgB,IAAyF;AAAA,EACpH,CAACC,GAAeN,CAAqB;AAAA,EACrC,CAACO,GAAUP,CAAqB;AAAA,EAChC,CAACQ,GAAUR,CAAqB;AAAA,EAChC,CAACS,GAAcT,CAAqB;AAAA,EACpC,CAACU,GAAeV,CAAqB;AAAA,EACrC,CAACW,GAAUX,CAAqB;AAClC,CAAC,GAEYY,IAA0B,CAACC,MAA+B;AAErE,EAD6B,SAAS,iBAAiB,GAAG,EACrC,QAAQ,CAACC,MAAc;AAC1C,IAAIA,EAAU,eAAeA,EAAU,gBACrCA,EAAU,iBAAiB,UAAUD,CAAE;AAAA,EAE3C,CAAC;AACH,GAEaE,IAA6B,CAACF,MAA+B;AAExE,EAD6B,SAAS,iBAAiB,GAAG,EACrC,QAAQ,CAACC,MAAc;AAC1C,IAAIA,EAAU,eAAeA,EAAU,gBACrCA,EAAU,oBAAoB,UAAUD,CAAE;AAAA,EAE9C,CAAC;AACH;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as f } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
|
|
2
2
|
import { d as m, F as l, o as d, w as i, a as c, ag as p, h as N } from "../../../../Lexical.prod-nXWuyOKD.js";
|
|
3
3
|
import { v as h } from "../../../../LexicalUtils.prod-Ckfw0Hjt.js";
|
|
4
|
-
import { H as W } from "../../../../LexicalSelection.prod-
|
|
4
|
+
import { H as W } from "../../../../LexicalSelection.prod-Ct4PZOht.js";
|
|
5
5
|
class n extends m {
|
|
6
6
|
static getType() {
|
|
7
7
|
return "tableWrapper";
|
package/dist/components/index.js
CHANGED
|
@@ -35,7 +35,7 @@ import { Label as Bo } from "./Label/Label.js";
|
|
|
35
35
|
import { MenuLink as so } from "./MenuLink/MenuLink.js";
|
|
36
36
|
import { MetaDataList as Co } from "./MetaDataList/MetaDataList.js";
|
|
37
37
|
import { ModalDialog as Io } from "./ModalDialog/ModalDialog.js";
|
|
38
|
-
import { M as Mo } from "../TablePlugin-
|
|
38
|
+
import { M as Mo } from "../TablePlugin-FTN9oxnI.js";
|
|
39
39
|
import { MultiSelectBox as Lo } from "./MultiSelectBox/MultiSelectBox.js";
|
|
40
40
|
import { Notification as Ro } from "./Notification/Notification.js";
|
|
41
41
|
import { OverlayCloseButton as Ao } from "./OverlayCloseButton/OverlayCloseButton.js";
|
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ import { Label as Bo } from "./components/Label/Label.js";
|
|
|
35
35
|
import { MenuLink as so } from "./components/MenuLink/MenuLink.js";
|
|
36
36
|
import { MetaDataList as Co } from "./components/MetaDataList/MetaDataList.js";
|
|
37
37
|
import { ModalDialog as Io } from "./components/ModalDialog/ModalDialog.js";
|
|
38
|
-
import { M as Mo } from "./TablePlugin-
|
|
38
|
+
import { M as Mo } from "./TablePlugin-FTN9oxnI.js";
|
|
39
39
|
import { MultiSelectBox as Lo } from "./components/MultiSelectBox/MultiSelectBox.js";
|
|
40
40
|
import { Notification as Ro } from "./components/Notification/Notification.js";
|
|
41
41
|
import { OverlayCloseButton as Ao } from "./components/OverlayCloseButton/OverlayCloseButton.js";
|