@atlaskit/embedded-document 0.9.43 → 0.9.45
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 +12 -0
- package/dist/types/components/document.d.ts +5 -5
- package/dist/types/consumers/consumer.d.ts +1 -1
- package/dist/types/consumers/document-body.d.ts +2 -2
- package/dist/types/consumers/with-document-actions.d.ts +1 -1
- package/dist/types/context/context.d.ts +1 -1
- package/dist/types/provider/index.d.ts +1 -1
- package/dist/types/provider/provider.d.ts +1 -1
- package/dist/types/provider/service-provider.d.ts +3 -3
- package/dist/types-ts4.5/components/document.d.ts +5 -5
- package/dist/types-ts4.5/consumers/consumer.d.ts +1 -1
- package/dist/types-ts4.5/consumers/document-body.d.ts +2 -2
- package/dist/types-ts4.5/consumers/with-document-actions.d.ts +1 -1
- package/dist/types-ts4.5/context/context.d.ts +1 -1
- package/dist/types-ts4.5/provider/index.d.ts +1 -1
- package/dist/types-ts4.5/provider/provider.d.ts +1 -1
- package/dist/types-ts4.5/provider/service-provider.d.ts +3 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
import { EditorProps } from '@atlaskit/editor-core';
|
|
3
|
-
import { RendererProps } from '@atlaskit/renderer';
|
|
4
|
-
import { Props as BaseProps } from '../context/embedded-document';
|
|
5
|
-
import { Mode } from '../context/context';
|
|
6
|
-
import { 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
|
isLoading?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PureComponent } from 'react';
|
|
3
|
-
import { Actions, State } from '../context/context';
|
|
3
|
+
import { type Actions, type State } from '../context/context';
|
|
4
4
|
export interface Props<PropsFromState extends {}, PropsFromActions extends {}, RenderProps extends {}> {
|
|
5
5
|
stateMapper?: (state: State) => PropsFromState;
|
|
6
6
|
actionsMapper?: (actions: Actions) => PropsFromActions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
|
-
import { EditorProps } from '@atlaskit/editor-core';
|
|
3
|
-
import { 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,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PureComponent } from 'react';
|
|
3
|
-
import { Document as DocumentModel } from '../model';
|
|
3
|
+
import { type Document as DocumentModel } from '../model';
|
|
4
4
|
export interface Props {
|
|
5
5
|
render(actions: DocumentActions): React.ReactNode;
|
|
6
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Document } from '../model';
|
|
1
|
+
import { type Document } from '../model';
|
|
2
2
|
export interface Provider {
|
|
3
3
|
getDocument(documentId: string, language?: string): Promise<Document | null>;
|
|
4
4
|
getDocumentByObjectId(objectId: string, language?: string): Promise<Document | null>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ServiceConfig } from '@atlaskit/util-service-support';
|
|
2
|
-
import { Provider } from './provider';
|
|
3
|
-
import { 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 interface Config extends ServiceConfig {
|
|
5
5
|
}
|
|
6
6
|
export default class ServiceProvider implements Provider {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
import { EditorProps } from '@atlaskit/editor-core';
|
|
3
|
-
import { RendererProps } from '@atlaskit/renderer';
|
|
4
|
-
import { Props as BaseProps } from '../context/embedded-document';
|
|
5
|
-
import { Mode } from '../context/context';
|
|
6
|
-
import { 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
|
isLoading?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PureComponent } from 'react';
|
|
3
|
-
import { Actions, State } from '../context/context';
|
|
3
|
+
import { type Actions, type State } from '../context/context';
|
|
4
4
|
export interface Props<PropsFromState extends {}, PropsFromActions extends {}, RenderProps extends {}> {
|
|
5
5
|
stateMapper?: (state: State) => PropsFromState;
|
|
6
6
|
actionsMapper?: (actions: Actions) => PropsFromActions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
|
-
import { EditorProps } from '@atlaskit/editor-core';
|
|
3
|
-
import { 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,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PureComponent } from 'react';
|
|
3
|
-
import { Document as DocumentModel } from '../model';
|
|
3
|
+
import { type Document as DocumentModel } from '../model';
|
|
4
4
|
export interface Props {
|
|
5
5
|
render(actions: DocumentActions): React.ReactNode;
|
|
6
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Document } from '../model';
|
|
1
|
+
import { type Document } from '../model';
|
|
2
2
|
export interface Provider {
|
|
3
3
|
getDocument(documentId: string, language?: string): Promise<Document | null>;
|
|
4
4
|
getDocumentByObjectId(objectId: string, language?: string): Promise<Document | null>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ServiceConfig } from '@atlaskit/util-service-support';
|
|
2
|
-
import { Provider } from './provider';
|
|
3
|
-
import { 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 interface Config extends ServiceConfig {
|
|
5
5
|
}
|
|
6
6
|
export default class ServiceProvider implements Provider {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/embedded-document",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.45",
|
|
4
4
|
"description": "DEPRECATED Embedded Document component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"runReact18": false
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/button": "^17.
|
|
40
|
-
"@atlaskit/editor-common": "^
|
|
41
|
-
"@atlaskit/editor-core": "^193.
|
|
39
|
+
"@atlaskit/button": "^17.16.0",
|
|
40
|
+
"@atlaskit/editor-common": "^81.0.0",
|
|
41
|
+
"@atlaskit/editor-core": "^193.23.0",
|
|
42
42
|
"@atlaskit/editor-shared-styles": "^2.11.0",
|
|
43
43
|
"@atlaskit/renderer": "^109.29.0",
|
|
44
|
-
"@atlaskit/tokens": "1.49.
|
|
44
|
+
"@atlaskit/tokens": "1.49.1",
|
|
45
45
|
"@atlaskit/util-service-support": "^6.2.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0"
|
|
47
47
|
},
|