@functionalcms/svelte-components 4.2.2 → 4.2.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.
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
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>
|
|
1
|
+
<div>
|
|
2
|
+
<label for="human-detection">Please do not check it</label>
|
|
3
|
+
<input id="human-detection" name="human-detection" />
|
|
11
4
|
</div>
|
|
5
|
+
|
|
6
|
+
<style>
|
|
7
|
+
div,
|
|
8
|
+
label,
|
|
9
|
+
input {
|
|
10
|
+
display: none !important;
|
|
11
|
+
}
|
|
12
|
+
</style>
|
|
@@ -1,5 +1,26 @@
|
|
|
1
|
-
declare const AntiBot: import("svelte").Component<Partial<{
|
|
2
|
-
isHuman: boolean;
|
|
3
|
-
}>, {}, "">;
|
|
4
|
-
type AntiBot = ReturnType<typeof AntiBot>;
|
|
5
1
|
export default AntiBot;
|
|
2
|
+
type AntiBot = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const AntiBot: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
+
$$bindings?: Bindings;
|
|
17
|
+
} & Exports;
|
|
18
|
+
(internal: unknown, props: {
|
|
19
|
+
$$events?: Events;
|
|
20
|
+
$$slots?: Slots;
|
|
21
|
+
}): Exports & {
|
|
22
|
+
$set?: any;
|
|
23
|
+
$on?: any;
|
|
24
|
+
};
|
|
25
|
+
z_$$bindings?: Bindings;
|
|
26
|
+
}
|