@atlaskit/editor-common 73.0.0 → 74.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/analytics/package.json +2 -2
- package/card/package.json +2 -2
- package/collab/package.json +2 -2
- package/core-utils/package.json +2 -2
- package/dist/cjs/provider-helpers/combine-providers.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/provider-helpers/combine-providers.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/provider-helpers/combine-providers.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/__tests_external__/cases/fundamentals/test-cases/editor-is-present.d.ts +1 -1
- package/dist/types/__tests_external__/cases/fundamentals/test-cases/editor-typing.d.ts +1 -1
- package/dist/types/__tests_external__/page-objects/Editor.d.ts +2 -0
- package/dist/types/__tests_external__/page-objects/EditorSmartLink.d.ts +2 -0
- package/dist/types/__tests_external__/page-objects/Renderer.d.ts +2 -0
- package/dist/types/analytics/api.d.ts +1 -1
- package/dist/types/analytics/types/avatar.d.ts +2 -2
- package/dist/types/analytics/types/block.d.ts +3 -3
- package/dist/types/analytics/types/config-panel-events.d.ts +4 -4
- package/dist/types/analytics/types/cut-copy-events.d.ts +3 -3
- package/dist/types/analytics/types/date-events.d.ts +6 -6
- package/dist/types/analytics/types/dispatch-analytics-event.d.ts +1 -1
- package/dist/types/analytics/types/element-browser-events.d.ts +4 -4
- package/dist/types/analytics/types/events.d.ts +26 -26
- package/dist/types/analytics/types/experimental-events.d.ts +4 -4
- package/dist/types/analytics/types/extension-events.d.ts +5 -5
- package/dist/types/analytics/types/find-replace-events.d.ts +9 -9
- package/dist/types/analytics/types/format-events.d.ts +10 -10
- package/dist/types/analytics/types/general-events.d.ts +40 -40
- package/dist/types/analytics/types/inline-comment-events.d.ts +5 -5
- package/dist/types/analytics/types/insert-events.d.ts +23 -23
- package/dist/types/analytics/types/link-tool-bar-events.d.ts +14 -14
- package/dist/types/analytics/types/list-events.d.ts +11 -11
- package/dist/types/analytics/types/media-events.d.ts +12 -12
- package/dist/types/analytics/types/node-events.d.ts +11 -11
- package/dist/types/analytics/types/paste-events.d.ts +10 -10
- package/dist/types/analytics/types/performance-report.d.ts +1 -1
- package/dist/types/analytics/types/referentiality-events.d.ts +10 -10
- package/dist/types/analytics/types/selection-events.d.ts +6 -6
- package/dist/types/analytics/types/smart-links.d.ts +2 -2
- package/dist/types/analytics/types/substitute-events.d.ts +5 -5
- package/dist/types/analytics/types/table-events.d.ts +18 -18
- package/dist/types/analytics/types/toolbar-button.d.ts +2 -2
- package/dist/types/analytics/types/type-ahead.d.ts +8 -8
- package/dist/types/analytics/types/utils.d.ts +9 -9
- package/dist/types/card/utils.d.ts +2 -2
- package/dist/types/collab/types.d.ts +2 -2
- package/dist/types/event-dispatcher/index.d.ts +2 -2
- package/dist/types/extensions/combine-extension-providers.d.ts +1 -1
- package/dist/types/extensions/default-extension-provider.d.ts +1 -1
- package/dist/types/extensions/extension-handlers.d.ts +2 -2
- package/dist/types/extensions/manifest-helpers.d.ts +6 -5
- package/dist/types/extensions/module-helpers.d.ts +4 -4
- package/dist/types/extensions/types/extension-handler.d.ts +9 -9
- package/dist/types/extensions/types/extension-manifest-common.d.ts +4 -4
- package/dist/types/extensions/types/extension-manifest-toolbar-item.d.ts +11 -11
- package/dist/types/extensions/types/extension-manifest.d.ts +30 -30
- package/dist/types/extensions/types/extension-parameters.d.ts +2 -2
- package/dist/types/extensions/types/field-definitions.d.ts +12 -12
- package/dist/types/extensions/types/utils.d.ts +2 -2
- package/dist/types/hooks/useSharedPluginState.d.ts +2 -2
- package/dist/types/i18n/cs.d.ts +6 -6
- package/dist/types/i18n/da.d.ts +6 -6
- package/dist/types/i18n/de.d.ts +6 -6
- package/dist/types/i18n/en.d.ts +6 -6
- package/dist/types/i18n/en_GB.d.ts +6 -6
- package/dist/types/i18n/en_ZZ.d.ts +6 -6
- package/dist/types/i18n/es.d.ts +6 -6
- package/dist/types/i18n/et.d.ts +1 -1
- package/dist/types/i18n/fi.d.ts +6 -6
- package/dist/types/i18n/fr.d.ts +6 -6
- package/dist/types/i18n/hu.d.ts +6 -6
- package/dist/types/i18n/it.d.ts +6 -6
- package/dist/types/i18n/ja.d.ts +6 -6
- package/dist/types/i18n/ko.d.ts +6 -6
- package/dist/types/i18n/languages.d.ts +6 -6
- package/dist/types/i18n/nb.d.ts +6 -6
- package/dist/types/i18n/nl.d.ts +6 -6
- package/dist/types/i18n/pl.d.ts +6 -6
- package/dist/types/i18n/pt_BR.d.ts +6 -6
- package/dist/types/i18n/pt_PT.d.ts +1 -1
- package/dist/types/i18n/ru.d.ts +6 -6
- package/dist/types/i18n/sk.d.ts +1 -1
- package/dist/types/i18n/sv.d.ts +6 -6
- package/dist/types/i18n/th.d.ts +6 -6
- package/dist/types/i18n/tr.d.ts +6 -6
- package/dist/types/i18n/uk.d.ts +6 -6
- package/dist/types/i18n/vi.d.ts +6 -6
- package/dist/types/i18n/zh.d.ts +6 -6
- package/dist/types/i18n/zh_TW.d.ts +6 -6
- package/dist/types/node-width/index.d.ts +1 -1
- package/dist/types/normalize-feature-flags.d.ts +2 -2
- package/dist/types/preset/plugin-injection-api.d.ts +5 -5
- package/dist/types/provider-factory/autoformatting-provider.d.ts +3 -3
- package/dist/types/provider-factory/card-provider.d.ts +1 -1
- package/dist/types/provider-factory/image-upload-provider.d.ts +2 -2
- package/dist/types/provider-factory/macro-provider.d.ts +1 -1
- package/dist/types/provider-factory/media-provider.d.ts +1 -1
- package/dist/types/provider-factory/quick-insert-provider.d.ts +4 -4
- package/dist/types/provider-factory/search-provider.d.ts +1 -1
- package/dist/types/provider-factory/types.d.ts +3 -3
- package/dist/types/provider-factory/with-providers.d.ts +1 -1
- package/dist/types/provider-helpers/combine-providers.d.ts +4 -4
- package/dist/types/provider-helpers/promise-helpers.d.ts +2 -2
- package/dist/types/react-node-view/types.d.ts +6 -6
- package/dist/types/selection/gap-cursor/utils/is-ignored.d.ts +1 -1
- package/dist/types/selection/gap-cursor/utils/is-valid-target-node.d.ts +1 -1
- package/dist/types/selection/types.d.ts +1 -1
- package/dist/types/selection/utils.d.ts +2 -2
- package/dist/types/styles/shared/table.d.ts +1 -1
- package/dist/types/transforms/expand.d.ts +1 -1
- package/dist/types/types/annotation/emitter.d.ts +5 -5
- package/dist/types/types/annotation/index.d.ts +8 -8
- package/dist/types/types/collab.d.ts +2 -2
- package/dist/types/types/command.d.ts +3 -3
- package/dist/types/types/context-panel.d.ts +1 -1
- package/dist/types/types/copy-button.d.ts +2 -2
- package/dist/types/types/editor-actions.d.ts +2 -2
- package/dist/types/types/editor-appearance.d.ts +1 -1
- package/dist/types/types/editor-container-width.d.ts +2 -2
- package/dist/types/types/editor-plugin.d.ts +4 -4
- package/dist/types/types/editor-react-context.d.ts +1 -1
- package/dist/types/types/empty-state-handler.d.ts +2 -2
- package/dist/types/types/feature-flags.d.ts +3 -3
- package/dist/types/types/floating-toolbar.d.ts +26 -26
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/types/next-editor-plugin.d.ts +38 -38
- package/dist/types/types/plugin-factory.d.ts +3 -3
- package/dist/types/types/quick-insert.d.ts +5 -5
- package/dist/types/types/supported-browsers.d.ts +3 -3
- package/dist/types/types/toolbar.d.ts +2 -2
- package/dist/types/types/type-ahead.d.ts +7 -7
- package/dist/types/types/ui-components.d.ts +2 -2
- package/dist/types/ufo/experience-store.d.ts +2 -2
- package/dist/types/ui/BaseTheme/index.d.ts +2 -2
- package/dist/types/ui/Caption/index.d.ts +1 -1
- package/dist/types/ui/DropList/index.d.ts +1 -1
- package/dist/types/ui/ErrorBoundary/index.d.ts +1 -1
- package/dist/types/ui/EventHandlers/index.d.ts +5 -5
- package/dist/types/ui/Layer/index.d.ts +2 -2
- package/dist/types/ui/MediaSingle/index.d.ts +1 -1
- package/dist/types/ui/OverflowShadow/shadowObserver.d.ts +1 -1
- package/dist/types/ui/PortalProvider/index.d.ts +5 -5
- package/dist/types/ui/WidthProvider/index.d.ts +4 -4
- package/dist/types/ui/WithCreateAnalyticsEvent/index.d.ts +1 -1
- package/dist/types/ui/with-outer-listeners.d.ts +1 -1
- package/dist/types/ui-color/ColorPalette/Palettes/type.d.ts +2 -2
- package/dist/types/ui-menu/ArrowKeyNavigationProvider/types.d.ts +7 -7
- package/dist/types/ui-menu/ToolbarButton/index.d.ts +2 -2
- package/dist/types/ui-react/ReactEditorViewContext.d.ts +1 -1
- package/dist/types/ui-react/with-react-editor-view-outer-listeners.d.ts +2 -2
- package/dist/types/utils/analytics.d.ts +7 -7
- package/dist/types/utils/annotation/index.d.ts +1 -1
- package/dist/types/utils/browser-extensions.d.ts +6 -6
- package/dist/types/utils/collab.d.ts +1 -1
- package/dist/types/utils/compare-props.d.ts +8 -8
- package/dist/types/utils/compareNodes.d.ts +2 -2
- package/dist/types/utils/compose.d.ts +1 -1
- package/dist/types/utils/date.d.ts +1 -1
- package/dist/types/utils/dom.d.ts +1 -1
- package/dist/types/utils/error-reporter.d.ts +1 -1
- package/dist/types/utils/extension-handler.d.ts +2 -2
- package/dist/types/utils/imageLoader.d.ts +1 -1
- package/dist/types/utils/nodes.d.ts +2 -2
- package/dist/types/utils/performance/hooks/use-component-render-tracking/index.d.ts +3 -3
- package/dist/types/utils/plugin-state-factory.d.ts +3 -3
- package/dist/types/utils/profiler/render-count.d.ts +2 -2
- package/dist/types/utils/referentiality.d.ts +6 -6
- package/dist/types/utils/slice.d.ts +2 -2
- package/dist/types/utils/track-unsupported-content.d.ts +4 -4
- package/dist/types/utils/traversor.d.ts +1 -1
- package/dist/types/utils/types.d.ts +2 -2
- package/dist/types/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +2 -2
- package/dist/types/utils/validate-using-spec.d.ts +3 -3
- package/dist/types/utils/validator.d.ts +1 -1
- package/dist/types/with-plugin-state/index.d.ts +6 -6
- package/dist/types/with-plugin-state/types.d.ts +3 -3
- package/emoji/package.json +2 -2
- package/error-boundary/package.json +2 -2
- package/event-dispatcher/package.json +2 -2
- package/extensions/package.json +2 -2
- package/hooks/package.json +2 -2
- package/icons/package.json +2 -2
- package/in-product/package.json +2 -2
- package/keymaps/package.json +2 -2
- package/mention/package.json +2 -2
- package/messages/package.json +2 -2
- package/node-width/package.json +2 -2
- package/normalize-feature-flags/package.json +2 -2
- package/package.json +47 -39
- package/panel/package.json +2 -2
- package/portal-provider/package.json +2 -2
- package/preset/package.json +2 -2
- package/provider-factory/package.json +2 -2
- package/provider-helpers/package.json +2 -2
- package/react-node-view/package.json +2 -2
- package/safe-plugin/package.json +2 -2
- package/selection/package.json +2 -2
- package/styles/package.json +2 -2
- package/transforms/package.json +2 -2
- package/type-ahead/package.json +2 -2
- package/types/package.json +2 -2
- package/ufo/package.json +2 -2
- package/ui/package.json +2 -2
- package/ui-color/package.json +2 -2
- package/ui-menu/package.json +2 -2
- package/ui-react/package.json +2 -2
- package/utils/package.json +2 -2
- package/validator/package.json +2 -2
- package/with-plugin-state/package.json +2 -2
|
@@ -5,26 +5,26 @@ import { ExtensionIconModule, MaybeESModule } from './extension-manifest-common'
|
|
|
5
5
|
import { ContextualToolbar } from './extension-manifest-toolbar-item';
|
|
6
6
|
import { Parameters } from './extension-parameters';
|
|
7
7
|
import { FieldDefinition, Option, UserFieldContext } from './field-definitions';
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
8
|
+
export type ExtensionType = string;
|
|
9
|
+
export type ExtensionKey = string;
|
|
10
|
+
export type ExtensionModuleKey = string;
|
|
11
|
+
export type ExtensionComponentProps<T extends Parameters = Parameters> = {
|
|
12
12
|
node: ExtensionParams<T>;
|
|
13
13
|
[key: string]: any;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
15
|
+
export type ExtensionComponent<T extends Parameters> = ComponentType<ExtensionComponentProps<T>>;
|
|
16
|
+
export type ExtensionComponentModule<T extends Parameters> = Promise<MaybeESModule<ExtensionComponent<T>>>;
|
|
17
|
+
export type Serializer<T extends Parameters = Parameters> = (data: T) => string;
|
|
18
|
+
export type Deserializer<T extends Parameters = Parameters> = (value: string) => T;
|
|
19
|
+
export type ExtensionModuleActionObject<T extends Parameters = Parameters> = {
|
|
20
20
|
key: ExtensionModuleKey;
|
|
21
21
|
type: 'node';
|
|
22
22
|
parameters?: T;
|
|
23
23
|
};
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
24
|
+
export type MaybeADFEntity = MaybeESModule<ADFEntity | Array<ADFEntity> | void>;
|
|
25
|
+
export type ExtensionModuleActionHandler = () => Promise<MaybeADFEntity>;
|
|
26
|
+
export type ExtensionModuleAction<T extends Parameters = Parameters> = ExtensionModuleActionObject<T> | ExtensionModuleActionHandler;
|
|
27
|
+
export type ExtensionModule<T extends Parameters = Parameters> = {
|
|
28
28
|
key: string;
|
|
29
29
|
title?: string;
|
|
30
30
|
description?: string;
|
|
@@ -36,33 +36,33 @@ export declare type ExtensionModule<T extends Parameters = Parameters> = {
|
|
|
36
36
|
action: ExtensionModuleAction<T>;
|
|
37
37
|
parameters?: T;
|
|
38
38
|
};
|
|
39
|
-
export
|
|
40
|
-
export
|
|
39
|
+
export type DynamicFieldDefinitions<T> = (parameters: T) => FieldDefinition[];
|
|
40
|
+
export type ExtensionModuleNode<T extends Parameters = Parameters> = {
|
|
41
41
|
type: 'extension' | 'inlineExtension' | 'bodiedExtension';
|
|
42
42
|
render: () => ExtensionComponentModule<T>;
|
|
43
43
|
update?: UpdateExtension<T>;
|
|
44
44
|
getFieldsDefinition?: (extensionParameters: T) => Promise<FieldDefinition[] | DynamicFieldDefinitions<T>>;
|
|
45
45
|
};
|
|
46
|
-
export
|
|
46
|
+
export type ExtensionModuleNodes<T extends Parameters = Parameters> = {
|
|
47
47
|
[key: string]: ExtensionModuleNode<T>;
|
|
48
48
|
};
|
|
49
|
-
export
|
|
50
|
-
export
|
|
49
|
+
export type ExtensionAutoConvertHandler = (text: string) => ADFEntity | undefined;
|
|
50
|
+
export type ExtensionModuleAutoConvert = {
|
|
51
51
|
url?: ExtensionAutoConvertHandler[];
|
|
52
52
|
};
|
|
53
|
-
export
|
|
54
|
-
export
|
|
55
|
-
export
|
|
53
|
+
export type CustomFieldResolver = (searchTerm?: string, defaultValue?: string | string[], parameters?: Parameters) => Promise<Option[]>;
|
|
54
|
+
export type UserFieldContextProvider = () => Promise<UserFieldContext>;
|
|
55
|
+
export type ExtensionModuleFieldTypeCustom = {
|
|
56
56
|
resolver: CustomFieldResolver;
|
|
57
57
|
};
|
|
58
|
-
export
|
|
58
|
+
export type ExtensionModuleFieldTypeUser = {
|
|
59
59
|
provider: UserFieldContextProvider;
|
|
60
60
|
};
|
|
61
|
-
export
|
|
61
|
+
export type ExtensionModuleFieldTypeFieldset<T extends Parameters = Parameters> = {
|
|
62
62
|
serializer?: Serializer<T>;
|
|
63
63
|
deserializer?: Deserializer<T>;
|
|
64
64
|
};
|
|
65
|
-
export
|
|
65
|
+
export type ExtensionModuleFields<T extends Parameters = Parameters> = {
|
|
66
66
|
custom?: {
|
|
67
67
|
[key: string]: ExtensionModuleFieldTypeCustom;
|
|
68
68
|
};
|
|
@@ -73,16 +73,16 @@ export declare type ExtensionModuleFields<T extends Parameters = Parameters> = {
|
|
|
73
73
|
[key: string]: ExtensionModuleFieldTypeUser;
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
|
-
export
|
|
76
|
+
export type ExtensionModules<T extends Parameters = Parameters> = {
|
|
77
77
|
quickInsert?: ExtensionModule<T>[];
|
|
78
78
|
nodes?: ExtensionModuleNodes<T>;
|
|
79
79
|
fields?: ExtensionModuleFields<T>;
|
|
80
80
|
autoConvert?: ExtensionModuleAutoConvert;
|
|
81
81
|
contextualToolbars?: ContextualToolbar[];
|
|
82
82
|
};
|
|
83
|
-
export
|
|
84
|
-
export
|
|
85
|
-
export
|
|
83
|
+
export type ExtensionQuickInsertModule = 'quickInsert';
|
|
84
|
+
export type ExtensionModuleType<T extends Parameters = Parameters> = Exclude<keyof ExtensionModules<T>, 'nodes' | 'fields'>;
|
|
85
|
+
export type ExtensionManifest<T extends Parameters = Parameters> = {
|
|
86
86
|
type: ExtensionType;
|
|
87
87
|
key: ExtensionKey;
|
|
88
88
|
title: string;
|
|
@@ -97,5 +97,5 @@ export declare type ExtensionManifest<T extends Parameters = Parameters> = {
|
|
|
97
97
|
};
|
|
98
98
|
modules: ExtensionModules<T>;
|
|
99
99
|
};
|
|
100
|
-
export
|
|
101
|
-
export
|
|
100
|
+
export type Icon = () => ExtensionIconModule;
|
|
101
|
+
export type Module<T extends Parameters> = MaybeESModule<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export
|
|
2
|
+
export type Option = {
|
|
3
3
|
label: string;
|
|
4
4
|
value: string;
|
|
5
5
|
description?: string;
|
|
@@ -12,7 +12,7 @@ export declare type Option = {
|
|
|
12
12
|
icon?: string | React.ReactNode;
|
|
13
13
|
};
|
|
14
14
|
import { Props as SmartUserPickerProps } from '@atlaskit/smart-user-picker';
|
|
15
|
-
export
|
|
15
|
+
export type UserFieldContext = Pick<SmartUserPickerProps, 'siteId' | 'principalId' | 'fieldId' | 'productKey' | 'containerId' | 'objectId' | 'childObjectId' | 'productAttributes' | 'includeUsers'>;
|
|
16
16
|
interface BaseFieldDefinition {
|
|
17
17
|
description?: string;
|
|
18
18
|
label: string;
|
|
@@ -43,7 +43,7 @@ export interface EnumRadioFieldRequired extends EnumRadioFieldBase {
|
|
|
43
43
|
isRequired: true;
|
|
44
44
|
defaultValue?: string;
|
|
45
45
|
}
|
|
46
|
-
export
|
|
46
|
+
export type EnumRadioField = EnumRadioFieldDefaulted | EnumRadioFieldRequired;
|
|
47
47
|
export interface EnumMultipleSelectField extends BaseEnumField {
|
|
48
48
|
style: 'select';
|
|
49
49
|
isMultiple: true;
|
|
@@ -55,8 +55,8 @@ export interface EnumCheckboxField extends BaseEnumField {
|
|
|
55
55
|
isMultiple: true;
|
|
56
56
|
defaultValue?: string[];
|
|
57
57
|
}
|
|
58
|
-
export
|
|
59
|
-
export
|
|
58
|
+
export type EnumSelectField = EnumSingleSelectField | EnumMultipleSelectField;
|
|
59
|
+
export type EnumField = EnumSelectField | EnumRadioField | EnumCheckboxField;
|
|
60
60
|
export interface StringOneLineField extends BaseFieldDefinition {
|
|
61
61
|
type: 'string';
|
|
62
62
|
style?: 'oneline';
|
|
@@ -72,7 +72,7 @@ export interface StringMultilineField extends BaseFieldDefinition {
|
|
|
72
72
|
minimumRows: number;
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
|
-
export
|
|
75
|
+
export type StringField = StringOneLineField | StringMultilineField;
|
|
76
76
|
export interface NumberField extends BaseFieldDefinition {
|
|
77
77
|
type: 'number';
|
|
78
78
|
defaultValue?: number;
|
|
@@ -103,7 +103,7 @@ export interface DateRangeResult {
|
|
|
103
103
|
from?: string;
|
|
104
104
|
to?: string;
|
|
105
105
|
}
|
|
106
|
-
export
|
|
106
|
+
export type FieldHandlerLink = {
|
|
107
107
|
type: string;
|
|
108
108
|
};
|
|
109
109
|
interface BaseCustomField extends BaseFieldDefinition {
|
|
@@ -132,9 +132,9 @@ export interface UserField extends BaseFieldDefinition {
|
|
|
132
132
|
provider: FieldHandlerLink;
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
export
|
|
136
|
-
export
|
|
137
|
-
export
|
|
135
|
+
export type CustomField = CustomSingleField | CustomMultipleField;
|
|
136
|
+
export type NativeField = EnumField | StringField | NumberField | BooleanField | ColorField | DateField | DateRangeField;
|
|
137
|
+
export type NestedFieldDefinition = NativeField | CustomField | UserField;
|
|
138
138
|
export interface Fieldset extends BaseFieldDefinition {
|
|
139
139
|
type: 'fieldset';
|
|
140
140
|
fields: NestedFieldDefinition[];
|
|
@@ -144,7 +144,7 @@ export interface Fieldset extends BaseFieldDefinition {
|
|
|
144
144
|
showTitle?: boolean;
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
|
-
export
|
|
147
|
+
export type FieldDefinition = NestedFieldDefinition | Fieldset | GroupingField;
|
|
148
148
|
export declare const isFieldset: (field: FieldDefinition) => field is Fieldset;
|
|
149
149
|
export declare const isTabGroup: (field: FieldDefinition) => field is TabGroupField;
|
|
150
150
|
export declare const isTabField: (field: any) => field is TabField;
|
|
@@ -167,5 +167,5 @@ export interface TabField extends Omit<GroupedField, 'fields'> {
|
|
|
167
167
|
type: 'tab';
|
|
168
168
|
fields: (NestedFieldDefinition | ExpandField)[];
|
|
169
169
|
}
|
|
170
|
-
export
|
|
170
|
+
export type GroupingField = ExpandField | TabGroupField;
|
|
171
171
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
2
2
|
import { ExtensionModuleActionHandler, ExtensionType, Icon } from './extension-manifest';
|
|
3
|
-
export
|
|
3
|
+
export type MenuItem = {
|
|
4
4
|
key: string;
|
|
5
5
|
extensionType: ExtensionType;
|
|
6
6
|
title: string;
|
|
@@ -13,6 +13,6 @@ export declare type MenuItem = {
|
|
|
13
13
|
icon: Icon;
|
|
14
14
|
node: ADFEntity | ExtensionModuleActionHandler;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type MenuItemMap = {
|
|
17
17
|
[key: string]: MenuItem;
|
|
18
18
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ExtractPluginSharedState, NextEditorPluginMetadata, PluginDependenciesAPI, PluginInjectionAPI } from '../types/next-editor-plugin';
|
|
2
|
-
|
|
2
|
+
type NamedPluginStatesFromInjectionAPI<API extends PluginInjectionAPI<any, any> | undefined, PluginList extends string[]> = Readonly<{
|
|
3
3
|
[K in PluginList[number] as `${K}State`]: API extends PluginInjectionAPI<any, any> ? API['dependencies'][K] extends PluginDependenciesAPI<infer Plugin> | undefined ? ExtractPluginSharedState<Plugin> | undefined : never : never;
|
|
4
4
|
}>;
|
|
5
|
-
|
|
5
|
+
type ExtractPluginNames<Name extends string, Metadata extends NextEditorPluginMetadata> = keyof PluginInjectionAPI<Name, Metadata>['dependencies'];
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
8
8
|
* Used to return the current plugin state of
|
package/dist/types/i18n/cs.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.action': string;
|
|
3
9
|
'fabric.editor.action.description': string;
|
|
@@ -124,10 +130,4 @@ declare const _default: {
|
|
|
124
130
|
'fabric.theme.white': string;
|
|
125
131
|
'fabric.theme.yellow': string;
|
|
126
132
|
};
|
|
127
|
-
/**
|
|
128
|
-
* NOTE:
|
|
129
|
-
*
|
|
130
|
-
* This file is automatically generated by Traduki 2.0.
|
|
131
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
132
|
-
*/
|
|
133
133
|
export default _default;
|
package/dist/types/i18n/da.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.action': string;
|
|
3
9
|
'fabric.editor.action.description': string;
|
|
@@ -124,10 +130,4 @@ declare const _default: {
|
|
|
124
130
|
'fabric.theme.white': string;
|
|
125
131
|
'fabric.theme.yellow': string;
|
|
126
132
|
};
|
|
127
|
-
/**
|
|
128
|
-
* NOTE:
|
|
129
|
-
*
|
|
130
|
-
* This file is automatically generated by Traduki 2.0.
|
|
131
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
132
|
-
*/
|
|
133
133
|
export default _default;
|
package/dist/types/i18n/de.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.action': string;
|
|
3
9
|
'fabric.editor.action.description': string;
|
|
@@ -124,10 +130,4 @@ declare const _default: {
|
|
|
124
130
|
'fabric.theme.white': string;
|
|
125
131
|
'fabric.theme.yellow': string;
|
|
126
132
|
};
|
|
127
|
-
/**
|
|
128
|
-
* NOTE:
|
|
129
|
-
*
|
|
130
|
-
* This file is automatically generated by Traduki 2.0.
|
|
131
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
132
|
-
*/
|
|
133
133
|
export default _default;
|
package/dist/types/i18n/en.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.action': string;
|
|
3
9
|
'fabric.editor.action.description': string;
|
|
@@ -124,10 +130,4 @@ declare const _default: {
|
|
|
124
130
|
'fabric.theme.white': string;
|
|
125
131
|
'fabric.theme.yellow': string;
|
|
126
132
|
};
|
|
127
|
-
/**
|
|
128
|
-
* NOTE:
|
|
129
|
-
*
|
|
130
|
-
* This file is automatically generated by Traduki 2.0.
|
|
131
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
132
|
-
*/
|
|
133
133
|
export default _default;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.action': string;
|
|
3
9
|
'fabric.editor.action.description': string;
|
|
@@ -124,10 +130,4 @@ declare const _default: {
|
|
|
124
130
|
'fabric.theme.white': string;
|
|
125
131
|
'fabric.theme.yellow': string;
|
|
126
132
|
};
|
|
127
|
-
/**
|
|
128
|
-
* NOTE:
|
|
129
|
-
*
|
|
130
|
-
* This file is automatically generated by Traduki 2.0.
|
|
131
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
132
|
-
*/
|
|
133
133
|
export default _default;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.action': string;
|
|
3
9
|
'fabric.editor.action.description': string;
|
|
@@ -106,10 +112,4 @@ declare const _default: {
|
|
|
106
112
|
'fabric.theme.white': string;
|
|
107
113
|
'fabric.theme.yellow': string;
|
|
108
114
|
};
|
|
109
|
-
/**
|
|
110
|
-
* NOTE:
|
|
111
|
-
*
|
|
112
|
-
* This file is automatically generated by Traduki 2.0.
|
|
113
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
114
|
-
*/
|
|
115
115
|
export default _default;
|
package/dist/types/i18n/es.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.action': string;
|
|
3
9
|
'fabric.editor.action.description': string;
|
|
@@ -124,10 +130,4 @@ declare const _default: {
|
|
|
124
130
|
'fabric.theme.white': string;
|
|
125
131
|
'fabric.theme.yellow': string;
|
|
126
132
|
};
|
|
127
|
-
/**
|
|
128
|
-
* NOTE:
|
|
129
|
-
*
|
|
130
|
-
* This file is automatically generated by Traduki 2.0.
|
|
131
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
132
|
-
*/
|
|
133
133
|
export default _default;
|
package/dist/types/i18n/et.d.ts
CHANGED
package/dist/types/i18n/fi.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.action': string;
|
|
3
9
|
'fabric.editor.action.description': string;
|
|
@@ -124,10 +130,4 @@ declare const _default: {
|
|
|
124
130
|
'fabric.theme.white': string;
|
|
125
131
|
'fabric.theme.yellow': string;
|
|
126
132
|
};
|
|
127
|
-
/**
|
|
128
|
-
* NOTE:
|
|
129
|
-
*
|
|
130
|
-
* This file is automatically generated by Traduki 2.0.
|
|
131
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
132
|
-
*/
|
|
133
133
|
export default _default;
|
package/dist/types/i18n/fr.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.action': string;
|
|
3
9
|
'fabric.editor.action.description': string;
|
|
@@ -124,10 +130,4 @@ declare const _default: {
|
|
|
124
130
|
'fabric.theme.white': string;
|
|
125
131
|
'fabric.theme.yellow': string;
|
|
126
132
|
};
|
|
127
|
-
/**
|
|
128
|
-
* NOTE:
|
|
129
|
-
*
|
|
130
|
-
* This file is automatically generated by Traduki 2.0.
|
|
131
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
132
|
-
*/
|
|
133
133
|
export default _default;
|
package/dist/types/i18n/hu.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.action': string;
|
|
3
9
|
'fabric.editor.action.description': string;
|
|
@@ -124,10 +130,4 @@ declare const _default: {
|
|
|
124
130
|
'fabric.theme.white': string;
|
|
125
131
|
'fabric.theme.yellow': string;
|
|
126
132
|
};
|
|
127
|
-
/**
|
|
128
|
-
* NOTE:
|
|
129
|
-
*
|
|
130
|
-
* This file is automatically generated by Traduki 2.0.
|
|
131
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
132
|
-
*/
|
|
133
133
|
export default _default;
|
package/dist/types/i18n/it.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.action': string;
|
|
3
9
|
'fabric.editor.action.description': string;
|
|
@@ -124,10 +130,4 @@ declare const _default: {
|
|
|
124
130
|
'fabric.theme.white': string;
|
|
125
131
|
'fabric.theme.yellow': string;
|
|
126
132
|
};
|
|
127
|
-
/**
|
|
128
|
-
* NOTE:
|
|
129
|
-
*
|
|
130
|
-
* This file is automatically generated by Traduki 2.0.
|
|
131
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
132
|
-
*/
|
|
133
133
|
export default _default;
|
package/dist/types/i18n/ja.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.action': string;
|
|
3
9
|
'fabric.editor.action.description': string;
|
|
@@ -124,10 +130,4 @@ declare const _default: {
|
|
|
124
130
|
'fabric.theme.white': string;
|
|
125
131
|
'fabric.theme.yellow': string;
|
|
126
132
|
};
|
|
127
|
-
/**
|
|
128
|
-
* NOTE:
|
|
129
|
-
*
|
|
130
|
-
* This file is automatically generated by Traduki 2.0.
|
|
131
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
132
|
-
*/
|
|
133
133
|
export default _default;
|
package/dist/types/i18n/ko.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.action': string;
|
|
3
9
|
'fabric.editor.action.description': string;
|
|
@@ -124,10 +130,4 @@ declare const _default: {
|
|
|
124
130
|
'fabric.theme.white': string;
|
|
125
131
|
'fabric.theme.yellow': string;
|
|
126
132
|
};
|
|
127
|
-
/**
|
|
128
|
-
* NOTE:
|
|
129
|
-
*
|
|
130
|
-
* This file is automatically generated by Traduki 2.0.
|
|
131
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
132
|
-
*/
|
|
133
133
|
export default _default;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* ED-16073:
|
|
5
|
+
* This was manually updated since the original `@atlaskit/i18n-tools` has been deprecated
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
zh: string;
|
|
3
9
|
zh_TW: string;
|
|
@@ -26,10 +32,4 @@ declare const _default: {
|
|
|
26
32
|
uk: string;
|
|
27
33
|
vi: string;
|
|
28
34
|
};
|
|
29
|
-
/**
|
|
30
|
-
* NOTE:
|
|
31
|
-
*
|
|
32
|
-
* ED-16073:
|
|
33
|
-
* This was manually updated since the original `@atlaskit/i18n-tools` has been deprecated
|
|
34
|
-
*/
|
|
35
35
|
export default _default;
|
package/dist/types/i18n/nb.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.action': string;
|
|
3
9
|
'fabric.editor.action.description': string;
|
|
@@ -124,10 +130,4 @@ declare const _default: {
|
|
|
124
130
|
'fabric.theme.white': string;
|
|
125
131
|
'fabric.theme.yellow': string;
|
|
126
132
|
};
|
|
127
|
-
/**
|
|
128
|
-
* NOTE:
|
|
129
|
-
*
|
|
130
|
-
* This file is automatically generated by Traduki 2.0.
|
|
131
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
132
|
-
*/
|
|
133
133
|
export default _default;
|
package/dist/types/i18n/nl.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.action': string;
|
|
3
9
|
'fabric.editor.action.description': string;
|
|
@@ -124,10 +130,4 @@ declare const _default: {
|
|
|
124
130
|
'fabric.theme.white': string;
|
|
125
131
|
'fabric.theme.yellow': string;
|
|
126
132
|
};
|
|
127
|
-
/**
|
|
128
|
-
* NOTE:
|
|
129
|
-
*
|
|
130
|
-
* This file is automatically generated by Traduki 2.0.
|
|
131
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
132
|
-
*/
|
|
133
133
|
export default _default;
|
package/dist/types/i18n/pl.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.action': string;
|
|
3
9
|
'fabric.editor.action.description': string;
|
|
@@ -124,10 +130,4 @@ declare const _default: {
|
|
|
124
130
|
'fabric.theme.white': string;
|
|
125
131
|
'fabric.theme.yellow': string;
|
|
126
132
|
};
|
|
127
|
-
/**
|
|
128
|
-
* NOTE:
|
|
129
|
-
*
|
|
130
|
-
* This file is automatically generated by Traduki 2.0.
|
|
131
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
132
|
-
*/
|
|
133
133
|
export default _default;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.action': string;
|
|
3
9
|
'fabric.editor.action.description': string;
|
|
@@ -124,10 +130,4 @@ declare const _default: {
|
|
|
124
130
|
'fabric.theme.white': string;
|
|
125
131
|
'fabric.theme.yellow': string;
|
|
126
132
|
};
|
|
127
|
-
/**
|
|
128
|
-
* NOTE:
|
|
129
|
-
*
|
|
130
|
-
* This file is automatically generated by Traduki 2.0.
|
|
131
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
132
|
-
*/
|
|
133
133
|
export default _default;
|
package/dist/types/i18n/ru.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.action': string;
|
|
3
9
|
'fabric.editor.action.description': string;
|
|
@@ -124,10 +130,4 @@ declare const _default: {
|
|
|
124
130
|
'fabric.theme.white': string;
|
|
125
131
|
'fabric.theme.yellow': string;
|
|
126
132
|
};
|
|
127
|
-
/**
|
|
128
|
-
* NOTE:
|
|
129
|
-
*
|
|
130
|
-
* This file is automatically generated by Traduki 2.0.
|
|
131
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
132
|
-
*/
|
|
133
133
|
export default _default;
|