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.
Files changed (141) hide show
  1. package/README.md +22 -0
  2. package/dist/LICENSE.txt +1 -1
  3. package/dist/_virtual/_commonjsHelpers.cjs.js +0 -13
  4. package/dist/_virtual/_commonjsHelpers.es.js +0 -13
  5. package/dist/_virtual/isBetween.cjs.js +6 -14
  6. package/dist/_virtual/isBetween.cjs2.js +4 -0
  7. package/dist/_virtual/isBetween.es.js +5 -13
  8. package/dist/_virtual/isBetween.es2.js +4 -0
  9. package/dist/_virtual/timezone.cjs.js +6 -14
  10. package/dist/_virtual/timezone.cjs2.js +4 -0
  11. package/dist/_virtual/timezone.es.js +5 -13
  12. package/dist/_virtual/timezone.es2.js +4 -0
  13. package/dist/_virtual/utc.cjs.js +6 -14
  14. package/dist/_virtual/utc.cjs2.js +4 -0
  15. package/dist/_virtual/utc.es.js +5 -13
  16. package/dist/_virtual/utc.es2.js +4 -0
  17. package/dist/index.cjs.js +6 -15
  18. package/dist/index.es.js +4 -13
  19. package/dist/libs/config/defaultConfig.cjs.js +0 -11
  20. package/dist/libs/config/defaultConfig.es.js +0 -11
  21. package/dist/libs/config/getConfig.cjs.js +0 -11
  22. package/dist/libs/config/getConfig.es.js +0 -11
  23. package/dist/libs/config/index.d.ts +1 -1
  24. package/dist/libs/config/setConfig.cjs.js +0 -11
  25. package/dist/libs/config/setConfig.es.js +0 -11
  26. package/dist/libs/control/bgScrollStop.cjs.js +0 -11
  27. package/dist/libs/control/bgScrollStop.es.js +0 -11
  28. package/dist/libs/control/pd.cjs.js +0 -11
  29. package/dist/libs/control/pd.es.js +0 -11
  30. package/dist/libs/control/scrollToHash.cjs.js +0 -11
  31. package/dist/libs/control/scrollToHash.es.js +0 -11
  32. package/dist/libs/control/videoPlayControl.cjs.js +0 -11
  33. package/dist/libs/control/videoPlayControl.es.js +0 -11
  34. package/dist/libs/convert/changeDateStringToSpecificFormat.cjs.js +2 -13
  35. package/dist/libs/convert/changeDateStringToSpecificFormat.es.js +2 -13
  36. package/dist/libs/convert/jsonStringToJsonObject.cjs.js +0 -11
  37. package/dist/libs/convert/jsonStringToJsonObject.es.js +0 -11
  38. package/dist/libs/eventControl/debounce.cjs.js +0 -11
  39. package/dist/libs/eventControl/debounce.es.js +0 -11
  40. package/dist/libs/eventControl/throttle.cjs.js +0 -11
  41. package/dist/libs/eventControl/throttle.es.js +0 -11
  42. package/dist/libs/get/getAspectRatio.cjs.js +0 -11
  43. package/dist/libs/get/getAspectRatio.es.js +0 -11
  44. package/dist/libs/get/getClassNames.cjs.js +0 -11
  45. package/dist/libs/get/getClassNames.es.js +0 -11
  46. package/dist/libs/get/getDocumentHeight.cjs.js +0 -11
  47. package/dist/libs/get/getDocumentHeight.es.js +0 -11
  48. package/dist/libs/get/getEventPaths.cjs.js +1 -13
  49. package/dist/libs/get/getEventPaths.es.js +1 -13
  50. package/dist/libs/get/getGcd.cjs.js +0 -11
  51. package/dist/libs/get/getGcd.es.js +0 -11
  52. package/dist/libs/get/getGravatarUrl.cjs.js +9 -0
  53. package/dist/libs/get/getGravatarUrl.d.ts +12 -0
  54. package/dist/libs/get/getGravatarUrl.es.js +9 -0
  55. package/dist/libs/get/getGravatarUrl.test.d.ts +1 -0
  56. package/dist/libs/get/getOrientation.cjs.js +0 -11
  57. package/dist/libs/get/getOrientation.es.js +0 -11
  58. package/dist/libs/get/getParentList.cjs.js +0 -11
  59. package/dist/libs/get/getParentList.es.js +0 -11
  60. package/dist/libs/get/getQueryParams.cjs.js +0 -11
  61. package/dist/libs/get/getQueryParams.es.js +0 -11
  62. package/dist/libs/get/getRem.cjs.js +4 -13
  63. package/dist/libs/get/getRem.d.ts +1 -0
  64. package/dist/libs/get/getRem.es.js +4 -13
  65. package/dist/libs/get/getScrollbarWidth.cjs.js +0 -11
  66. package/dist/libs/get/getScrollbarWidth.es.js +0 -11
  67. package/dist/libs/get/getSessionStorage.cjs.js +0 -11
  68. package/dist/libs/get/getSessionStorage.es.js +0 -11
  69. package/dist/libs/get/getStringLength.cjs.js +0 -11
  70. package/dist/libs/get/getStringLength.es.js +0 -11
  71. package/dist/libs/get/getStylePropertyValue.cjs.js +0 -11
  72. package/dist/libs/get/getStylePropertyValue.es.js +0 -11
  73. package/dist/libs/get/getStylePropertyValueToNumber.cjs.js +1 -12
  74. package/dist/libs/get/getStylePropertyValueToNumber.es.js +1 -12
  75. package/dist/libs/get/getUaData.cjs.js +1 -12
  76. package/dist/libs/get/getUaData.es.js +1 -12
  77. package/dist/libs/get/index.d.ts +1 -0
  78. package/dist/libs/is/checkDeviceSize.cjs.js +0 -11
  79. package/dist/libs/is/checkDeviceSize.es.js +0 -11
  80. package/dist/libs/is/index.d.ts +1 -1
  81. package/dist/libs/is/isAfterDateTime.cjs.js +0 -11
  82. package/dist/libs/is/isAfterDateTime.es.js +0 -11
  83. package/dist/libs/is/isBetweenDateTime.cjs.js +1 -12
  84. package/dist/libs/is/isBetweenDateTime.es.js +1 -12
  85. package/dist/libs/is/isExistAllElements.cjs.js +0 -11
  86. package/dist/libs/is/isExistAllElements.es.js +0 -11
  87. package/dist/libs/is/isIpad.cjs.js +0 -11
  88. package/dist/libs/is/isIpad.es.js +0 -11
  89. package/dist/libs/is/isKeyExists.cjs.js +1 -12
  90. package/dist/libs/is/isKeyExists.es.js +1 -12
  91. package/dist/libs/is/isSafari.cjs.js +0 -11
  92. package/dist/libs/is/isSafari.es.js +0 -11
  93. package/dist/libs/is/isScrollable.cjs.js +0 -11
  94. package/dist/libs/is/isScrollable.es.js +0 -11
  95. package/dist/libs/is/isTouchSupport.cjs.js +2 -13
  96. package/dist/libs/is/isTouchSupport.es.js +2 -13
  97. package/dist/libs/remove/removeAllHtmlTags.cjs.js +0 -11
  98. package/dist/libs/remove/removeAllHtmlTags.es.js +0 -11
  99. package/dist/libs/remove/removeAttribute.cjs.js +0 -11
  100. package/dist/libs/remove/removeAttribute.es.js +0 -11
  101. package/dist/libs/remove/removeSessionStorage.cjs.js +0 -11
  102. package/dist/libs/remove/removeSessionStorage.es.js +0 -11
  103. package/dist/libs/remove/removeStylePropertyValue.cjs.js +0 -11
  104. package/dist/libs/remove/removeStylePropertyValue.es.js +0 -11
  105. package/dist/libs/security/htmlSanitize.cjs.js +0 -11
  106. package/dist/libs/security/htmlSanitize.es.js +0 -11
  107. package/dist/libs/set/set100vh.cjs.js +0 -11
  108. package/dist/libs/set/set100vh.es.js +0 -11
  109. package/dist/libs/set/set100vw.cjs.js +0 -11
  110. package/dist/libs/set/set100vw.es.js +0 -11
  111. package/dist/libs/set/setAttribute.cjs.js +0 -11
  112. package/dist/libs/set/setAttribute.es.js +0 -11
  113. package/dist/libs/set/setScrollPositionToCenter.cjs.js +0 -11
  114. package/dist/libs/set/setScrollPositionToCenter.es.js +0 -11
  115. package/dist/libs/set/setSessionStorage.cjs.js +0 -11
  116. package/dist/libs/set/setSessionStorage.es.js +0 -11
  117. package/dist/libs/set/setStylePropertyValue.cjs.js +0 -11
  118. package/dist/libs/set/setStylePropertyValue.es.js +0 -11
  119. package/dist/libs/to/toBoolean.cjs.js +0 -11
  120. package/dist/libs/to/toBoolean.es.js +0 -11
  121. package/dist/libs/to/toPositiveNumber.cjs.js +0 -11
  122. package/dist/libs/to/toPositiveNumber.es.js +0 -11
  123. package/dist/libs/transform/wrapTextWithSpans.cjs.js +0 -11
  124. package/dist/libs/transform/wrapTextWithSpans.es.js +0 -11
  125. package/dist/libs/wait/sleep.cjs.js +0 -11
  126. package/dist/libs/wait/sleep.es.js +0 -11
  127. package/dist/libs/wait/waitForAllMediaLoaded.cjs.js +0 -11
  128. package/dist/libs/wait/waitForAllMediaLoaded.es.js +0 -11
  129. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isBetween.cjs.js +23 -0
  130. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isBetween.es.js +23 -0
  131. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/timezone.cjs.js +71 -0
  132. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/timezone.es.js +71 -0
  133. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/utc.cjs.js +83 -0
  134. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/utc.es.js +83 -0
  135. package/package.json +20 -18
  136. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isBetween.cjs.js +0 -30
  137. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isBetween.es.js +0 -30
  138. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/timezone.cjs.js +0 -78
  139. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/timezone.es.js +0 -78
  140. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/utc.cjs.js +0 -91
  141. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/utc.es.js +0 -91
