@weavy/uikit-react 21.1.2 → 22.1.0
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/changelog.md +30 -1
- package/dist/types/blocks/WyChat.d.ts +5 -4
- package/dist/types/blocks/WyContext.d.ts +2 -1
- package/dist/types/blocks/WyFiles.d.ts +5 -4
- package/dist/types/blocks/WyMessenger.d.ts +5 -4
- package/dist/types/blocks/WyPosts.d.ts +5 -4
- package/dist/types/blocks/index.d.ts +5 -5
- package/dist/types/components/WyAttachment.d.ts +6 -5
- package/dist/types/components/WyAvatar.d.ts +3 -2
- package/dist/types/components/WyBadge.d.ts +3 -2
- package/dist/types/components/WyButton.d.ts +3 -2
- package/dist/types/components/WyCloudFiles.d.ts +5 -4
- package/dist/types/components/WyComment.d.ts +10 -9
- package/dist/types/components/WyConversation.d.ts +5 -4
- package/dist/types/components/WyConversationList.d.ts +5 -4
- package/dist/types/components/WyDropdown.d.ts +6 -5
- package/dist/types/components/WyEditor.d.ts +5 -4
- package/dist/types/components/WyEmbed.d.ts +4 -3
- package/dist/types/components/WyEmpty.d.ts +3 -2
- package/dist/types/components/WyFileItem.d.ts +5 -4
- package/dist/types/components/WyFileMenu.d.ts +5 -4
- package/dist/types/components/WyFileVersions.d.ts +5 -4
- package/dist/types/components/WyFilesAppbar.d.ts +5 -4
- package/dist/types/components/WyFilesList.d.ts +5 -4
- package/dist/types/components/WyIcon.d.ts +3 -2
- package/dist/types/components/WyImageGrid.d.ts +5 -4
- package/dist/types/components/WyMeetingCard.d.ts +3 -2
- package/dist/types/components/WyMessage.d.ts +7 -6
- package/dist/types/components/WyOverlay.d.ts +4 -3
- package/dist/types/components/WyPdfViewer.d.ts +3 -2
- package/dist/types/components/WyPoll.d.ts +5 -4
- package/dist/types/components/WyPortal.d.ts +3 -2
- package/dist/types/components/WyPost.d.ts +7 -6
- package/dist/types/components/WyPresence.d.ts +3 -2
- package/dist/types/components/WyPreview.d.ts +10 -9
- package/dist/types/components/WyReactions.d.ts +5 -4
- package/dist/types/components/WySheet.d.ts +4 -3
- package/dist/types/components/WySkeleton.d.ts +3 -2
- package/dist/types/components/WySpinner.d.ts +3 -2
- package/dist/types/components/WyTyping.d.ts +3 -2
- package/dist/types/components/WyUsersSearch.d.ts +5 -4
- package/dist/types/components/index.d.ts +34 -34
- package/dist/types/hooks/index.d.ts +1 -1
- package/dist/types/hooks/useWeavy.d.ts +3 -2
- package/dist/types/index.d.ts +4 -4
- package/dist/weavy.es5.esm.js +1 -1
- package/dist/weavy.es5.umd.cjs +1 -1
- package/dist/weavy.esm.js +25376 -25031
- package/dist/weavy.umd.cjs +1146 -1021
- package/lib/hooks/useWeavy.ts +1 -2
- package/package.json +12 -12
package/lib/hooks/useWeavy.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable react-hooks/exhaustive-deps */
|
|
1
2
|
import { useEffect, useMemo, useState } from "react";
|
|
2
3
|
import { Weavy } from "@weavy/uikit-web";
|
|
3
4
|
import type { WeavyContext } from "@weavy/uikit-web/dist/types/index";
|
|
@@ -25,7 +26,6 @@ export function useWeavy(options: WeavyOptions) {
|
|
|
25
26
|
return () => {
|
|
26
27
|
wy?.destroy();
|
|
27
28
|
};
|
|
28
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
29
29
|
}, []);
|
|
30
30
|
|
|
31
31
|
useEffect(() => {
|
|
@@ -45,7 +45,6 @@ export function useWeavy(options: WeavyOptions) {
|
|
|
45
45
|
Object.assign(weavy, validProperties);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
49
48
|
}, [cacheSafeOptions]);
|
|
50
49
|
|
|
51
50
|
return weavy;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weavy/uikit-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.1.0",
|
|
4
4
|
"author": "Weavy",
|
|
5
5
|
"description": "React components UI-kit for Weavy",
|
|
6
6
|
"homepage": "https://github.com/weavy/weavy-uikit-react",
|
|
@@ -37,22 +37,22 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@lit/react": "^1.0.2",
|
|
40
|
-
"@weavy/uikit-web": "^
|
|
40
|
+
"@weavy/uikit-web": "^22.1.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": ">=16",
|
|
44
44
|
"react-dom": ">=16"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@babel/preset-env": "^7.
|
|
48
|
-
"@babel/preset-react": "^7.
|
|
47
|
+
"@babel/preset-env": "^7.24.3",
|
|
48
|
+
"@babel/preset-react": "^7.24.1",
|
|
49
49
|
"@rollup/plugin-babel": "^6.0.4",
|
|
50
50
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
51
|
-
"@types/node": "^20.
|
|
52
|
-
"@types/react": "^18.2.
|
|
53
|
-
"@types/react-dom": "^18.2.
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
55
|
-
"@typescript-eslint/parser": "^
|
|
51
|
+
"@types/node": "^20.12.3",
|
|
52
|
+
"@types/react": "^18.2.74",
|
|
53
|
+
"@types/react-dom": "^18.2.23",
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "^7.5.0",
|
|
55
|
+
"@typescript-eslint/parser": "^7.5.0",
|
|
56
56
|
"@vitejs/plugin-react": "^4.2.1",
|
|
57
57
|
"dotenv": "^16.3.2",
|
|
58
58
|
"eslint": "^8.55.0",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"npm-run-all": "^4.1.5",
|
|
62
62
|
"rimraf": "^5.0.5",
|
|
63
63
|
"sass": "^1.72.0",
|
|
64
|
-
"typescript": "^5.
|
|
65
|
-
"vite": "^5.
|
|
66
|
-
"vite-plugin-dts": "^3.
|
|
64
|
+
"typescript": "^5.4.3",
|
|
65
|
+
"vite": "^5.2.7",
|
|
66
|
+
"vite-plugin-dts": "^3.8.1"
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">=18.0.0",
|