@fluentui-copilot/react-chat-input-plugins 0.0.0-nightly-20240808-0406-236f5420.1 → 0.0.0-nightly-20240812-0407-f0d7d2a8.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.json CHANGED
@@ -2,9 +2,9 @@
2
2
  "name": "@fluentui-copilot/react-chat-input-plugins",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 08 Aug 2024 04:12:17 GMT",
6
- "tag": "@fluentui-copilot/react-chat-input-plugins_v0.0.0-nightly-20240808-0406-236f5420.1",
7
- "version": "0.0.0-nightly-20240808-0406-236f5420.1",
5
+ "date": "Mon, 12 Aug 2024 04:14:19 GMT",
6
+ "tag": "@fluentui-copilot/react-chat-input-plugins_v0.0.0-nightly-20240812-0407-f0d7d2a8.1",
7
+ "version": "0.0.0-nightly-20240812-0407-f0d7d2a8.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
@@ -16,20 +16,20 @@
16
16
  {
17
17
  "author": "beachball",
18
18
  "package": "@fluentui-copilot/react-chat-input-plugins",
19
- "comment": "Bump @fluentui-copilot/chat-input-plugins to v0.0.0-nightly-20240808-0406-236f5420.1",
20
- "commit": "62cfa0b904cf0b48fa9394b504d82c4a84b8e4dc"
19
+ "comment": "Bump @fluentui-copilot/chat-input-plugins to v0.0.0-nightly-20240812-0407-f0d7d2a8.1",
20
+ "commit": "3e848a1913b99b7e9b2a7f932fd9e98b0a2ba00c"
21
21
  },
22
22
  {
23
23
  "author": "beachball",
24
24
  "package": "@fluentui-copilot/react-chat-input-plugins",
25
- "comment": "Bump @fluentui-copilot/react-text-editor to v0.0.0-nightly-20240808-0406-236f5420.1",
26
- "commit": "62cfa0b904cf0b48fa9394b504d82c4a84b8e4dc"
25
+ "comment": "Bump @fluentui-copilot/react-text-editor to v0.0.0-nightly-20240812-0407-f0d7d2a8.1",
26
+ "commit": "3e848a1913b99b7e9b2a7f932fd9e98b0a2ba00c"
27
27
  },
28
28
  {
29
29
  "author": "beachball",
30
30
  "package": "@fluentui-copilot/react-chat-input-plugins",
31
- "comment": "Bump @fluentui-copilot/text-editor to v0.0.0-nightly-20240808-0406-236f5420.1",
32
- "commit": "62cfa0b904cf0b48fa9394b504d82c4a84b8e4dc"
31
+ "comment": "Bump @fluentui-copilot/text-editor to v0.0.0-nightly-20240812-0407-f0d7d2a8.1",
32
+ "commit": "3e848a1913b99b7e9b2a7f932fd9e98b0a2ba00c"
33
33
  }
34
34
  ]
35
35
  }
package/CHANGELOG.md CHANGED
@@ -1,20 +1,20 @@
1
1
  # Change Log - @fluentui-copilot/react-chat-input-plugins
2
2
 
3
- This log was last generated on Thu, 08 Aug 2024 04:12:17 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 12 Aug 2024 04:14:19 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20240808-0406-236f5420.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-chat-input-plugins_v0.0.0-nightly-20240808-0406-236f5420.1)
7
+ ## [0.0.0-nightly-20240812-0407-f0d7d2a8.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-chat-input-plugins_v0.0.0-nightly-20240812-0407-f0d7d2a8.1)
8
8
 
9
- Thu, 08 Aug 2024 04:12:17 GMT
10
- [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-chat-input-plugins_v0.1.1..@fluentui-copilot/react-chat-input-plugins_v0.0.0-nightly-20240808-0406-236f5420.1)
9
+ Mon, 12 Aug 2024 04:14:19 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-chat-input-plugins_v0.1.1..@fluentui-copilot/react-chat-input-plugins_v0.0.0-nightly-20240812-0407-f0d7d2a8.1)
11
11
 
12
12
  ### Changes
13
13
 
