![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@area17/a17-helpers
Advanced tools
A17 JS Helpers with an ES module pattern.
A collection of documented vanilla JS widgets.
In the A17 Boilerplate, we use these as a dependency and install via NPM. Alternatively you can copy the src
folder and the index.js
into a folder of your project and compile.
If installed via NPM, you'll want to import into your JavaScript by:
import helpers from '@area17/a17-helpers'
or, cherry pick individual helpers:
import { getCurrentMediaQuery, resized } from '@area17/a17-helpers'
From v2.0.0 onwards drops IE11 support but maintains Safari 10+, Edge 12+, Chrome 24+ and FireFox 29+ support. If you need IE11 support use v1.0.3 and if you need IE9 level support, use v0.8.4.
Feel free to add any vanilla JS helpers that will be common to many projects and save someone some time working them out in the future. The main aims are no dependencies, small elegant code and high potential sharing across sites.
Please make sure you run npm run prod
after making changes. This will compile all your changes to ES5 ready version and then you can feel free to publish to npm.
Download the editor config plugin for your text editor: http://editorconfig.org/#download
Written using Mochajs and Chai.js, currently living in test/test.js
. To run:
$ npm run prod
$ npm run test
TODO convert tests from pre-open-source Helpers to this version
2.0.1
isBreakpoint
breakpoints to use shorthand breakpoint names: 'xs', 'md', 'lg', 'xl', 'xxl'
(in line with A17 boilerplate 7.1.0 and A17 Tailwind plugins)2.0.0
node.dispatchEvent(new CustomEvent('event:name', { detail: { foo: 'bar' } }));
)ios100vhFix
- adds a --1vh
CSS var to the :root
for CSS usage to counter iOS frustrating 100vh change when the browser chrome disappearsresponsiveImageUpdate
- updates image sizes
attribute on resized to make Safari recalc which source to use from the srcset
manageBehaviors
and createBehavior
from the boilerplate to create and manage behaviors, this version has the initial data bindings developmentsetFocusOnTarget
resized
to sends breakpoint info on resized and sets current media query on loadgetCurrentMediaQuery
reads breakpoint info from a CSS variable --breakpoint
focusTrap
gets cleaned upajaxRequest
can now send JSON forms1.0.3
.fromObject()
in queryStringHandler
to match fixedEncodeURIComponent
at MDN:encodeURIComponent1.0.2
resized
sends its event to the window
and not the document
for backwards compatibility1.0.1
scrolled
you'll need to read event.detail.last
and event.detail.prev
(and not event.data.xxxx
)1.0.0
0.8.4
scrolled
- a custom event to track requestAnimationFrame limited scroll events0.8.3
focusTrap
incorrectly removing events0.8.2
0.8.1
focusTrap
and focusDisplayHandler
to the index.js so this can be imported into your app0.8.0
focusTrap
and focusDisplayHandler
to trap keyboard tab focus within an element and to help style keyboard focus states0.7.2
0.7.1
0.7.0
0.6.8
isBreakpoint
helper to query if a breakpoint is active0.6.6 and 0.6.7
copyTextToClipboard
as recent browser updates stopped it working0.6.5
lazyLoad
to v2.1.1 inline with updates to that lib0.6.4
package-lock.json
0.6.2 and 0.6.3
lazyLoad
to init correctly0.6.1
lazyLoad
to v2.1.0 inline with updates to that lib0.6.0
index.js
0.5.1
message
to messages
, updated message--hide
to s-hide
0.5.0
fontLoadObserver
0.4.2
debounce
0.4.1
copyTextToClipboard
0.4.0
lazyLoad
, a A17-helperised version of: https://github.com/area17/lazyload0.3.6
manageBehaviors
to not have warning typo...0.3.5
manageBehaviors
to warn when behavior fails to init and not trap JS errors from inside a behavior0.3.4
forEach
to loop querySelectorAll
nodes0.3.3
getOffset
returns a full fixed getBoundingClientRect
output (position with scroll) so includes bottom, right, width and height now0.3.2
resized
checks for and sets window.A17.currentMediaQuery
when media query changes0.3.1
jsdom
an jsdom-global
(https://github.com/rstacruz/jsdom-global) to devDependencies
to test DOM events in Mocha tests..updateParameter()
method to queryStringHandler
helper WikisetFocusOnTarget
helper Wiki (with test)copyTextToClipboard
helper Wiki (no test, not sure how to test..)0.3.0
turnObjectToQueryString
and turnQueryStringToObject
into queryStringHandler
as .toObject()
and .fromObject()
methodsdebounce
helper Wiki0.2.1
Changed dependencies from a17.helpers
format to module
0.2.0
Add all the helpers from original version
0.1.0
Basic structure and testing function
2.0.1
isBreakpoint
breakpoints to use shorthand breakpoint names: 'xs', 'md', 'lg', 'xl', 'xxl'
(in line with A17 boilerplate 7.1.0 and A17 Tailwind plugins)FAQs
A js helper package
The npm package @area17/a17-helpers receives a total of 202 weekly downloads. As such, @area17/a17-helpers popularity was classified as not popular.
We found that @area17/a17-helpers demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.