@dxos/plugin-search 0.8.4-main.9735255 → 0.8.4-main.9be5663bfe

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 (127) hide show
  1. package/README.md +0 -1
  2. package/dist/lib/browser/index.mjs +306 -52
  3. package/dist/lib/browser/index.mjs.map +4 -4
  4. package/dist/lib/browser/meta.json +1 -1
  5. package/dist/types/src/SearchPlugin.d.ts.map +1 -1
  6. package/dist/types/src/capabilities/app-graph-builder.d.ts +6 -0
  7. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  8. package/dist/types/src/capabilities/index.d.ts +5 -3
  9. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  10. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  11. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  12. package/dist/types/src/capabilities/react-surface.d.ts +5 -0
  13. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  14. package/dist/types/src/components/SearchResultStack/SearchResultStack.d.ts +9 -0
  15. package/dist/types/src/components/SearchResultStack/SearchResultStack.d.ts.map +1 -0
  16. package/dist/types/src/components/SearchResultStack/index.d.ts +2 -0
  17. package/dist/types/src/components/SearchResultStack/index.d.ts.map +1 -0
  18. package/dist/types/src/components/index.d.ts +1 -3
  19. package/dist/types/src/components/index.d.ts.map +1 -1
  20. package/dist/types/src/constants.d.ts +2 -0
  21. package/dist/types/src/constants.d.ts.map +1 -0
  22. package/dist/types/src/containers/SearchArticle/SearchArticle.d.ts +7 -0
  23. package/dist/types/src/containers/SearchArticle/SearchArticle.d.ts.map +1 -0
  24. package/dist/types/src/containers/SearchArticle/SearchArticle.stories.d.ts +15 -0
  25. package/dist/types/src/containers/SearchArticle/SearchArticle.stories.d.ts.map +1 -0
  26. package/dist/types/src/containers/SearchArticle/index.d.ts +2 -0
  27. package/dist/types/src/containers/SearchArticle/index.d.ts.map +1 -0
  28. package/dist/types/src/containers/SearchDialog/SearchDialog.d.ts +8 -0
  29. package/dist/types/src/containers/SearchDialog/SearchDialog.d.ts.map +1 -0
  30. package/dist/types/src/containers/SearchDialog/SearchDialog.stories.d.ts +17 -0
  31. package/dist/types/src/containers/SearchDialog/SearchDialog.stories.d.ts.map +1 -0
  32. package/dist/types/src/containers/SearchDialog/index.d.ts +3 -0
  33. package/dist/types/src/containers/SearchDialog/index.d.ts.map +1 -0
  34. package/dist/types/src/containers/index.d.ts +5 -0
  35. package/dist/types/src/containers/index.d.ts.map +1 -0
  36. package/dist/types/src/hooks/sync.d.ts +1 -1
  37. package/dist/types/src/hooks/sync.d.ts.map +1 -1
  38. package/dist/types/src/hooks/useGlobalSearch.d.ts +2 -2
  39. package/dist/types/src/hooks/useGlobalSearch.d.ts.map +1 -1
  40. package/dist/types/src/hooks/useWebSearch.d.ts +1 -1
  41. package/dist/types/src/hooks/useWebSearch.d.ts.map +1 -1
  42. package/dist/types/src/operations/definitions.d.ts +3 -0
  43. package/dist/types/src/operations/definitions.d.ts.map +1 -0
  44. package/dist/types/src/operations/index.d.ts +4 -0
  45. package/dist/types/src/operations/index.d.ts.map +1 -0
  46. package/dist/types/src/operations/open-search.d.ts +5 -0
  47. package/dist/types/src/operations/open-search.d.ts.map +1 -0
  48. package/dist/types/src/translations.d.ts +15 -9
  49. package/dist/types/src/translations.d.ts.map +1 -1
  50. package/dist/types/src/types/index.d.ts +0 -1
  51. package/dist/types/src/types/index.d.ts.map +1 -1
  52. package/dist/types/src/types/search.d.ts +1 -16
  53. package/dist/types/src/types/search.d.ts.map +1 -1
  54. package/dist/types/tsconfig.tsbuildinfo +1 -1
  55. package/package.json +53 -41
  56. package/src/SearchPlugin.tsx +11 -9
  57. package/src/capabilities/{app-graph-builder/app-graph-builder.ts → app-graph-builder.ts} +17 -21
  58. package/src/capabilities/index.ts +9 -3
  59. package/src/capabilities/operation-handler.ts +16 -0
  60. package/src/capabilities/react-surface.tsx +63 -0
  61. package/src/components/SearchResultStack/SearchResultStack.tsx +118 -0
  62. package/src/components/SearchResultStack/index.ts +5 -0
  63. package/src/components/index.ts +1 -3
  64. package/src/constants.ts +7 -0
  65. package/src/containers/SearchArticle/SearchArticle.stories.tsx +80 -0
  66. package/src/containers/SearchArticle/SearchArticle.tsx +63 -0
  67. package/src/containers/SearchArticle/index.ts +5 -0
  68. package/src/containers/SearchDialog/SearchDialog.stories.tsx +109 -0
  69. package/src/containers/SearchDialog/SearchDialog.tsx +100 -0
  70. package/src/containers/SearchDialog/index.ts +6 -0
  71. package/src/containers/index.ts +10 -0
  72. package/src/hooks/sync.test.ts +4 -4
  73. package/src/hooks/sync.ts +1 -1
  74. package/src/hooks/useGlobalSearch.tsx +3 -3
  75. package/src/hooks/useWebSearch.ts +2 -2
  76. package/src/meta.ts +2 -2
  77. package/src/operations/definitions.ts +17 -0
  78. package/src/operations/index.ts +9 -0
  79. package/src/operations/open-search.ts +24 -0
  80. package/src/search/exa.ts +2 -2
  81. package/src/translations.ts +10 -9
  82. package/src/types/index.ts +0 -1
  83. package/src/types/search.ts +1 -19
  84. package/dist/lib/browser/app-graph-builder-KZ3V2E5U.mjs +0 -81
  85. package/dist/lib/browser/app-graph-builder-KZ3V2E5U.mjs.map +0 -7
  86. package/dist/lib/browser/chunk-HRIWTRJV.mjs +0 -22
  87. package/dist/lib/browser/chunk-HRIWTRJV.mjs.map +0 -7
  88. package/dist/lib/browser/chunk-I7YWQSUZ.mjs +0 -26
  89. package/dist/lib/browser/chunk-I7YWQSUZ.mjs.map +0 -7
  90. package/dist/lib/browser/chunk-ZRJJXRGF.mjs +0 -282
  91. package/dist/lib/browser/chunk-ZRJJXRGF.mjs.map +0 -7
  92. package/dist/lib/browser/operation-resolver-6MBOKZQH.mjs +0 -25
  93. package/dist/lib/browser/operation-resolver-6MBOKZQH.mjs.map +0 -7
  94. package/dist/lib/browser/react-surface-RVLK6KJ5.mjs +0 -368
  95. package/dist/lib/browser/react-surface-RVLK6KJ5.mjs.map +0 -7
  96. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +0 -6
  97. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
  98. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
  99. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
  100. package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -3
  101. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
  102. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
  103. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
  104. package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
  105. package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
  106. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +0 -5
  107. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
  108. package/dist/types/src/components/SearchDialog.d.ts +0 -7
  109. package/dist/types/src/components/SearchDialog.d.ts.map +0 -1
  110. package/dist/types/src/components/SearchMain.d.ts +0 -6
  111. package/dist/types/src/components/SearchMain.d.ts.map +0 -1
  112. package/dist/types/src/components/SearchMain.stories.d.ts +0 -31
  113. package/dist/types/src/components/SearchMain.stories.d.ts.map +0 -1
  114. package/dist/types/src/components/SpaceMain.d.ts +0 -9
  115. package/dist/types/src/components/SpaceMain.d.ts.map +0 -1
  116. package/dist/types/src/types/action.d.ts +0 -16
  117. package/dist/types/src/types/action.d.ts.map +0 -1
  118. package/src/capabilities/app-graph-builder/index.ts +0 -7
  119. package/src/capabilities/operation-resolver/index.ts +0 -7
  120. package/src/capabilities/operation-resolver/operation-resolver.ts +0 -23
  121. package/src/capabilities/react-surface/index.ts +0 -7
  122. package/src/capabilities/react-surface/react-surface.tsx +0 -70
  123. package/src/components/SearchDialog.tsx +0 -130
  124. package/src/components/SearchMain.stories.tsx +0 -90
  125. package/src/components/SearchMain.tsx +0 -83
  126. package/src/components/SpaceMain.tsx +0 -169
  127. package/src/types/action.tsx +0 -18
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,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,iBAAiB,CAAC;AAEtD,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/operation';
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,iBAAiB,CAAC;;AAI3D,wBAIE"}
@@ -0,0 +1,5 @@
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>;
4
+ export default _default;
5
+ //# sourceMappingURL=react-surface.d.ts.map
@@ -0,0 +1 @@
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;;AAU/D,wBA6CE"}
@@ -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" | "style" | "className" | "role"> & 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 './SearchMain';
2
- export * from './SearchDialog';
3
- export * from './SpaceMain';
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,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,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,7 @@
1
+ import React from 'react';
2
+ import { type Space } from '@dxos/react-client/echo';
3
+ export type SearchArticleProps = {
4
+ space?: Space;
5
+ };
6
+ export declare const SearchArticle: ({ space }: SearchArticleProps) => React.JSX.Element;
7
+ //# 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;AAG9D,OAAO,EAAU,KAAK,KAAK,EAAY,MAAM,yBAAyB,CAAC;AASvE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,WAAW,kBAAkB,sBA0C1D,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ space }: import("./SearchArticle").SearchArticleProps) => React.JSX.Element;
6
+ render: () => React.JSX.Element;
7
+ decorators: import("@storybook/react").Decorator[];
8
+ parameters: {
9
+ layout: string;
10
+ };
11
+ };
12
+ export default meta;
13
+ type Story = StoryObj<typeof meta>;
14
+ export declare const Default: Story;
15
+ //# 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;;;;;;;;CAgC4B,CAAC;AAEvC,eAAe,IAAI,CAAC;AAEpB,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,8 @@
1
+ import React from 'react';
2
+ import { type Space } from '@dxos/react-client/echo';
3
+ export type SearchDialogProps = {
4
+ pivotId?: string;
5
+ space?: Space;
6
+ };
7
+ export declare const SearchDialog: ({ pivotId: pivotIdProp, space: spaceProp }: SearchDialogProps) => React.JSX.Element;
8
+ //# 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;AAO9D,OAAO,EAAU,KAAK,KAAK,EAAY,MAAM,yBAAyB,CAAC;AASvE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,4CAA4C,iBAAiB,sBA0EzF,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ pivotId: pivotIdProp, space: spaceProp }: import("./SearchDialog").SearchDialogProps) => React.JSX.Element;
6
+ render: () => React.JSX.Element;
7
+ decorators: import("@storybook/react").Decorator[];
8
+ tags: string[];
9
+ parameters: {
10
+ layout: string;
11
+ };
12
+ };
13
+ export default meta;
14
+ type Story = StoryObj<typeof meta>;
15
+ export declare const Default: Story;
16
+ export declare const Test: Story;
17
+ //# 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;;;;;;;;;CAiC2B,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,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,3 @@
1
+ export { SearchDialog, type SearchDialogProps } from './SearchDialog';
2
+ export { SearchDialog as default } from './SearchDialog';
3
+ //# 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,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAE,YAAY,IAAI,OAAO,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { type ComponentType } from 'react';
2
+ export type { SearchDialogProps } from './SearchDialog';
3
+ export declare const SearchDialog: ComponentType<any>;
4
+ export declare const SearchArticle: ComponentType<any>;
5
+ //# 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,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,eAAO,MAAM,YAAY,EAAE,aAAa,CAAC,GAAG,CAAwC,CAAC;AACrF,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,GAAG,CAAyC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { type Entity } from '@dxos/echo';
2
- import { type SearchResult } from '../types';
2
+ import { type SearchResult } from '#types';
3
3
  export declare const queryStringToMatch: (queryString?: string) => RegExp | undefined;
