@contentful/field-editor-slug 0.13.1 → 1.0.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/CHANGELOG.md CHANGED
@@ -3,211 +3,136 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [0.13.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.13.0...@contentful/field-editor-slug@0.13.1) (2021-10-14)
6
+ ## [1.0.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@1.0.1...@contentful/field-editor-slug@1.0.2) (2021-12-20)
7
7
 
8
8
  **Note:** Version bump only for package @contentful/field-editor-slug
9
9
 
10
+ ## [1.0.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@1.0.0...@contentful/field-editor-slug@1.0.1) (2021-11-17)
10
11
 
12
+ ### Bug Fixes
11
13
 
14
+ - **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))
12
15
 
16
+ # [1.0.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.14.0...@contentful/field-editor-slug@1.0.0) (2021-11-04)
13
17
 
14
- # [0.13.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.12.3...@contentful/field-editor-slug@0.13.0) (2021-10-06)
18
+ **Note:** Version bump only for package @contentful/field-editor-slug
15
19
 
20
+ # [0.14.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.13.1...@contentful/field-editor-slug@0.14.0) (2021-11-04)
16
21
 
17
22
  ### Features
18
23
 
19
- * [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))
20
-
24
+ - Forma v4 components adoption ([#805](https://github.com/contentful/field-editors/issues/805)) ([526bde6](https://github.com/contentful/field-editors/commit/526bde6e10e0ee3789705ec10fb31489af7ca59e))
21
25
 
26
+ ### BREAKING CHANGES
22
27
 
28
+ - adopts a new Forma v4 beta
23
29
 
24
-
25
- ## [0.12.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.12.2...@contentful/field-editor-slug@0.12.3) (2021-09-17)
30
+ ## [0.13.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.13.0...@contentful/field-editor-slug@0.13.1) (2021-10-14)
26
31
 
27
32
  **Note:** Version bump only for package @contentful/field-editor-slug
28
33
 
34
+ # [0.13.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.12.3...@contentful/field-editor-slug@0.13.0) (2021-10-06)
29
35
 
36
+ ### Features
30
37
 
38
+ - [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))
31
39
 
32
-
33
- ## [0.12.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.12.1...@contentful/field-editor-slug@0.12.2) (2021-09-16)
40
+ ## [0.12.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.12.2...@contentful/field-editor-slug@0.12.3) (2021-09-17)
34
41
 
35
42
  **Note:** Version bump only for package @contentful/field-editor-slug
36
43
 
44
+ ## [0.12.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.12.1...@contentful/field-editor-slug@0.12.2) (2021-09-16)
37
45
 
38
-
39
-
46
+ **Note:** Version bump only for package @contentful/field-editor-slug
40
47
 
41
48
  ## [0.12.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.12.0...@contentful/field-editor-slug@0.12.1) (2021-08-19)
42
49
 
43
50
  **Note:** Version bump only for package @contentful/field-editor-slug
44
51
 
45
-
46
-
47
-
48
-
49
52
  # [0.12.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.11.1...@contentful/field-editor-slug@0.12.0) (2021-08-11)
50
53
 
51
-
52
54
  ### Features
53
55
 
54
- * throttle slug editor uniqueness requests ([#799](https://github.com/contentful/field-editors/issues/799)) ([bfadaf0](https://github.com/contentful/field-editors/commit/bfadaf03a2c1a032a56218287ec30929c3581a25))
55
-
56
-
57
-
58
-
56
+ - throttle slug editor uniqueness requests ([#799](https://github.com/contentful/field-editors/issues/799)) ([bfadaf0](https://github.com/contentful/field-editors/commit/bfadaf03a2c1a032a56218287ec30929c3581a25))
59
57
 
60
58
  ## [0.11.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.11.0...@contentful/field-editor-slug@0.11.1) (2021-07-29)
61
59
 
62
60
  **Note:** Version bump only for package @contentful/field-editor-slug
63
61
 
64
-
65
-
66
-
67
-
68
62
  # [0.11.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.10.6...@contentful/field-editor-slug@0.11.0) (2021-07-23)
69
63
 
70
-
71
64
  ### Features
72
65
 
73
- * 💡 new color tokens ([#778](https://github.com/contentful/field-editors/issues/778)) ([fba548d](https://github.com/contentful/field-editors/commit/fba548de32305016df7f2685634eefb14294828f))
74
-
75
-
76
-
77
-
66
+ - 💡 new color tokens ([#778](https://github.com/contentful/field-editors/issues/778)) ([fba548d](https://github.com/contentful/field-editors/commit/fba548de32305016df7f2685634eefb14294828f))
78
67
 
79
68
  ## [0.10.6](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.10.3...@contentful/field-editor-slug@0.10.6) (2021-07-06)
80
69
 
81
70
  **Note:** Version bump only for package @contentful/field-editor-slug
82
71
 
83
-
84
-
85
-
86
-
87
72
  ## [0.10.5](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.10.3...@contentful/field-editor-slug@0.10.5) (2021-07-06)
88
73
 
89
74
  **Note:** Version bump only for package @contentful/field-editor-slug
90
75
 
91
-
92
-
93
-
94
-
95
76
  ## [0.10.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.10.3...@contentful/field-editor-slug@0.10.4) (2021-06-23)
96
77
 
97
78
  **Note:** Version bump only for package @contentful/field-editor-slug
98
79
 
99
-
100
-
101
-
102
-
103
80
  ## [0.10.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.10.2...@contentful/field-editor-slug@0.10.3) (2021-06-23)
104
81
 
105
82
  **Note:** Version bump only for package @contentful/field-editor-slug
106
83
 
107
-
108
-
109
-
110
-
111
84
  ## [0.10.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.10.1...@contentful/field-editor-slug@0.10.2) (2021-06-22)
112
85
 
113
86
  **Note:** Version bump only for package @contentful/field-editor-slug
114
87
 
115
-
116
-
117
-
118
-
119
88
  ## [0.10.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.10.0...@contentful/field-editor-slug@0.10.1) (2021-03-05)
120
89
 
121
90
  **Note:** Version bump only for package @contentful/field-editor-slug
122
91
 
123
-
124
-
125
-
126
-
127
92
  # [0.10.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.9.1...@contentful/field-editor-slug@0.10.0) (2021-02-19)
128
93
 
129
-
130
94
  ### Features
131
95
 
132
- * bump min version of forma-36 ([#606](https://github.com/contentful/field-editors/issues/606)) ([fd57c7a](https://github.com/contentful/field-editors/commit/fd57c7a4312766af38c01507f17706ab22992617))
133
-
134
-
135
-
136
-
96
+ - bump min version of forma-36 ([#606](https://github.com/contentful/field-editors/issues/606)) ([fd57c7a](https://github.com/contentful/field-editors/commit/fd57c7a4312766af38c01507f17706ab22992617))
137
97
 
138
98
  ## [0.9.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.9.0...@contentful/field-editor-slug@0.9.1) (2021-02-09)
139
99
 
140
100
  **Note:** Version bump only for package @contentful/field-editor-slug
141
101
 
142
-
143
-
144
-
145
-
146
102
  # [0.9.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.8.0...@contentful/field-editor-slug@0.9.0) (2021-02-01)
147
103
 
148
-
149
104
  ### Features
150
105
 
151
- * 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))
152
-
153
-
154
-
155
-
106
+ - 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))
156
107
 
157
108
  # [0.8.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.7.0...@contentful/field-editor-slug@0.8.0) (2021-01-20)
158
109
 
159
-
160
110
  ### Features
161
111
 
162
- * 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))
163
-
164
-
165
-
166
-
112
+ - 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))
167
113
 
168
114
  # [0.7.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.6.5...@contentful/field-editor-slug@0.7.0) (2021-01-12)
169
115
 
170
-
171
116
  ### Features
172
117
 
173
- * update minimal required Forma version to the 3.73.12 ([#552](https://github.com/contentful/field-editors/issues/552)) ([2816fd9](https://github.com/contentful/field-editors/commit/2816fd960c28815faebf49a9ef8f4c4c0d91fc36))
174
-
175
-
176
-
177
-
118
+ - update minimal required Forma version to the 3.73.12 ([#552](https://github.com/contentful/field-editors/issues/552)) ([2816fd9](https://github.com/contentful/field-editors/commit/2816fd960c28815faebf49a9ef8f4c4c0d91fc36))
178
119
 
179
120
  ## [0.6.5](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.6.4...@contentful/field-editor-slug@0.6.5) (2020-12-16)
180
121
 
181
122
  **Note:** Version bump only for package @contentful/field-editor-slug
182
123
 
183
-
184
-
185
-
186
-
187
124
  ## [0.6.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.6.3...@contentful/field-editor-slug@0.6.4) (2020-11-06)
188
125
 
189
126
  **Note:** Version bump only for package @contentful/field-editor-slug
190
127
 
191
-
192
-
193
-
194
-
195
128
  ## [0.6.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.6.2...@contentful/field-editor-slug@0.6.3) (2020-11-06)
196
129
 
197
130
  **Note:** Version bump only for package @contentful/field-editor-slug
198
131
 
199
-
200
-
201
-
202
-
203
132
  ## [0.6.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.6.1...@contentful/field-editor-slug@0.6.2) (2020-10-28)
204
133
 
205
134
  **Note:** Version bump only for package @contentful/field-editor-slug
206
135
 
207
-
208
-
209
-
210
-
211
136
  ## [0.6.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-slug@0.6.0...@contentful/field-editor-slug@0.6.1) (2020-08-24)
212
137
 
213
138
  **Note:** Version bump only for package @contentful/field-editor-slug
package/README.md CHANGED
@@ -7,6 +7,5 @@ npm install @contentful/field-editor-slug
7
7
  This package contains a React `SlugEditor` component that is used as a default for the `Symbol` field type in the Contentful web application.
8
8
 
9
9
  ```js
10
- import '@contentful/forma-36-react-components/dist/styles.css';
11
10
  import { SlugEditor } from '@contentful/field-editor-slug';
12
11
  ```
@@ -8,10 +8,11 @@ var React = require('react');
8
8
  var React__default = _interopDefault(React);
9
9
  var fieldEditorShared = require('@contentful/field-editor-shared');
10
10
  var useDebounce = require('use-debounce');
11
- var forma36ReactComponents = require('@contentful/forma-36-react-components');
12
11
  var getSlug = _interopDefault(require('speakingurl'));
13
- var tokens = _interopDefault(require('@contentful/forma-36-tokens'));
12
+ var tokens = _interopDefault(require('@contentful/f36-tokens'));
14
13
  var emotion = require('emotion');
14
+ var f36Components = require('@contentful/f36-components');
15
+ var f36Icons = require('@contentful/f36-icons');
15
16
 
16
17
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
17
18
  try {
@@ -983,9 +984,7 @@ var inputContainer = /*#__PURE__*/emotion.css({
983
984
  position: 'relative'
984
985
  });
985
986
  var input = /*#__PURE__*/emotion.css({
986
- input: {
987
- paddingLeft: '40px'
988
- }
987
+ paddingLeft: '40px'
989
988
  });
990
989
  var icon = /*#__PURE__*/emotion.css({
991
990
  position: 'absolute',
@@ -1072,13 +1071,12 @@ function SlugEditorFieldStatic(props) {
1072
1071
  var status = useUniqueChecker(props);
1073
1072
  return React__default.createElement("div", {
1074
1073
  className: inputContainer
1075
- }, React__default.createElement(forma36ReactComponents.Icon, {
1076
- icon: "Link",
1074
+ }, React__default.createElement(f36Icons.LinkIcon, {
1077
1075
  className: icon
1078
- }), React__default.createElement(forma36ReactComponents.TextInput, {
1076
+ }), React__default.createElement(f36Components.TextInput, {
1079
1077
  className: input,
1080
- error: hasError || status === 'duplicate',
1081
- disabled: isDisabled,
1078
+ isInvalid: hasError || status === 'duplicate',
1079
+ isDisabled: isDisabled,
1082
1080
  value: value || '',
1083
1081
  onChange: function onChange(e) {
1084
1082
  setValue(e.target.value);
@@ -1094,10 +1092,9 @@ function SlugEditorFieldStatic(props) {
1094
1092
  }
1095
1093
  }), status === 'checking' && React__default.createElement("div", {
1096
1094
  className: spinnerContainer
1097
- }, React__default.createElement(forma36ReactComponents.Spinner, {
1098
- testId: "slug-editor-spinner",
1099
- size: "default"
1100
- })), status === 'duplicate' && React__default.createElement(forma36ReactComponents.ValidationMessage, {
1095
+ }, React__default.createElement(f36Components.Spinner, {
1096
+ testId: "slug-editor-spinner"
1097
+ })), status === 'duplicate' && React__default.createElement(f36Components.ValidationMessage, {
1101
1098
  testId: "slug-editor-duplicate-error",
1102
1099
  className: uniqueValidationError
1103
1100
  }, "This slug has already been published in another entry"));