@salesforce/lds-ads-bridge 1.313.0 → 1.314.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/ads-bridge-perf.js +94 -75
- package/dist/adsBridge.js +1 -1
- package/package.json +3 -3
package/dist/ads-bridge-perf.js
CHANGED
|
@@ -481,7 +481,7 @@ const callbacks$1 = [];
|
|
|
481
481
|
function register(r) {
|
|
482
482
|
callbacks$1.forEach((callback) => callback(r));
|
|
483
483
|
}
|
|
484
|
-
// version: 1.
|
|
484
|
+
// version: 1.314.0-5a451c78cd
|
|
485
485
|
|
|
486
486
|
/**
|
|
487
487
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -4433,34 +4433,26 @@ keyMap(specifiedScalarTypes.concat(introspectionTypes), function (type) {
|
|
|
4433
4433
|
/**
|
|
4434
4434
|
* Defines configuration for the module with a default value which can be overridden by the runtime environment.
|
|
4435
4435
|
*/
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
let
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
let
|
|
4456
|
-
/**
|
|
4457
|
-
* Draft-aware createContentDocumentAndVersion adapter
|
|
4458
|
-
*/
|
|
4459
|
-
let draftAwareCreateContentDocumentAndVersionAdapter = undefined;
|
|
4460
|
-
/**
|
|
4461
|
-
* Draft-aware createContentVersion adapter
|
|
4462
|
-
*/
|
|
4463
|
-
let draftAwareCreateContentVersionAdapter = undefined;
|
|
4436
|
+
// A holder for a configurable adapter override
|
|
4437
|
+
class Configurable {
|
|
4438
|
+
constructor() {
|
|
4439
|
+
this.getAdapter = () => {
|
|
4440
|
+
return this.adapter;
|
|
4441
|
+
};
|
|
4442
|
+
this.setAdapter = (value) => {
|
|
4443
|
+
this.adapter = value;
|
|
4444
|
+
};
|
|
4445
|
+
this.adapter = undefined;
|
|
4446
|
+
}
|
|
4447
|
+
}
|
|
4448
|
+
// Configurable adapters that can have environmental overrides
|
|
4449
|
+
let configurableCreateRecordAdapter = new Configurable();
|
|
4450
|
+
let configurableUpdateRecordAdapter = new Configurable();
|
|
4451
|
+
let configurableDeleteRecordAdapter = new Configurable();
|
|
4452
|
+
let configurablePerformQuickActionAdapter = new Configurable();
|
|
4453
|
+
let configurablePerformUpdateRecordQuickActionAdapter = new Configurable();
|
|
4454
|
+
let configurableCreateContentDocumentAndVersion = new Configurable();
|
|
4455
|
+
let configurableCreateContentVersion = new Configurable();
|
|
4464
4456
|
/**
|
|
4465
4457
|
* Depth to which tracked fields will be added to a request that results from a cache miss.
|
|
4466
4458
|
* A value of 0 inhibits the addition of tracked fields, 1 will add tracked fields that can
|
|
@@ -4517,6 +4509,52 @@ const configurationForOneStoreEnabledAdapters = {
|
|
|
4517
4509
|
return oneStoreGetObjectInfosAdapter;
|
|
4518
4510
|
},
|
|
4519
4511
|
};
|
|
4512
|
+
const getKeywordSearchResultsFactory = new Configurable();
|
|
4513
|
+
const getListRecordsByNameFactory = new Configurable();
|
|
4514
|
+
const getListUiFactory = new Configurable();
|
|
4515
|
+
const getLookupRecordsFactory = new Configurable();
|
|
4516
|
+
const getQuickActionDefaultsFactory = new Configurable();
|
|
4517
|
+
const getRecordCreateDefaultsFactory = new Configurable();
|
|
4518
|
+
const getRecordTemplateCloneFactory = new Configurable();
|
|
4519
|
+
const getRecordTemplateCreateFactory = new Configurable();
|
|
4520
|
+
const getRecordUiFactory = new Configurable();
|
|
4521
|
+
const getRecordFactory = new Configurable();
|
|
4522
|
+
const getRecordsFactory = new Configurable();
|
|
4523
|
+
const getRelatedListRecordsFactory = new Configurable();
|
|
4524
|
+
const getRelatedListRecordsBatchFactory = new Configurable();
|
|
4525
|
+
const getSearchResultsFactory = new Configurable();
|
|
4526
|
+
// The following set of adapters all touch RecordRepresentation directly or indirectly,
|
|
4527
|
+
// so they need to support having a custom factory provided by the mobile environment.
|
|
4528
|
+
const configurationForEnvironmentFactoryOverrides = {
|
|
4529
|
+
getKeywordSearchResultsAdapterFactory: getKeywordSearchResultsFactory.getAdapter,
|
|
4530
|
+
setGetKeywordSearchResultsAdapterFactory: getKeywordSearchResultsFactory.setAdapter,
|
|
4531
|
+
getListRecordsByNameAdapterFactory: getListRecordsByNameFactory.getAdapter,
|
|
4532
|
+
setGetListRecordsByNameAdapterFactory: getListRecordsByNameFactory.setAdapter,
|
|
4533
|
+
getListUiAdapterFactory: getListUiFactory.getAdapter,
|
|
4534
|
+
setGetListUiAdapterFactory: getListUiFactory.setAdapter,
|
|
4535
|
+
getLookupRecordsAdapterFactory: getLookupRecordsFactory.getAdapter,
|
|
4536
|
+
setGetLookupRecordsAdapterFactory: getLookupRecordsFactory.setAdapter,
|
|
4537
|
+
getQuickActionDefaultsAdapterFactory: getQuickActionDefaultsFactory.getAdapter,
|
|
4538
|
+
setGetQuickActionDefaultsAdapterFactory: getQuickActionDefaultsFactory.setAdapter,
|
|
4539
|
+
getRecordCreateDefaultsAdapterFactory: getRecordCreateDefaultsFactory.getAdapter,
|
|
4540
|
+
setGetRecordCreateDefaultsAdapterFactory: getRecordCreateDefaultsFactory.setAdapter,
|
|
4541
|
+
getRecordTemplateCloneAdapterFactory: getRecordTemplateCloneFactory.getAdapter,
|
|
4542
|
+
setGetRecordTemplateCloneAdapterFactory: getRecordTemplateCloneFactory.setAdapter,
|
|
4543
|
+
getRecordTemplateCreateAdapterFactory: getRecordTemplateCreateFactory.getAdapter,
|
|
4544
|
+
setGetRecordTemplateCreateAdapterFactory: getRecordTemplateCreateFactory.setAdapter,
|
|
4545
|
+
getRecordUiAdapterFactory: getRecordUiFactory.getAdapter,
|
|
4546
|
+
setGetRecordUiAdapterFactory: getRecordUiFactory.setAdapter,
|
|
4547
|
+
getRecordAdapterFactory: getRecordFactory.getAdapter,
|
|
4548
|
+
setGetRecordAdapterFactory: getRecordFactory.setAdapter,
|
|
4549
|
+
getRecordsAdapterFactory: getRecordsFactory.getAdapter,
|
|
4550
|
+
setGetRecordsAdapterFactory: getRecordsFactory.setAdapter,
|
|
4551
|
+
getRelatedListRecordsAdapterFactory: getRelatedListRecordsFactory.getAdapter,
|
|
4552
|
+
setGetRelatedListRecordsAdapterFactory: getRelatedListRecordsFactory.setAdapter,
|
|
4553
|
+
getRelatedListRecordsBatchAdapterFactory: getRelatedListRecordsBatchFactory.getAdapter,
|
|
4554
|
+
setGetRelatedListRecordsBatchAdapterFactory: getRelatedListRecordsBatchFactory.setAdapter,
|
|
4555
|
+
getSearchResultsAdapterFactory: getSearchResultsFactory.getAdapter,
|
|
4556
|
+
setGetSearchResultsAdapterFactory: getSearchResultsFactory.setAdapter,
|
|
4557
|
+
};
|
|
4520
4558
|
/**
|
|
4521
4559
|
* Defines the configuration API and is exposed internally as well as externally.
|
|
4522
4560
|
* Configuration for REST adapters only.
|
|
@@ -4546,66 +4584,47 @@ const configurationForRestAdapters = {
|
|
|
4546
4584
|
getTrackedFieldLeafNodeIdAndNameOnly: function () {
|
|
4547
4585
|
return trackedFieldLeafNodeIdAndNameOnly;
|
|
4548
4586
|
},
|
|
4549
|
-
// createRecord
|
|
4550
|
-
setDraftAwareCreateRecordAdapter: function (adapter) {
|
|
4551
|
-
draftAwareCreateRecordAdapter = adapter;
|
|
4552
|
-
},
|
|
4553
|
-
getDraftAwareCreateRecordAdapter: function () {
|
|
4554
|
-
return draftAwareCreateRecordAdapter;
|
|
4555
|
-
},
|
|
4556
|
-
// updateRecord
|
|
4557
|
-
setDraftAwareUpdateRecordAdapter: function (adapter) {
|
|
4558
|
-
draftAwareUpdateRecordAdapter = adapter;
|
|
4559
|
-
},
|
|
4560
|
-
getDraftAwareUpdateRecordAdapter: function () {
|
|
4561
|
-
return draftAwareUpdateRecordAdapter;
|
|
4562
|
-
},
|
|
4563
|
-
// deleteRecord
|
|
4564
|
-
setDraftAwareDeleteRecordAdapter: function (adapter) {
|
|
4565
|
-
draftAwareDeleteRecordAdapter = adapter;
|
|
4566
|
-
},
|
|
4567
|
-
getDraftAwareDeleteRecordAdapter: function () {
|
|
4568
|
-
return draftAwareDeleteRecordAdapter;
|
|
4569
|
-
},
|
|
4570
|
-
// createContentDocumentAndVersion
|
|
4571
|
-
setDraftAwareCreateContentDocumentAndVersionAdapter: function (adapter) {
|
|
4572
|
-
draftAwareCreateContentDocumentAndVersionAdapter = adapter;
|
|
4573
|
-
},
|
|
4574
|
-
getDraftAwareCreateContentDocumentAndVersionAdapter: function () {
|
|
4575
|
-
return draftAwareCreateContentDocumentAndVersionAdapter;
|
|
4576
|
-
},
|
|
4577
4587
|
setRelatedListsPredictionsEnabled: function (f) {
|
|
4578
4588
|
relatedListsPredictionsEnabled = f;
|
|
4579
4589
|
},
|
|
4580
4590
|
areRelatedListsPredictionsEnabled: function () {
|
|
4581
4591
|
return relatedListsPredictionsEnabled === true;
|
|
4582
4592
|
},
|
|
4593
|
+
// createRecord
|
|
4594
|
+
getDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter.getAdapter,
|
|
4595
|
+
setDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter.setAdapter,
|
|
4596
|
+
// updateRecord
|
|
4597
|
+
getDraftAwareUpdateRecordAdapter: configurableUpdateRecordAdapter.getAdapter,
|
|
4598
|
+
setDraftAwareUpdateRecordAdapter: configurableUpdateRecordAdapter.setAdapter,
|
|
4599
|
+
// deleteRecord
|
|
4600
|
+
getDraftAwareDeleteRecordAdapter: configurableDeleteRecordAdapter.getAdapter,
|
|
4601
|
+
setDraftAwareDeleteRecordAdapter: configurableDeleteRecordAdapter.setAdapter,
|
|
4602
|
+
// performQuickAction
|
|
4603
|
+
getDraftAwarePerformQuickActionAdapter: configurablePerformQuickActionAdapter.getAdapter,
|
|
4604
|
+
setDraftAwarePerformQuickActionAdapter: configurablePerformQuickActionAdapter.setAdapter,
|
|
4605
|
+
// performRecordUpdateQuickAction
|
|
4606
|
+
getDraftAwarePerformUpdateRecordQuickActionAdapter: configurablePerformUpdateRecordQuickActionAdapter.getAdapter,
|
|
4607
|
+
setDraftAwarePerformUpdateRecordQuickActionAdapter: configurablePerformUpdateRecordQuickActionAdapter.setAdapter,
|
|
4608
|
+
// createContentDocumentAndVersion
|
|
4609
|
+
getDraftAwareCreateContentDocumentAndVersionAdapter: configurableCreateContentDocumentAndVersion.getAdapter,
|
|
4610
|
+
setDraftAwareCreateContentDocumentAndVersionAdapter: configurableCreateContentDocumentAndVersion.setAdapter,
|
|
4583
4611
|
// createContentVersion
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
},
|
|
4587
|
-
getDraftAwareCreateContentVersionAdapter: function () {
|
|
4588
|
-
return draftAwareCreateContentVersionAdapter;
|
|
4589
|
-
},
|
|
4612
|
+
getDraftAwareCreateContentVersionAdapter: configurableCreateContentVersion.getAdapter,
|
|
4613
|
+
setDraftAwareCreateContentVersionAdapter: configurableCreateContentVersion.setAdapter,
|
|
4590
4614
|
...configurationForOneStoreEnabledAdapters,
|
|
4615
|
+
...configurationForEnvironmentFactoryOverrides,
|
|
4591
4616
|
};
|
|
4617
|
+
let configurableGraphQLAdapter = new Configurable();
|
|
4618
|
+
let configurableGraphQLBatchAdapter = new Configurable();
|
|
4592
4619
|
/**
|
|
4593
4620
|
* Defines the configuration API and is exposed internally as well as externally.
|
|
4594
4621
|
* Configuration for GraphQL adapters only.
|
|
4595
4622
|
*/
|
|
4596
4623
|
const configurationForGraphQLAdapters = {
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
return draftAwareGraphQLAdapter;
|
|
4602
|
-
},
|
|
4603
|
-
setEnvironmentAwareGraphQLBatchAdapter: function (adapter) {
|
|
4604
|
-
environmentAwareGraphQLBatchAdapter = adapter;
|
|
4605
|
-
},
|
|
4606
|
-
getEnvironmentAwareGraphQLBatchAdapter: function () {
|
|
4607
|
-
return environmentAwareGraphQLBatchAdapter;
|
|
4608
|
-
},
|
|
4624
|
+
getDraftAwareGraphQLAdapter: configurableGraphQLAdapter.getAdapter,
|
|
4625
|
+
setDraftAwareGraphQLAdapter: configurableGraphQLAdapter.setAdapter,
|
|
4626
|
+
getEnvironmentAwareGraphQLBatchAdapter: configurableGraphQLBatchAdapter.getAdapter,
|
|
4627
|
+
setEnvironmentAwareGraphQLBatchAdapter: configurableGraphQLBatchAdapter.setAdapter,
|
|
4609
4628
|
};
|
|
4610
4629
|
const registrations = new Set();
|
|
4611
4630
|
/**
|
package/dist/adsBridge.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-ads-bridge",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.314.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Bridge to sync data between LDS and ADS",
|
|
6
6
|
"main": "dist/adsBridge.js",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-ads-bridge"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
34
|
-
"@salesforce/lds-uiapi-record-utils-mobile": "^1.
|
|
33
|
+
"@salesforce/lds-adapters-uiapi": "^1.314.0",
|
|
34
|
+
"@salesforce/lds-uiapi-record-utils-mobile": "^1.314.0"
|
|
35
35
|
},
|
|
36
36
|
"volta": {
|
|
37
37
|
"extends": "../../package.json"
|