@studiometa/js-toolkit 2.0.0-beta.12 → 2.0.0-beta.16
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/Base/index.cjs +72 -64
- package/Base/index.js +60 -54
- package/Base/managers/ChildrenManager.cjs +20 -11
- package/Base/managers/ChildrenManager.js +15 -8
- package/Base/managers/EventsManager.cjs +56 -48
- package/Base/managers/EventsManager.js +50 -44
- package/Base/managers/OptionsManager.cjs +38 -28
- package/Base/managers/OptionsManager.js +35 -27
- package/Base/managers/RefsManager.cjs +14 -6
- package/Base/managers/RefsManager.js +10 -4
- package/Base/managers/ServicesManager.cjs +27 -19
- package/Base/managers/ServicesManager.js +14 -8
- package/Base/utils.cjs +3 -0
- package/decorators/index.cjs +11 -8
- package/decorators/withBreakpointManager.cjs +5 -2
- package/decorators/withBreakpointObserver.cjs +20 -12
- package/decorators/withBreakpointObserver.js +17 -11
- package/decorators/withDrag.cjs +15 -7
- package/decorators/withDrag.js +12 -6
- package/decorators/withExtraConfig.cjs +11 -3
- package/decorators/withExtraConfig.js +9 -3
- package/decorators/withIntersectionObserver.cjs +23 -15
- package/decorators/withIntersectionObserver.js +21 -15
- package/decorators/withMountWhenInView.cjs +26 -18
- package/decorators/withMountWhenInView.js +24 -18
- package/decorators/withScrolledInView.cjs +43 -32
- package/decorators/withScrolledInView.js +39 -30
- package/decorators/withVue2.cjs +16 -9
- package/decorators/withVue2.js +14 -9
- package/helpers/createApp.cjs +3 -0
- package/helpers/importOnInteraction.cjs +5 -2
- package/helpers/importOnInteraction.js +1 -1
- package/helpers/importWhenIdle.cjs +6 -2
- package/helpers/importWhenIdle.js +3 -2
- package/helpers/importWhenVisible.cjs +5 -2
- package/helpers/importWhenVisible.js +1 -1
- package/helpers/index.cjs +7 -4
- package/helpers/utils.cjs +4 -1
- package/index.cjs +7 -4
- package/package.json +1 -2
- package/services/Service.cjs +11 -3
- package/services/Service.js +7 -1
- package/services/drag.cjs +70 -41
- package/services/drag.d.ts +1 -0
- package/services/drag.js +60 -33
- package/services/index.cjs +10 -7
- package/services/key.cjs +35 -23
- package/services/key.js +27 -17
- package/services/load.cjs +19 -8
- package/services/load.js +12 -3
- package/services/pointer.cjs +45 -33
- package/services/pointer.js +38 -28
- package/services/raf.cjs +24 -13
- package/services/raf.js +16 -7
- package/services/resize.cjs +24 -13
- package/services/resize.js +16 -7
- package/services/scroll.cjs +44 -33
- package/services/scroll.js +36 -27
- package/utils/collide/boundingRectToCircle.cjs +3 -0
- package/utils/collide/collideCircleCircle.cjs +3 -0
- package/utils/collide/collideCircleRect.cjs +3 -0
- package/utils/collide/collidePointCircle.cjs +3 -0
- package/utils/collide/collidePointRect.cjs +3 -0
- package/utils/collide/collideRectRect.cjs +3 -0
- package/utils/collide/index.cjs +9 -6
- package/utils/css/classes.cjs +3 -0
- package/utils/css/index.cjs +7 -4
- package/utils/css/matrix.cjs +5 -1
- package/utils/css/matrix.js +2 -1
- package/utils/css/styles.cjs +4 -1
- package/utils/css/transition.cjs +16 -8
- package/utils/css/transition.js +8 -2
- package/utils/debounce.cjs +3 -0
- package/utils/focusTrap.cjs +6 -3
- package/utils/history.cjs +4 -1
- package/utils/index.cjs +15 -12
- package/utils/keyCodes.cjs +3 -0
- package/utils/math/clamp.cjs +3 -0
- package/utils/math/clamp01.cjs +4 -1
- package/utils/math/damp.cjs +3 -0
- package/utils/math/ease.cjs +17 -14
- package/utils/math/index.cjs +11 -8
- package/utils/math/inertiaFinalValue.cjs +3 -0
- package/utils/math/lerp.cjs +3 -0
- package/utils/math/map.cjs +3 -0
- package/utils/math/round.cjs +3 -0
- package/utils/memoize.cjs +3 -0
- package/utils/nextFrame.cjs +3 -0
- package/utils/object/autoBind.cjs +4 -1
- package/utils/object/getAllProperties.cjs +3 -0
- package/utils/object/index.cjs +6 -3
- package/utils/object/isObject.cjs +3 -0
- package/utils/scrollTo.cjs +4 -1
- package/utils/string/index.cjs +13 -10
- package/utils/string/withLeadingCharacters.cjs +4 -1
- package/utils/string/withLeadingSlash.cjs +4 -1
- package/utils/string/withTrailingCharacters.cjs +4 -1
- package/utils/string/withTrailingSlash.cjs +4 -1
- package/utils/string/withoutLeadingCharacters.cjs +3 -0
- package/utils/string/withoutLeadingCharactersRecursive.cjs +4 -1
- package/utils/string/withoutLeadingSlash.cjs +4 -1
- package/utils/string/withoutTrailingCharacters.cjs +3 -0
- package/utils/string/withoutTrailingCharactersRecursive.cjs +4 -1
- package/utils/string/withoutTrailingSlash.cjs +4 -1
- package/utils/throttle.cjs +3 -0
package/utils/debounce.cjs
CHANGED
|
@@ -20,6 +20,8 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
20
20
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
21
21
|
};
|
|
22
22
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
23
|
+
|
|
24
|
+
// packages/js-toolkit/utils/debounce.js
|
|
23
25
|
var debounce_exports = {};
|
|
24
26
|
__export(debounce_exports, {
|
|
25
27
|
default: () => debounce
|
|
@@ -34,3 +36,4 @@ function debounce(fn, delay = 300) {
|
|
|
34
36
|
};
|
|
35
37
|
}
|
|
36
38
|
module.exports = __toCommonJS(debounce_exports);
|
|
39
|
+
if (module.exports.default) module.exports = module.exports.default;
|
package/utils/focusTrap.cjs
CHANGED
|
@@ -25,6 +25,8 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
25
25
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
26
|
};
|
|
27
27
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
|
|
29
|
+
// packages/js-toolkit/utils/focusTrap.js
|
|
28
30
|
var focusTrap_exports = {};
|
|
29
31
|
__export(focusTrap_exports, {
|
|
30
32
|
default: () => useFocusTrap,
|
|
@@ -32,8 +34,8 @@ __export(focusTrap_exports, {
|
|
|
32
34
|
trap: () => trap,
|
|
33
35
|
untrap: () => untrap
|
|
34
36
|
});
|
|
35
|
-
var import_keyCodes = __toESM(require("./keyCodes.
|
|
36
|
-
|
|
37
|
+
var import_keyCodes = __toESM(require("./keyCodes.cjs"), 1);
|
|
38
|
+
var FOCUSABLE_ELEMENTS = [
|
|
37
39
|
'a[href]:not([tabindex^="-"]):not([inert])',
|
|
38
40
|
'area[href]:not([tabindex^="-"]):not([inert])',
|
|
39
41
|
"input:not([disabled]):not([inert])",
|
|
@@ -46,7 +48,7 @@ const FOCUSABLE_ELEMENTS = [
|
|
|
46
48
|
'[contenteditable]:not([tabindex^="-"]):not([inert])',
|
|
47
49
|
'[tabindex]:not([tabindex^="-"]):not([inert])'
|
|
48
50
|
];
|
|
49
|
-
|
|
51
|
+
var focusedBefore;
|
|
50
52
|
function saveActiveElement() {
|
|
51
53
|
focusedBefore = document.activeElement;
|
|
52
54
|
}
|
|
@@ -84,3 +86,4 @@ function useFocusTrap() {
|
|
|
84
86
|
return { trap, untrap, saveActiveElement };
|
|
85
87
|
}
|
|
86
88
|
module.exports = __toCommonJS(focusTrap_exports);
|
|
89
|
+
if (module.exports.default) module.exports = module.exports.default;
|
package/utils/history.cjs
CHANGED
|
@@ -25,13 +25,15 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
25
25
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
26
|
};
|
|
27
27
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
|
|
29
|
+
// packages/js-toolkit/utils/history.js
|
|
28
30
|
var history_exports = {};
|
|
29
31
|
__export(history_exports, {
|
|
30
32
|
objectToURLSearchParams: () => objectToURLSearchParams,
|
|
31
33
|
push: () => push,
|
|
32
34
|
replace: () => replace
|
|
33
35
|
});
|
|
34
|
-
var import_isObject = __toESM(require("./object/isObject.
|
|
36
|
+
var import_isObject = __toESM(require("./object/isObject.cjs"), 1);
|
|
35
37
|
function updateUrlSearchParam(params, name, value) {
|
|
36
38
|
if (value === "" || value === null || value === void 0) {
|
|
37
39
|
if (params.has(name)) {
|
|
@@ -91,3 +93,4 @@ function replace(options, data = {}, title = "") {
|
|
|
91
93
|
updateHistory("replace", options, data, title);
|
|
92
94
|
}
|
|
93
95
|
module.exports = __toCommonJS(history_exports);
|
|
96
|
+
if (module.exports.default) module.exports = module.exports.default;
|
package/utils/index.cjs
CHANGED
|
@@ -25,6 +25,8 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
25
25
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
26
|
};
|
|
27
27
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
|
|
29
|
+
// packages/js-toolkit/utils/index.js
|
|
28
30
|
var utils_exports = {};
|
|
29
31
|
__export(utils_exports, {
|
|
30
32
|
debounce: () => import_debounce.default,
|
|
@@ -40,16 +42,17 @@ __export(utils_exports, {
|
|
|
40
42
|
throttle: () => import_throttle.default,
|
|
41
43
|
transition: () => import_css.transition
|
|
42
44
|
});
|
|
43
|
-
var import_debounce = __toESM(require("./debounce.
|
|
44
|
-
var import_focusTrap = __toESM(require("./focusTrap.
|
|
45
|
-
var import_keyCodes = __toESM(require("./keyCodes.
|
|
46
|
-
var import_memoize = __toESM(require("./memoize.
|
|
47
|
-
var import_nextFrame = __toESM(require("./nextFrame.
|
|
48
|
-
var import_throttle = __toESM(require("./throttle.
|
|
49
|
-
var import_scrollTo = __toESM(require("./scrollTo.
|
|
50
|
-
var import_css = require("./css/index.
|
|
51
|
-
var import_history = require("./history.
|
|
52
|
-
__reExport(utils_exports, require("./collide/index.
|
|
53
|
-
__reExport(utils_exports, require("./math/index.
|
|
54
|
-
__reExport(utils_exports, require("./string/index.
|
|
45
|
+
var import_debounce = __toESM(require("./debounce.cjs"), 1);
|
|
46
|
+
var import_focusTrap = __toESM(require("./focusTrap.cjs"), 1);
|
|
47
|
+
var import_keyCodes = __toESM(require("./keyCodes.cjs"), 1);
|
|
48
|
+
var import_memoize = __toESM(require("./memoize.cjs"), 1);
|
|
49
|
+
var import_nextFrame = __toESM(require("./nextFrame.cjs"), 1);
|
|
50
|
+
var import_throttle = __toESM(require("./throttle.cjs"), 1);
|
|
51
|
+
var import_scrollTo = __toESM(require("./scrollTo.cjs"), 1);
|
|
52
|
+
var import_css = require("./css/index.cjs");
|
|
53
|
+
var import_history = require("./history.cjs");
|
|
54
|
+
__reExport(utils_exports, require("./collide/index.cjs"));
|
|
55
|
+
__reExport(utils_exports, require("./math/index.cjs"));
|
|
56
|
+
__reExport(utils_exports, require("./string/index.cjs"));
|
|
55
57
|
module.exports = __toCommonJS(utils_exports);
|
|
58
|
+
if (module.exports.default) module.exports = module.exports.default;
|
package/utils/keyCodes.cjs
CHANGED
|
@@ -20,6 +20,8 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
20
20
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
21
21
|
};
|
|
22
22
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
23
|
+
|
|
24
|
+
// packages/js-toolkit/utils/keyCodes.js
|
|
23
25
|
var keyCodes_exports = {};
|
|
24
26
|
__export(keyCodes_exports, {
|
|
25
27
|
default: () => keyCodes_default
|
|
@@ -35,3 +37,4 @@ var keyCodes_default = {
|
|
|
35
37
|
DOWN: 40
|
|
36
38
|
};
|
|
37
39
|
module.exports = __toCommonJS(keyCodes_exports);
|
|
40
|
+
if (module.exports.default) module.exports = module.exports.default;
|
package/utils/math/clamp.cjs
CHANGED
|
@@ -20,6 +20,8 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
20
20
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
21
21
|
};
|
|
22
22
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
23
|
+
|
|
24
|
+
// packages/js-toolkit/utils/math/clamp.js
|
|
23
25
|
var clamp_exports = {};
|
|
24
26
|
__export(clamp_exports, {
|
|
25
27
|
default: () => clamp
|
|
@@ -28,3 +30,4 @@ function clamp(value, min, max) {
|
|
|
28
30
|
return min < max ? value < min ? min : value > max ? max : value : value < max ? max : value > min ? min : value;
|
|
29
31
|
}
|
|
30
32
|
module.exports = __toCommonJS(clamp_exports);
|
|
33
|
+
if (module.exports.default) module.exports = module.exports.default;
|
package/utils/math/clamp01.cjs
CHANGED
|
@@ -25,12 +25,15 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
25
25
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
26
|
};
|
|
27
27
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
|
|
29
|
+
// packages/js-toolkit/utils/math/clamp01.js
|
|
28
30
|
var clamp01_exports = {};
|
|
29
31
|
__export(clamp01_exports, {
|
|
30
32
|
default: () => clamp01
|
|
31
33
|
});
|
|
32
|
-
var import_clamp = __toESM(require("./clamp.
|
|
34
|
+
var import_clamp = __toESM(require("./clamp.cjs"), 1);
|
|
33
35
|
function clamp01(value) {
|
|
34
36
|
return (0, import_clamp.default)(value, 0, 1);
|
|
35
37
|
}
|
|
36
38
|
module.exports = __toCommonJS(clamp01_exports);
|
|
39
|
+
if (module.exports.default) module.exports = module.exports.default;
|
package/utils/math/damp.cjs
CHANGED
|
@@ -20,6 +20,8 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
20
20
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
21
21
|
};
|
|
22
22
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
23
|
+
|
|
24
|
+
// packages/js-toolkit/utils/math/damp.js
|
|
23
25
|
var damp_exports = {};
|
|
24
26
|
__export(damp_exports, {
|
|
25
27
|
default: () => damp
|
|
@@ -28,3 +30,4 @@ function damp(targetValue, currentValue, factor = 0.5, precision = 0.01) {
|
|
|
28
30
|
return Math.abs(targetValue - currentValue) < precision ? targetValue : currentValue + (targetValue - currentValue) * factor;
|
|
29
31
|
}
|
|
30
32
|
module.exports = __toCommonJS(damp_exports);
|
|
33
|
+
if (module.exports.default) module.exports = module.exports.default;
|
package/utils/math/ease.cjs
CHANGED
|
@@ -20,6 +20,8 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
20
20
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
21
21
|
};
|
|
22
22
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
23
|
+
|
|
24
|
+
// packages/js-toolkit/utils/math/ease.js
|
|
23
25
|
var ease_exports = {};
|
|
24
26
|
__export(ease_exports, {
|
|
25
27
|
createEaseInOut: () => createEaseInOut,
|
|
@@ -55,36 +57,37 @@ function createEaseInOut(easeIn) {
|
|
|
55
57
|
function easeInQuad(progress) {
|
|
56
58
|
return progress ** 2;
|
|
57
59
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
var easeOutQuad = createEaseOut(easeInQuad);
|
|
61
|
+
var easeInOutQuad = createEaseInOut(easeInQuad);
|
|
60
62
|
function easeInCubic(progress) {
|
|
61
63
|
return progress ** 3;
|
|
62
64
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
var easeOutCubic = createEaseOut(easeInCubic);
|
|
66
|
+
var easeInOutCubic = createEaseInOut(easeInCubic);
|
|
65
67
|
function easeInQuart(progress) {
|
|
66
68
|
return progress ** 4;
|
|
67
69
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
+
var easeOutQuart = createEaseOut(easeInQuart);
|
|
71
|
+
var easeInOutQuart = createEaseInOut(easeInQuart);
|
|
70
72
|
function easeInQuint(progress) {
|
|
71
73
|
return progress ** 5;
|
|
72
74
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
+
var easeOutQuint = createEaseOut(easeInQuint);
|
|
76
|
+
var easeInOutQuint = createEaseInOut(easeInQuint);
|
|
75
77
|
function easeInSine(progress) {
|
|
76
78
|
return progress === 1 ? 1 : -Math.cos(progress * Math.PI / 2) + 1;
|
|
77
79
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
var easeOutSine = createEaseOut(easeInSine);
|
|
81
|
+
var easeInOutSine = createEaseInOut(easeInSine);
|
|
80
82
|
function easeInCirc(progress) {
|
|
81
83
|
return -(Math.sqrt(1 - progress * progress) - 1);
|
|
82
84
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
+
var easeOutCirc = createEaseOut(easeInCirc);
|
|
86
|
+
var easeInOutCirc = createEaseInOut(easeInCirc);
|
|
85
87
|
function easeInExpo(progress) {
|
|
86
88
|
return 2 ** (10 * (progress - 1));
|
|
87
89
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
+
var easeOutExpo = createEaseOut(easeInExpo);
|
|
91
|
+
var easeInOutExpo = createEaseInOut(easeInExpo);
|
|
90
92
|
module.exports = __toCommonJS(ease_exports);
|
|
93
|
+
if (module.exports.default) module.exports = module.exports.default;
|
package/utils/math/index.cjs
CHANGED
|
@@ -25,6 +25,8 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
25
25
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
26
|
};
|
|
27
27
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
|
|
29
|
+
// packages/js-toolkit/utils/math/index.js
|
|
28
30
|
var math_exports = {};
|
|
29
31
|
__export(math_exports, {
|
|
30
32
|
clamp: () => import_clamp.default,
|
|
@@ -35,12 +37,13 @@ __export(math_exports, {
|
|
|
35
37
|
map: () => import_map.default,
|
|
36
38
|
round: () => import_round.default
|
|
37
39
|
});
|
|
38
|
-
var import_clamp = __toESM(require("./clamp.
|
|
39
|
-
var import_clamp01 = __toESM(require("./clamp01.
|
|
40
|
-
var import_damp = __toESM(require("./damp.
|
|
41
|
-
var import_inertiaFinalValue = __toESM(require("./inertiaFinalValue.
|
|
42
|
-
var import_lerp = __toESM(require("./lerp.
|
|
43
|
-
var import_map = __toESM(require("./map.
|
|
44
|
-
var import_round = __toESM(require("./round.
|
|
45
|
-
__reExport(math_exports, require("./ease.
|
|
40
|
+
var import_clamp = __toESM(require("./clamp.cjs"), 1);
|
|
41
|
+
var import_clamp01 = __toESM(require("./clamp01.cjs"), 1);
|
|
42
|
+
var import_damp = __toESM(require("./damp.cjs"), 1);
|
|
43
|
+
var import_inertiaFinalValue = __toESM(require("./inertiaFinalValue.cjs"), 1);
|
|
44
|
+
var import_lerp = __toESM(require("./lerp.cjs"), 1);
|
|
45
|
+
var import_map = __toESM(require("./map.cjs"), 1);
|
|
46
|
+
var import_round = __toESM(require("./round.cjs"), 1);
|
|
47
|
+
__reExport(math_exports, require("./ease.cjs"));
|
|
46
48
|
module.exports = __toCommonJS(math_exports);
|
|
49
|
+
if (module.exports.default) module.exports = module.exports.default;
|
|
@@ -20,6 +20,8 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
20
20
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
21
21
|
};
|
|
22
22
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
23
|
+
|
|
24
|
+
// packages/js-toolkit/utils/math/inertiaFinalValue.js
|
|
23
25
|
var inertiaFinalValue_exports = {};
|
|
24
26
|
__export(inertiaFinalValue_exports, {
|
|
25
27
|
default: () => inertiaFinalValue
|
|
@@ -37,3 +39,4 @@ function inertiaFinalValue(initialValue, initialDelta, dampFactor = 0.85) {
|
|
|
37
39
|
return finalValue;
|
|
38
40
|
}
|
|
39
41
|
module.exports = __toCommonJS(inertiaFinalValue_exports);
|
|
42
|
+
if (module.exports.default) module.exports = module.exports.default;
|
package/utils/math/lerp.cjs
CHANGED
|
@@ -20,6 +20,8 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
20
20
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
21
21
|
};
|
|
22
22
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
23
|
+
|
|
24
|
+
// packages/js-toolkit/utils/math/lerp.js
|
|
23
25
|
var lerp_exports = {};
|
|
24
26
|
__export(lerp_exports, {
|
|
25
27
|
default: () => lerp
|
|
@@ -28,3 +30,4 @@ function lerp(min, max, ratio) {
|
|
|
28
30
|
return (1 - ratio) * min + ratio * max;
|
|
29
31
|
}
|
|
30
32
|
module.exports = __toCommonJS(lerp_exports);
|
|
33
|
+
if (module.exports.default) module.exports = module.exports.default;
|
package/utils/math/map.cjs
CHANGED
|
@@ -20,6 +20,8 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
20
20
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
21
21
|
};
|
|
22
22
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
23
|
+
|
|
24
|
+
// packages/js-toolkit/utils/math/map.js
|
|
23
25
|
var map_exports = {};
|
|
24
26
|
__export(map_exports, {
|
|
25
27
|
default: () => map
|
|
@@ -28,3 +30,4 @@ function map(value, inputMin, inputMax, outputMin, outputMax) {
|
|
|
28
30
|
return (value - inputMin) * (outputMax - outputMin) / (inputMax - inputMin) + outputMin;
|
|
29
31
|
}
|
|
30
32
|
module.exports = __toCommonJS(map_exports);
|
|
33
|
+
if (module.exports.default) module.exports = module.exports.default;
|
package/utils/math/round.cjs
CHANGED
|
@@ -20,6 +20,8 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
20
20
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
21
21
|
};
|
|
22
22
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
23
|
+
|
|
24
|
+
// packages/js-toolkit/utils/math/round.js
|
|
23
25
|
var round_exports = {};
|
|
24
26
|
__export(round_exports, {
|
|
25
27
|
default: () => round
|
|
@@ -28,3 +30,4 @@ function round(value, decimals = 0) {
|
|
|
28
30
|
return Number(value.toFixed(decimals));
|
|
29
31
|
}
|
|
30
32
|
module.exports = __toCommonJS(round_exports);
|
|
33
|
+
if (module.exports.default) module.exports = module.exports.default;
|
package/utils/memoize.cjs
CHANGED
|
@@ -20,6 +20,8 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
20
20
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
21
21
|
};
|
|
22
22
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
23
|
+
|
|
24
|
+
// packages/js-toolkit/utils/memoize.js
|
|
23
25
|
var memoize_exports = {};
|
|
24
26
|
__export(memoize_exports, {
|
|
25
27
|
default: () => memoize
|
|
@@ -43,3 +45,4 @@ function memoize(fn, { maxAge = Number.POSITIVE_INFINITY, cacheKey = JSON.string
|
|
|
43
45
|
};
|
|
44
46
|
}
|
|
45
47
|
module.exports = __toCommonJS(memoize_exports);
|
|
48
|
+
if (module.exports.default) module.exports = module.exports.default;
|
package/utils/nextFrame.cjs
CHANGED
|
@@ -20,6 +20,8 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
20
20
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
21
21
|
};
|
|
22
22
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
23
|
+
|
|
24
|
+
// packages/js-toolkit/utils/nextFrame.js
|
|
23
25
|
var nextFrame_exports = {};
|
|
24
26
|
__export(nextFrame_exports, {
|
|
25
27
|
default: () => nextFrame,
|
|
@@ -40,3 +42,4 @@ function nextFrame(fn = () => {
|
|
|
40
42
|
});
|
|
41
43
|
}
|
|
42
44
|
module.exports = __toCommonJS(nextFrame_exports);
|
|
45
|
+
if (module.exports.default) module.exports = module.exports.default;
|
|
@@ -25,11 +25,13 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
25
25
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
26
|
};
|
|
27
27
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
|
|
29
|
+
// packages/js-toolkit/utils/object/autoBind.js
|
|
28
30
|
var autoBind_exports = {};
|
|
29
31
|
__export(autoBind_exports, {
|
|
30
32
|
default: () => autoBind
|
|
31
33
|
});
|
|
32
|
-
var import_getAllProperties = __toESM(require("./getAllProperties.
|
|
34
|
+
var import_getAllProperties = __toESM(require("./getAllProperties.cjs"), 1);
|
|
33
35
|
function autoBind(instance, options) {
|
|
34
36
|
const { exclude, include } = options || {};
|
|
35
37
|
const filter = (key) => {
|
|
@@ -51,3 +53,4 @@ function autoBind(instance, options) {
|
|
|
51
53
|
return instance;
|
|
52
54
|
}
|
|
53
55
|
module.exports = __toCommonJS(autoBind_exports);
|
|
56
|
+
if (module.exports.default) module.exports = module.exports.default;
|
|
@@ -20,6 +20,8 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
20
20
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
21
21
|
};
|
|
22
22
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
23
|
+
|
|
24
|
+
// packages/js-toolkit/utils/object/getAllProperties.js
|
|
23
25
|
var getAllProperties_exports = {};
|
|
24
26
|
__export(getAllProperties_exports, {
|
|
25
27
|
default: () => getAllProperties
|
|
@@ -37,3 +39,4 @@ function getAllProperties(object, props = [], testFn = null) {
|
|
|
37
39
|
return getAllProperties(proto, foundProps, testFn);
|
|
38
40
|
}
|
|
39
41
|
module.exports = __toCommonJS(getAllProperties_exports);
|
|
42
|
+
if (module.exports.default) module.exports = module.exports.default;
|
package/utils/object/index.cjs
CHANGED
|
@@ -25,13 +25,16 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
25
25
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
26
|
};
|
|
27
27
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
|
|
29
|
+
// packages/js-toolkit/utils/object/index.js
|
|
28
30
|
var object_exports = {};
|
|
29
31
|
__export(object_exports, {
|
|
30
32
|
autoBind: () => import_autoBind.default,
|
|
31
33
|
getAllProperties: () => import_getAllProperties.default,
|
|
32
34
|
isObject: () => import_isObject.default
|
|
33
35
|
});
|
|
34
|
-
var import_autoBind = __toESM(require("./autoBind.
|
|
35
|
-
var import_getAllProperties = __toESM(require("./getAllProperties.
|
|
36
|
-
var import_isObject = __toESM(require("./isObject.
|
|
36
|
+
var import_autoBind = __toESM(require("./autoBind.cjs"), 1);
|
|
37
|
+
var import_getAllProperties = __toESM(require("./getAllProperties.cjs"), 1);
|
|
38
|
+
var import_isObject = __toESM(require("./isObject.cjs"), 1);
|
|
37
39
|
module.exports = __toCommonJS(object_exports);
|
|
40
|
+
if (module.exports.default) module.exports = module.exports.default;
|
|
@@ -20,6 +20,8 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
20
20
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
21
21
|
};
|
|
22
22
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
23
|
+
|
|
24
|
+
// packages/js-toolkit/utils/object/isObject.js
|
|
23
25
|
var isObject_exports = {};
|
|
24
26
|
__export(isObject_exports, {
|
|
25
27
|
default: () => isObject
|
|
@@ -28,3 +30,4 @@ function isObject(value) {
|
|
|
28
30
|
return typeof value === "object" && !!value && value.toString() === "[object Object]";
|
|
29
31
|
}
|
|
30
32
|
module.exports = __toCommonJS(isObject_exports);
|
|
33
|
+
if (module.exports.default) module.exports = module.exports.default;
|
package/utils/scrollTo.cjs
CHANGED
|
@@ -25,11 +25,13 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
25
25
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
26
|
};
|
|
27
27
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
|
|
29
|
+
// packages/js-toolkit/utils/scrollTo.js
|
|
28
30
|
var scrollTo_exports = {};
|
|
29
31
|
__export(scrollTo_exports, {
|
|
30
32
|
default: () => scrollTo
|
|
31
33
|
});
|
|
32
|
-
var import_damp = __toESM(require("./math/damp.
|
|
34
|
+
var import_damp = __toESM(require("./math/damp.cjs"), 1);
|
|
33
35
|
function scrollTo(selectorElement, { offset = 0, dampFactor = 0.2 } = {}) {
|
|
34
36
|
let targetElement = null;
|
|
35
37
|
if (selectorElement instanceof HTMLElement) {
|
|
@@ -82,3 +84,4 @@ function scrollTo(selectorElement, { offset = 0, dampFactor = 0.2 } = {}) {
|
|
|
82
84
|
});
|
|
83
85
|
}
|
|
84
86
|
module.exports = __toCommonJS(scrollTo_exports);
|
|
87
|
+
if (module.exports.default) module.exports = module.exports.default;
|
package/utils/string/index.cjs
CHANGED
|
@@ -25,6 +25,8 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
25
25
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
26
|
};
|
|
27
27
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
|
|
29
|
+
// packages/js-toolkit/utils/string/index.js
|
|
28
30
|
var string_exports = {};
|
|
29
31
|
__export(string_exports, {
|
|
30
32
|
withLeadingCharacters: () => import_withLeadingCharacters.default,
|
|
@@ -38,14 +40,15 @@ __export(string_exports, {
|
|
|
38
40
|
withoutTrailingCharactersRecursive: () => import_withoutTrailingCharactersRecursive.default,
|
|
39
41
|
withoutTrailingSlash: () => import_withoutTrailingSlash.default
|
|
40
42
|
});
|
|
41
|
-
var import_withLeadingCharacters = __toESM(require("./withLeadingCharacters.
|
|
42
|
-
var import_withLeadingSlash = __toESM(require("./withLeadingSlash.
|
|
43
|
-
var import_withoutLeadingCharacters = __toESM(require("./withoutLeadingCharacters.
|
|
44
|
-
var import_withoutLeadingCharactersRecursive = __toESM(require("./withoutLeadingCharactersRecursive.
|
|
45
|
-
var import_withoutLeadingSlash = __toESM(require("./withoutLeadingSlash.
|
|
46
|
-
var import_withoutTrailingCharacters = __toESM(require("./withoutTrailingCharacters.
|
|
47
|
-
var import_withoutTrailingCharactersRecursive = __toESM(require("./withoutTrailingCharactersRecursive.
|
|
48
|
-
var import_withoutTrailingSlash = __toESM(require("./withoutTrailingSlash.
|
|
49
|
-
var import_withTrailingCharacters = __toESM(require("./withTrailingCharacters.
|
|
50
|
-
var import_withTrailingSlash = __toESM(require("./withTrailingSlash.
|
|
43
|
+
var import_withLeadingCharacters = __toESM(require("./withLeadingCharacters.cjs"), 1);
|
|
44
|
+
var import_withLeadingSlash = __toESM(require("./withLeadingSlash.cjs"), 1);
|
|
45
|
+
var import_withoutLeadingCharacters = __toESM(require("./withoutLeadingCharacters.cjs"), 1);
|
|
46
|
+
var import_withoutLeadingCharactersRecursive = __toESM(require("./withoutLeadingCharactersRecursive.cjs"), 1);
|
|
47
|
+
var import_withoutLeadingSlash = __toESM(require("./withoutLeadingSlash.cjs"), 1);
|
|
48
|
+
var import_withoutTrailingCharacters = __toESM(require("./withoutTrailingCharacters.cjs"), 1);
|
|
49
|
+
var import_withoutTrailingCharactersRecursive = __toESM(require("./withoutTrailingCharactersRecursive.cjs"), 1);
|
|
50
|
+
var import_withoutTrailingSlash = __toESM(require("./withoutTrailingSlash.cjs"), 1);
|
|
51
|
+
var import_withTrailingCharacters = __toESM(require("./withTrailingCharacters.cjs"), 1);
|
|
52
|
+
var import_withTrailingSlash = __toESM(require("./withTrailingSlash.cjs"), 1);
|
|
51
53
|
module.exports = __toCommonJS(string_exports);
|
|
54
|
+
if (module.exports.default) module.exports = module.exports.default;
|
|
@@ -25,12 +25,15 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
25
25
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
26
|
};
|
|
27
27
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
|
|
29
|
+
// packages/js-toolkit/utils/string/withLeadingCharacters.js
|
|
28
30
|
var withLeadingCharacters_exports = {};
|
|
29
31
|
__export(withLeadingCharacters_exports, {
|
|
30
32
|
default: () => withLeadingCharacters
|
|
31
33
|
});
|
|
32
|
-
var import_withoutLeadingCharacters = __toESM(require("./withoutLeadingCharacters.
|
|
34
|
+
var import_withoutLeadingCharacters = __toESM(require("./withoutLeadingCharacters.cjs"), 1);
|
|
33
35
|
function withLeadingCharacters(string, characters) {
|
|
34
36
|
return `${characters}${(0, import_withoutLeadingCharacters.default)(string, characters)}`;
|
|
35
37
|
}
|
|
36
38
|
module.exports = __toCommonJS(withLeadingCharacters_exports);
|
|
39
|
+
if (module.exports.default) module.exports = module.exports.default;
|
|
@@ -25,12 +25,15 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
25
25
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
26
|
};
|
|
27
27
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
|
|
29
|
+
// packages/js-toolkit/utils/string/withLeadingSlash.js
|
|
28
30
|
var withLeadingSlash_exports = {};
|
|
29
31
|
__export(withLeadingSlash_exports, {
|
|
30
32
|
default: () => withLeadingSlash
|
|
31
33
|
});
|
|
32
|
-
var import_withLeadingCharacters = __toESM(require("./withLeadingCharacters.
|
|
34
|
+
var import_withLeadingCharacters = __toESM(require("./withLeadingCharacters.cjs"), 1);
|
|
33
35
|
function withLeadingSlash(string) {
|
|
34
36
|
return (0, import_withLeadingCharacters.default)(string, "/");
|
|
35
37
|
}
|
|
36
38
|
module.exports = __toCommonJS(withLeadingSlash_exports);
|
|
39
|
+
if (module.exports.default) module.exports = module.exports.default;
|
|
@@ -25,12 +25,15 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
25
25
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
26
|
};
|
|
27
27
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
|
|
29
|
+
// packages/js-toolkit/utils/string/withTrailingCharacters.js
|
|
28
30
|
var withTrailingCharacters_exports = {};
|
|
29
31
|
__export(withTrailingCharacters_exports, {
|
|
30
32
|
default: () => withTrailingCharacters
|
|
31
33
|
});
|
|
32
|
-
var import_withoutTrailingCharacters = __toESM(require("./withoutTrailingCharacters.
|
|
34
|
+
var import_withoutTrailingCharacters = __toESM(require("./withoutTrailingCharacters.cjs"), 1);
|
|
33
35
|
function withTrailingCharacters(string, characters) {
|
|
34
36
|
return `${(0, import_withoutTrailingCharacters.default)(string, characters)}${characters}`;
|
|
35
37
|
}
|
|
36
38
|
module.exports = __toCommonJS(withTrailingCharacters_exports);
|
|
39
|
+
if (module.exports.default) module.exports = module.exports.default;
|
|
@@ -25,12 +25,15 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
25
25
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
26
|
};
|
|
27
27
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
|
|
29
|
+
// packages/js-toolkit/utils/string/withTrailingSlash.js
|
|
28
30
|
var withTrailingSlash_exports = {};
|
|
29
31
|
__export(withTrailingSlash_exports, {
|
|
30
32
|
default: () => withTrailingSlash
|
|
31
33
|
});
|
|
32
|
-
var import_withTrailingCharacters = __toESM(require("./withTrailingCharacters.
|
|
34
|
+
var import_withTrailingCharacters = __toESM(require("./withTrailingCharacters.cjs"), 1);
|
|
33
35
|
function withTrailingSlash(string) {
|
|
34
36
|
return (0, import_withTrailingCharacters.default)(string, "/");
|
|
35
37
|
}
|
|
36
38
|
module.exports = __toCommonJS(withTrailingSlash_exports);
|
|
39
|
+
if (module.exports.default) module.exports = module.exports.default;
|
|
@@ -20,6 +20,8 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
20
20
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
21
21
|
};
|
|
22
22
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
23
|
+
|
|
24
|
+
// packages/js-toolkit/utils/string/withoutLeadingCharacters.js
|
|
23
25
|
var withoutLeadingCharacters_exports = {};
|
|
24
26
|
__export(withoutLeadingCharacters_exports, {
|
|
25
27
|
default: () => withoutLeadingCharacters
|
|
@@ -28,3 +30,4 @@ function withoutLeadingCharacters(string, characters) {
|
|
|
28
30
|
return string.replace(new RegExp(`^${characters}`), "");
|
|
29
31
|
}
|
|
30
32
|
module.exports = __toCommonJS(withoutLeadingCharacters_exports);
|
|
33
|
+
if (module.exports.default) module.exports = module.exports.default;
|
|
@@ -25,11 +25,13 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
25
25
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
26
|
};
|
|
27
27
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
|
|
29
|
+
// packages/js-toolkit/utils/string/withoutLeadingCharactersRecursive.js
|
|
28
30
|
var withoutLeadingCharactersRecursive_exports = {};
|
|
29
31
|
__export(withoutLeadingCharactersRecursive_exports, {
|
|
30
32
|
default: () => withoutLeadingCharactersRecursive
|
|
31
33
|
});
|
|
32
|
-
var import_withoutLeadingCharacters = __toESM(require("./withoutLeadingCharacters.
|
|
34
|
+
var import_withoutLeadingCharacters = __toESM(require("./withoutLeadingCharacters.cjs"), 1);
|
|
33
35
|
function withoutLeadingCharactersRecursive(string, characters) {
|
|
34
36
|
let str = (0, import_withoutLeadingCharacters.default)(string, characters);
|
|
35
37
|
const regex = new RegExp(`^${characters}`);
|
|
@@ -39,3 +41,4 @@ function withoutLeadingCharactersRecursive(string, characters) {
|
|
|
39
41
|
return str;
|
|
40
42
|
}
|
|
41
43
|
module.exports = __toCommonJS(withoutLeadingCharactersRecursive_exports);
|
|
44
|
+
if (module.exports.default) module.exports = module.exports.default;
|
|
@@ -25,12 +25,15 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
25
25
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
26
|
};
|
|
27
27
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
|
|
29
|
+
// packages/js-toolkit/utils/string/withoutLeadingSlash.js
|
|
28
30
|
var withoutLeadingSlash_exports = {};
|
|
29
31
|
__export(withoutLeadingSlash_exports, {
|
|
30
32
|
default: () => withoutLeadingSlash
|
|
31
33
|
});
|
|
32
|
-
var import_withoutLeadingCharacters = __toESM(require("./withoutLeadingCharacters.
|
|
34
|
+
var import_withoutLeadingCharacters = __toESM(require("./withoutLeadingCharacters.cjs"), 1);
|
|
33
35
|
function withoutLeadingSlash(string) {
|
|
34
36
|
return (0, import_withoutLeadingCharacters.default)(string, "/");
|
|
35
37
|
}
|
|
36
38
|
module.exports = __toCommonJS(withoutLeadingSlash_exports);
|
|
39
|
+
if (module.exports.default) module.exports = module.exports.default;
|
|
@@ -20,6 +20,8 @@ var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
|
20
20
|
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
21
21
|
};
|
|
22
22
|
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
23
|
+
|
|
24
|
+
// packages/js-toolkit/utils/string/withoutTrailingCharacters.js
|
|
23
25
|
var withoutTrailingCharacters_exports = {};
|
|
24
26
|
__export(withoutTrailingCharacters_exports, {
|
|
25
27
|
default: () => withoutTrailingCharacters
|
|
@@ -28,3 +30,4 @@ function withoutTrailingCharacters(string, characters) {
|
|
|
28
30
|
return string.replace(new RegExp(`${characters}$`), "");
|
|
29
31
|
}
|
|
30
32
|
module.exports = __toCommonJS(withoutTrailingCharacters_exports);
|
|
33
|
+
if (module.exports.default) module.exports = module.exports.default;
|