14
14
  - Release nightly ([commit](https://github.com/microsoft/fluentai/commit/not available) by fluentui-internal@service.microsoft.com)
15
- - Bump @fluentui-copilot/chat-input-plugins to v0.0.0-nightly-20240808-0406-236f5420.1 ([commit](https://github.com/microsoft/fluentai/commit/62cfa0b904cf0b48fa9394b504d82c4a84b8e4dc) by beachball)
16
- - Bump @fluentui-copilot/react-text-editor to v0.0.0-nightly-20240808-0406-236f5420.1 ([commit](https://github.com/microsoft/fluentai/commit/62cfa0b904cf0b48fa9394b504d82c4a84b8e4dc) by beachball)
17
- - Bump @fluentui-copilot/text-editor to v0.0.0-nightly-20240808-0406-236f5420.1 ([commit](https://github.com/microsoft/fluentai/commit/62cfa0b904cf0b48fa9394b504d82c4a84b8e4dc) by beachball)
15
+ - Bump @fluentui-copilot/chat-input-plugins to v0.0.0-nightly-20240812-0407-f0d7d2a8.1 ([commit](https://github.com/microsoft/fluentai/commit/3e848a1913b99b7e9b2a7f932fd9e98b0a2ba00c) by beachball)
16
+ - Bump @fluentui-copilot/react-text-editor to v0.0.0-nightly-20240812-0407-f0d7d2a8.1 ([commit](https://github.com/microsoft/fluentai/commit/3e848a1913b99b7e9b2a7f932fd9e98b0a2ba00c) by beachball)
17
+ - Bump @fluentui-copilot/text-editor to v0.0.0-nightly-20240812-0407-f0d7d2a8.1 ([commit](https://github.com/microsoft/fluentai/commit/3e848a1913b99b7e9b2a7f932fd9e98b0a2ba00c) by beachball)
18
18
 
19
19
  ## [0.1.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-chat-input-plugins_v0.1.1)
20
20
 
package/dist/index.d.ts CHANGED
@@ -1,17 +1,21 @@
1
+ import type { ChatInputEntityData } from '@fluentui-copilot/chat-input-plugins';
2
+ import type { ChatInputEntityPluginProps } from '@fluentui-copilot/chat-input-plugins';
1
3
  import type { ComponentProps } from '@fluentui/react-components';
2
4
  import type { ComponentState } from '@fluentui/react-components';
3
- import { DecoratorNode } from 'lexical';
4
- import { EditorConfig } from 'lexical';
5
- import { EditorState } from 'lexical';
5
+ import { DecoratorNode } from '@fluentui-copilot/text-editor';
6
+ import type { EditorConfig } from '@fluentui-copilot/text-editor';
7
+ import type { EditorState } from '@fluentui-copilot/text-editor';
6
8
  import type { ForwardRefComponent } from '@fluentui/react-components';
7
- import { LexicalEditor } from 'lexical';
8
- import { LexicalNode } from 'lexical';
9
- import { NodeKey } from 'lexical';
9
+ import type { IImperativeControlBase } from '@fluentui-copilot/chat-input-plugins';
10
+ import type { LexicalEditor } from '@fluentui-copilot/text-editor';
11
+ import type { LexicalNode } from '@fluentui-copilot/text-editor';
12
+ import type { NodeKey } from '@fluentui-copilot/text-editor';
13
+ import { PasteUnfurlingPluginBaseProps } from '@fluentui-copilot/chat-input-plugins';
10
14
  import * as React_2 from 'react';
11
- import { SerializedLexicalNode } from 'lexical';
15
+ import type { SerializedLexicalNode } from '@fluentui-copilot/text-editor';
12
16
  import type { Slot } from '@fluentui/react-components';
13
17
  import type { SlotClassNames } from '@fluentui/react-components';
14
- import { Spread } from 'lexical';
18
+ import type { Spread } from '@fluentui-copilot/text-editor';
15
19
 
16
20
  export declare function $createChatInputEntityNode<T>(pluginId: string, text: string, data?: T, entityProps?: ChatInputEntityProps, key?: NodeKey): ChatInputEntityNode<T>;
17
21
 
@@ -43,12 +47,6 @@ export declare const ChatInputEntity: ForwardRefComponent<ChatInputEntityProps>;
43
47
 
44
48
  export declare const chatInputEntityClassNames: SlotClassNames<ChatInputEntitySlots>;
45
49
 
46
- declare type ChatInputEntityData<ExtraDataType, NodePropsType> = {
47
- text: string;
48
- entityProps?: NodePropsType;
49
- data?: ExtraDataType;
50
- };
51
-
52
50
  export declare class ChatInputEntityNode<T> extends DecoratorNode<JSX.Element | null> {
53
51
  __pluginId: string;
54
52
  __text: string;
@@ -73,12 +71,6 @@ export declare const ChatInputEntityPlugin: <ExtraDataType>(props: ChatInputEnti
73
71
  controlRef: React_2.Ref<ChatInputEntityPluginRef<ExtraDataType>>;
74
72
  }) => null;
75
73
 
76
- declare type ChatInputEntityPluginProps<ExtraDataType, NodePropsType> = {
77
- id: string;
78
- onChatInputEntityAdded?: (entity: ChatInputEntityData<ExtraDataType, NodePropsType>, nodeKey: NodeKey) => void;
79
- onChatInputEntityDeleted?: (entity: ChatInputEntityData<ExtraDataType, NodePropsType>, nodeKey: NodeKey) => void;
80
- };
81
-
82
74
  export declare type ChatInputEntityPluginRef<ExtraDataType = undefined> = {
83
75
  insertChatInputEntity: (props: ChatInputEntityData<ExtraDataType, ChatInputEntityProps>) => string | undefined;
84
76
  removeChatInputEntity: (keyOrPredicate: string | ((entity: ChatInputEntityData<ExtraDataType, ChatInputEntityProps>, i: number) => boolean)) => void;
@@ -186,19 +178,6 @@ export declare type GhostTextSlots = {
186
178
  */
187
179
  export declare type GhostTextState = ComponentState<GhostTextSlots>;
188
180
 
189
- declare interface IImperativeControlBase {
190
- setInputText: (inputText: string) => void;
191
- appendText: (text: string) => void;
192
- prependText: (text: string) => void;
193
- insertTextAtCursor: (text: string) => void;
194
- /**
195
- * @param transform will be called for each Lexical node in the input. This enables custom string representation for each node.
196
- */
197
- getInputText: (transform?: (node: LexicalNode) => string) => string;
198
- scrollToBottom: () => void;
199
- moveCursor: (location: number) => void;
200
- }
201
-
202
181
  export declare const ImperativeControlPlugin: React_2.ForwardRefExoticComponent<React_2.RefAttributes<IImperativeControlBase>>;
203
182
 
204
183
  export declare type ImperativeControlPluginProps = {};
@@ -220,29 +199,8 @@ export declare type ManualGhostTextRef = {
220
199
 
221
200
  export declare const PasteUnfurlingPlugin: <ExtraDataType>(props: PasteUnfurlingPluginProps<ExtraDataType>) => null;
222
201
 
223
- declare type PasteUnfurlingPluginBaseProps<ExtraDataType, NodePropsType> = {
224
- entityPluginId: string;
225
- transforms: PasteUnfurlingTransformFunction<ExtraDataType, NodePropsType>[];
226
- $createEntityNode: (pluginId: string, text: string, data?: ExtraDataType, entityProps?: NodePropsType, key?: NodeKey) => LexicalNode;
227
- };
228
-
229
202
  export declare type PasteUnfurlingPluginProps<ExtraDataType> = Omit<PasteUnfurlingPluginBaseProps<ExtraDataType, ChatInputEntityProps>, '$createEntityNode'> & Pick<Partial<PasteUnfurlingPluginBaseProps<ExtraDataType, ChatInputEntityProps>>, '$createEntityNode'>;
230
203
 
231
- declare type PasteUnfurlingTransformedPart<ExtraDataType, NodePropsType> = {
232
- type: 'text';
233
- value: string;
234
- } | {
235
- type: 'entity';
236
- value: ChatInputEntityData<ExtraDataType, NodePropsType>;
237
- };
238
-
239
- declare type PasteUnfurlingTransformFunction<ExtraDataType, NodePropsType> = (event: ClipboardEvent, editor: LexicalEditor) => PasteUnfurlingTransformResult<ExtraDataType, NodePropsType>;
240
-
241
- declare type PasteUnfurlingTransformResult<ExtraDataType, NodePropsType> = {
242
- handled: boolean;
243
- transformedParts?: PasteUnfurlingTransformedPart<ExtraDataType, NodePropsType>[];
244
- };
245
-
246
204
  /**
247
205
  * Render the final JSX of ChatInputEntity
248
206
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-copilot/react-chat-input-plugins",
3
- "version": "0.0.0-nightly-20240808-0406-236f5420.1",
3
+ "version": "0.0.0-nightly-20240812-0407-f0d7d2a8.1",
4
4
  "description": "A Fluent AI package for React-based ChatInput plugins.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -12,9 +12,9 @@
12
12
  },
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
- "@fluentui-copilot/chat-input-plugins": "0.0.0-nightly-20240808-0406-236f5420.1",
16
- "@fluentui-copilot/react-text-editor": "0.0.0-nightly-20240808-0406-236f5420.1",
17
- "@fluentui-copilot/text-editor": "0.0.0-nightly-20240808-0406-236f5420.1",
15
+ "@fluentui-copilot/chat-input-plugins": "0.0.0-nightly-20240812-0407-f0d7d2a8.1",
16
+ "@fluentui-copilot/react-text-editor": "0.0.0-nightly-20240812-0407-f0d7d2a8.1",
17
+ "@fluentui-copilot/text-editor": "0.0.0-nightly-20240812-0407-f0d7d2a8.1",
18
18
  "@swc/helpers": "^0.5.1"
19
19
  },
20
20
  "peerDependencies": {