@atlaskit/link-picker 6.4.6 → 6.5.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 +20 -0
- package/dist/cjs/common/analytics/context.js +2 -2
- package/dist/cjs/common/analytics/experiences.js +5 -4
- package/dist/cjs/common/analytics/input-field-tracking.js +2 -2
- package/dist/cjs/common/ui/empty-state/index.js +1 -1
- package/dist/cjs/services/use-plugins/index.js +4 -4
- package/dist/cjs/ui/error-boundary/index.js +2 -2
- package/dist/cjs/ui/link-picker/form-footer/index.js +4 -4
- package/dist/cjs/ui/link-picker/form-footer/link-picker-submit-button/index.js +4 -4
- package/dist/cjs/ui/link-picker/form-footer/link-picker-submit-button/utils.js +3 -3
- package/dist/cjs/ui/link-picker/index.js +4 -4
- package/dist/cjs/ui/link-picker/search-results/index.js +5 -3
- package/dist/cjs/ui/link-picker/search-results/link-search-error/index.js +3 -3
- package/dist/cjs/ui/link-picker/search-results/link-search-list/index.js +1 -1
- package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js +2 -2
- package/dist/cjs/ui/link-picker/search-results/link-search-list/list-item/index.js +0 -1
- package/dist/cjs/ui/link-picker/search-results/link-search-list/use-track-results-shown/index.js +2 -2
- package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/index.js +3 -3
- package/dist/cjs/ui/link-picker/search-results/track-tab-viewed/index.js +2 -2
- package/dist/cjs/ui/link-picker/text-input/index.js +14 -11
- package/dist/cjs/ui/link-picker/track-mount/index.js +2 -2
- package/dist/cjs/ui/loader-fallback/index.js +1 -1
- package/dist/cjs/ui/main.js +3 -3
- package/dist/es2019/common/analytics/context.js +1 -1
- package/dist/es2019/common/analytics/experiences.js +2 -1
- package/dist/es2019/common/analytics/input-field-tracking.js +1 -1
- package/dist/es2019/common/ui/empty-state/index.js +1 -1
- package/dist/es2019/services/use-plugins/index.js +2 -2
- package/dist/es2019/ui/error-boundary/index.js +1 -1
- package/dist/es2019/ui/link-picker/form-footer/index.js +2 -2
- package/dist/es2019/ui/link-picker/form-footer/link-picker-submit-button/index.js +2 -2
- package/dist/es2019/ui/link-picker/form-footer/link-picker-submit-button/utils.js +1 -1
- package/dist/es2019/ui/link-picker/index.js +2 -2
- package/dist/es2019/ui/link-picker/search-results/index.js +3 -1
- package/dist/es2019/ui/link-picker/search-results/link-search-error/index.js +2 -2
- package/dist/es2019/ui/link-picker/search-results/link-search-list/index.js +1 -1
- package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js +1 -1
- package/dist/es2019/ui/link-picker/search-results/link-search-list/list-item/index.js +0 -1
- package/dist/es2019/ui/link-picker/search-results/link-search-list/use-track-results-shown/index.js +1 -1
- package/dist/es2019/ui/link-picker/search-results/scrolling-tabs/index.js +1 -1
- package/dist/es2019/ui/link-picker/search-results/track-tab-viewed/index.js +1 -1
- package/dist/es2019/ui/link-picker/text-input/index.js +7 -4
- package/dist/es2019/ui/link-picker/track-mount/index.js +1 -1
- package/dist/es2019/ui/loader-fallback/index.js +1 -1
- package/dist/es2019/ui/main.js +2 -2
- package/dist/esm/common/analytics/context.js +1 -1
- package/dist/esm/common/analytics/experiences.js +2 -1
- package/dist/esm/common/analytics/input-field-tracking.js +1 -1
- package/dist/esm/common/ui/empty-state/index.js +1 -1
- package/dist/esm/services/use-plugins/index.js +2 -2
- package/dist/esm/ui/error-boundary/index.js +1 -1
- package/dist/esm/ui/link-picker/form-footer/index.js +2 -2
- package/dist/esm/ui/link-picker/form-footer/link-picker-submit-button/index.js +2 -2
- package/dist/esm/ui/link-picker/form-footer/link-picker-submit-button/utils.js +1 -1
- package/dist/esm/ui/link-picker/index.js +2 -2
- package/dist/esm/ui/link-picker/search-results/index.js +3 -1
- package/dist/esm/ui/link-picker/search-results/link-search-error/index.js +2 -2
- package/dist/esm/ui/link-picker/search-results/link-search-list/index.js +1 -1
- package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js +1 -1
- package/dist/esm/ui/link-picker/search-results/link-search-list/list-item/index.js +0 -1
- package/dist/esm/ui/link-picker/search-results/link-search-list/use-track-results-shown/index.js +1 -1
- package/dist/esm/ui/link-picker/search-results/scrolling-tabs/index.js +1 -1
- package/dist/esm/ui/link-picker/search-results/track-tab-viewed/index.js +1 -1
- package/dist/esm/ui/link-picker/text-input/index.js +7 -4
- package/dist/esm/ui/link-picker/track-mount/index.js +1 -1
- package/dist/esm/ui/loader-fallback/index.js +1 -1
- package/dist/esm/ui/main.js +2 -2
- package/dist/types/common/analytics/experiences.d.ts +1 -1
- package/dist/types/common/types.d.ts +1 -1
- package/dist/types/ui/link-picker/text-input/index.d.ts +1 -1
- package/package.json +29 -23
- package/link-picker.docs.tsx +0 -77
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { normalizeUrl } from '@atlaskit/linking-common/url';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
3
|
export const checkSubmitDisabled = (isLoading, isSubmitting, error, url, queryState, items, disableManualUrlInsert) => {
|
|
4
4
|
/*
|
|
5
5
|
* Enable insert when search term is a valid url and it can be normalized
|
|
@@ -7,11 +7,11 @@ import { FormattedMessage, useIntl } from 'react-intl';
|
|
|
7
7
|
import { useMergeRefs } from 'use-callback-ref';
|
|
8
8
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
9
9
|
import uuid from 'uuid';
|
|
10
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
10
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
11
11
|
import { CardClient } from '@atlaskit/link-provider';
|
|
12
12
|
import { isSafeUrl, normalizeUrl } from '@atlaskit/linking-common/url';
|
|
13
13
|
import { browser } from '@atlaskit/linking-common/user-agent';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
15
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
16
16
|
import LinkUrl from '@atlaskit/smart-card/link-url';
|
|
17
17
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
@@ -5,7 +5,9 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { Fragment } from 'react';
|
|
6
6
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
7
7
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
8
|
-
import Tabs
|
|
8
|
+
import Tabs from '@atlaskit/tabs/tabs';
|
|
9
|
+
import Tab from '@atlaskit/tabs/tab';
|
|
10
|
+
import TabList from '@atlaskit/tabs/tab-list';
|
|
9
11
|
import { LinkSearchError, testIds as searchErrorTestIds } from './link-search-error';
|
|
10
12
|
import { LinkSearchList, testIds as listTestIds } from './link-search-list';
|
|
11
13
|
import { ScrollingTabList } from './scrolling-tabs';
|
|
@@ -2,8 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
|
4
4
|
import { isFedRamp } from '@atlaskit/atlassian-context/is-fedramp';
|
|
5
|
-
import Button from '@atlaskit/button/
|
|
6
|
-
import Link from '@atlaskit/link';
|
|
5
|
+
import Button from '@atlaskit/button/default/button';
|
|
6
|
+
import Link from '@atlaskit/link/link';
|
|
7
7
|
import { GenericErrorSVG } from '../../../../common/generic-error-svg';
|
|
8
8
|
import { EmptyState } from '../../../../common/ui/empty-state';
|
|
9
9
|
export const CONTACT_SUPPORT_LINK = 'https://support.atlassian.com/contact/';
|
|
@@ -6,7 +6,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import { forwardRef, Fragment, useCallback, useRef } from 'react';
|
|
7
7
|
import { defineMessages, FormattedMessage } from 'react-intl';
|
|
8
8
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
|
-
import Spinner from '@atlaskit/spinner';
|
|
9
|
+
import Spinner from '@atlaskit/spinner/spinner';
|
|
10
10
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
11
11
|
import { MinHeightContainer } from '../../../../common/ui/min-height-container';
|
|
12
12
|
import { handleNavKeyDown } from '../../../../common/utils/handleNavKeyDown';
|
package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defineMessages, useIntl } from 'react-intl';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
import { EmptyState } from '../../../../../common/ui/empty-state';
|
|
5
5
|
import { NoResultsSVG } from './no-results-svg';
|
|
6
6
|
export const messages = defineMessages({
|
|
@@ -5,7 +5,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { forwardRef, Fragment } from 'react';
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
7
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
8
|
-
/* eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports */
|
|
9
8
|
import { transformTimeStamp } from '../../../transformTimeStamp';
|
|
10
9
|
export const testIds = {
|
|
11
10
|
searchResultItem: 'link-search-list-item',
|
package/dist/es2019/ui/link-picker/search-results/link-search-list/use-track-results-shown/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useMemo, useRef } from 'react';
|
|
2
2
|
import { useDebounce } from 'use-debounce';
|
|
3
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
3
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
4
4
|
import { ANALYTICS_CHANNEL } from '../../../../../common/constants';
|
|
5
5
|
import createEventPayload from '../../../../../common/utils/analytics/analytics.codegen';
|
|
6
6
|
const DEBOUNCE_MS = 400;
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React, { useCallback, useMemo, useRef, useState } from 'react';
|
|
6
|
-
import
|
|
6
|
+
import IconButton from '@atlaskit/button/icon/button';
|
|
7
7
|
import ChevronLeftIcon from '@atlaskit/icon/core/chevron-left';
|
|
8
8
|
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
9
9
|
import { calculateConditionalButtons, createGhost, getTabList, scrollBack, scrollForward } from './scrolling-tabs';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { useLayoutEffect } from 'react';
|
|
6
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
6
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
7
7
|
import { ANALYTICS_CHANNEL } from '../../../../common/constants';
|
|
8
8
|
import createEventPayload from '../../../../common/utils/analytics/analytics.codegen';
|
|
9
9
|
export function TrackTabViewed({
|
|
@@ -4,12 +4,15 @@ import "./index.compiled.css";
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React, { Fragment, useCallback, useMemo, useRef } from 'react';
|
|
6
6
|
import { useMergeRefs } from 'use-callback-ref';
|
|
7
|
-
import { ErrorMessage
|
|
7
|
+
import { ErrorMessage } from '@atlaskit/form/error-message';
|
|
8
|
+
import Field from '@atlaskit/form/field';
|
|
9
|
+
import { HelperMessage } from '@atlaskit/form/helper-message';
|
|
10
|
+
import { MessageWrapper } from '@atlaskit/form/message-wrapper';
|
|
8
11
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
13
|
import { Box, Pressable } from '@atlaskit/primitives/compiled';
|
|
11
|
-
import Textfield from '@atlaskit/textfield';
|
|
12
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
14
|
+
import Textfield from '@atlaskit/textfield/text-field';
|
|
15
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
13
16
|
import { ConditionalSpotlightTargetWrapper } from './conditional-spotlight-target-wrapper';
|
|
14
17
|
import { isRedoEvent, isUndoEvent } from './utils';
|
|
15
18
|
const styles = {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { useLayoutEffect } from 'react';
|
|
6
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
6
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
7
7
|
import { succeedUfoExperience, ufoExperience } from '../../../common/analytics/experiences';
|
|
8
8
|
import { ANALYTICS_CHANNEL } from '../../../common/constants';
|
|
9
9
|
import createEventPayload from '../../../common/utils/analytics/analytics.codegen';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import Spinner from '@atlaskit/spinner';
|
|
5
|
+
import Spinner from '@atlaskit/spinner/spinner';
|
|
6
6
|
import { MinHeightContainer } from '../../common/ui/min-height-container';
|
|
7
7
|
const styles = null;
|
|
8
8
|
const LINK_PICKER_MIN_HEIGHT_IN_PX_WITH_TABS_WITHOUT_DISPLAYTEXT = '495px';
|
package/dist/es2019/ui/main.js
CHANGED
|
@@ -5,7 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import React, { memo } from 'react';
|
|
6
6
|
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
7
7
|
import { LazySuspense } from 'react-loosely-lazy';
|
|
8
|
-
import
|
|
8
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
9
9
|
import { COMPONENT_NAME, LINK_PICKER_WIDTH_IN_PX } from '../common/constants';
|
|
10
10
|
import { LinkPickerSessionProvider } from '../controllers/session-provider';
|
|
11
11
|
import { ErrorBoundary } from './error-boundary';
|
|
@@ -16,7 +16,7 @@ export const testIds = {
|
|
|
16
16
|
};
|
|
17
17
|
export const PACKAGE_DATA = {
|
|
18
18
|
packageName: "@atlaskit/link-picker" || '',
|
|
19
|
-
packageVersion: "6.4.
|
|
19
|
+
packageVersion: "6.4.6" || '',
|
|
20
20
|
componentName: COMPONENT_NAME,
|
|
21
21
|
source: COMPONENT_NAME
|
|
22
22
|
};
|
|
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
import React, { useCallback, useContext, useMemo, useRef, useState } from 'react';
|
|
7
|
-
import
|
|
7
|
+
import AnalyticsListener from '@atlaskit/analytics-next/AnalyticsListener';
|
|
8
8
|
import { normalizeUrl } from '@atlaskit/linking-common/url';
|
|
9
9
|
import { ANALYTICS_CHANNEL } from '../constants';
|
|
10
10
|
var DEFAULT_CONTEXT_ATTRIBUTES = {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { ConcurrentExperience
|
|
2
|
+
import { ConcurrentExperience } from '@atlaskit/ufo/concurrent-experience';
|
|
3
|
+
import { ExperiencePerformanceTypes, ExperienceTypes } from '@atlaskit/ufo/experience-types';
|
|
3
4
|
export var ufoExperience = {
|
|
4
5
|
mounted: 'component-mounted'
|
|
5
6
|
};
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
4
4
|
import React, { useCallback, useRef } from 'react';
|
|
5
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
5
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
6
6
|
import createEventPayload from '../../common/utils/analytics/analytics.codegen';
|
|
7
7
|
import { ANALYTICS_CHANNEL } from '../constants';
|
|
8
8
|
import { useLinkPickerAnalytics } from './index';
|
|
@@ -3,7 +3,7 @@ import "./index.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { cx } from '@atlaskit/css';
|
|
6
|
-
import Heading from '@atlaskit/heading';
|
|
6
|
+
import Heading from '@atlaskit/heading/heading';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { Flex, Text } from '@atlaskit/primitives/compiled';
|
|
9
9
|
var styles = {
|
|
@@ -2,9 +2,9 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
4
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
5
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
5
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
6
6
|
import { convertToError } from '@atlaskit/frontend-utilities/convert-to-error';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { useLinkPickerAnalytics } from '../../common/analytics';
|
|
9
9
|
import { ANALYTICS_CHANNEL, RECENT_SEARCH_LIST_SIZE } from '../../common/constants';
|
|
10
10
|
import createEventPayload from '../../common/utils/analytics/analytics.codegen';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
2
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
3
3
|
import { failUfoExperience, ufoExperience } from '../../common/analytics/experiences';
|
|
4
4
|
import { ANALYTICS_CHANNEL } from '../../common/constants';
|
|
5
5
|
import createEventPayload from '../../common/utils/analytics/analytics.codegen';
|
|
@@ -7,8 +7,8 @@ import * as React from 'react';
|
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
8
|
import { memo } from 'react';
|
|
9
9
|
import { defineMessages, useIntl } from 'react-intl';
|
|
10
|
-
import
|
|
11
|
-
import Button from '@atlaskit/button/
|
|
10
|
+
import ButtonGroup from '@atlaskit/button/button-group';
|
|
11
|
+
import Button from '@atlaskit/button/default/button';
|
|
12
12
|
import EditorAddIcon from '@atlaskit/icon/core/add';
|
|
13
13
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
14
14
|
import { UnauthenticatedError } from '../../../common/utils/errors';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defineMessages, useIntl } from 'react-intl';
|
|
3
|
-
import Button from '@atlaskit/button/
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import Button from '@atlaskit/button/default/button';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
5
|
import { checkSubmitDisabled } from './utils';
|
|
6
6
|
export var messages = defineMessages({
|
|
7
7
|
saveButton: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { normalizeUrl } from '@atlaskit/linking-common/url';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
3
|
export var checkSubmitDisabled = function checkSubmitDisabled(isLoading, isSubmitting, error, url, queryState, items, disableManualUrlInsert) {
|
|
4
4
|
/*
|
|
5
5
|
* Enable insert when search term is a valid url and it can be normalized
|
|
@@ -13,11 +13,11 @@ import { FormattedMessage, useIntl } from 'react-intl';
|
|
|
13
13
|
import { useMergeRefs } from 'use-callback-ref';
|
|
14
14
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
15
15
|
import uuid from 'uuid';
|
|
16
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
16
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
17
17
|
import { CardClient } from '@atlaskit/link-provider';
|
|
18
18
|
import { isSafeUrl, normalizeUrl } from '@atlaskit/linking-common/url';
|
|
19
19
|
import { browser } from '@atlaskit/linking-common/user-agent';
|
|
20
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
20
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
21
21
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
22
22
|
import LinkUrl from '@atlaskit/smart-card/link-url';
|
|
23
23
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
@@ -8,7 +8,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
8
8
|
import { Fragment } from 'react';
|
|
9
9
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
10
10
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
11
|
-
import Tabs
|
|
11
|
+
import Tabs from '@atlaskit/tabs/tabs';
|
|
12
|
+
import Tab from '@atlaskit/tabs/tab';
|
|
13
|
+
import TabList from '@atlaskit/tabs/tab-list';
|
|
12
14
|
import { LinkSearchError, testIds as searchErrorTestIds } from './link-search-error';
|
|
13
15
|
import { LinkSearchList, testIds as listTestIds } from './link-search-list';
|
|
14
16
|
import { ScrollingTabList } from './scrolling-tabs';
|
|
@@ -2,8 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
|
4
4
|
import { isFedRamp } from '@atlaskit/atlassian-context/is-fedramp';
|
|
5
|
-
import Button from '@atlaskit/button/
|
|
6
|
-
import Link from '@atlaskit/link';
|
|
5
|
+
import Button from '@atlaskit/button/default/button';
|
|
6
|
+
import Link from '@atlaskit/link/link';
|
|
7
7
|
import { GenericErrorSVG } from '../../../../common/generic-error-svg';
|
|
8
8
|
import { EmptyState } from '../../../../common/ui/empty-state';
|
|
9
9
|
export var CONTACT_SUPPORT_LINK = 'https://support.atlassian.com/contact/';
|
|
@@ -11,7 +11,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
11
11
|
import { forwardRef, Fragment, useCallback, useRef } from 'react';
|
|
12
12
|
import { defineMessages, FormattedMessage } from 'react-intl';
|
|
13
13
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
14
|
-
import Spinner from '@atlaskit/spinner';
|
|
14
|
+
import Spinner from '@atlaskit/spinner/spinner';
|
|
15
15
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
16
16
|
import { MinHeightContainer } from '../../../../common/ui/min-height-container';
|
|
17
17
|
import { handleNavKeyDown } from '../../../../common/utils/handleNavKeyDown';
|
package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defineMessages, useIntl } from 'react-intl';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
import { EmptyState } from '../../../../../common/ui/empty-state';
|
|
5
5
|
import { NoResultsSVG } from './no-results-svg';
|
|
6
6
|
export var messages = defineMessages({
|
|
@@ -6,7 +6,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import { forwardRef, Fragment } from 'react';
|
|
7
7
|
import { useIntl } from 'react-intl';
|
|
8
8
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
9
|
-
/* eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports */
|
|
10
9
|
import { transformTimeStamp } from '../../../transformTimeStamp';
|
|
11
10
|
export var testIds = {
|
|
12
11
|
searchResultItem: 'link-search-list-item',
|
package/dist/esm/ui/link-picker/search-results/link-search-list/use-track-results-shown/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import { useEffect, useMemo, useRef } from 'react';
|
|
3
3
|
import { useDebounce } from 'use-debounce';
|
|
4
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
4
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
5
5
|
import { ANALYTICS_CHANNEL } from '../../../../../common/constants';
|
|
6
6
|
import createEventPayload from '../../../../../common/utils/analytics/analytics.codegen';
|
|
7
7
|
var DEBOUNCE_MS = 400;
|
|
@@ -7,7 +7,7 @@ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol
|
|
|
7
7
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
8
8
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
9
9
|
import React, { useCallback, useMemo, useRef, useState } from 'react';
|
|
10
|
-
import
|
|
10
|
+
import IconButton from '@atlaskit/button/icon/button';
|
|
11
11
|
import ChevronLeftIcon from '@atlaskit/icon/core/chevron-left';
|
|
12
12
|
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
13
13
|
import { calculateConditionalButtons, createGhost, getTabList, scrollBack, scrollForward } from './scrolling-tabs';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { useLayoutEffect } from 'react';
|
|
6
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
6
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
7
7
|
import { ANALYTICS_CHANNEL } from '../../../../common/constants';
|
|
8
8
|
import createEventPayload from '../../../../common/utils/analytics/analytics.codegen';
|
|
9
9
|
export function TrackTabViewed(_ref) {
|
|
@@ -6,12 +6,15 @@ import "./index.compiled.css";
|
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import React, { Fragment, useCallback, useMemo, useRef } from 'react';
|
|
8
8
|
import { useMergeRefs } from 'use-callback-ref';
|
|
9
|
-
import { ErrorMessage
|
|
9
|
+
import { ErrorMessage } from '@atlaskit/form/error-message';
|
|
10
|
+
import Field from '@atlaskit/form/field';
|
|
11
|
+
import { HelperMessage } from '@atlaskit/form/helper-message';
|
|
12
|
+
import { MessageWrapper } from '@atlaskit/form/message-wrapper';
|
|
10
13
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
15
|
import { Box, Pressable } from '@atlaskit/primitives/compiled';
|
|
13
|
-
import Textfield from '@atlaskit/textfield';
|
|
14
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
16
|
+
import Textfield from '@atlaskit/textfield/text-field';
|
|
17
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
15
18
|
import { ConditionalSpotlightTargetWrapper } from './conditional-spotlight-target-wrapper';
|
|
16
19
|
import { isRedoEvent, isUndoEvent } from './utils';
|
|
17
20
|
var styles = {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { useLayoutEffect } from 'react';
|
|
6
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
6
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
7
7
|
import { succeedUfoExperience, ufoExperience } from '../../../common/analytics/experiences';
|
|
8
8
|
import { ANALYTICS_CHANNEL } from '../../../common/constants';
|
|
9
9
|
import createEventPayload from '../../../common/utils/analytics/analytics.codegen';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import Spinner from '@atlaskit/spinner';
|
|
5
|
+
import Spinner from '@atlaskit/spinner/spinner';
|
|
6
6
|
import { MinHeightContainer } from '../../common/ui/min-height-container';
|
|
7
7
|
var styles = null;
|
|
8
8
|
var LINK_PICKER_MIN_HEIGHT_IN_PX_WITH_TABS_WITHOUT_DISPLAYTEXT = '495px';
|
package/dist/esm/ui/main.js
CHANGED
|
@@ -6,7 +6,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import React, { memo } from 'react';
|
|
7
7
|
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
8
8
|
import { LazySuspense } from 'react-loosely-lazy';
|
|
9
|
-
import
|
|
9
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
10
10
|
import { COMPONENT_NAME, LINK_PICKER_WIDTH_IN_PX } from '../common/constants';
|
|
11
11
|
import { LinkPickerSessionProvider } from '../controllers/session-provider';
|
|
12
12
|
import { ErrorBoundary } from './error-boundary';
|
|
@@ -17,7 +17,7 @@ export var testIds = {
|
|
|
17
17
|
};
|
|
18
18
|
export var PACKAGE_DATA = {
|
|
19
19
|
packageName: "@atlaskit/link-picker" || '',
|
|
20
|
-
packageVersion: "6.4.
|
|
20
|
+
packageVersion: "6.4.6" || '',
|
|
21
21
|
componentName: COMPONENT_NAME,
|
|
22
22
|
source: COMPONENT_NAME
|
|
23
23
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode, Ref } from 'react';
|
|
2
2
|
import type { MessageDescriptor } from 'react-intl';
|
|
3
|
-
import type
|
|
3
|
+
import type UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
|
|
4
4
|
import type { CardAppearance } from '@atlaskit/linking-common';
|
|
5
5
|
export type LinkInputType = 'manual' | 'typeAhead';
|
|
6
6
|
export interface LinkSearchListItemData {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @jsxFrag React.Fragment
|
|
5
5
|
*/
|
|
6
6
|
import React, { type Ref } from 'react';
|
|
7
|
-
import {
|
|
7
|
+
import type { TextfieldProps as TextFieldProps } from '@atlaskit/textfield/types';
|
|
8
8
|
import { type ConditionalSpotlightTargetWrapperProps } from './conditional-spotlight-target-wrapper';
|
|
9
9
|
export type TextInputProps = Omit<TextFieldProps, 'name' | 'value'> & Pick<ConditionalSpotlightTargetWrapperProps, 'spotlightTargetName'> & {
|
|
10
10
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-picker",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.5.0",
|
|
4
4
|
"description": "Standalone link picker",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|
|
@@ -51,30 +51,30 @@
|
|
|
51
51
|
"@atlaskit/afm-i18n-platform-linking-platform-link-picker": "2.201.0",
|
|
52
52
|
"@atlaskit/analytics-next": "^12.3.0",
|
|
53
53
|
"@atlaskit/atlassian-context": "^1.1.0",
|
|
54
|
-
"@atlaskit/button": "^25.
|
|
54
|
+
"@atlaskit/button": "^25.2.0",
|
|
55
55
|
"@atlaskit/css": "^1.0.0",
|
|
56
|
-
"@atlaskit/form": "^17.
|
|
56
|
+
"@atlaskit/form": "^17.1.0",
|
|
57
57
|
"@atlaskit/frontend-utilities": "^4.1.0",
|
|
58
|
-
"@atlaskit/heading": "^7.
|
|
59
|
-
"@atlaskit/icon": "^37.
|
|
58
|
+
"@atlaskit/heading": "^7.1.0",
|
|
59
|
+
"@atlaskit/icon": "^37.5.0",
|
|
60
60
|
"@atlaskit/intl-messages-provider": "^4.2.0",
|
|
61
|
-
"@atlaskit/link": "^5.
|
|
62
|
-
"@atlaskit/link-provider": "^5.
|
|
63
|
-
"@atlaskit/linking-common": "^
|
|
61
|
+
"@atlaskit/link": "^5.1.0",
|
|
62
|
+
"@atlaskit/link-provider": "^5.4.0",
|
|
63
|
+
"@atlaskit/linking-common": "^12.0.0",
|
|
64
64
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
65
|
-
"@atlaskit/primitives": "^22.
|
|
65
|
+
"@atlaskit/primitives": "^22.4.0",
|
|
66
66
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
67
|
-
"@atlaskit/smart-card": "^45.
|
|
68
|
-
"@atlaskit/spinner": "^20.
|
|
69
|
-
"@atlaskit/spotlight": "^4.
|
|
70
|
-
"@atlaskit/tabs": "^21.
|
|
71
|
-
"@atlaskit/textfield": "^10.
|
|
72
|
-
"@atlaskit/tokens": "^16.
|
|
73
|
-
"@atlaskit/tooltip": "^24.
|
|
67
|
+
"@atlaskit/smart-card": "^45.18.0",
|
|
68
|
+
"@atlaskit/spinner": "^20.3.0",
|
|
69
|
+
"@atlaskit/spotlight": "^4.2.0",
|
|
70
|
+
"@atlaskit/tabs": "^21.1.0",
|
|
71
|
+
"@atlaskit/textfield": "^10.1.0",
|
|
72
|
+
"@atlaskit/tokens": "^16.8.0",
|
|
73
|
+
"@atlaskit/tooltip": "^24.2.0",
|
|
74
74
|
"@atlaskit/ufo": "^1.0.0",
|
|
75
|
-
"@atlaskit/visually-hidden": "^4.
|
|
75
|
+
"@atlaskit/visually-hidden": "^4.3.0",
|
|
76
76
|
"@babel/runtime": "^7.0.0",
|
|
77
|
-
"@compiled/react": "^1.0.
|
|
77
|
+
"@compiled/react": "^1.0.2",
|
|
78
78
|
"@react-loosely-lazy/manifest": "^1.0.0",
|
|
79
79
|
"date-fns": "^2.17.0",
|
|
80
80
|
"react-loosely-lazy": "^1.0.0",
|
|
@@ -90,12 +90,18 @@
|
|
|
90
90
|
"@af/analytics-codegen": "workspace:^",
|
|
91
91
|
"@af/integration-testing": "workspace:^",
|
|
92
92
|
"@af/visual-regression": "workspace:^",
|
|
93
|
-
"@atlaskit/dropdown-menu": "^18.
|
|
94
|
-
"@atlaskit/link-
|
|
95
|
-
"@atlaskit/
|
|
96
|
-
"@
|
|
97
|
-
"@
|
|
93
|
+
"@atlaskit/dropdown-menu": "^18.2.0",
|
|
94
|
+
"@atlaskit/link-analytics": "^12.2.0",
|
|
95
|
+
"@atlaskit/link-test-helpers": "^11.1.0",
|
|
96
|
+
"@atlaskit/popup": "^6.2.0",
|
|
97
|
+
"@atlaskit/range": "^12.1.0",
|
|
98
|
+
"@atlaskit/toggle": "^17.2.0",
|
|
99
|
+
"@atlassian/a11y-jest-testing": "^0.16.0",
|
|
100
|
+
"@atlassian/a11y-playwright-testing": "^0.11.0",
|
|
98
101
|
"@atlassian/feature-flags-test-utils": "^1.2.0",
|
|
102
|
+
"@atlassian/link-picker-atlassian-plugin": "^39.4.0",
|
|
103
|
+
"@atlassian/link-picker-plugins": "^32.2.0",
|
|
104
|
+
"@atlassian/recent-work-client": "^2.21.0",
|
|
99
105
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
100
106
|
"@testing-library/dom": "^10.1.0",
|
|
101
107
|
"@testing-library/jest-dom": "^6.4.5",
|
package/link-picker.docs.tsx
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Testing structured MCP docs for review — ignore this file.
|
|
3
|
-
* Contact #dst-structured-content in Slack with questions.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import path from 'path';
|
|
7
|
-
|
|
8
|
-
import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
|
|
9
|
-
|
|
10
|
-
import packageJson from './package.json';
|
|
11
|
-
|
|
12
|
-
const packagePath = path.resolve(__dirname);
|
|
13
|
-
|
|
14
|
-
const documentation: StructuredContentSource = {
|
|
15
|
-
components: [
|
|
16
|
-
{
|
|
17
|
-
name: 'LinkPicker',
|
|
18
|
-
description:
|
|
19
|
-
'Standalone link picker UI that lets users search and select links to insert. Supports plugins for different data sources (recents, search, Jira, Confluence, etc.) and can be used in modals, popups, or inline.',
|
|
20
|
-
status: 'general-availability',
|
|
21
|
-
import: {
|
|
22
|
-
name: 'LinkPicker',
|
|
23
|
-
package: '@atlaskit/link-picker',
|
|
24
|
-
type: 'named',
|
|
25
|
-
packagePath,
|
|
26
|
-
packageJson,
|
|
27
|
-
},
|
|
28
|
-
usageGuidelines: [
|
|
29
|
-
'Use when the user needs to choose a link to insert (e.g. in an editor, form, or toolbar). Add plugins to define tabs and data sources; use SmartCardProvider above the picker so selected links resolve correctly.',
|
|
30
|
-
],
|
|
31
|
-
contentGuidelines: [],
|
|
32
|
-
accessibilityGuidelines: [
|
|
33
|
-
'Ensure the picker is focusable and has an accessible name (e.g. "Insert link"). Provide a keyboard-accessible way to open and close; ensure search and results are announced to screen readers.',
|
|
34
|
-
],
|
|
35
|
-
keywords: ['link-picker', 'link', 'picker', 'search', 'insert link', 'plugins'],
|
|
36
|
-
categories: ['linking', 'interaction', 'forms'],
|
|
37
|
-
examples: [
|
|
38
|
-
{
|
|
39
|
-
name: 'Link Picker (basic)',
|
|
40
|
-
description:
|
|
41
|
-
'Basic LinkPicker with URL input and submit. Requires plugins for search results.',
|
|
42
|
-
source: path.resolve(packagePath, './examples/00-basic.tsx'),
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
name: 'Link Picker (without plugins)',
|
|
46
|
-
description: 'LinkPicker without plugins — manual URL entry only.',
|
|
47
|
-
source: path.resolve(packagePath, './examples/20-without-plugins.tsx'),
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
},
|
|
51
|
-
// Needs examples
|
|
52
|
-
// {
|
|
53
|
-
// name: 'LoaderFallback',
|
|
54
|
-
// description: 'Fallback UI shown while the LinkPicker (or its lazy-loaded parts) are loading.',
|
|
55
|
-
// status: 'general-availability',
|
|
56
|
-
// import: {
|
|
57
|
-
// name: 'LoaderFallback',
|
|
58
|
-
// package: '@atlaskit/link-picker',
|
|
59
|
-
// type: 'named',
|
|
60
|
-
// packagePath,
|
|
61
|
-
// packageJson,
|
|
62
|
-
// },
|
|
63
|
-
// usageGuidelines: [
|
|
64
|
-
// 'Use when rendering LinkPicker lazily (e.g. via react-loosely-lazy) to show a consistent loading state until the picker is ready.',
|
|
65
|
-
// ],
|
|
66
|
-
// contentGuidelines: [],
|
|
67
|
-
// accessibilityGuidelines: [
|
|
68
|
-
// 'Ensure the fallback is announced as loading (e.g. aria-busy or live region) so screen reader users know content is pending.',
|
|
69
|
-
// ],
|
|
70
|
-
// keywords: ['link-picker', 'loader', 'fallback', 'lazy'],
|
|
71
|
-
// categories: ['linking', 'interaction'],
|
|
72
|
-
// examples: [],
|
|
73
|
-
// },
|
|
74
|
-
],
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
export default documentation;
|