@atlaskit/editor-common 76.24.5 → 76.25.1

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 (94) hide show
  1. package/CHANGELOG.md +12 -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/media-inline/inline-image-wrapper.js +14 -4
  6. package/dist/cjs/media-inline/media-inline-image-card.js +54 -40
  7. package/dist/cjs/media-inline/views/constants.js +8 -0
  8. package/dist/cjs/media-inline/views/error-view.js +33 -0
  9. package/dist/cjs/media-inline/views/frame.js +15 -0
  10. package/dist/cjs/media-inline/views/icon-wrapper.js +20 -0
  11. package/dist/cjs/media-inline/views/loading-view.js +21 -0
  12. package/dist/cjs/media-inline/views/wrapper.js +24 -0
  13. package/dist/cjs/messages/insert-block.js +10 -0
  14. package/dist/cjs/messages/media-inline-card.js +19 -0
  15. package/dist/cjs/monitoring/error.js +1 -1
  16. package/dist/cjs/quick-insert/assets/index.js +13 -1
  17. package/dist/cjs/quick-insert/assets/loom.js +26 -0
  18. package/dist/cjs/quick-insert/index.js +6 -0
  19. package/dist/cjs/ui/DropList/index.js +1 -1
  20. package/dist/es2019/analytics/types/enums.js +4 -0
  21. package/dist/es2019/analytics/types/loom-events.js +1 -0
  22. package/dist/es2019/analytics/types/toolbar-button.js +1 -0
  23. package/dist/es2019/media-inline/inline-image-wrapper.js +14 -4
  24. package/dist/es2019/media-inline/media-inline-image-card.js +54 -39
  25. package/dist/es2019/media-inline/views/constants.js +2 -0
  26. package/dist/es2019/media-inline/views/error-view.js +25 -0
  27. package/dist/es2019/media-inline/views/frame.js +8 -0
  28. package/dist/es2019/media-inline/views/icon-wrapper.js +15 -0
  29. package/dist/es2019/media-inline/views/loading-view.js +13 -0
  30. package/dist/es2019/media-inline/views/wrapper.js +18 -0
  31. package/dist/es2019/messages/insert-block.js +10 -0
  32. package/dist/es2019/messages/media-inline-card.js +13 -0
  33. package/dist/es2019/monitoring/error.js +1 -1
  34. package/dist/es2019/quick-insert/assets/index.js +4 -0
  35. package/dist/es2019/quick-insert/assets/loom.js +20 -0
  36. package/dist/es2019/quick-insert/index.js +1 -1
  37. package/dist/es2019/ui/DropList/index.js +1 -1
  38. package/dist/esm/analytics/types/enums.js +4 -0
  39. package/dist/esm/analytics/types/loom-events.js +1 -0
  40. package/dist/esm/analytics/types/toolbar-button.js +1 -0
  41. package/dist/esm/media-inline/inline-image-wrapper.js +14 -4
  42. package/dist/esm/media-inline/media-inline-image-card.js +53 -39
  43. package/dist/esm/media-inline/views/constants.js +2 -0
  44. package/dist/esm/media-inline/views/error-view.js +26 -0
  45. package/dist/esm/media-inline/views/frame.js +9 -0
  46. package/dist/esm/media-inline/views/icon-wrapper.js +14 -0
  47. package/dist/esm/media-inline/views/loading-view.js +14 -0
  48. package/dist/esm/media-inline/views/wrapper.js +18 -0
  49. package/dist/esm/messages/insert-block.js +10 -0
  50. package/dist/esm/messages/media-inline-card.js +13 -0
  51. package/dist/esm/monitoring/error.js +1 -1
  52. package/dist/esm/quick-insert/assets/index.js +10 -0
  53. package/dist/esm/quick-insert/assets/loom.js +19 -0
  54. package/dist/esm/quick-insert/index.js +1 -1
  55. package/dist/esm/ui/DropList/index.js +1 -1
  56. package/dist/types/analytics/types/enums.d.ts +6 -2
  57. package/dist/types/analytics/types/events.d.ts +2 -1
  58. package/dist/types/analytics/types/loom-events.d.ts +19 -0
  59. package/dist/types/analytics/types/toolbar-button.d.ts +2 -1
  60. package/dist/types/card/types.d.ts +1 -1
  61. package/dist/types/media-inline/inline-image-wrapper.d.ts +1 -0
  62. package/dist/types/media-inline/media-inline-image-card.d.ts +2 -0
  63. package/dist/types/media-inline/views/constants.d.ts +2 -0
  64. package/dist/types/media-inline/views/error-view.d.ts +12 -0
  65. package/dist/types/media-inline/views/frame.d.ts +9 -0
  66. package/dist/types/media-inline/views/icon-wrapper.d.ts +7 -0
  67. package/dist/types/media-inline/views/loading-view.d.ts +10 -0
  68. package/dist/types/media-inline/views/wrapper.d.ts +1 -0
  69. package/dist/types/messages/insert-block.d.ts +10 -0
  70. package/dist/types/messages/media-inline-card.d.ts +12 -0
  71. package/dist/types/provider-factory/quick-insert-provider.d.ts +3 -3
  72. package/dist/types/quick-insert/assets/index.d.ts +2 -1
  73. package/dist/types/quick-insert/assets/loom.d.ts +2 -0
  74. package/dist/types/quick-insert/index.d.ts +1 -1
  75. package/dist/types-ts4.5/analytics/types/enums.d.ts +6 -2
  76. package/dist/types-ts4.5/analytics/types/events.d.ts +2 -1
  77. package/dist/types-ts4.5/analytics/types/loom-events.d.ts +19 -0
  78. package/dist/types-ts4.5/analytics/types/toolbar-button.d.ts +2 -1
  79. package/dist/types-ts4.5/card/types.d.ts +1 -1
  80. package/dist/types-ts4.5/media-inline/inline-image-wrapper.d.ts +1 -0
  81. package/dist/types-ts4.5/media-inline/media-inline-image-card.d.ts +2 -0
  82. package/dist/types-ts4.5/media-inline/views/constants.d.ts +2 -0
  83. package/dist/types-ts4.5/media-inline/views/error-view.d.ts +12 -0
  84. package/dist/types-ts4.5/media-inline/views/frame.d.ts +9 -0
  85. package/dist/types-ts4.5/media-inline/views/icon-wrapper.d.ts +7 -0
  86. package/dist/types-ts4.5/media-inline/views/loading-view.d.ts +10 -0
  87. package/dist/types-ts4.5/media-inline/views/wrapper.d.ts +1 -0
  88. package/dist/types-ts4.5/messages/insert-block.d.ts +10 -0
  89. package/dist/types-ts4.5/messages/media-inline-card.d.ts +12 -0
  90. package/dist/types-ts4.5/provider-factory/quick-insert-provider.d.ts +3 -3
  91. package/dist/types-ts4.5/quick-insert/assets/index.d.ts +2 -1
  92. package/dist/types-ts4.5/quick-insert/assets/loom.d.ts +2 -0
  93. package/dist/types-ts4.5/quick-insert/index.d.ts +1 -1
  94. package/package.json +2 -1
