quip-apps-api
Advanced tools
Comparing version 1.0.0-alpha.16 to 1.0.0-alpha.17
@@ -10,19 +10,2 @@ import { ReactNode } from "react"; | ||
import User from "./user"; | ||
export declare enum ElementsEventType { | ||
ELEMENT_BLUR = "BLUR", | ||
BLUR = "BLUR", | ||
DOCUMENT_THEME_UPDATE = "DOCUMENT_THEME_UPDATE", | ||
CONTAINER_SIZE_UPDATE = "CONTAINER_SIZE_UPDATE", | ||
WINDOW_SIZE_UPDATE = "WINDOW_SIZE_UPDATE", | ||
DOCUMENT_SIZE_UPDATE = "DOCUMENT_SIZE_UPDATE", | ||
USER_PREFERENCE_UPDATE = "USER_PREFERENCE_UPDATE", | ||
SITE_PREFERENCE_UPDATE = "SITE_PREFERENCE_UPDATE", | ||
ELEMENT_FOCUS = "FOCUS", | ||
FOCUS = "FOCUS", | ||
DOCUMENT_MEMBERS_LOADED = "DOCUMENT_MEMBERS_LOADED", | ||
WHITELISTED_USERS_LOADED = "WHITELISTED_USERS_LOADED", | ||
DOCUMENT_EDITABLE_CHANGED = "DOCUMENT_EDITABLE_CHANGED", | ||
ONLINE_STATUS_CHANGED = "ONLINE_STATUS_CHANGED", | ||
WIDTH_UPDATE = "WIDTH_UPDATE" | ||
} | ||
interface ResizingOptions { | ||
@@ -38,2 +21,3 @@ minWidth?: number; | ||
initOptions?: string; | ||
initOptionsSource?: string; | ||
creationBlobs?: Blob[]; | ||
@@ -118,3 +102,4 @@ creationSource: string; | ||
ONLINE_STATUS_CHANGED = "ONLINE_STATUS_CHANGED", | ||
WIDTH_UPDATE = "WIDTH_UPDATE" | ||
WIDTH_UPDATE = "WIDTH_UPDATE", | ||
THREAD_MEMBERSHIP_CHANGED = "THREAD_MEMBERSHIP_CHANGED" | ||
} | ||
@@ -166,2 +151,3 @@ export declare enum MenuIcons { | ||
isDocumentEditableValue: boolean; | ||
isThreadMemberValue: boolean; | ||
isElementFocusedValue: boolean; | ||
@@ -208,3 +194,3 @@ isExplorerTemplateValue: boolean; | ||
addDraggableNode(node: Node): void; | ||
addEventListener(type: ElementsEventType | EventType, listener: () => void): void; | ||
addEventListener(type: EventType, listener: () => void): void; | ||
addWhitelistedUser(userId: string): void; | ||
@@ -269,2 +255,3 @@ auth(name: string): Auth; | ||
isDocumentEditable(): boolean; | ||
isThreadMember(): boolean; | ||
isElementFocused(): boolean; | ||
@@ -300,3 +287,3 @@ isExplorerTemplate(): boolean; | ||
removeDraggableNode(node: Node): void; | ||
removeEventListener(type: ElementsEventType | EventType, listener: () => void): void; | ||
removeEventListener(type: EventType, listener: () => void): void; | ||
searchPeople(searchString: string, callback: (users: User[]) => void): void; | ||
@@ -303,0 +290,0 @@ sendMessage(text: string, mentionIds: string[]): void; |
@@ -10,20 +10,2 @@ "use strict"; | ||
const user_1 = __importDefault(require("./user")); | ||
var ElementsEventType; | ||
(function (ElementsEventType) { | ||
ElementsEventType["ELEMENT_BLUR"] = "BLUR"; | ||
ElementsEventType["BLUR"] = "BLUR"; | ||
ElementsEventType["DOCUMENT_THEME_UPDATE"] = "DOCUMENT_THEME_UPDATE"; | ||
ElementsEventType["CONTAINER_SIZE_UPDATE"] = "CONTAINER_SIZE_UPDATE"; | ||
ElementsEventType["WINDOW_SIZE_UPDATE"] = "WINDOW_SIZE_UPDATE"; | ||
ElementsEventType["DOCUMENT_SIZE_UPDATE"] = "DOCUMENT_SIZE_UPDATE"; | ||
ElementsEventType["USER_PREFERENCE_UPDATE"] = "USER_PREFERENCE_UPDATE"; | ||
ElementsEventType["SITE_PREFERENCE_UPDATE"] = "SITE_PREFERENCE_UPDATE"; | ||
ElementsEventType["ELEMENT_FOCUS"] = "FOCUS"; | ||
ElementsEventType["FOCUS"] = "FOCUS"; | ||
ElementsEventType["DOCUMENT_MEMBERS_LOADED"] = "DOCUMENT_MEMBERS_LOADED"; | ||
ElementsEventType["WHITELISTED_USERS_LOADED"] = "WHITELISTED_USERS_LOADED"; | ||
ElementsEventType["DOCUMENT_EDITABLE_CHANGED"] = "DOCUMENT_EDITABLE_CHANGED"; | ||
ElementsEventType["ONLINE_STATUS_CHANGED"] = "ONLINE_STATUS_CHANGED"; | ||
ElementsEventType["WIDTH_UPDATE"] = "WIDTH_UPDATE"; | ||
})(ElementsEventType = exports.ElementsEventType || (exports.ElementsEventType = {})); | ||
var QuipIcon; | ||
@@ -84,2 +66,3 @@ (function (QuipIcon) { | ||
EventType["WIDTH_UPDATE"] = "WIDTH_UPDATE"; | ||
EventType["THREAD_MEMBERSHIP_CHANGED"] = "THREAD_MEMBERSHIP_CHANGED"; | ||
})(EventType = exports.EventType || (exports.EventType = {})); | ||
@@ -125,2 +108,3 @@ var MenuIcons; | ||
this.isDocumentEditableValue = true; | ||
this.isThreadMemberValue = true; | ||
this.isElementFocusedValue = true; | ||
@@ -277,2 +261,5 @@ this.isExplorerTemplateValue = false; | ||
} | ||
isThreadMember() { | ||
return this.isThreadMemberValue; | ||
} | ||
isElementFocused() { | ||
@@ -279,0 +266,0 @@ return this.isElementFocusedValue; |
@@ -1,2 +0,2 @@ | ||
import Client, { ElementsEventType } from "./client"; | ||
import Client, { EventType } from "./client"; | ||
declare enum PreferenceType { | ||
@@ -7,3 +7,3 @@ USER = 0, | ||
export default class Preferences { | ||
constructor(client?: Client, preferenceType?: PreferenceType, eventType?: ElementsEventType, rateLimiter?: any, // RateLimiter, | ||
constructor(client?: Client, preferenceType?: PreferenceType, eventType?: EventType, rateLimiter?: any, // RateLimiter, | ||
sizeLimit?: { | ||
@@ -10,0 +10,0 @@ entries: number; |
@@ -17,3 +17,2 @@ // Copyright Quip 2019 | ||
DocumentMenuCommands as DocumentMenuCommands_, | ||
ElementsEventType as ElementsEventType_, | ||
EventType as EventType_, | ||
@@ -95,3 +94,2 @@ MenuCommand as MenuCommand_, | ||
export type CanvasRecordCommentAnchorRecord = CanvasRecordCommentAnchorRecord_; | ||
export type ElementsEventType = ElementsEventType_; | ||
export type BlobWithThumbnails = BlobWithThumbnails_; | ||
@@ -98,0 +96,0 @@ export type MenuCommand = MenuCommand_; |
{ | ||
"name": "quip-apps-api", | ||
"version": "1.0.0-alpha.16", | ||
"version": "1.0.0-alpha.17", | ||
"description": "Quip Live Apps API", | ||
@@ -41,3 +41,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "49e9bcbb5a69eabed4d38fdef186fba8042c5119" | ||
"gitHead": "af95d4c19537a5dd31315f9d3bf5e58189225ba9" | ||
} |
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
145979
2379