@atlaskit/link-picker 4.2.21 → 4.2.22

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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/link-picker
2
2
 
3
+ ## 4.2.22
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3b4f9743f0c18`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3b4f9743f0c18) -
8
+ Enrol navigation and linking-platform packages into the React Compiler with platform gating via
9
+ isReactCompilerActivePlatform.
10
+ - Updated dependencies
11
+
3
12
  ## 4.2.21
4
13
 
5
14
  ### Patch Changes
@@ -23,4 +23,5 @@ var DeprecatedLazyLinkPickerExport = exports.DeprecatedLazyLinkPickerExport = _l
23
23
 
24
24
  // Must be a default export to be able to support prop docs
25
25
  // eslint-disable-next-line import/no-default-export
26
- var _default = exports.default = (0, _main.composeLinkPicker)(_linkPicker.LinkPicker);
26
+ var _default_1 = (0, _main.composeLinkPicker)(_linkPicker.LinkPicker);
27
+ var _default = exports.default = _default_1;
@@ -23,4 +23,5 @@ var LazyLinkPickerComponent = (0, _reactLooselyLazy.lazyForPaint)(function () {
23
23
 
24
24
  // Must be a default export to be able to support prop docs
25
25
  // eslint-disable-next-line import/no-default-export
26
- var _default = exports.default = (0, _main.composeLinkPicker)(LazyLinkPickerComponent);
26
+ var _default_1 = (0, _main.composeLinkPicker)(LazyLinkPickerComponent);
27
+ var _default = exports.default = _default_1;
@@ -17,4 +17,5 @@ export const DeprecatedLazyLinkPickerExport = LazyLinkPicker;
17
17
 
18
18
  // Must be a default export to be able to support prop docs
19
19
  // eslint-disable-next-line import/no-default-export
20
- export default composeLinkPicker(LinkPicker);
20
+ const _default_1 = composeLinkPicker(LinkPicker);
21
+ export default _default_1;
@@ -10,4 +10,5 @@ const LazyLinkPickerComponent = lazyForPaint(() => import( /* webpackChunkName:
10
10
 
11
11
  // Must be a default export to be able to support prop docs
12
12
  // eslint-disable-next-line import/no-default-export
13
- export default composeLinkPicker(LazyLinkPickerComponent);
13
+ const _default_1 = composeLinkPicker(LazyLinkPickerComponent);
14
+ export default _default_1;
@@ -17,4 +17,5 @@ export var DeprecatedLazyLinkPickerExport = LazyLinkPicker;
17
17
 
18
18
  // Must be a default export to be able to support prop docs
19
19
  // eslint-disable-next-line import/no-default-export
20
- export default composeLinkPicker(LinkPicker);
20
+ var _default_1 = composeLinkPicker(LinkPicker);
21
+ export default _default_1;
@@ -13,4 +13,5 @@ var LazyLinkPickerComponent = lazyForPaint(function () {
13
13
 
14
14
  // Must be a default export to be able to support prop docs
15
15
  // eslint-disable-next-line import/no-default-export
16
- export default composeLinkPicker(LazyLinkPickerComponent);
16
+ var _default_1 = composeLinkPicker(LazyLinkPickerComponent);
17
+ export default _default_1;
@@ -33,7 +33,7 @@ export var testIds = {
33
33
  actionButton: 'link-picker-action-button',
34
34
  submitStatusA11yIndicator: 'link-picker-submit-status-a11y-indicator'
35
35
  };
36
- export var FormFooter = /*#__PURE__*/memo(function (_ref) {
36
+ var FormFooter = /*#__PURE__*/memo(function (_ref) {
37
37
  var isLoading = _ref.isLoading,
38
38
  _ref$isSubmitting = _ref.isSubmitting,
39
39
  isSubmitting = _ref$isSubmitting === void 0 ? false : _ref$isSubmitting,
@@ -96,4 +96,5 @@ export var FormFooter = /*#__PURE__*/memo(function (_ref) {
96
96
  testId: testIds.insertButton,
97
97
  url: url
98
98
  })));
99
- });
99
+ });
100
+ export { FormFooter };
@@ -1,3 +1,4 @@
1
+ import { type Dispatch } from 'react';
1
2
  import { type LinkSearchListItemData } from '../../common/types';
2
3
  export interface PluginState {
3
4
  items: LinkSearchListItemData[] | null;
@@ -25,5 +26,5 @@ interface ResolveErrorAction {
25
26
  export type ReducerAction = ClearAction | ResolveLoadingAction | ResolveSuccessAction | ResolveErrorAction;
26
27
  export declare const INITIAL_STATE: PluginState;
27
28
  export declare function reducer(state: PluginState, action: ReducerAction): PluginState;
28
- export declare const usePluginReducer: () => [PluginState, import("react").Dispatch<ReducerAction>];
29
+ export declare const usePluginReducer: () => [PluginState, Dispatch<ReducerAction>];
29
30
  export {};
@@ -1,3 +1,5 @@
1
+ import type { MemoExoticComponent } from 'react';
2
+ import type { LinkPickerProps } from '../common/types';
1
3
  /**
2
4
  * @deprecated A `/lazy` entrypoint has been added.
3
5
  * @example Prefer the default export from the default entrypoint if you do not want a lazy-loaded version.
@@ -9,6 +11,6 @@
9
11
  * import { LazyLinkPicker } from '@atlaskit/link-picker/lazy';
10
12
  * ```
