@salesforce/lds-runtime-mobile 1.288.0 → 1.289.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 +21 -29
- package/package.json +16 -16
- package/sfdc/main.js +21 -29
package/dist/main.js
CHANGED
|
@@ -12577,7 +12577,7 @@ function applyReferenceLinksToDraft(record, draftMetadata) {
|
|
|
12577
12577
|
const referencedRecord = referencedRecords.get(key);
|
|
12578
12578
|
recordFields[relationshipName] = {
|
|
12579
12579
|
displayValue: null,
|
|
12580
|
-
value: createLink(key),
|
|
12580
|
+
value: createLink$1(key),
|
|
12581
12581
|
};
|
|
12582
12582
|
// for custom objects, we select the 'Name' field
|
|
12583
12583
|
// otherwise we check the object info for name fields.
|
|
@@ -12605,7 +12605,7 @@ function applyReferenceLinksToDraft(record, draftMetadata) {
|
|
|
12605
12605
|
}
|
|
12606
12606
|
return { ...record, fields: recordFields };
|
|
12607
12607
|
}
|
|
12608
|
-
function createLink(key) {
|
|
12608
|
+
function createLink$1(key) {
|
|
12609
12609
|
return { __ref: key };
|
|
12610
12610
|
}
|
|
12611
12611
|
function getReferenceInfoForKey(fieldName, field, luvio, objectInfo) {
|
|
@@ -12620,7 +12620,7 @@ function getReferenceInfoForKey(fieldName, field, luvio, objectInfo) {
|
|
|
12620
12620
|
referenceFieldName: relationshipName,
|
|
12621
12621
|
field: {
|
|
12622
12622
|
displayValue: null,
|
|
12623
|
-
value: createLink(key),
|
|
12623
|
+
value: createLink$1(key),
|
|
12624
12624
|
},
|
|
12625
12625
|
};
|
|
12626
12626
|
}
|
|
@@ -13083,6 +13083,9 @@ function isBackdatingFieldEditable(objectInfo, backdatingFieldName, attributeNam
|
|
|
13083
13083
|
!draftActionFieldNames.includes(backdatingFieldName));
|
|
13084
13084
|
}
|
|
13085
13085
|
|
|
13086
|
+
function createLink(key) {
|
|
13087
|
+
return { __ref: key };
|
|
13088
|
+
}
|
|
13086
13089
|
/**
|
|
13087
13090
|
* Records are stored in the durable store with scalar fields denormalized. This function takes that denoramlized
|
|
13088
13091
|
* durable store record representation and normalizes it back out into the format the the luvio store expects it
|
|
@@ -13093,26 +13096,25 @@ function isBackdatingFieldEditable(objectInfo, backdatingFieldName, attributeNam
|
|
|
13093
13096
|
function normalizeRecordFields(key, entry) {
|
|
13094
13097
|
const { data: record } = entry;
|
|
13095
13098
|
const { fields, links } = record;
|
|
13096
|
-
const
|
|
13099
|
+
const missingFieldLinks = keys$3(links);
|
|
13100
|
+
const fieldNames = keys$3(fields);
|
|
13097
13101
|
const normalizedFields = {};
|
|
13098
13102
|
const returnEntries = {};
|
|
13099
|
-
|
|
13100
|
-
|
|
13103
|
+
// restore fields
|
|
13104
|
+
for (let i = 0, len = fieldNames.length; i < len; i++) {
|
|
13105
|
+
const fieldName = fieldNames[i];
|
|
13101
13106
|
const field = fields[fieldName];
|
|
13107
|
+
const fieldKey = buildRecordFieldStoreKey(key, fieldName);
|
|
13108
|
+
returnEntries[fieldKey] = { data: field };
|
|
13109
|
+
normalizedFields[fieldName] = createLink(fieldKey);
|
|
13110
|
+
}
|
|
13111
|
+
// restore missing fields
|
|
13112
|
+
for (let i = 0, len = missingFieldLinks.length; i < len; i++) {
|
|
13113
|
+
const fieldName = missingFieldLinks[i];
|
|
13102
13114
|
const link = links[fieldName];
|
|
13103
|
-
// field is undefined for missing links
|
|
13104
|
-
if (field !== undefined) {
|
|
13105
|
-
const fieldKey = buildRecordFieldStoreKey(key, fieldName);
|
|
13106
|
-
returnEntries[fieldKey] = { data: field };
|
|
13107
|
-
}
|
|
13108
|
-
// we need to restore the undefined __ref node as it is
|
|
13109
|
-
// lost during serialization
|
|
13110
13115
|
if (link.isMissing === true) {
|
|
13111
13116
|
normalizedFields[fieldName] = { ...link, __ref: undefined };
|
|
13112
13117
|
}
|
|
13113
|
-
else {
|
|
13114
|
-
normalizedFields[fieldName] = link;
|
|
13115
|
-
}
|
|
13116
13118
|
}
|
|
13117
13119
|
returnEntries[key] = {
|
|
13118
13120
|
data: assign$3(record, { fields: normalizedFields }),
|
|
@@ -13174,7 +13176,7 @@ function buildDurableRecordRepresentation(normalizedRecord, records, pendingEntr
|
|
|
13174
13176
|
}
|
|
13175
13177
|
}
|
|
13176
13178
|
// we want to preserve fields that are missing nodes
|
|
13177
|
-
if (
|
|
13179
|
+
if (field.isMissing === true) {
|
|
13178
13180
|
links[fieldName] = field;
|
|
13179
13181
|
}
|
|
13180
13182
|
}
|
|
@@ -17651,7 +17653,6 @@ class RecordLoaderGraphQL {
|
|
|
17651
17653
|
}, {});
|
|
17652
17654
|
fields['Id'] = { value: id, displayValue: null };
|
|
17653
17655
|
fields['RecordTypeId'] = { value: recordTypeId, displayValue: null };
|
|
17654
|
-
const links = this.generateFieldLinks(id, [...requestedFields, 'Id', 'RecordTypeId']);
|
|
17655
17656
|
return {
|
|
17656
17657
|
apiName: node[`${requiredPrefix}ApiName`],
|
|
17657
17658
|
childRelationships: {},
|
|
@@ -17673,18 +17674,9 @@ class RecordLoaderGraphQL {
|
|
|
17673
17674
|
: null,
|
|
17674
17675
|
weakEtag: node[`${requiredPrefix}WeakEtag`],
|
|
17675
17676
|
fields,
|
|
17676
|
-
links,
|
|
17677
|
+
links: {},
|
|
17677
17678
|
};
|
|
17678
17679
|
}
|
|
17679
|
-
generateFieldLinks(id, fields) {
|
|
17680
|
-
const links = {};
|
|
17681
|
-
for (const field of fields) {
|
|
17682
|
-
links[field] = {
|
|
17683
|
-
__ref: `UiApi::RecordRepresentation:${id}__fields__${field}`,
|
|
17684
|
-
};
|
|
17685
|
-
}
|
|
17686
|
-
return links;
|
|
17687
|
-
}
|
|
17688
17680
|
}
|
|
17689
17681
|
|
|
17690
17682
|
class RecordIngestor {
|
|
@@ -18283,4 +18275,4 @@ register({
|
|
|
18283
18275
|
});
|
|
18284
18276
|
|
|
18285
18277
|
export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, registerReportObserver, reportGraphqlQueryParseError };
|
|
18286
|
-
// version: 1.
|
|
18278
|
+
// version: 1.289.0-5ba45a0a4
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-mobile",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.289.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,25 +32,25 @@
|
|
|
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": "^1.
|
|
36
|
-
"@salesforce/lds-bindings": "^1.
|
|
37
|
-
"@salesforce/lds-instrumentation": "^1.
|
|
38
|
-
"@salesforce/lds-priming": "^1.
|
|
35
|
+
"@salesforce/lds-adapters-uiapi": "^1.289.0",
|
|
36
|
+
"@salesforce/lds-bindings": "^1.289.0",
|
|
37
|
+
"@salesforce/lds-instrumentation": "^1.289.0",
|
|
38
|
+
"@salesforce/lds-priming": "^1.289.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.
|
|
44
|
-
"@salesforce/lds-drafts": "^1.
|
|
45
|
-
"@salesforce/lds-drafts-adapters-uiapi": "^1.
|
|
46
|
-
"@salesforce/lds-graphql-eval": "^1.
|
|
47
|
-
"@salesforce/lds-network-adapter": "^1.
|
|
48
|
-
"@salesforce/lds-network-nimbus": "^1.
|
|
49
|
-
"@salesforce/lds-store-binary": "^1.
|
|
50
|
-
"@salesforce/lds-store-nimbus": "^1.
|
|
51
|
-
"@salesforce/lds-store-sql": "^1.
|
|
52
|
-
"@salesforce/lds-utils-adapters": "^1.
|
|
53
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
43
|
+
"@salesforce/lds-adapters-graphql": "^1.289.0",
|
|
44
|
+
"@salesforce/lds-drafts": "^1.289.0",
|
|
45
|
+
"@salesforce/lds-drafts-adapters-uiapi": "^1.289.0",
|
|
46
|
+
"@salesforce/lds-graphql-eval": "^1.289.0",
|
|
47
|
+
"@salesforce/lds-network-adapter": "^1.289.0",
|
|
48
|
+
"@salesforce/lds-network-nimbus": "^1.289.0",
|
|
49
|
+
"@salesforce/lds-store-binary": "^1.289.0",
|
|
50
|
+
"@salesforce/lds-store-nimbus": "^1.289.0",
|
|
51
|
+
"@salesforce/lds-store-sql": "^1.289.0",
|
|
52
|
+
"@salesforce/lds-utils-adapters": "^1.289.0",
|
|
53
|
+
"@salesforce/nimbus-plugin-lds": "^1.289.0",
|
|
54
54
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
55
55
|
"wait-for-expect": "^3.0.2"
|
|
56
56
|
},
|
package/sfdc/main.js
CHANGED
|
@@ -12577,7 +12577,7 @@ function applyReferenceLinksToDraft(record, draftMetadata) {
|
|
|
12577
12577
|
const referencedRecord = referencedRecords.get(key);
|
|
12578
12578
|
recordFields[relationshipName] = {
|
|
12579
12579
|
displayValue: null,
|
|
12580
|
-
value: createLink(key),
|
|
12580
|
+
value: createLink$1(key),
|
|
12581
12581
|
};
|
|
12582
12582
|
// for custom objects, we select the 'Name' field
|
|
12583
12583
|
// otherwise we check the object info for name fields.
|
|
@@ -12605,7 +12605,7 @@ function applyReferenceLinksToDraft(record, draftMetadata) {
|
|
|
12605
12605
|
}
|
|
12606
12606
|
return { ...record, fields: recordFields };
|
|
12607
12607
|
}
|
|
12608
|
-
function createLink(key) {
|
|
12608
|
+
function createLink$1(key) {
|
|
12609
12609
|
return { __ref: key };
|
|
12610
12610
|
}
|
|
12611
12611
|
function getReferenceInfoForKey(fieldName, field, luvio, objectInfo) {
|
|
@@ -12620,7 +12620,7 @@ function getReferenceInfoForKey(fieldName, field, luvio, objectInfo) {
|
|
|
12620
12620
|
referenceFieldName: relationshipName,
|
|
12621
12621
|
field: {
|
|
12622
12622
|
displayValue: null,
|
|
12623
|
-
value: createLink(key),
|
|
12623
|
+
value: createLink$1(key),
|
|
12624
12624
|
},
|
|
12625
12625
|
};
|
|
12626
12626
|
}
|
|
@@ -13083,6 +13083,9 @@ function isBackdatingFieldEditable(objectInfo, backdatingFieldName, attributeNam
|
|
|
13083
13083
|
!draftActionFieldNames.includes(backdatingFieldName));
|
|
13084
13084
|
}
|
|
13085
13085
|
|
|
13086
|
+
function createLink(key) {
|
|
13087
|
+
return { __ref: key };
|
|
13088
|
+
}
|
|
13086
13089
|
/**
|
|
13087
13090
|
* Records are stored in the durable store with scalar fields denormalized. This function takes that denoramlized
|
|
13088
13091
|
* durable store record representation and normalizes it back out into the format the the luvio store expects it
|
|
@@ -13093,26 +13096,25 @@ function isBackdatingFieldEditable(objectInfo, backdatingFieldName, attributeNam
|
|
|
13093
13096
|
function normalizeRecordFields(key, entry) {
|
|
13094
13097
|
const { data: record } = entry;
|
|
13095
13098
|
const { fields, links } = record;
|
|
13096
|
-
const
|
|
13099
|
+
const missingFieldLinks = keys$3(links);
|
|
13100
|
+
const fieldNames = keys$3(fields);
|
|
13097
13101
|
const normalizedFields = {};
|
|
13098
13102
|
const returnEntries = {};
|
|
13099
|
-
|
|
13100
|
-
|
|
13103
|
+
// restore fields
|
|
13104
|
+
for (let i = 0, len = fieldNames.length; i < len; i++) {
|
|
13105
|
+
const fieldName = fieldNames[i];
|
|
13101
13106
|
const field = fields[fieldName];
|
|
13107
|
+
const fieldKey = buildRecordFieldStoreKey(key, fieldName);
|
|
13108
|
+
returnEntries[fieldKey] = { data: field };
|
|
13109
|
+
normalizedFields[fieldName] = createLink(fieldKey);
|
|
13110
|
+
}
|
|
13111
|
+
// restore missing fields
|
|
13112
|
+
for (let i = 0, len = missingFieldLinks.length; i < len; i++) {
|
|
13113
|
+
const fieldName = missingFieldLinks[i];
|
|
13102
13114
|
const link = links[fieldName];
|
|
13103
|
-
// field is undefined for missing links
|
|
13104
|
-
if (field !== undefined) {
|
|
13105
|
-
const fieldKey = buildRecordFieldStoreKey(key, fieldName);
|
|
13106
|
-
returnEntries[fieldKey] = { data: field };
|
|
13107
|
-
}
|
|
13108
|
-
// we need to restore the undefined __ref node as it is
|
|
13109
|
-
// lost during serialization
|
|
13110
13115
|
if (link.isMissing === true) {
|
|
13111
13116
|
normalizedFields[fieldName] = { ...link, __ref: undefined };
|
|
13112
13117
|
}
|
|
13113
|
-
else {
|
|
13114
|
-
normalizedFields[fieldName] = link;
|
|
13115
|
-
}
|
|
13116
13118
|
}
|
|
13117
13119
|
returnEntries[key] = {
|
|
13118
13120
|
data: assign$3(record, { fields: normalizedFields }),
|
|
@@ -13174,7 +13176,7 @@ function buildDurableRecordRepresentation(normalizedRecord, records, pendingEntr
|
|
|
13174
13176
|
}
|
|
13175
13177
|
}
|
|
13176
13178
|
// we want to preserve fields that are missing nodes
|
|
13177
|
-
if (
|
|
13179
|
+
if (field.isMissing === true) {
|
|
13178
13180
|
links[fieldName] = field;
|
|
13179
13181
|
}
|
|
13180
13182
|
}
|
|
@@ -17651,7 +17653,6 @@ class RecordLoaderGraphQL {
|
|
|
17651
17653
|
}, {});
|
|
17652
17654
|
fields['Id'] = { value: id, displayValue: null };
|
|
17653
17655
|
fields['RecordTypeId'] = { value: recordTypeId, displayValue: null };
|
|
17654
|
-
const links = this.generateFieldLinks(id, [...requestedFields, 'Id', 'RecordTypeId']);
|
|
17655
17656
|
return {
|
|
17656
17657
|
apiName: node[`${requiredPrefix}ApiName`],
|
|
17657
17658
|
childRelationships: {},
|
|
@@ -17673,18 +17674,9 @@ class RecordLoaderGraphQL {
|
|
|
17673
17674
|
: null,
|
|
17674
17675
|
weakEtag: node[`${requiredPrefix}WeakEtag`],
|
|
17675
17676
|
fields,
|
|
17676
|
-
links,
|
|
17677
|
+
links: {},
|
|
17677
17678
|
};
|
|
17678
17679
|
}
|
|
17679
|
-
generateFieldLinks(id, fields) {
|
|
17680
|
-
const links = {};
|
|
17681
|
-
for (const field of fields) {
|
|
17682
|
-
links[field] = {
|
|
17683
|
-
__ref: `UiApi::RecordRepresentation:${id}__fields__${field}`,
|
|
17684
|
-
};
|
|
17685
|
-
}
|
|
17686
|
-
return links;
|
|
17687
|
-
}
|
|
17688
17680
|
}
|
|
17689
17681
|
|
|
17690
17682
|
class RecordIngestor {
|
|
@@ -18283,4 +18275,4 @@ register({
|
|
|
18283
18275
|
});
|
|
18284
18276
|
|
|
18285
18277
|
export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, registerReportObserver, reportGraphqlQueryParseError };
|
|
18286
|
-
// version: 1.
|
|
18278
|
+
// version: 1.289.0-5ba45a0a4
|