@atlaskit/editor-plugin-card 12.1.2 → 12.1.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/CHANGELOG.md +14 -0
- package/dist/cjs/nodeviews/genericCard.js +2 -2
- package/dist/es2019/nodeviews/genericCard.js +2 -2
- package/dist/esm/nodeviews/genericCard.js +2 -2
- package/dist/types/nodeviews/toDOM-fixes/blockCard.d.ts +4 -0
- package/dist/types/nodeviews/toDOM-fixes/embedCard.d.ts +4 -0
- package/dist/types/nodeviews/toDOM-fixes/inlineCard.d.ts +4 -0
- package/dist/types-ts4.5/nodeviews/toDOM-fixes/blockCard.d.ts +4 -0
- package/dist/types-ts4.5/nodeviews/toDOM-fixes/embedCard.d.ts +4 -0
- package/dist/types-ts4.5/nodeviews/toDOM-fixes/inlineCard.d.ts +4 -0
- package/package.json +5 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 12.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5c3f8d87c2290`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5c3f8d87c2290) -
|
|
8
|
+
Cleanup general AIFC bug fix feature gate
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 12.1.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 12.1.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -171,11 +171,11 @@ function Card(SmartCardComponent, UnsupportedComponent) {
|
|
|
171
171
|
* We cache fatal errors by position to avoid retrying the same errors
|
|
172
172
|
* on the same links at the same position.
|
|
173
173
|
*/
|
|
174
|
-
if (url && pos && fatalErrorPositionMap.get(url) === pos
|
|
174
|
+
if (url && pos && fatalErrorPositionMap.get(url) === pos) {
|
|
175
175
|
return null;
|
|
176
176
|
}
|
|
177
177
|
(0, _doc.changeSelectedCardToLinkFallback)(undefined, url, true, node, getPos(), pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions)(view.state, view.dispatch);
|
|
178
|
-
if (url && pos
|
|
178
|
+
if (url && pos) {
|
|
179
179
|
fatalErrorPositionMap.set(url, pos);
|
|
180
180
|
}
|
|
181
181
|
return null;
|
|
@@ -146,11 +146,11 @@ export function Card(SmartCardComponent, UnsupportedComponent) {
|
|
|
146
146
|
* We cache fatal errors by position to avoid retrying the same errors
|
|
147
147
|
* on the same links at the same position.
|
|
148
148
|
*/
|
|
149
|
-
if (url && pos && fatalErrorPositionMap.get(url) === pos
|
|
149
|
+
if (url && pos && fatalErrorPositionMap.get(url) === pos) {
|
|
150
150
|
return null;
|
|
151
151
|
}
|
|
152
152
|
changeSelectedCardToLinkFallback(undefined, url, true, node, getPos(), pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions)(view.state, view.dispatch);
|
|
153
|
-
if (url && pos
|
|
153
|
+
if (url && pos) {
|
|
154
154
|
fatalErrorPositionMap.set(url, pos);
|
|
155
155
|
}
|
|
156
156
|
return null;
|
|
@@ -162,11 +162,11 @@ export function Card(SmartCardComponent, UnsupportedComponent) {
|
|
|
162
162
|
* We cache fatal errors by position to avoid retrying the same errors
|
|
163
163
|
* on the same links at the same position.
|
|
164
164
|
*/
|
|
165
|
-
if (url && pos && fatalErrorPositionMap.get(url) === pos
|
|
165
|
+
if (url && pos && fatalErrorPositionMap.get(url) === pos) {
|
|
166
166
|
return null;
|
|
167
167
|
}
|
|
168
168
|
changeSelectedCardToLinkFallback(undefined, url, true, node, getPos(), pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions)(view.state, view.dispatch);
|
|
169
|
-
if (url && pos
|
|
169
|
+
if (url && pos) {
|
|
170
170
|
fatalErrorPositionMap.set(url, pos);
|
|
171
171
|
}
|
|
172
172
|
return null;
|
|
@@ -21,4 +21,8 @@ export declare const blockCardSpecWithFixedToDOM: () => {
|
|
|
21
21
|
toDebugString?: (node: PMNode) => string;
|
|
22
22
|
leafText?: (node: PMNode) => string;
|
|
23
23
|
linebreakReplacement?: boolean;
|
|
24
|
+
disableDropCursor?: boolean | ((view: import("prosemirror-view").EditorView, pos: {
|
|
25
|
+
pos: number;
|
|
26
|
+
inside: number;
|
|
27
|
+
}, event: DragEvent) => boolean);
|
|
24
28
|
};
|
|
@@ -21,4 +21,8 @@ export declare const embedCardSpecWithFixedToDOM: () => {
|
|
|
21
21
|
toDebugString?: (node: PMNode) => string;
|
|
22
22
|
leafText?: (node: PMNode) => string;
|
|
23
23
|
linebreakReplacement?: boolean;
|
|
24
|
+
disableDropCursor?: boolean | ((view: import("prosemirror-view").EditorView, pos: {
|
|
25
|
+
pos: number;
|
|
26
|
+
inside: number;
|
|
27
|
+
}, event: DragEvent) => boolean);
|
|
24
28
|
};
|
|
@@ -21,4 +21,8 @@ export declare const inlineCardSpecWithFixedToDOM: () => {
|
|
|
21
21
|
toDebugString?: (node: PMNode) => string;
|
|
22
22
|
leafText?: (node: PMNode) => string;
|
|
23
23
|
linebreakReplacement?: boolean;
|
|
24
|
+
disableDropCursor?: boolean | ((view: import("prosemirror-view").EditorView, pos: {
|
|
25
|
+
pos: number;
|
|
26
|
+
inside: number;
|
|
27
|
+
}, event: DragEvent) => boolean);
|
|
24
28
|
};
|
|
@@ -21,4 +21,8 @@ export declare const blockCardSpecWithFixedToDOM: () => {
|
|
|
21
21
|
toDebugString?: (node: PMNode) => string;
|
|
22
22
|
leafText?: (node: PMNode) => string;
|
|
23
23
|
linebreakReplacement?: boolean;
|
|
24
|
+
disableDropCursor?: boolean | ((view: import("prosemirror-view").EditorView, pos: {
|
|
25
|
+
pos: number;
|
|
26
|
+
inside: number;
|
|
27
|
+
}, event: DragEvent) => boolean);
|
|
24
28
|
};
|
|
@@ -21,4 +21,8 @@ export declare const embedCardSpecWithFixedToDOM: () => {
|
|
|
21
21
|
toDebugString?: (node: PMNode) => string;
|
|
22
22
|
leafText?: (node: PMNode) => string;
|
|
23
23
|
linebreakReplacement?: boolean;
|
|
24
|
+
disableDropCursor?: boolean | ((view: import("prosemirror-view").EditorView, pos: {
|
|
25
|
+
pos: number;
|
|
26
|
+
inside: number;
|
|
27
|
+
}, event: DragEvent) => boolean);
|
|
24
28
|
};
|
|
@@ -21,4 +21,8 @@ export declare const inlineCardSpecWithFixedToDOM: () => {
|
|
|
21
21
|
toDebugString?: (node: PMNode) => string;
|
|
22
22
|
leafText?: (node: PMNode) => string;
|
|
23
23
|
linebreakReplacement?: boolean;
|
|
24
|
+
disableDropCursor?: boolean | ((view: import("prosemirror-view").EditorView, pos: {
|
|
25
|
+
pos: number;
|
|
26
|
+
inside: number;
|
|
27
|
+
}, event: DragEvent) => boolean);
|
|
24
28
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.4",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"@atlaskit/editor-plugin-floating-toolbar": "^9.1.0",
|
|
43
43
|
"@atlaskit/editor-plugin-grid": "^7.0.0",
|
|
44
44
|
"@atlaskit/editor-plugin-toolbar": "^4.1.0",
|
|
45
|
-
"@atlaskit/editor-plugin-width": "^8.
|
|
45
|
+
"@atlaskit/editor-plugin-width": "^8.1.0",
|
|
46
46
|
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
47
47
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
48
48
|
"@atlaskit/frontend-utilities": "^3.2.0",
|
|
49
|
-
"@atlaskit/icon": "^
|
|
49
|
+
"@atlaskit/icon": "^30.0.0",
|
|
50
50
|
"@atlaskit/link": "^3.3.0",
|
|
51
51
|
"@atlaskit/link-analytics": "^11.0.0",
|
|
52
52
|
"@atlaskit/link-client-extension": "^6.0.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
62
62
|
"@atlaskit/smart-card": "^43.22.0",
|
|
63
63
|
"@atlaskit/theme": "^21.0.0",
|
|
64
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
64
|
+
"@atlaskit/tmp-editor-statsig": "^16.35.0",
|
|
65
65
|
"@atlaskit/tokens": "^10.1.0",
|
|
66
66
|
"@babel/runtime": "^7.0.0",
|
|
67
67
|
"@emotion/react": "^11.7.1",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"uuid": "^3.1.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@atlaskit/editor-common": "^111.
|
|
74
|
+
"@atlaskit/editor-common": "^111.9.0",
|
|
75
75
|
"@atlaskit/link-provider": "^4.1.0",
|
|
76
76
|
"react": "^18.2.0",
|
|
77
77
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -124,9 +124,6 @@
|
|
|
124
124
|
},
|
|
125
125
|
"platform_synced_block_dogfooding": {
|
|
126
126
|
"type": "boolean"
|
|
127
|
-
},
|
|
128
|
-
"platform_editor_ai_generic_prep_for_aifc_2": {
|
|
129
|
-
"type": "boolean"
|
|
130
127
|
}
|
|
131
128
|
},
|
|
132
129
|
"stricter": {
|