@stackshift-ui/cookies 7.0.0-beta.3 → 7.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -6
- package/dist/chunk-5UBVCBHM.mjs +0 -93
- package/dist/chunk-RHBXK4UI.mjs +0 -1
- package/dist/chunk-SPFCV7XJ.mjs +0 -1
- package/dist/chunk-UMU577IJ.mjs +0 -1
- package/dist/chunk-XKHQP64D.mjs +0 -29
- package/dist/chunk-XM5H43VR.mjs +0 -21
- package/dist/cookies.d.ts +0 -21
- package/dist/cookies.js +0 -1
- package/dist/cookies.mjs +0 -1
- package/dist/cookies_a.d.ts +0 -3
- package/dist/cookies_a.js +0 -1
- package/dist/cookies_a.mjs +0 -1
- package/dist/helper/index.d.ts +0 -2
- package/dist/helper/index.js +0 -1
- package/dist/helper/index.mjs +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -2
- package/dist/index.mjs +0 -2
- package/dist/types.d.ts +0 -363
- package/dist/types.js +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/cookies",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.0.0-beta.
|
|
4
|
+
"version": "7.0.0-beta.4",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -29,16 +29,16 @@
|
|
|
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/eslint-config": "6.0.10",
|
|
33
|
+
"@stackshift-ui/typescript-config": "6.0.10"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"vanilla-cookieconsent": "3.0.1",
|
|
37
|
-
"@stackshift-ui/
|
|
38
|
-
"@stackshift-ui/
|
|
37
|
+
"@stackshift-ui/scripts": "7.0.0-beta.3",
|
|
38
|
+
"@stackshift-ui/system": "7.0.0-beta.4"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@stackshift-ui/system": ">=
|
|
41
|
+
"@stackshift-ui/system": ">=7.0.0-beta.4",
|
|
42
42
|
"@types/react": "16.8 - 19",
|
|
43
43
|
"next": "10 - 14",
|
|
44
44
|
"react": "16.8 - 19",
|
package/dist/chunk-5UBVCBHM.mjs
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
extractLink
|
|
3
|
-
} from "./chunk-XM5H43VR.mjs";
|
|
4
|
-
|
|
5
|
-
// src/cookies_a.tsx
|
|
6
|
-
import { useEffect } from "react";
|
|
7
|
-
import * as CookieConsent from "vanilla-cookieconsent";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
function Cookies_A({
|
|
10
|
-
title,
|
|
11
|
-
description,
|
|
12
|
-
allowCookieBtn,
|
|
13
|
-
denyCookieBtn,
|
|
14
|
-
config,
|
|
15
|
-
contactLink,
|
|
16
|
-
...props
|
|
17
|
-
}) {
|
|
18
|
-
var _a, _b, _c, _d;
|
|
19
|
-
const siteName = (_a = config == null ? void 0 : config.cookiePolicy) == null ? void 0 : _a.siteName;
|
|
20
|
-
const cookieConfigLink = (_b = config == null ? void 0 : config.cookiePolicy) == null ? void 0 : _b.cookiePolicyPage;
|
|
21
|
-
const cookieModalPosition = ((_d = (_c = config == null ? void 0 : config.cookiePolicy) == null ? void 0 : _c.consentModal) == null ? void 0 : _d.position) || "bottom right";
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
var _a2, _b2;
|
|
24
|
-
const cookieConfigOptions = {
|
|
25
|
-
categories: {
|
|
26
|
-
necessary: {
|
|
27
|
-
enabled: true,
|
|
28
|
-
readOnly: true
|
|
29
|
-
},
|
|
30
|
-
analytics: {
|
|
31
|
-
enabled: config == null ? void 0 : config.enableAnalytics
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
guiOptions: {
|
|
35
|
-
consentModal: {
|
|
36
|
-
position: cookieModalPosition
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
language: {
|
|
40
|
-
default: "en",
|
|
41
|
-
translations: {
|
|
42
|
-
en: {
|
|
43
|
-
consentModal: {
|
|
44
|
-
title,
|
|
45
|
-
description: "Cookies help us deliver our services. By using our services, you agree to our use of cookies.",
|
|
46
|
-
acceptAllBtn: allowCookieBtn,
|
|
47
|
-
acceptNecessaryBtn: denyCookieBtn || "Reject all",
|
|
48
|
-
showPreferencesBtn: "Manage Individual preferences"
|
|
49
|
-
},
|
|
50
|
-
preferencesModal: {
|
|
51
|
-
title: "Cookie Preferences",
|
|
52
|
-
acceptAllBtn: allowCookieBtn,
|
|
53
|
-
acceptNecessaryBtn: denyCookieBtn || "Reject all",
|
|
54
|
-
savePreferencesBtn: "Accept current selection",
|
|
55
|
-
closeIconLabel: "Close",
|
|
56
|
-
sections: [
|
|
57
|
-
{
|
|
58
|
-
title,
|
|
59
|
-
description
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
title: "Strictly Necessary cookies",
|
|
63
|
-
description: `These cookies are essential for the proper functioning of this website. <a href=${extractLink(
|
|
64
|
-
cookieConfigLink
|
|
65
|
-
)} target=${cookieConfigLink == null ? void 0 : cookieConfigLink.linkTarget} rel=${(cookieConfigLink == null ? void 0 : cookieConfigLink.linkTarget) === "_blank" ? "noopener noreferrer" : ""}>${(_b2 = (_a2 = config == null ? void 0 : config.cookiePolicy) == null ? void 0 : _a2.cookiePolicyPage) == null ? void 0 : _b2.label}</a>.`,
|
|
66
|
-
linkedCategory: "necessary"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
title: "Analytics",
|
|
70
|
-
description: "These cookies are used to track and measure the use of this website.",
|
|
71
|
-
linkedCategory: "analytics"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
title: "More information",
|
|
75
|
-
description: `For any queries in relation to ${siteName}'s policy on cookies and your choices, please <a href=${extractLink(
|
|
76
|
-
contactLink
|
|
77
|
-
)} target=${contactLink == null ? void 0 : contactLink.linkTarget} rel=${(contactLink == null ? void 0 : contactLink.linkTarget) === "_blank" ? "noopener noreferrer" : ""}>${contactLink == null ? void 0 : contactLink.label}</a>.`
|
|
78
|
-
}
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
hideFromBots: false
|
|
85
|
-
};
|
|
86
|
-
CookieConsent.run(cookieConfigOptions);
|
|
87
|
-
}, []);
|
|
88
|
-
return /* @__PURE__ */ jsx("div", { ...props });
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export {
|
|
92
|
-
Cookies_A
|
|
93
|
-
};
|
package/dist/chunk-RHBXK4UI.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a=e=>{var t,r;return!(e!=null&&e.internalLink)&&!(e!=null&&e.externalLink)?"/page-not-found":(e==null?void 0:e.type)==="linkInternal"&&((r=(t=e==null?void 0:e.internalLink)==null?void 0:t.toLowerCase())!=null&&r.includes("home"))?"/":(e==null?void 0:e.type)==="linkInternal"?`/${e==null?void 0:e.internalLink}`:(e==null?void 0:e.type)==="linkExternal"?`${e==null?void 0:e.externalLink}`:"/"};export{a};
|
package/dist/chunk-SPFCV7XJ.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as m}from"./chunk-UMU577IJ.mjs";import{jsx as L}from"react/jsx-runtime";var v={variant_a:m},P="Cookies",B=({data:n})=>{var e,s,r,c,t,l,p,f,k,y,C,g;let o=n==null?void 0:n.variant,i=o&&v[o],u={title:(s=(e=n==null?void 0:n.variants)==null?void 0:e.heading)!=null?s:void 0,description:(c=(r=n==null?void 0:n.variants)==null?void 0:r.description)!=null?c:void 0,allowCookieBtn:(l=(t=n==null?void 0:n.variants)==null?void 0:t.acceptButtonLabel)!=null?l:void 0,denyCookieBtn:(f=(p=n==null?void 0:n.variants)==null?void 0:p.declineButtonLabel)!=null?f:void 0,config:(y=(k=n==null?void 0:n.variants)==null?void 0:k.config)!=null?y:void 0,contactLink:(g=(C=n==null?void 0:n.variants)==null?void 0:C.contactLink)!=null?g:void 0};return i?L(i,{...u}):null};B.displayName=P;export{B as a};
|
package/dist/chunk-UMU577IJ.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk-RHBXK4UI.mjs";import{useEffect as k}from"react";import*as c from"vanilla-cookieconsent";import{jsx as M}from"react/jsx-runtime";function $({title:t,description:P,allowCookieBtn:l,denyCookieBtn:a,config:e,contactLink:s,...h}){var i,p,n,u;let m=(i=e==null?void 0:e.cookiePolicy)==null?void 0:i.siteName,r=(p=e==null?void 0:e.cookiePolicy)==null?void 0:p.cookiePolicyPage,C=((u=(n=e==null?void 0:e.cookiePolicy)==null?void 0:n.consentModal)==null?void 0:u.position)||"bottom right";return k(()=>{var d,y;let b={categories:{necessary:{enabled:!0,readOnly:!0},analytics:{enabled:e==null?void 0:e.enableAnalytics}},guiOptions:{consentModal:{position:C}},language:{default:"en",translations:{en:{consentModal:{title:t,description:"Cookies help us deliver our services. By using our services, you agree to our use of cookies.",acceptAllBtn:l,acceptNecessaryBtn:a||"Reject all",showPreferencesBtn:"Manage Individual preferences"},preferencesModal:{title:"Cookie Preferences",acceptAllBtn:l,acceptNecessaryBtn:a||"Reject all",savePreferencesBtn:"Accept current selection",closeIconLabel:"Close",sections:[{title:t,description:P},{title:"Strictly Necessary cookies",description:`These cookies are essential for the proper functioning of this website. <a href=${o(r)} target=${r==null?void 0:r.linkTarget} rel=${(r==null?void 0:r.linkTarget)==="_blank"?"noopener noreferrer":""}>${(y=(d=e==null?void 0:e.cookiePolicy)==null?void 0:d.cookiePolicyPage)==null?void 0:y.label}</a>.`,linkedCategory:"necessary"},{title:"Analytics",description:"These cookies are used to track and measure the use of this website.",linkedCategory:"analytics"},{title:"More information",description:`For any queries in relation to ${m}'s policy on cookies and your choices, please <a href=${o(s)} target=${s==null?void 0:s.linkTarget} rel=${(s==null?void 0:s.linkTarget)==="_blank"?"noopener noreferrer":""}>${s==null?void 0:s.label}</a>.`}]}}}},hideFromBots:!1};c.run(b)},[]),M("div",{...h})}export{$ as a};
|
package/dist/chunk-XKHQP64D.mjs
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Cookies_A
|
|
3
|
-
} from "./chunk-5UBVCBHM.mjs";
|
|
4
|
-
|
|
5
|
-
// src/cookies.tsx
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
var Variants = {
|
|
8
|
-
variant_a: Cookies_A
|
|
9
|
-
};
|
|
10
|
-
var displayName = "Cookies";
|
|
11
|
-
var Cookies = ({ data }) => {
|
|
12
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
13
|
-
const variant = data == null ? void 0 : data.variant;
|
|
14
|
-
const Variant = variant && Variants[variant];
|
|
15
|
-
const props = {
|
|
16
|
-
title: (_b = (_a = data == null ? void 0 : data.variants) == null ? void 0 : _a.heading) != null ? _b : void 0,
|
|
17
|
-
description: (_d = (_c = data == null ? void 0 : data.variants) == null ? void 0 : _c.description) != null ? _d : void 0,
|
|
18
|
-
allowCookieBtn: (_f = (_e = data == null ? void 0 : data.variants) == null ? void 0 : _e.acceptButtonLabel) != null ? _f : void 0,
|
|
19
|
-
denyCookieBtn: (_h = (_g = data == null ? void 0 : data.variants) == null ? void 0 : _g.declineButtonLabel) != null ? _h : void 0,
|
|
20
|
-
config: (_j = (_i = data == null ? void 0 : data.variants) == null ? void 0 : _i.config) != null ? _j : void 0,
|
|
21
|
-
contactLink: (_l = (_k = data == null ? void 0 : data.variants) == null ? void 0 : _k.contactLink) != null ? _l : void 0
|
|
22
|
-
};
|
|
23
|
-
return Variant ? /* @__PURE__ */ jsx(Variant, { ...props }) : null;
|
|
24
|
-
};
|
|
25
|
-
Cookies.displayName = displayName;
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
Cookies
|
|
29
|
-
};
|
package/dist/chunk-XM5H43VR.mjs
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// src/helper/index.tsx
|
|
2
|
-
var extractLink = (link) => {
|
|
3
|
-
var _a, _b;
|
|
4
|
-
if (!(link == null ? void 0 : link.internalLink) && !(link == null ? void 0 : link.externalLink)) {
|
|
5
|
-
return "/page-not-found";
|
|
6
|
-
}
|
|
7
|
-
if ((link == null ? void 0 : link.type) === "linkInternal" && ((_b = (_a = link == null ? void 0 : link.internalLink) == null ? void 0 : _a.toLowerCase()) == null ? void 0 : _b.includes("home"))) {
|
|
8
|
-
return "/";
|
|
9
|
-
}
|
|
10
|
-
if ((link == null ? void 0 : link.type) === "linkInternal") {
|
|
11
|
-
return `/${link == null ? void 0 : link.internalLink}`;
|
|
12
|
-
}
|
|
13
|
-
if ((link == null ? void 0 : link.type) === "linkExternal") {
|
|
14
|
-
return `${link == null ? void 0 : link.externalLink}`;
|
|
15
|
-
}
|
|
16
|
-
return "/";
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export {
|
|
20
|
-
extractLink
|
|
21
|
-
};
|
package/dist/cookies.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ConsentModalPosition } from "vanilla-cookieconsent";
|
|
3
|
-
import { SectionsProps } from "./types";
|
|
4
|
-
export interface CookiesProps {
|
|
5
|
-
title?: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
allowCookieBtn?: string;
|
|
8
|
-
denyCookieBtn?: string;
|
|
9
|
-
config?: {
|
|
10
|
-
enableAnalytics: boolean;
|
|
11
|
-
cookiePolicy?: {
|
|
12
|
-
siteName: string;
|
|
13
|
-
cookiePolicyPage?: any;
|
|
14
|
-
consentModal?: {
|
|
15
|
-
position: ConsentModalPosition;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
contactLink?: any;
|
|
20
|
-
}
|
|
21
|
-
export declare const Cookies: React.FC<SectionsProps>;
|
package/dist/cookies.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var N=Object.create;var P=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var T=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var I=(e,r)=>{for(var s in r)P(e,s,{get:r[s],enumerable:!0})},v=(e,r,s,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of R(r))!w.call(e,o)&&o!==s&&P(e,o,{get:()=>r[o],enumerable:!(i=g(r,o))||i.enumerable});return e};var _=(e,r,s)=>(s=e!=null?N(T(e)):{},v(r||!e||!e.__esModule?P(s,"default",{value:e,enumerable:!0}):s,e)),F=e=>v(P({},"__esModule",{value:!0}),e);var V={};I(V,{Cookies:()=>x});module.exports=F(V);var B=require("react"),$=_(require("vanilla-cookieconsent"));var b=e=>{var r,s;return!(e!=null&&e.internalLink)&&!(e!=null&&e.externalLink)?"/page-not-found":(e==null?void 0:e.type)==="linkInternal"&&((s=(r=e==null?void 0:e.internalLink)==null?void 0:r.toLowerCase())!=null&&s.includes("home"))?"/":(e==null?void 0:e.type)==="linkInternal"?`/${e==null?void 0:e.internalLink}`:(e==null?void 0:e.type)==="linkExternal"?`${e==null?void 0:e.externalLink}`:"/"};var M=require("react/jsx-runtime");function d({title:e,description:r,allowCookieBtn:s,denyCookieBtn:i,config:o,contactLink:t,...y}){var l,p,a,c;let m=(l=o==null?void 0:o.cookiePolicy)==null?void 0:l.siteName,n=(p=o==null?void 0:o.cookiePolicy)==null?void 0:p.cookiePolicyPage,C=((c=(a=o==null?void 0:o.cookiePolicy)==null?void 0:a.consentModal)==null?void 0:c.position)||"bottom right";return(0,B.useEffect)(()=>{var u,h;let f={categories:{necessary:{enabled:!0,readOnly:!0},analytics:{enabled:o==null?void 0:o.enableAnalytics}},guiOptions:{consentModal:{position:C}},language:{default:"en",translations:{en:{consentModal:{title:e,description:"Cookies help us deliver our services. By using our services, you agree to our use of cookies.",acceptAllBtn:s,acceptNecessaryBtn:i||"Reject all",showPreferencesBtn:"Manage Individual preferences"},preferencesModal:{title:"Cookie Preferences",acceptAllBtn:s,acceptNecessaryBtn:i||"Reject all",savePreferencesBtn:"Accept current selection",closeIconLabel:"Close",sections:[{title:e,description:r},{title:"Strictly Necessary cookies",description:`These cookies are essential for the proper functioning of this website. <a href=${b(n)} target=${n==null?void 0:n.linkTarget} rel=${(n==null?void 0:n.linkTarget)==="_blank"?"noopener noreferrer":""}>${(h=(u=o==null?void 0:o.cookiePolicy)==null?void 0:u.cookiePolicyPage)==null?void 0:h.label}</a>.`,linkedCategory:"necessary"},{title:"Analytics",description:"These cookies are used to track and measure the use of this website.",linkedCategory:"analytics"},{title:"More information",description:`For any queries in relation to ${m}'s policy on cookies and your choices, please <a href=${b(t)} target=${t==null?void 0:t.linkTarget} rel=${(t==null?void 0:t.linkTarget)==="_blank"?"noopener noreferrer":""}>${t==null?void 0:t.label}</a>.`}]}}}},hideFromBots:!1};$.run(f)},[]),(0,M.jsx)("div",{...y})}var O={variant_a:d},S="Cookies",x=({data:e})=>{var o,t,y,m,n,C,l,p,a,c,f,u;let r=e==null?void 0:e.variant,s=r&&O[r],i={title:(t=(o=e==null?void 0:e.variants)==null?void 0:o.heading)!=null?t:void 0,description:(m=(y=e==null?void 0:e.variants)==null?void 0:y.description)!=null?m:void 0,allowCookieBtn:(C=(n=e==null?void 0:e.variants)==null?void 0:n.acceptButtonLabel)!=null?C:void 0,denyCookieBtn:(p=(l=e==null?void 0:e.variants)==null?void 0:l.declineButtonLabel)!=null?p:void 0,config:(c=(a=e==null?void 0:e.variants)==null?void 0:a.config)!=null?c:void 0,contactLink:(u=(f=e==null?void 0:e.variants)==null?void 0:f.contactLink)!=null?u:void 0};return s?(0,M.jsx)(s,{...i}):null};x.displayName=S;0&&(module.exports={Cookies});
|
package/dist/cookies.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-SPFCV7XJ.mjs";import"./chunk-UMU577IJ.mjs";import"./chunk-RHBXK4UI.mjs";export{a as Cookies};
|
package/dist/cookies_a.d.ts
DELETED
package/dist/cookies_a.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var A=Object.create;var l=Object.defineProperty;var B=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var N=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty;var R=(e,o)=>{for(var s in o)l(e,s,{get:o[s],enumerable:!0})},h=(e,o,s,p)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of T(o))!I.call(e,r)&&r!==s&&l(e,r,{get:()=>o[r],enumerable:!(p=B(o,r))||p.enumerable});return e};var w=(e,o,s)=>(s=e!=null?A(N(e)):{},h(o||!e||!e.__esModule?l(s,"default",{value:e,enumerable:!0}):s,e)),O=e=>h(l({},"__esModule",{value:!0}),e);var _={};R(_,{Cookies_A:()=>b,default:()=>b});module.exports=O(_);var C=require("react"),P=w(require("vanilla-cookieconsent"));var u=e=>{var o,s;return!(e!=null&&e.internalLink)&&!(e!=null&&e.externalLink)?"/page-not-found":(e==null?void 0:e.type)==="linkInternal"&&((s=(o=e==null?void 0:e.internalLink)==null?void 0:o.toLowerCase())!=null&&s.includes("home"))?"/":(e==null?void 0:e.type)==="linkInternal"?`/${e==null?void 0:e.internalLink}`:(e==null?void 0:e.type)==="linkExternal"?`${e==null?void 0:e.externalLink}`:"/"};var $=require("react/jsx-runtime");function b({title:e,description:o,allowCookieBtn:s,denyCookieBtn:p,config:r,contactLink:t,...x}){var d,y,i,n;let M=(d=r==null?void 0:r.cookiePolicy)==null?void 0:d.siteName,a=(y=r==null?void 0:r.cookiePolicy)==null?void 0:y.cookiePolicyPage,f=((n=(i=r==null?void 0:r.cookiePolicy)==null?void 0:i.consentModal)==null?void 0:n.position)||"bottom right";return(0,C.useEffect)(()=>{var c,m;let v={categories:{necessary:{enabled:!0,readOnly:!0},analytics:{enabled:r==null?void 0:r.enableAnalytics}},guiOptions:{consentModal:{position:f}},language:{default:"en",translations:{en:{consentModal:{title:e,description:"Cookies help us deliver our services. By using our services, you agree to our use of cookies.",acceptAllBtn:s,acceptNecessaryBtn:p||"Reject all",showPreferencesBtn:"Manage Individual preferences"},preferencesModal:{title:"Cookie Preferences",acceptAllBtn:s,acceptNecessaryBtn:p||"Reject all",savePreferencesBtn:"Accept current selection",closeIconLabel:"Close",sections:[{title:e,description:o},{title:"Strictly Necessary cookies",description:`These cookies are essential for the proper functioning of this website. <a href=${u(a)} target=${a==null?void 0:a.linkTarget} rel=${(a==null?void 0:a.linkTarget)==="_blank"?"noopener noreferrer":""}>${(m=(c=r==null?void 0:r.cookiePolicy)==null?void 0:c.cookiePolicyPage)==null?void 0:m.label}</a>.`,linkedCategory:"necessary"},{title:"Analytics",description:"These cookies are used to track and measure the use of this website.",linkedCategory:"analytics"},{title:"More information",description:`For any queries in relation to ${M}'s policy on cookies and your choices, please <a href=${u(t)} target=${t==null?void 0:t.linkTarget} rel=${(t==null?void 0:t.linkTarget)==="_blank"?"noopener noreferrer":""}>${t==null?void 0:t.label}</a>.`}]}}}},hideFromBots:!1};P.run(v)},[]),(0,$.jsx)("div",{...x})}0&&(module.exports={Cookies_A});
|
package/dist/cookies_a.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-UMU577IJ.mjs";import"./chunk-RHBXK4UI.mjs";export{a as Cookies_A,a as default};
|
package/dist/helper/index.d.ts
DELETED
package/dist/helper/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var o=Object.defineProperty;var L=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var x=(e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})},d=(e,t,r,u)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of f(t))!p.call(e,a)&&a!==r&&o(e,a,{get:()=>t[a],enumerable:!(u=L(t,a))||u.enumerable});return e};var s=e=>d(o({},"__esModule",{value:!0}),e);var m={};x(m,{extractLink:()=>c});module.exports=s(m);var c=e=>{var t,r;return!(e!=null&&e.internalLink)&&!(e!=null&&e.externalLink)?"/page-not-found":(e==null?void 0:e.type)==="linkInternal"&&((r=(t=e==null?void 0:e.internalLink)==null?void 0:t.toLowerCase())!=null&&r.includes("home"))?"/":(e==null?void 0:e.type)==="linkInternal"?`/${e==null?void 0:e.internalLink}`:(e==null?void 0:e.type)==="linkExternal"?`${e==null?void 0:e.externalLink}`:"/"};0&&(module.exports={extractLink});
|
package/dist/helper/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-RHBXK4UI.mjs";export{a as extractLink};
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";var N=Object.create;var P=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var T=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var I=(e,r)=>{for(var s in r)P(e,s,{get:r[s],enumerable:!0})},v=(e,r,s,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of R(r))!w.call(e,o)&&o!==s&&P(e,o,{get:()=>r[o],enumerable:!(i=g(r,o))||i.enumerable});return e};var _=(e,r,s)=>(s=e!=null?N(T(e)):{},v(r||!e||!e.__esModule?P(s,"default",{value:e,enumerable:!0}):s,e)),F=e=>v(P({},"__esModule",{value:!0}),e);var V={};I(V,{Cookies:()=>M,Cookies_A:()=>b});module.exports=F(V);var B=require("react"),$=_(require("vanilla-cookieconsent"));var d=e=>{var r,s;return!(e!=null&&e.internalLink)&&!(e!=null&&e.externalLink)?"/page-not-found":(e==null?void 0:e.type)==="linkInternal"&&((s=(r=e==null?void 0:e.internalLink)==null?void 0:r.toLowerCase())!=null&&s.includes("home"))?"/":(e==null?void 0:e.type)==="linkInternal"?`/${e==null?void 0:e.internalLink}`:(e==null?void 0:e.type)==="linkExternal"?`${e==null?void 0:e.externalLink}`:"/"};var x=require("react/jsx-runtime");function b({title:e,description:r,allowCookieBtn:s,denyCookieBtn:i,config:o,contactLink:t,...y}){var p,l,a,c;let m=(p=o==null?void 0:o.cookiePolicy)==null?void 0:p.siteName,n=(l=o==null?void 0:o.cookiePolicy)==null?void 0:l.cookiePolicyPage,C=((c=(a=o==null?void 0:o.cookiePolicy)==null?void 0:a.consentModal)==null?void 0:c.position)||"bottom right";return(0,B.useEffect)(()=>{var u,h;let f={categories:{necessary:{enabled:!0,readOnly:!0},analytics:{enabled:o==null?void 0:o.enableAnalytics}},guiOptions:{consentModal:{position:C}},language:{default:"en",translations:{en:{consentModal:{title:e,description:"Cookies help us deliver our services. By using our services, you agree to our use of cookies.",acceptAllBtn:s,acceptNecessaryBtn:i||"Reject all",showPreferencesBtn:"Manage Individual preferences"},preferencesModal:{title:"Cookie Preferences",acceptAllBtn:s,acceptNecessaryBtn:i||"Reject all",savePreferencesBtn:"Accept current selection",closeIconLabel:"Close",sections:[{title:e,description:r},{title:"Strictly Necessary cookies",description:`These cookies are essential for the proper functioning of this website. <a href=${d(n)} target=${n==null?void 0:n.linkTarget} rel=${(n==null?void 0:n.linkTarget)==="_blank"?"noopener noreferrer":""}>${(h=(u=o==null?void 0:o.cookiePolicy)==null?void 0:u.cookiePolicyPage)==null?void 0:h.label}</a>.`,linkedCategory:"necessary"},{title:"Analytics",description:"These cookies are used to track and measure the use of this website.",linkedCategory:"analytics"},{title:"More information",description:`For any queries in relation to ${m}'s policy on cookies and your choices, please <a href=${d(t)} target=${t==null?void 0:t.linkTarget} rel=${(t==null?void 0:t.linkTarget)==="_blank"?"noopener noreferrer":""}>${t==null?void 0:t.label}</a>.`}]}}}},hideFromBots:!1};$.run(f)},[]),(0,x.jsx)("div",{...y})}var O={variant_a:b},S="Cookies",M=({data:e})=>{var o,t,y,m,n,C,p,l,a,c,f,u;let r=e==null?void 0:e.variant,s=r&&O[r],i={title:(t=(o=e==null?void 0:e.variants)==null?void 0:o.heading)!=null?t:void 0,description:(m=(y=e==null?void 0:e.variants)==null?void 0:y.description)!=null?m:void 0,allowCookieBtn:(C=(n=e==null?void 0:e.variants)==null?void 0:n.acceptButtonLabel)!=null?C:void 0,denyCookieBtn:(l=(p=e==null?void 0:e.variants)==null?void 0:p.declineButtonLabel)!=null?l:void 0,config:(c=(a=e==null?void 0:e.variants)==null?void 0:a.config)!=null?c:void 0,contactLink:(u=(f=e==null?void 0:e.variants)==null?void 0:f.contactLink)!=null?u:void 0};return s?(0,x.jsx)(s,{...i}):null};M.displayName=S;0&&(module.exports={Cookies,Cookies_A});
|
package/dist/index.mjs
DELETED
package/dist/types.d.ts
DELETED
|
@@ -1,363 +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: SanityImage;
|
|
5
|
-
alt?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface SanityImage {
|
|
8
|
-
priority?: boolean | false;
|
|
9
|
-
_type: "image";
|
|
10
|
-
asset: {
|
|
11
|
-
_ref: string;
|
|
12
|
-
_type: "reference";
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export interface LabeledRoute extends ConditionalLink {
|
|
16
|
-
label?: string;
|
|
17
|
-
linkTarget?: string;
|
|
18
|
-
linkType?: string;
|
|
19
|
-
_type?: string;
|
|
20
|
-
linkInternal?: any;
|
|
21
|
-
linkExternal?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface ConditionalLink {
|
|
24
|
-
type?: string;
|
|
25
|
-
internalLink?: string | null;
|
|
26
|
-
externalLink?: string | null;
|
|
27
|
-
}
|
|
28
|
-
export interface StatItems {
|
|
29
|
-
label?: string;
|
|
30
|
-
mainImage?: MainImage;
|
|
31
|
-
value?: string;
|
|
32
|
-
_key?: string;
|
|
33
|
-
_type?: string;
|
|
34
|
-
}
|
|
35
|
-
export interface Logo extends ConditionalLink {
|
|
36
|
-
alt?: string;
|
|
37
|
-
linkTarget?: string;
|
|
38
|
-
image?: SanityImage;
|
|
39
|
-
}
|
|
40
|
-
export interface Images {
|
|
41
|
-
image?: SanityImage;
|
|
42
|
-
_key?: string;
|
|
43
|
-
_type?: string;
|
|
44
|
-
alt?: string;
|
|
45
|
-
}
|
|
46
|
-
export interface ContactDetails {
|
|
47
|
-
addressInfo?: string;
|
|
48
|
-
contactInfo?: string;
|
|
49
|
-
emailInfo?: string;
|
|
50
|
-
_key?: string;
|
|
51
|
-
}
|
|
52
|
-
export interface SocialLink {
|
|
53
|
-
socialMedia?: string | null;
|
|
54
|
-
socialMediaLink?: string | null;
|
|
55
|
-
_key?: string | null;
|
|
56
|
-
_type?: string | null;
|
|
57
|
-
socialMediaIcon?: {
|
|
58
|
-
alt?: string;
|
|
59
|
-
image?: SanityImage;
|
|
60
|
-
} | null;
|
|
61
|
-
socialMediaPlatform?: string | null;
|
|
62
|
-
}
|
|
63
|
-
export interface LabeledRouteWithKey extends LabeledRoute {
|
|
64
|
-
_key?: string;
|
|
65
|
-
}
|
|
66
|
-
export interface ArrayOfImageTitleAndText {
|
|
67
|
-
mainImage?: {
|
|
68
|
-
alt?: string;
|
|
69
|
-
image?: SanityImage;
|
|
70
|
-
};
|
|
71
|
-
plainText?: string;
|
|
72
|
-
title?: string;
|
|
73
|
-
_key?: string;
|
|
74
|
-
_type?: string;
|
|
75
|
-
}
|
|
76
|
-
export interface FeaturedItem {
|
|
77
|
-
description?: string;
|
|
78
|
-
mainImage?: MainImage;
|
|
79
|
-
title?: string;
|
|
80
|
-
subtitle?: string;
|
|
81
|
-
_key?: string;
|
|
82
|
-
_type?: string;
|
|
83
|
-
}
|
|
84
|
-
export interface ArrayOfTitleAndText {
|
|
85
|
-
_key?: string;
|
|
86
|
-
plainText?: string;
|
|
87
|
-
title?: string;
|
|
88
|
-
}
|
|
89
|
-
export interface BlogPost extends SanityBody {
|
|
90
|
-
authors?: Author[] | null;
|
|
91
|
-
body?: any;
|
|
92
|
-
categories?: Category[] | null;
|
|
93
|
-
excerpt?: string | null;
|
|
94
|
-
link?: string | null;
|
|
95
|
-
mainImage?: SanityImage | null;
|
|
96
|
-
publishedAt?: string;
|
|
97
|
-
seo?: Seo | null;
|
|
98
|
-
slug?: SanitySlug | null;
|
|
99
|
-
title?: string;
|
|
100
|
-
}
|
|
101
|
-
export interface Seo {
|
|
102
|
-
_type?: string;
|
|
103
|
-
seoTitle?: string;
|
|
104
|
-
seoDescription?: string;
|
|
105
|
-
seoImage?: SanityImage;
|
|
106
|
-
seoKeywords?: string;
|
|
107
|
-
seoSynonyms?: string;
|
|
108
|
-
}
|
|
109
|
-
export interface SanitySlug {
|
|
110
|
-
current?: string;
|
|
111
|
-
_type?: "slug";
|
|
112
|
-
}
|
|
113
|
-
export interface SanityBody {
|
|
114
|
-
_createdAt?: string;
|
|
115
|
-
_id?: string;
|
|
116
|
-
_rev?: string;
|
|
117
|
-
_type?: string;
|
|
118
|
-
_updatedAt?: string;
|
|
119
|
-
}
|
|
120
|
-
export interface Author extends SanityBody {
|
|
121
|
-
link?: string | null;
|
|
122
|
-
bio?: string | null;
|
|
123
|
-
name?: string | null;
|
|
124
|
-
slug?: SanitySlug | null;
|
|
125
|
-
image?: SanityImage | null;
|
|
126
|
-
profile?: {
|
|
127
|
-
alt: string;
|
|
128
|
-
image: SanityImage;
|
|
129
|
-
} | null;
|
|
130
|
-
}
|
|
131
|
-
export interface Category extends SanityBody {
|
|
132
|
-
title?: string;
|
|
133
|
-
}
|
|
134
|
-
export interface Form {
|
|
135
|
-
id?: string | null;
|
|
136
|
-
buttonLabel?: string | null;
|
|
137
|
-
name?: string | null;
|
|
138
|
-
subtitle?: string | null;
|
|
139
|
-
fields?: FormFields[] | null;
|
|
140
|
-
thankYouPage?: ThankYouPage | null;
|
|
141
|
-
}
|
|
142
|
-
export interface FormFields {
|
|
143
|
-
name?: string;
|
|
144
|
-
placeholder?: string;
|
|
145
|
-
pricingType?: string;
|
|
146
|
-
type?: FormTypes;
|
|
147
|
-
_key?: string;
|
|
148
|
-
_type?: string;
|
|
149
|
-
isRequired?: boolean;
|
|
150
|
-
label?: string;
|
|
151
|
-
items?: string[];
|
|
152
|
-
}
|
|
153
|
-
export type FormTypes = "inputText" | "inputEmail" | "inputPassword" | "inputNumber" | "textarea" | "inputFile" | "inputRadio" | "inputCheckbox" | "inputSelect";
|
|
154
|
-
export interface ThankYouPage {
|
|
155
|
-
externalLink?: string | null;
|
|
156
|
-
internalLink?: string | null;
|
|
157
|
-
linkInternal?: any;
|
|
158
|
-
linkTarget?: string;
|
|
159
|
-
linkType?: string;
|
|
160
|
-
type?: string;
|
|
161
|
-
}
|
|
162
|
-
export interface SectionsProps {
|
|
163
|
-
template?: Template;
|
|
164
|
-
data?: Sections;
|
|
165
|
-
}
|
|
166
|
-
export interface Sections extends SanityBody {
|
|
167
|
-
label?: string;
|
|
168
|
-
variant?: string;
|
|
169
|
-
variants?: Variants;
|
|
170
|
-
_key?: string;
|
|
171
|
-
}
|
|
172
|
-
export interface Variants {
|
|
173
|
-
template?: Template;
|
|
174
|
-
multipleMenus?: any;
|
|
175
|
-
arrayOfTitleAndText?: ArrayOfTitleAndText[] | null;
|
|
176
|
-
logo?: Logo | null;
|
|
177
|
-
primaryButton?: LabeledRoute | null;
|
|
178
|
-
secondaryButton?: LabeledRoute | null;
|
|
179
|
-
routes?: LabeledRouteWithKey[] | null;
|
|
180
|
-
menu?: LabeledRouteWithKey[] | null;
|
|
181
|
-
plans?: Plans[] | null;
|
|
182
|
-
formLinks?: LabeledRouteWithKey[] | null;
|
|
183
|
-
portfolios?: Portfolio[] | null;
|
|
184
|
-
portfoliosWithCategories?: PortfoliosWithCategories[] | null;
|
|
185
|
-
signInLink?: LabeledRoute | null;
|
|
186
|
-
signinLink?: LabeledRoute | null;
|
|
187
|
-
tags?: string[] | null;
|
|
188
|
-
posts?: BlogPost[] | null;
|
|
189
|
-
form?: Form | null;
|
|
190
|
-
collections?: Collection | null;
|
|
191
|
-
products?: CollectionProduct | null;
|
|
192
|
-
allProducts?: Collection[];
|
|
193
|
-
subtitle?: string | null;
|
|
194
|
-
caption?: string | null;
|
|
195
|
-
title?: string | null;
|
|
196
|
-
plainText?: string | null;
|
|
197
|
-
contactDescription?: string | null;
|
|
198
|
-
officeInformation?: string | null;
|
|
199
|
-
contactEmail?: string | null;
|
|
200
|
-
contactNumber?: string | null;
|
|
201
|
-
socialLinks?: SocialLink[] | null;
|
|
202
|
-
block?: any;
|
|
203
|
-
heading?: string | null;
|
|
204
|
-
acceptButtonLabel?: string | null;
|
|
205
|
-
declineButtonLabel?: string | null;
|
|
206
|
-
faqsWithCategories?: FaqsWithCategory[] | null;
|
|
207
|
-
faqs?: AskedQuestion[] | null;
|
|
208
|
-
arrayOfImageTitleAndText?: ArrayOfImageTitleAndText[] | null;
|
|
209
|
-
description?: string | null;
|
|
210
|
-
featuredItems?: FeaturedItem[] | null;
|
|
211
|
-
images?: Images[] | null;
|
|
212
|
-
contactDetails?: ContactDetails[] | null;
|
|
213
|
-
copyright?: string | null;
|
|
214
|
-
mainImage?: MainImage | null;
|
|
215
|
-
youtubeLink?: string | null;
|
|
216
|
-
banner?: any;
|
|
217
|
-
stats?: StatItems[] | null;
|
|
218
|
-
teams?: Team[] | null;
|
|
219
|
-
testimonials?: Testimonial[] | null;
|
|
220
|
-
selectStripeAccount?: string;
|
|
221
|
-
annualBilling?: string;
|
|
222
|
-
monthlyBilling?: string;
|
|
223
|
-
productDetails?: ProductDetail[];
|
|
224
|
-
btnLabel?: string;
|
|
225
|
-
selectAccount?: string;
|
|
226
|
-
hashtags?: string[];
|
|
227
|
-
numberOfPosts?: number;
|
|
228
|
-
text?: string;
|
|
229
|
-
button?: LabeledRoute;
|
|
230
|
-
features?: string[];
|
|
231
|
-
config: {
|
|
232
|
-
enableAnalytics: boolean;
|
|
233
|
-
cookiePolicy?: {
|
|
234
|
-
siteName: string;
|
|
235
|
-
cookiePolicyPage?: any;
|
|
236
|
-
};
|
|
237
|
-
consentModalPosition?: string;
|
|
238
|
-
};
|
|
239
|
-
contactLink?: LabeledRoute;
|
|
240
|
-
}
|
|
241
|
-
export interface Template {
|
|
242
|
-
bg?: string;
|
|
243
|
-
color?: string;
|
|
244
|
-
}
|
|
245
|
-
export type Plans = {
|
|
246
|
-
_key?: string | null;
|
|
247
|
-
_type?: "planItems" | null;
|
|
248
|
-
checkoutButtonName?: string | null;
|
|
249
|
-
description?: string | null;
|
|
250
|
-
monthlyPrice?: string | null;
|
|
251
|
-
planType?: string | null;
|
|
252
|
-
yearlyPrice?: string | null;
|
|
253
|
-
planIncludes?: string[] | null;
|
|
254
|
-
primaryButton?: LabeledRoute | null;
|
|
255
|
-
} & Record<string, string>;
|
|
256
|
-
export interface Portfolio {
|
|
257
|
-
dateAdded?: string | null;
|
|
258
|
-
mainImage?: MainImage | null;
|
|
259
|
-
primaryButton?: LabeledRoute | null;
|
|
260
|
-
title?: string | null;
|
|
261
|
-
_key?: string | null;
|
|
262
|
-
_type?: string | null;
|
|
263
|
-
}
|
|
264
|
-
export interface PortfoliosWithCategories {
|
|
265
|
-
category?: string | null;
|
|
266
|
-
content?: Content[] | null;
|
|
267
|
-
primaryButton?: LabeledRoute | null;
|
|
268
|
-
_key?: string | null;
|
|
269
|
-
_type?: string | null;
|
|
270
|
-
}
|
|
271
|
-
interface Content extends Portfolio {
|
|
272
|
-
description?: string | null;
|
|
273
|
-
subtitle?: string | null;
|
|
274
|
-
}
|
|
275
|
-
export interface Collection extends SanityBody {
|
|
276
|
-
collectionInfoVariant?: {
|
|
277
|
-
variant?: string;
|
|
278
|
-
} | null;
|
|
279
|
-
name?: string | null;
|
|
280
|
-
products?: CollectionProduct[] | null;
|
|
281
|
-
sections?: any;
|
|
282
|
-
seo?: Seo | null;
|
|
283
|
-
slug?: SanitySlug | null;
|
|
284
|
-
}
|
|
285
|
-
export interface CollectionProduct extends SanityBody {
|
|
286
|
-
compareToPrice?: number | null;
|
|
287
|
-
description?: string | null;
|
|
288
|
-
ecwidProductId?: number | null;
|
|
289
|
-
name?: string | null;
|
|
290
|
-
price?: number | null;
|
|
291
|
-
productInfo?: ProductInfo | null;
|
|
292
|
-
productInfoVariant?: {
|
|
293
|
-
variant?: string;
|
|
294
|
-
} | null;
|
|
295
|
-
sections?: any;
|
|
296
|
-
seo?: Seo | null;
|
|
297
|
-
slug?: SanitySlug | null;
|
|
298
|
-
}
|
|
299
|
-
interface ProductInfo {
|
|
300
|
-
btnLabel?: string | null;
|
|
301
|
-
images?: ProductInfoImage[] | null;
|
|
302
|
-
productDetails?: ProductDetail[] | null;
|
|
303
|
-
socialLinks?: SocialLink[] | null;
|
|
304
|
-
subtitle?: string | null;
|
|
305
|
-
}
|
|
306
|
-
export interface ProductDetail {
|
|
307
|
-
blockContent?: any;
|
|
308
|
-
contentType?: string;
|
|
309
|
-
tabName?: string;
|
|
310
|
-
_key?: string;
|
|
311
|
-
[key: string]: any;
|
|
312
|
-
}
|
|
313
|
-
interface ProductInfoImage {
|
|
314
|
-
alt?: string | null;
|
|
315
|
-
_key: string;
|
|
316
|
-
_type: string;
|
|
317
|
-
image?: SanityImage | null;
|
|
318
|
-
}
|
|
319
|
-
export interface FaqsWithCategory {
|
|
320
|
-
askedQuestions?: AskedQuestion[] | null;
|
|
321
|
-
category?: string | null;
|
|
322
|
-
_key?: string;
|
|
323
|
-
_type?: string;
|
|
324
|
-
}
|
|
325
|
-
export interface AskedQuestion {
|
|
326
|
-
answer?: string | null;
|
|
327
|
-
question?: string | null;
|
|
328
|
-
hidden?: boolean;
|
|
329
|
-
_key?: string;
|
|
330
|
-
_type?: string;
|
|
331
|
-
}
|
|
332
|
-
export interface Team {
|
|
333
|
-
jobTitle?: string;
|
|
334
|
-
mainImage?: MainImage;
|
|
335
|
-
name?: string;
|
|
336
|
-
plainText?: string;
|
|
337
|
-
_key?: string;
|
|
338
|
-
_type?: string;
|
|
339
|
-
}
|
|
340
|
-
export interface Testimonial {
|
|
341
|
-
jobTitle?: string;
|
|
342
|
-
mainImage?: MainImage;
|
|
343
|
-
name?: string;
|
|
344
|
-
rating?: string;
|
|
345
|
-
testimony?: string;
|
|
346
|
-
_key?: string;
|
|
347
|
-
_type?: string;
|
|
348
|
-
}
|
|
349
|
-
export declare interface Reference {
|
|
350
|
-
_type: string;
|
|
351
|
-
_ref: string;
|
|
352
|
-
_key?: string;
|
|
353
|
-
_weak?: boolean;
|
|
354
|
-
_strengthenOnPublish?: {
|
|
355
|
-
type: string;
|
|
356
|
-
weak?: boolean;
|
|
357
|
-
template?: {
|
|
358
|
-
id: string;
|
|
359
|
-
params: Record<string, string | number | boolean>;
|
|
360
|
-
};
|
|
361
|
-
};
|
|
362
|
-
}
|
|
363
|
-
export {};
|
package/dist/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var l=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var s=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 s(t))!o.call(n,e)&&e!==r&&l(n,e,{get:()=>t[e],enumerable:!(i=a(t,e))||i.enumerable});return n};var u=n=>g(l({},"__esModule",{value:!0}),n);var c={};module.exports=u(c);
|