@draftlab/auth 0.5.0 → 0.7.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.
@@ -1,5 +1,5 @@
1
1
  import { Layout, renderToHTML } from "./base.mjs";
2
- import { ICON_GITHUB, ICON_GOOGLE } from "./icon.mjs";
2
+ import { ICON_APPLE, ICON_DISCORD, ICON_EMAIL, ICON_FACEBOOK, ICON_GITHUB, ICON_GITLAB, ICON_GOOGLE, ICON_LINKEDIN, ICON_MICROSOFT, ICON_REDDIT, ICON_SLACK, ICON_SPOTIFY, ICON_TWITCH } from "./icon.mjs";
3
3
  import { jsx, jsxs } from "preact/jsx-runtime";
4
4
 
5
5
  //#region src/ui/select.tsx
@@ -7,18 +7,41 @@ import { jsx, jsxs } from "preact/jsx-runtime";
7
7
  * Icon components for providers
8
8
  */
9
9
  const PROVIDER_ICONS = {
10
+ apple: ICON_APPLE,
11
+ discord: ICON_DISCORD,
12
+ email: ICON_EMAIL,
13
+ facebook: ICON_FACEBOOK,
10
14
  github: ICON_GITHUB,
11
- google: ICON_GOOGLE
15
+ gitlab: ICON_GITLAB,
16
+ google: ICON_GOOGLE,
17
+ linkedin: ICON_LINKEDIN,
18
+ magiclink: ICON_EMAIL,
19
+ microsoft: ICON_MICROSOFT,
20
+ password: ICON_EMAIL,
21
+ reddit: ICON_REDDIT,
22
+ slack: ICON_SLACK,
23
+ spotify: ICON_SPOTIFY,
24
+ twitch: ICON_TWITCH
12
25
  };
13
26
  /**
14
27
  * Default display names for provider types
15
28
  */
16
29
  const DEFAULT_DISPLAYS = {
30
+ apple: "Apple",
31
+ code: "Code",
32
+ discord: "Discord",
33
+ facebook: "Facebook",
17
34
  github: "GitHub",
35
+ gitlab: "GitLab",
18
36
  google: "Google",
19
- code: "Code",
37
+ linkedin: "LinkedIn",
38
+ microsoft: "Microsoft",
20
39
  passkey: "Passkey",
21
- password: "Password"
40
+ password: "Password",
41
+ reddit: "Reddit",
42
+ slack: "Slack",
43
+ spotify: "Spotify",
44
+ twitch: "Twitch"
22
45
  };
23
46
  /**
24
47
  * Main provider selection component
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftlab/auth",
3
- "version": "0.5.0",
3
+ "version": "0.7.0",
4
4
  "type": "module",
5
5
  "description": "Core implementation for @draftlab/auth",
6
6
  "author": "Matheus Pergoli",