@atlaskit/editor-plugin-type-ahead 1.0.10 → 1.1.0

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,21 @@
1
1
  # @atlaskit/editor-plugin-type-ahead
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934) [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) - bumped editor-prosemirror version to 4.0.0
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
13
+ ## 1.0.11
14
+
15
+ ### Patch Changes
16
+
17
+ - [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426) [`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) - Bump adf-schema to 35.9.2 to support table alignment options
18
+
3
19
  ## 1.0.10
4
20
 
5
21
  ### Patch Changes
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.TypeAheadPopup = void 0;
9
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
10
  var _react = _interopRequireWildcard(require("react"));
12
11
  var _react2 = require("@emotion/react");
13
12
  var _rafSchd = _interopRequireDefault(require("raf-schd"));
@@ -17,13 +16,23 @@ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
17
16
  var _colors = require("@atlaskit/theme/colors");
18
17
  var _constants = require("../constants");
19
18
  var _TypeAheadList = require("./TypeAheadList");
20
- var _templateObject;
21
- /** @jsx jsx */
22
19
  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); }
23
20
  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; }
21
+ /** @jsx jsx */
22
+
24
23
  var DEFAULT_TYPEAHEAD_MENU_HEIGHT = 380;
25
24
  var ITEM_PADDING = 12;
26
- var typeAheadContent = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n padding: ", " 0;\n width: 320px;\n max-height: 380px; /* ~5.5 visibile items */\n overflow-y: auto;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n position: relative;\n"])), "var(--ds-surface-overlay, ".concat(_colors.N0, ")"), "var(--ds-border-radius, 3px)", "var(--ds-shadow-overlay, ".concat("0 0 1px ".concat(_colors.N60A, ", 0 4px 8px -2px ").concat(_colors.N50A), ")"), "var(--ds-space-050, 4px)");
25
+ var typeAheadContent = (0, _react2.css)({
26
+ background: "var(--ds-surface-overlay, ".concat(_colors.N0, ")"),
27
+ borderRadius: "var(--ds-border-radius, 3px)",
28
+ boxShadow: "var(--ds-shadow-overlay, ".concat("0 0 1px ".concat(_colors.N60A, ", 0 4px 8px -2px ").concat(_colors.N50A), ")"),
29
+ padding: "var(--ds-space-050, 4px)".concat(" 0"),
30
+ width: '320px',
31
+ maxHeight: '380px' /* ~5.5 visibile items */,
32
+ overflowY: 'auto',
33
+ MsOverflowStyle: '-ms-autohiding-scrollbar',
34
+ position: 'relative'
35
+ });
27
36
  var Highlight = function Highlight(_ref) {
28
37
  var state = _ref.state,
29
38
  triggerHandler = _ref.triggerHandler;
@@ -10,17 +10,17 @@ import { CloseSelectionOptions, TYPE_AHEAD_DECORATION_DATA_ATTRIBUTE, TYPE_AHEAD
10
10
  import { TypeAheadList } from './TypeAheadList';
11
11
  const DEFAULT_TYPEAHEAD_MENU_HEIGHT = 380;
12
12
  const ITEM_PADDING = 12;
13
- const typeAheadContent = css`
14
- background: ${`var(--ds-surface-overlay, ${N0})`};
15
- border-radius: ${"var(--ds-border-radius, 3px)"};
16
- box-shadow: ${`var(--ds-shadow-overlay, ${`0 0 1px ${N60A}, 0 4px 8px -2px ${N50A}`})`};
17
- padding: ${"var(--ds-space-050, 4px)"} 0;
18
- width: 320px;
19
- max-height: 380px; /* ~5.5 visibile items */
20
- overflow-y: auto;
21
- -ms-overflow-style: -ms-autohiding-scrollbar;
22
- position: relative;
23
- `;
13
+ const typeAheadContent = css({
14
+ background: `var(--ds-surface-overlay, ${N0})`,
15
+ borderRadius: "var(--ds-border-radius, 3px)",
16
+ boxShadow: `var(--ds-shadow-overlay, ${`0 0 1px ${N60A}, 0 4px 8px -2px ${N50A}`})`,
17
+ padding: `${"var(--ds-space-050, 4px)"} 0`,
18
+ width: '320px',
19
+ maxHeight: '380px' /* ~5.5 visibile items */,
20
+ overflowY: 'auto',
21
+ MsOverflowStyle: '-ms-autohiding-scrollbar',
22
+ position: 'relative'
23
+ });
24
24
  const Highlight = ({
25
25
  state,
26
26
  triggerHandler
@@ -1,6 +1,4 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
3
- var _templateObject;
4
2
  /** @jsx jsx */
5
3
  import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
6
4
  import { css, jsx } from '@emotion/react';
@@ -13,7 +11,17 @@ import { CloseSelectionOptions, TYPE_AHEAD_DECORATION_DATA_ATTRIBUTE, TYPE_AHEAD
13
11
  import { TypeAheadList } from './TypeAheadList';
14
12
  var DEFAULT_TYPEAHEAD_MENU_HEIGHT = 380;
15
13
  var ITEM_PADDING = 12;
16
- var typeAheadContent = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n padding: ", " 0;\n width: 320px;\n max-height: 380px; /* ~5.5 visibile items */\n overflow-y: auto;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n position: relative;\n"])), "var(--ds-surface-overlay, ".concat(N0, ")"), "var(--ds-border-radius, 3px)", "var(--ds-shadow-overlay, ".concat("0 0 1px ".concat(N60A, ", 0 4px 8px -2px ").concat(N50A), ")"), "var(--ds-space-050, 4px)");
14
+ var typeAheadContent = css({
15
+ background: "var(--ds-surface-overlay, ".concat(N0, ")"),
16
+ borderRadius: "var(--ds-border-radius, 3px)",
17
+ boxShadow: "var(--ds-shadow-overlay, ".concat("0 0 1px ".concat(N60A, ", 0 4px 8px -2px ").concat(N50A), ")"),
18
+ padding: "var(--ds-space-050, 4px)".concat(" 0"),
19
+ width: '320px',
20
+ maxHeight: '380px' /* ~5.5 visibile items */,
21
+ overflowY: 'auto',
22
+ MsOverflowStyle: '-ms-autohiding-scrollbar',
23
+ position: 'relative'
24
+ });
17
25
  var Highlight = function Highlight(_ref) {
18
26
  var state = _ref.state,
19
27
  triggerHandler = _ref.triggerHandler;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-type-ahead",
3
- "version": "1.0.10",
3
+ "version": "1.1.0",
4
4
  "description": "Type-ahead plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,15 +32,15 @@
32
32
  ".": "./src/index.ts"
33
33
  },
34
34
  "dependencies": {
35
- "@atlaskit/adf-schema": "^35.9.0",
36
- "@atlaskit/analytics-next": "^9.2.0",
37
- "@atlaskit/editor-common": "^78.28.0",
38
- "@atlaskit/editor-plugin-analytics": "^1.0.0",
39
- "@atlaskit/editor-prosemirror": "3.0.0",
35
+ "@atlaskit/adf-schema": "^35.9.2",
36
+ "@atlaskit/analytics-next": "^9.3.0",
37
+ "@atlaskit/editor-common": "^78.31.0",
38
+ "@atlaskit/editor-plugin-analytics": "^1.1.0",
39
+ "@atlaskit/editor-prosemirror": "4.0.0",
40
40
  "@atlaskit/editor-shared-styles": "^2.9.0",
41
41
  "@atlaskit/menu": "^2.1.0",
42
42
  "@atlaskit/platform-feature-flags": "^0.2.0",
43
- "@atlaskit/prosemirror-input-rules": "^3.0.0",
43
+ "@atlaskit/prosemirror-input-rules": "^3.1.0",
44
44
  "@atlaskit/theme": "^12.7.0",
45
45
  "@atlaskit/tokens": "^1.43.0",
46
46
  "@babel/runtime": "^7.0.0",