1.0.2 • Published 6 years ago

d2-ui-sharing v1.0.2

Weekly downloads
-
License
BSD-3-Clause
Repository
-
Last release
6 years ago

Sharing Dialog D2-UI component

Usage

Build

$ pwd
/path/to/d2-ui/packages/sharing

$ yarn build

Publish

$ pwd
/path/to/d2-ui/packages/sharing
$ yarn version

$ cd build # always publish from the build dir!
$ npm login
$ npm publish

Install

yarn add d2-ui-sharing

Import

import SharingDialog from 'd2-ui-sharing';

<SharingDialog
    open={function}
    id={id}
    type={string}
    onRequestClose={function}
    d2={d2}
/>

Local development

$ pwd
/path/to/d2-ui/packages/sharing

$ yarn build

$ cd build
$ yarn link

In the integrating project:

$ yarn link d2-ui-sharing
$ ls node_modules/d2-ui-sharing/ # if there are more files here than below you did not link from the build dir!
    index.js    package.json