@atlaskit/editor-plugin-table 0.0.3 → 0.0.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,12 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 0.0.4
4
+
5
+ ### Patch 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
+ - Updated dependencies
9
+
3
10
  ## 0.0.3
4
11
 
5
12
  ### Patch Changes
@@ -27,6 +27,8 @@ var _analytics = require("@atlaskit/editor-common/analytics");
27
27
 
28
28
  var _messages = require("@atlaskit/editor-common/messages");
29
29
 
30
+ var _icons = require("@atlaskit/editor-common/icons");
31
+
30
32
  var _createPluginConfig = require("./create-plugin-config");
31
33
 
32
34
  var _tableLocalId = require("./pm-plugins/table-local-id");
@@ -345,7 +347,9 @@ var tablesPlugin = function tablesPlugin(options) {
345
347
  keywords: ['cell', 'table'],
346
348
  priority: 600,
347
349
  keyshortcut: (0, _keymaps.tooltip)(_keymaps.toggleTable),
348
- // icon: () => <IconTable />,
350
+ icon: function icon() {
351
+ return /*#__PURE__*/_react.default.createElement(_icons.IconTable, null);
352
+ },
349
353
  action: function action(insert, state) {
350
354
  var _options$editorAnalyt;
351
355
 
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "0.0.3"
3
+ "version": "0.0.4"
4
4
  }
@@ -7,9 +7,8 @@ import { table, tableCell, tableHeader, tableRow } from '@atlaskit/adf-schema';
7
7
  import { toggleTable, tooltip } from '@atlaskit/editor-common/keymaps';
8
8
  import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
9
9
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
10
- import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages'; // import { IconTable } from '../quick-insert/assets';
11
- //
12
-
10
+ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
11
+ import { IconTable } from '@atlaskit/editor-common/icons';
13
12
  import { pluginConfig } from './create-plugin-config';
14
13
  import { createPlugin as createTableLocalIdPlugin } from './pm-plugins/table-local-id';
15
14
  import { createPlugin as createTableSafariDelayedDomSelectionSyncingWorkaroundPlugin } from './pm-plugins/safari-delayed-dom-selection-syncing-workaround';
@@ -311,8 +310,8 @@ const tablesPlugin = options => {
311
310
  keywords: ['cell', 'table'],
312
311
  priority: 600,
313
312
  keyshortcut: tooltip(toggleTable),
313
+ icon: () => /*#__PURE__*/React.createElement(IconTable, null),
314
314
 
315
- // icon: () => <IconTable />,
316
315
  action(insert, state) {
317
316
  var _options$editorAnalyt;
318
317
 
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "0.0.3"
3
+ "version": "0.0.4"
4
4
  }
@@ -7,9 +7,8 @@ import { table, tableCell, tableHeader, tableRow } from '@atlaskit/adf-schema';
7
7
  import { toggleTable, tooltip } from '@atlaskit/editor-common/keymaps';
8
8
  import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
9
9
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
10
- import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages'; // import { IconTable } from '../quick-insert/assets';
11
- //
12
-
10
+ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
11
+ import { IconTable } from '@atlaskit/editor-common/icons';
13
12
  import { pluginConfig } from './create-plugin-config';
14
13
  import { createPlugin as createTableLocalIdPlugin } from './pm-plugins/table-local-id';
15
14
  import { createPlugin as createTableSafariDelayedDomSelectionSyncingWorkaroundPlugin } from './pm-plugins/safari-delayed-dom-selection-syncing-workaround';
@@ -310,7 +309,9 @@ var tablesPlugin = function tablesPlugin(options) {
310
309
  keywords: ['cell', 'table'],
311
310
  priority: 600,
312
311
  keyshortcut: tooltip(toggleTable),
313
- // icon: () => <IconTable />,
312
+ icon: function icon() {
313
+ return /*#__PURE__*/React.createElement(IconTable, null);
314
+ },
314
315
  action: function action(insert, state) {
315
316
  var _options$editorAnalyt;
316
317
 
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "0.0.3"
3
+ "version": "0.0.4"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@atlaskit/adf-schema": "^24.0.0",
28
- "@atlaskit/editor-common": "^69.3.0",
28
+ "@atlaskit/editor-common": "^69.4.0",
29
29
  "@atlaskit/editor-shared-styles": "^2.2.0",
30
30
  "@atlaskit/editor-tables": "^2.1.0",
31
31
  "@atlaskit/icon": "^21.10.0",
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "devDependencies": {
59
59
  "@atlaskit/button": "^16.3.0",
60
- "@atlaskit/editor-core": "^172.2.0",
60
+ "@atlaskit/editor-core": "^172.3.0",
61
61
  "@atlaskit/editor-test-helpers": "^17.2.0",
62
62
  "@atlaskit/link-provider": "^1.2.6",
63
63
  "@atlaskit/logo": "^13.9.0",
@@ -23,8 +23,8 @@ import {
23
23
  } from '@atlaskit/editor-common/analytics';
24
24
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
25
25
 
26
- // import { IconTable } from '../quick-insert/assets';
27
- //
26
+ import { IconTable } from '@atlaskit/editor-common/icons';
27
+
28
28
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
29
29
  import type { EditorSelectionAPI } from '@atlaskit/editor-common/selection';
30
30
 
@@ -411,7 +411,7 @@ const tablesPlugin = (options?: TablePluginOptions): EditorPlugin => {
411
411
  keywords: ['cell', 'table'],
412
412
  priority: 600,
413
413
  keyshortcut: tooltip(toggleTable),
414
- // icon: () => <IconTable />,
414
+ icon: () => <IconTable />,
415
415
  action(insert, state) {
416
416
  const tr = insert(
417
417
  createTable({