@atlaskit/editor-common 76.25.0 → 76.25.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/afm-cc/tsconfig.json +133 -0
- package/dist/cjs/card/LinkToolbarButtonGroup.js +6 -5
- package/dist/cjs/element-browser/ViewMore.js +4 -3
- package/dist/cjs/element-browser/components/CategoryList.js +5 -4
- package/dist/cjs/element-browser/components/ElementBrowserLoader.js +3 -2
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +21 -20
- package/dist/cjs/element-browser/components/ElementList/EmptyState.js +9 -8
- package/dist/cjs/element-browser/components/ElementList/NotFoundIllustration.js +16 -15
- package/dist/cjs/element-browser/components/ElementSearch.js +7 -6
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +22 -21
- package/dist/cjs/element-browser/hooks/use-container-width.js +3 -2
- package/dist/cjs/keymaps/index.js +2 -1
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +22 -21
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +6 -5
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +11 -9
- package/dist/cjs/media-inline/inline-image-wrapper.js +16 -4
- package/dist/cjs/media-inline/media-inline-image-card.js +64 -41
- package/dist/cjs/media-inline/types.js +5 -0
- package/dist/cjs/media-inline/views/constants.js +8 -0
- package/dist/cjs/media-inline/views/error-view.js +36 -0
- package/dist/cjs/media-inline/views/frame.js +18 -0
- package/dist/cjs/media-inline/views/icon-wrapper.js +22 -0
- package/dist/cjs/media-inline/views/loading-view.js +24 -0
- package/dist/cjs/media-inline/views/wrapper.js +24 -0
- package/dist/cjs/messages/media-inline-card.js +19 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +8 -5
- package/dist/cjs/ui/Caption/index.js +3 -2
- package/dist/cjs/ui/DropList/index.js +6 -6
- package/dist/cjs/ui/Expand/index.js +5 -3
- package/dist/cjs/ui/FloatingToolbar/Separator.js +2 -1
- package/dist/cjs/ui/FloatingToolbar/SmallerEditIcon.js +3 -2
- package/dist/cjs/ui/MediaSingle/index.js +5 -2
- package/dist/cjs/ui/MediaSingle/styled.js +3 -2
- package/dist/cjs/ui/Messages/index.js +8 -7
- package/dist/cjs/ui/PanelTextInput/index.js +3 -2
- package/dist/cjs/ui/UnsupportedBlock/index.js +5 -4
- package/dist/cjs/ui/UnsupportedInline/index.js +5 -4
- package/dist/cjs/ui/WidthProvider/index.js +4 -4
- package/dist/cjs/ui-color/ColorPalette/Color/index.js +6 -5
- package/dist/cjs/ui-color/ColorPalette/index.js +6 -3
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +10 -9
- package/dist/cjs/ui-menu/DropdownContainer/index.js +3 -3
- package/dist/cjs/ui-menu/DropdownMenu/index.js +19 -18
- package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +3 -2
- package/dist/cjs/ui-menu/ToolbarButton/index.js +4 -3
- package/dist/es2019/card/LinkToolbarButtonGroup.js +7 -6
- package/dist/es2019/element-browser/ViewMore.js +5 -4
- package/dist/es2019/element-browser/components/CategoryList.js +6 -4
- package/dist/es2019/element-browser/components/ElementBrowserLoader.js +4 -3
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +22 -21
- package/dist/es2019/element-browser/components/ElementList/EmptyState.js +10 -9
- package/dist/es2019/element-browser/components/ElementList/NotFoundIllustration.js +17 -16
- package/dist/es2019/element-browser/components/ElementSearch.js +8 -7
- package/dist/es2019/element-browser/components/StatelessElementBrowser.js +23 -22
- package/dist/es2019/element-browser/hooks/use-container-width.js +4 -3
- package/dist/es2019/keymaps/index.js +3 -2
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +24 -22
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +7 -6
- package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +10 -9
- package/dist/es2019/media-inline/inline-image-wrapper.js +17 -5
- package/dist/es2019/media-inline/media-inline-image-card.js +64 -40
- package/dist/es2019/media-inline/types.js +1 -0
- package/dist/es2019/media-inline/views/constants.js +2 -0
- package/dist/es2019/media-inline/views/error-view.js +28 -0
- package/dist/es2019/media-inline/views/frame.js +11 -0
- package/dist/es2019/media-inline/views/icon-wrapper.js +17 -0
- package/dist/es2019/media-inline/views/loading-view.js +16 -0
- package/dist/es2019/media-inline/views/wrapper.js +18 -0
- package/dist/es2019/messages/media-inline-card.js +13 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +7 -5
- package/dist/es2019/ui/Caption/index.js +4 -3
- package/dist/es2019/ui/DropList/index.js +8 -6
- package/dist/es2019/ui/Expand/index.js +5 -3
- package/dist/es2019/ui/FloatingToolbar/Separator.js +3 -2
- package/dist/es2019/ui/FloatingToolbar/SmallerEditIcon.js +4 -3
- package/dist/es2019/ui/MediaSingle/index.js +4 -2
- package/dist/es2019/ui/MediaSingle/styled.js +5 -3
- package/dist/es2019/ui/Messages/index.js +10 -8
- package/dist/es2019/ui/PanelTextInput/index.js +4 -1
- package/dist/es2019/ui/UnsupportedBlock/index.js +6 -5
- package/dist/es2019/ui/UnsupportedInline/index.js +6 -5
- package/dist/es2019/ui/WidthProvider/index.js +5 -4
- package/dist/es2019/ui-color/ColorPalette/Color/index.js +6 -4
- package/dist/es2019/ui-color/ColorPalette/index.js +4 -2
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +11 -10
- package/dist/es2019/ui-menu/DropdownContainer/index.js +3 -2
- package/dist/es2019/ui-menu/DropdownMenu/index.js +21 -19
- package/dist/es2019/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +4 -3
- package/dist/es2019/ui-menu/ToolbarButton/index.js +5 -5
- package/dist/esm/card/LinkToolbarButtonGroup.js +7 -6
- package/dist/esm/element-browser/ViewMore.js +5 -4
- package/dist/esm/element-browser/components/CategoryList.js +7 -5
- package/dist/esm/element-browser/components/ElementBrowserLoader.js +4 -3
- package/dist/esm/element-browser/components/ElementList/ElementList.js +22 -21
- package/dist/esm/element-browser/components/ElementList/EmptyState.js +10 -9
- package/dist/esm/element-browser/components/ElementList/NotFoundIllustration.js +17 -16
- package/dist/esm/element-browser/components/ElementSearch.js +8 -7
- package/dist/esm/element-browser/components/StatelessElementBrowser.js +23 -22
- package/dist/esm/element-browser/hooks/use-container-width.js +4 -3
- package/dist/esm/keymaps/index.js +3 -2
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +24 -22
- package/dist/esm/link/LinkSearch/LinkSearchList.js +7 -6
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +10 -9
- package/dist/esm/media-inline/inline-image-wrapper.js +17 -5
- package/dist/esm/media-inline/media-inline-image-card.js +63 -40
- package/dist/esm/media-inline/types.js +1 -0
- package/dist/esm/media-inline/views/constants.js +2 -0
- package/dist/esm/media-inline/views/error-view.js +29 -0
- package/dist/esm/media-inline/views/frame.js +12 -0
- package/dist/esm/media-inline/views/icon-wrapper.js +16 -0
- package/dist/esm/media-inline/views/loading-view.js +17 -0
- package/dist/esm/media-inline/views/wrapper.js +18 -0
- package/dist/esm/messages/media-inline-card.js +13 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +7 -5
- package/dist/esm/ui/Caption/index.js +4 -3
- package/dist/esm/ui/DropList/index.js +8 -6
- package/dist/esm/ui/Expand/index.js +5 -3
- package/dist/esm/ui/FloatingToolbar/Separator.js +3 -2
- package/dist/esm/ui/FloatingToolbar/SmallerEditIcon.js +4 -3
- package/dist/esm/ui/MediaSingle/index.js +4 -2
- package/dist/esm/ui/MediaSingle/styled.js +5 -3
- package/dist/esm/ui/Messages/index.js +10 -8
- package/dist/esm/ui/PanelTextInput/index.js +4 -1
- package/dist/esm/ui/UnsupportedBlock/index.js +6 -5
- package/dist/esm/ui/UnsupportedInline/index.js +6 -5
- package/dist/esm/ui/WidthProvider/index.js +5 -4
- package/dist/esm/ui-color/ColorPalette/Color/index.js +6 -4
- package/dist/esm/ui-color/ColorPalette/index.js +5 -3
- package/dist/esm/ui-menu/ColorPickerButton/index.js +11 -10
- package/dist/esm/ui-menu/DropdownContainer/index.js +3 -2
- package/dist/esm/ui-menu/DropdownMenu/index.js +21 -19
- package/dist/esm/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +4 -3
- package/dist/esm/ui-menu/ToolbarButton/index.js +5 -5
- package/dist/types/media-inline/index.d.ts +1 -0
- package/dist/types/media-inline/inline-image-wrapper.d.ts +1 -0
- package/dist/types/media-inline/media-inline-image-card.d.ts +5 -1
- package/dist/types/media-inline/types.d.ts +6 -0
- package/dist/types/media-inline/views/constants.d.ts +2 -0
- package/dist/types/media-inline/views/error-view.d.ts +12 -0
- package/dist/types/media-inline/views/frame.d.ts +9 -0
- package/dist/types/media-inline/views/icon-wrapper.d.ts +7 -0
- package/dist/types/media-inline/views/loading-view.d.ts +10 -0
- package/dist/types/media-inline/views/wrapper.d.ts +1 -0
- package/dist/types/messages/media-inline-card.d.ts +12 -0
- package/dist/types/types/floating-toolbar.d.ts +1 -0
- package/dist/types-ts4.5/media-inline/index.d.ts +1 -0
- package/dist/types-ts4.5/media-inline/inline-image-wrapper.d.ts +1 -0
- package/dist/types-ts4.5/media-inline/media-inline-image-card.d.ts +5 -1
- package/dist/types-ts4.5/media-inline/types.d.ts +6 -0
- package/dist/types-ts4.5/media-inline/views/constants.d.ts +2 -0
- package/dist/types-ts4.5/media-inline/views/error-view.d.ts +12 -0
- package/dist/types-ts4.5/media-inline/views/frame.d.ts +9 -0
- package/dist/types-ts4.5/media-inline/views/icon-wrapper.d.ts +7 -0
- package/dist/types-ts4.5/media-inline/views/loading-view.d.ts +10 -0
- package/dist/types-ts4.5/media-inline/views/wrapper.d.ts +1 -0
- package/dist/types-ts4.5/messages/media-inline-card.d.ts +12 -0
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,60 +1,61 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
|
-
|
|
3
|
+
/** @jsx jsx */
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
4
5
|
var imageContainer = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 120px;\n height: 111px;\n margin-top: ", ";\n"])), "var(--ds-space-600, 48px)");
|
|
5
6
|
|
|
6
7
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
7
8
|
export default function NotFoundIllustration() {
|
|
8
|
-
return
|
|
9
|
+
return jsx("div", {
|
|
9
10
|
css: imageContainer
|
|
10
|
-
},
|
|
11
|
+
}, jsx("svg", {
|
|
11
12
|
width: "120",
|
|
12
13
|
height: "111",
|
|
13
14
|
fill: "none",
|
|
14
15
|
xmlns: "http://www.w3.org/2000/svg"
|
|
15
|
-
},
|
|
16
|
+
}, jsx("g", {
|
|
16
17
|
clipPath: "url(#clip0)"
|
|
17
|
-
},
|
|
18
|
+
}, jsx("path", {
|
|
18
19
|
fill: "#fff",
|
|
19
20
|
fillOpacity: ".01",
|
|
20
21
|
d: "M0 0h120v110.365H0z"
|
|
21
|
-
}),
|
|
22
|
+
}), jsx("path", {
|
|
22
23
|
opacity: ".3",
|
|
23
24
|
d: "M60.985 110.336c-.539.017-1.078.029-1.616.035a1.359 1.359 0 01-1.367-1.36 1.361 1.361 0 011.314-1.372h.041a50.876 50.876 0 0010.276-1.105 1.367 1.367 0 01.568 2.674 54.422 54.422 0 01-9.216 1.128zM52 109.877c-.075 0-.156 0-.237-.012a52.688 52.688 0 01-10.583-2.61 1.368 1.368 0 01.92-2.575c3.245 1.169 6.616 2 10.034 2.471.747.104 1.268.79 1.164 1.54A1.36 1.36 0 0152 109.877zM77.088 107.162a1.364 1.364 0 01-1.326-.895 1.366 1.366 0 01.805-1.755 50.423 50.423 0 009.274-4.575 1.358 1.358 0 011.877.43c.4.64.208 1.482-.429 1.884a53.25 53.25 0 01-9.772 4.824 1.26 1.26 0 01-.429.087zM34.9 104.32a1.359 1.359 0 01-.683-.157 53.29 53.29 0 01-9.042-6.092 1.369 1.369 0 01-.18-1.924 1.357 1.357 0 011.918-.18 50.483 50.483 0 008.578 5.778c.667.354.916 1.18.562 1.848a1.337 1.337 0 01-1.152.727zM20.732 93.23a1.372 1.372 0 01-1.06-.448 53.223 53.223 0 01-6.436-8.818 1.37 1.37 0 01.487-1.872 1.36 1.36 0 011.865.489 50.724 50.724 0 006.105 8.364 1.366 1.366 0 01-.098 1.93c-.25.226-.556.343-.863.354zM104.093 84.196a1.367 1.367 0 01-1.228-2.046 50.41 50.41 0 004.183-9.48 1.358 1.358 0 011.714-.878 1.365 1.365 0 01.875 1.72 53.17 53.17 0 01-4.414 9.993 1.34 1.34 0 01-1.13.691zM11.18 77.965a1.365 1.365 0 01-1.31-.854 52.827 52.827 0 01-3.029-10.498 1.362 1.362 0 112.682-.483 50.732 50.732 0 002.873 9.958 1.363 1.363 0 01-1.216 1.877zM110.17 67.218a1.362 1.362 0 01-1.39-1.593c.579-3.395.805-6.876.683-10.347l-.006-.116a1.36 1.36 0 011.315-1.412 1.359 1.359 0 011.408 1.32l.006.115a54.054 54.054 0 01-.724 10.905 1.36 1.36 0 01-1.292 1.128zM7.426 60.3c-.753.03-1.384-.534-1.407-1.29v-.058a53.82 53.82 0 01.712-10.846 1.368 1.368 0 011.57-1.122c.741.128 1.24.83 1.118 1.575a51.307 51.307 0 00-.678 10.288c.029.762-.562 1.425-1.315 1.453zM110.06 49.076a1.363 1.363 0 01-1.385-1.122 50.567 50.567 0 00-2.884-9.95c-.284-.698.052-1.5.747-1.785a1.365 1.365 0 011.778.75 53.085 53.085 0 013.041 10.497 1.37 1.37 0 01-1.094 1.593l-.203.017zM9.888 42.462a1.452 1.452 0 01-.47-.065 1.365 1.365 0 01-.874-1.72 53.157 53.157 0 014.402-9.998 1.362 1.362 0 011.86-.511c.655.372.88 1.209.51 1.866a50.68 50.68 0 00-4.177 9.486 1.37 1.37 0 01-1.251.941zM103.815 32.179a1.355 1.355 0 01-1.222-.674 50.958 50.958 0 00-6.117-8.359 1.366 1.366 0 01.099-1.93 1.355 1.355 0 011.923.099 53.449 53.449 0 016.447 8.806 1.37 1.37 0 01-.487 1.872 1.432 1.432 0 01-.643.186zM18.31 26.529a1.372 1.372 0 01-1.124-2.209 53.551 53.551 0 017.537-7.888 1.363 1.363 0 011.923.157 1.375 1.375 0 01-.156 1.93 51.072 51.072 0 00-7.154 7.487 1.343 1.343 0 01-1.025.523zM92.172 18.444a1.352 1.352 0 01-.915-.314 50.861 50.861 0 00-8.59-5.772 1.368 1.368 0 01-.568-1.849 1.364 1.364 0 011.842-.57 53.153 53.153 0 019.048 6.08c.58.483.66 1.343.18 1.925a1.366 1.366 0 01-.997.5zM31.64 14.433a1.368 1.368 0 01-.776-2.523 53.107 53.107 0 019.771-4.836 1.359 1.359 0 011.75.808c.26.71-.099 1.494-.805 1.755a50.203 50.203 0 00-9.269 4.587c-.208.133-.44.203-.672.209zM76.555 9.51a1.257 1.257 0 01-.504-.082A50.06 50.06 0 0066.013 6.97a1.364 1.364 0 01-1.165-1.54 1.364 1.364 0 011.535-1.168 52.623 52.623 0 0110.584 2.592 1.369 1.369 0 01-.412 2.657zM48.287 7.65a1.367 1.367 0 01-.33-2.703 54.261 54.261 0 0110.827-1.18 1.367 1.367 0 011.372 1.36 1.367 1.367 0 01-1.314 1.377H58.8A50.85 50.85 0 0048.525 7.62c-.081.018-.162.024-.238.03z",
|
|
24
25
|
fill: "#B3BAC5"
|
|
25
|
-
}),
|
|
26
|
+
}), jsx("path", {
|
|
26
27
|
opacity: ".3",
|
|
27
28
|
d: "M110.523 19.873a.304.304 0 01-.226-.325l.035-.262c.029-.168.064-.348.11-.534a4.423 4.423 0 01.95-1.796c.458-.53 1.118-.971 1.97-1.314l1.436-.587c.858-.343 1.385-.913 1.593-1.697a2.48 2.48 0 00.07-.878 1.998 1.998 0 00-.273-.849c-.156-.261-.37-.5-.654-.709a3.07 3.07 0 00-1.049-.477c-.451-.116-.851-.133-1.21-.052a2.56 2.56 0 00-.956.43c-.278.204-.51.465-.695.78-.191.313-.33.65-.423.999-.029.104-.052.21-.07.302a.459.459 0 01-.59.355l-2.219-.68a.464.464 0 01-.33-.483c.006-.07.017-.14.029-.21.035-.197.075-.383.121-.569.174-.668.47-1.29.887-1.866a5.14 5.14 0 011.546-1.412c.614-.366 1.31-.605 2.097-.72.788-.117 1.645-.047 2.578.197.967.256 1.778.622 2.433 1.098.66.477 1.176 1.012 1.552 1.599.377.593.614 1.22.707 1.889.093.668.058 1.32-.11 1.953-.261 1-.712 1.796-1.344 2.389a6.773 6.773 0 01-2.288 1.39l-1.211.458c-.341.11-.851.338-1.274.803-.041.046-.214.238-.388.534-.128.221-.22.436-.284.622a.303.303 0 01-.365.192l-2.155-.57zm-1.772 3.412c.145-.552.457-.97.944-1.26a1.942 1.942 0 011.552-.222c.551.146.968.465 1.257.96.29.493.359 1.017.215 1.569a1.966 1.966 0 01-.956 1.25 2.005 2.005 0 01-1.558.203 1.957 1.957 0 01-1.246-.942 1.98 1.98 0 01-.208-1.558zM10.722 12.393a.301.301 0 01-.203-.338l.053-.261c.04-.169.086-.343.15-.523a4.334 4.334 0 011.072-1.727c.492-.5 1.176-.889 2.056-1.18l1.472-.488c.874-.285 1.442-.814 1.703-1.587.092-.279.139-.57.127-.872a2.052 2.052 0 00-.214-.866 2.285 2.285 0 00-.609-.75c-.266-.226-.608-.406-1.013-.546-.44-.151-.846-.192-1.205-.134a2.518 2.518 0 00-1.726 1.099 3.583 3.583 0 00-.585 1.267.461.461 0 01-.615.314L9.02 4.976a.467.467 0 01-.295-.506c.011-.07.029-.14.046-.21a5.65 5.65 0 01.162-.557A5.505 5.505 0 019.946 1.9 5.246 5.246 0 0111.579.593a5.545 5.545 0 012.138-.576c.793-.058 1.645.064 2.554.372.945.32 1.732.739 2.358 1.262.626.523 1.106 1.087 1.442 1.703.336.616.533 1.255.58 1.93a4.97 4.97 0 01-.244 1.941c-.33.982-.828 1.744-1.506 2.29a6.844 6.844 0 01-2.375 1.233l-1.24.372a2.94 2.94 0 00-1.326.715c-.046.046-.232.226-.423.505-.145.215-.249.419-.324.599a.3.3 0 01-.377.168l-2.114-.714zm-1.998 3.284a2 2 0 011.025-1.198 1.957 1.957 0 011.564-.116c.539.18.933.529 1.188 1.04.254.512.29 1.041.11 1.582-.18.54-.528.935-1.037 1.18a2.019 2.019 0 01-1.57.098 1.96 1.96 0 01-1.182-1.029 1.99 1.99 0 01-.098-1.557zM7.177 104.849a.298.298 0 01-.37-.134c-.041-.076-.082-.157-.122-.238a8.207 8.207 0 01-.215-.5 4.405 4.405 0 01-.249-2.017c.076-.698.36-1.436.863-2.215l.84-1.308c.504-.773.614-1.546.33-2.307a2.6 2.6 0 00-.446-.762 2.019 2.019 0 00-.706-.54 2.421 2.421 0 00-.944-.204 3.05 3.05 0 00-1.13.215c-.434.163-.776.378-1.025.657-.25.273-.423.576-.533.901-.11.326-.15.674-.128 1.04.024.367.099.721.226 1.064.04.105.076.198.116.285a.466.466 0 01-.278.634l-2.201.72a.455.455 0 01-.545-.209c-.034-.064-.063-.128-.098-.192a5.595 5.595 0 01-.568-2.575 5.09 5.09 0 01.458-2.046c.29-.65.724-1.25 1.303-1.796.58-.546 1.32-.988 2.225-1.32.938-.348 1.807-.517 2.618-.505.81.012 1.54.151 2.19.413a4.62 4.62 0 011.656 1.139c.458.494.8 1.046 1.025 1.662.36.971.446 1.884.267 2.732-.18.85-.539 1.669-1.078 2.46l-.73 1.075c-.214.29-.503.767-.585 1.389-.005.064-.04.319-.011.657.023.255.07.482.127.668a.309.309 0 01-.19.372l-2.092.785zm.504 3.813a2.026 2.026 0 01.052-1.581 1.958 1.958 0 011.147-1.076 1.986 1.986 0 011.576.064c.521.239.88.628 1.077 1.163a1.947 1.947 0 01-.07 1.569 2.028 2.028 0 01-1.158 1.064 1.977 1.977 0 01-1.564-.052 1.96 1.96 0 01-1.06-1.151z",
|
|
28
29
|
fill: "#C1C7D0"
|
|
29
|
-
}),
|
|
30
|
+
}), jsx("path", {
|
|
30
31
|
d: "M86.519 77.651l-4.142-4.028-5.578 5.784 4.141 4.028a7.812 7.812 0 012.15 3.772 7.858 7.858 0 002.148 3.773l16.816 16.333a6.405 6.405 0 009.077-.145 6.46 6.46 0 00-.144-9.108L94.171 81.726a7.786 7.786 0 00-3.83-2.034 7.9 7.9 0 01-3.822-2.04z",
|
|
31
32
|
fill: "#CFD4DB"
|
|
32
|
-
}),
|
|
33
|
+
}), jsx("path", {
|
|
33
34
|
d: "M90.18 79.64a7.756 7.756 0 01-3.656-1.995l-1.262-1.226a4 4 0 00-5.671.093 4.032 4.032 0 00.092 5.69l1.263 1.227a7.853 7.853 0 012.103 3.598 33.606 33.606 0 003.858-3.435 33.629 33.629 0 003.273-3.953z",
|
|
34
35
|
fill: "#B3BAC5"
|
|
35
|
-
}),
|
|
36
|
+
}), jsx("path", {
|
|
36
37
|
d: "M59.056 90.677c-8.961.146-17.442-3.22-23.877-9.474-13.295-12.91-13.636-34.266-.77-47.606C40.64 27.14 49.01 23.501 57.966 23.35c8.961-.145 17.441 3.22 23.877 9.475 6.441 6.255 10.062 14.654 10.212 23.64.145 8.992-3.209 17.502-9.442 23.96-6.227 6.47-14.597 10.108-23.558 10.253zM58.1 31.388c-6.824.11-13.19 2.883-17.94 7.801-9.795 10.155-9.534 26.413.585 36.242 4.9 4.76 11.36 7.324 18.183 7.213 6.824-.11 13.19-2.883 17.94-7.8 4.744-4.918 7.299-11.399 7.189-18.246-.11-6.847-2.873-13.236-7.774-18.002-4.906-4.755-11.36-7.318-18.183-7.208z",
|
|
37
38
|
fill: "url(#paint0_linear)"
|
|
38
|
-
}),
|
|
39
|
+
}), jsx("path", {
|
|
39
40
|
d: "M68.886 49.535l-3.093-3.051a1.158 1.158 0 00-1.64.017l-5.67 5.796-5.776-5.691a1.158 1.158 0 00-1.64.017l-3.04 3.104c-.446.46-.44 1.192.017 1.645l5.775 5.69-5.67 5.796c-.447.46-.44 1.192.017 1.645l3.093 3.052a1.158 1.158 0 001.64-.018l5.67-5.795 5.775 5.69a1.158 1.158 0 001.64-.017l3.04-3.104c.447-.459.441-1.191-.017-1.645l-5.775-5.69 5.671-5.795c.446-.46.44-1.198-.017-1.645z",
|
|
40
41
|
fill: "#C1C7D0"
|
|
41
|
-
})),
|
|
42
|
+
})), jsx("defs", null, jsx("linearGradient", {
|
|
42
43
|
id: "paint0_linear",
|
|
43
44
|
x1: "34.792",
|
|
44
45
|
y1: "80.822",
|
|
45
46
|
x2: "82.401",
|
|
46
47
|
y2: "33.377",
|
|
47
48
|
gradientUnits: "userSpaceOnUse"
|
|
48
|
-
},
|
|
49
|
+
}, jsx("stop", {
|
|
49
50
|
offset: ".557",
|
|
50
51
|
stopColor: "#C1C7D0"
|
|
51
|
-
}),
|
|
52
|
+
}), jsx("stop", {
|
|
52
53
|
offset: ".966",
|
|
53
54
|
stopColor: "#E9EBEF",
|
|
54
55
|
stopOpacity: ".5"
|
|
55
|
-
})),
|
|
56
|
+
})), jsx("clipPath", {
|
|
56
57
|
id: "clip0"
|
|
57
|
-
},
|
|
58
|
+
}, jsx("path", {
|
|
58
59
|
fill: "#fff",
|
|
59
60
|
d: "M0 0h120v110.365H0z"
|
|
60
61
|
})))));
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
3
|
+
/** @jsx jsx */
|
|
3
4
|
import React, { memo } from 'react';
|
|
4
|
-
import { css } from '@emotion/react';
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
5
6
|
import { injectIntl } from 'react-intl-next';
|
|
6
7
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
7
8
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
@@ -27,27 +28,27 @@ function ElementSearch(_ref) {
|
|
|
27
28
|
};
|
|
28
29
|
var onFocus = function onFocus(e) {};
|
|
29
30
|
var onBlur = function onBlur(e) {};
|
|
30
|
-
return
|
|
31
|
+
return jsx("div", {
|
|
31
32
|
css: [wrapper, mode === Modes.inline && wrapperInline]
|
|
32
|
-
},
|
|
33
|
+
}, jsx(Textfield, {
|
|
33
34
|
ref: ref,
|
|
34
35
|
onChange: onChange,
|
|
35
36
|
onClick: onClick,
|
|
36
37
|
onFocus: onFocus,
|
|
37
38
|
onKeyDown: onKeyDown,
|
|
38
39
|
onBlur: onBlur,
|
|
39
|
-
elemBeforeInput:
|
|
40
|
+
elemBeforeInput: jsx("div", {
|
|
40
41
|
css: elementBeforeInput,
|
|
41
42
|
"data-testid": "element_search__element_before_input"
|
|
42
|
-
},
|
|
43
|
+
}, jsx(SearchIcon, {
|
|
43
44
|
size: "medium",
|
|
44
45
|
label: "Advanced search",
|
|
45
46
|
primaryColor: "inherit"
|
|
46
47
|
})),
|
|
47
|
-
elemAfterInput:
|
|
48
|
+
elemAfterInput: jsx("div", {
|
|
48
49
|
css: elementAfterInput,
|
|
49
50
|
"data-testid": "element_search__element_after_input"
|
|
50
|
-
},
|
|
51
|
+
}, jsx("div", {
|
|
51
52
|
css: styledShortcut
|
|
52
53
|
}, "\u23CE ", formatMessage(elementAfterInputMessage))),
|
|
53
54
|
placeholder: formatMessage(placeHolderMessage),
|
|
@@ -2,8 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
4
4
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15;
|
|
5
|
+
/** @jsx jsx */
|
|
5
6
|
import React, { memo, useCallback, useEffect, useState } from 'react';
|
|
6
|
-
import { css } from '@emotion/react';
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
7
8
|
import { FormattedMessage } from 'react-intl-next';
|
|
8
9
|
import { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
9
10
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '../../analytics';
|
|
@@ -97,10 +98,10 @@ function StatelessElementBrowser(props) {
|
|
|
97
98
|
onSelectItem(selectedItem);
|
|
98
99
|
}
|
|
99
100
|
}, [onSelectItem, selectedItem]);
|
|
100
|
-
return
|
|
101
|
+
return jsx("div", {
|
|
101
102
|
css: wrapper,
|
|
102
103
|
"data-testid": "element-browser"
|
|
103
|
-
},
|
|
104
|
+
}, jsx(ContainerWidthMonitor, null), containerWidth < DEVICE_BREAKPOINT_NUMBERS.medium ? jsx(MobileBrowser, _extends({}, props, {
|
|
104
105
|
selectedItemIndex: selectedItemIndex,
|
|
105
106
|
focusedItemIndex: focusedItemIndex,
|
|
106
107
|
setFocusedItemIndex: setFocusedItemIndex,
|
|
@@ -111,7 +112,7 @@ function StatelessElementBrowser(props) {
|
|
|
111
112
|
onKeyDown: onKeyDown,
|
|
112
113
|
viewMoreItem: viewMoreItem,
|
|
113
114
|
focusOnViewMore: focusOnViewMore
|
|
114
|
-
})) :
|
|
115
|
+
})) : jsx(DesktopBrowser, _extends({}, props, {
|
|
115
116
|
selectedItemIndex: selectedItemIndex,
|
|
116
117
|
focusedItemIndex: focusedItemIndex,
|
|
117
118
|
setFocusedItemIndex: setFocusedItemIndex,
|
|
@@ -145,29 +146,29 @@ function MobileBrowser(_ref) {
|
|
|
145
146
|
createAnalyticsEvent = _ref.createAnalyticsEvent,
|
|
146
147
|
emptyStateHandler = _ref.emptyStateHandler,
|
|
147
148
|
viewMoreItem = _ref.viewMoreItem;
|
|
148
|
-
return
|
|
149
|
+
return jsx("div", {
|
|
149
150
|
css: mobileElementBrowserContainer,
|
|
150
151
|
onKeyDown: onKeyDown,
|
|
151
152
|
"data-testid": "mobile__element-browser"
|
|
152
|
-
},
|
|
153
|
+
}, jsx("div", {
|
|
153
154
|
css: showCategories ? [mobileSideBar, mobileSideBarShowCategories] : mobileSideBar
|
|
154
|
-
}, showSearch &&
|
|
155
|
+
}, showSearch && jsx(ElementSearch, {
|
|
155
156
|
onSearch: onSearch,
|
|
156
157
|
onKeyDown: onKeyPress,
|
|
157
158
|
mode: mode,
|
|
158
159
|
focus: focusOnSearch,
|
|
159
160
|
onClick: setFocusOnSearch,
|
|
160
161
|
searchTerm: searchTerm
|
|
161
|
-
}), showCategories &&
|
|
162
|
+
}), showCategories && jsx("nav", {
|
|
162
163
|
css: mobileCategoryListWrapper,
|
|
163
164
|
tabIndex: -1
|
|
164
|
-
},
|
|
165
|
+
}, jsx(CategoryList, {
|
|
165
166
|
categories: categories,
|
|
166
167
|
onSelectCategory: onSelectCategory,
|
|
167
168
|
selectedCategory: selectedCategory
|
|
168
|
-
}))),
|
|
169
|
+
}))), jsx("div", {
|
|
169
170
|
css: mobileMainContent
|
|
170
|
-
},
|
|
171
|
+
}, jsx(ElementList, {
|
|
171
172
|
items: items,
|
|
172
173
|
mode: mode,
|
|
173
174
|
onInsertItem: onInsertItem,
|
|
@@ -179,7 +180,7 @@ function MobileBrowser(_ref) {
|
|
|
179
180
|
emptyStateHandler: emptyStateHandler,
|
|
180
181
|
selectedCategory: selectedCategory,
|
|
181
182
|
searchTerm: searchTerm
|
|
182
|
-
})), viewMoreItem &&
|
|
183
|
+
})), viewMoreItem && jsx(ViewMore, {
|
|
183
184
|
item: viewMoreItem,
|
|
184
185
|
focus: focusOnViewMore
|
|
185
186
|
}));
|
|
@@ -205,39 +206,39 @@ function DesktopBrowser(_ref2) {
|
|
|
205
206
|
searchTerm = _ref2.searchTerm,
|
|
206
207
|
createAnalyticsEvent = _ref2.createAnalyticsEvent,
|
|
207
208
|
emptyStateHandler = _ref2.emptyStateHandler;
|
|
208
|
-
return
|
|
209
|
+
return jsx("div", {
|
|
209
210
|
css: elementBrowserContainer,
|
|
210
211
|
"data-testid": "desktop__element-browser"
|
|
211
|
-
}, showCategories &&
|
|
212
|
+
}, showCategories && jsx("div", {
|
|
212
213
|
css: showCategories ? sideBarShowCategories : sideBar
|
|
213
|
-
},
|
|
214
|
+
}, jsx("h2", {
|
|
214
215
|
css: sidebarHeading,
|
|
215
216
|
"data-testid": "sidebar-heading"
|
|
216
|
-
},
|
|
217
|
+
}, jsx(FormattedMessage, {
|
|
217
218
|
id: "fabric.editor.elementbrowser.sidebar.heading",
|
|
218
219
|
defaultMessage: "Browse",
|
|
219
220
|
description: "Sidebar heading"
|
|
220
|
-
})),
|
|
221
|
+
})), jsx("nav", {
|
|
221
222
|
css: categoryListWrapper
|
|
222
|
-
},
|
|
223
|
+
}, jsx(CategoryList, {
|
|
223
224
|
categories: categories,
|
|
224
225
|
onSelectCategory: onSelectCategory,
|
|
225
226
|
selectedCategory: selectedCategory,
|
|
226
227
|
createAnalyticsEvent: createAnalyticsEvent
|
|
227
|
-
}))),
|
|
228
|
+
}))), jsx("div", {
|
|
228
229
|
css: mainContent,
|
|
229
230
|
onKeyDown: onKeyDown,
|
|
230
231
|
"data-testid": "main-content"
|
|
231
|
-
}, showSearch &&
|
|
232
|
+
}, showSearch && jsx("div", {
|
|
232
233
|
css: searchContainer
|
|
233
|
-
},
|
|
234
|
+
}, jsx(ElementSearch, {
|
|
234
235
|
onSearch: onSearch,
|
|
235
236
|
onKeyDown: onKeyPress,
|
|
236
237
|
mode: mode,
|
|
237
238
|
focus: focusOnSearch,
|
|
238
239
|
onClick: setFocusOnSearch,
|
|
239
240
|
searchTerm: searchTerm
|
|
240
|
-
})),
|
|
241
|
+
})), jsx(ElementList, {
|
|
241
242
|
items: items,
|
|
242
243
|
mode: mode,
|
|
243
244
|
onInsertItem: onInsertItem,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
3
|
var _templateObject;
|
|
4
|
+
/** @jsx jsx */
|
|
4
5
|
import React, { memo, useEffect, useRef, useState } from 'react';
|
|
5
|
-
import { css } from '@emotion/react';
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
6
7
|
import { WidthObserver } from '@atlaskit/width-detector';
|
|
7
8
|
|
|
8
9
|
/**
|
|
@@ -45,11 +46,11 @@ export default function useContainerWidth() {
|
|
|
45
46
|
}
|
|
46
47
|
}, [ref]);
|
|
47
48
|
var ContainerWidthMonitor = /*#__PURE__*/memo(function () {
|
|
48
|
-
return
|
|
49
|
+
return jsx("div", {
|
|
49
50
|
css: widthObserverWrapper,
|
|
50
51
|
ref: ref,
|
|
51
52
|
tabIndex: -1
|
|
52
|
-
},
|
|
53
|
+
}, jsx(WidthObserver, {
|
|
53
54
|
setWidth: setContainerWidth
|
|
54
55
|
}));
|
|
55
56
|
});
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
2
2
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
3
|
var _templateObject;
|
|
4
|
+
/** @jsx jsx */
|
|
4
5
|
import React, { Fragment } from 'react';
|
|
5
|
-
import { css } from '@emotion/react';
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
6
7
|
import { base, keyName } from 'w3c-keyname';
|
|
7
8
|
import { N400 } from '@atlaskit/theme/colors';
|
|
8
9
|
import { editorCommandToPMCommand } from '../preset/editor-commands';
|
|
@@ -112,7 +113,7 @@ export var ToolTipContent = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
112
113
|
shortcutOverride = _ref.shortcutOverride,
|
|
113
114
|
keymap = _ref.keymap;
|
|
114
115
|
var shortcut = shortcutOverride || keymap && formatShortcut(keymap);
|
|
115
|
-
return shortcut || description ?
|
|
116
|
+
return shortcut || description ? jsx(Fragment, null, description, shortcut && description && "\xA0", shortcut && jsx("span", {
|
|
116
117
|
css: tooltipShortcutStyle
|
|
117
118
|
}, shortcut)) : null;
|
|
118
119
|
});
|
|
@@ -13,8 +13,10 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
13
13
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
14
14
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
15
15
|
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; } }
|
|
16
|
+
/** @jsx jsx */
|
|
17
|
+
|
|
16
18
|
import React, { PureComponent } from 'react';
|
|
17
|
-
import { css } from '@emotion/react';
|
|
19
|
+
import { css, jsx } from '@emotion/react';
|
|
18
20
|
import debounce from 'lodash/debounce';
|
|
19
21
|
import { flushSync } from 'react-dom';
|
|
20
22
|
import { defineMessages, injectIntl } from 'react-intl-next';
|
|
@@ -82,7 +84,7 @@ export var messages = defineMessages({
|
|
|
82
84
|
description: 'Visible label for text input in hyperlink floating control'
|
|
83
85
|
}
|
|
84
86
|
});
|
|
85
|
-
var defaultIcon =
|
|
87
|
+
var defaultIcon = jsx(Page16Icon, {
|
|
86
88
|
label: 'page'
|
|
87
89
|
});
|
|
88
90
|
var mapActivityProviderResultToLinkSearchItemData = function mapActivityProviderResultToLinkSearchItemData(_ref) {
|
|
@@ -813,27 +815,27 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
813
815
|
// as the Aria design pattern for combobox does not work in this case
|
|
814
816
|
// for details: https://a11y-internal.atlassian.net/browse/AK-740
|
|
815
817
|
var screenReaderText = browser.safari && this.getScreenReaderText();
|
|
816
|
-
return
|
|
818
|
+
return jsx("div", {
|
|
817
819
|
"aria-label": "Hyperlink Edit",
|
|
818
820
|
className: "recent-list"
|
|
819
|
-
},
|
|
821
|
+
}, jsx("div", {
|
|
820
822
|
css: [container, !!activityProvider && containerWithProvider, containerPadding],
|
|
821
823
|
ref: this.wrapperRef
|
|
822
|
-
},
|
|
824
|
+
}, jsx("label", {
|
|
823
825
|
htmlFor: linkSearchInputId,
|
|
824
826
|
css: inputLabel
|
|
825
|
-
}, formatMessage(messages.linkVisibleLabel)),
|
|
827
|
+
}, formatMessage(messages.linkVisibleLabel)), jsx("div", {
|
|
826
828
|
css: [inputWrapper, inputWrapperPosition]
|
|
827
|
-
}, screenReaderText &&
|
|
829
|
+
}, screenReaderText && jsx(Announcer, {
|
|
828
830
|
ariaLive: "assertive",
|
|
829
831
|
text: screenReaderText,
|
|
830
832
|
ariaRelevant: "additions",
|
|
831
833
|
delay: 250
|
|
832
|
-
}),
|
|
834
|
+
}), jsx("div", {
|
|
833
835
|
css: visuallyHiddenStyles,
|
|
834
836
|
"aria-hidden": "true",
|
|
835
837
|
id: screenReaderDescriptionId
|
|
836
|
-
}, formatMessage(messages.searchLinkAriaDescription)),
|
|
838
|
+
}, formatMessage(messages.searchLinkAriaDescription)), jsx(PanelTextInput, {
|
|
837
839
|
role: "combobox",
|
|
838
840
|
ariaExpanded: true,
|
|
839
841
|
ariaActiveDescendant: ariaActiveDescendant,
|
|
@@ -853,23 +855,23 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
853
855
|
defaultValue: displayUrl,
|
|
854
856
|
onKeyDown: this.handleKeyDown,
|
|
855
857
|
inputId: linkSearchInputId
|
|
856
|
-
}), displayUrl &&
|
|
858
|
+
}), displayUrl && jsx("div", {
|
|
857
859
|
css: clearTextWrapper
|
|
858
|
-
},
|
|
860
|
+
}, jsx(Tooltip, {
|
|
859
861
|
content: formatClearLinkText
|
|
860
|
-
},
|
|
862
|
+
}, jsx("button", {
|
|
861
863
|
type: "button",
|
|
862
864
|
css: clearText,
|
|
863
865
|
onClick: this.handleClearText,
|
|
864
866
|
tabIndex: 0
|
|
865
|
-
},
|
|
867
|
+
}, jsx(CrossCircleIcon, {
|
|
866
868
|
label: formatClearLinkText
|
|
867
|
-
}))))),
|
|
869
|
+
}))))), jsx("label", {
|
|
868
870
|
htmlFor: displayTextInputId,
|
|
869
871
|
css: [inputLabel, textLabelMargin]
|
|
870
|
-
}, formatMessage(messages.textVisibleLabel)),
|
|
872
|
+
}, formatMessage(messages.textVisibleLabel)), jsx("div", {
|
|
871
873
|
css: [inputWrapper, inputWrapperPosition]
|
|
872
|
-
},
|
|
874
|
+
}, jsx(PanelTextInput, {
|
|
873
875
|
ref: function ref(ele) {
|
|
874
876
|
return _this3.displayTextInputContainer = ele;
|
|
875
877
|
},
|
|
@@ -880,25 +882,25 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
880
882
|
onSubmit: this.handleSubmit,
|
|
881
883
|
onKeyDown: this.handleKeyDown,
|
|
882
884
|
inputId: displayTextInputId
|
|
883
|
-
}), displayText &&
|
|
885
|
+
}), displayText && jsx("div", {
|
|
884
886
|
css: clearTextWrapper
|
|
885
|
-
},
|
|
887
|
+
}, jsx(Tooltip, {
|
|
886
888
|
content: formatMessage(messages.clearText)
|
|
887
|
-
},
|
|
889
|
+
}, jsx("button", {
|
|
888
890
|
type: "button",
|
|
889
891
|
css: clearText,
|
|
890
892
|
onClick: this.handleClearDisplayText,
|
|
891
893
|
onKeyDown: this.handleClearTextKeyDown
|
|
892
|
-
},
|
|
894
|
+
}, jsx(CrossCircleIcon, {
|
|
893
895
|
label: formatMessage(messages.clearText)
|
|
894
|
-
}))))),
|
|
896
|
+
}))))), jsx("div", {
|
|
895
897
|
css: visuallyHiddenStyles,
|
|
896
898
|
"aria-live": "polite",
|
|
897
899
|
"aria-atomic": "true",
|
|
898
900
|
id: "fabric.editor.hyperlink.suggested.results"
|
|
899
901
|
}, displayUrl && formatMessage(messages.searchLinkResults, {
|
|
900
902
|
count: items.length
|
|
901
|
-
})),
|
|
903
|
+
})), jsx(LinkSearchList, {
|
|
902
904
|
ariaControls: "fabric.editor.hyperlink.suggested.results",
|
|
903
905
|
id: linkSearchListId,
|
|
904
906
|
role: "listbox",
|
|
@@ -7,8 +7,9 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
7
7
|
var _templateObject, _templateObject2, _templateObject3;
|
|
8
8
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9
9
|
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; } }
|
|
10
|
+
/** @jsx jsx */
|
|
10
11
|
import { PureComponent } from 'react';
|
|
11
|
-
import { css } from '@emotion/react';
|
|
12
|
+
import { css, jsx } from '@emotion/react';
|
|
12
13
|
import Spinner from '@atlaskit/spinner';
|
|
13
14
|
import { N30 } from '@atlaskit/theme/colors';
|
|
14
15
|
import LinkSearchListItem from './LinkSearchListItem';
|
|
@@ -39,13 +40,13 @@ var LinkSearchList = /*#__PURE__*/function (_PureComponent) {
|
|
|
39
40
|
var itemsContent;
|
|
40
41
|
var loadingContent;
|
|
41
42
|
if (items && items.length > 0) {
|
|
42
|
-
itemsContent =
|
|
43
|
+
itemsContent = jsx("ul", {
|
|
43
44
|
css: linkSearchList,
|
|
44
45
|
id: id,
|
|
45
46
|
role: role,
|
|
46
47
|
"aria-controls": ariaControls
|
|
47
48
|
}, items.map(function (item, index) {
|
|
48
|
-
return
|
|
49
|
+
return jsx(LinkSearchListItem, {
|
|
49
50
|
id: "link-search-list-item-".concat(index),
|
|
50
51
|
role: role && 'option',
|
|
51
52
|
item: item,
|
|
@@ -59,14 +60,14 @@ var LinkSearchList = /*#__PURE__*/function (_PureComponent) {
|
|
|
59
60
|
}));
|
|
60
61
|
}
|
|
61
62
|
if (isLoading) {
|
|
62
|
-
loadingContent =
|
|
63
|
+
loadingContent = jsx("div", {
|
|
63
64
|
"data-testid": "".concat(id, "-loading"),
|
|
64
65
|
css: spinnerContainer
|
|
65
|
-
},
|
|
66
|
+
}, jsx(Spinner, {
|
|
66
67
|
size: "medium"
|
|
67
68
|
}));
|
|
68
69
|
}
|
|
69
|
-
return
|
|
70
|
+
return jsx("div", {
|
|
70
71
|
css: listContainer
|
|
71
72
|
}, itemsContent, loadingContent);
|
|
72
73
|
}
|
|
@@ -9,8 +9,9 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
9
9
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
10
10
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
11
|
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; } }
|
|
12
|
+
/** @jsx jsx */
|
|
12
13
|
import React, { Fragment } from 'react';
|
|
13
|
-
import { css } from '@emotion/react';
|
|
14
|
+
import { css, jsx } from '@emotion/react';
|
|
14
15
|
// AFP-2532 TODO: Fix automatic suppressions below
|
|
15
16
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
16
17
|
import { injectIntl } from 'react-intl-next';
|
|
@@ -71,14 +72,14 @@ var LinkSearchListItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
71
72
|
iconUrl = _this$props5$item.iconUrl,
|
|
72
73
|
intl = _this$props5.intl;
|
|
73
74
|
if (icon) {
|
|
74
|
-
return
|
|
75
|
+
return jsx("span", {
|
|
75
76
|
css: iconStyle
|
|
76
77
|
}, icon);
|
|
77
78
|
}
|
|
78
79
|
if (iconUrl) {
|
|
79
|
-
return
|
|
80
|
+
return jsx("span", {
|
|
80
81
|
css: iconStyle
|
|
81
|
-
},
|
|
82
|
+
}, jsx("img", {
|
|
82
83
|
src: iconUrl,
|
|
83
84
|
alt: getCorrectAltByIconUrl(iconUrl, intl)
|
|
84
85
|
}));
|
|
@@ -92,7 +93,7 @@ var LinkSearchListItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
92
93
|
item = _this$props6.item,
|
|
93
94
|
intl = _this$props6.intl;
|
|
94
95
|
var date = transformTimeStamp(intl, item.lastViewedDate, item.lastUpdatedDate);
|
|
95
|
-
return date &&
|
|
96
|
+
return date && jsx(Fragment, null, "\xA0 \u2022", jsx("span", {
|
|
96
97
|
className: "link-search-timestamp",
|
|
97
98
|
"data-test-id": "link-search-timestamp"
|
|
98
99
|
}, "\xA0 ", date.pageAction, " ", date.dateString, " ", date.timeSince || ''));
|
|
@@ -105,7 +106,7 @@ var LinkSearchListItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
105
106
|
selected = _this$props7.selected,
|
|
106
107
|
id = _this$props7.id,
|
|
107
108
|
role = _this$props7.role;
|
|
108
|
-
return
|
|
109
|
+
return jsx("li", {
|
|
109
110
|
css: [container, selected && containerSelected],
|
|
110
111
|
role: role,
|
|
111
112
|
id: id,
|
|
@@ -115,11 +116,11 @@ var LinkSearchListItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
115
116
|
onMouseEnter: this.handleMouseEnter,
|
|
116
117
|
onMouseLeave: this.handleMouseLeave,
|
|
117
118
|
onClick: this.handleSelect
|
|
118
|
-
}, this.renderIcon(),
|
|
119
|
+
}, this.renderIcon(), jsx("span", {
|
|
119
120
|
css: nameWrapper
|
|
120
|
-
},
|
|
121
|
+
}, jsx("div", {
|
|
121
122
|
css: nameStyle
|
|
122
|
-
}, item.name),
|
|
123
|
+
}, item.name), jsx("div", {
|
|
123
124
|
"data-testid": "link-search-list-item-container",
|
|
124
125
|
css: containerName
|
|
125
126
|
}, item.container, this.renderTimeStamp())));
|
|
@@ -1,10 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
4
|
+
import { B300 } from '@atlaskit/theme/colors';
|
|
2
5
|
var wrapperStyle = css({
|
|
3
|
-
display: 'inline-block'
|
|
6
|
+
display: 'inline-block',
|
|
7
|
+
verticalAlign: 'text-bottom',
|
|
8
|
+
borderRadius: "var(--ds-border-radius, 3px)"
|
|
9
|
+
});
|
|
10
|
+
var selectedStyle = css({
|
|
11
|
+
cursor: 'pointer',
|
|
12
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, ".concat(B300, ")")),
|
|
13
|
+
outline: 'none',
|
|
14
|
+
borderColor: 'transparent'
|
|
4
15
|
});
|
|
5
16
|
export var InlineImageWrapper = function InlineImageWrapper(_ref) {
|
|
6
|
-
var children = _ref.children
|
|
7
|
-
|
|
8
|
-
|
|
17
|
+
var children = _ref.children,
|
|
18
|
+
isSelected = _ref.isSelected;
|
|
19
|
+
return jsx("span", {
|
|
20
|
+
css: [wrapperStyle, isSelected && selectedStyle]
|
|
9
21
|
}, children);
|
|
10
22
|
};
|