@itwin/rpcinterface-full-stack-tests 4.2.1 → 4.2.3

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.
@@ -79141,8 +79141,11 @@ class SectionAttachmentInfo {
79141
79141
  displaySpatialView: this._displaySpatialView,
79142
79142
  };
79143
79143
  }
79144
- clone() {
79145
- return new SectionAttachmentInfo(this._spatialView, this._drawingToSpatialTransform, this._displaySpatialView);
79144
+ clone(iModel) {
79145
+ let spatialView = this._spatialView;
79146
+ if (spatialView instanceof _ViewState__WEBPACK_IMPORTED_MODULE_14__.ViewState3d)
79147
+ spatialView = spatialView.clone(iModel);
79148
+ return new SectionAttachmentInfo(spatialView, this._drawingToSpatialTransform, this._displaySpatialView);
79146
79149
  }
79147
79150
  preload(options) {
79148
79151
  if (!this.wantDisplayed)
@@ -79336,7 +79339,7 @@ class DrawingViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_14__.ViewStat
79336
79339
  if (categories instanceof DrawingViewState) {
79337
79340
  this._viewedExtents = categories._viewedExtents.clone();
79338
79341
  this._modelLimits = { ...categories._modelLimits };
79339
- this._attachmentInfo = categories._attachmentInfo.clone();
79342
+ this._attachmentInfo = categories._attachmentInfo.clone(iModel);
79340
79343
  }
79341
79344
  else {
79342
79345
  this._viewedExtents = extents;
@@ -87822,6 +87825,7 @@ class SheetBorder {
87822
87825
  * SheetViewState.load(). The Attachments object is created in SheetViewState.attachToViewport and disposed of in SheetViewState.detachFromViewport.
87823
87826
  */
87824
87827
  class ViewAttachmentsInfo {
87828
+ get attachments() { return this._attachments; }
87825
87829
  constructor(attachments) {
87826
87830
  this._attachments = attachments;
87827
87831
  }
@@ -87845,9 +87849,19 @@ class ViewAttachmentsInfo {
87845
87849
  toJSON() {
87846
87850
  return this.isLoaded ? this._props.map((x) => x.id) : [...this._ids];
87847
87851
  }
87848
- clone() {
87849
- // No reason to clone the array.
87850
- return new ViewAttachmentsInfo(this._attachments);
87852
+ clone(iModel) {
87853
+ let attachments = this._attachments;
87854
+ if (this.isLoaded) {
87855
+ // Need to clone the attached ViewStates.
87856
+ attachments = attachments.map((attachment) => {
87857
+ (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(typeof attachment !== "string");
87858
+ return {
87859
+ ...attachment,
87860
+ attachedView: attachment.attachedView.clone(iModel),
87861
+ };
87862
+ });
87863
+ }
87864
+ return new ViewAttachmentsInfo(attachments);
87851
87865
  }
87852
87866
  preload(options) {
87853
87867
  if (this.isLoaded)
@@ -88010,7 +88024,16 @@ class SheetViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_13__.ViewState2
88010
88024
  }
88011
88025
  /** Strictly for testing. @internal */
88012
88026
  get viewAttachmentProps() {
88013
- return this._attachmentsInfo.viewAttachmentProps;
88027
+ return this._attachmentsInfo.viewAttachmentProps.map((x) => {
88028
+ return {
88029
+ ...x,
88030
+ attachedView: undefined,
88031
+ };
88032
+ });
88033
+ }
88034
+ /** Strictly for testing. @internal */
88035
+ get viewAttachmentInfos() {
88036
+ return this._attachmentsInfo.attachments;
88014
88037
  }
88015
88038
  /** Strictly for testing. @internal */
88016
88039
  get attachments() {
@@ -88025,7 +88048,7 @@ class SheetViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_13__.ViewState2
88025
88048
  if (categories instanceof SheetViewState) {
88026
88049
  // we are coming from clone...
88027
88050
  this.sheetSize = categories.sheetSize.clone();
88028
- this._attachmentsInfo = categories._attachmentsInfo.clone();
88051
+ this._attachmentsInfo = categories._attachmentsInfo.clone(iModel);
88029
88052
  this._viewedExtents = categories._viewedExtents.clone();
88030
88053
  }
88031
88054
  else {
@@ -88628,6 +88651,7 @@ class SpatialViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_6__.ViewState
88628
88651
  this.registerModelSelectorListeners();
88629
88652
  this.onViewedModelsChanged.raiseEvent();
88630
88653
  }
88654
+ this.markModelSelectorChanged();
88631
88655
  }
88632
88656
  /** Create a new *blank* SpatialViewState. The returned SpatialViewState will nave non-persistent empty [[CategorySelectorState]] and [[ModelSelectorState]],
88633
88657
  * and a non-persistent [[DisplayStyle3dState]] with default values for all of its components. Generally after creating a blank SpatialViewState,
@@ -145183,7 +145207,7 @@ class RealityModelTileLoader extends _internal__WEBPACK_IMPORTED_MODULE_8__.Real
145183
145207
  }
145184
145208
  get doDrapeBackgroundMap() { return this.tree.doDrapeBackgroundMap; }
145185
145209
  get wantDeduplicatedVertices() { return this._deduplicateVertices; }
145186
- get maxDepth() { return 32; } // Can be removed when element tile selector is working.
145210
+ get maxDepth() { return Number.MAX_SAFE_INTEGER; }
145187
145211
  get minDepth() { return 0; }
145188
145212
  get priority() { return _internal__WEBPACK_IMPORTED_MODULE_8__.TileLoadPriority.Context; }
145189
145213
  getBatchIdMap() { return this._batchedIdMap; }
@@ -150972,7 +150996,7 @@ class ArcGisUtilities {
150972
150996
  // and return information needed to initiate the authentification process... the end-user
150973
150997
  // will have to provide his credentials before we can fully validate this source.
150974
150998
  if (json.error.code === ArcGisErrorCode.TokenRequired) {
150975
- return { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.RequireAuth };
150999
+ return (userName || password) ? { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.InvalidCredentials } : { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.RequireAuth };
150976
151000
  }
150977
151001
  else if (json.error.code === ArcGisErrorCode.InvalidCredentials)
150978
151002
  return { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.InvalidCredentials };
@@ -280380,7 +280404,7 @@ class TestContext {
280380
280404
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
280381
280405
  const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
280382
280406
  await core_frontend_1.NoRenderApp.startup({
280383
- applicationVersion: "4.2.1",
280407
+ applicationVersion: "4.2.3",
280384
280408
  applicationId: this.settings.gprid,
280385
280409
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
280386
280410
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
@@ -299788,7 +299812,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
299788
299812
  /***/ ((module) => {
299789
299813
 
299790
299814
  "use strict";
299791
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.2.1","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 && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/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 -c extraction.eslint.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 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^4.2.1","@itwin/core-bentley":"workspace:^4.2.1","@itwin/core-common":"workspace:^4.2.1","@itwin/core-geometry":"workspace:^4.2.1","@itwin/core-orbitgt":"workspace:^4.2.1","@itwin/core-quantity":"workspace:^4.2.1"},"//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":"4.0.0-dev.44","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^8.2.2","@types/node":"18.16.1","@types/sinon":"^10.0.15","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.3.10","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^8.44.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^15.0.4","source-map-loader":"^4.0.0","typescript":"~5.0.2","webpack":"^5.76.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/cloud-agnostic-core":"^2.1.0","@itwin/object-storage-core":"^2.1.0","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"}}');
299815
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.2.3","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 && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/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 -c extraction.eslint.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 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^4.2.3","@itwin/core-bentley":"workspace:^4.2.3","@itwin/core-common":"workspace:^4.2.3","@itwin/core-geometry":"workspace:^4.2.3","@itwin/core-orbitgt":"workspace:^4.2.3","@itwin/core-quantity":"workspace:^4.2.3"},"//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":"4.0.0-dev.44","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^8.2.2","@types/node":"18.16.1","@types/sinon":"^10.0.15","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.3.10","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^8.44.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^15.0.4","source-map-loader":"^4.0.0","typescript":"~5.0.2","webpack":"^5.76.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/cloud-agnostic-core":"^2.1.0","@itwin/object-storage-core":"^2.1.0","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"}}');
299792
299816
 
299793
299817
  /***/ }),
299794
299818