@atlaskit/editor-common 76.24.4 → 76.25.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.
Files changed (51) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/analytics/types/enums.js +4 -0
  3. package/dist/cjs/analytics/types/loom-events.js +5 -0
  4. package/dist/cjs/analytics/types/toolbar-button.js +1 -0
  5. package/dist/cjs/messages/insert-block.js +10 -0
  6. package/dist/cjs/monitoring/error.js +1 -1
  7. package/dist/cjs/quick-insert/assets/index.js +13 -1
  8. package/dist/cjs/quick-insert/assets/loom.js +26 -0
  9. package/dist/cjs/quick-insert/index.js +6 -0
  10. package/dist/cjs/ui/DropList/index.js +1 -1
  11. package/dist/es2019/analytics/types/enums.js +4 -0
  12. package/dist/es2019/analytics/types/loom-events.js +1 -0
  13. package/dist/es2019/analytics/types/toolbar-button.js +1 -0
  14. package/dist/es2019/messages/insert-block.js +10 -0
  15. package/dist/es2019/monitoring/error.js +1 -1
  16. package/dist/es2019/quick-insert/assets/index.js +4 -0
  17. package/dist/es2019/quick-insert/assets/loom.js +20 -0
  18. package/dist/es2019/quick-insert/index.js +1 -1
  19. package/dist/es2019/ui/DropList/index.js +1 -1
  20. package/dist/esm/analytics/types/enums.js +4 -0
  21. package/dist/esm/analytics/types/loom-events.js +1 -0
  22. package/dist/esm/analytics/types/toolbar-button.js +1 -0
  23. package/dist/esm/messages/insert-block.js +10 -0
  24. package/dist/esm/monitoring/error.js +1 -1
  25. package/dist/esm/quick-insert/assets/index.js +10 -0
  26. package/dist/esm/quick-insert/assets/loom.js +19 -0
  27. package/dist/esm/quick-insert/index.js +1 -1
  28. package/dist/esm/ui/DropList/index.js +1 -1
  29. package/dist/types/analytics/types/enums.d.ts +6 -2
  30. package/dist/types/analytics/types/events.d.ts +2 -1
  31. package/dist/types/analytics/types/loom-events.d.ts +19 -0
  32. package/dist/types/analytics/types/toolbar-button.d.ts +2 -1
  33. package/dist/types/card/types.d.ts +1 -1
  34. package/dist/types/extensions/types/field-definitions.d.ts +2 -2
  35. package/dist/types/messages/insert-block.d.ts +10 -0
  36. package/dist/types/provider-factory/quick-insert-provider.d.ts +3 -3
  37. package/dist/types/quick-insert/assets/index.d.ts +2 -1
  38. package/dist/types/quick-insert/assets/loom.d.ts +2 -0
  39. package/dist/types/quick-insert/index.d.ts +1 -1
  40. package/dist/types-ts4.5/analytics/types/enums.d.ts +6 -2
  41. package/dist/types-ts4.5/analytics/types/events.d.ts +2 -1
  42. package/dist/types-ts4.5/analytics/types/loom-events.d.ts +19 -0
  43. package/dist/types-ts4.5/analytics/types/toolbar-button.d.ts +2 -1
  44. package/dist/types-ts4.5/card/types.d.ts +1 -1
  45. package/dist/types-ts4.5/extensions/types/field-definitions.d.ts +2 -2
  46. package/dist/types-ts4.5/messages/insert-block.d.ts +10 -0
  47. package/dist/types-ts4.5/provider-factory/quick-insert-provider.d.ts +3 -3
  48. package/dist/types-ts4.5/quick-insert/assets/index.d.ts +2 -1
  49. package/dist/types-ts4.5/quick-insert/assets/loom.d.ts +2 -0
  50. package/dist/types-ts4.5/quick-insert/index.d.ts +1 -1
  51. package/package.json +4 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 76.25.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#58193](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58193) [`142df4424484`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/142df4424484) - NO-ISSUE Added new editor plugin to enable Loom video recording in the Editor
