@atlaskit/editor-plugin-extension 22.0.1 → 22.0.2
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/extensionPlugin.js +1 -1
- package/dist/cjs/pm-plugins/unique-id.js +1 -1
- package/dist/cjs/ui/ConfigPanel/ConfigPanelLoader.js +1 -1
- package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -1
- package/dist/cjs/ui/ConfigPanel/Fields/TabGroup.js +1 -1
- package/dist/es2019/entry-points/extensionPlugin.js +1 -0
- package/dist/es2019/extensionPlugin.js +1 -1
- package/dist/es2019/pm-plugins/unique-id.js +1 -1
- package/dist/es2019/ui/ConfigPanel/ConfigPanelLoader.js +1 -1
- package/dist/es2019/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -1
- package/dist/es2019/ui/ConfigPanel/Fields/TabGroup.js +1 -1
- package/dist/esm/entry-points/extensionPlugin.js +1 -0
- package/dist/esm/extensionPlugin.js +1 -1
- package/dist/esm/pm-plugins/unique-id.js +1 -1
- package/dist/esm/ui/ConfigPanel/ConfigPanelLoader.js +1 -1
- package/dist/esm/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -1
- package/dist/esm/ui/ConfigPanel/Fields/TabGroup.js +1 -1
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/FormErrorBoundary.d.ts +1 -1
- package/example-utils/config-panel/ConfigPanelWithExtensionPicker.tsx +1 -1
- package/example-utils/config-panel/ExtensionNodePicker.tsx +3 -2
- package/example-utils/config-panel/FieldTypePicker.tsx +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.extensionPlugin = void 0;
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
var _extension = require("@atlaskit/adf-schema/extension");
|
|
10
|
-
var _multiBodiedExtension = require("@atlaskit/adf-schema/multi-bodied-extension");
|
|
11
10
|
var _inlineExtension = require("@atlaskit/adf-schema/inline-extension");
|
|
11
|
+
var _multiBodiedExtension = require("@atlaskit/adf-schema/multi-bodied-extension");
|
|
12
12
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
13
13
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
14
14
|
var _actions = require("./editor-actions/actions");
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.createPlugin = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _uuid = require("@atlaskit/adf-schema/uuid");
|
|
10
9
|
var _setAttrs = require("@atlaskit/adf-schema/steps/set-attrs");
|
|
10
|
+
var _uuid = require("@atlaskit/adf-schema/uuid");
|
|
11
11
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
12
12
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
13
13
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
@@ -8,8 +8,8 @@ exports.default = void 0;
|
|
|
8
8
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _reactLoadable = _interopRequireDefault(require("react-loadable"));
|
|
11
|
-
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
12
11
|
var _reactLooselyLazy = require("react-loosely-lazy");
|
|
12
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
13
13
|
var _LoadingState = _interopRequireDefault(require("./LoadingState"));
|
|
14
14
|
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); } // oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
15
15
|
var loadConfigPanel = function loadConfigPanel() {
|
|
@@ -11,8 +11,8 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
11
11
|
var _react = require("react");
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
13
|
var _checkbox = require("@atlaskit/checkbox/checkbox");
|
|
14
|
-
var _fieldset = require("@atlaskit/form/fieldset");
|
|
15
14
|
var _field = _interopRequireDefault(require("@atlaskit/form/field"));
|
|
15
|
+
var _fieldset = require("@atlaskit/form/fieldset");
|
|
16
16
|
var _FieldMessages = _interopRequireDefault(require("../FieldMessages"));
|
|
17
17
|
var _types = require("../types");
|
|
18
18
|
var _excluded = ["onChange", "value"];
|
|
@@ -10,10 +10,10 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
12
|
var _reactIntl = require("react-intl");
|
|
13
|
-
var _tabs = _interopRequireDefault(require("@atlaskit/tabs/tabs"));
|
|
14
13
|
var _tab = _interopRequireDefault(require("@atlaskit/tabs/tab"));
|
|
15
14
|
var _tabList = _interopRequireDefault(require("@atlaskit/tabs/tab-list"));
|
|
16
15
|
var _tabPanel = _interopRequireDefault(require("@atlaskit/tabs/tab-panel"));
|
|
16
|
+
var _tabs = _interopRequireDefault(require("@atlaskit/tabs/tabs"));
|
|
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); }
|
|
18
18
|
/**
|
|
19
19
|
* @jsxRuntime classic
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
2
2
|
import { v4 as uuid } from 'uuid';
|
|
3
3
|
import { extension } from '@atlaskit/adf-schema/extension';
|
|
4
|
-
import { extensionFrame, multiBodiedExtension } from '@atlaskit/adf-schema/multi-bodied-extension';
|
|
5
4
|
import { inlineExtension } from '@atlaskit/adf-schema/inline-extension';
|
|
5
|
+
import { extensionFrame, multiBodiedExtension } from '@atlaskit/adf-schema/multi-bodied-extension';
|
|
6
6
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { createEditSelectedExtensionAction, insertOrReplaceBodiedExtension, insertOrReplaceExtension } from './editor-actions/actions';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { uuid } from '@atlaskit/adf-schema/uuid';
|
|
2
1
|
import { SetAttrsStep } from '@atlaskit/adf-schema/steps/set-attrs';
|
|
2
|
+
import { uuid } from '@atlaskit/adf-schema/uuid';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
4
|
import { stepAddsOneOf } from '@atlaskit/editor-common/utils';
|
|
5
5
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Loadable from 'react-loadable';
|
|
3
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
4
3
|
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
5
4
|
import { lazyForPaint, LazySuspense } from 'react-loosely-lazy';
|
|
5
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
6
6
|
import LoadingState from './LoadingState';
|
|
7
7
|
const loadConfigPanel = () => import( /* webpackChunkName: "@atlaskit-internal_editor-core-config-panel" */
|
|
8
8
|
'./ConfigPanelFieldsLoader').then(module => module.default);
|
|
@@ -9,8 +9,8 @@ import { Fragment, useCallback } from 'react';
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { Checkbox as AKCheckbox } from '@atlaskit/checkbox/checkbox';
|
|
12
|
-
import { Fieldset as AKFieldset } from '@atlaskit/form/fieldset';
|
|
13
12
|
import Field from '@atlaskit/form/field';
|
|
13
|
+
import { Fieldset as AKFieldset } from '@atlaskit/form/fieldset';
|
|
14
14
|
import FieldMessages from '../FieldMessages';
|
|
15
15
|
import { ValidationError } from '../types';
|
|
16
16
|
function validate(value, isRequired) {
|
|
@@ -7,10 +7,10 @@ import React, { useState } from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { injectIntl } from 'react-intl';
|
|
10
|
-
import Tabs from '@atlaskit/tabs/tabs';
|
|
11
10
|
import Tab from '@atlaskit/tabs/tab';
|
|
12
11
|
import TabList from '@atlaskit/tabs/tab-list';
|
|
13
12
|
import TabPanel from '@atlaskit/tabs/tab-panel';
|
|
13
|
+
import Tabs from '@atlaskit/tabs/tabs';
|
|
14
14
|
const panelWrapperStyles = css({
|
|
15
15
|
flexGrow: 1,
|
|
16
16
|
maxWidth: '100%'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
2
2
|
import { v4 as uuid } from 'uuid';
|
|
3
3
|
import { extension } from '@atlaskit/adf-schema/extension';
|
|
4
|
-
import { extensionFrame, multiBodiedExtension } from '@atlaskit/adf-schema/multi-bodied-extension';
|
|
5
4
|
import { inlineExtension } from '@atlaskit/adf-schema/inline-extension';
|
|
5
|
+
import { extensionFrame, multiBodiedExtension } from '@atlaskit/adf-schema/multi-bodied-extension';
|
|
6
6
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { createEditSelectedExtensionAction, insertOrReplaceBodiedExtension as _insertOrReplaceBodiedExtension, insertOrReplaceExtension as _insertOrReplaceExtension } from './editor-actions/actions';
|
|
@@ -1,8 +1,8 @@
|
|
|
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 { uuid } from '@atlaskit/adf-schema/uuid';
|
|
5
4
|
import { SetAttrsStep } from '@atlaskit/adf-schema/steps/set-attrs';
|
|
5
|
+
import { uuid } from '@atlaskit/adf-schema/uuid';
|
|
6
6
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
7
7
|
import { stepAddsOneOf } from '@atlaskit/editor-common/utils';
|
|
8
8
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Loadable from 'react-loadable';
|
|
3
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
4
3
|
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
5
4
|
import { lazyForPaint, LazySuspense } from 'react-loosely-lazy';
|
|
5
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
6
6
|
import LoadingState from './LoadingState';
|
|
7
7
|
var loadConfigPanel = function loadConfigPanel() {
|
|
8
8
|
return import( /* webpackChunkName: "@atlaskit-internal_editor-core-config-panel" */
|
|
@@ -12,8 +12,8 @@ import { Fragment, useCallback } from 'react';
|
|
|
12
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
13
13
|
import { css, jsx } from '@emotion/react';
|
|
14
14
|
import { Checkbox as AKCheckbox } from '@atlaskit/checkbox/checkbox';
|
|
15
|
-
import { Fieldset as AKFieldset } from '@atlaskit/form/fieldset';
|
|
16
15
|
import Field from '@atlaskit/form/field';
|
|
16
|
+
import { Fieldset as AKFieldset } from '@atlaskit/form/fieldset';
|
|
17
17
|
import FieldMessages from '../FieldMessages';
|
|
18
18
|
import { ValidationError } from '../types';
|
|
19
19
|
function _validate(value, isRequired) {
|
|
@@ -8,10 +8,10 @@ import React, { useState } from 'react';
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import { injectIntl } from 'react-intl';
|
|
11
|
-
import Tabs from '@atlaskit/tabs/tabs';
|
|
12
11
|
import Tab from '@atlaskit/tabs/tab';
|
|
13
12
|
import TabList from '@atlaskit/tabs/tab-list';
|
|
14
13
|
import TabPanel from '@atlaskit/tabs/tab-panel';
|
|
14
|
+
import Tabs from '@atlaskit/tabs/tabs';
|
|
15
15
|
var panelWrapperStyles = css({
|
|
16
16
|
flexGrow: 1,
|
|
17
17
|
maxWidth: '100%'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
3
2
|
import type { WithContextProps } from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
3
|
+
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
4
4
|
import type { ExtensionManifest, FieldDefinition, OnSaveCallback, OnSaveCallbackAsync, Parameters } from '@atlaskit/editor-common/extensions';
|
|
5
5
|
import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
6
6
|
import type { ExtensionPlugin, RejectSave } from '../../extensionPluginType';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
|
-
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
4
3
|
import type { WithContextProps } from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
4
|
+
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
5
5
|
import type { FieldDefinition } from '@atlaskit/editor-common/extensions';
|
|
6
6
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
7
7
|
interface Props {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* @jsxRuntime classic
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
import { useEffect, useState } from 'react';
|
|
7
8
|
|
|
8
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
@@ -24,7 +25,6 @@ import TextArea from '@atlaskit/textarea/text-area';
|
|
|
24
25
|
import { token } from '@atlaskit/tokens';
|
|
25
26
|
|
|
26
27
|
import { useStateFromPromise } from '../../src/ui/ConfigPanel/use-state-from-promise';
|
|
27
|
-
|
|
28
28
|
import ConfigPanelWithProviders from './ConfigPanelWithProviders';
|
|
29
29
|
import type { CallbackParams } from './ExtensionNodePicker';
|
|
30
30
|
import ExtensionNodePicker from './ExtensionNodePicker';
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
2
|
+
|
|
2
3
|
import type { ReactNode } from 'react';
|
|
3
4
|
import React, { useState } from 'react';
|
|
4
5
|
|
|
5
6
|
import Loadable from 'react-loadable';
|
|
7
|
+
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
8
|
+
import { lazyForPaint, LazySuspense } from 'react-loosely-lazy';
|
|
6
9
|
|
|
7
10
|
import type {
|
|
8
11
|
ExtensionManifest,
|
|
@@ -19,8 +22,6 @@ import MenuGroup from '@atlaskit/menu/menu-group';
|
|
|
19
22
|
import Section from '@atlaskit/menu/section';
|
|
20
23
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
21
24
|
import { token } from '@atlaskit/tokens';
|
|
22
|
-
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
23
|
-
import { lazyForPaint, LazySuspense } from 'react-loosely-lazy';
|
|
24
25
|
|
|
25
26
|
import { useStateFromPromise } from '../../src/ui/ConfigPanel/use-state-from-promise';
|
|
26
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.2",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@atlaskit/tabs": "^21.2.0",
|
|
70
70
|
"@atlaskit/textarea": "^10.2.0",
|
|
71
71
|
"@atlaskit/textfield": "^10.2.0",
|
|
72
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
72
|
+
"@atlaskit/tmp-editor-statsig": "^201.0.0",
|
|
73
73
|
"@atlaskit/toggle": "^17.3.0",
|
|
74
74
|
"@atlaskit/tokens": "^18.2.0",
|
|
75
75
|
"@atlaskit/tooltip": "^24.3.0",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"uuid": "^11.1.1"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
|
-
"@atlaskit/editor-common": "^123.
|
|
88
|
+
"@atlaskit/editor-common": "^123.2.0",
|
|
89
89
|
"react": "^18.2.0 || ^19.2.0",
|
|
90
90
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
91
91
|
},
|