@atlaskit/editor-plugin-toolbar 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,15 @@
1
1
  # @atlaskit/editor-plugin-toolbar
2
2
 
3
+ ## 0.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#195460](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/195460)
8
+ [`dd320dee34d9f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dd320dee34d9f) -
9
+ [ux] ED-28684 register ai components to the new toolbar behind platform_editor_toolbar_aifc
10
+ experiment
11
+ - Updated dependencies
12
+
3
13
  ## 0.0.3
4
14
 
5
15
  ### Patch Changes
@@ -0,0 +1,36 @@
1
+ {
2
+ "extends": "../../../../tsconfig.entry-points.dev-agents.json",
3
+ "compilerOptions": {
4
+ "target": "es5",
5
+ "outDir": "../../../../../dev-agents/tsDist/@atlaskit__editor-plugin-toolbar/app",
6
+ "rootDir": "../",
7
+ "composite": true
8
+ },
9
+ "include": [
10
+ "../src/**/*.ts",
11
+ "../src/**/*.tsx"
12
+ ],
13
+ "exclude": [
14
+ "../src/**/__tests__/*",
15
+ "../src/**/*.test.*",
16
+ "../src/**/test.*",
17
+ "../src/**/examples.*"
18
+ ],
19
+ "references": [
20
+ {
21
+ "path": "../../editor-plugin-selection/afm-dev-agents/tsconfig.json"
22
+ },
23
+ {
24
+ "path": "../../editor-plugin-user-intent/afm-dev-agents/tsconfig.json"
25
+ },
26
+ {
27
+ "path": "../../editor-toolbar/afm-dev-agents/tsconfig.json"
28
+ },
29
+ {
30
+ "path": "../../editor-toolbar-model/afm-dev-agents/tsconfig.json"
31
+ },
32
+ {
33
+ "path": "../../editor-common/afm-dev-agents/tsconfig.json"
34
+ }
35
+ ]
36
+ }
@@ -18,40 +18,5 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
18
18
  label: _consts.TOOLBAR_LABEL
19
19
  }, children);
20
20
  }
21
- },
22
- // TODO: ED-28684 - clean up AI code and move to AI package
23
- {
24
- type: 'section',
25
- key: 'ai-section',
26
- parents: [{
27
- type: 'toolbar',
28
- key: 'inline-text-toolbar',
29
- rank: 100
30
- }]
31
- }, {
32
- type: 'group',
33
- key: 'ai-group',
34
- parents: [{
35
- type: 'section',
36
- key: 'ai-section',
37
- rank: 100
38
- }]
39
- }, {
40
- type: 'button',
41
- key: 'ai-button',
42
- parents: [{
43
- type: 'group',
44
- key: 'ai-group',
45
- rank: 100
46
- }],
47
- component: function component(_ref2) {
48
- var groupLocation = _ref2.groupLocation;
49
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarButton, {
50
- iconBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.AIChatIcon, {
51
- label: "AI"
52
- }),
53
- groupLocation: groupLocation
54
- }, "AI");
55
- }
56
21
  }];
57
22
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AIChatIcon, Toolbar, ToolbarButton } from '@atlaskit/editor-toolbar';
2
+ import { Toolbar } from '@atlaskit/editor-toolbar';
3
3
  import { TOOLBAR_LABEL } from './consts';
4
4
  export const getToolbarComponents = () => {
5
5
  return [{
@@ -12,41 +12,5 @@ export const getToolbarComponents = () => {
12
12
  label: TOOLBAR_LABEL
13
13
  }, children);
14
14
  }
15
- },
16
- // TODO: ED-28684 - clean up AI code and move to AI package
17
- {
18
- type: 'section',
19
- key: 'ai-section',
20
- parents: [{
21
- type: 'toolbar',
22
- key: 'inline-text-toolbar',
23
- rank: 100
24
- }]
25
- }, {
26
- type: 'group',
27
- key: 'ai-group',
28
- parents: [{
29
- type: 'section',
30
- key: 'ai-section',
31
- rank: 100
32
- }]
33
- }, {
34
- type: 'button',
35
- key: 'ai-button',
36
- parents: [{
37
- type: 'group',
38
- key: 'ai-group',
39
- rank: 100
40
- }],
41
- component: ({
42
- groupLocation
43
- }) => {
44
- return /*#__PURE__*/React.createElement(ToolbarButton, {
45
- iconBefore: /*#__PURE__*/React.createElement(AIChatIcon, {
46
- label: "AI"
47
- }),
48
- groupLocation: groupLocation
49
- }, "AI");
50
- }
51
15
  }];
52
16
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AIChatIcon, Toolbar, ToolbarButton } from '@atlaskit/editor-toolbar';
2
+ import { Toolbar } from '@atlaskit/editor-toolbar';
3
3
  import { TOOLBAR_LABEL } from './consts';
4
4
  export var getToolbarComponents = function getToolbarComponents() {
5
5
  return [{
@@ -11,40 +11,5 @@ export var getToolbarComponents = function getToolbarComponents() {
11
11
  label: TOOLBAR_LABEL
12
12
  }, children);
13
13
  }
14
- },
15
- // TODO: ED-28684 - clean up AI code and move to AI package
16
- {
17
- type: 'section',
18
- key: 'ai-section',
19
- parents: [{
20
- type: 'toolbar',
21
- key: 'inline-text-toolbar',
22
- rank: 100
23
- }]
24
- }, {
25
- type: 'group',
26
- key: 'ai-group',
27
- parents: [{
28
- type: 'section',
29
- key: 'ai-section',
30
- rank: 100
31
- }]
32
- }, {
33
- type: 'button',
34
- key: 'ai-button',
35
- parents: [{
36
- type: 'group',
37
- key: 'ai-group',
38
- rank: 100
39
- }],
40
- component: function component(_ref2) {
41
- var groupLocation = _ref2.groupLocation;
42
- return /*#__PURE__*/React.createElement(ToolbarButton, {
43
- iconBefore: /*#__PURE__*/React.createElement(AIChatIcon, {
44
- label: "AI"
45
- }),
46
- groupLocation: groupLocation
47
- }, "AI");
48
- }
49
14
  }];
50
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,8 +34,8 @@
34
34
  "@atlaskit/editor-plugin-selection": "^3.0.0",
35
35
  "@atlaskit/editor-plugin-user-intent": "^1.1.0",
36
36
  "@atlaskit/editor-prosemirror": "7.0.0",
37
- "@atlaskit/editor-toolbar": "^0.0.7",
38
- "@atlaskit/editor-toolbar-model": "^0.0.2",
37
+ "@atlaskit/editor-toolbar": "^0.0.8",
38
+ "@atlaskit/editor-toolbar-model": "^0.0.3",
39
39
  "@babel/runtime": "^7.0.0"
40
40
  },
41
41
  "peerDependencies": {