@contentful/default-field-editors 1.5.8 → 1.5.10

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/README.md CHANGED
@@ -14,8 +14,8 @@ import '@contentful/field-editor-date/styles/styles.css';
14
14
  import { Field, FieldWrapper } from 'packages/default-field-editors';
15
15
 
16
16
  const fieldEditor = (
17
- <FieldWrapper sdk={fieldExtensionSdk} name={fieldName}>
18
- <Field sdk={fieldExtensionSdk} widgetId="singleLine" />
17
+ <FieldWrapper sdk={FieldAppSDK} name={fieldName}>
18
+ <Field sdk={FieldAppSDK} widgetId="singleLine" />
19
19
  </FieldWrapper>
20
20
  );
21
21
  ```
@@ -1,12 +1,12 @@
1
1
  import * as React from 'react';
2
- import type { FieldExtensionSDK } from '@contentful/field-editor-shared';
2
+ import type { FieldAppSDK } from '@contentful/field-editor-shared';
3
3
  import type { EditorOptions, WidgetType } from './types';
4
4
  type FieldProps = {
5
- sdk: FieldExtensionSDK;
5
+ sdk: FieldAppSDK;
6
6
  widgetId?: WidgetType;
7
7
  isInitiallyDisabled?: boolean;
8
- renderFieldEditor?: (widgetId: WidgetType, sdk: FieldExtensionSDK, isInitiallyDisabled: boolean) => JSX.Element | false;
9
- getOptions?: (widgetId: WidgetType, sdk: FieldExtensionSDK) => EditorOptions;
8
+ renderFieldEditor?: (widgetId: WidgetType, sdk: FieldAppSDK, isInitiallyDisabled: boolean) => JSX.Element | false;
9
+ getOptions?: (widgetId: WidgetType, sdk: FieldAppSDK) => EditorOptions;
10
10
  };
11
11
  export declare const Field: React.FC<FieldProps>;
12
12
  export {};
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
- import type { FieldExtensionSDK, Entry } from '@contentful/field-editor-shared';
2
+ import type { FieldAppSDK, Entry } from '@contentful/field-editor-shared';
3
3
  type FieldWrapperProps = {
4
4
  name: string;
5
- sdk: FieldExtensionSDK;
5
+ sdk: FieldAppSDK;
6
6
  /**
7
7
  * Generates a link to another entry with the same value when a "non unique" validation error occurs
8
8
  */
@@ -1,3 +1,3 @@
1
- import type { FieldExtensionSDK } from '@contentful/field-editor-shared';
1
+ import type { FieldAppSDK } from '@contentful/field-editor-shared';
2
2
  import type { WidgetType } from './types';
3
- export declare function getDefaultWidgetId(sdk: Pick<FieldExtensionSDK, 'field' | 'contentType'>): WidgetType;
3
+ export declare function getDefaultWidgetId(sdk: Pick<FieldAppSDK, 'field' | 'contentType'>): WidgetType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/default-field-editors",
3
- "version": "1.5.8",
3
+ "version": "1.5.10",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -36,34 +36,34 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@contentful/f36-components": "^4.0.27",
39
- "@contentful/field-editor-boolean": "^1.4.1",
40
- "@contentful/field-editor-checkbox": "^1.4.1",
41
- "@contentful/field-editor-date": "^1.6.1",
42
- "@contentful/field-editor-dropdown": "^1.4.1",
43
- "@contentful/field-editor-json": "^3.3.5",
44
- "@contentful/field-editor-list": "^1.4.1",
45
- "@contentful/field-editor-location": "^1.3.4",
46
- "@contentful/field-editor-markdown": "^1.5.1",
47
- "@contentful/field-editor-multiple-line": "^1.3.3",
48
- "@contentful/field-editor-number": "^1.3.3",
49
- "@contentful/field-editor-radio": "^1.4.1",
50
- "@contentful/field-editor-rating": "^1.4.1",
51
- "@contentful/field-editor-reference": "^5.16.2",
52
- "@contentful/field-editor-rich-text": "^3.12.3",
53
- "@contentful/field-editor-shared": "^1.4.1",
54
- "@contentful/field-editor-single-line": "^1.3.3",
55
- "@contentful/field-editor-slug": "^1.4.1",
56
- "@contentful/field-editor-tags": "^1.4.1",
57
- "@contentful/field-editor-url": "^1.3.3",
58
- "@contentful/field-editor-validation-errors": "^1.3.3",
39
+ "@contentful/field-editor-boolean": "^1.4.2",
40
+ "@contentful/field-editor-checkbox": "^1.4.2",
41
+ "@contentful/field-editor-date": "^1.6.2",
42
+ "@contentful/field-editor-dropdown": "^1.4.2",
43
+ "@contentful/field-editor-json": "^3.3.6",
44
+ "@contentful/field-editor-list": "^1.4.2",
45
+ "@contentful/field-editor-location": "^1.3.5",
46
+ "@contentful/field-editor-markdown": "^1.5.2",
47
+ "@contentful/field-editor-multiple-line": "^1.3.4",
48
+ "@contentful/field-editor-number": "^1.3.4",
49
+ "@contentful/field-editor-radio": "^1.4.2",
50
+ "@contentful/field-editor-rating": "^1.4.2",
51
+ "@contentful/field-editor-reference": "^5.16.3",
52
+ "@contentful/field-editor-rich-text": "^3.12.5",
53
+ "@contentful/field-editor-shared": "^1.4.2",
54
+ "@contentful/field-editor-single-line": "^1.3.4",
55
+ "@contentful/field-editor-slug": "^1.4.2",
56
+ "@contentful/field-editor-tags": "^1.4.2",
57
+ "@contentful/field-editor-url": "^1.3.4",
58
+ "@contentful/field-editor-validation-errors": "^1.3.4",
59
59
  "contentful-management": "^10.0.0",
60
60
  "emotion": "^10.0.27"
61
61
  },
62
62
  "devDependencies": {
63
- "@contentful/field-editor-test-utils": "^1.4.2"
63
+ "@contentful/field-editor-test-utils": "^1.4.3"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "react": ">=16.8.0"
67
67
  },
68
- "gitHead": "0fc8da4aa8ad8603c3adf4bd77b26ba46de11e33"
68
+ "gitHead": "ef0adb263ad287e6f78888a05727d0f2f4f8968d"
69
69
  }