@figspec/react
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -15,3 +15,2 @@ "use strict"; | ||
exports.FigspecFileViewer = exports.FigspecFrameViewer = void 0; | ||
const jsx_runtime_js_1 = require("react/jsx-runtime.js"); | ||
require("@figspec/components"); | ||
@@ -58,3 +57,3 @@ const react_1 = require("react"); | ||
}, [refNode, onScaleChange]); | ||
return (jsx_runtime_js_1.jsx("figspec-frame-viewer", Object.assign({ ref: refCb, class: className, "pan-speed": panSpeed, "zoom-margin": zoomMargin, "zoom-speed": zoomSpeed }, rest), void 0)); | ||
return (react_1.createElement("figspec-frame-viewer", Object.assign({ ref: refCb, class: className, "pan-speed": panSpeed, "zoom-margin": zoomMargin, "zoom-speed": zoomSpeed }, rest))); | ||
}); | ||
@@ -93,3 +92,3 @@ exports.FigspecFileViewer = react_1.forwardRef((_a, ref) => { | ||
}, [refNode, onScaleChange]); | ||
return (jsx_runtime_js_1.jsx("figspec-file-viewer", Object.assign({ ref: refCb, class: className, "pan-speed": panSpeed, "zoom-margin": zoomMargin, "zoom-speed": zoomSpeed }, rest), void 0)); | ||
return (react_1.createElement("figspec-file-viewer", Object.assign({ ref: refCb, class: className, "pan-speed": panSpeed, "zoom-margin": zoomMargin, "zoom-speed": zoomSpeed }, rest))); | ||
}); |
@@ -12,5 +12,4 @@ var __rest = (this && this.__rest) || function (s, e) { | ||
}; | ||
import { jsx as _jsx } from "react/jsx-runtime.js"; | ||
import "@figspec/components"; | ||
import { forwardRef, useCallback, useEffect, useImperativeHandle, useState, } from "react"; | ||
import { createElement, forwardRef, useCallback, useEffect, useImperativeHandle, useState, } from "react"; | ||
const bindEvent = (element, event, cb) => { | ||
@@ -55,3 +54,3 @@ const listener = ((ev) => { | ||
}, [refNode, onScaleChange]); | ||
return (_jsx("figspec-frame-viewer", Object.assign({ ref: refCb, class: className, "pan-speed": panSpeed, "zoom-margin": zoomMargin, "zoom-speed": zoomSpeed }, rest), void 0)); | ||
return (createElement("figspec-frame-viewer", Object.assign({ ref: refCb, class: className, "pan-speed": panSpeed, "zoom-margin": zoomMargin, "zoom-speed": zoomSpeed }, rest))); | ||
}); | ||
@@ -90,3 +89,3 @@ export const FigspecFileViewer = forwardRef((_a, ref) => { | ||
}, [refNode, onScaleChange]); | ||
return (_jsx("figspec-file-viewer", Object.assign({ ref: refCb, class: className, "pan-speed": panSpeed, "zoom-margin": zoomMargin, "zoom-speed": zoomSpeed }, rest), void 0)); | ||
return (createElement("figspec-file-viewer", Object.assign({ ref: refCb, class: className, "pan-speed": panSpeed, "zoom-margin": zoomMargin, "zoom-speed": zoomSpeed }, rest))); | ||
}); |
@@ -8,3 +8,3 @@ { | ||
], | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"contributors": [ | ||
@@ -11,0 +11,0 @@ { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14684
245