@onexapis/cli 1.1.37 → 1.1.38

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.
Files changed (48) hide show
  1. package/dist/cli.js +688 -454
  2. package/dist/cli.js.map +1 -1
  3. package/dist/cli.mjs +681 -449
  4. package/dist/cli.mjs.map +1 -1
  5. package/dist/index.js +343 -256
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +339 -253
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/preview/preview-app.tsx +5 -13
  10. package/package.json +8 -4
  11. package/templates/default/bundle-entry.ts +0 -5
  12. package/templates/default/index.ts +1 -21
  13. package/templates/default/sections-registry.ts +0 -28
  14. package/templates/default/theme.layout.ts +2 -53
  15. package/templates/default/AUTH_AND_PROFILE.md +0 -167
  16. package/templates/default/LAYOUT.md +0 -195
  17. package/templates/default/hooks/index.ts +0 -26
  18. package/templates/default/hooks/use-forgot-password-form.ts +0 -90
  19. package/templates/default/hooks/use-login-form.ts +0 -102
  20. package/templates/default/hooks/use-profile-form.ts +0 -255
  21. package/templates/default/hooks/use-register-form.ts +0 -154
  22. package/templates/default/hooks/use-verify-code-form.ts +0 -224
  23. package/templates/default/pages/forgot-password.ts +0 -41
  24. package/templates/default/pages/login.ts +0 -41
  25. package/templates/default/pages/profile.ts +0 -39
  26. package/templates/default/pages/register.ts +0 -41
  27. package/templates/default/pages/verify-code.ts +0 -41
  28. package/templates/default/sections/auth-forgot-password/auth-forgot-password-default.tsx +0 -192
  29. package/templates/default/sections/auth-forgot-password/auth-forgot-password.schema.ts +0 -150
  30. package/templates/default/sections/auth-forgot-password/index.ts +0 -14
  31. package/templates/default/sections/auth-login/auth-login-default.tsx +0 -238
  32. package/templates/default/sections/auth-login/auth-login.schema.ts +0 -171
  33. package/templates/default/sections/auth-login/index.ts +0 -14
  34. package/templates/default/sections/auth-register/auth-register-default.tsx +0 -327
  35. package/templates/default/sections/auth-register/auth-register.schema.ts +0 -188
  36. package/templates/default/sections/auth-register/index.ts +0 -14
  37. package/templates/default/sections/auth-verify-code/auth-verify-code-default.tsx +0 -209
  38. package/templates/default/sections/auth-verify-code/auth-verify-code.schema.ts +0 -150
  39. package/templates/default/sections/auth-verify-code/index.ts +0 -14
  40. package/templates/default/sections/footer/footer-default.tsx +0 -214
  41. package/templates/default/sections/footer/footer.schema.ts +0 -170
  42. package/templates/default/sections/footer/index.ts +0 -14
  43. package/templates/default/sections/header/header-default.tsx +0 -322
  44. package/templates/default/sections/header/header.schema.ts +0 -168
  45. package/templates/default/sections/header/index.ts +0 -14
  46. package/templates/default/sections/profile/index.ts +0 -14
  47. package/templates/default/sections/profile/profile-default.tsx +0 -522
  48. package/templates/default/sections/profile/profile.schema.ts +0 -228
