@vaadin/map 23.2.0-dev.48e5e3967 → 23.2.0-rc1

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
@@ -29,14 +29,6 @@ Once installed, import the component in your application:
29
29
  import '@vaadin/map';
30
30
  ```
31
31
 
32
- Map is currently an experimental feature and must be explicitly enabled through a feature flag.
33
- To do so, import the enabler module before the map component module itself:
34
-
35
- ```js
36
- import '@vaadin/map/enable';
37
- import '@vaadin/map';
38
- ```
39
-
40
32
  ## Contributing
41
33
 
42
34
  Read the [contributing guide](https://vaadin.com/docs/latest/guide/contributing/overview) to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@vaadin/map",
3
- "version": "23.2.0-dev.48e5e3967",
3
+ "version": "23.2.0-rc1",
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",
@@ -21,11 +21,12 @@
21
21
  "module": "vaadin-map.js",
22
22
  "type": "module",
23
23
  "files": [
24
- "enable.js",
25
24
  "src",
26
25
  "theme",
27
26
  "vaadin-*.d.ts",
28
- "vaadin-*.js"
27
+ "vaadin-*.js",
28
+ "web-types.json",
29
+ "web-types.lit.json"
29
30
  ],
30
31
  "keywords": [
31
32
  "Vaadin",
@@ -36,8 +37,10 @@
36
37
  ],
37
38
  "dependencies": {
38
39
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/component-base": "23.2.0-dev.48e5e3967",
40
- "@vaadin/vaadin-themable-mixin": "23.2.0-dev.48e5e3967",
40
+ "@vaadin/component-base": "23.2.0-rc1",
41
+ "@vaadin/vaadin-lumo-styles": "23.2.0-rc1",
42
+ "@vaadin/vaadin-material-styles": "23.2.0-rc1",
43
+ "@vaadin/vaadin-themable-mixin": "23.2.0-rc1",
41
44
  "ol": "6.13.0"
42
45
  },
43
46
  "devDependencies": {
@@ -45,5 +48,9 @@
45
48
  "@vaadin/testing-helpers": "^0.3.2",
46
49
  "sinon": "^13.0.2"
47
50
  },
48
- "gitHead": "961bc4ae5b707c3c02f12b99819b3c12c9b478aa"
51
+ "web-types": [
52
+ "web-types.json",
53
+ "web-types.lit.json"
54
+ ],
55
+ "gitHead": "e78a1f2fe6f42d78cefa3f48085b09a3033c9588"
49
56
  }
@@ -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
 
@@ -23,7 +23,6 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin';
23
23
  * Then use the exposed OpenLayers API to configure it:
24
24
  * ```html
25
25
  * <script type="module">
26
- * import "@vaadin/map/enable";
27
26
  * import "@vaadin/map";
28
27
  * import TileLayer from "ol/layer/Tile";
29
28
  * import OSM from "ol/source/OSM";
package/src/vaadin-map.js CHANGED
@@ -12,10 +12,6 @@ import { FocusMixin } from '@vaadin/component-base/src/focus-mixin.js';
12
12
  import { ResizeMixin } from '@vaadin/component-base/src/resize-mixin.js';
13
13
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
14
14
 
15
- function isEnabled() {
16
- return window.Vaadin && window.Vaadin.featureFlags && !!window.Vaadin.featureFlags.mapComponent;
17
- }
18
-
19
15
  /**
20
16
  * `vaadin-map` is a web component for displaying web maps.
21
17
  *
@@ -32,7 +28,6 @@ function isEnabled() {
32
28
  * Then use the exposed OpenLayers API to configure it:
33
29
  * ```html
34
30
  * <script type="module">
35
- * import "@vaadin/map/enable";
36
31
  * import "@vaadin/map";
37
32
  * import TileLayer from "ol/layer/Tile";
38
33
  * import OSM from "ol/source/OSM";
@@ -460,12 +455,6 @@ class Map extends ResizeMixin(FocusMixin(ElementMixin(ThemableMixin(PolymerEleme
460
455
  }
461
456
  }
462
457
 
463
- if (isEnabled()) {
464
- customElements.define(Map.is, Map);
465
- } else {
466
- console.warn(
467
- 'WARNING: The map component is currently an experimental feature and needs to be explicitly enabled. To enable the component, `import "@vaadin/map/enable.js"` *before* importing the map module itself.',
468
- );
469
- }
458
+ customElements.define(Map.is, Map);
470
459
 
471
460
  export { Map };
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-rc1",
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\";\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-rc1",
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\";\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
+ }
package/enable.js DELETED
@@ -1,3 +0,0 @@
1
- window.Vaadin = window.Vaadin || {};
2
- window.Vaadin.featureFlags = window.Vaadin.featureFlags || {};
3
- window.Vaadin.featureFlags.mapComponent = true;