@itwin/rpcinterface-full-stack-tests 5.1.0-dev.34 → 5.1.0-dev.37
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 +54 -17
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +14 -14
|
@@ -99641,17 +99641,17 @@ class SchemaFormatsProvider {
|
|
|
99641
99641
|
return undefined;
|
|
99642
99642
|
}
|
|
99643
99643
|
// Find the first presentation format that matches the provided unit system.
|
|
99644
|
-
const
|
|
99644
|
+
const unitSystemMatchers = getUnitSystemGroupMatchers(this._unitSystem);
|
|
99645
99645
|
const presentationFormats = kindOfQuantity.presentationFormats;
|
|
99646
|
-
for (const
|
|
99646
|
+
for (const matcher of unitSystemMatchers) {
|
|
99647
99647
|
for (const lazyFormat of presentationFormats) {
|
|
99648
99648
|
const format = await lazyFormat;
|
|
99649
99649
|
const unit = await (format.units && format.units[0][0]);
|
|
99650
99650
|
if (!unit) {
|
|
99651
99651
|
continue;
|
|
99652
99652
|
}
|
|
99653
|
-
const currentUnitSystem = unit.unitSystem;
|
|
99654
|
-
if (currentUnitSystem && currentUnitSystem
|
|
99653
|
+
const currentUnitSystem = await unit.unitSystem;
|
|
99654
|
+
if (currentUnitSystem && matcher(currentUnitSystem)) {
|
|
99655
99655
|
this._formatsRetrieved.add(itemKey.fullName);
|
|
99656
99656
|
return (0,_Metadata_OverrideFormat__WEBPACK_IMPORTED_MODULE_6__.getFormatProps)(format);
|
|
99657
99657
|
}
|
|
@@ -99660,7 +99660,7 @@ class SchemaFormatsProvider {
|
|
|
99660
99660
|
// If no matching presentation format was found, use persistence unit format if it matches unit system.
|
|
99661
99661
|
const persistenceUnit = await kindOfQuantity.persistenceUnit;
|
|
99662
99662
|
const persistenceUnitSystem = await persistenceUnit?.unitSystem;
|
|
99663
|
-
if (persistenceUnitSystem &&
|
|
99663
|
+
if (persistenceUnitSystem && unitSystemMatchers.some((matcher) => matcher(persistenceUnitSystem))) {
|
|
99664
99664
|
this._formatsRetrieved.add(itemKey.fullName);
|
|
99665
99665
|
return getPersistenceUnitFormatProps(persistenceUnit);
|
|
99666
99666
|
}
|
|
@@ -99710,16 +99710,20 @@ class SchemaFormatsProvider {
|
|
|
99710
99710
|
return this.getKindOfQuantityFormatFromSchema(itemKey);
|
|
99711
99711
|
}
|
|
99712
99712
|
}
|
|
99713
|
-
function
|
|
99714
|
-
|
|
99713
|
+
function getUnitSystemGroupMatchers(groupKey) {
|
|
99714
|
+
function createMatcher(name) {
|
|
99715
|
+
const names = Array.isArray(name) ? name : [name];
|
|
99716
|
+
return (unitSystem) => names.some((n) => n === unitSystem.name.toUpperCase());
|
|
99717
|
+
}
|
|
99718
|
+
switch (groupKey) {
|
|
99715
99719
|
case "imperial":
|
|
99716
|
-
return ["IMPERIAL", "USCUSTOM", "INTERNATIONAL", "FINANCE"];
|
|
99720
|
+
return ["IMPERIAL", "USCUSTOM", "INTERNATIONAL", "FINANCE"].map(createMatcher);
|
|
99717
99721
|
case "metric":
|
|
99718
|
-
return ["SI", "METRIC", "INTERNATIONAL", "FINANCE"];
|
|
99722
|
+
return [["SI", "METRIC"], "INTERNATIONAL", "FINANCE"].map(createMatcher);
|
|
99719
99723
|
case "usCustomary":
|
|
99720
|
-
return ["USCUSTOM", "INTERNATIONAL", "FINANCE"];
|
|
99724
|
+
return ["USCUSTOM", "INTERNATIONAL", "FINANCE"].map(createMatcher);
|
|
99721
99725
|
case "usSurvey":
|
|
99722
|
-
return ["USSURVEY", "USCUSTOM", "INTERNATIONAL", "FINANCE"];
|
|
99726
|
+
return ["USSURVEY", "USCUSTOM", "INTERNATIONAL", "FINANCE"].map(createMatcher);
|
|
99723
99727
|
}
|
|
99724
99728
|
return [];
|
|
99725
99729
|
}
|
|
@@ -105924,7 +105928,7 @@ class AccuSnap {
|
|
|
105924
105928
|
return undefined;
|
|
105925
105929
|
const filterStatus = (this.isLocateEnabled ? await _IModelApp__WEBPACK_IMPORTED_MODULE_4__.IModelApp.locateManager.filterHit(thisHit, _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__.LocateAction.AutoLocate, out) : _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__.LocateFilterStatus.Accept);
|
|
105926
105930
|
if (_ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__.LocateFilterStatus.Accept !== filterStatus) {
|
|
105927
|
-
out.snapStatus = _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__.SnapStatus.FilteredByApp;
|
|
105931
|
+
out.snapStatus = _IModelApp__WEBPACK_IMPORTED_MODULE_4__.IModelApp.toolAdmin.wantToolTip(thisHit) ? _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__.SnapStatus.FilteredByApp : _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__.SnapStatus.FilteredByAppQuietly;
|
|
105928
105932
|
return undefined;
|
|
105929
105933
|
}
|
|
105930
105934
|
let snapModes;
|
|
@@ -106025,7 +106029,7 @@ class AccuSnap {
|
|
|
106025
106029
|
if (undefined !== firstRejected)
|
|
106026
106030
|
continue;
|
|
106027
106031
|
firstRejected = filterResponse.clone();
|
|
106028
|
-
firstRejected.snapStatus = _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__.SnapStatus.FilteredByApp;
|
|
106032
|
+
firstRejected.snapStatus = _IModelApp__WEBPACK_IMPORTED_MODULE_4__.IModelApp.toolAdmin.wantToolTip(thisHit) ? _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__.SnapStatus.FilteredByApp : _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__.SnapStatus.FilteredByAppQuietly;
|
|
106029
106033
|
}
|
|
106030
106034
|
if (undefined !== firstRejected)
|
|
106031
106035
|
out.setFrom(firstRejected);
|
|
@@ -137653,8 +137657,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137653
137657
|
/* eslint-disable sort-imports */
|
|
137654
137658
|
|
|
137655
137659
|
const globalSymbol = Symbol.for("itwin.core.frontend.globals");
|
|
137656
|
-
if (globalThis[globalSymbol])
|
|
137657
|
-
|
|
137660
|
+
if (globalThis[globalSymbol]) {
|
|
137661
|
+
// Get the stack trace from when the module was first loaded
|
|
137662
|
+
const firstLoadStack = globalThis[globalSymbol].stack;
|
|
137663
|
+
const error = new Error("Multiple @itwin/core-frontend imports detected! This may happen if:\n" +
|
|
137664
|
+
"- You have multiple versions of the package installed\n" +
|
|
137665
|
+
"- Your bundling configuration is incorrect\n" +
|
|
137666
|
+
"- You're importing from both ESM and CommonJS versions");
|
|
137667
|
+
/* eslint-disable no-console */
|
|
137668
|
+
console.error("Duplicate @itwin/core-frontend import:", error);
|
|
137669
|
+
console.error("First import occurred at:", firstLoadStack);
|
|
137670
|
+
console.error("Current import occurred at:", error.stack);
|
|
137671
|
+
/* eslint-enable no-console */
|
|
137672
|
+
throw error;
|
|
137673
|
+
}
|
|
137658
137674
|
// BEGIN GENERATED CODE
|
|
137659
137675
|
|
|
137660
137676
|
|
|
@@ -137924,6 +137940,7 @@ const getExtensionApi = (_id) => {
|
|
|
137924
137940
|
};
|
|
137925
137941
|
};
|
|
137926
137942
|
globalThis[globalSymbol] = {
|
|
137943
|
+
stack: new Error().stack,
|
|
137927
137944
|
getExtensionApi,
|
|
137928
137945
|
};
|
|
137929
137946
|
|
|
@@ -330668,7 +330685,7 @@ class TestContext {
|
|
|
330668
330685
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
330669
330686
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
330670
330687
|
await core_frontend_1.NoRenderApp.startup({
|
|
330671
|
-
applicationVersion: "5.1.0-dev.
|
|
330688
|
+
applicationVersion: "5.1.0-dev.37",
|
|
330672
330689
|
applicationId: this.settings.gprid,
|
|
330673
330690
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.serviceAuthToken),
|
|
330674
330691
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -341903,6 +341920,26 @@ var HiliteSetProvider_js_1 = __webpack_require__(/*! ./presentation-frontend/sel
|
|
|
341903
341920
|
Object.defineProperty(exports, "HiliteSetProvider", ({ enumerable: true, get: function () { return HiliteSetProvider_js_1.HiliteSetProvider; } }));
|
|
341904
341921
|
var SelectionHelper_js_1 = __webpack_require__(/*! ./presentation-frontend/selection/SelectionHelper.js */ "../../presentation/frontend/lib/cjs/presentation-frontend/selection/SelectionHelper.js");
|
|
341905
341922
|
Object.defineProperty(exports, "SelectionHelper", ({ enumerable: true, get: function () { return SelectionHelper_js_1.SelectionHelper; } }));
|
|
341923
|
+
const globalSymbolPresentationFrontend = Symbol.for("itwin.presentation.frontend.globals");
|
|
341924
|
+
if (globalThis[globalSymbolPresentationFrontend]) {
|
|
341925
|
+
// Get the stack trace from when the module was first loaded
|
|
341926
|
+
const firstLoadStack = globalThis[globalSymbolPresentationFrontend].stack;
|
|
341927
|
+
const error = new Error("Multiple @itwin/presentation-frontend imports detected! This may happen if:\n" +
|
|
341928
|
+
"- You have multiple versions of the package installed\n" +
|
|
341929
|
+
"- Your bundling configuration is incorrect\n" +
|
|
341930
|
+
"- You're importing from both ESM and CommonJS versions");
|
|
341931
|
+
/* eslint-disable no-console */
|
|
341932
|
+
console.error("Duplicate @itwin/presentation-frontend import:", error);
|
|
341933
|
+
console.error("First import occurred at:", firstLoadStack);
|
|
341934
|
+
console.error("Current import occurred at:", error.stack);
|
|
341935
|
+
/* eslint-enable no-console */
|
|
341936
|
+
throw error;
|
|
341937
|
+
}
|
|
341938
|
+
else {
|
|
341939
|
+
globalThis[globalSymbolPresentationFrontend] = {
|
|
341940
|
+
stack: new Error().stack,
|
|
341941
|
+
};
|
|
341942
|
+
}
|
|
341906
341943
|
|
|
341907
341944
|
|
|
341908
341945
|
/***/ }),
|
|
@@ -355734,7 +355771,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
355734
355771
|
/***/ ((module) => {
|
|
355735
355772
|
|
|
355736
355773
|
"use strict";
|
|
355737
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.1.0-dev.
|
|
355774
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.1.0-dev.37","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 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","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","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/eslint-plugin":"5.0.0-dev.1","@types/chai-as-promised":"^7","@vitest/browser":"^3.0.6","@vitest/coverage-v8":"^3.0.6","cpx2":"^8.0.0","eslint":"^9.13.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^6.0.1","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/cloud-agnostic-core":"^2.2.4","@itwin/object-storage-core":"^2.3.0","@itwin/core-i18n":"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"}}');
|
|
355738
355775
|
|
|
355739
355776
|
/***/ }),
|
|
355740
355777
|
|