@atlaskit/editor-plugin-help-dialog 1.2.6 → 1.2.8

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,24 @@
1
1
  # @atlaskit/editor-plugin-help-dialog
2
2
 
3
+ ## 1.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#111297](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111297)
8
+ [`5f51c15a6d33f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5f51c15a6d33f) -
9
+ Updates focus style override on the close button in the help modal, to work with the latest change
10
+ to `@atlaskit/button` focus style.
11
+ - Updated dependencies
12
+
13
+ ## 1.2.7
14
+
15
+ ### Patch Changes
16
+
17
+ - [#109353](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109353)
18
+ [`d932e2d76d8fc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d932e2d76d8fc) -
19
+ Removed FF for Media resize
20
+ - Updated dependencies
21
+
3
22
  ## 1.2.6
4
23
 
5
24
  ### Patch Changes
@@ -562,10 +562,9 @@ var quickInsertAutoFormat = function quickInsertAutoFormat(_ref6) {
562
562
  }
563
563
  };
564
564
  };
565
- var isAnyA11yResizeFeatureFlagEnabled = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.a11y-media-resizing_b5v0o') || (0, _platformFeatureFlags.getBooleanFF)('platform.editor.a11y-table-resizing_uapcv');
566
565
  var getSupportedFormatting = exports.getSupportedFormatting = function getSupportedFormatting(schema, intl, imageEnabled, quickInsertEnabled) {
567
566
  var supportedBySchema = formatting(intl).filter(function (format) {
568
567
  return schema.nodes[format.type] || schema.marks[format.type];
569
568
  });
570
- return [].concat((0, _toConsumableArray2.default)(navigationKeymaps(intl)), (0, _toConsumableArray2.default)(otherFormatting(intl)), (0, _toConsumableArray2.default)(supportedBySchema), (0, _toConsumableArray2.default)(imageEnabled ? [imageAutoFormat] : []), (0, _toConsumableArray2.default)(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), (0, _toConsumableArray2.default)((0, _platformFeatureFlags.getBooleanFF)('platform.editor.a11y-table-resizing_uapcv') ? focusTableResizeHandleFormatting(intl) : []), (0, _toConsumableArray2.default)(isAnyA11yResizeFeatureFlagEnabled ? resizeInformationFormatting(intl) : []));
569
+ return [].concat((0, _toConsumableArray2.default)(navigationKeymaps(intl)), (0, _toConsumableArray2.default)(otherFormatting(intl)), (0, _toConsumableArray2.default)(supportedBySchema), (0, _toConsumableArray2.default)(imageEnabled ? [imageAutoFormat] : []), (0, _toConsumableArray2.default)(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), (0, _toConsumableArray2.default)((0, _platformFeatureFlags.getBooleanFF)('platform.editor.a11y-table-resizing_uapcv') ? focusTableResizeHandleFormatting(intl) : []), (0, _toConsumableArray2.default)(resizeInformationFormatting(intl)));
571
570
  };
@@ -161,7 +161,8 @@ var componentFromKeymapWrapperStyles = exports.componentFromKeymapWrapperStyles
161
161
 
162
162
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
163
163
  var toolbarButton = exports.toolbarButton = (0, _react.css)({
164
- '&:focus': {
164
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
165
+ '&:focus:not(:focus-visible)': {
165
166
  outline: "2px solid ".concat("var(--ds-border-focused, ".concat(_colors.B300, ")")),
166
167
  outlineOffset: "var(--ds-space-025, 2px)"
167
168
  }
@@ -414,8 +414,7 @@ const quickInsertAutoFormat = ({
414
414
  css: codeLg
415
415
  }, "/"))
416
416
  });
417
- const isAnyA11yResizeFeatureFlagEnabled = getBooleanFF('platform.editor.a11y-media-resizing_b5v0o') || getBooleanFF('platform.editor.a11y-table-resizing_uapcv');
418
417
  export const getSupportedFormatting = (schema, intl, imageEnabled, quickInsertEnabled) => {
419
418
  const supportedBySchema = formatting(intl).filter(format => schema.nodes[format.type] || schema.marks[format.type]);
420
- return [...navigationKeymaps(intl), ...otherFormatting(intl), ...supportedBySchema, ...(imageEnabled ? [imageAutoFormat] : []), ...(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), ...(getBooleanFF('platform.editor.a11y-table-resizing_uapcv') ? focusTableResizeHandleFormatting(intl) : []), ...(isAnyA11yResizeFeatureFlagEnabled ? resizeInformationFormatting(intl) : [])];
419
+ return [...navigationKeymaps(intl), ...otherFormatting(intl), ...supportedBySchema, ...(imageEnabled ? [imageAutoFormat] : []), ...(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), ...(getBooleanFF('platform.editor.a11y-table-resizing_uapcv') ? focusTableResizeHandleFormatting(intl) : []), ...resizeInformationFormatting(intl)];
421
420
  };
