@salesforce/lds-runtime-mobile 1.332.0-dev10 → 1.332.0-dev12
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 +25 -10
- package/package.json +14 -14
- package/sfdc/main.js +25 -10
package/dist/main.js
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import { withRegistration, register } from '@salesforce/lds-default-luvio';
|
|
19
19
|
import { setupInstrumentation, instrumentAdapter as instrumentAdapter$1, instrumentLuvio, setLdsAdaptersUiapiInstrumentation, setLdsNetworkAdapterInstrumentation } from '@salesforce/lds-instrumentation';
|
|
20
20
|
import { HttpStatusCode, setBypassDeepFreeze, StoreKeySet, serializeStructuredKey, StringKeyInMemoryStore, Reader, deepFreeze, emitAdapterEvent, ingestShape, coerceConfig as coerceConfig$1, typeCheckConfig as typeCheckConfig$h, createResourceParams as createResourceParams$h, StoreKeyMap, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$f, resolveLink, createCustomAdapterEventEmitter, isFileReference, Environment, Luvio, InMemoryStore } from '@luvio/engine';
|
|
21
|
-
import { isSupportedEntity, configuration, getObjectInfoAdapterFactory, RECORD_ID_PREFIX, RECORD_FIELDS_KEY_JUNCTION, isStoreKeyRecordViewEntity, extractRecordIdFromStoreKey, buildRecordRepKeyFromId, keyBuilderRecord, RecordRepresentationTTL, keyBuilderQuickActionExecutionRepresentation, ingestQuickActionExecutionRepresentation, getRecordId18 as getRecordId18$1, getRecordsAdapterFactory as getRecordsAdapterFactory$1, RecordRepresentationRepresentationType, ObjectInfoRepresentationType, getObjectInfosAdapterFactory, getObjectInfoDirectoryAdapterFactory, UiApiNamespace, RecordRepresentationType, RecordRepresentationVersion } from '@salesforce/lds-adapters-uiapi';
|
|
21
|
+
import { isSupportedEntity, configuration, getObjectInfoAdapterFactory, RECORD_ID_PREFIX, RECORD_FIELDS_KEY_JUNCTION, isStoreKeyRecordViewEntity, extractRecordIdFromStoreKey, buildRecordRepKeyFromId, keyBuilderRecord, RecordRepresentationTTL, keyBuilderQuickActionExecutionRepresentation, ingestQuickActionExecutionRepresentation, getRecordId18 as getRecordId18$1, getRecordsAdapterFactory as getRecordsAdapterFactory$1, RecordRepresentationRepresentationType, ObjectInfoRepresentationType, getObjectInfosAdapterFactory, getObjectInfoDirectoryAdapterFactory, UiApiNamespace, RecordRepresentationType, RecordRepresentationVersion, API_NAMESPACE } from '@salesforce/lds-adapters-uiapi';
|
|
22
22
|
import { Kind as Kind$1, visit as visit$1, isObjectType, defaultFieldResolver, buildSchema, parse as parse$5, extendSchema, isScalarType, execute, print } from '@luvio/graphql-parser';
|
|
23
23
|
import FIRST_DAY_OF_WEEK from '@salesforce/i18n/firstDayOfWeek';
|
|
24
24
|
import graphqQueryFieldLimit from '@salesforce/gate/lmr.graphqQueryFieldLimit';
|
|
@@ -44714,16 +44714,22 @@ function singlePredicateToSql(predicate, defaultAlias, isChildNotPredicate = fal
|
|
|
44714
44714
|
}
|
|
44715
44715
|
}
|
|
44716
44716
|
else {
|
|
44717
|
-
|
|
44718
|
-
|
|
44719
|
-
// For pick list includes or excludeds, prefix and suffix the field value with ';' to guarantee the query accuracy.
|
|
44720
|
-
if (dataType === 'MultiPicklist' && (operator === 'LIKE' || operator === 'NOT LIKE')) {
|
|
44721
|
-
sql = buildMultiPicklistSQL(predicate, valueBinding, questionSql);
|
|
44717
|
+
if (value === null && dataType !== 'MultiPicklist') {
|
|
44718
|
+
sql = `json_extract("${alias}".data, '${leftPath}') ${operator} NULL`;
|
|
44722
44719
|
}
|
|
44723
44720
|
else {
|
|
44724
|
-
|
|
44721
|
+
const { sql: questionSql, binding: valueBinding } = handleExtractedPredicateValue(boundValue, false);
|
|
44722
|
+
// SQLite is case sensitive by default, SOQL is case in-sensitive by default
|
|
44723
|
+
// For pick list includes or excludeds, prefix and suffix the field value with ';' to guarantee the query accuracy.
|
|
44724
|
+
if (dataType === 'MultiPicklist' &&
|
|
44725
|
+
(operator === 'LIKE' || operator === 'NOT LIKE')) {
|
|
44726
|
+
sql = buildMultiPicklistSQL(predicate, valueBinding, questionSql);
|
|
44727
|
+
}
|
|
44728
|
+
else {
|
|
44729
|
+
sql = `json_extract("${alias}".data, '${leftPath}') ${operator} ${questionSql}${isCaseSensitive === true ? '' : ` COLLATE NOCASE`}`;
|
|
44730
|
+
}
|
|
44731
|
+
binding.push(...valueBinding);
|
|
44725
44732
|
}
|
|
44726
|
-
binding.push(...valueBinding);
|
|
44727
44733
|
}
|
|
44728
44734
|
}
|
|
44729
44735
|
return { sql, binding };
|
|
@@ -54014,12 +54020,21 @@ function setupObserver() {
|
|
|
54014
54020
|
|
|
54015
54021
|
|
|
54016
54022
|
const { keys, values, create, assign, freeze, entries } = Object;
|
|
54023
|
+
|
|
54024
|
+
const RECORD_TEMPLATE_CREATE_REPRESENTATION_NAME = 'RecordTemplateCreateRepresentation';
|
|
54025
|
+
const RECORD_TEMPLATE_CREATE_REPRESENTATION_PREFIX = `${API_NAMESPACE}::${RECORD_TEMPLATE_CREATE_REPRESENTATION_NAME}:`;
|
|
54026
|
+
function isStoreKeyRecordTemplateId(key) {
|
|
54027
|
+
return (key.indexOf(RECORD_TEMPLATE_CREATE_REPRESENTATION_PREFIX) > -1 &&
|
|
54028
|
+
key.indexOf(RECORD_FIELDS_KEY_JUNCTION) === -1);
|
|
54029
|
+
}
|
|
54017
54030
|
function isStoreKeyRecordId(key) {
|
|
54018
54031
|
return key.indexOf(RECORD_ID_PREFIX) > -1 && key.indexOf(RECORD_FIELDS_KEY_JUNCTION) === -1;
|
|
54019
54032
|
}
|
|
54020
54033
|
function isEntryDurableRecordRepresentation(entry, key) {
|
|
54021
54034
|
// Either a DurableRecordRepresentation or StoreRecordError can live at a record key
|
|
54022
|
-
return ((isStoreKeyRecordId(key) ||
|
|
54035
|
+
return ((isStoreKeyRecordId(key) ||
|
|
54036
|
+
isStoreKeyRecordViewEntity(key) ||
|
|
54037
|
+
isStoreKeyRecordTemplateId(key)) &&
|
|
54023
54038
|
entry.data.__type === undefined);
|
|
54024
54039
|
}
|
|
54025
54040
|
|
|
@@ -55520,4 +55535,4 @@ register({
|
|
|
55520
55535
|
});
|
|
55521
55536
|
|
|
55522
55537
|
export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, registerReportObserver, reportGraphqlQueryParseError };
|
|
55523
|
-
// version: 1.332.0-
|
|
55538
|
+
// version: 1.332.0-dev12-1b83c1669d
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-mobile",
|
|
3
|
-
"version": "1.332.0-
|
|
3
|
+
"version": "1.332.0-dev12",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS runtime for mobile/hybrid environments.",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -32,23 +32,23 @@
|
|
|
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.332.0-
|
|
36
|
-
"@salesforce/lds-bindings": "^1.332.0-
|
|
37
|
-
"@salesforce/lds-instrumentation": "^1.332.0-
|
|
35
|
+
"@salesforce/lds-adapters-uiapi": "^1.332.0-dev12",
|
|
36
|
+
"@salesforce/lds-bindings": "^1.332.0-dev12",
|
|
37
|
+
"@salesforce/lds-instrumentation": "^1.332.0-dev12",
|
|
38
38
|
"@salesforce/user": "0.0.21",
|
|
39
39
|
"o11y": "250.7.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@salesforce/lds-adapters-graphql": "^1.332.0-
|
|
43
|
-
"@salesforce/lds-drafts": "^1.332.0-
|
|
44
|
-
"@salesforce/lds-durable-records": "^1.332.0-
|
|
45
|
-
"@salesforce/lds-network-adapter": "^1.332.0-
|
|
46
|
-
"@salesforce/lds-network-nimbus": "^1.332.0-
|
|
47
|
-
"@salesforce/lds-store-binary": "^1.332.0-
|
|
48
|
-
"@salesforce/lds-store-nimbus": "^1.332.0-
|
|
49
|
-
"@salesforce/lds-store-sql": "^1.332.0-
|
|
50
|
-
"@salesforce/lds-utils-adapters": "^1.332.0-
|
|
51
|
-
"@salesforce/nimbus-plugin-lds": "^1.332.0-
|
|
42
|
+
"@salesforce/lds-adapters-graphql": "^1.332.0-dev12",
|
|
43
|
+
"@salesforce/lds-drafts": "^1.332.0-dev12",
|
|
44
|
+
"@salesforce/lds-durable-records": "^1.332.0-dev12",
|
|
45
|
+
"@salesforce/lds-network-adapter": "^1.332.0-dev12",
|
|
46
|
+
"@salesforce/lds-network-nimbus": "^1.332.0-dev12",
|
|
47
|
+
"@salesforce/lds-store-binary": "^1.332.0-dev12",
|
|
48
|
+
"@salesforce/lds-store-nimbus": "^1.332.0-dev12",
|
|
49
|
+
"@salesforce/lds-store-sql": "^1.332.0-dev12",
|
|
50
|
+
"@salesforce/lds-utils-adapters": "^1.332.0-dev12",
|
|
51
|
+
"@salesforce/nimbus-plugin-lds": "^1.332.0-dev12",
|
|
52
52
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
53
53
|
"wait-for-expect": "^3.0.2"
|
|
54
54
|
},
|
package/sfdc/main.js
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import { withRegistration, register } from 'force/ldsEngine';
|
|
19
19
|
import { setupInstrumentation, instrumentAdapter as instrumentAdapter$1, instrumentLuvio, setLdsAdaptersUiapiInstrumentation, setLdsNetworkAdapterInstrumentation } from 'force/ldsInstrumentation';
|
|
20
20
|
import { HttpStatusCode, setBypassDeepFreeze, StoreKeySet, serializeStructuredKey, StringKeyInMemoryStore, Reader, deepFreeze, emitAdapterEvent, ingestShape, coerceConfig as coerceConfig$1, typeCheckConfig as typeCheckConfig$h, createResourceParams as createResourceParams$h, StoreKeyMap, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$f, resolveLink, createCustomAdapterEventEmitter, isFileReference, Environment, Luvio, InMemoryStore } from 'force/luvioEngine';
|
|
21
|
-
import { isSupportedEntity, configuration, getObjectInfoAdapterFactory, RECORD_ID_PREFIX, RECORD_FIELDS_KEY_JUNCTION, isStoreKeyRecordViewEntity, extractRecordIdFromStoreKey, buildRecordRepKeyFromId, keyBuilderRecord, RecordRepresentationTTL, keyBuilderQuickActionExecutionRepresentation, ingestQuickActionExecutionRepresentation, getRecordId18 as getRecordId18$1, getRecordsAdapterFactory as getRecordsAdapterFactory$1, RecordRepresentationRepresentationType, ObjectInfoRepresentationType, getObjectInfosAdapterFactory, getObjectInfoDirectoryAdapterFactory, UiApiNamespace, RecordRepresentationType, RecordRepresentationVersion } from 'force/ldsAdaptersUiapi';
|
|
21
|
+
import { isSupportedEntity, configuration, getObjectInfoAdapterFactory, RECORD_ID_PREFIX, RECORD_FIELDS_KEY_JUNCTION, isStoreKeyRecordViewEntity, extractRecordIdFromStoreKey, buildRecordRepKeyFromId, keyBuilderRecord, RecordRepresentationTTL, keyBuilderQuickActionExecutionRepresentation, ingestQuickActionExecutionRepresentation, getRecordId18 as getRecordId18$1, getRecordsAdapterFactory as getRecordsAdapterFactory$1, RecordRepresentationRepresentationType, ObjectInfoRepresentationType, getObjectInfosAdapterFactory, getObjectInfoDirectoryAdapterFactory, UiApiNamespace, RecordRepresentationType, RecordRepresentationVersion, API_NAMESPACE } from 'force/ldsAdaptersUiapi';
|
|
22
22
|
import { Kind as Kind$1, visit as visit$1, isObjectType, defaultFieldResolver, buildSchema, parse as parse$5, extendSchema, isScalarType, execute, print } from 'force/ldsGraphqlParser';
|
|
23
23
|
import FIRST_DAY_OF_WEEK from '@salesforce/i18n/firstDayOfWeek';
|
|
24
24
|
import graphqQueryFieldLimit from '@salesforce/gate/lmr.graphqQueryFieldLimit';
|
|
@@ -44714,16 +44714,22 @@ function singlePredicateToSql(predicate, defaultAlias, isChildNotPredicate = fal
|
|
|
44714
44714
|
}
|
|
44715
44715
|
}
|
|
44716
44716
|
else {
|
|
44717
|
-
|
|
44718
|
-
|
|
44719
|
-
// For pick list includes or excludeds, prefix and suffix the field value with ';' to guarantee the query accuracy.
|
|
44720
|
-
if (dataType === 'MultiPicklist' && (operator === 'LIKE' || operator === 'NOT LIKE')) {
|
|
44721
|
-
sql = buildMultiPicklistSQL(predicate, valueBinding, questionSql);
|
|
44717
|
+
if (value === null && dataType !== 'MultiPicklist') {
|
|
44718
|
+
sql = `json_extract("${alias}".data, '${leftPath}') ${operator} NULL`;
|
|
44722
44719
|
}
|
|
44723
44720
|
else {
|
|
44724
|
-
|
|
44721
|
+
const { sql: questionSql, binding: valueBinding } = handleExtractedPredicateValue(boundValue, false);
|
|
44722
|
+
// SQLite is case sensitive by default, SOQL is case in-sensitive by default
|
|
44723
|
+
// For pick list includes or excludeds, prefix and suffix the field value with ';' to guarantee the query accuracy.
|
|
44724
|
+
if (dataType === 'MultiPicklist' &&
|
|
44725
|
+
(operator === 'LIKE' || operator === 'NOT LIKE')) {
|
|
44726
|
+
sql = buildMultiPicklistSQL(predicate, valueBinding, questionSql);
|
|
44727
|
+
}
|
|
44728
|
+
else {
|
|
44729
|
+
sql = `json_extract("${alias}".data, '${leftPath}') ${operator} ${questionSql}${isCaseSensitive === true ? '' : ` COLLATE NOCASE`}`;
|
|
44730
|
+
}
|
|
44731
|
+
binding.push(...valueBinding);
|
|
44725
44732
|
}
|
|
44726
|
-
binding.push(...valueBinding);
|
|
44727
44733
|
}
|
|
44728
44734
|
}
|
|
44729
44735
|
return { sql, binding };
|
|
@@ -54014,12 +54020,21 @@ function setupObserver() {
|
|
|
54014
54020
|
|
|
54015
54021
|
|
|
54016
54022
|
const { keys, values, create, assign, freeze, entries } = Object;
|
|
54023
|
+
|
|
54024
|
+
const RECORD_TEMPLATE_CREATE_REPRESENTATION_NAME = 'RecordTemplateCreateRepresentation';
|
|
54025
|
+
const RECORD_TEMPLATE_CREATE_REPRESENTATION_PREFIX = `${API_NAMESPACE}::${RECORD_TEMPLATE_CREATE_REPRESENTATION_NAME}:`;
|
|
54026
|
+
function isStoreKeyRecordTemplateId(key) {
|
|
54027
|
+
return (key.indexOf(RECORD_TEMPLATE_CREATE_REPRESENTATION_PREFIX) > -1 &&
|
|
54028
|
+
key.indexOf(RECORD_FIELDS_KEY_JUNCTION) === -1);
|
|
54029
|
+
}
|
|
54017
54030
|
function isStoreKeyRecordId(key) {
|
|
54018
54031
|
return key.indexOf(RECORD_ID_PREFIX) > -1 && key.indexOf(RECORD_FIELDS_KEY_JUNCTION) === -1;
|
|
54019
54032
|
}
|
|
54020
54033
|
function isEntryDurableRecordRepresentation(entry, key) {
|
|
54021
54034
|
// Either a DurableRecordRepresentation or StoreRecordError can live at a record key
|
|
54022
|
-
return ((isStoreKeyRecordId(key) ||
|
|
54035
|
+
return ((isStoreKeyRecordId(key) ||
|
|
54036
|
+
isStoreKeyRecordViewEntity(key) ||
|
|
54037
|
+
isStoreKeyRecordTemplateId(key)) &&
|
|
54023
54038
|
entry.data.__type === undefined);
|
|
54024
54039
|
}
|
|
54025
54040
|
|
|
@@ -55520,4 +55535,4 @@ register({
|
|
|
55520
55535
|
});
|
|
55521
55536
|
|
|
55522
55537
|
export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, registerReportObserver, reportGraphqlQueryParseError };
|
|
55523
|
-
// version: 1.332.0-
|
|
55538
|
+
// version: 1.332.0-dev12-1b83c1669d
|