@itwin/unified-selection 1.0.0 → 1.1.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 +22 -0
- package/lib/cjs/package.json +1 -0
- package/lib/cjs/unified-selection/CachingHiliteSetProvider.d.ts +5 -5
- package/lib/cjs/unified-selection/CachingHiliteSetProvider.d.ts.map +1 -1
- package/lib/cjs/unified-selection/CachingHiliteSetProvider.js +5 -5
- package/lib/cjs/unified-selection/CachingHiliteSetProvider.js.map +1 -1
- package/lib/cjs/unified-selection/EnableUnifiedSelectionSyncWithIModel.d.ts +6 -6
- package/lib/cjs/unified-selection/EnableUnifiedSelectionSyncWithIModel.d.ts.map +1 -1
- package/lib/cjs/unified-selection/EnableUnifiedSelectionSyncWithIModel.js +14 -14
- package/lib/cjs/unified-selection/EnableUnifiedSelectionSyncWithIModel.js.map +1 -1
- package/lib/cjs/unified-selection/HiliteSetProvider.d.ts +5 -5
- package/lib/cjs/unified-selection/HiliteSetProvider.d.ts.map +1 -1
- package/lib/cjs/unified-selection/HiliteSetProvider.js +27 -25
- package/lib/cjs/unified-selection/HiliteSetProvider.js.map +1 -1
- package/lib/cjs/unified-selection/Selectable.d.ts +18 -18
- package/lib/cjs/unified-selection/Selectable.d.ts.map +1 -1
- package/lib/cjs/unified-selection/Selectable.js +17 -20
- package/lib/cjs/unified-selection/Selectable.js.map +1 -1
- package/lib/cjs/unified-selection/SelectionChangeEvent.d.ts +5 -5
- package/lib/cjs/unified-selection/SelectionChangeEvent.d.ts.map +1 -1
- package/lib/cjs/unified-selection/SelectionChangeEvent.js.map +1 -1
- package/lib/cjs/unified-selection/SelectionScope.d.ts +5 -5
- package/lib/cjs/unified-selection/SelectionScope.d.ts.map +1 -1
- package/lib/cjs/unified-selection/SelectionScope.js +9 -9
- package/lib/cjs/unified-selection/SelectionScope.js.map +1 -1
- package/lib/cjs/unified-selection/SelectionStorage.d.ts +5 -5
- package/lib/cjs/unified-selection/SelectionStorage.d.ts.map +1 -1
- package/lib/cjs/unified-selection/SelectionStorage.js +13 -13
- package/lib/cjs/unified-selection/SelectionStorage.js.map +1 -1
- package/lib/cjs/unified-selection/types/IModel.d.ts +4 -4
- package/lib/cjs/unified-selection/types/IModel.js.map +1 -1
- package/lib/cjs/unified-selection.d.ts +7 -7
- package/lib/cjs/unified-selection.d.ts.map +1 -1
- package/lib/cjs/unified-selection.js +11 -11
- package/lib/cjs/unified-selection.js.map +1 -1
- package/lib/esm/unified-selection/CachingHiliteSetProvider.d.ts +5 -5
- package/lib/esm/unified-selection/CachingHiliteSetProvider.d.ts.map +1 -1
- package/lib/esm/unified-selection/CachingHiliteSetProvider.js +3 -3
- package/lib/esm/unified-selection/CachingHiliteSetProvider.js.map +1 -1
- package/lib/esm/unified-selection/EnableUnifiedSelectionSyncWithIModel.d.ts +6 -6
- package/lib/esm/unified-selection/EnableUnifiedSelectionSyncWithIModel.d.ts.map +1 -1
- package/lib/esm/unified-selection/EnableUnifiedSelectionSyncWithIModel.js +5 -5
- package/lib/esm/unified-selection/EnableUnifiedSelectionSyncWithIModel.js.map +1 -1
- package/lib/esm/unified-selection/HiliteSetProvider.d.ts +5 -5
- package/lib/esm/unified-selection/HiliteSetProvider.d.ts.map +1 -1
- package/lib/esm/unified-selection/HiliteSetProvider.js +17 -15
- package/lib/esm/unified-selection/HiliteSetProvider.js.map +1 -1
- package/lib/esm/unified-selection/Selectable.d.ts +18 -18
- package/lib/esm/unified-selection/Selectable.d.ts.map +1 -1
- package/lib/esm/unified-selection/Selectable.js +17 -20
- package/lib/esm/unified-selection/Selectable.js.map +1 -1
- package/lib/esm/unified-selection/SelectionChangeEvent.d.ts +5 -5
- package/lib/esm/unified-selection/SelectionChangeEvent.d.ts.map +1 -1
- package/lib/esm/unified-selection/SelectionChangeEvent.js.map +1 -1
- package/lib/esm/unified-selection/SelectionScope.d.ts +5 -5
- package/lib/esm/unified-selection/SelectionScope.d.ts.map +1 -1
- package/lib/esm/unified-selection/SelectionScope.js +2 -2
- package/lib/esm/unified-selection/SelectionScope.js.map +1 -1
- package/lib/esm/unified-selection/SelectionStorage.d.ts +5 -5
- package/lib/esm/unified-selection/SelectionStorage.d.ts.map +1 -1
- package/lib/esm/unified-selection/SelectionStorage.js +3 -3
- package/lib/esm/unified-selection/SelectionStorage.js.map +1 -1
- package/lib/esm/unified-selection/types/IModel.d.ts +4 -4
- package/lib/esm/unified-selection/types/IModel.js.map +1 -1
- package/lib/esm/unified-selection.d.ts +7 -7
- package/lib/esm/unified-selection.d.ts.map +1 -1
- package/lib/esm/unified-selection.js +6 -6
- package/lib/esm/unified-selection.js.map +1 -1
- package/package.json +22 -14
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
export * from "./unified-selection/Selectable";
|
|
6
|
-
export { createStorage } from "./unified-selection/SelectionStorage";
|
|
7
|
-
export { createHiliteSetProvider } from "./unified-selection/HiliteSetProvider";
|
|
8
|
-
export { createCachingHiliteSetProvider } from "./unified-selection/CachingHiliteSetProvider";
|
|
9
|
-
export { computeSelection } from "./unified-selection/SelectionScope";
|
|
10
|
-
export { enableUnifiedSelectionSyncWithIModel } from "./unified-selection/EnableUnifiedSelectionSyncWithIModel";
|
|
5
|
+
export * from "./unified-selection/Selectable.js";
|
|
6
|
+
export { createStorage } from "./unified-selection/SelectionStorage.js";
|
|
7
|
+
export { createHiliteSetProvider } from "./unified-selection/HiliteSetProvider.js";
|
|
8
|
+
export { createCachingHiliteSetProvider } from "./unified-selection/CachingHiliteSetProvider.js";
|
|
9
|
+
export { computeSelection } from "./unified-selection/SelectionScope.js";
|
|
10
|
+
export { enableUnifiedSelectionSyncWithIModel } from "./unified-selection/EnableUnifiedSelectionSyncWithIModel.js";
|
|
11
11
|
//# sourceMappingURL=unified-selection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unified-selection.js","sourceRoot":"","sources":["../../src/unified-selection.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,cAAc,
|
|
1
|
+
{"version":3,"file":"unified-selection.js","sourceRoot":"","sources":["../../src/unified-selection.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,cAAc,mCAAmC,CAAC;AAClD,OAAO,EAAoB,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,uBAAuB,EAAgC,MAAM,0CAA0C,CAAC;AACjH,OAAO,EAAE,8BAA8B,EAA4B,MAAM,iDAAiD,CAAC;AAC3H,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,oCAAoC,EAAE,MAAM,6DAA6D,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n\nexport * from \"./unified-selection/Selectable.js\";\nexport { SelectionStorage, createStorage } from \"./unified-selection/SelectionStorage.js\";\nexport { createHiliteSetProvider, HiliteSet, HiliteSetProvider } from \"./unified-selection/HiliteSetProvider.js\";\nexport { createCachingHiliteSetProvider, CachingHiliteSetProvider } from \"./unified-selection/CachingHiliteSetProvider.js\";\nexport { computeSelection } from \"./unified-selection/SelectionScope.js\";\nexport { enableUnifiedSelectionSyncWithIModel } from \"./unified-selection/EnableUnifiedSelectionSyncWithIModel.js\";\nexport { StorageSelectionChangeType, StorageSelectionChangeEventArgs, StorageSelectionChangesListener } from \"./unified-selection/SelectionChangeEvent.js\";\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/unified-selection",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Package for managing unified selection in iTwin.js applications.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -24,47 +24,55 @@
|
|
|
24
24
|
"name": "Bentley Systems, Inc.",
|
|
25
25
|
"url": "http://www.bentley.com"
|
|
26
26
|
},
|
|
27
|
+
"type": "module",
|
|
27
28
|
"main": "lib/cjs/unified-selection.js",
|
|
29
|
+
"types": "lib/cjs/unified-selection",
|
|
28
30
|
"module": "lib/esm/unified-selection.js",
|
|
29
|
-
"
|
|
31
|
+
"exports": {
|
|
32
|
+
".": {
|
|
33
|
+
"import": "./lib/esm/unified-selection.js",
|
|
34
|
+
"require": "./lib/cjs/unified-selection.js"
|
|
35
|
+
},
|
|
36
|
+
"./package.json": "./package.json"
|
|
37
|
+
},
|
|
30
38
|
"dependencies": {
|
|
31
39
|
"@itwin/core-bentley": "^4.9.0",
|
|
32
40
|
"rxjs": "^7.8.1",
|
|
33
41
|
"rxjs-for-await": "^1.0.0",
|
|
34
|
-
"@itwin/presentation-shared": "^1.
|
|
42
|
+
"@itwin/presentation-shared": "^1.1.0"
|
|
35
43
|
},
|
|
36
44
|
"devDependencies": {
|
|
37
|
-
"@itwin/build-tools": "^4.
|
|
38
|
-
"@itwin/eslint-plugin": "
|
|
45
|
+
"@itwin/build-tools": "^4.10.0-dev.33",
|
|
46
|
+
"@itwin/eslint-plugin": "5.0.0-dev.1",
|
|
39
47
|
"@types/chai": "^4.3.16",
|
|
40
48
|
"@types/chai-as-promised": "^7.1.8",
|
|
41
49
|
"@types/mocha": "^10.0.7",
|
|
42
50
|
"@types/node": "^20.12.12",
|
|
43
51
|
"@types/sinon": "^17.0.3",
|
|
44
52
|
"@types/sinon-chai": "^3.2.12",
|
|
53
|
+
"c8": "^10.1.2",
|
|
45
54
|
"chai": "^4.4.1",
|
|
46
55
|
"chai-as-promised": "^7.1.2",
|
|
47
56
|
"cpx2": "^7.0.1",
|
|
48
|
-
"eslint": "^
|
|
49
|
-
"mocha": "^10.
|
|
50
|
-
"nyc": "^17.0.0",
|
|
57
|
+
"eslint": "^9.13.0",
|
|
58
|
+
"mocha": "^10.7.3",
|
|
51
59
|
"rimraf": "^6.0.1",
|
|
52
60
|
"sinon": "^18.0.0",
|
|
53
61
|
"sinon-chai": "^3.7.0",
|
|
54
|
-
"
|
|
62
|
+
"testdouble": "^3.20.2",
|
|
63
|
+
"typescript": "~5.6.3",
|
|
55
64
|
"presentation-build-tools": "^0.0.0",
|
|
56
65
|
"presentation-test-utilities": "^0.0.0"
|
|
57
66
|
},
|
|
58
67
|
"scripts": {
|
|
59
68
|
"build": "npm run -s build:cjs && npm run -s build:esm",
|
|
60
|
-
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
69
|
+
"build:cjs": "node ../../scripts/package-cjs.mjs ./lib/cjs && tsc -p tsconfig.cjs.json",
|
|
61
70
|
"build:esm": "tsc -p tsconfig.esm.json",
|
|
62
|
-
"build:watch": "npm run -s build:cjs -- -w",
|
|
63
71
|
"clean": "rimraf lib build",
|
|
64
|
-
"cover": "
|
|
72
|
+
"cover": "c8 npm -s test",
|
|
65
73
|
"lint": "eslint ./src/**/*.ts",
|
|
66
|
-
"test": "mocha --enable-source-maps --config ./.mocharc.json
|
|
67
|
-
"test
|
|
74
|
+
"test:dev": "mocha --enable-source-maps --config ./.mocharc.json",
|
|
75
|
+
"test": "npm run test:dev",
|
|
68
76
|
"extract-api": "extract-api --entry=unified-selection --apiReportFolder=./api --apiReportTempFolder=./api/temp --apiSummaryFolder=./api",
|
|
69
77
|
"check-internal": "node ../../scripts/checkInternal.js --apiSummary ./api/unified-selection.api.md",
|
|
70
78
|
"validate-markdowns": "node ../../scripts/validateMarkdowns.js README.md"
|