@contentful/field-editor-markdown 1.5.1 → 1.5.2
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/dist/types/MarkdownEditor.d.ts +2 -2
- package/dist/types/__fixtures__/FakeSdk.d.ts +2 -2
- package/dist/types/components/MarkdownConstraints.d.ts +2 -2
- package/dist/types/dialogs/ZenModeModalDialog.d.ts +2 -2
- package/dist/types/dialogs/openMarkdownDialog.d.ts +2 -2
- package/dist/types/dialogs/renderMarkdownDialog.d.ts +2 -2
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { FieldAppSDK } from '@contentful/app-sdk';
|
|
3
3
|
import { PreviewComponents } from './types';
|
|
4
4
|
export interface MarkdownEditorProps {
|
|
5
5
|
/**
|
|
@@ -10,7 +10,7 @@ export interface MarkdownEditorProps {
|
|
|
10
10
|
* Minimum height to set for the markdown text area and preview
|
|
11
11
|
*/
|
|
12
12
|
minHeight?: string | number;
|
|
13
|
-
sdk:
|
|
13
|
+
sdk: FieldAppSDK;
|
|
14
14
|
previewComponents?: PreviewComponents;
|
|
15
15
|
onReady?: Function;
|
|
16
16
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldAppSDK } from '@contentful/app-sdk';
|
|
2
2
|
import { Emitter } from 'mitt';
|
|
3
3
|
export type ReferenceEditorSdkProps = {
|
|
4
4
|
initialValue?: any;
|
|
5
5
|
validations?: any;
|
|
6
6
|
fetchDelay?: number;
|
|
7
7
|
};
|
|
8
|
-
export declare function newReferenceEditorFakeSdk(props?: ReferenceEditorSdkProps): [
|
|
8
|
+
export declare function newReferenceEditorFakeSdk(props?: ReferenceEditorSdkProps): [FieldAppSDK, Emitter];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { FieldAppSDK } from '@contentful/app-sdk';
|
|
3
3
|
export declare function MarkdownConstraints(props: {
|
|
4
|
-
sdk:
|
|
4
|
+
sdk: FieldAppSDK;
|
|
5
5
|
value: string;
|
|
6
6
|
}): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { DialogAppSDK, DialogsAPI } from '@contentful/app-sdk';
|
|
3
3
|
import { PreviewComponents } from '../types';
|
|
4
4
|
export type ZenModeResult = {
|
|
5
5
|
value: string;
|
|
@@ -13,7 +13,7 @@ type ZenModeDialogProps = {
|
|
|
13
13
|
onClose: (result: ZenModeResult) => void;
|
|
14
14
|
initialValue: string;
|
|
15
15
|
locale: string;
|
|
16
|
-
sdk:
|
|
16
|
+
sdk: DialogAppSDK;
|
|
17
17
|
previewComponents?: PreviewComponents;
|
|
18
18
|
};
|
|
19
19
|
export declare const ZenModeModalDialog: (props: ZenModeDialogProps) => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldAppSDK, OpenCustomWidgetOptions } from '@contentful/app-sdk';
|
|
2
2
|
import { MarkdownDialogsParams, PreviewComponents } from '../types';
|
|
3
|
-
export declare const openMarkdownDialog: (sdk:
|
|
3
|
+
export declare const openMarkdownDialog: (sdk: FieldAppSDK, previewComponents?: PreviewComponents) => (options: OpenCustomWidgetOptions & {
|
|
4
4
|
parameters?: MarkdownDialogsParams;
|
|
5
5
|
}) => Promise<unknown>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { DialogAppSDK } from '@contentful/app-sdk';
|
|
3
3
|
import { MarkdownDialogsParams } from '../types';
|
|
4
|
-
export declare const renderMarkdownDialog: (sdk:
|
|
4
|
+
export declare const renderMarkdownDialog: (sdk: DialogAppSDK & {
|
|
5
5
|
parameters: {
|
|
6
6
|
invocation: MarkdownDialogsParams;
|
|
7
7
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-markdown",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@contentful/f36-components": "^4.0.27",
|
|
39
39
|
"@contentful/f36-icons": "^4.1.0",
|
|
40
40
|
"@contentful/f36-tokens": "^4.0.0",
|
|
41
|
-
"@contentful/field-editor-shared": "^1.4.
|
|
41
|
+
"@contentful/field-editor-shared": "^1.4.2",
|
|
42
42
|
"@types/codemirror": "0.0.109",
|
|
43
43
|
"codemirror": "^5.65.11",
|
|
44
44
|
"constate": "^3.2.0",
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@babel/core": "^7.5.5",
|
|
54
|
-
"@contentful/app-sdk": "^4.
|
|
55
|
-
"@contentful/field-editor-test-utils": "^1.4.
|
|
54
|
+
"@contentful/app-sdk": "^4.17.1",
|
|
55
|
+
"@contentful/field-editor-test-utils": "^1.4.3"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@contentful/app-sdk": "^4.
|
|
58
|
+
"@contentful/app-sdk": "^4.17.1",
|
|
59
59
|
"react": ">=16.8.0"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "ef0adb263ad287e6f78888a05727d0f2f4f8968d"
|
|
62
62
|
}
|