@dxos/plugin-search 0.8.4-main.fffef41 → 0.9.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.
Files changed (198) hide show
  1. package/LICENSE +102 -5
  2. package/PLUGIN.mdl +291 -0
  3. package/README.md +0 -1
  4. package/dist/lib/neutral/SearchArticle-CQMZ46ZS.mjs +51 -0
  5. package/dist/lib/neutral/SearchArticle-CQMZ46ZS.mjs.map +7 -0
  6. package/dist/lib/neutral/SearchDialog-IFMA5UP5.mjs +76 -0
  7. package/dist/lib/neutral/SearchDialog-IFMA5UP5.mjs.map +7 -0
  8. package/dist/lib/neutral/SearchPlugin.mjs +10 -0
  9. package/dist/lib/neutral/SearchPlugin.mjs.map +7 -0
  10. package/dist/lib/neutral/app-graph-builder-ADB5LBS5.mjs +71 -0
  11. package/dist/lib/neutral/app-graph-builder-ADB5LBS5.mjs.map +7 -0
  12. package/dist/lib/neutral/capabilities/index.mjs +13 -0
  13. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  14. package/dist/lib/neutral/chunk-2XHA22US.mjs +9 -0
  15. package/dist/lib/neutral/chunk-2XHA22US.mjs.map +7 -0
  16. package/dist/lib/neutral/chunk-BST37VRI.mjs +34 -0
  17. package/dist/lib/neutral/chunk-BST37VRI.mjs.map +7 -0
  18. package/dist/lib/neutral/chunk-GT3AGVU6.mjs +28 -0
  19. package/dist/lib/neutral/chunk-GT3AGVU6.mjs.map +7 -0
  20. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
  21. package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +7 -0
  22. package/dist/lib/{browser/chunk-ZEP4O5SU.mjs → neutral/chunk-M7FWWQKQ.mjs} +67 -76
  23. package/dist/lib/neutral/chunk-M7FWWQKQ.mjs.map +7 -0
  24. package/dist/lib/neutral/chunk-Q2F6YOOZ.mjs +41 -0
  25. package/dist/lib/neutral/chunk-Q2F6YOOZ.mjs.map +7 -0
  26. package/dist/lib/neutral/chunk-TN4G3MZZ.mjs +8 -0
  27. package/dist/lib/neutral/chunk-TN4G3MZZ.mjs.map +7 -0
  28. package/dist/lib/neutral/components/index.mjs +97 -0
  29. package/dist/lib/neutral/components/index.mjs.map +7 -0
  30. package/dist/lib/neutral/containers/index.mjs +11 -0
  31. package/dist/lib/neutral/containers/index.mjs.map +7 -0
  32. package/dist/lib/neutral/hooks/index.mjs +30 -0
  33. package/dist/lib/neutral/hooks/index.mjs.map +7 -0
  34. package/dist/lib/neutral/index.mjs +40 -0
  35. package/dist/lib/neutral/index.mjs.map +7 -0
  36. package/dist/lib/neutral/meta.json +1 -0
  37. package/dist/lib/neutral/meta.mjs +10 -0
  38. package/dist/lib/neutral/meta.mjs.map +7 -0
  39. package/dist/lib/neutral/open-search-Y6OUELN3.mjs +23 -0
  40. package/dist/lib/neutral/open-search-Y6OUELN3.mjs.map +7 -0
  41. package/dist/lib/neutral/operation-handler-DY624P2R.mjs +13 -0
  42. package/dist/lib/neutral/operation-handler-DY624P2R.mjs.map +7 -0
  43. package/dist/lib/neutral/operations/index.mjs +8 -0
  44. package/dist/lib/neutral/operations/index.mjs.map +7 -0
  45. package/dist/lib/neutral/plugin.mjs +16 -0
  46. package/dist/lib/neutral/plugin.mjs.map +7 -0
  47. package/dist/lib/neutral/react-surface-3IXL3EOJ.mjs +61 -0
  48. package/dist/lib/neutral/react-surface-3IXL3EOJ.mjs.map +7 -0
  49. package/dist/lib/neutral/testing.mjs +8 -0
  50. package/dist/lib/neutral/testing.mjs.map +7 -0
  51. package/dist/lib/neutral/translations.mjs +25 -0
  52. package/dist/lib/neutral/translations.mjs.map +7 -0
  53. package/dist/lib/neutral/types/index.mjs +8 -0
  54. package/dist/lib/neutral/types/index.mjs.map +7 -0
  55. package/dist/types/src/SearchPlugin.d.ts +3 -1
  56. package/dist/types/src/SearchPlugin.d.ts.map +1 -1
  57. package/dist/types/src/capabilities/app-graph-builder.d.ts +4 -2
  58. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  59. package/dist/types/src/capabilities/index.d.ts +5 -3
  60. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  61. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  62. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  63. package/dist/types/src/capabilities/react-surface.d.ts +3 -2
  64. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  65. package/dist/types/src/components/SearchResultStack/SearchResultStack.d.ts +9 -0
  66. package/dist/types/src/components/SearchResultStack/SearchResultStack.d.ts.map +1 -0
  67. package/dist/types/src/components/SearchResultStack/index.d.ts +2 -0
  68. package/dist/types/src/components/SearchResultStack/index.d.ts.map +1 -0
  69. package/dist/types/src/components/index.d.ts +1 -3
  70. package/dist/types/src/components/index.d.ts.map +1 -1
  71. package/dist/types/src/constants.d.ts +3 -0
  72. package/dist/types/src/constants.d.ts.map +1 -0
  73. package/dist/types/src/containers/SearchArticle/SearchArticle.d.ts +4 -0
  74. package/dist/types/src/containers/SearchArticle/SearchArticle.d.ts.map +1 -0
  75. package/dist/types/src/{components/Searchbar/Searchbar.stories.d.ts → containers/SearchArticle/SearchArticle.stories.d.ts} +3 -2
  76. package/dist/types/src/containers/SearchArticle/SearchArticle.stories.d.ts.map +1 -0
  77. package/dist/types/src/containers/SearchArticle/index.d.ts +2 -0
  78. package/dist/types/src/containers/SearchArticle/index.d.ts.map +1 -0
  79. package/dist/types/src/containers/SearchDialog/SearchDialog.d.ts +7 -0
  80. package/dist/types/src/containers/SearchDialog/SearchDialog.d.ts.map +1 -0
  81. package/dist/types/src/{components/SearchResults/SearchResults.stories.d.ts → containers/SearchDialog/SearchDialog.stories.d.ts} +4 -4
  82. package/dist/types/src/containers/SearchDialog/SearchDialog.stories.d.ts.map +1 -0
  83. package/dist/types/src/containers/SearchDialog/index.d.ts +2 -0
  84. package/dist/types/src/containers/SearchDialog/index.d.ts.map +1 -0
  85. package/dist/types/src/containers/index.d.ts +4 -0
  86. package/dist/types/src/containers/index.d.ts.map +1 -0
  87. package/dist/types/src/hooks/sync.d.ts +4 -3
  88. package/dist/types/src/hooks/sync.d.ts.map +1 -1
  89. package/dist/types/src/hooks/useGlobalSearch.d.ts +8 -4
  90. package/dist/types/src/hooks/useGlobalSearch.d.ts.map +1 -1
  91. package/dist/types/src/hooks/useSearchResults.d.ts +3 -2
  92. package/dist/types/src/hooks/useSearchResults.d.ts.map +1 -1
  93. package/dist/types/src/hooks/useWebSearch.d.ts +7 -4
  94. package/dist/types/src/hooks/useWebSearch.d.ts.map +1 -1
  95. package/dist/types/src/index.d.ts +0 -1
  96. package/dist/types/src/index.d.ts.map +1 -1
  97. package/dist/types/src/meta.d.ts +2 -2
  98. package/dist/types/src/meta.d.ts.map +1 -1
  99. package/dist/types/src/operations/index.d.ts +3 -0
  100. package/dist/types/src/operations/index.d.ts.map +1 -0
  101. package/dist/types/src/operations/open-search.d.ts +5 -0
  102. package/dist/types/src/operations/open-search.d.ts.map +1 -0
  103. package/dist/types/src/plugin.d.ts +4 -0
  104. package/dist/types/src/plugin.d.ts.map +1 -0
  105. package/dist/types/src/search/exa.d.ts +5 -4
  106. package/dist/types/src/search/exa.d.ts.map +1 -1
  107. package/dist/types/src/testing.d.ts +2 -0
  108. package/dist/types/src/testing.d.ts.map +1 -0
  109. package/dist/types/src/translations.d.ts +15 -10
  110. package/dist/types/src/translations.d.ts.map +1 -1
  111. package/dist/types/src/types/SearchOperation.d.ts +3 -0
  112. package/dist/types/src/types/SearchOperation.d.ts.map +1 -0
  113. package/dist/types/src/types/index.d.ts +1 -1
  114. package/dist/types/src/types/index.d.ts.map +1 -1
  115. package/dist/types/src/types/search.d.ts +1 -20
  116. package/dist/types/src/types/search.d.ts.map +1 -1
  117. package/dist/types/tsconfig.tsbuildinfo +1 -1
  118. package/package.json +115 -50
  119. package/src/SearchPlugin.tsx +19 -46
  120. package/src/capabilities/app-graph-builder.ts +55 -69
  121. package/src/capabilities/index.ts +8 -4
  122. package/src/capabilities/operation-handler.ts +16 -0
  123. package/src/capabilities/react-surface.tsx +65 -49
  124. package/src/components/SearchResultStack/SearchResultStack.tsx +118 -0
  125. package/src/components/SearchResultStack/index.ts +5 -0
  126. package/src/components/index.ts +1 -3
  127. package/src/constants.ts +9 -0
  128. package/src/containers/SearchArticle/SearchArticle.stories.tsx +79 -0
  129. package/src/containers/SearchArticle/SearchArticle.tsx +60 -0
  130. package/src/containers/SearchArticle/index.ts +5 -0
  131. package/src/containers/SearchDialog/SearchDialog.stories.tsx +108 -0
  132. package/src/containers/SearchDialog/SearchDialog.tsx +93 -0
  133. package/src/containers/SearchDialog/index.ts +5 -0
  134. package/src/containers/index.ts +8 -0
  135. package/src/hooks/sync.test.ts +9 -7
  136. package/src/hooks/sync.ts +31 -33
  137. package/src/hooks/useGlobalSearch.tsx +32 -13
  138. package/src/hooks/useSearchResults.ts +6 -3
  139. package/src/hooks/useWebSearch.ts +25 -14
  140. package/src/index.ts +2 -2
  141. package/src/meta.ts +25 -7
  142. package/src/operations/index.ts +7 -0
  143. package/src/operations/open-search.ts +24 -0
  144. package/src/plugin.ts +11 -0
  145. package/src/search/exa.test.ts +7 -7
  146. package/src/search/exa.ts +16 -15
  147. package/src/testing.ts +7 -0
  148. package/src/translations.ts +10 -9
  149. package/src/types/SearchOperation.ts +20 -0
  150. package/src/types/command-score.d.ts +16 -0
  151. package/src/types/index.ts +2 -1
  152. package/src/types/search.ts +1 -25
  153. package/src/vite-env.d.ts +10 -0
  154. package/dist/lib/browser/app-graph-builder-HQR6P4C7.mjs +0 -78
  155. package/dist/lib/browser/app-graph-builder-HQR6P4C7.mjs.map +0 -7
  156. package/dist/lib/browser/chunk-GN2FSWTM.mjs +0 -22
  157. package/dist/lib/browser/chunk-GN2FSWTM.mjs.map +0 -7
  158. package/dist/lib/browser/chunk-TCVYYI44.mjs +0 -21
  159. package/dist/lib/browser/chunk-TCVYYI44.mjs.map +0 -7
  160. package/dist/lib/browser/chunk-ZEP4O5SU.mjs.map +0 -7
  161. package/dist/lib/browser/index.mjs +0 -112
  162. package/dist/lib/browser/index.mjs.map +0 -7
  163. package/dist/lib/browser/intent-resolver-UYQA6UUQ.mjs +0 -22
  164. package/dist/lib/browser/intent-resolver-UYQA6UUQ.mjs.map +0 -7
  165. package/dist/lib/browser/meta.json +0 -1
  166. package/dist/lib/browser/react-surface-LV7ZVI2K.mjs +0 -293
  167. package/dist/lib/browser/react-surface-LV7ZVI2K.mjs.map +0 -7
  168. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  169. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  170. package/dist/types/src/components/Search.stories.d.ts +0 -16
  171. package/dist/types/src/components/Search.stories.d.ts.map +0 -1
  172. package/dist/types/src/components/SearchDialog.d.ts +0 -7
  173. package/dist/types/src/components/SearchDialog.d.ts.map +0 -1
  174. package/dist/types/src/components/SearchMain.d.ts +0 -6
  175. package/dist/types/src/components/SearchMain.d.ts.map +0 -1
  176. package/dist/types/src/components/SearchResults/SearchResults.d.ts +0 -20
  177. package/dist/types/src/components/SearchResults/SearchResults.d.ts.map +0 -1
  178. package/dist/types/src/components/SearchResults/SearchResults.stories.d.ts.map +0 -1
  179. package/dist/types/src/components/SearchResults/index.d.ts +0 -2
  180. package/dist/types/src/components/SearchResults/index.d.ts.map +0 -1
  181. package/dist/types/src/components/Searchbar/Searchbar.d.ts +0 -10
  182. package/dist/types/src/components/Searchbar/Searchbar.d.ts.map +0 -1
  183. package/dist/types/src/components/Searchbar/Searchbar.stories.d.ts.map +0 -1
  184. package/dist/types/src/components/Searchbar/index.d.ts +0 -2
  185. package/dist/types/src/components/Searchbar/index.d.ts.map +0 -1
  186. package/dist/types/src/types/action.d.ts +0 -13
  187. package/dist/types/src/types/action.d.ts.map +0 -1
  188. package/src/capabilities/intent-resolver.ts +0 -18
  189. package/src/components/Search.stories.tsx +0 -64
  190. package/src/components/SearchDialog.tsx +0 -136
  191. package/src/components/SearchMain.tsx +0 -59
  192. package/src/components/SearchResults/SearchResults.stories.tsx +0 -59
  193. package/src/components/SearchResults/SearchResults.tsx +0 -83
  194. package/src/components/SearchResults/index.ts +0 -5
  195. package/src/components/Searchbar/Searchbar.stories.tsx +0 -28
  196. package/src/components/Searchbar/Searchbar.tsx +0 -48
  197. package/src/components/Searchbar/index.ts +0 -5
  198. package/src/types/action.tsx +0 -16
