Skip to content

Beta

Estes componentes do App Bridge são novos, e a API deles pode mudar em uma versão minor durante o beta. O comportamento deles é verificado em um admin da Shopify real por uma suíte E2E local. Se algo não funcionar, abra uma issue.

Tipos do App Bridge ​

Os tipos usados nas páginas do App Bridge, e todos os tipos a que eles fazem referência, de @shopify/app-bridge-types 0.7.5. polaris-vue-elements/app-bridge reexporta os que o pacote exporta. As descrições são o próprio JSDoc da Shopify, em inglês.

Páginas ​

ShopifyGlobal ​

interface

Importação: import type { ShopifyGlobal } from 'polaris-vue-elements/app-bridge'

config: AppBridgeConfig

Não descrito nos tipos.

origin: string

Não descrito nos tipos.

ready: Promise<void>

Não descrito nos tipos.

setSignals(RealSignal: any): void

Registers a signals implementation (e.g. from @preact/signals) so that reactive values returned by App Bridge use the app's own Signal class instead of the built-in lightweight shim. Any signals created before this call are migrated to the provided implementation.

environment: EnvironmentApi

Não descrito nos tipos.

loading: LoadingApi

Não descrito nos tipos.

idToken: IdTokenApi

Não descrito nos tipos.

user: UserApi

Não descrito nos tipos.

toast: ToastApi

Não descrito nos tipos.

resourcePicker: ResourcePickerApi

Não descrito nos tipos.

scanner: ScannerApi

Não descrito nos tipos.

modal: ModalApi

Não descrito nos tipos.

saveBar: SaveBarApi

Não descrito nos tipos.

pos: PosApi

Não descrito nos tipos.

intents: IntentsApi

Não descrito nos tipos.

webVitals: WebVitalsApi

Não descrito nos tipos.

support: SupportApi

Não descrito nos tipos.

reviews: ReviewsApi

Não descrito nos tipos.

appEvents: AppEventsApi

Emits app events for the app's Dev Dashboard.

scopes: Scopes

Não descrito nos tipos.

picker: PickerApi

Não descrito nos tipos.

app: AppApi

Não descrito nos tipos.

shopifyQL: ShopifyQLApi

Não descrito nos tipos.

sidekick: SidekickApi

Start Sidekick conversations for the merchant from your app.

shopify.sidekick is always defined, but its methods reject when Sidekick isn't available to the app, for example in the Shopify mobile app or on a store without Sidekick. Feature-detect with isEnabled() and treat a rejection as unavailable.

tools: Tools

Entry point for Shopify tools.

Enables apps to bind runtime handler functions for tools already declared in app extension configuration, which can be invoked by the platform on behalf of the app. Registered tools are scoped to the current app and persist for the lifetime of the app or until explicitly removed.

Usado em: useAppBridge()

Índice A–Z ​

Lançado sob a licença MIT. Logo do Vue por Evan You, CC BY-NC-SA 4.0.