@atlaskit/editor-plugin-extension 0.7.2 → 0.7.4

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 (53) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/toolbar.js +8 -40
  3. package/dist/cjs/ui/ConfigPanel/ConfigPanel.js +2 -3
  4. package/dist/cjs/ui/ConfigPanel/ErrorMessage/index.js +2 -8
  5. package/dist/cjs/ui/ConfigPanel/FieldMessages.js +4 -4
  6. package/dist/cjs/ui/ConfigPanel/Fields/CustomSelect.js +1 -2
  7. package/dist/cjs/ui/ConfigPanel/Fields/DateRange.js +3 -3
  8. package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +3 -3
  9. package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +9 -8
  10. package/dist/cjs/ui/ConfigPanel/FormErrorBoundary.js +3 -3
  11. package/dist/cjs/ui/ConfigPanel/Header.js +4 -4
  12. package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +3 -3
  13. package/dist/cjs/ui/SaveIndicator/SaveIndicator.js +2 -2
  14. package/dist/es2019/toolbar.js +1 -33
  15. package/dist/es2019/ui/ConfigPanel/ConfigPanel.js +1 -2
  16. package/dist/es2019/ui/ConfigPanel/ErrorMessage/index.js +2 -8
  17. package/dist/es2019/ui/ConfigPanel/FieldMessages.js +1 -1
  18. package/dist/es2019/ui/ConfigPanel/Fields/CustomSelect.js +1 -2
  19. package/dist/es2019/ui/ConfigPanel/Fields/DateRange.js +1 -1
  20. package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +1 -1
  21. package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +6 -5
  22. package/dist/es2019/ui/ConfigPanel/FormErrorBoundary.js +1 -1
  23. package/dist/es2019/ui/ConfigPanel/Header.js +1 -1
  24. package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +1 -1
  25. package/dist/es2019/ui/SaveIndicator/SaveIndicator.js +1 -1
  26. package/dist/esm/toolbar.js +1 -33
  27. package/dist/esm/ui/ConfigPanel/ConfigPanel.js +1 -2
  28. package/dist/esm/ui/ConfigPanel/ErrorMessage/index.js +2 -8
  29. package/dist/esm/ui/ConfigPanel/FieldMessages.js +1 -1
  30. package/dist/esm/ui/ConfigPanel/Fields/CustomSelect.js +1 -2
  31. package/dist/esm/ui/ConfigPanel/Fields/DateRange.js +1 -1
  32. package/dist/esm/ui/ConfigPanel/Fields/Expand.js +1 -1
  33. package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +6 -5
  34. package/dist/esm/ui/ConfigPanel/FormErrorBoundary.js +1 -1
  35. package/dist/esm/ui/ConfigPanel/Header.js +1 -1
  36. package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +1 -1
  37. package/dist/esm/ui/SaveIndicator/SaveIndicator.js +1 -1
  38. package/dist/types/toolbar.d.ts +0 -32
  39. package/dist/types-ts4.5/toolbar.d.ts +0 -32
  40. package/example-utils/config-panel/ConfigPanelWithExtensionPicker.tsx +4 -3
  41. package/example-utils/config-panel/example-manifest-all-fields.ts +2 -3
  42. package/example-utils/config-panel/example-manifest-individual-fields.ts +2 -3
  43. package/package.json +6 -5
  44. package/dist/cjs/ui/ConfigPanel/messages.js +0 -99
  45. package/dist/cjs/ui/SaveIndicator/messages.js +0 -14
  46. package/dist/es2019/ui/ConfigPanel/messages.js +0 -93
  47. package/dist/es2019/ui/SaveIndicator/messages.js +0 -8
  48. package/dist/esm/ui/ConfigPanel/messages.js +0 -93
  49. package/dist/esm/ui/SaveIndicator/messages.js +0 -8
  50. package/dist/types/ui/ConfigPanel/messages.d.ts +0 -92
  51. package/dist/types/ui/SaveIndicator/messages.d.ts +0 -7
  52. package/dist/types-ts4.5/ui/ConfigPanel/messages.d.ts +0 -92
  53. package/dist/types-ts4.5/ui/SaveIndicator/messages.d.ts +0 -7
