@ctx-core/scroll 15.0.5 → 15.0.6

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,11 @@
1
1
  # @ctx-core/scroll
2
2
 
3
+ ## 15.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: package.json: compile types: + compile:source,compile:declaration
8
+
3
9
  ## 15.0.5
4
10
 
5
11
  ### Patch Changes
@@ -0,0 +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$_b.js';
@@ -0,0 +1,2 @@
1
+ export declare function is_active_(el: HTMLElement): boolean;
2
+ export { is_active_ as _is_active, };
@@ -0,0 +1,2 @@
1
+ export declare function is_visible_(el: HTMLElement): boolean;
2
+ export { is_visible_ as _is_visible, };
@@ -0,0 +1 @@
1
+ export declare function out_is_active_(top: number, bottom: number): boolean;
@@ -0,0 +1,2 @@
1
+ export declare function out_is_visible_(top: number, bottom: number, innerHeight: number): boolean;
2
+ export { out_is_visible_ as _out_is_visible, };
@@ -0,0 +1,12 @@
1
+ import { B } from '@ctx-core/object';
2
+ import { WritableAtom$ } from '@ctx-core/nanostores';
3
+ export declare const sticky_scroll_active$_b: B<sticky_scroll_active$_T>;
4
+ export interface sticky_scroll_active_T extends Record<string, boolean> {
5
+ }
6
+ export interface sticky_scroll_active$_T extends WritableAtom$<sticky_scroll_active_T> {
7
+ add_sticky_scroll_active: (key: string) => void;
8
+ remove_sticky_scroll_active: (key: string) => void;
9
+ sticky_scroll_active_key_active_: (key: string) => void;
10
+ sticky_scroll_active_key_match_: (key: string, active: any) => void;
11
+ }
12
+ export { sticky_scroll_active$_b as b__active__Sticky__Scroll, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctx-core/scroll",
3
- "version": "15.0.5",
3
+ "version": "15.0.6",
4
4
  "description": "ctx-core scroll",
5
5
  "keywords": [
6
6
  "ctx-core",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@swc/cli": "^0.1.55",
33
- "@swc/core": "^1.2.121",
33
+ "@swc/core": "^1.2.123",
34
34
  "rimraf": "^3.0.2",
35
35
  "typescript": "next"
36
36
  },
@@ -41,9 +41,11 @@
41
41
  "svelte": "./dist/index.js",
42
42
  "scripts": {
43
43
  "build": "npm run compile",
44
- "clean": "rimraf dist && npm run clean_tsbuildinfo",
45
- "clean_tsbuildinfo": "rm -f tsconfig.tsbuildinfo && rm -f dist/**/*.d.ts",
46
- "compile": "swc src --out-dir dist --copy-files --source-maps --config-file .swcrc",
44
+ "clean": "rimraf dist && npm run clean:tsbuildinfo",
45
+ "clean:tsbuildinfo": "rm -f tsconfig.tsbuildinfo && rm -f dist/**/*.d.ts",
46
+ "compile": "npm run compile:source && npm run compile:declaration",
47
+ "compile:source": "swc src --out-dir dist --copy-files --source-maps --config-file .swcrc",
48
+ "compile:declaration": "npm run clean:tsbuildinfo && tsc --declaration --emitDeclarationOnly --declarationDir dist",
47
49
  "exec": "$@"
48
50
  }
49
51
  }