@openeditor/native 0.0.3 → 0.0.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/README.md +1 -1
- package/dist/document.js +1 -1
- package/dist/index.js +1 -1
- package/dist/toolbar.js +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -34,4 +34,4 @@ export function Example() {
|
|
|
34
34
|
## Internal notes
|
|
35
35
|
|
|
36
36
|
- The native prose editor engine remains an implementation detail behind this package.
|
|
37
|
-
- Shared contracts come from `@openeditor/core`; content definitions come from `@openeditor/
|
|
37
|
+
- Shared contracts come from `@openeditor/core`; content definitions come from `@openeditor/extensions`.
|
package/dist/document.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cloneNode, createDocument, findBlockSpecForNode, fromProseMirrorDocument, normalizeDocument, toProseMirrorDocument, } from "@openeditor/core";
|
|
2
|
-
import { defaultBlockRegistry } from "@openeditor/
|
|
2
|
+
import { defaultBlockRegistry } from "@openeditor/extensions";
|
|
3
3
|
const NATIVE_HEADING_PATTERN = /^h([1-6])$/;
|
|
4
4
|
const clampHeadingLevel = (value) => typeof value === "number" ? Math.min(Math.max(value, 1), 6) : 2;
|
|
5
5
|
const cloneAttrsWithoutHeadingLevel = (attrs) => {
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Image as NativeImage, Keyboard, Modal, Platform, Pressable, StyleSheet,
|
|
|
5
5
|
import { fromNativeEditorDocument, sanitizeNativeEditorDocument, toNativeEditorDocument, } from "./document.js";
|
|
6
6
|
import { resolveSelectedTopLevelIndex } from "./selection.js";
|
|
7
7
|
import { createOpenEditorNativeToolbarItems, defaultDocumentForToolbarAction, openEditorNativeToolbarActionKeys, } from "./toolbar.js";
|
|
8
|
-
import { defaultBlockRegistry } from "@openeditor/
|
|
8
|
+
import { defaultBlockRegistry } from "@openeditor/extensions";
|
|
9
9
|
const defaultNativeTheme = {
|
|
10
10
|
background: "#fafafa",
|
|
11
11
|
surface: "#ffffff",
|
package/dist/toolbar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createOpenEditorInsertDocument, defaultBlockSpecs, defaultMarkSpecs, } from "@openeditor/
|
|
1
|
+
import { createOpenEditorInsertDocument, defaultBlockSpecs, defaultMarkSpecs, } from "@openeditor/extensions";
|
|
2
2
|
import { toNativeEditorDocument } from "./document.js";
|
|
3
3
|
const glyphIcon = (text) => ({ type: "glyph", text });
|
|
4
4
|
const defaultIcon = (id) => ({ type: "default", id });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openeditor/native",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"repository": {
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@expo/vector-icons": "15.0.3",
|
|
30
|
-
"@openeditor/core": "0.0.
|
|
31
|
-
"@openeditor/exporters": "0.0.
|
|
32
|
-
"@openeditor/
|
|
30
|
+
"@openeditor/core": "0.0.4",
|
|
31
|
+
"@openeditor/exporters": "0.0.4",
|
|
32
|
+
"@openeditor/extensions": "0.0.4",
|
|
33
33
|
"react": "19.2.3",
|
|
34
34
|
"react-native": "0.85.3"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@openeditor/react-native-prose-editor": "0.0.
|
|
37
|
+
"@openeditor/react-native-prose-editor": "0.0.4",
|
|
38
38
|
"react-native-keyboard-controller": ">=1.21",
|
|
39
39
|
"react": ">=19",
|
|
40
40
|
"react-native": ">=0.85"
|