@dxos/plugin-search 0.8.4-main.21d9917 → 0.8.4-main.2244d791bb
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/{app-graph-builder-KZ3V2E5U.mjs → app-graph-builder-NUJ2FOVQ.mjs} +5 -4
- package/dist/lib/browser/app-graph-builder-NUJ2FOVQ.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +12 -11
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{operation-resolver-6MBOKZQH.mjs → operation-resolver-QEGN4ZKN.mjs} +5 -4
- package/dist/lib/browser/operation-resolver-QEGN4ZKN.mjs.map +7 -0
- package/dist/lib/browser/{react-surface-CFRXSKDB.mjs → react-surface-ETNMCZOD.mjs} +48 -41
- package/dist/lib/browser/react-surface-ETNMCZOD.mjs.map +7 -0
- package/dist/types/src/SearchPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +1 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +2 -2
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +2 -2
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/SearchDialog.d.ts.map +1 -1
- package/dist/types/src/components/SearchMain.d.ts.map +1 -1
- package/dist/types/src/components/SearchMain.stories.d.ts.map +1 -1
- package/dist/types/src/components/SpaceMain.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +41 -40
- package/src/SearchPlugin.tsx +7 -6
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +4 -3
- package/src/capabilities/operation-resolver/operation-resolver.ts +4 -3
- package/src/capabilities/react-surface/react-surface.tsx +7 -6
- package/src/components/SearchDialog.tsx +27 -37
- package/src/components/SearchMain.stories.tsx +1 -1
- package/src/components/SearchMain.tsx +13 -10
- package/src/components/SpaceMain.tsx +20 -13
- package/dist/lib/browser/app-graph-builder-KZ3V2E5U.mjs.map +0 -7
- package/dist/lib/browser/operation-resolver-6MBOKZQH.mjs.map +0 -7
- package/dist/lib/browser/react-surface-CFRXSKDB.mjs.map +0 -7
|
@@ -7,7 +7,8 @@ import {
|
|
|
7
7
|
|
|
8
8
|
// src/capabilities/app-graph-builder/app-graph-builder.ts
|
|
9
9
|
import * as Effect from "effect/Effect";
|
|
10
|
-
import { Capability
|
|
10
|
+
import { Capability } from "@dxos/app-framework";
|
|
11
|
+
import { AppCapabilities } from "@dxos/app-toolkit";
|
|
11
12
|
import { Operation } from "@dxos/operation";
|
|
12
13
|
import { ClientCapabilities } from "@dxos/plugin-client";
|
|
13
14
|
import { ATTENDABLE_PATH_SEPARATOR, DECK_COMPANION_TYPE } from "@dxos/plugin-deck/types";
|
|
@@ -20,7 +21,7 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
|
|
|
20
21
|
match: NodeMatcher.whenRoot,
|
|
21
22
|
connector: Effect.fnUntraced(function* (node, get) {
|
|
22
23
|
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
23
|
-
const layoutAtom = get(yield* Capability.atom(
|
|
24
|
+
const layoutAtom = get(yield* Capability.atom(AppCapabilities.Layout))[0];
|
|
24
25
|
const layout = layoutAtom ? get(layoutAtom) : void 0;
|
|
25
26
|
const { spaceId } = parseId(layout?.workspace);
|
|
26
27
|
const space = spaceId ? client.spaces.get(spaceId) : null;
|
|
@@ -73,9 +74,9 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
|
|
|
73
74
|
])
|
|
74
75
|
})
|
|
75
76
|
]);
|
|
76
|
-
return Capability.contributes(
|
|
77
|
+
return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
|
|
77
78
|
}));
|
|
78
79
|
export {
|
|
79
80
|
app_graph_builder_default as default
|
|
80
81
|
};
|
|
81
|
-
//# sourceMappingURL=app-graph-builder-
|
|
82
|
+
//# sourceMappingURL=app-graph-builder-NUJ2FOVQ.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/app-graph-builder/app-graph-builder.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { AppCapabilities } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/operation';\nimport { ClientCapabilities } from '@dxos/plugin-client';\nimport { ATTENDABLE_PATH_SEPARATOR, DECK_COMPANION_TYPE } from '@dxos/plugin-deck/types';\nimport { GraphBuilder, NodeMatcher } from '@dxos/plugin-graph';\nimport { parseId } from '@dxos/react-client/echo';\n\nimport { meta } from '../../meta';\nimport { SearchOperation } from '../../types';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const extensions = yield* Effect.all([\n GraphBuilder.createExtension({\n id: `${meta.id}/space-search`,\n match: NodeMatcher.whenRoot,\n connector: Effect.fnUntraced(function* (node, get) {\n const client = yield* Capability.get(ClientCapabilities.Client);\n const layoutAtom = get(yield* Capability.atom(AppCapabilities.Layout))[0];\n const layout = layoutAtom ? get(layoutAtom) : undefined;\n const { spaceId } = parseId(layout?.workspace);\n const space = spaceId ? client.spaces.get(spaceId) : null;\n\n return [\n {\n id: [node.id, 'search'].join(ATTENDABLE_PATH_SEPARATOR),\n type: DECK_COMPANION_TYPE,\n data: space,\n properties: {\n label: ['search label', { ns: meta.id }],\n icon: 'ph--magnifying-glass--regular',\n disposition: 'hidden',\n },\n },\n ];\n }),\n }),\n GraphBuilder.createExtension({\n id: meta.id,\n match: NodeMatcher.whenRoot,\n actions: () =>\n Effect.succeed([\n {\n id: SearchOperation.OpenSearch.meta.key,\n data: Effect.fnUntraced(function* () {\n yield* Operation.invoke(SearchOperation.OpenSearch);\n return false;\n }),\n properties: {\n label: ['search action label', { ns: meta.id }],\n icon: 'ph--magnifying-glass--regular',\n keyBinding: {\n macos: 'shift+meta+f',\n windows: 'shift+alt+f',\n },\n },\n },\n ]),\n }),\n ]);\n\n return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);\n }),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAC1B,SAASC,0BAA0B;AACnC,SAASC,2BAA2BC,2BAA2B;AAC/D,SAASC,cAAcC,mBAAmB;AAC1C,SAASC,eAAe;AAKxB,IAAA,4BAAeC,WAAWC,WACjBC,kBAAW,aAAA;AAChB,QAAMC,aAAa,OAAcC,WAAI;IACnCC,aAAaC,gBAAgB;MAC3BC,IAAI,GAAGC,KAAKD,EAAE;MACdE,OAAOC,YAAYC;MACnBC,WAAkBV,kBAAW,WAAWW,MAAMC,KAAG;AAC/C,cAAMC,SAAS,OAAOf,WAAWc,IAAIE,mBAAmBC,MAAM;AAC9D,cAAMC,aAAaJ,IAAI,OAAOd,WAAWmB,KAAKC,gBAAgBC,MAAM,CAAA,EAAG,CAAA;AACvE,cAAMC,SAASJ,aAAaJ,IAAII,UAAAA,IAAcK;AAC9C,cAAM,EAAEC,QAAO,IAAKC,QAAQH,QAAQI,SAAAA;AACpC,cAAMC,QAAQH,UAAUT,OAAOa,OAAOd,IAAIU,OAAAA,IAAW;AAErD,eAAO;UACL;YACEjB,IAAI;cAACM,KAAKN;cAAI;cAAUsB,KAAKC,yBAAAA;YAC7BC,MAAMC;YACNC,MAAMN;YACNO,YAAY;cACVC,OAAO;gBAAC;gBAAgB;kBAAEC,IAAI5B,KAAKD;gBAAG;;cACtC8B,MAAM;cACNC,aAAa;YACf;UACF;;MAEJ,CAAA;IACF,CAAA;IACAjC,aAAaC,gBAAgB;MAC3BC,IAAIC,KAAKD;MACTE,OAAOC,YAAYC;MACnB4B,SAAS,MACAC,eAAQ;QACb;UACEjC,IAAIkC,gBAAgBC,WAAWlC,KAAKmC;UACpCV,MAAa/B,kBAAW,aAAA;AACtB,mBAAO0C,UAAUC,OAAOJ,gBAAgBC,UAAU;AAClD,mBAAO;UACT,CAAA;UACAR,YAAY;YACVC,OAAO;cAAC;cAAuB;gBAAEC,IAAI5B,KAAKD;cAAG;;YAC7C8B,MAAM;YACNS,YAAY;cACVC,OAAO;cACPC,SAAS;YACX;UACF;QACF;OACD;IACL,CAAA;GACD;AAED,SAAOhD,WAAWiD,YAAY7B,gBAAgB8B,iBAAiB/C,UAAAA;AACjE,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Capability", "AppCapabilities", "Operation", "ClientCapabilities", "ATTENDABLE_PATH_SEPARATOR", "DECK_COMPANION_TYPE", "GraphBuilder", "NodeMatcher", "parseId", "Capability", "makeModule", "fnUntraced", "extensions", "all", "GraphBuilder", "createExtension", "id", "meta", "match", "NodeMatcher", "whenRoot", "connector", "node", "get", "client", "ClientCapabilities", "Client", "layoutAtom", "atom", "AppCapabilities", "Layout", "layout", "undefined", "spaceId", "parseId", "workspace", "space", "spaces", "join", "ATTENDABLE_PATH_SEPARATOR", "type", "DECK_COMPANION_TYPE", "data", "properties", "label", "ns", "icon", "disposition", "actions", "succeed", "SearchOperation", "OpenSearch", "key", "Operation", "invoke", "keyBinding", "macos", "windows", "contributes", "AppGraphBuilder"]
|
|
7
|
+
}
|
|
@@ -21,19 +21,20 @@ import {
|
|
|
21
21
|
} from "./chunk-HRIWTRJV.mjs";
|
|
22
22
|
|
|
23
23
|
// src/SearchPlugin.tsx
|
|
24
|
-
import {
|
|
24
|
+
import { Plugin } from "@dxos/app-framework";
|
|
25
|
+
import { AppPlugin } from "@dxos/app-toolkit";
|
|
25
26
|
|
|
26
27
|
// src/capabilities/app-graph-builder/index.ts
|
|
27
28
|
import { Capability } from "@dxos/app-framework";
|
|
28
|
-
var AppGraphBuilder = Capability.lazy("AppGraphBuilder", () => import("./app-graph-builder-
|
|
29
|
+
var AppGraphBuilder = Capability.lazy("AppGraphBuilder", () => import("./app-graph-builder-NUJ2FOVQ.mjs"));
|
|
29
30
|
|
|
30
31
|
// src/capabilities/operation-resolver/index.ts
|
|
31
32
|
import { Capability as Capability2 } from "@dxos/app-framework";
|
|
32
|
-
var OperationResolver = Capability2.lazy("OperationResolver", () => import("./operation-resolver-
|
|
33
|
+
var OperationResolver = Capability2.lazy("OperationResolver", () => import("./operation-resolver-QEGN4ZKN.mjs"));
|
|
33
34
|
|
|
34
35
|
// src/capabilities/react-surface/index.ts
|
|
35
36
|
import { Capability as Capability3 } from "@dxos/app-framework";
|
|
36
|
-
var ReactSurface = Capability3.lazy("ReactSurface", () => import("./react-surface-
|
|
37
|
+
var ReactSurface = Capability3.lazy("ReactSurface", () => import("./react-surface-ETNMCZOD.mjs"));
|
|
37
38
|
|
|
38
39
|
// src/translations.ts
|
|
39
40
|
var translations = [
|
|
@@ -54,9 +55,9 @@ var translations = [
|
|
|
54
55
|
];
|
|
55
56
|
|
|
56
57
|
// src/SearchPlugin.tsx
|
|
57
|
-
var SearchPlugin = Plugin.define(meta).pipe(
|
|
58
|
-
|
|
59
|
-
}),
|
|
58
|
+
var SearchPlugin = Plugin.define(meta).pipe(AppPlugin.addAppGraphModule({
|
|
59
|
+
activate: AppGraphBuilder
|
|
60
|
+
}), AppPlugin.addMetadataModule({
|
|
60
61
|
metadata: {
|
|
61
62
|
id: SEARCH_RESULT,
|
|
62
63
|
metadata: {
|
|
@@ -76,12 +77,12 @@ var SearchPlugin = Plugin.define(meta).pipe(Common.Plugin.addTranslationsModule(
|
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
|
-
}),
|
|
80
|
-
activate: AppGraphBuilder
|
|
81
|
-
}), Common.Plugin.addOperationResolverModule({
|
|
80
|
+
}), AppPlugin.addOperationResolverModule({
|
|
82
81
|
activate: OperationResolver
|
|
83
|
-
}),
|
|
82
|
+
}), AppPlugin.addSurfaceModule({
|
|
84
83
|
activate: ReactSurface
|
|
84
|
+
}), AppPlugin.addTranslationsModule({
|
|
85
|
+
translations
|
|
85
86
|
}), Plugin.make);
|
|
86
87
|
export {
|
|
87
88
|
GlobalFilterProvider,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/SearchPlugin.tsx", "../../../src/capabilities/app-graph-builder/index.ts", "../../../src/capabilities/operation-resolver/index.ts", "../../../src/capabilities/react-surface/index.ts", "../../../src/translations.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport {
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,
|
|
6
|
-
"names": ["
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\n\nimport { AppGraphBuilder, OperationResolver, ReactSurface } from './capabilities';\nimport { SEARCH_RESULT, meta } from './meta';\nimport { translations } from './translations';\nimport { type SearchResult } from './types';\n\nexport const SearchPlugin = Plugin.define(meta).pipe(\n AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),\n AppPlugin.addMetadataModule({\n metadata: {\n id: SEARCH_RESULT,\n metadata: {\n parse: (item: SearchResult, type: string) => {\n switch (type) {\n case 'node':\n return { id: item.id, label: item.label, data: item.object };\n case 'object':\n return item.object;\n case 'view-object':\n return item;\n }\n },\n },\n },\n }),\n AppPlugin.addOperationResolverModule({ activate: OperationResolver }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.make,\n);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const OperationResolver = Capability.lazy('OperationResolver', () => import('./operation-resolver'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from './meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'plugin name': 'Search',\n 'search action label': 'Search spaces',\n 'search placeholder': 'Search…',\n 'search dialog title': 'Open',\n 'recently closed heading': 'Recently closed',\n 'pending results message': 'Searching…',\n 'empty results message': 'No matching objects',\n 'search label': 'Search',\n },\n },\n },\n] as const satisfies Resource[];\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,cAAc;AACvB,SAASC,iBAAiB;;;ACD1B,SAASC,kBAAkB;AAEpB,IAAMC,kBAAkBC,WAAWC,KAAK,mBAAmB,MAAM,OAAO,kCAAA,CAAA;;;ACF/E,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,oBAAoBC,YAAWC,KAAK,qBAAqB,MAAM,OAAO,mCAAA,CAAA;;;ACFnF,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,eAAeC,YAAWC,KAAK,gBAAgB,MAAM,OAAO,8BAAA,CAAA;;;ACElE,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;QACf,uBAAuB;QACvB,sBAAsB;QACtB,uBAAuB;QACvB,2BAA2B;QAC3B,2BAA2B;QAC3B,yBAAyB;QACzB,gBAAgB;MAClB;IACF;EACF;;;;AJVK,IAAMC,eAAeC,OAAOC,OAAOC,IAAAA,EAAMC,KAC9CC,UAAUC,kBAAkB;EAAEC,UAAUC;AAAgB,CAAA,GACxDH,UAAUI,kBAAkB;EAC1BC,UAAU;IACRC,IAAIC;IACJF,UAAU;MACRG,OAAO,CAACC,MAAoBC,SAAAA;AAC1B,gBAAQA,MAAAA;UACN,KAAK;AACH,mBAAO;cAAEJ,IAAIG,KAAKH;cAAIK,OAAOF,KAAKE;cAAOC,MAAMH,KAAKI;YAAO;UAC7D,KAAK;AACH,mBAAOJ,KAAKI;UACd,KAAK;AACH,mBAAOJ;QACX;MACF;IACF;EACF;AACF,CAAA,GACAT,UAAUc,2BAA2B;EAAEZ,UAAUa;AAAkB,CAAA,GACnEf,UAAUgB,iBAAiB;EAAEd,UAAUe;AAAa,CAAA,GACpDjB,UAAUkB,sBAAsB;EAAEC;AAAa,CAAA,GAC/CvB,OAAOwB,IAAI;",
|
|
6
|
+
"names": ["Plugin", "AppPlugin", "Capability", "AppGraphBuilder", "Capability", "lazy", "Capability", "OperationResolver", "Capability", "lazy", "Capability", "ReactSurface", "Capability", "lazy", "translations", "meta", "id", "SearchPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addAppGraphModule", "activate", "AppGraphBuilder", "addMetadataModule", "metadata", "id", "SEARCH_RESULT", "parse", "item", "type", "label", "data", "object", "addOperationResolverModule", "OperationResolver", "addSurfaceModule", "ReactSurface", "addTranslationsModule", "translations", "make"]
|
|
7
7
|
}
|
|
@@ -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":9726,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","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":2953,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","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":11571,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","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","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":16266,"imports":[{"path":"effect/Option","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","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":21984,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","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","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":7957,"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/app-framework/ui","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":4428,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","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":4240},"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-toolkit","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/app-graph-builder-NUJ2FOVQ.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/operation-resolver-QEGN4ZKN.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/react-surface-ETNMCZOD.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":830},"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":2784},"dist/lib/browser/app-graph-builder-NUJ2FOVQ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4705},"dist/lib/browser/app-graph-builder-NUJ2FOVQ.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/app-toolkit","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":2389}},"bytes":2661},"dist/lib/browser/operation-resolver-QEGN4ZKN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1559},"dist/lib/browser/operation-resolver-QEGN4ZKN.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/app-toolkit","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":636}},"bytes":896},"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-ETNMCZOD.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":30649},"dist/lib/browser/react-surface-ETNMCZOD.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/app-framework/ui","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/ui","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","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/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","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/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","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","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":1868},"src/components/SearchMain.tsx":{"bytesInOutput":2862},"src/components/index.ts":{"bytesInOutput":0},"src/components/SearchDialog.tsx":{"bytesInOutput":4246},"src/components/SpaceMain.tsx":{"bytesInOutput":5250}},"bytes":14726},"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}}}
|
package/dist/lib/browser/{operation-resolver-6MBOKZQH.mjs → operation-resolver-QEGN4ZKN.mjs}
RENAMED
|
@@ -5,14 +5,15 @@ import "./chunk-HRIWTRJV.mjs";
|
|
|
5
5
|
|
|
6
6
|
// src/capabilities/operation-resolver/operation-resolver.ts
|
|
7
7
|
import * as Effect from "effect/Effect";
|
|
8
|
-
import {
|
|
8
|
+
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
9
|
+
import { LayoutOperation } from "@dxos/app-toolkit";
|
|
9
10
|
import { Operation, OperationResolver } from "@dxos/operation";
|
|
10
11
|
var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(function* () {
|
|
11
|
-
return Capability.contributes(
|
|
12
|
+
return Capability.contributes(Capabilities.OperationResolver, [
|
|
12
13
|
OperationResolver.make({
|
|
13
14
|
operation: SearchOperation.OpenSearch,
|
|
14
15
|
handler: Effect.fnUntraced(function* () {
|
|
15
|
-
yield* Operation.invoke(
|
|
16
|
+
yield* Operation.invoke(LayoutOperation.UpdateComplementary, {
|
|
16
17
|
subject: "search"
|
|
17
18
|
});
|
|
18
19
|
})
|
|
@@ -22,4 +23,4 @@ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(functio
|
|
|
22
23
|
export {
|
|
23
24
|
operation_resolver_default as default
|
|
24
25
|
};
|
|
25
|
-
//# sourceMappingURL=operation-resolver-
|
|
26
|
+
//# sourceMappingURL=operation-resolver-QEGN4ZKN.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/operation-resolver/operation-resolver.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation, OperationResolver } from '@dxos/operation';\n\nimport { SearchOperation } from '../../types';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n return Capability.contributes(Capabilities.OperationResolver, [\n OperationResolver.make({\n operation: SearchOperation.OpenSearch,\n handler: Effect.fnUntraced(function* () {\n yield* Operation.invoke(LayoutOperation.UpdateComplementary, { subject: 'search' });\n }),\n }),\n ]);\n }),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,uBAAuB;AAChC,SAASC,WAAWC,yBAAyB;AAI7C,IAAA,6BAAeC,WAAWC,WACjBC,kBAAW,aAAA;AAChB,SAAOF,WAAWG,YAAYC,aAAaC,mBAAmB;IAC5DA,kBAAkBC,KAAK;MACrBC,WAAWC,gBAAgBC;MAC3BC,SAAgBR,kBAAW,aAAA;AACzB,eAAOS,UAAUC,OAAOC,gBAAgBC,qBAAqB;UAAEC,SAAS;QAAS,CAAA;MACnF,CAAA;IACF,CAAA;GACD;AACH,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Capabilities", "Capability", "LayoutOperation", "Operation", "OperationResolver", "Capability", "makeModule", "fnUntraced", "contributes", "Capabilities", "OperationResolver", "make", "operation", "SearchOperation", "OpenSearch", "handler", "Operation", "invoke", "LayoutOperation", "UpdateComplementary", "subject"]
|
|
7
|
+
}
|
|
@@ -12,18 +12,19 @@ import {
|
|
|
12
12
|
// src/capabilities/react-surface/react-surface.tsx
|
|
13
13
|
import * as Effect from "effect/Effect";
|
|
14
14
|
import React4 from "react";
|
|
15
|
-
import {
|
|
15
|
+
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
16
|
+
import { Surface as Surface2 } from "@dxos/app-framework/ui";
|
|
16
17
|
import { useActiveSpace } from "@dxos/plugin-space";
|
|
17
18
|
import { SpaceState, isSpace } from "@dxos/react-client/echo";
|
|
18
19
|
|
|
19
20
|
// src/components/SearchMain.tsx
|
|
20
21
|
import React, { useCallback, useMemo, useState } from "react";
|
|
21
|
-
import { Surface } from "@dxos/app-framework/
|
|
22
|
+
import { Surface } from "@dxos/app-framework/ui";
|
|
22
23
|
import { Entity, Query } from "@dxos/echo";
|
|
23
24
|
import { Filter, useQuery } from "@dxos/react-client/echo";
|
|
24
|
-
import { Toolbar, useTranslation } from "@dxos/react-ui";
|
|
25
|
+
import { ScrollArea, Toolbar, useTranslation } from "@dxos/react-ui";
|
|
26
|
+
import { Layout } from "@dxos/react-ui";
|
|
25
27
|
import { Card, Mosaic } from "@dxos/react-ui-mosaic";
|
|
26
|
-
import { Layout } from "@dxos/react-ui-mosaic";
|
|
27
28
|
import { SearchList } from "@dxos/react-ui-searchlist";
|
|
28
29
|
import { Text } from "@dxos/schema";
|
|
29
30
|
var SearchMain = ({ space }) => {
|
|
@@ -60,16 +61,19 @@ var SearchMain = ({ space }) => {
|
|
|
60
61
|
placeholder: t("search placeholder")
|
|
61
62
|
})), /* @__PURE__ */ React.createElement(SearchList.Content, null, /* @__PURE__ */ React.createElement(Mosaic.Container, {
|
|
62
63
|
asChild: true
|
|
63
|
-
}, /* @__PURE__ */ React.createElement(
|
|
64
|
+
}, /* @__PURE__ */ React.createElement(ScrollArea.Root, {
|
|
65
|
+
orientation: "vertical"
|
|
66
|
+
}, /* @__PURE__ */ React.createElement(ScrollArea.Viewport, null, /* @__PURE__ */ React.createElement(Mosaic.Stack, {
|
|
64
67
|
items: allResults,
|
|
65
68
|
getId: (result) => result.object.id,
|
|
66
69
|
Tile: SearchResultTile
|
|
67
|
-
})), allResults.length === 0 && /* @__PURE__ */ React.createElement(SearchList.Empty, null, t("empty results message")))))
|
|
70
|
+
})))), allResults.length === 0 && /* @__PURE__ */ React.createElement(SearchList.Empty, null, t("empty results message")))));
|
|
68
71
|
};
|
|
69
|
-
var SearchResultTile = (
|
|
72
|
+
var SearchResultTile = (props) => {
|
|
73
|
+
const data = props.data;
|
|
70
74
|
return /* @__PURE__ */ React.createElement(Card.Root, {
|
|
71
75
|
key: data.id
|
|
72
|
-
}, /* @__PURE__ */ React.createElement(Card.Toolbar, null, /* @__PURE__ */ React.createElement(Card.DragHandle, null), /* @__PURE__ */ React.createElement(Card.Title, null, data.label ?? (data.object && Entity.getLabel(data.object))), /* @__PURE__ */ React.createElement(Card.Menu, null)), /* @__PURE__ */ React.createElement(Surface, {
|
|
76
|
+
}, /* @__PURE__ */ React.createElement(Card.Toolbar, null, /* @__PURE__ */ React.createElement(Card.DragHandle, null), /* @__PURE__ */ React.createElement(Card.Title, null, data.label ?? (data.object && Entity.getLabel(data.object))), /* @__PURE__ */ React.createElement(Card.Menu, null)), /* @__PURE__ */ React.createElement(Surface.Surface, {
|
|
73
77
|
role: "card--content",
|
|
74
78
|
data: {
|
|
75
79
|
subject: data.object
|
|
@@ -81,8 +85,9 @@ var SearchResultTile = ({ data }) => {
|
|
|
81
85
|
// src/components/SearchDialog.tsx
|
|
82
86
|
import * as Option from "effect/Option";
|
|
83
87
|
import React2, { forwardRef, useCallback as useCallback2, useState as useState2 } from "react";
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
88
|
+
import { useOperationInvoker } from "@dxos/app-framework/ui";
|
|
89
|
+
import { LayoutOperation } from "@dxos/app-toolkit";
|
|
90
|
+
import { useAppGraph, useLayout } from "@dxos/app-toolkit/ui";
|
|
86
91
|
import { Obj } from "@dxos/echo";
|
|
87
92
|
import { Graph } from "@dxos/plugin-graph";
|
|
88
93
|
import { useClient } from "@dxos/react-client";
|
|
@@ -123,16 +128,16 @@ var SearchDialog = ({ pivotId }) => {
|
|
|
123
128
|
const resultObjects = Array.from(results.keys());
|
|
124
129
|
const { invokePromise } = useOperationInvoker();
|
|
125
130
|
const handleSelect = useCallback2(async (nodeId) => {
|
|
126
|
-
await invokePromise(
|
|
131
|
+
await invokePromise(LayoutOperation.UpdateDialog, {
|
|
127
132
|
state: false
|
|
128
133
|
});
|
|
129
134
|
const index = layout.active.findIndex((id) => id === nodeId);
|
|
130
135
|
if (index !== -1) {
|
|
131
|
-
await invokePromise(
|
|
136
|
+
await invokePromise(LayoutOperation.ScrollIntoView, {
|
|
132
137
|
subject: nodeId
|
|
133
138
|
});
|
|
134
139
|
} else {
|
|
135
|
-
await invokePromise(
|
|
140
|
+
await invokePromise(LayoutOperation.Open, {
|
|
136
141
|
subject: [
|
|
137
142
|
nodeId
|
|
138
143
|
],
|
|
@@ -150,16 +155,11 @@ var SearchDialog = ({ pivotId }) => {
|
|
|
150
155
|
}, []);
|
|
151
156
|
return /* @__PURE__ */ React2.createElement(Dialog.Content, null, /* @__PURE__ */ React2.createElement(Dialog.Title, null, t("search dialog title")), /* @__PURE__ */ React2.createElement(SearchList2.Root, {
|
|
152
157
|
onSearch: handleSearch
|
|
153
|
-
}, /* @__PURE__ */ React2.createElement(
|
|
154
|
-
|
|
155
|
-
"aria-expanded": "true",
|
|
156
|
-
"aria-label": t("search placeholder"),
|
|
157
|
-
className: "flex flex-col grow overflow-hidden"
|
|
158
|
+
}, /* @__PURE__ */ React2.createElement(SearchList2.Content, {
|
|
159
|
+
classNames: "max-bs-[24rem] overflow-auto"
|
|
158
160
|
}, /* @__PURE__ */ React2.createElement(SearchList2.Input, {
|
|
159
161
|
placeholder: t("search placeholder")
|
|
160
|
-
}), /* @__PURE__ */ React2.createElement(SearchList2.
|
|
161
|
-
classNames: "max-bs-[24rem] overflow-auto"
|
|
162
|
-
}, /* @__PURE__ */ React2.createElement(SearchList2.Viewport, null, queryString.length > 0 ? resultObjects.length > 0 ? resultObjects.map((object) => Graph.getNode(graph, Obj.getDXN(object).toString())).filter(Option.isSome).map((node) => /* @__PURE__ */ React2.createElement(SearchListResult, {
|
|
162
|
+
}), /* @__PURE__ */ React2.createElement(SearchList2.Viewport, null, queryString.length > 0 ? resultObjects.length > 0 ? resultObjects.map((object) => Graph.getNode(graph, Obj.getDXN(object).toString())).filter(Option.isSome).map((node) => /* @__PURE__ */ React2.createElement(SearchListResult, {
|
|
163
163
|
key: node.value.id,
|
|
164
164
|
node: node.value,
|
|
165
165
|
onSelect: handleSelect
|
|
@@ -171,11 +171,10 @@ var SearchDialog = ({ pivotId }) => {
|
|
|
171
171
|
key: node.value.id,
|
|
172
172
|
node: node.value,
|
|
173
173
|
onSelect: handleSelect
|
|
174
|
-
}))))))
|
|
174
|
+
})))))), /* @__PURE__ */ React2.createElement(Dialog.Close, {
|
|
175
175
|
asChild: true
|
|
176
176
|
}, /* @__PURE__ */ React2.createElement(Button, {
|
|
177
|
-
variant: "primary"
|
|
178
|
-
classNames: "mbs-2"
|
|
177
|
+
variant: "primary"
|
|
179
178
|
}, t("close label", {
|
|
180
179
|
ns: osTranslations
|
|
181
180
|
}))));
|
|
@@ -183,16 +182,18 @@ var SearchDialog = ({ pivotId }) => {
|
|
|
183
182
|
|
|
184
183
|
// src/components/SpaceMain.tsx
|
|
185
184
|
import React3, { useCallback as useCallback3, useEffect, useMemo as useMemo2, useState as useState3 } from "react";
|
|
186
|
-
import {
|
|
187
|
-
import {
|
|
185
|
+
import { useCapabilities, useOperationInvoker as useOperationInvoker2 } from "@dxos/app-framework/ui";
|
|
186
|
+
import { AppCapabilities, LayoutOperation as LayoutOperation2 } from "@dxos/app-toolkit";
|
|
187
|
+
import { useAppGraph as useAppGraph2 } from "@dxos/app-toolkit/ui";
|
|
188
188
|
import { Filter as Filter3, Obj as Obj2, Query as Query2 } from "@dxos/echo";
|
|
189
189
|
import { Graph as Graph2, Node, useActionRunner, useConnections } from "@dxos/plugin-graph";
|
|
190
190
|
import { useQuery as useQuery3 } from "@dxos/react-client/echo";
|
|
191
|
-
import { Toolbar as Toolbar2, toLocalizedString as toLocalizedString2, useTranslation as useTranslation3 } from "@dxos/react-ui";
|
|
191
|
+
import { ScrollArea as ScrollArea2, Toolbar as Toolbar2, toLocalizedString as toLocalizedString2, useTranslation as useTranslation3 } from "@dxos/react-ui";
|
|
192
|
+
import { Layout as Layout2 } from "@dxos/react-ui";
|
|
192
193
|
import { Card as Card2, Mosaic as Mosaic2 } from "@dxos/react-ui-mosaic";
|
|
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);
|
|
@@ -204,21 +205,26 @@ var SpaceMain = ({ space }) => {
|
|
|
204
205
|
placeholder: t("search placeholder")
|
|
205
206
|
})), /* @__PURE__ */ React3.createElement(SearchList3.Content, null, /* @__PURE__ */ React3.createElement(Mosaic2.Container, {
|
|
206
207
|
asChild: true
|
|
207
|
-
}, /* @__PURE__ */ React3.createElement(
|
|
208
|
-
|
|
208
|
+
}, /* @__PURE__ */ React3.createElement(ScrollArea2.Root, {
|
|
209
|
+
orientation: "vertical"
|
|
210
|
+
}, /* @__PURE__ */ React3.createElement(ScrollArea2.Viewport, {
|
|
211
|
+
classNames: "p-2"
|
|
209
212
|
}, /* @__PURE__ */ React3.createElement(Mosaic2.Stack, {
|
|
210
213
|
items,
|
|
211
214
|
getId: (node) => node.id,
|
|
212
215
|
Tile: NodeTile
|
|
213
|
-
}))))));
|
|
216
|
+
})))))));
|
|
214
217
|
};
|
|
215
|
-
var NodeTile = (
|
|
218
|
+
var NodeTile = (props) => {
|
|
219
|
+
const node = props.data;
|
|
216
220
|
const { t } = useTranslation3(meta.id);
|
|
217
221
|
const { graph } = useAppGraph2();
|
|
218
222
|
const { invokeSync } = useOperationInvoker2();
|
|
219
223
|
const runAction = useActionRunner();
|
|
220
224
|
const label = toLocalizedString2(node.properties.label, t);
|
|
221
225
|
const icon = node.properties.icon ?? "ph--placeholder--regular";
|
|
226
|
+
const iconHue = node.properties.iconHue;
|
|
227
|
+
const styles = iconHue ? getStyles(iconHue) : void 0;
|
|
222
228
|
const handleClick = () => {
|
|
223
229
|
if (Node.isAction(node)) {
|
|
224
230
|
const [parent] = Graph2.getConnections(graph, node.id, "inbound");
|
|
@@ -228,7 +234,7 @@ var NodeTile = ({ data: node }) => {
|
|
|
228
234
|
});
|
|
229
235
|
}
|
|
230
236
|
} else {
|
|
231
|
-
invokeSync(
|
|
237
|
+
invokeSync(LayoutOperation2.Open, {
|
|
232
238
|
subject: [
|
|
233
239
|
node.id
|
|
234
240
|
]
|
|
@@ -241,13 +247,14 @@ var NodeTile = ({ data: node }) => {
|
|
|
241
247
|
variant: "ghost",
|
|
242
248
|
label,
|
|
243
249
|
icon,
|
|
244
|
-
iconOnly: true
|
|
250
|
+
iconOnly: true,
|
|
251
|
+
iconClassNames: styles?.icon
|
|
245
252
|
}), /* @__PURE__ */ React3.createElement(Card2.Title, {
|
|
246
253
|
onClick: handleClick
|
|
247
254
|
}, label), /* @__PURE__ */ React3.createElement(Card2.Menu, null)));
|
|
248
255
|
};
|
|
249
256
|
var useMetadataResolver = () => {
|
|
250
|
-
const allMetadata = useCapabilities(
|
|
257
|
+
const allMetadata = useCapabilities(AppCapabilities.Metadata);
|
|
251
258
|
return useCallback3((typename) => allMetadata.find((m) => m.id === typename)?.metadata ?? {}, [
|
|
252
259
|
allMetadata
|
|
253
260
|
]);
|
|
@@ -314,14 +321,14 @@ var useSpaceItems = (space) => {
|
|
|
314
321
|
};
|
|
315
322
|
|
|
316
323
|
// src/capabilities/react-surface/react-surface.tsx
|
|
317
|
-
var react_surface_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(
|
|
318
|
-
|
|
324
|
+
var react_surface_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Capabilities.ReactSurface, [
|
|
325
|
+
Surface2.create({
|
|
319
326
|
id: SEARCH_DIALOG,
|
|
320
327
|
role: "dialog",
|
|
321
328
|
filter: (data) => data.component === SEARCH_DIALOG,
|
|
322
329
|
component: ({ data }) => /* @__PURE__ */ React4.createElement(SearchContextProvider, null, /* @__PURE__ */ React4.createElement(SearchDialog, data.props))
|
|
323
330
|
}),
|
|
324
|
-
|
|
331
|
+
Surface2.create({
|
|
325
332
|
id: `${SEARCH_DIALOG}/search-input`,
|
|
326
333
|
role: "search-input",
|
|
327
334
|
component: () => {
|
|
@@ -331,7 +338,7 @@ var react_surface_default = Capability.makeModule(() => Effect.succeed(Capabilit
|
|
|
331
338
|
}));
|
|
332
339
|
}
|
|
333
340
|
}),
|
|
334
|
-
|
|
341
|
+
Surface2.create({
|
|
335
342
|
id: `${SEARCH_DIALOG}/search`,
|
|
336
343
|
role: "deck-companion--search",
|
|
337
344
|
filter: (data) => isSpace(data.subject),
|
|
@@ -345,7 +352,7 @@ var react_surface_default = Capability.makeModule(() => Effect.succeed(Capabilit
|
|
|
345
352
|
}));
|
|
346
353
|
}
|
|
347
354
|
}),
|
|
348
|
-
|
|
355
|
+
Surface2.create({
|
|
349
356
|
id: `${meta.id}/space-article`,
|
|
350
357
|
role: "article",
|
|
351
358
|
position: "hoist",
|
|
@@ -361,4 +368,4 @@ var react_surface_default = Capability.makeModule(() => Effect.succeed(Capabilit
|
|
|
361
368
|
export {
|
|
362
369
|
react_surface_default as default
|
|
363
370
|
};
|
|
364
|
-
//# sourceMappingURL=react-surface-
|
|
371
|
+
//# sourceMappingURL=react-surface-ETNMCZOD.mjs.map
|