@pinwheel/react-modal
Advanced tools
Comparing version 2.2.2 to 2.3.0
/// <reference types="react" /> | ||
export declare const SDK_VERSION: SemverObject; | ||
export declare type LinkResult = { | ||
@@ -3,0 +4,0 @@ accountId: string; |
@@ -36,6 +36,11 @@ var React = require('react'); | ||
var version = { | ||
major: 2, | ||
minor: 2, | ||
patch: 2 | ||
var _require$version$spli = require('../package.json').version.split('.').map(Number), | ||
major = _require$version$spli[0], | ||
minor = _require$version$spli[1], | ||
patch = _require$version$spli[2]; | ||
var SDK_VERSION = { | ||
major: major, | ||
minor: minor, | ||
patch: patch | ||
}; | ||
@@ -47,3 +52,3 @@ | ||
tag.type = 'application/javascript'; | ||
tag.src = url || 'https://cdn.getpinwheel.com/pinwheel-v2.js'; | ||
tag.src = url || "https://cdn.getpinwheel.com/pinwheel-v" + major + "." + minor + ".js"; | ||
document.body.appendChild(tag); | ||
@@ -95,3 +100,3 @@ tag.addEventListener('load', function () { | ||
Pinwheel.open(_extends({}, props, { | ||
_versionOverride: version, | ||
_versionOverride: SDK_VERSION, | ||
_sdkOverride: 'react' | ||
@@ -108,3 +113,4 @@ })); | ||
module.exports = PinwheelModal; | ||
exports.SDK_VERSION = SDK_VERSION; | ||
exports.default = PinwheelModal; | ||
//# sourceMappingURL=index.js.map |
@@ -36,6 +36,11 @@ import { useState, useEffect, createElement } from 'react'; | ||
var version = { | ||
major: 2, | ||
minor: 2, | ||
patch: 2 | ||
var _require$version$spli = require('../package.json').version.split('.').map(Number), | ||
major = _require$version$spli[0], | ||
minor = _require$version$spli[1], | ||
patch = _require$version$spli[2]; | ||
var SDK_VERSION = { | ||
major: major, | ||
minor: minor, | ||
patch: patch | ||
}; | ||
@@ -47,3 +52,3 @@ | ||
tag.type = 'application/javascript'; | ||
tag.src = url || 'https://cdn.getpinwheel.com/pinwheel-v2.js'; | ||
tag.src = url || "https://cdn.getpinwheel.com/pinwheel-v" + major + "." + minor + ".js"; | ||
document.body.appendChild(tag); | ||
@@ -95,3 +100,3 @@ tag.addEventListener('load', function () { | ||
Pinwheel.open(_extends({}, props, { | ||
_versionOverride: version, | ||
_versionOverride: SDK_VERSION, | ||
_sdkOverride: 'react' | ||
@@ -109,2 +114,3 @@ })); | ||
export default PinwheelModal; | ||
export { SDK_VERSION }; | ||
//# sourceMappingURL=index.modern.js.map |
{ | ||
"name": "@pinwheel/react-modal", | ||
"version": "2.2.2", | ||
"version": "2.3.0", | ||
"description": "React package for Pinwheel modal", | ||
@@ -5,0 +5,0 @@ "author": "roscioli", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
21936
241
7