@teritorio/openstreetmap-logical-history-component 0.6.2 → 0.7.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/README.md CHANGED
@@ -31,11 +31,11 @@ import '@teritorio/openstreetmap-logical-history-component/style.css'
31
31
 
32
32
  ```vue
33
33
  <script setup lang="ts">
34
- import type { ApiResponse } from '@teritorio/openstreetmap-logical-history-component'
34
+ import type { LoChaData } from '@teritorio/openstreetmap-logical-history-component'
35
35
  import { LoCha } from '@teritorio/openstreetmap-logical-history-component'
36
36
  import { ref } from 'vue'
37
37
 
38
- const data = ref<ApiResponse>()
38
+ const data = ref<LoChaData>()
39
39
 
40
40
  // Fetch data from your API and assign it to `data`
41
41
  </script>
@@ -47,11 +47,11 @@ const data = ref<ApiResponse>()
47
47
 
48
48
  ### Props
49
49
 
50
- | Prop | Type | Default | Description |
51
- | ----------------- | ------------- | ----------- | ------------------------------------------------------------------------------ |
52
- | `id` | `string` | — | **Required.** A unique, deterministic identifier used to build anchor targets. |
53
- | `data` | `ApiResponse` | `undefined` | The API response containing features and metadata to display. |
54
- | `reasonCollapsed` | `boolean` | `true` | Whether conflation reason details are collapsed by default. |
50
+ | Prop | Type | Default | Description |
51
+ | ----------------- | ----------- | ----------- | ------------------------------------------------------------------------------ |
52
+ | `id` | `string` | — | **Required.** A unique, deterministic identifier used to build anchor targets. |
53
+ | `data` | `LoChaData` | `undefined` | The API response containing features and metadata to display. |
54
+ | `reasonCollapsed` | `boolean` | `true` | Whether conflation reason details are collapsed by default. |
55
55
 
56
56
  ### Slots
57
57
 
@@ -112,7 +112,7 @@ Example usage:
112
112
  <!-- Optional: action at the far right of the group header -->
113
113
  </template>
114
114
  <template #content-start="{ index }">
115
- <!-- Custom first-column content (e.g. changesets) -->
115
+ <!-- Custom first-column content -->
116
116
  </template>
117
117
  </LoCha>
118
118
  ```
@@ -128,10 +128,9 @@ import type {
128
128
  ActionType,
129
129
  ApiLink,
130
130
  ApiLinkGroups,
131
- ApiResponse,
132
- Changeset,
133
131
  GroupSlotProps,
134
132
  IFeature,
133
+ LoChaData,
135
134
  ObjectDetailSlotProps,
136
135
  Reason,
137
136
  ReasonGeom,
@@ -139,13 +138,12 @@ import type {
139
138
  } from '@teritorio/openstreetmap-logical-history-component'
140
139
  ```
141
140
 
142
- ### `ApiResponse` shape
141
+ ### `LoChaData` shape
143
142
 
144
- `ApiResponse` extends `GeoJSON.FeatureCollection` with:
143
+ `LoChaData` extends `GeoJSON.FeatureCollection` with:
145
144
 
146
145
  - `features` — an array of `IFeature` objects (GeoJSON features with OSM-specific properties such as `objtype`, `version`, `username`, `tags`, etc.)
147
146
  - `metadata.links` — a record mapping link group IDs to arrays of `ApiLink` objects describing before/after relationships between features
148
- - `metadata.changesets` — an array of OSM changeset objects
149
147
 
150
148
  ## Development
151
149
 
package/dist/index.d.ts CHANGED
@@ -66,22 +66,6 @@ export declare interface ApiLink {
66
66
 
67
67
  export declare type ApiLinkGroups = ApiLink[][];
68
68
 
69
- export declare interface Changeset {
70
- id: number;
71
- created_at: string;
72
- closed_at: string;
73
- open: boolean;
74
- user: string;
75
- uid: number;
76
- minlat: number;
77
- minlon: number;
78
- maxlat: number;
79
- maxlon: number;
80
- comments_count: number;
81
- changes_count: number;
82
- tags: Record<string, string>;
83
- }
84
-
85
69
  /**
86
70
  * Props passed through group-level slots (`header-center`, `header-end`, `content-start`).
87
71
  */
@@ -119,7 +103,6 @@ export declare interface LoChaData extends GeoJSON.FeatureCollection {
119
103
  features: IFeature[];
120
104
  metadata: {
121
105
  links: ApiLinkGroups;
122
- changesets: Changeset[] | null;
123
106
  };
124
107
  }
125
108
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@teritorio/openstreetmap-logical-history-component",
3
3
  "type": "module",
4
- "version": "0.6.2",
4
+ "version": "0.7.0",
5
5
  "packageManager": "yarn@4.9.2",
6
6
  "description": "An OpenStreetMap logical history (LoCha) UI component.",
7
7
  "author": "Teritorio",