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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "roamjs-components",
3
3
  "description": "Description for roamjs-components",
4
- "version": "0.66.12",
4
+ "version": "0.66.13",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "scripts": {
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: (args: {
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: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/types/index.ts"],"names":[],"mappings":";;;AAqBA,mDAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/types/index.ts"],"names":[],"mappings":";;;AAsBA,mDAAyB"}
@@ -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;