@itwin/core-extension 4.0.0-dev.99 → 4.0.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/CHANGELOG.md CHANGED
@@ -1,6 +1,49 @@
1
1
  # Change Log - @itwin/core-extension
2
2
 
3
- This log was last generated on Tue, 25 Apr 2023 17:50:35 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 21 Jun 2023 22:04:43 GMT and should not be manually modified.
4
+
5
+ ## 4.0.2
6
+ Wed, 21 Jun 2023 22:04:43 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 4.0.1
11
+ Wed, 21 Jun 2023 20:29:13 GMT
12
+
13
+ _Version update only_
14
+
15
+ ## 4.0.0
16
+ Mon, 22 May 2023 15:34:14 GMT
17
+
18
+ ### Updates
19
+
20
+ - Update to eslint@8
21
+ - Add Viewport, DecorateContext, and readGltfGraphics to the extensions API.
22
+
23
+ ## 3.7.9
24
+ Tue, 20 Jun 2023 12:51:02 GMT
25
+
26
+ _Version update only_
27
+
28
+ ## 3.7.8
29
+ Thu, 01 Jun 2023 17:00:39 GMT
30
+
31
+ _Version update only_
32
+
33
+ ## 3.7.7
34
+ Wed, 24 May 2023 17:27:09 GMT
35
+
36
+ _Version update only_
37
+
38
+ ## 3.7.6
39
+ Mon, 15 May 2023 18:23:40 GMT
40
+
41
+ _Version update only_
42
+
43
+ ## 3.7.5
44
+ Thu, 04 May 2023 19:43:18 GMT
45
+
46
+ _Version update only_
4
47
 
5
48
  ## 3.7.4
6
49
  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
- export function registerTool(t: typeof import("@itwin/core-frontend").Tool): Promise<void>
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
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
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("import.meta.url");
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-dev.99",
3
+ "version": "4.0.2",
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-dev.99",
25
- "@itwin/core-common": "4.0.0-dev.99"
25
+ "@itwin/core-frontend": "4.0.2",
26
+ "@itwin/core-common": "4.0.2"
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-dev.99"
33
+ "@itwin/build-tools": "4.0.2"
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("import.meta.url");
7
+ const ext = globalThis[globalSymbol].getExtensionApi(import.meta.url);
3
8
 
4
9
  // BEGIN GENERATED CODE
5
10
  export const {