@atlaskit/editor-toolbar 0.19.34 → 0.19.35

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
+ ## 0.19.35
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8b94becba79f4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8b94becba79f4) -
8
+ [EDITOR-4640] clean up platform_editor_aifc_remove_duplicate_role experiment
9
+ - Updated dependencies
10
+
3
11
  ## 0.19.34
4
12
 
5
13
  ### Patch Changes
@@ -13,7 +13,6 @@ var _runtime = require("@compiled/react/runtime");
13
13
  var _react = _interopRequireDefault(require("react"));
14
14
  var _css = require("@atlaskit/css");
15
15
  var _compiled = require("@atlaskit/primitives/compiled");
16
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
17
16
  var _uiContext = require("../hooks/ui-context");
18
17
  var _ResponsiveContainer = require("./ResponsiveContainer");
19
18
  var _ToolbarKeyboardNavigationProvider = require("./ToolbarKeyboardNavigationProvider");
@@ -39,7 +38,6 @@ var Toolbar = exports.Toolbar = function Toolbar(_ref) {
39
38
  testId = _ref.testId;
40
39
  var toolbar = /*#__PURE__*/_react.default.createElement(_compiled.Box, {
41
40
  xcss: (0, _css.cx)(styles.toolbarBase, styles.toolbar, styles.toolbarResponsive, styles.hiddenSelectors, styles.toolbarSeparator, styles.hiddenSelectorsPatch),
42
- role: (0, _expValEquals.expValEquals)('platform_editor_aifc_remove_duplicate_role', 'isEnabled', true) ? undefined : 'toolbar',
43
41
  "aria-label": label,
44
42
  testId: testId,
45
43
  "data-toolbar-type": "inline"
@@ -81,7 +79,6 @@ var PrimaryToolbar = exports.PrimaryToolbar = function PrimaryToolbar(_ref2) {
81
79
  breakpointPreset: breakpointPreset
82
80
  }, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
83
81
  xcss: (0, _css.cx)(styles.toolbarBase, styles.primaryToolbar, styles.hiddenSelectors),
84
- role: (0, _expValEquals.expValEquals)('platform_editor_aifc_remove_duplicate_role', 'isEnabled', true) ? undefined : 'toolbar',
85
82
  "aria-label": label,
86
83
  "data-toolbar-type": "primary"
87
84
  }, children));
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.ToolbarKeyboardNavigationProvider = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _browserApis = require("@atlaskit/browser-apis");
10
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
11
10
  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); }
12
11
  var ToolbarKeyboardNavigationProvider = exports.ToolbarKeyboardNavigationProvider = function ToolbarKeyboardNavigationProvider(_ref) {
13
12
  var children = _ref.children,
@@ -142,7 +141,7 @@ var ToolbarKeyboardNavigationProvider = exports.ToolbarKeyboardNavigationProvide
142
141
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- ignored via go/DSP-18766
143
142
  className: "custom-key-handler-wrapper",
144
143
  ref: wrapperRef,
145
- role: (0, _expValEquals.expValEquals)('platform_editor_aifc_remove_duplicate_role', 'isEnabled', true) ? 'toolbar' : undefined,
144
+ role: "toolbar",
146
145
  "aria-label": ariaLabel,
147
146
  "aria-controls": ariaControls
148
147
  }, children);
@@ -6,7 +6,6 @@ import { ax, ix } from "@compiled/react/runtime";
6
6
  import React from 'react';
7
7
  import { cx } from '@atlaskit/css';
8
8
  import { Box } from '@atlaskit/primitives/compiled';
9
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
9
  import { useToolbarUI } from '../hooks/ui-context';
11
10
  import { ResponsiveContainer, ResponsiveWrapper } from './ResponsiveContainer';
12
11
  import { ToolbarKeyboardNavigationProvider } from './ToolbarKeyboardNavigationProvider';
