@dereekb/dbx-components-mcp 14.16.0 → 14.18.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/dbx-components-mcp.js +4195 -962
- package/generated/dereekb-dbx-core.actions.mcp.generated.json +10 -0
- package/generated/dereekb-dbx-core.filters.mcp.generated.json +1 -1
- package/generated/dereekb-dbx-web.css-utilities.mcp.generated.json +34 -0
- package/generated/dereekb-dbx-web.ui-components.mcp.generated.json +39 -0
- package/generated/dereekb-firebase.model-firebase-index.mcp.generated.json +116 -0
- package/generated/dereekb-firebase.semantic-types.mcp.generated.json +72 -0
- package/generated/dereekb-firebase.utils.mcp.generated.json +112 -0
- package/generated/dereekb-model.utils.mcp.generated.json +41 -0
- package/generated/dereekb-util.utils.mcp.generated.json +161 -0
- package/package.json +3 -3
|
@@ -1528,6 +1528,55 @@
|
|
|
1528
1528
|
"random-number-factory"
|
|
1529
1529
|
]
|
|
1530
1530
|
},
|
|
1531
|
+
{
|
|
1532
|
+
"slug": "array-to-object",
|
|
1533
|
+
"name": "arrayToObject",
|
|
1534
|
+
"kind": "function",
|
|
1535
|
+
"category": "array",
|
|
1536
|
+
"module": "@dereekb/util",
|
|
1537
|
+
"subpath": "array/array.map",
|
|
1538
|
+
"signature": "arrayToObject(values: T[], keyFnOrConfig: ReadKeyFunction<T, K> | ArrayToObjectConfig<T, K, V>, valueFn?: (t: T) => V): Record<K, V>",
|
|
1539
|
+
"description": "Maps the values of the input array to a Record object, keyed by the result of a key function.\nItems with undefined keys are omitted. Optionally transforms each value using a value function.\n\nAlso accepts an {@link ArrayToObjectConfig} as the second argument, which can throw when two values share a key instead of letting the last value win.",
|
|
1540
|
+
"params": [
|
|
1541
|
+
{
|
|
1542
|
+
"name": "values",
|
|
1543
|
+
"type": "T[]",
|
|
1544
|
+
"description": "- source array of items to map",
|
|
1545
|
+
"optional": false
|
|
1546
|
+
},
|
|
1547
|
+
{
|
|
1548
|
+
"name": "keyFnOrConfig",
|
|
1549
|
+
"type": "ReadKeyFunction<T, K> | ArrayToObjectConfig<T, K, V>",
|
|
1550
|
+
"description": "",
|
|
1551
|
+
"optional": false
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
"name": "valueFn",
|
|
1555
|
+
"type": "(t: T) => V",
|
|
1556
|
+
"description": "- optional function to transform each item into the desired record value",
|
|
1557
|
+
"optional": true
|
|
1558
|
+
}
|
|
1559
|
+
],
|
|
1560
|
+
"returns": "a Record of keys to values derived from the input array",
|
|
1561
|
+
"tags": [
|
|
1562
|
+
"array",
|
|
1563
|
+
"object",
|
|
1564
|
+
"record",
|
|
1565
|
+
"index",
|
|
1566
|
+
"key",
|
|
1567
|
+
"lookup",
|
|
1568
|
+
"duplicate",
|
|
1569
|
+
"unique",
|
|
1570
|
+
"registry",
|
|
1571
|
+
"to",
|
|
1572
|
+
"arraytoobject"
|
|
1573
|
+
],
|
|
1574
|
+
"example": "const byId = arrayToObject([{ id: 'a' }, { id: 'b' }], (x) => x.id);\n// { a: { id: 'a' }, b: { id: 'b' } }\n\nconst registry = arrayToObject(configs, {\n readKey: (x) => x.type,\n throwOnDuplicateKey: (type) => new Error(`duplicate type in registry: ${type}`)\n});",
|
|
1575
|
+
"relatedSlugs": [
|
|
1576
|
+
"is-unique-keyed-function",
|
|
1577
|
+
"key-value-map-factory"
|
|
1578
|
+
]
|
|
1579
|
+
},
|
|
1531
1580
|
{
|
|
1532
1581
|
"slug": "random-pick-factory",
|
|
1533
1582
|
"name": "randomPickFactory",
|
|
@@ -10089,6 +10138,40 @@
|
|
|
10089
10138
|
"handler-factory"
|
|
10090
10139
|
]
|
|
10091
10140
|
},
|
|
10141
|
+
{
|
|
10142
|
+
"slug": "typed-config-registry",
|
|
10143
|
+
"name": "typedConfigRegistry",
|
|
10144
|
+
"kind": "factory",
|
|
10145
|
+
"category": "service",
|
|
10146
|
+
"module": "@dereekb/util",
|
|
10147
|
+
"subpath": "service/typed.service",
|
|
10148
|
+
"signature": "typedConfigRegistry(config: TypedConfigRegistrySetupConfig<C, T>): TypedConfigRegistry<C, T>",
|
|
10149
|
+
"description": "Creates a {@link TypedConfigRegistry} over a record of configs.\n\nLookups read the passed record with an own-property check, so a type such as `constructor` never resolves to an `Object.prototype` member. The known types and configs are captured when the registry is created and returned as copies.",
|
|
10150
|
+
"params": [
|
|
10151
|
+
{
|
|
10152
|
+
"name": "config",
|
|
10153
|
+
"type": "TypedConfigRegistrySetupConfig<C, T>",
|
|
10154
|
+
"description": "- The configs and the fallback for unregistered types.",
|
|
10155
|
+
"optional": false
|
|
10156
|
+
}
|
|
10157
|
+
],
|
|
10158
|
+
"returns": "A registry whose members can be re-exposed under domain-specific names.",
|
|
10159
|
+
"tags": [
|
|
10160
|
+
"service",
|
|
10161
|
+
"registry",
|
|
10162
|
+
"config",
|
|
10163
|
+
"type",
|
|
10164
|
+
"lookup",
|
|
10165
|
+
"fallback",
|
|
10166
|
+
"default",
|
|
10167
|
+
"typed",
|
|
10168
|
+
"typedconfigregistry"
|
|
10169
|
+
],
|
|
10170
|
+
"example": "const registry = typedConfigRegistry({\n configs: { a: { type: 'a', label: 'A' } },\n defaultConfigForType: (type) => ({ type, label: 'Unknown' })\n});\n\nregistry.configForType('a'); // { type: 'a', label: 'A' }\nregistry.configForType('b'); // { type: 'b', label: 'Unknown' }\nregistry.registeredConfigForType('b'); // undefined",
|
|
10171
|
+
"relatedSlugs": [
|
|
10172
|
+
"array-to-object"
|
|
10173
|
+
]
|
|
10174
|
+
},
|
|
10092
10175
|
{
|
|
10093
10176
|
"slug": "is-in-set-decision-function",
|
|
10094
10177
|
"name": "isInSetDecisionFunction",
|
|
@@ -10828,6 +10911,44 @@
|
|
|
10828
10911
|
"string-from-date-factory"
|
|
10829
10912
|
]
|
|
10830
10913
|
},
|
|
10914
|
+
{
|
|
10915
|
+
"slug": "js-doc-inline-links-to-text",
|
|
10916
|
+
"name": "jsDocInlineLinksToText",
|
|
10917
|
+
"kind": "function",
|
|
10918
|
+
"category": "string",
|
|
10919
|
+
"module": "@dereekb/util",
|
|
10920
|
+
"subpath": "string/jsdoc",
|
|
10921
|
+
"signature": "jsDocInlineLinksToText(input: string): string",
|
|
10922
|
+
"description": "Replaces JSDoc/TSDoc inline link tags (`{@link X}`, `{@linkplain X}`, `{@linkcode X}`) with plain display text.\n\n- `{@link Foo}` → `Foo`\n- `{@link Foo.bar}` → `Foo.bar`\n- `{@link Foo | the foo}` and `{@link Foo the foo}` → `the foo`\n- `{@link Foo#bar}` → `Foo.bar`\n- `{@link ./path/mod#member}` → `member`\n- `{@linkcode Foo}` → `` `Foo` ``\n- `{@link https://example.com}` → `https://example.com`, and with a label, the label.\n\nText without tags, and malformed tags with no target, are returned unchanged.",
|
|
10923
|
+
"params": [
|
|
10924
|
+
{
|
|
10925
|
+
"name": "input",
|
|
10926
|
+
"type": "string",
|
|
10927
|
+
"description": "- The text to convert, typically a JSDoc description.",
|
|
10928
|
+
"optional": false
|
|
10929
|
+
}
|
|
10930
|
+
],
|
|
10931
|
+
"returns": "The text with every inline link tag replaced by its display text.",
|
|
10932
|
+
"tags": [
|
|
10933
|
+
"jsdoc",
|
|
10934
|
+
"tsdoc",
|
|
10935
|
+
"link",
|
|
10936
|
+
"markdown",
|
|
10937
|
+
"text",
|
|
10938
|
+
"documentation",
|
|
10939
|
+
"string",
|
|
10940
|
+
"js",
|
|
10941
|
+
"doc",
|
|
10942
|
+
"inline",
|
|
10943
|
+
"links",
|
|
10944
|
+
"to",
|
|
10945
|
+
"jsdocinlinelinkstotext"
|
|
10946
|
+
],
|
|
10947
|
+
"example": "jsDocInlineLinksToText('Creates a {@link NotificationBox} for the {@link Profile.uid}.');\n// 'Creates a NotificationBox for the Profile.uid.'",
|
|
10948
|
+
"relatedSlugs": [
|
|
10949
|
+
"first-sentence"
|
|
10950
|
+
]
|
|
10951
|
+
},
|
|
10831
10952
|
{
|
|
10832
10953
|
"slug": "replace-strings-function",
|
|
10833
10954
|
"name": "replaceStringsFunction",
|
|
@@ -11343,6 +11464,46 @@
|
|
|
11343
11464
|
"case-insensitive-filter-by-index-of-decision-factory"
|
|
11344
11465
|
]
|
|
11345
11466
|
},
|
|
11467
|
+
{
|
|
11468
|
+
"slug": "first-sentence",
|
|
11469
|
+
"name": "firstSentence",
|
|
11470
|
+
"kind": "function",
|
|
11471
|
+
"category": "string",
|
|
11472
|
+
"module": "@dereekb/util",
|
|
11473
|
+
"subpath": "string/sentence",
|
|
11474
|
+
"signature": "firstSentence(input: string, config?: Maybe<FirstSentenceConfig>): string",
|
|
11475
|
+
"description": "Returns the first sentence of the first paragraph of the input.\n\n- The first paragraph ends at the first blank line.\n- Soft line breaks and runs of whitespace are collapsed to single spaces.\n- A sentence ends at `.`, `!` or `?` (plus optional closing `\"`, `'`, `)` or `]`) followed by the end of the text, or by whitespace and a character that is not a lowercase letter.\n- A period after `e.g`, `i.e`, `cf` or `vs` never ends a sentence.\n- With no terminator, the whole flattened paragraph is returned.\n- When `maxLength` is set and exceeded, the text is cut at the last space that fits and `endText` is appended.",
|
|
11476
|
+
"params": [
|
|
11477
|
+
{
|
|
11478
|
+
"name": "input",
|
|
11479
|
+
"type": "string",
|
|
11480
|
+
"description": "- The text to read, typically a JSDoc description.",
|
|
11481
|
+
"optional": false
|
|
11482
|
+
},
|
|
11483
|
+
{
|
|
11484
|
+
"name": "config",
|
|
11485
|
+
"type": "Maybe<FirstSentenceConfig>",
|
|
11486
|
+
"description": "- Optional length cap and end text.",
|
|
11487
|
+
"optional": true
|
|
11488
|
+
}
|
|
11489
|
+
],
|
|
11490
|
+
"returns": "The first sentence, flattened to a single line.",
|
|
11491
|
+
"tags": [
|
|
11492
|
+
"sentence",
|
|
11493
|
+
"summary",
|
|
11494
|
+
"first-line",
|
|
11495
|
+
"truncate",
|
|
11496
|
+
"paragraph",
|
|
11497
|
+
"description",
|
|
11498
|
+
"string",
|
|
11499
|
+
"first",
|
|
11500
|
+
"firstsentence"
|
|
11501
|
+
],
|
|
11502
|
+
"example": "firstSentence('Creates the\\nthing for the user. Then more.');\n// 'Creates the thing for the user.'",
|
|
11503
|
+
"relatedSlugs": [
|
|
11504
|
+
"js-doc-inline-links-to-text"
|
|
11505
|
+
]
|
|
11506
|
+
},
|
|
11346
11507
|
{
|
|
11347
11508
|
"slug": "compare-strings",
|
|
11348
11509
|
"name": "compareStrings",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-components-mcp",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.18.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"ts-morph": "^21.0.0"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@dereekb/dbx-cli": "14.
|
|
16
|
-
"@dereekb/util": "14.
|
|
15
|
+
"@dereekb/dbx-cli": "14.18.0",
|
|
16
|
+
"@dereekb/util": "14.18.0"
|
|
17
17
|
}
|
|
18
18
|
}
|