@atlaskit/editor-toolbar 2.1.4 → 2.1.5

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,13 @@
1
1
  # @atlaskit/editor-toolbar
2
2
 
3
+ ## 2.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`e62296c84e38d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e62296c84e38d) -
8
+ Clean up feature gate `platform_editor_fix_t_at_is_not_a_function`
9
+ - Updated dependencies
10
+
3
11
  ## 2.1.4
4
12
 
5
13
  ### Patch Changes
package/compass.yml ADDED
@@ -0,0 +1,38 @@
1
+ configVersion: 1
2
+ id: ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/277504cc-3fdf-490e-9dbb-f46ddedd1140
3
+ name: '@atlaskit/editor-toolbar'
4
+ ownerId: ari:cloud:identity::team/2484e1f6-f62c-4a70-95f1-8e5695c51b6b # Editor Jenga
5
+ labels:
6
+ - platform-code
7
+ - platform-afm
8
+ typeId: OTHER
9
+ fields:
10
+ tier: 4
11
+ lifecycle: Active
12
+ isMonorepoProject: true
13
+ links:
14
+ - name: Root Repository
15
+ type: REPOSITORY
16
+ url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master
17
+ - name: Slack Channel
18
+ type: CHAT_CHANNEL
19
+ url: https://atlassian.enterprise.slack.com/archives/C061GUMN3NY # #team-cc-editor-exp-cloud-native
20
+ - name: Editor Toolbar
21
+ type: REPOSITORY
22
+ url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/editor/editor-toolbar
23
+ customFields:
24
+ - name: Department
25
+ type: text
26
+ value: Eng - Editor Autonomy - Jenga
27
+ - name: Technical Owner
28
+ type: user
29
+ value: ari:cloud:identity::user/712020:8ef57ce4-d614-485e-8764-89301a16b906 # Casper Tiedemann
30
+ - name: Required Reviewers Opt In
31
+ type: boolean
32
+ value: true
33
+ - name: Reviewer Selection Mechanism
34
+ type: text
35
+ value: random(2)
36
+ - name: Required Reviewer Approvals
37
+ type: number
38
+ value: 1
@@ -10,7 +10,6 @@ require("./ToolbarButtonGroup.compiled.css");
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
  var React = _react;
12
12
  var _runtime = require("@compiled/react/runtime");
13
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
13
  var _compiled = require("@atlaskit/primitives/compiled");
15
14
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
16
15
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -25,15 +24,15 @@ var ToolbarButtonGroup = exports.ToolbarButtonGroup = function ToolbarButtonGrou
25
24
  var items = _react.Children.toArray(children);
26
25
  // The .at() method is a relatively newer JavaScript API (ES2022) that isn't supported in older browsers
27
26
  // Using items[i] is more compatible with older browsers.
28
- var FirstChild = (0, _platformFeatureFlags.fg)('platform_editor_fix_t_at_is_not_a_function') ? items[0] : items.at(0);
29
- var LastChild = (0, _platformFeatureFlags.fg)('platform_editor_fix_t_at_is_not_a_function') ? items[items.length - 1] : items.at(-1);
27
+ var firstChild = items[0];
28
+ var lastChild = items[items.length - 1];
30
29
  var middleChildren = items.slice(1, -1);
31
30
  return /*#__PURE__*/React.createElement(_compiled.Box, {
32
31
  xcss: (0, _expValEquals.expValEquals)('jira_editor_a11y_toolbar_fixes', 'isEnabled', true) ? styles.containerWithA11yToolbarFixes : styles.container,
33
32
  "data-toolbar-component": "button-group"
34
33
  }, items.length <= 1 ? children : /*#__PURE__*/React.createElement(_react.Fragment, null, /*#__PURE__*/React.createElement("div", {
35
34
  className: (0, _runtime.ax)([styles.firstChild])
36
- }, FirstChild), middleChildren, /*#__PURE__*/React.createElement("div", {
35
+ }, firstChild), middleChildren, /*#__PURE__*/React.createElement("div", {
37
36
  className: (0, _runtime.ax)([styles.lastChild])
38
- }, LastChild)));
37
+ }, lastChild)));
39
38
  };
@@ -3,7 +3,6 @@ import "./ToolbarButtonGroup.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { Children, Fragment } from 'react';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
6
  import { Box } from '@atlaskit/primitives/compiled';
