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

@shopify/app-bridge

Package Overview
Dependencies
Maintainers
10
Versions
322
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/app-bridge - npm Package Compare versions

Comparing version 0.7.3 to 0.8.0

actions/Toast/actions.d.ts

33

actions/Flash/actions.d.ts

@@ -5,32 +5,7 @@ /**

import { ClientApplication } from '../../client';
import { ActionSet } from '../helper';
import { ActionSetProps, Group, MetaAction } from '../types';
import { ErrorAction } from '../Error';
import { Action, ActionType, ClearPayload, Options, Payload } from './types';
export interface ActionBase extends MetaAction {
readonly group: typeof Group.Flash;
import { Toast } from '../Toast';
import { Options } from '../Toast/types';
export { ActionBase, clear, ClearAction, show, ShowAction, ToastAction as FlashAction, validationError } from '../Toast';
export declare class Flash extends Toast {
}
export interface ShowAction extends ActionBase {
readonly type: typeof ActionType.SHOW;
readonly payload: Payload;
}
export interface ClearAction extends ActionBase {
readonly type: typeof ActionType.CLEAR;
}
export declare type FlashAction = ShowAction | ClearAction | MetaAction;
export declare function show(flashMessage: Payload): ShowAction;
export declare function clear(payload: ClearPayload): ClearAction;
export declare function validationError(action: ShowAction | ClearAction | MetaAction): undefined | ErrorAction;
export declare class Flash extends ActionSet implements ActionSetProps<Options, Payload> {
message: string;
isDismissible?: boolean;
duration: number;
isError?: boolean;
constructor(app: ClientApplication<any>, options: Options);
readonly options: Options;
readonly payload: Payload;
set(options: Partial<Options>): this;
dispatch(action: Action): this;
private validateOptions(options);
}
export declare function create(app: ClientApplication<any>, options: Options): Flash;
export * from './actions';
export * from './types';
export * from '../Toast/types';

@@ -15,3 +15,4 @@ export * from './types';

import * as TitleBar from './TitleBar';
import * as Toast from './Toast';
import { isAppBridgeAction } from './validator';
export { isAppBridgeAction, Button, ButtonGroup, Cart, Error, Flash, Navigation, History, Loading, Modal, Print, Redirect, ResourcePicker, TitleBar };
export { isAppBridgeAction, Button, ButtonGroup, Cart, Error, Flash, Toast, Navigation, History, Loading, Modal, Print, Redirect, ResourcePicker, TitleBar };

@@ -12,3 +12,3 @@ /**

Error = "Error",
Flash = "Flash",
Toast = "Toast",
Loading = "Loading",

@@ -15,0 +15,0 @@ Modal = "Modal",

@@ -6,2 +6,18 @@ # Change Log

<a name="0.8.0"></a>
# [0.8.0](https://github.com/Shopify/app-bridge/compare/@shopify/app-bridge@0.7.3...@shopify/app-bridge@0.8.0) (2018-10-29)
### Bug Fixes
* update the History action docs to be more accurate ([f9075da](https://github.com/Shopify/app-bridge/commit/f9075da))
### Features
* **toast:** changed Toast into Flash ([#457](https://github.com/Shopify/app-bridge/issues/457)) ([5d8aa15](https://github.com/Shopify/app-bridge/commit/5d8aa15))
<a name="0.7.3"></a>

@@ -8,0 +24,0 @@ ## [0.7.3](https://github.com/Shopify/app-bridge/compare/@shopify/app-bridge@0.7.2...@shopify/app-bridge@0.7.3) (2018-10-15)

{
"name": "@shopify/app-bridge",
"version": "0.7.3",
"version": "0.8.0",
"types": "index.d.ts",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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