@atlaskit/editor-plugin-quick-insert 6.0.9 → 6.0.11

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,20 @@
1
1
  # @atlaskit/editor-plugin-quick-insert
2
2
 
3
+ ## 6.0.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8854ad2383b33`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8854ad2383b33) -
8
+ Suppress no-literal-string-in-jsx
9
+
10
+ ## 6.0.10
11
+
12
+ ### Patch Changes
13
+
14
+ - [`76e788fce7750`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/76e788fce7750) -
15
+ ED-29665 experience tracking updates
16
+ - Updated dependencies
17
+
3
18
  ## 6.0.9
4
19
 
5
20
  ### Patch Changes
@@ -67,27 +67,21 @@ var getQuickInsertOpenExperiencePlugin = exports.getQuickInsertOpenExperiencePlu
67
67
  click: function click(_view, event) {
68
68
  if (isTargetQuickInsertButton(event.target)) {
69
69
  experience.start({
70
- metadata: {
71
- method: START_METHOD.QUICK_INSERT_BUTTON
72
- }
70
+ method: START_METHOD.QUICK_INSERT_BUTTON
73
71
  });
74
72
  }
75
73
  },
76
74
  beforeinput: function beforeinput(view, event) {
77
75
  if (isQuickInsertTrigger(event) && isSelectionWhichSupportsTypeahead(view)) {
78
76
  experience.start({
79
- metadata: {
80
- method: START_METHOD.TYPEAHEAD
81
- }
77
+ method: START_METHOD.TYPEAHEAD
82
78
  });
83
79
  }
84
80
  },
85
81
  keydown: function keydown(_view, event) {
86
82
  if (isCancelKey(event.key) && !isQuickInsertMenuWithinNode(getTarget())) {
87
83
  experience.abort({
88
- metadata: {
89
- reason: ABORT_REASON.USER_CANCELED
90
- }
84
+ reason: ABORT_REASON.USER_CANCELED
91
85
  });
92
86
  }
93
87
  }
@@ -98,9 +92,7 @@ var getQuickInsertOpenExperiencePlugin = exports.getQuickInsertOpenExperiencePlu
98
92
  return {
99
93
  destroy: function destroy() {
100
94
  experience.abort({
101
- metadata: {
102
- reason: ABORT_REASON.EDITOR_DESTROYED
103
- }
95
+ reason: ABORT_REASON.EDITOR_DESTROYED
104
96
  });
105
97
  }
106
98
  };