8
7
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
8
  const styles = {
@@ -18,15 +17,15 @@ export const ToolbarButtonGroup = ({
18
17
  const items = Children.toArray(children);
19
18
  // The .at() method is a relatively newer JavaScript API (ES2022) that isn't supported in older browsers
20
19
  // Using items[i] is more compatible with older browsers.
21
- const FirstChild = fg('platform_editor_fix_t_at_is_not_a_function') ? items[0] : items.at(0);
22
- const LastChild = fg('platform_editor_fix_t_at_is_not_a_function') ? items[items.length - 1] : items.at(-1);
20
+ const firstChild = items[0];
21
+ const lastChild = items[items.length - 1];
23
22
  const middleChildren = items.slice(1, -1);
24
23
  return /*#__PURE__*/React.createElement(Box, {
25
24
  xcss: expValEquals('jira_editor_a11y_toolbar_fixes', 'isEnabled', true) ? styles.containerWithA11yToolbarFixes : styles.container,
26
25
  "data-toolbar-component": "button-group"
27
26
  }, items.length <= 1 ? children : /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
28
27
  className: ax([styles.firstChild])
29
- }, FirstChild), middleChildren, /*#__PURE__*/React.createElement("div", {
28
+ }, firstChild), middleChildren, /*#__PURE__*/React.createElement("div", {
30
29
  className: ax([styles.lastChild])
31
- }, LastChild)));
30
+ }, lastChild)));
32
31
  };
@@ -3,7 +3,6 @@ import "./ToolbarButtonGroup.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { Children, Fragment } from 'react';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
6
  import { Box } from '@atlaskit/primitives/compiled';
8
7
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
8
  var styles = {
@@ -17,15 +16,15 @@ export var ToolbarButtonGroup = function ToolbarButtonGroup(_ref) {
17
16
  var items = Children.toArray(children);
18
17
  // The .at() method is a relatively newer JavaScript API (ES2022) that isn't supported in older browsers
19
18
  // Using items[i] is more compatible with older browsers.
20
- var FirstChild = fg('platform_editor_fix_t_at_is_not_a_function') ? items[0] : items.at(0);
21
- var LastChild = fg('platform_editor_fix_t_at_is_not_a_function') ? items[items.length - 1] : items.at(-1);
19
+ var firstChild = items[0];
20
+ var lastChild = items[items.length - 1];
22
21
  var middleChildren = items.slice(1, -1);
23
22
  return /*#__PURE__*/React.createElement(Box, {
24
23
  xcss: expValEquals('jira_editor_a11y_toolbar_fixes', 'isEnabled', true) ? styles.containerWithA11yToolbarFixes : styles.container,
25
24
  "data-toolbar-component": "button-group"
26
25
  }, items.length <= 1 ? children : /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
27
26
  className: ax([styles.firstChild])
28
- }, FirstChild), middleChildren, /*#__PURE__*/React.createElement("div", {
27
+ }, firstChild), middleChildren, /*#__PURE__*/React.createElement("div", {
29
28
  className: ax([styles.lastChild])
30
- }, LastChild)));
29
+ }, lastChild)));
31
30
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org/"
5
5
  },
6
- "version": "2.1.4",
6
+ "version": "2.1.5",
7
7
  "description": "Common UI for Toolbars across the platform",
8
8
  "atlassian": {
9
9
  "react-compiler": {
@@ -36,10 +36,10 @@
36
36
  "@atlaskit/icon-lab": "^7.2.0",
37
37
  "@atlaskit/platform-feature-flags": "^2.0.0",
38
38
  "@atlaskit/popup": "^5.1.0",
39
- "@atlaskit/primitives": "^20.2.0",
39
+ "@atlaskit/primitives": "^20.3.0",
40
40
  "@atlaskit/react-compiler-gating": "^0.2.0",
41
- "@atlaskit/tmp-editor-statsig": "^116.0.0",
42
- "@atlaskit/tokens": "^15.2.0",
41
+ "@atlaskit/tmp-editor-statsig": "^117.0.0",
42
+ "@atlaskit/tokens": "^15.3.0",
43
43
  "@atlaskit/tooltip": "^23.1.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "@compiled/react": "^0.20.0",
@@ -92,9 +92,6 @@
92
92
  }
93
93
  },
94
94
  "platform-feature-flags": {
95
- "platform_editor_fix_t_at_is_not_a_function": {
96
- "type": "boolean"
97
- },
98
95
  "cc_blocks_changeboarding": {
99
96
  "type": "boolean"
100
97
  },