@itwin/presentation-backend 5.0.0-dev.11 → 5.0.0-dev.110

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 (148) hide show
  1. package/CHANGELOG.md +61 -1
  2. package/lib/cjs/package.json +1 -0
  3. package/lib/cjs/presentation-backend/ElementPropertiesHelper.d.ts +31 -4
  4. package/lib/cjs/presentation-backend/ElementPropertiesHelper.d.ts.map +1 -1
  5. package/lib/cjs/presentation-backend/ElementPropertiesHelper.js +161 -56
  6. package/lib/cjs/presentation-backend/ElementPropertiesHelper.js.map +1 -1
  7. package/lib/cjs/presentation-backend/InternalSymbols.d.ts +5 -0
  8. package/lib/cjs/presentation-backend/InternalSymbols.d.ts.map +1 -0
  9. package/lib/cjs/presentation-backend/InternalSymbols.js +16 -0
  10. package/lib/cjs/presentation-backend/InternalSymbols.js.map +1 -0
  11. package/lib/cjs/presentation-backend/NativePlatform.d.ts +2 -2
  12. package/lib/cjs/presentation-backend/NativePlatform.d.ts.map +1 -1
  13. package/lib/cjs/presentation-backend/NativePlatform.js +5 -3
  14. package/lib/cjs/presentation-backend/NativePlatform.js.map +1 -1
  15. package/lib/cjs/presentation-backend/Presentation.d.ts +2 -7
  16. package/lib/cjs/presentation-backend/Presentation.d.ts.map +1 -1
  17. package/lib/cjs/presentation-backend/Presentation.js +40 -29
  18. package/lib/cjs/presentation-backend/Presentation.js.map +1 -1
  19. package/lib/cjs/presentation-backend/PresentationIpcHandler.d.ts +3 -3
  20. package/lib/cjs/presentation-backend/PresentationIpcHandler.d.ts.map +1 -1
  21. package/lib/cjs/presentation-backend/PresentationIpcHandler.js +5 -7
  22. package/lib/cjs/presentation-backend/PresentationIpcHandler.js.map +1 -1
  23. package/lib/cjs/presentation-backend/PresentationManager.d.ts +13 -90
  24. package/lib/cjs/presentation-backend/PresentationManager.d.ts.map +1 -1
  25. package/lib/cjs/presentation-backend/PresentationManager.js +79 -130
  26. package/lib/cjs/presentation-backend/PresentationManager.js.map +1 -1
  27. package/lib/cjs/presentation-backend/PresentationManagerDetail.d.ts +19 -10
  28. package/lib/cjs/presentation-backend/PresentationManagerDetail.d.ts.map +1 -1
  29. package/lib/cjs/presentation-backend/PresentationManagerDetail.js +83 -76
  30. package/lib/cjs/presentation-backend/PresentationManagerDetail.js.map +1 -1
  31. package/lib/cjs/presentation-backend/PresentationRpcImpl.d.ts +11 -11
  32. package/lib/cjs/presentation-backend/PresentationRpcImpl.d.ts.map +1 -1
  33. package/lib/cjs/presentation-backend/PresentationRpcImpl.js +110 -118
  34. package/lib/cjs/presentation-backend/PresentationRpcImpl.js.map +1 -1
  35. package/lib/cjs/presentation-backend/RulesetEmbedder.d.ts.map +1 -1
  36. package/lib/cjs/presentation-backend/RulesetEmbedder.js +23 -24
  37. package/lib/cjs/presentation-backend/RulesetEmbedder.js.map +1 -1
  38. package/lib/cjs/presentation-backend/RulesetManager.d.ts +1 -1
  39. package/lib/cjs/presentation-backend/RulesetManager.d.ts.map +1 -1
  40. package/lib/cjs/presentation-backend/RulesetManager.js +2 -1
  41. package/lib/cjs/presentation-backend/RulesetManager.js.map +1 -1
  42. package/lib/cjs/presentation-backend/RulesetVariablesManager.d.ts +1 -1
  43. package/lib/cjs/presentation-backend/RulesetVariablesManager.d.ts.map +1 -1
  44. package/lib/cjs/presentation-backend/RulesetVariablesManager.js +2 -0
  45. package/lib/cjs/presentation-backend/RulesetVariablesManager.js.map +1 -1
  46. package/lib/cjs/presentation-backend/SelectionScopesHelper.d.ts +2 -4
  47. package/lib/cjs/presentation-backend/SelectionScopesHelper.d.ts.map +1 -1
  48. package/lib/cjs/presentation-backend/SelectionScopesHelper.js +70 -83
  49. package/lib/cjs/presentation-backend/SelectionScopesHelper.js.map +1 -1
  50. package/lib/cjs/presentation-backend/TemporaryStorage.d.ts +2 -3
  51. package/lib/cjs/presentation-backend/TemporaryStorage.d.ts.map +1 -1
  52. package/lib/cjs/presentation-backend/TemporaryStorage.js +30 -28
  53. package/lib/cjs/presentation-backend/TemporaryStorage.js.map +1 -1
  54. package/lib/cjs/presentation-backend/Utils.d.ts.map +1 -1
  55. package/lib/cjs/presentation-backend/Utils.js +15 -21
  56. package/lib/cjs/presentation-backend/Utils.js.map +1 -1
  57. package/lib/cjs/presentation-backend/domain/PresentationRulesDomain.js +2 -2
  58. package/lib/cjs/presentation-backend/domain/PresentationRulesDomain.js.map +1 -1
  59. package/lib/cjs/presentation-backend/domain/RulesetElements.js +4 -4
  60. package/lib/cjs/presentation-backend/domain/RulesetElements.js.map +1 -1
  61. package/lib/cjs/presentation-backend-internal.d.ts +2 -0
  62. package/lib/cjs/presentation-backend-internal.d.ts.map +1 -0
  63. package/lib/cjs/presentation-backend-internal.js +12 -0
  64. package/lib/cjs/presentation-backend-internal.js.map +1 -0
  65. package/lib/cjs/presentation-backend.d.ts +7 -7
  66. package/lib/cjs/presentation-backend.d.ts.map +1 -1
  67. package/lib/cjs/presentation-backend.js +11 -21
  68. package/lib/cjs/presentation-backend.js.map +1 -1
  69. package/lib/esm/presentation-backend/BackendLoggerCategory.d.ts +62 -0
  70. package/lib/esm/presentation-backend/BackendLoggerCategory.d.ts.map +1 -0
  71. package/lib/esm/presentation-backend/BackendLoggerCategory.js +69 -0
  72. package/lib/esm/presentation-backend/BackendLoggerCategory.js.map +1 -0
  73. package/lib/esm/presentation-backend/ElementPropertiesHelper.d.ts +45 -0
  74. package/lib/esm/presentation-backend/ElementPropertiesHelper.d.ts.map +1 -0
  75. package/lib/esm/presentation-backend/ElementPropertiesHelper.js +187 -0
  76. package/lib/esm/presentation-backend/ElementPropertiesHelper.js.map +1 -0
  77. package/lib/esm/presentation-backend/InternalSymbols.d.ts +5 -0
  78. package/lib/esm/presentation-backend/InternalSymbols.d.ts.map +1 -0
  79. package/lib/esm/presentation-backend/InternalSymbols.js +13 -0
  80. package/lib/esm/presentation-backend/InternalSymbols.js.map +1 -0
  81. package/lib/esm/presentation-backend/NativePlatform.d.ts +89 -0
  82. package/lib/esm/presentation-backend/NativePlatform.d.ts.map +1 -0
  83. package/lib/esm/presentation-backend/NativePlatform.js +156 -0
  84. package/lib/esm/presentation-backend/NativePlatform.js.map +1 -0
  85. package/lib/esm/presentation-backend/Presentation.d.ts +97 -0
  86. package/lib/esm/presentation-backend/Presentation.d.ts.map +1 -0
  87. package/lib/esm/presentation-backend/Presentation.js +147 -0
  88. package/lib/esm/presentation-backend/Presentation.js.map +1 -0
  89. package/lib/esm/presentation-backend/PresentationIpcHandler.d.ts +12 -0
  90. package/lib/esm/presentation-backend/PresentationIpcHandler.d.ts.map +1 -0
  91. package/lib/esm/presentation-backend/PresentationIpcHandler.js +25 -0
  92. package/lib/esm/presentation-backend/PresentationIpcHandler.js.map +1 -0
  93. package/lib/esm/presentation-backend/PresentationManager.d.ts +387 -0
  94. package/lib/esm/presentation-backend/PresentationManager.d.ts.map +1 -0
  95. package/lib/esm/presentation-backend/PresentationManager.js +352 -0
  96. package/lib/esm/presentation-backend/PresentationManager.js.map +1 -0
  97. package/lib/esm/presentation-backend/PresentationManagerDetail.d.ts +74 -0
  98. package/lib/esm/presentation-backend/PresentationManagerDetail.d.ts.map +1 -0
  99. package/lib/esm/presentation-backend/PresentationManagerDetail.js +446 -0
  100. package/lib/esm/presentation-backend/PresentationManagerDetail.js.map +1 -0
  101. package/lib/esm/presentation-backend/PresentationRpcImpl.d.ts +63 -0
  102. package/lib/esm/presentation-backend/PresentationRpcImpl.d.ts.map +1 -0
  103. package/lib/esm/presentation-backend/PresentationRpcImpl.js +409 -0
  104. package/lib/esm/presentation-backend/PresentationRpcImpl.js.map +1 -0
  105. package/lib/esm/presentation-backend/RulesetEmbedder.d.ts +109 -0
  106. package/lib/esm/presentation-backend/RulesetEmbedder.d.ts.map +1 -0
  107. package/lib/esm/presentation-backend/RulesetEmbedder.js +269 -0
  108. package/lib/esm/presentation-backend/RulesetEmbedder.js.map +1 -0
  109. package/lib/esm/presentation-backend/RulesetManager.d.ts +54 -0
  110. package/lib/esm/presentation-backend/RulesetManager.d.ts.map +1 -0
  111. package/lib/esm/presentation-backend/RulesetManager.js +74 -0
  112. package/lib/esm/presentation-backend/RulesetManager.js.map +1 -0
  113. package/lib/esm/presentation-backend/RulesetVariablesManager.d.ts +141 -0
  114. package/lib/esm/presentation-backend/RulesetVariablesManager.d.ts.map +1 -0
  115. package/lib/esm/presentation-backend/RulesetVariablesManager.js +140 -0
  116. package/lib/esm/presentation-backend/RulesetVariablesManager.js.map +1 -0
  117. package/lib/esm/presentation-backend/SelectionScopesHelper.d.ts +27 -0
  118. package/lib/esm/presentation-backend/SelectionScopesHelper.d.ts.map +1 -0
  119. package/lib/esm/presentation-backend/SelectionScopesHelper.js +227 -0
  120. package/lib/esm/presentation-backend/SelectionScopesHelper.js.map +1 -0
  121. package/lib/esm/presentation-backend/TemporaryStorage.d.ts +123 -0
  122. package/lib/esm/presentation-backend/TemporaryStorage.d.ts.map +1 -0
  123. package/lib/esm/presentation-backend/TemporaryStorage.js +157 -0
  124. package/lib/esm/presentation-backend/TemporaryStorage.js.map +1 -0
  125. package/lib/esm/presentation-backend/Utils.d.ts +50 -0
  126. package/lib/esm/presentation-backend/Utils.d.ts.map +1 -0
  127. package/lib/esm/presentation-backend/Utils.js +101 -0
  128. package/lib/esm/presentation-backend/Utils.js.map +1 -0
  129. package/lib/esm/presentation-backend/domain/PresentationRulesDomain.d.ts +17 -0
  130. package/lib/esm/presentation-backend/domain/PresentationRulesDomain.d.ts.map +1 -0
  131. package/lib/esm/presentation-backend/domain/PresentationRulesDomain.js +31 -0
  132. package/lib/esm/presentation-backend/domain/PresentationRulesDomain.js.map +1 -0
  133. package/lib/esm/presentation-backend/domain/RulesetElements.d.ts +22 -0
  134. package/lib/esm/presentation-backend/domain/RulesetElements.d.ts.map +1 -0
  135. package/lib/esm/presentation-backend/domain/RulesetElements.js +38 -0
  136. package/lib/esm/presentation-backend/domain/RulesetElements.js.map +1 -0
  137. package/lib/esm/presentation-backend/primary-presentation-rules/ElementProperties.PresentationRuleSet.json +14 -0
  138. package/lib/esm/presentation-backend/supplemental-presentation-rules/BisCore.PresentationRuleSet.json +701 -0
  139. package/lib/esm/presentation-backend/supplemental-presentation-rules/Functional.PresentationRuleSet.json +139 -0
  140. package/lib/esm/presentation-backend-internal.d.ts +2 -0
  141. package/lib/esm/presentation-backend-internal.d.ts.map +1 -0
  142. package/lib/esm/presentation-backend-internal.js +8 -0
  143. package/lib/esm/presentation-backend-internal.js.map +1 -0
  144. package/lib/esm/presentation-backend.d.ts +20 -0
  145. package/lib/esm/presentation-backend.d.ts.map +1 -0
  146. package/lib/esm/presentation-backend.js +21 -0
  147. package/lib/esm/presentation-backend.js.map +1 -0
  148. package/package.json +42 -35
@@ -0,0 +1,139 @@
1
+ {
2
+ "$schema": "../../../common/Ruleset.schema.json",
3
+ "id": "Functional",
4
+ "supplementationInfo": {
5
+ "supplementationPurpose": "Functional specific customization rules"
6
+ },
7
+ "requiredSchemas": [
8
+ {
9
+ "name": "BisCore"
10
+ },
11
+ {
12
+ "name": "Functional"
13
+ }
14
+ ],
15
+ "rules": [
16
+ {
17
+ "ruleType": "ContentModifier",
18
+ "class": {
19
+ "schemaName": "Functional",
20
+ "className": "FunctionalElement"
21
+ },
22
+ "relatedProperties": [
23
+ {
24
+ "propertiesSource": {
25
+ "relationship": {
26
+ "schemaName": "Functional",
27
+ "className": "FunctionalElementIsOfType"
28
+ },
29
+ "direction": "Forward"
30
+ },
31
+ "handleTargetClassPolymorphically": true,
32
+ "relationshipMeaning": "RelatedInstance",
33
+ "nestedRelatedProperties": [
34
+ {
35
+ "propertiesSource": {
36
+ "relationship": {
37
+ "schemaName": "BisCore",
38
+ "className": "ElementOwnsUniqueAspect"
39
+ },
40
+ "direction": "Forward"
41
+ },
42
+ "handleTargetClassPolymorphically": true,
43
+ "relationshipMeaning": "SameInstance"
44
+ },
45
+ {
46
+ "propertiesSource": {
47
+ "relationship": {
48
+ "schemaName": "BisCore",
49
+ "className": "ElementOwnsMultiAspects"
50
+ },
51
+ "direction": "Forward"
52
+ },
53
+ "handleTargetClassPolymorphically": true,
54
+ "relationshipMeaning": "SameInstance"
55
+ }
56
+ ]
57
+ }
58
+ ]
59
+ },
60
+ {
61
+ "ruleType": "Content",
62
+ "condition": "ContentDisplayType = \"Graphics\" ANDALSO SelectedNode.IsOfClass(\"FunctionalElement\", \"Functional\")",
63
+ "onlyIfNotHandled": true,
64
+ "specifications": [
65
+ {
66
+ "specType": "ContentRelatedInstances",
67
+ "relationshipPaths": [
68
+ [
69
+ {
70
+ "relationship": {
71
+ "schemaName": "BisCore",
72
+ "className": "ElementOwnsChildElements"
73
+ },
74
+ "direction": "Forward",
75
+ "targetClass": {
76
+ "schemaName": "Functional",
77
+ "className": "FunctionalElement"
78
+ },
79
+ "count": "*"
80
+ },
81
+ {
82
+ "relationship": {
83
+ "schemaName": "Functional",
84
+ "className": "PhysicalElementFulfillsFunction"
85
+ },
86
+ "direction": "Backward"
87
+ },
88
+ {
89
+ "relationship": {
90
+ "schemaName": "BisCore",
91
+ "className": "ElementOwnsChildElements"
92
+ },
93
+ "direction": "Forward",
94
+ "targetClass": {
95
+ "schemaName": "BisCore",
96
+ "className": "GeometricElement"
97
+ },
98
+ "count": "*"
99
+ }
100
+ ],
101
+ [
102
+ {
103
+ "relationship": {
104
+ "schemaName": "BisCore",
105
+ "className": "ElementOwnsChildElements"
106
+ },
107
+ "direction": "Forward",
108
+ "targetClass": {
109
+ "schemaName": "Functional",
110
+ "className": "FunctionalElement"
111
+ },
112
+ "count": "*"
113
+ },
114
+ {
115
+ "relationship": {
116
+ "schemaName": "Functional",
117
+ "className": "DrawingGraphicRepresentsFunctionalElement"
118
+ },
119
+ "direction": "Backward"
120
+ },
121
+ {
122
+ "relationship": {
123
+ "schemaName": "BisCore",
124
+ "className": "ElementOwnsChildElements"
125
+ },
126
+ "direction": "Forward",
127
+ "targetClass": {
128
+ "schemaName": "BisCore",
129
+ "className": "GeometricElement"
130
+ },
131
+ "count": "*"
132
+ }
133
+ ]
134
+ ]
135
+ }
136
+ ]
137
+ }
138
+ ]
139
+ }
@@ -0,0 +1,2 @@
1
+ export { _presentation_manager_detail } from "./presentation-backend/InternalSymbols.js";
2
+ //# sourceMappingURL=presentation-backend-internal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation-backend-internal.d.ts","sourceRoot":"","sources":["../../src/presentation-backend-internal.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC"}
@@ -0,0 +1,8 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ // WARNING: This barrel file exports internal APIs only for use by Presentation packages.
6
+ // They should not be used outside of these packages. These APIs may be broken or removed at any time without notice.
7
+ export { _presentation_manager_detail } from "./presentation-backend/InternalSymbols.js";
8
+ //# sourceMappingURL=presentation-backend-internal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation-backend-internal.js","sourceRoot":"","sources":["../../src/presentation-backend-internal.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,yFAAyF;AACzF,qHAAqH;AAErH,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n * See LICENSE.md in the project root for license terms and full copyright notice.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n// WARNING: This barrel file exports internal APIs only for use by Presentation packages.\r\n// They should not be used outside of these packages. These APIs may be broken or removed at any time without notice.\r\n\r\nexport { _presentation_manager_detail } from \"./presentation-backend/InternalSymbols.js\";\r\n"]}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @module Core
3
+ *
4
+ * @docs-group-description Core
5
+ * Common types used for retrieving presentation data from iModels.
6
+ */
7
+ export { PresentationProps, MultiManagerPresentationProps, SingleManagerPresentationProps, Presentation } from "./presentation-backend/Presentation.js";
8
+ export { HierarchyCacheMode, HierarchyCacheConfig, MemoryHierarchyCacheConfig, DiskHierarchyCacheConfig, HybridCacheConfig, ContentCacheConfig, PresentationManagerCachingConfig, UnitSystemFormat, MultiElementPropertiesResponse, PresentationAssetsRootConfig, PresentationManagerProps, PresentationManager, } from "./presentation-backend/PresentationManager.js";
9
+ export { RulesetManager } from "./presentation-backend/RulesetManager.js";
10
+ export { RulesetVariablesManager } from "./presentation-backend/RulesetVariablesManager.js";
11
+ export { RulesetInsertOptions, RulesetEmbedderProps, RulesetEmbedder } from "./presentation-backend/RulesetEmbedder.js";
12
+ export { BackendDiagnosticsHandler, BackendDiagnosticsOptions, BackendDiagnosticsAttribute } from "./presentation-backend/Utils.js";
13
+ /**
14
+ * @module Logging
15
+ *
16
+ * @docs-group-description Logging
17
+ * Types related to logging in this package.
18
+ */
19
+ export { PresentationBackendLoggerCategory, PresentationBackendNativeLoggerCategory } from "./presentation-backend/BackendLoggerCategory.js";
20
+ //# sourceMappingURL=presentation-backend.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation-backend.d.ts","sourceRoot":"","sources":["../../src/presentation-backend.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,OAAO,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACxJ,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,0BAA0B,EAC1B,wBAAwB,EACxB,iBAAiB,EACjB,kBAAkB,EAClB,gCAAgC,EAChC,gBAAgB,EAChB,8BAA8B,EAC9B,4BAA4B,EAC5B,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,mDAAmD,CAAC;AAC5F,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACxH,OAAO,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAEpI;;;;;GAKG;AACH,OAAO,EAAE,iCAAiC,EAAE,uCAAuC,EAAE,MAAM,iDAAiD,CAAC"}
@@ -0,0 +1,21 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * @module Core
7
+ *
8
+ * @docs-group-description Core
9
+ * Common types used for retrieving presentation data from iModels.
10
+ */
11
+ export { Presentation } from "./presentation-backend/Presentation.js";
12
+ export { HierarchyCacheMode, PresentationManager, } from "./presentation-backend/PresentationManager.js";
13
+ export { RulesetEmbedder } from "./presentation-backend/RulesetEmbedder.js";
14
+ /**
15
+ * @module Logging
16
+ *
17
+ * @docs-group-description Logging
18
+ * Types related to logging in this package.
19
+ */
20
+ export { PresentationBackendLoggerCategory, PresentationBackendNativeLoggerCategory } from "./presentation-backend/BackendLoggerCategory.js";
21
+ //# sourceMappingURL=presentation-backend.js.map
@@ -0,0 +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":["/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n * See LICENSE.md in the project root for license terms and full copyright notice.\r\n *--------------------------------------------------------------------------------------------*/\r\n/**\r\n * @module Core\r\n *\r\n * @docs-group-description Core\r\n * Common types used for retrieving presentation data from iModels.\r\n */\r\nexport { PresentationProps, MultiManagerPresentationProps, SingleManagerPresentationProps, Presentation } from \"./presentation-backend/Presentation.js\";\r\nexport {\r\n HierarchyCacheMode,\r\n HierarchyCacheConfig,\r\n MemoryHierarchyCacheConfig,\r\n DiskHierarchyCacheConfig,\r\n HybridCacheConfig,\r\n ContentCacheConfig,\r\n PresentationManagerCachingConfig,\r\n UnitSystemFormat,\r\n MultiElementPropertiesResponse,\r\n PresentationAssetsRootConfig,\r\n PresentationManagerProps,\r\n PresentationManager,\r\n} from \"./presentation-backend/PresentationManager.js\";\r\nexport { RulesetManager } from \"./presentation-backend/RulesetManager.js\";\r\nexport { RulesetVariablesManager } from \"./presentation-backend/RulesetVariablesManager.js\";\r\nexport { RulesetInsertOptions, RulesetEmbedderProps, RulesetEmbedder } from \"./presentation-backend/RulesetEmbedder.js\";\r\nexport { BackendDiagnosticsHandler, BackendDiagnosticsOptions, BackendDiagnosticsAttribute } from \"./presentation-backend/Utils.js\";\r\n\r\n/**\r\n * @module Logging\r\n *\r\n * @docs-group-description Logging\r\n * Types related to logging in this package.\r\n */\r\nexport { PresentationBackendLoggerCategory, PresentationBackendNativeLoggerCategory } from \"./presentation-backend/BackendLoggerCategory.js\";\r\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/presentation-backend",
3
- "version": "5.0.0-dev.11",
3
+ "version": "5.0.0-dev.110",
4
4
  "description": "Backend of iTwin.js Presentation library",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -20,15 +20,28 @@
