@atlaskit/editor-plugin-toolbar 0.0.3 → 0.0.5

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,24 @@
1
1
  # @atlaskit/editor-plugin-toolbar
2
2
 
3
+ ## 0.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#195899](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/195899)
8
+ [`345c0b6478f73`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/345c0b6478f73) -
9
+ [ED-28682] Register text-section toolbar component
10
+ - Updated dependencies
11
+
12
+ ## 0.0.4
13
+
14
+ ### Patch Changes
15
+
16
+ - [#195460](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/195460)
17
+ [`dd320dee34d9f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dd320dee34d9f) -
18
+ [ux] ED-28684 register ai components to the new toolbar behind platform_editor_toolbar_aifc
19
+ experiment
20
+ - Updated dependencies
21
+
3
22
  ## 0.0.3
4
23
 
5
24
  ### 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,13 @@ 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
- {
21
+ }, {
24
22
  type: 'section',
25
- key: 'ai-section',
23
+ key: 'text-section',
26
24
  parents: [{
27
25
  type: 'toolbar',
28
26
  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
27
+ rank: 200
38
28
  }]
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
29
  }];
57
30
  };
@@ -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,13 @@ 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
- {
15
+ }, {
18
16
  type: 'section',
19
- key: 'ai-section',
17
+ key: 'text-section',
20
18
  parents: [{
21
19
  type: 'toolbar',
22
20
  key: 'inline-text-toolbar',
23
- rank: 100
21
+ rank: 200
24
22
  }]
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
23
  }];
52
24
  };
@@ -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,13 @@ 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
- {
14
+ }, {
17
15
  type: 'section',
18
- key: 'ai-section',
16
+ key: 'text-section',
19
17
  parents: [{
20
18
  type: 'toolbar',
21
19
  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
20
+ rank: 200
31
21
  }]
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
22
  }];
50
23
  };
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.5",
4
4
  "description": "Toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,17 +34,14 @@
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.9",
38
+ "@atlaskit/editor-toolbar-model": "^0.0.4",
39
39
  "@babel/runtime": "^7.0.0"
40
40
  },
41
41
  "peerDependencies": {
42
- "@atlaskit/editor-common": "^107.16.0",
42
+ "@atlaskit/editor-common": "^107.17.0",
43
43
  "react": "^18.2.0"
44
44
  },
45
- "devDependencies": {
46
- "typescript": "~5.4.2"
47
- },
48
45
  "techstack": {
49
46
  "@atlassian/frontend": {
50
47
  "code-structure": [