@itwin/rpcinterface-full-stack-tests 3.3.0-dev.27 → 3.3.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.
@@ -171167,7 +171167,7 @@ SetupWalkCameraTool.iconSpec = "icon-camera-location";
171167
171167
  /*! exports provided: name, version, description, main, module, typings, license, scripts, repository, keywords, author, peerDependencies, //devDependencies, devDependencies, //dependencies, dependencies, nyc, eslintConfig, default */
171168
171168
  /***/ (function(module) {
171169
171169
 
171170
- module.exports = JSON.parse("{\"name\":\"@itwin/core-frontend\",\"version\":\"3.3.0-dev.27\",\"description\":\"iTwin.js frontend components\",\"main\":\"lib/cjs/core-frontend.js\",\"module\":\"lib/esm/core-frontend.js\",\"typings\":\"lib/cjs/core-frontend\",\"license\":\"MIT\",\"scripts\":{\"build\":\"npm run -s copy:public && npm run -s build:cjs\",\"build:ci\":\"npm run -s build && npm run -s build:esm\",\"build:cjs\":\"tsc 1>&2 --outDir lib/cjs\",\"build:esm\":\"tsc 1>&2 --module ES2020 --outDir lib/esm\",\"clean\":\"rimraf lib .rush/temp/package-deps*.json\",\"copy:public\":\"cpx \\\"./src/public/**/*\\\" ./lib/public\",\"docs\":\"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts\",\"extract-api\":\"betools extract-api --entry=core-frontend && npm run extract-extension-api\",\"extract-extension-api\":\"eslint --no-eslintrc -c \\\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\\" \\\"./src/**/*.ts\\\" 1>&2\",\"lint\":\"eslint -f visualstudio \\\"./src/**/*.ts\\\" 1>&2\",\"pseudolocalize\":\"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO\",\"test\":\"npm run -s webpackTests && certa -r chrome\",\"cover\":\"npm -s test\",\"test:debug\":\"certa -r chrome --debug\",\"webpackTests\":\"webpack --config ./src/test/utils/webpack.config.js 1>&2\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend\"},\"keywords\":[\"Bentley\",\"BIM\",\"iModel\",\"digital-twin\",\"iTwin\"],\"author\":{\"name\":\"Bentley Systems, Inc.\",\"url\":\"http://www.bentley.com\"},\"peerDependencies\":{\"@itwin/appui-abstract\":\"workspace:^3.3.0-dev.27\",\"@itwin/core-bentley\":\"workspace:^3.3.0-dev.27\",\"@itwin/core-common\":\"workspace:^3.3.0-dev.27\",\"@itwin/core-geometry\":\"workspace:^3.3.0-dev.27\",\"@itwin/core-orbitgt\":\"workspace:^3.3.0-dev.27\",\"@itwin/core-quantity\":\"workspace:^3.3.0-dev.27\",\"@itwin/webgl-compatibility\":\"workspace:^3.3.0-dev.27\"},\"//devDependencies\":[\"NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install\",\"NOTE: All tools used by scripts in this package must be listed as devDependencies\"],\"devDependencies\":{\"@itwin/appui-abstract\":\"workspace:*\",\"@itwin/build-tools\":\"workspace:*\",\"@itwin/core-bentley\":\"workspace:*\",\"@itwin/core-common\":\"workspace:*\",\"@itwin/core-geometry\":\"workspace:*\",\"@itwin/core-orbitgt\":\"workspace:*\",\"@itwin/core-quantity\":\"workspace:*\",\"@itwin/certa\":\"workspace:*\",\"@itwin/eslint-plugin\":\"workspace:*\",\"@itwin/webgl-compatibility\":\"workspace:*\",\"@types/chai\":\"^4.1.4\",\"@types/chai-as-promised\":\"^7\",\"@types/deep-assign\":\"^0.1.0\",\"@types/lodash\":\"^4.14.0\",\"@types/mocha\":\"^8.2.2\",\"@types/node\":\"16.11.7\",\"@types/qs\":\"^6.5.0\",\"@types/semver\":\"^5.5.0\",\"@types/superagent\":\"^4.1.14\",\"@types/sinon\":\"^9.0.0\",\"chai\":\"^4.1.2\",\"chai-as-promised\":\"^7\",\"cpx2\":\"^3.0.0\",\"eslint\":\"^7.11.0\",\"glob\":\"^7.1.2\",\"mocha\":\"^10.0.0\",\"nyc\":\"^15.1.0\",\"rimraf\":\"^3.0.2\",\"sinon\":\"^9.0.2\",\"source-map-loader\":\"^1.0.0\",\"typescript\":\"~4.4.0\",\"webpack\":\"4.42.0\"},\"//dependencies\":[\"NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API\",\"NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed\"],\"dependencies\":{\"@itwin/core-i18n\":\"workspace:*\",\"@itwin/core-telemetry\":\"workspace:*\",\"@loaders.gl/core\":\"^3.1.6\",\"@loaders.gl/draco\":\"^3.1.6\",\"deep-assign\":\"^2.0.0\",\"fuse.js\":\"^3.3.0\",\"lodash\":\"^4.17.10\",\"qs\":\"^6.5.1\",\"semver\":\"^5.5.0\",\"superagent\":\"^7.0.1\",\"wms-capabilities\":\"0.4.0\",\"xml-js\":\"~1.6.11\"},\"nyc\":{\"extends\":\"./node_modules/@itwin/build-tools/.nycrc\"},\"eslintConfig\":{\"plugins\":[\"@itwin\"],\"extends\":\"plugin:@itwin/itwinjs-recommended\",\"rules\":{\"@itwin/no-internal-barrel-imports\":[\"error\",{\"required-barrel-modules\":[\"./src/tile/internal.ts\"]}],\"@itwin/public-extension-exports\":[\"error\",{\"releaseTags\":[\"public\",\"preview\"],\"outputApiFile\":false}]},\"overrides\":[{\"files\":[\"*.test.ts\",\"*.test.tsx\",\"**/test/**/*.ts\"],\"rules\":{\"@itwin/no-internal-barrel-imports\":\"off\"}}]}}");
171170
+ module.exports = JSON.parse("{\"name\":\"@itwin/core-frontend\",\"version\":\"3.3.0-dev.28\",\"description\":\"iTwin.js frontend components\",\"main\":\"lib/cjs/core-frontend.js\",\"module\":\"lib/esm/core-frontend.js\",\"typings\":\"lib/cjs/core-frontend\",\"license\":\"MIT\",\"scripts\":{\"build\":\"npm run -s copy:public && npm run -s build:cjs\",\"build:ci\":\"npm run -s build && npm run -s build:esm\",\"build:cjs\":\"tsc 1>&2 --outDir lib/cjs\",\"build:esm\":\"tsc 1>&2 --module ES2020 --outDir lib/esm\",\"clean\":\"rimraf lib .rush/temp/package-deps*.json\",\"copy:public\":\"cpx \\\"./src/public/**/*\\\" ./lib/public\",\"docs\":\"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts\",\"extract-api\":\"betools extract-api --entry=core-frontend && npm run extract-extension-api\",\"extract-extension-api\":\"eslint --no-eslintrc -c \\\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\\" \\\"./src/**/*.ts\\\" 1>&2\",\"lint\":\"eslint -f visualstudio \\\"./src/**/*.ts\\\" 1>&2\",\"pseudolocalize\":\"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO\",\"test\":\"npm run -s webpackTests && certa -r chrome\",\"cover\":\"npm -s test\",\"test:debug\":\"certa -r chrome --debug\",\"webpackTests\":\"webpack --config ./src/test/utils/webpack.config.js 1>&2\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend\"},\"keywords\":[\"Bentley\",\"BIM\",\"iModel\",\"digital-twin\",\"iTwin\"],\"author\":{\"name\":\"Bentley Systems, Inc.\",\"url\":\"http://www.bentley.com\"},\"peerDependencies\":{\"@itwin/appui-abstract\":\"workspace:^3.3.0-dev.28\",\"@itwin/core-bentley\":\"workspace:^3.3.0-dev.28\",\"@itwin/core-common\":\"workspace:^3.3.0-dev.28\",\"@itwin/core-geometry\":\"workspace:^3.3.0-dev.28\",\"@itwin/core-orbitgt\":\"workspace:^3.3.0-dev.28\",\"@itwin/core-quantity\":\"workspace:^3.3.0-dev.28\",\"@itwin/webgl-compatibility\":\"workspace:^3.3.0-dev.28\"},\"//devDependencies\":[\"NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install\",\"NOTE: All tools used by scripts in this package must be listed as devDependencies\"],\"devDependencies\":{\"@itwin/appui-abstract\":\"workspace:*\",\"@itwin/build-tools\":\"workspace:*\",\"@itwin/core-bentley\":\"workspace:*\",\"@itwin/core-common\":\"workspace:*\",\"@itwin/core-geometry\":\"workspace:*\",\"@itwin/core-orbitgt\":\"workspace:*\",\"@itwin/core-quantity\":\"workspace:*\",\"@itwin/certa\":\"workspace:*\",\"@itwin/eslint-plugin\":\"workspace:*\",\"@itwin/webgl-compatibility\":\"workspace:*\",\"@types/chai\":\"^4.1.4\",\"@types/chai-as-promised\":\"^7\",\"@types/deep-assign\":\"^0.1.0\",\"@types/lodash\":\"^4.14.0\",\"@types/mocha\":\"^8.2.2\",\"@types/node\":\"16.11.7\",\"@types/qs\":\"^6.5.0\",\"@types/semver\":\"^5.5.0\",\"@types/superagent\":\"^4.1.14\",\"@types/sinon\":\"^9.0.0\",\"chai\":\"^4.1.2\",\"chai-as-promised\":\"^7\",\"cpx2\":\"^3.0.0\",\"eslint\":\"^7.11.0\",\"glob\":\"^7.1.2\",\"mocha\":\"^10.0.0\",\"nyc\":\"^15.1.0\",\"rimraf\":\"^3.0.2\",\"sinon\":\"^9.0.2\",\"source-map-loader\":\"^1.0.0\",\"typescript\":\"~4.4.0\",\"webpack\":\"4.42.0\"},\"//dependencies\":[\"NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API\",\"NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed\"],\"dependencies\":{\"@itwin/core-i18n\":\"workspace:*\",\"@itwin/core-telemetry\":\"workspace:*\",\"@loaders.gl/core\":\"^3.1.6\",\"@loaders.gl/draco\":\"^3.1.6\",\"deep-assign\":\"^2.0.0\",\"fuse.js\":\"^3.3.0\",\"lodash\":\"^4.17.10\",\"qs\":\"^6.5.1\",\"semver\":\"^5.5.0\",\"superagent\":\"^7.0.1\",\"wms-capabilities\":\"0.4.0\",\"xml-js\":\"~1.6.11\"},\"nyc\":{\"extends\":\"./node_modules/@itwin/build-tools/.nycrc\"},\"eslintConfig\":{\"plugins\":[\"@itwin\"],\"extends\":\"plugin:@itwin/itwinjs-recommended\",\"rules\":{\"@itwin/no-internal-barrel-imports\":[\"error\",{\"required-barrel-modules\":[\"./src/tile/internal.ts\"]}],\"@itwin/public-extension-exports\":[\"error\",{\"releaseTags\":[\"public\",\"preview\"],\"outputApiFile\":false}]},\"overrides\":[{\"files\":[\"*.test.ts\",\"*.test.tsx\",\"**/test/**/*.ts\"],\"rules\":{\"@itwin/no-internal-barrel-imports\":\"off\"}}]}}");
171171
171171
 
171172
171172
  /***/ }),
