Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dlghq/dialog-types

Package Overview
Dependencies
Maintainers
6
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dlghq/dialog-types - npm Package Compare versions

Comparing version 1.29.0 to 1.30.0

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc