@atlaskit/editor-plugin-extension 14.1.13 → 14.1.15

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.
Files changed (70) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/extensionPlugin/package.json +1 -8
  3. package/extensionPluginType/package.json +1 -8
  4. package/package.json +2 -2
  5. package/dist/types-ts4.5/editor-actions/actions.d.ts +0 -21
  6. package/dist/types-ts4.5/editor-commands/commands.d.ts +0 -17
  7. package/dist/types-ts4.5/entry-points/extensionPlugin.d.ts +0 -1
  8. package/dist/types-ts4.5/entry-points/extensionPluginType.d.ts +0 -1
  9. package/dist/types-ts4.5/extensionPlugin.d.ts +0 -2
  10. package/dist/types-ts4.5/extensionPluginType.d.ts +0 -109
  11. package/dist/types-ts4.5/index.d.ts +0 -2
  12. package/dist/types-ts4.5/nodeviews/lazyExtension.d.ts +0 -3
  13. package/dist/types-ts4.5/pm-plugins/extension-api.d.ts +0 -12
  14. package/dist/types-ts4.5/pm-plugins/keymap.d.ts +0 -3
  15. package/dist/types-ts4.5/pm-plugins/macro/actions.d.ts +0 -9
  16. package/dist/types-ts4.5/pm-plugins/macro/plugin-key.d.ts +0 -3
  17. package/dist/types-ts4.5/pm-plugins/macro/plugin.d.ts +0 -4
  18. package/dist/types-ts4.5/pm-plugins/macro/types.d.ts +0 -4
  19. package/dist/types-ts4.5/pm-plugins/main.d.ts +0 -24
  20. package/dist/types-ts4.5/pm-plugins/plugin-factory.d.ts +0 -7
  21. package/dist/types-ts4.5/pm-plugins/plugin-key.d.ts +0 -3
  22. package/dist/types-ts4.5/pm-plugins/reducer.d.ts +0 -2
  23. package/dist/types-ts4.5/pm-plugins/toDOM-fixes/bodiedExtension.d.ts +0 -29
  24. package/dist/types-ts4.5/pm-plugins/toolbar.d.ts +0 -37
  25. package/dist/types-ts4.5/pm-plugins/unique-id.d.ts +0 -3
  26. package/dist/types-ts4.5/pm-plugins/update-edit-button.d.ts +0 -3
  27. package/dist/types-ts4.5/pm-plugins/utils.d.ts +0 -37
  28. package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanel.d.ts +0 -23
  29. package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanelFieldsLoader.d.ts +0 -22
  30. package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanelLoader.d.ts +0 -5
  31. package/dist/types-ts4.5/ui/ConfigPanel/DescriptionSummary.d.ts +0 -7
  32. package/dist/types-ts4.5/ui/ConfigPanel/ErrorMessage/ErrorImage.d.ts +0 -7
  33. package/dist/types-ts4.5/ui/ConfigPanel/ErrorMessage/index.d.ts +0 -9
  34. package/dist/types-ts4.5/ui/ConfigPanel/FieldMessages.d.ts +0 -12
  35. package/dist/types-ts4.5/ui/ConfigPanel/Fields/Boolean.d.ts +0 -8
  36. package/dist/types-ts4.5/ui/ConfigPanel/Fields/CheckboxGroup.d.ts +0 -8
  37. package/dist/types-ts4.5/ui/ConfigPanel/Fields/ColorPicker.d.ts +0 -20
  38. package/dist/types-ts4.5/ui/ConfigPanel/Fields/CustomSelect.d.ts +0 -24
  39. package/dist/types-ts4.5/ui/ConfigPanel/Fields/Date.d.ts +0 -20
  40. package/dist/types-ts4.5/ui/ConfigPanel/Fields/DateRange.d.ts +0 -24
  41. package/dist/types-ts4.5/ui/ConfigPanel/Fields/Enum.d.ts +0 -10
  42. package/dist/types-ts4.5/ui/ConfigPanel/Fields/Expand.d.ts +0 -16
  43. package/dist/types-ts4.5/ui/ConfigPanel/Fields/Fieldset.d.ts +0 -22
  44. package/dist/types-ts4.5/ui/ConfigPanel/Fields/Number.d.ts +0 -10
  45. package/dist/types-ts4.5/ui/ConfigPanel/Fields/RadioGroup.d.ts +0 -8
  46. package/dist/types-ts4.5/ui/ConfigPanel/Fields/Select.d.ts +0 -11
  47. package/dist/types-ts4.5/ui/ConfigPanel/Fields/SelectItem.d.ts +0 -8
  48. package/dist/types-ts4.5/ui/ConfigPanel/Fields/String.d.ts +0 -10
  49. package/dist/types-ts4.5/ui/ConfigPanel/Fields/TabGroup.d.ts +0 -15
  50. package/dist/types-ts4.5/ui/ConfigPanel/Fields/UnhandledType.d.ts +0 -6
  51. package/dist/types-ts4.5/ui/ConfigPanel/Fields/UserSelect.d.ts +0 -10
  52. package/dist/types-ts4.5/ui/ConfigPanel/FormContent.d.ts +0 -4
  53. package/dist/types-ts4.5/ui/ConfigPanel/FormErrorBoundary.d.ts +0 -18
  54. package/dist/types-ts4.5/ui/ConfigPanel/Header/HeaderAfterIconElement.d.ts +0 -8
  55. package/dist/types-ts4.5/ui/ConfigPanel/Header/HeaderIcon.d.ts +0 -8
  56. package/dist/types-ts4.5/ui/ConfigPanel/Header.d.ts +0 -22
  57. package/dist/types-ts4.5/ui/ConfigPanel/HelpLink.d.ts +0 -7
  58. package/dist/types-ts4.5/ui/ConfigPanel/LoadingState.d.ts +0 -9
  59. package/dist/types-ts4.5/ui/ConfigPanel/NestedForms/RemovableField.d.ts +0 -17
  60. package/dist/types-ts4.5/ui/ConfigPanel/constants.d.ts +0 -4
  61. package/dist/types-ts4.5/ui/ConfigPanel/transformers.d.ts +0 -9
  62. package/dist/types-ts4.5/ui/ConfigPanel/types.d.ts +0 -40
  63. package/dist/types-ts4.5/ui/ConfigPanel/use-abortable-effect/index.d.ts +0 -16
  64. package/dist/types-ts4.5/ui/ConfigPanel/use-state-from-promise/index.d.ts +0 -18
  65. package/dist/types-ts4.5/ui/ConfigPanel/utils.d.ts +0 -16
  66. package/dist/types-ts4.5/ui/ConfigPanel/withExtensionManifest.d.ts +0 -9
  67. package/dist/types-ts4.5/ui/SaveIndicator/SaveIndicator.d.ts +0 -3
  68. package/dist/types-ts4.5/ui/SaveIndicator/types.d.ts +0 -11
  69. package/dist/types-ts4.5/ui/context-panel.d.ts +0 -15
  70. package/dist/types-ts4.5/ui/useConfigPanelPluginHook.d.ts +0 -29
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-plugin-extension
2
2
 
3
+ ## 14.1.15
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 14.1.14
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 14.1.13
4
16
 
5
17
  ### Patch Changes
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/extensionPlugin.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/extensionPlugin.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/extensionPlugin.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/extensionPluginType.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/extensionPluginType.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/extensionPluginType.d.ts"
17
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-extension",
3
- "version": "14.1.13",
3
+ "version": "14.1.15",
4
4
  "description": "editor-plugin-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -59,7 +59,7 @@
59
59
  "@atlaskit/tabs": "^19.1.0",
60
60
  "@atlaskit/textarea": "^8.3.0",
61
61
  "@atlaskit/textfield": "^8.3.0",
62
- "@atlaskit/tmp-editor-statsig": "^101.0.0",
62
+ "@atlaskit/tmp-editor-statsig": "^103.0.0",
63
63
  "@atlaskit/toggle": "^16.1.0",
64
64
  "@atlaskit/tokens": "^13.4.0",
65
65
  "@atlaskit/tooltip": "^22.6.0",
@@ -1,21 +0,0 @@
1
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import type { UpdateExtension } from '@atlaskit/editor-common/extensions';
3
- import type { MacroProvider } from '@atlaskit/editor-common/provider-factory';
4
- import type { Command } from '@atlaskit/editor-common/types';
5
- import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
6
- import type { Fragment, Mark, Node as PmNode, Schema } from '@atlaskit/editor-prosemirror/model';
7
- import { type Transaction } from '@atlaskit/editor-prosemirror/state';
8
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
9
- import type { InsertOrReplaceExtensionType } from '../extensionPluginType';
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
- export declare const editExtension: (macroProvider: MacroProvider | null | undefined, applyChangeToContextPanel: ApplyChangeHandler | undefined, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, updateExtension?: Promise<UpdateExtension<object> | void>) => Command;
13
- type Props = {
14
- applyChangeToContextPanel: ApplyChangeHandler | undefined;
15
- editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
16
- editorViewRef: Record<'current', EditorView | null>;
17
- };
18
- export declare const createEditSelectedExtensionAction: ({ editorViewRef, editorAnalyticsAPI, applyChangeToContextPanel }: Props) => () => boolean;
19
- export declare const insertOrReplaceExtension: ({ editorView, action, attrs, content, position, size, tr, }: InsertOrReplaceExtensionType) => Transaction;
20
- export declare const insertOrReplaceBodiedExtension: ({ editorView, action, attrs, content, position, size, tr, }: InsertOrReplaceExtensionType) => Transaction;
21
- export {};
@@ -1,17 +0,0 @@
1
- import type { ExtensionLayout } from '@atlaskit/adf-schema';
2
- import type { EditorAnalyticsAPI, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
3
- import type { Parameters, TransformAfter, TransformBefore } from '@atlaskit/editor-common/extensions';
4
- import type { Command } from '@atlaskit/editor-common/types';
5
- import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
6
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
7
- import { type EditorState, type Transaction } from '@atlaskit/editor-prosemirror/state';
8
- import type { ExtensionState, RejectSave } from '../extensionPluginType';
9
- export declare function updateState(state: Partial<ExtensionState>): Command;
10
- export declare function setEditingContextToContextPanel<T extends Parameters = Parameters>(processParametersBefore: TransformBefore<T>, processParametersAfter: TransformAfter<T>, applyChangeToContextPanel: ApplyChangeHandler | undefined): Command;
11
- export declare const clearEditingContext: (applyChangeToContextPanel: ApplyChangeHandler | undefined) => Command;
12
- export declare const forceAutoSave: (applyChangeToContextPanel: ApplyChangeHandler | undefined) => (resolve: () => void, reject?: RejectSave) => Command;
13
- export declare const updateExtensionLayout: (layout: ExtensionLayout, analyticsApi?: EditorAnalyticsAPI) => Command;
14
- export declare const removeExtension: (editorAnalyticsAPI?: EditorAnalyticsAPI, inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB) => Command;
15
- export declare const removeDescendantNodes: (sourceNode?: PMNode) => Command;
16
- export declare const removeSelectedNodeWithAnalytics: (state: EditorState, tr: Transaction, analyticsApi?: EditorAnalyticsAPI, inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB) => Transaction;
17
- export declare const checkAndRemoveExtensionNode: (state: EditorState, tr: Transaction, analyticsApi?: EditorAnalyticsAPI, inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB) => Transaction;
@@ -1 +0,0 @@
1
- export { extensionPlugin } from '../extensionPlugin';
@@ -1 +0,0 @@
1
- export type { CreateExtensionAPI, ExtensionPlugin, ExtensionPluginOptions, InsertOrReplaceExtensionType, RunMacroAutoConvert, RejectSave, ExtensionPluginDependencies, ExtensionState, ExtensionAction, ExtensionPluginActions, } from '../extensionPluginType';
@@ -1,2 +0,0 @@
1
- import type { ExtensionPlugin } from './extensionPluginType';
2
- export declare const extensionPlugin: ExtensionPlugin;
@@ -1,109 +0,0 @@
1
- import type { ADFEntity } from '@atlaskit/adf-utils/types';
2
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
- import type { GetPMNodeHeight } from '@atlaskit/editor-common/extensibility';
4
- import type { ExtensionAPI, ExtensionHandlers, ExtensionParams, ExtensionProvider, Parameters, TransformAfter, TransformBefore, UpdateExtension } from '@atlaskit/editor-common/extensions';
5
- import type { MacroProvider } from '@atlaskit/editor-common/provider-factory';
6
- import type { EditorAppearance, LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
7
- import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
8
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
9
- import type { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
10
- import type { ContextIdentifierPlugin } from '@atlaskit/editor-plugin-context-identifier';
11
- import type { ApplyChangeHandler, ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
12
- import type { CopyButtonPlugin } from '@atlaskit/editor-plugin-copy-button';
13
- import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
14
- import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
15
- import type { MentionsPlugin } from '@atlaskit/editor-plugin-mentions';
16
- import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
17
- import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
18
- import type { Fragment, Node as PmNode } from '@atlaskit/editor-prosemirror/model';
19
- import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
20
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
21
- import type { forceAutoSave } from './editor-commands/commands';
22
- export type RejectSave = (reason?: any) => void;
23
- export type ExtensionState<T extends Parameters = Parameters> = {
24
- autoSaveReject?: RejectSave;
25
- autoSaveResolve?: () => void;
26
- element?: HTMLElement;
27
- extensionProvider?: ExtensionProvider<T>;
28
- localId?: string;
29
- positions?: Record<number, number>;
30
- processParametersAfter?: TransformAfter<T>;
31
- processParametersBefore?: TransformBefore<T>;
32
- showContextPanel: boolean;
33
- showEditButton: boolean;
34
- updateExtension?: Promise<UpdateExtension<T> | void>;
35
- };
36
- export type ExtensionAction<T extends Parameters = Parameters> = {
37
- data: Partial<ExtensionState<T>>;
38
- type: 'UPDATE_STATE';
39
- };
40
- interface CreateExtensionAPIOptions {
41
- applyChange: ApplyChangeHandler | undefined;
42
- editInLegacyMacroBrowser?: () => void;
43
- editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
44
- editorView: EditorView;
45
- }
46
- export type CreateExtensionAPI = (options: CreateExtensionAPIOptions) => ExtensionAPI;
47
- export interface ExtensionPluginOptions extends LongPressSelectionPluginOptions {
48
- __rendererExtensionOptions?: {
49
- isAllowedToUseRendererView: (node: ADFEntity) => boolean;
50
- rendererExtensionHandlers?: ExtensionHandlers;
51
- showUpdated1PBodiedExtensionUI: (node: ADFEntity) => boolean;
52
- };
53
- appearance?: EditorAppearance;
54
- breakoutEnabled?: boolean;
55
- extensionHandlers?: ExtensionHandlers;
56
- /**
57
- * Helps optimize layout shift while rendering by setting minimum heights before the extension content loads.
58
- */
59
- getExtensionHeight?: GetPMNodeHeight;
60
- /**
61
- * Returns the ADF content of the unsupported content extension.
62
- * Which will be copied to the clipboard when the copy button is clicked.
63
- */
64
- getUnsupportedContent?: (node: ExtensionParams<Parameters>) => JSONDocNode | undefined;
65
- }
66
- type InsertMacroFromMacroBrowser = (macroProvider: MacroProvider, macroNode?: PmNode, isEditing?: boolean) => (view: EditorView) => Promise<boolean>;
67
- export type RunMacroAutoConvert = (state: EditorState, text: string) => PmNode | null;
68
- export type InsertOrReplaceExtensionType = {
69
- action: 'insert' | 'replace';
70
- attrs: object;
71
- content: Fragment;
72
- editorView: EditorView;
73
- position: number;
74
- size: number;
75
- tr: Transaction;
76
- };
77
- type InsertOrReplaceExtensionAction = ({ editorView, action, attrs, content, position, size, tr, }: InsertOrReplaceExtensionType) => Transaction;
78
- export type ExtensionPluginDependencies = [
79
- OptionalPlugin<AnalyticsPlugin>,
80
- OptionalPlugin<FeatureFlagsPlugin>,
81
- WidthPlugin,
82
- DecorationsPlugin,
83
- OptionalPlugin<ContextPanelPlugin>,
84
- OptionalPlugin<ContextIdentifierPlugin>,
85
- OptionalPlugin<ConnectivityPlugin>,
86
- OptionalPlugin<ToolbarPlugin>,
87
- OptionalPlugin<MentionsPlugin>,
88
- OptionalPlugin<CopyButtonPlugin>
89
- ];
90
- export type ExtensionPluginActions = {
91
- api: () => ExtensionAPI;
92
- editSelectedExtension: () => boolean;
93
- forceAutoSave: typeof forceAutoSave;
94
- insertMacroFromMacroBrowser: InsertMacroFromMacroBrowser;
95
- insertOrReplaceBodiedExtension: InsertOrReplaceExtensionAction;
96
- insertOrReplaceExtension: InsertOrReplaceExtensionAction;
97
- runMacroAutoConvert: RunMacroAutoConvert;
98
- };
99
- export type ExtensionPlugin = NextEditorPlugin<'extension', {
100
- actions: ExtensionPluginActions;
101
- dependencies: ExtensionPluginDependencies;
102
- pluginConfiguration: ExtensionPluginOptions | undefined;
103
- sharedState: {
104
- extensionProvider?: ExtensionState['extensionProvider'];
105
- processParametersAfter?: ExtensionState['processParametersAfter'];
106
- showContextPanel: boolean | undefined;
107
- } | undefined;
108
- }>;
109
- export {};
@@ -1,2 +0,0 @@
1
- export type { CreateExtensionAPI, ExtensionPlugin, ExtensionPluginOptions, InsertOrReplaceExtensionType, RunMacroAutoConvert, RejectSave, ExtensionPluginDependencies, ExtensionState, ExtensionAction, ExtensionPluginActions, } from './extensionPluginType';
2
- export { extensionPlugin } from './extensionPlugin';
@@ -1,3 +0,0 @@
1
- import { ExtensionNodeView } from '@atlaskit/editor-common/extensibility';
2
- import { type NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
3
- export declare function lazyExtensionNodeView(nodeName: string, ...params: Parameters<typeof ExtensionNodeView>): NodeViewConstructor;
@@ -1,12 +0,0 @@
1
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import type { MacroProvider } from '@atlaskit/editor-common/provider-factory';
3
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import type { CreateExtensionAPI } from '../extensionPluginType';
5
- interface EditInLegacyMacroBrowserArgs {
6
- editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
7
- macroProvider?: MacroProvider;
8
- view: EditorView;
9
- }
10
- export declare const getEditInLegacyMacroBrowser: ({ view, macroProvider, editorAnalyticsAPI, }: EditInLegacyMacroBrowserArgs) => () => void;
11
- export declare const createExtensionAPI: CreateExtensionAPI;
12
- export {};
@@ -1,3 +0,0 @@
1
- import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
3
- export default function keymapPlugin(applyChange: ApplyChangeHandler | undefined): SafePlugin;
@@ -1,9 +0,0 @@
1
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import type { MacroAttributes, MacroProvider, Providers } from '@atlaskit/editor-common/provider-factory';
3
- import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
4
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
5
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- export declare const insertMacroFromMacroBrowser: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (macroProvider: MacroProvider, macroNode?: PmNode, isEditing?: boolean) => (view: EditorView) => Promise<boolean>;
7
- export declare const resolveMacro: (macro?: MacroAttributes, state?: EditorState, optionalAttrs?: object) => PmNode | null;
8
- export declare const runMacroAutoConvert: (state: EditorState, text: string) => PmNode | null;
9
- export declare const setMacroProvider: (provider: Providers["macroProvider"]) => (view: EditorView) => Promise<boolean>;
@@ -1,3 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- import type { MacroState } from './types';
3
- export declare const pluginKey: PluginKey<MacroState>;
@@ -1,4 +0,0 @@
1
- import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
2
- import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
3
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
- export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory) => SafePlugin;
@@ -1,4 +0,0 @@
1
- import type { MacroProvider } from '@atlaskit/editor-common/provider-factory';
2
- export type MacroState = {
3
- macroProvider: MacroProvider | null;
4
- };
@@ -1,24 +0,0 @@
1
- import type { IntlShape } from 'react-intl';
2
- import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
3
- import type { GetPMNodeHeight } from '@atlaskit/editor-common/extensibility';
4
- import type { ExtensionHandlers, ExtensionProvider } from '@atlaskit/editor-common/extensions';
5
- import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
6
- import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
7
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
8
- import type { EditorAppearance, ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
9
- import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
10
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
11
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
12
- import type { ExtensionPlugin, ExtensionPluginOptions, ExtensionState } from '../extensionPluginType';
13
- export declare const createExtensionProviderHandler: (view: EditorView) => (name: string, provider?: Promise<ExtensionProvider>) => Promise<void>;
14
- export declare const handleUpdate: ({ view, prevState, domAtPos, extensionHandlers, applyChange, }: {
15
- applyChange: ApplyChangeHandler | undefined;
16
- domAtPos: EditorView["domAtPos"];
17
- extensionHandlers: ExtensionHandlers;
18
- prevState: EditorState;
19
- view: EditorView;
20
- }) => true | undefined;
21
- export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<ExtensionPlugin> | undefined, useLongPressSelection?: boolean, options?: {
22
- appearance?: EditorAppearance;
23
- getExtensionHeight?: GetPMNodeHeight;
24
- }, featureFlags?: FeatureFlags, __rendererExtensionOptions?: ExtensionPluginOptions["__rendererExtensionOptions"], intl?: IntlShape) => SafePlugin<ExtensionState>;
@@ -1,7 +0,0 @@
1
- import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
2
- import type { Command } from '@atlaskit/editor-common/types';
3
- import type { EditorState, SafeStateField, Transaction } from '@atlaskit/editor-prosemirror/state';
4
- import type { ExtensionAction, ExtensionState } from '../extensionPluginType';
5
- export declare const createPluginState: (dispatch: Dispatch, initialState: ExtensionState | ((state: EditorState) => ExtensionState)) => SafeStateField<ExtensionState>;
6
- export declare const createCommand: <A = ExtensionAction>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (tr: Transaction, state: EditorState) => Transaction) => Command;
7
- export declare const getPluginState: (state: EditorState) => ExtensionState;
@@ -1,3 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- import type { ExtensionState } from '../extensionPluginType';
3
- export declare const pluginKey: PluginKey<ExtensionState>;
@@ -1,2 +0,0 @@
1
- import type { ExtensionAction, ExtensionState } from '../extensionPluginType';
2
- export default function (pluginState: ExtensionState, action: ExtensionAction): ExtensionState;
@@ -1,29 +0,0 @@
1
- import type { AttributeSpec, DOMOutputSpec, Node as PMNode, TagParseRule } from '@atlaskit/editor-prosemirror/model';
2
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
- export declare const bodiedExtensionSpecWithFixedToDOM: () => {
4
- atom?: boolean;
5
- attrs?: {
6
- [name: string]: AttributeSpec;
7
- };
8
- code?: boolean;
9
- content?: string;
10
- defining?: boolean;
11
- definingAsContext?: boolean;
12
- definingForContent?: boolean;
13
- disableDropCursor?: boolean | ((view: EditorView, pos: {
14
- inside: number;
15
- pos: number;
16
- }, event: DragEvent) => boolean);
17
- draggable?: boolean;
18
- group?: string;
19
- inline?: boolean;
20
- isolating?: boolean;
21
- leafText?: (node: PMNode) => string;
22
- linebreakReplacement?: boolean;
23
- marks?: string;
24
- parseDOM?: readonly TagParseRule[];
25
- selectable?: boolean;
26
- toDebugString?: (node: PMNode) => string;
27
- toDOM: (node: PMNode) => DOMOutputSpec;
28
- whitespace?: "pre" | "normal";
29
- };
@@ -1,37 +0,0 @@
1
- import type { IntlShape } from 'react-intl';
2
- import { type ExtensionProvider } from '@atlaskit/editor-common/extensions';
3
- import type { Command, FloatingToolbarHandler, PublicPluginAPI } from '@atlaskit/editor-common/types';
4
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
5
- import type { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
6
- import type { ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
7
- import type { CopyButtonPlugin } from '@atlaskit/editor-plugin-copy-button';
8
- import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
9
- import type { MentionsPlugin } from '@atlaskit/editor-plugin-mentions';
10
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
11
- import type { ExtensionPluginOptions } from '../extensionPluginType';
12
- /**
13
- * Creates a function that copies the text content of the unsupported content extension to the clipboard
14
- * if the current selected extension is an unsupported content extension.
15
- */
16
- export declare const createOnClickCopyButton: ({ formatMessage, extensionApi, extensionProvider, getUnsupportedContent, state, locale, }: {
17
- extensionApi: GetToolbarConfigProps["extensionApi"];
18
- extensionProvider?: ExtensionProvider;
19
- formatMessage: IntlShape["formatMessage"];
20
- getUnsupportedContent?: ExtensionPluginOptions["getUnsupportedContent"];
21
- locale: string;
22
- state: EditorState;
23
- }) => Command | undefined;
24
- interface GetToolbarConfigProps {
25
- breakoutEnabled: boolean | undefined;
26
- extensionApi?: PublicPluginAPI<[
27
- ContextPanelPlugin,
28
- AnalyticsPlugin,
29
- DecorationsPlugin,
30
- ConnectivityPlugin,
31
- MentionsPlugin,
32
- CopyButtonPlugin
33
- ]> | undefined;
34
- getUnsupportedContent?: ExtensionPluginOptions['getUnsupportedContent'];
35
- }
36
- export declare const getToolbarConfig: ({ breakoutEnabled, extensionApi, getUnsupportedContent, }: GetToolbarConfigProps) => FloatingToolbarHandler;
37
- export {};
@@ -1,3 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- declare const createPlugin: () => SafePlugin;
3
- export { createPlugin };
@@ -1,3 +0,0 @@
1
- import type { ExtensionProvider, UpdateExtension } from '@atlaskit/editor-common/extensions';
2
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
- export declare const updateEditButton: (view: EditorView, extensionProvider: ExtensionProvider) => Promise<UpdateExtension<any> | undefined>;
@@ -1,37 +0,0 @@
1
- import type { PublicPluginAPI } from '@atlaskit/editor-common/types';
2
- import { type JSONDocNode } from '@atlaskit/editor-json-transformer';
3
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
4
- import type { MentionsPlugin } from '@atlaskit/editor-plugin-mentions';
5
- import type { Mark, Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
6
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
7
- import type { ContentNodeWithPos, DomAtPos, NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
8
- export declare const getSelectedExtension: (state: EditorState, searchParent?: boolean) => ContentNodeWithPos | undefined;
9
- export declare const findExtensionWithLocalId: (state: EditorState, localId?: string) => NodeWithPos | undefined;
10
- export declare const getSelectedDomElement: (schema: Schema, domAtPos: DomAtPos, selectedExtensionNode: NodeWithPos) => HTMLElement;
11
- export declare const getDataConsumerMark: (newNode: PMNode) => Mark | undefined;
12
- export declare const getNodeTypesReferenced: (ids: string[], state: EditorState) => string[];
13
- export declare const findNodePosWithLocalId: (state: EditorState, localId: string) => NodeWithPos | undefined;
14
- export interface Position {
15
- bottom?: number;
16
- left?: number;
17
- right?: number;
18
- top?: number;
19
- }
20
- /**
21
- * copying ADF from the unsupported content extension as text to clipboard
22
- */
23
- export declare const copyUnsupportedContentToClipboard: ({ locale, schema, unsupportedContent, api, }: {
24
- api?: PublicPluginAPI<[
25
- MentionsPlugin
26
- ]>;
27
- locale?: string;
28
- schema: Schema;
29
- unsupportedContent?: JSONDocNode;
30
- }) => Promise<void>;
31
- export declare const onCopyFailed: ({ error, extensionApi, state, }: {
32
- error: Error;
33
- extensionApi?: PublicPluginAPI<[
34
- AnalyticsPlugin
35
- ]>;
36
- state: EditorState;
37
- }) => void;
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import type { WithAnalyticsEventsProps, WithContextProps } from '@atlaskit/analytics-next';
3
- import type { ExtensionManifest, FieldDefinition, OnSaveCallback, OnSaveCallbackAsync, Parameters } from '@atlaskit/editor-common/extensions';
4
- import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
5
- import type { ExtensionPlugin, RejectSave } from '../../extensionPluginType';
6
- declare const result: React.ForwardRefExoticComponent<Omit<Omit<{
7
- api: ExtractInjectionAPI<ExtensionPlugin> | undefined;
8
- autoSaveReject?: RejectSave;
9
- autoSaveTrigger?: () => void;
10
- closeOnEsc?: boolean;
11
- disableFields?: boolean;
12
- errorMessage: string | null;
13
- extensionManifest?: ExtensionManifest;
14
- featureFlags?: FeatureFlags;
15
- fields?: FieldDefinition[];
16
- isLoading?: boolean;
17
- onCancel: () => void | Promise<void>;
18
- onChange: OnSaveCallback | OnSaveCallbackAsync;
19
- parameters?: Parameters;
20
- showHeader?: boolean;
21
- usingObjectSidebarPanel?: boolean;
22
- }, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & WithContextProps, 'ref'> & React.RefAttributes<any>>;
23
- export default result;
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import type { ExtensionKey, ExtensionProvider, ExtensionType, Parameters } from '@atlaskit/editor-common/extensions';
3
- import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
4
- import type { ExtensionPlugin, RejectSave } from '../../extensionPluginType';
5
- export type PublicProps = {
6
- api: ExtractInjectionAPI<ExtensionPlugin> | undefined;
7
- autoSaveReject?: RejectSave;
8
- autoSaveTrigger?: () => void;
9
- closeOnEsc?: boolean;
10
- extensionKey: ExtensionKey;
11
- extensionParameters?: Parameters;
12
- extensionProvider: ExtensionProvider;
13
- extensionType: ExtensionType;
14
- featureFlags?: FeatureFlags;
15
- nodeKey: string;
16
- onCancel: () => void | Promise<void>;
17
- onChange: (data: Parameters) => void | Promise<void>;
18
- parameters?: Parameters;
19
- showHeader?: boolean;
20
- usingObjectSidebarPanel?: boolean;
21
- };
22
- export default function FieldsLoader({ extensionType, extensionKey, nodeKey, extensionProvider, extensionParameters, parameters, autoSaveTrigger, autoSaveReject, closeOnEsc, showHeader, featureFlags, onChange, onCancel, api, usingObjectSidebarPanel, }: PublicProps): React.JSX.Element;
@@ -1,5 +0,0 @@
1
- import type { ComponentType } from 'react';
2
- import Loadable from 'react-loadable';
3
- import type { PublicProps } from './ConfigPanelFieldsLoader';
4
- declare const _default_1: ComponentType<PublicProps> & Loadable.LoadableComponent;
5
- export default _default_1;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { ExtensionManifest } from '@atlaskit/editor-common/extensions';
3
- type DescriptionSummaryProps = {
4
- extensionManifest: ExtensionManifest;
5
- };
6
- export declare function DescriptionSummary({ extensionManifest, }: DescriptionSummaryProps): React.JSX.Element;
7
- export {};
@@ -1,7 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
6
- declare const ErrorImage: () => jsx.JSX.Element;
7
- export default ErrorImage;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
- type Props = {
4
- errorMessage: string;
5
- } & WrappedComponentProps;
6
- declare const _default_1: React.FC<WithIntlProps<Props>> & {
7
- WrappedComponent: React.ComponentType<Props>;
8
- };
9
- export default _default_1;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
- declare const _default_1: React.FC<WithIntlProps<{
4
- description?: string;
5
- error?: string;
6
- } & WrappedComponentProps>> & {
7
- WrappedComponent: React.ComponentType<{
8
- description?: string;
9
- error?: string;
10
- } & WrappedComponentProps>;
11
- };
12
- export default _default_1;
@@ -1,8 +0,0 @@
1
- import { jsx } from '@emotion/react';
2
- import type { BooleanField } from '@atlaskit/editor-common/extensions';
3
- import type { OnFieldChange } from '../types';
4
- export default function Boolean({ name, field, onFieldChange, }: {
5
- field: BooleanField;
6
- name: string;
7
- onFieldChange: OnFieldChange;
8
- }): jsx.JSX.Element;
@@ -1,8 +0,0 @@
1
- import { jsx } from '@emotion/react';
2
- import type { EnumCheckboxField } from '@atlaskit/editor-common/extensions';
3
- import type { OnFieldChange } from '../types';
4
- export default function CheckboxGroup({ name, field, onFieldChange, }: {
5
- field: EnumCheckboxField;
6
- name: string;
7
- onFieldChange: OnFieldChange;
8
- }): jsx.JSX.Element;
@@ -1,20 +0,0 @@
1
- import { jsx } from '@emotion/react';
2
- import type { ColorField } from '@atlaskit/editor-common/extensions';
3
- import type { FeatureFlags } from '@atlaskit/editor-common/types';
4
- import type { PaletteColor } from '@atlaskit/editor-common/ui-color';
5
- import type { OnFieldChange } from '../types';
6
- export declare const colorPalette: PaletteColor[];
7
- /**
8
- * Extended chart colors.
9
- * Decided here https://product-fabric.atlassian.net/wiki/spaces/EUXQ/pages/3477245015/Tokenising+table+charts+color
10
- */
11
- export declare const extendedColorPalette: PaletteColor[];
12
- export declare const EXPANDED_COLOR_PICKER_COLUMNS = 9;
13
- export declare const ORIGINAL_COLOR_PICKER_COLUMNS = 5;
14
- declare const ColorPickerField: ({ name, field, onFieldChange, featureFlags, }: {
15
- featureFlags?: FeatureFlags;
16
- field: ColorField;
17
- name: string;
18
- onFieldChange: OnFieldChange;
19
- }) => jsx.JSX.Element;
20
- export default ColorPickerField;
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
- import type { CustomField, ExtensionManifest, Parameters } from '@atlaskit/editor-common/extensions';
4
- import type { OnFieldChange } from '../types';
5
- declare const _default_1: React.FC<WithIntlProps<{
6
- autoFocus?: boolean;
7
- extensionManifest: ExtensionManifest;
8
- field: CustomField;
9
- name: string;
10
- onFieldChange: OnFieldChange;
11
- parameters?: Parameters;
12
- placeholder?: string;
13
- } & WrappedComponentProps>> & {
14
- WrappedComponent: React.ComponentType<{
15
- autoFocus?: boolean;
16
- extensionManifest: ExtensionManifest;
17
- field: CustomField;
18
- name: string;
19
- onFieldChange: OnFieldChange;
20
- parameters?: Parameters;
21
- placeholder?: string;
22
- } & WrappedComponentProps>;
23
- };
24
- export default _default_1;
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
- import type { DateField } from '@atlaskit/editor-common/extensions';
4
- import type { OnFieldChange } from '../types';
5
- declare const _default_1: React.FC<WithIntlProps<{
6
- autoFocus?: boolean;
7
- field: DateField;
8
- name: string;
9
- onFieldChange: OnFieldChange;
10
- placeholder?: string;
11
- } & WrappedComponentProps>> & {
12
- WrappedComponent: React.ComponentType<{
13
- autoFocus?: boolean;
14
- field: DateField;
15
- name: string;
16
- onFieldChange: OnFieldChange;
17
- placeholder?: string;
18
- } & WrappedComponentProps>;
19
- };
20
- export default _default_1;
@@ -1,24 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { type ComponentType, type FC } from 'react';
6
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
7
- import type { DateRangeField } from '@atlaskit/editor-common/extensions';
8
- import type { OnFieldChange } from '../types';
9
- declare const _default_1: FC<WithIntlProps<{
10
- autoFocus?: boolean;
11
- field: DateRangeField;
12
- name: string;
13
- onFieldChange: OnFieldChange;
14
- placeholder?: string;
15
- } & WrappedComponentProps>> & {
16
- WrappedComponent: ComponentType<{
17
- autoFocus?: boolean;
18
- field: DateRangeField;
19
- name: string;
20
- onFieldChange: OnFieldChange;
21
- placeholder?: string;
22
- } & WrappedComponentProps>;
23
- };
24
- export default _default_1;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { EnumField } from '@atlaskit/editor-common/extensions';
3
- import type { OnFieldChange } from '../types';
4
- export default function Enum({ name, field, autoFocus, onFieldChange, fieldDefaultValue, }: {
5
- autoFocus: boolean;
6
- field: EnumField;
7
- fieldDefaultValue?: string | string[];
8
- name: string;
9
- onFieldChange: OnFieldChange;
10
- }): React.JSX.Element;
@@ -1,16 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
7
- import type { FieldDefinition } from '@atlaskit/editor-common/extensions';
8
- type Props = {
9
- children: React.ReactNode;
10
- field: FieldDefinition;
11
- isExpanded?: boolean;
12
- } & WrappedComponentProps;
13
- declare const _default_1: React.FC<WithIntlProps<Props>> & {
14
- WrappedComponent: React.ComponentType<Props>;
15
- };
16
- export default _default_1;
@@ -1,22 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
7
- import type { ExtensionManifest, Fieldset, Parameters } from '@atlaskit/editor-common/extensions';
8
- import type { FormContentProps, OnFieldChange } from '../types';
9
- type Props = {
10
- error?: string;
11
- extensionManifest: ExtensionManifest;
12
- field: Fieldset;
13
- firstVisibleFieldName?: string;
14
- formComponent: (props: FormContentProps) => JSX.Element;
15
- name: string;
16
- onFieldChange: OnFieldChange;
17
- parameters?: Parameters;
18
- } & WrappedComponentProps;
19
- declare const _default_1: React.FC<WithIntlProps<Props>> & {
20
- WrappedComponent: React.ComponentType<Props>;
21
- };
22
- export default _default_1;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { NumberField } from '@atlaskit/editor-common/extensions';
3
- import type { OnFieldChange } from '../types';
4
- export default function Number({ name, field, autoFocus, onFieldChange, placeholder, }: {
5
- autoFocus?: boolean;
6
- field: NumberField;
7
- name: string;
8
- onFieldChange: OnFieldChange;
9
- placeholder?: string;
10
- }): React.JSX.Element;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import type { EnumRadioField } from '@atlaskit/editor-common/extensions';
3
- import type { OnFieldChange } from '../types';
4
- export default function RadioField({ name, field, onFieldChange, }: {
5
- field: EnumRadioField;
6
- name: string;
7
- onFieldChange: OnFieldChange;
8
- }): React.JSX.Element;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import type { EnumSelectField } from '@atlaskit/editor-common/extensions';
3
- import type { OnFieldChange } from '../types';
4
- export default function SelectField({ name, field, onFieldChange, autoFocus, placeholder, fieldDefaultValue, }: {
5
- autoFocus?: boolean;
6
- field: EnumSelectField;
7
- fieldDefaultValue?: string | string[];
8
- name: string;
9
- onFieldChange: OnFieldChange;
10
- placeholder?: string;
11
- }): React.JSX.Element;
@@ -1,8 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
6
- import type { Option } from '@atlaskit/editor-common/extensions';
7
- import type { FormatOptionLabelMeta } from '@atlaskit/select';
8
- export declare const formatOptionLabel: ({ label, icon, description }: Option, { context }: FormatOptionLabelMeta<Option>) => jsx.JSX.Element;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { StringField } from '@atlaskit/editor-common/extensions';
3
- import type { OnFieldChange } from '../types';
4
- export default function String({ name, field, autoFocus, onFieldChange, placeholder, }: {
5
- autoFocus?: boolean;
6
- field: StringField;
7
- name: string;
8
- onFieldChange: OnFieldChange;
9
- placeholder?: string;
10
- }): React.JSX.Element;
@@ -1,15 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
7
- import type { TabField, TabGroupField } from '@atlaskit/editor-common/extensions';
8
- type Props = {
9
- field: TabGroupField;
10
- renderPanel: (tabField: TabField) => JSX.Element;
11
- } & WrappedComponentProps;
12
- declare const TabGroup: React.FC<WithIntlProps<Props>> & {
13
- WrappedComponent: React.ComponentType<Props>;
14
- };
15
- export default TabGroup;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import type { FieldDefinition } from '@atlaskit/editor-common/extensions';
3
- export default function ({ errorMessage, }: {
4
- errorMessage: string;
5
- field: FieldDefinition;
6
- }): React.JSX.Element;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { ExtensionManifest, UserField } from '@atlaskit/editor-common/extensions';
3
- import type { OnFieldChange } from '../types';
4
- export default function UserSelect({ name, autoFocus, extensionManifest, field, onFieldChange, }: {
5
- autoFocus?: boolean;
6
- extensionManifest: ExtensionManifest;
7
- field: UserField;
8
- name: string;
9
- onFieldChange: OnFieldChange;
10
- }): React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { FieldComponentProps, FormContentProps } from './types';
3
- export declare function FieldComponent({ field, parameters, parentName, extensionManifest, firstVisibleFieldName, onFieldChange, featureFlags, }: FieldComponentProps): React.JSX.Element;
4
- export default function FormContent({ fields, parentName, parameters, extensionManifest, canRemoveFields, onClickRemove, onFieldChange, firstVisibleFieldName, contextIdentifierProvider, featureFlags, isDisabled, }: FormContentProps): React.JSX.Element;
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
- import type { WithAnalyticsEventsProps, WithContextProps } from '@atlaskit/analytics-next';
4
- import type { FieldDefinition } from '@atlaskit/editor-common/extensions';
5
- import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
6
- interface Props {
7
- children: React.ReactNode;
8
- contextIdentifierProvider?: ContextIdentifierProvider;
9
- extensionKey: string;
10
- fields: FieldDefinition[];
11
- }
12
- export declare const FormErrorBoundaryImpl: React.FC<WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps>> & {
13
- WrappedComponent: React.ComponentType<Props & WithAnalyticsEventsProps & WrappedComponentProps>;
14
- };
15
- export declare const FormErrorBoundary: React.ForwardRefExoticComponent<Omit<Omit<Omit<Props & WithAnalyticsEventsProps & WrappedComponentProps, 'intl'> & {
16
- forwardedRef?: React.Ref<any>;
17
- }, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & WithContextProps, 'ref'> & React.RefAttributes<any>>;
18
- export {};
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import type { ExtensionKey, ExtensionProvider, ExtensionType } from '@atlaskit/editor-common/extensions';
3
- declare const _default_1: (props: {
4
- extensionKey: ExtensionKey;
5
- extensionProvider: ExtensionProvider;
6
- extensionType: ExtensionType;
7
- }) => React.JSX.Element | null;
8
- export default _default_1;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import type { ExtensionKey, ExtensionProvider, ExtensionType } from '@atlaskit/editor-common/extensions';
3
- declare const _default_1: (props: {
4
- extensionKey: ExtensionKey;
5
- extensionProvider: ExtensionProvider;
6
- extensionType: ExtensionType;
7
- }) => React.JSX.Element | null;
8
- export default _default_1;
@@ -1,22 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { type ComponentType, type FC } from 'react';
6
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
7
- import type { Icon } from '@atlaskit/editor-common/extensions';
8
- import { type ExtensionDeprecationStatus } from '@atlaskit/editor-common/extensions';
9
- type Props = {
10
- deprecation?: ExtensionDeprecationStatus;
11
- description?: string;
12
- documentationUrl?: string;
13
- enableHelpCTA?: boolean;
14
- icon: Icon;
15
- onClose: () => void;
16
- summary?: string;
17
- title: string;
18
- } & WrappedComponentProps;
19
- declare const _default_1: FC<WithIntlProps<Props>> & {
20
- WrappedComponent: ComponentType<Props>;
21
- };
22
- export default _default_1;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- type HelpLinkProps = {
3
- documentationUrl: string;
4
- label: string;
5
- };
6
- export declare const HelpLink: ({ documentationUrl, label }: HelpLinkProps) => React.JSX.Element;
7
- export {};
@@ -1,9 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import type { ReactNode } from 'react';
6
- import { jsx } from '@emotion/react';
7
- import type { LoadingComponentProps } from 'react-loadable';
8
- declare const LoadingState: (props: Partial<LoadingComponentProps>) => string | number | boolean | jsx.JSX.Element | Iterable<ReactNode> | null | undefined;
9
- export default LoadingState;
@@ -1,17 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
7
- type Props = {
8
- canRemoveField?: boolean;
9
- children: React.ReactElement;
10
- className?: string;
11
- name: string;
12
- onClickRemove?: (fieldName: string) => void;
13
- } & WrappedComponentProps;
14
- declare const _default_1: React.FC<WithIntlProps<Props>> & {
15
- WrappedComponent: React.ComponentType<Props>;
16
- };
17
- export default _default_1;
@@ -1,4 +0,0 @@
1
- export declare const ALLOWED_LOGGED_MACRO_PARAMS: Record<string, Array<string>>;
2
- export declare const ALLOWED_PARAM_TYPES: string[];
3
- export declare const CONFIG_PANEL_WIDTH = 320;
4
- export declare const CONFIG_PANEL_ID = "extensions-panel";
@@ -1,9 +0,0 @@
1
- import type { ExtensionManifest, FieldDefinition, Parameters, ParametersWithDuplicateFields } from '@atlaskit/editor-common/extensions';
2
- interface SerializeOptions {
3
- depth?: number;
4
- parentType?: 'fieldset' | 'tab' | 'expand';
5
- }
6
- export declare const findDuplicateFields: (fields: FieldDefinition[]) => FieldDefinition | undefined;
7
- export declare const serialize: (manifest: ExtensionManifest, data: Parameters, fields: FieldDefinition[], options?: SerializeOptions) => Promise<Parameters>;
8
- export declare const deserialize: (manifest: ExtensionManifest, data: Parameters | ParametersWithDuplicateFields, fields: FieldDefinition[], depth?: number) => Promise<Parameters>;
9
- export {};
@@ -1,40 +0,0 @@
1
- import type { ExtensionManifest, FieldDefinition, Parameters } from '@atlaskit/editor-common/extensions';
2
- import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
3
- import type { FeatureFlags } from '@atlaskit/editor-common/types';
4
- export declare enum ValidationError {
5
- Required = "required",
6
- Invalid = "invalid"
7
- }
8
- export declare enum FieldTypeError {
9
- isMultipleAndRadio = "isMultipleAndRadio"
10
- }
11
- export type Entry<T> = [
12
- string,
13
- T
14
- ];
15
- export type OnFieldChange = (name: string, isDirty: boolean) => void;
16
- export interface ValidationErrors {
17
- [key: string]: any;
18
- }
19
- export interface FieldComponentProps {
20
- extensionManifest: ExtensionManifest;
21
- featureFlags?: FeatureFlags;
22
- field: FieldDefinition;
23
- firstVisibleFieldName?: string;
24
- onFieldChange: OnFieldChange;
25
- parameters: Parameters;
26
- parentName?: string;
27
- }
28
- export interface FormContentProps {
29
- canRemoveFields?: boolean;
30
- contextIdentifierProvider?: ContextIdentifierProvider;
31
- extensionManifest: ExtensionManifest;
32
- featureFlags?: FeatureFlags;
33
- fields: FieldDefinition[];
34
- firstVisibleFieldName?: string;
35
- isDisabled?: boolean;
36
- onClickRemove?: (fieldName: string) => void;
37
- onFieldChange: OnFieldChange;
38
- parameters?: Parameters;
39
- parentName?: string;
40
- }
@@ -1,16 +0,0 @@
1
- import type React from 'react';
2
- type AbortableEffectWithCancel = (signal: AbortSignal) => () => void;
3
- type AbortableEffect = (signal: AbortSignal) => void;
4
- /**
5
- * Similar to useEffect but integrated with the AbortController to make it useful for async operations.
6
- * On unmount, the abort function will be called and the signal will be passed down to the function so
7
- * we get the chance to cancel any operation we want.
8
- *
9
- * Note: This hook follows the signature of useEffect so it can be linted if enabled through the
10
- * `additionalHooks` config.
11
- *
12
- * @param callback
13
- * @param deps
14
- */
15
- export declare function useAbortableEffect(callback: AbortableEffectWithCancel | AbortableEffect, deps: React.DependencyList): void;
16
- export {};
@@ -1,18 +0,0 @@
1
- import type React from 'react';
2
- type AbortableEffect<T> = () => Promise<T> | undefined;
3
- /**
4
- * Similar to useState but deals with async values.
5
- * Simply pass a promise and it will set the state when it resolves. It won't try to set if
6
- * the component unmounts
7
- *
8
- * Note: This hook follows the signature of useEffect so it can be linted if enabled through the
9
- * `additionalHooks` config.
10
- *
11
- * @param callback
12
- * @param deps
13
- */
14
- export declare function useStateFromPromise<S>(callback: AbortableEffect<S>, deps: React.DependencyList, initialValue?: S): [
15
- S | undefined,
16
- React.Dispatch<React.SetStateAction<S | undefined>>
17
- ];
18
- export {};
@@ -1,16 +0,0 @@
1
- import type { FieldDefinition, Option, Parameters } from '@atlaskit/editor-common/extensions';
2
- import type { GroupBase } from '@atlaskit/react-select';
3
- import { ValidationError } from './types';
4
- export declare const validate: <T>(field: Partial<FieldDefinition>, value: T) => ValidationError | undefined;
5
- type ValidationProps = {
6
- isMultiple?: boolean;
7
- isRequired?: boolean;
8
- };
9
- export declare const validateRequired: <T>({ isRequired, isMultiple }: ValidationProps, value: T) => ValidationError | undefined;
10
- export declare const getOptionFromValue: (options: Option[] | GroupBase<Option>[], value: string | string[] | undefined) => Option | Option[] | undefined;
11
- export declare const getSafeParentedName: (name: string, parentName?: string) => string;
12
- export declare const isDuplicateField: (key: string) => boolean;
13
- export declare const getNameFromDuplicateField: (key: string) => string;
14
- export declare const parseParamType: (paramValue: Parameters[string], paramField?: FieldDefinition) => any;
15
- export declare const getLoggedParameters: (macroKey: string, currentParams: Parameters, macroFields?: FieldDefinition[]) => {};
16
- export {};
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { ExtensionKey, ExtensionManifest, ExtensionProvider, ExtensionType } from '@atlaskit/editor-common/extensions';
3
- export declare function withExtensionManifest(WrappedComponent: React.ComponentType<{
4
- extensionManifest: ExtensionManifest;
5
- }>): (props: {
6
- extensionKey: ExtensionKey;
7
- extensionProvider: ExtensionProvider;
8
- extensionType: ExtensionType;
9
- }) => React.JSX.Element | null;
@@ -1,3 +0,0 @@
1
- import { jsx } from '@emotion/react';
2
- import type { SaveIndicatorProps } from './types';
3
- export declare const SaveIndicator: ({ children, duration, visible, }: SaveIndicatorProps) => jsx.JSX.Element;
@@ -1,11 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- interface SaveIndicatorRenderOptions {
3
- onSaveEnded: () => void;
4
- onSaveStarted: () => void;
5
- }
6
- export interface SaveIndicatorProps {
7
- children: (options: SaveIndicatorRenderOptions) => ReactNode;
8
- duration: number;
9
- visible?: boolean;
10
- }
11
- export {};
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
3
- import type { Node } from '@atlaskit/editor-prosemirror/model';
4
- import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
5
- import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
6
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
7
- import type { ExtensionPlugin } from '../extensionPluginType';
8
- export declare const duplicateSelection: (selectionToDuplicate: Selection, doc: Node) => Selection | undefined;
9
- export declare const getContextPanel: (getEditorView?: () => EditorView | undefined) => (api: ExtractInjectionAPI<ExtensionPlugin> | undefined, featureFlags?: FeatureFlags) => (state: EditorState) => React.JSX.Element | undefined;
10
- interface Parameters {
11
- [key: string]: unknown;
12
- macroParams?: Record<string, unknown>;
13
- }
14
- export declare function onChangeAction(editorView: EditorView, updatedParameters: Parameters | undefined, oldParameters: Parameters | undefined, nodeWithPos: ContentNodeWithPos, onSaving?: () => void): Promise<void>;
15
- export {};
@@ -1,29 +0,0 @@
1
- import React from 'react';
2
- import { type ExtensionProvider } from '@atlaskit/editor-common/extensions';
3
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
- import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
5
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- import type { ExtensionPlugin } from '../extensionPluginType';
7
- export declare function useConfigPanelPluginHook({ editorView, configPanelId, api, }: {
8
- api?: ExtractInjectionAPI<ExtensionPlugin>;
9
- configPanelId: string;
10
- editorView: EditorView;
11
- }): void;
12
- export declare function hideConfigPanel(configPanelId: string, api: ExtractInjectionAPI<ExtensionPlugin> | undefined): void;
13
- export declare function showConfigPanel({ api, configPanelId, editorView, extensionProvider, nodeWithPos, }: {
14
- api: ExtractInjectionAPI<ExtensionPlugin> | undefined;
15
- configPanelId: string;
16
- editorView: EditorView;
17
- extensionProvider: ExtensionProvider;
18
- nodeWithPos: ContentNodeWithPos;
19
- }): void;
20
- export declare function startClosingConfigPanel({ api, editorView, }: {
21
- api: ExtractInjectionAPI<ExtensionPlugin> | undefined;
22
- editorView: EditorView;
23
- }): Promise<void>;
24
- export declare const getContextPanelBodyComponent: ({ api, editorView, extensionProvider, nodeWithPos, }: {
25
- api: ExtractInjectionAPI<ExtensionPlugin> | undefined;
26
- editorView: EditorView;
27
- extensionProvider: ExtensionProvider;
28
- nodeWithPos: ContentNodeWithPos;
29
- }) => () => React.JSX.Element;