@meith/plugin-dues 0.9.0 → 0.11.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/definition.tsx +13 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meith/plugin-dues",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "description": "Membership dues for a Meith board: Stripe-backed subscriptions as a contained plugin.",
5
5
  "license": "LGPL-3.0-or-later",
6
6
  "repository": {
@@ -20,8 +20,8 @@
20
20
  "access": "public"
21
21
  },
22
22
  "dependencies": {
23
- "@meith/theme-kit": "^0.9.0",
24
- "@meith/plugin-kit": "^0.9.0"
23
+ "@meith/plugin-kit": "^0.11.0",
24
+ "@meith/theme-kit": "^0.11.0"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": "^19.2.0"
@@ -46,7 +46,7 @@ export function dues(input: DuesConfigInput): PluginDefinition {
46
46
  return definePlugin({
47
47
  key: 'dues',
48
48
  name: 'Dues',
49
- version: '0.9.0',
49
+ version: '0.11.0',
50
50
  description: en['dues.definition.description'].replace('{label}', config.label.toLowerCase()),
51
51
  descriptionKey: 'dues.definition.description',
52
52
  descriptionArgs: { label: config.label.toLowerCase() },
@@ -303,12 +303,18 @@ export function dues(input: DuesConfigInput): PluginDefinition {
303
303
  },
304
304
  ],
305
305
 
306
- hooks: {
307
- 'view.header': (value) => ({
308
- ...value,
309
- navigation: [...value.navigation, { label: config.label, href: '/plugins/dues' }],
310
- }),
311
- },
306
+ navigation: [
307
+ { key: 'plans', label: config.label, path: '', audience: 'members' },
308
+ {
309
+ key: 'manage',
310
+ label: en['dues.definition.manage'].replace('{label}', config.label.toLowerCase()),
311
+ labelKey: 'dues.definition.manage',
312
+ labelArgs: { label: config.label.toLowerCase() },
313
+ path: 'manage',
314
+ audience: 'members',
315
+ under: 'plans',
316
+ },
317
+ ],
312
318
 
313
319
  allowedRedirectHosts: [
314
320
  'checkout.stripe.com',