@uva-glass/component-library 3.0.2 → 3.0.4

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 (120) hide show
  1. package/dist/{Lexical.prod-CQl7J8uU.js → Lexical.prod-CZAqLAjm.js} +32 -32
  2. package/dist/Lexical.prod-CZAqLAjm.js.map +1 -0
  3. package/dist/{LexicalClipboard.prod-C48GDxiy.js → LexicalClipboard.prod-B0GrUtzr.js} +16 -16
  4. package/dist/{LexicalClipboard.prod-C48GDxiy.js.map → LexicalClipboard.prod-B0GrUtzr.js.map} +1 -1
  5. package/dist/{LexicalComposerContext.prod-DxxjdrXB.js → LexicalComposerContext.prod-BCXERl09.js} +6 -7
  6. package/dist/{LexicalComposerContext.prod-DxxjdrXB.js.map → LexicalComposerContext.prod-BCXERl09.js.map} +1 -1
  7. package/dist/{LexicalLink.prod-D8-zZW0o.js → LexicalLink.prod-kqeQGYSo.js} +13 -13
  8. package/dist/LexicalLink.prod-kqeQGYSo.js.map +1 -0
  9. package/dist/{LexicalList.prod-B4_DTbPB.js → LexicalList.prod-BEKqHUO2.js} +10 -10
  10. package/dist/LexicalList.prod-BEKqHUO2.js.map +1 -0
  11. package/dist/{LexicalSelection.prod-BU3GAQB4.js → LexicalSelection.prod-B1DTqn9H.js} +14 -14
  12. package/dist/{LexicalSelection.prod-BU3GAQB4.js.map → LexicalSelection.prod-B1DTqn9H.js.map} +1 -1
  13. package/dist/{LexicalTable.prod-BvJxbarH.js → LexicalTable.prod-DtAMjSWg.js} +24 -24
  14. package/dist/{LexicalTable.prod-BvJxbarH.js.map → LexicalTable.prod-DtAMjSWg.js.map} +1 -1
  15. package/dist/{LexicalUtils.prod-D9KKqgU7.js → LexicalUtils.prod-C-NXnTzK.js} +3 -3
  16. package/dist/{LexicalUtils.prod-D9KKqgU7.js.map → LexicalUtils.prod-C-NXnTzK.js.map} +1 -1
  17. package/dist/{SortableProvider-RaH_ZXB3.js → SortableProvider-Ck_XnBVq.js} +10 -10
  18. package/dist/{SortableProvider-RaH_ZXB3.js.map → SortableProvider-Ck_XnBVq.js.map} +1 -1
  19. package/dist/{TablePlugin-CPEwD-wi.js → TablePlugin-DkL40qIf.js} +54 -55
  20. package/dist/{TablePlugin-CPEwD-wi.js.map → TablePlugin-DkL40qIf.js.map} +1 -1
  21. package/dist/__mocks__/fileMock.d.ts +2 -0
  22. package/dist/__mocks__/svgrMock.d.ts +3 -0
  23. package/dist/__mocks__/svgrMock.js +10 -0
  24. package/dist/__mocks__/svgrMock.js.map +1 -0
  25. package/dist/client-CTOhtEms.js +33 -0
  26. package/dist/client-CTOhtEms.js.map +1 -0
  27. package/dist/components/AccordionCard/AccordionCard.stories.js +1 -1
  28. package/dist/components/Buttons/Button.stories.js +2 -2
  29. package/dist/components/Buttons/LinkButton.stories.js +2 -2
  30. package/dist/components/Buttons/MenuButton.stories.js +2 -2
  31. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  32. package/dist/components/CheckboxButton/CheckboxButton.stories.js +1 -1
  33. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
  34. package/dist/components/CheckboxTree/CheckboxTree.js +2 -2
  35. package/dist/components/CheckboxTree/CheckboxTree.stories.js +11 -11
  36. package/dist/components/Chip/Chip.stories.js +1 -1
  37. package/dist/components/Drawer/Drawer.stories.js +1 -1
  38. package/dist/components/FormInput/FormInput.js +3 -3
  39. package/dist/components/FormInput/FormInput.stories.js +1 -1
  40. package/dist/components/IconButton/IconButton.stories.js +1 -1
  41. package/dist/components/InputField/InputField.stories.js +3 -3
  42. package/dist/components/Label/Label.test.d.ts +0 -0
  43. package/dist/components/Label/Label.test.js +4257 -0
  44. package/dist/components/Label/Label.test.js.map +1 -0
  45. package/dist/components/MenuLink/MenuLink.d.ts +4 -1
  46. package/dist/components/MenuLink/MenuLink.js +12 -12
  47. package/dist/components/MenuLink/MenuLink.js.map +1 -1
  48. package/dist/components/MenuLink/MenuLink.stories.d.ts +3 -1
  49. package/dist/components/MenuLink/MenuLink.stories.js +12 -7
  50. package/dist/components/MenuLink/MenuLink.stories.js.map +1 -1
  51. package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
  52. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  53. package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
  54. package/dist/components/MultiSelect/components/MultiSelectHeader.js +2 -2
  55. package/dist/components/MultiSelect/index.js +1 -1
  56. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
  57. package/dist/components/OverlayStepBar/OverlayStepBar.js +2 -2
  58. package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
  59. package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
  60. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +4 -4
  61. package/dist/components/Repeater/Repeater.stories.js +1 -1
  62. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +2 -2
  63. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +2 -2
  64. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +4 -4
  65. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +3 -3
  66. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  67. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +19 -19
  68. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  69. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +4 -4
  70. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +4 -4
  71. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +2 -2
  72. package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +1 -1
  73. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +5 -5
  74. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +15 -15
  75. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  76. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +4 -4
  77. package/dist/components/RteEditor/Plugins/index.js +1 -1
  78. package/dist/components/RteEditor/Providers/LanguageProvider.js +3 -3
  79. package/dist/components/RteEditor/RteEditor.js +408 -408
  80. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  81. package/dist/components/RteEditor/helpers.js +4 -4
  82. package/dist/components/RteEditor/hooks/components/Flyout.js +12 -13
  83. package/dist/components/RteEditor/hooks/components/Flyout.js.map +1 -1
  84. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  85. package/dist/components/SelectListbox/SelectListbox.js +8 -9
  86. package/dist/components/SelectListbox/SelectListbox.js.map +1 -1
  87. package/dist/components/SelectListbox/SelectProvider.js +3 -3
  88. package/dist/components/Sortable/Sortable.js +1 -1
  89. package/dist/components/Sortable/Sortable.stories.js +1 -1
  90. package/dist/components/Sortable/SortableProvider.js +1 -1
  91. package/dist/components/Sortable/actions.js +8 -8
  92. package/dist/components/Sortable/components/SortableContainer.js +1 -1
  93. package/dist/components/Sortable/components/SortableItem.js +1 -1
  94. package/dist/components/Spinner/Spinner.js +11 -12
  95. package/dist/components/Spinner/Spinner.js.map +1 -1
  96. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
  97. package/dist/components/index.js +1 -1
  98. package/dist/{helpers-C_Mib4v3.js → helpers-DYmWlhgC.js} +15 -15
  99. package/dist/{helpers-C_Mib4v3.js.map → helpers-DYmWlhgC.js.map} +1 -1
  100. package/dist/index-BqHyOZsF.js +10322 -0
  101. package/dist/index-BqHyOZsF.js.map +1 -0
  102. package/dist/{index-Sh2oo6_C.js → index-DkNZhwJb.js} +399 -392
  103. package/dist/index-DkNZhwJb.js.map +1 -0
  104. package/dist/index.js +1 -1
  105. package/dist/react-18-CcyoHPTJ.js +38 -0
  106. package/dist/react-18-CcyoHPTJ.js.map +1 -0
  107. package/dist/setupTests.d.ts +0 -0
  108. package/dist/setupTests.js +1573 -0
  109. package/dist/setupTests.js.map +1 -0
  110. package/dist/storybook__react.d.js +538 -1657
  111. package/dist/storybook__react.d.js.map +1 -1
  112. package/dist/test-utils-CTqdUiUm.js +1126 -0
  113. package/dist/test-utils-CTqdUiUm.js.map +1 -0
  114. package/package.json +47 -28
  115. package/dist/Lexical.prod-CQl7J8uU.js.map +0 -1
  116. package/dist/LexicalLink.prod-D8-zZW0o.js.map +0 -1
  117. package/dist/LexicalList.prod-B4_DTbPB.js.map +0 -1
  118. package/dist/index-Sh2oo6_C.js.map +0 -1
  119. package/dist/react-18-C9Y1Flwa.js +0 -65
  120. package/dist/react-18-C9Y1Flwa.js.map +0 -1
