roamjs-components 0.36.1 → 0.36.4

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.36.1",
4
+ "version": "0.36.4",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "scripts": {
package/types/index.d.ts CHANGED
@@ -185,7 +185,7 @@ declare type SidebarGraphWindow = {
185
185
  };
186
186
  export declare type SidebarAction = (action: {
187
187
  window: SidebarWindowInput;
188
- }) => boolean;
188
+ }) => Promise<void>;
189
189
  export declare type SidebarWindow = {
190
190
  "collapsed?": boolean;
191
191
  order: number;
@@ -231,15 +231,15 @@ declare global {
231
231
  };
232
232
  ui: {
233
233
  rightSidebar: {
234
- open: () => void;
235
- close: () => void;
234
+ open: () => Promise<void>;
235
+ close: () => Promise<void>;
236
236
  getWindows: () => SidebarWindow[];
237
237
  addWindow: SidebarAction;
238
238
  setWindowOrder: (action: {
239
239
  window: SidebarWindowInput & {
240
240
  order: number;
241
241
  };
242
- }) => boolean;
242
+ }) => Promise<void>;
243
243
  collapseWindow: SidebarAction;
244
244
  pinWindow: SidebarAction;
245
245
  expandWindow: SidebarAction;
@@ -298,13 +298,13 @@ declare global {
298
298
  openDailyNotes: () => Promise<void>;
299
299
  };
300
300
  setBlockFocusAndSelection: (a: {
301
- location: {
301
+ location?: {
302
302
  "block-uid": string;
303
303
  "window-id": string;
304
304
  };
305
- selection: {
305
+ selection?: {
306
306
  start: number;
307
- end: number;
307
+ end?: number;
308
308
  };
309
309
  }) => Promise<void>;
310
310
  };
@@ -1,2 +1,2 @@
1
- declare const openBlockInSidebar: (blockUid: string) => boolean | void;
1
+ declare const openBlockInSidebar: (blockUid: string) => Promise<void>;
2
2
  export default openBlockInSidebar;
@@ -1 +1 @@
1
- {"version":3,"file":"openBlockInSidebar.js","sourceRoot":"","sources":["../src/writes/openBlockInSidebar.ts"],"names":[],"mappings":"AAAA,MAAM,kBAAkB,GAAG,CAAC,QAAgB,EAAkB,EAAE,CAC9D,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,YAAY;KAChC,UAAU,EAAE;KACZ,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,IAAI,CAAC,CAAC,WAAW,CAAC,KAAK,QAAQ,CAAC;IAC/D,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE;IAC5C,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC;QAC5C,MAAM,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,QAAQ;SACtB;KACF,CAAC,CAAC;AAET,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"openBlockInSidebar.js","sourceRoot":"","sources":["../src/writes/openBlockInSidebar.ts"],"names":[],"mappings":"AAAA,MAAM,kBAAkB,GAAG,CAAC,QAAgB,EAAiB,EAAE,CAC7D,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,YAAY;KAChC,UAAU,EAAE;KACZ,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,IAAI,CAAC,CAAC,WAAW,CAAC,KAAK,QAAQ,CAAC;IAC/D,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE;IAC5C,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC;QAC5C,MAAM,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,QAAQ;SACtB;KACF,CAAC,CAAC;AAET,eAAe,kBAAkB,CAAC"}