@itwin/presentation-common 3.3.0-dev.9 → 3.3.2

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 (67) hide show
  1. package/CHANGELOG.md +67 -1
  2. package/Ruleset.schema.json +29 -0
  3. package/lib/cjs/presentation-common/Diagnostics.d.ts +17 -3
  4. package/lib/cjs/presentation-common/Diagnostics.d.ts.map +1 -1
  5. package/lib/cjs/presentation-common/Diagnostics.js.map +1 -1
  6. package/lib/cjs/presentation-common/EC.d.ts +10 -0
  7. package/lib/cjs/presentation-common/EC.d.ts.map +1 -1
  8. package/lib/cjs/presentation-common/EC.js +17 -5
  9. package/lib/cjs/presentation-common/EC.js.map +1 -1
  10. package/lib/cjs/presentation-common/PresentationManagerOptions.d.ts +26 -4
  11. package/lib/cjs/presentation-common/PresentationManagerOptions.d.ts.map +1 -1
  12. package/lib/cjs/presentation-common/PresentationManagerOptions.js +6 -1
  13. package/lib/cjs/presentation-common/PresentationManagerOptions.js.map +1 -1
  14. package/lib/cjs/presentation-common/PresentationRpcInterface.d.ts +12 -4
  15. package/lib/cjs/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
  16. package/lib/cjs/presentation-common/PresentationRpcInterface.js +50 -4
  17. package/lib/cjs/presentation-common/PresentationRpcInterface.js.map +1 -1
  18. package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts +20 -19
  19. package/lib/cjs/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
  20. package/lib/cjs/presentation-common/RpcRequestsHandler.js +3 -4
  21. package/lib/cjs/presentation-common/RpcRequestsHandler.js.map +1 -1
  22. package/lib/cjs/presentation-common/content/Descriptor.d.ts +7 -1
  23. package/lib/cjs/presentation-common/content/Descriptor.d.ts.map +1 -1
  24. package/lib/cjs/presentation-common/content/Descriptor.js +6 -0
  25. package/lib/cjs/presentation-common/content/Descriptor.js.map +1 -1
  26. package/lib/cjs/presentation-common/content/Fields.d.ts.map +1 -1
  27. package/lib/cjs/presentation-common/content/Fields.js +1 -7
  28. package/lib/cjs/presentation-common/content/Fields.js.map +1 -1
  29. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts +8 -0
  30. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts.map +1 -1
  31. package/lib/cjs/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js.map +1 -1
  32. package/lib/cjs/presentation-common/selection/SelectionScope.d.ts +9 -0
  33. package/lib/cjs/presentation-common/selection/SelectionScope.d.ts.map +1 -1
  34. package/lib/cjs/presentation-common/selection/SelectionScope.js.map +1 -1
  35. package/lib/esm/presentation-common/Diagnostics.d.ts +17 -3
  36. package/lib/esm/presentation-common/Diagnostics.d.ts.map +1 -1
  37. package/lib/esm/presentation-common/Diagnostics.js.map +1 -1
  38. package/lib/esm/presentation-common/EC.d.ts +10 -0
  39. package/lib/esm/presentation-common/EC.d.ts.map +1 -1
  40. package/lib/esm/presentation-common/EC.js +17 -5
  41. package/lib/esm/presentation-common/EC.js.map +1 -1
  42. package/lib/esm/presentation-common/PresentationManagerOptions.d.ts +26 -4
  43. package/lib/esm/presentation-common/PresentationManagerOptions.d.ts.map +1 -1
  44. package/lib/esm/presentation-common/PresentationManagerOptions.js +4 -0
  45. package/lib/esm/presentation-common/PresentationManagerOptions.js.map +1 -1
  46. package/lib/esm/presentation-common/PresentationRpcInterface.d.ts +12 -4
  47. package/lib/esm/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
  48. package/lib/esm/presentation-common/PresentationRpcInterface.js +50 -4
  49. package/lib/esm/presentation-common/PresentationRpcInterface.js.map +1 -1
  50. package/lib/esm/presentation-common/RpcRequestsHandler.d.ts +20 -19
  51. package/lib/esm/presentation-common/RpcRequestsHandler.d.ts.map +1 -1
  52. package/lib/esm/presentation-common/RpcRequestsHandler.js +3 -4
  53. package/lib/esm/presentation-common/RpcRequestsHandler.js.map +1 -1
  54. package/lib/esm/presentation-common/content/Descriptor.d.ts +7 -1
  55. package/lib/esm/presentation-common/content/Descriptor.d.ts.map +1 -1
  56. package/lib/esm/presentation-common/content/Descriptor.js +6 -0
  57. package/lib/esm/presentation-common/content/Descriptor.js.map +1 -1
  58. package/lib/esm/presentation-common/content/Fields.d.ts.map +1 -1
  59. package/lib/esm/presentation-common/content/Fields.js +2 -8
  60. package/lib/esm/presentation-common/content/Fields.js.map +1 -1
  61. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts +8 -0
  62. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.d.ts.map +1 -1
  63. package/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js.map +1 -1
  64. package/lib/esm/presentation-common/selection/SelectionScope.d.ts +9 -0
  65. package/lib/esm/presentation-common/selection/SelectionScope.d.ts.map +1 -1
  66. package/lib/esm/presentation-common/selection/SelectionScope.js.map +1 -1
  67. package/package.json +12 -12