11
13
  */
12
- export declare const DeprecatedLazyLinkPickerExport: import("react").MemoExoticComponent<(props: import("..").LinkPickerProps) => JSX.Element>;
13
- declare const _default: import("react").MemoExoticComponent<(props: import("..").LinkPickerProps) => JSX.Element>;
14
- export default _default;
14
+ export declare const DeprecatedLazyLinkPickerExport: MemoExoticComponent<(props: LinkPickerProps) => JSX.Element>;
15
+ declare const _default_1: MemoExoticComponent<(props: LinkPickerProps) => JSX.Element>;
16
+ export default _default_1;
@@ -1,2 +1,4 @@
1
- declare const _default: import("react").MemoExoticComponent<(props: import("..").LinkPickerProps) => JSX.Element>;
2
- export default _default;
1
+ import type { MemoExoticComponent } from 'react';
2
+ import type { LinkPickerProps } from '../common/types';
3
+ declare const _default_1: MemoExoticComponent<(props: LinkPickerProps) => JSX.Element>;
4
+ export default _default_1;
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import { type MemoExoticComponent } from 'react';
1
6
  import { type MessageDescriptor } from 'react-intl-next';
2
7
  import { type LinkPickerPluginAction, type LinkPickerState, type LinkSearchListItemData } from '../../../common/types';
