@atlaskit/editor-common 120.11.1 → 120.11.3
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 +13 -0
- package/dist/cjs/analytics/utils.js +2 -2
- package/dist/cjs/card/addLinkMetadata.js +2 -2
- package/dist/cjs/card/getLinkMetadataFromTransaction.js +2 -2
- package/dist/cjs/code-block/index.js +2 -2
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -2
- package/dist/cjs/media-inline/media-inline-image-card.js +2 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/paste/md-plugins/linkify-md-plugin.js +2 -2
- package/dist/cjs/resizer/BreakoutResizer.js +6 -6
- package/dist/cjs/styles/shared/TableSharedCssClassName.js +21 -21
- package/dist/cjs/styles/shared/mapBackgroundColors.js +2 -2
- package/dist/cjs/styles/shared/panel.js +6 -6
- package/dist/cjs/transforms/extension.js +2 -2
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Mention/mention-with-profilecard.js +2 -2
- package/dist/cjs/ui/TableSelector/index.js +3 -3
- package/dist/cjs/ui-color/ColorPalette/Palettes/borderColorPalette.js +2 -2
- package/dist/cjs/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.js +3 -3
- package/dist/cjs/ui-color/ColorPalette/Palettes/highlightColorPalette.js +2 -2
- package/dist/cjs/ui-color/ColorPalette/Palettes/textColorPalette.js +2 -2
- package/dist/cjs/ui-color/ColorPalette/utils.js +5 -4
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +2 -2
- package/dist/cjs/utils/LinkMatcher.js +2 -2
- package/dist/cjs/utils/annotation/index.js +2 -2
- package/dist/cjs/utils/hyperlink.js +2 -2
- package/dist/cjs/utils/normalizeUrl.js +4 -3
- package/dist/cjs/utils/validator.js +19 -16
- package/dist/es2019/analytics/utils.js +1 -1
- package/dist/es2019/card/addLinkMetadata.js +1 -1
- package/dist/es2019/card/getLinkMetadataFromTransaction.js +1 -1
- package/dist/es2019/code-block/index.js +1 -1
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/es2019/media-inline/media-inline-image-card.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/paste/md-plugins/linkify-md-plugin.js +1 -1
- package/dist/es2019/resizer/BreakoutResizer.js +1 -1
- package/dist/es2019/styles/shared/TableSharedCssClassName.js +1 -1
- package/dist/es2019/styles/shared/mapBackgroundColors.js +1 -1
- package/dist/es2019/styles/shared/panel.js +1 -1
- package/dist/es2019/transforms/extension.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Mention/mention-with-profilecard.js +1 -1
- package/dist/es2019/ui/TableSelector/index.js +1 -1
- package/dist/es2019/ui-color/ColorPalette/Palettes/borderColorPalette.js +1 -1
- package/dist/es2019/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.js +1 -1
- package/dist/es2019/ui-color/ColorPalette/Palettes/highlightColorPalette.js +1 -1
- package/dist/es2019/ui-color/ColorPalette/Palettes/textColorPalette.js +1 -1
- package/dist/es2019/ui-color/ColorPalette/utils.js +3 -2
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +1 -1
- package/dist/es2019/utils/LinkMatcher.js +1 -1
- package/dist/es2019/utils/annotation/index.js +1 -1
- package/dist/es2019/utils/hyperlink.js +1 -1
- package/dist/es2019/utils/normalizeUrl.js +2 -1
- package/dist/es2019/utils/validator.js +4 -1
- package/dist/esm/analytics/utils.js +1 -1
- package/dist/esm/card/addLinkMetadata.js +1 -1
- package/dist/esm/card/getLinkMetadataFromTransaction.js +1 -1
- package/dist/esm/code-block/index.js +1 -1
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/esm/media-inline/media-inline-image-card.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/paste/md-plugins/linkify-md-plugin.js +1 -1
- package/dist/esm/resizer/BreakoutResizer.js +1 -1
- package/dist/esm/styles/shared/TableSharedCssClassName.js +1 -1
- package/dist/esm/styles/shared/mapBackgroundColors.js +1 -1
- package/dist/esm/styles/shared/panel.js +1 -1
- package/dist/esm/transforms/extension.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Mention/mention-with-profilecard.js +1 -1
- package/dist/esm/ui/TableSelector/index.js +1 -1
- package/dist/esm/ui-color/ColorPalette/Palettes/borderColorPalette.js +1 -1
- package/dist/esm/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.js +1 -1
- package/dist/esm/ui-color/ColorPalette/Palettes/highlightColorPalette.js +1 -1
- package/dist/esm/ui-color/ColorPalette/Palettes/textColorPalette.js +1 -1
- package/dist/esm/ui-color/ColorPalette/utils.js +3 -2
- package/dist/esm/ui-menu/ColorPickerButton/index.js +1 -1
- package/dist/esm/utils/LinkMatcher.js +1 -1
- package/dist/esm/utils/annotation/index.js +1 -1
- package/dist/esm/utils/hyperlink.js +1 -1
- package/dist/esm/utils/normalizeUrl.js +2 -1
- package/dist/esm/utils/validator.js +4 -1
- package/dist/types/analytics/types/extension-events.d.ts +1 -1
- package/dist/types/analytics/types/general-events.d.ts +1 -1
- package/dist/types/analytics/types/insert-events.d.ts +2 -1
- package/dist/types/analytics/types/media-events.d.ts +1 -1
- package/dist/types/analytics/types/node-events.d.ts +1 -1
- package/dist/types/analytics/types/table-events.d.ts +1 -1
- package/dist/types/annotation/index.d.ts +1 -1
- package/dist/types/annotation/manager.d.ts +1 -1
- package/dist/types/block-menu/scroll-to-block-utils.d.ts +1 -1
- package/dist/types/card/MediaAndEmbedsToolbar/index.d.ts +1 -1
- package/dist/types/card/addLinkMetadata.d.ts +1 -1
- package/dist/types/card/getLinkMetadataFromTransaction.d.ts +1 -1
- package/dist/types/card/utils.d.ts +1 -1
- package/dist/types/code-block/index.d.ts +1 -1
- package/dist/types/collab/index.d.ts +2 -1
- package/dist/types/guideline/getGuidelineSnaps.d.ts +1 -1
- package/dist/types/media-single/ExternalImageBadge.d.ts +1 -1
- package/dist/types/media-single/constants.d.ts +1 -1
- package/dist/types/media-single/utils.d.ts +1 -1
- package/dist/types/provider-factory/macro-provider.d.ts +1 -1
- package/dist/types/provider-factory/profile-card-provider.d.ts +2 -1
- package/dist/types/styles/shared/calcTableWidth.d.ts +1 -1
- package/dist/types/styles/shared/panel.d.ts +1 -1
- package/dist/types/types/annotation/emitter.d.ts +1 -1
- package/dist/types/types/annotation/index.d.ts +1 -1
- package/dist/types/ui/MediaSingle/calcResizedWidth.d.ts +1 -1
- package/dist/types/ui/MediaSingle/grid.d.ts +1 -1
- package/dist/types/ui/MediaSingle/index.d.ts +1 -1
- package/dist/types/ui/MediaSingle/styled.d.ts +1 -1
- package/dist/types/ui/MediaSingle/wrappedLayouts.d.ts +1 -1
- package/dist/types/ui/Mention/index.d.ts +1 -1
- package/dist/types/ui/Mention/mention-with-profilecard.d.ts +1 -1
- package/dist/types/ui/Mention/mention-with-providers.d.ts +1 -1
- package/dist/types/ui/ResizerLegacy/index.d.ts +1 -1
- package/dist/types/ui/ResizerLegacy/types.d.ts +1 -1
- package/dist/types/utils/breakout.d.ts +1 -1
- package/dist/types/utils/compareNodes.d.ts +1 -1
- package/dist/types/utils/create-adf-from-html.d.ts +1 -1
- package/dist/types/utils/grid.d.ts +1 -1
- package/dist/types/utils/nonWrappedLayouts.d.ts +1 -1
- package/dist/types/utils/parse-html-text-content.d.ts +1 -1
- package/dist/types/utils/referentiality.d.ts +1 -1
- package/dist/types/utils/rich-media-utils.d.ts +1 -1
- package/dist/types/utils/should-auto-linkify-tld.d.ts +1 -1
- package/dist/types/utils/shouldAddDefaultWrappedWidth.d.ts +1 -1
- package/package.json +3 -6
|
@@ -31,7 +31,10 @@ Object.defineProperty(exports, "markOrder", {
|
|
|
31
31
|
});
|
|
32
32
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
33
33
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
34
|
-
var
|
|
34
|
+
var _inlineNodes = require("@atlaskit/adf-schema/inline-nodes");
|
|
35
|
+
var _isSafeUrl = require("@atlaskit/adf-schema/is-safe-url");
|
|
36
|
+
var _panel = require("@atlaskit/adf-schema/panel");
|
|
37
|
+
var _uuid = require("@atlaskit/adf-schema/uuid");
|
|
35
38
|
var _schemaDefault = require("@atlaskit/adf-schema/schema-default");
|
|
36
39
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
37
40
|
var _isSubSupType = require("./isSubSupType");
|
|
@@ -85,7 +88,7 @@ var getValidDocument = exports.getValidDocument = function getValidDocument(doc)
|
|
|
85
88
|
var wrapInlineNodes = function wrapInlineNodes() {
|
|
86
89
|
var nodes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
87
90
|
return nodes.map(function (node) {
|
|
88
|
-
return
|
|
91
|
+
return _inlineNodes.inlineNodes.has(node.type) ? {
|
|
89
92
|
type: 'paragraph',
|
|
90
93
|
content: [node]
|
|
91
94
|
} : node;
|
|
@@ -163,7 +166,7 @@ var getValidUnknownNode = exports.getValidUnknownNode = function getValidUnknown
|
|
|
163
166
|
text: text || attrs.text || "[".concat(type, "]")
|
|
164
167
|
};
|
|
165
168
|
var textUrl = attrs.textUrl;
|
|
166
|
-
if (textUrl && (0,
|
|
169
|
+
if (textUrl && (0, _isSafeUrl.isSafeUrl)(textUrl)) {
|
|
167
170
|
unknownInlineNode.marks = [{
|
|
168
171
|
type: 'link',
|
|
169
172
|
attrs: {
|
|
@@ -320,7 +323,7 @@ var getValidNode = exports.getValidNode = function getValidNode(originalNode) {
|
|
|
320
323
|
}
|
|
321
324
|
case 'inlineCard':
|
|
322
325
|
{
|
|
323
|
-
if (attrs && (attrs.datasource && !attrs.url || attrs.url && (0,
|
|
326
|
+
if (attrs && (attrs.datasource && !attrs.url || attrs.url && (0, _isSafeUrl.isSafeUrl)(attrs.url) || attrs.data && attrs.data.url && (0, _isSafeUrl.isSafeUrl)(attrs.data.url))) {
|
|
324
327
|
return _objectSpread({
|
|
325
328
|
type: type,
|
|
326
329
|
attrs: attrs
|
|
@@ -332,7 +335,7 @@ var getValidNode = exports.getValidNode = function getValidNode(originalNode) {
|
|
|
332
335
|
}
|
|
333
336
|
case 'blockCard':
|
|
334
337
|
{
|
|
335
|
-
if (attrs && (attrs.datasource && !attrs.url || attrs.url && (0,
|
|
338
|
+
if (attrs && (attrs.datasource && !attrs.url || attrs.url && (0, _isSafeUrl.isSafeUrl)(attrs.url) || attrs.data && attrs.data.url && (0, _isSafeUrl.isSafeUrl)(attrs.data.url))) {
|
|
336
339
|
return {
|
|
337
340
|
type: type,
|
|
338
341
|
attrs: attrs
|
|
@@ -342,7 +345,7 @@ var getValidNode = exports.getValidNode = function getValidNode(originalNode) {
|
|
|
342
345
|
}
|
|
343
346
|
case 'embedCard':
|
|
344
347
|
{
|
|
345
|
-
if (attrs && (attrs.url && (0,
|
|
348
|
+
if (attrs && (attrs.url && (0, _isSafeUrl.isSafeUrl)(attrs.url) || attrs.data && attrs.data.url && (0, _isSafeUrl.isSafeUrl)(attrs.data.url)) && attrs.layout) {
|
|
346
349
|
return {
|
|
347
350
|
type: type,
|
|
348
351
|
attrs: attrs
|
|
@@ -681,7 +684,7 @@ var getValidNode = exports.getValidNode = function getValidNode(originalNode) {
|
|
|
681
684
|
{
|
|
682
685
|
if (attrs && content) {
|
|
683
686
|
var panelType = attrs.panelType;
|
|
684
|
-
if (Object.values(
|
|
687
|
+
if (Object.values(_panel.PanelType).includes(panelType)) {
|
|
685
688
|
return {
|
|
686
689
|
type: type,
|
|
687
690
|
attrs: attrs,
|
|
@@ -721,7 +724,7 @@ var getValidNode = exports.getValidNode = function getValidNode(originalNode) {
|
|
|
721
724
|
type: type,
|
|
722
725
|
content: content,
|
|
723
726
|
attrs: {
|
|
724
|
-
localId: attrs && attrs.localId || (0,
|
|
727
|
+
localId: attrs && attrs.localId || (0, _uuid.generateUuid)()
|
|
725
728
|
}
|
|
726
729
|
};
|
|
727
730
|
}
|
|
@@ -731,7 +734,7 @@ var getValidNode = exports.getValidNode = function getValidNode(originalNode) {
|
|
|
731
734
|
type: type,
|
|
732
735
|
content: content,
|
|
733
736
|
attrs: {
|
|
734
|
-
localId: attrs && attrs.localId || (0,
|
|
737
|
+
localId: attrs && attrs.localId || (0, _uuid.generateUuid)(),
|
|
735
738
|
state: attrs && attrs.state || 'DECIDED'
|
|
736
739
|
}
|
|
737
740
|
};
|
|
@@ -742,7 +745,7 @@ var getValidNode = exports.getValidNode = function getValidNode(originalNode) {
|
|
|
742
745
|
type: type,
|
|
743
746
|
content: content,
|
|
744
747
|
attrs: {
|
|
745
|
-
localId: attrs && attrs.localId || (0,
|
|
748
|
+
localId: attrs && attrs.localId || (0, _uuid.generateUuid)()
|
|
746
749
|
}
|
|
747
750
|
};
|
|
748
751
|
}
|
|
@@ -752,7 +755,7 @@ var getValidNode = exports.getValidNode = function getValidNode(originalNode) {
|
|
|
752
755
|
type: type,
|
|
753
756
|
content: content,
|
|
754
757
|
attrs: {
|
|
755
|
-
localId: attrs && attrs.localId || (0,
|
|
758
|
+
localId: attrs && attrs.localId || (0, _uuid.generateUuid)(),
|
|
756
759
|
state: attrs && attrs.state || 'TODO'
|
|
757
760
|
}
|
|
758
761
|
};
|
|
@@ -763,7 +766,7 @@ var getValidNode = exports.getValidNode = function getValidNode(originalNode) {
|
|
|
763
766
|
type: type,
|
|
764
767
|
content: content,
|
|
765
768
|
attrs: {
|
|
766
|
-
localId: attrs && attrs.localId || (0,
|
|
769
|
+
localId: attrs && attrs.localId || (0, _uuid.generateUuid)(),
|
|
767
770
|
state: attrs && attrs.state || 'TODO'
|
|
768
771
|
}
|
|
769
772
|
};
|
|
@@ -778,7 +781,7 @@ var getValidNode = exports.getValidNode = function getValidNode(originalNode) {
|
|
|
778
781
|
type: type,
|
|
779
782
|
content: content,
|
|
780
783
|
attrs: _objectSpread(_objectSpread({}, attrs), {}, {
|
|
781
|
-
localId: (attrs === null || attrs === void 0 ? void 0 : attrs.localId) || (0,
|
|
784
|
+
localId: (attrs === null || attrs === void 0 ? void 0 : attrs.localId) || (0, _uuid.generateUuid)(),
|
|
782
785
|
width: (attrs === null || attrs === void 0 ? void 0 : attrs.width) || null
|
|
783
786
|
})
|
|
784
787
|
};
|
|
@@ -867,7 +870,7 @@ var getValidNode = exports.getValidNode = function getValidNode(originalNode) {
|
|
|
867
870
|
type: type,
|
|
868
871
|
attrs: {
|
|
869
872
|
resourceId: attrs.resourceId,
|
|
870
|
-
localId: attrs.localId || (0,
|
|
873
|
+
localId: attrs.localId || (0, _uuid.generateUuid)()
|
|
871
874
|
},
|
|
872
875
|
marks: marks
|
|
873
876
|
};
|
|
@@ -881,7 +884,7 @@ var getValidNode = exports.getValidNode = function getValidNode(originalNode) {
|
|
|
881
884
|
type: type,
|
|
882
885
|
attrs: {
|
|
883
886
|
resourceId: attrs.resourceId,
|
|
884
|
-
localId: attrs.localId || (0,
|
|
887
|
+
localId: attrs.localId || (0, _uuid.generateUuid)()
|
|
885
888
|
},
|
|
886
889
|
marks: marks,
|
|
887
890
|
content: content
|
|
@@ -940,7 +943,7 @@ var getValidMark = exports.getValidMark = function getValidMark(mark) {
|
|
|
940
943
|
if (__confluenceMetadata) {
|
|
941
944
|
linkAttrs.__confluenceMetadata = __confluenceMetadata;
|
|
942
945
|
}
|
|
943
|
-
if (linkHref && (0,
|
|
946
|
+
if (linkHref && (0, _isSafeUrl.isSafeUrl)(linkHref)) {
|
|
944
947
|
return {
|
|
945
948
|
type: type,
|
|
946
949
|
attrs: linkAttrs
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnalyticsStep } from '@atlaskit/adf-schema/steps';
|
|
1
|
+
import { AnalyticsStep } from '@atlaskit/adf-schema/steps/analytics';
|
|
2
2
|
export function getAnalyticsEventsFromTransaction(tr) {
|
|
3
3
|
return tr.steps.filter(step => step instanceof AnalyticsStep).reduce((acc, step) => [...acc, ...step.analyticsEvents], []);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LinkMetaStep } from '@atlaskit/adf-schema/steps';
|
|
1
|
+
import { LinkMetaStep } from '@atlaskit/adf-schema/steps/link-meta-step';
|
|
2
2
|
/**
|
|
3
3
|
* Records metadata about the user action and input method relating to a transaction
|
|
4
4
|
* as a custom LinkStepMetadata prosemirror step so that it is preserved in
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LinkMetaStep } from '@atlaskit/adf-schema/steps';
|
|
1
|
+
import { LinkMetaStep } from '@atlaskit/adf-schema/steps/link-meta-step';
|
|
2
2
|
export function getLinkMetadataFromTransaction(tr) {
|
|
3
3
|
return tr.steps.reduce((metadata, step) => {
|
|
4
4
|
if (!(step instanceof LinkMetaStep)) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports */
|
|
2
|
-
import { uuid } from '@atlaskit/adf-schema';
|
|
2
|
+
import { uuid } from '@atlaskit/adf-schema/uuid';
|
|
3
3
|
import { ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -13,7 +13,7 @@ import debounce from 'lodash/debounce';
|
|
|
13
13
|
import { flushSync } from 'react-dom';
|
|
14
14
|
import FocusLock from 'react-focus-lock';
|
|
15
15
|
import { injectIntl } from 'react-intl';
|
|
16
|
-
import { isSafeUrl } from '@atlaskit/adf-schema';
|
|
16
|
+
import { isSafeUrl } from '@atlaskit/adf-schema/is-safe-url';
|
|
17
17
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
18
18
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
19
19
|
import PageObject from '@atlaskit/object/page';
|
|
@@ -14,7 +14,7 @@ import { FileFetcherError } from '@atlaskit/media-client';
|
|
|
14
14
|
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
15
15
|
import { MediaViewer } from '@atlaskit/media-viewer';
|
|
16
16
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
17
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
17
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
18
18
|
import { messages } from '../messages/media-inline-card';
|
|
19
19
|
import { referenceHeights } from './constants';
|
|
20
20
|
import { InlineImageCard } from './inline-image-card';
|
|
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
14
14
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
15
15
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
16
16
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
17
|
-
const packageVersion = "120.11.
|
|
17
|
+
const packageVersion = "120.11.2";
|
|
18
18
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
19
19
|
// Remove URL as it has UGC
|
|
20
20
|
// Ignored via go/ees007
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// See https://product-fabric.atlassian.net/browse/ED-3097 for why this file exists.
|
|
5
5
|
|
|
6
6
|
import LinkifyIt from 'linkify-it';
|
|
7
|
-
import { linkifyMatch } from '@atlaskit/adf-schema';
|
|
7
|
+
import { linkifyMatch } from '@atlaskit/adf-schema/linkify-match';
|
|
8
8
|
import { findFilepaths, isLinkInMatches, shouldAutoLinkifyMatch } from '../../utils';
|
|
9
9
|
|
|
10
10
|
// Ignored via go/ees005
|
|
@@ -2,7 +2,7 @@ import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useSta
|
|
|
2
2
|
import { bind, bindAll } from 'bind-event-listener';
|
|
3
3
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
4
4
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
5
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
5
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
6
6
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../analytics';
|
|
7
7
|
import { LAYOUT_SECTION_MARGIN } from '../styles';
|
|
8
8
|
import { getBrowserInfo } from '../utils/browser';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tableCellContentDomSelector, tableCellSelector, tableHeaderSelector, tablePrefixSelector } from '@atlaskit/adf-schema';
|
|
1
|
+
import { tableCellContentDomSelector, tableCellSelector, tableHeaderSelector, tablePrefixSelector } from '@atlaskit/adf-schema/tableNodes';
|
|
2
2
|
export const TableSharedCssClassName = {
|
|
3
3
|
TABLE_CONTAINER: `${tablePrefixSelector}-container`,
|
|
4
4
|
TABLE_NODE_WRAPPER: `${tablePrefixSelector}-wrapper`,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tableBackgroundColorNames } from '@atlaskit/adf-schema';
|
|
1
|
+
import { tableBackgroundColorNames } from '@atlaskit/adf-schema/tableNodes';
|
|
2
2
|
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
3
3
|
|
|
4
4
|
// This is used in order to support usage of DS tokens. Table cell background-color
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "120.11.
|
|
17
|
+
const packageVersion = "120.11.2";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -5,7 +5,7 @@ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-e
|
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
6
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
7
7
|
import { Anchor } from '@atlaskit/primitives/anchor';
|
|
8
|
-
import ProfileCardTrigger from '@atlaskit/profilecard/
|
|
8
|
+
import ProfileCardTrigger from '@atlaskit/profilecard/profile-card-trigger';
|
|
9
9
|
import { navigateToTeamsApp } from '@atlaskit/teams-app-config/navigation';
|
|
10
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
11
|
// Lazy-loaded so the agent profile card chunk (and its `@atlaskit/rovo-agent-components`
|
|
@@ -9,7 +9,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
9
9
|
import { bind } from 'bind-event-listener';
|
|
10
10
|
import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
11
11
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
12
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
12
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
13
13
|
import { withReactEditorViewOuterListeners as withOuterListeners } from '../../ui-react';
|
|
14
14
|
import Popup from '../Popup';
|
|
15
15
|
import tableSelectorPopup, { TABLE_SELECTOR_BUTTON_GAP, TABLE_SELECTOR_BUTTON_SIZE } from './table-selector';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { borderColorPalette as colorPalette } from '@atlaskit/adf-schema';
|
|
1
|
+
import { borderColorPalette as colorPalette } from '@atlaskit/adf-schema/border';
|
|
2
2
|
import { DEFAULT_BORDER_COLOR } from './common';
|
|
3
3
|
import getColorMessage from './getColorMessage';
|
|
4
4
|
import paletteMessages from './paletteMessages';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tableBackgroundBorderColor, tableBackgroundColorPalette } from '@atlaskit/adf-schema';
|
|
1
|
+
import { tableBackgroundBorderColor, tableBackgroundColorPalette } from '@atlaskit/adf-schema/tableNodes';
|
|
2
2
|
import getColorMessage from './getColorMessage';
|
|
3
3
|
import paletteMessages from './paletteMessages';
|
|
4
4
|
const cellBackgroundColorPalette = [];
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
// 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
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
|
-
import { backgroundColorPalette } from '@atlaskit/adf-schema';
|
|
8
|
+
import { backgroundColorPalette } from '@atlaskit/adf-schema/background-color';
|
|
9
9
|
import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
|
|
10
10
|
import getColorMessage from './getColorMessage';
|
|
11
11
|
import { mapPaletteColor } from './mapPaletteColor';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import paletteRaw from '@atlaskit/tokens/
|
|
1
|
+
import paletteRaw from '@atlaskit/tokens/palette';
|
|
2
2
|
import tokenNames from '@atlaskit/tokens/token-names';
|
|
3
|
-
import
|
|
3
|
+
import darkTokensRaw from '@atlaskit/tokens/atlassian-dark';
|
|
4
|
+
import lightTokensRaw from '@atlaskit/tokens/atlassian-light';
|
|
4
5
|
import { getSelectedRowAndColumn } from './getSelectedRowAndColumn';
|
|
5
6
|
export const DEFAULT_COLOR_PICKER_COLUMNS = 7;
|
|
6
7
|
// Ignored via go/ees005
|
|
@@ -14,7 +14,7 @@ import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
|
14
14
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
15
15
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
16
16
|
import { Box, xcss, Inline } from '@atlaskit/primitives';
|
|
17
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
17
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
18
18
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
19
19
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, editorAnalyticsChannel, EVENT_TYPE } from '../../analytics';
|
|
20
20
|
import { colorPickerButtonMessages } from '../../messages/color-picker-button';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports */
|
|
2
|
-
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
2
|
+
import { AnnotationTypes } from '@atlaskit/adf-schema/annotation';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
export const canApplyAnnotationOnRange = (rangeSelection, doc, schema) => {
|
|
5
5
|
const {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File has been copied to packages/editor/editor-plugin-ai/src/provider/markdown-transformer/utils/hyperlink.ts
|
|
2
2
|
// If changes are made to this file, please make the same update in the linked file.
|
|
3
3
|
|
|
4
|
-
import { linkify } from '@atlaskit/adf-schema';
|
|
4
|
+
import { linkify } from '@atlaskit/adf-schema/url';
|
|
5
5
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../analytics/types/enums';
|
|
6
6
|
import { FILEPATH_REGEXP } from './FILEPATH_REGEXP';
|
|
7
7
|
import { getLinkDomain } from './getLinkDomain';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { isSafeUrl
|
|
1
|
+
import { isSafeUrl } from '@atlaskit/adf-schema/is-safe-url';
|
|
2
|
+
import { normalizeUrl as normaliseLinkHref } from '@atlaskit/adf-schema/normalize-url';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Adds protocol to url if needed.
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { inlineNodes
|
|
1
|
+
import { inlineNodes } from '@atlaskit/adf-schema/inline-nodes';
|
|
2
|
+
import { isSafeUrl } from '@atlaskit/adf-schema/is-safe-url';
|
|
3
|
+
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
4
|
+
import { generateUuid as uuid } from '@atlaskit/adf-schema/uuid';
|
|
2
5
|
import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
|
|
3
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
7
|
import { isSubSupType } from './isSubSupType';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
-
import { AnalyticsStep } from '@atlaskit/adf-schema/steps';
|
|
2
|
+
import { AnalyticsStep } from '@atlaskit/adf-schema/steps/analytics';
|
|
3
3
|
export function getAnalyticsEventsFromTransaction(tr) {
|
|
4
4
|
return tr.steps.filter(function (step) {
|
|
5
5
|
return step instanceof AnalyticsStep;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LinkMetaStep } from '@atlaskit/adf-schema/steps';
|
|
1
|
+
import { LinkMetaStep } from '@atlaskit/adf-schema/steps/link-meta-step';
|
|
2
2
|
/**
|
|
3
3
|
* Records metadata about the user action and input method relating to a transaction
|
|
4
4
|
* as a custom LinkStepMetadata prosemirror step so that it is preserved in
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import { LinkMetaStep } from '@atlaskit/adf-schema/steps';
|
|
4
|
+
import { LinkMetaStep } from '@atlaskit/adf-schema/steps/link-meta-step';
|
|
5
5
|
export function getLinkMetadataFromTransaction(tr) {
|
|
6
6
|
return tr.steps.reduce(function (metadata, step) {
|
|
7
7
|
if (!(step instanceof LinkMetaStep)) {
|
|
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports */
|
|
6
|
-
import { uuid } from '@atlaskit/adf-schema';
|
|
6
|
+
import { uuid } from '@atlaskit/adf-schema/uuid';
|
|
7
7
|
import { ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -24,7 +24,7 @@ import debounce from 'lodash/debounce';
|
|
|
24
24
|
import { flushSync } from 'react-dom';
|
|
25
25
|
import FocusLock from 'react-focus-lock';
|
|
26
26
|
import { injectIntl } from 'react-intl';
|
|
27
|
-
import { isSafeUrl } from '@atlaskit/adf-schema';
|
|
27
|
+
import { isSafeUrl } from '@atlaskit/adf-schema/is-safe-url';
|
|
28
28
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
29
29
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
30
30
|
import PageObject from '@atlaskit/object/page';
|
|
@@ -18,7 +18,7 @@ import { FileFetcherError } from '@atlaskit/media-client';
|
|
|
18
18
|
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
19
19
|
import { MediaViewer } from '@atlaskit/media-viewer';
|
|
20
20
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
21
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
21
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
22
22
|
import { messages } from '../messages/media-inline-card';
|
|
23
23
|
import { referenceHeights } from './constants';
|
|
24
24
|
import { InlineImageCard } from './inline-image-card';
|
|
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
20
20
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
21
21
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
22
22
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
23
|
-
var packageVersion = "120.11.
|
|
23
|
+
var packageVersion = "120.11.2";
|
|
24
24
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
25
25
|
// Remove URL as it has UGC
|
|
26
26
|
// Ignored via go/ees007
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// See https://product-fabric.atlassian.net/browse/ED-3097 for why this file exists.
|
|
5
5
|
|
|
6
6
|
import LinkifyIt from 'linkify-it';
|
|
7
|
-
import { linkifyMatch } from '@atlaskit/adf-schema';
|
|
7
|
+
import { linkifyMatch } from '@atlaskit/adf-schema/linkify-match';
|
|
8
8
|
import { findFilepaths, isLinkInMatches, shouldAutoLinkifyMatch } from '../../utils';
|
|
9
9
|
|
|
10
10
|
// Ignored via go/ees005
|
|
@@ -3,7 +3,7 @@ import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useSta
|
|
|
3
3
|
import { bind, bindAll } from 'bind-event-listener';
|
|
4
4
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
5
5
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
6
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
6
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
7
7
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../analytics';
|
|
8
8
|
import { LAYOUT_SECTION_MARGIN } from '../styles';
|
|
9
9
|
import { getBrowserInfo } from '../utils/browser';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tableCellContentDomSelector, tableCellSelector, tableHeaderSelector, tablePrefixSelector } from '@atlaskit/adf-schema';
|
|
1
|
+
import { tableCellContentDomSelector, tableCellSelector, tableHeaderSelector, tablePrefixSelector } from '@atlaskit/adf-schema/tableNodes';
|
|
2
2
|
export var TableSharedCssClassName = {
|
|
3
3
|
TABLE_CONTAINER: "".concat(tablePrefixSelector, "-container"),
|
|
4
4
|
TABLE_NODE_WRAPPER: "".concat(tablePrefixSelector, "-wrapper"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tableBackgroundColorNames } from '@atlaskit/adf-schema';
|
|
1
|
+
import { tableBackgroundColorNames } from '@atlaskit/adf-schema/tableNodes';
|
|
2
2
|
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
3
3
|
|
|
4
4
|
// This is used in order to support usage of DS tokens. Table cell background-color
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "120.11.
|
|
24
|
+
var packageVersion = "120.11.2";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -5,7 +5,7 @@ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-e
|
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
6
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
7
7
|
import { Anchor } from '@atlaskit/primitives/anchor';
|
|
8
|
-
import ProfileCardTrigger from '@atlaskit/profilecard/
|
|
8
|
+
import ProfileCardTrigger from '@atlaskit/profilecard/profile-card-trigger';
|
|
9
9
|
import { navigateToTeamsApp } from '@atlaskit/teams-app-config/navigation';
|
|
10
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
11
|
// Lazy-loaded so the agent profile card chunk (and its `@atlaskit/rovo-agent-components`
|
|
@@ -13,7 +13,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
13
13
|
import { bind } from 'bind-event-listener';
|
|
14
14
|
import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
15
15
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
16
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
16
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
17
17
|
import { withReactEditorViewOuterListeners as withOuterListeners } from '../../ui-react';
|
|
18
18
|
import Popup from '../Popup';
|
|
19
19
|
import tableSelectorPopup, { TABLE_SELECTOR_BUTTON_GAP, TABLE_SELECTOR_BUTTON_SIZE } from './table-selector';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { borderColorPalette as colorPalette } from '@atlaskit/adf-schema';
|
|
1
|
+
import { borderColorPalette as colorPalette } from '@atlaskit/adf-schema/border';
|
|
2
2
|
import { DEFAULT_BORDER_COLOR } from './common';
|
|
3
3
|
import getColorMessage from './getColorMessage';
|
|
4
4
|
import paletteMessages from './paletteMessages';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tableBackgroundBorderColor, tableBackgroundColorPalette } from '@atlaskit/adf-schema';
|
|
1
|
+
import { tableBackgroundBorderColor, tableBackgroundColorPalette } from '@atlaskit/adf-schema/tableNodes';
|
|
2
2
|
import getColorMessage from './getColorMessage';
|
|
3
3
|
import paletteMessages from './paletteMessages';
|
|
4
4
|
var cellBackgroundColorPalette = [];
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
// 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
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
|
-
import { backgroundColorPalette } from '@atlaskit/adf-schema';
|
|
8
|
+
import { backgroundColorPalette } from '@atlaskit/adf-schema/background-color';
|
|
9
9
|
import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
|
|
10
10
|
import getColorMessage from './getColorMessage';
|
|
11
11
|
import { mapPaletteColor } from './mapPaletteColor';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
import paletteRaw from '@atlaskit/tokens/
|
|
2
|
+
import paletteRaw from '@atlaskit/tokens/palette';
|
|
3
3
|
import tokenNames from '@atlaskit/tokens/token-names';
|
|
4
|
-
import
|
|
4
|
+
import darkTokensRaw from '@atlaskit/tokens/atlassian-dark';
|
|
5
|
+
import lightTokensRaw from '@atlaskit/tokens/atlassian-light';
|
|
5
6
|
import { getSelectedRowAndColumn } from './getSelectedRowAndColumn';
|
|
6
7
|
export var DEFAULT_COLOR_PICKER_COLUMNS = 7;
|
|
7
8
|
// Ignored via go/ees005
|
|
@@ -15,7 +15,7 @@ import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
|
15
15
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
16
16
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
17
17
|
import { Box, xcss, Inline } from '@atlaskit/primitives';
|
|
18
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
18
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
19
19
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
20
20
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, editorAnalyticsChannel, EVENT_TYPE } from '../../analytics';
|
|
21
21
|
import { colorPickerButtonMessages } from '../../messages/color-picker-button';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import { linkify } from '@atlaskit/adf-schema';
|
|
3
|
+
import { linkify } from '@atlaskit/adf-schema/url';
|
|
4
4
|
import { DONTLINKIFY_REGEXP } from './hyperlink';
|
|
5
5
|
|
|
6
6
|
/* eslint-enable require-unicode-regexp */
|