Skip to content

베타

이 App Bridge 컴포넌트는 새로 추가되었으며, 베타 기간에는 마이너 릴리스에서 API가 바뀔 수 있습니다. 동작은 로컬 E2E 스위트가 실제 Shopify admin에서 확인합니다. 문제가 있으면 issue를 등록해 주세요.

App Bridge 타입 ​

App Bridge 페이지에서 사용하는 타입과 이 타입들이 참조하는 모든 타입으로, @shopify/app-bridge-types 0.7.5에서 가져왔습니다. polaris-vue-elements/app-bridge는 패키지가 export하는 타입을 다시 export합니다. 설명은 Shopify의 JSDoc 그대로이며 영어로 되어 있습니다.

페이지 ​

ShopifyGlobal ​

interface

가져오기: import type { ShopifyGlobal } from 'polaris-vue-elements/app-bridge'

config: AppBridgeConfig

타입에 설명이 없습니다.

origin: string

타입에 설명이 없습니다.

ready: Promise<void>

타입에 설명이 없습니다.

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

타입에 설명이 없습니다.

loading: LoadingApi

타입에 설명이 없습니다.

idToken: IdTokenApi

타입에 설명이 없습니다.

user: UserApi

타입에 설명이 없습니다.

toast: ToastApi

타입에 설명이 없습니다.

resourcePicker: ResourcePickerApi

타입에 설명이 없습니다.

scanner: ScannerApi

타입에 설명이 없습니다.

modal: ModalApi

타입에 설명이 없습니다.

saveBar: SaveBarApi

타입에 설명이 없습니다.

pos: PosApi

타입에 설명이 없습니다.

intents: IntentsApi

타입에 설명이 없습니다.

webVitals: WebVitalsApi

타입에 설명이 없습니다.

support: SupportApi

타입에 설명이 없습니다.

reviews: ReviewsApi

타입에 설명이 없습니다.

appEvents: AppEventsApi

Emits app events for the app's Dev Dashboard.

scopes: Scopes

타입에 설명이 없습니다.

picker: PickerApi

타입에 설명이 없습니다.

app: AppApi

타입에 설명이 없습니다.

shopifyQL: ShopifyQLApi

타입에 설명이 없습니다.

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.

사용처: useAppBridge()

A–Z 색인 ​

MIT 라이선스로 배포됩니다. Vue 로고: Evan You, CC BY-NC-SA 4.0.