@xivdyetools/types 1.2.0 → 1.4.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/README.md CHANGED
@@ -40,7 +40,7 @@ For smaller bundle sizes, import from specific modules:
40
40
 
41
41
  ```typescript
42
42
  // Color types
43
- import { RGB, HSV, HexColor, createHexColor, VisionType } from '@xivdyetools/types/color';
43
+ import { RGB, HSV, LAB, HexColor, createHexColor, VisionType } from '@xivdyetools/types/color';
44
44
 
45
45
  // Dye types
46
46
  import { Dye, LocalizedDye, DyeWithDistance, DyeDatabase } from '@xivdyetools/types/dye';
@@ -73,10 +73,14 @@ import { LocaleCode, LocaleData, TranslationKey } from '@xivdyetools/types/local
73
73
  ```typescript
74
74
  import { RGB, HSV, HexColor, createHexColor, DyeId, createDyeId } from '@xivdyetools/types';
75
75
 
76
- // RGB and HSV interfaces
76
+ // RGB, HSV, and LAB interfaces
77
77
  const red: RGB = { r: 255, g: 0, b: 0 };
78
78
  const redHsv: HSV = { h: 0, s: 100, v: 100 };
79
79
 
80
+ // LAB color space (for perceptual color matching)
81
+ import { LAB } from '@xivdyetools/types';
82
+ const redLab: LAB = { L: 53.23, a: 80.11, b: 67.22 };
83
+
80
84
  // Branded types with validation
81
85
  const hex: HexColor = createHexColor('#ff6b6b'); // Validates and normalizes to "#FF6B6B"
82
86
  const dyeId: DyeId | null = createDyeId(1); // Returns null if invalid (not 1-200)
