@atlaskit/editor-plugin-extension 6.1.5 → 6.1.7
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 +14 -0
- package/dist/cjs/pm-plugins/toolbar.js +3 -1
- package/dist/es2019/pm-plugins/toolbar.js +3 -1
- package/dist/esm/pm-plugins/toolbar.js +3 -1
- package/dist/types/editor-actions/actions.d.ts +2 -2
- package/dist/types/pm-plugins/macro/actions.d.ts +1 -1
- package/dist/types/pm-plugins/main.d.ts +2 -2
- package/dist/types/pm-plugins/plugin-factory.d.ts +1 -1
- package/dist/types/pm-plugins/toDOM-fixes/bodiedExtension.d.ts +18 -18
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +11 -11
- package/dist/types/ui/ConfigPanel/ConfigPanelLoader.d.ts +0 -1
- package/dist/types/ui/ConfigPanel/FieldMessages.d.ts +4 -4
- package/dist/types/ui/ConfigPanel/Fields/ColorPicker.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/Fields/CustomSelect.d.ts +6 -6
- package/dist/types/ui/ConfigPanel/Fields/Date.d.ts +4 -4
- package/dist/types/ui/ConfigPanel/Fields/DateRange.d.ts +4 -5
- package/dist/types/ui/ConfigPanel/FormErrorBoundary.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/Header/HeaderAfterIconElement.d.ts +3 -3
- package/dist/types/ui/ConfigPanel/Header/HeaderIcon.d.ts +3 -3
- package/dist/types/ui/ConfigPanel/Header.d.ts +0 -1
- package/dist/types/ui/ConfigPanel/LoadingState.d.ts +0 -1
- package/dist/types-ts4.5/editor-actions/actions.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/macro/actions.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/main.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/plugin-factory.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/toDOM-fixes/bodiedExtension.d.ts +18 -18
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanel.d.ts +11 -11
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanelLoader.d.ts +0 -1
- package/dist/types-ts4.5/ui/ConfigPanel/FieldMessages.d.ts +4 -4
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/ColorPicker.d.ts +1 -1
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/CustomSelect.d.ts +6 -6
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Date.d.ts +4 -4
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/DateRange.d.ts +4 -5
- package/dist/types-ts4.5/ui/ConfigPanel/FormErrorBoundary.d.ts +1 -1
- package/dist/types-ts4.5/ui/ConfigPanel/Header/HeaderAfterIconElement.d.ts +3 -3
- package/dist/types-ts4.5/ui/ConfigPanel/Header/HeaderIcon.d.ts +3 -3
- package/dist/types-ts4.5/ui/ConfigPanel/Header.d.ts +0 -1
- package/dist/types-ts4.5/ui/ConfigPanel/LoadingState.d.ts +0 -1
- package/package.json +11 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-extension
|
|
2
2
|
|
|
3
|
+
## 6.1.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 6.1.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`1099388054638`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1099388054638) -
|
|
14
|
+
[ENGLHEALTH-32398] Extension edit button should not be a radio button
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 6.1.5
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -18,6 +18,7 @@ var _contentWidthWide = _interopRequireDefault(require("@atlaskit/icon/core/cont
|
|
|
18
18
|
var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
|
|
19
19
|
var _expandHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/expand-horizontal"));
|
|
20
20
|
var _editEditorEdit = _interopRequireDefault(require("@atlaskit/icon/core/migration/edit--editor-edit"));
|
|
21
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
21
22
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
22
23
|
var _actions = require("../editor-actions/actions");
|
|
23
24
|
var _commands = require("../editor-commands/commands");
|
|
@@ -202,7 +203,8 @@ var editButton = function editButton(formatMessage, extensionState, applyChangeT
|
|
|
202
203
|
title: formatMessage(_extensions.messages.edit),
|
|
203
204
|
tabIndex: null,
|
|
204
205
|
focusEditoronEnter: true,
|
|
205
|
-
disabled: isDisabled
|
|
206
|
+
disabled: isDisabled,
|
|
207
|
+
isRadioButton: (0, _expValEquals.expValEquals)('platform_editor_august_a11y', 'isEnabled', true) ? false : undefined
|
|
206
208
|
}];
|
|
207
209
|
if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
|
|
208
210
|
editButtonItems.push({
|
|
@@ -10,6 +10,7 @@ import ContentWidthWideIcon from '@atlaskit/icon/core/content-width-wide';
|
|
|
10
10
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
11
11
|
import ExpandHorizontalIcon from '@atlaskit/icon/core/expand-horizontal';
|
|
12
12
|
import EditIcon from '@atlaskit/icon/core/migration/edit--editor-edit';
|
|
13
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
14
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
14
15
|
import { editExtension } from '../editor-actions/actions';
|
|
15
16
|
import { removeDescendantNodes, removeExtension, updateExtensionLayout } from '../editor-commands/commands';
|
|
@@ -201,7 +202,8 @@ const editButton = (formatMessage, extensionState, applyChangeToContextPanel, ed
|
|
|
201
202
|
title: formatMessage(messages.edit),
|
|
202
203
|
tabIndex: null,
|
|
203
204
|
focusEditoronEnter: true,
|
|
204
|
-
disabled: isDisabled
|
|
205
|
+
disabled: isDisabled,
|
|
206
|
+
isRadioButton: expValEquals('platform_editor_august_a11y', 'isEnabled', true) ? false : undefined
|
|
205
207
|
}];
|
|
206
208
|
if (editorExperiment('platform_editor_controls', 'variant1')) {
|
|
207
209
|
editButtonItems.push({
|
|
@@ -11,6 +11,7 @@ import ContentWidthWideIcon from '@atlaskit/icon/core/content-width-wide';
|
|
|
11
11
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
12
12
|
import ExpandHorizontalIcon from '@atlaskit/icon/core/expand-horizontal';
|
|
13
13
|
import EditIcon from '@atlaskit/icon/core/migration/edit--editor-edit';
|
|
14
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
15
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
15
16
|
import { editExtension } from '../editor-actions/actions';
|
|
16
17
|
import { removeDescendantNodes, removeExtension, updateExtensionLayout } from '../editor-commands/commands';
|
|
@@ -196,7 +197,8 @@ var editButton = function editButton(formatMessage, extensionState, applyChangeT
|
|
|
196
197
|
title: formatMessage(messages.edit),
|
|
197
198
|
tabIndex: null,
|
|
198
199
|
focusEditoronEnter: true,
|
|
199
|
-
disabled: isDisabled
|
|
200
|
+
disabled: isDisabled,
|
|
201
|
+
isRadioButton: expValEquals('platform_editor_august_a11y', 'isEnabled', true) ? false : undefined
|
|
200
202
|
}];
|
|
201
203
|
if (editorExperiment('platform_editor_controls', 'variant1')) {
|
|
202
204
|
editButtonItems.push({
|
|
@@ -7,8 +7,8 @@ import type { Fragment, Mark, Node as PmNode, Schema } from '@atlaskit/editor-pr
|
|
|
7
7
|
import { type Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
8
8
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import type { InsertOrReplaceExtensionType } from '../extensionPluginType';
|
|
10
|
-
export declare const buildExtensionNode: <S extends Schema
|
|
11
|
-
export declare const performNodeUpdate: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (type:
|
|
10
|
+
export declare const buildExtensionNode: <S extends Schema>(type: "inlineExtension" | "extension" | "bodiedExtension" | "multiBodiedExtension", schema: S, attrs: object, content?: Fragment, marks?: readonly Mark[]) => PmNode;
|
|
11
|
+
export declare const performNodeUpdate: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (type: "inlineExtension" | "extension" | "bodiedExtension" | "multiBodiedExtension", newAttrs: object, content: Fragment, marks: readonly Mark[], shouldScrollIntoView: boolean) => Command;
|
|
12
12
|
export declare const editExtension: (macroProvider: MacroProvider | null | undefined, applyChangeToContextPanel: ApplyChangeHandler | undefined, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, updateExtension?: Promise<UpdateExtension<object> | void>) => Command;
|
|
13
13
|
type Props = {
|
|
14
14
|
editorViewRef: Record<'current', EditorView | null>;
|
|
@@ -6,4 +6,4 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
6
6
|
export declare const insertMacroFromMacroBrowser: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (macroProvider: MacroProvider, macroNode?: PmNode, isEditing?: boolean) => (view: EditorView) => Promise<boolean>;
|
|
7
7
|
export declare const resolveMacro: (macro?: MacroAttributes, state?: EditorState, optionalAttrs?: object) => PmNode | null;
|
|
8
8
|
export declare const runMacroAutoConvert: (state: EditorState, text: string) => PmNode | null;
|
|
9
|
-
export declare const setMacroProvider: (provider: Providers[
|
|
9
|
+
export declare const setMacroProvider: (provider: Providers["macroProvider"]) => (view: EditorView) => Promise<boolean>;
|
|
@@ -13,11 +13,11 @@ export declare const createExtensionProviderHandler: (view: EditorView) => (name
|
|
|
13
13
|
export declare const handleUpdate: ({ view, prevState, domAtPos, extensionHandlers, applyChange, }: {
|
|
14
14
|
view: EditorView;
|
|
15
15
|
prevState: EditorState;
|
|
16
|
-
domAtPos: EditorView[
|
|
16
|
+
domAtPos: EditorView["domAtPos"];
|
|
17
17
|
extensionHandlers: ExtensionHandlers;
|
|
18
18
|
applyChange: ApplyChangeHandler | undefined;
|
|
19
19
|
}) => true | undefined;
|
|
20
20
|
export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<ExtensionPlugin> | undefined, useLongPressSelection?: boolean, options?: {
|
|
21
21
|
appearance?: EditorAppearance;
|
|
22
22
|
getExtensionHeight?: GetPMNodeHeight;
|
|
23
|
-
}, featureFlags?: FeatureFlags, __rendererExtensionOptions?: ExtensionPluginOptions[
|
|
23
|
+
}, featureFlags?: FeatureFlags, __rendererExtensionOptions?: ExtensionPluginOptions["__rendererExtensionOptions"]) => SafePlugin<import("../extensionPluginType").ExtensionState>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ExtensionState } from '../extensionPluginType';
|
|
2
2
|
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: ExtensionState | ((state: import("prosemirror-state").EditorState) => ExtensionState)) => import("prosemirror-state").SafeStateField<ExtensionState>;
|
|
3
|
-
export declare const createCommand: <A = import("../extensionPluginType").ExtensionAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: (
|
|
3
|
+
export declare const createCommand: <A = import("../extensionPluginType").ExtensionAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: (tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) => import("@atlaskit/editor-common/types").Command;
|
|
4
4
|
export declare const getPluginState: (state: import("prosemirror-state").EditorState) => ExtensionState;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import type { DOMOutputSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare const bodiedExtensionSpecWithFixedToDOM: () => {
|
|
3
3
|
toDOM: (node: PMNode) => DOMOutputSpec;
|
|
4
|
-
content?: string
|
|
5
|
-
marks?: string
|
|
6
|
-
group?: string
|
|
7
|
-
inline?: boolean
|
|
8
|
-
atom?: boolean
|
|
4
|
+
content?: string;
|
|
5
|
+
marks?: string;
|
|
6
|
+
group?: string;
|
|
7
|
+
inline?: boolean;
|
|
8
|
+
atom?: boolean;
|
|
9
9
|
attrs?: {
|
|
10
10
|
[name: string]: import("prosemirror-model").AttributeSpec;
|
|
11
|
-
}
|
|
12
|
-
selectable?: boolean
|
|
13
|
-
draggable?: boolean
|
|
14
|
-
code?: boolean
|
|
15
|
-
whitespace?: "pre" | "normal"
|
|
16
|
-
definingAsContext?: boolean
|
|
17
|
-
definingForContent?: boolean
|
|
18
|
-
defining?: boolean
|
|
19
|
-
isolating?: boolean
|
|
20
|
-
parseDOM?: readonly import("prosemirror-model").TagParseRule[]
|
|
21
|
-
toDebugString?: (
|
|
22
|
-
leafText?: (
|
|
23
|
-
linebreakReplacement?: boolean
|
|
11
|
+
};
|
|
12
|
+
selectable?: boolean;
|
|
13
|
+
draggable?: boolean;
|
|
14
|
+
code?: boolean;
|
|
15
|
+
whitespace?: "pre" | "normal";
|
|
16
|
+
definingAsContext?: boolean;
|
|
17
|
+
definingForContent?: boolean;
|
|
18
|
+
defining?: boolean;
|
|
19
|
+
isolating?: boolean;
|
|
20
|
+
parseDOM?: readonly import("prosemirror-model").TagParseRule[];
|
|
21
|
+
toDebugString?: (node: PMNode) => string;
|
|
22
|
+
leafText?: (node: PMNode) => string;
|
|
23
|
+
linebreakReplacement?: boolean;
|
|
24
24
|
};
|
|
@@ -4,20 +4,20 @@ import type { ExtensionManifest, FieldDefinition, OnSaveCallback, OnSaveCallback
|
|
|
4
4
|
import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { ExtensionPlugin, RejectSave } from '../../extensionPluginType';
|
|
6
6
|
declare const result: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
7
|
-
extensionManifest?: ExtensionManifest
|
|
8
|
-
fields?: FieldDefinition[]
|
|
9
|
-
parameters?: Parameters
|
|
10
|
-
autoSaveTrigger?: (
|
|
11
|
-
autoSaveReject?: RejectSave
|
|
12
|
-
showHeader?: boolean
|
|
13
|
-
closeOnEsc?: boolean
|
|
7
|
+
extensionManifest?: ExtensionManifest;
|
|
8
|
+
fields?: FieldDefinition[];
|
|
9
|
+
parameters?: Parameters;
|
|
10
|
+
autoSaveTrigger?: () => void;
|
|
11
|
+
autoSaveReject?: RejectSave;
|
|
12
|
+
showHeader?: boolean;
|
|
13
|
+
closeOnEsc?: boolean;
|
|
14
14
|
onChange: OnSaveCallback | OnSaveCallbackAsync;
|
|
15
15
|
onCancel: () => void | Promise<void>;
|
|
16
16
|
errorMessage: string | null;
|
|
17
|
-
isLoading?: boolean
|
|
18
|
-
featureFlags?: FeatureFlags
|
|
17
|
+
isLoading?: boolean;
|
|
18
|
+
featureFlags?: FeatureFlags;
|
|
19
19
|
api: ExtractInjectionAPI<ExtensionPlugin> | undefined;
|
|
20
|
-
usingObjectSidebarPanel?: boolean
|
|
21
|
-
disableFields?: boolean
|
|
20
|
+
usingObjectSidebarPanel?: boolean;
|
|
21
|
+
disableFields?: boolean;
|
|
22
22
|
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>;
|
|
23
23
|
export default result;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
4
|
-
error?: string
|
|
5
|
-
description?: string
|
|
4
|
+
error?: string;
|
|
5
|
+
description?: string;
|
|
6
6
|
} & WrappedComponentProps>> & {
|
|
7
7
|
WrappedComponent: React.ComponentType<{
|
|
8
|
-
error?: string
|
|
9
|
-
description?: string
|
|
8
|
+
error?: string;
|
|
9
|
+
description?: string;
|
|
10
10
|
} & WrappedComponentProps>;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
|
@@ -15,6 +15,6 @@ declare const ColorPickerField: ({ name, field, onFieldChange, featureFlags, }:
|
|
|
15
15
|
name: string;
|
|
16
16
|
field: ColorField;
|
|
17
17
|
onFieldChange: OnFieldChange;
|
|
18
|
-
featureFlags?: FeatureFlags
|
|
18
|
+
featureFlags?: FeatureFlags;
|
|
19
19
|
}) => jsx.JSX.Element;
|
|
20
20
|
export default ColorPickerField;
|
|
@@ -7,18 +7,18 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
|
7
7
|
field: CustomField;
|
|
8
8
|
extensionManifest: ExtensionManifest;
|
|
9
9
|
onFieldChange: OnFieldChange;
|
|
10
|
-
autoFocus?: boolean
|
|
11
|
-
placeholder?: string
|
|
12
|
-
parameters?: Parameters
|
|
10
|
+
autoFocus?: boolean;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
parameters?: Parameters;
|
|
13
13
|
} & WrappedComponentProps>> & {
|
|
14
14
|
WrappedComponent: React.ComponentType<{
|
|
15
15
|
name: string;
|
|
16
16
|
field: CustomField;
|
|
17
17
|
extensionManifest: ExtensionManifest;
|
|
18
18
|
onFieldChange: OnFieldChange;
|
|
19
|
-
autoFocus?: boolean
|
|
20
|
-
placeholder?: string
|
|
21
|
-
parameters?: Parameters
|
|
19
|
+
autoFocus?: boolean;
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
parameters?: Parameters;
|
|
22
22
|
} & WrappedComponentProps>;
|
|
23
23
|
};
|
|
24
24
|
export default _default;
|
|
@@ -5,16 +5,16 @@ import type { OnFieldChange } from '../types';
|
|
|
5
5
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
6
6
|
name: string;
|
|
7
7
|
field: DateField;
|
|
8
|
-
autoFocus?: boolean
|
|
8
|
+
autoFocus?: boolean;
|
|
9
9
|
onFieldChange: OnFieldChange;
|
|
10
|
-
placeholder?: string
|
|
10
|
+
placeholder?: string;
|
|
11
11
|
} & WrappedComponentProps>> & {
|
|
12
12
|
WrappedComponent: React.ComponentType<{
|
|
13
13
|
name: string;
|
|
14
14
|
field: DateField;
|
|
15
|
-
autoFocus?: boolean
|
|
15
|
+
autoFocus?: boolean;
|
|
16
16
|
onFieldChange: OnFieldChange;
|
|
17
|
-
placeholder?: string
|
|
17
|
+
placeholder?: string;
|
|
18
18
|
} & WrappedComponentProps>;
|
|
19
19
|
};
|
|
20
20
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
2
|
import type { DateRangeField } from '@atlaskit/editor-common/extensions';
|
|
4
3
|
import type { OnFieldChange } from '../types';
|
|
@@ -6,15 +5,15 @@ declare const _default: import("react").FC<import("react-intl-next").WithIntlPro
|
|
|
6
5
|
name: string;
|
|
7
6
|
field: DateRangeField;
|
|
8
7
|
onFieldChange: OnFieldChange;
|
|
9
|
-
autoFocus?: boolean
|
|
10
|
-
placeholder?: string
|
|
8
|
+
autoFocus?: boolean;
|
|
9
|
+
placeholder?: string;
|
|
11
10
|
} & WrappedComponentProps>> & {
|
|
12
11
|
WrappedComponent: import("react").ComponentType<{
|
|
13
12
|
name: string;
|
|
14
13
|
field: DateRangeField;
|
|
15
14
|
onFieldChange: OnFieldChange;
|
|
16
|
-
autoFocus?: boolean
|
|
17
|
-
placeholder?: string
|
|
15
|
+
autoFocus?: boolean;
|
|
16
|
+
placeholder?: string;
|
|
18
17
|
} & WrappedComponentProps>;
|
|
19
18
|
};
|
|
20
19
|
export default _default;
|
|
@@ -13,6 +13,6 @@ export declare const FormErrorBoundaryImpl: React.FC<import("react-intl-next").W
|
|
|
13
13
|
WrappedComponent: React.ComponentType<Props & WithAnalyticsEventsProps & WrappedComponentProps>;
|
|
14
14
|
};
|
|
15
15
|
export declare const FormErrorBoundary: React.ForwardRefExoticComponent<Omit<Omit<Omit<Props & WithAnalyticsEventsProps & WrappedComponentProps, "intl"> & {
|
|
16
|
-
forwardedRef?: React.Ref<any
|
|
16
|
+
forwardedRef?: React.Ref<any>;
|
|
17
17
|
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>;
|
|
18
18
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const _default: (props: {
|
|
3
|
-
extensionProvider: import("@atlaskit/editor-common/extensions").ExtensionProvider
|
|
4
|
-
extensionType:
|
|
5
|
-
extensionKey:
|
|
3
|
+
extensionProvider: import("@atlaskit/editor-common/extensions").ExtensionProvider;
|
|
4
|
+
extensionType: import("@atlaskit/editor-common/extensions").ExtensionType;
|
|
5
|
+
extensionKey: import("@atlaskit/editor-common/extensions").ExtensionKey;
|
|
6
6
|
}) => React.JSX.Element | null;
|
|
7
7
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const _default: (props: {
|
|
3
|
-
extensionProvider: import("@atlaskit/editor-common/extensions").ExtensionProvider
|
|
4
|
-
extensionType:
|
|
5
|
-
extensionKey:
|
|
3
|
+
extensionProvider: import("@atlaskit/editor-common/extensions").ExtensionProvider;
|
|
4
|
+
extensionType: import("@atlaskit/editor-common/extensions").ExtensionType;
|
|
5
|
+
extensionKey: import("@atlaskit/editor-common/extensions").ExtensionKey;
|
|
6
6
|
}) => React.JSX.Element | null;
|
|
7
7
|
export default _default;
|
|
@@ -7,8 +7,8 @@ import type { Fragment, Mark, Node as PmNode, Schema } from '@atlaskit/editor-pr
|
|
|
7
7
|
import { type Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
8
8
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import type { InsertOrReplaceExtensionType } from '../extensionPluginType';
|
|
10
|
-
export declare const buildExtensionNode: <S extends Schema
|
|
11
|
-
export declare const performNodeUpdate: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (type:
|
|
10
|
+
export declare const buildExtensionNode: <S extends Schema>(type: "inlineExtension" | "extension" | "bodiedExtension" | "multiBodiedExtension", schema: S, attrs: object, content?: Fragment, marks?: readonly Mark[]) => PmNode;
|
|
11
|
+
export declare const performNodeUpdate: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (type: "inlineExtension" | "extension" | "bodiedExtension" | "multiBodiedExtension", newAttrs: object, content: Fragment, marks: readonly Mark[], shouldScrollIntoView: boolean) => Command;
|
|
12
12
|
export declare const editExtension: (macroProvider: MacroProvider | null | undefined, applyChangeToContextPanel: ApplyChangeHandler | undefined, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, updateExtension?: Promise<UpdateExtension<object> | void>) => Command;
|
|
13
13
|
type Props = {
|
|
14
14
|
editorViewRef: Record<'current', EditorView | null>;
|
|
@@ -6,4 +6,4 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
6
6
|
export declare const insertMacroFromMacroBrowser: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (macroProvider: MacroProvider, macroNode?: PmNode, isEditing?: boolean) => (view: EditorView) => Promise<boolean>;
|
|
7
7
|
export declare const resolveMacro: (macro?: MacroAttributes, state?: EditorState, optionalAttrs?: object) => PmNode | null;
|
|
8
8
|
export declare const runMacroAutoConvert: (state: EditorState, text: string) => PmNode | null;
|
|
9
|
-
export declare const setMacroProvider: (provider: Providers[
|
|
9
|
+
export declare const setMacroProvider: (provider: Providers["macroProvider"]) => (view: EditorView) => Promise<boolean>;
|
|
@@ -13,11 +13,11 @@ export declare const createExtensionProviderHandler: (view: EditorView) => (name
|
|
|
13
13
|
export declare const handleUpdate: ({ view, prevState, domAtPos, extensionHandlers, applyChange, }: {
|
|
14
14
|
view: EditorView;
|
|
15
15
|
prevState: EditorState;
|
|
16
|
-
domAtPos: EditorView[
|
|
16
|
+
domAtPos: EditorView["domAtPos"];
|
|
17
17
|
extensionHandlers: ExtensionHandlers;
|
|
18
18
|
applyChange: ApplyChangeHandler | undefined;
|
|
19
19
|
}) => true | undefined;
|
|
20
20
|
export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<ExtensionPlugin> | undefined, useLongPressSelection?: boolean, options?: {
|
|
21
21
|
appearance?: EditorAppearance;
|
|
22
22
|
getExtensionHeight?: GetPMNodeHeight;
|
|
23
|
-
}, featureFlags?: FeatureFlags, __rendererExtensionOptions?: ExtensionPluginOptions[
|
|
23
|
+
}, featureFlags?: FeatureFlags, __rendererExtensionOptions?: ExtensionPluginOptions["__rendererExtensionOptions"]) => SafePlugin<import("../extensionPluginType").ExtensionState>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ExtensionState } from '../extensionPluginType';
|
|
2
2
|
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: ExtensionState | ((state: import("prosemirror-state").EditorState) => ExtensionState)) => import("prosemirror-state").SafeStateField<ExtensionState>;
|
|
3
|
-
export declare const createCommand: <A = import("../extensionPluginType").ExtensionAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: (
|
|
3
|
+
export declare const createCommand: <A = import("../extensionPluginType").ExtensionAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: (tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) => import("@atlaskit/editor-common/types").Command;
|
|
4
4
|
export declare const getPluginState: (state: import("prosemirror-state").EditorState) => ExtensionState;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import type { DOMOutputSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare const bodiedExtensionSpecWithFixedToDOM: () => {
|
|
3
3
|
toDOM: (node: PMNode) => DOMOutputSpec;
|
|
4
|
-
content?: string
|
|
5
|
-
marks?: string
|
|
6
|
-
group?: string
|
|
7
|
-
inline?: boolean
|
|
8
|
-
atom?: boolean
|
|
4
|
+
content?: string;
|
|
5
|
+
marks?: string;
|
|
6
|
+
group?: string;
|
|
7
|
+
inline?: boolean;
|
|
8
|
+
atom?: boolean;
|
|
9
9
|
attrs?: {
|
|
10
10
|
[name: string]: import("prosemirror-model").AttributeSpec;
|
|
11
|
-
}
|
|
12
|
-
selectable?: boolean
|
|
13
|
-
draggable?: boolean
|
|
14
|
-
code?: boolean
|
|
15
|
-
whitespace?: "pre" | "normal"
|
|
16
|
-
definingAsContext?: boolean
|
|
17
|
-
definingForContent?: boolean
|
|
18
|
-
defining?: boolean
|
|
19
|
-
isolating?: boolean
|
|
20
|
-
parseDOM?: readonly import("prosemirror-model").TagParseRule[]
|
|
21
|
-
toDebugString?: (
|
|
22
|
-
leafText?: (
|
|
23
|
-
linebreakReplacement?: boolean
|
|
11
|
+
};
|
|
12
|
+
selectable?: boolean;
|
|
13
|
+
draggable?: boolean;
|
|
14
|
+
code?: boolean;
|
|
15
|
+
whitespace?: "pre" | "normal";
|
|
16
|
+
definingAsContext?: boolean;
|
|
17
|
+
definingForContent?: boolean;
|
|
18
|
+
defining?: boolean;
|
|
19
|
+
isolating?: boolean;
|
|
20
|
+
parseDOM?: readonly import("prosemirror-model").TagParseRule[];
|
|
21
|
+
toDebugString?: (node: PMNode) => string;
|
|
22
|
+
leafText?: (node: PMNode) => string;
|
|
23
|
+
linebreakReplacement?: boolean;
|
|
24
24
|
};
|
|
@@ -4,20 +4,20 @@ import type { ExtensionManifest, FieldDefinition, OnSaveCallback, OnSaveCallback
|
|
|
4
4
|
import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { ExtensionPlugin, RejectSave } from '../../extensionPluginType';
|
|
6
6
|
declare const result: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
7
|
-
extensionManifest?: ExtensionManifest
|
|
8
|
-
fields?: FieldDefinition[]
|
|
9
|
-
parameters?: Parameters
|
|
10
|
-
autoSaveTrigger?: (
|
|
11
|
-
autoSaveReject?: RejectSave
|
|
12
|
-
showHeader?: boolean
|
|
13
|
-
closeOnEsc?: boolean
|
|
7
|
+
extensionManifest?: ExtensionManifest;
|
|
8
|
+
fields?: FieldDefinition[];
|
|
9
|
+
parameters?: Parameters;
|
|
10
|
+
autoSaveTrigger?: () => void;
|
|
11
|
+
autoSaveReject?: RejectSave;
|
|
12
|
+
showHeader?: boolean;
|
|
13
|
+
closeOnEsc?: boolean;
|
|
14
14
|
onChange: OnSaveCallback | OnSaveCallbackAsync;
|
|
15
15
|
onCancel: () => void | Promise<void>;
|
|
16
16
|
errorMessage: string | null;
|
|
17
|
-
isLoading?: boolean
|
|
18
|
-
featureFlags?: FeatureFlags
|
|
17
|
+
isLoading?: boolean;
|
|
18
|
+
featureFlags?: FeatureFlags;
|
|
19
19
|
api: ExtractInjectionAPI<ExtensionPlugin> | undefined;
|
|
20
|
-
usingObjectSidebarPanel?: boolean
|
|
21
|
-
disableFields?: boolean
|
|
20
|
+
usingObjectSidebarPanel?: boolean;
|
|
21
|
+
disableFields?: boolean;
|
|
22
22
|
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>;
|
|
23
23
|
export default result;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
4
|
-
error?: string
|
|
5
|
-
description?: string
|
|
4
|
+
error?: string;
|
|
5
|
+
description?: string;
|
|
6
6
|
} & WrappedComponentProps>> & {
|
|
7
7
|
WrappedComponent: React.ComponentType<{
|
|
8
|
-
error?: string
|
|
9
|
-
description?: string
|
|
8
|
+
error?: string;
|
|
9
|
+
description?: string;
|
|
10
10
|
} & WrappedComponentProps>;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
|
@@ -15,6 +15,6 @@ declare const ColorPickerField: ({ name, field, onFieldChange, featureFlags, }:
|
|
|
15
15
|
name: string;
|
|
16
16
|
field: ColorField;
|
|
17
17
|
onFieldChange: OnFieldChange;
|
|
18
|
-
featureFlags?: FeatureFlags
|
|
18
|
+
featureFlags?: FeatureFlags;
|
|
19
19
|
}) => jsx.JSX.Element;
|
|
20
20
|
export default ColorPickerField;
|
|
@@ -7,18 +7,18 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
|
7
7
|
field: CustomField;
|
|
8
8
|
extensionManifest: ExtensionManifest;
|
|
9
9
|
onFieldChange: OnFieldChange;
|
|
10
|
-
autoFocus?: boolean
|
|
11
|
-
placeholder?: string
|
|
12
|
-
parameters?: Parameters
|
|
10
|
+
autoFocus?: boolean;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
parameters?: Parameters;
|
|
13
13
|
} & WrappedComponentProps>> & {
|
|
14
14
|
WrappedComponent: React.ComponentType<{
|
|
15
15
|
name: string;
|
|
16
16
|
field: CustomField;
|
|
17
17
|
extensionManifest: ExtensionManifest;
|
|
18
18
|
onFieldChange: OnFieldChange;
|
|
19
|
-
autoFocus?: boolean
|
|
20
|
-
placeholder?: string
|
|
21
|
-
parameters?: Parameters
|
|
19
|
+
autoFocus?: boolean;
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
parameters?: Parameters;
|
|
22
22
|
} & WrappedComponentProps>;
|
|
23
23
|
};
|
|
24
24
|
export default _default;
|
|
@@ -5,16 +5,16 @@ import type { OnFieldChange } from '../types';
|
|
|
5
5
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
6
6
|
name: string;
|
|
7
7
|
field: DateField;
|
|
8
|
-
autoFocus?: boolean
|
|
8
|
+
autoFocus?: boolean;
|
|
9
9
|
onFieldChange: OnFieldChange;
|
|
10
|
-
placeholder?: string
|
|
10
|
+
placeholder?: string;
|
|
11
11
|
} & WrappedComponentProps>> & {
|
|
12
12
|
WrappedComponent: React.ComponentType<{
|
|
13
13
|
name: string;
|
|
14
14
|
field: DateField;
|
|
15
|
-
autoFocus?: boolean
|
|
15
|
+
autoFocus?: boolean;
|
|
16
16
|
onFieldChange: OnFieldChange;
|
|
17
|
-
placeholder?: string
|
|
17
|
+
placeholder?: string;
|
|
18
18
|
} & WrappedComponentProps>;
|
|
19
19
|
};
|
|
20
20
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
2
|
import type { DateRangeField } from '@atlaskit/editor-common/extensions';
|
|
4
3
|
import type { OnFieldChange } from '../types';
|
|
@@ -6,15 +5,15 @@ declare const _default: import("react").FC<import("react-intl-next").WithIntlPro
|
|
|
6
5
|
name: string;
|
|
7
6
|
field: DateRangeField;
|
|
8
7
|
onFieldChange: OnFieldChange;
|
|
9
|
-
autoFocus?: boolean
|
|
10
|
-
placeholder?: string
|
|
8
|
+
autoFocus?: boolean;
|
|
9
|
+
placeholder?: string;
|
|
11
10
|
} & WrappedComponentProps>> & {
|
|
12
11
|
WrappedComponent: import("react").ComponentType<{
|
|
13
12
|
name: string;
|
|
14
13
|
field: DateRangeField;
|
|
15
14
|
onFieldChange: OnFieldChange;
|
|
16
|
-
autoFocus?: boolean
|
|
17
|
-
placeholder?: string
|
|
15
|
+
autoFocus?: boolean;
|
|
16
|
+
placeholder?: string;
|
|
18
17
|
} & WrappedComponentProps>;
|
|
19
18
|
};
|
|
20
19
|
export default _default;
|
|
@@ -13,6 +13,6 @@ export declare const FormErrorBoundaryImpl: React.FC<import("react-intl-next").W
|
|
|
13
13
|
WrappedComponent: React.ComponentType<Props & WithAnalyticsEventsProps & WrappedComponentProps>;
|
|
14
14
|
};
|
|
15
15
|
export declare const FormErrorBoundary: React.ForwardRefExoticComponent<Omit<Omit<Omit<Props & WithAnalyticsEventsProps & WrappedComponentProps, "intl"> & {
|
|
16
|
-
forwardedRef?: React.Ref<any
|
|
16
|
+
forwardedRef?: React.Ref<any>;
|
|
17
17
|
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>;
|
|
18
18
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const _default: (props: {
|
|
3
|
-
extensionProvider: import("@atlaskit/editor-common/extensions").ExtensionProvider
|
|
4
|
-
extensionType:
|
|
5
|
-
extensionKey:
|
|
3
|
+
extensionProvider: import("@atlaskit/editor-common/extensions").ExtensionProvider;
|
|
4
|
+
extensionType: import("@atlaskit/editor-common/extensions").ExtensionType;
|
|
5
|
+
extensionKey: import("@atlaskit/editor-common/extensions").ExtensionKey;
|
|
6
6
|
}) => React.JSX.Element | null;
|
|
7
7
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const _default: (props: {
|
|
3
|
-
extensionProvider: import("@atlaskit/editor-common/extensions").ExtensionProvider
|
|
4
|
-
extensionType:
|
|
5
|
-
extensionKey:
|
|
3
|
+
extensionProvider: import("@atlaskit/editor-common/extensions").ExtensionProvider;
|
|
4
|
+
extensionType: import("@atlaskit/editor-common/extensions").ExtensionType;
|
|
5
|
+
extensionKey: import("@atlaskit/editor-common/extensions").ExtensionKey;
|
|
6
6
|
}) => React.JSX.Element | null;
|
|
7
7
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.7",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@atlaskit/adf-schema": "^50.2.0",
|
|
28
|
-
"@atlaskit/adf-utils": "^19.
|
|
28
|
+
"@atlaskit/adf-utils": "^19.21.0",
|
|
29
29
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
30
30
|
"@atlaskit/avatar": "^25.1.0",
|
|
31
|
-
"@atlaskit/button": "^23.
|
|
31
|
+
"@atlaskit/button": "^23.4.0",
|
|
32
32
|
"@atlaskit/checkbox": "^17.1.0",
|
|
33
33
|
"@atlaskit/datetime-picker": "^17.0.0",
|
|
34
34
|
"@atlaskit/editor-json-transformer": "^8.25.0",
|
|
@@ -40,25 +40,25 @@
|
|
|
40
40
|
"@atlaskit/editor-plugin-feature-flags": "^2.0.0",
|
|
41
41
|
"@atlaskit/editor-plugin-width": "^4.0.0",
|
|
42
42
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
43
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
43
|
+
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
44
44
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
45
45
|
"@atlaskit/empty-state": "^10.1.0",
|
|
46
|
-
"@atlaskit/form": "^12.
|
|
46
|
+
"@atlaskit/form": "^12.1.0",
|
|
47
47
|
"@atlaskit/heading": "^5.2.0",
|
|
48
|
-
"@atlaskit/icon": "^27.
|
|
48
|
+
"@atlaskit/icon": "^27.12.0",
|
|
49
49
|
"@atlaskit/link": "^3.2.0",
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
51
51
|
"@atlaskit/primitives": "^14.11.0",
|
|
52
|
-
"@atlaskit/radio": "^8.
|
|
52
|
+
"@atlaskit/radio": "^8.2.0",
|
|
53
53
|
"@atlaskit/section-message": "^8.5.0",
|
|
54
54
|
"@atlaskit/select": "^21.2.0",
|
|
55
|
-
"@atlaskit/smart-user-picker": "^8.
|
|
55
|
+
"@atlaskit/smart-user-picker": "^8.1.0",
|
|
56
56
|
"@atlaskit/spinner": "^19.0.0",
|
|
57
57
|
"@atlaskit/tabs": "^18.1.0",
|
|
58
58
|
"@atlaskit/textarea": "^8.0.0",
|
|
59
59
|
"@atlaskit/textfield": "^8.0.0",
|
|
60
60
|
"@atlaskit/theme": "^19.0.0",
|
|
61
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
61
|
+
"@atlaskit/tmp-editor-statsig": "^10.0.0",
|
|
62
62
|
"@atlaskit/toggle": "^15.1.0",
|
|
63
63
|
"@atlaskit/tokens": "^6.0.0",
|
|
64
64
|
"@atlaskit/tooltip": "^20.4.0",
|
|
@@ -72,13 +72,12 @@
|
|
|
72
72
|
"uuid": "^3.1.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@atlaskit/editor-common": "^107.
|
|
75
|
+
"@atlaskit/editor-common": "^107.25.0",
|
|
76
76
|
"react": "^18.2.0",
|
|
77
77
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"react-select": "^5.4.0"
|
|
81
|
-
"typescript": "~5.4.2"
|
|
80
|
+
"react-select": "^5.4.0"
|
|
82
81
|
},
|
|
83
82
|
"techstack": {
|
|
84
83
|
"@atlassian/frontend": {
|