@itwin/ecschema-rpcinterface-tests 5.5.0-dev.12 → 5.5.0-dev.13
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 +128 -83
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +16 -16
|
@@ -61727,6 +61727,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61727
61727
|
/* harmony import */ var _Exception__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Exception */ "../../core/ecschema-metadata/lib/esm/Exception.js");
|
|
61728
61728
|
/* harmony import */ var _Metadata_SchemaItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Metadata/SchemaItem */ "../../core/ecschema-metadata/lib/esm/Metadata/SchemaItem.js");
|
|
61729
61729
|
/* harmony import */ var _SchemaKey__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SchemaKey */ "../../core/ecschema-metadata/lib/esm/SchemaKey.js");
|
|
61730
|
+
/* harmony import */ var _utils_ECClassHierarchy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils/ECClassHierarchy */ "../../core/ecschema-metadata/lib/esm/utils/ECClassHierarchy.js");
|
|
61730
61731
|
/*---------------------------------------------------------------------------------------------
|
|
61731
61732
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
61732
61733
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -61735,6 +61736,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61735
61736
|
|
|
61736
61737
|
|
|
61737
61738
|
|
|
61739
|
+
|
|
61738
61740
|
/**
|
|
61739
61741
|
* @internal
|
|
61740
61742
|
*/
|
|
@@ -61895,13 +61897,19 @@ class SchemaContext {
|
|
|
61895
61897
|
_locaters;
|
|
61896
61898
|
_knownSchemas;
|
|
61897
61899
|
_fallbackLocaterDefined;
|
|
61900
|
+
_classHierarchy;
|
|
61898
61901
|
constructor() {
|
|
61899
61902
|
this._locaters = [];
|
|
61900
61903
|
this._knownSchemas = new SchemaCache();
|
|
61901
61904
|
this._locaters.push(this._knownSchemas);
|
|
61902
61905
|
this._fallbackLocaterDefined = false;
|
|
61906
|
+
this._classHierarchy = new _utils_ECClassHierarchy__WEBPACK_IMPORTED_MODULE_4__.ECClassHierarchy();
|
|
61903
61907
|
}
|
|
61904
61908
|
get locaters() { return this._locaters; }
|
|
61909
|
+
/** @internal */
|
|
61910
|
+
get classHierarchy() {
|
|
61911
|
+
return this._classHierarchy;
|
|
61912
|
+
}
|
|
61905
61913
|
/**
|
|
61906
61914
|
* Adds a locater to the context.
|
|
61907
61915
|
*
|
|
@@ -68833,7 +68841,6 @@ class ECClass extends _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem {
|
|
|
68833
68841
|
static get schemaItemType() { return _ECObjects__WEBPACK_IMPORTED_MODULE_3__.AbstractSchemaItemType.Class; } // need this so getItem("name", ECClass) in schema works
|
|
68834
68842
|
_modifier;
|
|
68835
68843
|
_baseClass;
|
|
68836
|
-
_derivedClasses;
|
|
68837
68844
|
_properties;
|
|
68838
68845
|
_customAttributes;
|
|
68839
68846
|
_mergedPropertyCache;
|
|
@@ -68868,18 +68875,24 @@ class ECClass extends _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem {
|
|
|
68868
68875
|
const oldBaseClass = this._baseClass;
|
|
68869
68876
|
this._baseClass = baseClass;
|
|
68870
68877
|
if (baseClass)
|
|
68871
|
-
this.
|
|
68878
|
+
this.schema.context.classHierarchy.addBaseClass(this.key, baseClass);
|
|
68872
68879
|
else if (oldBaseClass)
|
|
68873
|
-
this.
|
|
68880
|
+
this.schema.context.classHierarchy.removeBaseClass(this.key, oldBaseClass);
|
|
68874
68881
|
}
|
|
68875
68882
|
/**
|
|
68876
68883
|
* Gets the derived classes belonging to this class.
|
|
68877
68884
|
* @returns An array of ECClasses or undefined if no derived classes exist.
|
|
68878
68885
|
*/
|
|
68879
68886
|
async getDerivedClasses() {
|
|
68880
|
-
|
|
68887
|
+
const derivedClasses = [];
|
|
68888
|
+
for (const derivedClassKey of this.schema.context.classHierarchy.getDerivedClassKeys(this.key)) {
|
|
68889
|
+
const derivedClass = await this.schema.context.getSchemaItem(derivedClassKey, ECClass);
|
|
68890
|
+
if (derivedClass)
|
|
68891
|
+
derivedClasses.push(derivedClass);
|
|
68892
|
+
}
|
|
68893
|
+
if (derivedClasses.length === 0)
|
|
68881
68894
|
return undefined;
|
|
68882
|
-
return
|
|
68895
|
+
return derivedClasses;
|
|
68883
68896
|
}
|
|
68884
68897
|
/**
|
|
68885
68898
|
* Convenience method for adding an already loaded ECProperty used by create*Property methods.
|
|
@@ -69238,9 +69251,7 @@ class ECClass extends _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem {
|
|
|
69238
69251
|
});
|
|
69239
69252
|
}
|
|
69240
69253
|
this._baseClass = lazyBase;
|
|
69241
|
-
|
|
69242
|
-
return;
|
|
69243
|
-
this.addDerivedClass(baseClass, this);
|
|
69254
|
+
this.schema.context.classHierarchy.addBaseClass(this.key, lazyBase);
|
|
69244
69255
|
}
|
|
69245
69256
|
}
|
|
69246
69257
|
async fromJSON(classProps) {
|
|
@@ -69262,39 +69273,16 @@ class ECClass extends _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem {
|
|
|
69262
69273
|
* This is essentially a depth-first traversal through the inheritance tree.
|
|
69263
69274
|
*/
|
|
69264
69275
|
async *getAllBaseClasses() {
|
|
69265
|
-
const
|
|
69266
|
-
|
|
69267
|
-
if (
|
|
69268
|
-
for (let i = ecClass.mixins.length - 1; i >= 0; i--) {
|
|
69269
|
-
baseClasses.push(await ecClass.mixins[i]);
|
|
69270
|
-
}
|
|
69271
|
-
}
|
|
69272
|
-
if (ecClass.baseClass)
|
|
69273
|
-
baseClasses.push(await ecClass.baseClass);
|
|
69274
|
-
};
|
|
69275
|
-
while (baseClasses.length > 0) {
|
|
69276
|
-
const baseClass = baseClasses.pop();
|
|
69277
|
-
await addBaseClasses(baseClass);
|
|
69278
|
-
if (baseClass !== this)
|
|
69276
|
+
for (const baseClassKey of this.schema.context.classHierarchy.getBaseClassKeys(this.key)) {
|
|
69277
|
+
const baseClass = await this.schema.lookupItem(baseClassKey, ECClass);
|
|
69278
|
+
if (baseClass)
|
|
69279
69279
|
yield baseClass;
|
|
69280
69280
|
}
|
|
69281
69281
|
}
|
|
69282
69282
|
*getAllBaseClassesSync() {
|
|
69283
|
-
const
|
|
69284
|
-
|
|
69285
|
-
if (ecClass.schemaItemType === _ECObjects__WEBPACK_IMPORTED_MODULE_3__.SchemaItemType.EntityClass) { // cannot use EntityClass typeguard because of circular reference
|
|
69286
|
-
for (const m of Array.from(ecClass.getMixinsSync()).reverse()) {
|
|
69287
|
-
baseClasses.push(m);
|
|
69288
|
-
}
|
|
69289
|
-
}
|
|
69290
|
-
const baseClass = ecClass.getBaseClassSync();
|
|
69283
|
+
for (const baseClassKey of this.schema.context.classHierarchy.getBaseClassKeys(this.key)) {
|
|
69284
|
+
const baseClass = this.schema.lookupItemSync(baseClassKey, ECClass);
|
|
69291
69285
|
if (baseClass)
|
|
69292
|
-
baseClasses.push(baseClass);
|
|
69293
|
-
};
|
|
69294
|
-
while (baseClasses.length > 0) {
|
|
69295
|
-
const baseClass = baseClasses.pop();
|
|
69296
|
-
addBaseClasses(baseClass);
|
|
69297
|
-
if (baseClass !== this)
|
|
69298
69286
|
yield baseClass;
|
|
69299
69287
|
}
|
|
69300
69288
|
}
|
|
@@ -69442,35 +69430,31 @@ class ECClass extends _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem {
|
|
|
69442
69430
|
return false;
|
|
69443
69431
|
}
|
|
69444
69432
|
async is(targetClass, schemaName) {
|
|
69445
|
-
|
|
69446
|
-
|
|
69447
|
-
|
|
69448
|
-
if (_SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem.equalByKey(this, key))
|
|
69449
|
-
return true;
|
|
69450
|
-
return this.traverseBaseClasses((thisSchemaItem, thatSchemaItemOrKey) => _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem.equalByKey(thisSchemaItem, thatSchemaItemOrKey), key);
|
|
69451
|
-
}
|
|
69452
|
-
else {
|
|
69453
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(ECClass.isECClass(targetClass), "Expected targetClass to be of type ECClass");
|
|
69454
|
-
if (_SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem.equalByKey(this, targetClass))
|
|
69455
|
-
return true;
|
|
69456
|
-
return this.traverseBaseClasses((thisSchemaItem, thatSchemaItemOrKey) => _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem.equalByKey(thisSchemaItem, thatSchemaItemOrKey), targetClass);
|
|
69457
|
-
}
|
|
69433
|
+
return typeof targetClass === "string"
|
|
69434
|
+
? this.isSync(targetClass, schemaName ?? "")
|
|
69435
|
+
: this.isSync(targetClass);
|
|
69458
69436
|
}
|
|
69459
69437
|
/** @internal */
|
|
69460
69438
|
isSync(targetClass, schemaName) {
|
|
69439
|
+
let targetSchemaKey;
|
|
69461
69440
|
if (schemaName !== undefined) {
|
|
69462
69441
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(typeof (targetClass) === "string", "Expected targetClass of type string because schemaName was specified");
|
|
69463
|
-
|
|
69464
|
-
if (_SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem.equalByKey(this,
|
|
69442
|
+
targetSchemaKey = new _SchemaKey__WEBPACK_IMPORTED_MODULE_5__.SchemaItemKey(targetClass, new _SchemaKey__WEBPACK_IMPORTED_MODULE_5__.SchemaKey(schemaName));
|
|
69443
|
+
if (_SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem.equalByKey(this, targetSchemaKey))
|
|
69465
69444
|
return true;
|
|
69466
|
-
return this.traverseBaseClassesSync((thisSchemaItem, thatSchemaItemOrKey) => _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem.equalByKey(thisSchemaItem, thatSchemaItemOrKey), key);
|
|
69467
69445
|
}
|
|
69468
69446
|
else {
|
|
69469
69447
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(ECClass.isECClass(targetClass), "Expected targetClass to be of type ECClass");
|
|
69470
69448
|
if (_SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem.equalByKey(this, targetClass))
|
|
69471
69449
|
return true;
|
|
69472
|
-
|
|
69450
|
+
targetSchemaKey = targetClass.key;
|
|
69473
69451
|
}
|
|
69452
|
+
for (const baseClassKey of this.schema.context.classHierarchy.getBaseClassKeys(this.key)) {
|
|
69453
|
+
if (baseClassKey.matchesFullName(targetSchemaKey.fullName)) {
|
|
69454
|
+
return true;
|
|
69455
|
+
}
|
|
69456
|
+
}
|
|
69457
|
+
return false;
|
|
69474
69458
|
}
|
|
69475
69459
|
/**
|
|
69476
69460
|
* @internal
|
|
@@ -69489,35 +69473,6 @@ class ECClass extends _SchemaItem__WEBPACK_IMPORTED_MODULE_9__.SchemaItem {
|
|
|
69489
69473
|
setModifier(modifier) {
|
|
69490
69474
|
this._modifier = modifier;
|
|
69491
69475
|
}
|
|
69492
|
-
/**
|
|
69493
|
-
* Adds an ECClass to the derived class collection. This method is only intended to update the local
|
|
69494
|
-
* cache of derived classes. For adding a class to the hierarchy, use the baseClass setter method.
|
|
69495
|
-
* @param prop The property to add.
|
|
69496
|
-
* @return The property that was added.
|
|
69497
|
-
*/
|
|
69498
|
-
addDerivedClass(baseClass, derivedClass) {
|
|
69499
|
-
if (!baseClass._derivedClasses)
|
|
69500
|
-
baseClass._derivedClasses = new Map();
|
|
69501
|
-
if (baseClass._derivedClasses.has(derivedClass.fullName))
|
|
69502
|
-
return;
|
|
69503
|
-
if (derivedClass.isSync(baseClass)) {
|
|
69504
|
-
const promise = new _DelayedPromise__WEBPACK_IMPORTED_MODULE_1__.DelayedPromiseWithProps(derivedClass.key, async () => derivedClass);
|
|
69505
|
-
baseClass._derivedClasses.set(derivedClass.fullName, promise);
|
|
69506
|
-
}
|
|
69507
|
-
}
|
|
69508
|
-
/**
|
|
69509
|
-
* Removes an ECClass from the derived class collection. This method is only intended to update the local
|
|
69510
|
-
* cache of derived classes. For updating the class hierarchy, use the baseClass setter method.
|
|
69511
|
-
* @param prop The property to add.
|
|
69512
|
-
* @return The property that was added.
|
|
69513
|
-
*/
|
|
69514
|
-
removeDerivedClass(baseClass, derivedClass) {
|
|
69515
|
-
if (!baseClass._derivedClasses)
|
|
69516
|
-
return;
|
|
69517
|
-
if (!baseClass._derivedClasses.has(derivedClass.fullName))
|
|
69518
|
-
return;
|
|
69519
|
-
baseClass._derivedClasses.delete(derivedClass.fullName);
|
|
69520
|
-
}
|
|
69521
69476
|
}
|
|
69522
69477
|
/**
|
|
69523
69478
|
* A Typescript class representation of an ECStructClass.
|
|
@@ -69953,6 +69908,7 @@ class EntityClass extends _Class__WEBPACK_IMPORTED_MODULE_4__.ECClass {
|
|
|
69953
69908
|
addMixin(mixin) {
|
|
69954
69909
|
if (!this._mixins)
|
|
69955
69910
|
this._mixins = [];
|
|
69911
|
+
this.schema.context.classHierarchy.addBaseClass(this.key, mixin.key, true);
|
|
69956
69912
|
this._mixins.push(new _DelayedPromise__WEBPACK_IMPORTED_MODULE_0__.DelayedPromiseWithProps(mixin.key, async () => mixin));
|
|
69957
69913
|
return;
|
|
69958
69914
|
}
|
|
@@ -70110,6 +70066,7 @@ class EntityClass extends _Class__WEBPACK_IMPORTED_MODULE_4__.ECClass {
|
|
|
70110
70066
|
if (!mixinSchemaItemKey)
|
|
70111
70067
|
throw new _Exception__WEBPACK_IMPORTED_MODULE_3__.ECSchemaError(_Exception__WEBPACK_IMPORTED_MODULE_3__.ECSchemaStatus.InvalidECJson, `The ECEntityClass ${this.name} has a mixin ("${name}") that cannot be found.`);
|
|
70112
70068
|
if (!this._mixins.find((value) => mixinSchemaItemKey.matchesFullName(value.fullName))) {
|
|
70069
|
+
this.schema.context.classHierarchy.addBaseClass(this.key, mixinSchemaItemKey, true);
|
|
70113
70070
|
this._mixins.push(new _DelayedPromise__WEBPACK_IMPORTED_MODULE_0__.DelayedPromiseWithProps(mixinSchemaItemKey, async () => {
|
|
70114
70071
|
const mixin = await this.schema.lookupItem(mixinSchemaItemKey, _Mixin__WEBPACK_IMPORTED_MODULE_5__.Mixin);
|
|
70115
70072
|
if (undefined === mixin)
|
|
@@ -75975,6 +75932,94 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75975
75932
|
*/
|
|
75976
75933
|
|
|
75977
75934
|
|
|
75935
|
+
/***/ }),
|
|
75936
|
+
|
|
75937
|
+
/***/ "../../core/ecschema-metadata/lib/esm/utils/ECClassHierarchy.js":
|
|
75938
|
+
/*!**********************************************************************!*\
|
|
75939
|
+
!*** ../../core/ecschema-metadata/lib/esm/utils/ECClassHierarchy.js ***!
|
|
75940
|
+
\**********************************************************************/
|
|
75941
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
75942
|
+
|
|
75943
|
+
"use strict";
|
|
75944
|
+
__webpack_require__.r(__webpack_exports__);
|
|
75945
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
75946
|
+
/* harmony export */ ECClassHierarchy: () => (/* binding */ ECClassHierarchy)
|
|
75947
|
+
/* harmony export */ });
|
|
75948
|
+
/**
|
|
75949
|
+
* The class hierarchy is a helper class that maintains the relationships between ECClasses and their base classes
|
|
75950
|
+
* within a SchemaContext. It allows for efficient retrieval of base and derived classes based on their schema item
|
|
75951
|
+
* keys to support lazy loaded classes properly.
|
|
75952
|
+
* @internal
|
|
75953
|
+
*/
|
|
75954
|
+
class ECClassHierarchy {
|
|
75955
|
+
_hierarchy = new Map();
|
|
75956
|
+
addClassEntry(classKey) {
|
|
75957
|
+
const classEntry = { baseClasses: [], derivedClasses: [] };
|
|
75958
|
+
this._hierarchy.set(classKey.fullName, classEntry);
|
|
75959
|
+
return classEntry;
|
|
75960
|
+
}
|
|
75961
|
+
addBaseClass(classKey, baseClassKey, isMixin = false) {
|
|
75962
|
+
const classEntry = this._hierarchy.get(classKey.fullName) ?? this.addClassEntry(classKey);
|
|
75963
|
+
if (!classEntry.baseClasses.find((entry) => entry.baseClassKey.matches(baseClassKey))) {
|
|
75964
|
+
classEntry.baseClasses.push({ baseClassKey, isMixin });
|
|
75965
|
+
}
|
|
75966
|
+
if (!isMixin) {
|
|
75967
|
+
this.addDerivedClass(baseClassKey, classKey);
|
|
75968
|
+
}
|
|
75969
|
+
}
|
|
75970
|
+
addDerivedClass(baseClassKey, classKey) {
|
|
75971
|
+
const baseClassEntry = this._hierarchy.get(baseClassKey.fullName) ?? this.addClassEntry(baseClassKey);
|
|
75972
|
+
if (!baseClassEntry.derivedClasses.find((derivedKey) => derivedKey.matches(classKey))) {
|
|
75973
|
+
baseClassEntry.derivedClasses.push(classKey);
|
|
75974
|
+
}
|
|
75975
|
+
}
|
|
75976
|
+
removeBaseClass(classKey, baseClassKey) {
|
|
75977
|
+
const classEntry = this._hierarchy.get(classKey.fullName);
|
|
75978
|
+
if (!classEntry) {
|
|
75979
|
+
return;
|
|
75980
|
+
}
|
|
75981
|
+
const index = classEntry.baseClasses.findIndex((entry) => entry.baseClassKey.matches(baseClassKey));
|
|
75982
|
+
if (index !== -1) {
|
|
75983
|
+
classEntry.baseClasses.splice(index, 1);
|
|
75984
|
+
}
|
|
75985
|
+
this.removedDerivedClass(baseClassKey, classKey);
|
|
75986
|
+
}
|
|
75987
|
+
removedDerivedClass(baseClassKey, classKey) {
|
|
75988
|
+
const baseClassEntry = this._hierarchy.get(baseClassKey.fullName);
|
|
75989
|
+
if (!baseClassEntry) {
|
|
75990
|
+
return;
|
|
75991
|
+
}
|
|
75992
|
+
const derivedIndex = baseClassEntry.derivedClasses.findIndex((derivedKey) => derivedKey.matches(classKey));
|
|
75993
|
+
if (derivedIndex !== -1) {
|
|
75994
|
+
baseClassEntry.derivedClasses.splice(derivedIndex, 1);
|
|
75995
|
+
}
|
|
75996
|
+
}
|
|
75997
|
+
getBaseClassKeys(classKey) {
|
|
75998
|
+
const classEntry = this._hierarchy.get(classKey.fullName);
|
|
75999
|
+
if (!classEntry) {
|
|
76000
|
+
return [];
|
|
76001
|
+
}
|
|
76002
|
+
const baseClassKeys = [];
|
|
76003
|
+
for (const entry of classEntry.baseClasses) {
|
|
76004
|
+
baseClassKeys.push(entry.baseClassKey);
|
|
76005
|
+
baseClassKeys.push(...this.getBaseClassKeys(entry.baseClassKey));
|
|
76006
|
+
}
|
|
76007
|
+
return baseClassKeys;
|
|
76008
|
+
}
|
|
76009
|
+
getDerivedClassKeys(classKey) {
|
|
76010
|
+
const classEntry = this._hierarchy.get(classKey.fullName);
|
|
76011
|
+
if (!classEntry) {
|
|
76012
|
+
return [];
|
|
76013
|
+
}
|
|
76014
|
+
const derivedClassKeys = [...classEntry.derivedClasses];
|
|
76015
|
+
for (const derivedClassKey of classEntry.derivedClasses) {
|
|
76016
|
+
derivedClassKeys.push(...this.getDerivedClassKeys(derivedClassKey));
|
|
76017
|
+
}
|
|
76018
|
+
return derivedClassKeys;
|
|
76019
|
+
}
|
|
76020
|
+
}
|
|
76021
|
+
|
|
76022
|
+
|
|
75978
76023
|
/***/ }),
|
|
75979
76024
|
|
|
75980
76025
|
/***/ "../../core/ecschema-metadata/lib/esm/utils/SchemaGraph.js":
|
|
@@ -320594,7 +320639,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
320594
320639
|
/***/ ((module) => {
|
|
320595
320640
|
|
|
320596
320641
|
"use strict";
|
|
320597
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.5.0-dev.
|
|
320642
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.5.0-dev.13","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/draco":"^4.3.4","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"}}');
|
|
320598
320643
|
|
|
320599
320644
|
/***/ })
|
|
320600
320645
|
|