171173
171173
 
@@ -269831,7 +269831,7 @@ __webpack_require__.r(__webpack_exports__);
269831
269831
  /*!************************************************************************!*\
269832
269832
  !*** D:/vsts_a/1/s/presentation/common/lib/esm/presentation-common.js ***!
269833
269833
  \************************************************************************/
269834
- /*! exports provided: AsyncTasksTracker, DiagnosticsLogEntry, InstanceKey, ClassInfo, NavigationPropertyInfo, PropertyInfo, RelatedClassInfo, RelatedClassInfoWithOptionalRelationship, RelationshipPath, PresentationStatus, PresentationError, Key, KeySet, LabelCompositeValue, LabelDefinition, isSingleElementPropertiesRequestOptions, RegisteredRuleset, VariableValueTypes, RulesetVariable, RulesetsFactory, UPDATE_FULL, UpdateInfo, ExpandedNodeUpdateRecord, HierarchyUpdateRecord, HierarchyUpdateInfo, PartialHierarchyModification, HierarchyCompareInfo, getInstancesCount, DEFAULT_KEYS_BATCH_SIZE, PRESENTATION_COMMON_ROOT, PRESENTATION_IPC_CHANNEL_NAME, PresentationRpcInterface, PresentationIpcEvents, RpcRequestsHandler, CategoryDescription, Content, SelectClassInfo, ContentFlags, SortDirection, Descriptor, DefaultContentDisplayTypes, Field, PropertiesField, NestedContentField, getFieldByName, FieldDescriptorType, FieldDescriptor, Item, Property, PropertyValueFormat, Value, DisplayValue, NestedContentValue, DisplayValueGroup, traverseFieldHierarchy, traverseContent, traverseContentItem, createFieldHierarchies, addFieldHierarchy, FIELD_NAMES_SEPARATOR, applyOptionalPrefix, StandardNodeTypes, NodeKey, Node, NodePathElement, NodePathFilteringData, ChildNodeSpecificationTypes, QuerySpecificationTypes, GroupingSpecificationTypes, SameLabelInstanceGroupApplicationStage, PropertyGroupingValue, InstanceLabelOverrideValueSpecificationType, ContentSpecificationTypes, PropertyEditorParameterTypes, RelationshipMeaning, RelatedPropertiesSpecialValues, RelationshipDirection, RuleTypes, VariableValueType */
269834
+ /*! exports provided: AsyncTasksTracker, DiagnosticsLogEntry, InstanceKey, ClassInfo, NavigationPropertyInfo, PropertyInfo, RelatedClassInfo, RelatedClassInfoWithOptionalRelationship, RelationshipPath, PresentationStatus, PresentationError, Key, KeySet, LabelCompositeValue, LabelDefinition, isComputeSelectionRequestOptions, isSingleElementPropertiesRequestOptions, RegisteredRuleset, VariableValueTypes, RulesetVariable, RulesetsFactory, UPDATE_FULL, UpdateInfo, ExpandedNodeUpdateRecord, HierarchyUpdateRecord, HierarchyUpdateInfo, PartialHierarchyModification, HierarchyCompareInfo, getInstancesCount, DEFAULT_KEYS_BATCH_SIZE, PRESENTATION_COMMON_ROOT, PRESENTATION_IPC_CHANNEL_NAME, PresentationRpcInterface, PresentationIpcEvents, RpcRequestsHandler, CategoryDescription, Content, SelectClassInfo, ContentFlags, SortDirection, Descriptor, DefaultContentDisplayTypes, Field, PropertiesField, NestedContentField, getFieldByName, FieldDescriptorType, FieldDescriptor, Item, Property, PropertyValueFormat, Value, DisplayValue, NestedContentValue, DisplayValueGroup, traverseFieldHierarchy, traverseContent, traverseContentItem, createFieldHierarchies, addFieldHierarchy, FIELD_NAMES_SEPARATOR, applyOptionalPrefix, StandardNodeTypes, NodeKey, Node, NodePathElement, NodePathFilteringData, ChildNodeSpecificationTypes, QuerySpecificationTypes, GroupingSpecificationTypes, SameLabelInstanceGroupApplicationStage, PropertyGroupingValue, InstanceLabelOverrideValueSpecificationType, ContentSpecificationTypes, PropertyEditorParameterTypes, RelationshipMeaning, RelatedPropertiesSpecialValues, RelationshipDirection, RuleTypes, VariableValueType */
269835
269835
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
269836
269836
 