20
20
  "name": "Bentley Systems, Inc.",
21
21
  "url": "http://www.bentley.com"
22
22
  },
23
+ "type": "module",
23
24
  "main": "lib/cjs/presentation-backend.js",
24
- "typings": "lib/cjs/presentation-backend",
25
+ "types": "lib/cjs/presentation-backend",
26
+ "module": "lib/esm/presentation-backend.js",
27
+ "exports": {
28
+ ".": {
29
+ "import": "./lib/esm/presentation-backend.js",
30
+ "require": "./lib/cjs/presentation-backend.js"
31
+ },
32
+ "./internal": {
33
+ "import": "./lib/esm/presentation-backend-internal.js",
34
+ "require": "./lib/cjs/presentation-backend-internal.js"
35
+ },
36
+ "./package.json": "./package.json"
37
+ },
25
38
  "peerDependencies": {
26
- "@itwin/core-backend": "^5.0.0-dev.11",
27
- "@itwin/core-bentley": "^5.0.0-dev.11",
28
- "@itwin/core-common": "^5.0.0-dev.11",
29
- "@itwin/core-quantity": "^5.0.0-dev.11",
30
- "@itwin/ecschema-metadata": "^5.0.0-dev.11",
31
- "@itwin/presentation-common": "^5.0.0-dev.11"
39
+ "@itwin/core-backend": "5.0.0-dev.110",
40
+ "@itwin/core-bentley": "5.0.0-dev.110",
41
+ "@itwin/core-common": "5.0.0-dev.110",
42
+ "@itwin/ecschema-metadata": "5.0.0-dev.110",
43
+ "@itwin/core-quantity": "5.0.0-dev.110",
44
+ "@itwin/presentation-common": "5.0.0-dev.110"
32
45
  },
