@integry/sdk 4.5.23 → 4.5.24
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/dist/esm/index.csm.js +793 -793
- package/dist/umd/index.umd.js +793 -793
- package/package.json +2 -1
- package/src/components/MultipurposeField/TagMenu/index.ts +9 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@integry/sdk",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.24",
|
|
4
4
|
"description": "Integry SDK",
|
|
5
5
|
"main": "dist/umd/index.umd.js",
|
|
6
6
|
"module": "dist/esm/index.csm.js",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"@testing-library/preact": "^2.0.1",
|
|
55
55
|
"@testing-library/user-event": "^14.6.1",
|
|
56
56
|
"@types/jest": "^26.0.23",
|
|
57
|
+
"@types/react-dom": "^19.0.4",
|
|
57
58
|
"@types/yaireo__tagify": "^4.18.0",
|
|
58
59
|
"@typescript-eslint/eslint-plugin": "^4.20.0",
|
|
59
60
|
"@typescript-eslint/parser": "^4.20.0",
|
|
@@ -8,7 +8,7 @@ import { isScrolledIntoView } from '@/utils/common';
|
|
|
8
8
|
import { searchJSON } from '@/utils/searchJson';
|
|
9
9
|
import { Input } from '@/components/Input';
|
|
10
10
|
import { createElement } from 'preact/compat';
|
|
11
|
-
import {
|
|
11
|
+
import { createRoot } from 'react-dom/client';
|
|
12
12
|
import { TagOptions } from '../TagOptions';
|
|
13
13
|
import { ThreeDotLoader } from '../../ThreeDotLoader';
|
|
14
14
|
import styles from './styles.module.scss';
|
|
@@ -221,17 +221,21 @@ const FieldDropdown = (props: FieldMenuProps) => {
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
const PortalWrapper = () => {
|
|
224
|
-
const
|
|
224
|
+
const reactRoot = useRef<HTMLDivElement>(null);
|
|
225
225
|
|
|
226
226
|
useEffect(() => {
|
|
227
|
-
if (
|
|
228
|
-
|
|
227
|
+
if (reactRoot.current) {
|
|
228
|
+
const root = createRoot(reactRoot.current);
|
|
229
|
+
root.render(tagsComponentRender);
|
|
229
230
|
}
|
|
230
231
|
}, []);
|
|
231
232
|
|
|
232
|
-
return html`<div ref=${
|
|
233
|
+
return html`<div ref=${reactRoot}></div>`;
|
|
233
234
|
};
|
|
234
235
|
|
|
236
|
+
// eslint-disable-next-line no-console
|
|
237
|
+
console.log(PortalWrapper);
|
|
238
|
+
|
|
235
239
|
return html` <div
|
|
236
240
|
class=${`${styles.tagMenu} ${enableSearch ? styles.tagMenuWithSearch : ''}`}
|
|
237
241
|
style=${parentContainer && tagMenyStyleRef?.current
|