Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

queue-snackbar missing on npm #70

Open
caliny97 opened this issue Jun 11, 2019 · 6 comments
Open

queue-snackbar missing on npm #70

caliny97 opened this issue Jun 11, 2019 · 6 comments

Comments

@caliny97
Copy link

queue-snackbar missing when installing weightless from npm.

@eskan
Copy link
Contributor

eskan commented Jun 12, 2019

queue-snackbar is not a WC but a method :

import { queueSnackbar } from "weightless/snackbar";

queueSnackbar({
          container: document.body,
          fixed: true,
          template: html`
            What you want
          `
        });

@caliny97
Copy link
Author

correct is a method, but is not there. It seems to be structured as "showSnackbar" which has its corresponding implementation in a single file.

This is from the snackbar demo page.

image

This is from the index.d

image

@eskan
Copy link
Contributor

eskan commented Jun 12, 2019

Hi,
right queue-snackbar is not exported by index.d.ts so you have to import it as
import { queueSnackbar } from "weightless/snackbar/queue-snackbar";
i guess the maintener choose to not export it by default.
Not an issue.

@caliny97
Copy link
Author

That is the issue, queue-snackbar.js is missing from the NPM install.
This is the tree from the npm intallation

image

@eskan
Copy link
Contributor

eskan commented Jun 12, 2019

Sorry i misunderstood :/

@eskan
Copy link
Contributor

eskan commented Jun 12, 2019

#72

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants