We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66e062c commit bc2bb69Copy full SHA for bc2bb69
2 files changed
.changeset/export-craftile-editor.md
@@ -0,0 +1,13 @@
1
+---
2
+"@craftile/editor": patch
3
4
+
5
+feat(editor): export CraftileEditor class
6
7
+Export the `CraftileEditor` class from the main package entry point, allowing users to import it directly for type annotations and advanced usage.
8
9
+```typescript
10
+// Now available
11
+import { CraftileEditor } from '@craftile/editor';
12
+import type { CraftileEditor } from '@craftile/editor';
13
+```
packages/editor/src/app.ts
@@ -1,5 +1,7 @@
import { CraftileEditor, type CraftileEditorOptions } from './editor';
+export { CraftileEditor };
export interface CreateCraftileEditorOptions extends CraftileEditorOptions {
el?: string | HTMLElement;
}
0 commit comments