@@ -1 +1 @@
1
- {"version":3,"file":"SelectionScope.d.ts","sourceRoot":"","sources":["../../../../src/presentation-common/selection/SelectionScope.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,uCAAuC;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,YAAY;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
1
+ {"version":3,"file":"SelectionScope.d.ts","sourceRoot":"","sources":["../../../../src/presentation-common/selection/SelectionScope.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,uCAAuC;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,YAAY;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,aAAa;AACb,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,SAAS,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,aAAa;AACb,oBAAY,mBAAmB,GAAG,0BAA0B,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SelectionScope.js","sourceRoot":"","sources":["../../../../src/presentation-common/selection/SelectionScope.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG","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/** @packageDocumentation\r\n * @module UnifiedSelection\r\n */\r\n\r\n/**\r\n * Data structure that describes a [selection scope]($docs/presentation/unified-selection/index#selection-scopes)\r\n *\r\n * @public\r\n */\r\nexport interface SelectionScope {\r\n /** Unique ID of the selection scope */\r\n id: string;\r\n /** Label */\r\n label: string;\r\n /** Description */\r\n description?: string;\r\n}\r\n"]}
1
+ {"version":3,"file":"SelectionScope.js","sourceRoot":"","sources":["../../../../src/presentation-common/selection/SelectionScope.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG","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/** @packageDocumentation\r\n * @module UnifiedSelection\r\n */\r\n\r\n/**\r\n * Data structure that describes a [selection scope]($docs/presentation/unified-selection/index#selection-scopes)\r\n *\r\n * @public\r\n */\r\nexport interface SelectionScope {\r\n /** Unique ID of the selection scope */\r\n id: string;\r\n /** Label */\r\n label: string;\r\n /** Description */\r\n description?: string;\r\n}\r\n\r\n/** @alpha */\r\nexport interface ElementSelectionScopeProps {\r\n id: \"element\";\r\n ancestorLevel?: number;\r\n}\r\n\r\n/** @alpha */\r\nexport type SelectionScopeProps = ElementSelectionScopeProps | { id: string };\r\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/presentation-common",
3
- "version": "3.3.0-dev.9",
3
+ "version": "3.3.2",
4
4
  "description": "Common pieces for iModel.js presentation packages",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -21,17 +21,17 @@
21
21
  "module": "lib/esm/presentation-common.js",
22
22
  "typings": "lib/cjs/presentation-common",
23
23
  "peerDependencies": {
24
- "@itwin/core-bentley": "^3.3.0-dev.9",
25
- "@itwin/core-common": "^3.3.0-dev.9",
26
- "@itwin/core-quantity": "^3.3.0-dev.9"
24
+ "@itwin/core-bentley": "^3.3.2",
25
+ "@itwin/core-common": "^3.3.2",
26
+ "@itwin/core-quantity": "^3.3.2"
27
27
  },
28
28
  "devDependencies": {
29
- "@itwin/build-tools": "3.3.0-dev.9",
30
- "@itwin/core-bentley": "3.3.0-dev.9",
31
- "@itwin/core-common": "3.3.0-dev.9",
32
- "@itwin/core-quantity": "3.3.0-dev.9",
33
- "@itwin/eslint-plugin": "3.3.0-dev.9",
34
- "@types/chai": "^4.1.4",
29
+ "@itwin/build-tools": "3.3.2",
30
+ "@itwin/core-bentley": "3.3.2",
31
+ "@itwin/core-common": "3.3.2",
32
+ "@itwin/core-quantity": "3.3.2",
33
+ "@itwin/eslint-plugin": "3.3.2",
34
+ "@types/chai": "4.3.1",
35
35
  "@types/chai-as-promised": "^7",
36
36
  "@types/chai-jest-snapshot": "^1.3.0",
37
37
  "@types/chai-subset": "1.3.1",
@@ -51,7 +51,7 @@
51
51
  "eslint": "^7.11.0",
52
52
  "faker": "^4.1.0",
53
53
  "json-schema-faker": "0.5.0-rc16",
54
- "mocha": "^8.3.2",
54
+ "mocha": "^10.0.0",
55
55
  "nyc": "^15.1.0",
56
56
  "rimraf": "^3.0.2",
57
57
  "sinon": "^9.0.2",
@@ -59,7 +59,7 @@
59
59
  "typemoq": "^2.1.0",
60
60
  "typescript": "~4.4.0",
61
61
  "typescript-json-schema": "^0.43.0",
62
- "yargs": "^16.0.0"
62
+ "yargs": "^17.4.0"
63
63
  },
64
64
  "nyc": {
65
65
  "extends": "./node_modules/@itwin/build-tools/.nycrc"