roamjs-components 0.36.0 → 0.36.1

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 +14 -2
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.36.0",
4
+ "version": "0.36.1",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "scripts": {
package/types/index.d.ts CHANGED
@@ -286,15 +286,27 @@ declare global {
286
286
  block: {
287
287
  uid: string;
288
288
  };
289
- }) => true;
289
+ }) => Promise<void>;
290
290
  openPage: (p: {
291
291
  page: {
292
292
  uid: string;
293
293
  } | {
294
294
  title: string;
295
295
  };
296
- }) => true;
296
+ }) => Promise<void>;
297
+ getOpenPageOrBlockUid: () => string;
298
+ openDailyNotes: () => Promise<void>;
297
299
  };
300
+ setBlockFocusAndSelection: (a: {
301
+ location: {
302
+ "block-uid": string;
303
+ "window-id": string;
304
+ };
305
+ selection: {
306
+ start: number;
307
+ end: number;
308
+ };
309
+ }) => Promise<void>;
298
310
  };
299
311
  };
300
312
  roamDatomicAlphaAPI?: (params: ClientParams) => Promise<RoamBlock & {