@simmalugnt-se/payload-consent 0.0.0-stage → 0.1.0

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.
Files changed (44) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/LICENSE +21 -0
  3. package/README.md +238 -2
  4. package/dist/admin/ScanPanel.d.ts +3 -0
  5. package/dist/admin/ScanPanel.js +232 -0
  6. package/dist/block.d.ts +6 -0
  7. package/dist/block.js +27 -0
  8. package/dist/defaults.d.ts +56 -0
  9. package/dist/defaults.js +137 -0
  10. package/dist/evaluate.d.ts +106 -0
  11. package/dist/evaluate.js +101 -0
  12. package/dist/evidence.d.ts +12 -0
  13. package/dist/evidence.js +113 -0
  14. package/dist/exports/admin.d.ts +1 -0
  15. package/dist/exports/admin.js +1 -0
  16. package/dist/exports/client.d.ts +37 -0
  17. package/dist/exports/client.js +177 -0
  18. package/dist/exports/rsc.d.ts +1 -0
  19. package/dist/exports/rsc.js +1 -0
  20. package/dist/global.d.ts +14 -0
  21. package/dist/global.js +272 -0
  22. package/dist/index.d.ts +13 -0
  23. package/dist/index.js +75 -0
  24. package/dist/integrations.d.ts +40 -0
  25. package/dist/integrations.js +32 -0
  26. package/dist/notify.d.ts +15 -0
  27. package/dist/notify.js +86 -0
  28. package/dist/records.d.ts +15 -0
  29. package/dist/records.js +197 -0
  30. package/dist/scans.d.ts +37 -0
  31. package/dist/scans.js +423 -0
  32. package/dist/schedule.d.ts +17 -0
  33. package/dist/schedule.js +18 -0
  34. package/dist/services.d.ts +8 -0
  35. package/dist/services.js +257 -0
  36. package/dist/site-config.d.ts +128 -0
  37. package/dist/site-config.js +204 -0
  38. package/dist/styles/admin.css +144 -0
  39. package/dist/styles/consent.css +296 -0
  40. package/dist/types.d.ts +65 -0
  41. package/dist/types.js +17 -0
  42. package/dist/widget/ConsentScanWidget.d.ts +8 -0
  43. package/dist/widget/ConsentScanWidget.js +99 -0
  44. package/package.json +76 -3
