@atlaskit/editor-plugin-selection-toolbar 31.0.7 → 31.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/editor-plugin-selection-toolbar
2
2
 
3
+ ## 31.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6e0fa99ec8f01`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6e0fa99ec8f01) -
8
+ Delete unreachable source files
9
+ - Updated dependencies
10
+
3
11
  ## 31.0.7
4
12
 
5
13
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-toolbar",
3
- "version": "31.0.7",
3
+ "version": "31.0.8",
4
4
  "description": "@atlaskit/editor-plugin-selection-toolbar for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -39,21 +39,20 @@
39
39
  "@atlaskit/editor-toolbar": "^2.8.0",
40
40
  "@atlaskit/editor-toolbar-model": "^1.2.0",
41
41
  "@atlaskit/icon": "^38.0.0",
42
- "@atlaskit/icon-lab": "^7.11.0",
43
- "@atlaskit/menu": "^11.0.0",
44
42
  "@atlaskit/platform-feature-experiments": "^0.3.0",
45
- "@atlaskit/tmp-editor-statsig": "^251.0.0",
43
+ "@atlaskit/tmp-editor-statsig": "^252.0.0",
46
44
  "@atlaskit/tokens": "^20.9.0",
47
45
  "@babel/runtime": "^7.0.0",
48
46
  "bind-event-listener": "^3.0.0"
49
47
  },
50
48
  "peerDependencies": {
51
- "@atlaskit/editor-common": "^134.4.0",
49
+ "@atlaskit/editor-common": "^134.5.0",
52
50
  "react": "^18.2.0 || ^19.2.0",
53
51
  "react-dom": "^18.2.0 || ^19.2.0",
54
52
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
55
53
  },
