@flowgram.ai/document 0.1.4 → 0.1.6
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/dist/esm/index.js +14 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/esm/index.js
CHANGED
|
@@ -846,6 +846,13 @@ var FlowNodeEntity = class extends Entity {
|
|
|
846
846
|
this._registerCache = this.document.getNodeRegistry(this.flowNodeType, this.originParent);
|
|
847
847
|
return this._registerCache;
|
|
848
848
|
}
|
|
849
|
+
/**
|
|
850
|
+
* @deprecated
|
|
851
|
+
* use getNodeRegistry instead
|
|
852
|
+
*/
|
|
853
|
+
getNodeRegister() {
|
|
854
|
+
return this.getNodeRegistry();
|
|
855
|
+
}
|
|
849
856
|
getNodeMeta() {
|
|
850
857
|
if (this._metaCache) return this._metaCache;
|
|
851
858
|
if (this.metaFromJSON) {
|
|
@@ -1913,6 +1920,13 @@ var FlowDocument = class {
|
|
|
1913
1920
|
nodes: this.root.toJSON().blocks
|
|
1914
1921
|
};
|
|
1915
1922
|
}
|
|
1923
|
+
/**
|
|
1924
|
+
* @deprecated
|
|
1925
|
+
* use `getNodeRegistry` instead
|
|
1926
|
+
*/
|
|
1927
|
+
getNodeRegister(type, originParent) {
|
|
1928
|
+
return this.getNodeRegistry(type, originParent);
|
|
1929
|
+
}
|
|
1916
1930
|
getNodeRegistry(type, originParent) {
|
|
1917
1931
|
const typeKey = `${type}_${originParent?.flowNodeType || ""}`;
|
|
1918
1932
|
if (this.nodeRegistryCache.has(typeKey)) {
|