@atlaskit/editor-plugin-extension 15.0.10 → 15.0.12

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,19 @@
1
1
  # @atlaskit/editor-plugin-extension
2
2
 
3
+ ## 15.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - [`73743eb8b36e6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73743eb8b36e6) -
8
+ CLeanup prefer static regex violations
9
+ - Updated dependencies
10
+
11
+ ## 15.0.11
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 15.0.10
4
18
 
5
19
  ### Patch Changes
@@ -13,6 +13,9 @@ var _HelpLink = require("./HelpLink");
13
13
  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); }
14
14
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
15
15
 
16
+ // Ignored via go/ees005
17
+ // eslint-disable-next-line require-unicode-regexp
18
+ var DESCRIPTION_PERIOD_REGEX = /([^.])$/;
16
19
  var descriptionStyles = (0, _primitives.xcss)({
17
20
  marginBottom: 'space.300'
18
21
  });
@@ -35,10 +38,7 @@ function DescriptionSummary(_ref) {
35
38
  }, /*#__PURE__*/_react.default.createElement(_primitives.Text, {
36
39
  as: "p",
37
40
  testId: "config-panel-header-description"
38
- }, description && /*#__PURE__*/_react.default.createElement(_react.Fragment, null,
39
- // Ignored via go/ees005
40
- // eslint-disable-next-line require-unicode-regexp
41
- description.replace(/([^.])$/, '$1.'), ' '), (deprecation === null || deprecation === void 0 ? void 0 : deprecation.isDeprecated) && (deprecation === null || deprecation === void 0 ? void 0 : deprecation.message) && /*#__PURE__*/_react.default.createElement(_primitives.Box, {
41
+ }, description && /*#__PURE__*/_react.default.createElement(_react.Fragment, null, description.replace(DESCRIPTION_PERIOD_REGEX, '$1.'), " "), (deprecation === null || deprecation === void 0 ? void 0 : deprecation.isDeprecated) && (deprecation === null || deprecation === void 0 ? void 0 : deprecation.message) && /*#__PURE__*/_react.default.createElement(_primitives.Box, {
42
42
  paddingBlockStart: "space.150"
43
43
  }, deprecation.message), documentationUrl && (enableHelpCTA ? /*#__PURE__*/_react.default.createElement(_primitives.Box, {
44
44
  xcss: helpLinkStyles
@@ -23,6 +23,9 @@ var _HelpLink = require("./HelpLink");
23
23
 
24
24
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
25
25
 
26
+ // Ignored via go/ees005
27
+ // eslint-disable-next-line require-unicode-regexp
28
+ var DESCRIPTION_PERIOD_REGEX = /([^.])$/;
26
29
  var iconWidth = 40;
27
30
  var buttonWidth = 40;
28
31
  var margin = 16;
@@ -146,10 +149,7 @@ var Header = function Header(_ref) {
146
149
  }, (0, _react2.jsx)(_primitives.Text, {
147
150
  as: "p",
148
151
  testId: "config-panel-header-description"
149
- }, description && (0, _react2.jsx)(_react.Fragment, null,
150
- // Ignored via go/ees005
151
- // eslint-disable-next-line require-unicode-regexp
152
- description.replace(/([^.])$/, '$1.'), ' '), (deprecation === null || deprecation === void 0 ? void 0 : deprecation.isDeprecated) && (deprecation === null || deprecation === void 0 ? void 0 : deprecation.message) && (0, _react2.jsx)(_primitives.Box, {
152
+ }, description && (0, _react2.jsx)(_react.Fragment, null, description.replace(DESCRIPTION_PERIOD_REGEX, '$1.'), " "), (deprecation === null || deprecation === void 0 ? void 0 : deprecation.isDeprecated) && (deprecation === null || deprecation === void 0 ? void 0 : deprecation.message) && (0, _react2.jsx)(_primitives.Box, {
153
153
  paddingBlockStart: "space.150"
154
154
  }, deprecation.message), documentationUrl && (enableHelpCTA ? (0, _react2.jsx)(_primitives.Box, {
155
155
  xcss: helpLinkStyles
@@ -4,6 +4,10 @@ import { configPanelMessages as messages } from '@atlaskit/editor-common/extensi
4
4
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
5
5
  import { Box, Text, xcss } from '@atlaskit/primitives';
6
6
  import { HelpLink } from './HelpLink';
7
+
8
+ // Ignored via go/ees005
9
+ // eslint-disable-next-line require-unicode-regexp
10
+ const DESCRIPTION_PERIOD_REGEX = /([^.])$/;
7
11
  const descriptionStyles = xcss({
8
12
  marginBottom: 'space.300'
9
13
  });
@@ -30,10 +34,7 @@ export function DescriptionSummary({
30
34
  }, /*#__PURE__*/React.createElement(Text, {
31
35
  as: "p",
32
36
  testId: "config-panel-header-description"
33
- }, description && /*#__PURE__*/React.createElement(Fragment, null,
34
- // Ignored via go/ees005
35
- // eslint-disable-next-line require-unicode-regexp
36
- description.replace(/([^.])$/, '$1.'), ' '), (deprecation === null || deprecation === void 0 ? void 0 : deprecation.isDeprecated) && (deprecation === null || deprecation === void 0 ? void 0 : deprecation.message) && /*#__PURE__*/React.createElement(Box, {
37
+ }, description && /*#__PURE__*/React.createElement(Fragment, null, description.replace(DESCRIPTION_PERIOD_REGEX, '$1.'), " "), (deprecation === null || deprecation === void 0 ? void 0 : deprecation.isDeprecated) && (deprecation === null || deprecation === void 0 ? void 0 : deprecation.message) && /*#__PURE__*/React.createElement(Box, {
37
38
  paddingBlockStart: "space.150"
38
39
  }, deprecation.message), documentationUrl && (enableHelpCTA ? /*#__PURE__*/React.createElement(Box, {
39
40
  xcss: helpLinkStyles
@@ -14,6 +14,10 @@ import CrossIcon from '@atlaskit/icon/core/cross';
14
14
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
15
15
  import { Box, Text, xcss } from '@atlaskit/primitives';
16
16
  import { HelpLink } from './HelpLink';
17
+
18
+ // Ignored via go/ees005
19
+ // eslint-disable-next-line require-unicode-regexp
20
+ const DESCRIPTION_PERIOD_REGEX = /([^.])$/;
17
21
  const iconWidth = 40;
18
22
  const buttonWidth = 40;
19
23
  const margin = 16;
@@ -136,10 +140,7 @@ const Header = ({
136
140
  }, jsx(Text, {
137
141
  as: "p",
138
142
  testId: "config-panel-header-description"
139
- }, description && jsx(Fragment, null,
140
- // Ignored via go/ees005
141
- // eslint-disable-next-line require-unicode-regexp
142
- description.replace(/([^.])$/, '$1.'), ' '), (deprecation === null || deprecation === void 0 ? void 0 : deprecation.isDeprecated) && (deprecation === null || deprecation === void 0 ? void 0 : deprecation.message) && jsx(Box, {
143
+ }, description && jsx(Fragment, null, description.replace(DESCRIPTION_PERIOD_REGEX, '$1.'), " "), (deprecation === null || deprecation === void 0 ? void 0 : deprecation.isDeprecated) && (deprecation === null || deprecation === void 0 ? void 0 : deprecation.message) && jsx(Box, {
143
144
  paddingBlockStart: "space.150"
144
145
  }, deprecation.message), documentationUrl && (enableHelpCTA ? jsx(Box, {
145
146
  xcss: helpLinkStyles
@@ -4,6 +4,10 @@ import { configPanelMessages as messages } from '@atlaskit/editor-common/extensi
4
4
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
5
5
  import { Box, Text, xcss } from '@atlaskit/primitives';
6
6
  import { HelpLink } from './HelpLink';
7
+
8
+ // Ignored via go/ees005
9
+ // eslint-disable-next-line require-unicode-regexp
10
+ var DESCRIPTION_PERIOD_REGEX = /([^.])$/;
7
11
  var descriptionStyles = xcss({
8
12
  marginBottom: 'space.300'
9
13
  });
@@ -26,10 +30,7 @@ export function DescriptionSummary(_ref) {
26
30
  }, /*#__PURE__*/React.createElement(Text, {
27
31
  as: "p",
28
32
  testId: "config-panel-header-description"
29
- }, description && /*#__PURE__*/React.createElement(Fragment, null,
30
- // Ignored via go/ees005
31
- // eslint-disable-next-line require-unicode-regexp
32
- description.replace(/([^.])$/, '$1.'), ' '), (deprecation === null || deprecation === void 0 ? void 0 : deprecation.isDeprecated) && (deprecation === null || deprecation === void 0 ? void 0 : deprecation.message) && /*#__PURE__*/React.createElement(Box, {
33
+ }, description && /*#__PURE__*/React.createElement(Fragment, null, description.replace(DESCRIPTION_PERIOD_REGEX, '$1.'), " "), (deprecation === null || deprecation === void 0 ? void 0 : deprecation.isDeprecated) && (deprecation === null || deprecation === void 0 ? void 0 : deprecation.message) && /*#__PURE__*/React.createElement(Box, {
33
34
  paddingBlockStart: "space.150"
34
35
  }, deprecation.message), documentationUrl && (enableHelpCTA ? /*#__PURE__*/React.createElement(Box, {
35
36
  xcss: helpLinkStyles
@@ -14,6 +14,10 @@ import CrossIcon from '@atlaskit/icon/core/cross';
14
14
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
15
15
  import { Box, Text, xcss } from '@atlaskit/primitives';
16
16
  import { HelpLink } from './HelpLink';
17
+
18
+ // Ignored via go/ees005
19
+ // eslint-disable-next-line require-unicode-regexp
20
+ var DESCRIPTION_PERIOD_REGEX = /([^.])$/;
17
21
  var iconWidth = 40;
18
22
  var buttonWidth = 40;
19
23
  var margin = 16;
@@ -137,10 +141,7 @@ var Header = function Header(_ref) {
137
141
  }, jsx(Text, {
138
142
  as: "p",
139
143
  testId: "config-panel-header-description"
140
- }, description && jsx(Fragment, null,
141
- // Ignored via go/ees005
142
- // eslint-disable-next-line require-unicode-regexp
143
- description.replace(/([^.])$/, '$1.'), ' '), (deprecation === null || deprecation === void 0 ? void 0 : deprecation.isDeprecated) && (deprecation === null || deprecation === void 0 ? void 0 : deprecation.message) && jsx(Box, {
144
+ }, description && jsx(Fragment, null, description.replace(DESCRIPTION_PERIOD_REGEX, '$1.'), " "), (deprecation === null || deprecation === void 0 ? void 0 : deprecation.isDeprecated) && (deprecation === null || deprecation === void 0 ? void 0 : deprecation.message) && jsx(Box, {
144
145
  paddingBlockStart: "space.150"
145
146
  }, deprecation.message), documentationUrl && (enableHelpCTA ? jsx(Box, {
146
147
  xcss: helpLinkStyles
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-extension",
3
- "version": "15.0.10",
3
+ "version": "15.0.12",
4
4
  "description": "editor-plugin-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -23,12 +23,12 @@
23
23
  "dependencies": {
24
24
  "@atlaskit/adf-schema": "^56.0.0",
25
25
  "@atlaskit/adf-utils": "^20.0.0",
26
- "@atlaskit/analytics-next": "^12.0.0",
27
- "@atlaskit/avatar": "^26.0.0",
28
- "@atlaskit/browser-apis": "^1.0.0",
29
- "@atlaskit/button": "^24.1.0",
30
- "@atlaskit/checkbox": "^18.0.0",
31
- "@atlaskit/datetime-picker": "^18.0.0",
26
+ "@atlaskit/analytics-next": "^12.1.0",
27
+ "@atlaskit/avatar": "^26.1.0",
28
+ "@atlaskit/browser-apis": "^1.1.0",
29
+ "@atlaskit/button": "^24.3.0",
30
+ "@atlaskit/checkbox": "^18.1.0",
31
+ "@atlaskit/datetime-picker": "^18.1.0",
32
32
  "@atlaskit/editor-json-transformer": "^9.0.0",
33
33
  "@atlaskit/editor-plugin-analytics": "^12.0.0",
34
34
  "@atlaskit/editor-plugin-connectivity": "^12.0.0",
@@ -37,32 +37,32 @@
37
37
  "@atlaskit/editor-plugin-copy-button": "^12.0.0",
38
38
  "@atlaskit/editor-plugin-decorations": "^12.0.0",
39
39
  "@atlaskit/editor-plugin-feature-flags": "^11.0.0",
40
- "@atlaskit/editor-plugin-mentions": "^14.4.0",
40
+ "@atlaskit/editor-plugin-mentions": "^14.5.0",
41
41
  "@atlaskit/editor-plugin-toolbar": "^9.0.0",
42
42
  "@atlaskit/editor-plugin-width": "^13.0.0",
43
43
  "@atlaskit/editor-prosemirror": "^8.0.0",
44
44
  "@atlaskit/editor-shared-styles": "^4.0.0",
45
45
  "@atlaskit/editor-tables": "^3.0.0",
46
- "@atlaskit/empty-state": "^11.0.0",
47
- "@atlaskit/form": "^16.0.0",
48
- "@atlaskit/heading": "^6.0.0",
49
- "@atlaskit/icon": "^36.0.0",
50
- "@atlaskit/link": "^4.0.0",
51
- "@atlaskit/mention": "^27.2.0",
46
+ "@atlaskit/empty-state": "^11.1.0",
47
+ "@atlaskit/form": "^16.1.0",
48
+ "@atlaskit/heading": "^6.1.0",
49
+ "@atlaskit/icon": "^36.1.0",
50
+ "@atlaskit/link": "^4.1.0",
51
+ "@atlaskit/mention": "^27.5.0",
52
52
  "@atlaskit/platform-feature-flags": "^2.0.0",
53
- "@atlaskit/primitives": "^20.0.0",
54
- "@atlaskit/radio": "^9.0.0",
55
- "@atlaskit/section-message": "^9.1.0",
56
- "@atlaskit/select": "^22.1.0",
53
+ "@atlaskit/primitives": "^20.2.0",
54
+ "@atlaskit/radio": "^9.1.0",
55
+ "@atlaskit/section-message": "^9.2.0",
56
+ "@atlaskit/select": "^22.2.0",
57
57
  "@atlaskit/smart-user-picker": "^11.0.0",
58
- "@atlaskit/spinner": "^20.0.0",
59
- "@atlaskit/tabs": "^20.0.0",
60
- "@atlaskit/textarea": "^9.0.0",
61
- "@atlaskit/textfield": "^9.0.0",
62
- "@atlaskit/tmp-editor-statsig": "^113.0.0",
63
- "@atlaskit/toggle": "^17.0.0",
64
- "@atlaskit/tokens": "^15.0.0",
65
- "@atlaskit/tooltip": "^23.0.0",
58
+ "@atlaskit/spinner": "^20.1.0",
59
+ "@atlaskit/tabs": "^20.1.0",
60
+ "@atlaskit/textarea": "^9.1.0",
61
+ "@atlaskit/textfield": "^9.1.0",
62
+ "@atlaskit/tmp-editor-statsig": "^114.5.0",
63
+ "@atlaskit/toggle": "^17.1.0",
64
+ "@atlaskit/tokens": "^15.2.0",
65
+ "@atlaskit/tooltip": "^23.1.0",
66
66
  "@babel/runtime": "^7.0.0",
67
67
  "@emotion/react": "^11.7.1",
68
68
  "bind-event-listener": "^3.0.0",
@@ -73,7 +73,7 @@
73
73
  "uuid": "^3.1.0"
74
74
  },
75
75
  "peerDependencies": {
76
- "@atlaskit/editor-common": "^116.12.0",
76
+ "@atlaskit/editor-common": "^116.17.0",
77
77
  "react": "^18.2.0",
78
78
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
79
79
  },