@hellocoop/svelte 2.1.7 → 2.1.8-canary.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/README.md CHANGED
@@ -3,8 +3,7 @@
3
3
  [Hellō](https://hello.dev) is an identity network that provides login and registration using the standard OpenID Connect protocol. Hellō offers your users choice between all popular social login providers.
4
4
 
5
5
  This [Svelte](https://svelte.dev/) package provides:
6
+
6
7
  - Svelte components for buttons and logged in context
7
8
 
8
9
  See the [Svelte SDK documentation](https://www.hello.dev/docs/sdks/svelte) for details.
9
-
10
-
@@ -1,27 +1,27 @@
1
1
  <script context="module" lang="ts">
2
- import type { Auth } from './auth.js'
3
- import { setContext, getContext } from 'svelte'
4
-
5
- export const routeConfig = {
6
- login: '/api/hellocoop?login=true',
7
- auth: '/api/hellocoop?auth=true',
8
- logout: '/api/hellocoop?logout=true',
9
- }
10
-
11
- export const getHelloProviderContext = (): Auth | undefined => {
12
- return getContext('HelloProviderContext')
13
- }
2
+ import type { Auth } from './auth.js'
3
+ import { setContext, getContext } from 'svelte'
4
+
5
+ export const routeConfig = {
6
+ login: '/api/hellocoop?login=true',
7
+ auth: '/api/hellocoop?auth=true',
8
+ logout: '/api/hellocoop?logout=true',
9
+ }
10
+
11
+ export const getHelloProviderContext = (): Auth | undefined => {
12
+ return getContext('HelloProviderContext')
13
+ }
14
14
  </script>
15
-
15
+
16
16
  <script lang="ts">
17
17
  export let auth: any = {} //tbd: any
18
18
  export let config: any = {} //tbd: any
19
19
 
20
20
  setContext('HelloProviderContext', auth)
21
21
 
22
- if (config?.login) routeConfig.login = config.login
23
- if (config?.auth) routeConfig.auth = config.auth
24
- if (config?.logout) routeConfig.logout = config.logout
22
+ if (config?.login) routeConfig.login = config.login
23
+ if (config?.auth) routeConfig.auth = config.auth
24
+ if (config?.logout) routeConfig.logout = config.logout
25
25
  </script>
26
-
27
- <slot/>
26
+
27
+ <slot />
package/dist/auth.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /// <reference types="svelte" />
2
2
  // @ts-ignore tbd
3
- import { useSWR } from "sswr";
3
+ import { useSWR } from 'sswr';
4
4
  // @ts-ignore tbd - has no exported member?
5
- import { getHelloProviderContext, routeConfig } from "./Provider.svelte";
5
+ import { getHelloProviderContext, routeConfig } from './Provider.svelte';
6
6
  const fetcher = async (url) => {
7
7
  try {
8
8
  const response = await fetch(url);
@@ -16,13 +16,13 @@ const fetcher = async (url) => {
16
16
  };
17
17
  export const useAuth = () => {
18
18
  const defaultAuth = getHelloProviderContext();
19
- const { data: auth, isLoading } = useSWR(routeConfig.auth, {
19
+ const { data: auth, isLoading, } = useSWR(routeConfig.auth, {
20
20
  fetcher,
21
- initialData: defaultAuth
21
+ initialData: defaultAuth,
22
22
  });
23
23
  return {
24
24
  auth: auth || {},
25
25
  isLoading,
26
- isLoggedIn: auth?.isLoggedIn
26
+ isLoggedIn: auth?.isLoggedIn,
27
27
  };
28
28
  };
@@ -1,102 +1,87 @@
1
1
  <script lang="ts">
2
- import { routeConfig } from "../Provider.svelte"
3
- import type { ProviderHint, Scope } from '@hellocoop/definitions'
4
- import { onMount } from "svelte"
5
- import { Button } from "../types.js" // tbd use @hellocoop/definitions (currently, some esm import errors)
6
-
7
- interface $$Props {
8
- label?: string
9
- style?: any
10
- color?: Button.Color
11
- theme?: Button.Theme
12
- hover?: Button.Hover
13
- scope?: Scope[]
14
- update?: boolean
15
- targetURI?: string
16
- providerHint?: ProviderHint[],
17
- showLoader?: boolean,
18
- disabled?: boolean
19
- promptLogin?: boolean,
20
- promptConsent?: boolean,
21
- loginHint?: string,
22
- domainHint?: string
23
- }
2
+ import { routeConfig } from '../Provider.svelte'
3
+ import type { ProviderHint, Scope } from '@hellocoop/definitions'
4
+ import { onMount } from 'svelte'
5
+ import { Button } from '../types.js' // tbd use @hellocoop/definitions (currently, some esm import errors)
24
6
 
25
- // All prop exports must still be typed standalone and in the $$Props interface
26
- export let label: string = "ō&nbsp;&nbsp;&nbsp;Continue with Hellō";
27
- export let style: any = {} //TBD any
28
- export let color: Button.Color = "black"
29
- export let theme: Button.Theme = "ignore-light"
30
- export let hover: Button.Hover = "pop"
31
- export let scope: Scope[] = [];
32
- // @ts-ignore tbd
33
- export let update: Button.update = false;
34
- export let targetURI: string = ""
35
- export let providerHint: ProviderHint[] = [];
36
- export let showLoader: boolean = false
37
- export let disabled: boolean = false
38
- export let promptLogin: boolean = false
39
- export let promptConsent: boolean = false
40
- export let loginHint: string = ""
41
- export let domainHint: string = ""
42
-
43
- let checkedForStylesheet: boolean = false
7
+ export let label: string = 'ō&nbsp;&nbsp;&nbsp;Continue with Hellō'
8
+ export let style: any = {} //TBD any
9
+ export let color: Button.Color = 'black'
10
+ export let theme: Button.Theme = 'ignore-light'
11
+ export let hover: Button.Hover = 'pop'
12
+ export let scope: Scope[] = []
13
+ // @ts-ignore tbd
14
+ export let update: Button.update = false
15
+ export let targetURI: string = ''
16
+ export let providerHint: ProviderHint[] = []
17
+ export let showLoader: boolean = false
18
+ export let disabled: boolean = false
19
+ export let promptLogin: boolean = false
20
+ export let promptConsent: boolean = false
21
+ export let loginHint: string = ''
22
+ export let domainHint: string = ''
44
23
 
45
- onMount(() => {
46
- //check if dev has added Hellō stylesheet to pages with Hellō buttons
47
- if(typeof window != 'undefined' && !checkedForStylesheet) {
48
- const hasStylesheet = Array.from(document.head.getElementsByTagName('link')).find(
49
- (element) =>
50
- element.getAttribute('rel') === 'stylesheet' &&
51
- element.getAttribute('href')?.startsWith(Button.STYLES_URL)
52
- )
24
+ let checkedForStylesheet: boolean = false
53
25
 
54
- if(!hasStylesheet)
55
- console.warn('Could not find Hellō stylesheet. Please add to pages with Hellō buttons. See http://hello.dev/docs/buttons/#stylesheet for more info.')
26
+ onMount(() => {
27
+ //check if dev has added Hellō stylesheet to pages with Hellō buttons
28
+ if (typeof window != 'undefined' && !checkedForStylesheet) {
29
+ const hasStylesheet = Array.from(
30
+ document.head.getElementsByTagName('link'),
31
+ ).find(
32
+ (element) =>
33
+ element.getAttribute('rel') === 'stylesheet' &&
34
+ element.getAttribute('href')?.startsWith(Button.STYLES_URL),
35
+ )
56
36
 
57
- checkedForStylesheet = true
58
- }
59
- })
37
+ if (!hasStylesheet)
38
+ console.warn(
39
+ 'Could not find Hellō stylesheet. Please add to pages with Hellō buttons. See http://hello.dev/docs/buttons/#stylesheet for more info.',
40
+ )
41
+
42
+ checkedForStylesheet = true
43
+ }
44
+ })
60
45
 
61
- let clicked: boolean = false
62
- const loginRoute = new URL(routeConfig.login, window.location.origin)
63
- if(scope)
64
- loginRoute.searchParams.set("scope", scope.join(" "))
46
+ let clicked: boolean = false
47
+ const loginRoute = new URL(routeConfig.login, window.location.origin)
48
+ if (scope) loginRoute.searchParams.set('scope', scope.join(' '))
65
49
 
66
- loginRoute.searchParams.set("target_uri", targetURI || window.location.pathname)
67
-
68
- if(update)
69
- loginRoute.searchParams.set("prompt", "consent")
50
+ loginRoute.searchParams.set(
51
+ 'target_uri',
52
+ targetURI || window.location.pathname,
53
+ )
70
54
 
71
- if (promptLogin && promptConsent) {
72
- loginRoute.searchParams.set("prompt", "login consent")
73
- } else if (promptLogin) {
74
- loginRoute.searchParams.set("prompt", "login")
75
- } else if (promptConsent) {
76
- loginRoute.searchParams.set("prompt", "consent")
77
- }
55
+ if (update) loginRoute.searchParams.set('prompt', 'consent')
78
56
 
79
- if (loginHint)
80
- loginRoute.searchParams.set("login_hint", loginHint)
57
+ if (promptLogin && promptConsent) {
58
+ loginRoute.searchParams.set('prompt', 'login consent')
59
+ } else if (promptLogin) {
60
+ loginRoute.searchParams.set('prompt', 'login')
61
+ } else if (promptConsent) {
62
+ loginRoute.searchParams.set('prompt', 'consent')
63
+ }
81
64
 
82
- if (domainHint)
83
- loginRoute.searchParams.set("login_hint", domainHint)
65
+ if (loginHint) loginRoute.searchParams.set('login_hint', loginHint)
84
66
 
85
- if(providerHint)
86
- loginRoute.searchParams.set("provider_hint", providerHint.join(" "))
67
+ if (domainHint) loginRoute.searchParams.set('login_hint', domainHint)
87
68
 
88
- const onClickHandler = (): void => {
89
- clicked = true
90
- window.location.href = loginRoute.href
91
- }
69
+ if (providerHint)
70
+ loginRoute.searchParams.set('provider_hint', providerHint.join(' '))
71
+
72
+ const onClickHandler = (): void => {
73
+ clicked = true
74
+ window.location.href = loginRoute.href
75
+ }
92
76
  </script>
93
77
 
94
78
  <button
95
- on:click={onClickHandler}
96
- class="hello-btn {Button.CLASS_MAPPING[color]?.[theme]} {Button.HOVER_MAPPING[hover]}"
97
- class:hello-btn-loader={showLoader || clicked}
98
- disabled={disabled || clicked}
99
- {style}
79
+ on:click={onClickHandler}
80
+ class="hello-btn {Button.CLASS_MAPPING[color]?.[theme]} {Button
81
+ .HOVER_MAPPING[hover]}"
82
+ class:hello-btn-loader={showLoader || clicked}
83
+ disabled={disabled || clicked}
84
+ {style}
100
85
  >
101
- {@html label}
102
- </button>
86
+ {@html label}
87
+ </button>
@@ -1,5 +1,5 @@
1
1
  import type { ProviderHint, Scope } from '@hellocoop/definitions';
2
- import { Button } from "../types.js";
2
+ import { Button } from '../types.js';
3
3
  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> {
4
4
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
5
5
  $$bindings?: Bindings;
@@ -20,7 +20,7 @@ declare const BaseButton: $$__sveltets_2_IsomorphicComponent<{
20
20
  theme?: Button.Theme;
21
21
  hover?: Button.Hover;
22
22
  scope?: Scope[];
23
- update?: boolean;
23
+ update?: Button.update;
24
24
  targetURI?: string;
25
25
  providerHint?: ProviderHint[];
26
26
  showLoader?: boolean;
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import BaseButton from "./BaseButton.svelte";
2
+ import BaseButton from './BaseButton.svelte'
3
3
  </script>
4
4
 
5
- <BaseButton {...$$props}/>
5
+ <BaseButton {...$$props} />
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import BaseButton from "./BaseButton.svelte";
2
+ import BaseButton from './BaseButton.svelte'
3
3
  </script>
4
4
 
5
- <BaseButton {...$$props} label="ō&nbsp;&nbsp;&nbsp;Login with Hellō" />
5
+ <BaseButton {...$$props} label="ō&nbsp;&nbsp;&nbsp;Login with Hellō" />
@@ -1,5 +1,9 @@
1
1
  <script lang="ts">
2
- import BaseButton from "./BaseButton.svelte";
2
+ import BaseButton from './BaseButton.svelte'
3
3
  </script>
4
4
 
5
- <BaseButton {...$$props} label="ō&nbsp;&nbsp;&nbsp;Update Profile with Hellō" update={true} />
5
+ <BaseButton
6
+ {...$$props}
7
+ label="ō&nbsp;&nbsp;&nbsp;Update Profile with Hellō"
8
+ update={true}
9
+ />
package/dist/index.d.ts CHANGED
@@ -5,4 +5,4 @@ export { default as LoggedIn } from './login-status/LoggedIn.svelte';
5
5
  export { default as LoggedOut } from './login-status/LoggedOut.svelte';
6
6
  export * from './auth.js';
7
7
  export * from './logout.js';
8
- export { default as HelloProvider, routeConfig, getHelloProviderContext } from './Provider.svelte';
8
+ export { default as HelloProvider, routeConfig, getHelloProviderContext, } from './Provider.svelte';
package/dist/index.js CHANGED
@@ -12,4 +12,4 @@ export * from './auth.js';
12
12
  export * from './logout.js';
13
13
  //Provider
14
14
  // @ts-ignore tbd - has no exported member?
15
- export { default as HelloProvider, routeConfig, getHelloProviderContext } from './Provider.svelte';
15
+ export { default as HelloProvider, routeConfig, getHelloProviderContext, } from './Provider.svelte';
@@ -1,10 +1,11 @@
1
1
  <script lang="ts">
2
- import { useAuth } from "../auth.js"
3
- import type { Readable } from "svelte/store"
4
-
5
- const isLoggedIn = (): Readable<boolean> | boolean => useAuth()?.isLoggedIn || false
2
+ import { useAuth } from '../auth.js'
3
+ import type { Readable } from 'svelte/store'
4
+
5
+ const isLoggedIn = (): Readable<boolean> | boolean =>
6
+ useAuth()?.isLoggedIn || false
6
7
  </script>
7
8
 
8
9
  {#if isLoggedIn()}
9
- <slot/>
10
- {/if}
10
+ <slot />
11
+ {/if}
@@ -1,10 +1,11 @@
1
1
  <script lang="ts">
2
- import { useAuth } from "../auth.js"
3
- import type { Readable } from "svelte/store"
4
-
5
- const isLoggedIn = (): Readable<boolean> | boolean => useAuth()?.isLoggedIn || false
6
- </script>
7
-
8
- {#if !isLoggedIn()}
9
- <slot/>
10
- {/if}
2
+ import { useAuth } from '../auth.js'
3
+ import type { Readable } from 'svelte/store'
4
+
5
+ const isLoggedIn = (): Readable<boolean> | boolean =>
6
+ useAuth()?.isLoggedIn || false
7
+ </script>
8
+
9
+ {#if !isLoggedIn()}
10
+ <slot />
11
+ {/if}
package/dist/types.d.ts CHANGED
@@ -8,11 +8,11 @@ export declare const VALID_SCOPES: readonly ["name", "nickname", "preferred_user
8
8
  export declare const VALID_RESPONSE_TYPE: readonly ["id_token", "code"];
9
9
  export declare const VALID_RESPONSE_MODE: string[];
10
10
  export declare const VALID_PROVIDER_HINT: readonly ["apple", "discord", "facebook", "github", "gitlab", "google", "twitch", "twitter", "tumblr", "mastodon", "microsoft", "line", "wordpress", "yahoo", "phone", "ethereum", "qrcode", "apple--", "microsoft--", "google--", "email--", "passkey--"];
11
- export type Scope = typeof VALID_SCOPES[number];
12
- export type AuthResponseType = typeof VALID_RESPONSE_TYPE[number];
13
- export type AuthResponseMode = typeof VALID_RESPONSE_MODE[number];
14
- export type ProviderHint = typeof VALID_PROVIDER_HINT[number];
15
- type IdentityClaims = typeof VALID_IDENTITY_CLAIMS[number];
11
+ export type Scope = (typeof VALID_SCOPES)[number];
12
+ export type AuthResponseType = (typeof VALID_RESPONSE_TYPE)[number];
13
+ export type AuthResponseMode = (typeof VALID_RESPONSE_MODE)[number];
14
+ export type ProviderHint = (typeof VALID_PROVIDER_HINT)[number];
15
+ type IdentityClaims = (typeof VALID_IDENTITY_CLAIMS)[number];
16
16
  type OptionalClaims = {
17
17
  [K in IdentityClaims]?: unknown;
18
18
  };
@@ -34,9 +34,9 @@ export type TokenHeader = {
34
34
  alg: string;
35
35
  };
36
36
  export declare namespace Button {
37
- type Color = "black" | "white";
38
- type Theme = "ignore-light" | "ignore-dark" | "aware-invert" | "aware-static";
39
- type Hover = "pop" | "glow" | "flare" | "none";
37
+ type Color = 'black' | 'white';
38
+ type Theme = 'ignore-light' | 'ignore-dark' | 'aware-invert' | 'aware-static';
39
+ type Hover = 'pop' | 'glow' | 'flare' | 'none';
40
40
  type Update = boolean;
41
41
  const STYLES_URL = "https://cdn.hello.coop/css/hello-btn.css";
42
42
  const HOVER_MAPPING: {
@@ -47,16 +47,16 @@ export declare namespace Button {
47
47
  };
48
48
  const CLASS_MAPPING: {
49
49
  black: {
50
- "ignore-light": string;
51
- "ignore-dark": string;
52
- "aware-invert": string;
53
- "aware-static": string;
50
+ 'ignore-light': string;
51
+ 'ignore-dark': string;
52
+ 'aware-invert': string;
53
+ 'aware-static': string;
54
54
  };
55
55
  white: {
56
- "ignore-light": string;
57
- "ignore-dark": string;
58
- "aware-invert": string;
59
- "aware-static": string;
56
+ 'ignore-light': string;
57
+ 'ignore-dark': string;
58
+ 'aware-invert': string;
59
+ 'aware-static': string;
60
60
  };
61
61
  };
62
62
  }
package/dist/types.js CHANGED
@@ -17,7 +17,7 @@ export const VALID_IDENTITY_CLAIMS = [
17
17
  'discord',
18
18
  'twitter',
19
19
  'github',
20
- 'gitlab'
20
+ 'gitlab',
21
21
  ];
22
22
  export const VALID_SCOPES = [
23
23
  ...VALID_IDENTITY_CLAIMS,
@@ -55,41 +55,27 @@ export const VALID_PROVIDER_HINT = [
55
55
  'email--',
56
56
  'passkey--',
57
57
  ];
58
- const CLASS_MAPPING = {
59
- black: {
60
- "ignore-light": "",
61
- "ignore-dark": "hello-btn-black-on-dark",
62
- "aware-invert": "hello-btn-black-and-invert",
63
- "aware-static": "hello-btn-black-and-static"
64
- },
65
- white: {
66
- "ignore-light": "hello-btn-white-on-light",
67
- "ignore-dark": "hello-btn-white-on-dark",
68
- "aware-invert": "hello-btn-white-and-invert",
69
- "aware-static": "hello-btn-white-and-static"
70
- },
71
- };
72
58
  export var Button;
73
59
  (function (Button) {
74
60
  Button.STYLES_URL = 'https://cdn.hello.coop/css/hello-btn.css';
75
61
  Button.HOVER_MAPPING = {
76
- "pop": "",
77
- "glow": "hello-btn-hover-glow",
78
- "flare": "hello-btn-hover-flare",
79
- "none": "hello-btn-hover-none"
62
+ pop: '',
63
+ glow: 'hello-btn-hover-glow',
64
+ flare: 'hello-btn-hover-flare',
65
+ none: 'hello-btn-hover-none',
80
66
  };
81
67
  Button.CLASS_MAPPING = {
82
68
  black: {
83
- "ignore-light": "",
84
- "ignore-dark": "hello-btn-black-on-dark",
85
- "aware-invert": "hello-btn-black-and-invert",
86
- "aware-static": "hello-btn-black-and-static"
69
+ 'ignore-light': '',
70
+ 'ignore-dark': 'hello-btn-black-on-dark',
71
+ 'aware-invert': 'hello-btn-black-and-invert',
72
+ 'aware-static': 'hello-btn-black-and-static',
87
73
  },
88
74
  white: {
89
- "ignore-light": "hello-btn-white-on-light",
90
- "ignore-dark": "hello-btn-white-on-dark",
91
- "aware-invert": "hello-btn-white-and-invert",
92
- "aware-static": "hello-btn-white-and-static"
75
+ 'ignore-light': 'hello-btn-white-on-light',
76
+ 'ignore-dark': 'hello-btn-white-on-dark',
77
+ 'aware-invert': 'hello-btn-white-and-invert',
78
+ 'aware-static': 'hello-btn-white-and-static',
93
79
  },
94
80
  };
95
81
  })(Button || (Button = {}));
package/package.json CHANGED
@@ -1,66 +1,66 @@
1
1
  {
2
- "name": "@hellocoop/svelte",
3
- "version": "2.1.7",
4
- "description": "Svelte SDK for Hellō https://hello.dev",
5
- "repository": {
6
- "type": "git",
7
- "url": "git+https://github.com/hellocoop/packages.git"
8
- },
9
- "homepage": "https://www.hello.dev/docs/sdks/svelte",
10
- "scripts": {
11
- "build": "svelte-kit sync && svelte-package && publint",
12
- "prebuild": "rimraf dist node_modules"
13
- },
14
- "exports": {
15
- ".": {
16
- "types": "./dist/index.d.ts",
17
- "svelte": "./dist/index.js"
18
- }
19
- },
20
- "keywords": [
21
- "reactjs",
22
- "react",
23
- "react.js",
24
- "hello",
25
- "openid",
26
- "oidc",
27
- "sso"
28
- ],
29
- "author": {
30
- "name": "Hello Identity Co-op",
31
- "email": "contact@hello.coop",
32
- "url": "https://hello.coop"
33
- },
34
- "license": "MIT",
35
- "bugs": {
36
- "url": "https://github.com/hellocoop/packages/issues"
37
- },
38
- "files": [
39
- "dist",
40
- "!dist/**/*.test.*",
41
- "!dist/**/*.spec.*"
42
- ],
43
- "peerDependencies": {
44
- "svelte": "^4.0.0"
45
- },
46
- "devDependencies": {
47
- "@sveltejs/adapter-auto": "^3.3.1",
48
- "@sveltejs/kit": "^2.9.1",
49
- "@sveltejs/package": "^2.3.7",
50
- "@sveltejs/vite-plugin-svelte": "^5.0.1",
51
- "publint": "^0.2.12",
52
- "svelte": "^5.10.0",
53
- "svelte-check": "^4.1.1",
54
- "tslib": "^2.8.1",
55
- "typescript": "^5.7.2",
56
- "vite": "^6.0.3"
57
- },
58
- "svelte": "./dist/index.js",
59
- "types": "./dist/index.d.ts",
60
- "type": "module",
61
- "gitHead": "8e7b54124db48051b9e03031399e4df1b6e41a4e",
62
- "dependencies": {
63
- "@hellocoop/definitions": "^1.0.9",
64
- "sswr": "^2.1.0"
65
- }
2
+ "name": "@hellocoop/svelte",
3
+ "version": "2.1.8-canary.0",
4
+ "description": "Svelte SDK for Hellō https://hello.dev",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/hellocoop/packages.git"
8
+ },
9
+ "homepage": "https://www.hello.dev/docs/sdks/svelte",
10
+ "scripts": {
11
+ "build": "svelte-kit sync && svelte-package && publint",
12
+ "prebuild": "rimraf dist node_modules"
13
+ },
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "svelte": "./dist/index.js"
18
+ }
19
+ },
20
+ "keywords": [
21
+ "reactjs",
22
+ "react",
23
+ "react.js",
24
+ "hello",
25
+ "openid",
26
+ "oidc",
27
+ "sso"
28
+ ],
29
+ "author": {
30
+ "name": "Hello Identity Co-op",
31
+ "email": "contact@hello.coop",
32
+ "url": "https://hello.coop"
33
+ },
34
+ "license": "MIT",
35
+ "bugs": {
36
+ "url": "https://github.com/hellocoop/packages/issues"
37
+ },
38
+ "files": [
39
+ "dist",
40
+ "!dist/**/*.test.*",
41
+ "!dist/**/*.spec.*"
42
+ ],
43
+ "peerDependencies": {
44
+ "svelte": ">=4.0.0"
45
+ },
46
+ "devDependencies": {
47
+ "@sveltejs/adapter-auto": "^3.3.1",
48
+ "@sveltejs/kit": "^2.9.1",
49
+ "@sveltejs/package": "^2.3.7",
50
+ "@sveltejs/vite-plugin-svelte": "^5.0.1",
51
+ "publint": "^0.2.12",
52
+ "svelte": "^5.10.0",
53
+ "svelte-check": "^4.1.1",
54
+ "tslib": "^2.8.1",
55
+ "typescript": "^5.7.2",
56
+ "vite": "^6.0.3"
57
+ },
58
+ "svelte": "./dist/index.js",
59
+ "types": "./dist/index.d.ts",
60
+ "type": "module",
61
+ "gitHead": "96cc2f3fa1a3724a4a96b19cc7c5d97f04cc49f8",
62
+ "dependencies": {
63
+ "@hellocoop/definitions": "^1.0.9",
64
+ "sswr": "^2.1.0"
65
+ }
66
66
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 Hellō
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.