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