@itwin/rpcinterface-full-stack-tests 5.5.0 → 5.5.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 +52 -7
- package/lib/dist/bundled-tests.js.map +1 -1
- package/lib/dist/{vendors-common_temp_node_modules_pnpm_loaders_gl_draco_4_3_4_node_modules_loaders_gl_draco_di-40e622.bundled-tests.js → vendors-common_temp_node_modules_pnpm_loaders_gl_draco_4_3_4__loaders_gl_core_4_3_4_node_modu-4c1fc9.bundled-tests.js} +79 -79
- package/lib/dist/{vendors-common_temp_node_modules_pnpm_loaders_gl_draco_4_3_4_node_modules_loaders_gl_draco_di-40e622.bundled-tests.js.map → vendors-common_temp_node_modules_pnpm_loaders_gl_draco_4_3_4__loaders_gl_core_4_3_4_node_modu-4c1fc9.bundled-tests.js.map} +1 -1
- package/package.json +14 -14
|
@@ -105442,6 +105442,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
105442
105442
|
|
|
105443
105443
|
|
|
105444
105444
|
|
|
105445
|
+
const loggingCategory = "ECClass";
|
|
105445
105446
|
/**
|
|
105446
105447
|
* A common abstract class for all of the ECClass types.
|
|
105447
105448
|
* @public @preview
|
|
@@ -105496,7 +105497,13 @@ class ECClass extends _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem {
|
|
|
105496
105497
|
async getDerivedClasses() {
|
|
105497
105498
|
const derivedClasses = [];
|
|
105498
105499
|
for (const derivedClassKey of this.schema.context.classHierarchy.getDerivedClassKeys(this.key)) {
|
|
105499
|
-
|
|
105500
|
+
let derivedClass = await this.schema.getItem(derivedClassKey.name, ECClass); // if the derived class is in the same schema this will get it without going to the context
|
|
105501
|
+
if (derivedClass) {
|
|
105502
|
+
derivedClasses.push(derivedClass);
|
|
105503
|
+
continue;
|
|
105504
|
+
}
|
|
105505
|
+
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logInfo(loggingCategory, `Derived class ${derivedClassKey.name} not found in schema ${this.schema.name}, looking in schema context.`);
|
|
105506
|
+
derivedClass = await this.schema.context.getSchemaItem(derivedClassKey, ECClass);
|
|
105500
105507
|
if (derivedClass)
|
|
105501
105508
|
derivedClasses.push(derivedClass);
|
|
105502
105509
|
}
|
|
@@ -105884,18 +105891,56 @@ class ECClass extends _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem {
|
|
|
105884
105891
|
*/
|
|
105885
105892
|
async *getAllBaseClasses() {
|
|
105886
105893
|
for (const baseClassKey of this.schema.context.classHierarchy.getBaseClassKeys(this.key)) {
|
|
105887
|
-
const baseClass = await this.
|
|
105894
|
+
const baseClass = await this.getClassFromReferencesRecursively(baseClassKey); // Search in schema ref tree all the way to the top
|
|
105888
105895
|
if (baseClass)
|
|
105889
105896
|
yield baseClass;
|
|
105890
105897
|
}
|
|
105891
105898
|
}
|
|
105899
|
+
/**
|
|
105900
|
+
* gets a class from this schema or its references recursively using the item key
|
|
105901
|
+
* @param itemKey
|
|
105902
|
+
* @returns ECClass if it could be found, undefined otherwise
|
|
105903
|
+
* @internal
|
|
105904
|
+
*/
|
|
105905
|
+
async getClassFromReferencesRecursively(itemKey) {
|
|
105906
|
+
const schemaList = [this.schema];
|
|
105907
|
+
while (schemaList.length > 0) {
|
|
105908
|
+
const currentSchema = schemaList.shift();
|
|
105909
|
+
if (currentSchema.schemaKey.compareByName(itemKey.schemaKey)) {
|
|
105910
|
+
const baseClass = await currentSchema.getItem(itemKey.name, ECClass);
|
|
105911
|
+
schemaList.splice(0); // clear the list
|
|
105912
|
+
return baseClass;
|
|
105913
|
+
}
|
|
105914
|
+
schemaList.push(...currentSchema.references);
|
|
105915
|
+
}
|
|
105916
|
+
return undefined;
|
|
105917
|
+
}
|
|
105892
105918
|
*getAllBaseClassesSync() {
|
|
105893
105919
|
for (const baseClassKey of this.schema.context.classHierarchy.getBaseClassKeys(this.key)) {
|
|
105894
|
-
const baseClass = this.
|
|
105920
|
+
const baseClass = this.getClassFromReferencesRecursivelySync(baseClassKey); // Search in schema ref tree all the way to the top
|
|
105895
105921
|
if (baseClass)
|
|
105896
105922
|
yield baseClass;
|
|
105897
105923
|
}
|
|
105898
105924
|
}
|
|
105925
|
+
/**
|
|
105926
|
+
* gets a class from this schema or its references recursively using the item key synchronously
|
|
105927
|
+
* @param itemKey
|
|
105928
|
+
* @returns ECClass if it could be found, undefined otherwise
|
|
105929
|
+
* @internal
|
|
105930
|
+
*/
|
|
105931
|
+
getClassFromReferencesRecursivelySync(itemKey) {
|
|
105932
|
+
const schemaList = [this.schema];
|
|
105933
|
+
while (schemaList.length > 0) {
|
|
105934
|
+
const currentSchema = schemaList.shift();
|
|
105935
|
+
if (currentSchema.schemaKey.compareByName(itemKey.schemaKey)) {
|
|
105936
|
+
const baseClass = currentSchema.getItemSync(itemKey.name, ECClass);
|
|
105937
|
+
schemaList.splice(0); // clear the list
|
|
105938
|
+
return baseClass;
|
|
105939
|
+
}
|
|
105940
|
+
schemaList.push(...currentSchema.references);
|
|
105941
|
+
}
|
|
105942
|
+
return undefined;
|
|
105943
|
+
}
|
|
105899
105944
|
/**
|
|
105900
105945
|
*
|
|
105901
105946
|
* @param cache
|
|
@@ -186566,7 +186611,7 @@ function readPnts(stream, dataOffset, pnts) {
|
|
|
186566
186611
|
}
|
|
186567
186612
|
async function decodeDracoPointCloud(buf) {
|
|
186568
186613
|
try {
|
|
186569
|
-
const dracoLoader = (await __webpack_require__.e(/*! import() */ "vendors-
|
|
186614
|
+
const dracoLoader = (await __webpack_require__.e(/*! import() */ "vendors-common_temp_node_modules_pnpm_loaders_gl_draco_4_3_4__loaders_gl_core_4_3_4_node_modu-4c1fc9").then(__webpack_require__.bind(__webpack_require__, /*! @loaders.gl/draco */ "../../common/temp/node_modules/.pnpm/@loaders.gl+draco@4.3.4_@loaders.gl+core@4.3.4/node_modules/@loaders.gl/draco/dist/index.js"))).DracoLoader;
|
|
186570
186615
|
const mesh = await dracoLoader.parse(buf, {});
|
|
186571
186616
|
if (mesh.topology !== "point-list")
|
|
186572
186617
|
return undefined;
|
|
@@ -198826,7 +198871,7 @@ class GltfReader {
|
|
|
198826
198871
|
if (_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.ProcessDetector.isIEBrowser) {
|
|
198827
198872
|
throw new Error("Unsupported browser for Draco decoding");
|
|
198828
198873
|
}
|
|
198829
|
-
const dracoLoader = (await __webpack_require__.e(/*! import() */ "vendors-
|
|
198874
|
+
const dracoLoader = (await __webpack_require__.e(/*! import() */ "vendors-common_temp_node_modules_pnpm_loaders_gl_draco_4_3_4__loaders_gl_core_4_3_4_node_modu-4c1fc9").then(__webpack_require__.bind(__webpack_require__, /*! @loaders.gl/draco */ "../../common/temp/node_modules/.pnpm/@loaders.gl+draco@4.3.4_@loaders.gl+core@4.3.4/node_modules/@loaders.gl/draco/dist/index.js"))).DracoLoader;
|
|
198830
198875
|
await Promise.all(dracoMeshes.map(async (x) => this.decodeDracoMesh(x, dracoLoader)));
|
|
198831
198876
|
}
|
|
198832
198877
|
catch (err) {
|
|
@@ -344503,7 +344548,7 @@ class TestContext {
|
|
|
344503
344548
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
344504
344549
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
344505
344550
|
await core_frontend_1.NoRenderApp.startup({
|
|
344506
|
-
applicationVersion: "5.5.
|
|
344551
|
+
applicationVersion: "5.5.2",
|
|
344507
344552
|
applicationId: this.settings.gprid,
|
|
344508
344553
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.serviceAuthToken),
|
|
344509
344554
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -371127,7 +371172,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
371127
371172
|
/***/ ((module) => {
|
|
371128
371173
|
|
|
371129
371174
|
"use strict";
|
|
371130
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.5.
|
|
371175
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.5.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 && npm run -s copy:draco","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 ES2022 --outDir lib/esm","clean":"rimraf -g 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","copy:draco":"cpx \\"./node_modules/@loaders.gl/draco/dist/libs/*\\" ./lib/public/scripts","docs":"betools docs --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 --no-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","lint-deprecation":"eslint --fix -f visualstudio --no-inline-config -c ../../common/config/eslint/eslint.config.deprecation-policy.js \\"./src/**/*.ts\\"","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run webpackTestWorker && vitest --run","cover":"npm run webpackTestWorker && vitest --run","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:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*"},"//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/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*","@itwin/object-storage-core":"^3.0.4","@itwin/eslint-plugin":"5.2.2-dev.2","@types/chai-as-promised":"^7","@types/draco3d":"^1.4.10","@types/sinon":"^17.0.2","@vitest/browser":"^3.0.6","@vitest/coverage-v8":"^3.0.6","cpx2":"^8.0.0","eslint":"^9.31.0","glob":"^10.5.0","playwright":"~1.56.1","rimraf":"^6.0.1","sinon":"^17.0.2","source-map-loader":"^5.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^3.0.6","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"2.2.0","webpack":"^5.97.1"},"//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/webgl-compatibility":"workspace:*","@loaders.gl/core":"^4.3.4","@loaders.gl/draco":"^4.3.4","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"}}');
|
|
371131
371176
|
|
|
371132
371177
|
/***/ }),
|
|
371133
371178
|
|