@atlaskit/editor-plugin-card 1.14.3 → 1.14.5
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 +17 -0
- package/dist/cjs/nodeviews/datasource.js +1 -0
- package/dist/cjs/nodeviews/inlineCardWithAwareness.js +4 -1
- package/dist/cjs/ui/AwarenessWrapper/index.js +20 -18
- package/dist/cjs/ui/DatasourceModal/index.js +4 -5
- package/dist/cjs/ui/InlineCardOverlay/index.js +9 -3
- package/dist/cjs/ui/{NewInlineCardOverlay → LeftIconOverlay}/index.js +60 -101
- package/dist/cjs/ui/ResizableEmbedCard.js +3 -0
- package/dist/es2019/nodeviews/datasource.js +1 -0
- package/dist/es2019/nodeviews/inlineCardWithAwareness.js +4 -1
- package/dist/es2019/ui/AwarenessWrapper/index.js +20 -18
- package/dist/es2019/ui/DatasourceModal/index.js +4 -5
- package/dist/es2019/ui/InlineCardOverlay/index.js +9 -3
- package/dist/es2019/ui/{NewInlineCardOverlay → LeftIconOverlay}/index.js +51 -94
- package/dist/es2019/ui/ResizableEmbedCard.js +4 -0
- package/dist/esm/nodeviews/datasource.js +1 -0
- package/dist/esm/nodeviews/inlineCardWithAwareness.js +4 -1
- package/dist/esm/ui/AwarenessWrapper/index.js +20 -18
- package/dist/esm/ui/DatasourceModal/index.js +4 -5
- package/dist/esm/ui/InlineCardOverlay/index.js +9 -3
- package/dist/esm/ui/{NewInlineCardOverlay → LeftIconOverlay}/index.js +62 -103
- package/dist/esm/ui/ResizableEmbedCard.js +3 -0
- package/dist/types/analytics/utils.d.ts +3 -3
- package/dist/types/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types/pm-plugins/util/state.d.ts +2 -2
- package/dist/types/ui/EditorAnalyticsContext.d.ts +1 -1
- package/dist/types/ui/LeftIconOverlay/index.d.ts +10 -0
- package/dist/types-ts4.5/analytics/utils.d.ts +3 -3
- package/dist/types-ts4.5/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/util/state.d.ts +2 -2
- package/dist/types-ts4.5/ui/EditorAnalyticsContext.d.ts +1 -1
- package/dist/types-ts4.5/ui/LeftIconOverlay/index.d.ts +10 -0
- package/package.json +5 -4
- package/dist/types/ui/NewInlineCardOverlay/index.d.ts +0 -6
- package/dist/types-ts4.5/ui/NewInlineCardOverlay/index.d.ts +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { ReadonlyTransaction, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import { Entity, EVENT_SUBJECT } from './types';
|
|
1
|
+
import { type Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { type ReadonlyTransaction, type Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import { type Entity, EVENT_SUBJECT } from './types';
|
|
4
4
|
export declare function isDatasourceNode(node: Node): boolean;
|
|
5
5
|
/**
|
|
6
6
|
* Determine if a node is considered to be a link
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EditorState, ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import { CardPluginState, Request } from '../../types';
|
|
1
|
+
import { type EditorState, type ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import { type CardPluginState, type Request } from '../../types';
|
|
3
3
|
export declare const getPluginState: (editorState: EditorState) => CardPluginState | undefined;
|
|
4
4
|
export declare const getPluginStateWithUpdatedPos: (pluginState: CardPluginState, tr: ReadonlyTransaction) => {
|
|
5
5
|
requests: {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
export type LeftIconOverlayProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
5
|
+
isSelected?: boolean;
|
|
6
|
+
isVisible?: boolean;
|
|
7
|
+
testId?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const LeftIconOverlay: ({ children, isSelected, isVisible, testId, ...props }: React.PropsWithChildren<LeftIconOverlayProps>) => jsx.JSX.Element;
|
|
10
|
+
export default LeftIconOverlay;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { ReadonlyTransaction, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import { Entity, EVENT_SUBJECT } from './types';
|
|
1
|
+
import { type Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { type ReadonlyTransaction, type Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import { type Entity, EVENT_SUBJECT } from './types';
|
|
4
4
|
export declare function isDatasourceNode(node: Node): boolean;
|
|
5
5
|
/**
|
|
6
6
|
* Determine if a node is considered to be a link
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EditorState, ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import { CardPluginState, Request } from '../../types';
|
|
1
|
+
import { type EditorState, type ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import { type CardPluginState, type Request } from '../../types';
|
|
3
3
|
export declare const getPluginState: (editorState: EditorState) => CardPluginState | undefined;
|
|
4
4
|
export declare const getPluginStateWithUpdatedPos: (pluginState: CardPluginState, tr: ReadonlyTransaction) => {
|
|
5
5
|
requests: {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
export type LeftIconOverlayProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
5
|
+
isSelected?: boolean;
|
|
6
|
+
isVisible?: boolean;
|
|
7
|
+
testId?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const LeftIconOverlay: ({ children, isSelected, isVisible, testId, ...props }: React.PropsWithChildren<LeftIconOverlayProps>) => jsx.JSX.Element;
|
|
10
|
+
export default LeftIconOverlay;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.5",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
".": "./src/index.ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/adf-schema": "^36.
|
|
35
|
+
"@atlaskit/adf-schema": "^36.10.7",
|
|
36
36
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
37
37
|
"@atlaskit/custom-steps": "^0.2.0",
|
|
38
|
-
"@atlaskit/editor-common": "^
|
|
38
|
+
"@atlaskit/editor-common": "^81.1.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^1.2.0",
|
|
40
40
|
"@atlaskit/editor-plugin-decorations": "^1.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-editor-viewmode": "^1.1.0",
|
|
@@ -55,9 +55,10 @@
|
|
|
55
55
|
"@atlaskit/linking-types": "^8.9.0",
|
|
56
56
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
57
57
|
"@atlaskit/primitives": "^6.3.0",
|
|
58
|
-
"@atlaskit/smart-card": "^
|
|
58
|
+
"@atlaskit/smart-card": "^27.1.0",
|
|
59
59
|
"@atlaskit/theme": "^12.8.0",
|
|
60
60
|
"@atlaskit/tokens": "^1.49.0",
|
|
61
|
+
"@atlaskit/tooltip": "^18.4.0",
|
|
61
62
|
"@babel/runtime": "^7.0.0",
|
|
62
63
|
"@emotion/react": "^11.7.1",
|
|
63
64
|
"lodash": "^4.17.21",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
|
-
import type { InlineCardOverlayProps } from '../InlineCardOverlay/types';
|
|
5
|
-
declare const NarrowInlineCardOverlay: ({ children, isSelected, isVisible, testId, url, ...props }: React.PropsWithChildren<InlineCardOverlayProps>) => jsx.JSX.Element;
|
|
6
|
-
export default NarrowInlineCardOverlay;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
|
-
import type { InlineCardOverlayProps } from '../InlineCardOverlay/types';
|
|
5
|
-
declare const NarrowInlineCardOverlay: ({ children, isSelected, isVisible, testId, url, ...props }: React.PropsWithChildren<InlineCardOverlayProps>) => jsx.JSX.Element;
|
|
6
|
-
export default NarrowInlineCardOverlay;
|