@lynx-js/lynx-ui-common 3.136.0 → 3.137.0

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
  # @lynx-js/lynx-ui-common
2
2
 
3
+ ## 3.137.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Emit declaration imports with explicit ESM-compatible paths. ([#280](https://github.com/lynx-family/lynx-ui/pull/280))
8
+
3
9
  ## 3.136.0
4
10
 
5
11
  ### Patch Changes
@@ -1,3 +1,3 @@
1
- export * from './BaseScrollEventsMapping';
2
- export * from './BaseUIEventsMapping';
1
+ export * from './BaseScrollEventsMapping.js';
2
+ export * from './BaseUIEventsMapping.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,10 +1,10 @@
1
- export { useUnmount } from './useUnmount';
2
- export { useGlobalEventListener } from './useGlobalEventListener';
3
- export { useLatest } from './useLatest';
4
- export { useRegisteredEvents } from './useRegisteredEvents';
5
- export { useMemoizedFn } from './useMemoizedFn';
6
- export { usePrevious } from './usePrevious';
7
- export { supportUsePreCommit, usePreCommit } from './usePreCommit';
1
+ export { useUnmount } from './useUnmount.js';
2
+ export { useGlobalEventListener } from './useGlobalEventListener.js';
3
+ export { useLatest } from './useLatest.js';
4
+ export { useRegisteredEvents } from './useRegisteredEvents.js';
5
+ export { useMemoizedFn } from './useMemoizedFn.js';
6
+ export { usePrevious } from './usePrevious.js';
7
+ export { supportUsePreCommit, usePreCommit } from './usePreCommit.js';
8
8
  export declare function useFirstRender(cb: () => void): boolean;
9
9
  export declare function useJSFirstRender(cb: () => void): boolean;
10
10
  export declare function useLepusFirstRender(cb: () => void): boolean;
@@ -12,6 +12,6 @@ export declare function useLepusFirstRender(cb: () => void): boolean;
12
12
  * @deprecated use useMemoizedFn instead
13
13
  */
14
14
  export declare function usePersistCallback(fn: (...args: unknown[]) => void): (...arg: unknown[]) => void;
15
- export { useGCCollector, type UseGCCollectorOptions } from './useGCCollector';
15
+ export { useGCCollector, type UseGCCollectorOptions } from './useGCCollector.js';
16
16
  export declare function useThrottle(fn: (...args: unknown[]) => void, delay: number, dep?: never[]): (...args: unknown[]) => void;
17
17
  //# sourceMappingURL=index.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export * from './hooks';
2
- export * from './utils';
3
- export * from './const';
4
- export type * from './types';
5
- export type { ReactiveValueOptions, ReactiveValueAPI, ReactiveValueType, Subscriber, Unsubscribe, } from './reactive';
6
- export { useReactiveValue, useReactiveValueEvent, updateReactiveValue, useReactiveValueChange, } from './reactive';
1
+ export * from './hooks/index.js';
2
+ export * from './utils/index.js';
3
+ export * from './const/index.js';
4
+ export type * from './types/index.js';
5
+ export type { ReactiveValueOptions, ReactiveValueAPI, ReactiveValueType, Subscriber, Unsubscribe, } from './reactive/index.js';
6
+ export { useReactiveValue, useReactiveValueEvent, updateReactiveValue, useReactiveValueChange, } from './reactive/index.js';
7
7
  export { useMainThreadImperativeHandle } from '@lynx-js/react-use';
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type { MainThreadRef } from '@lynx-js/react';
2
- import type { ReactiveValueOptions, Subscriber, Unsubscribe } from '../types';
2
+ import type { ReactiveValueOptions, Subscriber, Unsubscribe } from '../types.js';
3
3
  export type ReactiveValue<T> = ReturnType<typeof createMainThreadReactiveValue<T>>;
