@oyat/editor 1.5.10 → 1.6.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/dist/components/editor/plate-editor.d.ts.map +1 -1
- package/dist/components/editor/use-chat.d.ts +8 -0
- package/dist/components/editor/use-chat.d.ts.map +1 -1
- package/dist/components/ui/ai-menu.d.ts.map +1 -1
- package/dist/components/ui/cursor-overlay.d.ts.map +1 -1
- package/dist/components/ui/fixed-toolbar-buttons.d.ts.map +1 -1
- package/dist/components/ui/fullscreen-toolbar-button.d.ts +4 -0
- package/dist/components/ui/fullscreen-toolbar-button.d.ts.map +1 -0
- package/dist/contexts/fullscreen-context.d.ts +13 -0
- package/dist/contexts/fullscreen-context.d.ts.map +1 -0
- package/dist/index.js +841 -834
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plate-editor.d.ts","sourceRoot":"","sources":["../../../src/components/editor/plate-editor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plate-editor.d.ts","sourceRoot":"","sources":["../../../src/components/editor/plate-editor.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AAGrC,MAAM,WAAW,gBAAgB;IAC/B,YAAY,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAClC,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CACzB;AAsDD,wBAAgB,WAAW,CAAC,EAC1B,YAAY,EACZ,QAAQ,EACR,IAAc,GACf,EAAE,gBAAgB,2CAsBlB"}
|
|
@@ -9,9 +9,17 @@ export type TComment = {
|
|
|
9
9
|
} | null;
|
|
10
10
|
status: 'finished' | 'streaming';
|
|
11
11
|
};
|
|
12
|
+
export type TTableCellUpdate = {
|
|
13
|
+
cellUpdate: {
|
|
14
|
+
content: string;
|
|
15
|
+
id: string;
|
|
16
|
+
} | null;
|
|
17
|
+
status: 'finished' | 'streaming';
|
|
18
|
+
};
|
|
12
19
|
export type MessageDataPart = {
|
|
13
20
|
toolName: ToolName;
|
|
14
21
|
comment?: TComment;
|
|
22
|
+
table?: TTableCellUpdate;
|
|
15
23
|
};
|
|
16
24
|
export type Chat = UseChatHelpers<ChatMessage>;
|
|
17
25
|
export type ChatMessage = UIMessage<{}, MessageDataPart>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-chat.d.ts","sourceRoot":"","sources":["../../../src/components/editor/use-chat.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,cAAc,EAA0B,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"use-chat.d.ts","sourceRoot":"","sources":["../../../src/components/editor/use-chat.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,cAAc,EAA0B,MAAM,eAAe,CAAC;AAU5E,OAAO,EAAE,KAAK,SAAS,EAAwB,MAAM,IAAI,CAAC;AAS1D,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,CAAC;AAEvD,MAAM,MAAM,QAAQ,GAAG;IACrB,OAAO,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;KACjB,GAAG,IAAI,CAAC;IACT,MAAM,EAAE,UAAU,GAAG,WAAW,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE;QACV,OAAO,EAAE,MAAM,CAAC;QAChB,EAAE,EAAE,MAAM,CAAC;KACZ,GAAG,IAAI,CAAC;IACT,MAAM,EAAE,UAAU,GAAG,WAAW,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC;AAE/C,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC,EAAE,EAAE,eAAe,CAAC,CAAC;AAEzD,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;8BA6jDkklH,GAAI,SAAS,CAAC;iBAAqB,CAAC;;0BAA0J,CAAC;;;;;;;;CAx2CpxlH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-menu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/ai-menu.tsx"],"names":[],"mappings":"AAgEA,wBAAgB,MAAM,mDAuLrB;
|
|
1
|
+
{"version":3,"file":"ai-menu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/ai-menu.tsx"],"names":[],"mappings":"AAgEA,wBAAgB,MAAM,mDAuLrB;AAyTD,eAAO,MAAM,WAAW,GAAI,gCAIzB;IACD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,4CAoDA,CAAC;AAEF,wBAAgB,YAAY,mDAoG3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cursor-overlay.d.ts","sourceRoot":"","sources":["../../../src/components/ui/cursor-overlay.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cursor-overlay.d.ts","sourceRoot":"","sources":["../../../src/components/ui/cursor-overlay.tsx"],"names":[],"mappings":"AAgBA,wBAAgB,aAAa,4CAU5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fixed-toolbar-buttons.d.ts","sourceRoot":"","sources":["../../../src/components/ui/fixed-toolbar-buttons.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fixed-toolbar-buttons.d.ts","sourceRoot":"","sources":["../../../src/components/ui/fixed-toolbar-buttons.tsx"],"names":[],"mappings":"AAkDA,wBAAgB,mBAAmB,4CAiJlC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ToolbarButton } from './toolbar';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export declare function FullscreenToolbarButton(props: React.ComponentProps<typeof ToolbarButton>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=fullscreen-toolbar-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fullscreen-toolbar-button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/fullscreen-toolbar-button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,2CAelD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface FullscreenContextType {
|
|
3
|
+
isFullscreen: boolean;
|
|
4
|
+
onToggleFullscreen: () => void;
|
|
5
|
+
}
|
|
6
|
+
declare const FullscreenContext: React.Context<FullscreenContextType | undefined>;
|
|
7
|
+
export declare function FullscreenProvider({ children, isFullscreen, onToggleFullscreen, }: {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
isFullscreen: boolean;
|
|
10
|
+
onToggleFullscreen: () => void;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export { FullscreenContext };
|
|
13
|
+
//# sourceMappingURL=fullscreen-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fullscreen-context.d.ts","sourceRoot":"","sources":["../../src/contexts/fullscreen-context.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,OAAO,CAAC;IACtB,kBAAkB,EAAE,MAAM,IAAI,CAAC;CAChC;AAED,QAAA,MAAM,iBAAiB,kDAEX,CAAC;AAEb,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,YAAY,EACZ,kBAAkB,GACnB,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,EAAE,OAAO,CAAC;IACtB,kBAAkB,EAAE,MAAM,IAAI,CAAC;CAChC,2CAMA;AAGD,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|