@htmlbricks/hb-auth 0.14.39 → 0.14.42

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/extra/docs.ts CHANGED
@@ -6,25 +6,26 @@ export const storybookArgs = {
6
6
  options: ["login", "register", "activate", "recover"],
7
7
  control: { type: "select" }, // Automatically inferred when 'options' is defined
8
8
  },
9
- language: { control: { type: "string" } },
9
+ enable_recover_password: { control: { type: "boolean" } },
10
+ language: { control: { type: "text" } },
10
11
  disableregister: { control: { type: "boolean" } },
11
- logouri: { control: { type: "string" } },
12
- loginuri: { control: { type: "string" } },
13
- registeruri: { control: { type: "string" } },
12
+ logouri: { control: { type: "text" } },
13
+ loginuri: { control: { type: "text" } },
14
+ registeruri: { control: { type: "text" } },
14
15
  login: { action: "loginEvent" },
15
16
  register: { action: "registerEvent" },
16
17
  recoverOrActivate: { action: "recoverOrActivateEvent" },
17
18
  oauth2providers: { control: { type: "array" } },
18
- sessionkey: { control: { type: "string" } },
19
- redirectonlogin: { control: { type: "string" } },
20
- redirectoncreate: { control: { type: "string" } },
21
- activateuri: { control: { type: "string" } },
22
- recoveruri: { control: { type: "string" } },
23
- requestmethod: { control: { type: "string" } },
24
- appendqueryparams: { control: { type: "string" } },
25
- appendbodyparams: { control: { type: "string" } },
26
- passwordpattern: { control: { type: "string" } },
27
- recoverycode: { control: { type: "string" } },
19
+ sessionkey: { control: { type: "text" } },
20
+ redirectonlogin: { control: { type: "text" } },
21
+ redirectoncreate: { control: { type: "text" } },
22
+ activateuri: { control: { type: "text" } },
23
+ recoveruri: { control: { type: "text" } },
24
+ requestmethod: { control: { type: "text" } },
25
+ appendqueryparams: { control: { type: "text" } },
26
+ appendbodyparams: { control: { type: "text" } },
27
+ passwordpattern: { control: { type: "text" } },
28
+ recoverycode: { control: { type: "text" } },
28
29
  };
29
30
 
30
31
  const cssVars: CssVar[] = [
@@ -79,6 +80,7 @@ const examples: { name: string; description?: string; data: Component }[] = [
79
80
  logouri: "https://upload.wikimedia.org/wikipedia/commons/a/af/Free_Content_Logo.svg",
80
81
  },
81
82
  },
83
+
82
84
  {
83
85
  name: "LoginEn",
84
86
  data: {
@@ -121,6 +123,14 @@ const examples: { name: string; description?: string; data: Component }[] = [
121
123
  ],
122
124
  },
123
125
  },
126
+ {
127
+ name: "forgotpassword",
128
+ data: {
129
+ enable_recover_password: true,
130
+ type: "forgotpassword",
131
+ logouri: "https://upload.wikimedia.org/wikipedia/commons/a/af/Free_Content_Logo.svg",
132
+ },
133
+ },
124
134
  ];
125
135
  export const componentSetup: ComponentSetup & { examples: { name: string; description?: string; data: Component }[] } = {
126
136
  definitions: null as any,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@htmlbricks/hb-auth",
3
3
  "displayName": "Svelte Boostrap Login and Register WebComponent",
4
4
  "description": "Svelte Boostrap Login and Register WebComponent",
5
- "version": "0.14.39",
5
+ "version": "0.14.42",
6
6
  "main": "release/release.js",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -30,7 +30,7 @@
30
30
  "prepublish": "npm run build:release"
31
31
  },
32
32
  "devDependencies": {
33
- "@htmlbricks/hb-jsutils": "^0.14.39",
33
+ "@htmlbricks/hb-jsutils": "^0.14.42",
34
34
  "@htmlbricks/manifester": "^0.0.22",
35
35
  "@rollup/plugin-alias": "^3.1.2",
36
36
  "@rollup/plugin-commonjs": "^18.0.0",
@@ -76,5 +76,5 @@
76
76
  "html5-webcomponents"
77
77
  ],
78
78
  "contributors": [],
79
- "gitHead": "84f54385467a2f4ed9157438b096874211cf9863"
79
+ "gitHead": "3a4c9d9c468997ee7ecf992348483b041b8636f3"
80
80
  }
package/release/docs.js CHANGED
@@ -3,25 +3,26 @@ export var storybookArgs = {
3
3
  options: ["login", "register", "activate", "recover"],
4
4
  control: { type: "select" }
5
5
  },
6
- language: { control: { type: "string" } },
6
+ enable_recover_password: { control: { type: "boolean" } },
7
+ language: { control: { type: "text" } },
7
8
  disableregister: { control: { type: "boolean" } },