4
4
  export declare function createMainThreadReactiveValue<T>(initialValue: T, options?: ReactiveValueOptions): {
5
5
  _value: T;
@@ -1,4 +1,4 @@
1
1
  import type { MainThreadRef } from '@lynx-js/react';
2
- import type { ReactiveValue } from '../hooks/useReactiveValue';
2
+ import type { ReactiveValue } from '../hooks/useReactiveValue.js';
3
3
  export declare function useReactiveValueChange<T>(valueRef: MainThreadRef<ReactiveValue<T>>, callback: (value: T) => void): void;
4
4
  //# sourceMappingURL=useReactiveValueChange.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type { MainThreadRef } from '@lynx-js/react';
2
- import type { ReactiveValue } from '../hooks/useReactiveValue';
3
- import type { ReactiveEventName } from '../types';
2
+ import type { ReactiveValue } from '../hooks/useReactiveValue.js';
3
+ import type { ReactiveEventName } from '../types.js';
4
4
  export declare function useReactiveValueEvent<T>(valueRef: MainThreadRef<ReactiveValue<T>>, event: ReactiveEventName, callback: (value: T) => void): void;
5
5
  //# sourceMappingURL=useReactiveValueEvent.d.ts.map
@@ -1,6 +1,6 @@
1
- export type { ReactiveValueOptions, ReactiveValueAPI, ReactiveValueType, Subscriber, Unsubscribe, } from './types';
2
- export { useReactiveValue } from './hooks/useReactiveValue';
3
- export { useReactiveValueEvent } from './hooks/useReactiveValueEvent';
4
- export { useReactiveValueChange } from './hooks/useReactiveValueChange';
5
- export { updateReactiveValue } from './updateReactive';
1
+ export type { ReactiveValueOptions, ReactiveValueAPI, ReactiveValueType, Subscriber, Unsubscribe, } from './types.js';
2
+ export { useReactiveValue } from './hooks/useReactiveValue.js';
3
+ export { useReactiveValueEvent } from './hooks/useReactiveValueEvent.js';
4
+ export { useReactiveValueChange } from './hooks/useReactiveValueChange.js';
5
+ export { updateReactiveValue } from './updateReactive.js';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
1
  import type { MainThreadRef } from '@lynx-js/react';
2
- import type { ReactiveValue } from './hooks/useReactiveValue';
2
+ import type { ReactiveValue } from './hooks/useReactiveValue.js';
3
3
  export declare function updateReactiveValue<T>(valueRef: MainThreadRef<ReactiveValue<T>>, value: T): void;
4
4
  //# sourceMappingURL=updateReactive.d.ts.map
@@ -1,2 +1,2 @@
1
- export type * from './interfaces';
1
+ export type * from './interfaces/index.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,8 +1,8 @@
1
1
  import type { CSSProperties } from '@lynx-js/types';
2
- export type * from './BaseScrollEvents';
3
- export type * from './BaseUIEvents';
4
- export type * from './BaseUIProps';
5
- export type * from './LazyInterface';
2
+ export type * from './BaseScrollEvents.js';
3
+ export type * from './BaseUIEvents.js';
4
+ export type * from './BaseUIProps.js';
5
+ export type * from './LazyInterface.js';
6
6
  export interface Point {
7
7
  x: number;
8
8
  y: number;
@@ -1,13 +1,13 @@
1
- export * from './common';
2
- export * from './version';
3
- export * from './selector';
4
- export * from './log';
5
- export * from './mainThreadify';
6
- export { convertOverlayMode, registerOverlayMode } from './popoverUtils';
7
- export { convertToPx, screenWidth, screenHeight } from './convertToPx';
8
- export { interpolate, interpolateJS } from './interpolation';
9
- export { renderContentWithExtraProps } from './renderContentWithExtraProps';
10
- export { delayFrames } from './delayFrames';
11
- export { getEventDetail } from './getEventDetail';
12
- export type { EventDetailWithLayout } from './getEventDetail';
1
+ export * from './common.js';
2
+ export * from './version.js';
3
+ export * from './selector.js';
4
+ export * from './log.js';
5
+ export * from './mainThreadify.js';
6
+ export { convertOverlayMode, registerOverlayMode } from './popoverUtils.js';
7
+ export { convertToPx, screenWidth, screenHeight } from './convertToPx.js';
8
+ export { interpolate, interpolateJS } from './interpolation.js';
9
+ export { renderContentWithExtraProps } from './renderContentWithExtraProps.js';
10
+ export { delayFrames } from './delayFrames.js';
11
+ export { getEventDetail } from './getEventDetail.js';
12
+ export type { EventDetailWithLayout } from './getEventDetail.js';
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { interpolateJS } from './interpolationJS';
1
+ import { interpolateJS } from './interpolationJS.js';
2
2
  /**
3
3
  * Extrapolation type.
4
4
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/lynx-ui-common",
3
- "version": "3.136.0",
3
+ "version": "3.137.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/lynx-family/lynx-ui.git",