@contentful/field-editor-shared 1.2.0 → 1.3.0

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.
Files changed (50) hide show
  1. package/dist/cjs/CharCounter.js +75 -0
  2. package/dist/cjs/CharValidation.js +60 -0
  3. package/dist/cjs/FieldConnector.js +167 -0
  4. package/dist/cjs/FieldConnector.test.js +81 -0
  5. package/dist/cjs/ModalDialogLauncher.js +132 -0
  6. package/dist/cjs/PredefinedValuesError.js +57 -0
  7. package/dist/cjs/index.js +155 -0
  8. package/dist/cjs/types.js +4 -0
  9. package/dist/cjs/typesEntity.js +31 -0
  10. package/dist/cjs/utils/constraints.js +63 -0
  11. package/dist/cjs/utils/entityHelpers.js +214 -0
  12. package/dist/cjs/utils/isValidImage.js +26 -0
  13. package/dist/cjs/utils/shortenStorageUnit.js +55 -0
  14. package/dist/esm/CharCounter.js +21 -0
  15. package/dist/esm/CharValidation.js +11 -0
  16. package/dist/esm/FieldConnector.js +113 -0
  17. package/dist/esm/FieldConnector.test.js +33 -0
  18. package/dist/esm/ModalDialogLauncher.js +67 -0
  19. package/dist/esm/PredefinedValuesError.js +8 -0
  20. package/dist/esm/index.js +14 -0
  21. package/dist/esm/types.js +1 -0
  22. package/dist/esm/typesEntity.js +1 -0
  23. package/dist/esm/utils/constraints.js +40 -0
  24. package/dist/esm/utils/entityHelpers.js +170 -0
  25. package/dist/esm/utils/isValidImage.js +16 -0
  26. package/dist/esm/utils/shortenStorageUnit.js +37 -0
  27. package/dist/types/CharCounter.d.ts +7 -0
  28. package/dist/{CharValidation.d.ts → types/CharValidation.d.ts} +7 -7
  29. package/dist/{FieldConnector.d.ts → types/FieldConnector.d.ts} +47 -48
  30. package/dist/types/FieldConnector.test.d.ts +1 -0
  31. package/dist/{ModalDialogLauncher.d.ts → types/ModalDialogLauncher.d.ts} +13 -13
  32. package/dist/types/PredefinedValuesError.d.ts +2 -0
  33. package/dist/{index.d.ts → types/index.d.ts} +15 -15
  34. package/dist/{types.d.ts → types/types.d.ts} +11 -11
  35. package/dist/{typesEntity.d.ts → types/typesEntity.d.ts} +9 -9
  36. package/dist/{utils → types/utils}/constraints.d.ts +3 -3
  37. package/dist/{utils → types/utils}/entityHelpers.d.ts +68 -68
  38. package/dist/{utils → types/utils}/isValidImage.d.ts +5 -5
  39. package/dist/{utils → types/utils}/shortenStorageUnit.d.ts +17 -17
  40. package/package.json +26 -11
  41. package/CHANGELOG.md +0 -196
  42. package/dist/CharCounter.d.ts +0 -7
  43. package/dist/PredefinedValuesError.d.ts +0 -2
  44. package/dist/field-editor-shared.cjs.development.js +0 -634
  45. package/dist/field-editor-shared.cjs.development.js.map +0 -1
  46. package/dist/field-editor-shared.cjs.production.min.js +0 -2
  47. package/dist/field-editor-shared.cjs.production.min.js.map +0 -1
  48. package/dist/field-editor-shared.esm.js +0 -619
  49. package/dist/field-editor-shared.esm.js.map +0 -1
  50. package/dist/index.js +0 -8
