0.0.4 • Published 4 years ago

@capsulajs/capsulahub-widget-request-form v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Widget Request Form

Widget item extension, that provides a webComponent with an editor, that allows to create JS or JSON code snippets.

TODO

Prepare the bootstrap of the extension

Install

NPM

To install the package from NPM registry you should run

yarn add @capsulajs/capsulahub-widget-request-form

or

npm install @capsulajs/capsulahub-widget-request-form

CDN

You can get the default export from the link

https://capsulajs.s3.amazonaws.com/develop/capsulahub-widget-request-form/index.js

WorkspaceConfiguration example

{
  "components": {
    "layouts": {},
    "items": {
      "web-request-form": {
        "componentName": "web-request-form",
        "path": "https://capsulajs.s3.amazonaws.com/develop/capsulahub-widget-request-form/index.js",
        "config": {}
      }
    }
  }
}

Exports

Default

Bootstrap function of the extension.

Named (API)

The public API of the extension.

API

CDN

The documentation about public API.

Local

Run

yarn doc

And open doc/index.html in browser.

Example

Internally example prepares the widget almost in the same way as Workspace does it.

Run

yarn start

It will use the local version of extension from local src.

The bundle is being loaded statically in order to provide watch mode.

Tests

Run

1) yarn test 2) yarn test:debug

Add new commands (in Cypress)

New commands have to be typed correctly in typescript.

For example:

Cypress.Commands.add('getHeading', () => {
  return cy.get('h1');
});

declare namespace Cypress {
  interface Chainable {
    getHeading: () => Chainable;
  }
}

Licence

CapsulaHub and related services are released under MIT Licence.

Back to the Main Page

0.0.4

4 years ago

0.0.2-next.38

4 years ago

0.0.2-next.35

4 years ago

0.0.3

4 years ago

0.0.2-next.24

5 years ago

0.0.2-next.23

5 years ago

0.0.2-next.22

5 years ago

0.0.2-next.21

5 years ago

0.0.2-next.20

5 years ago

0.0.2-next.19

5 years ago

0.0.2-next.16

5 years ago

0.0.2-next.13

5 years ago

0.0.2-next.12

5 years ago

0.0.2-next.10

5 years ago

0.0.2-next.6

5 years ago

0.0.2-next.5

5 years ago

0.0.2-next.4

5 years ago

0.0.2-next.2

5 years ago

0.0.2-next.1

5 years ago

0.0.2-alpha.2

5 years ago

0.0.2-alpha.1

5 years ago

0.0.2-alpha.0

5 years ago

0.0.1

5 years ago