@@ -3,9 +3,9 @@
3
3
  import { Fragment, useCallback, useEffect, useRef, useState } from 'react';
4
4
  import { css, jsx } from '@emotion/react';
5
5
  import { FormattedMessage } from 'react-intl-next';
6
+ import { messages } from '@atlaskit/editor-common/extensions';
6
7
  import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
7
8
  import { G300, N0 } from '@atlaskit/theme/colors';
8
- import { messages } from './messages';
9
9
  const noop = () => {};
10
10
  const saveIndicatorWrapperStyles = css({
11
11
  display: 'flex',
@@ -1,5 +1,5 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
- import { defineMessages } from 'react-intl-next';
2
+ import { messages } from '@atlaskit/editor-common/extensions';
3
3
  import commonMessages from '@atlaskit/editor-common/messages';
4
4
  import { getChildrenInfo as _getChildrenInfo, getNodeName, isReferencedSource } from '@atlaskit/editor-common/utils';
5
5
  import { findParentNodeOfType, hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
@@ -13,38 +13,6 @@ import { removeDescendantNodes, removeExtension, updateExtensionLayout } from '.
13
13
  import { pluginKey as macroPluginKey } from './pm-plugins/macro/plugin-key';
14
14
  import { getPluginState } from './pm-plugins/main';
15
15
  import { getSelectedExtension } from './utils';
16
- export var messages = defineMessages({
17
- edit: {
18
- id: 'fabric.editor.edit',
19
- defaultMessage: 'Edit',
20
- description: 'Edit the properties for this extension.'
21
- },
22
- deleteElementTitle: {
23
- id: 'fabric.editor.extension.deleteElementTitle',
24
- defaultMessage: 'Delete element',
25
- description: 'Title text for confirm modal when deleting an extension linked to a data consumer.'
26
- },
27
- unnamedSource: {
28
- id: 'fabric.editor.extension.sourceNoTitledName',
29
- defaultMessage: 'this element',
30
- description: 'The current element without preset name been selected'
31
- },
32
- confirmDeleteLinkedModalOKButton: {
33
- id: 'fabric.editor.extension.confirmDeleteLinkedModalOKButton',
34
- defaultMessage: 'Delete',
35
- description: 'Action button label for confirm modal when deleting an extension linked to a data consumer.'
36
- },
37
- confirmDeleteLinkedModalMessage: {
38
- id: 'fabric.editor.extension.confirmDeleteLinkedModalMessage',
39
- defaultMessage: 'Deleting {nodeName} will break anything connected to it.',
40
- description: 'Message for confirm modal when deleting a extension linked to an data consumer.'
41
- },
42
- confirmModalCheckboxLabel: {
43
- id: 'fabric.editor.floatingToolbar.confirmModalCheckboxLabel',
44
- defaultMessage: 'Also delete connected elements',
45
- description: 'checkbox label text'
46
- }
47
- });
48
16
  var isLayoutSupported = function isLayoutSupported(state, selectedExtNode) {
49
17
  var _state$schema$nodes = state.schema.nodes,
50
18
  bodiedExtension = _state$schema$nodes.bodiedExtension,
@@ -21,7 +21,7 @@ import { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-n
21
21
  import ButtonGroup from '@atlaskit/button/button-group';
22
22
  import Button from '@atlaskit/button/custom-theme-button';
23
23
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
24
- import { isTabGroup } from '@atlaskit/editor-common/extensions';
24
+ import { isTabGroup, configPanelMessages as messages } from '@atlaskit/editor-common/extensions';
25
25
  import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
26
26
  import Form, { FormFooter } from '@atlaskit/form';
27
27
  import { ALLOWED_LOGGED_MACRO_PARAMS } from './constants';
@@ -30,7 +30,6 @@ import FormContent from './FormContent';
30
30
  import { FormErrorBoundary } from './FormErrorBoundary';
31
31
  import Header from './Header';
32
32
  import LoadingState from './LoadingState';
33
- import { messages } from './messages';
34
33
  import { deserialize, findDuplicateFields, serialize } from './transformers';
35
34
  import { getLoggedParameters } from './utils';
36
35
  function ConfigForm(_ref) {
@@ -1,14 +1,8 @@
1
1
  import React from 'react';
2
- import { defineMessages, injectIntl } from 'react-intl-next';
2
+ import { injectIntl } from 'react-intl-next';
3
+ import { configPanelMessages as messages } from '@atlaskit/editor-common/extensions';
3
4
  import EmptyState from '@atlaskit/empty-state';
4
5
  import ErrorImage from './ErrorImage';
5
- var messages = defineMessages({
6
- configFailedToLoad: {
7
- id: 'fabric.editor.configFailedToLoad',
8
- defaultMessage: 'Failed to load',
9
- description: 'Displayed when the config panel fails to load fields'
10
- }
11
- });
12
6
  var ConfigPanelErrorMessage = function ConfigPanelErrorMessage(_ref) {
13
7
  var errorMessage = _ref.errorMessage,
14
8
  intl = _ref.intl;
@@ -1,7 +1,7 @@
1
1
  import React, { Fragment, useMemo } from 'react';
2
2
  import { injectIntl } from 'react-intl-next';
3
+ import { configPanelMessages as messages } from '@atlaskit/editor-common/extensions';
3
4
  import { ErrorMessage, HelperMessage } from '@atlaskit/form';
4
- import { messages } from './messages';
5
5
  import { FieldTypeError, ValidationError } from './types';
6
6
 
7
7
  // sidestep XSS issues
@@ -4,11 +4,10 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import _regeneratorRuntime from "@babel/runtime/regenerator";
5
5
  import React, { useEffect, useState } from 'react';
6
6
  import { injectIntl } from 'react-intl-next';
7
- import { getCustomFieldResolver } from '@atlaskit/editor-common/extensions';
7
+ import { getCustomFieldResolver, configPanelMessages as messages } from '@atlaskit/editor-common/extensions';
8
8
  import { Field } from '@atlaskit/form';
9
9
  import { AsyncCreatableSelect } from '@atlaskit/select';
10
10
  import FieldMessages from '../FieldMessages';
11
- import { messages } from '../messages';
12
11
  import { validate as _validate } from '../utils';
13
12
  import { formatOptionLabel } from './SelectItem';
14
13
  import UnhandledType from './UnhandledType';
@@ -9,11 +9,11 @@ import { Fragment, useEffect, useMemo, useState } from 'react';
9
9
  import { css, jsx } from '@emotion/react';
10
10
  import { injectIntl } from 'react-intl-next';
11
11
  import { DatePicker } from '@atlaskit/datetime-picker';
12
+ import { configPanelMessages as messages } from '@atlaskit/editor-common/extensions';
12
13
  import { Field } from '@atlaskit/form';
13
14
  import { RadioGroup } from '@atlaskit/radio';
14
15
  import TextField from '@atlaskit/textfield';
15
16
  import FieldMessages from '../FieldMessages';
16
- import { messages } from '../messages';
17
17
  import { validate as _validate, validateRequired } from '../utils';
18
18
  var horizontalFieldsStyles = css({
19
19
  display: 'flex',
@@ -4,10 +4,10 @@ import React, { useState } from 'react';
4
4
  import { css, jsx } from '@emotion/react';
5
5
  import { injectIntl } from 'react-intl-next';
6
6
  import Button from '@atlaskit/button';
7
+ import { configPanelMessages as messages } from '@atlaskit/editor-common/extensions';
7
8
  import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
8
9
  import ChevronRightIcon from '@atlaskit/icon/glyph/chevron-right';
9
10
  import { N40 } from '@atlaskit/theme/colors';
10
- import { messages } from '../messages';
11
11
  var expandContainerStyles = css({
12
12
  borderBottom: "1px solid ".concat("var(--ds-border, ".concat(N40, ")"))
13
13
  });
@@ -16,11 +16,12 @@ import React, { Fragment } from 'react';
16
16
  import { css, jsx } from '@emotion/react';
17
17
  import { injectIntl } from 'react-intl-next';
18
18
  import Button from '@atlaskit/button/custom-theme-button';
19
+ import { configPanelMessages as messages } from '@atlaskit/editor-common/extensions';
19
20
  import AddCircleIcon from '@atlaskit/icon/glyph/add-circle';
21
+ import { Box, xcss } from '@atlaskit/primitives';
20
22
  import SectionMessage from '@atlaskit/section-message';
21
23
  import Select from '@atlaskit/select';
22
24
  import { N40A } from '@atlaskit/theme/colors';
23
- import { messages } from '../messages';
24
25
  import { getNameFromDuplicateField, isDuplicateField } from '../utils';
25
26
  var actionsWrapperStyles = css({
26
27
  borderTop: "1px solid ".concat("var(--ds-border, ".concat(N40A, ")")),
@@ -249,13 +250,13 @@ var FieldsetField = /*#__PURE__*/function (_React$Component) {
249
250
  }(React.Component);
250
251
  function FieldsetError(_ref) {
251
252
  var message = _ref.message;
252
- return jsx("div", {
253
- css: sectionMessageWrapperStyles
253
+ return jsx(Box, {
254
+ xcss: sectionMessageWrapperStyles
254
255
  }, jsx(SectionMessage, {
255
256
  appearance: "error"
256
257
  }, jsx("p", null, message)));
257
258
  }
258
- var sectionMessageWrapperStyles = css({
259
- marginBottom: "var(--ds-space-300, 24px)"
259
+ var sectionMessageWrapperStyles = xcss({
260
+ marginBottom: 'space.300'
260
261
  });
261
262
  export default injectIntl(FieldsetField);
@@ -13,8 +13,8 @@ import React from 'react';
13
13
  import { injectIntl } from 'react-intl-next';
14
14
  import { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
15
15
  import { ACTION, ACTION_SUBJECT, editorAnalyticsChannel, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
16
+ import { configPanelMessages as messages } from '@atlaskit/editor-common/extensions';
16
17
  import SectionMessage from '@atlaskit/section-message';
17
- import { messages } from './messages';
18
18
  // eslint-disable-next-line @repo/internal/react/no-class-components
19
19
  var FormErrorBoundaryInner = /*#__PURE__*/function (_React$Component) {
20
20
  _inherits(FormErrorBoundaryInner, _React$Component);
@@ -4,11 +4,11 @@ import { css, jsx } from '@emotion/react';
4
4
  import { injectIntl } from 'react-intl-next';
5
5
  import Loadable from 'react-loadable';
6
6
  import Button from '@atlaskit/button/custom-theme-button';
7
+ import { configPanelMessages as messages } from '@atlaskit/editor-common/extensions';
7
8
  import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
8
9
  import CrossIcon from '@atlaskit/icon/glyph/cross';
9
10
  import { N200 } from '@atlaskit/theme/colors';
10
11
  import { borderRadius } from '@atlaskit/theme/constants';
11
- import { messages } from './messages';
12
12
  var iconWidth = 40;
13
13
  var buttonWidth = 40;
14
14
  var margin = 16;
@@ -2,10 +2,10 @@
2
2
  import React from 'react';
3
3
  import { css, jsx } from '@emotion/react';
4
4
  import { injectIntl } from 'react-intl-next';
5
+ import { configPanelMessages as messages } from '@atlaskit/editor-common/extensions';
5
6
  import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
6
7
  import { N80, R300 } from '@atlaskit/theme/colors';
7
8
  import Tooltip from '@atlaskit/tooltip';
8
- import { messages } from '../messages';
9
9
  var removableFieldWrapperStyles = css({
10
10
  position: 'relative',
11
11
  marginBottom: 0
@@ -4,9 +4,9 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import { Fragment, useCallback, useEffect, useRef, useState } from 'react';
5
5
  import { css, jsx } from '@emotion/react';
6
6
  import { FormattedMessage } from 'react-intl-next';
7
+ import { messages } from '@atlaskit/editor-common/extensions';
7
8
  import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
8
9
  import { G300, N0 } from '@atlaskit/theme/colors';
9
- import { messages } from './messages';
10
10
  var noop = function noop() {};
11
11
  var saveIndicatorWrapperStyles = css({
12
12
  display: 'flex',
@@ -2,38 +2,6 @@ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
2
  import type { FloatingToolbarHandler } from '@atlaskit/editor-common/types';
3
3
  import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
4
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
5
  interface GetToolbarConfigProps {
38
6
  breakoutEnabled: boolean | undefined;
39
7
  hoverDecoration: HoverDecorationHandler | undefined;
@@ -2,38 +2,6 @@ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
2
  import type { FloatingToolbarHandler } from '@atlaskit/editor-common/types';
3
3
  import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
4
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
5
  interface GetToolbarConfigProps {
38
6
  breakoutEnabled: boolean | undefined;
39
7
  hoverDecoration: HoverDecorationHandler | undefined;
@@ -13,6 +13,7 @@ import type {
13
13
  Parameters,
14
14
  } from '@atlaskit/editor-common/extensions';
15
15
  import { getExtensionKeyAndNodeKey } from '@atlaskit/editor-common/extensions';
16
+ import { Box, xcss } from '@atlaskit/primitives';
16
17
  import TextArea from '@atlaskit/textarea';
17
18
  import * as colors from '@atlaskit/theme/colors';
18
19
  import { token } from '@atlaskit/tokens';
@@ -23,7 +24,7 @@ import ConfigPanelWithProviders from './ConfigPanelWithProviders';
23
24
  import type { CallbackParams } from './ExtensionNodePicker';
24
25
  import ExtensionNodePicker from './ExtensionNodePicker';
25
26
 
26
- const wrapperStyles = css({ margin: token('space.200', '16px') });
27
+ const wrapperStyles = xcss({ margin: 'space.200' });
27
28
 
28
29
  const exampleWrapperStyles = css({ display: 'flex', flexDirection: 'row' });
29
30
 
@@ -180,7 +181,7 @@ export default function ConfigPanelWithExtensionPicker({
180
181
 
181
182
  return (
182
183
  <IntlProvider locale="en-AU">
183
- <div css={wrapperStyles}>
184
+ <Box xcss={wrapperStyles}>
184
185
  <div style={{ float: 'left' }} key="panel">
185
186
  {extensionNode?.node && item && (
186
187
  <ExtensionConfigPanel
@@ -211,7 +212,7 @@ export default function ConfigPanelWithExtensionPicker({
211
212
  }}
212
213
  />
213
214
  </div>
214
- </div>
215
+ </Box>
215
216
  </IntlProvider>
216
217
  );
217
218
  }
@@ -4,12 +4,11 @@ import type {
4
4
  ExtensionModuleNodes,
5
5
  } from '@atlaskit/editor-common/extensions';
6
6
  // eslint-disable-next-line import/no-extraneous-dependencies
7
- import { mockFieldResolver } from '@atlaskit/editor-core/example-helpers/confluence-macros//confluence-fields-data-providers';
8
- // eslint-disable-next-line import/no-extraneous-dependencies
9
7
  import {
10
8
  cqlDeserializer,
11
9
  cqlSerializer,
12
- } from '@atlaskit/editor-core/example-helpers/confluence-macros/cql-helpers';
10
+ mockFieldResolver,
11
+ } from '@atlaskit/editor-test-helpers/example-helpers';
13
12
 
14
13
  import { customFields, nativeFields } from './fields';
15
14
 
@@ -4,12 +4,11 @@ import type {
4
4
  ExtensionModuleNodes,
5
5
  } from '@atlaskit/editor-common/extensions';
6
6
  // eslint-disable-next-line import/no-extraneous-dependencies
7
- import { mockFieldResolver } from '@atlaskit/editor-core/example-helpers/confluence-macros/confluence-fields-data-providers';
8
- // eslint-disable-next-line import/no-extraneous-dependencies
9
7
  import {
10
8
  cqlDeserializer,
11
9
  cqlSerializer,
12
- } from '@atlaskit/editor-core/example-helpers/confluence-macros/cql-helpers';
10
+ mockFieldResolver,
11
+ } from '@atlaskit/editor-test-helpers/example-helpers';
13
12
 
14
13
  import { customFields, nativeFields } from './fields';
15
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-extension",
3
- "version": "0.7.2",
3
+ "version": "0.7.4",
4
4
  "description": "editor-plugin-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -26,12 +26,12 @@
26
26
  "dependencies": {
27
27
  "@atlaskit/adf-schema": "^35.5.1",
28
28
  "@atlaskit/adf-utils": "^19.0.0",
29
- "@atlaskit/analytics-next": "^9.1.0",
29
+ "@atlaskit/analytics-next": "^9.2.0",
30
30
  "@atlaskit/avatar": "^21.4.0",
31
31
  "@atlaskit/button": "^17.3.0",
32
32
  "@atlaskit/checkbox": "^13.0.0",
33
33
  "@atlaskit/datetime-picker": "^13.0.3",
34
- "@atlaskit/editor-common": "^77.2.0",
34
+ "@atlaskit/editor-common": "^77.3.0",
35
35
  "@atlaskit/editor-json-transformer": "^8.10.0",
36
36
  "@atlaskit/editor-plugin-analytics": "^0.4.0",
37
37
  "@atlaskit/editor-plugin-context-identifier": "^0.1.0",
@@ -39,17 +39,18 @@
39
39
  "@atlaskit/editor-plugin-decorations": "^0.2.0",
40
40
  "@atlaskit/editor-plugin-feature-flags": "^1.0.0",
41
41
  "@atlaskit/editor-plugin-width": "^0.2.0",
42
- "@atlaskit/editor-prosemirror": "1.1.0",
42
+ "@atlaskit/editor-prosemirror": "3.0.0",
43
43
  "@atlaskit/editor-shared-styles": "^2.9.0",
44
44
  "@atlaskit/editor-tables": "^2.5.0",
45
45
  "@atlaskit/empty-state": "^7.6.0",
46
46
  "@atlaskit/form": "^9.0.3",
47
47
  "@atlaskit/icon": "^22.0.0",
48
48
  "@atlaskit/platform-feature-flags": "^0.2.0",
49
+ "@atlaskit/primitives": "^2.0.0",
49
50
  "@atlaskit/radio": "^6.0.0",
50
51
  "@atlaskit/section-message": "^6.4.0",
51
52
  "@atlaskit/select": "^17.0.3",
52
- "@atlaskit/smart-user-picker": "^6.6.0",
53
+ "@atlaskit/smart-user-picker": "^6.7.0",
53
54
  "@atlaskit/spinner": "^16.0.0",
54
55
  "@atlaskit/tabs": "^14.0.0",
55
56
  "@atlaskit/textarea": "^5.0.0",
@@ -1,99 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.messages = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
9
- submit: {
10
- id: 'fabric.editor.configPanel.submit',
11
- defaultMessage: 'Submit',
12
- description: 'Submit button label'
13
- },
14
- cancel: {
15
- id: 'fabric.editor.configPanel.cancel',
16
- defaultMessage: 'Cancel',
17
- description: 'Cancel button label'
18
- },
19
- close: {
20
- id: 'fabric.editor.configPanel.close',
21
- defaultMessage: 'Close',
22
- description: 'Close button label'
23
- },
24
- required: {
25
- id: 'fabric.editor.configPanel.required',
26
- defaultMessage: 'Required field',
27
- description: 'Validation message for required field'
28
- },
29
- invalid: {
30
- id: 'fabric.editor.configPanel.invalid',
31
- defaultMessage: 'Invalid field',
32
- description: 'Validation message when a field value is not acceptable'
33
- },
34
- isMultipleAndRadio: {
35
- id: 'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio',
36
- defaultMessage: 'Can not combine isMultiple with style: radio',
37
- description: 'Configuration error'
38
- },
39
- addField: {
40
- id: 'fabric.editor.configPanel.formType.addField',
41
- defaultMessage: 'Add field',
42
- description: 'Button to add a new field in nested forms'
43
- },
44
- removeField: {
45
- id: 'fabric.editor.configPanel.formType.removeField',
46
- defaultMessage: 'Remove field',
47
- description: 'Button to remove a field in nested forms'
48
- },
49
- createOption: {
50
- id: 'fabric.editor.configPanel.customSelect.createOption',
51
- defaultMessage: 'Create',
52
- description: 'Create a new option for a select field'
53
- },
54
- documentation: {
55
- id: 'fabric.editor.configPanel.documentation',
56
- defaultMessage: 'Documentation',
57
- description: 'Label for the documentation link'
58
- },
59
- help: {
60
- id: 'fabric.editor.configPanel.help',
61
- defaultMessage: 'Need help?',
62
- description: 'Label for documentation link v.2 (to replace "Documentation" text)'
63
- },
64
- custom: {
65
- id: 'fabric.editor.configPanel.dateRange.option.custom',
66
- defaultMessage: 'Custom',
67
- description: 'Label for the option "Custom" in the date range UI element'
68
- },
69
- from: {
70
- id: 'fabric.editor.configPanel.dateRange.custom.from',
71
- defaultMessage: 'From',
72
- description: 'Label for the initial date when the option "Custom" is selected in the date range UI element'
73
- },
74
- to: {
75
- id: 'fabric.editor.configPanel.dateRange.custom.to',
76
- defaultMessage: 'To',
77
- description: 'Label for the end date when the option "Custom" is selected in the date range UI element'
78
- },
79
- expand: {
80
- id: 'fabric.editor.configPanel.dateRange.grouping.expand',
81
- defaultMessage: 'Expand',
82
- description: 'Label for expanding a group of fields'
83
- },
84
- collapse: {
85
- id: 'fabric.editor.configPanel.dateRange.grouping.collapse',
86
- defaultMessage: 'Collapse',
87
- description: 'Label for collapsing a group of fields'
88
- },
89
- errorBoundaryTitle: {
90
- id: 'fabric.editor.configPanel.errorBoundary.title',
91
- defaultMessage: 'Something went wrong.',
92
- description: 'Title for uncaught config panel error'
93
- },
94
- errorBoundaryNote: {
95
- id: 'fabric.editor.configPanel.errorBoundary.note',
96
- defaultMessage: "We've let the team know. You can still edit and publish this page, or check the error console for more information.",
97
- description: 'Note for uncaught config panel error'
98
- }
99
- });
@@ -1,14 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.messages = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
9
- saveIndicator: {
10
- id: 'fabric.editor.extensions.config-panel.save-indicator',
11
- defaultMessage: 'All changes are always autosaved',
12
- description: 'Message shown to the user to notify to them that we save the changes automatically.'
13
- }
14
- });
@@ -1,93 +0,0 @@
1
- import { defineMessages } from 'react-intl-next';
2
- export const messages = defineMessages({
3
- submit: {
4
- id: 'fabric.editor.configPanel.submit',
5
- defaultMessage: 'Submit',
6
- description: 'Submit button label'
7
- },
8
- cancel: {
9
- id: 'fabric.editor.configPanel.cancel',
10
- defaultMessage: 'Cancel',
11
- description: 'Cancel button label'
12
- },
13
- close: {
14
- id: 'fabric.editor.configPanel.close',
15
- defaultMessage: 'Close',
16
- description: 'Close button label'
17
- },
18
- required: {
19
- id: 'fabric.editor.configPanel.required',
20
- defaultMessage: 'Required field',
21
- description: 'Validation message for required field'
22
- },
23
- invalid: {
24
- id: 'fabric.editor.configPanel.invalid',
25
- defaultMessage: 'Invalid field',
26
- description: 'Validation message when a field value is not acceptable'
27
- },
28
- isMultipleAndRadio: {
29
- id: 'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio',
30
- defaultMessage: 'Can not combine isMultiple with style: radio',
31
- description: 'Configuration error'
32
- },
33
- addField: {
34
- id: 'fabric.editor.configPanel.formType.addField',
35
- defaultMessage: 'Add field',
36
- description: 'Button to add a new field in nested forms'
37
- },
38
- removeField: {
39
- id: 'fabric.editor.configPanel.formType.removeField',
40
- defaultMessage: 'Remove field',
41
- description: 'Button to remove a field in nested forms'
42
- },
43
- createOption: {
44
- id: 'fabric.editor.configPanel.customSelect.createOption',
45
- defaultMessage: 'Create',
46
- description: 'Create a new option for a select field'
47
- },
48
- documentation: {
49
- id: 'fabric.editor.configPanel.documentation',
50
- defaultMessage: 'Documentation',
51
- description: 'Label for the documentation link'
52
- },
53
- help: {
54
- id: 'fabric.editor.configPanel.help',
55
- defaultMessage: 'Need help?',
56
- description: 'Label for documentation link v.2 (to replace "Documentation" text)'
57
- },
58
- custom: {
59
- id: 'fabric.editor.configPanel.dateRange.option.custom',
60
- defaultMessage: 'Custom',
61
- description: 'Label for the option "Custom" in the date range UI element'
62
- },
63
- from: {
64
- id: 'fabric.editor.configPanel.dateRange.custom.from',
65
- defaultMessage: 'From',
66
- description: 'Label for the initial date when the option "Custom" is selected in the date range UI element'
67
- },
68
- to: {
69
- id: 'fabric.editor.configPanel.dateRange.custom.to',
70
- defaultMessage: 'To',
71
- description: 'Label for the end date when the option "Custom" is selected in the date range UI element'
72
- },
73
- expand: {
74
- id: 'fabric.editor.configPanel.dateRange.grouping.expand',
75
- defaultMessage: 'Expand',
76
- description: 'Label for expanding a group of fields'
77
- },
78
- collapse: {
79
- id: 'fabric.editor.configPanel.dateRange.grouping.collapse',
80
- defaultMessage: 'Collapse',
81
- description: 'Label for collapsing a group of fields'
82
- },
83
- errorBoundaryTitle: {
84
- id: 'fabric.editor.configPanel.errorBoundary.title',
85
- defaultMessage: 'Something went wrong.',
86
- description: 'Title for uncaught config panel error'
87
- },
88
- errorBoundaryNote: {
89
- id: 'fabric.editor.configPanel.errorBoundary.note',
90
- defaultMessage: `We've let the team know. You can still edit and publish this page, or check the error console for more information.`,
91
- description: 'Note for uncaught config panel error'
92
- }
93
- });
@@ -1,8 +0,0 @@
1
- import { defineMessages } from 'react-intl-next';
2
- export const messages = defineMessages({
3
- saveIndicator: {
4
- id: 'fabric.editor.extensions.config-panel.save-indicator',
5
- defaultMessage: 'All changes are always autosaved',
6
- description: 'Message shown to the user to notify to them that we save the changes automatically.'
7
- }
8
- });