@atlaskit/editor-common 74.19.2 → 74.20.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 +6 -0
- package/dist/cjs/link/LinkPicker/EditorLinkPicker/index.js +86 -0
- package/dist/cjs/link/LinkPicker/EditorLinkPicker/useEscapeClickaway.js +32 -0
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +939 -0
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/index.js +79 -0
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/messages.js +40 -0
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/utils.js +84 -0
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +83 -0
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +146 -0
- package/dist/cjs/link/LinkSearch/ToolbarComponents.js +17 -0
- package/dist/cjs/link/LinkSearch/index.js +328 -0
- package/dist/cjs/link/LinkSearch/listItemAlts.js +70 -0
- package/dist/cjs/link/LinkSearch/transformTimeStamp.js +42 -0
- package/dist/cjs/link/LinkSearch/types.js +5 -0
- package/dist/cjs/link/LinkSearch/withActivityProvider.js +59 -0
- package/dist/cjs/link/index.js +122 -0
- package/dist/cjs/link/types.js +22 -0
- package/dist/cjs/link/utils.js +19 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/quick-insert/assets/action.js +43 -0
- package/dist/cjs/quick-insert/assets/code.js +115 -0
- package/dist/cjs/quick-insert/assets/custom-panel.js +55 -0
- package/dist/cjs/quick-insert/assets/date.js +93 -0
- package/dist/cjs/quick-insert/assets/decision.js +34 -0
- package/dist/cjs/quick-insert/assets/divider.js +74 -0
- package/dist/cjs/quick-insert/assets/emoji.js +37 -0
- package/dist/cjs/quick-insert/assets/expand.js +47 -0
- package/dist/cjs/quick-insert/assets/fallback.js +55 -0
- package/dist/cjs/quick-insert/assets/feedback.js +70 -0
- package/dist/cjs/quick-insert/assets/heading1.js +50 -0
- package/dist/cjs/quick-insert/assets/heading2.js +50 -0
- package/dist/cjs/quick-insert/assets/heading3.js +50 -0
- package/dist/cjs/quick-insert/assets/heading4.js +50 -0
- package/dist/cjs/quick-insert/assets/heading5.js +50 -0
- package/dist/cjs/quick-insert/assets/heading6.js +50 -0
- package/dist/cjs/quick-insert/assets/images.js +92 -0
- package/dist/cjs/quick-insert/assets/index.js +372 -0
- package/dist/cjs/quick-insert/assets/layout.js +71 -0
- package/dist/cjs/quick-insert/assets/link.js +35 -0
- package/dist/cjs/quick-insert/assets/list-number.js +51 -0
- package/dist/cjs/quick-insert/assets/list.js +65 -0
- package/dist/cjs/quick-insert/assets/mention.js +56 -0
- package/dist/cjs/quick-insert/assets/panel-error.js +35 -0
- package/dist/cjs/quick-insert/assets/panel-note.js +35 -0
- package/dist/cjs/quick-insert/assets/panel-success.js +35 -0
- package/dist/cjs/quick-insert/assets/panel-warning.js +35 -0
- package/dist/cjs/quick-insert/assets/panel.js +50 -0
- package/dist/cjs/quick-insert/assets/quote.js +35 -0
- package/dist/cjs/quick-insert/assets/status.js +109 -0
- package/dist/cjs/quick-insert/index.js +150 -0
- package/dist/cjs/types/block-type.js +5 -0
- package/dist/cjs/ui/Announcer/announcer.js +62 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/PanelTextInput/index.js +174 -0
- package/dist/cjs/ui/PanelTextInput/styles.js +19 -0
- package/dist/cjs/ui/index.js +21 -0
- package/dist/cjs/utils/commands.js +20 -0
- package/dist/cjs/utils/hyperlink.js +25 -2
- package/dist/cjs/utils/index.js +24 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/link/LinkPicker/EditorLinkPicker/index.js +74 -0
- package/dist/es2019/link/LinkPicker/EditorLinkPicker/useEscapeClickaway.js +25 -0
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +789 -0
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/index.js +74 -0
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/messages.js +33 -0
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/utils.js +83 -0
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +63 -0
- package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +141 -0
- package/dist/es2019/link/LinkSearch/ToolbarComponents.js +20 -0
- package/dist/es2019/link/LinkSearch/index.js +213 -0
- package/dist/es2019/link/LinkSearch/listItemAlts.js +63 -0
- package/dist/es2019/link/LinkSearch/transformTimeStamp.js +34 -0
- package/dist/es2019/link/LinkSearch/types.js +1 -0
- package/dist/es2019/link/LinkSearch/withActivityProvider.js +35 -0
- package/dist/es2019/link/index.js +11 -0
- package/dist/es2019/link/types.js +14 -0
- package/dist/es2019/link/utils.js +12 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/quick-insert/assets/action.js +35 -0
- package/dist/es2019/quick-insert/assets/code.js +107 -0
- package/dist/es2019/quick-insert/assets/custom-panel.js +47 -0
- package/dist/es2019/quick-insert/assets/date.js +85 -0
- package/dist/es2019/quick-insert/assets/decision.js +26 -0
- package/dist/es2019/quick-insert/assets/divider.js +66 -0
- package/dist/es2019/quick-insert/assets/emoji.js +29 -0
- package/dist/es2019/quick-insert/assets/expand.js +39 -0
- package/dist/es2019/quick-insert/assets/fallback.js +47 -0
- package/dist/es2019/quick-insert/assets/feedback.js +62 -0
- package/dist/es2019/quick-insert/assets/heading1.js +42 -0
- package/dist/es2019/quick-insert/assets/heading2.js +42 -0
- package/dist/es2019/quick-insert/assets/heading3.js +42 -0
- package/dist/es2019/quick-insert/assets/heading4.js +42 -0
- package/dist/es2019/quick-insert/assets/heading5.js +42 -0
- package/dist/es2019/quick-insert/assets/heading6.js +42 -0
- package/dist/es2019/quick-insert/assets/images.js +84 -0
- package/dist/es2019/quick-insert/assets/index.js +115 -0
- package/dist/es2019/quick-insert/assets/layout.js +63 -0
- package/dist/es2019/quick-insert/assets/link.js +27 -0
- package/dist/es2019/quick-insert/assets/list-number.js +43 -0
- package/dist/es2019/quick-insert/assets/list.js +57 -0
- package/dist/es2019/quick-insert/assets/mention.js +48 -0
- package/dist/es2019/quick-insert/assets/panel-error.js +27 -0
- package/dist/es2019/quick-insert/assets/panel-note.js +27 -0
- package/dist/es2019/quick-insert/assets/panel-success.js +27 -0
- package/dist/es2019/quick-insert/assets/panel-warning.js +27 -0
- package/dist/es2019/quick-insert/assets/panel.js +42 -0
- package/dist/es2019/quick-insert/assets/quote.js +27 -0
- package/dist/es2019/quick-insert/assets/status.js +101 -0
- package/dist/es2019/quick-insert/index.js +1 -0
- package/dist/es2019/types/block-type.js +1 -0
- package/dist/es2019/ui/Announcer/announcer.js +41 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/PanelTextInput/index.js +149 -0
- package/dist/es2019/ui/PanelTextInput/styles.js +36 -0
- package/dist/es2019/ui/index.js +4 -1
- package/dist/es2019/utils/commands.js +11 -0
- package/dist/es2019/utils/hyperlink.js +19 -1
- package/dist/es2019/utils/index.js +8 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/link/LinkPicker/EditorLinkPicker/index.js +76 -0
- package/dist/esm/link/LinkPicker/EditorLinkPicker/useEscapeClickaway.js +25 -0
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +924 -0
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/index.js +72 -0
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/messages.js +33 -0
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/utils.js +73 -0
- package/dist/esm/link/LinkSearch/LinkSearchList.js +75 -0
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +131 -0
- package/dist/esm/link/LinkSearch/ToolbarComponents.js +7 -0
- package/dist/esm/link/LinkSearch/index.js +320 -0
- package/dist/esm/link/LinkSearch/listItemAlts.js +63 -0
- package/dist/esm/link/LinkSearch/transformTimeStamp.js +34 -0
- package/dist/esm/link/LinkSearch/types.js +1 -0
- package/dist/esm/link/LinkSearch/withActivityProvider.js +52 -0
- package/dist/esm/link/index.js +11 -0
- package/dist/esm/link/types.js +14 -0
- package/dist/esm/link/utils.js +12 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/quick-insert/assets/action.js +35 -0
- package/dist/esm/quick-insert/assets/code.js +107 -0
- package/dist/esm/quick-insert/assets/custom-panel.js +47 -0
- package/dist/esm/quick-insert/assets/date.js +85 -0
- package/dist/esm/quick-insert/assets/decision.js +26 -0
- package/dist/esm/quick-insert/assets/divider.js +66 -0
- package/dist/esm/quick-insert/assets/emoji.js +29 -0
- package/dist/esm/quick-insert/assets/expand.js +39 -0
- package/dist/esm/quick-insert/assets/fallback.js +47 -0
- package/dist/esm/quick-insert/assets/feedback.js +62 -0
- package/dist/esm/quick-insert/assets/heading1.js +42 -0
- package/dist/esm/quick-insert/assets/heading2.js +42 -0
- package/dist/esm/quick-insert/assets/heading3.js +42 -0
- package/dist/esm/quick-insert/assets/heading4.js +42 -0
- package/dist/esm/quick-insert/assets/heading5.js +42 -0
- package/dist/esm/quick-insert/assets/heading6.js +42 -0
- package/dist/esm/quick-insert/assets/images.js +84 -0
- package/dist/esm/quick-insert/assets/index.js +248 -0
- package/dist/esm/quick-insert/assets/layout.js +63 -0
- package/dist/esm/quick-insert/assets/link.js +27 -0
- package/dist/esm/quick-insert/assets/list-number.js +43 -0
- package/dist/esm/quick-insert/assets/list.js +57 -0
- package/dist/esm/quick-insert/assets/mention.js +48 -0
- package/dist/esm/quick-insert/assets/panel-error.js +27 -0
- package/dist/esm/quick-insert/assets/panel-note.js +27 -0
- package/dist/esm/quick-insert/assets/panel-success.js +27 -0
- package/dist/esm/quick-insert/assets/panel-warning.js +27 -0
- package/dist/esm/quick-insert/assets/panel.js +42 -0
- package/dist/esm/quick-insert/assets/quote.js +27 -0
- package/dist/esm/quick-insert/assets/status.js +101 -0
- package/dist/esm/quick-insert/index.js +1 -0
- package/dist/esm/types/block-type.js +1 -0
- package/dist/esm/ui/Announcer/announcer.js +52 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/PanelTextInput/index.js +168 -0
- package/dist/esm/ui/PanelTextInput/styles.js +10 -0
- package/dist/esm/ui/index.js +4 -1
- package/dist/esm/utils/commands.js +13 -0
- package/dist/esm/utils/hyperlink.js +23 -1
- package/dist/esm/utils/index.js +12 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/link/LinkPicker/EditorLinkPicker/index.d.ts +23 -0
- package/dist/types/link/LinkPicker/EditorLinkPicker/useEscapeClickaway.d.ts +2 -0
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +115 -0
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +21 -0
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/messages.d.ts +32 -0
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/utils.d.ts +8 -0
- package/dist/types/link/LinkSearch/LinkSearchList.d.ts +20 -0
- package/dist/types/link/LinkSearch/LinkSearchListItem.d.ts +22 -0
- package/dist/types/link/LinkSearch/ToolbarComponents.d.ts +3 -0
- package/dist/types/link/LinkSearch/index.d.ts +59 -0
- package/dist/types/link/LinkSearch/listItemAlts.d.ts +2 -0
- package/dist/types/link/LinkSearch/transformTimeStamp.d.ts +10 -0
- package/dist/types/link/LinkSearch/types.d.ts +49 -0
- package/dist/types/link/LinkSearch/withActivityProvider.d.ts +66 -0
- package/dist/types/link/index.d.ts +16 -0
- package/dist/types/link/types.d.ts +40 -0
- package/dist/types/link/utils.d.ts +3 -0
- package/dist/types/quick-insert/assets/action.d.ts +2 -0
- package/dist/types/quick-insert/assets/code.d.ts +2 -0
- package/dist/types/quick-insert/assets/custom-panel.d.ts +2 -0
- package/dist/types/quick-insert/assets/date.d.ts +2 -0
- package/dist/types/quick-insert/assets/decision.d.ts +2 -0
- package/dist/types/quick-insert/assets/divider.d.ts +2 -0
- package/dist/types/quick-insert/assets/emoji.d.ts +2 -0
- package/dist/types/quick-insert/assets/expand.d.ts +2 -0
- package/dist/types/quick-insert/assets/fallback.d.ts +2 -0
- package/dist/types/quick-insert/assets/feedback.d.ts +2 -0
- package/dist/types/quick-insert/assets/heading1.d.ts +2 -0
- package/dist/types/quick-insert/assets/heading2.d.ts +2 -0
- package/dist/types/quick-insert/assets/heading3.d.ts +2 -0
- package/dist/types/quick-insert/assets/heading4.d.ts +2 -0
- package/dist/types/quick-insert/assets/heading5.d.ts +2 -0
- package/dist/types/quick-insert/assets/heading6.d.ts +2 -0
- package/dist/types/quick-insert/assets/images.d.ts +2 -0
- package/dist/types/quick-insert/assets/index.d.ts +30 -0
- package/dist/types/quick-insert/assets/layout.d.ts +2 -0
- package/dist/types/quick-insert/assets/link.d.ts +2 -0
- package/dist/types/quick-insert/assets/list-number.d.ts +2 -0
- package/dist/types/quick-insert/assets/list.d.ts +2 -0
- package/dist/types/quick-insert/assets/mention.d.ts +2 -0
- package/dist/types/quick-insert/assets/panel-error.d.ts +2 -0
- package/dist/types/quick-insert/assets/panel-note.d.ts +2 -0
- package/dist/types/quick-insert/assets/panel-success.d.ts +2 -0
- package/dist/types/quick-insert/assets/panel-warning.d.ts +2 -0
- package/dist/types/quick-insert/assets/panel.d.ts +2 -0
- package/dist/types/quick-insert/assets/quote.d.ts +2 -0
- package/dist/types/quick-insert/assets/status.d.ts +2 -0
- package/dist/types/quick-insert/index.d.ts +1 -0
- package/dist/types/types/block-type.d.ts +3 -0
- package/dist/types/types/command.d.ts +1 -0
- package/dist/types/types/index.d.ts +2 -1
- package/dist/types/ui/Announcer/announcer.d.ts +22 -0
- package/dist/types/ui/PanelTextInput/index.d.ts +45 -0
- package/dist/types/ui/PanelTextInput/styles.d.ts +2 -0
- package/dist/types/ui/index.d.ts +3 -0
- package/dist/types/utils/commands.d.ts +2 -0
- package/dist/types/utils/hyperlink.d.ts +2 -0
- package/dist/types/utils/index.d.ts +3 -1
- package/dist/types-ts4.5/link/LinkPicker/EditorLinkPicker/index.d.ts +23 -0
- package/dist/types-ts4.5/link/LinkPicker/EditorLinkPicker/useEscapeClickaway.d.ts +2 -0
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +115 -0
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +21 -0
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/messages.d.ts +32 -0
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/utils.d.ts +8 -0
- package/dist/types-ts4.5/link/LinkSearch/LinkSearchList.d.ts +20 -0
- package/dist/types-ts4.5/link/LinkSearch/LinkSearchListItem.d.ts +22 -0
- package/dist/types-ts4.5/link/LinkSearch/ToolbarComponents.d.ts +3 -0
- package/dist/types-ts4.5/link/LinkSearch/index.d.ts +59 -0
- package/dist/types-ts4.5/link/LinkSearch/listItemAlts.d.ts +2 -0
- package/dist/types-ts4.5/link/LinkSearch/transformTimeStamp.d.ts +10 -0
- package/dist/types-ts4.5/link/LinkSearch/types.d.ts +49 -0
- package/dist/types-ts4.5/link/LinkSearch/withActivityProvider.d.ts +66 -0
- package/dist/types-ts4.5/link/index.d.ts +16 -0
- package/dist/types-ts4.5/link/types.d.ts +40 -0
- package/dist/types-ts4.5/link/utils.d.ts +3 -0
- package/dist/types-ts4.5/quick-insert/assets/action.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/code.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/custom-panel.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/date.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/decision.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/divider.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/emoji.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/expand.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/fallback.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/feedback.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/heading1.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/heading2.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/heading3.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/heading4.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/heading5.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/heading6.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/images.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/index.d.ts +30 -0
- package/dist/types-ts4.5/quick-insert/assets/layout.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/link.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/list-number.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/list.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/mention.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/panel-error.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/panel-note.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/panel-success.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/panel-warning.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/panel.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/quote.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/status.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/index.d.ts +1 -0
- package/dist/types-ts4.5/types/block-type.d.ts +3 -0
- package/dist/types-ts4.5/types/command.d.ts +1 -0
- package/dist/types-ts4.5/types/index.d.ts +2 -1
- package/dist/types-ts4.5/ui/Announcer/announcer.d.ts +22 -0
- package/dist/types-ts4.5/ui/PanelTextInput/index.d.ts +45 -0
- package/dist/types-ts4.5/ui/PanelTextInput/styles.d.ts +2 -0
- package/dist/types-ts4.5/ui/index.d.ts +3 -0
- package/dist/types-ts4.5/utils/commands.d.ts +2 -0
- package/dist/types-ts4.5/utils/hyperlink.d.ts +2 -0
- package/dist/types-ts4.5/utils/index.d.ts +3 -1
- package/link/package.json +15 -0
- package/package.json +11 -3
- package/quick-insert/package.json +15 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Loadable from 'react-loadable';
|
|
3
|
+
import { HeadingLevels, IconProps } from '../../types';
|
|
4
|
+
export { default as IconCustomPanel } from './custom-panel';
|
|
5
|
+
export { default as IconFallback } from './fallback';
|
|
6
|
+
export declare const IconAction: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
7
|
+
export declare const IconCode: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
8
|
+
export declare const IconDate: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
9
|
+
export declare const IconDecision: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
10
|
+
export declare const IconDivider: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
11
|
+
export declare const IconEmoji: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
12
|
+
export declare const IconImages: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
13
|
+
export declare const IconLayout: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
14
|
+
export declare const IconLink: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
15
|
+
export declare const IconListNumber: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
16
|
+
export declare const IconList: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
17
|
+
export declare const IconMention: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
18
|
+
export declare const IconPanelError: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
19
|
+
export declare const IconPanelNote: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
20
|
+
export declare const IconPanelSuccess: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
21
|
+
export declare const IconPanelWarning: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
22
|
+
export declare const IconPanel: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
23
|
+
export declare const IconQuote: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
24
|
+
export declare const IconStatus: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
25
|
+
type HeadingProps = IconProps & {
|
|
26
|
+
level: HeadingLevels;
|
|
27
|
+
};
|
|
28
|
+
export declare const IconHeading: ({ level, ...props }: HeadingProps) => JSX.Element;
|
|
29
|
+
export declare const IconFeedback: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
30
|
+
export declare const IconExpand: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
@@ -0,0 +1 @@
|
|
|
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, } from './assets';
|
|
@@ -3,3 +3,4 @@ import type { EditorView } from 'prosemirror-view';
|
|
|
3
3
|
export type CommandDispatch = (tr: Transaction) => void;
|
|
4
4
|
export type Command = (state: EditorState, dispatch?: CommandDispatch, view?: EditorView) => boolean;
|
|
5
5
|
export type HigherOrderCommand = (command: Command) => Command;
|
|
6
|
+
export type Predicate = (state: EditorState, view?: EditorView) => boolean;
|
|
@@ -12,7 +12,7 @@ export { AnnotationUpdateEmitter, AnnotationUpdateEvent } from './annotation';
|
|
|
12
12
|
export type { AnnotationState, AnnotationProviders, AnnotationUpdateEventPayloads, InlineCommentSelectionComponentProps, InlineCommentViewComponentProps, InlineCommentAnnotationProvider, OnAnnotationClickPayload, AnnotationByMatches, AnnotationActionResult, } from './annotation';
|
|
13
13
|
export type { ContextUpdateHandler, EditorActionsOptions, ReplaceRawValue, } from './editor-actions';
|
|
14
14
|
export type { TypeAheadStats, TypeAheadItemRenderProps, TypeAheadInsert, TypeAheadSelectItem, TypeAheadItem, TypeAheadForceSelect, TypeAheadHandler, } from './type-ahead';
|
|
15
|
-
export type { CommandDispatch, Command, HigherOrderCommand } from './command';
|
|
15
|
+
export type { CommandDispatch, Command, HigherOrderCommand, Predicate, } from './command';
|
|
16
16
|
export type { FeatureFlags, FeatureFlagKey, GetEditorFeatureFlags, } from './feature-flags';
|
|
17
17
|
export type { Browsers, Range, DisableSpellcheckByBrowser, } from './supported-browsers';
|
|
18
18
|
export type { EditorContainerWidth, GetEditorContainerWidth, } from './editor-container-width';
|
|
@@ -38,3 +38,4 @@ export type { LinkInputType, LinkPickerOptions, LinkingOptions, HyperlinkPluginO
|
|
|
38
38
|
export type { SnapPointsProps } from './resizable-media-single';
|
|
39
39
|
export type { BreakoutMode } from './breakout';
|
|
40
40
|
export type { ImageUploadPluginReferenceEventBase, ImageUploadPluginReferenceEventDragEvent, ImageUploadPluginReferenceEventClipboardEvent, ImageUploadPluginReferenceEvent, } from './image-upload-reference-event';
|
|
41
|
+
export type { HeadingLevels, NormalTextLevel, HeadingLevelsAndNormalText, } from './block-type';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { AriaAttributes, Ref } from 'react';
|
|
2
|
+
type AnnouncerProps = {
|
|
3
|
+
ref?: Ref<HTMLDivElement>;
|
|
4
|
+
/** Set 'false' for announcing only changed text
|
|
5
|
+
* (not announce duplicate part of string after second render),
|
|
6
|
+
* and 'true' for announcing all the string after each render */
|
|
7
|
+
ariaAtomic?: AriaAttributes['aria-atomic'];
|
|
8
|
+
/** Set politeness settings */
|
|
9
|
+
ariaLive?: AriaAttributes['aria-live'];
|
|
10
|
+
/** Used to describe what types of changes have occurred to an aria-live region */
|
|
11
|
+
ariaRelevant?: AriaAttributes['aria-relevant'];
|
|
12
|
+
/** Role used to set attribute role. See more details https://dequeuniversity.com/library/aria/liveregion-playground#configOptions */
|
|
13
|
+
role?: 'status' | 'log' | 'alert' | 'timer' | 'marquee';
|
|
14
|
+
/** Text message that will be announced */
|
|
15
|
+
text: string;
|
|
16
|
+
/** Debounce delay.
|
|
17
|
+
* Set delay (ms) to prevent announce the same string multiple times.
|
|
18
|
+
* It can be useful for cases when the parent component re-renders with the same announcer's text. */
|
|
19
|
+
delay?: number;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: React.NamedExoticComponent<AnnouncerProps>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { FocusEvent, KeyboardEvent, PureComponent } from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
export interface Props {
|
|
5
|
+
autoFocus?: boolean | FocusOptions;
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
onChange?: (value: string) => void;
|
|
8
|
+
onSubmit?: (value: string) => void;
|
|
9
|
+
onCancel?: (e: KeyboardEvent) => void;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
onMouseDown?: Function;
|
|
12
|
+
onKeyDown?: (e: KeyboardEvent<any>) => void;
|
|
13
|
+
onUndo?: Function;
|
|
14
|
+
onRedo?: Function;
|
|
15
|
+
onBlur?: Function;
|
|
16
|
+
width?: number;
|
|
17
|
+
maxLength?: number;
|
|
18
|
+
testId?: string;
|
|
19
|
+
ariaLabel?: string;
|
|
20
|
+
describedById?: string;
|
|
21
|
+
ariaExpanded?: boolean;
|
|
22
|
+
ariaActiveDescendant?: string;
|
|
23
|
+
ariaControls?: string;
|
|
24
|
+
role?: string;
|
|
25
|
+
ariaAutoComplete?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface State {
|
|
28
|
+
value?: string;
|
|
29
|
+
}
|
|
30
|
+
export default class PanelTextInput extends PureComponent<Props, State> {
|
|
31
|
+
private input?;
|
|
32
|
+
private focusTimeoutId;
|
|
33
|
+
constructor(props: Props);
|
|
34
|
+
componentDidUpdate(prevProps: Props): void;
|
|
35
|
+
componentWillUnmount(): void;
|
|
36
|
+
onMouseDown: () => void;
|
|
37
|
+
onBlur: (e: FocusEvent<any>) => void;
|
|
38
|
+
render(): jsx.JSX.Element;
|
|
39
|
+
focus(): void;
|
|
40
|
+
private handleChange;
|
|
41
|
+
private handleKeydown;
|
|
42
|
+
private isUndoEvent;
|
|
43
|
+
private isRedoEvent;
|
|
44
|
+
private handleRef;
|
|
45
|
+
}
|
|
@@ -33,3 +33,6 @@ export type { ResizerState } from './ResizerLegacy';
|
|
|
33
33
|
export type { EnabledHandles, Props as ResizerProps, } from './ResizerLegacy/types';
|
|
34
34
|
export { snapTo, handleSides, imageAlignmentMap } from './ResizerLegacy/utils';
|
|
35
35
|
export { wrapperStyle } from './ResizerLegacy/styled';
|
|
36
|
+
export { panelTextInput } from './PanelTextInput/styles';
|
|
37
|
+
export { default as PanelTextInput } from './PanelTextInput';
|
|
38
|
+
export { default as Announcer } from './Announcer/announcer';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Schema, Slice } from 'prosemirror-model';
|
|
2
|
+
import { EditorState } from 'prosemirror-state';
|
|
2
3
|
import { AnalyticsEventPayload, InputMethodInsertLink } from '../analytics/types';
|
|
3
4
|
export declare const FILEPATH_REGEXP: RegExp;
|
|
4
5
|
export declare const DONTLINKIFY_REGEXP: RegExp;
|
|
@@ -24,4 +25,5 @@ interface filepathMatch {
|
|
|
24
25
|
export declare const findFilepaths: (text: string, offset?: number) => Array<filepathMatch>;
|
|
25
26
|
export declare const isLinkInMatches: (linkStart: number, matchesList: Array<filepathMatch>) => boolean;
|
|
26
27
|
export declare function getLinkCreationAnalyticsEvent(inputMethod: InputMethodInsertLink, url: string): AnalyticsEventPayload;
|
|
28
|
+
export declare const canLinkBeCreatedInRange: (from: number, to: number) => (state: EditorState) => boolean;
|
|
27
29
|
export {};
|
|
@@ -47,10 +47,12 @@ export type { UseComponentRenderTrackingArgs } from './performance/hooks/use-com
|
|
|
47
47
|
export { isOutdatedBrowser } from './outdated-browsers';
|
|
48
48
|
export { isReferencedSource, removeConnectedNodes, getChildrenInfo, getNodeName, } from './referentiality';
|
|
49
49
|
export { getItemCounterDigitsSize, getOrderFromOrderedListNode, resolveOrder, isListNode, isParagraphNode, isListItemNode, isBulletList, } from './list';
|
|
50
|
-
export { isFromCurrentDomain, LinkMatcher, normalizeUrl, linkifyContent, getLinkDomain, findFilepaths, isLinkInMatches, FILEPATH_REGEXP, DONTLINKIFY_REGEXP, getLinkCreationAnalyticsEvent, } from './hyperlink';
|
|
50
|
+
export { isFromCurrentDomain, LinkMatcher, normalizeUrl, linkifyContent, getLinkDomain, findFilepaths, isLinkInMatches, FILEPATH_REGEXP, DONTLINKIFY_REGEXP, getLinkCreationAnalyticsEvent, canLinkBeCreatedInRange, } from './hyperlink';
|
|
51
51
|
export declare const pmHistoryPluginKey = "history$";
|
|
52
52
|
export { gridTypeForLayout } from './grid';
|
|
53
53
|
export { nodesBetweenChanged, getStepRange, isEmptyDocument, processRawValue, hasDocAsParent, bracketTyped, } from './document';
|
|
54
54
|
export { floatingLayouts, isRichMediaInsideOfBlockNode, calculateSnapPoints, alignAttributes, } from './rich-media-utils';
|
|
55
55
|
export { sanitizeNodeForPrivacy } from './filter/privacy-filter';
|
|
56
56
|
export { canRenderDatasource } from './datasource';
|
|
57
|
+
export { filter as filterCommands } from './commands';
|
|
58
|
+
export declare function shallowEqual(obj1?: any, obj2?: any): boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/link",
|
|
3
|
+
"main": "../dist/cjs/link/index.js",
|
|
4
|
+
"module": "../dist/esm/link/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/link/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/link/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/link/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "74.
|
|
3
|
+
"version": "74.20.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/"
|
|
@@ -70,7 +70,9 @@
|
|
|
70
70
|
"./resizer": "./src/resizer/index.ts",
|
|
71
71
|
"./editor-analytics": "./src/editor-analytics/index.ts",
|
|
72
72
|
"./selection-based-node-view": "./src/selection-based-node-view/index.ts",
|
|
73
|
-
"./guideline": "./src/guideline/index.ts"
|
|
73
|
+
"./guideline": "./src/guideline/index.ts",
|
|
74
|
+
"./quick-insert": "./src/quick-insert/index.ts",
|
|
75
|
+
"./link": "./src/link/index.ts"
|
|
74
76
|
},
|
|
75
77
|
"dependencies": {
|
|
76
78
|
"@atlaskit/activity-provider": "^2.4.0",
|
|
@@ -88,8 +90,10 @@
|
|
|
88
90
|
"@atlaskit/editor-shared-styles": "^2.4.0",
|
|
89
91
|
"@atlaskit/emoji": "^67.4.0",
|
|
90
92
|
"@atlaskit/icon": "^21.12.0",
|
|
93
|
+
"@atlaskit/icon-object": "^6.3.0",
|
|
91
94
|
"@atlaskit/in-product-testing": "^0.2.0",
|
|
92
95
|
"@atlaskit/link-datasource": "^0.28.0",
|
|
96
|
+
"@atlaskit/link-picker": "^1.25.0",
|
|
93
97
|
"@atlaskit/media-card": "^76.1.0",
|
|
94
98
|
"@atlaskit/media-client": "^23.1.0",
|
|
95
99
|
"@atlaskit/media-picker": "^66.1.0",
|
|
@@ -98,6 +102,7 @@
|
|
|
98
102
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
99
103
|
"@atlaskit/profilecard": "^19.5.0",
|
|
100
104
|
"@atlaskit/smart-user-picker": "^6.1.0",
|
|
105
|
+
"@atlaskit/spinner": "^15.5.0",
|
|
101
106
|
"@atlaskit/task-decision": "^17.7.0",
|
|
102
107
|
"@atlaskit/theme": "^12.5.0",
|
|
103
108
|
"@atlaskit/tokens": "^1.11.0",
|
|
@@ -126,7 +131,8 @@
|
|
|
126
131
|
"prosemirror-view": "1.23.7",
|
|
127
132
|
"raf-schd": "^4.0.3",
|
|
128
133
|
"re-resizable": "6.0.0",
|
|
129
|
-
"react-loadable": "^5.1.0"
|
|
134
|
+
"react-loadable": "^5.1.0",
|
|
135
|
+
"rusha": "^0.8.13"
|
|
130
136
|
},
|
|
131
137
|
"peerDependencies": {
|
|
132
138
|
"@atlaskit/media-core": "^34.1.2",
|
|
@@ -145,9 +151,11 @@
|
|
|
145
151
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
146
152
|
"@atlassian/feature-flags-test-utils": "*",
|
|
147
153
|
"@sentry/types": "^6.18.2",
|
|
154
|
+
"@testing-library/dom": "^8.17.1",
|
|
148
155
|
"@testing-library/jest-dom": "^5.16.5",
|
|
149
156
|
"@testing-library/react": "^12.1.5",
|
|
150
157
|
"@testing-library/react-hooks": "^8.0.1",
|
|
158
|
+
"@testing-library/user-event": "^14.4.3",
|
|
151
159
|
"@types/raf-schd": "^4.0.1",
|
|
152
160
|
"enzyme": "^3.10.0",
|
|
153
161
|
"raf-stub": "^2.0.1",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/quick-insert",
|
|
3
|
+
"main": "../dist/cjs/quick-insert/index.js",
|
|
4
|
+
"module": "../dist/esm/quick-insert/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/quick-insert/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/quick-insert/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/quick-insert/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|