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.3.0 to 0.4.0

26

actions/ResourcePicker/actions.d.ts

@@ -8,3 +8,3 @@ /**

import { ActionSetProps, Group, MetaAction } from '../types';
import { Action, ActionType, BaseOptions, ClosePayload, Options, Payload, ResourceSelection, ResourceType, SelectPayload } from './types';
import { Action, ActionType, BaseOptions, ClosePayload, Options, Payload, ProductOptions, ResourceSelection, ResourceType, SelectPayload } from './types';
export declare const GROUP: Group;

@@ -35,25 +35,19 @@ export interface ActionBase extends MetaAction {

export declare function validationError(action: ResourcePickerAction): undefined | ErrorAction;
export declare class ResourcePicker extends ActionSet implements ActionSetProps<Options, Payload> {
export declare class ResourcePicker extends ActionSet implements ActionSetProps<Options | ProductOptions, Payload> {
readonly resourceType: ResourceType;
initialQuery?: string;
title?: string;
selectMultiple?: boolean;
selection: ResourceSelection[];
showHidden?: boolean;
selection: ResourceSelection[];
constructor(app: ClientApplication<any>, options: Options, resourceType: ResourceType);
showVariants?: boolean;
constructor(app: ClientApplication<any>, options: Options | ProductOptions, resourceType: ResourceType);
readonly payload: {
id: string;
resourceType: ResourceType;
initialQuery: string | undefined;
selectMultiple: boolean | undefined;
showHidden: boolean | undefined;
title: string | undefined;
initialQuery?: string | undefined;
showHidden?: boolean | undefined;
selectMultiple?: boolean | undefined;
};
readonly options: {
initialQuery: string | undefined;
selectMultiple: boolean | undefined;
showHidden: boolean | undefined;
title: string | undefined;
};
set(options: Partial<Options>, shouldUpdate?: boolean): this;
readonly options: Options;
set(options: Partial<Options | ProductOptions>, shouldUpdate?: boolean): this;
dispatch(action: Action, selection?: ResourceSelection[]): this;

@@ -60,0 +54,0 @@ protected update(): void;

@@ -138,3 +138,2 @@ /**

initialQuery?: string;
title?: string;
selectMultiple?: boolean;

@@ -151,9 +150,11 @@ showHidden?: boolean;

initialQuery?: string;
title?: string;
showHidden?: boolean;
selectMultiple?: boolean;
}
export interface ProductOptions extends Options {
showVariants?: boolean;
}
export interface BaseOptions {
resourceType: ResourceType;
options: Options;
options?: Options | ProductOptions;
}

@@ -160,0 +161,0 @@ export declare enum ResourceType {

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

<a name="0.4.0"></a>
# [0.4.0](https://github.com/Shopify/app-bridge/compare/@shopify/app-bridge@0.3.0...@shopify/app-bridge@0.4.0) (2018-10-09)
### Bug Fixes
* fix CHANGELOG ([#412](https://github.com/Shopify/app-bridge/issues/412)) ([adbbd64](https://github.com/Shopify/app-bridge/commit/adbbd64))
### Features
* **resource picker:** show variant option ([19e63b7](https://github.com/Shopify/app-bridge/commit/19e63b7))
<a name="0.3.0"></a>

@@ -35,2 +51,4 @@ ## [0.3.0](https://github.com/Shopify/app-bridge/compare/@shopify/app-bridge@0.2.3...@shopify/app-bridge@0.3.0) (2018-10-02)

* allow linting of publish commits ([9cc6a00](https://github.com/Shopify/app-bridge/commit/9cc6a00))
* enhance product picker playground ([c3f7a0d](https://github.com/Shopify/app-bridge/commit/c3f7a0d))
* fix cart actions and tests ([#395](https://github.com/Shopify/app-bridge/issues/395)) ([d570be1](https://github.com/Shopify/app-bridge/commit/d570be1))

@@ -61,2 +79,3 @@

* change POS cart actions to follow new dispatch pattern ([32a0c03](https://github.com/Shopify/app-bridge/commit/32a0c03))
* add commitlint ([d3325cf](https://github.com/Shopify/app-bridge/commit/d3325cf))

@@ -63,0 +82,0 @@

{
"name": "@shopify/app-bridge",
"version": "0.3.0",
"version": "0.4.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