@salesforce/lds-runtime-mobile 1.146.0 → 1.147.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/main.js +9 -3
- package/dist/types/runtime.d.ts +2 -1
- package/package.json +1 -1
- package/sfdc/main.js +9 -3
- package/sfdc/types/runtime.d.ts +2 -1
package/dist/main.js
CHANGED
|
@@ -15859,6 +15859,7 @@ function primingSessionFactory(config) {
|
|
|
15859
15859
|
let lazyDraftQueue;
|
|
15860
15860
|
let lazyDraftManager;
|
|
15861
15861
|
let lazyLuvio;
|
|
15862
|
+
let lazyEnvironment;
|
|
15862
15863
|
let lazyBaseDurableStore;
|
|
15863
15864
|
let lazyNetworkAdapter;
|
|
15864
15865
|
let lazyObjectInfoService;
|
|
@@ -15866,7 +15867,10 @@ let lazyObjectInfoService;
|
|
|
15866
15867
|
* This returns the LDS on Mobile Runtime singleton object.
|
|
15867
15868
|
*/
|
|
15868
15869
|
function getRuntime() {
|
|
15869
|
-
if (lazyLuvio === undefined ||
|
|
15870
|
+
if (lazyLuvio === undefined ||
|
|
15871
|
+
lazyEnvironment === undefined ||
|
|
15872
|
+
lazyDraftManager === undefined ||
|
|
15873
|
+
lazyDraftQueue === undefined) {
|
|
15870
15874
|
// coerce runtime provided userID values to the 18 character version used in LDS
|
|
15871
15875
|
const userId = getRecordId18(caseSensitiveUserId);
|
|
15872
15876
|
if (userId === undefined || userId.length !== 18) {
|
|
@@ -15924,7 +15928,8 @@ function getRuntime() {
|
|
|
15924
15928
|
isDraftId: isGenerated,
|
|
15925
15929
|
}, draftEnv);
|
|
15926
15930
|
draftEnv = performQuickActionDraftEnvironment(lazyLuvio, draftEnv, quickActionHandler);
|
|
15927
|
-
|
|
15931
|
+
lazyEnvironment = draftEnv;
|
|
15932
|
+
lazyLuvio = new Luvio(lazyEnvironment, {
|
|
15928
15933
|
instrument: instrumentLuvio,
|
|
15929
15934
|
});
|
|
15930
15935
|
// Currently instruments store runtime perf
|
|
@@ -15970,6 +15975,7 @@ function getRuntime() {
|
|
|
15970
15975
|
}
|
|
15971
15976
|
return {
|
|
15972
15977
|
luvio: lazyLuvio,
|
|
15978
|
+
environment: lazyEnvironment,
|
|
15973
15979
|
draftManager: lazyDraftManager,
|
|
15974
15980
|
draftQueue: lazyDraftQueue,
|
|
15975
15981
|
createPrimingSession: (config) => {
|
|
@@ -15997,4 +16003,4 @@ register({
|
|
|
15997
16003
|
});
|
|
15998
16004
|
|
|
15999
16005
|
export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
|
|
16000
|
-
// version: 1.
|
|
16006
|
+
// version: 1.147.0-f9a768a91
|
package/dist/types/runtime.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Luvio } from '@luvio/engine';
|
|
1
|
+
import { Luvio, Environment } from '@luvio/engine';
|
|
2
2
|
import { DraftManager } from '@salesforce/lds-drafts';
|
|
3
3
|
import type { DraftQueue } from '@salesforce/lds-drafts';
|
|
4
4
|
import type { PrimingSession } from '@salesforce/lds-priming';
|
|
5
5
|
export interface Runtime {
|
|
6
6
|
luvio: Luvio;
|
|
7
|
+
environment: Environment;
|
|
7
8
|
draftQueue: DraftQueue;
|
|
8
9
|
draftManager: DraftManager;
|
|
9
10
|
createPrimingSession: (config: {
|
package/package.json
CHANGED
package/sfdc/main.js
CHANGED
|
@@ -15859,6 +15859,7 @@ function primingSessionFactory(config) {
|
|
|
15859
15859
|
let lazyDraftQueue;
|
|
15860
15860
|
let lazyDraftManager;
|
|
15861
15861
|
let lazyLuvio;
|
|
15862
|
+
let lazyEnvironment;
|
|
15862
15863
|
let lazyBaseDurableStore;
|
|
15863
15864
|
let lazyNetworkAdapter;
|
|
15864
15865
|
let lazyObjectInfoService;
|
|
@@ -15866,7 +15867,10 @@ let lazyObjectInfoService;
|
|
|
15866
15867
|
* This returns the LDS on Mobile Runtime singleton object.
|
|
15867
15868
|
*/
|
|
15868
15869
|
function getRuntime() {
|
|
15869
|
-
if (lazyLuvio === undefined ||
|
|
15870
|
+
if (lazyLuvio === undefined ||
|
|
15871
|
+
lazyEnvironment === undefined ||
|
|
15872
|
+
lazyDraftManager === undefined ||
|
|
15873
|
+
lazyDraftQueue === undefined) {
|
|
15870
15874
|
// coerce runtime provided userID values to the 18 character version used in LDS
|
|
15871
15875
|
const userId = getRecordId18(caseSensitiveUserId);
|
|
15872
15876
|
if (userId === undefined || userId.length !== 18) {
|
|
@@ -15924,7 +15928,8 @@ function getRuntime() {
|
|
|
15924
15928
|
isDraftId: isGenerated,
|
|
15925
15929
|
}, draftEnv);
|
|
15926
15930
|
draftEnv = performQuickActionDraftEnvironment(lazyLuvio, draftEnv, quickActionHandler);
|
|
15927
|
-
|
|
15931
|
+
lazyEnvironment = draftEnv;
|
|
15932
|
+
lazyLuvio = new Luvio(lazyEnvironment, {
|
|
15928
15933
|
instrument: instrumentLuvio,
|
|
15929
15934
|
});
|
|
15930
15935
|
// Currently instruments store runtime perf
|
|
@@ -15970,6 +15975,7 @@ function getRuntime() {
|
|
|
15970
15975
|
}
|
|
15971
15976
|
return {
|
|
15972
15977
|
luvio: lazyLuvio,
|
|
15978
|
+
environment: lazyEnvironment,
|
|
15973
15979
|
draftManager: lazyDraftManager,
|
|
15974
15980
|
draftQueue: lazyDraftQueue,
|
|
15975
15981
|
createPrimingSession: (config) => {
|
|
@@ -15997,4 +16003,4 @@ register({
|
|
|
15997
16003
|
});
|
|
15998
16004
|
|
|
15999
16005
|
export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
|
|
16000
|
-
// version: 1.
|
|
16006
|
+
// version: 1.147.0-f9a768a91
|
package/sfdc/types/runtime.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Luvio } from '@luvio/engine';
|
|
1
|
+
import { Luvio, Environment } from '@luvio/engine';
|
|
2
2
|
import { DraftManager } from '@salesforce/lds-drafts';
|
|
3
3
|
import type { DraftQueue } from '@salesforce/lds-drafts';
|
|
4
4
|
import type { PrimingSession } from '@salesforce/lds-priming';
|
|
5
5
|
export interface Runtime {
|
|
6
6
|
luvio: Luvio;
|
|
7
|
+
environment: Environment;
|
|
7
8
|
draftQueue: DraftQueue;
|
|
8
9
|
draftManager: DraftManager;
|
|
9
10
|
createPrimingSession: (config: {
|