@forjacms/sections 1.7.6 → 1.7.9
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/cjs/{altcha-BwmX5HQc.js → altcha-J8QlF6y1.js} +4 -1
- package/dist/cjs/forja-contact.cjs.entry.js +1 -1
- package/dist/cjs/forja-newsletter.cjs.entry.js +1 -1
- package/dist/collection/utils/altcha.js +4 -1
- package/dist/components/forja-contact.js +1 -1
- package/dist/components/forja-newsletter.js +1 -1
- package/dist/components/{p-UF_OIKbF.js → p-B8qlvoCH.js} +1 -1
- package/dist/esm/{altcha-BauEO4NR.js → altcha-BaQIumM3.js} +4 -1
- package/dist/esm/forja-contact.entry.js +1 -1
- package/dist/esm/forja-newsletter.entry.js +1 -1
- package/dist/forja-sections/forja-sections.esm.js +1 -1
- package/dist/forja-sections/{p-B2hMSj1g.js → p-0ZAX27KB.js} +1 -1
- package/dist/forja-sections/{p-6160b635.entry.js → p-44c37ec0.entry.js} +1 -1
- package/dist/forja-sections/{p-50efde20.entry.js → p-53d27751.entry.js} +1 -1
- package/package.json +1 -1
|
@@ -24,7 +24,10 @@ function renderAltchaWidget(challengeUrl, testId) {
|
|
|
24
24
|
return index.h('altcha-widget', {
|
|
25
25
|
class: { 'forja-altcha': true },
|
|
26
26
|
name: 'altcha',
|
|
27
|
-
challengeurl
|
|
27
|
+
// altcha v3 renamed `challengeurl` → `challenge` (a string is the URL to
|
|
28
|
+
// fetch a fresh challenge from). The old attribute is silently ignored by
|
|
29
|
+
// v3, leaving the widget to fetch the host page instead of the challenge.
|
|
30
|
+
challenge: challengeUrl,
|
|
28
31
|
'data-testid': testId,
|
|
29
32
|
});
|
|
30
33
|
}
|
|
@@ -21,7 +21,10 @@ export function renderAltchaWidget(challengeUrl, testId) {
|
|
|
21
21
|
return h('altcha-widget', {
|
|
22
22
|
class: { 'forja-altcha': true },
|
|
23
23
|
name: 'altcha',
|
|
24
|
-
challengeurl
|
|
24
|
+
// altcha v3 renamed `challengeurl` → `challenge` (a string is the URL to
|
|
25
|
+
// fetch a fresh challenge from). The old attribute is silently ignored by
|
|
26
|
+
// v3, leaving the widget to fetch the host page instead of the challenge.
|
|
27
|
+
challenge: challengeUrl,
|
|
25
28
|
'data-testid': testId,
|
|
26
29
|
});
|
|
27
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as a,H as e,c as o,h as c}from"./p-B8rQMNWH.js";import{a as s,s as r}from"./p-CTbyYfdB.js";import{a as i,r as n}from"./p-
|
|
1
|
+
import{t,p as a,H as e,c as o,h as c}from"./p-B8rQMNWH.js";import{a as s,s as r}from"./p-CTbyYfdB.js";import{a as i,r as n}from"./p-B8qlvoCH.js";const f=a(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.forjaSubmit=o(this,"forjaSubmit"),this.botProtection="none",this.botProtectionUnsolved=!1,this.handleSubmit=t=>{t.preventDefault();const a=t.target;!this.requiresAltcha||i(a)?(this.botProtectionUnsolved=!1,this.forjaSubmit.emit(new FormData(a))):this.botProtectionUnsolved=!0}}get requiresAltcha(){return"mandatory"===this.botProtection}render(){const t=this.fields&&this.fields.length>0;return c("section",{key:"f5fa0e767bf2ed4abf6cf716b170fba8ac8fc569",class:"forja-contact","aria-label":r(this.sectionTitle,"Contact")},c("slot",{key:"ee7559a984260125a9f7bbece28a3383e5b8d383",name:"before"}),c("div",{key:"0ed33ac797e6f9e540d8b62a81f060b3d94f3303",class:"forja-contact__content"},this.sectionTitle&&c("h2",{key:"40d2850b9d1add8cd37b0238818c9bd351db2c0f",class:"forja-contact__title"},this.sectionTitle),this.text&&c("div",{key:"03487d7fdd10dfc55044eb320a26bc9ba69e122e",class:"forja-contact__text",innerHTML:this.text}),this.buttonText&&this.buttonHref&&c("a",{key:"7836f8b9458ce0a90309ccca829fb5a452d2eeec",href:this.buttonHref,class:"forja-contact__cta"},this.buttonText)),t?c("form",{class:"forja-contact__form",action:this.formAction,method:this.formAction?"post":void 0,onSubmit:this.handleSubmit},this.fields.map((t=>{const a=s(t.name,"contact");return c("div",{class:"forja-contact__field"},c("label",{class:"forja-contact__label",htmlFor:a},t.label,t.required&&c("span",{"aria-hidden":"true"}," *")),"textarea"===t.type?c("textarea",{id:a,name:t.name,class:"forja-contact__input forja-contact__input--textarea",required:t.required,"aria-required":t.required?"true":void 0,placeholder:t.placeholder}):c("input",{id:a,name:t.name,type:t.type,class:"forja-contact__input",required:t.required,"aria-required":t.required?"true":void 0,placeholder:t.placeholder}))})),this.requiresAltcha&&n(this.altchaChallengeUrl,"forja-contact-altcha"),this.botProtectionUnsolved&&c("p",{class:"forja-contact__error",role:"alert","data-testid":"forja-contact-altcha-error"},"Please complete the verification before submitting."),c("button",{type:"submit",class:"forja-contact__submit"},this.buttonText||"Send")):c("slot",null),c("slot",{key:"71b4d6ede8b21c3e841a74477c1093a5e8fc33fa",name:"after"}))}},[260,"forja-contact",{sectionTitle:[1,"section-title"],text:[1],buttonText:[1,"button-text"],buttonHref:[1,"button-href"],fields:[16],formAction:[1,"form-action"],botProtection:[1,"bot-protection"],altchaChallengeUrl:[1,"altcha-challenge-url"],botProtectionUnsolved:[32]}]);function l(){"undefined"!=typeof customElements&&["forja-contact"].forEach((a=>{"forja-contact"===a&&(customElements.get(t(a))||customElements.define(t(a),f))}))}l();const d=f,h=l;export{d as ForjaContact,h as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as a,c as s,h as r}from"./p-B8rQMNWH.js";import{a as o,s as i}from"./p-CTbyYfdB.js";import{a as l,r as c}from"./p-
|
|
1
|
+
import{t as e,p as t,H as a,c as s,h as r}from"./p-B8rQMNWH.js";import{a as o,s as i}from"./p-CTbyYfdB.js";import{a as l,r as c}from"./p-B8qlvoCH.js";const n=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.forjaSubmit=s(this,"forjaSubmit"),this.buttonText="Subscribe",this.botProtection="none",this.botProtectionUnsolved=!1,this.handleSubmit=e=>{e.preventDefault();const t=e.target;!this.requiresAltcha||l(t)?(this.botProtectionUnsolved=!1,this.forjaSubmit.emit(new FormData(t))):this.botProtectionUnsolved=!0}}get requiresAltcha(){return"mandatory"===this.botProtection}render(){const e=o(this.sectionTitle,"newsletter-email"),t=o(this.sectionTitle,"newsletter-name");return r("section",{key:"0d15c9d013c2f1250999ad86d853cbb5126bbddc",class:"forja-newsletter","aria-label":i(this.sectionTitle,"Newsletter")},r("slot",{key:"aba062b799c952a6936267573bf841fb7403a350",name:"before"}),this.sectionTitle&&r("h2",{key:"f00db5dd8b536dca31d1f39453753e4e9126f97f",class:"forja-newsletter__title"},this.sectionTitle),this.text&&r("div",{key:"857102c1929b0615a5782d97ffc969d12bb3bec6",class:"forja-newsletter__text",innerHTML:this.text}),r("form",{key:"9ac77419043d02719d05c949e8ac6e13f411affe",class:"forja-newsletter__form",action:this.formAction,method:this.formAction?"post":void 0,onSubmit:this.handleSubmit},this.showName&&r("div",{key:"073625ebadd2dd040dc19e48f136adb4919d428b",class:"forja-newsletter__field"},r("label",{key:"3133a36ccdf1c7f8a7204e2e83c71b16b1e4dcf2",class:"forja-newsletter__label",htmlFor:t},"Name"),r("input",{key:"f49b6e4e3b7f1037e6b7aaa18a6a4b10cb15d730",id:t,name:"name",type:"text",class:"forja-newsletter__input"})),r("div",{key:"59b5408e884026f6351b1397e536fc184ac2c1de",class:"forja-newsletter__field"},r("label",{key:"436373562856e04f27addcacba5083805155c913",class:"forja-newsletter__label",htmlFor:e},"Email"),r("input",{key:"042c434c7fab15fd4235e1fe2d6b509db81d1e43",id:e,name:"email",type:"email",class:"forja-newsletter__input",required:!0,"aria-required":"true"})),this.requiresAltcha&&c(this.altchaChallengeUrl,"forja-newsletter-altcha"),this.botProtectionUnsolved&&r("p",{key:"4375ea4a0f67a9dad1b6e1797e898c4b90125dfb",class:"forja-newsletter__error",role:"alert","data-testid":"forja-newsletter-altcha-error"},"Please complete the verification before submitting."),r("button",{key:"7eddc2c91799598f71af799af6c46159d688195a",type:"submit",class:"forja-newsletter__submit"},this.buttonText)),r("slot",{key:"f13a320d972bbb402cb218ee6d4d2650f5f15161",name:"after"}))}},[260,"forja-newsletter",{sectionTitle:[1,"section-title"],text:[1],buttonText:[1,"button-text"],formAction:[1,"form-action"],showName:[4,"show-name"],botProtection:[1,"bot-protection"],altchaChallengeUrl:[1,"altcha-challenge-url"],botProtectionUnsolved:[32]}]);function f(){"undefined"!=typeof customElements&&["forja-newsletter"].forEach((t=>{"forja-newsletter"===t&&(customElements.get(e(t))||customElements.define(e(t),n))}))}f();const d=n,b=f;export{d as ForjaNewsletter,b as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as a}from"./p-B8rQMNWH.js";function t(a){const t=a.querySelector('input[name="altcha"]');return!!t&&t.value.length>0}function n(t,n){return a("altcha-widget",{class:{"forja-altcha":!0},name:"altcha",
|
|
1
|
+
import{h as a}from"./p-B8rQMNWH.js";function t(a){const t=a.querySelector('input[name="altcha"]');return!!t&&t.value.length>0}function n(t,n){return a("altcha-widget",{class:{"forja-altcha":!0},name:"altcha",challenge:t,"data-testid":n})}export{t as a,n as r}
|
|
@@ -22,7 +22,10 @@ function renderAltchaWidget(challengeUrl, testId) {
|
|
|
22
22
|
return h('altcha-widget', {
|
|
23
23
|
class: { 'forja-altcha': true },
|
|
24
24
|
name: 'altcha',
|
|
25
|
-
challengeurl
|
|
25
|
+
// altcha v3 renamed `challengeurl` → `challenge` (a string is the URL to
|
|
26
|
+
// fetch a fresh challenge from). The old attribute is silently ignored by
|
|
27
|
+
// v3, leaving the widget to fetch the host page instead of the challenge.
|
|
28
|
+
challenge: challengeUrl,
|
|
26
29
|
'data-testid': testId,
|
|
27
30
|
});
|
|
28
31
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-CJAmAUMU.js';
|
|
2
2
|
import { a as sectionId, s as sectionLabel } from './a11y-CTbyYfdB.js';
|
|
3
|
-
import { a as altchaSolved, r as renderAltchaWidget } from './altcha-
|
|
3
|
+
import { a as altchaSolved, r as renderAltchaWidget } from './altcha-BaQIumM3.js';
|
|
4
4
|
|
|
5
5
|
const ForjaContact = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-CJAmAUMU.js';
|
|
2
2
|
import { a as sectionId, s as sectionLabel } from './a11y-CTbyYfdB.js';
|
|
3
|
-
import { a as altchaSolved, r as renderAltchaWidget } from './altcha-
|
|
3
|
+
import { a as altchaSolved, r as renderAltchaWidget } from './altcha-BaQIumM3.js';
|
|
4
4
|
|
|
5
5
|
const ForjaNewsletter = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,b as e}from"./p-CJAmAUMU.js";export{s as setNonce}from"./p-CJAmAUMU.js";import{g as o}from"./p-DQuL1Twl.js";(()=>{const e=import.meta.url,o={};return""!==e&&(o.resourcesUrl=new URL(".",e).href),t(o)})().then((async t=>(await o(),e([["p-4a64fd63",[[260,"forja-blog",{sectionTitle:[1,"section-title"],text:[1],posts:[16],columns:[2],buttonText:[1,"button-text"],buttonHref:[1,"button-href"]}]]],["p-
|
|
1
|
+
import{p as t,b as e}from"./p-CJAmAUMU.js";export{s as setNonce}from"./p-CJAmAUMU.js";import{g as o}from"./p-DQuL1Twl.js";(()=>{const e=import.meta.url,o={};return""!==e&&(o.resourcesUrl=new URL(".",e).href),t(o)})().then((async t=>(await o(),e([["p-4a64fd63",[[260,"forja-blog",{sectionTitle:[1,"section-title"],text:[1],posts:[16],columns:[2],buttonText:[1,"button-text"],buttonHref:[1,"button-href"]}]]],["p-44c37ec0",[[260,"forja-contact",{sectionTitle:[1,"section-title"],text:[1],buttonText:[1,"button-text"],buttonHref:[1,"button-href"],fields:[16],formAction:[1,"form-action"],botProtection:[1,"bot-protection"],altchaChallengeUrl:[1,"altcha-challenge-url"],botProtectionUnsolved:[32]}]]],["p-f39766f7",[[260,"forja-cta",{sectionTitle:[1,"section-title"],text:[1],buttonText:[1,"button-text"],buttonHref:[1,"button-href"],imageUrl:[1,"image-url"],imageAlt:[1,"image-alt"]}]]],["p-3ce9384a",[[0,"forja-divider",{dividerStyle:[1,"divider-style"],label:[1]}]]],["p-a1b4e383",[[260,"forja-faq",{sectionTitle:[1,"section-title"],text:[1],items:[16]}]]],["p-d312478c",[[260,"forja-features",{sectionTitle:[1,"section-title"],text:[1],items:[16],columns:[2]}]]],["p-19cb5c13",[[0,"forja-footer",{siteName:[1,"site-name"],homeHref:[1,"home-href"],items:[16],socialLinks:[16],showRss:[4,"show-rss"],showSitemap:[4,"show-sitemap"],tagline:[1]}]]],["p-7835a30d",[[260,"forja-gallery",{sectionTitle:[1,"section-title"],text:[1],items:[16],columns:[2]}]]],["p-66dee454",[[260,"forja-hero",{sectionTitle:[1,"section-title"],text:[1],imageUrl:[1,"image-url"],imageAlt:[1,"image-alt"],buttonText:[1,"button-text"],buttonHref:[1,"button-href"],fullWidth:[4,"full-width"],gradient:[4]}]]],["p-b79ab033",[[260,"forja-legal",{sectionTitle:[1,"section-title"],intro:[1],body:[1],documentType:[1,"document-type"],version:[2],createdAt:[1,"created-at"],updatedAt:[1,"updated-at"],effectiveDate:[1,"effective-date"],showDocumentType:[4,"show-document-type"],showVersion:[4,"show-version"],showDates:[4,"show-dates"],showIntro:[4,"show-intro"]}]]],["p-b4bf78b2",[[260,"forja-logo-cloud",{sectionTitle:[1,"section-title"],text:[1],logos:[16],columns:[2],grayscale:[4]}]]],["p-4b27f8f1",[[0,"forja-nav",{siteName:[1,"site-name"],homeHref:[1,"home-href"],items:[16],locales:[16],currentLocale:[1,"current-locale"],showThemeToggle:[4,"show-theme-toggle"],mobileOpen:[32],localeDropdownOpen:[32]}]]],["p-53d27751",[[260,"forja-newsletter",{sectionTitle:[1,"section-title"],text:[1],buttonText:[1,"button-text"],formAction:[1,"form-action"],showName:[4,"show-name"],botProtection:[1,"bot-protection"],altchaChallengeUrl:[1,"altcha-challenge-url"],botProtectionUnsolved:[32]}]]],["p-52608627",[[260,"forja-portfolio",{sectionTitle:[1,"section-title"],text:[1],experiences:[16],education:[16],skills:[16],columns:[2]}]]],["p-680fe800",[[260,"forja-pricing",{sectionTitle:[1,"section-title"],text:[1],tiers:[16],columns:[2]}]]],["p-28d89696",[[260,"forja-projects",{sectionTitle:[1,"section-title"],text:[1],items:[16],columns:[2]}]]],["p-dbc78819",[[260,"forja-section-renderer",{sectionType:[1,"section-type"],sectionTitle:[1,"section-title"],text:[1],imageUrl:[1,"image-url"],imageAlt:[1,"image-alt"],buttonText:[1,"button-text"],buttonHref:[1,"button-href"],items:[16],settings:[16]}]]],["p-da58a406",[[260,"forja-stats",{sectionTitle:[1,"section-title"],text:[1],items:[16],columns:[2],statsStyle:[1,"stats-style"]}]]],["p-a4cc2ee9",[[260,"forja-tag-cloud",{sectionTitle:[1,"section-title"],text:[1],tags:[16]}]]],["p-73d4139c",[[260,"forja-team",{sectionTitle:[1,"section-title"],text:[1],members:[16],columns:[2],showRole:[4,"show-role"],showBio:[4,"show-bio"]}]]],["p-2374ab45",[[260,"forja-testimonials",{sectionTitle:[1,"section-title"],text:[1],items:[16],columns:[2]}]]],["p-7dff4916",[[260,"forja-text-block",{sectionTitle:[1,"section-title"],text:[1],width:[1],alignment:[1]}]]],["p-7cd82cee",[[260,"forja-timeline",{sectionTitle:[1,"section-title"],text:[1],events:[16],layout:[1],showDates:[4,"show-dates"]}]]],["p-df44677a",[[260,"forja-video",{sectionTitle:[1,"section-title"],text:[1],videoUrl:[1,"video-url"],provider:[1],autoplay:[4],aspectRatio:[1,"aspect-ratio"]}]]]],t))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as a}from"./p-CJAmAUMU.js";function t(a){const t=a.querySelector('input[name="altcha"]');return!!t&&t.value.length>0}function n(t,n){return a("altcha-widget",{class:{"forja-altcha":!0},name:"altcha",
|
|
1
|
+
import{h as a}from"./p-CJAmAUMU.js";function t(a){const t=a.querySelector('input[name="altcha"]');return!!t&&t.value.length>0}function n(t,n){return a("altcha-widget",{class:{"forja-altcha":!0},name:"altcha",challenge:t,"data-testid":n})}export{t as a,n as r}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as a,h as e}from"./p-CJAmAUMU.js";import{a as c,s}from"./p-CTbyYfdB.js";import{a as r,r as o}from"./p-
|
|
1
|
+
import{r as t,c as a,h as e}from"./p-CJAmAUMU.js";import{a as c,s}from"./p-CTbyYfdB.js";import{a as r,r as o}from"./p-0ZAX27KB.js";const i=class{constructor(e){t(this,e),this.forjaSubmit=a(this,"forjaSubmit"),this.botProtection="none",this.botProtectionUnsolved=!1,this.handleSubmit=t=>{t.preventDefault();const a=t.target;!this.requiresAltcha||r(a)?(this.botProtectionUnsolved=!1,this.forjaSubmit.emit(new FormData(a))):this.botProtectionUnsolved=!0}}get requiresAltcha(){return"mandatory"===this.botProtection}render(){const t=this.fields&&this.fields.length>0;return e("section",{key:"f5fa0e767bf2ed4abf6cf716b170fba8ac8fc569",class:"forja-contact","aria-label":s(this.sectionTitle,"Contact")},e("slot",{key:"ee7559a984260125a9f7bbece28a3383e5b8d383",name:"before"}),e("div",{key:"0ed33ac797e6f9e540d8b62a81f060b3d94f3303",class:"forja-contact__content"},this.sectionTitle&&e("h2",{key:"40d2850b9d1add8cd37b0238818c9bd351db2c0f",class:"forja-contact__title"},this.sectionTitle),this.text&&e("div",{key:"03487d7fdd10dfc55044eb320a26bc9ba69e122e",class:"forja-contact__text",innerHTML:this.text}),this.buttonText&&this.buttonHref&&e("a",{key:"7836f8b9458ce0a90309ccca829fb5a452d2eeec",href:this.buttonHref,class:"forja-contact__cta"},this.buttonText)),t?e("form",{class:"forja-contact__form",action:this.formAction,method:this.formAction?"post":void 0,onSubmit:this.handleSubmit},this.fields.map((t=>{const a=c(t.name,"contact");return e("div",{class:"forja-contact__field"},e("label",{class:"forja-contact__label",htmlFor:a},t.label,t.required&&e("span",{"aria-hidden":"true"}," *")),"textarea"===t.type?e("textarea",{id:a,name:t.name,class:"forja-contact__input forja-contact__input--textarea",required:t.required,"aria-required":t.required?"true":void 0,placeholder:t.placeholder}):e("input",{id:a,name:t.name,type:t.type,class:"forja-contact__input",required:t.required,"aria-required":t.required?"true":void 0,placeholder:t.placeholder}))})),this.requiresAltcha&&o(this.altchaChallengeUrl,"forja-contact-altcha"),this.botProtectionUnsolved&&e("p",{class:"forja-contact__error",role:"alert","data-testid":"forja-contact-altcha-error"},"Please complete the verification before submitting."),e("button",{type:"submit",class:"forja-contact__submit"},this.buttonText||"Send")):e("slot",null),e("slot",{key:"71b4d6ede8b21c3e841a74477c1093a5e8fc33fa",name:"after"}))}};export{i as forja_contact}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as a}from"./p-CJAmAUMU.js";import{a as s,s as r}from"./p-CTbyYfdB.js";import{a as i,r as f}from"./p-
|
|
1
|
+
import{r as e,c as t,h as a}from"./p-CJAmAUMU.js";import{a as s,s as r}from"./p-CTbyYfdB.js";import{a as i,r as f}from"./p-0ZAX27KB.js";const c=class{constructor(a){e(this,a),this.forjaSubmit=t(this,"forjaSubmit"),this.buttonText="Subscribe",this.botProtection="none",this.botProtectionUnsolved=!1,this.handleSubmit=e=>{e.preventDefault();const t=e.target;!this.requiresAltcha||i(t)?(this.botProtectionUnsolved=!1,this.forjaSubmit.emit(new FormData(t))):this.botProtectionUnsolved=!0}}get requiresAltcha(){return"mandatory"===this.botProtection}render(){const e=s(this.sectionTitle,"newsletter-email"),t=s(this.sectionTitle,"newsletter-name");return a("section",{key:"0d15c9d013c2f1250999ad86d853cbb5126bbddc",class:"forja-newsletter","aria-label":r(this.sectionTitle,"Newsletter")},a("slot",{key:"aba062b799c952a6936267573bf841fb7403a350",name:"before"}),this.sectionTitle&&a("h2",{key:"f00db5dd8b536dca31d1f39453753e4e9126f97f",class:"forja-newsletter__title"},this.sectionTitle),this.text&&a("div",{key:"857102c1929b0615a5782d97ffc969d12bb3bec6",class:"forja-newsletter__text",innerHTML:this.text}),a("form",{key:"9ac77419043d02719d05c949e8ac6e13f411affe",class:"forja-newsletter__form",action:this.formAction,method:this.formAction?"post":void 0,onSubmit:this.handleSubmit},this.showName&&a("div",{key:"073625ebadd2dd040dc19e48f136adb4919d428b",class:"forja-newsletter__field"},a("label",{key:"3133a36ccdf1c7f8a7204e2e83c71b16b1e4dcf2",class:"forja-newsletter__label",htmlFor:t},"Name"),a("input",{key:"f49b6e4e3b7f1037e6b7aaa18a6a4b10cb15d730",id:t,name:"name",type:"text",class:"forja-newsletter__input"})),a("div",{key:"59b5408e884026f6351b1397e536fc184ac2c1de",class:"forja-newsletter__field"},a("label",{key:"436373562856e04f27addcacba5083805155c913",class:"forja-newsletter__label",htmlFor:e},"Email"),a("input",{key:"042c434c7fab15fd4235e1fe2d6b509db81d1e43",id:e,name:"email",type:"email",class:"forja-newsletter__input",required:!0,"aria-required":"true"})),this.requiresAltcha&&f(this.altchaChallengeUrl,"forja-newsletter-altcha"),this.botProtectionUnsolved&&a("p",{key:"4375ea4a0f67a9dad1b6e1797e898c4b90125dfb",class:"forja-newsletter__error",role:"alert","data-testid":"forja-newsletter-altcha-error"},"Please complete the verification before submitting."),a("button",{key:"7eddc2c91799598f71af799af6c46159d688195a",type:"submit",class:"forja-newsletter__submit"},this.buttonText)),a("slot",{key:"f13a320d972bbb402cb218ee6d4d2650f5f15161",name:"after"}))}};export{c as forja_newsletter}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forjacms/sections",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.9",
|
|
4
4
|
"description": "Framework-agnostic Web Components for rendering Forja page sections. Zero CSS — bring your own styles via BEM class hooks.",
|
|
5
5
|
"author": "Dominik Dorfstetter <dominik@dorfstetter.at>",
|
|
6
6
|
"type": "module",
|