@sheinx/hooks 3.5.0-beta.1 → 3.5.0-beta.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. package/cjs/common/use-in-view/index.d.ts +2 -0
  2. package/cjs/common/use-in-view/index.d.ts.map +1 -0
  3. package/cjs/common/use-in-view/index.js +14 -0
  4. package/cjs/common/use-in-view/use-in-view.d.ts +14 -0
  5. package/cjs/common/use-in-view/use-in-view.d.ts.map +1 -0
  6. package/cjs/common/use-in-view/use-in-view.js +73 -0
  7. package/cjs/common/use-position-style/check-position.d.ts +11 -0
  8. package/cjs/common/use-position-style/check-position.d.ts.map +1 -0
  9. package/cjs/common/use-position-style/check-position.js +90 -0
  10. package/cjs/common/use-position-style/index.d.ts.map +1 -1
  11. package/cjs/common/use-position-style/index.js +15 -21
  12. package/cjs/components/use-form/index.d.ts +1 -0
  13. package/cjs/components/use-form/index.d.ts.map +1 -1
  14. package/cjs/components/use-form/index.js +12 -0
  15. package/cjs/components/use-form/use-form-context.d.ts +6 -0
  16. package/cjs/components/use-form/use-form-context.d.ts.map +1 -0
  17. package/cjs/components/use-form/use-form-context.js +22 -0
  18. package/cjs/components/use-form/use-form-context.type.d.ts +45 -0
  19. package/cjs/components/use-form/use-form-context.type.d.ts.map +1 -0
  20. package/cjs/components/use-form/use-form-context.type.js +5 -0
  21. package/cjs/components/use-form/use-form-control/use-form-control.d.ts.map +1 -1
  22. package/cjs/components/use-form/use-form-control/use-form-control.js +30 -11
  23. package/cjs/components/use-form/use-form.d.ts.map +1 -1
  24. package/cjs/components/use-form/use-form.js +4 -2
  25. package/cjs/components/use-form/use-form.type.d.ts +7 -0
  26. package/cjs/components/use-form/use-form.type.d.ts.map +1 -1
  27. package/cjs/components/use-image/use-image.d.ts.map +1 -1
  28. package/cjs/components/use-image/use-image.js +7 -0
  29. package/cjs/components/use-image/use-image.type.d.ts +7 -0
  30. package/cjs/components/use-image/use-image.type.d.ts.map +1 -1
  31. package/cjs/components/use-input/use-input-format.d.ts +1 -1
  32. package/cjs/components/use-input/use-input-number.d.ts +1 -1
  33. package/cjs/components/use-input/use-input-number.d.ts.map +1 -1
  34. package/cjs/components/use-input/use-input-number.js +5 -0
  35. package/cjs/components/use-table/use-table-group.d.ts.map +1 -1
  36. package/cjs/components/use-table/use-table-group.js +2 -1
  37. package/cjs/components/use-table/use-table-layout.d.ts.map +1 -1
  38. package/cjs/components/use-table/use-table-layout.js +2 -1
  39. package/cjs/components/use-table/use-table.type.d.ts +26 -0
  40. package/cjs/components/use-table/use-table.type.d.ts.map +1 -1
  41. package/cjs/index.d.ts +1 -0
  42. package/cjs/index.d.ts.map +1 -1
  43. package/cjs/index.js +12 -0
  44. package/cjs/utils/dom/document.d.ts +2 -0
  45. package/cjs/utils/dom/document.d.ts.map +1 -0
  46. package/cjs/utils/dom/document.js +49 -0
  47. package/cjs/utils/dom/element.d.ts +1 -1
  48. package/cjs/utils/dom/element.d.ts.map +1 -1
  49. package/cjs/utils/dom/index.d.ts +1 -0
  50. package/cjs/utils/dom/index.d.ts.map +1 -1
  51. package/cjs/utils/dom/index.js +12 -0
  52. package/cjs/utils/is.d.ts +0 -1
  53. package/cjs/utils/is.d.ts.map +1 -1
  54. package/cjs/utils/is.js +1 -10
  55. package/cjs/utils/lazyload.d.ts +1 -0
  56. package/cjs/utils/lazyload.d.ts.map +1 -1
  57. package/cjs/utils/lazyload.js +3 -0
  58. package/esm/common/use-in-view/index.d.ts +2 -0
  59. package/esm/common/use-in-view/index.d.ts.map +1 -0
  60. package/esm/common/use-in-view/index.js +2 -0
  61. package/esm/common/use-in-view/use-in-view.d.ts +14 -0
  62. package/esm/common/use-in-view/use-in-view.d.ts.map +1 -0
  63. package/esm/common/use-in-view/use-in-view.js +70 -0
  64. package/esm/common/use-position-style/check-position.d.ts +11 -0
  65. package/esm/common/use-position-style/check-position.d.ts.map +1 -0
  66. package/esm/common/use-position-style/check-position.js +84 -0
  67. package/esm/common/use-position-style/index.d.ts.map +1 -1
  68. package/esm/common/use-position-style/index.js +17 -22
  69. package/esm/components/use-form/index.d.ts +1 -0
  70. package/esm/components/use-form/index.d.ts.map +1 -1
  71. package/esm/components/use-form/index.js +1 -0
  72. package/esm/components/use-form/use-form-context.d.ts +6 -0
  73. package/esm/components/use-form/use-form-context.d.ts.map +1 -0
  74. package/esm/components/use-form/use-form-context.js +13 -0
  75. package/esm/components/use-form/use-form-context.type.d.ts +45 -0
  76. package/esm/components/use-form/use-form-context.type.d.ts.map +1 -0
  77. package/esm/components/use-form/use-form-context.type.js +1 -0
  78. package/esm/components/use-form/use-form-control/use-form-control.d.ts.map +1 -1
  79. package/esm/components/use-form/use-form-control/use-form-control.js +30 -11
  80. package/esm/components/use-form/use-form.d.ts.map +1 -1
  81. package/esm/components/use-form/use-form.js +4 -2
  82. package/esm/components/use-form/use-form.type.d.ts +7 -0
  83. package/esm/components/use-form/use-form.type.d.ts.map +1 -1
  84. package/esm/components/use-image/use-image.d.ts.map +1 -1
  85. package/esm/components/use-image/use-image.js +7 -0
  86. package/esm/components/use-image/use-image.type.d.ts +7 -0
  87. package/esm/components/use-image/use-image.type.d.ts.map +1 -1
  88. package/esm/components/use-input/use-input-format.d.ts +1 -1
  89. package/esm/components/use-input/use-input-number.d.ts +1 -1
  90. package/esm/components/use-input/use-input-number.d.ts.map +1 -1
  91. package/esm/components/use-input/use-input-number.js +5 -0
  92. package/esm/components/use-table/use-table-group.d.ts.map +1 -1
  93. package/esm/components/use-table/use-table-group.js +3 -2
  94. package/esm/components/use-table/use-table-layout.d.ts.map +1 -1
  95. package/esm/components/use-table/use-table-layout.js +2 -1
  96. package/esm/components/use-table/use-table.type.d.ts +26 -0
  97. package/esm/components/use-table/use-table.type.d.ts.map +1 -1
  98. package/esm/index.d.ts +1 -0
  99. package/esm/index.d.ts.map +1 -1
  100. package/esm/index.js +1 -0
  101. package/esm/utils/dom/document.d.ts +2 -0
  102. package/esm/utils/dom/document.d.ts.map +1 -0
  103. package/esm/utils/dom/document.js +43 -0
  104. package/esm/utils/dom/element.d.ts +1 -1
  105. package/esm/utils/dom/element.d.ts.map +1 -1
  106. package/esm/utils/dom/index.d.ts +1 -0
  107. package/esm/utils/dom/index.d.ts.map +1 -1
  108. package/esm/utils/dom/index.js +1 -0
  109. package/esm/utils/is.d.ts +0 -1
  110. package/esm/utils/is.d.ts.map +1 -1
  111. package/esm/utils/is.js +0 -9
  112. package/esm/utils/lazyload.d.ts +1 -0
  113. package/esm/utils/lazyload.d.ts.map +1 -1
  114. package/esm/utils/lazyload.js +3 -0
  115. package/package.json +1 -1
