@atlaskit/editor-plugin-card 0.1.0 → 0.1.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 CHANGED
@@ -1 +1,13 @@
1
1
  # @atlaskit/editor-plugin-card
2
+
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3fb20c4aeba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fb20c4aeba) - Add postinstall check to enforce internal peer dependencies
8
+
9
+ ## 0.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,15 +33,16 @@
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^26.1.0",
35
35
  "@atlaskit/analytics-next": "^9.1.0",
36
- "@atlaskit/editor-common": "^74.17.0",
36
+ "@atlaskit/editor-common": "^74.23.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^0.1.0",
38
38
  "@atlaskit/editor-plugin-decorations": "^0.1.0",
39
39
  "@atlaskit/editor-plugin-feature-flags": "^0.1.0",
40
40
  "@atlaskit/editor-plugin-floating-toolbar": "^0.2.0",
41
41
  "@atlaskit/editor-plugin-grid": "^0.1.0",
42
- "@atlaskit/editor-plugin-hyperlink": "^0.1.0",
42
+ "@atlaskit/editor-plugin-hyperlink": "^0.2.0",
43
43
  "@atlaskit/editor-plugin-width": "^0.1.0",
44
44
  "@atlaskit/editor-shared-styles": "^2.4.0",
45
+ "@atlaskit/enforce-peer-dependencies": "^1.0.1",
45
46
  "@atlaskit/icon": "^21.12.0",
46
47
  "@atlaskit/link-analytics": "^8.2.0",
47
48
  "@atlaskit/link-datasource": "^0.28.0",
@@ -122,5 +123,8 @@
122
123
  "platform.linking-platform.datasource-jira_issues": {
123
124
  "type": "boolean"
124
125
  }
126
+ },
127
+ "scripts": {
128
+ "postinstall": "npx enforce-peer-dependencies --internal-packages"
125
129
  }
126
130
  }
@@ -1,117 +0,0 @@
1
- ## API Report File for "@atlaskit/editor-plugin-card"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- import { ACTION } from '@atlaskit/editor-common/analytics';
8
- import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
9
- import { CardAppearance } from '@atlaskit/editor-common/provider-factory';
10
- import type { CardOptions } from '@atlaskit/editor-common/card';
11
- import type { CardPluginActions } from '@atlaskit/editor-common/card';
12
- import { CardProvider } from '@atlaskit/editor-common/provider-factory';
13
- import type { CardReplacementInputMethod } from '@atlaskit/editor-common/card';
14
- import type { DatasourceModalType } from '@atlaskit/editor-common/types';
15
- import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
16
- import type { EditorAppearance } from '@atlaskit/editor-common/types';
17
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
18
- import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
19
- import type { gridPlugin } from '@atlaskit/editor-plugin-grid';
20
- import type { hyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
21
- import type { LinkPickerOptions } from '@atlaskit/editor-common/types';
22
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
23
- import type { OptionalPlugin } from '@atlaskit/editor-common/types';
24
- import { SmartLinkEvents } from '@atlaskit/smart-card';
25
- import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
26
- import type { widthPlugin } from '@atlaskit/editor-plugin-width';
27
-
28
- // @public (undocumented)
29
- type CardInfo = {
30
- title?: string;
31
- url?: string;
32
- pos: number;
33
- };
34
-
35
- // @public (undocumented)
36
- export const cardPlugin: NextEditorPlugin<'card', {
37
- pluginConfiguration: CardPluginOptions;
38
- dependencies: [
39
- typeof featureFlagsPlugin,
40
- OptionalPlugin<typeof analyticsPlugin>,
41
- typeof widthPlugin,
42
- typeof decorationsPlugin,
43
- typeof gridPlugin,
44
- FloatingToolbarPlugin,
45
- typeof hyperlinkPlugin
46
- ];
47
- sharedState: CardPluginState | null;
48
- actions: CardPluginActions;
49
- }>;
50
-
51
- // @public (undocumented)
52
- type CardPluginOptions = CardOptions & {
53
- editorAppearance?: EditorAppearance;
54
- platform: 'mobile' | 'web';
55
- fullWidthMode?: boolean;
56
- linkPicker?: LinkPickerOptions;
57
- };
58
-
59
- // @public (undocumented)
60
- type CardPluginState = {
61
- requests: Request_2[];
62
- provider: CardProvider | null;
63
- cards: CardInfo[];
64
- showLinkingToolbar: boolean;
65
- smartLinkEvents?: SmartLinkEvents;
66
- smartLinkEventsNext?: SmartLinkEventsNext;
67
- editorAppearance?: EditorAppearance;
68
- showDatasourceModal: boolean;
69
- datasourceModalType?: DatasourceModalType;
70
- datasourceTableRef?: HTMLElement;
71
- layout?: DatasourceTableLayout;
72
- };
73
-
74
- // @public (undocumented)
75
- type DatasourceTableLayout = 'center' | 'full-width' | 'wide';
76
-
77
- // @public (undocumented)
78
- type Metadata_2<T = {}> = {
79
- url: string;
80
- display: string;
81
- isUndo?: boolean;
82
- isRedo?: boolean;
83
- action?: string;
84
- inputMethod?: string;
85
- sourceEvent?: unknown;
86
- nodeContext?: string;
87
- } & T;
88
-
89
- // @public (undocumented)
90
- type Request_2 = {
91
- pos: number;
92
- url: string;
93
- appearance: CardAppearance;
94
- compareLinkText: boolean;
95
- source: CardReplacementInputMethod;
96
- previousAppearance?: 'url' | CardAppearance;
97
- analyticsAction?: ACTION;
98
- shouldReplaceLink?: boolean;
99
- sourceEvent?: UIAnalyticsEvent | null | undefined;
100
- };
101
- export { Request_2 as Request }
102
-
103
- // @public (undocumented)
104
- type SmartLinkEventsNext = {
105
- created: (metadata: Metadata_2) => void;
106
- updated: (metadata: Metadata_2<UpdateMetadata>) => void;
107
- deleted: (metadata: Metadata_2) => void;
108
- };
109
-
110
- // @public (undocumented)
111
- type UpdateMetadata = {
112
- previousDisplay?: string;
113
- };
114
-
115
- // (No @packageDocumentation comment for this package)
116
-
117
- ```