@functionalcms/svelte-components 4.1.1 → 4.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/dist/components/form/AntiBot.d.ts +1 -0
- package/dist/components/form/AntiBot.js +4 -0
- package/dist/components/form/AntiBot.svelte +11 -0
- package/dist/components/form/AntiBot.svelte.d.ts +5 -0
- package/dist/index-server.d.ts +1 -0
- package/dist/index-server.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isHuman(formData: FormData): boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
interface Props {
|
|
3
|
+
isHuman: boolean;
|
|
4
|
+
}
|
|
5
|
+
let { isHuman = true }: Partial<Props> = $props();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<div style="display:none; visibility: hidden;">
|
|
9
|
+
<input id="humanTest" type="checkbox" name="humanTest" bind:checked={isHuman} s />
|
|
10
|
+
<label for="humanTest">Do not check if you are a human</label>
|
|
11
|
+
</div>
|
package/dist/index-server.d.ts
CHANGED
|
@@ -7,3 +7,4 @@ export { userAuthenticationProvider } from './auth/userAuthenticationProvider.js
|
|
|
7
7
|
export { getBlobService, getCommunicationService, getDataService, getTemplateService, getWebsiteService, getAIService } from './server-side/getServices.js';
|
|
8
8
|
export type { RedirectResponse } from './auth/RedirectResponse.js';
|
|
9
9
|
export { createMachineTokenApprovedLocals } from './auth/getMachineAccessToken.js';
|
|
10
|
+
export { isHuman } from './components/form/AntiBot.ts';
|
package/dist/index-server.js
CHANGED
|
@@ -6,3 +6,4 @@ export { machineAuthenticationProvider } from './auth/machineAuthenticationProvi
|
|
|
6
6
|
export { userAuthenticationProvider } from './auth/userAuthenticationProvider.js';
|
|
7
7
|
export { getBlobService, getCommunicationService, getDataService, getTemplateService, getWebsiteService, getAIService } from './server-side/getServices.js';
|
|
8
8
|
export { createMachineTokenApprovedLocals } from './auth/getMachineAccessToken.js';
|
|
9
|
+
export { isHuman } from './components/form/AntiBot.ts';
|
package/dist/index.d.ts
CHANGED
|
@@ -23,5 +23,6 @@ export { default as Input } from './components/form/Input.svelte';
|
|
|
23
23
|
export { default as Switch } from './components/form/Switch.svelte';
|
|
24
24
|
export { default as ChoiceInput } from './components/form/ChoiceInput.svelte';
|
|
25
25
|
export type { ChoiceInputOption } from './components/form/utils.ts';
|
|
26
|
+
export { default as AntiBot } from './components/form/AntiBot.svelte';
|
|
26
27
|
export { default as Markdown } from './components/content/Markdown.svelte';
|
|
27
28
|
export { type BlogPost, listAllPosts, importPost } from './components/blog/blog.js';
|
package/dist/index.js
CHANGED
|
@@ -39,6 +39,7 @@ export { default as Button } from './components/form/Button.svelte';
|
|
|
39
39
|
export { default as Input } from './components/form/Input.svelte';
|
|
40
40
|
export { default as Switch } from './components/form/Switch.svelte';
|
|
41
41
|
export { default as ChoiceInput } from './components/form/ChoiceInput.svelte';
|
|
42
|
+
export { default as AntiBot } from './components/form/AntiBot.svelte';
|
|
42
43
|
/*
|
|
43
44
|
* Content
|
|
44
45
|
*/
|