@@ -1,3 +1,6 @@
1
1
  import { NavLinkProps } from 'react-router';
2
2
  /** Represents a component for a [NavLink](https://reactrouter.com/en/main/components/nav-link) with styling. */
3
- export declare const MenuLink: (props: Omit<NavLinkProps, "style">) => import("react/jsx-runtime").JSX.Element;
3
+ export interface MenuLinkProps extends Omit<NavLinkProps, 'style'> {
4
+ overrideDefault?: boolean;
5
+ }
6
+ export declare const MenuLink: ({ overrideDefault, ...props }: MenuLinkProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,25 +1,25 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { c as u } from "../../clsx-OuTLNxxd.js";
3
- import { useLocation as k, NavLink as h } from "react-router";
1
+ import { jsx as u } from "react/jsx-runtime";
2
+ import { c as k } from "../../clsx-OuTLNxxd.js";
3
+ import { useLocation as h, NavLink as g } from "react-router";
4
4
  import '../../assets/MenuLink.css';const i = {
5
5
  "menu-link": "_menu-link_8gjhh_1",
6
6
  "menu-link--active": "_menu-link--active_8gjhh_8"
7
- }, f = (t) => {
8
- const o = k(), e = (n) => n.replace(/s$/, ""), s = (n) => {
9
- const l = o.pathname.split("/").filter(Boolean), a = n.split("/").filter(Boolean).slice(-1)[0], c = e(a);
10
- return l.some((r) => e(r) === c);
7
+ }, v = ({ overrideDefault: o, ...t }) => {
8
+ const s = h(), e = (n) => n.replace(/s$/, ""), l = (n) => {
9
+ const a = s.pathname.split("/").filter(Boolean), c = n.split("/").filter(Boolean).slice(-1)[0], r = e(c);
10
+ return a.some((m) => e(m) === r);
11
11
  };
12
- return /* @__PURE__ */ m(
13
- h,
12
+ return /* @__PURE__ */ u(
13
+ g,
14
14
  {
15
15
  ...t,
16
- className: ({ isActive: n }) => u(i["menu-link"], {
17
- [i["menu-link--active"]]: n || s(t.to)
16
+ className: ({ isActive: n }) => k(i["menu-link"], {
17
+ [i["menu-link--active"]]: o ? "" : n || l(t.to)
18
18
  })
19
19
  }
20
20
  );
21
21
  };
22
22
  export {
23
- f as MenuLink
23
+ v as MenuLink
24
24
  };
25
25
  //# sourceMappingURL=MenuLink.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MenuLink.js","sources":["../../../src/components/MenuLink/MenuLink.tsx"],"sourcesContent":["import classNames from 'clsx';\nimport { NavLink, useLocation } from 'react-router';\n\nimport type { NavLinkProps } from 'react-router';\n\nimport styles from './MenuLink.module.css';\n\n/** Represents a component for a [NavLink](https://reactrouter.com/en/main/components/nav-link) with styling. */\n// Omit style so it cannot be accidentally used\nexport const MenuLink = (props: Omit<NavLinkProps, 'style'>) => {\n const location = useLocation();\n\n // Helper function to remove trailing 's' from a string\n const singularize = (str: string) => str.replace(/s$/, '');\n\n // Check if 'to' path (singular version) matches any segment (singular version)\n const isActiveSingular = (to: string) => {\n const currentSegments = location.pathname.split('/').filter(Boolean);\n const latestToPath = to.split('/').filter(Boolean).slice(-1)[0]; // return only lates path removing any prepend path\n const singularizedToPath = singularize(latestToPath);\n\n return currentSegments.some((segment) => singularize(segment) === singularizedToPath);\n };\n\n return (\n <NavLink\n {...props}\n className={({ isActive }) =>\n classNames(styles['menu-link'], {\n [styles['menu-link--active']]: isActive || isActiveSingular(props.to as string),\n })\n }\n />\n );\n};\n"],"names":["MenuLink","props","location","useLocation","singularize","str","isActiveSingular","to","currentSegments","latestToPath","singularizedToPath","segment","jsx","NavLink","isActive","classNames","styles"],"mappings":";;;;;;GASaA,IAAW,CAACC,MAAuC;AAC9D,QAAMC,IAAWC,EAAY,GAGvBC,IAAc,CAACC,MAAgBA,EAAI,QAAQ,MAAM,EAAE,GAGnDC,IAAmB,CAACC,MAAe;AACvC,UAAMC,IAAkBN,EAAS,SAAS,MAAM,GAAG,EAAE,OAAO,OAAO,GAC7DO,IAAeF,EAAG,MAAM,GAAG,EAAE,OAAO,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,GACxDG,IAAqBN,EAAYK,CAAY;AAEnD,WAAOD,EAAgB,KAAK,CAACG,MAAYP,EAAYO,CAAO,MAAMD,CAAkB;AAAA,EACtF;AAGE,SAAA,gBAAAE;AAAA,IAACC;AAAA,IAAA;AAAA,MACE,GAAGZ;AAAA,MACJ,WAAW,CAAC,EAAE,UAAAa,EAAA,MACZC,EAAWC,EAAO,WAAW,GAAG;AAAA,QAC9B,CAACA,EAAO,mBAAmB,CAAC,GAAGF,KAAYR,EAAiBL,EAAM,EAAY;AAAA,MAC/E,CAAA;AAAA,IAAA;AAAA,EAEL;AAEJ;"}
1
+ {"version":3,"file":"MenuLink.js","sources":["../../../src/components/MenuLink/MenuLink.tsx"],"sourcesContent":["import classNames from 'clsx';\nimport { NavLink, useLocation } from 'react-router';\n\nimport type { NavLinkProps } from 'react-router';\n\nimport styles from './MenuLink.module.css';\n\n/** Represents a component for a [NavLink](https://reactrouter.com/en/main/components/nav-link) with styling. */\n// Omit style so it cannot be accidentally used\nexport interface MenuLinkProps extends Omit<NavLinkProps, 'style'> {\n overrideDefault?: boolean;\n}\n\nexport const MenuLink = ({ overrideDefault, ...props }: MenuLinkProps) => {\n const location = useLocation();\n\n // Helper function to remove trailing 's' from a string\n const singularize = (str: string) => str.replace(/s$/, '');\n\n // Check if 'to' path (singular version) matches any segment (singular version)\n const isActiveSingular = (to: string) => {\n const currentSegments = location.pathname.split('/').filter(Boolean);\n const latestToPath = to.split('/').filter(Boolean).slice(-1)[0]; // return only lates path removing any prepend path\n const singularizedToPath = singularize(latestToPath);\n\n return currentSegments.some((segment) => singularize(segment) === singularizedToPath);\n };\n\n return (\n <NavLink\n {...props}\n className={({ isActive }) =>\n classNames(styles['menu-link'], {\n [styles['menu-link--active']]: overrideDefault ? '' : isActive || isActiveSingular(props.to as string),\n })\n }\n />\n );\n};\n"],"names":["MenuLink","overrideDefault","props","location","useLocation","singularize","str","isActiveSingular","to","currentSegments","latestToPath","singularizedToPath","segment","jsx","NavLink","isActive","classNames","styles"],"mappings":";;;;;;GAaaA,IAAW,CAAC,EAAE,iBAAAC,GAAiB,GAAGC,QAA2B;AACxE,QAAMC,IAAWC,EAAY,GAGvBC,IAAc,CAACC,MAAgBA,EAAI,QAAQ,MAAM,EAAE,GAGnDC,IAAmB,CAACC,MAAe;AACvC,UAAMC,IAAkBN,EAAS,SAAS,MAAM,GAAG,EAAE,OAAO,OAAO,GAC7DO,IAAeF,EAAG,MAAM,GAAG,EAAE,OAAO,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,GACxDG,IAAqBN,EAAYK,CAAY;AAEnD,WAAOD,EAAgB,KAAK,CAACG,MAAYP,EAAYO,CAAO,MAAMD,CAAkB;AAAA,EACtF;AAGE,SAAA,gBAAAE;AAAA,IAACC;AAAA,IAAA;AAAA,MACE,GAAGZ;AAAA,MACJ,WAAW,CAAC,EAAE,UAAAa,EAAA,MACZC,EAAWC,EAAO,WAAW,GAAG;AAAA,QAC9B,CAACA,EAAO,mBAAmB,CAAC,GAAGhB,IAAkB,KAAKc,KAAYR,EAAiBL,EAAM,EAAY;AAAA,MACtG,CAAA;AAAA,IAAA;AAAA,EAEL;AAEJ;"}
@@ -1,5 +1,7 @@
1
1
  import { NavLinkProps } from 'react-router';
2
2
  import { Meta } from '@storybook/react';
3
+ import { MenuLinkProps } from './MenuLink';
3
4
  declare const _default: Meta<Omit<NavLinkProps, "style">>;
4
5
  export default _default;
5
- export declare const MenuLinkExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, Omit<NavLinkProps, "style">>;
6
+ export declare const MenuLinkExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, Omit<MenuLinkProps, "style">>;
7
+ export declare const MenuLinkOverrideDefaultBehavior: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, Omit<MenuLinkProps, "style">>;
@@ -1,23 +1,28 @@
1
- import { jsx as e } from "react/jsx-runtime";
1
+ import { jsx as n } from "react/jsx-runtime";
2
2
  import { MemoryRouter as o } from "react-router";
3
3
  import { MenuLink as t } from "./MenuLink.js";
4
- import '../../assets/MenuLink2.css';const r = `
4
+ import '../../assets/MenuLink2.css';const a = `
5
5
  // Can only be used wrapped in a 'react-router' <MemoryRouter />
6
6
  <MenuLink to={linkUrl}>{children}</MenuLink>
7
- `, s = {
7
+ `, c = {
8
8
  title: "Atoms/MenuLink",
9
9
  component: t,
10
10
  parameters: {
11
11
  inspectComponent: t,
12
- codeString: r
12
+ codeString: a
13
13
  }
14
14
  }, i = [
15
15
  { to: "/menu-link-1", title: "Menu Link One" },
16
16
  { to: "/menu-link-2", title: "Menu Link Two" },
17
17
  { to: "/menu-link-3", title: "Menu Link Three" }
18
- ], m = () => /* @__PURE__ */ e(o, { initialEntries: i.map((n) => n.to), initialIndex: 0, children: /* @__PURE__ */ e("nav", { className: "navbar", children: i.map((n) => /* @__PURE__ */ e(t, { to: n.to, children: n.title }, n.to)) }) }), c = m.bind({});
18
+ ], l = () => /* @__PURE__ */ n(o, { initialEntries: i.map((e) => e.to), initialIndex: 0, children: /* @__PURE__ */ n("nav", { className: "navbar", children: i.map((e) => /* @__PURE__ */ n(t, { to: e.to, children: e.title }, e.to)) }) }), k = l.bind({}), r = [
19
+ { to: "/menu-link-1", title: "Menu Link One (no default behavior)", overrideDefaultBehavior: !0 },
20
+ { to: "/menu-link-2", title: "Menu Link Two", overrideDefaultBehavior: !1 },
21
+ { to: "/menu-link-3", title: "Menu Link Three", overrideDefaultBehavior: !1 }
22
+ ], u = () => /* @__PURE__ */ n(o, { initialEntries: r.map((e) => e.to), initialIndex: 0, children: /* @__PURE__ */ n("nav", { className: "navbar", children: r.map((e) => /* @__PURE__ */ n(t, { to: e.to, overrideDefault: e.overrideDefaultBehavior, children: e.title }, e.to)) }) }), v = u.bind({});
19
23
  export {
20
- c as MenuLinkExample,
21
- s as default
24
+ k as MenuLinkExample,
25
+ v as MenuLinkOverrideDefaultBehavior,
26
+ c as default
22
27
  };
23
28
  //# sourceMappingURL=MenuLink.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MenuLink.stories.js","sources":["../../../src/components/MenuLink/MenuLink.stories.tsx"],"sourcesContent":["import { MemoryRouter, type NavLinkProps } from 'react-router';\n\nimport type { Meta, StoryFn } from '@storybook/react';\n\nimport { MenuLink } from './MenuLink';\n\nimport './MenuLink.stories.css';\n\nconst codeString = `\n// Can only be used wrapped in a 'react-router' <MemoryRouter />\n <MenuLink to={linkUrl}>{children}</MenuLink>\n`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/MenuLink',\n component: MenuLink,\n parameters: {\n inspectComponent: MenuLink,\n codeString: codeString,\n },\n} as Meta<Omit<NavLinkProps, 'style'>>;\n\nconst menuLinks = [\n { to: '/menu-link-1', title: 'Menu Link One' },\n { to: '/menu-link-2', title: 'Menu Link Two' },\n { to: '/menu-link-3', title: 'Menu Link Three' },\n];\n\nconst Template: StoryFn<Omit<NavLinkProps, 'style'>> = () => {\n return (\n <MemoryRouter initialEntries={menuLinks.map((link) => link.to)} initialIndex={0}>\n <nav className=\"navbar\">\n {menuLinks.map((link) => (\n <MenuLink key={link.to} to={link.to}>\n {link.title}\n </MenuLink>\n ))}\n </nav>\n </MemoryRouter>\n );\n};\n\nexport const MenuLinkExample = Template.bind({});\n"],"names":["codeString","MenuLink_stories","MenuLink","menuLinks","Template","jsx","MemoryRouter","link","MenuLinkExample"],"mappings":";;;AAQA,MAAMA,IAAa;AAAA;AAAA;AAAA,GAMJC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,YAAY;AAAA,IACV,kBAAkBA;AAAA,IAClB,YAAAF;AAAA,EAAA;AAEJ,GAEMG,IAAY;AAAA,EAChB,EAAE,IAAI,gBAAgB,OAAO,gBAAgB;AAAA,EAC7C,EAAE,IAAI,gBAAgB,OAAO,gBAAgB;AAAA,EAC7C,EAAE,IAAI,gBAAgB,OAAO,kBAAkB;AACjD,GAEMC,IAAiD,MAElD,gBAAAC,EAAAC,GAAA,EAAa,gBAAgBH,EAAU,IAAI,CAACI,MAASA,EAAK,EAAE,GAAG,cAAc,GAC5E,4BAAC,OAAI,EAAA,WAAU,UACZ,UAAAJ,EAAU,IAAI,CAACI,MACd,gBAAAF,EAACH,KAAuB,IAAIK,EAAK,IAC9B,UAAAA,EAAK,MADO,GAAAA,EAAK,EAEpB,CACD,EACH,CAAA,GACF,GAISC,IAAkBJ,EAAS,KAAK,CAAE,CAAA;"}
1
+ {"version":3,"file":"MenuLink.stories.js","sources":["../../../src/components/MenuLink/MenuLink.stories.tsx"],"sourcesContent":["import { MemoryRouter, type NavLinkProps } from 'react-router';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { MenuLinkProps } from './MenuLink';\n\nimport { MenuLink } from './MenuLink';\n\nimport './MenuLink.stories.css';\n\nconst codeString = `\n// Can only be used wrapped in a 'react-router' <MemoryRouter />\n <MenuLink to={linkUrl}>{children}</MenuLink>\n`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/MenuLink',\n component: MenuLink,\n parameters: {\n inspectComponent: MenuLink,\n codeString: codeString,\n },\n} as Meta<Omit<NavLinkProps, 'style'>>;\n\nconst menuLinks = [\n { to: '/menu-link-1', title: 'Menu Link One' },\n { to: '/menu-link-2', title: 'Menu Link Two' },\n { to: '/menu-link-3', title: 'Menu Link Three' },\n];\n\nconst Template: StoryFn<Omit<MenuLinkProps, 'style'>> = () => {\n return (\n <MemoryRouter initialEntries={menuLinks.map((link) => link.to)} initialIndex={0}>\n <nav className=\"navbar\">\n {menuLinks.map((link) => (\n <MenuLink key={link.to} to={link.to}>\n {link.title}\n </MenuLink>\n ))}\n </nav>\n </MemoryRouter>\n );\n};\n\nexport const MenuLinkExample = Template.bind({});\n\nconst menuLinks02 = [\n { to: '/menu-link-1', title: 'Menu Link One (no default behavior)', overrideDefaultBehavior: true },\n { to: '/menu-link-2', title: 'Menu Link Two', overrideDefaultBehavior: false },\n { to: '/menu-link-3', title: 'Menu Link Three', overrideDefaultBehavior: false },\n];\n\nconst TemplateMenuLinkOverrideDefaultBehavior: StoryFn<Omit<MenuLinkProps, 'style'>> = () => {\n return (\n <MemoryRouter initialEntries={menuLinks02.map((link) => link.to)} initialIndex={0}>\n <nav className=\"navbar\">\n {menuLinks02.map((link) => (\n <MenuLink key={link.to} to={link.to} overrideDefault={link.overrideDefaultBehavior}>\n {link.title}\n </MenuLink>\n ))}\n </nav>\n </MemoryRouter>\n );\n};\n\nexport const MenuLinkOverrideDefaultBehavior = TemplateMenuLinkOverrideDefaultBehavior.bind({});\n"],"names":["codeString","MenuLink_stories","MenuLink","menuLinks","Template","jsx","MemoryRouter","link","MenuLinkExample","menuLinks02","TemplateMenuLinkOverrideDefaultBehavior","MenuLinkOverrideDefaultBehavior"],"mappings":";;;AASA,MAAMA,IAAa;AAAA;AAAA;AAAA,GAMJC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,YAAY;AAAA,IACV,kBAAkBA;AAAA,IAClB,YAAAF;AAAA,EAAA;AAEJ,GAEMG,IAAY;AAAA,EAChB,EAAE,IAAI,gBAAgB,OAAO,gBAAgB;AAAA,EAC7C,EAAE,IAAI,gBAAgB,OAAO,gBAAgB;AAAA,EAC7C,EAAE,IAAI,gBAAgB,OAAO,kBAAkB;AACjD,GAEMC,IAAkD,MAEnD,gBAAAC,EAAAC,GAAA,EAAa,gBAAgBH,EAAU,IAAI,CAACI,MAASA,EAAK,EAAE,GAAG,cAAc,GAC5E,4BAAC,OAAI,EAAA,WAAU,UACZ,UAAAJ,EAAU,IAAI,CAACI,MACd,gBAAAF,EAACH,KAAuB,IAAIK,EAAK,IAC9B,UAAAA,EAAK,MADO,GAAAA,EAAK,EAEpB,CACD,EACH,CAAA,GACF,GAISC,IAAkBJ,EAAS,KAAK,CAAE,CAAA,GAEzCK,IAAc;AAAA,EAClB,EAAE,IAAI,gBAAgB,OAAO,uCAAuC,yBAAyB,GAAK;AAAA,EAClG,EAAE,IAAI,gBAAgB,OAAO,iBAAiB,yBAAyB,GAAM;AAAA,EAC7E,EAAE,IAAI,gBAAgB,OAAO,mBAAmB,yBAAyB,GAAM;AACjF,GAEMC,IAAiF,MAElF,gBAAAL,EAAAC,GAAA,EAAa,gBAAgBG,EAAY,IAAI,CAACF,MAASA,EAAK,EAAE,GAAG,cAAc,GAC9E,UAAC,gBAAAF,EAAA,OAAA,EAAI,WAAU,UACZ,UAAAI,EAAY,IAAI,CAACF,MAChB,gBAAAF,EAACH,GAAuB,EAAA,IAAIK,EAAK,IAAI,iBAAiBA,EAAK,yBACxD,YAAK,MADO,GAAAA,EAAK,EAEpB,CACD,EACH,CAAA,GACF,GAISI,IAAkCD,EAAwC,KAAK,CAAE,CAAA;"}
@@ -1,6 +1,6 @@
1
1
  import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
2
  import { ModalProvider as l } from "@react-aria/overlays";
3
- import { f as i } from "../../index-Sh2oo6_C.js";
3
+ import { f as i } from "../../index-DkNZhwJb.js";
4
4
  import { ModalDialog as t } from "./ModalDialog.js";
5
5
  import { Button as n } from "../Buttons/Button.js";
6
6
  import "../Buttons/LinkButton.js";
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../clsx-OuTLNxxd.js";
3
3
  import "../../MultiSelectItem-D9PxdX43.js";
4
- import { M as p } from "../../TablePlugin-CPEwD-wi.js";
4
+ import { M as p } from "../../TablePlugin-DkL40qIf.js";
5
5
  export {
6
6
  p as MultiSelect
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as S, jsx as r } from "react/jsx-runtime";
2
- import { f as d } from "../../index-Sh2oo6_C.js";
2
+ import { f as d } from "../../index-DkNZhwJb.js";
3
3
  import { useState as p } from "react";
4
- import { M as e } from "../../TablePlugin-CPEwD-wi.js";
4
+ import { M as e } from "../../TablePlugin-DkL40qIf.js";
5
5
  import { Container as M } from "../../storyComponents/Container/Container.js";
6
6
  const C = `
7
7
  // MultiSelectHeader can be added optionally
@@ -15,7 +15,7 @@ import "../../IconButton/IconButton.js";
15
15
  import "../../Input/Input.js";
16
16
  import "../../InputField/InputField.js";
17
17
  import "react-router";
18
- import { a as y } from "../../../TablePlugin-CPEwD-wi.js";
18
+ import { a as y } from "../../../TablePlugin-DkL40qIf.js";
19
19
  import "../../RteEditor/Providers/LanguageProvider.js";
20
20
  import "../../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
21
21
  import "../../RteEditor/hooks/components/Flyout.js";
@@ -23,7 +23,7 @@ import "../../../index-B3c5pcHk.js";
23
23
  import "../../SelectListbox/SelectListbox.js";
24
24
  import "../../SelectListbox/SelectProvider.js";
25
25
  import "../../Sortable/components/SortableItem.js";
26
- import "../../../SortableProvider-RaH_ZXB3.js";
26
+ import "../../../SortableProvider-Ck_XnBVq.js";
27
27
  export {
28
28
  y as MultiSelectHeader
29
29
  };
@@ -1,4 +1,4 @@
1
- import { M as l } from "../../TablePlugin-CPEwD-wi.js";
1
+ import { M as l } from "../../TablePlugin-DkL40qIf.js";
2
2
  export {
3
3
  l as MultiSelect
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { f as a } from "../../index-Sh2oo6_C.js";
2
+ import { f as a } from "../../index-DkNZhwJb.js";
3
3
  import { OverlayCloseButton as o } from "./OverlayCloseButton.js";
4
4
  import { Container as l } from "../../storyComponents/Container/Container.js";
5
5
  const r = "<OverlayCloseButton aria-label={aria-label} onClick={onClickFunction} />", c = {
@@ -15,7 +15,7 @@ import "../IconButton/IconButton.js";
15
15
  import "../Input/Input.js";
16
16
  import "../InputField/InputField.js";
17
17
  import "react-router";
18
- import "../../TablePlugin-CPEwD-wi.js";
18
+ import "../../TablePlugin-DkL40qIf.js";
19
19
  import "../RteEditor/Providers/LanguageProvider.js";
20
20
  import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
21
21
  import "../RteEditor/hooks/components/Flyout.js";
@@ -23,7 +23,7 @@ import "../../index-B3c5pcHk.js";
23
23
  import "../SelectListbox/SelectListbox.js";
24
24
  import "../SelectListbox/SelectProvider.js";
25
25
  import "../Sortable/components/SortableItem.js";
26
- import "../../SortableProvider-RaH_ZXB3.js";
26
+ import "../../SortableProvider-Ck_XnBVq.js";
27
27
  import '../../assets/OverlayStepBar.css';const r = {
28
28
  "overlay-step-bar__container": "_overlay-step-bar__container_u2k5r_1",
29
29
  "overlay-step-bar__separator": "_overlay-step-bar__separator_u2k5r_10",
@@ -17,7 +17,7 @@ import "../Input/Input.js";
17
17
  import "../InputField/InputField.js";
18
18
  import { Label as D } from "../Label/Label.js";
19
19
  import "react-router";
20
- import "../../TablePlugin-CPEwD-wi.js";
20
+ import "../../TablePlugin-DkL40qIf.js";
21
21
  import "../RteEditor/Providers/LanguageProvider.js";
22
22
  import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
23
23
  import "../RteEditor/hooks/components/Flyout.js";
@@ -25,7 +25,7 @@ import "../../index-B3c5pcHk.js";
25
25
  import "../SelectListbox/SelectListbox.js";
26
26
  import "../SelectListbox/SelectProvider.js";
27
27
  import "../Sortable/components/SortableItem.js";
28
- import "../../SortableProvider-RaH_ZXB3.js";
28
+ import "../../SortableProvider-Ck_XnBVq.js";
29
29
  import '../../assets/PeriodSelector.css';const l = {
30
30
  "period-selector__container": "_period-selector__container_10t7p_1",
31
31
  "period-selector__container--label-left": "_period-selector__container--label-left_10t7p_6",
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { f as t } from "../../index-Sh2oo6_C.js";
2
+ import { f as t } from "../../index-DkNZhwJb.js";
3
3
  import { PeriodSelector as e } from "./PeriodSelector.js";
4
4
  const i = "<PeriodSelector maxPeriods={} defaultValues={} label={} labelPosition={} required={} onChange={} />", m = {
5
5
  title: "Organisms/PeriodSelector",
@@ -1,5 +1,5 @@
1
- import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
- import { f as a } from "../../index-Sh2oo6_C.js";
1
+ import { jsx as r, jsxs as e } from "react/jsx-runtime";
2
+ import { f as a } from "../../index-DkNZhwJb.js";
3
3
  import { ProgrammeCard as o } from "./ProgrammeCard.js";
4
4
  import { Container as n } from "../../storyComponents/Container/Container.js";
5
5
  import "react";
@@ -17,7 +17,7 @@ import "../IconButton/IconButton.js";
17
17
  import "../Input/Input.js";
18
18
  import "../InputField/InputField.js";
19
19
  import "react-router";
20
- import "../../TablePlugin-CPEwD-wi.js";
20
+ import "../../TablePlugin-DkL40qIf.js";
21
21
  import { Repeater as i } from "../Repeater/Repeater.js";
22
22
  import "../RteEditor/Providers/LanguageProvider.js";
23
23
  import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
@@ -26,7 +26,7 @@ import "../../index-B3c5pcHk.js";
26
26
  import "../SelectListbox/SelectListbox.js";
27
27
  import "../SelectListbox/SelectProvider.js";
28
28
  import "../Sortable/components/SortableItem.js";
29
- import "../../SortableProvider-RaH_ZXB3.js";
29
+ import "../../SortableProvider-Ck_XnBVq.js";
30
30
  const p = "<ProgrammeCard key={key} header={header} details={details} onClick={onClickFunction} />", K = {
31
31
  title: "Atoms/ProgrammeCard",
32
32
  component: o,
@@ -1,4 +1,4 @@
1
- import { jsxs as i, Fragment as n, jsx as e } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as i, Fragment as n } from "react/jsx-runtime";
2
2
  import { Repeater as t } from "./Repeater.js";
3
3
  import { Container as o } from "../../storyComponents/Container/Container.js";
4
4
  const l = "<Repeater flexDirection={flexDirection} gap={gap}>{children}</Repeater>", d = {
@@ -14,7 +14,7 @@ import "../../IconButton/IconButton.js";
14
14
  import "../../Input/Input.js";
15
15
  import "../../InputField/InputField.js";
16
16
  import "react-router";
17
- import "../../../TablePlugin-CPEwD-wi.js";
17
+ import "../../../TablePlugin-DkL40qIf.js";
18
18
  import "../Providers/LanguageProvider.js";
19
19
  import "../Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
20
20
  import "../hooks/components/Flyout.js";
@@ -22,7 +22,7 @@ import "../../../index-B3c5pcHk.js";
22
22
  import "../../SelectListbox/SelectListbox.js";
23
23
  import "../../SelectListbox/SelectProvider.js";
24
24
  import "../../Sortable/components/SortableItem.js";
25
- import "../../../SortableProvider-RaH_ZXB3.js";
25
+ import "../../../SortableProvider-Ck_XnBVq.js";
26
26
  import '../../../assets/EditorHeader.css';const t = {
27
27
  "editor-header__container": "_editor-header__container_nsi6h_1",
28
28
  "editor-header__info": "_editor-header__info_nsi6h_10"
@@ -1,7 +1,7 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { u } from "../../../../LexicalComposerContext.prod-DxxjdrXB.js";
2
+ import { u } from "../../../../LexicalComposerContext.prod-BCXERl09.js";
3
3
  import { c as f } from "../../../../clsx-OuTLNxxd.js";
4
- import { H as _, a as p, l as h } from "../../../../Lexical.prod-CQl7J8uU.js";
4
+ import { H as _, a as p, z as h } from "../../../../Lexical.prod-CZAqLAjm.js";
5
5
  import { useState as l, useEffect as k } from "react";
6
6
  import { Icon as I } from "../../../Icon/Icon.js";
7
7
  import { s as a } from "../../../../RteEditor.module-oFMKEW6f.js";
@@ -1,7 +1,7 @@
1
1
  import { jsxs as f, jsx as a } from "react/jsx-runtime";
2
2
  import { c as i } from "../../../../clsx-OuTLNxxd.js";
3
- import { u as h } from "../../../../LexicalComposerContext.prod-DxxjdrXB.js";
4
- import { a9 as _, aa as y, ab as C, ac as k } from "../../../../Lexical.prod-CQl7J8uU.js";
3
+ import { u as h } from "../../../../LexicalComposerContext.prod-BCXERl09.js";
4
+ import { a9 as _, aa as y, ab as C, ac as k } from "../../../../Lexical.prod-CZAqLAjm.js";
5
5
  import { useState as s, useEffect as m } from "react";
6
6
  import { Icon as n } from "../../../Icon/Icon.js";
7
7
  import "../../../Buttons/Button.js";
@@ -17,7 +17,7 @@ import "../../../IconButton/IconButton.js";
17
17
  import "../../../Input/Input.js";
18
18
  import "../../../InputField/InputField.js";
19
19
  import "react-router";
20
- import "../../../../TablePlugin-CPEwD-wi.js";
20
+ import "../../../../TablePlugin-DkL40qIf.js";
21
21
  import { s as r } from "../../../../RteEditor.module-oFMKEW6f.js";
22
22
  import { useTranslation as g } from "../../hooks/useTranslation.js";
23
23
  import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
@@ -27,7 +27,7 @@ import "../../../../index-B3c5pcHk.js";
27
27
  import "../../../SelectListbox/SelectListbox.js";
28
28
  import "../../../SelectListbox/SelectProvider.js";
29
29
  import "../../../Sortable/components/SortableItem.js";
30
- import "../../../../SortableProvider-RaH_ZXB3.js";
30
+ import "../../../../SortableProvider-Ck_XnBVq.js";
31
31
  const Z = () => {
32
32
  const o = g(), [t] = h(), [d, p] = s(!1), [l, u] = s(!1), c = () => {
33
33
  t.dispatchCommand(C, void 0);
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { A as D } from "../../../../../TablePlugin-CPEwD-wi.js";
4
- import "../../../../../helpers-C_Mib4v3.js";
3
+ import { A as D } from "../../../../../TablePlugin-DkL40qIf.js";
4
+ import "../../../../../helpers-DYmWlhgC.js";
5
5
  import "../../../../Icon/Icon.js";
6
6
  import "../../../../Buttons/Button.js";
7
7
  import "../../../../Buttons/LinkButton.js";
@@ -27,7 +27,7 @@ import "../../../../../index-B3c5pcHk.js";
27
27
  import "../../../../SelectListbox/SelectListbox.js";
28
28
  import "../../../../SelectListbox/SelectProvider.js";
29
29
  import "../../../../Sortable/components/SortableItem.js";
30
- import "../../../../../SortableProvider-RaH_ZXB3.js";
30
+ import "../../../../../SortableProvider-Ck_XnBVq.js";
31
31
  export {
32
32
  D as AddLinkForm
33
33
  };
@@ -1,6 +1,6 @@
1
1
  import { jsxs as k, Fragment as v, jsx as n } from "react/jsx-runtime";
2
2
  import { forwardRef as K, useState as b, useRef as N, useImperativeHandle as T, useLayoutEffect as g } from "react";
3
- import { e as E } from "../../../../../helpers-C_Mib4v3.js";
3
+ import { e as E } from "../../../../../helpers-DYmWlhgC.js";
4
4
  import { Icon as m } from "../../../../Icon/Icon.js";
5
5
  import { useTranslation as R } from "../../../hooks/useTranslation.js";
6
6
  import { Button as y } from "../../../../Buttons/Button.js";
@@ -1,11 +1,11 @@
1
1
  import { jsx as k, jsxs as Y } from "react/jsx-runtime";
2
- import { u as $ } from "../../../../LexicalComposerContext.prod-DxxjdrXB.js";
2
+ import { u as $ } from "../../../../LexicalComposerContext.prod-BCXERl09.js";
3
3
  import { c as q } from "../../../../clsx-OuTLNxxd.js";
4
- import { m as z, x as G, N as J } from "../../../../LexicalLink.prod-D8-zZW0o.js";
4
+ import { m as O, N as G, x as J } from "../../../../LexicalLink.prod-kqeQGYSo.js";
5
5
  import { useRef as a, useState as Q, useEffect as m } from "react";
6
- import { t as X, H as f, a8 as Z, a7 as tt, a as w, f as et, M as ot, b as rt } from "../../../../Lexical.prod-CQl7J8uU.js";
7
- import { A as nt } from "../../../../TablePlugin-CPEwD-wi.js";
8
- import { e as it } from "../../../../helpers-C_Mib4v3.js";
6
+ import { I as X, H as f, a8 as Z, a7 as tt, a as w, f as et, M as ot, x as rt } from "../../../../Lexical.prod-CZAqLAjm.js";
7
+ import { A as nt } from "../../../../TablePlugin-DkL40qIf.js";
8
+ import { e as it } from "../../../../helpers-DYmWlhgC.js";
9
9
  import { LinkContextMenu as st } from "./LinkContextMenu/LinkContextMenu.js";
10
10
  import { useFlyout as ct } from "../../hooks/useFlyout.js";
11
11
  import { Icon as lt } from "../../../Icon/Icon.js";
@@ -30,19 +30,19 @@ import "../../../../index-B3c5pcHk.js";
30
30
  import "../../../SelectListbox/SelectListbox.js";
31
31
  import "../../../SelectListbox/SelectProvider.js";
32
32
  import "../../../Sortable/components/SortableItem.js";
33
- import "../../../../SortableProvider-RaH_ZXB3.js";
34
- const mt = 200, M = (p) => {
33
+ import "../../../../SortableProvider-Ck_XnBVq.js";
34
+ const mt = 200, I = (p) => {
35
35
  let n = p;
36
36
  for (; n; ) {
37
- if (z(n))
37
+ if (O(n))
38
38
  return n;
39
39
  n = n.getParent();
40
40
  }
41
41
  return null;
42
- }, O = (p) => {
42
+ }, M = (p) => {
43
43
  let n = p;
44
44
  for (; n; ) {
45
- if (z(n))
45
+ if (O(n))
46
46
  return {
47
47
  active: !0,
48
48
  url: n.getURL(),
@@ -52,7 +52,7 @@ const mt = 200, M = (p) => {
52
52
  }
53
53
  return !1;
54
54
  }, Wt = ({ parentScrollPosition: p }) => {
55
- const n = ut(), [c] = $(), { flyout: I, showFlyout: E, hideFlyout: C, isVisible: u } = ct(), d = a(void 0), N = a(!1), y = a(""), g = a(""), [L, U] = Q({ active: !1, url: "", linktext: "" }), P = a(u), x = a(null), S = a(null), T = a(void 0), b = () => {
55
+ const n = ut(), [c] = $(), { flyout: z, showFlyout: E, hideFlyout: C, isVisible: u } = ct(), d = a(void 0), N = a(!1), y = a(""), g = a(""), [L, U] = Q({ active: !1, url: "", linktext: "" }), P = a(u), x = a(null), S = a(null), T = a(void 0), b = () => {
56
56
  c.update(() => {
57
57
  const e = f();
58
58
  x.current = e;
@@ -91,7 +91,7 @@ const mt = 200, M = (p) => {
91
91
  c.update(() => {
92
92
  const o = f();
93
93
  if (w(o)) {
94
- const i = o.anchor.getNode(), s = M(i);
94
+ const i = o.anchor.getNode(), s = I(i);
95
95
  if (t && t !== "") {
96
96
  if (s) {
97
97
  const l = rt(t);
@@ -102,12 +102,12 @@ const mt = 200, M = (p) => {
102
102
  o.insertText(t), l.offset -= t.length, _.offset = l.offset + t.length;
103
103
  }
104
104
  }
105
- G(it(e), { target: "_blank" });
105
+ J(it(e), { target: "_blank" });
106
106
  }
107
107
  v();
108
108
  });
109
109
  }, V = () => {
110
- c.dispatchCommand(J, null), D();
110
+ c.dispatchCommand(G, null), D();
111
111
  }, j = {
112
112
  children: /* @__PURE__ */ k(
113
113
  nt,
@@ -125,7 +125,7 @@ const mt = 200, M = (p) => {
125
125
  }, [d, u]), m(() => {
126
126
  const e = (r) => {
127
127
  if (w(r) && r.isCollapsed()) {
128
- const i = O(r.anchor.getNode());
128
+ const i = M(r.anchor.getNode());
129
129
  if (i) {
130
130
  const s = c.getElementByKey(r.anchor.getNode().getKey()), l = s ? { top: s.getBoundingClientRect().bottom, left: s.getBoundingClientRect().left } : { top: 0, left: 0 };
131
131
  return A(i.url, l), !0;
@@ -158,7 +158,7 @@ const mt = 200, M = (p) => {
158
158
  const r = f();
159
159
  if (b(), !w(r))
160
160
  return !1;
161
- const i = O(r.anchor.getNode()), s = (_ = "", W = "") => {
161
+ const i = M(r.anchor.getNode()), s = (_ = "", W = "") => {
162
162
  F(), setTimeout(() => {
163
163
  var K;
164
164
  return (K = d.current) == null ? void 0 : K.setDefaults(_, W);
@@ -177,7 +177,7 @@ const mt = 200, M = (p) => {
177
177
  o.read(() => {
178
178
  const r = f();
179
179
  if (b(), w(r)) {
180
- const i = r.anchor.getNode(), s = M(i);
180
+ const i = r.anchor.getNode(), s = I(i);
181
181
  if (s)
182
182
  return {
183
183
  active: !0,
@@ -230,11 +230,11 @@ const mt = 200, M = (p) => {
230
230
  children: /* @__PURE__ */ k(lt, { name: "Link", size: 20 })
231
231
  }
232
232
  ),
233
- I
233
+ z
234
234
  ] }) });
235
235
  };
236
236
  export {
237
237
  Wt as LinkPlugin,
238
- O as getLinkNodeTag
238
+ M as getLinkNodeTag
239
239
  };
240
240
  //# sourceMappingURL=LinkPlugin.js.map
@@ -1,4 +1,4 @@
1
- import { M as e, e as r, a as s, v as l } from "../../../../helpers-C_Mib4v3.js";
1
+ import { M as e, e as r, a as s, v as l } from "../../../../helpers-DYmWlhgC.js";
2
2
  export {
3
3
  e as MATCHERS,
4
4
  r as ensureHttps,
@@ -1,10 +1,10 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
- import { u as S } from "../../../../LexicalComposerContext.prod-DxxjdrXB.js";
3
- import { Y as N, Q as P, G as k, K as y, H as f, q as H } from "../../../../LexicalList.prod-B4_DTbPB.js";
4
- import { _ as O } from "../../../../LexicalSelection.prod-BU3GAQB4.js";
2
+ import { u as S } from "../../../../LexicalComposerContext.prod-BCXERl09.js";
3
+ import { Y as N, Q as P, G as k, K as y, H as f, q as H } from "../../../../LexicalList.prod-BEKqHUO2.js";
4
+ import { _ as O } from "../../../../LexicalSelection.prod-B1DTqn9H.js";
5
5
  import { useState as p, useEffect as K } from "react";
6
6
  import { c as q } from "../../../../clsx-OuTLNxxd.js";
7
- import { a7 as x, f as U, N as $, H as b, a as h, q as w, V as B } from "../../../../Lexical.prod-CQl7J8uU.js";
7
+ import { a7 as x, f as U, N as $, H as b, a as h, q as w, V as B } from "../../../../Lexical.prod-CZAqLAjm.js";
8
8
  import { Icon as E } from "../../../Icon/Icon.js";
9
9
  import { s as u } from "../../../../RteEditor.module-oFMKEW6f.js";
10
10
  import { useTranslation as V } from "../../hooks/useTranslation.js";
@@ -1,8 +1,8 @@
1
- import { u as m } from "../../../../LexicalComposerContext.prod-DxxjdrXB.js";
1
+ import { u as m } from "../../../../LexicalComposerContext.prod-BCXERl09.js";
2
2
  import { useEffect as c } from "react";
3
- import { a1 as f, X as u, H as p } from "../../../../Lexical.prod-CQl7J8uU.js";
4
- import { c as i } from "../../../../LexicalUtils.prod-D9KKqgU7.js";
5
- import { N as d } from "../../../../LexicalClipboard.prod-C48GDxiy.js";
3
+ import { a1 as f, X as u, H as p } from "../../../../Lexical.prod-CZAqLAjm.js";
4
+ import { c as i } from "../../../../LexicalUtils.prod-C-NXnTzK.js";
5
+ import { N as d } from "../../../../LexicalClipboard.prod-B0GrUtzr.js";
6
6
  import { d as D } from "../../../../index-B3c5pcHk.js";
7
7
  const g = () => {
8
8
  const [a] = m(), l = (t) => {
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { b as B } from "../../../../TablePlugin-CPEwD-wi.js";
3
+ import { b as B } from "../../../../TablePlugin-DkL40qIf.js";
4
4
  import "../../../Buttons/Button.js";
5
5
  import "../../../Buttons/LinkButton.js";
6
6
  import "@react-aria/button";
@@ -25,7 +25,7 @@ import "../../../../index-B3c5pcHk.js";
25
25
  import "../../../SelectListbox/SelectListbox.js";
26
26
  import "../../../SelectListbox/SelectProvider.js";
27
27
  import "../../../Sortable/components/SortableItem.js";
28
- import "../../../../SortableProvider-RaH_ZXB3.js";
28
+ import "../../../../SortableProvider-Ck_XnBVq.js";
29
29
  export {
30
30
  B as AddTableForm
31
31
  };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as y, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as _, useRef as b, useEffect as R } from "react";
3
3
  import { c as w } from "../../../../../clsx-OuTLNxxd.js";
4
- import { u as P } from "../../../../../LexicalComposerContext.prod-DxxjdrXB.js";
4
+ import { u as P } from "../../../../../LexicalComposerContext.prod-BCXERl09.js";
5
5
  import { Icon as $ } from "../../../../Icon/Icon.js";
6
6
  import { useTranslation as H } from "../../../hooks/useTranslation.js";
7
7
  import '../../../../../assets/TableCellContextMenu.css';const n = {
@@ -1,10 +1,10 @@
1
1
  import "react/jsx-runtime";
2
- import "../../../../LexicalComposerContext.prod-DxxjdrXB.js";
2
+ import "../../../../LexicalComposerContext.prod-BCXERl09.js";
3
3
  import "../../../../clsx-OuTLNxxd.js";
4
- import "../../../../LexicalTable.prod-BvJxbarH.js";
5
- import "../../../../Lexical.prod-CQl7J8uU.js";
4
+ import "../../../../LexicalTable.prod-DtAMjSWg.js";
5
+ import "../../../../Lexical.prod-CZAqLAjm.js";
6
6
  import "react";
7
- import { T as F } from "../../../../TablePlugin-CPEwD-wi.js";
7
+ import { T as F } from "../../../../TablePlugin-DkL40qIf.js";
8
8
  import "./helpers.js";
9
9
  import "../../hooks/useFlyout.js";
10
10
  import "../../../Icon/Icon.js";
@@ -29,7 +29,7 @@ import "../../../../index-B3c5pcHk.js";
29
29
  import "../../../SelectListbox/SelectListbox.js";
30
30
  import "../../../SelectListbox/SelectProvider.js";
31
31
  import "../../../Sortable/components/SortableItem.js";
32
- import "../../../../SortableProvider-RaH_ZXB3.js";
32
+ import "../../../../SortableProvider-Ck_XnBVq.js";
33
33
  export {
34
34
  F as TablePlugin
35
35
  };