@htmlbricks/hb-auth-social-login-button 0.71.32 → 0.71.34
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 +3 -2
- package/main.iife.js +1 -1
- package/main.iife.js.map +1 -1
- package/manifest.json +20 -3
- package/package.json +2 -2
- package/types/webcomponent.type.d.ts +2 -0
- package/types/webcomponent_events.type.d.json +14 -0
package/manifest.json
CHANGED
|
@@ -40,6 +40,19 @@
|
|
|
40
40
|
],
|
|
41
41
|
"type": "object"
|
|
42
42
|
},
|
|
43
|
+
"oauthFlowRedirectStart": {
|
|
44
|
+
"additionalProperties": false,
|
|
45
|
+
"description": "Emitted right before navigating to the provider (user chose social login).",
|
|
46
|
+
"properties": {
|
|
47
|
+
"provider": {
|
|
48
|
+
"$ref": "#/definitions/IProvider"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"required": [
|
|
52
|
+
"provider"
|
|
53
|
+
],
|
|
54
|
+
"type": "object"
|
|
55
|
+
},
|
|
43
56
|
"oauthFlowSuccess": {
|
|
44
57
|
"additionalProperties": false,
|
|
45
58
|
"properties": {
|
|
@@ -56,6 +69,7 @@
|
|
|
56
69
|
"required": [
|
|
57
70
|
"oauthFlowSuccess",
|
|
58
71
|
"oauthFlowInit",
|
|
72
|
+
"oauthFlowRedirectStart",
|
|
59
73
|
"oauthFlowCustom"
|
|
60
74
|
],
|
|
61
75
|
"type": "object"
|
|
@@ -148,7 +162,7 @@
|
|
|
148
162
|
}
|
|
149
163
|
}
|
|
150
164
|
},
|
|
151
|
-
"description": "Clickable OAuth provider tile (default SVGs for Google, GitHub, GitLab, Facebook, Authentik; overridable via slot). Builds the provider authorization URL from `provider` params or redirects to a prebuilt `url`, then on return parses the current page URL to exchange the code/token with `simple-serverless-auth-client` when `social_auth_server_url` and `auth_cookie_name` are set. Emits `oauthFlowInit`, `oauthFlowSuccess`, or `oauthFlowCustom`
|
|
165
|
+
"description": "Clickable OAuth provider tile (default SVGs for Google, GitHub, GitLab, Facebook, Authentik; overridable via slot). Builds the provider authorization URL from `provider` params or redirects to a prebuilt `url`, then on return parses the current page URL to exchange the code/token with `simple-serverless-auth-client` when `social_auth_server_url` and `auth_cookie_name` are set. Emits `oauthFlowRedirectStart` immediately before leaving for the provider, then `oauthFlowInit`, `oauthFlowSuccess`, or `oauthFlowCustom` as the flow progresses.",
|
|
152
166
|
"storybookArgs": {
|
|
153
167
|
"provider": {
|
|
154
168
|
"control": {
|
|
@@ -158,6 +172,9 @@
|
|
|
158
172
|
"oauthFlowInit": {
|
|
159
173
|
"action": "oauthFlowInitEvent"
|
|
160
174
|
},
|
|
175
|
+
"oauthFlowRedirectStart": {
|
|
176
|
+
"action": "oauthFlowRedirectStartEvent"
|
|
177
|
+
},
|
|
161
178
|
"oauthFlowSuccess": {
|
|
162
179
|
"action": "oauthFlowSuccessEvent"
|
|
163
180
|
},
|
|
@@ -220,7 +237,7 @@
|
|
|
220
237
|
}
|
|
221
238
|
}
|
|
222
239
|
],
|
|
223
|
-
"iifeIntegrity": "sha384-
|
|
240
|
+
"iifeIntegrity": "sha384-iZ6GOuDrkIBK2tRZNutCrR11vxc9PZo6P3NFng/xUVaXfR8i5aQXczpVBdavM/P5",
|
|
224
241
|
"dependencies": [],
|
|
225
242
|
"screenshots": [],
|
|
226
243
|
"licenses": [
|
|
@@ -243,5 +260,5 @@
|
|
|
243
260
|
},
|
|
244
261
|
"iifePath": "main.iife.js",
|
|
245
262
|
"repoName": "@htmlbricks/hb-auth-social-login-button",
|
|
246
|
-
"version": "0.71.
|
|
263
|
+
"version": "0.71.34"
|
|
247
264
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-auth-social-login-button",
|
|
3
|
-
"version": "0.71.
|
|
3
|
+
"version": "0.71.34",
|
|
4
4
|
"contributors": [],
|
|
5
|
-
"description": "Clickable OAuth provider tile (default SVGs for Google, GitHub, GitLab, Facebook, Authentik; overridable via slot). Builds the provider authorization URL from `provider` params or redirects to a prebuilt `url`, then on return parses the current page URL to exchange the code/token with `simple-serverless-auth-client` when `social_auth_server_url` and `auth_cookie_name` are set. Emits `oauthFlowInit`, `oauthFlowSuccess`, or `oauthFlowCustom`
|
|
5
|
+
"description": "Clickable OAuth provider tile (default SVGs for Google, GitHub, GitLab, Facebook, Authentik; overridable via slot). Builds the provider authorization URL from `provider` params or redirects to a prebuilt `url`, then on return parses the current page URL to exchange the code/token with `simple-serverless-auth-client` when `social_auth_server_url` and `auth_cookie_name` are set. Emits `oauthFlowRedirectStart` immediately before leaving for the provider, then `oauthFlowInit`, `oauthFlowSuccess`, or `oauthFlowCustom` as the flow progresses.",
|
|
6
6
|
"licenses": [
|
|
7
7
|
{
|
|
8
8
|
"type": "Apache-2.0",
|
|
@@ -21,5 +21,7 @@ export type Component = {
|
|
|
21
21
|
export type Events = {
|
|
22
22
|
oauthFlowSuccess: { token: string };
|
|
23
23
|
oauthFlowInit: { token?: string; provider: IProvider; tmpCode?: string; redirect_uri?: string };
|
|
24
|
+
/** Emitted right before navigating to the provider (user chose social login). */
|
|
25
|
+
oauthFlowRedirectStart: { provider: IProvider };
|
|
24
26
|
oauthFlowCustom: { provider: IProvider };
|
|
25
27
|
};
|
|
@@ -38,6 +38,19 @@
|
|
|
38
38
|
],
|
|
39
39
|
"type": "object"
|
|
40
40
|
},
|
|
41
|
+
"oauthFlowRedirectStart": {
|
|
42
|
+
"additionalProperties": false,
|
|
43
|
+
"description": "Emitted right before navigating to the provider (user chose social login).",
|
|
44
|
+
"properties": {
|
|
45
|
+
"provider": {
|
|
46
|
+
"$ref": "#/definitions/IProvider"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"required": [
|
|
50
|
+
"provider"
|
|
51
|
+
],
|
|
52
|
+
"type": "object"
|
|
53
|
+
},
|
|
41
54
|
"oauthFlowSuccess": {
|
|
42
55
|
"additionalProperties": false,
|
|
43
56
|
"properties": {
|
|
@@ -54,6 +67,7 @@
|
|
|
54
67
|
"required": [
|
|
55
68
|
"oauthFlowSuccess",
|
|
56
69
|
"oauthFlowInit",
|
|
70
|
+
"oauthFlowRedirectStart",
|
|
57
71
|
"oauthFlowCustom"
|
|
58
72
|
],
|
|
59
73
|
"type": "object"
|