umaki 0.5.0 → 0.6.1

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 (131) hide show
  1. package/README.md +59 -1
  2. package/dist/_virtual/_commonjsHelpers.cjs.js +1 -1
  3. package/dist/_virtual/_commonjsHelpers.es.js +1 -1
  4. package/dist/_virtual/isBetween.cjs.js +1 -1
  5. package/dist/_virtual/isBetween.es.js +1 -1
  6. package/dist/_virtual/timezone.cjs.js +1 -1
  7. package/dist/_virtual/timezone.es.js +1 -1
  8. package/dist/_virtual/utc.cjs.js +1 -1
  9. package/dist/_virtual/utc.es.js +1 -1
  10. package/dist/index.cjs.js +10 -1
  11. package/dist/index.d.ts +1 -0
  12. package/dist/index.es.js +10 -1
  13. package/dist/libs/config/config.test.d.ts +1 -0
  14. package/dist/libs/config/defaultConfig.cjs.js +17 -0
  15. package/dist/libs/config/defaultConfig.d.ts +5 -0
  16. package/dist/libs/config/defaultConfig.es.js +17 -0
  17. package/dist/libs/config/getConfig.cjs.js +24 -0
  18. package/dist/libs/config/getConfig.d.ts +14 -0
  19. package/dist/libs/config/getConfig.es.js +24 -0
  20. package/dist/libs/config/index.d.ts +7 -0
  21. package/dist/libs/config/setConfig.cjs.js +19 -0
  22. package/dist/libs/config/setConfig.d.ts +7 -0
  23. package/dist/libs/config/setConfig.es.js +19 -0
  24. package/dist/libs/config/types.d.ts +14 -0
  25. package/dist/libs/control/bgScrollStop.cjs.js +1 -1
  26. package/dist/libs/control/bgScrollStop.es.js +1 -1
  27. package/dist/libs/control/pd.cjs.js +1 -1
  28. package/dist/libs/control/pd.es.js +1 -1
  29. package/dist/libs/control/scrollToHash.cjs.js +1 -1
  30. package/dist/libs/control/scrollToHash.es.js +1 -1
  31. package/dist/libs/control/videoPlayControl.cjs.js +1 -1
  32. package/dist/libs/control/videoPlayControl.es.js +1 -1
  33. package/dist/libs/convert/changeDateStringToSpecificFormat.cjs.js +3 -3
  34. package/dist/libs/convert/changeDateStringToSpecificFormat.es.js +3 -3
  35. package/dist/libs/convert/jsonStringToJsonObject.cjs.js +1 -1
  36. package/dist/libs/convert/jsonStringToJsonObject.es.js +1 -1
  37. package/dist/libs/eventControl/debounce.cjs.js +1 -1
  38. package/dist/libs/eventControl/debounce.es.js +1 -1
  39. package/dist/libs/eventControl/throttle.cjs.js +1 -1
  40. package/dist/libs/eventControl/throttle.es.js +1 -1
  41. package/dist/libs/get/getAspectRatio.cjs.js +1 -1
  42. package/dist/libs/get/getAspectRatio.es.js +1 -1
  43. package/dist/libs/get/getClassNames.cjs.js +1 -1
  44. package/dist/libs/get/getClassNames.es.js +1 -1
  45. package/dist/libs/get/getDocumentHeight.cjs.js +1 -1
  46. package/dist/libs/get/getDocumentHeight.es.js +1 -1
  47. package/dist/libs/get/getEventPaths.cjs.js +1 -1
  48. package/dist/libs/get/getEventPaths.es.js +1 -1
  49. package/dist/libs/get/getGcd.cjs.js +1 -1
  50. package/dist/libs/get/getGcd.es.js +1 -1
  51. package/dist/libs/get/getOrientation.cjs.js +1 -1
  52. package/dist/libs/get/getOrientation.es.js +1 -1
  53. package/dist/libs/get/getParentList.cjs.js +1 -1
  54. package/dist/libs/get/getParentList.es.js +1 -1
  55. package/dist/libs/get/getQueryParams.cjs.js +1 -1
  56. package/dist/libs/get/getQueryParams.es.js +1 -1
  57. package/dist/libs/get/getRem.cjs.js +1 -1
  58. package/dist/libs/get/getRem.es.js +1 -1
  59. package/dist/libs/get/getScrollbarWidth.cjs.js +1 -1
  60. package/dist/libs/get/getScrollbarWidth.es.js +1 -1
  61. package/dist/libs/get/getSessionStorage.cjs.js +1 -1
  62. package/dist/libs/get/getSessionStorage.es.js +1 -1
  63. package/dist/libs/get/getStringLength.cjs.js +1 -1
  64. package/dist/libs/get/getStringLength.es.js +1 -1
  65. package/dist/libs/get/getStylePropertyValue.cjs.js +1 -1
  66. package/dist/libs/get/getStylePropertyValue.es.js +1 -1
  67. package/dist/libs/get/getStylePropertyValueToNumber.cjs.js +1 -1
  68. package/dist/libs/get/getStylePropertyValueToNumber.es.js +1 -1
  69. package/dist/libs/get/getUaData.cjs.js +1 -1
  70. package/dist/libs/get/getUaData.es.js +1 -1
  71. package/dist/libs/is/checkDeviceSize.cjs.js +22 -0
  72. package/dist/libs/is/checkDeviceSize.d.ts +5 -0
  73. package/dist/libs/is/checkDeviceSize.es.js +22 -0
  74. package/dist/libs/is/checkDeviceSize.test.d.ts +1 -0
  75. package/dist/libs/is/index.d.ts +1 -0
  76. package/dist/libs/is/isAfterDateTime.cjs.js +1 -1
  77. package/dist/libs/is/isAfterDateTime.es.js +1 -1
  78. package/dist/libs/is/isBetweenDateTime.cjs.js +2 -2
  79. package/dist/libs/is/isBetweenDateTime.es.js +2 -2
  80. package/dist/libs/is/isExistAllElements.cjs.js +1 -1
  81. package/dist/libs/is/isExistAllElements.es.js +1 -1
  82. package/dist/libs/is/isIpad.cjs.js +1 -1
  83. package/dist/libs/is/isIpad.es.js +1 -1
  84. package/dist/libs/is/isKeyExists.cjs.js +1 -1
  85. package/dist/libs/is/isKeyExists.es.js +1 -1
  86. package/dist/libs/is/isSafari.cjs.js +1 -1
  87. package/dist/libs/is/isSafari.es.js +1 -1
  88. package/dist/libs/is/isScrollable.cjs.js +1 -1
  89. package/dist/libs/is/isScrollable.es.js +1 -1
  90. package/dist/libs/is/isTouchSupport.cjs.js +9 -3
  91. package/dist/libs/is/isTouchSupport.es.js +9 -3
  92. package/dist/libs/is/isTouchSupport.test.d.ts +1 -0
  93. package/dist/libs/remove/removeAllHtmlTags.cjs.js +1 -1
  94. package/dist/libs/remove/removeAllHtmlTags.es.js +1 -1
  95. package/dist/libs/remove/removeAttribute.cjs.js +1 -1
  96. package/dist/libs/remove/removeAttribute.es.js +1 -1
  97. package/dist/libs/remove/removeSessionStorage.cjs.js +1 -1
  98. package/dist/libs/remove/removeSessionStorage.es.js +1 -1
  99. package/dist/libs/remove/removeStylePropertyValue.cjs.js +1 -1
  100. package/dist/libs/remove/removeStylePropertyValue.es.js +1 -1
  101. package/dist/libs/security/htmlSanitize.cjs.js +1 -1
  102. package/dist/libs/security/htmlSanitize.es.js +1 -1
  103. package/dist/libs/set/set100vh.cjs.js +1 -1
  104. package/dist/libs/set/set100vh.es.js +1 -1
  105. package/dist/libs/set/set100vw.cjs.js +1 -1
  106. package/dist/libs/set/set100vw.es.js +1 -1
  107. package/dist/libs/set/setAttribute.cjs.js +1 -1
  108. package/dist/libs/set/setAttribute.es.js +1 -1
  109. package/dist/libs/set/setScrollPositionToCenter.cjs.js +1 -1
  110. package/dist/libs/set/setScrollPositionToCenter.es.js +1 -1
  111. package/dist/libs/set/setSessionStorage.cjs.js +1 -1
  112. package/dist/libs/set/setSessionStorage.es.js +1 -1
  113. package/dist/libs/set/setStylePropertyValue.cjs.js +1 -1
  114. package/dist/libs/set/setStylePropertyValue.es.js +1 -1
  115. package/dist/libs/to/toBoolean.cjs.js +1 -1
  116. package/dist/libs/to/toBoolean.es.js +1 -1
  117. package/dist/libs/to/toPositiveNumber.cjs.js +1 -1
  118. package/dist/libs/to/toPositiveNumber.es.js +1 -1
  119. package/dist/libs/transform/wrapTextWithSpans.cjs.js +1 -1
  120. package/dist/libs/transform/wrapTextWithSpans.es.js +1 -1
  121. package/dist/libs/wait/sleep.cjs.js +1 -1
  122. package/dist/libs/wait/sleep.es.js +1 -1
  123. package/dist/libs/wait/waitForAllMediaLoaded.cjs.js +1 -1
  124. package/dist/libs/wait/waitForAllMediaLoaded.es.js +1 -1
  125. package/dist/node_modules/{dayjs → .pnpm/dayjs@1.11.13/node_modules/dayjs}/plugin/isBetween.cjs.js +3 -3
  126. package/dist/node_modules/{dayjs → .pnpm/dayjs@1.11.13/node_modules/dayjs}/plugin/isBetween.es.js +3 -3
  127. package/dist/node_modules/{dayjs → .pnpm/dayjs@1.11.13/node_modules/dayjs}/plugin/timezone.cjs.js +3 -3
  128. package/dist/node_modules/{dayjs → .pnpm/dayjs@1.11.13/node_modules/dayjs}/plugin/timezone.es.js +3 -3
  129. package/dist/node_modules/{dayjs → .pnpm/dayjs@1.11.13/node_modules/dayjs}/plugin/utc.cjs.js +3 -3
  130. package/dist/node_modules/{dayjs → .pnpm/dayjs@1.11.13/node_modules/dayjs}/plugin/utc.es.js +3 -3
  131. package/package.json +2 -4
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  ![character](docs/character.jpg)
10
10
 
