@atlaskit/editor-common 106.1.3 → 106.1.4

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,14 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 106.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#162718](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/162718)
8
+ [`0258f5ac08bf9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0258f5ac08bf9) -
9
+ ED-26960 Add logic so that layout column option dropdown shows icons like single_column_layouts
10
+ - Updated dependencies
11
+
3
12
  ## 106.1.3
4
13
 
5
14
  ### Patch Changes
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  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); }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "106.1.3";
19
+ var packageVersion = "106.1.4";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // Ignored via go/ees007
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
23
23
  * @jsx jsx
24
24
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
25
  var packageName = "@atlaskit/editor-common";
26
- var packageVersion = "106.1.3";
26
+ var packageVersion = "106.1.4";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -220,8 +220,7 @@ var canLinkBeCreatedInRange = exports.canLinkBeCreatedInRange = function canLink
220
220
  if ($from.parent.type.allowsMarkType(link)) {
221
221
  var allowed = true;
222
222
  state.doc.nodesBetween(from, to, function (node) {
223
- var _state$schema$nodes$i;
224
- var hasInlineCard = node.type.name === ((_state$schema$nodes$i = state.schema.nodes.inlineCard) === null || _state$schema$nodes$i === void 0 ? void 0 : _state$schema$nodes$i.name) && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_11');
223
+ var hasInlineCard = node.type === state.schema.nodes.inlineCard && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_11');
225
224
  allowed = allowed && !node.marks.some(function (m) {
226
225
  return m.type.excludes(link);
227
226
  }) && !hasInlineCard;
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "106.1.3";
4
+ const packageVersion = "106.1.4";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // Ignored via go/ees007
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
13
13
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import Layer from '../Layer';
15
15
  const packageName = "@atlaskit/editor-common";
16
- const packageVersion = "106.1.3";
16
+ const packageVersion = "106.1.4";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -191,8 +191,7 @@ export const canLinkBeCreatedInRange = (from, to) => state => {
191
191
  if ($from.parent.type.allowsMarkType(link)) {
192
192
  let allowed = true;
193
193
  state.doc.nodesBetween(from, to, node => {
194
- var _state$schema$nodes$i;
195
- const hasInlineCard = node.type.name === ((_state$schema$nodes$i = state.schema.nodes.inlineCard) === null || _state$schema$nodes$i === void 0 ? void 0 : _state$schema$nodes$i.name) && fg('platform_editor_controls_patch_11');
194
+ const hasInlineCard = node.type === state.schema.nodes.inlineCard && fg('platform_editor_controls_patch_11');
196
195
  allowed = allowed && !node.marks.some(m => m.type.excludes(link)) && !hasInlineCard;
197
196
  return allowed;
198
197
  });
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "106.1.3";
10
+ var packageVersion = "106.1.4";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // Ignored via go/ees007
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
20
20
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "106.1.3";
23
+ var packageVersion = "106.1.4";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
@@ -209,8 +209,7 @@ export var canLinkBeCreatedInRange = function canLinkBeCreatedInRange(from, to)
209
209
  if ($from.parent.type.allowsMarkType(link)) {
210
210
  var allowed = true;
211
211
  state.doc.nodesBetween(from, to, function (node) {
212
- var _state$schema$nodes$i;
213
- var hasInlineCard = node.type.name === ((_state$schema$nodes$i = state.schema.nodes.inlineCard) === null || _state$schema$nodes$i === void 0 ? void 0 : _state$schema$nodes$i.name) && fg('platform_editor_controls_patch_11');
212
+ var hasInlineCard = node.type === state.schema.nodes.inlineCard && fg('platform_editor_controls_patch_11');
214
213
  allowed = allowed && !node.marks.some(function (m) {
215
214
  return m.type.excludes(link);
216
215
  }) && !hasInlineCard;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "106.1.3",
3
+ "version": "106.1.4",
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/"
@@ -169,7 +169,7 @@
169
169
  "@atlaskit/task-decision": "^19.2.0",
170
170
  "@atlaskit/textfield": "^8.0.0",
171
171
  "@atlaskit/theme": "^18.0.0",
172
- "@atlaskit/tmp-editor-statsig": "^5.5.0",
172
+ "@atlaskit/tmp-editor-statsig": "^5.7.0",
173
173
  "@atlaskit/tokens": "^4.9.0",
174
174
  "@atlaskit/tooltip": "^20.2.0",
175
175
  "@atlaskit/width-detector": "^5.0.0",