zimjs 20.1.0 → 20.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/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "zimjs",
3
- "version": "20.1.0",
3
+ "version": "20.1.2",
4
4
  "type": "module",
5
5
  "main": "./src/zim.js",
6
- "types": "./ts-src/typings/zim",
6
+ "types": "./ts-src/typings/zim/index.d.ts",
7
7
  "scripts": {},
8
8
  "devDependencies": {
9
9
  "typescript": "^4.5.2"
@@ -695,8 +695,11 @@ declare namespace zim {
695
695
  export function setProps(obj: any, props: {}): void
696
696
  export function swapHTML(idA: string, idB: string): boolean
697
697
  // scrollX and scrollY are available only in zim namespace due to global conflict
698
+ export function browserScrollX(num: number, time?: number): number
699
+ export function browserScrollY(num: number, time?: number): number
698
700
  export function windowWidth(): number
699
701
  export function windowHeight(): number
702
+ export function browserZoom(): number
700
703
  export function getQueryString(string?: string): {}
701
704
  export function urlEncode(string: string): string
702
705
  export function urlDecode(string: string): string
@@ -4411,5 +4414,6 @@ declare namespace zim {
4411
4414
 
4412
4415
  }
4413
4416
 
4414
- export = zim
4417
+ export as namespace zim;
4418
+ export default zim;
4415
4419