New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@formsort/web-embed-api

Package Overview
Dependencies
Maintainers
7
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formsort/web-embed-api - npm Package Compare versions

Comparing version 2.2.3 to 2.3.0

3

CHANGELOG.md
# CHANGELOG
## 2.2.3
## 2.3.0
### Various fixes & improvements
- Issue 72 - Support React 18 (#79) by @atikenny
- Revert Client subdomain as default domain (#78) by @atikenny

@@ -8,0 +9,0 @@

import { AnalyticsEventType, IFlowAnswers } from '@formsort/constants';
export interface IFormsortWebEmbed {
loadFlow: (clientLabel: string, flowLabel: string, variantLabel?: string, queryParams?: Array<[string, string]>) => void;
unloadFlow: () => void;
setSize: (width: string, height: string) => void;

@@ -5,0 +6,0 @@ addEventListener<K extends keyof IEventMap>(eventName: K, fn: IEventMap[K]): void;

@@ -171,4 +171,9 @@ "use strict";

};
const unloadFlow = () => {
removeListeners();
rootEl.removeChild(iframeEl);
};
return {
loadFlow,
unloadFlow,
setSize,

@@ -175,0 +180,0 @@ addEventListener(eventName, fn) {

{
"name": "@formsort/web-embed-api",
"version": "2.2.3",
"version": "2.3.0",
"description": "Embed Formsort flows within other webpages",

@@ -5,0 +5,0 @@ "publishConfig": {

@@ -65,2 +65,6 @@ # @formsort/web-embed-api

### `unloadFlow() => void`
Remove inserted iFrame and all its event listeners.
### `setSize(width: number, height: number) => void`

@@ -67,0 +71,0 @@

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