@itwin/presentation-frontend 5.1.2 → 5.1.3-experimental.1

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +6 -1
  2. package/lib/cjs/presentation-frontend/ConnectivityInformationProvider.js.map +1 -1
  3. package/lib/cjs/presentation-frontend/Diagnostics.js.map +1 -1
  4. package/lib/cjs/presentation-frontend/FrontendLoggerCategory.js.map +1 -1
  5. package/lib/cjs/presentation-frontend/IModelConnectionInitialization.js.map +1 -1
  6. package/lib/cjs/presentation-frontend/InternalSymbols.js.map +1 -1
  7. package/lib/cjs/presentation-frontend/IpcRequestsHandler.js.map +1 -1
  8. package/lib/cjs/presentation-frontend/LocalizationHelper.js.map +1 -1
  9. package/lib/cjs/presentation-frontend/Presentation.js.map +1 -1
  10. package/lib/cjs/presentation-frontend/PresentationManager.js.map +1 -1
  11. package/lib/cjs/presentation-frontend/RulesetManager.js.map +1 -1
  12. package/lib/cjs/presentation-frontend/RulesetVariablesManager.js.map +1 -1
  13. package/lib/cjs/presentation-frontend/StreamedResponseGenerator.js.map +1 -1
  14. package/lib/cjs/presentation-frontend/favorite-properties/FavoritePropertiesManager.js +7 -7
  15. package/lib/cjs/presentation-frontend/favorite-properties/FavoritePropertiesManager.js.map +1 -1
  16. package/lib/cjs/presentation-frontend/favorite-properties/FavoritePropertiesStorage.js.map +1 -1
  17. package/lib/cjs/presentation-frontend/selection/HiliteSetProvider.js.map +1 -1
  18. package/lib/cjs/presentation-frontend/selection/ISelectionProvider.js.map +1 -1
  19. package/lib/cjs/presentation-frontend/selection/SelectionChangeEvent.js.map +1 -1
  20. package/lib/cjs/presentation-frontend/selection/SelectionHandler.js.map +1 -1
  21. package/lib/cjs/presentation-frontend/selection/SelectionHelper.js.map +1 -1
  22. package/lib/cjs/presentation-frontend/selection/SelectionManager.js.map +1 -1
  23. package/lib/cjs/presentation-frontend/selection/SelectionScopesManager.js.map +1 -1
  24. package/lib/cjs/presentation-frontend.js.map +1 -1
  25. package/lib/esm/presentation-frontend/ConnectivityInformationProvider.js.map +1 -1
  26. package/lib/esm/presentation-frontend/Diagnostics.js.map +1 -1
  27. package/lib/esm/presentation-frontend/FrontendLoggerCategory.js.map +1 -1
  28. package/lib/esm/presentation-frontend/IModelConnectionInitialization.js.map +1 -1
  29. package/lib/esm/presentation-frontend/InternalSymbols.js.map +1 -1
  30. package/lib/esm/presentation-frontend/IpcRequestsHandler.js.map +1 -1
  31. package/lib/esm/presentation-frontend/LocalizationHelper.js.map +1 -1
  32. package/lib/esm/presentation-frontend/Presentation.js.map +1 -1
  33. package/lib/esm/presentation-frontend/PresentationManager.js.map +1 -1
  34. package/lib/esm/presentation-frontend/RulesetManager.js.map +1 -1
  35. package/lib/esm/presentation-frontend/RulesetVariablesManager.js.map +1 -1
  36. package/lib/esm/presentation-frontend/StreamedResponseGenerator.js.map +1 -1
  37. package/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesManager.js +7 -7
  38. package/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesManager.js.map +1 -1
  39. package/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesStorage.js.map +1 -1
  40. package/lib/esm/presentation-frontend/selection/HiliteSetProvider.js.map +1 -1
  41. package/lib/esm/presentation-frontend/selection/ISelectionProvider.js.map +1 -1
  42. package/lib/esm/presentation-frontend/selection/SelectionChangeEvent.js.map +1 -1
  43. package/lib/esm/presentation-frontend/selection/SelectionHandler.js.map +1 -1
  44. package/lib/esm/presentation-frontend/selection/SelectionHelper.js.map +1 -1
  45. package/lib/esm/presentation-frontend/selection/SelectionManager.js.map +1 -1
  46. package/lib/esm/presentation-frontend/selection/SelectionScopesManager.js.map +1 -1
  47. package/lib/esm/presentation-frontend.js.map +1 -1
  48. package/package.json +15 -15
