@itwin/ecschema-rpcinterface-tests 5.1.0-dev.1 → 5.1.0-dev.3
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 +48 -8
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +15 -15
|
@@ -84141,6 +84141,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
84141
84141
|
/* harmony import */ var _ViewState__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ViewState */ "../../core/frontend/lib/esm/ViewState.js");
|
|
84142
84142
|
/* harmony import */ var _common_internal_Symbols__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./common/internal/Symbols */ "../../core/frontend/lib/esm/common/internal/Symbols.js");
|
|
84143
84143
|
/* harmony import */ var _IpcApp__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./IpcApp */ "../../core/frontend/lib/esm/IpcApp.js");
|
|
84144
|
+
/* harmony import */ var _itwin_ecschema_metadata__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @itwin/ecschema-metadata */ "../../core/ecschema-metadata/lib/esm/ecschema-metadata.js");
|
|
84145
|
+
/* harmony import */ var _itwin_ecschema_rpcinterface_common__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @itwin/ecschema-rpcinterface-common */ "../../core/ecschema-rpc/common/lib/esm/ecschema-rpc-interface.js");
|
|
84144
84146
|
/*---------------------------------------------------------------------------------------------
|
|
84145
84147
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
84146
84148
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -84163,6 +84165,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
84163
84165
|
|
|
84164
84166
|
|
|
84165
84167
|
|
|
84168
|
+
|
|
84169
|
+
|
|
84166
84170
|
const loggerCategory = _common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_3__.FrontendLoggerCategory.IModelConnection;
|
|
84167
84171
|
/** A connection to a [IModelDb]($backend) hosted on the backend.
|
|
84168
84172
|
* @public
|
|
@@ -84245,6 +84249,7 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
|
|
|
84245
84249
|
* @deprecated in 5.0.0. If you need font Ids on the front-end for some reason, write an Ipc method that queries [IModelDb.fonts]($backend).
|
|
84246
84250
|
*/
|
|
84247
84251
|
fontMap; // eslint-disable-line @typescript-eslint/no-deprecated
|
|
84252
|
+
_schemaContext;
|
|
84248
84253
|
/** Load the FontMap for this IModelConnection.
|
|
84249
84254
|
* @returns Returns a Promise<FontMap> that is fulfilled when the FontMap member of this IModelConnection is valid.
|
|
84250
84255
|
* @deprecated in 5.0.0. If you need font Ids on the front-end for some reason, write an Ipc method that queries [IModelDb.fonts]($backend).
|
|
@@ -84633,6 +84638,24 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
|
|
|
84633
84638
|
}
|
|
84634
84639
|
return ("number" === typeof this._projectCenterAltitude) ? this._projectCenterAltitude : undefined;
|
|
84635
84640
|
}
|
|
84641
|
+
/**
|
|
84642
|
+
* Gets the context that allows accessing the metadata (see `@itwin/ecschema-metadata` package) of this iModel.
|
|
84643
|
+
* The context is created lazily when this property is accessed for the first time, with an `ECSchemaRpcLocater` registered as a fallback locater, enabling users to register their own locater that'd take more priority.
|
|
84644
|
+
* This means to correctly access schema context, client-side applications must register `ECSchemaRpcInterface` following instructions for [RPC configuration]($docs/learning/rpcinterface/#client-side-configuration).
|
|
84645
|
+
* Server-side applications would also [configure RPC]($docs/learning/rpcinterface/#server-side-configuration) as needed.
|
|
84646
|
+
*
|
|
84647
|
+
* @note While a `BlankConnection` returns a valid `schemaContext`, it has an invalid locater registered by default, and will throw an error when trying to call it's methods.
|
|
84648
|
+
* @beta
|
|
84649
|
+
*/
|
|
84650
|
+
get schemaContext() {
|
|
84651
|
+
if (this._schemaContext === undefined) {
|
|
84652
|
+
const context = new _itwin_ecschema_metadata__WEBPACK_IMPORTED_MODULE_15__.SchemaContext();
|
|
84653
|
+
const locater = new _itwin_ecschema_rpcinterface_common__WEBPACK_IMPORTED_MODULE_16__.ECSchemaRpcLocater(this._getRpcProps());
|
|
84654
|
+
context.addFallbackLocater(locater);
|
|
84655
|
+
this._schemaContext = context;
|
|
84656
|
+
}
|
|
84657
|
+
return this._schemaContext;
|
|
84658
|
+
}
|
|
84636
84659
|
}
|
|
84637
84660
|
/** A connection that exists without an iModel. Useful for connecting to Reality Data services.
|
|
84638
84661
|
* @note This class exists because our display system requires an IModelConnection type even if only reality data is drawn.
|
|
@@ -108160,12 +108183,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
108160
108183
|
* @internal
|
|
108161
108184
|
*/
|
|
108162
108185
|
async function loadScript(jsUrl) {
|
|
108163
|
-
|
|
108164
|
-
// Webpack gives a warning:
|
|
108165
|
-
// "Critical dependency: the request of a dependency is an expression"
|
|
108166
|
-
// Because tsc transpiles "await import" to "require" (when compiled to is CommonJS).
|
|
108167
|
-
// So use FunctionConstructor to avoid tsc.
|
|
108168
|
-
const module = await Function("x", "return import(x)")(jsUrl);
|
|
108186
|
+
const module = await __webpack_require__("../../core/frontend/lib/esm/extension/providers lazy recursive")(jsUrl);
|
|
108169
108187
|
return execute(module);
|
|
108170
108188
|
}
|
|
108171
108189
|
/** attempts to execute an extension module */
|
|
@@ -117958,7 +117976,7 @@ class MeshGraphic extends _Graphic__WEBPACK_IMPORTED_MODULE_2__.Graphic {
|
|
|
117958
117976
|
}
|
|
117959
117977
|
unionRange(range) {
|
|
117960
117978
|
if (this._instances)
|
|
117961
|
-
range.extendRange(range);
|
|
117979
|
+
range.extendRange(this._instances.range);
|
|
117962
117980
|
else
|
|
117963
117981
|
range.extendRange(this._meshRange);
|
|
117964
117982
|
}
|
|
@@ -302237,6 +302255,28 @@ const getClassName = (obj) => {
|
|
|
302237
302255
|
};
|
|
302238
302256
|
|
|
302239
302257
|
|
|
302258
|
+
/***/ }),
|
|
302259
|
+
|
|
302260
|
+
/***/ "../../core/frontend/lib/esm/extension/providers lazy recursive":
|
|
302261
|
+
/*!******************************************************************************!*\
|
|
302262
|
+
!*** ../../core/frontend/lib/esm/extension/providers/ lazy namespace object ***!
|
|
302263
|
+
\******************************************************************************/
|
|
302264
|
+
/***/ ((module) => {
|
|
302265
|
+
|
|
302266
|
+
function webpackEmptyAsyncContext(req) {
|
|
302267
|
+
// Here Promise.resolve().then() is used instead of new Promise() to prevent
|
|
302268
|
+
// uncaught exception popping up in devtools
|
|
302269
|
+
return Promise.resolve().then(() => {
|
|
302270
|
+
var e = new Error("Cannot find module '" + req + "'");
|
|
302271
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
302272
|
+
throw e;
|
|
302273
|
+
});
|
|
302274
|
+
}
|
|
302275
|
+
webpackEmptyAsyncContext.keys = () => ([]);
|
|
302276
|
+
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
|
|
302277
|
+
webpackEmptyAsyncContext.id = "../../core/frontend/lib/esm/extension/providers lazy recursive";
|
|
302278
|
+
module.exports = webpackEmptyAsyncContext;
|
|
302279
|
+
|
|
302240
302280
|
/***/ }),
|
|
302241
302281
|
|
|
302242
302282
|
/***/ "?088e":
|
|
@@ -312309,7 +312349,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
312309
312349
|
/***/ ((module) => {
|
|
312310
312350
|
|
|
312311
312351
|
"use strict";
|
|
312312
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.1.0-dev.
|
|
312352
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.1.0-dev.3","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"}}');
|
|
312313
312353
|
|
|
312314
312354
|
/***/ })
|
|
312315
312355
|
|