@ai-matrx/content-ir 0.19.26 → 0.19.28
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/CHANGELOG.md +17 -2
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js.map +1 -1
- package/dist/directives.cjs +24 -2
- package/dist/directives.cjs.map +1 -1
- package/dist/directives.d.cts +1 -1
- package/dist/directives.d.ts +1 -1
- package/dist/directives.js +24 -2
- package/dist/directives.js.map +1 -1
- package/dist/index.cjs +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/registry.d.cts +1 -1
- package/dist/registry.d.ts +1 -1
- package/dist/wire.cjs.map +1 -1
- package/dist/wire.d.cts +2 -2
- package/dist/wire.d.ts +2 -2
- package/dist/wire.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2407,7 +2407,12 @@ var IDENTIFIER_ACRONYMS = [
|
|
|
2407
2407
|
"UUID",
|
|
2408
2408
|
"ISO"
|
|
2409
2409
|
];
|
|
2410
|
-
new Set(IDENTIFIER_ACRONYMS.map((a) => a.toLowerCase()));
|
|
2410
|
+
var IDENTIFIER_ACRONYM_SET = new Set(IDENTIFIER_ACRONYMS.map((a) => a.toLowerCase()));
|
|
2411
|
+
function humanizeIdentifier(identifier) {
|
|
2412
|
+
return identifier.replace(/([a-z\d])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").split(/[_\-.\s]+/).filter((part) => part.length > 0).map(
|
|
2413
|
+
(part) => IDENTIFIER_ACRONYM_SET.has(part.toLowerCase()) ? part.toUpperCase() : part.charAt(0).toUpperCase() + part.slice(1).toLowerCase()
|
|
2414
|
+
).join(" ");
|
|
2415
|
+
}
|
|
2411
2416
|
|
|
2412
2417
|
// core/schema-structure.ts
|
|
2413
2418
|
function formatBlockLabel(key) {
|
|
@@ -5073,8 +5078,7 @@ function tryDecodeDirectiveContent(content, onError) {
|
|
|
5073
5078
|
|
|
5074
5079
|
// directives/display.ts
|
|
5075
5080
|
function titleCaseToken(token) {
|
|
5076
|
-
|
|
5077
|
-
return words ? words.charAt(0).toUpperCase() + words.slice(1) : token;
|
|
5081
|
+
return humanizeIdentifier(token) || token;
|
|
5078
5082
|
}
|
|
5079
5083
|
var ACTION_BY_CLASS = {
|
|
5080
5084
|
reference: "Reference",
|