@atlaskit/editor-plugin-loom 7.1.0 → 7.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,19 @@
1
1
  # @atlaskit/editor-plugin-loom
2
2
 
3
+ ## 7.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 7.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`7e4750e649998`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7e4750e649998) -
14
+ Hide Menu section for loom and pinning when in view mode
15
+ - Updated dependencies
16
+
3
17
  ## 7.1.0
4
18
 
5
19
  ### Minor Changes
@@ -34,6 +34,9 @@ var MenuSection = exports.MenuSection = function MenuSection(_ref) {
34
34
  var _usePluginState = usePluginState(api),
35
35
  editorViewMode = _usePluginState.editorViewMode;
36
36
  var isEdit = editorViewMode === 'edit';
37
+ if (!isEdit) {
38
+ return null;
39
+ }
37
40
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItemSection, {
38
41
  hasSeparator: isEdit
39
42
  }, children);
@@ -28,6 +28,9 @@ export const MenuSection = ({
28
28
  editorViewMode
29
29
  } = usePluginState(api);
30
30
  const isEdit = editorViewMode === 'edit';
31
+ if (!isEdit) {
32
+ return null;
33
+ }
31
34
  return /*#__PURE__*/React.createElement(ToolbarDropdownItemSection, {
32
35
  hasSeparator: isEdit
33
36
  }, children);
@@ -27,6 +27,9 @@ export var MenuSection = function MenuSection(_ref) {
27
27
  var _usePluginState = usePluginState(api),
28
28
  editorViewMode = _usePluginState.editorViewMode;
29
29
  var isEdit = editorViewMode === 'edit';
30
+ if (!isEdit) {
31
+ return null;
32
+ }
30
33
  return /*#__PURE__*/React.createElement(ToolbarDropdownItemSection, {
31
34
  hasSeparator: isEdit
32
35
  }, children);
@@ -5,5 +5,5 @@ type MenuSectionProps = {
5
5
  api: ExtractInjectionAPI<LoomPlugin> | undefined;
6
6
  children: React.ReactNode;
7
7
  };
8
- export declare const MenuSection: ({ children, api }: MenuSectionProps) => React.JSX.Element;
8
+ export declare const MenuSection: ({ children, api }: MenuSectionProps) => React.JSX.Element | null;
9
9
  export {};
@@ -5,5 +5,5 @@ type MenuSectionProps = {
5
5
  api: ExtractInjectionAPI<LoomPlugin> | undefined;
6
6
  children: React.ReactNode;
7
7
  };
8
- export declare const MenuSection: ({ children, api }: MenuSectionProps) => React.JSX.Element;
8
+ export declare const MenuSection: ({ children, api }: MenuSectionProps) => React.JSX.Element | null;
9
9
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-loom",
3
- "version": "7.1.0",
3
+ "version": "7.1.2",
4
4
  "description": "Loom plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,33 +33,33 @@
33
33
  "atlaskit:src": "src/index.ts",
34
34
  "dependencies": {
35
35
  "@atlaskit/button": "^23.4.0",
36
- "@atlaskit/editor-plugin-analytics": "^5.0.0",
36
+ "@atlaskit/editor-plugin-analytics": "^5.2.0",
37
37
  "@atlaskit/editor-plugin-editor-viewmode": "^7.0.0",
38
- "@atlaskit/editor-plugin-hyperlink": "^7.0.0",
38
+ "@atlaskit/editor-plugin-hyperlink": "^7.3.0",
39
39
  "@atlaskit/editor-plugin-primary-toolbar": "^6.0.0",
40
40
  "@atlaskit/editor-plugin-quick-insert": "^5.0.0",
41
41
  "@atlaskit/editor-plugin-toolbar": "^2.1.0",
42
42
  "@atlaskit/editor-plugin-width": "^6.0.0",
43
43
  "@atlaskit/editor-prosemirror": "7.0.0",
44
- "@atlaskit/editor-toolbar": "^0.8.0",
44
+ "@atlaskit/editor-toolbar": "^0.9.0",
45
45
  "@atlaskit/icon": "^28.1.0",
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
47
  "@atlaskit/platform-feature-flags-react": "^0.3.0",
48
- "@atlaskit/tmp-editor-statsig": "^12.10.0",
48
+ "@atlaskit/tmp-editor-statsig": "^12.21.0",
49
49
  "@atlaskit/tokens": "^6.3.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1",
52
52
  "@loomhq/record-sdk": "^2.36.18"
53
53
  },
54
54
  "peerDependencies": {
55
- "@atlaskit/editor-common": "^109.1.0",
55
+ "@atlaskit/editor-common": "^109.6.0",
56
56
  "react": "^18.2.0",
57
57
  "react-dom": "^18.2.0",
58
58
  "react-intl-next": "npm:react-intl@^5.18.1"
59
59
  },
60
60
  "devDependencies": {
61
- "@atlaskit/editor-plugin-base": "^6.0.0",
62
- "@atlaskit/editor-plugin-card": "^9.0.0",
61
+ "@atlaskit/editor-plugin-base": "^6.2.0",
62
+ "@atlaskit/editor-plugin-card": "^10.1.0",
63
63
  "@atlaskit/editor-plugin-copy-button": "^5.0.0",
64
64
  "@atlaskit/editor-plugin-decorations": "^5.0.0",
65
65
  "@atlaskit/editor-plugin-editor-disabled": "^5.0.0",