@magmonium/cli 0.7.8 → 0.7.9

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.
@@ -699,7 +699,9 @@ function assetsCommand(program) {
699
699
  'Nav',
700
700
  buildConfig.nav,
701
701
  [],
702
- 'libs/cli/schemas/nav.schema.json'
702
+ // Package-relative — works in the monorepo dist and in
703
+ // published `@magmonium/cli` consumed by generated apps.
704
+ path.join(__dirname, '../../schemas/nav.schema.json')
703
705
  )
704
706
  );
705
707
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magmonium/cli",
3
- "version": "0.7.8",
3
+ "version": "0.7.9",
4
4
  "description": "A powerful and extensible asset compilation tool that can be shared across multiple projects",
5
5
  "bin": {
6
6
  "mag-cli": "bin/cli.js"
@@ -10,6 +10,7 @@
10
10
  "files": [
11
11
  "src/**/*",
12
12
  "bin/**/*",
13
+ "schemas/**/*",
13
14
  "templates/**/*",
14
15
  "README.md"
15
16
  ],
@@ -0,0 +1,34 @@
1
+ [
2
+ {
3
+ "value": "form",
4
+ "name": "Form — input field grid",
5
+ "folder": "forms"
6
+ },
7
+ {
8
+ "value": "button",
9
+ "name": "Button",
10
+ "folder": "buttons"
11
+ },
12
+ {
13
+ "value": "button_group",
14
+ "name": "Button Group (composite — creates N buttons)",
15
+ "folder": "button_groups",
16
+ "composite": "button"
17
+ },
18
+ {
19
+ "value": "accordion",
20
+ "name": "Accordion",
21
+ "folder": "accordions"
22
+ },
23
+ {
24
+ "value": "accordion_group",
25
+ "name": "Accordion Group (composite — creates N accordions)",
26
+ "folder": "accordion_groups",
27
+ "composite": "accordion"
28
+ },
29
+ {
30
+ "value": "tabs",
31
+ "name": "Tabs",
32
+ "folder": "tabs"
33
+ }
34
+ ]
@@ -0,0 +1,27 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Nav Asset",
4
+ "description": "Schema for nav YAML files in mag_assets/navs/",
5
+ "type": "object",
6
+ "required": ["title"],
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "title": {
10
+ "type": "string",
11
+ "description": "Display name for this nav entry"
12
+ },
13
+ "icon": {
14
+ "type": "string",
15
+ "description": "Icon name (optional — root.yml typically omits this)"
16
+ },
17
+ "isMurl": {
18
+ "type": "boolean",
19
+ "description": "When true, navigate via murl instead of url"
20
+ },
21
+ "navs": {
22
+ "type": "array",
23
+ "items": { "type": "string" },
24
+ "description": "Child nav IDs — each must have a matching .yml file in the same navs/ folder"
25
+ }
26
+ }
27
+ }