@@ -133,6 +133,7 @@ var Footer = function Footer(_ref) {
133
133
  appearance: "primary",
134
134
  onClick: onInsert,
135
135
  testId: "ModalElementBrowser__insert-button"
136
+ // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
136
137
  }, "Insert")), (0, _react2.jsx)("div", {
137
138
  css: actionItemStyles
138
139
  }, (0, _react2.jsx)(_button.default, {
@@ -59,27 +59,21 @@ export const getQuickInsertOpenExperiencePlugin = ({
59
59
  click: (_view, event) => {
60
60
  if (isTargetQuickInsertButton(event.target)) {
61
61
  experience.start({
62
- metadata: {
63
- method: START_METHOD.QUICK_INSERT_BUTTON
64
- }
62
+ method: START_METHOD.QUICK_INSERT_BUTTON
65
63
  });
66
64
  }
67
65
  },
68
66
  beforeinput: (view, event) => {
69
67
  if (isQuickInsertTrigger(event) && isSelectionWhichSupportsTypeahead(view)) {
70
68
  experience.start({
71
- metadata: {
72
- method: START_METHOD.TYPEAHEAD
73
- }
69
+ method: START_METHOD.TYPEAHEAD
74
70
  });
75
71
  }
76
72
  },
77
73
  keydown: (_view, event) => {
78
74
  if (isCancelKey(event.key) && !isQuickInsertMenuWithinNode(getTarget())) {
79
75
  experience.abort({
80
- metadata: {
81
- reason: ABORT_REASON.USER_CANCELED
82
- }
76
+ reason: ABORT_REASON.USER_CANCELED
83
77
  });
84
78
  }
85
79
  }
@@ -90,9 +84,7 @@ export const getQuickInsertOpenExperiencePlugin = ({
90
84
  return {
91
85
  destroy: () => {
92
86
  experience.abort({
93
- metadata: {
94
- reason: ABORT_REASON.EDITOR_DESTROYED
95
- }
87
+ reason: ABORT_REASON.EDITOR_DESTROYED
96
88
  });
97
89
  }
98
90
  };
@@ -117,6 +117,7 @@ const Footer = ({
117
117
  appearance: "primary",
118
118
  onClick: onInsert,
119
119
  testId: "ModalElementBrowser__insert-button"
120
+ // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
120
121
  }, "Insert")), jsx("div", {
121
122
  css: actionItemStyles
122
123
  }, jsx(Button, {
@@ -60,27 +60,21 @@ export var getQuickInsertOpenExperiencePlugin = function getQuickInsertOpenExper
60
60
  click: function click(_view, event) {
61
61
  if (isTargetQuickInsertButton(event.target)) {
62
62
  experience.start({
63
- metadata: {
64
- method: START_METHOD.QUICK_INSERT_BUTTON
65
- }
63
+ method: START_METHOD.QUICK_INSERT_BUTTON
66
64
  });
67
65
  }
68
66
  },
69
67
  beforeinput: function beforeinput(view, event) {
70
68
  if (isQuickInsertTrigger(event) && isSelectionWhichSupportsTypeahead(view)) {
71
69
  experience.start({
72
- metadata: {
73
- method: START_METHOD.TYPEAHEAD
74
- }
70
+ method: START_METHOD.TYPEAHEAD
75
71
  });
76
72
  }
77
73
  },
78
74
  keydown: function keydown(_view, event) {
79
75
  if (isCancelKey(event.key) && !isQuickInsertMenuWithinNode(getTarget())) {
80
76
  experience.abort({
81
- metadata: {
82
- reason: ABORT_REASON.USER_CANCELED
83
- }
77
+ reason: ABORT_REASON.USER_CANCELED
84
78
  });
85
79
  }
86
80
  }
@@ -91,9 +85,7 @@ export var getQuickInsertOpenExperiencePlugin = function getQuickInsertOpenExper
91
85
  return {
92
86
  destroy: function destroy() {
93
87
  experience.abort({
94
- metadata: {
95
- reason: ABORT_REASON.EDITOR_DESTROYED
96
- }
88
+ reason: ABORT_REASON.EDITOR_DESTROYED
97
89
  });
98
90
  }
99
91
  };
@@ -123,6 +123,7 @@ var Footer = function Footer(_ref) {
123
123
  appearance: "primary",
124
124
  onClick: onInsert,
125
125
  testId: "ModalElementBrowser__insert-button"
126
+ // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
126
127
  }, "Insert")), jsx("div", {
127
128
  css: actionItemStyles
128
129
  }, jsx(Button, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-quick-insert",
3
- "version": "6.0.9",
3
+ "version": "6.0.11",
4
4
  "description": "Quick insert plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,16 +36,16 @@
36
36
  "@atlaskit/editor-plugin-type-ahead": "^6.5.0",
37
37
  "@atlaskit/editor-prosemirror": "7.0.0",
38
38
  "@atlaskit/icon": "^29.0.0",
39
- "@atlaskit/modal-dialog": "^14.6.0",
39
+ "@atlaskit/modal-dialog": "^14.7.0",
40
40
  "@atlaskit/platform-feature-flags": "^1.1.0",
41
41
  "@atlaskit/theme": "^21.0.0",
42
- "@atlaskit/tmp-editor-statsig": "^13.35.0",
43
- "@atlaskit/tokens": "^8.0.0",
42
+ "@atlaskit/tmp-editor-statsig": "^13.41.0",
43
+ "@atlaskit/tokens": "^8.2.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "@emotion/react": "^11.7.1"
46
46
  },
47
47
  "peerDependencies": {
48
- "@atlaskit/editor-common": "^110.27.0",
48
+ "@atlaskit/editor-common": "^110.33.0",
49
49
  "react": "^18.2.0",
50
50
  "react-dom": "^18.2.0",
51
51
  "react-intl-next": "npm:react-intl@^5.18.1"