@ctx-core/scroll 15.0.17 → 16.0.3

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,31 @@
1
1
  # @ctx-core/scroll
2
2
 
3
+ ## 16.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - update dependencies
8
+ - Updated dependencies
9
+ - @ctx-core/nanostores@0.5.4
10
+
11
+ ## 16.0.2
12
+
13
+ ### Patch Changes
14
+
15
+ - update dependencies
16
+
17
+ ## 16.0.1
18
+
19
+ ### Patch Changes
20
+
21
+ - update dependencies
22
+
23
+ ## 16.0.0
24
+
25
+ ### Major Changes
26
+
27
+ - flatten functions: remove \_b suffix from exports
28
+
3
29
  ## 15.0.17
4
30
 
5
31
  ### Patch Changes
package/lib/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$_b.js';
5
+ export * from './sticky_scroll_active$_.js';
package/lib/index.js CHANGED
@@ -2,6 +2,6 @@ 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$_b.js';
5
+ export * from './sticky_scroll_active$_.js';
6
6
 
7
7
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './is_active_.js'\nexport * from './is_visible_.js'\nexport * from './out_is_active_.js'\nexport * from './out_is_visible_.js'\nexport * from './sticky_scroll_active$_b.js'\n"],"names":[],"mappings":"cAAc,CAAiB;cACjB,CAAkB;cAClB,CAAqB;cACrB,CAAsB;cACtB,CAA8B"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './is_active_.js'\nexport * from './is_visible_.js'\nexport * from './out_is_active_.js'\nexport * from './out_is_visible_.js'\nexport * from './sticky_scroll_active$_.js'\n"],"names":[],"mappings":"cAAc,CAAiB;cACjB,CAAkB;cAClB,CAAqB;cACrB,CAAsB;cACtB,CAA6B"}
@@ -1,6 +1,6 @@
1
1
  import { B } from '@ctx-core/object';
2
2
  import { WritableAtom$ } from '@ctx-core/nanostores';
3
- export declare const sticky_scroll_active$_b: B<sticky_scroll_active$_T>;
3
+ export declare const sticky_scroll_active$_: B<sticky_scroll_active$_T>;
4
4
  export interface sticky_scroll_active_T extends Record<string, boolean> {
5
5
  }
6
6
  export interface sticky_scroll_active$_T extends WritableAtom$<sticky_scroll_active_T> {
@@ -9,4 +9,3 @@ export interface sticky_scroll_active$_T extends WritableAtom$<sticky_scroll_act
9
9
  sticky_scroll_active_key_active_: (key: string) => void;
10
10
  sticky_scroll_active_key_match_: (key: string, active: any) => void;
11
11
  }
12
- export { sticky_scroll_active$_b as b__active__Sticky__Scroll, };
@@ -1,7 +1,6 @@
1
1
  import { assign, b_ } from '@ctx-core/object';
2
2
  import { atom$ } from '@ctx-core/nanostores';