269837
269837
  "use strict";
@@ -269873,6 +269873,8 @@ __webpack_require__.r(__webpack_exports__);
269873
269873
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LabelDefinition", function() { return _presentation_common_LabelDefinition__WEBPACK_IMPORTED_MODULE_5__["LabelDefinition"]; });
269874
269874
 
269875
269875
  /* harmony import */ var _presentation_common_PresentationManagerOptions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./presentation-common/PresentationManagerOptions */ "../../presentation/common/lib/esm/presentation-common/PresentationManagerOptions.js");
269876
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isComputeSelectionRequestOptions", function() { return _presentation_common_PresentationManagerOptions__WEBPACK_IMPORTED_MODULE_6__["isComputeSelectionRequestOptions"]; });
269877
+
269876
269878
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isSingleElementPropertiesRequestOptions", function() { return _presentation_common_PresentationManagerOptions__WEBPACK_IMPORTED_MODULE_6__["isSingleElementPropertiesRequestOptions"]; });
269877
269879
 
269878
269880
  /* harmony import */ var _presentation_common_RegisteredRuleset__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./presentation-common/RegisteredRuleset */ "../../presentation/common/lib/esm/presentation-common/RegisteredRuleset.js");
@@ -271214,11 +271216,12 @@ const PRESENTATION_IPC_CHANNEL_NAME = "presentation-ipc-interface";
271214
271216
  /*!***************************************************************************************************!*\
271215
271217
  !*** D:/vsts_a/1/s/presentation/common/lib/esm/presentation-common/PresentationManagerOptions.js ***!
271216
271218
  \***************************************************************************************************/