@@ -1,2 +1,4 @@
1
- export declare const SearchPlugin: import("@dxos/app-framework").PluginFactory<void>;
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const SearchPlugin: Plugin.PluginFactory<void>;
3
+ export default SearchPlugin;
2
4
  //# 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,mDAyCvB,CAAC"}
1
+ {"version":3,"file":"SearchPlugin.d.ts","sourceRoot":"","sources":["../../../src/SearchPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAU7C,eAAO,MAAM,YAAY,4BASxB,CAAC;eAEa,YAAY"}
@@ -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-framework").InterfaceDef<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":"AAQA,OAAO,EAAgB,KAAK,aAAa,EAA6B,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-framework").InterfaceDef<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").InterfaceDef<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").InterfaceDef<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,gRAA4C,CAAC;AACzE,eAAO,MAAM,cAAc,8OAA0C,CAAC;AACtE,eAAO,MAAM,YAAY,4OAAwC,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<import("@dxos/app-framework").InterfaceDef<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,wBA0CK"}
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;AAU9F,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAM1D,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,3 @@
1
+ import { DXN } from '@dxos/keys';
2
+ export declare const SEARCH_DIALOG: DXN.DXN;
3
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAIjC,eAAO,MAAM,aAAa,SAAsC,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"}
@@ -1,7 +1,8 @@
1
1
  import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
