npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

datalake-widget

v1.20.0

Published

Data Lake Widget

Downloads

224

Readme

Data Lake Widget

The Data Lake Widget allows users to join a project by providing an email and other relevant details. This widget can be used in both React and Vue applications.

Installation

To install the widget, run the following command:

npm install datalake-widget

Usage

Props

  • accessKey (string, required): Project access key generated via Data Lake App.
  • projectHash (string, required): Hash of the project to join.
  • email (string, optional): Email of the user who wants to join the project. If the value is empty, the widget will show an email input.
  • title (string, optional): Title of the widget.
  • language (string, optional, default: pl): Language of the confirmation email.
  • button (string, optional, default: Give Consents): Button text.
  • iframeWidth (number, optional, default: 900): Width of the iframe window.
  • iframeHeight (number, optional, default: 700): Height of the iframe window.
  • onTransactionStatusUpdate: (status: IStatus) => void (callback, optional): returns transaction status after each status check. 2 - transaction is pending; 1 - transaction is completed; 0 - transaction is failed;
  • onFormSubmit: (formData: IFormData) => void (callback, optional): returns form data submitted by user.
  • onError: (error: string) => void (callback, optional): returns string error message.

Example of Usage in React

To use the widget in a React application, import the ReactInviteButton component and include it in your JSX.

Example:

import React from 'react';
import { ReactInviteButton } from 'datalake-widget';
import 'datalake-widget/dist/style.css';

const App = () => {
	return (
		<div>
			<ReactInviteButton
				accessKey="your-access-key"
				projectHash="your-project-hash"
				title="Your Project Title"
			/>
		</div>
	);
};

export default App;

Example of Usage in Vue

To use the widget in a Vue application, import the VueInviteButton component and register it either globally or locally within a component.

Example:

main.js

import { createApp } from 'vue';
import App from './App.vue';
import { VueInviteButton } from 'datalake-widget';
import 'datalake-widget/dist/style.css';

const app = createApp(App);
app.component('VueInviteButton', VueInviteButton);
app.mount('#app');

App.vue

<template>
  <div id="app">
    <VueInviteButton
      apiKey="your-api-key"
      projectHash="your-project-hash"
      title="Your Project Title"
    />
  </div>
</template>

<script>
import { VueInviteButton } from 'datalake-widget';
import 'datalake-widget/dist/style.css';

export default {
  components: {
	  VueInviteButton,
  },
};
</script>

<style></style>