-
Notifications
You must be signed in to change notification settings - Fork 568
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #548 from Esri/update-component-react-angular-19
chore(map and coding components): update react samples to use v19
- Loading branch information
Showing
46 changed files
with
88 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 5 additions & 9 deletions
14
component-samples/coding-components/samples/react/src/index.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
import React from "react"; | ||
import ReactDOM from "react-dom/client"; | ||
import { StrictMode } from 'react' | ||
import { createRoot } from 'react-dom/client' | ||
|
||
import ArcadeEditor from "./components/ArcadeEditor"; | ||
|
||
// Individual imports for each component used in this sample | ||
import "@arcgis/coding-components/dist/components/arcgis-arcade-editor"; | ||
import "@esri/calcite-components/dist/components/calcite-scrim"; | ||
|
||
// Set the asset path for calcite components | ||
import { setAssetPath as setCalciteComponentsAssetPath } from '@esri/calcite-components/dist/components'; | ||
setCalciteComponentsAssetPath("https://js.arcgis.com/calcite-components/2.13.2/assets"); | ||
|
||
const root = ReactDOM.createRoot(document.getElementById("root")); | ||
const root = createRoot(document.getElementById("root")); | ||
root.render( | ||
<React.StrictMode> | ||
<StrictMode> | ||
<ArcadeEditor /> | ||
</React.StrictMode> | ||
</StrictMode> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 10 additions & 11 deletions
21
component-samples/map-components/samples/react/src/index.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
import React from "react"; | ||
import ReactDOM from "react-dom/client"; | ||
import { StrictMode } from 'react' | ||
import { createRoot } from 'react-dom/client' | ||
import "./index.css"; | ||
|
||
// Individual imports for each component used in this sample | ||
import "@arcgis/map-components/dist/components/arcgis-map"; | ||
import "@arcgis/map-components/dist/components/arcgis-legend"; | ||
import "@arcgis/map-components/dist/components/arcgis-search"; | ||
import { ArcgisMap, ArcgisSearch, ArcgisLegend } from "@arcgis/map-components-react"; | ||
|
||
const root = ReactDOM.createRoot(document.getElementById("root")); | ||
const root = createRoot(document.getElementById("root")); | ||
root.render( | ||
<React.StrictMode> | ||
<ArcgisMap | ||
<StrictMode> | ||
<arcgis-map | ||
itemId="d5dda743788a4b0688fe48f43ae7beb9" | ||
onArcgisViewReadyChange={(event) => { | ||
onarcgisViewReadyChange={(event) => { | ||
console.log("MapView ready", event); | ||
}} | ||
> | ||
<ArcgisSearch position="top-right"></ArcgisSearch> | ||
<ArcgisLegend position="bottom-left"></ArcgisLegend> | ||
</ArcgisMap> | ||
</React.StrictMode> | ||
<arcgis-search position="top-right"></arcgis-search> | ||
<arcgis-legend position="bottom-left"></arcgis-legend> | ||
</arcgis-map> | ||
</StrictMode> | ||
); |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
zips/charts-components-tutorial-charts-components-with-map-components-initial.zip
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
zips/charts-components-tutorial-charts-components-with-map-components-solution.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
zips/map-components-tutorial-create-a-web-app-using-components-initial.zip
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
zips/map-components-tutorial-create-a-web-app-using-components-solution.zip
Binary file not shown.