@@ -0,0 +1,137 @@
1
+ /**
2
+ * Suggested banner texts per language, prefilled in the Cookies global. They follow
3
+ * `@simmalugnt-se/consent-ui` 0.2.1; a language without its own texts gets English.
4
+ */
5
+ export const OPTIONAL_CATEGORIES = [
6
+ "functionality",
7
+ "experience",
8
+ "measurement",
9
+ "marketing",
10
+ ];
11
+ export const CATEGORIES = ["necessary", ...OPTIONAL_CATEGORIES];
12
+ const sv = {
13
+ bannerTitle: "Vi använder cookies",
14
+ bannerDescription: "Vi använder nödvändig lagring för att webbplatsen ska fungera. Du väljer om du också vill tillåta andra kategorier.",
15
+ bannerDescriptionNecessaryOnly: "Vi använder endast nödvändig lagring för att webbplatsen ska fungera och komma ihåg dina cookieinställningar.",
16
+ buttons: {
17
+ acceptAll: "Tillåt alla",
18
+ acceptNecessaryOnly: "Okej",
19
+ rejectAll: "Avvisa valfria",
20
+ customize: "Inställningar",
21
+ save: "Spara val",
22
+ close: "Stäng",
23
+ },
24
+ dialog: {
25
+ title: "Cookieinställningar",
26
+ description: "Du kan välja vilka kategorier du tillåter och ändra ditt val när som helst.",
27
+ descriptionNecessaryOnly: "Webbplatsen använder endast nödvändig lagring.",
28
+ },
29
+ categoryTexts: {
30
+ necessary: {
31
+ title: "Nödvändiga",
32
+ description: "Behövs för webbplatsens funktioner och för att spara dina cookieinställningar.",
33
+ },
34
+ functionality: {
35
+ title: "Funktionalitet",
36
+ description: "Tillåter valfria funktioner från externa tjänster.",
37
+ },
38
+ experience: {
39
+ title: "Upplevelse",
40
+ description: "Tillåter anpassningar som förbättrar hur webbplatsen fungerar för dig.",
41
+ },
42
+ measurement: {
43
+ title: "Statistik",
44
+ description: "Tillåter mätning av hur webbplatsen används.",
45
+ },
46
+ marketing: {
47
+ title: "Marknadsföring",
48
+ description: "Tillåter mätning och innehåll för marknadsföring.",
49
+ },
50
+ },
51
+ embeds: {
52
+ title: "Innehållet kräver att du tillåter {category}.",
53
+ button: "Tillåt {category}",
54
+ },
55
+ table: {
56
+ service: "Tjänst",
57
+ provider: "Leverantör",
58
+ purpose: "Syfte",
59
+ name: "Namn",
60
+ type: "Typ",
61
+ duration: "Sparas i",
62
+ thirdParty: "Tredje part",
63
+ yes: "Ja",
64
+ no: "Nej",
65
+ policy: "Leverantörens integritetspolicy",
66
+ consentService: "Cookieinställningar",
67
+ consentPurpose: "Sparar ditt val i cookiebannern.",
68
+ consentDuration: "1 år",
69
+ noServices: "Inga tjänster i den här kategorin.",
70
+ },
71
+ };
72
+ const en = {
73
+ bannerTitle: "We use cookies",
74
+ bannerDescription: "We use necessary storage for the website to work. You choose whether to allow other categories.",
75
+ bannerDescriptionNecessaryOnly: "We only use necessary storage for the website to work and to remember your cookie settings.",
76
+ buttons: {
77
+ acceptAll: "Allow all",
78
+ acceptNecessaryOnly: "Okay",
79
+ rejectAll: "Reject optional",
80
+ customize: "Settings",
81
+ save: "Save choices",
82
+ close: "Close",
83
+ },
84
+ dialog: {
85
+ title: "Cookie settings",
86
+ description: "Choose which categories to allow. You can change your choice at any time.",
87
+ descriptionNecessaryOnly: "The website only uses necessary storage.",
88
+ },
89
+ categoryTexts: {
90
+ necessary: {
91
+ title: "Necessary",
92
+ description: "Required for website functions and to save your cookie settings.",
93
+ },
94
+ functionality: {
95
+ title: "Functionality",
96
+ description: "Allows optional functions provided by external services.",
97
+ },
98
+ experience: {
99
+ title: "Experience",
100
+ description: "Allows preferences that improve how the website works for you.",
101
+ },
102
+ measurement: {
103
+ title: "Statistics",
104
+ description: "Allows measurement of how the website is used.",
105
+ },
106
+ marketing: {
107
+ title: "Marketing",
108
+ description: "Allows measurement and content used for marketing.",
109
+ },
110
+ },
111
+ embeds: {
112
+ title: "This content needs you to allow {category}.",
113
+ button: "Allow {category}",
114
+ },
115
+ table: {
116
+ service: "Service",
117
+ provider: "Provider",
118
+ purpose: "Purpose",
119
+ name: "Name",
120
+ type: "Type",
121
+ duration: "Kept for",
122
+ thirdParty: "Third party",
123
+ yes: "Yes",
124
+ no: "No",
125
+ policy: "Provider's privacy policy",
126
+ consentService: "Cookie settings",
127
+ consentPurpose: "Remembers your choice in the cookie banner.",
128
+ consentDuration: "1 year",
129
+ noServices: "No services in this category.",
130
+ },
131
+ };
132
+ const texts = { sv, en };
133
+ /** The suggested texts for a locale code such as `sv` or `sv-SE`; English when there are none. */
134
+ export function defaultTexts(locale) {
135
+ const language = locale?.toLowerCase().split("-")[0] ?? "en";
136
+ return texts[language] ?? en;
137
+ }
@@ -0,0 +1,106 @@
1
+ import type { Category } from "./defaults.ts";
2
+ import type { ServiceDocument } from "./site-config.ts";
3
+ /** A consent state the scanner runs, and the categories the visitor allowed in it. */
4
+ export type ScanState = {
5
+ id: string;
6
+ allowed: Category[];
7
+ cookies: {
8
+ name: string;
9
+ value: string;
10
+ }[];
11
+ };
12
+ /** A cookie classification the scanner suggests, from the Open Cookie Database. */
13
+ export type Suggestion = {
14
+ platform?: string;
15
+ category?: Category;
16
+ description?: string;
17
+ retention?: string;
18
+ provider?: string;
19
+ privacyUrl?: string;
20
+ /** Set when the database names a family of cookies by prefix, such as `_ga_*`. */
21
+ pattern?: string;
22
+ };
23
+ /** What the scanner posts per state; see consent-scanner's README. */
24
+ export type ScanResultState = {
25
+ id: string;
26
+ visited: string[];
27
+ cookies: {
28
+ name: string;
29
+ domain: string;
30
+ firstParty: boolean;
31
+ session: boolean;
32
+ expiresDays?: number;
33
+ pages: string[];
34
+ suggestion?: Suggestion;
35
+ }[];
36
+ storage: {
37
+ name: string;
38
+ origin: string;
39
+ firstParty: boolean;
40
+ pages: string[];
41
+ suggestion?: Suggestion;
42
+ }[];
43
+ hosts: {
44
+ host: string;
45
+ firstParty: boolean;
46
+ requests: number;
47
+ }[];
48
+ beacons: {
49
+ host: string;
50
+ occurrences: number;
51
+ lists: string[];
52
+ }[];
53
+ errors: string[];
54
+ };
55
+ export type FindingKind = "cookie" | "localStorage" | "host";
56
+ /**
57
+ * `ok`: explained and only where its category is allowed. `action`: a service seen in a state
58
+ * that does not allow its category. `unknown`: nothing in the services explains it.
59
+ */
60
+ export type FindingStatus = "ok" | "action" | "unknown";
61
+ export type Finding = {
62
+ key: string;
63
+ kind: FindingKind;
64
+ name: string;
65
+ /** The cookie's domain, the storage's origin, or empty for a host. */
66
+ where: string;
67
+ firstParty: boolean;
68
+ /** The states it was seen in. */
69
+ states: string[];
70
+ /** States it was seen in although its category was not allowed there. */
71
+ withoutConsent: string[];
72
+ status: FindingStatus;
73
+ service?: string;
74
+ category?: Category;
75
+ /** Seen before any choice, or after rejecting: a privacy problem if it is not necessary. */
76
+ beforeConsent: boolean;
77
+ isNew: boolean;
78
+ expiresDays?: number;
79
+ session?: boolean;
80
+ /** A page it was seen on, to reproduce it. */
81
+ page?: string;
82
+ suggestion?: Suggestion;
83
+ /** For hosts: the tracker lists that flagged it (EasyPrivacy and others). */
84
+ trackerLists?: string[];
85
+ };
86
+ export type ScanSummary = Record<FindingStatus, number> & {
87
+ new: number;
88
+ };
89
+ /** `_ga_*` matches `_ga_ABC`; anything else must be equal. */
90
+ export declare function matchesName(pattern: string, name: string): boolean;
91
+ /** `googletagmanager.com` matches itself and `www.googletagmanager.com`. */
92
+ export declare function matchesHost(pattern: string, host: string): boolean;
93
+ /**
94
+ * Turns a scan's states into findings judged against the services: every cookie, localStorage key
95
+ * and third-party host, once, with the states it was seen in. First-party hosts are the site itself
96
+ * and are left out.
97
+ */
98
+ export declare function evaluateScan({ states, results, services, previousKeys, }: {
99
+ states: ScanState[];
100
+ results: ScanResultState[];
101
+ services: ServiceDocument[];
102
+ previousKeys?: string[];
103
+ }): {
104
+ findings: Finding[];
105
+ summary: ScanSummary;
106
+ };
@@ -0,0 +1,101 @@
1
+ /** The banner's own storage; always necessary. */
2
+ const OWN_STORAGE = /^c15t(-policy|-storage-test-key)?$/;
3
+ /** `_ga_*` matches `_ga_ABC`; anything else must be equal. */
4
+ export function matchesName(pattern, name) {
5
+ return pattern.endsWith("*") ? name.startsWith(pattern.slice(0, -1)) : pattern === name;
6
+ }
7
+ /** `googletagmanager.com` matches itself and `www.googletagmanager.com`. */
8
+ export function matchesHost(pattern, host) {
9
+ const clean = pattern.trim().toLowerCase().replace(/^\*\./, "");
10
+ return host === clean || host.endsWith(`.${clean}`);
11
+ }
12
+ function findService(services, kind, name) {
13
+ return services.find((service) => kind === "host"
14
+ ? service.hosts?.some((entry) => entry.host && matchesHost(entry.host, name))
15
+ : service.storage?.some((entry) => entry.name && (entry.type ?? "cookie") === kind && matchesName(entry.name, name)));
16
+ }
17
+ /**
18
+ * Turns a scan's states into findings judged against the services: every cookie, localStorage key
19
+ * and third-party host, once, with the states it was seen in. First-party hosts are the site itself
20
+ * and are left out.
21
+ */
22
+ export function evaluateScan({ states, results, services, previousKeys = [], }) {
23
+ const previous = new Set(previousKeys);
24
+ const allowedIn = new Map(states.map((state) => [state.id, new Set(state.allowed)]));
25
+ const necessaryOnly = new Set(states.filter((state) => state.allowed.every((c) => c === "necessary")).map((s) => s.id));
26
+ const found = new Map();
27
+ function add(kind, name, where, stateId, extra) {
28
+ const key = `${kind}:${where}:${name}`;
29
+ let finding = found.get(key);
30
+ if (!finding) {
31
+ finding = {
32
+ key,
33
+ kind,
34
+ name,
35
+ where,
36
+ firstParty: extra.firstParty ?? false,
37
+ states: [],
38
+ withoutConsent: [],
39
+ status: "unknown",
40
+ beforeConsent: false,
41
+ isNew: previousKeys.length > 0 && !previous.has(key),
42
+ ...extra,
43
+ };
44
+ found.set(key, finding);
45
+ }
46
+ if (!finding.states.includes(stateId))
47
+ finding.states.push(stateId);
48
+ if (necessaryOnly.has(stateId))
49
+ finding.beforeConsent = true;
50
+ finding.suggestion ??= extra.suggestion;
51
+ finding.page ??= extra.page;
52
+ }
53
+ for (const state of results) {
54
+ for (const cookie of state.cookies)
55
+ add("cookie", cookie.name, cookie.domain, state.id, {
56
+ firstParty: cookie.firstParty,
57
+ expiresDays: cookie.expiresDays,
58
+ session: cookie.session,
59
+ page: cookie.pages[0],
60
+ suggestion: cookie.suggestion,
61
+ });
62
+ for (const entry of state.storage)
63
+ add("localStorage", entry.name, entry.origin, state.id, {
64
+ firstParty: entry.firstParty,
65
+ page: entry.pages[0],
66
+ suggestion: entry.suggestion,
67
+ });
68
+ const lists = new Map(state.beacons.map((beacon) => [beacon.host, beacon.lists]));
69
+ for (const host of state.hosts)
70
+ if (!host.firstParty)
71
+ add("host", host.host, "", state.id, { trackerLists: lists.get(host.host) });
72
+ }
73
+ for (const finding of found.values()) {
74
+ if (finding.kind !== "host" && OWN_STORAGE.test(finding.name)) {
75
+ finding.status = "ok";
76
+ finding.category = "necessary";
77
+ finding.service = "c15t";
78
+ continue;
79
+ }
80
+ const service = findService(services, finding.kind, finding.name);
81
+ if (!service?.category)
82
+ continue;
83
+ const category = service.category;
84
+ finding.service = service.name ?? undefined;
85
+ finding.category = category;
86
+ finding.withoutConsent = finding.states.filter((stateId) => category !== "necessary" && !allowedIn.get(stateId)?.has(category));
87
+ finding.status = finding.withoutConsent.length ? "action" : "ok";
88
+ }
89
+ const order = { action: 0, unknown: 1, ok: 2 };
90
+ const findings = [...found.values()].sort((a, b) => order[a.status] - order[b.status] ||
91
+ Number(b.beforeConsent) - Number(a.beforeConsent) ||
92
+ a.kind.localeCompare(b.kind) ||
93
+ a.name.localeCompare(b.name));
94
+ const summary = { ok: 0, action: 0, unknown: 0, new: 0 };
95
+ for (const finding of findings) {
96
+ summary[finding.status] += 1;
97
+ if (finding.isNew)
98
+ summary.new += 1;
99
+ }
100
+ return { findings, summary };
101
+ }
@@ -0,0 +1,12 @@
1
+ import type { CollectionConfig, Endpoint, Payload, PayloadRequest } from "payload";
2
+ import { type ConsentPluginOptions } from "./types.ts";
3
+ /**
4
+ * WEC's evidence per scan: its PDF report and the network traffic (HAR, gzipped) for each consent
5
+ * state. On a host without a persistent disk, such as Vercel, add this collection to the storage
6
+ * adapter.
7
+ */
8
+ export declare function evidenceCollection(options: ConsentPluginOptions): CollectionConfig;
9
+ /** Deletes the evidence of all but the latest `keep` finished scans, and any without a scan. */
10
+ export declare function pruneEvidence(payload: Payload, keep: number): Promise<void>;
11
+ /** The scanner posts each evidence file here after the result, one file per request. */
12
+ export declare function evidenceEndpoint(options: ConsentPluginOptions, checkToken: (req: PayloadRequest) => boolean): Endpoint;
@@ -0,0 +1,113 @@
1
+ import { CONSENT_SCAN_EVIDENCE, CONSENT_SCANS, DEFAULT_KEEP_EVIDENCE, } from "./types.js";
2
+ /** What the scanner sends: `<state>.pdf`, `<state>-2.pdf` for a later batch, `<state>.har.gz`. */
3
+ const FILE_NAME = /^([a-z0-9-]{1,40}?)(?:-(\d+))?\.(pdf|har\.gz)$/;
4
+ const signedIn = ({ req }) => Boolean(req.user);
5
+ /**
6
+ * WEC's evidence per scan: its PDF report and the network traffic (HAR, gzipped) for each consent
7
+ * state. On a host without a persistent disk, such as Vercel, add this collection to the storage
8
+ * adapter.
9
+ */
10
+ export function evidenceCollection(options) {
11
+ return {
12
+ slug: CONSENT_SCAN_EVIDENCE,
13
+ labels: {
14
+ singular: { en: "Scan evidence", sv: "Skanningsunderlag" },
15
+ plural: { en: "Scan evidence", sv: "Skanningsunderlag" },
16
+ },
17
+ admin: {
18
+ useAsTitle: "filename",
19
+ group: options.group ?? { en: "Settings", sv: "Inställningar" },
20
+ defaultColumns: ["filename", "scan", "state", "kind", "createdAt"],
21
+ },
22
+ access: { read: signedIn, create: () => false, update: () => false, delete: signedIn },
23
+ upload: { mimeTypes: ["application/pdf", "application/gzip", "application/x-gzip"] },
24
+ timestamps: true,
25
+ fields: [
26
+ {
27
+ name: "scan",
28
+ type: "relationship",
29
+ relationTo: CONSENT_SCANS,
30
+ index: true,
31
+ label: { en: "Scan", sv: "Skanning" },
32
+ },
33
+ { name: "state", type: "text", label: { en: "State", sv: "Läge" } },
34
+ {
35
+ name: "kind",
36
+ type: "select",
37
+ label: { en: "Kind", sv: "Typ" },
38
+ options: [
39
+ { value: "report", label: { en: "Report (PDF)", sv: "Rapport (PDF)" } },
40
+ { value: "har", label: { en: "Network traffic (HAR)", sv: "Nätverkstrafik (HAR)" } },
41
+ ],
42
+ },
43
+ ],
44
+ };
45
+ }
46
+ /** Deletes the evidence of all but the latest `keep` finished scans, and any without a scan. */
47
+ export async function pruneEvidence(payload, keep) {
48
+ const { docs } = await payload.find({
49
+ collection: CONSENT_SCANS,
50
+ where: { status: { equals: "done" } },
51
+ sort: "-createdAt",
52
+ limit: keep,
53
+ depth: 0,
54
+ overrideAccess: true,
55
+ });
56
+ const kept = docs.map((doc) => doc.id);
57
+ await payload.delete({
58
+ collection: CONSENT_SCAN_EVIDENCE,
59
+ // Evidence whose scan was deleted has no scan left.
60
+ where: kept.length
61
+ ? { or: [{ scan: { not_in: kept } }, { scan: { exists: false } }] }
62
+ : { id: { exists: true } },
63
+ overrideAccess: true,
64
+ });
65
+ }
66
+ /** The scanner posts each evidence file here after the result, one file per request. */
67
+ export function evidenceEndpoint(options, checkToken) {
68
+ return {
69
+ path: "/evidence",
70
+ method: "post",
71
+ handler: async (req) => {
72
+ if (!checkToken(req))
73
+ return Response.json({ error: "Unknown token" }, { status: 401 });
74
+ const scanId = typeof req.query?.scan === "string" ? req.query.scan : undefined;
75
+ const name = typeof req.query?.name === "string" ? req.query.name : "";
76
+ const match = FILE_NAME.exec(name);
77
+ if (!scanId || !match)
78
+ return Response.json({ error: "Expected ?scan=<id>&name=<state>.pdf|.har.gz" }, { status: 400 });
79
+ const { docs } = await req.payload.find({
80
+ collection: CONSENT_SCANS,
81
+ where: { scanId: { equals: scanId } },
82
+ limit: 1,
83
+ depth: 0,
84
+ overrideAccess: true,
85
+ req,
86
+ });
87
+ const scan = docs[0];
88
+ if (!scan)
89
+ return Response.json({ error: "Unknown scan" }, { status: 404 });
90
+ if (scan.status !== "done")
91
+ return Response.json({ error: "The scan has no result yet" }, { status: 409 });
92
+ const data = Buffer.from((await req.arrayBuffer?.()) ?? new ArrayBuffer(0));
93
+ if (!data.length)
94
+ return Response.json({ error: "Empty file" }, { status: 400 });
95
+ const [, state, , extension] = match;
96
+ const pdf = extension === "pdf";
97
+ const doc = await req.payload.create({
98
+ collection: CONSENT_SCAN_EVIDENCE,
99
+ data: { scan: scan.id, state, kind: pdf ? "report" : "har" },
100
+ file: {
101
+ data,
102
+ name: `${scanId.slice(0, 8)}-${name}`,
103
+ mimetype: pdf ? "application/pdf" : "application/gzip",
104
+ size: data.length,
105
+ },
106
+ overrideAccess: true,
107
+ req,
108
+ });
109
+ await pruneEvidence(req.payload, options.scanner?.keepEvidence ?? DEFAULT_KEEP_EVIDENCE);
110
+ return Response.json({ id: doc.id }, { status: 201 });
111
+ },
112
+ };
113
+ }
@@ -0,0 +1 @@
1
+ export { ScanPanel } from "../admin/ScanPanel.tsx";
@@ -0,0 +1 @@
1
+ export { ScanPanel } from "../admin/ScanPanel.js";
@@ -0,0 +1,37 @@
1
+ import { type ConsentManagerOptions } from "@c15t/react";
2
+ import { type ReactNode } from "react";
3
+ import type { Category } from "../defaults.ts";
4
+ import type { ConsentConfig, CookieTableData } from "../site-config.ts";
5
+ /** A button that opens the settings dialog, for the site's footer. Render it inside `ConsentProvider`. */
6
+ export { ConsentDialogLink as ConsentSettingsLink } from "@c15t/react";
7
+ type Script = NonNullable<ConsentManagerOptions["scripts"]>[number];
8
+ /**
9
+ * The services the plugin loads, each in its service's category. In basic consent mode nothing
10
+ * loads before consent, including tags c15t would otherwise load at once in a denied state.
11
+ */
12
+ export declare function integrationScripts(config: ConsentConfig): Script[];
13
+ type Props = {
14
+ /** From `getConsentConfig` on the server. */
15
+ config: ConsentConfig;
16
+ /** More c15t script integrations, created on the client, besides the services the plugin loads. */
17
+ scripts?: ConsentManagerOptions["scripts"];
18
+ children: ReactNode;
19
+ };
20
+ /** The banner, the settings dialog and c15t's consent state around the site. */
21
+ export declare function ConsentProvider({ config, scripts, children }: Props): import("react").JSX.Element;
22
+ type FrameProps = {
23
+ /** The category of the service the content comes from. */
24
+ category: Category;
25
+ children: ReactNode;
26
+ className?: string;
27
+ };
28
+ /**
29
+ * Embedded content, such as a video or a map, that is not mounted until the visitor allows its
30
+ * category. Until then a placeholder offers to allow it. Without the banner, the content shows.
31
+ */
32
+ export declare function ConsentFrame({ category, children, className }: FrameProps): import("react").JSX.Element;
33
+ /** The cookie services by category, from `getCookieTable`, for the site's cookie page. */
34
+ export declare function CookieTable({ data, heading }: {
35
+ data: CookieTableData;
36
+ heading?: string | null;
37
+ }): import("react").JSX.Element;