0.2.269 • Published 8 months ago

@esoptra/zaza-bridge-sdk v0.2.269

Weekly downloads
710
License
-
Repository
github
Last release
8 months ago

ZAZA.rocks Bridge SDK

The ZAZA bridge SDK allows a ZAZA.rocks website-in-a-bag to interact with the ZAZA.rocks framework. This provides you with information about the currently active view and allows you to access built-in functionality such as file previewer and feedback mechanisms.

Browser

The latest Bridge SDK is hosted at: https://zaza.rocks/sdk/v1/bridge/bridge.js

When creating a website-in-a-bag you can easily import the SDK using the following script tag:

<script src="/sdk/v1/bridge/bridge.js" charset="utf-8"></script>

Once the Bridge SDK is included it becomes available as a global Bridge object. A common use-case for the bridge SDK is to figure out the active view QID. This is done as follows:

const viewId = await Bridge.View.getId()

NPM

You can also install the library using NPM:

npm i @esoptra/zaza-bridge-sdk

This allows you to import each object separately:

import { View } from '@esoptra/zaza-bridge-sdk'

const viewId = await View.getId()

Alternatively, you can emulate the browser API by importing the entire package:

import * as Bridge from '@esoptra/zaza-bridge-sdk'

const viewId = await Bridge.View.getId()

Examples

Please refer to the esoptra/zaza-examples repository for examples of both the ZAZA and ZAZA Bridge SDKs.

Documentation

The ZAZA.rocks documentation is available at https://help.zaza.rocks.

0.2.269

8 months ago

0.2.262

1 year ago

0.2.261

1 year ago

0.2.256

1 year ago

0.2.255

1 year ago

0.2.252

1 year ago

0.2.216

2 years ago

0.2.189

2 years ago

0.2.207

2 years ago

0.2.200

2 years ago

0.2.194

2 years ago

0.2.193

2 years ago

0.2.192

2 years ago

0.2.185

2 years ago

0.2.171

2 years ago

0.2.165

2 years ago

0.2.164

2 years ago

0.2.156

2 years ago

0.2.154

2 years ago

0.2.130

2 years ago

0.2.124

3 years ago

0.2.112

3 years ago

0.2.103

3 years ago

0.2.97

3 years ago

0.2.95

3 years ago

0.2.91

3 years ago

0.2.90

3 years ago

0.2.88

3 years ago

0.2.80

3 years ago

0.2.70

3 years ago

0.2.69

3 years ago

0.2.64

3 years ago

0.2.58

3 years ago

0.2.57

3 years ago

0.2.36

3 years ago

0.2.35

3 years ago

0.2.28

3 years ago

0.2.20

3 years ago

0.2.19

3 years ago

0.2.18

3 years ago

0.2.15

3 years ago

0.2.13

3 years ago

0.2.10

3 years ago

0.2.8

3 years ago

0.2.3

3 years ago

0.2.4

3 years ago

0.2.0

3 years ago

0.1.25

3 years ago

0.1.24

3 years ago

0.1.23

3 years ago

0.1.21

3 years ago

0.1.22

3 years ago

0.1.20

3 years ago

0.1.19

3 years ago

0.1.18

4 years ago

0.1.17

4 years ago

0.1.15

4 years ago

0.1.16

4 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.8

4 years ago

0.1.9

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.0

4 years ago