@ctx-core/auth0-ui 12.1.6 → 12.1.11

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/CHANGELOG.md CHANGED
@@ -1,5 +1,100 @@
1
1
  # @ctx-core/auth0-ui
2
2
 
3
+ ## 12.1.11
4
+
5
+ ### Patch Changes
6
+
7
+ - tsconfig.json: "target": "ES2021"
8
+ - Updated dependencies
9
+ - @ctx-core/auth0@27.0.8
10
+ - @ctx-core/auth0-management@7.0.8
11
+ - @ctx-core/dialog@17.0.7
12
+ - @ctx-core/dom@11.0.47
13
+ - @ctx-core/error@11.1.16
14
+ - @ctx-core/fetch@11.0.100
15
+ - @ctx-core/function@20.2.19
16
+ - @ctx-core/http@9.0.17
17
+ - @ctx-core/jwt@10.0.45
18
+ - @ctx-core/logger@9.0.39
19
+ - @ctx-core/object@22.0.7
20
+ - @ctx-core/store@27.0.54
21
+
22
+ ## 12.1.10
23
+
24
+ ### Patch Changes
25
+
26
+ - package.json: "types": "./src/index.ts": better editing experience
27
+ - Updated dependencies
28
+ - @ctx-core/auth0@27.0.7
29
+ - @ctx-core/auth0-management@7.0.7
30
+ - @ctx-core/dialog@17.0.6
31
+ - @ctx-core/dom@11.0.46
32
+ - @ctx-core/error@11.1.15
33
+ - @ctx-core/fetch@11.0.99
34
+ - @ctx-core/function@20.2.18
35
+ - @ctx-core/http@9.0.16
36
+ - @ctx-core/jwt@10.0.44
37
+ - @ctx-core/logger@9.0.38
38
+ - @ctx-core/object@22.0.6
39
+ - @ctx-core/store@27.0.53
40
+
41
+ ## 12.1.9
42
+
43
+ ### Patch Changes
44
+
45
+ - fix: build
46
+ - Updated dependencies
47
+ - @ctx-core/auth0@27.0.6
48
+ - @ctx-core/auth0-management@7.0.6
49
+ - @ctx-core/dialog@17.0.5
50
+ - @ctx-core/dom@11.0.45
51
+ - @ctx-core/error@11.1.14
52
+ - @ctx-core/fetch@11.0.98
53
+ - @ctx-core/function@20.2.17
54
+ - @ctx-core/http@9.0.15
55
+ - @ctx-core/jwt@10.0.43
56
+ - @ctx-core/logger@9.0.37
57
+ - @ctx-core/object@22.0.5
58
+ - @ctx-core/store@27.0.52
59
+
60
+ ## 12.1.8
61
+
62
+ ### Patch Changes
63
+
64
+ - \*.d.ts export
65
+ - Updated dependencies
66
+ - @ctx-core/auth0@27.0.5
67
+ - @ctx-core/auth0-management@7.0.5
68
+ - @ctx-core/dialog@17.0.4
69
+ - @ctx-core/dom@11.0.44
70
+ - @ctx-core/error@11.1.13
71
+ - @ctx-core/fetch@11.0.97
72
+ - @ctx-core/function@20.2.16
73
+ - @ctx-core/http@9.0.14
74
+ - @ctx-core/jwt@10.0.42
75
+ - @ctx-core/logger@9.0.36
76
+ - @ctx-core/object@22.0.4
77
+ - @ctx-core/store@27.0.51
78
+
79
+ ## 12.1.7
80
+
81
+ ### Patch Changes
82
+
83
+ - fix: tsconfig.json: "rootDir": "."
84
+ - Updated dependencies
85
+ - @ctx-core/auth0@27.0.4
86
+ - @ctx-core/auth0-management@7.0.4
87
+ - @ctx-core/dialog@17.0.3
88
+ - @ctx-core/dom@11.0.43
89
+ - @ctx-core/error@11.1.12
90
+ - @ctx-core/fetch@11.0.96
91
+ - @ctx-core/function@20.2.15
92
+ - @ctx-core/http@9.0.13
93
+ - @ctx-core/jwt@10.0.41
94
+ - @ctx-core/logger@9.0.35
95
+ - @ctx-core/object@22.0.3
96
+ - @ctx-core/store@27.0.50
97
+
3
98
  ## 12.1.6
4
99
 
5
100
  ### Patch Changes
@@ -0,0 +1 @@
1
+ export declare const auth0_ui_ctx_key: unique symbol;
@@ -0,0 +1,2 @@
1
+ export declare function auth_script_html_(): string;
2
+ export { auth_script_html_ as _auth_script_html, auth_script_html_ as _html__script__auth, };
@@ -0,0 +1,2 @@
1
+ import type { Ctx } from '@ctx-core/object';
2
+ export declare function getContext_auth0_ui_ctx(): Ctx;
@@ -0,0 +1,4 @@
1
+ export * from './auth0_ui_ctx_key.js';
2
+ export * from './auth_script_html_.js';
3
+ export * from './getContext_auth0_ui_ctx.js';
4
+ export * from './ui/index.js';
@@ -0,0 +1,56 @@
1
+ import type { auth0_body__T, auth0_client_id_body_I, auth0_grant_type_body_I, login_data_I, logout_auth0_token_error_T, open_auth0_forgot_password_check_email_T, open_auth0_login_T, password_realm_body__T, password_realm_body_T, post_auth0_auth_change_password_T, post_auth0_dbconnections_signup_T, post_auth0_oauth_token_body_I, post_auth0_oauth_token_T, post_auth0_passwordless_start_body_T, post_auth0_passwordless_start_T, signup_data_I } from '@ctx-core/auth0';
2
+ import { noop } from '@ctx-core/function';
3
+ import type { Ctx } from '@ctx-core/object';
4
+ export declare class Auth0_c {
5
+ protected ctx: Ctx;
6
+ constructor(ctx: Ctx);
7
+ readonly login_auth0_body_: auth0_body__T<login_data_password_realm_body_I>;
8
+ readonly login_password_realm_body_: password_realm_body__T<login_data_password_realm_body_I>;
9
+ readonly signup_auth0_body_: auth0_body__T<signup_data_password_realm_body_I>;
10
+ readonly signup_password_realm_body_: password_realm_body__T<signup_data_password_realm_body_I>;
11
+ readonly auth0_opened_class: import("@ctx-core/auth0").auth0_opened_class$_T;
12
+ readonly auth0_token_json$: import("@ctx-core/auth0").auth0_token_json$_T;
13
+ readonly auth0_token_error: import("@ctx-core/auth0").auth0_token_error$_T;
14
+ readonly clear_auth0_token_error: import("@ctx-core/auth0").clear_auth0_token_error_T;
15
+ readonly close_auth0: import("@ctx-core/auth0").close_auth0_T;
16
+ readonly logout_auth0_token_error: logout_auth0_token_error_T;
17
+ readonly open_auth0_login: open_auth0_login_T;
18
+ readonly open_auth0_forgot_password_check_email: open_auth0_forgot_password_check_email_T;
19
+ readonly post_auth0_dbconnections_signup: post_auth0_dbconnections_signup_T;
20
+ readonly post_auth0_oauth_token: post_auth0_oauth_token_T;
21
+ readonly post_auth0_auth_change_password: post_auth0_auth_change_password_T;
22
+ readonly post_auth0_passwordless_start: post_auth0_passwordless_start_T;
23
+ readonly onMount: (root: HTMLElement) => Promise<void>;
24
+ readonly login: (data: login_data_I, schedule_forms_clear?: () => void) => Promise<void>;
25
+ readonly signup: (data: signup_data_I, schedule_forms_clear?: () => void) => Promise<void>;
26
+ readonly change_password: (form: {
27
+ password: string;
28
+ }, schedule_forms_clear?: () => void) => Promise<void>;
29
+ readonly schedule_forms_clear_: (root: HTMLElement) => void;
30
+ readonly schedule_forms_clear: (root: HTMLElement) => void;
31
+ readonly onsubmit_signup: (event: Event, ctx: onsubmit_signup_Ctx, schedule_forms_clear?: () => void) => Promise<false | undefined>;
32
+ readonly onsubmit_login: (event: Event, ctx: onsubmit_login_Ctx, schedule_forms_clear?: () => void) => Promise<void>;
33
+ readonly onsubmit_forgot_password: (event: Event, ctx: onsubmit_forgot_password_Ctx) => Promise<void>;
34
+ readonly onsubmit_change_password: (event: Event, ctx: onsubmit_change_password_Ctx, schedule_forms_clear?: typeof noop) => Promise<void>;
35
+ readonly onclose: (event: MouseEvent) => Promise<void>;
36
+ }
37
+ export interface signup_data_password_realm_body_I extends signup_data_I, auth0_client_id_body_I, post_auth0_passwordless_start_body_T, password_realm_body_T, auth0_grant_type_body_I, post_auth0_oauth_token_body_I {
38
+ }
39
+ export interface login_data_password_realm_body_I extends login_data_I, auth0_client_id_body_I, post_auth0_passwordless_start_body_T, password_realm_body_T, auth0_grant_type_body_I, post_auth0_oauth_token_body_I {
40
+ }
41
+ export interface onsubmit_change_password_Ctx {
42
+ password_input: HTMLInputElement;
43
+ password_confirmation_input: HTMLInputElement;
44
+ }
45
+ export interface onsubmit_forgot_password_Ctx {
46
+ email_input: HTMLInputElement;
47
+ }
48
+ export interface onsubmit_login_Ctx {
49
+ username_login_input: HTMLInputElement;
50
+ password_login_input: HTMLInputElement;
51
+ }
52
+ export interface onsubmit_signup_Ctx {
53
+ email_input: HTMLInputElement;
54
+ password_input: HTMLInputElement;
55
+ password_confirmation_input: HTMLInputElement;
56
+ }
@@ -0,0 +1,8 @@
1
+ import 'svelte';
2
+ export * as Auth0 from './Auth0.svelte';
3
+ export * as Auth0_Dialog_Close from './Auth0_Dialog_Close.svelte';
4
+ export * as Auth0_Change_Password_Form from './Auth0_Change_Password_Form.svelte';
5
+ export * as Auth0_Forgot_Password_Check_Email_Form from './Auth0_Forgot_Password_Check_Email_Form.svelte';
6
+ export * as Auth0_Forgot_Password_Form from './Auth0_Forgot_Password_Form.svelte';
7
+ export * as Auth0_Login_Form from './Auth0_Login_Form.svelte';
8
+ export * as Auth0_Signup_Form from './Auth0_Signup_Form.svelte';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctx-core/auth0-ui",
3
- "version": "12.1.6",
3
+ "version": "12.1.11",
4
4
  "description": "ctx-core auth0 ui component & express endpoints",
