@contentful/field-editor-shared 1.4.1 → 1.4.4
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/cjs/index.js +4 -4
- package/dist/cjs/typesEntity.js +2 -2
- package/dist/cjs/utils/entityHelpers.js +1 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/typesEntity.js +1 -1
- package/dist/esm/utils/entityHelpers.js +1 -2
- package/dist/types/CharCounter.d.ts +2 -2
- package/dist/types/CharValidation.d.ts +2 -2
- package/dist/types/PredefinedValuesError.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/typesEntity.d.ts +1 -1
- package/package.json +8 -5
package/dist/cjs/index.js
CHANGED
|
@@ -15,8 +15,8 @@ _export(exports, {
|
|
|
15
15
|
AppConfigAPI: function() {
|
|
16
16
|
return _appsdk.AppConfigAPI;
|
|
17
17
|
},
|
|
18
|
-
|
|
19
|
-
return _appsdk.
|
|
18
|
+
BaseAppSDK: function() {
|
|
19
|
+
return _appsdk.BaseAppSDK;
|
|
20
20
|
},
|
|
21
21
|
ContentType: function() {
|
|
22
22
|
return _appsdk.ContentType;
|
|
@@ -33,8 +33,8 @@ _export(exports, {
|
|
|
33
33
|
FieldAPI: function() {
|
|
34
34
|
return _appsdk.FieldAPI;
|
|
35
35
|
},
|
|
36
|
-
|
|
37
|
-
return _appsdk.
|
|
36
|
+
FieldAppSDK: function() {
|
|
37
|
+
return _appsdk.FieldAppSDK;
|
|
38
38
|
},
|
|
39
39
|
IdsAPI: function() {
|
|
40
40
|
return _appsdk.IdsAPI;
|
package/dist/cjs/typesEntity.js
CHANGED
|
@@ -39,14 +39,13 @@ _export(exports, {
|
|
|
39
39
|
});
|
|
40
40
|
const _get = _interop_require_default(require("lodash/get"));
|
|
41
41
|
const _isObject = _interop_require_default(require("lodash/isObject"));
|
|
42
|
-
const _isString = _interop_require_default(require("lodash/isString"));
|
|
43
42
|
function _interop_require_default(obj) {
|
|
44
43
|
return obj && obj.__esModule ? obj : {
|
|
45
44
|
default: obj
|
|
46
45
|
};
|
|
47
46
|
}
|
|
48
47
|
function titleOrDefault(title, defaultTitle) {
|
|
49
|
-
if (!(
|
|
48
|
+
if (!(title != null && typeof title.valueOf() === 'string')) {
|
|
50
49
|
return defaultTitle;
|
|
51
50
|
}
|
|
52
51
|
if (title) {
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AccessAPI, AppConfigAPI,
|
|
1
|
+
export { AccessAPI, AppConfigAPI, BaseAppSDK, ContentType, DialogsAPI, EntryAPI, EntryFieldAPI, FieldAPI, FieldAppSDK, IdsAPI, LocalesAPI, LocationAPI, NavigatorAPI, NotifierAPI, OpenCustomWidgetOptions, ParametersAPI, SpaceAPI, WindowAPI } from '@contentful/app-sdk';
|
|
2
2
|
export { CharCounter } from './CharCounter';
|
|
3
3
|
export { CharValidation } from './CharValidation';
|
|
4
4
|
export { FieldConnector } from './FieldConnector';
|
package/dist/esm/typesEntity.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { BaseAppSDK, ContentType, ContentTypeField, Link, Entry, Asset } from '@contentful/app-sdk';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import get from 'lodash/get';
|
|
2
2
|
import isObject from 'lodash/isObject';
|
|
3
|
-
import isString from 'lodash/isString';
|
|
4
3
|
function titleOrDefault(title, defaultTitle) {
|
|
5
|
-
if (!
|
|
4
|
+
if (!(title != null && typeof title.valueOf() === 'string')) {
|
|
6
5
|
return defaultTitle;
|
|
7
6
|
}
|
|
8
7
|
if (title) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
interface CharCounterProps {
|
|
3
3
|
value?: string;
|
|
4
4
|
checkConstraint: (n: number) => boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare function CharCounter(props: CharCounterProps):
|
|
6
|
+
export declare function CharCounter(props: CharCounterProps): JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { ValidationType } from './types';
|
|
3
3
|
interface CharValidationProps {
|
|
4
4
|
constraints: ValidationType;
|
|
5
5
|
}
|
|
6
|
-
export declare function CharValidation(props: CharValidationProps):
|
|
6
|
+
export declare function CharValidation(props: CharValidationProps): JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function PredefinedValuesError():
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function PredefinedValuesError(): JSX.Element;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AccessAPI, AppConfigAPI,
|
|
1
|
+
export { AccessAPI, AppConfigAPI, BaseAppSDK, ContentType, DialogsAPI, EntryAPI, EntryFieldAPI, FieldAPI, FieldAppSDK, IdsAPI, LocalesAPI, LocationAPI, NavigatorAPI, NotifierAPI, OpenCustomWidgetOptions, ParametersAPI, SpaceAPI, WindowAPI, } from '@contentful/app-sdk';
|
|
2
2
|
export { CharCounter } from './CharCounter';
|
|
3
3
|
export { CharValidation } from './CharValidation';
|
|
4
4
|
export { FieldConnector } from './FieldConnector';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { BaseAppSDK, ContentType, ContentTypeField, Link, Entry, Asset } from '@contentful/app-sdk';
|
|
2
2
|
export interface File {
|
|
3
3
|
fileName: string;
|
|
4
4
|
contentType: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-shared",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"tsc": "tsc -p ./ --noEmit"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@contentful/app-sdk": "^4.
|
|
39
|
-
"@contentful/field-editor-test-utils": "^1.4.
|
|
38
|
+
"@contentful/app-sdk": "^4.17.1",
|
|
39
|
+
"@contentful/field-editor-test-utils": "^1.4.5"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@contentful/f36-note": "^4.2.8",
|
|
@@ -45,8 +45,11 @@
|
|
|
45
45
|
"lodash": "^4.17.15"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@contentful/app-sdk": "^4.
|
|
48
|
+
"@contentful/app-sdk": "^4.17.1",
|
|
49
49
|
"react": ">=16.8.0"
|
|
50
50
|
},
|
|
51
|
-
"
|
|
51
|
+
"publishConfig": {
|
|
52
|
+
"registry": "https://npm.pkg.github.com/"
|
|
53
|
+
},
|
|
54
|
+
"gitHead": "b1f62d6b934520b6d4dc328921dd500381d1e22c"
|
|
52
55
|
}
|