@stackshift-ui/newsletter 7.0.0-beta.7 → 7.0.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +16 -16
- package/src/newsletter_a.tsx +0 -1
- package/src/newsletter_b.tsx +0 -1
- package/dist/chunk-4LCCWTIZ.mjs +0 -1
- package/dist/chunk-DVMH4OLQ.mjs +0 -1
- package/dist/chunk-GXNFMLF5.mjs +0 -1
- package/dist/chunk-MR4L6TRX.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": "7.0.0-beta.
|
|
4
|
+
"version": "7.0.0-beta.9",
|
|
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.10",
|
|
33
|
+
"@stackshift-ui/eslint-config": "6.0.10"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@stackshift-ui/
|
|
37
|
-
"@stackshift-ui/
|
|
38
|
-
"@stackshift-ui/
|
|
39
|
-
"@stackshift-ui/heading": "7.0.0-beta.
|
|
40
|
-
"@stackshift-ui/system": "
|
|
41
|
-
"@stackshift-ui/
|
|
42
|
-
"@stackshift-ui/text": "7.0.0-beta.
|
|
43
|
-
"@stackshift-ui/
|
|
44
|
-
"@stackshift-ui/container": "7.0.0-beta.
|
|
45
|
-
"@stackshift-ui/
|
|
46
|
-
"@stackshift-ui/
|
|
47
|
-
"@stackshift-ui/flex": "7.0.0-beta.
|
|
36
|
+
"@stackshift-ui/button": "7.0.0-beta.7",
|
|
37
|
+
"@stackshift-ui/form": "7.0.0-beta.5",
|
|
38
|
+
"@stackshift-ui/scripts": "7.0.0-beta.4",
|
|
39
|
+
"@stackshift-ui/heading": "7.0.0-beta.5",
|
|
40
|
+
"@stackshift-ui/system": "7.0.0-beta.5",
|
|
41
|
+
"@stackshift-ui/image": "7.0.0-beta.6",
|
|
42
|
+
"@stackshift-ui/text": "7.0.0-beta.5",
|
|
43
|
+
"@stackshift-ui/link": "7.0.0-beta.5",
|
|
44
|
+
"@stackshift-ui/container": "7.0.0-beta.5",
|
|
45
|
+
"@stackshift-ui/input": "7.0.0-beta.5",
|
|
46
|
+
"@stackshift-ui/section": "7.0.0-beta.5",
|
|
47
|
+
"@stackshift-ui/flex": "7.0.0-beta.5"
|
|
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": ">=
|
|
54
|
+
"@stackshift-ui/system": ">=7.0.0-beta.5"
|
|
55
55
|
},
|
|
56
56
|
"peerDependenciesMeta": {
|
|
57
57
|
"next": {
|
package/src/newsletter_a.tsx
CHANGED
|
@@ -9,7 +9,6 @@ import { Link } from "@stackshift-ui/link";
|
|
|
9
9
|
import { Section } from "@stackshift-ui/section";
|
|
10
10
|
import { Text } from "@stackshift-ui/text";
|
|
11
11
|
import React from "react";
|
|
12
|
-
|
|
13
12
|
import { NewsletterProps } from ".";
|
|
14
13
|
import { getInputType, logoLink, thankYouPageLink } from "./helper";
|
|
15
14
|
import { Form as FormFields, Logo } from "./types";
|
package/src/newsletter_b.tsx
CHANGED
|
@@ -9,7 +9,6 @@ import { Link } from "@stackshift-ui/link";
|
|
|
9
9
|
import { Section } from "@stackshift-ui/section";
|
|
10
10
|
import { Text } from "@stackshift-ui/text";
|
|
11
11
|
import React from "react";
|
|
12
|
-
|
|
13
12
|
import { NewsletterProps } from ".";
|
|
14
13
|
import { getInputType, logoLink, thankYouPageLink } from "./helper";
|
|
15
14
|
import { Form as FormFields, Logo } from "./types";
|
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-DVMH4OLQ.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as x,b as w,c as r}from"./chunk-4LCCWTIZ.mjs";import{Button as f}from"@stackshift-ui/button";import{Container as h}from"@stackshift-ui/container";import{Flex as N}from"@stackshift-ui/flex";import{Form as g}from"@stackshift-ui/form";import{Heading as F}from"@stackshift-ui/heading";import{Image as k}from"@stackshift-ui/image";import{Input as y}from"@stackshift-ui/input";import{Link as v}from"@stackshift-ui/link";import{Section as T}from"@stackshift-ui/section";import{Text as P}from"@stackshift-ui/text";import S from"react";import{jsx as a,jsxs as n}from"react/jsx-runtime";function b({logo:e,title:i,description:m,form:t}){return a(T,{className:"mx-auto w-full py-20 bg-background",children:a(h,{maxWidth:1280,children:n(N,{wrap:!0,align:"center",className:"flex-col [@media(min-width:900px)]:flex-row [@media(min-width:900px)]:justify-between",children:[n("div",{className:"flex flex-col items-center [@media(min-width:900px)]:flex-row [@media(min-width:900px)]:items-start gap-5",children:[a(B,{logo:e}),a(h,{maxWidth:412,className:"mx-auto px-4 w-full text-center [@media(min-width:900px)]:text-left",children:a(R,{title:i,description:m})})]}),a(q,{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 B({logo:e}){var i;return e?a(v,{"aria-label":r(e)==="/"?"Go to home page":`Go to ${r(e)}`,href:r(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:a(k,{src:e==null?void 0:e.image,alt:(i=e.alt)!=null?i:"newsletter-logo",width:48,height:48})}):null}function R({title:e,description:i}){return n(S.Fragment,{children:[e&&a(F,{fontSize:"2xl",className:"text-primary",children:e}),i&&a(P,{className:"my-4 leading-loose",muted:!0,children:i})]})}function q({id:e,fields:i,thankYouPage:m,buttonLabel:t}){var l,s,p,o,d,c,u;return Array.isArray(i)&&i.length>0?a(g,{id:e!=null?e:void 0,name:"NewsletterB-Form",className:"form-newsletter w-full sm:w-1/2 [@media(min-width:900px)]:w-2/5",thankyouPage:x(m),children:n("div",{className:"flex flex-col [@media(min-width:900px)]:flex-row gap-3",children:[a(y,{"aria-label":(p=(l=i[0])==null?void 0:l.placeholder)!=null?p:(s=i[0])==null?void 0:s.name,className:"flex-grow w-full bg-white",type:w((o=i[0])==null?void 0:o.type),placeholder:(d=i[0])==null?void 0:d.placeholder,name:(c=i[0])==null?void 0:c.name,required:(u=i[0])==null?void 0:u.isRequired}),a("div",{children:a("div",{className:"webriq-recaptcha"})}),t&&a(f,{"aria-label":t!=null?t:"Newsletter form submit button",type:"submit",className:"text-white",children:t})]})}):null}export{b as a};
|
package/dist/chunk-GXNFMLF5.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as p}from"./chunk-MR4L6TRX.mjs";import{a as m}from"./chunk-DVMH4OLQ.mjs";import{jsx as g}from"react/jsx-runtime";var r={variant_a:p,variant_b:m},f="Newsletter",v=({data:o})=>{var n,s,l,t;let e=o==null?void 0:o.variant,i=e&&(r==null?void 0:r[e]),c={logo:(n=o==null?void 0:o.variants)==null?void 0:n.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 i?g(i,{...c}):null};v.displayName=f;export{v as a};
|
package/dist/chunk-MR4L6TRX.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as x,b as N,c as a}from"./chunk-4LCCWTIZ.mjs";import{Button as g}from"@stackshift-ui/button";import{Container as w}from"@stackshift-ui/container";import{Flex as F}from"@stackshift-ui/flex";import{Form as k}from"@stackshift-ui/form";import{Heading as y}from"@stackshift-ui/heading";import{Image as b}from"@stackshift-ui/image";import{Input as f}from"@stackshift-ui/input";import{Link as T}from"@stackshift-ui/link";import{Section as P}from"@stackshift-ui/section";import{Text as A}from"@stackshift-ui/text";import S from"react";import{jsx as r,jsxs as l}from"react/jsx-runtime";function R({logo:e,title:n,description:i,form:t}){var m;return r(P,{className:"py-20 bg-background",children:r(w,{maxWidth:1280,children:l(w,{maxWidth:576,className:"text-center",children:[r(q,{logo:e}),r(v,{title:n,description:i}),r(C,{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 q({logo:e}){var n;return e?r(T,{"aria-label":a(e)==="/"?"Go to home page":`Go to ${a(e)}`,className:"inline-block mb-6 text-3xl font-bold leading-none",href:a(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:r(b,{src:e==null?void 0:e.image,alt:(n=e.alt)!=null?n:"newsletter-logo",width:48,height:48,className:"inline-block text-3xl font-bold leading-none"})}):null}function v({title:e,description:n}){return l(S.Fragment,{children:[e&&r(y,{fontSize:"2xl",className:"mb-3 text-primary",children:e}),n&&r(A,{muted:!0,className:"my-4",children:n})]})}function C({id:e,fields:n,thankYouPage:i,buttonLabel:t}){var s,o,p,c,u,d,h;return Array.isArray(n)&&n.length>0?r(k,{id:e!=null?e:void 0,name:"NewsletterA-Form",className:"form-newsletter",thankyouPage:x(i),children:l(F,{align:"center",gap:2,className:"max-w-md mx-auto",children:[r(f,{"aria-label":(p=(s=n[0])==null?void 0:s.placeholder)!=null?p:(o=n[0])==null?void 0:o.name,className:"flex-grow w-full bg-white",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}),r("div",{children:r("div",{className:"webriq-recaptcha"})}),t&&r(g,{"aria-label":t!=null?t:"Newsletter form submit button",type:"submit",className:"w-1/2 text-white",children:t})]})}):null}export{R 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 K=Object.create;var d=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var Q=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty;var Z=(e,t)=>{for(var n in t)d(e,n,{get:t[n],enumerable:!0})},v=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let m of O(t))!U.call(e,m)&&m!==n&&d(e,m,{get:()=>t[m],enumerable:!(r=M(t,m))||r.enumerable});return e};var b=(e,t,n)=>(n=e!=null?K(Q(e)):{},v(t||!e||!e.__esModule?d(n,"default",{value:e,enumerable:!0}):n,e)),j=e=>v(d({},"__esModule",{value:!0}),e);var se={};Z(se,{Newsletter:()=>X,Newsletter_A:()=>N,Newsletter_B:()=>F});module.exports=j(se);var P=require("@stackshift-ui/button"),y=require("@stackshift-ui/container"),T=require("@stackshift-ui/flex"),g=require("@stackshift-ui/form"),S=require("@stackshift-ui/heading"),R=require("@stackshift-ui/image"),A=require("@stackshift-ui/input"),I=require("@stackshift-ui/link"),C=require("@stackshift-ui/section"),B=require("@stackshift-ui/text"),Y=b(require("react"));var h=e=>e?(e==null?void 0:e.linkType)==="linkInternal"?`/${e==null?void 0:e.internalLink}`:e==null?void 0:e.externalLink:"/thank-you";function f(e){switch(e){case"inputEmail":return"email";case"inputPassword":return"password";case"inputNumber":return"number";default:return"text"}}var u=e=>{var t,n,r;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(n=(t=e==null?void 0:e.internalLink)==null?void 0:t.toLowerCase())!=null&&n.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 a=require("react/jsx-runtime");function N({logo:e,title:t,description:n,form:r}){var m;return(0,a.jsx)(C.Section,{className:"py-20 bg-background",children:(0,a.jsx)(y.Container,{maxWidth:1280,children:(0,a.jsxs)(y.Container,{maxWidth:576,className:"text-center",children:[(0,a.jsx)(ee,{logo:e}),(0,a.jsx)(te,{title:t,description:n}),(0,a.jsx)(re,{id:(m=r==null?void 0:r.id)!=null?m:void 0,fields:r==null?void 0:r.fields,buttonLabel:r==null?void 0:r.buttonLabel,thankYouPage:r==null?void 0:r.thankYouPage})]})})})}function ee({logo:e}){var t;return e?(0,a.jsx)(I.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)(R.Image,{src:e==null?void 0:e.image,alt:(t=e.alt)!=null?t:"newsletter-logo",width:48,height:48,className:"inline-block text-3xl font-bold leading-none"})}):null}function te({title:e,description:t}){return(0,a.jsxs)(Y.default.Fragment,{children:[e&&(0,a.jsx)(S.Heading,{fontSize:"2xl",className:"mb-3 text-primary",children:e}),t&&(0,a.jsx)(B.Text,{muted:!0,className:"my-4",children:t})]})}function re({id:e,fields:t,thankYouPage:n,buttonLabel:r}){var s,p,l,c,o,x,w;return Array.isArray(t)&&t.length>0?(0,a.jsx)(g.Form,{id:e!=null?e:void 0,name:"NewsletterA-Form",className:"form-newsletter",thankyouPage:h(n),children:(0,a.jsxs)(T.Flex,{align:"center",gap:2,className:"max-w-md mx-auto",children:[(0,a.jsx)(A.Input,{"aria-label":(l=(s=t[0])==null?void 0:s.placeholder)!=null?l:(p=t[0])==null?void 0:p.name,className:"flex-grow w-full bg-white",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)(P.Button,{"aria-label":r!=null?r:"Newsletter form submit button",type:"submit",className:"w-1/2 text-white",children:r})]})}):null}var J=b(require("react"));function F({logo:e,title:t,description:n,form:r}){return(0,a.jsx)(C.Section,{className:"mx-auto w-full py-20 bg-background",children:(0,a.jsx)(y.Container,{maxWidth:1280,children:(0,a.jsxs)(T.Flex,{wrap:!0,align:"center",className:"flex-col [@media(min-width:900px)]:flex-row [@media(min-width:900px)]:justify-between",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center [@media(min-width:900px)]:flex-row [@media(min-width:900px)]:items-start gap-5",children:[(0,a.jsx)(ne,{logo:e}),(0,a.jsx)(y.Container,{maxWidth:412,className:"mx-auto px-4 w-full text-center [@media(min-width:900px)]:text-left",children:(0,a.jsx)(ie,{title:t,description:n})})]}),(0,a.jsx)(ae,{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 ne({logo:e}){var t;return e?(0,a.jsx)($.Link,{"aria-label":u(e)==="/"?"Go to home page":`Go to ${u(e)}`,href:u(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(R.Image,{src:e==null?void 0:e.image,alt:(t=e.alt)!=null?t:"newsletter-logo",width:48,height:48})}):null}function ie({title:e,description:t}){return(0,a.jsxs)(J.default.Fragment,{children:[e&&(0,a.jsx)(S.Heading,{fontSize:"2xl",className:"text-primary",children:e}),t&&(0,a.jsx)(B.Text,{className:"my-4 leading-loose",muted:!0,children:t})]})}function ae({id:e,fields:t,thankYouPage:n,buttonLabel:r}){var s,p,l,c,o,x,w;return Array.isArray(t)&&t.length>0?(0,a.jsx)(g.Form,{id:e!=null?e:void 0,name:"NewsletterB-Form",className:"form-newsletter w-full sm:w-1/2 [@media(min-width:900px)]:w-2/5",thankyouPage:h(n),children:(0,a.jsxs)("div",{className:"flex flex-col [@media(min-width:900px)]:flex-row gap-3",children:[(0,a.jsx)(A.Input,{"aria-label":(l=(s=t[0])==null?void 0:s.placeholder)!=null?l:(p=t[0])==null?void 0:p.name,className:"flex-grow w-full bg-white",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)(P.Button,{"aria-label":r!=null?r:"Newsletter form submit button",type:"submit",className:"text-white",children:r})]})}):null}var L={variant_a:N,variant_b:F},me="Newsletter",X=({data:e})=>{var m,s,p,l;let t=e==null?void 0:e.variant,n=t&&(L==null?void 0:L[t]),r={logo:(m=e==null?void 0:e.variants)==null?void 0:m.logo,title:(s=e==null?void 0:e.variants)==null?void 0:s.title,description:(p=e==null?void 0:e.variants)==null?void 0:p.description,form:(l=e==null?void 0:e.variants)==null?void 0:l.form};return n?(0,a.jsx)(n,{...r}):null};X.displayName=me;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 K=Object.create;var d=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var Q=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty;var Z=(e,t)=>{for(var n in t)d(e,n,{get:t[n],enumerable:!0})},v=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of O(t))!U.call(e,s)&&s!==n&&d(e,s,{get:()=>t[s],enumerable:!(r=M(t,s))||r.enumerable});return e};var b=(e,t,n)=>(n=e!=null?K(Q(e)):{},v(t||!e||!e.__esModule?d(n,"default",{value:e,enumerable:!0}):n,e)),j=e=>v(d({},"__esModule",{value:!0}),e);var me={};Z(me,{Newsletter:()=>X});module.exports=j(me);var P=require("@stackshift-ui/button"),N=require("@stackshift-ui/container"),T=require("@stackshift-ui/flex"),g=require("@stackshift-ui/form"),S=require("@stackshift-ui/heading"),R=require("@stackshift-ui/image"),A=require("@stackshift-ui/input"),I=require("@stackshift-ui/link"),C=require("@stackshift-ui/section"),B=require("@stackshift-ui/text"),Y=b(require("react"));var h=e=>e?(e==null?void 0:e.linkType)==="linkInternal"?`/${e==null?void 0:e.internalLink}`:e==null?void 0:e.externalLink:"/thank-you";function f(e){switch(e){case"inputEmail":return"email";case"inputPassword":return"password";case"inputNumber":return"number";default:return"text"}}var u=e=>{var t,n,r;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(n=(t=e==null?void 0:e.internalLink)==null?void 0:t.toLowerCase())!=null&&n.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 a=require("react/jsx-runtime");function F({logo:e,title:t,description:n,form:r}){var s;return(0,a.jsx)(C.Section,{className:"py-20 bg-background",children:(0,a.jsx)(N.Container,{maxWidth:1280,children:(0,a.jsxs)(N.Container,{maxWidth:576,className:"text-center",children:[(0,a.jsx)(ee,{logo:e}),(0,a.jsx)(te,{title:t,description:n}),(0,a.jsx)(re,{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 ee({logo:e}){var t;return e?(0,a.jsx)(I.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)(R.Image,{src:e==null?void 0:e.image,alt:(t=e.alt)!=null?t:"newsletter-logo",width:48,height:48,className:"inline-block text-3xl font-bold leading-none"})}):null}function te({title:e,description:t}){return(0,a.jsxs)(Y.default.Fragment,{children:[e&&(0,a.jsx)(S.Heading,{fontSize:"2xl",className:"mb-3 text-primary",children:e}),t&&(0,a.jsx)(B.Text,{muted:!0,className:"my-4",children:t})]})}function re({id:e,fields:t,thankYouPage:n,buttonLabel:r}){var m,p,l,c,o,x,w;return Array.isArray(t)&&t.length>0?(0,a.jsx)(g.Form,{id:e!=null?e:void 0,name:"NewsletterA-Form",className:"form-newsletter",thankyouPage:h(n),children:(0,a.jsxs)(T.Flex,{align:"center",gap:2,className:"max-w-md mx-auto",children:[(0,a.jsx)(A.Input,{"aria-label":(l=(m=t[0])==null?void 0:m.placeholder)!=null?l:(p=t[0])==null?void 0:p.name,className:"flex-grow w-full bg-white",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)(P.Button,{"aria-label":r!=null?r:"Newsletter form submit button",type:"submit",className:"w-1/2 text-white",children:r})]})}):null}var J=b(require("react"));function k({logo:e,title:t,description:n,form:r}){return(0,a.jsx)(C.Section,{className:"mx-auto w-full py-20 bg-background",children:(0,a.jsx)(N.Container,{maxWidth:1280,children:(0,a.jsxs)(T.Flex,{wrap:!0,align:"center",className:"flex-col [@media(min-width:900px)]:flex-row [@media(min-width:900px)]:justify-between",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center [@media(min-width:900px)]:flex-row [@media(min-width:900px)]:items-start gap-5",children:[(0,a.jsx)(ne,{logo:e}),(0,a.jsx)(N.Container,{maxWidth:412,className:"mx-auto px-4 w-full text-center [@media(min-width:900px)]:text-left",children:(0,a.jsx)(ie,{title:t,description:n})})]}),(0,a.jsx)(ae,{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 ne({logo:e}){var t;return e?(0,a.jsx)($.Link,{"aria-label":u(e)==="/"?"Go to home page":`Go to ${u(e)}`,href:u(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(R.Image,{src:e==null?void 0:e.image,alt:(t=e.alt)!=null?t:"newsletter-logo",width:48,height:48})}):null}function ie({title:e,description:t}){return(0,a.jsxs)(J.default.Fragment,{children:[e&&(0,a.jsx)(S.Heading,{fontSize:"2xl",className:"text-primary",children:e}),t&&(0,a.jsx)(B.Text,{className:"my-4 leading-loose",muted:!0,children:t})]})}function ae({id:e,fields:t,thankYouPage:n,buttonLabel:r}){var m,p,l,c,o,x,w;return Array.isArray(t)&&t.length>0?(0,a.jsx)(g.Form,{id:e!=null?e:void 0,name:"NewsletterB-Form",className:"form-newsletter w-full sm:w-1/2 [@media(min-width:900px)]:w-2/5",thankyouPage:h(n),children:(0,a.jsxs)("div",{className:"flex flex-col [@media(min-width:900px)]:flex-row gap-3",children:[(0,a.jsx)(A.Input,{"aria-label":(l=(m=t[0])==null?void 0:m.placeholder)!=null?l:(p=t[0])==null?void 0:p.name,className:"flex-grow w-full bg-white",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)(P.Button,{"aria-label":r!=null?r:"Newsletter form submit button",type:"submit",className:"text-white",children:r})]})}):null}var L={variant_a:F,variant_b:k},se="Newsletter",X=({data:e})=>{var s,m,p,l;let t=e==null?void 0:e.variant,n=t&&(L==null?void 0:L[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:(p=e==null?void 0:e.variants)==null?void 0:p.description,form:(l=e==null?void 0:e.variants)==null?void 0:l.form};return n?(0,a.jsx)(n,{...r}):null};X.displayName=se;0&&(module.exports={Newsletter});
|
package/dist/newsletter.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-GXNFMLF5.mjs";import"./chunk-MR4L6TRX.mjs";import"./chunk-DVMH4OLQ.mjs";import"./chunk-4LCCWTIZ.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 Y=Object.create;var s=Object.defineProperty;var q=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,$=Object.prototype.hasOwnProperty;var B=(e,t)=>{for(var a in t)s(e,a,{get:t[a],enumerable:!0})},f=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of v(t))!$.call(e,i)&&i!==a&&s(e,i,{get:()=>t[i],enumerable:!(r=q(t,i))||r.enumerable});return e};var G=(e,t,a)=>(a=e!=null?Y(E(e)):{},f(t||!e||!e.__esModule?s(a,"default",{value:e,enumerable:!0}):a,e)),H=e=>f(s({},"__esModule",{value:!0}),e);var D={};B(D,{Newsletter_A:()=>R,default:()=>R});module.exports=H(D);var F=require("@stackshift-ui/button"),u=require("@stackshift-ui/container"),L=require("@stackshift-ui/flex"),k=require("@stackshift-ui/form"),b=require("@stackshift-ui/heading"),T=require("@stackshift-ui/image"),P=require("@stackshift-ui/input"),I=require("@stackshift-ui/link"),A=require("@stackshift-ui/section"),S=require("@stackshift-ui/text"),C=G(require("react"));var N=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,r;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"&&(r=e==null?void 0:e.externalLink)!=null?r:"/"};var n=require("react/jsx-runtime");function R({logo:e,title:t,description:a,form:r}){var i;return(0,n.jsx)(A.Section,{className:"py-20 bg-background",children:(0,n.jsx)(u.Container,{maxWidth:1280,children:(0,n.jsxs)(u.Container,{maxWidth:576,className:"text-center",children:[(0,n.jsx)(W,{logo:e}),(0,n.jsx)(_,{title:t,description:a}),(0,n.jsx)(z,{id:(i=r==null?void 0:r.id)!=null?i:void 0,fields:r==null?void 0:r.fields,buttonLabel:r==null?void 0:r.buttonLabel,thankYouPage:r==null?void 0:r.thankYouPage})]})})})}function W({logo:e}){var t;return e?(0,n.jsx)(I.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,n.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 text-3xl font-bold leading-none"})}):null}function _({title:e,description:t}){return(0,n.jsxs)(C.default.Fragment,{children:[e&&(0,n.jsx)(b.Heading,{fontSize:"2xl",className:"mb-3 text-primary",children:e}),t&&(0,n.jsx)(S.Text,{muted:!0,className:"my-4",children:t})]})}function z({id:e,fields:t,thankYouPage:a,buttonLabel:r}){var p,c,d,l,x,h,w;return Array.isArray(t)&&t.length>0?(0,n.jsx)(k.Form,{id:e!=null?e:void 0,name:"NewsletterA-Form",className:"form-newsletter",thankyouPage:N(a),children:(0,n.jsxs)(L.Flex,{align:"center",gap:2,className:"max-w-md mx-auto",children:[(0,n.jsx)(P.Input,{"aria-label":(d=(p=t[0])==null?void 0:p.placeholder)!=null?d:(c=t[0])==null?void 0:c.name,className:"flex-grow w-full bg-white",type:y((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,n.jsx)("div",{children:(0,n.jsx)("div",{className:"webriq-recaptcha"})}),r&&(0,n.jsx)(F.Button,{"aria-label":r!=null?r:"Newsletter form submit button",type:"submit",className:"w-1/2 text-white",children:r})]})}):null}0&&(module.exports={Newsletter_A});
|
package/dist/newsletter_a.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-MR4L6TRX.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 R=Object.create;var m=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var q=Object.getOwnPropertyNames;var A=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty;var $=(e,t)=>{for(var a in t)m(e,a,{get:t[a],enumerable:!0})},f=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of q(t))!E.call(e,i)&&i!==a&&m(e,i,{get:()=>t[i],enumerable:!(r=Y(t,i))||r.enumerable});return e};var G=(e,t,a)=>(a=e!=null?R(A(e)):{},f(t||!e||!e.__esModule?m(a,"default",{value:e,enumerable:!0}):a,e)),H=e=>f(m({},"__esModule",{value:!0}),e);var D={};$(D,{Newsletter_B:()=>C,default:()=>C});module.exports=H(D);var F=require("@stackshift-ui/button"),p=require("@stackshift-ui/container"),L=require("@stackshift-ui/flex"),k=require("@stackshift-ui/form"),T=require("@stackshift-ui/heading"),P=require("@stackshift-ui/image"),b=require("@stackshift-ui/input"),v=require("@stackshift-ui/link"),I=require("@stackshift-ui/section"),S=require("@stackshift-ui/text"),B=G(require("react"));var N=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 s=e=>{var t,a,r;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"&&(r=e==null?void 0:e.externalLink)!=null?r:"/"};var n=require("react/jsx-runtime");function C({logo:e,title:t,description:a,form:r}){return(0,n.jsx)(I.Section,{className:"mx-auto w-full py-20 bg-background",children:(0,n.jsx)(p.Container,{maxWidth:1280,children:(0,n.jsxs)(L.Flex,{wrap:!0,align:"center",className:"flex-col [@media(min-width:900px)]:flex-row [@media(min-width:900px)]:justify-between",children:[(0,n.jsxs)("div",{className:"flex flex-col items-center [@media(min-width:900px)]:flex-row [@media(min-width:900px)]:items-start gap-5",children:[(0,n.jsx)(W,{logo:e}),(0,n.jsx)(p.Container,{maxWidth:412,className:"mx-auto px-4 w-full text-center [@media(min-width:900px)]:text-left",children:(0,n.jsx)(_,{title:t,description:a})})]}),(0,n.jsx)(z,{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 W({logo:e}){var t;return e?(0,n.jsx)(v.Link,{"aria-label":s(e)==="/"?"Go to home page":`Go to ${s(e)}`,href:s(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,n.jsx)(P.Image,{src:e==null?void 0:e.image,alt:(t=e.alt)!=null?t:"newsletter-logo",width:48,height:48})}):null}function _({title:e,description:t}){return(0,n.jsxs)(B.default.Fragment,{children:[e&&(0,n.jsx)(T.Heading,{fontSize:"2xl",className:"text-primary",children:e}),t&&(0,n.jsx)(S.Text,{className:"my-4 leading-loose",muted:!0,children:t})]})}function z({id:e,fields:t,thankYouPage:a,buttonLabel:r}){var u,d,c,x,l,w,h;return Array.isArray(t)&&t.length>0?(0,n.jsx)(k.Form,{id:e!=null?e:void 0,name:"NewsletterB-Form",className:"form-newsletter w-full sm:w-1/2 [@media(min-width:900px)]:w-2/5",thankyouPage:N(a),children:(0,n.jsxs)("div",{className:"flex flex-col [@media(min-width:900px)]:flex-row gap-3",children:[(0,n.jsx)(b.Input,{"aria-label":(c=(u=t[0])==null?void 0:u.placeholder)!=null?c:(d=t[0])==null?void 0:d.name,className:"flex-grow w-full bg-white",type:y((x=t[0])==null?void 0:x.type),placeholder:(l=t[0])==null?void 0:l.placeholder,name:(w=t[0])==null?void 0:w.name,required:(h=t[0])==null?void 0:h.isRequired}),(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:"webriq-recaptcha"})}),r&&(0,n.jsx)(F.Button,{"aria-label":r!=null?r:"Newsletter form submit button",type:"submit",className:"text-white",children:r})]})}):null}0&&(module.exports={Newsletter_B});
|
package/dist/newsletter_b.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-DVMH4OLQ.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);
|