@itwin/editor-frontend 3.5.0-dev.26 → 3.5.0-dev.28

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.
@@ -1 +1 @@
1
- {"version":3,"file":"EditToolIpc.d.ts","sourceRoot":"","sources":["../../src/EditToolIpc.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,2BAA2B,EAAE,cAAc,EAAiB,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE3H;;GAEG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,cAAc,KAAK,gBAAgB,CAAC,CAAC,CAAC,CAO/E;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,+CAAiD,CAAC;AACnF;;EAEE;AACF,eAAO,MAAM,gBAAgB,2CAA6C,CAAC"}
1
+ {"version":3,"file":"EditToolIpc.d.ts","sourceRoot":"","sources":["../../src/EditToolIpc.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,2BAA2B,EAAE,cAAc,EAAiB,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE3H;;GAEG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,cAAc,KAAK,gBAAgB,CAAC,CAAC,CAAC,CAE/E;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,+CAAiD,CAAC;AACnF;;EAEE;AACF,eAAO,MAAM,gBAAgB,2CAA6C,CAAC"}
@@ -14,11 +14,7 @@ const editor_common_1 = require("@itwin/editor-common");
14
14
  * @alpha
15
15
  */
16
16
  function makeEditToolIpc() {
17
- return new Proxy({}, {
18
- get(_target, methodName) {
19
- return async (...args) => core_frontend_1.IpcApp.callIpcChannel(editor_common_1.editorChannel, "callMethod", methodName, ...args);
20
- },
21
- });
17
+ return core_frontend_1.IpcApp.makeIpcFunctionProxy(editor_common_1.editorChannel, "callMethod");
22
18
  }
23
19
  exports.makeEditToolIpc = makeEditToolIpc;
24
20
  /** Proxy for calling methods in `BasicManipulationCommandIpc`
@@ -1 +1 @@
1
- {"version":3,"file":"EditToolIpc.js","sourceRoot":"","sources":["../../src/EditToolIpc.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAGH,wDAA8C;AAC9C,wDAA2H;AAE3H;;GAEG;AACH,SAAgB,eAAe;IAC7B,OAAO,IAAI,KAAK,CAAC,EAAyB,EAAE;QAC1C,GAAG,CAAC,OAAO,EAAE,UAAkB;YAC7B,OAAO,KAAK,EAAE,GAAG,IAAW,EAAE,EAAE,CAC9B,sBAAM,CAAC,cAAc,CAAC,6BAAa,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,CAAC;QAC5E,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAPD,0CAOC;AAED;;GAEG;AACU,QAAA,oBAAoB,GAAG,eAAe,EAA+B,CAAC;AACnF;;EAEE;AACW,QAAA,gBAAgB,GAAG,eAAe,EAA2B,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Editing\r\n */\r\n\r\nimport { PickAsyncMethods } from \"@itwin/core-bentley\";\r\nimport { IpcApp } from \"@itwin/core-frontend\";\r\nimport { BasicManipulationCommandIpc, EditCommandIpc, editorChannel, SolidModelingCommandIpc } from \"@itwin/editor-common\";\r\n\r\n/** Create a type safe Proxy object to make IPC calls to methods of the current `EditCommand`\r\n * @alpha\r\n */\r\nexport function makeEditToolIpc<K extends EditCommandIpc>(): PickAsyncMethods<K> {\r\n return new Proxy({} as PickAsyncMethods<K>, {\r\n get(_target, methodName: string) {\r\n return async (...args: any[]) =>\r\n IpcApp.callIpcChannel(editorChannel, \"callMethod\", methodName, ...args);\r\n },\r\n });\r\n}\r\n\r\n/** Proxy for calling methods in `BasicManipulationCommandIpc`\r\n * @alpha\r\n */\r\nexport const basicManipulationIpc = makeEditToolIpc<BasicManipulationCommandIpc>();\r\n/** Proxy for calling methods in `SolidModelingCommandIpc`\r\n* @alpha\r\n*/\r\nexport const solidModelingIpc = makeEditToolIpc<SolidModelingCommandIpc>();\r\n"]}
1
+ {"version":3,"file":"EditToolIpc.js","sourceRoot":"","sources":["../../src/EditToolIpc.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAGH,wDAA8C;AAC9C,wDAA2H;AAE3H;;GAEG;AACH,SAAgB,eAAe;IAC7B,OAAO,sBAAM,CAAC,oBAAoB,CAAI,6BAAa,EAAE,YAAY,CAAC,CAAC;AACrE,CAAC;AAFD,0CAEC;AAED;;GAEG;AACU,QAAA,oBAAoB,GAAG,eAAe,EAA+B,CAAC;AACnF;;EAEE;AACW,QAAA,gBAAgB,GAAG,eAAe,EAA2B,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Editing\r\n */\r\n\r\nimport { PickAsyncMethods } from \"@itwin/core-bentley\";\r\nimport { IpcApp } from \"@itwin/core-frontend\";\r\nimport { BasicManipulationCommandIpc, EditCommandIpc, editorChannel, SolidModelingCommandIpc } from \"@itwin/editor-common\";\r\n\r\n/** Create a type safe Proxy object to make IPC calls to methods of the current `EditCommand`\r\n * @alpha\r\n */\r\nexport function makeEditToolIpc<K extends EditCommandIpc>(): PickAsyncMethods<K> {\r\n return IpcApp.makeIpcFunctionProxy<K>(editorChannel, \"callMethod\");\r\n}\r\n\r\n/** Proxy for calling methods in `BasicManipulationCommandIpc`\r\n * @alpha\r\n */\r\nexport const basicManipulationIpc = makeEditToolIpc<BasicManipulationCommandIpc>();\r\n/** Proxy for calling methods in `SolidModelingCommandIpc`\r\n* @alpha\r\n*/\r\nexport const solidModelingIpc = makeEditToolIpc<SolidModelingCommandIpc>();\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"EditToolIpc.d.ts","sourceRoot":"","sources":["../../src/EditToolIpc.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,2BAA2B,EAAE,cAAc,EAAiB,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE3H;;GAEG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,cAAc,KAAK,gBAAgB,CAAC,CAAC,CAAC,CAO/E;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,+CAAiD,CAAC;AACnF;;EAEE;AACF,eAAO,MAAM,gBAAgB,2CAA6C,CAAC"}
1
+ {"version":3,"file":"EditToolIpc.d.ts","sourceRoot":"","sources":["../../src/EditToolIpc.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,2BAA2B,EAAE,cAAc,EAAiB,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE3H;;GAEG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,cAAc,KAAK,gBAAgB,CAAC,CAAC,CAAC,CAE/E;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,+CAAiD,CAAC;AACnF;;EAEE;AACF,eAAO,MAAM,gBAAgB,2CAA6C,CAAC"}
@@ -11,11 +11,7 @@ import { editorChannel } from "@itwin/editor-common";
11
11
  * @alpha
12
12
  */
13
13
  export function makeEditToolIpc() {
14
- return new Proxy({}, {
15
- get(_target, methodName) {
16
- return async (...args) => IpcApp.callIpcChannel(editorChannel, "callMethod", methodName, ...args);
17
- },
18
- });
14
+ return IpcApp.makeIpcFunctionProxy(editorChannel, "callMethod");
19
15
  }
20
16
  /** Proxy for calling methods in `BasicManipulationCommandIpc`
21
17
  * @alpha
@@ -1 +1 @@
1
- {"version":3,"file":"EditToolIpc.js","sourceRoot":"","sources":["../../src/EditToolIpc.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAA+C,aAAa,EAA2B,MAAM,sBAAsB,CAAC;AAE3H;;GAEG;AACH,MAAM,UAAU,eAAe;IAC7B,OAAO,IAAI,KAAK,CAAC,EAAyB,EAAE;QAC1C,GAAG,CAAC,OAAO,EAAE,UAAkB;YAC7B,OAAO,KAAK,EAAE,GAAG,IAAW,EAAE,EAAE,CAC9B,MAAM,CAAC,cAAc,CAAC,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,CAAC;QAC5E,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,eAAe,EAA+B,CAAC;AACnF;;EAEE;AACF,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,EAA2B,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Editing\r\n */\r\n\r\nimport { PickAsyncMethods } from \"@itwin/core-bentley\";\r\nimport { IpcApp } from \"@itwin/core-frontend\";\r\nimport { BasicManipulationCommandIpc, EditCommandIpc, editorChannel, SolidModelingCommandIpc } from \"@itwin/editor-common\";\r\n\r\n/** Create a type safe Proxy object to make IPC calls to methods of the current `EditCommand`\r\n * @alpha\r\n */\r\nexport function makeEditToolIpc<K extends EditCommandIpc>(): PickAsyncMethods<K> {\r\n return new Proxy({} as PickAsyncMethods<K>, {\r\n get(_target, methodName: string) {\r\n return async (...args: any[]) =>\r\n IpcApp.callIpcChannel(editorChannel, \"callMethod\", methodName, ...args);\r\n },\r\n });\r\n}\r\n\r\n/** Proxy for calling methods in `BasicManipulationCommandIpc`\r\n * @alpha\r\n */\r\nexport const basicManipulationIpc = makeEditToolIpc<BasicManipulationCommandIpc>();\r\n/** Proxy for calling methods in `SolidModelingCommandIpc`\r\n* @alpha\r\n*/\r\nexport const solidModelingIpc = makeEditToolIpc<SolidModelingCommandIpc>();\r\n"]}
1
+ {"version":3,"file":"EditToolIpc.js","sourceRoot":"","sources":["../../src/EditToolIpc.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAA+C,aAAa,EAA2B,MAAM,sBAAsB,CAAC;AAE3H;;GAEG;AACH,MAAM,UAAU,eAAe;IAC7B,OAAO,MAAM,CAAC,oBAAoB,CAAI,aAAa,EAAE,YAAY,CAAC,CAAC;AACrE,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,eAAe,EAA+B,CAAC;AACnF;;EAEE;AACF,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,EAA2B,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Editing\r\n */\r\n\r\nimport { PickAsyncMethods } from \"@itwin/core-bentley\";\r\nimport { IpcApp } from \"@itwin/core-frontend\";\r\nimport { BasicManipulationCommandIpc, EditCommandIpc, editorChannel, SolidModelingCommandIpc } from \"@itwin/editor-common\";\r\n\r\n/** Create a type safe Proxy object to make IPC calls to methods of the current `EditCommand`\r\n * @alpha\r\n */\r\nexport function makeEditToolIpc<K extends EditCommandIpc>(): PickAsyncMethods<K> {\r\n return IpcApp.makeIpcFunctionProxy<K>(editorChannel, \"callMethod\");\r\n}\r\n\r\n/** Proxy for calling methods in `BasicManipulationCommandIpc`\r\n * @alpha\r\n */\r\nexport const basicManipulationIpc = makeEditToolIpc<BasicManipulationCommandIpc>();\r\n/** Proxy for calling methods in `SolidModelingCommandIpc`\r\n* @alpha\r\n*/\r\nexport const solidModelingIpc = makeEditToolIpc<SolidModelingCommandIpc>();\r\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/editor-frontend",
3
- "version": "3.5.0-dev.26",
3
+ "version": "3.5.0-dev.28",
4
4
  "description": "iTwin.js frontend components",
5
5
  "main": "lib/cjs/editor-frontend.js",
6
6
  "module": "lib/esm/editor-frontend.js",
@@ -22,25 +22,25 @@
22
22
  "url": "http://www.bentley.com"
23
23
  },
24
24
  "peerDependencies": {
25
- "@itwin/appui-abstract": "^3.5.0-dev.26",
26
- "@itwin/core-bentley": "^3.5.0-dev.26",
27
- "@itwin/core-common": "^3.5.0-dev.26",
28
- "@itwin/core-frontend": "^3.5.0-dev.26",
29
- "@itwin/core-geometry": "^3.5.0-dev.26"
25
+ "@itwin/appui-abstract": "^3.5.0-dev.28",
26
+ "@itwin/core-bentley": "^3.5.0-dev.28",
27
+ "@itwin/core-common": "^3.5.0-dev.28",
28
+ "@itwin/core-frontend": "^3.5.0-dev.28",
29
+ "@itwin/core-geometry": "^3.5.0-dev.28"
30
30
  },
31
31
  "//devDependencies": [
32
32
  "NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install",
33
33
  "NOTE: All tools used by scripts in this package must be listed as devDependencies"
34
34
  ],
35
35
  "devDependencies": {
36
- "@itwin/appui-abstract": "3.5.0-dev.26",
37
- "@itwin/build-tools": "3.5.0-dev.26",
38
- "@itwin/certa": "3.5.0-dev.26",
39
- "@itwin/core-bentley": "3.5.0-dev.26",
40
- "@itwin/core-common": "3.5.0-dev.26",
41
- "@itwin/core-frontend": "3.5.0-dev.26",
42
- "@itwin/core-geometry": "3.5.0-dev.26",
43
- "@itwin/eslint-plugin": "3.5.0-dev.26",
36
+ "@itwin/appui-abstract": "3.5.0-dev.28",
37
+ "@itwin/build-tools": "3.5.0-dev.28",
38
+ "@itwin/certa": "3.5.0-dev.28",
39
+ "@itwin/core-bentley": "3.5.0-dev.28",
40
+ "@itwin/core-common": "3.5.0-dev.28",
41
+ "@itwin/core-frontend": "3.5.0-dev.28",
42
+ "@itwin/core-geometry": "3.5.0-dev.28",
43
+ "@itwin/eslint-plugin": "3.5.0-dev.28",
44
44
  "cpx2": "^3.0.0",
45
45
  "eslint": "^7.11.0",
46
46
  "rimraf": "^3.0.2",
@@ -51,7 +51,7 @@
51
51
  "NOTE: editor-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"
52
52
  ],
53
53
  "dependencies": {
54
- "@itwin/editor-common": "3.5.0-dev.26"
54
+ "@itwin/editor-common": "3.5.0-dev.28"
55
55
  },
56
56
  "eslintConfig": {
57
57
  "plugins": [