@salesforce/lds-adapters-uiapi 1.273.0 → 1.273.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.
|
@@ -11980,10 +11980,11 @@ function getNameField(objectInfo, fieldApiName) {
|
|
|
11980
11980
|
// ObjectInfoRep.ReferenceToInfoRep[].nameFields[]:
|
|
11981
11981
|
// 1. If any of the arrays are empty returns `Name`
|
|
11982
11982
|
// 2. If `Name` is found in any array position then returns it
|
|
11983
|
-
//
|
|
11983
|
+
// 3. If the field has more than 1 references(polymorphic), return `Name`
|
|
11984
|
+
// 4. Else returns ObjectInfoRep.ReferenceToInfoRep[0].nameFields[0]
|
|
11984
11985
|
// Rationale for this is unclear and needs clarification.
|
|
11985
11986
|
const referenceToInfos = objectInfo.fields[fieldApiName].referenceToInfos;
|
|
11986
|
-
if (referenceToInfos.length
|
|
11987
|
+
if (referenceToInfos.length !== 1) {
|
|
11987
11988
|
return FIELD_NAME;
|
|
11988
11989
|
}
|
|
11989
11990
|
const firstReferenceNameFields = referenceToInfos[0].nameFields;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-uiapi",
|
|
3
|
-
"version": "1.273.
|
|
3
|
+
"version": "1.273.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Wire adapters for record related UI API endpoints",
|
|
6
6
|
"main": "dist/es/es2018/uiapi-records-service.js",
|
|
@@ -68,14 +68,14 @@
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@salesforce/lds-bindings": "^1.273.
|
|
72
|
-
"@salesforce/lds-default-luvio": "^1.273.
|
|
71
|
+
"@salesforce/lds-bindings": "^1.273.1",
|
|
72
|
+
"@salesforce/lds-default-luvio": "^1.273.1"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@databases/sqlite": "^3.0.0",
|
|
76
|
-
"@salesforce/lds-compiler-plugins": "^1.273.
|
|
77
|
-
"@salesforce/lds-jest": "^1.273.
|
|
78
|
-
"@salesforce/lds-store-binary": "^1.273.
|
|
76
|
+
"@salesforce/lds-compiler-plugins": "^1.273.1",
|
|
77
|
+
"@salesforce/lds-jest": "^1.273.1",
|
|
78
|
+
"@salesforce/lds-store-binary": "^1.273.1"
|
|
79
79
|
},
|
|
80
80
|
"luvioBundlesize": [
|
|
81
81
|
{
|
package/sfdc/graphqlAdapters.js
CHANGED
|
@@ -18069,4 +18069,4 @@ register({
|
|
|
18069
18069
|
});
|
|
18070
18070
|
|
|
18071
18071
|
export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_imperative };
|
|
18072
|
-
// version: 1.273.
|
|
18072
|
+
// version: 1.273.1-e93c18811
|
package/sfdc/index.js
CHANGED
|
@@ -11512,10 +11512,11 @@ function getNameField(objectInfo, fieldApiName) {
|
|
|
11512
11512
|
// ObjectInfoRep.ReferenceToInfoRep[].nameFields[]:
|
|
11513
11513
|
// 1. If any of the arrays are empty returns `Name`
|
|
11514
11514
|
// 2. If `Name` is found in any array position then returns it
|
|
11515
|
-
//
|
|
11515
|
+
// 3. If the field has more than 1 references(polymorphic), return `Name`
|
|
11516
|
+
// 4. Else returns ObjectInfoRep.ReferenceToInfoRep[0].nameFields[0]
|
|
11516
11517
|
// Rationale for this is unclear and needs clarification.
|
|
11517
11518
|
const referenceToInfos = objectInfo.fields[fieldApiName].referenceToInfos;
|
|
11518
|
-
if (referenceToInfos.length
|
|
11519
|
+
if (referenceToInfos.length !== 1) {
|
|
11519
11520
|
return FIELD_NAME;
|
|
11520
11521
|
}
|
|
11521
11522
|
const firstReferenceNameFields = referenceToInfos[0].nameFields;
|
|
@@ -35630,4 +35631,4 @@ withDefaultLuvio((luvio) => {
|
|
|
35630
35631
|
});
|
|
35631
35632
|
|
|
35632
35633
|
export { API_NAMESPACE, InMemoryRecordRepresentationQueryEvaluator, MRU, RepresentationType$I as ObjectInfoDirectoryEntryRepresentationType, RepresentationType$N as ObjectInfoRepresentationType, RECORD_FIELDS_KEY_JUNCTION, RECORD_ID_PREFIX, RECORD_REPRESENTATION_NAME, RECORD_VIEW_ENTITY_ID_PREFIX, RECORD_VIEW_ENTITY_REPRESENTATION_NAME, RepresentationType$S as RecordRepresentationRepresentationType, TTL$y as RecordRepresentationTTL, RepresentationType$S as RecordRepresentationType, VERSION$18 as RecordRepresentationVersion, keyPrefix as UiApiNamespace, buildRecordRepKeyFromId, configurationForRestAdapters as configuration, createContentDocumentAndVersion, createContentVersion, createIngestRecordWithFields, createLDSAdapterWithPrediction, createListInfo, createRecord, deleteListInfo, deleteRecord, executeBatchRecordOperations, extractRecordIdFromStoreKey, getActionOverrides, getActionOverrides_imperative, getAllApps, getAllApps_imperative, getAppDetails, getAppDetails_imperative, getDuplicateConfiguration, getDuplicateConfiguration_imperative, getDuplicates, getDuplicates_imperative, getFlexipageFormulaOverrides, getFlexipageFormulaOverrides_imperative, getGlobalActions, getGlobalActions_imperative, getKeywordSearchResults, getKeywordSearchResults_imperative, getLayout, getLayoutUserState, getLayoutUserState_imperative, getLayout_imperative, getListInfoByName, getListInfoByName_imperative, getListInfosByName, getListInfosByName_imperative, getListObjectInfo, getListObjectInfo_imperative, getListPreferences, getListPreferences_imperative, getListRecordsByName, getListRecordsByName_imperative, getListUi, getListUi_imperative, getLookupActions, getLookupActions_imperative, getLookupMetadata, getLookupMetadata_imperative, getLookupRecords, getLookupRecords_imperative, getNavItems, getNavItems_imperative, getObjectCreateActions, getObjectCreateActions_imperative, getObjectInfo, getObjectInfoAdapterFactory, getObjectInfoDirectoryAdapterFactory, getObjectInfo_imperative, getObjectInfos, getObjectInfosAdapterFactory, getObjectInfos_imperative, getPicklistValues, getPicklistValuesByRecordType, getPicklistValuesByRecordType_imperative, getPicklistValues_imperative, getQuickActionDefaults, getQuickActionDefaults_imperative, getQuickActionLayout, getQuickActionLayout_imperative, getRecord, getRecordActions, getRecordActionsAdapterFactory, getRecordActions_imperative, factory$f as getRecordAdapterFactory, getRecordAvatars, getRecordAvatarsAdapterFactory, getRecordAvatars_imperative, getRecordCreateDefaults, getRecordCreateDefaults_imperative, getRecordEditActions, getRecordEditActions_imperative, getRecordId18, getRecordNotifyChange, getRecordTemplateClone, getRecordTemplateClone_imperative, getRecordTemplateCreate, getRecordTemplateCreate_imperative, getRecordUi, getRecordUi_imperative, getRecord_imperative, getRecords, getRecordsAdapterFactory, getRecords_imperative, getRelatedListActions, getRelatedListActions_imperative, getRelatedListCount, getRelatedListCount_imperative, getRelatedListInfo, getRelatedListInfoBatch, getRelatedListInfoBatch_imperative, getRelatedListInfo_imperative, getRelatedListPreferences, getRelatedListPreferencesBatch, getRelatedListPreferencesBatch_imperative, getRelatedListPreferences_imperative, getRelatedListRecordActions, getRelatedListRecordActions_imperative, getRelatedListRecords, getRelatedListRecordsBatch, getRelatedListRecordsBatch_imperative, getRelatedListRecords_imperative, getRelatedListsActions, getRelatedListsActionsAdapterFactory, getRelatedListsActions_imperative, getRelatedListsCount, getRelatedListsCount_imperative, getRelatedListsInfo, getRelatedListsInfo_imperative, getResponseCacheKeys as getResponseCacheKeysContentDocumentCompositeRepresentation, getSearchFilterMetadata, getSearchFilterMetadata_imperative, getSearchFilterOptions, getSearchFilterOptions_imperative, getSearchResults, getSearchResults_imperative, getTypeCacheKeys$U as getTypeCacheKeysRecord, ingest as ingestContentDocumentCompositeRepresentation, ingest$G as ingestObjectInfo, ingest$A as ingestQuickActionExecutionRepresentation, ingest$L as ingestRecord, instrument, isStoreKeyRecordViewEntity, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$A as keyBuilderFromTypeRecordRepresentation, keyBuilder$1R as keyBuilderObjectInfo, keyBuilder$1K as keyBuilderQuickActionExecutionRepresentation, keyBuilder$20 as keyBuilderRecord, notifyListInfoUpdateAvailable, notifyListRecordCollectionUpdateAvailable, notifyListViewSummaryUpdateAvailable, notifyQuickActionDefaultsUpdateAvailable, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, registerPrefetcher, updateLayoutUserState, updateListInfoByName, updateListPreferences, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
|
|
35633
|
-
// version: 1.273.
|
|
35634
|
+
// version: 1.273.1-e93c18811
|