@uva-glass/component-library 3.55.2 → 3.55.3

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 (141) hide show
  1. package/dist/{Lexical.prod-DCGjHGxG.js → Lexical.prod-DIglXatJ.js} +958 -947
  2. package/dist/Lexical.prod-DIglXatJ.js.map +1 -0
  3. package/dist/LexicalClipboard.prod-Bnzu0sh_.js +248 -0
  4. package/dist/{LexicalClipboard.prod-CGG14aoP.js.map → LexicalClipboard.prod-Bnzu0sh_.js.map} +1 -1
  5. package/dist/{LexicalExtension.prod-DWt1IjPF.js → LexicalExtension.prod-COPHoPpX.js} +320 -288
  6. package/dist/LexicalExtension.prod-COPHoPpX.js.map +1 -0
  7. package/dist/{LexicalLink.prod-Dy1gE75H.js → LexicalLink.prod-Bf9JUdMv.js} +216 -198
  8. package/dist/LexicalLink.prod-Bf9JUdMv.js.map +1 -0
  9. package/dist/{LexicalList.prod-D9R0L7cu.js → LexicalList.prod-DRz8vsM9.js} +247 -241
  10. package/dist/LexicalList.prod-DRz8vsM9.js.map +1 -0
  11. package/dist/{LexicalTable.prod-C2FP47Lm.js → LexicalTable.prod-D16GW-aZ.js} +741 -729
  12. package/dist/LexicalTable.prod-D16GW-aZ.js.map +1 -0
  13. package/dist/LexicalUtils.prod-BBTLliac.js +360 -0
  14. package/dist/LexicalUtils.prod-BBTLliac.js.map +1 -0
  15. package/dist/{LinkContextMenu-DZlKfbg1.js → LinkContextMenu-m_CGQEiX.js} +2 -2
  16. package/dist/{LinkContextMenu-DZlKfbg1.js.map → LinkContextMenu-m_CGQEiX.js.map} +1 -1
  17. package/dist/{PasteHandlerPlugin-DUdocSHB.js → PasteHandlerPlugin-DjD1wryY.js} +4 -4
  18. package/dist/{PasteHandlerPlugin-DUdocSHB.js.map → PasteHandlerPlugin-DjD1wryY.js.map} +1 -1
  19. package/dist/{TableCellResizerPlugin-BGolbi44.js → TableCellResizerPlugin-CgYsYsuY.js} +41 -41
  20. package/dist/{TableCellResizerPlugin-BGolbi44.js.map → TableCellResizerPlugin-CgYsYsuY.js.map} +1 -1
  21. package/dist/{chunk-OPOZOKLO-CXKdjnjn.js → chunk-SZQXB3JV-D0XG4Tlp.js} +5 -5
  22. package/dist/chunk-SZQXB3JV-D0XG4Tlp.js.map +1 -0
  23. package/dist/{client-C0JVBgoR.js → client-UU-mS47K.js} +6 -6
  24. package/dist/{client-C0JVBgoR.js.map → client-UU-mS47K.js.map} +1 -1
  25. package/dist/components/Accordion/Accordion.test.js +4 -4
  26. package/dist/components/AccordionCard/AccordionCard.test.js +4 -4
  27. package/dist/components/ActionList/ActionList.test.js +4 -4
  28. package/dist/components/AppStatusBar/AppStatusBar.test.js +3 -3
  29. package/dist/components/Attention/Attention.test.js +3 -3
  30. package/dist/components/Backdrop/Backdrop.test.js +3 -3
  31. package/dist/components/Buttons/Button.stories.js +1 -1
  32. package/dist/components/Buttons/Button.test.js +3 -3
  33. package/dist/components/Buttons/LinkButton.stories.js +1 -1
  34. package/dist/components/Buttons/LinkButton.test.js +3 -3
  35. package/dist/components/Buttons/MenuButton.stories.js +1 -1
  36. package/dist/components/Buttons/MenuButton.test.js +3 -3
  37. package/dist/components/Card/Card.test.js +3 -3
  38. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  39. package/dist/components/Checkbox/Checkbox.test.js +4 -4
  40. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
  41. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +3 -3
  42. package/dist/components/CheckboxTree/CheckboxTree.js +2 -2
  43. package/dist/components/CheckboxTree/CheckboxTree.stories.js +4 -4
  44. package/dist/components/CheckboxTree/index.js +2 -2
  45. package/dist/components/Chip/Chip.stories.js +1 -1
  46. package/dist/components/ControlsButton/ControlsButton.stories.js +1 -1
  47. package/dist/components/Drawer/Drawer.stories.js +1 -1
  48. package/dist/components/FeedbackBar/FeedbackBar.test.js +3 -3
  49. package/dist/components/FormInput/FormInput.js +2 -2
  50. package/dist/components/FormInput/FormInput.stories.js +3 -3
  51. package/dist/components/FormInput/index.js +2 -2
  52. package/dist/components/IconButton/IconButton.stories.js +1 -1
  53. package/dist/components/InputField/InputField.stories.js +3 -3
  54. package/dist/components/Label/Label.test.js +3 -3
  55. package/dist/components/MetaDataBar/MetaDataBar.test.js +2 -2
  56. package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
  57. package/dist/components/MultiSelect/MultiSelect.js +2 -2
  58. package/dist/components/MultiSelect/MultiSelect.stories.js +3 -3
  59. package/dist/components/MultiSelect/components/MultiSelectHeader.js +2 -2
  60. package/dist/components/MultiSelect/index.js +2 -2
  61. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
  62. package/dist/components/MultiSelectBox/MultiSelectBox.test.js +3 -3
  63. package/dist/components/Notification/Notification.stories.js +1 -1
  64. package/dist/components/Notification/Notification.test.js +3 -3
  65. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
  66. package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
  67. package/dist/components/PeriodSelector/PeriodSelector.stories.js +3 -3
  68. package/dist/components/PeriodSelector/index.js +2 -2
  69. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +2 -2
  70. package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
  71. package/dist/components/RadioGroup/Radiogroup.test.js +3 -3
  72. package/dist/components/RadioTabSelector/RadioTabSelector.js +2 -2
  73. package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +3 -3
  74. package/dist/components/RadioTabSelector/index.js +2 -2
  75. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +2 -2
  76. package/dist/components/RteEditor/EditorHeader/index.js +2 -2
  77. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +3 -3
  78. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +32 -32
  79. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
  80. package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js +2 -2
  81. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
  82. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  83. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +2 -2
  84. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  85. package/dist/components/RteEditor/Plugins/LinkPlugin/index.js +2 -2
  86. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +15 -15
  87. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +1 -1
  88. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js +1 -1
  89. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +1 -1
  90. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
  91. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +2 -2
  92. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +2 -2
  93. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +32 -32
  94. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +2 -2
  95. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +2 -2
  96. package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +2 -2
  97. package/dist/components/RteEditor/Plugins/index.js +3 -3
  98. package/dist/components/RteEditor/RteEditor.js +2 -2
  99. package/dist/components/RteEditor/RteEditor.stories.js +2 -2
  100. package/dist/components/RteEditor/helpers.js +4 -4
  101. package/dist/components/RteEditor/index.js +2 -2
  102. package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +17 -17
  103. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +13 -13
  104. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  105. package/dist/components/Sortable/Sortable.stories.js +1 -1
  106. package/dist/components/StatusBadge/StatusBadge.test.js +3 -3
  107. package/dist/components/TextArea/TextArea.stories.js +1 -1
  108. package/dist/components/TextArea/TextArea.test.js +4 -4
  109. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
  110. package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
  111. package/dist/components/VarIndicator/VarIndicator.test.js +4 -4
  112. package/dist/components/index.js +2 -2
  113. package/dist/{components-DVUYdcHS.js → components-C4MCdrDH.js} +456 -453
  114. package/dist/components-C4MCdrDH.js.map +1 -0
  115. package/dist/{dist-D6qYwmKD.js → dist-2TKCXdYZ.js} +315 -315
  116. package/dist/{dist-D6qYwmKD.js.map → dist-2TKCXdYZ.js.map} +1 -1
  117. package/dist/{esm-Cmy7DlsJ.js → esm-UNe_gmRA.js} +2 -2
  118. package/dist/{esm-Cmy7DlsJ.js.map → esm-UNe_gmRA.js.map} +1 -1
  119. package/dist/{helpers-DcFTH1J1.js → helpers-BBSxTGRl.js} +7 -7
  120. package/dist/{helpers-DcFTH1J1.js.map → helpers-BBSxTGRl.js.map} +1 -1
  121. package/dist/index.js +2 -2
  122. package/dist/{react-18-PI4Gvl2f.js → react-18-CRbkdI-3.js} +2 -2
  123. package/dist/{react-18-PI4Gvl2f.js.map → react-18-CRbkdI-3.js.map} +1 -1
  124. package/dist/{react.esm-Cev8dB-E.js → react.esm-CzIhAqlo.js} +479 -479
  125. package/dist/{react.esm-Cev8dB-E.js.map → react.esm-CzIhAqlo.js.map} +1 -1
  126. package/dist/setupTests.js +1 -1
  127. package/dist/storybook__react.d.js +3 -3
  128. package/dist/{test-CPFNM-bL.js → test-DQruvi8i.js} +3704 -5824
  129. package/dist/test-DQruvi8i.js.map +1 -0
  130. package/package.json +16 -16
  131. package/dist/Lexical.prod-DCGjHGxG.js.map +0 -1
  132. package/dist/LexicalClipboard.prod-CGG14aoP.js +0 -248
  133. package/dist/LexicalExtension.prod-DWt1IjPF.js.map +0 -1
  134. package/dist/LexicalLink.prod-Dy1gE75H.js.map +0 -1
  135. package/dist/LexicalList.prod-D9R0L7cu.js.map +0 -1
  136. package/dist/LexicalTable.prod-C2FP47Lm.js.map +0 -1
  137. package/dist/LexicalUtils.prod-BzrjMu6t.js +0 -242
  138. package/dist/LexicalUtils.prod-BzrjMu6t.js.map +0 -1
  139. package/dist/chunk-OPOZOKLO-CXKdjnjn.js.map +0 -1
  140. package/dist/components-DVUYdcHS.js.map +0 -1
  141. package/dist/test-CPFNM-bL.js.map +0 -1
