@itwin/map-layers 5.2.4 → 5.2.6

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 (88) hide show
  1. package/CHANGELOG.md +18 -2
  2. package/lib/cjs/map-layers.js +5 -1
  3. package/lib/cjs/map-layers.js.map +1 -1
  4. package/lib/cjs/ui/FeatureInfoUiItemsProvider.d.ts +1 -0
  5. package/lib/cjs/ui/FeatureInfoUiItemsProvider.d.ts.map +1 -1
  6. package/lib/cjs/ui/widget/AttachLayerPopupButton.d.ts +1 -0
  7. package/lib/cjs/ui/widget/AttachLayerPopupButton.d.ts.map +1 -1
  8. package/lib/cjs/ui/widget/BasemapPanel.d.ts +1 -0
  9. package/lib/cjs/ui/widget/BasemapPanel.d.ts.map +1 -1
  10. package/lib/cjs/ui/widget/BasemapPanel.js +66 -31
  11. package/lib/cjs/ui/widget/BasemapPanel.js.map +1 -1
  12. package/lib/cjs/ui/widget/ConfirmMessageDialog.d.ts +1 -0
  13. package/lib/cjs/ui/widget/ConfirmMessageDialog.d.ts.map +1 -1
  14. package/lib/cjs/ui/widget/FeatureInfoWidget.d.ts +1 -0
  15. package/lib/cjs/ui/widget/FeatureInfoWidget.d.ts.map +1 -1
  16. package/lib/cjs/ui/widget/MapLayerActionButtons.d.ts +1 -0
  17. package/lib/cjs/ui/widget/MapLayerActionButtons.d.ts.map +1 -1
  18. package/lib/cjs/ui/widget/MapLayerDroppable.d.ts +1 -0
  19. package/lib/cjs/ui/widget/MapLayerDroppable.d.ts.map +1 -1
  20. package/lib/cjs/ui/widget/MapLayerSettingsMenu.d.ts +1 -0
  21. package/lib/cjs/ui/widget/MapLayerSettingsMenu.d.ts.map +1 -1
  22. package/lib/cjs/ui/widget/MapLayerSettingsPopupButton.d.ts +1 -0
  23. package/lib/cjs/ui/widget/MapLayerSettingsPopupButton.d.ts.map +1 -1
  24. package/lib/cjs/ui/widget/MapLayersWidget.d.ts +1 -0
  25. package/lib/cjs/ui/widget/MapLayersWidget.d.ts.map +1 -1
  26. package/lib/cjs/ui/widget/MapLayersWidget.js +2 -0
  27. package/lib/cjs/ui/widget/MapLayersWidget.js.map +1 -1
  28. package/lib/cjs/ui/widget/MapManagerMapLayersHeader.d.ts +1 -0
  29. package/lib/cjs/ui/widget/MapManagerMapLayersHeader.d.ts.map +1 -1
  30. package/lib/cjs/ui/widget/MapManagerSettings.d.ts +1 -0
  31. package/lib/cjs/ui/widget/MapManagerSettings.d.ts.map +1 -1
  32. package/lib/cjs/ui/widget/MapSelectFeaturesDialog.d.ts +1 -0
  33. package/lib/cjs/ui/widget/MapSelectFeaturesDialog.d.ts.map +1 -1
  34. package/lib/cjs/ui/widget/MapUrlDialog.d.ts +1 -0
  35. package/lib/cjs/ui/widget/MapUrlDialog.d.ts.map +1 -1
  36. package/lib/cjs/ui/widget/MapUrlDialog.js +1 -0
  37. package/lib/cjs/ui/widget/MapUrlDialog.js.map +1 -1
  38. package/lib/cjs/ui/widget/SelectMapFormat.d.ts +1 -0
  39. package/lib/cjs/ui/widget/SelectMapFormat.d.ts.map +1 -1
  40. package/lib/cjs/ui/widget/SubLayersPopupButton.d.ts +1 -0
  41. package/lib/cjs/ui/widget/SubLayersPopupButton.d.ts.map +1 -1
  42. package/lib/cjs/ui/widget/SubLayersTree.d.ts +1 -0
  43. package/lib/cjs/ui/widget/SubLayersTree.d.ts.map +1 -1
  44. package/lib/cjs/ui/widget/TransparencyPopupButton.d.ts +1 -0
  45. package/lib/cjs/ui/widget/TransparencyPopupButton.d.ts.map +1 -1
  46. package/lib/esm/ui/FeatureInfoUiItemsProvider.d.ts +1 -0
  47. package/lib/esm/ui/FeatureInfoUiItemsProvider.d.ts.map +1 -1
  48. package/lib/esm/ui/widget/AttachLayerPopupButton.d.ts +1 -0
  49. package/lib/esm/ui/widget/AttachLayerPopupButton.d.ts.map +1 -1
  50. package/lib/esm/ui/widget/BasemapPanel.d.ts +1 -0
  51. package/lib/esm/ui/widget/BasemapPanel.d.ts.map +1 -1
  52. package/lib/esm/ui/widget/BasemapPanel.js +67 -32
  53. package/lib/esm/ui/widget/BasemapPanel.js.map +1 -1
  54. package/lib/esm/ui/widget/ConfirmMessageDialog.d.ts +1 -0
  55. package/lib/esm/ui/widget/ConfirmMessageDialog.d.ts.map +1 -1
  56. package/lib/esm/ui/widget/FeatureInfoWidget.d.ts +1 -0
  57. package/lib/esm/ui/widget/FeatureInfoWidget.d.ts.map +1 -1
  58. package/lib/esm/ui/widget/MapLayerActionButtons.d.ts +1 -0
  59. package/lib/esm/ui/widget/MapLayerActionButtons.d.ts.map +1 -1
  60. package/lib/esm/ui/widget/MapLayerDroppable.d.ts +1 -0
  61. package/lib/esm/ui/widget/MapLayerDroppable.d.ts.map +1 -1
  62. package/lib/esm/ui/widget/MapLayerSettingsMenu.d.ts +1 -0
  63. package/lib/esm/ui/widget/MapLayerSettingsMenu.d.ts.map +1 -1
  64. package/lib/esm/ui/widget/MapLayerSettingsPopupButton.d.ts +1 -0
  65. package/lib/esm/ui/widget/MapLayerSettingsPopupButton.d.ts.map +1 -1
  66. package/lib/esm/ui/widget/MapLayersWidget.d.ts +1 -0
  67. package/lib/esm/ui/widget/MapLayersWidget.d.ts.map +1 -1
  68. package/lib/esm/ui/widget/MapLayersWidget.js +2 -0
  69. package/lib/esm/ui/widget/MapLayersWidget.js.map +1 -1
  70. package/lib/esm/ui/widget/MapManagerMapLayersHeader.d.ts +1 -0
  71. package/lib/esm/ui/widget/MapManagerMapLayersHeader.d.ts.map +1 -1
  72. package/lib/esm/ui/widget/MapManagerSettings.d.ts +1 -0
  73. package/lib/esm/ui/widget/MapManagerSettings.d.ts.map +1 -1
  74. package/lib/esm/ui/widget/MapSelectFeaturesDialog.d.ts +1 -0
  75. package/lib/esm/ui/widget/MapSelectFeaturesDialog.d.ts.map +1 -1
  76. package/lib/esm/ui/widget/MapUrlDialog.d.ts +1 -0
  77. package/lib/esm/ui/widget/MapUrlDialog.d.ts.map +1 -1
  78. package/lib/esm/ui/widget/MapUrlDialog.js +1 -0
  79. package/lib/esm/ui/widget/MapUrlDialog.js.map +1 -1
  80. package/lib/esm/ui/widget/SelectMapFormat.d.ts +1 -0
  81. package/lib/esm/ui/widget/SelectMapFormat.d.ts.map +1 -1
  82. package/lib/esm/ui/widget/SubLayersPopupButton.d.ts +1 -0
  83. package/lib/esm/ui/widget/SubLayersPopupButton.d.ts.map +1 -1
  84. package/lib/esm/ui/widget/SubLayersTree.d.ts +1 -0
  85. package/lib/esm/ui/widget/SubLayersTree.d.ts.map +1 -1
  86. package/lib/esm/ui/widget/TransparencyPopupButton.d.ts +1 -0
  87. package/lib/esm/ui/widget/TransparencyPopupButton.d.ts.map +1 -1
  88. package/package.json +48 -45
