umaki 0.9.0 → 0.9.2
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/dist/index.cjs.js +1 -0
- package/dist/index.es.js +2 -1
- package/dist/libs/callback/index.d.ts +2 -2
- package/dist/libs/config/index.cjs.js +1 -0
- package/dist/libs/config/index.d.ts +4 -4
- package/dist/libs/config/index.es.js +2 -1
- package/dist/libs/control/index.d.ts +4 -4
- package/dist/libs/control/video-play-control.cjs.js +1 -1
- package/dist/libs/control/video-play-control.es.js +1 -1
- package/dist/libs/convert/index.d.ts +2 -2
- package/dist/libs/eventControl/index.d.ts +2 -2
- package/dist/libs/get/index.d.ts +16 -16
- package/dist/libs/is/index.d.ts +9 -9
- package/dist/libs/is/is-ipad.cjs.js +1 -1
- package/dist/libs/is/is-ipad.d.ts +3 -1
- package/dist/libs/is/is-ipad.es.js +1 -1
- package/dist/libs/remove/index.d.ts +4 -4
- package/dist/libs/security/index.d.ts +1 -1
- package/dist/libs/set/index.d.ts +6 -6
- package/dist/libs/to/index.d.ts +2 -2
- package/dist/libs/transform/index.d.ts +1 -1
- package/dist/libs/wait/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/libs/get/get-image-size.d.ts +0 -7
- package/dist/libs/get/get-path-from-local-public.d.ts +0 -7
- package/dist/libs/get/get-path.d.ts +0 -7
- package/dist/libs/is/is-production.d.ts +0 -1
- package/dist/libs/is/is-production.test.d.ts +0 -1
- /package/dist/libs/{get/get-path-from-local-public.test.d.ts → control/bg-scroll-stop.test.d.ts} +0 -0
- /package/dist/libs/get/{get-path.test.d.ts → get-event-paths.test.d.ts} +0 -0
package/dist/index.cjs.js
CHANGED
|
@@ -57,6 +57,7 @@ const waitForAllMediaLoaded = require("./libs/wait/wait-for-all-media-loaded.cjs
|
|
|
57
57
|
exports.tap = tap.tap;
|
|
58
58
|
exports.tapAsync = tapAsync.tapAsync;
|
|
59
59
|
exports.defaultConfig = defaultConfig.defaultConfig;
|
|
60
|
+
exports.currentConfig = getConfig.currentConfig;
|
|
60
61
|
exports.getConfig = getConfig.getConfig;
|
|
61
62
|
exports.getConfigValue = getConfig.getConfigValue;
|
|
62
63
|
exports.setConfig = setConfig.setConfig;
|
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tap } from "./libs/callback/tap.es.js";
|
|
2
2
|
import { tapAsync } from "./libs/callback/tap-async.es.js";
|
|
3
3
|
import { defaultConfig } from "./libs/config/default-config.es.js";
|
|
4
|
-
import { getConfig, getConfigValue } from "./libs/config/get-config.es.js";
|
|
4
|
+
import { currentConfig, getConfig, getConfigValue } from "./libs/config/get-config.es.js";
|
|
5
5
|
import { setConfig } from "./libs/config/set-config.es.js";
|
|
6
6
|
import { bgScrollStop } from "./libs/control/bg-scroll-stop.es.js";
|
|
7
7
|
import { pd } from "./libs/control/pd.es.js";
|
|
@@ -56,6 +56,7 @@ export {
|
|
|
56
56
|
bgScrollStop,
|
|
57
57
|
changeDateStringToSpecificFormat,
|
|
58
58
|
checkDeviceSize,
|
|
59
|
+
currentConfig,
|
|
59
60
|
debounce,
|
|
60
61
|
defaultConfig,
|
|
61
62
|
getAspectRatio,
|
|
@@ -4,6 +4,7 @@ const defaultConfig = require("./default-config.cjs.js");
|
|
|
4
4
|
const getConfig = require("./get-config.cjs.js");
|
|
5
5
|
const setConfig = require("./set-config.cjs.js");
|
|
6
6
|
exports.defaultConfig = defaultConfig.defaultConfig;
|
|
7
|
+
exports.currentConfig = getConfig.currentConfig;
|
|
7
8
|
exports.getConfig = getConfig.getConfig;
|
|
8
9
|
exports.getConfigValue = getConfig.getConfigValue;
|
|
9
10
|
exports.setConfig = setConfig.setConfig;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Configuration functions
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
4
|
+
export * from './default-config';
|
|
5
|
+
export * from './get-config';
|
|
6
|
+
export * from './set-config';
|
|
7
|
+
export * from './types';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { defaultConfig } from "./default-config.es.js";
|
|
2
|
-
import { getConfig, getConfigValue } from "./get-config.es.js";
|
|
2
|
+
import { currentConfig, getConfig, getConfigValue } from "./get-config.es.js";
|
|
3
3
|
import { setConfig } from "./set-config.es.js";
|
|
4
4
|
export {
|
|
5
|
+
currentConfig,
|
|
5
6
|
defaultConfig,
|
|
6
7
|
getConfig,
|
|
7
8
|
getConfigValue,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Control functions
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
4
|
+
export * from './bg-scroll-stop';
|
|
5
|
+
export * from './pd';
|
|
6
|
+
export * from './scroll-to-hash';
|
|
7
|
+
export * from './video-play-control';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Convert functions
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export * from './change-date-string-to-specific-format';
|
|
5
|
+
export * from './json-string-to-json-object';
|
package/dist/libs/get/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Get functions
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
4
|
+
export * from './get-aspect-ratio';
|
|
5
|
+
export * from './get-class-names';
|
|
6
|
+
export * from './get-document-height';
|
|
7
|
+
export * from './get-event-paths';
|
|
8
|
+
export * from './get-gcd';
|
|
9
|
+
export * from './get-gravatar-url';
|
|
10
|
+
export * from './get-orientation';
|
|
11
|
+
export * from './get-parent-list';
|
|
12
|
+
export * from './get-query-params';
|
|
13
|
+
export * from './get-rem';
|
|
14
|
+
export * from './get-scrollbar-width';
|
|
15
|
+
export * from './get-session-storage';
|
|
16
|
+
export * from './get-string-length';
|
|
17
|
+
export * from './get-style-property-value';
|
|
18
|
+
export * from './get-style-property-value-to-number';
|
|
19
|
+
export * from './get-ua-data';
|
package/dist/libs/is/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Is functions
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
4
|
+
export * from './check-device-size';
|
|
5
|
+
export * from './is-after-date-time';
|
|
6
|
+
export * from './is-between-date-time';
|
|
7
|
+
export * from './is-exist-all-elements';
|
|
8
|
+
export * from './is-ipad';
|
|
9
|
+
export * from './is-key-exists';
|
|
10
|
+
export * from './is-safari';
|
|
11
|
+
export * from './is-scrollable';
|
|
12
|
+
export * from './is-touch-support';
|
|
@@ -5,6 +5,6 @@ const getUaData = require("../get/get-ua-data.cjs.js");
|
|
|
5
5
|
const isIpad = (orientation = "portrait") => {
|
|
6
6
|
const clientData = getUaData.getUaData();
|
|
7
7
|
if (!clientData.touchSupport) return false;
|
|
8
|
-
return clientData.type === "laptop" && clientData.osName === "mac-os" && clientData.browserName === "safari" &&
|
|
8
|
+
return clientData.type === "laptop" && clientData.osName === "mac-os" && clientData.browserName === "safari" && getOrientation.getOrientation() === orientation;
|
|
9
9
|
};
|
|
10
10
|
exports.isIpad = isIpad;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
type Orientation = 'portrait' | 'landscape';
|
|
1
2
|
/**
|
|
2
3
|
* Determines if the device is an iPad.
|
|
3
4
|
*
|
|
4
5
|
* @param orientation - The desired screen orientation ('portrait' or 'landscape'). Defaults to 'portrait'.
|
|
5
6
|
* @returns `true` if the device is an iPad with the specified orientation, otherwise `false`.
|
|
6
7
|
*/
|
|
7
|
-
export declare const isIpad: (orientation?:
|
|
8
|
+
export declare const isIpad: (orientation?: Orientation) => boolean;
|
|
9
|
+
export {};
|
|
@@ -3,7 +3,7 @@ import { getUaData } from "../get/get-ua-data.es.js";
|
|
|
3
3
|
const isIpad = (orientation = "portrait") => {
|
|
4
4
|
const clientData = getUaData();
|
|
5
5
|
if (!clientData.touchSupport) return false;
|
|
6
|
-
return clientData.type === "laptop" && clientData.osName === "mac-os" && clientData.browserName === "safari" &&
|
|
6
|
+
return clientData.type === "laptop" && clientData.osName === "mac-os" && clientData.browserName === "safari" && getOrientation() === orientation;
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
9
|
isIpad
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Remove functions
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
4
|
+
export * from './remove-all-html-tags';
|
|
5
|
+
export * from './remove-attribute';
|
|
6
|
+
export * from './remove-session-storage';
|
|
7
|
+
export * from './remove-style-property-value';
|
package/dist/libs/set/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Set functions
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
4
|
+
export * from './set-100vh';
|
|
5
|
+
export * from './set-100vw';
|
|
6
|
+
export * from './set-attribute';
|
|
7
|
+
export * from './set-scroll-position-to-center';
|
|
8
|
+
export * from './set-session-storage';
|
|
9
|
+
export * from './set-style-property-value';
|
package/dist/libs/to/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get the full path of a file located in the local public folder.
|
|
3
|
-
*
|
|
4
|
-
* @param fileName - The name of the file for which to get the path.
|
|
5
|
-
* @returns The full path to the specified file in the local public folder.
|
|
6
|
-
*/
|
|
7
|
-
export declare const getPathFromLocalPublic: (fileName: string) => string;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Retrieves the specified path with `import.meta.env.BASE_URL` prepended to it.
|
|
3
|
-
*
|
|
4
|
-
* @param pathName - The path to be appended to the base URL.
|
|
5
|
-
* @returns The full path including the base URL.
|
|
6
|
-
*/
|
|
7
|
-
export declare const getPath: (pathName: string) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isProduction: () => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
/package/dist/libs/{get/get-path-from-local-public.test.d.ts → control/bg-scroll-stop.test.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|