@itwin/core-extension 4.0.0-dev.99 → 4.0.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.
- package/CHANGELOG.md +19 -1
- package/index.d.ts +1 -1
- package/index.js +4 -6
- package/package.json +5 -4
- package/preview.js +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
# Change Log - @itwin/core-extension
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 22 May 2023 15:34:14 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 4.0.0
|
|
6
|
+
Mon, 22 May 2023 15:34:14 GMT
|
|
7
|
+
|
|
8
|
+
### Updates
|
|
9
|
+
|
|
10
|
+
- Update to eslint@8
|
|
11
|
+
- Add Viewport, DecorateContext, and readGltfGraphics to the extensions API.
|
|
12
|
+
|
|
13
|
+
## 3.7.6
|
|
14
|
+
Mon, 15 May 2023 18:23:40 GMT
|
|
15
|
+
|
|
16
|
+
_Version update only_
|
|
17
|
+
|
|
18
|
+
## 3.7.5
|
|
19
|
+
Thu, 04 May 2023 19:43:18 GMT
|
|
20
|
+
|
|
21
|
+
_Version update only_
|
|
4
22
|
|
|
5
23
|
## 3.7.4
|
|
6
24
|
Tue, 25 Apr 2023 17:50:35 GMT
|
package/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
// manually curated section
|
|
7
|
-
|
|
7
|
+
|
|
8
8
|
// these types are needed for ExtensionHost
|
|
9
9
|
import type {
|
|
10
10
|
ToolAdmin,
|
package/index.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis
|
|
7
7
|
const globalSymbol = Symbol.for("itwin.core.frontend.globals");
|
|
8
|
-
const ext = globalThis[globalSymbol].getExtensionApi(
|
|
8
|
+
const ext = globalThis[globalSymbol].getExtensionApi(import.meta.url);
|
|
9
9
|
|
|
10
|
-
// export extension stuff
|
|
11
|
-
export const { registerTool } = ext.api;
|
|
12
10
|
// exception for ExtensionHost
|
|
13
11
|
export const { ExtensionHost } = ext.exports;
|
|
14
12
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/core-extension",
|
|
3
|
-
"version": "4.0.0
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "iTwin.js Extension API",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"typings": "index.d.ts",
|
|
6
7
|
"license": "MIT",
|
|
7
8
|
"repository": {
|
|
@@ -21,15 +22,15 @@
|
|
|
21
22
|
"url": "http://www.bentley.com"
|
|
22
23
|
},
|
|
23
24
|
"dependencies": {
|
|
24
|
-
"@itwin/core-frontend": "4.0.0
|
|
25
|
-
"@itwin/core-common": "4.0.0
|
|
25
|
+
"@itwin/core-frontend": "4.0.0",
|
|
26
|
+
"@itwin/core-common": "4.0.0"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
28
29
|
"@itwin/eslint-plugin": "^4.0.0-dev.33",
|
|
29
30
|
"eslint": "^8.36.0",
|
|
30
31
|
"rimraf": "^3.0.2",
|
|
31
32
|
"typescript": "~5.0.2",
|
|
32
|
-
"@itwin/build-tools": "4.0.0
|
|
33
|
+
"@itwin/build-tools": "4.0.0"
|
|
33
34
|
},
|
|
34
35
|
"eslintConfig": {
|
|
35
36
|
"plugins": [
|
package/preview.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
1
6
|
const globalSymbol = Symbol.for("itwin.core.frontend.globals");
|
|
2
|
-
const ext = globalThis[globalSymbol].getExtensionApi(
|
|
7
|
+
const ext = globalThis[globalSymbol].getExtensionApi(import.meta.url);
|
|
3
8
|
|
|
4
9
|
// BEGIN GENERATED CODE
|
|
5
10
|
export const {
|