@salesforce/lds-runtime-mobile 1.305.0 → 1.306.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.
Files changed (3) hide show
  1. package/dist/main.js +13 -5
  2. package/package.json +18 -18
  3. package/sfdc/main.js +13 -5
package/dist/main.js CHANGED
@@ -6636,9 +6636,14 @@ var DraftQueueOperationType;
6636
6636
  DraftQueueOperationType["ItemCompleted"] = "completed";
6637
6637
  DraftQueueOperationType["ItemFailed"] = "failed";
6638
6638
  DraftQueueOperationType["ItemUpdated"] = "updated";
6639
+ /** @deprecated in 252. All Queue state changed events are consolidated in QueueStateChanged
6640
+ * Planned to be removed in 256 (W-16217436) */
6639
6641
  DraftQueueOperationType["QueueStarted"] = "started";
6642
+ /** @deprecated in 252. All Queue state changed events are consolidated in QueueStateChanged
6643
+ * Planned to be removed in 256 (W-16217436) */
6640
6644
  DraftQueueOperationType["QueueStopped"] = "stopped";
6641
- DraftQueueOperationType["QueueWaiting"] = "waiting";
6645
+ /** @since 252 */
6646
+ DraftQueueOperationType["QueueStateChanged"] = "queueStateChanged";
6642
6647
  })(DraftQueueOperationType || (DraftQueueOperationType = {}));
6643
6648
  /**
6644
6649
  * Converts the internal DraftAction's ResourceRequest into
@@ -6734,8 +6739,6 @@ class DraftManager {
6734
6739
  return DraftQueueOperationType.QueueStarted;
6735
6740
  case DraftQueueState.Stopped:
6736
6741
  return DraftQueueOperationType.QueueStopped;
6737
- case DraftQueueState.Waiting:
6738
- return DraftQueueOperationType.QueueWaiting;
6739
6742
  default:
6740
6743
  throw Error('Unsupported event type');
6741
6744
  }
@@ -6908,7 +6911,12 @@ class DraftManager {
6908
6911
  const managerState = await this.getQueue();
6909
6912
  let operationType, item;
6910
6913
  if (isDraftQueueStateChangeEvent(event)) {
6911
- operationType = this.draftQueueStateToOperationType(event.state);
6914
+ if (this.listenerVersion === undefined) {
6915
+ operationType = this.draftQueueStateToOperationType(event.state);
6916
+ }
6917
+ else {
6918
+ operationType = DraftQueueOperationType.QueueStateChanged;
6919
+ }
6912
6920
  }
6913
6921
  else {
6914
6922
  const { action, type } = event;
@@ -19168,4 +19176,4 @@ register({
19168
19176
  });
19169
19177
 
19170
19178
  export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, registerReportObserver, reportGraphqlQueryParseError };
19171
- // version: 1.305.0-ec970f4bea
19179
+ // version: 1.306.0-66359b439e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-mobile",
3
- "version": "1.305.0",
3
+ "version": "1.306.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS runtime for mobile/hybrid environments.",
6
6
  "main": "dist/main.js",
@@ -32,27 +32,27 @@
32
32
  "release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-mobile"
33
33
  },
34
34
  "dependencies": {
35
- "@salesforce/lds-adapters-uiapi-mobile": "^1.305.0",
36
- "@salesforce/lds-bindings": "^1.305.0",
37
- "@salesforce/lds-instrumentation": "^1.305.0",
38
- "@salesforce/lds-priming": "^1.305.0",
35
+ "@salesforce/lds-adapters-uiapi-mobile": "^1.306.0",
36
+ "@salesforce/lds-bindings": "^1.306.0",
37
+ "@salesforce/lds-instrumentation": "^1.306.0",
38
+ "@salesforce/lds-priming": "^1.306.0",
39
39
  "@salesforce/user": "0.0.21",
40
40
  "o11y": "250.7.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@salesforce/lds-adapters-graphql": "^1.305.0",
44
- "@salesforce/lds-drafts": "^1.305.0",
45
- "@salesforce/lds-drafts-adapters-uiapi": "^1.305.0",
46
- "@salesforce/lds-durable-records": "^1.305.0",
47
- "@salesforce/lds-graphql-eval": "^1.305.0",
48
- "@salesforce/lds-graphql-local-evaluation": "^1.305.0",
49
- "@salesforce/lds-network-adapter": "^1.305.0",
50
- "@salesforce/lds-network-nimbus": "^1.305.0",
51
- "@salesforce/lds-store-binary": "^1.305.0",
52
- "@salesforce/lds-store-nimbus": "^1.305.0",
53
- "@salesforce/lds-store-sql": "^1.305.0",
54
- "@salesforce/lds-utils-adapters": "^1.305.0",
55
- "@salesforce/nimbus-plugin-lds": "^1.305.0",
43
+ "@salesforce/lds-adapters-graphql": "^1.306.0",
44
+ "@salesforce/lds-drafts": "^1.306.0",
45
+ "@salesforce/lds-drafts-adapters-uiapi": "^1.306.0",
46
+ "@salesforce/lds-durable-records": "^1.306.0",
47
+ "@salesforce/lds-graphql-eval": "^1.306.0",
48
+ "@salesforce/lds-graphql-local-evaluation": "^1.306.0",
49
+ "@salesforce/lds-network-adapter": "^1.306.0",
50
+ "@salesforce/lds-network-nimbus": "^1.306.0",
51
+ "@salesforce/lds-store-binary": "^1.306.0",
52
+ "@salesforce/lds-store-nimbus": "^1.306.0",
53
+ "@salesforce/lds-store-sql": "^1.306.0",
54
+ "@salesforce/lds-utils-adapters": "^1.306.0",
55
+ "@salesforce/nimbus-plugin-lds": "^1.306.0",
56
56
  "babel-plugin-dynamic-import-node": "^2.3.3",
57
57
  "wait-for-expect": "^3.0.2"
58
58
  },
package/sfdc/main.js CHANGED
@@ -6636,9 +6636,14 @@ var DraftQueueOperationType;
6636
6636
  DraftQueueOperationType["ItemCompleted"] = "completed";
6637
6637
  DraftQueueOperationType["ItemFailed"] = "failed";
6638
6638
  DraftQueueOperationType["ItemUpdated"] = "updated";
6639
+ /** @deprecated in 252. All Queue state changed events are consolidated in QueueStateChanged
6640
+ * Planned to be removed in 256 (W-16217436) */
6639
6641
  DraftQueueOperationType["QueueStarted"] = "started";
6642
+ /** @deprecated in 252. All Queue state changed events are consolidated in QueueStateChanged
6643
+ * Planned to be removed in 256 (W-16217436) */
6640
6644
  DraftQueueOperationType["QueueStopped"] = "stopped";
6641
- DraftQueueOperationType["QueueWaiting"] = "waiting";
6645
+ /** @since 252 */
6646
+ DraftQueueOperationType["QueueStateChanged"] = "queueStateChanged";
6642
6647
  })(DraftQueueOperationType || (DraftQueueOperationType = {}));
6643
6648
  /**
6644
6649
  * Converts the internal DraftAction's ResourceRequest into
@@ -6734,8 +6739,6 @@ class DraftManager {
6734
6739
  return DraftQueueOperationType.QueueStarted;
6735
6740
  case DraftQueueState.Stopped:
6736
6741
  return DraftQueueOperationType.QueueStopped;
6737
- case DraftQueueState.Waiting:
6738
- return DraftQueueOperationType.QueueWaiting;
6739
6742
  default:
6740
6743
  throw Error('Unsupported event type');
6741
6744
  }
@@ -6908,7 +6911,12 @@ class DraftManager {
6908
6911
  const managerState = await this.getQueue();
6909
6912
  let operationType, item;
6910
6913
  if (isDraftQueueStateChangeEvent(event)) {
6911
- operationType = this.draftQueueStateToOperationType(event.state);
6914
+ if (this.listenerVersion === undefined) {
6915
+ operationType = this.draftQueueStateToOperationType(event.state);
6916
+ }
6917
+ else {
6918
+ operationType = DraftQueueOperationType.QueueStateChanged;
6919
+ }
6912
6920
  }
6913
6921
  else {
6914
6922
  const { action, type } = event;
@@ -19168,4 +19176,4 @@ register({
19168
19176
  });
19169
19177
 
19170
19178
  export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, registerReportObserver, reportGraphqlQueryParseError };
19171
- // version: 1.305.0-ec970f4bea
19179
+ // version: 1.306.0-66359b439e