@atlaskit/editor-core 213.3.0 → 213.4.0

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,16 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 213.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`cb7778d7ca5bb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cb7778d7ca5bb) -
8
+ introduce getBrowserInfo api from browser util, used in getUAPrefix
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
3
14
  ## 213.3.0
4
15
 
5
16
  ### Minor Changes
@@ -5,14 +5,16 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.getUAPrefix = getUAPrefix;
7
7
  var _browser = require("@atlaskit/editor-common/browser");
8
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
8
9
  function getUAPrefix() {
9
- if (_browser.browser.chrome) {
10
+ var browser = (0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) ? (0, _browser.getBrowserInfo)() : _browser.browser;
11
+ if (browser.chrome) {
10
12
  return 'ua-chrome';
11
- } else if (_browser.browser.ie) {
13
+ } else if (browser.ie) {
12
14
  return 'ua-ie';
13
- } else if (_browser.browser.gecko) {
15
+ } else if (browser.gecko) {
14
16
  return 'ua-firefox';
15
- } else if (_browser.browser.safari) {
17
+ } else if (browser.safari) {
16
18
  return 'ua-safari';
17
19
  }
18
20
  return '';
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "0.0.0-development";
8
+ var version = exports.version = "213.3.0";
@@ -1,5 +1,7 @@
1
- import { browser } from '@atlaskit/editor-common/browser';
1
+ import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
2
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
2
3
  export function getUAPrefix() {
4
+ const browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
3
5
  if (browser.chrome) {
4
6
  return 'ua-chrome';
5
7
  } else if (browser.ie) {
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "0.0.0-development";
2
+ export const version = "213.3.0";
@@ -1,5 +1,7 @@
1
- import { browser } from '@atlaskit/editor-common/browser';
1
+ import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
2
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
2
3
  export function getUAPrefix() {
4
+ var browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
3
5
  if (browser.chrome) {
4
6
  return 'ua-chrome';
5
7
  } else if (browser.ie) {
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "0.0.0-development";
2
+ export var version = "213.3.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "213.3.0",
3
+ "version": "213.4.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -81,7 +81,7 @@
81
81
  "uuid": "^3.1.0"
82
82
  },
83
83
  "peerDependencies": {
84
- "@atlaskit/editor-common": "^109.9.0",
84
+ "@atlaskit/editor-common": "^109.10.0",
85
85
  "@atlaskit/link-provider": "^4.0.0",
86
86
  "@atlaskit/media-core": "^37.0.0",
87
87
  "react": "^18.2.0",
@@ -107,7 +107,7 @@
107
107
  "@atlaskit/primitives": "^14.14.0",
108
108
  "@atlaskit/renderer": "^123.3.0",
109
109
  "@atlaskit/section-message": "^8.7.0",
110
- "@atlaskit/smart-card": "^41.0.0",
110
+ "@atlaskit/smart-card": "^42.0.0",
111
111
  "@atlaskit/synchrony-test-helpers": "workspace:^",
112
112
  "@atlaskit/toggle": "^15.1.0",
113
113
  "@atlaskit/util-data-test": "^18.2.0",