@@ -49,6 +49,7 @@ interface PluginAPI {
4949 getStyleById ( id : string ) : BaseStyle | null
5050 readonly variables : VariablesAPI
5151 readonly teamLibrary : TeamLibraryAPI
52+ readonly annotations : AnnotationsAPI
5253 readonly root : DocumentNode
5354 currentPage : PageNode
5455 setCurrentPageAsync ( page : PageNode ) : Promise < void >
@@ -240,6 +241,14 @@ interface LibraryVariable {
240241 key : string
241242 resolvedType : VariableResolvedDataType
242243}
244+ interface AnnotationsAPI {
245+ getAnnotationCategoriesAsync ( ) : Promise < AnnotationCategory [ ] >
246+ getAnnotationCategoryByIdAsync ( id : string ) : Promise < AnnotationCategory | null >
247+ addAnnotationCategoryAsync ( categoryInput : {
248+ label : string
249+ color : AnnotationCategoryColor
250+ } ) : Promise < AnnotationCategory >
251+ }
243252interface TeamLibraryAPI {
244253 getAvailableLibraryVariableCollectionsAsync ( ) : Promise < LibraryVariableCollection [ ] >
245254 getVariablesInLibraryCollectionAsync ( libraryCollectionKey : string ) : Promise < LibraryVariable [ ] >
@@ -1860,6 +1869,7 @@ interface Annotation {
18601869 readonly label ?: string
18611870 readonly labelMarkdown ?: string
18621871 readonly properties ?: ReadonlyArray < AnnotationProperty >
1872+ readonly categoryId ?: string
18631873}
18641874interface AnnotationProperty {
18651875 readonly type : AnnotationPropertyType
@@ -2526,6 +2536,24 @@ interface VariableCollection extends PluginDataMixin {
25262536 addMode ( name : string ) : string
25272537 renameMode ( modeId : string , newName : string ) : void
25282538}
2539+ declare type AnnotationCategoryColor =
2540+ | 'yellow'
2541+ | 'orange'
2542+ | 'red'
2543+ | 'pink'
2544+ | 'violet'
2545+ | 'blue'
2546+ | 'teal'
2547+ | 'green'
2548+ interface AnnotationCategory {
2549+ readonly id : string
2550+ readonly label : string
2551+ readonly color : AnnotationCategoryColor
2552+ readonly isPreset : boolean
2553+ remove ( ) : void
2554+ setColor ( color : AnnotationCategoryColor ) : void
2555+ setLabel ( label : string ) : void
2556+ }
25292557interface WidgetNode extends OpaqueNodeMixin , StickableMixin {
25302558 readonly type : 'WIDGET'
25312559 readonly widgetId : string
@@ -2789,4 +2817,4 @@ interface FindAllCriteria<T extends NodeType[]> {
27892817}
27902818
27912819// prettier-ignore
2792- export { ArgFreeEventType , PluginAPI , VersionHistoryResult , VariablesAPI , LibraryVariableCollection , LibraryVariable , TeamLibraryAPI , PaymentStatus , PaymentsAPI , ClientStorageAPI , NotificationOptions , NotifyDequeueReason , NotificationHandler , ShowUIOptions , UIPostMessageOptions , OnMessageProperties , MessageEventHandler , UIAPI , UtilAPI , ColorPalette , ColorPalettes , ConstantsAPI , CodegenEvent , CodegenPreferences , CodegenPreferencesEvent , CodegenResult , CodegenAPI , DevResource , DevResourceWithNodeId , LinkPreviewEvent , PlainTextElement , LinkPreviewResult , AuthEvent , DevResourceOpenEvent , AuthResult , VSCodeAPI , DevResourcesAPI , TimerAPI , ViewportAPI , TextReviewAPI , ParameterValues , SuggestionResults , ParameterInputEvent , ParametersAPI , RunParametersEvent , OpenDevResourcesEvent , RunEvent , SlidesViewChangeEvent , DropEvent , DropItem , DropFile , DocumentChangeEvent , StyleChangeEvent , StyleChange , BaseDocumentChange , BaseNodeChange , RemovedNode , CreateChange , DeleteChange , PropertyChange , BaseStyleChange , StyleCreateChange , StyleDeleteChange , StylePropertyChange , DocumentChange , NodeChangeProperty , NodeChangeEvent , NodeChange , StyleChangeProperty , TextReviewEvent , TextReviewRange , Transform , Vector , Rect , RGB , RGBA , FontName , TextCase , TextDecoration , TextDecorationStyle , TextDecorationOffset , TextDecorationThickness , TextDecorationColor , OpenTypeFeature , ArcData , DropShadowEffect , InnerShadowEffect , BlurEffect , Effect , ConstraintType , Constraints , ColorStop , ImageFilters , SolidPaint , GradientPaint , ImagePaint , VideoPaint , Paint , Guide , RowsColsLayoutGrid , GridLayoutGrid , LayoutGrid , ExportSettingsConstraints , ExportSettingsImage , ExportSettingsSVGBase , ExportSettingsSVG , ExportSettingsSVGString , ExportSettingsPDF , ExportSettingsREST , ExportSettings , WindingRule , VectorVertex , VectorSegment , VectorRegion , VectorNetwork , VectorPath , VectorPaths , LetterSpacing , LineHeight , LeadingTrim , HyperlinkTarget , TextListOptions , BlendMode , MaskType , Font , TextStyleOverrideType , StyledTextSegment , Reaction , VariableDataType , ExpressionFunction , Expression , VariableValueWithExpression , VariableData , ConditionalBlock , DevStatus , Action , SimpleTransition , DirectionalTransition , Transition , Trigger , Navigation , Easing , EasingFunctionBezier , EasingFunctionSpring , OverflowDirection , OverlayPositionType , OverlayBackground , OverlayBackgroundInteraction , PublishStatus , ConnectorEndpointPosition , ConnectorEndpointPositionAndEndpointNodeId , ConnectorEndpointEndpointNodeIdAndMagnet , ConnectorEndpoint , ConnectorStrokeCap , BaseNodeMixin , PluginDataMixin , DevResourcesMixin , DevStatusMixin , SceneNodeMixin , VariableBindableNodeField , VariableBindableTextField , VariableBindablePaintField , VariableBindablePaintStyleField , VariableBindableColorStopField , VariableBindableEffectField , VariableBindableEffectStyleField , VariableBindableLayoutGridField , VariableBindableGridStyleField , VariableBindableComponentPropertyField , VariableBindableComponentPropertyDefinitionField , StickableMixin , ChildrenMixin , ConstraintMixin , DimensionAndPositionMixin , LayoutMixin , AspectRatioLockMixin , BlendMixin , ContainerMixin , DeprecatedBackgroundMixin , StrokeCap , StrokeJoin , HandleMirroring , AutoLayoutMixin , AutoLayoutChildrenMixin , InferredAutoLayoutResult , DetachedInfo , MinimalStrokesMixin , IndividualStrokesMixin , MinimalFillsMixin , GeometryMixin , CornerMixin , RectangleCornerMixin , ExportMixin , FramePrototypingMixin , VectorLikeMixin , ReactionMixin , DocumentationLink , PublishableMixin , DefaultShapeMixin , BaseFrameMixin , DefaultFrameMixin , OpaqueNodeMixin , MinimalBlendMixin , Annotation , AnnotationProperty , AnnotationPropertyType , AnnotationsMixin , Measurement , MeasurementSide , MeasurementOffset , MeasurementsMixin , VariantMixin , ComponentPropertiesMixin , NonResizableTextMixin , TextSublayerNode , DocumentNode , ExplicitVariableModesMixin , PageNode , FrameNode , GroupNode , SliceNode , RectangleNode , LineNode , EllipseNode , PolygonNode , StarNode , VectorNode , TextNode , ComponentPropertyType , InstanceSwapPreferredValue , ComponentPropertyOptions , ComponentPropertyDefinitions , ComponentSetNode , ComponentNode , ComponentProperties , InstanceNode , BooleanOperationNode , StickyNode , StampNode , TableNode , TableCellNode , HighlightNode , WashiTapeNode , ShapeWithTextNode , CodeBlockNode , LabelSublayerNode , ConnectorNode , VariableResolvedDataType , VariableAlias , VariableValue , VariableScope , CodeSyntaxPlatform , Variable , VariableCollection , WidgetNode , EmbedData , EmbedNode , LinkUnfurlData , LinkUnfurlNode , MediaData , MediaNode , SectionNode , SlideNode , SlideRowNode , SlideGridNode , InteractiveSlideElementNode , SlideTransition , BaseNode , SceneNode , NodeType , StyleType , InheritedStyleField , StyleConsumers , BaseStyleMixin , PaintStyle , TextStyle , EffectStyle , GridStyle , BaseStyle , Image , Video , BaseUser , User , ActiveUser , FindAllCriteria }
2820+ export { ArgFreeEventType , PluginAPI , VersionHistoryResult , VariablesAPI , LibraryVariableCollection , LibraryVariable , AnnotationsAPI , TeamLibraryAPI , PaymentStatus , PaymentsAPI , ClientStorageAPI , NotificationOptions , NotifyDequeueReason , NotificationHandler , ShowUIOptions , UIPostMessageOptions , OnMessageProperties , MessageEventHandler , UIAPI , UtilAPI , ColorPalette , ColorPalettes , ConstantsAPI , CodegenEvent , CodegenPreferences , CodegenPreferencesEvent , CodegenResult , CodegenAPI , DevResource , DevResourceWithNodeId , LinkPreviewEvent , PlainTextElement , LinkPreviewResult , AuthEvent , DevResourceOpenEvent , AuthResult , VSCodeAPI , DevResourcesAPI , TimerAPI , ViewportAPI , TextReviewAPI , ParameterValues , SuggestionResults , ParameterInputEvent , ParametersAPI , RunParametersEvent , OpenDevResourcesEvent , RunEvent , SlidesViewChangeEvent , DropEvent , DropItem , DropFile , DocumentChangeEvent , StyleChangeEvent , StyleChange , BaseDocumentChange , BaseNodeChange , RemovedNode , CreateChange , DeleteChange , PropertyChange , BaseStyleChange , StyleCreateChange , StyleDeleteChange , StylePropertyChange , DocumentChange , NodeChangeProperty , NodeChangeEvent , NodeChange , StyleChangeProperty , TextReviewEvent , TextReviewRange , Transform , Vector , Rect , RGB , RGBA , FontName , TextCase , TextDecoration , TextDecorationStyle , TextDecorationOffset , TextDecorationThickness , TextDecorationColor , OpenTypeFeature , ArcData , DropShadowEffect , InnerShadowEffect , BlurEffect , Effect , ConstraintType , Constraints , ColorStop , ImageFilters , SolidPaint , GradientPaint , ImagePaint , VideoPaint , Paint , Guide , RowsColsLayoutGrid , GridLayoutGrid , LayoutGrid , ExportSettingsConstraints , ExportSettingsImage , ExportSettingsSVGBase , ExportSettingsSVG , ExportSettingsSVGString , ExportSettingsPDF , ExportSettingsREST , ExportSettings , WindingRule , VectorVertex , VectorSegment , VectorRegion , VectorNetwork , VectorPath , VectorPaths , LetterSpacing , LineHeight , LeadingTrim , HyperlinkTarget , TextListOptions , BlendMode , MaskType , Font , TextStyleOverrideType , StyledTextSegment , Reaction , VariableDataType , ExpressionFunction , Expression , VariableValueWithExpression , VariableData , ConditionalBlock , DevStatus , Action , SimpleTransition , DirectionalTransition , Transition , Trigger , Navigation , Easing , EasingFunctionBezier , EasingFunctionSpring , OverflowDirection , OverlayPositionType , OverlayBackground , OverlayBackgroundInteraction , PublishStatus , ConnectorEndpointPosition , ConnectorEndpointPositionAndEndpointNodeId , ConnectorEndpointEndpointNodeIdAndMagnet , ConnectorEndpoint , ConnectorStrokeCap , BaseNodeMixin , PluginDataMixin , DevResourcesMixin , DevStatusMixin , SceneNodeMixin , VariableBindableNodeField , VariableBindableTextField , VariableBindablePaintField , VariableBindablePaintStyleField , VariableBindableColorStopField , VariableBindableEffectField , VariableBindableEffectStyleField , VariableBindableLayoutGridField , VariableBindableGridStyleField , VariableBindableComponentPropertyField , VariableBindableComponentPropertyDefinitionField , StickableMixin , ChildrenMixin , ConstraintMixin , DimensionAndPositionMixin , LayoutMixin , AspectRatioLockMixin , BlendMixin , ContainerMixin , DeprecatedBackgroundMixin , StrokeCap , StrokeJoin , HandleMirroring , AutoLayoutMixin , AutoLayoutChildrenMixin , InferredAutoLayoutResult , DetachedInfo , MinimalStrokesMixin , IndividualStrokesMixin , MinimalFillsMixin , GeometryMixin , CornerMixin , RectangleCornerMixin , ExportMixin , FramePrototypingMixin , VectorLikeMixin , ReactionMixin , DocumentationLink , PublishableMixin , DefaultShapeMixin , BaseFrameMixin , DefaultFrameMixin , OpaqueNodeMixin , MinimalBlendMixin , Annotation , AnnotationProperty , AnnotationPropertyType , AnnotationsMixin , Measurement , MeasurementSide , MeasurementOffset , MeasurementsMixin , VariantMixin , ComponentPropertiesMixin , NonResizableTextMixin , TextSublayerNode , DocumentNode , ExplicitVariableModesMixin , PageNode , FrameNode , GroupNode , SliceNode , RectangleNode , LineNode , EllipseNode , PolygonNode , StarNode , VectorNode , TextNode , ComponentPropertyType , InstanceSwapPreferredValue , ComponentPropertyOptions , ComponentPropertyDefinitions , ComponentSetNode , ComponentNode , ComponentProperties , InstanceNode , BooleanOperationNode , StickyNode , StampNode , TableNode , TableCellNode , HighlightNode , WashiTapeNode , ShapeWithTextNode , CodeBlockNode , LabelSublayerNode , ConnectorNode , VariableResolvedDataType , VariableAlias , VariableValue , VariableScope , CodeSyntaxPlatform , Variable , VariableCollection , AnnotationCategoryColor , AnnotationCategory , WidgetNode , EmbedData , EmbedNode , LinkUnfurlData , LinkUnfurlNode , MediaData , MediaNode , SectionNode , SlideNode , SlideRowNode , SlideGridNode , InteractiveSlideElementNode , SlideTransition , BaseNode , SceneNode , NodeType , StyleType , InheritedStyleField , StyleConsumers , BaseStyleMixin , PaintStyle , TextStyle , EffectStyle , GridStyle , BaseStyle , Image , Video , BaseUser , User , ActiveUser , FindAllCriteria }
0 commit comments