@weavy/uikit-react 22.0.0 → 22.2.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 +22 -0
- 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/types/weavy.d.ts +3 -0
- package/dist/weavy.es5.esm.js +1 -1
- package/dist/weavy.es5.umd.cjs +1 -1
- package/dist/weavy.esm.js +30229 -26440
- package/dist/weavy.umd.cjs +1003 -974
- package/lib/blocks/WyContext.tsx +2 -7
- package/lib/hooks/useWeavy.ts +1 -1
- package/lib/index.ts +1 -1
- package/lib/weavy.ts +9 -0
- package/package.json +16 -17
package/lib/blocks/WyContext.tsx
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
/* @ts-expect-error Override Weavy version */
|
|
6
|
-
Weavy.version = WEAVY_VERSION;
|
|
7
|
-
|
|
8
|
-
/* @ts-expect-error Override Weavy sourceName */
|
|
9
|
-
Weavy.sourceName = WEAVY_SOURCE_NAME;
|
|
3
|
+
import { WyContext as WyContextWC } from '@weavy/uikit-web';
|
|
4
|
+
import "../weavy"
|
|
10
5
|
|
|
11
6
|
// Creates a React component from a Lit component
|
|
12
7
|
export const WyContext = createComponent({
|
package/lib/hooks/useWeavy.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
2
2
|
import { useEffect, useMemo, useState } from "react";
|
|
3
|
-
import { Weavy } from "
|
|
3
|
+
import { Weavy } from "../weavy";
|
|
4
4
|
import type { WeavyContext } from "@weavy/uikit-web/dist/types/index";
|
|
5
5
|
import { WeavyOptions } from "@weavy/uikit-web/dist/types/types/weavy.types";
|
|
6
6
|
|
package/lib/index.ts
CHANGED
package/lib/weavy.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Weavy, WeavyContextBase } from "@weavy/uikit-web";
|
|
2
|
+
|
|
3
|
+
/* @ts-expect-error Override Weavy version */
|
|
4
|
+
WeavyContextBase.version = WEAVY_VERSION;
|
|
5
|
+
|
|
6
|
+
/* @ts-expect-error Override Weavy sourceName */
|
|
7
|
+
WeavyContextBase.sourceName = WEAVY_SOURCE_NAME;
|
|
8
|
+
|
|
9
|
+
export { Weavy }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weavy/uikit-react",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.2.0",
|
|
4
4
|
"author": "Weavy",
|
|
5
5
|
"description": "React components UI-kit for Weavy",
|
|
6
6
|
"homepage": "https://github.com/weavy/weavy-uikit-react",
|
|
@@ -32,27 +32,26 @@
|
|
|
32
32
|
"build": "run-s build:*",
|
|
33
33
|
"build:esm": "vite build --config=dev/vite.config.ts",
|
|
34
34
|
"build:legacy": "vite build --config=dev/vite.config.legacy.ts",
|
|
35
|
-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
|
|
36
|
-
"preview": "vite preview"
|
|
35
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
|
|
37
36
|
},
|
|
38
37
|
"dependencies": {
|
|
39
38
|
"@lit/react": "^1.0.2",
|
|
40
|
-
"@weavy/uikit-web": "^22.
|
|
39
|
+
"@weavy/uikit-web": "^22.2.0"
|
|
41
40
|
},
|
|
42
41
|
"peerDependencies": {
|
|
43
42
|
"react": ">=16",
|
|
44
43
|
"react-dom": ">=16"
|
|
45
44
|
},
|
|
46
45
|
"devDependencies": {
|
|
47
|
-
"@babel/preset-env": "^7.
|
|
48
|
-
"@babel/preset-react": "^7.
|
|
46
|
+
"@babel/preset-env": "^7.24.4",
|
|
47
|
+
"@babel/preset-react": "^7.24.1",
|
|
49
48
|
"@rollup/plugin-babel": "^6.0.4",
|
|
50
49
|
"@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": "^7.
|
|
55
|
-
"@typescript-eslint/parser": "^7.
|
|
50
|
+
"@types/node": "^20.12.7",
|
|
51
|
+
"@types/react": "^18.2.79",
|
|
52
|
+
"@types/react-dom": "^18.2.25",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "^7.7.0",
|
|
54
|
+
"@typescript-eslint/parser": "^7.7.0",
|
|
56
55
|
"@vitejs/plugin-react": "^4.2.1",
|
|
57
56
|
"dotenv": "^16.3.2",
|
|
58
57
|
"eslint": "^8.55.0",
|
|
@@ -60,13 +59,13 @@
|
|
|
60
59
|
"eslint-plugin-react-refresh": "^0.4.5",
|
|
61
60
|
"npm-run-all": "^4.1.5",
|
|
62
61
|
"rimraf": "^5.0.5",
|
|
63
|
-
"sass": "^1.
|
|
64
|
-
"typescript": "^5.
|
|
65
|
-
"vite": "^5.
|
|
66
|
-
"vite-plugin-dts": "^3.
|
|
62
|
+
"sass": "^1.75.0",
|
|
63
|
+
"typescript": "^5.4.5",
|
|
64
|
+
"vite": "^5.2.9",
|
|
65
|
+
"vite-plugin-dts": "^3.8.3"
|
|
67
66
|
},
|
|
68
67
|
"engines": {
|
|
69
|
-
"node": ">=
|
|
70
|
-
"npm": ">=
|
|
68
|
+
"node": ">=20.10.0",
|
|
69
|
+
"npm": ">=10.2.3"
|
|
71
70
|
}
|
|
72
71
|
}
|