@atlaskit/editor-plugin-code-bidi-warning 6.1.0 → 6.1.2

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,20 @@
1
1
  # @atlaskit/editor-plugin-code-bidi-warning
2
2
 
3
+ ## 6.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 6.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`4d676bbdb3ce6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4d676bbdb3ce6) -
14
+ ts-ignore added temporarily to unblock local consumption for help-center, will be removed once
15
+ project refs are setup
16
+ - Updated dependencies
17
+
3
18
  ## 6.1.0
4
19
 
5
20
  ### Minor Changes
@@ -56,6 +56,8 @@ var createPlugin = exports.createPlugin = function createPlugin(api, _ref, _ref2
56
56
  };
57
57
  }),
58
58
  props: {
59
+ // @ts-ignore - Workaround for help-center local consumption
60
+
59
61
  decorations: function decorations(state) {
60
62
  if ((0, _expValEquals.expValEquals)('platform_editor_remove_bidi_char_warning', 'isEnabled', true)) {
61
63
  return _view.DecorationSet.empty;
@@ -16,7 +16,7 @@ var _view = require("@atlaskit/editor-prosemirror/view");
16
16
  var _pluginKey = require("./plugin-key");
17
17
  var _reducer = _interopRequireDefault(require("./reducer"));
18
18
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
19
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
19
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
20
20
  var pluginFactoryCreator = exports.pluginFactoryCreator = function pluginFactoryCreator(nodeViewPortalProviderAPI) {
21
21
  return (0, _utils.pluginFactory)(_pluginKey.codeBidiWarningPluginKey, _reducer.default, {
22
22
  onDocChanged: function onDocChanged(tr, pluginState) {
@@ -82,6 +82,7 @@ function createBidiWarningsDecorationSetFromDoc(_ref) {
82
82
  var newBidiWarningsDecorationSet = _view.DecorationSet.create(doc, bidiCharactersAndTheirPositions.map(function (_ref4) {
83
83
  var position = _ref4.position,
84
84
  bidiCharacter = _ref4.bidiCharacter;
85
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
85
86
  var renderKey = (0, _v.default)();
86
87
  return _view.Decoration.widget(position, function (el) {
87
88
  return renderDOM({
@@ -53,6 +53,8 @@ export const createPlugin = (api, {
53
53
  };
54
54
  }),
55
55
  props: {
56
+ // @ts-ignore - Workaround for help-center local consumption
57
+
56
58
  decorations: state => {
57
59
  if (expValEquals('platform_editor_remove_bidi_char_warning', 'isEnabled', true)) {
58
60
  return DecorationSet.empty;
@@ -1,4 +1,6 @@
1
1
  import React from 'react';
2
+
3
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
2
4
  import uuid from 'uuid/v4';
3
5
  import CodeBidiWarning from '@atlaskit/code/bidi-warning';
4
6
  import codeBidiWarningDecorator from '@atlaskit/code/bidi-warning-decorator';
@@ -72,6 +74,7 @@ export function createBidiWarningsDecorationSetFromDoc({
72
74
  position,
73
75
  bidiCharacter
74
76
  }) => {
77
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
75
78
  const renderKey = uuid();
76
79
  return Decoration.widget(position, el => renderDOM({
77
80
  bidiCharacter,
@@ -50,6 +50,8 @@ export var createPlugin = function createPlugin(api, _ref, _ref2) {
50
50
  };
51
51
  }),
52
52
  props: {
53
+ // @ts-ignore - Workaround for help-center local consumption
54
+
53
55
  decorations: function decorations(state) {
54
56
  if (expValEquals('platform_editor_remove_bidi_char_warning', 'isEnabled', true)) {
55
57
  return DecorationSet.empty;
@@ -2,6 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  import React from 'react';
5
+
6
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
5
7
  import uuid from 'uuid/v4';
6
8
  import CodeBidiWarning from '@atlaskit/code/bidi-warning';
7
9
  import codeBidiWarningDecorator from '@atlaskit/code/bidi-warning-decorator';
@@ -74,6 +76,7 @@ export function createBidiWarningsDecorationSetFromDoc(_ref) {
74
76
  var newBidiWarningsDecorationSet = DecorationSet.create(doc, bidiCharactersAndTheirPositions.map(function (_ref4) {
75
77
  var position = _ref4.position,
76
78
  bidiCharacter = _ref4.bidiCharacter;
79
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
77
80
  var renderKey = uuid();
78
81
  return Decoration.widget(position, function (el) {
79
82
  return renderDOM({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-bidi-warning",
3
- "version": "6.1.0",
3
+ "version": "6.1.2",
4
4
  "description": "Code bidi warning plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -27,23 +27,20 @@
27
27
  "sideEffects": false,
28
28
  "atlaskit:src": "src/index.ts",
29
29
  "dependencies": {
30
- "@atlaskit/code": "^17.2.0",
31
- "@atlaskit/editor-plugin-limited-mode": "^3.0.0",
30
+ "@atlaskit/code": "^17.3.0",
31
+ "@atlaskit/editor-plugin-limited-mode": "^3.1.0",
32
32
  "@atlaskit/editor-prosemirror": "7.0.0",
33
33
  "@atlaskit/platform-feature-flags": "^1.1.0",
34
- "@atlaskit/tmp-editor-statsig": "^13.19.0",
34
+ "@atlaskit/tmp-editor-statsig": "^14.0.0",
35
35
  "@babel/runtime": "^7.0.0",
36
36
  "uuid": "^3.1.0"
37
37
  },
38
38
  "peerDependencies": {
39
- "@atlaskit/editor-common": "^110.18.0",
39
+ "@atlaskit/editor-common": "^110.36.0",
40
40
  "react": "^18.2.0",
41
41
  "react-dom": "^18.2.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@af/integration-testing": "workspace:^",
45
- "@af/visual-regression": "workspace:^",
46
- "@atlaskit/ssr": "workspace:^",
47
44
  "@testing-library/react": "^13.4.0",
48
45
  "wait-for-expect": "^1.2.0"
49
46
  },