8
- logouri: { control: { type: "string" } },
9
- loginuri: { control: { type: "string" } },
10
- registeruri: { control: { type: "string" } },
9
+ logouri: { control: { type: "text" } },
10
+ loginuri: { control: { type: "text" } },
11
+ registeruri: { control: { type: "text" } },
11
12
  login: { action: "loginEvent" },
12
13
  register: { action: "registerEvent" },
13
14
  recoverOrActivate: { action: "recoverOrActivateEvent" },
14
15
  oauth2providers: { control: { type: "array" } },
15
- sessionkey: { control: { type: "string" } },
16
- redirectonlogin: { control: { type: "string" } },
17
- redirectoncreate: { control: { type: "string" } },
18
- activateuri: { control: { type: "string" } },
19
- recoveruri: { control: { type: "string" } },
20
- requestmethod: { control: { type: "string" } },
21
- appendqueryparams: { control: { type: "string" } },
22
- appendbodyparams: { control: { type: "string" } },
23
- passwordpattern: { control: { type: "string" } },
24
- recoverycode: { control: { type: "string" } }
16
+ sessionkey: { control: { type: "text" } },
17
+ redirectonlogin: { control: { type: "text" } },
18
+ redirectoncreate: { control: { type: "text" } },
19
+ activateuri: { control: { type: "text" } },
20
+ recoveruri: { control: { type: "text" } },
21
+ requestmethod: { control: { type: "text" } },
22
+ appendqueryparams: { control: { type: "text" } },
23
+ appendbodyparams: { control: { type: "text" } },
24
+ passwordpattern: { control: { type: "text" } },
25
+ recoverycode: { control: { type: "text" } }
25
26
  };
26
27
  var cssVars = [
27
28
  { name: "--bs-primary", valueType: "color", theme: "bootstrap", defaultValue: "#07689f" },
@@ -115,6 +116,14 @@ var examples = [
115
116
  ]
116
117
  }
117
118
  },
119
+ {
120
+ name: "forgotpassword",
121
+ data: {
122
+ enable_recover_password: true,
123
+ type: "forgotpassword",
124
+ logouri: "https://upload.wikimedia.org/wikipedia/commons/a/af/Free_Content_Logo.svg"
125
+ }
126
+ },
118
127
  ];
119
128
  export var componentSetup = {
120
129
  definitions: null,
@@ -1 +1 @@
1
- {"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,IAAM,a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AClB,SAAS,WAAA;IACT,IAAI,EAAE,aAAa;IACnB,QAAQ,UAAA;IACR,WAAW,EAAE,EAAE;IACf,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChF,UAAU,EAAE,WAAW;IACvB,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,YAAY;IACtB,IAAI,EAAE,CAAC,YAAY,CAAC;IACpB,IAAI,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE;IAC9B,QAAQ,EAAE,oBAAoB;IAC9B,QAAQ,EAAE,qBAAqB;IAC/B,OAAO,EAAE,IAAW;CACpB,CAAC"}
package/release/docs.ts CHANGED
@@ -6,25 +6,26 @@ export const storybookArgs = {
6
6
  options: ["login", "register", "activate", "recover"],
7
7
  control: { type: "select" }, // Automatically inferred when 'options' is defined
8
8
  },
9
- language: { control: { type: "string" } },
9
+ enable_recover_password: { control: { type: "boolean" } },
10
+ language: { control: { type: "text" } },
10
11
  disableregister: { control: { type: "boolean" } },
11
- logouri: { control: { type: "string" } },
12
- loginuri: { control: { type: "string" } },
13
- registeruri: { control: { type: "string" } },
12
+ logouri: { control: { type: "text" } },
13
+ loginuri: { control: { type: "text" } },
14
+ registeruri: { control: { type: "text" } },
14
15
  login: { action: "loginEvent" },
15
16
  register: { action: "registerEvent" },
16
17
  recoverOrActivate: { action: "recoverOrActivateEvent" },
17
18
  oauth2providers: { control: { type: "array" } },
18
- sessionkey: { control: { type: "string" } },
19
- redirectonlogin: { control: { type: "string" } },
20
- redirectoncreate: { control: { type: "string" } },
21
- activateuri: { control: { type: "string" } },
22
- recoveruri: { control: { type: "string" } },
23
- requestmethod: { control: { type: "string" } },
24
- appendqueryparams: { control: { type: "string" } },
25
- appendbodyparams: { control: { type: "string" } },
26
- passwordpattern: { control: { type: "string" } },
27
- recoverycode: { control: { type: "string" } },
19
+ sessionkey: { control: { type: "text" } },
20
+ redirectonlogin: { control: { type: "text" } },
21
+ redirectoncreate: { control: { type: "text" } },
22
+ activateuri: { control: { type: "text" } },
23
+ recoveruri: { control: { type: "text" } },
24
+ requestmethod: { control: { type: "text" } },
25
+ appendqueryparams: { control: { type: "text" } },
26
+ appendbodyparams: { control: { type: "text" } },
27
+ passwordpattern: { control: { type: "text" } },
28
+ recoverycode: { control: { type: "text" } },
28
29
  };
