@shopify/app-bridge
Advanced tools
Comparing version 3.4.3 to 3.4.4-alpha.0
@@ -31,3 +31,3 @@ import { ClientApplication } from '../../client'; | ||
name: string; | ||
initials: string; | ||
initials?: string; | ||
source: string; | ||
@@ -34,0 +34,0 @@ } |
@@ -0,5 +1,6 @@ | ||
import { Action as AppBridgeRedirectAction } from '../Navigation/Redirect'; | ||
import { ClientApplication } from '../../client'; | ||
import { ActionSetWithChildren } from '../ActionSet'; | ||
import { Button, Payload as ButtonPayload } from '../Button'; | ||
import { ButtonGroup, Payload as ButtonGroupPayload } from '../ButtonGroup'; | ||
import { ClientApplication } from '../../client'; | ||
import { ActionSetWithChildren } from '../ActionSet'; | ||
import { ActionSetProps, ClickAction, Group, MetaAction } from '../types'; | ||
@@ -45,2 +46,39 @@ export declare enum Action { | ||
export declare function update(payload: Payload): UpdateAction; | ||
export declare type Target = Exclude<keyof typeof AppBridgeRedirectAction, 'ADMIN_SECTION'>; | ||
export interface ActionProps { | ||
/** Content the action displays */ | ||
content?: string; | ||
/** Should the action be styled as destructive */ | ||
destructive?: boolean; | ||
/** Should the action be disabled */ | ||
disabled?: boolean; | ||
/** Should the action be loading */ | ||
loading?: boolean; | ||
/** Forces url to open in a new tab */ | ||
external?: boolean; | ||
/** Use Polaris plain styling */ | ||
plain?: boolean; | ||
/** | ||
* Where to display the target link | ||
* @default 'APP' | ||
*/ | ||
target?: Target; | ||
/** A destination to link to */ | ||
url?: string; | ||
id: string; | ||
/** Callback when an action takes place */ | ||
onAction?(): void; | ||
} | ||
export declare type DeepPartial<T> = T extends object ? { | ||
[P in keyof T]?: DeepPartial<T[P]>; | ||
} : T; | ||
export interface UpdatePayload { | ||
readonly id?: string; | ||
title?: string; | ||
buttons?: ButtonsPayload; | ||
breadcrumb?: ButtonPayload; | ||
} | ||
export interface TitleBarApi { | ||
update: (payload: DeepPartial<Payload>) => void; | ||
} | ||
export declare class TitleBar extends ActionSetWithChildren implements ActionSetProps<Options, Payload> { | ||
@@ -47,0 +85,0 @@ title?: string; |
@@ -30,2 +30,3 @@ "use strict"; | ||
exports.create = exports.TitleBar = exports.update = exports.clickBreadcrumb = exports.clickActionButton = exports.Action = void 0; | ||
var ActionSet_1 = require("../ActionSet"); | ||
var Button_1 = require("../Button"); | ||
@@ -36,3 +37,2 @@ var ButtonGroup_1 = require("../ButtonGroup"); | ||
var helper_1 = require("../helper"); | ||
var ActionSet_1 = require("../ActionSet"); | ||
var types_1 = require("../types"); | ||
@@ -39,0 +39,0 @@ var Action; |
{ | ||
"name": "@shopify/app-bridge", | ||
"version": "3.4.3", | ||
"version": "3.4.4-alpha.0", | ||
"types": "index.d.ts", | ||
@@ -57,3 +57,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "2b27d049effc97fce4b053bf8da259424fc53808" | ||
"gitHead": "35a8370f791de6d6acceb1290f00b0a317fc41c0" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
984660
20214
1