@salesforcedevs/dw-components 1.3.148-canary.2 → 1.3.148-canary.4
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/package.json
CHANGED
|
@@ -39,7 +39,9 @@
|
|
|
39
39
|
form-metadata={stepDatum.formMetadata}
|
|
40
40
|
incoming-user-info={formIncomingUserInfo}
|
|
41
41
|
onformvaliditychange={handleFormValidityChange}
|
|
42
|
-
|
|
42
|
+
>
|
|
43
|
+
<slot name="captcha-slot"></slot>
|
|
44
|
+
</dw-j2s-form>
|
|
43
45
|
</template>
|
|
44
46
|
</template>
|
|
45
47
|
</div>
|
|
@@ -198,20 +198,20 @@ export default class J2sForm extends LightningElementWithState<J2sFormState> {
|
|
|
198
198
|
this.template.querySelector("form")?.setAttribute("id", this.id);
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
if (!this._didRenderRecaptcha && this.recaptcha) {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
}
|
|
201
|
+
// if (!this._didRenderRecaptcha && this.recaptcha) {
|
|
202
|
+
// this._didRenderRecaptcha = true;
|
|
203
|
+
// this.recaptcha.render(this.template.querySelector(".captcha"), {
|
|
204
|
+
// sitekey: this.drmRecaptchaSiteKey,
|
|
205
|
+
// callback: (recaptchaToken: string) => {
|
|
206
|
+
// console.log("got captcha", recaptchaToken);
|
|
207
|
+
// },
|
|
208
|
+
// "expired-callback": () => {},
|
|
209
|
+
// "error-callback": (...args: any[]) => {
|
|
210
|
+
// console.log("RECAPTCHA ERROR");
|
|
211
|
+
// console.log(...args);
|
|
212
|
+
// }
|
|
213
|
+
// });
|
|
214
|
+
// }
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
disconnectedCallback() {
|