8
+
9
+ ## 76.24.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [#58316](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58316) [`eb496c9a3474`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/eb496c9a3474) - Bug fixes for configuraton panel boolean & enum fields
14
+ - [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763) [`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) - update ADF schema
15
+ - Updated dependencies
16
+
3
17
  ## 76.24.4
4
18
 
5
19
  ### Patch Changes
@@ -132,6 +132,9 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
132
132
  ACTION["UNSUPPORTED_CONTENT_LEVELS_TRACKING_SUCCEEDED"] = "unsupportedContentLevelsTrackingSucceeded";
133
133
  ACTION["UNSUPPORTED_CONTENT_LEVELS_TRACKING_ERRORED"] = "unsupportedContentLevelsTrackingErrored";
134
134
  ACTION["UNSUPPORTED_TOOLTIP_VIEWED"] = "viewed";
135
+ ACTION["RECORD_VIDEO"] = "recordVideo";
136
+ ACTION["INSERT_VIDEO"] = "insertVideo";
137
+ ACTION["RECORD_VIDEO_FAILED"] = "recordVideoFailed";
135
138
  return ACTION;
136
139
  }({});
137
140
  var INPUT_METHOD = exports.INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
@@ -216,6 +219,7 @@ var ACTION_SUBJECT = exports.ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJ
216
219
  ACTION_SUBJECT["ANCHOR_LINK"] = "anchorLink";
217
220
  ACTION_SUBJECT["LINK"] = "link";
218
221
  ACTION_SUBJECT["TOOLTIP"] = "tooltip";
222
+ ACTION_SUBJECT["LOOM"] = "loom";
219
223
  return ACTION_SUBJECT;
220
224
  }({});
221
225
  var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -20,5 +20,6 @@ var TOOLBAR_ACTION_SUBJECT_ID = exports.TOOLBAR_ACTION_SUBJECT_ID = /*#__PURE__*
20
20
  TOOLBAR_ACTION_SUBJECT_ID["REDO"] = "redo";
21
21
  TOOLBAR_ACTION_SUBJECT_ID["INDENT"] = "indent";
22
22
  TOOLBAR_ACTION_SUBJECT_ID["OUTDENT"] = "outdent";
23
+ TOOLBAR_ACTION_SUBJECT_ID["RECORD_VIDEO"] = "recordVideo";
23
24
  return TOOLBAR_ACTION_SUBJECT_ID;
24
25
  }({});
@@ -175,5 +175,15 @@ var toolbarInsertBlockMessages = exports.toolbarInsertBlockMessages = (0, _react
175
175
  id: 'fabric.editor.help.description',
176
176
  defaultMessage: 'Browse all the keyboard shortcuts and markdown options',
177
177
  description: 'Browse all the keyboard shortcuts and markdown options'
178
+ },
179
+ recordVideo: {
180
+ id: 'fabric.editor.recordVideo',
181
+ defaultMessage: 'Record video',
182
+ description: 'Record video using Loom'
183
+ },
184
+ recordVideoDescription: {
185
+ id: 'fabric.editor.recordVideo.description',
186
+ defaultMessage: 'Record video using Loom',
187
+ description: 'Record video using Loom'
178
188
  }
179
189
  });
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
16
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
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 = "76.24.4";
19
+ var packageVersion = "76.25.0";
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
@@ -18,7 +18,7 @@ Object.defineProperty(exports, "IconFallback", {
18
18
  return _fallback.default;
19
19
  }
20
20
  });
21
- exports.IconStatus = exports.IconQuote = exports.IconPanelWarning = exports.IconPanelSuccess = exports.IconPanelNote = exports.IconPanelError = exports.IconPanel = exports.IconMention = exports.IconListNumber = exports.IconList = exports.IconLink = exports.IconLayout = exports.IconImages = exports.IconHeading = exports.IconFeedback = void 0;
21
+ exports.IconStatus = exports.IconQuote = exports.IconPanelWarning = exports.IconPanelSuccess = exports.IconPanelNote = exports.IconPanelError = exports.IconPanel = exports.IconMention = exports.IconLoom = exports.IconListNumber = exports.IconList = exports.IconLink = exports.IconLayout = exports.IconImages = exports.IconHeading = exports.IconFeedback = void 0;
22
22
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
23
23
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
24
24
  var _react = _interopRequireDefault(require("react"));
@@ -371,4 +371,16 @@ var IconDatasourceAssetsObjects = exports.IconDatasourceAssetsObjects = (0, _rea
371
371
  loading: function loading() {
372
372
  return null;
373
373
  }
374
+ });
375
+ var IconLoom = exports.IconLoom = (0, _reactLoadable.default)({
376
+ loader: function loader() {
377
+ return Promise.resolve().then(function () {
378
+ return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-loom" */'./loom'));
379
+ }).then(function (module) {
380
+ return module.default;
381
+ });
382
+ },
383
+ loading: function loading() {
384
+ return null;
385
+ }
374
386
  });
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = IconLayout;
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _useIconThemed2 = require("../use-icon-themed");
10
+ function IconLayout() {
11
+ var _useIconThemed = (0, _useIconThemed2.useIconThemed)(),
12
+ iconThemed = _useIconThemed.iconThemed;
13
+ return /*#__PURE__*/_react.default.createElement("svg", {
14
+ focusable: "false",
15
+ "aria-hidden": true,
16
+ viewBox: "0 0 31 30",
17
+ width: 40,
18
+ height: 40
19
+ }, /*#__PURE__*/_react.default.createElement("path", {
20
+ fill: iconThemed({
21
+ light: '#6460F9',
22
+ dark: '#FFF'
23
+ }),
24
+ d: "M30.01 13.43h-9.142l7.917-4.57-1.57-2.72-7.918 4.57 4.57-7.915-2.72-1.57-4.571 7.913V0h-3.142v9.139L8.863 1.225l-2.721 1.57 4.57 7.913L2.796 6.14 1.225 8.86l7.917 4.57H0v3.141h9.141l-7.916 4.57 1.57 2.72 7.918-4.57-4.571 7.915 2.72 1.57 4.572-7.914V30h3.142v-9.334l4.655 8.06 2.551-1.472-4.656-8.062 8.087 4.668 1.571-2.72-7.916-4.57h9.141v-3.14h.001zm-15.005 5.84a4.271 4.271 0 11-.001-8.542 4.271 4.271 0 01.001 8.542z"
25
+ }));
26
+ }
@@ -111,6 +111,12 @@ Object.defineProperty(exports, "IconListNumber", {
111
111
  return _assets.IconListNumber;
112
112
  }
113
113
  });
114
+ Object.defineProperty(exports, "IconLoom", {
115
+ enumerable: true,
116
+ get: function get() {
117
+ return _assets.IconLoom;
118
+ }
119
+ });
114
120
  Object.defineProperty(exports, "IconMention", {
115
121
  enumerable: true,
116
122
  get: function get() {
@@ -24,7 +24,7 @@ var _templateObject, _templateObject2, _templateObject3;
24
24
  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); }; }
25
25
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "76.24.4";
27
+ var packageVersion = "76.25.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var DropList = /*#__PURE__*/function (_Component) {
@@ -126,6 +126,9 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
126
126
  ACTION["UNSUPPORTED_CONTENT_LEVELS_TRACKING_SUCCEEDED"] = "unsupportedContentLevelsTrackingSucceeded";
127
127
  ACTION["UNSUPPORTED_CONTENT_LEVELS_TRACKING_ERRORED"] = "unsupportedContentLevelsTrackingErrored";
128
128
  ACTION["UNSUPPORTED_TOOLTIP_VIEWED"] = "viewed";
129
+ ACTION["RECORD_VIDEO"] = "recordVideo";
130
+ ACTION["INSERT_VIDEO"] = "insertVideo";
131
+ ACTION["RECORD_VIDEO_FAILED"] = "recordVideoFailed";
129
132
  return ACTION;
130
133
  }({});
131
134
  export let INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
@@ -210,6 +213,7 @@ export let ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
210
213
  ACTION_SUBJECT["ANCHOR_LINK"] = "anchorLink";
211
214
  ACTION_SUBJECT["LINK"] = "link";
212
215
  ACTION_SUBJECT["TOOLTIP"] = "tooltip";
216
+ ACTION_SUBJECT["LOOM"] = "loom";
213
217
  return ACTION_SUBJECT;
214
218
  }({});
215
219
  export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
@@ -0,0 +1 @@
1
+ export {};
@@ -14,5 +14,6 @@ export let TOOLBAR_ACTION_SUBJECT_ID = /*#__PURE__*/function (TOOLBAR_ACTION_SUB
14
14
  TOOLBAR_ACTION_SUBJECT_ID["REDO"] = "redo";
15
15
  TOOLBAR_ACTION_SUBJECT_ID["INDENT"] = "indent";
16
16
  TOOLBAR_ACTION_SUBJECT_ID["OUTDENT"] = "outdent";
17
+ TOOLBAR_ACTION_SUBJECT_ID["RECORD_VIDEO"] = "recordVideo";
17
18
  return TOOLBAR_ACTION_SUBJECT_ID;
18
19
  }({});
@@ -169,5 +169,15 @@ export const toolbarInsertBlockMessages = defineMessages({
169
169
  id: 'fabric.editor.help.description',
170
170
  defaultMessage: 'Browse all the keyboard shortcuts and markdown options',
171
171
  description: 'Browse all the keyboard shortcuts and markdown options'
172
+ },
173
+ recordVideo: {
174
+ id: 'fabric.editor.recordVideo',
175
+ defaultMessage: 'Record video',
176
+ description: 'Record video using Loom'
177
+ },
178
+ recordVideoDescription: {
179
+ id: 'fabric.editor.recordVideo.description',
180
+ defaultMessage: 'Record video using Loom',
181
+ description: 'Record video using Loom'
172
182
  }
173
183
  });
@@ -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 = "76.24.4";
3
+ const packageVersion = "76.25.0";
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
@@ -120,4 +120,8 @@ export const IconDatasourceJiraIssue = Loadable({
120
120
  export const IconDatasourceAssetsObjects = Loadable({
121
121
  loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-datasource-assets-objects" */'./datasource-assets-objects').then(module => module.default),
122
122
  loading: () => null
123
+ });
124
+ export const IconLoom = Loadable({
125
+ loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-loom" */'./loom').then(module => module.default),
126
+ loading: () => null
123
127
  });
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { useIconThemed } from '../use-icon-themed';
3
+ export default function IconLayout() {
4
+ const {
5
+ iconThemed
6
+ } = useIconThemed();
7
+ return /*#__PURE__*/React.createElement("svg", {
8
+ focusable: "false",
9
+ "aria-hidden": true,
10
+ viewBox: "0 0 31 30",
11
+ width: 40,
12
+ height: 40
13
+ }, /*#__PURE__*/React.createElement("path", {
14
+ fill: iconThemed({
15
+ light: '#6460F9',
16
+ dark: '#FFF'
17
+ }),
18
+ d: "M30.01 13.43h-9.142l7.917-4.57-1.57-2.72-7.918 4.57 4.57-7.915-2.72-1.57-4.571 7.913V0h-3.142v9.139L8.863 1.225l-2.721 1.57 4.57 7.913L2.796 6.14 1.225 8.86l7.917 4.57H0v3.141h9.141l-7.916 4.57 1.57 2.72 7.918-4.57-4.571 7.915 2.72 1.57 4.572-7.914V30h3.142v-9.334l4.655 8.06 2.551-1.472-4.656-8.062 8.087 4.668 1.571-2.72-7.916-4.57h9.141v-3.14h.001zm-15.005 5.84a4.271 4.271 0 11-.001-8.542 4.271 4.271 0 01.001 8.542z"
19
+ }));
20
+ }
@@ -1,2 +1,2 @@
1
- export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback, IconDatasourceJiraIssue, IconDatasourceAssetsObjects } from './assets';
1
+ export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback, IconDatasourceJiraIssue, IconDatasourceAssetsObjects, IconLoom } from './assets';
2
2
  export { memoProcessQuickInsertItems, find } from './utils';
@@ -7,7 +7,7 @@ import { themed } from '@atlaskit/theme/components';
7
7
  import { borderRadius } from '@atlaskit/theme/constants';
8
8
  import Layer from '../Layer';
9
9
  const packageName = "@atlaskit/editor-common";
10
- const packageVersion = "76.24.4";
10
+ const packageVersion = "76.25.0";
11
11
  const halfFocusRing = 1;
12
12
  const dropOffset = '0, 8';
13
13
  class DropList extends Component {
@@ -126,6 +126,9 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
126
126
  ACTION["UNSUPPORTED_CONTENT_LEVELS_TRACKING_SUCCEEDED"] = "unsupportedContentLevelsTrackingSucceeded";
127
127
  ACTION["UNSUPPORTED_CONTENT_LEVELS_TRACKING_ERRORED"] = "unsupportedContentLevelsTrackingErrored";
128
128
  ACTION["UNSUPPORTED_TOOLTIP_VIEWED"] = "viewed";
129
+ ACTION["RECORD_VIDEO"] = "recordVideo";
130
+ ACTION["INSERT_VIDEO"] = "insertVideo";
131
+ ACTION["RECORD_VIDEO_FAILED"] = "recordVideoFailed";
129
132
  return ACTION;
130
133
  }({});
131
134
  export var INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
@@ -210,6 +213,7 @@ export var ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
210
213
  ACTION_SUBJECT["ANCHOR_LINK"] = "anchorLink";
211
214
  ACTION_SUBJECT["LINK"] = "link";
212
215
  ACTION_SUBJECT["TOOLTIP"] = "tooltip";
216
+ ACTION_SUBJECT["LOOM"] = "loom";
213
217
  return ACTION_SUBJECT;
214
218
  }({});
215
219
  export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
@@ -0,0 +1 @@
1
+ export {};
@@ -14,5 +14,6 @@ export var TOOLBAR_ACTION_SUBJECT_ID = /*#__PURE__*/function (TOOLBAR_ACTION_SUB
14
14
  TOOLBAR_ACTION_SUBJECT_ID["REDO"] = "redo";
15
15
  TOOLBAR_ACTION_SUBJECT_ID["INDENT"] = "indent";
16
16
  TOOLBAR_ACTION_SUBJECT_ID["OUTDENT"] = "outdent";
17
+ TOOLBAR_ACTION_SUBJECT_ID["RECORD_VIDEO"] = "recordVideo";
17
18
  return TOOLBAR_ACTION_SUBJECT_ID;
18
19
  }({});
@@ -169,5 +169,15 @@ export var toolbarInsertBlockMessages = defineMessages({
169
169
  id: 'fabric.editor.help.description',
170
170
  defaultMessage: 'Browse all the keyboard shortcuts and markdown options',
171
171
  description: 'Browse all the keyboard shortcuts and markdown options'
172
+ },
173
+ recordVideo: {
174
+ id: 'fabric.editor.recordVideo',
175
+ defaultMessage: 'Record video',
176
+ description: 'Record video using Loom'
177
+ },
178
+ recordVideoDescription: {
179
+ id: 'fabric.editor.recordVideo.description',
180
+ defaultMessage: 'Record video using Loom',
181
+ description: 'Record video using Loom'
172
182
  }
173
183
  });
@@ -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 = "76.24.4";
9
+ var packageVersion = "76.25.0";
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
@@ -265,4 +265,14 @@ export var IconDatasourceAssetsObjects = Loadable({
265
265
  loading: function loading() {
266
266
  return null;
267
267
  }
268
+ });
269
+ export var IconLoom = Loadable({
270
+ loader: function loader() {
271
+ return import( /* webpackChunkName: "@atlaskit-internal_editor-icon-loom" */'./loom').then(function (module) {
272
+ return module.default;
273
+ });
274
+ },
275
+ loading: function loading() {
276
+ return null;
277
+ }
268
278
  });
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { useIconThemed } from '../use-icon-themed';
3
+ export default function IconLayout() {
4
+ var _useIconThemed = useIconThemed(),
5
+ iconThemed = _useIconThemed.iconThemed;
6
+ return /*#__PURE__*/React.createElement("svg", {
7
+ focusable: "false",
8
+ "aria-hidden": true,
9
+ viewBox: "0 0 31 30",
10
+ width: 40,
11
+ height: 40
12
+ }, /*#__PURE__*/React.createElement("path", {
13
+ fill: iconThemed({
14
+ light: '#6460F9',
15
+ dark: '#FFF'
16
+ }),
17
+ d: "M30.01 13.43h-9.142l7.917-4.57-1.57-2.72-7.918 4.57 4.57-7.915-2.72-1.57-4.571 7.913V0h-3.142v9.139L8.863 1.225l-2.721 1.57 4.57 7.913L2.796 6.14 1.225 8.86l7.917 4.57H0v3.141h9.141l-7.916 4.57 1.57 2.72 7.918-4.57-4.571 7.915 2.72 1.57 4.572-7.914V30h3.142v-9.334l4.655 8.06 2.551-1.472-4.656-8.062 8.087 4.668 1.571-2.72-7.916-4.57h9.141v-3.14h.001zm-15.005 5.84a4.271 4.271 0 11-.001-8.542 4.271 4.271 0 01.001 8.542z"
18
+ }));
19
+ }
@@ -1,2 +1,2 @@
1
- export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback, IconDatasourceJiraIssue, IconDatasourceAssetsObjects } from './assets';
1
+ export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback, IconDatasourceJiraIssue, IconDatasourceAssetsObjects, IconLoom } from './assets';
2
2
  export { memoProcessQuickInsertItems, find } from './utils';
@@ -17,7 +17,7 @@ import { themed } from '@atlaskit/theme/components';
17
17
  import { borderRadius } from '@atlaskit/theme/constants';
18
18
  import Layer from '../Layer';
19
19
  var packageName = "@atlaskit/editor-common";
20
- var packageVersion = "76.24.4";
20
+ var packageVersion = "76.25.0";
21
21
  var halfFocusRing = 1;
22
22
  var dropOffset = '0, 8';
23
23
  var DropList = /*#__PURE__*/function (_Component) {
@@ -132,7 +132,10 @@ export declare enum ACTION {
132
132
  CREATE_NOT_ALLOWED = "createNotAllowed",
133
133
  UNSUPPORTED_CONTENT_LEVELS_TRACKING_SUCCEEDED = "unsupportedContentLevelsTrackingSucceeded",
134
134
  UNSUPPORTED_CONTENT_LEVELS_TRACKING_ERRORED = "unsupportedContentLevelsTrackingErrored",
135
- UNSUPPORTED_TOOLTIP_VIEWED = "viewed"
135
+ UNSUPPORTED_TOOLTIP_VIEWED = "viewed",
136
+ RECORD_VIDEO = "recordVideo",
137
+ INSERT_VIDEO = "insertVideo",
138
+ RECORD_VIDEO_FAILED = "recordVideoFailed"
136
139
  }
137
140
  export declare enum INPUT_METHOD {
138
141
  ASCII = "ascii",
@@ -213,7 +216,8 @@ export declare enum ACTION_SUBJECT {
213
216
  RENDERER = "renderer",
214
217
  ANCHOR_LINK = "anchorLink",
215
218
  LINK = "link",
216
- TOOLTIP = "tooltip"
219
+ TOOLTIP = "tooltip",
220
+ LOOM = "loom"
217
221
  }
218
222
  export declare enum ACTION_SUBJECT_ID {
219
223
  ACTION = "action",
@@ -17,6 +17,7 @@ import type { GeneralEventPayload } from './general-events';
17
17
  import type { InsertEventPayload } from './insert-events';
18
18
  import type { CreateLinkInlineDialogEventPayload, EditLinkToolbarAEP, OpenSettingsToolbarAEP, UnlinkToolbarAEP } from './link-tool-bar-events';
19
19
  import type { ListEventPayload } from './list-events';
20
+ import type { LoomEventPayload } from './loom-events';
20
21
  import type { MediaEventPayload } from './media-events';
21
22
  import type { NodeEventPayload } from './node-events';
22
23
  import type { PasteEventPayload } from './paste-events';
@@ -34,7 +35,7 @@ export type SimplifiedNode = {
34
35
  marks?: string[];
35
36
  content?: SimplifiedNode[];
36
37
  };
37
- export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload;
38
+ export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload;
38
39
  type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
39
40
  previousColor: string;
40
41
  newColor: string;
@@ -0,0 +1,19 @@
1
+ import type { SDKUnsupportedReasons } from '@loomhq/record-sdk';
2
+ import type { ACTION, ACTION_SUBJECT, INPUT_METHOD } from './enums';
3
+ import type { OperationalAEP, TrackAEP } from './utils';
4
+ type LoomInitialisedAEP = OperationalAEP<ACTION.INITIALISED, ACTION_SUBJECT.LOOM, undefined, undefined, undefined>;
5
+ type LoomDisabledAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.LOOM, undefined, {
6
+ error?: SDKUnsupportedReasons;
7
+ }, undefined>;
8
+ type RecordVideoAEP = TrackAEP<ACTION.RECORD_VIDEO, ACTION_SUBJECT.LOOM, undefined, {
9
+ inputMethod: INPUT_METHOD;
10
+ }, undefined>;
11
+ type RecordVideoFailedAEP = TrackAEP<ACTION.RECORD_VIDEO_FAILED, ACTION_SUBJECT.LOOM, undefined, {
12
+ inputMethod: INPUT_METHOD;
13
+ error?: SDKUnsupportedReasons;
14
+ }, undefined>;
15
+ type InsertVideoAEP = TrackAEP<ACTION.INSERT_VIDEO, ACTION_SUBJECT.LOOM, undefined, {
16
+ duration?: number;
17
+ }, undefined>;
18
+ export type LoomEventPayload = LoomInitialisedAEP | LoomDisabledAEP | RecordVideoAEP | RecordVideoFailedAEP | InsertVideoAEP;
19
+ export {};
@@ -15,7 +15,8 @@ export declare enum TOOLBAR_ACTION_SUBJECT_ID {
15
15
  UNDO = "undo",
16
16
  REDO = "redo",
17
17
  INDENT = "indent",
18
- OUTDENT = "outdent"
18
+ OUTDENT = "outdent",
19
+ RECORD_VIDEO = "recordVideo"
19
20
  }
20
21
  type ToolbarButtonClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.TOOLBAR_BUTTON, undefined, {}, undefined>;
21
22
  export type ToolbarEventPayload = ToolbarButtonClickedAEP;
@@ -15,7 +15,7 @@ export interface OptionConfig {
15
15
  tooltip?: string;
16
16
  }
17
17
  export type CardReplacementInputMethod = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.AUTO_DETECT | INPUT_METHOD.FORMATTING | INPUT_METHOD.MANUAL | INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.FLOATING_TB;
18
- export type QueueCardsFromTransactionAction = (state: EditorState, tr: Transaction, source: CardReplacementInputMethod, analyticsAction?: ACTION, normalizeLinkText?: boolean, sourceEvent?: UIAnalyticsEvent | null | undefined) => Transaction;
18
+ export type QueueCardsFromTransactionAction = (state: EditorState, tr: Transaction, source: CardReplacementInputMethod, analyticsAction?: ACTION, normalizeLinkText?: boolean, sourceEvent?: UIAnalyticsEvent | null | undefined, appearance?: CardAppearance) => Transaction;
19
19
  export type HideLinkToolbarAction = (tr: Transaction) => Transaction;
20
20
  export type ChangeSelectedCardToLink = (text?: string, href?: string, sendAnalytics?: boolean, node?: Node, pos?: number, editorAnalyticsApi?: EditorAnalyticsAPI) => Command;
21
21
  export type SetSelectedCardAppearance = (appearance: CardAppearance, editorAnalyticsApi: EditorAnalyticsAPI | undefined) => Command;
@@ -11,7 +11,7 @@ export type Option = {
11
11
  */
12
12
  icon?: string | React.ReactNode;
13
13
  };
14
- import { Props as SmartUserPickerProps } from '@atlaskit/smart-user-picker';
14
+ import type { Props as SmartUserPickerProps } from '@atlaskit/smart-user-picker';
15
15
  export type UserFieldContext = Pick<SmartUserPickerProps, 'siteId' | 'principalId' | 'fieldId' | 'productKey' | 'containerId' | 'objectId' | 'childObjectId' | 'productAttributes' | 'includeUsers'>;
16
16
  interface BaseFieldDefinition {
17
17
  description?: string;
@@ -80,7 +80,7 @@ export interface NumberField extends BaseFieldDefinition {
80
80
  }
81
81
  export interface BooleanField extends BaseFieldDefinition {
82
82
  type: 'boolean';
83
- defaultValue?: boolean;
83
+ defaultValue?: boolean | string;
84
84
  style?: 'checkbox' | 'toggle';
85
85
  }
86
86
  export interface ColorField extends BaseFieldDefinition {
@@ -169,4 +169,14 @@ export declare const toolbarInsertBlockMessages: {
169
169
  defaultMessage: string;
170
170
  description: string;
171
171
  };
172
+ recordVideo: {
173
+ id: string;
174
+ defaultMessage: string;
175
+ description: string;
176
+ };
177
+ recordVideoDescription: {
178
+ id: string;
179
+ defaultMessage: string;
180
+ description: string;
181
+ };
172
182
  };
@@ -4,7 +4,7 @@ import type { TypeAheadItem } from '../types/type-ahead';
4
4
  export type QuickInsertActionInsert = (node?: Node | Record<string, any> | string, opts?: {
5
5
  selectInlineNode?: boolean;
6
6
  }) => Transaction;
7
- export type QuickInsertItemId = 'hyperlink' | 'table' | 'helpdialog' | 'date' | 'media' | 'blockquote' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'codeblock' | 'unorderedList' | 'feedbackdialog' | 'orderedList' | 'rule' | 'status' | 'mention' | 'emoji' | 'action' | 'decision' | 'infopanel' | 'notepanel' | 'successpanel' | 'warningpanel' | 'errorpanel' | 'custompanel' | 'layout' | 'expand' | 'placeholderText' | 'datasource';
7
+ export type QuickInsertItemId = 'hyperlink' | 'table' | 'helpdialog' | 'date' | 'media' | 'blockquote' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'codeblock' | 'unorderedList' | 'feedbackdialog' | 'orderedList' | 'rule' | 'status' | 'mention' | 'emoji' | 'action' | 'decision' | 'infopanel' | 'notepanel' | 'successpanel' | 'warningpanel' | 'errorpanel' | 'custompanel' | 'layout' | 'expand' | 'placeholderText' | 'datasource' | 'loom';
8
8
  export type QuickInsertItem = TypeAheadItem & {
9
9
  /** other names used to find the item */
10
10
  keywords?: Array<string>;
@@ -14,13 +14,13 @@ export type QuickInsertItem = TypeAheadItem & {
14
14
  priority?: number;
15
15
  /** optional identifier */
16
16
  id?: QuickInsertItemId;
17
- /** indicates if the item will be highlighted where approppriated (plus menu for now) */
17
+ /** indicates if the item will be highlighted where appropriate (plus menu for now) */
18
18
  featured?: boolean;
19
19
  /**
20
20
  * What to do on insert
21
21
  *
22
22
  * @note This logic is only called if the item is accessed without a search
23
- * If a search occurs -- then a seperate insert action is called
23
+ * If a search occurs -- then a separate insert action is called
24
24
  * @see packages/editor/editor-core/src/plugins/insert-block/ui/ToolbarInsertBlock/index.tsx for details
25
25
  */
26
26
  action: (insert: QuickInsertActionInsert, state: EditorState) => Transaction | false;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import Loadable from 'react-loadable';
3
- import { HeadingLevels, IconProps } from '../../types';
3
+ import type { HeadingLevels, IconProps } from '../../types';
4
4
  export { default as IconCustomPanel } from './custom-panel';
5
5
  export { default as IconFallback } from './fallback';
6
6
  export declare const IconAction: React.ComponentType<IconProps> & Loadable.LoadableComponent;
@@ -30,3 +30,4 @@ export declare const IconFeedback: React.ComponentType<IconProps> & Loadable.Loa
30
30
  export declare const IconExpand: React.ComponentType<IconProps> & Loadable.LoadableComponent;
31
31
  export declare const IconDatasourceJiraIssue: React.ComponentType<IconProps> & Loadable.LoadableComponent;
32
32
  export declare const IconDatasourceAssetsObjects: React.ComponentType<IconProps> & Loadable.LoadableComponent;
33
+ export declare const IconLoom: React.ComponentType<IconProps> & Loadable.LoadableComponent;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export default function IconLayout(): JSX.Element;
@@ -1,2 +1,2 @@
1
- export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback, IconDatasourceJiraIssue, IconDatasourceAssetsObjects, } from './assets';
1
+ export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback, IconDatasourceJiraIssue, IconDatasourceAssetsObjects, IconLoom, } from './assets';
2
2
  export { memoProcessQuickInsertItems, find } from './utils';
@@ -132,7 +132,10 @@ export declare enum ACTION {
132
132
  CREATE_NOT_ALLOWED = "createNotAllowed",
133
133
  UNSUPPORTED_CONTENT_LEVELS_TRACKING_SUCCEEDED = "unsupportedContentLevelsTrackingSucceeded",
134
134
  UNSUPPORTED_CONTENT_LEVELS_TRACKING_ERRORED = "unsupportedContentLevelsTrackingErrored",
135
- UNSUPPORTED_TOOLTIP_VIEWED = "viewed"
135
+ UNSUPPORTED_TOOLTIP_VIEWED = "viewed",
136
+ RECORD_VIDEO = "recordVideo",
137
+ INSERT_VIDEO = "insertVideo",
138
+ RECORD_VIDEO_FAILED = "recordVideoFailed"
136
139
  }
137
140
  export declare enum INPUT_METHOD {
138
141
  ASCII = "ascii",
@@ -213,7 +216,8 @@ export declare enum ACTION_SUBJECT {
213
216
  RENDERER = "renderer",
214
217
  ANCHOR_LINK = "anchorLink",
215
218
  LINK = "link",
216
- TOOLTIP = "tooltip"
219
+ TOOLTIP = "tooltip",
220
+ LOOM = "loom"
217
221
  }
218
222
  export declare enum ACTION_SUBJECT_ID {
219
223
  ACTION = "action",
@@ -17,6 +17,7 @@ import type { GeneralEventPayload } from './general-events';
17
17
  import type { InsertEventPayload } from './insert-events';
18
18
  import type { CreateLinkInlineDialogEventPayload, EditLinkToolbarAEP, OpenSettingsToolbarAEP, UnlinkToolbarAEP } from './link-tool-bar-events';
19
19
  import type { ListEventPayload } from './list-events';
20
+ import type { LoomEventPayload } from './loom-events';
20
21
  import type { MediaEventPayload } from './media-events';
21
22
  import type { NodeEventPayload } from './node-events';
22
23
  import type { PasteEventPayload } from './paste-events';
@@ -34,7 +35,7 @@ export type SimplifiedNode = {
34
35
  marks?: string[];
35
36
  content?: SimplifiedNode[];
36
37
  };
37
- export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload;
38
+ export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload;
38
39
  type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
39
40
  previousColor: string;
40
41
  newColor: string;
@@ -0,0 +1,19 @@
1
+ import type { SDKUnsupportedReasons } from '@loomhq/record-sdk';
2
+ import type { ACTION, ACTION_SUBJECT, INPUT_METHOD } from './enums';
3
+ import type { OperationalAEP, TrackAEP } from './utils';
4
+ type LoomInitialisedAEP = OperationalAEP<ACTION.INITIALISED, ACTION_SUBJECT.LOOM, undefined, undefined, undefined>;
5
+ type LoomDisabledAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.LOOM, undefined, {
6
+ error?: SDKUnsupportedReasons;
7
+ }, undefined>;
8
+ type RecordVideoAEP = TrackAEP<ACTION.RECORD_VIDEO, ACTION_SUBJECT.LOOM, undefined, {
9
+ inputMethod: INPUT_METHOD;
10
+ }, undefined>;
11
+ type RecordVideoFailedAEP = TrackAEP<ACTION.RECORD_VIDEO_FAILED, ACTION_SUBJECT.LOOM, undefined, {
12
+ inputMethod: INPUT_METHOD;
13
+ error?: SDKUnsupportedReasons;
14
+ }, undefined>;
15
+ type InsertVideoAEP = TrackAEP<ACTION.INSERT_VIDEO, ACTION_SUBJECT.LOOM, undefined, {
16
+ duration?: number;
17
+ }, undefined>;
18
+ export type LoomEventPayload = LoomInitialisedAEP | LoomDisabledAEP | RecordVideoAEP | RecordVideoFailedAEP | InsertVideoAEP;
19
+ export {};
@@ -15,7 +15,8 @@ export declare enum TOOLBAR_ACTION_SUBJECT_ID {
15
15
  UNDO = "undo",
16
16
  REDO = "redo",
17
17
  INDENT = "indent",
18
- OUTDENT = "outdent"
18
+ OUTDENT = "outdent",
19
+ RECORD_VIDEO = "recordVideo"
19
20
  }
20
21
  type ToolbarButtonClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.TOOLBAR_BUTTON, undefined, {}, undefined>;
21
22
  export type ToolbarEventPayload = ToolbarButtonClickedAEP;
@@ -15,7 +15,7 @@ export interface OptionConfig {
15
15
  tooltip?: string;
16
16
  }
17
17
  export type CardReplacementInputMethod = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.AUTO_DETECT | INPUT_METHOD.FORMATTING | INPUT_METHOD.MANUAL | INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.FLOATING_TB;
18
- export type QueueCardsFromTransactionAction = (state: EditorState, tr: Transaction, source: CardReplacementInputMethod, analyticsAction?: ACTION, normalizeLinkText?: boolean, sourceEvent?: UIAnalyticsEvent | null | undefined) => Transaction;
18
+ export type QueueCardsFromTransactionAction = (state: EditorState, tr: Transaction, source: CardReplacementInputMethod, analyticsAction?: ACTION, normalizeLinkText?: boolean, sourceEvent?: UIAnalyticsEvent | null | undefined, appearance?: CardAppearance) => Transaction;
19
19
  export type HideLinkToolbarAction = (tr: Transaction) => Transaction;
20
20
  export type ChangeSelectedCardToLink = (text?: string, href?: string, sendAnalytics?: boolean, node?: Node, pos?: number, editorAnalyticsApi?: EditorAnalyticsAPI) => Command;
21
21
  export type SetSelectedCardAppearance = (appearance: CardAppearance, editorAnalyticsApi: EditorAnalyticsAPI | undefined) => Command;
@@ -11,7 +11,7 @@ export type Option = {
11
11
  */
12
12
  icon?: string | React.ReactNode;
13
13
  };
14
- import { Props as SmartUserPickerProps } from '@atlaskit/smart-user-picker';
14
+ import type { Props as SmartUserPickerProps } from '@atlaskit/smart-user-picker';
15
15
  export type UserFieldContext = Pick<SmartUserPickerProps, 'siteId' | 'principalId' | 'fieldId' | 'productKey' | 'containerId' | 'objectId' | 'childObjectId' | 'productAttributes' | 'includeUsers'>;
16
16
  interface BaseFieldDefinition {
17
17
  description?: string;
@@ -80,7 +80,7 @@ export interface NumberField extends BaseFieldDefinition {
80
80
  }
81
81
  export interface BooleanField extends BaseFieldDefinition {
82
82
  type: 'boolean';
83
- defaultValue?: boolean;
83
+ defaultValue?: boolean | string;
84
84
  style?: 'checkbox' | 'toggle';
85
85
  }
86
86
  export interface ColorField extends BaseFieldDefinition {
@@ -169,4 +169,14 @@ export declare const toolbarInsertBlockMessages: {
169
169
  defaultMessage: string;
170
170
  description: string;
171
171
  };
172
+ recordVideo: {
173
+ id: string;
174
+ defaultMessage: string;
175
+ description: string;
176
+ };
177
+ recordVideoDescription: {
178
+ id: string;
179
+ defaultMessage: string;
180
+ description: string;
181
+ };
172
182
  };
@@ -4,7 +4,7 @@ import type { TypeAheadItem } from '../types/type-ahead';
4
4
  export type QuickInsertActionInsert = (node?: Node | Record<string, any> | string, opts?: {
5
5
  selectInlineNode?: boolean;
6
6
  }) => Transaction;
7
- export type QuickInsertItemId = 'hyperlink' | 'table' | 'helpdialog' | 'date' | 'media' | 'blockquote' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'codeblock' | 'unorderedList' | 'feedbackdialog' | 'orderedList' | 'rule' | 'status' | 'mention' | 'emoji' | 'action' | 'decision' | 'infopanel' | 'notepanel' | 'successpanel' | 'warningpanel' | 'errorpanel' | 'custompanel' | 'layout' | 'expand' | 'placeholderText' | 'datasource';
7
+ export type QuickInsertItemId = 'hyperlink' | 'table' | 'helpdialog' | 'date' | 'media' | 'blockquote' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'codeblock' | 'unorderedList' | 'feedbackdialog' | 'orderedList' | 'rule' | 'status' | 'mention' | 'emoji' | 'action' | 'decision' | 'infopanel' | 'notepanel' | 'successpanel' | 'warningpanel' | 'errorpanel' | 'custompanel' | 'layout' | 'expand' | 'placeholderText' | 'datasource' | 'loom';
8
8
  export type QuickInsertItem = TypeAheadItem & {
9
9
  /** other names used to find the item */
10
10
  keywords?: Array<string>;
@@ -14,13 +14,13 @@ export type QuickInsertItem = TypeAheadItem & {
14
14
  priority?: number;
15
15
  /** optional identifier */
16
16
  id?: QuickInsertItemId;
17
- /** indicates if the item will be highlighted where approppriated (plus menu for now) */
17
+ /** indicates if the item will be highlighted where appropriate (plus menu for now) */
18
18
  featured?: boolean;
19
19
  /**
20
20
  * What to do on insert
21
21
  *
22
22
  * @note This logic is only called if the item is accessed without a search
23
- * If a search occurs -- then a seperate insert action is called
23
+ * If a search occurs -- then a separate insert action is called
24
24
  * @see packages/editor/editor-core/src/plugins/insert-block/ui/ToolbarInsertBlock/index.tsx for details
25
25
  */
26
26
  action: (insert: QuickInsertActionInsert, state: EditorState) => Transaction | false;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import Loadable from 'react-loadable';
3
- import { HeadingLevels, IconProps } from '../../types';
3
+ import type { HeadingLevels, IconProps } from '../../types';
4
4
  export { default as IconCustomPanel } from './custom-panel';
5
5
  export { default as IconFallback } from './fallback';
6
6
  export declare const IconAction: React.ComponentType<IconProps> & Loadable.LoadableComponent;
@@ -30,3 +30,4 @@ export declare const IconFeedback: React.ComponentType<IconProps> & Loadable.Loa
30
30
  export declare const IconExpand: React.ComponentType<IconProps> & Loadable.LoadableComponent;
31
31
  export declare const IconDatasourceJiraIssue: React.ComponentType<IconProps> & Loadable.LoadableComponent;
32
32
  export declare const IconDatasourceAssetsObjects: React.ComponentType<IconProps> & Loadable.LoadableComponent;
33
+ export declare const IconLoom: React.ComponentType<IconProps> & Loadable.LoadableComponent;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export default function IconLayout(): JSX.Element;
@@ -1,2 +1,2 @@
1
- export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback, IconDatasourceJiraIssue, IconDatasourceAssetsObjects, } from './assets';
1
+ export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback, IconDatasourceJiraIssue, IconDatasourceAssetsObjects, IconLoom, } from './assets';
2
2
  export { memoProcessQuickInsertItems, find } from './utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "76.24.4",
3
+ "version": "76.25.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/"
@@ -88,7 +88,7 @@
88
88
  },
89
89
  "dependencies": {
90
90
  "@atlaskit/activity-provider": "^2.4.0",
91
- "@atlaskit/adf-schema": "^34.0.1",
91
+ "@atlaskit/adf-schema": "^35.0.0",
92
92
  "@atlaskit/adf-utils": "^19.0.0",
93
93
  "@atlaskit/analytics-listeners": "^8.7.0",
94
94
  "@atlaskit/analytics-namespaced-context": "^6.7.0",
@@ -97,7 +97,7 @@
97
97
  "@atlaskit/button": "^16.17.0",
98
98
  "@atlaskit/code": "^15.1.0",
99
99
  "@atlaskit/codemod-utils": "^4.2.0",
100
- "@atlaskit/custom-steps": "^0.0.5",
100
+ "@atlaskit/custom-steps": "^0.0.6",
101
101
  "@atlaskit/editor-json-transformer": "^8.10.0",
102
102
  "@atlaskit/editor-palette": "1.5.2",
103
103
  "@atlaskit/editor-prosemirror": "1.1.0",
@@ -163,6 +163,7 @@
163
163
  "@atlaskit/visual-regression": "*",
164
164
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
165
165
  "@atlassian/feature-flags-test-utils": "*",
166
+ "@loomhq/record-sdk": "^2.36.18",
166
167
  "@testing-library/dom": "^8.17.1",
167
168
  "@testing-library/jest-dom": "^5.16.5",
168
169
  "@testing-library/react": "^12.1.5",