roamjs-components 0.66.12 → 0.66.13
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 -10
- package/types/index.js.map +1 -1
- package/types/query-builder.d.ts +10 -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, QBResultsView } from "./query-builder";
|
|
3
|
+
import { Condition as QueryBuilderCondition, Selection as QueryBuilderSelection, Result as QueryBuilderResult, ExportTypes, QBResultsView, RegisterSelection } 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";
|
|
@@ -228,15 +228,7 @@ declare global {
|
|
|
228
228
|
unregisterDatalogTranslator: (args: {
|
|
229
229
|
key: string;
|
|
230
230
|
}) => void;
|
|
231
|
-
registerSelection:
|
|
232
|
-
test: RegExp;
|
|
233
|
-
pull: (a: {
|
|
234
|
-
returnNode: string;
|
|
235
|
-
match: RegExpExecArray;
|
|
236
|
-
where: DatalogClause[];
|
|
237
|
-
}) => string;
|
|
238
|
-
mapper: (r: PullBlock, key: string) => QueryBuilderResult[string] | Record<string, QueryBuilderResult[string]> | Promise<QueryBuilderResult[string] | Record<string, QueryBuilderResult[string]>>;
|
|
239
|
-
}) => void;
|
|
231
|
+
registerSelection: RegisterSelection;
|
|
240
232
|
};
|
|
241
233
|
versioning?: {
|
|
242
234
|
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":";;;AAsBA,mDAAyB"}
|
package/types/query-builder.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { DatalogClause, PullBlock } from "./native";
|
|
2
3
|
declare type QBBase = {
|
|
3
4
|
uid: string;
|
|
4
5
|
};
|
|
@@ -43,6 +44,15 @@ export declare type ExportTypes = {
|
|
|
43
44
|
content: string;
|
|
44
45
|
}[]>;
|
|
45
46
|
}[];
|
|
47
|
+
export declare type RegisterSelection = (args: {
|
|
48
|
+
test: RegExp;
|
|
49
|
+
pull: (a: {
|
|
50
|
+
returnNode: string;
|
|
51
|
+
match: RegExpExecArray;
|
|
52
|
+
where: DatalogClause[];
|
|
53
|
+
}) => string;
|
|
54
|
+
mapper: (r: PullBlock, key: string, result: Result) => Result[string] | Record<string, Result[string]> | Promise<Result[string] | Record<string, Result[string]>>;
|
|
55
|
+
}) => void;
|
|
46
56
|
export declare type QBResultsView = (props: {
|
|
47
57
|
parentUid: string;
|
|
48
58
|
header?: React.ReactNode;
|