Skip to content

SallaApp/embedded-sdk-playground

Repository files navigation

Embedded SDK Playground v0.2.3

A developer testing tool for the Salla Embedded SDK.

Overview

This test console allows you to simulate and debug the communication between an embedded third-party app (iframe) and the Salla Dashboard (host). It sends and receives events using the @salla.sa/embedded-sdk package.

Bootstrap Flow

The test console demonstrates the complete authentication flow:

1. embedded.init() - Initialize SDK and get layout info
2. embedded.auth.getToken() - Get token from URL (?token=XXX)
3. Verify token with Salla API
4. embedded.ready() - Signal app is ready (removes host loading)
   OR embedded.destroy() - Exit embedded view

Usage

  1. Add the deployment link for this app to your test app in Salla Partners
  2. "Run App" from the installed app page in merchant dashboard
  3. The console will auto-run the bootstrap flow
  4. Use the buttons to trigger and test the available events, or use the playground to test through code
  5. You can monitor the message log for incoming/outgoing events

Development

# Install dependencies
pnpm install

# Start dev server
pnpm dev

# Build for production
pnpm build

License

MIT

About

UI testing playground app for embedded-sdk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors