Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix(frontend): re-apply naive-ui InputOtp null check patch for v2.44.1 [BYT-9072] (#19684)
boojack2a14ec83f2a6
diff --git a/frontend/package.json b/frontend/package.jsonindex 7b26632858..62fdad9d66 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -151,5 +151,10 @@},"browserslist": ["> 0.08%, not dead"- ]+ ],+ "pnpm": {+ "patchedDependencies": {+ "[email protected]": "patches/[email protected]"+ }+ }}diff --git a/frontend/patches/[email protected] b/frontend/patches/[email protected]new file mode 100644index 0000000000..f808859bc9--- /dev/null+++ b/frontend/patches/[email protected]@@ -0,0 +1,44 @@+diff --git a/es/input-otp/src/InputOtp.mjs b/es/input-otp/src/InputOtp.mjs+index aaaaaaa..bbbbbbb 100644+--- a/es/input-otp/src/InputOtp.mjs++++ b/es/input-otp/src/InputOtp.mjs+@@ -92,7 +92,7 @@+ const inputTypeRef = computed(() => props.mask ? 'password' : 'text');+ const handleFocus = (e, index) => {+ // If it's focused from other input element inside the component, returns+- if (inputRefList === null || inputRefList === void 0 ? void 0 : inputRefList.value.some(inputInst => inputInst.inputElRef === e.relatedTarget)) {++ if (inputRefList === null || inputRefList === void 0 ? void 0 : inputRefList.value.some(inputInst => (inputInst === null || inputInst === void 0 ? void 0 : inputInst.inputElRef) === e.relatedTarget)) {+ return;+ }+ const {+@@ -108,7 +108,7 @@+ };+ const handleBlur = (e, index) => {+ // If it's blured to other input element inside the component, returns+- if (inputRefList === null || inputRefList === void 0 ? void 0 : inputRefList.value.some(inputInst => inputInst.inputElRef === e.relatedTarget)) {++ if (inputRefList === null || inputRefList === void 0 ? void 0 : inputRefList.value.some(inputInst => (inputInst === null || inputInst === void 0 ? void 0 : inputInst.inputElRef) === e.relatedTarget)) {+ return;+ }+ const {+diff --git a/lib/input-otp/src/InputOtp.js b/lib/input-otp/src/InputOtp.js+index aaaaaaa..bbbbbbb 100644+--- a/lib/input-otp/src/InputOtp.js++++ b/lib/input-otp/src/InputOtp.js+@@ -64,7 +64,7 @@+ const inputTypeRef = (0, vue_1.computed)(() => props.mask ? 'password' : 'text');+ const handleFocus = (e, index) => {+ // If it's focused from other input element inside the component, returns+- if (inputRefList === null || inputRefList === void 0 ? void 0 : inputRefList.value.some(inputInst => inputInst.inputElRef === e.relatedTarget)) {++ if (inputRefList === null || inputRefList === void 0 ? void 0 : inputRefList.value.some(inputInst => (inputInst === null || inputInst === void 0 ? void 0 : inputInst.inputElRef) === e.relatedTarget)) {+ return;+ }+ const { onFocus } = props;+@@ -76,7 +76,7 @@+ };+ const handleBlur = (e, index) => {+ // If it's blured to other input element inside the component, returns+- if (inputRefList === null || inputRefList === void 0 ? void 0 : inputRefList.value.some(inputInst => inputInst.inputElRef === e.relatedTarget)) {++ if (inputRefList === null || inputRefList === void 0 ? void 0 : inputRefList.value.some(inputInst => (inputInst === null || inputInst === void 0 ? void 0 : inputInst.inputElRef) === e.relatedTarget)) {+ return;+ }+ const { onBlur } = props;diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yamlindex 9fc221fcca..0b5495da94 100644--- a/frontend/pnpm-lock.yaml+++ b/frontend/pnpm-lock.yaml@@ -6,6 +6,11 @@ settings:pnpmfileChecksum: sha256-D+Oiltjq0mI5+T73et/+VdZYEDWjB/193i1+mwbpq0Y=+patchedDependencies:+ hash: 7792d0f673a1ab04f4c1ec54d7186880f3a3136b2b0a8335fbd5b62cc43eee31+ path: patches/[email protected]+importers:.:@@ -120,7 +125,7 @@ importers:version: 10.7.0naive-ui:specifier: 2.44.1- version: 2.44.1([email protected]([email protected]))+ version: 2.44.1(patch_hash=7792d0f673a1ab04f4c1ec54d7186880f3a3136b2b0a8335fbd5b62cc43eee31)([email protected]([email protected]))normalize-wheel:specifier: ^1.0.1version: 1.0.1@@ -8777,7 +8782,7 @@ snapshots:+ [email protected](patch_hash=7792d0f673a1ab04f4c1ec54d7186880f3a3136b2b0a8335fbd5b62cc43eee31)([email protected]([email protected])):dependencies:'@css-render/plugin-bem': 0.15.14([email protected])'@css-render/vue3-ssr': 0.15.14([email protected]([email protected]))