@atlaskit/editor-common 116.11.0 → 116.12.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,24 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 116.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`2c4d58951fcb7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2c4d58951fcb7) -
8
+ [ux] add Labs lozenge to suggested edits card footer and sidebar pill
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 116.11.1
15
+
16
+ ### Patch Changes
17
+
18
+ - [`49b8e9a322976`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/49b8e9a322976) -
19
+ Reduce q4 lovability experiment exposure noise in code block setup and bookkeeping paths
20
+ - Updated dependencies
21
+
3
22
  ## 116.11.0
4
23
 
5
24
  ### Minor Changes
@@ -76,6 +76,11 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
76
76
  defaultMessage: '{count} suggestions',
77
77
  description: 'Tooltip text for the suggestion icon button when there are multiple AI suggestions'
78
78
  },
79
+ labsLozengeLabel: {
80
+ id: 'fabric.editor.ai.suggestions.labsLozengeLabel.non-final',
81
+ defaultMessage: 'Labs',
82
+ description: 'Label for the Labs lozenge shown on AI suggestion cards and sidebar tabs'
83
+ },
79
84
  originalViewLabel: {
80
85
  id: 'fabric.editor.ai.suggestions.stagingArea.originalViewLabel.non-final',
81
86
  defaultMessage: 'Original • View only',
@@ -11,6 +11,7 @@ var _adfSchema = require("@atlaskit/adf-schema");
11
11
  var _transform = require("@atlaskit/editor-prosemirror/transform");
12
12
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
13
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
14
+ var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
14
15
  var _slice = require("../utils/slice");
15
16
  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; }
16
17
  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 @atlaskit/volt-strict-mode/no-multiple-exports */
@@ -26,7 +27,7 @@ var getDefaultCodeBlockAttrs = exports.getDefaultCodeBlockAttrs = function getDe
26
27
  var attrsWithLocalId = localId ? _objectSpread(_objectSpread({}, attrs), {}, {
27
28
  localId: localId
28
29
  }) : attrs;
29
- if (!(0, _expValEquals.expValEquals)('platform_editor_code_block_q4_lovability', 'isEnabled', true)) {
30
+ if (!(0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_code_block_q4_lovability', 'isEnabled', true)) {
30
31
  return attrsWithLocalId;
31
32
  }
32
33
 
@@ -130,14 +131,14 @@ var getInsertedCodeBlocksInTransaction = exports.getInsertedCodeBlocksInTransact
130
131
 
131
132
  var codeBlockFoldStates = new WeakMap();
132
133
  var isCodeBlockWordWrapEnabled = exports.isCodeBlockWordWrapEnabled = function isCodeBlockWordWrapEnabled(codeBlockNode) {
133
- if ((0, _expValEquals.expValEquals)('platform_editor_code_block_q4_lovability', 'isEnabled', true)) {
134
+ if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_code_block_q4_lovability', 'isEnabled', true)) {
134
135
  return Boolean(codeBlockNode.attrs.wrap);
135
136
  }
136
137
  var currentNodeWordWrapState = codeBlockWrappedStates.get(codeBlockNode);
137
138
  return currentNodeWordWrapState !== undefined ? currentNodeWordWrapState : defaultWordWrapState;
138
139
  };
139
140
  var areCodeBlockLineNumbersHidden = exports.areCodeBlockLineNumbersHidden = function areCodeBlockLineNumbersHidden(codeBlockNode) {
140
- if (!(0, _expValEquals.expValEquals)('platform_editor_code_block_q4_lovability', 'isEnabled', true)) {
141
+ if (!(0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_code_block_q4_lovability', 'isEnabled', true)) {
141
142
  return false;
142
143
  }
143
144
  return Boolean(codeBlockNode.attrs.hideLineNumbers);
@@ -28,7 +28,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
28
28
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
29
29
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
30
30
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
31
- var packageVersion = "116.10.1";
31
+ var packageVersion = "116.11.1";
32
32
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
33
33
  // Remove URL as it has UGC
34
34
  // 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 = "116.10.1";
27
+ var packageVersion = "116.11.1";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -70,6 +70,11 @@ export const aiSuggestionsMessages = defineMessages({
70
70
  defaultMessage: '{count} suggestions',
71
71
  description: 'Tooltip text for the suggestion icon button when there are multiple AI suggestions'
72
72
  },
73
+ labsLozengeLabel: {
74
+ id: 'fabric.editor.ai.suggestions.labsLozengeLabel.non-final',
75
+ defaultMessage: 'Labs',
76
+ description: 'Label for the Labs lozenge shown on AI suggestion cards and sidebar tabs'
77
+ },
73
78
  originalViewLabel: {
74
79
  id: 'fabric.editor.ai.suggestions.stagingArea.originalViewLabel.non-final',
75
80
  defaultMessage: 'Original • View only',
@@ -3,6 +3,7 @@ import { uuid } from '@atlaskit/adf-schema';
3
3
  import { ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
4
4
  import { fg } from '@atlaskit/platform-feature-flags';
5
5
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
6
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
6
7
  import { mapSlice } from '../utils/slice';
7
8
  export const defaultWordWrapState = false;
8
9
 
@@ -17,7 +18,7 @@ export const getDefaultCodeBlockAttrs = attrs => {
17
18
  ...attrs,
18
19
  localId
19
20
  } : attrs;
20
- if (!expValEquals('platform_editor_code_block_q4_lovability', 'isEnabled', true)) {
21
+ if (!expValEqualsNoExposure('platform_editor_code_block_q4_lovability', 'isEnabled', true)) {
21
22
  return attrsWithLocalId;
22
23
  }
23
24
 
@@ -114,14 +115,14 @@ export const getInsertedCodeBlocksInTransaction = (tr, codeBlockType, options =
114
115
 
115
116
  const codeBlockFoldStates = new WeakMap();
116
117
  export const isCodeBlockWordWrapEnabled = codeBlockNode => {
117
- if (expValEquals('platform_editor_code_block_q4_lovability', 'isEnabled', true)) {
118
+ if (expValEqualsNoExposure('platform_editor_code_block_q4_lovability', 'isEnabled', true)) {
118
119
  return Boolean(codeBlockNode.attrs.wrap);
119
120
  }
120
121
  const currentNodeWordWrapState = codeBlockWrappedStates.get(codeBlockNode);
121
122
  return currentNodeWordWrapState !== undefined ? currentNodeWordWrapState : defaultWordWrapState;
122
123
  };
123
124
  export const areCodeBlockLineNumbersHidden = codeBlockNode => {
124
- if (!expValEquals('platform_editor_code_block_q4_lovability', 'isEnabled', true)) {
125
+ if (!expValEqualsNoExposure('platform_editor_code_block_q4_lovability', 'isEnabled', true)) {
125
126
  return false;
126
127
  }
127
128
  return Boolean(codeBlockNode.attrs.hideLineNumbers);
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
14
14
  const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
15
15
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
16
16
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
17
- const packageVersion = "116.10.1";
17
+ const packageVersion = "116.11.1";
18
18
  const sanitiseSentryEvents = (data, _hint) => {
19
19
  // Remove URL as it has UGC
20
20
  // 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 = "116.10.1";
17
+ const packageVersion = "116.11.1";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -70,6 +70,11 @@ export var aiSuggestionsMessages = defineMessages({
70
70
  defaultMessage: '{count} suggestions',
71
71
  description: 'Tooltip text for the suggestion icon button when there are multiple AI suggestions'
72
72
  },
73
+ labsLozengeLabel: {
74
+ id: 'fabric.editor.ai.suggestions.labsLozengeLabel.non-final',
75
+ defaultMessage: 'Labs',
76
+ description: 'Label for the Labs lozenge shown on AI suggestion cards and sidebar tabs'
77
+ },
73
78
  originalViewLabel: {
74
79
  id: 'fabric.editor.ai.suggestions.stagingArea.originalViewLabel.non-final',
75
80
  defaultMessage: 'Original • View only',
@@ -7,6 +7,7 @@ import { uuid } from '@atlaskit/adf-schema';
7
7
  import { ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
8
8
  import { fg } from '@atlaskit/platform-feature-flags';
9
9
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
10
11
  import { mapSlice } from '../utils/slice';
11
12
  export var defaultWordWrapState = false;
12
13
 
@@ -20,7 +21,7 @@ export var getDefaultCodeBlockAttrs = function getDefaultCodeBlockAttrs(attrs) {
20
21
  var attrsWithLocalId = localId ? _objectSpread(_objectSpread({}, attrs), {}, {
21
22
  localId: localId
22
23
  }) : attrs;
23
- if (!expValEquals('platform_editor_code_block_q4_lovability', 'isEnabled', true)) {
24
+ if (!expValEqualsNoExposure('platform_editor_code_block_q4_lovability', 'isEnabled', true)) {
24
25
  return attrsWithLocalId;
25
26
  }
26
27
 
@@ -124,14 +125,14 @@ export var getInsertedCodeBlocksInTransaction = function getInsertedCodeBlocksIn
124
125
 
125
126
  var codeBlockFoldStates = new WeakMap();
126
127
  export var isCodeBlockWordWrapEnabled = function isCodeBlockWordWrapEnabled(codeBlockNode) {
127
- if (expValEquals('platform_editor_code_block_q4_lovability', 'isEnabled', true)) {
128
+ if (expValEqualsNoExposure('platform_editor_code_block_q4_lovability', 'isEnabled', true)) {
128
129
  return Boolean(codeBlockNode.attrs.wrap);
129
130
  }
130
131
  var currentNodeWordWrapState = codeBlockWrappedStates.get(codeBlockNode);
131
132
  return currentNodeWordWrapState !== undefined ? currentNodeWordWrapState : defaultWordWrapState;
132
133
  };
133
134
  export var areCodeBlockLineNumbersHidden = function areCodeBlockLineNumbersHidden(codeBlockNode) {
134
- if (!expValEquals('platform_editor_code_block_q4_lovability', 'isEnabled', true)) {
135
+ if (!expValEqualsNoExposure('platform_editor_code_block_q4_lovability', 'isEnabled', true)) {
135
136
  return false;
136
137
  }
137
138
  return Boolean(codeBlockNode.attrs.hideLineNumbers);
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
20
20
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
21
21
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
22
22
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
23
- var packageVersion = "116.10.1";
23
+ var packageVersion = "116.11.1";
24
24
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
25
25
  // Remove URL as it has UGC
26
26
  // 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 = "116.10.1";
24
+ var packageVersion = "116.11.1";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -109,6 +109,11 @@ export declare const aiSuggestionsMessages: {
109
109
  description: string;
110
110
  id: string;
111
111
  };
112
+ labsLozengeLabel: {
113
+ defaultMessage: string;
114
+ description: string;
115
+ id: string;
116
+ };
112
117
  originalViewLabel: {
113
118
  defaultMessage: string;
114
119
  description: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "116.11.0",
3
+ "version": "116.12.0",
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/"
@@ -49,11 +49,11 @@
49
49
  "@atlaskit/editor-tables": "^3.0.0",
50
50
  "@atlaskit/editor-toolbar": "^2.0.0",
51
51
  "@atlaskit/editor-toolbar-model": "^1.0.0",
52
- "@atlaskit/emoji": "^71.4.0",
52
+ "@atlaskit/emoji": "^71.5.0",
53
53
  "@atlaskit/icon": "^36.0.0",
54
54
  "@atlaskit/link": "^4.0.0",
55
55
  "@atlaskit/link-datasource": "^6.0.0",
56
- "@atlaskit/link-picker": "^6.0.0",
56
+ "@atlaskit/link-picker": "^6.1.0",
57
57
  "@atlaskit/media-card": "^81.1.0",
58
58
  "@atlaskit/media-client": "^37.1.0",
59
59
  "@atlaskit/media-client-react": "^6.0.0",
@@ -69,17 +69,17 @@
69
69
  "@atlaskit/platform-feature-flags": "^2.0.0",
70
70
  "@atlaskit/platform-feature-flags-react": "^1.0.0",
71
71
  "@atlaskit/primitives": "^20.0.0",
72
- "@atlaskit/profilecard": "^26.1.0",
72
+ "@atlaskit/profilecard": "^26.2.0",
73
73
  "@atlaskit/prosemirror-history": "^1.0.0",
74
- "@atlaskit/react-ufo": "^7.1.0",
74
+ "@atlaskit/react-ufo": "^7.2.0",
75
75
  "@atlaskit/section-message": "^9.1.0",
76
- "@atlaskit/smart-card": "^45.2.0",
76
+ "@atlaskit/smart-card": "^45.3.0",
77
77
  "@atlaskit/smart-user-picker": "^11.0.0",
78
78
  "@atlaskit/spinner": "^20.0.0",
79
79
  "@atlaskit/task-decision": "^21.2.0",
80
80
  "@atlaskit/teams-app-config": "^2.0.0",
81
81
  "@atlaskit/textfield": "^9.0.0",
82
- "@atlaskit/tmp-editor-statsig": "^110.0.0",
82
+ "@atlaskit/tmp-editor-statsig": "^111.1.0",
83
83
  "@atlaskit/tokens": "^15.0.0",
84
84
  "@atlaskit/tooltip": "^23.0.0",
85
85
  "@atlaskit/width-detector": "^6.0.0",
@@ -121,7 +121,7 @@
121
121
  },
122
122
  "devDependencies": {
123
123
  "@atlaskit/media-core": "^38.0.0",
124
- "@atlassian/a11y-jest-testing": "^0.12.0",
124
+ "@atlassian/a11y-jest-testing": "^0.13.0",
125
125
  "@testing-library/dom": "^10.1.0",
126
126
  "@testing-library/jest-dom": "^6.4.5",
127
127
  "@testing-library/react": "^16.3.0",