@itwin/map-layers 6.0.0-dev.1 → 6.0.0-dev.2
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.
- package/lib/cjs/ui/hooks/useCrossOriginPopup.d.ts +7 -0
- package/lib/cjs/ui/hooks/useCrossOriginPopup.d.ts.map +1 -0
- package/lib/cjs/ui/hooks/useCrossOriginPopup.js +123 -0
- package/lib/cjs/ui/hooks/useCrossOriginPopup.js.map +1 -0
- package/lib/cjs/ui/hooks/useInterval.d.ts +7 -0
- package/lib/cjs/ui/hooks/useInterval.d.ts.map +1 -0
- package/lib/cjs/ui/hooks/useInterval.js +60 -0
- package/lib/cjs/ui/hooks/useInterval.js.map +1 -0
- package/lib/cjs/ui/hooks/useResizeObserver.d.ts +2 -0
- package/lib/cjs/ui/hooks/useResizeObserver.d.ts.map +1 -0
- package/lib/cjs/ui/hooks/useResizeObserver.js +66 -0
- package/lib/cjs/ui/hooks/useResizeObserver.js.map +1 -0
- package/lib/cjs/ui/widget/AttachLayerPopupButton.d.ts.map +1 -1
- package/lib/cjs/ui/widget/AttachLayerPopupButton.js +7 -1
- package/lib/cjs/ui/widget/AttachLayerPopupButton.js.map +1 -1
- package/lib/cjs/ui/widget/FeatureInfoWidget.d.ts.map +1 -1
- package/lib/cjs/ui/widget/FeatureInfoWidget.js +5 -4
- package/lib/cjs/ui/widget/FeatureInfoWidget.js.map +1 -1
- package/lib/cjs/ui/widget/MapLayerSettingsPopupButton.scss +2 -2
- package/lib/cjs/ui/widget/MapManagerSettings.d.ts.map +1 -1
- package/lib/cjs/ui/widget/MapManagerSettings.js +8 -6
- package/lib/cjs/ui/widget/MapManagerSettings.js.map +1 -1
- package/lib/cjs/ui/widget/MapUrlDialog.d.ts.map +1 -1
- package/lib/cjs/ui/widget/MapUrlDialog.js +2 -3
- package/lib/cjs/ui/widget/MapUrlDialog.js.map +1 -1
- package/lib/cjs/ui/widget/SubLayersTree.d.ts.map +1 -1
- package/lib/cjs/ui/widget/SubLayersTree.js +9 -11
- package/lib/cjs/ui/widget/SubLayersTree.js.map +1 -1
- package/lib/esm/ui/hooks/useCrossOriginPopup.d.ts +7 -0
- package/lib/esm/ui/hooks/useCrossOriginPopup.d.ts.map +1 -0
- package/lib/esm/ui/hooks/useCrossOriginPopup.js +96 -0
- package/lib/esm/ui/hooks/useCrossOriginPopup.js.map +1 -0
- package/lib/esm/ui/hooks/useInterval.d.ts +7 -0
- package/lib/esm/ui/hooks/useInterval.d.ts.map +1 -0
- package/lib/esm/ui/hooks/useInterval.js +33 -0
- package/lib/esm/ui/hooks/useInterval.js.map +1 -0
- package/lib/esm/ui/hooks/useResizeObserver.d.ts +2 -0
- package/lib/esm/ui/hooks/useResizeObserver.d.ts.map +1 -0
- package/lib/esm/ui/hooks/useResizeObserver.js +39 -0
- package/lib/esm/ui/hooks/useResizeObserver.js.map +1 -0
- package/lib/esm/ui/widget/AttachLayerPopupButton.d.ts.map +1 -1
- package/lib/esm/ui/widget/AttachLayerPopupButton.js +7 -1
- package/lib/esm/ui/widget/AttachLayerPopupButton.js.map +1 -1
- package/lib/esm/ui/widget/FeatureInfoWidget.d.ts.map +1 -1
- package/lib/esm/ui/widget/FeatureInfoWidget.js +5 -4
- package/lib/esm/ui/widget/FeatureInfoWidget.js.map +1 -1
- package/lib/esm/ui/widget/MapLayerSettingsPopupButton.scss +2 -2
- package/lib/esm/ui/widget/MapManagerSettings.d.ts.map +1 -1
- package/lib/esm/ui/widget/MapManagerSettings.js +9 -7
- package/lib/esm/ui/widget/MapManagerSettings.js.map +1 -1
- package/lib/esm/ui/widget/MapUrlDialog.d.ts.map +1 -1
- package/lib/esm/ui/widget/MapUrlDialog.js +1 -2
- package/lib/esm/ui/widget/MapUrlDialog.js.map +1 -1
- package/lib/esm/ui/widget/SubLayersTree.d.ts.map +1 -1
- package/lib/esm/ui/widget/SubLayersTree.js +10 -12
- package/lib/esm/ui/widget/SubLayersTree.js.map +1 -1
- package/package.json +18 -56
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/map-layers",
|
|
3
|
-
"version": "6.0.0-dev.
|
|
3
|
+
"version": "6.0.0-dev.2",
|
|
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",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"copy:locale": "cpx \"./src/public/**/*\" ./lib/public",
|
|
15
15
|
"copy:cjs": "cpx \"./src/**/*.{*css,json,svg}\" \"./lib/cjs\"",
|
|
16
16
|
"copy:esm": "cpx \"./src/**/*.{*css,json,svg}\" \"./lib/esm\"",
|
|
17
|
-
"cover": "
|
|
17
|
+
"cover": "vitest --run --coverage",
|
|
18
18
|
"docs": "",
|
|
19
19
|
"lint": "eslint -f visualstudio \"./src/**/*.{ts,tsx}\" 1>&2",
|
|
20
20
|
"lintfix": "eslint --fix -f visualstudio \"./src/**/*.{ts,tsx}\" 1>&2",
|
|
21
21
|
"pseudolocalize": "betools pseudolocalize --englishDir=./src/public/locales/en --out=./src/public/locales/en-PSEUDO",
|
|
22
|
-
"test": "
|
|
22
|
+
"test": "vitest --run",
|
|
23
23
|
"rebuild": "npm run -s clean && npm run -s build"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
@@ -43,44 +43,34 @@
|
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@itwin/appui-abstract": "^4.10.4",
|
|
46
|
-
"@itwin/appui-react": "^
|
|
46
|
+
"@itwin/appui-react": "^5.0.5",
|
|
47
47
|
"@itwin/build-tools": "^4.10.4",
|
|
48
|
-
"@itwin/components-react": "^
|
|
48
|
+
"@itwin/components-react": "^5.0.5",
|
|
49
49
|
"@itwin/core-bentley": "^4.10.4",
|
|
50
50
|
"@itwin/core-common": "^4.10.4",
|
|
51
51
|
"@itwin/core-frontend": "^4.10.4",
|
|
52
52
|
"@itwin/core-geometry": "^4.10.4",
|
|
53
53
|
"@itwin/core-orbitgt": "^4.10.4",
|
|
54
54
|
"@itwin/core-quantity": "^4.10.4",
|
|
55
|
-
"@itwin/core-react": "^
|
|
55
|
+
"@itwin/core-react": "^5.0.5",
|
|
56
56
|
"@itwin/core-telemetry": "^4.10.4",
|
|
57
57
|
"@itwin/eslint-plugin": "^5.0.0",
|
|
58
|
-
"@itwin/imodel-components-react": "^
|
|
58
|
+
"@itwin/imodel-components-react": "^5.0.5",
|
|
59
59
|
"@itwin/itwinui-react": "^3.16.5",
|
|
60
60
|
"@itwin/map-layers-formats": "^4.10.4",
|
|
61
61
|
"@itwin/webgl-compatibility": "^4.10.4",
|
|
62
62
|
"@testing-library/dom": "^10.4.0",
|
|
63
63
|
"@testing-library/react": "^16.2.0",
|
|
64
64
|
"@testing-library/react-hooks": "^8.0.1",
|
|
65
|
-
"@
|
|
66
|
-
"@typescript-eslint/parser": "^8.20.0",
|
|
67
|
-
"@types/chai": "4.3.5",
|
|
65
|
+
"@testing-library/user-event": "^14.6.1",
|
|
68
66
|
"@types/jsdom-global": "^3.0.4",
|
|
69
|
-
"@types/enzyme": "3.9.3",
|
|
70
|
-
"@types/mocha": "^10.0.6",
|
|
71
67
|
"@types/node": "^18.11.5",
|
|
72
68
|
"@types/react": "^18.3.2",
|
|
73
69
|
"@types/react-beautiful-dnd": "^13.1.8",
|
|
74
|
-
"@
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"chai": "^4.3.7",
|
|
78
|
-
"chai-as-promised": "^7",
|
|
79
|
-
"chai-jest-snapshot": "^2.0.0",
|
|
80
|
-
"chai-spies": "1.0.0",
|
|
70
|
+
"@typescript-eslint/eslint-plugin": "^8.20.0",
|
|
71
|
+
"@typescript-eslint/parser": "^8.20.0",
|
|
72
|
+
"@vitest/coverage-v8": "^2.1.1",
|
|
81
73
|
"cpx2": "^3.0.0",
|
|
82
|
-
"enzyme": "3.11.0",
|
|
83
|
-
"enzyme-to-json": "^3.3.4",
|
|
84
74
|
"eslint": "^9.18.0",
|
|
85
75
|
"eslint-config-prettier": "^10.0.1",
|
|
86
76
|
"eslint-plugin-import": "^2.31.0",
|
|
@@ -89,59 +79,31 @@
|
|
|
89
79
|
"ignore-styles": "^5.0.1",
|
|
90
80
|
"jsdom": "^22.1.0",
|
|
91
81
|
"jsdom-global": "^3.0.2",
|
|
92
|
-
"mocha": "^10.2.0",
|
|
93
|
-
"nyc": "^15.1.0",
|
|
94
82
|
"raf": "^3.4.1",
|
|
95
83
|
"react": "^18.2.7",
|
|
96
84
|
"react-dom": "^18.2.7",
|
|
97
85
|
"react-redux": "^7.2.2",
|
|
98
86
|
"redux": "^4.1.0",
|
|
99
87
|
"rimraf": "^3.0.2",
|
|
100
|
-
"
|
|
101
|
-
"sinon-chai": "^3.7.0",
|
|
88
|
+
"sass-embedded": "^1.85.0",
|
|
102
89
|
"source-map-support": "^0.5.6",
|
|
103
90
|
"ts-node": "^10.9.1",
|
|
104
91
|
"typemoq": "^2.1.0",
|
|
105
|
-
"typescript": "~5.4.0"
|
|
92
|
+
"typescript": "~5.4.0",
|
|
93
|
+
"vitest": "^2.1.1"
|
|
106
94
|
},
|
|
107
95
|
"peerDependencies": {
|
|
108
96
|
"@itwin/appui-abstract": "^4.10.4",
|
|
109
|
-
"@itwin/appui-react": "^4.17.6",
|
|
110
|
-
"@itwin/components-react": "^4.17.6",
|
|
97
|
+
"@itwin/appui-react": "^4.17.6 || ^5.0.0",
|
|
98
|
+
"@itwin/components-react": "^4.17.6 || ^5.0.0",
|
|
111
99
|
"@itwin/core-bentley": "^4.10.4",
|
|
112
100
|
"@itwin/core-common": "^4.10.4",
|
|
113
101
|
"@itwin/core-frontend": "^4.10.4",
|
|
114
|
-
"@itwin/core-react": "^4.17.6",
|
|
115
|
-
"@itwin/imodel-components-react": "^4.17.6",
|
|
102
|
+
"@itwin/core-react": "^4.17.6 || ^5.0.0",
|
|
103
|
+
"@itwin/imodel-components-react": "^4.17.6 || ^5.0.0",
|
|
116
104
|
"@itwin/itwinui-react": "^3.16.5",
|
|
117
105
|
"@itwin/map-layers-formats": "^4.10.4",
|
|
118
106
|
"react": "^17.0.0 || ^18.0.0",
|
|
119
107
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
120
|
-
},
|
|
121
|
-
"nyc": {
|
|
122
|
-
"extends": "./node_modules/@itwin/build-tools/.nycrc",
|
|
123
|
-
"check-coverage": false
|
|
124
|
-
},
|
|
125
|
-
"mocha": {
|
|
126
|
-
"require": [
|
|
127
|
-
"scripts/copy-test-setup.js",
|
|
128
|
-
"raf/polyfill",
|
|
129
|
-
"source-map-support/register",
|
|
130
|
-
"ignore-styles"
|
|
131
|
-
],
|
|
132
|
-
"checkLeaks": true,
|
|
133
|
-
"timeout": 60000,
|
|
134
|
-
"file": [
|
|
135
|
-
"lib/cjs/test/setup.js"
|
|
136
|
-
],
|
|
137
|
-
"exclude": [
|
|
138
|
-
"lib/cjs/test/coverage/**/*"
|
|
139
|
-
],
|
|
140
|
-
"reporter": [
|
|
141
|
-
"node_modules/@itwin/build-tools/mocha-reporter"
|
|
142
|
-
],
|
|
143
|
-
"reporterOptions": [
|
|
144
|
-
"mochaFile=lib/test/junit_results.xml"
|
|
145
|
-
]
|
|
146
108
|
}
|
|
147
109
|
}
|