@atlaskit/editor-plugin-block-type 14.0.14 → 14.0.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,13 @@
1
1
  # @atlaskit/editor-plugin-block-type
2
2
 
3
+ ## 14.0.15
4
+
5
+ ### Patch Changes
6
+
7
+ - [`7bfc7106b79c7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7bfc7106b79c7) -
8
+ Clean up platform_editor_toolbar_aifc_use_editor_typography experiment.
9
+ - Updated dependencies
10
+
3
11
  ## 14.0.14
4
12
 
5
13
  ### Patch Changes
@@ -1,15 +1,8 @@
1
- ._11c810sd{font:var(--ds-font-heading-large,normal 653 24px/28px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
- ._11c812ln{font:var(--ds-font-heading-xlarge,normal 653 28px/2pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
3
1
  ._11c812rg{font:var(--_1h4o6ch)}
4
2
  ._11c8130a{font:var(--_1b6nbh6)}
5
- ._11c81af2{font:var(--ds-font-heading-medium,normal 653 20px/24px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
6
- ._11c81e3o{font:var(--ds-font-heading-small,normal 653 1pc/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
7
3
  ._11c81fq3{font:var(--_1d0ko3v)}
8
4
  ._11c81og0{font:var(--_13pg0ac)}
9
- ._11c81qyo{font:var(--ds-font-heading-xsmall,normal 653 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
10
5
  ._11c81td5{font:var(--_1kn1hjn)}
11
6
  ._11c81u7j{font:var(--_goypne)}
12
7
  ._11c81vog{font:var(--_1c98jvx)}
13
- ._11c846ty{font:var(--_j67hki)}
14
- ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
15
- ._11c8i4vh{font:var(--ds-font-heading-xxsmall,normal 653 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
8
+ ._11c846ty{font:var(--_j67hki)}
@@ -18,7 +18,6 @@ var _toolbar = require("@atlaskit/editor-common/toolbar");
18
18
  var _ugcTokens = require("@atlaskit/editor-common/ugc-tokens");
19
19
  var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
20
20
  var _editorToolbar = require("@atlaskit/editor-toolbar");
21
- var _compiled = require("@atlaskit/primitives/compiled");
22
21
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
23
22
  var _utils = require("../../utils");
24
23
  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); }
@@ -93,16 +92,6 @@ var HeadingText = function HeadingText(_ref) {
93
92
  }, children);
94
93
  }
95
94
  };
96
- var headingSizeStylesMap = {
97
- normal: "_11c8fhey",
98
- smallText: "_11c8fhey",
99
- heading1: "_11c812ln",
100
- heading2: "_11c810sd",
101
- heading3: "_11c81af2",
102
- heading4: "_11c81e3o",
103
- heading5: "_11c81qyo",
104
- heading6: "_11c8i4vh"
105
- };
106
95
  var shortcuts = {
107
96
  normal: _keymaps.setNormalText,
108
97
  smallText: _keymaps.toggleSmallText,
@@ -153,9 +142,7 @@ var HeadingButton = exports.HeadingButton = function HeadingButton(_ref2) {
153
142
  isSelected: isSelected,
154
143
  isDisabled: isDisabled,
155
144
  ariaKeyshortcuts: shortcut
156
- }, (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_use_editor_typography', 'isEnabled', true) ? /*#__PURE__*/React.createElement(HeadingText, {
145
+ }, /*#__PURE__*/React.createElement(HeadingText, {
157
146
  headingType: blockType.name
158
- }, formatMessage(blockType.title)) : /*#__PURE__*/React.createElement(_compiled.Box, {
159
- xcss: headingSizeStylesMap[blockType.name]
160
147
  }, formatMessage(blockType.title)));
161
148
  };
@@ -1,15 +1,8 @@
1
- ._11c810sd{font:var(--ds-font-heading-large,normal 653 24px/28px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
- ._11c812ln{font:var(--ds-font-heading-xlarge,normal 653 28px/2pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
3
1
  ._11c812rg{font:var(--_1h4o6ch)}
4
2
  ._11c8130a{font:var(--_1b6nbh6)}
5
- ._11c81af2{font:var(--ds-font-heading-medium,normal 653 20px/24px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
6
- ._11c81e3o{font:var(--ds-font-heading-small,normal 653 1pc/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
7
3
  ._11c81fq3{font:var(--_1d0ko3v)}
8
4
  ._11c81og0{font:var(--_13pg0ac)}
9
- ._11c81qyo{font:var(--ds-font-heading-xsmall,normal 653 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
10
5
  ._11c81td5{font:var(--_1kn1hjn)}
11
6
  ._11c81u7j{font:var(--_goypne)}
12
7
  ._11c81vog{font:var(--_1c98jvx)}
13
- ._11c846ty{font:var(--_j67hki)}
14
- ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
15
- ._11c8i4vh{font:var(--ds-font-heading-xxsmall,normal 653 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
8
+ ._11c846ty{font:var(--_j67hki)}
@@ -11,7 +11,6 @@ import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
11
11
  import { editorUGCToken } from '@atlaskit/editor-common/ugc-tokens';
12
12
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
13
13
  import { ToolbarDropdownItem, ToolbarKeyboardShortcutHint } from '@atlaskit/editor-toolbar';
14
- import { Box } from '@atlaskit/primitives/compiled';
15
14
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
16
15
  import { isSelectionInsideListNode } from '../../utils';
17
16
  const smallTextStyle = null;
@@ -86,16 +85,6 @@ const HeadingText = ({
86
85
  }, children);
87
86
  }
88
87
  };
89
- const headingSizeStylesMap = {
90
- normal: "_11c8fhey",
91
- smallText: "_11c8fhey",
92
- heading1: "_11c812ln",
93
- heading2: "_11c810sd",
94
- heading3: "_11c81af2",
95
- heading4: "_11c81e3o",
96
- heading5: "_11c81qyo",
97
- heading6: "_11c8i4vh"
98
- };
99
88
  const shortcuts = {
100
89
  normal: setNormalText,
101
90
  smallText: toggleSmallText,
@@ -147,9 +136,7 @@ export const HeadingButton = ({
147
136
  isSelected: isSelected,
148
137
  isDisabled: isDisabled,
149
138
  ariaKeyshortcuts: shortcut
150
- }, expValEquals('platform_editor_toolbar_aifc_use_editor_typography', 'isEnabled', true) ? /*#__PURE__*/React.createElement(HeadingText, {
139
+ }, /*#__PURE__*/React.createElement(HeadingText, {
151
140
  headingType: blockType.name
152
- }, formatMessage(blockType.title)) : /*#__PURE__*/React.createElement(Box, {
153
- xcss: headingSizeStylesMap[blockType.name]
154
141
  }, formatMessage(blockType.title)));
155
142
  };
@@ -1,15 +1,8 @@
1
- ._11c810sd{font:var(--ds-font-heading-large,normal 653 24px/28px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
- ._11c812ln{font:var(--ds-font-heading-xlarge,normal 653 28px/2pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
3
1
  ._11c812rg{font:var(--_1h4o6ch)}
4
2
  ._11c8130a{font:var(--_1b6nbh6)}
5
- ._11c81af2{font:var(--ds-font-heading-medium,normal 653 20px/24px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
6
- ._11c81e3o{font:var(--ds-font-heading-small,normal 653 1pc/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
7
3
  ._11c81fq3{font:var(--_1d0ko3v)}
8
4
  ._11c81og0{font:var(--_13pg0ac)}
9
- ._11c81qyo{font:var(--ds-font-heading-xsmall,normal 653 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
10
5
  ._11c81td5{font:var(--_1kn1hjn)}
11
6
  ._11c81u7j{font:var(--_goypne)}
12
7
  ._11c81vog{font:var(--_1c98jvx)}
13
- ._11c846ty{font:var(--_j67hki)}
14
- ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
15
- ._11c8i4vh{font:var(--ds-font-heading-xxsmall,normal 653 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
8
+ ._11c846ty{font:var(--_j67hki)}
@@ -11,7 +11,6 @@ import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
11
11
  import { editorUGCToken } from '@atlaskit/editor-common/ugc-tokens';
12
12
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
13
13
  import { ToolbarDropdownItem, ToolbarKeyboardShortcutHint } from '@atlaskit/editor-toolbar';
14
- import { Box } from '@atlaskit/primitives/compiled';
15
14
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
16
15
  import { isSelectionInsideListNode } from '../../utils';
17
16
  var smallTextStyle = null;
@@ -85,16 +84,6 @@ var HeadingText = function HeadingText(_ref) {
85
84
  }, children);
86
85
  }
87
86
  };
88
- var headingSizeStylesMap = {
89
- normal: "_11c8fhey",
90
- smallText: "_11c8fhey",
91
- heading1: "_11c812ln",
92
- heading2: "_11c810sd",
93
- heading3: "_11c81af2",
94
- heading4: "_11c81e3o",
95
- heading5: "_11c81qyo",
96
- heading6: "_11c8i4vh"
97
- };
98
87
  var shortcuts = {
99
88
  normal: setNormalText,
100
89
  smallText: toggleSmallText,
@@ -145,9 +134,7 @@ export var HeadingButton = function HeadingButton(_ref2) {
145
134
  isSelected: isSelected,
146
135
  isDisabled: isDisabled,
147
136
  ariaKeyshortcuts: shortcut
148
- }, expValEquals('platform_editor_toolbar_aifc_use_editor_typography', 'isEnabled', true) ? /*#__PURE__*/React.createElement(HeadingText, {
137
+ }, /*#__PURE__*/React.createElement(HeadingText, {
149
138
  headingType: blockType.name
150
- }, formatMessage(blockType.title)) : /*#__PURE__*/React.createElement(Box, {
151
- xcss: headingSizeStylesMap[blockType.name]
152
139
  }, formatMessage(blockType.title)));
153
140
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "14.0.14",
3
+ "version": "14.0.15",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -43,13 +43,13 @@
43
43
  "@atlaskit/editor-tables": "^2.9.0",
44
44
  "@atlaskit/editor-toolbar": "^1.0.0",
45
45
  "@atlaskit/editor-toolbar-model": "^0.4.0",
46
- "@atlaskit/icon": "^34.3.0",
47
- "@atlaskit/icon-lab": "^6.6.0",
46
+ "@atlaskit/icon": "^34.4.0",
47
+ "@atlaskit/icon-lab": "^6.7.0",
48
48
  "@atlaskit/platform-feature-flags": "^1.1.0",
49
49
  "@atlaskit/primitives": "^19.0.0",
50
50
  "@atlaskit/prosemirror-history": "^0.2.0",
51
51
  "@atlaskit/prosemirror-input-rules": "^3.6.0",
52
- "@atlaskit/tmp-editor-statsig": "^76.0.0",
52
+ "@atlaskit/tmp-editor-statsig": "^77.0.0",
53
53
  "@atlaskit/tokens": "^13.0.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@compiled/react": "^0.20.0",