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

se-widget-embed

v3.10.2

Published

Widget code to be included in customer web sites

Downloads

22

Readme

Schedule Engine Widget Embed

What does this do?

  • Handles how the widget is added to the client's site. Including handling messages that show the service, appointments, repair, and sales modals.
  • Includes style overrides necessary on the client's site for the widget to be successfully embedded

Who uses this?

Clients will typically embed this on their website using a <script> tag. We host each version of the script at https://embed.scheduleengine.net/, each identified by their version, with an extra script that represents the current major version of the script.

For example, schedule-engine-3.0.0.js will never change, but schedule-engine-v3.js will point to schedule-engine-3.0.0.js when it is first released, and then schedule-engine-3.1.0.js when it is released. Most, if not all, of our clients point to the major version of the script (e.g., schedule-engine-v3.js).

Setup

We are using node version 16.6.

Please remember to nvm use before you npm install.

Scripts

start

Start Rollup in watch mode, using the 'development' environment

npm start

build

Run the Rollup build, using process.env.AWS_ACCOUNT_KEY as the environment if it is set, and development otherwise.

npm run build

You may override the environment for testing by passing in the environment parameter. Please note the double --:

npm run build -- --environment production

Bundles created

The Rollup build creates 3 outputs:

  • UMD - dist/schedule-engine-v{PACKAGE_VERSION}.js
  • UMD - dist/schedule-engine-v{PACKAGE_MAJOR_VERSION}.js
  • ESM - dist/esm/*

UMD

The UMD versions use src/index.ts as their input, and can be included via a <script> tag in the browser. All exported functions from src/index.ts are exposed under window.ScheduleEngine in the browser (e.g., window.ScheduleEngine.show()).

ESM

The ESM version uses src/index.esm.ts as its root input, and to enable code-splitting, creates a new chunk for every file that matches the pattern src/app/*.ts.

It can be installed using:

npm install se-widget-embed

And any exports can be imported normally, e.g.,

import { show } from 'se-widget-embed';

Schedule Engine Documentation