@atlaskit/editor-common 99.19.0 → 100.1.0
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 +36 -0
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/index.js +5 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/index.js +0 -6
- package/dist/cjs/styles/shared/status.js +1 -15
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/index.js +5 -2
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/index.js +1 -1
- package/dist/es2019/styles/shared/status.js +2 -13
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/index.js +5 -2
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/styles/shared/status.js +1 -13
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/extensions/default-extension-provider.d.ts +2 -2
- package/dist/types/extensions/types/extension-manifest.d.ts +7 -0
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +2 -1
- package/dist/types/styles/index.d.ts +1 -1
- package/dist/types/styles/shared/status.d.ts +0 -1
- package/dist/types-ts4.5/extensions/default-extension-provider.d.ts +2 -2
- package/dist/types-ts4.5/extensions/types/extension-manifest.d.ts +7 -0
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +2 -1
- package/dist/types-ts4.5/styles/index.d.ts +1 -1
- package/dist/types-ts4.5/styles/shared/status.d.ts +0 -1
- package/package.json +42 -42
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 100.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#117901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117901)
|
|
8
|
+
[`873bfa0f59444`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/873bfa0f59444) -
|
|
9
|
+
Use fallback UI on link picker if we're offline and normal link picker has not loaded.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 100.0.0
|
|
16
|
+
|
|
17
|
+
### Major Changes
|
|
18
|
+
|
|
19
|
+
- [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
|
|
20
|
+
[`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
|
|
21
|
+
This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
|
|
22
|
+
status of only supporting React 18 going forward. No explicit breaking change to React support has
|
|
23
|
+
been made in this release, but this is to signify going forward, breaking changes for React 16 or
|
|
24
|
+
React 17 may come via non-major semver releases.
|
|
25
|
+
|
|
26
|
+
Please refer this community post for more details:
|
|
27
|
+
https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
|
|
28
|
+
|
|
29
|
+
### Minor Changes
|
|
30
|
+
|
|
31
|
+
- [#116198](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116198)
|
|
32
|
+
[`3f2a72e33616f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3f2a72e33616f) -
|
|
33
|
+
ED-26667 remove borders for the Editor status node
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- Updated dependencies
|
|
38
|
+
|
|
3
39
|
## 99.19.0
|
|
4
40
|
|
|
5
41
|
### Minor Changes
|
|
@@ -41,14 +41,17 @@ function HyperlinkAddToolbar(_ref2) {
|
|
|
41
41
|
editorAppearance = _ref2.editorAppearance,
|
|
42
42
|
inputMethod = _ref2.inputMethod,
|
|
43
43
|
searchSessionId = _ref2.searchSessionId,
|
|
44
|
-
timesViewed = _ref2.timesViewed
|
|
44
|
+
timesViewed = _ref2.timesViewed,
|
|
45
|
+
isOffline = _ref2.isOffline;
|
|
45
46
|
return /*#__PURE__*/_react.default.createElement(_providerFactory.WithProviders, {
|
|
46
47
|
providers: ['activityProvider', 'searchProvider'],
|
|
47
48
|
providerFactory: providerFactory,
|
|
48
49
|
renderNode: function renderNode(_ref3) {
|
|
49
50
|
var activityProvider = _ref3.activityProvider,
|
|
50
51
|
searchProvider = _ref3.searchProvider;
|
|
51
|
-
|
|
52
|
+
// If we're offline fallback to HyperlinkAddToolbarComp as we may not have loaded
|
|
53
|
+
// EditorLinkPicker into the bundle
|
|
54
|
+
if (lpLinkPicker && !Boolean(isOffline)) {
|
|
52
55
|
return /*#__PURE__*/_react.default.createElement(_EditorLinkPicker.EditorLinkPicker, (0, _extends2.default)({
|
|
53
56
|
view: view,
|
|
54
57
|
invokeMethod: // Provide `invokeMethod` prop as preferred value (card plugin passes as prop) otherwise assume this
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "
|
|
20
|
+
var packageVersion = "100.1.0";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// TODO: Sanitise the URL instead of just removing it
|
package/dist/cjs/styles/index.js
CHANGED
|
@@ -255,12 +255,6 @@ Object.defineProperty(exports, "getOrderedListInlineStyles", {
|
|
|
255
255
|
return _lists.getOrderedListInlineStyles;
|
|
256
256
|
}
|
|
257
257
|
});
|
|
258
|
-
Object.defineProperty(exports, "getStatusSharedStyles", {
|
|
259
|
-
enumerable: true,
|
|
260
|
-
get: function get() {
|
|
261
|
-
return _status.getStatusSharedStyles;
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
258
|
Object.defineProperty(exports, "gridStyles", {
|
|
265
259
|
enumerable: true,
|
|
266
260
|
get: function get() {
|
|
@@ -1,26 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports.
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _react = require("@emotion/react");
|
|
10
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
6
|
+
exports.StatusSharedCssClassName = void 0;
|
|
11
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
8
|
|
|
13
9
|
var StatusSharedCssClassName = exports.StatusSharedCssClassName = {
|
|
14
10
|
STATUS_CONTAINER: 'statusView-content-wrap',
|
|
15
11
|
STATUS_LOZENGE: 'status-lozenge-span'
|
|
16
|
-
};
|
|
17
|
-
var getStatusSharedStyles = exports.getStatusSharedStyles = function getStatusSharedStyles() {
|
|
18
|
-
return (
|
|
19
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
20
|
-
(0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ?
|
|
21
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
|
|
22
|
-
(0, _react.css)((0, _defineProperty2.default)({}, ".".concat(StatusSharedCssClassName.STATUS_LOZENGE, " > span "), {
|
|
23
|
-
border: "1px solid ".concat("var(--ds-border-inverse, #FFF)")
|
|
24
|
-
})) : (0, _react.css)({})
|
|
25
|
-
);
|
|
26
12
|
};
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "
|
|
26
|
+
var packageVersion = "100.1.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -32,7 +32,8 @@ export function HyperlinkAddToolbar({
|
|
|
32
32
|
editorAppearance,
|
|
33
33
|
inputMethod,
|
|
34
34
|
searchSessionId,
|
|
35
|
-
timesViewed
|
|
35
|
+
timesViewed,
|
|
36
|
+
isOffline
|
|
36
37
|
}) {
|
|
37
38
|
return /*#__PURE__*/React.createElement(WithProviders, {
|
|
38
39
|
providers: ['activityProvider', 'searchProvider'],
|
|
@@ -41,7 +42,9 @@ export function HyperlinkAddToolbar({
|
|
|
41
42
|
activityProvider,
|
|
42
43
|
searchProvider
|
|
43
44
|
}) => {
|
|
44
|
-
|
|
45
|
+
// If we're offline fallback to HyperlinkAddToolbarComp as we may not have loaded
|
|
46
|
+
// EditorLinkPicker into the bundle
|
|
47
|
+
if (lpLinkPicker && !Boolean(isOffline)) {
|
|
45
48
|
return /*#__PURE__*/React.createElement(EditorLinkPicker, _extends({
|
|
46
49
|
view: view,
|
|
47
50
|
invokeMethod: // Provide `invokeMethod` prop as preferred value (card plugin passes as prop) otherwise assume this
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "
|
|
4
|
+
const packageVersion = "100.1.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -20,7 +20,7 @@ export { codeMarkSharedStyles } from './shared/code-mark';
|
|
|
20
20
|
export { shadowSharedStyle } from './shared/shadow';
|
|
21
21
|
export { dateSharedStyle, DateSharedCssClassName } from './shared/date';
|
|
22
22
|
export { tasksAndDecisionsStyles, TaskDecisionSharedCssClassName } from './shared/task-decision';
|
|
23
|
-
export { StatusSharedCssClassName
|
|
23
|
+
export { StatusSharedCssClassName } from './shared/status';
|
|
24
24
|
export { smartCardSharedStyles, SmartCardSharedCssClassName } from './shared/smart-card';
|
|
25
25
|
export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
|
|
26
26
|
export { CodeBlockSharedCssClassName, codeBlockSharedStyles, codeBlockInListSafariFix } from './shared/code-block';
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
-
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
+
|
|
4
3
|
export const StatusSharedCssClassName = {
|
|
5
4
|
STATUS_CONTAINER: 'statusView-content-wrap',
|
|
6
5
|
STATUS_LOZENGE: 'status-lozenge-span'
|
|
7
|
-
};
|
|
8
|
-
export const getStatusSharedStyles = () =>
|
|
9
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
10
|
-
fg('platform-component-visual-refresh') ?
|
|
11
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
|
|
12
|
-
css({
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
14
|
-
[`.${StatusSharedCssClassName.STATUS_LOZENGE} > span `]: {
|
|
15
|
-
border: `1px solid ${"var(--ds-border-inverse, #FFF)"}`
|
|
16
|
-
}
|
|
17
|
-
}) : css({});
|
|
6
|
+
};
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "
|
|
16
|
+
const packageVersion = "100.1.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -34,14 +34,17 @@ export function HyperlinkAddToolbar(_ref2) {
|
|
|
34
34
|
editorAppearance = _ref2.editorAppearance,
|
|
35
35
|
inputMethod = _ref2.inputMethod,
|
|
36
36
|
searchSessionId = _ref2.searchSessionId,
|
|
37
|
-
timesViewed = _ref2.timesViewed
|
|
37
|
+
timesViewed = _ref2.timesViewed,
|
|
38
|
+
isOffline = _ref2.isOffline;
|
|
38
39
|
return /*#__PURE__*/React.createElement(WithProviders, {
|
|
39
40
|
providers: ['activityProvider', 'searchProvider'],
|
|
40
41
|
providerFactory: providerFactory,
|
|
41
42
|
renderNode: function renderNode(_ref3) {
|
|
42
43
|
var activityProvider = _ref3.activityProvider,
|
|
43
44
|
searchProvider = _ref3.searchProvider;
|
|
44
|
-
|
|
45
|
+
// If we're offline fallback to HyperlinkAddToolbarComp as we may not have loaded
|
|
46
|
+
// EditorLinkPicker into the bundle
|
|
47
|
+
if (lpLinkPicker && !Boolean(isOffline)) {
|
|
45
48
|
return /*#__PURE__*/React.createElement(EditorLinkPicker, _extends({
|
|
46
49
|
view: view,
|
|
47
50
|
invokeMethod: // Provide `invokeMethod` prop as preferred value (card plugin passes as prop) otherwise assume this
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "
|
|
10
|
+
var packageVersion = "100.1.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// TODO: Sanitise the URL instead of just removing it
|
package/dist/esm/styles/index.js
CHANGED
|
@@ -20,7 +20,7 @@ export { codeMarkSharedStyles } from './shared/code-mark';
|
|
|
20
20
|
export { shadowSharedStyle } from './shared/shadow';
|
|
21
21
|
export { dateSharedStyle, DateSharedCssClassName } from './shared/date';
|
|
22
22
|
export { tasksAndDecisionsStyles, TaskDecisionSharedCssClassName } from './shared/task-decision';
|
|
23
|
-
export { StatusSharedCssClassName
|
|
23
|
+
export { StatusSharedCssClassName } from './shared/status';
|
|
24
24
|
export { smartCardSharedStyles, SmartCardSharedCssClassName } from './shared/smart-card';
|
|
25
25
|
export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
|
|
26
26
|
export { CodeBlockSharedCssClassName, codeBlockSharedStyles, codeBlockInListSafariFix } from './shared/code-block';
|
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
|
-
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
+
|
|
5
3
|
export var StatusSharedCssClassName = {
|
|
6
4
|
STATUS_CONTAINER: 'statusView-content-wrap',
|
|
7
5
|
STATUS_LOZENGE: 'status-lozenge-span'
|
|
8
|
-
};
|
|
9
|
-
export var getStatusSharedStyles = function getStatusSharedStyles() {
|
|
10
|
-
return (
|
|
11
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
12
|
-
fg('platform-component-visual-refresh') ?
|
|
13
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
|
|
14
|
-
css(_defineProperty({}, ".".concat(StatusSharedCssClassName.STATUS_LOZENGE, " > span "), {
|
|
15
|
-
border: "1px solid ".concat("var(--ds-border-inverse, #FFF)")
|
|
16
|
-
})) : css({})
|
|
17
|
-
);
|
|
18
6
|
};
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "
|
|
23
|
+
var packageVersion = "100.1.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -2,8 +2,8 @@ import type { ExtensionAutoConvertHandler, ExtensionKey, ExtensionManifest, Exte
|
|
|
2
2
|
import type { Parameters } from './types/extension-parameters';
|
|
3
3
|
import type { ExtensionProvider } from './types/extension-provider';
|
|
4
4
|
export default class DefaultExtensionProvider<T extends Parameters> implements ExtensionProvider<T> {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
protected manifestsPromise: Promise<ExtensionManifest<T>[]>;
|
|
6
|
+
protected autoConvertHandlers?: ExtensionAutoConvertHandler[];
|
|
7
7
|
constructor(manifests: ExtensionManifest<T>[] | Promise<ExtensionManifest<T>[]>,
|
|
8
8
|
/**
|
|
9
9
|
* Allows for an optional list of pre compiled auto convert handlers to be passed.
|
|
@@ -83,6 +83,9 @@ export type ExtensionModules<T extends Parameters = Parameters> = {
|
|
|
83
83
|
};
|
|
84
84
|
export type ExtensionQuickInsertModule = 'quickInsert';
|
|
85
85
|
export type ExtensionModuleType<T extends Parameters = Parameters> = Exclude<keyof ExtensionModules<T>, 'nodes' | 'fields'>;
|
|
86
|
+
type AutoConvertMatches = {
|
|
87
|
+
pattern: string;
|
|
88
|
+
};
|
|
86
89
|
export type ExtensionManifest<T extends Parameters = Parameters> = {
|
|
87
90
|
type: ExtensionType;
|
|
88
91
|
key: ExtensionKey;
|
|
@@ -97,6 +100,10 @@ export type ExtensionManifest<T extends Parameters = Parameters> = {
|
|
|
97
100
|
[dimensions: string]: () => ExtensionIconModule;
|
|
98
101
|
};
|
|
99
102
|
modules: ExtensionModules<T>;
|
|
103
|
+
autoConvert?: {
|
|
104
|
+
matches: Array<AutoConvertMatches>;
|
|
105
|
+
};
|
|
100
106
|
};
|
|
101
107
|
export type Icon = () => ExtensionIconModule;
|
|
102
108
|
export type Module<T extends Parameters> = MaybeESModule<T>;
|
|
109
|
+
export {};
|
|
@@ -18,5 +18,6 @@ export interface HyperlinkAddToolbarProps extends Pick<EditorLinkPickerProps, 'o
|
|
|
18
18
|
inputMethod?: string;
|
|
19
19
|
searchSessionId?: string;
|
|
20
20
|
timesViewed?: number;
|
|
21
|
+
isOffline?: boolean;
|
|
21
22
|
}
|
|
22
|
-
export declare function HyperlinkAddToolbar({ linkPickerOptions, onSubmit, displayText, displayUrl, providerFactory, view, onCancel, invokeMethod, lpLinkPicker, onClose, onEscapeCallback, onClickAwayCallback, editorAppearance, inputMethod, searchSessionId, timesViewed, }: HyperlinkAddToolbarProps): React.JSX.Element;
|
|
23
|
+
export declare function HyperlinkAddToolbar({ linkPickerOptions, onSubmit, displayText, displayUrl, providerFactory, view, onCancel, invokeMethod, lpLinkPicker, onClose, onEscapeCallback, onClickAwayCallback, editorAppearance, inputMethod, searchSessionId, timesViewed, isOffline, }: HyperlinkAddToolbarProps): React.JSX.Element;
|
|
@@ -17,7 +17,7 @@ export { codeMarkSharedStyles } from './shared/code-mark';
|
|
|
17
17
|
export { shadowSharedStyle } from './shared/shadow';
|
|
18
18
|
export { dateSharedStyle, DateSharedCssClassName } from './shared/date';
|
|
19
19
|
export { tasksAndDecisionsStyles, TaskDecisionSharedCssClassName } from './shared/task-decision';
|
|
20
|
-
export { StatusSharedCssClassName
|
|
20
|
+
export { StatusSharedCssClassName } from './shared/status';
|
|
21
21
|
export { smartCardSharedStyles, SmartCardSharedCssClassName } from './shared/smart-card';
|
|
22
22
|
export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
|
|
23
23
|
export { CodeBlockSharedCssClassName, codeBlockSharedStyles, codeBlockInListSafariFix, } from './shared/code-block';
|
|
@@ -2,8 +2,8 @@ import type { ExtensionAutoConvertHandler, ExtensionKey, ExtensionManifest, Exte
|
|
|
2
2
|
import type { Parameters } from './types/extension-parameters';
|
|
3
3
|
import type { ExtensionProvider } from './types/extension-provider';
|
|
4
4
|
export default class DefaultExtensionProvider<T extends Parameters> implements ExtensionProvider<T> {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
protected manifestsPromise: Promise<ExtensionManifest<T>[]>;
|
|
6
|
+
protected autoConvertHandlers?: ExtensionAutoConvertHandler[];
|
|
7
7
|
constructor(manifests: ExtensionManifest<T>[] | Promise<ExtensionManifest<T>[]>,
|
|
8
8
|
/**
|
|
9
9
|
* Allows for an optional list of pre compiled auto convert handlers to be passed.
|
|
@@ -83,6 +83,9 @@ export type ExtensionModules<T extends Parameters = Parameters> = {
|
|
|
83
83
|
};
|
|
84
84
|
export type ExtensionQuickInsertModule = 'quickInsert';
|
|
85
85
|
export type ExtensionModuleType<T extends Parameters = Parameters> = Exclude<keyof ExtensionModules<T>, 'nodes' | 'fields'>;
|
|
86
|
+
type AutoConvertMatches = {
|
|
87
|
+
pattern: string;
|
|
88
|
+
};
|
|
86
89
|
export type ExtensionManifest<T extends Parameters = Parameters> = {
|
|
87
90
|
type: ExtensionType;
|
|
88
91
|
key: ExtensionKey;
|
|
@@ -97,6 +100,10 @@ export type ExtensionManifest<T extends Parameters = Parameters> = {
|
|
|
97
100
|
[dimensions: string]: () => ExtensionIconModule;
|
|
98
101
|
};
|
|
99
102
|
modules: ExtensionModules<T>;
|
|
103
|
+
autoConvert?: {
|
|
104
|
+
matches: Array<AutoConvertMatches>;
|
|
105
|
+
};
|
|
100
106
|
};
|
|
101
107
|
export type Icon = () => ExtensionIconModule;
|
|
102
108
|
export type Module<T extends Parameters> = MaybeESModule<T>;
|
|
109
|
+
export {};
|
|
@@ -18,5 +18,6 @@ export interface HyperlinkAddToolbarProps extends Pick<EditorLinkPickerProps, 'o
|
|
|
18
18
|
inputMethod?: string;
|
|
19
19
|
searchSessionId?: string;
|
|
20
20
|
timesViewed?: number;
|
|
21
|
+
isOffline?: boolean;
|
|
21
22
|
}
|
|
22
|
-
export declare function HyperlinkAddToolbar({ linkPickerOptions, onSubmit, displayText, displayUrl, providerFactory, view, onCancel, invokeMethod, lpLinkPicker, onClose, onEscapeCallback, onClickAwayCallback, editorAppearance, inputMethod, searchSessionId, timesViewed, }: HyperlinkAddToolbarProps): React.JSX.Element;
|
|
23
|
+
export declare function HyperlinkAddToolbar({ linkPickerOptions, onSubmit, displayText, displayUrl, providerFactory, view, onCancel, invokeMethod, lpLinkPicker, onClose, onEscapeCallback, onClickAwayCallback, editorAppearance, inputMethod, searchSessionId, timesViewed, isOffline, }: HyperlinkAddToolbarProps): React.JSX.Element;
|
|
@@ -17,7 +17,7 @@ export { codeMarkSharedStyles } from './shared/code-mark';
|
|
|
17
17
|
export { shadowSharedStyle } from './shared/shadow';
|
|
18
18
|
export { dateSharedStyle, DateSharedCssClassName } from './shared/date';
|
|
19
19
|
export { tasksAndDecisionsStyles, TaskDecisionSharedCssClassName } from './shared/task-decision';
|
|
20
|
-
export { StatusSharedCssClassName
|
|
20
|
+
export { StatusSharedCssClassName } from './shared/status';
|
|
21
21
|
export { smartCardSharedStyles, SmartCardSharedCssClassName } from './shared/smart-card';
|
|
22
22
|
export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
|
|
23
23
|
export { CodeBlockSharedCssClassName, codeBlockSharedStyles, codeBlockInListSafariFix, } from './shared/code-block';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "100.1.0",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -115,50 +115,50 @@
|
|
|
115
115
|
"@atlaskit/activity-provider": "^2.5.0",
|
|
116
116
|
"@atlaskit/adf-schema": "^47.2.1",
|
|
117
117
|
"@atlaskit/adf-utils": "^19.18.0",
|
|
118
|
-
"@atlaskit/analytics-listeners": "^
|
|
119
|
-
"@atlaskit/analytics-namespaced-context": "^
|
|
120
|
-
"@atlaskit/analytics-next": "^
|
|
121
|
-
"@atlaskit/atlassian-context": "^0.
|
|
122
|
-
"@atlaskit/button": "^
|
|
123
|
-
"@atlaskit/code": "^
|
|
118
|
+
"@atlaskit/analytics-listeners": "^9.0.0",
|
|
119
|
+
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
120
|
+
"@atlaskit/analytics-next": "^11.0.0",
|
|
121
|
+
"@atlaskit/atlassian-context": "^0.2.0",
|
|
122
|
+
"@atlaskit/button": "^21.1.0",
|
|
123
|
+
"@atlaskit/code": "^16.0.0",
|
|
124
124
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
125
125
|
"@atlaskit/custom-steps": "^0.10.0",
|
|
126
|
-
"@atlaskit/dropdown-menu": "^
|
|
126
|
+
"@atlaskit/dropdown-menu": "^13.0.0",
|
|
127
127
|
"@atlaskit/editor-json-transformer": "^8.23.0",
|
|
128
|
-
"@atlaskit/editor-palette": "
|
|
128
|
+
"@atlaskit/editor-palette": "2.0.0",
|
|
129
129
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
130
130
|
"@atlaskit/editor-shared-styles": "^3.3.0",
|
|
131
131
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
132
|
-
"@atlaskit/emoji": "^
|
|
133
|
-
"@atlaskit/icon": "^
|
|
134
|
-
"@atlaskit/icon-object": "^
|
|
132
|
+
"@atlaskit/emoji": "^68.0.0",
|
|
133
|
+
"@atlaskit/icon": "^24.0.0",
|
|
134
|
+
"@atlaskit/icon-object": "^7.0.0",
|
|
135
135
|
"@atlaskit/link-datasource": "^3.21.0",
|
|
136
|
-
"@atlaskit/link-picker": "^
|
|
137
|
-
"@atlaskit/media-card": "^
|
|
138
|
-
"@atlaskit/media-client": "^
|
|
139
|
-
"@atlaskit/media-client-react": "^
|
|
140
|
-
"@atlaskit/media-common": "^
|
|
141
|
-
"@atlaskit/media-file-preview": "^0.
|
|
142
|
-
"@atlaskit/media-picker": "^
|
|
143
|
-
"@atlaskit/media-ui": "^
|
|
144
|
-
"@atlaskit/media-viewer": "
|
|
145
|
-
"@atlaskit/mention": "^
|
|
146
|
-
"@atlaskit/menu": "^
|
|
147
|
-
"@atlaskit/onboarding": "^
|
|
136
|
+
"@atlaskit/link-picker": "^2.0.0",
|
|
137
|
+
"@atlaskit/media-card": "^79.0.0",
|
|
138
|
+
"@atlaskit/media-client": "^32.0.0",
|
|
139
|
+
"@atlaskit/media-client-react": "^4.0.0",
|
|
140
|
+
"@atlaskit/media-common": "^12.0.0",
|
|
141
|
+
"@atlaskit/media-file-preview": "^0.11.0",
|
|
142
|
+
"@atlaskit/media-picker": "^68.0.0",
|
|
143
|
+
"@atlaskit/media-ui": "^28.0.0",
|
|
144
|
+
"@atlaskit/media-viewer": "51.0.0",
|
|
145
|
+
"@atlaskit/mention": "^24.0.0",
|
|
146
|
+
"@atlaskit/menu": "^3.0.0",
|
|
147
|
+
"@atlaskit/onboarding": "^13.0.0",
|
|
148
148
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
149
|
-
"@atlaskit/popper": "^
|
|
150
|
-
"@atlaskit/primitives": "^
|
|
151
|
-
"@atlaskit/profilecard": "^
|
|
152
|
-
"@atlaskit/section-message": "^
|
|
153
|
-
"@atlaskit/smart-card": "^
|
|
154
|
-
"@atlaskit/smart-user-picker": "^
|
|
155
|
-
"@atlaskit/spinner": "^
|
|
156
|
-
"@atlaskit/task-decision": "^
|
|
157
|
-
"@atlaskit/textfield": "^
|
|
158
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
159
|
-
"@atlaskit/tokens": "^
|
|
160
|
-
"@atlaskit/tooltip": "^
|
|
161
|
-
"@atlaskit/width-detector": "^
|
|
149
|
+
"@atlaskit/popper": "^7.0.0",
|
|
150
|
+
"@atlaskit/primitives": "^14.0.0",
|
|
151
|
+
"@atlaskit/profilecard": "^23.1.0",
|
|
152
|
+
"@atlaskit/section-message": "^8.0.0",
|
|
153
|
+
"@atlaskit/smart-card": "^35.0.0",
|
|
154
|
+
"@atlaskit/smart-user-picker": "^8.0.0",
|
|
155
|
+
"@atlaskit/spinner": "^18.0.0",
|
|
156
|
+
"@atlaskit/task-decision": "^19.0.0",
|
|
157
|
+
"@atlaskit/textfield": "^8.0.0",
|
|
158
|
+
"@atlaskit/tmp-editor-statsig": "^3.1.0",
|
|
159
|
+
"@atlaskit/tokens": "^4.1.0",
|
|
160
|
+
"@atlaskit/tooltip": "^20.0.0",
|
|
161
|
+
"@atlaskit/width-detector": "^5.0.0",
|
|
162
162
|
"@babel/runtime": "^7.0.0",
|
|
163
163
|
"@emotion/react": "^11.7.1",
|
|
164
164
|
"@sentry/browser": "^6.18.2",
|
|
@@ -186,15 +186,15 @@
|
|
|
186
186
|
"w3c-keyname": "^2.1.8"
|
|
187
187
|
},
|
|
188
188
|
"peerDependencies": {
|
|
189
|
-
"@atlaskit/media-core": "^
|
|
190
|
-
"react": "^
|
|
191
|
-
"react-dom": "^
|
|
189
|
+
"@atlaskit/media-core": "^35.0.0",
|
|
190
|
+
"react": "^18.2.0",
|
|
191
|
+
"react-dom": "^18.2.0",
|
|
192
192
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
193
193
|
},
|
|
194
194
|
"devDependencies": {
|
|
195
195
|
"@af/visual-regression": "*",
|
|
196
|
-
"@atlaskit/media-core": "^
|
|
197
|
-
"@atlaskit/media-test-helpers": "^
|
|
196
|
+
"@atlaskit/media-core": "^35.0.0",
|
|
197
|
+
"@atlaskit/media-test-helpers": "^35.0.0",
|
|
198
198
|
"@atlaskit/util-data-test": "^18.0.0",
|
|
199
199
|
"@atlaskit/visual-regression": "*",
|
|
200
200
|
"@testing-library/dom": "^10.1.0",
|