@opensystemslab/map 0.5.2 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensystemslab/map",
3
- "version": "0.5.2",
3
+ "version": "0.5.5",
4
4
  "license": "OGL-UK-3.0",
5
5
  "private": false,
6
6
  "repository": {
@@ -24,16 +24,16 @@
24
24
  "dependencies": {
25
25
  "@turf/union": "^6.5.0",
26
26
  "accessible-autocomplete": "^2.0.4",
27
- "govuk-frontend": "^3.14.0",
27
+ "govuk-frontend": "^4.0.1",
28
28
  "lit": "^2.0.0-rc.2",
29
29
  "ol": "^6.9.0",
30
- "ol-mapbox-style": "^7.1.1",
30
+ "ol-mapbox-style": "^8.0.7",
31
31
  "postcode": "^5.1.0",
32
32
  "rambda": "^7.0.1"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/node": "^17.0.7",
36
- "husky": "^7.0.1",
36
+ "husky": "^8.0.1",
37
37
  "lint-staged": "^12.0.3",
38
38
  "prettier": "^2.3.2",
39
39
  "rollup-plugin-postcss-lit": "^2.0.0",
@@ -1,4 +1,4 @@
1
- import { LitElement } from "lit";
1
+ import { LitElement, TemplateResult } from "lit";
2
2
  declare type Address = {
3
3
  LPI: any;
4
4
  };
@@ -20,11 +20,24 @@ export declare class AddressAutocomplete extends LitElement {
20
20
  private _osError;
21
21
  connectedCallback(): void;
22
22
  disconnectedCallback(): void;
23
- getLightDropdownArrow(): string;
23
+ _getLightDropdownArrow(): string;
24
24
  firstUpdated(): void;
25
25
  _fetchData(offset?: number, prevResults?: Address[]): Promise<void>;
26
26
  _getLabelClasses(): string;
27
- render(): import("lit").TemplateResult<1>;
27
+ /**
28
+ * Render an errorMessage container
29
+ * Must always be visible to ensure that role="status" works for screenreaders
30
+ * @param errorMessage
31
+ * @returns TemplateResult
32
+ */
33
+ _getErrorMessageContainer(errorMessage: string | undefined): TemplateResult;
34
+ /**
35
+ * If not in state of error, return the autocomplete
36
+ * @param errorMessage
37
+ * @returns TemplateResult | null
38
+ */
39
+ _getAutocomplete(errorMessage: string | undefined): TemplateResult | null;
40
+ render(): TemplateResult<1>;
28
41
  /**
29
42
  * dispatches an event for clients to subscribe to
30
43
  * @param eventName