@atlaskit/editor-toolbar-model 0.1.1 → 0.1.2

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,13 @@
1
1
  # @atlaskit/editor-toolbar-model
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0fdcb6f2f96fd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0fdcb6f2f96fd) -
8
+ Sorted type and interface props to improve Atlaskit docs
9
+ - Updated dependencies
10
+
3
11
  ## 0.1.1
4
12
 
5
13
  ### Patch Changes
@@ -67,32 +67,32 @@ export type RegisterToolbar = ToolbarType & {
67
67
  component?: ToolbarComponent;
68
68
  };
69
69
  export type RegisterToolbarSection = ToolbarSectionType & {
70
- parents: Parents<ToolbarType>;
71
70
  component?: ToolbarSectionComponent;
71
+ parents: Parents<ToolbarType>;
72
72
  };
73
73
  export type RegisterToolbarGroup = ToolbarGroupType & {
74
- parents: Parents<ToolbarSectionType>;
75
74
  component?: ToolbarGroupComponent;
75
+ parents: Parents<ToolbarSectionType>;
76
76
  };
77
77
  export type RegisterToolbarButton = ToolbarButtonType & {
78
- parents: Parents<ToolbarGroupType>;
79
78
  component?: ToolbarButtonComponent;
79
+ parents: Parents<ToolbarGroupType>;
80
80
  };
81
81
  export type RegisterToolbarMenu = ToolbarMenuType & {
82
- parents: Parents<ToolbarGroupType>;
83
82
  component?: ToolbarMenuComponent;
83
+ parents: Parents<ToolbarGroupType>;
84
84
  };
85
85
  export type RegisterToolbarNestedMenu = ToolbarNestedMenuType & {
86
- parents: Parents<ToolbarMenuSectionType>;
87
86
  component: ToolbarNestedMenuComponent;
87
+ parents: Parents<ToolbarMenuSectionType>;
88
88
  };
89
89
  export type RegisterToolbarMenuSection = ToolbarMenuSectionType & {
90
- parents: Parents<ToolbarMenuType | ToolbarNestedMenuType>;
91
90
  component?: ToolbarMenuSectionComponent;
91
+ parents: Parents<ToolbarMenuType | ToolbarNestedMenuType>;
92
92
  };
93
93
  export type RegisterToolbarMenuItem = ToolbarMenuItemType & {
94
- parents: Parents<ToolbarMenuSectionType>;
95
94
  component?: ToolbarMenuItemComponent;
95
+ parents: Parents<ToolbarMenuSectionType>;
96
96
  };
97
97
  export type RegisterComponent = RegisterToolbar | RegisterToolbarSection | RegisterToolbarGroup | RegisterToolbarButton | RegisterToolbarMenu | RegisterToolbarNestedMenu | RegisterToolbarMenuSection | RegisterToolbarMenuItem;
98
98
  export {};
@@ -1,10 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { RegisterToolbar, RegisterComponent, ToolbarGroupComponent, ToolbarMenuSectionComponent, ToolbarSectionComponent } from '../../types';
3
3
  type ToolbarProps = {
4
- /**
5
- * Toolbar component
6
- */
7
- toolbar: RegisterToolbar;
8
4
  /**
9
5
  * Every registered toolbar component
10
6
  */
@@ -14,9 +10,13 @@ type ToolbarProps = {
14
10
  */
15
11
  fallbacks: {
16
12
  group: ToolbarGroupComponent;
17
- section: ToolbarSectionComponent;
18
13
  menuSection: ToolbarMenuSectionComponent;
14
+ section: ToolbarSectionComponent;
19
15
  };
16
+ /**
17
+ * Toolbar component
18
+ */
19
+ toolbar: RegisterToolbar;
20
20
  };
21
21
  export declare const ToolbarModelRenderer: ({ toolbar, components, fallbacks }: ToolbarProps) => React.JSX.Element;
22
22
  export {};
@@ -67,32 +67,32 @@ export type RegisterToolbar = ToolbarType & {
67
67
  component?: ToolbarComponent;
68
68
  };
69
69
  export type RegisterToolbarSection = ToolbarSectionType & {
70
- parents: Parents<ToolbarType>;
71
70
  component?: ToolbarSectionComponent;
71
+ parents: Parents<ToolbarType>;
72
72
  };
73
73
  export type RegisterToolbarGroup = ToolbarGroupType & {
74
- parents: Parents<ToolbarSectionType>;
75
74
  component?: ToolbarGroupComponent;
75
+ parents: Parents<ToolbarSectionType>;
76
76
  };
77
77
  export type RegisterToolbarButton = ToolbarButtonType & {
78
- parents: Parents<ToolbarGroupType>;
79
78
  component?: ToolbarButtonComponent;
79
+ parents: Parents<ToolbarGroupType>;
80
80
  };
81
81
  export type RegisterToolbarMenu = ToolbarMenuType & {
82
- parents: Parents<ToolbarGroupType>;
83
82
  component?: ToolbarMenuComponent;
83
+ parents: Parents<ToolbarGroupType>;
84
84
  };
85
85
  export type RegisterToolbarNestedMenu = ToolbarNestedMenuType & {
86
- parents: Parents<ToolbarMenuSectionType>;
87
86
  component: ToolbarNestedMenuComponent;
87
+ parents: Parents<ToolbarMenuSectionType>;
88
88
  };
89
89
  export type RegisterToolbarMenuSection = ToolbarMenuSectionType & {
90
- parents: Parents<ToolbarMenuType | ToolbarNestedMenuType>;
91
90
  component?: ToolbarMenuSectionComponent;
91
+ parents: Parents<ToolbarMenuType | ToolbarNestedMenuType>;
92
92
  };
93
93
  export type RegisterToolbarMenuItem = ToolbarMenuItemType & {
94
- parents: Parents<ToolbarMenuSectionType>;
95
94
  component?: ToolbarMenuItemComponent;
95
+ parents: Parents<ToolbarMenuSectionType>;
96
96
  };
97
97
  export type RegisterComponent = RegisterToolbar | RegisterToolbarSection | RegisterToolbarGroup | RegisterToolbarButton | RegisterToolbarMenu | RegisterToolbarNestedMenu | RegisterToolbarMenuSection | RegisterToolbarMenuItem;
98
98
  export {};
@@ -1,10 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { RegisterToolbar, RegisterComponent, ToolbarGroupComponent, ToolbarMenuSectionComponent, ToolbarSectionComponent } from '../../types';
3
3
  type ToolbarProps = {
4
- /**
5
- * Toolbar component
6
- */
7
- toolbar: RegisterToolbar;
8
4
  /**
9
5
  * Every registered toolbar component
10
6
  */
@@ -14,9 +10,13 @@ type ToolbarProps = {
14
10
  */
15
11
  fallbacks: {
16
12
  group: ToolbarGroupComponent;
17
- section: ToolbarSectionComponent;
18
13
  menuSection: ToolbarMenuSectionComponent;
14
+ section: ToolbarSectionComponent;
19
15
  };
16
+ /**
17
+ * Toolbar component
18
+ */
19
+ toolbar: RegisterToolbar;
20
20
  };
21
21
  export declare const ToolbarModelRenderer: ({ toolbar, components, fallbacks }: ToolbarProps) => React.JSX.Element;
22
22
  export {};
package/package.json CHANGED
@@ -38,7 +38,6 @@
38
38
  "@af/visual-regression": "workspace:^",
39
39
  "@atlaskit/editor-toolbar": "^0.3.0",
40
40
  "@atlaskit/ssr": "workspace:^",
41
- "@atlaskit/visual-regression": "workspace:^",
42
41
  "@testing-library/react": "^13.4.0",
43
42
  "react-dom": "^18.2.0"
44
43
  },
@@ -78,7 +77,7 @@
78
77
  }
79
78
  },
80
79
  "name": "@atlaskit/editor-toolbar-model",
81
- "version": "0.1.1",
80
+ "version": "0.1.2",
82
81
  "description": "register and render toolbar component",
83
82
  "author": "Atlassian Pty Ltd",
84
83
  "license": "Apache-2.0",