umaki 0.6.2 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -0
- package/dist/LICENSE.txt +1 -1
- package/dist/_virtual/_commonjsHelpers.cjs.js +0 -13
- package/dist/_virtual/_commonjsHelpers.es.js +0 -13
- package/dist/_virtual/isBetween.cjs.js +6 -14
- package/dist/_virtual/isBetween.cjs2.js +4 -0
- package/dist/_virtual/isBetween.es.js +5 -13
- package/dist/_virtual/isBetween.es2.js +4 -0
- package/dist/_virtual/timezone.cjs.js +6 -14
- package/dist/_virtual/timezone.cjs2.js +4 -0
- package/dist/_virtual/timezone.es.js +5 -13
- package/dist/_virtual/timezone.es2.js +4 -0
- package/dist/_virtual/utc.cjs.js +6 -14
- package/dist/_virtual/utc.cjs2.js +4 -0
- package/dist/_virtual/utc.es.js +5 -13
- package/dist/_virtual/utc.es2.js +4 -0
- package/dist/index.cjs.js +6 -15
- package/dist/index.es.js +4 -13
- package/dist/libs/config/defaultConfig.cjs.js +0 -11
- package/dist/libs/config/defaultConfig.es.js +0 -11
- package/dist/libs/config/getConfig.cjs.js +0 -11
- package/dist/libs/config/getConfig.es.js +0 -11
- package/dist/libs/config/index.d.ts +1 -1
- package/dist/libs/config/setConfig.cjs.js +0 -11
- package/dist/libs/config/setConfig.es.js +0 -11
- package/dist/libs/control/bgScrollStop.cjs.js +0 -11
- package/dist/libs/control/bgScrollStop.es.js +0 -11
- package/dist/libs/control/pd.cjs.js +0 -11
- package/dist/libs/control/pd.es.js +0 -11
- package/dist/libs/control/scrollToHash.cjs.js +0 -11
- package/dist/libs/control/scrollToHash.es.js +0 -11
- package/dist/libs/control/videoPlayControl.cjs.js +0 -11
- package/dist/libs/control/videoPlayControl.es.js +0 -11
- package/dist/libs/convert/changeDateStringToSpecificFormat.cjs.js +2 -13
- package/dist/libs/convert/changeDateStringToSpecificFormat.es.js +2 -13
- package/dist/libs/convert/jsonStringToJsonObject.cjs.js +0 -11
- package/dist/libs/convert/jsonStringToJsonObject.es.js +0 -11
- package/dist/libs/eventControl/debounce.cjs.js +0 -11
- package/dist/libs/eventControl/debounce.es.js +0 -11
- package/dist/libs/eventControl/throttle.cjs.js +0 -11
- package/dist/libs/eventControl/throttle.es.js +0 -11
- package/dist/libs/get/getAspectRatio.cjs.js +0 -11
- package/dist/libs/get/getAspectRatio.es.js +0 -11
- package/dist/libs/get/getClassNames.cjs.js +0 -11
- package/dist/libs/get/getClassNames.es.js +0 -11
- package/dist/libs/get/getDocumentHeight.cjs.js +0 -11
- package/dist/libs/get/getDocumentHeight.es.js +0 -11
- package/dist/libs/get/getEventPaths.cjs.js +1 -13
- package/dist/libs/get/getEventPaths.es.js +1 -13
- package/dist/libs/get/getGcd.cjs.js +0 -11
- package/dist/libs/get/getGcd.es.js +0 -11
- package/dist/libs/get/getGravatarUrl.cjs.js +9 -0
- package/dist/libs/get/getGravatarUrl.d.ts +12 -0
- package/dist/libs/get/getGravatarUrl.es.js +9 -0
- package/dist/libs/get/getGravatarUrl.test.d.ts +1 -0
- package/dist/libs/get/getOrientation.cjs.js +0 -11
- package/dist/libs/get/getOrientation.es.js +0 -11
- package/dist/libs/get/getParentList.cjs.js +0 -11
- package/dist/libs/get/getParentList.es.js +0 -11
- package/dist/libs/get/getQueryParams.cjs.js +0 -11
- package/dist/libs/get/getQueryParams.es.js +0 -11
- package/dist/libs/get/getRem.cjs.js +4 -13
- package/dist/libs/get/getRem.d.ts +1 -0
- package/dist/libs/get/getRem.es.js +4 -13
- package/dist/libs/get/getScrollbarWidth.cjs.js +0 -11
- package/dist/libs/get/getScrollbarWidth.es.js +0 -11
- package/dist/libs/get/getSessionStorage.cjs.js +0 -11
- package/dist/libs/get/getSessionStorage.es.js +0 -11
- package/dist/libs/get/getStringLength.cjs.js +0 -11
- package/dist/libs/get/getStringLength.es.js +0 -11
- package/dist/libs/get/getStylePropertyValue.cjs.js +0 -11
- package/dist/libs/get/getStylePropertyValue.es.js +0 -11
- package/dist/libs/get/getStylePropertyValueToNumber.cjs.js +1 -12
- package/dist/libs/get/getStylePropertyValueToNumber.es.js +1 -12
- package/dist/libs/get/getUaData.cjs.js +1 -12
- package/dist/libs/get/getUaData.es.js +1 -12
- package/dist/libs/get/index.d.ts +1 -0
- package/dist/libs/is/checkDeviceSize.cjs.js +0 -11
- package/dist/libs/is/checkDeviceSize.es.js +0 -11
- package/dist/libs/is/index.d.ts +1 -1
- package/dist/libs/is/isAfterDateTime.cjs.js +0 -11
- package/dist/libs/is/isAfterDateTime.es.js +0 -11
- package/dist/libs/is/isBetweenDateTime.cjs.js +1 -12
- package/dist/libs/is/isBetweenDateTime.es.js +1 -12
- package/dist/libs/is/isExistAllElements.cjs.js +0 -11
- package/dist/libs/is/isExistAllElements.es.js +0 -11
- package/dist/libs/is/isIpad.cjs.js +0 -11
- package/dist/libs/is/isIpad.es.js +0 -11
- package/dist/libs/is/isKeyExists.cjs.js +1 -12
- package/dist/libs/is/isKeyExists.es.js +1 -12
- package/dist/libs/is/isSafari.cjs.js +0 -11
- package/dist/libs/is/isSafari.es.js +0 -11
- package/dist/libs/is/isScrollable.cjs.js +0 -11
- package/dist/libs/is/isScrollable.es.js +0 -11
- package/dist/libs/is/isTouchSupport.cjs.js +2 -13
- package/dist/libs/is/isTouchSupport.es.js +2 -13
- package/dist/libs/remove/removeAllHtmlTags.cjs.js +0 -11
- package/dist/libs/remove/removeAllHtmlTags.es.js +0 -11
- package/dist/libs/remove/removeAttribute.cjs.js +0 -11
- package/dist/libs/remove/removeAttribute.es.js +0 -11
- package/dist/libs/remove/removeSessionStorage.cjs.js +0 -11
- package/dist/libs/remove/removeSessionStorage.es.js +0 -11
- package/dist/libs/remove/removeStylePropertyValue.cjs.js +0 -11
- package/dist/libs/remove/removeStylePropertyValue.es.js +0 -11
- package/dist/libs/security/htmlSanitize.cjs.js +0 -11
- package/dist/libs/security/htmlSanitize.es.js +0 -11
- package/dist/libs/set/set100vh.cjs.js +0 -11
- package/dist/libs/set/set100vh.es.js +0 -11
- package/dist/libs/set/set100vw.cjs.js +0 -11
- package/dist/libs/set/set100vw.es.js +0 -11
- package/dist/libs/set/setAttribute.cjs.js +0 -11
- package/dist/libs/set/setAttribute.es.js +0 -11
- package/dist/libs/set/setScrollPositionToCenter.cjs.js +0 -11
- package/dist/libs/set/setScrollPositionToCenter.es.js +0 -11
- package/dist/libs/set/setSessionStorage.cjs.js +0 -11
- package/dist/libs/set/setSessionStorage.es.js +0 -11
- package/dist/libs/set/setStylePropertyValue.cjs.js +0 -11
- package/dist/libs/set/setStylePropertyValue.es.js +0 -11
- package/dist/libs/to/toBoolean.cjs.js +0 -11
- package/dist/libs/to/toBoolean.es.js +0 -11
- package/dist/libs/to/toPositiveNumber.cjs.js +0 -11
- package/dist/libs/to/toPositiveNumber.es.js +0 -11
- package/dist/libs/transform/wrapTextWithSpans.cjs.js +0 -11
- package/dist/libs/transform/wrapTextWithSpans.es.js +0 -11
- package/dist/libs/wait/sleep.cjs.js +0 -11
- package/dist/libs/wait/sleep.es.js +0 -11
- package/dist/libs/wait/waitForAllMediaLoaded.cjs.js +0 -11
- package/dist/libs/wait/waitForAllMediaLoaded.es.js +0 -11
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isBetween.cjs.js +23 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isBetween.es.js +23 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/timezone.cjs.js +71 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/timezone.es.js +71 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/utc.cjs.js +83 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/utc.es.js +83 -0
- package/package.json +20 -18
- package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isBetween.cjs.js +0 -30
- package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isBetween.es.js +0 -30
- package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/timezone.cjs.js +0 -78
- package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/timezone.es.js +0 -78
- package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/utc.cjs.js +0 -91
- package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/utc.es.js +0 -91
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.2
|
|
5
|
-
* description: A utility that is often used in web production.
|
|
6
|
-
* author: TsubasaHiga
|
|
7
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
8
|
-
* Released under the MIT License
|
|
9
|
-
*
|
|
10
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
11
|
-
* For license information, please see LICENSE.txt
|
|
12
|
-
*/
|
|
13
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
|
-
const UAParser = require("ua-parser-js");
|
|
15
3
|
const isTouchSupport = require("../is/isTouchSupport.cjs.js");
|
|
4
|
+
const UAParser = require("ua-parser-js");
|
|
16
5
|
const getUaData = () => {
|
|
17
6
|
const parser = new UAParser();
|
|
18
7
|
const result = parser.getResult();
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.2
|
|
4
|
-
* description: A utility that is often used in web production.
|
|
5
|
-
* author: TsubasaHiga
|
|
6
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
7
|
-
* Released under the MIT License
|
|
8
|
-
*
|
|
9
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
10
|
-
* For license information, please see LICENSE.txt
|
|
11
|
-
*/
|
|
12
|
-
import UAParser from "ua-parser-js";
|
|
13
1
|
import { isTouchSupport } from "../is/isTouchSupport.es.js";
|
|
2
|
+
import UAParser from "ua-parser-js";
|
|
14
3
|
const getUaData = () => {
|
|
15
4
|
const parser = new UAParser();
|
|
16
5
|
const result = parser.getResult();
|
package/dist/libs/get/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export { getClassNames } from './getClassNames';
|
|
|
6
6
|
export { getDocumentHeight } from './getDocumentHeight';
|
|
7
7
|
export { getEventPaths } from './getEventPaths';
|
|
8
8
|
export { getGcd } from './getGcd';
|
|
9
|
+
export { getGravatarUrl } from './getGravatarUrl';
|
|
9
10
|
export { getOrientation } from './getOrientation';
|
|
10
11
|
export { getParentList } from './getParentList';
|
|
11
12
|
export { getQueryParams } from './getQueryParams';
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.2
|
|
5
|
-
* description: A utility that is often used in web production.
|
|
6
|
-
* author: TsubasaHiga
|
|
7
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
8
|
-
* Released under the MIT License
|
|
9
|
-
*
|
|
10
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
11
|
-
* For license information, please see LICENSE.txt
|
|
12
|
-
*/
|
|
13
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const getConfig = require("../config/getConfig.cjs.js");
|
|
15
4
|
const checkDeviceSize = () => {
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.2
|
|
4
|
-
* description: A utility that is often used in web production.
|
|
5
|
-
* author: TsubasaHiga
|
|
6
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
7
|
-
* Released under the MIT License
|
|
8
|
-
*
|
|
9
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
10
|
-
* For license information, please see LICENSE.txt
|
|
11
|
-
*/
|
|
12
1
|
import { getConfigValue } from "../config/getConfig.es.js";
|
|
13
2
|
const checkDeviceSize = () => {
|
|
14
3
|
const breakpoint = getConfigValue("BREAKPOINT");
|
package/dist/libs/is/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Is functions
|
|
3
3
|
*/
|
|
4
|
+
export { checkDeviceSize } from './checkDeviceSize';
|
|
4
5
|
export { isAfterDateTime } from './isAfterDateTime';
|
|
5
6
|
export { isBetweenDateTime } from './isBetweenDateTime';
|
|
6
|
-
export { checkDeviceSize } from './checkDeviceSize';
|
|
7
7
|
export { isExistAllElements } from './isExistAllElements';
|
|
8
8
|
export { isIpad } from './isIpad';
|
|
9
9
|
export { isKeyExists } from './isKeyExists';
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.2
|
|
5
|
-
* description: A utility that is often used in web production.
|
|
6
|
-
* author: TsubasaHiga
|
|
7
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
8
|
-
* Released under the MIT License
|
|
9
|
-
*
|
|
10
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
11
|
-
* For license information, please see LICENSE.txt
|
|
12
|
-
*/
|
|
13
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const dayjs = require("dayjs");
|
|
15
4
|
const isAfterDateTime = (dateA, now = dayjs()) => {
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.2
|
|
4
|
-
* description: A utility that is often used in web production.
|
|
5
|
-
* author: TsubasaHiga
|
|
6
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
7
|
-
* Released under the MIT License
|
|
8
|
-
*
|
|
9
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
10
|
-
* For license information, please see LICENSE.txt
|
|
11
|
-
*/
|
|
12
1
|
import dayjs from "dayjs";
|
|
13
2
|
const isAfterDateTime = (dateA, now = dayjs()) => {
|
|
14
3
|
return now.isAfter(dayjs(dateA), "millisecond");
|
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.2
|
|
5
|
-
* description: A utility that is often used in web production.
|
|
6
|
-
* author: TsubasaHiga
|
|
7
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
8
|
-
* Released under the MIT License
|
|
9
|
-
*
|
|
10
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
11
|
-
* For license information, please see LICENSE.txt
|
|
12
|
-
*/
|
|
13
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const dayjs = require("dayjs");
|
|
15
|
-
const isBetween = require("../../
|
|
4
|
+
const isBetween = require("../../_virtual/isBetween.cjs.js");
|
|
16
5
|
dayjs.extend(isBetween.default);
|
|
17
6
|
const isBetweenDateTime = (dateA, dateB, now = dayjs()) => {
|
|
18
7
|
if (!dayjs(dateA).isValid() || !dayjs(dateB).isValid()) {
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.2
|
|
4
|
-
* description: A utility that is often used in web production.
|
|
5
|
-
* author: TsubasaHiga
|
|
6
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
7
|
-
* Released under the MIT License
|
|
8
|
-
*
|
|
9
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
10
|
-
* For license information, please see LICENSE.txt
|
|
11
|
-
*/
|
|
12
1
|
import dayjs from "dayjs";
|
|
13
|
-
import isBetween from "../../
|
|
2
|
+
import isBetween from "../../_virtual/isBetween.es.js";
|
|
14
3
|
dayjs.extend(isBetween);
|
|
15
4
|
const isBetweenDateTime = (dateA, dateB, now = dayjs()) => {
|
|
16
5
|
if (!dayjs(dateA).isValid() || !dayjs(dateB).isValid()) {
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.2
|
|
5
|
-
* description: A utility that is often used in web production.
|
|
6
|
-
* author: TsubasaHiga
|
|
7
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
8
|
-
* Released under the MIT License
|
|
9
|
-
*
|
|
10
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
11
|
-
* For license information, please see LICENSE.txt
|
|
12
|
-
*/
|
|
13
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const isExistAllElements = (elements) => {
|
|
15
4
|
return elements.length > 0 && elements.every((element) => element !== null);
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.2
|
|
4
|
-
* description: A utility that is often used in web production.
|
|
5
|
-
* author: TsubasaHiga
|
|
6
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
7
|
-
* Released under the MIT License
|
|
8
|
-
*
|
|
9
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
10
|
-
* For license information, please see LICENSE.txt
|
|
11
|
-
*/
|
|
12
1
|
const isExistAllElements = (elements) => {
|
|
13
2
|
return elements.length > 0 && elements.every((element) => element !== null);
|
|
14
3
|
};
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.2
|
|
5
|
-
* description: A utility that is often used in web production.
|
|
6
|
-
* author: TsubasaHiga
|
|
7
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
8
|
-
* Released under the MIT License
|
|
9
|
-
*
|
|
10
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
11
|
-
* For license information, please see LICENSE.txt
|
|
12
|
-
*/
|
|
13
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const getOrientation = require("../get/getOrientation.cjs.js");
|
|
15
4
|
const getUaData = require("../get/getUaData.cjs.js");
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.2
|
|
4
|
-
* description: A utility that is often used in web production.
|
|
5
|
-
* author: TsubasaHiga
|
|
6
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
7
|
-
* Released under the MIT License
|
|
8
|
-
*
|
|
9
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
10
|
-
* For license information, please see LICENSE.txt
|
|
11
|
-
*/
|
|
12
1
|
import { getOrientation } from "../get/getOrientation.es.js";
|
|
13
2
|
import { getUaData } from "../get/getUaData.es.js";
|
|
14
3
|
const isIpad = (orientation = "portrait") => {
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.2
|
|
5
|
-
* description: A utility that is often used in web production.
|
|
6
|
-
* author: TsubasaHiga
|
|
7
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
8
|
-
* Released under the MIT License
|
|
9
|
-
*
|
|
10
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
11
|
-
* For license information, please see LICENSE.txt
|
|
12
|
-
*/
|
|
13
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const isKeyExists = (obj, key) => {
|
|
15
|
-
return !!obj && Object.
|
|
4
|
+
return !!obj && Object.hasOwn(obj, key);
|
|
16
5
|
};
|
|
17
6
|
exports.isKeyExists = isKeyExists;
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.2
|
|
4
|
-
* description: A utility that is often used in web production.
|
|
5
|
-
* author: TsubasaHiga
|
|
6
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
7
|
-
* Released under the MIT License
|
|
8
|
-
*
|
|
9
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
10
|
-
* For license information, please see LICENSE.txt
|
|
11
|
-
*/
|
|
12
1
|
const isKeyExists = (obj, key) => {
|
|
13
|
-
return !!obj && Object.
|
|
2
|
+
return !!obj && Object.hasOwn(obj, key);
|
|
14
3
|
};
|
|
15
4
|
export {
|
|
16
5
|
isKeyExists
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.2
|
|
5
|
-
* description: A utility that is often used in web production.
|
|
6
|
-
* author: TsubasaHiga
|
|
7
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
8
|
-
* Released under the MIT License
|
|
9
|
-
*
|
|
10
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
11
|
-
* For license information, please see LICENSE.txt
|
|
12
|
-
*/
|
|
13
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const getUaData = require("../get/getUaData.cjs.js");
|
|
15
4
|
const isSafari = (includeMobileSafari = true) => {
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.2
|
|
4
|
-
* description: A utility that is often used in web production.
|
|
5
|
-
* author: TsubasaHiga
|
|
6
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
7
|
-
* Released under the MIT License
|
|
8
|
-
*
|
|
9
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
10
|
-
* For license information, please see LICENSE.txt
|
|
11
|
-
*/
|
|
12
1
|
import { getUaData } from "../get/getUaData.es.js";
|
|
13
2
|
const isSafari = (includeMobileSafari = true) => {
|
|
14
3
|
const clientData = getUaData();
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.2
|
|
5
|
-
* description: A utility that is often used in web production.
|
|
6
|
-
* author: TsubasaHiga
|
|
7
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
8
|
-
* Released under the MIT License
|
|
9
|
-
*
|
|
10
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
11
|
-
* For license information, please see LICENSE.txt
|
|
12
|
-
*/
|
|
13
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const isScrollable = (element) => {
|
|
15
4
|
const isScrollableX = element.scrollWidth > element.clientWidth;
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.2
|
|
4
|
-
* description: A utility that is often used in web production.
|
|
5
|
-
* author: TsubasaHiga
|
|
6
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
7
|
-
* Released under the MIT License
|
|
8
|
-
*
|
|
9
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
10
|
-
* For license information, please see LICENSE.txt
|
|
11
|
-
*/
|
|
12
1
|
const isScrollable = (element) => {
|
|
13
2
|
const isScrollableX = element.scrollWidth > element.clientWidth;
|
|
14
3
|
const isScrollableY = element.scrollHeight > element.clientHeight;
|
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.2
|
|
5
|
-
* description: A utility that is often used in web production.
|
|
6
|
-
* author: TsubasaHiga
|
|
7
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
8
|
-
* Released under the MIT License
|
|
9
|
-
*
|
|
10
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
11
|
-
* For license information, please see LICENSE.txt
|
|
12
|
-
*/
|
|
13
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const isTouchSupport = () => {
|
|
15
4
|
if (typeof window === "undefined") return false;
|
|
16
5
|
const hasTouchStart = "ontouchstart" in window && window.ontouchstart !== void 0;
|
|
17
|
-
const hasTouchPoints = typeof navigator !== "undefined" &&
|
|
6
|
+
const hasTouchPoints = typeof navigator !== "undefined" && typeof navigator.maxTouchPoints === "number" && navigator.maxTouchPoints > 0;
|
|
18
7
|
const hasMsTouchPoints = typeof navigator !== "undefined" && // We need to use type assertion since msMaxTouchPoints is not in standard Navigator type
|
|
19
|
-
|
|
8
|
+
typeof navigator.msMaxTouchPoints === "number" && navigator.msMaxTouchPoints > 0;
|
|
20
9
|
return hasTouchStart || hasTouchPoints || hasMsTouchPoints;
|
|
21
10
|
};
|
|
22
11
|
exports.isTouchSupport = isTouchSupport;
|
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.2
|
|
4
|
-
* description: A utility that is often used in web production.
|
|
5
|
-
* author: TsubasaHiga
|
|
6
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
7
|
-
* Released under the MIT License
|
|
8
|
-
*
|
|
9
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
10
|
-
* For license information, please see LICENSE.txt
|
|
11
|
-
*/
|
|
12
1
|
const isTouchSupport = () => {
|
|
13
2
|
if (typeof window === "undefined") return false;
|
|
14
3
|
const hasTouchStart = "ontouchstart" in window && window.ontouchstart !== void 0;
|
|
15
|
-
const hasTouchPoints = typeof navigator !== "undefined" &&
|
|
4
|
+
const hasTouchPoints = typeof navigator !== "undefined" && typeof navigator.maxTouchPoints === "number" && navigator.maxTouchPoints > 0;
|
|
16
5
|
const hasMsTouchPoints = typeof navigator !== "undefined" && // We need to use type assertion since msMaxTouchPoints is not in standard Navigator type
|
|
17
|
-
|
|
6
|
+
typeof navigator.msMaxTouchPoints === "number" && navigator.msMaxTouchPoints > 0;
|
|
18
7
|
return hasTouchStart || hasTouchPoints || hasMsTouchPoints;
|
|
19
8
|
};
|
|
20
9
|
export {
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.2
|
|
5
|
-
* description: A utility that is often used in web production.
|
|
6
|
-
* author: TsubasaHiga
|
|
7
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
8
|
-
* Released under the MIT License
|
|
9
|
-
*
|
|
10
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
11
|
-
* For license information, please see LICENSE.txt
|
|
12
|
-
*/
|
|
13
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const DOMPurify = require("isomorphic-dompurify");
|
|
15
4
|
const removeAllHtmlTags = (string) => {
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.2
|
|
4
|
-
* description: A utility that is often used in web production.
|
|
5
|
-
* author: TsubasaHiga
|
|
6
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
7
|
-
* Released under the MIT License
|
|
8
|
-
*
|
|
9
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
10
|
-
* For license information, please see LICENSE.txt
|
|
11
|
-
*/
|
|
12
1
|
import DOMPurify from "isomorphic-dompurify";
|
|
13
2
|
const removeAllHtmlTags = (string) => {
|
|
14
3
|
const sanitizeString = DOMPurify.sanitize(string, {
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.2
|
|
5
|
-
* description: A utility that is often used in web production.
|
|
6
|
-
* author: TsubasaHiga
|
|
7
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
8
|
-
* Released under the MIT License
|
|
9
|
-
*
|
|
10
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
11
|
-
* For license information, please see LICENSE.txt
|
|
12
|
-
*/
|
|
13
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const removeAttribute = (element, attribute) => {
|
|
15
4
|
element.removeAttribute(attribute);
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.2
|
|
4
|
-
* description: A utility that is often used in web production.
|
|
5
|
-
* author: TsubasaHiga
|
|
6
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
7
|
-
* Released under the MIT License
|
|
8
|
-
*
|
|
9
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
10
|
-
* For license information, please see LICENSE.txt
|
|
11
|
-
*/
|
|
12
1
|
const removeAttribute = (element, attribute) => {
|
|
13
2
|
element.removeAttribute(attribute);
|
|
14
3
|
};
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.2
|
|
5
|
-
* description: A utility that is often used in web production.
|
|
6
|
-
* author: TsubasaHiga
|
|
7
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
8
|
-
* Released under the MIT License
|
|
9
|
-
*
|
|
10
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
11
|
-
* For license information, please see LICENSE.txt
|
|
12
|
-
*/
|
|
13
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const store = require("store2");
|
|
15
4
|
const removeSessionStorage = (key) => {
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.2
|
|
4
|
-
* description: A utility that is often used in web production.
|
|
5
|
-
* author: TsubasaHiga
|
|
6
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
7
|
-
* Released under the MIT License
|
|
8
|
-
*
|
|
9
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
10
|
-
* For license information, please see LICENSE.txt
|
|
11
|
-
*/
|
|
12
1
|
import store from "store2";
|
|
13
2
|
const removeSessionStorage = (key) => {
|
|
14
3
|
store.session.remove(key);
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.2
|
|
5
|
-
* description: A utility that is often used in web production.
|
|
6
|
-
* author: TsubasaHiga
|
|
7
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
8
|
-
* Released under the MIT License
|
|
9
|
-
*
|
|
10
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
11
|
-
* For license information, please see LICENSE.txt
|
|
12
|
-
*/
|
|
13
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const removeStylePropertyValue = (key) => {
|
|
15
4
|
document.documentElement.style.removeProperty(key);
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.2
|
|
4
|
-
* description: A utility that is often used in web production.
|
|
5
|
-
* author: TsubasaHiga
|
|
6
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
7
|
-
* Released under the MIT License
|
|
8
|
-
*
|
|
9
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
10
|
-
* For license information, please see LICENSE.txt
|
|
11
|
-
*/
|
|
12
1
|
const removeStylePropertyValue = (key) => {
|
|
13
2
|
document.documentElement.style.removeProperty(key);
|
|
14
3
|
};
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.2
|
|
5
|
-
* description: A utility that is often used in web production.
|
|
6
|
-
* author: TsubasaHiga
|
|
7
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
8
|
-
* Released under the MIT License
|
|
9
|
-
*
|
|
10
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
11
|
-
* For license information, please see LICENSE.txt
|
|
12
|
-
*/
|
|
13
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const DOMPurify = require("isomorphic-dompurify");
|
|
15
4
|
function htmlSanitize(html, config = {}) {
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.2
|
|
4
|
-
* description: A utility that is often used in web production.
|
|
5
|
-
* author: TsubasaHiga
|
|
6
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
7
|
-
* Released under the MIT License
|
|
8
|
-
*
|
|
9
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
10
|
-
* For license information, please see LICENSE.txt
|
|
11
|
-
*/
|
|
12
1
|
import DOMPurify from "isomorphic-dompurify";
|
|
13
2
|
function htmlSanitize(html, config = {}) {
|
|
14
3
|
return DOMPurify.sanitize(html, config);
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.2
|
|
5
|
-
* description: A utility that is often used in web production.
|
|
6
|
-
* author: TsubasaHiga
|
|
7
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
8
|
-
* Released under the MIT License
|
|
9
|
-
*
|
|
10
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
11
|
-
* For license information, please see LICENSE.txt
|
|
12
|
-
*/
|
|
13
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const set100vh = (setProperty = "--vh") => {
|
|
15
4
|
const vh = window.innerHeight * 0.01;
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.2
|
|
4
|
-
* description: A utility that is often used in web production.
|
|
5
|
-
* author: TsubasaHiga
|
|
6
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
7
|
-
* Released under the MIT License
|
|
8
|
-
*
|
|
9
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
10
|
-
* For license information, please see LICENSE.txt
|
|
11
|
-
*/
|
|
12
1
|
const set100vh = (setProperty = "--vh") => {
|
|
13
2
|
const vh = window.innerHeight * 0.01;
|
|
14
3
|
document.documentElement.style.setProperty(setProperty, `${vh}px`);
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.2
|
|
5
|
-
* description: A utility that is often used in web production.
|
|
6
|
-
* author: TsubasaHiga
|
|
7
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
8
|
-
* Released under the MIT License
|
|
9
|
-
*
|
|
10
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
11
|
-
* For license information, please see LICENSE.txt
|
|
12
|
-
*/
|
|
13
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const set100vw = (setProperty = "--vw") => {
|
|
15
4
|
const vw = document.documentElement.clientWidth;
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.2
|
|
4
|
-
* description: A utility that is often used in web production.
|
|
5
|
-
* author: TsubasaHiga
|
|
6
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
7
|
-
* Released under the MIT License
|
|
8
|
-
*
|
|
9
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
10
|
-
* For license information, please see LICENSE.txt
|
|
11
|
-
*/
|
|
12
1
|
const set100vw = (setProperty = "--vw") => {
|
|
13
2
|
const vw = document.documentElement.clientWidth;
|
|
14
3
|
document.documentElement.style.setProperty(setProperty, `${vw}px`);
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.2
|
|
5
|
-
* description: A utility that is often used in web production.
|
|
6
|
-
* author: TsubasaHiga
|
|
7
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
8
|
-
* Released under the MIT License
|
|
9
|
-
*
|
|
10
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
11
|
-
* For license information, please see LICENSE.txt
|
|
12
|
-
*/
|
|
13
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const setAttribute = (element, attribute, value) => {
|
|
15
4
|
element.setAttribute(attribute, value);
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.2
|
|
4
|
-
* description: A utility that is often used in web production.
|
|
5
|
-
* author: TsubasaHiga
|
|
6
|
-
* homepage: https://github.com/TsubasaHiga/umaki
|
|
7
|
-
* Released under the MIT License
|
|
8
|
-
*
|
|
9
|
-
* This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
|
|
10
|
-
* For license information, please see LICENSE.txt
|
|
11
|
-
*/
|
|
12
1
|
const setAttribute = (element, attribute, value) => {
|
|
13
2
|
element.setAttribute(attribute, value);
|
|
14
3
|
};
|