@atlaskit/editor-common 69.3.1 → 69.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,11 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 69.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`06ae7af103f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/06ae7af103f) - [ux][ed-15739] Bring back the table icon to the typeahead menu by moving IconTable component to shared package
8
+
3
9
  ## 69.3.1
4
10
 
5
11
  ### Patch Changes
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
8
+ exports.IconTable = void 0;
6
9
  Object.defineProperty(exports, "PanelErrorIcon", {
7
10
  enumerable: true,
8
11
  get: function get() {
@@ -34,6 +37,10 @@ Object.defineProperty(exports, "PanelWarningIcon", {
34
37
  }
35
38
  });
36
39
 
40
+ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
41
+
42
+ var _reactLoadable = _interopRequireDefault(require("react-loadable"));
43
+
37
44
  var _PanelInfoIcon = require("./shared/PanelInfoIcon");
38
45
 
39
46
  var _PanelWarningIcon = require("./shared/PanelWarningIcon");
@@ -42,4 +49,22 @@ var _PanelErrorIcon = require("./shared/PanelErrorIcon");
42
49
 
43
50
  var _PanelSuccessIcon = require("./shared/PanelSuccessIcon");
44
51
 
45
- var _PanelNoteIcon = require("./shared/PanelNoteIcon");
52
+ var _PanelNoteIcon = require("./shared/PanelNoteIcon");
53
+
54
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
55
+
56
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || (0, _typeof2.default)(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; }
57
+
58
+ var IconTable = (0, _reactLoadable.default)({
59
+ loader: function loader() {
60
+ return Promise.resolve().then(function () {
61
+ return _interopRequireWildcard(require('../icons/shared/table'));
62
+ }).then(function (module) {
63
+ return module.default;
64
+ });
65
+ },
66
+ loading: function loading() {
67
+ return null;
68
+ }
69
+ });
70
+ exports.IconTable = IconTable;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = IconTable;
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
13
+ function IconTable() {
14
+ return /*#__PURE__*/_react.default.createElement("svg", {
15
+ focusable: "false",
16
+ "aria-hidden": true,
17
+ width: 40,
18
+ height: 40
19
+ }, /*#__PURE__*/_react.default.createElement("g", {
20
+ fill: "none",
21
+ fillRule: "evenodd"
22
+ }, /*#__PURE__*/_react.default.createElement("path", {
23
+ fill: "#FFF",
24
+ d: "M0 0h40v40H0z"
25
+ }), /*#__PURE__*/_react.default.createElement("g", {
26
+ stroke: "#C1C7D0"
27
+ }, /*#__PURE__*/_react.default.createElement("path", {
28
+ fill: "#FFF",
29
+ d: "M20 16h14v8H20z"
30
+ }), /*#__PURE__*/_react.default.createElement("path", {
31
+ d: "M20 8h13a1 1 0 011 1v7H20V8z",
32
+ fill: "#DFE1E6"
33
+ }), /*#__PURE__*/_react.default.createElement("path", {
34
+ d: "M20 24h14v7a1 1 0 01-1 1H20v-8zM6 16h14v8H6z",
35
+ fill: "#FFF"
36
+ }), /*#__PURE__*/_react.default.createElement("path", {
37
+ d: "M7 8h13v8H6V9a1 1 0 011-1z",
38
+ fill: "#DFE1E6"
39
+ }), /*#__PURE__*/_react.default.createElement("path", {
40
+ d: "M6 24h14v8H7a1 1 0 01-1-1v-7z",
41
+ fill: "#FFF"
42
+ }))));
43
+ }
@@ -46,7 +46,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
46
46
  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; } }
47
47
 
48
48
  var packageName = "@atlaskit/editor-common";
49
- var packageVersion = "69.3.1";
49
+ var packageVersion = "69.4.0";
50
50
  var halfFocusRing = 1;
51
51
  var dropOffset = "0, ".concat((0, _constants.gridSize)(), "px");
52
52
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "69.3.1",
3
+ "version": "69.4.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,12 @@
1
+ import Loadable from 'react-loadable';
1
2
  export { PanelInfoIcon } from './shared/PanelInfoIcon';
2
3
  export { PanelWarningIcon } from './shared/PanelWarningIcon';
3
4
  export { PanelErrorIcon } from './shared/PanelErrorIcon';
4
5
  export { PanelSuccessIcon } from './shared/PanelSuccessIcon';
5
- export { PanelNoteIcon } from './shared/PanelNoteIcon';
6
+ export { PanelNoteIcon } from './shared/PanelNoteIcon';
7
+ export const IconTable = Loadable({
8
+ loader: () => import(
9
+ /* webpackChunkName: "@atlaskit-internal_editor-icon-table" */
10
+ '../icons/shared/table').then(module => module.default),
11
+ loading: () => null
12
+ });
@@ -0,0 +1,33 @@
1
+ /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
2
+ import React from 'react';
3
+ export default function IconTable() {
4
+ return /*#__PURE__*/React.createElement("svg", {
5
+ focusable: "false",
6
+ "aria-hidden": true,
7
+ width: 40,
8
+ height: 40
9
+ }, /*#__PURE__*/React.createElement("g", {
10
+ fill: "none",
11
+ fillRule: "evenodd"
12
+ }, /*#__PURE__*/React.createElement("path", {
13
+ fill: "#FFF",
14
+ d: "M0 0h40v40H0z"
15
+ }), /*#__PURE__*/React.createElement("g", {
16
+ stroke: "#C1C7D0"
17
+ }, /*#__PURE__*/React.createElement("path", {
18
+ fill: "#FFF",
19
+ d: "M20 16h14v8H20z"
20
+ }), /*#__PURE__*/React.createElement("path", {
21
+ d: "M20 8h13a1 1 0 011 1v7H20V8z",
22
+ fill: "#DFE1E6"
23
+ }), /*#__PURE__*/React.createElement("path", {
24
+ d: "M20 24h14v7a1 1 0 01-1 1H20v-8zM6 16h14v8H6z",
25
+ fill: "#FFF"
26
+ }), /*#__PURE__*/React.createElement("path", {
27
+ d: "M7 8h13v8H6V9a1 1 0 011-1z",
28
+ fill: "#DFE1E6"
29
+ }), /*#__PURE__*/React.createElement("path", {
30
+ d: "M6 24h14v8H7a1 1 0 01-1-1v-7z",
31
+ fill: "#FFF"
32
+ }))));
33
+ }
@@ -10,7 +10,7 @@ import { borderRadius, gridSize } from '@atlaskit/theme/constants';
10
10
  import { token } from '@atlaskit/tokens';
11
11
  import Layer from '../Layer';
12
12
  const packageName = "@atlaskit/editor-common";
13
- const packageVersion = "69.3.1";
13
+ const packageVersion = "69.4.0";
14
14
  const halfFocusRing = 1;
15
15
  const dropOffset = `0, ${gridSize()}px`;
16
16
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "69.3.1",
3
+ "version": "69.4.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,18 @@
1
+ import Loadable from 'react-loadable';
1
2
  export { PanelInfoIcon } from './shared/PanelInfoIcon';
2
3
  export { PanelWarningIcon } from './shared/PanelWarningIcon';
3
4
  export { PanelErrorIcon } from './shared/PanelErrorIcon';
4
5
  export { PanelSuccessIcon } from './shared/PanelSuccessIcon';
5
- export { PanelNoteIcon } from './shared/PanelNoteIcon';
6
+ export { PanelNoteIcon } from './shared/PanelNoteIcon';
7
+ export var IconTable = Loadable({
8
+ loader: function loader() {
9
+ return import(
10
+ /* webpackChunkName: "@atlaskit-internal_editor-icon-table" */
11
+ '../icons/shared/table').then(function (module) {
12
+ return module.default;
13
+ });
14
+ },
15
+ loading: function loading() {
16
+ return null;
17
+ }
18
+ });
@@ -0,0 +1,33 @@
1
+ /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
2
+ import React from 'react';
3
+ export default function IconTable() {
4
+ return /*#__PURE__*/React.createElement("svg", {
5
+ focusable: "false",
6
+ "aria-hidden": true,
7
+ width: 40,
8
+ height: 40
9
+ }, /*#__PURE__*/React.createElement("g", {
10
+ fill: "none",
11
+ fillRule: "evenodd"
12
+ }, /*#__PURE__*/React.createElement("path", {
13
+ fill: "#FFF",
14
+ d: "M0 0h40v40H0z"
15
+ }), /*#__PURE__*/React.createElement("g", {
16
+ stroke: "#C1C7D0"
17
+ }, /*#__PURE__*/React.createElement("path", {
18
+ fill: "#FFF",
19
+ d: "M20 16h14v8H20z"
20
+ }), /*#__PURE__*/React.createElement("path", {
21
+ d: "M20 8h13a1 1 0 011 1v7H20V8z",
22
+ fill: "#DFE1E6"
23
+ }), /*#__PURE__*/React.createElement("path", {
24
+ d: "M20 24h14v7a1 1 0 01-1 1H20v-8zM6 16h14v8H6z",
25
+ fill: "#FFF"
26
+ }), /*#__PURE__*/React.createElement("path", {
27
+ d: "M7 8h13v8H6V9a1 1 0 011-1z",
28
+ fill: "#DFE1E6"
29
+ }), /*#__PURE__*/React.createElement("path", {
30
+ d: "M6 24h14v8H7a1 1 0 01-1-1v-7z",
31
+ fill: "#FFF"
32
+ }))));
33
+ }
@@ -23,7 +23,7 @@ import { borderRadius, gridSize } from '@atlaskit/theme/constants';
23
23
  import { token } from '@atlaskit/tokens';
24
24
  import Layer from '../Layer';
25
25
  var packageName = "@atlaskit/editor-common";
26
- var packageVersion = "69.3.1";
26
+ var packageVersion = "69.4.0";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = "0, ".concat(gridSize(), "px");
29
29
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "69.3.1",
3
+ "version": "69.4.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,9 @@
1
+ import React from 'react';
2
+ import Loadable from 'react-loadable';
3
+ import { IconProps } from '../types';
1
4
  export { PanelInfoIcon } from './shared/PanelInfoIcon';
2
5
  export { PanelWarningIcon } from './shared/PanelWarningIcon';
3
6
  export { PanelErrorIcon } from './shared/PanelErrorIcon';
4
7
  export { PanelSuccessIcon } from './shared/PanelSuccessIcon';
5
8
  export { PanelNoteIcon } from './shared/PanelNoteIcon';
9
+ export declare const IconTable: React.ComponentType<IconProps> & Loadable.LoadableComponent;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export default function IconTable(): JSX.Element;
@@ -28,3 +28,6 @@ export type { EditorReactContext } from './editor-react-context';
28
28
  export type { PMPluginFactoryParams, PMPluginFactory, PMPlugin, } from './plugin-factory';
29
29
  export type { NodeConfig, MarkConfig, NodeViewConfig, } from './prosemirror-config';
30
30
  export type { PluginsOptions, EditorPlugin, getPosHandler, getPosHandlerNode, } from './editor-plugin';
31
+ export declare type IconProps = {
32
+ label?: string;
33
+ };
@@ -1,5 +1,9 @@
1
+ import React from 'react';
2
+ import Loadable from 'react-loadable';
3
+ import { IconProps } from '../types';
1
4
  export { PanelInfoIcon } from './shared/PanelInfoIcon';
2
5
  export { PanelWarningIcon } from './shared/PanelWarningIcon';
3
6
  export { PanelErrorIcon } from './shared/PanelErrorIcon';
4
7
  export { PanelSuccessIcon } from './shared/PanelSuccessIcon';
5
8
  export { PanelNoteIcon } from './shared/PanelNoteIcon';
9
+ export declare const IconTable: React.ComponentType<IconProps> & Loadable.LoadableComponent;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export default function IconTable(): JSX.Element;
@@ -28,3 +28,6 @@ export type { EditorReactContext } from './editor-react-context';
28
28
  export type { PMPluginFactoryParams, PMPluginFactory, PMPlugin, } from './plugin-factory';
29
29
  export type { NodeConfig, MarkConfig, NodeViewConfig, } from './prosemirror-config';
30
30
  export type { PluginsOptions, EditorPlugin, getPosHandler, getPosHandlerNode, } from './editor-plugin';
31
+ export declare type IconProps = {
32
+ label?: string;
33
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "69.3.1",
3
+ "version": "69.4.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/"