@weavy/uikit-react 27.0.0 → 27.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 +10 -0
- package/dist/types/blocks/WyChat.d.ts +4 -2
- package/dist/types/blocks/WyComments.d.ts +4 -2
- package/dist/types/blocks/WyComponent.d.ts +6 -2
- package/dist/types/blocks/WyCopilot.d.ts +5 -3
- package/dist/types/blocks/WyFiles.d.ts +4 -2
- package/dist/types/blocks/WyMessenger.d.ts +1 -1
- package/dist/types/blocks/WyNotificationToasts.d.ts +4 -2
- package/dist/types/blocks/WyNotifications.d.ts +4 -2
- package/dist/types/blocks/WyPosts.d.ts +4 -2
- package/dist/types/components/WyAttachment.d.ts +1 -1
- package/dist/types/components/WyFilesList.d.ts +1 -1
- package/dist/types/components/WyImageGrid.d.ts +1 -1
- package/dist/types/components/WyPreview.d.ts +1 -1
- package/dist/weavy.bundle.js +216 -216
- package/dist/weavy.cjs +182 -182
- package/dist/weavy.es5.esm.js +1 -1
- package/dist/weavy.es5.umd.cjs +1 -1
- package/dist/weavy.mjs +7742 -7702
- package/dist/weavy.umd.cjs +175 -175
- package/lib/blocks/WyChat.tsx +5 -2
- package/lib/blocks/WyComments.tsx +5 -2
- package/lib/blocks/WyComponent.tsx +8 -1
- package/lib/blocks/WyCopilot.tsx +6 -12
- package/lib/blocks/WyFiles.tsx +5 -2
- package/lib/blocks/WyMessenger.tsx +1 -1
- package/lib/blocks/WyNotificationToasts.tsx +5 -2
- package/lib/blocks/WyNotifications.tsx +5 -2
- package/lib/blocks/WyPosts.tsx +7 -3
- package/lib/components/WyAttachment.tsx +1 -1
- package/lib/components/WyFilesList.tsx +1 -1
- package/lib/components/WyImageGrid.tsx +1 -1
- package/lib/components/WyPreview.tsx +1 -1
- package/package.json +10 -10
package/lib/blocks/WyChat.tsx
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { createComponent, EventName, WebComponentProps } from "@lit/react";
|
|
5
5
|
import { WY_CHAT_TAGNAME, WyChat as WyChatWC } from "@weavy/uikit-web";
|
|
6
|
-
import {
|
|
6
|
+
import { WyAppEventType } from "@weavy/uikit-web/dist/types/types/app.events.js";
|
|
7
|
+
import { WyPreviewOpenEventType } from "@weavy/uikit-web/dist/types/types/files.events.js";
|
|
7
8
|
|
|
8
9
|
// Creates a React component from a Lit component
|
|
9
10
|
export const WyChat = createComponent({
|
|
@@ -11,6 +12,8 @@ export const WyChat = createComponent({
|
|
|
11
12
|
tagName: WY_CHAT_TAGNAME,
|
|
12
13
|
elementClass: WyChatWC,
|
|
13
14
|
events: {
|
|
15
|
+
onWyApp:
|
|
16
|
+
"wy-app" satisfies WyAppEventType["type"] as EventName<WyAppEventType>,
|
|
14
17
|
onWyPreviewOpen:
|
|
15
18
|
"wy-preview-open" satisfies WyPreviewOpenEventType["type"] as EventName<WyPreviewOpenEventType>,
|
|
16
19
|
},
|
|
@@ -25,4 +28,4 @@ declare module "react" {
|
|
|
25
28
|
}
|
|
26
29
|
}
|
|
27
30
|
|
|
28
|
-
export type { WyPreviewOpenEventType };
|
|
31
|
+
export type { WyAppEventType, WyPreviewOpenEventType };
|
|
@@ -6,7 +6,8 @@ import {
|
|
|
6
6
|
WY_COMMENTS_TAGNAME,
|
|
7
7
|
WyComments as WyCommentsWC,
|
|
8
8
|
} from "@weavy/uikit-web";
|
|
9
|
-
import {
|
|
9
|
+
import { WyAppEventType } from "@weavy/uikit-web/dist/types/types/app.events.js";
|
|
10
|
+
import { WyPreviewOpenEventType } from "@weavy/uikit-web/dist/types/types/files.events.js";
|
|
10
11
|
|
|
11
12
|
// Creates a React component from a Lit component
|
|
12
13
|
export const WyComments = createComponent({
|
|
@@ -14,6 +15,8 @@ export const WyComments = createComponent({
|
|
|
14
15
|
tagName: WY_COMMENTS_TAGNAME,
|
|
15
16
|
elementClass: WyCommentsWC,
|
|
16
17
|
events: {
|
|
18
|
+
onWyApp:
|
|
19
|
+
"wy-app" satisfies WyAppEventType["type"] as EventName<WyAppEventType>,
|
|
17
20
|
onWyPreviewOpen:
|
|
18
21
|
"wy-preview-open" satisfies WyPreviewOpenEventType["type"] as EventName<WyPreviewOpenEventType>,
|
|
19
22
|
},
|
|
@@ -28,4 +31,4 @@ declare module "react" {
|
|
|
28
31
|
}
|
|
29
32
|
}
|
|
30
33
|
|
|
31
|
-
export type { WyPreviewOpenEventType };
|
|
34
|
+
export type { WyAppEventType, WyPreviewOpenEventType };
|
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { createComponent, WebComponentProps } from "@lit/react";
|
|
4
|
+
import { createComponent, EventName, WebComponentProps } from "@lit/react";
|
|
5
5
|
import {
|
|
6
6
|
WY_COMPONENT_TAGNAME,
|
|
7
7
|
WyComponent as WyComponentWC,
|
|
8
8
|
} from "@weavy/uikit-web";
|
|
9
|
+
import { WyAppEventType } from "@weavy/uikit-web/dist/types/types/app.events.js";
|
|
9
10
|
|
|
10
11
|
// Creates a React component from a Lit component
|
|
11
12
|
export const WyComponent = createComponent({
|
|
12
13
|
react: React,
|
|
13
14
|
tagName: WY_COMPONENT_TAGNAME,
|
|
14
15
|
elementClass: WyComponentWC,
|
|
16
|
+
events: {
|
|
17
|
+
onWyApp:
|
|
18
|
+
"wy-app" satisfies WyAppEventType["type"] as EventName<WyAppEventType>,
|
|
19
|
+
},
|
|
15
20
|
});
|
|
16
21
|
|
|
17
22
|
declare module "react" {
|
|
@@ -22,3 +27,5 @@ declare module "react" {
|
|
|
22
27
|
}
|
|
23
28
|
}
|
|
24
29
|
}
|
|
30
|
+
|
|
31
|
+
export type { WyAppEventType };
|
package/lib/blocks/WyCopilot.tsx
CHANGED
|
@@ -3,11 +3,9 @@
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { createComponent, EventName, WebComponentProps } from "@lit/react";
|
|
5
5
|
import { WY_COPILOT_TAGNAME, WyCopilot as WyCopilotWC } from "@weavy/uikit-web";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
WyPreviewOpenEventType,
|
|
10
|
-
} from "@weavy/uikit-web/dist/types/types/events.types.js";
|
|
6
|
+
import type { WyAppEventType } from "@weavy/uikit-web/dist/types/types/app.events.js";
|
|
7
|
+
import type { WyMessageEventType } from "@weavy/uikit-web/dist/types/types/messages.events.js";
|
|
8
|
+
import type { WyPreviewOpenEventType } from "@weavy/uikit-web/dist/types/types/files.events.js";
|
|
11
9
|
|
|
12
10
|
// Creates a React component from a Lit component
|
|
13
11
|
export const WyCopilot = createComponent({
|
|
@@ -15,12 +13,12 @@ export const WyCopilot = createComponent({
|
|
|
15
13
|
tagName: WY_COPILOT_TAGNAME,
|
|
16
14
|
elementClass: WyCopilotWC,
|
|
17
15
|
events: {
|
|
18
|
-
onWyPreviewOpen:
|
|
19
|
-
"wy-preview-open" satisfies WyPreviewOpenEventType["type"] as EventName<WyPreviewOpenEventType>,
|
|
20
16
|
onWyApp:
|
|
21
17
|
"wy-app" satisfies WyAppEventType["type"] as EventName<WyAppEventType>,
|
|
22
18
|
onWyMessage:
|
|
23
19
|
"wy-message" satisfies WyMessageEventType["type"] as EventName<WyMessageEventType>,
|
|
20
|
+
onWyPreviewOpen:
|
|
21
|
+
"wy-preview-open" satisfies WyPreviewOpenEventType["type"] as EventName<WyPreviewOpenEventType>,
|
|
24
22
|
},
|
|
25
23
|
});
|
|
26
24
|
|
|
@@ -33,8 +31,4 @@ declare module "react" {
|
|
|
33
31
|
}
|
|
34
32
|
}
|
|
35
33
|
|
|
36
|
-
export type {
|
|
37
|
-
WyPreviewOpenEventType,
|
|
38
|
-
WyAppEventType,
|
|
39
|
-
WyMessageEventType,
|
|
40
|
-
};
|
|
34
|
+
export type { WyPreviewOpenEventType, WyAppEventType, WyMessageEventType };
|
package/lib/blocks/WyFiles.tsx
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { createComponent, EventName, WebComponentProps } from "@lit/react";
|
|
5
5
|
import { WY_FILES_TAGNAME, WyFiles as WyFilesWC } from "@weavy/uikit-web";
|
|
6
|
-
import {
|
|
6
|
+
import type { WyAppEventType } from "@weavy/uikit-web/dist/types/types/app.events.js";
|
|
7
|
+
import type { WyPreviewOpenEventType } from "@weavy/uikit-web/dist/types/types/files.events.js";
|
|
7
8
|
|
|
8
9
|
// Creates a React component from a Lit component
|
|
9
10
|
export const WyFiles = createComponent({
|
|
@@ -11,6 +12,8 @@ export const WyFiles = createComponent({
|
|
|
11
12
|
tagName: WY_FILES_TAGNAME,
|
|
12
13
|
elementClass: WyFilesWC,
|
|
13
14
|
events: {
|
|
15
|
+
onWyApp:
|
|
16
|
+
"wy-app" satisfies WyAppEventType["type"] as EventName<WyAppEventType>,
|
|
14
17
|
onWyPreviewOpen:
|
|
15
18
|
"wy-preview-open" satisfies WyPreviewOpenEventType["type"] as EventName<WyPreviewOpenEventType>,
|
|
16
19
|
},
|
|
@@ -25,4 +28,4 @@ declare module "react" {
|
|
|
25
28
|
}
|
|
26
29
|
}
|
|
27
30
|
|
|
28
|
-
export type { WyPreviewOpenEventType };
|
|
31
|
+
export type { WyAppEventType, WyPreviewOpenEventType };
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
WY_MESSENGER_TAGNAME,
|
|
7
7
|
WyMessenger as WyMessengerWC,
|
|
8
8
|
} from "@weavy/uikit-web";
|
|
9
|
-
import { WyPreviewOpenEventType } from "@weavy/uikit-web/dist/types/types/events.
|
|
9
|
+
import { WyPreviewOpenEventType } from "@weavy/uikit-web/dist/types/types/files.events.js";
|
|
10
10
|
|
|
11
11
|
// Creates a React component from a Lit component
|
|
12
12
|
export const WyMessenger = createComponent({
|
|
@@ -9,7 +9,8 @@ import {
|
|
|
9
9
|
import type {
|
|
10
10
|
WyLinkEventType,
|
|
11
11
|
WyNotificationEventType,
|
|
12
|
-
} from "@weavy/uikit-web/dist/types/types/notifications.
|
|
12
|
+
} from "@weavy/uikit-web/dist/types/types/notifications.events.d.ts";
|
|
13
|
+
import { WyAppEventType } from "@weavy/uikit-web/dist/types/types/app.events.js";
|
|
13
14
|
|
|
14
15
|
// Creates a React component from a Lit component
|
|
15
16
|
export const WyNotificationToasts = createComponent({
|
|
@@ -17,6 +18,8 @@ export const WyNotificationToasts = createComponent({
|
|
|
17
18
|
tagName: WY_NOTIFICATION_TOASTS_TAGNAME,
|
|
18
19
|
elementClass: WyNotificationToastsWC,
|
|
19
20
|
events: {
|
|
21
|
+
onWyApp:
|
|
22
|
+
"wy-app" satisfies WyAppEventType["type"] as EventName<WyAppEventType>,
|
|
20
23
|
onWyLink:
|
|
21
24
|
"wy-link" satisfies WyLinkEventType["type"] as EventName<WyLinkEventType>,
|
|
22
25
|
onWyNotification:
|
|
@@ -33,4 +36,4 @@ declare module "react" {
|
|
|
33
36
|
}
|
|
34
37
|
}
|
|
35
38
|
|
|
36
|
-
export type { WyLinkEventType };
|
|
39
|
+
export type { WyAppEventType, WyLinkEventType };
|
|
@@ -6,7 +6,8 @@ import {
|
|
|
6
6
|
WY_NOTIFICATIONS_TAGNAME,
|
|
7
7
|
WyNotifications as WyNotificationsWC,
|
|
8
8
|
} from "@weavy/uikit-web";
|
|
9
|
-
import type { WyLinkEventType } from "@weavy/uikit-web/dist/types/types/notifications.
|
|
9
|
+
import type { WyLinkEventType } from "@weavy/uikit-web/dist/types/types/notifications.events.d.ts";
|
|
10
|
+
import type { WyAppEventType } from "@weavy/uikit-web/dist/types/types/app.events.js";
|
|
10
11
|
|
|
11
12
|
// Creates a React component from a Lit component
|
|
12
13
|
export const WyNotifications = createComponent({
|
|
@@ -14,6 +15,8 @@ export const WyNotifications = createComponent({
|
|
|
14
15
|
tagName: WY_NOTIFICATIONS_TAGNAME,
|
|
15
16
|
elementClass: WyNotificationsWC,
|
|
16
17
|
events: {
|
|
18
|
+
onWyApp:
|
|
19
|
+
"wy-app" satisfies WyAppEventType["type"] as EventName<WyAppEventType>,
|
|
17
20
|
onWyLink:
|
|
18
21
|
"wy-link" satisfies WyLinkEventType["type"] as EventName<WyLinkEventType>,
|
|
19
22
|
},
|
|
@@ -28,4 +31,4 @@ declare module "react" {
|
|
|
28
31
|
}
|
|
29
32
|
}
|
|
30
33
|
|
|
31
|
-
export type { WyLinkEventType };
|
|
34
|
+
export type { WyAppEventType, WyLinkEventType };
|
package/lib/blocks/WyPosts.tsx
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { createComponent, EventName, WebComponentProps } from "@lit/react";
|
|
5
5
|
import { WY_POSTS_TAGNAME, WyPosts as WyPostsWC } from "@weavy/uikit-web";
|
|
6
|
-
import { WyPreviewOpenEventType } from "@weavy/uikit-web/dist/types/types/events.
|
|
6
|
+
import { WyPreviewOpenEventType } from "@weavy/uikit-web/dist/types/types/files.events.js";
|
|
7
|
+
import { WyAppEventType } from "@weavy/uikit-web/dist/types/types/app.events.js";
|
|
7
8
|
|
|
8
9
|
// Creates a React component from a Lit component
|
|
9
10
|
export const WyPosts = createComponent({
|
|
@@ -11,7 +12,10 @@ export const WyPosts = createComponent({
|
|
|
11
12
|
tagName: WY_POSTS_TAGNAME,
|
|
12
13
|
elementClass: WyPostsWC,
|
|
13
14
|
events: {
|
|
14
|
-
|
|
15
|
+
onWyApp:
|
|
16
|
+
"wy-app" satisfies WyAppEventType["type"] as EventName<WyAppEventType>,
|
|
17
|
+
onWyPreviewOpen:
|
|
18
|
+
"wy-preview-open" satisfies WyPreviewOpenEventType["type"] as EventName<WyPreviewOpenEventType>,
|
|
15
19
|
},
|
|
16
20
|
});
|
|
17
21
|
|
|
@@ -24,4 +28,4 @@ declare module "react" {
|
|
|
24
28
|
}
|
|
25
29
|
}
|
|
26
30
|
|
|
27
|
-
export type { WyPreviewOpenEventType }
|
|
31
|
+
export type { WyAppEventType, WyPreviewOpenEventType };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { EventName, createComponent } from "@lit/react";
|
|
3
3
|
import { WeavyComponents } from "@weavy/uikit-web";
|
|
4
|
-
import type { FileOpenEventType } from "@weavy/uikit-web/dist/types/types/events.
|
|
4
|
+
import type { FileOpenEventType } from "@weavy/uikit-web/dist/types/types/files.events.d.ts";
|
|
5
5
|
|
|
6
6
|
// Creates a React component from a Lit component
|
|
7
7
|
export const WyAttachment = createComponent({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { EventName, createComponent } from "@lit/react";
|
|
3
3
|
import { WeavyComponents } from "@weavy/uikit-web";
|
|
4
|
-
import type { FileOpenEventType } from "@weavy/uikit-web/dist/types/types/events.
|
|
4
|
+
import type { FileOpenEventType } from "@weavy/uikit-web/dist/types/types/files.events.d.ts";
|
|
5
5
|
import type {
|
|
6
6
|
FileOrderType,
|
|
7
7
|
FileType,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { EventName, createComponent } from "@lit/react";
|
|
3
3
|
import { WeavyComponents } from "@weavy/uikit-web";
|
|
4
|
-
import type { FileOpenEventType } from "@weavy/uikit-web/dist/types/types/events.
|
|
4
|
+
import type { FileOpenEventType } from "@weavy/uikit-web/dist/types/types/files.events.d.ts";
|
|
5
5
|
|
|
6
6
|
// Creates a React component from a Lit component
|
|
7
7
|
export const WyImageGrid = createComponent({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { EventName, createComponent } from "@lit/react";
|
|
3
3
|
import { WeavyComponents } from "@weavy/uikit-web";
|
|
4
|
-
import { WyPreviewCloseEventType, WyPreviewOpenEventType } from "@weavy/uikit-web/dist/types/types/events.
|
|
4
|
+
import { WyPreviewCloseEventType, WyPreviewOpenEventType } from "@weavy/uikit-web/dist/types/types/files.events.js";
|
|
5
5
|
|
|
6
6
|
// Creates a React component from a Lit component
|
|
7
7
|
export const WyPreview = createComponent({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weavy/uikit-react",
|
|
3
|
-
"version": "27.
|
|
3
|
+
"version": "27.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",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@lit/react": "^1.0.7",
|
|
43
|
-
"@weavy/uikit-web": "^27.
|
|
43
|
+
"@weavy/uikit-web": "^27.1.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": ">=16",
|
|
@@ -49,16 +49,16 @@
|
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@babel/preset-env": "^7.26.9",
|
|
51
51
|
"@babel/preset-react": "^7.26.3",
|
|
52
|
-
"@eslint/js": "^9.
|
|
52
|
+
"@eslint/js": "^9.24.0",
|
|
53
53
|
"@rollup/plugin-babel": "^6.0.4",
|
|
54
54
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
55
|
-
"@types/node": "^22.
|
|
55
|
+
"@types/node": "^22.14.0",
|
|
56
56
|
"@types/react": "^18.3.20",
|
|
57
|
-
"@types/react-dom": "^18.3.
|
|
57
|
+
"@types/react-dom": "^18.3.6",
|
|
58
58
|
"@vitejs/plugin-react": "^4.3.4",
|
|
59
59
|
"dotenv": "^16.4.7",
|
|
60
|
-
"eslint": "^9.
|
|
61
|
-
"eslint-plugin-react": "^7.37.
|
|
60
|
+
"eslint": "^9.24.0",
|
|
61
|
+
"eslint-plugin-react": "^7.37.5",
|
|
62
62
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
63
63
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
64
64
|
"globals": "^16.0.0",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"react-dom": "^18.3.1",
|
|
68
68
|
"rimraf": "^6.0.1",
|
|
69
69
|
"rollup-preserve-directives": "^1.1.3",
|
|
70
|
-
"sass": "^1.86.
|
|
70
|
+
"sass": "^1.86.3",
|
|
71
71
|
"typescript": "^5.8.2",
|
|
72
|
-
"typescript-eslint": "^8.
|
|
73
|
-
"vite": "^6.2.
|
|
72
|
+
"typescript-eslint": "^8.29.0",
|
|
73
|
+
"vite": "^6.2.5",
|
|
74
74
|
"vite-plugin-dts": "^4.5.3"
|
|
75
75
|
}
|
|
76
76
|
}
|