roamjs-components 0.53.0 → 0.53.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types/index.d.ts +22 -0
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.53.0",
4
+ "version": "0.53.3",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "scripts": {
package/types/index.d.ts CHANGED
@@ -410,6 +410,8 @@ declare global {
410
410
  header?: React.ReactNode;
411
411
  results: QueryBuilderResult[];
412
412
  resultContent?: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
413
+ hideResults?: boolean;
414
+ resultFilter?: (r: QueryBuilderResult) => boolean;
413
415
  }) => JSX.Element;
414
416
  fireQuery: (query: {
415
417
  returnNode: string;
@@ -422,6 +424,26 @@ declare global {
422
424
  selectionNodes: QueryBuilderSelection[];
423
425
  };
424
426
  conditionToDatalog: (condition: QueryBuilderCondition) => string;
427
+ registerDatalogTranslator: (args: {
428
+ key: string;
429
+ callback: (args: {
430
+ freeVar: (s: string) => string;
431
+ source: string;
432
+ target: string;
433
+ uid: string;
434
+ }) => string;
435
+ }) => void;
436
+ unregisterDatalogTranslator: (args: {
437
+ key: string;
438
+ }) => void;
439
+ registerSelection: (args: {
440
+ test: RegExp;
441
+ pull: (a: {
442
+ returnNode: string;
443
+ match: RegExpExecArray;
444
+ }) => string;
445
+ mapper: (r: PullBlock, key: string) => QueryBuilderResult[string];
446
+ }) => void;
425
447
  };
426
448
  [id: string]: {
427
449
  [method: string]: (args?: any) => void;