4
4
  export type TextFields = Record<string, string>;
5
5
  export declare const filterObjectsSync: <T extends Entity.Unknown>(objects: T[], match?: RegExp) => SearchResult<T>[];
@@ -1 +1 @@
1
- {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../src/hooks/sync.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,MAAM,EAAO,MAAM,YAAY,CAAC;AAG9C,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,OAAO,EAAE,SAAS,CAAC,EAAE,EAAE,QAAQ,MAAM,KAAG,YAAY,CAAC,CAAC,CAAC,EAgCzG,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,OAAO,EAAE,QAAQ,CAAC,KAAG,UAa3E,CAAC"}
1
+ {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../src/hooks/sync.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,MAAM,EAAO,MAAM,YAAY,CAAC;AAG9C,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,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,OAAO,EAAE,SAAS,CAAC,EAAE,EAAE,QAAQ,MAAM,KAAG,YAAY,CAAC,CAAC,CAAC,EAgCzG,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,OAAO,EAAE,QAAQ,CAAC,KAAG,UAa3E,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import React, { type PropsWithChildren } from 'react';
2
2
  import { type Entity } from '@dxos/echo';
3
- import { type SearchResult } from '../types';
4
- export { useGlobalFilteredObjects, GlobalFilterProvider } from '@dxos/react-ui-searchlist';
3
+ import { type SearchResult } from '#types';
4
+ export { useGlobalFilteredObjects, GlobalFilterProvider } from '@dxos/react-ui-search';
5
5
  type SearchContextType = {
6
6
  match?: RegExp;
7
7
  setMatch?: (text?: string) => void;
@@ -1 +1 @@
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,UAAU,CAAC;AAK7C,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAE3F,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,GAAI,cAAc,iBAAiB,sBAuBpE,CAAC;AAEF,eAAO,MAAM,eAAe,yBAE3B,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,CAAC,SAAS,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE,KAAG,YAAY,CAAC,CAAC,CAAC,EAG/F,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,GAAI,cAAc,iBAAiB,sBAuBpE,CAAC;AAEF,eAAO,MAAM,eAAe,yBAE3B,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,CAAC,SAAS,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE,KAAG,YAAY,CAAC,CAAC,CAAC,EAG/F,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type SearchResult } from '../types';
1
+ import { type SearchResult } from '#types';
2
2
  export type UseWebSearchProps = {
3
3
  query?: string;
4
4
  context?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"useWebSearch.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useWebSearch.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,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,GAAI,oBAAoB,iBAAiB,KAAG,YAiCpE,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,GAAI,oBAAoB,iBAAiB,KAAG,YAiCpE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Operation } from '@dxos/operation';
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,iBAAiB,CAAC;AAM5C,eAAO,MAAM,UAAU,yCAIrB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { OperationHandlerSet } from '@dxos/operation';
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,iBAAiB,CAAC;AAEtD,OAAO,KAAK,eAAe,MAAM,eAAe,CAAC;AAEjD,eAAO,MAAM,yBAAyB,yCAA0D,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { Operation } from '@dxos/operation';
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,iBAAiB,CAAC;AAG5C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,UAAU,CASrD,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,15 +1,21 @@
1
- import { meta } from './meta';
1
+ import { meta } from '#meta';
2
2
  export declare const translations: [{
3
+ readonly 'en-US': {
4
+ readonly "@dxos/react-ui-search": {
5
+ readonly "search.placeholder": "Search...";
6
+ readonly "empty-results.message": "No matching objects";
7
+ };
8
+ };
9
+ }, {
3
10
  readonly 'en-US': {
4
11
  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 objects";
12
- readonly 'search label': "Search";
12
+ readonly 'plugin.name': "Search";
13
+ readonly 'search-action.label': "Search spaces";
14
+ readonly 'search.placeholder': "Search…";
15
+ readonly 'search-dialog.title': "Search";
16
+ readonly 'recently-closed.heading': "Recently closed";
17
+ readonly 'pending-results.message': "Searching…";
18
+ readonly 'search.label': "Search";
13
19
  };
14
20
  };
15
21
  }];
@@ -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":"AAOA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE7B,eAAO,MAAM,YAAY;;;;;;;;;QAInB,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;;;;;;;UAQR;;EAGwB,CAAC"}
@@ -1,3 +1,2 @@
1
- export * from './action';
2
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,mBAAmB,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,mBAAmB,UAAU,CAAC"}
@@ -1,17 +1,2 @@
1
- import type { Entity } from '@dxos/echo';
2
- export type SearchResult<T extends Entity.Unknown = Entity.Unknown> = {
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
- object?: T;
16
- };
1
+ export type { SearchResult } from '@dxos/react-ui-search';
17
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,MAAM,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI;IACpE,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;IACd,MAAM,CAAC,EAAE,CAAC,CAAC;CACZ,CAAC"}
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../../src/types/search.ts"],"names":[],"mappings":"AAIA,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC"}