@kerebron/pm 0.8.8

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/LICENSE ADDED
@@ -0,0 +1,23 @@
1
+ Permission is hereby granted, free of charge, to any
2
+ person obtaining a copy of this software and associated
3
+ documentation files (the "Software"), to deal in the
4
+ Software without restriction, including without
5
+ limitation the rights to use, copy, modify, merge,
6
+ publish, distribute, sublicense, and/or sell copies of
7
+ the Software, and to permit persons to whom the Software
8
+ is furnished to do so, subject to the following
9
+ conditions:
10
+
11
+ The above copyright notice and this permission notice
12
+ shall be included in all copies or substantial portions
13
+ of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
16
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
17
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
18
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
19
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
22
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23
+ DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,91 @@
1
+ # Kerebron - Prosemirror based online editor kit
2
+
3
+ ## Watch a Demo
4
+
5
+ <a href="https://youtube.com/shorts/OdJjhAPj-wA?feature=share" target="_blank">
6
+ <img src="https://github.com/user-attachments/assets/b63ec84a-0ed2-4f98-920c-76f6d3215168" alt="Alt Text" width="200">
7
+ </a>
8
+
9
+ ## Playground Demo
10
+
11
+ [playground](https://kerebron.com) - be nice.
12
+
13
+ ## Overview
14
+
15
+ Using vanilla Prosemirror modules is often impossible because of
16
+ incompatibilities.
17
+
18
+ Kerebron forks several prosemirror projects into one monorepo in order to keep
19
+ them in sync.
20
+
21
+ Project is inspired on https://tiptap.dev/, but instead of building wrapper
22
+ around a wrapper it borrows concept of extension and command manager.
23
+
24
+ It has simplified tooling (deno), fewer dependencies and resulting in lower
25
+ number of output npm modules.
26
+
27
+ **Work in progress**
28
+
29
+ ## Build
30
+
31
+ ###
32
+
33
+ Update git submodules
34
+
35
+ ```sh
36
+ git submodule init
37
+ git submodule update
38
+ ```
39
+
40
+ ### Build static examples and `.wasm` files
41
+
42
+ ```sh
43
+ deno task -f @kerebron/odt-wasm build
44
+ deno task -f @kerebron build
45
+ ```
46
+
47
+ ## Development
48
+
49
+ To start example server:
50
+
51
+ ```sh
52
+ deno task dev
53
+ ```
54
+
55
+ ## Examples
56
+
57
+ TODO
58
+
59
+ ### NPM packages are generated using DNT
60
+
61
+ - https://deno.com/blog/publish-esm-cjs-module-dnt - the easiest way to publish
62
+ a hybrid npm module for ESM and CommonJS
63
+ - https://github.com/denoland/dnt
64
+ - https://gaubee.com/article/Publishing-Your-Deno-Project-as-a-Monorepo-using-dnt/
65
+
66
+ To generate npm packages
67
+
68
+ ```sh
69
+ deno -A ./utils/build_npm.ts
70
+ ```
71
+
72
+ ## Run through docker
73
+
74
+ ```sh
75
+ docker build . -t editor-test
76
+ docker run -it -p 8000:8000 -v $PWD:/usr/src/app editor-test
77
+ ```
78
+
79
+ ## Prerequisites
80
+
81
+ Install deno
82
+
83
+ ```sh
84
+ npm install -g deno
85
+ ```
86
+
87
+ Install rust
88
+
89
+ ```sh
90
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
91
+ ```
package/esm/model.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from 'prosemirror-model';
2
+ //# sourceMappingURL=model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../src/model.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
package/esm/model.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from 'prosemirror-model';
2
+ //# sourceMappingURL=model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.js","sourceRoot":"","sources":["../src/model.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
package/esm/state.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from 'prosemirror-state';
2
+ //# sourceMappingURL=state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../src/state.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
package/esm/state.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from 'prosemirror-state';
2
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../src/state.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
package/esm/view.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from 'prosemirror-view';
2
+ //# sourceMappingURL=view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../src/view.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
package/esm/view.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from 'prosemirror-view';
2
+ //# sourceMappingURL=view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view.js","sourceRoot":"","sources":["../src/view.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@kerebron/pm",
3
+ "version": "0.8.8",
4
+ "license": "MIT",
5
+ "module": "./esm/model.js",
6
+ "exports": {
7
+ "./model": {
8
+ "import": "./esm/model.js"
9
+ },
10
+ "./state": {
11
+ "import": "./esm/state.js"
12
+ },
13
+ "./view": {
14
+ "import": "./esm/view.js"
15
+ }
16
+ },
17
+ "scripts": {},
18
+ "files": [
19
+ "esm",
20
+ "src"
21
+ ],
22
+ "dependencies": {
23
+ "prosemirror-model": "1.25.9",
24
+ "prosemirror-state": "1.4.3",
25
+ "prosemirror-view": "1.40.0"
26
+ },
27
+ "devDependencies": {
28
+ "@types/node": "^20.9.0"
29
+ },
30
+ "_generatedBy": "dnt@dev"
31
+ }
package/src/model.ts ADDED
@@ -0,0 +1 @@
1
+ export * from 'prosemirror-model';
package/src/state.ts ADDED
@@ -0,0 +1 @@
1
+ export * from 'prosemirror-state';
package/src/view.ts ADDED
@@ -0,0 +1 @@
1
+ export * from 'prosemirror-view';