@atlaskit/editor-common 74.26.3 → 74.26.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,11 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 74.26.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`33cec4ba4f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/33cec4ba4f0) - [ED-19203] Extract common logic, styles, and types to editor-common
8
+
3
9
  ## 74.26.3
4
10
 
5
11
  ### Patch Changes
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
16
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
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 = "74.26.3";
19
+ var packageVersion = "74.26.4";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // TODO: Sanitise the URL instead of just removing it
@@ -117,6 +117,12 @@ Object.defineProperty(exports, "blockquoteSharedStyles", {
117
117
  return _blockquote.blockquoteSharedStyles;
118
118
  }
119
119
  });
120
+ Object.defineProperty(exports, "buttonGroupStyle", {
121
+ enumerable: true,
122
+ get: function get() {
123
+ return _plugins.buttonGroupStyle;
124
+ }
125
+ });
120
126
  Object.defineProperty(exports, "calcTableWidth", {
121
127
  enumerable: true,
122
128
  get: function get() {
@@ -243,6 +249,12 @@ Object.defineProperty(exports, "ruleSharedStyles", {
243
249
  return _rule.ruleSharedStyles;
244
250
  }
245
251
  });
252
+ Object.defineProperty(exports, "separatorStyles", {
253
+ enumerable: true,
254
+ get: function get() {
255
+ return _plugins.separatorStyles;
256
+ }
257
+ });
246
258
  Object.defineProperty(exports, "shadowSharedStyle", {
247
259
  enumerable: true,
248
260
  get: function get() {
@@ -333,12 +345,24 @@ Object.defineProperty(exports, "textColorStyles", {
333
345
  return _textColor.textColorStyles;
334
346
  }
335
347
  });
348
+ Object.defineProperty(exports, "triggerWrapperStyles", {
349
+ enumerable: true,
350
+ get: function get() {
351
+ return _plugins.triggerWrapperStyles;
352
+ }
353
+ });
336
354
  Object.defineProperty(exports, "whitespaceSharedStyles", {
337
355
  enumerable: true,
338
356
  get: function get() {
339
357
  return _whitespace.whitespaceSharedStyles;
340
358
  }
341
359
  });
360
+ Object.defineProperty(exports, "wrapperStyle", {
361
+ enumerable: true,
362
+ get: function get() {
363
+ return _plugins.wrapperStyle;
364
+ }
365
+ });
342
366
  var _textColor = require("./shared/text-color");
343
367
  var _table = require("./shared/table");
344
368
  var _annotation = require("./shared/annotation");
@@ -366,4 +390,5 @@ var _extension = require("./shared/extension");
366
390
  var _resizer = require("./shared/resizer");
367
391
  var _grid = require("./shared/grid");
368
392
  var _smartCard2 = require("./shared/smartCard");
369
- var _embedCard = require("./shared/embedCard");
393
+ var _embedCard = require("./shared/embedCard");
394
+ var _plugins = require("./shared/plugins");
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.wrapperStyle = exports.triggerWrapperStyles = exports.separatorStyles = exports.buttonGroupStyle = void 0;
8
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
+ var _react = require("@emotion/react");
10
+ var _colors = require("@atlaskit/theme/colors");
11
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
12
+ var buttonGroupStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: inline-flex;\n align-items: center;\n\n & > div {\n display: flex;\n }\n"])));
13
+
14
+ // This style is copied to packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/styles.tsx
15
+ // If you make change here, change in above file as well.
16
+ exports.buttonGroupStyle = buttonGroupStyle;
17
+ var separatorStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n width: 1px;\n height: 24px;\n display: inline-block;\n margin: 0 ", ";\n user-select: none;\n"])), "var(--ds-border, ".concat(_colors.N30, ")"), "var(--ds-space-100, 8px)");
18
+
19
+ // This style is copied to packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/styles.tsx
20
+ // If you make change here, change in above file as well.
21
+ exports.separatorStyles = separatorStyles;
22
+ var wrapperStyle = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n\n > div,\n > span {\n display: flex;\n }\n\n > div > div {\n display: flex;\n }\n\n margin-left: 0;\n min-width: auto;\n"])));
23
+ exports.wrapperStyle = wrapperStyle;
24
+ var triggerWrapperStyles = (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n"])));
25
+ exports.triggerWrapperStyles = triggerWrapperStyles;
@@ -24,7 +24,7 @@ var _templateObject, _templateObject2, _templateObject3;
24
24
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
25
25
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "74.26.3";
27
+ var packageVersion = "74.26.4";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.26.3",
3
+ "version": "74.26.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,6 +1,6 @@
1
1
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
2
2
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
3
- const packageVersion = "74.26.3";
3
+ const packageVersion = "74.26.4";
4
4
  const sanitiseSentryEvents = (data, _hint) => {
5
5
  // Remove URL as it has UGC
6
6
  // TODO: Sanitise the URL instead of just removing it
@@ -25,4 +25,5 @@ export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
25
25
  export { resizerStyles } from './shared/resizer';
26
26
  export { gridStyles, GRID_GUTTER } from './shared/grid';
27
27
  export { smartCardStyles, FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME } from './shared/smartCard';
28
- export { embedCardStyles, embedSpacingStyles, editIconStyles } from './shared/embedCard';
28
+ export { embedCardStyles, embedSpacingStyles, editIconStyles } from './shared/embedCard';
29
+ export { buttonGroupStyle, separatorStyles, wrapperStyle, triggerWrapperStyles } from './shared/plugins';
@@ -0,0 +1,43 @@
1
+ import { css } from '@emotion/react';
2
+ import { N30 } from '@atlaskit/theme/colors';
3
+ export const buttonGroupStyle = css`
4
+ display: inline-flex;
5
+ align-items: center;
6
+
7
+ & > div {
8
+ display: flex;
9
+ }
10
+ `;
11
+
12
+ // This style is copied to packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/styles.tsx
13
+ // If you make change here, change in above file as well.
14
+ export const separatorStyles = css`
15
+ background: ${`var(--ds-border, ${N30})`};
16
+ width: 1px;
17
+ height: 24px;
18
+ display: inline-block;
19
+ margin: 0 ${"var(--ds-space-100, 8px)"};
20
+ user-select: none;
21
+ `;
22
+
23
+ // This style is copied to packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/styles.tsx
24
+ // If you make change here, change in above file as well.
25
+ export const wrapperStyle = css`
26
+ display: flex;
27
+ align-items: center;
28
+
29
+ > div,
30
+ > span {
31
+ display: flex;
32
+ }
33
+
34
+ > div > div {
35
+ display: flex;
36
+ }
37
+
38
+ margin-left: 0;
39
+ min-width: auto;
40
+ `;
41
+ export const triggerWrapperStyles = css`
42
+ display: flex;
43
+ `;
@@ -8,7 +8,7 @@ import { themed } from '@atlaskit/theme/components';
8
8
  import { borderRadius } from '@atlaskit/theme/constants';
9
9
  import Layer from '../Layer';
10
10
  const packageName = "@atlaskit/editor-common";
11
- const packageVersion = "74.26.3";
11
+ const packageVersion = "74.26.4";
12
12
  const halfFocusRing = 1;
13
13
  const dropOffset = '0, 8';
14
14
  class DropList extends Component {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.26.3",
3
+ "version": "74.26.4",
4
4
  "sideEffects": false
5
5
  }
@@ -6,7 +6,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
6
6
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
7
7
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
8
8
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
9
- var packageVersion = "74.26.3";
9
+ var packageVersion = "74.26.4";
10
10
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
11
11
  // Remove URL as it has UGC
12
12
  // TODO: Sanitise the URL instead of just removing it
@@ -25,4 +25,5 @@ export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
25
25
  export { resizerStyles } from './shared/resizer';
26
26
  export { gridStyles, GRID_GUTTER } from './shared/grid';
27
27
  export { smartCardStyles, FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME } from './shared/smartCard';
28
- export { embedCardStyles, embedSpacingStyles, editIconStyles } from './shared/embedCard';
28
+ export { embedCardStyles, embedSpacingStyles, editIconStyles } from './shared/embedCard';
29
+ export { buttonGroupStyle, separatorStyles, wrapperStyle, triggerWrapperStyles } from './shared/plugins';
@@ -0,0 +1,14 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
3
+ import { css } from '@emotion/react';
4
+ import { N30 } from '@atlaskit/theme/colors';
5
+ export var buttonGroupStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inline-flex;\n align-items: center;\n\n & > div {\n display: flex;\n }\n"])));
6
+
7
+ // This style is copied to packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/styles.tsx
8
+ // If you make change here, change in above file as well.
9
+ export var separatorStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background: ", ";\n width: 1px;\n height: 24px;\n display: inline-block;\n margin: 0 ", ";\n user-select: none;\n"])), "var(--ds-border, ".concat(N30, ")"), "var(--ds-space-100, 8px)");
10
+
11
+ // This style is copied to packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/styles.tsx
12
+ // If you make change here, change in above file as well.
13
+ export var wrapperStyle = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n > div,\n > span {\n display: flex;\n }\n\n > div > div {\n display: flex;\n }\n\n margin-left: 0;\n min-width: auto;\n"])));
14
+ export var triggerWrapperStyles = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n"])));
@@ -18,7 +18,7 @@ import { themed } from '@atlaskit/theme/components';
18
18
  import { borderRadius } from '@atlaskit/theme/constants';
19
19
  import Layer from '../Layer';
20
20
  var packageName = "@atlaskit/editor-common";
21
- var packageVersion = "74.26.3";
21
+ var packageVersion = "74.26.4";
22
22
  var halfFocusRing = 1;
23
23
  var dropOffset = '0, 8';
24
24
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.26.3",
3
+ "version": "74.26.4",
4
4
  "sideEffects": false
5
5
  }
@@ -26,3 +26,4 @@ export { resizerStyles } from './shared/resizer';
26
26
  export { gridStyles, GRID_GUTTER } from './shared/grid';
27
27
  export { smartCardStyles, FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME, } from './shared/smartCard';
28
28
  export { embedCardStyles, embedSpacingStyles, editIconStyles, } from './shared/embedCard';
29
+ export { buttonGroupStyle, separatorStyles, wrapperStyle, triggerWrapperStyles, } from './shared/plugins';
@@ -0,0 +1,4 @@
1
+ export declare const buttonGroupStyle: import("@emotion/react").SerializedStyles;
2
+ export declare const separatorStyles: import("@emotion/react").SerializedStyles;
3
+ export declare const wrapperStyle: import("@emotion/react").SerializedStyles;
4
+ export declare const triggerWrapperStyles: import("@emotion/react").SerializedStyles;
@@ -26,3 +26,4 @@ export { resizerStyles } from './shared/resizer';
26
26
  export { gridStyles, GRID_GUTTER } from './shared/grid';
27
27
  export { smartCardStyles, FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME, } from './shared/smartCard';
28
28
  export { embedCardStyles, embedSpacingStyles, editIconStyles, } from './shared/embedCard';
29
+ export { buttonGroupStyle, separatorStyles, wrapperStyle, triggerWrapperStyles, } from './shared/plugins';
@@ -0,0 +1,4 @@
1
+ export declare const buttonGroupStyle: import("@emotion/react").SerializedStyles;
2
+ export declare const separatorStyles: import("@emotion/react").SerializedStyles;
3
+ export declare const wrapperStyle: import("@emotion/react").SerializedStyles;
4
+ export declare const triggerWrapperStyles: import("@emotion/react").SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.26.3",
3
+ "version": "74.26.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/"