@@ -152,7 +152,8 @@ export const componentFromKeymapWrapperStyles = css({
152
152
 
153
153
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
154
154
  export const toolbarButton = css({
155
- '&:focus': {
155
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
156
+ '&:focus:not(:focus-visible)': {
156
157
  outline: `2px solid ${`var(--ds-border-focused, ${B300})`}`,
157
158
  outlineOffset: "var(--ds-space-025, 2px)"
158
159
  }
@@ -554,10 +554,9 @@ var quickInsertAutoFormat = function quickInsertAutoFormat(_ref6) {
554
554
  }
555
555
  };
556
556
  };
557
- var isAnyA11yResizeFeatureFlagEnabled = getBooleanFF('platform.editor.a11y-media-resizing_b5v0o') || getBooleanFF('platform.editor.a11y-table-resizing_uapcv');
558
557
  export var getSupportedFormatting = function getSupportedFormatting(schema, intl, imageEnabled, quickInsertEnabled) {
559
558
  var supportedBySchema = formatting(intl).filter(function (format) {
560
559
  return schema.nodes[format.type] || schema.marks[format.type];
561
560
  });
562
- return [].concat(_toConsumableArray(navigationKeymaps(intl)), _toConsumableArray(otherFormatting(intl)), _toConsumableArray(supportedBySchema), _toConsumableArray(imageEnabled ? [imageAutoFormat] : []), _toConsumableArray(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), _toConsumableArray(getBooleanFF('platform.editor.a11y-table-resizing_uapcv') ? focusTableResizeHandleFormatting(intl) : []), _toConsumableArray(isAnyA11yResizeFeatureFlagEnabled ? resizeInformationFormatting(intl) : []));
561
+ return [].concat(_toConsumableArray(navigationKeymaps(intl)), _toConsumableArray(otherFormatting(intl)), _toConsumableArray(supportedBySchema), _toConsumableArray(imageEnabled ? [imageAutoFormat] : []), _toConsumableArray(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), _toConsumableArray(getBooleanFF('platform.editor.a11y-table-resizing_uapcv') ? focusTableResizeHandleFormatting(intl) : []), _toConsumableArray(resizeInformationFormatting(intl)));
563
562
  };
@@ -152,7 +152,8 @@ export var componentFromKeymapWrapperStyles = css({
152
152
 
153
153
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
154
154
  export var toolbarButton = css({
155
- '&:focus': {
155
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
156
+ '&:focus:not(:focus-visible)': {
156
157
  outline: "2px solid ".concat("var(--ds-border-focused, ".concat(B300, ")")),
157
158
  outlineOffset: "var(--ds-space-025, 2px)"
158
159
  }
package/package.json CHANGED
@@ -1,103 +1,100 @@
1
1
  {
2
- "name": "@atlaskit/editor-plugin-help-dialog",
3
- "version": "1.2.6",
4
- "description": "Help Dialog plugin for @atlaskit/editor-core",
5
- "author": "Atlassian Pty Ltd",
6
- "license": "Apache-2.0",
7
- "publishConfig": {
8
- "registry": "https://registry.npmjs.org/"
9
- },
10
- "atlassian": {
11
- "team": "Editor: Lego",
12
- "singleton": true,
13
- "releaseModel": "continuous",
14
- "runReact18": false
15
- },
16
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
17
- "main": "dist/cjs/index.js",
18
- "module": "dist/esm/index.js",
19
- "module:es2019": "dist/es2019/index.js",
20
- "types": "dist/types/index.d.ts",
21
- "typesVersions": {
22
- ">=4.5 <4.9": {
23
- "*": [
24
- "dist/types-ts4.5/*",
25
- "dist/types-ts4.5/index.d.ts"
26
- ]
27
- }
28
- },
29
- "sideEffects": false,
30
- "atlaskit:src": "src/index.ts",
31
- "af:exports": {
32
- ".": "./src/index.ts"
33
- },
34
- "dependencies": {
35
- "@atlaskit/editor-common": "^82.4.0",
36
- "@atlaskit/editor-plugin-analytics": "^1.2.0",
37
- "@atlaskit/editor-plugin-quick-insert": "^1.1.0",
38
- "@atlaskit/editor-prosemirror": "4.0.1",
39
- "@atlaskit/editor-shared-styles": "^2.12.0",
40
- "@atlaskit/icon": "^22.3.0",
41
- "@atlaskit/modal-dialog": "^12.13.0",
42
- "@atlaskit/platform-feature-flags": "^0.2.5",
43
- "@atlaskit/theme": "^12.9.0",
44
- "@atlaskit/tokens": "^1.50.0",
45
- "@babel/runtime": "^7.0.0",
46
- "@emotion/react": "^11.7.1",
47
- "react-intl-next": "npm:react-intl@^5.18.1",
48
- "react-loadable": "^5.1.0"
49
- },
50
- "devDependencies": {
51
- "@testing-library/react": "^12.1.5"
52
- },
53
- "peerDependencies": {
54
- "react": "^16.8.0"
55
- },
56
- "techstack": {
57
- "@atlassian/frontend": {
58
- "import-structure": [
59
- "atlassian-conventions"
60
- ],
61
- "circular-dependencies": [
62
- "file-and-folder-level"
63
- ]
64
- },
65
- "@repo/internal": {
66
- "dom-events": "use-bind-event-listener",
67
- "analytics": [
68
- "analytics-next"
69
- ],
70
- "design-tokens": [
71
- "color"
72
- ],
73
- "theming": [
74
- "react-context"
75
- ],
76
- "ui-components": [
77
- "lite-mode"
78
- ],
79
- "deprecation": "no-deprecated-imports",
80
- "styling": [
81
- "emotion",
82
- "emotion"
83
- ]
84
- }
85
- },
86
- "platform-feature-flags": {
87
- "platform.editor.a11y-media-resizing_b5v0o": {
88
- "type": "boolean"
89
- },
90
- "platform.editor.a11y-table-resizing_uapcv": {
91
- "type": "boolean"
92
- },
93
- "platform.editor.text-alignment-keyboard-shortcuts": {
94
- "type": "boolean"
95
- },
96
- "platform.editor.a11y-column-resizing_emcvz": {
97
- "type": "boolean"
98
- },
99
- "platform.editor.a11y-help-dialog-shortcut-keys-position_aghfg": {
100
- "type": "boolean"
101
- }
102
- }
103
- }
2
+ "name": "@atlaskit/editor-plugin-help-dialog",
3
+ "version": "1.2.8",
4
+ "description": "Help Dialog plugin for @atlaskit/editor-core",
5
+ "author": "Atlassian Pty Ltd",
6
+ "license": "Apache-2.0",
7
+ "publishConfig": {
8
+ "registry": "https://registry.npmjs.org/"
9
+ },
10
+ "atlassian": {
11
+ "team": "Editor: Lego",
12
+ "singleton": true,
13
+ "releaseModel": "continuous",
14
+ "runReact18": false
15
+ },
16
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
17
+ "main": "dist/cjs/index.js",
18
+ "module": "dist/esm/index.js",
19
+ "module:es2019": "dist/es2019/index.js",
20
+ "types": "dist/types/index.d.ts",
21
+ "typesVersions": {
22
+ ">=4.5 <4.9": {
23
+ "*": [
24
+ "dist/types-ts4.5/*",
25
+ "dist/types-ts4.5/index.d.ts"
26
+ ]
27
+ }
28
+ },
29
+ "sideEffects": false,
30
+ "atlaskit:src": "src/index.ts",
31
+ "af:exports": {
32
+ ".": "./src/index.ts"
33
+ },
34
+ "dependencies": {
35
+ "@atlaskit/editor-common": "^82.8.0",
36
+ "@atlaskit/editor-plugin-analytics": "^1.2.0",
37
+ "@atlaskit/editor-plugin-quick-insert": "^1.1.0",
38
+ "@atlaskit/editor-prosemirror": "4.0.1",
39
+ "@atlaskit/editor-shared-styles": "^2.12.0",
40
+ "@atlaskit/icon": "^22.3.0",
41
+ "@atlaskit/modal-dialog": "^12.13.0",
42
+ "@atlaskit/platform-feature-flags": "^0.2.5",
43
+ "@atlaskit/theme": "^12.9.0",
44
+ "@atlaskit/tokens": "^1.50.0",
45
+ "@babel/runtime": "^7.0.0",
46
+ "@emotion/react": "^11.7.1",
47
+ "react-intl-next": "npm:react-intl@^5.18.1",
48
+ "react-loadable": "^5.1.0"
49
+ },
50
+ "devDependencies": {
51
+ "@testing-library/react": "^12.1.5"
52
+ },
53
+ "peerDependencies": {
54
+ "react": "^16.8.0"
55
+ },
56
+ "techstack": {
57
+ "@atlassian/frontend": {
58
+ "import-structure": [
59
+ "atlassian-conventions"
60
+ ],
61
+ "circular-dependencies": [
62
+ "file-and-folder-level"
63
+ ]
64
+ },
65
+ "@repo/internal": {
66
+ "dom-events": "use-bind-event-listener",
67
+ "analytics": [
68
+ "analytics-next"
69
+ ],
70
+ "design-tokens": [
71
+ "color"
72
+ ],
73
+ "theming": [
74
+ "react-context"
75
+ ],
76
+ "ui-components": [
77
+ "lite-mode"
78
+ ],
79
+ "deprecation": "no-deprecated-imports",
80
+ "styling": [
81
+ "emotion",
82
+ "emotion"
83
+ ]
84
+ }
85
+ },
86
+ "platform-feature-flags": {
87
+ "platform.editor.a11y-table-resizing_uapcv": {
88
+ "type": "boolean"
89
+ },
90
+ "platform.editor.text-alignment-keyboard-shortcuts": {
91
+ "type": "boolean"
92
+ },
93
+ "platform.editor.a11y-column-resizing_emcvz": {
94
+ "type": "boolean"
95
+ },
96
+ "platform.editor.a11y-help-dialog-shortcut-keys-position_aghfg": {
97
+ "type": "boolean"
98
+ }
99
+ }
100
+ }