@atlaskit/editor-plugin-card 0.3.0 → 0.3.2
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 +12 -0
- package/dist/cjs/pm-plugins/analytics/events-from-tr.js +3 -3
- package/dist/cjs/pm-plugins/doc.js +9 -9
- package/dist/cjs/pm-plugins/keymap.js +7 -7
- package/dist/cjs/pm-plugins/main.js +9 -9
- package/dist/cjs/pm-plugins/plugin-key.js +2 -2
- package/dist/cjs/toolbar.js +15 -15
- package/dist/cjs/ui/DatasourceModal/index.js +2 -2
- package/dist/cjs/ui/EditLinkToolbar.js +2 -2
- package/dist/cjs/ui/LayoutButton/utils.js +2 -2
- package/dist/cjs/ui/LinkToolbarAppearance.js +3 -3
- package/dist/cjs/ui/ResizableEmbedCard.js +4 -4
- package/dist/cjs/utils.js +2 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/pm-plugins/analytics/events-from-tr.js +1 -1
- package/dist/es2019/pm-plugins/doc.js +2 -2
- package/dist/es2019/pm-plugins/keymap.js +3 -3
- package/dist/es2019/pm-plugins/main.js +2 -2
- package/dist/es2019/pm-plugins/plugin-key.js +1 -1
- package/dist/es2019/toolbar.js +2 -2
- package/dist/es2019/ui/DatasourceModal/index.js +1 -1
- package/dist/es2019/ui/EditLinkToolbar.js +1 -1
- package/dist/es2019/ui/LayoutButton/utils.js +1 -1
- package/dist/es2019/ui/LinkToolbarAppearance.js +1 -1
- package/dist/es2019/ui/ResizableEmbedCard.js +1 -1
- package/dist/es2019/utils.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/pm-plugins/analytics/events-from-tr.js +1 -1
- package/dist/esm/pm-plugins/doc.js +2 -2
- package/dist/esm/pm-plugins/keymap.js +3 -3
- package/dist/esm/pm-plugins/main.js +2 -2
- package/dist/esm/pm-plugins/plugin-key.js +1 -1
- package/dist/esm/toolbar.js +2 -2
- package/dist/esm/ui/DatasourceModal/index.js +1 -1
- package/dist/esm/ui/EditLinkToolbar.js +1 -1
- package/dist/esm/ui/LayoutButton/utils.js +1 -1
- package/dist/esm/ui/LinkToolbarAppearance.js +1 -1
- package/dist/esm/ui/ResizableEmbedCard.js +1 -1
- package/dist/esm/utils.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/nodeviews/datasource.d.ts +2 -2
- package/dist/types/nodeviews/embedCard.d.ts +1 -1
- package/dist/types/nodeviews/genericCard.d.ts +2 -2
- package/dist/types/pm-plugins/actions.d.ts +1 -1
- package/dist/types/pm-plugins/analytics/events-from-tr.d.ts +1 -1
- package/dist/types/pm-plugins/analytics/types.d.ts +1 -1
- package/dist/types/pm-plugins/analytics/utils.d.ts +2 -2
- package/dist/types/pm-plugins/doc.d.ts +3 -3
- package/dist/types/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types/pm-plugins/shouldReplaceLink.d.ts +1 -1
- package/dist/types/pm-plugins/util/resolve.d.ts +1 -1
- package/dist/types/pm-plugins/util/state.d.ts +1 -1
- package/dist/types/ui/DatasourceModal/ModalWithState.d.ts +1 -1
- package/dist/types/ui/DatasourceModal/index.d.ts +1 -1
- package/dist/types/ui/EditLinkToolbar.d.ts +2 -2
- package/dist/types/ui/EditorAnalyticsContext.d.ts +1 -1
- package/dist/types/ui/EditorSmartCardEvents.d.ts +1 -1
- package/dist/types/ui/EditorSmartCardEventsNext.d.ts +1 -1
- package/dist/types/ui/HyperlinkToolbarAppearance.d.ts +2 -2
- package/dist/types/ui/LayoutButton/types.d.ts +1 -1
- package/dist/types/ui/LayoutButton/utils.d.ts +1 -1
- package/dist/types/ui/LinkToolbarAppearance.d.ts +2 -2
- package/dist/types/utils.d.ts +2 -2
- package/dist/types-ts4.5/nodeviews/datasource.d.ts +2 -2
- package/dist/types-ts4.5/nodeviews/embedCard.d.ts +1 -1
- package/dist/types-ts4.5/nodeviews/genericCard.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/actions.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/analytics/events-from-tr.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/analytics/types.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/analytics/utils.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/doc.d.ts +3 -3
- package/dist/types-ts4.5/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/shouldReplaceLink.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/util/resolve.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/util/state.d.ts +1 -1
- package/dist/types-ts4.5/ui/DatasourceModal/ModalWithState.d.ts +1 -1
- package/dist/types-ts4.5/ui/DatasourceModal/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/EditLinkToolbar.d.ts +2 -2
- package/dist/types-ts4.5/ui/EditorAnalyticsContext.d.ts +1 -1
- package/dist/types-ts4.5/ui/EditorSmartCardEvents.d.ts +1 -1
- package/dist/types-ts4.5/ui/EditorSmartCardEventsNext.d.ts +1 -1
- package/dist/types-ts4.5/ui/HyperlinkToolbarAppearance.d.ts +2 -2
- package/dist/types-ts4.5/ui/LayoutButton/types.d.ts +1 -1
- package/dist/types-ts4.5/ui/LayoutButton/utils.d.ts +1 -1
- package/dist/types-ts4.5/ui/LinkToolbarAppearance.d.ts +2 -2
- package/dist/types-ts4.5/utils.d.ts +2 -2
- package/package.json +4 -10
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { EditorView } from 'prosemirror-view';
|
|
3
2
|
import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { cardPlugin } from '../../plugin';
|
|
5
5
|
declare const ModalWithState: ({ api, editorView, }: {
|
|
6
6
|
api: ExtractInjectionAPI<typeof cardPlugin> | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { EditorView } from 'prosemirror-view';
|
|
3
2
|
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
3
|
import { DatasourceModalType } from '@atlaskit/editor-common/types';
|
|
4
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
type DatasourceModalProps = {
|
|
6
6
|
view: EditorView;
|
|
7
7
|
editorAnalyticsApi?: EditorAnalyticsAPI;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Node } from 'prosemirror-model';
|
|
3
|
-
import { EditorView } from 'prosemirror-view';
|
|
4
2
|
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
5
3
|
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
6
4
|
import { HyperlinkAddToolbarProps } from '@atlaskit/editor-common/link';
|
|
@@ -8,6 +6,8 @@ import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
|
8
6
|
import type { Command, ExtractInjectionAPI, FloatingToolbarConfig, FloatingToolbarItem, LinkInputType, LinkPickerOptions } from '@atlaskit/editor-common/types';
|
|
9
7
|
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
10
8
|
import type { ForceFocusSelector } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
9
|
+
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
10
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
11
11
|
import type { cardPlugin } from '../plugin';
|
|
12
12
|
interface InjectionAPI {
|
|
13
13
|
pluginInjectionApi: ExtractInjectionAPI<typeof cardPlugin> | undefined;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
import { EditorState } from 'prosemirror-state';
|
|
3
|
-
import { EditorView } from 'prosemirror-view';
|
|
4
2
|
import { IntlShape } from 'react-intl-next';
|
|
5
3
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
6
4
|
import { CardOptions } from '@atlaskit/editor-common/card';
|
|
7
5
|
import type { CardPluginActions } from '@atlaskit/editor-common/card';
|
|
8
6
|
import { CardProvider, ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
+
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
8
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import { CardPlatform } from '@atlaskit/smart-card';
|
|
10
10
|
export interface HyperlinkToolbarAppearanceProps {
|
|
11
11
|
intl: IntlShape;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EditorView } from 'prosemirror-view';
|
|
2
1
|
import { IntlShape } from 'react-intl-next';
|
|
3
2
|
import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { cardPlugin } from '../../index';
|
|
5
5
|
export type DatasourceTableLayout = 'full-width' | 'center' | 'wide';
|
|
6
6
|
export type LayoutButtonProps = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { EditorState } from 'prosemirror-state';
|
|
4
|
-
import { EditorView } from 'prosemirror-view';
|
|
5
3
|
import { IntlShape } from 'react-intl-next';
|
|
6
4
|
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
7
5
|
import { CardPluginActions } from '@atlaskit/editor-common/card';
|
|
8
6
|
import { CardAppearance } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
+
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
8
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import { CardContext } from '@atlaskit/link-provider';
|
|
10
10
|
import { CardPlatform } from '@atlaskit/smart-card';
|
|
11
11
|
export interface LinkToolbarAppearanceProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Node, NodeType } from 'prosemirror-model';
|
|
2
|
-
import { EditorState } from 'prosemirror-state';
|
|
3
1
|
import { CardAppearance } from '@atlaskit/editor-common/provider-factory';
|
|
2
|
+
import { Node, NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { CardInfo } from './types';
|
|
5
5
|
export declare const appearanceForNodeType: (spec: NodeType) => CardAppearance | undefined;
|
|
6
6
|
export declare const selectedCardAppearance: (state: EditorState) => CardAppearance | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,25 +41,19 @@
|
|
|
41
41
|
"@atlaskit/editor-plugin-grid": "^0.1.0",
|
|
42
42
|
"@atlaskit/editor-plugin-hyperlink": "^0.2.0",
|
|
43
43
|
"@atlaskit/editor-plugin-width": "^0.1.0",
|
|
44
|
+
"@atlaskit/editor-prosemirror": "1.0.2",
|
|
44
45
|
"@atlaskit/editor-shared-styles": "^2.5.0",
|
|
45
46
|
"@atlaskit/icon": "^21.12.0",
|
|
46
47
|
"@atlaskit/link-analytics": "^8.2.0",
|
|
47
|
-
"@atlaskit/link-datasource": "^0.
|
|
48
|
+
"@atlaskit/link-datasource": "^0.31.0",
|
|
48
49
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
49
|
-
"@atlaskit/smart-card": "^26.
|
|
50
|
+
"@atlaskit/smart-card": "^26.13.0",
|
|
50
51
|
"@atlaskit/theme": "^12.5.0",
|
|
51
52
|
"@atlaskit/tokens": "^1.13.0",
|
|
52
53
|
"@babel/runtime": "^7.0.0",
|
|
53
54
|
"@emotion/react": "^11.7.1",
|
|
54
55
|
"lodash": "^4.17.21",
|
|
55
56
|
"prop-types": "^15.5.10",
|
|
56
|
-
"prosemirror-history": "^1.1.3",
|
|
57
|
-
"prosemirror-keymap": "1.1.4",
|
|
58
|
-
"prosemirror-model": "1.16.0",
|
|
59
|
-
"prosemirror-state": "1.3.4",
|
|
60
|
-
"prosemirror-transform": "1.3.2",
|
|
61
|
-
"prosemirror-utils": "^1.0.0-0",
|
|
62
|
-
"prosemirror-view": "1.23.7",
|
|
63
57
|
"raf-schd": "^4.0.3"
|
|
64
58
|
},
|
|
65
59
|
"peerDependencies": {
|