@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 CHANGED
@@ -15,8 +15,8 @@ _export(exports, {
15
15
  AppConfigAPI: function() {
16
16
  return _appsdk.AppConfigAPI;
17
17
  },
18
- BaseExtensionSDK: function() {
19
- return _appsdk.BaseExtensionSDK;
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
- FieldExtensionSDK: function() {
37
- return _appsdk.FieldExtensionSDK;
36
+ FieldAppSDK: function() {
37
+ return _appsdk.FieldAppSDK;
38
38
  },
39
39
  IdsAPI: function() {
40
40
  return _appsdk.IdsAPI;
@@ -9,8 +9,8 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- BaseExtensionSDK: function() {
13
- return _appsdk.BaseExtensionSDK;
12
+ BaseAppSDK: function() {
13
+ return _appsdk.BaseAppSDK;
14
14
  },
15
15
  ContentType: function() {
16
16
  return _appsdk.ContentType;
@@ -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 (!(0, _isString.default)(title)) {
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, BaseExtensionSDK, ContentType, DialogsAPI, EntryAPI, EntryFieldAPI, FieldAPI, FieldExtensionSDK, IdsAPI, LocalesAPI, LocationAPI, NavigatorAPI, NotifierAPI, OpenCustomWidgetOptions, ParametersAPI, SpaceAPI, WindowAPI } from '@contentful/app-sdk';
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 +1 @@
1
- export { BaseExtensionSDK, ContentType, ContentTypeField, Link, Entry, Asset } from '@contentful/app-sdk';
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 (!isString(title)) {
4
+ if (!(title != null && typeof title.valueOf() === 'string')) {
6
5
  return defaultTitle;
7
6
  }
8
7
  if (title) {
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
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): React.JSX.Element;
6
+ export declare function CharCounter(props: CharCounterProps): JSX.Element;
7
7
  export {};
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
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): React.JSX.Element;
6
+ export declare function CharValidation(props: CharValidationProps): JSX.Element;
7
7
  export {};
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export declare function PredefinedValuesError(): React.JSX.Element;
1
+ /// <reference types="react" />
2
+ export declare function PredefinedValuesError(): JSX.Element;
@@ -1,4 +1,4 @@
1
- export { AccessAPI, AppConfigAPI, BaseExtensionSDK, ContentType, DialogsAPI, EntryAPI, EntryFieldAPI, FieldAPI, FieldExtensionSDK, IdsAPI, LocalesAPI, LocationAPI, NavigatorAPI, NotifierAPI, OpenCustomWidgetOptions, ParametersAPI, SpaceAPI, WindowAPI, } from '@contentful/app-sdk';
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 { BaseExtensionSDK, ContentType, ContentTypeField, Link, Entry, Asset, } from '@contentful/app-sdk';
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.1",
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.2.0",
39
- "@contentful/field-editor-test-utils": "^1.4.2"
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.2.0",
48
+ "@contentful/app-sdk": "^4.17.1",
49
49
  "react": ">=16.8.0"
50
50
  },
51
- "gitHead": "0fc8da4aa8ad8603c3adf4bd77b26ba46de11e33"
51
+ "publishConfig": {
52
+ "registry": "https://npm.pkg.github.com/"
53
+ },
54
+ "gitHead": "b1f62d6b934520b6d4dc328921dd500381d1e22c"
52
55
  }