@@ -12,7 +12,7 @@ export declare const addResizeObserver: (el: HTMLElement, handler: any, options?
12
12
  timer?: number | undefined;
13
13
  }) => () => void;
14
14
  export declare function getParent(el: HTMLElement | null | Element, target?: string | HTMLElement): Element | null;
15
- export declare function getClosestScrollContainer(element: HTMLElement | null): Element | null;
15
+ export declare function getClosestScrollContainer(element: HTMLElement | null): HTMLElement | null;
16
16
  export declare function cssSupport(attr: keyof CSSStyleDeclaration, value: string): boolean;
17
17
  export declare const parsePxToNumber: (str: string) => number;
18
18
  //# sourceMappingURL=element.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"element.d.ts","sourceRoot":"","sources":["element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,EACzB,WAAW,UAAQ,EACnB,SAAS,CAAC,EAAE,MAAM,GACjB,KAAK,CAAC,SAAS,CASjB;AAGD,eAAO,MAAM,iBAAiB,OACxB,WAAW,WACN,GAAG;;;gBA4Cb,CAAC;AAEF,wBAAgB,SAAS,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,GAAG,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,kBAmBxF;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,kBA+BpE;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,mBAAmB,EAAE,KAAK,EAAE,MAAM,WAYxE;AAED,eAAO,MAAM,eAAe,QAAS,MAAM,WAAwC,CAAC"}
