File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " svelte-turnstile" ,
3
- "version" : " 0.6.1 " ,
3
+ "version" : " 0.7.0 " ,
4
4
"scripts" : {
5
5
"dev" : " vite dev" ,
6
6
"package" : " svelte-kit sync && svelte-package" ,
Original file line number Diff line number Diff line change 133
133
export let responseFieldName: RenderParameters [' response-field-name' ] =
134
134
undefined ;
135
135
136
+ /**
137
+ * Classes to apply to the wrapper div around turnstile.
138
+ * This won't work with Svelte scoped styles.
139
+ */
140
+ let _class: string | undefined = undefined ;
141
+ export { _class as class };
142
+
136
143
/**
137
144
* Resets the widget.
138
145
* @param widgetId - The ID of the widget.
214
221
215
222
{#if loaded && mounted }
216
223
{#key $$props }
217
- <div use:turnstileAction />
224
+ <div use:turnstileAction class ={ _class } />
218
225
{/ key }
219
226
{/if }
You can’t perform that action at this time.
0 commit comments