Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gyg-wc

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gyg-wc

GetYourGuide Web Component

  • 0.8.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

GetYourGuide + Web Component

license npm

 

This is an unofficial GetYourGuide package.

This web-component is a light wrapper around the GetYourGuide widget focusing on progressive enhancement, simple API, and better page performance (ie. lazy loading).

 

Getting started

Installation

$ npm install gyg-wc
# $ pnpm add gyg-wc
# $ yarn add gyg-wc

Usage / Examples

<!-- index.html - using Vite -->
<script>
  // ✅ Remove the need to add `partner-id` attribute to each web component
  globalThis.GYG_PARTNER_ID = import.meta.env.VITE_GYG_PARTNER_ID;
</script>
<script type="module">
  import "gyg-wc";
</script>
Activities
<gyg-wc url="{location_url}?partner_id={partner_id}" size="{num_items}">
  <a href="{location_url}?partner_id={partner_id}"> Things to do in ... </a>
</gyg-wc>
Availability
<gyg-wc url="{tour_url}?partner_id={partner_id}">
  <a href="{tour_url}?partner_id={partner_id}"> Check availability for ... </a>
</gyg-wc>
Location
<gyg-wc url="{location_url}?partner_id={partner_id}">
  <a href="{location_url}?partner_id={partner_id}"> Things to do in ... </a>
</gyg-wc>
<gyg-wc query="{search_term}" partner-id="{partner_id}">
  <a href="{search_url}?partner_id={partner_id}"> Things to do in ... </a>
</gyg-wc>
Tours
<gyg-wc urls="[{tour_url}?partner_id={partner_id},...]">
  <a href="{tour_url}?partner_id={partner_id}"> Things to do in ... </a>
</gyg-wc>

 

Documentation

Refer to the gyg-wc docs page for details and examples.

 

License

ISC

Keywords

FAQs

Package last updated on 27 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc