@mocanvas/editor 3.1.1 → 4.0.1

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/CLEAN_ROOM.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Clean-room policy
2
2
 
3
- mocanvas is an original work licensed under MIT. It is *shaped like* tldraw so
3
+ mocanvas is an original work. It is *shaped like* tldraw so
4
4
  that projects can migrate, but it is not derived from it.
5
5
 
6
6
  ## Rules for contributors (human or agent)
package/COMPAT.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Compatibility with tldraw 5.4
2
2
 
3
- mocanvas reimplements the tldraw API from scratch, under MIT, without reading
3
+ mocanvas reimplements the tldraw API from scratch, without reading
4
4
  tldraw's source — see [CLEAN_ROOM.md](CLEAN_ROOM.md). This document says what
5
5
  that covers today, what it deliberately does not, and where the two libraries
6
6
  behave differently on purpose.
@@ -199,7 +199,7 @@ services tldraw operates", which was wrong about sync — see below.
199
199
 
200
200
  | | Why |
201
201
  | :--- | :--- |
202
- | Licensing, watermark, license telemetry | mocanvas is MIT; there is no licence to check. `licenseKey` is accepted and ignored. |
202
+ | Licensing, watermark, license telemetry | mocanvas's own licence is a written agreement, not a key the canvas checks at runtime, so there is nothing to verify and no watermark to draw. `licenseKey` is accepted and ignored. |
203
203
  | `useSyncDemo` | Points at demo servers tldraw hosts. The only symbol in `@tldraw/sync` that genuinely does. |
204
204
  | The tldraw asset CDN defaults | The asset mechanism is kept; the host is not. Supply your own `AssetStore`. |
205
205
  | Third-party embed unfurling and integrations | Each is a call to somebody's API. `EmbedShapeUtil.configure({ embedConfig })` lets an app supply its own. |
package/LICENSE CHANGED
@@ -1,21 +1,115 @@
1
- MIT License
1
+ mocanvas License
2
+ Copyright (c) 2026 Symbio Digital. All rights reserved.
2
3
 
3
- Copyright (c) 2026 Symbio Digital
4
+ This software is source-available, not open source. It is free for the uses
5
+ listed in section 2. Commercial Use requires a separate written agreement with
6
+ Symbio Digital: contact mocanvas@symbio.agency.
4
7
 
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
8
 
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
9
+ 1. DEFINITIONS
10
+
11
+ "Software" means mocanvas — the packages published under the @mocanvas scope,
12
+ their source code, compiled artefacts, documentation and accompanying files.
13
+
14
+ "You" means the individual or legal entity exercising the rights granted below.
15
+
16
+ "Commercial Use" means any use of the Software in, or in the development or
17
+ operation of, a product, service, website, application or internal tool that is:
18
+
19
+ (a) sold, licensed, rented or otherwise offered for a fee;
20
+ (b) used to generate revenue directly or indirectly, including through
21
+ advertising, sponsorship, subscription or transaction fees; or
22
+ (c) used in the ordinary business operations of a for-profit entity.
23
+
24
+ "Non-Profit Organisation" means an entity organised and operated for charitable,
25
+ educational, scientific, cultural, religious or similar purposes, which does not
26
+ distribute profits to owners or shareholders, and which is recognised as such
27
+ under the law of its jurisdiction.
28
+
29
+ "Development Use" means use on a developer's own machine, or in evaluation,
30
+ testing, continuous integration, review or staging environments, where the
31
+ result is not offered to the public and is not used to operate a product or
32
+ service.
33
+
34
+
35
+ 2. GRANT
36
+
37
+ Subject to the terms of this Licence, Symbio Digital grants You a worldwide,
38
+ royalty-free, non-exclusive, non-transferable, revocable licence to use, copy,
39
+ modify and create derivative works of the Software, solely for:
40
+
41
+ (a) personal use that is not Commercial Use;
42
+ (b) use by a Non-Profit Organisation in pursuit of its non-profit purposes;
43
+ (c) Development Use, including by a for-profit entity evaluating the Software;
44
+ (d) teaching, study and academic research.
45
+
46
+ You may distribute the Software, or a derivative work of it, only if the
47
+ recipient receives it under this Licence, unmodified, with the notices in
48
+ section 4 intact, and only for the purposes above.
49
+
50
+
51
+ 3. COMMERCIAL USE
52
+
53
+ Commercial Use is not granted by this Licence. It requires a separate written
54
+ agreement with Symbio Digital.
55
+
56
+ Development Use under section 2(c) is permitted before such an agreement is in
57
+ place, so that a for-profit entity may evaluate the Software and build against
58
+ it — but shipping, deploying or operating the result as part of a commercial
59
+ product, service or website is Commercial Use and requires the agreement first.
60
+
61
+ To obtain one, contact:
62
+
63
+ mocanvas@symbio.agency
64
+
65
+
66
+ 4. CONDITIONS
67
+
68
+ You must retain, in all copies and derivative works of the Software, this
69
+ Licence text, the copyright notice above, and any notices identifying Symbio
70
+ Digital as the author.
71
+
72
+ You may not sublicense the Software, remove or alter its licence notices, or
73
+ represent that the Software is available under different terms.
74
+
75
+
76
+ 5. THIRD-PARTY COMPONENTS
77
+
78
+ The Software depends on third-party components distributed under their own
79
+ licences. Those licences govern those components, and nothing in this Licence
80
+ limits rights You have under them.
81
+
82
+
83
+ 6. NO WARRANTY
14
84
 