29
30
 
30
31
  const cssVars: CssVar[] = [
@@ -79,6 +80,7 @@ const examples: { name: string; description?: string; data: Component }[] = [
79
80
  logouri: "https://upload.wikimedia.org/wikipedia/commons/a/af/Free_Content_Logo.svg",
80
81
  },
81
82
  },
83
+
82
84
  {
83
85
  name: "LoginEn",
84
86
  data: {
@@ -121,6 +123,14 @@ const examples: { name: string; description?: string; data: Component }[] = [
121
123
  ],
122
124
  },
123
125
  },
126
+ {
127
+ name: "forgotpassword",
128
+ data: {
129
+ enable_recover_password: true,
130
+ type: "forgotpassword",
131
+ logouri: "https://upload.wikimedia.org/wikipedia/commons/a/af/Free_Content_Logo.svg",
132
+ },
133
+ },
124
134
  ];
125
135
  export const componentSetup: ComponentSetup & { examples: { name: string; description?: string; data: Component }[] } = {
126
136
  definitions: null as any,
@@ -106,6 +106,9 @@
106
106
  "disableregister": {
107
107
  "type": "boolean"
108
108
  },
109
+ "enable_recover_password": {
110
+ "type": "boolean"
111
+ },
109
112
  "id": {
110
113
  "type": "string"
111
114
  },
@@ -170,7 +173,7 @@
170
173
  "register",
171
174
  "activate",
172
175
  "recover",
173
- "forgetpassword"
176
+ "forgotpassword"
174
177
  ],
175
178
  "type": "string"
176
179
  }
@@ -192,9 +195,14 @@
192
195
  "type": "select"
193
196
  }
194
197
  },
198
+ "enable_recover_password": {
199
+ "control": {
200
+ "type": "boolean"
201
+ }
202
+ },
195
203
  "language": {
196
204
  "control": {
197
- "type": "string"
205
+ "type": "text"
198
206
  }
199
207
  },
200
208
  "disableregister": {
@@ -204,17 +212,17 @@
204
212
  },
205
213
  "logouri": {
206
214
  "control": {
207
- "type": "string"
215
+ "type": "text"
208
216
  }
209
217
  },
210
218
  "loginuri": {
211
219
  "control": {
212
- "type": "string"
220
+ "type": "text"
213
221
  }
214
222
  },
215
223
  "registeruri": {
216
224
  "control": {
217
- "type": "string"
225
+ "type": "text"
218
226
  }
219
227
  },
220
228
  "login": {
@@ -233,52 +241,52 @@
233
241
  },
234
242
  "sessionkey": {
235
243
  "control": {
236
- "type": "string"
244
+ "type": "text"
237
245
  }
238
246
  },
239
247
  "redirectonlogin": {
240
248
  "control": {
241
- "type": "string"
249
+ "type": "text"
242
250
  }
243
251
  },
244
252
  "redirectoncreate": {
245
253
  "control": {
246
- "type": "string"
254
+ "type": "text"
247
255
  }
248
256
  },
249
257
  "activateuri": {
250
258
  "control": {
251
- "type": "string"
259
+ "type": "text"
252
260
  }
253
261
  },
254
262
  "recoveruri": {
255
263
  "control": {
256
- "type": "string"
264
+ "type": "text"
257
265
  }
258
266
  },
259
267
  "requestmethod": {
260
268
  "control": {
261
- "type": "string"
269
+ "type": "text"
262
270
  }
263
271
  },
264
272
  "appendqueryparams": {
265
273
  "control": {
266
- "type": "string"
274
+ "type": "text"
267
275
  }
268
276
  },
269
277
  "appendbodyparams": {
270
278
  "control": {
271
- "type": "string"
279
+ "type": "text"
272
280
  }
273
281
  },
274
282
  "passwordpattern": {
275
283
  "control": {
276
- "type": "string"
284
+ "type": "text"
277
285
  }
278
286
  },
279
287
  "recoverycode": {
280
288
  "control": {
281
- "type": "string"
289
+ "type": "text"
282
290
  }
283
291
  }
284
292
  },
@@ -410,6 +418,14 @@
410
418
  }
411
419
  ]
412
420
  }
421
+ },
422
+ {
423
+ "name": "forgotpassword",
424
+ "data": {
425
+ "enable_recover_password": true,
426
+ "type": "forgotpassword",
427
+ "logouri": "https://upload.wikimedia.org/wikipedia/commons/a/af/Free_Content_Logo.svg"
428
+ }
413
429
  }
414
430
  ],
415
431
  "screenshots": [],
@@ -432,5 +448,5 @@
432
448
  },
433
449
  "iifePath": "release/release.js",
434
450
  "repoName": "@htmlbricks/hb-auth",
435
- "version": "0.14.39"
451
+ "version": "0.14.42"
436
452
  }