@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dw-components",
3
- "version": "1.3.148-canary.2",
3
+ "version": "1.3.148-canary.4",
4
4
  "description": "Lightning web components for https://developer.salesforce.com",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -39,7 +39,9 @@
39
39
  form-metadata={stepDatum.formMetadata}
40
40
  incoming-user-info={formIncomingUserInfo}
41
41
  onformvaliditychange={handleFormValidityChange}
42
- ></dw-j2s-form>
42
+ >
43
+ <slot name="captcha-slot"></slot>
44
+ </dw-j2s-form>
43
45
  </template>
44
46
  </template>
45
47
  </div>
@@ -154,7 +154,7 @@
154
154
  class="legal-terms no-checkbox"
155
155
  ></span>
156
156
  </div>
157
- <div if:true={recaptcha} class="captcha" lwc:dom="manual"></div>
157
+ <slot name="captcha-slot"></slot>
158
158
  </div>
159
159
  </form>
160
160
  </template>
@@ -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
- 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
- }
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() {