@atlaskit/editor-common 112.2.0 → 112.2.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,19 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 112.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 112.2.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`b941a7ee841df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b941a7ee841df) -
14
+ EDITOR-5683 remove unused isOutdatedBrowser function from editor-common
15
+ - Updated dependencies
16
+
3
17
  ## 112.2.0
4
18
 
5
19
  ### Minor Changes
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
19
19
  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); }
20
20
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
21
21
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
22
- var packageVersion = "112.1.0";
22
+ var packageVersion = "0.0.0-development";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsx jsx
25
25
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "112.1.0";
27
+ var packageVersion = "0.0.0-development";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -779,12 +779,6 @@ Object.defineProperty(exports, "isNodeSelectedOrInRange", {
779
779
  return _nodes.isNodeSelectedOrInRange;
780
780
  }
781
781
  });
782
- Object.defineProperty(exports, "isOutdatedBrowser", {
783
- enumerable: true,
784
- get: function get() {
785
- return _outdatedBrowsers.isOutdatedBrowser;
786
- }
787
- });
788
782
  Object.defineProperty(exports, "isParagraph", {
789
783
  enumerable: true,
790
784
  get: function get() {
@@ -1234,7 +1228,6 @@ var _renderCount = require("./profiler/render-count");
1234
1228
  var _validateUsingSpec = require("./validate-using-spec");
1235
1229
  var _compareProps = require("./compare-props");
1236
1230
  var _useComponentRenderTracking = require("./performance/hooks/use-component-render-tracking");
1237
- var _outdatedBrowsers = require("./outdated-browsers");
1238
1231
  var _autojoin = require("./prosemirror/autojoin");
1239
1232
  var _referentiality = require("./referentiality");
1240
1233
  var _list = require("./list");
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
4
4
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
5
5
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
6
6
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
7
- const packageVersion = "112.1.0";
7
+ const packageVersion = "0.0.0-development";
8
8
  const sanitiseSentryEvents = (data, _hint) => {
9
9
  // Remove URL as it has UGC
10
10
  // Ignored via go/ees007
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "112.1.0";
17
+ const packageVersion = "0.0.0-development";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -152,7 +152,6 @@ useComponentRenderTracking } from './performance/hooks/use-component-render-trac
152
152
  *
153
153
  * Private API do not use
154
154
  */
155
- export { isOutdatedBrowser } from './outdated-browsers';
156
155
  export { autoJoinTr } from './prosemirror/autojoin';
157
156
  export { isReferencedSource, removeConnectedNodes, getChildrenInfo, getNodeName } from './referentiality';
158
157
  export { getItemCounterDigitsSize, getOrderFromOrderedListNode, resolveOrder, isListNode, isParagraphNode, isListItemNode, isBulletList } from './list';
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
10
10
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
11
11
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
12
12
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
13
- var packageVersion = "112.1.0";
13
+ var packageVersion = "0.0.0-development";
14
14
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
15
15
  // Remove URL as it has UGC
16
16
  // Ignored via go/ees007
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "112.1.0";
24
+ var packageVersion = "0.0.0-development";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -152,7 +152,6 @@ useComponentRenderTracking } from './performance/hooks/use-component-render-trac
152
152
  *
153
153
  * Private API do not use
154
154
  */
155
- export { isOutdatedBrowser } from './outdated-browsers';
156
155
  export { autoJoinTr } from './prosemirror/autojoin';
157
156
  export { isReferencedSource, removeConnectedNodes, getChildrenInfo, getNodeName } from './referentiality';
158
157
  export { getItemCounterDigitsSize, getOrderFromOrderedListNode, resolveOrder, isListNode, isParagraphNode, isListItemNode, isBulletList } from './list';
@@ -34,27 +34,27 @@ export declare enum LINK_RESOURCE {
34
34
  }
35
35
  type InsertLineBreakAEP = TrackAEP<ACTION.INSERTED, ACTION_SUBJECT.TEXT, ACTION_SUBJECT_ID.LINE_BREAK, undefined, undefined>;
36
36
  type InsertDividerAEP = InsertAEP<ACTION_SUBJECT_ID.DIVIDER, {
37
- inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT;
37
+ inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT | INPUT_METHOD.ELEMENT_BROWSER;
38
38
  }, undefined>;
39
39
  type InsertPanelAEP = InsertAEP<ACTION_SUBJECT_ID.PANEL, {
40
- inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU;
40
+ inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.ELEMENT_BROWSER;
41
41
  panelType: PanelType;
42
42
  }, undefined>;
43
43
  type InsertCodeBlockAEP = InsertAEP<ACTION_SUBJECT_ID.CODE_BLOCK, {
44
44
  inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.ELEMENT_BROWSER;
45
45
  }, undefined>;
46
46
  type InsertTableAEP = InsertAEP<ACTION_SUBJECT_ID.TABLE, {
47
- inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.PICKER | INPUT_METHOD.SHORTCUT;
47
+ inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.ELEMENT_BROWSER | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.PICKER | INPUT_METHOD.SHORTCUT;
48
48
  localId?: string;
49
49
  totalColumnCount?: number;
50
50
  totalRowCount?: number;
51
51
  }, undefined>;
52
52
  type InsertExpandAEP = InsertAEP<ACTION_SUBJECT_ID.EXPAND | ACTION_SUBJECT_ID.NESTED_EXPAND, {
53
- inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.INSERT_MENU;
53
+ inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.ELEMENT_BROWSER | INPUT_METHOD.TOOLBAR;
54
54
  }, undefined>;
55
55
  type InsertActionDecisionAEP = InsertAEP<ACTION_SUBJECT_ID.DECISION | ACTION_SUBJECT_ID.ACTION, {
56
56
  containerAri?: string;
57
- inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB;
57
+ inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.ELEMENT_BROWSER | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB;
58
58
  listLocalId: string;
59
59
  listSize: number;
60
60
  localId: string;
@@ -66,7 +66,7 @@ type InsertEmojiAEP = InsertAEP<ACTION_SUBJECT_ID.EMOJI, {
66
66
  inputMethod: INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.PICKER | INPUT_METHOD.ASCII;
67
67
  }, undefined>;
68
68
  type InsertStatusAEP = InsertAEP<ACTION_SUBJECT_ID.STATUS, {
69
- inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU;
69
+ inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.ELEMENT_BROWSER;
70
70
  }, undefined>;
71
71
  export type InputMethodInsertMedia = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.PICKER_CLOUD | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.BROWSER | INPUT_METHOD.MEDIA_PICKER;
72
72
  export type InsertMediaVia = INSERT_MEDIA_VIA.EXTERNAL_UPLOAD | INSERT_MEDIA_VIA.EXTERNAL_URL | INSERT_MEDIA_VIA.LOCAL_UPLOAD;
@@ -111,7 +111,7 @@ type InsertLayoutAEP = InsertAEP<ACTION_SUBJECT_ID.LAYOUT, {
111
111
  nodeTypes?: string;
112
112
  }, undefined>;
113
113
  export type InsertDateAEP = InsertAEP<ACTION_SUBJECT_ID.DATE, {
114
- inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.INLINE_SUGGESTION_FLOATING_TB;
114
+ inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.ELEMENT_BROWSER | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.INLINE_SUGGESTION_FLOATING_TB;
115
115
  }, undefined>;
116
116
  type InsertExtensionAEP = InsertAEP<ACTION_SUBJECT_ID.EXTENSION, {
117
117
  extensionKey: string;
@@ -134,7 +134,7 @@ type InsertNodeViaExtensionAPIAEP = InsertAEP<undefined, {
134
134
  nodeTypesReferenced?: string[];
135
135
  }, undefined>;
136
136
  type InsertPlaceholderTextAEP = InsertAEP<ACTION_SUBJECT_ID.PLACEHOLDER_TEXT, {
137
- inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU;
137
+ inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.ELEMENT_BROWSER;
138
138
  }, undefined>;
139
139
  type FailedToInsertMediaPayload = OperationalAEP<ACTION.FAILED_TO_INSERT, ACTION_SUBJECT.DOCUMENT, ACTION_SUBJECT_ID.MEDIA_INLINE | ACTION_SUBJECT_ID.MEDIA_SINGLE | ACTION_SUBJECT_ID.MEDIA_GROUP, {
140
140
  fileExtension?: string;
@@ -161,7 +161,6 @@ export type { UseComponentRenderTrackingArgs } from './performance/hooks/use-com
161
161
  *
162
162
  * Private API do not use
163
163
  */
164
- export { isOutdatedBrowser } from './outdated-browsers';
165
164
  export { autoJoinTr } from './prosemirror/autojoin';
166
165
  export { isReferencedSource, removeConnectedNodes, getChildrenInfo, getNodeName, } from './referentiality';
167
166
  export { getItemCounterDigitsSize, getOrderFromOrderedListNode, resolveOrder, isListNode, isParagraphNode, isListItemNode, isBulletList, } from './list';
@@ -34,27 +34,27 @@ export declare enum LINK_RESOURCE {
34
34
  }
35
35
  type InsertLineBreakAEP = TrackAEP<ACTION.INSERTED, ACTION_SUBJECT.TEXT, ACTION_SUBJECT_ID.LINE_BREAK, undefined, undefined>;
36
36
  type InsertDividerAEP = InsertAEP<ACTION_SUBJECT_ID.DIVIDER, {
37
- inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT;
37
+ inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT | INPUT_METHOD.ELEMENT_BROWSER;
38
38
  }, undefined>;
39
39
  type InsertPanelAEP = InsertAEP<ACTION_SUBJECT_ID.PANEL, {
40
- inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU;
40
+ inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.ELEMENT_BROWSER;
41
41
  panelType: PanelType;
42
42
  }, undefined>;
43
43
  type InsertCodeBlockAEP = InsertAEP<ACTION_SUBJECT_ID.CODE_BLOCK, {
44
44
  inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.ELEMENT_BROWSER;
45
45
  }, undefined>;
46
46
  type InsertTableAEP = InsertAEP<ACTION_SUBJECT_ID.TABLE, {
47
- inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.PICKER | INPUT_METHOD.SHORTCUT;
47
+ inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.ELEMENT_BROWSER | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.PICKER | INPUT_METHOD.SHORTCUT;
48
48
  localId?: string;
49
49
  totalColumnCount?: number;
50
50
  totalRowCount?: number;
51
51
  }, undefined>;
52
52
  type InsertExpandAEP = InsertAEP<ACTION_SUBJECT_ID.EXPAND | ACTION_SUBJECT_ID.NESTED_EXPAND, {
53
- inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.INSERT_MENU;
53
+ inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.ELEMENT_BROWSER | INPUT_METHOD.TOOLBAR;
54
54
  }, undefined>;
55
55
  type InsertActionDecisionAEP = InsertAEP<ACTION_SUBJECT_ID.DECISION | ACTION_SUBJECT_ID.ACTION, {
56
56
  containerAri?: string;
57
- inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB;
57
+ inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.ELEMENT_BROWSER | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB;
58
58
  listLocalId: string;
59
59
  listSize: number;
60
60
  localId: string;
@@ -66,7 +66,7 @@ type InsertEmojiAEP = InsertAEP<ACTION_SUBJECT_ID.EMOJI, {
66
66
  inputMethod: INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.PICKER | INPUT_METHOD.ASCII;
67
67
  }, undefined>;
68
68
  type InsertStatusAEP = InsertAEP<ACTION_SUBJECT_ID.STATUS, {
69
- inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU;
69
+ inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.ELEMENT_BROWSER;
70
70
  }, undefined>;
71
71
  export type InputMethodInsertMedia = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.PICKER_CLOUD | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.BROWSER | INPUT_METHOD.MEDIA_PICKER;
72
72
  export type InsertMediaVia = INSERT_MEDIA_VIA.EXTERNAL_UPLOAD | INSERT_MEDIA_VIA.EXTERNAL_URL | INSERT_MEDIA_VIA.LOCAL_UPLOAD;
@@ -111,7 +111,7 @@ type InsertLayoutAEP = InsertAEP<ACTION_SUBJECT_ID.LAYOUT, {
111
111
  nodeTypes?: string;
112
112
  }, undefined>;
113
113
  export type InsertDateAEP = InsertAEP<ACTION_SUBJECT_ID.DATE, {
114
- inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.INLINE_SUGGESTION_FLOATING_TB;
114
+ inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.ELEMENT_BROWSER | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.INLINE_SUGGESTION_FLOATING_TB;
115
115
  }, undefined>;
116
116
  type InsertExtensionAEP = InsertAEP<ACTION_SUBJECT_ID.EXTENSION, {
117
117
  extensionKey: string;
@@ -134,7 +134,7 @@ type InsertNodeViaExtensionAPIAEP = InsertAEP<undefined, {
134
134
  nodeTypesReferenced?: string[];
135
135
  }, undefined>;
136
136
  type InsertPlaceholderTextAEP = InsertAEP<ACTION_SUBJECT_ID.PLACEHOLDER_TEXT, {
137
- inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU;
137
+ inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.ELEMENT_BROWSER;
138
138
  }, undefined>;
139
139
  type FailedToInsertMediaPayload = OperationalAEP<ACTION.FAILED_TO_INSERT, ACTION_SUBJECT.DOCUMENT, ACTION_SUBJECT_ID.MEDIA_INLINE | ACTION_SUBJECT_ID.MEDIA_SINGLE | ACTION_SUBJECT_ID.MEDIA_GROUP, {
140
140
  fileExtension?: string;
@@ -161,7 +161,6 @@ export type { UseComponentRenderTrackingArgs } from './performance/hooks/use-com
161
161
  *
162
162
  * Private API do not use
163
163
  */
164
- export { isOutdatedBrowser } from './outdated-browsers';
165
164
  export { autoJoinTr } from './prosemirror/autojoin';
166
165
  export { isReferencedSource, removeConnectedNodes, getChildrenInfo, getNodeName, } from './referentiality';
167
166
  export { getItemCounterDigitsSize, getOrderFromOrderedListNode, resolveOrder, isListNode, isParagraphNode, isListItemNode, isBulletList, } from './list';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "112.2.0",
3
+ "version": "112.2.2",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -82,7 +82,7 @@
82
82
  "@atlaskit/task-decision": "^19.3.0",
83
83
  "@atlaskit/textfield": "^8.2.0",
84
84
  "@atlaskit/theme": "^22.0.0",
85
- "@atlaskit/tmp-editor-statsig": "^36.1.0",
85
+ "@atlaskit/tmp-editor-statsig": "^37.0.0",
86
86
  "@atlaskit/tokens": "^11.1.0",
87
87
  "@atlaskit/tooltip": "^20.14.0",
88
88
  "@atlaskit/width-detector": "^5.0.0",
@@ -1,50 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.isOutdatedBrowser = void 0;
7
- var isOutdatedBrowser = exports.isOutdatedBrowser = function isOutdatedBrowser(userAgent) {
8
- // Take browsers in both Desktop and Mobile (includes Chrome, Firefox, Edge and Safari) within last 2 years
9
- // Ignored via go/ees005
10
- // eslint-disable-next-line require-unicode-regexp
11
- // Ignored via go/ees005
12
- // eslint-disable-next-line require-unicode-regexp
13
- var chrome = /Chrome\//.test(userAgent) && !/OPR\//.test(userAgent);
14
- // Ignored via go/ees005
15
- // eslint-disable-next-line require-unicode-regexp
16
- var chromeVersion = chrome ? parseInt((userAgent.match(/Chrome\/(\d+)/) || [])[1], 10) : 0;
17
- if (chromeVersion >= 84) {
18
- return false;
19
- }
20
-
21
- // Ignored via go/ees005
22
- // eslint-disable-next-line require-unicode-regexp
23
- var gecko = /gecko\/\d/i.test(userAgent);
24
- // Ignored via go/ees005
25
- // eslint-disable-next-line require-unicode-regexp
26
- var geckoVersion = gecko ? parseInt((userAgent.match(/Firefox\/(\d+)/) || [])[1], 10) : 0;
27
- if (geckoVersion >= 84) {
28
- return false;
29
- }
30
-
31
- // Ignored via go/ees005
32
- // eslint-disable-next-line require-unicode-regexp
33
- var edge = /Edge\/(\d+)/.exec(userAgent);
34
- var edgeVersion = edge ? +edge[1] : 0;
35
- if (edgeVersion >= 84) {
36
- return false;
37
- }
38
-
39
- // Ignored via go/ees005
40
- // eslint-disable-next-line require-unicode-regexp
41
- var safari = !chrome && !gecko && /Version\/([0-9\._]+).*Safari/.test(userAgent);
42
- var safariVersion = safari ?
43
- // Ignored via go/ees005
44
- // eslint-disable-next-line require-unicode-regexp
45
- parseInt((userAgent.match(/Version\/([0-9\._]+).*Safari/) || [])[1], 10) : 0;
46
- if (safariVersion >= 12) {
47
- return false;
48
- }
49
- return true;
50
- };
@@ -1,44 +0,0 @@
1
- export const isOutdatedBrowser = userAgent => {
2
- // Take browsers in both Desktop and Mobile (includes Chrome, Firefox, Edge and Safari) within last 2 years
3
- // Ignored via go/ees005
4
- // eslint-disable-next-line require-unicode-regexp
5
- // Ignored via go/ees005
6
- // eslint-disable-next-line require-unicode-regexp
7
- const chrome = /Chrome\//.test(userAgent) && !/OPR\//.test(userAgent);
8
- // Ignored via go/ees005
9
- // eslint-disable-next-line require-unicode-regexp
10
- const chromeVersion = chrome ? parseInt((userAgent.match(/Chrome\/(\d+)/) || [])[1], 10) : 0;
11
- if (chromeVersion >= 84) {
12
- return false;
13
- }
14
-
15
- // Ignored via go/ees005
16
- // eslint-disable-next-line require-unicode-regexp
17
- const gecko = /gecko\/\d/i.test(userAgent);
18
- // Ignored via go/ees005
19
- // eslint-disable-next-line require-unicode-regexp
20
- const geckoVersion = gecko ? parseInt((userAgent.match(/Firefox\/(\d+)/) || [])[1], 10) : 0;
21
- if (geckoVersion >= 84) {
22
- return false;
23
- }
24
-
25
- // Ignored via go/ees005
26
- // eslint-disable-next-line require-unicode-regexp
27
- const edge = /Edge\/(\d+)/.exec(userAgent);
28
- const edgeVersion = edge ? +edge[1] : 0;
29
- if (edgeVersion >= 84) {
30
- return false;
31
- }
32
-
33
- // Ignored via go/ees005
34
- // eslint-disable-next-line require-unicode-regexp
35
- const safari = !chrome && !gecko && /Version\/([0-9\._]+).*Safari/.test(userAgent);
36
- const safariVersion = safari ?
37
- // Ignored via go/ees005
38
- // eslint-disable-next-line require-unicode-regexp
39
- parseInt((userAgent.match(/Version\/([0-9\._]+).*Safari/) || [])[1], 10) : 0;
40
- if (safariVersion >= 12) {
41
- return false;
42
- }
43
- return true;
44
- };
@@ -1,44 +0,0 @@
1
- export var isOutdatedBrowser = function isOutdatedBrowser(userAgent) {
2
- // Take browsers in both Desktop and Mobile (includes Chrome, Firefox, Edge and Safari) within last 2 years
3
- // Ignored via go/ees005
4
- // eslint-disable-next-line require-unicode-regexp
5
- // Ignored via go/ees005
6
- // eslint-disable-next-line require-unicode-regexp
7
- var chrome = /Chrome\//.test(userAgent) && !/OPR\//.test(userAgent);
8
- // Ignored via go/ees005
9
- // eslint-disable-next-line require-unicode-regexp
10
- var chromeVersion = chrome ? parseInt((userAgent.match(/Chrome\/(\d+)/) || [])[1], 10) : 0;
11
- if (chromeVersion >= 84) {
12
- return false;
13
- }
14
-
15
- // Ignored via go/ees005
16
- // eslint-disable-next-line require-unicode-regexp
17
- var gecko = /gecko\/\d/i.test(userAgent);
18
- // Ignored via go/ees005
19
- // eslint-disable-next-line require-unicode-regexp
20
- var geckoVersion = gecko ? parseInt((userAgent.match(/Firefox\/(\d+)/) || [])[1], 10) : 0;
21
- if (geckoVersion >= 84) {
22
- return false;
23
- }
24
-
25
- // Ignored via go/ees005
26
- // eslint-disable-next-line require-unicode-regexp
27
- var edge = /Edge\/(\d+)/.exec(userAgent);
28
- var edgeVersion = edge ? +edge[1] : 0;
29
- if (edgeVersion >= 84) {
30
- return false;
31
- }
32
-
33
- // Ignored via go/ees005
34
- // eslint-disable-next-line require-unicode-regexp
35
- var safari = !chrome && !gecko && /Version\/([0-9\._]+).*Safari/.test(userAgent);
36
- var safariVersion = safari ?
37
- // Ignored via go/ees005
38
- // eslint-disable-next-line require-unicode-regexp
39
- parseInt((userAgent.match(/Version\/([0-9\._]+).*Safari/) || [])[1], 10) : 0;
40
- if (safariVersion >= 12) {
41
- return false;
42
- }
43
- return true;
44
- };
@@ -1 +0,0 @@
1
- export declare const isOutdatedBrowser: (userAgent: string) => boolean;
@@ -1 +0,0 @@
1
- export declare const isOutdatedBrowser: (userAgent: string) => boolean;