@osm-editor-kit/street-imagery-react 0.1.0-alpha.5 → 0.1.0-alpha.6

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.
Files changed (34) hide show
  1. package/README.md +45 -0
  2. package/dist/MapillaryPanel-N45NQY4C.js +2 -0
  3. package/dist/PanoramaxPanel-MFI4L67Z.js +2 -0
  4. package/dist/StreetLevelImagerySelectionOverlay.d.ts +20 -3
  5. package/dist/StreetLevelImagerySourcesAndLayers.d.ts +9 -1
  6. package/dist/StreetLevelImageryViewCone.d.ts +11 -1
  7. package/dist/StreetLevelImageryViewer.d.ts +7 -2
  8. package/dist/{chunk-72HJV6II.js → chunk-53RA4OSJ.js} +6 -2
  9. package/dist/chunk-EQ2JKLGT.js +311 -0
  10. package/dist/chunk-HA4GJWHI.js +120 -0
  11. package/dist/hooks/useAllProviderMapFeatures.d.ts +0 -4
  12. package/dist/i18n/PhotoDate.d.ts +16 -0
  13. package/dist/i18n/StreetImageryLocaleProvider.d.ts +21 -0
  14. package/dist/i18n/messages.d.ts +35 -0
  15. package/dist/index.d.ts +10 -4
  16. package/dist/index.js +470 -167
  17. package/dist/mapillary/MapillaryFeatureBar.d.ts +13 -0
  18. package/dist/openers/LocationPickOnMap.d.ts +10 -0
  19. package/dist/openers/useLocationPickStore.d.ts +9 -0
  20. package/dist/panels/MapillaryPanel.d.ts +7 -1
  21. package/dist/panels/PanoramaxPanel.d.ts +8 -1
  22. package/dist/panels/panoramaxLimitPanning.d.ts +54 -0
  23. package/dist/panels/panoramaxPhotoFromMetadata.d.ts +8 -0
  24. package/dist/photo-details/PhotoDetailsDialog.d.ts +21 -0
  25. package/dist/photo-details/index.d.ts +6 -0
  26. package/dist/photo-details/labels.d.ts +33 -0
  27. package/dist/photo-details.js +235 -0
  28. package/dist/viewpoints/FloatingPhotoViewer.d.ts +25 -2
  29. package/dist/viewpoints/useViewpointSessionStore.d.ts +2 -9
  30. package/dist/viewpoints/viewDirectionLabels.d.ts +4 -4
  31. package/package.json +10 -2
  32. package/dist/MapillaryPanel-I5GKT6YT.js +0 -2
  33. package/dist/PanoramaxPanel-J6ANR6LB.js +0 -2
  34. package/dist/chunk-ZH3TPW4D.js +0 -165
@@ -0,0 +1,35 @@
1
+ import { type StreetImageryLocale, type ViewDirection, type ViewpointRole } from '@osm-editor-kit/street-imagery';
2
+ /**
3
+ * Every text the package's components show. Texts with values are plain functions, so a host app
4
+ * can override single entries from a constant or from its own i18n library.
5
+ */
6
+ export type StreetImageryMessages = {
7
+ viewer: {
8
+ regionLabel: string;
9
+ loading: string;
10
+ backInHistory: string;
11
+ forwardInHistory: string;
12
+ minimize: string;
13
+ close: string;
14
+ views: string;
15
+ suggestedViews: string;
16
+ suggestedViewsHint: string;
17
+ noPhoto: (label: string) => string;
18
+ noMatchingPhoto: (label: string) => string;
19
+ };
20
+ viewpointRole: Record<ViewpointRole, string>;
21
+ unknownDate: string;
22
+ /** e.g. "Start, looking along the street"; `role` is the viewpoint's label. */
23
+ viewDirection: (role: string, kind: ViewDirection['kind']) => string;
24
+ feature: {
25
+ /** Name of a Mapillary value like `regulatory--turn-right-ahead--g1`. */
26
+ name: (value: string) => string;
27
+ /** Line below the name; `first` and `last` are the rendered dates. */
28
+ seen: string;
29
+ noPhotos: string;
30
+ daysSummary: (photos: number, days: number) => string;
31
+ /** Third tooltip line of a day button, below date and age. */
32
+ dayPhotos: (photos: number, canStep: boolean) => string;
33
+ };
34
+ };
35
+ export declare const STREET_IMAGERY_MESSAGES: Record<StreetImageryLocale, StreetImageryMessages>;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export { StreetLevelImagerySelectionOverlay, resolveSelectedSequence, } from './StreetLevelImagerySelectionOverlay';
1
+ export { BASE_COLOR, SELECTION_COLOR, StreetLevelImagerySelectionOverlay, resolveSelectedSequence, } from './StreetLevelImagerySelectionOverlay';
2
2
  export { StreetLevelImagerySourcesAndLayers, type PhotoFilter, } from './StreetLevelImagerySourcesAndLayers';
3
- export { StreetLevelImageryViewCone } from './StreetLevelImageryViewCone';
3
+ export { StreetLevelImageryViewCone, VIEW_SHAPE_FILL_OPACITY } from './StreetLevelImageryViewCone';
4
4
  export { StreetLevelImageryViewer } from './StreetLevelImageryViewer';
5
5
  export type { StreetImageryPhotoSelection } from './types';
6
6
  export { queryStreetImageryFeatures, streetImageryInteractiveLayerIds, type StreetImageryClickFeature, } from './streetImageryClick';
@@ -12,10 +12,16 @@ export * from './hooks/usePhotoThumbnails';
12
12
  export { MapillaryPanel } from './panels/MapillaryPanel';
13
13
  export { PanoramaxPanel } from './panels/PanoramaxPanel';
14
14
  export * from './useViewerStore';
15
- export { FloatingPhotoViewer, type FloatingPhotoViewerProps, } from './viewpoints/FloatingPhotoViewer';
15
+ export { FloatingPhotoViewer, FloatingViewerInfoButton, type FloatingPhotoViewerProps, } from './viewpoints/FloatingPhotoViewer';
16
16
  export { VIEWPOINT_DEFAULT_COLOR, VIEWPOINT_DIRECTION_LAYER_ID, ViewpointLayer, viewDirectionKeyFromFeatures, type ViewpointLayerProps, } from './viewpoints/ViewpointLayer';
17
- export { viewpointRoleLabel, viewSuggestionLabel } from './viewpoints/viewDirectionLabels';
17
+ export { viewSuggestionLabel } from './viewpoints/viewDirectionLabels';
18
18
  export * from './viewpoints/useViewpointSessionStore';
19
19
  export * from './viewpoints/useViewSuggestions';
20
20
  export { mapillaryViewFor, setMapillaryViewerOutlines, turnMapillaryViewerTo, type MapillaryLookAt, type MapillaryViewerOutline, } from './panels/mapillaryLookAt';
21
21
  export * from './mapillary/useMapillaryFeatures';
22
+ export { LocationPickOnMap, type LocationPickOnMapProps } from './openers/LocationPickOnMap';
23
+ export * from './openers/useLocationPickStore';
24
+ export { MapillaryFeatureBar, type MapillaryFeatureBarProps } from './mapillary/MapillaryFeatureBar';
25
+ export { STREET_IMAGERY_MESSAGES, type StreetImageryMessages } from './i18n/messages';
26
+ export { StreetImageryLocaleProvider, useStreetImageryI18n, type StreetImageryMessageOverrides, } from './i18n/StreetImageryLocaleProvider';
27
+ export { PhotoDate } from './i18n/PhotoDate';