@atlaskit/embedded-confluence 2.21.0 → 3.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.
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type EditPageProps as Props } from '@atlassian/embedded-confluence-common';
3
3
  export type EditPageProps = Omit<Props, 'locale'>;
4
- export declare const EditPage: (props: EditPageProps) => JSX.Element;
4
+ export declare const EditPage: (props: EditPageProps) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
- import { type ComponentProps } from 'react';
1
+ import React, { type ComponentProps } from 'react';
2
2
  import { EditPage as Component } from './EditPage';
3
3
  export type EditPageProps = ComponentProps<typeof Component> & {
4
4
  locale?: string;
5
5
  };
6
- export declare const EditPage: (props: EditPageProps) => JSX.Element;
6
+ export declare const EditPage: (props: EditPageProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type PageProps as Props } from '@atlassian/embedded-confluence-common';
3
3
  export type PageProps = Omit<Props, 'viewComponent' | 'editComponent' | 'locale'>;
4
- export declare const Page: (props: PageProps) => JSX.Element;
4
+ export declare const Page: (props: PageProps) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
- import { type ComponentProps } from 'react';
1
+ import React, { type ComponentProps } from 'react';
2
2
  import { Page as Component } from './Page';
3
3
  export type PageProps = ComponentProps<typeof Component> & {
4
4
  locale?: string;
5
5
  };
6
- export declare const Page: (props: PageProps) => JSX.Element;
6
+ export declare const Page: (props: PageProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type ViewPageProps as Props } from '@atlassian/embedded-confluence-common';
3
3
  export type ViewPageProps = Omit<Props, 'locale'>;
4
- export declare const ViewPage: (props: ViewPageProps) => JSX.Element;
4
+ export declare const ViewPage: (props: ViewPageProps) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
- import { type ComponentProps } from 'react';
1
+ import React, { type ComponentProps } from 'react';
2
2
  import { ViewPage as Component } from './ViewPage';
3
3
  export type ViewPageProps = ComponentProps<typeof Component> & {
4
4
  locale?: string;
5
5
  };
6
- export declare const ViewPage: (props: ViewPageProps) => JSX.Element;
6
+ export declare const ViewPage: (props: ViewPageProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type EditPageProps as Props } from '@atlassian/embedded-confluence-common';
3
3
  export type EditPageProps = Omit<Props, 'locale'>;
4
- export declare const EditPage: (props: EditPageProps) => JSX.Element;
4
+ export declare const EditPage: (props: EditPageProps) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
- import { type ComponentProps } from 'react';
1
+ import React, { type ComponentProps } from 'react';
2
2
  import { EditPage as Component } from './EditPage';
3
3
  export type EditPageProps = ComponentProps<typeof Component> & {
4
4
  locale?: string;
5
5
  };
6
- export declare const EditPage: (props: EditPageProps) => JSX.Element;
6
+ export declare const EditPage: (props: EditPageProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type PageProps as Props } from '@atlassian/embedded-confluence-common';
3
3
  export type PageProps = Omit<Props, 'viewComponent' | 'editComponent' | 'locale'>;
4
- export declare const Page: (props: PageProps) => JSX.Element;
4
+ export declare const Page: (props: PageProps) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
- import { type ComponentProps } from 'react';
1
+ import React, { type ComponentProps } from 'react';
2
2
  import { Page as Component } from './Page';
3
3
  export type PageProps = ComponentProps<typeof Component> & {
4
4
  locale?: string;
5
5
  };
6
- export declare const Page: (props: PageProps) => JSX.Element;
6
+ export declare const Page: (props: PageProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type ViewPageProps as Props } from '@atlassian/embedded-confluence-common';
3
3
  export type ViewPageProps = Omit<Props, 'locale'>;
4
- export declare const ViewPage: (props: ViewPageProps) => JSX.Element;
4
+ export declare const ViewPage: (props: ViewPageProps) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
- import { type ComponentProps } from 'react';
1
+ import React, { type ComponentProps } from 'react';
2
2
  import { ViewPage as Component } from './ViewPage';
3
3
  export type ViewPageProps = ComponentProps<typeof Component> & {
4
4
  locale?: string;
5
5
  };
6
- export declare const ViewPage: (props: ViewPageProps) => JSX.Element;
6
+ export declare const ViewPage: (props: ViewPageProps) => React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/embedded-confluence",
3
- "version": "2.21.0",
3
+ "version": "3.0.0",
4
4
  "description": "Embedded Confluence components for public consumption.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,8 +38,8 @@
38
38
  "react-intl-next": "npm:react-intl@^5.18.1"
39
39
  },
40
40
  "peerDependencies": {
41
- "react": "^16.8.0 || ^17.0.0 || ^18.2.0",
42
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.2.0"
41
+ "react": "^18.2.0",
42
+ "react-dom": "^18.2.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@testing-library/react": "^13.4.0",