quip-apps-api
Advanced tools
Comparing version 0.2.0-alpha.20 to 0.2.0-alpha.21
@@ -6,2 +6,10 @@ # Change Log | ||
# 0.2.0-alpha.21 (2021-07-12) | ||
**Note:** Version bump only for package quip-apps-api | ||
# 0.2.0-alpha.20 (2021-07-12) | ||
@@ -8,0 +16,0 @@ |
@@ -25,8 +25,8 @@ import Record from "./record"; | ||
contains(item: T): boolean; | ||
delete(): void; | ||
delete(isProgrammaticUpdate?: boolean): void; | ||
get(index: number): T; | ||
indexOf(item: T): number; | ||
isDeleted(): void; | ||
move(item: T, index: number): boolean; | ||
remove(item: T, skipDelete?: boolean): boolean; | ||
move(item: T, index: number, isProgrammaticUpdate?: boolean): boolean; | ||
remove(item: T, skipDelete?: boolean, isProgrammaticUpdate?: boolean): boolean; | ||
listen(listener: (list: RecordList<T>) => void): void; | ||
@@ -33,0 +33,0 @@ unlisten(listener: (list: RecordList<T>) => void): void; |
@@ -47,3 +47,3 @@ "use strict"; | ||
} | ||
delete() { | ||
delete(isProgrammaticUpdate) { | ||
this.isDeletedValue = true; | ||
@@ -60,3 +60,3 @@ } | ||
} | ||
move(item, index) { | ||
move(item, index, isProgrammaticUpdate) { | ||
const parent = item.containingListValue; | ||
@@ -72,3 +72,3 @@ if (index < 0) { | ||
} | ||
remove(item, skipDelete) { | ||
remove(item, skipDelete, isProgrammaticUpdate) { | ||
const idx = this.indexOf(item); | ||
@@ -75,0 +75,0 @@ if (idx > -1) { |
@@ -71,5 +71,5 @@ import Client from "./client"; | ||
set(key: string, value: any, isProgrammaticUpdate?: boolean): void; | ||
clear(key: string, skipDelete?: boolean): Record | RecordList<any> | undefined; | ||
clearData(): void; | ||
setDataVersion(version: number): void; | ||
clear(key: string, skipDelete?: boolean, isProgrammaticUpdate?: boolean): Record | RecordList<any> | undefined; | ||
clearData(isProgrammaticUpdate?: boolean): void; | ||
setDataVersion(version: number, isProgrammaticUpdate?: boolean): void; | ||
getParent(): Record | undefined; | ||
@@ -79,4 +79,4 @@ getParentId(): string; | ||
getContainingList(): RecordList<any> | undefined; | ||
setDeleted(): void; | ||
delete(): void; | ||
setDeleted(isProgrammaticUpdate?: boolean): void; | ||
delete(isProgrammaticUpdate?: boolean): void; | ||
getPreviousSibling(): Record | undefined; | ||
@@ -93,3 +93,3 @@ getNextSibling(): Record | undefined; | ||
notifyListeners(): void; | ||
setOrphanedState(): void; | ||
setOrphanedState(isProgrammaticUpdate?: boolean): void; | ||
supportsComments(): boolean; | ||
@@ -96,0 +96,0 @@ unlistenToComments(listener: (record: Record) => void): void; |
@@ -112,3 +112,3 @@ "use strict"; | ||
} | ||
clear(key, skipDelete) { | ||
clear(key, skipDelete, isProgrammaticUpdate) { | ||
const value = this.data_[key]; | ||
@@ -120,3 +120,3 @@ delete this.data_[key]; | ||
} | ||
clearData() { | ||
clearData(isProgrammaticUpdate) { | ||
for (const key in this.data_) { | ||
@@ -126,3 +126,3 @@ this.clear(key); | ||
} | ||
setDataVersion(version) { | ||
setDataVersion(version, isProgrammaticUpdate) { | ||
this.dataVersionValue = version; | ||
@@ -142,4 +142,4 @@ } | ||
} | ||
setDeleted() { } | ||
delete() { | ||
setDeleted(isProgrammaticUpdate) { } | ||
delete(isProgrammaticUpdate) { | ||
this.isDeletedValue = true; | ||
@@ -181,3 +181,3 @@ } | ||
} | ||
setOrphanedState() { } | ||
setOrphanedState(isProgrammaticUpdate) { } | ||
supportsComments() { | ||
@@ -184,0 +184,0 @@ // override to change this |
@@ -19,3 +19,2 @@ import Auth_ from "./dist/auth"; | ||
MenuCommand as MenuCommand_, | ||
MenuCommandHandler as MenuCommandHandler_, | ||
MenuIcons as MenuIcons_, | ||
@@ -102,3 +101,2 @@ RootEntityConstructor as RootEntityConstructor_, | ||
export type MenuCommand = MenuCommand_; | ||
export type MenuCommandHandler = MenuCommandHandler_; | ||
export type ToolbarState = ToolbarState_; | ||
@@ -105,0 +103,0 @@ export type CreationSource = typeof CreationSource_; |
{ | ||
"name": "quip-apps-api", | ||
"version": "0.2.0-alpha.20", | ||
"version": "0.2.0-alpha.21", | ||
"description": "Quip Live Apps API", | ||
@@ -42,3 +42,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "c1321142f95fe5a2d0b9204faa89f189c6186e7f" | ||
"gitHead": "14647dca73e00f039021c523f81c473a0b482ac3" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
162022
2421