@weavy/uikit-react 23.4.0 → 24.0.1
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 +29 -0
- package/dist/types/blocks/WyChat.d.ts +1 -8
- package/dist/types/blocks/WyComments.d.ts +3 -0
- package/dist/types/blocks/WyFiles.d.ts +1 -9
- package/dist/types/blocks/WyMessenger.d.ts +1 -9
- package/dist/types/blocks/WyNotificationToasts.d.ts +7 -0
- package/dist/types/blocks/WyNotifications.d.ts +7 -0
- package/dist/types/blocks/WyPosts.d.ts +1 -8
- package/dist/types/blocks/index.d.ts +3 -0
- package/dist/types/components/WyAttachment.d.ts +2 -4
- package/dist/types/components/WyBlobUpload.d.ts +3 -0
- package/dist/types/components/WyButton.d.ts +2 -1
- package/dist/types/components/WyComment.d.ts +2 -2
- package/dist/types/components/WyConversation.d.ts +7 -1
- package/dist/types/components/WyFilesList.d.ts +2 -4
- package/dist/types/components/WyImageGrid.d.ts +2 -4
- package/dist/types/components/WyMessage.d.ts +2 -1
- package/dist/types/components/WyNotification.d.ts +6 -0
- package/dist/types/components/WyOverlay.d.ts +1 -1
- package/dist/types/components/WySheet.d.ts +1 -1
- package/dist/types/components/WyToast.d.ts +13 -0
- package/dist/types/components/index.d.ts +2 -1
- package/dist/weavy.es5.esm.js +1 -1
- package/dist/weavy.es5.umd.cjs +1 -1
- package/dist/weavy.esm.js +28613 -27325
- package/dist/weavy.umd.cjs +1716 -1467
- package/lib/blocks/WyChat.tsx +1 -20
- package/lib/blocks/WyComments.tsx +12 -0
- package/lib/blocks/WyFiles.tsx +1 -19
- package/lib/blocks/WyMessenger.tsx +1 -25
- package/lib/blocks/WyNotificationToasts.tsx +18 -0
- package/lib/blocks/WyNotifications.tsx +18 -0
- package/lib/blocks/WyPosts.tsx +1 -20
- package/lib/blocks/index.ts +3 -0
- package/lib/components/WyAttachment.tsx +2 -6
- package/lib/components/WyBlobUpload.tsx +11 -0
- package/lib/components/WyButton.tsx +7 -1
- package/lib/components/WyComment.tsx +4 -4
- package/lib/components/WyConversation.tsx +20 -0
- package/lib/components/WyFilesList.tsx +2 -5
- package/lib/components/WyImageGrid.tsx +2 -6
- package/lib/components/WyMessage.tsx +8 -1
- package/lib/components/WyNotification.tsx +33 -0
- package/lib/components/WyOverlay.tsx +1 -1
- package/lib/components/WySheet.tsx +1 -1
- package/lib/components/WyToast.tsx +31 -0
- package/lib/components/index.ts +2 -1
- package/lib/hooks/useWeavy.ts +3 -0
- package/package.json +12 -16
- package/dist/types/components/WyPortal.d.ts +0 -3
- package/lib/components/WyPortal.tsx +0 -10
package/changelog.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# Changelog for Weavy
|
|
2
2
|
|
|
3
|
+
## v24.0.1
|
|
4
|
+
|
|
5
|
+
<time>2024-07-12</time>
|
|
6
|
+
|
|
7
|
+
* Fixed incorrect positioning of modals in uikit-web.
|
|
8
|
+
* Fixed incorrect height on "New messages" badge in uikit-web.
|
|
9
|
+
* Fixed an issue with z-index stacking order in uikit-web.
|
|
10
|
+
|
|
11
|
+
## v24.0.0
|
|
12
|
+
|
|
13
|
+
<time>2024-07-10</time>
|
|
14
|
+
|
|
15
|
+
* Added `<wy-notifications>` component to view and manage notifications.
|
|
16
|
+
* Added `<wy-notification-toasts>` component to show notification toasts and native browser notifications.
|
|
17
|
+
* Added `wy:notifications` event to listen to realtime notifications. Enable notification events by setting the `notificationEvents` property on the Weavy context.
|
|
18
|
+
* Added `wy:link` event to handle navigation when interacting with notifications.
|
|
19
|
+
* Added `name` property to all contextual blocks, which will set the display name for the app. The name is widely used in notification texts and falls back to the `uid` when not set.
|
|
20
|
+
* Added Google Meet integration.
|
|
21
|
+
* Added Microsoft Teams integration.
|
|
22
|
+
* Fixed an issue when removing attributes on wy-context.
|
|
23
|
+
* Fixed an issue with the user presence indicator not being updated.
|
|
24
|
+
* Fixed some issues with realtime subscribe/unsubscribe.
|
|
25
|
+
* Fixed some issues with exports and compatibility the uikit-react package.
|
|
26
|
+
* Changed modals to use the Popover API. This removes the need for the `submodals` property on blocks and the `modalParent` property on the Weavy context.
|
|
27
|
+
|
|
28
|
+
###### Breaking Changes
|
|
29
|
+
|
|
30
|
+
* Removed realtime events `wy:*` on all blocks in uikit-web. Use the `wy:notifications` event for realtime updates instead.
|
|
31
|
+
|
|
3
32
|
## v23.4.0
|
|
4
33
|
|
|
5
34
|
<time>2024-06-27</time>
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import { EventName } from '@lit/react';
|
|
2
1
|
import { WyChat as WyChatWC } from '@weavy/uikit-web';
|
|
3
|
-
import { RealtimeAppEventType, RealtimeMessageEventType, RealtimeReactionEventType } from '@weavy/uikit-web/dist/types/types/realtime.types';
|
|
4
2
|
|
|
5
|
-
export declare const WyChat: import('@lit/react').ReactWebComponent<WyChatWC, {
|
|
6
|
-
onWyMessageCreated: EventName<CustomEvent<RealtimeMessageEventType>>;
|
|
7
|
-
onWyReactionAdded: EventName<CustomEvent<RealtimeReactionEventType>>;
|
|
8
|
-
onWyReactionRemoved: EventName<CustomEvent<RealtimeReactionEventType>>;
|
|
9
|
-
onWyAppUpdated: EventName<CustomEvent<RealtimeAppEventType>>;
|
|
10
|
-
}>;
|
|
3
|
+
export declare const WyChat: import('@lit/react').ReactWebComponent<WyChatWC, {}>;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import { EventName } from '@lit/react';
|
|
2
1
|
import { WyFiles as WyFilesWC } from '@weavy/uikit-web';
|
|
3
|
-
import { RealtimeFileEventType } from '@weavy/uikit-web/dist/types/types/realtime.types';
|
|
4
2
|
|
|
5
|
-
export declare const WyFiles: import('@lit/react').ReactWebComponent<WyFilesWC, {
|
|
6
|
-
onWyFileCreated: EventName<CustomEvent<RealtimeFileEventType>>;
|
|
7
|
-
onWyFileUpdated: EventName<CustomEvent<RealtimeFileEventType>>;
|
|
8
|
-
onWyFileTrashed: EventName<CustomEvent<RealtimeFileEventType>>;
|
|
9
|
-
onWyFileRestored: EventName<CustomEvent<RealtimeFileEventType>>;
|
|
10
|
-
onWyFileDeleted: EventName<CustomEvent<RealtimeFileEventType>>;
|
|
11
|
-
}>;
|
|
3
|
+
export declare const WyFiles: import('@lit/react').ReactWebComponent<WyFilesWC, {}>;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import { EventName } from '@lit/react';
|
|
2
1
|
import { WyMessenger as WyMessengerWC } from '@weavy/uikit-web';
|
|
3
|
-
import { RealtimeAppEventType, RealtimeConversationDeliveredEventType, RealtimeConversationMarkedEventType, RealtimeMemberEventType, RealtimeMessageEventType } from '@weavy/uikit-web/dist/types/types/realtime.types';
|
|
4
2
|
|
|
5
|
-
export declare const WyMessenger: import('@lit/react').ReactWebComponent<WyMessengerWC, {
|
|
6
|
-
onWyMessageCreated: EventName<CustomEvent<RealtimeMessageEventType>>;
|
|
7
|
-
onWyAppCreated: EventName<CustomEvent<RealtimeAppEventType>>;
|
|
8
|
-
onWyConversationMarked: EventName<CustomEvent<RealtimeConversationMarkedEventType>>;
|
|
9
|
-
onWyConversationDelivered: EventName<CustomEvent<RealtimeConversationDeliveredEventType>>;
|
|
10
|
-
onWyMemberAdded: EventName<CustomEvent<RealtimeMemberEventType>>;
|
|
11
|
-
}>;
|
|
3
|
+
export declare const WyMessenger: import('@lit/react').ReactWebComponent<WyMessengerWC, {}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { WyNotificationToasts as WyNotificationToastsWC } from '@weavy/uikit-web';
|
|
3
|
+
import { WyLinkEventType } from '@weavy/uikit-web/dist/types/types/notifications.types';
|
|
4
|
+
|
|
5
|
+
export declare const WyNotificationToasts: import('@lit/react').ReactWebComponent<WyNotificationToastsWC, {
|
|
6
|
+
onWyLink: EventName<WyLinkEventType>;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { WyNotifications as WyNotificationsWC } from '@weavy/uikit-web';
|
|
3
|
+
import { WyLinkEventType } from '@weavy/uikit-web/dist/types/types/notifications.types';
|
|
4
|
+
|
|
5
|
+
export declare const WyNotifications: import('@lit/react').ReactWebComponent<WyNotificationsWC, {
|
|
6
|
+
onWyLink: EventName<WyLinkEventType>;
|
|
7
|
+
}>;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import { EventName } from '@lit/react';
|
|
2
1
|
import { WyPosts as WyPostsWC } from '@weavy/uikit-web';
|
|
3
|
-
import { RealtimeCommentEventType, RealtimePostEventType, RealtimeReactionEventType } from '@weavy/uikit-web/dist/types/types/realtime.types';
|
|
4
2
|
|
|
5
|
-
export declare const WyPosts: import('@lit/react').ReactWebComponent<WyPostsWC, {
|
|
6
|
-
onWyPostCreated: EventName<CustomEvent<RealtimePostEventType>>;
|
|
7
|
-
onWyCommentCreated: EventName<CustomEvent<RealtimeCommentEventType>>;
|
|
8
|
-
onWyReactionAdded: EventName<CustomEvent<RealtimeReactionEventType>>;
|
|
9
|
-
onWyReactionRemoved: EventName<CustomEvent<RealtimeReactionEventType>>;
|
|
10
|
-
}>;
|
|
3
|
+
export declare const WyPosts: import('@lit/react').ReactWebComponent<WyPostsWC, {}>;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { EventName } from '@lit/react';
|
|
2
2
|
import { WyAttachment as WyAttachmentWC, WyAttachmentsList as WyAttachmentsListWC } from '@weavy/uikit-web';
|
|
3
|
-
import {
|
|
3
|
+
import { FileOpenEventType } from '@weavy/uikit-web/dist/types/types/files.types';
|
|
4
4
|
|
|
5
5
|
export declare const WyAttachment: import('@lit/react').ReactWebComponent<WyAttachmentWC, {}>;
|
|
6
6
|
export declare const WyAttachmentsList: import('@lit/react').ReactWebComponent<WyAttachmentsListWC, {
|
|
7
|
-
onFileOpen: EventName<
|
|
8
|
-
file: FileType;
|
|
9
|
-
}>>;
|
|
7
|
+
onFileOpen: EventName<FileOpenEventType>;
|
|
10
8
|
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { WyButton as WyButtonWC } from '@weavy/uikit-web';
|
|
1
|
+
import { WyButton as WyButtonWC, WyButtons as WyButtonsWC } from '@weavy/uikit-web';
|
|
2
2
|
|
|
3
3
|
export declare const WyButton: import('@lit/react').ReactWebComponent<WyButtonWC, {}>;
|
|
4
|
+
export declare const WyButtons: import('@lit/react').ReactWebComponent<WyButtonsWC, {}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EventName } from '@lit/react';
|
|
2
|
-
import {
|
|
2
|
+
import { WyCommentList as WyCommentListWC, WyComment as WyCommentWC, WyCommentView as WyCommentViewWC, WyCommentEdit as WyCommentEditWC, WyCommentEditor as WyCommentEditorWC, WyCommentTrashed as WyCommentTrashedWC } from '@weavy/uikit-web';
|
|
3
3
|
import { PollOptionType } from '@weavy/uikit-web/dist/types/types/polls.types';
|
|
4
4
|
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const WyCommentList: import('@lit/react').ReactWebComponent<WyCommentListWC, {}>;
|
|
6
6
|
export declare const WyComment: import('@lit/react').ReactWebComponent<WyCommentWC, {
|
|
7
7
|
onVote: EventName<CustomEvent<{
|
|
8
8
|
id: number;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { EventName } from '@lit/react';
|
|
2
|
-
import { WyConversation as WyConversationWC, WyConversationNew as WyConversationNewWC } from '@weavy/uikit-web';
|
|
2
|
+
import { WyConversation as WyConversationWC, WyConversationExtended as WyConversationExtendedWC, WyConversationAppbar as WyConversationAppbarWC, WyConversationNew as WyConversationNewWC } from '@weavy/uikit-web';
|
|
3
3
|
|
|
4
4
|
export declare const WyConversation: import('@lit/react').ReactWebComponent<WyConversationWC, {
|
|
5
5
|
onReleaseFocus: EventName<CustomEvent>;
|
|
6
6
|
}>;
|
|
7
|
+
export declare const WyConversationExtended: import('@lit/react').ReactWebComponent<WyConversationExtendedWC, {
|
|
8
|
+
onReleaseFocus: EventName<CustomEvent>;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const WyConversationAppbar: import('@lit/react').ReactWebComponent<WyConversationAppbarWC, {
|
|
11
|
+
onReleaseFocus: EventName<CustomEvent>;
|
|
12
|
+
}>;
|
|
7
13
|
export declare const WyConversationNew: import('@lit/react').ReactWebComponent<WyConversationNewWC, {
|
|
8
14
|
onReleaseFocus: EventName<CustomEvent>;
|
|
9
15
|
}>;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { EventName } from '@lit/react';
|
|
2
2
|
import { WyFilesList as WyFilesListWC } from '@weavy/uikit-web';
|
|
3
|
-
import { FileOrderType, FileType } from '@weavy/uikit-web/dist/types/types/files.types';
|
|
3
|
+
import { FileOpenEventType, FileOrderType, FileType } from '@weavy/uikit-web/dist/types/types/files.types';
|
|
4
4
|
|
|
5
5
|
export declare const WyFilesList: import('@lit/react').ReactWebComponent<WyFilesListWC, {
|
|
6
|
-
onFileOpen: EventName<
|
|
7
|
-
file: FileType;
|
|
8
|
-
}>>;
|
|
6
|
+
onFileOpen: EventName<FileOpenEventType>;
|
|
9
7
|
onOrder: EventName<CustomEvent<{
|
|
10
8
|
order: FileOrderType;
|
|
11
9
|
}>>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { EventName } from '@lit/react';
|
|
2
2
|
import { WyImageGrid as WyImageGridWC } from '@weavy/uikit-web';
|
|
3
|
-
import {
|
|
3
|
+
import { FileOpenEventType } from '@weavy/uikit-web/dist/types/types/files.types';
|
|
4
4
|
|
|
5
5
|
export declare const WyImageGrid: import('@lit/react').ReactWebComponent<WyImageGridWC, {
|
|
6
|
-
onFileOpen: EventName<
|
|
7
|
-
file: FileType;
|
|
8
|
-
}>>;
|
|
6
|
+
onFileOpen: EventName<FileOpenEventType>;
|
|
9
7
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventName } from '@lit/react';
|
|
2
|
-
import { WyMessage as WyMessageWC, WyMessages as WyMessagesWC, WyMessageEditor as WyMessageEditorWC } from '@weavy/uikit-web';
|
|
2
|
+
import { WyMessage as WyMessageWC, WyMessages as WyMessagesWC, WyMessageEditor as WyMessageEditorWC, WyMessageTyping as WyMessageTypingWC } from '@weavy/uikit-web';
|
|
3
3
|
import { PollOptionType } from '@weavy/uikit-web/dist/types/types/polls.types';
|
|
4
4
|
|
|
5
5
|
export declare const WyMessage: import('@lit/react').ReactWebComponent<WyMessageWC, {}>;
|
|
@@ -16,3 +16,4 @@ export declare const WyMessageEditor: import('@lit/react').ReactWebComponent<WyM
|
|
|
16
16
|
embed: number;
|
|
17
17
|
}>>;
|
|
18
18
|
}>;
|
|
19
|
+
export declare const WyMessageTyping: import('@lit/react').ReactWebComponent<WyMessageTypingWC, {}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { WyNotificationBadge as WyNotificationBadgeWC, WyNotificationButtonList as WyNotificationButtonListWC, WyNotificationList as WyNotificationListWC, WyNotificationListItem as WyNotificationListItemWC } from '@weavy/uikit-web';
|
|
2
|
+
|
|
3
|
+
export declare const WyNotificationBadge: import('@lit/react').ReactWebComponent<WyNotificationBadgeWC, {}>;
|
|
4
|
+
export declare const WyNotificationButtonList: import('@lit/react').ReactWebComponent<WyNotificationButtonListWC, {}>;
|
|
5
|
+
export declare const WyNotificationList: import('@lit/react').ReactWebComponent<WyNotificationListWC, {}>;
|
|
6
|
+
export declare const WyNotificationListitem: import('@lit/react').ReactWebComponent<WyNotificationListItemWC, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { WyToasts as WyToastsWC, WyToast as WyToastWC } from '@weavy/uikit-web';
|
|
3
|
+
|
|
4
|
+
export declare const WyToasts: import('@lit/react').ReactWebComponent<WyToastsWC, {
|
|
5
|
+
onHide: EventName<CustomEvent>;
|
|
6
|
+
onReleaseFocus: EventName<CustomEvent>;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const WyToast: import('@lit/react').ReactWebComponent<WyToastWC, {
|
|
9
|
+
onHide: EventName<CustomEvent<{
|
|
10
|
+
silent: boolean;
|
|
11
|
+
}>>;
|
|
12
|
+
onReleaseFocus: EventName<CustomEvent>;
|
|
13
|
+
}>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './WyAttachment';
|
|
2
2
|
export * from './WyAvatar';
|
|
3
3
|
export * from './WyBadge';
|
|
4
|
+
export * from './WyBlobUpload';
|
|
4
5
|
export * from './WyButton';
|
|
5
6
|
export * from './WyCloudFiles';
|
|
6
7
|
export * from './WyComment';
|
|
@@ -19,10 +20,10 @@ export * from './WyIcon';
|
|
|
19
20
|
export * from './WyImageGrid';
|
|
20
21
|
export * from './WyMeetingCard';
|
|
21
22
|
export * from './WyMessage';
|
|
23
|
+
export * from './WyNotification';
|
|
22
24
|
export * from './WyOverlay';
|
|
23
25
|
export * from './WyPdfViewer';
|
|
24
26
|
export * from './WyPoll';
|
|
25
|
-
export * from './WyPortal';
|
|
26
27
|
export * from './WyPost';
|
|
27
28
|
export * from './WyPresence';
|
|
28
29
|
export * from './WyPreview';
|