@tileflow/interactions 0.1.0-alpha.0 → 0.1.0-alpha.2

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.
@@ -100,19 +100,6 @@ type TileflowMapLibreDomCustomRenderers = Readonly<{
100
100
  popup: boolean;
101
101
  tooltip: boolean;
102
102
  }>;
103
- type TileflowLegacyMarker = Readonly<{
104
- color?: string;
105
- coordinates: readonly [longitude: number, latitude: number];
106
- id: string;
107
- label?: string;
108
- }>;
109
- type TileflowNormalizedLegacyMarkers = Readonly<{
110
- annotations: readonly TileflowAnnotation[];
111
- /** Exact legacy element titles, including an explicitly empty label. */
112
- titles: ReadonlyMap<string, string>;
113
- }>;
114
- /** Normalizes the deprecated plural-coordinate marker shape once for all framework adapters. */
115
- declare function normalizeTileflowLegacyMarkers(markers: readonly TileflowLegacyMarker[]): TileflowNormalizedLegacyMarkers;
116
103
  type TileflowMapLibreDomRuntimeOptions<TMap, TMarker extends TileflowMapLibrePositioned<TMap>, TOverlay extends TileflowMapLibrePositioned<TMap>, TAnnotation extends TileflowAnnotation = TileflowAnnotation> = Readonly<{
117
104
  createMarker: (input: TileflowMapLibreDomMarkerFactoryInput<TAnnotation>) => TMarker;
118
105
  createOverlay: (input: TileflowMapLibreDomOverlayFactoryInput<TAnnotation>) => TOverlay;
@@ -295,4 +282,4 @@ type TileflowMapLibreSemanticDomRuntime = Readonly<{
295
282
  */
296
283
  declare function createTileflowMapLibreSemanticDomRuntime<TMap, TOverlay extends TileflowMapLibrePositioned<TMap>>(options: TileflowMapLibreSemanticDomRuntimeOptions<TMap, TOverlay>): TileflowMapLibreSemanticDomRuntime;
297
284
 
298
- export { type TileflowAnnotationRegistry, type TileflowAnnotationRegistryAdapter, type TileflowAnnotationRegistryEntry, type TileflowLegacyMarker, type TileflowMapLibreDomCustomRenderers, type TileflowMapLibreDomDiagnosticListener, type TileflowMapLibreDomDocument, type TileflowMapLibreDomInteractionStateListener, type TileflowMapLibreDomMarkerFactoryInput, type TileflowMapLibreDomOverlayFactoryInput, type TileflowMapLibreDomOverlayKind, type TileflowMapLibreDomRenderTarget, type TileflowMapLibreDomRenderTargetKind, type TileflowMapLibreDomRenderTargetListener, type TileflowMapLibreDomRuntime, type TileflowMapLibreDomRuntimeOptions, type TileflowMapLibreDomStateChangeReason, type TileflowMapLibreInteractionCoordinator, type TileflowMapLibreInteractionCoordinatorOptions, type TileflowMapLibreInteractionParticipant, type TileflowMapLibreInteractionParticipantKind, type TileflowMapLibrePoiController, type TileflowMapLibrePoiControllerOptions, type TileflowMapLibrePoiFeature, type TileflowMapLibrePoiMap, type TileflowMapLibrePoiMatch, type TileflowMapLibrePoiPointerEvent, type TileflowMapLibrePositioned, type TileflowMapLibreSemanticDomOverlayFactoryInput, type TileflowMapLibreSemanticDomRenderTarget, type TileflowMapLibreSemanticDomRuntime, type TileflowMapLibreSemanticDomRuntimeOptions, type TileflowNormalizedLegacyMarkers, type TileflowOverlayState, type TileflowOverlayStateChangeReason, type TileflowOverlayStateController, type TileflowOverlayStateListener, createTileflowAnnotationRegistry, createTileflowMapLibreDomRuntime, createTileflowMapLibreInteractionCoordinator, createTileflowMapLibrePoiController, createTileflowMapLibreSemanticDomRuntime, createTileflowOverlayStateController, normalizeTileflowLegacyMarkers };
285
+ export { type TileflowAnnotationRegistry, type TileflowAnnotationRegistryAdapter, type TileflowAnnotationRegistryEntry, type TileflowMapLibreDomCustomRenderers, type TileflowMapLibreDomDiagnosticListener, type TileflowMapLibreDomDocument, type TileflowMapLibreDomInteractionStateListener, type TileflowMapLibreDomMarkerFactoryInput, type TileflowMapLibreDomOverlayFactoryInput, type TileflowMapLibreDomOverlayKind, type TileflowMapLibreDomRenderTarget, type TileflowMapLibreDomRenderTargetKind, type TileflowMapLibreDomRenderTargetListener, type TileflowMapLibreDomRuntime, type TileflowMapLibreDomRuntimeOptions, type TileflowMapLibreDomStateChangeReason, type TileflowMapLibreInteractionCoordinator, type TileflowMapLibreInteractionCoordinatorOptions, type TileflowMapLibreInteractionParticipant, type TileflowMapLibreInteractionParticipantKind, type TileflowMapLibrePoiController, type TileflowMapLibrePoiControllerOptions, type TileflowMapLibrePoiFeature, type TileflowMapLibrePoiMap, type TileflowMapLibrePoiMatch, type TileflowMapLibrePoiPointerEvent, type TileflowMapLibrePositioned, type TileflowMapLibreSemanticDomOverlayFactoryInput, type TileflowMapLibreSemanticDomRenderTarget, type TileflowMapLibreSemanticDomRuntime, type TileflowMapLibreSemanticDomRuntimeOptions, type TileflowOverlayState, type TileflowOverlayStateChangeReason, type TileflowOverlayStateController, type TileflowOverlayStateListener, createTileflowAnnotationRegistry, createTileflowMapLibreDomRuntime, createTileflowMapLibreInteractionCoordinator, createTileflowMapLibrePoiController, createTileflowMapLibreSemanticDomRuntime, createTileflowOverlayStateController };
@@ -304,21 +304,6 @@ function notifyOverlayListeners(listeners, state, previous, reason) {
304
304
  }
305
305
 
306
306
  // src/maplibre-dom.ts
307
- function normalizeTileflowLegacyMarkers(markers) {
308
- const titles = /* @__PURE__ */ new Map();
309
- const annotations = markers.map((marker) => {
310
- const title = marker.label ?? marker.id;
311
- titles.set(marker.id, title);
312
- return {
313
- ariaLabel: title.trim().length > 0 ? title : marker.id,
314
- coordinate: marker.coordinates,
315
- id: marker.id,
316
- kind: "marker",
317
- ...marker.color === void 0 ? {} : { marker: { color: marker.color } }
318
- };
319
- });
320
- return Object.freeze({ annotations: Object.freeze(annotations), titles });
321
- }
322
307
  var runtimeSequence = 0;
323
308
  function createTileflowMapLibreDomRuntime(options) {
324
309
  const document = options.document;
@@ -2887,6 +2872,5 @@ export {
2887
2872
  createTileflowMapLibreInteractionCoordinator,
2888
2873
  createTileflowMapLibrePoiController,
2889
2874
  createTileflowMapLibreSemanticDomRuntime,
2890
- createTileflowOverlayStateController,
2891
- normalizeTileflowLegacyMarkers
2875
+ createTileflowOverlayStateController
2892
2876
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tileflow/interactions",
3
- "version": "0.1.0-alpha.0",
3
+ "version": "0.1.0-alpha.2",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Portable annotation and interaction contracts for Tileflow maps.",
6
6
  "type": "module",
@@ -24,10 +24,7 @@
24
24
  "types": "./dist/index.d.ts",
25
25
  "files": [
26
26
  "dist",
27
- "LICENSE",
28
- "NOTICE",
29
- "GENERATED_OUTPUT_LICENSE.md",
30
- "TRADEMARKS.md"
27
+ "LICENSE"
31
28
  ],
32
29
  "exports": {
33
30
  ".": {
@@ -1,21 +0,0 @@
1
- # Tileflow generated-output grant
2
-
3
- In addition to the rights granted by the Apache License, Version 2.0, Tileflow.dev contributors
4
- grant recipients a perpetual, worldwide, non-exclusive, no-charge, royalty-free right to use,
5
- reproduce, modify, display, perform, distribute, sublicense, and commercialize the Tileflow-owned
6
- parts of output generated by this SDK.
7
-
8
- Covered output includes compiled map styles, manifests, receipts, sprites, glyph artifacts, static
9
- render descriptions, and other build artifacts produced from Tileflow maps or application maps.
10
- Original Tileflow map definitions, icons, and patterns distributed by `@tileflow/maps` may likewise
11
- be used, modified, embedded, deployed, and redistributed as part of personal or commercial maps and
12
- applications.
13
-
14
- This grant does not relicense third-party software, fonts, icons, map data, datasets, imagery, or
15
- other input material. Their licenses, attribution requirements, notices, and use restrictions
16
- continue to apply to the relevant source and generated output. You are responsible for having the
17
- rights necessary to process and distribute your own inputs.
18
-
19
- This grant does not provide access to Tileflow hosted services or grant rights in Tileflow names,
20
- logos, or marks. The SDK and generated output are provided without warranties or conditions beyond
21
- those required by applicable law.
package/NOTICE DELETED
@@ -1,9 +0,0 @@
1
- Tileflow SDK
2
- Copyright 2026 Tileflow.dev contributors
3
-
4
- This product includes software and original map artwork developed by Tileflow.dev contributors.
5
-
6
- Third-party materials distributed with a package remain subject to their own license and notice
7
- files. See THIRD_PARTY_NOTICES.md and asset-adjacent license files where present.
8
-
9
- The Tileflow names and marks are not licensed under the Apache License 2.0. See TRADEMARKS.md.
package/TRADEMARKS.md DELETED
@@ -1,10 +0,0 @@
1
- # Tileflow trademarks
2
-
3
- The Apache License, Version 2.0, and the Tileflow generated-output grant do not grant permission to
4
- use the Tileflow name, `tileflow.dev`, logos, service marks, product names, or other Tileflow brand
5
- features except for reasonable and customary use that truthfully describes the origin of the SDK or
6
- compatibility with Tileflow, and for reproducing required notices.
7
-
8
- You may not use Tileflow brand features in a way that suggests sponsorship, endorsement, or an
9
- official Tileflow product when none exists. Third-party names and marks remain the property of their
10
- respective owners.