@@ -1,9 +1,11 @@
1
1
  /** @jsx jsx */
2
2
  import type { FC } from 'react';
3
+ import type { WrappedComponentProps } from 'react-intl-next';
3
4
  import type { FileIdentifier, MediaClient } from '@atlaskit/media-client';
4
5
  export interface MediaInlineImageCardProps {
5
6
  identifier: FileIdentifier;
6
7
  mediaClient: MediaClient;
7
8
  isSelected?: boolean;
8
9
  }
10
+ export declare const MediaInlineImageCardInternal: FC<MediaInlineImageCardProps & WrappedComponentProps>;
9
11
  export declare const MediaInlineImageCard: FC<MediaInlineImageCardProps>;
@@ -0,0 +1,2 @@
1
+ /** Height threshold that determines icon size to be small or medium */
2
+ export declare const ICON_SIZE_THRESOLD = 24;
@@ -0,0 +1,12 @@
1
+ /** @jsx jsx */
2
+ import type { FC } from 'react';
3
+ type Props = {
4
+ message: string;
5
+ /** Error icon. Default to document icon. */
6
+ icon?: React.ReactNode;
7
+ testId?: string;
8
+ /** Container height */
9
+ height?: number;
10
+ };
11
+ export declare const InlineImageCardErrorView: FC<Props>;
12
+ export {};
@@ -0,0 +1,9 @@
1
+ /** @jsx jsx */
2
+ import type { FC } from 'react';
3
+ interface FrameViewProps {
4
+ children?: React.ReactNode;
5
+ /** A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests */
6
+ testId?: string;
7
+ }
8
+ export declare const Frame: FC<FrameViewProps>;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ /** @jsx jsx */
2
+ import type { FC } from 'react';
3
+ type Props = {
4
+ children?: React.ReactNode;
5
+ };
6
+ export declare const IconWrapper: FC<Props>;
7
+ export {};
@@ -0,0 +1,10 @@
1
+ /** @jsx jsx */
2
+ import type { FC } from 'react';
3
+ type Props = {
4
+ title?: string;
5
+ testId?: string;
6
+ /** Container height */
7
+ height?: number;
8
+ };
9
+ export declare const InlineImageCardLoadingView: FC<Props>;
10
+ export {};
@@ -0,0 +1 @@
1
+ export declare const wrapperStyle: import("@emotion/react").SerializedStyles;
@@ -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
  };
