@salesforce/lds-drafts 1.284.0 → 1.286.0

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/ldsDrafts.js CHANGED
@@ -524,10 +524,6 @@ class DurableDraftQueue {
524
524
  switch (result) {
525
525
  case ProcessActionResult.BLOCKED_ON_ERROR:
526
526
  this.state = DraftQueueState.Error;
527
- await this.notifyChangedListeners({
528
- type: DraftQueueEventType.QueueStateChanged,
529
- state: this.state,
530
- });
531
527
  return Promise.reject();
532
528
  default:
533
529
  return Promise.resolve();
@@ -673,6 +669,10 @@ class DurableDraftQueue {
673
669
  if (status === DraftActionStatus.Error) {
674
670
  this.state = DraftQueueState.Error;
675
671
  this.processingAction = undefined;
672
+ this.notifyChangedListeners({
673
+ type: DraftQueueEventType.ActionFailed,
674
+ action: action,
675
+ });
676
676
  return ProcessActionResult.BLOCKED_ON_ERROR;
677
677
  }
678
678
  if (id === this.uploadingActionId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-drafts",
3
- "version": "1.284.0",
3
+ "version": "1.286.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS Drafts",
6
6
  "main": "dist/ldsDrafts.js",
@@ -24,8 +24,8 @@
24
24
  "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-drafts"
25
25
  },
26
26
  "dependencies": {
27
- "@luvio/engine": "0.154.15",
28
- "@luvio/environments": "0.154.15",
29
- "@salesforce/lds-utils-adapters": "^1.284.0"
27
+ "@luvio/engine": "0.154.16",
28
+ "@luvio/environments": "0.154.16",
29
+ "@salesforce/lds-utils-adapters": "^1.286.0"
30
30
  }
31
31
  }