@atlaskit/editor-core 185.5.7 → 185.6.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 +10 -0
- package/dist/cjs/plugins/card/pm-plugins/actions.js +14 -2
- package/dist/cjs/plugins/card/pm-plugins/doc.js +34 -2
- package/dist/cjs/plugins/card/pm-plugins/main.js +1 -0
- package/dist/cjs/plugins/card/pm-plugins/reducers.js +8 -0
- package/dist/cjs/plugins/card/styles.js +2 -1
- package/dist/cjs/plugins/card/toolbar.js +53 -1
- package/dist/cjs/plugins/card/ui/DatasourceModal.js +41 -0
- package/dist/cjs/plugins/card/ui/EditLinkToolbar.js +45 -2
- package/dist/cjs/plugins/card/ui/SmallerEditIcon.js +20 -0
- package/dist/cjs/plugins/card/ui/styled.js +5 -3
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/plugins/card/pm-plugins/actions.js +6 -0
- package/dist/es2019/plugins/card/pm-plugins/doc.js +34 -1
- package/dist/es2019/plugins/card/pm-plugins/main.js +1 -0
- package/dist/es2019/plugins/card/pm-plugins/reducers.js +9 -0
- package/dist/es2019/plugins/card/styles.js +23 -2
- package/dist/es2019/plugins/card/toolbar.js +54 -2
- package/dist/es2019/plugins/card/ui/DatasourceModal.js +30 -0
- package/dist/es2019/plugins/card/ui/EditLinkToolbar.js +43 -1
- package/dist/es2019/plugins/card/ui/SmallerEditIcon.js +11 -0
- package/dist/es2019/plugins/card/ui/styled.js +3 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/plugins/card/pm-plugins/actions.js +10 -0
- package/dist/esm/plugins/card/pm-plugins/doc.js +32 -1
- package/dist/esm/plugins/card/pm-plugins/main.js +1 -0
- package/dist/esm/plugins/card/pm-plugins/reducers.js +8 -0
- package/dist/esm/plugins/card/styles.js +4 -3
- package/dist/esm/plugins/card/toolbar.js +54 -2
- package/dist/esm/plugins/card/ui/DatasourceModal.js +31 -0
- package/dist/esm/plugins/card/ui/EditLinkToolbar.js +42 -1
- package/dist/esm/plugins/card/ui/SmallerEditIcon.js +11 -0
- package/dist/esm/plugins/card/ui/styled.js +3 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/plugins/card/pm-plugins/actions.d.ts +2 -0
- package/dist/types/plugins/card/pm-plugins/doc.d.ts +3 -0
- package/dist/types/plugins/card/pm-plugins/util/state.d.ts +1 -0
- package/dist/types/plugins/card/types.d.ts +8 -1
- package/dist/types/plugins/card/ui/DatasourceModal.d.ts +13 -0
- package/dist/types/plugins/card/ui/EditLinkToolbar.d.ts +8 -1
- package/dist/types/plugins/card/ui/SmallerEditIcon.d.ts +3 -0
- package/dist/types/plugins/card/ui/styled.d.ts +1 -0
- package/dist/types-ts4.5/plugins/card/pm-plugins/actions.d.ts +2 -0
- package/dist/types-ts4.5/plugins/card/pm-plugins/doc.d.ts +3 -0
- package/dist/types-ts4.5/plugins/card/pm-plugins/util/state.d.ts +1 -0
- package/dist/types-ts4.5/plugins/card/types.d.ts +8 -1
- package/dist/types-ts4.5/plugins/card/ui/DatasourceModal.d.ts +13 -0
- package/dist/types-ts4.5/plugins/card/ui/EditLinkToolbar.d.ts +8 -1
- package/dist/types-ts4.5/plugins/card/ui/SmallerEditIcon.d.ts +3 -0
- package/dist/types-ts4.5/plugins/card/ui/styled.d.ts +1 -0
- package/package.json +5 -5
|
@@ -101,6 +101,7 @@ export type CardPluginState = {
|
|
|
101
101
|
smartLinkEventsNext?: SmartLinkEventsNext;
|
|
102
102
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
103
103
|
editorAppearance?: EditorAppearance;
|
|
104
|
+
showDatasourceModal: boolean;
|
|
104
105
|
datasourceTableRef?: HTMLElement;
|
|
105
106
|
layout?: DatasourceTableLayout;
|
|
106
107
|
};
|
|
@@ -133,6 +134,12 @@ export type ShowLinkToolbar = {
|
|
|
133
134
|
export type HideLinkToolbar = {
|
|
134
135
|
type: 'HIDE_LINK_TOOLBAR';
|
|
135
136
|
};
|
|
137
|
+
export type ShowDatasourceModal = {
|
|
138
|
+
type: 'SHOW_DATASOURCE_MODAL';
|
|
139
|
+
};
|
|
140
|
+
export type HideDatasourceModal = {
|
|
141
|
+
type: 'HIDE_DATASOURCE_MODAL';
|
|
142
|
+
};
|
|
136
143
|
export type RegisterSmartCardEvents = {
|
|
137
144
|
type: 'REGISTER_EVENTS';
|
|
138
145
|
smartLinkEvents: SmartLinkEvents;
|
|
@@ -154,6 +161,6 @@ export type SetCardLayoutAndDatasourceTableRef = {
|
|
|
154
161
|
layout: DatasourceTableLayout;
|
|
155
162
|
datasourceTableRef?: HTMLElement;
|
|
156
163
|
};
|
|
157
|
-
export type CardPluginAction = SetProvider | Queue | Resolve | Register | ShowLinkToolbar | HideLinkToolbar | RegisterSmartCardEvents | RegisterSmartCardEventsNext | SetDatasourceTableRef | SetCardLayout | SetCardLayoutAndDatasourceTableRef;
|
|
164
|
+
export type CardPluginAction = SetProvider | Queue | Resolve | Register | ShowLinkToolbar | HideLinkToolbar | ShowDatasourceModal | HideDatasourceModal | RegisterSmartCardEvents | RegisterSmartCardEventsNext | SetDatasourceTableRef | SetCardLayout | SetCardLayoutAndDatasourceTableRef;
|
|
158
165
|
export type CardReplacementInputMethod = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.AUTO_DETECT | INPUT_METHOD.FORMATTING | INPUT_METHOD.MANUAL | INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.FLOATING_TB;
|
|
159
166
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Node } from 'prosemirror-model';
|
|
3
|
+
import { EditorState } from 'prosemirror-state';
|
|
4
|
+
import { EditorView } from 'prosemirror-view';
|
|
5
|
+
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
6
|
+
type DatasourceModalProps = {
|
|
7
|
+
state: EditorState;
|
|
8
|
+
view: EditorView;
|
|
9
|
+
node: Node<any>;
|
|
10
|
+
editorAnalyticsApi?: EditorAnalyticsAPI;
|
|
11
|
+
};
|
|
12
|
+
export declare const DatasourceModal: ({ state, view, node, }: DatasourceModalProps) => JSX.Element | null;
|
|
13
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { EditorView } from 'prosemirror-view';
|
|
3
2
|
import { Node } from 'prosemirror-model';
|
|
3
|
+
import { EditorState } from 'prosemirror-state';
|
|
4
|
+
import { EditorView } from 'prosemirror-view';
|
|
4
5
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
6
|
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
6
7
|
import type { LinkPickerOptions } from '@atlaskit/editor-common/types';
|
|
@@ -39,3 +40,9 @@ export declare const buildEditLinkToolbar: ({ providerFactory, node, linkPicker,
|
|
|
39
40
|
pluginInjectionApi: ExtractInjectionAPI<typeof cardPlugin> | undefined;
|
|
40
41
|
}) => FloatingToolbarItem<Command>;
|
|
41
42
|
export declare const editLinkToolbarConfig: (showLinkingToolbar: boolean, lpLinkPicker: boolean) => Partial<FloatingToolbarConfig>;
|
|
43
|
+
export declare const editDatasource: (editorAnalyticsApi: EditorAnalyticsAPI | undefined) => Command;
|
|
44
|
+
export declare const openDatasourceModal: ({ state, node, editorAnalyticsApi, }: {
|
|
45
|
+
state: EditorState;
|
|
46
|
+
node: Node<any>;
|
|
47
|
+
editorAnalyticsApi?: EditorAnalyticsAPI | undefined;
|
|
48
|
+
}) => FloatingToolbarItem<Command>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "185.
|
|
3
|
+
"version": "185.6.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@atlaskit/code": "^14.6.0",
|
|
50
50
|
"@atlaskit/date": "^0.10.0",
|
|
51
51
|
"@atlaskit/datetime-picker": "^12.7.0",
|
|
52
|
-
"@atlaskit/editor-common": "^74.
|
|
52
|
+
"@atlaskit/editor-common": "^74.12.0",
|
|
53
53
|
"@atlaskit/editor-json-transformer": "^8.9.0",
|
|
54
54
|
"@atlaskit/editor-markdown-transformer": "^5.2.0",
|
|
55
55
|
"@atlaskit/editor-palette": "1.5.1",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@atlaskit/icon": "^21.12.0",
|
|
71
71
|
"@atlaskit/icon-object": "^6.3.0",
|
|
72
72
|
"@atlaskit/link-analytics": "^8.1.0",
|
|
73
|
-
"@atlaskit/link-datasource": "^0.
|
|
73
|
+
"@atlaskit/link-datasource": "^0.26.0",
|
|
74
74
|
"@atlaskit/link-picker": "^1.25.0",
|
|
75
75
|
"@atlaskit/locale": "^2.5.0",
|
|
76
76
|
"@atlaskit/logo": "^13.14.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"@atlaskit/radio": "^5.6.0",
|
|
91
91
|
"@atlaskit/section-message": "^6.4.0",
|
|
92
92
|
"@atlaskit/select": "^16.5.0",
|
|
93
|
-
"@atlaskit/smart-card": "^26.
|
|
93
|
+
"@atlaskit/smart-card": "^26.8.0",
|
|
94
94
|
"@atlaskit/smart-user-picker": "^6.1.0",
|
|
95
95
|
"@atlaskit/spinner": "^15.5.0",
|
|
96
96
|
"@atlaskit/status": "^1.3.0",
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
"@atlaskit/menu": "^1.9.0",
|
|
172
172
|
"@atlaskit/page-layout": "^1.7.0",
|
|
173
173
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
174
|
-
"@atlaskit/renderer": "^108.
|
|
174
|
+
"@atlaskit/renderer": "^108.5.0",
|
|
175
175
|
"@atlaskit/section-message": "^6.4.0",
|
|
176
176
|
"@atlaskit/share": "*",
|
|
177
177
|
"@atlaskit/smart-user-picker": "^6.1.0",
|