@atlaskit/editor-plugin-card 3.0.6 → 3.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-card
2
2
 
3
+ ## 3.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#142414](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/142414)
8
+ [`4d4914bf56307`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4d4914bf56307) -
9
+ Remove card provider feature flag and rename autoformatting provider feature flag, Improve
10
+ performance of setting card provider, Feature Gate the autoformatting Provider being passed to
11
+ ComposableEditor in Confluence
12
+
13
+ ## 3.0.7
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 3.0.6
4
20
 
5
21
  ### Patch Changes
@@ -126,7 +126,7 @@ var cardPlugin = exports.cardPlugin = function cardPlugin(_ref) {
126
126
  return providerPromise;
127
127
  case 2:
128
128
  provider = _context.sent;
129
- if (!(previousCardProvider === provider)) {
129
+ if (!(previousCardProvider === provider || (options === null || options === void 0 ? void 0 : options.provider) === providerPromise)) {
130
130
  _context.next = 5;
131
131
  break;
132
132
  }
@@ -110,7 +110,7 @@ export const cardPlugin = ({
110
110
  var _api$core$actions$exe;
111
111
  const provider = await providerPromise;
112
112
  // Prevent someone trying to set the exact same provider twice for performance reasons
113
- if (previousCardProvider === provider) {
113
+ if (previousCardProvider === provider || (options === null || options === void 0 ? void 0 : options.provider) === providerPromise) {
114
114
  return false;
115
115
  }
116
116
  previousCardProvider = provider;
@@ -119,7 +119,7 @@ export var cardPlugin = function cardPlugin(_ref) {
119
119
  return providerPromise;
120
120
  case 2:
121
121
  provider = _context.sent;
122
- if (!(previousCardProvider === provider)) {
122
+ if (!(previousCardProvider === provider || (options === null || options === void 0 ? void 0 : options.provider) === providerPromise)) {
123
123
  _context.next = 5;
124
124
  break;
125
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "3.0.6",
3
+ "version": "3.1.0",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  "@atlaskit/adf-schema": "^40.9.0",
35
35
  "@atlaskit/analytics-next": "^10.1.0",
36
36
  "@atlaskit/custom-steps": "^0.7.0",
37
- "@atlaskit/editor-common": "^90.0.0",
37
+ "@atlaskit/editor-common": "^91.0.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^1.8.0",
39
39
  "@atlaskit/editor-plugin-decorations": "^1.3.0",
40
40
  "@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
@@ -54,11 +54,11 @@
54
54
  "@atlaskit/linking-types": "^9.0.0",
55
55
  "@atlaskit/menu": "2.12.2",
56
56
  "@atlaskit/platform-feature-flags": "^0.3.0",
57
- "@atlaskit/primitives": "^12.1.0",
57
+ "@atlaskit/primitives": "^12.2.0",
58
58
  "@atlaskit/smart-card": "^28.1.0",
59
59
  "@atlaskit/theme": "^13.0.0",
60
60
  "@atlaskit/tmp-editor-statsig": "^2.1.8",
61
- "@atlaskit/tokens": "^1.60.0",
61
+ "@atlaskit/tokens": "^1.61.0",
62
62
  "@babel/runtime": "^7.0.0",
63
63
  "@emotion/react": "^11.7.1",
64
64
  "lodash": "^4.17.21",
package/.eslintrc.js DELETED
@@ -1,14 +0,0 @@
1
- module.exports = {
2
- rules: {
3
- '@typescript-eslint/no-duplicate-imports': 'error',
4
- '@typescript-eslint/no-explicit-any': 'error',
5
- },
6
- overrides: [
7
- {
8
- files: ['**/__tests__/**/*.{js,ts,tsx}', '**/examples/**/*.{js,ts,tsx}'],
9
- rules: {
10
- '@typescript-eslint/no-explicit-any': 'off',
11
- },
12
- },
13
- ],
14
- };