271217
- /*! exports provided: isSingleElementPropertiesRequestOptions */
271219
+ /*! exports provided: isComputeSelectionRequestOptions, isSingleElementPropertiesRequestOptions */
271218
271220
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
271219
271221
 
271220
271222
  "use strict";
271221
271223
  __webpack_require__.r(__webpack_exports__);
271224
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isComputeSelectionRequestOptions", function() { return isComputeSelectionRequestOptions; });
271222
271225
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSingleElementPropertiesRequestOptions", function() { return isSingleElementPropertiesRequestOptions; });
271223
271226
  /*---------------------------------------------------------------------------------------------
271224
271227
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
@@ -271227,6 +271230,10 @@ __webpack_require__.r(__webpack_exports__);
271227
271230
  /** @packageDocumentation
271228
271231
  * @module Core
271229
271232
  */
271233
+ /** @internal */
271234
+ function isComputeSelectionRequestOptions(options) {
271235
+ return !!options.elementIds;
271236
+ }
271230
271237
  /**
271231
271238
  * Checks if supplied request options are for single or multiple element properties.
271232
271239
  * @beta
@@ -271287,13 +271294,12 @@ class PresentationRpcInterface extends _itwin_core_common__WEBPACK_IMPORTED_MODU
271287
271294
  async getDisplayLabelDefinition(_token, _options) { return this.forward(arguments); }
271288
271295
  async getPagedDisplayLabelDefinitions(_token, _options) { return this.forward(arguments); }
271289
271296
  async getSelectionScopes(_token, _options) { return this.forward(arguments); }
271290
- // TODO: need to enforce paging on this
271291
271297
  async computeSelection(_token, _options, _ids, _scopeId) { return this.forward(arguments); }
271292
271298
  }
271293
271299
  /** The immutable name of the interface. */
