@saasquatch/squatch-js 2.6.0-7 → 2.6.0-8
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/README.md +14 -5
- package/coverage/clover.xml +65 -64
- package/coverage/coverage-final.json +5 -5
- package/coverage/lcov.info +125 -119
- package/dist/async.d.ts +2 -2
- package/dist/squatch.esm.js +18 -22
- package/dist/squatch.esm.js.map +1 -1
- package/dist/squatch.js +18 -22
- package/dist/squatch.js.map +1 -1
- package/dist/squatch.min.js +1 -1
- package/dist/widgets/Widgets.d.ts +8 -8
- package/dist/widgets/declarative/DeclarativeWidget.d.ts +5 -5
- package/package.json +1 -1
package/coverage/lcov.info
CHANGED
|
@@ -1,42 +1,47 @@
|
|
|
1
1
|
TN:
|
|
2
2
|
SF:src/async.ts
|
|
3
3
|
FN:22,asyncLoad
|
|
4
|
-
FN:
|
|
5
|
-
FN:
|
|
6
|
-
FN:
|
|
7
|
-
|
|
4
|
+
FN:32,(anonymous_1)
|
|
5
|
+
FN:33,(anonymous_2)
|
|
6
|
+
FN:33,(anonymous_3)
|
|
7
|
+
FN:34,(anonymous_4)
|
|
8
|
+
FNF:5
|
|
8
9
|
FNH:1
|
|
9
10
|
FNDA:3,asyncLoad
|
|
10
11
|
FNDA:0,(anonymous_1)
|
|
11
12
|
FNDA:0,(anonymous_2)
|
|
12
13
|
FNDA:0,(anonymous_3)
|
|
14
|
+
FNDA:0,(anonymous_4)
|
|
13
15
|
DA:22,3
|
|
14
16
|
DA:23,3
|
|
15
|
-
DA:
|
|
17
|
+
DA:24,3
|
|
16
18
|
DA:26,3
|
|
17
|
-
DA:
|
|
18
|
-
DA:29,
|
|
19
|
-
DA:
|
|
19
|
+
DA:27,3
|
|
20
|
+
DA:29,3
|
|
21
|
+
DA:30,0
|
|
20
22
|
DA:32,0
|
|
21
23
|
DA:33,0
|
|
22
24
|
DA:34,0
|
|
23
|
-
DA:
|
|
25
|
+
DA:35,0
|
|
24
26
|
DA:39,0
|
|
25
27
|
DA:40,0
|
|
26
|
-
DA:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
BRDA:
|
|
28
|
+
DA:41,0
|
|
29
|
+
DA:43,0
|
|
30
|
+
LF:15
|
|
31
|
+
LH:6
|
|
32
|
+
BRDA:24,0,0,0
|
|
33
|
+
BRDA:24,0,1,3
|
|
31
34
|
BRDA:26,1,0,3
|
|
32
35
|
BRDA:26,1,1,3
|
|
33
|
-
BRDA:
|
|
34
|
-
BRDA:
|
|
35
|
-
BRDA:
|
|
36
|
-
BRDA:29,4,0,
|
|
36
|
+
BRDA:27,2,0,3
|
|
37
|
+
BRDA:27,2,1,3
|
|
38
|
+
BRDA:29,3,0,0
|
|
39
|
+
BRDA:29,4,0,3
|
|
37
40
|
BRDA:29,4,1,0
|
|
38
|
-
|
|
39
|
-
|
|
41
|
+
BRDA:30,5,0,0
|
|
42
|
+
BRDA:30,5,1,0
|
|
43
|
+
BRF:11
|
|
44
|
+
BRH:6
|
|
40
45
|
end_of_record
|
|
41
46
|
TN:
|
|
42
47
|
SF:src/docs.ts
|
|
@@ -748,7 +753,7 @@ FNF:7
|
|
|
748
753
|
FNH:7
|
|
749
754
|
FNDA:40,(anonymous_0)
|
|
750
755
|
FNDA:40,(anonymous_1)
|
|
751
|
-
FNDA:
|
|
756
|
+
FNDA:37,(anonymous_2)
|
|
752
757
|
FNDA:2,(anonymous_3)
|
|
753
758
|
FNDA:2,(anonymous_4)
|
|
754
759
|
FNDA:3,(anonymous_5)
|
|
@@ -781,9 +786,9 @@ DA:58,38
|
|
|
781
786
|
DA:59,38
|
|
782
787
|
DA:62,38
|
|
783
788
|
DA:63,38
|
|
784
|
-
DA:64,
|
|
785
|
-
DA:67,
|
|
786
|
-
DA:79,
|
|
789
|
+
DA:64,37
|
|
790
|
+
DA:67,37
|
|
791
|
+
DA:79,37
|
|
787
792
|
DA:80,34
|
|
788
793
|
DA:82,34
|
|
789
794
|
DA:83,2
|
|
@@ -828,8 +833,8 @@ BRDA:47,5,0,2
|
|
|
828
833
|
BRDA:47,6,0,2
|
|
829
834
|
BRDA:47,6,1,1
|
|
830
835
|
BRDA:52,7,0,0
|
|
831
|
-
BRDA:64,8,0,
|
|
832
|
-
BRDA:64,8,1,
|
|
836
|
+
BRDA:64,8,0,37
|
|
837
|
+
BRDA:64,8,1,37
|
|
833
838
|
BRDA:82,9,0,2
|
|
834
839
|
BRDA:94,10,0,0
|
|
835
840
|
BRDA:104,11,0,2
|
|
@@ -840,11 +845,12 @@ BRDA:124,14,0,3
|
|
|
840
845
|
BRDA:124,15,0,3
|
|
841
846
|
BRDA:131,16,0,34
|
|
842
847
|
BRDA:131,16,1,28
|
|
848
|
+
BRDA:131,16,2,28
|
|
843
849
|
BRDA:135,17,0,34
|
|
844
850
|
BRDA:135,17,1,9
|
|
845
851
|
BRDA:135,17,2,7
|
|
846
|
-
BRF:
|
|
847
|
-
BRH:
|
|
852
|
+
BRF:29
|
|
853
|
+
BRH:25
|
|
848
854
|
end_of_record
|
|
849
855
|
TN:
|
|
850
856
|
SF:src/widgets/PopupWidget.ts
|
|
@@ -1022,16 +1028,16 @@ FN:158,(anonymous_6)
|
|
|
1022
1028
|
FN:163,(anonymous_7)
|
|
1023
1029
|
FN:173,(anonymous_8)
|
|
1024
1030
|
FN:178,(anonymous_9)
|
|
1025
|
-
FN:
|
|
1026
|
-
FN:
|
|
1027
|
-
FN:
|
|
1028
|
-
FN:
|
|
1029
|
-
FN:
|
|
1030
|
-
FN:
|
|
1031
|
-
FN:
|
|
1032
|
-
FN:
|
|
1033
|
-
FN:
|
|
1034
|
-
FN:
|
|
1031
|
+
FN:184,(anonymous_10)
|
|
1032
|
+
FN:220,(anonymous_11)
|
|
1033
|
+
FN:228,search
|
|
1034
|
+
FN:259,(anonymous_13)
|
|
1035
|
+
FN:302,(anonymous_14)
|
|
1036
|
+
FN:310,(anonymous_15)
|
|
1037
|
+
FN:319,(anonymous_16)
|
|
1038
|
+
FN:324,(anonymous_17)
|
|
1039
|
+
FN:353,delay
|
|
1040
|
+
FN:354,(anonymous_19)
|
|
1035
1041
|
FNF:20
|
|
1036
1042
|
FNH:20
|
|
1037
1043
|
FNDA:101,(anonymous_0)
|
|
@@ -1045,15 +1051,15 @@ FNDA:4,(anonymous_7)
|
|
|
1045
1051
|
FNDA:1,(anonymous_8)
|
|
1046
1052
|
FNDA:1,(anonymous_9)
|
|
1047
1053
|
FNDA:6,(anonymous_10)
|
|
1048
|
-
FNDA:
|
|
1049
|
-
FNDA:
|
|
1054
|
+
FNDA:68,(anonymous_11)
|
|
1055
|
+
FNDA:285,search
|
|
1050
1056
|
FNDA:10,(anonymous_13)
|
|
1051
1057
|
FNDA:5,(anonymous_14)
|
|
1052
1058
|
FNDA:2,(anonymous_15)
|
|
1053
1059
|
FNDA:1,(anonymous_16)
|
|
1054
1060
|
FNDA:5,(anonymous_17)
|
|
1055
|
-
FNDA:
|
|
1056
|
-
FNDA:
|
|
1061
|
+
FNDA:275,delay
|
|
1062
|
+
FNDA:275,(anonymous_19)
|
|
1057
1063
|
DA:2,8
|
|
1058
1064
|
DA:3,8
|
|
1059
1065
|
DA:6,8
|
|
@@ -1108,60 +1114,60 @@ DA:164,4
|
|
|
1108
1114
|
DA:165,3
|
|
1109
1115
|
DA:174,1
|
|
1110
1116
|
DA:179,1
|
|
1111
|
-
DA:
|
|
1112
|
-
DA:
|
|
1113
|
-
DA:
|
|
1114
|
-
DA:
|
|
1115
|
-
DA:
|
|
1116
|
-
DA:
|
|
1117
|
-
DA:
|
|
1118
|
-
DA:
|
|
1119
|
-
DA:
|
|
1120
|
-
DA:
|
|
1121
|
-
DA:
|
|
1122
|
-
DA:
|
|
1123
|
-
DA:
|
|
1124
|
-
DA:
|
|
1125
|
-
DA:
|
|
1126
|
-
DA:
|
|
1127
|
-
DA:
|
|
1128
|
-
DA:
|
|
1117
|
+
DA:185,6
|
|
1118
|
+
DA:217,6
|
|
1119
|
+
DA:223,68
|
|
1120
|
+
DA:224,68
|
|
1121
|
+
DA:225,1
|
|
1122
|
+
DA:226,67
|
|
1123
|
+
DA:229,285
|
|
1124
|
+
DA:231,285
|
|
1125
|
+
DA:233,285
|
|
1126
|
+
DA:238,285
|
|
1127
|
+
DA:241,67
|
|
1128
|
+
DA:242,67
|
|
1129
|
+
DA:243,285
|
|
1130
|
+
DA:244,285
|
|
1131
|
+
DA:245,275
|
|
1132
|
+
DA:247,62
|
|
1133
|
+
DA:248,52
|
|
1134
|
+
DA:250,10
|
|
1135
|
+
DA:260,10
|
|
1129
1136
|
DA:261,10
|
|
1130
|
-
DA:262,
|
|
1131
|
-
DA:
|
|
1132
|
-
DA:
|
|
1133
|
-
DA:267,
|
|
1134
|
-
DA:
|
|
1135
|
-
DA:273,
|
|
1136
|
-
DA:
|
|
1137
|
-
DA:
|
|
1138
|
-
DA:
|
|
1139
|
-
DA:291,
|
|
1140
|
-
DA:
|
|
1141
|
-
DA:
|
|
1142
|
-
DA:
|
|
1137
|
+
DA:262,9
|
|
1138
|
+
DA:264,9
|
|
1139
|
+
DA:266,9
|
|
1140
|
+
DA:267,1
|
|
1141
|
+
DA:272,8
|
|
1142
|
+
DA:273,3
|
|
1143
|
+
DA:275,2
|
|
1144
|
+
DA:284,2
|
|
1145
|
+
DA:290,5
|
|
1146
|
+
DA:291,4
|
|
1147
|
+
DA:298,1
|
|
1148
|
+
DA:301,6
|
|
1149
|
+
DA:303,5
|
|
1143
1150
|
DA:304,5
|
|
1144
|
-
DA:
|
|
1145
|
-
DA:
|
|
1146
|
-
DA:
|
|
1147
|
-
DA:
|
|
1148
|
-
DA:
|
|
1151
|
+
DA:307,5
|
|
1152
|
+
DA:311,2
|
|
1153
|
+
DA:314,2
|
|
1154
|
+
DA:320,1
|
|
1155
|
+
DA:325,5
|
|
1149
1156
|
DA:326,5
|
|
1150
1157
|
DA:327,5
|
|
1151
1158
|
DA:328,5
|
|
1152
|
-
DA:
|
|
1153
|
-
DA:331,
|
|
1159
|
+
DA:330,5
|
|
1160
|
+
DA:331,2
|
|
1154
1161
|
DA:332,2
|
|
1155
|
-
DA:
|
|
1156
|
-
DA:
|
|
1157
|
-
DA:
|
|
1162
|
+
DA:334,2
|
|
1163
|
+
DA:338,2
|
|
1164
|
+
DA:342,2
|
|
1158
1165
|
DA:343,2
|
|
1159
|
-
DA:
|
|
1166
|
+
DA:346,2
|
|
1160
1167
|
DA:347,2
|
|
1161
1168
|
DA:348,2
|
|
1162
|
-
DA:
|
|
1163
|
-
DA:355,
|
|
1164
|
-
DA:356,276
|
|
1169
|
+
DA:354,275
|
|
1170
|
+
DA:355,275
|
|
1165
1171
|
LF:108
|
|
1166
1172
|
LH:108
|
|
1167
1173
|
BRDA:54,0,0,5
|
|
@@ -1191,38 +1197,38 @@ BRDA:129,13,1,1
|
|
|
1191
1197
|
BRDA:129,13,2,1
|
|
1192
1198
|
BRDA:129,13,3,1
|
|
1193
1199
|
BRDA:164,14,0,3
|
|
1194
|
-
BRDA:
|
|
1195
|
-
BRDA:
|
|
1196
|
-
BRDA:
|
|
1197
|
-
BRDA:
|
|
1198
|
-
BRDA:
|
|
1199
|
-
BRDA:
|
|
1200
|
-
BRDA:
|
|
1201
|
-
BRDA:
|
|
1202
|
-
BRDA:
|
|
1203
|
-
BRDA:
|
|
1204
|
-
BRDA:
|
|
1205
|
-
BRDA:
|
|
1206
|
-
BRDA:
|
|
1207
|
-
BRDA:
|
|
1208
|
-
BRDA:
|
|
1209
|
-
BRDA:
|
|
1210
|
-
BRDA:
|
|
1211
|
-
BRDA:
|
|
1212
|
-
BRDA:
|
|
1213
|
-
BRDA:
|
|
1214
|
-
BRDA:
|
|
1215
|
-
BRDA:
|
|
1216
|
-
BRDA:
|
|
1217
|
-
BRDA:
|
|
1218
|
-
BRDA:
|
|
1219
|
-
BRDA:
|
|
1220
|
-
BRDA:
|
|
1221
|
-
BRDA:
|
|
1222
|
-
BRDA:
|
|
1223
|
-
BRDA:
|
|
1224
|
-
BRDA:
|
|
1225
|
-
BRDA:
|
|
1200
|
+
BRDA:184,15,0,1
|
|
1201
|
+
BRDA:184,16,0,1
|
|
1202
|
+
BRDA:224,17,0,1
|
|
1203
|
+
BRDA:233,18,0,5
|
|
1204
|
+
BRDA:233,18,1,280
|
|
1205
|
+
BRDA:235,19,0,5
|
|
1206
|
+
BRDA:235,19,1,275
|
|
1207
|
+
BRDA:244,20,0,10
|
|
1208
|
+
BRDA:247,21,0,52
|
|
1209
|
+
BRDA:261,22,0,1
|
|
1210
|
+
BRDA:264,23,0,9
|
|
1211
|
+
BRDA:264,23,1,7
|
|
1212
|
+
BRDA:266,24,0,1
|
|
1213
|
+
BRDA:272,25,0,3
|
|
1214
|
+
BRDA:272,25,1,5
|
|
1215
|
+
BRDA:273,26,0,1
|
|
1216
|
+
BRDA:276,27,0,2
|
|
1217
|
+
BRDA:276,27,1,1
|
|
1218
|
+
BRDA:277,28,0,2
|
|
1219
|
+
BRDA:277,28,1,1
|
|
1220
|
+
BRDA:278,29,0,2
|
|
1221
|
+
BRDA:278,29,1,1
|
|
1222
|
+
BRDA:290,30,0,4
|
|
1223
|
+
BRDA:290,30,1,1
|
|
1224
|
+
BRDA:303,31,0,5
|
|
1225
|
+
BRDA:314,32,0,2
|
|
1226
|
+
BRDA:314,32,1,1
|
|
1227
|
+
BRDA:330,33,0,2
|
|
1228
|
+
BRDA:335,34,0,1
|
|
1229
|
+
BRDA:335,34,1,1
|
|
1230
|
+
BRDA:338,35,0,1
|
|
1231
|
+
BRDA:338,35,1,1
|
|
1226
1232
|
BRF:59
|
|
1227
1233
|
BRH:59
|
|
1228
1234
|
end_of_record
|
package/dist/async.d.ts
CHANGED
|
@@ -10,8 +10,8 @@ declare global {
|
|
|
10
10
|
squatchTenant: string;
|
|
11
11
|
squatchToken: string;
|
|
12
12
|
squatchConfig: Omit<ConfigOptions, "tenantAlias">;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
impactToken: string;
|
|
14
|
+
impactConfig: Omit<ConfigOptions, "tenantAlias">;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
/** @hidden */
|
package/dist/squatch.esm.js
CHANGED
|
@@ -76,10 +76,10 @@ function validatePasswordlessConfig(raw) {
|
|
|
76
76
|
return raw;
|
|
77
77
|
}
|
|
78
78
|
function getToken() {
|
|
79
|
-
return window.
|
|
79
|
+
return window.impactToken || window.squatchToken;
|
|
80
80
|
}
|
|
81
81
|
function getConfig() {
|
|
82
|
-
return window.
|
|
82
|
+
return window.impactConfig || window.squatchConfig;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
debug("squatch-js:io");
|
|
@@ -540,8 +540,7 @@ class Widget {
|
|
|
540
540
|
_log$8("ERROR: pushAnalyticsShareClickedEvent() " + ex);
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
|
-
}
|
|
544
|
-
|
|
543
|
+
}
|
|
545
544
|
|
|
546
545
|
_error(rs, mode, style) {
|
|
547
546
|
if (mode === void 0) {
|
|
@@ -858,7 +857,7 @@ class EmbedWidget extends Widget {
|
|
|
858
857
|
|
|
859
858
|
_shouldFireLoadEvent() {
|
|
860
859
|
var noContainer = !this.container;
|
|
861
|
-
var isComponent = this.container instanceof HTMLElement && this.container.tagName.startsWith("SQUATCH-");
|
|
860
|
+
var isComponent = this.container instanceof HTMLElement && (this.container.tagName.startsWith("SQUATCH-") || this.container.tagName.startsWith("IMPACT-"));
|
|
862
861
|
var isVerified = !!this.context.user;
|
|
863
862
|
return isVerified && (noContainer || isComponent);
|
|
864
863
|
}
|
|
@@ -1086,11 +1085,11 @@ class Widgets {
|
|
|
1086
1085
|
*/
|
|
1087
1086
|
|
|
1088
1087
|
/**
|
|
1089
|
-
* Tenant alias of SaaSquatch tenant
|
|
1088
|
+
* Tenant alias of SaaSquatch tenant
|
|
1090
1089
|
*/
|
|
1091
1090
|
|
|
1092
1091
|
/**
|
|
1093
|
-
* SaaSquatch domain for API requests
|
|
1092
|
+
* SaaSquatch domain for API requests
|
|
1094
1093
|
* @default "https://app.referralsaasquatch.com"
|
|
1095
1094
|
*/
|
|
1096
1095
|
|
|
@@ -1134,13 +1133,13 @@ class Widgets {
|
|
|
1134
1133
|
* @param {Object} config.user The user details
|
|
1135
1134
|
* @param {string} config.user.id The user id
|
|
1136
1135
|
* @param {string} config.user.accountId The user account id
|
|
1137
|
-
* @param {WidgetType} config.widgetType The content of the widget
|
|
1138
|
-
* @param {EngagementMedium} config.engagementMedium How to display the widget
|
|
1136
|
+
* @param {WidgetType} config.widgetType The content of the widget
|
|
1137
|
+
* @param {EngagementMedium} config.engagementMedium How to display the widget
|
|
1139
1138
|
* @param {string} config.jwt the JSON Web Token (JWT) that is used to validate the data (can be disabled)
|
|
1140
1139
|
* @param {HTMLElement | string | undefined} config.container Element to load the widget into
|
|
1141
1140
|
* @param {string | undefined} config.trigger Trigger element for opening the popup widget
|
|
1142
1141
|
*
|
|
1143
|
-
* @return {Promise<WidgetResult>} json object if true, with a Widget and user details
|
|
1142
|
+
* @return {Promise<WidgetResult>} json object if true, with a Widget and user details
|
|
1144
1143
|
*/
|
|
1145
1144
|
|
|
1146
1145
|
|
|
@@ -1178,12 +1177,12 @@ class Widgets {
|
|
|
1178
1177
|
* @param {Object} config.user The user details
|
|
1179
1178
|
* @param {string} config.user.id The user id
|
|
1180
1179
|
* @param {string} config.user.accountId The user account id
|
|
1181
|
-
* @param {WidgetType} config.widgetType The content of the widget
|
|
1182
|
-
* @param {EngagementMedium} config.engagementMedium How to display the widget
|
|
1180
|
+
* @param {WidgetType} config.widgetType The content of the widget
|
|
1181
|
+
* @param {EngagementMedium} config.engagementMedium How to display the widget
|
|
1183
1182
|
* @param {string} config.jwt the JSON Web Token (JWT) that is used
|
|
1184
1183
|
* to validate the data (can be disabled)
|
|
1185
1184
|
*
|
|
1186
|
-
* @return {Promise<WidgetResult>} json object if true, with a Widget and user details
|
|
1185
|
+
* @return {Promise<WidgetResult>} json object if true, with a Widget and user details
|
|
1187
1186
|
*/
|
|
1188
1187
|
|
|
1189
1188
|
|
|
@@ -1487,9 +1486,6 @@ function _validateTrackOptions(raw) {
|
|
|
1487
1486
|
function asyncLoad() {
|
|
1488
1487
|
var impactNamespace = "impactTBD";
|
|
1489
1488
|
var namespace = window[impactNamespace] ? impactNamespace : "squatch";
|
|
1490
|
-
console.log({
|
|
1491
|
-
namespace
|
|
1492
|
-
});
|
|
1493
1489
|
var loaded = window[namespace] || null;
|
|
1494
1490
|
var cached = window["_" + namespace] || null;
|
|
1495
1491
|
|
|
@@ -1685,7 +1681,7 @@ function convertExtraToConfig(obj) {
|
|
|
1685
1681
|
};
|
|
1686
1682
|
}
|
|
1687
1683
|
|
|
1688
|
-
var _log$2 = debug("squatch-js:
|
|
1684
|
+
var _log$2 = debug("squatch-js:decodeUserJwt");
|
|
1689
1685
|
|
|
1690
1686
|
function decodeUserJwt(tokenStr) {
|
|
1691
1687
|
try {
|
|
@@ -1704,7 +1700,7 @@ function decodeUserJwt(tokenStr) {
|
|
|
1704
1700
|
|
|
1705
1701
|
var _log$1 = debug$1("squatch-js:DeclarativeWidget");
|
|
1706
1702
|
/**
|
|
1707
|
-
* Abstract class for building web-components that render SaaSquatch widgets to the DOM
|
|
1703
|
+
* Abstract class for building web-components that render SaaSquatch widgets to the DOM
|
|
1708
1704
|
* @abstract
|
|
1709
1705
|
* @example
|
|
1710
1706
|
* class TestWidgetElement extends DeclarativeWidget {}
|
|
@@ -1752,7 +1748,7 @@ class DeclarativeWidget extends HTMLElement {
|
|
|
1752
1748
|
*/
|
|
1753
1749
|
|
|
1754
1750
|
/**
|
|
1755
|
-
* Determines whether to render the widget as an embedding widget or popup widget
|
|
1751
|
+
* Determines whether to render the widget as an embedding widget or popup widget
|
|
1756
1752
|
*/
|
|
1757
1753
|
|
|
1758
1754
|
/**
|
|
@@ -1883,7 +1879,7 @@ class DeclarativeWidget extends HTMLElement {
|
|
|
1883
1879
|
}
|
|
1884
1880
|
|
|
1885
1881
|
/**
|
|
1886
|
-
* Fetches widget content from SaaSquatch and builds a Widget instance to support rendering the widget in the DOM
|
|
1882
|
+
* Fetches widget content from SaaSquatch and builds a Widget instance to support rendering the widget in the DOM
|
|
1887
1883
|
* @returns Instance of either {@link EmbedWidget} or {@link PopupWidget} depending on `this.type`
|
|
1888
1884
|
* @throws Throws an Error if `widgetType` is undefined
|
|
1889
1885
|
*/
|
|
@@ -1903,7 +1899,7 @@ class DeclarativeWidget extends HTMLElement {
|
|
|
1903
1899
|
return widgetInstance;
|
|
1904
1900
|
}
|
|
1905
1901
|
/**
|
|
1906
|
-
* Calls {@link getWidgetInstance} to build the Widget instance and loads the widget iframe into the DOM
|
|
1902
|
+
* Calls {@link getWidgetInstance} to build the Widget instance and loads the widget iframe into the DOM
|
|
1907
1903
|
*/
|
|
1908
1904
|
|
|
1909
1905
|
|
|
@@ -1912,7 +1908,7 @@ class DeclarativeWidget extends HTMLElement {
|
|
|
1912
1908
|
await this.widgetInstance.load();
|
|
1913
1909
|
}
|
|
1914
1910
|
/**
|
|
1915
|
-
* Builds a Widget instance for the default error widget
|
|
1911
|
+
* Builds a Widget instance for the default error widget
|
|
1916
1912
|
* @returns Instance of either {@link EmbedWidget} or {@link PopupWidget} depending on `this.type`
|
|
1917
1913
|
*/
|
|
1918
1914
|
|