roamjs-components 0.54.13 → 0.54.16

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 +10 -11
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.54.13",
4
+ "version": "0.54.16",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "scripts": {
package/types/index.d.ts CHANGED
@@ -489,12 +489,7 @@ declare global {
489
489
  queryBuilder?: {
490
490
  QueryEditor: (props: {
491
491
  parentUid: string;
492
- defaultQuery: string[];
493
- onQuery: (query: {
494
- returnNode: string;
495
- conditions: QueryBuilderCondition[];
496
- selections: QueryBuilderSelection[];
497
- }) => Promise<void>;
492
+ onQuery?: () => void;
498
493
  defaultReturnNode?: string;
499
494
  }) => JSX.Element;
500
495
  QueryPage: (props: {
@@ -506,20 +501,24 @@ declare global {
506
501
  parentUid: string;
507
502
  header?: React.ReactNode;
508
503
  results: QueryBuilderResult[];
509
- resultContent?: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
510
504
  hideResults?: boolean;
511
505
  resultFilter?: (r: QueryBuilderResult) => boolean;
512
- ctrlClick?: (r: QueryBuilderResult) => void;
506
+ ctrlClick?: (e: QueryBuilderResult) => void;
507
+ preventSavingSettings?: boolean;
508
+ onEdit?: () => void;
513
509
  }) => JSX.Element;
514
510
  fireQuery: (query: {
515
511
  returnNode: string;
516
512
  conditions: QueryBuilderCondition[];
517
513
  selections: QueryBuilderSelection[];
518
514
  }) => QueryBuilderResult[];
519
- parseQuery: (q: string[]) => {
515
+ parseQuery: (q: RoamBasicNode) => {
520
516
  returnNode: string;
521
- conditionNodes: QueryBuilderCondition[];
522
- selectionNodes: QueryBuilderSelection[];
517
+ conditions: QueryBuilderCondition[];
518
+ selections: QueryBuilderSelection[];
519
+ returnNodeUid: string;
520
+ conditionsNodesUid: string;
521
+ selectionsNodesUid: string;
523
522
  };
524
523
  conditionToDatalog: (condition: QueryBuilderCondition) => DatalogClause[];
525
524
  getConditionLabels: () => string[];