@lexical/file 0.3.1 → 0.3.4
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/fileImportExport.d.ts +13 -0
- package/index.d.ts +9 -0
- package/package.json +2 -2
- package/LexicalFile.d.ts +0 -16
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import type { LexicalEditor } from 'lexical';
|
|
9
|
+
export declare function importFile(editor: LexicalEditor): void;
|
|
10
|
+
export declare function exportFile(editor: LexicalEditor, config?: Readonly<{
|
|
11
|
+
fileName?: string;
|
|
12
|
+
source?: string;
|
|
13
|
+
}>): void;
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import { exportFile, importFile } from './fileImportExport';
|
|
9
|
+
export { exportFile, importFile };
|
package/package.json
CHANGED
package/LexicalFile.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
import {LexicalEditor} from 'lexical';
|
|
11
|
-
|
|
12
|
-
export function importFile(editor: LexicalEditor): void;
|
|
13
|
-
export function exportFile(
|
|
14
|
-
editor: LexicalEditor,
|
|
15
|
-
config?: Readonly<{fileName?: string; source?: string}>,
|
|
16
|
-
): void;
|