@atlaskit/editor-common 78.9.4 → 78.10.1
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/extensibility/Extension/InlineExtension/index.js +6 -2
- package/dist/cjs/extensibility/ExtensionComponent.js +2 -1
- package/dist/cjs/extensibility/ExtensionNodeWrapper.js +19 -2
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +21 -7
- package/dist/cjs/extensibility/MultiBodiedExtension/styles.js +17 -4
- package/dist/cjs/extensibility/extensionNodeView.js +2 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/extensibility/Extension/InlineExtension/index.js +7 -3
- package/dist/es2019/extensibility/ExtensionComponent.js +2 -1
- package/dist/es2019/extensibility/ExtensionNodeWrapper.js +20 -2
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +22 -8
- package/dist/es2019/extensibility/MultiBodiedExtension/styles.js +16 -14
- package/dist/es2019/extensibility/extensionNodeView.js +2 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/extensibility/Extension/InlineExtension/index.js +7 -3
- package/dist/esm/extensibility/ExtensionComponent.js +2 -1
- package/dist/esm/extensibility/ExtensionNodeWrapper.js +18 -2
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +22 -8
- package/dist/esm/extensibility/MultiBodiedExtension/styles.js +17 -3
- package/dist/esm/extensibility/extensionNodeView.js +2 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/extensibility/ExtensionNodeWrapper.d.ts +5 -1
- package/dist/types/extensibility/MultiBodiedExtension/index.d.ts +1 -0
- package/dist/types/preset/plugin-injection-api.d.ts +1 -1
- package/dist/types/types/feature-flags.d.ts +16 -0
- package/dist/types-ts4.5/extensibility/ExtensionNodeWrapper.d.ts +5 -1
- package/dist/types-ts4.5/extensibility/MultiBodiedExtension/index.d.ts +1 -0
- package/dist/types-ts4.5/preset/plugin-injection-api.d.ts +2 -2
- package/dist/types-ts4.5/types/feature-flags.d.ts +16 -0
- package/package.json +3 -3
- package/tsconfig.json +0 -1043
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "78.
|
|
9
|
+
var packageVersion = "78.10.1";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
17
17
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
18
18
|
import Layer from '../Layer';
|
|
19
19
|
var packageName = "@atlaskit/editor-common";
|
|
20
|
-
var packageVersion = "78.
|
|
20
|
+
var packageVersion = "78.10.1";
|
|
21
21
|
var halfFocusRing = 1;
|
|
22
22
|
var dropOffset = '0, 8';
|
|
23
23
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
1
2
|
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
2
4
|
type Props = {
|
|
3
5
|
children: React.ReactNode;
|
|
4
6
|
nodeType: string;
|
|
7
|
+
showMacroInteractionDesignUpdates?: boolean;
|
|
5
8
|
};
|
|
6
9
|
/**
|
|
7
10
|
* If inlineExtension, add zero width space to the end of the nodes and wrap with span;
|
|
11
|
+
* Also if showMacroInteractionDesignUpdates is true, then add the inline-block style to account for the lozenge.
|
|
8
12
|
* else wrap with a div (for multi bodied extensions)
|
|
9
13
|
*
|
|
10
14
|
* @param param0
|
|
11
15
|
* @returns
|
|
12
16
|
*/
|
|
13
|
-
export declare const ExtensionNodeWrapper: ({ children, nodeType }: Props) => JSX.Element;
|
|
17
|
+
export declare const ExtensionNodeWrapper: ({ children, nodeType, showMacroInteractionDesignUpdates, }: Props) => jsx.JSX.Element;
|
|
14
18
|
export {};
|
|
@@ -19,6 +19,7 @@ type Props = {
|
|
|
19
19
|
pluginInjectionApi?: ExtensionsPluginInjectionAPI;
|
|
20
20
|
editorAppearance?: EditorAppearance;
|
|
21
21
|
showMacroInteractionDesignUpdates?: boolean;
|
|
22
|
+
isNodeSelected?: boolean;
|
|
22
23
|
};
|
|
23
24
|
declare const MultiBodiedExtension: (props: Props & OverflowShadowProps) => jsx.JSX.Element;
|
|
24
25
|
/**
|
|
@@ -39,7 +39,7 @@ export declare class EditorPluginInjectionAPI implements PluginInjectionAPIDefin
|
|
|
39
39
|
private commandsAPI;
|
|
40
40
|
private plugins;
|
|
41
41
|
constructor({ getEditorState, getEditorView }: PluginInjectionAPIProps);
|
|
42
|
-
api<T extends NextEditorPlugin<any, any>>(): import("../types/next-editor-plugin").PublicPluginAPI<[NextEditorPlugin<T extends import("../types/next-editor-plugin").NextEditorPluginFunctionOptionalConfigDefinition<infer Name extends string, any, any> ? Name : never, T extends NextEditorPlugin<any, infer
|
|
42
|
+
api<T extends NextEditorPlugin<any, any>>(): import("../types/next-editor-plugin").PublicPluginAPI<[NextEditorPlugin<T extends import("../types/next-editor-plugin").NextEditorPluginFunctionOptionalConfigDefinition<infer Name extends string, any, any> ? Name : never, T extends NextEditorPlugin<any, infer Metadata_1 extends import("../types/next-editor-plugin").NextEditorPluginMetadata> ? Metadata_1 : never>, ..."dependencies" extends keyof (T extends NextEditorPlugin<any, infer Metadata_1 extends import("../types/next-editor-plugin").NextEditorPluginMetadata> ? Metadata_1 : never) ? (T extends NextEditorPlugin<any, infer Metadata_1 extends import("../types/next-editor-plugin").NextEditorPluginMetadata> ? Metadata_1 : never)["dependencies"] extends (import("../types/next-editor-plugin").NextEditorPluginFunctionOptionalConfigDefinition<any, any, any> | import("../types/next-editor-plugin").OptionalPlugin<import("../types/next-editor-plugin").NextEditorPluginFunctionOptionalConfigDefinition<any, any, any>>)[] ? Exclude<(T extends NextEditorPlugin<any, infer Metadata_1 extends import("../types/next-editor-plugin").NextEditorPluginMetadata> ? Metadata_1 : never)["dependencies"], undefined> : [] : []]>;
|
|
43
43
|
onEditorViewUpdated: ({ newEditorState, oldEditorState, }: EditorStateDiff) => void;
|
|
44
44
|
onEditorPluginInitialized: (plugin: NextEditorPluginInitializedType) => void;
|
|
45
45
|
private addPlugin;
|
|
@@ -211,6 +211,14 @@ export type FeatureFlags = {
|
|
|
211
211
|
* @default false
|
|
212
212
|
*/
|
|
213
213
|
tableSelector?: boolean;
|
|
214
|
+
/**
|
|
215
|
+
* @description
|
|
216
|
+
* Enables table to scale in the same way as renderer
|
|
217
|
+
*
|
|
218
|
+
* @see https://product-fabric.atlassian.net/browse/ED-22364
|
|
219
|
+
* @default false
|
|
220
|
+
*/
|
|
221
|
+
tablePreserveWidth?: boolean;
|
|
214
222
|
/**
|
|
215
223
|
* @description
|
|
216
224
|
* Enables commenting on media
|
|
@@ -219,6 +227,14 @@ export type FeatureFlags = {
|
|
|
219
227
|
* @default false
|
|
220
228
|
*/
|
|
221
229
|
commentsOnMedia?: boolean;
|
|
230
|
+
/**
|
|
231
|
+
* @description
|
|
232
|
+
* Enables macro interaction visual updates
|
|
233
|
+
*
|
|
234
|
+
* @see https://product-fabric.atlassian.net/browse/PGXT-4910
|
|
235
|
+
* @default false
|
|
236
|
+
*/
|
|
237
|
+
macroInteractionUpdates?: boolean;
|
|
222
238
|
};
|
|
223
239
|
export type FeatureFlagKey = keyof FeatureFlags;
|
|
224
240
|
export type GetEditorFeatureFlags = () => FeatureFlags;
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
1
2
|
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
2
4
|
type Props = {
|
|
3
5
|
children: React.ReactNode;
|
|
4
6
|
nodeType: string;
|
|
7
|
+
showMacroInteractionDesignUpdates?: boolean;
|
|
5
8
|
};
|
|
6
9
|
/**
|
|
7
10
|
* If inlineExtension, add zero width space to the end of the nodes and wrap with span;
|
|
11
|
+
* Also if showMacroInteractionDesignUpdates is true, then add the inline-block style to account for the lozenge.
|
|
8
12
|
* else wrap with a div (for multi bodied extensions)
|
|
9
13
|
*
|
|
10
14
|
* @param param0
|
|
11
15
|
* @returns
|
|
12
16
|
*/
|
|
13
|
-
export declare const ExtensionNodeWrapper: ({ children, nodeType }: Props) => JSX.Element;
|
|
17
|
+
export declare const ExtensionNodeWrapper: ({ children, nodeType, showMacroInteractionDesignUpdates, }: Props) => jsx.JSX.Element;
|
|
14
18
|
export {};
|
|
@@ -19,6 +19,7 @@ type Props = {
|
|
|
19
19
|
pluginInjectionApi?: ExtensionsPluginInjectionAPI;
|
|
20
20
|
editorAppearance?: EditorAppearance;
|
|
21
21
|
showMacroInteractionDesignUpdates?: boolean;
|
|
22
|
+
isNodeSelected?: boolean;
|
|
22
23
|
};
|
|
23
24
|
declare const MultiBodiedExtension: (props: Props & OverflowShadowProps) => jsx.JSX.Element;
|
|
24
25
|
/**
|
|
@@ -40,8 +40,8 @@ export declare class EditorPluginInjectionAPI implements PluginInjectionAPIDefin
|
|
|
40
40
|
private plugins;
|
|
41
41
|
constructor({ getEditorState, getEditorView }: PluginInjectionAPIProps);
|
|
42
42
|
api<T extends NextEditorPlugin<any, any>>(): import("../types/next-editor-plugin").PublicPluginAPI<[
|
|
43
|
-
NextEditorPlugin<T extends import("../types/next-editor-plugin").NextEditorPluginFunctionOptionalConfigDefinition<infer Name extends string, any, any> ? Name : never, T extends NextEditorPlugin<any, infer
|
|
44
|
-
..."dependencies" extends keyof (T extends NextEditorPlugin<any, infer
|
|
43
|
+
NextEditorPlugin<T extends import("../types/next-editor-plugin").NextEditorPluginFunctionOptionalConfigDefinition<infer Name extends string, any, any> ? Name : never, T extends NextEditorPlugin<any, infer Metadata_1 extends import("../types/next-editor-plugin").NextEditorPluginMetadata> ? Metadata_1 : never>,
|
|
44
|
+
..."dependencies" extends keyof (T extends NextEditorPlugin<any, infer Metadata_1 extends import("../types/next-editor-plugin").NextEditorPluginMetadata> ? Metadata_1 : never) ? (T extends NextEditorPlugin<any, infer Metadata_1 extends import("../types/next-editor-plugin").NextEditorPluginMetadata> ? Metadata_1 : never)["dependencies"] extends (import("../types/next-editor-plugin").NextEditorPluginFunctionOptionalConfigDefinition<any, any, any> | import("../types/next-editor-plugin").OptionalPlugin<import("../types/next-editor-plugin").NextEditorPluginFunctionOptionalConfigDefinition<any, any, any>>)[] ? Exclude<(T extends NextEditorPlugin<any, infer Metadata_1 extends import("../types/next-editor-plugin").NextEditorPluginMetadata> ? Metadata_1 : never)["dependencies"], undefined> : [
|
|
45
45
|
] : [
|
|
46
46
|
]
|
|
47
47
|
]>;
|
|
@@ -211,6 +211,14 @@ export type FeatureFlags = {
|
|
|
211
211
|
* @default false
|
|
212
212
|
*/
|
|
213
213
|
tableSelector?: boolean;
|
|
214
|
+
/**
|
|
215
|
+
* @description
|
|
216
|
+
* Enables table to scale in the same way as renderer
|
|
217
|
+
*
|
|
218
|
+
* @see https://product-fabric.atlassian.net/browse/ED-22364
|
|
219
|
+
* @default false
|
|
220
|
+
*/
|
|
221
|
+
tablePreserveWidth?: boolean;
|
|
214
222
|
/**
|
|
215
223
|
* @description
|
|
216
224
|
* Enables commenting on media
|
|
@@ -219,6 +227,14 @@ export type FeatureFlags = {
|
|
|
219
227
|
* @default false
|
|
220
228
|
*/
|
|
221
229
|
commentsOnMedia?: boolean;
|
|
230
|
+
/**
|
|
231
|
+
* @description
|
|
232
|
+
* Enables macro interaction visual updates
|
|
233
|
+
*
|
|
234
|
+
* @see https://product-fabric.atlassian.net/browse/PGXT-4910
|
|
235
|
+
* @default false
|
|
236
|
+
*/
|
|
237
|
+
macroInteractionUpdates?: boolean;
|
|
222
238
|
};
|
|
223
239
|
export type FeatureFlagKey = keyof FeatureFlags;
|
|
224
240
|
export type GetEditorFeatureFlags = () => FeatureFlags;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "78.
|
|
3
|
+
"version": "78.10.1",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
95
|
"@atlaskit/activity-provider": "^2.4.0",
|
|
96
|
-
"@atlaskit/adf-schema": "^35.5.
|
|
96
|
+
"@atlaskit/adf-schema": "^35.5.2",
|
|
97
97
|
"@atlaskit/adf-utils": "^19.0.0",
|
|
98
98
|
"@atlaskit/analytics-listeners": "^8.9.0",
|
|
99
99
|
"@atlaskit/analytics-namespaced-context": "^6.9.0",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"@atlaskit/button": "^17.6.0",
|
|
103
103
|
"@atlaskit/code": "^15.1.0",
|
|
104
104
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
105
|
-
"@atlaskit/custom-steps": "^0.0.
|
|
105
|
+
"@atlaskit/custom-steps": "^0.0.14",
|
|
106
106
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
107
107
|
"@atlaskit/editor-palette": "1.5.2",
|
|
108
108
|
"@atlaskit/editor-prosemirror": "3.0.0",
|