11
- A package that allows you to import frequently used utilities for web development in one place. Primarily, it includes utilities that I often use. If you have any requests for the contents or types of utilities, please open an issue.
11
+ Umaki is your one-stop solution for web development utilities, bringing together a carefully curated collection of powerful tools in a single, easy-to-use package. Crafted from real-world development experience, these utilities solve common challenges and streamline your workflow. Have a utility in mind that would make your development easier? Feel free to open an issue—I'm actively expanding this collection!
12
12
 
13
13
  ## Usage
14
14
 
@@ -16,6 +16,44 @@ A package that allows you to import frequently used utilities for web developmen
16
16
  import { foo } from "umaki";
17
17
  ```
18
18
 
19
+ ## Configuration
20
+
21
+ ### setConfig
22
+
23
+ A function to set or update global configuration options for the umaki library.
24
+
25
+ ```ts
26
+ import { setConfig } from "umaki";
27
+
28
+ // Set a custom breakpoint value
29
+ setConfig({ BREAKPOINT: 1024 });
30
+
31
+ // You can also add custom configuration properties
32
+ setConfig({ customValue: "example" });
33
+ ```
34
+
35
+ ### getConfig
36
+
37
+ A function to retrieve the entire current configuration object.
38
+
39
+ ```ts
40
+ import { getConfig } from "umaki";
41
+
42
+ const config = getConfig();
43
+ console.log(config.BREAKPOINT); // e.g. 768 (default) or custom value if set
44
+ ```
45
+
46
+ ### getConfigValue
47
+
48
+ A function to retrieve a specific configuration value by key.
49
+
50
+ ```ts
51
+ import { getConfigValue } from "umaki";
52
+
53
+ const breakpoint = getConfigValue('BREAKPOINT');
54
+ console.log(breakpoint); // e.g. 768 (default) or custom value if set
55
+ ```
56
+
19
57
  ## List of Utilities
20
58
 
21
59
  - [Control](#control)
@@ -54,6 +92,7 @@ import { foo } from "umaki";
54
92
  - [isSafari](#issafari)
55
93
  - [isScrollable](#isscrollable)
56
94
  - [isTouchSupport](#istouchsupport)
95
+ - [checkDeviceSize](#checkdevicesize)
57
96
  - [Remove](#remove)
58
97
  - [removeAllHtmlTags](#removeallhtmltags)
59
98
  - [removeAttribute](#removeattribute)
@@ -572,6 +611,25 @@ console.log(result); // true or false
572
611
 
573
612
  [View file →](src/libs/is/isTouchSupport.ts)
574
613
 
614
+ ### checkDeviceSize
615
+
616
+ A function that checks the current device size based on window width and the configured breakpoint.
617
+
618
+ ```ts
619
+ import { checkDeviceSize, setConfig } from "umaki";
620
+
621
+ // Using default breakpoint (768px)
622
+ const deviceSize = checkDeviceSize();
623
+ console.log(deviceSize); // 'md' if window.innerWidth > 768, otherwise 'sm'
624
+
625
+ // Customize the breakpoint
626
+ setConfig({ BREAKPOINT: 1024 });
627
+ const newDeviceSize = checkDeviceSize();
628
+ console.log(newDeviceSize); // 'md' if window.innerWidth > 1024, otherwise 'sm'
629
+ ```
630
+
631
+ [View file →](src/libs/is/checkDeviceSize.ts)
632
+
575
633
  ## Remove
576
634
 
577
635
  ### removeAllHtmlTags
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /*!
3
3
  * name: umaki
4
- * version: v0.5.0
4
+ * version: v0.6.1
5
5
  * description: A utility that is often used in web production.
6
6
  * author: TsubasaHiga
7
7
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * name: umaki
3
- * version: v0.5.0
3
+ * version: v0.6.1
4
4
  * description: A utility that is often used in web production.
5
5
  * author: TsubasaHiga
6
6
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /*!
3
3
  * name: umaki
4
- * version: v0.5.0
4
+ * version: v0.6.1
5
5
  * description: A utility that is often used in web production.
6
6
  * author: TsubasaHiga
7
7
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * name: umaki
3
- * version: v0.5.0
3
+ * version: v0.6.1
4
4
  * description: A utility that is often used in web production.
5
5
  * author: TsubasaHiga
6
6
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /*!
3
3
  * name: umaki
4
- * version: v0.5.0
4
+ * version: v0.6.1
5
5
  * description: A utility that is often used in web production.
6
6
  * author: TsubasaHiga
7
7
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * name: umaki
3
- * version: v0.5.0
3
+ * version: v0.6.1
4
4
  * description: A utility that is often used in web production.
5
5
  * author: TsubasaHiga
6
6
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /*!
3
3
  * name: umaki
4
- * version: v0.5.0
4
+ * version: v0.6.1
5
5
  * description: A utility that is often used in web production.
6
6
  * author: TsubasaHiga
7
7
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * name: umaki
3
- * version: v0.5.0
3
+ * version: v0.6.1
4
4
  * description: A utility that is often used in web production.
5
5
  * author: TsubasaHiga
6
6
  * homepage: https://github.com/TsubasaHiga/umaki
package/dist/index.cjs.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /*!
3
3
  * name: umaki
4
- * version: v0.5.0
4
+ * version: v0.6.1
5
5
  * description: A utility that is often used in web production.
6
6
  * author: TsubasaHiga
7
7
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -11,6 +11,9 @@
11
11
  * For license information, please see LICENSE.txt
12
12
  */
13
13
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
+ const getConfig = require("./libs/config/getConfig.cjs.js");
15
+ const setConfig = require("./libs/config/setConfig.cjs.js");
16
+ const defaultConfig = require("./libs/config/defaultConfig.cjs.js");
14
17
  const bgScrollStop = require("./libs/control/bgScrollStop.cjs.js");
15
18
  const pd = require("./libs/control/pd.cjs.js");
16
19
  const scrollToHash = require("./libs/control/scrollToHash.cjs.js");
@@ -36,6 +39,7 @@ const getStylePropertyValueToNumber = require("./libs/get/getStylePropertyValueT
36
39
  const getUaData = require("./libs/get/getUaData.cjs.js");
37
40
  const isAfterDateTime = require("./libs/is/isAfterDateTime.cjs.js");
38
41
  const isBetweenDateTime = require("./libs/is/isBetweenDateTime.cjs.js");
42
+ const checkDeviceSize = require("./libs/is/checkDeviceSize.cjs.js");
39
43
  const isExistAllElements = require("./libs/is/isExistAllElements.cjs.js");
40
44
  const isIpad = require("./libs/is/isIpad.cjs.js");
41
45
  const isKeyExists = require("./libs/is/isKeyExists.cjs.js");
@@ -58,6 +62,10 @@ const toPositiveNumber = require("./libs/to/toPositiveNumber.cjs.js");
58
62
  const wrapTextWithSpans = require("./libs/transform/wrapTextWithSpans.cjs.js");
59
63
  const sleep = require("./libs/wait/sleep.cjs.js");
60
64
  const waitForAllMediaLoaded = require("./libs/wait/waitForAllMediaLoaded.cjs.js");
65
+ exports.getConfig = getConfig.getConfig;
66
+ exports.getConfigValue = getConfig.getConfigValue;
67
+ exports.setConfig = setConfig.setConfig;
68
+ exports.defaultConfig = defaultConfig.defaultConfig;
61
69
  exports.bgScrollStop = bgScrollStop.bgScrollStop;
62
70
  exports.pd = pd.pd;
63
71
  exports.scrollToHash = scrollToHash.scrollToHash;
@@ -83,6 +91,7 @@ exports.getStylePropertyValueToNumber = getStylePropertyValueToNumber.getStylePr
83
91
  exports.getUaData = getUaData.getUaData;
84
92
  exports.isAfterDateTime = isAfterDateTime.isAfterDateTime;
85
93
  exports.isBetweenDateTime = isBetweenDateTime.isBetweenDateTime;
94
+ exports.checkDeviceSize = checkDeviceSize.checkDeviceSize;
86
95
  exports.isExistAllElements = isExistAllElements.isExistAllElements;
87
96
  exports.isIpad = isIpad.isIpad;
88
97
  exports.isKeyExists = isKeyExists.isKeyExists;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './libs/config';
1
2
  export * from './libs/control';
2
3
  export * from './libs/convert';
3
4
  export * from './libs/eventControl';
package/dist/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * name: umaki
3
- * version: v0.5.0
3
+ * version: v0.6.1
4
4
  * description: A utility that is often used in web production.
5
5
  * author: TsubasaHiga
6
6
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -9,6 +9,9 @@
9
9
  * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
10
10
  * For license information, please see LICENSE.txt
11
11
  */
12
+ import { getConfig, getConfigValue } from "./libs/config/getConfig.es.js";
13
+ import { setConfig } from "./libs/config/setConfig.es.js";
14
+ import { defaultConfig } from "./libs/config/defaultConfig.es.js";
12
15
  import { bgScrollStop } from "./libs/control/bgScrollStop.es.js";
13
16
  import { pd } from "./libs/control/pd.es.js";
14
17
  import { scrollToHash } from "./libs/control/scrollToHash.es.js";
@@ -34,6 +37,7 @@ import { getStylePropertyValueToNumber } from "./libs/get/getStylePropertyValueT
34
37
  import { getUaData } from "./libs/get/getUaData.es.js";
35
38
  import { isAfterDateTime } from "./libs/is/isAfterDateTime.es.js";
36
39
  import { isBetweenDateTime } from "./libs/is/isBetweenDateTime.es.js";
40
+ import { checkDeviceSize } from "./libs/is/checkDeviceSize.es.js";
37
41
  import { isExistAllElements } from "./libs/is/isExistAllElements.es.js";
38
42
  import { isIpad } from "./libs/is/isIpad.es.js";
39
43
  import { isKeyExists } from "./libs/is/isKeyExists.es.js";
@@ -59,9 +63,13 @@ import { waitForAllMediaLoaded } from "./libs/wait/waitForAllMediaLoaded.es.js";
59
63
  export {
60
64
  bgScrollStop,
61
65
  changeDateStringToSpecificFormat,
66
+ checkDeviceSize,
62
67
  debounce,
68
+ defaultConfig,
63
69
  getAspectRatio,
64
70
  getClassNames,
71
+ getConfig,
72
+ getConfigValue,
65
73
  getDocumentHeight,
66
74
  getEventPaths,
67
75
  getGcd,
@@ -94,6 +102,7 @@ export {
94
102
  set100vh,
95
103
  set100vw,
96
104
  setAttribute,
105
+ setConfig,
97
106
  setScrollPositionToCenter,
98
107
  setSessionStorage,
99
108
  setStylePropertyValue,
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ /*!
3
+ * name: umaki
4
+ * version: v0.6.1
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
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
+ const defaultConfig = {
15
+ BREAKPOINT: 768
16
+ };
17
+ exports.defaultConfig = defaultConfig;
@@ -0,0 +1,5 @@
1
+ import { UmakiConfig } from './types';
2
+ /**
3
+ * Default configuration values for umaki
4
+ */
5
+ export declare const defaultConfig: UmakiConfig;
@@ -0,0 +1,17 @@
1
+ /*!
2
+ * name: umaki
3
+ * version: v0.6.1
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
+ const defaultConfig = {
13
+ BREAKPOINT: 768
14
+ };
15
+ export {
16
+ defaultConfig
17
+ };
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /*!
3
+ * name: umaki
4
+ * version: v0.6.1
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
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
+ const defaultConfig = require("./defaultConfig.cjs.js");
15
+ const currentConfig = { ...defaultConfig.defaultConfig };
16
+ const getConfig = () => {
17
+ return { ...currentConfig };
18
+ };
19
+ const getConfigValue = (key) => {
20
+ return currentConfig[key];
21
+ };
22
+ exports.currentConfig = currentConfig;
23
+ exports.getConfig = getConfig;
24
+ exports.getConfigValue = getConfigValue;
@@ -0,0 +1,14 @@
1
+ import { UmakiConfig } from './types';
2
+ declare const currentConfig: UmakiConfig;
3
+ /**
4
+ * Get the current configuration
5
+ * @returns The current configuration object
6
+ */
7
+ export declare const getConfig: () => UmakiConfig;
8
+ /**
9
+ * Get a specific configuration value by key
10
+ * @param key - The configuration key to retrieve
11
+ * @returns The value for the specified key, or undefined if the key doesn't exist
12
+ */
13
+ export declare const getConfigValue: <K extends keyof UmakiConfig>(key: K) => UmakiConfig[K];
14
+ export { currentConfig };
@@ -0,0 +1,24 @@
1
+ /*!
2
+ * name: umaki
3
+ * version: v0.6.1
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 { defaultConfig } from "./defaultConfig.es.js";
13
+ const currentConfig = { ...defaultConfig };
14
+ const getConfig = () => {
15
+ return { ...currentConfig };
16
+ };
17
+ const getConfigValue = (key) => {
18
+ return currentConfig[key];
19
+ };
20
+ export {
21
+ currentConfig,
22
+ getConfig,
23
+ getConfigValue
24
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Configuration functions
3
+ */
4
+ export { getConfig, getConfigValue } from './getConfig';
5
+ export { setConfig } from './setConfig';
6
+ export { defaultConfig } from './defaultConfig';
7
+ export type { UmakiConfig } from './types';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ /*!
3
+ * name: umaki
4
+ * version: v0.6.1
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
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
+ const getConfig = require("./getConfig.cjs.js");
15
+ const setConfig = (config) => {
16
+ Object.assign(getConfig.currentConfig, config);
17
+ return { ...getConfig.currentConfig };
18
+ };
19
+ exports.setConfig = setConfig;
@@ -0,0 +1,7 @@
1
+ import { UmakiConfig } from './types';
2
+ /**
3
+ * Set or update the configuration
4
+ * @param config - Configuration object with values to update
5
+ * @returns The updated configuration object
6
+ */
7
+ export declare const setConfig: (config: Partial<UmakiConfig>) => UmakiConfig;
@@ -0,0 +1,19 @@
1
+ /*!
2
+ * name: umaki
3
+ * version: v0.6.1
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 { currentConfig } from "./getConfig.es.js";
13
+ const setConfig = (config) => {
14
+ Object.assign(currentConfig, config);
15
+ return { ...currentConfig };
16
+ };
17
+ export {
18
+ setConfig
19
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Configuration options for the umaki library
3
+ */
4
+ export interface UmakiConfig {
5
+ /**
6
+ * Breakpoint value in pixels used for responsive design functions
7
+ * @default 768
8
+ */
9
+ BREAKPOINT: number;
10
+ /**
11
+ * Any additional custom configuration properties
12
+ */
13
+ [key: string]: unknown;
14
+ }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /*!
3
3
  * name: umaki
4
- * version: v0.5.0
4
+ * version: v0.6.1
5
5
  * description: A utility that is often used in web production.
6
6
  * author: TsubasaHiga
7
7
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * name: umaki
3
- * version: v0.5.0
3
+ * version: v0.6.1
4
4
  * description: A utility that is often used in web production.
5
5
  * author: TsubasaHiga
6
6
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /*!
3
3
  * name: umaki
4
- * version: v0.5.0
4
+ * version: v0.6.1
5
5
  * description: A utility that is often used in web production.
6
6
  * author: TsubasaHiga
7
7
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * name: umaki
3
- * version: v0.5.0
3
+ * version: v0.6.1
4
4
  * description: A utility that is often used in web production.
5
5
  * author: TsubasaHiga
6
6
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /*!
3
3
  * name: umaki
4
- * version: v0.5.0
4
+ * version: v0.6.1
5
5
  * description: A utility that is often used in web production.
6
6
  * author: TsubasaHiga
7
7
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * name: umaki
3
- * version: v0.5.0
3
+ * version: v0.6.1
4
4
  * description: A utility that is often used in web production.
5
5
  * author: TsubasaHiga
6
6
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /*!
3
3
  * name: umaki
4
- * version: v0.5.0
4
+ * version: v0.6.1
5
5
  * description: A utility that is often used in web production.
6
6
  * author: TsubasaHiga
7
7
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * name: umaki
3
- * version: v0.5.0
3
+ * version: v0.6.1
4
4
  * description: A utility that is often used in web production.
5
5
  * author: TsubasaHiga
6
6
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /*!
3
3
  * name: umaki
4
- * version: v0.5.0
4
+ * version: v0.6.1
5
5
  * description: A utility that is often used in web production.
6
6
  * author: TsubasaHiga
7
7
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -12,8 +12,8 @@
12
12
  */
13
13
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
14
  const dayjs = require("dayjs");
15
- const timezone = require("../../node_modules/dayjs/plugin/timezone.cjs.js");
16
- const utc = require("../../node_modules/dayjs/plugin/utc.cjs.js");
15
+ const timezone = require("../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/timezone.cjs.js");
16
+ const utc = require("../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/utc.cjs.js");
17
17
  const changeDateStringToSpecificFormat = (date, format = "YYYY年MM月DD日", tz) => {
18
18
  if (tz) {
19
19
  dayjs.extend(utc.default);
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * name: umaki
3
- * version: v0.5.0
3
+ * version: v0.6.1
4
4
  * description: A utility that is often used in web production.
5
5
  * author: TsubasaHiga
6
6
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -10,8 +10,8 @@
10
10
  * For license information, please see LICENSE.txt
11
11
  */
12
12
  import dayjs from "dayjs";
13
- import timezone from "../../node_modules/dayjs/plugin/timezone.es.js";
14
- import utc from "../../node_modules/dayjs/plugin/utc.es.js";
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";
15
15
  const changeDateStringToSpecificFormat = (date, format = "YYYY年MM月DD日", tz) => {
16
16
  if (tz) {
17
17
  dayjs.extend(utc);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /*!
3
3
  * name: umaki
4
- * version: v0.5.0
4
+ * version: v0.6.1
5
5
  * description: A utility that is often used in web production.
6
6
  * author: TsubasaHiga
7
7
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * name: umaki
3
- * version: v0.5.0
3
+ * version: v0.6.1
4
4
  * description: A utility that is often used in web production.
5
5
  * author: TsubasaHiga
6
6
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /*!
3
3
  * name: umaki
4
- * version: v0.5.0
4
+ * version: v0.6.1
5
5
  * description: A utility that is often used in web production.
6
6
  * author: TsubasaHiga
7
7
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * name: umaki
3
- * version: v0.5.0
3
+ * version: v0.6.1
4
4
  * description: A utility that is often used in web production.
5
5
  * author: TsubasaHiga
6
6
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /*!
3
3
  * name: umaki
4
- * version: v0.5.0
4
+ * version: v0.6.1
5
5
  * description: A utility that is often used in web production.
6
6
  * author: TsubasaHiga
7
7
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * name: umaki
3
- * version: v0.5.0
3
+ * version: v0.6.1
4
4
  * description: A utility that is often used in web production.
5
5
  * author: TsubasaHiga
6
6
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /*!
3
3
  * name: umaki
4
- * version: v0.5.0
4
+ * version: v0.6.1
5
5
  * description: A utility that is often used in web production.
6
6
  * author: TsubasaHiga
7
7
  * homepage: https://github.com/TsubasaHiga/umaki
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * name: umaki
3
- * version: v0.5.0
3
+ * version: v0.6.1
4
4
  * description: A utility that is often used in web production.
5
5
  * author: TsubasaHiga
6
6
  * homepage: https://github.com/TsubasaHiga/umaki