@@ -1,68 +1,68 @@
1
- import { Asset, ContentType, ContentTypeField, Entry, File } from '../typesEntity';
2
- export declare function getFieldValue({
3
- /**
4
- * Expects an entity fetched with a flag Skip-Transformation: true
5
- */
6
- entity, fieldId, localeCode, defaultLocaleCode, }: {
7
- entity: {
8
- fields: {
9
- [key: string]: {
10
- [valueKey: string]: string | undefined;
11
- };
12
- };
13
- };
14
- fieldId: string;
15
- localeCode: string;
16
- defaultLocaleCode: string;
17
- }): string | undefined;
18
- export declare function getAssetTitle({ asset, localeCode, defaultLocaleCode, defaultTitle, }: {
19
- asset: Asset;
20
- localeCode: string;
21
- defaultLocaleCode: string;
22
- defaultTitle: string;
23
- }): string;
24
- /**
25
- * Returns true if field is an Asset
26
- *
27
- * @param field
28
- * @returns {boolean}
29
- */
30
- export declare const isAssetField: (field: ContentTypeField) => boolean;
31
- /**
32
- * Returns true if field is a Title
33
- */
34
- export declare function isDisplayField({ field, contentType, }: {
35
- field: ContentTypeField;
36
- contentType: ContentType;
37
- }): boolean;
38
- /**
39
- * Returns true if field is a short Description
40
- */
41
- export declare function isDescriptionField({ field, contentType, }: {
42
- field: ContentTypeField;
43
- contentType: ContentType;
44
- }): boolean;
45
- export declare function getEntityDescription({ entity, contentType, localeCode, defaultLocaleCode, }: {
46
- entity: Entry;
47
- contentType?: ContentType;
48
- localeCode: string;
49
- defaultLocaleCode: string;
50
- }): string;
51
- export declare function getEntryTitle({ entry, contentType, localeCode, defaultLocaleCode, defaultTitle, }: {
52
- entry: Entry;
53
- contentType?: ContentType;
54
- localeCode: string;
55
- defaultLocaleCode: string;
56
- defaultTitle: string;
57
- }): string;
58
- export declare function getEntryStatus(sys: Entry['sys']): "deleted" | "archived" | "changed" | "published" | "draft";
59
- /**
60
- * Gets a promise resolving with a localized asset image field representing a
61
- * given entities file. The promise may resolve with null.
62
- */
63
- export declare const getEntryImage: ({ entry, contentType, localeCode, }: {
64
- entry: Entry;
65
- contentType?: ContentType | undefined;
66
- localeCode: string;
67
- defaultLocaleCode: string;
68
- }, getAsset: (assetId: string) => Promise<unknown>) => Promise<null | File>;
1
+ import { Asset, ContentType, ContentTypeField, Entry, File } from '../typesEntity';
2
+ export declare function getFieldValue({
3
+ /**
4
+ * Expects an entity fetched with a flag Skip-Transformation: true
5
+ */
6
+ entity, fieldId, localeCode, defaultLocaleCode, }: {
7
+ entity: {
8
+ fields: {
9
+ [key: string]: {
10
+ [valueKey: string]: string | undefined;
11
+ };
12
+ };
13
+ };
14
+ fieldId: string;
15
+ localeCode: string;
16
+ defaultLocaleCode: string;
17
+ }): string | undefined;
18
+ export declare function getAssetTitle({ asset, localeCode, defaultLocaleCode, defaultTitle, }: {
19
+ asset: Asset;
20
+ localeCode: string;
21
+ defaultLocaleCode: string;
22
+ defaultTitle: string;
23
+ }): string;
24
+ /**
25
+ * Returns true if field is an Asset
26
+ *
27
+ * @param field
28
+ * @returns {boolean}
29
+ */
30
+ export declare const isAssetField: (field: ContentTypeField) => boolean;
31
+ /**
32
+ * Returns true if field is a Title
33
+ */
34
+ export declare function isDisplayField({ field, contentType, }: {
35
+ field: ContentTypeField;
36
+ contentType: ContentType;
37
+ }): boolean;
38
+ /**
39
+ * Returns true if field is a short Description
40
+ */
41
+ export declare function isDescriptionField({ field, contentType, }: {
42
+ field: ContentTypeField;
43
+ contentType: ContentType;
44
+ }): boolean;
45
+ export declare function getEntityDescription({ entity, contentType, localeCode, defaultLocaleCode, }: {
46
+ entity: Entry;
47
+ contentType?: ContentType;
48
+ localeCode: string;
49
+ defaultLocaleCode: string;
50
+ }): string;
51
+ export declare function getEntryTitle({ entry, contentType, localeCode, defaultLocaleCode, defaultTitle, }: {
52
+ entry: Entry;
53
+ contentType?: ContentType;
54
+ localeCode: string;
55
+ defaultLocaleCode: string;
56
+ defaultTitle: string;
57
+ }): string;
58
+ export declare function getEntryStatus(sys: Entry['sys']): "deleted" | "archived" | "changed" | "published" | "draft";
59
+ /**
60
+ * Gets a promise resolving with a localized asset image field representing a
61
+ * given entities file. The promise may resolve with null.
62
+ */
63
+ export declare const getEntryImage: ({ entry, contentType, localeCode, }: {
64
+ entry: Entry;
65
+ contentType?: ContentType | undefined;
66
+ localeCode: string;
67
+ defaultLocaleCode: string;
68
+ }, getAsset: (assetId: string) => Promise<unknown>) => Promise<null | File>;
@@ -1,5 +1,5 @@
1
- import { File } from '../typesEntity';
2
- /**
3
- * Checks whether the passed content type matches one of our valid MIME types
4
- */
5
- export declare function isValidImage(file: File): boolean;
1
+ import { File } from '../typesEntity';
2
+ /**
3
+ * Checks whether the passed content type matches one of our valid MIME types
4
+ */
5
+ export declare function isValidImage(file: File): boolean;
@@ -1,17 +1,17 @@
1
- /**
2
- * Transforms a number into a localized string (en-US)
3
- * toLocaleString(1000); // "1,000"
4
- * @param {Number} number
5
- */
6
- export declare function toLocaleString(number: number): string;
7
- declare type UnitOfMeasure = 'PB' | 'TB' | 'GB' | 'MB' | 'KB' | 'B';
8
- /**
9
- * Make a storage unit number more readable by making them smaller
10
- * shortenStorageUnit(1000, 'GB'); // "1 TB"
11
- * shortenStorageUnit(0.001, 'TB'); // "1 GB"
12
- * @param value
13
- * @param uom Unit of measure
14
- * @returns
15
- */
16
- export declare function shortenStorageUnit(value: number, uom: UnitOfMeasure): string;
17
- export {};
1
+ /**
2
+ * Transforms a number into a localized string (en-US)
3
+ * toLocaleString(1000); // "1,000"
4
+ * @param {Number} number
5
+ */
6
+ export declare function toLocaleString(number: number): string;
7
+ type UnitOfMeasure = 'PB' | 'TB' | 'GB' | 'MB' | 'KB' | 'B';
8
+ /**
9
+ * Make a storage unit number more readable by making them smaller
10
+ * shortenStorageUnit(1000, 'GB'); // "1 TB"
11
+ * shortenStorageUnit(0.001, 'TB'); // "1 GB"
12
+ * @param value
13
+ * @param uom Unit of measure
14
+ * @returns
15
+ */
16
+ export declare function shortenStorageUnit(value: number, uom: UnitOfMeasure): string;
17
+ export {};
package/package.json CHANGED
@@ -1,9 +1,17 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-shared",
3
- "version": "1.2.0",
4
- "main": "dist/index.js",
5
- "module": "dist/field-editor-shared.esm.js",
6
- "typings": "dist/index.d.ts",
3
+ "version": "1.3.0",
4
+ "main": "dist/cjs/index.js",
5
+ "module": "dist/esm/index.js",
6
+ "types": "dist/types/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/types/index.d.ts",
10
+ "require": "./dist/cjs/index.js",
11
+ "default": "./dist/cjs/index.js"
12
+ },
13
+ "./package.json": "./package.json"
14
+ },
7
15
  "files": [
8
16
  "dist"
9
17
  ],
