@atlaskit/editor-plugin-card 0.4.2 → 0.4.4

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
@@ -1,6 +1,5 @@
1
1
  module.exports = {
2
2
  rules: {
3
- 'no-duplicate-imports': 'off',
4
3
  '@typescript-eslint/no-duplicate-imports': 'error',
5
4
  '@typescript-eslint/no-explicit-any': 'error',
6
5
  },
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 0.4.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.4.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`bdb69158e0a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bdb69158e0a) - [ED-13910] Bump ProseMirror libraries to match prosemirror-view@1.31.6 dependencies
14
+ - Updated dependencies
15
+
3
16
  ## 0.4.2
4
17
 
5
18
  ### Patch Changes
@@ -25,7 +25,7 @@ var getClosestInlineCardPos = function getClosestInlineCardPos(state, editorView
25
25
  var nearPos = (_editorView$posAtCoor = editorView.posAtCoords({
26
26
  left: coord.left,
27
27
  top: direction === 'up' ? coord.top - lookupPixel : coord.bottom + lookupPixel
28
- })) === null || _editorView$posAtCoor === void 0 ? void 0 : _editorView$posAtCoor.pos;
28
+ })) === null || _editorView$posAtCoor === void 0 ? void 0 : _editorView$posAtCoor.inside;
29
29
  if (nearPos) {
30
30
  var newNode = state.doc.nodeAt(nearPos);
31
31
  if (newNode) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "sideEffects": false
5
5
  }
@@ -22,7 +22,7 @@ const getClosestInlineCardPos = (state, editorView, direction) => {
22
22
  const nearPos = (_editorView$posAtCoor = editorView.posAtCoords({
23
23
  left: coord.left,
24
24
  top: direction === 'up' ? coord.top - lookupPixel : coord.bottom + lookupPixel
25
- })) === null || _editorView$posAtCoor === void 0 ? void 0 : _editorView$posAtCoor.pos;
25
+ })) === null || _editorView$posAtCoor === void 0 ? void 0 : _editorView$posAtCoor.inside;
26
26
  if (nearPos) {
27
27
  const newNode = state.doc.nodeAt(nearPos);
28
28
  if (newNode) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "sideEffects": false
5
5
  }
@@ -19,7 +19,7 @@ var getClosestInlineCardPos = function getClosestInlineCardPos(state, editorView
19
19
  var nearPos = (_editorView$posAtCoor = editorView.posAtCoords({
20
20
  left: coord.left,
21
21
  top: direction === 'up' ? coord.top - lookupPixel : coord.bottom + lookupPixel
22
- })) === null || _editorView$posAtCoor === void 0 ? void 0 : _editorView$posAtCoor.pos;
22
+ })) === null || _editorView$posAtCoor === void 0 ? void 0 : _editorView$posAtCoor.inside;
23
23
  if (nearPos) {
24
24
  var newNode = state.doc.nodeAt(nearPos);
25
25
  if (newNode) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { EditorView } from '@atlaskit/editor-prosemirror/view';
2
- export declare const getDatasource: (editorView: EditorView) => import("prosemirror-utils").ContentNodeWithPos | {
2
+ export declare const getDatasource: (editorView: EditorView) => import("prosemirror-utils/dist/types").ContentNodeWithPos | {
3
3
  node: undefined;
4
4
  pos: undefined;
5
5
  };
@@ -1,4 +1,3 @@
1
- /// <reference path="../../../../../../typings/prosemirror.d.ts" />
2
1
  /** @jsx jsx */
3
2
  import React from 'react';
4
3
  import { jsx } from '@emotion/react';
@@ -1,5 +1,5 @@
1
1
  import { EditorView } from '@atlaskit/editor-prosemirror/view';
2
- export declare const getDatasource: (editorView: EditorView) => import("prosemirror-utils").ContentNodeWithPos | {
2
+ export declare const getDatasource: (editorView: EditorView) => import("prosemirror-utils/dist/types").ContentNodeWithPos | {
3
3
  node: undefined;
4
4
  pos: undefined;
5
5
  };
@@ -1,4 +1,3 @@
1
- /// <reference path="../../../../../../typings/prosemirror.d.ts" />
2
1
  /** @jsx jsx */
3
2
  import React from 'react';
4
3
  import { jsx } from '@emotion/react';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,9 +31,9 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/adf-schema": "^28.0.0",
34
+ "@atlaskit/adf-schema": "^28.1.0",
35
35
  "@atlaskit/analytics-next": "^9.1.0",
36
- "@atlaskit/editor-common": "^74.38.0",
36
+ "@atlaskit/editor-common": "^74.45.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^0.1.0",
38
38
  "@atlaskit/editor-plugin-decorations": "^0.1.0",
39
39
  "@atlaskit/editor-plugin-feature-flags": "^0.1.0",
@@ -41,11 +41,11 @@
41
41
  "@atlaskit/editor-plugin-grid": "^0.1.0",
42
42
  "@atlaskit/editor-plugin-hyperlink": "^0.3.0",
43
43
  "@atlaskit/editor-plugin-width": "^0.1.0",
44
- "@atlaskit/editor-prosemirror": "1.0.2",
44
+ "@atlaskit/editor-prosemirror": "1.1.0",
45
45
  "@atlaskit/editor-shared-styles": "^2.6.0",
46
46
  "@atlaskit/icon": "^21.12.0",
47
47
  "@atlaskit/link-analytics": "^8.2.0",
48
- "@atlaskit/link-datasource": "^0.33.0",
48
+ "@atlaskit/link-datasource": "^0.34.0",
49
49
  "@atlaskit/platform-feature-flags": "^0.2.0",
50
50
  "@atlaskit/smart-card": "^26.15.0",
51
51
  "@atlaskit/theme": "^12.5.0",
@@ -63,7 +63,7 @@
63
63
  },
64
64
  "devDependencies": {
65
65
  "@atlaskit/activity-provider": "^2.4.0",
66
- "@atlaskit/editor-test-helpers": "^18.9.0",
66
+ "@atlaskit/editor-test-helpers": "^18.11.0",
67
67
  "@atlaskit/link-test-helpers": "^6.0.0",
68
68
  "@atlaskit/media-test-helpers": "^33.0.0",
69
69
  "@atlaskit/ssr": "*",