@tpzdsp/next-toolkit 1.2.4 → 1.2.5

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@tpzdsp/next-toolkit",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "A reusable React component library for Next.js applications",
5
5
  "type": "module",
6
6
  "private": false,
@@ -28,11 +28,6 @@
28
28
  "import": "./src/index.ts",
29
29
  "require": "./src/index.ts"
30
30
  },
31
- "./test": {
32
- "types": "./src/test/index.ts",
33
- "import": "./src/test/index.ts",
34
- "require": "./src/test/index.ts"
35
- },
36
31
  "./utils": {
37
32
  "types": "./src/utils/index.ts",
38
33
  "import": "./src/utils/index.ts",
package/src/index.ts CHANGED
@@ -1,11 +0,0 @@
1
- // Export all components.
2
- // export * from './components';
3
-
4
- // Export all utilities (these can be used in both client and server)
5
- // export * from './utils';
6
-
7
- // Export all map related code (these can be used in both client and server)
8
- // export * from './map';
9
-
10
- // Export all types
11
- // export * from './types';
@@ -9,9 +9,9 @@ import { fromLonLat } from 'ol/proj';
9
9
  import { initializeBasemapLayers } from './basemaps';
10
10
  import { initializeGeocoder } from './geocoder';
11
11
  import { LayerSwitcherControl } from './LayerSwitcherControl';
12
- import { getPopupPositionClass } from './map';
13
12
  import { useMap } from './MapContext';
14
13
  import { Popup } from './Popup';
14
+ import { getPopupPositionClass } from './utils';
15
15
  import type { MapConfig, PopupDirection } from '../types/map';
16
16
 
17
17
  export type MapComponentProps = {
@@ -12,7 +12,7 @@ import ClusterSource from 'ol/source/Cluster';
12
12
  import VectorSource from 'ol/source/Vector';
13
13
 
14
14
  import './projections';
15
- import { LAYER_NAMES } from './map';
15
+ import { LAYER_NAMES } from './utils';
16
16
  import type { MapConfig } from '../types/map';
17
17
 
18
18
  export type MapContextType = {
package/src/map/index.ts CHANGED
@@ -2,8 +2,8 @@ export * from './basemaps';
2
2
  export * from './geocoder';
3
3
  export * from './geometries';
4
4
  export * from './LayerSwitcherControl';
5
- export * from './map';
6
- export * from './Map';
5
+ export * from './utils';
6
+ export * from './MapComponent';
7
7
  export * from './MapContext';
8
8
  export * from './osOpenNamesSearch';
9
9
  export * from './Popup';
File without changes