@object-ui/mobile 17.5.0 → 17.6.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 +28 -0
- package/dist/MobileProvider.d.ts +1 -1
- package/dist/MobileProvider.d.ts.map +1 -1
- package/dist/MobileProvider.js +1 -1
- package/dist/ResponsiveContainer.js +1 -1
- package/dist/createOfflineDataSource.d.ts +1 -1
- package/dist/createOfflineDataSource.d.ts.map +1 -1
- package/dist/createOfflineDataSource.js +1 -1
- package/dist/index.d.ts +17 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -16
- package/dist/useBreakpoint.js +1 -1
- package/dist/useOfflineSync.d.ts +2 -2
- package/dist/useOfflineSync.d.ts.map +1 -1
- package/dist/useResponsive.js +2 -2
- package/dist/useResponsiveConfig.js +2 -2
- package/dist/useSpecGesture.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @object-ui/mobile
|
|
2
2
|
|
|
3
|
+
## 17.6.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5458414: Publish relative import specifiers with explicit `.js` extensions so these six packages load under plain Node ESM.
|
|
8
|
+
|
|
9
|
+
Node's ESM resolver does not extension-search relative specifiers and `tsc` never rewrites them, so an extensionless `./Foo` in the source shipped as an extensionless `./Foo` in `dist` and importing the package entry outside a bundler failed with `ERR_MODULE_NOT_FOUND`. Bundled consumers were unaffected. Unbundled consumers — plain Node ESM, an SSR host importing the package directly, anyone running the published tarball without a build step — can now import these entries, and so can the downstream `@object-ui/plugin-*` packages that evaluate through `mobile`, `permissions` and `providers`.
|
|
10
|
+
- Updated dependencies [88085e3]
|
|
11
|
+
- Updated dependencies [279fb13]
|
|
12
|
+
- Updated dependencies [1184192]
|
|
13
|
+
- Updated dependencies [a2a9747]
|
|
14
|
+
- Updated dependencies [af5e292]
|
|
15
|
+
- Updated dependencies [7f96b10]
|
|
16
|
+
- Updated dependencies [f1d4748]
|
|
17
|
+
- Updated dependencies [578e025]
|
|
18
|
+
- Updated dependencies [598c89a]
|
|
19
|
+
- Updated dependencies [b8b9af4]
|
|
20
|
+
- Updated dependencies [97abb24]
|
|
21
|
+
- Updated dependencies [deb157a]
|
|
22
|
+
- Updated dependencies [d2ce342]
|
|
23
|
+
- Updated dependencies [9695da7]
|
|
24
|
+
- Updated dependencies [58b8346]
|
|
25
|
+
- Updated dependencies [3cf4de0]
|
|
26
|
+
- Updated dependencies [c9dc811]
|
|
27
|
+
- Updated dependencies [a0b9e91]
|
|
28
|
+
- Updated dependencies [99bd015]
|
|
29
|
+
- @object-ui/types@17.6.0
|
|
30
|
+
|
|
3
31
|
## 17.5.0
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
package/dist/MobileProvider.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import type { PWAConfig, PWAOfflineConfig } from '@object-ui/types';
|
|
10
|
-
import { type BreakpointState } from './useBreakpoint';
|
|
10
|
+
import { type BreakpointState } from './useBreakpoint.js';
|
|
11
11
|
export interface MobileContextValue extends BreakpointState {
|
|
12
12
|
/** PWA configuration */
|
|
13
13
|
pwa?: PWAConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileProvider.d.ts","sourceRoot":"","sources":["../src/MobileProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAA6C,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAiB,KAAK,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"MobileProvider.d.ts","sourceRoot":"","sources":["../src/MobileProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAA6C,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAiB,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEzE,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,wBAAwB;IACxB,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B;AAKD,MAAM,WAAW,mBAAmB;IAClC,wBAAwB;IACxB,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,eAAe;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,mBAAmB,qBAa7E;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,kBAAkB,GAAG,IAAI,CAE5D"}
|
package/dist/MobileProvider.js
CHANGED
|
@@ -7,7 +7,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
import { createContext, useContext, useMemo } from 'react';
|
|
10
|
-
import { useBreakpoint } from './useBreakpoint';
|
|
10
|
+
import { useBreakpoint } from './useBreakpoint.js';
|
|
11
11
|
const MobileCtx = createContext(null);
|
|
12
12
|
MobileCtx.displayName = 'MobileContext';
|
|
13
13
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useBreakpoint } from './useBreakpoint';
|
|
2
|
+
import { useBreakpoint } from './useBreakpoint.js';
|
|
3
3
|
/**
|
|
4
4
|
* Container that conditionally renders children based on the current breakpoint.
|
|
5
5
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Reads (`find` / `findOne`) are pass-through; the optional `cache` hook
|
|
11
11
|
* lets callers opt into local caching but is not built in here.
|
|
12
12
|
*/
|
|
13
|
-
import { type OfflineQueueBackend, type OfflineOperation } from './offlineQueue';
|
|
13
|
+
import { type OfflineQueueBackend, type OfflineOperation } from './offlineQueue.js';
|
|
14
14
|
/** Minimal DataSource shape we care about. */
|
|
15
15
|
export interface QueueableDataSource {
|
|
16
16
|
find?: (object: string, query?: any) => Promise<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOfflineDataSource.d.ts","sourceRoot":"","sources":["../src/createOfflineDataSource.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,gBAAgB,EAAgB,MAAM,
|
|
1
|
+
{"version":3,"file":"createOfflineDataSource.d.ts","sourceRoot":"","sources":["../src/createOfflineDataSource.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,gBAAgB,EAAgB,MAAM,mBAAmB,CAAC;AAElG,8CAA8C;AAC9C,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACrD,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC7E,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACxD,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC7E,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC/D,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,mBAAmB,CAAC;IAC3B,0FAA0F;IAC1F,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,CAAC;IAC3C,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC;IACzB,uEAAuE;IACvE,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;IAC7C;;;OAGG;IACH,eAAe,CAAC,EAAE,CAAC,EAAE,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,GAAG,MAAM,GAAG;QAAE,OAAO,EAAE,GAAG,CAAA;KAAE,CAAC,CAAC;CAC1G;AAiBD,gEAAgE;AAChE,MAAM,WAAW,iBAAkB,SAAQ,mBAAmB;IAC5D,6FAA6F;IAC7F,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAChC,uDAAuD;IACvD,MAAM,IAAI,OAAO,CAAC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC5E,kDAAkD;IAClD,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClC,0DAA0D;IAC1D,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,8BAA8B;IAC9B,OAAO,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC;CACxC;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,mBAAmB,EAC1B,OAAO,EAAE,wBAAwB,GAChC,iBAAiB,CA6GnB"}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Reads (`find` / `findOne`) are pass-through; the optional `cache` hook
|
|
11
11
|
* lets callers opt into local caching but is not built in here.
|
|
12
12
|
*/
|
|
13
|
-
import { generateOpId } from './offlineQueue';
|
|
13
|
+
import { generateOpId } from './offlineQueue.js';
|
|
14
14
|
const defaultIsNetworkError = (err) => {
|
|
15
15
|
if (!err)
|
|
16
16
|
return false;
|
package/dist/index.d.ts
CHANGED
|
@@ -17,21 +17,21 @@
|
|
|
17
17
|
*
|
|
18
18
|
* @packageDocumentation
|
|
19
19
|
*/
|
|
20
|
-
export { useBreakpoint, type BreakpointState } from './useBreakpoint';
|
|
21
|
-
export { useResponsive } from './useResponsive';
|
|
22
|
-
export { useResponsiveConfig, type SpecResponsiveConfig, type ResolvedResponsiveState } from './useResponsiveConfig';
|
|
23
|
-
export { useGesture, type UseGestureOptions } from './useGesture';
|
|
24
|
-
export { useSpecGesture, type UseSpecGestureOptions } from './useSpecGesture';
|
|
25
|
-
export { useTouchTarget, type UseTouchTargetOptions, type TouchTargetResult } from './useTouchTarget';
|
|
26
|
-
export { usePullToRefresh, type PullToRefreshOptions } from './usePullToRefresh';
|
|
27
|
-
export { MobileProvider, type MobileProviderProps } from './MobileProvider';
|
|
28
|
-
export { ResponsiveContainer, type ResponsiveContainerProps } from './ResponsiveContainer';
|
|
29
|
-
export { generatePWAManifest } from './pwa';
|
|
30
|
-
export { registerServiceWorker, type ServiceWorkerConfig } from './serviceWorker';
|
|
31
|
-
export { createOfflineQueue, IndexedDbOfflineQueue, MemoryOfflineQueue, generateOpId, type OfflineOperation, type OfflineQueueBackend, } from './offlineQueue';
|
|
32
|
-
export { createOfflineDataSource, type OfflineDataSource, type OfflineDataSourceOptions, type QueueableDataSource, } from './createOfflineDataSource';
|
|
33
|
-
export { useOfflineSync, type OfflineSyncState } from './useOfflineSync';
|
|
34
|
-
export { getServiceWorkerSource, requestBackgroundSync, type ServiceWorkerSourceOptions, } from './serviceWorkerSource';
|
|
35
|
-
export { BREAKPOINTS, resolveResponsiveValue } from './breakpoints';
|
|
36
|
-
export type { BreakpointName, ResponsiveValue, MobileResponsiveConfig,
|
|
20
|
+
export { useBreakpoint, type BreakpointState } from './useBreakpoint.js';
|
|
21
|
+
export { useResponsive } from './useResponsive.js';
|
|
22
|
+
export { useResponsiveConfig, type SpecResponsiveConfig, type ResolvedResponsiveState } from './useResponsiveConfig.js';
|
|
23
|
+
export { useGesture, type UseGestureOptions } from './useGesture.js';
|
|
24
|
+
export { useSpecGesture, type UseSpecGestureOptions } from './useSpecGesture.js';
|
|
25
|
+
export { useTouchTarget, type UseTouchTargetOptions, type TouchTargetResult } from './useTouchTarget.js';
|
|
26
|
+
export { usePullToRefresh, type PullToRefreshOptions } from './usePullToRefresh.js';
|
|
27
|
+
export { MobileProvider, type MobileProviderProps } from './MobileProvider.js';
|
|
28
|
+
export { ResponsiveContainer, type ResponsiveContainerProps } from './ResponsiveContainer.js';
|
|
29
|
+
export { generatePWAManifest } from './pwa.js';
|
|
30
|
+
export { registerServiceWorker, type ServiceWorkerConfig } from './serviceWorker.js';
|
|
31
|
+
export { createOfflineQueue, IndexedDbOfflineQueue, MemoryOfflineQueue, generateOpId, type OfflineOperation, type OfflineQueueBackend, } from './offlineQueue.js';
|
|
32
|
+
export { createOfflineDataSource, type OfflineDataSource, type OfflineDataSourceOptions, type QueueableDataSource, } from './createOfflineDataSource.js';
|
|
33
|
+
export { useOfflineSync, type OfflineSyncState } from './useOfflineSync.js';
|
|
34
|
+
export { getServiceWorkerSource, requestBackgroundSync, type ServiceWorkerSourceOptions, } from './serviceWorkerSource.js';
|
|
35
|
+
export { BREAKPOINTS, resolveResponsiveValue } from './breakpoints.js';
|
|
36
|
+
export type { BreakpointName, ResponsiveValue, MobileResponsiveConfig, PWAConfig, PWAIcon, FetchCacheStrategy, PWAOfflineConfig, OfflineRoute, GestureType, GestureConfig, GestureContext, MobileComponentConfig, SpecGestureConfig, SwipeGestureConfig, PinchGestureConfig, LongPressGestureConfig, TouchInteraction, TouchTargetConfig, } from '@object-ui/types';
|
|
37
37
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,KAAK,oBAAoB,EAAE,KAAK,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxH,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,KAAK,qBAAqB,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACzG,OAAO,EAAE,gBAAgB,EAAE,KAAK,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,KAAK,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAC9F,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,YAAY,EACZ,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,KAAK,0BAA0B,GAChC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAGvE,YAAY,EACV,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,SAAS,EACT,OAAO,EACP,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,aAAa,EACb,cAAc,EACd,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,kBAAkB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -17,19 +17,19 @@
|
|
|
17
17
|
*
|
|
18
18
|
* @packageDocumentation
|
|
19
19
|
*/
|
|
20
|
-
export { useBreakpoint } from './useBreakpoint';
|
|
21
|
-
export { useResponsive } from './useResponsive';
|
|
22
|
-
export { useResponsiveConfig } from './useResponsiveConfig';
|
|
23
|
-
export { useGesture } from './useGesture';
|
|
24
|
-
export { useSpecGesture } from './useSpecGesture';
|
|
25
|
-
export { useTouchTarget } from './useTouchTarget';
|
|
26
|
-
export { usePullToRefresh } from './usePullToRefresh';
|
|
27
|
-
export { MobileProvider } from './MobileProvider';
|
|
28
|
-
export { ResponsiveContainer } from './ResponsiveContainer';
|
|
29
|
-
export { generatePWAManifest } from './pwa';
|
|
30
|
-
export { registerServiceWorker } from './serviceWorker';
|
|
31
|
-
export { createOfflineQueue, IndexedDbOfflineQueue, MemoryOfflineQueue, generateOpId, } from './offlineQueue';
|
|
32
|
-
export { createOfflineDataSource, } from './createOfflineDataSource';
|
|
33
|
-
export { useOfflineSync } from './useOfflineSync';
|
|
34
|
-
export { getServiceWorkerSource, requestBackgroundSync, } from './serviceWorkerSource';
|
|
35
|
-
export { BREAKPOINTS, resolveResponsiveValue } from './breakpoints';
|
|
20
|
+
export { useBreakpoint } from './useBreakpoint.js';
|
|
21
|
+
export { useResponsive } from './useResponsive.js';
|
|
22
|
+
export { useResponsiveConfig } from './useResponsiveConfig.js';
|
|
23
|
+
export { useGesture } from './useGesture.js';
|
|
24
|
+
export { useSpecGesture } from './useSpecGesture.js';
|
|
25
|
+
export { useTouchTarget } from './useTouchTarget.js';
|
|
26
|
+
export { usePullToRefresh } from './usePullToRefresh.js';
|
|
27
|
+
export { MobileProvider } from './MobileProvider.js';
|
|
28
|
+
export { ResponsiveContainer } from './ResponsiveContainer.js';
|
|
29
|
+
export { generatePWAManifest } from './pwa.js';
|
|
30
|
+
export { registerServiceWorker } from './serviceWorker.js';
|
|
31
|
+
export { createOfflineQueue, IndexedDbOfflineQueue, MemoryOfflineQueue, generateOpId, } from './offlineQueue.js';
|
|
32
|
+
export { createOfflineDataSource, } from './createOfflineDataSource.js';
|
|
33
|
+
export { useOfflineSync } from './useOfflineSync.js';
|
|
34
|
+
export { getServiceWorkerSource, requestBackgroundSync, } from './serviceWorkerSource.js';
|
|
35
|
+
export { BREAKPOINTS, resolveResponsiveValue } from './breakpoints.js';
|
package/dist/useBreakpoint.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { useState, useEffect } from 'react';
|
|
9
|
-
import { BREAKPOINTS, BREAKPOINT_ORDER, getCurrentBreakpoint } from './breakpoints';
|
|
9
|
+
import { BREAKPOINTS, BREAKPOINT_ORDER, getCurrentBreakpoint } from './breakpoints.js';
|
|
10
10
|
/**
|
|
11
11
|
* Hook that tracks the current responsive breakpoint.
|
|
12
12
|
* Updates on window resize with debouncing.
|
package/dist/useOfflineSync.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* React hook that subscribes to an `OfflineDataSource`, exposing the current
|
|
6
6
|
* online/offline status and the pending queue for status-bar / banner UIs.
|
|
7
7
|
*/
|
|
8
|
-
import type { OfflineDataSource } from './createOfflineDataSource';
|
|
9
|
-
import type { OfflineOperation } from './offlineQueue';
|
|
8
|
+
import type { OfflineDataSource } from './createOfflineDataSource.js';
|
|
9
|
+
import type { OfflineOperation } from './offlineQueue.js';
|
|
10
10
|
export interface OfflineSyncState {
|
|
11
11
|
/** True if the browser reports `navigator.onLine`. */
|
|
12
12
|
isOnline: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOfflineSync.d.ts","sourceRoot":"","sources":["../src/useOfflineSync.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useOfflineSync.d.ts","sourceRoot":"","sources":["../src/useOfflineSync.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,MAAM,WAAW,gBAAgB;IAC/B,sDAAsD;IACtD,QAAQ,EAAE,OAAO,CAAC;IAClB,iCAAiC;IACjC,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,wCAAwC;IACxC,WAAW,EAAE,OAAO,CAAC;IACrB,iCAAiC;IACjC,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,6CAA6C;IAC7C,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,uBAAuB;IACvB,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,iBAAiB,GAAG,gBAAgB,CA+C1E"}
|
package/dist/useResponsive.js
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { useMemo } from 'react';
|
|
9
|
-
import { useBreakpoint } from './useBreakpoint';
|
|
10
|
-
import { resolveResponsiveValue } from './breakpoints';
|
|
9
|
+
import { useBreakpoint } from './useBreakpoint.js';
|
|
10
|
+
import { resolveResponsiveValue } from './breakpoints.js';
|
|
11
11
|
/**
|
|
12
12
|
* Hook that resolves a responsive value based on the current breakpoint.
|
|
13
13
|
*
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { useMemo } from 'react';
|
|
9
|
-
import { useBreakpoint } from './useBreakpoint';
|
|
10
|
-
import { resolveResponsiveValue } from './breakpoints';
|
|
9
|
+
import { useBreakpoint } from './useBreakpoint.js';
|
|
10
|
+
import { resolveResponsiveValue } from './breakpoints.js';
|
|
11
11
|
/**
|
|
12
12
|
* Hook that consumes @objectstack/spec ResponsiveConfigSchema and
|
|
13
13
|
* resolves breakpoint-aware layout state.
|
package/dist/useSpecGesture.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
import { useGesture } from './useGesture';
|
|
8
|
+
import { useGesture } from './useGesture.js';
|
|
9
9
|
const SWIPE_DIRECTION_MAP = {
|
|
10
10
|
left: 'swipe-left',
|
|
11
11
|
right: 'swipe-right',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@object-ui/mobile",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Mobile optimization for Object UI with responsive components, PWA support, and touch gesture handling.",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"react": "^18.0.0 || ^19.0.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@object-ui/types": "17.
|
|
33
|
+
"@object-ui/types": "17.6.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@objectstack/spec": "^17.0.0
|
|
36
|
+
"@objectstack/spec": "^17.0.0",
|
|
37
37
|
"@types/react": "19.2.18",
|
|
38
38
|
"react": "19.2.8",
|
|
39
39
|
"typescript": "^6.0.3",
|