skandha-facets 0.10.0 → 0.10.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.
package/Addition.d.ts CHANGED
@@ -6,6 +6,6 @@ export declare class Addition<ValueT = any> {
6
6
  parentId?: string;
7
7
  add(values: GenericObjectT): Promise<void>;
8
8
  confirm(): Promise<void>;
9
- cancel(): Promise<void>;
9
+ cancel(): void;
10
10
  _reset(): void;
11
11
  }
package/Addition.js CHANGED
@@ -37,9 +37,7 @@ export class Addition {
37
37
  }
38
38
  cancel() {
39
39
  const cbs = getCallbacks(this);
40
- return Promise.resolve(this._reset()).then(() => {
41
- cbs.restoreLocation && cbs.restoreLocation();
42
- });
40
+ cbs.restoreLocation && cbs.restoreLocation();
43
41
  }
44
42
  _reset() {
45
43
  this.item = undefined;
package/DeletionCbs.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Cbs } from 'aspiration';
2
2
  export interface Deletion_delete extends Cbs {
3
3
  itemIds: string[];
4
- deleteItems(): Promise<any>;
4
+ deleteItems(): any;
5
5
  }
6
6
  export declare type DeletionCbs = {
7
7
  delete: Deletion_delete;
package/EditingCbs.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { Cbs } from 'aspiration';
2
2
  export interface Editing_save extends Cbs {
3
3
  values: any;
4
- saveItem(): Promise<any>;
4
+ saveItem(): any;
5
5
  refreshView(): void;
6
6
  }
7
7
  export interface Editing_cancel extends Cbs {
package/InsertionCbs.d.ts CHANGED
@@ -8,7 +8,7 @@ export declare type DragT = DropPositionT & {
8
8
  };
9
9
  export interface Insertion_insertItems<ValueT> extends Cbs {
10
10
  drag: DragT;
11
- insertItems(preview: Array<ValueT>): Promise<any>;
11
+ insertItems(preview: Array<ValueT>): any;
12
12
  }
13
13
  export interface InsertionCbs<ValueT = any> {
14
14
  insertItems: Insertion_insertItems<ValueT>;
package/LabellingCbs.d.ts CHANGED
@@ -12,7 +12,7 @@ export declare type ItemsByLabelT = {
12
12
  };
13
13
  export interface Labelling_setLabel extends Cbs {
14
14
  labelValue: LabelValueT;
15
- saveIds(label: string, ids: string[]): Promise<any>;
15
+ saveIds(label: string, ids: string[]): any;
16
16
  }
17
17
  export interface LabellingCbs {
18
18
  setLabel: Labelling_setLabel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skandha-facets",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Facets for use with the skandha library",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/mnieber/skandha-facets.git",