@@ -0,0 +1,80 @@
1
+ /**
2
+ * @xivdyetools/types - Character Module
3
+ *
4
+ * FFXIV character customization color type definitions.
5
+ * Used for matching character hair, eye, skin, and other colors to dyes.
6
+ *
7
+ * @module character
8
+ */
9
+ import type { RGB, HSV } from '../color/rgb.js';
10
+ import type { Dye } from '../dye/dye.js';
11
+ /**
12
+ * A single character customization color entry
13
+ *
14
+ * Represents one color option available in the character creator,
15
+ * such as a specific hair color or eye color.
16
+ */
17
+ export interface CharacterColor {
18
+ /** Index in the color palette (0-191 for most categories, 0-95 for lips) */
19
+ index: number;
20
+ /** Hex color value (#RRGGBB format) */
21
+ hex: string;
22
+ /** RGB color representation */
23
+ rgb: RGB;
24
+ /** HSV color representation (optional for compatibility) */
25
+ hsv?: HSV;
26
+ }
27
+ /**
28
+ * Result from matching a character color to dyes
29
+ */
30
+ export interface CharacterColorMatch {
31
+ /** The character color that was matched */
32
+ characterColor: CharacterColor;
33
+ /** The matching dye */
34
+ dye: Dye;
35
+ /** Color distance (lower = closer match) */
36
+ distance: number;
37
+ }
38
+ /**
39
+ * Category of shared (race-agnostic) character colors
40
+ */
41
+ export type SharedColorCategory = 'eyeColors' | 'highlightColors' | 'lipColorsDark' | 'lipColorsLight' | 'tattooColors' | 'facePaintColorsDark' | 'facePaintColorsLight';
42
+ /**
43
+ * Category of race-specific character colors
44
+ */
45
+ export type RaceSpecificColorCategory = 'hairColors' | 'skinColors';
46
+ /**
47
+ * All character color categories
48
+ */
49
+ export type CharacterColorCategory = SharedColorCategory | RaceSpecificColorCategory;
50
+ /**
51
+ * FFXIV playable subraces
52
+ *
53
+ * Each race has two subraces (clans) with potentially different
54
+ * hair and skin color palettes.
55
+ */
56
+ export type SubRace = 'Midlander' | 'Highlander' | 'Wildwood' | 'Duskwight' | 'Plainsfolk' | 'Dunesfolk' | 'SeekerOfTheSun' | 'KeeperOfTheMoon' | 'SeaWolf' | 'Hellsguard' | 'Raen' | 'Xaela' | 'Helion' | 'TheLost' | 'Rava' | 'Veena';
57
+ /**
58
+ * Character gender options
59
+ */
60
+ export type Gender = 'Male' | 'Female';
61
+ /**
62
+ * FFXIV playable races (parent of subraces)
63
+ */
64
+ export type Race = 'Hyur' | 'Elezen' | 'Lalafell' | "Miqo'te" | 'Roegadyn' | 'AuRa' | 'Hrothgar' | 'Viera';
65
+ /**
66
+ * Mapping of races to their subraces
67
+ */
68
+ export declare const RACE_SUBRACES: Record<Race, [SubRace, SubRace]>;
69
+ /**
70
+ * Mapping of subraces to their parent race
71
+ */
72
+ export declare const SUBRACE_TO_RACE: Record<SubRace, Race>;
73
+ /**
74
+ * Grid dimensions for different color categories
75
+ */
76
+ export declare const COLOR_GRID_DIMENSIONS: Record<CharacterColorCategory, {
77
+ columns: 8;
78
+ rows: 12 | 24;
79
+ }>;
80
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/character/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEzC;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,4EAA4E;IAC5E,KAAK,EAAE,MAAM,CAAC;IAEd,uCAAuC;IACvC,GAAG,EAAE,MAAM,CAAC;IAEZ,+BAA+B;IAC/B,GAAG,EAAE,GAAG,CAAC;IAET,4DAA4D;IAC5D,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,2CAA2C;IAC3C,cAAc,EAAE,cAAc,CAAC;IAE/B,uBAAuB;IACvB,GAAG,EAAE,GAAG,CAAC;IAET,4CAA4C;IAC5C,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAC3B,WAAW,GACX,iBAAiB,GACjB,eAAe,GACf,gBAAgB,GAChB,cAAc,GACd,qBAAqB,GACrB,sBAAsB,CAAC;AAE3B;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,YAAY,GAAG,YAAY,CAAC;AAEpE;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAC9B,mBAAmB,GACnB,yBAAyB,CAAC;AAE9B;;;;;GAKG;AACH,MAAM,MAAM,OAAO,GAEf,WAAW,GACX,YAAY,GAEZ,UAAU,GACV,WAAW,GAEX,YAAY,GACZ,WAAW,GAEX,gBAAgB,GAChB,iBAAiB,GAEjB,SAAS,GACT,YAAY,GAEZ,MAAM,GACN,OAAO,GAEP,QAAQ,GACR,SAAS,GAET,MAAM,GACN,OAAO,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,IAAI,GACZ,MAAM,GACN,QAAQ,GACR,UAAU,GACV,SAAS,GACT,UAAU,GACV,MAAM,GACN,UAAU,GACV,OAAO,CAAC;AAEZ;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAS1D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,OAAO,EAAE,IAAI,CAiBjD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CACxC,sBAAsB,EACtB;IAAE,OAAO,EAAE,CAAC,CAAC;IAAC,IAAI,EAAE,EAAE,GAAG,EAAE,CAAA;CAAE,CAW9B,CAAC"}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * @xivdyetools/types - Character Module
3
+ *
4
+ * FFXIV character customization color type definitions.
5
+ * Used for matching character hair, eye, skin, and other colors to dyes.
6
+ *
7
+ * @module character
8
+ */
9
+ /**
10
+ * Mapping of races to their subraces
11
+ */
12
+ export const RACE_SUBRACES = {
13
+ Hyur: ['Midlander', 'Highlander'],
14
+ Elezen: ['Wildwood', 'Duskwight'],
15
+ Lalafell: ['Plainsfolk', 'Dunesfolk'],
16
+ "Miqo'te": ['SeekerOfTheSun', 'KeeperOfTheMoon'],
17
+ Roegadyn: ['SeaWolf', 'Hellsguard'],
18
+ AuRa: ['Raen', 'Xaela'],
19
+ Hrothgar: ['Helion', 'TheLost'],
20
+ Viera: ['Rava', 'Veena'],
21
+ };
22
+ /**
23
+ * Mapping of subraces to their parent race
24
+ */
25
+ export const SUBRACE_TO_RACE = {
26
+ Midlander: 'Hyur',
27
+ Highlander: 'Hyur',
28
+ Wildwood: 'Elezen',
29
+ Duskwight: 'Elezen',
30
+ Plainsfolk: 'Lalafell',
31
+ Dunesfolk: 'Lalafell',
32
+ SeekerOfTheSun: "Miqo'te",
33
+ KeeperOfTheMoon: "Miqo'te",
34
+ SeaWolf: 'Roegadyn',
35
+ Hellsguard: 'Roegadyn',
36
+ Raen: 'AuRa',
37
+ Xaela: 'AuRa',
38
+ Helion: 'Hrothgar',
39
+ TheLost: 'Hrothgar',
40
+ Rava: 'Viera',
41
+ Veena: 'Viera',
42
+ };
43
+ /**
44
+ * Grid dimensions for different color categories
45
+ */
46
+ export const COLOR_GRID_DIMENSIONS = {
47
+ eyeColors: { columns: 8, rows: 24 },
48
+ highlightColors: { columns: 8, rows: 24 },
49
+ lipColorsDark: { columns: 8, rows: 12 },
50
+ lipColorsLight: { columns: 8, rows: 12 },
51
+ tattooColors: { columns: 8, rows: 24 },
52
+ facePaintColorsDark: { columns: 8, rows: 24 },
53
+ facePaintColorsLight: { columns: 8, rows: 24 },
54
+ hairColors: { columns: 8, rows: 24 },
55
+ skinColors: { columns: 8, rows: 24 },
56
+ };
57
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/character/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAiHH;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAqC;IAC7D,IAAI,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC;IACjC,MAAM,EAAE,CAAC,UAAU,EAAE,WAAW,CAAC;IACjC,QAAQ,EAAE,CAAC,YAAY,EAAE,WAAW,CAAC;IACrC,SAAS,EAAE,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;IAChD,QAAQ,EAAE,CAAC,SAAS,EAAE,YAAY,CAAC;IACnC,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,CAAC,QAAQ,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E;CACrC,CAAC"}
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * @module color
7
7
  */
