@atlaskit/editor-plugin-extension 0.4.2 → 0.5.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/.eslintrc.js +26 -0
- package/CHANGELOG.md +16 -0
- package/dist/cjs/actions.js +236 -0
- package/dist/cjs/commands.js +122 -0
- package/dist/cjs/context-panel.js +269 -0
- package/dist/cjs/extension-api.js +266 -0
- package/dist/cjs/index.js +8 -1
- package/dist/cjs/plugin-factory.js +32 -0
- package/dist/cjs/plugin-key.js +8 -0
- package/dist/cjs/plugin.js +147 -0
- package/dist/cjs/pm-plugins/keymap.js +21 -0
- package/dist/cjs/pm-plugins/macro/actions.js +186 -0
- package/dist/cjs/pm-plugins/macro/index.js +72 -0
- package/dist/cjs/pm-plugins/macro/plugin-key.js +8 -0
- package/dist/cjs/pm-plugins/macro/types.js +5 -0
- package/dist/cjs/pm-plugins/main.js +323 -0
- package/dist/cjs/pm-plugins/unique-id.js +80 -0
- package/dist/cjs/pm-plugins/utils.js +75 -0
- package/dist/cjs/reducer.js +18 -0
- package/dist/cjs/toolbar.js +242 -0
- package/dist/cjs/ui/ConfigPanel/ConfigPanel.js +475 -0
- package/dist/cjs/ui/ConfigPanel/ConfigPanelFieldsLoader.js +122 -0
- package/dist/cjs/ui/ConfigPanel/ConfigPanelLoader.js +23 -0
- package/dist/cjs/ui/ConfigPanel/ErrorMessage/ErrorImage.js +76 -0
- package/dist/cjs/ui/ConfigPanel/ErrorMessage/index.js +33 -0
- package/dist/cjs/ui/ConfigPanel/FieldMessages.js +105 -0
- package/dist/cjs/ui/ConfigPanel/Fields/Boolean.js +150 -0
- package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +101 -0
- package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +420 -0
- package/dist/cjs/ui/ConfigPanel/Fields/CustomSelect.js +192 -0
- package/dist/cjs/ui/ConfigPanel/Fields/Date.js +55 -0
- package/dist/cjs/ui/ConfigPanel/Fields/DateRange.js +160 -0
- package/dist/cjs/ui/ConfigPanel/Fields/Enum.js +41 -0
- package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +88 -0
- package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +270 -0
- package/dist/cjs/ui/ConfigPanel/Fields/Number.js +64 -0
- package/dist/cjs/ui/ConfigPanel/Fields/RadioGroup.js +56 -0
- package/dist/cjs/ui/ConfigPanel/Fields/Select.js +60 -0
- package/dist/cjs/ui/ConfigPanel/Fields/SelectItem.js +53 -0
- package/dist/cjs/ui/ConfigPanel/Fields/String.js +75 -0
- package/dist/cjs/ui/ConfigPanel/Fields/TabGroup.js +73 -0
- package/dist/cjs/ui/ConfigPanel/Fields/UnhandledType.js +19 -0
- package/dist/cjs/ui/ConfigPanel/Fields/UserSelect.js +268 -0
- package/dist/cjs/ui/ConfigPanel/Fields/common/RequiredIndicator.js +12 -0
- package/dist/cjs/ui/ConfigPanel/FormContent.js +231 -0
- package/dist/cjs/ui/ConfigPanel/FormErrorBoundary.js +140 -0
- package/dist/cjs/ui/ConfigPanel/Header.js +148 -0
- package/dist/cjs/ui/ConfigPanel/LoadingState.js +25 -0
- package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +61 -0
- package/dist/cjs/ui/ConfigPanel/constants.js +13 -0
- package/dist/cjs/ui/ConfigPanel/index.js +9 -0
- package/dist/cjs/ui/ConfigPanel/messages.js +99 -0
- package/dist/cjs/ui/ConfigPanel/transformers.js +631 -0
- package/dist/cjs/ui/ConfigPanel/types.js +15 -0
- package/dist/cjs/ui/ConfigPanel/use-abortable-effect/index.js +56 -0
- package/dist/cjs/ui/ConfigPanel/use-state-from-promise/index.js +41 -0
- package/dist/cjs/ui/ConfigPanel/utils.js +116 -0
- package/dist/cjs/ui/SaveIndicator/SaveIndicator.js +79 -0
- package/dist/cjs/ui/SaveIndicator/messages.js +14 -0
- package/dist/cjs/ui/SaveIndicator/types.js +5 -0
- package/dist/cjs/utils.js +73 -0
- package/dist/es2019/actions.js +203 -0
- package/dist/es2019/commands.js +99 -0
- package/dist/es2019/context-panel.js +181 -0
- package/dist/es2019/extension-api.js +284 -0
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/plugin-factory.js +26 -0
- package/dist/es2019/plugin-key.js +2 -0
- package/dist/es2019/plugin.js +138 -0
- package/dist/es2019/pm-plugins/keymap.js +15 -0
- package/dist/es2019/pm-plugins/macro/actions.js +152 -0
- package/dist/es2019/pm-plugins/macro/index.js +36 -0
- package/dist/es2019/pm-plugins/macro/plugin-key.js +2 -0
- package/dist/es2019/pm-plugins/macro/types.js +1 -0
- package/dist/es2019/pm-plugins/main.js +230 -0
- package/dist/es2019/pm-plugins/unique-id.js +69 -0
- package/dist/es2019/pm-plugins/utils.js +30 -0
- package/dist/es2019/reducer.js +11 -0
- package/dist/es2019/toolbar.js +236 -0
- package/dist/es2019/ui/ConfigPanel/ConfigPanel.js +415 -0
- package/dist/es2019/ui/ConfigPanel/ConfigPanelFieldsLoader.js +100 -0
- package/dist/es2019/ui/ConfigPanel/ConfigPanelLoader.js +7 -0
- package/dist/es2019/ui/ConfigPanel/ErrorMessage/ErrorImage.js +66 -0
- package/dist/es2019/ui/ConfigPanel/ErrorMessage/index.js +25 -0
- package/dist/es2019/ui/ConfigPanel/FieldMessages.js +101 -0
- package/dist/es2019/ui/ConfigPanel/Fields/Boolean.js +138 -0
- package/dist/es2019/ui/ConfigPanel/Fields/CheckboxGroup.js +96 -0
- package/dist/es2019/ui/ConfigPanel/Fields/ColorPicker.js +411 -0
- package/dist/es2019/ui/ConfigPanel/Fields/CustomSelect.js +132 -0
- package/dist/es2019/ui/ConfigPanel/Fields/Date.js +50 -0
- package/dist/es2019/ui/ConfigPanel/Fields/DateRange.js +139 -0
- package/dist/es2019/ui/ConfigPanel/Fields/Enum.js +35 -0
- package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +73 -0
- package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +227 -0
- package/dist/es2019/ui/ConfigPanel/Fields/Number.js +61 -0
- package/dist/es2019/ui/ConfigPanel/Fields/RadioGroup.js +40 -0
- package/dist/es2019/ui/ConfigPanel/Fields/Select.js +50 -0
- package/dist/es2019/ui/ConfigPanel/Fields/SelectItem.js +47 -0
- package/dist/es2019/ui/ConfigPanel/Fields/String.js +67 -0
- package/dist/es2019/ui/ConfigPanel/Fields/TabGroup.js +57 -0
- package/dist/es2019/ui/ConfigPanel/Fields/UnhandledType.js +11 -0
- package/dist/es2019/ui/ConfigPanel/Fields/UserSelect.js +194 -0
- package/dist/es2019/ui/ConfigPanel/Fields/common/RequiredIndicator.js +5 -0
- package/dist/es2019/ui/ConfigPanel/FormContent.js +225 -0
- package/dist/es2019/ui/ConfigPanel/FormErrorBoundary.js +100 -0
- package/dist/es2019/ui/ConfigPanel/Header.js +140 -0
- package/dist/es2019/ui/ConfigPanel/LoadingState.js +15 -0
- package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +52 -0
- package/dist/es2019/ui/ConfigPanel/constants.js +7 -0
- package/dist/es2019/ui/ConfigPanel/index.js +2 -0
- package/dist/es2019/ui/ConfigPanel/messages.js +93 -0
- package/dist/es2019/ui/ConfigPanel/transformers.js +367 -0
- package/dist/es2019/ui/ConfigPanel/types.js +9 -0
- package/dist/es2019/ui/ConfigPanel/use-abortable-effect/index.js +46 -0
- package/dist/es2019/ui/ConfigPanel/use-state-from-promise/index.js +30 -0
- package/dist/es2019/ui/ConfigPanel/utils.js +86 -0
- package/dist/es2019/ui/SaveIndicator/SaveIndicator.js +66 -0
- package/dist/es2019/ui/SaveIndicator/messages.js +8 -0
- package/dist/es2019/ui/SaveIndicator/types.js +1 -0
- package/dist/es2019/utils.js +65 -0
- package/dist/esm/actions.js +223 -0
- package/dist/esm/commands.js +113 -0
- package/dist/esm/context-panel.js +261 -0
- package/dist/esm/extension-api.js +259 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/plugin-factory.js +25 -0
- package/dist/esm/plugin-key.js +2 -0
- package/dist/esm/plugin.js +140 -0
- package/dist/esm/pm-plugins/keymap.js +15 -0
- package/dist/esm/pm-plugins/macro/actions.js +179 -0
- package/dist/esm/pm-plugins/macro/index.js +42 -0
- package/dist/esm/pm-plugins/macro/plugin-key.js +2 -0
- package/dist/esm/pm-plugins/macro/types.js +1 -0
- package/dist/esm/pm-plugins/main.js +298 -0
- package/dist/esm/pm-plugins/unique-id.js +74 -0
- package/dist/esm/pm-plugins/utils.js +68 -0
- package/dist/esm/reducer.js +11 -0
- package/dist/esm/toolbar.js +235 -0
- package/dist/esm/ui/ConfigPanel/ConfigPanel.js +465 -0
- package/dist/esm/ui/ConfigPanel/ConfigPanelFieldsLoader.js +112 -0
- package/dist/esm/ui/ConfigPanel/ConfigPanelLoader.js +11 -0
- package/dist/esm/ui/ConfigPanel/ErrorMessage/ErrorImage.js +68 -0
- package/dist/esm/ui/ConfigPanel/ErrorMessage/index.js +26 -0
- package/dist/esm/ui/ConfigPanel/FieldMessages.js +97 -0
- package/dist/esm/ui/ConfigPanel/Fields/Boolean.js +140 -0
- package/dist/esm/ui/ConfigPanel/Fields/CheckboxGroup.js +95 -0
- package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +414 -0
- package/dist/esm/ui/ConfigPanel/Fields/CustomSelect.js +182 -0
- package/dist/esm/ui/ConfigPanel/Fields/Date.js +48 -0
- package/dist/esm/ui/ConfigPanel/Fields/DateRange.js +154 -0
- package/dist/esm/ui/ConfigPanel/Fields/Enum.js +34 -0
- package/dist/esm/ui/ConfigPanel/Fields/Expand.js +77 -0
- package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +261 -0
- package/dist/esm/ui/ConfigPanel/Fields/Number.js +57 -0
- package/dist/esm/ui/ConfigPanel/Fields/RadioGroup.js +46 -0
- package/dist/esm/ui/ConfigPanel/Fields/Select.js +50 -0
- package/dist/esm/ui/ConfigPanel/Fields/SelectItem.js +45 -0
- package/dist/esm/ui/ConfigPanel/Fields/String.js +65 -0
- package/dist/esm/ui/ConfigPanel/Fields/TabGroup.js +62 -0
- package/dist/esm/ui/ConfigPanel/Fields/UnhandledType.js +10 -0
- package/dist/esm/ui/ConfigPanel/Fields/UserSelect.js +258 -0
- package/dist/esm/ui/ConfigPanel/Fields/common/RequiredIndicator.js +5 -0
- package/dist/esm/ui/ConfigPanel/FormContent.js +223 -0
- package/dist/esm/ui/ConfigPanel/FormErrorBoundary.js +133 -0
- package/dist/esm/ui/ConfigPanel/Header.js +140 -0
- package/dist/esm/ui/ConfigPanel/LoadingState.js +17 -0
- package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +53 -0
- package/dist/esm/ui/ConfigPanel/constants.js +7 -0
- package/dist/esm/ui/ConfigPanel/index.js +2 -0
- package/dist/esm/ui/ConfigPanel/messages.js +93 -0
- package/dist/esm/ui/ConfigPanel/transformers.js +624 -0
- package/dist/esm/ui/ConfigPanel/types.js +9 -0
- package/dist/esm/ui/ConfigPanel/use-abortable-effect/index.js +49 -0
- package/dist/esm/ui/ConfigPanel/use-state-from-promise/index.js +34 -0
- package/dist/esm/ui/ConfigPanel/utils.js +109 -0
- package/dist/esm/ui/SaveIndicator/SaveIndicator.js +72 -0
- package/dist/esm/ui/SaveIndicator/messages.js +8 -0
- package/dist/esm/ui/SaveIndicator/types.js +1 -0
- package/dist/esm/utils.js +67 -0
- package/dist/types/actions.d.ts +20 -0
- package/dist/types/commands.d.ts +15 -0
- package/dist/types/context-panel.d.ts +10 -0
- package/dist/types/extension-api.d.ts +12 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/plugin-factory.d.ts +4 -0
- package/dist/types/plugin-key.d.ts +3 -0
- package/dist/types/plugin.d.ts +2 -0
- package/dist/types/pm-plugins/keymap.d.ts +3 -0
- package/dist/types/pm-plugins/macro/actions.d.ts +9 -0
- package/dist/types/pm-plugins/macro/index.d.ts +8 -0
- package/dist/types/pm-plugins/macro/plugin-key.d.ts +3 -0
- package/dist/types/pm-plugins/macro/types.d.ts +4 -0
- package/dist/types/pm-plugins/main.d.ts +25 -0
- package/dist/types/pm-plugins/unique-id.d.ts +3 -0
- package/dist/types/pm-plugins/utils.d.ts +3 -0
- package/dist/types/reducer.d.ts +2 -0
- package/dist/types/toolbar.d.ts +44 -0
- package/dist/types/types.d.ts +27 -2
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +22 -0
- package/dist/types/ui/ConfigPanel/ConfigPanelFieldsLoader.d.ts +21 -0
- package/dist/types/ui/ConfigPanel/ConfigPanelLoader.d.ts +5 -0
- package/dist/types/ui/ConfigPanel/ErrorMessage/ErrorImage.d.ts +4 -0
- package/dist/types/ui/ConfigPanel/ErrorMessage/index.d.ts +10 -0
- package/dist/types/ui/ConfigPanel/FieldMessages.d.ts +12 -0
- package/dist/types/ui/ConfigPanel/Fields/Boolean.d.ts +8 -0
- package/dist/types/ui/ConfigPanel/Fields/CheckboxGroup.d.ts +8 -0
- package/dist/types/ui/ConfigPanel/Fields/ColorPicker.d.ts +20 -0
- package/dist/types/ui/ConfigPanel/Fields/CustomSelect.d.ts +24 -0
- package/dist/types/ui/ConfigPanel/Fields/Date.d.ts +20 -0
- package/dist/types/ui/ConfigPanel/Fields/DateRange.d.ts +20 -0
- package/dist/types/ui/ConfigPanel/Fields/Enum.d.ts +10 -0
- package/dist/types/ui/ConfigPanel/Fields/Expand.d.ts +16 -0
- package/dist/types/ui/ConfigPanel/Fields/Fieldset.d.ts +19 -0
- package/dist/types/ui/ConfigPanel/Fields/Number.d.ts +10 -0
- package/dist/types/ui/ConfigPanel/Fields/RadioGroup.d.ts +8 -0
- package/dist/types/ui/ConfigPanel/Fields/Select.d.ts +11 -0
- package/dist/types/ui/ConfigPanel/Fields/SelectItem.d.ts +5 -0
- package/dist/types/ui/ConfigPanel/Fields/String.d.ts +10 -0
- package/dist/types/ui/ConfigPanel/Fields/TabGroup.d.ts +14 -0
- package/dist/types/ui/ConfigPanel/Fields/UnhandledType.d.ts +6 -0
- package/dist/types/ui/ConfigPanel/Fields/UserSelect.d.ts +10 -0
- package/dist/types/ui/ConfigPanel/Fields/common/RequiredIndicator.d.ts +1 -0
- package/dist/types/ui/ConfigPanel/FormContent.d.ts +4 -0
- package/dist/types/ui/ConfigPanel/FormErrorBoundary.d.ts +16 -0
- package/dist/types/ui/ConfigPanel/Header.d.ts +23 -0
- package/dist/types/ui/ConfigPanel/LoadingState.d.ts +4 -0
- package/dist/types/ui/ConfigPanel/NestedForms/RemovableField.d.ts +19 -0
- package/dist/types/ui/ConfigPanel/constants.d.ts +2 -0
- package/dist/types/ui/ConfigPanel/index.d.ts +2 -0
- package/dist/types/ui/ConfigPanel/messages.d.ts +92 -0
- package/dist/types/ui/ConfigPanel/transformers.d.ts +9 -0
- package/dist/types/ui/ConfigPanel/types.d.ts +36 -0
- package/dist/types/ui/ConfigPanel/use-abortable-effect/index.d.ts +16 -0
- package/dist/types/ui/ConfigPanel/use-state-from-promise/index.d.ts +15 -0
- package/dist/types/ui/ConfigPanel/utils.d.ts +16 -0
- package/dist/types/ui/SaveIndicator/SaveIndicator.d.ts +4 -0
- package/dist/types/ui/SaveIndicator/messages.d.ts +7 -0
- package/dist/types/ui/SaveIndicator/types.d.ts +11 -0
- package/dist/types/utils.d.ts +15 -0
- package/dist/types-ts4.5/actions.d.ts +20 -0
- package/dist/types-ts4.5/commands.d.ts +15 -0
- package/dist/types-ts4.5/context-panel.d.ts +10 -0
- package/dist/types-ts4.5/extension-api.d.ts +12 -0
- package/dist/types-ts4.5/index.d.ts +2 -1
- package/dist/types-ts4.5/plugin-factory.d.ts +4 -0
- package/dist/types-ts4.5/plugin-key.d.ts +3 -0
- package/dist/types-ts4.5/plugin.d.ts +2 -0
- package/dist/types-ts4.5/pm-plugins/keymap.d.ts +3 -0
- package/dist/types-ts4.5/pm-plugins/macro/actions.d.ts +9 -0
- package/dist/types-ts4.5/pm-plugins/macro/index.d.ts +8 -0
- package/dist/types-ts4.5/pm-plugins/macro/plugin-key.d.ts +3 -0
- package/dist/types-ts4.5/pm-plugins/macro/types.d.ts +4 -0
- package/dist/types-ts4.5/pm-plugins/main.d.ts +25 -0
- package/dist/types-ts4.5/pm-plugins/unique-id.d.ts +3 -0
- package/dist/types-ts4.5/pm-plugins/utils.d.ts +3 -0
- package/dist/types-ts4.5/reducer.d.ts +2 -0
- package/dist/types-ts4.5/toolbar.d.ts +44 -0
- package/dist/types-ts4.5/types.d.ts +27 -2
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanel.d.ts +22 -0
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanelFieldsLoader.d.ts +21 -0
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanelLoader.d.ts +5 -0
- package/dist/types-ts4.5/ui/ConfigPanel/ErrorMessage/ErrorImage.d.ts +4 -0
- package/dist/types-ts4.5/ui/ConfigPanel/ErrorMessage/index.d.ts +10 -0
- package/dist/types-ts4.5/ui/ConfigPanel/FieldMessages.d.ts +12 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Boolean.d.ts +8 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/CheckboxGroup.d.ts +8 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/ColorPicker.d.ts +20 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/CustomSelect.d.ts +24 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Date.d.ts +20 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/DateRange.d.ts +20 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Enum.d.ts +10 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Expand.d.ts +16 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Fieldset.d.ts +19 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Number.d.ts +10 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/RadioGroup.d.ts +8 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Select.d.ts +11 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/SelectItem.d.ts +5 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/String.d.ts +10 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/TabGroup.d.ts +14 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/UnhandledType.d.ts +6 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/UserSelect.d.ts +10 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/common/RequiredIndicator.d.ts +1 -0
- package/dist/types-ts4.5/ui/ConfigPanel/FormContent.d.ts +4 -0
- package/dist/types-ts4.5/ui/ConfigPanel/FormErrorBoundary.d.ts +16 -0
- package/dist/types-ts4.5/ui/ConfigPanel/Header.d.ts +23 -0
- package/dist/types-ts4.5/ui/ConfigPanel/LoadingState.d.ts +4 -0
- package/dist/types-ts4.5/ui/ConfigPanel/NestedForms/RemovableField.d.ts +19 -0
- package/dist/types-ts4.5/ui/ConfigPanel/constants.d.ts +2 -0
- package/dist/types-ts4.5/ui/ConfigPanel/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/ConfigPanel/messages.d.ts +92 -0
- package/dist/types-ts4.5/ui/ConfigPanel/transformers.d.ts +9 -0
- package/dist/types-ts4.5/ui/ConfigPanel/types.d.ts +39 -0
- package/dist/types-ts4.5/ui/ConfigPanel/use-abortable-effect/index.d.ts +16 -0
- package/dist/types-ts4.5/ui/ConfigPanel/use-state-from-promise/index.d.ts +18 -0
- package/dist/types-ts4.5/ui/ConfigPanel/utils.d.ts +16 -0
- package/dist/types-ts4.5/ui/SaveIndicator/SaveIndicator.d.ts +4 -0
- package/dist/types-ts4.5/ui/SaveIndicator/messages.d.ts +7 -0
- package/dist/types-ts4.5/ui/SaveIndicator/types.d.ts +11 -0
- package/dist/types-ts4.5/utils.d.ts +15 -0
- package/example-utils/config-panel/ConfigPanelWithExtensionPicker.tsx +217 -0
- package/example-utils/config-panel/ConfigPanelWithProviders.tsx +51 -0
- package/example-utils/config-panel/ExtensionNodePicker.tsx +141 -0
- package/example-utils/config-panel/FieldTypePicker.tsx +63 -0
- package/example-utils/config-panel/example-manifest-all-fields.ts +86 -0
- package/example-utils/config-panel/example-manifest-individual-fields.ts +85 -0
- package/example-utils/config-panel/fields.ts +611 -0
- package/package.json +49 -7
|
@@ -0,0 +1,12 @@
|
|
|
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 './types';
|
|
5
|
+
interface EditInLegacyMacroBrowserArgs {
|
|
6
|
+
view: EditorView;
|
|
7
|
+
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
8
|
+
macroProvider?: MacroProvider;
|
|
9
|
+
}
|
|
10
|
+
export declare const getEditInLegacyMacroBrowser: ({ view, macroProvider, editorAnalyticsAPI, }: EditInLegacyMacroBrowserArgs) => () => void;
|
|
11
|
+
export declare const createExtensionAPI: CreateExtensionAPI;
|
|
12
|
+
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export type { CreateExtensionAPI, ExtensionPlugin, ExtensionPluginOptions, RunMacroAutoConvert, } from './types';
|
|
1
|
+
export type { CreateExtensionAPI, ExtensionPlugin, ExtensionPluginOptions, RunMacroAutoConvert, RejectSave, } from './types';
|
|
2
|
+
export { extensionPlugin } from './plugin';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ExtensionState } from './types';
|
|
2
|
+
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: ExtensionState<import("@atlaskit/editor-common/extensions").Parameters> | ((state: import("prosemirror-state").EditorState) => ExtensionState<import("@atlaskit/editor-common/extensions").Parameters>)) => import("prosemirror-state").SafeStateField<ExtensionState<import("@atlaskit/editor-common/extensions").Parameters>>;
|
|
3
|
+
export declare const createCommand: <A = import("./types").ExtensionAction<import("@atlaskit/editor-common/extensions").Parameters>>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
4
|
+
export declare const getPluginState: (state: import("prosemirror-state").EditorState) => ExtensionState<import("@atlaskit/editor-common/extensions").Parameters>;
|
|
@@ -0,0 +1,9 @@
|
|
|
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>;
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
import type { MacroState } from './types';
|
|
5
|
+
export type { MacroProvider, MacroAttributes, ExtensionType, } from '@atlaskit/editor-common/provider-factory';
|
|
6
|
+
export { insertMacroFromMacroBrowser, resolveMacro, runMacroAutoConvert, setMacroProvider, } from './actions';
|
|
7
|
+
export type { MacroState };
|
|
8
|
+
export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory) => SafePlugin<any>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
+
import type { ExtensionHandlers, ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
3
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
4
|
+
import type { ContextIdentifierProvider, ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
|
+
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
6
|
+
import type { EditorAppearance, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
7
|
+
import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
|
|
8
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
9
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
|
+
import { createCommand, getPluginState } from '../plugin-factory';
|
|
11
|
+
import { pluginKey } from '../plugin-key';
|
|
12
|
+
import type { ExtensionPlugin } from '../types';
|
|
13
|
+
export declare const createExtensionProviderHandler: (view: EditorView) => (name: string, provider?: Promise<ExtensionProvider>) => Promise<void>;
|
|
14
|
+
export declare const createContextIdentifierProviderHandler: (view: EditorView) => (name: string, provider?: Promise<ContextIdentifierProvider>) => Promise<void>;
|
|
15
|
+
export declare const handleUpdate: ({ view, prevState, domAtPos, extensionHandlers, applyChange, }: {
|
|
16
|
+
view: EditorView;
|
|
17
|
+
prevState: EditorState;
|
|
18
|
+
domAtPos: EditorView['domAtPos'];
|
|
19
|
+
extensionHandlers: ExtensionHandlers;
|
|
20
|
+
applyChange: ApplyChangeHandler | undefined;
|
|
21
|
+
}) => true | undefined;
|
|
22
|
+
declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<ExtensionPlugin> | undefined, useLongPressSelection?: boolean, options?: {
|
|
23
|
+
appearance?: EditorAppearance;
|
|
24
|
+
}) => SafePlugin<import("../types").ExtensionState<import("@atlaskit/editor-common/extensions").Parameters>>;
|
|
25
|
+
export { pluginKey, createPlugin, createCommand, getPluginState };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
2
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
+
export declare const updateEditButton: (view: EditorView, extensionProvider: ExtensionProvider) => Promise<import("@atlaskit/editor-common/extensions").UpdateExtension<any> | undefined>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { FloatingToolbarHandler } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
|
|
4
|
+
import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
|
|
5
|
+
export declare const messages: {
|
|
6
|
+
edit: {
|
|
7
|
+
id: string;
|
|
8
|
+
defaultMessage: string;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
deleteElementTitle: {
|
|
12
|
+
id: string;
|
|
13
|
+
defaultMessage: string;
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
unnamedSource: {
|
|
17
|
+
id: string;
|
|
18
|
+
defaultMessage: string;
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
confirmDeleteLinkedModalOKButton: {
|
|
22
|
+
id: string;
|
|
23
|
+
defaultMessage: string;
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
confirmDeleteLinkedModalMessage: {
|
|
27
|
+
id: string;
|
|
28
|
+
defaultMessage: string;
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
confirmModalCheckboxLabel: {
|
|
32
|
+
id: string;
|
|
33
|
+
defaultMessage: string;
|
|
34
|
+
description: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
interface GetToolbarConfigProps {
|
|
38
|
+
breakoutEnabled: boolean | undefined;
|
|
39
|
+
hoverDecoration: HoverDecorationHandler | undefined;
|
|
40
|
+
applyChangeToContextPanel: ApplyChangeHandler | undefined;
|
|
41
|
+
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
42
|
+
}
|
|
43
|
+
export declare const getToolbarConfig: ({ breakoutEnabled, hoverDecoration, applyChangeToContextPanel, editorAnalyticsAPI, }: GetToolbarConfigProps) => FloatingToolbarHandler;
|
|
44
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { ExtensionAPI, ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
import type { MacroProvider } from '@atlaskit/editor-common/provider-factory';
|
|
2
|
+
import type { ExtensionAPI, ExtensionHandlers, ExtensionProvider, Parameters, TransformAfter, TransformBefore, UpdateExtension } from '@atlaskit/editor-common/extensions';
|
|
3
|
+
import type { ContextIdentifierProvider, MacroProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import type { EditorAppearance, LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
6
6
|
import type { ApplyChangeHandler, ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
@@ -10,6 +10,27 @@ import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
|
10
10
|
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
11
11
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
12
12
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
13
|
+
import type { forceAutoSave } from './commands';
|
|
14
|
+
export type RejectSave = (reason?: any) => void;
|
|
15
|
+
export type ExtensionState<T extends Parameters = Parameters> = {
|
|
16
|
+
localId?: string;
|
|
17
|
+
autoSaveResolve?: () => void;
|
|
18
|
+
autoSaveReject?: RejectSave;
|
|
19
|
+
showEditButton: boolean;
|
|
20
|
+
showContextPanel: boolean;
|
|
21
|
+
updateExtension?: Promise<UpdateExtension<T> | void>;
|
|
22
|
+
element?: HTMLElement;
|
|
23
|
+
extensionProvider?: ExtensionProvider<T>;
|
|
24
|
+
contextIdentifierProvider?: ContextIdentifierProvider;
|
|
25
|
+
processParametersBefore?: TransformBefore<T>;
|
|
26
|
+
processParametersAfter?: TransformAfter<T>;
|
|
27
|
+
positions?: Record<number, number>;
|
|
28
|
+
applyChangeToContextPanel: ApplyChangeHandler | undefined;
|
|
29
|
+
};
|
|
30
|
+
export type ExtensionAction<T extends Parameters = Parameters> = {
|
|
31
|
+
type: 'UPDATE_STATE';
|
|
32
|
+
data: Partial<ExtensionState<T>>;
|
|
33
|
+
};
|
|
13
34
|
interface CreateExtensionAPIOptions {
|
|
14
35
|
editorView: EditorView;
|
|
15
36
|
applyChange: ApplyChangeHandler | undefined;
|
|
@@ -34,11 +55,15 @@ export type ExtensionPlugin = NextEditorPlugin<'extension', {
|
|
|
34
55
|
DecorationsPlugin,
|
|
35
56
|
OptionalPlugin<ContextPanelPlugin>
|
|
36
57
|
];
|
|
58
|
+
sharedState: {
|
|
59
|
+
showContextPanel: boolean | undefined;
|
|
60
|
+
} | undefined;
|
|
37
61
|
actions: {
|
|
38
62
|
editSelectedExtension: () => boolean;
|
|
39
63
|
api: () => ExtensionAPI;
|
|
40
64
|
insertMacroFromMacroBrowser: InsertMacroFromMacroBrowser;
|
|
41
65
|
runMacroAutoConvert: RunMacroAutoConvert;
|
|
66
|
+
forceAutoSave: typeof forceAutoSave;
|
|
42
67
|
};
|
|
43
68
|
}>;
|
|
44
69
|
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
+
import type { ExtensionManifest, FieldDefinition, OnSaveCallback, Parameters } from '@atlaskit/editor-common/extensions';
|
|
4
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { RejectSave } from '../../types';
|
|
6
|
+
type Props = {
|
|
7
|
+
extensionManifest?: ExtensionManifest;
|
|
8
|
+
fields?: FieldDefinition[];
|
|
9
|
+
parameters?: Parameters;
|
|
10
|
+
autoSave?: boolean;
|
|
11
|
+
autoSaveTrigger?: () => void;
|
|
12
|
+
autoSaveReject?: RejectSave;
|
|
13
|
+
showHeader?: boolean;
|
|
14
|
+
closeOnEsc?: boolean;
|
|
15
|
+
onChange: OnSaveCallback;
|
|
16
|
+
onCancel: () => void;
|
|
17
|
+
errorMessage: string | null;
|
|
18
|
+
isLoading?: boolean;
|
|
19
|
+
featureFlags?: FeatureFlags;
|
|
20
|
+
} & WithAnalyticsEventsProps;
|
|
21
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "featureFlags" | "autoSaveReject" | "key" | "parameters" | "autoSave" | "onChange" | "errorMessage" | "analyticsContext" | "fields" | "extensionManifest" | "isLoading" | "onCancel" | "autoSaveTrigger" | "showHeader" | "closeOnEsc"> & React.RefAttributes<any>>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ExtensionKey, ExtensionProvider, ExtensionType, Parameters } from '@atlaskit/editor-common/extensions';
|
|
3
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { RejectSave } from '../../types';
|
|
5
|
+
export type PublicProps = {
|
|
6
|
+
extensionProvider: ExtensionProvider;
|
|
7
|
+
extensionType: ExtensionType;
|
|
8
|
+
extensionKey: ExtensionKey;
|
|
9
|
+
nodeKey: string;
|
|
10
|
+
extensionParameters?: Parameters;
|
|
11
|
+
parameters?: Parameters;
|
|
12
|
+
autoSave?: boolean;
|
|
13
|
+
autoSaveTrigger?: () => void;
|
|
14
|
+
autoSaveReject?: RejectSave;
|
|
15
|
+
closeOnEsc?: boolean;
|
|
16
|
+
showHeader?: boolean;
|
|
17
|
+
featureFlags?: FeatureFlags;
|
|
18
|
+
onChange: (data: Parameters) => void;
|
|
19
|
+
onCancel: () => void;
|
|
20
|
+
};
|
|
21
|
+
export default function FieldsLoader({ extensionType, extensionKey, nodeKey, extensionProvider, extensionParameters, parameters, autoSave, autoSaveTrigger, autoSaveReject, closeOnEsc, showHeader, featureFlags, onChange, onCancel, }: PublicProps): JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
4
|
+
errorMessage: string;
|
|
5
|
+
} & WrappedComponentProps<"intl">>> & {
|
|
6
|
+
WrappedComponent: React.ComponentType<{
|
|
7
|
+
errorMessage: string;
|
|
8
|
+
} & WrappedComponentProps<"intl">>;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
4
|
+
error?: string | undefined;
|
|
5
|
+
description?: string | undefined;
|
|
6
|
+
} & WrappedComponentProps<"intl">>> & {
|
|
7
|
+
WrappedComponent: React.ComponentType<{
|
|
8
|
+
error?: string | undefined;
|
|
9
|
+
description?: string | undefined;
|
|
10
|
+
} & WrappedComponentProps<"intl">>;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
name: string;
|
|
6
|
+
field: BooleanField;
|
|
7
|
+
onFieldChange: OnFieldChange;
|
|
8
|
+
}): jsx.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
name: string;
|
|
6
|
+
field: EnumCheckboxField;
|
|
7
|
+
onFieldChange: OnFieldChange;
|
|
8
|
+
}): jsx.JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
name: string;
|
|
16
|
+
field: ColorField;
|
|
17
|
+
onFieldChange: OnFieldChange;
|
|
18
|
+
featureFlags?: FeatureFlags | undefined;
|
|
19
|
+
}) => jsx.JSX.Element;
|
|
20
|
+
export default ColorPickerField;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { CustomField, ExtensionManifest, Parameters } from '@atlaskit/editor-common/extensions';
|
|
4
|
+
import type { OnFieldChange } from '../types';
|
|
5
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
6
|
+
name: string;
|
|
7
|
+
field: CustomField;
|
|
8
|
+
extensionManifest: ExtensionManifest<Parameters>;
|
|
9
|
+
onFieldChange: OnFieldChange;
|
|
10
|
+
autoFocus?: boolean | undefined;
|
|
11
|
+
placeholder?: string | undefined;
|
|
12
|
+
parameters?: Parameters | undefined;
|
|
13
|
+
} & WrappedComponentProps<"intl">>> & {
|
|
14
|
+
WrappedComponent: React.ComponentType<{
|
|
15
|
+
name: string;
|
|
16
|
+
field: CustomField;
|
|
17
|
+
extensionManifest: ExtensionManifest<Parameters>;
|
|
18
|
+
onFieldChange: OnFieldChange;
|
|
19
|
+
autoFocus?: boolean | undefined;
|
|
20
|
+
placeholder?: string | undefined;
|
|
21
|
+
parameters?: Parameters | undefined;
|
|
22
|
+
} & WrappedComponentProps<"intl">>;
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { DateField } from '@atlaskit/editor-common/extensions';
|
|
4
|
+
import type { OnFieldChange } from '../types';
|
|
5
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
6
|
+
name: string;
|
|
7
|
+
field: DateField;
|
|
8
|
+
autoFocus?: boolean | undefined;
|
|
9
|
+
onFieldChange: OnFieldChange;
|
|
10
|
+
placeholder?: string | undefined;
|
|
11
|
+
} & WrappedComponentProps<"intl">>> & {
|
|
12
|
+
WrappedComponent: React.ComponentType<{
|
|
13
|
+
name: string;
|
|
14
|
+
field: DateField;
|
|
15
|
+
autoFocus?: boolean | undefined;
|
|
16
|
+
onFieldChange: OnFieldChange;
|
|
17
|
+
placeholder?: string | undefined;
|
|
18
|
+
} & WrappedComponentProps<"intl">>;
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { DateRangeField } from '@atlaskit/editor-common/extensions';
|
|
4
|
+
import type { OnFieldChange } from '../types';
|
|
5
|
+
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<{
|
|
6
|
+
name: string;
|
|
7
|
+
field: DateRangeField;
|
|
8
|
+
onFieldChange: OnFieldChange;
|
|
9
|
+
autoFocus?: boolean | undefined;
|
|
10
|
+
placeholder?: string | undefined;
|
|
11
|
+
} & WrappedComponentProps<"intl">>> & {
|
|
12
|
+
WrappedComponent: import("react").ComponentType<{
|
|
13
|
+
name: string;
|
|
14
|
+
field: DateRangeField;
|
|
15
|
+
onFieldChange: OnFieldChange;
|
|
16
|
+
autoFocus?: boolean | undefined;
|
|
17
|
+
placeholder?: string | undefined;
|
|
18
|
+
} & WrappedComponentProps<"intl">>;
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="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
|
+
name: string;
|
|
6
|
+
field: EnumField;
|
|
7
|
+
autoFocus: boolean;
|
|
8
|
+
onFieldChange: OnFieldChange;
|
|
9
|
+
fieldDefaultValue?: string | string[];
|
|
10
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import type { FieldDefinition } from '@atlaskit/editor-common/extensions';
|
|
5
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
6
|
+
field: FieldDefinition;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
isExpanded?: boolean | undefined;
|
|
9
|
+
} & WrappedComponentProps<"intl">>> & {
|
|
10
|
+
WrappedComponent: React.ComponentType<{
|
|
11
|
+
field: FieldDefinition;
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
isExpanded?: boolean | undefined;
|
|
14
|
+
} & WrappedComponentProps<"intl">>;
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import type { ExtensionManifest, Fieldset, Parameters } from '@atlaskit/editor-common/extensions';
|
|
5
|
+
import type { FormContentProps, OnFieldChange } from '../types';
|
|
6
|
+
type Props = {
|
|
7
|
+
name: string;
|
|
8
|
+
extensionManifest: ExtensionManifest;
|
|
9
|
+
field: Fieldset;
|
|
10
|
+
parameters?: Parameters;
|
|
11
|
+
onFieldChange: OnFieldChange;
|
|
12
|
+
firstVisibleFieldName?: string;
|
|
13
|
+
error?: string;
|
|
14
|
+
formComponent: (props: FormContentProps) => JSX.Element;
|
|
15
|
+
} & WrappedComponentProps;
|
|
16
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props>> & {
|
|
17
|
+
WrappedComponent: React.ComponentType<Props>;
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="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
|
+
name: string;
|
|
6
|
+
field: NumberField;
|
|
7
|
+
autoFocus?: boolean;
|
|
8
|
+
onFieldChange: OnFieldChange;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="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
|
+
name: string;
|
|
6
|
+
field: EnumRadioField;
|
|
7
|
+
onFieldChange: OnFieldChange;
|
|
8
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="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
|
+
name: string;
|
|
6
|
+
field: EnumSelectField;
|
|
7
|
+
onFieldChange: OnFieldChange;
|
|
8
|
+
autoFocus?: boolean;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
fieldDefaultValue?: string | string[];
|
|
11
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
|
+
import type { Option } from '@atlaskit/editor-common/extensions';
|
|
4
|
+
import type { FormatOptionLabelMeta } from '@atlaskit/select';
|
|
5
|
+
export declare const formatOptionLabel: ({ label, icon, description }: Option, { context }: FormatOptionLabelMeta<Option>) => jsx.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="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
|
+
name: string;
|
|
6
|
+
field: StringField;
|
|
7
|
+
autoFocus?: boolean;
|
|
8
|
+
onFieldChange: OnFieldChange;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import type { TabField, TabGroupField } from '@atlaskit/editor-common/extensions';
|
|
5
|
+
declare const TabGroup: React.FC<import("react-intl-next").WithIntlProps<{
|
|
6
|
+
field: TabGroupField;
|
|
7
|
+
renderPanel: (tabField: TabField) => JSX.Element;
|
|
8
|
+
} & WrappedComponentProps<"intl">>> & {
|
|
9
|
+
WrappedComponent: React.ComponentType<{
|
|
10
|
+
field: TabGroupField;
|
|
11
|
+
renderPanel: (tabField: TabField) => JSX.Element;
|
|
12
|
+
} & WrappedComponentProps<"intl">>;
|
|
13
|
+
};
|
|
14
|
+
export default TabGroup;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="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
|
+
name: string;
|
|
6
|
+
field: UserField;
|
|
7
|
+
extensionManifest: ExtensionManifest;
|
|
8
|
+
onFieldChange: OnFieldChange;
|
|
9
|
+
autoFocus?: boolean;
|
|
10
|
+
}): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const requiredIndicator: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { FieldComponentProps, FormContentProps } from './types';
|
|
3
|
+
export declare function FieldComponent({ field, parameters, parentName, extensionManifest, firstVisibleFieldName, onFieldChange, featureFlags, }: FieldComponentProps): JSX.Element;
|
|
4
|
+
export default function FormContent({ fields, parentName, parameters, extensionManifest, canRemoveFields, onClickRemove, onFieldChange, firstVisibleFieldName, contextIdentifierProvider, featureFlags, }: FormContentProps): JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { WithAnalyticsEventsProps } 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
|
+
fields: FieldDefinition[];
|
|
8
|
+
extensionKey: string;
|
|
9
|
+
contextIdentifierProvider?: ContextIdentifierProvider;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const FormErrorBoundaryImpl: React.FC<import("react-intl-next").WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps<"intl">>> & {
|
|
13
|
+
WrappedComponent: React.ComponentType<Props & WithAnalyticsEventsProps & WrappedComponentProps<"intl">>;
|
|
14
|
+
};
|
|
15
|
+
export declare const FormErrorBoundary: React.ForwardRefExoticComponent<Pick<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps<"intl">>>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "analyticsContext" | "forwardedRef" | keyof Props> & React.RefAttributes<any>>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { Icon } from '@atlaskit/editor-common/extensions';
|
|
4
|
+
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<{
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string | undefined;
|
|
7
|
+
summary?: string | undefined;
|
|
8
|
+
documentationUrl?: string | undefined;
|
|
9
|
+
enableHelpCTA?: boolean | undefined;
|
|
10
|
+
icon: Icon;
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
} & WrappedComponentProps<"intl">>> & {
|
|
13
|
+
WrappedComponent: import("react").ComponentType<{
|
|
14
|
+
title: string;
|
|
15
|
+
description?: string | undefined;
|
|
16
|
+
summary?: string | undefined;
|
|
17
|
+
documentationUrl?: string | undefined;
|
|
18
|
+
enableHelpCTA?: boolean | undefined;
|
|
19
|
+
icon: Icon;
|
|
20
|
+
onClose: () => void;
|
|
21
|
+
} & WrappedComponentProps<"intl">>;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
5
|
+
name: string;
|
|
6
|
+
onClickRemove?: ((fieldName: string) => void) | undefined;
|
|
7
|
+
canRemoveField?: boolean | undefined;
|
|
8
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
9
|
+
className?: string | undefined;
|
|
10
|
+
} & WrappedComponentProps<"intl">>> & {
|
|
11
|
+
WrappedComponent: React.ComponentType<{
|
|
12
|
+
name: string;
|
|
13
|
+
onClickRemove?: ((fieldName: string) => void) | undefined;
|
|
14
|
+
canRemoveField?: boolean | undefined;
|
|
15
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
16
|
+
className?: string | undefined;
|
|
17
|
+
} & WrappedComponentProps<"intl">>;
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|