brand-intent 0.10.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.
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "brand-intent",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "An open file format specification for making brand intent machine-readable.",
5
5
  "author": "Christophe Stoll <christophe@stoll.studio>",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://github.com/studiostoll/brand-intent.git"
9
+ "url": "git+https://github.com/studiostoll/brand-intent.git"
10
10
  },
11
11
  "homepage": "https://intent.stoll.studio",
12
12
  "bin": {
13
- "brand-intent": "./cli/index.mjs"
13
+ "brand-intent": "cli/index.mjs"
14
14
  },
15
15
  "exports": {
16
16
  ".": {
@@ -126,6 +126,8 @@ export interface ParsedAssetDef {
126
126
  /** Logos only: artwork per horizontal placement, declared via `align-left` / `align-center` / `align-right`
127
127
  * sub-blocks. Consumers render the variant matching where the logo sits, else the base `src`. */
128
128
  alignVariants?: Partial<Record<LogoAlign, { src: string; aspectRatio?: number }>>;
129
+ /** Library group (e.g. "experimental"). Consumers list each group as its own section after the ungrouped assets. */
130
+ group?: string;
129
131
  }
130
132
 
131
133
  export type LogoAlign = 'left' | 'center' | 'right';
@@ -1292,6 +1294,7 @@ export function parseBrandFile(content: string, fileName: string): ParsedBrand {
1292
1294
  if (raw.props['loop'] === 'true') def.loop = true;
1293
1295
  if (raw.props['gltf']) def.gltfSrc = raw.props['gltf'];
1294
1296
  if (raw.props['generator']) def.generator = raw.props['generator'];
1297
+ if (raw.props['group']) def.group = raw.props['group'];
1295
1298
  // generator-params are stored as "generator-params.KEY" by the sub-block parser.
1296
1299
  const paramEntries: [string, number][] = [];
1297
1300
  for (const [k, v] of Object.entries(raw.props)) {