@itwin/rpcinterface-full-stack-tests 4.2.0 → 4.2.2
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/lib/dist/bundled-tests.js +36 -13
- package/lib/dist/bundled-tests.js.map +1 -1
- package/lib/dist/core_frontend_lib_esm_ApproximateTerrainHeightsProps_js.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_4_14_node_modules_loaders_gl_draco_d-aa4ff5.bundled-tests.js.map +1 -1
- package/package.json +13 -13
|
@@ -79141,8 +79141,11 @@ class SectionAttachmentInfo {
|
|
|
79141
79141
|
displaySpatialView: this._displaySpatialView,
|
|
79142
79142
|
};
|
|
79143
79143
|
}
|
|
79144
|
-
clone() {
|
|
79145
|
-
|
|
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
|
-
|
|
87850
|
-
|
|
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 {
|
|
@@ -145183,7 +145206,7 @@ class RealityModelTileLoader extends _internal__WEBPACK_IMPORTED_MODULE_8__.Real
|
|
|
145183
145206
|
}
|
|
145184
145207
|
get doDrapeBackgroundMap() { return this.tree.doDrapeBackgroundMap; }
|
|
145185
145208
|
get wantDeduplicatedVertices() { return this._deduplicateVertices; }
|
|
145186
|
-
get maxDepth() { return
|
|
145209
|
+
get maxDepth() { return Number.MAX_SAFE_INTEGER; }
|
|
145187
145210
|
get minDepth() { return 0; }
|
|
145188
145211
|
get priority() { return _internal__WEBPACK_IMPORTED_MODULE_8__.TileLoadPriority.Context; }
|
|
145189
145212
|
getBatchIdMap() { return this._batchedIdMap; }
|
|
@@ -150972,7 +150995,7 @@ class ArcGisUtilities {
|
|
|
150972
150995
|
// and return information needed to initiate the authentification process... the end-user
|
|
150973
150996
|
// will have to provide his credentials before we can fully validate this source.
|
|
150974
150997
|
if (json.error.code === ArcGisErrorCode.TokenRequired) {
|
|
150975
|
-
return { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.RequireAuth };
|
|
150998
|
+
return (userName || password) ? { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.InvalidCredentials } : { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.RequireAuth };
|
|
150976
150999
|
}
|
|
150977
151000
|
else if (json.error.code === ArcGisErrorCode.InvalidCredentials)
|
|
150978
151001
|
return { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.InvalidCredentials };
|
|
@@ -250552,7 +250575,7 @@ var IModelJson;
|
|
|
250552
250575
|
static parseBcurve(data) {
|
|
250553
250576
|
if (data === undefined)
|
|
250554
250577
|
return undefined;
|
|
250555
|
-
if (Array.isArray(data.points) && Array.isArray(data.knots) && Number.isFinite(data.order)
|
|
250578
|
+
if (Array.isArray(data.points) && Array.isArray(data.knots) && Number.isFinite(data.order)) {
|
|
250556
250579
|
if (data.points[0].length === 4) {
|
|
250557
250580
|
const hPoles = [];
|
|
250558
250581
|
for (const p of data.points)
|
|
@@ -280380,7 +280403,7 @@ class TestContext {
|
|
|
280380
280403
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
280381
280404
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
280382
280405
|
await core_frontend_1.NoRenderApp.startup({
|
|
280383
|
-
applicationVersion: "4.2.
|
|
280406
|
+
applicationVersion: "4.2.2",
|
|
280384
280407
|
applicationId: this.settings.gprid,
|
|
280385
280408
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
280386
280409
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -299788,7 +299811,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
299788
299811
|
/***/ ((module) => {
|
|
299789
299812
|
|
|
299790
299813
|
"use strict";
|
|
299791
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.2.
|
|
299814
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.2.2","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.2","@itwin/core-bentley":"workspace:^4.2.2","@itwin/core-common":"workspace:^4.2.2","@itwin/core-geometry":"workspace:^4.2.2","@itwin/core-orbitgt":"workspace:^4.2.2","@itwin/core-quantity":"workspace:^4.2.2"},"//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
299815
|
|
|
299793
299816
|
/***/ }),
|
|
299794
299817
|
|