@atlaskit/editor-plugin-quick-insert 1.0.1 → 1.0.3

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/.eslintrc.js CHANGED
@@ -3,12 +3,4 @@ module.exports = {
3
3
  '@typescript-eslint/no-duplicate-imports': 'error',
4
4
  '@typescript-eslint/no-explicit-any': 'error',
5
5
  },
6
- overrides: [
7
- {
8
- files: ['**/__tests__/**/*.{js,ts,tsx}', '**/examples/**/*.{js,ts,tsx}'],
9
- rules: {
10
- '@typescript-eslint/no-explicit-any': 'warn',
11
- },
12
- },
13
- ],
14
6
  };
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-plugin-quick-insert
2
2
 
3
+ ## 1.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
8
+
9
+ ## 1.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#74886](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74886) [`5b79ded33f58`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5b79ded33f58) - [EDF-324] Element Browser now has a separate categories for ai config items
14
+
3
15
  ## 1.0.1
4
16
 
5
17
  ### Patch Changes
@@ -17,8 +17,8 @@ var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/quest
17
17
  var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
18
18
  var _colors = require("@atlaskit/theme/colors");
19
19
  var _categories = require("./categories");
20
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
20
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
21
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
22
22
  /** @jsx jsx */
23
23
 
24
24
  var MODAL_WRAPPER_PADDING = exports.MODAL_WRAPPER_PADDING = 16;
@@ -9,6 +9,9 @@ function getCategories(intl) {
9
9
  return [{
10
10
  title: intl.formatMessage(_quickInsert.messages.all),
11
11
  name: 'all'
12
+ }, {
13
+ title: intl.formatMessage(_quickInsert.messages.AI),
14
+ name: 'AI'
12
15
  }, {
13
16
  title: intl.formatMessage(_quickInsert.messages.formatting),
14
17
  name: 'formatting'
@@ -11,8 +11,8 @@ var _hooks = require("@atlaskit/editor-common/hooks");
11
11
  var _commands = require("../../commands");
12
12
  var _search = require("../../search");
13
13
  var _ModalElementBrowser = _interopRequireDefault(require("./ModalElementBrowser"));
14
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
15
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
16
  var Modal = function Modal(_ref) {
17
17
  var quickInsertState = _ref.quickInsertState,
18
18
  editorView = _ref.editorView,
@@ -3,6 +3,9 @@ export function getCategories(intl) {
3
3
  return [{
4
4
  title: intl.formatMessage(messages.all),
5
5
  name: 'all'
6
+ }, {
7
+ title: intl.formatMessage(messages.AI),
8
+ name: 'AI'
6
9
  }, {
7
10
  title: intl.formatMessage(messages.formatting),
8
11
  name: 'formatting'
@@ -3,6 +3,9 @@ export function getCategories(intl) {
3
3
  return [{
4
4
  title: intl.formatMessage(messages.all),
5
5
  name: 'all'
6
+ }, {
7
+ title: intl.formatMessage(messages.AI),
8
+ name: 'AI'
6
9
  }, {
7
10
  title: intl.formatMessage(messages.formatting),
8
11
  name: 'formatting'
@@ -14,7 +14,7 @@ export interface Props {
14
14
  emptyStateHandler?: EmptyStateHandler;
15
15
  shouldReturnFocus?: boolean;
16
16
  }
17
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
18
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
17
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
18
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
19
19
  };
20
20
  export default _default;
@@ -14,7 +14,7 @@ export interface Props {
14
14
  emptyStateHandler?: EmptyStateHandler;
15
15
  shouldReturnFocus?: boolean;
16
16
  }
17
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
18
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
17
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
18
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
19
19
  };
20
20
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-quick-insert",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Quick insert plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,14 +33,14 @@
33
33
  ".": "./src/index.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/button": "^17.4.0",
37
- "@atlaskit/editor-common": "^78.0.0",
36
+ "@atlaskit/button": "^17.7.0",
37
+ "@atlaskit/editor-common": "^78.17.0",
38
38
  "@atlaskit/editor-plugin-type-ahead": "^1.0.0",
39
39
  "@atlaskit/editor-prosemirror": "3.0.0",
40
- "@atlaskit/icon": "^22.0.0",
40
+ "@atlaskit/icon": "^22.1.0",
41
41
  "@atlaskit/modal-dialog": "^12.10.0",
42
42
  "@atlaskit/theme": "^12.6.0",
43
- "@atlaskit/tokens": "^1.37.0",
43
+ "@atlaskit/tokens": "^1.42.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "@emotion/react": "^11.7.1"
46
46
  },
@@ -55,7 +55,7 @@
55
55
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
56
56
  "@testing-library/react": "^12.1.5",
57
57
  "react-dom": "^16.8.0",
58
- "typescript": "~4.9.5",
58
+ "typescript": "~5.4.2",
59
59
  "wait-for-expect": "^1.2.0"
60
60
  },
61
61
  "techstack": {
@@ -81,11 +81,9 @@
81
81
  "ui-components": [
82
82
  "lite-mode"
83
83
  ],
84
- "deprecation": [
85
- "no-deprecated-imports"
86
- ],
84
+ "deprecation": "no-deprecated-imports",
87
85
  "styling": [
88
- "static",
86
+ "emotion",
89
87
  "emotion"
90
88
  ],
91
89
  "imports": [
@@ -94,4 +92,4 @@
94
92
  }
95
93
  },
96
94
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
97
- }
95
+ }