5
5
  "keywords": [
6
6
  "ctx-core",
@@ -18,39 +18,38 @@
18
18
  "author": "Brian Takita",
19
19
  "type": "module",
20
20
  "svelte": "./dist/index.js",
21
+ "types": "./src/index.ts",
21
22
  "exports": {
22
23
  ".": {
23
- "import": "./dist/index.js",
24
- "types": "./src/index.ts"
24
+ "import": "./dist/index.js"
25
25
  },
26
26
  "./package.json": "./package.json"
27
27
  },
28
28
  "dependencies": {
29
- "@ctx-core/auth0": "^27.0.3",
30
- "@ctx-core/auth0-management": "^7.0.3",
31
- "@ctx-core/dialog": "^17.0.2",
32
- "@ctx-core/dom": "^11.0.42",
33
- "@ctx-core/error": "^11.1.11",
34
- "@ctx-core/fetch": "^11.0.95",
35
- "@ctx-core/function": "^20.2.14",
36
- "@ctx-core/http": "^9.0.12",
37
- "@ctx-core/jwt": "^10.0.40",
38
- "@ctx-core/logger": "^9.0.34",
39
- "@ctx-core/object": "^22.0.2",
40
- "@ctx-core/store": "^27.0.49",
29
+ "@ctx-core/auth0": "^27.0.8",
30
+ "@ctx-core/auth0-management": "^7.0.8",
31
+ "@ctx-core/dialog": "^17.0.7",
32
+ "@ctx-core/dom": "^11.0.47",
33
+ "@ctx-core/error": "^11.1.16",
34
+ "@ctx-core/fetch": "^11.0.100",
35
+ "@ctx-core/function": "^20.2.19",
36
+ "@ctx-core/http": "^9.0.17",
37
+ "@ctx-core/jwt": "^10.0.45",
38
+ "@ctx-core/logger": "^9.0.39",
39
+ "@ctx-core/object": "^22.0.7",
40
+ "@ctx-core/store": "^27.0.54",
41
41
  "@swc/cli": "^0.1.55",
42
42
  "@swc/core": "^1.2.120",
43
43
  "auth0-js": "^9.18.0",
44
44
  "jsonwebtoken": "^8.5.1",
45
- "polka": "^0.5.2"
45
+ "polka": "next"
46
46
  },
47
47
  "devDependencies": {
48
- "@ctx-core/ctx-core-package-tools": "^8.0.89",
49
- "@ctx-core/dialog-ui-svelte": "^1.0.3",
48
+ "@ctx-core/ctx-core-package-tools": "^8.0.94",
49
+ "@ctx-core/dialog-ui-svelte": "^1.0.8",
50
50
  "@sveltejs/adapter-auto": "next",
51
51
  "@sveltejs/kit": "next",
52
52
  "@types/jsonwebtoken": "^8.5.6",
53
- "@types/polka": "^0.5.3",
54
53
  "@types/trouter": "^3.1.0",
55
54
  "rimraf": "^3.0.2",
56
55
  "svelte": "^3.44.3",
@@ -66,8 +65,11 @@
66
65
  },
67
66
  "scripts": {
68
67
  "build": "npm run compile",
69
- "clean": "rimraf dist",
70
- "compile": "swc src --out-dir dist --copy-files --source-maps --config-file .swcrc",
68
+ "clean": "rimraf dist && npm run clean_tsbuildinfo",
69
+ "clean_tsbuildinfo": "rm -f tsconfig.tsbuildinfo && rm -f dist/**/*.d.ts",
70
+ "compile": "npm run compile_source && npm run compile_declaration",
71
+ "compile_source": "swc src --out-dir dist --copy-files --source-maps --config-file .swcrc",
72
+ "compile_declaration": "npm run clean_tsbuildinfo && tsc --declaration --emitDeclarationOnly --declarationDir dist",
71
73
  "exec": "$@"
72
74
  }
73
75
  }
package/tsconfig.json CHANGED
@@ -19,11 +19,11 @@
19
19
  "noUnusedParameters": true,
20
20
  "outDir": "dist",
21
21
  "resolveJsonModule": true,
22
- "rootDir": "src",
22
+ "rootDir": ".",
23
23
  "sourceMap": true,
24
24
  "strict": true,
25
25
  "strictFunctionTypes": true,
26
- "target": "ES2020",
26
+ "target": "ES2021",
27
27
  "typeRoots": [
28
28
  "../../../node_modules/@types",
29
29
  "../../node_modules/@types",