@atlaskit/editor-synced-block-provider 3.13.0 → 3.13.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,12 @@
1
1
  # @atlaskit/editor-synced-block-provider
2
2
 
3
+ ## 3.13.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ab11bedd7f6e6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ab11bedd7f6e6) -
8
+ Fix over logging of source ari not found error
9
+
3
10
  ## 3.13.0
4
11
 
5
12
  ### Minor Changes
@@ -893,7 +893,7 @@ var ReferenceSyncBlockStoreManager = exports.ReferenceSyncBlockStoreManager = /*
893
893
  }, {
894
894
  key: "retrieveDynamicProviders",
895
895
  value: function retrieveDynamicProviders(resourceId, providerFactory, providerCreator) {
896
- var _syncBlock$data2, _syncBlock$data3, _syncBlock$data4, _syncBlock$data5;
896
+ var _syncBlock$data2, _syncBlock$data3;
897
897
  if (!this.dataProvider) {
898
898
  throw new Error('Data provider not set');
899
899
  }
@@ -904,15 +904,15 @@ var ReferenceSyncBlockStoreManager = exports.ReferenceSyncBlockStoreManager = /*
904
904
  return;
905
905
  }
906
906
  var syncBlock = this.getFromCache(resourceId);
907
- if (!syncBlock) {
907
+ if (!(syncBlock !== null && syncBlock !== void 0 && syncBlock.data)) {
908
908
  return;
909
909
  }
910
- if (!((_syncBlock$data2 = syncBlock.data) !== null && _syncBlock$data2 !== void 0 && _syncBlock$data2.sourceAri) || !((_syncBlock$data3 = syncBlock.data) !== null && _syncBlock$data3 !== void 0 && _syncBlock$data3.product)) {
910
+ if (!syncBlock.data.sourceAri || !syncBlock.data.product) {
911
911
  var _this$fireAnalyticsEv7;
912
912
  (_this$fireAnalyticsEv7 = this.fireAnalyticsEvent) === null || _this$fireAnalyticsEv7 === void 0 || _this$fireAnalyticsEv7.call(this, (0, _errorHandling.fetchErrorPayload)('Sync block source ari or product not found'));
913
913
  return;
914
914
  }
915
- var parentInfo = this.dataProvider.retrieveSyncBlockParentInfo((_syncBlock$data4 = syncBlock.data) === null || _syncBlock$data4 === void 0 ? void 0 : _syncBlock$data4.sourceAri, (_syncBlock$data5 = syncBlock.data) === null || _syncBlock$data5 === void 0 ? void 0 : _syncBlock$data5.product);
915
+ var parentInfo = this.dataProvider.retrieveSyncBlockParentInfo((_syncBlock$data2 = syncBlock.data) === null || _syncBlock$data2 === void 0 ? void 0 : _syncBlock$data2.sourceAri, (_syncBlock$data3 = syncBlock.data) === null || _syncBlock$data3 === void 0 ? void 0 : _syncBlock$data3.product);
916
916
  if (!parentInfo) {
917
917
  throw new Error('Unable to retrive sync block parent info');
918
918
  }
@@ -727,7 +727,7 @@ export class ReferenceSyncBlockStoreManager {
727
727
  return null;
728
728
  }
729
729
  retrieveDynamicProviders(resourceId, providerFactory, providerCreator) {
730
- var _syncBlock$data2, _syncBlock$data3, _syncBlock$data4, _syncBlock$data5;
730
+ var _syncBlock$data2, _syncBlock$data3;
731
731
  if (!this.dataProvider) {
732
732
  throw new Error('Data provider not set');
733
733
  }
@@ -738,15 +738,15 @@ export class ReferenceSyncBlockStoreManager {
738
738
  return;
739
739
  }
740
740
  const syncBlock = this.getFromCache(resourceId);
741
- if (!syncBlock) {
741
+ if (!(syncBlock !== null && syncBlock !== void 0 && syncBlock.data)) {
742
742
  return;
743
743
  }
744
- if (!((_syncBlock$data2 = syncBlock.data) !== null && _syncBlock$data2 !== void 0 && _syncBlock$data2.sourceAri) || !((_syncBlock$data3 = syncBlock.data) !== null && _syncBlock$data3 !== void 0 && _syncBlock$data3.product)) {
744
+ if (!syncBlock.data.sourceAri || !syncBlock.data.product) {
745
745
  var _this$fireAnalyticsEv14;
746
746
  (_this$fireAnalyticsEv14 = this.fireAnalyticsEvent) === null || _this$fireAnalyticsEv14 === void 0 ? void 0 : _this$fireAnalyticsEv14.call(this, fetchErrorPayload('Sync block source ari or product not found'));
747
747
  return;
748
748
  }
749
- const parentInfo = this.dataProvider.retrieveSyncBlockParentInfo((_syncBlock$data4 = syncBlock.data) === null || _syncBlock$data4 === void 0 ? void 0 : _syncBlock$data4.sourceAri, (_syncBlock$data5 = syncBlock.data) === null || _syncBlock$data5 === void 0 ? void 0 : _syncBlock$data5.product);
749
+ const parentInfo = this.dataProvider.retrieveSyncBlockParentInfo((_syncBlock$data2 = syncBlock.data) === null || _syncBlock$data2 === void 0 ? void 0 : _syncBlock$data2.sourceAri, (_syncBlock$data3 = syncBlock.data) === null || _syncBlock$data3 === void 0 ? void 0 : _syncBlock$data3.product);
750
750
  if (!parentInfo) {
751
751
  throw new Error('Unable to retrive sync block parent info');
752
752
  }
@@ -887,7 +887,7 @@ export var ReferenceSyncBlockStoreManager = /*#__PURE__*/function () {
887
887
  }, {
888
888
  key: "retrieveDynamicProviders",
889
889
  value: function retrieveDynamicProviders(resourceId, providerFactory, providerCreator) {
890
- var _syncBlock$data2, _syncBlock$data3, _syncBlock$data4, _syncBlock$data5;
890
+ var _syncBlock$data2, _syncBlock$data3;
891
891
  if (!this.dataProvider) {
892
892
  throw new Error('Data provider not set');
893
893
  }
@@ -898,15 +898,15 @@ export var ReferenceSyncBlockStoreManager = /*#__PURE__*/function () {
898
898
  return;
899
899
  }
900
900
  var syncBlock = this.getFromCache(resourceId);
901
- if (!syncBlock) {
901
+ if (!(syncBlock !== null && syncBlock !== void 0 && syncBlock.data)) {
902
902
  return;
903
903
  }
904
- if (!((_syncBlock$data2 = syncBlock.data) !== null && _syncBlock$data2 !== void 0 && _syncBlock$data2.sourceAri) || !((_syncBlock$data3 = syncBlock.data) !== null && _syncBlock$data3 !== void 0 && _syncBlock$data3.product)) {
904
+ if (!syncBlock.data.sourceAri || !syncBlock.data.product) {
905
905
  var _this$fireAnalyticsEv7;
906
906
  (_this$fireAnalyticsEv7 = this.fireAnalyticsEvent) === null || _this$fireAnalyticsEv7 === void 0 || _this$fireAnalyticsEv7.call(this, fetchErrorPayload('Sync block source ari or product not found'));
907
907
  return;
908
908
  }
909
- var parentInfo = this.dataProvider.retrieveSyncBlockParentInfo((_syncBlock$data4 = syncBlock.data) === null || _syncBlock$data4 === void 0 ? void 0 : _syncBlock$data4.sourceAri, (_syncBlock$data5 = syncBlock.data) === null || _syncBlock$data5 === void 0 ? void 0 : _syncBlock$data5.product);
909
+ var parentInfo = this.dataProvider.retrieveSyncBlockParentInfo((_syncBlock$data2 = syncBlock.data) === null || _syncBlock$data2 === void 0 ? void 0 : _syncBlock$data2.sourceAri, (_syncBlock$data3 = syncBlock.data) === null || _syncBlock$data3 === void 0 ? void 0 : _syncBlock$data3.product);
910
910
  if (!parentInfo) {
911
911
  throw new Error('Unable to retrive sync block parent info');
912
912
  }
package/package.json CHANGED
@@ -78,7 +78,7 @@
78
78
  }
79
79
  },
80
80
  "name": "@atlaskit/editor-synced-block-provider",
81
- "version": "3.13.0",
81
+ "version": "3.13.1",
82
82
  "description": "Synced Block Provider for @atlaskit/editor-plugin-synced-block",
83
83
  "author": "Atlassian Pty Ltd",
84
84
  "license": "Apache-2.0",