@minmaps-dev/material-icon-set 0.2.0-rc.1 → 0.2.0-rc.11

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.d.ts CHANGED
@@ -4,9 +4,10 @@ export type { IconEntry, IconGroup };
4
4
  /** The full curated icon registry ({ name, keywords, svg, group }[]), sorted by name. */
5
5
  export { registry };
6
6
  /**
7
- * Icons offered to a given picker. `'amenity'` returns amenity + shared (`both`)
8
- * icons; `'connector'` returns connector + shared. Used by the CMS to scope the
9
- * amenity vs. path-type/connector pickers.
7
+ * Icons offered to a given picker. One-way overlap: `'amenity'` is a SUPERSET —
8
+ * it returns every icon (amenity + shared + connector), because an amenity may
9
+ * legitimately reuse a connector glyph. `'connector'` stays scoped to connector +
10
+ * shared (`both`) icons so amenity-only icons don't clutter the path-type picker.
10
11
  */
11
12
  export declare function iconsForGroup(group: IconGroup): IconEntry[];
12
13
  /** Just the icon names — handy for the CMS picker / validation. */
package/dist/index.js CHANGED
@@ -2,14 +2,16 @@ import { registry } from './generated/registry.js';
2
2
  /** The full curated icon registry ({ name, keywords, svg, group }[]), sorted by name. */
3
3
  export { registry };
4
4
  /**
5
- * Icons offered to a given picker. `'amenity'` returns amenity + shared (`both`)
6
- * icons; `'connector'` returns connector + shared. Used by the CMS to scope the
7
- * amenity vs. path-type/connector pickers.
5
+ * Icons offered to a given picker. One-way overlap: `'amenity'` is a SUPERSET —
6
+ * it returns every icon (amenity + shared + connector), because an amenity may
7
+ * legitimately reuse a connector glyph. `'connector'` stays scoped to connector +
8
+ * shared (`both`) icons so amenity-only icons don't clutter the path-type picker.
8
9
  */
9
10
  export function iconsForGroup(group) {
10
- if (group === 'both')
11
- return registry;
12
- return registry.filter((e) => e.group === group || e.group === 'both');
11
+ if (group === 'connector') {
12
+ return registry.filter((e) => e.group === 'connector' || e.group === 'both');
13
+ }
14
+ return registry; // 'amenity' and 'both' see the full set
13
15
  }
14
16
  /** Just the icon names — handy for the CMS picker / validation. */
15
17
  export const iconNames = registry.map((e) => e.name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minmaps-dev/material-icon-set",
3
- "version": "0.2.0-rc.1",
3
+ "version": "0.2.0-rc.11",
4
4
  "description": "Curated Material Symbols icon registry for the MinuteMaps CMS + Web SDK. Replaces @minmaps-dev/default-amenity-icons.",
5
5
  "license": "MIT",
6
6
  "author": "MTS LLC",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "sideEffects": false,
27
27
  "devDependencies": {
28
- "@material-symbols/svg-400": "^0.28.0",
28
+ "@material-symbols/svg-400": "^0.49.0",
29
29
  "typescript": "^5"
30
30
  },
31
31
  "repository": {
@@ -42,7 +42,9 @@
42
42
  ],
43
43
  "scripts": {
44
44
  "generate": "node scripts/generate-registry.mjs",
45
+ "generate:svg": "pnpm clean:dist && node scripts/generate-badged-svg.mjs",
45
46
  "build": "npm run generate && tsc -p tsconfig.json",
46
- "typecheck": "npm run generate && tsc --noEmit -p tsconfig.json"
47
+ "typecheck": "npm run generate && tsc --noEmit -p tsconfig.json",
48
+ "clean:dist": "rm -rf dist && mkdir dist"
47
49
  }
48
50
  }