Socket
Book a DemoInstallSign in
Socket

@nautical-commerce/app-bridge

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nautical-commerce/app-bridge

App bridge for Nautical Commerce dashboard embeds

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
3
Created
Source

Nautical App Bridge

This repository builds the @nautical-commerce/app-bridge npm package. This package is used to provide a shared context between the Nautical Admin Dashboard and a dashboard app integration hosted in an iframe.

Events

Events are messages that are sent downwards into the app iframe from the dashboard. The possible events that can be sent are:

EventUse
EventType.CommandResponseSent in response to a Command being received by the dashboard.
EventType.InitProvides initialization data to the app bridge from the dashboard

Commands

Commands are messages that are sent upwards from the app iframe to the dashboard. The possible commands that can be sent:

CommandUse
CommandType.ReadyNotify the dashboard that the app is ready. Will result in an EventType.Init event being sent
CommandType.CloseAsk the dashboard to close the modal hosting the iframe
CommandType.NotificationSend a notification to the dashboard for display to the user

FAQs

Package last updated on 24 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts