@salesforce/lds-adapters-platform-learning-content 1.207.0 → 1.208.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/es/es2018/platform-learning-content.js +27 -55
- package/package.json +1 -1
- package/sfdc/index.js +28 -56
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, deepFreeze, StoreKeyMap } from '@luvio/engine';
|
|
7
|
+
import { serializeStructuredKey, deepFreeze, typeCheckScalars, StoreKeyMap, typeCheckArrayOfScalars } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -906,14 +906,10 @@ function keyBuilder$m(luvio, config) {
|
|
|
906
906
|
}
|
|
907
907
|
function typeCheckConfig$9(untrustedConfig) {
|
|
908
908
|
const config = {};
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
}
|
|
913
|
-
const untrustedConfig_context = untrustedConfig.context;
|
|
914
|
-
if (typeof untrustedConfig_context === 'string') {
|
|
915
|
-
config.context = untrustedConfig_context;
|
|
916
|
-
}
|
|
909
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
910
|
+
appId: 0 /* String */,
|
|
911
|
+
context: 0 /* String */,
|
|
912
|
+
});
|
|
917
913
|
return config;
|
|
918
914
|
}
|
|
919
915
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -1181,14 +1177,10 @@ function keyBuilder$k(luvio, config) {
|
|
|
1181
1177
|
}
|
|
1182
1178
|
function typeCheckConfig$8(untrustedConfig) {
|
|
1183
1179
|
const config = {};
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
}
|
|
1188
|
-
const untrustedConfig_pageRef = untrustedConfig.pageRef;
|
|
1189
|
-
if (typeof untrustedConfig_pageRef === 'string') {
|
|
1190
|
-
config.pageRef = untrustedConfig_pageRef;
|
|
1191
|
-
}
|
|
1180
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
1181
|
+
appId: 0 /* String */,
|
|
1182
|
+
pageRef: 0 /* String */,
|
|
1183
|
+
});
|
|
1192
1184
|
return config;
|
|
1193
1185
|
}
|
|
1194
1186
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -2181,17 +2173,9 @@ function keyBuilder$f(luvio, config) {
|
|
|
2181
2173
|
}
|
|
2182
2174
|
function typeCheckConfig$6(untrustedConfig) {
|
|
2183
2175
|
const config = {};
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
for (let i = 0, arrayLength = untrustedConfig_learningItemIds.length; i < arrayLength; i++) {
|
|
2188
|
-
const untrustedConfig_learningItemIds_item = untrustedConfig_learningItemIds[i];
|
|
2189
|
-
if (typeof untrustedConfig_learningItemIds_item === 'string') {
|
|
2190
|
-
untrustedConfig_learningItemIds_array.push(untrustedConfig_learningItemIds_item);
|
|
2191
|
-
}
|
|
2192
|
-
}
|
|
2193
|
-
config.learningItemIds = untrustedConfig_learningItemIds_array;
|
|
2194
|
-
}
|
|
2176
|
+
typeCheckArrayOfScalars(untrustedConfig, config, {
|
|
2177
|
+
learningItemIds: 0 /* String */,
|
|
2178
|
+
});
|
|
2195
2179
|
return config;
|
|
2196
2180
|
}
|
|
2197
2181
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -2632,17 +2616,9 @@ function keyBuilder$c(luvio, config) {
|
|
|
2632
2616
|
}
|
|
2633
2617
|
function typeCheckConfig$5(untrustedConfig) {
|
|
2634
2618
|
const config = {};
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
for (let i = 0, arrayLength = untrustedConfig_learningItemIds.length; i < arrayLength; i++) {
|
|
2639
|
-
const untrustedConfig_learningItemIds_item = untrustedConfig_learningItemIds[i];
|
|
2640
|
-
if (typeof untrustedConfig_learningItemIds_item === 'string') {
|
|
2641
|
-
untrustedConfig_learningItemIds_array.push(untrustedConfig_learningItemIds_item);
|
|
2642
|
-
}
|
|
2643
|
-
}
|
|
2644
|
-
config.learningItemIds = untrustedConfig_learningItemIds_array;
|
|
2645
|
-
}
|
|
2619
|
+
typeCheckArrayOfScalars(untrustedConfig, config, {
|
|
2620
|
+
learningItemIds: 0 /* String */,
|
|
2621
|
+
});
|
|
2646
2622
|
return config;
|
|
2647
2623
|
}
|
|
2648
2624
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -3626,10 +3602,9 @@ function keyBuilder$9(luvio, config) {
|
|
|
3626
3602
|
}
|
|
3627
3603
|
function typeCheckConfig$4(untrustedConfig) {
|
|
3628
3604
|
const config = {};
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
}
|
|
3605
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
3606
|
+
learningItemId: 0 /* String */,
|
|
3607
|
+
});
|
|
3633
3608
|
return config;
|
|
3634
3609
|
}
|
|
3635
3610
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -4362,10 +4337,9 @@ function keyBuilder$6(luvio, config) {
|
|
|
4362
4337
|
}
|
|
4363
4338
|
function typeCheckConfig$3(untrustedConfig) {
|
|
4364
4339
|
const config = {};
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
}
|
|
4340
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
4341
|
+
moduleId: 0 /* String */,
|
|
4342
|
+
});
|
|
4369
4343
|
return config;
|
|
4370
4344
|
}
|
|
4371
4345
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -4673,10 +4647,9 @@ function keyBuilder$3(luvio, config) {
|
|
|
4673
4647
|
}
|
|
4674
4648
|
function typeCheckConfig$2(untrustedConfig) {
|
|
4675
4649
|
const config = {};
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
}
|
|
4650
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
4651
|
+
learningItemId: 0 /* String */,
|
|
4652
|
+
});
|
|
4680
4653
|
return config;
|
|
4681
4654
|
}
|
|
4682
4655
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -5212,10 +5185,9 @@ function keyBuilder(luvio, config) {
|
|
|
5212
5185
|
}
|
|
5213
5186
|
function typeCheckConfig(untrustedConfig) {
|
|
5214
5187
|
const config = {};
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
}
|
|
5188
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
5189
|
+
learningItemId: 0 /* String */,
|
|
5190
|
+
});
|
|
5219
5191
|
return config;
|
|
5220
5192
|
}
|
|
5221
5193
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
package/package.json
CHANGED
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, deepFreeze, StoreKeyMap } from 'force/luvioEngine';
|
|
17
|
+
import { serializeStructuredKey, deepFreeze, StoreKeyMap, typeCheckScalars, typeCheckArrayOfScalars } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -1222,14 +1222,10 @@ function keyBuilder$l(luvio, config) {
|
|
|
1222
1222
|
}
|
|
1223
1223
|
function typeCheckConfig$8(untrustedConfig) {
|
|
1224
1224
|
const config = {};
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
}
|
|
1229
|
-
const untrustedConfig_context = untrustedConfig.context;
|
|
1230
|
-
if (typeof untrustedConfig_context === 'string') {
|
|
1231
|
-
config.context = untrustedConfig_context;
|
|
1232
|
-
}
|
|
1225
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
1226
|
+
appId: 0 /* String */,
|
|
1227
|
+
context: 0 /* String */,
|
|
1228
|
+
});
|
|
1233
1229
|
return config;
|
|
1234
1230
|
}
|
|
1235
1231
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -1497,14 +1493,10 @@ function keyBuilder$j(luvio, config) {
|
|
|
1497
1493
|
}
|
|
1498
1494
|
function typeCheckConfig$7(untrustedConfig) {
|
|
1499
1495
|
const config = {};
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
}
|
|
1504
|
-
const untrustedConfig_pageRef = untrustedConfig.pageRef;
|
|
1505
|
-
if (typeof untrustedConfig_pageRef === 'string') {
|
|
1506
|
-
config.pageRef = untrustedConfig_pageRef;
|
|
1507
|
-
}
|
|
1496
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
1497
|
+
appId: 0 /* String */,
|
|
1498
|
+
pageRef: 0 /* String */,
|
|
1499
|
+
});
|
|
1508
1500
|
return config;
|
|
1509
1501
|
}
|
|
1510
1502
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -2027,17 +2019,9 @@ function keyBuilder$f(luvio, config) {
|
|
|
2027
2019
|
}
|
|
2028
2020
|
function typeCheckConfig$5(untrustedConfig) {
|
|
2029
2021
|
const config = {};
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
for (let i = 0, arrayLength = untrustedConfig_learningItemIds.length; i < arrayLength; i++) {
|
|
2034
|
-
const untrustedConfig_learningItemIds_item = untrustedConfig_learningItemIds[i];
|
|
2035
|
-
if (typeof untrustedConfig_learningItemIds_item === 'string') {
|
|
2036
|
-
untrustedConfig_learningItemIds_array.push(untrustedConfig_learningItemIds_item);
|
|
2037
|
-
}
|
|
2038
|
-
}
|
|
2039
|
-
config.learningItemIds = untrustedConfig_learningItemIds_array;
|
|
2040
|
-
}
|
|
2022
|
+
typeCheckArrayOfScalars(untrustedConfig, config, {
|
|
2023
|
+
learningItemIds: 0 /* String */,
|
|
2024
|
+
});
|
|
2041
2025
|
return config;
|
|
2042
2026
|
}
|
|
2043
2027
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -2775,17 +2759,9 @@ function keyBuilder$c(luvio, config) {
|
|
|
2775
2759
|
}
|
|
2776
2760
|
function typeCheckConfig$4(untrustedConfig) {
|
|
2777
2761
|
const config = {};
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
for (let i = 0, arrayLength = untrustedConfig_learningItemIds.length; i < arrayLength; i++) {
|
|
2782
|
-
const untrustedConfig_learningItemIds_item = untrustedConfig_learningItemIds[i];
|
|
2783
|
-
if (typeof untrustedConfig_learningItemIds_item === 'string') {
|
|
2784
|
-
untrustedConfig_learningItemIds_array.push(untrustedConfig_learningItemIds_item);
|
|
2785
|
-
}
|
|
2786
|
-
}
|
|
2787
|
-
config.learningItemIds = untrustedConfig_learningItemIds_array;
|
|
2788
|
-
}
|
|
2762
|
+
typeCheckArrayOfScalars(untrustedConfig, config, {
|
|
2763
|
+
learningItemIds: 0 /* String */,
|
|
2764
|
+
});
|
|
2789
2765
|
return config;
|
|
2790
2766
|
}
|
|
2791
2767
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -3769,10 +3745,9 @@ function keyBuilder$9(luvio, config) {
|
|
|
3769
3745
|
}
|
|
3770
3746
|
function typeCheckConfig$3(untrustedConfig) {
|
|
3771
3747
|
const config = {};
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
}
|
|
3748
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
3749
|
+
learningItemId: 0 /* String */,
|
|
3750
|
+
});
|
|
3776
3751
|
return config;
|
|
3777
3752
|
}
|
|
3778
3753
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -4087,10 +4062,9 @@ function keyBuilder$6(luvio, config) {
|
|
|
4087
4062
|
}
|
|
4088
4063
|
function typeCheckConfig$2(untrustedConfig) {
|
|
4089
4064
|
const config = {};
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
}
|
|
4065
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
4066
|
+
learningItemId: 0 /* String */,
|
|
4067
|
+
});
|
|
4094
4068
|
return config;
|
|
4095
4069
|
}
|
|
4096
4070
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -4864,10 +4838,9 @@ function keyBuilder$3(luvio, config) {
|
|
|
4864
4838
|
}
|
|
4865
4839
|
function typeCheckConfig$1(untrustedConfig) {
|
|
4866
4840
|
const config = {};
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
}
|
|
4841
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
4842
|
+
moduleId: 0 /* String */,
|
|
4843
|
+
});
|
|
4871
4844
|
return config;
|
|
4872
4845
|
}
|
|
4873
4846
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -5311,10 +5284,9 @@ function keyBuilder(luvio, config) {
|
|
|
5311
5284
|
}
|
|
5312
5285
|
function typeCheckConfig(untrustedConfig) {
|
|
5313
5286
|
const config = {};
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
}
|
|
5287
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
5288
|
+
learningItemId: 0 /* String */,
|
|
5289
|
+
});
|
|
5318
5290
|
return config;
|
|
5319
5291
|
}
|
|
5320
5292
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -5537,4 +5509,4 @@ withDefaultLuvio((luvio) => {
|
|
|
5537
5509
|
});
|
|
5538
5510
|
|
|
5539
5511
|
export { evaluateLearningItem, getFeaturedItemsRecommendedList, getFeaturedItemsRecommendedList_imperative, getFeaturedItemsRelatedList, getFeaturedItemsRelatedList_imperative, getLearningConfig, getLearningConfig_imperative, getLearningItemProgress, getLearningItemProgress_imperative, getLearningItemsList, getLearningItemsList_imperative, getLearningModel, getLearningModel_imperative, getLearningPractice, getLearningPracticeNotifyChange, getLearningPractice_imperative, getModule, getModuleNotifyChange, getModule_imperative, getTextLesson, getTextLessonNotifyChange, getTextLesson_imperative };
|
|
5540
|
-
// version: 1.
|
|
5512
|
+
// version: 1.208.0-027673bd6
|