@atlaskit/native-embeds-common 1.0.2 → 1.1.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 +13 -0
- package/dist/cjs/utils/constants.js +3 -1
- package/dist/es2019/utils/constants.js +3 -1
- package/dist/esm/utils/constants.js +3 -1
- package/dist/types/utils/constants.d.ts +3 -1
- package/dist/types/utils/types.d.ts +1 -0
- package/dist/types-ts4.5/utils/constants.d.ts +3 -0
- package/dist/types-ts4.5/utils/types.d.ts +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/native-embeds-common
|
|
2
2
|
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`7fe1914f87802`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7fe1914f87802) -
|
|
8
|
+
MAUI-463: Add expand (fullscreen preview) button to native embed editor floating toolbar. Removes
|
|
9
|
+
expand button from embed header for MAUI embeds (Infographic, Chart, Visualization) since it is
|
|
10
|
+
now in the editor toolbar.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 1.0.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -32,6 +32,8 @@ var BUILTIN_TOOLBAR_KEYS = exports.BUILTIN_TOOLBAR_KEYS = {
|
|
|
32
32
|
BORDER: 'border',
|
|
33
33
|
ALIGNMENT: 'alignment',
|
|
34
34
|
OPEN_IN_NEW_WINDOW: 'openInNewWindow',
|
|
35
|
+
/** Opens the embed's fullscreen preview dialog. */
|
|
36
|
+
EXPAND: 'expand',
|
|
35
37
|
EDIT_URL: 'editUrl',
|
|
36
38
|
ALWAYS_SHOW_TITLE: 'alwaysShowTitle',
|
|
37
39
|
SET_EMBED_TYPE: 'setEmbedType',
|
|
@@ -47,4 +49,4 @@ var BUILTIN_TOOLBAR_KEYS = exports.BUILTIN_TOOLBAR_KEYS = {
|
|
|
47
49
|
DELETE: 'delete',
|
|
48
50
|
SEPARATOR: 'separator'
|
|
49
51
|
};
|
|
50
|
-
var EDITOR_TOOLBAR_HANDLER_KEYS = exports.EDITOR_TOOLBAR_HANDLER_KEYS = ['onAlignmentClick', 'onAppearanceClick', 'onAskRovoClick', 'onSummariseClick', 'onChangeBorderClick', 'onCopyClick', 'onCopyLinkClick', 'onDeleteClick', 'onEditClick', 'onEditUrlClick', 'onOpenInNewWindowClick', 'onRefreshClick', 'onSetEmbedTypeClick', 'onShowTitleClick'];
|
|
52
|
+
var EDITOR_TOOLBAR_HANDLER_KEYS = exports.EDITOR_TOOLBAR_HANDLER_KEYS = ['onAlignmentClick', 'onAppearanceClick', 'onAskRovoClick', 'onSummariseClick', 'onChangeBorderClick', 'onCopyClick', 'onCopyLinkClick', 'onDeleteClick', 'onEditClick', 'onEditUrlClick', 'onExpandClick', 'onOpenInNewWindowClick', 'onRefreshClick', 'onSetEmbedTypeClick', 'onShowTitleClick'];
|
|
@@ -26,6 +26,8 @@ export const BUILTIN_TOOLBAR_KEYS = {
|
|
|
26
26
|
BORDER: 'border',
|
|
27
27
|
ALIGNMENT: 'alignment',
|
|
28
28
|
OPEN_IN_NEW_WINDOW: 'openInNewWindow',
|
|
29
|
+
/** Opens the embed's fullscreen preview dialog. */
|
|
30
|
+
EXPAND: 'expand',
|
|
29
31
|
EDIT_URL: 'editUrl',
|
|
30
32
|
ALWAYS_SHOW_TITLE: 'alwaysShowTitle',
|
|
31
33
|
SET_EMBED_TYPE: 'setEmbedType',
|
|
@@ -41,4 +43,4 @@ export const BUILTIN_TOOLBAR_KEYS = {
|
|
|
41
43
|
DELETE: 'delete',
|
|
42
44
|
SEPARATOR: 'separator'
|
|
43
45
|
};
|
|
44
|
-
export const EDITOR_TOOLBAR_HANDLER_KEYS = ['onAlignmentClick', 'onAppearanceClick', 'onAskRovoClick', 'onSummariseClick', 'onChangeBorderClick', 'onCopyClick', 'onCopyLinkClick', 'onDeleteClick', 'onEditClick', 'onEditUrlClick', 'onOpenInNewWindowClick', 'onRefreshClick', 'onSetEmbedTypeClick', 'onShowTitleClick'];
|
|
46
|
+
export const EDITOR_TOOLBAR_HANDLER_KEYS = ['onAlignmentClick', 'onAppearanceClick', 'onAskRovoClick', 'onSummariseClick', 'onChangeBorderClick', 'onCopyClick', 'onCopyLinkClick', 'onDeleteClick', 'onEditClick', 'onEditUrlClick', 'onExpandClick', 'onOpenInNewWindowClick', 'onRefreshClick', 'onSetEmbedTypeClick', 'onShowTitleClick'];
|
|
@@ -26,6 +26,8 @@ export var BUILTIN_TOOLBAR_KEYS = {
|
|
|
26
26
|
BORDER: 'border',
|
|
27
27
|
ALIGNMENT: 'alignment',
|
|
28
28
|
OPEN_IN_NEW_WINDOW: 'openInNewWindow',
|
|
29
|
+
/** Opens the embed's fullscreen preview dialog. */
|
|
30
|
+
EXPAND: 'expand',
|
|
29
31
|
EDIT_URL: 'editUrl',
|
|
30
32
|
ALWAYS_SHOW_TITLE: 'alwaysShowTitle',
|
|
31
33
|
SET_EMBED_TYPE: 'setEmbedType',
|
|
@@ -41,4 +43,4 @@ export var BUILTIN_TOOLBAR_KEYS = {
|
|
|
41
43
|
DELETE: 'delete',
|
|
42
44
|
SEPARATOR: 'separator'
|
|
43
45
|
};
|
|
44
|
-
export var EDITOR_TOOLBAR_HANDLER_KEYS = ['onAlignmentClick', 'onAppearanceClick', 'onAskRovoClick', 'onSummariseClick', 'onChangeBorderClick', 'onCopyClick', 'onCopyLinkClick', 'onDeleteClick', 'onEditClick', 'onEditUrlClick', 'onOpenInNewWindowClick', 'onRefreshClick', 'onSetEmbedTypeClick', 'onShowTitleClick'];
|
|
46
|
+
export var EDITOR_TOOLBAR_HANDLER_KEYS = ['onAlignmentClick', 'onAppearanceClick', 'onAskRovoClick', 'onSummariseClick', 'onChangeBorderClick', 'onCopyClick', 'onCopyLinkClick', 'onDeleteClick', 'onEditClick', 'onEditUrlClick', 'onExpandClick', 'onOpenInNewWindowClick', 'onRefreshClick', 'onSetEmbedTypeClick', 'onShowTitleClick'];
|
|
@@ -18,6 +18,8 @@ export declare const BUILTIN_TOOLBAR_KEYS: {
|
|
|
18
18
|
readonly BORDER: "border";
|
|
19
19
|
readonly ALIGNMENT: "alignment";
|
|
20
20
|
readonly OPEN_IN_NEW_WINDOW: "openInNewWindow";
|
|
21
|
+
/** Opens the embed's fullscreen preview dialog. */
|
|
22
|
+
readonly EXPAND: "expand";
|
|
21
23
|
readonly EDIT_URL: "editUrl";
|
|
22
24
|
readonly ALWAYS_SHOW_TITLE: "alwaysShowTitle";
|
|
23
25
|
readonly SET_EMBED_TYPE: "setEmbedType";
|
|
@@ -33,4 +35,4 @@ export declare const BUILTIN_TOOLBAR_KEYS: {
|
|
|
33
35
|
readonly DELETE: "delete";
|
|
34
36
|
readonly SEPARATOR: "separator";
|
|
35
37
|
};
|
|
36
|
-
export declare const EDITOR_TOOLBAR_HANDLER_KEYS: readonly ["onAlignmentClick", "onAppearanceClick", "onAskRovoClick", "onSummariseClick", "onChangeBorderClick", "onCopyClick", "onCopyLinkClick", "onDeleteClick", "onEditClick", "onEditUrlClick", "onOpenInNewWindowClick", "onRefreshClick", "onSetEmbedTypeClick", "onShowTitleClick"];
|
|
38
|
+
export declare const EDITOR_TOOLBAR_HANDLER_KEYS: readonly ["onAlignmentClick", "onAppearanceClick", "onAskRovoClick", "onSummariseClick", "onChangeBorderClick", "onCopyClick", "onCopyLinkClick", "onDeleteClick", "onEditClick", "onEditUrlClick", "onExpandClick", "onOpenInNewWindowClick", "onRefreshClick", "onSetEmbedTypeClick", "onShowTitleClick"];
|
|
@@ -93,6 +93,7 @@ export type EditorToolbarHandlers = Partial<{
|
|
|
93
93
|
onDeleteClick: EditorToolbarHandler;
|
|
94
94
|
onEditClick: EditorToolbarHandler;
|
|
95
95
|
onEditUrlClick: EditorToolbarHandler;
|
|
96
|
+
onExpandClick: EditorToolbarHandler;
|
|
96
97
|
onOpenInNewWindowClick: EditorToolbarHandler;
|
|
97
98
|
onRefreshClick: EditorToolbarHandler;
|
|
98
99
|
onSetEmbedTypeClick: EditorToolbarHandler;
|
|
@@ -24,6 +24,8 @@ export declare const BUILTIN_TOOLBAR_KEYS: {
|
|
|
24
24
|
readonly BORDER: "border";
|
|
25
25
|
readonly ALIGNMENT: "alignment";
|
|
26
26
|
readonly OPEN_IN_NEW_WINDOW: "openInNewWindow";
|
|
27
|
+
/** Opens the embed's fullscreen preview dialog. */
|
|
28
|
+
readonly EXPAND: "expand";
|
|
27
29
|
readonly EDIT_URL: "editUrl";
|
|
28
30
|
readonly ALWAYS_SHOW_TITLE: "alwaysShowTitle";
|
|
29
31
|
readonly SET_EMBED_TYPE: "setEmbedType";
|
|
@@ -50,6 +52,7 @@ export declare const EDITOR_TOOLBAR_HANDLER_KEYS: readonly [
|
|
|
50
52
|
"onDeleteClick",
|
|
51
53
|
"onEditClick",
|
|
52
54
|
"onEditUrlClick",
|
|
55
|
+
"onExpandClick",
|
|
53
56
|
"onOpenInNewWindowClick",
|
|
54
57
|
"onRefreshClick",
|
|
55
58
|
"onSetEmbedTypeClick",
|
|
@@ -94,6 +94,7 @@ export type EditorToolbarHandlers = Partial<{
|
|
|
94
94
|
onDeleteClick: EditorToolbarHandler;
|
|
95
95
|
onEditClick: EditorToolbarHandler;
|
|
96
96
|
onEditUrlClick: EditorToolbarHandler;
|
|
97
|
+
onExpandClick: EditorToolbarHandler;
|
|
97
98
|
onOpenInNewWindowClick: EditorToolbarHandler;
|
|
98
99
|
onRefreshClick: EditorToolbarHandler;
|
|
99
100
|
onSetEmbedTypeClick: EditorToolbarHandler;
|
package/package.json
CHANGED
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"atlaskit:src": "src/index.ts",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@atlaskit/button": "^23.11.0",
|
|
28
|
-
"@atlaskit/editor-common": "^114.
|
|
28
|
+
"@atlaskit/editor-common": "^114.12.0",
|
|
29
29
|
"@atlaskit/editor-plugin-local-id": "^8.0.0",
|
|
30
30
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
31
31
|
"@atlaskit/heading": "^5.4.0",
|
|
32
|
-
"@atlaskit/icon": "^34.
|
|
32
|
+
"@atlaskit/icon": "^34.3.0",
|
|
33
33
|
"@atlaskit/primitives": "^19.0.0",
|
|
34
34
|
"@atlaskit/tokens": "^13.0.0",
|
|
35
35
|
"@babel/runtime": "^7.0.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
"name": "@atlaskit/native-embeds-common",
|
|
89
|
-
"version": "1.0
|
|
89
|
+
"version": "1.1.0",
|
|
90
90
|
"description": "A shared package for native embeds to be used across experiences and plugin",
|
|
91
91
|
"author": "Atlassian Pty Ltd",
|
|
92
92
|
"license": "Apache-2.0",
|