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