@atlaskit/editor-plugin-extension 2.0.6 → 2.0.8

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-extension
2
2
 
3
+ ## 2.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 2.0.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [#178297](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/178297)
14
+ [`7abc8162b32ab`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7abc8162b32ab) -
15
+ Internal changes to typography styles. There may be some minor visual changes to align with
16
+ modernized typography styles.
17
+
3
18
  ## 2.0.6
4
19
 
5
20
  ### Patch Changes
@@ -19,6 +19,7 @@ var factory = (0, _utils.pluginFactory)(_pluginKey.pluginKey, _reducer.default,
19
19
  return state;
20
20
  }
21
21
  var positions = _objectSpread({}, previousPositions);
22
+ // eslint-disable-next-line guard-for-in
22
23
  for (var key in positions) {
23
24
  positions[key] = tr.mapping.map(positions[key]);
24
25
  }
@@ -12,7 +12,6 @@ var _uiColor = require("@atlaskit/editor-common/ui-color");
12
12
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
13
13
  var _form = require("@atlaskit/form");
14
14
  var _primitives = require("@atlaskit/primitives");
15
- var _typography = require("@atlaskit/theme/typography");
16
15
  var _FieldMessages = _interopRequireDefault(require("../FieldMessages"));
17
16
  var _utils = require("../utils");
18
17
  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; }
@@ -335,9 +334,7 @@ var colorPickerWrapperStyles = (0, _react2.css)({
335
334
  paddingRight: "var(--ds-space-100, 8px)"
336
335
  });
337
336
  var colorPickerLabelStyles = (0, _react2.css)({
338
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
339
- fontSize: "".concat(_typography.headingSizes.h400.size, "px"),
340
- marginTop: 0
337
+ font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
341
338
  });
342
339
  var EXPANDED_COLOR_PICKER_COLUMNS = exports.EXPANDED_COLOR_PICKER_COLUMNS = 9;
343
340
  var ORIGINAL_COLOR_PICKER_COLUMNS = exports.ORIGINAL_COLOR_PICKER_COLUMNS = 5;