@@ -33,7 +32,6 @@ export const Toolbar = ({
33
32
  }) => {
34
33
  const toolbar = /*#__PURE__*/React.createElement(Box, {
35
34
  xcss: cx(styles.toolbarBase, styles.toolbar, styles.toolbarResponsive, styles.hiddenSelectors, styles.toolbarSeparator, styles.hiddenSelectorsPatch),
36
- role: expValEquals('platform_editor_aifc_remove_duplicate_role', 'isEnabled', true) ? undefined : 'toolbar',
37
35
  "aria-label": label,
38
36
  testId: testId,
39
37
  "data-toolbar-type": "inline"
@@ -79,7 +77,6 @@ export const PrimaryToolbar = ({
79
77
  breakpointPreset: breakpointPreset
80
78
  }, /*#__PURE__*/React.createElement(Box, {
81
79
  xcss: cx(styles.toolbarBase, styles.primaryToolbar, styles.hiddenSelectors),
82
- role: expValEquals('platform_editor_aifc_remove_duplicate_role', 'isEnabled', true) ? undefined : 'toolbar',
83
80
  "aria-label": label,
84
81
  "data-toolbar-type": "primary"
85
82
  }, children));
@@ -1,6 +1,5 @@
1
1
  import React, { useLayoutEffect, useRef } from 'react';
2
2
  import { getDocument } from '@atlaskit/browser-apis';
3
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
3
  export const ToolbarKeyboardNavigationProvider = ({
5
4
  children,
6
5
  childComponentSelector,
@@ -131,7 +130,7 @@ export const ToolbarKeyboardNavigationProvider = ({
131
130
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- ignored via go/DSP-18766
132
131
  className: "custom-key-handler-wrapper",
133
132
  ref: wrapperRef,
134
- role: expValEquals('platform_editor_aifc_remove_duplicate_role', 'isEnabled', true) ? 'toolbar' : undefined,
133
+ role: "toolbar",
135
134
  "aria-label": ariaLabel,
136
135
  "aria-controls": ariaControls
137
136
  }, children);
@@ -6,7 +6,6 @@ import { ax, ix } from "@compiled/react/runtime";
6
6
  import React from 'react';
7
7
  import { cx } from '@atlaskit/css';
8
8
  import { Box } from '@atlaskit/primitives/compiled';
9
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
9
  import { useToolbarUI } from '../hooks/ui-context';
11
10
  import { ResponsiveContainer, ResponsiveWrapper } from './ResponsiveContainer';
12
11
  import { ToolbarKeyboardNavigationProvider } from './ToolbarKeyboardNavigationProvider';
@@ -32,7 +31,6 @@ export var Toolbar = function Toolbar(_ref) {
32
31
  testId = _ref.testId;
33
32
  var toolbar = /*#__PURE__*/React.createElement(Box, {
34
33
  xcss: cx(styles.toolbarBase, styles.toolbar, styles.toolbarResponsive, styles.hiddenSelectors, styles.toolbarSeparator, styles.hiddenSelectorsPatch),
35
- role: expValEquals('platform_editor_aifc_remove_duplicate_role', 'isEnabled', true) ? undefined : 'toolbar',
36
34
  "aria-label": label,
37
35
  testId: testId,
38
36
  "data-toolbar-type": "inline"
@@ -74,7 +72,6 @@ export var PrimaryToolbar = function PrimaryToolbar(_ref2) {
74
72
  breakpointPreset: breakpointPreset
75
73
  }, /*#__PURE__*/React.createElement(Box, {
76
74
  xcss: cx(styles.toolbarBase, styles.primaryToolbar, styles.hiddenSelectors),
77
- role: expValEquals('platform_editor_aifc_remove_duplicate_role', 'isEnabled', true) ? undefined : 'toolbar',
78
75
  "aria-label": label,
79
76
  "data-toolbar-type": "primary"
80
77
  }, children));
@@ -1,6 +1,5 @@
1
1
  import React, { useLayoutEffect, useRef } from 'react';
2
2
  import { getDocument } from '@atlaskit/browser-apis';
3
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
3
  export var ToolbarKeyboardNavigationProvider = function ToolbarKeyboardNavigationProvider(_ref) {
5
4
  var children = _ref.children,
6
5
  childComponentSelector = _ref.childComponentSelector,
@@ -134,7 +133,7 @@ export var ToolbarKeyboardNavigationProvider = function ToolbarKeyboardNavigatio
134
133
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- ignored via go/DSP-18766
135
134
  className: "custom-key-handler-wrapper",
136
135
  ref: wrapperRef,
137
- role: expValEquals('platform_editor_aifc_remove_duplicate_role', 'isEnabled', true) ? 'toolbar' : undefined,
136
+ role: "toolbar",
138
137
  "aria-label": ariaLabel,
139
138
  "aria-controls": ariaControls
140
139
  }, children);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org/"
5
5
  },
6
- "version": "0.19.34",
6
+ "version": "0.19.35",
7
7
  "description": "Common UI for Toolbars across the platform",
8
8
  "atlassian": {
9
9
  "team": "Editor: Jenga",
@@ -24,13 +24,13 @@
24
24
  "@atlaskit/badge": "^18.4.0",
25
25
  "@atlaskit/browser-apis": "^0.0.1",
26
26
  "@atlaskit/css": "^0.19.0",
27
- "@atlaskit/dropdown-menu": "^16.4.0",
27
+ "@atlaskit/dropdown-menu": "^16.5.0",
28
28
  "@atlaskit/icon": "^32.0.0",
29
29
  "@atlaskit/icon-lab": "^5.17.0",
30
30
  "@atlaskit/platform-feature-flags": "^1.1.0",
31
31
  "@atlaskit/popup": "^4.13.0",
32
32
  "@atlaskit/primitives": "^18.0.0",
33
- "@atlaskit/tmp-editor-statsig": "^31.1.0",
33
+ "@atlaskit/tmp-editor-statsig": "^32.0.0",
34
34
  "@atlaskit/tokens": "^11.0.0",
35
35
  "@atlaskit/tooltip": "^20.14.0",
36
36
  "@babel/runtime": "^7.0.0",