@@ -0,0 +1,12 @@
1
+ export declare const messages: {
2
+ unableToLoadContent: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ failedToUpload: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ };
@@ -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;
@@ -2,6 +2,7 @@
2
2
  import type { FC, ReactElement } from 'react';
3
3
  type Prop = {
4
4
  children: ReactElement;
5
+ isSelected?: boolean;
5
6
  };
6
7
  export declare const InlineImageWrapper: FC<Prop>;
7
8
  export {};
@@ -1,9 +1,11 @@
1
1
  /** @jsx jsx */
2
2
  import type { FC } from 'react';
3
+ import type { WrappedComponentProps } from 'react-intl-next';
3
4
  import type { FileIdentifier, MediaClient } from '@atlaskit/media-client';
4
5
  export interface MediaInlineImageCardProps {
5
6
  identifier: FileIdentifier;
6
7
  mediaClient: MediaClient;
7
8
  isSelected?: boolean;
8
9
  }
10
+ export declare const MediaInlineImageCardInternal: FC<MediaInlineImageCardProps & WrappedComponentProps>;
9
11
  export declare const MediaInlineImageCard: FC<MediaInlineImageCardProps>;
@@ -0,0 +1,2 @@
1
+ /** Height threshold that determines icon size to be small or medium */
2
+ export declare const ICON_SIZE_THRESOLD = 24;
@@ -0,0 +1,12 @@
1
+ /** @jsx jsx */
2
+ import type { FC } from 'react';
3
+ type Props = {
4
+ message: string;
5
+ /** Error icon. Default to document icon. */
6
+ icon?: React.ReactNode;
7
+ testId?: string;
8
+ /** Container height */
9
+ height?: number;
10
+ };
11
+ export declare const InlineImageCardErrorView: FC<Props>;
12
+ export {};
@@ -0,0 +1,9 @@
1
+ /** @jsx jsx */
2
+ import type { FC } from 'react';
3
+ interface FrameViewProps {
4
+ children?: React.ReactNode;
5
+ /** A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests */
6
+ testId?: string;
7
+ }
8
+ export declare const Frame: FC<FrameViewProps>;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ /** @jsx jsx */
2
+ import type { FC } from 'react';
3
+ type Props = {
4
+ children?: React.ReactNode;
5
+ };
6
+ export declare const IconWrapper: FC<Props>;
7
+ export {};
@@ -0,0 +1,10 @@
1
+ /** @jsx jsx */
2
+ import type { FC } from 'react';
3
+ type Props = {
4
+ title?: string;
5
+ testId?: string;
6
+ /** Container height */
7
+ height?: number;
8
+ };
9
+ export declare const InlineImageCardLoadingView: FC<Props>;
10
+ export {};
@@ -0,0 +1 @@
1
+ export declare const wrapperStyle: import("@emotion/react").SerializedStyles;
@@ -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
  };
@@ -0,0 +1,12 @@
1
+ export declare const messages: {
2
+ unableToLoadContent: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ failedToUpload: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ };
@@ -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.5",
3
+ "version": "76.25.1",
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/"
@@ -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",