@atlaskit/link-picker 1.48.3 → 1.49.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 +8 -0
- package/dist/cjs/common/generic-error-svg/index.compiled.css +2 -0
- package/dist/cjs/common/generic-error-svg/index.js +34 -25
- package/dist/cjs/common/generic-error-svg/old/index.js +66 -0
- package/dist/cjs/common/ui/empty-state/index.compiled.css +3 -0
- package/dist/cjs/common/ui/empty-state/index.js +26 -14
- package/dist/cjs/common/ui/empty-state/old/index.js +38 -0
- package/dist/cjs/common/ui/min-height-container/index.compiled.css +4 -0
- package/dist/cjs/common/ui/min-height-container/index.js +24 -14
- package/dist/cjs/common/ui/min-height-container/old/index.js +34 -0
- package/dist/cjs/ui/error-boundary/error-boundary-fallback/index.compiled.css +1 -0
- package/dist/cjs/ui/error-boundary/error-boundary-fallback/index.js +23 -18
- package/dist/cjs/ui/error-boundary/error-boundary-fallback/old/index.js +50 -0
- package/dist/cjs/ui/link-picker/form-footer/index.compiled.css +3 -0
- package/dist/cjs/ui/link-picker/form-footer/index.js +30 -35
- package/dist/cjs/ui/link-picker/form-footer/link-picker-submit-button/index.js +2 -8
- package/dist/cjs/ui/link-picker/form-footer/old/index.js +116 -0
- package/dist/cjs/ui/link-picker/index.compiled.css +10 -0
- package/dist/cjs/ui/link-picker/index.js +43 -59
- package/dist/cjs/ui/link-picker/old/index.js +435 -0
- package/dist/cjs/ui/link-picker/search-results/index.compiled.css +7 -0
- package/dist/cjs/ui/link-picker/search-results/index.js +33 -32
- package/dist/cjs/ui/link-picker/search-results/link-search-error/index.js +5 -11
- package/dist/cjs/ui/link-picker/search-results/link-search-list/index.compiled.css +23 -0
- package/dist/cjs/ui/link-picker/search-results/link-search-list/index.js +53 -43
- package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.compiled.css +2 -0
- package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.js +36 -28
- package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/old/index.js +70 -0
- package/dist/cjs/ui/link-picker/search-results/link-search-list/list-item/index.compiled.css +34 -0
- package/dist/cjs/ui/link-picker/search-results/link-search-list/list-item/index.js +99 -76
- package/dist/cjs/ui/link-picker/search-results/link-search-list/list-item/old/index.js +145 -0
- package/dist/cjs/ui/link-picker/search-results/link-search-list/old/index.js +188 -0
- package/dist/cjs/ui/link-picker/search-results/old/index.js +105 -0
- package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/index.compiled.css +29 -0
- package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/index.js +54 -42
- package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/old/index.js +163 -0
- package/dist/cjs/ui/link-picker/search-results/search-results-container/index.compiled.css +4 -0
- package/dist/cjs/ui/link-picker/search-results/search-results-container/index.js +21 -19
- package/dist/cjs/ui/link-picker/search-results/search-results-container/old/index.js +43 -0
- package/dist/cjs/ui/link-picker/text-input/index.compiled.css +10 -0
- package/dist/cjs/ui/link-picker/text-input/index.js +35 -39
- package/dist/cjs/ui/link-picker/text-input/old/index.js +125 -0
- package/dist/cjs/ui/loader-fallback/index.compiled.css +1 -0
- package/dist/cjs/ui/loader-fallback/index.js +21 -15
- package/dist/cjs/ui/loader-fallback/old/index.js +67 -0
- package/dist/cjs/ui/main.compiled.css +1 -0
- package/dist/cjs/ui/main.js +25 -24
- package/dist/cjs/ui/old/main.js +75 -0
- package/dist/es2019/common/generic-error-svg/index.compiled.css +2 -0
- package/dist/es2019/common/generic-error-svg/index.js +27 -23
- package/dist/es2019/common/generic-error-svg/old/index.js +58 -0
- package/dist/es2019/common/ui/empty-state/index.compiled.css +3 -0
- package/dist/es2019/common/ui/empty-state/index.js +18 -9
- package/dist/es2019/common/ui/empty-state/old/index.js +32 -0
- package/dist/es2019/common/ui/min-height-container/index.compiled.css +4 -0
- package/dist/es2019/common/ui/min-height-container/index.js +21 -12
- package/dist/es2019/common/ui/min-height-container/old/index.js +25 -0
- package/dist/es2019/ui/error-boundary/error-boundary-fallback/index.compiled.css +1 -0
- package/dist/es2019/ui/error-boundary/error-boundary-fallback/index.js +19 -16
- package/dist/es2019/ui/error-boundary/error-boundary-fallback/old/index.js +41 -0
- package/dist/es2019/ui/link-picker/form-footer/index.compiled.css +3 -0
- package/dist/es2019/ui/link-picker/form-footer/index.js +27 -32
- package/dist/es2019/ui/link-picker/form-footer/link-picker-submit-button/index.js +2 -7
- package/dist/es2019/ui/link-picker/form-footer/old/index.js +104 -0
- package/dist/es2019/ui/link-picker/index.compiled.css +10 -0
- package/dist/es2019/ui/link-picker/index.js +36 -58
- package/dist/es2019/ui/link-picker/old/index.js +436 -0
- package/dist/es2019/ui/link-picker/search-results/index.compiled.css +7 -0
- package/dist/es2019/ui/link-picker/search-results/index.js +29 -31
- package/dist/es2019/ui/link-picker/search-results/link-search-error/index.js +5 -10
- package/dist/es2019/ui/link-picker/search-results/link-search-list/index.compiled.css +23 -0
- package/dist/es2019/ui/link-picker/search-results/link-search-list/index.js +46 -42
- package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.compiled.css +2 -0
- package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.js +29 -26
- package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/old/index.js +63 -0
- package/dist/es2019/ui/link-picker/search-results/link-search-list/list-item/index.compiled.css +34 -0
- package/dist/es2019/ui/link-picker/search-results/link-search-list/list-item/index.js +77 -72
- package/dist/es2019/ui/link-picker/search-results/link-search-list/list-item/old/index.js +132 -0
- package/dist/es2019/ui/link-picker/search-results/link-search-list/old/index.js +178 -0
- package/dist/es2019/ui/link-picker/search-results/old/index.js +98 -0
- package/dist/es2019/ui/link-picker/search-results/scrolling-tabs/index.compiled.css +29 -0
- package/dist/es2019/ui/link-picker/search-results/scrolling-tabs/index.js +39 -39
- package/dist/es2019/ui/link-picker/search-results/scrolling-tabs/old/index.js +130 -0
- package/dist/es2019/ui/link-picker/search-results/search-results-container/index.compiled.css +4 -0
- package/dist/es2019/ui/link-picker/search-results/search-results-container/index.js +16 -16
- package/dist/es2019/ui/link-picker/search-results/search-results-container/old/index.js +37 -0
- package/dist/es2019/ui/link-picker/text-input/index.compiled.css +10 -0
- package/dist/es2019/ui/link-picker/text-input/index.js +29 -38
- package/dist/es2019/ui/link-picker/text-input/old/index.js +121 -0
- package/dist/es2019/ui/loader-fallback/index.compiled.css +1 -0
- package/dist/es2019/ui/loader-fallback/index.js +17 -13
- package/dist/es2019/ui/loader-fallback/old/index.js +60 -0
- package/dist/es2019/ui/main.compiled.css +1 -0
- package/dist/es2019/ui/main.js +24 -22
- package/dist/es2019/ui/old/main.js +73 -0
- package/dist/esm/common/generic-error-svg/index.compiled.css +2 -0
- package/dist/esm/common/generic-error-svg/index.js +30 -23
- package/dist/esm/common/generic-error-svg/old/index.js +58 -0
- package/dist/esm/common/ui/empty-state/index.compiled.css +3 -0
- package/dist/esm/common/ui/empty-state/index.js +18 -9
- package/dist/esm/common/ui/empty-state/old/index.js +31 -0
- package/dist/esm/common/ui/min-height-container/index.compiled.css +4 -0
- package/dist/esm/common/ui/min-height-container/index.js +23 -14
- package/dist/esm/common/ui/min-height-container/old/index.js +25 -0
- package/dist/esm/ui/error-boundary/error-boundary-fallback/index.compiled.css +1 -0
- package/dist/esm/ui/error-boundary/error-boundary-fallback/index.js +19 -16
- package/dist/esm/ui/error-boundary/error-boundary-fallback/old/index.js +43 -0
- package/dist/esm/ui/link-picker/form-footer/index.compiled.css +3 -0
- package/dist/esm/ui/link-picker/form-footer/index.js +28 -34
- package/dist/esm/ui/link-picker/form-footer/link-picker-submit-button/index.js +2 -7
- package/dist/esm/ui/link-picker/form-footer/old/index.js +108 -0
- package/dist/esm/ui/link-picker/index.compiled.css +10 -0
- package/dist/esm/ui/link-picker/index.js +37 -59
- package/dist/esm/ui/link-picker/old/index.js +432 -0
- package/dist/esm/ui/link-picker/search-results/index.compiled.css +7 -0
- package/dist/esm/ui/link-picker/search-results/index.js +30 -32
- package/dist/esm/ui/link-picker/search-results/link-search-error/index.js +5 -10
- package/dist/esm/ui/link-picker/search-results/link-search-list/index.compiled.css +23 -0
- package/dist/esm/ui/link-picker/search-results/link-search-list/index.js +47 -43
- package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.compiled.css +2 -0
- package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.js +32 -26
- package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/old/index.js +63 -0
- package/dist/esm/ui/link-picker/search-results/link-search-list/list-item/index.compiled.css +34 -0
- package/dist/esm/ui/link-picker/search-results/link-search-list/list-item/index.js +94 -72
- package/dist/esm/ui/link-picker/search-results/link-search-list/list-item/old/index.js +136 -0
- package/dist/esm/ui/link-picker/search-results/link-search-list/old/index.js +186 -0
- package/dist/esm/ui/link-picker/search-results/old/index.js +100 -0
- package/dist/esm/ui/link-picker/search-results/scrolling-tabs/index.compiled.css +29 -0
- package/dist/esm/ui/link-picker/search-results/scrolling-tabs/index.js +52 -43
- package/dist/esm/ui/link-picker/search-results/scrolling-tabs/old/index.js +158 -0
- package/dist/esm/ui/link-picker/search-results/search-results-container/index.compiled.css +4 -0
- package/dist/esm/ui/link-picker/search-results/search-results-container/index.js +16 -16
- package/dist/esm/ui/link-picker/search-results/search-results-container/old/index.js +36 -0
- package/dist/esm/ui/link-picker/text-input/index.compiled.css +10 -0
- package/dist/esm/ui/link-picker/text-input/index.js +29 -38
- package/dist/esm/ui/link-picker/text-input/old/index.js +121 -0
- package/dist/esm/ui/loader-fallback/index.compiled.css +1 -0
- package/dist/esm/ui/loader-fallback/index.js +17 -13
- package/dist/esm/ui/loader-fallback/old/index.js +59 -0
- package/dist/esm/ui/main.compiled.css +1 -0
- package/dist/esm/ui/main.js +24 -22
- package/dist/esm/ui/old/main.js +64 -0
- package/dist/types/common/generic-error-svg/index.d.ts +3 -6
- package/dist/types/common/generic-error-svg/old/index.d.ts +6 -0
- package/dist/types/common/types.d.ts +0 -1
- package/dist/types/common/ui/empty-state/index.d.ts +3 -2
- package/dist/types/common/ui/empty-state/old/index.d.ts +9 -0
- package/dist/types/common/ui/min-height-container/index.d.ts +3 -0
- package/dist/types/common/ui/min-height-container/old/index.d.ts +8 -0
- package/dist/types/ui/error-boundary/error-boundary-fallback/index.d.ts +3 -6
- package/dist/types/ui/error-boundary/error-boundary-fallback/old/index.d.ts +6 -0
- package/dist/types/ui/link-picker/form-footer/index.d.ts +2 -5
- package/dist/types/ui/link-picker/form-footer/link-picker-submit-button/index.d.ts +2 -6
- package/dist/types/ui/link-picker/form-footer/old/index.d.ts +42 -0
- package/dist/types/ui/link-picker/index.d.ts +2 -2
- package/dist/types/ui/link-picker/old/index.d.ts +25 -0
- package/dist/types/ui/link-picker/search-results/index.d.ts +2 -2
- package/dist/types/ui/link-picker/search-results/link-search-error/index.d.ts +2 -6
- package/dist/types/ui/link-picker/search-results/link-search-list/index.d.ts +1 -0
- package/dist/types/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.d.ts +3 -6
- package/dist/types/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/old/index.d.ts +6 -0
- package/dist/types/ui/link-picker/search-results/link-search-list/list-item/index.d.ts +3 -2
- package/dist/types/ui/link-picker/search-results/link-search-list/list-item/old/index.d.ts +23 -0
- package/dist/types/ui/link-picker/search-results/link-search-list/old/index.d.ts +52 -0
- package/dist/types/ui/link-picker/search-results/old/index.d.ts +45 -0
- package/dist/types/ui/link-picker/search-results/scrolling-tabs/index.d.ts +4 -4
- package/dist/types/ui/link-picker/search-results/scrolling-tabs/old/index.d.ts +7 -0
- package/dist/types/ui/link-picker/search-results/search-results-container/index.d.ts +2 -2
- package/dist/types/ui/link-picker/search-results/search-results-container/old/index.d.ts +10 -0
- package/dist/types/ui/link-picker/text-input/index.d.ts +3 -2
- package/dist/types/ui/link-picker/text-input/old/index.d.ts +18 -0
- package/dist/types/ui/loader-fallback/index.d.ts +3 -6
- package/dist/types/ui/loader-fallback/old/index.d.ts +17 -0
- package/dist/types/ui/main.d.ts +2 -2
- package/dist/types/ui/old/main.d.ts +13 -0
- package/dist/types-ts4.5/common/generic-error-svg/index.d.ts +3 -6
- package/dist/types-ts4.5/common/generic-error-svg/old/index.d.ts +6 -0
- package/dist/types-ts4.5/common/types.d.ts +0 -1
- package/dist/types-ts4.5/common/ui/empty-state/index.d.ts +3 -2
- package/dist/types-ts4.5/common/ui/empty-state/old/index.d.ts +9 -0
- package/dist/types-ts4.5/common/ui/min-height-container/index.d.ts +3 -0
- package/dist/types-ts4.5/common/ui/min-height-container/old/index.d.ts +8 -0
- package/dist/types-ts4.5/ui/error-boundary/error-boundary-fallback/index.d.ts +3 -6
- package/dist/types-ts4.5/ui/error-boundary/error-boundary-fallback/old/index.d.ts +6 -0
- package/dist/types-ts4.5/ui/link-picker/form-footer/index.d.ts +2 -5
- package/dist/types-ts4.5/ui/link-picker/form-footer/link-picker-submit-button/index.d.ts +2 -6
- package/dist/types-ts4.5/ui/link-picker/form-footer/old/index.d.ts +42 -0
- package/dist/types-ts4.5/ui/link-picker/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/link-picker/old/index.d.ts +25 -0
- package/dist/types-ts4.5/ui/link-picker/search-results/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-error/index.d.ts +2 -6
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.d.ts +3 -6
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/old/index.d.ts +6 -0
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/list-item/index.d.ts +3 -2
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/list-item/old/index.d.ts +23 -0
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/old/index.d.ts +52 -0
- package/dist/types-ts4.5/ui/link-picker/search-results/old/index.d.ts +45 -0
- package/dist/types-ts4.5/ui/link-picker/search-results/scrolling-tabs/index.d.ts +4 -4
- package/dist/types-ts4.5/ui/link-picker/search-results/scrolling-tabs/old/index.d.ts +7 -0
- package/dist/types-ts4.5/ui/link-picker/search-results/search-results-container/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/link-picker/search-results/search-results-container/old/index.d.ts +10 -0
- package/dist/types-ts4.5/ui/link-picker/text-input/index.d.ts +3 -2
- package/dist/types-ts4.5/ui/link-picker/text-input/old/index.d.ts +18 -0
- package/dist/types-ts4.5/ui/loader-fallback/index.d.ts +3 -6
- package/dist/types-ts4.5/ui/loader-fallback/old/index.d.ts +17 -0
- package/dist/types-ts4.5/ui/main.d.ts +2 -2
- package/dist/types-ts4.5/ui/old/main.d.ts +13 -0
- package/lazy/package.json +3 -1
- package/package.json +11 -4
- package/dist/cjs/ui/link-picker/form-footer/feature-discovery/index.js +0 -69
- package/dist/cjs/ui/link-picker/form-footer/feature-discovery/styled.js +0 -25
- package/dist/es2019/ui/link-picker/form-footer/feature-discovery/index.js +0 -61
- package/dist/es2019/ui/link-picker/form-footer/feature-discovery/styled.js +0 -18
- package/dist/esm/ui/link-picker/form-footer/feature-discovery/index.js +0 -62
- package/dist/esm/ui/link-picker/form-footer/feature-discovery/styled.js +0 -18
- package/dist/types/ui/link-picker/form-footer/feature-discovery/index.d.ts +0 -15
- package/dist/types/ui/link-picker/form-footer/feature-discovery/styled.d.ts +0 -1
- package/dist/types-ts4.5/ui/link-picker/form-footer/feature-discovery/index.d.ts +0 -15
- package/dist/types-ts4.5/ui/link-picker/form-footer/feature-discovery/styled.d.ts +0 -1
- /package/dist/cjs/common/ui/min-height-container/{styled.js → old/styled.js} +0 -0
- /package/dist/cjs/ui/link-picker/search-results/link-search-list/list-item/{styled.js → old/styled.js} +0 -0
- /package/dist/cjs/ui/link-picker/search-results/link-search-list/{styled.js → old/styled.js} +0 -0
- /package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/{styles.js → old/styles.js} +0 -0
- /package/dist/es2019/common/ui/min-height-container/{styled.js → old/styled.js} +0 -0
- /package/dist/es2019/ui/link-picker/search-results/link-search-list/list-item/{styled.js → old/styled.js} +0 -0
- /package/dist/es2019/ui/link-picker/search-results/link-search-list/{styled.js → old/styled.js} +0 -0
- /package/dist/es2019/ui/link-picker/search-results/scrolling-tabs/{styles.js → old/styles.js} +0 -0
- /package/dist/esm/common/ui/min-height-container/{styled.js → old/styled.js} +0 -0
- /package/dist/esm/ui/link-picker/search-results/link-search-list/list-item/{styled.js → old/styled.js} +0 -0
- /package/dist/esm/ui/link-picker/search-results/link-search-list/{styled.js → old/styled.js} +0 -0
- /package/dist/esm/ui/link-picker/search-results/scrolling-tabs/{styles.js → old/styles.js} +0 -0
- /package/dist/types/common/ui/min-height-container/{styled.d.ts → old/styled.d.ts} +0 -0
- /package/dist/types/ui/link-picker/search-results/link-search-list/list-item/{styled.d.ts → old/styled.d.ts} +0 -0
- /package/dist/types/ui/link-picker/search-results/link-search-list/{styled.d.ts → old/styled.d.ts} +0 -0
- /package/dist/types/ui/link-picker/search-results/scrolling-tabs/{styles.d.ts → old/styles.d.ts} +0 -0
- /package/dist/types-ts4.5/common/ui/min-height-container/{styled.d.ts → old/styled.d.ts} +0 -0
- /package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/list-item/{styled.d.ts → old/styled.d.ts} +0 -0
- /package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/{styled.d.ts → old/styled.d.ts} +0 -0
- /package/dist/types-ts4.5/ui/link-picker/search-results/scrolling-tabs/{styles.d.ts → old/styles.d.ts} +0 -0
package/dist/esm/ui/main.js
CHANGED
|
@@ -1,62 +1,64 @@
|
|
|
1
|
+
/* main.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
1
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
3
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* @jsx jsx
|
|
6
|
-
*/
|
|
4
|
+
import "./main.compiled.css";
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
7
6
|
import React, { memo } from 'react';
|
|
8
|
-
|
|
9
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
|
-
import { css, jsx } from '@emotion/react';
|
|
11
7
|
import { LazySuspense } from 'react-loosely-lazy';
|
|
12
8
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
10
|
import { COMPONENT_NAME, LINK_PICKER_WIDTH_IN_PX } from '../common/constants';
|
|
14
11
|
import { LinkPickerSessionProvider } from '../controllers/session-provider';
|
|
15
12
|
import { ErrorBoundary } from './error-boundary';
|
|
16
13
|
import { LoaderFallback } from './loader-fallback';
|
|
17
14
|
import { MessagesProvider } from './messages-provider';
|
|
15
|
+
import { composeLinkPickerOld } from './old/main';
|
|
18
16
|
export var testIds = {
|
|
19
17
|
linkPickerRoot: 'link-picker-root'
|
|
20
18
|
};
|
|
21
19
|
export var PACKAGE_DATA = {
|
|
22
20
|
packageName: "@atlaskit/link-picker" || '',
|
|
23
|
-
packageVersion: "1.
|
|
21
|
+
packageVersion: "1.49.0" || '',
|
|
24
22
|
componentName: COMPONENT_NAME,
|
|
25
23
|
source: COMPONENT_NAME
|
|
26
24
|
};
|
|
27
25
|
var DefaultRootComponent = function DefaultRootComponent(_ref) {
|
|
28
26
|
var children = _ref.children;
|
|
29
|
-
return
|
|
27
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
30
28
|
"data-testid": testIds.linkPickerRoot
|
|
31
29
|
}, children);
|
|
32
30
|
};
|
|
33
|
-
var fixedWidthContainerStyles =
|
|
34
|
-
width: 'var(--link-picker-width)'
|
|
35
|
-
});
|
|
31
|
+
var fixedWidthContainerStyles = null;
|
|
36
32
|
var FixedWidthContainer = function FixedWidthContainer(props) {
|
|
37
|
-
return
|
|
38
|
-
|
|
39
|
-
}
|
|
33
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
34
|
+
className: ax(["_1bsb1ubl"])
|
|
35
|
+
}));
|
|
40
36
|
};
|
|
41
|
-
export var
|
|
37
|
+
export var composeLinkPickerNew = function composeLinkPickerNew(Component) {
|
|
42
38
|
return /*#__PURE__*/memo(function (props) {
|
|
43
39
|
var _props$paddingLeft, _props$paddingRight, _props$paddingTop, _props$paddingBottom;
|
|
44
40
|
var component = props.component;
|
|
45
41
|
var RootComponent = component !== null && component !== void 0 ? component : DefaultRootComponent;
|
|
46
|
-
return
|
|
42
|
+
return /*#__PURE__*/React.createElement(AnalyticsContext, {
|
|
47
43
|
data: PACKAGE_DATA
|
|
48
|
-
},
|
|
44
|
+
}, /*#__PURE__*/React.createElement(LinkPickerSessionProvider, null, /*#__PURE__*/React.createElement(MessagesProvider, null, /*#__PURE__*/React.createElement("div", {
|
|
49
45
|
style: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, '--link-picker-width', props.disableWidth ? '100%' : // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
50
46
|
"".concat(LINK_PICKER_WIDTH_IN_PX, "px")), '--link-picker-padding-left', (_props$paddingLeft = props.paddingLeft) !== null && _props$paddingLeft !== void 0 ? _props$paddingLeft : "var(--ds-space-200, 16px)"), '--link-picker-padding-right', (_props$paddingRight = props.paddingRight) !== null && _props$paddingRight !== void 0 ? _props$paddingRight : "var(--ds-space-200, 16px)"), '--link-picker-padding-top', (_props$paddingTop = props.paddingTop) !== null && _props$paddingTop !== void 0 ? _props$paddingTop : "var(--ds-space-200, 16px)"), '--link-picker-padding-bottom', (_props$paddingBottom = props.paddingBottom) !== null && _props$paddingBottom !== void 0 ? _props$paddingBottom : "var(--ds-space-200, 16px)")
|
|
51
|
-
},
|
|
52
|
-
fallback:
|
|
47
|
+
}, /*#__PURE__*/React.createElement(FixedWidthContainer, null, /*#__PURE__*/React.createElement(ErrorBoundary, null, /*#__PURE__*/React.createElement(LazySuspense, {
|
|
48
|
+
fallback: /*#__PURE__*/React.createElement(LoaderFallback, {
|
|
53
49
|
url: props.url,
|
|
54
50
|
hideDisplayText: props.hideDisplayText,
|
|
55
51
|
isLoadingPlugins: props.isLoadingPlugins,
|
|
56
52
|
plugins: props.plugins
|
|
57
53
|
})
|
|
58
|
-
},
|
|
54
|
+
}, /*#__PURE__*/React.createElement(RootComponent, _extends({}, props, {
|
|
59
55
|
"data-testid": testIds.linkPickerRoot
|
|
60
|
-
}),
|
|
56
|
+
}), /*#__PURE__*/React.createElement(Component, props)))))))));
|
|
61
57
|
});
|
|
58
|
+
};
|
|
59
|
+
export var composeLinkPicker = function composeLinkPicker(Component) {
|
|
60
|
+
if (fg('platform_bandicoots-link-picker-css')) {
|
|
61
|
+
return composeLinkPickerNew(Component);
|
|
62
|
+
}
|
|
63
|
+
return composeLinkPickerOld(Component);
|
|
62
64
|
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
/* eslint-disable @atlassian/tangerine/import/no-parent-imports */
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @jsxRuntime classic
|
|
7
|
+
* @jsx jsx
|
|
8
|
+
*/
|
|
9
|
+
import React, { memo } from 'react';
|
|
10
|
+
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
+
import { css, jsx } from '@emotion/react';
|
|
13
|
+
import { LazySuspense } from 'react-loosely-lazy';
|
|
14
|
+
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
15
|
+
import { COMPONENT_NAME, LINK_PICKER_WIDTH_IN_PX } from '../../common/constants';
|
|
16
|
+
import { LinkPickerSessionProvider } from '../../controllers/session-provider';
|
|
17
|
+
import { ErrorBoundary } from '../error-boundary';
|
|
18
|
+
import { LoaderFallback } from '../loader-fallback';
|
|
19
|
+
import { MessagesProvider } from '../messages-provider';
|
|
20
|
+
export var testIds = {
|
|
21
|
+
linkPickerRoot: 'link-picker-root'
|
|
22
|
+
};
|
|
23
|
+
export var PACKAGE_DATA = {
|
|
24
|
+
packageName: "@atlaskit/link-picker" || '',
|
|
25
|
+
packageVersion: "1.49.0" || '',
|
|
26
|
+
componentName: COMPONENT_NAME,
|
|
27
|
+
source: COMPONENT_NAME
|
|
28
|
+
};
|
|
29
|
+
var DefaultRootComponent = function DefaultRootComponent(_ref) {
|
|
30
|
+
var children = _ref.children;
|
|
31
|
+
return jsx("div", {
|
|
32
|
+
"data-testid": testIds.linkPickerRoot
|
|
33
|
+
}, children);
|
|
34
|
+
};
|
|
35
|
+
var fixedWidthContainerStyles = css({
|
|
36
|
+
width: 'var(--link-picker-width)'
|
|
37
|
+
});
|
|
38
|
+
var FixedWidthContainer = function FixedWidthContainer(props) {
|
|
39
|
+
return jsx("div", _extends({
|
|
40
|
+
css: fixedWidthContainerStyles
|
|
41
|
+
}, props));
|
|
42
|
+
};
|
|
43
|
+
export var composeLinkPickerOld = function composeLinkPickerOld(Component) {
|
|
44
|
+
return /*#__PURE__*/memo(function (props) {
|
|
45
|
+
var _props$paddingLeft, _props$paddingRight, _props$paddingTop, _props$paddingBottom;
|
|
46
|
+
var component = props.component;
|
|
47
|
+
var RootComponent = component !== null && component !== void 0 ? component : DefaultRootComponent;
|
|
48
|
+
return jsx(AnalyticsContext, {
|
|
49
|
+
data: PACKAGE_DATA
|
|
50
|
+
}, jsx(LinkPickerSessionProvider, null, jsx(MessagesProvider, null, jsx("div", {
|
|
51
|
+
style: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, '--link-picker-width', props.disableWidth ? '100%' : // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
52
|
+
"".concat(LINK_PICKER_WIDTH_IN_PX, "px")), '--link-picker-padding-left', (_props$paddingLeft = props.paddingLeft) !== null && _props$paddingLeft !== void 0 ? _props$paddingLeft : "var(--ds-space-200, 16px)"), '--link-picker-padding-right', (_props$paddingRight = props.paddingRight) !== null && _props$paddingRight !== void 0 ? _props$paddingRight : "var(--ds-space-200, 16px)"), '--link-picker-padding-top', (_props$paddingTop = props.paddingTop) !== null && _props$paddingTop !== void 0 ? _props$paddingTop : "var(--ds-space-200, 16px)"), '--link-picker-padding-bottom', (_props$paddingBottom = props.paddingBottom) !== null && _props$paddingBottom !== void 0 ? _props$paddingBottom : "var(--ds-space-200, 16px)")
|
|
53
|
+
}, jsx(FixedWidthContainer, null, jsx(ErrorBoundary, null, jsx(LazySuspense, {
|
|
54
|
+
fallback: jsx(LoaderFallback, {
|
|
55
|
+
url: props.url,
|
|
56
|
+
hideDisplayText: props.hideDisplayText,
|
|
57
|
+
isLoadingPlugins: props.isLoadingPlugins,
|
|
58
|
+
plugins: props.plugins
|
|
59
|
+
})
|
|
60
|
+
}, jsx(RootComponent, _extends({}, props, {
|
|
61
|
+
"data-testid": testIds.linkPickerRoot
|
|
62
|
+
}), jsx(Component, props)))))))));
|
|
63
|
+
});
|
|
64
|
+
};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
6
|
-
export declare const GenericErrorSVG: (props: React.SVGProps<SVGSVGElement>) => jsx.JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const GenericErrorSVGNew: (props: React.SVGProps<SVGSVGElement>) => JSX.Element;
|
|
3
|
+
export declare const GenericErrorSVG: (props: React.SVGProps<SVGSVGElement>) => JSX.Element;
|
|
@@ -82,7 +82,6 @@ export interface PickerState {
|
|
|
82
82
|
activeTab: number;
|
|
83
83
|
/** When true, even if the selected index is -1, don't hide the recents. */
|
|
84
84
|
preventHidingRecents: boolean;
|
|
85
|
-
allowCreateFeatureDiscovery: boolean;
|
|
86
85
|
}
|
|
87
86
|
interface Meta {
|
|
88
87
|
/** Indicates how the link was picked. */
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
type EmptyStateProps = {
|
|
3
3
|
header: string;
|
|
4
4
|
testId?: string;
|
|
5
5
|
description?: React.ReactNode;
|
|
6
6
|
renderImage?: () => React.ReactNode;
|
|
7
7
|
};
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const EmptyStateNew: ({ testId, header, description, renderImage }: EmptyStateProps) => JSX.Element;
|
|
9
|
+
export declare const EmptyState: (props: EmptyStateProps) => JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type EmptyStateProps = {
|
|
3
|
+
header: string;
|
|
4
|
+
testId?: string;
|
|
5
|
+
description?: React.ReactNode;
|
|
6
|
+
renderImage?: () => React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare const EmptyStateOld: ({ testId, header, description, renderImage }: EmptyStateProps) => React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
+
export declare const MinHeightContainerNew: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
7
|
+
minHeight: string;
|
|
8
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
6
9
|
export declare const MinHeightContainer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
7
10
|
minHeight: string;
|
|
8
11
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
6
|
-
export declare const ErrorBoundaryFallback: () => jsx.JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ErrorBoundaryFallbackNew: () => JSX.Element;
|
|
3
|
+
export declare const ErrorBoundaryFallback: () => JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
2
|
import { type MessageDescriptor } from 'react-intl-next';
|
|
4
3
|
import { type LinkPickerPluginAction, type LinkPickerState, type LinkSearchListItemData } from '../../../common/types';
|
|
5
4
|
export declare const messages: {
|
|
@@ -19,8 +18,6 @@ export declare const testIds: {
|
|
|
19
18
|
readonly cancelButton: "link-picker-cancel-button";
|
|
20
19
|
readonly actionButton: "link-picker-action-button";
|
|
21
20
|
readonly submitStatusA11yIndicator: "link-picker-submit-status-a11y-indicator";
|
|
22
|
-
/** Feature discovery for action button (css pulse) */
|
|
23
|
-
readonly actionButtonDiscovery: "link-picker-action-button-discovery";
|
|
24
21
|
};
|
|
25
22
|
interface FormFooterProps extends React.HTMLAttributes<HTMLElement> {
|
|
26
23
|
/** If the results section appears to be loading, impact whether the submit button is disabled */
|
|
@@ -34,10 +31,10 @@ interface FormFooterProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
34
31
|
isEditing?: boolean;
|
|
35
32
|
onCancel?: () => void;
|
|
36
33
|
action?: LinkPickerPluginAction;
|
|
37
|
-
createFeatureDiscovery?: boolean;
|
|
38
34
|
customSubmitButtonLabel?: MessageDescriptor;
|
|
39
35
|
submitMessageId?: string;
|
|
40
36
|
hideSubmitButton?: boolean;
|
|
41
37
|
}
|
|
42
|
-
export declare const
|
|
38
|
+
export declare const FormFooterNew: import("react").MemoExoticComponent<({ isLoading, isSubmitting, error, url, queryState, items, isEditing, onCancel, action, customSubmitButtonLabel, submitMessageId, hideSubmitButton, className, ...restProps }: FormFooterProps) => JSX.Element | null>;
|
|
39
|
+
export declare const FormFooter: (props: FormFooterProps) => JSX.Element;
|
|
43
40
|
export {};
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
import React from 'react';
|
|
6
2
|
import { type MessageDescriptor } from 'react-intl-next';
|
|
7
3
|
import type { LinkPickerState, LinkSearchListItemData } from '../../../../common/types';
|
|
8
4
|
type LinkPickerButtonGroupProps = {
|
|
@@ -29,5 +25,5 @@ export declare const messages: {
|
|
|
29
25
|
description: string;
|
|
30
26
|
};
|
|
31
27
|
};
|
|
32
|
-
export declare const LinkPickerSubmitButton: ({ isEditing, isLoading, isSubmitting, customSubmitButtonLabel, error, items, queryState, submitMessageId, testId, url, }: LinkPickerButtonGroupProps) =>
|
|
28
|
+
export declare const LinkPickerSubmitButton: ({ isEditing, isLoading, isSubmitting, customSubmitButtonLabel, error, items, queryState, submitMessageId, testId, url, }: LinkPickerButtonGroupProps) => React.JSX.Element;
|
|
33
29
|
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
|
+
import { type MessageDescriptor } from 'react-intl-next';
|
|
4
|
+
import { type LinkPickerPluginAction, type LinkPickerState, type LinkSearchListItemData } from '../../../../common/types';
|
|
5
|
+
export declare const messages: {
|
|
6
|
+
cancelButton: {
|
|
7
|
+
id: string;
|
|
8
|
+
defaultMessage: string;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
submittingStatusMessage: {
|
|
12
|
+
id: string;
|
|
13
|
+
defaultMessage: string;
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const testIds: {
|
|
18
|
+
readonly insertButton: "link-picker-insert-button";
|
|
19
|
+
readonly cancelButton: "link-picker-cancel-button";
|
|
20
|
+
readonly actionButton: "link-picker-action-button";
|
|
21
|
+
readonly submitStatusA11yIndicator: "link-picker-submit-status-a11y-indicator";
|
|
22
|
+
/** Feature discovery for action button (css pulse) */
|
|
23
|
+
readonly actionButtonDiscovery: "link-picker-action-button-discovery";
|
|
24
|
+
};
|
|
25
|
+
interface FormFooterProps extends React.HTMLAttributes<HTMLElement> {
|
|
26
|
+
/** If the results section appears to be loading, impact whether the submit button is disabled */
|
|
27
|
+
isLoading: boolean;
|
|
28
|
+
/** Controls showing a "submission in-progres" UX */
|
|
29
|
+
isSubmitting?: boolean;
|
|
30
|
+
error: unknown | null;
|
|
31
|
+
url: string;
|
|
32
|
+
queryState: LinkPickerState | null;
|
|
33
|
+
items: LinkSearchListItemData[] | null;
|
|
34
|
+
isEditing?: boolean;
|
|
35
|
+
onCancel?: () => void;
|
|
36
|
+
action?: LinkPickerPluginAction;
|
|
37
|
+
customSubmitButtonLabel?: MessageDescriptor;
|
|
38
|
+
submitMessageId?: string;
|
|
39
|
+
hideSubmitButton?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export declare const FormFooterOld: import("react").MemoExoticComponent<({ isLoading, isSubmitting, error, url, queryState, items, isEditing, onCancel, action, customSubmitButtonLabel, submitMessageId, hideSubmitButton, ...restProps }: FormFooterProps) => jsx.JSX.Element | null>;
|
|
42
|
+
export {};
|
|
@@ -7,7 +7,6 @@ export declare const testIds: {
|
|
|
7
7
|
readonly cancelButton: "link-picker-cancel-button";
|
|
8
8
|
readonly actionButton: "link-picker-action-button";
|
|
9
9
|
readonly submitStatusA11yIndicator: "link-picker-submit-status-a11y-indicator";
|
|
10
|
-
readonly actionButtonDiscovery: "link-picker-action-button-discovery";
|
|
11
10
|
readonly tabsLoadingIndicator: string;
|
|
12
11
|
readonly tabList: string;
|
|
13
12
|
readonly tabItem: string;
|
|
@@ -23,4 +22,5 @@ export declare const testIds: {
|
|
|
23
22
|
readonly urlInputField: "link-url";
|
|
24
23
|
readonly textInputField: "link-text";
|
|
25
24
|
};
|
|
26
|
-
export declare const
|
|
25
|
+
export declare const LinkPickerNew: import("react").ComponentType<LinkPickerProps>;
|
|
26
|
+
export declare const LinkPicker: (props: LinkPickerProps) => JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { LinkPickerProps } from '../../../common/types';
|
|
3
|
+
export declare const testIds: {
|
|
4
|
+
readonly urlError: string;
|
|
5
|
+
readonly clearUrlButton: string;
|
|
6
|
+
readonly insertButton: "link-picker-insert-button";
|
|
7
|
+
readonly cancelButton: "link-picker-cancel-button";
|
|
8
|
+
readonly actionButton: "link-picker-action-button";
|
|
9
|
+
readonly submitStatusA11yIndicator: "link-picker-submit-status-a11y-indicator";
|
|
10
|
+
readonly tabsLoadingIndicator: string;
|
|
11
|
+
readonly tabList: string;
|
|
12
|
+
readonly tabItem: string;
|
|
13
|
+
readonly resultListTitle: string;
|
|
14
|
+
readonly searchResultList: string;
|
|
15
|
+
readonly searchResultLoadingIndicator: string;
|
|
16
|
+
readonly searchResultItem: string;
|
|
17
|
+
readonly searchResultIcon: string;
|
|
18
|
+
readonly emptyResultPage: string;
|
|
19
|
+
readonly searchError: string;
|
|
20
|
+
readonly linkPickerRoot: "link-picker-root";
|
|
21
|
+
readonly linkPicker: "link-picker";
|
|
22
|
+
readonly urlInputField: "link-url";
|
|
23
|
+
readonly textInputField: "link-text";
|
|
24
|
+
};
|
|
25
|
+
export declare const LinkPickerOld: import("react").ComponentType<LinkPickerProps>;
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { type KeyboardEvent } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
6
|
import { type LinkPickerPlugin, type LinkSearchListItemData } from '../../../common/types';
|
|
8
7
|
export declare const testIds: {
|
|
9
8
|
tabsLoadingIndicator: string;
|
|
@@ -42,4 +41,5 @@ export type SearchResultsProps = {
|
|
|
42
41
|
adaptiveHeight: boolean;
|
|
43
42
|
retry: () => void;
|
|
44
43
|
};
|
|
45
|
-
export declare const
|
|
44
|
+
export declare const SearchResultsNew: ({ tabs, activeTab, activePlugin, isLoadingPlugins, isLoadingResults, isSubmitting, handleTabChange, handleSearchListOnChange, featureFlags, linkSearchListId, error, queryState, items, activeIndex, selectedIndex, handleSelected, handleKeyDown, adaptiveHeight, retry, }: SearchResultsProps) => JSX.Element;
|
|
45
|
+
export declare const SearchResults: (props: SearchResultsProps) => JSX.Element;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
import React from 'react';
|
|
6
2
|
export declare const CONTACT_SUPPORT_LINK = "https://support.atlassian.com/contact/";
|
|
7
3
|
export declare const CONTACT_SUPPORT_LINK_FEDRAMP = "https://gcs.atlassian-us-gov-mod.net/servicedesk/customer/portals";
|
|
8
4
|
export declare const messages: {
|
|
@@ -20,4 +16,4 @@ export declare const messages: {
|
|
|
20
16
|
export declare const testIds: {
|
|
21
17
|
searchError: string;
|
|
22
18
|
};
|
|
23
|
-
export declare const LinkSearchError: () =>
|
|
19
|
+
export declare const LinkSearchError: () => React.JSX.Element;
|
|
@@ -48,5 +48,6 @@ export interface LinkSearchListProps extends Omit<React.HTMLAttributes<LinkSearc
|
|
|
48
48
|
hasSearchTerm?: boolean;
|
|
49
49
|
activePlugin?: LinkPickerPlugin;
|
|
50
50
|
}
|
|
51
|
+
export declare const LinkSearchListNew: import("react").ForwardRefExoticComponent<LinkSearchListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
51
52
|
export declare const LinkSearchList: import("react").ForwardRefExoticComponent<LinkSearchListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
52
53
|
export {};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
6
|
-
export declare const NoResultsSVG: () => jsx.JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const NoResultsSVGNew: () => JSX.Element;
|
|
3
|
+
export declare const NoResultsSVG: (props: React.SVGProps<SVGSVGElement>) => JSX.Element;
|
|
@@ -8,7 +8,7 @@ export declare const testIds: {
|
|
|
8
8
|
searchResultItem: string;
|
|
9
9
|
searchResultIcon: string;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type LinkSearchListItemProps = {
|
|
12
12
|
item: LinkSearchListItemData;
|
|
13
13
|
selected: boolean;
|
|
14
14
|
active: boolean;
|
|
@@ -19,5 +19,6 @@ export interface LinkSearchListItemProps {
|
|
|
19
19
|
id?: string;
|
|
20
20
|
role?: string;
|
|
21
21
|
nameMaxLines?: number;
|
|
22
|
-
}
|
|
22
|
+
};
|
|
23
|
+
export declare const LinkSearchListItemNew: import("react").ForwardRefExoticComponent<LinkSearchListItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
23
24
|
export declare const LinkSearchListItem: import("react").ForwardRefExoticComponent<LinkSearchListItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type KeyboardEvent } from 'react';
|
|
6
|
+
import { type LinkSearchListItemData } from '../../../../../../common/types';
|
|
7
|
+
export declare const testIds: {
|
|
8
|
+
searchResultItem: string;
|
|
9
|
+
searchResultIcon: string;
|
|
10
|
+
};
|
|
11
|
+
export interface LinkSearchListItemProps {
|
|
12
|
+
item: LinkSearchListItemData;
|
|
13
|
+
selected: boolean;
|
|
14
|
+
active: boolean;
|
|
15
|
+
tabIndex?: number;
|
|
16
|
+
onSelect: (objectId: string) => void;
|
|
17
|
+
onKeyDown: (e: KeyboardEvent<HTMLDivElement>) => void;
|
|
18
|
+
onFocus: () => void;
|
|
19
|
+
id?: string;
|
|
20
|
+
role?: string;
|
|
21
|
+
nameMaxLines?: number;
|
|
22
|
+
}
|
|
23
|
+
export declare const LinkSearchListItemOld: import("react").ForwardRefExoticComponent<LinkSearchListItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type KeyboardEvent } from 'react';
|
|
6
|
+
import { type LinkPickerPlugin, type LinkSearchListItemData } from '../../../../../common/types';
|
|
7
|
+
export declare const messages: {
|
|
8
|
+
titleRecentlyViewed: {
|
|
9
|
+
id: string;
|
|
10
|
+
defaultMessage: string;
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
titleResults: {
|
|
14
|
+
id: string;
|
|
15
|
+
defaultMessage: string;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
searchLinkResults: {
|
|
19
|
+
id: string;
|
|
20
|
+
defaultMessage: string;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const testIds: {
|
|
25
|
+
resultListTitle: string;
|
|
26
|
+
searchResultList: string;
|
|
27
|
+
searchResultLoadingIndicator: string;
|
|
28
|
+
tabsLoadingIndicator: string;
|
|
29
|
+
searchResultItem: string;
|
|
30
|
+
searchResultIcon: string;
|
|
31
|
+
emptyResultPage: string;
|
|
32
|
+
};
|
|
33
|
+
type LinkSearchListElement = HTMLElement;
|
|
34
|
+
export interface LinkSearchListProps extends Omit<React.HTMLAttributes<LinkSearchListElement>, 'onSelect' | 'onChange'> {
|
|
35
|
+
items?: LinkSearchListItemData[] | null;
|
|
36
|
+
isLoading: boolean;
|
|
37
|
+
selectedIndex: number;
|
|
38
|
+
activeIndex: number;
|
|
39
|
+
adaptiveHeight: boolean;
|
|
40
|
+
onChange: (objectId: string) => void;
|
|
41
|
+
onSelect: (objectId: string) => void;
|
|
42
|
+
onKeyDown?: (e: KeyboardEvent<LinkSearchListElement>) => void;
|
|
43
|
+
ariaControls?: string;
|
|
44
|
+
ariaLabelledBy?: string;
|
|
45
|
+
ariaReadOnly?: boolean;
|
|
46
|
+
role?: string;
|
|
47
|
+
id?: string;
|
|
48
|
+
hasSearchTerm?: boolean;
|
|
49
|
+
activePlugin?: LinkPickerPlugin;
|
|
50
|
+
}
|
|
51
|
+
export declare const LinkSearchListOld: import("react").ForwardRefExoticComponent<LinkSearchListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
52
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type KeyboardEvent } from 'react';
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
|
+
import { type LinkPickerPlugin, type LinkSearchListItemData } from '../../../../common/types';
|
|
8
|
+
export declare const testIds: {
|
|
9
|
+
tabsLoadingIndicator: string;
|
|
10
|
+
tabList: string;
|
|
11
|
+
tabItem: string;
|
|
12
|
+
resultListTitle: string;
|
|
13
|
+
searchResultList: string;
|
|
14
|
+
searchResultLoadingIndicator: string;
|
|
15
|
+
searchResultItem: string;
|
|
16
|
+
searchResultIcon: string;
|
|
17
|
+
emptyResultPage: string;
|
|
18
|
+
searchError: string;
|
|
19
|
+
};
|
|
20
|
+
export type SearchResultsProps = {
|
|
21
|
+
activePlugin?: LinkPickerPlugin;
|
|
22
|
+
tabs: {
|
|
23
|
+
tabTitle: string;
|
|
24
|
+
}[];
|
|
25
|
+
isLoadingPlugins?: boolean;
|
|
26
|
+
isLoadingResults: boolean;
|
|
27
|
+
isSubmitting?: boolean;
|
|
28
|
+
activeTab: number;
|
|
29
|
+
handleTabChange: (activeTab: number) => void;
|
|
30
|
+
handleSearchListOnChange: (id: string) => void;
|
|
31
|
+
featureFlags?: Record<string, unknown>;
|
|
32
|
+
linkSearchListId: string;
|
|
33
|
+
queryState?: {
|
|
34
|
+
query: string;
|
|
35
|
+
};
|
|
36
|
+
items?: LinkSearchListItemData[] | null;
|
|
37
|
+
activeIndex: number;
|
|
38
|
+
selectedIndex: number;
|
|
39
|
+
handleSelected: (objectId: string) => void;
|
|
40
|
+
handleKeyDown: (e: KeyboardEvent<HTMLElement>) => void;
|
|
41
|
+
error?: unknown;
|
|
42
|
+
adaptiveHeight: boolean;
|
|
43
|
+
retry: () => void;
|
|
44
|
+
};
|
|
45
|
+
export declare const SearchResultsOld: ({ tabs, activeTab, activePlugin, isLoadingPlugins, isLoadingResults, isSubmitting, handleTabChange, handleSearchListOnChange, featureFlags, linkSearchListId, error, queryState, items, activeIndex, selectedIndex, handleSelected, handleKeyDown, adaptiveHeight, retry, }: SearchResultsProps) => jsx.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
interface ScrollingTabListProps {
|
|
2
|
+
type ScrollingTabListProps = {
|
|
4
3
|
children: JSX.Element;
|
|
5
|
-
}
|
|
6
|
-
export declare const
|
|
4
|
+
};
|
|
5
|
+
export declare const ScrollingTabListNew: (props: ScrollingTabListProps) => JSX.Element;
|
|
6
|
+
export declare const ScrollingTabList: (props: ScrollingTabListProps) => JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
2
|
type SearchResultsContainerProps = {
|
|
4
3
|
adaptiveHeight: boolean;
|
|
5
4
|
isLoadingResults: boolean;
|
|
6
5
|
hasTabs?: boolean;
|
|
7
6
|
children?: React.ReactNode;
|
|
8
7
|
};
|
|
9
|
-
export declare const
|
|
8
|
+
export declare const SearchResultsContainerNew: ({ hasTabs, adaptiveHeight, isLoadingResults, children, }: SearchResultsContainerProps) => JSX.Element;
|
|
9
|
+
export declare const SearchResultsContainer: (props: SearchResultsContainerProps) => JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
|
+
type SearchResultsContainerProps = {
|
|
4
|
+
adaptiveHeight: boolean;
|
|
5
|
+
isLoadingResults: boolean;
|
|
6
|
+
hasTabs?: boolean;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export declare const SearchResultsContainerOld: ({ hasTabs, adaptiveHeight, isLoadingResults, children, }: SearchResultsContainerProps) => jsx.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { type TextFieldProps } from '@atlaskit/textfield';
|
|
3
3
|
import { type ConditionalSpotlightTargetWrapperProps } from './conditional-spotlight-target-wrapper';
|
|
4
4
|
export type TextInputProps = Omit<TextFieldProps, 'name' | 'value'> & Pick<ConditionalSpotlightTargetWrapperProps, 'spotlightTargetName'> & {
|
|
@@ -15,4 +15,5 @@ export declare const testIds: {
|
|
|
15
15
|
urlError: string;
|
|
16
16
|
clearUrlButton: string;
|
|
17
17
|
};
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const TextInputNew: ({ name, label, autoFocus, onRedo, onUndo, onKeyDown, onClear, clearLabel, error, spotlightTargetName, ...restProps }: TextInputProps) => JSX.Element;
|
|
19
|
+
export declare const TextInput: (props: TextInputProps) => JSX.Element;
|