@studiometa/js-toolkit 3.8.0 → 3.8.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Base/index.d.ts +1 -1
- package/Base/index.js +4 -1
- package/Base/index.js.map +2 -2
- package/decorators/index.d.ts +15 -15
- package/decorators/index.js +50 -15
- package/decorators/index.js.map +2 -2
- package/decorators/withScrolledInView/index.d.ts +2 -2
- package/decorators/withScrolledInView/index.js +6 -2
- package/decorators/withScrolledInView/index.js.map +2 -2
- package/helpers/index.d.ts +13 -13
- package/helpers/index.js +28 -14
- package/helpers/index.js.map +2 -2
- package/index.d.ts +5 -5
- package/index.js +113 -6
- package/index.js.map +2 -2
- package/package.json +1 -1
- package/services/index.d.ts +9 -9
- package/services/index.js +52 -9
- package/services/index.js.map +2 -2
- package/utils/css/index.d.ts +1 -1
- package/utils/css/index.js +4 -1
- package/utils/css/index.js.map +2 -2
- package/utils/dom/index.d.ts +2 -2
- package/utils/dom/index.js +7 -2
- package/utils/dom/index.js.map +2 -2
- package/utils/index.d.ts +16 -16
- package/utils/index.js +249 -17
- package/utils/index.js.map +2 -2
- package/utils/math/index.d.ts +2 -2
- package/utils/math/index.js +49 -2
- package/utils/math/index.js.map +2 -2
- package/utils/storage.d.ts +1 -1
- package/utils/storage.js +36 -1
- package/utils/storage.js.map +2 -2
- package/utils/string/index.d.ts +13 -13
- package/utils/string/index.js +33 -13
- package/utils/string/index.js.map +2 -2
package/Base/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Base, type BaseAsyncConstructor, type BaseChildren, type BaseConfig, type BaseConfigComponents, type BaseConstructor, type BaseEl, type BaseOptions, type BaseProps, type BaseRefs, type Managers, } from './Base.js';
|
|
2
2
|
export { getInstances } from './utils.js';
|
package/Base/index.js
CHANGED
package/Base/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../packages/js-toolkit/Base/index.ts"],
|
|
4
|
-
"sourcesContent": ["export
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["export {\n Base,\n type BaseAsyncConstructor,\n type BaseChildren,\n type BaseConfig,\n type BaseConfigComponents,\n type BaseConstructor,\n type BaseEl,\n type BaseOptions,\n type BaseProps,\n type BaseRefs,\n type Managers,\n} from './Base.js';\nexport { getInstances } from './utils.js';\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA,EACE;AAAA,OAWK;AACP,SAAS,oBAAoB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/decorators/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
1
|
+
export { withBreakpointManager } from './withBreakpointManager.js';
|
|
2
|
+
export { withBreakpointObserver, type WithBreakpointObserverInterface, type WithBreakpointObserverProps, } from './withBreakpointObserver.js';
|
|
3
|
+
export { withDrag, type DragDecoratorOptions, type WithDragInterface } from './withDrag.js';
|
|
4
|
+
export { withExtraConfig } from './withExtraConfig.js';
|
|
5
|
+
export { withFreezedOptions, type WithFreezedOptionsInterface } from './withFreezedOptions.js';
|
|
6
|
+
export { withIntersectionObserver, type WithIntersectionObserverInterface, type WithIntersectionObserverProps, } from './withIntersectionObserver.js';
|
|
7
|
+
export { withMountOnMediaQuery, type withMountOnMediaQueryInterface, type withMountOnMediaQueryProps, } from './withMountOnMediaQuery.js';
|
|
8
|
+
export { withMountWhenInView, type WithMountWhenInViewInterface, type WithMountWhenInViewProps, } from './withMountWhenInView.js';
|
|
9
|
+
export { withMountWhenPrefersMotion } from './withMountWhenPrefersMotion.js';
|
|
10
|
+
export { withMutation, type MutationDecoratorOptions, type WithMutationInterface, } from './withMutation.js';
|
|
11
|
+
export { withName } from './withName.js';
|
|
12
|
+
export { withRelativePointer, type RelativePointerDecoratorOptions, type RelativePointerInterface, } from './withRelativePointer.js';
|
|
13
|
+
export { withResponsiveOptions } from './withResponsiveOptions.js';
|
|
14
|
+
export { withScrolledInView, type NormalizedOffset, type OffsetValue, type ScrollInViewProps, type WithScrolledInViewInterface, type WithScrolledInViewOptions, type WithScrolledInViewProps, } from './withScrolledInView/index.js';
|
|
15
|
+
export { getScopedGroups, withGroup, type WithGroupInterface, type WithGroupOptions, type WithGroupProps, } from './withGroup.js';
|
package/decorators/index.js
CHANGED
|
@@ -1,16 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { withBreakpointManager } from "./withBreakpointManager.js";
|
|
2
|
+
import {
|
|
3
|
+
withBreakpointObserver
|
|
4
|
+
} from "./withBreakpointObserver.js";
|
|
5
|
+
import { withDrag } from "./withDrag.js";
|
|
6
|
+
import { withExtraConfig } from "./withExtraConfig.js";
|
|
7
|
+
import { withFreezedOptions } from "./withFreezedOptions.js";
|
|
8
|
+
import {
|
|
9
|
+
withIntersectionObserver
|
|
10
|
+
} from "./withIntersectionObserver.js";
|
|
11
|
+
import {
|
|
12
|
+
withMountOnMediaQuery
|
|
13
|
+
} from "./withMountOnMediaQuery.js";
|
|
14
|
+
import {
|
|
15
|
+
withMountWhenInView
|
|
16
|
+
} from "./withMountWhenInView.js";
|
|
17
|
+
import { withMountWhenPrefersMotion } from "./withMountWhenPrefersMotion.js";
|
|
18
|
+
import {
|
|
19
|
+
withMutation
|
|
20
|
+
} from "./withMutation.js";
|
|
21
|
+
import { withName } from "./withName.js";
|
|
22
|
+
import {
|
|
23
|
+
withRelativePointer
|
|
24
|
+
} from "./withRelativePointer.js";
|
|
25
|
+
import { withResponsiveOptions } from "./withResponsiveOptions.js";
|
|
26
|
+
import {
|
|
27
|
+
withScrolledInView
|
|
28
|
+
} from "./withScrolledInView/index.js";
|
|
29
|
+
import {
|
|
30
|
+
getScopedGroups,
|
|
31
|
+
withGroup
|
|
32
|
+
} from "./withGroup.js";
|
|
33
|
+
export {
|
|
34
|
+
getScopedGroups,
|
|
35
|
+
withBreakpointManager,
|
|
36
|
+
withBreakpointObserver,
|
|
37
|
+
withDrag,
|
|
38
|
+
withExtraConfig,
|
|
39
|
+
withFreezedOptions,
|
|
40
|
+
withGroup,
|
|
41
|
+
withIntersectionObserver,
|
|
42
|
+
withMountOnMediaQuery,
|
|
43
|
+
withMountWhenInView,
|
|
44
|
+
withMountWhenPrefersMotion,
|
|
45
|
+
withMutation,
|
|
46
|
+
withName,
|
|
47
|
+
withRelativePointer,
|
|
48
|
+
withResponsiveOptions,
|
|
49
|
+
withScrolledInView
|
|
50
|
+
};
|
|
16
51
|
//# sourceMappingURL=index.js.map
|
package/decorators/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../packages/js-toolkit/decorators/index.ts"],
|
|
4
|
-
"sourcesContent": ["export
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["export { withBreakpointManager } from './withBreakpointManager.js';\nexport {\n withBreakpointObserver,\n type WithBreakpointObserverInterface,\n type WithBreakpointObserverProps,\n} from './withBreakpointObserver.js';\nexport { withDrag, type DragDecoratorOptions, type WithDragInterface } from './withDrag.js';\nexport { withExtraConfig } from './withExtraConfig.js';\nexport { withFreezedOptions, type WithFreezedOptionsInterface } from './withFreezedOptions.js';\nexport {\n withIntersectionObserver,\n type WithIntersectionObserverInterface,\n type WithIntersectionObserverProps,\n} from './withIntersectionObserver.js';\nexport {\n withMountOnMediaQuery,\n type withMountOnMediaQueryInterface,\n type withMountOnMediaQueryProps,\n} from './withMountOnMediaQuery.js';\nexport {\n withMountWhenInView,\n type WithMountWhenInViewInterface,\n type WithMountWhenInViewProps,\n} from './withMountWhenInView.js';\nexport { withMountWhenPrefersMotion } from './withMountWhenPrefersMotion.js';\nexport {\n withMutation,\n type MutationDecoratorOptions,\n type WithMutationInterface,\n} from './withMutation.js';\nexport { withName } from './withName.js';\nexport {\n withRelativePointer,\n type RelativePointerDecoratorOptions,\n type RelativePointerInterface,\n} from './withRelativePointer.js';\nexport { withResponsiveOptions } from './withResponsiveOptions.js';\nexport {\n withScrolledInView,\n type NormalizedOffset,\n type OffsetValue,\n type ScrollInViewProps,\n type WithScrolledInViewInterface,\n type WithScrolledInViewOptions,\n type WithScrolledInViewProps,\n} from './withScrolledInView/index.js';\nexport {\n getScopedGroups,\n withGroup,\n type WithGroupInterface,\n type WithGroupOptions,\n type WithGroupProps,\n} from './withGroup.js';\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,6BAA6B;AACtC;AAAA,EACE;AAAA,OAGK;AACP,SAAS,gBAAmE;AAC5E,SAAS,uBAAuB;AAChC,SAAS,0BAA4D;AACrE;AAAA,EACE;AAAA,OAGK;AACP;AAAA,EACE;AAAA,OAGK;AACP;AAAA,EACE;AAAA,OAGK;AACP,SAAS,kCAAkC;AAC3C;AAAA,EACE;AAAA,OAGK;AACP,SAAS,gBAAgB;AACzB;AAAA,EACE;AAAA,OAGK;AACP,SAAS,6BAA6B;AACtC;AAAA,EACE;AAAA,OAOK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAIK;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { withScrolledInView, type ScrollInViewProps, type WithScrolledInViewInterface, type WithScrolledInViewOptions, type WithScrolledInViewProps, } from './withScrolledInView.js';
|
|
2
|
+
export { type NormalizedOffset, type OffsetValue } from './types.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../packages/js-toolkit/decorators/withScrolledInView/index.ts"],
|
|
4
|
-
"sourcesContent": ["export
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["export {\n withScrolledInView,\n type ScrollInViewProps,\n type WithScrolledInViewInterface,\n type WithScrolledInViewOptions,\n type WithScrolledInViewProps,\n} from './withScrolledInView.js';\nexport { type NormalizedOffset, type OffsetValue } from './types.js';\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA,EACE;AAAA,OAKK;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/helpers/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
1
|
+
export { createApp, type CreateAppOptions } from './createApp.js';
|
|
2
|
+
export { defineFeatures } from './defineFeatures.js';
|
|
3
|
+
export { getClosestParent } from './getClosestParent.js';
|
|
4
|
+
export { getDirectChildren, isDirectChild } from './getDirectChildren.js';
|
|
5
|
+
export { getInstanceFromElement } from './getInstanceFromElement.js';
|
|
6
|
+
export { importOnInteraction } from './importOnInteraction.js';
|
|
7
|
+
export { importOnMediaQuery } from './importOnMediaQuery.js';
|
|
8
|
+
export { importWhenIdle } from './importWhenIdle.js';
|
|
9
|
+
export { importWhenPrefersMotion } from './importWhenPrefersMotion.js';
|
|
10
|
+
export { importWhenVisible } from './importWhenVisible.js';
|
|
11
|
+
export { logTree } from './logTree.js';
|
|
12
|
+
export { registerComponent } from './registerComponent.js';
|
|
13
|
+
export { registerComponents } from './registerComponents.js';
|
|
14
14
|
export { type QueryOptions, queryComponent, queryComponentAll, closestComponent, } from './queryComponent.js';
|
package/helpers/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { createApp } from "./createApp.js";
|
|
2
|
+
import { defineFeatures } from "./defineFeatures.js";
|
|
3
|
+
import { getClosestParent } from "./getClosestParent.js";
|
|
4
|
+
import { getDirectChildren, isDirectChild } from "./getDirectChildren.js";
|
|
5
|
+
import { getInstanceFromElement } from "./getInstanceFromElement.js";
|
|
6
|
+
import { importOnInteraction } from "./importOnInteraction.js";
|
|
7
|
+
import { importOnMediaQuery } from "./importOnMediaQuery.js";
|
|
8
|
+
import { importWhenIdle } from "./importWhenIdle.js";
|
|
9
|
+
import { importWhenPrefersMotion } from "./importWhenPrefersMotion.js";
|
|
10
|
+
import { importWhenVisible } from "./importWhenVisible.js";
|
|
11
|
+
import { logTree } from "./logTree.js";
|
|
12
|
+
import { registerComponent } from "./registerComponent.js";
|
|
13
|
+
import { registerComponents } from "./registerComponents.js";
|
|
14
14
|
import {
|
|
15
15
|
queryComponent,
|
|
16
16
|
queryComponentAll,
|
|
@@ -18,7 +18,21 @@ import {
|
|
|
18
18
|
} from "./queryComponent.js";
|
|
19
19
|
export {
|
|
20
20
|
closestComponent,
|
|
21
|
+
createApp,
|
|
22
|
+
defineFeatures,
|
|
23
|
+
getClosestParent,
|
|
24
|
+
getDirectChildren,
|
|
25
|
+
getInstanceFromElement,
|
|
26
|
+
importOnInteraction,
|
|
27
|
+
importOnMediaQuery,
|
|
28
|
+
importWhenIdle,
|
|
29
|
+
importWhenPrefersMotion,
|
|
30
|
+
importWhenVisible,
|
|
31
|
+
isDirectChild,
|
|
32
|
+
logTree,
|
|
21
33
|
queryComponent,
|
|
22
|
-
queryComponentAll
|
|
34
|
+
queryComponentAll,
|
|
35
|
+
registerComponent,
|
|
36
|
+
registerComponents
|
|
23
37
|
};
|
|
24
38
|
//# sourceMappingURL=index.js.map
|
package/helpers/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../packages/js-toolkit/helpers/index.ts"],
|
|
4
|
-
"sourcesContent": ["export
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["export { createApp, type CreateAppOptions } from './createApp.js';\nexport { defineFeatures } from './defineFeatures.js';\nexport { getClosestParent } from './getClosestParent.js';\nexport { getDirectChildren, isDirectChild } from './getDirectChildren.js';\nexport { getInstanceFromElement } from './getInstanceFromElement.js';\nexport { importOnInteraction } from './importOnInteraction.js';\nexport { importOnMediaQuery } from './importOnMediaQuery.js';\nexport { importWhenIdle } from './importWhenIdle.js';\nexport { importWhenPrefersMotion } from './importWhenPrefersMotion.js';\nexport { importWhenVisible } from './importWhenVisible.js';\nexport { logTree } from './logTree.js';\nexport { registerComponent } from './registerComponent.js';\nexport { registerComponents } from './registerComponents.js';\nexport {\n type QueryOptions,\n queryComponent,\n queryComponentAll,\n closestComponent,\n} from './queryComponent.js';\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,iBAAwC;AACjD,SAAS,sBAAsB;AAC/B,SAAS,wBAAwB;AACjC,SAAS,mBAAmB,qBAAqB;AACjD,SAAS,8BAA8B;AACvC,SAAS,2BAA2B;AACpC,SAAS,0BAA0B;AACnC,SAAS,sBAAsB;AAC/B,SAAS,+BAA+B;AACxC,SAAS,yBAAyB;AAClC,SAAS,eAAe;AACxB,SAAS,yBAAyB;AAClC,SAAS,0BAA0B;AACnC;AAAA,EAEE;AAAA,EACA;AAAA,EACA;AAAA,OACK;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const version: '3.6.0-beta.0';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
2
|
+
export { Base, getInstances, type BaseAsyncConstructor, type BaseChildren, type BaseConfig, type BaseConfigComponents, type BaseConstructor, type BaseEl, type BaseOptions, type BaseProps, type BaseRefs, type Managers, } from './Base/index.js';
|
|
3
|
+
export { type BaseDecorator, type BaseEventHookParams, type BaseInterface } from './Base/types.js';
|
|
4
|
+
export { getScopedGroups, withBreakpointManager, withBreakpointObserver, withDrag, withExtraConfig, withFreezedOptions, withGroup, withIntersectionObserver, withMountOnMediaQuery, withMountWhenInView, withMountWhenPrefersMotion, withMutation, withName, withRelativePointer, withResponsiveOptions, withScrolledInView, type DragDecoratorOptions, type MutationDecoratorOptions, type NormalizedOffset, type OffsetValue, type RelativePointerDecoratorOptions, type RelativePointerInterface, type ScrollInViewProps, type WithBreakpointObserverInterface, type WithBreakpointObserverProps, type WithDragInterface, type WithFreezedOptionsInterface, type WithGroupInterface, type WithGroupOptions, type WithGroupProps, type WithIntersectionObserverInterface, type WithIntersectionObserverProps, type WithMountWhenInViewInterface, type WithMountWhenInViewProps, type WithMutationInterface, type WithScrolledInViewInterface, type WithScrolledInViewOptions, type WithScrolledInViewProps, type withMountOnMediaQueryInterface, type withMountOnMediaQueryProps, } from './decorators/index.js';
|
|
5
|
+
export { closestComponent, createApp, defineFeatures, getClosestParent, getDirectChildren, getInstanceFromElement, importOnInteraction, importOnMediaQuery, importWhenIdle, importWhenPrefersMotion, importWhenVisible, isDirectChild, logTree, queryComponent, queryComponentAll, registerComponent, registerComponents, type CreateAppOptions, type QueryOptions, } from './helpers/index.js';
|
|
6
|
+
export { AbstractService, DragService, KeyService, LoadService, MutationService, PointerService, RafService, ResizeService, ScrollService, useDrag, useKey, useLoad, useMutation, usePointer, useRaf, useResize, useScroll, type DragServiceInterface, type DragServiceOptions, type DragServiceProps, type KeyServiceInterface, type KeyServiceProps, type LoadServiceInterface, type LoadServiceProps, type MutationServiceInterface, type MutationServiceOptions, type MutationServiceProps, type PointerServiceInterface, type PointerServiceProps, type RafServiceInterface, type RafServiceProps, type ResizeServiceInterface, type ResizeServiceProps, type ScrollServiceInterface, type ScrollServiceProps, type ServiceConfig, type ServiceInterface, } from './services/index.js';
|
package/index.js
CHANGED
|
@@ -1,10 +1,117 @@
|
|
|
1
1
|
const version = "3.6.0-beta.0";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import {
|
|
3
|
+
Base,
|
|
4
|
+
getInstances
|
|
5
|
+
} from "./Base/index.js";
|
|
6
|
+
import {
|
|
7
|
+
getScopedGroups,
|
|
8
|
+
withBreakpointManager,
|
|
9
|
+
withBreakpointObserver,
|
|
10
|
+
withDrag,
|
|
11
|
+
withExtraConfig,
|
|
12
|
+
withFreezedOptions,
|
|
13
|
+
withGroup,
|
|
14
|
+
withIntersectionObserver,
|
|
15
|
+
withMountOnMediaQuery,
|
|
16
|
+
withMountWhenInView,
|
|
17
|
+
withMountWhenPrefersMotion,
|
|
18
|
+
withMutation,
|
|
19
|
+
withName,
|
|
20
|
+
withRelativePointer,
|
|
21
|
+
withResponsiveOptions,
|
|
22
|
+
withScrolledInView
|
|
23
|
+
} from "./decorators/index.js";
|
|
24
|
+
import {
|
|
25
|
+
closestComponent,
|
|
26
|
+
createApp,
|
|
27
|
+
defineFeatures,
|
|
28
|
+
getClosestParent,
|
|
29
|
+
getDirectChildren,
|
|
30
|
+
getInstanceFromElement,
|
|
31
|
+
importOnInteraction,
|
|
32
|
+
importOnMediaQuery,
|
|
33
|
+
importWhenIdle,
|
|
34
|
+
importWhenPrefersMotion,
|
|
35
|
+
importWhenVisible,
|
|
36
|
+
isDirectChild,
|
|
37
|
+
logTree,
|
|
38
|
+
queryComponent,
|
|
39
|
+
queryComponentAll,
|
|
40
|
+
registerComponent,
|
|
41
|
+
registerComponents
|
|
42
|
+
} from "./helpers/index.js";
|
|
43
|
+
import {
|
|
44
|
+
AbstractService,
|
|
45
|
+
DragService,
|
|
46
|
+
KeyService,
|
|
47
|
+
LoadService,
|
|
48
|
+
MutationService,
|
|
49
|
+
PointerService,
|
|
50
|
+
RafService,
|
|
51
|
+
ResizeService,
|
|
52
|
+
ScrollService,
|
|
53
|
+
useDrag,
|
|
54
|
+
useKey,
|
|
55
|
+
useLoad,
|
|
56
|
+
useMutation,
|
|
57
|
+
usePointer,
|
|
58
|
+
useRaf,
|
|
59
|
+
useResize,
|
|
60
|
+
useScroll
|
|
61
|
+
} from "./services/index.js";
|
|
7
62
|
export {
|
|
8
|
-
|
|
63
|
+
AbstractService,
|
|
64
|
+
Base,
|
|
65
|
+
DragService,
|
|
66
|
+
KeyService,
|
|
67
|
+
LoadService,
|
|
68
|
+
MutationService,
|
|
69
|
+
PointerService,
|
|
70
|
+
RafService,
|
|
71
|
+
ResizeService,
|
|
72
|
+
ScrollService,
|
|
73
|
+
closestComponent,
|
|
74
|
+
createApp,
|
|
75
|
+
defineFeatures,
|
|
76
|
+
getClosestParent,
|
|
77
|
+
getDirectChildren,
|
|
78
|
+
getInstanceFromElement,
|
|
79
|
+
getInstances,
|
|
80
|
+
getScopedGroups,
|
|
81
|
+
importOnInteraction,
|
|
82
|
+
importOnMediaQuery,
|
|
83
|
+
importWhenIdle,
|
|
84
|
+
importWhenPrefersMotion,
|
|
85
|
+
importWhenVisible,
|
|
86
|
+
isDirectChild,
|
|
87
|
+
logTree,
|
|
88
|
+
queryComponent,
|
|
89
|
+
queryComponentAll,
|
|
90
|
+
registerComponent,
|
|
91
|
+
registerComponents,
|
|
92
|
+
useDrag,
|
|
93
|
+
useKey,
|
|
94
|
+
useLoad,
|
|
95
|
+
useMutation,
|
|
96
|
+
usePointer,
|
|
97
|
+
useRaf,
|
|
98
|
+
useResize,
|
|
99
|
+
useScroll,
|
|
100
|
+
version,
|
|
101
|
+
withBreakpointManager,
|
|
102
|
+
withBreakpointObserver,
|
|
103
|
+
withDrag,
|
|
104
|
+
withExtraConfig,
|
|
105
|
+
withFreezedOptions,
|
|
106
|
+
withGroup,
|
|
107
|
+
withIntersectionObserver,
|
|
108
|
+
withMountOnMediaQuery,
|
|
109
|
+
withMountWhenInView,
|
|
110
|
+
withMountWhenPrefersMotion,
|
|
111
|
+
withMutation,
|
|
112
|
+
withName,
|
|
113
|
+
withRelativePointer,
|
|
114
|
+
withResponsiveOptions,
|
|
115
|
+
withScrolledInView
|
|
9
116
|
};
|
|
10
117
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../packages/js-toolkit/index.ts"],
|
|
4
|
-
"sourcesContent": ["export const version = '3.6.0-beta.0' as const;\n\nexport
|
|
5
|
-
"mappings": "AAAO,MAAM,UAAU;AAEvB,
|
|
4
|
+
"sourcesContent": ["export const version = '3.6.0-beta.0' as const;\n\nexport {\n Base,\n getInstances,\n type BaseAsyncConstructor,\n type BaseChildren,\n type BaseConfig,\n type BaseConfigComponents,\n type BaseConstructor,\n type BaseEl,\n type BaseOptions,\n type BaseProps,\n type BaseRefs,\n type Managers,\n} from './Base/index.js';\nexport { type BaseDecorator, type BaseEventHookParams, type BaseInterface } from './Base/types.js';\nexport {\n getScopedGroups,\n withBreakpointManager,\n withBreakpointObserver,\n withDrag,\n withExtraConfig,\n withFreezedOptions,\n withGroup,\n withIntersectionObserver,\n withMountOnMediaQuery,\n withMountWhenInView,\n withMountWhenPrefersMotion,\n withMutation,\n withName,\n withRelativePointer,\n withResponsiveOptions,\n withScrolledInView,\n type DragDecoratorOptions,\n type MutationDecoratorOptions,\n type NormalizedOffset,\n type OffsetValue,\n type RelativePointerDecoratorOptions,\n type RelativePointerInterface,\n type ScrollInViewProps,\n type WithBreakpointObserverInterface,\n type WithBreakpointObserverProps,\n type WithDragInterface,\n type WithFreezedOptionsInterface,\n type WithGroupInterface,\n type WithGroupOptions,\n type WithGroupProps,\n type WithIntersectionObserverInterface,\n type WithIntersectionObserverProps,\n type WithMountWhenInViewInterface,\n type WithMountWhenInViewProps,\n type WithMutationInterface,\n type WithScrolledInViewInterface,\n type WithScrolledInViewOptions,\n type WithScrolledInViewProps,\n type withMountOnMediaQueryInterface,\n type withMountOnMediaQueryProps,\n} from './decorators/index.js';\nexport {\n closestComponent,\n createApp,\n defineFeatures,\n getClosestParent,\n getDirectChildren,\n getInstanceFromElement,\n importOnInteraction,\n importOnMediaQuery,\n importWhenIdle,\n importWhenPrefersMotion,\n importWhenVisible,\n isDirectChild,\n logTree,\n queryComponent,\n queryComponentAll,\n registerComponent,\n registerComponents,\n type CreateAppOptions,\n type QueryOptions,\n} from './helpers/index.js';\nexport {\n AbstractService,\n DragService,\n KeyService,\n LoadService,\n MutationService,\n PointerService,\n RafService,\n ResizeService,\n ScrollService,\n useDrag,\n useKey,\n useLoad,\n useMutation,\n usePointer,\n useRaf,\n useResize,\n useScroll,\n type DragServiceInterface,\n type DragServiceOptions,\n type DragServiceProps,\n type KeyServiceInterface,\n type KeyServiceProps,\n type LoadServiceInterface,\n type LoadServiceProps,\n type MutationServiceInterface,\n type MutationServiceOptions,\n type MutationServiceProps,\n type PointerServiceInterface,\n type PointerServiceProps,\n type RafServiceInterface,\n type RafServiceProps,\n type ResizeServiceInterface,\n type ResizeServiceProps,\n type ScrollServiceInterface,\n type ScrollServiceProps,\n type ServiceConfig,\n type ServiceInterface,\n} from './services/index.js';\n"],
|
|
5
|
+
"mappings": "AAAO,MAAM,UAAU;AAEvB;AAAA,EACE;AAAA,EACA;AAAA,OAWK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAyBK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAqBK;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
package/services/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
1
|
+
export { AbstractService, type ServiceConfig, type ServiceInterface } from './AbstractService.js';
|
|
2
|
+
export { DragService, useDrag, type DragServiceInterface, type DragServiceOptions, type DragServiceProps, } from './DragService.js';
|
|
3
|
+
export { KeyService, useKey, type KeyServiceInterface, type KeyServiceProps, } from './KeyService.js';
|
|
4
|
+
export { LoadService, useLoad, type LoadServiceInterface, type LoadServiceProps, } from './LoadService.js';
|
|
5
|
+
export { MutationService, useMutation, type MutationServiceInterface, type MutationServiceOptions, type MutationServiceProps, } from './MutationService.js';
|
|
6
|
+
export { PointerService, usePointer, type PointerServiceInterface, type PointerServiceProps, } from './PointerService.js';
|
|
7
|
+
export { RafService, useRaf, type RafServiceInterface, type RafServiceProps, } from './RafService.js';
|
|
8
|
+
export { ResizeService, useResize, type ResizeServiceInterface, type ResizeServiceProps, } from './ResizeService.js';
|
|
9
|
+
export { ScrollService, useScroll, type ScrollServiceInterface, type ScrollServiceProps, } from './ScrollService.js';
|
package/services/index.js
CHANGED
|
@@ -1,10 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { AbstractService } from "./AbstractService.js";
|
|
2
|
+
import {
|
|
3
|
+
DragService,
|
|
4
|
+
useDrag
|
|
5
|
+
} from "./DragService.js";
|
|
6
|
+
import {
|
|
7
|
+
KeyService,
|
|
8
|
+
useKey
|
|
9
|
+
} from "./KeyService.js";
|
|
10
|
+
import {
|
|
11
|
+
LoadService,
|
|
12
|
+
useLoad
|
|
13
|
+
} from "./LoadService.js";
|
|
14
|
+
import {
|
|
15
|
+
MutationService,
|
|
16
|
+
useMutation
|
|
17
|
+
} from "./MutationService.js";
|
|
18
|
+
import {
|
|
19
|
+
PointerService,
|
|
20
|
+
usePointer
|
|
21
|
+
} from "./PointerService.js";
|
|
22
|
+
import {
|
|
23
|
+
RafService,
|
|
24
|
+
useRaf
|
|
25
|
+
} from "./RafService.js";
|
|
26
|
+
import {
|
|
27
|
+
ResizeService,
|
|
28
|
+
useResize
|
|
29
|
+
} from "./ResizeService.js";
|
|
30
|
+
import {
|
|
31
|
+
ScrollService,
|
|
32
|
+
useScroll
|
|
33
|
+
} from "./ScrollService.js";
|
|
34
|
+
export {
|
|
35
|
+
AbstractService,
|
|
36
|
+
DragService,
|
|
37
|
+
KeyService,
|
|
38
|
+
LoadService,
|
|
39
|
+
MutationService,
|
|
40
|
+
PointerService,
|
|
41
|
+
RafService,
|
|
42
|
+
ResizeService,
|
|
43
|
+
ScrollService,
|
|
44
|
+
useDrag,
|
|
45
|
+
useKey,
|
|
46
|
+
useLoad,
|
|
47
|
+
useMutation,
|
|
48
|
+
usePointer,
|
|
49
|
+
useRaf,
|
|
50
|
+
useResize,
|
|
51
|
+
useScroll
|
|
52
|
+
};
|
|
10
53
|
//# sourceMappingURL=index.js.map
|
package/services/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../packages/js-toolkit/services/index.ts"],
|
|
4
|
-
"sourcesContent": ["export
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["export { AbstractService, type ServiceConfig, type ServiceInterface } from './AbstractService.js';\nexport {\n DragService,\n useDrag,\n type DragServiceInterface,\n type DragServiceOptions,\n type DragServiceProps,\n} from './DragService.js';\nexport {\n KeyService,\n useKey,\n type KeyServiceInterface,\n type KeyServiceProps,\n} from './KeyService.js';\nexport {\n LoadService,\n useLoad,\n type LoadServiceInterface,\n type LoadServiceProps,\n} from './LoadService.js';\nexport {\n MutationService,\n useMutation,\n type MutationServiceInterface,\n type MutationServiceOptions,\n type MutationServiceProps,\n} from './MutationService.js';\nexport {\n PointerService,\n usePointer,\n type PointerServiceInterface,\n type PointerServiceProps,\n} from './PointerService.js';\nexport {\n RafService,\n useRaf,\n type RafServiceInterface,\n type RafServiceProps,\n} from './RafService.js';\nexport {\n ResizeService,\n useResize,\n type ResizeServiceInterface,\n type ResizeServiceProps,\n} from './ResizeService.js';\nexport {\n ScrollService,\n useScroll,\n type ScrollServiceInterface,\n type ScrollServiceProps,\n} from './ScrollService.js';\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,uBAAkE;AAC3E;AAAA,EACE;AAAA,EACA;AAAA,OAIK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAIK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAGK;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/utils/css/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { animate, type Animate, type AnimateOptions, type CSSCustomPropertyName, type Keyframe, type NormalizedKeyframe, } from './animate.js';
|
|
2
2
|
export { add as addClass, remove as removeClass, toggle as toggleClass } from './classes.js';
|
|
3
3
|
export { add as addStyle, remove as removeStyle } from './styles.js';
|
|
4
4
|
export { getOffsetSizes } from './getOffsetSizes.js';
|
package/utils/css/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import {
|
|
2
|
+
animate
|
|
3
|
+
} from "./animate.js";
|
|
2
4
|
import { add, remove, toggle } from "./classes.js";
|
|
3
5
|
import { add as add2, remove as remove2 } from "./styles.js";
|
|
4
6
|
import { getOffsetSizes } from "./getOffsetSizes.js";
|
|
@@ -8,6 +10,7 @@ import { transition } from "./transition.js";
|
|
|
8
10
|
export {
|
|
9
11
|
add as addClass,
|
|
10
12
|
add2 as addStyle,
|
|
13
|
+
animate,
|
|
11
14
|
getOffsetSizes,
|
|
12
15
|
matrix,
|
|
13
16
|
remove as removeClass,
|
package/utils/css/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../packages/js-toolkit/utils/css/index.ts"],
|
|
4
|
-
"sourcesContent": ["export
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["export {\n animate,\n type Animate,\n type AnimateOptions,\n type CSSCustomPropertyName,\n type Keyframe,\n type NormalizedKeyframe,\n} from './animate.js';\nexport { add as addClass, remove as removeClass, toggle as toggleClass } from './classes.js';\nexport { add as addStyle, remove as removeStyle } from './styles.js';\nexport { getOffsetSizes } from './getOffsetSizes.js';\nexport { matrix } from './matrix.js';\nexport { transform } from './transform.js';\nexport { transition } from './transition.js';\nexport type { TransformProps } from './transform.js';\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA,EACE;AAAA,OAMK;AACP,SAAgB,KAAoB,QAAuB,cAAmB;AAC9E,SAAgB,OAAPA,MAA2B,UAAVC,eAA6B;AACvD,SAAS,sBAAsB;AAC/B,SAAS,cAAc;AACvB,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;",
|
|
6
6
|
"names": ["add", "remove"]
|
|
7
7
|
}
|
package/utils/dom/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { getAncestorWhere, getAncestorWhereUntil } from './ancestors.js';
|
|
2
|
+
export { createElement } from './createElement.js';
|
package/utils/dom/index.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { getAncestorWhere, getAncestorWhereUntil } from "./ancestors.js";
|
|
2
|
+
import { createElement } from "./createElement.js";
|
|
3
|
+
export {
|
|
4
|
+
createElement,
|
|
5
|
+
getAncestorWhere,
|
|
6
|
+
getAncestorWhereUntil
|
|
7
|
+
};
|
|
3
8
|
//# sourceMappingURL=index.js.map
|
package/utils/dom/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../packages/js-toolkit/utils/dom/index.ts"],
|
|
4
|
-
"sourcesContent": ["export
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["export { getAncestorWhere, getAncestorWhereUntil } from './ancestors.js';\nexport { createElement } from './createElement.js';\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,kBAAkB,6BAA6B;AACxD,SAAS,qBAAqB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { debounce } from './debounce.js';
|
|
2
|
-
export
|
|
2
|
+
export { saveActiveElement, trapFocus, untrapFocus } from './trapFocus.js';
|
|
3
3
|
export { keyCodes } from './keyCodes.js';
|
|
4
4
|
export { memoize } from './memoize.js';
|
|
5
5
|
export { nextFrame } from './nextFrame.js';
|
|
@@ -8,22 +8,22 @@ export { nextMicrotask } from './nextMicrotask.js';
|
|
|
8
8
|
export { throttle } from './throttle.js';
|
|
9
9
|
export { scrollTo } from './scrollTo.js';
|
|
10
10
|
export { getComponentResolver } from './getComponentResolver.js';
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
11
|
+
export { isArray, isBoolean, isDefined, isDev, isEmpty, isEmptyString, isFunction, isNull, isNumber, isObject, isString, } from './is.js';
|
|
12
|
+
export { hasWindow } from './has.js';
|
|
13
|
+
export { addClass, addStyle, animate, getOffsetSizes, matrix, removeClass, removeStyle, toggleClass, transform, transition, type Animate, type AnimateOptions, type CSSCustomPropertyName, type Keyframe, type NormalizedKeyframe, type TransformProps, } from './css/index.js';
|
|
14
14
|
export { objectToURLSearchParams, push as historyPush, replace as historyReplace, } from './history.js';
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
15
|
+
export { boundingRectToCircle, collideCircleCircle, collideCircleRect, collidePointCircle, collidePointRect, collideRectRect, } from './collide/index.js';
|
|
16
|
+
export { clamp, clamp01, createEaseInOut, createEaseOut, createRange, damp, ease, easeInCirc, easeInCubic, easeInExpo, easeInOutCirc, easeInOutCubic, easeInOutExpo, easeInOutQuad, easeInOutQuart, easeInOutQuint, easeInOutSine, easeInQuad, easeInQuart, easeInQuint, easeInSine, easeLinear, easeOutCirc, easeOutCubic, easeOutExpo, easeOutQuad, easeOutQuart, easeOutQuint, easeOutSine, fold, inertiaFinalValue, lerp, map, mean, round, smoothTo, spring, wrap, type EasingFunction, } from './math/index.js';
|
|
17
|
+
export { camelCase, dashCase, endsWith, lowerCase, pascalCase, snakeCase, startsWith, upperCase, withLeadingCharacters, withLeadingSlash, withTrailingCharacters, withTrailingSlash, withoutLeadingCharacters, withoutLeadingCharactersRecursive, withoutLeadingSlash, withoutTrailingCharacters, withoutTrailingCharactersRecursive, withoutTrailingSlash, } from './string/index.js';
|
|
18
|
+
export { domScheduler, useScheduler } from './scheduler.js';
|
|
19
|
+
export { noop, noopValue } from './noop.js';
|
|
20
20
|
export { tween } from './tween.js';
|
|
21
21
|
export { Queue } from './Queue.js';
|
|
22
22
|
export { SmartQueue } from './SmartQueue.js';
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
23
|
+
export { createElement, getAncestorWhere, getAncestorWhereUntil } from './dom/index.js';
|
|
24
|
+
export { wait } from './wait.js';
|
|
25
|
+
export { random, randomInt, randomItem } from './random.js';
|
|
26
|
+
export { memo } from './memo.js';
|
|
27
|
+
export { loadElement, loadIframe, loadImage, loadLink, loadScript, type LoadElementsOptions, type LoadElementsReturnType, type LoadableElements, type LoadableElementsNames, } from './loadElement.js';
|
|
28
|
+
export { cache } from './cache.js';
|
|
29
|
+
export { createLocalStorage, createLocalStorageProvider, createMemoryStorageProvider, createNoopProvider, createSessionStorage, createSessionStorageProvider, createStorage, createUrlSearchParamsInHashProvider, createUrlSearchParamsInHashStorage, createUrlSearchParamsProvider, createUrlSearchParamsStorage, localStorageProvider, memoryStorageProvider, sessionStorageProvider, urlSearchParamsInHashProvider, urlSearchParamsProvider, type StorageInstance, type StorageOptions, type StorageProvider, type StorageSerializer, type UrlProviderOptions, } from './storage.js';
|
package/utils/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { debounce } from "./debounce.js";
|
|
2
|
-
|
|
2
|
+
import { saveActiveElement, trapFocus, untrapFocus } from "./trapFocus.js";
|
|
3
3
|
import { keyCodes } from "./keyCodes.js";
|
|
4
4
|
import { memoize } from "./memoize.js";
|
|
5
5
|
import { nextFrame } from "./nextFrame.js";
|
|
@@ -8,44 +8,276 @@ import { nextMicrotask } from "./nextMicrotask.js";
|
|
|
8
8
|
import { throttle } from "./throttle.js";
|
|
9
9
|
import { scrollTo } from "./scrollTo.js";
|
|
10
10
|
import { getComponentResolver } from "./getComponentResolver.js";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
import {
|
|
12
|
+
isArray,
|
|
13
|
+
isBoolean,
|
|
14
|
+
isDefined,
|
|
15
|
+
isDev,
|
|
16
|
+
isEmpty,
|
|
17
|
+
isEmptyString,
|
|
18
|
+
isFunction,
|
|
19
|
+
isNull,
|
|
20
|
+
isNumber,
|
|
21
|
+
isObject,
|
|
22
|
+
isString
|
|
23
|
+
} from "./is.js";
|
|
24
|
+
import { hasWindow } from "./has.js";
|
|
25
|
+
import {
|
|
26
|
+
addClass,
|
|
27
|
+
addStyle,
|
|
28
|
+
animate,
|
|
29
|
+
getOffsetSizes,
|
|
30
|
+
matrix,
|
|
31
|
+
removeClass,
|
|
32
|
+
removeStyle,
|
|
33
|
+
toggleClass,
|
|
34
|
+
transform,
|
|
35
|
+
transition
|
|
36
|
+
} from "./css/index.js";
|
|
14
37
|
import {
|
|
15
38
|
objectToURLSearchParams,
|
|
16
39
|
push,
|
|
17
40
|
replace
|
|
18
41
|
} from "./history.js";
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
42
|
+
import {
|
|
43
|
+
boundingRectToCircle,
|
|
44
|
+
collideCircleCircle,
|
|
45
|
+
collideCircleRect,
|
|
46
|
+
collidePointCircle,
|
|
47
|
+
collidePointRect,
|
|
48
|
+
collideRectRect
|
|
49
|
+
} from "./collide/index.js";
|
|
50
|
+
import {
|
|
51
|
+
clamp,
|
|
52
|
+
clamp01,
|
|
53
|
+
createEaseInOut,
|
|
54
|
+
createEaseOut,
|
|
55
|
+
createRange,
|
|
56
|
+
damp,
|
|
57
|
+
ease,
|
|
58
|
+
easeInCirc,
|
|
59
|
+
easeInCubic,
|
|
60
|
+
easeInExpo,
|
|
61
|
+
easeInOutCirc,
|
|
62
|
+
easeInOutCubic,
|
|
63
|
+
easeInOutExpo,
|
|
64
|
+
easeInOutQuad,
|
|
65
|
+
easeInOutQuart,
|
|
66
|
+
easeInOutQuint,
|
|
67
|
+
easeInOutSine,
|
|
68
|
+
easeInQuad,
|
|
69
|
+
easeInQuart,
|
|
70
|
+
easeInQuint,
|
|
71
|
+
easeInSine,
|
|
72
|
+
easeLinear,
|
|
73
|
+
easeOutCirc,
|
|
74
|
+
easeOutCubic,
|
|
75
|
+
easeOutExpo,
|
|
76
|
+
easeOutQuad,
|
|
77
|
+
easeOutQuart,
|
|
78
|
+
easeOutQuint,
|
|
79
|
+
easeOutSine,
|
|
80
|
+
fold,
|
|
81
|
+
inertiaFinalValue,
|
|
82
|
+
lerp,
|
|
83
|
+
map,
|
|
84
|
+
mean,
|
|
85
|
+
round,
|
|
86
|
+
smoothTo,
|
|
87
|
+
spring,
|
|
88
|
+
wrap
|
|
89
|
+
} from "./math/index.js";
|
|
90
|
+
import {
|
|
91
|
+
camelCase,
|
|
92
|
+
dashCase,
|
|
93
|
+
endsWith,
|
|
94
|
+
lowerCase,
|
|
95
|
+
pascalCase,
|
|
96
|
+
snakeCase,
|
|
97
|
+
startsWith,
|
|
98
|
+
upperCase,
|
|
99
|
+
withLeadingCharacters,
|
|
100
|
+
withLeadingSlash,
|
|
101
|
+
withTrailingCharacters,
|
|
102
|
+
withTrailingSlash,
|
|
103
|
+
withoutLeadingCharacters,
|
|
104
|
+
withoutLeadingCharactersRecursive,
|
|
105
|
+
withoutLeadingSlash,
|
|
106
|
+
withoutTrailingCharacters,
|
|
107
|
+
withoutTrailingCharactersRecursive,
|
|
108
|
+
withoutTrailingSlash
|
|
109
|
+
} from "./string/index.js";
|
|
110
|
+
import { domScheduler, useScheduler } from "./scheduler.js";
|
|
111
|
+
import { noop, noopValue } from "./noop.js";
|
|
24
112
|
import { tween } from "./tween.js";
|
|
25
113
|
import { Queue } from "./Queue.js";
|
|
26
114
|
import { SmartQueue } from "./SmartQueue.js";
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
115
|
+
import { createElement, getAncestorWhere, getAncestorWhereUntil } from "./dom/index.js";
|
|
116
|
+
import { wait } from "./wait.js";
|
|
117
|
+
import { random, randomInt, randomItem } from "./random.js";
|
|
118
|
+
import { memo } from "./memo.js";
|
|
119
|
+
import {
|
|
120
|
+
loadElement,
|
|
121
|
+
loadIframe,
|
|
122
|
+
loadImage,
|
|
123
|
+
loadLink,
|
|
124
|
+
loadScript
|
|
125
|
+
} from "./loadElement.js";
|
|
126
|
+
import { cache } from "./cache.js";
|
|
127
|
+
import {
|
|
128
|
+
createLocalStorage,
|
|
129
|
+
createLocalStorageProvider,
|
|
130
|
+
createMemoryStorageProvider,
|
|
131
|
+
createNoopProvider,
|
|
132
|
+
createSessionStorage,
|
|
133
|
+
createSessionStorageProvider,
|
|
134
|
+
createStorage,
|
|
135
|
+
createUrlSearchParamsInHashProvider,
|
|
136
|
+
createUrlSearchParamsInHashStorage,
|
|
137
|
+
createUrlSearchParamsProvider,
|
|
138
|
+
createUrlSearchParamsStorage,
|
|
139
|
+
localStorageProvider,
|
|
140
|
+
memoryStorageProvider,
|
|
141
|
+
sessionStorageProvider,
|
|
142
|
+
urlSearchParamsInHashProvider,
|
|
143
|
+
urlSearchParamsProvider
|
|
144
|
+
} from "./storage.js";
|
|
34
145
|
export {
|
|
35
146
|
Queue,
|
|
36
147
|
SmartQueue,
|
|
148
|
+
addClass,
|
|
149
|
+
addStyle,
|
|
150
|
+
animate,
|
|
151
|
+
boundingRectToCircle,
|
|
152
|
+
cache,
|
|
153
|
+
camelCase,
|
|
154
|
+
clamp,
|
|
155
|
+
clamp01,
|
|
156
|
+
collideCircleCircle,
|
|
157
|
+
collideCircleRect,
|
|
158
|
+
collidePointCircle,
|
|
159
|
+
collidePointRect,
|
|
160
|
+
collideRectRect,
|
|
161
|
+
createEaseInOut,
|
|
162
|
+
createEaseOut,
|
|
163
|
+
createElement,
|
|
164
|
+
createLocalStorage,
|
|
165
|
+
createLocalStorageProvider,
|
|
166
|
+
createMemoryStorageProvider,
|
|
167
|
+
createNoopProvider,
|
|
168
|
+
createRange,
|
|
169
|
+
createSessionStorage,
|
|
170
|
+
createSessionStorageProvider,
|
|
171
|
+
createStorage,
|
|
172
|
+
createUrlSearchParamsInHashProvider,
|
|
173
|
+
createUrlSearchParamsInHashStorage,
|
|
174
|
+
createUrlSearchParamsProvider,
|
|
175
|
+
createUrlSearchParamsStorage,
|
|
176
|
+
damp,
|
|
177
|
+
dashCase,
|
|
37
178
|
debounce,
|
|
179
|
+
domScheduler,
|
|
180
|
+
ease,
|
|
181
|
+
easeInCirc,
|
|
182
|
+
easeInCubic,
|
|
183
|
+
easeInExpo,
|
|
184
|
+
easeInOutCirc,
|
|
185
|
+
easeInOutCubic,
|
|
186
|
+
easeInOutExpo,
|
|
187
|
+
easeInOutQuad,
|
|
188
|
+
easeInOutQuart,
|
|
189
|
+
easeInOutQuint,
|
|
190
|
+
easeInOutSine,
|
|
191
|
+
easeInQuad,
|
|
192
|
+
easeInQuart,
|
|
193
|
+
easeInQuint,
|
|
194
|
+
easeInSine,
|
|
195
|
+
easeLinear,
|
|
196
|
+
easeOutCirc,
|
|
197
|
+
easeOutCubic,
|
|
198
|
+
easeOutExpo,
|
|
199
|
+
easeOutQuad,
|
|
200
|
+
easeOutQuart,
|
|
201
|
+
easeOutQuint,
|
|
202
|
+
easeOutSine,
|
|
203
|
+
endsWith,
|
|
204
|
+
fold,
|
|
205
|
+
getAncestorWhere,
|
|
206
|
+
getAncestorWhereUntil,
|
|
38
207
|
getComponentResolver,
|
|
208
|
+
getOffsetSizes,
|
|
209
|
+
hasWindow,
|
|
39
210
|
push as historyPush,
|
|
40
211
|
replace as historyReplace,
|
|
212
|
+
inertiaFinalValue,
|
|
213
|
+
isArray,
|
|
214
|
+
isBoolean,
|
|
215
|
+
isDefined,
|
|
216
|
+
isDev,
|
|
217
|
+
isEmpty,
|
|
218
|
+
isEmptyString,
|
|
219
|
+
isFunction,
|
|
220
|
+
isNull,
|
|
221
|
+
isNumber,
|
|
222
|
+
isObject,
|
|
223
|
+
isString,
|
|
41
224
|
keyCodes,
|
|
225
|
+
lerp,
|
|
226
|
+
loadElement,
|
|
227
|
+
loadIframe,
|
|
228
|
+
loadImage,
|
|
229
|
+
loadLink,
|
|
230
|
+
loadScript,
|
|
231
|
+
localStorageProvider,
|
|
232
|
+
lowerCase,
|
|
233
|
+
map,
|
|
234
|
+
matrix,
|
|
235
|
+
mean,
|
|
236
|
+
memo,
|
|
42
237
|
memoize,
|
|
238
|
+
memoryStorageProvider,
|
|
43
239
|
nextFrame,
|
|
44
240
|
nextMicrotask,
|
|
45
241
|
nextTick,
|
|
242
|
+
noop,
|
|
243
|
+
noopValue,
|
|
46
244
|
objectToURLSearchParams,
|
|
245
|
+
pascalCase,
|
|
246
|
+
random,
|
|
247
|
+
randomInt,
|
|
248
|
+
randomItem,
|
|
249
|
+
removeClass,
|
|
250
|
+
removeStyle,
|
|
251
|
+
round,
|
|
252
|
+
saveActiveElement,
|
|
47
253
|
scrollTo,
|
|
254
|
+
sessionStorageProvider,
|
|
255
|
+
smoothTo,
|
|
256
|
+
snakeCase,
|
|
257
|
+
spring,
|
|
258
|
+
startsWith,
|
|
48
259
|
throttle,
|
|
49
|
-
|
|
260
|
+
toggleClass,
|
|
261
|
+
transform,
|
|
262
|
+
transition,
|
|
263
|
+
trapFocus,
|
|
264
|
+
tween,
|
|
265
|
+
untrapFocus,
|
|
266
|
+
upperCase,
|
|
267
|
+
urlSearchParamsInHashProvider,
|
|
268
|
+
urlSearchParamsProvider,
|
|
269
|
+
useScheduler,
|
|
270
|
+
wait,
|
|
271
|
+
withLeadingCharacters,
|
|
272
|
+
withLeadingSlash,
|
|
273
|
+
withTrailingCharacters,
|
|
274
|
+
withTrailingSlash,
|
|
275
|
+
withoutLeadingCharacters,
|
|
276
|
+
withoutLeadingCharactersRecursive,
|
|
277
|
+
withoutLeadingSlash,
|
|
278
|
+
withoutTrailingCharacters,
|
|
279
|
+
withoutTrailingCharactersRecursive,
|
|
280
|
+
withoutTrailingSlash,
|
|
281
|
+
wrap
|
|
50
282
|
};
|
|
51
283
|
//# sourceMappingURL=index.js.map
|
package/utils/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../packages/js-toolkit/utils/index.ts"],
|
|
4
|
-
"sourcesContent": ["export { debounce } from './debounce.js';\nexport
|
|
5
|
-
"mappings": "AAAA,SAAS,gBAAgB;AACzB,
|
|
4
|
+
"sourcesContent": ["export { debounce } from './debounce.js';\nexport { saveActiveElement, trapFocus, untrapFocus } from './trapFocus.js';\nexport { keyCodes } from './keyCodes.js';\nexport { memoize } from './memoize.js';\nexport { nextFrame } from './nextFrame.js';\nexport { nextTick } from './nextTick.js';\nexport { nextMicrotask } from './nextMicrotask.js';\nexport { throttle } from './throttle.js';\nexport { scrollTo } from './scrollTo.js';\nexport { getComponentResolver } from './getComponentResolver.js';\nexport {\n isArray,\n isBoolean,\n isDefined,\n isDev,\n isEmpty,\n isEmptyString,\n isFunction,\n isNull,\n isNumber,\n isObject,\n isString,\n} from './is.js';\nexport { hasWindow } from './has.js';\nexport {\n addClass,\n addStyle,\n animate,\n getOffsetSizes,\n matrix,\n removeClass,\n removeStyle,\n toggleClass,\n transform,\n transition,\n type Animate,\n type AnimateOptions,\n type CSSCustomPropertyName,\n type Keyframe,\n type NormalizedKeyframe,\n type TransformProps,\n} from './css/index.js';\nexport {\n objectToURLSearchParams,\n push as historyPush,\n replace as historyReplace,\n} from './history.js';\nexport {\n boundingRectToCircle,\n collideCircleCircle,\n collideCircleRect,\n collidePointCircle,\n collidePointRect,\n collideRectRect,\n} from './collide/index.js';\nexport {\n clamp,\n clamp01,\n createEaseInOut,\n createEaseOut,\n createRange,\n damp,\n ease,\n easeInCirc,\n easeInCubic,\n easeInExpo,\n easeInOutCirc,\n easeInOutCubic,\n easeInOutExpo,\n easeInOutQuad,\n easeInOutQuart,\n easeInOutQuint,\n easeInOutSine,\n easeInQuad,\n easeInQuart,\n easeInQuint,\n easeInSine,\n easeLinear,\n easeOutCirc,\n easeOutCubic,\n easeOutExpo,\n easeOutQuad,\n easeOutQuart,\n easeOutQuint,\n easeOutSine,\n fold,\n inertiaFinalValue,\n lerp,\n map,\n mean,\n round,\n smoothTo,\n spring,\n wrap,\n type EasingFunction,\n} from './math/index.js';\nexport {\n camelCase,\n dashCase,\n endsWith,\n lowerCase,\n pascalCase,\n snakeCase,\n startsWith,\n upperCase,\n withLeadingCharacters,\n withLeadingSlash,\n withTrailingCharacters,\n withTrailingSlash,\n withoutLeadingCharacters,\n withoutLeadingCharactersRecursive,\n withoutLeadingSlash,\n withoutTrailingCharacters,\n withoutTrailingCharactersRecursive,\n withoutTrailingSlash,\n} from './string/index.js';\nexport { domScheduler, useScheduler } from './scheduler.js';\nexport { noop, noopValue } from './noop.js';\nexport { tween } from './tween.js';\nexport { Queue } from './Queue.js';\nexport { SmartQueue } from './SmartQueue.js';\nexport { createElement, getAncestorWhere, getAncestorWhereUntil } from './dom/index.js';\nexport { wait } from './wait.js';\nexport { random, randomInt, randomItem } from './random.js';\nexport { memo } from './memo.js';\nexport {\n loadElement,\n loadIframe,\n loadImage,\n loadLink,\n loadScript,\n type LoadElementsOptions,\n type LoadElementsReturnType,\n type LoadableElements,\n type LoadableElementsNames,\n} from './loadElement.js';\nexport { cache } from './cache.js';\nexport {\n createLocalStorage,\n createLocalStorageProvider,\n createMemoryStorageProvider,\n createNoopProvider,\n createSessionStorage,\n createSessionStorageProvider,\n createStorage,\n createUrlSearchParamsInHashProvider,\n createUrlSearchParamsInHashStorage,\n createUrlSearchParamsProvider,\n createUrlSearchParamsStorage,\n localStorageProvider,\n memoryStorageProvider,\n sessionStorageProvider,\n urlSearchParamsInHashProvider,\n urlSearchParamsProvider,\n type StorageInstance,\n type StorageOptions,\n type StorageProvider,\n type StorageSerializer,\n type UrlProviderOptions,\n} from './storage.js';\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,gBAAgB;AACzB,SAAS,mBAAmB,WAAW,mBAAmB;AAC1D,SAAS,gBAAgB;AACzB,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAC1B,SAAS,gBAAgB;AACzB,SAAS,qBAAqB;AAC9B,SAAS,gBAAgB;AACzB,SAAS,gBAAgB;AACzB,SAAS,4BAA4B;AACrC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,iBAAiB;AAC1B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAOK;AACP;AAAA,EACE;AAAA,EACQ;AAAA,EACG;AAAA,OACN;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,cAAc,oBAAoB;AAC3C,SAAS,MAAM,iBAAiB;AAChC,SAAS,aAAa;AACtB,SAAS,aAAa;AACtB,SAAS,kBAAkB;AAC3B,SAAS,eAAe,kBAAkB,6BAA6B;AACvE,SAAS,YAAY;AACrB,SAAS,QAAQ,WAAW,kBAAkB;AAC9C,SAAS,YAAY;AACrB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AACP,SAAS,aAAa;AACtB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAMK;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/utils/math/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as ease from './ease.js';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export { createEaseInOut, createEaseOut, type EasingFunction } from './createEases.js';
|
|
3
|
+
export { easeInCirc, easeInCubic, easeInExpo, easeInOutCirc, easeInOutCubic, easeInOutExpo, easeInOutQuad, easeInOutQuart, easeInOutQuint, easeInOutSine, easeInQuad, easeInQuart, easeInQuint, easeInSine, easeLinear, easeOutCirc, easeOutCubic, easeOutExpo, easeOutQuad, easeOutQuart, easeOutQuint, easeOutSine, } from './ease.js';
|
|
4
4
|
export { createRange } from './createRange.js';
|
|
5
5
|
export { clamp } from './clamp.js';
|
|
6
6
|
export { clamp01 } from './clamp01.js';
|
package/utils/math/index.js
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
import * as ease from "./ease.js";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { createEaseInOut, createEaseOut } from "./createEases.js";
|
|
3
|
+
import {
|
|
4
|
+
easeInCirc,
|
|
5
|
+
easeInCubic,
|
|
6
|
+
easeInExpo,
|
|
7
|
+
easeInOutCirc,
|
|
8
|
+
easeInOutCubic,
|
|
9
|
+
easeInOutExpo,
|
|
10
|
+
easeInOutQuad,
|
|
11
|
+
easeInOutQuart,
|
|
12
|
+
easeInOutQuint,
|
|
13
|
+
easeInOutSine,
|
|
14
|
+
easeInQuad,
|
|
15
|
+
easeInQuart,
|
|
16
|
+
easeInQuint,
|
|
17
|
+
easeInSine,
|
|
18
|
+
easeLinear,
|
|
19
|
+
easeOutCirc,
|
|
20
|
+
easeOutCubic,
|
|
21
|
+
easeOutExpo,
|
|
22
|
+
easeOutQuad,
|
|
23
|
+
easeOutQuart,
|
|
24
|
+
easeOutQuint,
|
|
25
|
+
easeOutSine
|
|
26
|
+
} from "./ease.js";
|
|
4
27
|
import { createRange } from "./createRange.js";
|
|
5
28
|
import { clamp } from "./clamp.js";
|
|
6
29
|
import { clamp01 } from "./clamp01.js";
|
|
@@ -17,9 +40,33 @@ import { wrap } from "./wrap.js";
|
|
|
17
40
|
export {
|
|
18
41
|
clamp,
|
|
19
42
|
clamp01,
|
|
43
|
+
createEaseInOut,
|
|
44
|
+
createEaseOut,
|
|
20
45
|
createRange,
|
|
21
46
|
damp,
|
|
22
47
|
ease,
|
|
48
|
+
easeInCirc,
|
|
49
|
+
easeInCubic,
|
|
50
|
+
easeInExpo,
|
|
51
|
+
easeInOutCirc,
|
|
52
|
+
easeInOutCubic,
|
|
53
|
+
easeInOutExpo,
|
|
54
|
+
easeInOutQuad,
|
|
55
|
+
easeInOutQuart,
|
|
56
|
+
easeInOutQuint,
|
|
57
|
+
easeInOutSine,
|
|
58
|
+
easeInQuad,
|
|
59
|
+
easeInQuart,
|
|
60
|
+
easeInQuint,
|
|
61
|
+
easeInSine,
|
|
62
|
+
easeLinear,
|
|
63
|
+
easeOutCirc,
|
|
64
|
+
easeOutCubic,
|
|
65
|
+
easeOutExpo,
|
|
66
|
+
easeOutQuad,
|
|
67
|
+
easeOutQuart,
|
|
68
|
+
easeOutQuint,
|
|
69
|
+
easeOutSine,
|
|
23
70
|
fold,
|
|
24
71
|
inertiaFinalValue,
|
|
25
72
|
lerp,
|
package/utils/math/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../packages/js-toolkit/utils/math/index.ts"],
|
|
4
|
-
"sourcesContent": ["export * as ease from './ease.js';\nexport
|
|
5
|
-
"mappings": "AAAA,YAAY,UAAU;AACtB,
|
|
4
|
+
"sourcesContent": ["export * as ease from './ease.js';\nexport { createEaseInOut, createEaseOut, type EasingFunction } from './createEases.js';\nexport {\n easeInCirc,\n easeInCubic,\n easeInExpo,\n easeInOutCirc,\n easeInOutCubic,\n easeInOutExpo,\n easeInOutQuad,\n easeInOutQuart,\n easeInOutQuint,\n easeInOutSine,\n easeInQuad,\n easeInQuart,\n easeInQuint,\n easeInSine,\n easeLinear,\n easeOutCirc,\n easeOutCubic,\n easeOutExpo,\n easeOutQuad,\n easeOutQuart,\n easeOutQuint,\n easeOutSine,\n} from './ease.js';\nexport { createRange } from './createRange.js';\nexport { clamp } from './clamp.js';\nexport { clamp01 } from './clamp01.js';\nexport { damp } from './damp.js';\nexport { fold } from './fold.js';\nexport { spring } from './spring.js';\nexport { inertiaFinalValue } from './inertiaFinalValue.js';\nexport { lerp } from './lerp.js';\nexport { map } from './map.js';\nexport { round } from './round.js';\nexport { mean } from './mean.js';\nexport { smoothTo } from './smoothTo.js';\nexport { wrap } from './wrap.js';\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,UAAU;AACtB,SAAS,iBAAiB,qBAA0C;AACpE;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,mBAAmB;AAC5B,SAAS,aAAa;AACtB,SAAS,eAAe;AACxB,SAAS,YAAY;AACrB,SAAS,YAAY;AACrB,SAAS,cAAc;AACvB,SAAS,yBAAyB;AAClC,SAAS,YAAY;AACrB,SAAS,WAAW;AACpB,SAAS,aAAa;AACtB,SAAS,YAAY;AACrB,SAAS,gBAAgB;AACzB,SAAS,YAAY;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/utils/storage.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { createLocalStorage, createLocalStorageProvider, createMemoryStorageProvider, createNoopProvider, createSessionStorage, createSessionStorageProvider, createStorage, createUrlSearchParamsInHashProvider, createUrlSearchParamsInHashStorage, createUrlSearchParamsProvider, createUrlSearchParamsStorage, localStorageProvider, memoryStorageProvider, sessionStorageProvider, urlSearchParamsInHashProvider, urlSearchParamsProvider, type StorageInstance, type StorageOptions, type StorageProvider, type StorageSerializer, type UrlProviderOptions, } from './storage/index.js';
|
package/utils/storage.js
CHANGED
|
@@ -1,2 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
import {
|
|
2
|
+
createLocalStorage,
|
|
3
|
+
createLocalStorageProvider,
|
|
4
|
+
createMemoryStorageProvider,
|
|
5
|
+
createNoopProvider,
|
|
6
|
+
createSessionStorage,
|
|
7
|
+
createSessionStorageProvider,
|
|
8
|
+
createStorage,
|
|
9
|
+
createUrlSearchParamsInHashProvider,
|
|
10
|
+
createUrlSearchParamsInHashStorage,
|
|
11
|
+
createUrlSearchParamsProvider,
|
|
12
|
+
createUrlSearchParamsStorage,
|
|
13
|
+
localStorageProvider,
|
|
14
|
+
memoryStorageProvider,
|
|
15
|
+
sessionStorageProvider,
|
|
16
|
+
urlSearchParamsInHashProvider,
|
|
17
|
+
urlSearchParamsProvider
|
|
18
|
+
} from "./storage/index.js";
|
|
19
|
+
export {
|
|
20
|
+
createLocalStorage,
|
|
21
|
+
createLocalStorageProvider,
|
|
22
|
+
createMemoryStorageProvider,
|
|
23
|
+
createNoopProvider,
|
|
24
|
+
createSessionStorage,
|
|
25
|
+
createSessionStorageProvider,
|
|
26
|
+
createStorage,
|
|
27
|
+
createUrlSearchParamsInHashProvider,
|
|
28
|
+
createUrlSearchParamsInHashStorage,
|
|
29
|
+
createUrlSearchParamsProvider,
|
|
30
|
+
createUrlSearchParamsStorage,
|
|
31
|
+
localStorageProvider,
|
|
32
|
+
memoryStorageProvider,
|
|
33
|
+
sessionStorageProvider,
|
|
34
|
+
urlSearchParamsInHashProvider,
|
|
35
|
+
urlSearchParamsProvider
|
|
36
|
+
};
|
|
2
37
|
//# sourceMappingURL=storage.js.map
|
package/utils/storage.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../packages/js-toolkit/utils/storage.ts"],
|
|
4
|
-
"sourcesContent": ["export
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["export {\n createLocalStorage,\n createLocalStorageProvider,\n createMemoryStorageProvider,\n createNoopProvider,\n createSessionStorage,\n createSessionStorageProvider,\n createStorage,\n createUrlSearchParamsInHashProvider,\n createUrlSearchParamsInHashStorage,\n createUrlSearchParamsProvider,\n createUrlSearchParamsStorage,\n localStorageProvider,\n memoryStorageProvider,\n sessionStorageProvider,\n urlSearchParamsInHashProvider,\n urlSearchParamsProvider,\n type StorageInstance,\n type StorageOptions,\n type StorageProvider,\n type StorageSerializer,\n type UrlProviderOptions,\n} from './storage/index.js';\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAMK;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/utils/string/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
1
|
+
export { withLeadingCharacters } from './withLeadingCharacters.js';
|
|
2
|
+
export { withLeadingSlash } from './withLeadingSlash.js';
|
|
3
|
+
export { withoutLeadingCharacters } from './withoutLeadingCharacters.js';
|
|
4
|
+
export { withoutLeadingCharactersRecursive } from './withoutLeadingCharactersRecursive.js';
|
|
5
|
+
export { withoutLeadingSlash } from './withoutLeadingSlash.js';
|
|
6
|
+
export { withoutTrailingCharacters } from './withoutTrailingCharacters.js';
|
|
7
|
+
export { withoutTrailingCharactersRecursive } from './withoutTrailingCharactersRecursive.js';
|
|
8
|
+
export { withoutTrailingSlash } from './withoutTrailingSlash.js';
|
|
9
|
+
export { withTrailingCharacters } from './withTrailingCharacters.js';
|
|
10
|
+
export { withTrailingSlash } from './withTrailingSlash.js';
|
|
11
|
+
export { startsWith } from './startsWith.js';
|
|
12
|
+
export { endsWith } from './endsWith.js';
|
|
13
|
+
export { camelCase, dashCase, lowerCase, pascalCase, snakeCase, upperCase } from './changeCase.js';
|
package/utils/string/index.js
CHANGED
|
@@ -1,14 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { withLeadingCharacters } from "./withLeadingCharacters.js";
|
|
2
|
+
import { withLeadingSlash } from "./withLeadingSlash.js";
|
|
3
|
+
import { withoutLeadingCharacters } from "./withoutLeadingCharacters.js";
|
|
4
|
+
import { withoutLeadingCharactersRecursive } from "./withoutLeadingCharactersRecursive.js";
|
|
5
|
+
import { withoutLeadingSlash } from "./withoutLeadingSlash.js";
|
|
6
|
+
import { withoutTrailingCharacters } from "./withoutTrailingCharacters.js";
|
|
7
|
+
import { withoutTrailingCharactersRecursive } from "./withoutTrailingCharactersRecursive.js";
|
|
8
|
+
import { withoutTrailingSlash } from "./withoutTrailingSlash.js";
|
|
9
|
+
import { withTrailingCharacters } from "./withTrailingCharacters.js";
|
|
10
|
+
import { withTrailingSlash } from "./withTrailingSlash.js";
|
|
11
|
+
import { startsWith } from "./startsWith.js";
|
|
12
|
+
import { endsWith } from "./endsWith.js";
|
|
13
|
+
import { camelCase, dashCase, lowerCase, pascalCase, snakeCase, upperCase } from "./changeCase.js";
|
|
14
|
+
export {
|
|
15
|
+
camelCase,
|
|
16
|
+
dashCase,
|
|
17
|
+
endsWith,
|
|
18
|
+
lowerCase,
|
|
19
|
+
pascalCase,
|
|
20
|
+
snakeCase,
|
|
21
|
+
startsWith,
|
|
22
|
+
upperCase,
|
|
23
|
+
withLeadingCharacters,
|
|
24
|
+
withLeadingSlash,
|
|
25
|
+
withTrailingCharacters,
|
|
26
|
+
withTrailingSlash,
|
|
27
|
+
withoutLeadingCharacters,
|
|
28
|
+
withoutLeadingCharactersRecursive,
|
|
29
|
+
withoutLeadingSlash,
|
|
30
|
+
withoutTrailingCharacters,
|
|
31
|
+
withoutTrailingCharactersRecursive,
|
|
32
|
+
withoutTrailingSlash
|
|
33
|
+
};
|
|
14
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../packages/js-toolkit/utils/string/index.ts"],
|
|
4
|
-
"sourcesContent": ["export
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["export { withLeadingCharacters } from './withLeadingCharacters.js';\nexport { withLeadingSlash } from './withLeadingSlash.js';\nexport { withoutLeadingCharacters } from './withoutLeadingCharacters.js';\nexport { withoutLeadingCharactersRecursive } from './withoutLeadingCharactersRecursive.js';\nexport { withoutLeadingSlash } from './withoutLeadingSlash.js';\nexport { withoutTrailingCharacters } from './withoutTrailingCharacters.js';\nexport { withoutTrailingCharactersRecursive } from './withoutTrailingCharactersRecursive.js';\nexport { withoutTrailingSlash } from './withoutTrailingSlash.js';\nexport { withTrailingCharacters } from './withTrailingCharacters.js';\nexport { withTrailingSlash } from './withTrailingSlash.js';\nexport { startsWith } from './startsWith.js';\nexport { endsWith } from './endsWith.js';\nexport { camelCase, dashCase, lowerCase, pascalCase, snakeCase, upperCase } from './changeCase.js';\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,6BAA6B;AACtC,SAAS,wBAAwB;AACjC,SAAS,gCAAgC;AACzC,SAAS,yCAAyC;AAClD,SAAS,2BAA2B;AACpC,SAAS,iCAAiC;AAC1C,SAAS,0CAA0C;AACnD,SAAS,4BAA4B;AACrC,SAAS,8BAA8B;AACvC,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AACzB,SAAS,WAAW,UAAU,WAAW,YAAY,WAAW,iBAAiB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|