@basemaps/landing 6.29.0 → 6.30.0

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.
Files changed (82) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/build/__tests__/config.debug.test.js +1 -0
  3. package/build/__tests__/config.debug.test.js.map +1 -0
  4. package/build/__tests__/config.test.js +1 -0
  5. package/build/__tests__/config.test.js.map +1 -0
  6. package/build/__tests__/geojson.test.js +1 -0
  7. package/build/__tests__/geojson.test.js.map +1 -0
  8. package/build/__tests__/map.config.test.js +10 -9
  9. package/build/__tests__/map.config.test.js.map +1 -0
  10. package/build/__tests__/tile.matrix.test.js +1 -0
  11. package/build/__tests__/tile.matrix.test.js.map +1 -0
  12. package/build/attribution.d.ts +4 -4
  13. package/build/attribution.d.ts.map +1 -1
  14. package/build/attribution.js +3 -1
  15. package/build/attribution.js.map +1 -0
  16. package/build/components/copyable.js +1 -0
  17. package/build/components/copyable.js.map +1 -0
  18. package/build/components/debug.d.ts +15 -10
  19. package/build/components/debug.d.ts.map +1 -1
  20. package/build/components/debug.js +57 -31
  21. package/build/components/debug.js.map +1 -0
  22. package/build/components/layer.switcher.dropdown.d.ts +0 -6
  23. package/build/components/layer.switcher.dropdown.d.ts.map +1 -1
  24. package/build/components/layer.switcher.dropdown.js +16 -24
  25. package/build/components/layer.switcher.dropdown.js.map +1 -0
  26. package/build/components/layout.footer.js +1 -0
  27. package/build/components/layout.footer.js.map +1 -0
  28. package/build/components/layout.header.d.ts.map +1 -1
  29. package/build/components/layout.header.js +2 -6
  30. package/build/components/layout.header.js.map +1 -0
  31. package/build/components/link.js +1 -0
  32. package/build/components/link.js.map +1 -0
  33. package/build/components/map.d.ts +8 -5
  34. package/build/components/map.d.ts.map +1 -1
  35. package/build/components/map.js +12 -10
  36. package/build/components/map.js.map +1 -0
  37. package/build/components/map.switcher.d.ts +1 -2
  38. package/build/components/map.switcher.d.ts.map +1 -1
  39. package/build/components/map.switcher.js +3 -1
  40. package/build/components/map.switcher.js.map +1 -0
  41. package/build/config.d.ts +0 -1
  42. package/build/config.d.ts.map +1 -1
  43. package/build/config.debug.d.ts +3 -1
  44. package/build/config.debug.d.ts.map +1 -1
  45. package/build/config.debug.js +3 -0
  46. package/build/config.debug.js.map +1 -0
  47. package/build/config.js +1 -4
  48. package/build/config.js.map +1 -0
  49. package/build/config.map.d.ts +3 -1
  50. package/build/config.map.d.ts.map +1 -1
  51. package/build/config.map.js +39 -6
  52. package/build/config.map.js.map +1 -0
  53. package/build/global.d.ts +1 -2
  54. package/build/global.d.ts.map +1 -1
  55. package/build/global.js +1 -0
  56. package/build/global.js.map +1 -0
  57. package/build/index.js +1 -0
  58. package/build/index.js.map +1 -0
  59. package/build/tile.matrix.d.ts +2 -2
  60. package/build/tile.matrix.d.ts.map +1 -1
  61. package/build/tile.matrix.js +1 -0
  62. package/build/tile.matrix.js.map +1 -0
  63. package/build/url.d.ts.map +1 -1
  64. package/build/url.js +3 -5
  65. package/build/url.js.map +1 -0
  66. package/build/webp.js +1 -0
  67. package/build/webp.js.map +1 -0
  68. package/dist/examples/index.openlayers.attribution.wmts.3857.html +1 -1
  69. package/dist/index-6.30.0-3328a19b1b63f913.js +28520 -0
  70. package/dist/{index-6.29.0-f61958521df787d6.css → index-6.30.0-467e63869a31f2e1.css} +1 -1
  71. package/dist/index-6.30.0-7bdec3e7d1c65337.js +567 -0
  72. package/dist/index.css +1 -1
  73. package/dist/index.html +2 -2
  74. package/dist/index.js +69 -77
  75. package/dist/lib/{attribution-6.29.0-431936fcac8e2647.js → attribution-6.30.0-431936fcac8e2647.js} +0 -0
  76. package/dist/lib/{attribution-6.29.0-a5dcb359f35150b9.js → attribution-6.30.0-a5dcb359f35150b9.js} +0 -0
  77. package/package.json +6 -8
  78. package/build/split.d.ts +0 -11
  79. package/build/split.d.ts.map +0 -1
  80. package/build/split.js +0 -45
  81. package/dist/index-6.29.0-053c6b9b5e501b18.js +0 -575
  82. package/dist/index-6.29.0-433a0509539c3f0c.js +0 -35288
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basemaps/landing",
3
- "version": "6.29.0",
3
+ "version": "6.30.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/linz/basemaps.git",
@@ -30,14 +30,13 @@
30
30
  "devDependencies": {
31
31
  "@basemaps/attribution": "^6.28.1",
32
32
  "@basemaps/geo": "^6.28.1",
33
- "@basemaps/infra": "^6.29.0",
34
- "@basemaps/shared": "^6.29.0",
33
+ "@basemaps/infra": "^6.30.0",
34
+ "@basemaps/shared": "^6.30.0",
35
35
  "@linzjs/lui": "^10.11.3",
36
36
  "@servie/events": "^3.0.0",
37
- "@splitsoftware/splitio": "^10.16.1",
38
37
  "@types/geojson": "^7946.0.7",
39
38
  "@types/proj4": "^2.5.0",
40
- "maplibre-gl": "^1.14.1-rc.2",
39
+ "maplibre-gl": "^2.1.9",
41
40
  "mime-types": "^2.1.35",
42
41
  "preact": "^10.5.15",
43
42
  "proj4": "^2.6.2",
@@ -83,8 +82,7 @@
83
82
  "entry": "src/index.tsx",
84
83
  "env": {
85
84
  "GOOGLE_ANALYTICS": null,
86
- "TILE_HOST": null,
87
- "SPLIT_IO_KEY": null
85
+ "TILE_HOST": null
88
86
  },
89
87
  "platform": "browser"
90
88
  },
