@open-pioneer/printing 0.9.0 → 0.10.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 (3) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +4 -2
  3. package/package.json +10 -10
package/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # @open-pioneer/printing
2
2
 
3
+ ## 0.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 193068a: Deprecate the `mapId` property on React components.
8
+ Use the `MapModel` directly instead to pass a reference to the map.
9
+
10
+ Example:
11
+
12
+ ```tsx
13
+ // Default map for entire component tree
14
+ <DefaultMapProvider map={mapModel}>
15
+ <Toc />
16
+ </DefaultMapProvider>
17
+
18
+ // Map for specific component
19
+ <Toc map={mapModel} />
20
+ ```
21
+
22
+ ### Patch Changes
23
+
24
+ - 4e90de6: bump version of jspdf
25
+ - cd1435b: Update ol to 10.5.0
26
+ - 032eed7: Bump dependencies.
27
+ - cd1435b: Update to react 19.1.0
28
+ - Updated dependencies [2bafdad]
29
+ - Updated dependencies [cd1435b]
30
+ - Updated dependencies [193068a]
31
+ - Updated dependencies [032eed7]
32
+ - Updated dependencies [cd1435b]
33
+ - Updated dependencies [7558df4]
34
+ - @open-pioneer/map@0.10.0
35
+
3
36
  ## 0.9.0
4
37
 
5
38
  ### Minor Changes
package/README.md CHANGED
@@ -14,10 +14,12 @@ The package also provides a printing service that creates an image of the map as
14
14
 
15
15
  ### UI Component
16
16
 
17
- To integrate the printing in your app, insert the following snippet and reference a map ID:
17
+ To integrate the printing in your app, insert the following snippet and reference a map:
18
18
 
19
19
  ```tsx
20
- <Printing mapId="map_id" />
20
+ <Printing
21
+ map={map}
22
+ /> /* instead of passing the map, the `DefaultMapProvider` can alternatively be used */
21
23
  ```
22
24
 
23
25
  ### Printing Service
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@open-pioneer/printing",
4
- "version": "0.9.0",
4
+ "version": "0.10.0",
5
5
  "description": "This package provides a UI component to export the current map view as a printable file.",
6
6
  "keywords": [
7
7
  "open-pioneer-trails"
@@ -14,17 +14,17 @@
14
14
  "directory": "src/packages/printing"
15
15
  },
16
16
  "dependencies": {
17
- "@open-pioneer/chakra-integration": "^3.0.0",
18
- "@open-pioneer/core": "^3.0.0",
19
- "@open-pioneer/notifier": "^3.0.0",
20
- "@open-pioneer/react-utils": "^3.0.0",
21
- "@open-pioneer/runtime": "^3.0.0",
17
+ "@open-pioneer/chakra-integration": "^3.1.0",
18
+ "@open-pioneer/core": "^3.1.0",
19
+ "@open-pioneer/notifier": "^3.1.0",
20
+ "@open-pioneer/react-utils": "^3.1.0",
21
+ "@open-pioneer/runtime": "^3.1.0",
22
22
  "classnames": "^2.3.2",
23
23
  "html2canvas": "^1.4.1",
24
- "jspdf": "^3.0.0",
25
- "ol": "^10.4.0",
26
- "react": "^19.0.0",
27
- "@open-pioneer/map": "^0.9.0"
24
+ "jspdf": "^3.0.1",
25
+ "ol": "^10.5.0",
26
+ "react": "^19.1.0",
27
+ "@open-pioneer/map": "^0.10.0"
28
28
  },
29
29
  "exports": {
30
30
  "./package.json": "./package.json",