open-index/open-npm huggingface dataset:
npm package: @portech/add-stakeholder
Description: [![npm version](https://badge.fury.io/js/%40requestnetwork%2Fadd-stakeholder.svg)](https://badge.fury.io/js/%40requestnetwork%2Fadd-stakeholder)
Latest version: 0.1.2

# Request Network Add Stakeholder Web Component

[![npm version](https://badge.fury.io/js/%40requestnetwork%2Fadd-stakeholder.svg)](https://badge.fury.io/js/%40requestnetwork%2Fadd-stakeholder)

## Introduction

This package provides the Request Network Add Stakeholder html module, which allows builders to provide the Request Finance Add Stakeholder feature to existing web pages / applications.

It exports a native [Svelte](https://svelte.dev/) component as well as a [Web Component](https://opensource.com/article/21/7/web-components) allowing for integration into any web page / application, regardless of implementation or framework.

## Usage

### Svelte

As a native svelte component

```javascript
import { AddStakeholder } from '@portech/add-stakeholder'
```

```html
<AddStakeholder builderKey="..." webhookUrl=".."/>
```

As a web component

```javascript
import '@portech/add-stakeholder'
```

```html
<add-stakeholder builderKey="..." webhookUrl="..."/>
```

### React

```javascript
import '@portech/add-stakeholder'

export default function App() {
    return (
        <add-stakeholder builderKey="..." webhookUrl="..."/>
    )
}
```

### Browser

```html
<script src="./node_modules/add-stakeholder/dist/web-component.umd.cjs" defer></script>
<!-- or -->
<script src="//unpkg.com/@portech/add-stakeholder" defer></script>

<add-stakeholder builderKey="..." webhookUrl="..."/>
```

## Developing

Install dependencies
```bash
git clone https://github.com/RequestNetwork/web-components.git

cd packages/add-stakeholder

npm install
```

Run the dev server
```bash
npm run dev
```

The web component source file can be found in the ./src/lib directory.

This file is imported into the local ./src/routes/+page.svelte for development purposes.

You can build the packakge via
```bash
npm run build
```

The build process creates the native svelte component and web-component (in ESM & UMD) files to ./dist.
npm package: @portech/shared
Description: [![npm version](https://badge.fury.io/js/%40requestnetwork%2Fshared.svg)](https://badge.fury.io/js/%40requestnetwork%2Fshared)
Latest version: 0.4.1

# Portech Shared

[![npm version](https://badge.fury.io/js/%40requestnetwork%2Fshared.svg)](https://badge.fury.io/js/%40requestnetwork%2Fshared)

## Introduction

This package provides shared svelte components and utils used by other web components in this repo.

## Installation

To install the component, use npm:

```bash
npm install @portech/shared
```

## Additional Information

For more detailed information on using the Request Network and custom configurations, refer to the official [Request Network documentation](https://docs.request.network/).
npm package: @porterm/graphql-workspace-authorizer-transformer-v2
Description: Add a custom authorization flow to all of your Amplify API mutations and queries!
Author: Alexis Gomez
Latest version: 0.9.8-alpha

> 🚒 Add workspaces based auth flow to all queries and mutations!

# graphql-workspace-authorizer-transformer-v2

This transformer is intended to be used with @model and @auth directives.
If you don't implement @auth directive, you may have vulnerabilities like Sandbox bypass.

##Local instalation, run this command located in the project where you want to install this module

`npm install /path/to/root/graph-workdpace-authorizer-v2`

##Build

`npm run-script build`


## Installation

`npm install --save @porterm/graphql-workspace-authorizer-transformer-v2`

## How to use

### Setup custom transformer

Edit `amplify/backend/api/<YOUR_API>/transform.conf.json` and append `"@porterm/graphql-workspace-authorizer-transformer-v2"` to the `transformers` field.

```json
"transformers": [
    "@porterm/graphql-workspace-authorizer-transformer-v2"
]
```

### Use @workspaceAuthV2 directive

Append `@workspaceAuthV2` to target types and add the params.

```graphql
type Todo @model @workspaceAuthV2(
    ownershipModel: {
        modelName: "Ownership",
        userIdFieldName: "userID",
        workspaceIdFieldName: "companyID",
        indexName: "byUserIdAndCompanyId",
        roleFieldName: "role"
      },
      rules: [{
        groups: ["owner", "admin", "editor"],
        operations: ["create", "update", "delete", "read"]
      }] ,
      cognitoGroupExceptions: ["Administrator"]
      ) {
  id: ID!
  title: String!
  description: String
}
```

## Contribute 🦸

Please feel free to create, comment and of course solve some of the issues. To get started you can also go for the easier issues marked with the `good first issue` label if you like.

### Development

- It is important to always make sure the version of the installed `graphql` dependency matches the `graphql` version the `graphql-transformer-core` depends on.

## License

The [MIT License](LICENSE)

## Credits

The _graphql-workspace-authorizer-transformer-v2_ project is maintained by Porter Metrics