@itwin/core-extension 4.0.0-dev.99 → 4.1.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/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.1.0-dev.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.1.0-dev.2",
26
+ "@itwin/core-common": "4.1.0-dev.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.1.0-dev.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 {