@objectstack/platform-objects 14.5.0 → 14.6.0

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/dist/index.mjs CHANGED
@@ -141,7 +141,12 @@ var SysUser = ObjectSchema.create({
141
141
  label: "Phone Number",
142
142
  type: "text",
143
143
  required: false,
144
- helpText: "Sign-in phone number (E.164, e.g. +8613800000000). Required when no email is given."
144
+ helpText: "Sign-in phone number (E.164, e.g. +8613800000000). Required when no email is given.",
145
+ // Only offer phone when the opt-in phoneNumber auth plugin is loaded —
146
+ // otherwise the create-user endpoint rejects a phone with
147
+ // "Phone numbers require the phoneNumber auth plugin". `features.phoneNumber`
148
+ // is served in /api/v1/auth/config (getPublicConfig).
149
+ visible: "features.phoneNumber == true"
145
150
  },
146
151
  { field: "name", required: false },
147
152
  {