@modality-counter/core 2.5.2 → 2.6.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/dist/index.js +240 -244
- package/dist/types/util_counter_data.d.ts +2 -1
- package/dist/types/util_fzf.d.ts +1 -0
- package/package.json +1 -1
|
@@ -51,7 +51,8 @@ export interface CounterContent {
|
|
|
51
51
|
partyMode?: string;
|
|
52
52
|
}
|
|
53
53
|
export declare function getCounterContent(items: CounterItem[], callSign: string, params?: any, executeScript?: boolean, options?: ReferenceOptions): Promise<CounterContent | false>;
|
|
54
|
-
export declare function getAllCounterItems(types?: ResourceType[], baseDir?: string
|
|
54
|
+
export declare function getAllCounterItems(types?: ResourceType[], baseDir?: string, // app/src/counter
|
|
55
|
+
excludePatterns?: string[]): Promise<CounterItem[]>;
|
|
55
56
|
/**
|
|
56
57
|
* Fuzzy-search Counter items by keyword over their id, name and description.
|
|
57
58
|
* Returns matches ordered by relevance score (highest first).
|
package/dist/types/util_fzf.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ declare class FuzzyFinder<T extends {
|
|
|
28
28
|
segmentWords(chunk: string): string[];
|
|
29
29
|
getTokens(query: string): string[];
|
|
30
30
|
wildcardToRegExp(token: string): RegExp;
|
|
31
|
+
findWildcardMatch(item: string, token: string): RegExpExecArray | null;
|
|
31
32
|
scoreWildcardToken(item: string, token: string): ScoreResult | null;
|
|
32
33
|
scoreToken(item: string, token: string): ScoreResult | null;
|
|
33
34
|
score(item: string, query: string): ScoreResult | null;
|
package/package.json
CHANGED