@@ -1,228 +0,0 @@
1
- /**
2
- * Profile Section Schema
3
- * User profile form with editable labels
4
- */
5
-
6
- import type { SectionSchema, FieldDefinition } from "@onexapis/core/types";
7
-
8
- const commonSettings: FieldDefinition[] = [
9
- {
10
- id: "heading",
11
- type: "text",
12
- label: "Heading",
13
- default: "My Profile",
14
- required: true,
15
- },
16
- {
17
- id: "nameLabel",
18
- type: "text",
19
- label: "Name Label",
20
- default: "Full Name",
21
- },
22
- {
23
- id: "namePlaceholder",
24
- type: "text",
25
- label: "Name Placeholder",
26
- default: "Enter your full name",
27
- },
28
- {
29
- id: "emailLabel",
30
- type: "text",
31
- label: "Email Label",
32
- default: "Email",
33
- },
34
- {
35
- id: "phoneLabel",
36
- type: "text",
37
- label: "Phone Label",
38
- default: "Phone Number",
39
- },
40
- {
41
- id: "phonePlaceholder",
42
- type: "text",
43
- label: "Phone Placeholder",
44
- default: "Enter your phone number",
45
- },
46
- {
47
- id: "addressLabel",
48
- type: "text",
49
- label: "Address Label",
50
- default: "Address",
51
- },
52
- {
53
- id: "addressPlaceholder",
54
- type: "text",
55
- label: "Address Placeholder",
56
- default: "Enter your address",
57
- },
58
- {
59
- id: "updateButtonText",
60
- type: "text",
61
- label: "Update Button Text",
62
- default: "Update Profile",
63
- },
64
- {
65
- id: "updatingText",
66
- type: "text",
67
- label: "Updating Text",
68
- default: "Updating...",
69
- },
70
- {
71
- id: "changePasswordText",
72
- type: "text",
73
- label: "Change Password Link Text",
74
- default: "Change Password",
75
- },
76
- {
77
- id: "currentPasswordLabel",
78
- type: "text",
79
- label: "Current Password Label",
80
- default: "Current Password",
81
- },
82
- {
83
- id: "currentPasswordPlaceholder",
84
- type: "text",
85
- label: "Current Password Placeholder",
86
- default: "Enter current password",
87
- },
88
- {
89
- id: "newPasswordLabel",
90
- type: "text",
91
- label: "New Password Label",
92
- default: "New Password",
93
- },
94
- {
95
- id: "newPasswordPlaceholder",
96
- type: "text",
97
- label: "New Password Placeholder",
98
- default: "Enter new password",
99
- },
100
- {
101
- id: "confirmPasswordLabel",
102
- type: "text",
103
- label: "Confirm Password Label",
104
- default: "Confirm New Password",
105
- },
106
- {
107
- id: "confirmPasswordPlaceholder",
108
- type: "text",
109
- label: "Confirm Password Placeholder",
110
- default: "Re-enter new password",
111
- },
112
- {
113
- id: "changePasswordButtonText",
114
- type: "text",
115
- label: "Change Password Button Text",
116
- default: "Change Password",
117
- },
118
- {
119
- id: "changingPasswordText",
120
- type: "text",
121
- label: "Changing Password Text",
122
- default: "Changing...",
123
- },
124
- {
125
- id: "cancelText",
126
- type: "text",
127
- label: "Cancel Text",
128
- default: "Cancel",
129
- },
130
- {
131
- id: "passwordRequirementText",
132
- type: "text",
133
- label: "Password Requirement Text",
134
- default: "At least 8 characters with uppercase, lowercase, and a number",
135
- },
136
- {
137
- id: "logoutText",
138
- type: "text",
139
- label: "Logout Text",
140
- default: "Log out",
141
- },
142
- {
143
- id: "backgroundColor",
144
- type: "color",
145
- label: "Background Color",
146
- default: "#F9FAFB",
147
- },
148
- {
149
- id: "cardBackground",
150
- type: "color",
151
- label: "Card Background",
152
- default: "#FFFFFF",
153
- },
154
- {
155
- id: "primaryColor",
156
- type: "color",
157
- label: "Primary Color (buttons)",
158
- default: "#2563EB",
159
- },
160
- {
161
- id: "textColor",
162
- type: "color",
163
- label: "Heading Text Color",
164
- default: "#111827",
165
- },
166
- {
167
- id: "cardBorderRadius",
168
- type: "select",
169
- label: "Card Border Radius",
170
- default: "2xl",
171
- options: [
172
- { label: "Small", value: "lg" },
173
- { label: "Medium", value: "xl" },
174
- { label: "Large", value: "2xl" },
175
- { label: "Extra Large", value: "3xl" },
176
- ],
177
- },
178
- ];
179
-
180
- export const profileSchema: SectionSchema = {
181
- type: "my-simple-profile",
182
- name: "Profile",
183
- description: "User profile with form fields and change password",
184
- category: "content",
185
- icon: "user",
186
- settings: commonSettings,
187
- templates: [
188
- {
189
- id: "default",
190
- name: "Default Profile",
191
- description: "Profile page with editable fields and password change",
192
- isDefault: true,
193
- },
194
- ],
195
- defaults: {
196
- settings: {
197
- heading: "My Profile",
198
- nameLabel: "Full Name",
199
- namePlaceholder: "Enter your full name",
200
- emailLabel: "Email",
201
- phoneLabel: "Phone Number",
202
- phonePlaceholder: "Enter your phone number",
203
- addressLabel: "Address",
204
- addressPlaceholder: "Enter your address",
205
- updateButtonText: "Update Profile",
206
- updatingText: "Updating...",
207
- changePasswordText: "Change Password",
208
- currentPasswordLabel: "Current Password",
209
- currentPasswordPlaceholder: "Enter current password",
210
- newPasswordLabel: "New Password",
211
- newPasswordPlaceholder: "Enter new password",
212
- confirmPasswordLabel: "Confirm New Password",
213
- confirmPasswordPlaceholder: "Re-enter new password",
214
- changePasswordButtonText: "Change Password",
215
- changingPasswordText: "Changing...",
216
- cancelText: "Cancel",
217
- passwordRequirementText:
218
- "At least 8 characters with uppercase, lowercase, and a number",
219
- logoutText: "Log out",
220
- backgroundColor: "#F9FAFB",
221
- cardBackground: "#FFFFFF",
222
- primaryColor: "#2563EB",
223
- textColor: "#111827",
224
- cardBorderRadius: "2xl",
225
- },
226
- },
227
- tags: ["profile", "account", "user"],
228
- };