8
- export type { RGB, HSV } from './rgb.js';
8
+ export type { RGB, HSV, LAB } from './rgb.js';
9
9
  export type { HexColor, DyeId, Hue, Saturation } from './branded.js';
10
10
  export { createHexColor, createDyeId, createHue, createSaturation } from './branded.js';
11
11
  export type { VisionType, Matrix3x3, ColorblindMatrices } from './colorblind.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/color/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,YAAY,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAGzC,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGxF,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/color/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,YAAY,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAG9C,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGxF,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -29,4 +29,17 @@ export interface HSV {
29
29
  /** Value/Brightness (0-100 percent) */
30
30
  v: number;
31
31
  }
32
+ /**
33
+ * CIE LAB color representation (perceptually uniform color space)
34
+ * Used for DeltaE color difference calculations
35
+ * @example { L: 53.23, a: 80.11, b: 67.22 } // Red
36
+ */
37
+ export interface LAB {
38
+ /** Lightness (0-100) */
39
+ L: number;
40
+ /** Green-Red axis (approximately -128 to 127) */
41
+ a: number;
42
+ /** Blue-Yellow axis (approximately -128 to 127) */
43
+ b: number;
44
+ }
32
45
  //# sourceMappingURL=rgb.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rgb.d.ts","sourceRoot":"","sources":["../../src/color/rgb.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;GAGG;AACH,MAAM,WAAW,GAAG;IAClB,0BAA0B;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,4BAA4B;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,2BAA2B;IAC3B,CAAC,EAAE,MAAM,CAAC;CACX;AAED;;;GAGG;AACH,MAAM,WAAW,GAAG;IAClB,0BAA0B;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,iCAAiC;IACjC,CAAC,EAAE,MAAM,CAAC;IACV,uCAAuC;IACvC,CAAC,EAAE,MAAM,CAAC;CACX"}
