roamjs-components 0.54.20 → 0.54.21

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.54.20",
4
+ "version": "0.54.21",
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
  /// <reference types="react" />
2
- import { Condition as QueryBuilderCondition, Selection as QueryBuilderSelection, Result as QueryBuilderResult } from "./query-builder";
2
+ import { Condition as QueryBuilderCondition, Selection as QueryBuilderSelection, Result as QueryBuilderResult, ExportTypes } from "./query-builder";
3
3
  declare type CommandOutput = string | string[] | InputTextNode[];
4
4
  export declare type CommandHandler = (...args: string[]) => CommandOutput | Promise<CommandOutput>;
5
5
  export declare type DatalogFnArg = DatalogSrcVar | DatalogVariable | DatalogConstant;
@@ -489,18 +489,9 @@ declare global {
489
489
  queryBuilder?: {
490
490
  ExportDialog: (props: {
491
491
  onClose: () => void;
492
- isOpen?: boolean;
493
- exportTypes?: {
494
- name: string;
495
- callback: (args: {
496
- filename: string;
497
- graph: string;
498
- }) => {
499
- title: string;
500
- content: string;
501
- }[];
502
- }[];
503
- results?: QueryBuilderResult[];
492
+ isOpen: boolean;
493
+ exportTypes: ExportTypes;
494
+ results: QueryBuilderResult[];
504
495
  }) => JSX.Element;
505
496
  QueryEditor: (props: {
506
497
  parentUid: string;
@@ -511,6 +502,7 @@ declare global {
511
502
  pageUid: string;
512
503
  configUid?: string;
513
504
  defaultReturnNode?: string;
505
+ exportTypes?: ExportTypes;
514
506
  }) => JSX.Element;
515
507
  ResultsView: (props: {
516
508
  parentUid: string;
@@ -521,6 +513,7 @@ declare global {
521
513
  ctrlClick?: (e: QueryBuilderResult) => void;
522
514
  preventSavingSettings?: boolean;
523
515
  onEdit?: () => void;
516
+ exportTypes?: ExportTypes;
524
517
  }) => JSX.Element;
525
518
  fireQuery: (query: {
526
519
  returnNode: string;
@@ -32,4 +32,14 @@ export declare type Result = {
32
32
  text: string;
33
33
  uid: string;
34
34
  } & Record<string, string | number | Date>;
35
+ export declare type ExportTypes = {
36
+ name: string;
37
+ callback: (args: {
38
+ filename: string;
39
+ graph: string;
40
+ }) => {
41
+ title: string;
42
+ content: string;
43
+ }[];
44
+ }[];
35
45
  export {};