@atlaskit/editor-plugin-card 22.0.9 → 22.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 +11 -0
- package/package.json +30 -30
- package/report.api.md +0 -229
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 22.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
|
|
8
|
+
Remove stale API report artifacts from published Platform packages.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 22.0.9
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "22.0
|
|
3
|
+
"version": "22.1.0",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,49 +22,49 @@
|
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@atlaskit/adf-schema": "^57.2.0",
|
|
25
|
-
"@atlaskit/analytics-next": "^12.
|
|
26
|
-
"@atlaskit/button": "^25.
|
|
25
|
+
"@atlaskit/analytics-next": "^12.5.0",
|
|
26
|
+
"@atlaskit/button": "^25.3.0",
|
|
27
27
|
"@atlaskit/css": "^1.1.0",
|
|
28
|
-
"@atlaskit/custom-steps": "^1.
|
|
29
|
-
"@atlaskit/editor-card-provider": "^7.
|
|
30
|
-
"@atlaskit/editor-plugin-analytics": "^16.
|
|
28
|
+
"@atlaskit/custom-steps": "^1.1.0",
|
|
29
|
+
"@atlaskit/editor-card-provider": "^7.3.0",
|
|
30
|
+
"@atlaskit/editor-plugin-analytics": "^16.1.0",
|
|
31
31
|
"@atlaskit/editor-plugin-annotation": "^16.0.0",
|
|
32
|
-
"@atlaskit/editor-plugin-base": "^17.
|
|
32
|
+
"@atlaskit/editor-plugin-base": "^17.1.0",
|
|
33
33
|
"@atlaskit/editor-plugin-connectivity": "^16.0.0",
|
|
34
|
-
"@atlaskit/editor-plugin-decorations": "^16.
|
|
35
|
-
"@atlaskit/editor-plugin-editor-disabled": "^16.
|
|
34
|
+
"@atlaskit/editor-plugin-decorations": "^16.1.0",
|
|
35
|
+
"@atlaskit/editor-plugin-editor-disabled": "^16.1.0",
|
|
36
36
|
"@atlaskit/editor-plugin-editor-viewmode": "^18.0.0",
|
|
37
|
-
"@atlaskit/editor-plugin-feature-flags": "^15.
|
|
38
|
-
"@atlaskit/editor-plugin-floating-toolbar": "^18.
|
|
39
|
-
"@atlaskit/editor-plugin-grid": "^16.
|
|
40
|
-
"@atlaskit/editor-plugin-selection": "^16.
|
|
37
|
+
"@atlaskit/editor-plugin-feature-flags": "^15.1.0",
|
|
38
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^18.1.0",
|
|
39
|
+
"@atlaskit/editor-plugin-grid": "^16.1.0",
|
|
40
|
+
"@atlaskit/editor-plugin-selection": "^16.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-toolbar": "^13.0.0",
|
|
42
42
|
"@atlaskit/editor-plugin-ui-control-registry": "^10.0.0",
|
|
43
|
-
"@atlaskit/editor-plugin-width": "^17.
|
|
43
|
+
"@atlaskit/editor-plugin-width": "^17.1.0",
|
|
44
44
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
45
|
-
"@atlaskit/editor-shared-styles": "^4.
|
|
45
|
+
"@atlaskit/editor-shared-styles": "^4.1.0",
|
|
46
46
|
"@atlaskit/editor-smart-link-draggable": "^1.2.0",
|
|
47
47
|
"@atlaskit/editor-toolbar": "^2.6.0",
|
|
48
48
|
"@atlaskit/editor-ui-control-model": "^2.9.0",
|
|
49
|
-
"@atlaskit/frontend-utilities": "^4.
|
|
50
|
-
"@atlaskit/icon": "^37.
|
|
49
|
+
"@atlaskit/frontend-utilities": "^4.2.0",
|
|
50
|
+
"@atlaskit/icon": "^37.6.0",
|
|
51
51
|
"@atlaskit/json-ld-types": "^2.0.0",
|
|
52
52
|
"@atlaskit/link": "^5.1.0",
|
|
53
|
-
"@atlaskit/link-analytics": "^12.
|
|
54
|
-
"@atlaskit/link-client-extension": "^7.
|
|
55
|
-
"@atlaskit/link-datasource": "^6.
|
|
56
|
-
"@atlaskit/link-extractors": "^4.
|
|
57
|
-
"@atlaskit/linking-common": "^12.
|
|
58
|
-
"@atlaskit/linking-types": "^15.
|
|
59
|
-
"@atlaskit/menu": "^10.
|
|
53
|
+
"@atlaskit/link-analytics": "^12.3.0",
|
|
54
|
+
"@atlaskit/link-client-extension": "^7.3.0",
|
|
55
|
+
"@atlaskit/link-datasource": "^6.8.0",
|
|
56
|
+
"@atlaskit/link-extractors": "^4.2.0",
|
|
57
|
+
"@atlaskit/linking-common": "^12.1.0",
|
|
58
|
+
"@atlaskit/linking-types": "^15.2.0",
|
|
59
|
+
"@atlaskit/menu": "^10.2.0",
|
|
60
60
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
61
|
-
"@atlaskit/platform-feature-flags": "^2.
|
|
61
|
+
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
62
62
|
"@atlaskit/platform-feature-flags-react": "^1.2.0",
|
|
63
|
-
"@atlaskit/primitives": "^22.
|
|
63
|
+
"@atlaskit/primitives": "^22.5.0",
|
|
64
64
|
"@atlaskit/prosemirror-history": "^1.2.0",
|
|
65
|
-
"@atlaskit/smart-card": "^45.
|
|
65
|
+
"@atlaskit/smart-card": "^45.19.0",
|
|
66
66
|
"@atlaskit/tmp-editor-statsig": "^168.0.0",
|
|
67
|
-
"@atlaskit/tokens": "^16.
|
|
67
|
+
"@atlaskit/tokens": "^16.10.0",
|
|
68
68
|
"@babel/runtime": "^7.0.0",
|
|
69
69
|
"@emotion/react": "^11.7.1",
|
|
70
70
|
"lodash": "^4.17.21",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"uuid": "^3.1.0"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@atlaskit/editor-common": "^120.
|
|
77
|
-
"@atlaskit/link-provider": "^5.
|
|
76
|
+
"@atlaskit/editor-common": "^120.9.0",
|
|
77
|
+
"@atlaskit/link-provider": "^5.5.0",
|
|
78
78
|
"react": "^18.2.0 || ^19.2.0",
|
|
79
79
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
80
80
|
},
|
package/report.api.md
DELETED
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
<!-- API Report Version: 2.3 -->
|
|
2
|
-
|
|
3
|
-
## API Report File for "@atlaskit/editor-plugin-card"
|
|
4
|
-
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
6
|
-
> [API Extractor](https://api-extractor.com/).
|
|
7
|
-
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
8
|
-
|
|
9
|
-
### Table of contents
|
|
10
|
-
|
|
11
|
-
- [Main Entry Types](#main-entry-types)
|
|
12
|
-
- [Peer Dependencies](#peer-dependencies)
|
|
13
|
-
|
|
14
|
-
### Main Entry Types
|
|
15
|
-
|
|
16
|
-
<!--SECTION START: Main Entry Types-->
|
|
17
|
-
|
|
18
|
-
```ts
|
|
19
|
-
import type { ACTION } from '@atlaskit/editor-common/analytics';
|
|
20
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
21
|
-
import type { CardAppearance } from '@atlaskit/editor-common/provider-factory';
|
|
22
|
-
import type { CardOptions } from '@atlaskit/editor-common/card';
|
|
23
|
-
import type { CardPluginActions } from '@atlaskit/editor-common/card';
|
|
24
|
-
import type { CardProvider } from '@atlaskit/editor-common/provider-factory';
|
|
25
|
-
import type { CardReplacementInputMethod } from '@atlaskit/editor-common/card';
|
|
26
|
-
import type { DatasourceModalType } from '@atlaskit/editor-common/types';
|
|
27
|
-
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
28
|
-
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
29
|
-
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
30
|
-
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
31
|
-
import type { GridPlugin } from '@atlaskit/editor-plugin-grid';
|
|
32
|
-
import type { HyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
|
|
33
|
-
import type { LinkPickerOptions } from '@atlaskit/editor-common/types';
|
|
34
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
35
|
-
import type { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
|
|
36
|
-
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
37
|
-
import type { SmartLinkEvents } from '@atlaskit/smart-card';
|
|
38
|
-
import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
39
|
-
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
40
|
-
|
|
41
|
-
// @public (undocumented)
|
|
42
|
-
type CardInfo = {
|
|
43
|
-
title?: string;
|
|
44
|
-
url?: string;
|
|
45
|
-
pos: number;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
// @public (undocumented)
|
|
49
|
-
export type CardPlugin = NextEditorPlugin<
|
|
50
|
-
'card',
|
|
51
|
-
{
|
|
52
|
-
pluginConfiguration: CardPluginOptions;
|
|
53
|
-
dependencies: [
|
|
54
|
-
OptionalPlugin<FeatureFlagsPlugin>,
|
|
55
|
-
OptionalPlugin<AnalyticsPlugin>,
|
|
56
|
-
WidthPlugin,
|
|
57
|
-
DecorationsPlugin,
|
|
58
|
-
GridPlugin,
|
|
59
|
-
FloatingToolbarPlugin,
|
|
60
|
-
HyperlinkPlugin,
|
|
61
|
-
];
|
|
62
|
-
sharedState: CardPluginState | null;
|
|
63
|
-
actions: CardPluginActions;
|
|
64
|
-
}
|
|
65
|
-
>;
|
|
66
|
-
|
|
67
|
-
// @public
|
|
68
|
-
export const cardPlugin: CardPlugin;
|
|
69
|
-
|
|
70
|
-
// @public (undocumented)
|
|
71
|
-
type CardPluginEvent = DatasourceEvent | LinkEvent;
|
|
72
|
-
|
|
73
|
-
// @public (undocumented)
|
|
74
|
-
type CardPluginOptions = CardOptions & {
|
|
75
|
-
editorAppearance?: EditorAppearance;
|
|
76
|
-
platform: 'web';
|
|
77
|
-
fullWidthMode?: boolean;
|
|
78
|
-
linkPicker?: LinkPickerOptions;
|
|
79
|
-
cardPluginEvents?: EditorCardPluginEvents<CardPluginEvent>;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
// @public (undocumented)
|
|
83
|
-
type CardPluginState = {
|
|
84
|
-
requests: Request_2[];
|
|
85
|
-
provider: CardProvider | null;
|
|
86
|
-
cards: CardInfo[];
|
|
87
|
-
showLinkingToolbar: boolean;
|
|
88
|
-
smartLinkEvents?: SmartLinkEvents;
|
|
89
|
-
editorAppearance?: EditorAppearance;
|
|
90
|
-
showDatasourceModal: boolean;
|
|
91
|
-
datasourceModalType?: DatasourceModalType;
|
|
92
|
-
datasourceTableRef?: HTMLElement;
|
|
93
|
-
layout?: DatasourceTableLayout;
|
|
94
|
-
inlineCardAwarenessCandidatePosition?: number;
|
|
95
|
-
overlayCandidatePosition?: number;
|
|
96
|
-
removeOverlay?: () => void;
|
|
97
|
-
selectedInlineLinkPosition?: number;
|
|
98
|
-
allowEmbeds?: boolean;
|
|
99
|
-
allowBlockCards?: boolean;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
// @public (undocumented)
|
|
103
|
-
type DatasourceCreatedEvent = {
|
|
104
|
-
event: EVENT.CREATED;
|
|
105
|
-
subject: EVENT_SUBJECT.DATASOURCE;
|
|
106
|
-
data: Metadata_2;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
// @public (undocumented)
|
|
110
|
-
type DatasourceDeletedEvent = {
|
|
111
|
-
event: EVENT.DELETED;
|
|
112
|
-
subject: EVENT_SUBJECT.DATASOURCE;
|
|
113
|
-
data: Metadata_2;
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
// @public (undocumented)
|
|
117
|
-
type DatasourceEvent = DatasourceCreatedEvent | DatasourceDeletedEvent | DatasourceUpdatedEvent;
|
|
118
|
-
|
|
119
|
-
// @public (undocumented)
|
|
120
|
-
type DatasourceTableLayout = 'center' | 'full-width' | 'wide';
|
|
121
|
-
|
|
122
|
-
// @public (undocumented)
|
|
123
|
-
type DatasourceUpdatedEvent = {
|
|
124
|
-
event: EVENT.UPDATED;
|
|
125
|
-
subject: EVENT_SUBJECT.DATASOURCE;
|
|
126
|
-
data: Metadata_2<UpdateMetadata>;
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
// @public (undocumented)
|
|
130
|
-
type EditorCardPluginEvents<T> = {
|
|
131
|
-
push: (...events: T[]) => void;
|
|
132
|
-
subscribe: (listener: Subscriber<T>) => () => void;
|
|
133
|
-
flush: () => void;
|
|
134
|
-
getSize: () => number;
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
// @public (undocumented)
|
|
138
|
-
enum EVENT {
|
|
139
|
-
// (undocumented)
|
|
140
|
-
CREATED = 'created',
|
|
141
|
-
// (undocumented)
|
|
142
|
-
DELETED = 'deleted',
|
|
143
|
-
// (undocumented)
|
|
144
|
-
UPDATED = 'updated',
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
// @public (undocumented)
|
|
148
|
-
enum EVENT_SUBJECT {
|
|
149
|
-
// (undocumented)
|
|
150
|
-
DATASOURCE = 'datasource',
|
|
151
|
-
// (undocumented)
|
|
152
|
-
LINK = 'link',
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
// @public
|
|
156
|
-
type LinkCreatedEvent = {
|
|
157
|
-
event: EVENT.CREATED;
|
|
158
|
-
subject: EVENT_SUBJECT.LINK;
|
|
159
|
-
data: Metadata_2;
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
// @public (undocumented)
|
|
163
|
-
type LinkDeletedEvent = {
|
|
164
|
-
event: EVENT.DELETED;
|
|
165
|
-
subject: EVENT_SUBJECT.LINK;
|
|
166
|
-
data: Metadata_2;
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
// @public (undocumented)
|
|
170
|
-
type LinkEvent = LinkCreatedEvent | LinkDeletedEvent | LinkUpdatedEvent;
|
|
171
|
-
|
|
172
|
-
// @public (undocumented)
|
|
173
|
-
type LinkUpdatedEvent = {
|
|
174
|
-
event: EVENT.UPDATED;
|
|
175
|
-
subject: EVENT_SUBJECT.LINK;
|
|
176
|
-
data: Metadata_2<UpdateMetadata>;
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
// @public (undocumented)
|
|
180
|
-
type Metadata_2<T = {}> = {
|
|
181
|
-
node: Node_2;
|
|
182
|
-
isUndo?: boolean;
|
|
183
|
-
isRedo?: boolean;
|
|
184
|
-
action?: string;
|
|
185
|
-
inputMethod?: string;
|
|
186
|
-
sourceEvent?: unknown;
|
|
187
|
-
nodeContext?: string;
|
|
188
|
-
} & T;
|
|
189
|
-
|
|
190
|
-
// @public (undocumented)
|
|
191
|
-
type Request_2 = {
|
|
192
|
-
pos: number;
|
|
193
|
-
url: string;
|
|
194
|
-
appearance: CardAppearance;
|
|
195
|
-
compareLinkText: boolean;
|
|
196
|
-
source: CardReplacementInputMethod;
|
|
197
|
-
previousAppearance?: 'url' | CardAppearance;
|
|
198
|
-
analyticsAction?: ACTION;
|
|
199
|
-
shouldReplaceLink?: boolean;
|
|
200
|
-
sourceEvent?: UIAnalyticsEvent | null | undefined;
|
|
201
|
-
};
|
|
202
|
-
export { Request_2 as Request };
|
|
203
|
-
|
|
204
|
-
// @public (undocumented)
|
|
205
|
-
type Subscriber<T> = (event: T) => void;
|
|
206
|
-
|
|
207
|
-
// @public (undocumented)
|
|
208
|
-
type UpdateMetadata = {
|
|
209
|
-
previousDisplay?: string;
|
|
210
|
-
};
|
|
211
|
-
|
|
212
|
-
// (No @packageDocumentation comment for this package)
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
<!--SECTION END: Main Entry Types-->
|
|
216
|
-
|
|
217
|
-
### Peer Dependencies
|
|
218
|
-
|
|
219
|
-
<!--SECTION START: Peer Dependencies-->
|
|
220
|
-
|
|
221
|
-
```json
|
|
222
|
-
{
|
|
223
|
-
"@atlaskit/link-provider": "^1.6.2",
|
|
224
|
-
"react": "^16.8.0",
|
|
225
|
-
"react-intl": "npm:react-intl@^5.18.1"
|
|
226
|
-
}
|
|
227
|
-
```
|
|
228
|
-
|
|
229
|
-
<!--SECTION END: Peer Dependencies-->
|