prosemirror-rs 0.3.5 → 0.3.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.
package/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "prosemirror-rs-node"
3
- version = "0.3.5"
3
+ version = "0.3.7"
4
4
  authors = [
5
5
  "Johannes Wilm <johannes@fiduswriter.org>",
6
6
  "Daniel Seiler <me@dseiler.eu>",
package/index.d.ts CHANGED
@@ -100,9 +100,13 @@ export declare class Editor {
100
100
  * passed to JavaScript. Suitable for saving directly to a database without
101
101
  * creating any intermediate JS objects.
102
102
  *
103
+ * When `skipDefaults` is `true`, attributes whose value matches the
104
+ * schema-defined default are omitted from the output ("mini" JSON).
105
+ *
106
+ * @param skipDefaults If true, omit attributes that have default values.
103
107
  * @returns The current document as a compact JSON string.
104
108
  */
105
- docJson(): string;
109
+ docJson(skipDefaults?: boolean): string;
106
110
 
107
111
  /**
108
112
  * Number of steps successfully applied since construction or last `reset()`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prosemirror-rs",
3
- "version": "0.3.5",
3
+ "version": "0.3.7",
4
4
  "description": "Node.js bindings for prosemirror-rs: a Rust implementation of ProseMirror's document model and transform pipeline",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
Binary file
Binary file
Binary file