+
+ emojis.unshift(emoji.unicode)}
+ triggerText="Emoji Picker"
+>
+ {#snippet child({ props })}
+
+ {/snippet}
+
diff --git a/apps/docs/src/routes/(main)/components/social/atproto-login/+page.svelte b/apps/docs/src/routes/(main)/components/social/atproto-login/+page.svelte
new file mode 100644
index 0000000..cd87863
--- /dev/null
+++ b/apps/docs/src/routes/(main)/components/social/atproto-login/+page.svelte
@@ -0,0 +1,8 @@
+
+
+
+
+
diff --git a/apps/docs/src/routes/(main)/components/social/bluesky-login/BlueskyLogin.md b/apps/docs/src/routes/(main)/components/social/atproto-login/ATProtoLogin.md
similarity index 69%
rename from apps/docs/src/routes/(main)/components/social/bluesky-login/BlueskyLogin.md
rename to apps/docs/src/routes/(main)/components/social/atproto-login/ATProtoLogin.md
index 934d3e9..530787a 100644
--- a/apps/docs/src/routes/(main)/components/social/bluesky-login/BlueskyLogin.md
+++ b/apps/docs/src/routes/(main)/components/social/atproto-login/ATProtoLogin.md
@@ -2,7 +2,7 @@
import Example from './Example.svelte';
-# Bluesky Login
+# Atproto Login
## Example
@@ -14,13 +14,15 @@
```svelte
- {
- // do login and return true if login
- // is successful and should hide the modal
-}} />
+ {
+ // do login and return true if login
+ // is successful and should hide the modal
+ }}
+/>
```
### Use with forms
@@ -28,7 +30,7 @@
Pass in `formAction` and `formMethod` to use the BlueskyLogin component as a form submit handler.
```svelte
-
+
```
And then use like a normal form in your `+page.server.ts` or `+layout.server.ts` file:
@@ -40,6 +42,6 @@ export const actions: Actions = {
let handle = formData.get('handle') as string;
// authorization logic here
- },
-}
-```
\ No newline at end of file
+ }
+};
+```
diff --git a/apps/docs/src/routes/(main)/components/social/atproto-login/Example.svelte b/apps/docs/src/routes/(main)/components/social/atproto-login/Example.svelte
new file mode 100644
index 0000000..f2b6400
--- /dev/null
+++ b/apps/docs/src/routes/(main)/components/social/atproto-login/Example.svelte
@@ -0,0 +1,19 @@
+
+
+ {
+ if (!handle) {
+ toast.error('Please enter a handle');
+ return false;
+ }
+ await new Promise((resolve) => setTimeout(resolve, 1000));
+ if (Math.random() < 0.2) {
+ throw Error('Something went wrong (this is what an error looks like)');
+ }
+ toast.success(`Login successful for ${handle}`);
+ return true;
+ }}
+/>
diff --git a/apps/docs/src/routes/(main)/components/social/bluesky-login/Example.svelte b/apps/docs/src/routes/(main)/components/social/bluesky-login/Example.svelte
deleted file mode 100644
index 334192d..0000000
--- a/apps/docs/src/routes/(main)/components/social/bluesky-login/Example.svelte
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
- {
- if(!handle) {
- toast.error('Please enter a handle');
- return false;
- }
- await new Promise((resolve) => setTimeout(resolve, 1000));
- toast.success(`Login successful for ${handle}`);
- return true;
-}} />
\ No newline at end of file
diff --git a/packages/core/src/lib/components/download-button/DownloadButton.svelte b/packages/core/src/lib/components/download-button/DownloadButton.svelte
new file mode 100644
index 0000000..482fe93
--- /dev/null
+++ b/packages/core/src/lib/components/download-button/DownloadButton.svelte
@@ -0,0 +1,49 @@
+
+
+
+