@@ -14,25 +22,32 @@
14
22
  "url": "https://github.com/contentful/field-editors"
15
23
  },
16
24
  "scripts": {
17
- "watch": "tsdx watch",
18
- "build": "tsdx build",
19
- "test": "tsdx test --env=jsdom --watch",
20
- "test:ci": "tsdx test --env=jsdom --ci",
25
+ "watch": "yarn concurrently \"yarn:watch:*\"",
26
+ "watch:cjs": "yarn build:cjs -w",
27
+ "watch:esm": "yarn build:esm -w",
28
+ "watch:types": "yarn build:types --watch",
29
+ "build": "yarn build:types && yarn build:cjs && yarn build:esm",
30
+ "build:types": "tsc --outDir dist/types --emitDeclarationOnly",
31
+ "build:cjs": "swc src --config-file ../../.swcrc -d dist/cjs -C module.type=commonjs",
32
+ "build:esm": "swc src --config-file ../../.swcrc -d dist/esm",
33
+ "test": "jest --watch",
34
+ "test:ci": "jest --ci",
21
35
  "tsc": "tsc -p ./ --noEmit"
22
36
  },
23
37
  "devDependencies": {
24
- "@contentful/app-sdk": "^4.2.0"
38
+ "@contentful/app-sdk": "^4.2.0",
39
+ "@contentful/field-editor-test-utils": "^1.4.0"
25
40
  },
