@atlaskit/node-data-provider 8.3.1 → 8.3.2
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/node-data-provider
|
|
2
2
|
|
|
3
|
+
## 8.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`53c9f85806f98`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/53c9f85806f98) -
|
|
8
|
+
EDITOR-5275 Store synced blocks data in session storage for look up during page transitions
|
|
9
|
+
|
|
3
10
|
## 8.3.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -336,6 +336,17 @@ var NodeDataProvider = exports.NodeDataProvider = /*#__PURE__*/function () {
|
|
|
336
336
|
return this.cache[dataKey];
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
+
/**
|
|
340
|
+
* Returns the keys of the cache.
|
|
341
|
+
*
|
|
342
|
+
* @returns An array of the keys of the cache.
|
|
343
|
+
*/
|
|
344
|
+
}, {
|
|
345
|
+
key: "getNodeDataCacheKeys",
|
|
346
|
+
value: function getNodeDataCacheKeys() {
|
|
347
|
+
return Object.keys(this.cache);
|
|
348
|
+
}
|
|
349
|
+
|
|
339
350
|
/**
|
|
340
351
|
* Updates the cache with new records using merge or replace strategies.
|
|
341
352
|
* This method should be the only way to modify the cache directly.
|
|
@@ -301,6 +301,15 @@ export class NodeDataProvider {
|
|
|
301
301
|
return this.cache[dataKey];
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
+
/**
|
|
305
|
+
* Returns the keys of the cache.
|
|
306
|
+
*
|
|
307
|
+
* @returns An array of the keys of the cache.
|
|
308
|
+
*/
|
|
309
|
+
getNodeDataCacheKeys() {
|
|
310
|
+
return Object.keys(this.cache);
|
|
311
|
+
}
|
|
312
|
+
|
|
304
313
|
/**
|
|
305
314
|
* Updates the cache with new records using merge or replace strategies.
|
|
306
315
|
* This method should be the only way to modify the cache directly.
|
|
@@ -333,6 +333,17 @@ export var NodeDataProvider = /*#__PURE__*/function () {
|
|
|
333
333
|
return this.cache[dataKey];
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
+
/**
|
|
337
|
+
* Returns the keys of the cache.
|
|
338
|
+
*
|
|
339
|
+
* @returns An array of the keys of the cache.
|
|
340
|
+
*/
|
|
341
|
+
}, {
|
|
342
|
+
key: "getNodeDataCacheKeys",
|
|
343
|
+
value: function getNodeDataCacheKeys() {
|
|
344
|
+
return Object.keys(this.cache);
|
|
345
|
+
}
|
|
346
|
+
|
|
336
347
|
/**
|
|
337
348
|
* Updates the cache with new records using merge or replace strategies.
|
|
338
349
|
* This method should be the only way to modify the cache directly.
|
|
@@ -171,6 +171,12 @@ export declare abstract class NodeDataProvider<Node extends JSONNode, Data> {
|
|
|
171
171
|
* @returns The cached data object containing `data` and `source`, or `undefined` if no cache entry exists.
|
|
172
172
|
*/
|
|
173
173
|
getNodeDataFromCache(node: JSONNode | PMNode): CacheData<Data>[string] | undefined;
|
|
174
|
+
/**
|
|
175
|
+
* Returns the keys of the cache.
|
|
176
|
+
*
|
|
177
|
+
* @returns An array of the keys of the cache.
|
|
178
|
+
*/
|
|
179
|
+
getNodeDataCacheKeys(): string[];
|
|
174
180
|
/**
|
|
175
181
|
* Updates the cache with new records using merge or replace strategies.
|
|
176
182
|
* This method should be the only way to modify the cache directly.
|
|
@@ -171,6 +171,12 @@ export declare abstract class NodeDataProvider<Node extends JSONNode, Data> {
|
|
|
171
171
|
* @returns The cached data object containing `data` and `source`, or `undefined` if no cache entry exists.
|
|
172
172
|
*/
|
|
173
173
|
getNodeDataFromCache(node: JSONNode | PMNode): CacheData<Data>[string] | undefined;
|
|
174
|
+
/**
|
|
175
|
+
* Returns the keys of the cache.
|
|
176
|
+
*
|
|
177
|
+
* @returns An array of the keys of the cache.
|
|
178
|
+
*/
|
|
179
|
+
getNodeDataCacheKeys(): string[];
|
|
174
180
|
/**
|
|
175
181
|
* Updates the cache with new records using merge or replace strategies.
|
|
176
182
|
* This method should be the only way to modify the cache directly.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/node-data-provider",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.2",
|
|
4
4
|
"description": "Node data provider for @atlaskit/editor-core plugins and @atlaskit/renderer",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"@atlaskit/editor-json-transformer": "^8.31.0",
|
|
23
23
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
24
24
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
25
|
-
"@atlaskit/tmp-editor-statsig": "^25.
|
|
25
|
+
"@atlaskit/tmp-editor-statsig": "^25.2.0",
|
|
26
26
|
"@babel/runtime": "^7.0.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@atlaskit/editor-common": "^111.
|
|
29
|
+
"@atlaskit/editor-common": "^111.14.0"
|
|
30
30
|
},
|
|
31
31
|
"techstack": {
|
|
32
32
|
"@atlassian/frontend": {
|