3
8
  export declare const messages: {
@@ -34,5 +39,5 @@ interface FormFooterProps extends React.HTMLAttributes<HTMLElement> {
34
39
  submitMessageId?: string;
35
40
  hideSubmitButton?: boolean;
36
41
  }
37
- export declare const FormFooter: import("react").MemoExoticComponent<({ isLoading, isSubmitting, error, url, queryState, items, isEditing, onCancel, action, customSubmitButtonLabel, submitMessageId, hideSubmitButton, className, ...restProps }: FormFooterProps) => JSX.Element | null>;
42
+ export declare const FormFooter: MemoExoticComponent<({ isLoading, isSubmitting, error, url, queryState, items, isEditing, onCancel, action, customSubmitButtonLabel, submitMessageId, hideSubmitButton, className, ...restProps }: FormFooterProps) => JSX.Element | null>;
38
43
  export {};
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import { type ComponentType } from 'react';
1
6
  import type { LinkPickerProps } from '../../common/types';
2
7
  export declare const testIds: {
3
8
  readonly urlError: string;
@@ -22,4 +27,4 @@ export declare const testIds: {
22
27
  readonly urlInputField: "link-url";
23
28
  readonly textInputField: "link-text";
24
29
  };
25
- export declare const LinkPicker: import("react").ComponentType<LinkPickerProps>;
30
+ export declare const LinkPicker: ComponentType<LinkPickerProps>;
@@ -2,7 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { type KeyboardEvent } from 'react';
5
+ import { type ForwardRefExoticComponent, type KeyboardEvent, type RefAttributes } from 'react';
6
6
  import { type LinkPickerPlugin, type LinkSearchListItemData } from '../../../../common/types';
7
7
  export declare const messages: {
8
8
  titleRecentlyViewedFormatted: {
@@ -51,5 +51,5 @@ export interface LinkSearchListProps extends Omit<React.HTMLAttributes<LinkSearc
51
51
  tabPanelId?: string;
52
52
  shouldRenderNoResultsImage?: boolean;
53
53
  }
54
- export declare const LinkSearchList: import("react").ForwardRefExoticComponent<LinkSearchListProps & import("react").RefAttributes<HTMLDivElement>>;
54
+ export declare const LinkSearchList: ForwardRefExoticComponent<LinkSearchListProps & RefAttributes<HTMLDivElement>>;
55
55
  export {};
@@ -2,7 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { type KeyboardEvent } from 'react';
5
+ import { type ForwardRefExoticComponent, type KeyboardEvent, type RefAttributes } from 'react';
6
6
  import { type LinkSearchListItemData } from '../../../../../common/types';
7
7
  export declare const testIds: {
8
8
  searchResultItem: string;
@@ -20,4 +20,4 @@ export type LinkSearchListItemProps = {
20
20
  role?: string;
21
21
  nameMaxLines?: number;
22
22
  };
23
- export declare const LinkSearchListItem: import("react").ForwardRefExoticComponent<LinkSearchListItemProps & import("react").RefAttributes<HTMLDivElement>>;
23
+ export declare const LinkSearchListItem: ForwardRefExoticComponent<LinkSearchListItemProps & RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,4 @@
1
+ import { type Dispatch } from 'react';
1
2
  import { type LinkSearchListItemData } from '../../common/types';
2
3
  export interface PluginState {
3
4
  items: LinkSearchListItemData[] | null;
@@ -27,6 +28,6 @@ export declare const INITIAL_STATE: PluginState;
27
28
  export declare function reducer(state: PluginState, action: ReducerAction): PluginState;
28
29
  export declare const usePluginReducer: () => [
29
30
  PluginState,
30
- import("react").Dispatch<ReducerAction>
31
+ Dispatch<ReducerAction>
31
32
  ];
32
33
  export {};
@@ -1,3 +1,5 @@
1
+ import type { MemoExoticComponent } from 'react';
2
+ import type { LinkPickerProps } from '../common/types';
1
3
  /**
2
4
  * @deprecated A `/lazy` entrypoint has been added.
3
5
  * @example Prefer the default export from the default entrypoint if you do not want a lazy-loaded version.
@@ -9,6 +11,6 @@
9
11
  * import { LazyLinkPicker } from '@atlaskit/link-picker/lazy';
10
12
  * ```
11
13
  */
12
- export declare const DeprecatedLazyLinkPickerExport: import("react").MemoExoticComponent<(props: import("..").LinkPickerProps) => JSX.Element>;
13
- declare const _default: import("react").MemoExoticComponent<(props: import("..").LinkPickerProps) => JSX.Element>;
14
- export default _default;
14
+ export declare const DeprecatedLazyLinkPickerExport: MemoExoticComponent<(props: LinkPickerProps) => JSX.Element>;
15
+ declare const _default_1: MemoExoticComponent<(props: LinkPickerProps) => JSX.Element>;
16
+ export default _default_1;
@@ -1,2 +1,4 @@
1
- declare const _default: import("react").MemoExoticComponent<(props: import("..").LinkPickerProps) => JSX.Element>;
2
- export default _default;
1
+ import type { MemoExoticComponent } from 'react';
2
+ import type { LinkPickerProps } from '../common/types';
3
+ declare const _default_1: MemoExoticComponent<(props: LinkPickerProps) => JSX.Element>;
4
+ export default _default_1;
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import { type MemoExoticComponent } from 'react';
1
6
  import { type MessageDescriptor } from 'react-intl-next';
2
7
  import { type LinkPickerPluginAction, type LinkPickerState, type LinkSearchListItemData } from '../../../common/types';
3
8
  export declare const messages: {
@@ -34,5 +39,5 @@ interface FormFooterProps extends React.HTMLAttributes<HTMLElement> {
34
39
  submitMessageId?: string;
35
40
  hideSubmitButton?: boolean;
36
41
  }
37
- export declare const FormFooter: import("react").MemoExoticComponent<({ isLoading, isSubmitting, error, url, queryState, items, isEditing, onCancel, action, customSubmitButtonLabel, submitMessageId, hideSubmitButton, className, ...restProps }: FormFooterProps) => JSX.Element | null>;
42
+ export declare const FormFooter: MemoExoticComponent<({ isLoading, isSubmitting, error, url, queryState, items, isEditing, onCancel, action, customSubmitButtonLabel, submitMessageId, hideSubmitButton, className, ...restProps }: FormFooterProps) => JSX.Element | null>;
38
43
  export {};
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import { type ComponentType } from 'react';
1
6
  import type { LinkPickerProps } from '../../common/types';
2
7
  export declare const testIds: {
3
8
  readonly urlError: string;
@@ -22,4 +27,4 @@ export declare const testIds: {
22
27
  readonly urlInputField: "link-url";
23
28
  readonly textInputField: "link-text";
24
29
  };
25
- export declare const LinkPicker: import("react").ComponentType<LinkPickerProps>;
30
+ export declare const LinkPicker: ComponentType<LinkPickerProps>;
@@ -2,7 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { type KeyboardEvent } from 'react';
5
+ import { type ForwardRefExoticComponent, type KeyboardEvent, type RefAttributes } from 'react';
6
6
  import { type LinkPickerPlugin, type LinkSearchListItemData } from '../../../../common/types';
7
7
  export declare const messages: {
8
8
  titleRecentlyViewedFormatted: {
@@ -51,5 +51,5 @@ export interface LinkSearchListProps extends Omit<React.HTMLAttributes<LinkSearc
51
51
  tabPanelId?: string;
52
52
  shouldRenderNoResultsImage?: boolean;
53
53
  }
54
- export declare const LinkSearchList: import("react").ForwardRefExoticComponent<LinkSearchListProps & import("react").RefAttributes<HTMLDivElement>>;
54
+ export declare const LinkSearchList: ForwardRefExoticComponent<LinkSearchListProps & RefAttributes<HTMLDivElement>>;
55
55
  export {};
@@ -2,7 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { type KeyboardEvent } from 'react';
5
+ import { type ForwardRefExoticComponent, type KeyboardEvent, type RefAttributes } from 'react';
6
6
  import { type LinkSearchListItemData } from '../../../../../common/types';
7
7
  export declare const testIds: {
8
8
  searchResultItem: string;
@@ -20,4 +20,4 @@ export type LinkSearchListItemProps = {
20
20
  role?: string;
21
21
  nameMaxLines?: number;
22
22
  };
23
- export declare const LinkSearchListItem: import("react").ForwardRefExoticComponent<LinkSearchListItemProps & import("react").RefAttributes<HTMLDivElement>>;
23
+ export declare const LinkSearchListItem: ForwardRefExoticComponent<LinkSearchListItemProps & RefAttributes<HTMLDivElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "4.2.21",
3
+ "version": "4.2.22",
4
4
  "description": "Standalone link picker",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
@@ -8,6 +8,13 @@
8
8
  },
9
9
  "license": "Apache-2.0",
10
10
  "atlassian": {
11
+ "react-compiler": {
12
+ "enabled": true,
13
+ "gating": {
14
+ "source": "@atlassian/react-compiler-gating",
15
+ "importSpecifierName": "isReactCompilerActivePlatform"
16
+ }
17
+ },
11
18
  "team": "Navigation Experiences - Linking Platform",
12
19
  "i18n": true,
13
20
  "website": {
@@ -88,6 +95,7 @@
88
95
  "@atlaskit/link-test-helpers": "^9.1.0",
89
96
  "@atlassian/a11y-jest-testing": "^0.11.0",
90
97
  "@atlassian/feature-flags-test-utils": "^1.0.0",
98
+ "@atlassian/react-compiler-gating": "workspace:^",
91
99
  "@testing-library/dom": "^10.1.0",
92
100
  "@testing-library/jest-dom": "^6.4.5",
93
101
  "@testing-library/react": "^16.3.0",