0.2.34 • Published 1 year ago

@advanced-rest-client/arc-events v0.2.34

Weekly downloads
581
License
Apache-2.0
Repository
github
Last release
1 year ago

Advanced REST Client events

A library adding events and type definitions to Advanced REST Client. Use this library when building a component that triggers the navigation via DOM events.

Published on NPM

tests

Usage

Installation

npm install --save @advanced-rest-client/events

ARC request navigate event

Dispatched to navigate to a request screen and open a request

import { ARCNavigationEvent } from '@advanced-rest-client/events';

ARCNavigationEvent.navigateRequest(document.body, 'request id', 'saved');

REST API navigate event

Dispatched to navigate to a REST API either as the API Console or to project metadata screen.

import { ARCNavigationEvent } from '@advanced-rest-client/events';

ARCNavigationEvent.navigateRestApi(document.body, 'api id', '1.0.0', 'documentation or detail');

Project navigate event

Dispatched to navigate to an ARC project screen.

import { ARCNavigationEvent } from '@advanced-rest-client/events';

ARCNavigationEvent.navigateProject(document.body, 'project id', 'detail');

Other navigation events

Other events are dispatched via ARCNavigationEvent.navigate() helper function as a general purpose navigation event. It contains the base route and optional route options.

import { ARCNavigationEvent } from '@advanced-rest-client/events';

ARCNavigationEvent.navigate(document.body, 'request', {
  // route params.
});

Development

git clone https://github.com/advanced-rest-client/events
cd events
npm install

Running the tests

npm test
0.2.34

1 year ago

0.2.33

1 year ago

0.2.21

3 years ago

0.2.20

3 years ago

0.2.19

3 years ago

0.2.18

3 years ago

0.2.17

3 years ago

0.2.16

3 years ago

0.2.15

3 years ago

0.2.14

3 years ago

0.2.13

3 years ago

0.2.12

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago