@dxos/plugin-search 0.8.4-main.f9ba587 → 0.8.4-main.fcc0d83b33

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.
Files changed (158) hide show
  1. package/README.md +0 -1
  2. package/dist/lib/browser/index.mjs +309 -89
  3. package/dist/lib/browser/index.mjs.map +4 -4
  4. package/dist/lib/browser/meta.json +1 -1
  5. package/dist/lib/browser/translations.mjs +23 -0
  6. package/dist/lib/browser/translations.mjs.map +7 -0
  7. package/dist/types/src/SearchPlugin.d.ts +2 -1
  8. package/dist/types/src/SearchPlugin.d.ts.map +1 -1
  9. package/dist/types/src/capabilities/app-graph-builder.d.ts +4 -2
  10. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  11. package/dist/types/src/capabilities/index.d.ts +5 -3
  12. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  13. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  14. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  15. package/dist/types/src/capabilities/react-surface.d.ts +3 -2
  16. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  17. package/dist/types/src/components/SearchResultStack/SearchResultStack.d.ts +9 -0
  18. package/dist/types/src/components/SearchResultStack/SearchResultStack.d.ts.map +1 -0
  19. package/dist/types/src/components/SearchResultStack/index.d.ts +2 -0
  20. package/dist/types/src/components/SearchResultStack/index.d.ts.map +1 -0
  21. package/dist/types/src/components/index.d.ts +1 -3
  22. package/dist/types/src/components/index.d.ts.map +1 -1
  23. package/dist/types/src/constants.d.ts +2 -0
  24. package/dist/types/src/constants.d.ts.map +1 -0
  25. package/dist/types/src/containers/SearchArticle/SearchArticle.d.ts +4 -0
  26. package/dist/types/src/containers/SearchArticle/SearchArticle.d.ts.map +1 -0
  27. package/dist/types/src/containers/SearchArticle/SearchArticle.stories.d.ts +14 -0
  28. package/dist/types/src/containers/SearchArticle/SearchArticle.stories.d.ts.map +1 -0
  29. package/dist/types/src/containers/SearchArticle/index.d.ts +2 -0
  30. package/dist/types/src/containers/SearchArticle/index.d.ts.map +1 -0
  31. package/dist/types/src/containers/SearchDialog/SearchDialog.d.ts +7 -0
  32. package/dist/types/src/containers/SearchDialog/SearchDialog.d.ts.map +1 -0
  33. package/dist/types/src/containers/SearchDialog/SearchDialog.stories.d.ts +16 -0
  34. package/dist/types/src/containers/SearchDialog/SearchDialog.stories.d.ts.map +1 -0
  35. package/dist/types/src/containers/SearchDialog/index.d.ts +2 -0
  36. package/dist/types/src/containers/SearchDialog/index.d.ts.map +1 -0
  37. package/dist/types/src/containers/index.d.ts +4 -0
  38. package/dist/types/src/containers/index.d.ts.map +1 -0
  39. package/dist/types/src/hooks/index.d.ts +1 -0
  40. package/dist/types/src/hooks/index.d.ts.map +1 -1
  41. package/dist/types/src/hooks/sync.d.ts +4 -3
  42. package/dist/types/src/hooks/sync.d.ts.map +1 -1
  43. package/dist/types/src/hooks/useGlobalSearch.d.ts +8 -4
  44. package/dist/types/src/hooks/useGlobalSearch.d.ts.map +1 -1
  45. package/dist/types/src/hooks/useSearchResults.d.ts +3 -2
  46. package/dist/types/src/hooks/useSearchResults.d.ts.map +1 -1
  47. package/dist/types/src/hooks/useWebSearch.d.ts +7 -4
  48. package/dist/types/src/hooks/useWebSearch.d.ts.map +1 -1
  49. package/dist/types/src/meta.d.ts +3 -4
  50. package/dist/types/src/meta.d.ts.map +1 -1
  51. package/dist/types/src/operations/definitions.d.ts +3 -0
  52. package/dist/types/src/operations/definitions.d.ts.map +1 -0
  53. package/dist/types/src/operations/index.d.ts +4 -0
  54. package/dist/types/src/operations/index.d.ts.map +1 -0
  55. package/dist/types/src/operations/open-search.d.ts +5 -0
  56. package/dist/types/src/operations/open-search.d.ts.map +1 -0
  57. package/dist/types/src/search/exa.d.ts +4 -4
  58. package/dist/types/src/search/exa.d.ts.map +1 -1
  59. package/dist/types/src/translations.d.ts +15 -10
  60. package/dist/types/src/translations.d.ts.map +1 -1
  61. package/dist/types/src/types/index.d.ts +1 -2
  62. package/dist/types/src/types/index.d.ts.map +1 -1
  63. package/dist/types/src/types/search.d.ts +1 -20
  64. package/dist/types/src/types/search.d.ts.map +1 -1
  65. package/dist/types/tsconfig.tsbuildinfo +1 -1
  66. package/package.json +73 -49
  67. package/src/SearchPlugin.tsx +30 -48
  68. package/src/capabilities/app-graph-builder.ts +56 -69
  69. package/src/capabilities/index.ts +8 -4
  70. package/src/capabilities/operation-handler.ts +16 -0
  71. package/src/capabilities/react-surface.tsx +68 -55
  72. package/src/components/SearchResultStack/SearchResultStack.tsx +118 -0
  73. package/src/components/SearchResultStack/index.ts +5 -0
  74. package/src/components/index.ts +1 -3
  75. package/src/constants.ts +7 -0
  76. package/src/containers/SearchArticle/SearchArticle.stories.tsx +79 -0
  77. package/src/containers/SearchArticle/SearchArticle.tsx +60 -0
  78. package/src/containers/SearchArticle/index.ts +5 -0
  79. package/src/containers/SearchDialog/SearchDialog.stories.tsx +108 -0
  80. package/src/containers/SearchDialog/SearchDialog.tsx +93 -0
  81. package/src/containers/SearchDialog/index.ts +5 -0
  82. package/src/containers/index.ts +8 -0
  83. package/src/hooks/index.ts +2 -0
  84. package/src/hooks/sync.test.ts +9 -7
  85. package/src/hooks/sync.ts +28 -32
  86. package/src/hooks/useGlobalSearch.tsx +33 -13
  87. package/src/hooks/useSearchResults.ts +9 -6
  88. package/src/hooks/useWebSearch.ts +25 -19
  89. package/src/meta.ts +10 -7
  90. package/src/operations/definitions.ts +17 -0
  91. package/src/operations/index.ts +9 -0
  92. package/src/operations/open-search.ts +24 -0
  93. package/src/search/exa.test.ts +9 -32
  94. package/src/search/exa.ts +140 -168
  95. package/src/translations.ts +10 -9
  96. package/src/types/command-score.d.ts +16 -0
  97. package/src/types/index.ts +1 -2
  98. package/src/types/search.ts +1 -25
  99. package/dist/lib/browser/app-graph-builder-V667YGDS.mjs +0 -77
  100. package/dist/lib/browser/app-graph-builder-V667YGDS.mjs.map +0 -7
  101. package/dist/lib/browser/chunk-2QKDUXCH.mjs +0 -21
  102. package/dist/lib/browser/chunk-2QKDUXCH.mjs.map +0 -7
  103. package/dist/lib/browser/chunk-KNS62YL2.mjs +0 -20
  104. package/dist/lib/browser/chunk-KNS62YL2.mjs.map +0 -7
  105. package/dist/lib/browser/chunk-LPB2XRYL.mjs +0 -190
  106. package/dist/lib/browser/chunk-LPB2XRYL.mjs.map +0 -7
  107. package/dist/lib/browser/intent-resolver-SPX5JVY7.mjs +0 -22
  108. package/dist/lib/browser/intent-resolver-SPX5JVY7.mjs.map +0 -7
  109. package/dist/lib/browser/react-surface-HMXHJSLE.mjs +0 -642
  110. package/dist/lib/browser/react-surface-HMXHJSLE.mjs.map +0 -7
  111. package/dist/lib/node-esm/app-graph-builder-IZHM72QQ.mjs +0 -78
  112. package/dist/lib/node-esm/app-graph-builder-IZHM72QQ.mjs.map +0 -7
  113. package/dist/lib/node-esm/chunk-L7BUHKLC.mjs +0 -192
  114. package/dist/lib/node-esm/chunk-L7BUHKLC.mjs.map +0 -7
  115. package/dist/lib/node-esm/chunk-N5SNYFMK.mjs +0 -22
  116. package/dist/lib/node-esm/chunk-N5SNYFMK.mjs.map +0 -7
  117. package/dist/lib/node-esm/chunk-Y7BGRQH5.mjs +0 -22
  118. package/dist/lib/node-esm/chunk-Y7BGRQH5.mjs.map +0 -7
  119. package/dist/lib/node-esm/index.mjs +0 -113
  120. package/dist/lib/node-esm/index.mjs.map +0 -7
  121. package/dist/lib/node-esm/intent-resolver-MFPFD3XC.mjs +0 -23
  122. package/dist/lib/node-esm/intent-resolver-MFPFD3XC.mjs.map +0 -7
  123. package/dist/lib/node-esm/meta.json +0 -1
  124. package/dist/lib/node-esm/react-surface-WHU5EEAQ.mjs +0 -643
  125. package/dist/lib/node-esm/react-surface-WHU5EEAQ.mjs.map +0 -7
  126. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  127. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  128. package/dist/types/src/components/Search.stories.d.ts +0 -15
  129. package/dist/types/src/components/Search.stories.d.ts.map +0 -1
  130. package/dist/types/src/components/SearchDialog.d.ts +0 -7
  131. package/dist/types/src/components/SearchDialog.d.ts.map +0 -1
  132. package/dist/types/src/components/SearchMain.d.ts +0 -7
  133. package/dist/types/src/components/SearchMain.d.ts.map +0 -1
  134. package/dist/types/src/components/SearchResults/SearchResults.d.ts +0 -20
  135. package/dist/types/src/components/SearchResults/SearchResults.d.ts.map +0 -1
  136. package/dist/types/src/components/SearchResults/SearchResults.stories.d.ts +0 -12
  137. package/dist/types/src/components/SearchResults/SearchResults.stories.d.ts.map +0 -1
  138. package/dist/types/src/components/SearchResults/index.d.ts +0 -2
  139. package/dist/types/src/components/SearchResults/index.d.ts.map +0 -1
  140. package/dist/types/src/components/Searchbar/Searchbar.d.ts +0 -14
  141. package/dist/types/src/components/Searchbar/Searchbar.d.ts.map +0 -1
  142. package/dist/types/src/components/Searchbar/Searchbar.stories.d.ts +0 -11
  143. package/dist/types/src/components/Searchbar/Searchbar.stories.d.ts.map +0 -1
  144. package/dist/types/src/components/Searchbar/index.d.ts +0 -2
  145. package/dist/types/src/components/Searchbar/index.d.ts.map +0 -1
  146. package/dist/types/src/types/action.d.ts +0 -13
  147. package/dist/types/src/types/action.d.ts.map +0 -1
  148. package/src/capabilities/intent-resolver.ts +0 -18
  149. package/src/components/Search.stories.tsx +0 -66
  150. package/src/components/SearchDialog.tsx +0 -124
  151. package/src/components/SearchMain.tsx +0 -67
  152. package/src/components/SearchResults/SearchResults.stories.tsx +0 -57
  153. package/src/components/SearchResults/SearchResults.tsx +0 -86
  154. package/src/components/SearchResults/index.ts +0 -5
  155. package/src/components/Searchbar/Searchbar.stories.tsx +0 -28
  156. package/src/components/Searchbar/Searchbar.tsx +0 -69
  157. package/src/components/Searchbar/index.ts +0 -5
  158. package/src/types/action.tsx +0 -16