@@ -1,17 +1,6 @@
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 timezone from "../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/timezone.es.js";
14
- import utc from "../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/utc.es.js";
2
+ import timezone from "../../_virtual/timezone.es.js";
3
+ import utc from "../../_virtual/utc.es.js";
15
4
  const changeDateStringToSpecificFormat = (date, format = "YYYY年MM月DD日", tz) => {
16
5
  if (tz) {
17
6
  dayjs.extend(utc);
@@ -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 jsonStringToJsonObject = (string) => {
15
4
  try {
@@ -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 jsonStringToJsonObject = (string) => {
13
2
  try {
14
3
  return JSON.parse(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 debounce = (fn, delay) => {
15
4
  let timeoutId = 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 debounce = (fn, delay) => {
13
2
  let timeoutId = null;
14
3
  return (...args) => {
@@ -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 throttle = (fn, wait) => {
15
4
  let lastCallTime = 0;
@@ -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 throttle = (fn, wait) => {
13
2
  let lastCallTime = 0;
14
3
  return (...args) => {
@@ -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 getGcd = require("./getGcd.cjs.js");
15
4
  const getAspectRatio = (w, h) => {
@@ -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 { getGcd } from "./getGcd.es.js";
13
2
  const getAspectRatio = (w, h) => {
14
3
  const gcd = getGcd(w, h);
@@ -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 getClassNames = (target) => {
15
4
  const list = String(target.classList).split(" ").filter((v) => v);
@@ -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 getClassNames = (target) => {
13
2
  const list = String(target.classList).split(" ").filter((v) => v);
14
3
  return list;
@@ -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 getDocumentHeight = () => document.body.clientHeight - window.innerHeight;
15
4
  exports.getDocumentHeight = getDocumentHeight;
@@ -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 getDocumentHeight = () => document.body.clientHeight - window.innerHeight;
13
2
  export {
14
3
  getDocumentHeight
@@ -1,19 +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 getEventPaths = (evt) => {
15
- var _a;
16
- let path = ((_a = evt.composedPath) == null ? void 0 : _a.call(evt)) || null;
4
+ let path = evt.composedPath?.() || null;
17
5
  const target = evt.target;
18
6
  if (path != null) {
19
7
  path = path.indexOf(window) < 0 ? path.concat([window]) : path;
@@ -1,17 +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 getEventPaths = (evt) => {
13
- var _a;
14
- let path = ((_a = evt.composedPath) == null ? void 0 : _a.call(evt)) || null;
2
+ let path = evt.composedPath?.() || null;
15
3
  const target = evt.target;
16
4
  if (path != null) {
17
5
  path = path.indexOf(window) < 0 ? path.concat([window]) : path;
@@ -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 toPositiveNumber = require("../to/toPositiveNumber.cjs.js");
15
4
  const getGcd = (a, b) => {
@@ -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 { toPositiveNumber } from "../to/toPositiveNumber.es.js";
13
2
  const getGcd = (a, b) => {
14
3
  const positiveA = toPositiveNumber(Math.abs(a));
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const md5 = require("md5");
4
+ const getGravatarUrl = (email, size) => {
5
+ const normalizedEmail = email.trim().toLowerCase();
6
+ const gravatarUrl = `https://www.gravatar.com/avatar/${md5(normalizedEmail)}?s=${size}&d=404`;
7
+ return gravatarUrl;
8
+ };
9
+ exports.getGravatarUrl = getGravatarUrl;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Generates a Gravatar avatar image URL from an email address and size parameter.
3
+ *
4
+ * This function creates a Gravatar URL by normalizing the email (trimming whitespace
5
+ * and converting to lowercase), generating an MD5 hash, and appending the size
6
+ * parameter with a 404 fallback.
7
+ *
8
+ * @param email - The email address to generate the Gravatar URL for.
9
+ * @param size - The size of the avatar image in pixels.
10
+ * @returns The Gravatar avatar image URL.
11
+ */
12
+ export declare const getGravatarUrl: (email: string, size: number) => string;
@@ -0,0 +1,9 @@
1
+ import md5 from "md5";
2
+ const getGravatarUrl = (email, size) => {
3
+ const normalizedEmail = email.trim().toLowerCase();
4
+ const gravatarUrl = `https://www.gravatar.com/avatar/${md5(normalizedEmail)}?s=${size}&d=404`;
5
+ return gravatarUrl;
6
+ };
7
+ export {
8
+ getGravatarUrl
9
+ };
@@ -0,0 +1 @@
1
+ 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 getOrientation = () => {
15
4
  const isLandscape = window.matchMedia("(orientation: landscape)").matches;
@@ -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 getOrientation = () => {
13
2
  const isLandscape = window.matchMedia("(orientation: landscape)").matches;
14
3
  return isLandscape ? "landscape" : "portrait";
@@ -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 getParentList = (element) => {
15
4
  const parentElement = element.parentElement;
@@ -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 getParentList = (element) => {
13
2
  const parentElement = element.parentElement;
14
3
  if (!parentElement) return [element];
@@ -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 queryString = require("query-string");
15
4
  const queryStringOptions = {
@@ -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 queryString from "query-string";
13
2
  const queryStringOptions = {
14
3
  arrayFormat: "comma",
@@ -1,18 +1,9 @@
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 getRem = (px) => {
15
- const baseFontSize = 16;
16
- return `${px / baseFontSize}rem`;
4
+ const rootFontSize = parseFloat(
5
+ getComputedStyle(document.documentElement).fontSize
6
+ );
7
+ return `${px / rootFontSize}rem`;
17
8
  };
18
9
  exports.getRem = getRem;
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * Converts a pixel value to rem units.
3
+ * Calculates based on the actual root font size of the document.
3
4
  *
4
5
  * @param px - The pixel value to be converted.
5
6
  * @returns The equivalent value in rem units as a string.
@@ -1,17 +1,8 @@
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 getRem = (px) => {
13
- const baseFontSize = 16;
14
- return `${px / baseFontSize}rem`;
2
+ const rootFontSize = parseFloat(
3
+ getComputedStyle(document.documentElement).fontSize
4
+ );
5
+ return `${px / rootFontSize}rem`;
15
6
  };
16
7
  export {
17
8
  getRem
@@ -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 getScrollbarWidth = () => window.innerWidth - document.body.clientWidth;
15
4
  exports.getScrollbarWidth = getScrollbarWidth;
@@ -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 getScrollbarWidth = () => window.innerWidth - document.body.clientWidth;
13
2
  export {
14
3
  getScrollbarWidth
@@ -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 getSessionStorage = (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 getSessionStorage = (key) => {
14
3
  const value = store.session.get(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 runes2 = require("runes2");
15
4
  const getStringLength = (str) => runes2.runes(str).length;
@@ -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 { runes } from "runes2";
13
2
  const getStringLength = (str) => runes(str).length;
14
3
  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 getStylePropertyValue = (key) => getComputedStyle(document.documentElement).getPropertyValue(key);
15
4
  exports.getStylePropertyValue = getStylePropertyValue;
@@ -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 getStylePropertyValue = (key) => getComputedStyle(document.documentElement).getPropertyValue(key);
13
2
  export {
14
3
  getStylePropertyValue
@@ -1,16 +1,5 @@
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 getStylePropertyValue = require("./getStylePropertyValue.cjs.js");
15
- const getStylePropertyValueToNumber = (key) => Number.parseInt(getStylePropertyValue.getStylePropertyValue(key)) || 0;
4
+ const getStylePropertyValueToNumber = (key) => Number.parseInt(getStylePropertyValue.getStylePropertyValue(key), 10) || 0;
16
5
  exports.getStylePropertyValueToNumber = getStylePropertyValueToNumber;
@@ -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 { getStylePropertyValue } from "./getStylePropertyValue.es.js";
13
- const getStylePropertyValueToNumber = (key) => Number.parseInt(getStylePropertyValue(key)) || 0;
2
+ const getStylePropertyValueToNumber = (key) => Number.parseInt(getStylePropertyValue(key), 10) || 0;
14
3
  export {
15
4
  getStylePropertyValueToNumber
16
5
  };