56
54
  "devDependencies": {
55
+ "@atlaskit/editor-common": "^134.5.0",
57
56
  "@atlassian/structured-docs-types": "workspace:^",
58
57
  "@atlassian/workbench": "workspace:*",
59
58
  "react": "^19.2.0",
@@ -1,59 +0,0 @@
1
- /* overflow-toolbar-config.tsx generated by @compiled/babel-plugin v3.0.2 */
2
- "use strict";
3
-
4
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
- var _typeof = require("@babel/runtime/helpers/typeof");
6
- Object.defineProperty(exports, "__esModule", {
7
- value: true
8
- });
9
- exports.getOverflowPrimaryToolbarConfig = void 0;
10
- var React = _interopRequireWildcard(require("react"));
11
- var _runtime = require("@compiled/react/runtime");
12
- var _selectionToolbar = require("@atlaskit/editor-common/messages/selection-toolbar");
13
- var _dockToolbarTop = _interopRequireDefault(require("@atlaskit/icon-lab/core/dock-toolbar-top"));
14
- var _checkMark = _interopRequireDefault(require("@atlaskit/icon/core/check-mark"));
15
- var _minus = _interopRequireDefault(require("@atlaskit/icon/core/minus"));
16
- var _headingItem = _interopRequireDefault(require("@atlaskit/menu/heading-item"));
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
- var getOverflowPrimaryToolbarConfig = exports.getOverflowPrimaryToolbarConfig = function getOverflowPrimaryToolbarConfig(_ref) {
19
- var api = _ref.api,
20
- intl = _ref.intl;
21
- return [{
22
- items: [{
23
- content: /*#__PURE__*/React.createElement(_headingItem.default, null, intl.formatMessage(_selectionToolbar.selectionToolbarMessages.toolbarAppears)),
24
- value: {
25
- name: ''
26
- },
27
- isDisabled: true
28
- }, {
29
- content: intl.formatMessage(_selectionToolbar.selectionToolbarMessages.toolbarPositionInline),
30
- value: {
31
- name: 'contextual'
32
- },
33
- onClick: function onClick() {
34
- var _api$core$actions$exe, _api$userPreferences, _api$userPreferences$;
35
- return (_api$core$actions$exe = api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.actions) === null || _api$userPreferences === void 0 || (_api$userPreferences$ = _api$userPreferences.updateUserPreference) === null || _api$userPreferences$ === void 0 ? void 0 : _api$userPreferences$.call(_api$userPreferences, 'toolbarDockingPosition', 'none'))) !== null && _api$core$actions$exe !== void 0 ? _api$core$actions$exe : false;
36
- },
37
- elemBefore: (0, _minus.default)({
38
- label: ''
39
- })
40
- }, {
41
- content: intl.formatMessage(_selectionToolbar.selectionToolbarMessages.toolbarPositionFixedAtTop),
42
- value: {
43
- name: 'fixed'
44
- },
45
- onClick: function onClick() {
46
- var _api$core$actions$exe2, _api$userPreferences2, _api$userPreferences3;
47
- return (_api$core$actions$exe2 = api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 || (_api$userPreferences2 = api.userPreferences) === null || _api$userPreferences2 === void 0 || (_api$userPreferences2 = _api$userPreferences2.actions) === null || _api$userPreferences2 === void 0 || (_api$userPreferences3 = _api$userPreferences2.updateUserPreference) === null || _api$userPreferences3 === void 0 ? void 0 : _api$userPreferences3.call(_api$userPreferences2, 'toolbarDockingPosition', 'top'))) !== null && _api$core$actions$exe2 !== void 0 ? _api$core$actions$exe2 : false;
48
- },
49
- isActive: true,
50
- elemBefore: (0, _dockToolbarTop.default)({
51
- label: ''
52
- }),
53
- elemAfter: /*#__PURE__*/React.createElement(_checkMark.default, {
54
- label: "",
55
- size: "small"
56
- })
57
- }]
58
- }];
59
- };
@@ -1,49 +0,0 @@
1
- /* overflow-toolbar-config.tsx generated by @compiled/babel-plugin v3.0.2 */
2
- import * as React from 'react';
3
- import { ax, ix } from "@compiled/react/runtime";
4
- import { selectionToolbarMessages } from '@atlaskit/editor-common/messages/selection-toolbar';
5
- import DockToolbarTopIcon from '@atlaskit/icon-lab/core/dock-toolbar-top';
6
- import CheckMarkIcon from '@atlaskit/icon/core/check-mark';
7
- import MinusIcon from '@atlaskit/icon/core/minus';
8
- import HeadingItem from '@atlaskit/menu/heading-item';
9
- export const getOverflowPrimaryToolbarConfig = ({
10
- api,
11
- intl
12
- }) => [{
13
- items: [{
14
- content: /*#__PURE__*/React.createElement(HeadingItem, null, intl.formatMessage(selectionToolbarMessages.toolbarAppears)),
15
- value: {
16
- name: ''
17
- },
18
- isDisabled: true
19
- }, {
20
- content: intl.formatMessage(selectionToolbarMessages.toolbarPositionInline),
21
- value: {
22
- name: 'contextual'
23
- },
24
- onClick: () => {
25
- var _api$core$actions$exe, _api$userPreferences, _api$userPreferences$, _api$userPreferences$2;
26
- return (_api$core$actions$exe = api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 ? void 0 : (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 ? void 0 : (_api$userPreferences$ = _api$userPreferences.actions) === null || _api$userPreferences$ === void 0 ? void 0 : (_api$userPreferences$2 = _api$userPreferences$.updateUserPreference) === null || _api$userPreferences$2 === void 0 ? void 0 : _api$userPreferences$2.call(_api$userPreferences$, 'toolbarDockingPosition', 'none'))) !== null && _api$core$actions$exe !== void 0 ? _api$core$actions$exe : false;
27
- },
28
- elemBefore: MinusIcon({
29
- label: ''
30
- })
31
- }, {
32
- content: intl.formatMessage(selectionToolbarMessages.toolbarPositionFixedAtTop),
33
- value: {
34
- name: 'fixed'
35
- },
36
- onClick: () => {
37
- var _api$core$actions$exe2, _api$userPreferences2, _api$userPreferences3, _api$userPreferences4;
38
- return (_api$core$actions$exe2 = api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 ? void 0 : (_api$userPreferences2 = api.userPreferences) === null || _api$userPreferences2 === void 0 ? void 0 : (_api$userPreferences3 = _api$userPreferences2.actions) === null || _api$userPreferences3 === void 0 ? void 0 : (_api$userPreferences4 = _api$userPreferences3.updateUserPreference) === null || _api$userPreferences4 === void 0 ? void 0 : _api$userPreferences4.call(_api$userPreferences3, 'toolbarDockingPosition', 'top'))) !== null && _api$core$actions$exe2 !== void 0 ? _api$core$actions$exe2 : false;
39
- },
40
- isActive: true,
41
- elemBefore: DockToolbarTopIcon({
42
- label: ''
43
- }),
44
- elemAfter: /*#__PURE__*/React.createElement(CheckMarkIcon, {
45
- label: "",
46
- size: "small"
47
- })
48
- }]
49
- }];
@@ -1,50 +0,0 @@
1
- /* overflow-toolbar-config.tsx generated by @compiled/babel-plugin v3.0.2 */
2
- import * as React from 'react';
3
- import { ax, ix } from "@compiled/react/runtime";
4
- import { selectionToolbarMessages } from '@atlaskit/editor-common/messages/selection-toolbar';
5
- import DockToolbarTopIcon from '@atlaskit/icon-lab/core/dock-toolbar-top';
6
- import CheckMarkIcon from '@atlaskit/icon/core/check-mark';
7
- import MinusIcon from '@atlaskit/icon/core/minus';
8
- import HeadingItem from '@atlaskit/menu/heading-item';
9
- export var getOverflowPrimaryToolbarConfig = function getOverflowPrimaryToolbarConfig(_ref) {
10
- var api = _ref.api,
11
- intl = _ref.intl;
12
- return [{
13
- items: [{
14
- content: /*#__PURE__*/React.createElement(HeadingItem, null, intl.formatMessage(selectionToolbarMessages.toolbarAppears)),
15
- value: {
16
- name: ''
17
- },
18
- isDisabled: true
19
- }, {
20
- content: intl.formatMessage(selectionToolbarMessages.toolbarPositionInline),
21
- value: {
22
- name: 'contextual'
23
- },
24
- onClick: function onClick() {
25
- var _api$core$actions$exe, _api$userPreferences, _api$userPreferences$;
26
- return (_api$core$actions$exe = api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.actions) === null || _api$userPreferences === void 0 || (_api$userPreferences$ = _api$userPreferences.updateUserPreference) === null || _api$userPreferences$ === void 0 ? void 0 : _api$userPreferences$.call(_api$userPreferences, 'toolbarDockingPosition', 'none'))) !== null && _api$core$actions$exe !== void 0 ? _api$core$actions$exe : false;
27
- },
28
- elemBefore: MinusIcon({
29
- label: ''
30
- })
31
- }, {
32
- content: intl.formatMessage(selectionToolbarMessages.toolbarPositionFixedAtTop),
33
- value: {
34
- name: 'fixed'
35
- },
36
- onClick: function onClick() {
37
- var _api$core$actions$exe2, _api$userPreferences2, _api$userPreferences3;
38
- return (_api$core$actions$exe2 = api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 || (_api$userPreferences2 = api.userPreferences) === null || _api$userPreferences2 === void 0 || (_api$userPreferences2 = _api$userPreferences2.actions) === null || _api$userPreferences2 === void 0 || (_api$userPreferences3 = _api$userPreferences2.updateUserPreference) === null || _api$userPreferences3 === void 0 ? void 0 : _api$userPreferences3.call(_api$userPreferences2, 'toolbarDockingPosition', 'top'))) !== null && _api$core$actions$exe2 !== void 0 ? _api$core$actions$exe2 : false;
39
- },
40
- isActive: true,
41
- elemBefore: DockToolbarTopIcon({
42
- label: ''
43
- }),
44
- elemAfter: /*#__PURE__*/React.createElement(CheckMarkIcon, {
45
- label: "",
46
- size: "small"
47
- })
48
- }]
49
- }];
50
- };
@@ -1,18 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- * @jsxFrag
5
- */
6
- import type { IntlShape } from 'react-intl';
7
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
8
- import type { MenuItem } from '@atlaskit/editor-common/ui-menu/DropdownMenu/types';
9
- import type { SelectionToolbarPlugin } from '../selectionToolbarPluginType';
10
- type OverflowToobarConfigOptions = {
11
- api?: ExtractInjectionAPI<SelectionToolbarPlugin>;
12
- intl: IntlShape;
13
- toolbarDocking?: 'top' | 'none';
14
- };
15
- export declare const getOverflowPrimaryToolbarConfig: ({ api, intl, }: OverflowToobarConfigOptions) => {
16
- items: MenuItem[];
17
- }[];
18
- export {};