@@ -0,0 +1,23 @@
1
+ // src/translations.ts
2
+ import { translations as searchTranslations } from "@dxos/react-ui-search/translations";
3
+ import { meta } from "#meta";
4
+ var translations = [
5
+ ...searchTranslations,
6
+ {
7
+ "en-US": {
8
+ [meta.id]: {
9
+ "plugin.name": "Search",
10
+ "search-action.label": "Search spaces",
11
+ "search.placeholder": "Search\u2026",
12
+ "search-dialog.title": "Search",
13
+ "recently-closed.heading": "Recently closed",
14
+ "pending-results.message": "Searching\u2026",
15
+ "search.label": "Search"
16
+ }
17
+ }
18
+ }
19
+ ];
20
+ export {
21
+ translations
22
+ };
23
+ //# sourceMappingURL=translations.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/translations.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\nimport { translations as searchTranslations } from '@dxos/react-ui-search/translations';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n ...searchTranslations,\n {\n 'en-US': {\n [meta.id]: {\n 'plugin.name': 'Search',\n 'search-action.label': 'Search spaces',\n 'search.placeholder': 'Search…',\n 'search-dialog.title': 'Search',\n 'recently-closed.heading': 'Recently closed',\n 'pending-results.message': 'Searching…',\n 'search.label': 'Search',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
+ "mappings": ";AAKA,SAASA,gBAAgBC,0BAA0B;AAEnD,SAASC,YAAY;AAEd,IAAMF,eAAe;KACvBC;EACH;IACE,SAAS;MACP,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;QACf,uBAAuB;QACvB,sBAAsB;QACtB,uBAAuB;QACvB,2BAA2B;QAC3B,2BAA2B;QAC3B,gBAAgB;MAClB;IACF;EACF;;",
6
+ "names": ["translations", "searchTranslations", "meta", "id"]
7
+ }
@@ -1,2 +1,3 @@
1
- export declare const SearchPlugin: () => import("@dxos/app-framework").Plugin;
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const SearchPlugin: Plugin.PluginFactory<void>;
2
3
  //# sourceMappingURL=SearchPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SearchPlugin.d.ts","sourceRoot":"","sources":["../../../src/SearchPlugin.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY,4CA0CrB,CAAC"}
