@atlaskit/editor-plugin-block-type 11.0.3 → 11.1.1

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,23 @@
1
1
  # @atlaskit/editor-plugin-block-type
2
2
 
3
+ ## 11.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 11.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`cd8d11632a928`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cd8d11632a928) -
14
+ [https://hello.jira.atlassian.cloud/browse/EDITOR-4390](EDITOR-4390) - clean up
15
+ platform_editor_heading_from_numpad feature gate
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 11.0.3
4
22
 
5
23
  ### Patch Changes
@@ -145,7 +145,7 @@ var createPlugin = exports.createPlugin = function createPlugin(editorAPI, dispa
145
145
  */
146
146
  handleKeyDown: function handleKeyDown(view, event) {
147
147
  var headingLevel = _consts.HEADING_KEYS.indexOf(event.keyCode);
148
- if (headingLevel === -1 && (0, _platformFeatureFlags.fg)('platform_editor_heading_from_numpad')) {
148
+ if (headingLevel === -1) {
149
149
  // Check for numpad keys if not found in digits row
150
150
  headingLevel = _consts.HEADING_NUMPAD_KEYS.indexOf(event.keyCode);
151
151
  }
@@ -1,7 +1,7 @@
1
- ._11c8140y{font:var(--ds-font-heading-xsmall,normal 600 14px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
- ._11c81c04{font:var(--ds-font-heading-xlarge,normal 600 29px/2pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
3
- ._11c81vhk{font:var(--ds-font-heading-xxsmall,normal 600 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
4
- ._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
5
- ._11c8lodh{font:var(--ds-font-heading-medium,normal 500 20px/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
6
- ._11c8nbxd{font:var(--ds-font-heading-small,normal 600 1pc/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
7
- ._11c8nf1z{font:var(--ds-font-heading-large,normal 500 24px/28px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
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
+ ._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)}
4
+ ._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)}
5
+ ._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)}
6
+ ._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)}
7
+ ._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)}
@@ -17,13 +17,13 @@ var _editorToolbar = require("@atlaskit/editor-toolbar");
17
17
  var _compiled = require("@atlaskit/primitives/compiled");
18
18
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
19
19
  var headingSizeStylesMap = {
20
- normal: "_11c82smr",
21
- heading1: "_11c81c04",
22
- heading2: "_11c8nf1z",
23
- heading3: "_11c8lodh",
24
- heading4: "_11c8nbxd",
25
- heading5: "_11c8140y",
26
- heading6: "_11c81vhk"
20
+ normal: "_11c8fhey",
21
+ heading1: "_11c812ln",
22
+ heading2: "_11c810sd",
23
+ heading3: "_11c81af2",
24
+ heading4: "_11c81e3o",
25
+ heading5: "_11c81qyo",
26
+ heading6: "_11c8i4vh"
27
27
  };
28
28
  var shortcuts = {
29
29
  normal: _keymaps.setNormalText,
@@ -131,7 +131,7 @@ export const createPlugin = (editorAPI, dispatch, lastNodeMustBeParagraph, inclu
131
131
  */
132
132
  handleKeyDown: (view, event) => {
133
133
  let headingLevel = HEADING_KEYS.indexOf(event.keyCode);
134
- if (headingLevel === -1 && fg('platform_editor_heading_from_numpad')) {
134
+ if (headingLevel === -1) {
135
135
  // Check for numpad keys if not found in digits row
136
136
  headingLevel = HEADING_NUMPAD_KEYS.indexOf(event.keyCode);
137
137
  }
@@ -1,7 +1,7 @@
1
- ._11c8140y{font:var(--ds-font-heading-xsmall,normal 600 14px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
- ._11c81c04{font:var(--ds-font-heading-xlarge,normal 600 29px/2pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
3
- ._11c81vhk{font:var(--ds-font-heading-xxsmall,normal 600 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
4
- ._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
5
- ._11c8lodh{font:var(--ds-font-heading-medium,normal 500 20px/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
6
- ._11c8nbxd{font:var(--ds-font-heading-small,normal 600 1pc/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
7
- ._11c8nf1z{font:var(--ds-font-heading-large,normal 500 24px/28px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
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
+ ._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)}
4
+ ._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)}
5
+ ._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)}
6
+ ._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)}
7
+ ._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)}
@@ -10,13 +10,13 @@ import { ToolbarDropdownItem, ToolbarKeyboardShortcutHint } from '@atlaskit/edit
10
10
  import { Box } from '@atlaskit/primitives/compiled';
11
11
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
12
12
  const headingSizeStylesMap = {
13
- normal: "_11c82smr",
14
- heading1: "_11c81c04",
15
- heading2: "_11c8nf1z",
16
- heading3: "_11c8lodh",
17
- heading4: "_11c8nbxd",
18
- heading5: "_11c8140y",
19
- heading6: "_11c81vhk"
13
+ normal: "_11c8fhey",
14
+ heading1: "_11c812ln",
15
+ heading2: "_11c810sd",
16
+ heading3: "_11c81af2",
17
+ heading4: "_11c81e3o",
18
+ heading5: "_11c81qyo",
19
+ heading6: "_11c8i4vh"
20
20
  };
21
21
  const shortcuts = {
22
22
  normal: setNormalText,
@@ -138,7 +138,7 @@ export var createPlugin = function createPlugin(editorAPI, dispatch, lastNodeMus
138
138
  */
139
139
  handleKeyDown: function handleKeyDown(view, event) {
140
140
  var headingLevel = HEADING_KEYS.indexOf(event.keyCode);
141
- if (headingLevel === -1 && fg('platform_editor_heading_from_numpad')) {
141
+ if (headingLevel === -1) {
142
142
  // Check for numpad keys if not found in digits row
143
143
  headingLevel = HEADING_NUMPAD_KEYS.indexOf(event.keyCode);
144
144
  }
@@ -1,7 +1,7 @@
1
- ._11c8140y{font:var(--ds-font-heading-xsmall,normal 600 14px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
- ._11c81c04{font:var(--ds-font-heading-xlarge,normal 600 29px/2pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
3
- ._11c81vhk{font:var(--ds-font-heading-xxsmall,normal 600 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
4
- ._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
5
- ._11c8lodh{font:var(--ds-font-heading-medium,normal 500 20px/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
6
- ._11c8nbxd{font:var(--ds-font-heading-small,normal 600 1pc/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
7
- ._11c8nf1z{font:var(--ds-font-heading-large,normal 500 24px/28px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
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
+ ._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)}
4
+ ._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)}
5
+ ._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)}
6
+ ._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)}
7
+ ._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)}
@@ -10,13 +10,13 @@ import { ToolbarDropdownItem, ToolbarKeyboardShortcutHint } from '@atlaskit/edit
10
10
  import { Box } from '@atlaskit/primitives/compiled';
11
11
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
12
12
  var headingSizeStylesMap = {
13
- normal: "_11c82smr",
14
- heading1: "_11c81c04",
15
- heading2: "_11c8nf1z",
16
- heading3: "_11c8lodh",
17
- heading4: "_11c8nbxd",
18
- heading5: "_11c8140y",
19
- heading6: "_11c81vhk"
13
+ normal: "_11c8fhey",
14
+ heading1: "_11c812ln",
15
+ heading2: "_11c810sd",
16
+ heading3: "_11c81af2",
17
+ heading4: "_11c81e3o",
18
+ heading5: "_11c81qyo",
19
+ heading6: "_11c8i4vh"
20
20
  };
21
21
  var shortcuts = {
22
22
  normal: setNormalText,
@@ -37,7 +37,7 @@ export interface State {
37
37
  active: boolean;
38
38
  isOpenedByKeyboard: boolean;
39
39
  observer: ThemeMutationObserver | null;
40
- typographyTheme: ThemeState['typography'];
40
+ typographyTheme?: ThemeState['typography'];
41
41
  }
42
42
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
43
43
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
@@ -37,7 +37,7 @@ export interface State {
37
37
  active: boolean;
38
38
  isOpenedByKeyboard: boolean;
39
39
  observer: ThemeMutationObserver | null;
40
- typographyTheme: ThemeState['typography'];
40
+ typographyTheme?: ThemeState['typography'];
41
41
  }
42
42
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
43
43
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "11.0.3",
3
+ "version": "11.1.1",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -42,22 +42,22 @@
42
42
  "@atlaskit/editor-shared-styles": "^3.10.0",
43
43
  "@atlaskit/editor-tables": "^2.9.0",
44
44
  "@atlaskit/editor-toolbar": "^0.19.0",
45
- "@atlaskit/editor-toolbar-model": "^0.2.0",
45
+ "@atlaskit/editor-toolbar-model": "^0.3.0",
46
46
  "@atlaskit/icon": "^29.4.0",
47
47
  "@atlaskit/icon-lab": "^5.14.0",
48
48
  "@atlaskit/platform-feature-flags": "^1.1.0",
49
49
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
50
- "@atlaskit/primitives": "^17.0.0",
50
+ "@atlaskit/primitives": "^17.1.0",
51
51
  "@atlaskit/prosemirror-history": "^0.2.0",
52
52
  "@atlaskit/prosemirror-input-rules": "^3.6.0",
53
53
  "@atlaskit/theme": "^21.0.0",
54
- "@atlaskit/tmp-editor-statsig": "^16.11.0",
55
- "@atlaskit/tokens": "^9.1.0",
54
+ "@atlaskit/tmp-editor-statsig": "^16.23.0",
55
+ "@atlaskit/tokens": "^10.0.0",
56
56
  "@babel/runtime": "^7.0.0",
57
57
  "@emotion/react": "^11.7.1"
58
58
  },
59
59
  "peerDependencies": {
60
- "@atlaskit/editor-common": "^111.7.0",
60
+ "@atlaskit/editor-common": "^111.8.0",
61
61
  "react": "^18.2.0",
62
62
  "react-dom": "^18.2.0",
63
63
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -121,9 +121,6 @@
121
121
  },
122
122
  "platform_editor_adf_with_localid": {
123
123
  "type": "boolean"
124
- },
125
- "platform_editor_heading_from_numpad": {
126
- "type": "boolean"
127
124
  }
128
125
  }
129
126
  }