@weavy/uikit-react 26.0.3 → 27.0.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 +19 -0
- package/dist/types/blocks/WyChat.d.ts +1 -1
- package/dist/types/blocks/WyComments.d.ts +1 -1
- package/dist/types/blocks/WyCopilot.d.ts +16 -0
- package/dist/types/blocks/WyFiles.d.ts +1 -1
- package/dist/types/blocks/WyMessenger.d.ts +1 -1
- package/dist/types/blocks/WyPosts.d.ts +1 -1
- package/dist/types/blocks/index.d.ts +2 -0
- package/dist/types/components/WyAttachment.d.ts +1 -1
- package/dist/types/components/WyConversation.d.ts +0 -3
- package/dist/types/components/WyFilesList.d.ts +2 -1
- package/dist/types/components/WyImageGrid.d.ts +1 -1
- package/dist/types/components/WyPreview.d.ts +1 -1
- package/dist/types/hooks/useWeavyContext.d.ts +21 -0
- package/dist/weavy.bundle.js +1176 -1203
- package/dist/weavy.cjs +1267 -1294
- package/dist/weavy.es5.esm.js +1 -1
- package/dist/weavy.es5.umd.cjs +1 -1
- package/dist/weavy.mjs +16539 -15580
- package/dist/weavy.umd.cjs +1193 -1220
- package/lib/blocks/WyChat.tsx +1 -1
- package/lib/blocks/WyComments.tsx +1 -1
- package/lib/blocks/WyCopilot.tsx +40 -0
- package/lib/blocks/WyFiles.tsx +1 -1
- package/lib/blocks/WyMessenger.tsx +1 -1
- package/lib/blocks/WyPosts.tsx +1 -1
- package/lib/blocks/index.ts +2 -0
- package/lib/components/WyAttachment.tsx +1 -1
- package/lib/components/WyConversation.tsx +0 -9
- package/lib/components/WyFilesList.tsx +1 -1
- package/lib/components/WyImageGrid.tsx +1 -1
- package/lib/components/WyPreview.tsx +1 -1
- package/lib/hooks/useWeavyContext.ts +21 -0
- package/package.json +20 -21
package/changelog.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog for Weavy
|
|
2
2
|
|
|
3
|
+
## v27.0.0
|
|
4
|
+
|
|
5
|
+
* Added Bots API for managing chat bots
|
|
6
|
+
* Added `<wy-copilot>` component for contextual conversations with chat bots.
|
|
7
|
+
* Added method to remove a user's copy of a private chat.
|
|
8
|
+
* Added `features` property to uikit components.
|
|
9
|
+
* Added feature option to enable typing indicators and read receipts on the `<wy-chat>` component.
|
|
10
|
+
* Added `reactions` property to configure reactions on individual components or on the `<wy-context>`.
|
|
11
|
+
|
|
12
|
+
###### Breaking Changes
|
|
13
|
+
|
|
14
|
+
* Bots are no longer managed via the Users API. You should use the dedicated Bots API instead.
|
|
15
|
+
* Changed how features are toggled ui the kit. Features are now opt-in using a single `features` property with a space separated list of features. It defaults to a predefined set of features when not configured. This replaces the previous opt-out properties.
|
|
16
|
+
* The `<wy-comments>` component now defaults to having the meetings feature disabled. Enable it by configuring the `features` property.
|
|
17
|
+
* Custom reactions are now configured by setting the `reactions` property to a space separated string of unicode emojis.
|
|
18
|
+
* Removed unused `is_suspended` property from users.
|
|
19
|
+
* Removed the redundant `display_name` property from users and apps. Use the `name` property instead.
|
|
20
|
+
* Replaced `directory_id` with `directory.id` in JSON responses.
|
|
21
|
+
|
|
3
22
|
## v26.0.3
|
|
4
23
|
|
|
5
24
|
<time>2025-02-20</time>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventName, WebComponentProps } from '@lit/react';
|
|
2
2
|
import { WY_CHAT_TAGNAME, WyChat as WyChatWC } from '@weavy/uikit-web';
|
|
3
|
-
import { WyPreviewOpenEventType } from '@weavy/uikit-web/dist/types/types/
|
|
3
|
+
import { WyPreviewOpenEventType } from '@weavy/uikit-web/dist/types/types/events.types.js';
|
|
4
4
|
export declare const WyChat: import('@lit/react').ReactWebComponent<WyChatWC, {
|
|
5
5
|
onWyPreviewOpen: EventName<WyPreviewOpenEventType>;
|
|
6
6
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventName, WebComponentProps } from '@lit/react';
|
|
2
2
|
import { WY_COMMENTS_TAGNAME, WyComments as WyCommentsWC } from '@weavy/uikit-web';
|
|
3
|
-
import { WyPreviewOpenEventType } from '@weavy/uikit-web/dist/types/types/
|
|
3
|
+
import { WyPreviewOpenEventType } from '@weavy/uikit-web/dist/types/types/events.types.js';
|
|
4
4
|
export declare const WyComments: import('@lit/react').ReactWebComponent<WyCommentsWC, {
|
|
5
5
|
onWyPreviewOpen: EventName<WyPreviewOpenEventType>;
|
|
6
6
|
}>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventName, WebComponentProps } from '@lit/react';
|
|
2
|
+
import { WY_COPILOT_TAGNAME, WyCopilot as WyCopilotWC } from '@weavy/uikit-web';
|
|
3
|
+
import { WyAppEventType, WyMessageEventType, WyPreviewOpenEventType } from '@weavy/uikit-web/dist/types/types/events.types.js';
|
|
4
|
+
export declare const WyCopilot: import('@lit/react').ReactWebComponent<WyCopilotWC, {
|
|
5
|
+
onWyPreviewOpen: EventName<WyPreviewOpenEventType>;
|
|
6
|
+
onWyApp: EventName<WyAppEventType>;
|
|
7
|
+
onWyMessage: EventName<WyMessageEventType>;
|
|
8
|
+
}>;
|
|
9
|
+
declare module "react" {
|
|
10
|
+
namespace JSX {
|
|
11
|
+
interface IntrinsicElements {
|
|
12
|
+
[WY_COPILOT_TAGNAME]: WebComponentProps<WyCopilotWC>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export type { WyPreviewOpenEventType, WyAppEventType, WyMessageEventType, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventName, WebComponentProps } from '@lit/react';
|
|
2
2
|
import { WY_FILES_TAGNAME, WyFiles as WyFilesWC } from '@weavy/uikit-web';
|
|
3
|
-
import { WyPreviewOpenEventType } from '@weavy/uikit-web/dist/types/types/
|
|
3
|
+
import { WyPreviewOpenEventType } from '@weavy/uikit-web/dist/types/types/events.types.js';
|
|
4
4
|
export declare const WyFiles: import('@lit/react').ReactWebComponent<WyFilesWC, {
|
|
5
5
|
onWyPreviewOpen: EventName<WyPreviewOpenEventType>;
|
|
6
6
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventName, WebComponentProps } from '@lit/react';
|
|
2
2
|
import { WY_MESSENGER_TAGNAME, WyMessenger as WyMessengerWC } from '@weavy/uikit-web';
|
|
3
|
-
import { WyPreviewOpenEventType } from '@weavy/uikit-web/dist/types/types/
|
|
3
|
+
import { WyPreviewOpenEventType } from '@weavy/uikit-web/dist/types/types/events.types.js';
|
|
4
4
|
export declare const WyMessenger: import('@lit/react').ReactWebComponent<WyMessengerWC, {
|
|
5
5
|
onWyPreviewOpen: EventName<WyPreviewOpenEventType>;
|
|
6
6
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventName, WebComponentProps } from '@lit/react';
|
|
2
2
|
import { WY_POSTS_TAGNAME, WyPosts as WyPostsWC } from '@weavy/uikit-web';
|
|
3
|
-
import { WyPreviewOpenEventType } from '@weavy/uikit-web/dist/types/types/
|
|
3
|
+
import { WyPreviewOpenEventType } from '@weavy/uikit-web/dist/types/types/events.types.js';
|
|
4
4
|
export declare const WyPosts: import('@lit/react').ReactWebComponent<WyPostsWC, {
|
|
5
5
|
onWyPreviewOpen: EventName<WyPreviewOpenEventType>;
|
|
6
6
|
}>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
export { Feature } from '@weavy/uikit-web/lib/types/features.types.ts';
|
|
1
2
|
export * from './WyChat';
|
|
2
3
|
export * from './WyComments';
|
|
3
4
|
export * from './WyComponent';
|
|
4
5
|
export * from './WyContext';
|
|
6
|
+
export * from './WyCopilot';
|
|
5
7
|
export * from './WyFiles';
|
|
6
8
|
export * from './WyMessenger';
|
|
7
9
|
export * from './WyNotifications';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventName } from '@lit/react';
|
|
2
2
|
import { WeavyComponents } from '@weavy/uikit-web';
|
|
3
|
-
import { FileOpenEventType } from '@weavy/uikit-web/dist/types/types/
|
|
3
|
+
import { FileOpenEventType } from '@weavy/uikit-web/dist/types/types/events.types.d.ts';
|
|
4
4
|
export declare const WyAttachment: import('@lit/react').ReactWebComponent<WeavyComponents.WyAttachment, {}>;
|
|
5
5
|
export declare const WyAttachmentsList: import('@lit/react').ReactWebComponent<WeavyComponents.WyAttachmentsList, {
|
|
6
6
|
onFileOpen: EventName<FileOpenEventType>;
|
|
@@ -3,9 +3,6 @@ import { WeavyComponents } from '@weavy/uikit-web';
|
|
|
3
3
|
export declare const WyConversation: import('@lit/react').ReactWebComponent<WeavyComponents.WyConversation, {
|
|
4
4
|
onReleaseFocus: EventName<CustomEvent>;
|
|
5
5
|
}>;
|
|
6
|
-
export declare const WyConversationExtended: import('@lit/react').ReactWebComponent<WeavyComponents.WyConversationExtended, {
|
|
7
|
-
onReleaseFocus: EventName<CustomEvent>;
|
|
8
|
-
}>;
|
|
9
6
|
export declare const WyConversationAppbar: import('@lit/react').ReactWebComponent<WeavyComponents.WyConversationAppbar, {
|
|
10
7
|
onReleaseFocus: EventName<CustomEvent>;
|
|
11
8
|
}>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EventName } from '@lit/react';
|
|
2
2
|
import { WeavyComponents } from '@weavy/uikit-web';
|
|
3
|
-
import { FileOpenEventType
|
|
3
|
+
import { FileOpenEventType } from '@weavy/uikit-web/dist/types/types/events.types.d.ts';
|
|
4
|
+
import { FileOrderType, FileType } from '@weavy/uikit-web/dist/types/types/files.types.d.ts';
|
|
4
5
|
export declare const WyFilesList: import('@lit/react').ReactWebComponent<WeavyComponents.WyFilesList, {
|
|
5
6
|
onFileOpen: EventName<FileOpenEventType>;
|
|
6
7
|
onOrder: EventName<CustomEvent<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventName } from '@lit/react';
|
|
2
2
|
import { WeavyComponents } from '@weavy/uikit-web';
|
|
3
|
-
import { FileOpenEventType } from '@weavy/uikit-web/dist/types/types/
|
|
3
|
+
import { FileOpenEventType } from '@weavy/uikit-web/dist/types/types/events.types.d.ts';
|
|
4
4
|
export declare const WyImageGrid: import('@lit/react').ReactWebComponent<WeavyComponents.WyImageGrid, {
|
|
5
5
|
onFileOpen: EventName<FileOpenEventType>;
|
|
6
6
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventName } from '@lit/react';
|
|
2
2
|
import { WeavyComponents } from '@weavy/uikit-web';
|
|
3
|
-
import { WyPreviewCloseEventType, WyPreviewOpenEventType } from '@weavy/uikit-web/dist/types/types/
|
|
3
|
+
import { WyPreviewCloseEventType, WyPreviewOpenEventType } from '@weavy/uikit-web/dist/types/types/events.types.js';
|
|
4
4
|
export declare const WyPreview: import('@lit/react').ReactWebComponent<WeavyComponents.WyPreview, {
|
|
5
5
|
onReleaseFocus: EventName<CustomEvent>;
|
|
6
6
|
onWyPreviewOpen: EventName<WyPreviewOpenEventType>;
|
|
@@ -9,6 +9,27 @@ import { Context } from '@weavy/uikit-web/dist/types/contexts/index.js';
|
|
|
9
9
|
* @param ref { React.RefObject | HTMLElement } - Reference object that needs to be placed in the DOM.
|
|
10
10
|
* @param context { Context } - The context to use. Defaults to WeavyContext from ukit-web.
|
|
11
11
|
* @returns Weavy instance
|
|
12
|
+
* @example
|
|
13
|
+
* import React, { useRef } from "react"
|
|
14
|
+
* import { useWeavyContext } from "@weavy/uikit-react"
|
|
15
|
+
*
|
|
16
|
+
* export const MyComponent = () => {
|
|
17
|
+
* const domRef = useRef(null)
|
|
18
|
+
* const weavy = useWeavyContext(domRef)
|
|
19
|
+
*
|
|
20
|
+
* useEffect(() => {
|
|
21
|
+
* if (weavy) {
|
|
22
|
+
* console.log("We got weavy", weavy.version)
|
|
23
|
+
* }
|
|
24
|
+
* }, [weavy])
|
|
25
|
+
*
|
|
26
|
+
* // ...
|
|
27
|
+
* return (
|
|
28
|
+
* <>
|
|
29
|
+
* <span ref={domRef}></span>
|
|
30
|
+
* </>
|
|
31
|
+
* )
|
|
32
|
+
* }
|
|
12
33
|
*/
|
|
13
34
|
export declare function useWeavyContext<TContext extends Context<unknown, unknown> = typeof WeavyContext, TElement extends HTMLElement = HTMLElement>(ref: React.RefObject<TElement> | TElement | null, context?: TContext): import('@weavy/uikit-web').WeavyType | import('@weavy/uikit-web/dist/types/utils/context/create-context.js').ContextType<TContext> | undefined;
|
|
14
35
|
export type { Context };
|