1
+ {"version":3,"file":"element.d.ts","sourceRoot":"","sources":["element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,EACzB,WAAW,UAAQ,EACnB,SAAS,CAAC,EAAE,MAAM,GACjB,KAAK,CAAC,SAAS,CASjB;AAGD,eAAO,MAAM,iBAAiB,OACxB,WAAW,WACN,GAAG;;;gBA4Cb,CAAC;AAEF,wBAAgB,SAAS,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,GAAG,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,kBAmBxF;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,WAAW,GAAG,IAAI,CA+BzF;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,mBAAmB,EAAE,KAAK,EAAE,MAAM,WAYxE;AAED,eAAO,MAAM,eAAe,QAAS,MAAM,WAAwC,CAAC"}
@@ -3,6 +3,7 @@ export { parsePxToNumber, addResizeObserver } from './element';
3
3
  export type { OldWheelEvent } from './normalize-wheel.type';
4
4
  export * from './ready';
5
5
  export * from './element';
6
+ export * from './document';
6
7
  export { default as ResponsiveObserve } from './responsiveObserve';
7
8
  export type { Breakpoint, ScreenMap } from './responsiveObserve.type';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC/D,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAE1B,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC/D,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAE3B,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC"}
@@ -2,4 +2,5 @@ export { default, default as NormalizeWheel } from "./normalize-wheel";
2
2
  export { parsePxToNumber, addResizeObserver } from "./element";
3
3
  export * from "./ready";
4
4
  export * from "./element";
5
+ export * from "./document";
5
6
  export { default as ResponsiveObserve } from "./responsiveObserve";
package/esm/utils/is.d.ts CHANGED
@@ -24,6 +24,5 @@ export declare const isLink: (el: unknown) => el is React.ReactElement<any, stri
24
24
  export declare function isNamedComponent(type: any): type is React.ForwardRefExoticComponent<unknown>;
25
25
  export declare const isMacOS: () => boolean;
26
26
  export declare const isFirefox: () => boolean;
27
- export declare const isChromeLowerThan: (version: number) => boolean;
28
27
  export declare function isDomElement(element: any): element is HTMLElement;
29
28
  //# sourceMappingURL=is.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"is.d.ts","sourceRoot":"","sources":["is.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAA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AM,SAAS,MAAO,OAAO,YACiC,CAAC;AAGtE,eAAO,MAAM,KAAK,MAAO,OAAO,KAAG,OAAkB,CAAC;AAEtD,eAAO,MAAM,OAAO,QAAS,OAAO,KAAG,OActC,CAAC;AAEF,eAAO,MAAM,MAAM,OAAQ,OAAO,6EASjC,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,IAAI,KAAK,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAE5F;AAED,eAAO,MAAM,OAAO,QAAO,OACqC,CAAC;AAEjE,eAAO,MAAM,SAAS,QAAO,OAG5B,CAAC;AAEF,wBAAgB,YAAY,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,IAAI,WAAW,CAQjE"}
package/esm/utils/is.js CHANGED
@@ -95,15 +95,6 @@ export var isFirefox = function isFirefox() {
95
95
  if (!isBrowser()) return false;
96
96
  return navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
97
97
  };
98
- export var isChromeLowerThan = function isChromeLowerThan(version) {
99
- // 服务器端渲染时,不执行版本检查
100
- if (typeof window === 'undefined' || typeof navigator === 'undefined') {
101
- return false;
102
- }
103
- var ua = navigator.userAgent;
104
- var chrome = ua.match(/chrome\/(\d+)/i);
105
- return Boolean(chrome && chrome[1] && parseInt(chrome[1], 10) < version);
106
- };
107
98
  export function isDomElement(element) {
108
99
  return (typeof HTMLElement === "undefined" ? "undefined" : _typeof(HTMLElement)) === 'object' ? element instanceof HTMLElement // DOM2
109
100
  : element && _typeof(element) === 'object' && element !== null && element.nodeType === 1 && typeof element.nodeName === 'string';
@@ -2,6 +2,7 @@ type LazyConfig = {
2
2
  container?: Element | null;
3
3
  element: Element;
4
4
  render: () => void;
5
+ offscreen?: () => void;
5
6
  offset: number;
6
7
  noRemove?: boolean;
7
8
  observer?: IntersectionObserver;
@@ -1 +1 @@
1
- {"version":3,"file":"lazyload.d.ts","sourceRoot":"","sources":["lazyload.ts"],"names":[],"mappings":"AAIA,KAAK,UAAU,GAAG;IAChB,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,oBAAoB,CAAC;CACjC,CAAC;AAoBF,wBAAgB,QAAQ,SAgBvB;AAWD,wBAAgB,WAAW,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,cAAc,CAAC,EAAE,OAAO,QAUvE;AAsBD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,UAAU,iBA4BvC"}
1
+ {"version":3,"file":"lazyload.d.ts","sourceRoot":"","sources":["lazyload.ts"],"names":[],"mappings":"AAIA,KAAK,UAAU,GAAG;IAChB,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,oBAAoB,CAAC;CACjC,CAAC;AAoBF,wBAAgB,QAAQ,SAgBvB;AAWD,wBAAgB,WAAW,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,cAAc,CAAC,EAAE,OAAO,QAUvE;AAwBD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,UAAU,iBA4BvC"}
@@ -60,12 +60,15 @@ function getObserver(obj, id) {
60
60
  container = _obj$container === void 0 ? null : _obj$container,
61
61
  offset = obj.offset,
62
62
  render = obj.render,
63
+ offscreen = obj.offscreen,
63
64
  noRemove = obj.noRemove;
64
65
  var observer = new IntersectionObserver(function (entries) {
65
66
  entries.forEach(function (en) {
66
67
  if (en.isIntersecting || en.intersectionRatio > 0) {
67
68
  render();
68
69
  if (!noRemove) removeStack(id);
70
+ } else {
71
+ offscreen && offscreen();
69
72
  }
70
73
  });
71
74
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/hooks",
3
- "version": "3.5.0-beta.1",
3
+ "version": "3.5.0-beta.10",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",