brand-intent 0.28.0 → 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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brand-intent",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.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",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"scripts": {
|
|
37
37
|
"release": "./scripts/release.sh",
|
|
38
38
|
"typecheck": "tsc -p .",
|
|
39
|
-
"test": "tsx tests/brandParser.test.ts && tsx tests/identityParser.test.ts && tsx tests/colorSystem.test.ts && tsx tests/icons.test.ts && tsx tests/purposeParser.test.ts && tsx tests/storyParser.test.ts && tsx tests/realBrands.test.ts"
|
|
39
|
+
"test": "tsx tests/brandParser.test.ts && tsx tests/identityParser.test.ts && tsx tests/colorSystem.test.ts && tsx tests/icons.test.ts && tsx tests/purposeParser.test.ts && tsx tests/storyParser.test.ts && tsx tests/formatParser.test.ts && tsx tests/realBrands.test.ts"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/node": "^26.6.5",
|
package/parser/formatParser.ts
CHANGED
|
@@ -19,7 +19,7 @@ export interface ParsedFormat {
|
|
|
19
19
|
name?: string;
|
|
20
20
|
label: string;
|
|
21
21
|
sublabel: string;
|
|
22
|
-
category: 'instagram' | 'linkedin' | 'print' | 'signage';
|
|
22
|
+
category: 'instagram' | 'facebook' | 'linkedin' | 'print' | 'signage';
|
|
23
23
|
// Pixel dimensions (always present — computed from mm+dpi for print/signage)
|
|
24
24
|
widthPx: number;
|
|
25
25
|
heightPx: number;
|
|
@@ -141,8 +141,8 @@ export function parseFormatFile(content: string, fileName: string): ParsedFormat
|
|
|
141
141
|
break;
|
|
142
142
|
|
|
143
143
|
case 'category':
|
|
144
|
-
if (value !== 'instagram' && value !== 'linkedin' && value !== 'print' && value !== 'signage')
|
|
145
|
-
throw new Error(`${fileName}:${lineNum}: category must be instagram, linkedin, print, or signage, got "${value}"`);
|
|
144
|
+
if (value !== 'instagram' && value !== 'facebook' && value !== 'linkedin' && value !== 'print' && value !== 'signage')
|
|
145
|
+
throw new Error(`${fileName}:${lineNum}: category must be instagram, facebook, linkedin, print, or signage, got "${value}"`);
|
|
146
146
|
category = value;
|
|
147
147
|
break;
|
|
148
148
|
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"category": {
|
|
37
|
-
"match": "^(category:)\\s+(instagram|linkedin|print|signage)",
|
|
37
|
+
"match": "^(category:)\\s+(instagram|facebook|linkedin|print|signage)",
|
|
38
38
|
"captures": {
|
|
39
39
|
"1": { "name": "keyword.control.brand-intent-format" },
|
|
40
40
|
"2": { "name": "entity.name.tag.brand-intent-format" }
|