@atlaskit/editor-plugin-card 22.0.8 → 22.0.9
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 +6 -0
- package/dist/cjs/nodeviews/embedCard.js +2 -2
- package/dist/cjs/nodeviews/inlineCardBase.js +2 -2
- package/dist/cjs/nodeviews/lazy-block-card.js +2 -2
- package/dist/cjs/nodeviews/lazy-embed-card.js +2 -2
- package/dist/cjs/nodeviews/lazy-inline-card.js +2 -2
- package/dist/cjs/pm-plugins/doc.js +2 -2
- package/dist/cjs/ui/EditToolbarButton/index.js +4 -4
- package/dist/cjs/ui/LinkToolbarAppearanceDropdown.js +2 -2
- package/dist/cjs/ui/toolbar.js +5 -5
- package/dist/es2019/nodeviews/embedCard.js +1 -1
- package/dist/es2019/nodeviews/inlineCardBase.js +1 -1
- package/dist/es2019/nodeviews/lazy-block-card.js +1 -1
- package/dist/es2019/nodeviews/lazy-embed-card.js +1 -1
- package/dist/es2019/nodeviews/lazy-inline-card.js +1 -1
- package/dist/es2019/pm-plugins/doc.js +1 -1
- package/dist/es2019/ui/EditToolbarButton/index.js +1 -1
- package/dist/es2019/ui/LinkToolbarAppearanceDropdown.js +1 -1
- package/dist/es2019/ui/toolbar.js +1 -1
- package/dist/esm/nodeviews/embedCard.js +1 -1
- package/dist/esm/nodeviews/inlineCardBase.js +1 -1
- package/dist/esm/nodeviews/lazy-block-card.js +1 -1
- package/dist/esm/nodeviews/lazy-embed-card.js +1 -1
- package/dist/esm/nodeviews/lazy-inline-card.js +1 -1
- package/dist/esm/pm-plugins/doc.js +1 -1
- package/dist/esm/ui/EditToolbarButton/index.js +1 -1
- package/dist/esm/ui/LinkToolbarAppearanceDropdown.js +1 -1
- package/dist/esm/ui/toolbar.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -29,7 +29,7 @@ var _componentWithCondition = require("@atlaskit/platform-feature-flags-react/co
|
|
|
29
29
|
var _smartCard = require("@atlaskit/smart-card");
|
|
30
30
|
var _ssr = require("@atlaskit/smart-card/ssr");
|
|
31
31
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
32
|
-
var
|
|
32
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
33
33
|
var _actions = require("../pm-plugins/actions");
|
|
34
34
|
var _ResizableEmbedCard = _interopRequireDefault(require("../ui/ResizableEmbedCard"));
|
|
35
35
|
var _SmartCardSSRReactContextsProvider = require("../ui/SmartCardSSRReactContextsProvider");
|
|
@@ -474,7 +474,7 @@ var EmbedOrBlockCardComponent = exports.EmbedOrBlockCardComponent = function Emb
|
|
|
474
474
|
});
|
|
475
475
|
};
|
|
476
476
|
var WrappedEmbedCardWithCondition = (0, _componentWithCondition.componentWithCondition)(function () {
|
|
477
|
-
return (0,
|
|
477
|
+
return (0, _editorExperiment.editorExperiment)('platform_editor_preview_panel_responsiveness', true, {
|
|
478
478
|
exposure: true
|
|
479
479
|
});
|
|
480
480
|
}, EmbedOrBlockCardComponent, EmbedCardComponent);
|
|
@@ -16,7 +16,7 @@ var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
|
16
16
|
var _smartCard = require("@atlaskit/smart-card");
|
|
17
17
|
var _ssr = require("@atlaskit/smart-card/ssr");
|
|
18
18
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
19
|
-
var
|
|
19
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
20
20
|
var _actions = require("../pm-plugins/actions");
|
|
21
21
|
var _toolbar = require("../ui/toolbar");
|
|
22
22
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -115,7 +115,7 @@ var InlineCard = exports.InlineCard = /*#__PURE__*/(0, _react.memo)(function (_r
|
|
|
115
115
|
propsOnClick === null || propsOnClick === void 0 || propsOnClick(event);
|
|
116
116
|
}
|
|
117
117
|
}, [propsOnClick, url, view, pluginInjectionApi]);
|
|
118
|
-
var onClick = (0,
|
|
118
|
+
var onClick = (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1') ? handleOnClick : propsOnClick;
|
|
119
119
|
var card = (0, _react.useMemo)(function () {
|
|
120
120
|
if ((isPageSSRed || cardState && (0, _expValEquals.expValEquals)('platform_editor_smartlink_local_cache', 'isEnabled', true)) && url) {
|
|
121
121
|
return /*#__PURE__*/_react.default.createElement(_ssr.CardSSR, {
|
|
@@ -7,12 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.lazyBlockCardView = void 0;
|
|
8
8
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
9
|
var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
|
|
10
|
-
var
|
|
10
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
11
11
|
var _blockCard = require("./blockCard");
|
|
12
12
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
13
13
|
var lazyBlockCardView = exports.lazyBlockCardView = function lazyBlockCardView(props) {
|
|
14
14
|
var isPageSSRed = props.isPageSSRed;
|
|
15
|
-
if ((0,
|
|
15
|
+
if ((0, _editorExperiment.editorExperiment)('platform_editor_exp_lazy_node_views', false) || isPageSSRed) {
|
|
16
16
|
return (0, _blockCard.blockCardNodeView)(props);
|
|
17
17
|
}
|
|
18
18
|
return (0, _lazyNodeView.withLazyLoading)({
|
|
@@ -7,12 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.lazyEmbedCardView = void 0;
|
|
8
8
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
9
|
var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
|
|
10
|
-
var
|
|
10
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
11
11
|
var _embedCard = require("./embedCard");
|
|
12
12
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
13
13
|
var lazyEmbedCardView = exports.lazyEmbedCardView = function lazyEmbedCardView(props) {
|
|
14
14
|
var isPageSSRed = props.isPageSSRed;
|
|
15
|
-
if ((0,
|
|
15
|
+
if ((0, _editorExperiment.editorExperiment)('platform_editor_exp_lazy_node_views', false) || isPageSSRed) {
|
|
16
16
|
return (0, _embedCard.embedCardNodeView)(props);
|
|
17
17
|
}
|
|
18
18
|
return (0, _lazyNodeView.withLazyLoading)({
|
|
@@ -8,13 +8,13 @@ exports.lazyInlineCardView = void 0;
|
|
|
8
8
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
9
|
var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
|
|
10
10
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
11
|
-
var
|
|
11
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
12
12
|
var _inlineCard = require("./inlineCard");
|
|
13
13
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
14
14
|
var lazyInlineCardView = exports.lazyInlineCardView = function lazyInlineCardView(props) {
|
|
15
15
|
var _props$isPageSSRed = props.isPageSSRed,
|
|
16
16
|
isPageSSRed = _props$isPageSSRed === void 0 ? false : _props$isPageSSRed;
|
|
17
|
-
if ((0,
|
|
17
|
+
if ((0, _editorExperiment.editorExperiment)('platform_editor_exp_lazy_node_views', false) || (0, _expValEquals.expValEquals)('platform_editor_smartlink_local_cache', 'isEnabled', true) || isPageSSRed) {
|
|
18
18
|
return (0, _inlineCard.inlineCardNodeView)(props);
|
|
19
19
|
}
|
|
20
20
|
return (0, _lazyNodeView.withLazyLoading)({
|
|
@@ -17,7 +17,7 @@ var _utils = require("@atlaskit/editor-common/utils");
|
|
|
17
17
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
18
18
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
19
19
|
var _closeHistory = require("@atlaskit/prosemirror-history/closeHistory");
|
|
20
|
-
var
|
|
20
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
21
21
|
var _actions = require("./actions");
|
|
22
22
|
var _pluginKey = require("./plugin-key");
|
|
23
23
|
var _shouldReplaceLink = require("./shouldReplaceLink");
|
|
@@ -354,7 +354,7 @@ var convertHyperlinkToSmartCard = exports.convertHyperlinkToSmartCard = function
|
|
|
354
354
|
shouldReplaceLink: true
|
|
355
355
|
};
|
|
356
356
|
};
|
|
357
|
-
if ((0,
|
|
357
|
+
if ((0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1')) {
|
|
358
358
|
var activeLinkMark = (0, _link.getActiveLinkMark)(state);
|
|
359
359
|
if (activeLinkMark) {
|
|
360
360
|
var linkMark = activeLinkMark.node.marks.find(function (mark) {
|
|
@@ -17,7 +17,7 @@ var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-d
|
|
|
17
17
|
var _linkProvider = require("@atlaskit/link-provider");
|
|
18
18
|
var _buttonItem = _interopRequireDefault(require("@atlaskit/menu/button-item"));
|
|
19
19
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
20
|
-
var
|
|
20
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
21
21
|
var _utils = require("../../pm-plugins/utils");
|
|
22
22
|
var _editDatasourceAction = require("../editDatasourceAction");
|
|
23
23
|
var _useFetchDatasourceDataInfo = require("../useFetchDatasourceDataInfo");
|
|
@@ -106,7 +106,7 @@ var EditToolbarButtonWithCardContext = function EditToolbarButtonWithCardContext
|
|
|
106
106
|
}, (0, _react2.jsx)(_reactIntl.FormattedMessage
|
|
107
107
|
// Ignored via go/ees005
|
|
108
108
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
109
|
-
, _messages.linkToolbarMessages.editLink)), !(0,
|
|
109
|
+
, _messages.linkToolbarMessages.editLink)), !(0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1') && (0, _react2.jsx)(_ui.FloatingToolbarSeparator, {
|
|
110
110
|
areAnyNewToolbarFlagsEnabled: false
|
|
111
111
|
}));
|
|
112
112
|
}
|
|
@@ -122,7 +122,7 @@ var EditToolbarButtonWithCardContext = function EditToolbarButtonWithCardContext
|
|
|
122
122
|
}, (0, _react2.jsx)(_reactIntl.FormattedMessage
|
|
123
123
|
// Ignored via go/ees005
|
|
124
124
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
125
|
-
, _messages.linkToolbarMessages.editDatasourceStandalone)), !(0,
|
|
125
|
+
, _messages.linkToolbarMessages.editDatasourceStandalone)), !(0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1') && (0, _react2.jsx)(_ui.FloatingToolbarSeparator, {
|
|
126
126
|
areAnyNewToolbarFlagsEnabled: false
|
|
127
127
|
}));
|
|
128
128
|
}
|
|
@@ -146,7 +146,7 @@ var EditToolbarButtonWithCardContext = function EditToolbarButtonWithCardContext
|
|
|
146
146
|
}, (0, _react2.jsx)(_reactIntl.FormattedMessage
|
|
147
147
|
// Ignored via go/ees005
|
|
148
148
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
149
|
-
, _messages.cardMessages.editDropdownTriggerTitle)), !(0,
|
|
149
|
+
, _messages.cardMessages.editDropdownTriggerTitle)), !(0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1') && (0, _react2.jsx)(_ui.FloatingToolbarSeparator, {
|
|
150
150
|
areAnyNewToolbarFlagsEnabled: false
|
|
151
151
|
}));
|
|
152
152
|
return (0, _react2.jsx)(_compiled.Flex, {
|
|
@@ -17,7 +17,7 @@ var _buttonItem = _interopRequireDefault(require("@atlaskit/menu/button-item"));
|
|
|
17
17
|
var _linkItem = _interopRequireDefault(require("@atlaskit/menu/link-item"));
|
|
18
18
|
var _menuGroup = _interopRequireDefault(require("@atlaskit/menu/menu-group"));
|
|
19
19
|
var _section = _interopRequireDefault(require("@atlaskit/menu/section"));
|
|
20
|
-
var
|
|
20
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
21
21
|
var _doc = require("../pm-plugins/doc");
|
|
22
22
|
var _DatasourceDropdownOption = require("./DatasourceDropdownOption");
|
|
23
23
|
var _LinkToolbarAppearance = require("./LinkToolbarAppearance");
|
|
@@ -60,7 +60,7 @@ var LinkAppearanceMenu = exports.LinkAppearanceMenu = function LinkAppearanceMen
|
|
|
60
60
|
testId: 'embed-appearance',
|
|
61
61
|
disabled: !isEmbedCardLinkSupportedInParent,
|
|
62
62
|
tooltip: isEmbedCardLinkSupportedInParent ? undefined : (0, _LinkToolbarAppearance.getUnavailableMessage)(editorState, intl),
|
|
63
|
-
description: (0,
|
|
63
|
+
description: (0, _editorExperiment.editorExperiment)('platform_editor_preview_panel_responsiveness', true, {
|
|
64
64
|
exposure: true
|
|
65
65
|
}) ? intl.formatMessage(_messages.cardMessages.embedToBlockCardWarning) : undefined
|
|
66
66
|
};
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -29,7 +29,7 @@ var _linkBroken = _interopRequireDefault(require("@atlaskit/icon/core/link-broke
|
|
|
29
29
|
var _linkExternal = _interopRequireDefault(require("@atlaskit/icon/core/link-external"));
|
|
30
30
|
var _settings = _interopRequireDefault(require("@atlaskit/icon/core/settings"));
|
|
31
31
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
32
|
-
var
|
|
32
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
33
33
|
var _doc = require("../pm-plugins/doc");
|
|
34
34
|
var _pluginKey = require("../pm-plugins/plugin-key");
|
|
35
35
|
var _utils3 = require("../pm-plugins/utils");
|
|
@@ -168,7 +168,7 @@ var floatingToolbar = exports.floatingToolbar = function floatingToolbar(cardOpt
|
|
|
168
168
|
// Ignored via go/ees005
|
|
169
169
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
170
170
|
var richMediaElement = element.querySelector(".".concat(_styles.richMediaClassName));
|
|
171
|
-
if (!(0,
|
|
171
|
+
if (!(0, _editorExperiment.editorExperiment)('platform_editor_preview_panel_responsiveness', true, {
|
|
172
172
|
exposure: true
|
|
173
173
|
})) {
|
|
174
174
|
return richMediaElement;
|
|
@@ -321,7 +321,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
321
321
|
testId: 'inline-card-toolbar-comment-button',
|
|
322
322
|
iconFallback: _comment.default,
|
|
323
323
|
title: intl.formatMessage(_messages.annotationMessages.createComment),
|
|
324
|
-
showTitle: (0,
|
|
324
|
+
showTitle: (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'control') ? undefined : true,
|
|
325
325
|
onClick: onCommentButtonClick,
|
|
326
326
|
disabled: (0, _editorPluginConnectivity.isOfflineMode)(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c = pluginInjectionApi.connectivity) === null || _pluginInjectionApi$c === void 0 || (_pluginInjectionApi$c = _pluginInjectionApi$c.sharedState) === null || _pluginInjectionApi$c === void 0 || (_pluginInjectionApi$c = _pluginInjectionApi$c.currentState()) === null || _pluginInjectionApi$c === void 0 ? void 0 : _pluginInjectionApi$c.mode)
|
|
327
327
|
}, {
|
|
@@ -799,9 +799,9 @@ var getStartingToolbarItems = exports.getStartingToolbarItems = function getStar
|
|
|
799
799
|
type: 'button',
|
|
800
800
|
onClick: onEditLink,
|
|
801
801
|
title: intl.formatMessage(_messages.linkToolbarMessages.editLink),
|
|
802
|
-
showTitle: (0,
|
|
802
|
+
showTitle: (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1') ? false : true,
|
|
803
803
|
metadata: metadata,
|
|
804
|
-
icon: (0,
|
|
804
|
+
icon: (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1') ? _edit.default : undefined
|
|
805
805
|
}, {
|
|
806
806
|
type: 'separator'
|
|
807
807
|
}];
|
|
@@ -17,7 +17,7 @@ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/c
|
|
|
17
17
|
import { EmbedResizeMessageListener, Card as SmartCard } from '@atlaskit/smart-card';
|
|
18
18
|
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
19
19
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
20
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
20
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
21
21
|
import { registerCard, removeCard } from '../pm-plugins/actions';
|
|
22
22
|
import ResizableEmbedCard from '../ui/ResizableEmbedCard';
|
|
23
23
|
import { SmartCardSSRReactContextsProvider } from '../ui/SmartCardSSRReactContextsProvider';
|
|
@@ -9,7 +9,7 @@ import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
|
9
9
|
import { Card as SmartCard } from '@atlaskit/smart-card';
|
|
10
10
|
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
11
11
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
12
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
13
13
|
import { registerCard, removeCard } from '../pm-plugins/actions';
|
|
14
14
|
import { visitCardLinkAnalytics } from '../ui/toolbar';
|
|
15
15
|
export const InlineCard = /*#__PURE__*/memo(({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
|
|
2
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
2
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
3
3
|
import { blockCardNodeView } from './blockCard';
|
|
4
4
|
export const lazyBlockCardView = props => {
|
|
5
5
|
const {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
|
|
2
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
2
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
3
3
|
import { embedCardNodeView } from './embedCard';
|
|
4
4
|
export const lazyEmbedCardView = props => {
|
|
5
5
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
|
|
2
2
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
3
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
4
4
|
import { inlineCardNodeView } from './inlineCard';
|
|
5
5
|
export const lazyInlineCardView = props => {
|
|
6
6
|
const {
|
|
@@ -7,7 +7,7 @@ import { getAnnotationMarksForPos, getLinkCreationAnalyticsEvent, isFromCurrentD
|
|
|
7
7
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
9
|
import { closeHistory } from '@atlaskit/prosemirror-history/closeHistory';
|
|
10
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
10
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
11
11
|
import { hideDatasourceModal, queueCards, removeDatasourceStash, resolveCard, setDatasourceStash } from './actions';
|
|
12
12
|
import { pluginKey } from './plugin-key';
|
|
13
13
|
import { shouldReplaceLink } from './shouldReplaceLink';
|
|
@@ -14,7 +14,7 @@ import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
|
14
14
|
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
15
15
|
import ButtonItem from '@atlaskit/menu/button-item';
|
|
16
16
|
import { Flex } from '@atlaskit/primitives/compiled';
|
|
17
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
17
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
18
18
|
import { focusEditorView, isDatasourceConfigEditable } from '../../pm-plugins/utils';
|
|
19
19
|
import { editDatasource } from '../editDatasourceAction';
|
|
20
20
|
import { useFetchDatasourceDataInfo } from '../useFetchDatasourceDataInfo';
|
|
@@ -9,7 +9,7 @@ import ButtonItem from '@atlaskit/menu/button-item';
|
|
|
9
9
|
import LinkItem from '@atlaskit/menu/link-item';
|
|
10
10
|
import MenuGroup from '@atlaskit/menu/menu-group';
|
|
11
11
|
import Section from '@atlaskit/menu/section';
|
|
12
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
12
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
13
13
|
import { changeSelectedCardToLink, setSelectedCardAppearance } from '../pm-plugins/doc';
|
|
14
14
|
import { DatasourceDropdownOption, datasourceDisplayInformation } from './DatasourceDropdownOption';
|
|
15
15
|
import { getUnavailableMessage } from './LinkToolbarAppearance';
|
|
@@ -19,7 +19,7 @@ import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
|
|
|
19
19
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
20
20
|
import CogIcon from '@atlaskit/icon/core/settings';
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
22
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
22
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
23
23
|
import { changeSelectedCardToText } from '../pm-plugins/doc';
|
|
24
24
|
import { pluginKey } from '../pm-plugins/plugin-key';
|
|
25
25
|
import { appearanceForNodeType, displayInfoForCard, findCardInfo, isDatasourceNode, titleUrlPairFromNode } from '../pm-plugins/utils';
|
|
@@ -28,7 +28,7 @@ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/c
|
|
|
28
28
|
import { EmbedResizeMessageListener, Card as SmartCard } from '@atlaskit/smart-card';
|
|
29
29
|
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
30
30
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
31
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
31
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
32
32
|
import { registerCard, removeCard as _removeCard } from '../pm-plugins/actions';
|
|
33
33
|
import ResizableEmbedCard from '../ui/ResizableEmbedCard';
|
|
34
34
|
import { SmartCardSSRReactContextsProvider } from '../ui/SmartCardSSRReactContextsProvider';
|
|
@@ -9,7 +9,7 @@ import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
|
9
9
|
import { Card as SmartCard } from '@atlaskit/smart-card';
|
|
10
10
|
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
11
11
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
12
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
13
13
|
import { registerCard, removeCard } from '../pm-plugins/actions';
|
|
14
14
|
import { visitCardLinkAnalytics } from '../ui/toolbar';
|
|
15
15
|
export var InlineCard = /*#__PURE__*/memo(function (_ref) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
|
|
2
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
2
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
3
3
|
import { blockCardNodeView } from './blockCard';
|
|
4
4
|
export var lazyBlockCardView = function lazyBlockCardView(props) {
|
|
5
5
|
var isPageSSRed = props.isPageSSRed;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
|
|
2
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
2
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
3
3
|
import { embedCardNodeView } from './embedCard';
|
|
4
4
|
export var lazyEmbedCardView = function lazyEmbedCardView(props) {
|
|
5
5
|
var isPageSSRed = props.isPageSSRed;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
|
|
2
2
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
3
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
4
4
|
import { inlineCardNodeView } from './inlineCard';
|
|
5
5
|
export var lazyInlineCardView = function lazyInlineCardView(props) {
|
|
6
6
|
var _props$isPageSSRed = props.isPageSSRed,
|
|
@@ -12,7 +12,7 @@ import { getAnnotationMarksForPos, getLinkCreationAnalyticsEvent, isFromCurrentD
|
|
|
12
12
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
13
13
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
14
|
import { closeHistory } from '@atlaskit/prosemirror-history/closeHistory';
|
|
15
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
15
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
16
16
|
import { hideDatasourceModal, queueCards, removeDatasourceStash, resolveCard, setDatasourceStash } from './actions';
|
|
17
17
|
import { pluginKey } from './plugin-key';
|
|
18
18
|
import { shouldReplaceLink } from './shouldReplaceLink';
|
|
@@ -17,7 +17,7 @@ import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
|
17
17
|
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
18
18
|
import ButtonItem from '@atlaskit/menu/button-item';
|
|
19
19
|
import { Flex } from '@atlaskit/primitives/compiled';
|
|
20
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
20
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
21
21
|
import { focusEditorView, isDatasourceConfigEditable } from '../../pm-plugins/utils';
|
|
22
22
|
import { editDatasource } from '../editDatasourceAction';
|
|
23
23
|
import { useFetchDatasourceDataInfo } from '../useFetchDatasourceDataInfo';
|
|
@@ -12,7 +12,7 @@ import ButtonItem from '@atlaskit/menu/button-item';
|
|
|
12
12
|
import LinkItem from '@atlaskit/menu/link-item';
|
|
13
13
|
import MenuGroup from '@atlaskit/menu/menu-group';
|
|
14
14
|
import Section from '@atlaskit/menu/section';
|
|
15
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
15
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
16
16
|
import { changeSelectedCardToLink, setSelectedCardAppearance } from '../pm-plugins/doc';
|
|
17
17
|
import { DatasourceDropdownOption, datasourceDisplayInformation } from './DatasourceDropdownOption';
|
|
18
18
|
import { getUnavailableMessage } from './LinkToolbarAppearance';
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -23,7 +23,7 @@ import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
|
|
|
23
23
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
24
24
|
import CogIcon from '@atlaskit/icon/core/settings';
|
|
25
25
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
26
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
26
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
27
27
|
import { changeSelectedCardToText } from '../pm-plugins/doc';
|
|
28
28
|
import { pluginKey } from '../pm-plugins/plugin-key';
|
|
29
29
|
import { appearanceForNodeType, displayInfoForCard, findCardInfo, isDatasourceNode, titleUrlPairFromNode } from '../pm-plugins/utils';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.9",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@atlaskit/primitives": "^22.4.0",
|
|
64
64
|
"@atlaskit/prosemirror-history": "^1.2.0",
|
|
65
65
|
"@atlaskit/smart-card": "^45.18.0",
|
|
66
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
66
|
+
"@atlaskit/tmp-editor-statsig": "^168.0.0",
|
|
67
67
|
"@atlaskit/tokens": "^16.9.0",
|
|
68
68
|
"@babel/runtime": "^7.0.0",
|
|
69
69
|
"@emotion/react": "^11.7.1",
|