roamjs-components 0.70.11 → 0.70.12

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.70.11",
4
+ "version": "0.70.12",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "scripts": {
package/types/index.d.ts CHANGED
@@ -1,15 +1,11 @@
1
1
  import { AddPullWatch, PullBlock, SidebarAction, SidebarWindow, SidebarWindowInput, WriteAction } from "./native";
2
2
  import { RegisterSelection, ParseQuery, FireQuery, ConditionToDatalog, RegisterDatalogTranslator, ResultsViewComponent, QueryEditorComponent, ExportDialogComponent, QueryPageComponent } from "./query-builder";
3
+ import { SamePageApi } from "./samepage";
3
4
  import { RegisterCommand, UnregisterCommand } from "./smartblocks";
4
5
  import type marked from "marked";
5
6
  import type Markdown from "marked-react";
6
7
  import type JSZip from "jszip";
7
8
  export * from "./native";
8
- declare type json = string | number | boolean | null | {
9
- toJSON: () => string;
10
- } | json[] | {
11
- [key: string]: json;
12
- };
13
9
  declare global {
14
10
  interface Window {
15
11
  RoamLazy?: {
@@ -161,26 +157,8 @@ declare global {
161
157
  roamjs: {
162
158
  loaded: Set<string>;
163
159
  extension: {
164
- multiplayer?: {
165
- addGraphListener: (args: {
166
- operation: string;
167
- handler: (e: json, graph: string) => void;
168
- }) => void;
169
- removeGraphListener: (args: {
170
- operation: string;
171
- }) => void;
172
- sendToGraph: (args: {
173
- graph: string;
174
- operation: string;
175
- data?: {
176
- [k: string]: json;
177
- };
178
- }) => void;
179
- getConnectedGraphs: () => string[];
180
- getNetworkedGraphs: () => string[];
181
- enable: () => void;
182
- disable: () => void;
183
- };
160
+ multiplayer?: SamePageApi;
161
+ samepage?: SamePageApi;
184
162
  queryBuilder?: {
185
163
  ExportDialog: ExportDialogComponent;
186
164
  QueryEditor: QueryEditorComponent;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/types/index.ts"],"names":[],"mappings":";;;AAuBA,mDAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/types/index.ts"],"names":[],"mappings":";;;AAwBA,mDAAyB"}
@@ -86,6 +86,9 @@ export declare type QueryPageComponent = (props: {
86
86
  configUid?: string;
87
87
  defaultReturnNode?: string;
88
88
  getExportTypes?: (r: Result[]) => ExportTypes;
89
+ globalFiltersData?: Record<string, Filters>;
90
+ globalPageSize?: number;
91
+ hideMetadata?: boolean;
89
92
  }) => JSX.Element;
90
93
  export declare type ParseQuery = (q: RoamBasicNode | string) => {
91
94
  returnNode: string;
@@ -0,0 +1,26 @@
1
+ declare type json = string | number | boolean | null | {
2
+ toJSON: () => string;
3
+ } | json[] | {
4
+ [key: string]: json;
5
+ };
6
+ export declare type SamePageApi = {
7
+ addGraphListener: (args: {
8
+ operation: string;
9
+ handler: (e: json, graph: string) => void;
10
+ }) => void;
11
+ removeGraphListener: (args: {
12
+ operation: string;
13
+ }) => void;
14
+ sendToGraph: (args: {
15
+ graph: string;
16
+ operation: string;
17
+ data?: {
18
+ [k: string]: json;
19
+ };
20
+ }) => void;
21
+ getConnectedGraphs: () => string[];
22
+ getNetworkedGraphs: () => string[];
23
+ enable: () => void;
24
+ disable: () => void;
25
+ };
26
+ export {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=samepage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"samepage.js","sourceRoot":"","sources":["../src/types/samepage.ts"],"names":[],"mappings":""}