@atlaskit/editor-common 78.30.1 → 78.30.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 78.30.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#90659](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90659) [`fc633861cff4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fc633861cff4) - [ux] Adds lock button on table floating toolbar
8
+ - [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426) [`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) - Bump adf-schema to 35.9.2 to support table alignment options
9
+ - Updated dependencies
10
+
3
11
  ## 78.30.1
4
12
 
5
13
  ### Patch Changes
@@ -3,6 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.expandedState = void 0;
6
+ exports.isExpandCollapsed = exports.expandedState = void 0;
7
7
  // Used to store the state of the new single player expand node
8
- var expandedState = exports.expandedState = new WeakMap();
8
+ var expandedState = exports.expandedState = new WeakMap();
9
+
10
+ // used to determine if the expand is expanded or collapsed
11
+ var isExpandCollapsed = exports.isExpandCollapsed = function isExpandCollapsed(node) {
12
+ var _expandedState$get;
13
+ return (_expandedState$get = !expandedState.get(node)) !== null && _expandedState$get !== void 0 ? _expandedState$get : false;
14
+ };
@@ -221,6 +221,16 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
221
221
  defaultMessage: "Distribute columns",
222
222
  description: "Distribute widths between selected columns"
223
223
  },
224
+ lockColumnWidths: {
225
+ id: 'fabric.editor.lockColumns',
226
+ defaultMessage: 'Fixed column widths',
227
+ description: 'Toggle button to enable fixed column widths'
228
+ },
229
+ unlockColumnWidths: {
230
+ id: 'fabric.editor.unLockColumns',
231
+ defaultMessage: 'Variable column widths',
232
+ description: 'Toggle button to enable variable column widths'
233
+ },
224
234
  rowControl: {
225
235
  id: 'fabric.editor.rowControl',
226
236
  defaultMessage: 'Highlight row',
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
16
16
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "78.30.1";
19
+ var packageVersion = "78.30.2";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // TODO: Sanitise the URL instead of just removing it
@@ -20,7 +20,7 @@ var _Layer = _interopRequireDefault(require("../Layer"));
20
20
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
21
21
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "78.30.1";
23
+ var packageVersion = "78.30.2";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,2 +1,8 @@
1
1
  // Used to store the state of the new single player expand node
2
- export const expandedState = new WeakMap();
2
+ export const expandedState = new WeakMap();
3
+
4
+ // used to determine if the expand is expanded or collapsed
5
+ export const isExpandCollapsed = node => {
6
+ var _expandedState$get;
7
+ return (_expandedState$get = !expandedState.get(node)) !== null && _expandedState$get !== void 0 ? _expandedState$get : false;
8
+ };
@@ -215,6 +215,16 @@ export const messages = defineMessages({
215
215
  defaultMessage: `Distribute columns`,
216
216
  description: `Distribute widths between selected columns`
217
217
  },
218
+ lockColumnWidths: {
219
+ id: 'fabric.editor.lockColumns',
220
+ defaultMessage: 'Fixed column widths',
221
+ description: 'Toggle button to enable fixed column widths'
222
+ },
223
+ unlockColumnWidths: {
224
+ id: 'fabric.editor.unLockColumns',
225
+ defaultMessage: 'Variable column widths',
226
+ description: 'Toggle button to enable variable column widths'
227
+ },
218
228
  rowControl: {
219
229
  id: 'fabric.editor.rowControl',
220
230
  defaultMessage: 'Highlight row',
@@ -1,6 +1,6 @@
1
1
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
2
2
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
3
- const packageVersion = "78.30.1";
3
+ const packageVersion = "78.30.2";
4
4
  const sanitiseSentryEvents = (data, _hint) => {
5
5
  // Remove URL as it has UGC
6
6
  // TODO: Sanitise the URL instead of just removing it
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
7
7
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
8
8
  import Layer from '../Layer';
9
9
  const packageName = "@atlaskit/editor-common";
10
- const packageVersion = "78.30.1";
10
+ const packageVersion = "78.30.2";
11
11
  const halfFocusRing = 1;
12
12
  const dropOffset = '0, 8';
13
13
  class DropList extends Component {
@@ -1,2 +1,8 @@
1
1
  // Used to store the state of the new single player expand node
2
- export var expandedState = new WeakMap();
2
+ export var expandedState = new WeakMap();
3
+
4
+ // used to determine if the expand is expanded or collapsed
5
+ export var isExpandCollapsed = function isExpandCollapsed(node) {
6
+ var _expandedState$get;
7
+ return (_expandedState$get = !expandedState.get(node)) !== null && _expandedState$get !== void 0 ? _expandedState$get : false;
8
+ };
@@ -215,6 +215,16 @@ export var messages = defineMessages({
215
215
  defaultMessage: "Distribute columns",
216
216
  description: "Distribute widths between selected columns"
217
217
  },
218
+ lockColumnWidths: {
219
+ id: 'fabric.editor.lockColumns',
220
+ defaultMessage: 'Fixed column widths',
221
+ description: 'Toggle button to enable fixed column widths'
222
+ },
223
+ unlockColumnWidths: {
224
+ id: 'fabric.editor.unLockColumns',
225
+ defaultMessage: 'Variable column widths',
226
+ description: 'Toggle button to enable variable column widths'
227
+ },
218
228
  rowControl: {
219
229
  id: 'fabric.editor.rowControl',
220
230
  defaultMessage: 'Highlight row',
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
6
6
  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; }
7
7
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
8
8
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
9
- var packageVersion = "78.30.1";
9
+ var packageVersion = "78.30.2";
10
10
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
11
11
  // Remove URL as it has UGC
12
12
  // TODO: Sanitise the URL instead of just removing it
@@ -15,7 +15,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
15
15
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
16
16
  import Layer from '../Layer';
17
17
  var packageName = "@atlaskit/editor-common";
18
- var packageVersion = "78.30.1";
18
+ var packageVersion = "78.30.2";
19
19
  var halfFocusRing = 1;
20
20
  var dropOffset = '0, 8';
21
21
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,2 +1,3 @@
1
1
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
2
2
  export declare const expandedState: WeakMap<PmNode, boolean>;
3
+ export declare const isExpandCollapsed: (node: PmNode) => boolean;
@@ -214,6 +214,16 @@ export declare const messages: {
214
214
  defaultMessage: string;
215
215
  description: string;
216
216
  };
217
+ lockColumnWidths: {
218
+ id: string;
219
+ defaultMessage: string;
220
+ description: string;
221
+ };
222
+ unlockColumnWidths: {
223
+ id: string;
224
+ defaultMessage: string;
225
+ description: string;
226
+ };
217
227
  rowControl: {
218
228
  id: string;
219
229
  defaultMessage: string;
@@ -1,2 +1,3 @@
1
1
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
2
2
  export declare const expandedState: WeakMap<PmNode, boolean>;
3
+ export declare const isExpandCollapsed: (node: PmNode) => boolean;
@@ -214,6 +214,16 @@ export declare const messages: {
214
214
  defaultMessage: string;
215
215
  description: string;
216
216
  };
217
+ lockColumnWidths: {
218
+ id: string;
219
+ defaultMessage: string;
220
+ description: string;
221
+ };
222
+ unlockColumnWidths: {
223
+ id: string;
224
+ defaultMessage: string;
225
+ description: string;
226
+ };
217
227
  rowControl: {
218
228
  id: string;
219
229
  defaultMessage: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "78.30.1",
3
+ "version": "78.30.2",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -95,16 +95,16 @@
95
95
  },
96
96
  "dependencies": {
97
97
  "@atlaskit/activity-provider": "^2.4.0",
98
- "@atlaskit/adf-schema": "^35.9.0",
98
+ "@atlaskit/adf-schema": "^35.9.2",
99
99
  "@atlaskit/adf-utils": "^19.0.0",
100
100
  "@atlaskit/analytics-listeners": "^8.9.0",
101
101
  "@atlaskit/analytics-namespaced-context": "^6.9.0",
102
102
  "@atlaskit/analytics-next": "^9.2.0",
103
103
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
104
- "@atlaskit/button": "^17.12.0",
104
+ "@atlaskit/button": "^17.13.0",
105
105
  "@atlaskit/code": "^15.1.0",
106
106
  "@atlaskit/codemod-utils": "^4.2.0",
107
- "@atlaskit/custom-steps": "^0.0.18",
107
+ "@atlaskit/custom-steps": "^0.0.19",
108
108
  "@atlaskit/editor-json-transformer": "^8.10.0",
109
109
  "@atlaskit/editor-palette": "1.5.3",
110
110
  "@atlaskit/editor-prosemirror": "3.0.0",
@@ -115,14 +115,14 @@
115
115
  "@atlaskit/icon-object": "^6.3.0",
116
116
  "@atlaskit/in-product-testing": "^0.2.0",
117
117
  "@atlaskit/link-datasource": "^1.28.0",
118
- "@atlaskit/link-picker": "^1.34.0",
118
+ "@atlaskit/link-picker": "^1.35.0",
119
119
  "@atlaskit/media-card": "^77.11.0",
120
120
  "@atlaskit/media-client": "^26.3.0",
121
121
  "@atlaskit/media-client-react": "^2.0.0",
122
122
  "@atlaskit/media-common": "^11.1.0",
123
123
  "@atlaskit/media-file-preview": "^0.5.0",
124
124
  "@atlaskit/media-picker": "^66.4.0",
125
- "@atlaskit/media-ui": "^25.8.0",
125
+ "@atlaskit/media-ui": "^25.9.0",
126
126
  "@atlaskit/media-viewer": "48.4.4",
127
127
  "@atlaskit/mention": "^23.0.0",
128
128
  "@atlaskit/menu": "^2.1.0",