@atlaskit/editor-synced-block-provider 3.5.0 → 3.5.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-synced-block-provider
|
|
2
2
|
|
|
3
|
+
## 3.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`19ca45d2afec9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/19ca45d2afec9) -
|
|
8
|
+
EDITOR-3596 Fix mentions and profile card in Synced Blocks in Jira Renderer
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 3.5.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -391,7 +391,7 @@ var ReferenceSyncBlockStoreManager = exports.ReferenceSyncBlockStoreManager = /*
|
|
|
391
391
|
// When a block is moved, the old component unmounts before the new one mounts.
|
|
392
392
|
// By delaying deletion, we give the new component time to subscribe and
|
|
393
393
|
// cancel this pending deletion, preserving the cached data.
|
|
394
|
-
// TODO: EDITOR-4152 - Rework this logic
|
|
394
|
+
// TODO: EDITOR-4152 - Rework this logic
|
|
395
395
|
var deletionTimeout = setTimeout(function () {
|
|
396
396
|
// Only delete if still no subscribers (wasn't re-subscribed)
|
|
397
397
|
if (!_this3.subscriptions.has(resourceId)) {
|
|
@@ -504,6 +504,16 @@ var ReferenceSyncBlockStoreManager = exports.ReferenceSyncBlockStoreManager = /*
|
|
|
504
504
|
taskDecisionProvider: parentDataProviders === null || parentDataProviders === void 0 ? void 0 : parentDataProviders.taskDecisionProvider
|
|
505
505
|
});
|
|
506
506
|
this.providerFactories.set(resourceId, providerFactory);
|
|
507
|
+
} else {
|
|
508
|
+
if (parentDataProviders !== null && parentDataProviders !== void 0 && parentDataProviders.mentionProvider) {
|
|
509
|
+
providerFactory.setProvider('mentionProvider', parentDataProviders === null || parentDataProviders === void 0 ? void 0 : parentDataProviders.mentionProvider);
|
|
510
|
+
}
|
|
511
|
+
if (parentDataProviders !== null && parentDataProviders !== void 0 && parentDataProviders.profilecardProvider) {
|
|
512
|
+
providerFactory.setProvider('profilecardProvider', parentDataProviders === null || parentDataProviders === void 0 ? void 0 : parentDataProviders.profilecardProvider);
|
|
513
|
+
}
|
|
514
|
+
if (parentDataProviders !== null && parentDataProviders !== void 0 && parentDataProviders.taskDecisionProvider) {
|
|
515
|
+
providerFactory.setProvider('taskDecisionProvider', parentDataProviders === null || parentDataProviders === void 0 ? void 0 : parentDataProviders.taskDecisionProvider);
|
|
516
|
+
}
|
|
507
517
|
}
|
|
508
518
|
if (providerCreator) {
|
|
509
519
|
try {
|
|
@@ -273,7 +273,7 @@ export class ReferenceSyncBlockStoreManager {
|
|
|
273
273
|
// When a block is moved, the old component unmounts before the new one mounts.
|
|
274
274
|
// By delaying deletion, we give the new component time to subscribe and
|
|
275
275
|
// cancel this pending deletion, preserving the cached data.
|
|
276
|
-
// TODO: EDITOR-4152 - Rework this logic
|
|
276
|
+
// TODO: EDITOR-4152 - Rework this logic
|
|
277
277
|
const deletionTimeout = setTimeout(() => {
|
|
278
278
|
// Only delete if still no subscribers (wasn't re-subscribed)
|
|
279
279
|
if (!this.subscriptions.has(resourceId)) {
|
|
@@ -383,6 +383,16 @@ export class ReferenceSyncBlockStoreManager {
|
|
|
383
383
|
taskDecisionProvider: parentDataProviders === null || parentDataProviders === void 0 ? void 0 : parentDataProviders.taskDecisionProvider
|
|
384
384
|
});
|
|
385
385
|
this.providerFactories.set(resourceId, providerFactory);
|
|
386
|
+
} else {
|
|
387
|
+
if (parentDataProviders !== null && parentDataProviders !== void 0 && parentDataProviders.mentionProvider) {
|
|
388
|
+
providerFactory.setProvider('mentionProvider', parentDataProviders === null || parentDataProviders === void 0 ? void 0 : parentDataProviders.mentionProvider);
|
|
389
|
+
}
|
|
390
|
+
if (parentDataProviders !== null && parentDataProviders !== void 0 && parentDataProviders.profilecardProvider) {
|
|
391
|
+
providerFactory.setProvider('profilecardProvider', parentDataProviders === null || parentDataProviders === void 0 ? void 0 : parentDataProviders.profilecardProvider);
|
|
392
|
+
}
|
|
393
|
+
if (parentDataProviders !== null && parentDataProviders !== void 0 && parentDataProviders.taskDecisionProvider) {
|
|
394
|
+
providerFactory.setProvider('taskDecisionProvider', parentDataProviders === null || parentDataProviders === void 0 ? void 0 : parentDataProviders.taskDecisionProvider);
|
|
395
|
+
}
|
|
386
396
|
}
|
|
387
397
|
if (providerCreator) {
|
|
388
398
|
try {
|
|
@@ -385,7 +385,7 @@ export var ReferenceSyncBlockStoreManager = /*#__PURE__*/function () {
|
|
|
385
385
|
// When a block is moved, the old component unmounts before the new one mounts.
|
|
386
386
|
// By delaying deletion, we give the new component time to subscribe and
|
|
387
387
|
// cancel this pending deletion, preserving the cached data.
|
|
388
|
-
// TODO: EDITOR-4152 - Rework this logic
|
|
388
|
+
// TODO: EDITOR-4152 - Rework this logic
|
|
389
389
|
var deletionTimeout = setTimeout(function () {
|
|
390
390
|
// Only delete if still no subscribers (wasn't re-subscribed)
|
|
391
391
|
if (!_this3.subscriptions.has(resourceId)) {
|
|
@@ -498,6 +498,16 @@ export var ReferenceSyncBlockStoreManager = /*#__PURE__*/function () {
|
|
|
498
498
|
taskDecisionProvider: parentDataProviders === null || parentDataProviders === void 0 ? void 0 : parentDataProviders.taskDecisionProvider
|
|
499
499
|
});
|
|
500
500
|
this.providerFactories.set(resourceId, providerFactory);
|
|
501
|
+
} else {
|
|
502
|
+
if (parentDataProviders !== null && parentDataProviders !== void 0 && parentDataProviders.mentionProvider) {
|
|
503
|
+
providerFactory.setProvider('mentionProvider', parentDataProviders === null || parentDataProviders === void 0 ? void 0 : parentDataProviders.mentionProvider);
|
|
504
|
+
}
|
|
505
|
+
if (parentDataProviders !== null && parentDataProviders !== void 0 && parentDataProviders.profilecardProvider) {
|
|
506
|
+
providerFactory.setProvider('profilecardProvider', parentDataProviders === null || parentDataProviders === void 0 ? void 0 : parentDataProviders.profilecardProvider);
|
|
507
|
+
}
|
|
508
|
+
if (parentDataProviders !== null && parentDataProviders !== void 0 && parentDataProviders.taskDecisionProvider) {
|
|
509
|
+
providerFactory.setProvider('taskDecisionProvider', parentDataProviders === null || parentDataProviders === void 0 ? void 0 : parentDataProviders.taskDecisionProvider);
|
|
510
|
+
}
|
|
501
511
|
}
|
|
502
512
|
if (providerCreator) {
|
|
503
513
|
try {
|
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"uuid": "^3.1.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@atlaskit/editor-common": "^111.
|
|
37
|
+
"@atlaskit/editor-common": "^111.6.0",
|
|
38
38
|
"react": "^18.2.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
"name": "@atlaskit/editor-synced-block-provider",
|
|
80
|
-
"version": "3.5.
|
|
80
|
+
"version": "3.5.1",
|
|
81
81
|
"description": "Synced Block Provider for @atlaskit/editor-plugin-synced-block",
|
|
82
82
|
"author": "Atlassian Pty Ltd",
|
|
83
83
|
"license": "Apache-2.0",
|