roamjs-components 0.73.1 → 0.73.2
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 +3 -1
- package/types/index.js.map +1 -1
- package/types/query-builder.d.ts +8 -4
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AddPullWatch, PullBlock, SidebarAction, SidebarWindow, SidebarWindowInput, WriteAction } from "./native";
|
|
2
|
-
import { RegisterSelection, ParseQuery, FireQuery, ConditionToDatalog, RegisterDatalogTranslator, ResultsViewComponent, QueryEditorComponent, ExportDialogComponent, QueryPageComponent } from "./query-builder";
|
|
2
|
+
import { RegisterSelection, ParseQuery, FireQuery, ConditionToDatalog, RegisterDatalogTranslator, ResultsViewComponent, QueryEditorComponent, ExportDialogComponent, QueryPageComponent, RunQuery, ListActiveQueries } from "./query-builder";
|
|
3
3
|
import { SamePageApi } from "./samepage";
|
|
4
4
|
import { RegisterCommand, UnregisterCommand } from "./smartblocks";
|
|
5
5
|
import type marked from "marked";
|
|
@@ -195,6 +195,8 @@ declare global {
|
|
|
195
195
|
key: string;
|
|
196
196
|
}) => void;
|
|
197
197
|
registerSelection: RegisterSelection;
|
|
198
|
+
runQuery: RunQuery;
|
|
199
|
+
listActiveQueries: ListActiveQueries;
|
|
198
200
|
};
|
|
199
201
|
versioning?: {
|
|
200
202
|
switch: (args: {
|
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":";;;AA0BA,mDAAyB"}
|
package/types/query-builder.d.ts
CHANGED
|
@@ -31,10 +31,6 @@ export declare type Selection = {
|
|
|
31
31
|
label: string;
|
|
32
32
|
uid: string;
|
|
33
33
|
};
|
|
34
|
-
export declare type Result = {
|
|
35
|
-
text: string;
|
|
36
|
-
uid: string;
|
|
37
|
-
} & Record<string, string | number | Date>;
|
|
38
34
|
export declare type ExportTypes = {
|
|
39
35
|
name: string;
|
|
40
36
|
callback: (args: {
|
|
@@ -118,4 +114,12 @@ export declare type RegisterDatalogTranslator = (args: {
|
|
|
118
114
|
placeholder?: string;
|
|
119
115
|
isVariable?: true;
|
|
120
116
|
}) => void;
|
|
117
|
+
export declare type Result = {
|
|
118
|
+
text: string;
|
|
119
|
+
uid: string;
|
|
120
|
+
} & Record<`${string}-uid`, string> & Record<string, string | number | Date>;
|
|
121
|
+
export declare type RunQuery = (parentUid: string) => Promise<Result>[];
|
|
122
|
+
export declare type ListActiveQueries = () => {
|
|
123
|
+
uid: string;
|
|
124
|
+
}[];
|
|
121
125
|
export {};
|