@forjacms/sections 1.7.9 → 1.8.1
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 +10 -0
- package/dist/cjs/forja-blog.cjs.entry.js +2 -1
- package/dist/cjs/forja-contact.cjs.entry.js +3 -2
- package/dist/cjs/forja-cta.cjs.entry.js +2 -1
- package/dist/cjs/forja-faq.cjs.entry.js +2 -1
- package/dist/cjs/forja-features.cjs.entry.js +2 -1
- package/dist/cjs/forja-gallery.cjs.entry.js +2 -1
- package/dist/cjs/forja-hero.cjs.entry.js +2 -1
- package/dist/cjs/forja-legal.cjs.entry.js +2 -1
- package/dist/cjs/forja-logo-cloud.cjs.entry.js +2 -1
- package/dist/cjs/forja-newsletter.cjs.entry.js +3 -2
- package/dist/cjs/forja-portfolio.cjs.entry.js +4 -3
- package/dist/cjs/forja-pricing.cjs.entry.js +2 -1
- package/dist/cjs/forja-projects.cjs.entry.js +2 -1
- package/dist/cjs/forja-section-renderer.cjs.entry.js +2 -1
- package/dist/cjs/forja-stats.cjs.entry.js +2 -1
- package/dist/cjs/forja-tag-cloud.cjs.entry.js +2 -1
- package/dist/cjs/forja-team.cjs.entry.js +2 -1
- package/dist/cjs/forja-testimonials.cjs.entry.js +2 -1
- package/dist/cjs/forja-text-block.cjs.entry.js +2 -1
- package/dist/cjs/forja-timeline.cjs.entry.js +2 -1
- package/dist/cjs/forja-video.cjs.entry.js +2 -1
- package/dist/cjs/sanitize-CW5vDvZT.js +12038 -0
- package/dist/collection/components/forja-blog/forja-blog.js +2 -1
- package/dist/collection/components/forja-contact/forja-contact.js +3 -2
- package/dist/collection/components/forja-cta/forja-cta.js +2 -1
- package/dist/collection/components/forja-faq/forja-faq.js +2 -1
- package/dist/collection/components/forja-features/forja-features.js +2 -1
- package/dist/collection/components/forja-gallery/forja-gallery.js +2 -1
- package/dist/collection/components/forja-hero/forja-hero.js +2 -1
- package/dist/collection/components/forja-legal/forja-legal.js +2 -1
- package/dist/collection/components/forja-logo-cloud/forja-logo-cloud.js +2 -1
- package/dist/collection/components/forja-newsletter/forja-newsletter.js +3 -2
- package/dist/collection/components/forja-portfolio/forja-portfolio.js +4 -3
- package/dist/collection/components/forja-pricing/forja-pricing.js +2 -1
- package/dist/collection/components/forja-projects/forja-projects.js +2 -1
- package/dist/collection/components/forja-section-renderer/forja-section-renderer.js +2 -1
- package/dist/collection/components/forja-stats/forja-stats.js +2 -1
- package/dist/collection/components/forja-tag-cloud/forja-tag-cloud.js +2 -1
- package/dist/collection/components/forja-team/forja-team.js +2 -1
- package/dist/collection/components/forja-testimonials/forja-testimonials.js +2 -1
- package/dist/collection/components/forja-text-block/forja-text-block.js +2 -1
- package/dist/collection/components/forja-timeline/forja-timeline.js +2 -1
- package/dist/collection/components/forja-video/forja-video.js +2 -1
- package/dist/collection/utils/sanitize.js +28 -0
- package/dist/collection/utils/sanitize.unit.js +36 -0
- package/dist/components/forja-blog.js +1 -1
- package/dist/components/forja-contact.js +1 -1
- package/dist/components/forja-cta.js +1 -1
- package/dist/components/forja-faq.js +1 -1
- package/dist/components/forja-features.js +1 -1
- package/dist/components/forja-gallery.js +1 -1
- package/dist/components/forja-hero.js +1 -1
- package/dist/components/forja-legal.js +1 -1
- package/dist/components/forja-logo-cloud.js +1 -1
- package/dist/components/forja-newsletter.js +1 -1
- package/dist/components/forja-portfolio.js +1 -1
- package/dist/components/forja-pricing.js +1 -1
- package/dist/components/forja-projects.js +1 -1
- package/dist/components/forja-section-renderer.js +1 -1
- package/dist/components/forja-stats.js +1 -1
- package/dist/components/forja-tag-cloud.js +1 -1
- package/dist/components/forja-team.js +1 -1
- package/dist/components/forja-testimonials.js +1 -1
- package/dist/components/forja-text-block.js +1 -1
- package/dist/components/forja-timeline.js +1 -1
- package/dist/components/forja-video.js +1 -1
- package/dist/components/p-D6KWgfCs.js +7 -0
- package/dist/esm/forja-blog.entry.js +2 -1
- package/dist/esm/forja-contact.entry.js +3 -2
- package/dist/esm/forja-cta.entry.js +2 -1
- package/dist/esm/forja-faq.entry.js +2 -1
- package/dist/esm/forja-features.entry.js +2 -1
- package/dist/esm/forja-gallery.entry.js +2 -1
- package/dist/esm/forja-hero.entry.js +2 -1
- package/dist/esm/forja-legal.entry.js +2 -1
- package/dist/esm/forja-logo-cloud.entry.js +2 -1
- package/dist/esm/forja-newsletter.entry.js +3 -2
- package/dist/esm/forja-portfolio.entry.js +4 -3
- package/dist/esm/forja-pricing.entry.js +2 -1
- package/dist/esm/forja-projects.entry.js +2 -1
- package/dist/esm/forja-section-renderer.entry.js +2 -1
- package/dist/esm/forja-stats.entry.js +2 -1
- package/dist/esm/forja-tag-cloud.entry.js +2 -1
- package/dist/esm/forja-team.entry.js +2 -1
- package/dist/esm/forja-testimonials.entry.js +2 -1
- package/dist/esm/forja-text-block.entry.js +2 -1
- package/dist/esm/forja-timeline.entry.js +2 -1
- package/dist/esm/forja-video.entry.js +2 -1
- package/dist/esm/sanitize-D6KWgfCs.js +12036 -0
- package/dist/forja-sections/forja-sections.esm.js +1 -1
- package/dist/forja-sections/p-0c90861f.entry.js +1 -0
- package/dist/forja-sections/p-3224ea53.entry.js +1 -0
- package/dist/forja-sections/p-32b758b2.entry.js +1 -0
- package/dist/forja-sections/p-34e5af78.entry.js +1 -0
- package/dist/forja-sections/p-5af07298.entry.js +1 -0
- package/dist/forja-sections/p-65db9305.entry.js +1 -0
- package/dist/forja-sections/p-6815a0d9.entry.js +1 -0
- package/dist/forja-sections/p-6b63cd9e.entry.js +1 -0
- package/dist/forja-sections/p-775468ac.entry.js +1 -0
- package/dist/forja-sections/p-815198d8.entry.js +1 -0
- package/dist/forja-sections/p-D6KWgfCs.js +7 -0
- package/dist/forja-sections/p-a32ca48d.entry.js +1 -0
- package/dist/forja-sections/p-a5608f61.entry.js +1 -0
- package/dist/forja-sections/p-a9ea393f.entry.js +1 -0
- package/dist/forja-sections/p-aca042d7.entry.js +1 -0
- package/dist/forja-sections/p-ad7f6525.entry.js +1 -0
- package/dist/forja-sections/p-b022f97f.entry.js +1 -0
- package/dist/forja-sections/p-c4a6fd86.entry.js +1 -0
- package/dist/forja-sections/p-d5673a61.entry.js +1 -0
- package/dist/forja-sections/p-e9687bdd.entry.js +1 -0
- package/dist/forja-sections/p-eb4d3343.entry.js +1 -0
- package/dist/forja-sections/p-fd21a4d6.entry.js +1 -0
- package/dist/types/utils/sanitize.d.ts +7 -0
- package/dist/types/utils/sanitize.unit.d.ts +1 -0
- package/package.json +4 -2
- package/dist/forja-sections/p-2374ab45.entry.js +0 -1
- package/dist/forja-sections/p-28d89696.entry.js +0 -1
- package/dist/forja-sections/p-44c37ec0.entry.js +0 -1
- package/dist/forja-sections/p-4a64fd63.entry.js +0 -1
- package/dist/forja-sections/p-52608627.entry.js +0 -1
- package/dist/forja-sections/p-53d27751.entry.js +0 -1
- package/dist/forja-sections/p-66dee454.entry.js +0 -1
- package/dist/forja-sections/p-680fe800.entry.js +0 -1
- package/dist/forja-sections/p-73d4139c.entry.js +0 -1
- package/dist/forja-sections/p-7835a30d.entry.js +0 -1
- package/dist/forja-sections/p-7cd82cee.entry.js +0 -1
- package/dist/forja-sections/p-7dff4916.entry.js +0 -1
- package/dist/forja-sections/p-a1b4e383.entry.js +0 -1
- package/dist/forja-sections/p-a4cc2ee9.entry.js +0 -1
- package/dist/forja-sections/p-b4bf78b2.entry.js +0 -1
- package/dist/forja-sections/p-b79ab033.entry.js +0 -1
- package/dist/forja-sections/p-d312478c.entry.js +0 -1
- package/dist/forja-sections/p-da58a406.entry.js +0 -1
- package/dist/forja-sections/p-dbc78819.entry.js +0 -1
- package/dist/forja-sections/p-df44677a.entry.js +0 -1
- package/dist/forja-sections/p-f39766f7.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as e}from"./p-CJAmAUMU.js";import{s as a}from"./p-D6KWgfCs.js";import{s as t}from"./p-CTbyYfdB.js";const r=class{constructor(e){s(this,e)}render(){const s=this.items&&this.items.length>0;return e("section",{key:"dfe822afd362c2eb23743dc9747a27e1310d5326",class:"forja-features","aria-label":t(this.sectionTitle,"Features")},e("slot",{key:"27b9cde026c60da5c5cf0d04079fa8ef19ad7566",name:"before"}),(this.sectionTitle||this.text)&&e("div",{key:"c761dddc8c9dc572dcc15ebf85591f4c28c4f927",class:"forja-features__header"},this.sectionTitle&&e("h2",{key:"0a47b1d752ebaec58137e3b4371fb3f14e0cb501",class:"forja-features__title"},this.sectionTitle),this.text&&e("div",{key:"927f05f0102c835abb3031232e9b81bb63ea5dd0",class:"forja-features__text",innerHTML:a(this.text)})),s?e("ul",{class:"forja-features__grid",role:"list","data-columns":this.columns},this.items.map((s=>e("li",{class:"forja-features__item"},s.icon&&e("span",{class:"forja-features__icon","aria-hidden":"true"},s.icon),e("h3",{class:"forja-features__item-title"},s.title),s.text&&e("p",{class:"forja-features__item-text"},s.text))))):e("div",{class:"forja-features__grid",role:"list","data-columns":this.columns},e("slot",null)),e("slot",{key:"0f8f33c9742b3c43345a10fafed770980fcc1664",name:"after"}))}};export{r as forja_features}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,h as o}from"./p-CJAmAUMU.js";import{s as l}from"./p-D6KWgfCs.js";import{s}from"./p-CTbyYfdB.js";const e=class{constructor(o){a(this,o)}render(){const a=this.logos&&this.logos.length>0,e=["forja-logo-cloud",this.grayscale&&"forja-logo-cloud--grayscale"].filter(Boolean).join(" ");return o("section",{key:"32a98374780f2f556321baa7978d7746bb815e11",class:e,"aria-label":s(this.sectionTitle,"Partners")},o("slot",{key:"d422f40488b640e8b5c4d7b8a2d66bd144fc8150",name:"before"}),this.sectionTitle&&o("h2",{key:"e432f9ea6ea33ce8500eabca8d64ec6c6cf2608f",class:"forja-logo-cloud__title"},this.sectionTitle),this.text&&o("div",{key:"f0c18aa34a98a9789baafb30ce2d3fdaf3be45ce",class:"forja-logo-cloud__text",innerHTML:l(this.text)}),a?o("ul",{class:"forja-logo-cloud__grid",role:"list","data-columns":this.columns},this.logos.map((a=>o("li",{class:"forja-logo-cloud__item"},a.href?o("a",{href:a.href,class:"forja-logo-cloud__link",target:"_blank",rel:"noopener"},o("img",{src:a.imageUrl,alt:a.alt,class:"forja-logo-cloud__image",loading:"lazy"})):o("img",{src:a.imageUrl,alt:a.alt,class:"forja-logo-cloud__image",loading:"lazy"}))))):o("slot",null),o("slot",{key:"190222aa2c2d029d4c1f8fa1c21a42fa1e801795",name:"after"}))}};export{e as forja_logo_cloud}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,h as s}from"./p-CJAmAUMU.js";import{s as o}from"./p-D6KWgfCs.js";import{s as e}from"./p-CTbyYfdB.js";const l=class{constructor(s){a(this,s)}render(){const a=this.posts&&this.posts.length>0;return s("section",{key:"f388fb05e0b1c9037849aca394546a8eb940a794",class:"forja-blog","aria-label":e(this.sectionTitle,"Blog")},s("slot",{key:"7bb15fe38b974b22104ae1d5091556b403d21cc7",name:"before"}),this.sectionTitle&&s("h2",{key:"13fd9b0730213fd6f0aa066c712a46463ad01760",class:"forja-blog__title"},this.sectionTitle),this.text&&s("div",{key:"4a23d09535b8f501a8effd4eefa095d28916a9f0",class:"forja-blog__text",innerHTML:o(this.text)}),a?s("div",{class:"forja-blog__grid",role:"list","data-columns":this.columns},this.posts.map((a=>s("article",{class:"forja-blog__card",role:"listitem"},a.imageUrl&&s("a",{href:a.href,class:"forja-blog__image-link"},s("img",{src:a.imageUrl,alt:"",class:"forja-blog__image",loading:"lazy"})),s("div",{class:"forja-blog__content"},(a.date||a.author)&&s("div",{class:"forja-blog__meta"},a.date&&s("time",{class:"forja-blog__date"},a.date),a.author&&s("span",{class:"forja-blog__author"},a.author)),s("h3",{class:"forja-blog__post-title"},a.href?s("a",{href:a.href,class:"forja-blog__link"},a.title):a.title),a.excerpt&&s("div",{class:"forja-blog__excerpt",innerHTML:o(a.excerpt)})))))):s("slot",null),this.buttonText&&this.buttonHref&&s("div",{key:"8e47b739a0df71b9c7c3406ee7bf69d4f800456e",class:"forja-blog__footer"},s("a",{key:"cee686f2bd640afead6071fc2ba1c02769eb8ef0",href:this.buttonHref,class:"forja-blog__cta"},this.buttonText)),s("slot",{key:"24d9babac7a30a58d04d211e6240c227dcd77180",name:"after"}))}};export{l as forja_blog}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as a,h as e}from"./p-CJAmAUMU.js";import{s}from"./p-D6KWgfCs.js";import{a as c,s as r}from"./p-CTbyYfdB.js";import{a as o,r as i}from"./p-0ZAX27KB.js";const f=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||o(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:"c8af0ffcd913695e8dfff36728de8e2ee434b488",class:"forja-contact","aria-label":r(this.sectionTitle,"Contact")},e("slot",{key:"a7df7905ee96ce02cbda43852c8e509905bdde56",name:"before"}),e("div",{key:"fa967a307c4fc804e2e944d9c4e16131847ca9ef",class:"forja-contact__content"},this.sectionTitle&&e("h2",{key:"a4e51561fdd766ec7e8d63340cc9f6b88258fcfb",class:"forja-contact__title"},this.sectionTitle),this.text&&e("div",{key:"1845015fab28082323d875cb26c4b27b69df52df",class:"forja-contact__text",innerHTML:s(this.text)}),this.buttonText&&this.buttonHref&&e("a",{key:"232643b2eb3e313550c31b1da06b7e5f9b714397",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&&i(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:"b520fe377f4bfbb9f4e47febb064f6e0d5f67f76",name:"after"}))}};export{f as forja_contact}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as a}from"./p-CJAmAUMU.js";import{s as c}from"./p-D6KWgfCs.js";import{s as r}from"./p-CTbyYfdB.js";const t=class{constructor(a){s(this,a)}render(){const s=this.items&&this.items.length>0;return a("section",{key:"119d627bafc46c00ba92d2cf15e45f9a21d58a75",class:"forja-projects","aria-label":r(this.sectionTitle,"Projects")},a("slot",{key:"169d7ff003c11cd6f8f19a95103becb8ac3c8059",name:"before"}),this.sectionTitle&&a("h2",{key:"586f008cae7843cdbaf25b35c2471d4b78f67fc4",class:"forja-projects__title"},this.sectionTitle),this.text&&a("div",{key:"3d1a2e7c20609d6abafcc11150dc788edaf51a8d",class:"forja-projects__text",innerHTML:c(this.text)}),s?a("div",{class:"forja-projects__grid",role:"list","data-columns":this.columns},this.items.map((s=>a("article",{class:"forja-projects__card",role:"listitem"},s.imageUrl&&a("img",{src:s.imageUrl,alt:"",class:"forja-projects__image",loading:"lazy"}),a("div",{class:"forja-projects__content"},a("div",{class:"forja-projects__header"},a("h3",{class:"forja-projects__name"},s.href?a("a",{href:s.href,class:"forja-projects__link"},s.title):s.title),s.status&&a("span",{class:"forja-projects__status"},s.status)),s.description&&a("div",{class:"forja-projects__description",innerHTML:c(s.description)}),s.tags&&s.tags.length>0&&a("ul",{class:"forja-projects__tags"},s.tags.map((s=>a("li",{class:"forja-projects__tag"},s))))))))):a("slot",null),a("slot",{key:"ff07a71746a1db326a13cbb2c3c83017e3b56b81",name:"after"}))}};export{t as forja_projects}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as s}from"./p-CJAmAUMU.js";import{s as a}from"./p-D6KWgfCs.js";import{s as t}from"./p-CTbyYfdB.js";const o=class{constructor(s){e(this,s),this.provider="youtube",this.autoplay=!1,this.aspectRatio="16:9"}getAspectClass(){return{"16:9":"forja-video--16-9","4:3":"forja-video--4-3","1:1":"forja-video--1-1"}[this.aspectRatio]||"forja-video--16-9"}isSelfHosted(){return"self-hosted"===this.provider}render(){const e=["forja-video",this.getAspectClass()].join(" ");return s("section",{key:"92b7b2eeb9dbd52e247a7d70107ffbf693ffaf0f",class:e,"aria-label":t(this.sectionTitle,"Video")},s("slot",{key:"c68fc47e18569abfb4443f8d651669c0e31d8dba",name:"before"}),this.sectionTitle&&s("h2",{key:"1120b255666256f2ca82c4c6c18317c917a3a7ec",class:"forja-video__title"},this.sectionTitle),this.text&&s("div",{key:"fe22b0b6e8c3da99bff6294214d00237067b656b",class:"forja-video__text",innerHTML:a(this.text)}),this.videoUrl&&s("figure",{key:"a58dc5b318f4f8d2a9192d1ccf19dda4af485e8a",class:"forja-video__container"},this.isSelfHosted()?s("video",{class:"forja-video__player",src:this.videoUrl,controls:!0,autoplay:this.autoplay},s("track",{kind:"captions"})):s("iframe",{class:"forja-video__embed",src:this.autoplay?`${this.videoUrl}?autoplay=1`:this.videoUrl,title:this.sectionTitle||"Embedded video",allowFullScreen:!0,loading:"lazy"})),s("slot",{key:"58adbc175cda23db8067b3bc61ac93aa1cf4b77f",name:"after"}))}};export{o as forja_video}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t}from"./p-CJAmAUMU.js";import{s as i}from"./p-D6KWgfCs.js";import{s}from"./p-CTbyYfdB.js";const a=class{constructor(t){e(this,t),this.layout="vertical",this.showDates=!0}render(){const e=this.events&&this.events.length>0,a=["forja-timeline",`forja-timeline--${this.layout}`].join(" ");return t("section",{key:"66d51cf72ef9810181e94598c5548ce030f38000",class:a,"aria-label":s(this.sectionTitle,"Timeline")},t("slot",{key:"4ab32a6ed128de236776736bf6827ec5c4cb3e81",name:"before"}),this.sectionTitle&&t("h2",{key:"dadfa8106adbeb8d8e9235d85fa1fd09b43e6403",class:"forja-timeline__title"},this.sectionTitle),this.text&&t("div",{key:"44e8678d051475a3d0bfd2cb74914920dd8a87d2",class:"forja-timeline__text",innerHTML:i(this.text)}),e?t("ol",{class:"forja-timeline__list"},this.events.map((e=>t("li",{class:"forja-timeline__item"},this.showDates&&e.date&&t("time",{class:"forja-timeline__date"},e.date),t("h3",{class:"forja-timeline__event-title"},e.title),e.text&&t("div",{class:"forja-timeline__event-text",innerHTML:i(e.text)}))))):t("slot",null),t("slot",{key:"60c0f3db4c8d00bfa49199058822eaf83fecbc4c",name:"after"}))}};export{a as forja_timeline}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,h as s}from"./p-CJAmAUMU.js";import{s as e}from"./p-D6KWgfCs.js";import{s as t}from"./p-CTbyYfdB.js";import{LEGAL_DOC_TYPE_LABELS as i}from"./index.esm.js";const r=class{constructor(s){a(this,s),this.showDocumentType=!0,this.showVersion=!0,this.showDates=!0,this.showIntro=!0}formatDate(a){try{return new Date(a).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}catch(s){return a}}hasMetadata(){return this.showDocumentType&&!!this.documentType||this.showVersion&&null!=this.version||this.showDates&&!!(this.effectiveDate||this.updatedAt||this.createdAt)}render(){const a=this.documentType?i[this.documentType]||this.documentType:void 0,r=this.effectiveDate||this.updatedAt||this.createdAt;return s("article",{key:"f642e7adfbba096d8c6ea683d9227d0319409dc2",class:"forja-legal","aria-label":t(this.sectionTitle,"Legal document")},s("header",{key:"acaf35f2c653c9093ccd48779b7540766ac5794a",class:"forja-legal__header"},this.sectionTitle&&s("h1",{key:"e1a06a6c02754025f89054d564b88539ad0b4119",class:"forja-legal__title"},this.sectionTitle),this.hasMetadata()&&s("div",{key:"6494e1b855682694e9eb19e234481fa5214eea70",class:"forja-legal__meta"},this.showDocumentType&&a&&s("span",{key:"f077ab7a31892a01bd95bda259d11b9ed19a6a88",class:"forja-legal__type"},a),this.showVersion&&null!=this.version&&s("span",{key:"bf5157e4a53935c577952a230dfeeb7a9d72c521",class:"forja-legal__version"},"Version ",this.version),this.showDates&&r&&s("time",{key:"be166fdf2fbc4a99caef139f56662f80a2f09b2e",class:"forja-legal__date",dateTime:r},this.effectiveDate?"Effective ":"Updated ",this.formatDate(r)))),this.showIntro&&this.intro&&s("div",{key:"c21f507daffc033b214ac6db5115b17aa3bc2315",class:"forja-legal__intro",innerHTML:e(this.intro)}),this.body?s("div",{class:"forja-legal__body",innerHTML:e(this.body)}):s("div",{class:"forja-legal__body"},s("slot",null)))}};export{r as forja_legal}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e}from"./p-CJAmAUMU.js";import{s}from"./p-D6KWgfCs.js";import{s as a}from"./p-CTbyYfdB.js";const f=class{constructor(e){t(this,e),this.width="default",this.alignment="left"}render(){const t=["forja-text",`forja-text--${this.width}`,`forja-text--${this.alignment}`].join(" ");return e("section",{key:"acd5fa21ff60f2d9cb58b47f5f315232fe911ded",class:t,"aria-label":a(this.sectionTitle,"Content")},e("slot",{key:"23f5c5889e2c7c2f715fb4692d535381992593b5",name:"before"}),this.sectionTitle&&e("h2",{key:"400dee8b59d1e7225829a6b3343c25ebdc254748",class:"forja-text__title"},this.sectionTitle),this.text?e("div",{class:"forja-text__content",innerHTML:s(this.text)}):e("div",{class:"forja-text__content"},e("slot",null)),e("slot",{key:"053bd1a5cf2325211486a40e98c4c4878372a85e",name:"after"}))}};export{f as forja_text_block}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,h as e}from"./p-CJAmAUMU.js";import{s}from"./p-D6KWgfCs.js";import{s as t}from"./p-CTbyYfdB.js";const c=class{constructor(e){a(this,e)}render(){return e("section",{key:"bcc9c947f7925c74a917e51c9a01b3e1e28630d2",class:"forja-cta","aria-label":t(this.sectionTitle,"Call to action")},e("slot",{key:"3bc2dd9fef3b945a095b0a23ea4df2d3199ab521",name:"before"}),this.imageUrl&&e("img",{key:"2b46a5a039cba9d7d5aee6f7048616017eeab6fc",src:this.imageUrl,alt:this.imageAlt||"",class:"forja-cta__image",loading:"lazy"}),e("div",{key:"620561f04fb24781f77bec5b06a73fb9d74d807b",class:"forja-cta__content"},this.sectionTitle&&e("h2",{key:"4863015db9f2c9325db40cab71f6c2642254b2e8",class:"forja-cta__title"},this.sectionTitle),this.text&&e("div",{key:"f4b2961cdea83ef5e1172a37e32ff6622fa7e1d9",class:"forja-cta__text",innerHTML:s(this.text)}),this.buttonText&&this.buttonHref&&e("a",{key:"b816ed6ac43b25d3aca0b43443820be66068223b",href:this.buttonHref,class:"forja-cta__button"},this.buttonText)),e("slot",{key:"f7e68d935cb95eb58ecb5257a2f17518ff2f8795",name:"after"}))}};export{c as forja_cta}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as a}from"./p-CJAmAUMU.js";import{s as t}from"./p-D6KWgfCs.js";import{s as e}from"./p-CTbyYfdB.js";const i=class{constructor(a){s(this,a)}render(){const s=this.items&&this.items.length>0;return a("section",{key:"4cd7db1d63d4841f6907c1d4b765cdf873993ed0",class:"forja-testimonials","aria-label":e(this.sectionTitle,"Testimonials")},a("slot",{key:"52906ccd7177f318637f84ea3a00950e5ed05cc0",name:"before"}),this.sectionTitle&&a("h2",{key:"bdab4a7059ec36ff2451472dac1a3255d5064a1a",class:"forja-testimonials__title"},this.sectionTitle),this.text&&a("div",{key:"26408ec662085ace7ef3d57569750829163f006d",class:"forja-testimonials__text",innerHTML:t(this.text)}),a("div",{class:"forja-testimonials__list",role:"list","data-columns":this.columns},s?this.items.map((s=>a("blockquote",{class:"forja-testimonials__item",role:"listitem"},a("p",{class:"forja-testimonials__quote"},s.quote),a("footer",{class:"forja-testimonials__attribution"},s.avatarUrl&&a("img",{src:s.avatarUrl,alt:"",class:"forja-testimonials__avatar",loading:"lazy"}),a("cite",{class:"forja-testimonials__author"},a("span",{class:"forja-testimonials__name"},s.author),s.role&&a("span",{class:"forja-testimonials__role"},s.role)))))):a("slot",null)),a("slot",{key:"871d917e08a3c7e375d9bcab16265e891ec1c1ce",name:"after"}))}};export{i as forja_testimonials}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sanitize pre-rendered HTML before it is written to the DOM via `innerHTML`.
|
|
3
|
+
* Strips scripts, event handlers, and dangerous URL schemes while preserving
|
|
4
|
+
* benign rich text (headings, lists, links, images). Returns `''` for falsy
|
|
5
|
+
* input.
|
|
6
|
+
*/
|
|
7
|
+
export declare function sanitizeHtml(html: string | null | undefined): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forjacms/sections",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.1",
|
|
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",
|
|
@@ -56,11 +56,13 @@
|
|
|
56
56
|
"homepage": "https://github.com/dominikdorfstetter/forja/tree/main/libs/sections#readme",
|
|
57
57
|
"bugs": "https://github.com/dominikdorfstetter/forja/issues",
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@stencil/core": "^4.0.0"
|
|
59
|
+
"@stencil/core": "^4.0.0",
|
|
60
|
+
"sanitize-html": "^2.17.4"
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
63
|
"@stencil/react-output-target": "^1.5.0",
|
|
63
64
|
"@stencil/vitest": "^1.9.2",
|
|
65
|
+
"@types/sanitize-html": "^2.16.1",
|
|
64
66
|
"vitest": "^4.1.2"
|
|
65
67
|
}
|
|
66
68
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,h as a}from"./p-CJAmAUMU.js";import{s as t}from"./p-CTbyYfdB.js";const i=class{constructor(a){s(this,a)}render(){const s=this.items&&this.items.length>0;return a("section",{key:"348a3aea6d842d43dcbb8506111d2146347ecf65",class:"forja-testimonials","aria-label":t(this.sectionTitle,"Testimonials")},a("slot",{key:"4d372a82bb34fc2408cb168f349550f5213c1152",name:"before"}),this.sectionTitle&&a("h2",{key:"52323f5e292192065b3ab8a54efb76bc2cb9247f",class:"forja-testimonials__title"},this.sectionTitle),this.text&&a("div",{key:"f285a90d384919c0a6221b02ef2bdddf584c8636",class:"forja-testimonials__text",innerHTML:this.text}),a("div",{class:"forja-testimonials__list",role:"list","data-columns":this.columns},s?this.items.map((s=>a("blockquote",{class:"forja-testimonials__item",role:"listitem"},a("p",{class:"forja-testimonials__quote"},s.quote),a("footer",{class:"forja-testimonials__attribution"},s.avatarUrl&&a("img",{src:s.avatarUrl,alt:"",class:"forja-testimonials__avatar",loading:"lazy"}),a("cite",{class:"forja-testimonials__author"},a("span",{class:"forja-testimonials__name"},s.author),s.role&&a("span",{class:"forja-testimonials__role"},s.role)))))):a("slot",null)),a("slot",{key:"5c88e789b532b1039e2b0c74ec0afc4fb63185fb",name:"after"}))}};export{i as forja_testimonials}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,h as a}from"./p-CJAmAUMU.js";import{s as c}from"./p-CTbyYfdB.js";const e=class{constructor(a){s(this,a)}render(){const s=this.items&&this.items.length>0;return a("section",{key:"4fddb0d0031673c60d81741111e6fff5ebbb20a6",class:"forja-projects","aria-label":c(this.sectionTitle,"Projects")},a("slot",{key:"0a295eabcbfa33f584f1538b84b70cb85fd012ae",name:"before"}),this.sectionTitle&&a("h2",{key:"3792ed7f5e6e86dc9fd36274a361bffcc1267d8e",class:"forja-projects__title"},this.sectionTitle),this.text&&a("div",{key:"246daa3ff95477f019d70c1d2c3c24ccade0ecb1",class:"forja-projects__text",innerHTML:this.text}),s?a("div",{class:"forja-projects__grid",role:"list","data-columns":this.columns},this.items.map((s=>a("article",{class:"forja-projects__card",role:"listitem"},s.imageUrl&&a("img",{src:s.imageUrl,alt:"",class:"forja-projects__image",loading:"lazy"}),a("div",{class:"forja-projects__content"},a("div",{class:"forja-projects__header"},a("h3",{class:"forja-projects__name"},s.href?a("a",{href:s.href,class:"forja-projects__link"},s.title):s.title),s.status&&a("span",{class:"forja-projects__status"},s.status)),s.description&&a("div",{class:"forja-projects__description",innerHTML:s.description}),s.tags&&s.tags.length>0&&a("ul",{class:"forja-projects__tags"},s.tags.map((s=>a("li",{class:"forja-projects__tag"},s))))))))):a("slot",null),a("slot",{key:"605aa0a889bdc8199dca6895248f3cf19d8d4c83",name:"after"}))}};export{e as forja_projects}
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
import{r as a,h as s}from"./p-CJAmAUMU.js";import{s as e}from"./p-CTbyYfdB.js";const o=class{constructor(s){a(this,s)}render(){const a=this.posts&&this.posts.length>0;return s("section",{key:"2e07ceebf04b3741b7a9e9003ca4cb4c227b1f53",class:"forja-blog","aria-label":e(this.sectionTitle,"Blog")},s("slot",{key:"fa89312e96a5a9d76f9ecb35a2b884b86c724136",name:"before"}),this.sectionTitle&&s("h2",{key:"e2b67b101f958249015d16d3875ad4ef2045f5a9",class:"forja-blog__title"},this.sectionTitle),this.text&&s("div",{key:"cfb8fe068f2ca902ebee227ff919b69a3c6e28f2",class:"forja-blog__text",innerHTML:this.text}),a?s("div",{class:"forja-blog__grid",role:"list","data-columns":this.columns},this.posts.map((a=>s("article",{class:"forja-blog__card",role:"listitem"},a.imageUrl&&s("a",{href:a.href,class:"forja-blog__image-link"},s("img",{src:a.imageUrl,alt:"",class:"forja-blog__image",loading:"lazy"})),s("div",{class:"forja-blog__content"},(a.date||a.author)&&s("div",{class:"forja-blog__meta"},a.date&&s("time",{class:"forja-blog__date"},a.date),a.author&&s("span",{class:"forja-blog__author"},a.author)),s("h3",{class:"forja-blog__post-title"},a.href?s("a",{href:a.href,class:"forja-blog__link"},a.title):a.title),a.excerpt&&s("div",{class:"forja-blog__excerpt",innerHTML:a.excerpt})))))):s("slot",null),this.buttonText&&this.buttonHref&&s("div",{key:"d30200ce9a72871b17c225446e511c9792e541f1",class:"forja-blog__footer"},s("a",{key:"42eb53eb15ec8a2c88cf7bf29a425b5e0c074c28",href:this.buttonHref,class:"forja-blog__cta"},this.buttonText)),s("slot",{key:"fc9ac4b7e88a64eb401abbec1cc5e93f9dea0455",name:"after"}))}};export{o as forja_blog}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,h as r}from"./p-CJAmAUMU.js";import{s}from"./p-CTbyYfdB.js";const l=class{constructor(r){o(this,r)}renderExperiences(){return this.experiences&&0!==this.experiences.length?r("div",{class:"forja-portfolio__experiences"},r("h3",{class:"forja-portfolio__group-title"},"Experience"),r("ol",{class:"forja-portfolio__list"},this.experiences.map((o=>r("li",{class:"forja-portfolio__entry"},r("article",{class:"forja-portfolio__card"},o.logoUrl&&r("img",{src:o.logoUrl,alt:"",class:"forja-portfolio__logo",loading:"lazy"}),r("div",{class:"forja-portfolio__details"},r("h4",{class:"forja-portfolio__role"},o.role),r("p",{class:"forja-portfolio__company"},o.company),o.period&&r("time",{class:"forja-portfolio__period"},o.period),o.description&&r("div",{class:"forja-portfolio__description",innerHTML:o.description})))))))):null}renderEducation(){return this.education&&0!==this.education.length?r("div",{class:"forja-portfolio__education"},r("h3",{class:"forja-portfolio__group-title"},"Education"),r("ol",{class:"forja-portfolio__list"},this.education.map((o=>r("li",{class:"forja-portfolio__entry"},r("article",{class:"forja-portfolio__card"},r("div",{class:"forja-portfolio__details"},r("h4",{class:"forja-portfolio__role"},o.degree),r("p",{class:"forja-portfolio__company"},o.institution),o.period&&r("time",{class:"forja-portfolio__period"},o.period),o.description&&r("div",{class:"forja-portfolio__description",innerHTML:o.description})))))))):null}renderSkills(){if(!this.skills||0===this.skills.length)return null;const o=this.skills.reduce(((o,r)=>{const s=r.category||"General";return o[s]||(o[s]=[]),o[s].push(r),o}),{});return r("div",{class:"forja-portfolio__skills"},r("h3",{class:"forja-portfolio__group-title"},"Skills"),Object.entries(o).map((([s,l])=>r("div",{class:"forja-portfolio__skill-group"},Object.keys(o).length>1&&r("h4",{class:"forja-portfolio__skill-category"},s),r("ul",{class:"forja-portfolio__skill-list","data-columns":this.columns},l.map((o=>r("li",{class:"forja-portfolio__skill"},o.name))))))))}render(){return r("section",{key:"506011a5c845a8cbee32a77a2081a269efa3c2d4",class:"forja-portfolio","aria-label":s(this.sectionTitle,"Portfolio")},r("slot",{key:"f4c91d111a4e49a2492a5056376b1c2245d7db1f",name:"before"}),this.sectionTitle&&r("h2",{key:"801b3d72f636ed6e5d51f37748ad980970acc72c",class:"forja-portfolio__title"},this.sectionTitle),this.text&&r("div",{key:"2770e9835554376f00a46ad670cc2530651e6dfc",class:"forja-portfolio__text",innerHTML:this.text}),this.renderExperiences(),this.renderEducation(),this.renderSkills(),r("slot",{key:"48ded21e8a2ac6d279ea1e39d6fa6eaec32ef7aa",name:"after"}))}};export{l as forja_portfolio}
|
|
@@ -1 +0,0 @@
|
|
|
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}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,h as e}from"./p-CJAmAUMU.js";import{s}from"./p-CTbyYfdB.js";const r=class{constructor(e){a(this,e)}render(){const a=["forja-hero",this.fullWidth&&"forja-hero--full-width",this.gradient&&"forja-hero--gradient"].filter(Boolean).join(" ");return e("section",{key:"43ec04aba0825c70330d5a9f22d6a7c4168cabad",class:a,"aria-label":s(this.sectionTitle,"Hero")},e("slot",{key:"be9b16694a02aee3fe1ae96ab4bdd822ad1c0b96",name:"before"}),this.imageUrl&&e("img",{key:"d41247eb3ddb7d6782f6fdbb6df7545e20c66c2b",src:this.imageUrl,alt:this.imageAlt||"",class:"forja-hero__image",loading:"eager"}),e("div",{key:"9545c4a55a85f3309a61afa5c7249ae84c183e86",class:"forja-hero__content"},this.sectionTitle&&e("h2",{key:"1f77acc32f1aae7af9d8afaabd09fc8d2a940af6",class:"forja-hero__title"},this.sectionTitle),this.text&&e("div",{key:"9d95c5669bd63d68a82206740e18edace7b22ef4",class:"forja-hero__text",innerHTML:this.text}),this.buttonText&&this.buttonHref&&e("a",{key:"ae33f3e16544486aef89a2f33e4e0361a9a1a3ca",href:this.buttonHref,class:"forja-hero__cta"},this.buttonText)),e("slot",{key:"9fce9221736717aa80332eea4b981233a896a38c",name:"after"}))}};export{r as forja_hero}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,h as s}from"./p-CJAmAUMU.js";import{s as a}from"./p-CTbyYfdB.js";const r=class{constructor(s){i(this,s)}render(){const i=this.tiers&&this.tiers.length>0;return s("section",{key:"ecb73e364f3f4892d3d937fc7fa5df7b1f1a338e",class:"forja-pricing","aria-label":a(this.sectionTitle,"Pricing")},s("slot",{key:"08905beca81a6eb6afb74d161f47bc7e0f5b69c4",name:"before"}),(this.sectionTitle||this.text)&&s("div",{key:"fa94236ab6731c6e2f7401075bba874ed39206b9",class:"forja-pricing__header"},this.sectionTitle&&s("h2",{key:"8ced20c10ac8235fd2525c6cbbc4b5689c10fe18",class:"forja-pricing__title"},this.sectionTitle),this.text&&s("div",{key:"bf6f79ee461263f8e5bd9af2c2233683fe6cf110",class:"forja-pricing__text",innerHTML:this.text})),s("div",{class:"forja-pricing__tiers",role:"list","data-columns":this.columns},i?this.tiers.map((i=>s("div",{class:"forja-pricing__tier"+(i.highlighted?" forja-pricing__tier--highlighted":""),role:"listitem"},s("h3",{class:"forja-pricing__tier-name"},i.name),s("div",{class:"forja-pricing__price"},s("span",{class:"forja-pricing__amount"},i.price),i.period&&s("span",{class:"forja-pricing__period"},i.period)),i.description&&s("p",{class:"forja-pricing__description"},i.description),i.features&&i.features.length>0&&s("ul",{class:"forja-pricing__features"},i.features.map((i=>s("li",{class:"forja-pricing__feature"},i)))),i.buttonText&&i.buttonHref&&s("a",{href:i.buttonHref,class:"forja-pricing__cta"},i.buttonText)))):s("slot",null)),s("slot",{key:"138c32c758745fc0c225c981e15da56557659395",name:"after"}))}};export{r as forja_pricing}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,h as e}from"./p-CJAmAUMU.js";import{s}from"./p-CTbyYfdB.js";const t=class{constructor(e){a(this,e),this.showRole=!0,this.showBio=!0}render(){const a=this.members&&this.members.length>0;return e("section",{key:"65ab08dab0a410e178ce2b0a010987533b575bcd",class:"forja-team","aria-label":s(this.sectionTitle,"Team")},e("slot",{key:"daa75a84eb8bf43d21057b9f3620f96407d65007",name:"before"}),this.sectionTitle&&e("h2",{key:"682f5ee8cf15e378cdb6b33cc80e078886ca29ce",class:"forja-team__title"},this.sectionTitle),this.text&&e("div",{key:"4ce99703de2127a6637bd7e86c3bc0944c6b5960",class:"forja-team__text",innerHTML:this.text}),a?e("ul",{class:"forja-team__grid",role:"list","data-columns":this.columns},this.members.map((a=>e("li",{class:"forja-team__member"},a.imageUrl&&e("figure",{class:"forja-team__photo"},e("img",{src:a.imageUrl,alt:a.name,class:"forja-team__image",loading:"lazy"})),e("h3",{class:"forja-team__name"},a.name),this.showRole&&a.role&&e("p",{class:"forja-team__role"},a.role),this.showBio&&a.bio&&e("p",{class:"forja-team__bio"},a.bio))))):e("slot",null),e("slot",{key:"97fff600c6ed995066a34008edee4a73a9c954d2",name:"after"}))}};export{t as forja_team}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,h as e}from"./p-CJAmAUMU.js";import{s}from"./p-CTbyYfdB.js";const l=class{constructor(e){a(this,e)}render(){const a=this.items&&this.items.length>0;return e("section",{key:"b895958acc335c7a586411465baa3e5f63b96298",class:"forja-gallery","aria-label":s(this.sectionTitle,"Gallery")},e("slot",{key:"b11fe68eba917a5ba6494211ebfece03088c1d12",name:"before"}),this.sectionTitle&&e("h2",{key:"fd8b6ba0c5a51a4add4d1f4bada6691efe1ccaba",class:"forja-gallery__title"},this.sectionTitle),this.text&&e("div",{key:"99e0f4a727481d965f08c6e6028bd43472908f28",class:"forja-gallery__text",innerHTML:this.text}),e("div",{class:"forja-gallery__grid",role:"list","data-columns":this.columns},a?this.items.map((a=>e("figure",{class:"forja-gallery__item",role:"listitem"},e("img",{src:a.imageUrl,alt:a.alt||"",class:"forja-gallery__image",loading:"lazy"}),a.caption&&e("figcaption",{class:"forja-gallery__caption"},a.caption)))):e("slot",null)),e("slot",{key:"6aabc6822879290b15894b9f02b58e43205a9d75",name:"after"}))}};export{l as forja_gallery}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as t}from"./p-CJAmAUMU.js";import{s as i}from"./p-CTbyYfdB.js";const s=class{constructor(t){e(this,t),this.layout="vertical",this.showDates=!0}render(){const e=this.events&&this.events.length>0,s=["forja-timeline",`forja-timeline--${this.layout}`].join(" ");return t("section",{key:"2dce62c902a967d64dd5b6a611a177335db92965",class:s,"aria-label":i(this.sectionTitle,"Timeline")},t("slot",{key:"a68408fe55ac0b4ff1717d90abf94df9744395e8",name:"before"}),this.sectionTitle&&t("h2",{key:"59f55ce9bc8783f510050851f19d124e1e10c869",class:"forja-timeline__title"},this.sectionTitle),this.text&&t("div",{key:"16c053110be832993154c4e88b9f29370d3b66e0",class:"forja-timeline__text",innerHTML:this.text}),e?t("ol",{class:"forja-timeline__list"},this.events.map((e=>t("li",{class:"forja-timeline__item"},this.showDates&&e.date&&t("time",{class:"forja-timeline__date"},e.date),t("h3",{class:"forja-timeline__event-title"},e.title),e.text&&t("div",{class:"forja-timeline__event-text",innerHTML:e.text}))))):t("slot",null),t("slot",{key:"112addeae24306716d65f4500fb6a2dbafb8a977",name:"after"}))}};export{s as forja_timeline}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e}from"./p-CJAmAUMU.js";import{s}from"./p-CTbyYfdB.js";const c=class{constructor(e){t(this,e),this.width="default",this.alignment="left"}render(){const t=["forja-text",`forja-text--${this.width}`,`forja-text--${this.alignment}`].join(" ");return e("section",{key:"797f9ac88c3c03e2c41e7b8b3bf54b4d43dc3fd9",class:t,"aria-label":s(this.sectionTitle,"Content")},e("slot",{key:"dc6cc88ac6fde0dc315651f0d7372c3fb44527fc",name:"before"}),this.sectionTitle&&e("h2",{key:"c3e5c0b9bbd3037a9c54db36027928b67a14318f",class:"forja-text__title"},this.sectionTitle),this.text?e("div",{class:"forja-text__content",innerHTML:this.text}):e("div",{class:"forja-text__content"},e("slot",null)),e("slot",{key:"8fe560073c81469ef6669ff945df4d102699152c",name:"after"}))}};export{c as forja_text_block}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,h as s}from"./p-CJAmAUMU.js";import{s as e}from"./p-CTbyYfdB.js";const f=class{constructor(s){a(this,s)}render(){const a=this.items&&this.items.length>0;return s("section",{key:"94a1ad63276f33116d60bc7e6c00445754a4e7da",class:"forja-faq","aria-label":e(this.sectionTitle,"Frequently asked questions")},s("slot",{key:"4b33e56d9cd117bcfc07583a2c58a89d07be50dd",name:"before"}),this.sectionTitle&&s("h2",{key:"c47444fed71889ea5a693d623513328f87e6f16e",class:"forja-faq__title"},this.sectionTitle),this.text&&s("div",{key:"a7992070168b9f081dbb11689cf4e333fbf75413",class:"forja-faq__text",innerHTML:this.text}),s("div",{class:"forja-faq__list"},a?this.items.map((a=>s("details",{class:"forja-faq__item"},s("summary",{class:"forja-faq__question"},a.question),s("div",{class:"forja-faq__answer",innerHTML:a.answer})))):s("slot",null)),s("slot",{key:"77bac4fe776da5ecb301ad5bdb270e1823329f81",name:"after"}))}};export{f as forja_faq}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,h as s}from"./p-CJAmAUMU.js";import{s as l}from"./p-CTbyYfdB.js";const t=class{constructor(s){a(this,s)}render(){const a=this.tags&&this.tags.length>0;return s("section",{key:"eb6d00e49fa790e23e2397f4927e20d545222217",class:"forja-tag-cloud","aria-label":l(this.sectionTitle,"Tags")},s("slot",{key:"8a34fd949d2f96dd8fd92d6479a052373fc09d00",name:"before"}),this.sectionTitle&&s("h2",{key:"90fd03b82e40b74a16c91ba8c86100e9868239bb",class:"forja-tag-cloud__title"},this.sectionTitle),this.text&&s("div",{key:"7cf8c4c19943defa0e23f852ab27372307fa45b8",class:"forja-tag-cloud__text",innerHTML:this.text}),a?s("nav",{class:"forja-tag-cloud__nav","aria-label":"Tags"},s("ul",{class:"forja-tag-cloud__list",role:"list"},this.tags.map((a=>s("li",{class:"forja-tag-cloud__item"},a.href?s("a",{href:a.href,class:"forja-tag-cloud__tag"},s("span",{class:"forja-tag-cloud__label"},a.label),null!=a.count&&s("span",{class:"forja-tag-cloud__count","aria-label":`${a.count} items`},"(",a.count,")")):s("span",{class:"forja-tag-cloud__tag"},s("span",{class:"forja-tag-cloud__label"},a.label),null!=a.count&&s("span",{class:"forja-tag-cloud__count","aria-label":`${a.count} items`},"(",a.count,")"))))))):s("slot",null),s("slot",{key:"9d24cb03b6ea67f87f11dd97410ae25ae389276b",name:"after"}))}};export{t as forja_tag_cloud}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,h as l}from"./p-CJAmAUMU.js";import{s as a}from"./p-CTbyYfdB.js";const s=class{constructor(l){o(this,l)}render(){const o=this.logos&&this.logos.length>0,s=["forja-logo-cloud",this.grayscale&&"forja-logo-cloud--grayscale"].filter(Boolean).join(" ");return l("section",{key:"cd65ea26049ceb3de18436c961990573c548b8ae",class:s,"aria-label":a(this.sectionTitle,"Partners")},l("slot",{key:"8477f0f53553d808a63b3fe241541b0625248828",name:"before"}),this.sectionTitle&&l("h2",{key:"09e073ab7deb7ce27bf0f7e5801b10f60840b732",class:"forja-logo-cloud__title"},this.sectionTitle),this.text&&l("div",{key:"ab4cd6049231cfda659fc191fd560143027bb3c0",class:"forja-logo-cloud__text",innerHTML:this.text}),o?l("ul",{class:"forja-logo-cloud__grid",role:"list","data-columns":this.columns},this.logos.map((o=>l("li",{class:"forja-logo-cloud__item"},o.href?l("a",{href:o.href,class:"forja-logo-cloud__link",target:"_blank",rel:"noopener"},l("img",{src:o.imageUrl,alt:o.alt,class:"forja-logo-cloud__image",loading:"lazy"})):l("img",{src:o.imageUrl,alt:o.alt,class:"forja-logo-cloud__image",loading:"lazy"}))))):l("slot",null),l("slot",{key:"a56c182cd2090916395563b0c30fe21c929d1353",name:"after"}))}};export{s as forja_logo_cloud}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-CJAmAUMU.js";import{s}from"./p-CTbyYfdB.js";import{LEGAL_DOC_TYPE_LABELS as t}from"./index.esm.js";const i=class{constructor(a){e(this,a),this.showDocumentType=!0,this.showVersion=!0,this.showDates=!0,this.showIntro=!0}formatDate(e){try{return new Date(e).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}catch(a){return e}}hasMetadata(){return this.showDocumentType&&!!this.documentType||this.showVersion&&null!=this.version||this.showDates&&!!(this.effectiveDate||this.updatedAt||this.createdAt)}render(){const e=this.documentType?t[this.documentType]||this.documentType:void 0,i=this.effectiveDate||this.updatedAt||this.createdAt;return a("article",{key:"cc8f30680c29057c92c9974711069119d486baf0",class:"forja-legal","aria-label":s(this.sectionTitle,"Legal document")},a("header",{key:"4722e587aaaa5aafd1d5b87373366e037cb56f9f",class:"forja-legal__header"},this.sectionTitle&&a("h1",{key:"8ddda4f7eb1e06edcf0fb2ef151858f6359ed954",class:"forja-legal__title"},this.sectionTitle),this.hasMetadata()&&a("div",{key:"5c344b92507b3961ba809c5c5ed2b3d436712a4a",class:"forja-legal__meta"},this.showDocumentType&&e&&a("span",{key:"18ee032889dc39068301751885f0077777095779",class:"forja-legal__type"},e),this.showVersion&&null!=this.version&&a("span",{key:"62cddb2b691bd00ac0f81e58a5707d9bce43b91c",class:"forja-legal__version"},"Version ",this.version),this.showDates&&i&&a("time",{key:"e631e74a06ef96fb3e6d663516e2a8d7e55332cb",class:"forja-legal__date",dateTime:i},this.effectiveDate?"Effective ":"Updated ",this.formatDate(i)))),this.showIntro&&this.intro&&a("div",{key:"e621eccaf2fa1c0059cc7699de0a80c833c2bb8b",class:"forja-legal__intro",innerHTML:this.intro}),this.body?a("div",{class:"forja-legal__body",innerHTML:this.body}):a("div",{class:"forja-legal__body"},a("slot",null)))}};export{i as forja_legal}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,h as s}from"./p-CJAmAUMU.js";import{s as e}from"./p-CTbyYfdB.js";const t=class{constructor(s){a(this,s)}render(){const a=this.items&&this.items.length>0;return s("section",{key:"01434127526dac604e2542876f04c5ac88768038",class:"forja-features","aria-label":e(this.sectionTitle,"Features")},s("slot",{key:"cfc0d012020d197474abc35118b5c1191575d078",name:"before"}),(this.sectionTitle||this.text)&&s("div",{key:"a626af8e540db41d255ec2a637bd341686287a86",class:"forja-features__header"},this.sectionTitle&&s("h2",{key:"15bf163f29719490525523ff72f05566277bbcc0",class:"forja-features__title"},this.sectionTitle),this.text&&s("div",{key:"e9e05b4c08e6beb7ecca32df69daddafe2b53f1a",class:"forja-features__text",innerHTML:this.text})),a?s("ul",{class:"forja-features__grid",role:"list","data-columns":this.columns},this.items.map((a=>s("li",{class:"forja-features__item"},a.icon&&s("span",{class:"forja-features__icon","aria-hidden":"true"},a.icon),s("h3",{class:"forja-features__item-title"},a.title),a.text&&s("p",{class:"forja-features__item-text"},a.text))))):s("div",{class:"forja-features__grid",role:"list","data-columns":this.columns},s("slot",null)),s("slot",{key:"9521b8a787f3fb6907dd116b568a1da5764342fa",name:"after"}))}};export{t as forja_features}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,h as t}from"./p-CJAmAUMU.js";import{s as a}from"./p-CTbyYfdB.js";const e=class{constructor(t){s(this,t)}render(){const s=this.items&&this.items.length>0,e=["forja-stats",this.statsStyle&&`forja-stats--${this.statsStyle}`].filter(Boolean).join(" ");return t("section",{key:"cf1a9139a3b18e099e66f5abcfdcf7f5c90cdf74",class:e,"aria-label":a(this.sectionTitle,"Statistics")},t("slot",{key:"fc61e06e592f1cc1d1f36d47b2b8fd33b520f421",name:"before"}),this.sectionTitle&&t("h2",{key:"42026c0e7b55f0f7b185d969ca1219b1c44f7632",class:"forja-stats__title"},this.sectionTitle),this.text&&t("div",{key:"d6f9d119958786dbef4aa39e6bae82a22465e21a",class:"forja-stats__text",innerHTML:this.text}),s?t("dl",{class:"forja-stats__list","data-columns":this.columns},this.items.map((s=>t("div",{class:"forja-stats__item"},t("dd",{class:"forja-stats__value"},s.value),t("dt",{class:"forja-stats__label"},s.label))))):t("slot",null),t("slot",{key:"468c62818cee963c316c57891964bac3d4f793a6",name:"after"}))}};export{e as forja_stats}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as o}from"./p-CJAmAUMU.js";const r={Hero:"forja-hero",Features:"forja-features",Cta:"forja-cta",Gallery:"forja-gallery",Testimonials:"forja-testimonials",Pricing:"forja-pricing",Faq:"forja-faq",Contact:"forja-contact",Stats:"forja-stats",Team:"forja-team",Timeline:"forja-timeline",LogoCloud:"forja-logo-cloud",Newsletter:"forja-newsletter",Video:"forja-video",Divider:"forja-divider",Text:"forja-text-block",Portfolio:"forja-portfolio",TagCloud:"forja-tag-cloud",Projects:"forja-projects",Blog:"forja-blog",Legal:"forja-legal"},a=class{constructor(o){t(this,o)}render(){const t=r[this.sectionType];return t?o(t,{sectionTitle:this.sectionTitle,text:this.text,imageUrl:this.imageUrl,imageAlt:this.imageAlt,buttonText:this.buttonText,buttonHref:this.buttonHref,items:this.items},o("slot",null)):o("section",{class:"forja-custom"},this.sectionTitle&&o("h2",{class:"forja-custom__title"},this.sectionTitle),this.text&&o("div",{class:"forja-custom__text",innerHTML:this.text}),o("slot",null))}};export{a as forja_section_renderer}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as s}from"./p-CJAmAUMU.js";import{s as t}from"./p-CTbyYfdB.js";const a=class{constructor(s){e(this,s),this.provider="youtube",this.autoplay=!1,this.aspectRatio="16:9"}getAspectClass(){return{"16:9":"forja-video--16-9","4:3":"forja-video--4-3","1:1":"forja-video--1-1"}[this.aspectRatio]||"forja-video--16-9"}isSelfHosted(){return"self-hosted"===this.provider}render(){const e=["forja-video",this.getAspectClass()].join(" ");return s("section",{key:"3243f9bd00cd257d706cf6ca3ee463fc2f1de542",class:e,"aria-label":t(this.sectionTitle,"Video")},s("slot",{key:"a95a30fcd2ce9e696a614b3e5614c32f23bb887c",name:"before"}),this.sectionTitle&&s("h2",{key:"d43d21c2d9e78ac33670d6c7073180d813c2d868",class:"forja-video__title"},this.sectionTitle),this.text&&s("div",{key:"98a11b54335f07c79f8ed7a0576378d223f91bfb",class:"forja-video__text",innerHTML:this.text}),this.videoUrl&&s("figure",{key:"b6e4b9436e7c4f0040b00d8173ac2cf417acd575",class:"forja-video__container"},this.isSelfHosted()?s("video",{class:"forja-video__player",src:this.videoUrl,controls:!0,autoplay:this.autoplay},s("track",{kind:"captions"})):s("iframe",{class:"forja-video__embed",src:this.autoplay?`${this.videoUrl}?autoplay=1`:this.videoUrl,title:this.sectionTitle||"Embedded video",allowFullScreen:!0,loading:"lazy"})),s("slot",{key:"788a8b32e8e0e524cf681995cd25f3b4ed565371",name:"after"}))}};export{a as forja_video}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,h as t}from"./p-CJAmAUMU.js";import{s as e}from"./p-CTbyYfdB.js";const s=class{constructor(t){a(this,t)}render(){return t("section",{key:"446ccf4f954e159368c7824587d8a5db98a276d2",class:"forja-cta","aria-label":e(this.sectionTitle,"Call to action")},t("slot",{key:"3663547f1d3869de3c0295c8db3d2339a64c1f7b",name:"before"}),this.imageUrl&&t("img",{key:"192e4fa7564506794fbd55a77a9fd6f2c202eea7",src:this.imageUrl,alt:this.imageAlt||"",class:"forja-cta__image",loading:"lazy"}),t("div",{key:"f480a01537524bec5b2dd7faaa973776081c5ed0",class:"forja-cta__content"},this.sectionTitle&&t("h2",{key:"0baa33a4f63ea70a65da02669977b261d6ca9cbe",class:"forja-cta__title"},this.sectionTitle),this.text&&t("div",{key:"f67e87b654f0cb08f4415aa4ea2b7a39b5e0ca84",class:"forja-cta__text",innerHTML:this.text}),this.buttonText&&this.buttonHref&&t("a",{key:"bb0618dcd3fd6deb8f1ce1446167a9ff5d904f6b",href:this.buttonHref,class:"forja-cta__button"},this.buttonText)),t("slot",{key:"ff766293f87f21e4498004243d78c31d31889dfc",name:"after"}))}};export{s as forja_cta}
|