@@ -1 +1 @@
1
- {"version":3,"file":"SelectionScopesManager.js","sourceRoot":"","sources":["../../../../src/presentation-frontend/selection/SelectionScopesManager.ts"],"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,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;QACxC,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAED;;;;;;GAMG;AACH,MAAM,UAAU,yBAAyB,CAAC,KAAgE;IACxG,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC;IAC3B,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC;IACvB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,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/* eslint-disable @typescript-eslint/no-deprecated */\n/** @packageDocumentation\n * @module UnifiedSelection\n */\n\nimport { Id64Arg } from \"@itwin/core-bentley\";\nimport { IModelRpcProps } from \"@itwin/core-common\";\nimport { IModelConnection } from \"@itwin/core-frontend\";\nimport {\n ClientDiagnosticsAttribute,\n ComputeSelectionRequestOptions,\n DEFAULT_KEYS_BATCH_SIZE,\n KeySet,\n KeySetJSON,\n SelectionScope,\n SelectionScopeProps,\n SelectionScopeRequestOptions,\n} from \"@itwin/presentation-common\";\nimport { RpcRequestsHandler } from \"@itwin/presentation-common/internal\";\n\n/**\n * Properties for creating [[SelectionScopesManager]].\n * @public\n * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use `computeSelection` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.\n */\nexport interface SelectionScopesManagerProps {\n /** RPC handler to use for requesting selection scopes */\n rpcRequestsHandler: {\n /** Requests available selection scopes */\n getSelectionScopes: (args: SelectionScopeRequestOptions<IModelRpcProps> & ClientDiagnosticsAttribute) => Promise<SelectionScope[]>;\n /** Requests keys to be added to logical selection based on provided element IDs and selection scope */\n computeSelection: (args: ComputeSelectionRequestOptions<IModelRpcProps> & ClientDiagnosticsAttribute) => Promise<KeySetJSON>;\n };\n\n /** Provider of active locale to use for localizing scopes */\n localeProvider?: () => string | undefined;\n}\n\n/**\n * A manager that knows available [selection scopes]($docs/presentation/unified-selection/index#selection-scopes)\n * and can compute logical selection based on element IDs and selection scope.\n *\n * @public\n * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use `computeSelection` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.\n */\nexport class SelectionScopesManager {\n private _rpcRequestsHandler: Pick<RpcRequestsHandler, \"getSelectionScopes\" | \"computeSelection\">;\n private _getLocale: () => string | undefined;\n private _activeScope: SelectionScopeProps | SelectionScope | string | undefined;\n\n public constructor(props: SelectionScopesManagerProps) {\n this._rpcRequestsHandler = props.rpcRequestsHandler;\n this._getLocale = props.localeProvider ? props.localeProvider : () => undefined;\n }\n\n /** Get active locale */\n public get activeLocale() {\n return this._getLocale();\n }\n\n /** The active selection scope or its id */\n public get activeScope() {\n return this._activeScope;\n }\n public set activeScope(scope: SelectionScopeProps | SelectionScope | string | undefined) {\n this._activeScope = scope;\n }\n\n /**\n * Get available selection scopes.\n * @param imodel The iModel to get selection scopes for\n * @param locale Optional locale to use when localizing scopes' label and description\n */\n public async getSelectionScopes(imodel: IModelConnection, locale?: string): Promise<SelectionScope[]> {\n if (!locale) {\n locale = this._getLocale();\n }\n return this._rpcRequestsHandler.getSelectionScopes({ imodel: imodel.getRpcProps(), locale });\n }\n\n /**\n * Computes keys that need to be added to logical selection based on provided selection scope.\n * @param ids Element IDs to compute selection for\n * @param scope Selection scope to apply\n */\n public async computeSelection(imodel: IModelConnection, ids: Id64Arg, scope: SelectionScopeProps | SelectionScope | string): Promise<KeySet> {\n const scopeProps = createSelectionScopeProps(scope);\n\n // convert ids input to array\n if (typeof ids === \"string\") {\n ids = [ids];\n } else if (ids instanceof Set) {\n ids = [...ids];\n }\n\n // compute selection in batches to avoid HTTP 413\n const keys = new KeySet();\n const batchSize = DEFAULT_KEYS_BATCH_SIZE;\n const batchesCount = Math.ceil(ids.length / batchSize);\n const batchKeyPromises = [];\n for (let batchIndex = 0; batchIndex < batchesCount; ++batchIndex) {\n const batchStart = batchSize * batchIndex;\n const batchEnd = batchStart + batchSize > ids.length ? ids.length : batchStart + batchSize;\n const batchIds = 0 === batchIndex && ids.length <= batchEnd ? ids : ids.slice(batchStart, batchEnd);\n batchKeyPromises.push(this._rpcRequestsHandler.computeSelection({ imodel: imodel.getRpcProps(), elementIds: batchIds, scope: scopeProps }));\n }\n const batchKeys = (await Promise.all(batchKeyPromises)).map((json) => KeySet.fromJSON(json));\n batchKeys.forEach((bk) => keys.add(bk));\n return keys;\n }\n}\n\n/**\n * Normalizes given scope options and returns [[SelectionScopeProps]] that can be used for\n * calculating selection with scope.\n *\n * @public\n * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use `computeSelection` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.\n */\nexport function createSelectionScopeProps(scope: SelectionScopeProps | SelectionScope | string | undefined): SelectionScopeProps {\n if (!scope) {\n return { id: \"element\" };\n }\n if (typeof scope === \"string\") {\n return { id: scope };\n }\n return scope;\n}\n"]}
1
+ {"version":3,"file":"SelectionScopesManager.js","sourceRoot":"","sources":["../../../../src/presentation-frontend/selection/SelectionScopesManager.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG,qDAAqD;AACrD;;GAEG;AAKH,OAAO,EAGL,uBAAuB,EACvB,MAAM,GAKP,MAAM,4BAA4B,CAAC;AAqBpC;;;;;;GAMG;AACH,MAAM,OAAO,sBAAsB;IACzB,mBAAmB,CAAsE;IACzF,UAAU,CAA2B;IACrC,YAAY,CAA4D;IAEhF,YAAmB,KAAkC;QACnD,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAA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K,GAAG,IAAI,KAAK,CACrB,+EAA+E;QAC7E,yDAAyD;QACzD,8CAA8C;QAC9C,wDAAwD,CAC3D,CAAC;IAEF,+BAA+B;IAC/B,OAAO,CAAC,KAAK,CAAC,gDAAgD,EAAE,KAAK,CAAC,CAAC;IACvE,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,gCAAgC,CAAC,GAAG;QACtD,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, Presentation } from \"./presentation-frontend/Presentation.js\";\nexport {\n IModelHierarchyChangeEventArgs,\n IModelContentChangeEventArgs,\n MultipleValuesRequestOptions,\n GetNodesRequestOptions,\n GetContentRequestOptions,\n GetDistinctValuesRequestOptions,\n PresentationManagerProps,\n PresentationManager,\n} from \"./presentation-frontend/PresentationManager.js\";\nexport { RulesetManager } from \"./presentation-frontend/RulesetManager.js\";\nexport { RulesetVariablesManager } from \"./presentation-frontend/RulesetVariablesManager.js\";\nexport {\n FavoritePropertiesScope,\n PropertyFullName,\n FavoritePropertiesOrderInfo,\n FavoritePropertiesManagerProps,\n FavoritePropertiesManager,\n} from \"./presentation-frontend/favorite-properties/FavoritePropertiesManager.js\";\nexport {\n IFavoritePropertiesStorage,\n DefaultFavoritePropertiesStorageTypes,\n createFavoritePropertiesStorage,\n} from \"./presentation-frontend/favorite-properties/FavoritePropertiesStorage.js\";\nexport { consoleDiagnosticsHandler, createCombinedDiagnosticsHandler } from \"./presentation-frontend/Diagnostics.js\";\n\n/**\n * @module Logging\n *\n * @docs-group-description Logging\n * Types related to logging in this package.\n */\nexport { PresentationFrontendLoggerCategory } from \"./presentation-frontend/FrontendLoggerCategory.js\";\n\n/**\n * @module UnifiedSelection\n *\n * @docs-group-description UnifiedSelection\n * Types related to [unified selection]($docs/presentation/unified-selection/index.md).\n */\nexport {\n SelectionChangesListener,\n SelectionChangeEvent,\n SelectionChangeType,\n SelectionChangeEventArgs,\n} from \"./presentation-frontend/selection/SelectionChangeEvent.js\";\nexport { ISelectionProvider } from \"./presentation-frontend/selection/ISelectionProvider.js\";\nexport { SelectionManagerProps, SelectionManager } from \"./presentation-frontend/selection/SelectionManager.js\";\nexport { SelectionScopesManagerProps, SelectionScopesManager, createSelectionScopeProps } from \"./presentation-frontend/selection/SelectionScopesManager.js\";\nexport { SelectionHandlerProps, SelectionHandler } from \"./presentation-frontend/selection/SelectionHandler.js\";\nexport { HiliteSet, HiliteSetProviderProps, HiliteSetProvider } from \"./presentation-frontend/selection/HiliteSetProvider.js\";\nexport { SelectionHelper } from \"./presentation-frontend/selection/SelectionHelper.js\";\n\nconst globalSymbolPresentationFrontend = Symbol.for(\"itwin.presentation.frontend.globals\");\nif ((globalThis as any)[globalSymbolPresentationFrontend]) {\n // Get the stack trace from when the module was first loaded\n const firstLoadStack = (globalThis as any)[globalSymbolPresentationFrontend].stack;\n\n const error = new Error(\n \"Multiple @itwin/presentation-frontend 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-frontend 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)[globalSymbolPresentationFrontend] = {\n stack: new Error().stack,\n };\n}"]}
1
+ {"version":3,"file":"presentation-frontend.js","sourceRoot":"","sources":["../../src/presentation-frontend.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;;;;GAKG;AACH,OAAO,EAAqB,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAQL,mBAAmB,GACpB,MAAM,gDAAgD,CAAC;AAGxD,OAAO,EACL,uBAAuB,EAIvB,yBAAyB,GAC1B,MAAM,0EAA0E,CAAC;AAClF,OAAO,EAEL,qCAAqC,EACrC,+BAA+B,GAChC,MAAM,0EAA0E,CAAC;AAClF,OAAO,EAAE,yBAAyB,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AAErH;;;;;GAKG;AACH,OAAO,EAAE,kCAAkC,EAAE,MAAM,mDAAmD,CAAC;AAEvG;;;;;GAKG;AACH,OAAO,EAEL,oBAAoB,EACpB,mBAAmB,GAEpB,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAyB,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AAChH,OAAO,EAA+B,sBAAsB,EAAE,yBAAyB,EAAE,MAAM,6DAA6D,CAAC;AAC7J,OAAO,EAAyB,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AAChH,OAAO,EAAqC,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAC9H,OAAO,EAAE,eAAe,EAAE,MAAM,sDAAsD,CAAC;AAEvF,MAAM,gCAAgC,GAAG,MAAM,CAAC,GAAG,CAAC,qCAAqC,CAAC,CAAC;AAC3F,IAAK,UAAkB,CAAC,gCAAgC,CAAC,EAAE,CAAC;IAC1D,4DAA4D;IAC5D,MAAM,cAAc,GAAI,UAAkB,CAAC,gCAAgC,CAAC,CAAC,KAAK,CAAC;IAEnF,MAAM,KAAK,GAAG,IAAI,KAAK,CACrB,+EAA+E;QAC7E,yDAAyD;QACzD,8CAA8C;QAC9C,wDAAwD,CAC3D,CAAC;IAEF,+BAA+B;IAC/B,OAAO,CAAC,KAAK,CAAC,gDAAgD,EAAE,KAAK,CAAC,CAAC;IACvE,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,gCAAgC,CAAC,GAAG;QACtD,KAAK,EAAE,IAAI,KAAK,EAAE,CAAC,KAAK;KACzB,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/presentation-frontend",
3
- "version": "5.1.2",
3
+ "version": "5.1.3-experimental.1",
4
4
  "description": "Frontend of iModel.js Presentation library",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -36,12 +36,12 @@
36
36
  "rxjs-for-await": "^1.0.0"
37
37
  },
38
38
  "peerDependencies": {
39
- "@itwin/core-bentley": "5.1.2",
40
- "@itwin/core-quantity": "5.1.2",
41
- "@itwin/core-common": "5.1.2",
42
- "@itwin/core-frontend": "5.1.2",
43
- "@itwin/presentation-common": "5.1.2",
44
- "@itwin/ecschema-metadata": "5.1.2"
39
+ "@itwin/core-bentley": "5.1.3-experimental.1",
40
+ "@itwin/core-common": "5.1.3-experimental.1",
41
+ "@itwin/ecschema-metadata": "5.1.3-experimental.1",
42
+ "@itwin/core-frontend": "5.1.3-experimental.1",
43
+ "@itwin/presentation-common": "5.1.3-experimental.1",
44
+ "@itwin/core-quantity": "5.1.3-experimental.1"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@itwin/eslint-plugin": "5.2.2-dev.2",
@@ -71,15 +71,15 @@
71
71
  "sinon-chai": "^3.7.0",
72
72
  "typemoq": "^2.1.0",
73
73
  "typescript": "~5.6.2",
74
- "@itwin/build-tools": "5.1.2",
75
- "@itwin/core-frontend": "5.1.2",
76
- "@itwin/core-bentley": "5.1.2",
77
- "@itwin/presentation-common": "5.1.2",
78
- "@itwin/core-quantity": "5.1.2",
79
- "@itwin/core-common": "5.1.2",
80
- "@itwin/ecschema-metadata": "5.1.2",
74
+ "@itwin/build-tools": "5.1.3-experimental.1",
75
+ "@itwin/core-bentley": "5.1.3-experimental.1",
76
+ "@itwin/core-i18n": "5.1.3-experimental.1",
77
+ "@itwin/core-quantity": "5.1.3-experimental.1",
78
+ "@itwin/core-common": "5.1.3-experimental.1",
79
+ "@itwin/core-frontend": "5.1.3-experimental.1",
80
+ "@itwin/presentation-common": "5.1.3-experimental.1",
81
81
  "internal-tools": "3.0.0-dev.69",
82
- "@itwin/core-i18n": "5.1.2"
82
+ "@itwin/ecschema-metadata": "5.1.3-experimental.1"
83
83
  },
84
84
  "scripts": {
85
85
  "build": "npm run -s build:cjs && npm run -s build:esm",