@htmlbricks/hb-auth-social-login-button 0.71.33 → 0.71.35
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 +7 -6
- package/main.iife.js +5 -3
- package/main.iife.js.map +1 -1
- package/manifest.json +28 -6
- 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
|
},
|
|
@@ -167,13 +184,18 @@
|
|
|
167
184
|
},
|
|
168
185
|
"styleSetup": {
|
|
169
186
|
"vars": [],
|
|
170
|
-
"parts": [
|
|
187
|
+
"parts": [
|
|
188
|
+
{
|
|
189
|
+
"name": "provider_icon",
|
|
190
|
+
"description": "Default built-in provider SVG (GitLab, GitHub, Facebook, Google, Authentik). Exposed so the host can adjust size, filters, or colors (e.g. `hb-auth-social-login-button::part(provider_icon) { ... }`)."
|
|
191
|
+
}
|
|
192
|
+
]
|
|
171
193
|
},
|
|
172
194
|
"contributors": [],
|
|
173
195
|
"htmlSlots": [
|
|
174
196
|
{
|
|
175
|
-
"name": "
|
|
176
|
-
"description": ""
|
|
197
|
+
"name": "default",
|
|
198
|
+
"description": "Custom provider icon or label inside the login control."
|
|
177
199
|
}
|
|
178
200
|
],
|
|
179
201
|
"i18n": [
|
|
@@ -220,7 +242,7 @@
|
|
|
220
242
|
}
|
|
221
243
|
}
|
|
222
244
|
],
|
|
223
|
-
"iifeIntegrity": "sha384-
|
|
245
|
+
"iifeIntegrity": "sha384-wmfNqLRHfyegG/jnA5Wn6KwtEQ2k2szMpRkoSWPGhjuOL9hRDCWJzF5sYFTsnhtO",
|
|
224
246
|
"dependencies": [],
|
|
225
247
|
"screenshots": [],
|
|
226
248
|
"licenses": [
|
|
@@ -243,5 +265,5 @@
|
|
|
243
265
|
},
|
|
244
266
|
"iifePath": "main.iife.js",
|
|
245
267
|
"repoName": "@htmlbricks/hb-auth-social-login-button",
|
|
246
|
-
"version": "0.71.
|
|
268
|
+
"version": "0.71.35"
|
|
247
269
|
}
|
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.35",
|
|
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"
|