quip-apps-api
Advanced tools
Comparing version 0.2.0-alpha.10 to 0.2.0-alpha.11
@@ -6,2 +6,10 @@ # Change Log | ||
# 0.2.0-alpha.11 (2021-03-09) | ||
**Note:** Version bump only for package quip-apps-api | ||
# 0.2.0-alpha.10 (2021-03-09) | ||
@@ -8,0 +16,0 @@ |
@@ -6,2 +6,3 @@ import React, { Component, ReactNode } from "react"; | ||
import RichTextRecord from "./rich-text-record"; | ||
import ImageRecord from "./image-record"; | ||
export declare class Button extends Component<{ | ||
@@ -108,2 +109,26 @@ className?: string; | ||
} | ||
export declare enum ImageMode { | ||
NONE = 0, | ||
FOCUSED = 1, | ||
COMMENT = 2, | ||
CROP = 3 | ||
} | ||
export declare class Image extends Component<{ | ||
record: ImageRecord; | ||
width: number; | ||
onWidthAndAspectRatioUpdate: (width: number | null, aspectRatio: number | null) => void; | ||
minWidth: number; | ||
minHeight: number; | ||
placeholderWidth: number; | ||
placeholderHeight: number; | ||
placeholderText: string; | ||
mode: ImageMode; | ||
onFocusChanged?: (focused: boolean) => void; | ||
onImageLoaded?: (record: ImageRecord) => void; | ||
onOperationCompleted?: () => void; | ||
altText?: string; | ||
className?: string; | ||
}> { | ||
render(): React.DetailedReactHTMLElement<React.HTMLAttributes<HTMLElement>, HTMLElement>; | ||
} | ||
export declare class ProfilePicture extends Component<{ | ||
@@ -110,0 +135,0 @@ user: User; |
@@ -104,2 +104,15 @@ "use strict"; | ||
exports.CommentsTrigger = CommentsTrigger; | ||
var ImageMode; | ||
(function (ImageMode) { | ||
ImageMode[ImageMode["NONE"] = 0] = "NONE"; | ||
ImageMode[ImageMode["FOCUSED"] = 1] = "FOCUSED"; | ||
ImageMode[ImageMode["COMMENT"] = 2] = "COMMENT"; | ||
ImageMode[ImageMode["CROP"] = 3] = "CROP"; | ||
})(ImageMode = exports.ImageMode || (exports.ImageMode = {})); | ||
class Image extends react_1.Component { | ||
render() { | ||
return react_1.default.createElement("div", undefined, "ui.Image"); | ||
} | ||
} | ||
exports.Image = Image; | ||
class ProfilePicture extends react_1.Component { | ||
@@ -106,0 +119,0 @@ render() { |
{ | ||
"name": "quip-apps-api", | ||
"version": "0.2.0-alpha.10", | ||
"version": "0.2.0-alpha.11", | ||
"description": "Quip Live Apps API", | ||
@@ -38,6 +38,7 @@ "main": "index.js", | ||
"react": "^16.9.0", | ||
"react-test-renderer": "^17.0.1", | ||
"tape": "^4.11.0", | ||
"typescript": "^3.6.3" | ||
}, | ||
"gitHead": "5f77746f22c134d6ccea88c070cd5d9dc0176294" | ||
"gitHead": "c2fdbe7405c89c11a3158362ae656b376b2cf1df" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
158097
2396
8