roamjs-components 0.66.11 → 0.66.12
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/package.json +1 -1
- package/types/index.d.ts +2 -14
- package/types/index.js.map +1 -1
- package/types/query-builder.d.ts +15 -0
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AddPullWatch, DatalogClause, PullBlock, RoamBasicNode, SidebarAction, SidebarWindow, SidebarWindowInput, WriteAction } from "./native";
|
|
3
|
-
import { Condition as QueryBuilderCondition, Selection as QueryBuilderSelection, Result as QueryBuilderResult, ExportTypes } from "./query-builder";
|
|
3
|
+
import { Condition as QueryBuilderCondition, Selection as QueryBuilderSelection, Result as QueryBuilderResult, ExportTypes, QBResultsView } from "./query-builder";
|
|
4
4
|
import { RegisterCommand, UnregisterCommand } from "./smartblocks";
|
|
5
5
|
import type marked from "marked";
|
|
6
6
|
import type Markdown from "marked-react";
|
|
@@ -200,19 +200,7 @@ declare global {
|
|
|
200
200
|
defaultReturnNode?: string;
|
|
201
201
|
getExportTypes?: (r: QueryBuilderResult[]) => ExportTypes;
|
|
202
202
|
}) => JSX.Element;
|
|
203
|
-
ResultsView:
|
|
204
|
-
parentUid: string;
|
|
205
|
-
header?: React.ReactNode;
|
|
206
|
-
results: QueryBuilderResult[];
|
|
207
|
-
hideResults?: boolean;
|
|
208
|
-
resultFilter?: (r: QueryBuilderResult) => boolean;
|
|
209
|
-
ctrlClick?: (e: QueryBuilderResult) => void;
|
|
210
|
-
preventSavingSettings?: boolean;
|
|
211
|
-
preventExport?: boolean;
|
|
212
|
-
onEdit?: () => void;
|
|
213
|
-
getExportTypes?: (r: QueryBuilderResult[]) => ExportTypes;
|
|
214
|
-
onResultsInViewChange?: (r: QueryBuilderResult[]) => void;
|
|
215
|
-
}) => JSX.Element;
|
|
203
|
+
ResultsView: QBResultsView;
|
|
216
204
|
fireQuery: (query: {
|
|
217
205
|
returnNode: string;
|
|
218
206
|
conditions: QueryBuilderCondition[];
|
package/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/types/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/types/index.ts"],"names":[],"mappings":";;;AAqBA,mDAAyB"}
|
package/types/query-builder.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare type QBBase = {
|
|
2
3
|
uid: string;
|
|
3
4
|
};
|
|
@@ -42,4 +43,18 @@ export declare type ExportTypes = {
|
|
|
42
43
|
content: string;
|
|
43
44
|
}[]>;
|
|
44
45
|
}[];
|
|
46
|
+
export declare type QBResultsView = (props: {
|
|
47
|
+
parentUid: string;
|
|
48
|
+
header?: React.ReactNode;
|
|
49
|
+
results: Result[];
|
|
50
|
+
hideResults?: boolean;
|
|
51
|
+
resultFilter?: (r: Result) => boolean;
|
|
52
|
+
ctrlClick?: (e: Result) => void;
|
|
53
|
+
preventSavingSettings?: boolean;
|
|
54
|
+
preventExport?: boolean;
|
|
55
|
+
onEdit?: () => void;
|
|
56
|
+
onRefresh?: () => void;
|
|
57
|
+
getExportTypes?: (r: Result[]) => ExportTypes;
|
|
58
|
+
onResultsInViewChange?: (r: Result[]) => void;
|
|
59
|
+
}) => JSX.Element;
|
|
45
60
|
export {};
|