@itwin/editor-frontend 5.9.0-dev.8 → 5.10.0-dev.1
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 +16 -1
- package/lib/cjs/UndoRedoTool.d.ts.map +1 -1
- package/lib/cjs/UndoRedoTool.js +4 -3
- package/lib/cjs/UndoRedoTool.js.map +1 -1
- package/lib/esm/UndoRedoTool.d.ts.map +1 -1
- package/lib/esm/UndoRedoTool.js +4 -3
- package/lib/esm/UndoRedoTool.js.map +1 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
# Change Log - @itwin/editor-frontend
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 23 Apr 2026 18:06:53 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 5.8.4
|
|
6
|
+
Thu, 23 Apr 2026 18:05:14 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 5.8.3
|
|
11
|
+
Thu, 23 Apr 2026 14:52:42 GMT
|
|
12
|
+
|
|
13
|
+
_Version update only_
|
|
14
|
+
|
|
15
|
+
## 5.8.2
|
|
16
|
+
Thu, 16 Apr 2026 11:05:01 GMT
|
|
17
|
+
|
|
18
|
+
_Version update only_
|
|
4
19
|
|
|
5
20
|
## 5.8.1
|
|
6
21
|
Fri, 10 Apr 2026 13:02:00 GMT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UndoRedoTool.d.ts","sourceRoot":"","sources":["../../src/UndoRedoTool.ts"],"names":[],"mappings":"AAKA;;GAEG;AAEH,OAAO,EAAqB,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;GAEG;AACH,qBAAa,WAAY,SAAQ,IAAI;IACnC,OAAuB,MAAM,SAAa;IACpB,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"UndoRedoTool.d.ts","sourceRoot":"","sources":["../../src/UndoRedoTool.ts"],"names":[],"mappings":"AAKA;;GAEG;AAEH,OAAO,EAAqB,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;GAEG;AACH,qBAAa,WAAY,SAAQ,IAAI;IACnC,OAAuB,MAAM,SAAa;IACpB,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC;CAU9C;AAED;;GAEG;AACH,qBAAa,QAAS,SAAQ,IAAI;IAChC,OAAuB,MAAM,SAAU;IACjB,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC;CAI9C;AAED;;GAEG;AACH,qBAAa,QAAS,SAAQ,IAAI;IAChC,OAAuB,MAAM,SAAU;IACjB,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC;CAI9C"}
|
package/lib/cjs/UndoRedoTool.js
CHANGED
|
@@ -16,10 +16,11 @@ class UndoAllTool extends core_frontend_1.Tool {
|
|
|
16
16
|
static toolId = "UndoAll";
|
|
17
17
|
async run() {
|
|
18
18
|
const imodel = core_frontend_1.IModelApp.viewManager.selectedView?.view.iModel;
|
|
19
|
-
if (undefined === imodel || imodel.isReadonly || !imodel.isBriefcaseConnection)
|
|
19
|
+
if (undefined === imodel || imodel.isReadonly || !imodel.isBriefcaseConnection())
|
|
20
20
|
return true;
|
|
21
|
-
await core_frontend_1.
|
|
22
|
-
|
|
21
|
+
if (!await core_frontend_1.IModelApp.toolAdmin.finishEditCommandForTxnOperation())
|
|
22
|
+
return false;
|
|
23
|
+
return core_frontend_1.IpcApp.appFunctionIpc.reverseAllTxn(imodel.key).then(() => true).catch(() => false);
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
exports.UndoAllTool = UndoAllTool;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UndoRedoTool.js","sourceRoot":"","sources":["../../src/UndoRedoTool.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F;;GAEG;AAEH,wDAA+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CAAC;;AALH,4BAMC;AAED;;GAEG;AACH,MAAa,QAAS,SAAQ,oBAAI;IACzB,MAAM,CAAU,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,GAAG;QACvB,MAAM,yBAAS,CAAC,SAAS,CAAC,eAAe,EAAE,CAAC;QAC5C,OAAO,IAAI,CAAC;IACd,CAAC;;AALH,4BAMC","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\r\n/** @packageDocumentation\r\n * @module Editing\r\n */\r\n\r\nimport { IModelApp, IpcApp, Tool } from \"@itwin/core-frontend\";\r\n\r\n/** Undo all element changes\r\n * @beta\r\n */\r\nexport class UndoAllTool extends Tool {\r\n public static override toolId = \"UndoAll\";\r\n public override async run(): Promise<boolean> {\r\n const imodel = IModelApp.viewManager.selectedView?.view.iModel;\r\n if (undefined === imodel || imodel.isReadonly || !imodel.isBriefcaseConnection())\r\n return true;\r\n\r\n if (!await IModelApp.toolAdmin.finishEditCommandForTxnOperation())\r\n return false;\r\n\r\n return IpcApp.appFunctionIpc.reverseAllTxn(imodel.key).then(() => true).catch(() => false);\r\n }\r\n}\r\n\r\n/** Undo active tool steps, or element changes\r\n * @beta\r\n */\r\nexport class UndoTool extends Tool {\r\n public static override toolId = \"Undo\";\r\n public override async run(): Promise<boolean> {\r\n await IModelApp.toolAdmin.doUndoOperation();\r\n return true;\r\n }\r\n}\r\n\r\n/** Redo active tool steps, or element changes\r\n * @beta\r\n */\r\nexport class RedoTool extends Tool {\r\n public static override toolId = \"Redo\";\r\n public override async run(): Promise<boolean> {\r\n await IModelApp.toolAdmin.doRedoOperation();\r\n return true;\r\n }\r\n}\r\n\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UndoRedoTool.d.ts","sourceRoot":"","sources":["../../src/UndoRedoTool.ts"],"names":[],"mappings":"AAKA;;GAEG;AAEH,OAAO,EAAqB,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;GAEG;AACH,qBAAa,WAAY,SAAQ,IAAI;IACnC,OAAuB,MAAM,SAAa;IACpB,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"UndoRedoTool.d.ts","sourceRoot":"","sources":["../../src/UndoRedoTool.ts"],"names":[],"mappings":"AAKA;;GAEG;AAEH,OAAO,EAAqB,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;GAEG;AACH,qBAAa,WAAY,SAAQ,IAAI;IACnC,OAAuB,MAAM,SAAa;IACpB,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC;CAU9C;AAED;;GAEG;AACH,qBAAa,QAAS,SAAQ,IAAI;IAChC,OAAuB,MAAM,SAAU;IACjB,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC;CAI9C;AAED;;GAEG;AACH,qBAAa,QAAS,SAAQ,IAAI;IAChC,OAAuB,MAAM,SAAU;IACjB,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC;CAI9C"}
|
package/lib/esm/UndoRedoTool.js
CHANGED
|
@@ -13,10 +13,11 @@ export class UndoAllTool extends Tool {
|
|
|
13
13
|
static toolId = "UndoAll";
|
|
14
14
|
async run() {
|
|
15
15
|
const imodel = IModelApp.viewManager.selectedView?.view.iModel;
|
|
16
|
-
if (undefined === imodel || imodel.isReadonly || !imodel.isBriefcaseConnection)
|
|
16
|
+
if (undefined === imodel || imodel.isReadonly || !imodel.isBriefcaseConnection())
|
|
17
17
|
return true;
|
|
18
|
-
await
|
|
19
|
-
|
|
18
|
+
if (!await IModelApp.toolAdmin.finishEditCommandForTxnOperation())
|
|
19
|
+
return false;
|
|
20
|
+
return IpcApp.appFunctionIpc.reverseAllTxn(imodel.key).then(() => true).catch(() => false);
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
/** Undo active tool steps, or element changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UndoRedoTool.js","sourceRoot":"","sources":["../../src/UndoRedoTool.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,IAAI;IAC5B,MAAM,CAAU,MAAM,GAAG,SAAS,CAAC;IAC1B,KAAK,CAAC,GAAG;QACvB,MAAM,MAAM,GAAG,SAAS,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,CAAC,MAAM,CAAC;QAC/D,IAAI,SAAS,KAAK,MAAM,IAAI,MAAM,CAAC,UAAU,IAAI,CAAC,MAAM,CAAC,qBAAqB;
|
|
1
|
+
{"version":3,"file":"UndoRedoTool.js","sourceRoot":"","sources":["../../src/UndoRedoTool.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,IAAI;IAC5B,MAAM,CAAU,MAAM,GAAG,SAAS,CAAC;IAC1B,KAAK,CAAC,GAAG;QACvB,MAAM,MAAM,GAAG,SAAS,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,CAAC,MAAM,CAAC;QAC/D,IAAI,SAAS,KAAK,MAAM,IAAI,MAAM,CAAC,UAAU,IAAI,CAAC,MAAM,CAAC,qBAAqB,EAAE;YAC9E,OAAO,IAAI,CAAC;QAEd,IAAI,CAAC,MAAM,SAAS,CAAC,SAAS,CAAC,gCAAgC,EAAE;YAC/D,OAAO,KAAK,CAAC;QAEf,OAAO,MAAM,CAAC,cAAc,CAAC,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;IAC7F,CAAC;;AAGH;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,IAAI;IACzB,MAAM,CAAU,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,GAAG;QACvB,MAAM,SAAS,CAAC,SAAS,CAAC,eAAe,EAAE,CAAC;QAC5C,OAAO,IAAI,CAAC;IACd,CAAC;;AAGH;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,IAAI;IACzB,MAAM,CAAU,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,GAAG;QACvB,MAAM,SAAS,CAAC,SAAS,CAAC,eAAe,EAAE,CAAC;QAC5C,OAAO,IAAI,CAAC;IACd,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\r\n/** @packageDocumentation\r\n * @module Editing\r\n */\r\n\r\nimport { IModelApp, IpcApp, Tool } from \"@itwin/core-frontend\";\r\n\r\n/** Undo all element changes\r\n * @beta\r\n */\r\nexport class UndoAllTool extends Tool {\r\n public static override toolId = \"UndoAll\";\r\n public override async run(): Promise<boolean> {\r\n const imodel = IModelApp.viewManager.selectedView?.view.iModel;\r\n if (undefined === imodel || imodel.isReadonly || !imodel.isBriefcaseConnection())\r\n return true;\r\n\r\n if (!await IModelApp.toolAdmin.finishEditCommandForTxnOperation())\r\n return false;\r\n\r\n return IpcApp.appFunctionIpc.reverseAllTxn(imodel.key).then(() => true).catch(() => false);\r\n }\r\n}\r\n\r\n/** Undo active tool steps, or element changes\r\n * @beta\r\n */\r\nexport class UndoTool extends Tool {\r\n public static override toolId = \"Undo\";\r\n public override async run(): Promise<boolean> {\r\n await IModelApp.toolAdmin.doUndoOperation();\r\n return true;\r\n }\r\n}\r\n\r\n/** Redo active tool steps, or element changes\r\n * @beta\r\n */\r\nexport class RedoTool extends Tool {\r\n public static override toolId = \"Redo\";\r\n public override async run(): Promise<boolean> {\r\n await IModelApp.toolAdmin.doRedoOperation();\r\n return true;\r\n }\r\n}\r\n\r\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/editor-frontend",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.10.0-dev.1",
|
|
4
4
|
"description": "iTwin.js frontend components",
|
|
5
5
|
"main": "lib/cjs/editor-frontend.js",
|
|
6
6
|
"module": "lib/esm/editor-frontend.js",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"url": "http://www.bentley.com"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@itwin/appui-abstract": "5.
|
|
27
|
-
"@itwin/core-bentley": "5.
|
|
28
|
-
"@itwin/core-common": "5.
|
|
29
|
-
"@itwin/core-
|
|
30
|
-
"@itwin/core-
|
|
26
|
+
"@itwin/appui-abstract": "5.10.0-dev.1",
|
|
27
|
+
"@itwin/core-bentley": "5.10.0-dev.1",
|
|
28
|
+
"@itwin/core-common": "5.10.0-dev.1",
|
|
29
|
+
"@itwin/core-geometry": "5.10.0-dev.1",
|
|
30
|
+
"@itwin/core-frontend": "5.10.0-dev.1"
|
|
31
31
|
},
|
|
32
32
|
"//devDependencies": [
|
|
33
33
|
"NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install",
|
|
@@ -39,20 +39,20 @@
|
|
|
39
39
|
"eslint": "^9.31.0",
|
|
40
40
|
"rimraf": "^6.0.1",
|
|
41
41
|
"typescript": "~5.6.2",
|
|
42
|
-
"@itwin/
|
|
43
|
-
"@itwin/build-tools": "5.
|
|
44
|
-
"@itwin/core-common": "5.
|
|
45
|
-
"@itwin/
|
|
46
|
-
"@itwin/core-bentley": "5.
|
|
47
|
-
"@itwin/core-frontend": "5.
|
|
48
|
-
"@itwin/core-geometry": "5.
|
|
42
|
+
"@itwin/certa": "5.10.0-dev.1",
|
|
43
|
+
"@itwin/build-tools": "5.10.0-dev.1",
|
|
44
|
+
"@itwin/core-common": "5.10.0-dev.1",
|
|
45
|
+
"@itwin/appui-abstract": "5.10.0-dev.1",
|
|
46
|
+
"@itwin/core-bentley": "5.10.0-dev.1",
|
|
47
|
+
"@itwin/core-frontend": "5.10.0-dev.1",
|
|
48
|
+
"@itwin/core-geometry": "5.10.0-dev.1"
|
|
49
49
|
},
|
|
50
50
|
"//dependencies": [
|
|
51
51
|
"NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API",
|
|
52
52
|
"NOTE: editor-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"
|
|
53
53
|
],
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@itwin/editor-common": "5.
|
|
55
|
+
"@itwin/editor-common": "5.10.0-dev.1"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "npm run -s copy:locale && npm run -s build:cjs && npm run -s build:esm",
|