@ukpc-lib/react 0.10.2 → 0.10.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ukpc-lib/react",
3
3
  "private": false,
4
- "version": "0.10.2",
4
+ "version": "0.10.3",
5
5
  "type": "module",
6
6
  "main": "./dist/",
7
7
  "module": "./dist/",
@@ -1,5 +1,5 @@
1
1
  import "../index-da73806d.js";
2
- import { F as o, u as r } from "../index-283fec82.js";
2
+ import { F as o, u as r } from "../index-1fcfd93b.js";
3
3
  export {
4
4
  o as FavoriteMenu,
5
5
  r as updateFavoriteItems
@@ -1,5 +1,5 @@
1
1
  import "../index-da73806d.js";
2
- import { G as e } from "../index-283fec82.js";
2
+ import { G as e } from "../index-1fcfd93b.js";
3
3
  export {
4
4
  e as GlobalMenu
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import "../index-da73806d.js";
2
- import { L as p, T as e } from "../index-283fec82.js";
2
+ import { L as p, T as e } from "../index-1fcfd93b.js";
3
3
  export {
4
4
  p as LanguageDropdown,
5
5
  e as TopBar
@@ -1,5 +1,5 @@
1
1
  import "../index-da73806d.js";
2
- import { H as o, g as r } from "../index-283fec82.js";
2
+ import { H as o, g as r } from "../index-1fcfd93b.js";
3
3
  export {
4
4
  o as HasPermission,
5
5
  r as getUseHasPermission
@@ -16047,22 +16047,26 @@ function ute({
16047
16047
  y && o(E);
16048
16048
  }, T = h ? { maxLength: h } : {};
16049
16049
  return O.useEffect(() => {
16050
- const E = document.querySelector("global-topbar"), M = (k) => {
16051
- const I = E.shadowRoot.getElementById("GlobalSearchInput");
16052
- if (E.shadowRoot.activeElement === I) {
16053
- const B = document.getElementById("AddTagButton");
16054
- ["a", "e", "t"].includes(k.key.toLowerCase()) && (B.removeEventListener("click", (z) => {
16055
- z.preventDefault(), z.stopPropagation(), console.log("Shadow DOM keydown:", z.key);
16056
- }, !0), B.addEventListener(
16057
- "click",
16058
- (z) => {
16059
- z.preventDefault(), z.stopPropagation(), console.log("Shadow DOM keydown:", z.key);
16060
- },
16061
- !0
16062
- ), I.focus());
16063
- }
16050
+ document.querySelector("global-topbar");
16051
+ const E = (M) => {
16052
+ const k = document.getElementById("AddTagButton"), I = document.getElementsByClassName("btn-edit");
16053
+ ["a", "e", "t"].includes(M.key.toLowerCase()) && (I[0].addEventListener(
16054
+ "click",
16055
+ (B) => {
16056
+ const b = document.querySelector("global-topbar"), z = b.shadowRoot.getElementById("GlobalSearchInput");
16057
+ b.shadowRoot.activeElement === z ? (B.preventDefault(), B.stopPropagation(), console.log("Shadow DOM keydown:", B.key)) : B.click();
16058
+ },
16059
+ !0
16060
+ ), k != null && k.addEventListener(
16061
+ "click",
16062
+ (B) => {
16063
+ const b = document.querySelector("global-topbar"), z = b.shadowRoot.getElementById("GlobalSearchInput");
16064
+ b.shadowRoot.activeElement === z ? (B.preventDefault(), B.stopPropagation(), console.log("Shadow DOM keydown:", B.key)) : B.click();
16065
+ },
16066
+ !0
16067
+ ));
16064
16068
  };
16065
- return document.addEventListener("keydown", M, !0), () => document.removeEventListener("keydown", M, !0);
16069
+ return document.addEventListener("keydown", E, !0), () => document.removeEventListener("keydown", E, !0);
16066
16070
  }, []), /* @__PURE__ */ L.jsxs("div", { className: "StyledSearchInput", children: [
16067
16071
  /* @__PURE__ */ L.jsx(w1, { showIcon: u }),
16068
16072
  /* @__PURE__ */ L.jsx(