@ctx-core/scroll 14.0.7 → 15.0.5
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,43 @@
|
|
|
1
1
|
# @ctx-core/scroll
|
|
2
2
|
|
|
3
|
+
## 15.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- update dependencies
|
|
8
|
+
|
|
9
|
+
## 15.0.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
- @ctx-core/nanostores@0.3.0
|
|
15
|
+
|
|
16
|
+
## 15.0.3
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- update dependencies
|
|
21
|
+
|
|
22
|
+
## 15.0.2
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
- @ctx-core/nanostores@0.2.0
|
|
28
|
+
|
|
29
|
+
## 15.0.1
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- update dependencies
|
|
34
|
+
|
|
35
|
+
## 15.0.0
|
|
36
|
+
|
|
37
|
+
### Major Changes
|
|
38
|
+
|
|
39
|
+
- using @ctx-core/nanostores for stores instead of @ctx-core/store,@ctx-core/svelte
|
|
40
|
+
|
|
3
41
|
## 14.0.7
|
|
4
42
|
|
|
5
43
|
### Patch Changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { assign, b_ } from '@ctx-core/object';
|
|
2
|
-
import {
|
|
2
|
+
import { atom$ } from '@ctx-core/nanostores';
|
|
3
3
|
const key = 'sticky_scroll_active$';
|
|
4
4
|
export const sticky_scroll_active$_b = b_(key, ()=>{
|
|
5
|
-
const sticky_scroll_active$ =
|
|
5
|
+
const sticky_scroll_active$ = atom$({
|
|
6
6
|
});
|
|
7
7
|
return assign(sticky_scroll_active$, {
|
|
8
8
|
add_sticky_scroll_active,
|
|
@@ -11,16 +11,14 @@ export const sticky_scroll_active$_b = b_(key, ()=>{
|
|
|
11
11
|
sticky_scroll_active_key_match_
|
|
12
12
|
});
|
|
13
13
|
function add_sticky_scroll_active(key) {
|
|
14
|
-
sticky_scroll_active
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
});
|
|
14
|
+
const sticky_scroll_active = sticky_scroll_active$.$;
|
|
15
|
+
sticky_scroll_active[key] = true;
|
|
16
|
+
sticky_scroll_active$.$ = sticky_scroll_active;
|
|
18
17
|
}
|
|
19
18
|
function remove_sticky_scroll_active(key) {
|
|
20
|
-
sticky_scroll_active
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
});
|
|
19
|
+
const sticky_scroll_active = sticky_scroll_active$.$;
|
|
20
|
+
sticky_scroll_active[key] = false;
|
|
21
|
+
sticky_scroll_active$.$ = sticky_scroll_active;
|
|
24
22
|
}
|
|
25
23
|
function sticky_scroll_active_key_active_(key) {
|
|
26
24
|
const sticky_scroll_active = sticky_scroll_active$.$;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/sticky_scroll_active$_b.ts"],"sourcesContent":["import { assign, b_, B } from '@ctx-core/object'\nimport {
|
|
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;IAAA,CAAC;IAC9D,MAAM,CAACF,MAAM,CAACK,qBAAqB,EAAE,CAAC;QACrCC,wBAAwB;QACxBC,2BAA2B;QAC3BC,gCAAgC;QAChCC,+BAA+B;IAChC,CAAC;aACQH,wBAAwB,CAACH,GAAU,EAAE,CAAC;QAC9C,KAAK,CAACO,oBAAoB,GAAGL,qBAAqB,CAACM,CAAC;QACpDD,oBAAoB,CAACP,GAAG,IAAI,IAAI;QAChCE,qBAAqB,CAACM,CAAC,GAAGD,oBAAoB;IAC/C,CAAC;aACQH,2BAA2B,CAACJ,GAAU,EAAE,CAAC;QACjD,KAAK,CAACO,oBAAoB,GAAGL,qBAAqB,CAACM,CAAC;QACpDD,oBAAoB,CAACP,GAAG,IAAI,KAAK;QACjCE,qBAAqB,CAACM,CAAC,GAAGD,oBAAoB;IAC/C,CAAC;aACQF,gCAAgC,CAACL,GAAU,EAAE,CAAC;QACtD,KAAK,CAACO,oBAAoB,GAAGL,qBAAqB,CAACM,CAAC;QACpD,KAAK,CAACC,MAAM,GACXF,oBAAoB,GAClBA,oBAAoB,CAACP,GAAG,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ctx-core/scroll",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.5",
|
|
4
4
|
"description": "ctx-core scroll",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ctx-core",
|
|
@@ -25,13 +25,12 @@
|
|
|
25
25
|
"./package.json": "./package.json"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@ctx-core/
|
|
29
|
-
"@ctx-core/
|
|
28
|
+
"@ctx-core/nanostores": "^0.3.0",
|
|
29
|
+
"@ctx-core/object": "^22.0.8"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@ctx-core/ctx-core-package-tools": "^8.0.95",
|
|
33
32
|
"@swc/cli": "^0.1.55",
|
|
34
|
-
"@swc/core": "^1.2.
|
|
33
|
+
"@swc/core": "^1.2.121",
|
|
35
34
|
"rimraf": "^3.0.2",
|
|
36
35
|
"typescript": "next"
|
|
37
36
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { assign, b_, B } from '@ctx-core/object'
|
|
2
|
-
import {
|
|
2
|
+
import { atom$, WritableAtom$ } from '@ctx-core/nanostores'
|
|
3
3
|
const key = 'sticky_scroll_active$'
|
|
4
4
|
export const sticky_scroll_active$_b:B<sticky_scroll_active$_T> = b_(key, ()=>{
|
|
5
|
-
const sticky_scroll_active$ =
|
|
5
|
+
const sticky_scroll_active$ = atom$<sticky_scroll_active_T>({})
|
|
6
6
|
return assign(sticky_scroll_active$, {
|
|
7
7
|
add_sticky_scroll_active,
|
|
8
8
|
remove_sticky_scroll_active,
|
|
@@ -10,18 +10,14 @@ export const sticky_scroll_active$_b:B<sticky_scroll_active$_T> = b_(key, ()=>{
|
|
|
10
10
|
sticky_scroll_active_key_match_,
|
|
11
11
|
}) as sticky_scroll_active$_T
|
|
12
12
|
function add_sticky_scroll_active(key:string) {
|
|
13
|
-
sticky_scroll_active
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return scroll_sticky_active
|
|
17
|
-
})
|
|
13
|
+
const sticky_scroll_active = sticky_scroll_active$.$
|
|
14
|
+
sticky_scroll_active[key] = true
|
|
15
|
+
sticky_scroll_active$.$ = sticky_scroll_active
|
|
18
16
|
}
|
|
19
17
|
function remove_sticky_scroll_active(key:string) {
|
|
20
|
-
sticky_scroll_active
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return scroll_sticky_active
|
|
24
|
-
})
|
|
18
|
+
const sticky_scroll_active = sticky_scroll_active$.$
|
|
19
|
+
sticky_scroll_active[key] = false
|
|
20
|
+
sticky_scroll_active$.$ = sticky_scroll_active
|
|
25
21
|
}
|
|
26
22
|
function sticky_scroll_active_key_active_(key:string) {
|
|
27
23
|
const sticky_scroll_active = sticky_scroll_active$.$
|
|
@@ -36,7 +32,7 @@ export const sticky_scroll_active$_b:B<sticky_scroll_active$_T> = b_(key, ()=>{
|
|
|
36
32
|
}
|
|
37
33
|
})
|
|
38
34
|
export interface sticky_scroll_active_T extends Record<string, boolean> {}
|
|
39
|
-
export interface sticky_scroll_active$_T extends
|
|
35
|
+
export interface sticky_scroll_active$_T extends WritableAtom$<sticky_scroll_active_T> {
|
|
40
36
|
add_sticky_scroll_active:(key:string)=>void
|
|
41
37
|
remove_sticky_scroll_active:(key:string)=>void
|
|
42
38
|
sticky_scroll_active_key_active_:(key:string)=>void
|