3
- const key = 'sticky_scroll_active$';
4
- export const sticky_scroll_active$_b = b_(key, ()=>{
3
+ export const sticky_scroll_active$_ = b_('sticky_scroll_active$', ()=>{
5
4
  const sticky_scroll_active$ = atom$({});
6
5
  return assign(sticky_scroll_active$, {
7
6
  add_sticky_scroll_active,
@@ -9,25 +8,24 @@ export const sticky_scroll_active$_b = b_(key, ()=>{
9
8
  sticky_scroll_active_key_active_,
10
9
  sticky_scroll_active_key_match_
11
10
  });
12
- function add_sticky_scroll_active(key1) {
11
+ function add_sticky_scroll_active(key) {
13
12
  const sticky_scroll_active = sticky_scroll_active$.$;
14
- sticky_scroll_active[key1] = true;
13
+ sticky_scroll_active[key] = true;
15
14
  sticky_scroll_active$.$ = sticky_scroll_active;
16
15
  }
17
- function remove_sticky_scroll_active(key2) {
16
+ function remove_sticky_scroll_active(key) {
18
17
  const sticky_scroll_active = sticky_scroll_active$.$;
19
- sticky_scroll_active[key2] = false;
18
+ sticky_scroll_active[key] = false;
20
19
  sticky_scroll_active$.$ = sticky_scroll_active;
21
20
  }
22
- function sticky_scroll_active_key_active_(key3) {
21
+ function sticky_scroll_active_key_active_(key) {
23
22
  const sticky_scroll_active = sticky_scroll_active$.$;
24
- const active = sticky_scroll_active ? sticky_scroll_active[key3] : false;
23
+ const active = sticky_scroll_active ? sticky_scroll_active[key] : false;
25
24
  return active;
26
25
  }
27
- function sticky_scroll_active_key_match_(key4, active) {
28
- return !!active == !!sticky_scroll_active_key_active_(key4);
26
+ function sticky_scroll_active_key_match_(key, active) {
27
+ return !!active == !!sticky_scroll_active_key_active_(key);
29
28
  }
30
29
  });
31
- export { sticky_scroll_active$_b as b__active__Sticky__Scroll, };
32
30
 
33
- //# sourceMappingURL=sticky_scroll_active$_b.js.map
31
+ //# sourceMappingURL=sticky_scroll_active$_.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/sticky_scroll_active$_.ts"],"sourcesContent":["import { assign, B, b_ } from '@ctx-core/object'\nimport { atom$, WritableAtom$ } from '@ctx-core/nanostores'\nexport const sticky_scroll_active$_:B<sticky_scroll_active$_T> = b_('sticky_scroll_active$', ()=>{\n\tconst sticky_scroll_active$ = atom$<sticky_scroll_active_T>({})\n\treturn assign(sticky_scroll_active$, {\n\t\tadd_sticky_scroll_active,\n\t\tremove_sticky_scroll_active,\n\t\tsticky_scroll_active_key_active_,\n\t\tsticky_scroll_active_key_match_,\n\t}) as sticky_scroll_active$_T\n\tfunction add_sticky_scroll_active(key:string) {\n\t\tconst sticky_scroll_active = sticky_scroll_active$.$\n\t\tsticky_scroll_active[key] = true\n\t\tsticky_scroll_active$.$ = sticky_scroll_active\n\t}\n\tfunction remove_sticky_scroll_active(key:string) {\n\t\tconst sticky_scroll_active = sticky_scroll_active$.$\n\t\tsticky_scroll_active[key] = false\n\t\tsticky_scroll_active$.$ = sticky_scroll_active\n\t}\n\tfunction sticky_scroll_active_key_active_(key:string) {\n\t\tconst sticky_scroll_active = sticky_scroll_active$.$\n\t\tconst active =\n\t\t\tsticky_scroll_active\n\t\t\t? sticky_scroll_active[key]\n\t\t\t: false\n\t\treturn active\n\t}\n\tfunction sticky_scroll_active_key_match_(key:string, active:boolean) {\n\t\treturn !!(active) == !!(sticky_scroll_active_key_active_(key))\n\t}\n})\nexport interface sticky_scroll_active_T extends Record<string, boolean> {}\nexport interface sticky_scroll_active$_T extends WritableAtom$<sticky_scroll_active_T> {\n\tadd_sticky_scroll_active:(key:string)=>void\n\tremove_sticky_scroll_active:(key:string)=>void\n\tsticky_scroll_active_key_active_:(key:string)=>void\n\tsticky_scroll_active_key_match_:(key:string, active:any)=>void\n}\n"],"names":["assign","b_","atom$","sticky_scroll_active$_","sticky_scroll_active$","add_sticky_scroll_active","remove_sticky_scroll_active","sticky_scroll_active_key_active_","sticky_scroll_active_key_match_","key","sticky_scroll_active","$","active"],"mappings":"AAAA,MAAM,GAAGA,MAAM,EAAKC,EAAE,QAAQ,CAAkB;AAChD,MAAM,GAAGC,KAAK,QAAuB,CAAsB;AAC3D,MAAM,CAAC,KAAK,CAACC,sBAAsB,GAA8BF,EAAE,CAAC,CAAuB,4BAAM,CAAC;IACjG,KAAK,CAACG,qBAAqB,GAAGF,KAAK,CAAyB,CAAC,CAAC;IAC9D,MAAM,CAACF,MAAM,CAACI,qBAAqB,EAAE,CAAC;QACrCC,wBAAwB;QACxBC,2BAA2B;QAC3BC,gCAAgC;QAChCC,+BAA+B;IAChC,CAAC;aACQH,wBAAwB,CAACI,GAAU,EAAE,CAAC;QAC9C,KAAK,CAACC,oBAAoB,GAAGN,qBAAqB,CAACO,CAAC;QACpDD,oBAAoB,CAACD,GAAG,IAAI,IAAI;QAChCL,qBAAqB,CAACO,CAAC,GAAGD,oBAAoB;IAC/C,CAAC;aACQJ,2BAA2B,CAACG,GAAU,EAAE,CAAC;QACjD,KAAK,CAACC,oBAAoB,GAAGN,qBAAqB,CAACO,CAAC;QACpDD,oBAAoB,CAACD,GAAG,IAAI,KAAK;QACjCL,qBAAqB,CAACO,CAAC,GAAGD,oBAAoB;IAC/C,CAAC;aACQH,gCAAgC,CAACE,GAAU,EAAE,CAAC;QACtD,KAAK,CAACC,oBAAoB,GAAGN,qBAAqB,CAACO,CAAC;QACpD,KAAK,CAACC,MAAM,GACXF,oBAAoB,GAClBA,oBAAoB,CAACD,GAAG,IACxB,KAAK;QACR,MAAM,CAACG,MAAM;IACd,CAAC;aACQJ,+BAA+B,CAACC,GAAU,EAAEG,MAAc,EAAE,CAAC;QACrE,MAAM,GAAIA,MAAM,MAAQL,gCAAgC,CAACE,GAAG;IAC7D,CAAC;AACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctx-core/scroll",
3
- "version": "15.0.17",
3
+ "version": "16.0.3",
4
4
  "description": "ctx-core scroll",
5
5
  "keywords": [
6
6
  "ctx-core",
@@ -25,12 +25,12 @@
25
25
  "./package.json": "./package.json"
26
26
  },
27
27
  "dependencies": {
28
- "@ctx-core/nanostores": "^0.5.0",
29
- "@ctx-core/object": "^22.0.13"
28
+ "@ctx-core/nanostores": "^0.5.4",
29
+ "@ctx-core/object": "22.1.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@swc/cli": "^0.1.55",
33
- "@swc/core": "^1.2.135",
33
+ "@swc/core": "^1.2.136",
34
34
  "rimraf": "^3.0.2",
35
35
  "typescript": "next"
36
36
  },
package/src/index.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$_b.js'
5
+ export * from './sticky_scroll_active$_.js'
@@ -1,7 +1,6 @@
1
- import { assign, b_, B } from '@ctx-core/object'
1
+ import { assign, B, b_ } from '@ctx-core/object'
2
2
  import { atom$, WritableAtom$ } from '@ctx-core/nanostores'
3
- const key = 'sticky_scroll_active$'
4
- export const sticky_scroll_active$_b:B<sticky_scroll_active$_T> = b_(key, ()=>{
3
+ export const sticky_scroll_active$_:B<sticky_scroll_active$_T> = b_('sticky_scroll_active$', ()=>{
5
4
  const sticky_scroll_active$ = atom$<sticky_scroll_active_T>({})
6
5
  return assign(sticky_scroll_active$, {
7
6
  add_sticky_scroll_active,
@@ -38,6 +37,3 @@ export interface sticky_scroll_active$_T extends WritableAtom$<sticky_scroll_act
38
37
  sticky_scroll_active_key_active_:(key:string)=>void
39
38
  sticky_scroll_active_key_match_:(key:string, active:any)=>void
40
39
  }
41
- export {
42
- sticky_scroll_active$_b as b__active__Sticky__Scroll,
43
- }
package/COMMIT_EDITMSG DELETED
@@ -1 +0,0 @@
1
-
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/sticky_scroll_active$_b.ts"],"sourcesContent":["import { assign, b_, B } from '@ctx-core/object'\nimport { atom$, WritableAtom$ } from '@ctx-core/nanostores'\nconst key = 'sticky_scroll_active$'\nexport const sticky_scroll_active$_b:B<sticky_scroll_active$_T> = b_(key, ()=>{\n\tconst sticky_scroll_active$ = atom$<sticky_scroll_active_T>({})\n\treturn assign(sticky_scroll_active$, {\n\t\tadd_sticky_scroll_active,\n\t\tremove_sticky_scroll_active,\n\t\tsticky_scroll_active_key_active_,\n\t\tsticky_scroll_active_key_match_,\n\t}) as sticky_scroll_active$_T\n\tfunction add_sticky_scroll_active(key:string) {\n\t\tconst sticky_scroll_active = sticky_scroll_active$.$\n\t\tsticky_scroll_active[key] = true\n\t\tsticky_scroll_active$.$ = sticky_scroll_active\n\t}\n\tfunction remove_sticky_scroll_active(key:string) {\n\t\tconst sticky_scroll_active = sticky_scroll_active$.$\n\t\tsticky_scroll_active[key] = false\n\t\tsticky_scroll_active$.$ = sticky_scroll_active\n\t}\n\tfunction sticky_scroll_active_key_active_(key:string) {\n\t\tconst sticky_scroll_active = sticky_scroll_active$.$\n\t\tconst active =\n\t\t\tsticky_scroll_active\n\t\t\t? sticky_scroll_active[key]\n\t\t\t: false\n\t\treturn active\n\t}\n\tfunction sticky_scroll_active_key_match_(key:string, active:boolean) {\n\t\treturn !!(active) == !!(sticky_scroll_active_key_active_(key))\n\t}\n})\nexport interface sticky_scroll_active_T extends Record<string, boolean> {}\nexport interface sticky_scroll_active$_T extends WritableAtom$<sticky_scroll_active_T> {\n\tadd_sticky_scroll_active:(key:string)=>void\n\tremove_sticky_scroll_active:(key:string)=>void\n\tsticky_scroll_active_key_active_:(key:string)=>void\n\tsticky_scroll_active_key_match_:(key:string, active:any)=>void\n}\nexport {\n\tsticky_scroll_active$_b as b__active__Sticky__Scroll,\n}\n"],"names":["assign","b_","atom$","key","sticky_scroll_active$_b","sticky_scroll_active$","add_sticky_scroll_active","remove_sticky_scroll_active","sticky_scroll_active_key_active_","sticky_scroll_active_key_match_","sticky_scroll_active","$","active","b__active__Sticky__Scroll"],"mappings":"AAAA,MAAM,GAAGA,MAAM,EAAEC,EAAE,QAAW,CAAkB;AAChD,MAAM,GAAGC,KAAK,QAAuB,CAAsB;AAC3D,KAAK,CAACC,GAAG,GAAG,CAAuB;AACnC,MAAM,CAAC,KAAK,CAACC,uBAAuB,GAA8BH,EAAE,CAACE,GAAG,MAAM,CAAC;IAC9E,KAAK,CAACE,qBAAqB,GAAGH,KAAK,CAAyB,CAAC,CAAC;IAC9D,MAAM,CAACF,MAAM,CAACK,qBAAqB,EAAE,CAAC;QACrCC,wBAAwB;QACxBC,2BAA2B;QAC3BC,gCAAgC;QAChCC,+BAA+B;IAChC,CAAC;aACQH,wBAAwB,CAACH,IAAU,EAAE,CAAC;QAC9C,KAAK,CAACO,oBAAoB,GAAGL,qBAAqB,CAACM,CAAC;QACpDD,oBAAoB,CAACP,IAAG,IAAI,IAAI;QAChCE,qBAAqB,CAACM,CAAC,GAAGD,oBAAoB;IAC/C,CAAC;aACQH,2BAA2B,CAACJ,IAAU,EAAE,CAAC;QACjD,KAAK,CAACO,oBAAoB,GAAGL,qBAAqB,CAACM,CAAC;QACpDD,oBAAoB,CAACP,IAAG,IAAI,KAAK;QACjCE,qBAAqB,CAACM,CAAC,GAAGD,oBAAoB;IAC/C,CAAC;aACQF,gCAAgC,CAACL,IAAU,EAAE,CAAC;QACtD,KAAK,CAACO,oBAAoB,GAAGL,qBAAqB,CAACM,CAAC;QACpD,KAAK,CAACC,MAAM,GACXF,oBAAoB,GAClBA,oBAAoB,CAACP,IAAG,IACxB,KAAK;QACR,MAAM,CAACS,MAAM;IACd,CAAC;aACQH,+BAA+B,CAACN,IAAU,EAAES,MAAc,EAAE,CAAC;QACrE,MAAM,GAAIA,MAAM,MAAQJ,gCAAgC,CAACL,IAAG;IAC7D,CAAC;AACF,CAAC;AAQD,MAAM,GACLC,uBAAuB,IAAIS,yBAAyB"}