@atlaskit/link-picker 5.3.3 → 6.0.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 +34 -0
- package/dist/cjs/ui/main.js +1 -1
- package/dist/es2019/ui/main.js +1 -1
- package/dist/esm/ui/main.js +1 -1
- package/dist/types/common/types.d.ts +8 -0
- package/errors/package.json +1 -8
- package/lazy/package.json +1 -8
- package/link-picker/package.json +1 -8
- package/loader-fallback/package.json +1 -8
- package/package.json +26 -34
- package/types/package.json +1 -8
- package/dist/types-ts4.5/common/analytics/context.d.ts +0 -31
- package/dist/types-ts4.5/common/analytics/experiences.d.ts +0 -11
- package/dist/types-ts4.5/common/analytics/index.d.ts +0 -2
- package/dist/types-ts4.5/common/analytics/input-field-tracking.d.ts +0 -17
- package/dist/types-ts4.5/common/constants.d.ts +0 -5
- package/dist/types-ts4.5/common/generic-error-svg/index.d.ts +0 -1
- package/dist/types-ts4.5/common/types.d.ts +0 -199
- package/dist/types-ts4.5/common/ui/empty-state/index.d.ts +0 -10
- package/dist/types-ts4.5/common/ui/min-height-container/index.d.ts +0 -8
- package/dist/types-ts4.5/common/utils/analytics/analytics.codegen.d.ts +0 -65
- package/dist/types-ts4.5/common/utils/date.d.ts +0 -1
- package/dist/types-ts4.5/common/utils/dateUtils.d.ts +0 -8
- package/dist/types-ts4.5/common/utils/errors.d.ts +0 -6
- package/dist/types-ts4.5/common/utils/handleNavKeyDown.d.ts +0 -2
- package/dist/types-ts4.5/controllers/session-provider/index.d.ts +0 -10
- package/dist/types-ts4.5/entry-points/errors.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/lazy-link-picker.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/link-picker.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/loader-fallback.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -41
- package/dist/types-ts4.5/i18n/da.d.ts +0 -41
- package/dist/types-ts4.5/i18n/de.d.ts +0 -41
- package/dist/types-ts4.5/i18n/en.d.ts +0 -42
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -42
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -42
- package/dist/types-ts4.5/i18n/es.d.ts +0 -41
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -41
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -41
- package/dist/types-ts4.5/i18n/hr.d.ts +0 -41
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -41
- package/dist/types-ts4.5/i18n/index.d.ts +0 -1
- package/dist/types-ts4.5/i18n/it.d.ts +0 -41
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -41
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -41
- package/dist/types-ts4.5/i18n/languages.d.ts +0 -32
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -41
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -41
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -41
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -41
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -41
- package/dist/types-ts4.5/i18n/sk.d.ts +0 -39
- package/dist/types-ts4.5/i18n/sl.d.ts +0 -41
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -41
- package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -41
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -41
- package/dist/types-ts4.5/i18n/th.d.ts +0 -41
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -41
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -41
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -41
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -41
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -41
- package/dist/types-ts4.5/index.d.ts +0 -12
- package/dist/types-ts4.5/lazy.d.ts +0 -1
- package/dist/types-ts4.5/services/use-plugins/index.d.ts +0 -15
- package/dist/types-ts4.5/services/use-plugins/reducer.d.ts +0 -33
- package/dist/types-ts4.5/services/use-plugins/utils.d.ts +0 -18
- package/dist/types-ts4.5/services/use-search-query/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/error-boundary/error-boundary-base/index.d.ts +0 -18
- package/dist/types-ts4.5/ui/error-boundary/error-boundary-fallback/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/error-boundary/index.d.ts +0 -6
- package/dist/types-ts4.5/ui/index.d.ts +0 -16
- package/dist/types-ts4.5/ui/lazy.d.ts +0 -4
- package/dist/types-ts4.5/ui/link-picker/announcer.d.ts +0 -22
- package/dist/types-ts4.5/ui/link-picker/autoSubmitOnChange.d.ts +0 -9
- package/dist/types-ts4.5/ui/link-picker/form-footer/index.d.ts +0 -43
- package/dist/types-ts4.5/ui/link-picker/form-footer/link-picker-submit-button/index.d.ts +0 -29
- package/dist/types-ts4.5/ui/link-picker/form-footer/link-picker-submit-button/utils.d.ts +0 -2
- package/dist/types-ts4.5/ui/link-picker/index.d.ts +0 -30
- package/dist/types-ts4.5/ui/link-picker/messages.d.ts +0 -95
- package/dist/types-ts4.5/ui/link-picker/search-results/index.d.ts +0 -45
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-error/index.d.ts +0 -29
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/index.d.ts +0 -55
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/link-search-no-results/index.d.ts +0 -19
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/list-item/index.d.ts +0 -23
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/use-track-results-shown/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/link-picker/search-results/scrolling-tabs/index.d.ts +0 -5
- package/dist/types-ts4.5/ui/link-picker/search-results/scrolling-tabs/scrolling-tabs.d.ts +0 -11
- package/dist/types-ts4.5/ui/link-picker/search-results/search-results-container/index.d.ts +0 -8
- package/dist/types-ts4.5/ui/link-picker/search-results/track-tab-viewed/index.d.ts +0 -4
- package/dist/types-ts4.5/ui/link-picker/text-input/conditional-spotlight-target-wrapper/index.d.ts +0 -6
- package/dist/types-ts4.5/ui/link-picker/text-input/index.d.ts +0 -27
- package/dist/types-ts4.5/ui/link-picker/text-input/utils.d.ts +0 -3
- package/dist/types-ts4.5/ui/link-picker/track-mount/index.d.ts +0 -4
- package/dist/types-ts4.5/ui/link-picker/transformTimeStamp.d.ts +0 -2
- package/dist/types-ts4.5/ui/link-picker/utils.d.ts +0 -7
- package/dist/types-ts4.5/ui/loader-fallback/index.d.ts +0 -12
- package/dist/types-ts4.5/ui/main.d.ts +0 -12
- package/dist/types-ts4.5/ui/messages-provider/index.d.ts +0 -5
- package/dist/types-ts4.5/ui/messages-provider/lazy-messages-provider/index.d.ts +0 -6
- package/dist/types-ts4.5/ui/messages-provider/lazy-messages-provider/utils/fetch-messages-for-locale.d.ts +0 -2
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
* @jsxFrag React.Fragment
|
|
5
|
-
*/
|
|
6
|
-
import React, { type Ref } from 'react';
|
|
7
|
-
import { type TextFieldProps } from '@atlaskit/textfield';
|
|
8
|
-
import { type ConditionalSpotlightTargetWrapperProps } from './conditional-spotlight-target-wrapper';
|
|
9
|
-
export type TextInputProps = Omit<TextFieldProps, 'name' | 'value'> & Pick<ConditionalSpotlightTargetWrapperProps, 'spotlightTargetName'> & {
|
|
10
|
-
name: string;
|
|
11
|
-
value: string;
|
|
12
|
-
label?: string;
|
|
13
|
-
onUndo?: () => void;
|
|
14
|
-
onRedo?: () => void;
|
|
15
|
-
onClear?: (name: string) => void;
|
|
16
|
-
clearLabel?: string;
|
|
17
|
-
error?: React.ReactNode;
|
|
18
|
-
/** Ref to the link picker search input. */
|
|
19
|
-
inputRef?: Ref<HTMLInputElement>;
|
|
20
|
-
helperMessage?: string;
|
|
21
|
-
};
|
|
22
|
-
export declare const testIds: {
|
|
23
|
-
urlError: string;
|
|
24
|
-
clearUrlButton: string;
|
|
25
|
-
linkHelperText: string;
|
|
26
|
-
};
|
|
27
|
-
export declare const TextInput: ({ name, label, autoFocus, onRedo, onUndo, onKeyDown, onClear, clearLabel, error, spotlightTargetName, inputRef: inputRefProp, isRequired, helperMessage, ...restProps }: TextInputProps) => JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type IntlShape } from 'react-intl';
|
|
2
|
-
import { type LinkPickerPlugin, type LinkSearchListItemData } from '../../common/types';
|
|
3
|
-
/**
|
|
4
|
-
* Retrieve the data source for a link given the item and the plugin that resolved it
|
|
5
|
-
*/
|
|
6
|
-
export declare const getDataSource: (item: LinkSearchListItemData, plugin?: LinkPickerPlugin) => string;
|
|
7
|
-
export declare function getScreenReaderText(items: LinkSearchListItemData[], selectedIndex: number, intl: IntlShape): string | undefined;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type LoaderFallbackProps = {
|
|
2
|
-
url?: string;
|
|
3
|
-
hideDisplayText?: boolean;
|
|
4
|
-
isLoadingPlugins?: boolean;
|
|
5
|
-
plugins?: unknown[];
|
|
6
|
-
name?: string;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Loader / skeleton for the Link Picker. Takes LoaderFallbackProps (hideDisplayText, isLoadingPlugins, plugins)
|
|
10
|
-
* to determine the height to prevent jumps in height when loading
|
|
11
|
-
*/
|
|
12
|
-
export declare const LoaderFallback: (props: LoaderFallbackProps) => JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { LinkPickerProps } from '../common/types';
|
|
7
|
-
import type { PackageMetaDataType } from '../common/utils/analytics/analytics.codegen';
|
|
8
|
-
export declare const testIds: {
|
|
9
|
-
linkPickerRoot: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const PACKAGE_DATA: PackageMetaDataType;
|
|
12
|
-
export declare const composeLinkPicker: (Component: React.ComponentType<LinkPickerProps>) => React.MemoExoticComponent<(props: LinkPickerProps) => JSX.Element>;
|