@atlaskit/editor-plugin-card 0.13.4 → 0.13.6

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.
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Find a child element inside a ref.
3
+ */
4
+ export declare const getChildElement: (ref: React.RefObject<HTMLElement>, selector: string) => HTMLElement | null | undefined;
5
+ /**
6
+ * Get the available width of the inline card.
7
+ * (Mainly here to make the component unit testable.)
8
+ */
9
+ export declare const getInlineCardAvailableWidth: (startEl: HTMLElement, endEl: HTMLElement) => number;
10
+ /**
11
+ * Get max and min width of an overlay.
12
+ * (Mainly here to make the component unit testable.)
13
+ */
14
+ export declare const getOverlayWidths: (overlayEl: HTMLElement, labelEl: HTMLElement) => {
15
+ max: number;
16
+ min: number;
17
+ };
@@ -1,5 +1,6 @@
1
- export type InlineCardOverlayProps = {
2
- isToolbarOpen?: boolean;
1
+ /// <reference types="react" />
2
+ export type InlineCardOverlayProps = React.HTMLAttributes<HTMLSpanElement> & {
3
+ isSelected?: boolean;
3
4
  isVisible?: boolean;
4
5
  testId?: string;
5
6
  url: string;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Find a child element inside a ref.
3
+ */
4
+ export declare const getChildElement: (ref: React.RefObject<HTMLElement>, selector: string) => HTMLElement | null | undefined;
5
+ /**
6
+ * Get the available width of the inline card.
7
+ * (Mainly here to make the component unit testable.)
8
+ */
9
+ export declare const getInlineCardAvailableWidth: (startEl: HTMLElement, endEl: HTMLElement) => number;
10
+ /**
11
+ * Get max and min width of an overlay.
12
+ * (Mainly here to make the component unit testable.)
13
+ */
14
+ export declare const getOverlayWidths: (overlayEl: HTMLElement, labelEl: HTMLElement) => {
15
+ max: number;
16
+ min: number;
17
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "0.13.4",
3
+ "version": "0.13.6",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,9 +31,9 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/adf-schema": "^33.2.3",
34
+ "@atlaskit/adf-schema": "^34.0.0",
35
35
  "@atlaskit/analytics-next": "^9.1.0",
36
- "@atlaskit/custom-steps": "^0.0.3",
36
+ "@atlaskit/custom-steps": "^0.0.4",
37
37
  "@atlaskit/editor-common": "^76.22.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^0.3.0",
39
39
  "@atlaskit/editor-plugin-decorations": "^0.2.0",
@@ -45,14 +45,14 @@
45
45
  "@atlaskit/editor-prosemirror": "1.1.0",
46
46
  "@atlaskit/editor-shared-styles": "^2.8.0",
47
47
  "@atlaskit/frontend-utilities": "^2.7.0",
48
- "@atlaskit/icon": "^21.12.0",
48
+ "@atlaskit/icon": "^22.0.0",
49
49
  "@atlaskit/link-analytics": "^8.3.0",
50
50
  "@atlaskit/link-client-extension": "^1.8.0",
51
- "@atlaskit/link-datasource": "^1.17.0",
51
+ "@atlaskit/link-datasource": "^1.18.0",
52
52
  "@atlaskit/linking-common": "^4.18.0",
53
53
  "@atlaskit/linking-types": "^8.5.0",
54
54
  "@atlaskit/platform-feature-flags": "^0.2.0",
55
- "@atlaskit/primitives": "^1.9.0",
55
+ "@atlaskit/primitives": "^1.11.0",
56
56
  "@atlaskit/smart-card": "^26.42.0",
57
57
  "@atlaskit/theme": "^12.6.0",
58
58
  "@atlaskit/tokens": "^1.28.0",