@vaadin/map 23.2.0-alpha2 → 23.2.0-alpha5

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/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@vaadin/map",
3
- "version": "23.2.0-alpha2",
3
+ "version": "23.2.0-alpha5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "description": "vaadin-map",
8
- "license": "https://raw.githubusercontent.com/vaadin/web-components/master/packages/map/LICENSE",
8
+ "license": "SEE LICENSE IN LICENSE",
9
9
  "cvdlName": "vaadin-map",
10
10
  "repository": {
11
11
  "type": "git",
@@ -25,7 +25,9 @@
25
25
  "src",
26
26
  "theme",
27
27
  "vaadin-*.d.ts",
28
- "vaadin-*.js"
28
+ "vaadin-*.js",
29
+ "web-types.json",
30
+ "web-types.lit.json"
29
31
  ],
30
32
  "keywords": [
31
33
  "Vaadin",
@@ -36,9 +38,8 @@
36
38
  ],
37
39
  "dependencies": {
38
40
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/component-base": "23.2.0-alpha2",
40
- "@vaadin/vaadin-license-checker": "^2.1.0",
41
- "@vaadin/vaadin-themable-mixin": "23.2.0-alpha2",
41
+ "@vaadin/component-base": "23.2.0-alpha5",
42
+ "@vaadin/vaadin-themable-mixin": "23.2.0-alpha5",
42
43
  "ol": "6.13.0"
43
44
  },
44
45
  "devDependencies": {
@@ -46,5 +47,9 @@
46
47
  "@vaadin/testing-helpers": "^0.3.2",
47
48
  "sinon": "^13.0.2"
48
49
  },
49
- "gitHead": "c9b8113d0fa9a602f8b9cb915c1826355af2e8df"
50
+ "web-types": [
51
+ "web-types.json",
52
+ "web-types.lit.json"
53
+ ],
54
+ "gitHead": "c6247fd741d61096d75a71feda4a1faf88b6f0ce"
50
55
  }
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) 2022 - 2022 Vaadin Ltd.
4
4
  * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
5
5
  */
6
- import OpenLayersMap from 'ol/Map.js';
6
+ import type OpenLayersMap from 'ol/Map.js';
7
7
  import { ElementMixin, FocusMixin, ResizeMixin } from '@vaadin/component-base';
8
8
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin';
9
9
 
package/src/vaadin-map.js CHANGED
@@ -3,7 +3,6 @@
3
3
  * Copyright (c) 2022 - 2022 Vaadin Ltd.
4
4
  * This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
5
5
  */
6
- import '@vaadin/vaadin-license-checker/vaadin-license-checker.js';
7
6
  import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
8
7
  import { defaults as defaultControls } from 'ol/control';
9
8
  import { defaults as defaultInteractions } from 'ol/interaction';
@@ -380,17 +379,6 @@ class Map extends ResizeMixin(FocusMixin(ElementMixin(ThemableMixin(PolymerEleme
380
379
  return 'vaadin-map';
381
380
  }
382
381
 
383
- /** @protected */
384
- static _finalizeClass() {
385
- super._finalizeClass();
386
-
387
- const devModeCallback = window.Vaadin.developmentModeCallback;
388
- const licenseChecker = devModeCallback && devModeCallback['vaadin-license-checker'];
389
- if (typeof licenseChecker === 'function') {
390
- licenseChecker(Map);
391
- }
392
- }
393
-
394
382
  /**
395
383
  * The internal OpenLayers map instance used to configure the map.
396
384
  * See the OpenLayers [API](https://openlayers.org/en/latest/apidoc/) and
package/web-types.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/web-types",
3
+ "name": "@vaadin/map",
4
+ "version": "23.2.0-alpha5",
5
+ "description-markup": "markdown",
6
+ "contributions": {
7
+ "html": {
8
+ "elements": [
9
+ {
10
+ "name": "vaadin-map",
11
+ "description": "`vaadin-map` is a web component for displaying web maps.\n\nThe component is a light-weight wrapper around the OpenLayers mapping library.\n\n### Basic Usage\n\nAdd a `<vaadin-map>` element to your HTML:\n\n```html\n<vaadin-map></vaadin-map>\n```\n\nThen use the exposed OpenLayers API to configure it:\n```html\n<script type=\"module\">\n import \"@vaadin/map/enable\";\n import \"@vaadin/map\";\n import TileLayer from \"ol/layer/Tile\";\n import OSM from \"ol/source/OSM\";\n import View from \"ol/View\";\n\n const map = document.querySelector(\"vaadin-map\");\n customElements.whenDefined(\"vaadin-map\").then(() => {\n map.configuration.addLayer(new TileLayer({\n source: new OSM()\n }));\n map.configuration.setView(new View({\n center: [0, 0],\n zoom: 3\n }));\n });\n</script>\n```",
12
+ "attributes": [
13
+ {
14
+ "name": "theme",
15
+ "description": "The theme variants to apply to the component.",
16
+ "value": {
17
+ "type": [
18
+ "string",
19
+ "null",
20
+ "undefined"
21
+ ]
22
+ }
23
+ }
24
+ ],
25
+ "js": {
26
+ "properties": [],
27
+ "events": []
28
+ }
29
+ }
30
+ ]
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/web-types",
3
+ "name": "@vaadin/map",
4
+ "version": "23.2.0-alpha5",
5
+ "description-markup": "markdown",
6
+ "framework": "lit",
7
+ "framework-config": {
8
+ "enable-when": {
9
+ "node-packages": [
10
+ "lit"
11
+ ]
12
+ }
13
+ },
14
+ "contributions": {
15
+ "html": {
16
+ "elements": [
17
+ {
18
+ "name": "vaadin-map",
19
+ "description": "`vaadin-map` is a web component for displaying web maps.\n\nThe component is a light-weight wrapper around the OpenLayers mapping library.\n\n### Basic Usage\n\nAdd a `<vaadin-map>` element to your HTML:\n\n```html\n<vaadin-map></vaadin-map>\n```\n\nThen use the exposed OpenLayers API to configure it:\n```html\n<script type=\"module\">\n import \"@vaadin/map/enable\";\n import \"@vaadin/map\";\n import TileLayer from \"ol/layer/Tile\";\n import OSM from \"ol/source/OSM\";\n import View from \"ol/View\";\n\n const map = document.querySelector(\"vaadin-map\");\n customElements.whenDefined(\"vaadin-map\").then(() => {\n map.configuration.addLayer(new TileLayer({\n source: new OSM()\n }));\n map.configuration.setView(new View({\n center: [0, 0],\n zoom: 3\n }));\n });\n</script>\n```",
20
+ "extension": true,
21
+ "attributes": []
22
+ }
23
+ ]
24
+ }
25
+ }
26
+ }