@promptui-lib/core 0.1.14 → 0.1.16
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classifiers.d.ts","sourceRoot":"","sources":["../../src/utils/classifiers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"classifiers.d.ts","sourceRoot":"","sources":["../../src/utils/classifiers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AA6FpE;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CAqBlE;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAOnD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAQzD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAY5D;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAW/D;AAsBD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,UAAU,GAAG,cAAc,CA0BpE;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,UAAU,EAChB,UAAU,CAAC,EAAE,cAAc,GAC1B,cAAc,CAchB;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,CAE1D"}
|
|
@@ -70,12 +70,17 @@ const ORGANISM_KEYWORDS = [
|
|
|
70
70
|
];
|
|
71
71
|
/**
|
|
72
72
|
* Normaliza nome removendo prefixos e convertendo para lowercase
|
|
73
|
+
* Também separa palavras em camelCase/PascalCase com hífen
|
|
74
|
+
* @example "LoginScreen" → "login-screen"
|
|
75
|
+
* @example "#MyButton" → "my-button"
|
|
73
76
|
*/
|
|
74
77
|
function normalizeName(name) {
|
|
75
78
|
return name
|
|
76
79
|
.replace(/^[#_]/, '') // Remove # ou _
|
|
77
80
|
.split('/')[0] // Pega apenas primeira parte se tiver /
|
|
78
81
|
.trim()
|
|
82
|
+
.replace(/([a-z])([A-Z])/g, '$1-$2') // Separa camelCase: loginScreen → login-Screen
|
|
83
|
+
.replace(/([A-Z]+)([A-Z][a-z])/g, '$1-$2') // Separa acrônimos: XMLParser → XML-Parser
|
|
79
84
|
.toLowerCase();
|
|
80
85
|
}
|
|
81
86
|
/**
|