Skip to content

Commit

Permalink
Merge branch 'release/v3.20.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
janschoenherr committed Apr 24, 2024
2 parents 11c1c31 + c841dd7 commit 8e4ccf0
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Please open an issues only for a bug report or feature request. Make sure no one
### UIkit Version

_Check if the issue is reproducible with the latest stable version._
3.20.2
3.20.3

### Actual Behavior

Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 3.20.3 (April 24, 2024)

### Fixed

- Fix regression in none browser environment

## 3.20.2 (April 24, 2024)

### Changed
Expand Down
2 changes: 1 addition & 1 deletion dist/css/uikit-rtl.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! UIkit 3.20.2 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
/*! UIkit 3.20.3 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
/* ========================================================================
Component: Base
========================================================================== */
Expand Down
2 changes: 1 addition & 1 deletion dist/css/uikit-rtl.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/uikit.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! UIkit 3.20.2 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
/*! UIkit 3.20.3 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
/* ========================================================================
Component: Base
========================================================================== */
Expand Down
2 changes: 1 addition & 1 deletion dist/css/uikit.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/uikit-icons.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/js/uikit-icons.min.js

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions dist/js/uikit.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! UIkit 3.20.2 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
/*! UIkit 3.20.3 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
Expand Down Expand Up @@ -276,6 +276,17 @@
return str ? isArray(str) ? str.map(toClasses).flat() : String(str).split(" ").filter(Boolean) : [];
}

const inBrowser = typeof window !== "undefined";
const isRtl = inBrowser && document.dir === "rtl";
const hasTouch = inBrowser && "ontouchstart" in window;
const hasPointerEvents = inBrowser && window.PointerEvent;
const pointerDown$1 = hasPointerEvents ? "pointerdown" : hasTouch ? "touchstart" : "mousedown";
const pointerMove$1 = hasPointerEvents ? "pointermove" : hasTouch ? "touchmove" : "mousemove";
const pointerUp$1 = hasPointerEvents ? "pointerup" : hasTouch ? "touchend" : "mouseup";
const pointerEnter = hasPointerEvents ? "pointerenter" : hasTouch ? "" : "mouseenter";
const pointerLeave = hasPointerEvents ? "pointerleave" : hasTouch ? "" : "mouseleave";
const pointerCancel = hasPointerEvents ? "pointercancel" : "touchcancel";

const voidElements = {
area: true,
base: true,
Expand All @@ -296,7 +307,7 @@
function isVoidElement(element) {
return toNodes(element).some((element2) => voidElements[element2.tagName.toLowerCase()]);
}
const isVisibleFn = Element.prototype.checkVisibility || function() {
const isVisibleFn = inBrowser ? Element.prototype.checkVisibility : function() {
return this.offsetWidth || this.offsetHeight || this.getClientRects().length;
};
function isVisible(element) {
Expand Down Expand Up @@ -968,17 +979,6 @@
return vh;
}

const inBrowser = typeof window !== "undefined";
const isRtl = inBrowser && document.dir === "rtl";
const hasTouch = inBrowser && "ontouchstart" in window;
const hasPointerEvents = inBrowser && window.PointerEvent;
const pointerDown$1 = hasPointerEvents ? "pointerdown" : hasTouch ? "touchstart" : "mousedown";
const pointerMove$1 = hasPointerEvents ? "pointermove" : hasTouch ? "touchmove" : "mousemove";
const pointerUp$1 = hasPointerEvents ? "pointerup" : hasTouch ? "touchend" : "mouseup";
const pointerEnter = hasPointerEvents ? "pointerenter" : hasTouch ? "" : "mouseenter";
const pointerLeave = hasPointerEvents ? "pointerleave" : hasTouch ? "" : "mouseleave";
const pointerCancel = hasPointerEvents ? "pointercancel" : "touchcancel";

const fastdom = {
reads: [],
writes: [],
Expand Down Expand Up @@ -3552,7 +3552,7 @@
};
App.util = util;
App.options = {};
App.version = "3.20.2";
App.version = "3.20.3";

const PREFIX = "uk-";
const DATA = "__uikit__";
Expand Down
2 changes: 1 addition & 1 deletion dist/js/uikit.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "uikit",
"title": "UIkit",
"description": "UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.",
"version": "3.20.2",
"version": "3.20.3",
"main": "dist/js/uikit.js",
"style": "dist/css/uikit.css",
"sideEffects": [
Expand Down
11 changes: 6 additions & 5 deletions src/js/util/filter.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { inBrowser } from './env.js';
import { toArray, toNode, toNodes } from './lang';

const voidElements = {
Expand All @@ -21,11 +22,11 @@ export function isVoidElement(element) {
return toNodes(element).some((element) => voidElements[element.tagName.toLowerCase()]);
}

const isVisibleFn =
Element.prototype.checkVisibility ||
function () {
return this.offsetWidth || this.offsetHeight || this.getClientRects().length;
};
const isVisibleFn = inBrowser
? Element.prototype.checkVisibility
: function () {
return this.offsetWidth || this.offsetHeight || this.getClientRects().length;
};
export function isVisible(element) {
return toNodes(element).some((element) => isVisibleFn.call(element));
}
Expand Down

0 comments on commit 8e4ccf0

Please sign in to comment.