@itwin/rpcinterface-full-stack-tests 3.3.0-dev.7 → 3.3.0-dev.8

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.
@@ -86637,7 +86637,7 @@ class IModelApp {
86637
86637
  applicationId: this.applicationId,
86638
86638
  applicationVersion: this.applicationVersion,
86639
86639
  sessionId: this.sessionId,
86640
- authorization: await this.getAccessToken(),
86640
+ authorization: _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__["ProcessDetector"].isMobileAppFrontend ? "" : await this.getAccessToken(),
86641
86641
  };
86642
86642
  const csrf = IModelApp.securityOptions.csrfProtection;
86643
86643
  if (csrf && csrf.enabled) {
@@ -95218,27 +95218,31 @@ __webpack_require__.r(__webpack_exports__);
95218
95218
  /** @packageDocumentation
95219
95219
  * @module Views
95220
95220
  */
95221
- /** A rectangle in integer view coordinates with (0,0) corresponding to the top-left corner of the view.
95222
- *
95221
+ /** A rectangle in unsigned integer view coordinates with (0,0) corresponding to the top-left corner of the view.
95223
95222
  * Increasing **x** moves from left to right, and increasing **y** moves from top to bottom.
95223
+ * [[left]], [[top]], [[right]], and [[bottom]] are required to be non-negative integers; any negative inputs are treated as
95224
+ * zero and any non-integer inputs are rounded down to the nearest integer.
95224
95225
  * @public
95225
95226
  * @extensions
95226
95227
  */
95227
95228
  class ViewRect {
95228
95229
  /** Construct a new ViewRect. */
95229
95230
  constructor(left = 0, top = 0, right = 0, bottom = 0) { this.init(left, top, right, bottom); }
95230
- /** The leftmost side of this ViewRect. */
95231
+ _set(key, value) {
95232
+ this[key] = Math.max(0, Math.floor(value));
95233
+ }
95234
+ /** The leftmost side of this ViewRect. */
95231
95235
  get left() { return this._left; }
95232
- set left(val) { this._left = Math.floor(val); }
95236
+ set left(val) { this._set("_left", val); }
95233
95237
  /** The topmost side of this ViewRect. */
95234
95238
  get top() { return this._top; }
95235
- set top(val) { this._top = Math.floor(val); }
95239
+ set top(val) { this._set("_top", val); }
95236
95240
  /** The rightmost side of this ViewRect. */
95237
95241
  get right() { return this._right; }
95238
- set right(val) { this._right = Math.floor(val); }
95242
+ set right(val) { this._set("_right", val); }
95239
95243
  /** The bottommost side of this ViewRect. */
95240
95244
  get bottom() { return this._bottom; }
95241
- set bottom(val) { this._bottom = Math.floor(val); }
95245
+ set bottom(val) { this._set("_bottom", val); }
95242
95246
  /** True if this ViewRect has an area > 0. */
95243
95247
  get isNull() { return this.right <= this.left || this.bottom <= this.top; }
95244
95248
  /** True if `!isNull` */
@@ -99679,7 +99683,7 @@ class Viewport {
99679
99683
  return false; // Reality Models not selectable
99680
99684
  return undefined === this.mapLayerFromIds(pixel.featureTable.modelId, pixel.elementId); // Maps no selectable.
99681
99685
  }
99682
- /** Read the current image from this viewport from the rendering system. If a view rectangle outside the actual view is specified, the entire view is captured.
99686
+ /** Read the current image from this viewport from the rendering system. If a "null" rectangle is supplied (@see [[ViewRect.isNull]]), the entire view is captured.
99683
99687
  * @param rect The area of the view to read. The origin of a viewRect must specify the upper left corner.
99684
99688
  * @param targetSize The size of the image to be returned. The size can be larger or smaller than the original view.
99685
99689
  * @param flipVertically If true, the image is flipped along the x-axis.
@@ -99687,7 +99691,7 @@ class Viewport {
99687
99691
  * @note By default the image is returned with the coordinate (0,0) referring to the bottom-most pixel. Pass `true` for `flipVertically` to flip it along the x-axis.
99688
99692
  * @deprecated Use readImageBuffer.
99689
99693
  */
99690
- readImage(rect = new _ViewRect__WEBPACK_IMPORTED_MODULE_25__["ViewRect"](0, 0, -1, -1), targetSize = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Point2d"].createZero(), flipVertically = false) {
99694
+ readImage(rect = new _ViewRect__WEBPACK_IMPORTED_MODULE_25__["ViewRect"](1, 1, 0, 0), targetSize = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Point2d"].createZero(), flipVertically = false) {
99691
99695
  // eslint-disable-next-line deprecation/deprecation
99692
99696
  return this.target.readImage(rect, targetSize, flipVertically);
99693
99697
  }
@@ -127756,14 +127760,14 @@ class Target extends _RenderTarget__WEBPACK_IMPORTED_MODULE_8__["RenderTarget"]
127756
127760
  return new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Point2d"](curSize.x * bestRatio, curSize.y * bestRatio);
127757
127761
  }
127758
127762
  /** wantRectIn is in CSS pixels. Output ImageBuffer will be in device pixels.
127759
- * If wantRect.right or wantRect.bottom is -1, that means "read the entire image".
127763
+ * If wantRect is null, that means "read the entire image".
127760
127764
  */
127761
127765
  readImage(wantRectIn, targetSizeIn, flipVertically) {
127762
127766
  if (!this.assignDC())
127763
127767
  return undefined;
127764
127768
  // Determine capture rect and validate
127765
127769
  const actualViewRect = this.renderRect; // already has device pixel ratio applied
127766
- const wantRect = (wantRectIn.right === -1 || wantRectIn.bottom === -1) ? actualViewRect : this.cssViewRectToDeviceViewRect(wantRectIn);
127770
+ const wantRect = wantRectIn.isNull ? actualViewRect : this.cssViewRectToDeviceViewRect(wantRectIn);
127767
127771
  const lowerRight = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Point2d"].create(wantRect.right - 1, wantRect.bottom - 1);
127768
127772
  if (!actualViewRect.containsPoint(_itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Point2d"].create(wantRect.left, wantRect.top)) || !actualViewRect.containsPoint(lowerRight))
127769
127773
  return undefined;
@@ -169726,7 +169730,7 @@ SetupWalkCameraTool.iconSpec = "icon-camera-location";
169726
169730
  /*! exports provided: name, version, description, main, module, typings, license, scripts, repository, keywords, author, peerDependencies, //devDependencies, devDependencies, //dependencies, dependencies, nyc, eslintConfig, default */
169727
169731
  /***/ (function(module) {
169728
169732
 
169729
- module.exports = JSON.parse("{\"name\":\"@itwin/core-frontend\",\"version\":\"3.3.0-dev.7\",\"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.7\",\"@itwin/core-bentley\":\"workspace:^3.3.0-dev.7\",\"@itwin/core-common\":\"workspace:^3.3.0-dev.7\",\"@itwin/core-geometry\":\"workspace:^3.3.0-dev.7\",\"@itwin/core-orbitgt\":\"workspace:^3.3.0-dev.7\",\"@itwin/core-quantity\":\"workspace:^3.3.0-dev.7\",\"@itwin/webgl-compatibility\":\"workspace:^3.3.0-dev.7\"},\"//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\":\"^8.3.2\",\"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\"}}]}}");
169733
+ module.exports = JSON.parse("{\"name\":\"@itwin/core-frontend\",\"version\":\"3.3.0-dev.8\",\"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.8\",\"@itwin/core-bentley\":\"workspace:^3.3.0-dev.8\",\"@itwin/core-common\":\"workspace:^3.3.0-dev.8\",\"@itwin/core-geometry\":\"workspace:^3.3.0-dev.8\",\"@itwin/core-orbitgt\":\"workspace:^3.3.0-dev.8\",\"@itwin/core-quantity\":\"workspace:^3.3.0-dev.8\",\"@itwin/webgl-compatibility\":\"workspace:^3.3.0-dev.8\"},\"//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\":\"^8.3.2\",\"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\"}}]}}");
169730
169734
 
169731
169735
  /***/ }),
169732
169736
 
@@ -283176,7 +283180,7 @@ class TestContext {
283176
283180
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
283177
283181
  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` } });
283178
283182
  await core_frontend_1.NoRenderApp.startup({
283179
- applicationVersion: "3.3.0-dev.7",
283183
+ applicationVersion: "3.3.0-dev.8",
283180
283184
  applicationId: this.settings.gprid,
283181
283185
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
283182
283186
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),