Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

baseframe-js

Package Overview
Dependencies
Maintainers
0
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

baseframe-js - npm Package Compare versions

Comparing version 5.2.2 to 5.2.3

2

dist/cjs/Modal.d.ts

@@ -29,3 +29,3 @@ import type { Cash, Selector } from "cash-dom";

modalCss: string | null;
focusInDelay: number;
focusInDelay: number | null;
onOpenOnce(modalObj: ModalObj): void;

@@ -32,0 +32,0 @@ onOpen(modalObj: ModalObj): void;

@@ -180,7 +180,9 @@ "use strict";

}, 0);
setTimeout(function () {
s.trappedFocus = (0, _trapFocus["default"])($modal, {
nameSpace: (0, _helpers.camelCase)(s.modalID)
});
}, p.focusInDelay);
if (p.focusInDelay !== null) {
setTimeout(function () {
s.trappedFocus = (0, _trapFocus["default"])($modal, {
nameSpace: (0, _helpers.camelCase)(s.modalID)
});
}, p.focusInDelay);
}
(0, _cashDom["default"])(p.appendTo).addClass(p.cssPrefix + '-open').css({

@@ -225,3 +227,5 @@ overflow: 'hidden',

});
s.trappedFocus.remove();
if (p.focusInDelay !== null) {
s.trappedFocus.remove();
}
if (s.enabledElem && s.enabledElem instanceof HTMLElement) {

@@ -228,0 +232,0 @@ s.enabledElem.focus();

@@ -29,3 +29,3 @@ import type { Cash, Selector } from "cash-dom";

modalCss: string | null;
focusInDelay: number;
focusInDelay: number | null;
onOpenOnce(modalObj: ModalObj): void;

@@ -32,0 +32,0 @@ onOpen(modalObj: ModalObj): void;

@@ -158,5 +158,7 @@ import $ from 'cash-dom';

}, 0);
setTimeout(() => {
s.trappedFocus = trapFocus($modal, { nameSpace: camelCase(s.modalID) });
}, p.focusInDelay);
if (p.focusInDelay !== null) {
setTimeout(() => {
s.trappedFocus = trapFocus($modal, { nameSpace: camelCase(s.modalID) });
}, p.focusInDelay);
}
$(p.appendTo).addClass(p.cssPrefix + '-open').css({

@@ -198,3 +200,5 @@ overflow: 'hidden',

});
s.trappedFocus.remove();
if (p.focusInDelay !== null) {
s.trappedFocus.remove();
}
if (s.enabledElem && s.enabledElem instanceof HTMLElement) {

@@ -201,0 +205,0 @@ s.enabledElem.focus();

{
"name": "baseframe-js",
"version": "5.2.2",
"version": "5.2.3",
"description": "A suite of useful Javascript plugins and functions to help with Front-end Development on websites",

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

@@ -503,3 +503,3 @@ # Baseframe JS #

closeOutDelay | number | 250 | Time for closing the animation. Sync with CSS transition or animation.
focusInDelay | number | 0 | A delay in the focusing in on the first element, which may be necessary for animation purposes. If an item within gets focus before it enters the viewport it may have adverse affects on it.
focusInDelay | number | null | 0 | A delay in the focusing in on the first element, which may be necessary for animation purposes. If an item within gets focus before it enters the viewport it may have adverse affects on it. Pass in `null` to not have the focus event not occur.
backDropClose | boolean| true | Toggle whether a user can click the backdrop to close the modal.

@@ -506,0 +506,0 @@ fromDOM | boolean | true | If the modal content is grabbed from the DOM. Set to false if grabbed via an AJAX call or otherwise generated.

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