@atlaskit/editor-plugin-extension 19.0.6 → 19.0.8
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 +12 -0
- package/dist/cjs/nodeviews/lazyExtension.js +2 -2
- package/dist/cjs/pm-plugins/extension-api.js +2 -2
- package/dist/cjs/pm-plugins/toolbar.js +2 -2
- package/dist/cjs/pm-plugins/utils.js +2 -2
- package/dist/cjs/ui/ConfigPanel/ConfigPanel.js +2 -2
- package/dist/cjs/ui/ConfigPanel/ConfigPanelFieldsLoader.js +2 -2
- package/dist/cjs/ui/ConfigPanel/ErrorMessage/index.js +1 -1
- package/dist/cjs/ui/ConfigPanel/FieldMessages.js +1 -1
- package/dist/cjs/ui/ConfigPanel/Fields/CustomSelect.js +1 -1
- package/dist/cjs/ui/ConfigPanel/Fields/Date.js +1 -1
- package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +1 -1
- package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +1 -1
- package/dist/cjs/ui/ConfigPanel/Fields/TabGroup.js +1 -1
- package/dist/cjs/ui/ConfigPanel/FormContent.js +2 -2
- package/dist/cjs/ui/ConfigPanel/FormErrorBoundary.js +1 -1
- package/dist/cjs/ui/ConfigPanel/LoadingState.js +2 -2
- package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +1 -1
- package/dist/es2019/nodeviews/lazyExtension.js +1 -1
- package/dist/es2019/pm-plugins/extension-api.js +1 -1
- package/dist/es2019/pm-plugins/toolbar.js +1 -1
- package/dist/es2019/pm-plugins/utils.js +1 -1
- package/dist/es2019/ui/ConfigPanel/ConfigPanel.js +1 -1
- package/dist/es2019/ui/ConfigPanel/ConfigPanelFieldsLoader.js +1 -1
- package/dist/es2019/ui/ConfigPanel/ErrorMessage/index.js +1 -1
- package/dist/es2019/ui/ConfigPanel/FieldMessages.js +1 -1
- package/dist/es2019/ui/ConfigPanel/Fields/CustomSelect.js +1 -1
- package/dist/es2019/ui/ConfigPanel/Fields/Date.js +1 -1
- package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +1 -1
- package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +1 -1
- package/dist/es2019/ui/ConfigPanel/Fields/TabGroup.js +1 -1
- package/dist/es2019/ui/ConfigPanel/FormContent.js +1 -1
- package/dist/es2019/ui/ConfigPanel/FormErrorBoundary.js +1 -1
- package/dist/es2019/ui/ConfigPanel/LoadingState.js +1 -1
- package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +1 -1
- package/dist/esm/nodeviews/lazyExtension.js +1 -1
- package/dist/esm/pm-plugins/extension-api.js +1 -1
- package/dist/esm/pm-plugins/toolbar.js +1 -1
- package/dist/esm/pm-plugins/utils.js +1 -1
- package/dist/esm/ui/ConfigPanel/ConfigPanel.js +1 -1
- package/dist/esm/ui/ConfigPanel/ConfigPanelFieldsLoader.js +1 -1
- package/dist/esm/ui/ConfigPanel/ErrorMessage/index.js +1 -1
- package/dist/esm/ui/ConfigPanel/FieldMessages.js +1 -1
- package/dist/esm/ui/ConfigPanel/Fields/CustomSelect.js +1 -1
- package/dist/esm/ui/ConfigPanel/Fields/Date.js +1 -1
- package/dist/esm/ui/ConfigPanel/Fields/Expand.js +1 -1
- package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +1 -1
- package/dist/esm/ui/ConfigPanel/Fields/TabGroup.js +1 -1
- package/dist/esm/ui/ConfigPanel/FormContent.js +1 -1
- package/dist/esm/ui/ConfigPanel/FormErrorBoundary.js +1 -1
- package/dist/esm/ui/ConfigPanel/LoadingState.js +1 -1
- package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -8,13 +8,13 @@ exports.lazyExtensionNodeView = lazyExtensionNodeView;
|
|
|
8
8
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
9
|
var _extensibility = require("@atlaskit/editor-common/extensibility");
|
|
10
10
|
var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
|
|
11
|
-
var
|
|
11
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
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
|
function lazyExtensionNodeView(nodeName) {
|
|
14
14
|
for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
15
15
|
params[_key - 1] = arguments[_key];
|
|
16
16
|
}
|
|
17
|
-
if ((0,
|
|
17
|
+
if ((0, _editorExperiment.editorExperiment)('platform_editor_exp_lazy_node_views', false)) {
|
|
18
18
|
return _extensibility.ExtensionNodeView.apply(void 0, params);
|
|
19
19
|
}
|
|
20
20
|
return (0, _lazyNodeView.withLazyLoading)({
|
|
@@ -10,7 +10,7 @@ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
|
10
10
|
var _validator = require("@atlaskit/adf-utils/validator");
|
|
11
11
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
12
12
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
13
|
-
var
|
|
13
|
+
var _JSONTransformer = require("@atlaskit/editor-json-transformer/JSONTransformer-2");
|
|
14
14
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
15
15
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
16
16
|
var _utils2 = require("@atlaskit/editor-prosemirror/utils");
|
|
@@ -256,7 +256,7 @@ var createExtensionAPI = exports.createExtensionAPI = function createExtensionAP
|
|
|
256
256
|
// Validate if the new attributes, content and marks result in a valid node and adf.
|
|
257
257
|
try {
|
|
258
258
|
var newNode = node.type.createChecked(newAttrs, newContent, newMarks);
|
|
259
|
-
var newNodeAdf = new
|
|
259
|
+
var newNodeAdf = new _JSONTransformer.JSONTransformer().encodeNode(newNode);
|
|
260
260
|
validate(newNodeAdf);
|
|
261
261
|
tr.replaceWith(pos, pos + node.nodeSize, newNode);
|
|
262
262
|
|
|
@@ -23,7 +23,7 @@ var _edit = _interopRequireDefault(require("@atlaskit/icon/core/edit"));
|
|
|
23
23
|
var _expandHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/expand-horizontal"));
|
|
24
24
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
25
25
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
26
|
-
var
|
|
26
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
27
27
|
var _actions = require("../editor-actions/actions");
|
|
28
28
|
var _commands = require("../editor-commands/commands");
|
|
29
29
|
var _pluginKey = require("./macro/plugin-key");
|
|
@@ -357,7 +357,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(_ref
|
|
|
357
357
|
var applyChangeToContextPanel = extensionApi === null || extensionApi === void 0 || (_extensionApi$context = extensionApi.contextPanel) === null || _extensionApi$context === void 0 ? void 0 : _extensionApi$context.actions.applyChange;
|
|
358
358
|
var editorAnalyticsAPI = extensionApi === null || extensionApi === void 0 || (_extensionApi$analyti2 = extensionApi.analytics) === null || _extensionApi$analyti2 === void 0 ? void 0 : _extensionApi$analyti2.actions;
|
|
359
359
|
var nodeType = [state.schema.nodes.extension, state.schema.nodes.inlineExtension, state.schema.nodes.bodiedExtension, state.schema.nodes.multiBodiedExtension];
|
|
360
|
-
var editButtonItems = editButton(formatMessage, extensionState, applyChangeToContextPanel, editorAnalyticsAPI, (0,
|
|
360
|
+
var editButtonItems = editButton(formatMessage, extensionState, applyChangeToContextPanel, editorAnalyticsAPI, (0, _editorExperiment.editorExperiment)('platform_editor_offline_editing_web', true) && (0, _editorPluginConnectivity.isOfflineMode)(extensionApi === null || extensionApi === void 0 || (_extensionApi$connect = extensionApi.connectivity) === null || _extensionApi$connect === void 0 || (_extensionApi$connect = _extensionApi$connect.sharedState) === null || _extensionApi$connect === void 0 || (_extensionApi$connect = _extensionApi$connect.currentState()) === null || _extensionApi$connect === void 0 ? void 0 : _extensionApi$connect.mode), extensionApi);
|
|
361
361
|
var breakoutItems = breakoutOptions(state, formatMessage, extensionState, breakoutEnabled, editorAnalyticsAPI, extensionApi);
|
|
362
362
|
var extensionObj = (0, _utils3.getSelectedExtension)(state, true);
|
|
363
363
|
|
|
@@ -10,7 +10,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
10
10
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
11
11
|
var _clipboard = require("@atlaskit/editor-common/clipboard");
|
|
12
12
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
13
|
-
var
|
|
13
|
+
var _JSONTransformer = require("@atlaskit/editor-json-transformer/JSONTransformer-2");
|
|
14
14
|
var _utils2 = require("@atlaskit/editor-prosemirror/utils");
|
|
15
15
|
var _resource = require("@atlaskit/mention/resource");
|
|
16
16
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
@@ -230,7 +230,7 @@ var copyUnsupportedContentToClipboard = exports.copyUnsupportedContentToClipboar
|
|
|
230
230
|
content: [unsupportedContent]
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
|
-
transformer = new
|
|
233
|
+
transformer = new _JSONTransformer.JSONTransformer(schema);
|
|
234
234
|
pmNode = transformer.parse(unsupportedContent);
|
|
235
235
|
text = '';
|
|
236
236
|
mentionSet = new Set();
|
|
@@ -32,7 +32,7 @@ var _hooks = require("@atlaskit/editor-common/hooks");
|
|
|
32
32
|
var _form = _interopRequireDefault(require("@atlaskit/form/form"));
|
|
33
33
|
var _formFooter = require("@atlaskit/form/form-footer");
|
|
34
34
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
35
|
-
var
|
|
35
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
36
36
|
var _constants = require("./constants");
|
|
37
37
|
var _DescriptionSummary = require("./DescriptionSummary");
|
|
38
38
|
var _ErrorMessage = _interopRequireDefault(require("./ErrorMessage"));
|
|
@@ -216,7 +216,7 @@ var ConfigPanel = /*#__PURE__*/function (_React$Component) {
|
|
|
216
216
|
return (0, _transformers.serialize)(extensionManifest, _this.backfillTabFormData(fields, formData, _this.state.currentParameters), fields);
|
|
217
217
|
case 2:
|
|
218
218
|
serializedData = _context.sent;
|
|
219
|
-
if (!(0,
|
|
219
|
+
if (!(0, _editorExperiment.editorExperiment)('platform_editor_offline_editing_web', true, {
|
|
220
220
|
exposure: true
|
|
221
221
|
})) {
|
|
222
222
|
_context.next = 4;
|
|
@@ -11,7 +11,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _bindEventListener = require("bind-event-listener");
|
|
12
12
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
13
13
|
var _editorPluginConnectivity = require("@atlaskit/editor-plugin-connectivity");
|
|
14
|
-
var
|
|
14
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
15
15
|
var _ConfigPanel = _interopRequireDefault(require("./ConfigPanel"));
|
|
16
16
|
var _useStateFromPromise3 = require("./use-state-from-promise");
|
|
17
17
|
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); }
|
|
@@ -130,7 +130,7 @@ function FieldsLoader(_ref) {
|
|
|
130
130
|
errorMessage = _useState6[0],
|
|
131
131
|
setErrorMessage = _useState6[1];
|
|
132
132
|
var connectivityState = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'connectivity.mode', {
|
|
133
|
-
disabled: (0,
|
|
133
|
+
disabled: (0, _editorExperiment.editorExperiment)('platform_editor_offline_editing_web', false)
|
|
134
134
|
});
|
|
135
135
|
return /*#__PURE__*/_react.default.createElement(FieldDefinitionsPromiseResolver, {
|
|
136
136
|
setErrorMessage: setErrorMessage,
|
|
@@ -27,6 +27,6 @@ var ConfigPanelErrorMessage = function ConfigPanelErrorMessage(_ref) {
|
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
30
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
31
31
|
var _default_1 = (0, _reactIntl.injectIntl)(ConfigPanelErrorMessage);
|
|
32
32
|
var _default = exports.default = _default_1;
|
|
@@ -111,6 +111,6 @@ var FieldMessages = function FieldMessages(_ref2) {
|
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
|
|
114
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
114
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
115
115
|
var _default_1 = (0, _reactIntl.injectIntl)(FieldMessages);
|
|
116
116
|
var _default = exports.default = _default_1;
|
|
@@ -200,6 +200,6 @@ function CustomSelect(_ref2) {
|
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
203
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
204
204
|
var _default_1 = (0, _reactIntl.injectIntl)(CustomSelect);
|
|
205
205
|
var _default = exports.default = _default_1;
|
|
@@ -66,6 +66,6 @@ function Date(_ref) {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
69
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
70
70
|
var _default_1 = (0, _reactIntl.injectIntl)(Date);
|
|
71
71
|
var _default = exports.default = _default_1;
|
|
@@ -98,6 +98,6 @@ function Expand(_ref) {
|
|
|
98
98
|
}, children));
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
101
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
102
102
|
var _default_1 = (0, _reactIntl.injectIntl)(Expand);
|
|
103
103
|
var _default = exports.default = _default_1;
|
|
@@ -286,6 +286,6 @@ var sectionMessageWrapperStyles = (0, _primitives.xcss)({
|
|
|
286
286
|
marginBottom: 'space.300'
|
|
287
287
|
});
|
|
288
288
|
|
|
289
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
289
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
290
290
|
var _default_1 = (0, _reactIntl.injectIntl)(FieldsetField);
|
|
291
291
|
var _default = exports.default = _default_1;
|
|
@@ -63,6 +63,6 @@ var TabGroupImpl = function TabGroupImpl(props) {
|
|
|
63
63
|
};
|
|
64
64
|
TabGroupImpl.displayName = 'TabGroup';
|
|
65
65
|
|
|
66
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
66
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
67
67
|
var TabGroup = (0, _reactIntl.injectIntl)(TabGroupImpl);
|
|
68
68
|
var _default = exports.default = TabGroup;
|
|
@@ -9,7 +9,7 @@ exports.default = FormContent;
|
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _extensions = require("@atlaskit/editor-common/extensions");
|
|
12
|
-
var
|
|
12
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
13
13
|
var _Boolean = _interopRequireDefault(require("./Fields/Boolean"));
|
|
14
14
|
var _ColorPicker = _interopRequireDefault(require("./Fields/ColorPicker"));
|
|
15
15
|
var _CustomSelect = _interopRequireDefault(require("./Fields/CustomSelect"));
|
|
@@ -205,7 +205,7 @@ function FormContent(_ref3) {
|
|
|
205
205
|
featureFlags = _ref3.featureFlags,
|
|
206
206
|
isDisabled = _ref3.isDisabled;
|
|
207
207
|
var mappedFields = fields;
|
|
208
|
-
if ((0,
|
|
208
|
+
if ((0, _editorExperiment.editorExperiment)('platform_editor_offline_editing_web', true)) {
|
|
209
209
|
mappedFields = fields.map(function (field) {
|
|
210
210
|
var _field$isDisabled;
|
|
211
211
|
return _objectSpread(_objectSpread({}, field), {}, {
|
|
@@ -138,7 +138,7 @@ var FormErrorBoundaryInner = /*#__PURE__*/function (_React$Component) {
|
|
|
138
138
|
}, intl.formatMessage(_extensions.configPanelMessages.errorBoundaryNote))));
|
|
139
139
|
}
|
|
140
140
|
}]);
|
|
141
|
-
}(_react.default.Component); // eslint-disable-next-line @typescript-eslint/
|
|
141
|
+
}(_react.default.Component); // eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
142
142
|
var FormErrorBoundaryImpl = exports.FormErrorBoundaryImpl = (0, _reactIntl.injectIntl)(FormErrorBoundaryInner);
|
|
143
143
|
var FormErrorBoundary = exports.FormErrorBoundary = (0, _withAnalyticsContext.default)()((0, _withAnalyticsEvents.default)()(FormErrorBoundaryImpl));
|
|
144
144
|
FormErrorBoundary.displayName = 'FormErrorBoundary';
|
|
@@ -10,7 +10,7 @@ var _reactIntl = require("react-intl");
|
|
|
10
10
|
var _extensions = require("@atlaskit/editor-common/extensions");
|
|
11
11
|
var _message = _interopRequireDefault(require("@atlaskit/section-message/message"));
|
|
12
12
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner/spinner"));
|
|
13
|
-
var
|
|
13
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
14
14
|
/**
|
|
15
15
|
* @jsxRuntime classic
|
|
16
16
|
* @jsx jsx
|
|
@@ -53,6 +53,6 @@ var LoadingStateWithoutErrorHandling = function LoadingStateWithoutErrorHandling
|
|
|
53
53
|
}));
|
|
54
54
|
};
|
|
55
55
|
var LoadingState = function LoadingState(props) {
|
|
56
|
-
return (0,
|
|
56
|
+
return (0, _editorExperiment.editorExperiment)('platform_editor_offline_editing_web', true) ? LoadingStateWithErrorHandling(props) : LoadingStateWithoutErrorHandling();
|
|
57
57
|
};
|
|
58
58
|
var _default = exports.default = LoadingState;
|
|
@@ -69,6 +69,6 @@ var RemovableField = function RemovableField(_ref) {
|
|
|
69
69
|
}))));
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
72
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
73
73
|
var _default_1 = (0, _reactIntl.injectIntl)(RemovableField);
|
|
74
74
|
var _default = exports.default = _default_1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExtensionNodeView } from '@atlaskit/editor-common/extensibility';
|
|
2
2
|
import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
|
|
3
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
3
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
4
4
|
export function lazyExtensionNodeView(nodeName, ...params) {
|
|
5
5
|
if (editorExperiment('platform_editor_exp_lazy_node_views', false)) {
|
|
6
6
|
return ExtensionNodeView(...params);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { validator } from '@atlaskit/adf-utils/validator';
|
|
2
2
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import { nodeToJSON } from '@atlaskit/editor-common/utils';
|
|
4
|
-
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
4
|
+
import { JSONTransformer } from '@atlaskit/editor-json-transformer/JSONTransformer-2';
|
|
5
5
|
import { Fragment, Mark } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import { setTextSelection } from '@atlaskit/editor-prosemirror/utils';
|
|
@@ -14,7 +14,7 @@ import EditIcon from '@atlaskit/icon/core/edit';
|
|
|
14
14
|
import ExpandHorizontalIcon from '@atlaskit/icon/core/expand-horizontal';
|
|
15
15
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
16
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
17
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
18
18
|
import { editExtension } from '../editor-actions/actions';
|
|
19
19
|
import { removeDescendantNodes, removeExtension, updateExtensionLayout } from '../editor-commands/commands';
|
|
20
20
|
import { pluginKey as macroPluginKey } from './macro/plugin-key';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { copyToClipboard } from '@atlaskit/editor-common/clipboard';
|
|
3
3
|
import { closestElement, findNodePosByLocalIds } from '@atlaskit/editor-common/utils';
|
|
4
|
-
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
4
|
+
import { JSONTransformer } from '@atlaskit/editor-json-transformer/JSONTransformer-2';
|
|
5
5
|
import { findDomRefAtPos, findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
6
6
|
import { isResolvingMentionProvider } from '@atlaskit/mention/resource';
|
|
7
7
|
export const getSelectedExtension = (state, searchParent = false) => {
|
|
@@ -17,7 +17,7 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
17
17
|
import Form from '@atlaskit/form/form';
|
|
18
18
|
import { FormFooter } from '@atlaskit/form/form-footer';
|
|
19
19
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
20
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
20
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
21
21
|
import { ALLOWED_LOGGED_MACRO_PARAMS } from './constants';
|
|
22
22
|
import { DescriptionSummary } from './DescriptionSummary';
|
|
23
23
|
import ErrorMessage from './ErrorMessage';
|
|
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
|
|
|
2
2
|
import { bind } from 'bind-event-listener';
|
|
3
3
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
4
4
|
import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
5
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
5
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
6
6
|
import ConfigPanel from './ConfigPanel';
|
|
7
7
|
import { useStateFromPromise } from './use-state-from-promise';
|
|
8
8
|
const getFieldsDefinitionFn = (extensionManifest, nodeKey) => {
|
|
@@ -19,6 +19,6 @@ const ConfigPanelErrorMessage = ({
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
23
23
|
const _default_1 = injectIntl(ConfigPanelErrorMessage);
|
|
24
24
|
export default _default_1;
|
|
@@ -108,6 +108,6 @@ const FieldMessages = function ({
|
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
|
|
111
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
111
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
112
112
|
const _default_1 = injectIntl(FieldMessages);
|
|
113
113
|
export default _default_1;
|
|
@@ -247,6 +247,6 @@ const sectionMessageWrapperStyles = xcss({
|
|
|
247
247
|
marginBottom: 'space.300'
|
|
248
248
|
});
|
|
249
249
|
|
|
250
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
250
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
251
251
|
const _default_1 = injectIntl(FieldsetField);
|
|
252
252
|
export default _default_1;
|
|
@@ -48,6 +48,6 @@ const TabGroupImpl = props => {
|
|
|
48
48
|
};
|
|
49
49
|
TabGroupImpl.displayName = 'TabGroup';
|
|
50
50
|
|
|
51
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
51
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
52
52
|
const TabGroup = injectIntl(TabGroupImpl);
|
|
53
53
|
export default TabGroup;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { isFieldset } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
3
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
4
4
|
import Boolean from './Fields/Boolean';
|
|
5
5
|
import ColorPicker from './Fields/ColorPicker';
|
|
6
6
|
import CustomSelect from './Fields/CustomSelect';
|
|
@@ -103,7 +103,7 @@ class FormErrorBoundaryInner extends React.Component {
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
106
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
107
107
|
export const FormErrorBoundaryImpl = injectIntl(FormErrorBoundaryInner);
|
|
108
108
|
export const FormErrorBoundary = withAnalyticsContext()(withAnalyticsEvents()(FormErrorBoundaryImpl));
|
|
109
109
|
FormErrorBoundary.displayName = 'FormErrorBoundary';
|
|
@@ -9,7 +9,7 @@ import { injectIntl } from 'react-intl';
|
|
|
9
9
|
import { messages } from '@atlaskit/editor-common/extensions';
|
|
10
10
|
import SectionMessage from '@atlaskit/section-message/message';
|
|
11
11
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
12
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
12
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
13
13
|
const spinnerWrapperStyles = css({
|
|
14
14
|
display: 'flex',
|
|
15
15
|
justifyContent: 'center',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExtensionNodeView } from '@atlaskit/editor-common/extensibility';
|
|
2
2
|
import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
|
|
3
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
3
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
4
4
|
export function lazyExtensionNodeView(nodeName) {
|
|
5
5
|
for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
6
6
|
params[_key - 1] = arguments[_key];
|
|
@@ -5,7 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
5
5
|
import { validator } from '@atlaskit/adf-utils/validator';
|
|
6
6
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
7
7
|
import { nodeToJSON } from '@atlaskit/editor-common/utils';
|
|
8
|
-
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
8
|
+
import { JSONTransformer } from '@atlaskit/editor-json-transformer/JSONTransformer-2';
|
|
9
9
|
import { Fragment, Mark } from '@atlaskit/editor-prosemirror/model';
|
|
10
10
|
import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
11
11
|
import { setTextSelection } from '@atlaskit/editor-prosemirror/utils';
|
|
@@ -18,7 +18,7 @@ import EditIcon from '@atlaskit/icon/core/edit';
|
|
|
18
18
|
import ExpandHorizontalIcon from '@atlaskit/icon/core/expand-horizontal';
|
|
19
19
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
20
20
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
21
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
21
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
22
22
|
import { editExtension } from '../editor-actions/actions';
|
|
23
23
|
import { removeDescendantNodes, removeExtension, updateExtensionLayout } from '../editor-commands/commands';
|
|
24
24
|
import { pluginKey as macroPluginKey } from './macro/plugin-key';
|
|
@@ -6,7 +6,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
6
6
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
7
7
|
import { copyToClipboard } from '@atlaskit/editor-common/clipboard';
|
|
8
8
|
import { closestElement, findNodePosByLocalIds } from '@atlaskit/editor-common/utils';
|
|
9
|
-
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
9
|
+
import { JSONTransformer } from '@atlaskit/editor-json-transformer/JSONTransformer-2';
|
|
10
10
|
import { findDomRefAtPos, findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
11
11
|
import { isResolvingMentionProvider } from '@atlaskit/mention/resource';
|
|
12
12
|
export var getSelectedExtension = function getSelectedExtension(state) {
|
|
@@ -28,7 +28,7 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
28
28
|
import Form from '@atlaskit/form/form';
|
|
29
29
|
import { FormFooter } from '@atlaskit/form/form-footer';
|
|
30
30
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
31
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
31
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
32
32
|
import { ALLOWED_LOGGED_MACRO_PARAMS } from './constants';
|
|
33
33
|
import { DescriptionSummary } from './DescriptionSummary';
|
|
34
34
|
import ErrorMessage from './ErrorMessage';
|
|
@@ -3,7 +3,7 @@ import React, { useEffect, useState } from 'react';
|
|
|
3
3
|
import { bind } from 'bind-event-listener';
|
|
4
4
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
5
5
|
import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
6
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
6
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
7
7
|
import ConfigPanel from './ConfigPanel';
|
|
8
8
|
import { useStateFromPromise } from './use-state-from-promise';
|
|
9
9
|
var getFieldsDefinitionFn = function getFieldsDefinitionFn(extensionManifest, nodeKey) {
|
|
@@ -20,6 +20,6 @@ var ConfigPanelErrorMessage = function ConfigPanelErrorMessage(_ref) {
|
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
24
24
|
var _default_1 = injectIntl(ConfigPanelErrorMessage);
|
|
25
25
|
export default _default_1;
|
|
@@ -104,6 +104,6 @@ var FieldMessages = function FieldMessages(_ref2) {
|
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
107
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
108
108
|
var _default_1 = injectIntl(FieldMessages);
|
|
109
109
|
export default _default_1;
|
|
@@ -191,6 +191,6 @@ function CustomSelect(_ref2) {
|
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
194
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
195
195
|
var _default_1 = injectIntl(CustomSelect);
|
|
196
196
|
export default _default_1;
|
|
@@ -280,6 +280,6 @@ var sectionMessageWrapperStyles = xcss({
|
|
|
280
280
|
marginBottom: 'space.300'
|
|
281
281
|
});
|
|
282
282
|
|
|
283
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
283
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
284
284
|
var _default_1 = injectIntl(FieldsetField);
|
|
285
285
|
export default _default_1;
|
|
@@ -53,6 +53,6 @@ var TabGroupImpl = function TabGroupImpl(props) {
|
|
|
53
53
|
};
|
|
54
54
|
TabGroupImpl.displayName = 'TabGroup';
|
|
55
55
|
|
|
56
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
56
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
57
57
|
var TabGroup = injectIntl(TabGroupImpl);
|
|
58
58
|
export default TabGroup;
|
|
@@ -3,7 +3,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
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
4
|
import React from 'react';
|
|
5
5
|
import { isFieldset } from '@atlaskit/editor-common/extensions';
|
|
6
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
6
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
7
7
|
import Boolean from './Fields/Boolean';
|
|
8
8
|
import ColorPicker from './Fields/ColorPicker';
|
|
9
9
|
import CustomSelect from './Fields/CustomSelect';
|
|
@@ -131,7 +131,7 @@ var FormErrorBoundaryInner = /*#__PURE__*/function (_React$Component) {
|
|
|
131
131
|
}, intl.formatMessage(messages.errorBoundaryNote))));
|
|
132
132
|
}
|
|
133
133
|
}]);
|
|
134
|
-
}(React.Component); // eslint-disable-next-line @typescript-eslint/
|
|
134
|
+
}(React.Component); // eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
135
135
|
export var FormErrorBoundaryImpl = injectIntl(FormErrorBoundaryInner);
|
|
136
136
|
export var FormErrorBoundary = withAnalyticsContext()(withAnalyticsEvents()(FormErrorBoundaryImpl));
|
|
137
137
|
FormErrorBoundary.displayName = 'FormErrorBoundary';
|
|
@@ -9,7 +9,7 @@ import { injectIntl } from 'react-intl';
|
|
|
9
9
|
import { messages } from '@atlaskit/editor-common/extensions';
|
|
10
10
|
import SectionMessage from '@atlaskit/section-message/message';
|
|
11
11
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
12
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
12
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
13
13
|
var spinnerWrapperStyles = css({
|
|
14
14
|
display: 'flex',
|
|
15
15
|
justifyContent: 'center',
|
|
@@ -61,6 +61,6 @@ var RemovableField = function RemovableField(_ref) {
|
|
|
61
61
|
}))));
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
64
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
65
65
|
var _default_1 = injectIntl(RemovableField);
|
|
66
66
|
export default _default_1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.8",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"@atlaskit/tabs": "^21.1.0",
|
|
65
65
|
"@atlaskit/textarea": "^10.1.0",
|
|
66
66
|
"@atlaskit/textfield": "^10.1.0",
|
|
67
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
67
|
+
"@atlaskit/tmp-editor-statsig": "^168.0.0",
|
|
68
68
|
"@atlaskit/toggle": "^17.2.0",
|
|
69
|
-
"@atlaskit/tokens": "^16.
|
|
69
|
+
"@atlaskit/tokens": "^16.9.0",
|
|
70
70
|
"@atlaskit/tooltip": "^24.2.0",
|
|
71
71
|
"@babel/runtime": "^7.0.0",
|
|
72
72
|
"@emotion/react": "^11.7.1",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"uuid": "^3.1.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@atlaskit/editor-common": "^120.
|
|
81
|
+
"@atlaskit/editor-common": "^120.7.0",
|
|
82
82
|
"react": "^18.2.0 || ^19.2.0",
|
|
83
83
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
84
84
|
},
|