Skip to content

Commit

Permalink
Merge pull request #23 from jf990/esm-update
Browse files Browse the repository at this point in the history
Esm update
  • Loading branch information
jf990 authored Aug 25, 2022
2 parents ecd2454 + 1ab81da commit 8180ab4
Show file tree
Hide file tree
Showing 12 changed files with 3,739 additions and 6,583 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
secret.js
dist/
www/
loader/
Expand Down
91 changes: 62 additions & 29 deletions README.md

Large diffs are not rendered by default.

9,378 changes: 3,301 additions & 6,077 deletions package-lock.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "esri-map-view",
"version": "0.3.7",
"version": "0.4.1",
"description": "Display an Esri map view as a web component.",
"main": "./dist/index.cjs.js",
"module": "./dist/index.js",
Expand All @@ -23,16 +23,16 @@
"generate": "stencil generate"
},
"dependencies": {
"esri-loader": "^2.16.0"
"@arcgis/core": "^4.24.7"
},
"devDependencies": {
"@stencil/core": "^2.5.2",
"@types/arcgis-js-api": "4.18.0",
"@types/jest": "26.0.22",
"@types/puppeteer": "3.0.1",
"jest": "26.6.3",
"jest-cli": "26.6.3",
"puppeteer": "5.5.0"
"@stencil/core": "^2.17.4",
"@types/jest": "27.0.3",
"@types/node": "^18.7.13",
"@types/puppeteer": "5.4.6",
"jest": "27.0.3",
"jest-cli": "27.4.5",
"puppeteer": "16.2.0"
},
"license": "MIT",
"repository": {
Expand Down
16 changes: 16 additions & 0 deletions src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
import { HTMLStencilElement, JSXBase } from "@stencil/core/internal";
export namespace Components {
interface EsriMapView {
/**
* Set your API key. See the section on [API keys](https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/).
*/
"apikey": string;
/**
* Indicate a basemap id to use for the map. This property will be overridden by `webmap` if that attribute is provided. If neither `webmap` nor `basemap` are set, then a default basemap is assigned. Options for `basemap` are defined in the [ArcGIS API for JavaScript](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemap).
*/
Expand Down Expand Up @@ -45,6 +49,10 @@ export namespace Components {
"webmap": string;
}
interface EsriSceneView {
/**
* Set your API key. See the section on [API keys](https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/).
*/
"apikey": string;
/**
* Indicate a basemap id to use for the map. This property will be overridden by `webscene` if that attribute is provided. If neither `webscene` nor `basemap` are set, then a default basemap is assigned. Options for `basemap` are defined in the [ArcGIS API for JavaScript](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemap).
*/
Expand Down Expand Up @@ -107,6 +115,10 @@ declare global {
}
declare namespace LocalJSX {
interface EsriMapView {
/**
* Set your API key. See the section on [API keys](https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/).
*/
"apikey"?: string;
/**
* Indicate a basemap id to use for the map. This property will be overridden by `webmap` if that attribute is provided. If neither `webmap` nor `basemap` are set, then a default basemap is assigned. Options for `basemap` are defined in the [ArcGIS API for JavaScript](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemap).
*/
Expand Down Expand Up @@ -145,6 +157,10 @@ declare namespace LocalJSX {
"webmap"?: string;
}
interface EsriSceneView {
/**
* Set your API key. See the section on [API keys](https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/).
*/
"apikey"?: string;
/**
* Indicate a basemap id to use for the map. This property will be overridden by `webscene` if that attribute is provided. If neither `webscene` nor `basemap` are set, then a default basemap is assigned. Options for `basemap` are defined in the [ArcGIS API for JavaScript](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemap).
*/
Expand Down
Loading

0 comments on commit 8180ab4

Please sign in to comment.