hadron-document
Advanced tools
Comparing version 0.0.0-next-35bf965a922e2f25452ff3b3347954aa1b2fa660 to 0.0.0-next-36a5c119cc73dfc86ee43803a157741440b42554
@@ -37,2 +37,3 @@ import type { Element } from './element'; | ||
markedForDeletion: boolean; | ||
modifiedEJSONString: string | null; | ||
/** | ||
@@ -230,4 +231,5 @@ * Send cancel event. | ||
onRemoveError(error: Error): void; | ||
setModifiedEJSONString(ejson: string | null): void; | ||
} | ||
export default Document; | ||
//# sourceMappingURL=document.d.ts.map |
@@ -59,2 +59,5 @@ 'use strict'; | ||
this.markedForDeletion = false; | ||
// This is used to store the changed EJSON string when the document is modified | ||
// via the JSONEditor. | ||
this.modifiedEJSONString = null; | ||
this.uuid = new bson_1.UUID().toHexString(); | ||
@@ -389,2 +392,3 @@ this.doc = doc; | ||
this.editing = false; | ||
this.setModifiedEJSONString(null); | ||
this.emit(_1.DocumentEvents.EditingFinished); | ||
@@ -428,2 +432,5 @@ } | ||
} | ||
setModifiedEJSONString(ejson) { | ||
this.modifiedEJSONString = ejson; | ||
} | ||
} | ||
@@ -430,0 +437,0 @@ exports.Document = Document; |
@@ -10,3 +10,3 @@ { | ||
"homepage": "https://github.com/mongodb-js/compass", | ||
"version": "0.0.0-next-35bf965a922e2f25452ff3b3347954aa1b2fa660", | ||
"version": "0.0.0-next-36a5c119cc73dfc86ee43803a157741440b42554", | ||
"repository": { | ||
@@ -50,12 +50,12 @@ "type": "git", | ||
"dependencies": { | ||
"bson": "^6.7.0", | ||
"bson": "^6.8.0", | ||
"eventemitter3": "^4.0.0", | ||
"hadron-type-checker": "0.0.0-next-35bf965a922e2f25452ff3b3347954aa1b2fa660", | ||
"hadron-type-checker": "0.0.0-next-36a5c119cc73dfc86ee43803a157741440b42554", | ||
"lodash": "^4.17.21" | ||
}, | ||
"devDependencies": { | ||
"@mongodb-js/eslint-config-compass": "0.0.0-next-35bf965a922e2f25452ff3b3347954aa1b2fa660", | ||
"@mongodb-js/mocha-config-compass": "0.0.0-next-35bf965a922e2f25452ff3b3347954aa1b2fa660", | ||
"@mongodb-js/prettier-config-compass": "0.0.0-next-35bf965a922e2f25452ff3b3347954aa1b2fa660", | ||
"@mongodb-js/tsconfig-compass": "0.0.0-next-35bf965a922e2f25452ff3b3347954aa1b2fa660", | ||
"@mongodb-js/eslint-config-compass": "0.0.0-next-36a5c119cc73dfc86ee43803a157741440b42554", | ||
"@mongodb-js/mocha-config-compass": "0.0.0-next-36a5c119cc73dfc86ee43803a157741440b42554", | ||
"@mongodb-js/prettier-config-compass": "0.0.0-next-36a5c119cc73dfc86ee43803a157741440b42554", | ||
"@mongodb-js/tsconfig-compass": "0.0.0-next-36a5c119cc73dfc86ee43803a157741440b42554", | ||
"chai": "^4.2.0", | ||
@@ -70,3 +70,3 @@ "depcheck": "^1.4.1", | ||
}, | ||
"gitHead": "35bf965a922e2f25452ff3b3347954aa1b2fa660" | ||
"gitHead": "36a5c119cc73dfc86ee43803a157741440b42554" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
231717
3760