@eightyfourthousand/lib-search 2026.5.0 → 2026.5.1
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/lib/data/search.d.ts +8 -0
- package/lib/data/search.js +3 -0
- package/lib/data/search.js.map +1 -1
- package/package.json +5 -5
package/lib/data/search.d.ts
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
import { DataClient } from '@eightyfourthousand/data-access';
|
|
1
2
|
export declare const search: ({ text, uuid, toh, useRegex, }: {
|
|
2
3
|
text: string;
|
|
3
4
|
uuid: string;
|
|
4
5
|
toh: string;
|
|
5
6
|
useRegex?: boolean;
|
|
6
7
|
}) => Promise<import("../types").SearchResults | undefined>;
|
|
8
|
+
export declare const searchWithClient: ({ client, text, uuid, toh, useRegex, }: {
|
|
9
|
+
client: DataClient;
|
|
10
|
+
text: string;
|
|
11
|
+
uuid: string;
|
|
12
|
+
toh: string;
|
|
13
|
+
useRegex?: boolean;
|
|
14
|
+
}) => Promise<import("../types").SearchResults | undefined>;
|
package/lib/data/search.js
CHANGED
|
@@ -3,6 +3,9 @@ import { createServerClient } from '@eightyfourthousand/data-access/ssr';
|
|
|
3
3
|
import { searchResultsFromDTO } from '../types';
|
|
4
4
|
export const search = async ({ text, uuid, toh, useRegex = false, }) => {
|
|
5
5
|
const client = await createServerClient();
|
|
6
|
+
return await searchWithClient({ client, text, uuid, toh, useRegex });
|
|
7
|
+
};
|
|
8
|
+
export const searchWithClient = async ({ client, text, uuid, toh, useRegex = false, }) => {
|
|
6
9
|
const { data, error } = await client.rpc('translation_search', {
|
|
7
10
|
search_term: text,
|
|
8
11
|
work_uuid: uuid,
|
package/lib/data/search.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../../../../libs/lib-search/src/lib/data/search.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../../../../libs/lib-search/src/lib/data/search.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAGhD,MAAM,CAAC,MAAM,MAAM,GAAG,KAAK,EAAE,EAC3B,IAAI,EACJ,IAAI,EACJ,GAAG,EACH,QAAQ,GAAG,KAAK,GAMjB,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,MAAM,kBAAkB,EAAE,CAAC;IAC1C,OAAO,MAAM,gBAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AACvE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,EAAE,EACrC,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,GAAG,EACH,QAAQ,GAAG,KAAK,GAOjB,EAAE,EAAE;IACH,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,oBAAoB,EAAE;QAC7D,WAAW,EAAE,IAAI;QACjB,SAAS,EAAE,IAAI;QACf,GAAG,EAAE,GAAG;QACR,SAAS,EAAE,QAAQ;KACpB,CAAC,CAAC;IAEH,IAAI,KAAK,EAAE,CAAC;QACV,OAAO,CAAC,KAAK,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;QACtC,OAAO;IACT,CAAC;IAED,OAAO,oBAAoB,CAAC,IAAI,CAAC,CAAC;AACpC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eightyfourthousand/lib-search",
|
|
3
|
-
"version": "2026.5.
|
|
3
|
+
"version": "2026.5.1",
|
|
4
4
|
"description": "Shared translation search UI and server helpers for 84000 applications.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@eightyfourthousand/client-graphql": "^2026.5.
|
|
21
|
-
"@eightyfourthousand/data-access": "^2026.5.
|
|
22
|
-
"@eightyfourthousand/design-system": "^2026.5.
|
|
23
|
-
"@eightyfourthousand/lib-utils": "^2026.5.
|
|
20
|
+
"@eightyfourthousand/client-graphql": "^2026.5.1",
|
|
21
|
+
"@eightyfourthousand/data-access": "^2026.5.1",
|
|
22
|
+
"@eightyfourthousand/design-system": "^2026.5.1",
|
|
23
|
+
"@eightyfourthousand/lib-utils": "^2026.5.1",
|
|
24
24
|
"lucide-react": "^0.477.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|