@dereekb/dbx-components-mcp 13.14.0 → 13.16.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.
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"source": "@dereekb/dbx-web",
|
|
34
34
|
"module": "@dereekb/dbx-web",
|
|
35
35
|
"file": "src/lib/layout/avatar/_avatar.scss",
|
|
36
|
-
"line":
|
|
36
|
+
"line": 64,
|
|
37
37
|
"declarations": [
|
|
38
38
|
{
|
|
39
39
|
"property": "width",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"source": "@dereekb/dbx-web",
|
|
60
60
|
"module": "@dereekb/dbx-web",
|
|
61
61
|
"file": "src/lib/layout/avatar/_avatar.scss",
|
|
62
|
-
"line":
|
|
62
|
+
"line": 44,
|
|
63
63
|
"declarations": [
|
|
64
64
|
{
|
|
65
65
|
"property": "width",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"source": "@dereekb/dbx-web",
|
|
86
86
|
"module": "@dereekb/dbx-web",
|
|
87
87
|
"file": "src/lib/layout/avatar/_avatar.scss",
|
|
88
|
-
"line":
|
|
88
|
+
"line": 15,
|
|
89
89
|
"declarations": [
|
|
90
90
|
{
|
|
91
91
|
"property": "position",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"source": "@dereekb/dbx-web",
|
|
134
134
|
"module": "@dereekb/dbx-web",
|
|
135
135
|
"file": "src/lib/layout/avatar/_avatar.scss",
|
|
136
|
-
"line":
|
|
136
|
+
"line": 117,
|
|
137
137
|
"declarations": [
|
|
138
138
|
{
|
|
139
139
|
"property": "border-radius",
|
|
@@ -148,13 +148,67 @@
|
|
|
148
148
|
],
|
|
149
149
|
"parent": "avatar-view"
|
|
150
150
|
},
|
|
151
|
+
{
|
|
152
|
+
"slug": "avatar-view-initials",
|
|
153
|
+
"selector": ".dbx-avatar-view-initials",
|
|
154
|
+
"source": "@dereekb/dbx-web",
|
|
155
|
+
"module": "@dereekb/dbx-web",
|
|
156
|
+
"file": "src/lib/layout/avatar/_avatar.scss",
|
|
157
|
+
"line": 100,
|
|
158
|
+
"declarations": [
|
|
159
|
+
{
|
|
160
|
+
"property": "display",
|
|
161
|
+
"value": "flex"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"property": "align-items",
|
|
165
|
+
"value": "center"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"property": "justify-content",
|
|
169
|
+
"value": "center"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"property": "width",
|
|
173
|
+
"value": "100%"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"property": "height",
|
|
177
|
+
"value": "100%"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"property": "font-weight",
|
|
181
|
+
"value": "500"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"property": "line-height",
|
|
185
|
+
"value": "1"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"property": "text-transform",
|
|
189
|
+
"value": "uppercase"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"property": "user-select",
|
|
193
|
+
"value": "none"
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"role": "layout",
|
|
197
|
+
"intent": "initials surface for `.dbx-avatar-view` — centers up-to-2 name initials; background/text driven by `[dbxColor]` (curated color set)",
|
|
198
|
+
"seeAlso": [
|
|
199
|
+
"avatar-view",
|
|
200
|
+
"avatar-view-fallback"
|
|
201
|
+
],
|
|
202
|
+
"parent": "avatar-view",
|
|
203
|
+
"component": "DbxAvatarViewComponent"
|
|
204
|
+
},
|
|
151
205
|
{
|
|
152
206
|
"slug": "avatar-view-square",
|
|
153
207
|
"selector": ".dbx-avatar-view-square",
|
|
154
208
|
"source": "@dereekb/dbx-web",
|
|
155
209
|
"module": "@dereekb/dbx-web",
|
|
156
210
|
"file": "src/lib/layout/avatar/_avatar.scss",
|
|
157
|
-
"line":
|
|
211
|
+
"line": 126,
|
|
158
212
|
"declarations": [
|
|
159
213
|
{
|
|
160
214
|
"property": "border-radius",
|
|
@@ -625,6 +625,40 @@
|
|
|
625
625
|
"decode-hashed-values-with-decode-map"
|
|
626
626
|
]
|
|
627
627
|
},
|
|
628
|
+
{
|
|
629
|
+
"slug": "hash-string-to-number",
|
|
630
|
+
"name": "hashStringToNumber",
|
|
631
|
+
"kind": "function",
|
|
632
|
+
"category": "hash",
|
|
633
|
+
"module": "@dereekb/util",
|
|
634
|
+
"subpath": "hash",
|
|
635
|
+
"signature": "hashStringToNumber(value: string): number",
|
|
636
|
+
"description": "Computes a stable, non-negative 32-bit integer hash for the input string using the FNV-1a algorithm.\n\nDeterministic and dependency-free (no `Math.random`): the same input always yields the same value,\nmaking it suitable for deterministically mapping a string onto a fixed-size set (e.g. picking a\ncurated color for a name via `hashStringToNumber(value) % colors.length`).",
|
|
637
|
+
"params": [
|
|
638
|
+
{
|
|
639
|
+
"name": "value",
|
|
640
|
+
"type": "string",
|
|
641
|
+
"description": "- String to hash.",
|
|
642
|
+
"optional": false
|
|
643
|
+
}
|
|
644
|
+
],
|
|
645
|
+
"returns": "A non-negative integer in the range `[0, 2^32)`.",
|
|
646
|
+
"tags": [
|
|
647
|
+
"hash",
|
|
648
|
+
"string",
|
|
649
|
+
"number",
|
|
650
|
+
"deterministic",
|
|
651
|
+
"fnv",
|
|
652
|
+
"bucket",
|
|
653
|
+
"index",
|
|
654
|
+
"to",
|
|
655
|
+
"hashstringtonumber"
|
|
656
|
+
],
|
|
657
|
+
"example": "hashStringToNumber('Michelle B'); // stable integer, same every call\nhashStringToNumber('Michelle B') % 12; // deterministic bucket index 0-11",
|
|
658
|
+
"relatedSlugs": [
|
|
659
|
+
"decode-hashed-values"
|
|
660
|
+
]
|
|
661
|
+
},
|
|
628
662
|
{
|
|
629
663
|
"slug": "iterate",
|
|
630
664
|
"name": "iterate",
|
|
@@ -11431,6 +11465,69 @@
|
|
|
11431
11465
|
"split-join-remainder"
|
|
11432
11466
|
]
|
|
11433
11467
|
},
|
|
11468
|
+
{
|
|
11469
|
+
"slug": "name-to-initials-factory",
|
|
11470
|
+
"name": "nameToInitialsFactory",
|
|
11471
|
+
"kind": "factory",
|
|
11472
|
+
"category": "string",
|
|
11473
|
+
"module": "@dereekb/util",
|
|
11474
|
+
"subpath": "string/string",
|
|
11475
|
+
"signature": "nameToInitialsFactory(config?: Maybe<NameToInitialsConfig>): NameToInitialsFunction",
|
|
11476
|
+
"description": "Creates a {@link NameToInitialsFunction} that derives display initials from a name or short character string.\n\nUseful for avatar fallbacks where a name (e.g. `'Michelle B'`) or a literal token (e.g. `'BB'`)\nshould collapse to a compact label. By default a single-word input yields a single initial; raise\n`minInitials` to pull more leading characters from a lone word.",
|
|
11477
|
+
"params": [
|
|
11478
|
+
{
|
|
11479
|
+
"name": "config",
|
|
11480
|
+
"type": "Maybe<NameToInitialsConfig>",
|
|
11481
|
+
"description": "- Configuration controlling the minimum and maximum number of initials.",
|
|
11482
|
+
"optional": true
|
|
11483
|
+
}
|
|
11484
|
+
],
|
|
11485
|
+
"returns": "A reusable function that derives initials from input names.",
|
|
11486
|
+
"tags": [
|
|
11487
|
+
"string",
|
|
11488
|
+
"name",
|
|
11489
|
+
"initials",
|
|
11490
|
+
"avatar",
|
|
11491
|
+
"abbreviate",
|
|
11492
|
+
"person",
|
|
11493
|
+
"factory",
|
|
11494
|
+
"to",
|
|
11495
|
+
"nametoinitialsfactory"
|
|
11496
|
+
],
|
|
11497
|
+
"example": "const toInitials = nameToInitialsFactory();\ntoInitials('Michelle B'); // 'MB'\ntoInitials('Michelle'); // 'M'\n\nconst toPaddedInitials = nameToInitialsFactory({ minInitials: 2 });\ntoPaddedInitials('Michelle'); // 'MI'\ntoPaddedInitials('BB'); // 'BB'",
|
|
11498
|
+
"relatedSlugs": [
|
|
11499
|
+
"split-join-name-string",
|
|
11500
|
+
"capitalize-first-letter"
|
|
11501
|
+
]
|
|
11502
|
+
},
|
|
11503
|
+
{
|
|
11504
|
+
"slug": "name-to-initials",
|
|
11505
|
+
"name": "nameToInitials",
|
|
11506
|
+
"kind": "const",
|
|
11507
|
+
"category": "string",
|
|
11508
|
+
"module": "@dereekb/util",
|
|
11509
|
+
"subpath": "string/string",
|
|
11510
|
+
"signature": "const nameToInitials: NameToInitialsFunction",
|
|
11511
|
+
"description": "Derives display initials from a name or short character string using the default configuration.\n\nMulti-word inputs use the first character of each of the first two words; single-word inputs use\nthe first character verbatim. The result is always uppercased.",
|
|
11512
|
+
"params": [],
|
|
11513
|
+
"returns": "Uppercased initials, or an empty string when the input is blank.",
|
|
11514
|
+
"tags": [
|
|
11515
|
+
"string",
|
|
11516
|
+
"name",
|
|
11517
|
+
"initials",
|
|
11518
|
+
"avatar",
|
|
11519
|
+
"abbreviate",
|
|
11520
|
+
"person",
|
|
11521
|
+
"to",
|
|
11522
|
+
"nametoinitials"
|
|
11523
|
+
],
|
|
11524
|
+
"example": "nameToInitials('Michelle B'); // 'MB'\nnameToInitials('A'); // 'A'\nnameToInitials('BB'); // 'B'\nnameToInitials('Michelle'); // 'M'",
|
|
11525
|
+
"relatedSlugs": [
|
|
11526
|
+
"name-to-initials-factory",
|
|
11527
|
+
"split-join-name-string",
|
|
11528
|
+
"capitalize-first-letter"
|
|
11529
|
+
]
|
|
11530
|
+
},
|
|
11434
11531
|
{
|
|
11435
11532
|
"slug": "repeat-string",
|
|
11436
11533
|
"name": "repeatString",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-components-mcp",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.16.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"dbx-components-mcp": "dbx-components-mcp.js"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"ts-morph": "^21.0.0"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@dereekb/dbx-cli": "13.
|
|
15
|
-
"@dereekb/util": "13.
|
|
14
|
+
"@dereekb/dbx-cli": "13.16.0",
|
|
15
|
+
"@dereekb/util": "13.16.0"
|
|
16
16
|
}
|
|
17
17
|
}
|