@stackshift-ui/newsletter 6.0.5-beta.2 → 6.0.5
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 +16 -16
- package/dist/chunk-4LCCWTIZ.mjs +0 -1
- package/dist/chunk-75YFHQO5.mjs +0 -1
- package/dist/chunk-FLSUAL5R.mjs +0 -1
- package/dist/chunk-YEF4UZH4.mjs +0 -1
- package/dist/helper/index.d.ts +0 -4
- package/dist/helper/index.js +0 -1
- package/dist/helper/index.mjs +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -2
- package/dist/index.mjs +0 -2
- package/dist/newsletter.d.ts +0 -9
- package/dist/newsletter.js +0 -1
- package/dist/newsletter.mjs +0 -1
- package/dist/newsletter_a.d.ts +0 -4
- package/dist/newsletter_a.js +0 -1
- package/dist/newsletter_a.mjs +0 -1
- package/dist/newsletter_b.d.ts +0 -4
- package/dist/newsletter_b.js +0 -1
- package/dist/newsletter_b.mjs +0 -1
- package/dist/types.d.ts +0 -362
- package/dist/types.js +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/newsletter",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "6.0.5
|
|
4
|
+
"version": "6.0.5",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -29,29 +29,29 @@
|
|
|
29
29
|
"typescript": "^5.6.2",
|
|
30
30
|
"vite-tsconfig-paths": "^5.0.1",
|
|
31
31
|
"vitest": "^2.1.1",
|
|
32
|
-
"@stackshift-ui/
|
|
33
|
-
"@stackshift-ui/
|
|
32
|
+
"@stackshift-ui/typescript-config": "6.0.3",
|
|
33
|
+
"@stackshift-ui/eslint-config": "6.0.3"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@stackshift-ui/
|
|
37
|
-
"@stackshift-ui/form": "6.0.4
|
|
38
|
-
"@stackshift-ui/
|
|
39
|
-
"@stackshift-ui/heading": "6.0.4
|
|
40
|
-
"@stackshift-ui/
|
|
41
|
-
"@stackshift-ui/
|
|
42
|
-
"@stackshift-ui/
|
|
43
|
-
"@stackshift-ui/
|
|
44
|
-
"@stackshift-ui/
|
|
45
|
-
"@stackshift-ui/
|
|
46
|
-
"@stackshift-ui/link": "6.0.4
|
|
47
|
-
"@stackshift-ui/
|
|
36
|
+
"@stackshift-ui/scripts": "6.0.3",
|
|
37
|
+
"@stackshift-ui/form": "6.0.4",
|
|
38
|
+
"@stackshift-ui/button": "6.0.4",
|
|
39
|
+
"@stackshift-ui/heading": "6.0.4",
|
|
40
|
+
"@stackshift-ui/system": "6.0.4",
|
|
41
|
+
"@stackshift-ui/image": "6.0.4",
|
|
42
|
+
"@stackshift-ui/input": "6.0.5",
|
|
43
|
+
"@stackshift-ui/text": "6.0.4",
|
|
44
|
+
"@stackshift-ui/section": "6.0.4",
|
|
45
|
+
"@stackshift-ui/container": "6.0.4",
|
|
46
|
+
"@stackshift-ui/link": "6.0.4",
|
|
47
|
+
"@stackshift-ui/flex": "6.0.4"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@types/react": "16.8 - 19",
|
|
51
51
|
"next": "10 - 14",
|
|
52
52
|
"react": "16.8 - 19",
|
|
53
53
|
"react-dom": "16.8 - 19",
|
|
54
|
-
"@stackshift-ui/system": ">=6.0.4
|
|
54
|
+
"@stackshift-ui/system": ">=6.0.4"
|
|
55
55
|
},
|
|
56
56
|
"peerDependenciesMeta": {
|
|
57
57
|
"next": {
|
package/dist/chunk-4LCCWTIZ.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a=e=>e?(e==null?void 0:e.linkType)==="linkInternal"?`/${e==null?void 0:e.internalLink}`:e==null?void 0:e.externalLink:"/thank-you";function u(e){switch(e){case"inputEmail":return"email";case"inputPassword":return"password";case"inputNumber":return"number";default:return"text"}}var i=e=>{var r,t,n;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(t=(r=e==null?void 0:e.internalLink)==null?void 0:r.toLowerCase())!=null&&t.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(n=e==null?void 0:e.externalLink)!=null?n:"/"};export{a,u as b,i as c};
|
package/dist/chunk-75YFHQO5.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as g,b as w,c as r}from"./chunk-4LCCWTIZ.mjs";import{Button as h}from"@stackshift-ui/button";import{Form as F}from"@stackshift-ui/form";import{Heading as k}from"@stackshift-ui/heading";import{Image as f}from"@stackshift-ui/image";import{Input as b}from"@stackshift-ui/input";import{Text as y}from"@stackshift-ui/text";import{Link as v}from"@stackshift-ui/link";import{Section as T}from"@stackshift-ui/section";import{Container as N}from"@stackshift-ui/container";import{Flex as l}from"@stackshift-ui/flex";import L from"react";import{jsx as a,jsxs as m}from"react/jsx-runtime";function P({logo:e,title:n,description:i,form:t}){return a(T,{className:"mx-auto w-full py-20 bg-background",children:a(N,{maxWidth:1280,children:m(l,{wrap:!0,align:"center",children:[a("div",{className:"w-full mb-4 text-center lg:mr-8 lg:w-auto",children:a(l,{align:"center",justify:"center",className:"mx-auto",children:a(S,{logo:e})})}),a(N,{maxWidth:412,className:"mx-auto px-4 w-full mb-6 text-center lg:ml-0 lg:text-left",children:a(B,{title:n,description:i})}),a("div",{className:"w-full lg:w-[35%]",children:a(R,{id:t==null?void 0:t.id,fields:t==null?void 0:t.fields,thankYouPage:t==null?void 0:t.thankYouPage,buttonLabel:t==null?void 0:t.buttonLabel})})]})})})}function S({logo:e}){var n;return e?a(v,{"aria-label":r(e)==="/"?"Go to home page":`Go to ${r(e)}`,className:"inline-block mb-6 text-3xl font-bold leading-none",href:r(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:a(f,{src:e==null?void 0:e.image,alt:(n=e.alt)!=null?n:"newsletter-logo",width:48,height:48,className:"inline-block mb-6 text-3xl font-bold leading-none"})}):null}function B({title:e,description:n}){return m(L.Fragment,{children:[e&&a(k,{fontSize:"2xl",className:"text-primary",children:e}),n&&a(y,{className:"my-4 leading-loose",muted:!0,children:n})]})}function R({id:e,fields:n,thankYouPage:i,buttonLabel:t}){var s,o,c,u,p,d,x;return Array.isArray(n)&&n.length>0?a(F,{id:e!=null?e:void 0,name:"NewsletterB-Form",className:"form-newsletter",thankyouPage:g(i),children:m(l,{align:"center",gap:2,className:"max-w-md mx-auto",children:[a(b,{variant:"outline",noLabel:!0,ariaLabel:(c=(s=n[0])==null?void 0:s.placeholder)!=null?c:(o=n[0])==null?void 0:o.name,className:"flex-grow w-full",type:w((u=n[0])==null?void 0:u.type),placeholder:(p=n[0])==null?void 0:p.placeholder,name:(d=n[0])==null?void 0:d.name,required:(x=n[0])==null?void 0:x.isRequired}),a("div",{children:a("div",{className:"webriq-recaptcha"})}),t&&a(h,{as:"button",ariaLabel:t!=null?t:"Newsletter form submit button",type:"submit",className:"w-1/2 text-white",children:t})]})}):null}export{P as a};
|
package/dist/chunk-FLSUAL5R.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{lazy as p}from"react";import{jsx as v}from"react/jsx-runtime";var r={variant_a:p(()=>import("./newsletter_a.mjs")),variant_b:p(()=>import("./newsletter_b.mjs"))},m="Newsletter",f=({data:o})=>{var e,s,l,t;let i=o==null?void 0:o.variant,n=i&&(r==null?void 0:r[i]),c={logo:(e=o==null?void 0:o.variants)==null?void 0:e.logo,title:(s=o==null?void 0:o.variants)==null?void 0:s.title,description:(l=o==null?void 0:o.variants)==null?void 0:l.description,form:(t=o==null?void 0:o.variants)==null?void 0:t.form};return n?v(n,{...c}):null};f.displayName=m;export{f as a};
|
package/dist/chunk-YEF4UZH4.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as x,b as N,c as r}from"./chunk-4LCCWTIZ.mjs";import F from"react";import{Button as g}from"@stackshift-ui/button";import{Form as k}from"@stackshift-ui/form";import{Heading as b}from"@stackshift-ui/heading";import{Image as y}from"@stackshift-ui/image";import{Input as f}from"@stackshift-ui/input";import{Text as T}from"@stackshift-ui/text";import{Link as L}from"@stackshift-ui/link";import{Section as P}from"@stackshift-ui/section";import{Container as w}from"@stackshift-ui/container";import{Flex as A}from"@stackshift-ui/flex";import{jsx as a,jsxs as l}from"react/jsx-runtime";function S({logo:e,title:n,description:i,form:t}){var m;return a(P,{className:"py-20 bg-background",children:a(w,{maxWidth:1280,children:l(w,{maxWidth:576,className:"text-center",children:[a(v,{logo:e}),a(R,{title:n,description:i}),a(q,{id:(m=t==null?void 0:t.id)!=null?m:void 0,fields:t==null?void 0:t.fields,buttonLabel:t==null?void 0:t.buttonLabel,thankYouPage:t==null?void 0:t.thankYouPage})]})})})}function v({logo:e}){var n;return e?a(L,{"aria-label":r(e)==="/"?"Go to home page":`Go to ${r(e)}`,className:"inline-block mb-6 text-3xl font-bold leading-none",href:r(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:a(y,{src:e==null?void 0:e.image,alt:(n=e.alt)!=null?n:"newsletter-logo",width:48,height:48,className:"inline-block mb-6 text-3xl font-bold leading-none"})}):null}function R({title:e,description:n}){return l(F.Fragment,{children:[e&&a(b,{fontSize:"2xl",className:"mb-3 text-primary",children:e}),n&&a(T,{muted:!0,className:"my-4",children:n})]})}function q({id:e,fields:n,thankYouPage:i,buttonLabel:t}){var s,o,p,c,u,d,h;return Array.isArray(n)&&n.length>0?a(k,{id:e!=null?e:void 0,name:"NewsletterA-Form",className:"form-newsletter",thankyouPage:x(i),children:l(A,{align:"center",gap:2,className:"max-w-md mx-auto",children:[a(f,{variant:"outline",noLabel:!0,ariaLabel:(p=(s=n[0])==null?void 0:s.placeholder)!=null?p:(o=n[0])==null?void 0:o.name,className:"flex-grow w-full",type:N((c=n[0])==null?void 0:c.type),placeholder:(u=n[0])==null?void 0:u.placeholder,name:(d=n[0])==null?void 0:d.name,required:(h=n[0])==null?void 0:h.isRequired}),a("div",{children:a("div",{className:"webriq-recaptcha"})}),t&&a(g,{as:"button",ariaLabel:t!=null?t:"Newsletter form submit button",type:"submit",className:"w-1/2 text-white",children:t})]})}):null}export{S as a};
|
package/dist/helper/index.d.ts
DELETED
package/dist/helper/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var u=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var L=(e,r)=>{for(var t in r)u(e,t,{get:r[t],enumerable:!0})},f=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of s(r))!p.call(e,a)&&a!==t&&u(e,a,{get:()=>r[a],enumerable:!(n=i(r,a))||n.enumerable});return e};var d=e=>f(u({},"__esModule",{value:!0}),e);var y={};L(y,{getInputType:()=>x,logoLink:()=>c,thankYouPageLink:()=>m});module.exports=d(y);var m=e=>e?(e==null?void 0:e.linkType)==="linkInternal"?`/${e==null?void 0:e.internalLink}`:e==null?void 0:e.externalLink:"/thank-you";function x(e){switch(e){case"inputEmail":return"email";case"inputPassword":return"password";case"inputNumber":return"number";default:return"text"}}var c=e=>{var r,t,n;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(t=(r=e==null?void 0:e.internalLink)==null?void 0:r.toLowerCase())!=null&&t.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(n=e==null?void 0:e.externalLink)!=null?n:"/"};0&&(module.exports={getInputType,logoLink,thankYouPageLink});
|
package/dist/helper/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c}from"../chunk-4LCCWTIZ.mjs";export{b as getInputType,c as logoLink,a as thankYouPageLink};
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";var te=Object.create;var d=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var ne=Object.getOwnPropertyNames;var ie=Object.getPrototypeOf,ae=Object.prototype.hasOwnProperty;var F=(e,t)=>()=>(e&&(t=e(e=0)),t);var y=(e,t)=>{for(var i in t)d(e,i,{get:t[i],enumerable:!0})},I=(e,t,i,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ne(t))!ae.call(e,s)&&s!==i&&d(e,s,{get:()=>t[s],enumerable:!(r=re(t,s))||r.enumerable});return e};var A=(e,t,i)=>(i=e!=null?te(ie(e)):{},I(t||!e||!e.__esModule?d(i,"default",{value:e,enumerable:!0}):i,e)),se=e=>I(d({},"__esModule",{value:!0}),e);function f(e){switch(e){case"inputEmail":return"email";case"inputPassword":return"password";case"inputNumber":return"number";default:return"text"}}var N,u,k=F(()=>{"use strict";N=e=>e?(e==null?void 0:e.linkType)==="linkInternal"?`/${e==null?void 0:e.internalLink}`:e==null?void 0:e.externalLink:"/thank-you";u=e=>{var t,i,r;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(i=(t=e==null?void 0:e.internalLink)==null?void 0:t.toLowerCase())!=null&&i.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(r=e==null?void 0:e.externalLink)!=null?r:"/"}});var z={};y(z,{Newsletter_A:()=>L,default:()=>L});function L({logo:e,title:t,description:i,form:r}){var s;return(0,a.jsx)(W.Section,{className:"py-20 bg-background",children:(0,a.jsx)(b.Container,{maxWidth:1280,children:(0,a.jsxs)(b.Container,{maxWidth:576,className:"text-center",children:[(0,a.jsx)(me,{logo:e}),(0,a.jsx)(le,{title:t,description:i}),(0,a.jsx)(pe,{id:(s=r==null?void 0:r.id)!=null?s:void 0,fields:r==null?void 0:r.fields,buttonLabel:r==null?void 0:r.buttonLabel,thankYouPage:r==null?void 0:r.thankYouPage})]})})})}function me({logo:e}){var t;return e?(0,a.jsx)(H.Link,{"aria-label":u(e)==="/"?"Go to home page":`Go to ${u(e)}`,className:"inline-block mb-6 text-3xl font-bold leading-none",href:u(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(_.Image,{src:e==null?void 0:e.image,alt:(t=e.alt)!=null?t:"newsletter-logo",width:48,height:48,className:"inline-block mb-6 text-3xl font-bold leading-none"})}):null}function le({title:e,description:t}){return(0,a.jsxs)(C.default.Fragment,{children:[e&&(0,a.jsx)(B.Heading,{fontSize:"2xl",className:"mb-3 text-primary",children:e}),t&&(0,a.jsx)(G.Text,{muted:!0,className:"my-4",children:t})]})}function pe({id:e,fields:t,thankYouPage:i,buttonLabel:r}){var m,l,p,c,o,x,w;return Array.isArray(t)&&t.length>0?(0,a.jsx)(q.Form,{id:e!=null?e:void 0,name:"NewsletterA-Form",className:"form-newsletter",thankyouPage:N(i),children:(0,a.jsxs)($.Flex,{align:"center",gap:2,className:"max-w-md mx-auto",children:[(0,a.jsx)(E.Input,{variant:"outline",noLabel:!0,ariaLabel:(p=(m=t[0])==null?void 0:m.placeholder)!=null?p:(l=t[0])==null?void 0:l.name,className:"flex-grow w-full",type:f((c=t[0])==null?void 0:c.type),placeholder:(o=t[0])==null?void 0:o.placeholder,name:(x=t[0])==null?void 0:x.name,required:(w=t[0])==null?void 0:w.isRequired}),(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"webriq-recaptcha"})}),r&&(0,a.jsx)(Y.Button,{as:"button",ariaLabel:r!=null?r:"Newsletter form submit button",type:"submit",className:"w-1/2 text-white",children:r})]})}):null}var C,Y,q,B,_,E,G,H,W,b,$,a,v=F(()=>{"use strict";C=A(require("react")),Y=require("@stackshift-ui/button"),q=require("@stackshift-ui/form"),B=require("@stackshift-ui/heading"),_=require("@stackshift-ui/image"),E=require("@stackshift-ui/input"),G=require("@stackshift-ui/text"),H=require("@stackshift-ui/link"),W=require("@stackshift-ui/section"),b=require("@stackshift-ui/container"),$=require("@stackshift-ui/flex");k();a=require("react/jsx-runtime")});var Z={};y(Z,{Newsletter_B:()=>P,default:()=>P});function P({logo:e,title:t,description:i,form:r}){return(0,n.jsx)(W.Section,{className:"mx-auto w-full py-20 bg-background",children:(0,n.jsx)(b.Container,{maxWidth:1280,children:(0,n.jsxs)($.Flex,{wrap:!0,align:"center",children:[(0,n.jsx)("div",{className:"w-full mb-4 text-center lg:mr-8 lg:w-auto",children:(0,n.jsx)($.Flex,{align:"center",justify:"center",className:"mx-auto",children:(0,n.jsx)(ue,{logo:e})})}),(0,n.jsx)(b.Container,{maxWidth:412,className:"mx-auto px-4 w-full mb-6 text-center lg:ml-0 lg:text-left",children:(0,n.jsx)(ce,{title:t,description:i})}),(0,n.jsx)("div",{className:"w-full lg:w-[35%]",children:(0,n.jsx)(oe,{id:r==null?void 0:r.id,fields:r==null?void 0:r.fields,thankYouPage:r==null?void 0:r.thankYouPage,buttonLabel:r==null?void 0:r.buttonLabel})})]})})})}function ue({logo:e}){var t;return e?(0,n.jsx)(H.Link,{"aria-label":u(e)==="/"?"Go to home page":`Go to ${u(e)}`,className:"inline-block mb-6 text-3xl font-bold leading-none",href:u(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,n.jsx)(_.Image,{src:e==null?void 0:e.image,alt:(t=e.alt)!=null?t:"newsletter-logo",width:48,height:48,className:"inline-block mb-6 text-3xl font-bold leading-none"})}):null}function ce({title:e,description:t}){return(0,n.jsxs)(U.default.Fragment,{children:[e&&(0,n.jsx)(B.Heading,{fontSize:"2xl",className:"text-primary",children:e}),t&&(0,n.jsx)(G.Text,{className:"my-4 leading-loose",muted:!0,children:t})]})}function oe({id:e,fields:t,thankYouPage:i,buttonLabel:r}){var m,l,p,c,o,x,w;return Array.isArray(t)&&t.length>0?(0,n.jsx)(q.Form,{id:e!=null?e:void 0,name:"NewsletterB-Form",className:"form-newsletter",thankyouPage:N(i),children:(0,n.jsxs)($.Flex,{align:"center",gap:2,className:"max-w-md mx-auto",children:[(0,n.jsx)(E.Input,{variant:"outline",noLabel:!0,ariaLabel:(p=(m=t[0])==null?void 0:m.placeholder)!=null?p:(l=t[0])==null?void 0:l.name,className:"flex-grow w-full",type:f((c=t[0])==null?void 0:c.type),placeholder:(o=t[0])==null?void 0:o.placeholder,name:(x=t[0])==null?void 0:x.name,required:(w=t[0])==null?void 0:w.isRequired}),(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:"webriq-recaptcha"})}),r&&(0,n.jsx)(D.Button,{as:"button",ariaLabel:r!=null?r:"Newsletter form submit button",type:"submit",className:"w-1/2 text-white",children:r})]})}):null}var D,q,B,_,E,G,H,W,b,$,U,n,T=F(()=>{"use strict";D=require("@stackshift-ui/button"),U=A(require("react"));k();n=require("react/jsx-runtime")});var we={};y(we,{Newsletter:()=>j,Newsletter_A:()=>L,Newsletter_B:()=>P});module.exports=se(we);var R=require("react"),ee=require("react/jsx-runtime"),S={variant_a:(0,R.lazy)(()=>Promise.resolve().then(()=>(v(),z))),variant_b:(0,R.lazy)(()=>Promise.resolve().then(()=>(T(),Z)))},xe="Newsletter",j=({data:e})=>{var s,m,l,p;let t=e==null?void 0:e.variant,i=t&&(S==null?void 0:S[t]),r={logo:(s=e==null?void 0:e.variants)==null?void 0:s.logo,title:(m=e==null?void 0:e.variants)==null?void 0:m.title,description:(l=e==null?void 0:e.variants)==null?void 0:l.description,form:(p=e==null?void 0:e.variants)==null?void 0:p.form};return i?(0,ee.jsx)(i,{...r}):null};j.displayName=xe;v();T();0&&(module.exports={Newsletter,Newsletter_A,Newsletter_B});
|
package/dist/index.mjs
DELETED
package/dist/newsletter.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Form, Logo, SectionsProps } from "./types";
|
|
3
|
-
export interface NewsletterProps {
|
|
4
|
-
logo?: Logo | null;
|
|
5
|
-
title?: string | null;
|
|
6
|
-
description?: string | null;
|
|
7
|
-
form?: Form | null;
|
|
8
|
-
}
|
|
9
|
-
export declare const Newsletter: React.FC<SectionsProps>;
|
package/dist/newsletter.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var te=Object.create;var d=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var ne=Object.getOwnPropertyNames;var ie=Object.getPrototypeOf,ae=Object.prototype.hasOwnProperty;var F=(e,t)=>()=>(e&&(t=e(e=0)),t);var y=(e,t)=>{for(var i in t)d(e,i,{get:t[i],enumerable:!0})},P=(e,t,i,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ne(t))!ae.call(e,s)&&s!==i&&d(e,s,{get:()=>t[s],enumerable:!(r=re(t,s))||r.enumerable});return e};var T=(e,t,i)=>(i=e!=null?te(ie(e)):{},P(t||!e||!e.__esModule?d(i,"default",{value:e,enumerable:!0}):i,e)),se=e=>P(d({},"__esModule",{value:!0}),e);function h(e){switch(e){case"inputEmail":return"email";case"inputPassword":return"password";case"inputNumber":return"number";default:return"text"}}var N,u,k=F(()=>{"use strict";N=e=>e?(e==null?void 0:e.linkType)==="linkInternal"?`/${e==null?void 0:e.internalLink}`:e==null?void 0:e.externalLink:"/thank-you";u=e=>{var t,i,r;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(i=(t=e==null?void 0:e.internalLink)==null?void 0:t.toLowerCase())!=null&&i.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(r=e==null?void 0:e.externalLink)!=null?r:"/"}});var H={};y(H,{Newsletter_A:()=>G,default:()=>G});function G({logo:e,title:t,description:i,form:r}){var s;return(0,a.jsx)(_.Section,{className:"py-20 bg-background",children:(0,a.jsx)(b.Container,{maxWidth:1280,children:(0,a.jsxs)(b.Container,{maxWidth:576,className:"text-center",children:[(0,a.jsx)(me,{logo:e}),(0,a.jsx)(le,{title:t,description:i}),(0,a.jsx)(pe,{id:(s=r==null?void 0:r.id)!=null?s:void 0,fields:r==null?void 0:r.fields,buttonLabel:r==null?void 0:r.buttonLabel,thankYouPage:r==null?void 0:r.thankYouPage})]})})})}function me({logo:e}){var t;return e?(0,a.jsx)(B.Link,{"aria-label":u(e)==="/"?"Go to home page":`Go to ${u(e)}`,className:"inline-block mb-6 text-3xl font-bold leading-none",href:u(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(C.Image,{src:e==null?void 0:e.image,alt:(t=e.alt)!=null?t:"newsletter-logo",width:48,height:48,className:"inline-block mb-6 text-3xl font-bold leading-none"})}):null}function le({title:e,description:t}){return(0,a.jsxs)(S.default.Fragment,{children:[e&&(0,a.jsx)(A.Heading,{fontSize:"2xl",className:"mb-3 text-primary",children:e}),t&&(0,a.jsx)(q.Text,{muted:!0,className:"my-4",children:t})]})}function pe({id:e,fields:t,thankYouPage:i,buttonLabel:r}){var m,l,p,c,o,x,w;return Array.isArray(t)&&t.length>0?(0,a.jsx)(I.Form,{id:e!=null?e:void 0,name:"NewsletterA-Form",className:"form-newsletter",thankyouPage:N(i),children:(0,a.jsxs)(E.Flex,{align:"center",gap:2,className:"max-w-md mx-auto",children:[(0,a.jsx)(Y.Input,{variant:"outline",noLabel:!0,ariaLabel:(p=(m=t[0])==null?void 0:m.placeholder)!=null?p:(l=t[0])==null?void 0:l.name,className:"flex-grow w-full",type:h((c=t[0])==null?void 0:c.type),placeholder:(o=t[0])==null?void 0:o.placeholder,name:(x=t[0])==null?void 0:x.name,required:(w=t[0])==null?void 0:w.isRequired}),(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"webriq-recaptcha"})}),r&&(0,a.jsx)(R.Button,{as:"button",ariaLabel:r!=null?r:"Newsletter form submit button",type:"submit",className:"w-1/2 text-white",children:r})]})}):null}var S,R,I,A,C,Y,q,B,_,b,E,a,W=F(()=>{"use strict";S=T(require("react")),R=require("@stackshift-ui/button"),I=require("@stackshift-ui/form"),A=require("@stackshift-ui/heading"),C=require("@stackshift-ui/image"),Y=require("@stackshift-ui/input"),q=require("@stackshift-ui/text"),B=require("@stackshift-ui/link"),_=require("@stackshift-ui/section"),b=require("@stackshift-ui/container"),E=require("@stackshift-ui/flex");k();a=require("react/jsx-runtime")});var U={};y(U,{Newsletter_B:()=>Q,default:()=>Q});function Q({logo:e,title:t,description:i,form:r}){return(0,n.jsx)(_.Section,{className:"mx-auto w-full py-20 bg-background",children:(0,n.jsx)(b.Container,{maxWidth:1280,children:(0,n.jsxs)(E.Flex,{wrap:!0,align:"center",children:[(0,n.jsx)("div",{className:"w-full mb-4 text-center lg:mr-8 lg:w-auto",children:(0,n.jsx)(E.Flex,{align:"center",justify:"center",className:"mx-auto",children:(0,n.jsx)(ue,{logo:e})})}),(0,n.jsx)(b.Container,{maxWidth:412,className:"mx-auto px-4 w-full mb-6 text-center lg:ml-0 lg:text-left",children:(0,n.jsx)(ce,{title:t,description:i})}),(0,n.jsx)("div",{className:"w-full lg:w-[35%]",children:(0,n.jsx)(oe,{id:r==null?void 0:r.id,fields:r==null?void 0:r.fields,thankYouPage:r==null?void 0:r.thankYouPage,buttonLabel:r==null?void 0:r.buttonLabel})})]})})})}function ue({logo:e}){var t;return e?(0,n.jsx)(B.Link,{"aria-label":u(e)==="/"?"Go to home page":`Go to ${u(e)}`,className:"inline-block mb-6 text-3xl font-bold leading-none",href:u(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,n.jsx)(C.Image,{src:e==null?void 0:e.image,alt:(t=e.alt)!=null?t:"newsletter-logo",width:48,height:48,className:"inline-block mb-6 text-3xl font-bold leading-none"})}):null}function ce({title:e,description:t}){return(0,n.jsxs)(O.default.Fragment,{children:[e&&(0,n.jsx)(A.Heading,{fontSize:"2xl",className:"text-primary",children:e}),t&&(0,n.jsx)(q.Text,{className:"my-4 leading-loose",muted:!0,children:t})]})}function oe({id:e,fields:t,thankYouPage:i,buttonLabel:r}){var m,l,p,c,o,x,w;return Array.isArray(t)&&t.length>0?(0,n.jsx)(I.Form,{id:e!=null?e:void 0,name:"NewsletterB-Form",className:"form-newsletter",thankyouPage:N(i),children:(0,n.jsxs)(E.Flex,{align:"center",gap:2,className:"max-w-md mx-auto",children:[(0,n.jsx)(Y.Input,{variant:"outline",noLabel:!0,ariaLabel:(p=(m=t[0])==null?void 0:m.placeholder)!=null?p:(l=t[0])==null?void 0:l.name,className:"flex-grow w-full",type:h((c=t[0])==null?void 0:c.type),placeholder:(o=t[0])==null?void 0:o.placeholder,name:(x=t[0])==null?void 0:x.name,required:(w=t[0])==null?void 0:w.isRequired}),(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:"webriq-recaptcha"})}),r&&(0,n.jsx)($.Button,{as:"button",ariaLabel:r!=null?r:"Newsletter form submit button",type:"submit",className:"w-1/2 text-white",children:r})]})}):null}var $,I,A,C,Y,q,B,_,b,E,O,n,Z=F(()=>{"use strict";$=require("@stackshift-ui/button"),O=T(require("react"));k();n=require("react/jsx-runtime")});var we={};y(we,{Newsletter:()=>j});module.exports=se(we);var g=require("react"),ee=require("react/jsx-runtime"),v={variant_a:(0,g.lazy)(()=>Promise.resolve().then(()=>(W(),H))),variant_b:(0,g.lazy)(()=>Promise.resolve().then(()=>(Z(),U)))},xe="Newsletter",j=({data:e})=>{var s,m,l,p;let t=e==null?void 0:e.variant,i=t&&(v==null?void 0:v[t]),r={logo:(s=e==null?void 0:e.variants)==null?void 0:s.logo,title:(m=e==null?void 0:e.variants)==null?void 0:m.title,description:(l=e==null?void 0:e.variants)==null?void 0:l.description,form:(p=e==null?void 0:e.variants)==null?void 0:p.form};return i?(0,ee.jsx)(i,{...r}):null};j.displayName=xe;0&&(module.exports={Newsletter});
|
package/dist/newsletter.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-FLSUAL5R.mjs";export{a as Newsletter};
|
package/dist/newsletter_a.d.ts
DELETED
package/dist/newsletter_a.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var R=Object.create;var s=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var q=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,$=Object.prototype.hasOwnProperty;var o=(e,t)=>{for(var a in t)s(e,a,{get:t[a],enumerable:!0})},f=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of q(t))!$.call(e,i)&&i!==a&&s(e,i,{get:()=>t[i],enumerable:!(n=Y(t,i))||n.enumerable});return e};var B=(e,t,a)=>(a=e!=null?R(E(e)):{},f(t||!e||!e.__esModule?s(a,"default",{value:e,enumerable:!0}):a,e)),G=e=>f(s({},"__esModule",{value:!0}),e);var z={};o(z,{Newsletter_A:()=>C,default:()=>C});module.exports=G(z);var y=B(require("react")),F=require("@stackshift-ui/button"),b=require("@stackshift-ui/form"),k=require("@stackshift-ui/heading"),T=require("@stackshift-ui/image"),P=require("@stackshift-ui/input"),I=require("@stackshift-ui/text"),A=require("@stackshift-ui/link"),S=require("@stackshift-ui/section"),u=require("@stackshift-ui/container"),v=require("@stackshift-ui/flex");var L=e=>e?(e==null?void 0:e.linkType)==="linkInternal"?`/${e==null?void 0:e.internalLink}`:e==null?void 0:e.externalLink:"/thank-you";function N(e){switch(e){case"inputEmail":return"email";case"inputPassword":return"password";case"inputNumber":return"number";default:return"text"}}var m=e=>{var t,a,n;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(a=(t=e==null?void 0:e.internalLink)==null?void 0:t.toLowerCase())!=null&&a.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(n=e==null?void 0:e.externalLink)!=null?n:"/"};var r=require("react/jsx-runtime");function C({logo:e,title:t,description:a,form:n}){var i;return(0,r.jsx)(S.Section,{className:"py-20 bg-background",children:(0,r.jsx)(u.Container,{maxWidth:1280,children:(0,r.jsxs)(u.Container,{maxWidth:576,className:"text-center",children:[(0,r.jsx)(H,{logo:e}),(0,r.jsx)(W,{title:t,description:a}),(0,r.jsx)(_,{id:(i=n==null?void 0:n.id)!=null?i:void 0,fields:n==null?void 0:n.fields,buttonLabel:n==null?void 0:n.buttonLabel,thankYouPage:n==null?void 0:n.thankYouPage})]})})})}function H({logo:e}){var t;return e?(0,r.jsx)(A.Link,{"aria-label":m(e)==="/"?"Go to home page":`Go to ${m(e)}`,className:"inline-block mb-6 text-3xl font-bold leading-none",href:m(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,r.jsx)(T.Image,{src:e==null?void 0:e.image,alt:(t=e.alt)!=null?t:"newsletter-logo",width:48,height:48,className:"inline-block mb-6 text-3xl font-bold leading-none"})}):null}function W({title:e,description:t}){return(0,r.jsxs)(y.default.Fragment,{children:[e&&(0,r.jsx)(k.Heading,{fontSize:"2xl",className:"mb-3 text-primary",children:e}),t&&(0,r.jsx)(I.Text,{muted:!0,className:"my-4",children:t})]})}function _({id:e,fields:t,thankYouPage:a,buttonLabel:n}){var p,c,d,l,x,h,w;return Array.isArray(t)&&t.length>0?(0,r.jsx)(b.Form,{id:e!=null?e:void 0,name:"NewsletterA-Form",className:"form-newsletter",thankyouPage:L(a),children:(0,r.jsxs)(v.Flex,{align:"center",gap:2,className:"max-w-md mx-auto",children:[(0,r.jsx)(P.Input,{variant:"outline",noLabel:!0,ariaLabel:(d=(p=t[0])==null?void 0:p.placeholder)!=null?d:(c=t[0])==null?void 0:c.name,className:"flex-grow w-full",type:N((l=t[0])==null?void 0:l.type),placeholder:(x=t[0])==null?void 0:x.placeholder,name:(h=t[0])==null?void 0:h.name,required:(w=t[0])==null?void 0:w.isRequired}),(0,r.jsx)("div",{children:(0,r.jsx)("div",{className:"webriq-recaptcha"})}),n&&(0,r.jsx)(F.Button,{as:"button",ariaLabel:n!=null?n:"Newsletter form submit button",type:"submit",className:"w-1/2 text-white",children:n})]})}):null}0&&(module.exports={Newsletter_A});
|
package/dist/newsletter_a.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-YEF4UZH4.mjs";import"./chunk-4LCCWTIZ.mjs";export{a as Newsletter_A,a as default};
|
package/dist/newsletter_b.d.ts
DELETED
package/dist/newsletter_b.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var C=Object.create;var s=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var Y=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty;var E=(e,t)=>{for(var a in t)s(e,a,{get:t[a],enumerable:!0})},N=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Y(t))!A.call(e,i)&&i!==a&&s(e,i,{get:()=>t[i],enumerable:!(n=R(t,i))||n.enumerable});return e};var $=(e,t,a)=>(a=e!=null?C(q(e)):{},N(t||!e||!e.__esModule?s(a,"default",{value:e,enumerable:!0}):a,e)),G=e=>N(s({},"__esModule",{value:!0}),e);var z={};E(z,{Newsletter_B:()=>B,default:()=>B});module.exports=G(z);var F=require("@stackshift-ui/button"),b=require("@stackshift-ui/form"),k=require("@stackshift-ui/heading"),T=require("@stackshift-ui/image"),o=require("@stackshift-ui/input"),v=require("@stackshift-ui/text"),P=require("@stackshift-ui/link"),I=require("@stackshift-ui/section"),l=require("@stackshift-ui/container"),u=require("@stackshift-ui/flex"),S=$(require("react"));var L=e=>e?(e==null?void 0:e.linkType)==="linkInternal"?`/${e==null?void 0:e.internalLink}`:e==null?void 0:e.externalLink:"/thank-you";function y(e){switch(e){case"inputEmail":return"email";case"inputPassword":return"password";case"inputNumber":return"number";default:return"text"}}var m=e=>{var t,a,n;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(a=(t=e==null?void 0:e.internalLink)==null?void 0:t.toLowerCase())!=null&&a.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(n=e==null?void 0:e.externalLink)!=null?n:"/"};var r=require("react/jsx-runtime");function B({logo:e,title:t,description:a,form:n}){return(0,r.jsx)(I.Section,{className:"mx-auto w-full py-20 bg-background",children:(0,r.jsx)(l.Container,{maxWidth:1280,children:(0,r.jsxs)(u.Flex,{wrap:!0,align:"center",children:[(0,r.jsx)("div",{className:"w-full mb-4 text-center lg:mr-8 lg:w-auto",children:(0,r.jsx)(u.Flex,{align:"center",justify:"center",className:"mx-auto",children:(0,r.jsx)(H,{logo:e})})}),(0,r.jsx)(l.Container,{maxWidth:412,className:"mx-auto px-4 w-full mb-6 text-center lg:ml-0 lg:text-left",children:(0,r.jsx)(W,{title:t,description:a})}),(0,r.jsx)("div",{className:"w-full lg:w-[35%]",children:(0,r.jsx)(_,{id:n==null?void 0:n.id,fields:n==null?void 0:n.fields,thankYouPage:n==null?void 0:n.thankYouPage,buttonLabel:n==null?void 0:n.buttonLabel})})]})})})}function H({logo:e}){var t;return e?(0,r.jsx)(P.Link,{"aria-label":m(e)==="/"?"Go to home page":`Go to ${m(e)}`,className:"inline-block mb-6 text-3xl font-bold leading-none",href:m(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,r.jsx)(T.Image,{src:e==null?void 0:e.image,alt:(t=e.alt)!=null?t:"newsletter-logo",width:48,height:48,className:"inline-block mb-6 text-3xl font-bold leading-none"})}):null}function W({title:e,description:t}){return(0,r.jsxs)(S.default.Fragment,{children:[e&&(0,r.jsx)(k.Heading,{fontSize:"2xl",className:"text-primary",children:e}),t&&(0,r.jsx)(v.Text,{className:"my-4 leading-loose",muted:!0,children:t})]})}function _({id:e,fields:t,thankYouPage:a,buttonLabel:n}){var p,c,d,x,w,f,h;return Array.isArray(t)&&t.length>0?(0,r.jsx)(b.Form,{id:e!=null?e:void 0,name:"NewsletterB-Form",className:"form-newsletter",thankyouPage:L(a),children:(0,r.jsxs)(u.Flex,{align:"center",gap:2,className:"max-w-md mx-auto",children:[(0,r.jsx)(o.Input,{variant:"outline",noLabel:!0,ariaLabel:(d=(p=t[0])==null?void 0:p.placeholder)!=null?d:(c=t[0])==null?void 0:c.name,className:"flex-grow w-full",type:y((x=t[0])==null?void 0:x.type),placeholder:(w=t[0])==null?void 0:w.placeholder,name:(f=t[0])==null?void 0:f.name,required:(h=t[0])==null?void 0:h.isRequired}),(0,r.jsx)("div",{children:(0,r.jsx)("div",{className:"webriq-recaptcha"})}),n&&(0,r.jsx)(F.Button,{as:"button",ariaLabel:n!=null?n:"Newsletter form submit button",type:"submit",className:"w-1/2 text-white",children:n})]})}):null}0&&(module.exports={Newsletter_B});
|
package/dist/newsletter_b.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-75YFHQO5.mjs";import"./chunk-4LCCWTIZ.mjs";export{a as Newsletter_B,a as default};
|
package/dist/types.d.ts
DELETED
|
@@ -1,362 +0,0 @@
|
|
|
1
|
-
export type StyleVariants<T extends string> = Record<T, string>;
|
|
2
|
-
export type Socials = "facebook" | "instagram" | "youtube" | "linkedin" | "twitter";
|
|
3
|
-
export interface MainImage {
|
|
4
|
-
image: string;
|
|
5
|
-
alt?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface LabeledRoute extends ConditionalLink {
|
|
8
|
-
ariaLabel?: string;
|
|
9
|
-
label?: string;
|
|
10
|
-
linkTarget?: string;
|
|
11
|
-
linkType?: string;
|
|
12
|
-
_type?: string;
|
|
13
|
-
linkInternal?: any;
|
|
14
|
-
}
|
|
15
|
-
export interface ConditionalLink {
|
|
16
|
-
type?: string;
|
|
17
|
-
internalLink?: string | null;
|
|
18
|
-
externalLink?: string | null;
|
|
19
|
-
}
|
|
20
|
-
export interface StatItems {
|
|
21
|
-
label?: string;
|
|
22
|
-
mainImage?: MainImage;
|
|
23
|
-
value?: string;
|
|
24
|
-
_key?: string;
|
|
25
|
-
_type?: string;
|
|
26
|
-
}
|
|
27
|
-
export interface Logo extends ConditionalLink {
|
|
28
|
-
alt?: string;
|
|
29
|
-
linkTarget?: string;
|
|
30
|
-
image?: string;
|
|
31
|
-
}
|
|
32
|
-
export interface Images {
|
|
33
|
-
image?: string;
|
|
34
|
-
_key?: string;
|
|
35
|
-
_type?: string;
|
|
36
|
-
alt?: string;
|
|
37
|
-
}
|
|
38
|
-
export interface ContactDetails {
|
|
39
|
-
addressInfo?: string;
|
|
40
|
-
contactInfo?: string;
|
|
41
|
-
emailInfo?: string;
|
|
42
|
-
_key?: string;
|
|
43
|
-
}
|
|
44
|
-
export interface SocialLink {
|
|
45
|
-
socialMedia?: string | null;
|
|
46
|
-
socialMediaLink?: string | null;
|
|
47
|
-
_key?: string | null;
|
|
48
|
-
_type?: string | null;
|
|
49
|
-
socialMediaIcon?: {
|
|
50
|
-
alt?: string;
|
|
51
|
-
image?: string;
|
|
52
|
-
} | null;
|
|
53
|
-
socialMediaPlatform?: string | null;
|
|
54
|
-
}
|
|
55
|
-
export interface LabeledRouteWithKey extends LabeledRoute {
|
|
56
|
-
_key?: string;
|
|
57
|
-
}
|
|
58
|
-
export interface ArrayOfImageTitleAndText {
|
|
59
|
-
mainImage?: {
|
|
60
|
-
alt?: string;
|
|
61
|
-
image?: string;
|
|
62
|
-
};
|
|
63
|
-
plainText?: string;
|
|
64
|
-
title?: string;
|
|
65
|
-
_key?: string;
|
|
66
|
-
_type?: string;
|
|
67
|
-
}
|
|
68
|
-
export interface FeaturedItem {
|
|
69
|
-
description?: string;
|
|
70
|
-
mainImage?: MainImage;
|
|
71
|
-
title?: string;
|
|
72
|
-
subtitle?: string;
|
|
73
|
-
_key?: string;
|
|
74
|
-
_type?: string;
|
|
75
|
-
}
|
|
76
|
-
export interface ArrayOfTitleAndText {
|
|
77
|
-
_key?: string;
|
|
78
|
-
plainText?: string;
|
|
79
|
-
title?: string;
|
|
80
|
-
}
|
|
81
|
-
export interface BlogPost extends SanityBody {
|
|
82
|
-
authors?: Author[] | null;
|
|
83
|
-
body?: any;
|
|
84
|
-
categories?: Category[] | null;
|
|
85
|
-
excerpt?: string | null;
|
|
86
|
-
link?: string | null;
|
|
87
|
-
mainImage?: string | null;
|
|
88
|
-
publishedAt?: string;
|
|
89
|
-
seo?: Seo | null;
|
|
90
|
-
slug?: SanitySlug | null;
|
|
91
|
-
title?: string;
|
|
92
|
-
}
|
|
93
|
-
export interface Seo {
|
|
94
|
-
_type?: string;
|
|
95
|
-
seoTitle?: string;
|
|
96
|
-
seoDescription?: string;
|
|
97
|
-
seoImage?: string;
|
|
98
|
-
seoKeywords?: string;
|
|
99
|
-
seoSynonyms?: string;
|
|
100
|
-
}
|
|
101
|
-
export interface SanitySlug {
|
|
102
|
-
current?: string;
|
|
103
|
-
_type?: "slug";
|
|
104
|
-
}
|
|
105
|
-
export interface SanityBody {
|
|
106
|
-
_createdAt?: string;
|
|
107
|
-
_id?: string;
|
|
108
|
-
_rev?: string;
|
|
109
|
-
_type?: string;
|
|
110
|
-
_updatedAt?: string;
|
|
111
|
-
}
|
|
112
|
-
export interface Author extends SanityBody {
|
|
113
|
-
link?: string | null;
|
|
114
|
-
bio?: string | null;
|
|
115
|
-
name?: string | null;
|
|
116
|
-
slug?: SanitySlug | null;
|
|
117
|
-
image?: string | null;
|
|
118
|
-
profile?: {
|
|
119
|
-
alt: string;
|
|
120
|
-
image: string;
|
|
121
|
-
} | null;
|
|
122
|
-
}
|
|
123
|
-
export interface Category extends SanityBody {
|
|
124
|
-
title?: string;
|
|
125
|
-
}
|
|
126
|
-
export interface Form {
|
|
127
|
-
id?: string | null;
|
|
128
|
-
buttonLabel?: string | null;
|
|
129
|
-
name?: string | null;
|
|
130
|
-
subtitle?: string | null;
|
|
131
|
-
fields?: FormFields[] | null;
|
|
132
|
-
thankYouPage?: ThankYouPage | null;
|
|
133
|
-
}
|
|
134
|
-
export interface FormFields {
|
|
135
|
-
name?: string;
|
|
136
|
-
placeholder?: string;
|
|
137
|
-
pricingType?: string;
|
|
138
|
-
type?: FormTypes;
|
|
139
|
-
_key?: string;
|
|
140
|
-
_type?: string;
|
|
141
|
-
isRequired?: boolean;
|
|
142
|
-
label?: string;
|
|
143
|
-
items?: string[];
|
|
144
|
-
}
|
|
145
|
-
export type FormTypes = "inputText" | "inputEmail" | "inputPassword" | "inputNumber" | "textarea" | "inputFile" | "inputRadio" | "inputCheckbox" | "inputSelect";
|
|
146
|
-
export interface ThankYouPage {
|
|
147
|
-
externalLink?: string | null;
|
|
148
|
-
internalLink?: string | null;
|
|
149
|
-
linkInternal?: any;
|
|
150
|
-
linkTarget?: string;
|
|
151
|
-
linkType?: string;
|
|
152
|
-
type?: string;
|
|
153
|
-
}
|
|
154
|
-
export interface SectionsProps {
|
|
155
|
-
template?: Template;
|
|
156
|
-
data?: Sections;
|
|
157
|
-
variant?: string | null | undefined;
|
|
158
|
-
schema?: Variants;
|
|
159
|
-
}
|
|
160
|
-
export interface Sections extends SanityBody {
|
|
161
|
-
label?: string;
|
|
162
|
-
variant?: string;
|
|
163
|
-
variants?: Variants;
|
|
164
|
-
_key?: string;
|
|
165
|
-
}
|
|
166
|
-
export interface Variants {
|
|
167
|
-
template?: Template;
|
|
168
|
-
multipleMenus?: any;
|
|
169
|
-
arrayOfTitleAndText?: ArrayOfTitleAndText[] | null;
|
|
170
|
-
logo?: Logo | null;
|
|
171
|
-
primaryButton?: LabeledRoute | null;
|
|
172
|
-
secondaryButton?: LabeledRoute | null;
|
|
173
|
-
routes?: LabeledRouteWithKey[] | null;
|
|
174
|
-
menu?: LabeledRouteWithKey[] | null;
|
|
175
|
-
plans?: Plans[] | null;
|
|
176
|
-
formLinks?: LabeledRouteWithKey[] | null;
|
|
177
|
-
portfolios?: Portfolios[] | null;
|
|
178
|
-
portfoliosWithCategories?: PortfoliosWithCategories[] | null;
|
|
179
|
-
length?: number;
|
|
180
|
-
signInLink?: LabeledRoute | null;
|
|
181
|
-
signinLink?: LabeledRoute | null;
|
|
182
|
-
tags?: string[] | null;
|
|
183
|
-
posts?: BlogPost[] | null;
|
|
184
|
-
blogsPerPage?: number | null;
|
|
185
|
-
form?: Form | null;
|
|
186
|
-
collections?: Collection | null;
|
|
187
|
-
products?: CollectionProduct | null;
|
|
188
|
-
allProducts?: Collection[];
|
|
189
|
-
subtitle?: string | null;
|
|
190
|
-
caption?: string | null;
|
|
191
|
-
title?: string | null;
|
|
192
|
-
plainText?: string | null;
|
|
193
|
-
contactDescription?: string | null;
|
|
194
|
-
officeInformation?: string | null;
|
|
195
|
-
contactEmail?: string | null;
|
|
196
|
-
contactNumber?: string | null;
|
|
197
|
-
socialLinks?: SocialLink[] | null;
|
|
198
|
-
block?: any;
|
|
199
|
-
heading?: string | null;
|
|
200
|
-
acceptButtonLabel?: string | null;
|
|
201
|
-
declineButtonLabel?: string | null;
|
|
202
|
-
faqsWithCategories?: FaqsWithCategory[] | null;
|
|
203
|
-
faqs?: AskedQuestion[] | null;
|
|
204
|
-
arrayOfImageTitleAndText?: ArrayOfImageTitleAndText[] | null;
|
|
205
|
-
description?: string | null;
|
|
206
|
-
featuredItems?: FeaturedItem[] | null;
|
|
207
|
-
images?: Images[] | null;
|
|
208
|
-
contactDetails?: ContactDetails[] | null;
|
|
209
|
-
copyright?: string | null;
|
|
210
|
-
mainImage?: MainImage | null;
|
|
211
|
-
youtubeLink?: string | null;
|
|
212
|
-
banner?: any;
|
|
213
|
-
stats?: StatItems[] | null;
|
|
214
|
-
teams?: Team[] | null;
|
|
215
|
-
testimonials?: Testimonial[] | null;
|
|
216
|
-
selectStripeAccount?: string;
|
|
217
|
-
annualBilling?: string;
|
|
218
|
-
monthlyBilling?: string;
|
|
219
|
-
productDetails?: ProductDetail[];
|
|
220
|
-
btnLabel?: string;
|
|
221
|
-
selectAccount?: string;
|
|
222
|
-
hashtags?: string[];
|
|
223
|
-
numberOfPosts?: number;
|
|
224
|
-
text?: string;
|
|
225
|
-
button?: LabeledRoute;
|
|
226
|
-
features?: string[];
|
|
227
|
-
config?: {
|
|
228
|
-
enableAnalytics: boolean;
|
|
229
|
-
cookiePolicy?: {
|
|
230
|
-
siteName: string;
|
|
231
|
-
cookiePolicyPage: Reference;
|
|
232
|
-
};
|
|
233
|
-
consentModalPosition?: string;
|
|
234
|
-
};
|
|
235
|
-
contactLink?: LabeledRoute;
|
|
236
|
-
}
|
|
237
|
-
export interface Template {
|
|
238
|
-
bg?: string;
|
|
239
|
-
color?: string;
|
|
240
|
-
}
|
|
241
|
-
export type Plans = {
|
|
242
|
-
_key?: string | null;
|
|
243
|
-
_type?: "planItems" | null;
|
|
244
|
-
checkoutButtonName?: string | null;
|
|
245
|
-
description?: string | null;
|
|
246
|
-
monthlyPrice?: string | null;
|
|
247
|
-
planType?: string | null;
|
|
248
|
-
yearlyPrice?: string | null;
|
|
249
|
-
planIncludes?: string[] | null;
|
|
250
|
-
primaryButton?: LabeledRoute | null;
|
|
251
|
-
} & Record<string, string>;
|
|
252
|
-
export interface Portfolios {
|
|
253
|
-
dateAdded?: string | null;
|
|
254
|
-
mainImage?: {
|
|
255
|
-
image?: string | null;
|
|
256
|
-
alt?: string | null;
|
|
257
|
-
} | null;
|
|
258
|
-
primaryButton?: LabeledRoute | null;
|
|
259
|
-
title?: string | null;
|
|
260
|
-
_key?: string | null;
|
|
261
|
-
_type?: string | null;
|
|
262
|
-
}
|
|
263
|
-
export interface PortfoliosWithCategories {
|
|
264
|
-
category?: string | null;
|
|
265
|
-
content?: Content[] | null;
|
|
266
|
-
primaryButton?: LabeledRoute | null;
|
|
267
|
-
_key?: string | null;
|
|
268
|
-
_type?: string | null;
|
|
269
|
-
}
|
|
270
|
-
export interface Content extends Portfolios {
|
|
271
|
-
description?: string | null;
|
|
272
|
-
subtitle?: string | null;
|
|
273
|
-
}
|
|
274
|
-
export interface Collection extends SanityBody {
|
|
275
|
-
collectionInfoVariant?: {
|
|
276
|
-
variant?: string;
|
|
277
|
-
} | null;
|
|
278
|
-
name?: string | null;
|
|
279
|
-
products?: CollectionProduct[] | null;
|
|
280
|
-
sections?: any;
|
|
281
|
-
seo?: Seo | null;
|
|
282
|
-
slug?: SanitySlug | null;
|
|
283
|
-
}
|
|
284
|
-
export interface CollectionProduct extends SanityBody {
|
|
285
|
-
compareToPrice?: number | null;
|
|
286
|
-
description?: string | null;
|
|
287
|
-
ecwidProductId?: number | null;
|
|
288
|
-
name?: string | null;
|
|
289
|
-
price?: number | null;
|
|
290
|
-
productInfo?: ProductInfo | null;
|
|
291
|
-
productInfoVariant?: {
|
|
292
|
-
variant?: string;
|
|
293
|
-
} | null;
|
|
294
|
-
sections?: any;
|
|
295
|
-
seo?: Seo | null;
|
|
296
|
-
slug?: SanitySlug | null;
|
|
297
|
-
}
|
|
298
|
-
interface ProductInfo {
|
|
299
|
-
btnLabel?: string | null;
|
|
300
|
-
images?: ProductInfoImage[] | null;
|
|
301
|
-
productDetails?: ProductDetail[] | null;
|
|
302
|
-
socialLinks?: SocialLink[] | null;
|
|
303
|
-
subtitle?: string | null;
|
|
304
|
-
}
|
|
305
|
-
export interface ProductDetail {
|
|
306
|
-
blockContent?: any;
|
|
307
|
-
contentType?: string;
|
|
308
|
-
tabName?: string;
|
|
309
|
-
_key?: string;
|
|
310
|
-
[key: string]: any;
|
|
311
|
-
}
|
|
312
|
-
interface ProductInfoImage {
|
|
313
|
-
alt?: string | null;
|
|
314
|
-
_key: string;
|
|
315
|
-
_type: string;
|
|
316
|
-
image?: string | null;
|
|
317
|
-
}
|
|
318
|
-
export interface FaqsWithCategory {
|
|
319
|
-
askedQuestions?: AskedQuestion[] | null;
|
|
320
|
-
category?: string | null;
|
|
321
|
-
_key?: string;
|
|
322
|
-
_type?: string;
|
|
323
|
-
}
|
|
324
|
-
export interface AskedQuestion {
|
|
325
|
-
answer?: string | null;
|
|
326
|
-
question?: string | null;
|
|
327
|
-
hidden?: boolean;
|
|
328
|
-
_key?: string;
|
|
329
|
-
_type?: string;
|
|
330
|
-
}
|
|
331
|
-
export interface Team {
|
|
332
|
-
jobTitle?: string;
|
|
333
|
-
mainImage?: MainImage;
|
|
334
|
-
name?: string;
|
|
335
|
-
plainText?: string;
|
|
336
|
-
_key?: string;
|
|
337
|
-
_type?: string;
|
|
338
|
-
}
|
|
339
|
-
export interface Testimonial {
|
|
340
|
-
jobTitle?: string;
|
|
341
|
-
mainImage?: MainImage;
|
|
342
|
-
name?: string;
|
|
343
|
-
rating?: string;
|
|
344
|
-
testimony?: string;
|
|
345
|
-
_key?: string;
|
|
346
|
-
_type?: string;
|
|
347
|
-
}
|
|
348
|
-
export declare interface Reference {
|
|
349
|
-
_type: string;
|
|
350
|
-
_ref: string;
|
|
351
|
-
_key?: string;
|
|
352
|
-
_weak?: boolean;
|
|
353
|
-
_strengthenOnPublish?: {
|
|
354
|
-
type: string;
|
|
355
|
-
weak?: boolean;
|
|
356
|
-
template?: {
|
|
357
|
-
id: string;
|
|
358
|
-
params: Record<string, string | number | boolean>;
|
|
359
|
-
};
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
export {};
|
package/dist/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var l=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var g=(n,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of a(t))!o.call(n,e)&&e!==r&&l(n,e,{get:()=>t[e],enumerable:!(i=s(t,e))||i.enumerable});return n};var u=n=>g(l({},"__esModule",{value:!0}),n);var c={};module.exports=u(c);
|