react-device-frameset
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -169,5 +169,12 @@ var __create = Object.create; | ||
// src/DeviceFrameset.tsx | ||
function omit(item, keys) { | ||
const clone = __spreadValues({}, item); | ||
for (const key of keys) { | ||
delete clone[key]; | ||
} | ||
return clone; | ||
} | ||
var DeviceFrameset = import_react.default.memo(function DeviceFrameset2(props) { | ||
const _a = props, { children, device, width, height, zoom } = _a, restProps = __objRest(_a, ["children", "device", "width", "height", "zoom"]); | ||
const _b = restProps, { landscape: _l, color: _c } = _b, divProps = __objRest(_b, ["landscape", "color"]); | ||
const divProps = omit(restProps, ["landscape", "color"]); | ||
const color = "color" in props ? props.color : void 0; | ||
@@ -174,0 +181,0 @@ const landscape = "landscape" in props ? props.landscape : void 0; |
{ | ||
"name": "react-device-frameset", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"author": "Zheeeng <hi@zheeeng.me>", | ||
@@ -36,4 +36,4 @@ "description": "This is yet another device frameset component for React.", | ||
"require": "./dist/index.js", | ||
"default": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts" | ||
"types": "./dist/index.d.ts", | ||
"default": "./dist/index.mjs" | ||
}, | ||
@@ -51,7 +51,6 @@ "./package.json": "./package.json", | ||
"build": "pnpm build:pack", | ||
"build:lib": "rm -rf lib && tsup src/index.ts --format cjs,esm --dts", | ||
"build:lib": "tsup src/index.ts --format cjs,esm --dts --clean", | ||
"build:css": "gulp buildCss", | ||
"build:readme": "gulp genSignature && gulp moveReadme", | ||
"build:pack": "pnpm build:lib -- --clean && pnpm build:css && pnpm build:readme", | ||
"build:pages": "pnpm build:pack && pnpm build:site" | ||
"build:pack": "pnpm build:lib && pnpm build:css && pnpm build:readme" | ||
}, | ||
@@ -58,0 +57,0 @@ "devDependencies": { |
@@ -35,3 +35,3 @@ # React Device Frameset | ||
import { DeviceFrameset } from 'react-device-frameset' | ||
import 'react-device-frameset/lib/css/marvel-devices.min.css' | ||
import 'react-device-frameset/dist/styles/marvel-devices.min.css' | ||
@@ -82,4 +82,4 @@ export const App = () => { | ||
import { DeviceFrameset, DeviceSelector } from 'react-device-frameset' | ||
import 'react-device-frameset/lib/css/marvel-devices.min.css' | ||
import 'react-device-frameset/lib/css/device-selector.min.css' | ||
import 'react-device-frameset/dist/styles/marvel-devices.min.css' | ||
import 'react-device-frameset/dist/styles/device-selector.min.css' | ||
@@ -110,4 +110,4 @@ export const App = () => { | ||
import { DeviceFrameset, DeviceEmulator } from 'react-device-frameset' | ||
import 'react-device-frameset/lib/css/marvel-devices.min.css' | ||
import 'react-device-frameset/lib/css/device-emulator.min.css' | ||
import 'react-device-frameset/dist/styles/marvel-devices.min.css' | ||
import 'react-device-frameset/dist/styles/device-emulator.min.css' | ||
@@ -114,0 +114,0 @@ export const App = () => { |
Sorry, the diff of this file is not supported yet
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
316353
3794