1
+ {"version":3,"file":"SearchPlugin.d.ts","sourceRoot":"","sources":["../../../src/SearchPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAQ7C,eAAO,MAAM,YAAY,4BAuBxB,CAAC"}
@@ -1,4 +1,6 @@
1
- import { type PluginContext } from '@dxos/app-framework';
2
- declare const _default: (context: PluginContext) => import("@dxos/app-framework").Capability<import("@dxos/app-graph").BuilderExtensions>;
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import { GraphBuilder } from '@dxos/plugin-graph';
4
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<GraphBuilder.BuilderExtensions>>, never, Capability.Service>;
3
5
  export default _default;
4
6
  //# sourceMappingURL=app-graph-builder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAOA,OAAO,EAA2C,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;yBASlF,SAAS,aAAa;AAAtC,wBA8DK"}
1
+ {"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,OAAO,EAAE,YAAY,EAAe,MAAM,oBAAoB,CAAC"}
@@ -1,4 +1,6 @@
1
- export declare const AppGraphBuilder: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-graph").BuilderExtensions> | import("@dxos/app-framework").AnyCapability[]>>;
2
- export declare const IntentResolver: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.IntentResolver> | import("@dxos/app-framework").AnyCapability[]>>;
3
- export declare const ReactSurface: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.ReactSurface> | import("@dxos/app-framework").AnyCapability[]>>;
1
+ import { Capability } from '@dxos/app-framework';
2
+ import { OperationHandlerSet } from '@dxos/compute';
3
+ export declare const AppGraphBuilder: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-graph").BuilderExtensions>>, Error>;
4
+ export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
5
+ export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe,oOAA4C,CAAC;AACzE,eAAO,MAAM,cAAc,kMAA0C,CAAC;AACtE,eAAO,MAAM,YAAY,gMAAwC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,eAAe,qIAA0E,CAAC;AACvG,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iJAAmE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import type { OperationHandlerSet } from '@dxos/compute';
4
+ declare const _default: (props: OperationHandlerSet.OperationHandlerSet) => Effect.Effect<Capability.ModuleReturn, Error, Capability.Service>;
5
+ export default _default;
6
+ //# sourceMappingURL=operation-handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/operation-handler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC"}
@@ -1,4 +1,5 @@
1
- import { Capabilities } from '@dxos/app-framework';
2
- declare const _default: () => import("@dxos/app-framework").Capability<Capabilities.ReactSurface>;
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capabilities, Capability } from '@dxos/app-framework';
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.ReactSurface>>, never, never>;
3
4
  export default _default;
