@uva-glass/component-library 3.45.5 → 3.45.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/{LexicalClipboard.prod-BP8LNbol.js → LexicalClipboard.prod-pXq91TBU.js} +2 -2
  2. package/dist/{LexicalClipboard.prod-BP8LNbol.js.map → LexicalClipboard.prod-pXq91TBU.js.map} +1 -1
  3. package/dist/{LexicalList.prod-D6IAptR7.js → LexicalList.prod--mkvX0uW.js} +2 -2
  4. package/dist/{LexicalList.prod-D6IAptR7.js.map → LexicalList.prod--mkvX0uW.js.map} +1 -1
  5. package/dist/{LexicalSelection.prod-ZvNRDI9l.js → LexicalSelection.prod-Ct4PZOht.js} +5 -5
  6. package/dist/{LexicalSelection.prod-ZvNRDI9l.js.map → LexicalSelection.prod-Ct4PZOht.js.map} +1 -1
  7. package/dist/{LexicalTable.prod-DJktN6jF.js → LexicalTable.prod-Bexd4dGG.js} +2 -2
  8. package/dist/{LexicalTable.prod-DJktN6jF.js.map → LexicalTable.prod-Bexd4dGG.js.map} +1 -1
  9. package/dist/{TableCellResizerPlugin-DFzNK-ve.js → TableCellResizerPlugin-Cpbankb8.js} +2 -2
  10. package/dist/{TableCellResizerPlugin-DFzNK-ve.js.map → TableCellResizerPlugin-Cpbankb8.js.map} +1 -1
  11. package/dist/{TablePlugin-4Zj0xZie.js → TablePlugin-FTN9oxnI.js} +2 -2
  12. package/dist/{TablePlugin-4Zj0xZie.js.map → TablePlugin-FTN9oxnI.js.map} +1 -1
  13. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  14. package/dist/components/FormInput/FormInput.js +1 -1
  15. package/dist/components/Icon/icons/index.d.ts +6 -0
  16. package/dist/components/Icon/icons/index.js +200 -195
  17. package/dist/components/Icon/icons/index.js.map +1 -1
  18. package/dist/components/InputField/InputField.stories.js +1 -1
  19. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  20. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  21. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  22. package/dist/components/MultiSelect/index.js +1 -1
  23. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  24. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  25. package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
  26. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  27. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +1 -1
  28. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
  29. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +1 -1
  30. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +43 -49
  31. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js.map +1 -1
  32. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +1 -1
  33. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +2 -2
  34. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
  35. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  36. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +2 -2
  37. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +1 -1
  38. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  39. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +2 -2
  40. package/dist/components/RteEditor/Plugins/index.js +2 -2
  41. package/dist/components/RteEditor/RteEditor.js +303 -312
  42. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  43. package/dist/components/RteEditor/RteEditor.stories.js +29 -29
  44. package/dist/components/RteEditor/RteEditor.stories.js.map +1 -1
  45. package/dist/components/RteEditor/helpers.d.ts +0 -1
  46. package/dist/components/RteEditor/helpers.js +18 -19
  47. package/dist/components/RteEditor/helpers.js.map +1 -1
  48. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +1 -1
  49. package/dist/components/index.js +1 -1
  50. package/dist/index.js +1 -1
  51. package/package.json +3 -3
@@ -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-D6IAptR7.js";
3
- import { ae as a, $ as c } from "../../Lexical.prod-nXWuyOKD.js";
4
- import { y as m } from "../../LexicalTable.prod-DJktN6jF.js";
5
- const d = (e) => /^<(b|i|u|strong|em|mark|small|del|ins|sub|sup|div|p|span|h[1-6]|a|img|table|tr|td|th|ul|ol|li|blockquote|pre|code|br)(\s+[^>]*)?>/i.test(e.trim()), f = (e) => {
6
- let r = e.replace(/<b><strong>/gi, "<strong>");
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
- }, h = (e) => e.replace(/<div[^>]*>\s*(<table[\s\S]*?<\/table>)\s*<\/div>/gi, "$1"), o = (e, r) => {
9
- const t = r.exportDOM(e);
10
- if (t && t.element instanceof HTMLElement)
11
- for (const l of [t.element, ...t.element.querySelectorAll('[style],[class],[dir="ltr"]')])
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 t;
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 = (e) => {
22
- document.querySelectorAll("*").forEach((t) => {
23
- t.scrollHeight > t.clientHeight && t.addEventListener("scroll", e);
21
+ ]), y = (t) => {
22
+ document.querySelectorAll("*").forEach((e) => {
23
+ e.scrollHeight > e.clientHeight && e.addEventListener("scroll", t);
24
24
  });
25
- }, A = (e) => {
26
- document.querySelectorAll("*").forEach((t) => {
27
- t.scrollHeight > t.clientHeight && t.removeEventListener("scroll", e);
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
- h as cleanUpTable,
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 isStartingWithHtmlTag = (str: string): boolean => {\n const htmlTagPattern =\n /^<(b|i|u|strong|em|mark|small|del|ins|sub|sup|div|p|span|h[1-6]|a|img|table|tr|td|th|ul|ol|li|blockquote|pre|code|br)(\\s+[^>]*)?>/i;\n return htmlTagPattern.test(str.trim());\n};\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":["isStartingWithHtmlTag","str","mergeBoldStrongTags","html","mergedHtml","cleanUpTable","removeStylesExportDOM","editor","target","output","el","exportMap","ParagraphNode","TextNode","ListNode","ListItemNode","TableCellNode","LinkNode","setScrollableContainers","fn","container","removeScrollableContainers"],"mappings":";;;;AAOO,MAAMA,IAAwB,CAACC,MAElC,qIACoB,KAAKA,EAAI,KAAA,CAAM,GAG1BC,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
+ {"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-ZvNRDI9l.js";
4
+ import { H as W } from "../../../../LexicalSelection.prod-Ct4PZOht.js";
5
5
  class n extends m {
6
6
  static getType() {
7
7
  return "tableWrapper";
@@ -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-4Zj0xZie.js";
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-4Zj0xZie.js";
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";
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@uva-glass/component-library",
3
3
  "author": "Team Glass - Frontend vrienden",
4
4
  "private": false,
5
- "version": "3.45.5",
5
+ "version": "3.45.7",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
@@ -81,7 +81,7 @@
81
81
  "react": "^19.1.1",
82
82
  "react-dom": "^19.1.1",
83
83
  "react-router": "^7.9.1",
84
- "semantic-release": "^24.2.8",
84
+ "semantic-release": "^24.2.9",
85
85
  "storybook": "^9.1.7",
86
86
  "style-dictionary": "^5.0.4",
87
87
  "stylelint": "^16.24.0",
@@ -109,7 +109,7 @@
109
109
  },
110
110
  "optionalDependencies": {
111
111
  "@ast-grep/napi-linux-x64-gnu": "0.39.5",
112
- "@rollup/rollup-linux-x64-gnu": "^4.50.2",
112
+ "@rollup/rollup-linux-x64-gnu": "^4.52.0",
113
113
  "@rspack/binding-darwin-arm64": "1.5.5",
114
114
  "@rspack/binding-linux-x64-gnu": "1.5.5"
115
115
  }