@dlghq/dialog-types
Advanced tools
Comparing version 1.29.0 to 1.30.0
{ | ||
"name": "@dlghq/dialog-types", | ||
"version": "1.29.0", | ||
"version": "1.30.0", | ||
"description": "Flow types for dialog projects", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -11,10 +11,2 @@ /* | ||
import type { | ||
BotApiActionConfirm, | ||
BotApiActionButton, | ||
BotApiSelectOption, | ||
BotApiSelectOptionGroup, | ||
BotApiActionSelect, | ||
BotApiAttachmentAction | ||
} from './bot-api'; | ||
import type { | ||
MessageMedia, | ||
@@ -24,3 +16,10 @@ MessageMediaImage, | ||
MessageMediaWebsite, | ||
MessageMediaInteractive | ||
MessageMediaInteractive, | ||
MessageMediaInteractiveButton, | ||
MessageMediaInteractiveSelectOption, | ||
MessageMediaInteractiveSelect, | ||
MessageMediaInteractiveWidget, | ||
MessageMediaInteractiveConfirm, | ||
MessageMediaInteractiveStyle, | ||
MessageMediaInteractiveAction | ||
} from './message-media'; | ||
@@ -32,9 +31,2 @@ | ||
BotApiActionConfirm, | ||
BotApiActionButton, | ||
BotApiSelectOption, | ||
BotApiSelectOptionGroup, | ||
BotApiActionSelect, | ||
BotApiAttachmentAction, | ||
MessageMedia, | ||
@@ -44,3 +36,10 @@ MessageMediaImage, | ||
MessageMediaWebsite, | ||
MessageMediaInteractive | ||
MessageMediaInteractive, | ||
MessageMediaInteractiveButton, | ||
MessageMediaInteractiveSelectOption, | ||
MessageMediaInteractiveSelect, | ||
MessageMediaInteractiveWidget, | ||
MessageMediaInteractiveConfirm, | ||
MessageMediaInteractiveStyle, | ||
MessageMediaInteractiveAction | ||
}; | ||
@@ -47,0 +46,0 @@ |
@@ -6,4 +6,2 @@ /* | ||
import type { BotApiAttachment } from './bot-api'; | ||
export type MessageMediaImage = { | ||
@@ -44,5 +42,43 @@ type: 'image', | ||
export type MessageMediaInteractiveButton = { | ||
type: 'button', | ||
value: string, | ||
label?: ?string | ||
}; | ||
export type MessageMediaInteractiveSelectOption = { | ||
value: string, | ||
label: string | ||
} | ||
export type MessageMediaInteractiveSelect = { | ||
type: 'select', | ||
options: MessageMediaInteractiveSelectOption[], | ||
label?: ?string, | ||
defaultValue?: ?string | ||
}; | ||
export type MessageMediaInteractiveWidget = | ||
| MessageMediaInteractiveButton | ||
| MessageMediaInteractiveSelect; | ||
export type MessageMediaInteractiveConfirm = { | ||
text?: ?string, | ||
title?: ?string, | ||
ok?: ?string, | ||
dismiss?: ?string | ||
}; | ||
export type MessageMediaInteractiveStyle = 'primary' | 'danger' | 'default'; | ||
export type MessageMediaInteractiveAction = { | ||
id: string, | ||
style?: ?MessageMediaInteractiveStyle, | ||
widget: MessageMediaInteractiveWidget, | ||
confirm?: ?MessageMediaInteractiveConfirm | ||
}; | ||
export type MessageMediaInteractive = { | ||
type: 'interactive', | ||
content: BotApiAttachment | ||
content: MessageMediaInteractiveAction[] | ||
}; | ||
@@ -49,0 +85,0 @@ |
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
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
22582
8
529