33
46
  "devDependencies": {
34
47
  "@itwin/eslint-plugin": "5.0.0-dev.1",
@@ -38,41 +51,39 @@
38
51
  "@types/chai-jest-snapshot": "^1.3.8",
39
52
  "@types/chai-subset": "1.3.1",
40
53
  "@types/deep-equal": "^1",
41
- "@types/faker": "^4.1.0",
42
54
  "@types/lolex": "^2.1.2",
43
55
  "@types/mocha": "^10.0.6",
44
- "@types/node": "~20.9.5",
56
+ "@types/node": "~20.17.0",
45
57
  "@types/object-hash": "^1.3.0",
46
58
  "@types/semver": "7.3.10",
47
59
  "@types/sinon": "^17.0.2",
48
60
  "@types/sinon-chai": "^3.2.0",
49
61
  "@types/sinonjs__fake-timers": "^8.1.5",
62
+ "c8": "^10.1.3",
50
63
  "chai": "^4.3.10",
51
64
  "chai-as-promised": "^7.1.1",
52
65
  "chai-jest-snapshot": "^2.0.0",
53
66
  "chai-subset": "1.6.0",
54
- "cpx2": "^3.0.0",
67
+ "cpx2": "^8.0.0",
55
68
  "cross-env": "^7.0.3",
56
69
  "deep-equal": "^1",
57
70
  "eslint": "^9.13.0",
58
71
  "eslint-config-prettier": "^9.1.0",
59
- "faker": "^4.1.0",
60
- "mocha": "^10.2.0",
61
- "nyc": "^15.1.0",
72
+ "mocha": "^11.1.0",
62
73
  "prettier": "^3.2.5",
63
- "rimraf": "^3.0.2",
74
+ "rimraf": "^6.0.1",
64
75
  "sinon": "^17.0.2",
65
76
  "sinon-chai": "^3.7.0",
66
- "source-map-support": "^0.5.6",
67
77
  "typemoq": "^2.1.0",
68
78
  "typescript": "~5.6.2",
69
- "@itwin/core-bentley": "5.0.0-dev.11",
70
- "@itwin/build-tools": "5.0.0-dev.11",
71
- "@itwin/core-backend": "5.0.0-dev.11",
72
- "@itwin/core-quantity": "5.0.0-dev.11",
73
- "@itwin/core-common": "5.0.0-dev.11",
74
- "@itwin/presentation-common": "5.0.0-dev.11",
75
- "@itwin/ecschema-metadata": "5.0.0-dev.11"
79
+ "@itwin/core-backend": "5.0.0-dev.110",
80
+ "@itwin/build-tools": "5.0.0-dev.110",
81
+ "@itwin/core-bentley": "5.0.0-dev.110",
82
+ "@itwin/core-quantity": "5.0.0-dev.110",
83
+ "@itwin/core-common": "5.0.0-dev.110",
84
+ "@itwin/ecschema-metadata": "5.0.0-dev.110",
85
+ "@itwin/presentation-common": "5.0.0-dev.110",
86
+ "internal-tools": "3.0.0-dev.69"
76
87
  },
