@meith/settings 0.28.1 → 0.29.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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/definitions.ts +14 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meith/settings",
3
- "version": "0.28.1",
3
+ "version": "0.29.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "zod": "^4.4.3",
23
- "@meith/core": "0.28.1",
24
- "@meith/i18n": "0.28.1"
23
+ "@meith/core": "0.29.0",
24
+ "@meith/i18n": "0.29.0"
25
25
  }
26
26
  }
@@ -249,6 +249,20 @@ export const SETTING_DEFINITIONS = [
249
249
  ui: { min: 5, max: 100 },
250
250
  }),
251
251
 
252
+ define({
253
+ key: 'display.max_displayed_groups',
254
+ group: 'display',
255
+ label: 'Maximum displayed groups',
256
+ description:
257
+ "How many of a member's groups are shown with their name, in the postbit " +
258
+ 'and on their profile. The display group comes first and the rest follow ' +
259
+ 'in display order; 1 shows the display group alone.',
260
+ schema: z.number().int().min(1).max(10),
261
+ default: 3,
262
+ invalidates: ['settings'],
263
+ ui: { min: 1, max: 10 },
264
+ }),
265
+
252
266
  define({
253
267
  key: 'display.default_locale',
254
268
  group: 'display',