2
3
  declare const meta: {
3
4
  title: string;
4
- component: ({ classNames, variant, placeholder, value, onChange, onSubmit }: import("./Searchbar").SearchbarProps) => import("react").JSX.Element;
5
+ render: () => React.JSX.Element;
5
6
  decorators: import("@storybook/react").Decorator[];
6
7
  parameters: {
7
8
  layout: string;
@@ -10,4 +11,4 @@ declare const meta: {
10
11
  export default meta;
11
12
  type Story = StoryObj<typeof meta>;
12
13
  export declare const Default: Story;
13
- //# sourceMappingURL=Searchbar.stories.d.ts.map
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"}
@@ -1,11 +1,10 @@
1
1
  import { type StoryObj } from '@storybook/react-vite';
2
2
  import React from 'react';
3
- import { type SearchResultsProps } from './SearchResults';
4
3
  declare const meta: {
5
4
  title: string;
6
- component: ({ items }: SearchResultsProps) => React.JSX.Element;
7
- render: (props: SearchResultsProps) => React.JSX.Element;
5
+ render: () => React.JSX.Element;
8
6
  decorators: import("@storybook/react").Decorator[];
7
+ tags: string[];
9
8
  parameters: {
10
9
  layout: string;
11
10
  };
@@ -13,4 +12,5 @@ declare const meta: {
13
12
  export default meta;
14
13
  type Story = StoryObj<typeof meta>;
15
14
  export declare const Default: Story;
16
- //# sourceMappingURL=SearchResults.stories.d.ts.map
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,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":"AAUA,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":"AAMA,OAAO,EAAE,MAAM,EAAa,MAAM,YAAY,CAAC;AAG/C,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,eAAO,MAAM,kBAAkB,iBAAkB,MAAM,KAAG,MAAM,GAAG,SAGlE,CAAC;AA2BF,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,EAAE,KAAK,iBAAiB,EAAgD,MAAM,OAAO,CAAC;AAIpG,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,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,EAAO,MAAM,YAAY,CAAC;AAM9C,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":"AAcA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,YAAY,GAAI,oBAAoB;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE;;;;CAkCpF,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
1
  export * from './hooks';
2
2
  export * from './meta';
3
3
  export * from './types';
4
- export * from './SearchPlugin';
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AAExB,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAMA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type PluginMeta } from '@dxos/app-framework';
2
- export declare const meta: PluginMeta;
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const meta: Plugin.Meta;
3
3
  export declare const SEARCH_RESULT: string;
4
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;AAGtD,eAAO,MAAM,IAAI,EAAE,UAUlB,CAAC;AAEF,eAAO,MAAM,aAAa,QAAsB,CAAC"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,eAAO,MAAM,IAAI,aA2Bf,CAAC;AAEH,eAAO,MAAM,aAAa,QAAsB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { OperationHandlerSet } from '@dxos/compute';
2
+ export declare const SearchOperationHandlerSet: OperationHandlerSet.OperationHandlerSet;
3
+ //# 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,eAAO,MAAM,yBAAyB,yCAA0D,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { Operation } from '@dxos/compute';
2
+ import { SearchOperation } from '../types';
3
+ declare const handler: Operation.WithHandler<typeof SearchOperation.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,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,UAAU,CASrE,CAAC;eAEa,OAAO"}
@@ -0,0 +1,4 @@
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const SearchPlugin: Plugin.PluginFactory<void>;
3
+ export { SearchOperationHandlerSet } from './operations';
4
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,eAAO,MAAM,YAAY,4BAA6C,CAAC;AAEvE,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC"}
@@ -1,8 +1,8 @@
1
- import * as Schema from 'effect/Schema';
2
- export type SearchOptions<Schema extends Schema.Schema.AnyNoContext> = {
1
+ import { type Entity, type Type } from '@dxos/echo';
2
+ export type SearchOptions<T extends Type.AnyEntity> = {
3
3
  query?: string;
4
4
  context?: string;
5
- schema: Schema[];
5
+ types: T[];
6
6
  exaApiKey: string;
7
7
  liveCrawl?: boolean;
8
8
  };
@@ -13,5 +13,6 @@ export type SearchResult<T = unknown> = {
13
13
  dataExtractionTime: number;
14
14
  };
15
15
  };
16
- export declare const search: <Schema extends Schema.Schema.AnyNoContext>(options: SearchOptions<Schema>) => Promise<SearchResult<Schema.Schema.Type<Schema>>>;
16
+ /** @deprecated Use MixedStreamParser */
17
+ export declare const search: <T extends Type.AnyEntity>(options: SearchOptions<T>) => Promise<SearchResult<Entity.Unknown>>;
17
18
  //# sourceMappingURL=exa.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"exa.d.ts","sourceRoot":"","sources":["../../../../src/search/exa.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AASxC,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,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,CAwElD,CAAC"}
1
+ {"version":3,"file":"exa.d.ts","sourceRoot":"","sources":["../../../../src/search/exa.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,MAAM,EAAY,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAM9D,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,IAAI,CAAC,SAAS,IAAI;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,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,CAAC,SAAS,IAAI,CAAC,SAAS,WAC1C,aAAa,CAAC,CAAC,CAAC,KACxB,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAwEtC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './SearchPlugin';
2
+ //# sourceMappingURL=testing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../src/testing.ts"],"names":[],"mappings":"AAMA,cAAc,gBAAgB,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"}
@@ -0,0 +1,3 @@
1
+ import { Operation } from '@dxos/compute';
2
+ export declare const OpenSearch: Operation.Definition<void, void, never>;
3
+ //# sourceMappingURL=SearchOperation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchOperation.d.ts","sourceRoot":"","sources":["../../../../src/types/SearchOperation.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAO1C,eAAO,MAAM,UAAU,yCAIrB,CAAC"}
@@ -1,3 +1,3 @@
1
- export * from './action';
2
1
  export type * from './search';
2
+ export * as SearchOperation from './SearchOperation';
3
3
  //# 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,mBAAmB,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,mBAAmB,UAAU,CAAC;AAE9B,OAAO,KAAK,eAAe,MAAM,mBAAmB,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"}