4
5
  //# sourceMappingURL=react-surface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAA8B,MAAM,qBAAqB,CAAC;;AAO/E,wBA6CK"}
1
+ {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { type SearchResult } from '@dxos/react-ui-search';
3
+ export type SearchResultStackProps = {
4
+ results: SearchResult[];
5
+ };
6
+ export declare const SearchResultStack: React.ForwardRefExoticComponent<Omit<SearchResultStackProps, "className"> & {
7
+ classNames?: import("@dxos/ui-types").ClassNameValue;
8
+ } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
9
+ //# sourceMappingURL=SearchResultStack.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchResultStack.d.ts","sourceRoot":"","sources":["../../../../../src/components/SearchResultStack/SearchResultStack.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAyE,MAAM,OAAO,CAAC;AAS9F,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAO1D,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;2HAiC7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './SearchResultStack';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/SearchResultStack/index.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC"}
@@ -1,4 +1,2 @@
1
- export * from './Searchbar';
2
- export * from './SearchMain';
3
- export * from './SearchDialog';
1
+ export * from './SearchResultStack';
4
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const SEARCH_DIALOG: string;
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa,QAA4B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { AppSurface } from '@dxos/app-toolkit/ui';
3
+ export declare const SearchArticle: ({ space }: AppSurface.SpaceArticleProps) => React.JSX.Element;
4
+ //# sourceMappingURL=SearchArticle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchArticle.d.ts","sourceRoot":"","sources":["../../../../../src/containers/SearchArticle/SearchArticle.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAWlD,eAAO,MAAM,aAAa,cAAe,UAAU,CAAC,iBAAiB,sBA0CpE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
3
+ declare const meta: {
4
+ title: string;
5
+ render: () => React.JSX.Element;
6
+ decorators: import("@storybook/react").Decorator[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Default: Story;
14
+ //# sourceMappingURL=SearchArticle.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchArticle.stories.d.ts","sourceRoot":"","sources":["../../../../../src/containers/SearchArticle/SearchArticle.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAmC1B,QAAA,MAAM,IAAI;;;;;QA6BN,MAAM;;CAE2B,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { SearchArticle as default } from './SearchArticle';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/SearchArticle/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { type AppSurface } from '@dxos/app-toolkit/ui';
3
+ export type SearchDialogProps = AppSurface.SpaceArticleProps<{
4
+ pivotId?: string;
5
+ }>;
6
+ export declare const SearchDialog: ({ space, pivotId: pivotIdProp }: SearchDialogProps) => React.JSX.Element;
7
+ //# sourceMappingURL=SearchDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchDialog.d.ts","sourceRoot":"","sources":["../../../../../src/containers/SearchDialog/SearchDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAI9D,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAYvD,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,eAAO,MAAM,YAAY,oCAAqC,iBAAiB,sBAoE9E,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
3
+ declare const meta: {
4
+ title: string;
5
+ render: () => React.JSX.Element;
6
+ decorators: import("@storybook/react").Decorator[];
7
+ tags: string[];
8
+ parameters: {
9
+ layout: string;
10
+ };
11
+ };
12
+ export default meta;
13
+ type Story = StoryObj<typeof meta>;
14
+ export declare const Default: Story;
15
+ export declare const Test: Story;
16
+ //# sourceMappingURL=SearchDialog.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchDialog.stories.d.ts","sourceRoot":"","sources":["../../../../../src/containers/SearchDialog/SearchDialog.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAyC1B,QAAA,MAAM,IAAI;;;;;;QA8BN,MAAM;;CAE2B,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,IAAI,EAAE,KAoBlB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { SearchDialog as default } from './SearchDialog';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/SearchDialog/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,IAAI,OAAO,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { type ComponentType } from 'react';
2
+ export declare const SearchDialog: ComponentType<any>;
3
+ export declare const SearchArticle: ComponentType<any>;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/containers/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAQ,MAAM,OAAO,CAAC;AAEjD,eAAO,MAAM,YAAY,EAAE,aAAa,CAAC,GAAG,CAAwC,CAAC;AACrF,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,GAAG,CAAyC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from './sync';
2
2
  export * from './useGlobalSearch';
3
3
  export * from './useSearchResults';
4
+ export * from './useWebSearch';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AAEvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC"}
@@ -1,7 +1,8 @@
1
- import { type SearchResult } from '../types';
1
+ import { Entity } from '@dxos/echo';
2
+ import { type SearchResult } from '#types';
2
3
  export declare const queryStringToMatch: (queryString?: string) => RegExp | undefined;
3
4
  export type TextFields = Record<string, string>;
4
- export declare const filterObjectsSync: <T extends Record<string, any>>(objects: T[], match?: RegExp) => SearchResult[];
5
+ export declare const filterObjectsSync: <T extends Entity.Unknown>(objects: T[], match?: RegExp) => SearchResult<T>[];
5
6
  export declare const getStringProperty: (object: any, keys: string[]) => string | undefined;
6
- export declare const mapObjectToTextFields: <T extends Record<string, unknown>>(object: T) => TextFields;
7
+ export declare const mapObjectToTextFields: <T extends Entity.Unknown>(object: T) => TextFields;
7
8
  //# sourceMappingURL=sync.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../src/hooks/sync.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,kBAAkB,GAAI,cAAc,MAAM,KAAG,MAAM,GAAG,SAGlE,CAAC;AAuBF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAGhD,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,SAAS,CAAC,EAAE,EAAE,QAAQ,MAAM,KAAG,YAAY,EAqC3G,CAAC;AAGF,eAAO,MAAM,iBAAiB,GAAI,QAAQ,GAAG,EAAE,MAAM,MAAM,EAAE,KAAG,MAAM,GAAG,SAaxE,CAAC;AAiBF,eAAO,MAAM,qBAAqB,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,KAAG,UAapF,CAAC"}
1
+ {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../src/hooks/sync.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,MAAM,EAAO,MAAM,YAAY,CAAC;AAGzC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,eAAO,MAAM,kBAAkB,iBAAkB,MAAM,KAAG,MAAM,GAAG,SAGlE,CAAC;AAuBF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAGhD,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,MAAM,CAAC,OAAO,WAAW,CAAC,EAAE,UAAU,MAAM,KAAG,YAAY,CAAC,CAAC,CAAC,EAgCzG,CAAC;AAGF,eAAO,MAAM,iBAAiB,WAAY,GAAG,QAAQ,MAAM,EAAE,KAAG,MAAM,GAAG,SAaxE,CAAC;AAiBF,eAAO,MAAM,qBAAqB,GAAI,CAAC,SAAS,MAAM,CAAC,OAAO,UAAU,CAAC,KAAG,UAa3E,CAAC"}
@@ -1,12 +1,16 @@
1
1
  import React, { type PropsWithChildren } from 'react';
2
- import { type SearchResult } from '../types';
2
+ import { type Entity } from '@dxos/echo';
3
+ import { type SearchResult } from '#types';
4
+ export { useGlobalFilteredObjects, GlobalFilterProvider } from '@dxos/react-ui-search';
3
5
  type SearchContextType = {
4
6
  match?: RegExp;
5
7
  setMatch?: (text?: string) => void;
6
8
  };
9
+ /**
10
+ * Provider for global search context.
11
+ * Also provides the GlobalFilterProvider for useGlobalFilteredObjects to work.
12
+ */
7
13
  export declare const SearchContextProvider: ({ children }: PropsWithChildren) => React.JSX.Element;
8
14
  export declare const useGlobalSearch: () => SearchContextType;
9
- export declare const useGlobalSearchResults: <T extends Record<string, any>>(objects?: T[]) => SearchResult[];
10
- export declare const useGlobalFilteredObjects: <T extends Record<string, any>>(objects?: T[]) => T[];
11
- export {};
15
+ export declare const useGlobalSearchResults: <T extends Entity.Unknown>(objects?: T[]) => SearchResult<T>[];
12
16
  //# sourceMappingURL=useGlobalSearch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useGlobalSearch.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useGlobalSearch.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAiB,KAAK,iBAAiB,EAAiC,MAAM,OAAO,CAAC;AAKpG,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,KAAK,iBAAiB,GAAG;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAIF,eAAO,MAAM,qBAAqB,GAAI,cAAc,iBAAiB,sBAIpE,CAAC;AAEF,eAAO,MAAM,eAAe,yBAE3B,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,UAAU,CAAC,EAAE,KAAG,YAAY,EAGjG,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,UAAU,CAAC,EAAE,KAAG,CAAC,EAOxF,CAAC"}
1
+ {"version":3,"file":"useGlobalSearch.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useGlobalSearch.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAoD,MAAM,OAAO,CAAC;AAGxG,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,YAAY,CAAC;AAGzC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAK3C,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAEvF,KAAK,iBAAiB,GAAG;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,iBAAkB,iBAAiB,sBAuBpE,CAAC;AAEF,eAAO,MAAM,eAAe,yBAE3B,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,CAAC,SAAS,MAAM,CAAC,OAAO,YAAY,CAAC,EAAE,KAAG,YAAY,CAAC,CAAC,CAAC,EAG/F,CAAC"}
@@ -1,3 +1,4 @@
1
- export declare const filterObjects: <T extends Record<string, any>>(objects: T[], match?: RegExp) => Promise<Map<T, string[][]>>;
2
- export declare const useSearchResults: <T extends Record<string, any>>(queryString?: string, objects?: T[], delay?: number) => [boolean, Map<T, string[][]>];
1
+ import { type Entity } from '@dxos/echo';
2
+ export declare const filterObjects: <T extends Entity.Unknown>(objects: T[], match?: RegExp) => Promise<Map<T, string[][]>>;
3
+ export declare const useSearchResults: <T extends Entity.Unknown>(queryString?: string, objects?: T[], delay?: number) => [boolean, Map<T, string[][]>];
3
4
  //# sourceMappingURL=useSearchResults.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSearchResults.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSearchResults.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,aAAa,GAAU,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC/D,SAAS,CAAC,EAAE,EACZ,QAAQ,MAAM,KACb,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,CAsB5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC5D,cAAc,MAAM,EACpB,UAAU,CAAC,EAAE,EACb,QAAO,MAAY,KAClB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,CAiB9B,CAAC"}
1
+ {"version":3,"file":"useSearchResults.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSearchResults.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,YAAY,CAAC;AAMzC,eAAO,MAAM,aAAa,GAAU,CAAC,SAAS,MAAM,CAAC,OAAO,WACjD,CAAC,EAAE,UACJ,MAAM,KACb,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,CAwB5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,MAAM,CAAC,OAAO,gBACzC,MAAM,YACV,CAAC,EAAE,UACN,MAAM,KACZ,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,CAiB9B,CAAC"}
@@ -1,10 +1,13 @@
1
- import { type SearchResult } from '../types';
2
- export declare const useWebSearch: ({ query, context }: {
1
+ import { type SearchResult } from '#types';
2
+ export type UseWebSearchProps = {
3
3
  query?: string;
4
4
  context?: string;
5
- }) => {
6
- runSearch: () => Promise<void>;
5
+ };
6
+ export type UseWebSearch = {
7
+ update: () => Promise<void>;
7
8
  results: SearchResult[];
8
9
  isLoading: boolean;
9
10
  };
11
+ /** @deprecated */
12
+ export declare const useWebSearch: ({ query, context }: UseWebSearchProps) => UseWebSearch;
10
13
  //# sourceMappingURL=useWebSearch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useWebSearch.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useWebSearch.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,YAAY,GAAI,oBAAoB;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE;;;;CAuCpF,CAAC"}
1
+ {"version":3,"file":"useWebSearch.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useWebSearch.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAK3C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,kBAAkB;AAElB,eAAO,MAAM,YAAY,uBAAwB,iBAAiB,KAAG,YAiCpE,CAAC"}
@@ -1,5 +1,4 @@
1
- import { type PluginMeta } from '@dxos/app-framework';
2
- export declare const SEARCH_PLUGIN = "dxos.org/plugin/search";
3
- export declare const SEARCH_RESULT = "dxos.org/plugin/search/result";
4
- export declare const meta: PluginMeta;
1
+ import { type Plugin } from '@dxos/app-framework';
2
+ export declare const meta: Plugin.Meta;
3
+ export declare const SEARCH_RESULT: string;
5
4
  //# sourceMappingURL=meta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAO,MAAM,aAAa,2BAA2B,CAAC;AACtD,eAAO,MAAM,aAAa,kCAA4B,CAAC;AAEvD,eAAO,MAAM,IAAI,EAAE,UAOlB,CAAC"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IAUzB,CAAC;AAEF,eAAO,MAAM,aAAa,QAAsB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Operation } from '@dxos/compute';
2
+ export declare const OpenSearch: Operation.Definition<void, void, never>;
3
+ //# sourceMappingURL=definitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../src/operations/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,eAAO,MAAM,UAAU,yCAIrB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { OperationHandlerSet } from '@dxos/compute';
2
+ export * as SearchOperation from './definitions';
3
+ export declare const SearchOperationHandlerSet: OperationHandlerSet.OperationHandlerSet;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/operations/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,KAAK,eAAe,MAAM,eAAe,CAAC;AAEjD,eAAO,MAAM,yBAAyB,yCAA0D,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { Operation } from '@dxos/compute';
2
+ import { OpenSearch } from './definitions';
3
+ declare const handler: Operation.WithHandler<typeof OpenSearch>;
4
+ export default handler;
5
+ //# sourceMappingURL=open-search.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-search.d.ts","sourceRoot":"","sources":["../../../../src/operations/open-search.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,UAAU,CASrD,CAAC;eAEa,OAAO"}
@@ -1,10 +1,9 @@
1
- import { Schema } from 'effect';
2
- import { type AiServiceClient } from '@dxos/ai';
1
+ import * as Schema from 'effect/Schema';
2
+ import { type Entity } from '@dxos/echo';
3
3
  export type SearchOptions<Schema extends Schema.Schema.AnyNoContext> = {
4
4
  query?: string;
5
5
  context?: string;
6
6
  schema: Schema[];
7
- AiService: AiServiceClient;
8
7
  exaApiKey: string;
9
8
  liveCrawl?: boolean;
10
9
  };
@@ -15,5 +14,6 @@ export type SearchResult<T = unknown> = {
15
14
  dataExtractionTime: number;
16
15
  };
17
16
  };
18
- export declare const search: <Schema extends Schema.Schema.AnyNoContext>(options: SearchOptions<Schema>) => Promise<SearchResult<Schema.Schema.Type<Schema>>>;
17
+ /** @deprecated Use MixedStreamParser */
18
+ export declare const search: <Schema extends Schema.Schema.AnyNoContext>(options: SearchOptions<Schema>) => Promise<SearchResult<Entity.Unknown>>;
19
19
  //# sourceMappingURL=exa.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"exa.d.ts","sourceRoot":"","sources":["../../../../src/search/exa.ts"],"names":[],"mappings":"AAIA,OAAO,EAAU,MAAM,EAAa,MAAM,QAAQ,CAAC;AAGnD,OAAO,EACL,KAAK,eAAe,EAMrB,MAAM,UAAU,CAAC;AASlB,MAAM,MAAM,aAAa,CAAC,MAAM,SAAS,MAAM,CAAC,MAAM,CAAC,YAAY,IAAI;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,MAAM,EAAE,MAAM,EAAE,CAAC;IAEjB,SAAS,EAAE,eAAe,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAElB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,OAAO,IAAI;IACtC,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,OAAO,EAAE;QACP,eAAe,EAAE,MAAM,CAAC;QACxB,kBAAkB,EAAE,MAAM,CAAC;KAC5B,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,MAAM,GAAU,MAAM,SAAS,MAAM,CAAC,MAAM,CAAC,YAAY,EACpE,SAAS,aAAa,CAAC,MAAM,CAAC,KAC7B,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CA0FlD,CAAC"}
1
+ {"version":3,"file":"exa.d.ts","sourceRoot":"","sources":["../../../../src/search/exa.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,KAAK,MAAM,EAAuB,MAAM,YAAY,CAAC;AAM9D,MAAM,MAAM,aAAa,CAAC,MAAM,SAAS,MAAM,CAAC,MAAM,CAAC,YAAY,IAAI;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,OAAO,IAAI;IACtC,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,OAAO,EAAE;QACP,eAAe,EAAE,MAAM,CAAC;QACxB,kBAAkB,EAAE,MAAM,CAAC;KAC5B,CAAC;CACH,CAAC;AAEF,wCAAwC;AACxC,eAAO,MAAM,MAAM,GAAU,MAAM,SAAS,MAAM,CAAC,MAAM,CAAC,YAAY,WAC3D,aAAa,CAAC,MAAM,CAAC,KAC7B,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAwEtC,CAAC"}
@@ -1,15 +1,20 @@
1
- import { meta } from './meta';
2
1
  export declare const translations: [{
3
2
  readonly 'en-US': {
4
- readonly [meta.id]: {
5
- readonly 'plugin name': "Search";
6
- readonly 'search action label': "Search spaces";
7
- readonly 'search placeholder': "Search…";
8
- readonly 'search dialog title': "Open";
9
- readonly 'recently closed heading': "Recently closed";
10
- readonly 'pending results message': "Searching…";
11
- readonly 'empty results message': "No matching items in your spaces";
12
- readonly 'search label': "Search";
3
+ readonly "@dxos/react-ui-search": {
4
+ readonly 'search.placeholder': 'Search...';
5
+ readonly 'empty-results.message': 'No matching objects';
6
+ };
7
+ };
8
+ }, {
9
+ readonly 'en-US': {
10
+ readonly [x: string]: {
11
+ readonly 'plugin.name': 'Search';
12
+ readonly 'search-action.label': 'Search spaces';
13
+ readonly 'search.placeholder': 'Search\u2026';
14
+ readonly 'search-dialog.title': 'Search';
15
+ readonly 'recently-closed.heading': 'Recently closed';
16
+ readonly 'pending-results.message': 'Searching\u2026';
17
+ readonly 'search.label': 'Search';
13
18
  };
14
19
  };
15
20
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;;;;;;;;UASR;;EAGwB,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,YAAY;;;;;;;;;;oCAKF,QAAQ;4CACA,eAAe;2CAChB,cAAS;4CACR,QAAQ;gDACJ,iBAAiB;gDACjB,iBAAY;qCACvB,QAAQ;;;EAID,CAAC"}
@@ -1,3 +1,2 @@
1
- export * from './action';
2
- export * from './search';
1
+ export type * from './search';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,mBAAmB,UAAU,CAAC"}
@@ -1,21 +1,2 @@
1
- import type { DXN } from '@dxos/keys';
2
- export type SearchResult = {
3
- id: string;
4
- /**
5
- * Type kind: "contact", "project", "org", etc.
6
- */
7
- type?: string;
8
- label?: string;
9
- match?: RegExp;
10
- snippet?: string;
11
- /**
12
- * Icon id.
13
- */
14
- icon?: string;
15
- /**
16
- * DXN of the object type.
17
- */
18
- objectType?: DXN.String;
19
- object?: any;
20
- };
1
+ export type { SearchResult } from '@dxos/react-ui-search';
21
2
  //# sourceMappingURL=search.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../../src/types/search.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC;IAExB,MAAM,CAAC,EAAE,GAAG,CAAC;CACd,CAAC"}
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../../src/types/search.ts"],"names":[],"mappings":"AAIA,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC"}