@slack/types
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -29,4 +29,4 @@ export interface Dialog { | ||
export interface View { | ||
title: PlainTextElement; | ||
type: 'modal'; | ||
title?: PlainTextElement; | ||
type: 'home' | 'modal'; | ||
blocks: (KnownBlock | Block)[]; | ||
@@ -45,6 +45,2 @@ callback_id?: string; | ||
} | ||
export interface UserElement { | ||
type: 'user'; | ||
user_id: string; | ||
} | ||
export interface PlainTextElement { | ||
@@ -174,2 +170,8 @@ type: 'plain_text'; | ||
} | ||
export interface RadioButtons extends Action { | ||
type: 'radio_buttons'; | ||
initial_option?: Option; | ||
options: Option[]; | ||
confirm?: Confirm; | ||
} | ||
export interface PlainTextInput extends Action { | ||
@@ -196,7 +198,7 @@ type: 'plain_text_input'; | ||
type: 'context'; | ||
elements: (ImageElement | UserElement | PlainTextElement | MrkdwnElement)[]; | ||
elements: (ImageElement | PlainTextElement | MrkdwnElement)[]; | ||
} | ||
export interface ActionsBlock extends Block { | ||
type: 'actions'; | ||
elements: (Button | Overflow | Datepicker | Select | Action)[]; | ||
elements: (Button | Overflow | Datepicker | Select | RadioButtons | Action)[]; | ||
} | ||
@@ -203,0 +205,0 @@ export interface DividerBlock extends Block { |
{ | ||
"name": "@slack/types", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Shared type definitions for the Node Slack SDK", | ||
@@ -42,3 +42,4 @@ "author": "Slack Technologies, Inc.", | ||
"typescript": "^3.3.3333" | ||
} | ||
}, | ||
"gitHead": "bc2f0d72b0466c202f2c13623c972f1b50a4699d" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
18315
7
284