@itwin/presentation-backend 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.
|
@@ -27,4 +27,24 @@ Object.defineProperty(exports, "RulesetEmbedder", { enumerable: true, get: funct
|
|
|
27
27
|
var BackendLoggerCategory_js_1 = require("./presentation-backend/BackendLoggerCategory.js");
|
|
28
28
|
Object.defineProperty(exports, "PresentationBackendLoggerCategory", { enumerable: true, get: function () { return BackendLoggerCategory_js_1.PresentationBackendLoggerCategory; } });
|
|
29
29
|
Object.defineProperty(exports, "PresentationBackendNativeLoggerCategory", { enumerable: true, get: function () { return BackendLoggerCategory_js_1.PresentationBackendNativeLoggerCategory; } });
|
|
30
|
+
const globalSymbolPresentationBackend = Symbol.for("itwin.presentation.backend.globals");
|
|
31
|
+
if (globalThis[globalSymbolPresentationBackend]) {
|
|
32
|
+
// Get the stack trace from when the module was first loaded
|
|
33
|
+
const firstLoadStack = globalThis[globalSymbolPresentationBackend].stack;
|
|
34
|
+
const error = new Error("Multiple @itwin/presentation-backend imports detected! This may happen if:\n" +
|
|
35
|
+
"- You have multiple versions of the package installed\n" +
|
|
36
|
+
"- Your bundling configuration is incorrect\n" +
|
|
37
|
+
"- You're importing from both ESM and CommonJS versions");
|
|
38
|
+
/* eslint-disable no-console */
|
|
39
|
+
console.error("Duplicate @itwin/presentation-backend import:", error);
|
|
40
|
+
console.error("First import occurred at:", firstLoadStack);
|
|
41
|
+
console.error("Current import occurred at:", error.stack);
|
|
42
|
+
/* eslint-enable no-console */
|
|
43
|
+
throw error;
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
globalThis[globalSymbolPresentationBackend] = {
|
|
47
|
+
stack: new Error().stack,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
30
50
|
//# sourceMappingURL=presentation-backend.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentation-backend.js","sourceRoot":"","sources":["../../src/presentation-backend.ts"],"names":[],"mappings":";;;AAAA;;;gGAGgG;AAChG;;;;;GAKG;AACH,0EAAwJ;AAA7D,+GAAA,YAAY,OAAA;AACvG,wFAauD;AAZrD,4HAAA,kBAAkB,OAAA;AAWlB,6HAAA,mBAAmB,OAAA;AAIrB,gFAAwH;AAAnE,qHAAA,eAAe,OAAA;AAGpE;;;;;GAKG;AACH,4FAA6I;AAApI,6IAAA,iCAAiC,OAAA;AAAE,mJAAA,uCAAuC,OAAA","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/**\n * @module Core\n *\n * @docs-group-description Core\n * Common types used for retrieving presentation data from iModels.\n */\nexport { PresentationProps, MultiManagerPresentationProps, SingleManagerPresentationProps, Presentation } from \"./presentation-backend/Presentation.js\";\nexport {\n HierarchyCacheMode,\n HierarchyCacheConfig,\n MemoryHierarchyCacheConfig,\n DiskHierarchyCacheConfig,\n HybridCacheConfig,\n ContentCacheConfig,\n PresentationManagerCachingConfig,\n UnitSystemFormat,\n MultiElementPropertiesResponse,\n PresentationAssetsRootConfig,\n PresentationManagerProps,\n PresentationManager,\n} from \"./presentation-backend/PresentationManager.js\";\nexport { RulesetManager } from \"./presentation-backend/RulesetManager.js\";\nexport { RulesetVariablesManager } from \"./presentation-backend/RulesetVariablesManager.js\";\nexport { RulesetInsertOptions, RulesetEmbedderProps, RulesetEmbedder } from \"./presentation-backend/RulesetEmbedder.js\";\nexport { BackendDiagnosticsHandler, BackendDiagnosticsOptions, BackendDiagnosticsAttribute } from \"./presentation-backend/Utils.js\";\n\n/**\n * @module Logging\n *\n * @docs-group-description Logging\n * Types related to logging in this package.\n */\nexport { PresentationBackendLoggerCategory, PresentationBackendNativeLoggerCategory } from \"./presentation-backend/BackendLoggerCategory.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"presentation-backend.js","sourceRoot":"","sources":["../../src/presentation-backend.ts"],"names":[],"mappings":";;;AAAA;;;gGAGgG;AAChG;;;;;GAKG;AACH,0EAAwJ;AAA7D,+GAAA,YAAY,OAAA;AACvG,wFAauD;AAZrD,4HAAA,kBAAkB,OAAA;AAWlB,6HAAA,mBAAmB,OAAA;AAIrB,gFAAwH;AAAnE,qHAAA,eAAe,OAAA;AAGpE;;;;;GAKG;AACH,4FAA6I;AAApI,6IAAA,iCAAiC,OAAA;AAAE,mJAAA,uCAAuC,OAAA;AAEnF,MAAM,+BAA+B,GAAG,MAAM,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;AACzF,IAAK,UAAkB,CAAC,+BAA+B,CAAC,EAAE,CAAC;IACzD,4DAA4D;IAC5D,MAAM,cAAc,GAAI,UAAkB,CAAC,+BAA+B,CAAC,CAAC,KAAK,CAAC;IAElF,MAAM,KAAK,GAAG,IAAI,KAAK,CACrB,8EAA8E;QAC5E,yDAAyD;QACzD,8CAA8C;QAC9C,wDAAwD,CAC3D,CAAC;IAEF,+BAA+B;IAC/B,OAAO,CAAC,KAAK,CAAC,+CAA+C,EAAE,KAAK,CAAC,CAAC;IACtE,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,cAAc,CAAC,CAAC;IAC3D,OAAO,CAAC,KAAK,CAAC,6BAA6B,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAC1D,8BAA8B;IAE9B,MAAM,KAAK,CAAC;AACd,CAAC;KAAM,CAAC;IACL,UAAkB,CAAC,+BAA+B,CAAC,GAAG;QACrD,KAAK,EAAE,IAAI,KAAK,EAAE,CAAC,KAAK;KACzB,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/**\n * @module Core\n *\n * @docs-group-description Core\n * Common types used for retrieving presentation data from iModels.\n */\nexport { PresentationProps, MultiManagerPresentationProps, SingleManagerPresentationProps, Presentation } from \"./presentation-backend/Presentation.js\";\nexport {\n HierarchyCacheMode,\n HierarchyCacheConfig,\n MemoryHierarchyCacheConfig,\n DiskHierarchyCacheConfig,\n HybridCacheConfig,\n ContentCacheConfig,\n PresentationManagerCachingConfig,\n UnitSystemFormat,\n MultiElementPropertiesResponse,\n PresentationAssetsRootConfig,\n PresentationManagerProps,\n PresentationManager,\n} from \"./presentation-backend/PresentationManager.js\";\nexport { RulesetManager } from \"./presentation-backend/RulesetManager.js\";\nexport { RulesetVariablesManager } from \"./presentation-backend/RulesetVariablesManager.js\";\nexport { RulesetInsertOptions, RulesetEmbedderProps, RulesetEmbedder } from \"./presentation-backend/RulesetEmbedder.js\";\nexport { BackendDiagnosticsHandler, BackendDiagnosticsOptions, BackendDiagnosticsAttribute } from \"./presentation-backend/Utils.js\";\n\n/**\n * @module Logging\n *\n * @docs-group-description Logging\n * Types related to logging in this package.\n */\nexport { PresentationBackendLoggerCategory, PresentationBackendNativeLoggerCategory } from \"./presentation-backend/BackendLoggerCategory.js\";\n\nconst globalSymbolPresentationBackend = Symbol.for(\"itwin.presentation.backend.globals\");\nif ((globalThis as any)[globalSymbolPresentationBackend]) {\n // Get the stack trace from when the module was first loaded\n const firstLoadStack = (globalThis as any)[globalSymbolPresentationBackend].stack;\n\n const error = new Error(\n \"Multiple @itwin/presentation-backend imports detected! This may happen if:\\n\" +\n \"- You have multiple versions of the package installed\\n\" +\n \"- Your bundling configuration is incorrect\\n\" +\n \"- You're importing from both ESM and CommonJS versions\",\n );\n\n /* eslint-disable no-console */\n console.error(\"Duplicate @itwin/presentation-backend import:\", error);\n console.error(\"First import occurred at:\", firstLoadStack);\n console.error(\"Current import occurred at:\", error.stack);\n /* eslint-enable no-console */\n\n throw error;\n} else {\n (globalThis as any)[globalSymbolPresentationBackend] = {\n stack: new Error().stack,\n };\n}"]}
|
|
@@ -18,4 +18,24 @@ export { RulesetEmbedder } from "./presentation-backend/RulesetEmbedder.js";
|
|
|
18
18
|
* Types related to logging in this package.
|
|
19
19
|
*/
|
|
20
20
|
export { PresentationBackendLoggerCategory, PresentationBackendNativeLoggerCategory } from "./presentation-backend/BackendLoggerCategory.js";
|
|
21
|
+
const globalSymbolPresentationBackend = Symbol.for("itwin.presentation.backend.globals");
|
|
22
|
+
if (globalThis[globalSymbolPresentationBackend]) {
|
|
23
|
+
// Get the stack trace from when the module was first loaded
|
|
24
|
+
const firstLoadStack = globalThis[globalSymbolPresentationBackend].stack;
|
|
25
|
+
const error = new Error("Multiple @itwin/presentation-backend imports detected! This may happen if:\n" +
|
|
26
|
+
"- You have multiple versions of the package installed\n" +
|
|
27
|
+
"- Your bundling configuration is incorrect\n" +
|
|
28
|
+
"- You're importing from both ESM and CommonJS versions");
|
|
29
|
+
/* eslint-disable no-console */
|
|
30
|
+
console.error("Duplicate @itwin/presentation-backend import:", error);
|
|
31
|
+
console.error("First import occurred at:", firstLoadStack);
|
|
32
|
+
console.error("Current import occurred at:", error.stack);
|
|
33
|
+
/* eslint-enable no-console */
|
|
34
|
+
throw error;
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
globalThis[globalSymbolPresentationBackend] = {
|
|
38
|
+
stack: new Error().stack,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
21
41
|
//# sourceMappingURL=presentation-backend.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentation-backend.js","sourceRoot":"","sources":["../../src/presentation-backend.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;;;;GAKG;AACH,OAAO,EAAoF,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACxJ,OAAO,EACL,kBAAkB,EAWlB,mBAAmB,GACpB,MAAM,+CAA+C,CAAC;AAGvD,OAAO,EAA8C,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAGxH;;;;;GAKG;AACH,OAAO,EAAE,iCAAiC,EAAE,uCAAuC,EAAE,MAAM,iDAAiD,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/**\n * @module Core\n *\n * @docs-group-description Core\n * Common types used for retrieving presentation data from iModels.\n */\nexport { PresentationProps, MultiManagerPresentationProps, SingleManagerPresentationProps, Presentation } from \"./presentation-backend/Presentation.js\";\nexport {\n HierarchyCacheMode,\n HierarchyCacheConfig,\n MemoryHierarchyCacheConfig,\n DiskHierarchyCacheConfig,\n HybridCacheConfig,\n ContentCacheConfig,\n PresentationManagerCachingConfig,\n UnitSystemFormat,\n MultiElementPropertiesResponse,\n PresentationAssetsRootConfig,\n PresentationManagerProps,\n PresentationManager,\n} from \"./presentation-backend/PresentationManager.js\";\nexport { RulesetManager } from \"./presentation-backend/RulesetManager.js\";\nexport { RulesetVariablesManager } from \"./presentation-backend/RulesetVariablesManager.js\";\nexport { RulesetInsertOptions, RulesetEmbedderProps, RulesetEmbedder } from \"./presentation-backend/RulesetEmbedder.js\";\nexport { BackendDiagnosticsHandler, BackendDiagnosticsOptions, BackendDiagnosticsAttribute } from \"./presentation-backend/Utils.js\";\n\n/**\n * @module Logging\n *\n * @docs-group-description Logging\n * Types related to logging in this package.\n */\nexport { PresentationBackendLoggerCategory, PresentationBackendNativeLoggerCategory } from \"./presentation-backend/BackendLoggerCategory.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"presentation-backend.js","sourceRoot":"","sources":["../../src/presentation-backend.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;;;;GAKG;AACH,OAAO,EAAoF,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACxJ,OAAO,EACL,kBAAkB,EAWlB,mBAAmB,GACpB,MAAM,+CAA+C,CAAC;AAGvD,OAAO,EAA8C,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAGxH;;;;;GAKG;AACH,OAAO,EAAE,iCAAiC,EAAE,uCAAuC,EAAE,MAAM,iDAAiD,CAAC;AAE7I,MAAM,+BAA+B,GAAG,MAAM,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;AACzF,IAAK,UAAkB,CAAC,+BAA+B,CAAC,EAAE,CAAC;IACzD,4DAA4D;IAC5D,MAAM,cAAc,GAAI,UAAkB,CAAC,+BAA+B,CAAC,CAAC,KAAK,CAAC;IAElF,MAAM,KAAK,GAAG,IAAI,KAAK,CACrB,8EAA8E;QAC5E,yDAAyD;QACzD,8CAA8C;QAC9C,wDAAwD,CAC3D,CAAC;IAEF,+BAA+B;IAC/B,OAAO,CAAC,KAAK,CAAC,+CAA+C,EAAE,KAAK,CAAC,CAAC;IACtE,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,cAAc,CAAC,CAAC;IAC3D,OAAO,CAAC,KAAK,CAAC,6BAA6B,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAC1D,8BAA8B;IAE9B,MAAM,KAAK,CAAC;AACd,CAAC;KAAM,CAAC;IACL,UAAkB,CAAC,+BAA+B,CAAC,GAAG;QACrD,KAAK,EAAE,IAAI,KAAK,EAAE,CAAC,KAAK;KACzB,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/**\n * @module Core\n *\n * @docs-group-description Core\n * Common types used for retrieving presentation data from iModels.\n */\nexport { PresentationProps, MultiManagerPresentationProps, SingleManagerPresentationProps, Presentation } from \"./presentation-backend/Presentation.js\";\nexport {\n HierarchyCacheMode,\n HierarchyCacheConfig,\n MemoryHierarchyCacheConfig,\n DiskHierarchyCacheConfig,\n HybridCacheConfig,\n ContentCacheConfig,\n PresentationManagerCachingConfig,\n UnitSystemFormat,\n MultiElementPropertiesResponse,\n PresentationAssetsRootConfig,\n PresentationManagerProps,\n PresentationManager,\n} from \"./presentation-backend/PresentationManager.js\";\nexport { RulesetManager } from \"./presentation-backend/RulesetManager.js\";\nexport { RulesetVariablesManager } from \"./presentation-backend/RulesetVariablesManager.js\";\nexport { RulesetInsertOptions, RulesetEmbedderProps, RulesetEmbedder } from \"./presentation-backend/RulesetEmbedder.js\";\nexport { BackendDiagnosticsHandler, BackendDiagnosticsOptions, BackendDiagnosticsAttribute } from \"./presentation-backend/Utils.js\";\n\n/**\n * @module Logging\n *\n * @docs-group-description Logging\n * Types related to logging in this package.\n */\nexport { PresentationBackendLoggerCategory, PresentationBackendNativeLoggerCategory } from \"./presentation-backend/BackendLoggerCategory.js\";\n\nconst globalSymbolPresentationBackend = Symbol.for(\"itwin.presentation.backend.globals\");\nif ((globalThis as any)[globalSymbolPresentationBackend]) {\n // Get the stack trace from when the module was first loaded\n const firstLoadStack = (globalThis as any)[globalSymbolPresentationBackend].stack;\n\n const error = new Error(\n \"Multiple @itwin/presentation-backend imports detected! This may happen if:\\n\" +\n \"- You have multiple versions of the package installed\\n\" +\n \"- Your bundling configuration is incorrect\\n\" +\n \"- You're importing from both ESM and CommonJS versions\",\n );\n\n /* eslint-disable no-console */\n console.error(\"Duplicate @itwin/presentation-backend import:\", error);\n console.error(\"First import occurred at:\", firstLoadStack);\n console.error(\"Current import occurred at:\", error.stack);\n /* eslint-enable no-console */\n\n throw error;\n} else {\n (globalThis as any)[globalSymbolPresentationBackend] = {\n stack: new Error().stack,\n };\n}"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/presentation-backend",
|
|
3
|
-
"version": "5.1.0-dev.
|
|
3
|
+
"version": "5.1.0-dev.37",
|
|
4
4
|
"description": "Backend of iTwin.js Presentation library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"./package.json": "./package.json"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@itwin/core-
|
|
40
|
-
"@itwin/core-
|
|
41
|
-
"@itwin/
|
|
42
|
-
"@itwin/
|
|
43
|
-
"@itwin/
|
|
44
|
-
"@itwin/
|
|
39
|
+
"@itwin/core-bentley": "5.1.0-dev.37",
|
|
40
|
+
"@itwin/core-backend": "5.1.0-dev.37",
|
|
41
|
+
"@itwin/ecschema-metadata": "5.1.0-dev.37",
|
|
42
|
+
"@itwin/presentation-common": "5.1.0-dev.37",
|
|
43
|
+
"@itwin/core-quantity": "5.1.0-dev.37",
|
|
44
|
+
"@itwin/core-common": "5.1.0-dev.37"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@itwin/eslint-plugin": "5.0.0-dev.1",
|
|
@@ -76,13 +76,13 @@
|
|
|
76
76
|
"sinon-chai": "^3.7.0",
|
|
77
77
|
"typemoq": "^2.1.0",
|
|
78
78
|
"typescript": "~5.6.2",
|
|
79
|
-
"@itwin/build-tools": "5.1.0-dev.
|
|
80
|
-
"@itwin/core-
|
|
81
|
-
"@itwin/
|
|
82
|
-
"@itwin/
|
|
83
|
-
"@itwin/core-
|
|
84
|
-
"@itwin/core-
|
|
85
|
-
"@itwin/presentation-common": "5.1.0-dev.
|
|
79
|
+
"@itwin/build-tools": "5.1.0-dev.37",
|
|
80
|
+
"@itwin/core-backend": "5.1.0-dev.37",
|
|
81
|
+
"@itwin/ecschema-metadata": "5.1.0-dev.37",
|
|
82
|
+
"@itwin/core-common": "5.1.0-dev.37",
|
|
83
|
+
"@itwin/core-quantity": "5.1.0-dev.37",
|
|
84
|
+
"@itwin/core-bentley": "5.1.0-dev.37",
|
|
85
|
+
"@itwin/presentation-common": "5.1.0-dev.37",
|
|
86
86
|
"internal-tools": "3.0.0-dev.69"
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|