@onexapis/cli 1.1.34 → 1.1.37

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 (45) hide show
  1. package/dist/cli.js +5 -1
  2. package/dist/cli.js.map +1 -1
  3. package/dist/cli.mjs +5 -1
  4. package/dist/cli.mjs.map +1 -1
  5. package/dist/preview/preview-app.tsx +13 -5
  6. package/package.json +1 -1
  7. package/templates/default/AUTH_AND_PROFILE.md +167 -0
  8. package/templates/default/CLAUDE.md +78 -24
  9. package/templates/default/LAYOUT.md +195 -0
  10. package/templates/default/bundle-entry.ts +5 -0
  11. package/templates/default/hooks/index.ts +26 -0
  12. package/templates/default/hooks/use-forgot-password-form.ts +90 -0
  13. package/templates/default/hooks/use-login-form.ts +102 -0
  14. package/templates/default/hooks/use-profile-form.ts +255 -0
  15. package/templates/default/hooks/use-register-form.ts +154 -0
  16. package/templates/default/hooks/use-verify-code-form.ts +224 -0
  17. package/templates/default/index.ts +21 -1
  18. package/templates/default/pages/forgot-password.ts +41 -0
  19. package/templates/default/pages/login.ts +41 -0
  20. package/templates/default/pages/profile.ts +39 -0
  21. package/templates/default/pages/register.ts +41 -0
  22. package/templates/default/pages/verify-code.ts +41 -0
  23. package/templates/default/sections/auth-forgot-password/auth-forgot-password-default.tsx +192 -0
  24. package/templates/default/sections/auth-forgot-password/auth-forgot-password.schema.ts +150 -0
  25. package/templates/default/sections/auth-forgot-password/index.ts +14 -0
  26. package/templates/default/sections/auth-login/auth-login-default.tsx +238 -0
  27. package/templates/default/sections/auth-login/auth-login.schema.ts +171 -0
  28. package/templates/default/sections/auth-login/index.ts +14 -0
  29. package/templates/default/sections/auth-register/auth-register-default.tsx +327 -0
  30. package/templates/default/sections/auth-register/auth-register.schema.ts +188 -0
  31. package/templates/default/sections/auth-register/index.ts +14 -0
  32. package/templates/default/sections/auth-verify-code/auth-verify-code-default.tsx +209 -0
  33. package/templates/default/sections/auth-verify-code/auth-verify-code.schema.ts +150 -0
  34. package/templates/default/sections/auth-verify-code/index.ts +14 -0
  35. package/templates/default/sections/footer/footer-default.tsx +214 -0
  36. package/templates/default/sections/footer/footer.schema.ts +170 -0
  37. package/templates/default/sections/footer/index.ts +14 -0
  38. package/templates/default/sections/header/header-default.tsx +322 -0
  39. package/templates/default/sections/header/header.schema.ts +168 -0
  40. package/templates/default/sections/header/index.ts +14 -0
  41. package/templates/default/sections/profile/index.ts +14 -0
  42. package/templates/default/sections/profile/profile-default.tsx +522 -0
  43. package/templates/default/sections/profile/profile.schema.ts +228 -0
  44. package/templates/default/sections-registry.ts +28 -0
  45. package/templates/default/theme.layout.ts +53 -2
package/dist/cli.js CHANGED
@@ -4727,7 +4727,11 @@ async function publishCommand(options) {
4727
4727
  themeId,
4728
4728
  name: pkg.displayName || themeId,
4729
4729
  description: pkg.description || "",
4730
- email: tokens.user.email
4730
+ email: tokens.user.email,
4731
+ author: typeof pkg.author === "string" ? pkg.author : pkg.author?.name || tokens.user.name || "",
4732
+ category: pkg.onex?.category || "MINIMAL",
4733
+ tags: pkg.keywords || [],
4734
+ thumbnail_url: pkg.onex?.thumbnail || ""
4731
4735
  })
4732
4736
  }
4733
4737
  );