create-feedbax 0.1.0 → 0.2.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.
- package/LICENSE +201 -21
- package/README.md +11 -1
- package/dist/cli.js +1261 -26
- package/dist/index.js +1402 -160
- package/package.json +40 -14
- package/template/.feedbax-template.sha256 +1 -0
- package/template/.gitignore.template +6 -0
- package/template/.npmignore.template +5 -0
- package/template/.prettierignore.template +4 -0
- package/template/LICENSE +201 -0
- package/template/components.json +25 -0
- package/template/eslint.config.mjs +25 -0
- package/template/package.json +70 -14
- package/template/public/feedbax-mark.svg +4 -0
- package/template/public/robots.txt +3 -0
- package/template/src/authorized-draft-post.test.tsx +212 -0
- package/template/src/authorized-draft-post.tsx +204 -0
- package/template/src/authorized-draft-query.ts +74 -0
- package/template/src/browser-post-state.test.ts +120 -0
- package/template/src/browser-post-state.ts +134 -0
- package/template/src/browser-vote-state.test.ts +14 -0
- package/template/src/browser-vote-state.ts +27 -0
- package/template/src/capability-authorization-error.ts +3 -0
- package/template/src/changelog-page.test.tsx +139 -0
- package/template/src/changelog-page.tsx +219 -0
- package/template/src/changelog-query.ts +13 -0
- package/template/src/changelog-runtime.ts +27 -0
- package/template/src/cloudflare-turnstile.ts +31 -0
- package/template/src/cloudflare-workers-test.ts +3 -0
- package/template/src/cloudflare-workers.d.ts +18 -0
- package/template/src/comment-creation.test.tsx +270 -0
- package/template/src/comment-profile.ts +5 -0
- package/template/src/comment-thread-page.ts +18 -0
- package/template/src/components/command-palette-context.tsx +71 -0
- package/template/src/components/command-palette.tsx +246 -0
- package/template/src/components/create-post-trigger.tsx +44 -0
- package/template/src/components/device-profile-provider.tsx +309 -0
- package/template/src/components/header.tsx +95 -0
- package/template/src/components/loader.tsx +10 -0
- package/template/src/components/profile-menu.tsx +89 -0
- package/template/src/components/ui/components/alert-dialog.tsx +185 -0
- package/template/src/components/ui/components/attachment.tsx +207 -0
- package/template/src/components/ui/components/avatar.tsx +107 -0
- package/template/src/components/ui/components/badge.tsx +52 -0
- package/template/src/components/ui/components/bubble.tsx +128 -0
- package/template/src/components/ui/components/button-group.tsx +87 -0
- package/template/src/components/ui/components/button.tsx +56 -0
- package/template/src/components/ui/components/card.tsx +103 -0
- package/template/src/components/ui/components/checkbox.tsx +26 -0
- package/template/src/components/ui/components/command.tsx +194 -0
- package/template/src/components/ui/components/dialog.tsx +154 -0
- package/template/src/components/ui/components/drawer.tsx +229 -0
- package/template/src/components/ui/components/dropdown-menu.tsx +270 -0
- package/template/src/components/ui/components/empty.tsx +101 -0
- package/template/src/components/ui/components/field.tsx +236 -0
- package/template/src/components/ui/components/input-group.tsx +155 -0
- package/template/src/components/ui/components/input.tsx +20 -0
- package/template/src/components/ui/components/item.tsx +201 -0
- package/template/src/components/ui/components/kbd.tsx +26 -0
- package/template/src/components/ui/components/label.tsx +18 -0
- package/template/src/components/ui/components/marker.tsx +71 -0
- package/template/src/components/ui/components/message-scroller.tsx +128 -0
- package/template/src/components/ui/components/message.tsx +92 -0
- package/template/src/components/ui/components/native-select.tsx +65 -0
- package/template/src/components/ui/components/popover.tsx +88 -0
- package/template/src/components/ui/components/portal-primitives.test.tsx +85 -0
- package/template/src/components/ui/components/radio-group.tsx +36 -0
- package/template/src/components/ui/components/scroll-area.tsx +52 -0
- package/template/src/components/ui/components/secondary-form-actions.test.tsx +23 -0
- package/template/src/components/ui/components/select.tsx +199 -0
- package/template/src/components/ui/components/separator.tsx +23 -0
- package/template/src/components/ui/components/sheet.tsx +135 -0
- package/template/src/components/ui/components/skeleton.tsx +13 -0
- package/template/src/components/ui/components/sonner.tsx +43 -0
- package/template/src/components/ui/components/spinner.tsx +16 -0
- package/template/src/components/ui/components/tabs.tsx +80 -0
- package/template/src/components/ui/components/textarea.tsx +18 -0
- package/template/src/components/ui/components/tooltip.tsx +64 -0
- package/template/src/components/ui/hooks/.gitkeep +0 -0
- package/template/src/components/ui/lib/utils.ts +6 -0
- package/template/src/components/ui/styles/globals.css +151 -0
- package/template/src/create-post-overlay.tsx +82 -0
- package/template/src/draft-post-list.tsx +39 -0
- package/template/src/feedback-cache-invalidation.test.ts +185 -0
- package/template/src/feedback-cache-invalidation.ts +97 -0
- package/template/src/feedback-runtime.ts +38 -0
- package/template/src/feedbax/changelog/index.test.ts +156 -0
- package/template/src/feedbax/changelog/index.ts +206 -0
- package/template/src/feedbax/changelog/notion-changelog.test.ts +395 -0
- package/template/src/feedbax/changelog/notion-changelog.ts +400 -0
- package/template/src/feedbax/config/index.test.ts +111 -0
- package/template/src/feedbax/config/index.ts +271 -0
- package/template/src/feedbax/feedback/feedback-storage.ts +43 -0
- package/template/src/feedbax/feedback/index.test.ts +900 -0
- package/template/src/feedbax/feedback/index.ts +942 -0
- package/template/src/feedbax/feedback/notion-comments.test.ts +171 -0
- package/template/src/feedbax/feedback/notion-comments.ts +231 -0
- package/template/src/feedbax/feedback/notion-data-source.test.ts +364 -0
- package/template/src/feedbax/feedback/notion-data-source.ts +458 -0
- package/template/src/feedbax/feedback/notion-feedback.test.ts +998 -0
- package/template/src/feedbax/feedback/notion-feedback.ts +651 -0
- package/template/src/feedbax/feedback/notion-request.ts +74 -0
- package/template/src/feedbax.test-fixture.ts +64 -0
- package/template/src/feedbax.ts +69 -0
- package/template/src/index.css +2138 -0
- package/template/src/lazy-create-post-overlay.tsx +6 -0
- package/template/src/lazy-post-detail-overlay.tsx +10 -0
- package/template/src/masked-post-link.tsx +27 -0
- package/template/src/overlay-post-detail.test.tsx +130 -0
- package/template/src/overlay-post-detail.tsx +92 -0
- package/template/src/portal-comments.test.ts +375 -0
- package/template/src/portal-comments.ts +384 -0
- package/template/src/portal-features.test.tsx +150 -0
- package/template/src/portal-feedback-form.tsx +515 -0
- package/template/src/portal-feedback-runtime.test.ts +32 -0
- package/template/src/portal-feedback-runtime.ts +55 -0
- package/template/src/portal-feedback-server-function.ts +93 -0
- package/template/src/portal-feedback-submission.test.ts +307 -0
- package/template/src/portal-feedback-submission.ts +214 -0
- package/template/src/portal-head.ts +58 -0
- package/template/src/portal-server-entry.ts +64 -0
- package/template/src/portal-voting.test.ts +106 -0
- package/template/src/portal-voting.ts +149 -0
- package/template/src/post-badges.tsx +27 -0
- package/template/src/post-creation-flow.test.tsx +230 -0
- package/template/src/post-creation-flow.tsx +88 -0
- package/template/src/post-detail-overlay.test.tsx +114 -0
- package/template/src/post-detail-overlay.tsx +67 -0
- package/template/src/post-feed-controls.test.tsx +239 -0
- package/template/src/post-feed-controls.tsx +298 -0
- package/template/src/post-presentation.ts +37 -0
- package/template/src/post-queries.test.ts +158 -0
- package/template/src/post-queries.ts +26 -0
- package/template/src/post-results.tsx +165 -0
- package/template/src/public-cache-policy.test.ts +141 -0
- package/template/src/public-cache-policy.ts +119 -0
- package/template/src/public-cache-tags.ts +7 -0
- package/template/src/public-changelog-page.ts +15 -0
- package/template/src/public-changelog-server-function.ts +27 -0
- package/template/src/public-date.ts +11 -0
- package/template/src/public-failure-state.test.tsx +69 -0
- package/template/src/public-feedback-index.tsx +124 -0
- package/template/src/public-feedback-page.test.tsx +290 -0
- package/template/src/public-feedback-page.ts +75 -0
- package/template/src/public-feedback-server-function.ts +22 -0
- package/template/src/public-portal-error.tsx +27 -0
- package/template/src/public-post-detail.tsx +682 -0
- package/template/src/public-post-page.test.tsx +173 -0
- package/template/src/public-post-page.ts +15 -0
- package/template/src/public-post-route.test.tsx +214 -0
- package/template/src/public-post-route.tsx +171 -0
- package/template/src/public-post-server-function.ts +48 -0
- package/template/src/public-post-unavailable.tsx +10 -0
- package/template/src/public-roadmap-page.test.tsx +139 -0
- package/template/src/public-roadmap-page.ts +24 -0
- package/template/src/public-roadmap-route.test.tsx +218 -0
- package/template/src/public-roadmap-route.tsx +50 -0
- package/template/src/public-roadmap-server-function.ts +44 -0
- package/template/src/public-roadmap-view.tsx +378 -0
- package/template/src/public-shell.test.tsx +518 -0
- package/template/src/roadmap-query.ts +21 -0
- package/template/src/root-branding.test.ts +53 -0
- package/template/src/routeTree.gen.ts +131 -0
- package/template/src/routed-post-creation-form.tsx +28 -0
- package/template/src/router.tsx +25 -0
- package/template/src/routes/__root.tsx +116 -0
- package/template/src/routes/changelog.tsx +39 -0
- package/template/src/routes/index.tsx +61 -0
- package/template/src/routes/p.$slug.tsx +16 -0
- package/template/src/routes/roadmap.tsx +11 -0
- package/template/src/routes/submit.tsx +28 -0
- package/template/src/safe-public-failure.ts +45 -0
- package/template/src/server.ts +111 -0
- package/template/src/similar-posts.tsx +45 -0
- package/template/src/submit-route.test.tsx +134 -0
- package/template/src/trusted-feedback-handler.test.ts +425 -0
- package/template/src/trusted-feedback-handler.ts +181 -0
- package/template/src/trusted-feedback-runtime.ts +17 -0
- package/template/src/turnstile-configuration.test.ts +37 -0
- package/template/src/turnstile-configuration.ts +19 -0
- package/template/src/use-media-query.ts +17 -0
- package/template/src/vote-toggle.test.tsx +171 -0
- package/template/src/vote-toggle.tsx +211 -0
- package/template/tsconfig.json +45 -0
- package/template/vite.config.ts +20 -0
- package/template/vitest.config.ts +4 -0
- package/template/vitest.setup.ts +3 -0
- package/template/wrangler.jsonc +35 -0
- package/dist/cli.d.ts +0 -3
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/index.d.ts +0 -21
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/template/.env.example +0 -4
- package/template/README.md +0 -7
- package/template/apps/portal/components.json +0 -20
- package/template/apps/portal/package.json +0 -31
- package/template/apps/portal/src/lib/utils.ts +0 -6
- package/template/apps/portal/src/routeTree.gen.ts +0 -59
- package/template/apps/portal/src/router.tsx +0 -10
- package/template/apps/portal/src/routes/__root.tsx +0 -31
- package/template/apps/portal/src/routes/index.tsx +0 -35
- package/template/apps/portal/src/styles.css +0 -91
- package/template/apps/portal/tsconfig.json +0 -15
- package/template/apps/portal/vite.config.ts +0 -13
- package/template/feedbax.config.ts +0 -13
- package/template/feedbax.jsonc +0 -11
- package/template/pnpm-workspace.yaml +0 -3
- package/template/turbo.json +0 -8
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
const MAX_ATTEMPTS = 3;
|
|
2
|
+
const BASE_BACKOFF_MILLISECONDS = 250;
|
|
3
|
+
const MAX_BACKOFF_MILLISECONDS = 2_000;
|
|
4
|
+
|
|
5
|
+
export interface NotionRetryOptions {
|
|
6
|
+
sleep?: (milliseconds: number) => Promise<void>;
|
|
7
|
+
random?: () => number;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export async function requestNotion(
|
|
11
|
+
input: Parameters<typeof fetch>[0],
|
|
12
|
+
init: RequestInit = {},
|
|
13
|
+
{
|
|
14
|
+
request,
|
|
15
|
+
retry = {},
|
|
16
|
+
operation,
|
|
17
|
+
}: {
|
|
18
|
+
request: typeof fetch;
|
|
19
|
+
retry?: NotionRetryOptions;
|
|
20
|
+
operation: "create" | "idempotent";
|
|
21
|
+
},
|
|
22
|
+
): Promise<Response> {
|
|
23
|
+
const sleep = retry.sleep ?? defaultSleep;
|
|
24
|
+
const random = retry.random ?? Math.random;
|
|
25
|
+
|
|
26
|
+
for (let attempt = 1; attempt <= MAX_ATTEMPTS; attempt += 1) {
|
|
27
|
+
const response = await request(input, init);
|
|
28
|
+
if (!isRetryableNotionFailure(response.status, operation)) return response;
|
|
29
|
+
if (attempt === MAX_ATTEMPTS) {
|
|
30
|
+
throw new Error(
|
|
31
|
+
`Notion request failed after ${MAX_ATTEMPTS} attempts (${response.status}).`,
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
await sleep(retryDelayMilliseconds(response, attempt, random));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
throw new Error("Notion request retry loop ended unexpectedly.");
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function isRetryableNotionFailure(
|
|
41
|
+
status: number,
|
|
42
|
+
operation: "create" | "idempotent",
|
|
43
|
+
): boolean {
|
|
44
|
+
return status === 429 || (status === 529 && operation === "idempotent");
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function retryDelayMilliseconds(
|
|
48
|
+
response: Response,
|
|
49
|
+
attempt: number,
|
|
50
|
+
random: () => number,
|
|
51
|
+
): number {
|
|
52
|
+
const retryAfter = response.headers.get("Retry-After");
|
|
53
|
+
if (retryAfter) {
|
|
54
|
+
const seconds = Number(retryAfter);
|
|
55
|
+
if (Number.isFinite(seconds) && seconds >= 0) return seconds * 1_000;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return exponentialDelayMilliseconds(attempt, random);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function exponentialDelayMilliseconds(
|
|
62
|
+
attempt: number,
|
|
63
|
+
random: () => number,
|
|
64
|
+
): number {
|
|
65
|
+
const ceiling = Math.min(
|
|
66
|
+
BASE_BACKOFF_MILLISECONDS * 2 ** (attempt - 1),
|
|
67
|
+
MAX_BACKOFF_MILLISECONDS,
|
|
68
|
+
);
|
|
69
|
+
return Math.round(ceiling / 2 + random() * (ceiling / 2));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
async function defaultSleep(milliseconds: number): Promise<void> {
|
|
73
|
+
await new Promise<void>((resolve) => setTimeout(resolve, milliseconds));
|
|
74
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { defineFeedbax } from "@feedbax/config";
|
|
2
|
+
|
|
3
|
+
// prettier-ignore
|
|
4
|
+
export default defineFeedbax({
|
|
5
|
+
"product": {
|
|
6
|
+
"name": "Feedbax",
|
|
7
|
+
"description": "Share feedback and follow product progress.",
|
|
8
|
+
"logo": "/feedbax-mark.svg"
|
|
9
|
+
},
|
|
10
|
+
"theme": {
|
|
11
|
+
"preset": "lyra-neutral"
|
|
12
|
+
},
|
|
13
|
+
"notion": {
|
|
14
|
+
"databaseId": "test-database",
|
|
15
|
+
"dataSourceId": "test-feedback",
|
|
16
|
+
"properties": {
|
|
17
|
+
"title": "test-title",
|
|
18
|
+
"slug": "test-slug",
|
|
19
|
+
"description": "test-description",
|
|
20
|
+
"type": "test-type",
|
|
21
|
+
"status": "test-status",
|
|
22
|
+
"published": "test-published",
|
|
23
|
+
"voteCount": "test-voteCount",
|
|
24
|
+
"teamResponse": "test-teamResponse",
|
|
25
|
+
"releaseNotesUrl": "test-releaseNotesUrl",
|
|
26
|
+
"submitterName": "test-submitterName",
|
|
27
|
+
"submitterEmail": "test-submitterEmail",
|
|
28
|
+
"source": "test-source",
|
|
29
|
+
"externalId": "test-externalId",
|
|
30
|
+
"editTokenHash": "test-editTokenHash",
|
|
31
|
+
"createdAt": "test-createdAt",
|
|
32
|
+
"updatedAt": "test-updatedAt"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"changelog": {
|
|
36
|
+
"databaseId": "test-database",
|
|
37
|
+
"dataSourceId": "test-changelog",
|
|
38
|
+
"properties": {
|
|
39
|
+
"title": "test-title",
|
|
40
|
+
"slug": "test-slug",
|
|
41
|
+
"date": "test-date",
|
|
42
|
+
"summary": "test-summary",
|
|
43
|
+
"body": "test-body",
|
|
44
|
+
"labels": "test-labels",
|
|
45
|
+
"image": "test-image",
|
|
46
|
+
"published": "test-published",
|
|
47
|
+
"createdAt": "test-createdAt",
|
|
48
|
+
"updatedAt": "test-updatedAt"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"features": {
|
|
52
|
+
"voting": true,
|
|
53
|
+
"comments": true,
|
|
54
|
+
"changelog": true
|
|
55
|
+
},
|
|
56
|
+
"submissions": {
|
|
57
|
+
"moderation": "required",
|
|
58
|
+
"maxTitleLength": 120,
|
|
59
|
+
"maxDescriptionLength": 5000
|
|
60
|
+
},
|
|
61
|
+
"turnstile": {
|
|
62
|
+
"enabled": false
|
|
63
|
+
}
|
|
64
|
+
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { defineFeedbax } from "@feedbax/config";
|
|
2
|
+
|
|
3
|
+
const turnstileSiteKey =
|
|
4
|
+
import.meta.env?.VITE_TURNSTILE_SITE_KEY ??
|
|
5
|
+
process.env.VITE_TURNSTILE_SITE_KEY;
|
|
6
|
+
|
|
7
|
+
const env = (name: string) => process.env[name] ?? "not-configured";
|
|
8
|
+
|
|
9
|
+
export default defineFeedbax({
|
|
10
|
+
product: {
|
|
11
|
+
name: "Feedbax",
|
|
12
|
+
description: "Share feedback and follow product progress.",
|
|
13
|
+
logo: "/feedbax-mark.svg",
|
|
14
|
+
siteUrl: process.env.FEEDBAX_SITE_URL,
|
|
15
|
+
},
|
|
16
|
+
theme: { preset: "lyra-neutral" },
|
|
17
|
+
notion: {
|
|
18
|
+
databaseId: env("NOTION_FEEDBACK_DATABASE_ID"),
|
|
19
|
+
dataSourceId: env("NOTION_FEEDBACK_DATA_SOURCE_ID"),
|
|
20
|
+
properties: {
|
|
21
|
+
title: env("NOTION_FEEDBACK_TITLE_PROPERTY_ID"),
|
|
22
|
+
slug: env("NOTION_FEEDBACK_SLUG_PROPERTY_ID"),
|
|
23
|
+
description: env("NOTION_FEEDBACK_DESCRIPTION_PROPERTY_ID"),
|
|
24
|
+
type: env("NOTION_FEEDBACK_TYPE_PROPERTY_ID"),
|
|
25
|
+
status: env("NOTION_FEEDBACK_STATUS_PROPERTY_ID"),
|
|
26
|
+
published: env("NOTION_FEEDBACK_PUBLISHED_PROPERTY_ID"),
|
|
27
|
+
voteCount: env("NOTION_FEEDBACK_VOTE_COUNT_PROPERTY_ID"),
|
|
28
|
+
teamResponse: env("NOTION_FEEDBACK_TEAM_RESPONSE_PROPERTY_ID"),
|
|
29
|
+
releaseNotesUrl: env("NOTION_FEEDBACK_RELEASE_NOTES_URL_PROPERTY_ID"),
|
|
30
|
+
submitterName: env("NOTION_FEEDBACK_SUBMITTER_NAME_PROPERTY_ID"),
|
|
31
|
+
submitterEmail: env("NOTION_FEEDBACK_SUBMITTER_EMAIL_PROPERTY_ID"),
|
|
32
|
+
source: env("NOTION_FEEDBACK_SOURCE_PROPERTY_ID"),
|
|
33
|
+
externalId: env("NOTION_FEEDBACK_EXTERNAL_ID_PROPERTY_ID"),
|
|
34
|
+
editTokenHash: env("NOTION_FEEDBACK_EDIT_TOKEN_HASH_PROPERTY_ID"),
|
|
35
|
+
createdAt: env("NOTION_FEEDBACK_CREATED_AT_PROPERTY_ID"),
|
|
36
|
+
updatedAt: env("NOTION_FEEDBACK_UPDATED_AT_PROPERTY_ID"),
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
changelog: {
|
|
40
|
+
databaseId: env("NOTION_CHANGELOG_DATABASE_ID"),
|
|
41
|
+
dataSourceId: env("NOTION_CHANGELOG_DATA_SOURCE_ID"),
|
|
42
|
+
properties: {
|
|
43
|
+
title: env("NOTION_CHANGELOG_TITLE_PROPERTY_ID"),
|
|
44
|
+
slug: env("NOTION_CHANGELOG_SLUG_PROPERTY_ID"),
|
|
45
|
+
date: env("NOTION_CHANGELOG_DATE_PROPERTY_ID"),
|
|
46
|
+
summary: env("NOTION_CHANGELOG_SUMMARY_PROPERTY_ID"),
|
|
47
|
+
body: env("NOTION_CHANGELOG_BODY_PROPERTY_ID"),
|
|
48
|
+
labels: env("NOTION_CHANGELOG_LABELS_PROPERTY_ID"),
|
|
49
|
+
image: env("NOTION_CHANGELOG_IMAGE_PROPERTY_ID"),
|
|
50
|
+
published: env("NOTION_CHANGELOG_PUBLISHED_PROPERTY_ID"),
|
|
51
|
+
createdAt: env("NOTION_CHANGELOG_CREATED_AT_PROPERTY_ID"),
|
|
52
|
+
updatedAt: env("NOTION_CHANGELOG_UPDATED_AT_PROPERTY_ID"),
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
features: {
|
|
56
|
+
voting: process.env.FEEDBAX_VOTING_ENABLED !== "false",
|
|
57
|
+
comments: process.env.FEEDBAX_COMMENTS_ENABLED !== "false",
|
|
58
|
+
changelog: process.env.FEEDBAX_CHANGELOG_ENABLED !== "false",
|
|
59
|
+
},
|
|
60
|
+
submissions: {
|
|
61
|
+
moderation: "required",
|
|
62
|
+
maxTitleLength: 120,
|
|
63
|
+
maxDescriptionLength: 5_000,
|
|
64
|
+
},
|
|
65
|
+
turnstile: {
|
|
66
|
+
enabled: Boolean(turnstileSiteKey),
|
|
67
|
+
siteKey: turnstileSiteKey,
|
|
68
|
+
},
|
|
69
|
+
});
|