@atlaskit/editor-toolbar-model 0.4.14 → 0.4.15

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,11 @@
1
1
  # @atlaskit/editor-toolbar-model
2
2
 
3
+ ## 0.4.15
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 0.4.14
4
10
 
5
11
  ### Patch Changes
@@ -78,7 +78,9 @@ var _ComponentRenderer = function ComponentRenderer(_ref) {
78
78
  allComponents = _ref.allComponents,
79
79
  fallbacks = _ref.fallbacks;
80
80
  var childTypes = getChildTypesForParent(component.type);
81
- var children = (0, _common.getSortedChildren)(allComponents.filter(function (comp) {
81
+ var children = (0, _common.getSortedChildren)(
82
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
83
+ allComponents.filter(function (comp) {
82
84
  return childTypes.includes(comp.type);
83
85
  }), component.key);
84
86
  if (shouldHideEmptyComponent(component, children, allComponents)) {
@@ -111,15 +113,21 @@ var ToolbarModelRenderer = exports.ToolbarModelRenderer = function ToolbarModelR
111
113
  components = _ref2.components,
112
114
  fallbacks = _ref2.fallbacks;
113
115
  var ToolbarComponent = toolbar.component || _common.NoOp;
116
+
117
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
114
118
  var sections = (0, _common.getSortedChildren)(components.filter(_common.isSection), toolbar.key);
115
119
  return /*#__PURE__*/_react.default.createElement(ToolbarComponent, null, sections.map(function (section) {
116
120
  return /*#__PURE__*/_react.default.createElement(_ComponentRenderer, {
117
121
  key: section.key,
118
- component: section,
122
+ component: section
123
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
124
+ ,
119
125
  parents: [{
120
126
  key: toolbar.key,
121
127
  type: toolbar.type
122
- }],
128
+ }]
129
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
130
+ ,
123
131
  allComponents: components.filter(hasParents),
124
132
  fallbacks: fallbacks
125
133
  });
@@ -63,7 +63,9 @@ const ComponentRenderer = ({
63
63
  fallbacks
64
64
  }) => {
65
65
  const childTypes = getChildTypesForParent(component.type);
66
- const children = getSortedChildren(allComponents.filter(comp => childTypes.includes(comp.type)), component.key);
66
+ const children = getSortedChildren(
67
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
68
+ allComponents.filter(comp => childTypes.includes(comp.type)), component.key);
67
69
  if (shouldHideEmptyComponent(component, children, allComponents)) {
68
70
  return null;
69
71
  }
@@ -93,14 +95,20 @@ export const ToolbarModelRenderer = ({
93
95
  fallbacks
94
96
  }) => {
95
97
  const ToolbarComponent = toolbar.component || NoOp;
98
+
99
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
96
100
  const sections = getSortedChildren(components.filter(isSection), toolbar.key);
97
101
  return /*#__PURE__*/React.createElement(ToolbarComponent, null, sections.map(section => /*#__PURE__*/React.createElement(ComponentRenderer, {
98
102
  key: section.key,
99
- component: section,
103
+ component: section
104
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
105
+ ,
100
106
  parents: [{
101
107
  key: toolbar.key,
102
108
  type: toolbar.type
103
- }],
109
+ }]
110
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
111
+ ,
104
112
  allComponents: components.filter(hasParents),
105
113
  fallbacks: fallbacks
106
114
  })));
@@ -71,7 +71,9 @@ var _ComponentRenderer = function ComponentRenderer(_ref) {
71
71
  allComponents = _ref.allComponents,
72
72
  fallbacks = _ref.fallbacks;
73
73
  var childTypes = getChildTypesForParent(component.type);
74
- var children = getSortedChildren(allComponents.filter(function (comp) {
74
+ var children = getSortedChildren(
75
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
76
+ allComponents.filter(function (comp) {
75
77
  return childTypes.includes(comp.type);
76
78
  }), component.key);
77
79
  if (shouldHideEmptyComponent(component, children, allComponents)) {
@@ -104,15 +106,21 @@ export var ToolbarModelRenderer = function ToolbarModelRenderer(_ref2) {
104
106
  components = _ref2.components,
105
107
  fallbacks = _ref2.fallbacks;
106
108
  var ToolbarComponent = toolbar.component || NoOp;
109
+
110
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
107
111
  var sections = getSortedChildren(components.filter(isSection), toolbar.key);
108
112
  return /*#__PURE__*/React.createElement(ToolbarComponent, null, sections.map(function (section) {
109
113
  return /*#__PURE__*/React.createElement(_ComponentRenderer, {
110
114
  key: section.key,
111
- component: section,
115
+ component: section
116
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
117
+ ,
112
118
  parents: [{
113
119
  key: toolbar.key,
114
120
  type: toolbar.type
115
- }],
121
+ }]
122
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
123
+ ,
116
124
  allComponents: components.filter(hasParents),
117
125
  fallbacks: fallbacks
118
126
  });
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "atlaskit:src": "src/index.ts",
23
23
  "dependencies": {
24
- "@atlaskit/tmp-editor-statsig": "^43.0.0",
24
+ "@atlaskit/tmp-editor-statsig": "^44.0.0",
25
25
  "@atlaskit/tokens": "^11.1.0",
26
26
  "@babel/runtime": "^7.0.0",
27
27
  "@compiled/react": "^0.20.0"
@@ -70,7 +70,7 @@
70
70
  }
71
71
  },
72
72
  "name": "@atlaskit/editor-toolbar-model",
73
- "version": "0.4.14",
73
+ "version": "0.4.15",
74
74
  "description": "register and render toolbar component",
75
75
  "author": "Atlassian Pty Ltd",
76
76
  "license": "Apache-2.0",