1
+ {"version":3,"file":"rgb.d.ts","sourceRoot":"","sources":["../../src/color/rgb.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;GAGG;AACH,MAAM,WAAW,GAAG;IAClB,0BAA0B;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,4BAA4B;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,2BAA2B;IAC3B,CAAC,EAAE,MAAM,CAAC;CACX;AAED;;;GAGG;AACH,MAAM,WAAW,GAAG;IAClB,0BAA0B;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,iCAAiC;IACjC,CAAC,EAAE,MAAM,CAAC;IACV,uCAAuC;IACvC,CAAC,EAAE,MAAM,CAAC;CACX;AAED;;;;GAIG;AACH,MAAM,WAAW,GAAG;IAClB,wBAAwB;IACxB,CAAC,EAAE,MAAM,CAAC;IACV,iDAAiD;IACjD,CAAC,EAAE,MAAM,CAAC;IACV,mDAAmD;IACnD,CAAC,EAAE,MAAM,CAAC;CACX"}
package/dist/index.d.ts CHANGED
@@ -12,11 +12,13 @@
12
12
  *
13
13
  * @packageDocumentation
14
14
  */
15
- export type { RGB, HSV } from './color/index.js';
15
+ export type { RGB, HSV, LAB } from './color/index.js';
16
16
  export type { HexColor, DyeId, Hue, Saturation } from './color/index.js';
17
17
  export { createHexColor, createDyeId, createHue, createSaturation } from './color/index.js';
18
18
  export type { VisionType, Matrix3x3, ColorblindMatrices } from './color/index.js';
19
19
  export type { Dye, LocalizedDye, DyeWithDistance, DyeDatabase } from './dye/index.js';
20
+ export type { CharacterColor, CharacterColorMatch, SharedColorCategory, RaceSpecificColorCategory, CharacterColorCategory, SubRace, Gender, Race, } from './character/index.js';
21
+ export { RACE_SUBRACES, SUBRACE_TO_RACE, COLOR_GRID_DIMENSIONS, } from './character/index.js';
20
22
  export type { PresetCategory, PresetStatus, PresetSortOption, CategoryMeta, PresetPalette, ResolvedPreset, PresetData, PresetPreviousValues, CommunityPreset, PresetSubmission, AuthenticatedPresetSubmission, PresetFilters, PresetEditRequest, PresetListResponse, PresetSubmitResponse, PresetEditResponse, VoteResponse, ModerationResponse, CategoryListResponse, } from './preset/index.js';
21
23
  export type { AuthProvider, AuthSource, AuthContext, PrimaryCharacter, JWTPayload, OAuthState, DiscordTokenResponse, DiscordUser, XIVAuthTokenResponse, XIVAuthCharacter, XIVAuthCharacterRegistration, XIVAuthSocialIdentity, XIVAuthUser, AuthUser, AuthResponse, RefreshResponse, UserInfoResponse, } from './auth/index.js';
22
24
  export type { APIResponse, CachedData, ModerationResult, ModerationLogEntry, ModerationStats, PriceData, RateLimitResult, } from './api/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAKH,YAAY,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACjD,Y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UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,oBAAoB,EACpB,WAAW,EACX,oBAAoB,EACpB,gBAAgB,EAChB,4BAA4B,EAC5B,qBAAqB,EACrB,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AAKzB,YAAY,EACV,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,SAAS,EACT,eAAe,GAChB,MAAM,gBAAgB,CAAC;AAKxB,YAAY,EACV,UAAU,EACV,cAAc,EACd,cAAc,EACd,MAAM,EACN,eAAe,EACf,UAAU,EACV,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AAKjC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKtD,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAClF,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -13,6 +13,7 @@
13
13
  * @packageDocumentation
14
14
  */
15
15
  export { createHexColor, createDyeId, createHue, createSaturation } from './color/index.js';
16
+ export { RACE_SUBRACES, SUBRACE_TO_RACE, COLOR_GRID_DIMENSIONS, } from './character/index.js';
16
17
  // ============================================================================
17
18
  // Error Types
18
19
  // ============================================================================
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAOH,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAkF5F,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAO5C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAOH,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAqB5F,OAAO,EACL,aAAa,EACb,eAAe,EACf,qBAAqB,GACtB,MAAM,sBAAsB,CAAC;AA4E9B,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAO5C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xivdyetools/types",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "description": "Shared TypeScript type definitions for the xivdyetools ecosystem",
5
5
  "author": "XIV Dye Tools",
6
6
  "license": "MIT",
@@ -20,6 +20,10 @@
20
20
  "types": "./dist/dye/index.d.ts",
21
21
  "import": "./dist/dye/index.js"
22
22
  },
23
+ "./character": {
24
+ "types": "./dist/character/index.d.ts",
25
+ "import": "./dist/character/index.js"
26
+ },
23
27
  "./preset": {
24
28
  "types": "./dist/preset/index.d.ts",
25
29
  "import": "./dist/preset/index.js"