@atlaskit/editor-common 112.13.3 → 112.13.5

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 (29) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/afm-cc/tsconfig.json +0 -3
  3. package/afm-jira/tsconfig.json +0 -3
  4. package/afm-products/tsconfig.json +0 -3
  5. package/dist/cjs/ai-messages/ai.js +46 -0
  6. package/dist/cjs/extensibility/Extension/Extension/index.js +2 -17
  7. package/dist/cjs/extensibility/index.js +0 -7
  8. package/dist/cjs/monitoring/error.js +1 -1
  9. package/dist/cjs/ui/DropList/index.js +1 -1
  10. package/dist/es2019/ai-messages/ai.js +46 -0
  11. package/dist/es2019/extensibility/Extension/Extension/index.js +1 -12
  12. package/dist/es2019/extensibility/index.js +0 -1
  13. package/dist/es2019/monitoring/error.js +1 -1
  14. package/dist/es2019/ui/DropList/index.js +1 -1
  15. package/dist/esm/ai-messages/ai.js +46 -0
  16. package/dist/esm/extensibility/Extension/Extension/index.js +2 -17
  17. package/dist/esm/extensibility/index.js +0 -1
  18. package/dist/esm/monitoring/error.js +1 -1
  19. package/dist/esm/ui/DropList/index.js +1 -1
  20. package/dist/types/ai-messages/ai.d.ts +128 -83
  21. package/dist/types/extensibility/index.d.ts +0 -1
  22. package/dist/types-ts4.5/ai-messages/ai.d.ts +128 -83
  23. package/dist/types-ts4.5/extensibility/index.d.ts +0 -1
  24. package/package.json +2 -3
  25. package/dist/cjs/extensibility/Extension/LegacyContentHeader/index.js +0 -113
  26. package/dist/es2019/extensibility/Extension/LegacyContentHeader/index.js +0 -108
  27. package/dist/esm/extensibility/Extension/LegacyContentHeader/index.js +0 -106
  28. package/dist/types/extensibility/Extension/LegacyContentHeader/index.d.ts +0 -12
  29. package/dist/types-ts4.5/extensibility/Extension/LegacyContentHeader/index.d.ts +0 -12
@@ -1,106 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
-
6
- import { Fragment, useCallback } from 'react';
7
-
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
9
- import { css, jsx } from '@emotion/react';
10
- import classnames from 'classnames';
11
- import { defineMessages, useIntl } from 'react-intl-next';
12
- import StatusWarningIcon from '@atlaskit/icon/core/status-warning';
13
- import Link from '@atlaskit/link';
14
- import { Status } from '@atlaskit/status';
15
- var i18n = defineMessages({
16
- legacyContentHeader: {
17
- id: 'editor.extension.legacyContentHeader',
18
- defaultMessage: 'Legacy Content',
19
- description: 'Header for the legacy content extension in the editor.'
20
- },
21
- contentHasLimitedFunctionality: {
22
- id: 'editor.extension.legacyContentHeader.contentHasLimitedFunctionality',
23
- defaultMessage: 'This content has limited functionality, ',
24
- description: 'Message indicating that the legacy content has limited functionality.'
25
- },
26
- learnMore: {
27
- id: 'editor.extension.legacyContentHeader.learnMore',
28
- defaultMessage: ' Learn more',
29
- description: 'Link text for learning more about the legacy content.'
30
- }
31
- });
32
- var lcmHeaderStyles = css({
33
- padding: "0 ".concat("var(--ds-space-200, 16px)", " ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-200, 16px)"),
34
- backgroundColor: "var(--ds-background-neutral, #0515240F)",
35
- borderRadius: "var(--ds-radius-small, 4px)".concat(" ", "var(--ds-radius-small, 4px)", " 0 0"),
36
- boxShadow: "0 0 0 1px ".concat("var(--ds-background-neutral, #0515240F)"),
37
- position: 'relative',
38
- top: "-1px",
39
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
40
- '&.with-hover-border': {
41
- boxShadow: "0 0 0 1px ".concat("var(--ds-border-input, #8C8F97)")
42
- },
43
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
44
- '&.selected': {
45
- boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #1868DB)"),
46
- backgroundColor: "var(--ds-background-selected, #E9F2FE)"
47
- },
48
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
49
- '& .status-lozenge-span': {
50
- marginRight: "var(--ds-space-100, 8px)"
51
- },
52
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
53
- '& > .legacy-content-header-text': {
54
- font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
55
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
56
- '& span': {
57
- paddingRight: "var(--ds-space-050, 4px)"
58
- },
59
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
60
- '& a': {
61
- cursor: 'pointer'
62
- }
63
- }
64
- });
65
- export var LegacyContentHeader = function LegacyContentHeader(_ref) {
66
- var isNodeHovered = _ref.isNodeHovered,
67
- isNodeSelected = _ref.isNodeSelected,
68
- onMouseEnter = _ref.onMouseEnter,
69
- onMouseLeave = _ref.onMouseLeave;
70
- var _useIntl = useIntl(),
71
- formatMessage = _useIntl.formatMessage;
72
- var classNames = classnames('legacy-content-header', {
73
- 'with-hover-border': isNodeHovered,
74
- selected: isNodeSelected
75
- });
76
- var learnMore = useCallback(function () {
77
- window.open('https://support.atlassian.com/confluence-cloud/docs/the-legacy-content-macro/', '_blank');
78
- }, []);
79
- return jsx(Fragment, null, jsx("div", {
80
- "data-testid": "editor-extension-legacy-content-header",
81
- css: [lcmHeaderStyles]
82
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
83
- ,
84
- className: classNames
85
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
86
- ,
87
- onMouseEnter: onMouseEnter
88
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
89
- ,
90
- onMouseLeave: onMouseLeave
91
- }, jsx(Status, {
92
- text: formatMessage(i18n.legacyContentHeader),
93
- color: isNodeSelected ? 'blue' : 'neutral',
94
- style: "bold",
95
- isBold: true
96
- }), jsx("span", {
97
- className: "legacy-content-header-text"
98
- }, jsx(StatusWarningIcon, {
99
- label: formatMessage(i18n.contentHasLimitedFunctionality),
100
- size: "small"
101
- }), formatMessage(i18n.contentHasLimitedFunctionality), "\xA0", jsx(Link, {
102
- onClick: learnMore,
103
- href: "https://support.atlassian.com/confluence-cloud/docs/the-legacy-content-macro/",
104
- target: "_blank"
105
- }, formatMessage(i18n.learnMore)))));
106
- };
@@ -1,12 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
6
- export type LegacyContentHeaderProps = {
7
- isNodeHovered?: boolean;
8
- isNodeSelected?: boolean;
9
- onMouseEnter?: () => void;
10
- onMouseLeave?: () => void;
11
- };
12
- export declare const LegacyContentHeader: ({ isNodeHovered, isNodeSelected, onMouseEnter, onMouseLeave, }: LegacyContentHeaderProps) => jsx.JSX.Element;
@@ -1,12 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
6
- export type LegacyContentHeaderProps = {
7
- isNodeHovered?: boolean;
8
- isNodeSelected?: boolean;
9
- onMouseEnter?: () => void;
10
- onMouseLeave?: () => void;
11
- };
12
- export declare const LegacyContentHeader: ({ isNodeHovered, isNodeSelected, onMouseEnter, onMouseLeave, }: LegacyContentHeaderProps) => jsx.JSX.Element;