@tomtom-org/maps-sdk-plugin-map-theme 0.3.1 → 0.3.3

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 (2) hide show
  1. package/README.md +4 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -18,12 +18,14 @@ Plugin for the [TomTom Maps SDK for JavaScript](https://docs.tomtom.com/maps-sdk
18
18
 
19
19
  ## Quickstart
20
20
 
21
- The plugin declares `@tomtom-org/maps-sdk` and `culori` as peer dependencies; npm 7+ and Yarn install them for you.
21
+ Note: this plugin declares `@tomtom-org/maps-sdk` and `culori` as peer dependencies — ensure both are installed in your project.
22
22
 
23
23
  ```bash
24
- npm install @tomtom-org/maps-sdk maplibre-gl @tomtom-org/maps-sdk-plugin-map-theme
24
+ npm install @tomtom-org/maps-sdk maplibre-gl culori @tomtom-org/maps-sdk-plugin-map-theme
25
25
  ```
26
26
 
27
+ Then, with your initialized `TomTomMap` as `map` (see the SDK [Project setup](https://docs.tomtom.com/maps-sdk-js/introduction/project-setup) or the Map [quickstart](https://docs.tomtom.com/maps-sdk-js/guides/map/quickstart)):
28
+
27
29
  ```ts
28
30
  import { StylingFoundationsModule } from '@tomtom-org/maps-sdk/map';
29
31
  import { deriveMapColors, deriveMapColorsFromCss, deriveMapColorsFromImage } from '@tomtom-org/maps-sdk-plugin-map-theme';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tomtom-org/maps-sdk-plugin-map-theme",
3
3
  "author": "TomTom International B.V.",
4
4
  "license": "See in LICENSE.txt",
5
- "version": "0.3.1",
5
+ "version": "0.3.3",
6
6
  "type": "module",
7
7
  "description": "Theme a TomTomMap from wherever a look comes from — a brand's colours, a website's, a described mood, an artist's palette, or an image — by assigning them to the SDK's map colours",
8
8
  "types": "dist/index.d.ts",
@@ -19,7 +19,7 @@
19
19
  "typescript": "^6.0.3",
20
20
  "vite": "^8.3.2",
21
21
  "vitest": "^4.1.11",
22
- "@tomtom-org/maps-sdk": "1.0.0-rc.0"
22
+ "@tomtom-org/maps-sdk": "1.0.0-rc.1"
23
23
  },
24
24
  "files": [
25
25
  "dist",