react-clear-modal
Advanced tools
Comparing version 1.0.2 to 1.0.3
import React, { HTMLAttributes, ReactNode } from 'react'; | ||
export declare type ReactClearModalProps = { | ||
export type ReactClearModalProps = { | ||
isOpen?: boolean; | ||
@@ -4,0 +4,0 @@ onRequestClose?: () => void; |
@@ -1,1 +0,1 @@ | ||
import e,{memo as t,useState as r,useRef as n,useCallback as o,useEffect as l}from"react";import{createPortal as i}from"react-dom";function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function f(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,l=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(l.push(n.value),!t||l.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(c)throw o}}return l}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var b=["isOpen","onRequestClose","closeTimeout","preRender","contentProps","children","parentElement","disableFocusOnContent","disableCloseOnEsc","disableCloseOnBgClick","disableBodyScrollOnOpen","disableRenderInPortal"];function p(t){var c=t.isOpen,a=void 0!==c&&c,d=t.onRequestClose,p=t.closeTimeout,O=t.preRender,m=void 0!==O&&O,v=t.contentProps,g=void 0===v?{}:v,h=t.children,j=t.parentElement,w=t.disableFocusOnContent,P=t.disableCloseOnEsc,C=t.disableCloseOnBgClick,S=t.disableBodyScrollOnOpen,E=t.disableRenderInPortal,k=f(t,b),I=y(r(E),2),x=I[0],D=I[1],A=n(null),R=n(null),T=o((function(e){var t;k.onClick&&k.onClick(e),!d||C||e.target===R.current||null!==(t=R.current)&&void 0!==t&&t.contains(e.target)||d()}),[k,d,C]),B=o((function(e){g.onKeyDown&&g.onKeyDown(e),!d||P||"Escape"!==e.code&&27!==e.keyCode||d()}),[g,d,P]),q=o((function(){return a||m?e.createElement("div",s({},k,{style:u({alignItems:"center",bottom:0,display:a?"flex":"none",left:0,overflow:"auto",position:"fixed",right:0,top:0},k.style),onClick:T}),e.createElement("div",s({},g,{style:u({margin:"auto"},g.style),onKeyDown:B,tabIndex:-1,ref:R}),h)):null}),[h,g,B,T,a,k,m]);if(l((function(){return p&&d&&(A.current=setTimeout(d,p)),function(){clearTimeout(A.current)}}),[p,d]),l((function(){var e;a&&!w&&(null===(e=R.current)||void 0===e||e.focus())}),[a,w]),l((function(){var e=document.body.style.overflow;return a&&S&&(document.body.style.overflow="hidden"),function(){document.body.style.overflow=e}}),[a,S]),l((function(){E||D(!0)}),[E]),x){if(E)return q();var K="string"==typeof j?j?document.querySelector(j):null:j;return i(q(),K||document.body)}return null}var O=t(p);export{O as default}; | ||
import e,{memo as t,useState as r,useRef as n,useCallback as o,useEffect as i}from"react";import{createPortal as l}from"react-dom";function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function s(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,u=[],c=!0,a=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){a=!0,o=e}finally{try{if(!c&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(a)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var d=["isOpen","onRequestClose","closeTimeout","preRender","contentProps","children","parentElement","disableFocusOnContent","disableCloseOnEsc","disableCloseOnBgClick","disableBodyScrollOnOpen","disableRenderInPortal"];function p(t){var u=t.isOpen,a=void 0!==u&&u,b=t.onRequestClose,p=t.closeTimeout,O=t.preRender,m=void 0!==O&&O,v=t.contentProps,g=void 0===v?{}:v,j=t.children,h=t.parentElement,w=t.disableFocusOnContent,P=t.disableCloseOnEsc,C=t.disableCloseOnBgClick,S=t.disableBodyScrollOnOpen,E=t.disableRenderInPortal,k=s(t,d),I=y(r(E),2),x=I[0],D=I[1],A=n(null),R=n(null),T=o((function(e){var t;k.onClick&&k.onClick(e),!b||C||e.target===R.current||null!==(t=R.current)&&void 0!==t&&t.contains(e.target)||b()}),[k,b,C]),B=o((function(e){g.onKeyDown&&g.onKeyDown(e),!b||P||"Escape"!==e.code&&27!==e.keyCode||b()}),[g,b,P]),q=o((function(){return a||m?e.createElement("div",f({},k,{style:c({alignItems:"center",bottom:0,display:a?"flex":"none",left:0,overflow:"auto",position:"fixed",right:0,top:0},k.style),onClick:T}),e.createElement("div",f({},g,{style:c({margin:"auto"},g.style),onKeyDown:B,tabIndex:-1,ref:R}),j)):null}),[j,g,B,T,a,k,m]);if(i((function(){return p&&b&&(A.current=setTimeout(b,p)),function(){clearTimeout(A.current)}}),[p,b]),i((function(){var e;a&&!w&&(null===(e=R.current)||void 0===e||e.focus())}),[a,w]),i((function(){var e=document.body.style.overflow;return a&&S&&(document.body.style.overflow="hidden"),function(){document.body.style.overflow=e}}),[a,S]),i((function(){E||D(!0)}),[E]),x){if(E)return q();var K="string"==typeof h?h?document.querySelector(h):null:h;return l(q(),K||document.body)}return null}var O=t(p);export{O as default}; |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).ReactClearModal=t(e.React,e.ReactDOM)}(this,(function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(e);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,l=[],u=!0,i=!1;try{for(n=n.call(e);!(u=(r=n.next()).done)&&(l.push(r.value),!t||l.length!==t);u=!0);}catch(e){i=!0,o=e}finally{try{u||null==n.return||n.return()}finally{if(i)throw o}}return l}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=["isOpen","onRequestClose","closeTimeout","preRender","contentProps","children","parentElement","disableFocusOnContent","disableCloseOnEsc","disableCloseOnBgClick","disableBodyScrollOnOpen","disableRenderInPortal"];function d(n){var o=n.isOpen,u=void 0!==o&&o,f=n.onRequestClose,d=n.closeTimeout,y=n.preRender,b=void 0!==y&&y,p=n.contentProps,O=void 0===p?{}:p,m=n.children,v=n.parentElement,g=n.disableFocusOnContent,h=n.disableCloseOnEsc,j=n.disableCloseOnBgClick,w=n.disableBodyScrollOnOpen,C=n.disableRenderInPortal,P=c(n,s),E=a(e.useState(C),2),S=E[0],k=E[1],R=e.useRef(null),x=e.useRef(null),D=e.useCallback((function(e){var t;P.onClick&&P.onClick(e),!f||j||e.target===x.current||null!==(t=x.current)&&void 0!==t&&t.contains(e.target)||f()}),[P,f,j]),I=e.useCallback((function(e){O.onKeyDown&&O.onKeyDown(e),!f||h||"Escape"!==e.code&&27!==e.keyCode||f()}),[O,f,h]),T=e.useCallback((function(){return u||b?r.default.createElement("div",i({},P,{style:l({alignItems:"center",bottom:0,display:u?"flex":"none",left:0,overflow:"auto",position:"fixed",right:0,top:0},P.style),onClick:D}),r.default.createElement("div",i({},O,{style:l({margin:"auto"},O.style),onKeyDown:I,tabIndex:-1,ref:x}),m)):null}),[m,O,I,D,u,P,b]);if(e.useEffect((function(){return d&&f&&(R.current=setTimeout(f,d)),function(){clearTimeout(R.current)}}),[d,f]),e.useEffect((function(){var e;u&&!g&&(null===(e=x.current)||void 0===e||e.focus())}),[u,g]),e.useEffect((function(){var e=document.body.style.overflow;return u&&w&&(document.body.style.overflow="hidden"),function(){document.body.style.overflow=e}}),[u,w]),e.useEffect((function(){C||k(!0)}),[C]),S){if(C)return T();var A="string"==typeof v?v?document.querySelector(v):null:v;return t.createPortal(T(),A||document.body)}return null}return e.memo(d)})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).ReactClearModal=t(e.React,e.ReactDOM)}(this,(function(e,t){"use strict";function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}function i(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,l,i,u=[],c=!0,a=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=l.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){a=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(a)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a=["isOpen","onRequestClose","closeTimeout","preRender","contentProps","children","parentElement","disableFocusOnContent","disableCloseOnEsc","disableCloseOnBgClick","disableBodyScrollOnOpen","disableRenderInPortal"];function f(r){var o=r.isOpen,c=void 0!==o&&o,f=r.onRequestClose,s=r.closeTimeout,d=r.preRender,y=void 0!==d&&d,b=r.contentProps,p=void 0===b?{}:b,m=r.children,O=r.parentElement,v=r.disableFocusOnContent,g=r.disableCloseOnEsc,j=r.disableCloseOnBgClick,h=r.disableBodyScrollOnOpen,w=r.disableRenderInPortal,C=i(r,a),P=u(e.useState(w),2),E=P[0],S=P[1],k=e.useRef(null),R=e.useRef(null),x=e.useCallback((function(e){var t;C.onClick&&C.onClick(e),!f||j||e.target===R.current||null!==(t=R.current)&&void 0!==t&&t.contains(e.target)||f()}),[C,f,j]),D=e.useCallback((function(e){p.onKeyDown&&p.onKeyDown(e),!f||g||"Escape"!==e.code&&27!==e.keyCode||f()}),[p,f,g]),I=e.useCallback((function(){return c||y?e.createElement("div",l({},C,{style:n({alignItems:"center",bottom:0,display:c?"flex":"none",left:0,overflow:"auto",position:"fixed",right:0,top:0},C.style),onClick:x}),e.createElement("div",l({},p,{style:n({margin:"auto"},p.style),onKeyDown:D,tabIndex:-1,ref:R}),m)):null}),[m,p,D,x,c,C,y]);if(e.useEffect((function(){return s&&f&&(k.current=setTimeout(f,s)),function(){clearTimeout(k.current)}}),[s,f]),e.useEffect((function(){var e;c&&!v&&(null===(e=R.current)||void 0===e||e.focus())}),[c,v]),e.useEffect((function(){var e=document.body.style.overflow;return c&&h&&(document.body.style.overflow="hidden"),function(){document.body.style.overflow=e}}),[c,h]),e.useEffect((function(){w||S(!0)}),[w]),E){if(w)return I();var T="string"==typeof O?O?document.querySelector(O):null:O;return t.createPortal(I(),T||document.body)}return null}return e.memo(f)})); |
{ | ||
"name": "react-clear-modal", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Simple and lightweight, fully controlled isomorphic (with SSR support) modal component for React.js", | ||
@@ -44,8 +44,8 @@ "files": [ | ||
"@babel/cli": "^7.17.10", | ||
"@babel/core": "^7.17.10", | ||
"@babel/core": "^7.20.12", | ||
"@babel/preset-env": "^7.17.10", | ||
"@babel/preset-react": "^7.16.7", | ||
"@babel/preset-typescript": "^7.16.7", | ||
"@rollup/plugin-babel": "^5.3.1", | ||
"@rollup/plugin-node-resolve": "^13.3.0", | ||
"@rollup/plugin-babel": "^6.0.3", | ||
"@rollup/plugin-node-resolve": "^15.0.1", | ||
"@types/react": "^18.0.8", | ||
@@ -56,15 +56,15 @@ "@types/react-dom": "^18.0.3", | ||
"babel-plugin-transform-remove-console": "^6.9.4", | ||
"eslint": "^8.14.0", | ||
"eslint": "^8.33.0", | ||
"eslint-config-airbnb": "^19.0.4", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-jsx-a11y": "^6.5.1", | ||
"eslint-plugin-react": "^7.29.4", | ||
"eslint-plugin-react": "^7.32.2", | ||
"eslint-plugin-react-hooks": "^4.5.0", | ||
"husky": ">=6", | ||
"lint-staged": ">=10", | ||
"prettier": "2.6.2", | ||
"lint-staged": ">=13.1.0", | ||
"prettier": "2.8.3", | ||
"react": "^18.1.0", | ||
"react-dom": "^18.1.0", | ||
"rollup": "^2.72.1", | ||
"rollup": "^3.13.0", | ||
"rollup-plugin-terser": "^7.0.2", | ||
@@ -74,3 +74,3 @@ "typescript": "^4.6.4" | ||
"dependencies": { | ||
"core-js": "^3.8.1" | ||
"core-js": "^3.27.2" | ||
}, | ||
@@ -90,6 +90,3 @@ "peerDependencies": { | ||
".": "prettier --write" | ||
}, | ||
"resolutions": { | ||
"json5": "^2.2.2" | ||
} | ||
} |
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
19584
56
Updatedcore-js@^3.27.2