ydb-ui-components 1.2.3 → 2.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # Changelog
2
2
 
3
+ ### [2.0.2](https://github.com/ydb-platform/ydb-ui-components/compare/v2.0.1...v2.0.2) (2022-05-30)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * add i18n export ([13a34e0](https://github.com/ydb-platform/ydb-ui-components/commit/13a34e0056a9fa42b5ad02fc41e5323af0ac98e9))
9
+
10
+ ### [2.0.1](https://github.com/ydb-platform/ydb-ui-components/compare/v2.0.0...v2.0.1) (2022-05-26)
11
+
12
+
13
+ ### chore
14
+
15
+ * update @yandex-cloud/uikit to 2.4.0 ([663c8d2](https://github.com/ydb-platform/ydb-ui-components/commit/663c8d26c704bd83be97c81f4fd4080a7cfbb3d0))
16
+
17
+ ## [2.0.0](https://github.com/ydb-platform/ydb-ui-components/compare/v1.2.3...v2.0.0) (2022-05-25)
18
+
19
+
20
+ ### ⚠ BREAKING CHANGES
21
+
22
+ * major version update of peer dependency @yandex-cloud/uikit, see changelog here: https://github.com/yandex-cloud/uikit/blob/main/CHANGELOG_V2.md
23
+
24
+ ### chore
25
+
26
+ * update @yandex-cloud/uikit to v2.3.1 ([ba67dd6](https://github.com/ydb-platform/ydb-ui-components/commit/ba67dd6f8f01b2a58ed67bd064ad8962f2f8a244))
27
+ * update @yandex-cloud/i18n to v0.6.0 ([237c2cd](https://github.com/ydb-platform/ydb-ui-components/commit/237c2cdd5064565da2cf62fbebb0fc0ae1195d0e))
28
+
3
29
  ### [1.2.3](https://github.com/ydb-platform/ydb-ui-components/compare/v1.2.2...v1.2.3) (2022-05-23)
4
30
 
5
31
 
@@ -15,9 +15,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
15
15
 
16
16
  const COMPONENT = 'ydb-navigation-tree';
17
17
 
18
- _i18n.i18n.registerKeyset(_i18n.I18N.LANGS.en, COMPONENT, _en.default);
18
+ _i18n.i18n.registerKeyset('en', COMPONENT, _en.default);
19
19
 
20
- _i18n.i18n.registerKeyset(_i18n.I18N.LANGS.ru, COMPONENT, _ru.default);
20
+ _i18n.i18n.registerKeyset('ru', COMPONENT, _ru.default);
21
21
 
22
22
  var _default = _i18n.i18n.keyset(COMPONENT);
23
23
 
@@ -46,8 +46,9 @@ function TreeView(_ref) {
46
46
  className: b('actions')
47
47
  }, /*#__PURE__*/_react.default.createElement(_uikit.DropdownMenu, {
48
48
  defaultSwitcherProps: {
49
- view: 'clear',
50
- size: 's'
49
+ view: 'flat-secondary',
50
+ size: 's',
51
+ pin: 'brick-brick'
51
52
  },
52
53
  items: actions
53
54
  })));
package/build/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './components/NavigationTree';
2
2
  export * from './components/TreeView';
3
+ export { i18n } from './components/i18n';
package/build/index.js CHANGED
@@ -3,11 +3,21 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ var _exportNames = {
7
+ i18n: true
8
+ };
9
+ Object.defineProperty(exports, "i18n", {
10
+ enumerable: true,
11
+ get: function () {
12
+ return _i18n.i18n;
13
+ }
14
+ });
6
15
 
7
16
  var _NavigationTree = require("./components/NavigationTree");
8
17
 
9
18
  Object.keys(_NavigationTree).forEach(function (key) {
10
19
  if (key === "default" || key === "__esModule") return;
20
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
11
21
  if (key in exports && exports[key] === _NavigationTree[key]) return;
12
22
  Object.defineProperty(exports, key, {
13
23
  enumerable: true,
@@ -21,6 +31,7 @@ var _TreeView = require("./components/TreeView");
21
31
 
22
32
  Object.keys(_TreeView).forEach(function (key) {
23
33
  if (key === "default" || key === "__esModule") return;
34
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
24
35
  if (key in exports && exports[key] === _TreeView[key]) return;
25
36
  Object.defineProperty(exports, key, {
26
37
  enumerable: true,
@@ -28,4 +39,6 @@ Object.keys(_TreeView).forEach(function (key) {
28
39
  return _TreeView[key];
29
40
  }
30
41
  });
31
- });
42
+ });
43
+
44
+ var _i18n = require("./components/i18n");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-ui-components",
3
- "version": "1.2.3",
3
+ "version": "2.0.2",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "main": "build/index.js",
@@ -39,11 +39,11 @@
39
39
  "@types/react-treeview": "^0.4.3",
40
40
  "@yandex-cloud/browserslist-config": "^1.0.1",
41
41
  "@yandex-cloud/eslint-config": "^1.0.0",
42
- "@yandex-cloud/i18n": "^0.4.0",
42
+ "@yandex-cloud/i18n": "^0.6.0",
43
43
  "@yandex-cloud/prettier-config": "^1.0.0",
44
44
  "@yandex-cloud/stylelint-config": "^1.1.0",
45
45
  "@yandex-cloud/tsconfig": "^1.0.0",
46
- "@yandex-cloud/uikit": "^1.8.0",
46
+ "@yandex-cloud/uikit": "^2.4.0",
47
47
  "css-loader": "^5.2.7",
48
48
  "eslint": "^8.11.0",
49
49
  "gulp": "^4.0.2",
@@ -66,8 +66,8 @@
66
66
  },
67
67
  "peerDependencies": {
68
68
  "@yandex-cloud/browserslist-config": "^1.0.1",
69
- "@yandex-cloud/i18n": "^0.4.0",
70
- "@yandex-cloud/uikit": "^1.8.0",
69
+ "@yandex-cloud/i18n": "^0.6.0",
70
+ "@yandex-cloud/uikit": "^2.4.0",
71
71
  "react": "^16.0.0",
72
72
  "react-dom": "^16.0.0"
73
73
  },