editate 0.6.5 → 0.6.7

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.
@@ -1,3 +1,3 @@
1
- import type { Editor } from "../editor.js";
2
- import { type KeyString } from "../keyboard.js";
1
+ import { Editor } from '../editor.js';
2
+ import { KeyString } from '../keyboard.js';
3
3
  export declare function keymapPlugin<K extends KeyString>(editor: Editor, bindings: Record<K, () => void>): void;
@@ -1,4 +1,4 @@
1
- import type { Editor } from "../editor.js";
1
+ import { Editor } from '../editor.js';
2
2
  /**
3
3
  * A plugin to restrict input to a single line
4
4
  */
@@ -1,5 +1,5 @@
1
- import type { InlineNode } from "../../doc/types.js";
2
- import type { Editor } from "../../editor.js";
1
+ import { InlineNode } from '../../doc/types.js';
2
+ import { Editor } from '../../editor.js';
3
3
  /**
4
4
  * A plugin to handle pasting / dropping from File.
5
5
  */
@@ -1,5 +1,5 @@
1
- import type { Editor } from "../../editor.js";
2
- import type { DocNode, InferInlineNode, TextNode } from "../../doc/types.js";
1
+ import { Editor } from '../../editor.js';
2
+ import { DocNode, InferInlineNode, TextNode } from '../../doc/types.js';
3
3
  /**
4
4
  * A plugin to handle copying / pasting HTML
5
5
  */
@@ -1,4 +1,4 @@
1
- export { fileTransferPlugin } from "./fileTransfer.js";
2
- export { plainTransferPlugin } from "./plainTransfer.js";
3
- export { htmlTransferPlugin } from "./htmlTransfer.js";
4
- export { internalTranferPlugin } from "./internalTransfer.js";
1
+ export { fileTransferPlugin } from './fileTransfer.js';
2
+ export { plainTransferPlugin } from './plainTransfer.js';
3
+ export { htmlTransferPlugin } from './htmlTransfer.js';
4
+ export { internalTranferPlugin } from './internalTransfer.js';
@@ -1,4 +1,4 @@
1
- import type { Editor } from "../../editor.js";
1
+ import { Editor } from '../../editor.js';
2
2
  /**
3
3
  * A plugin to handle copying / pasting between editor instances
4
4
  */
@@ -1,5 +1,5 @@
1
- import type { DocNode, InferInlineNode } from "../../doc/types.js";
2
- import type { Editor } from "../../editor.js";
1
+ import { DocNode, InferInlineNode } from '../../doc/types.js';
2
+ import { Editor } from '../../editor.js';
3
3
  /**
4
4
  * A plugin to handle copying / pasting plain text.
5
5
  */
@@ -1,2 +1,2 @@
1
- export { createPlainEditor } from "./plain.js";
2
- export type { PlainEditorOptions } from "./plain.js";
1
+ export { createPlainEditor } from './plain.js';
2
+ export type { PlainEditorOptions } from './plain.js';
@@ -1,4 +1,4 @@
1
- import { type Editor, type EditorOptions } from "../editor.js";
1
+ import { Editor, EditorOptions } from '../editor.js';
2
2
  type PlainDoc = {
3
3
  children: {
4
4
  children: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "editate",
3
- "version": "0.6.5",
3
+ "version": "0.6.7",
4
4
  "description": "An experimental, type-safe, framework agnostic and small (5kB+) contenteditable state manager.",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "lib/index.js",
@@ -19,10 +19,9 @@
19
19
  ],
20
20
  "sideEffects": false,
21
21
  "scripts": {
22
- "build": "rollup -c",
22
+ "build": "vite build",
23
23
  "tsc": "tsc -p . --noEmit",
24
- "test": "vitest --run --project=unit",
25
- "test:browser": "vitest --run --project=browser",
24
+ "test": "vitest --run",
26
25
  "format": "prettier '**/*.{js,ts,jsx,tsx}' --write --cache",
27
26
  "format:ci": "prettier '**/*.{js,ts,jsx,tsx}' -l",
28
27
  "storybook": "storybook dev -p 6006",
@@ -38,8 +37,6 @@
38
37
  },
39
38
  "devDependencies": {
40
39
  "@playwright/test": "^1.60.0",
41
- "@rollup/plugin-terser": "1.0.0",
42
- "@rollup/plugin-typescript": "12.3.0",
43
40
  "@size-limit/preset-small-lib": "^12.0.0",
44
41
  "@storybook/addon-docs": "^10.4.0",
45
42
  "@storybook/react-vite": "^10.4.0",
@@ -47,9 +44,9 @@
47
44
  "@textlint/textlint-plugin-text": "^15.0.0",
48
45
  "@types/react": "^19.2.0",
49
46
  "@types/react-dom": "^19.2.0",
50
- "@vitest/browser-playwright": "^4.1.6",
51
47
  "diff": "^9.0.0",
52
48
  "esbuild": "^0.28.0",
49
+ "jsdom": "^29.1.1",
53
50
  "kuromojin": "^3.0.1",
54
51
  "linkifyjs": "^4.3.1",
55
52
  "patch-package": "^8.0.0",
@@ -62,9 +59,9 @@
62
59
  "remark-gfm": "^4.0.1",
63
60
  "remark-parse": "^11.0.0",
64
61
  "rimraf": "6.1.3",
65
- "rollup": "^4.54.0",
66
62
  "size-limit": "^12.0.0",
67
63
  "storybook": "^10.4.0",
64
+ "terser": "^5.48.0",
68
65
  "textlint-rule-preset-japanese": "^10.0.4",
69
66
  "typedoc": "^0.28.0",
70
67
  "typedoc-plugin-markdown": "^4.6.3",
@@ -72,6 +69,7 @@
72
69
  "unified": "^11.0.5",
73
70
  "valibot": "^1.4.0",
74
71
  "vite": "^8.0.13",
72
+ "vite-plugin-dts": "^5.0.2",
75
73
  "vitest": "^4.1.6"
76
74
  },
77
75
  "repository": {