77
88
  "dependencies": {
78
89
  "object-hash": "^1.3.1",
@@ -80,23 +91,19 @@
80
91
  "rxjs-for-await": "^1.0.0",
81
92
  "semver": "^7.5.2"
82
93
  },
83
- "nyc": {
84
- "extends": "./node_modules/@itwin/build-tools/.nycrc"
85
- },
86
94
  "scripts": {
87
- "build": "npm run -s build:cjs",
88
- "build:cjs": "tsc 1>&2",
89
- "build:watch": "npm run -s build:cjs -- -w",
90
- "clean": "rimraf lib .rush/temp/package-deps*.json",
91
- "cover": "nyc npm -s test",
95
+ "build": "npm run -s build:cjs && npm run -s build:esm",
96
+ "build:cjs": "internal-tools build-cjs",
97
+ "build:esm": "tsc 1>&2 -p tsconfig.esm.json",
98
+ "clean": "rimraf -g lib .rush/temp/package-deps*.json",
99
+ "cover": "c8 npm -s test",
92
100
  "docs": "npm run -s docs:reference && npm run -s extract && npm run -s docs:changelog",
93
101
  "docs:changelog": "cpx ./CHANGELOG.md ../../generated-docs/presentation/presentation-backend",
94
- "docs:reference": "betools docs --json=../../generated-docs/presentation/presentation-backend/file.json --tsIndexFile=presentation-backend.ts --onlyJson",
102
+ "docs:reference": "betools docs --json=../../generated-docs/presentation/presentation-backend/file.json --tsIndexFile=presentation-backend.ts --tsconfig=tsconfig.esm.json --onlyJson",
95
103
  "extract": "betools extract --fileExt=ts --extractFrom=./src/test --recursive --out=../../generated-docs/extract",
96
- "extract-api": "betools extract-api --entry=presentation-backend",
104
+ "extract-api": "betools extract-api --entry=lib/esm/presentation-backend",
97
105
  "lint": "eslint \"./src/**/*.ts\" 1>&2",
98
- "test": "mocha --config ../.mocharc.json --file ./lib/cjs/test/index.test.js \"./lib/cjs/test/**/*.test.js\"",
99
- "test:watch": "npm -s test -- --reporter min --watch-extensions ts --watch",
106
+ "test": "mocha --enable-source-maps --config ./.mocharc.json",
100
107
  "prettier:fix": "prettier --write ."
101
108
  }
102
109
  }