@itwin/presentation-frontend
Version:
Frontend of iModel.js Presentation library
55 lines • 3.09 kB
JavaScript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/**
* @module Core
*
* @docs-group-description Core
* Common types used for retrieving presentation data from iModels.
*/
export { Presentation } from "./presentation-frontend/Presentation.js";
export { PresentationManager, } from "./presentation-frontend/PresentationManager.js";
export { FavoritePropertiesScope, FavoritePropertiesManager, } from "./presentation-frontend/favorite-properties/FavoritePropertiesManager.js";
export { DefaultFavoritePropertiesStorageTypes, createFavoritePropertiesStorage, } from "./presentation-frontend/favorite-properties/FavoritePropertiesStorage.js";
export { consoleDiagnosticsHandler, createCombinedDiagnosticsHandler } from "./presentation-frontend/Diagnostics.js";
/**
* @module Logging
*
* @docs-group-description Logging
* Types related to logging in this package.
*/
export { PresentationFrontendLoggerCategory } from "./presentation-frontend/FrontendLoggerCategory.js";
/**
* @module UnifiedSelection
*
* @docs-group-description UnifiedSelection
* Types related to [unified selection]($docs/presentation/unified-selection/index.md).
*/
export { SelectionChangeEvent, SelectionChangeType, } from "./presentation-frontend/selection/SelectionChangeEvent.js";
export { SelectionManager } from "./presentation-frontend/selection/SelectionManager.js";
export { SelectionScopesManager, createSelectionScopeProps } from "./presentation-frontend/selection/SelectionScopesManager.js";
export { SelectionHandler } from "./presentation-frontend/selection/SelectionHandler.js";
export { HiliteSetProvider } from "./presentation-frontend/selection/HiliteSetProvider.js";
export { SelectionHelper } from "./presentation-frontend/selection/SelectionHelper.js";
const globalSymbolPresentationFrontend = Symbol.for("itwin.presentation.frontend.globals");
if (globalThis[globalSymbolPresentationFrontend]) {
// Get the stack trace from when the module was first loaded
const firstLoadStack = globalThis[globalSymbolPresentationFrontend].stack;
const error = new Error("Multiple @itwin/presentation-frontend imports detected! This may happen if:\n" +
"- You have multiple versions of the package installed\n" +
"- Your bundling configuration is incorrect\n" +
"- You're importing from both ESM and CommonJS versions");
/* eslint-disable no-console */
console.error("Duplicate @itwin/presentation-frontend import:", error);
console.error("First import occurred at:", firstLoadStack);
console.error("Current import occurred at:", error.stack);
/* eslint-enable no-console */
throw error;
}
else {
globalThis[globalSymbolPresentationFrontend] = {
stack: new Error().stack,
};
}
//# sourceMappingURL=presentation-frontend.js.map