@dxos/plugin-search 0.8.4-main.937b3ca → 0.8.4-main.9735255
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-CFRXSKDB.mjs → react-surface-RVLK6KJ5.mjs} +7 -3
- package/dist/lib/browser/react-surface-RVLK6KJ5.mjs.map +7 -0
- package/dist/types/src/components/SpaceMain.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +34 -34
- package/src/components/SearchMain.tsx +1 -1
- package/src/components/SpaceMain.tsx +4 -1
- package/dist/lib/browser/react-surface-CFRXSKDB.mjs.map +0 -7
|
@@ -33,7 +33,7 @@ var OperationResolver = Capability2.lazy("OperationResolver", () => import("./op
|
|
|
33
33
|
|
|
34
34
|
// src/capabilities/react-surface/index.ts
|
|
35
35
|
import { Capability as Capability3 } from "@dxos/app-framework";
|
|
36
|
-
var ReactSurface = Capability3.lazy("ReactSurface", () => import("./react-surface-
|
|
36
|
+
var ReactSurface = Capability3.lazy("ReactSurface", () => import("./react-surface-RVLK6KJ5.mjs"));
|
|
37
37
|
|
|
38
38
|
// src/translations.ts
|
|
39
39
|
var translations = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/hooks/sync.ts":{"bytes":11342,"imports":[{"path":"effect/SchemaAST","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/useGlobalSearch.tsx":{"bytes":6269,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"src/hooks/sync.ts","kind":"import-statement","original":"./sync"},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/useSearchResults.ts":{"bytes":6688,"imports":[{"path":"main-thread-scheduling","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"src/hooks/sync.ts","kind":"import-statement","original":"./sync"}],"format":"esm"},"src/search/exa.ts":{"bytes":22818,"imports":[{"path":"effect/Option","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"effect/SchemaAST","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/echo-protocol","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/search/index.ts":{"bytes":455,"imports":[{"path":"src/search/exa.ts","kind":"import-statement","original":"./exa"}],"format":"esm"},"src/hooks/useWebSearch.ts":{"bytes":6816,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ai/testing","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/schema/testing","kind":"import-statement","external":true},{"path":"src/search/index.ts","kind":"import-statement","original":"../search"},{"path":"src/hooks/sync.ts","kind":"import-statement","original":"./sync"}],"format":"esm"},"src/hooks/index.ts":{"bytes":774,"imports":[{"path":"src/hooks/sync.ts","kind":"import-statement","original":"./sync"},{"path":"src/hooks/useGlobalSearch.tsx","kind":"import-statement","original":"./useGlobalSearch"},{"path":"src/hooks/useSearchResults.ts","kind":"import-statement","original":"./useSearchResults"},{"path":"src/hooks/useWebSearch.ts","kind":"import-statement","original":"./useWebSearch"}],"format":"esm"},"src/meta.ts":{"bytes":2097,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/types/action.tsx":{"bytes":2057,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/types/index.ts":{"bytes":501,"imports":[{"path":"src/types/action.tsx","kind":"import-statement","original":"./action"}],"format":"esm"},"src/capabilities/app-graph-builder/app-graph-builder.ts":{"bytes":9617,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/app-graph-builder/index.ts":{"bytes":944,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/app-graph-builder/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"}],"format":"esm"},"src/capabilities/operation-resolver/operation-resolver.ts":{"bytes":2822,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/operation-resolver/index.ts":{"bytes":962,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/operation-resolver/operation-resolver.ts","kind":"dynamic-import","original":"./operation-resolver"}],"format":"esm"},"src/components/SearchMain.tsx":{"bytes":11098,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"src/hooks/index.ts","kind":"import-statement","original":"../hooks"},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/components/SearchDialog.tsx":{"bytes":17082,"imports":[{"path":"effect/Option","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/hooks/index.ts","kind":"import-statement","original":"../hooks"},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/components/SpaceMain.tsx":{"bytes":20704,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/components/index.ts":{"bytes":663,"imports":[{"path":"src/components/SearchMain.tsx","kind":"import-statement","original":"./SearchMain"},{"path":"src/components/SearchDialog.tsx","kind":"import-statement","original":"./SearchDialog"},{"path":"src/components/SpaceMain.tsx","kind":"import-statement","original":"./SpaceMain"}],"format":"esm"},"src/capabilities/react-surface/react-surface.tsx":{"bytes":7862,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"src/components/index.ts","kind":"import-statement","original":"../../components"},{"path":"src/hooks/index.ts","kind":"import-statement","original":"../../hooks"},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"src/capabilities/react-surface/index.ts":{"bytes":910,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/react-surface/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":710,"imports":[{"path":"src/capabilities/app-graph-builder/index.ts","kind":"import-statement","original":"./app-graph-builder"},{"path":"src/capabilities/operation-resolver/index.ts","kind":"import-statement","original":"./operation-resolver"},{"path":"src/capabilities/react-surface/index.ts","kind":"import-statement","original":"./react-surface"}],"format":"esm"},"src/translations.ts":{"bytes":2069,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/SearchPlugin.tsx":{"bytes":4429,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"src/index.ts":{"bytes":715,"imports":[{"path":"src/hooks/index.ts","kind":"import-statement","original":"./hooks"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"src/SearchPlugin.tsx","kind":"import-statement","original":"./SearchPlugin"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4232},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-I7YWQSUZ.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-ZRJJXRGF.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-HRIWTRJV.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/app-graph-builder-KZ3V2E5U.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/operation-resolver-6MBOKZQH.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/react-surface-CFRXSKDB.mjs","kind":"dynamic-import"}],"exports":["GlobalFilterProvider","SEARCH_RESULT","SearchContextProvider","SearchOperation","SearchPlugin","filterObjects","filterObjectsSync","getStringProperty","mapObjectToTextFields","meta","queryStringToMatch","useGlobalFilteredObjects","useGlobalSearch","useGlobalSearchResults","useSearchResults","useWebSearch"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/SearchPlugin.tsx":{"bytesInOutput":811},"src/capabilities/app-graph-builder/index.ts":{"bytesInOutput":158},"src/capabilities/index.ts":{"bytesInOutput":0},"src/capabilities/operation-resolver/index.ts":{"bytesInOutput":179},"src/capabilities/react-surface/index.ts":{"bytesInOutput":164},"src/translations.ts":{"bytesInOutput":443}},"bytes":2765},"dist/lib/browser/app-graph-builder-KZ3V2E5U.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4641},"dist/lib/browser/app-graph-builder-KZ3V2E5U.mjs":{"imports":[{"path":"dist/lib/browser/chunk-I7YWQSUZ.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-HRIWTRJV.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/app-graph-builder/app-graph-builder.ts","inputs":{"src/capabilities/app-graph-builder/app-graph-builder.ts":{"bytesInOutput":2348}},"bytes":2620},"dist/lib/browser/operation-resolver-6MBOKZQH.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1471},"dist/lib/browser/operation-resolver-6MBOKZQH.mjs":{"imports":[{"path":"dist/lib/browser/chunk-I7YWQSUZ.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-HRIWTRJV.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/operation-resolver/operation-resolver.ts","inputs":{"src/capabilities/operation-resolver/operation-resolver.ts":{"bytesInOutput":589}},"bytes":849},"dist/lib/browser/chunk-I7YWQSUZ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":988},"dist/lib/browser/chunk-I7YWQSUZ.mjs":{"imports":[{"path":"dist/lib/browser/chunk-HRIWTRJV.mjs","kind":"import-statement"},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"exports":["SearchOperation"],"inputs":{"src/types/action.tsx":{"bytesInOutput":449},"src/types/index.ts":{"bytesInOutput":0}},"bytes":596},"dist/lib/browser/react-surface-CFRXSKDB.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":30055},"dist/lib/browser/react-surface-CFRXSKDB.mjs":{"imports":[{"path":"dist/lib/browser/chunk-ZRJJXRGF.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-HRIWTRJV.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/react-surface/react-surface.tsx","inputs":{"src/capabilities/react-surface/react-surface.tsx":{"bytesInOutput":1841},"src/components/SearchMain.tsx":{"bytesInOutput":2735},"src/components/index.ts":{"bytesInOutput":0},"src/components/SearchDialog.tsx":{"bytesInOutput":4447},"src/components/SpaceMain.tsx":{"bytesInOutput":4877}},"bytes":14400},"dist/lib/browser/chunk-ZRJJXRGF.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":24926},"dist/lib/browser/chunk-ZRJJXRGF.mjs":{"imports":[{"path":"effect/SchemaAST","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"main-thread-scheduling","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ai/testing","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/schema/testing","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"effect/SchemaAST","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/echo-protocol","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["GlobalFilterProvider","SearchContextProvider","filterObjects","filterObjectsSync","getStringProperty","mapObjectToTextFields","queryStringToMatch","useGlobalFilteredObjects","useGlobalSearch","useGlobalSearchResults","useSearchResults","useWebSearch"],"inputs":{"src/hooks/sync.ts":{"bytesInOutput":2149},"src/hooks/useGlobalSearch.tsx":{"bytesInOutput":1244},"src/hooks/useSearchResults.ts":{"bytesInOutput":1446},"src/hooks/useWebSearch.ts":{"bytesInOutput":1726},"src/search/exa.ts":{"bytesInOutput":1286},"src/search/index.ts":{"bytesInOutput":0},"src/hooks/index.ts":{"bytesInOutput":0}},"bytes":8367},"dist/lib/browser/chunk-HRIWTRJV.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":994},"dist/lib/browser/chunk-HRIWTRJV.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["SEARCH_RESULT","meta"],"inputs":{"src/meta.ts":{"bytesInOutput":501}},"bytes":597}}}
|
|
1
|
+
{"inputs":{"src/hooks/sync.ts":{"bytes":11342,"imports":[{"path":"effect/SchemaAST","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/useGlobalSearch.tsx":{"bytes":6269,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"src/hooks/sync.ts","kind":"import-statement","original":"./sync"},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/useSearchResults.ts":{"bytes":6688,"imports":[{"path":"main-thread-scheduling","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"src/hooks/sync.ts","kind":"import-statement","original":"./sync"}],"format":"esm"},"src/search/exa.ts":{"bytes":22818,"imports":[{"path":"effect/Option","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"effect/SchemaAST","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/echo-protocol","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/search/index.ts":{"bytes":455,"imports":[{"path":"src/search/exa.ts","kind":"import-statement","original":"./exa"}],"format":"esm"},"src/hooks/useWebSearch.ts":{"bytes":6816,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ai/testing","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/schema/testing","kind":"import-statement","external":true},{"path":"src/search/index.ts","kind":"import-statement","original":"../search"},{"path":"src/hooks/sync.ts","kind":"import-statement","original":"./sync"}],"format":"esm"},"src/hooks/index.ts":{"bytes":774,"imports":[{"path":"src/hooks/sync.ts","kind":"import-statement","original":"./sync"},{"path":"src/hooks/useGlobalSearch.tsx","kind":"import-statement","original":"./useGlobalSearch"},{"path":"src/hooks/useSearchResults.ts","kind":"import-statement","original":"./useSearchResults"},{"path":"src/hooks/useWebSearch.ts","kind":"import-statement","original":"./useWebSearch"}],"format":"esm"},"src/meta.ts":{"bytes":2097,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/types/action.tsx":{"bytes":2057,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/types/index.ts":{"bytes":501,"imports":[{"path":"src/types/action.tsx","kind":"import-statement","original":"./action"}],"format":"esm"},"src/capabilities/app-graph-builder/app-graph-builder.ts":{"bytes":9617,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/app-graph-builder/index.ts":{"bytes":944,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/app-graph-builder/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"}],"format":"esm"},"src/capabilities/operation-resolver/operation-resolver.ts":{"bytes":2822,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/operation-resolver/index.ts":{"bytes":962,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/operation-resolver/operation-resolver.ts","kind":"dynamic-import","original":"./operation-resolver"}],"format":"esm"},"src/components/SearchMain.tsx":{"bytes":11094,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"src/hooks/index.ts","kind":"import-statement","original":"../hooks"},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/components/SearchDialog.tsx":{"bytes":17082,"imports":[{"path":"effect/Option","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/hooks/index.ts","kind":"import-statement","original":"../hooks"},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/components/SpaceMain.tsx":{"bytes":21352,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/components/index.ts":{"bytes":663,"imports":[{"path":"src/components/SearchMain.tsx","kind":"import-statement","original":"./SearchMain"},{"path":"src/components/SearchDialog.tsx","kind":"import-statement","original":"./SearchDialog"},{"path":"src/components/SpaceMain.tsx","kind":"import-statement","original":"./SpaceMain"}],"format":"esm"},"src/capabilities/react-surface/react-surface.tsx":{"bytes":7862,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"src/components/index.ts","kind":"import-statement","original":"../../components"},{"path":"src/hooks/index.ts","kind":"import-statement","original":"../../hooks"},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"src/capabilities/react-surface/index.ts":{"bytes":910,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/react-surface/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":710,"imports":[{"path":"src/capabilities/app-graph-builder/index.ts","kind":"import-statement","original":"./app-graph-builder"},{"path":"src/capabilities/operation-resolver/index.ts","kind":"import-statement","original":"./operation-resolver"},{"path":"src/capabilities/react-surface/index.ts","kind":"import-statement","original":"./react-surface"}],"format":"esm"},"src/translations.ts":{"bytes":2069,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/SearchPlugin.tsx":{"bytes":4429,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"src/index.ts":{"bytes":715,"imports":[{"path":"src/hooks/index.ts","kind":"import-statement","original":"./hooks"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"src/SearchPlugin.tsx","kind":"import-statement","original":"./SearchPlugin"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4232},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-I7YWQSUZ.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-ZRJJXRGF.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-HRIWTRJV.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/app-graph-builder-KZ3V2E5U.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/operation-resolver-6MBOKZQH.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/react-surface-RVLK6KJ5.mjs","kind":"dynamic-import"}],"exports":["GlobalFilterProvider","SEARCH_RESULT","SearchContextProvider","SearchOperation","SearchPlugin","filterObjects","filterObjectsSync","getStringProperty","mapObjectToTextFields","meta","queryStringToMatch","useGlobalFilteredObjects","useGlobalSearch","useGlobalSearchResults","useSearchResults","useWebSearch"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/SearchPlugin.tsx":{"bytesInOutput":811},"src/capabilities/app-graph-builder/index.ts":{"bytesInOutput":158},"src/capabilities/index.ts":{"bytesInOutput":0},"src/capabilities/operation-resolver/index.ts":{"bytesInOutput":179},"src/capabilities/react-surface/index.ts":{"bytesInOutput":164},"src/translations.ts":{"bytesInOutput":443}},"bytes":2765},"dist/lib/browser/app-graph-builder-KZ3V2E5U.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4641},"dist/lib/browser/app-graph-builder-KZ3V2E5U.mjs":{"imports":[{"path":"dist/lib/browser/chunk-I7YWQSUZ.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-HRIWTRJV.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/app-graph-builder/app-graph-builder.ts","inputs":{"src/capabilities/app-graph-builder/app-graph-builder.ts":{"bytesInOutput":2348}},"bytes":2620},"dist/lib/browser/operation-resolver-6MBOKZQH.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1471},"dist/lib/browser/operation-resolver-6MBOKZQH.mjs":{"imports":[{"path":"dist/lib/browser/chunk-I7YWQSUZ.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-HRIWTRJV.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/operation-resolver/operation-resolver.ts","inputs":{"src/capabilities/operation-resolver/operation-resolver.ts":{"bytesInOutput":589}},"bytes":849},"dist/lib/browser/chunk-I7YWQSUZ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":988},"dist/lib/browser/chunk-I7YWQSUZ.mjs":{"imports":[{"path":"dist/lib/browser/chunk-HRIWTRJV.mjs","kind":"import-statement"},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"exports":["SearchOperation"],"inputs":{"src/types/action.tsx":{"bytesInOutput":449},"src/types/index.ts":{"bytesInOutput":0}},"bytes":596},"dist/lib/browser/react-surface-RVLK6KJ5.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":30401},"dist/lib/browser/react-surface-RVLK6KJ5.mjs":{"imports":[{"path":"dist/lib/browser/chunk-ZRJJXRGF.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-HRIWTRJV.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/react-surface/react-surface.tsx","inputs":{"src/capabilities/react-surface/react-surface.tsx":{"bytesInOutput":1841},"src/components/SearchMain.tsx":{"bytesInOutput":2735},"src/components/index.ts":{"bytesInOutput":0},"src/components/SearchDialog.tsx":{"bytesInOutput":4447},"src/components/SpaceMain.tsx":{"bytesInOutput":5054}},"bytes":14577},"dist/lib/browser/chunk-ZRJJXRGF.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":24926},"dist/lib/browser/chunk-ZRJJXRGF.mjs":{"imports":[{"path":"effect/SchemaAST","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"main-thread-scheduling","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ai/testing","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/schema/testing","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"effect/SchemaAST","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/echo-protocol","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["GlobalFilterProvider","SearchContextProvider","filterObjects","filterObjectsSync","getStringProperty","mapObjectToTextFields","queryStringToMatch","useGlobalFilteredObjects","useGlobalSearch","useGlobalSearchResults","useSearchResults","useWebSearch"],"inputs":{"src/hooks/sync.ts":{"bytesInOutput":2149},"src/hooks/useGlobalSearch.tsx":{"bytesInOutput":1244},"src/hooks/useSearchResults.ts":{"bytesInOutput":1446},"src/hooks/useWebSearch.ts":{"bytesInOutput":1726},"src/search/exa.ts":{"bytesInOutput":1286},"src/search/index.ts":{"bytesInOutput":0},"src/hooks/index.ts":{"bytesInOutput":0}},"bytes":8367},"dist/lib/browser/chunk-HRIWTRJV.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":994},"dist/lib/browser/chunk-HRIWTRJV.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["SEARCH_RESULT","meta"],"inputs":{"src/meta.ts":{"bytesInOutput":501}},"bytes":597}}}
|
|
@@ -64,7 +64,7 @@ var SearchMain = ({ space }) => {
|
|
|
64
64
|
items: allResults,
|
|
65
65
|
getId: (result) => result.object.id,
|
|
66
66
|
Tile: SearchResultTile
|
|
67
|
-
})), allResults.length === 0 && /* @__PURE__ */ React.createElement(SearchList.Empty, null, t("empty results message")))))
|
|
67
|
+
}))), allResults.length === 0 && /* @__PURE__ */ React.createElement(SearchList.Empty, null, t("empty results message")))));
|
|
68
68
|
};
|
|
69
69
|
var SearchResultTile = ({ data }) => {
|
|
70
70
|
return /* @__PURE__ */ React.createElement(Card.Root, {
|
|
@@ -193,6 +193,7 @@ import { Card as Card2, Mosaic as Mosaic2 } from "@dxos/react-ui-mosaic";
|
|
|
193
193
|
import { Layout as Layout2 } from "@dxos/react-ui-mosaic";
|
|
194
194
|
import { SearchList as SearchList3 } from "@dxos/react-ui-searchlist";
|
|
195
195
|
import { Text as Text2 } from "@dxos/schema";
|
|
196
|
+
import { getStyles } from "@dxos/ui-theme";
|
|
196
197
|
var SpaceMain = ({ space }) => {
|
|
197
198
|
const { t } = useTranslation3(meta.id);
|
|
198
199
|
const { items, handleSearch } = useSpaceItems(space);
|
|
@@ -219,6 +220,8 @@ var NodeTile = ({ data: node }) => {
|
|
|
219
220
|
const runAction = useActionRunner();
|
|
220
221
|
const label = toLocalizedString2(node.properties.label, t);
|
|
221
222
|
const icon = node.properties.icon ?? "ph--placeholder--regular";
|
|
223
|
+
const iconHue = node.properties.iconHue;
|
|
224
|
+
const styles = iconHue ? getStyles(iconHue) : void 0;
|
|
222
225
|
const handleClick = () => {
|
|
223
226
|
if (Node.isAction(node)) {
|
|
224
227
|
const [parent] = Graph2.getConnections(graph, node.id, "inbound");
|
|
@@ -241,7 +244,8 @@ var NodeTile = ({ data: node }) => {
|
|
|
241
244
|
variant: "ghost",
|
|
242
245
|
label,
|
|
243
246
|
icon,
|
|
244
|
-
iconOnly: true
|
|
247
|
+
iconOnly: true,
|
|
248
|
+
iconClassNames: styles?.icon
|
|
245
249
|
}), /* @__PURE__ */ React3.createElement(Card2.Title, {
|
|
246
250
|
onClick: handleClick
|
|
247
251
|
}, label), /* @__PURE__ */ React3.createElement(Card2.Menu, null)));
|
|
@@ -361,4 +365,4 @@ var react_surface_default = Capability.makeModule(() => Effect.succeed(Capabilit
|
|
|
361
365
|
export {
|
|
362
366
|
react_surface_default as default
|
|
363
367
|
};
|
|
364
|
-
//# sourceMappingURL=react-surface-
|
|
368
|
+
//# sourceMappingURL=react-surface-RVLK6KJ5.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/react-surface/react-surface.tsx", "../../../src/components/SearchMain.tsx", "../../../src/components/SearchDialog.tsx", "../../../src/components/SpaceMain.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React from 'react';\n\nimport { Capability, Common } from '@dxos/app-framework';\nimport { useActiveSpace } from '@dxos/plugin-space';\nimport { type Space, SpaceState, isSpace } from '@dxos/react-client/echo';\n\nimport { SEARCH_DIALOG, SearchDialog, type SearchDialogProps, SearchMain, SpaceMain } from '../../components';\nimport { SearchContextProvider } from '../../hooks';\nimport { meta } from '../../meta';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Common.Capability.ReactSurface, [\n Common.createSurface({\n id: SEARCH_DIALOG,\n role: 'dialog',\n filter: (data): data is { props: SearchDialogProps } => data.component === SEARCH_DIALOG,\n component: ({ data }) => (\n <SearchContextProvider>\n <SearchDialog {...data.props} />\n </SearchContextProvider>\n ),\n }),\n Common.createSurface({\n id: `${SEARCH_DIALOG}/search-input`,\n role: 'search-input',\n component: () => {\n const space = useActiveSpace();\n\n return (\n <SearchContextProvider>\n <SearchMain space={space} />\n </SearchContextProvider>\n );\n },\n }),\n Common.createSurface({\n id: `${SEARCH_DIALOG}/search`,\n role: 'deck-companion--search',\n filter: (data): data is { subject: Space } => isSpace(data.subject),\n component: ({ data }) => {\n const space = data.subject;\n if (!space) {\n return null;\n }\n\n return (\n <SearchContextProvider>\n <SearchMain space={space} />\n </SearchContextProvider>\n );\n },\n }),\n Common.createSurface({\n id: `${meta.id}/space-article`,\n role: 'article',\n position: 'hoist',\n filter: (data): data is { subject: Space } =>\n // TODO(wittjosiah): Need to avoid shotgun parsing space state everywhere.\n isSpace(data.subject) && data.subject.state.get() === SpaceState.SPACE_READY,\n component: ({ data }) => <SpaceMain space={data.subject} />,\n }),\n ]),\n ),\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { useCallback, useMemo, useState } from 'react';\n\nimport { Surface } from '@dxos/app-framework/react';\nimport { Entity, Query } from '@dxos/echo';\nimport { Filter, type Space, useQuery } from '@dxos/react-client/echo';\nimport { Toolbar, useTranslation } from '@dxos/react-ui';\nimport { Card, Mosaic, type StackTileComponent } from '@dxos/react-ui-mosaic';\nimport { Layout } from '@dxos/react-ui-mosaic';\nimport { SearchList } from '@dxos/react-ui-searchlist';\nimport { Text } from '@dxos/schema';\n\nimport { useGlobalSearch, useGlobalSearchResults, useWebSearch } from '../hooks';\nimport { meta } from '../meta';\nimport { type SearchResult } from '../types';\n\nexport const SearchMain = ({ space }: { space?: Space }) => {\n const { t } = useTranslation(meta.id);\n const { setMatch } = useGlobalSearch();\n const [query, setQuery] = useState<string>();\n // TODO(burdon): Option to search across spaces.\n const objects = useQuery(\n space?.db,\n query === undefined\n ? Query.select(Filter.nothing())\n : // TODO(dmaretskyi): Final version would walk the ancestry of the object until we find a non-system type.\n Query.all(\n Query.select(Filter.text(query, { type: 'full-text' })).select(Filter.not(Filter.type(Text.Text))),\n Query.select(Filter.text(query, { type: 'full-text' }))\n .select(Filter.type(Text.Text))\n .referencedBy('dxos.org/type/Document', 'content'),\n ),\n );\n\n const results = useGlobalSearchResults(objects);\n const { results: webResults } = useWebSearch({ query });\n const allResults = useMemo(\n () => [...results, ...webResults].filter(({ object }) => object && Entity.getLabel(object)),\n [results, webResults],\n );\n\n const handleSearch = useCallback(\n (text: string) => {\n setQuery(text);\n setMatch?.(text);\n },\n [setMatch],\n );\n\n return (\n <Layout.Main toolbar>\n <SearchList.Root onSearch={handleSearch}>\n <Toolbar.Root>\n <SearchList.Input placeholder={t('search placeholder')} />\n </Toolbar.Root>\n <SearchList.Content>\n <Mosaic.Container asChild>\n <Mosaic.Viewport>\n <Mosaic.Stack items={allResults} getId={(result) => result.object!.id} Tile={SearchResultTile} />\n </Mosaic.Viewport>\n </Mosaic.Container>\n {allResults.length === 0 && <SearchList.Empty>{t('empty results message')}</SearchList.Empty>}\n </SearchList.Content>\n </SearchList.Root>\n </Layout.Main>\n );\n};\n\nconst SearchResultTile: StackTileComponent<SearchResult> = ({ data }) => {\n return (\n <Card.Root key={data.id}>\n <Card.Toolbar>\n <Card.DragHandle />\n <Card.Title>{data.label ?? (data.object && Entity.getLabel(data.object))}</Card.Title>\n <Card.Menu />\n </Card.Toolbar>\n <Surface role='card--content' data={{ subject: data.object }} limit={1} />\n </Card.Root>\n );\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport * as Option from 'effect/Option';\nimport React, { forwardRef, useCallback, useState } from 'react';\n\nimport { Common } from '@dxos/app-framework';\nimport { useAppGraph, useLayout, useOperationInvoker } from '@dxos/app-framework/react';\nimport { Obj } from '@dxos/echo';\nimport { Graph, type Node } from '@dxos/plugin-graph';\nimport { useClient } from '@dxos/react-client';\nimport { Filter, useQuery } from '@dxos/react-client/echo';\nimport { Button, Dialog, toLocalizedString, useTranslation } from '@dxos/react-ui';\nimport { SearchList } from '@dxos/react-ui-searchlist';\nimport { descriptionText, mx, osTranslations } from '@dxos/ui-theme';\n\nimport { useSearchResults } from '../hooks';\nimport { meta } from '../meta';\n\nexport const SEARCH_DIALOG = `${meta.id}/SearchDialog`;\n\ntype SearchListResultProps = {\n node: Node.Node;\n onSelect?: (nodeId: string) => void;\n};\n\nconst SearchListResult = forwardRef<HTMLDivElement, SearchListResultProps>(({ node, onSelect }, forwardedRef) => {\n const { t } = useTranslation(meta.id);\n const label = toLocalizedString(node?.properties.label ?? 'never', t);\n const handleSelect = useCallback(() => {\n onSelect?.(node!.id);\n }, [node, onSelect]);\n return (\n <SearchList.Item\n value={node!.id}\n label={label}\n icon={node?.properties.icon}\n classNames='flex gap-2 items-center pli-2'\n onSelect={handleSelect}\n ref={forwardedRef}\n />\n );\n});\n\nexport type SearchDialogProps = {\n pivotId: string;\n};\n\nexport const SearchDialog = ({ pivotId }: SearchDialogProps) => {\n const { t } = useTranslation(meta.id);\n const { graph } = useAppGraph();\n const layout = useLayout();\n const closed = (Array.isArray(layout.inactive) ? layout.inactive : [layout.inactive])\n .map((id) => (graph ? Graph.getNode(graph, id) : Option.none()))\n .filter(Boolean);\n const [queryString, setQueryString] = useState('');\n const client = useClient();\n const dangerouslyLoadAllObjects = useQuery(client.spaces, Filter.everything());\n const [pending, results] = useSearchResults(queryString, dangerouslyLoadAllObjects);\n const resultObjects = Array.from(results.keys());\n const { invokePromise } = useOperationInvoker();\n\n const handleSelect = useCallback(\n async (nodeId: string) => {\n await invokePromise(Common.LayoutOperation.UpdateDialog, { state: false });\n\n // If node is already present in the active parts, scroll to it and close the dialog.\n const index = layout.active.findIndex((id) => id === nodeId);\n if (index !== -1) {\n await invokePromise(Common.LayoutOperation.ScrollIntoView, { subject: nodeId });\n } else {\n await invokePromise(Common.LayoutOperation.Open, {\n subject: [nodeId],\n pivotId,\n positioning: 'end',\n });\n }\n },\n [pivotId, invokePromise, layout],\n );\n\n const handleSearch = useCallback((query: string) => {\n setQueryString(query);\n }, []);\n\n return (\n <Dialog.Content>\n <Dialog.Title>{t('search dialog title')}</Dialog.Title>\n <SearchList.Root onSearch={handleSearch}>\n <div\n role='combobox'\n aria-expanded='true'\n aria-label={t('search placeholder')}\n className='flex flex-col grow overflow-hidden'\n >\n <SearchList.Input placeholder={t('search placeholder')} />\n <SearchList.Content classNames='max-bs-[24rem] overflow-auto'>\n <SearchList.Viewport>\n {queryString.length > 0 ? (\n resultObjects.length > 0 ? (\n resultObjects\n .map((object) => Graph.getNode(graph, Obj.getDXN(object).toString()))\n .filter(Option.isSome)\n .map((node) => <SearchListResult key={node.value.id} node={node.value} onSelect={handleSelect} />)\n ) : (\n <p className='pli-1'>{t(pending ? 'pending results message' : 'empty results message')}</p>\n )\n ) : (\n <>\n {closed.length > 0 && (\n <h2 className={mx('mlb-1', descriptionText)}>{t('recently closed heading')}</h2>\n )}\n {closed.filter(Option.isSome).map((node) => (\n <SearchListResult key={node.value.id} node={node.value} onSelect={handleSelect} />\n ))}\n </>\n )}\n </SearchList.Viewport>\n </SearchList.Content>\n </div>\n </SearchList.Root>\n <Dialog.Close asChild>\n <Button variant='primary' classNames='mbs-2'>\n {t('close label', { ns: osTranslations })}\n </Button>\n </Dialog.Close>\n </Dialog.Content>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React, { useCallback, useEffect, useMemo, useState } from 'react';\n\nimport { Common } from '@dxos/app-framework';\nimport { useAppGraph, useCapabilities, useOperationInvoker } from '@dxos/app-framework/react';\nimport { Filter, Obj, Query } from '@dxos/echo';\nimport { Graph, Node, useActionRunner, useConnections } from '@dxos/plugin-graph';\nimport { type Space, useQuery } from '@dxos/react-client/echo';\nimport { Toolbar, toLocalizedString, useTranslation } from '@dxos/react-ui';\nimport { Card, Mosaic, type StackTileComponent } from '@dxos/react-ui-mosaic';\nimport { Layout } from '@dxos/react-ui-mosaic';\nimport { SearchList } from '@dxos/react-ui-searchlist';\nimport { Text } from '@dxos/schema';\nimport { getStyles } from '@dxos/ui-theme';\n\nimport { meta } from '../meta';\n\n/**\n *\n */\nexport const SpaceMain = ({ space }: { space: Space }) => {\n const { t } = useTranslation(meta.id);\n const { items, handleSearch } = useSpaceItems(space);\n\n return (\n <Layout.Main toolbar>\n <SearchList.Root onSearch={handleSearch}>\n <Toolbar.Root>\n <SearchList.Input placeholder={t('search placeholder')} />\n </Toolbar.Root>\n <SearchList.Content>\n <Mosaic.Container asChild>\n <Mosaic.Viewport padding>\n <Mosaic.Stack items={items} getId={(node) => node.id} Tile={NodeTile} />\n </Mosaic.Viewport>\n </Mosaic.Container>\n </SearchList.Content>\n </SearchList.Root>\n </Layout.Main>\n );\n};\n\nconst NodeTile: StackTileComponent<Node.Node> = ({ data: node }) => {\n const { t } = useTranslation(meta.id);\n const { graph } = useAppGraph();\n const { invokeSync } = useOperationInvoker();\n const runAction = useActionRunner();\n\n const label = toLocalizedString(node.properties.label, t);\n const icon = node.properties.icon ?? 'ph--placeholder--regular';\n const iconHue = node.properties.iconHue;\n const styles = iconHue ? getStyles(iconHue) : undefined;\n\n const handleClick = () => {\n if (Node.isAction(node)) {\n // Run action if this is an action node.\n const [parent] = Graph.getConnections(graph, node.id, 'inbound');\n if (parent) {\n void runAction(node, { parent });\n }\n } else {\n // Navigate to the node.\n invokeSync(Common.LayoutOperation.Open, { subject: [node.id] });\n }\n };\n\n return (\n <Card.Root fullWidth>\n <Card.Toolbar>\n <Card.ToolbarIconButton variant='ghost' label={label} icon={icon} iconOnly iconClassNames={styles?.icon} />\n <Card.Title onClick={handleClick}>{label}</Card.Title>\n <Card.Menu />\n </Card.Toolbar>\n </Card.Root>\n );\n};\n\n/**\n * Hook to resolve metadata (icon, iconHue, etc.) for objects based on their typename.\n */\n// TODO(wittjosiah): Factor out.\nconst useMetadataResolver = () => {\n const allMetadata = useCapabilities(Common.Capability.Metadata);\n return useCallback((typename: string) => allMetadata.find((m) => m.id === typename)?.metadata ?? {}, [allMetadata]);\n};\n\n/**\n * Hook to get space items with search/filter support.\n * Returns direct children when no query, or full-text search results when searching.\n */\nconst useSpaceItems = (space: Space) => {\n const { graph } = useAppGraph();\n const [query, setQuery] = useState<string>();\n const resolveMetadata = useMetadataResolver();\n\n // Expand the space node to load its children (needed when navigating directly to a space URL).\n useEffect(() => {\n const frame = requestAnimationFrame(() => {\n Graph.expand(graph, space.id, 'outbound');\n });\n return () => cancelAnimationFrame(frame);\n }, [graph, space.id]);\n\n // Get direct children of the space node for the default view.\n const children = useConnections(graph, space.id, 'outbound');\n\n const handleSearch = useCallback((text: string) => {\n setQuery(text);\n }, []);\n\n // TODO(dmaretskyi): Switch back to QueryEditor once query builder is ready for production.\n // Query results using full-text search.\n const results = useQuery(\n space.db,\n query === undefined\n ? Query.select(Filter.nothing())\n : Query.all(\n Query.select(Filter.text(query, { type: 'full-text' })).select(Filter.not(Filter.type(Text.Text))),\n Query.select(Filter.text(query, { type: 'full-text' }))\n .select(Filter.type(Text.Text))\n .referencedBy('dxos.org/type/Document', 'content'),\n ),\n );\n\n // Determine if query is empty (show default view).\n const isQueryEmpty = !query?.trim();\n\n // Filter children to those which are objects or actions with disposition 'item'.\n const filteredChildren = useMemo(\n () =>\n children.filter((node) => {\n // Include regular objects.\n if (Obj.isObject(node.data)) {\n return true;\n }\n // Include actions with disposition 'item'.\n return Node.isAction(node) && node.properties.disposition === 'item';\n }),\n [children],\n );\n\n // When showing default view, use nodes (which may include actions).\n // When showing search results, wrap objects in a compatible shape with resolved metadata.\n const items = useMemo(() => {\n if (isQueryEmpty) {\n return filteredChildren;\n }\n // Wrap query results as pseudo-nodes for consistent rendering.\n return results.map((obj) => {\n const typename = Obj.getTypename(obj);\n const metadata = typename ? resolveMetadata(typename) : {};\n return {\n id: obj.id,\n type: 'search-result',\n data: obj,\n properties: {\n label: Obj.getLabel(obj) ?? obj.id,\n icon: metadata.icon ?? 'ph--placeholder--regular',\n iconHue: metadata.iconHue,\n },\n } as Node.Node;\n });\n }, [isQueryEmpty, filteredChildren,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/B;;;AHzJA,IAAA,wBAAeuG,WAAWC,WAAW,MAC5BC,eACLF,WAAWG,YAAYC,QAAOJ,WAAWK,cAAc;EACrDD,QAAOE,cAAc;IACnBC,IAAIC;IACJC,MAAM;IACNC,QAAQ,CAACC,SAA+CA,KAAKC,cAAcJ;IAC3EI,WAAW,CAAC,EAAED,KAAI,MAChB,gBAAAE,OAAA,cAACC,uBAAAA,MACC,gBAAAD,OAAA,cAACE,cAAiBJ,KAAKK,KAAK,CAAA;EAGlC,CAAA;EACAZ,QAAOE,cAAc;IACnBC,IAAI,GAAGC,aAAAA;IACPC,MAAM;IACNG,WAAW,MAAA;AACT,YAAMK,QAAQC,eAAAA;AAEd,aACE,gBAAAL,OAAA,cAACC,uBAAAA,MACC,gBAAAD,OAAA,cAACM,YAAAA;QAAWF;;IAGlB;EACF,CAAA;EACAb,QAAOE,cAAc;IACnBC,IAAI,GAAGC,aAAAA;IACPC,MAAM;IACNC,QAAQ,CAACC,SAAqCS,QAAQT,KAAKU,OAAO;IAClET,WAAW,CAAC,EAAED,KAAI,MAAE;AAClB,YAAMM,QAAQN,KAAKU;AACnB,UAAI,CAACJ,OAAO;AACV,eAAO;MACT;AAEA,aACE,gBAAAJ,OAAA,cAACC,uBAAAA,MACC,gBAAAD,OAAA,cAACM,YAAAA;QAAWF;;IAGlB;EACF,CAAA;EACAb,QAAOE,cAAc;IACnBC,IAAI,GAAGe,KAAKf,EAAE;IACdE,MAAM;IACNc,UAAU;IACVb,QAAQ,CAACC;;MAEPS,QAAQT,KAAKU,OAAO,KAAKV,KAAKU,QAAQG,MAAMC,IAAG,MAAOC,WAAWC;;IACnEf,WAAW,CAAC,EAAED,KAAI,MAAO,gBAAAE,OAAA,cAACe,WAAAA;MAAUX,OAAON,KAAKU;;EAClD,CAAA;CACD,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "React", "Capability", "Common", "useActiveSpace", "SpaceState", "isSpace", "React", "useCallback", "useMemo", "useState", "Surface", "Entity", "Query", "Filter", "useQuery", "Toolbar", "useTranslation", "Card", "Mosaic", "Layout", "SearchList", "Text", "SearchMain", "space", "t", "useTranslation", "meta", "id", "setMatch", "useGlobalSearch", "query", "setQuery", "useState", "objects", "useQuery", "db", "undefined", "Query", "select", "Filter", "nothing", "all", "text", "type", "not", "Text", "referencedBy", "results", "useGlobalSearchResults", "webResults", "useWebSearch", "allResults", "useMemo", "filter", "object", "Entity", "getLabel", "handleSearch", "useCallback", "Layout", "Main", "toolbar", "SearchList", "Root", "onSearch", "Toolbar", "Input", "placeholder", "Content", "Mosaic", "Container", "asChild", "Viewport", "Stack", "items", "getId", "result", "Tile", "SearchResultTile", "length", "Empty", "data", "Card", "key", "DragHandle", "Title", "label", "Menu", "Surface", "role", "subject", "limit", "Option", "React", "forwardRef", "useCallback", "useState", "Common", "useAppGraph", "useLayout", "useOperationInvoker", "Obj", "Graph", "useClient", "Filter", "useQuery", "Button", "Dialog", "toLocalizedString", "useTranslation", "SearchList", "descriptionText", "mx", "osTranslations", "SEARCH_DIALOG", "meta", "id", "SearchListResult", "forwardRef", "node", "onSelect", "forwardedRef", "t", "useTranslation", "label", "toLocalizedString", "properties", "handleSelect", "useCallback", "React", "SearchList", "Item", "value", "icon", "classNames", "ref", "SearchDialog", "pivotId", "graph", "useAppGraph", "layout", "useLayout", "closed", "Array", "isArray", "inactive", "map", "Graph", "getNode", "none", "filter", "Boolean", "queryString", "setQueryString", "useState", "client", "useClient", "dangerouslyLoadAllObjects", "useQuery", "spaces", "Filter", "everything", "pending", "results", "useSearchResults", "resultObjects", "from", "keys", "invokePromise", "useOperationInvoker", "nodeId", "Common", "LayoutOperation", "UpdateDialog", "state", "index", "active", "findIndex", "ScrollIntoView", "subject", "Open", "positioning", "handleSearch", "query", "Dialog", "Content", "Title", "Root", "onSearch", "div", "role", "aria-expanded", "aria-label", "className", "Input", "placeholder", "Viewport", "length", "object", "Obj", "getDXN", "toString", "isSome", "key", "p", "h2", "mx", "descriptionText", "Close", "asChild", "Button", "variant", "ns", "osTranslations", "React", "useCallback", "useEffect", "useMemo", "useState", "Common", "useAppGraph", "useCapabilities", "useOperationInvoker", "Filter", "Obj", "Query", "Graph", "Node", "useActionRunner", "useConnections", "useQuery", "Toolbar", "toLocalizedString", "useTranslation", "Card", "Mosaic", "Layout", "SearchList", "Text", "getStyles", "SpaceMain", "space", "t", "useTranslation", "meta", "id", "items", "handleSearch", "useSpaceItems", "React", "Layout", "Main", "toolbar", "SearchList", "Root", "onSearch", "Toolbar", "Input", "placeholder", "Content", "Mosaic", "Container", "asChild", "Viewport", "padding", "Stack", "getId", "node", "Tile", "NodeTile", "data", "graph", "useAppGraph", "invokeSync", "useOperationInvoker", "runAction", "useActionRunner", "label", "toLocalizedString", "properties", "icon", "iconHue", "styles", "getStyles", "undefined", "handleClick", "Node", "isAction", "parent", "Graph", "getConnections", "Common", "LayoutOperation", "Open", "subject", "Card", "fullWidth", "ToolbarIconButton", "variant", "iconOnly", "iconClassNames", "Title", "onClick", "Menu", "useMetadataResolver", "allMetadata", "useCapabilities", "Capability", "Metadata", "useCallback", "typename", "find", "m", "metadata", "query", "setQuery", "useState", "resolveMetadata", "useEffect", "frame", "requestAnimationFrame", "expand", "cancelAnimationFrame", "children", "useConnections", "text", "results", "useQuery", "db", "Query", "select", "Filter", "nothing", "all", "type", "not", "Text", "referencedBy", "isQueryEmpty", "trim", "filteredChildren", "useMemo", "filter", "Obj", "isObject", "disposition", "map", "obj", "getTypename", "getLabel", "Capability", "makeModule", "succeed", "contributes", "Common", "ReactSurface", "createSurface", "id", "SEARCH_DIALOG", "role", "filter", "data", "component", "React", "SearchContextProvider", "SearchDialog", "props", "space", "useActiveSpace", "SearchMain", "isSpace", "subject", "meta", "position", "state", "get", "SpaceState", "SPACE_READY", "SpaceMain"]
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpaceMain.d.ts","sourceRoot":"","sources":["../../../../src/components/SpaceMain.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAMzE,OAAO,EAAE,KAAK,KAAK,EAAY,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"SpaceMain.d.ts","sourceRoot":"","sources":["../../../../src/components/SpaceMain.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAMzE,OAAO,EAAE,KAAK,KAAK,EAAY,MAAM,yBAAyB,CAAC;AAU/D;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,WAAW;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,sBAoBpD,CAAC"}
|