@@ -1 +1 @@
1
- {"version":3,"file":"TransparencyPopupButton.d.ts","sourceRoot":"","sources":["../../../../src/ui/widget/TransparencyPopupButton.tsx"],"names":[],"mappings":"AAWA,OAAO,gCAAgC,CAAC;AAExC,aAAa;AACb,MAAM,WAAW,4BAA4B;IAC3C,6BAA6B;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,mEAAmE;IACnE,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,uBAAuB;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,aAAa;AAEb,wBAAgB,uBAAuB,CAAC,EAAE,YAAY,EAAE,oBAAoB,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE,4BAA4B,eAgDpI"}
1
+ {"version":3,"file":"TransparencyPopupButton.d.ts","sourceRoot":"","sources":["../../../../src/ui/widget/TransparencyPopupButton.tsx"],"names":[],"mappings":";AAWA,OAAO,gCAAgC,CAAC;AAExC,aAAa;AACb,MAAM,WAAW,4BAA4B;IAC3C,6BAA6B;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,mEAAmE;IACnE,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,uBAAuB;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,aAAa;AAEb,wBAAgB,uBAAuB,CAAC,EAAE,YAAY,EAAE,oBAAoB,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE,4BAA4B,eAgDpI"}
package/package.json CHANGED
@@ -1,11 +1,26 @@
1
1
  {
2
2
  "name": "@itwin/map-layers",
3
- "version": "5.2.4",
3
+ "version": "5.2.6",
4
4
  "description": "Extension that adds a Map Layers Widget",
5
5
  "main": "lib/cjs/map-layers.js",
6
6
  "module": "lib/esm/map-layers.js",
7
7
  "typings": "lib/cjs/map-layers",
8
8
  "license": "MIT",
9
+ "scripts": {
10
+ "build": "npm run -s copy:locale && npm run -s build:cjs && npm run -s build:esm",
11
+ "build:cjs": "tsc 1>&2 --outDir lib/cjs && npm run -s copy:cjs",
12
+ "build:esm": "tsc 1>&2 --module ES2020 --outDir lib/esm && npm run -s copy:esm",
13
+ "clean": "rimraf lib",
14
+ "copy:locale": "cpx \"./src/public/**/*\" ./lib/public",
15
+ "copy:cjs": "cpx \"./src/**/*.{*css,json,svg}\" \"./lib/cjs\"",
16
+ "copy:esm": "cpx \"./src/**/*.{*css,json,svg}\" \"./lib/esm\"",
17
+ "cover": "nyc npm -s test",
18
+ "docs": "",
19
+ "lint": "eslint -f visualstudio \"./src/**/*.{ts,tsx}\" 1>&2",
20
+ "pseudolocalize": "betools pseudolocalize --englishDir=./src/public/locales/en --out=./src/public/locales/en-PSEUDO",
21
+ "test": "mocha \"./lib/cjs/test/**/*.test.js\"",
22
+ "rebuild": "npm run -s clean && npm run -s build"
23
+ },
9
24
  "repository": {
10
25
  "type": "git",
11
26
  "url": "https://github.com/iTwin/viewer-components-react/tree/master/packages/itwin/map-layers"
@@ -24,28 +39,28 @@
24
39
  "@itwin/itwinui-icons-color-react": "^2.1.0",
25
40
  "@itwin/itwinui-icons-react": "^2.6.0",
26
41
  "classnames": "^2.3.1",
27
- "react-beautiful-dnd": "^13.0.0"
42
+ "react-beautiful-dnd": "^13.1.1"
28
43
  },
29
44
  "devDependencies": {
30
- "@itwin/appui-abstract": "^4.1.3",
45
+ "@itwin/appui-abstract": "^4.3.0",
31
46
  "@itwin/appui-layout-react": "^4.0.1",
32
47
  "@itwin/appui-react": "^4.0.1",
33
- "@itwin/build-tools": "^4.1.2",
48
+ "@itwin/build-tools": "^4.3.0",
34
49
  "@itwin/components-react": "^4.0.1",
35
- "@itwin/core-bentley": "^4.1.2",
36
- "@itwin/core-common": "^4.1.2",
37
- "@itwin/core-frontend": "^4.1.2",
38
- "@itwin/core-geometry": "^4.1.2",
39
- "@itwin/core-orbitgt": "^4.1.2",
40
- "@itwin/core-quantity": "^4.1.2",
50
+ "@itwin/core-bentley": "^4.3.0",
51
+ "@itwin/core-common": "^4.3.0",
52
+ "@itwin/core-frontend": "^4.3.0",
53
+ "@itwin/core-geometry": "^4.3.0",
54
+ "@itwin/core-orbitgt": "^4.3.0",
55
+ "@itwin/core-quantity": "^4.3.0",
41
56
  "@itwin/core-react": "^4.0.1",
42
- "@itwin/core-telemetry": "^4.1.2",
57
+ "@itwin/core-telemetry": "^4.3.0",
43
58
  "@itwin/eslint-plugin": "^4.0.0-dev.38",
44
59
  "@itwin/imodel-components-react": "^4.0.1",
45
60
  "@itwin/itwinui-variables": "^2.0.0",
46
61
  "@itwin/itwinui-react": "^2.11.2",
47
- "@itwin/map-layers-formats": "^4.1.2",
48
- "@itwin/webgl-compatibility": "^4.1.2",
62
+ "@itwin/map-layers-formats": "^4.3.0",
63
+ "@itwin/webgl-compatibility": "^4.3.0",
49
64
  "@testing-library/dom": "^8.12.0",
50
65
  "@testing-library/react": "^12.0.0",
51
66
  "@testing-library/react-hooks": "^7.0.2",
@@ -54,41 +69,46 @@
54
69
  "@types/chai": "4.3.5",
55
70
  "@types/jsdom-global": "^3.0.4",
56
71
  "@types/enzyme": "3.9.3",
57
- "@types/mocha": "^8.2.2",
72
+ "@types/mocha": "^10.0.6",
58
73
  "@types/node": "^18.11.5",
59
74
  "@types/react": "^17.0.37",
60
75
  "@types/react-beautiful-dnd": "^12.1.2",
61
- "@types/sinon": "^9.0.0",
62
- "@types/sinon-chai": "^3.2.0",
76
+ "@types/sinon": "^17.0.2",
77
+ "@types/sinon-chai": "^3.2.12",
63
78
  "@wojtekmaj/enzyme-adapter-react-17": "^0.6.3",
64
79
  "chai": "^4.3.7",
65
80
  "chai-as-promised": "^7",
81
+ "chai-jest-snapshot": "^2.0.0",
66
82
  "chai-spies": "1.0.0",
67
83
  "cpx2": "^3.0.0",
68
84
  "enzyme": "3.10.0",
69
85
  "enzyme-to-json": "^3.3.4",
70
86
  "eslint": "^8.41.0",
71
- "eslint-plugin-deprecation": "^1.2.1",
87
+ "eslint-plugin-deprecation": "^2.0.0",
72
88
  "eslint-plugin-import": "^2.27.5",
73
89
  "eslint-plugin-jam3": "^0.2.3",
74
90
  "eslint-plugin-jsx-a11y": "^6.7.1",
75
91
  "eslint-plugin-node": "^11.1.0",
76
92
  "eslint-plugin-prefer-arrow": "^1.2.3",
77
- "eslint-plugin-react": "^7.25.1",
78
- "eslint-plugin-react-hooks": "^4.2.0",
93
+ "eslint-plugin-react": "^7.33.2",
94
+ "eslint-plugin-react-hooks": "^4.6.0",
95
+ "ignore-styles": "^5.0.1",
79
96
  "jsdom": "^22.1.0",
80
- "jsdom-global": "3.0.2",
81
- "mocha": "^10.0.0",
97
+ "jsdom-global": "^3.0.2",
98
+ "mocha": "^10.2.0",
82
99
  "nyc": "^15.1.0",
83
- "react": "^17.0.0",
84
- "react-dom": "^17.0.0",
100
+ "raf": "^3.4.1",
101
+ "react": "^17.0.2",
102
+ "react-dom": "^17.0.2",
85
103
  "react-redux": "^7.2.2",
86
104
  "redux": "^4.1.0",
87
105
  "rimraf": "^3.0.2",
88
- "sinon": "^9.0.2",
89
- "sinon-chai": "^3.2.0",
106
+ "sinon": "^17.0.1",
107
+ "sinon-chai": "^3.7.0",
108
+ "source-map-support": "^0.5.6",
109
+ "ts-node": "^10.9.1",
90
110
  "typemoq": "^2.1.0",
91
- "typescript": "~4.5.5"
111
+ "typescript": "~4.6.0"
92
112
  },
93
113
  "peerDependencies": {
94
114
  "@itwin/appui-abstract": "^4.0.0",
@@ -126,7 +146,6 @@
126
146
  "scripts/copy-test-setup.js",
127
147
  "raf/polyfill",
128
148
  "source-map-support/register",
129
- "jsdom-global/register",
130
149
  "ignore-styles"
131
150
  ],
132
151
  "checkLeaks": true,
@@ -143,21 +162,5 @@
143
162
  "reporterOptions": [
144
163
  "mochaFile=lib/test/junit_results.xml"
145
164
  ]
146
- },
147
- "scripts": {
148
- "build": "npm run -s copy:locale && npm run -s build:cjs && npm run -s build:esm",
149
- "build:cjs": "tsc 1>&2 --outDir lib/cjs && npm run -s copy:cjs",
150
- "build:esm": "tsc 1>&2 --module ES2020 --outDir lib/esm && npm run -s copy:esm",
151
- "clean": "rimraf lib .rush/temp/package-deps*.json",
152
- "copy:locale": "cpx \"./src/public/**/*\" ./lib/public",
153
- "copy:cjs": "cpx \"./src/**/*.{*css,json,svg}\" \"./lib/cjs\"",
154
- "copy:esm": "cpx \"./src/**/*.{*css,json,svg}\" \"./lib/esm\"",
155
- "cover": "nyc npm -s test",
156
- "docs": "",
157
- "lint": "eslint -f visualstudio \"./src/**/*.{ts,tsx}\" 1>&2",
158
- "pseudolocalize": "betools pseudolocalize --englishDir=./src/public/locales/en --out=./src/public/locales/en-PSEUDO",
159
- "test": "mocha \"./lib/cjs/test/**/*.test.js\"",
160
- "rebuild": "npm run -s clean && npm run -s build"
161
- },
162
- "readme": "# MapLayers Extension/Package\n\nCopyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.\n\nAn iTwin.js Extension that adds a widget for attaching and updating map attachments in a view:\n\nThis extension serves as an example of a extension that can be added to iTwin.js host applications.\nSee <http://itwinjs.org> for comprehensive documentation on the iTwin.js API and the various constructs used in this sample.\n\nThis package can also be installed into an application and the method MapLayersUI.initialized() called during the host IModelApps initialize processing.\n\n## Development Setup\n\n1. Select and prepare an iTwin.js host application. You can use the [ui-test-app] to host the extension, for example.\n2. The dependencies are installed as part of \"rush install\" in the iTwin.js repository.\n3. Build the extension as part of the \"rush build\" in the iTwin.js repository, or separately build using the npm build command.\n\n ```sh\n npm run build\n ```\n\n4. Start the host application - go to its directory and run:\n\n ```sh\n npm run start:servers\n ```\n\n5. Open a web browser (e.g., Chrome), and browse to http://localhost:3000. \n\n## Contributing\n\n[Contributing to iTwin.js](https://github.com/iTwin/itwinjs-core/blob/master/CONTRIBUTING.md)\n"
163
- }
165
+ }
166
+ }