@atlaskit/embedded-document 6.0.1 → 6.0.3

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,19 @@
1
1
  # @atlaskit/embedded-document
2
2
 
3
+ ## 6.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 6.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`5979ce2baa3ea`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5979ce2baa3ea) -
14
+ Mechanical type-import autofix for rendering and provider packages.
15
+ - Updated dependencies
16
+
3
17
  ## 6.0.1
4
18
 
5
19
  ### Patch Changes
@@ -312,7 +312,7 @@ var EmbeddedDocument = exports.default = /*#__PURE__*/function (_Component) {
312
312
  renderTitle = _this$props3.renderTitle,
313
313
  renderToolbar = _this$props3.renderToolbar;
314
314
  return /*#__PURE__*/_react.default.createElement(_context7.Context.Provider, {
315
- // eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
315
+ // eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
316
316
  value: {
317
317
  value: this.state,
318
318
  actions: this.actions,
@@ -190,7 +190,7 @@ export default class EmbeddedDocument extends Component {
190
190
  renderToolbar
191
191
  } = this.props;
192
192
  return /*#__PURE__*/React.createElement(Context.Provider, {
193
- // eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
193
+ // eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
194
194
  value: {
195
195
  value: this.state,
196
196
  actions: this.actions,
@@ -304,7 +304,7 @@ var EmbeddedDocument = /*#__PURE__*/function (_Component) {
304
304
  renderTitle = _this$props3.renderTitle,
305
305
  renderToolbar = _this$props3.renderToolbar;
306
306
  return /*#__PURE__*/React.createElement(Context.Provider, {
307
- // eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
307
+ // eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
308
308
  value: {
309
309
  value: this.state,
310
310
  actions: this.actions,
@@ -1,9 +1,9 @@
1
1
  import React, { Component } from 'react';
2
- import { type EditorProps } from '@atlaskit/editor-core';
3
- import { type RendererProps } from '@atlaskit/renderer';
4
- import { type Props as BaseProps } from '../context/embedded-document';
5
- import { type Mode } from '../context/context';
6
- import { type Document as DocumentModel } from '../model';
2
+ import type { EditorProps } from '@atlaskit/editor-core';
3
+ import type { RendererProps } from '@atlaskit/renderer';
4
+ import type { Props as BaseProps } from '../context/embedded-document';
5
+ import type { Mode } from '../context/context';
6
+ import type { Document as DocumentModel } from '../model';
7
7
  export interface Props extends BaseProps {
8
8
  doc?: DocumentModel;
9
9
  editorProps?: Partial<EditorProps>;
@@ -1,5 +1,5 @@
1
1
  import React, { PureComponent } from 'react';
2
- import { type Actions, type State } from '../context/context';
2
+ import type { Actions, State } from '../context/context';
3
3
  export interface Props<PropsFromState extends Object, PropsFromActions extends Object, RenderProps extends Object> {
4
4
  actionsMapper?: (actions: Actions) => PropsFromActions;
5
5
  children: (props: PropsFromState & PropsFromActions & RenderProps) => React.ReactNode;
@@ -1,6 +1,6 @@
1
1
  import React, { PureComponent } from 'react';
2
- import { type EditorProps } from '@atlaskit/editor-core';
3
- import { type RendererProps } from '@atlaskit/renderer';
2
+ import type { EditorProps } from '@atlaskit/editor-core';
3
+ import type { RendererProps } from '@atlaskit/renderer';
4
4
  export interface Props {
5
5
  editorProps?: Partial<EditorProps>;
6
6
  rendererProps?: Partial<RendererProps>;
@@ -1,5 +1,5 @@
1
1
  import React, { PureComponent } from 'react';
2
- import { type Document as DocumentModel } from '../model';
2
+ import type { Document as DocumentModel } from '../model';
3
3
  export interface Props {
4
4
  render: (actions: DocumentActions) => React.ReactNode;
5
5
  }
@@ -1,4 +1,4 @@
1
- import { type Document } from '../model';
1
+ import type { Document } from '../model';
2
2
  export interface ContextType {
3
3
  actions: Actions;
4
4
  renderProps: any;
@@ -1,4 +1,4 @@
1
- import { type Provider } from './provider';
1
+ import type { Provider } from './provider';
2
2
  export interface ProviderProps {
3
3
  provider?: Provider;
4
4
  url?: string;
@@ -1,4 +1,4 @@
1
- import { type Document } from '../model';
1
+ import type { Document } from '../model';
2
2
  export interface Provider {
3
3
  createDocument: (body: string, objectId: string, title?: string, language?: string) => Promise<Document | null>;
4
4
  getDocument: (documentId: string, language?: string) => Promise<Document | null>;
@@ -1,6 +1,6 @@
1
- import { type ServiceConfig } from '@atlaskit/util-service-support';
2
- import { type Provider } from './provider';
3
- import { type Document } from '../model';
1
+ import type { ServiceConfig } from '@atlaskit/util-service-support';
2
+ import type { Provider } from './provider';
3
+ import type { Document } from '../model';
4
4
  export type Config = ServiceConfig;
5
5
  export default class ServiceProvider implements Provider {
6
6
  private config;
@@ -1,9 +1,9 @@
1
1
  import React, { Component } from 'react';
2
- import { type EditorProps } from '@atlaskit/editor-core';
3
- import { type RendererProps } from '@atlaskit/renderer';
4
- import { type Props as BaseProps } from '../context/embedded-document';
5
- import { type Mode } from '../context/context';
6
- import { type Document as DocumentModel } from '../model';
2
+ import type { EditorProps } from '@atlaskit/editor-core';
3
+ import type { RendererProps } from '@atlaskit/renderer';
4
+ import type { Props as BaseProps } from '../context/embedded-document';
5
+ import type { Mode } from '../context/context';
6
+ import type { Document as DocumentModel } from '../model';
7
7
  export interface Props extends BaseProps {
8
8
  doc?: DocumentModel;
9
9
  editorProps?: Partial<EditorProps>;
@@ -1,5 +1,5 @@
1
1
  import React, { PureComponent } from 'react';
2
- import { type Actions, type State } from '../context/context';
2
+ import type { Actions, State } from '../context/context';
3
3
  export interface Props<PropsFromState extends Object, PropsFromActions extends Object, RenderProps extends Object> {
4
4
  actionsMapper?: (actions: Actions) => PropsFromActions;
5
5
  children: (props: PropsFromState & PropsFromActions & RenderProps) => React.ReactNode;
@@ -1,6 +1,6 @@
1
1
  import React, { PureComponent } from 'react';
2
- import { type EditorProps } from '@atlaskit/editor-core';
3
- import { type RendererProps } from '@atlaskit/renderer';
2
+ import type { EditorProps } from '@atlaskit/editor-core';
3
+ import type { RendererProps } from '@atlaskit/renderer';
4
4
  export interface Props {
5
5
  editorProps?: Partial<EditorProps>;
6
6
  rendererProps?: Partial<RendererProps>;
@@ -1,5 +1,5 @@
1
1
  import React, { PureComponent } from 'react';
2
- import { type Document as DocumentModel } from '../model';
2
+ import type { Document as DocumentModel } from '../model';
3
3
  export interface Props {
4
4
  render: (actions: DocumentActions) => React.ReactNode;
5
5
  }
@@ -1,4 +1,4 @@
1
- import { type Document } from '../model';
1
+ import type { Document } from '../model';
2
2
  export interface ContextType {
3
3
  actions: Actions;
4
4
  renderProps: any;
@@ -1,4 +1,4 @@
1
- import { type Provider } from './provider';
1
+ import type { Provider } from './provider';
2
2
  export interface ProviderProps {
3
3
  provider?: Provider;
4
4
  url?: string;
@@ -1,4 +1,4 @@
1
- import { type Document } from '../model';
1
+ import type { Document } from '../model';
2
2
  export interface Provider {
3
3
  createDocument: (body: string, objectId: string, title?: string, language?: string) => Promise<Document | null>;
4
4
  getDocument: (documentId: string, language?: string) => Promise<Document | null>;
@@ -1,6 +1,6 @@
1
- import { type ServiceConfig } from '@atlaskit/util-service-support';
2
- import { type Provider } from './provider';
3
- import { type Document } from '../model';
1
+ import type { ServiceConfig } from '@atlaskit/util-service-support';
2
+ import type { Provider } from './provider';
3
+ import type { Document } from '../model';
4
4
  export type Config = ServiceConfig;
5
5
  export default class ServiceProvider implements Provider {
6
6
  private config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/embedded-document",
3
- "version": "6.0.1",
3
+ "version": "6.0.3",
4
4
  "description": "DEPRECATED Embedded Document component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,16 +30,16 @@
30
30
  }
31
31
  },
32
32
  "dependencies": {
33
- "@atlaskit/button": "^23.10.0",
34
- "@atlaskit/editor-core": "^217.5.0",
33
+ "@atlaskit/button": "^23.11.0",
34
+ "@atlaskit/editor-core": "^217.12.0",
35
35
  "@atlaskit/editor-shared-styles": "^3.10.0",
36
- "@atlaskit/renderer": "^128.3.0",
37
- "@atlaskit/tokens": "^11.1.0",
36
+ "@atlaskit/renderer": "^128.9.0",
37
+ "@atlaskit/tokens": "^12.0.0",
38
38
  "@atlaskit/util-service-support": "^6.3.0",
39
39
  "@babel/runtime": "^7.0.0"
40
40
  },
41
41
  "peerDependencies": {
42
- "@atlaskit/editor-common": "^112.7.0",
42
+ "@atlaskit/editor-common": "^112.18.0",
43
43
  "react": "^18.2.0",
44
44
  "styled-components": "^3.2.6"
45
45
  },