@@ -1,10 +1,10 @@
1
1
  import { t as e } from "./LexicalComposerContext.prod-Ca-YN_fj.js";
2
- import { c as t, o as n, t as r } from "./LexicalLink.prod-Dy1gE75H.js";
2
+ import { a as t, c as n, i as r } from "./LexicalLink.prod-Bf9JUdMv.js";
3
3
  import { useEffect as i } from "react";
4
4
  //#region node_modules/@lexical/react/LexicalAutoLinkPlugin.prod.mjs
5
- function a(e, n, a, o) {
5
+ function a(e, r, a, o) {
6
6
  i(() => {
7
- e.hasNodes([r]) || function(e, ...t) {
7
+ e.hasNodes([n]) || function(e, ...t) {
8
8
  let n = new URL("https://lexical.dev/docs/error"), r = new URLSearchParams();
9
9
  r.append("code", e);
10
10
  for (let e of t) r.append("v", e);
@@ -13,10 +13,10 @@ function a(e, n, a, o) {
13
13
  }), i(() => t(e, {
14
14
  changeHandlers: a ? [a] : [],
15
15
  excludeParents: o ?? [],
16
- matchers: n
16
+ matchers: r
17
17
  }), [
18
18
  e,
19
- n,
19
+ r,
20
20
  a,
21
21
  o
22
22
  ]);
@@ -27,8 +27,8 @@ function o({ matchers: t, onChange: n, excludeParents: r }) {
27
27
  }
28
28
  //#endregion
29
29
  //#region src/components/RteEditor/Plugins/LinkPlugin/helpers.ts
30
- var s = /^(http|https):\/\//, c = /(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/, l = /(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/, u = /^(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})?$/, d = (e) => e === "https://" || c.test(e), f = (e) => e === "https://" || u.test(e), p = [n(c, (e) => s.test(e) ? e : `//${e}`), n(l, (e) => `mailto:${e}`)], m = (e) => /^https?:\/\//i.test(e) ? e : `https://${e}`;
30
+ var s = /^(http|https):\/\//, c = /(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/, l = /(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/, u = /^(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})?$/, d = (e) => e === "https://" || c.test(e), f = (e) => e === "https://" || u.test(e), p = [r(c, (e) => s.test(e) ? e : `//${e}`), r(l, (e) => `mailto:${e}`)], m = (e) => /^https?:\/\//i.test(e) ? e : `https://${e}`;
31
31
  //#endregion
32
32
  export { o as a, f as i, m as n, d as r, p as t };
33
33
 
34
- //# sourceMappingURL=helpers-DcFTH1J1.js.map
34
+ //# sourceMappingURL=helpers-BBSxTGRl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers-DcFTH1J1.js","names":["e","o","r","n"],"sources":["../node_modules/@lexical/react/LexicalAutoLinkPlugin.prod.mjs","../src/components/RteEditor/Plugins/LinkPlugin/helpers.ts"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport{AutoLinkNode as e,registerAutoLink as r}from\"@lexical/link\";export{createLinkMatcherWithRegExp}from\"@lexical/link\";import{useLexicalComposerContext as n}from\"@lexical/react/LexicalComposerContext\";import{useEffect as o}from\"react\";function t(n,t,i,a){o(()=>{n.hasNodes([e])||function(e,...r){const n=new URL(\"https://lexical.dev/docs/error\"),o=new URLSearchParams;o.append(\"code\",e);for(const e of r)o.append(\"v\",e);throw n.search=o.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(77)}),o(()=>r(n,{changeHandlers:i?[i]:[],excludeParents:a??[],matchers:t}),[n,t,i,a])}function i({matchers:e,onChange:r,excludeParents:o}){const[i]=n();return t(i,e,r,o),null}export{i as AutoLinkPlugin};\n","import { createLinkMatcherWithRegExp } from '@lexical/react/LexicalAutoLinkPlugin';\n\nconst PROTOCOL_REGEX = /^(http|https):\\/\\//;\n\nconst URL_REGEX =\n /(https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|www\\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9]+\\.[^\\s]{2,}|www\\.[a-zA-Z0-9]+\\.[^\\s]{2,})/;\n\nconst EMAIL_REGEX =\n /(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))/;\n\nconst URL_REGEX_OR_BLANK =\n /^(https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|www\\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9]+\\.[^\\s]{2,}|www\\.[a-zA-Z0-9]+\\.[^\\s]{2,})?$/;\n\nexport const validateUrl = (url: string): boolean => {\n return url === 'https://' || URL_REGEX.test(url);\n};\n\nexport const validateUrlWithProtocol = (url: string): boolean => {\n return url === 'https://' || URL_REGEX_OR_BLANK.test(url);\n};\n\nexport const MATCHERS = [\n createLinkMatcherWithRegExp(URL_REGEX, (text: string): string => {\n return !PROTOCOL_REGEX.test(text) ? `//${text}` : text;\n }),\n createLinkMatcherWithRegExp(EMAIL_REGEX, (text) => {\n return `mailto:${text}`;\n }),\n];\n\nexport const ensureHttps = (url: string) => {\n if (!/^https?:\\/\\//i.test(url)) {\n return `https://${url}`;\n }\n return url;\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;AAQ8O,SAAS,EAAE,GAAE,GAAE,GAAE,GAAE;AAAC,SAAM;AAAC,IAAE,SAAS,CAACA,EAAE,CAAC,IAAE,SAAS,GAAE,GAAG,GAAE;GAAC,IAAM,IAAE,IAAI,IAAI,iCAAiC,EAAC,IAAE,IAAI,iBAAe;AAAC,KAAE,OAAO,QAAO,EAAE;AAAC,QAAI,IAAM,KAAK,EAAE,GAAE,OAAO,KAAI,EAAE;AAAC,SAAM,EAAE,SAAO,EAAE,UAAU,EAAC,MAAM,2BAA2B,EAAE,UAAU,EAAE,UAAU,CAAC,gHAAgH;IAAE,GAAG;GAAE,EAACC,QAAMC,EAAE,GAAE;EAAC,gBAAe,IAAE,CAAC,EAAE,GAAC,EAAE;EAAC,gBAAe,KAAG,EAAE;EAAC,UAAS;EAAE,CAAC,EAAC;EAAC;EAAE;EAAE;EAAE;EAAE,CAAC;;AAAC,SAAS,EAAE,EAAC,UAAS,GAAE,UAAS,GAAE,gBAAeD,KAAG;CAAC,IAAK,CAAC,KAAGE,GAAG;AAAC,QAAO,EAAE,GAAE,GAAE,GAAEF,EAAE,EAAC;;;;ACNzxB,IAAM,IAAiB,sBAEjB,IACJ,qNAEI,IACJ,uJAEI,IACJ,wNAEW,KAAe,MACnB,MAAQ,cAAc,EAAU,KAAK,EAAI,EAGrC,KAA2B,MAC/B,MAAQ,cAAc,EAAmB,KAAK,EAAI,EAG9C,IAAW,CACtB,EAA4B,IAAY,MAC9B,EAAe,KAAK,EAAK,GAAiB,IAAd,KAAK,IACzC,EACF,EAA4B,IAAc,MACjC,UAAU,IACjB,CACH,EAEY,KAAe,MACrB,gBAAgB,KAAK,EAAI,GAGvB,IAFE,WAAW"}
1
+ {"version":3,"file":"helpers-BBSxTGRl.js","names":["e","o","r","n"],"sources":["../node_modules/@lexical/react/LexicalAutoLinkPlugin.prod.mjs","../src/components/RteEditor/Plugins/LinkPlugin/helpers.ts"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport{AutoLinkNode as e,registerAutoLink as r}from\"@lexical/link\";export{createLinkMatcherWithRegExp}from\"@lexical/link\";import{useLexicalComposerContext as n}from\"@lexical/react/LexicalComposerContext\";import{useEffect as o}from\"react\";function t(n,t,i,a){o(()=>{n.hasNodes([e])||function(e,...r){const n=new URL(\"https://lexical.dev/docs/error\"),o=new URLSearchParams;o.append(\"code\",e);for(const e of r)o.append(\"v\",e);throw n.search=o.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(77)}),o(()=>r(n,{changeHandlers:i?[i]:[],excludeParents:a??[],matchers:t}),[n,t,i,a])}function i({matchers:e,onChange:r,excludeParents:o}){const[i]=n();return t(i,e,r,o),null}export{i as AutoLinkPlugin};\n","import { createLinkMatcherWithRegExp } from '@lexical/react/LexicalAutoLinkPlugin';\n\nconst PROTOCOL_REGEX = /^(http|https):\\/\\//;\n\nconst URL_REGEX =\n /(https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|www\\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9]+\\.[^\\s]{2,}|www\\.[a-zA-Z0-9]+\\.[^\\s]{2,})/;\n\nconst EMAIL_REGEX =\n /(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))/;\n\nconst URL_REGEX_OR_BLANK =\n /^(https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|www\\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9]+\\.[^\\s]{2,}|www\\.[a-zA-Z0-9]+\\.[^\\s]{2,})?$/;\n\nexport const validateUrl = (url: string): boolean => {\n return url === 'https://' || URL_REGEX.test(url);\n};\n\nexport const validateUrlWithProtocol = (url: string): boolean => {\n return url === 'https://' || URL_REGEX_OR_BLANK.test(url);\n};\n\nexport const MATCHERS = [\n createLinkMatcherWithRegExp(URL_REGEX, (text: string): string => {\n return !PROTOCOL_REGEX.test(text) ? `//${text}` : text;\n }),\n createLinkMatcherWithRegExp(EMAIL_REGEX, (text) => {\n return `mailto:${text}`;\n }),\n];\n\nexport const ensureHttps = (url: string) => {\n if (!/^https?:\\/\\//i.test(url)) {\n return `https://${url}`;\n }\n return url;\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;AAQ8O,SAAS,EAAE,GAAE,GAAE,GAAE,GAAE;AAAC,SAAM;AAAC,IAAE,SAAS,CAACA,EAAE,CAAC,IAAE,SAAS,GAAE,GAAG,GAAE;GAAC,IAAM,IAAE,IAAI,IAAI,iCAAiC,EAAC,IAAE,IAAI,iBAAe;AAAC,KAAE,OAAO,QAAO,EAAE;AAAC,QAAI,IAAM,KAAK,EAAE,GAAE,OAAO,KAAI,EAAE;AAAC,SAAM,EAAE,SAAO,EAAE,UAAU,EAAC,MAAM,2BAA2B,EAAE,UAAU,EAAE,UAAU,CAAC,gHAAgH;IAAE,GAAG;GAAE,EAACC,QAAMC,EAAE,GAAE;EAAC,gBAAe,IAAE,CAAC,EAAE,GAAC,EAAE;EAAC,gBAAe,KAAG,EAAE;EAAC,UAAS;EAAE,CAAC,EAAC;EAAC;EAAE;EAAE;EAAE;EAAE,CAAC;;AAAC,SAAS,EAAE,EAAC,UAAS,GAAE,UAAS,GAAE,gBAAeD,KAAG;CAAC,IAAK,CAAC,KAAGE,GAAG;AAAC,QAAO,EAAE,GAAE,GAAE,GAAEF,EAAE,EAAC;;;;ACNzxB,IAAM,IAAiB,sBAEjB,IACJ,qNAEI,IACJ,uJAEI,IACJ,wNAEW,KAAe,MACnB,MAAQ,cAAc,EAAU,KAAK,EAAI,EAGrC,KAA2B,MAC/B,MAAQ,cAAc,EAAmB,KAAK,EAAI,EAG9C,IAAW,CACtB,EAA4B,IAAY,MAC9B,EAAe,KAAK,EAAK,GAAiB,IAAd,KAAK,IACzC,EACF,EAA4B,IAAc,MACjC,UAAU,IACjB,CACH,EAEY,KAAe,MACrB,gBAAgB,KAAK,EAAI,GAGvB,IAFE,WAAW"}
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ import { t as m } from "./CheckboxButtonBar-CalU0IYK.js";
16
16
  import { t as h } from "./Label-o0BcWTUS.js";
17
17
  import { t as g } from "./FeedbackBox-Bu7uB9DP.js";
18
18
  import { t as _ } from "./ControlsButton-zemVxTlg.js";
19
- import { d as v, f as y, h as b, m as x, n as S, t as C, u as w } from "./components-DVUYdcHS.js";
19
+ import { d as v, f as y, h as b, m as x, n as S, t as C, u as w } from "./components-C4MCdrDH.js";
20
20
  import { t as T } from "./Chip-DJHvFToV.js";
21
21
  import { t as E } from "./CopyableText-DkyhZ6wk.js";
22
22
  import { t as D } from "./Drawer-Ggofac6y.js";
@@ -48,7 +48,7 @@ import { t as Q } from "./Periods-BYETtB6R.js";
48
48
  import { t as $ } from "./ProgrammeCard-76gG7ksx.js";
49
49
  import { t as ee } from "./RadioButton-Bto2p5B9.js";
50
50
  import { t as te } from "./RadioGroup-JeTjVp5B.js";
51
- import "./PasteHandlerPlugin-DUdocSHB.js";
51
+ import "./PasteHandlerPlugin-DjD1wryY.js";
52
52
  import { SearchField as ne } from "./components/SearchField/SearchField.js";
53
53
  import { SelectProvider as re, useSelect as ie } from "./components/SelectListbox/SelectProvider.js";
54
54
  import { SelectListbox as ae } from "./components/SelectListbox/SelectListbox.js";
@@ -1,5 +1,5 @@
1
1
  import { i as e } from "./chunk-DeC0fbbY.js";
2
- import { t } from "./client-C0JVBgoR.js";
2
+ import { t } from "./client-UU-mS47K.js";
3
3
  import * as n from "react";
4
4
  //#region node_modules/@storybook/react-dom-shim/dist/react-18.js
5
5
  var r = /* @__PURE__ */ e(t(), 1), i = /* @__PURE__ */ new Map();
@@ -40,4 +40,4 @@ var s = async (e, t, r) => {
40
40
  //#endregion
41
41
  export { s as renderElement, c as unmountElement };
42
42
 
43
- //# sourceMappingURL=react-18-PI4Gvl2f.js.map
43
+ //# sourceMappingURL=react-18-CRbkdI-3.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-18-PI4Gvl2f.js","names":[],"sources":["../node_modules/@storybook/react-dom-shim/dist/react-18.js"],"sourcesContent":["// src/react-18.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom/client\";\nvar nodes = /* @__PURE__ */ new Map();\nfunction getIsReactActEnvironment() {\n return globalThis.IS_REACT_ACT_ENVIRONMENT;\n}\nvar WithCallback = ({\n callback,\n children\n}) => {\n let once = React.useRef();\n return React.useLayoutEffect(() => {\n once.current !== callback && (once.current = callback, callback());\n }, [callback]), children;\n};\ntypeof Promise.withResolvers > \"u\" && (Promise.withResolvers = () => {\n let resolve = null, reject = null;\n return { promise: new Promise((res, rej) => {\n resolve = res, reject = rej;\n }), resolve, reject };\n});\nvar renderElement = async (node, el, rootOptions) => {\n let root = await getReactRoot(el, rootOptions);\n if (getIsReactActEnvironment()) {\n root.render(node);\n return;\n }\n let { promise, resolve } = Promise.withResolvers();\n return root.render(React.createElement(WithCallback, { callback: resolve }, node)), promise;\n}, unmountElement = (el, shouldUseNewRootApi) => {\n let root = nodes.get(el);\n root && (root.unmount(), nodes.delete(el));\n}, getReactRoot = async (el, rootOptions) => {\n let root = nodes.get(el);\n return root || (root = ReactDOM.createRoot(el, rootOptions), nodes.set(el, root)), root;\n};\nexport {\n renderElement,\n unmountElement\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;mCAGI,oBAAwB,IAAI,KAAK;AACrC,SAAS,IAA2B;AAClC,QAAO,WAAW;;AAEpB,IAAI,KAAgB,EAClB,aACA,kBACI;CACJ,IAAI,IAAO,EAAM,QAAQ;AACzB,QAAO,EAAM,sBAAsB;AACjC,IAAK,YAAY,MAAa,EAAK,UAAU,GAAU,GAAU;IAChE,CAAC,EAAS,CAAC,EAAE;;AAElB,OAAO,QAAQ,gBAAgB,QAAQ,QAAQ,sBAAsB;CACnE,IAAI,IAAU,MAAM,IAAS;AAC7B,QAAO;EAAE,SAAS,IAAI,SAAS,GAAK,MAAQ;AAC1C,OAAU,GAAK,IAAS;IACxB;EAAE;EAAS;EAAQ;;AAEvB,IAAI,IAAgB,OAAO,GAAM,GAAI,MAAgB;CACnD,IAAI,IAAO,MAAM,EAAa,GAAI,EAAY;AAC9C,KAAI,GAA0B,EAAE;AAC9B,IAAK,OAAO,EAAK;AACjB;;CAEF,IAAI,EAAE,YAAS,eAAY,QAAQ,eAAe;AAClD,QAAO,EAAK,OAAO,EAAM,cAAc,GAAc,EAAE,UAAU,GAAS,EAAE,EAAK,CAAC,EAAE;GACnF,KAAkB,GAAI,MAAwB;CAC/C,IAAI,IAAO,EAAM,IAAI,EAAG;AACxB,OAAS,EAAK,SAAS,EAAE,EAAM,OAAO,EAAG;GACxC,IAAe,OAAO,GAAI,MAAgB;CAC3C,IAAI,IAAO,EAAM,IAAI,EAAG;AACxB,QAAO,MAAS,IAAA,EAAgB,WAAW,GAAI,EAAY,EAAE,EAAM,IAAI,GAAI,EAAK,GAAG"}
1
+ {"version":3,"file":"react-18-CRbkdI-3.js","names":[],"sources":["../node_modules/@storybook/react-dom-shim/dist/react-18.js"],"sourcesContent":["// src/react-18.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom/client\";\nvar nodes = /* @__PURE__ */ new Map();\nfunction getIsReactActEnvironment() {\n return globalThis.IS_REACT_ACT_ENVIRONMENT;\n}\nvar WithCallback = ({\n callback,\n children\n}) => {\n let once = React.useRef();\n return React.useLayoutEffect(() => {\n once.current !== callback && (once.current = callback, callback());\n }, [callback]), children;\n};\ntypeof Promise.withResolvers > \"u\" && (Promise.withResolvers = () => {\n let resolve = null, reject = null;\n return { promise: new Promise((res, rej) => {\n resolve = res, reject = rej;\n }), resolve, reject };\n});\nvar renderElement = async (node, el, rootOptions) => {\n let root = await getReactRoot(el, rootOptions);\n if (getIsReactActEnvironment()) {\n root.render(node);\n return;\n }\n let { promise, resolve } = Promise.withResolvers();\n return root.render(React.createElement(WithCallback, { callback: resolve }, node)), promise;\n}, unmountElement = (el, shouldUseNewRootApi) => {\n let root = nodes.get(el);\n root && (root.unmount(), nodes.delete(el));\n}, getReactRoot = async (el, rootOptions) => {\n let root = nodes.get(el);\n return root || (root = ReactDOM.createRoot(el, rootOptions), nodes.set(el, root)), root;\n};\nexport {\n renderElement,\n unmountElement\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;mCAGI,oBAAwB,IAAI,KAAK;AACrC,SAAS,IAA2B;AAClC,QAAO,WAAW;;AAEpB,IAAI,KAAgB,EAClB,aACA,kBACI;CACJ,IAAI,IAAO,EAAM,QAAQ;AACzB,QAAO,EAAM,sBAAsB;AACjC,IAAK,YAAY,MAAa,EAAK,UAAU,GAAU,GAAU;IAChE,CAAC,EAAS,CAAC,EAAE;;AAElB,OAAO,QAAQ,gBAAgB,QAAQ,QAAQ,sBAAsB;CACnE,IAAI,IAAU,MAAM,IAAS;AAC7B,QAAO;EAAE,SAAS,IAAI,SAAS,GAAK,MAAQ;AAC1C,OAAU,GAAK,IAAS;IACxB;EAAE;EAAS;EAAQ;;AAEvB,IAAI,IAAgB,OAAO,GAAM,GAAI,MAAgB;CACnD,IAAI,IAAO,MAAM,EAAa,GAAI,EAAY;AAC9C,KAAI,GAA0B,EAAE;AAC9B,IAAK,OAAO,EAAK;AACjB;;CAEF,IAAI,EAAE,YAAS,eAAY,QAAQ,eAAe;AAClD,QAAO,EAAK,OAAO,EAAM,cAAc,GAAc,EAAE,UAAU,GAAS,EAAE,EAAK,CAAC,EAAE;GACnF,KAAkB,GAAI,MAAwB;CAC/C,IAAI,IAAO,EAAM,IAAI,EAAG;AACxB,OAAS,EAAK,SAAS,EAAE,EAAM,OAAO,EAAG;GACxC,IAAe,OAAO,GAAI,MAAgB;CAC3C,IAAI,IAAO,EAAM,IAAI,EAAG;AACxB,QAAO,MAAS,IAAA,EAAgB,WAAW,GAAI,EAAY,EAAE,EAAM,IAAI,GAAI,EAAK,GAAG"}