271294
271300
  PresentationRpcInterface.interfaceName = "PresentationRpcInterface"; // eslint-disable-line @typescript-eslint/naming-convention
271295
271301
  /** The semantic version of the interface. */
271296
- PresentationRpcInterface.interfaceVersion = "3.0.0";
271302
+ PresentationRpcInterface.interfaceVersion = "3.1.0";
271297
271303
  /** @alpha */
271298
271304
  var PresentationIpcEvents;
271299
271305
  (function (PresentationIpcEvents) {
@@ -271489,8 +271495,8 @@ class RpcRequestsHandler {
271489
271495
  async getSelectionScopes(options) {
271490
271496
  return this.request(this.rpcClient.getSelectionScopes.bind(this.rpcClient), options);
271491
271497
  }
271492
- async computeSelection(options, ids, scopeId) {
271493
- return this.request(this.rpcClient.computeSelection.bind(this.rpcClient), options, ids, scopeId);
271498
+ async computeSelection(options) {
271499
+ return this.request(this.rpcClient.computeSelection.bind(this.rpcClient), options);
271494
271500
  }
271495
271501
  }
271496
271502
  function isOptionsWithRuleset(options) {
@@ -275164,7 +275170,7 @@ __webpack_require__.r(__webpack_exports__);
275164
275170
  /*!****************************************************************************!*\
275165
275171
  !*** D:/vsts_a/1/s/presentation/frontend/lib/esm/presentation-frontend.js ***!
275166
275172
  \****************************************************************************/
275167
- /*! exports provided: Presentation, PresentationManager, buildPagedArrayResponse, RulesetManagerImpl, RulesetVariablesManagerImpl, FavoritePropertiesScope, FavoritePropertiesManager, getFieldInfos, createFieldOrderInfos, IMODELJS_PRESENTATION_SETTING_NAMESPACE, DEPRECATED_PROPERTIES_SETTING_NAMESPACE, FAVORITE_PROPERTIES_SETTING_NAME, FAVORITE_PROPERTIES_ORDER_INFO_SETTING_NAME, DefaultFavoritePropertiesStorageTypes, createFavoritePropertiesStorage, IModelAppFavoritePropertiesStorage, OfflineCachingFavoritePropertiesStorage, NoopFavoritePropertiesStorage, BrowserLocalFavoritePropertiesStorage, StateTracker, consoleDiagnosticsHandler, createCombinedDiagnosticsHandler, PresentationFrontendLoggerCategory, SelectionChangeEvent, SelectionChangeType, SelectionManager, TRANSIENT_ELEMENT_CLASSNAME, ToolSelectionSyncHandler, SelectionScopesManager, getScopeId, SelectionHandler, HILITE_RULESET, HiliteSetProvider, SelectionHelper */
275173
+ /*! exports provided: Presentation, PresentationManager, buildPagedArrayResponse, RulesetManagerImpl, RulesetVariablesManagerImpl, FavoritePropertiesScope, FavoritePropertiesManager, getFieldInfos, createFieldOrderInfos, IMODELJS_PRESENTATION_SETTING_NAMESPACE, DEPRECATED_PROPERTIES_SETTING_NAMESPACE, FAVORITE_PROPERTIES_SETTING_NAME, FAVORITE_PROPERTIES_ORDER_INFO_SETTING_NAME, DefaultFavoritePropertiesStorageTypes, createFavoritePropertiesStorage, IModelAppFavoritePropertiesStorage, OfflineCachingFavoritePropertiesStorage, NoopFavoritePropertiesStorage, BrowserLocalFavoritePropertiesStorage, StateTracker, consoleDiagnosticsHandler, createCombinedDiagnosticsHandler, PresentationFrontendLoggerCategory, SelectionChangeEvent, SelectionChangeType, SelectionManager, TRANSIENT_ELEMENT_CLASSNAME, ToolSelectionSyncHandler, SelectionScopesManager, createSelectionScopeProps, getScopeId, SelectionHandler, HILITE_RULESET, HiliteSetProvider, SelectionHelper */
275168
275174
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
275169
275175
 
275170
275176
  "use strict";
@@ -275240,6 +275246,8 @@ __webpack_require__.r(__webpack_exports__);
275240
275246
  /* harmony import */ var _presentation_frontend_selection_SelectionScopesManager__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./presentation-frontend/selection/SelectionScopesManager */ "../../presentation/frontend/lib/esm/presentation-frontend/selection/SelectionScopesManager.js");
275241
275247
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectionScopesManager", function() { return _presentation_frontend_selection_SelectionScopesManager__WEBPACK_IMPORTED_MODULE_12__["SelectionScopesManager"]; });
275242
275248
 
275249
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createSelectionScopeProps", function() { return _presentation_frontend_selection_SelectionScopesManager__WEBPACK_IMPORTED_MODULE_12__["createSelectionScopeProps"]; });
275250
+
275243
275251
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getScopeId", function() { return _presentation_frontend_selection_SelectionScopesManager__WEBPACK_IMPORTED_MODULE_12__["getScopeId"]; });
275244
275252
 
275245
275253
  /* harmony import */ var _presentation_frontend_selection_SelectionHandler__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./presentation-frontend/selection/SelectionHandler */ "../../presentation/frontend/lib/esm/presentation-frontend/selection/SelectionHandler.js");
@@ -278114,12 +278122,11 @@ class ToolSelectionSyncHandler {
278114
278122
  ids = ev.removed;
278115
278123
  break;
278116
278124
  }
278117
- const scopeId = Object(_SelectionScopesManager__WEBPACK_IMPORTED_MODULE_5__["getScopeId"])(this._logicalSelection.scopes.activeScope);
278118
278125
  // we're always using scoped selection changer even if the scope is set to "element" - that
278119
278126
  // makes sure we're adding to selection keys with concrete classes and not "BisCore:Element", which
278120
278127
  // we can't because otherwise our keys compare fails (presentation components load data with
278121
278128
  // concrete classes)
278122
- const changer = new ScopedSelectionChanger(this._selectionSourceName, this._imodel, this._logicalSelection, scopeId);
278129
+ const changer = new ScopedSelectionChanger(this._selectionSourceName, this._imodel, this._logicalSelection, Object(_SelectionScopesManager__WEBPACK_IMPORTED_MODULE_5__["createSelectionScopeProps"])(this._logicalSelection.scopes.activeScope));
278123
278130
  // we know what to do immediately on `clear` events
278124
278131
  if (_itwin_core_frontend__WEBPACK_IMPORTED_MODULE_1__["SelectionSetEventType"].Clear === ev.type) {
278125
278132
  await changer.clear(selectionLevel);
@@ -278219,12 +278226,13 @@ class ScopedSelectionChanger {
278219
278226
  /*!*************************************************************************************************************!*\
278220
278227
  !*** D:/vsts_a/1/s/presentation/frontend/lib/esm/presentation-frontend/selection/SelectionScopesManager.js ***!
278221
278228
  \*************************************************************************************************************/
278222
- /*! exports provided: SelectionScopesManager, getScopeId */
278229
+ /*! exports provided: SelectionScopesManager, createSelectionScopeProps, getScopeId */
278223
278230
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
278224
278231
 
278225
278232
  "use strict";
278226
278233
  __webpack_require__.r(__webpack_exports__);
278227
278234
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectionScopesManager", function() { return SelectionScopesManager; });
278235
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createSelectionScopeProps", function() { return createSelectionScopeProps; });
278228
278236
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getScopeId", function() { return getScopeId; });
278229
278237
  /* harmony import */ var _itwin_presentation_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/presentation-common */ "../../presentation/common/lib/esm/presentation-common.js");
278230
278238
  /*---------------------------------------------------------------------------------------------
@@ -278267,7 +278275,7 @@ class SelectionScopesManager {
278267
278275
  * @param scope Selection scope to apply
278268
278276
  */
278269
278277
  async computeSelection(imodel, ids, scope) {
278270
- const scopeId = getScopeId(scope);
278278
+ const scopeProps = createSelectionScopeProps(scope);
278271
278279
  // convert ids input to array
278272
278280
  if (typeof ids === "string")
278273
278281
  ids = [ids];
@@ -278282,24 +278290,35 @@ class SelectionScopesManager {
278282
278290
  const batchStart = batchSize * batchIndex;
278283
278291
  const batchEnd = (batchStart + batchSize > ids.length) ? ids.length : (batchStart + batchSize);
278284
278292
  const batchIds = (0 === batchIndex && ids.length <= batchEnd) ? ids : ids.slice(batchStart, batchEnd);
278285
- batchKeyPromises.push(this._rpcRequestsHandler.computeSelection({ imodel: imodel.getRpcProps() }, batchIds, scopeId));
278293
+ batchKeyPromises.push(this._rpcRequestsHandler.computeSelection({ imodel: imodel.getRpcProps(), elementIds: batchIds, scope: scopeProps }));
278286
278294
  }
278287
278295
  const batchKeys = (await Promise.all(batchKeyPromises)).map(_itwin_presentation_common__WEBPACK_IMPORTED_MODULE_0__["KeySet"].fromJSON);
278288
278296
  batchKeys.forEach((bk) => keys.add(bk));
278289
278297
  return keys;
278290
278298
  }
278291
278299
  }
278300
+ /**
278301
+ * Normalizes given scope options and returns [[ComputeSelectionScopeProps]] that can be used for
278302
+ * calculating selection with scope.
278303
+ *
278304
+ * @internal
278305
+ */
278306
+ function createSelectionScopeProps(scope) {
278307
+ if (!scope)
278308
+ return { id: "element" };
278309
+ if (typeof scope === "string")
278310
+ return { id: scope };
278311
+ return scope;
278312
+ }
278292
278313
  /**
278293
278314
  * Determines the scope id
278294
278315
  * @param scope Selection scope
278295
278316
  * @public
278317
+ * @deprecated This is an internal utility that should've never become public.
278296
278318
  */
278319
+ // istanbul ignore next
278297
278320
  function getScopeId(scope) {
278298
- if (!scope)
278299
- return "element";
278300
- if (typeof scope === "string")
278301
- return scope;
278302
- return scope.id;
278321
+ return createSelectionScopeProps(scope).id;
278303
278322
  }
278304
278323
 
278305
278324
 
@@ -284619,7 +284638,7 @@ class TestContext {
284619
284638
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
284620
284639
  const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${(_a = process.env.IMJS_URL_PREFIX) !== null && _a !== void 0 ? _a : ""}api.bentley.com/imodels` } });
284621
284640
  await core_frontend_1.NoRenderApp.startup({
284622
- applicationVersion: "3.3.0-dev.27",
284641
+ applicationVersion: "3.3.0-dev.28",
284623
284642
  applicationId: this.settings.gprid,
284624
284643
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
284625
284644
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),