@atlaskit/editor-common 102.8.0 → 102.10.0

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,25 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 102.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#126588](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/126588)
8
+ [`d4160d5f8b246`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d4160d5f8b246) -
9
+ ED-26876 implement editor api for user preference
10
+
11
+ ## 102.9.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#115815](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/115815)
16
+ [`ad7c517ed3b47`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ad7c517ed3b47) -
17
+ ED-26661 add option enables single column layout
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 102.8.0
4
24
 
5
25
  ### Minor Changes
@@ -181,6 +181,11 @@ var toolbarInsertBlockMessages = exports.toolbarInsertBlockMessages = (0, _react
181
181
  defaultMessage: 'Insert {numberOfColumns} equal {numberOfColumns, plural, one {column} other {columns}}',
182
182
  description: 'Create a multi column section or layout'
183
183
  },
184
+ singleColumnsDescriptionAdvancedLayout: {
185
+ id: 'fabric.editor.columns.advanced.layout.single.description',
186
+ defaultMessage: 'Insert a single column layout',
187
+ description: 'Create a multi column section or layout'
188
+ },
184
189
  status: {
185
190
  id: 'fabric.editor.status',
186
191
  defaultMessage: 'Status',
@@ -16,6 +16,11 @@ var toolbarMessages = exports.toolbarMessages = (0, _reactIntlNext.defineMessage
16
16
  defaultMessage: 'Two columns layout',
17
17
  description: 'Layout with two columns of equal width'
18
18
  },
19
+ singleColumnAdvancedLayout: {
20
+ id: 'fabric.editor.singleColumns',
21
+ defaultMessage: '1 Column layout',
22
+ description: 'Layout with one column of equal width'
23
+ },
19
24
  twoColumnsAdvancedLayout: {
20
25
  id: 'fabric.editor.twoColumns',
21
26
  defaultMessage: '2 Column layout',
@@ -83,7 +88,7 @@ var toolbarMessages = exports.toolbarMessages = (0, _reactIntlNext.defineMessage
83
88
  },
84
89
  columnOption: {
85
90
  id: 'fabric.editor.layout.columnOption',
86
- defaultMessage: '{count, plural, one { Column} other {{count} Columns}}',
91
+ defaultMessage: '{count, plural, one {{count} Column} other {{count} Columns}}',
87
92
  description: 'column option text for layout'
88
93
  },
89
94
  resizeLayout: {
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  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 && {}.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; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "102.8.0";
20
+ var packageVersion = "102.10.0";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // Ignored via go/ees007
@@ -0,0 +1 @@
1
+ "use strict";
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
23
23
  * @jsx jsx
24
24
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
25
  var packageName = "@atlaskit/editor-common";
26
- var packageVersion = "102.8.0";
26
+ var packageVersion = "102.10.0";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -175,6 +175,11 @@ export const toolbarInsertBlockMessages = defineMessages({
175
175
  defaultMessage: 'Insert {numberOfColumns} equal {numberOfColumns, plural, one {column} other {columns}}',
176
176
  description: 'Create a multi column section or layout'
177
177
  },
178
+ singleColumnsDescriptionAdvancedLayout: {
179
+ id: 'fabric.editor.columns.advanced.layout.single.description',
180
+ defaultMessage: 'Insert a single column layout',
181
+ description: 'Create a multi column section or layout'
182
+ },
178
183
  status: {
179
184
  id: 'fabric.editor.status',
180
185
  defaultMessage: 'Status',
@@ -10,6 +10,11 @@ export const toolbarMessages = defineMessages({
10
10
  defaultMessage: 'Two columns layout',
11
11
  description: 'Layout with two columns of equal width'
12
12
  },
13
+ singleColumnAdvancedLayout: {
14
+ id: 'fabric.editor.singleColumns',
15
+ defaultMessage: '1 Column layout',
16
+ description: 'Layout with one column of equal width'
17
+ },
13
18
  twoColumnsAdvancedLayout: {
14
19
  id: 'fabric.editor.twoColumns',
15
20
  defaultMessage: '2 Column layout',
@@ -77,7 +82,7 @@ export const toolbarMessages = defineMessages({
77
82
  },
78
83
  columnOption: {
79
84
  id: 'fabric.editor.layout.columnOption',
80
- defaultMessage: '{count, plural, one { Column} other {{count} Columns}}',
85
+ defaultMessage: '{count, plural, one {{count} Column} other {{count} Columns}}',
81
86
  description: 'column option text for layout'
82
87
  },
83
88
  resizeLayout: {
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "102.8.0";
4
+ const packageVersion = "102.10.0";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // Ignored via go/ees007
File without changes
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
13
13
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import Layer from '../Layer';
15
15
  const packageName = "@atlaskit/editor-common";
16
- const packageVersion = "102.8.0";
16
+ const packageVersion = "102.10.0";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -175,6 +175,11 @@ export var toolbarInsertBlockMessages = defineMessages({
175
175
  defaultMessage: 'Insert {numberOfColumns} equal {numberOfColumns, plural, one {column} other {columns}}',
176
176
  description: 'Create a multi column section or layout'
177
177
  },
178
+ singleColumnsDescriptionAdvancedLayout: {
179
+ id: 'fabric.editor.columns.advanced.layout.single.description',
180
+ defaultMessage: 'Insert a single column layout',
181
+ description: 'Create a multi column section or layout'
182
+ },
178
183
  status: {
179
184
  id: 'fabric.editor.status',
180
185
  defaultMessage: 'Status',
@@ -10,6 +10,11 @@ export var toolbarMessages = defineMessages({
10
10
  defaultMessage: 'Two columns layout',
11
11
  description: 'Layout with two columns of equal width'
12
12
  },
13
+ singleColumnAdvancedLayout: {
14
+ id: 'fabric.editor.singleColumns',
15
+ defaultMessage: '1 Column layout',
16
+ description: 'Layout with one column of equal width'
17
+ },
13
18
  twoColumnsAdvancedLayout: {
14
19
  id: 'fabric.editor.twoColumns',
15
20
  defaultMessage: '2 Column layout',
@@ -77,7 +82,7 @@ export var toolbarMessages = defineMessages({
77
82
  },
78
83
  columnOption: {
79
84
  id: 'fabric.editor.layout.columnOption',
80
- defaultMessage: '{count, plural, one { Column} other {{count} Columns}}',
85
+ defaultMessage: '{count, plural, one {{count} Column} other {{count} Columns}}',
81
86
  description: 'column option text for layout'
82
87
  },
83
88
  resizeLayout: {
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "102.8.0";
10
+ var packageVersion = "102.10.0";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // Ignored via go/ees007
File without changes
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
20
20
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "102.8.0";
23
+ var packageVersion = "102.10.0";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
@@ -174,6 +174,11 @@ export declare const toolbarInsertBlockMessages: {
174
174
  defaultMessage: string;
175
175
  description: string;
176
176
  };
177
+ singleColumnsDescriptionAdvancedLayout: {
178
+ id: string;
179
+ defaultMessage: string;
180
+ description: string;
181
+ };
177
182
  status: {
178
183
  id: string;
179
184
  defaultMessage: string;
@@ -9,6 +9,11 @@ export declare const toolbarMessages: {
9
9
  defaultMessage: string;
10
10
  description: string;
11
11
  };
12
+ singleColumnAdvancedLayout: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
12
17
  twoColumnsAdvancedLayout: {
13
18
  id: string;
14
19
  defaultMessage: string;
@@ -57,3 +57,4 @@ import type { EditorPresetBuilder, ExtractPresetAPI } from '../preset';
57
57
  * Please use ExtractPresetAPI from "@atlaskit/editor-common/preset" instead.
58
58
  */
59
59
  export type ExtractPublicEditorAPI<T extends EditorPresetBuilder<any, any>> = ExtractPresetAPI<T>;
60
+ export type { UserPreferencesProvider, UserPreferences } from './user-preferences';
@@ -0,0 +1,18 @@
1
+ export type UserPreferences = {
2
+ toolbarDockingInitialPosition?: 'top' | 'none';
3
+ };
4
+ export interface UserPreferencesProvider {
5
+ /**
6
+ * This method updates a user preference
7
+ * @param key
8
+ * @param value
9
+ * @returns a promise that resolves when the preference is updated, or rejects if the update fails
10
+ */
11
+ updatePreference<K extends keyof UserPreferences>(key: K, value: UserPreferences[K]): Promise<void>;
12
+ /**
13
+ * get a user preference, Note that this function is a not async function,
14
+ * meaning that consumers should prefetch the user preference and make it available initially
15
+ * @param key
16
+ */
17
+ getPreference<K extends keyof UserPreferences>(key: K): UserPreferences[K] | undefined | null;
18
+ }
@@ -174,6 +174,11 @@ export declare const toolbarInsertBlockMessages: {
174
174
  defaultMessage: string;
175
175
  description: string;
176
176
  };
177
+ singleColumnsDescriptionAdvancedLayout: {
178
+ id: string;
179
+ defaultMessage: string;
180
+ description: string;
181
+ };
177
182
  status: {
178
183
  id: string;
179
184
  defaultMessage: string;
@@ -9,6 +9,11 @@ export declare const toolbarMessages: {
9
9
  defaultMessage: string;
10
10
  description: string;
11
11
  };
12
+ singleColumnAdvancedLayout: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
12
17
  twoColumnsAdvancedLayout: {
13
18
  id: string;
14
19
  defaultMessage: string;
@@ -57,3 +57,4 @@ import type { EditorPresetBuilder, ExtractPresetAPI } from '../preset';
57
57
  * Please use ExtractPresetAPI from "@atlaskit/editor-common/preset" instead.
58
58
  */
59
59
  export type ExtractPublicEditorAPI<T extends EditorPresetBuilder<any, any>> = ExtractPresetAPI<T>;
60
+ export type { UserPreferencesProvider, UserPreferences } from './user-preferences';
@@ -0,0 +1,18 @@
1
+ export type UserPreferences = {
2
+ toolbarDockingInitialPosition?: 'top' | 'none';
3
+ };
4
+ export interface UserPreferencesProvider {
5
+ /**
6
+ * This method updates a user preference
7
+ * @param key
8
+ * @param value
9
+ * @returns a promise that resolves when the preference is updated, or rejects if the update fails
10
+ */
11
+ updatePreference<K extends keyof UserPreferences>(key: K, value: UserPreferences[K]): Promise<void>;
12
+ /**
13
+ * get a user preference, Note that this function is a not async function,
14
+ * meaning that consumers should prefetch the user preference and make it available initially
15
+ * @param key
16
+ */
17
+ getPreference<K extends keyof UserPreferences>(key: K): UserPreferences[K] | undefined | null;
18
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "102.8.0",
3
+ "version": "102.10.0",
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/"
@@ -160,7 +160,7 @@
160
160
  "@atlaskit/spinner": "^18.0.0",
161
161
  "@atlaskit/task-decision": "^19.1.0",
162
162
  "@atlaskit/textfield": "^8.0.0",
163
- "@atlaskit/tmp-editor-statsig": "^4.0.0",
163
+ "@atlaskit/tmp-editor-statsig": "^4.1.0",
164
164
  "@atlaskit/tokens": "^4.5.0",
165
165
  "@atlaskit/tooltip": "^20.0.0",
166
166
  "@atlaskit/width-detector": "^5.0.0",