@@ -103,5 +101,5 @@
103
101
  }
104
102
  }
105
103
  ],
106
- "gitHead": "9097d2f045d734d0d5acd968f026fe29ab6afcda"
104
+ "gitHead": "c4858d318fd769e086a11e8b2a8f052b54964aab"
107
105
  }
package/build/split.d.ts DELETED
@@ -1,11 +0,0 @@
1
- export declare enum SplitTreatment {
2
- LayerSwitcherButton = "layer-switcher-button"
3
- }
4
- export declare const SplitIo: {
5
- client: Promise<import("@splitsoftware/splitio/types/splitio").IClient | null> | null;
6
- _client: import("@splitsoftware/splitio/types/splitio").IClient | null;
7
- getClient(): Promise<SplitIO.IClient | null>;
8
- getClientSync(): SplitIO.IClient | null;
9
- getTreatment(key: SplitTreatment): string | null;
10
- };
11
- //# sourceMappingURL=split.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"split.d.ts","sourceRoot":"","sources":["../src/split.ts"],"names":[],"mappings":"AAGA,oBAAY,cAAc;IACxB,mBAAmB,0BAA0B;CAC9C;AAED,eAAO,MAAM,OAAO;;;iBAIL,QAAQ,QAAQ,OAAO,GAAG,IAAI,CAAC;qBAwB3B,QAAQ,OAAO,GAAG,IAAI;sBAMrB,cAAc,GAAG,MAAM,GAAG,IAAI;CAKjD,CAAC"}
package/build/split.js DELETED
@@ -1,45 +0,0 @@
1
- import { SplitFactory } from '@splitsoftware/splitio';
2
- import { Config } from './config';
3
- export var SplitTreatment;
4
- (function (SplitTreatment) {
5
- SplitTreatment["LayerSwitcherButton"] = "layer-switcher-button";
6
- })(SplitTreatment || (SplitTreatment = {}));
7
- export const SplitIo = {
8
- client: null,
9
- _client: null,
10
- getClient() {
11
- if (this.client != null)
12
- return this.client;
13
- if (Config.SplitApiKey === '') {
14
- this.client = Promise.resolve(null);
15
- return this.client;
16
- }
17
- const factory = SplitFactory({
18
- core: {
19
- authorizationKey: Config.SplitApiKey,
20
- key: Config.ApiKey,
21
- },
22
- });
23
- this.client = new Promise((resolve) => {
24
- const client = factory.client();
25
- client.on(client.Event.SDK_READY, () => {
26
- SplitIo._client = client;
27
- resolve(client);
28
- });
29
- });
30
- return this.client;
31
- },
32
- getClientSync() {
33
- if (this._client)
34
- return this._client;
35
- this.getClient();
36
- return null;
37
- },
38
- getTreatment(key) {
39
- const client = SplitIo.getClientSync();
40
- if (client == null)
41
- return null;
42
- return client.getTreatment(key);
43
- },
44
- };
45
- window.splitIo = SplitIo;