@arcgis/map-components-react 4.33.0-next.9 → 4.33.0-next.90

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
@@ -1,8 +1,8 @@
1
1
  # ArcGIS Maps SDK for JavaScript - React wrapper for Map Components
2
2
 
3
- The ArcGIS Maps SDK for JavaScript provides a suite of ready-to-use UI components that simplify the process of creating GIS web applications. This package contains a map component, scene component, and many other components with functionality made possible through the SDK's core API which is also accessible through the components.
3
+ > Note: `@arcgis/map-components-react` was developed for use in React 18. Consider updating to React 19 where the React wrapper is no longer necessary. Check out the [documentation](https://developers.arcgis.com/javascript/latest/get-started-react/) to get started with `@arcgis/map-components` in React 19.
4
4
 
5
- Samples for how to use this package are available on github in the [jsapi-resources](https://github.com/Esri/jsapi-resources) repository.
5
+ The ArcGIS Maps SDK for JavaScript provides a suite of ready-to-use UI components that simplify the process of creating GIS web applications. This package contains a map component, scene component, and many other components with functionality made possible through the SDK's core API which is also accessible through the components.
6
6
 
7
7
  ## Documentation
8
8
 
@@ -20,11 +20,69 @@ Samples for how to use this package are available on github in the [jsapi-resour
20
20
  - [Licensing](https://developers.arcgis.com/javascript/latest/licensing/)
21
21
  - [Working with `next` versions](https://github.com/Esri/feedback-js-api-next/blob/main/README.md)
22
22
 
23
- ## Issues
23
+ ## Support
24
24
 
25
25
  - General questions about using this package or the ArcGIS Maps SDK for JavaScript? See the [Esri developer community](https://community.esri.com/t5/arcgis-api-for-javascript/ct-p/arcgis-api-for-javascript).
26
26
  - [Technical support](https://support.esri.com/).
27
27
 
28
+ ## Quick start guide
29
+
30
+ - Get started by using the [react 18 sample](https://developers.arcgis.com/javascript/latest/get-started-react/#download-project).
31
+ - Install the required packages: `@arcgis/map-components-react`, `@arcgis/core`, `@esri/calcite-components-react`.
32
+ - Import the necessary CSS files in your project and ensure CSS is configured for the map components:
33
+
34
+ ```js
35
+ @import 'https://js.arcgis.com/4.31/@arcgis/core/assets/esri/themes/dark/main.css';
36
+ @import url("https://js.arcgis.com/calcite-components/2.3.2/calcite.css");
37
+
38
+ #root,
39
+ html,
40
+ body {
41
+ margin: 0;
42
+ }
43
+
44
+ arcgis-map {
45
+ display: block;
46
+ height: 100vh;
47
+ }
48
+ ```
49
+
50
+ - Add map component: In your main file (e.g., index.tsx), add the `ArcgisMap` component and configure it with an optional `item-id` if using a WebMap from ArcGIS Online or an ArcGIS Enterprise portal:
51
+
52
+ ```js
53
+ import React from "react";
54
+ import ReactDOM from "react-dom/client";
55
+ import "@arcgis/map-components/components/arcgis-map";
56
+ import "@arcgis/map-components/components/arcgis-zoom";
57
+ import { ArcgisMap, ArcgisZoom } from "@arcgis/map-components-react";
58
+
59
+ const root = ReactDOM.createRoot(document.getElementById("root"));
60
+ root.render(
61
+ <React.StrictMode>
62
+ <ArcgisMap itemId="your-webmap-item-id"></ArcgisMap>
63
+ </React.StrictMode>,
64
+ );
65
+ ```
66
+
67
+ - Add additional functionality: To your map, you could set properties and use events like `onArcgisViewReadyChange` to detect when the map view is ready, and implement custom JavaScript logic using the core API. For example, you can add the `ArcgisZoom` component and listen for view changes:
68
+
69
+ ```js
70
+ root.render(
71
+ <React.StrictMode>
72
+ <ArcgisMap
73
+ itemId="your-webmap-item-id"
74
+ onArcgisViewReadyChange={(event: CustomEvent) => {
75
+ console.log("MapView ready", event);
76
+ }}
77
+ >
78
+ <ArcgisZoom position="top-left"></ArcgisZoom>
79
+ </ArcgisMap>
80
+ </React.StrictMode>
81
+ );
82
+ ```
83
+
84
+ Alternatively, an [example](https://github.com/Esri/jsapi-resources/tree/50579b9362b846e869a343b660c5a2415176a275/component-samples/map-components/samples/react) is available from the 4.31 release in the jsapi-resources repo.
85
+
28
86
  ## License
29
87
 
30
88
  COPYRIGHT © 2025 Esri
@@ -27,6 +27,7 @@ export declare const ArcgisBasemapGallery: import("@lit/react").ReactWebComponen
27
27
  export declare const ArcgisBasemapLayerList: import("@lit/react").ReactWebComponent<HTMLArcgisBasemapLayerListElement & {
28
28
  class?: string;
29
29
  }, {
30
+ onArcgisClose: EventName<HTMLArcgisBasemapLayerListElement["arcgisClose"]>;
30
31
  onArcgisPropertyChange: EventName<HTMLArcgisBasemapLayerListElement["arcgisPropertyChange"]>;
31
32
  onArcgisReady: EventName<HTMLArcgisBasemapLayerListElement["arcgisReady"]>;
32
33
  onArcgisTriggerAction: EventName<HTMLArcgisBasemapLayerListElement["arcgisTriggerAction"]>;
@@ -40,6 +41,7 @@ export declare const ArcgisBasemapToggle: import("@lit/react").ReactWebComponent
40
41
  export declare const ArcgisBookmarks: import("@lit/react").ReactWebComponent<HTMLArcgisBookmarksElement & {
41
42
  class?: string;
42
43
  }, {
44
+ onArcgisClose: EventName<HTMLArcgisBookmarksElement["arcgisClose"]>;
43
45
  onArcgisEdit: EventName<HTMLArcgisBookmarksElement["arcgisEdit"]>;
44
46
  onArcgisPropertyChange: EventName<HTMLArcgisBookmarksElement["arcgisPropertyChange"]>;
45
47
  onArcgisReady: EventName<HTMLArcgisBookmarksElement["arcgisReady"]>;
@@ -54,6 +56,7 @@ export declare const ArcgisBuildingExplorer: import("@lit/react").ReactWebCompon
54
56
  export declare const ArcgisCatalogLayerList: import("@lit/react").ReactWebComponent<HTMLArcgisCatalogLayerListElement & {
55
57
  class?: string;
56
58
  }, {
59
+ onArcgisClose: EventName<HTMLArcgisCatalogLayerListElement["arcgisClose"]>;
57
60
  onArcgisPropertyChange: EventName<HTMLArcgisCatalogLayerListElement["arcgisPropertyChange"]>;
58
61
  onArcgisReady: EventName<HTMLArcgisCatalogLayerListElement["arcgisReady"]>;
59
62
  onArcgisTriggerAction: EventName<HTMLArcgisCatalogLayerListElement["arcgisTriggerAction"]>;
@@ -152,6 +155,7 @@ export declare const ArcgisFeatureTemplates: import("@lit/react").ReactWebCompon
152
155
  export declare const ArcgisFeatures: import("@lit/react").ReactWebComponent<HTMLArcgisFeaturesElement & {
153
156
  class?: string;
154
157
  }, {
158
+ onArcgisClose: EventName<HTMLArcgisFeaturesElement["arcgisClose"]>;
155
159
  onArcgisPropertyChange: EventName<HTMLArcgisFeaturesElement["arcgisPropertyChange"]>;
156
160
  onArcgisReady: EventName<HTMLArcgisFeaturesElement["arcgisReady"]>;
157
161
  onArcgisTriggerAction: EventName<HTMLArcgisFeaturesElement["arcgisTriggerAction"]>;
@@ -167,11 +171,11 @@ export declare const ArcgisFullscreen: import("@lit/react").ReactWebComponent<HT
167
171
  onArcgisPropertyChange: EventName<HTMLArcgisFullscreenElement["arcgisPropertyChange"]>;
168
172
  onArcgisReady: EventName<HTMLArcgisFullscreenElement["arcgisReady"]>;
169
173
  }>;
170
- export declare const ArcgisHistogram: import("@lit/react").ReactWebComponent<HTMLArcgisHistogramElement & {
174
+ export declare const ArcgisGridControls: import("@lit/react").ReactWebComponent<HTMLArcgisGridControlsElement & {
171
175
  class?: string;
172
176
  }, {
173
- onArcgisPropertyChange: EventName<HTMLArcgisHistogramElement["arcgisPropertyChange"]>;
174
- onArcgisReady: EventName<HTMLArcgisHistogramElement["arcgisReady"]>;
177
+ onArcgisPropertyChange: EventName<HTMLArcgisGridControlsElement["arcgisPropertyChange"]>;
178
+ onArcgisReady: EventName<HTMLArcgisGridControlsElement["arcgisReady"]>;
175
179
  }>;
176
180
  export declare const ArcgisHistogramRangeSlider: import("@lit/react").ReactWebComponent<HTMLArcgisHistogramRangeSliderElement & {
177
181
  class?: string;
@@ -189,10 +193,16 @@ export declare const ArcgisHome: import("@lit/react").ReactWebComponent<HTMLArcg
189
193
  export declare const ArcgisLayerList: import("@lit/react").ReactWebComponent<HTMLArcgisLayerListElement & {
190
194
  class?: string;
191
195
  }, {
196
+ onArcgisClose: EventName<HTMLArcgisLayerListElement["arcgisClose"]>;
192
197
  onArcgisPropertyChange: EventName<HTMLArcgisLayerListElement["arcgisPropertyChange"]>;
193
198
  onArcgisReady: EventName<HTMLArcgisLayerListElement["arcgisReady"]>;
194
199
  onArcgisTriggerAction: EventName<HTMLArcgisLayerListElement["arcgisTriggerAction"]>;
195
200
  }>;
201
+ export declare const ArcgisLayerListItem: import("@lit/react").ReactWebComponent<HTMLArcgisLayerListItemElement & {
202
+ class?: string;
203
+ }, {
204
+ onArcgisPropertyChange: EventName<HTMLArcgisLayerListItemElement["arcgisPropertyChange"]>;
205
+ }>;
196
206
  export declare const ArcgisLegend: import("@lit/react").ReactWebComponent<HTMLArcgisLegendElement & {
197
207
  class?: string;
198
208
  }, {
@@ -394,6 +404,7 @@ export declare const ArcgisSwipe: import("@lit/react").ReactWebComponent<HTMLArc
394
404
  export declare const ArcgisTableList: import("@lit/react").ReactWebComponent<HTMLArcgisTableListElement & {
395
405
  class?: string;
396
406
  }, {
407
+ onArcgisClose: EventName<HTMLArcgisTableListElement["arcgisClose"]>;
397
408
  onArcgisPropertyChange: EventName<HTMLArcgisTableListElement["arcgisPropertyChange"]>;
398
409
  onArcgisReady: EventName<HTMLArcgisTableListElement["arcgisReady"]>;
399
410
  onArcgisTriggerAction: EventName<HTMLArcgisTableListElement["arcgisTriggerAction"]>;
@@ -405,6 +416,12 @@ export declare const ArcgisTimeSlider: import("@lit/react").ReactWebComponent<HT
405
416
  onArcgisReady: EventName<HTMLArcgisTimeSliderElement["arcgisReady"]>;
406
417
  onArcgisTriggerAction: EventName<HTMLArcgisTimeSliderElement["arcgisTriggerAction"]>;
407
418
  }>;
419
+ export declare const ArcgisTimeZoneLabel: import("@lit/react").ReactWebComponent<HTMLArcgisTimeZoneLabelElement & {
420
+ class?: string;
421
+ }, {
422
+ onArcgisPropertyChange: EventName<HTMLArcgisTimeZoneLabelElement["arcgisPropertyChange"]>;
423
+ onArcgisReady: EventName<HTMLArcgisTimeZoneLabelElement["arcgisReady"]>;
424
+ }>;
408
425
  export declare const ArcgisTrack: import("@lit/react").ReactWebComponent<HTMLArcgisTrackElement & {
409
426
  class?: string;
410
427
  }, {
@@ -425,12 +442,14 @@ export declare const ArcgisUtilityNetworkTrace: import("@lit/react").ReactWebCom
425
442
  onArcgisAddFlagComplete: EventName<HTMLArcgisUtilityNetworkTraceElement["arcgisAddFlagComplete"]>;
426
443
  onArcgisAddFlagError: EventName<HTMLArcgisUtilityNetworkTraceElement["arcgisAddFlagError"]>;
427
444
  onArcgisAddResultArea: EventName<HTMLArcgisUtilityNetworkTraceElement["arcgisAddResultArea"]>;
445
+ onArcgisPropertyChange: EventName<HTMLArcgisUtilityNetworkTraceElement["arcgisPropertyChange"]>;
428
446
  onArcgisReady: EventName<HTMLArcgisUtilityNetworkTraceElement["arcgisReady"]>;
429
447
  onArcgisRemoveResultArea: EventName<HTMLArcgisUtilityNetworkTraceElement["arcgisRemoveResultArea"]>;
430
448
  }>;
431
449
  export declare const ArcgisUtilityNetworkValidateTopology: import("@lit/react").ReactWebComponent<HTMLArcgisUtilityNetworkValidateTopologyElement & {
432
450
  class?: string;
433
451
  }, {
452
+ onArcgisPropertyChange: EventName<HTMLArcgisUtilityNetworkValidateTopologyElement["arcgisPropertyChange"]>;
434
453
  onArcgisReady: EventName<HTMLArcgisUtilityNetworkValidateTopologyElement["arcgisReady"]>;
435
454
  }>;
436
455
  export declare const ArcgisValuePicker: import("@lit/react").ReactWebComponent<HTMLArcgisValuePickerElement & {
@@ -450,6 +469,18 @@ export declare const ArcgisVersionManagement: import("@lit/react").ReactWebCompo
450
469
  onArcgisReady: EventName<HTMLArcgisVersionManagementElement["arcgisReady"]>;
451
470
  onArcgisVersioningStateChanged: EventName<HTMLArcgisVersionManagementElement["arcgisVersioningStateChanged"]>;
452
471
  }>;
472
+ export declare const ArcgisVideo: import("@lit/react").ReactWebComponent<HTMLArcgisVideoElement & {
473
+ class?: string;
474
+ }, {
475
+ onArcgisViewReadyChange: EventName<HTMLArcgisVideoElement["arcgisViewReadyChange"]>;
476
+ }>;
477
+ export declare const ArcgisVideoPlayer: import("@lit/react").ReactWebComponent<HTMLArcgisVideoPlayerElement & {
478
+ class?: string;
479
+ }, {
480
+ onArcgisPropertyChange: EventName<HTMLArcgisVideoPlayerElement["arcgisPropertyChange"]>;
481
+ onArcgisReady: EventName<HTMLArcgisVideoPlayerElement["arcgisReady"]>;
482
+ onArcgisVideoReady: EventName<HTMLArcgisVideoPlayerElement["arcgisVideoReady"]>;
483
+ }>;
453
484
  export declare const ArcgisWeather: import("@lit/react").ReactWebComponent<HTMLArcgisWeatherElement & {
454
485
  class?: string;
455
486
  }, {
@@ -20,6 +20,7 @@ export const ArcgisBasemapGallery = /*@__PURE__*/ createWrapper(getReactWrapperO
20
20
  onArcgisReady: "arcgisReady",
21
21
  }));
22
22
  export const ArcgisBasemapLayerList = /*@__PURE__*/ createWrapper(getReactWrapperOptions("arcgis-basemap-layer-list", {
23
+ onArcgisClose: "arcgisClose",
23
24
  onArcgisPropertyChange: "arcgisPropertyChange",
24
25
  onArcgisReady: "arcgisReady",
25
26
  onArcgisTriggerAction: "arcgisTriggerAction",
@@ -29,6 +30,7 @@ export const ArcgisBasemapToggle = /*@__PURE__*/ createWrapper(getReactWrapperOp
29
30
  onArcgisReady: "arcgisReady",
30
31
  }));
31
32
  export const ArcgisBookmarks = /*@__PURE__*/ createWrapper(getReactWrapperOptions("arcgis-bookmarks", {
33
+ onArcgisClose: "arcgisClose",
32
34
  onArcgisEdit: "arcgisEdit",
33
35
  onArcgisPropertyChange: "arcgisPropertyChange",
34
36
  onArcgisReady: "arcgisReady",
@@ -39,6 +41,7 @@ export const ArcgisBuildingExplorer = /*@__PURE__*/ createWrapper(getReactWrappe
39
41
  onArcgisReady: "arcgisReady",
40
42
  }));
41
43
  export const ArcgisCatalogLayerList = /*@__PURE__*/ createWrapper(getReactWrapperOptions("arcgis-catalog-layer-list", {
44
+ onArcgisClose: "arcgisClose",
42
45
  onArcgisPropertyChange: "arcgisPropertyChange",
43
46
  onArcgisReady: "arcgisReady",
44
47
  onArcgisTriggerAction: "arcgisTriggerAction",
@@ -107,6 +110,7 @@ export const ArcgisFeatureTemplates = /*@__PURE__*/ createWrapper(getReactWrappe
107
110
  onArcgisSelect: "arcgisSelect",
108
111
  }));
109
112
  export const ArcgisFeatures = /*@__PURE__*/ createWrapper(getReactWrapperOptions("arcgis-features", {
113
+ onArcgisClose: "arcgisClose",
110
114
  onArcgisPropertyChange: "arcgisPropertyChange",
111
115
  onArcgisReady: "arcgisReady",
112
116
  onArcgisTriggerAction: "arcgisTriggerAction",
@@ -118,7 +122,7 @@ export const ArcgisFullscreen = /*@__PURE__*/ createWrapper(getReactWrapperOptio
118
122
  onArcgisPropertyChange: "arcgisPropertyChange",
119
123
  onArcgisReady: "arcgisReady",
120
124
  }));
121
- export const ArcgisHistogram = /*@__PURE__*/ createWrapper(getReactWrapperOptions("arcgis-histogram", {
125
+ export const ArcgisGridControls = /*@__PURE__*/ createWrapper(getReactWrapperOptions("arcgis-grid-controls", {
122
126
  onArcgisPropertyChange: "arcgisPropertyChange",
123
127
  onArcgisReady: "arcgisReady",
124
128
  }));
@@ -132,10 +136,14 @@ export const ArcgisHome = /*@__PURE__*/ createWrapper(getReactWrapperOptions("ar
132
136
  onArcgisReady: "arcgisReady",
133
137
  }));
134
138
  export const ArcgisLayerList = /*@__PURE__*/ createWrapper(getReactWrapperOptions("arcgis-layer-list", {
139
+ onArcgisClose: "arcgisClose",
135
140
  onArcgisPropertyChange: "arcgisPropertyChange",
136
141
  onArcgisReady: "arcgisReady",
137
142
  onArcgisTriggerAction: "arcgisTriggerAction",
138
143
  }));
144
+ export const ArcgisLayerListItem = /*@__PURE__*/ createWrapper(getReactWrapperOptions("arcgis-layer-list-item", {
145
+ onArcgisPropertyChange: "arcgisPropertyChange",
146
+ }));
139
147
  export const ArcgisLegend = /*@__PURE__*/ createWrapper(getReactWrapperOptions("arcgis-legend", {
140
148
  onArcgisPropertyChange: "arcgisPropertyChange",
141
149
  onArcgisReady: "arcgisReady",
@@ -295,6 +303,7 @@ export const ArcgisSwipe = /*@__PURE__*/ createWrapper(getReactWrapperOptions("a
295
303
  onArcgisReady: "arcgisReady",
296
304
  }));
297
305
  export const ArcgisTableList = /*@__PURE__*/ createWrapper(getReactWrapperOptions("arcgis-table-list", {
306
+ onArcgisClose: "arcgisClose",
298
307
  onArcgisPropertyChange: "arcgisPropertyChange",
299
308
  onArcgisReady: "arcgisReady",
300
309
  onArcgisTriggerAction: "arcgisTriggerAction",
@@ -304,6 +313,10 @@ export const ArcgisTimeSlider = /*@__PURE__*/ createWrapper(getReactWrapperOptio
304
313
  onArcgisReady: "arcgisReady",
305
314
  onArcgisTriggerAction: "arcgisTriggerAction",
306
315
  }));
316
+ export const ArcgisTimeZoneLabel = /*@__PURE__*/ createWrapper(getReactWrapperOptions("arcgis-time-zone-label", {
317
+ onArcgisPropertyChange: "arcgisPropertyChange",
318
+ onArcgisReady: "arcgisReady",
319
+ }));
307
320
  export const ArcgisTrack = /*@__PURE__*/ createWrapper(getReactWrapperOptions("arcgis-track", {
308
321
  onArcgisComplete: "arcgisComplete",
309
322
  onArcgisError: "arcgisError",
@@ -318,10 +331,12 @@ export const ArcgisUtilityNetworkTrace = /*@__PURE__*/ createWrapper(getReactWra
318
331
  onArcgisAddFlagComplete: "arcgisAddFlagComplete",
319
332
  onArcgisAddFlagError: "arcgisAddFlagError",
320
333
  onArcgisAddResultArea: "arcgisAddResultArea",
334
+ onArcgisPropertyChange: "arcgisPropertyChange",
321
335
  onArcgisReady: "arcgisReady",
322
336
  onArcgisRemoveResultArea: "arcgisRemoveResultArea",
323
337
  }));
324
338
  export const ArcgisUtilityNetworkValidateTopology = /*@__PURE__*/ createWrapper(getReactWrapperOptions("arcgis-utility-network-validate-topology", {
339
+ onArcgisPropertyChange: "arcgisPropertyChange",
325
340
  onArcgisReady: "arcgisReady",
326
341
  }));
327
342
  export const ArcgisValuePicker = /*@__PURE__*/ createWrapper(getReactWrapperOptions("arcgis-value-picker", {
@@ -337,6 +352,14 @@ export const ArcgisVersionManagement = /*@__PURE__*/ createWrapper(getReactWrapp
337
352
  onArcgisReady: "arcgisReady",
338
353
  onArcgisVersioningStateChanged: "arcgisVersioningStateChanged",
339
354
  }));
355
+ export const ArcgisVideo = /*@__PURE__*/ createWrapper(getReactWrapperOptions("arcgis-video", {
356
+ onArcgisViewReadyChange: "arcgisViewReadyChange",
357
+ }));
358
+ export const ArcgisVideoPlayer = /*@__PURE__*/ createWrapper(getReactWrapperOptions("arcgis-video-player", {
359
+ onArcgisPropertyChange: "arcgisPropertyChange",
360
+ onArcgisReady: "arcgisReady",
361
+ onArcgisVideoReady: "arcgisVideoReady",
362
+ }));
340
363
  export const ArcgisWeather = /*@__PURE__*/ createWrapper(getReactWrapperOptions("arcgis-weather", {
341
364
  onArcgisPropertyChange: "arcgisPropertyChange",
342
365
  onArcgisReady: "arcgisReady",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/map-components-react",
3
- "version": "4.33.0-next.9",
3
+ "version": "4.33.0-next.90",
4
4
  "description": "A set of React components that wrap ArcGIS map components",
5
5
  "keywords": [
6
6
  "ArcGIS",
@@ -29,13 +29,13 @@
29
29
  ],
30
30
  "license": "SEE LICENSE.md",
31
31
  "dependencies": {
32
- "@arcgis/map-components": "4.33.0-next.9",
33
- "@esri/calcite-components": "~3.0.0-next",
32
+ "@arcgis/map-components": "4.33.0-next.90",
33
+ "@esri/calcite-components": "^3.2.0-next.13",
34
34
  "@lit/react": "^1.0.5",
35
35
  "tslib": "^2.7.0"
36
36
  },
37
37
  "peerDependencies": {
38
- "@arcgis/core": ">=4.32.0-next <4.33",
38
+ "@arcgis/core": ">=4.33.0-next <4.34",
39
39
  "react": ">=18.0.0 <19.0.0",
40
40
  "react-dom": ">=18.0.0 <19.0.0"
41
41
  }