0.2.96-TWINTAG-1583-richtext-cbdfaf55e671902fe920fb25f9e5726d9fa8dde7 • Published 4 years ago

@esoptra/zaza-bridge-sdk v0.2.96-TWINTAG-1583-richtext-cbdfaf55e671902fe920fb25f9e5726d9fa8dde7

Weekly downloads
710
License
-
Repository
github
Last release
4 years 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.280

10 months ago

0.2.269

2 years ago

0.2.262

2 years ago

0.2.261

2 years ago

0.2.256

2 years ago

0.2.255

2 years ago

0.2.252

2 years ago

0.2.216

3 years ago

0.2.189

3 years ago

0.2.207

3 years ago

0.2.200

3 years ago

0.2.194

3 years ago

0.2.193

3 years ago

0.2.192

3 years ago

0.2.185

3 years ago

0.2.171

3 years ago

0.2.165

3 years ago

0.2.164

3 years ago

0.2.156

3 years ago

0.2.154

3 years ago

0.2.130

3 years ago

0.2.124

3 years ago

0.2.112

3 years ago

0.2.103

4 years ago

0.2.97

4 years ago

0.2.95

4 years ago

0.2.91

4 years ago

0.2.90

4 years ago

0.2.88

4 years ago

0.2.80

4 years ago

0.2.70

4 years ago

0.2.69

4 years ago

0.2.64

4 years ago

0.2.58

4 years ago

0.2.57

4 years ago

0.2.36

4 years ago

0.2.35

4 years ago

0.2.28

4 years ago

0.2.20

4 years ago

0.2.19

4 years ago

0.2.18

4 years ago

0.2.15

4 years ago

0.2.13

4 years ago

0.2.10

4 years ago

0.2.8

4 years ago

0.2.3

4 years ago

0.2.4

4 years ago

0.2.0

4 years ago

0.1.25

4 years ago

0.1.24

4 years ago

0.1.23

4 years ago

0.1.21

4 years ago

0.1.22

4 years ago

0.1.20

4 years ago

0.1.19

4 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

5 years ago

0.1.10

5 years ago

0.1.8

5 years ago

0.1.9

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.0

5 years ago