@osm-editor-kit/osm-editor-links 1.0.0 → 1.0.1

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/README.md CHANGED
@@ -94,8 +94,6 @@ tildaInspectorUrl({
94
94
 
95
95
  URL builders that take an OSM type and id return `undefined` when either is missing.
96
96
 
97
- `@osm-editor-kit/osm-data` is installed as a dependency; it provides the shared map bounds and OSM object types.
98
-
99
97
  ## License
100
98
 
101
99
  MIT
@@ -1,4 +1,4 @@
1
- import type { LatLngLiteral } from '@osm-editor-kit/osm-data';
1
+ import type { LatLngLiteral } from './geo';
2
2
  import type { OsmObjectType } from './osm-type';
3
3
  export type EditorUrlTemplateVars = {
4
4
  zoom?: number;
package/dist/editors.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import type { LatLngLiteral, OsmNode, OsmRelation, OsmWay } from '@osm-editor-kit/osm-data';
1
+ import type { LatLngLiteral } from './geo';
2
2
  import type { OsmObjectType } from './osm-type';
3
3
  type IdEditorUrlProps = {
4
4
  center?: LatLngLiteral;
5
5
  zoom?: number;
6
6
  background?: string;
7
- osmObjectType?: OsmRelation['type'] | OsmWay['type'] | OsmNode['type'];
7
+ osmObjectType?: OsmObjectType;
8
8
  osmObjectId?: number | string;
9
9
  };
10
10
  /** iD hosted on ideditor-release.netlify.app (parking-lanes default). */
package/dist/geo.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ export type LatLngLiteral = {
2
+ lat: number;
3
+ lng: number;
4
+ };
5
+ export type MapBounds = {
6
+ south: number;
7
+ west: number;
8
+ north: number;
9
+ east: number;
10
+ };
@@ -1,2 +1,2 @@
1
- import type { MapBounds } from '@osm-editor-kit/osm-data';
1
+ import type { MapBounds } from './geo';
2
2
  export declare function getUrl(bounds: MapBounds, useDevServer: boolean): string;
@@ -1,4 +1,4 @@
1
- import type { LatLngLiteral } from '@osm-editor-kit/osm-data';
1
+ import type { LatLngLiteral } from './geo';
2
2
  export type MapillaryUrlOptions = {
3
3
  /** UTC calendar date (`YYYY-MM-DD`) for Mapillary's `dateFrom` filter. */
4
4
  dateFrom?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osm-editor-kit/osm-editor-links",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "OpenStreetMap link lists for elements, changesets and users (editors, history, viewers, imagery), with JOSM remote-control helpers.",
5
5
  "keywords": [
6
6
  "id-editor",
@@ -41,11 +41,9 @@
41
41
  "prepack": "bun ../../scripts/package-exports-for-publish.ts",
42
42
  "postpack": "bun ../../scripts/package-exports-restore.ts"
43
43
  },
44
- "dependencies": {
45
- "@osm-editor-kit/osm-data": "^1.0.0"
46
- },
47
44
  "devDependencies": {
48
45
  "bun-types": "^1.2.20",
46
+ "tsup": "^8.5.1",
49
47
  "typescript": "^7.0.0"
50
48
  },
51
49
  "publishExports": {