@@ -161,6 +161,7 @@ var serialize = exports.serialize = /*#__PURE__*/function () {
161
161
  case 7:
162
162
  // Crunch fields down to parameters
163
163
  parameters = result.reduce(function (obj, current) {
164
+ // eslint-disable-next-line guard-for-in
164
165
  for (var key in current) {
165
166
  obj[key] = current[key];
166
167
  }
@@ -251,6 +252,7 @@ var serializeExpandField = /*#__PURE__*/function () {
251
252
  value = _context4.sent;
252
253
  results = [];
253
254
  if (!field.hasGroupedValues) {
255
+ // eslint-disable-next-line guard-for-in
254
256
  for (fieldName in value) {
255
257
  results.push((0, _defineProperty2.default)({}, fieldName, value[fieldName]));
256
258
  }
@@ -316,6 +318,7 @@ var serializeTabGroupField = /*#__PURE__*/function () {
316
318
  value[tabField.name] = tabFieldParameters;
317
319
  } else {
318
320
  // Copy into tabGroup value
321
+ // eslint-disable-next-line guard-for-in
319
322
  for (fieldName in tabFieldParameters) {
320
323
  value[fieldName] = tabFieldParameters[fieldName];
321
324
  }
@@ -329,6 +332,7 @@ var serializeTabGroupField = /*#__PURE__*/function () {
329
332
  if (field.hasGroupedValues) {
330
333
  results.push((0, _defineProperty2.default)({}, field.name, value));
331
334
  } else {
335
+ // eslint-disable-next-line guard-for-in
332
336
  for (_fieldName in value) {
333
337
  results.push((0, _defineProperty2.default)({}, _fieldName, value));
334
338
  }
@@ -361,6 +365,7 @@ var serializeTabField = /*#__PURE__*/function () {
361
365
  results.push((0, _defineProperty2.default)({}, tabField.name, tabFieldParameters));
362
366
  } else {
363
367
  // Copy into tabGroup value
368
+ // eslint-disable-next-line guard-for-in
364
369
  for (fieldName in tabFieldParameters) {
365
370
  results.push((0, _defineProperty2.default)({}, fieldName, tabFieldParameters[fieldName]));
366
371
  }
@@ -605,6 +610,7 @@ var convertToParametersObject = function convertToParametersObject() {
605
610
  return parameters;
606
611
  }
607
612
  return parameters.reduce(function (obj, current) {
613
+ // eslint-disable-next-line guard-for-in
608
614
  for (var key in current) {
609
615
  var keys = Object.keys(obj);
610
616
  var resultKey = key;
@@ -624,6 +630,7 @@ var convertToParametersArray = function convertToParametersArray() {
624
630
  return parameters;
625
631
  }
626
632
  var dataArray = [];
633
+ // eslint-disable-next-line guard-for-in
627
634
  for (var name in parameters) {
628
635
  dataArray.push((0, _defineProperty2.default)({}, name, parameters[name]));
629
636
  }
@@ -1 +1,4 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ // Entry file in package.json
3
+
1
4
  export { extensionPlugin } from './plugin';
@@ -12,6 +12,7 @@ const factory = pluginFactory(pluginKey, reducer, {
12
12
  const positions = {
13
13
  ...previousPositions
14
14
  };
15
+ // eslint-disable-next-line guard-for-in
15
16
  for (const key in positions) {
16
17
  positions[key] = tr.mapping.map(positions[key]);
17
18
  }
@@ -10,7 +10,6 @@ import { chartsColorPaletteTooltipMessages, DEFAULT_BORDER_COLOR } from '@atlask
10
10
  import { ColorPickerButton } from '@atlaskit/editor-common/ui-menu';
11
11
  import { Field } from '@atlaskit/form';
12
12
  import { Text } from '@atlaskit/primitives';
13
- import { headingSizes } from '@atlaskit/theme/typography';
14
13
  import FieldMessages from '../FieldMessages';
15
14
  import { validate } from '../utils';
16
15
 
@@ -327,9 +326,7 @@ const colorPickerWrapperStyles = css({
327
326
  paddingRight: "var(--ds-space-100, 8px)"
328
327
  });
329
328
  const colorPickerLabelStyles = css({
330
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
331
- fontSize: `${headingSizes.h400.size}px`,
332
- marginTop: 0
329
+ font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
333
330
  });
334
331
  export const EXPANDED_COLOR_PICKER_COLUMNS = 9;
335
332
  export const ORIGINAL_COLOR_PICKER_COLUMNS = 5;
@@ -85,6 +85,7 @@ export const serialize = async (manifest, data, fields, options = {}) => {
85
85
 
86
86
  // Crunch fields down to parameters
87
87
  const parameters = result.reduce((obj, current) => {
88
+ // eslint-disable-next-line guard-for-in
88
89
  for (const key in current) {
89
90
  obj[key] = current[key];
90
91
  }
@@ -132,6 +133,7 @@ const serializeExpandField = async (manifest, field, data) => {
132
133
  });
133
134
  const results = [];
134
135
  if (!field.hasGroupedValues) {
136
+ // eslint-disable-next-line guard-for-in
135
137
  for (const fieldName in value) {
136
138
  results.push({
137
139
  [fieldName]: value[fieldName]
@@ -164,6 +166,7 @@ const serializeTabGroupField = async (manifest, field, data) => {
164
166
  value[tabField.name] = tabFieldParameters;
165
167
  } else {
166
168
  // Copy into tabGroup value
169
+ // eslint-disable-next-line guard-for-in
167
170
  for (const fieldName in tabFieldParameters) {
168
171
  value[fieldName] = tabFieldParameters[fieldName];
169
172
  }
@@ -176,6 +179,7 @@ const serializeTabGroupField = async (manifest, field, data) => {
176
179
  [field.name]: value
177
180
  });
178
181
  } else {
182
+ // eslint-disable-next-line guard-for-in
179
183
  for (const fieldName in value) {
180
184
  results.push({
181
185
  [fieldName]: value
@@ -195,6 +199,7 @@ const serializeTabField = async (manifest, field, data) => {
195
199
  });
196
200
  } else {
197
201
  // Copy into tabGroup value
202
+ // eslint-disable-next-line guard-for-in
198
203
  for (const fieldName in tabFieldParameters) {
199
204
  results.push({
200
205
  [fieldName]: tabFieldParameters[fieldName]
@@ -340,6 +345,7 @@ const convertToParametersObject = (parameters = []) => {
340
345
  return parameters;
341
346
  }
342
347
  return parameters.reduce((obj, current) => {
348
+ // eslint-disable-next-line guard-for-in
343
349
  for (const key in current) {
344
350
  const keys = Object.keys(obj);
345
351
  let resultKey = key;
@@ -358,6 +364,7 @@ const convertToParametersArray = (parameters = {}) => {
358
364
  return parameters;
359
365
  }
360
366
  const dataArray = [];
367
+ // eslint-disable-next-line guard-for-in
361
368
  for (const name in parameters) {
362
369
  dataArray.push({
363
370
  [name]: parameters[name]
package/dist/esm/index.js CHANGED
@@ -1 +1,4 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ // Entry file in package.json
3
+
1
4
  export { extensionPlugin } from './plugin';
@@ -12,6 +12,7 @@ var factory = pluginFactory(pluginKey, reducer, {
12
12
  return state;
13
13
  }
14
14
  var positions = _objectSpread({}, previousPositions);
15
+ // eslint-disable-next-line guard-for-in
15
16
  for (var key in positions) {
16
17
  positions[key] = tr.mapping.map(positions[key]);
17
18
  }
@@ -13,7 +13,6 @@ import { chartsColorPaletteTooltipMessages, DEFAULT_BORDER_COLOR } from '@atlask
13
13
  import { ColorPickerButton } from '@atlaskit/editor-common/ui-menu';
14
14
  import { Field } from '@atlaskit/form';
15
15
  import { Text } from '@atlaskit/primitives';
16
- import { headingSizes } from '@atlaskit/theme/typography';
17
16
  import FieldMessages from '../FieldMessages';
18
17
  import { validate as _validate } from '../utils';
19
18
 
@@ -332,9 +331,7 @@ var colorPickerWrapperStyles = css({
332
331
  paddingRight: "var(--ds-space-100, 8px)"
333
332
  });
334
333
  var colorPickerLabelStyles = css({
335
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
336
- fontSize: "".concat(headingSizes.h400.size, "px"),
337
- marginTop: 0
334
+ font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
338
335
  });
339
336
  export var EXPANDED_COLOR_PICKER_COLUMNS = 9;
340
337
  export var ORIGINAL_COLOR_PICKER_COLUMNS = 5;
@@ -154,6 +154,7 @@ export var serialize = /*#__PURE__*/function () {
154
154
  case 7:
155
155
  // Crunch fields down to parameters
156
156
  parameters = result.reduce(function (obj, current) {
157
+ // eslint-disable-next-line guard-for-in
157
158
  for (var key in current) {
158
159
  obj[key] = current[key];
159
160
  }
@@ -244,6 +245,7 @@ var serializeExpandField = /*#__PURE__*/function () {
244
245
  value = _context4.sent;
245
246
  results = [];
246
247
  if (!field.hasGroupedValues) {
248
+ // eslint-disable-next-line guard-for-in
247
249
  for (fieldName in value) {
248
250
  results.push(_defineProperty({}, fieldName, value[fieldName]));
249
251
  }
@@ -309,6 +311,7 @@ var serializeTabGroupField = /*#__PURE__*/function () {
309
311
  value[tabField.name] = tabFieldParameters;
310
312
  } else {
311
313
  // Copy into tabGroup value
314
+ // eslint-disable-next-line guard-for-in
312
315
  for (fieldName in tabFieldParameters) {
313
316
  value[fieldName] = tabFieldParameters[fieldName];
314
317
  }
@@ -322,6 +325,7 @@ var serializeTabGroupField = /*#__PURE__*/function () {
322
325
  if (field.hasGroupedValues) {
323
326
  results.push(_defineProperty({}, field.name, value));
324
327
  } else {
328
+ // eslint-disable-next-line guard-for-in
325
329
  for (_fieldName in value) {
326
330
  results.push(_defineProperty({}, _fieldName, value));
327
331
  }
@@ -354,6 +358,7 @@ var serializeTabField = /*#__PURE__*/function () {
354
358
  results.push(_defineProperty({}, tabField.name, tabFieldParameters));
355
359
  } else {
356
360
  // Copy into tabGroup value
361
+ // eslint-disable-next-line guard-for-in
357
362
  for (fieldName in tabFieldParameters) {
358
363
  results.push(_defineProperty({}, fieldName, tabFieldParameters[fieldName]));
359
364
  }
@@ -598,6 +603,7 @@ var convertToParametersObject = function convertToParametersObject() {
598
603
  return parameters;
599
604
  }
600
605
  return parameters.reduce(function (obj, current) {
606
+ // eslint-disable-next-line guard-for-in
601
607
  for (var key in current) {
602
608
  var keys = Object.keys(obj);
603
609
  var resultKey = key;
@@ -617,6 +623,7 @@ var convertToParametersArray = function convertToParametersArray() {
617
623
  return parameters;
618
624
  }
619
625
  var dataArray = [];
626
+ // eslint-disable-next-line guard-for-in
620
627
  for (var name in parameters) {
621
628
  dataArray.push(_defineProperty({}, name, parameters[name]));
622
629
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-extension",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "description": "editor-plugin-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,7 +30,7 @@
30
30
  "@atlaskit/button": "^20.3.0",
31
31
  "@atlaskit/checkbox": "^15.2.0",
32
32
  "@atlaskit/datetime-picker": "^15.10.0",
33
- "@atlaskit/editor-common": "^96.4.0",
33
+ "@atlaskit/editor-common": "^96.5.0",
34
34
  "@atlaskit/editor-json-transformer": "^8.21.0",
35
35
  "@atlaskit/editor-plugin-analytics": "^1.10.0",
36
36
  "@atlaskit/editor-plugin-context-identifier": "^1.3.0",
@@ -49,7 +49,7 @@
49
49
  "@atlaskit/primitives": "^13.3.0",
50
50
  "@atlaskit/radio": "^7.0.0",
51
51
  "@atlaskit/section-message": "^6.8.0",
52
- "@atlaskit/select": "^18.8.0",
52
+ "@atlaskit/select": "^18.9.0",
53
53
  "@atlaskit/smart-user-picker": "^6.11.0",
54
54
  "@atlaskit/spinner": "^16.3.0",
55
55
  "@atlaskit/tabs": "^17.0.0",
@@ -57,7 +57,7 @@
57
57
  "@atlaskit/textfield": "^6.7.0",
58
58
  "@atlaskit/theme": "^14.0.0",
59
59
  "@atlaskit/tmp-editor-statsig": "^2.26.0",
60
- "@atlaskit/toggle": "^13.4.0",
60
+ "@atlaskit/toggle": "^14.0.0",
61
61
  "@atlaskit/tokens": "^2.4.0",
62
62
  "@atlaskit/tooltip": "^19.0.0",
63
63
  "@babel/runtime": "^7.0.0",