@ctx-core/scroll 17.1.25 → 17.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @ctx-core/scroll
2
2
 
3
+ ## 17.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - extract _.js & _.d.ts into directories
8
+
9
+ ## 17.1.26
10
+
11
+ ### Patch Changes
12
+
13
+ - @ctx-core/object: ^24.1.3 -> ^24.1.4
14
+ - Updated dependencies
15
+ - @ctx-core/nanostores@2.2.22
16
+
3
17
  ## 17.1.25
4
18
 
5
19
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctx-core/scroll",
3
- "version": "17.1.25",
3
+ "version": "17.2.0",
4
4
  "description": "ctx-core scroll",
5
5
  "keywords": [
6
6
  "ctx-core",
@@ -24,11 +24,11 @@
24
24
  "./package.json": "./package.json"
25
25
  },
26
26
  "dependencies": {
27
- "@ctx-core/nanostores": "^2.2.21",
28
- "@ctx-core/object": "^24.1.3"
27
+ "@ctx-core/nanostores": "^2.2.22",
28
+ "@ctx-core/object": "^24.1.4"
29
29
  },
30
30
  "devDependencies": {
31
- "c8": "^7.12.0",
31
+ "c8": "^7.13.0",
32
32
  "check-dts": "^0.7.0",
33
33
  "tslib": "^2.5.0",
34
34
  "tsx": "^3.12.3",
package/src/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export * from './is_active_.js'
2
- export * from './is_visible_.js'
3
- export * from './out_is_active_.js'
4
- export * from './out_is_visible_.js'
5
- export * from './sticky_scroll_active__.js'
1
+ export * from './is_active_'
2
+ export * from './is_visible_'
3
+ export * from './out_is_active_'
4
+ export * from './out_is_visible_'
5
+ export * from './sticky_scroll_active__'
package/src/index.js CHANGED
@@ -1,6 +1,5 @@
1
- export * from './is_active_.js'
2
- export * from './is_visible_.js'
3
- export * from './out_is_active_.js'
4
- export * from './out_is_visible_.js'
5
- export * from './sticky_scroll_active__.js'
6
-
1
+ export * from './is_active_/index.js'
2
+ export * from './is_visible_/index.js'
3
+ export * from './out_is_active_/index.js'
4
+ export * from './out_is_visible_/index.js'
5
+ export * from './sticky_scroll_active__/index.js'
@@ -0,0 +1,2 @@
1
+ export declare function is_active_(el:HTMLElement):boolean
2
+ export { is_active_ as _is_active, }
@@ -1,4 +1,4 @@
1
- import { out_is_active_ } from './out_is_active_.js'
1
+ import { out_is_active_ } from '../out_is_active_/index.js'
2
2
  /**
3
3
  * @param {HTMLElement}el
4
4
  * @return {boolean}
@@ -0,0 +1,2 @@
1
+ export declare function is_visible_(el:HTMLElement):boolean
2
+ export { is_visible_ as _is_visible, }
@@ -1,4 +1,4 @@
1
- import { out_is_visible_ } from './out_is_visible_.js'
1
+ import { out_is_visible_ } from '../out_is_visible_/index.js'
2
2
  /**
3
3
  * @param {HTMLElement}el
4
4
  * @return {boolean}
@@ -1 +1 @@
1
- export declare function out_is_active_(top:number, bottom:number):boolean;
1
+ export declare function out_is_active_(top:number, bottom:number):boolean
@@ -1,2 +1,2 @@
1
- export declare function out_is_visible_(top:number, bottom:number, innerHeight:number):boolean;
1
+ export declare function out_is_visible_(top:number, bottom:number, innerHeight:number):boolean
2
2
  export { out_is_visible_ as _out_is_visible, }
@@ -1,4 +1,4 @@
1
- import { out_is_active_ } from './out_is_active_.js'
1
+ import { out_is_active_ } from '../out_is_active_/index.js'
2
2
  /**
3
3
  * @param {number}top
4
4
  * @param {number}bottom
@@ -1,10 +1,10 @@
1
- import { type WritableAtom_ } from '@ctx-core/nanostores'
2
- import { B, Ctx } from '@ctx-core/object'
3
- export declare const sticky_scroll_active__:B<sticky_scroll_active__T>
1
+ import type { WritableAtom_ } from '@ctx-core/nanostores'
2
+ import type { Be, Ctx } from '@ctx-core/object'
3
+ export declare const sticky_scroll_active__:Be<sticky_scroll_active__T>
4
4
  export type sticky_scroll_active_T = Record<string, boolean>
5
5
  export type sticky_scroll_active__T = WritableAtom_<sticky_scroll_active_T>
6
- export declare function add_sticky_scroll_active(ctx:Ctx, key:string):void;
7
- export declare function remove_sticky_scroll_active(ctx:Ctx, key:string):void;
8
- export declare function sticky_scroll_active_key_active_(ctx:Ctx, key:string):boolean;
9
- export declare function sticky_scroll_active_key_match_(ctx:Ctx, key:string, active:any):boolean;
6
+ export declare function add_sticky_scroll_active(ctx:Ctx, key:string):void
7
+ export declare function remove_sticky_scroll_active(ctx:Ctx, key:string):void
8
+ export declare function sticky_scroll_active_key_active_(ctx:Ctx, key:string):boolean
9
+ export declare function sticky_scroll_active_key_match_(ctx:Ctx, key:string, active:any):boolean
10
10
  export { sticky_scroll_active__ as sticky_scroll_active$_ }
@@ -1,8 +1,9 @@
1
1
  import { atom_ } from '@ctx-core/nanostores'
2
- import { b_ } from '@ctx-core/object'
3
- /** @type {import('./sticky_scroll_active__.d.ts').sticky_scroll_active__} */
4
- export const sticky_scroll_active__ = b_('sticky_scroll_active_', ()=>
5
- atom_({}))
2
+ import { be_ } from '@ctx-core/object'
3
+ /** @type {typeof import('./sticky_scroll_active__.d.ts').sticky_scroll_active__} */
4
+ export const sticky_scroll_active__ = be_('sticky_scroll_active_',
5
+ ()=>
6
+ atom_({}))
6
7
  /**
7
8
  * @param {import('@ctx-core/object').Ctx}ctx
8
9
  * @param {string}key
@@ -1,2 +0,0 @@
1
- export declare function is_active_(el:HTMLElement):boolean;
2
- export { is_active_ as _is_active, }
@@ -1,2 +0,0 @@
1
- export declare function is_visible_(el:HTMLElement):boolean;
2
- export { is_visible_ as _is_visible, }