@adminforth/open-signup 1.1.7 → 1.2.1

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/build.log CHANGED
@@ -8,5 +8,5 @@ custom/SignupPage.vue
8
8
  custom/SignupUnderLogin.vue
9
9
  custom/tsconfig.json
10
10
 
11
- sent 14,168 bytes received 77 bytes 28,490.00 bytes/sec
12
- total size is 13,879 speedup is 0.97
11
+ sent 14,179 bytes received 77 bytes 28,512.00 bytes/sec
12
+ total size is 13,894 speedup is 0.97
@@ -27,7 +27,7 @@
27
27
  overflow-x-hidden z-50 min-w-[350px] justify-center items-center md:inset-0 h-[calc(100%-1rem)] max-h-full">
28
28
  <div class="relative p-4 w-full max-h-full max-w-[400px]">
29
29
  <!-- Modal content -->
30
- <div class="relative bg-white rounded-lg shadow dark:bg-gray-700 dark:shadow-black" >
30
+ <div class="af-login-popup relative bg-white rounded-lg shadow dark:bg-gray-700 dark:shadow-black" >
31
31
  <!-- Modal header -->
32
32
  <div class="flex items-center justify-between p-4 md:p-5 border-b rounded-t dark:border-gray-600">
33
33
  <h3 class="text-xl font-semibold text-gray-900 dark:text-white">
@@ -27,7 +27,7 @@
27
27
  overflow-x-hidden z-50 min-w-[350px] justify-center items-center md:inset-0 h-[calc(100%-1rem)] max-h-full">
28
28
  <div class="relative p-4 w-full max-h-full max-w-[400px]">
29
29
  <!-- Modal content -->
30
- <div class="relative bg-white rounded-lg shadow dark:bg-gray-700 dark:shadow-black" >
30
+ <div class="af-login-popup relative bg-white rounded-lg shadow dark:bg-gray-700 dark:shadow-black" >
31
31
  <!-- Modal header -->
32
32
  <div class="flex items-center justify-between p-4 md:p-5 border-b rounded-t dark:border-gray-600">
33
33
  <h3 class="text-xl font-semibold text-gray-900 dark:text-white">
package/dist/index.js CHANGED
@@ -63,8 +63,8 @@ export default class OpenSignupPlugin extends AdminForthPlugin {
63
63
  `);
64
64
  }
65
65
  this.passwordField = passwordField;
66
- adminforth.config.customization.loginPageInjections.underInputs.push({
67
- file: this.componentPath('SignupUnderLogin.vue'),
66
+ adminforth.config.customization.loginPageInjections.underLoginButton.push({
67
+ file: this.componentPath('SignupUnderLogin.vue'), meta: { afOrder: this.options.loginPageComponentOrder }
68
68
  });
69
69
  adminforth.config.customization.customPages.push({
70
70
  path: '/signup',
package/index.ts CHANGED
@@ -71,8 +71,8 @@ export default class OpenSignupPlugin extends AdminForthPlugin {
71
71
  }
72
72
  this.passwordField = passwordField;
73
73
 
74
- (adminforth.config.customization.loginPageInjections.underInputs as AdminForthComponentDeclaration[]).push({
75
- file: this.componentPath('SignupUnderLogin.vue'),
74
+ (adminforth.config.customization.loginPageInjections.underLoginButton as AdminForthComponentDeclaration[]).push({
75
+ file: this.componentPath('SignupUnderLogin.vue'), meta: { afOrder: this.options.loginPageComponentOrder }
76
76
  });
77
77
  adminforth.config.customization.customPages.push({
78
78
  path: '/signup',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/open-signup",
3
- "version": "1.1.7",
3
+ "version": "1.2.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -24,7 +24,8 @@
24
24
  "license": "ISC",
25
25
  "description": "Open signup for adminforth",
26
26
  "dependencies": {
27
- "@aws-sdk/client-ses": "^3.654.0"
27
+ "@aws-sdk/client-ses": "^3.654.0",
28
+ "adminforth": "^2.4.0-next.221"
28
29
  },
29
30
  "devDependencies": {
30
31
  "@types/node": "^22.10.7",
package/types.ts CHANGED
@@ -64,5 +64,8 @@ export interface PluginOptions {
64
64
  afterUserSave?: any;
65
65
  }
66
66
 
67
-
67
+ /**
68
+ * Signup component order inder login button
69
+ */
70
+ loginPageComponentOrder?: number;
68
71
  }