diff --git a/package.json b/package.json index 308b75a..8718873 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "name": "esri-map-view", - "version": "0.5.1", + "version": "0.5.2", "description": "Display an Esri map view as a web component.", "main": "./dist/index.cjs.js", "module": "./dist/index.js", - "es2015": "./dist/esm/index.mjs", - "es2017": "./dist/esm/index.mjs", + "es2015": "./dist/esm/index.js", + "es2017": "./dist/esm/index.js", "types": "./dist/types/components.d.ts", "collection": "./dist/collection/collection-manifest.json", "collection:main": "./dist/collection/index.js", @@ -16,7 +16,7 @@ ], "scripts": { "build": "stencil build --docs", - "publish": "npm publish --access public", + "publish": "npm publish", "start": "stencil build --dev --watch --serve", "test": "stencil test --spec --e2e", "test.watch": "stencil test --spec --e2e --watchAll" diff --git a/src/components/esri-map-view/readme.md b/src/components/esri-map-view/readme.md index 7c77a60..b352096 100644 --- a/src/components/esri-map-view/readme.md +++ b/src/components/esri-map-view/readme.md @@ -9,7 +9,7 @@ | Property | Attribute | Description | Type | Default | | -------------- | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ---------------- | -| `apikey` | `apikey` | Set your API key. See the section on [API keys](https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/). | `string` | `"YOUR_API_KEY"` | +| `apikey` | `apikey` | Set your API key. Learn more about [API keys](https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/). | `string` | `"YOUR_API_KEY"` | | `basemap` | `basemap` | Indicate a basemap id to use for the map. Select one of the basemap style options from the enumeration https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemap, or the item ID of a custom basemap style. This property will be ignored 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). | `string` | `"osm-streets"` | | `layers` | `layers` | Specify 0 or more layers to add on top of the basemap. Each layer is a string that is either a URL to the feature service, or the item ID of the feature service. Multiple layers can be separated with a comma. | `string` | `""` | | `popupinfo` | `popupinfo` | If `symbol` is set, tapping the image will show a pop-up. This is the `content` for that pop-up. | `string` | `""` | diff --git a/src/components/esri-scene-view/readme.md b/src/components/esri-scene-view/readme.md index ae6db51..575b4d9 100644 --- a/src/components/esri-scene-view/readme.md +++ b/src/components/esri-scene-view/readme.md @@ -9,7 +9,7 @@ | Property | Attribute | Description | Type | Default | | ---------------- | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | --------------------------- | -| `apikey` | `apikey` | Set your API key. See the section on [API keys](https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/). | `string` | `"YOUR_API_KEY"` | +| `apikey` | `apikey` | Set your API key. Learn more about [API keys](https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/). | `string` | `"YOUR_API_KEY"` | | `basemap` | `basemap` | 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). | `string` | `"arcgis-imagery-standard"` | | `cameraPosition` | `camera-position` | Indicate the camera position for the initial scene viewpoint. This is a string of five comma separated numbers as follows: x,y,z,heading,tilt. If you set this it will override `viewpoint` settings. | `string` | `""` | | `layers` | `layers` | Specify 0 or more layers to add on top of the basemap. Each layer is a string that is either a URL to the feature service, or the item ID of the feature service. Multiple layers can be separated with a comma. | `string` | `""` | diff --git a/src/index.ts b/src/index.ts index 07635cb..129fddd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1 +1,2 @@ -export * from './components'; +export { EsriMapView } from './components/esri-map-view/esri-map-view'; +export { EsriSceneView } from './components/esri-scene-view/esri-scene-view'; diff --git a/stencil.config.ts b/stencil.config.ts index 5a93343..1c40fbf 100644 --- a/stencil.config.ts +++ b/stencil.config.ts @@ -2,10 +2,10 @@ import { Config } from '@stencil/core'; export const config: Config = { namespace: 'esri-map-view', + srcDir: './src', outputTargets: [ { - type: 'dist', - esmLoaderPath: '../loader' + type: 'dist' }, { type: 'docs-readme'