15
85
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
86
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
87
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
88
+
89
+
90
+ 7. LIMITATION OF LIABILITY
91
+
92
+ TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL SYMBIO
93
+ DIGITAL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
94
+ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
95
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
96
+
97
+
98
+ 8. TERMINATION
99
+
100
+ This Licence terminates automatically if You breach it. On termination You must
101
+ stop using the Software and destroy all copies in Your possession. Sections 5
102
+ through 7 survive termination.
103
+
104
+
105
+ 9. PRIOR RELEASES
106
+
107
+ Versions of the Software released under the MIT Licence remain available under
108
+ that licence, on the terms under which they were released. This Licence governs
109
+ this version and later ones.
110
+
111
+
112
+ 10. CONTACT
113
+
114
+ mocanvas@symbio.agency
115
+ Symbio Digital
package/README.md CHANGED
@@ -61,4 +61,21 @@ package's README for how the `.wasm` file is resolved by your bundler.
61
61
 
62
62
  ## License
63
63
 
64
- MIT
64
+ **Source-available, not open source.** Free to use for:
65
+
66
+ - personal, non-commercial projects;
67
+ - non-profit organisations;
68
+ - development, evaluation, testing and staging — including inside a for-profit
69
+ company, so you can try it and build against it before committing;
70
+ - teaching and academic research.
71
+
72
+ **Shipping it in a commercial product, service or website needs a written
73
+ agreement with us.** That includes anything sold, anything that earns revenue
74
+ directly or through advertising, and internal tools running a for-profit
75
+ business.
76
+
77
+ To arrange one, or if you are unsure which side of the line you are on, write to
78
+ **mocanvas@symbio.agency** — we would rather answer the question than have you
79
+ guess.
80
+
81
+ The full terms are in `LICENSE`, shipped in this package.
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@mocanvas/editor",
3
- "version": "3.1.1",
3
+ "version": "4.0.1",
4
4
  "description": "The mocanvas editor core: Editor, ShapeUtil, StateNode, geometry, bindings and the <Canvas /> renderer.",
5
- "license": "MIT",
5
+ "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Symbio Digital",
7
7
  "keywords": [
8
8
  "canvas",
@@ -45,9 +45,9 @@
45
45
  "access": "public"
46
46
  },
47
47
  "dependencies": {
48
- "@mocanvas/store": "3.1.1",
49
- "@mocanvas/state": "3.1.1",
50
- "@mocanvas/wasm": "3.1.1"
48
+ "@mocanvas/state": "4.0.1",
49
+ "@mocanvas/wasm": "4.0.1",
50
+ "@mocanvas/store": "4.0.1"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/react": "^19.1.0",