26
41
  "dependencies": {
27
42
  "@contentful/f36-note": "^4.2.8",
28
43
  "@contentful/f36-tokens": "^4.0.0",
29
44
  "emotion": "^10.0.17",
30
45
  "lodash": "^4.17.15",
31
- "lodash-es": "^4.17.15"
46
+ "lodash-es": "^4.17.21"
32
47
  },
33
48
  "peerDependencies": {
34
49
  "@contentful/app-sdk": "^4.2.0",
35
50
  "react": ">=16.8.0"
36
51
  },
37
- "gitHead": "de7e74e3485dd69c240cfe9c545e6e50e41fb295"
52
+ "gitHead": "543e02672a8dd4edc810f9f3568d6b69c454e1f9"
38
53
  }
package/CHANGELOG.md DELETED
@@ -1,196 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [1.2.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@1.1.8...@contentful/field-editor-shared@1.2.0) (2023-04-19)
7
-
8
- ### Features
9
-
10
- - upgrade cypress [TOL-1036] ([#1391](https://github.com/contentful/field-editors/issues/1391)) ([9c1aec9](https://github.com/contentful/field-editors/commit/9c1aec98aabbe464cdc3f1236c3bb1cc29b8208d))
11
-
12
- ## [1.1.8](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@1.1.7...@contentful/field-editor-shared@1.1.8) (2023-03-14)
13
-
14
- **Note:** Version bump only for package @contentful/field-editor-shared
15
-
16
- ## [1.1.7](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@1.1.6...@contentful/field-editor-shared@1.1.7) (2023-03-10)
17
-
18
- ### Bug Fixes
19
-
20
- - support disabling single line editor ([#1367](https://github.com/contentful/field-editors/issues/1367)) ([f8314ff](https://github.com/contentful/field-editors/commit/f8314fff446a3dcb482835424c7fca66c4f87f20))
21
-
22
- ## [1.1.6](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@1.1.5...@contentful/field-editor-shared@1.1.6) (2023-02-21)
23
-
24
- ### Bug Fixes
25
-
26
- - [] adds configurations to support image/avif mime type with web application previews ([#1347](https://github.com/contentful/field-editors/issues/1347)) ([616e6ad](https://github.com/contentful/field-editors/commit/616e6adc70d6d9ae6ad606c677fa9658d6e78006))
27
-
28
- ## [1.1.5](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@1.1.4...@contentful/field-editor-shared@1.1.5) (2023-02-07)
29
-
30
- ### Bug Fixes
31
-
32
- - improve types ([#1338](https://github.com/contentful/field-editors/issues/1338)) ([3197fa9](https://github.com/contentful/field-editors/commit/3197fa9e806f32c90cda454681cb48b604072529))
33
-
34
- ## [1.1.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@1.1.3...@contentful/field-editor-shared@1.1.4) (2022-12-08)
35
-
36
- ### Bug Fixes
37
-
38
- - handle unavailable marks ([#1288](https://github.com/contentful/field-editors/issues/1288)) ([c672c51](https://github.com/contentful/field-editors/commit/c672c516332407ec0691bffc764912b5c6b18795))
39
-
40
- ## [1.1.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@1.1.2...@contentful/field-editor-shared@1.1.3) (2022-06-22)
41
-
42
- **Note:** Version bump only for package @contentful/field-editor-shared
43
-
44
- ## [1.1.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@1.1.1...@contentful/field-editor-shared@1.1.2) (2022-02-15)
45
-
46
- ### Bug Fixes
47
-
48
- - bump f36 packages ([#1025](https://github.com/contentful/field-editors/issues/1025)) ([ec37a40](https://github.com/contentful/field-editors/commit/ec37a4000db7cd75c66dd9621136b2272c9feeea))
49
-
50
- ## [1.1.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@1.1.0...@contentful/field-editor-shared@1.1.1) (2022-02-14)
51
-
52
- ### Bug Fixes
53
-
54
- - **number-editor:** use "text" input that syncs numeric value when valid ([#1020](https://github.com/contentful/field-editors/issues/1020)) ([0f38462](https://github.com/contentful/field-editors/commit/0f384623f969284d122255191397402bbb3e7763))
55
-
56
- # [1.1.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@1.0.3...@contentful/field-editor-shared@1.1.0) (2022-01-11)
57
-
58
- ### Features
59
-
60
- - bump f36 packages to stable v4 [BAU-521] ([#988](https://github.com/contentful/field-editors/issues/988)) ([419cf56](https://github.com/contentful/field-editors/commit/419cf56692179b074fcfa2743469d5265ed98429))
61
-
62
- ## [1.0.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@1.0.2...@contentful/field-editor-shared@1.0.3) (2021-12-23)
63
-
64
- ### Bug Fixes
65
-
66
- - markdown buttons ([#968](https://github.com/contentful/field-editors/issues/968)) ([9803b98](https://github.com/contentful/field-editors/commit/9803b98c25d92df6148686ffe2749a77f7efdbb9))
67
-
68
- ## [1.0.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@1.0.1...@contentful/field-editor-shared@1.0.2) (2021-12-20)
69
-
70
- **Note:** Version bump only for package @contentful/field-editor-shared
71
-
72
- ## [1.0.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@1.0.0...@contentful/field-editor-shared@1.0.1) (2021-11-17)
73
-
74
- ### Bug Fixes
75
-
76
- - **card-actions:** update forma 36 to fix card actions click issue ([#927](https://github.com/contentful/field-editors/issues/927)) ([3dfdef2](https://github.com/contentful/field-editors/commit/3dfdef2c2b0045f12ea94ddafca89a8e9f25e7d0))
77
-
78
- # [1.0.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@0.26.0...@contentful/field-editor-shared@1.0.0) (2021-11-04)
79
-
80
- **Note:** Version bump only for package @contentful/field-editor-shared
81
-
82
- # [0.26.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@0.25.1...@contentful/field-editor-shared@0.26.0) (2021-11-04)
83
-
84
- ### Features
85
-
86
- - Forma v4 components adoption ([#805](https://github.com/contentful/field-editors/issues/805)) ([526bde6](https://github.com/contentful/field-editors/commit/526bde6e10e0ee3789705ec10fb31489af7ca59e))
87
-
88
- ### BREAKING CHANGES
89
-
90
- - adopts a new Forma v4 beta
91
-
92
- ## [0.25.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@0.25.0...@contentful/field-editor-shared@0.25.1) (2021-10-14)
93
-
94
- **Note:** Version bump only for package @contentful/field-editor-shared
95
-
96
- # [0.25.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@0.24.0...@contentful/field-editor-shared@0.25.0) (2021-10-06)
97
-
98
- ### Features
99
-
100
- - [EXT-3161] bump app sdk to v4 ([#881](https://github.com/contentful/field-editors/issues/881)) ([9c4a2af](https://github.com/contentful/field-editors/commit/9c4a2af07da203d59fb5f15c3a5188ecc64b1d44))
101
-
102
- # [0.24.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@0.23.0...@contentful/field-editor-shared@0.24.0) (2021-09-17)
103
-
104
- ### Features
105
-
106
- - add shortenStorageUnit util to shared ([#852](https://github.com/contentful/field-editors/issues/852)) ([142472b](https://github.com/contentful/field-editors/commit/142472b57fc1ca2843dd414c5320fdb5b5b11e62))
107
-
108
- # [0.23.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@0.22.1...@contentful/field-editor-shared@0.23.0) (2021-09-16)
109
-
110
- ### Features
111
-
112
- - export shared util to validate images ([#846](https://github.com/contentful/field-editors/issues/846)) ([f26c481](https://github.com/contentful/field-editors/commit/f26c481cc5abf275acb4e4a65b462be487708117))
113
-
114
- ## [0.22.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@0.22.0...@contentful/field-editor-shared@0.22.1) (2021-08-19)
115
-
116
- ### Bug Fixes
117
-
118
- - FieldConnector setValue race conditions ([#803](https://github.com/contentful/field-editors/issues/803)) ([15a5aa6](https://github.com/contentful/field-editors/commit/15a5aa68a6f3f6c7183444c8fd11de1e70208aa7))
119
-
120
- # [0.22.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@0.21.0...@contentful/field-editor-shared@0.22.0) (2021-07-23)
121
-
122
- ### Features
123
-
124
- - 💡 new color tokens ([#778](https://github.com/contentful/field-editors/issues/778)) ([fba548d](https://github.com/contentful/field-editors/commit/fba548de32305016df7f2685634eefb14294828f))
125
-
126
- # [0.21.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@0.18.0...@contentful/field-editor-shared@0.21.0) (2021-07-06)
127
-
128
- ### Features
129
-
130
- - [] bump forma tokens ([#756](https://github.com/contentful/field-editors/issues/756)) ([befc60f](https://github.com/contentful/field-editors/commit/befc60f9f495b0d1e072e9cba969d139da8f674a))
131
-
132
- # [0.20.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@0.18.0...@contentful/field-editor-shared@0.20.0) (2021-07-06)
133
-
134
- ### Features
135
-
136
- - [] bump forma tokens ([#756](https://github.com/contentful/field-editors/issues/756)) ([befc60f](https://github.com/contentful/field-editors/commit/befc60f9f495b0d1e072e9cba969d139da8f674a))
137
-
138
- # [0.19.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@0.18.0...@contentful/field-editor-shared@0.19.0) (2021-06-23)
139
-
140
- ### Features
141
-
142
- - [] bump forma tokens ([#756](https://github.com/contentful/field-editors/issues/756)) ([befc60f](https://github.com/contentful/field-editors/commit/befc60f9f495b0d1e072e9cba969d139da8f674a))
143
-
144
- # [0.18.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@0.17.0...@contentful/field-editor-shared@0.18.0) (2021-06-23)
145
-
146
- ### Features
147
-
148
- - [] bump app sdk ([#755](https://github.com/contentful/field-editors/issues/755)) ([aa0c217](https://github.com/contentful/field-editors/commit/aa0c2179d4edbb1a37453e1e3bdf0ae11991166f))
149
-
150
- # [0.17.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@0.16.0...@contentful/field-editor-shared@0.17.0) (2021-06-22)
151
-
152
- ### Features
153
-
154
- - [EXT-2826] make app-sdk a peer depedency ([#748](https://github.com/contentful/field-editors/issues/748)) ([f1d1d01](https://github.com/contentful/field-editors/commit/f1d1d01d89d59d70ab2c831a513ab2580ea64d7e))
155
-
156
- # [0.16.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@0.15.1...@contentful/field-editor-shared@0.16.0) (2021-02-19)
157
-
158
- ### Features
159
-
160
- - bump min version of forma-36 ([#606](https://github.com/contentful/field-editors/issues/606)) ([fd57c7a](https://github.com/contentful/field-editors/commit/fd57c7a4312766af38c01507f17706ab22992617))
161
-
162
- ## [0.15.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@0.15.0...@contentful/field-editor-shared@0.15.1) (2021-02-09)
163
-
164
- ### Bug Fixes
165
-
166
- - **tags:** Editor permissions handles entities with metadata ([#584](https://github.com/contentful/field-editors/issues/584)) ([32636da](https://github.com/contentful/field-editors/commit/32636daf05e0ba9abb47eafe9893850db2c6601f))
167
-
168
- # [0.15.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@0.14.0...@contentful/field-editor-shared@0.15.0) (2021-02-01)
169
-
170
- ### Features
171
-
172
- - swap ui-extension-sdk to app-sdk ([#576](https://github.com/contentful/field-editors/issues/576)) ([ac88b4b](https://github.com/contentful/field-editors/commit/ac88b4bd4573a72f521246fc8fcc873520ca90d4))
173
-
174
- # [0.14.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@0.13.3...@contentful/field-editor-shared@0.14.0) (2021-01-20)
175
-
176
- ### Features
177
-
178
- - update minimal forma-36 versions to use updated design ([#565](https://github.com/contentful/field-editors/issues/565)) ([332c734](https://github.com/contentful/field-editors/commit/332c734bfaf54f0e9773fcbb460d743b1f5459ec))
179
-
180
- ## [0.13.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@0.13.2...@contentful/field-editor-shared@0.13.3) (2021-01-12)
181
-
182
- **Note:** Version bump only for package @contentful/field-editor-shared
183
-
184
- ## [0.13.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@0.13.1...@contentful/field-editor-shared@0.13.2) (2020-12-16)
185
-
186
- **Note:** Version bump only for package @contentful/field-editor-shared
187
-
188
- ## [0.13.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@0.13.0...@contentful/field-editor-shared@0.13.1) (2020-11-06)
189
-
190
- **Note:** Version bump only for package @contentful/field-editor-shared
191
-
192
- # [0.13.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-shared@0.12.0...@contentful/field-editor-shared@0.13.0) (2020-08-24)
193
-
194
- ### Features
195
-
196
- - extract field component to default-field-editors package ([#365](https://github.com/contentful/field-editors/issues/365)) ([eb78219](https://github.com/contentful/field-editors/commit/eb78219d52c3dcfb91824f3106f44312aaaf1f8e))
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- interface CharCounterProps {
3
- value?: string;
4
- checkConstraint: (n: number) => boolean;
5
- }
6
- export declare function CharCounter(props: CharCounterProps): JSX.Element;
7
- export {};
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function PredefinedValuesError(): JSX.Element;