@ctx-core/scroll 17.0.24 → 17.1.2

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,26 @@
1
1
  # @ctx-core/scroll
2
2
 
3
+ ## 17.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - tsx: ^3.8.2 -> ^3.9.0
8
+ - Updated dependencies
9
+ - @ctx-core/nanostores@1.4.11
10
+ - @ctx-core/object@22.2.7
11
+
12
+ ## 17.1.1
13
+
14
+ ### Patch Changes
15
+
16
+ - @ctx-core/nanostores: ^1.4.1 -> ^1.4.2
17
+
18
+ ## 17.1.0
19
+
20
+ ### Minor Changes
21
+
22
+ - \__ suffix aliased by \$_
23
+
3
24
  ## 17.0.24
4
25
 
5
26
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctx-core/scroll",
3
- "version": "17.0.24",
3
+ "version": "17.1.2",
4
4
  "description": "ctx-core scroll",
5
5
  "keywords": [
6
6
  "ctx-core",
@@ -24,16 +24,16 @@
24
24
  "./package.json": "./package.json"
25
25
  },
26
26
  "dependencies": {
27
- "@ctx-core/nanostores": "^1.4.0",
28
- "@ctx-core/object": "^22.2.0"
27
+ "@ctx-core/nanostores": "^1.4.11",
28
+ "@ctx-core/object": "^22.2.7"
29
29
  },
30
30
  "devDependencies": {
31
- "c8": "^7.11.3",
31
+ "c8": "^7.12.0",
32
32
  "check-dts": "^0.6.7",
33
33
  "tslib": "^2.4.0",
34
- "tsm": "^2.2.1",
34
+ "tsx": "^3.9.0",
35
35
  "typescript": "next",
36
- "uvu": "^0.5.3"
36
+ "uvu": "^0.5.6"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public",
@@ -45,7 +45,7 @@
45
45
  "clean": ":",
46
46
  "exec": "$@",
47
47
  "test": "pnpm test-unit && check-dts",
48
- "test-unit": "tsm node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'",
48
+ "test-unit": "tsx node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'",
49
49
  "test-unit-coverage": "c8 pnpm test-unit"
50
50
  }
51
51
  }
package/src/index.d.ts CHANGED
@@ -2,4 +2,4 @@ export * from './is_active_.js'
2
2
  export * from './is_visible_.js'
3
3
  export * from './out_is_active_.js'
4
4
  export * from './out_is_visible_.js'
5
- export * from './sticky_scroll_active$_.js'
5
+ export * from './sticky_scroll_active__.js'
package/src/index.js CHANGED
@@ -2,5 +2,5 @@ export * from './is_active_.js'
2
2
  export * from './is_visible_.js'
3
3
  export * from './out_is_active_.js'
4
4
  export * from './out_is_visible_.js'
5
- export * from './sticky_scroll_active$_.js'
5
+ export * from './sticky_scroll_active__.js'
6
6
 
@@ -1,9 +1,10 @@
1
+ import { type WritableAtom_ } from '@ctx-core/nanostores'
1
2
  import { B, Ctx } from '@ctx-core/object'
2
- import { WritableAtom_ } from '@ctx-core/nanostores'
3
- export declare const sticky_scroll_active$_:B<sticky_scroll_active$_T>
3
+ export declare const sticky_scroll_active__:B<sticky_scroll_active__T>
4
4
  export type sticky_scroll_active_T = Record<string, boolean>
5
- export type sticky_scroll_active$_T = WritableAtom_<sticky_scroll_active_T>
5
+ export type sticky_scroll_active__T = WritableAtom_<sticky_scroll_active_T>
6
6
  export declare function add_sticky_scroll_active(ctx:Ctx, key:string):void;
7
7
  export declare function remove_sticky_scroll_active(ctx:Ctx, key:string):void;
8
8
  export declare function sticky_scroll_active_key_active_(ctx:Ctx, key:string):boolean;
9
9
  export declare function sticky_scroll_active_key_match_(ctx:Ctx, key:string, active:any):boolean;
10
+ export { sticky_scroll_active__ as sticky_scroll_active$_ }
@@ -1,35 +1,35 @@
1
1
  import { atom_ } from '@ctx-core/nanostores'
2
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$', ()=>
3
+ /** @type {import('./sticky_scroll_active__.d.ts').sticky_scroll_active__} */
4
+ export const sticky_scroll_active__ = b_('sticky_scroll_active_', ()=>
5
5
  atom_({}))
6
6
  /**
7
7
  * @param {import('@ctx-core/object').Ctx}ctx
8
8
  * @param {string}key
9
9
  */
10
10
  export function add_sticky_scroll_active(ctx, key) {
11
- const sticky_scroll_active$ = sticky_scroll_active$_(ctx)
12
- const sticky_scroll_active = sticky_scroll_active$.$
11
+ const sticky_scroll_active_ = sticky_scroll_active__(ctx)
12
+ const sticky_scroll_active = sticky_scroll_active_.$
13
13
  sticky_scroll_active[key] = true
14
- sticky_scroll_active$.$ = sticky_scroll_active
14
+ sticky_scroll_active_.$ = sticky_scroll_active
15
15
  }
16
16
  /**
17
17
  * @param {import('@ctx-core/object').Ctx}ctx
18
18
  * @param {string}key
19
19
  */
20
20
  export function remove_sticky_scroll_active(ctx, key) {
21
- const sticky_scroll_active$ = sticky_scroll_active$_(ctx)
22
- const sticky_scroll_active = sticky_scroll_active$.$
21
+ const sticky_scroll_active_ = sticky_scroll_active__(ctx)
22
+ const sticky_scroll_active = sticky_scroll_active_.$
23
23
  sticky_scroll_active[key] = false
24
- sticky_scroll_active$.$ = sticky_scroll_active
24
+ sticky_scroll_active_.$ = sticky_scroll_active
25
25
  }
26
26
  /**
27
27
  * @param {import('@ctx-core/object').Ctx}ctx
28
28
  * @param {string}key
29
29
  */
30
30
  export function sticky_scroll_active_key_active_(ctx, key) {
31
- const sticky_scroll_active$ = sticky_scroll_active$_(ctx)
32
- const sticky_scroll_active = sticky_scroll_active$.$
31
+ const sticky_scroll_active_ = sticky_scroll_active__(ctx)
32
+ const sticky_scroll_active = sticky_scroll_active_.$
33
33
  const active = sticky_scroll_active ? sticky_scroll_active[key] : false
34
34
  return active
35
35
  }
@@ -39,6 +39,7 @@ export function sticky_scroll_active_key_active_(ctx, key) {
39
39
  * @param {boolean}active
40
40
  */
41
41
  export function sticky_scroll_active_key_match_(ctx, key, active) {
42
- const sticky_scroll_active$ = sticky_scroll_active$_(ctx)
42
+ const sticky_scroll_active_ = sticky_scroll_active__(ctx)
43
43
  return !!active == !!sticky_scroll_active_key_active_(ctx, key)
44
44
  }
45
+ export { sticky_scroll_active__ as sticky_scroll_active$_ }