@itwin/rpcinterface-full-stack-tests 5.4.0-dev.5 → 5.4.0-dev.7
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 +43 -3
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +15 -15
|
@@ -111811,6 +111811,7 @@ class BriefcaseConnection extends _IModelConnection__WEBPACK_IMPORTED_MODULE_5__
|
|
|
111811
111811
|
this._modelsMonitor = new ModelChangeMonitor(this);
|
|
111812
111812
|
if (_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.OpenMode.ReadWrite === this._openMode)
|
|
111813
111813
|
this.txns.onAfterUndoRedo.addListener(async () => { await _IModelApp__WEBPACK_IMPORTED_MODULE_4__.IModelApp.toolAdmin.restartPrimitiveTool(); });
|
|
111814
|
+
this.categories.cache.attachToBriefcase(this);
|
|
111814
111815
|
}
|
|
111815
111816
|
/** Open a BriefcaseConnection to a [BriefcaseDb]($backend). */
|
|
111816
111817
|
static async openFile(briefcaseProps) {
|
|
@@ -125012,7 +125013,46 @@ class SubCategoriesCache {
|
|
|
125012
125013
|
_appearances = new Map();
|
|
125013
125014
|
_imodel;
|
|
125014
125015
|
_missingAtTimeOfPreload;
|
|
125015
|
-
constructor(imodel) {
|
|
125016
|
+
constructor(imodel) {
|
|
125017
|
+
this._imodel = imodel;
|
|
125018
|
+
}
|
|
125019
|
+
attachToBriefcase(imodel) {
|
|
125020
|
+
// We want to do this in the constructor but can't, because IModelConnection.subcategories is initialized before
|
|
125021
|
+
// BriefcaseConnection.txns.
|
|
125022
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(imodel === this._imodel);
|
|
125023
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(imodel.isBriefcaseConnection());
|
|
125024
|
+
imodel.txns.onElementsChanged.addListener((changes) => {
|
|
125025
|
+
const affectedSubCategories = new Set();
|
|
125026
|
+
for (const change of changes) {
|
|
125027
|
+
if (change.metadata.is("BisCore:Category")) {
|
|
125028
|
+
if (change.type === "deleted") {
|
|
125029
|
+
this._byCategoryId.delete(change.id);
|
|
125030
|
+
}
|
|
125031
|
+
}
|
|
125032
|
+
else if (change.metadata.is("BisCore:SubCategory")) {
|
|
125033
|
+
if (change.type === "inserted") {
|
|
125034
|
+
// We don't know to which category the subcategory belongs. Blow away the entire cache.
|
|
125035
|
+
this._byCategoryId.clear();
|
|
125036
|
+
this._appearances.clear();
|
|
125037
|
+
return;
|
|
125038
|
+
}
|
|
125039
|
+
this._appearances.delete(change.id);
|
|
125040
|
+
affectedSubCategories.add(change.id);
|
|
125041
|
+
}
|
|
125042
|
+
}
|
|
125043
|
+
if (affectedSubCategories.size > 0) {
|
|
125044
|
+
for (const [catId, subCatIds] of this._byCategoryId) {
|
|
125045
|
+
for (const subCatId of affectedSubCategories) {
|
|
125046
|
+
if (subCatIds.has(subCatId)) {
|
|
125047
|
+
this._byCategoryId.delete(catId);
|
|
125048
|
+
affectedSubCategories.delete(subCatId);
|
|
125049
|
+
break;
|
|
125050
|
+
}
|
|
125051
|
+
}
|
|
125052
|
+
}
|
|
125053
|
+
}
|
|
125054
|
+
});
|
|
125055
|
+
}
|
|
125016
125056
|
/** Get the Ids of all subcategories belonging to the category with the specified Id, or undefined if no such information is present. */
|
|
125017
125057
|
getSubCategories(categoryId) { return this._byCategoryId.get(categoryId); }
|
|
125018
125058
|
/** Get the base appearance of the subcategory with the specified Id, or undefined if no such information is present. */
|
|
@@ -338825,7 +338865,7 @@ class TestContext {
|
|
|
338825
338865
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
338826
338866
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
338827
338867
|
await core_frontend_1.NoRenderApp.startup({
|
|
338828
|
-
applicationVersion: "5.4.0-dev.
|
|
338868
|
+
applicationVersion: "5.4.0-dev.7",
|
|
338829
338869
|
applicationId: this.settings.gprid,
|
|
338830
338870
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.serviceAuthToken),
|
|
338831
338871
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -364098,7 +364138,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
364098
364138
|
/***/ ((module) => {
|
|
364099
364139
|
|
|
364100
364140
|
"use strict";
|
|
364101
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.4.0-dev.
|
|
364141
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.4.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 && 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.3.12","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"}}');
|
|
364102
364142
|
|
|
364103
364143
|
/***/ }),
|
|
364104
364144
|
|