@itwin/rpcinterface-full-stack-tests 4.3.0-dev.14 → 4.3.0-dev.15
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 +34 -11
- 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 +14 -14
|
@@ -79170,8 +79170,11 @@ class SectionAttachmentInfo {
|
|
|
79170
79170
|
displaySpatialView: this._displaySpatialView,
|
|
79171
79171
|
};
|
|
79172
79172
|
}
|
|
79173
|
-
clone() {
|
|
79174
|
-
|
|
79173
|
+
clone(iModel) {
|
|
79174
|
+
let spatialView = this._spatialView;
|
|
79175
|
+
if (spatialView instanceof _ViewState__WEBPACK_IMPORTED_MODULE_14__.ViewState3d)
|
|
79176
|
+
spatialView = spatialView.clone(iModel);
|
|
79177
|
+
return new SectionAttachmentInfo(spatialView, this._drawingToSpatialTransform, this._displaySpatialView);
|
|
79175
79178
|
}
|
|
79176
79179
|
preload(options) {
|
|
79177
79180
|
if (!this.wantDisplayed)
|
|
@@ -79365,7 +79368,7 @@ class DrawingViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_14__.ViewStat
|
|
|
79365
79368
|
if (categories instanceof DrawingViewState) {
|
|
79366
79369
|
this._viewedExtents = categories._viewedExtents.clone();
|
|
79367
79370
|
this._modelLimits = { ...categories._modelLimits };
|
|
79368
|
-
this._attachmentInfo = categories._attachmentInfo.clone();
|
|
79371
|
+
this._attachmentInfo = categories._attachmentInfo.clone(iModel);
|
|
79369
79372
|
}
|
|
79370
79373
|
else {
|
|
79371
79374
|
this._viewedExtents = extents;
|
|
@@ -87851,6 +87854,7 @@ class SheetBorder {
|
|
|
87851
87854
|
* SheetViewState.load(). The Attachments object is created in SheetViewState.attachToViewport and disposed of in SheetViewState.detachFromViewport.
|
|
87852
87855
|
*/
|
|
87853
87856
|
class ViewAttachmentsInfo {
|
|
87857
|
+
get attachments() { return this._attachments; }
|
|
87854
87858
|
constructor(attachments) {
|
|
87855
87859
|
this._attachments = attachments;
|
|
87856
87860
|
}
|
|
@@ -87874,9 +87878,19 @@ class ViewAttachmentsInfo {
|
|
|
87874
87878
|
toJSON() {
|
|
87875
87879
|
return this.isLoaded ? this._props.map((x) => x.id) : [...this._ids];
|
|
87876
87880
|
}
|
|
87877
|
-
clone() {
|
|
87878
|
-
|
|
87879
|
-
|
|
87881
|
+
clone(iModel) {
|
|
87882
|
+
let attachments = this._attachments;
|
|
87883
|
+
if (this.isLoaded) {
|
|
87884
|
+
// Need to clone the attached ViewStates.
|
|
87885
|
+
attachments = attachments.map((attachment) => {
|
|
87886
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(typeof attachment !== "string");
|
|
87887
|
+
return {
|
|
87888
|
+
...attachment,
|
|
87889
|
+
attachedView: attachment.attachedView.clone(iModel),
|
|
87890
|
+
};
|
|
87891
|
+
});
|
|
87892
|
+
}
|
|
87893
|
+
return new ViewAttachmentsInfo(attachments);
|
|
87880
87894
|
}
|
|
87881
87895
|
preload(options) {
|
|
87882
87896
|
if (this.isLoaded)
|
|
@@ -88039,7 +88053,16 @@ class SheetViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_13__.ViewState2
|
|
|
88039
88053
|
}
|
|
88040
88054
|
/** Strictly for testing. @internal */
|
|
88041
88055
|
get viewAttachmentProps() {
|
|
88042
|
-
return this._attachmentsInfo.viewAttachmentProps
|
|
88056
|
+
return this._attachmentsInfo.viewAttachmentProps.map((x) => {
|
|
88057
|
+
return {
|
|
88058
|
+
...x,
|
|
88059
|
+
attachedView: undefined,
|
|
88060
|
+
};
|
|
88061
|
+
});
|
|
88062
|
+
}
|
|
88063
|
+
/** Strictly for testing. @internal */
|
|
88064
|
+
get viewAttachmentInfos() {
|
|
88065
|
+
return this._attachmentsInfo.attachments;
|
|
88043
88066
|
}
|
|
88044
88067
|
/** Strictly for testing. @internal */
|
|
88045
88068
|
get attachments() {
|
|
@@ -88054,7 +88077,7 @@ class SheetViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_13__.ViewState2
|
|
|
88054
88077
|
if (categories instanceof SheetViewState) {
|
|
88055
88078
|
// we are coming from clone...
|
|
88056
88079
|
this.sheetSize = categories.sheetSize.clone();
|
|
88057
|
-
this._attachmentsInfo = categories._attachmentsInfo.clone();
|
|
88080
|
+
this._attachmentsInfo = categories._attachmentsInfo.clone(iModel);
|
|
88058
88081
|
this._viewedExtents = categories._viewedExtents.clone();
|
|
88059
88082
|
}
|
|
88060
88083
|
else {
|
|
@@ -151029,7 +151052,7 @@ class ArcGisUtilities {
|
|
|
151029
151052
|
// and return information needed to initiate the authentification process... the end-user
|
|
151030
151053
|
// will have to provide his credentials before we can fully validate this source.
|
|
151031
151054
|
if (json.error.code === ArcGisErrorCode.TokenRequired) {
|
|
151032
|
-
return { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.RequireAuth };
|
|
151055
|
+
return (userName || password) ? { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.InvalidCredentials } : { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.RequireAuth };
|
|
151033
151056
|
}
|
|
151034
151057
|
else if (json.error.code === ArcGisErrorCode.InvalidCredentials)
|
|
151035
151058
|
return { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.InvalidCredentials };
|
|
@@ -281680,7 +281703,7 @@ class TestContext {
|
|
|
281680
281703
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
281681
281704
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
281682
281705
|
await core_frontend_1.NoRenderApp.startup({
|
|
281683
|
-
applicationVersion: "4.3.0-dev.
|
|
281706
|
+
applicationVersion: "4.3.0-dev.15",
|
|
281684
281707
|
applicationId: this.settings.gprid,
|
|
281685
281708
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
281686
281709
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -301088,7 +301111,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
301088
301111
|
/***/ ((module) => {
|
|
301089
301112
|
|
|
301090
301113
|
"use strict";
|
|
301091
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.3.0-dev.
|
|
301114
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.3.0-dev.15","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.3.0-dev.15","@itwin/core-bentley":"workspace:^4.3.0-dev.15","@itwin/core-common":"workspace:^4.3.0-dev.15","@itwin/core-geometry":"workspace:^4.3.0-dev.15","@itwin/core-orbitgt":"workspace:^4.3.0-dev.15","@itwin/core-quantity":"workspace:^4.3.0-dev.15"},"//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","typemoq":"^2.1.0","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"}}');
|
|
301092
301115
|
|
|
301093
301116
|
/***/ }),
|
|
301094
301117
|
|